"use strict";this.default_kevlar_base=this.default_kevlar_base||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(d){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles_default_kevlar_base=d||[]};
(0,_._F_toggles_initialize)([0x8000000, 0x0, ]);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
/*

 Copyright Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
/*


 Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
/*

 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
*/
/*

 Copyright 2017 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*
 SPDX-License-Identifier: Apache-2.0
*/
/*

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.

 -----------------------------------------------------------------------------
 Ported from zlib, which is under the following license
 https://github.com/madler/zlib/blob/master/zlib.h

 zlib.h -- interface of the 'zlib' general purpose compression library
   version 1.2.8, April 28th, 2013
   Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
   This software is provided 'as-is', without any express or implied
   warranty.  In no event will the authors be held liable for any damages
   arising from the use of this software.
   Permission is granted to anyone to use this software for any purpose,
   including commercial applications, and to alter it and redistribute it
   freely, subject to the following restrictions:
   1. The origin of this software must not be misrepresented; you must not
      claim that you wrote the original software. If you use this software
      in a product, an acknowledgment in the product documentation would be
      appreciated but is not required.
   2. Altered source versions must be plainly marked as such, and must not be
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
   Jean-loup Gailly        Mark Adler
   jloup@gzip.org          madler@alumni.caltech.edu
   The data format used by the zlib library is described by RFCs (Request for
   Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
   (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
*/
/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*
 Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at
 http://polymer.github.io/LICENSE.txt The complete set of authors may be found
 at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
 be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
 Google as part of the polymer project is also subject to an additional IP
 rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*

Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*

 Copyright (c) Felix Böhm
 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

 Redistributions of source code must retain the above copyright notice, this
 list of conditions and the following disclaimer.

 Redistributions in binary form must reproduce the above copyright notice,
 this list of conditions and the following disclaimer in the documentation
 and/or other materials provided with the distribution.

 THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 OUT OF THE USE OF THIS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*

 The bulk of this code derives from https://github.com/dmoscrop/fold-case
 But in addition to case-folding, we also normalize whitespace.

 fold-case is Copyright Mathias Bynens <https://mathiasbynens.be/>

 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.
*/
/*

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.

     * Redistributions in binary form must reproduce the above
       copyright notice, this list of conditions and the following
       disclaimer in the documentation and/or other materials provided
       with the distribution.

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*


 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.
*/
/*

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

 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.
*/
/*

 Copyright 2020 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*

 Copyright 2018 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*

 Copyright Google Inc. 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.io/license
*/
/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
/*

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var $Y,dfY,cCi,cF,i1,pFC,gYF,hC,wh,iFl,GLF,oYX,PF,lD1,eXF,rh,nYE,hX5,mfi,P11,rCi,WiF,zXM,sEF,Fi4,ThC,HB,Y5F,iM,OFE,G3,S5Y,qU,lM,yCM,bF4,WB,z3,Dfi,dUh,HXY,Z0,Kg1,cNL,pB1,iXi,$UX,Ql,odF,l0M,CM1,pt,R61,VSM,UUL,h61,Lg5,cv,k3h,$0,xU4,ndX,WgY,z65,XB5,aZ,FgL,sCM,ZXM,TAD,QCf,Y3E,OXY,yNl,bXF,f0X,jCM,dSF,pvf,it1,g0M,Wv,GG1,ej5,kGM,n01,USM,Rjl,hjF,VTE,zG,tSY,JZ,Z5,TG,Lb5,tZ,wvM,MT1,mSf,y1,Pg1,uOY,rZM,Bqh,WbX,zjD,XvX,JZh,OU,FbL,TqF,jT,tT5,E0M,dS,NqE,AZF,YU4,jZ4,dNM,HcF,GCY,cLf,qHD,lwF,e_5,xNF,nOX,h_1,P_C,z_F,
FrX,OcL,VB,EOM,bci,NSX,Pe,u_,rS,tL,YO,$jF,piF,gsi,osC,aKl,Hi,lKh,ci,pz,gu,iX,kVM,xj4,nsL,CXM,R7l,Uj5,h7Y,L6X,M2i,wiY,lX,aV,PX5,uUf,IKY,W6F,r1h,Bu4,z7l,XiC,UE,h1,m6,wu,uX,sVF,IV,Zzf,OzC,Wi,SE5,EsF,y1M,zV,bzF,NuE,DjY,XU,jVD,sE,HB5,$6M,FU,cAl,KV4,pfE,g5M,iBi,GoX,t1,o55,qYi,Ys,a$f,l$l,OE,S2,EE,yE,ec4,x65,koh,bX,Ck1,RcC,VuL,DK,A1,j2,vi,Hf,$5,U6E,hcL,MuE,m65,wfY,PkE,uFY,I$5,rAL,WVh,BsF,zcX,Xfi,JA5,cf,srY,FVl,ik,ZB4,q6,lk,TsF,YYh,OBX,SY5,yAD,bB1,NsL,jrY,v5f,d_X,HAF,$_X,KcM,c_F,GiX,x5,o14,q8E,aBi,lBh,ez5,
ki5,n1F,IBf,r_4,Wch,XzM,J_Y,mV,s4F,Tk5,Y8Y,OA4,S8f,E14,y_h,bAE,Nki,D_5,A_h,j4F,Q4h,v1i,dtD,HlE,$tX,K5l,ctF,pkM,gmY,ilC,ap1,omX,kOf,lpY,eKX,CjY,RK5,Vyl,xtX,hKh,nmM,My1,Y5,mt1,OY,yy,wkF,uqF,IpE,BcD,YeC,XkL,zKL,sHM,ZlC,Jt4,NcX,Em1,DtE,fpC,AtX,jHC,vmC,H6F,dMF,$ML,KSD,cmL,pEE,i6M,o24,qS5,aY1,ehf,lYM,wEX,fB,PUC,IYC,rmX,WSE,B9L,zhC,Jm1,ssE,FSY,KA,cz,Z64,SSM,ir,Gi,N9E,fYM,gp5,lr,opl,qm4,BfY,lOX,edi,R4,zdl,XbM,s5l,F15,ZjM,TfE,Q5h,tbF,YmE,SmX,EpX,bjh,yXX,fOY,ur,Wz,j5f,vp4,dlF,H4F,$l4,Kw5,pM1,i4l,gGh,SX,ye,
Ct4,fA,M7F,mlf,A_,Pti,wMi,svY,Fwl,Z41,QvC,SX5,y5F,b4F,NFl,Dll,A51,vGl,de1,Hk,$el,pd5,grE,in5,G5M,qDi,cfE,Hnh,orh,Kl,lzL,nrE,k5F,ij,Ril,Ue4,hih,Lf1,MVM,aH,mel,Pw1,wdD,ui4,rf1,km,FfE,Tzh,tVX,OnF,RH,ErC,Ll,m5,Mt,DeL,SDi,fzE,uj,d8C,Wk,Bk,KKF,glM,GNM,ol5,q_Y,zO,aQi,se,lQM,kN4,x84,nlD,CCX,V1l,Zp,U8F,hYF,Ym,Ee,m8F,wVF,PCY,uxE,WK5,BQ5,XVD,Jwf,Y_h,O5F,TQX,ElC,ywi,b5F,$2,cE,g9,Awl,j$1,G9,vlh,dCE,HOh,$CC,cPL,p3X,gKF,iOD,KGF,GAi,eD,qoY,lch,k2,acE,eQ4,oKf,kAh,n6,nKf,CGL,RQl,VM1,hQ1,UCF,LGD,w3f,MMh,uj1,suE,FG1,
Tr5,YoE,tMM,Qu4,OOF,EKE,bOE,yP4,DCM,PE,APY,jui,vKL,doL,gWF,pyF,ioX,GTi,BE,z9,oWY,aiX,eTM,nWY,RTM,C5h,df,V5M,liF,P51,IiL,rOM,WWh,pj,BVl,Xyl,FWF,QF5,TVM,SaX,EWF,yOF,boM,DoY,dR4,fi1,jFX,vWD,HHL,$RC,cFF,KEM,gLF,pWX,R5,iHC,oLE,qcl,kRi,Pb,uT,xRi,nLC,I5,URF,zJ,XI,JX,mRh,sm,uvX,TJ,ILf,rFF,WEf,B04,Yp,zkl,XW4,JFF,FEF,T0l,YcD,ScF,jb,ELM,yFF,bHC,N0i,DRF,fLX,AFF,j61,HM,Hmi,$vD,KZ5,ccF,p55,giF,imh,GeY,oi1,qbE,a8Y,l8F,eRF,av,w5i,POF,lt,e7,kG,uLY,I84,rcY,WZX,BnY,zRY,X5M,Tnf,Q3D,thX,YbY,OmY,Rv,UX,h5,L4,wF,PM,ut,EiF,
rF,bmM,WM,NnC,DvC,BM,f8E,AcF,j3h,iKl,ofi,knh,RZM,CsE,Gn5,VOh,LJX,FJ5,IV5,YID,WJi,tOF,OKF,Z7,Ef5,QQ,bKF,N4M,fVX,ABL,j1C,dkF,OX,$kL,KlC,cRL,p1f,gv5,iM1,G6Y,HMF,aXE,lXh,euY,EX,VvF,Ukh,RuF,LlY,Mvi,w1i,PDf,mkM,X1f,sql,ZM4,QqX,Hd,yRD,EvE,ARX,vvC,dcF,H74,$c1,KeE,cu1,aJ,eAF,xcL,aA5,qQ4,kvX,gM1,CVF,IAM,UcC,hAf,Lel,T7L,t8M,Z7l,b7f,Fe1,pgE,yuC,V8i,uXL,Qdi,nM5,Gvl,i7E,oMM,lAF,sdC,IJ,ifE,o65,qjM,abi,lbi,hoL,uNL,IbF,tf,WR1,XIF,Zf5,FRf,QDi,tAE,OfF,E6C,Sjl,yWX,vd,bf1,NBM,DVf,dQ,$$Y,H8h,d$i,gE5,KBX,i8l,pKh,G_h,$l,
oEC,eDL,aa1,lai,x$F,RD4,Vnf,LBl,MnM,m$i,PWD,gQ,rEi,ucE,WB4,JEL,sIX,TEY,tnh,q8,a$,EEF,yEY,lC,e1,b8L,kl,xl,NEh,n5,D$h,C5,faC,AEf,VG,jI4,vEM,dO4,Hyl,$OF,caF,KpC,g8l,o81,GHF,qi1,adD,pwE,ldL,xOC,kHh,iyf,n8Y,CEX,wQ,RJE,UOC,VfC,hJF,Lp4,mOF,Mff,wwi,uC,ubC,IdY,PEF,Wp1,B5i,zJL,FpM,QoX,E8L,DOf,I$,joC,v8F,rQ,dJl,s_,Fx,gVM,Xx,QG,i1C,GZ1,qu4,ar1,efC,xJL,nVh,Cv1,RfE,hfE,PvX,mJL,UJf,uhM,IrL,S1,wGD,rSM,bC,Wth,BKE,zfC,XGl,Z14,JSh,FtM,YuM,O1C,NK1,b1L,AS1,KsL,c9X,gt4,GjD,otF,aeM,lei,eW5,x5h,ntY,CBi,U5F,m54,wri,hWL,u2F,
r9i,Ie5,PBi,Wsi,zWD,XrE,J9L,spl,FsM,pO,gr,ou,au,tRL,Yl5,SlX,bVf,lG,eM,NvD,kK,A9i,jpC,vtE,nO,cH4,Gwl,qL5,aSX,lSC,ebh,kw5,CAL,Ru,Rb1,hb4,VK,LUh,w94,PAX,uD1,mW4,X9l,FU4,JHh,Zqi,toF,Oq1,EJX,DWL,NN5,vJE,mG,d34,HGF,wr,$31,P3,KCD,cvM,pQ4,iG4,g3l,GQL,o3L,qRh,akh,R1F,U3F,LC5,h11,x3L,e1E,m35,PIE,BMF,z1F,sYl,YR5,SRF,W3,E3F,bGE,NMl,fk5,dYX,KaY,gFD,ibl,GpL,oFF,kpf,q4h,RnC,VqX,UYM,La1,Xj,MqX,wq1,PJX,u$h,IRD,r4Y,Wa5,BpF,XqY,J4h,Zc,sGC,FaX,TpL,QK,ZbM,tqF,EFL,Oo,y4Y,bbF,Np4,A41,jGF,DYh,ds4,cgM,pU4,gqF,Dc,iT1,ahY,
lhh,v3,xsM,eal,k8f,Rai,VLX,Usi,msF,uHX,PSY,wUX,Ihi,Wq1,Baf,FqX,zaC,ZTl,Qb5,Ta1,yg5,Ds4,AgE,vqF,KmD,qhi,JO,lv5,nZM,ReM,zT,Oa,mAi,IvM,usi,Wmi,Bih,XZ1,ze1,JQD,shF,S5,xrF,wZE,rQl,Ph4,tO,TiY,Qh5,t0i,Yhf,ONl,Shl,EZ4,yQD,bNl,Nii,HW,DAD,fvC,AQC,jhX,vZX,pH,dqF,K_Y,p4C,g44,eS4,xqC,n4F,C$5,VKh,UqC,nH,L_f,MK4,mqY,w4h,P$E,u5F,rs5,BYf,X4F,Js4,tKX,TYC,YVi,E4L,ys1,MR,bai,NYY,DqE,je1,dwF,v41,$w4,cJF,uZ,gRL,iUF,pxf,GFE,oRF,aE5,etY,lEL,kF5,qTi,xwY,nRF,Cd4,RtM,VcD,UwL,htC,L2X,McE,PdF,wxF,utY,rJL,IEX,I6,W25,XxF,ZUh,BI4,
tcC,YTl,OUM,STh,bUl,dGF,HsM,K9h,c$F,YL,Gtf,lfY,xG4,Oc,V$4,RlC,UGE,yO,hlC,L91,M$F,wmh,P9l,uTC,Ifl,W9F,ByC,YsX,Zsh,QkL,SsF,OsC,EC1,y$4,NyD,PqM,IjC,WuF,zq5,OdD,yTY,NlM,DZE,fjM,ATF,jmM,dT1,Hel,coF,pn1,gXl,ief,GbC,oXM,qOf,a44,kbF,R3L,pm,gn,iO,Ge,Vk5,a3,h34,W7l,F7f,JoD,vX4,dil,H_l,MkX,roh,PFM,KHi,cI4,p6X,z3F,i_L,oxM,aTY,krF,xiX,mZ,uO,I3,LHh,h54,P3D,udF,FH5,TjE,t9M,Yth,ExC,b_E,yIh,fTF,jL4,p$l,KLF,dF4,cVh,HJF,gnF,qg5,Sh,VW1,nnD,hmi,LLY,mFh,w$L,yS,Pml,rV5,BbM,zmh,JV5,X$Y,D8,tW5,Hj,OJY,SgY,KK,EnY,yVF,bJ4,NbL,
DF1,fFf,AVL,jaD,vnX,dEY,HQ5,$EF,KDD,cyF,p24,cj,gAf,iQY,Gsl,oAF,qxM,aMl,lMl,eUl,ksf,xE5,nA1,CN1,g4,VwX,hUf,MwM,PNl,ryE,WDE,B$1,X2h,sX5,FDL,ZQF,kf,OQE,twX,Sxf,EAE,yy1,DE1,fMD,AyF,vA4,Pj,HgF,mJ,Kv1,cYf,r4,phF,gQ5,igF,GXl,Bj,lsF,kXF,V6h,RPC,hP4,LvX,Tn,M6l,mzL,PlL,Ish,rYh,BwE,zPl,ur4,Xhi,Twf,OgY,Sdh,QP,EQX,yYD,AY1,bgf,DzD,fs5,K3l,vQE,cq1,gaY,GYD,oaF,qnC,anf,lnF,eMh,xHX,na4,CRC,RML,VxL,hMf,Mxi,PRL,W3F,XAX,s_Y,TO5,bs,Q_D,tx4,YnX,Okl,Sn4,yqD,bkC,NOY,DHF,fn4,AqD,j_l,vaY,dxf,HWF,$xM,c7h,KP5,iWi,ogY,fK,qwF,
e85,l_F,ngM,C01,R8E,Ux4,M4i,P0F,wOF,LPF,r7M,I_5,J7f,WPE,$v,z8Y,Ywf,ZWi,ToC,QnM,t4X,OWF,EgL,SwM,KM,c1,jnh,bWF,A71,f_1,NoE,Dxi,HIi,KOF,ptY,c6F,ow4,GcE,amh,kcM,x25,eIF,nwh,RIX,CoC,U2f,MtD,aq,m2f,wtL,Imf,Xtl,QtL,ev,Y$E,y6F,fm1,D2F,bIl,NDi,Rq,dbi,A64,jtf,HY1,KzE,$bF,geM,iYF,oeF,qr5,aqY,lqF,eHM,xb4,nei,B1,RHC,VI4,MI1,mbX,F4,wJ1,uz1,Fzh,Sv,BJF,sUi,zHC,XJC,EeC,Yrh,ydL,bYh,yp,Db4,fq5,Adl,NJC,DX,jUl,bD,$0L,oj5,qfi,a9h,l9f,eBF,k$L,RBL,njD,Cnf,x0E,U0F,Mel,PnD,ueE,riL,zBF,WYM,BTF,Xl5,sTL,FYE,ZSL,TTh,QTM,teF,OS5,
K7,EjF,NTF,bSi,f9C,D0h,Aih,jTi,cg,HDM,lCl,q0L,xLF,nzL,LAF,Md4,mLY,woh,PPD,uAF,WAL,BZM,zpC,sNF,FA5,ZDX,C7,Y0l,td4,QNE,TZ4,yDF,S05,NZC,DLL,fC5,ADE,$IX,jN4,vz1,dI1,Kol,cpF,p85,Hr4,L7,G2D,oU4,w7,al1,llh,e45,qBC,k25,xIF,nU5,C2D,R4f,UIF,h44,Loi,MjF,P2F,w8E,BRf,mIL,Pg,z45,ufX,WoM,sOX,Fo1,Zri,TRF,QO1,tjl,YBf,Or1,SBY,EUi,ypL,NRD,DID,fl4,jOC,dhF,$hM,cUL,o$l,i91,G7l,g$i,p7Y,qFf,a1l,Q2,k7h,xhL,n$X,CHM,RrC,VUi,mh5,hrY,Uh4,L$Y,swf,X7i,MUf,zrM,O94,SFD,E$X,yUL,b9Y,NG5,Dh1,f1i,v$M,HE4,KhY,pXh,gP1,iEE,aNF,qy4,lN1,
kEC,i8,CKl,R$E,Vri,UgY,oD,qV,Mrf,PKY,z$i,Fhf,ZED,TCh,Q7Y,trE,Yyf,Syh,y3h,EPE,bED,DgE,fNY,A34,j74,vP4,d1Y,nf,HCY,Ghf,oBh,pHh,c2l,iCh,gBh,C45,khi,R9F,Va1,U1f,h9Y,Lnf,Ma5,m1l,u0F,wHE,P4X,FnF,ZC5,TPl,Yki,OCX,QPi,taE,fHL,jPE,ddi,$dY,cbF,gHF,qK5,aGD,lG5,xdM,kIF,eG1,nH1,Cu5,VCY,UdE,hG5,LTL,MCL,md5,PuE,uRh,IG5,rbf,WTM,B_E,Jb1,sc4,ZR1,QcL,T_E,tCM,BI,YK4,ORl,SKE,EHM,N_M,bR5,Abi,jcC,Hxh,KXF,cGX,psh,gyD,ixh,GlF,oyM,qNF,ayF,lyY,klL,eFl,xn4,ny5,CxX,RFX,VNF,UnM,hF4,LXh,Y6,mnM,wsC,Pxi,uCi,rGY,B8f,zFC,Xsf,JG1,s25,
FXY,T8M,Q2C,YNF,SN1,yGE,fyl,N8F,bxi,DnX,AGM,j2F,vyX,$94,K0h,crM,pch,iuL,GyF,o94,a35,qWl,l3Y,es4,kyl,CLf,Rs1,Vgf,U9i,hs5,L0C,wcE,PLh,dE,zsD,XcX,sWL,T1F,ZuF,QWX,tgM,HK,K8,Ouh,SWM,gE,iW,N1L,E9L,yrM,ArL,jWi,v9Y,dP1,cj1,g71,ivD,GPX,o7M,qJY,lZC,eEf,kPh,xPY,n7i,Cel,REC,q$,VmF,UPF,lW,hEi,L8Y,MmE,mPY,w_X,PeX,xE,n8,uGL,IZL,C8,rj4,W8h,Bxl,zEL,JjY,sg5,ZvM,Ov4,YJL,tmX,SJF,E7E,AjX,Nx1,DPD,bv4,fZL,Vv,dBM,Hh5,$BC,Kxl,cnY,ghF,G04,ax4,xBM,eOh,U7,lx4,UBL,Lxf,MHF,mBL,wu1,Pch,IxY,rn5,WxM,Btf,Xu4,Jni,sfY,ZhF,TtC,tHM,Y9i,
bhD,ynh,DBf,fxM,H0C,$DD,Kjf,cl4,i0L,qMX,PK,uW,aUX,lUh,ey4,kDf,nuD,CYC,RyC,VsE,hyC,Ljl,MsE,II,mDM,wT1,IU5,rlY,rE,WK,zyD,WjF,sih,XTY,Fj4,TXX,JE,QiY,tsX,SMi,ylC,s7,NXM,DDF,fUL,AlF,jil,vuX,d4M,cKX,pYF,Gfl,g_M,iL1,o_M,eVl,qCh,l6E,kf5,x44,n_4,VQF,U41,hVE,MQ5,m4F,Wy4,rKh,FyM,Qyl,E7,tQC,umF,YC5,OLF,E_l,NmF,D4C,$p1,KQY,cz1,pNF,gcF,iwi,ocl,q61,luD,kgL,aul,e21,nc4,xp5,R25,h2i,ViL,LQY,Mif,mp4,wNY,PiD,uKC,rz5,IuE,XNC,FQL,JzE,ZwL,T6D,Q81,vK,tii,Y6Y,Hw,S6l,Owh,EcX,yzL,N65,DpL,Azi,j8Y,vci,dXX,H3E,ck4,i3F,qPf,oI1,
aol,lo4,xXE,wpD,Vzi,uJh,IoL,WNl,BHM,s9E,FN1,Z3C,THD,Q9L,tzF,YPX,O3X,ykh,b3X,NHE,DXY,foC,AkX,j9E,du1,KdY,c0L,pRF,gbl,iZ1,GdF,ob1,lWF,aWh,nb1,Cal,R0f,VpE,UuM,Ld1,h0F,muE,r0Y,J0E,z0f,sQX,FdF,ZZh,QQC,ha,Yp5,Io,Sp4,y0M,bZ5,jQL,dmM,KFh,pL4,gNh,GWL,oNf,q2E,lJY,kWD,xmY,CbF,Um1,VZC,RvF,Ja,LFf,hvh,MZD,mml,wLl,Pbl,u_F,IJl,rMD,Bei,zvY,XLi,JMY,slY,FFf,ZpF,TeL,Ql5,Y2i,Opf,AM1,jlF,vNF,H$M,$yi,K4C,gTE,Y8,lPE,eNF,kqX,xyE,nT5,Oi,Sf,E8,Ei,bE,myX,uSF,rxY,IPY,Dd,W4l,B31,zNL;
_.dh=function(d,H){if(Error.captureStackTrace)Error.captureStackTrace(this,_.dh);else{var K=Error().stack;K&&(this.stack=K)}d&&(this.message=String(d));H!==void 0&&(this.cause=H)};
$Y=function(){throw Error("E");};
dfY=function(d,H){H=String.fromCharCode.apply(null,H);return d==null?H:d+H};
cCi=function(d){var H=!1;H=H===void 0?!1:H;if(HFF){if(H&&($fC?!d.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(d)))throw Error("F");d=(Ki4||(Ki4=new TextEncoder)).encode(d)}else{for(var K=0,c=new Uint8Array(3*d.length),p=0;p<d.length;p++){var g=d.charCodeAt(p);if(g<128)c[K++]=g;else{if(g<2048)c[K++]=g>>6|192;else{if(g>=55296&&g<=57343){if(g<=56319&&p<d.length){var a=d.charCodeAt(++p);if(a>=56320&&a<=57343){g=(g-55296)*1024+a-56320+65536;c[K++]=g>>18|
240;c[K++]=g>>12&63|128;c[K++]=g>>6&63|128;c[K++]=g&63|128;continue}else p--}if(H)throw Error("F");g=65533}c[K++]=g>>12|224;c[K++]=g>>6&63|128}c[K++]=g&63|128}}d=K===c.length?c:c.subarray(0,K)}return d};
cF=function(d){_.KF.setTimeout(function(){throw d;},0)};
_.gh=function(d,H){return d.lastIndexOf(H,0)==0};
i1=function(d,H){var K=d.length-H.length;return K>=0&&d.indexOf(H,K)==K};
_.oE=function(d){return/^[\s\xa0]*$/.test(d)};
_.qf=function(d,H){return d.indexOf(H)!=-1};
_.aE=function(d,H){return _.qf(d.toLowerCase(),H.toLowerCase())};
_.xY=function(d,H){var K=0;d=kY(String(d)).split(".");H=kY(String(H)).split(".");for(var c=Math.max(d.length,H.length),p=0;K==0&&p<c;p++){var g=d[p]||"",a=H[p]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""];if(g[0].length==0&&a[0].length==0)break;K=pFC(g[1].length==0?0:parseInt(g[1],10),a[1].length==0?0:parseInt(a[1],10))||pFC(g[2].length==0,a[2].length==0)||pFC(g[2],a[2]);g=g[3];a=a[3]}while(K==0)}return K};
pFC=function(d,H){return d<H?-1:d>H?1:0};
_.nF=function(){var d=_.KF.navigator;return d&&(d=d.userAgent)?d:""};
gYF=function(d){if(!RE||!U5)return!1;for(var H=0;H<U5.brands.length;H++){var K=U5.brands[H].brand;if(K&&_.qf(K,d))return!0}return!1};
hC=function(d){return _.qf(_.nF(),d)};
wh=function(){return RE?!!U5&&U5.brands.length>0:!1};
iFl=function(){return wh()?!1:hC("Opera")};
GLF=function(){return wh()?!1:hC("Trident")||hC("MSIE")};
oYX=function(){return wh()?gYF("Microsoft Edge"):hC("Edg/")};
PF=function(){return hC("Firefox")||hC("FxiOS")};
_.q5D=function(){return hC("Safari")&&!(_.IE()||(wh()?0:hC("Coast"))||iFl()||(wh()?0:hC("Edge"))||oYX()||(wh()?gYF("Opera"):hC("OPR"))||PF()||hC("Silk")||hC("Android"))};
_.IE=function(){return wh()?gYF("Chromium"):(hC("Chrome")||hC("CriOS"))&&!(wh()?0:hC("Edge"))||hC("Silk")};
_.aDl=function(){return hC("Android")&&!(_.IE()||PF()||iFl()||hC("Silk"))};
lD1=function(d){var H={};d.forEach(function(K){H[K[0]]=K[1]});
return function(K){return H[K.find(function(c){return c in H})]||""}};
eXF=function(d){var H=_.nF();if(d==="Internet Explorer"){if(GLF())if((d=/rv: *([\d\.]*)/.exec(H))&&d[1])H=d[1];else{d="";var K=/MSIE +([\d\.]+)/.exec(H);if(K&&K[1])if(H=/Trident\/(\d.\d)/.exec(H),K[1]=="7.0")if(H&&H[1])switch(H[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=K[1];H=d}else H="";return H}var c=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");K=[];for(var p;p=c.exec(H);)K.push([p[1],p[2],p[3]||void 0]);
H=lD1(K);switch(d){case "Opera":if(iFl())return H(["Version","Opera"]);if(wh()?gYF("Opera"):hC("OPR"))return H(["OPR"]);break;case "Microsoft Edge":if(wh()?0:hC("Edge"))return H(["Edge"]);if(oYX())return H(["Edg"]);break;case "Chromium":if(_.IE())return H(["Chrome","CriOS","HeadlessChrome"])}return d==="Firefox"&&PF()||d==="Safari"&&_.q5D()||d==="Android Browser"&&_.aDl()||d==="Silk"&&hC("Silk")?(H=K[2])&&H[1]||"":""};
_.kLE=function(d){if(wh()&&d!=="Silk"){var H=U5.brands.find(function(K){return K.brand===d});
if(!H||!H.version)return NaN;H=H.version.split(".")}else{H=eXF(d);if(H==="")return NaN;H=H.split(".")}return H.length===0?NaN:Number(H[0])};
rh=function(){return RE?!!U5&&!!U5.platform:!1};
_.xfi=function(){return rh()?U5.platform==="Android":hC("Android")};
nYE=function(){return hC("iPhone")&&!hC("iPod")&&!hC("iPad")};
_.WF=function(){return nYE()||hC("iPad")||hC("iPod")};
_.C1F=function(){return rh()?U5.platform==="macOS":hC("Macintosh")};
_.RXh=function(){return rh()?U5.platform==="Windows":hC("Windows")};
_.Vll=function(){return rh()?U5.platform==="Chrome OS":hC("CrOS")};
_.BF=function(d){return d[d.length-1]};
_.XM=function(d,H,K){H=_.UfF(d,H,K);return H<0?null:typeof d==="string"?d.charAt(H):d[H]};
_.UfF=function(d,H,K){for(var c=d.length,p=typeof d==="string"?d.split(""):d,g=0;g<c;g++)if(g in p&&H.call(K,p[g],g,d))return g;return-1};
hX5=function(d){for(var H=_.JC,K=typeof d==="string"?d.split(""):d,c=d.length-1;c>=0;c--)if(c in K&&H.call(void 0,K[c],c,d))return c;return-1};
_.TL=function(d,H){return _.s5(d,H)>=0};
_.Lil=function(d,H){_.TL(d,H)||d.push(H)};
_.Q4=function(d,H){H=_.s5(d,H);var K;(K=H>=0)&&_.MlM(d,H);return K};
_.MlM=function(d,H){Array.prototype.splice.call(d,H,1)};
_.tC=function(d){var H=d.length;if(H>0){for(var K=Array(H),c=0;c<H;c++)K[c]=d[c];return K}return[]};
_.Sl=function(d,H){for(var K=1;K<arguments.length;K++){var c=arguments[K];if(_.O5(c)){var p=d.length||0,g=c.length||0;d.length=p+g;for(var a=0;a<g;a++)d[p+a]=c[a]}else d.push(c)}};
_.wFF=function(d,H,K,c){Array.prototype.splice.apply(d,mfi(arguments,1))};
mfi=function(d,H,K){return arguments.length<=2?Array.prototype.slice.call(d,H):Array.prototype.slice.call(d,H,K)};
P11=function(d,H){H=H||d;for(var K=0,c=0,p={};c<d.length;){var g=d[c++],a=_.y4(g)?"o"+_.b1(g):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(p,a)||(p[a]=!0,H[K++]=g)}H.length=K};
_.IDM=function(d,H,K){K=K||_.uMF;for(var c=0,p=d.length,g;c<p;){var a=c+(p-c>>>1);var e=K(H,d[a]);e>0?c=a+1:(p=a,g=!e)}return g?c:-c-1};
_.DD=function(d,H,K){if(!_.O5(d)||!_.O5(H)||d.length!=H.length)return!1;var c=d.length;K=K||rCi;for(var p=0;p<c;p++)if(!K(d[p],H[p]))return!1;return!0};
_.uMF=function(d,H){return d>H?1:d<H?-1:0};
rCi=function(d,H){return d===H};
WiF=function(d,H,K){H=Array.prototype.splice.call(d,H,1);Array.prototype.splice.call(d,K,0,H[0])};
zXM=function(d){return BhM[d]||""};
sEF=function(d){if(!XFF)return _.fF(d);d=JCM.test(d)?d.replace(JCM,zXM):d;d=atob(d);for(var H=new Uint8Array(d.length),K=0;K<d.length;K++)H[K]=d.charCodeAt(K);return H};
Fi4=function(d,H){d.__closure__error__context__984382||(d.__closure__error__context__984382={});d.__closure__error__context__984382.severity=H};
_.jl=function(d){d=Error(d);Fi4(d,"warning");return d};
ThC=function(d,H){if(d!=null){var K;var c=(K=ZFF)!=null?K:ZFF={};K=c[d]||0;K>=H||(c[d]=K+1,d=Error(),Fi4(d,"incident"),cF(d))}};
HB=function(d,H,K){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(K===void 0?0:K)&&Symbol.for&&d?Symbol.for(d):d!=null?Symbol(d):Symbol():H};
Y5F=function(d,H){cB||_.pX in d||QE5(d,tlD);d[_.pX]|=H};
iM=function(d,H){cB||_.pX in d||QE5(d,tlD);d[_.pX]=H};
OFE=function(d){if(4&d)return 512&d?512:1024&d?1024:0};
G3=function(d){Y5F(d,34);return d};
S5Y=function(d){Y5F(d,32);return d};
qU=function(){return typeof BigInt==="function"};
lM=function(d,H){return H===void 0?d.copyOnWrite!==aC&&!!(2&(d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.pX]|0)):!!(2&H)&&d.copyOnWrite!==aC};
_.PB=function(d,H){if(d!=null)if(typeof d==="string")d=d?new Vl(d,mg):_.wA();else if(d.constructor!==Vl)if(EYD&&d!=null&&d instanceof Uint8Array)d=d.length?new Vl(new Uint8Array(d),mg):_.wA();else{if(!H)throw Error();d=void 0}return d};
yCM=function(d,H){if(typeof H!=="number"||H<0||H>=d.length)throw Error();};
bF4=function(d,H,K){var c=H&128?0:-1,p=d.length,g;if(g=!!p)g=d[p-1],g=g!=null&&typeof g==="object"&&g.constructor===Object;var a=p+(g?-1:0);for(H=H&128?1:0;H<a;H++)K(H-c,d[H]);if(g){d=d[p-1];for(var e in d)!isNaN(e)&&K(+e,d[e])}};
WB=function(d){return d&128?rA:void 0};
z3=function(d){d.isGuard_doNotManuallySetPrettyPlease=!0;return d};
Dfi=function(){var d=NhD;return z3(function(H){for(var K in d)if(H===d[K]&&!/^[0-9]+$/.test(K))return!0;return!1})};
_.X7=function(d){var H=d;if(fD5(H)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(H))throw Error(String(H));}else if(ACl(H)&&!Number.isSafeInteger(H))throw Error(String(H));return jEF?BigInt(d):d=vY4(d)?d?"1":"0":fD5(d)?d.trim()||"0":String(d)};
dUh=function(d,H){if(d.length>H.length)return!1;if(d.length<H.length||d===H)return!0;for(var K=0;K<d.length;K++){var c=d[K],p=H[K];if(c>p)return!1;if(c<p)return!0}};
HXY=function(d){var H=d>>>0;s3=H;F7=(d-H)/4294967296>>>0};
Z0=function(d){if(d<0){HXY(-d);var H=_.q($UX(s3,F7));d=H.next().value;H=H.next().value;s3=d>>>0;F7=H>>>0}else HXY(d)};
Kg1=function(d,H){var K=H*4294967296+(d>>>0);return Number.isSafeInteger(K)?K:_.T3(d,H)};
cNL=function(d,H){var K=H&2147483648;K&&(d=~d+1>>>0,H=~H>>>0,d==0&&(H=H+1>>>0));d=Kg1(d,H);return typeof d==="number"?K?-d:d:K?"-"+d:d};
_.T3=function(d,H){H>>>=0;d>>>=0;if(H<=2097151)var K=""+(4294967296*H+d);else qU()?K=""+(BigInt(H)<<BigInt(32)|BigInt(d)):(K=(d>>>24|H<<8)&16777215,H=H>>16&65535,d=(d&16777215)+K*6777216+H*6710656,K+=H*8147497,H*=2,d>=1E7&&(K+=d/1E7>>>0,d%=1E7),K>=1E7&&(H+=K/1E7>>>0,K%=1E7),K=H+pB1(K)+pB1(d));return K};
pB1=function(d){d=String(d);return"0000000".slice(d.length)+d};
_.gdF=function(d,H){H&2147483648?qU()?d=""+(BigInt(H|0)<<BigInt(32)|BigInt(d>>>0)):(H=_.q($UX(d,H)),d=H.next().value,H=H.next().value,d="-"+_.T3(d,H)):d=_.T3(d,H);return d};
iXi=function(d){if(d.length<16)Z0(Number(d));else if(qU())d=BigInt(d),s3=Number(d&BigInt(4294967295))>>>0,F7=Number(d>>BigInt(32)&BigInt(4294967295));else{var H=+(d[0]==="-");F7=s3=0;for(var K=d.length,c=H,p=(K-H)%6+H;p<=K;c=p,p+=6)c=Number(d.slice(c,p)),F7*=1E6,s3=s3*1E6+c,s3>=4294967296&&(F7+=Math.trunc(s3/4294967296),F7>>>=0,s3>>>=0);H&&(H=_.q($UX(s3,F7)),d=H.next().value,H=H.next().value,s3=d,F7=H)}};
$UX=function(d,H){H=~H;d?d=~d+1:H+=1;return[d,H]};
Ql=function(d){return Array.prototype.slice.call(d)};
_.tN=function(d,H){throw Error(H===void 0?"unexpected value "+d+"!":H);};
_.O3=function(d){if(d!=null&&typeof d!=="number")throw Error("L`"+typeof d+"`"+d);return d};
_.G3E=function(d){if(d==null||typeof d==="number")return d;if(d==="NaN"||d==="Infinity"||d==="-Infinity")return Number(d)};
odF=function(d){if(d!=null&&typeof d!=="boolean")throw Error("M`"+_.SS(d)+"`"+d);return d};
_.q3F=function(d){if(d==null||typeof d==="boolean")return d;if(typeof d==="number")return!!d};
_.yl=function(d){switch(typeof d){case "bigint":return!0;case "number":return E3(d);case "string":return a05.test(d);default:return!1}};
_.bM=function(d){if(!E3(d))throw _.jl("enum");return d|0};
_.AN=function(d){return d==null?d:E3(d)?d|0:void 0};
l0M=function(d){if(typeof d!=="number")throw _.jl("int32");if(!E3(d))throw _.jl("int32");return d|0};
_.jS=function(d){return d==null?d:l0M(d)};
_.vB=function(d){if(d==null)return d;if(typeof d==="string"&&d)d=+d;else if(typeof d!=="number")return;return E3(d)?d|0:void 0};
_.e6f=function(d){if(d==null)return d;if(typeof d==="string"&&d)d=+d;else if(typeof d!=="number")return;return E3(d)?d>>>0:void 0};
CM1=function(d){var H=0;H=H===void 0?0:H;if(!_.yl(d))throw _.jl("int64");var K=typeof d;switch(H){case 512:switch(K){case "string":return $0(d);case "bigint":return String(Kt(64,d));default:return k3h(d)}case 1024:switch(K){case "string":return xU4(d);case "bigint":return _.X7(Kt(64,d));default:return ndX(d)}case 0:switch(K){case "string":return $0(d);case "bigint":return _.X7(Kt(64,d));default:return cv(d)}default:return _.tN(H,"Unknown format requested type for int64")}};
pt=function(d){return d==null?d:CM1(d)};
R61=function(d){if(d[0]==="-")return!1;var H=d.length;return H<20?!0:H===20&&Number(d.substring(0,6))<184467};
VSM=function(d){var H=d.length;return d[0]==="-"?H<20?!0:H===20&&Number(d.substring(0,7))>-922337:H<19?!0:H===19&&Number(d.substring(0,6))<922337};
UUL=function(d){if(d<0){Z0(d);var H=_.T3(s3,F7);d=Number(H);return gq(d)?d:H}H=String(d);if(R61(H))return H;Z0(d);return Kg1(s3,F7)};
h61=function(d){if(VSM(d))return d;iXi(d);return _.gdF(s3,F7)};
Lg5=function(d){if(R61(d))return d;iXi(d);return _.T3(s3,F7)};
cv=function(d){d=GG(d);gq(d)||(Z0(d),d=cNL(s3,F7));return d};
_.MSX=function(d){d=GG(d);return d>=0&&gq(d)?d:UUL(d)};
k3h=function(d){d=GG(d);if(gq(d))d=String(d);else{var H=String(d);VSM(H)?d=H:(Z0(d),d=_.gdF(s3,F7))}return d};
_.mU5=function(d){d=GG(d);if(d>=0&&gq(d))d=String(d);else{var H=String(d);R61(H)?d=H:(Z0(d),d=_.T3(s3,F7))}return d};
$0=function(d){var H=GG(Number(d));if(gq(H))return String(H);H=d.indexOf(".");H!==-1&&(d=d.substring(0,H));return h61(d)};
xU4=function(d){var H=GG(Number(d));if(gq(H))return _.X7(H);H=d.indexOf(".");H!==-1&&(d=d.substring(0,H));return qU()?_.X7(Kt(64,BigInt(d))):_.X7(h61(d))};
ndX=function(d){return gq(d)?_.X7(cv(d)):_.X7(k3h(d))};
_.wB1=function(d){return gq(d)?_.X7(_.MSX(d)):_.X7(_.mU5(d))};
_.PM4=function(d){var H=GG(Number(d));if(gq(H)&&H>=0)return String(H);H=d.indexOf(".");H!==-1&&(d=d.substring(0,H));return Lg5(d)};
_.u7F=function(d){var H=GG(Number(d));if(gq(H)&&H>=0)return _.X7(H);H=d.indexOf(".");H!==-1&&(d=d.substring(0,H));return qU()?_.X7((0,_.oZ)(64,BigInt(d))):_.X7(Lg5(d))};
_.rN1=function(d){if(d==null)return d;if(typeof d==="bigint")return I0l(d)?d=Number(d):(d=Kt(64,d),d=I0l(d)?Number(d):String(d)),d;if(_.yl(d))return typeof d==="number"?cv(d):$0(d)};
WgY=function(d,H){H=H===void 0?!1:H;var K=typeof d;if(d==null)return d;if(K==="bigint")return String(Kt(64,d));if(_.yl(d))return K==="string"?$0(d):H?k3h(d):cv(d)};
_.BAl=function(d){var H=typeof d;if(d==null)return d;if(H==="bigint")return _.X7(Kt(64,d));if(_.yl(d))return H==="string"?xU4(d):ndX(d)};
z65=function(d){if(d==null)return d;var H=typeof d;if(H==="bigint")return String(Kt(64,d));if(_.yl(d)){if(H==="string")return $0(d);if(H==="number")return cv(d)}};
XB5=function(d){if(d==null)return d;var H=typeof d;if(H==="bigint")return String((0,_.oZ)(64,d));if(_.yl(d)){if(H==="string")return _.PM4(d);if(H==="number")return _.MSX(d)}};
_.qS=function(d){if(typeof d!=="string")throw Error();return d};
aZ=function(d){if(d!=null&&typeof d!=="string")throw Error();return d};
_.k0=function(d){return d==null||typeof d==="string"?d:void 0};
FgL=function(d,H,K,c){if(d!=null&&d[x0]===Ct)return d;if(!Array.isArray(d))return K?c&2?H[JN1]||(H[JN1]=sCM(H)):new H:void 0;K=d[_.pX]|0;c=K|c&32|c&2;c!==K&&iM(d,c);return new H(d)};
sCM=function(d){d=new d;G3(d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return d};
ZXM=function(d,H,K){d=H?l0M(d):_.vB(d);return d==null?K?0:void 0:d|0};
TAD=function(d){return d};
QCf=function(d){return d};
Y3E=function(d,H,K,c,p,g){d=FgL(d,c,K,g);p&&(d=tSY(d));return d};
OXY=function(d){return[d,this.get(d)]};
yNl=function(){return S3D||(S3D=new UU(G3([]),void 0,void 0,void 0,EdC))};
bXF=function(d){var H=hZ(MS);return H?d[H]:void 0};
f0X=function(d,H){var K=K===void 0?!1:K;if(hZ(NAY)&&hZ(MS)&&void 0===NAY){var c=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=c[MS];if(!p)return;if(p=p.reviveUnknownFields)try{p(c,H,DUC);return}catch(g){cF(g)}}K&&(d=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(K=hZ(MS))&&K in d&&(d=d[K])&&delete d[H])};
jCM=function(d,H){var K=hZ(MS),c;cB&&K&&((c=d[K])==null?void 0:c[H])!=null&&ThC(ANE,3)};
dSF=function(d,H){H<100||ThC(vdL,1)};
pvf=function(d,H,K,c){var p=c!==void 0;c=!!c;var g=hZ(MS),a;!p&&cB&&g&&(a=d[g])&&Htl(a,dSF);g=[];var e=d.length;a=4294967295;var k=!1,C=!!(H&64),R=C?H&128?0:-1:void 0;if(!(H&1)){var V=e&&d[e-1];V!=null&&typeof V==="object"&&V.constructor===Object?(e--,a=e):V=void 0;if(C&&!(H&128)&&!p){k=!0;var U;a=((U=$SE)!=null?U:TAD)(a-R,R,d,V,void 0)+R}}H=void 0;for(U=0;U<e;U++){var L=d[U];if(L!=null&&(L=K(L,c))!=null)if(C&&U>=a){var w=U-R,W=void 0;((W=H)!=null?W:H={})[w]=L}else g[U]=L}if(V)for(var J in V)e=V[J],
e!=null&&(e=K(e,c))!=null&&(U=+J,L=void 0,C&&!Number.isNaN(U)&&(L=U+R)<a?g[L]=e:(U=void 0,((U=H)!=null?U:H={})[J]=e));H&&(k?g.push(H):g[a]=H);p&&hZ(MS)&&(d=bXF(d))&&d instanceof Kb5&&(g[MS]=cZi(d));return g};
it1=function(d){d[0]=g0M(d[0]);d[1]=g0M(d[1]);return d};
g0M=function(d){switch(typeof d){case "number":return Number.isFinite(d)?d:""+d;case "bigint":return I0l(d)?Number(d):""+d;case "boolean":return d?1:0;case "object":if(Array.isArray(d)){var H=d[_.pX]|0;return d.length===0&&H&1?void 0:pvf(d,H,g0M)}if(d!=null&&d[x0]===Ct)return GG1(d);if(d instanceof Vl){H=d.JSC$8790_value_;if(H==null)d="";else if(typeof H==="string")d=H;else{if(XFF){for(var K="",c=0,p=H.length-10240;c<p;)K+=String.fromCharCode.apply(null,H.subarray(c,c+=10240));K+=String.fromCharCode.apply(null,
c?H.subarray(c):H);H=btoa(K)}else H=_.mb(H);d=d.JSC$8790_value_=H}return d}if(d instanceof UU)return d=d.size!==0?Array.from(IZ.prototype.entries.call(d),it1):void 0,d;return}return d};
Wv=function(d,H){if(H){$SE=H==null||H===TAD||H[o0C]!==qU1?TAD:H;try{return GG1(d)}finally{$SE=void 0}}return GG1(d)};
GG1=function(d){d=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return pvf(d,d[_.pX]|0,g0M)};
ej5=function(d){switch(typeof d){case "boolean":return a5h||(a5h=[0,void 0,!0]);case "number":return d>0?void 0:d===0?l5l||(l5l=[0,void 0]):[-d,void 0];case "string":return[0,d];case "object":return d}};
kGM=function(d,H,K){return d=_.Bv(d,H[0],H[1],K?1:2)};
_.Bv=function(d,H,K,c){c=c===void 0?0:c;if(d==null){var p=32;K?(d=[K],p|=128):d=[];H&&(p=p&-8380417|(H&1023)<<13)}else{if(!Array.isArray(d))throw Error("O");p=d[_.pX]|0;if(xSl&&1&p)throw Error("P");2048&p&&!(2&p)&&n01();if(p&256)throw Error("Q");if(p&64)return c!==0||p&2048||iM(d,p|2048),d;if(K&&(p|=128,K!==d[0]))throw Error("R");a:{K=d;p|=64;var g=K.length;if(g){var a=g-1,e=K[a];if(e!=null&&typeof e==="object"&&e.constructor===Object){H=p&128?0:-1;a-=H;if(a>=1024)throw Error("T");for(var k in e)g=
+k,g<a&&(K[g+H]=e[k],delete e[k]);p=p&-8380417|(a&1023)<<13;break a}}if(H){k=Math.max(H,g-(p&128?0:-1));if(k>1024)throw Error("U");p=p&-8380417|(k&1023)<<13}}}p|=64;c===0&&(p|=2048);iM(d,p);return d};
n01=function(){if(xSl)throw Error("S");ThC(CgF,5)};
USM=function(d,H){if(typeof d!=="object")return d;if(Array.isArray(d)){var K=d[_.pX]|0;return d.length===0&&K&1?void 0:Rjl(d,K,H)}if(d!=null&&d[x0]===Ct)return VTE(d);if(d instanceof UU){H=d.arrayState;if(H&2)return d;if(!d.size)return;K=G3(Array.from(IZ.prototype.entries.call(d)));if(d.valueCtor)for(d=0;d<K.length;d++){var c=K[d],p=c[1];p==null||typeof p!=="object"?p=void 0:p!=null&&p[x0]===Ct?p=VTE(p):Array.isArray(p)?p=Rjl(p,p[_.pX]|0,!!(H&32)):p=void 0;c[1]=p}return K}if(d instanceof Vl)return d};
Rjl=function(d,H,K){if(H&2)return d;!K||4096&H||16&H?d=zG(d,H,!1,K&&!(H&16)):(Y5F(d,34),H&4&&Object.freeze(d));return d};
hjF=function(d,H,K){d=new d.constructor(H);K&&(d.copyOnWrite=aC);d.noLegacyNull=aC;return d};
VTE=function(d){var H=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=H[_.pX]|0;return lM(d,K)?d:Lb5(d,H,K)?hjF(d,H):zG(H,K)};
zG=function(d,H,K,c){c!=null||(c=!!(34&H));d=pvf(d,H,USM,c);c=32;K&&(c|=2);H=H&8380609|c;iM(d,H);return d};
tSY=function(d){var H=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=H[_.pX]|0;return lM(d,K)?Lb5(d,H,K)?hjF(d,H,!0):new d.constructor(zG(H,K,!1)):d};
JZ=function(d){if(d.copyOnWrite!==aC)return!1;var H=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;H=zG(H,H[_.pX]|0);Y5F(H,2048);d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=H;d.copyOnWrite=void 0;d.noLegacyNull=void 0;return!0};
Z5=function(d){if(!JZ(d)&&lM(d,d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.pX]|0))throw Error();};
TG=function(d,H){H===void 0&&(H=d[_.pX]|0);H&32&&!(H&4096)&&iM(d,H|4096)};
Lb5=function(d,H,K){return K&2?!0:K&32&&!(K&4096)?(iM(H,K|2),d.copyOnWrite=aC,!0):!1};
tZ=function(d,H,K,c,p){var g=K+(p?0:-1),a=d.length-1;if(a>=1+(p?0:-1)&&g>=a){var e=d[a];if(e!=null&&typeof e==="object"&&e.constructor===Object)return e[K]=c,H}if(g<=a)return d[g]=c,H;if(c!==void 0){var k;a=((k=H)!=null?k:H=d[_.pX]|0)>>13&1023||536870912;K>=a?c!=null&&(g={},d[a+(p?0:-1)]=(g[K]=c,g)):d[g]=c}return H};
_.ST=function(d,H,K,c,p){var g=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a=g[_.pX]|0;c=lM(d,a)?1:c;p=!!p||c===3;c===2&&JZ(d)&&(g=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a=g[_.pX]|0);d=MT1(g,H);var e=d===Y0?7:d[_.pX]|0,k=mSf(e,a);var C=4&k?!1:!0;if(C){4&k&&(d=Ql(d),e=0,k=OU(k,a),a=tZ(g,a,H,d));for(var R=0,V=0;R<d.length;R++){var U=K(d[R]);U!=null&&(d[V++]=U)}V<R&&(d.length=V);K=(k|4)&-513;k=K&=-1025;k&=-4097}k!==e&&(iM(d,k),2&k&&Object.freeze(d));return d=wvM(d,k,g,
a,H,c,C,p)};
wvM=function(d,H,K,c,p,g,a,e){var k=H;g===1||(g!==4?0:2&H||!(16&H)&&32&c)?y1(H)||(H|=!d.length||a&&!(4096&H)||32&c&&!(4096&H||16&H)?2:256,H!==k&&iM(d,H),Object.freeze(d)):(g===2&&y1(H)&&(d=Ql(d),k=0,H=OU(H,c),c=tZ(K,c,p,d)),y1(H)||(e||(H|=16),H!==k&&iM(d,H)));2&H||!(4096&H||16&H)||TG(K,c);return d};
MT1=function(d,H,K){d=bg(d,H,K);return Array.isArray(d)?d:Y0};
mSf=function(d,H){2&H&&(d|=2);return d|1};
y1=function(d){return!!(2&d)&&!!(4&d)||!!(256&d)};
Pg1=function(d){return _.PB(d,!0)};
uOY=function(d,H){var K=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=K[_.pX]|0;a:{var p=c;c=lM(d,c);!c&&JZ(d)&&(K=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=K[_.pX]|0);var g=bg(K,H);d=!1;if(g==null){if(c){H=yNl();break a}g=[]}else if(g.constructor===UU)if(g.arrayState&2&&!c)g=Array.from(IZ.prototype.entries.call(g));else{H=g;break a}else Array.isArray(g)?d=!!((g[_.pX]|0)&2):g=[];if(c){if(!g.length){H=yNl();break a}d||(d=!0,G3(g))}else if(d){d=!1;c=g;c=Ql(c);for(g=0;g<
c.length;g++){var a=c[g]=Ql(c[g]);Array.isArray(a[1])&&(a[1]=G3(a[1]))}g=c}!d&&p&32&&S5Y(g);c=new UU(g,void 0,ZXM,ZXM);p=tZ(K,p,H,c);d||TG(K,p);H=c}return H};
_.NS=function(d,H,K,c){Z5(d);var p=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=p[_.pX]|0;if(K==null)return tZ(p,g,H),d;var a=K===Y0?7:K[_.pX]|0,e=a,k=y1(a),C=k||Object.isFrozen(K);k||(a=0);C||(K=Ql(K),e=0,a=OU(a,g),C=!1);a|=5;var R;k=(R=OFE(a))!=null?R:0;for(R=0;R<K.length;R++){var V=K[R],U=c(V,k);Object.is(V,U)||(C&&(K=Ql(K),e=0,a=OU(a,g),C=!1),K[R]=U)}a!==e&&(C&&(K=Ql(K),a=OU(a,g)),iM(K,a));tZ(p,g,H,K);return d};
_.D5=function(d,H,K,c,p){Z5(d);var g=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;tZ(g,g[_.pX]|0,H,(c==="0"?Number(K)===0:K===c)?void 0:K,p);return d};
_.I5Y=function(d,H,K){if(H&2)throw Error();var c=WB(H),p=MT1(d,K,c),g=p===Y0?7:p[_.pX]|0,a=mSf(g,H);if(2&a||y1(a)||16&a)p=Ql(p),g=0,a=OU(a,H),tZ(d,H,K,p,c);a&=-13;a!==g&&iM(p,a);return p};
rZM=function(d){if(cB){var H;return(H=d[ft])!=null?H:d[ft]=new Map}if(ft in d)return d[ft];H=new Map;Object.defineProperty(d,ft,{value:H});return H};
Bqh=function(d,H,K,c,p){var g=rZM(d),a=WbX(g,d,H,K,p);a!==c&&(a&&(H=tZ(d,H,a,void 0,p)),g.set(K,c));return H};
WbX=function(d,H,K,c,p){var g=d.get(c);if(g!=null)return g;for(var a=g=0;a<c.length;a++){var e=c[a];bg(H,e,p)!=null&&(g!==0&&(K=tZ(H,K,g,void 0,p)),g=e)}d.set(c,g);return g};
zjD=function(d,H,K,c,p){var g=!1;c=bg(d,c,p,function(a){var e=FgL(a,K,!1,H);g=e!==a&&e!=null;return e});
if(c!=null)return g&&!lM(c)&&TG(d,H),c};
XvX=function(d,H,K,c,p,g,a,e){var k=lM(d,K);g=k?1:g;a=!!a||g===3;k=e&&!k;(g===2||k)&&JZ(d)&&(H=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=H[_.pX]|0);d=MT1(H,p);var C=d===Y0?7:d[_.pX]|0,R=mSf(C,K);if(e=!(4&R)){var V=d,U=K,L=!!(2&R);L&&(U|=2);for(var w=!L,W=!0,J=0,F=0;J<V.length;J++){var Y=FgL(V[J],c,!1,U);if(Y instanceof c){if(!L){var A=lM(Y);w&&(w=!A);W&&(W=A)}V[F++]=Y}}F<J&&(V.length=F);R|=4;R=W?R&-4097:R|4096;R=w?R|8:R&-9}R!==C&&(iM(d,R),2&R&&Object.freeze(d));if(k&&!(8&R||!d.length&&
(g===1||(g!==4?0:2&R||!(16&R)&&32&K)))){y1(R)&&(d=Ql(d),R=OU(R,K),K=tZ(H,K,p,d));c=d;k=R;for(C=0;C<c.length;C++)V=c[C],R=tSY(V),V!==R&&(c[C]=R);k|=8;R=k=c.length?k|4096:k&-4097;iM(d,R)}return d=wvM(d,R,H,K,p,g,e,a)};
JZh=function(d){d==null&&(d=void 0);return d};
OU=function(d,H){return d=(2&H?d|2:d&-3)&-273};
_.sZ1=function(d,H,K,c,p){Z5(d);H=_.ST(d,H,p,2,!0);var g;p=(g=OFE(H===Y0?7:H[_.pX]|0))!=null?g:0;H.push(K(c,p));return d};
FbL=function(d,H,K,c,p,g,a){Z5(d);var e=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;d=XvX(d,e,e[_.pX]|0,K,H,2,!0);if(g&&a)p!=null||(p=d.length-1),yCM(d,p),d.splice(p,g),d.length||(d[_.pX]&=-4097);else{if(g){if(typeof p!=="number"||p<0||p>d.length)throw Error();}else c=c!=null?c:new K;p!=void 0?d.splice(p,g,c):d.push(c);p=K=d===Y0?7:d[_.pX]|0;(c=lM(c))?(K&=-9,d.length===1&&(K&=-4097)):K|=4096;K!==p&&iM(d,K);c||TG(e)}};
TqF=function(d,H){if(typeof d==="string")return new AZ(sEF(d),H);if(Array.isArray(d))return new AZ(new Uint8Array(d),H);if(d.constructor===Uint8Array)return new AZ(d,!1);if(d.constructor===ArrayBuffer)return d=new Uint8Array(d),new AZ(d,!1);if(d.constructor===Vl)return H=ZtF(d)||new Uint8Array(0),new AZ(H,!0,d);if(d instanceof Uint8Array)return d=d.constructor===Uint8Array?d:new Uint8Array(d.buffer,d.byteOffset,d.byteLength),new AZ(d,!1);throw Error();};
jT=function(){var d=function(){throw Error();};
Object.setPrototypeOf(d,d.prototype);return d};
tT5=function(d,H){var K=K===void 0?QZM:K;return new vv(d,H,K)};
E0M=function(d,H,K,c,p){H=YU4(H,c);H!=null&&(K=_.Otf(d,K),p(H,d),_.SUE(d,K))};
dS=function(d,H,K,c){var p=c[d];if(p)return p;p={};p.binaryFields=c;p.messageMetadata=ej5(c[0]);var g=c[1],a=1;g&&g.constructor===Object&&(p.extensions=g,g=c[++a],typeof g==="function"&&(p.isMessageSet=!0,yZM!=null||(yZM=g),bti!=null||(bti=c[a+1]),g=c[a+=2]));for(var e={};g&&NqE(g);){for(var k=0;k<g.length;k++)e[g[k]]=g;g=c[++a]}for(k=1;g!==void 0;){typeof g==="number"&&(k+=g,g=c[++a]);var C=void 0;if(g instanceof vv)var R=g;else R=DSf,a--;g=void 0;if((g=R)==null?0:g.$$isMsg){g=c[++a];C=c;var V=a;
typeof g==="function"&&(g=g(),C[V]=g);C=g}g=c[++a];V=k+1;typeof g==="number"&&g<0&&(V-=g,g=c[++a]);for(;k<V;k++){var U=e[k];C?K(p,k,R,C,U):H(p,k,R,U)}}return c[d]=p};
NqE=function(d){return Array.isArray(d)&&!!d.length&&typeof d[0]==="number"&&d[0]>0};
AZF=function(d){return Array.isArray(d)?d[0]instanceof vv?d:[f51,d]:[d,void 0]};
YU4=function(d,H){if(d instanceof _.He)return d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(d))return kGM(d,H,!1)};
jZ4=function(d,H,K,c){var p=K.$$binaryReaderFn;d[H]=c?function(g,a,e){return p(g,a,e,c)}:p};
dNM=function(d,H,K,c,p){var g=K.$$binaryReaderFn,a,e;d[H]=function(k,C,R){return g(k,C,R,e||(e=dS(v0D,jZ4,dNM,c).messageMetadata),a||(a=HcF(c)),p)}};
HcF=function(d){var H=d[$N4];if(H!=null)return H;var K=dS(v0D,jZ4,dNM,d);H=K.isMessageSet?function(c,p){return yZM(c,p,K)}:function(c,p){for(;KrL(p)&&p.nextWireType_!=4;){var g=p.nextField_,a=K[g];
if(a==null){var e=K.extensions;e&&(e=e[g])&&(e=cLf(e),e!=null&&(a=K[g]=e))}if(a==null||!a(p,c,g)){e=p;a=e.fieldCursor_;pel(e);if(e.discardUnknownFields)var k=void 0;else{var C=e.decoder_.cursor_-a;e.decoder_.cursor_=a;k=gOE(e.decoder_,C)}C=e=a=void 0;var R=c;k&&((a=(e=(C=R[MS])!=null?C:R[MS]=new Kb5)[g])!=null?a:e[g]=[]).push(k)}}if(c=bXF(c))c.reviveUnknownFields=K.binaryFields[ich];return!0};
d[$N4]=H;d[ich]=GCY.bind(d);return H};
GCY=function(d,H,K,c){var p=this[v0D],g=this[$N4],a=kGM(void 0,p.messageMetadata,!1),e=bXF(d);if(e){var k=!1,C=p.extensions;if(C){p=function(w,W,J){if(J.length!==0)if(C[W])for(w=_.q(J),W=w.next();!W.done;W=w.next()){W=oO1(W.value);try{k=!0,g(a,W)}finally{W.free()}}else c==null||c(d,W,J)};
if(H==null)Htl(e,p);else if(e!=null){var R=e[H];R&&p(e,H,R)}if(k){var V=d[_.pX]|0;if(V&2&&V&2048&&(K==null||!K.reviveIntoImmutable))throw Error();var U=WB(V),L=function(w,W){if(bg(d,w,U)!=null)switch(K==null?void 0:K.resolutionBehavior){case 1:return;default:throw Error();}W!=null&&(V=tZ(d,V,w,W,U));delete e[w]};
H==null?bF4(a,a[_.pX]|0,function(w,W){L(w,W)}):L(H,bg(a,H,U))}}}};
cLf=function(d){d=AZF(d);var H=d[0].$$binaryReaderFn;if(d=d[1]){var K=HcF(d),c=dS(v0D,jZ4,dNM,d).messageMetadata;return function(p,g,a){return H(p,g,a,c,K)}}return H};
qHD=function(d,H,K){d[H]=K.$$binaryWriterFn};
lwF=function(d,H,K,c){var p,g,a=K.$$binaryWriterFn;d[H]=function(e,k,C){return a(e,k,C,g||(g=dS(awi,qHD,lwF,c).messageMetadata),p||(p=e_5(c)))}};
e_5=function(d){var H=d[kC1];if(!H){var K=dS(awi,qHD,lwF,d);H=function(c,p){return xNF(c,p,K)};
d[kC1]=H}return H};
xNF=function(d,H,K){bF4(d,d[_.pX]|0,function(c,p){if(p!=null){var g=nOX(K,c);g?g(H,p,c):c<500||ThC(C_D,3)}});
(d=bXF(d))&&Htl(d,function(c,p,g){$O(H,H.encoder_.end());for(c=0;c<g.length;c++)$O(H,ZtF(g[c])||new Uint8Array(0))})};
nOX=function(d,H){var K=d[H];if(K)return K;if(K=d.extensions)if(K=K[H]){K=AZF(K);var c=K[0].$$binaryWriterFn;if(K=K[1]){var p=e_5(K),g=dS(awi,qHD,lwF,K).messageMetadata;K=d.isMessageSet?bti(g,p):function(a,e,k){return c(a,e,k,g,p)}}else K=c;
return d[H]=K}};
_.R_X=function(d,H,K){if(Array.isArray(H)){var c=H[_.pX]|0;if(c&4)return H;for(var p=0,g=0;p<H.length;p++){var a=d(H[p]);a!=null&&(H[g++]=a)}g<p&&(H.length=g);K&&(iM(H,(c|5)&-1537),c&2&&Object.freeze(H));return H}};
_.Kc=function(d,H,K){return new vv(d,H,K)};
_.VEY=function(d,H,K){return new vv(d,H,K)};
_.ce=function(d,H,K){tZ(d,d[_.pX]|0,H,K,WB(d[_.pX]|0))};
h_1=function(d,H,K){H=_.G3E(H);H!=null&&(_.pc(d,K,1),d=d.encoder_,K=UNM||(UNM=new DataView(new ArrayBuffer(8))),K.setFloat64(0,+H,!0),s3=K.getUint32(0,!0),F7=K.getUint32(4,!0),_.i_(d,s3),_.i_(d,F7))};
_.GC=function(d,H,K){H=z65(H);if(H!=null){switch(typeof H){case "string":LrD(H)}if(H!=null)switch(_.pc(d,K,0),typeof H){case "number":d=d.encoder_;Z0(H);ME5(d,s3,F7);break;case "bigint":K=BigInt.asUintN(64,H);K=new mNh(Number(K&BigInt(4294967295)),Number(K>>BigInt(32)));ME5(d.encoder_,K.JSC$8834_lo,K.JSC$8834_hi);break;default:K=LrD(H),ME5(d.encoder_,K.JSC$8834_lo,K.JSC$8834_hi)}}};
P_C=function(d,H,K){H=_.vB(H);H!=null&&H!=null&&(_.pc(d,K,0),_.wel(d.encoder_,H))};
_.Iw1=function(d,H,K){ual(d,K,XB5(H))};
_.rL5=function(d,H,K){H=_.q3F(H);H!=null&&(_.pc(d,K,0),d.encoder_.JSC$8836_buffer_.push(H?1:0))};
_.BSD=function(d,H,K){H=_.k0(H);H!=null&&WrM(d,K,cCi(H))};
z_F=function(d,H,K,c,p){H=YU4(H,c);H!=null&&(K=_.Otf(d,K),p(H,d),_.SUE(d,K))};
_.Xe4=function(d,H,K){H=H==null||typeof H=="string"||H instanceof Vl?H:void 0;H!=null&&WrM(d,K,TqF(H,!0).buffer)};
_.JL5=function(d,H,K){H=_.vB(H);H!=null&&(H=parseInt(H,10),_.pc(d,K,0),_.wel(d.encoder_,H))};
_.oK=function(d,H){return function(K,c){var p={treatNewDataAsImmutable:!0};c&&Object.assign(p,c);K=oO1(K,void 0,void 0,p);try{var g=new d,a=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;HcF(H)(a,K);var e=g}finally{K.free()}return e}};
_.qN=function(d){return function(H){return sKC(H,d)}};
FrX=function(d){return function(){return sKC(this,d)}};
_.Zch=function(d){return z3(function(H){return H instanceof d&&!lM(H)})};
_.aK=function(d){return function(H){return TS5(d,H)}};
OcL=function(d,H){return QK1({child:d,origin:H||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:tE1,getPayloadCase:function(K){return K.getPayloadCase()},
createInitMessage:function(K){var c=new l_,p=new YHf;K=_.eE(p,1,K);return _.nc(c,5,Cc,K)}})};
VB=function(d){return{valueOf:d}.valueOf()};
EOM=function(){var d=null;if(!SHf)return d;try{var H=function(K){return K};
d=SHf.createPolicy("goog#html",{createHTML:H,createScript:H,createScriptURL:H})}catch(K){}return d};
bci=function(){yLD===void 0&&(yLD=EOM());return yLD};
_.hL=function(d){var H=bci();d=H?H.createScriptURL(d):d;return new UH(d)};
_.Lc=function(d){if(d instanceof UH)return d.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.MN=function(d){return Object.isFrozen(d)&&Object.isFrozen(d.raw)};
NSX=function(d){return d.toString().indexOf("`")===-1};
Pe=function(d){return new _.wS(DND,d)};
u_=function(d){return d instanceof _.wS};
_.IK=function(d){if(u_(d))return d.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
rS=function(d){return new fw4(function(H){return H.substr(0,d.length+1).toLowerCase()===d+":"})};
_.Be=function(d,H){H=H===void 0?ALE:H;if(u_(d))return d;for(var K=0;K<H.length;++K){var c=H[K];if(c instanceof fw4&&c.isValid(d))return Pe(d)}};
_.Xa=function(d,H){H=H===void 0?ALE:H;return _.Be(d,H)||zC};
_.JL=function(d){var H=window;if(typeof MediaSource!=="undefined"&&d instanceof MediaSource||typeof H.ManagedMediaSource!=="undefined"&&d instanceof H.ManagedMediaSource)return Pe(URL.createObjectURL(d));H=d.type;H.toLowerCase()==="application/octet-stream"?H=!0:(H=H.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),H=(H==null?void 0:H.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(H[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(H[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(H[1])||/^font\/[\w-]+$/i.test(H[1])));if(!H)throw Error("Z");return Pe(URL.createObjectURL(d))};
_.jKD=function(d){for(var H=_.sH.apply(1,arguments),K=[d[0]],c=0;c<H.length;c++)K.push(String(H[c])),K.push(d[c+1]);return Pe(K.join(""))};
_.djh=function(d){if(!vOY){a:{var H=document.createElement("a");try{H.href=d}catch(K){d=void 0;break a}d=H.protocol;d=d===":"||d===""?"https:":d}return d}try{H=new URL(d)}catch(K){return"https:"}return H.protocol};
_.Fa=function(d){d instanceof _.wS?d=_.IK(d):d=HzC.test(d)?d:void 0;return d};
_.TC=function(d,H){H=_.Fa(H);H!==void 0&&(d.href=H)};
tL=function(d){var H=bci();d=H?H.createHTML(d):d;return new QB(d)};
YO=function(d){if(d instanceof QB)return d.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.OH=function(d,H){d.src=_.Lc(H).toString()};
$jF=function(d,H){d.setAttribute("sandbox","");for(var K=0;K<H.length;K++)d.sandbox.supports&&!d.sandbox.supports(H[K])||d.sandbox.add(H[K])};
_.c1E=function(d,H,K){d.removeAttribute("srcdoc");switch(H){case 0:if(K instanceof UH)throw new K6M("TrustedResourceUrl",0);$jF(d,[]);H=_.Fa(K);H!==void 0&&(d.src=H);break;case 1:if(!(K instanceof UH))throw new K6M(typeof K,1);$jF(d,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.OH(d,K);break;case 2:if(K instanceof UH)throw new K6M("TrustedResourceUrl",2);$jF(d,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
H=_.Fa(K);H!==void 0&&(d.src=H);break;default:_.tN(H)}};
_.EH=function(d,H,K,c){H=_.Fa(H);return H!==void 0?d.open(H,K,c):null};
_.yB=function(d){d=d===void 0?document:d;var H,K;d=(K=(H=d).querySelector)==null?void 0:K.call(H,"script[nonce]");return d==null?"":d.nonce||d.getAttribute("nonce")||""};
_.NN=function(d){var H=bci();d=H?H.createScript(d):d;return new _.b_(d)};
piF=function(d){if(d instanceof _.b_)return d.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
gsi=function(d){var H=_.yB(d.ownerDocument);H&&d.setAttribute("nonce",H)};
_.Dw=function(d,H){d.textContent=piF(H);gsi(d)};
_.fc=function(d,H){d.src=_.Lc(H);gsi(d)};
_.AL=function(d,H){if(d.nodeType===1&&/^(script|style)$/i.test(d.tagName))throw Error("Z");d.innerHTML=YO(H)};
_.jE=function(d,H,K,c){if(d.length===0)throw Error("Z");d=d.map(function(g){if(g instanceof izi)g=g.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return g});
var p=K.toLowerCase();if(d.every(function(g){return p.indexOf(g)!==0}))throw Error("aa`"+K);
H.setAttribute(K,c)};
_.ve=function(d,H,K){if(H instanceof UH)d.href=_.Lc(H).toString(),d.rel=K;else{if(GVf.indexOf(K)===-1)throw Error("ba`"+K);H=_.Fa(H);H!==void 0&&(d.href=H,d.rel=K)}};
osC=function(d){if(d instanceof du)return d.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.qE1=function(d,H){H=_.Fa(H);H!==void 0&&(d.href=H)};
aKl=function(d,H){d&&(H=d.indexOf(H),0<=H&&d.splice(H,1))};
Hi=function(d){return typeof d==="function"};
lKh=function(d){return d instanceof Kz||d&&"closed"in d&&Hi(d.remove)&&Hi(d.add)&&Hi(d.unsubscribe)};
ci=function(){};
pz=function(d){e7L(function(){throw d;})};
gu=function(d){return d};
iX=function(){return kVM(_.sH.apply(0,arguments))};
kVM=function(d){return d.length===0?gu:d.length===1?d[0]:function(H){return d.reduce(function(K,c){return c(K)},H)}};
xj4=function(d){var H;return(H=d!=null?d:void 0)!=null?H:Promise};
nsL=function(d,H){return new GV(function(K){var c=0;return H.schedule(function(){c===d.length?K.complete():(K.next(d[c++]),K.closed||this.schedule())})})};
CXM=function(d,H){if(!d)throw Error("ca");return new GV(function(K){var c=new Kz;c.add(H.schedule(function(){var p=d[Symbol.asyncIterator]();c.add(H.schedule(function(){var g=this;p.next().then(function(a){a.done?K.complete():(K.next(a.value),g.schedule())})}))}));
return c})};
R7l=function(d,H,K){H=H.schedule(function(){try{K.call(this)}catch(c){d.error(c)}},0);
d.add(H)};
Uj5=function(d,H){return new GV(function(K){var c;K.add(H.schedule(function(){c=d[V21]();R7l(K,H,function(){var p=c.next(),g=p.value;p.done?K.complete():(K.next(g),this.schedule())})}));
return function(){var p;return Hi((p=c)==null?void 0:p.return)&&c.return()}})};
h7Y=function(d,H){return new GV(function(K){var c=new Kz;c.add(H.schedule(function(){var p=d[oV]();c.add(p.subscribe({next:function(g){c.add(H.schedule(function(){return K.next(g)}))},
error:function(g){c.add(H.schedule(function(){return K.error(g)}))},
complete:function(){c.add(H.schedule(function(){return K.complete()}))}}))}));
return c})};
L6X=function(d,H){return new GV(function(K){return H.schedule(function(){return d.then(function(c){K.add(H.schedule(function(){K.next(c);K.add(H.schedule(function(){return K.complete()}))}))},function(c){K.add(H.schedule(function(){return K.error(c)}))})})})};
M2i=function(d){return new TypeError("da`"+(d!==null&&typeof d==="object"?"an invalid object":"'"+d+"'"))};
wiY=function(d,H){if(d!=null){if(Hi(d[oV]))return h7Y(d,H);if(mjF(d))return nsL(d,H);if(Hi(d==null?void 0:d.then))return L6X(d,H);if(Symbol.asyncIterator&&Hi(d==null?void 0:d[Symbol.asyncIterator]))return CXM(d,H);if(Hi(d==null?void 0:d[V21]))return Uj5(d,H)}throw M2i(d);};
lX=function(d,H){return H?wiY(d,H):aV(d)};
aV=function(d){if(d instanceof GV)return d;if(d!=null){if(Hi(d[oV]))return PX5(d);if(mjF(d))return uUf(d);if(Hi(d==null?void 0:d.then))return IKY(d);if(Symbol.asyncIterator&&Hi(d==null?void 0:d[Symbol.asyncIterator]))return r1h(d);if(Hi(d==null?void 0:d[V21]))return W6F(d)}throw M2i(d);};
PX5=function(d){return new GV(function(H){var K=d[oV]();if(Hi(K.subscribe))return K.subscribe(H);throw new TypeError("ea");})};
uUf=function(d){return new GV(function(H){for(var K=0;K<d.length&&!H.closed;K++)H.next(d[K]);H.complete()})};
IKY=function(d){return new GV(function(H){d.then(function(K){H.closed||(H.next(K),H.complete())},function(K){return H.error(K)}).then(null,pz)})};
W6F=function(d){return new GV(function(H){for(var K=d[V21]();!H.closed;){var c=K.next(),p=c.value;c.done?H.complete():H.next(p)}return function(){return Hi(K==null?void 0:K.return)&&K.return()}})};
r1h=function(d){return new GV(function(H){Bu4(d,H).catch(function(K){return H.error(K)})})};
Bu4=function(d,H){var K,c,p,g,a,e;return _.l(function(k){switch(k.nextAddress){case 1:_.e2(k,2,3),g=_.ks(d);case 5:return k.yield(g.next(),8);case 8:c=k.yieldResult;if(c.done){k.jumpTo(3);break}a=c.value;H.next(a);k.jumpTo(5);break;case 3:_.xs(k);_.nz(k,9);if(!c||c.done||!(p=g.return)){k.jumpTo(9);break}return k.yield(p.call(g),9);case 9:_.xs(k,0,0,1);if(K)throw K.error;_.Cz(k,10,1);break;case 10:_.Cz(k,4);break;case 2:e=_.RV(k);K={error:e};k.jumpTo(3);break;case 4:H.complete(),_.VE(k)}})};
z7l=function(d,H){return H?nsL(d,H):uUf(d)};
XiC=function(d){return Hi(d[d.length-1])?d.pop():void 0};
UE=function(d){var H=d[d.length-1];return H&&Hi(H.schedule)?d.pop():void 0};
h1=function(){var d=_.sH.apply(0,arguments),H=UE(d);return H?nsL(d,H):z7l(d)};
m6=function(d){var H=Hi(d)?d:function(){return d};
return new GV(function(K){return K.error(H())})};
wu=function(d){return function(H){if(Hi(H==null?void 0:H.lift))return H.lift(function(K){try{return d(K,this)}catch(c){this.error(c)}});
throw new TypeError("fa");}};
uX=function(){return wu(function(d,H){var K=null;d._refCount++;var c=new Pi(H,void 0,void 0,void 0,function(){if(!d||d._refCount<=0||0<--d._refCount)K=null;else{var p=d._connection,g=K;K=null;!p||g&&p!==g||p.unsubscribe();H.unsubscribe()}});
d.subscribe(c);c.closed||(K=d.connect())})};
sVF=function(){var d=J1F;var H=H===void 0?0:H;return wu(function(K,c){c.add(d.schedule(function(){return K.subscribe(c)},H))})};
IV=function(d){return wu(function(H,K){var c=0;H.subscribe(new Pi(K,function(p){K.next(d.call(void 0,p,c++))}))})};
Zzf=function(d){return IV(function(H){return F6M(H)?d.apply(null,_.ru(H)):d(H)})};
OzC=function(d){if(d.length===1){var H=d[0];if(TuD(H))return{args:H,keys:null};if(H&&typeof H==="object"&&QVM(H)===t2M)return d=YE4(H),{args:d.map(function(K){return H[K]}),
keys:d}}return{args:d,keys:null}};
Wi=function(){var d=_.sH.apply(0,arguments),H=UE(d),K=XiC(d);d=OzC(d);var c=d.args,p=d.keys;if(c.length===0)return lX([],H);H=new GV(SE5(c,H,p?function(g){for(var a={},e=0;e<g.length;e++)a[p[e]]=g[e];return a}:gu));
return K?H.pipe(Zzf(K)):H};
SE5=function(d,H,K){K=K===void 0?gu:K;return function(c){EsF(H,function(){for(var p=d.length,g=Array(p),a=p,e=d.map(function(){return!1}),k=!0,C={i$jscomp$216:0};C.i$jscomp$216<p;C={i$jscomp$216:C.i$jscomp$216},C.i$jscomp$216++)EsF(H,function(R){return function(){lX(d[R.i$jscomp$216],H).subscribe(new Bi(c,function(V){g[R.i$jscomp$216]=V;
k&&(e[R.i$jscomp$216]=!0,k=!e.every(gu));k||c.next(K(g.slice()))},function(){return--a===0}))}}(C),c)},c)}};
EsF=function(d,H,K){d?K.add(d.schedule(H)):H()};
y1M=function(d,H,K,c){var p=[],g=0,a=0,e=!1,k=function(C){g++;aV(K(C,a++)).subscribe(new Pi(H,function(R){H.next(R)},void 0,function(){g--;
for(var R={};p.length&&g<c;R={bufferedValue:void 0})R.bufferedValue=p.shift(),k(R.bufferedValue);!e||p.length||g||H.complete()}))};
d.subscribe(new Pi(H,function(C){return g<c?k(C):p.push(C)},void 0,function(){e=!0;
!e||p.length||g||H.complete()}));
return function(){p=null}};
zV=function(d,H){var K=K===void 0?Infinity:K;if(Hi(H))return zV(function(c,p){return IV(function(g,a){return H(c,g,p,a)})(aV(d(c,p)))},K);
typeof H==="number"&&(K=H);return wu(function(c,p){return y1M(c,p,d,K)})};
bzF=function(d){d=d===void 0?Infinity:d;return zV(gu,d)};
NuE=function(){var d=_.sH.apply(0,arguments);return bzF(1)(z7l(d,UE(d)))};
DjY=function(d){return new GV(function(H){aV(d()).subscribe(H)})};
XU=function(d,H,K){if(Hi(K)){var c=K;K=void 0}if(c)return XU(d,H,K).pipe(Zzf(c));c=_.q(Hi(d.addEventListener)&&Hi(d.removeEventListener)?fKf.map(function(a){return function(e){return d[a](H,e,K)}}):Hi(d.addListener)&&Hi(d.removeListener)?A1D.map(jVD(d,H)):Hi(d.on)&&Hi(d.off)?vs4.map(jVD(d,H)):[]);
var p=c.next().value,g=c.next().value;return!p&&mjF(d)?zV(function(a){return XU(a,H,K)})(z7l(d)):new GV(function(a){if(!p)throw new TypeError("ga");
var e=function(){var k=_.sH.apply(0,arguments);return a.next(1<k.length?k:k[0])};
p(e);return function(){return g(e)}})};
jVD=function(d,H){return function(K){return function(c){return d[K](H,c)}}};
sE=function(){var d=_.sH.apply(0,arguments),H=UE(d);var K=typeof d[d.length-1]==="number"?d.pop():Infinity;return d.length?d.length===1?aV(d[0]):bzF(K)(z7l(d,H)):J1};
HB5=function(d){return d.length===1&&d6h(d[0])?d[0]:d};
$6M=function(){var d=HB5(_.sH.apply(0,arguments));return wu(function(H,K){var c=[H].concat(_.ru(d)),p=function(){if(!K.closed)if(c.length>0){try{var g=aV(c.shift())}catch(e){p();return}var a=new Pi(K,void 0,ci,ci);K.add(g.subscribe(a));a.add(p)}else K.complete()};
p()})};
FU=function(d){return wu(function(H,K){var c=0;H.subscribe(new Pi(K,function(p){return d.call(void 0,p,c++)&&K.next(p)}))})};
cAl=function(){var d=_.sH.apply(0,arguments);d=HB5(d);return d.length===1?aV(d[0]):new GV(KV4(d))};
KV4=function(d){return function(H){for(var K=[],c={i$jscomp$219:0};K&&!H.closed&&c.i$jscomp$219<d.length;c={i$jscomp$219:c.i$jscomp$219},c.i$jscomp$219++)K.push(aV(d[c.i$jscomp$219]).subscribe(new Pi(H,function(p){return function(g){if(K){for(var a=0;a<K.length;a++)a!==p.i$jscomp$219&&K[a].unsubscribe();K=null}H.next(g)}}(c))))}};
pfE=function(){var d=_.sH.apply(0,arguments),H=XiC(d),K=HB5(d);return K.length?new GV(function(c){var p=K.map(function(){return[]}),g=K.map(function(){return!1});
c.add(function(){p=g=null});
for(var a={sourceIndex$jscomp$1:0};!c.closed&&a.sourceIndex$jscomp$1<K.length;a={sourceIndex$jscomp$1:a.sourceIndex$jscomp$1},a.sourceIndex$jscomp$1++)aV(K[a.sourceIndex$jscomp$1]).subscribe(new Pi(c,function(e){return function(k){p[e.sourceIndex$jscomp$1].push(k);p.every(function(C){return C.length})&&(k=p.map(function(C){return C.shift()}),c.next(H?H.apply(null,_.ru(k)):k),p.some(function(C,R){return!C.length&&g[R]})&&c.complete())}}(a),void 0,function(e){return function(){g[e.sourceIndex$jscomp$1]=
!0;
!p[e.sourceIndex$jscomp$1].length&&c.complete()}}(a)));
return function(){p=g=null}}):J1};
g5M=function(d){var H,K,c;return!!d&&typeof d.active==="boolean"&&typeof((H=d.clock)==null?void 0:H.now)==="function"&&((K=d.clock)==null?void 0:K.timeline)!==void 0&&!((c=d.lastMeasurement)==null||!c.timestamp)&&typeof d.equivalentTo==="function"&&typeof d.extrapolateToNow==="function"&&typeof d.extrapolateToTime==="function"&&typeof d.map==="function"&&typeof d.joinWith==="function"};
iBi=function(d){function H(K){return typeof K==="boolean"||typeof K==="string"||typeof K==="number"||K===void 0||K===null}
return H(d)?!0:Array.isArray(d)?d.every(H):typeof d==="object"?Object.keys(d).every(function(K){return typeof K==="string"})&&Object.values(d).every(function(K){return Array.isArray(K)?K.every(H):H(K)}):!1};
GoX=function(d){if(iBi(d))return d;if(g5M(d))return{lastMeasurement:{value:GoX(d.lastMeasurement.value),timestamp:ZK(d.lastMeasurement.timestamp,new TV(0,d.lastMeasurement.timestamp.timeline))},active:d.active};try{return JSON.parse(JSON.stringify(d))}catch(H){}return String(d)};
t1=function(d,H){return function(K){return new GV(function(c){return K.subscribe(function(p){d.timeExecution(H,function(){c.next(p)})()},function(p){d.timeExecution(H,function(){c.error(p)})()},function(){d.timeExecution(H,function(){c.complete()})()})})}};
o55=function(d,H){var K=!1;return new GV(function(c){var p=d.setTimeout(function(){K=!0;c.next(!0);c.complete()},H);
return function(){K||d.clearTimeout(p)}})};
qYi=function(d){d=d.global;if(d.fetchLater)return d.fetchLater.bind(d)};
Ys=function(d){return wu(function(H,K){var c=null,p=!1,g;c=H.subscribe(new Pi(K,void 0,function(a){g=aV(d(a,Ys(d)(H)));c?(c.unsubscribe(),c=null,g.subscribe(K)):p=!0}));
p&&(c.unsubscribe(),c=null,g.subscribe(K))})};
a$f=function(d,H,K){return function(c,p){var g=K,a=H,e=0;c.subscribe(new Pi(p,function(k){var C=e++;a=g?d(a,k,C):(g=!0,k);p.next(a)},void 0,void 0))}};
l$l=function(d){d=d===void 0?null:d;return wu(function(H,K){var c=!1;H.subscribe(new Pi(K,function(p){c=!0;K.next(p)},void 0,function(){c||K.next(d);
K.complete()}))})};
OE=function(){return wu(function(d,H){d.subscribe(new Pi(H,ci))})};
S2=function(d){return wu(function(H,K){H.subscribe(new Pi(K,function(){return K.next(d)}))})};
EE=function(d){return d<=0?function(){return J1}:wu(function(H,K){var c=0;
H.subscribe(new Pi(K,function(p){++c<=d&&(K.next(p),d<=c&&K.complete())}))})};
yE=function(d){var H=H===void 0?gu:H;var K;d=(K=d)!=null?K:ec4;return wu(function(c,p){var g,a=!0;c.subscribe(new Pi(p,function(e){var k=H(e);if(a||!d(g,k))a=!1,g=k,p.next(e)}))})};
ec4=function(d,H){return d===H};
x65=function(d){d=d===void 0?koh:d;return wu(function(H,K){var c=!1;H.subscribe(new Pi(K,function(p){c=!0;K.next(p)},void 0,function(){return c?K.complete():K.error(d())}))})};
koh=function(){return new n54};
bX=function(){var d=_.sH.apply(0,arguments);return function(H){return NuE(H,h1.apply(null,_.ru(d)))}};
Ck1=function(d){return wu(function(H,K){var c=0;H.subscribe(new Pi(K,function(p){d.call(void 0,p,c++,H)||(K.next(!1),K.complete())},void 0,function(){K.next(!0);
K.complete()}))})};
RcC=function(){return wu(function(d,H){var K=[];d.subscribe(new Pi(H,function(c){K.push(c);1<K.length&&K.shift()},void 0,function(){for(var c=_.q(K),p=c.next();!p.done;p=c.next())H.next(p.value);
H.complete()},function(){K=null}))})};
VuL=function(d,H){var K=arguments.length>=2;return function(c){return c.pipe(d?FU(function(p,g){return d(p,g,c)}):gu,RcC(),K?l$l(H):x65(function(){return new n54}))}};
DK=function(d){var H=Hi(d)?d:function(){return d};
return Hi()?wu(function(K,c){var p=H();(void 0)(p).subscribe(c).add(K.subscribe(p))}):function(K){var c=new Nj(K,H);
Hi(K==null?void 0:K.lift)&&(c.lift=K.lift);c.source=K;c.subjectFactory=H;return c}};
A1=function(d){var H=new fz(d,void 0,void 0);return function(K){return DK(function(){return H})(K)}};
j2=function(d,H){return wu(a$f(d,H,arguments.length>=2))};
vi=function(){var d=_.sH.apply(0,arguments),H=UE(d);return wu(function(K,c){(H?NuE(d,K,H):NuE(d,K)).subscribe(c)})};
Hf=function(d){return wu(function(H,K){var c=null,p=0,g=!1;H.subscribe(new Pi(K,function(a){var e;(e=c)==null||e.unsubscribe();e=p++;aV(d(a,e)).subscribe(c=new Pi(K,function(k){return K.next(k)},void 0,function(){c=null;
g&&!c&&K.complete()}))},void 0,function(){(g=!0,!c)&&K.complete()}))})};
$5=function(d,H){H=H===void 0?!1:H;return wu(function(K,c){var p=0;K.subscribe(new Pi(c,function(g){var a=d(g,p++);(a||H)&&c.next(g);!a&&c.complete()}))})};
U6E=function(d,H,K){var c=Hi(d)||H||K?{next:d,error:H,complete:K}:d;return c?wu(function(p,g){p.subscribe(new Pi(g,function(a){var e;(e=c.next)==null||e.call(c,a);g.next(a)},function(a){var e;
(e=c.error)==null||e.call(c,a);g.error(a)},function(){var a;
(a=c.complete)==null||a.call(c);g.complete()}))}):gu};
hcL=function(){var d=_.sH.apply(0,arguments),H=XiC(d);return wu(function(K,c){for(var p=d.length,g=Array(p),a=d.map(function(){return!1}),e=!1,k={i$jscomp$229:0};k.i$jscomp$229<p;k={i$jscomp$229:k.i$jscomp$229},k.i$jscomp$229++)aV(d[k.i$jscomp$229]).subscribe(new Pi(c,function(C){return function(R){g[C.i$jscomp$229]=R;
e||a[C.i$jscomp$229]||(a[C.i$jscomp$229]=!0,(e=a.every(gu))&&(a=null))}}(k),void 0,ci));
K.subscribe(new Pi(c,function(C){e&&(C=[C].concat(_.ru(g)),c.next(H?H.apply(null,_.ru(C)):C))}))})};
MuE=function(d){try{return!!d&&d.location.href!=null&&LVM(d,"foo")}catch(H){return!1}};
m65=function(d){var H=[],K=0,c;for(c in d)H[K++]=c;return H};
wfY=function(d,H){for(var K in d)if(d[K]==H)return!0;return!1};
PkE=function(d,H,K){for(var c in d)if(H.call(K,d[c],c,d))return c};
uFY=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 H=Array.isArray(d)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(d)||d instanceof DataView?{}:new d.constructor(d.length),K;for(K in d)H[K]=uFY(d[K]);return H};
I$5=function(d){var H=arguments.length;if(H==1&&Array.isArray(arguments[0]))return I$5.apply(null,arguments[0]);if(H%2)throw Error("ka");for(var K={},c=0;c<H;c+=2)K[arguments[c]]=arguments[c+1];return K};
rAL=function(d){var H=arguments.length;if(H==1&&Array.isArray(arguments[0]))return rAL.apply(null,arguments[0]);for(var K={},c=0;c<H;c++)K[arguments[c]]=!0;return K};
_.KB=function(d){return new izi(d[0].toLowerCase())};
WVh=function(d){for(var H=_.sH.apply(1,arguments),K=d[0],c=0;c<d.length-1;c++)K+=String(H[c]),K+=d[c+1];H=document.implementation.createHTMLDocument("");c=H.createElement("style");H.head.appendChild(c);H=c.sheet;H.insertRule(K,0);if(H.cssRules.length===1&&(K=H.cssRules[0],K instanceof CSSStyleRule))return new du(K.cssText.replace(/</g,"\\3C "))};
BsF=function(d){try{return new URL(d,window.document.baseURI)}catch(H){return new URL("about:invalid")}};
zcX=function(d,H){var K=H.createRange();K.selectNode(H.body);d=tL(d);return K.createContextualFragment(YO(d))};
Xfi=function(d){d=d.nodeName;return typeof d==="string"?d:"FORM"};
JA5=function(d){d=d.nodeType;return d===1||typeof d!=="number"};
cf=function(d,H,K){d.setAttribute(H,K)};
srY=function(d){return d.parts.map(function(H){var K=H.descriptor;return""+H.url+(K?" "+K:"")}).join(" , ")};
_.pB=function(d){var H=_.sH.apply(1,arguments);if(H.length===0)return _.hL(d[0]);for(var K=d[0],c=0;c<H.length;c++)K+=encodeURIComponent(H[c])+d[c+1];return _.hL(K)};
_.gs=function(d,H){d=_.Lc(d).toString();var K=d.split(/[?#]/),c=/[?]/.test(d)?"?"+K[1]:"";return FVl(K[0],c,/[#]/.test(d)?"#"+(c?K[2]:K[1]):"",H)};
FVl=function(d,H,K,c){function p(a,e){a!=null&&(Array.isArray(a)?a.forEach(function(k){return p(k,e)}):(H+=g+encodeURIComponent(e)+"="+encodeURIComponent(a),g="&"))}
var g=H.length?"&":"?";c.constructor===Object&&(c=Object.entries(c));Array.isArray(c)?c.forEach(function(a){return p(a[1],a[0])}):c.forEach(p);
return _.hL(d+H+K)};
ik=function(d,H,K,c){this.top=d;this.right=H;this.bottom=K;this.left=c};
ZB4=function(d){d=d.global;if(d.PendingGetBeacon)return d.PendingGetBeacon};
q6=function(d){return function(H){return H.pipe(TsF(d,DK(new Go)))}};
lk=function(d){return function(H){return H.pipe(TsF(d,A1(1)))}};
TsF=function(d,H){function K(c){return new GV(function(p){return c.subscribe(function(g){eu(d,function(){return void p.next(g)},3)},function(g){eu(d,function(){return void p.error(g)},3)},function(){eu(d,function(){return void p.complete()},3)})})}
return iX(K,sVF(),H,uX(),K)};
YYh=function(d){var H=QrM(d);return H===null?new k5(null):H.pipe(IV(function(K){K=K.serialize();if(tuD)K=_.KF.btoa(K);else{for(var c=[],p=0,g=0;g<K.length;g++){var a=K.charCodeAt(g);a>255&&(c[p++]=a&255,a>>=8);c[p++]=a}K=_.mb(c)}return K}),EE(1),lk(d.queue))};
OBX=function(d){var H=H===void 0?{}:H;if(typeof Event==="function")return new Event(d,H);if(typeof document!=="undefined"){var K=document.createEvent("CustomEvent");K.initCustomEvent(d,H.bubbles||!1,H.cancelable||!1,H.detail);return K}throw Error();};
SY5=function(d){return typeof d==="string"?document.getElementById(d):d};
yAD=function(d){var H=!1;H=H===void 0?!1:H;if(d.tagName==="IMG"){if(d.complete&&(!d.naturalWidth||!d.naturalHeight))return!0;var K;if(H&&((K=d.style)==null?void 0:K.display)==="none")return!0}var c,p;return E5l.test((c=d.getAttribute("width"))!=null?c:"")&&E5l.test((p=d.getAttribute("height"))!=null?p:"")};
bB1=function(d,H){if(d.tagName==="IMG")return d.naturalWidth&&d.naturalHeight?!0:!1;try{if(d.readyState)var K=d.readyState;else{var c,p;K=(c=d.contentWindow)==null?void 0:(p=c.document)==null?void 0:p.readyState}return K==="complete"}catch(g){return H===void 0?!1:H}};
NsL=function(d){d||(d=function(H,K,c){H.addEventListener(K,c)});
return d};
jrY=function(d,H){var K=D61();K=K===void 0?new f$h:K;if(d=SY5(d)){var c=NsL(c);for(var p=!1,g=function(J){p||(p=!0,H(J))},a,e=2,k=0;k<AAi.length;++k)if(AAi[k]===d.tagName){e=3;
a=[d];break}a||(a=d.querySelectorAll(AAi.join(",")));var C=0,R=0,V=!0,U=d=!1;k={};for(var L=0;L<a.length;k={isImg:void 0},L++){var w=a[L];if(!yAD(w))if(k.isImg=w.tagName==="IMG",bB1(w,K.crossDomainLoadedDefault))d=!0,k.isImg&&(V=!0);else{C++;var W=function(J){return function(F){C--;!C&&V&&g(e);J.isImg&&(F=F&&F.type==="error",R--,F||(V=!0),!R&&U&&V&&g(e))}}(k);
c(w,"load",W);k.isImg&&(R++,c(w,"error",W))}}R===0&&(V=!0);a=null;a=_.KF.document.readyState==="complete";if(C===0&&!d&&a)e=5;else if(C||!d){c(_.KF,"load",function(){!K.pendingImagesBlockLoad||!R&&V?g(4):U=!0});
return}g(e)}};
v5f=function(d,H,K){if(d)for(var c=0;d!=null&&c<500&&!K(d);++c)d=H(d)};
d_X=function(d,H){v5f(d,function(K){try{return K===K.parent?null:K.parent}catch(c){}return null},H)};
HAF=function(d,H){if(d.tagName=="IFRAME")H(d);else{d=d.querySelectorAll("IFRAME");for(var K=0;K<d.length&&!H(d[K]);++K);}};
$_X=function(d){return(d=d.ownerDocument)&&(d.parentWindow||d.defaultView)||null};
KcM=function(d,H,K){try{var c=JSON.parse(K.data)}catch(a){}if(typeof c==="object"&&c&&c.type==="creativeLoad"){var p=$_X(d);if(K.source&&p){var g;d_X(K.source,function(a){try{if(a.parent===p)return g=a,!0}catch(e){}});
g&&HAF(d,function(a){if(a.contentWindow===g)return H(c),!0})}}};
c_F=function(d){return typeof d==="string"?document.getElementById(d):d};
GiX=function(){var d={};return d[0]=_.pB(pzM,"current"),d[1]=_.pB(g1D),d[2]=_.pB(iA5),d};
x5=function(d,H){return d.left===H.left&&d.top===H.top&&d.width===H.width&&d.height===H.height};
o14=function(d,H){return{left:Math.max(d.left,H.left),top:Math.max(d.top,H.top),width:Math.max(0,Math.min(d.left+d.width,H.left+H.width)-Math.max(d.left,H.left)),height:Math.max(0,Math.min(d.top+d.height,H.top+H.height)-Math.max(d.top,H.top))}};
q8E=function(d,H){return{left:Math.round(d.left+H.x),top:Math.round(d.top+H.y),width:d.width,height:d.height}};
aBi=function(d,H,K){if(d&&H!==null&&H!=H.top){if(!H.top)return new _.nB(-12245933,-12245933);H=H.top}try{return(K===void 0?0:K)?(new _.nB(H.innerWidth,H.innerHeight)).round():_.CB(H).round()}catch(c){return new _.nB(-12245933,-12245933)}};
lBh=function(d,H,K){try{if(d){if(!H.top)return new ik(-12245933,-12245933,-12245933,-12245933);H=H.top}var c=aBi(d,H,K),p=c.height,g=c.width;if(g===-12245933)return new ik(g,g,g,g);var a=Rr(Vy(H.document)),e=a.x,k=a.y;return new ik(k,e+g,k+p,e)}catch(C){return new ik(-12245933,-12245933,-12245933,-12245933)}};
ez5=function(d){var H;return(H=d.google_tag_data)!=null?H:d.google_tag_data={}};
ki5=function(d){var H,K;return typeof((H=d.navigator)==null?void 0:(K=H.userAgentData)==null?void 0:K.getHighEntropyValues)==="function"};
n1F=function(d){if(!ki5(d))return null;var H=ez5(d);if(H.uach_promise)return H.uach_promise;d=d.navigator.userAgentData.getHighEntropyValues(x_E).then(function(K){H.uach!=null||(H.uach=K);return K});
return H.uach_promise=d};
IBf=function(d){var H;return CrL(Rz5(VXY(U_1(hz4(LcF(MXi(m_C(wzh(new PrC,d.architecture||""),d.bitness||""),d.mobile||!1),d.model||""),d.platform||""),d.platformVersion||""),d.uaFullVersion||""),((H=d.fullVersionList)==null?void 0:H.map(function(K){var c=new uBC;c=_.UY(c,1,K.brand);return _.UY(c,2,K.version)}))||[]),d.wow64||!1)};
r_4=function(d){var H,K;return(K=(H=n1F(d))==null?void 0:H.then(function(c){return IBf(c)}))!=null?K:null};
Wch=function(d,H){return new GV(function(K){var c=!1,p=Array(H.length);p.fill(void 0);var g=new Set,a=new Set,e=function(V,U){d.running?(p[U]=V,g.add(U),c||(c=!0,eu(d,function(){c=!1;K.next(_.tC(p))},1))):K.error(new M6(U))},k=function(V,U){a.add(U);
g.add(U);eu(d,function(){K.error(V)},1)},C=function(V){a.add(V);
eu(d,function(){a.size===H.length&&K.complete()},1)},R=H.map(function(V,U){return V.subscribe(function(L){return void e(L,U)},function(L){return void k(L,U)},function(){return void C(U)})});
return function(){R.forEach(function(V){return void V.unsubscribe()})}})};
XzM=function(d,H,K){function c(){if(H.debugChannel){var J=H.debugChannel,F=J.next;var Y={creativeId:H.debugNames.getName(K),requiredSignals:p,signals:Object.assign({},g),hasPrematurelyCompleted:a,errorMessage:e,erroredSignalKey:k};Y={specMajor:2,specMinor:0,specPatch:0,timestamp:ZK(H.timeProvider.now(),new TV(0,H.timeProvider.timeline)),instanceId:H.debugNames.getName(H.symbol),creativeState:Y};F.call(J,Y)}}
for(var p=Object.keys(d),g={},a=!1,e=null,k=null,C={},R=new Set,V=[],U=[],L=_.q(p),w=L.next(),W={};!w.done;W={key$jscomp$396:void 0},w=L.next())W.key$jscomp$396=w.value,w=d[W.key$jscomp$396],w instanceof k5?(C[W.key$jscomp$396]=w.value,R.add(W.key$jscomp$396),H.debugChannel&&(g[String(W.key$jscomp$396)]=GoX(w.value))):(w=w.pipe(yE(function(J,F){return g5M(J)||g5M(F)?!1:J===F}),IV(function(J){return function(F){H.debugChannel&&(g[String(J.key$jscomp$396)]=GoX(F),c());
var Y={};return Y[J.key$jscomp$396]=F,Y}}(W)),Ys(function(J){return function(F){if(F instanceof M6)throw new Bk5(String(J.key$jscomp$396));
throw F;}}(W)),U6E(function(J){return function(){R.add(J.key$jscomp$396)}}(W),function(J){return function(F){k=String(J.key$jscomp$396);
e=String(F);c()}}(W),function(J){return function(){R.has(J.key$jscomp$396)||(a=!0,c())}}(W))),U.push(W.key$jscomp$396),V.push(w));
(d=Object.keys(g).length>0)&&c();L=Wch(H.queue,V).pipe(Ys(function(J){if(J instanceof M6)throw new zzC(String(U[J.inputObservableIndex]));throw J;}),IV(function(J){return Object.freeze(Object.assign.apply(Object,[{},
C].concat(_.ru(J))))}));
return(V=V.length>0)&&d?sE(h1(Object.freeze(C)),L):V?L:h1(Object.freeze(C))};
J_Y=function(d,H,K,c,p){return d.performanceMonitor.timeExecution.bind(d.performanceMonitor)(733,function(){var g={};try{return H.pipe(Ys(function(a){c(Object.assign({},g,{error:a}));return J1}),zV(function(a){try{var e=K(d,a)}catch(C){return c(Object.assign({},g,{error:C instanceof Error?C:String(C)})),J1}var k={};
return XzM(e,d,a.symbol).pipe(U6E(function(C){k=C}),A1(1),uX()).pipe(p,Ys(function(C){c(Object.assign({},k,{error:C}));
return J1}),bX(void 0),IV(function(){return!0}))})).pipe(j2(function(a){return a+1},0),Ys(function(a){c(Object.assign({},g,{error:a}));
return J1}))}catch(a){return c(Object.assign({},g,{error:a})),J1}})()};
mV=function(d){var H=new Map;if(typeof d!=="object"||d===null)return H;Object.values(d).forEach(function(K){K&&typeof K.extrapolateToNow==="function"&&(H.has(K.clock.timeline)||H.set(K.clock.timeline,K.clock.now()))});
return H};
s4F=function(d,H){return typeof d==="string"?encodeURIComponent(d):typeof d==="number"?String(d):Array.isArray(d)?d.map(function(K){return s4F(K,H)}).join(","):d instanceof TV?d.toString():d&&typeof d.extrapolateToNow==="function"?s4F(d.extrapolateUsingTimestampMap(H).value,H):d===!0?"1":d===!1?"0":d===void 0||d===null?null:d instanceof FcL?ZAM(d):[d.top,
d.left,d.top+d.height,d.left+d.width].join()};
Tk5=function(d,H){d=Object.entries(d).map(function(K){var c=_.q(K);K=c.next().value;c=c.next().value;c=s4F(c,H);return c===null?"":K+"="+c}).filter(function(K){return K!==""});
return d.length?d.join("&"):""};
Y8Y=function(d,H){var K=Q4h,c=tXl;H=H===void 0?.01:H;return function(p){H>0&&Math.random()<=H&&(d.global.HTMLFencedFrameElement&&d.global.fence&&typeof d.global.fence.reportEvent==="function"&&d.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),p=Object.assign({},p,{errorMessage:p.error instanceof Error&&p.error.message?p.error.message:String(p.error),errorStack:p.error instanceof Error&&p.error.stack?String(p.error.stack):null,errorName:p.error instanceof
Error&&p.error.name?String(p.error.name):null,errorContext:String(d.performanceMonitor.timedFunctionContext),errorEscapedQueryId:p.escapedQueryId}),K(Object.assign({},p,{payloadMapper:function(){return function(g){try{return c(Object.assign({},g))}catch(a){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),mV(p)).forEach(function(g){d.beaconFactory.makeBeacon(g).sendNow()}))}};
OA4=function(){var d=_.sH.apply(0,arguments);return function(H){var K=H.pipe(A1(1),uX());H=d.map(function(c){return K.pipe(c,bX(!0))});
return Wi(H).pipe(EE(1),OE())}};
S8f=function(){var d=_.sH.apply(0,arguments);return function(H){var K=H.pipe(A1(1),uX());H=d.map(function(c){return K.pipe(c,bX(!0))});
return sE.apply(null,_.ru(H)).pipe(EE(1),OE())}};
E14=function(d,H){return function(K){var c=K.pipe(A1(1),uX());K=c.pipe(d,bX(!0));c=c.pipe(iX(H,A1(),uX()),bX(!0));K=Wi([K,c]);return cAl(K,c).pipe(EE(1),OE())}};
y_h=function(d,H,K){K(!0)};
bAE=function(d,H){return iX(Hf(function(K){var c=d(K),p=H(K),g={};return c&&p&&g?new GV(function(a){p(c,g,function(e){a.next(Object.assign({},K,{canEmit:e}));a.complete()});
return function(){}}):ws}),FU(function(K){return K.canEmit}))};
Nki=function(d){var H={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(K){return K.pipe(Hf(function(c){return new GV(function(p){function g(){e.disconnect();k.unsubscribe()}
var a=d.MutationObserver;if(a&&c.ref!==void 0){var e=new a(function(C){p.next(C)});
e.observe(c.ref,H);var k=c.JSC$9331_released.subscribe(g);return g}})}))}};
D_5=function(d){if(d.measurementDeferralState===3)return null;if(d.timeOnScreenReason!==void 0){var H=d.creativeFound===!1?"n":null;if(H!==null)return H}return d.geometricMeasurementErrors instanceof Pf?"msf":d.contextValidationErrors instanceof Ir?"c":d.contextVisibilityKnown===!1?"pv":d.geometricMeasurementErrors||d.contextValidationErrors?"x":null};
A_h=function(d,H){return d.replace(fBl,function(K,c){try{var p=_.rs.get(H,c);if(p==null||p.toString()==null)return K;p=p.toString();if(p==""||!_.oE(p==null?"":String(p)))return encodeURIComponent(p).replace(/%2C/g,",")}catch(g){}return K})};
j4F=function(d,H){var K=Object.assign({},d),c=d.userAgentClientHints;K=(delete K.userAgentClientHints,K);K=d.payloadMapper(K);var p=Tk5(K,H);return _.Wf(d.urlPrefixes,function(g){var a="";typeof c==="string"&&(a="&"+Tk5({uach:c},H));var e={};return A_h(g,(e.VIEWABILITY=p,e))+a})};
Q4h=function(d,H){var K=d.payloadMapper(d),c=Tk5(K,H);return c?_.Wf(d.urlPrefixes,function(p){p=p.indexOf("?")>=0?p:p+"?";p="?&".indexOf(p.slice(-1))>=0?p:p+"&";return p+c}):d.urlPrefixes};
v1i=function(){return iX(FU(function(d){return d!==void 0}),IV(function(d){return d}))};
dtD=function(d){return iX(IV(function(){return!0}),vi(!1),lk(d))};
HlE=function(d){return d.length<=0?J1:Wi(d.map(function(H){var K=0;return H.pipe(IV(function(c){return{index:K++,value:c}}))})).pipe(FU(function(H){return H.every(function(K){return K.index===H[0].index})}),IV(function(H){return H.map(function(K){return K.value})}))};
$tX=function(d,H){d.currentState&&(d.previousState=d.currentState);d.currentState=H;d.previousState&&d.previousState.value?(H=Math.max(0,ZK(H.timestamp,d.previousState.timestamp)),d.totalTime+=H,d.consecutiveTime+=H):d.consecutiveTime=0;return d};
K5l=function(){return iX(j2($tX,{totalTime:0,consecutiveTime:0}),IV(function(d){return d.totalTime}))};
ctF=function(){return iX(j2($tX,{totalTime:0,consecutiveTime:0}),IV(function(d){return d.consecutiveTime}))};
pkM=function(d,H){return function(K){return HlE(H.map(function(c){return K.pipe(d(c))}))}};
gmY=function(){var d;return iX(U6E(function(H){return void(d=H.timestamp)}),ctF(),IV(function(H){return{timestamp:d,
value:Math.round(H)}}))};
ilC=function(d,H){return x5(d.topWindowViewportExternalGeometry,H.topWindowViewportExternalGeometry)&&x5(d.elementGeometry,H.elementGeometry)&&x5(d.exposedViewportLocalGeometry,H.exposedViewportLocalGeometry)&&x5(d.intersectionGeometry,H.intersectionGeometry)&&d.elementGeometrySourceName===H.elementGeometrySourceName&&d.measurementRequests===H.measurementRequests&&d.viewportGeometrySourceName===H.viewportGeometrySourceName&&d.viewportLocalAppOffset.x===H.viewportLocalAppOffset.x&&d.viewportLocalAppOffset.y===
H.viewportLocalAppOffset.y};
ap1=function(d,H){return function(K){return function(c){var p=c.pipe(DK(new Go),uX());c=K.element.pipe(yE());p=p.pipe(IV(function(g){return g.value}));
return Wi([c,p,H]).pipe(IV(function(g){var a=_.q(g);g=a.next().value;var e=a.next().value;a=a.next().value;if(g.ref===void 0)var k={top:0,left:0,width:0,height:0};else{k=g.ref.getBoundingClientRect();var C=g.ref,R=d.global,V=new _.Bf(0,0),U=zo(_.XF(C));if(LVM(U,"parent")){do{if(U==R)var L=_.JA(C);else L=GOL(C),L=new _.Bf(L.left,L.top);V.x+=L.x;V.y+=L.y}while(U&&U!=R&&U!=U.parent&&(C=U.frameElement)&&(U=U.parent))}k={top:V.y,left:V.x,width:k.width,height:k.height}}k=q8E(k,e.viewportLocalAppOffset);
R=o14(k,e.exposedViewportLocalGeometry);V=d.timeProvider.now();U=Object;C=U.assign;if(a!==2||d.inCrossDomainIframe||R.width<=0||R.height<=0)var w=!1;else try{var W=d.document.elementFromPoint(R.left+R.width/2,R.top+R.height/2);w=W?!omX(W,g):!1}catch(J){w=!1}return{timestamp:V,value:C.call(U,{},e,{elementGeometrySourceName:"geo",intersectionGeometry:w?qef.intersectionGeometry:R,elementGeometry:k})}}),q6(d.queue))}}};
omX=function(d,H,K){K=K===void 0?0:K;return d.ref===void 0||H.ref===void 0?!1:d.ref===H.ref||_.sY(H.ref,function(c){return c===d.ref})?!0:H.ref.ownerDocument&&H.ref.ownerDocument.defaultView&&H.ref.ownerDocument.defaultView===H.ref.ownerDocument.defaultView.top?!1:K<10&&H.ref.ownerDocument&&H.ref.ownerDocument.defaultView&&H.ref.ownerDocument.defaultView.frameElement?omX(d,new FF(H.ref.ownerDocument.defaultView.frameElement),K+1):!0};
kOf=function(d){return function(H){return H.pipe(d.ResizeObserver?lpY(d):eKX(d),A1(1),uX())}};
lpY=function(d){return function(H){return H.pipe(Hf(function(K){var c=d.ResizeObserver;if(!c||K.ref===void 0)return h1(qef.elementGeometry);var p=(new GV(function(g){function a(){K.ref!==void 0&&e.unobserve(K.ref);e.disconnect();k.unsubscribe()}
if(K.ref===void 0)return g.complete(),function(){};
var e=new c(function(C){C.forEach(function(R){g.next(R)})});
e.observe(K.ref);var k=K.JSC$9331_released.subscribe(a);return a})).pipe(t1(d.performanceMonitor,736),IV(function(g){return g.contentRect}));
return sE(h1(K.ref.getBoundingClientRect()),p)}),yE(x5))}};
eKX=function(d){return function(H){var K=H.pipe(Nki(d)),c=d.onResize;K=sE(H.pipe(IV(function(){return OBX("resize")})),K,c);
return Wi(H,K).pipe(t1(d.performanceMonitor,737),IV(function(p){p=_.q(p).next().value;return p.ref===void 0?void 0:p.ref.getBoundingClientRect()}),v1i(),yE(x5))}};
CjY=function(d,H){var K=xtX(d,H).pipe(A1(1),uX());return function(c){return function(p){p=p.pipe(Hf(function(g){return g.element}),yE());
return Wi([K,p]).pipe(Hf(function(g){var a=_.q(g);g=a.next().value;a=a.next().value;return nmM(d,g.intersectionObserver,kOf(d),g.observations,c,g.flushRecords,a)}),q6(d.queue))}}};
RK5=function(d){return IV(function(H){return H.value.viewportGeometrySourceName!=="nio"?H:Object.assign({},H,{value:Object.assign({},H.value,{exposedViewportLocalGeometry:Z$(d,!0),topWindowViewportExternalGeometry:Z$(d,!0)})})})};
Vyl=function(d,H){return h1(H).pipe(d,IV(function(){return H}))};
xtX=function(d,H){return d.timeProvider.timeline!==UtX?m6(new Pf(2)):d.MutationObserver?typeof IntersectionObserver==="undefined"?m6(new Pf(0)):(new GV(function(K){var c=new Go,p=new To(c.next.bind(c),{threshold:[].concat(_.ru(H))});K.next({observations:c.pipe(t1(d.performanceMonitor,735)),intersectionObserver:p,flushRecords:function(g){g=p.takeRecords(g);g.length>0&&c.next(g)}})})).pipe(EE(1),A1(1),uX()):m6(new Pf(1))};
hKh=function(d){return wiY(d.sort(function(H,K){return H.time-K.time}),J1F)};
nmM=function(d,H,K,c,p,g,a){return new GV(function(e){function k(){w||(w=!0,a.ref!==void 0&&H.unobserve(p,a.ref),R.unsubscribe(),L.unsubscribe(),U.unsubscribe(),W.unsubscribe())}
if(a.ref!==void 0){L5i(H,p);H.observe(p,a.ref);var C=new Qy({timestamp:d.timeProvider.now(),value:Object.assign({},qef,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),R=c.pipe(zV(function(J){return hKh(J)}),FU(function(J){return J.target===a.ref}),IV(function(J){return{timestamp:new TV(J.time,UtX),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:J.rootBounds||tA,topWindowViewportExternalGeometry:J.rootBounds||Z$(d,!0),measurementRequests:V,elementGeometrySourceName:"nio",intersectionGeometry:J.intersectionRect,elementGeometry:J.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:J.isIntersecting,isV2Visible:J.isVisible}}}),DK(C),uX()).subscribe(e),V=new Go,U=V.subscribe(function(){g(p);
e.next({timestamp:d.timeProvider.now(),value:C.value.value});a.ref!==void 0&&(H.unobserve(p,a.ref),H.observe(p,a.ref))}),L=Vyl(K,a).subscribe(function(){V.next()}),w=!1,W=a.JSC$9331_released.subscribe(function(){return k()});
return k}})};
My1=function(d,H){var K=d.getOnBackgrounded().pipe(IV(function(){return"b"}));
return cAl(H,K).pipe(EE(1),lk(d.queue))};
Y5=function(d){return function(H){var K;return H.pipe(U6E(function(c){return void(K=c.timestamp)}),IV(function(c){return c.value}),d,IV(function(c){return{timestamp:K,
value:c}}))}};
mt1=function(d){return d.intersectionGeometry.width*d.intersectionGeometry.height/(d.elementGeometry.width*d.elementGeometry.height)};
OY=function(d,H,K){K=K===void 0?function(c,p){return c===p}:K;
return d.timestamp.equals(H.timestamp)&&K(d.value,H.value)};
yy=function(d,H){return H.pipe(IV(function(K){return new EY(d.timeProvider,{timestamp:d.timeProvider.now(),value:K})}))};
wkF=function(d){return function(H){return H.pipe(hcL(d),IV(function(K){var c=_.q(K);K=c.next().value;c=c.next().value;var p=K.value;return{timestamp:K.timestamp,value:p>=1?!0:p<=0?!1:p>=c}}))}};
uqF=function(){return iX(FU(function(d,H){return H>0}),Pjl,vi(-1),yE())};
IpE=function(d,H,K){return d?Wi([H,K]).pipe(FU(function(c){var p=_.q(c);c=p.next().value;p=p.next().value;return c.timestamp.equals(p.timestamp)}),IV(function(c){var p=_.q(c);
c=p.next().value;p=p.next().value;return c.value>p.value?c:p})):H};
BcD=function(d){return function(H){var K=H.pipe(rtl),c=H.pipe(W5D);return d instanceof GV?d.pipe(Hf(function(p){return IpE(p,K,c)})):IpE(d.value,K,c)}};
YeC=function(d,H,K,c){var p=c.geometryIsOccluded,g=c.exposureThreshold,a=c.wasLargeAdAtRender,e=c.allowLargeAdThreshold,k=c.largeAdExposureThreshold,C=c.mayUseViewportShareExposure,R=c.hasMeasurementStarted;c=c.useIntersectionObserverV2;H=zKL(d,K,H);K=XkL(d,K);c=Jt4(H,c);var V=sHM(d,p,C,H),U=V.pipe(IV(function(N){return N.value}),yE(),lk(d),j2(function(N,y){return Math.max(N,y)},0)),L=V.pipe(IV(function(N){return N.value}),uqF(),lk(d)),w=H.pipe(F5C,IV(function(N){return N.value}),EE(2),yE(),lk(d));
a=ZlC(d,H,a,e);var W=a.pipe(vi(!1),yE(),IV(function(N){return N?k:g}));
e=V.pipe(wkF(W),yE(),lk(d));var J=Wi([e,H]).pipe(FU(function(N){var y=_.q(N);N=y.next().value;y=y.next().value;return N.timestamp.equals(y.timestamp)}),IV(function(N){var y=_.q(N);
N=y.next().value;y=y.next().value;return{visible:N.value,geometry:y.value.elementGeometry}}),j2(function(N,y){return!y.visible&&N.visible?N:y},{visible:!1,
geometry:tA}),IV(function(N){return N.geometry}),vi(tA),lk(d),yE(x5));
C=C instanceof GV?C.pipe(yE(),S2()):ws;W=Wi([C,W]).pipe(S2());var F=H.pipe(FU(function(N){return N.value.viewportGeometrySourceName!=="ns"&&N.value.elementGeometrySourceName!=="ns"}),j2(function(N){return N+1},0),vi(0),lk(d)),Y=K.pipe(S2(!0),vi(!1),lk(d));
Y=Wi([R,Y]).pipe(IV(function(N){var y=_.q(N);N=y.next().value;y=y.next().value;return N&&!y}),lk(d));
var A=H.pipe(TcC,yE()),E=A.pipe(IV(function(N){return N.value}),j2(function(N,y){return Math.max(N,y)},0),yE(),lk(d));
d=A.pipe(IV(function(N){return N.value}),uqF(),lk(d));
return{shouldResetExposureSignals:C,shouldResetViewabilitySignals:W,geometrySignals:{readyGeometryWithDefault:H,measurementStrategy:H.pipe(QHM),creativePosition:J.pipe(yE(x5)),visible:e.pipe(yE(OY)),timestampedExposure:V.pipe(yE(OY)),maximumExposure:U,minimumExposure:L,browserSize:H.pipe(tyY,yE(_.DD)),timestampedScreenShare:A,maxScreenShare:E,minScreenShare:d,geometricMeasurementErrors:K,measurementRequests:H.pipe(IV(function(N){return N.value.measurementRequests})),
isLargeAd:a,geometryIsOccluded:p,hasMeasurementStarted:R,geometryMeasurable:Y,validMeasurementCount:F,loadTimeExposure:w,v2VisibilityBitVector:c}}};
XkL=function(d,H){return H.pipe(FU(function(){return!1}),IV(function(K){return K}),Ys(function(K){return bk(new k5(K),d)}))};
zKL=function(d,H,K){return H.pipe($6M(ws),lk(d)).pipe(yE(function(c,p){return OY(c,p,ilC)}),vi({timestamp:K.now(),
value:qef}),lk(d))};
sHM=function(d,H,K,c){K=c.pipe(BcD(K),Y5(IV(function(p){return Math.round(p*100)/100})),lk(d));
return H instanceof k5?K:Wi([K,H]).pipe(IV(function(p){var g=_.q(p);p=g.next().value;g=g.next().value;return{timestamp:g.timestamp.maximum(p.timestamp),value:g.value?0:p.value}}),yE(OY),lk(d))};
ZlC=function(d,H,K,c){H=[H.pipe(IV(function(p){return p.value.elementGeometry.width*p.value.elementGeometry.height>=242500}))];
K instanceof GV&&H.push(K.pipe(IV(function(p){return!!p})));
K=Wi(H);return c?K.pipe(IV(function(p){return p.some(function(g){return g})}),vi(!1),yE(),lk(d)):bk(new k5(!1),d)};
Jt4=function(d,H){d=Wi([d,H]).pipe(IV(function(p){var g=_.q(p);p=g.next().value;if(g.next().value&&p.value.isIntersecting)return p.value.isV2Visible}),yE());
var K=d.pipe(IV(function(p){return p===void 0?!0:p}),j2(function(p,g){return p||!g},!1)),c=d.pipe(j2(function(p,g){return g===void 0?p:g?!1:p!=null?p:!0},void 0),IV(function(p){return!!p}));
return Wi([H,pfE(d,K,c)]).pipe(IV(function(p){var g=_.q(p);p=g.next().value;var a=_.q(g.next().value);g=a.next().value;var e=a.next().value;a=a.next().value;var k=0;if(!p)return 0;if(g===void 0)return 16;g&&(k|=1);g||(k|=2);e&&(k|=4);a&&(k|=8);return k}))};
NcX=function(d,H,K,c,p){var g=OlX.timeThresholdMs;var a=a===void 0?new SeD(H,c):a;return(new GV(function(e){var k=K.pipe(vi(void 0),Hf(function(){return Em1(p)})).pipe(IV(function(C){var R=C.value;
C=C.timestamp;var V=R.visible;R=R.consecutiveViewTime;var U=R>=g;U||!V?ytM(a):(C=Math.max(0,ZK(H.now(),C)),blF(a,Math.max(0,g-R-C)));return U}),j2(function(C,R){return R||C},!1),yE()).subscribe(e);
return function(){a.dispose();k.unsubscribe()}})).pipe($5(function(e){return!e},!0),lk(d))};
Em1=function(d){return HlE([d,d.pipe(gmY())]).pipe(IV(function(H){var K=_.q(H);H=K.next().value;K=K.next().value;return{timestamp:H.timestamp,value:{visible:H.value,consecutiveViewTime:K.value}}}),yE(function(H,K){return OY(H,K,function(c,p){return c.consecutiveViewTime===p.consecutiveViewTime&&c.visible===p.visible})}))};
DtE=function(){return iX(ctF(),j2(function(d,H){return Math.max(d,H)},0),IV(function(d){return Math.round(d)}))};
fpC=function(d){return iX(wkF(h1(d)),DtE())};
AtX=function(d,H){return H instanceof GV?H.pipe(Hf(function(K){return(K=K?15:null)?m6(new Pf(K)):d})):(H=H.value?15:null)?m6(new Pf(H)):d};
jHC=function(d){var H=new Pf(13);if(d.length<1)return{chain:J1,capturedErrors:J1};var K=new Go,c=d[0];return{chain:d.slice(1).reduce(function(p,g){return p.pipe(Ys(function(a){K.next(a);return g}))},c).pipe(Ys(function(p){K.next(p);
return m6(H)}),DK(new Go),uX()),
capturedErrors:K}};
vmC=function(d,H){var K=d.pipe(DK(new Go),uX());return Hf(function(c){return K.pipe(H(c))})};
H6F=function(d,H){if(d.inCrossDomainIframe)return m6(new Pf(6));var K=new Go;return sE(h1({}),H,K).pipe(IV(function(){return{timestamp:d.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:dMF(d),topWindowViewportExternalGeometry:Z$(d,!0),measurementRequests:K,viewportLocalAppOffset:{x:0,y:0}}}}),q6(d.queue))};
dMF=function(d){var H=Z$(d,!1);if(!d.inIframe||!MuE(d.global.parent)||d.global.parent===d.global)return H;var K=new N6(d.global.parent,d.debugChannel);K.beaconFactory=d.beaconFactory;K=dMF(K);d=d.global.frameElement.getBoundingClientRect();return o14(q8E(o14(K,d),{x:H.left-d.left,y:H.top-d.top}),H)};
$ML=function(d){if(d.prerendering)return 3;var H;return(H={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[d.visibilityState||d.webkitVisibilityState||d.mozVisibilityState||""])!=null?H:0};
KSD=function(d){return d.document.JSC$9342_onVisibilityChange.pipe(IV(function(H){return H==="visible"}),yE(),lk(d.queue))};
cmL=function(d,H,K){var c;return H.pipe(yE(),Hf(function(p){return K.pipe(IV(function(){if(!c){c=!0;try{p.next()}finally{c=!1}}return!0}))}),vi(!1),lk(d.queue))};
pEE=function(d){return iX(Y5(IV(function(H){return H>=1?!0:H<=0?!1:H>=d})),K5l(),IV(function(H){return Math.round(H)}))};
i6M=function(d,H,K,c,p){var g=g24;if(g.length>1)for(var a=0;a<g.length-1;a++)if(g[a]<g[a+1])throw Error();a=p.pipe(vi(void 0),Hf(function(){return K.pipe(gmY())}),yE(),lk(d));
p=p.pipe(vi(void 0),Hf(function(){return K.pipe(DtE())}),yE(),lk(d));
return{totalMeasurementTime:c.pipe(vi(void 0),Hf(function(){return H.pipe(IV(function(e){return{timestamp:e.timestamp,value:!0}}),K5l())}),yE(),lk(d)),
totalUnviewedTime:c.pipe(vi(void 0),Hf(function(){return H.pipe(IV(function(e){return{timestamp:e.timestamp,value:e.value===0}}),K5l())}),yE(),lk(d)),
maxTimeOnScreen:c.pipe(vi(void 0),Hf(function(){return H.pipe(pkM(fpC,g))}),yE(_.DD),lk(d)),
timeOnScreen:c.pipe(vi(void 0),Hf(function(){return H.pipe(pkM(pEE,g),IV(function(e){return e.map(function(k,C){return C>0?k-e[C-1]:k})}))}),yE(_.DD),lk(d)),
maxConsecutiveViewTime:p,consecutiveViewTime:a.pipe(yE(OY),lk(d))}};
o24=function(d){var H=!0;H=H===void 0?!1:H;return iX(Hf(function(K){return G95(d.document,K,H)}),lk(d.queue))};
qS5=function(d,H,K){var c=K.pipe(IV(function(p){return{value:p,timestamp:d.timeProvider.now()}}),yE(OY));
return H instanceof GV?H.pipe(yE(),Hf(function(p){return p?bk(new k5({value:!1,timestamp:d.timeProvider.now()}),d.queue):c})):H.value===!1?c:new k5(!1)};
aY1=function(d,H,K,c,p,g,a){var e=OlX;H=H instanceof GV?H.pipe(vi(!1),yE()):H;var k=!d.isMobile();K=qS5(d,K,c);d=a.measurableCreative.pipe(dtD(d.queue));return Object.assign({},e,{geometryIsOccluded:K,wasLargeAdAtRender:p,allowLargeAdThreshold:k,mayUseViewportShareExposure:H,hasMeasurementStarted:d,useIntersectionObserverV2:g})};
ehf=function(d,H,K,c,p,g){var a=1;g=g===void 0?!0:g;a=a===void 0?.01:a;var e=e===void 0?d.timeProvider.intervalObservable(100).pipe(lk(d.queue)):e;return d.performanceMonitor.timeExecution(916,function(){return lYM(d,H.pipe(q6(d.queue)),K.pipe(q6(d.queue)),c,p,g,a,e)})()};
lYM=function(d,H,K,c,p,g,a,e){var k=KSD(d).pipe(IV(function(R){return!R})),C=new k9C(d,[new xMl(d,g24),
new n25(d,e)]);e=OA4(CUY,RhX);return J_Y(d,H,function(R,V){var U=bk(new k5(V.element),R.queue).pipe(o24(R),lk(R.queue)),L={loadedElement:U,shouldMeasure:U.pipe(S2(!0)),measurableCreative:U.pipe(IV(function(N){var y=y===void 0?Symbol():y;return Object.freeze({symbol:y,element:bk(new k5(N),R.queue)})})),
creativeSearchResult:bk(new k5("mue"),R.queue)},w=new k5(!1),W=new k5(!1),J=new k5(17),F=new k5(!1),Y=new k5(!1),A=bk(D$,R.queue);w=C.buildGeometrySource(L,{inApp:w,useV2:!1,requestSource:bk(J,R.queue)}).geometrySource;L=aY1(R,F,W,k,Y,A,L);W=YeC(R.queue,R.timeProvider,w,L);L=W.geometrySignals;F=W.shouldResetViewabilitySignals;W=i6M(R.queue,L.timestampedExposure,L.visible,W.shouldResetExposureSignals,F);F=NcX(R.queue,R.timeProvider,F,L.measurementRequests,L.visible);Y=K.pipe(FU(function(N){return N===
V.element.ref}),IV(function(){return"ur"}));
A=o55(R.timeProvider,p).pipe(S2("t"));Y=My1(R,sE(Y,A));A=cmL(R,L.measurementRequests,Y.pipe(FU(function(N){return N!==null})));
w=Y.pipe(FU(function(N){return N!==null}),IV(function(){return $ML(R.global.document)===1}));
var E=VDX(R.document);return Object.assign({},{beaconFactory:new k5(R.beaconFactory),context:new k5(R),inferredPingId:new k5("lidar2"),timeOnScreenPingId:new k5("lidartos"),binaryContext:new k5(17),binaryVersion:new k5(c),requestSource:J,contextValidationErrors:new k5(R.validate()?null:new Ir),contextVisibilityKnown:new k5(E),payloadMapper:new k5(tXl),endOfSessionReason:Y,timeOnScreenReason:Y,requestMeasurementOnEndOfSession:A,hasImpressionFired:UM5,crossDomainIframeState:new k5(R.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:D$,inFetchLaterBeaconExperiment:D$,isTurtlex:D$,turtlexReportEventData:new k5(""),reportFencedFrameEvent:ws,isViewableAttributionEnabled:D$,inViewableAttributionExperiment:new k5(0),fetchBeaconFactory:ws,supportsPendingBeacon:D$,supportsFetchLater:D$,emit:new k5(y_h),beginToRenderEvent:new k5(Symbol()),activeViewUnmeasurableEvent:new k5(Symbol()),activeViewViewableEvent:new k5(Symbol()),creativeFound:UM5,immediateUrlPrefixes:new k5(V.immediateUrls),timeOnScreenUrlPrefixes:new k5(V.timeOnScreenUrls),
cpmavUrls:ws,viewableRelayUrls:ws,measurementDeferralState:new k5(2),urlSerializer:new k5(j4F),viewUrlSerializer:new k5(hhL),isCreativeLoaded:U.pipe(dtD(R.queue)),pageVisible:k.pipe(IV(function(N){return!N})),
eosPageVisible:w,timestampedExposureHistory:L.timestampedExposure.pipe(j2(function(N,y){N.push(y);return N},[]))},L,{viewable:yy(R,F),
maxTimeOnScreen:yy(R,W.maxTimeOnScreen),timeOnScreen:yy(R,W.timeOnScreen),maxConsecutiveViewTime:yy(R,W.maxConsecutiveViewTime),consecutiveViewTime:W.consecutiveViewTime.pipe(IV(function(N){return new EY(R.timeProvider,N)})),
totalMeasurementTime:yy(R,W.totalMeasurementTime),totalUnviewedTime:yy(R,W.totalUnviewedTime),userAgentClientHints:YYh(R),clientOrderPingCounter:new k5(new FcL)})},Y8Y(d,a),S8f(g?E14(e,LSD):E14(e,MD4),mMC))};
wEX=function(d){var H=_.sH.apply(1,arguments).filter(Boolean).join("&");if(!H)return d;var K=d.match(/[?&]adurl=/);return K?d.slice(0,K.index+1)+H+"&"+d.slice(K.index+1):d+(d.indexOf("?")<0?"?":"&")+H};
fB=function(d,H){return H?"&"+d+"="+encodeURIComponent(H):""};
PUC=function(){try{var d,H;return!!((d=window)==null?0:(H=d.top)==null?0:H.location.href)&&!1}catch(K){return!0}};
_.AA=function(d){d&&typeof d.dispose=="function"&&d.dispose()};
_.ju=function(d){for(var H=0,K=arguments.length;H<K;++H){var c=arguments[H];_.O5(c)?_.ju.apply(null,c):_.AA(c)}};
IYC=function(){var d=umF();d=d===void 0?"bevasrsg":d;return new Promise(function(H){var K=window===window.top?window:PUC()?window:window.top,c=K[d],p;((p=c)==null?0:p.bevasrs)?H(new vf(c.bevasrs)):(c||(c={},c=(c.nqfbel=[],c),K[d]=c),c.nqfbel.push(function(g){H(new vf(g))}))})};
rmX=function(d){var H={c:d.wF,e:d.a3c,mc:d.iEY,me:d.mx7};d.iP&&(H.co={c:d.iP.mQT,a:d.iP.ccH,s:d.iP.yld});return H};
WSE=function(d){var H,K,c={wF:d.c,a3c:d.e,iEY:(H=d.mc)!=null?H:!1,mx7:(K=d.me)!=null?K:!1};d.co&&(c.iP={mQT:d.co.c,ccH:d.co.a,yld:d.co.s});return c};
B9L=function(d){return function(){var H;return _.l(function(K){if(K.nextAddress==1)return K.yield(d(),2);H=K.yieldResult;return K.return({f:function(){return H.vA7()},
c:function(c){return H.non(c)},
m:function(c){return H.c8(WSE(c))},
mws:function(c){return H.ijt(WSE(c))}})})}};
zhC=function(d,H){var K=umF();K=K===void 0?"bevasrsg":K;H={s:function(g){var a;return d.snapshot(Object.assign({},g.c&&{wF:g.c},g.s&&{zqc:g.s},{t4I:(a=g.p)!=null?a:!0}))},
e:function(g){var a;return void((a=d.mg4)==null?void 0:a.call(d,g))},
c:function(g,a){return d.cPw(g,a)},
p:d.nAF,l:function(){return d.wDb()},
wpc:H?B9L(H):void 0};var c=window===window.top?window:PUC()?window:window.top,p=c[K];if(p){p.bevasrs=H;if(p.nqfbel!==void 0)for(K=_.q(p.nqfbel),c=K.next();!c.done;c=K.next())c=c.value,c(H);p.nqfbel=void 0}else p={},p=(p.bevasrs=H,p.nqfbel=void 0,p),c[K]=p};
Jm1=function(d){var H=H===void 0?51:H;var K=[];_.dk(d,XEL,6,_.Hz()).forEach(function(c){_.$1(c,2)<=H&&K.push(_.$1(c,1))});
return K};
ssE=function(d){var H=H===void 0?51:H;var K=[];_.dk(d,XEL,6,_.Hz()).forEach(function(c){_.$1(c,2)>H&&K.push(_.$1(c,1))});
return K};
FSY=function(d){d.then(function(){},function(){})};
KA=function(d){return{fieldType:1,fieldName:d}};
cz=function(d){return{fieldType:2,fieldName:d}};
_.pA=function(d){return{fieldType:3,fieldName:d}};
Z64=function(){function d(){p[0]=1732584193;p[1]=4023233417;p[2]=2562383102;p[3]=271733878;p[4]=3285377520;R=C=0}
function H(V){for(var U=a,L=0;L<64;L+=4)U[L/4]=V[L]<<24|V[L+1]<<16|V[L+2]<<8|V[L+3];for(L=16;L<80;L++)V=U[L-3]^U[L-8]^U[L-14]^U[L-16],U[L]=(V<<1|V>>>31)&4294967295;V=p[0];var w=p[1],W=p[2],J=p[3],F=p[4];for(L=0;L<80;L++){if(L<40)if(L<20){var Y=J^w&(W^J);var A=1518500249}else Y=w^W^J,A=1859775393;else L<60?(Y=w&W|J&(w|W),A=2400959708):(Y=w^W^J,A=3395469782);Y=((V<<5|V>>>27)&4294967295)+Y+F+A+U[L]&4294967295;F=J;J=W;W=(w<<30|w>>>2)&4294967295;w=V;V=Y}p[0]=p[0]+V&4294967295;p[1]=p[1]+w&4294967295;p[2]=
p[2]+W&4294967295;p[3]=p[3]+J&4294967295;p[4]=p[4]+F&4294967295}
function K(V,U){if(typeof V==="string"){V=unescape(encodeURIComponent(V));for(var L=[],w=0,W=V.length;w<W;++w)L.push(V.charCodeAt(w));V=L}U||(U=V.length);L=0;if(C==0)for(;L+64<U;)H(V.slice(L,L+64)),L+=64,R+=64;for(;L<U;)if(g[C++]=V[L++],R++,C==64)for(C=0,H(g);L+64<U;)H(V.slice(L,L+64)),L+=64,R+=64}
function c(){var V=[],U=R*8;C<56?K(e,56-C):K(e,64-(C-56));for(var L=63;L>=56;L--)g[L]=U&255,U>>>=8;H(g);for(L=U=0;L<5;L++)for(var w=24;w>=0;w-=8)V[U++]=p[L]>>w&255;return V}
for(var p=[],g=[],a=[],e=[128],k=1;k<64;++k)e[k]=0;var C,R;d();return{reset:d,update:K,digest:c,digestString:function(){for(var V=c(),U="",L=0;L<V.length;L++)U+="0123456789ABCDEF".charAt(Math.floor(V[L]/16))+"0123456789ABCDEF".charAt(V[L]%16);return U}}};
SSM=function(d,H){H=H===void 0?T95:H;if(!Qsi){var K;d=(K=d.navigator)==null?void 0:K.userAgentData;if(!d||typeof d.getHighEntropyValues!=="function"||d.brands&&typeof d.brands.map!=="function")return Promise.reject(Error("ua"));tDX((d.brands||[]).map(function(p){var g=new YSL;g=_.UY(g,1,p.brand);return _.UY(g,2,p.version)}));
typeof d.mobile==="boolean"&&_.gk(O61,2,d.mobile);Qsi=d.getHighEntropyValues(H)}var c=new Set(H);return Qsi.then(function(p){var g=O61.clone();c.has("platform")&&_.UY(g,3,p.platform);c.has("platformVersion")&&_.UY(g,4,p.platformVersion);c.has("architecture")&&_.UY(g,5,p.architecture);c.has("model")&&_.UY(g,6,p.model);c.has("uaFullVersion")&&_.UY(g,7,p.uaFullVersion);return g.serialize()}).catch(function(){return O61.serialize()})};
ir=function(d,H,K,c){this.initialValue_=d;this.maxValue_=H;this.currBaseValue_=this.currValue_=d;this.randomFactor_=K||0;this.backoffFactor_=c||2};
Gi=function(d){this.src=d;this.listeners={};this.typeCount_=0};
N9E=function(){for(var d;d=E2l.remove();){try{d.fn.call(d.scope)}catch(H){cF(H)}ymf.put(d)}b6F=!1};
_.DMh=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}};
fYM=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""}};
_.AmF=function(){};
gp5=function(d,H,K,c){d=jsF(v2E(dQF(new _.o4(1828,"0"),d),new HjC)).disableWithCredentials();H.length&&$Q1(d,K1l(new cXE,H));c!==void 0&&(d.destinationUrl=c);var p=new pbX(1828,"","",!1,"",d.build());_.q_(p,d);var g=new a4({flush:function(a){try{p.flush(a)}catch(e){K(e)}}});
g.addOnDisposeCallback(function(){setTimeout(function(){try{g.snapshotAndFlush()}finally{p.dispose()}})});
g.invocationLimit=1E5;g.flushInterval=3E4;g.JSC$9758_flushTimer.setInterval(3E4);return g};
lr=function(){var d,H,K;return(K=(d=globalThis.performance)==null?void 0:(H=d.now)==null?void 0:H.call(d))!=null?K:Date.now()};
opl=function(d,H){if(d.disable)return new ijE;H=H?Jm1(H):[];d={pS:d.pS,yus:d.gbD,l56:d.qYv,destinationUrl:d.destinationUrl,mLQ:d.mLQ,cjF:d.cjF};H=H===void 0?[]:H;return new GJf(d,H)};
qm4=function(d){if(!d)return null;d=_.k1(d,2);return d===null||d===void 0?null:tL(d)};
_.aOD=function(d){if(!d)return null;d=_.k1(d,4);return d===null||d===void 0?null:_.hL(d)};
BfY=function(d,H){return H?lOX(H):d?edi(d):Promise.resolve()};
lOX=function(d){return new Promise(function(H,K){var c=_.x1("SCRIPT"),p=_.aOD(d);_.fc(c,p);c.onload=function(){_.nA(c);H()};
c.onerror=function(){_.nA(c);K(Error("Fa"))};
(CA("HEAD")[0]||document.documentElement).appendChild(c)})};
edi=function(d){return new Promise(function(H){var K=_.x1("SCRIPT");if(d){var c=_.k1(d,6);c=c===null||c===void 0?null:_.NN(c)}else c=null;_.Dw(K,c);(CA("HEAD")[0]||document.documentElement).appendChild(K);_.nA(K);H()})};
R4=function(d,H,K){var c,p=new Promise(function(g){c=setTimeout(g,H)});
return Promise.race([d.finally(function(){return void clearTimeout(c)}),
p.then(K)])};
zdl=function(d,H){try{return globalThis.sessionStorage.setItem(d,H),!0}catch(K){return!1}};
XbM=function(d,H,K,c){H=H===void 0?0:H;K=K===void 0?d.length:K;var p=0;for(c&&(p=XbM(c));H<K;H++)c=typeof d==="string"?d.charCodeAt(H):d[H],p=JXi(31,p)+c|0;return p};
s5l=function(d,H){return[XbM(d,0,d.length>>1,H),XbM(d,d.length>>1)]};
F15=function(d){var H=_.q(s5l(d,Ve));d=H.next().value;H=H.next().value;return d.toString(16)+H.toString(16)};
ZjM=function(d,H){var K=s5l(H);d=new Uint32Array(d.buffer);H=d[0];var c=_.q(K);K=c.next().value;c=c.next().value;for(var p=1;p<d.length;p+=2){for(var g=H,a=p,e=K,k=c,C=0;C<22;C++)a=a>>>8|a<<24,a+=g|0,a^=e+38293,g=g<<3|g>>>29,g^=a,k=k>>>8|k<<24,k+=e|0,k^=C+38293,e=e<<3|e>>>29,e^=k;g=[g,a];d[p]^=g[0];p+1<d.length&&(d[p+1]^=g[1])}};
TfE=function(d,H,K,c,p){var g=(4-(Ve.length+K.length)%4)%4,a=new Uint8Array(4+g+Ve.length+4+K.length),e=new DataView(a.buffer),k=0;e.setUint32(k,Math.random()*4294967295);k=k+4+g;a.set(Ve,k);k+=Ve.length;e.setUint32(k,p);a.set(K,k+4);ZjM(a,c);return d.insert(H,function(C){return void globalThis.sessionStorage.removeItem(C)})?zdl(H,_.mb(a))?"s":"t":"i"};
Q5h=function(d,H){var K=globalThis.sessionStorage.getItem(d);if(!K)return["m"];try{var c=_.fF(K);ZjM(c,H)}catch(p){return globalThis.sessionStorage.removeItem(d),["c"]}for(H=4;H<7&&c[H]===0;)H++;for(K=0;K<Ve.length;K++)if(c[H++]!==Ve[K])return globalThis.sessionStorage.removeItem(d),["d"];K=(new DataView(c.buffer)).getUint32(H);return Math.floor(Date.now()/1E3)>=K?(globalThis.sessionStorage.removeItem(d),["e"]):["a",new Uint8Array(c.buffer,H+4)]};
tbF=function(d){return globalThis.TextEncoder?(new TextEncoder).encode(d):_.U8(d)};
YmE=function(d){var H=d,K;return function(){if(H){var c=H;H=void 0;K=c.apply(this,arguments)}return K}};
SmX=function(d){return z3(function(H){if(H instanceof d)return!0;var K,c,p=H==null?void 0:(K=H.ownerDocument)==null?void 0:(c=K.defaultView)==null?void 0:c[d.name];return OjC(p)&&H instanceof p})};
_.M_=function(d,H,K){_.h_.call(this);this.JSC$9971_listener_=d;this.JSC$9971_interval_=H||0;this.handler_=K;this.callback_=(0,_.LA)(this.JSC$9973_doAction_,this)};
_.mc=function(d){d=EpX(d);return _.hL(d)};
EpX=function(d){return d===null?"null":d===void 0?"undefined":d};
bjh=function(d){if(d&&d.focus)if(d!==document.activeElement)d.focus();else return yXX(function(){return _.l(function(H){document.activeElement&&document.activeElement.blur();return H.return(yXX(function(){d.focus()}))})})};
_.NfC=function(d){var H=H===void 0?5:H;setTimeout(function(){var K;return _.l(function(c){c.nextAddress==1&&(K=document.activeElement);if(c.nextAddress!=5)return(document.activeElement===K||document.activeElement===document.body)&&H>=0&&d?c.yield(bjh(d),5):c.jumpTo(0);if(document.activeElement===d)return c.return();d=d.parentElement;--H;return c.jumpTo(2)})},15)};
yXX=function(d){return new Promise(function(H){requestAnimationFrame(function(){H(d())})})};
fOY=function(d){if(_.wk)d(_.wk);else{var H;((H=DQX)!=null?H:DQX=[]).push(d)}};
ur=function(){!_.wk&&_.Pz&&_.AX1(_.Pz());return _.wk};
_.AX1=function(d){_.wk=d;var H;(H=DQX)==null||H.forEach(fOY);DQX=void 0};
_.I4=function(d){_.wk&&_.wk.beforeLoadModuleCode(d)};
_.rk=function(){_.wk&&_.wk.JSC$10985_setLoaded()};
Wz=function(d){return I0l(d)?Number(d):String(d)};
j5f=function(d){this.action=d;this.wfv=!1};
vp4=function(d,H){j5f.call(this,"set-drive-options");this.appId=d;this.appOrigin=H};
dlF=function(d){j5f.call(this,"visibility");this.visible=d};
H4F=function(d,H,K){Bz.call(this,d,H,K)};
$l4=function(d){zi.call(this,d)};
Kw5=function(d){d=d&&d.getWindow()||window;return d.gadgets&&d.gadgets.rpc};
pM1=function(d,H){var K=H&&H.getWindow()||window;if(Kw5(H))d();else if(c5F)c5F.push(d);else var c=c5F=[d],p=K.setInterval(function(){if(Kw5(H)){K.clearInterval(p);for(var g=0;g<c.length;g++)c[g]();c5F=null}},100)};
i4l=function(d,H){var K=new J_(d);_.q_(H,K);var c={passive:!1};H.listen(K,"mousewheel",function(p){return void gGh(d,p)},c).listen(d,"scroll",function(p){return void gGh(d,p)},c)};
gGh=function(d,H){var K;a:{for(K=H.target;K;){if(K.nodeType==1){var c=_.s8(K,"overflowY");if(c=="auto"||c=="scroll")break a}K=K.parentNode}K=null}if(!K||!_.FB(d,K)||K.scrollHeight==K.clientHeight||H.deltaY>0&&Math.abs(K.scrollTop-(K.scrollHeight-K.clientHeight))<=1||H.deltaY<0&&K.scrollTop==0)H.preventDefault(),H.stopPropagation()};
SX=function(d,H,K,c,p,g,a,e,k){e=e===void 0?!1:e;k=k===void 0?!1:k;Bz.call(this,void 0,void 0,void 0);Bz.call(this,g?g+" picker modal-dialog":"picker modal-dialog",!0,K);_.ZB(d,"protocol");this.iframeManager_=new G1i;this.targetId_=Ti();this.rpcToken_=Ti();d=_.Qe(d);_.t_(d,"hostId");K=_.t_(d,"parent");this.useGapi_=!k&&!0||(K==null?void 0:K.includes("onepick.corp.google.com"));e&&_.Y1(d,"fv2","true");this.setUrl(d.toString());this.preferredDialogWidth_=c;this.preferredDialogHeight_=p;c!==void 0||
p!==void 0?c=!0:(c=_.t_(_.Qe(d.toString()),"hostId"),oG5||(oG5=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),c=!oG5.has(c));this.autoSizeDialog_=c;this.JSC$10161_gadgetsDomHelper_=a||this.JSC$10112_dom_;H&&(a=this.JSC$10161_gadgetsDomHelper_,H=_.t_(_.Qe(this.JSC$10163_url_),"grugl")=="true"?qXi:a7F,Kw5(a)||(a=a||Vy(document),c=a.createElement("SCRIPT"),_.fc(c,H),c.type="text/javascript",a.JSC$9297_document_.body.appendChild(c)));
d=d.toString();H=null;a=d.indexOf("/picker?");a>-1?H=d.substring(0,a+8-1):i1(d,"/picker")&&(H=d);H&&this.setRelayUrl(H+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(d=this.buttons_,d.JSC$10146_element_=this.buttonEl_,d.render()):_.AL(this.buttonEl_,l7h),_.O8(this.buttonEl_,!!this.buttons_))};
_.nGi=function(d){var H=H===void 0?eLM:H;var K=_.b1(d),c=function(g){g=_.q(g);g.next();g=E8(g);return H(K,g)},p=function(g){var a=_.q(g);
g=a.next().value;a=E8(a);return d.apply(g,a)};
return function(){var g=_.sH.apply(0,arguments),a=this||_.KF,e=k1C.get(a);e||(e={},k1C.set(a,e));return xlX(e,[this].concat(_.ru(g)),p,c)}};
ye=function(d){var H={};d=d.replace(/\r/g,"").split("\n");for(var K=0;K<d.length;K++){var c=d[K],p=c.indexOf(":");p<0||(H[c.substring(0,p)]=c.substring(p+2,c.length))}return H};
Ct4=function(d,H,K){K=K===void 0?function(){}:K;
return d?H():K()};
_.V7i=function(d){var H;return((H=RLF.documentOverride)!=null?H:d).__wizdispatcher};
_.N_=function(d){var H=br;br=d;return H};
_.hLF=function(d){return d===UlE||(d==null?void 0:d.name)==="\u0275NotFound"};
_.DB=function(d,H){var K;if((K=d)==null?0:K.isDisposed)throw Error("jb`"+String(d.debugName));for(;d!==void 0;){K=d;if(K.retrieve)return K.retrieve(H,{optional:!0});d=d.parent}return UlE};
fA=function(d){return{"\u0275prov":{providedIn:"root",token:Symbol(d),factory:void 0,value:void 0}}};
_.LwF=function(d){var H=br;if(!H){switch(d===void 0?3:d){case 0:d=Error("ib");break;case 1:d=Error("kb");break;case 2:d=Error("lb");break;default:d=Error("mb")}throw d;}return H};
M7F=function(d){var H=_.N_(d);d={};return d[Symbol.dispose]=function(){_.N_(H)},d};
mlf=function(d,H){d.disposables||(d.disposables=[]);d.disposables.push(H)};
A_=function(d){var H=br;H&&!H.isDisposed&&(mlf(H,d),d.parent=H)};
Pti=function(d){if(d.disposables){for(var H=_.q(d.disposables),K=H.next();!K.done;K=H.next())K=K.value,typeof K==="function"?K():wMi(K);d.disposables.length=0}};
wMi=function(d){if(!d.isDisposed){d.isDisposed=!0;var H;(H=d[Symbol.dispose])==null||H.call(d);delete d.parent;Pti(d)}};
svY=function(d){var H={retrieve:function(K){switch(K.\u0275prov.token){case upY.\u0275prov.token:var c=d.asyncDeps;break;case _.I7Y.\u0275prov.token:c=d.rootElement;break;case r51.\u0275prov.token:c=d.modelRootElement;break;case WwD.\u0275prov.token:c=d.appContext;break;case BFF.\u0275prov.token:c=d.rendererData;break;case zLF.\u0275prov.token:c=d.injectingConstructor;break;case XMC.\u0275prov.token:c=d.dispatcher}if(c)K=c;else a:{for(c=H.parent;c;){var p=c;if(p.retrieve){K=p.retrieve(K);break a}c=
c.parent}c=K.\u0275prov.token;p=J5L[c];p!==void 0?K=p:(p=K.\u0275prov.providedIn,K.\u0275prov.factory?(K=K.\u0275prov.factory(),c&&p==="root"&&(J5L[c]=K)):K=UlE)}return K}};
A_(H);return H};
Fwl=function(){var d=_.LwF(1),H=_.DB(d,WwD);_.hLF(H)&&(d=_.DB(d,XMC),_.hLF(d)||d.getOptionalAppContext())};
Z41=function(d){if(typeof document!=="undefined"&&document&&document.getElementById&&(d=document.getElementById(d))){var H=d.tagName.toUpperCase();if(H=="SCRIPT"||H=="LINK")return d}return null};
QvC=function(d,H){if((d=d===void 0?"":d)&&H)throw Error("sb");var K="";var c=_.KF._F_jsUrl;(d=H||Z41(d))&&(K=d.src?d.src:d.getAttribute("href"));if(c&&K){if(c!=K)throw Error("tb`"+c+"`"+K);K=c}else K=c||K;if(!TFh(K))throw Error("ub");return K};
SX5=function(){if(!t7i){t7i=!0;try{var d=QvC(_.KF._F_jsUrl?"":"base-js")}catch(c){return}var H=YXX(O4E(d)),K=Object.keys(H);K.length!==0&&fOY(function(c){for(var p=_.q(K),g=p.next();!g.done;g=p.next()){g=g.value;for(var a=_.q(Object.keys(H[g])),e=a.next();!e.done;e=a.next())c.addExtraEdge(g,e.value)}})}};
y5F=function(){var d=Object.assign({},EGE);Object.getOwnPropertyNames(EGE).forEach(function(H){jX[H]!==void 0&&(d[H]=jX[H])});
return d};
b4F=function(d,H){if(jX.enablePerformanceTiming){var K,c;(c=(K=performance).mark)==null||c.call(K,d+"Start__"+H)}};
NFl=function(d,H){if(jX.enablePerformanceTiming){var K,c;(c=(K=performance).measure)==null||c.call(K,d+"__"+H,d+"Start__"+H)}};
Dll=function(d,H,K){var c;return d&&H?d+"__"+H:(c=d!=null?d:H)!=null?c:K};
A51=function(d,H){var K=Object.create(f71);K.debugName=H;!br||A_(K);H=_.N_(K);try{d(K)}finally{_.N_(H)}return function(){return void wMi(K)}};
vGl=function(d){return vz(d)&&jvX in d};
de1=function(d,H){return Object.is(d,H)};
Hk=function(d){var H=dc;dc=d;return H};
$el=function(d){if($m)throw Error("Z");if(dc!==null){var H=dc.producersTail;if(H===void 0||H.producer!==d){var K=void 0,c=dc.recomputing;if(c&&(K=H!==void 0?H.nextProducer:dc.producers,K!==void 0&&K.producer===d)){dc.producersTail=K;K.lastReadVersion=d.version;return}var p=d.consumersTail,g;if(!(g=p===void 0||p.consumer!==dc)){if(c){a:{g=dc;c=g.producersTail;if(c!==void 0){g=g.producers;do{if(g===p){c=!0;break a}if(g===c)break;g=g.nextProducer}while(g!==void 0)}c=!1}c=!c}g=c}g&&(c=Kl(dc),K={producer:d,
consumer:dc,nextProducer:K,prevConsumer:p,lastReadVersion:d.version,nextConsumer:void 0},dc.producersTail=K,H!==void 0?H.nextProducer=K:dc.producers=K,c&&Hnh(d,K))}}};
pd5=function(d){if(!Kl(d)||d.dirty)if(d.dirty||d.lastCleanEpoch!==KfX)(d.producerMustRecompute(d)||cfE(d))&&d.producerRecomputeValue(d),d.dirty=!1,d.lastCleanEpoch=KfX};
grE=function(d){if(d.consumers!==void 0){var H=$m;$m=!0;try{for(var K=d.consumers;K!==void 0;K=K.nextConsumer){var c=K.consumer;c.dirty||(d=void 0,c.dirty=!0,grE(c),(d=c.consumerMarkedDirty)==null||d.call(c,c))}}finally{$m=H}}};
in5=function(){var d;return((d=dc)==null?void 0:d.consumerAllowSignalWrites)!==!1};
G5M=function(d){d&&(d.producersTail=void 0,d.recomputing=!0);return Hk(d)};
qDi=function(d,H){Hk(H);if(d){d.recomputing=!1;H=d.producersTail;var K=H!==void 0?H.nextProducer:d.producers;if(K!==void 0){if(Kl(d)){do K=orh(K);while(K!==void 0)}H!==void 0?H.nextProducer=void 0:d.producers=void 0}}};
cfE=function(d){for(d=d.producers;d!==void 0;d=d.nextProducer){var H=d.producer,K=d.lastReadVersion;if(K!==H.version)return!0;pd5(H);if(K!==H.version)return!0}return!1};
Hnh=function(d,H){var K=d.consumersTail,c=Kl(d);K!==void 0?(H.nextConsumer=K.nextConsumer,K.nextConsumer=H):(H.nextConsumer=void 0,d.consumers=H);H.prevConsumer=K;d.consumersTail=H;if(!c)for(d=d.producers;d!==void 0;d=d.nextProducer)Hnh(d.producer,d)};
orh=function(d){var H=d.producer,K=d.nextProducer,c=d.nextConsumer,p=d.prevConsumer;d.nextConsumer=void 0;d.prevConsumer=void 0;c!==void 0?c.prevConsumer=p:H.consumersTail=p;if(p!==void 0)p.nextConsumer=c;else if(H.consumers=c,!Kl(H))for(d=H.producers;d!==void 0;)d=orh(d);return K};
Kl=function(d){return d.consumerIsAlwaysLive||d.consumers!==void 0};
lzL=function(d){var H=Object.create(azE);H.computation=d;d=function(){pd5(H);$el(H);if(H.value===ck)throw H.error;return H.value};
d[pl]=H;return d};
nrE=function(d,H){var K=Object.create(eiF);K.value=d;H!==void 0&&(K.equal=H);d=function(){$el(K);return K.value};
d[pl]=K;return[d,function(c){return k5F(K,c)},
function(c){in5()||xeh(K);k5F(K,c(K.value))}]};
k5F=function(d,H){in5()||xeh(d);if(!d.equal(d.value,H)){d.value=H;d.version++;KfX++;grE(d);var K;(K=Cwl)==null||K(d)}};
ij=function(d){var H=Hk(null);try{return d()}finally{Hk(H)}};
_.GO=function(d,H,K){K=K===void 0?"":K;d=nrE(d,H==null?void 0:H.equals);var c=d[0],p=c[pl];p.debugName=Dll(H==null?void 0:H.debugName,K,"[signal]");if(!jX.enablePerformanceTiming)return d;var g=d[1],a=d[2];return[c,function(e){Ril(function(){return void g(e)},p)},
function(e){Ril(function(){return void a(e)},p)}]};
Ril=function(d,H){b4F("signalSet",H.debugName);try{d()}finally{NFl("signalSet",H.debugName)}};
Ue4=function(d,H){var K=_.q(_.GO(d,void 0,"cPpJzc"));d=K.next().value;K=K.next().value;d[VVM]=K;d[oH]=H;return d};
hih=function(d){return!!d&&typeof d==="object"&&Object.getPrototypeOf(d)===Object.prototype};
Lf1=function(d){return typeof d==="function"&&VVM in d&&typeof d[VVM]==="function"};
MVM=function(d,H){Object.defineProperty(d,oH,{get:function(){return H}})};
aH=function(d,H){if(qt(d)){var K=d.map(function(g){return aH(g,H)});
MVM(K,H);return K}if(hih(d)){K={};d=_.q(Object.entries(d));for(var c=d.next();!c.done;c=d.next()){var p=_.q(c.value);c=p.next().value;p=p.next().value;K[c]=aH(p,H)}MVM(K,H);return K}return Ue4(d,H)};
mel=function(d){if(qt(d))return d.map(function(p){return mel(p)});
if(hih(d)){var H={};d=_.q(Object.entries(d));for(var K=d.next();!K.done;K=d.next()){var c=_.q(K.value);K=c.next().value;c=c.next().value;H[K]=mel(c)}return H}return Lf1(d)?d():d};
Pw1=function(){var d={height:0,width:0};if(!hih(d))throw Error("Gb");var H=Symbol("Hb");return[aH(d,H),function(K,c){if(K[oH]===H)if(typeof c==="function"){var p=[].concat(_.ru(mel(K)));c=c(p)||p;wdD(K,[].concat(_.ru(c)))}else wdD(K,c);else throw Error("Ib");}]};
wdD=function(d,H){if(Lf1(d))d[VVM](H);else if(qt(d)&&qt(H))H=aH(H,d[oH]),d.length=0,d.push.apply(d,_.ru(H));else if((hih(d)||qt(d))&&(qt(H)||typeof H==="object"&&H!==null)){H=_.q(Object.entries(H));for(var K=H.next();!K.done;K=H.next()){var c=_.q(K.value);K=c.next().value;c=c.next().value;var p=d,g=p[K];Object.hasOwn(d,K)?wdD(g,c):p[K]=aH(c,d[oH])}}else throw Error("Jb");};
ui4=function(d){return Object.create(Object.assign({},lj,d))};
rf1=function(){var d;return(d=IzL)!=null?d:IzL=ui4({consumerAllowSignalWrites:!0})};
_.ey=function(d,H,K){K=K===void 0?"":K;d=lzL(d);var c=d[pl];c.debugName=Dll(H==null?void 0:H.debugName,K,"[computed]");(H==null?void 0:H.equals)!=null&&(c.equal=H.equals);return d};
km=function(d){var H=Hk(Wfi);try{d()}finally{Hk(H)}};
FfE=function(d){if(!d.isDisposed)switch(d.effectType){case xm:BzC.schedule(d);break;case ziE:XdY.schedule(d);break;case JfL:sJM.schedule(d);break;default:_.tN(d.effectType)}};
Tzh=function(d){Znf.push(d);return function(){var H=Znf.indexOf(d);H!==-1&&Znf.splice(H,1)}};
tVX=function(){if(nl>0)jX.flushRenderEffectsDuringRender&&BzC.flush();else for(var d=_.q(QJ5),H=d.next();!H.done;H=d.next())H.value.flush()};
OnF=function(d){Cl=!0;try{for(var H=_.q(d),K=H.next();!K.done;K=H.next()){for(var c=K.value,p=[c],g=c;g.parent!==void 0;)g=g.parent,YDF(g)&&d.has(g)&&p.push(g);for(;p.length>0;){var a=p.pop();d.delete(a);a.run()}}}finally{Cl=!1}};
RH=function(d){nl--;if(d){d=_.q(QJ5);for(var H=d.next();!H.done;H=d.next())H.value.clear()}else nl>0||Cl&&!jX.flushRenderEffectsDuringRender||tVX()};
ErC=function(d,H,K){var c=SDi(d);Ue={name:K?c+" ("+K+")":c,isReactive:d.componentType!==ht,parent:Ue};d=H();Ue=Ue.parent;return d};
Ll=function(){var d=Ue;return d?d.isReactive:!1};
m5=function(d,H,K){var c=Ue;H&&(Ue=H);try{return K==null?d():d.call(K)}catch(g){d=g;Mt(d,Ue);if(d!==yfF){bnY=Ue;H=[];for(K=br;K;){var p=void 0;H.push((p=K.debugName)!=null?p:"[context]");p=void 0;K=(p=K.parent)!=null?p:null}Nzh=H.reverse()}yfF=d;throw d;}finally{Ue=c}};
Mt=function(d,H){try{var K=DeL(H);if(K&&!d.componentStack&&(d.componentStack=K,jX.enableComponentStacksInErrorMessages)){var c=d.message+"\n\nComponent stack: "+K;d.stack&&(d.stack=d.stack.replace(d.message,c));d.message=c}}catch(p){}};
DeL=function(d){if(vz(d)&&d.name!==void 0&&d.isReactive!==void 0&&d.parent!==void 0||d===null){for(var H=0,K="";H<20&&d;)K+=d.name+" > ",d=d.parent,H++;d=K.slice(0,-3)}else if(jX.enableContextBasedComponentStacks){a:{for(d=d===void 0?br:d;d;){if(vGl(d))break a;H=void 0;d=(H=d.parent)!=null?H:null}d=null}d=d.getComponentStack().slice(0,20).join(" > ")}else d="";return d};
SDi=function(d){return d.debugName||d.name||"[component]"};
fzE=function(d,H,K){H=Object.create(H);d&&(H.effectFn=d);K&&(H.debugName=K);A_(H);H.componentStack=Ue;return H};
_.wc=function(d,H){d=fzE(d,Afi,H);FfE(d)};
_.Pk=function(d){var H=br;if(H){var K=Ue;mlf(H,function(){var c=Hk(rf1());try{m5(function(){return void d()},K)}catch(p){throw jX.enableContextBasedComponentStacks&&Mt(p),p;
}finally{Hk(c)}})}};
uj=function(d,H){var K={};(H===void 0||H)&&A_(K);H=_.N_(K);try{d(K)}finally{_.N_(H)}return function(){return void wMi(K)}};
_.IH=function(d){return typeof d==="function"?d():(d==null?0:d[jJF])?d.get():d};
_.rc=function(d,H){d=fzE(d,vri,H);FfE(d)};
d8C=function(d){if(br)throw Error("nb");uj(d,!1)};
Wk=function(d,H){d=_.N_(d);try{return ij(H)}finally{_.N_(d)}};
Bk=function(d,H){var K=DeL(bnY),c,p;var g=(p=(c=Nzh)==null?void 0:c.slice())!=null?p:[];H={componentStack:K,contextTrace:g,errorSeverity:3,featureFlags:y5F(),tagName:H};return[d,H]};
KKF=function(d,H,K){if(Object.hasOwnProperty.call(H51,d)&&(d=H51[d],Object.hasOwnProperty.call(d,H)&&(d=d[H],d instanceof Array))){for(var c=null,p=!1,g=0,a=d.length;g<a;++g){var e=d[g],k=e.contingentAttribute;if(!k)return e.contract;c===null&&(c={});k=Object.hasOwnProperty.call(c,k)?c[k]:c[k]=K(k);if(k===e.requiredValue)return e.contract;k==null&&(p=!0)}if(p)return null}H=$81[H];return typeof H==="number"?H:null};
glM=function(d,H,K){var c=null;(d=cwF[d])&&(c=d[H]);return typeof c!=="number"&&((d=cwF["*"])&&(c=d[H]),typeof c!=="number")?!1:!0===pVX[c][String(K).toLowerCase()]};
GNM=function(d,H){H=KKF(d.toLowerCase(),H,function(){var c;(c=jX.handleError)==null||c.call.apply(c,[jX].concat(_.ru(Bk(Error("Ob"),d.toLowerCase()))))});
if(H===null)return null;var K;return(K=i5M[H])!=null?K:null};
ol5=function(d,H,K){if(K===null||K===void 0)return K;H=H.toLowerCase();d=GNM(d,H);return d===null?K:d(H,K)};
q_Y=function(){};
zO=function(d,H){for(;d.length>H;)d.pop()};
aQi=function(d){d=Array(d);zO(d,0);return d};
se=function(d,H,K){if(K==null)d.removeAttribute(H);else{var c;(c=H.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":H.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?d.setAttributeNS(c,H,K):d.setAttribute(H,K)}};
lQM=function(d,H,K){d[H]=K};
kN4=function(d,H,K){d=d.style;if(typeof K==="string")d.cssText=K;else{d.cssText="";for(var c in K)if(eYf.call(K,c)){H=d;var p=c,g=K[c];p.indexOf("-")>=0?H.setProperty(p,g):H[p]=g}}};
x84=function(d,H,K){var c=typeof K;c==="object"||c==="function"?d[H]=K:se(d,H,K)};
nlD=function(){var d=new q_Y;d[Fq.default]=x84;d.style=kN4;return d};
CCX=function(d,H,K,c){(c[H]||c[Fq.default])(d,H,K)};
V1l=function(d,H,K){H=new RY5(H,K);return d.__incrementalDOMData=H};
Zp=function(d,H){if(d.__incrementalDOMData)return d.__incrementalDOMData;var K=d.nodeType===1?d.localName:d.nodeName,c=d.nodeType===1?d.getAttribute("key"):null;H=V1l(d,K,d.nodeType===1?c||H:null);if(d.nodeType===1&&(d=d.attributes,K=d.length)){c=H._attrsArr||(H._attrsArr=aQi(K*2));for(var p=0,g=0;p<K;p+=1,g+=2){var a=d[p],e=a.value;c[g]=a.name;c[g+1]=e}}return H};
U8F=function(d,H,K,c,p){return H==K&&c==p};
hYF=function(d){for(var H=tt,K=Ym();K!==d;){var c=K.nextSibling;H.removeChild(K);Oe.deleted.push(K);K=c}};
Ym=function(){return Sy?Sy.nextSibling:tt.firstChild};
Ee=function(){Sy=Ym()};
m8F=function(d,H,K){Ee();var c;a:{if(c=Sy){do{var p=c,g=d,a=H,e=Zp(p,a);if(LKl(p,g,e.nameOrCtor,a,e.key))break a}while(H&&(c=c.nextSibling))}c=null}c||(d==="#text"?(K=yM.createTextNode(""),V1l(K,"#text",null),d=K):(c=yM,p=tt,typeof d==="function"?c=new d:c=(p=d==="svg"?"http://www.w3.org/2000/svg":d==="math"?"http://www.w3.org/1998/Math/MathML":p==null||Zp(p).nameOrCtor==="foreignObject"?null:p.namespaceURI)?c.createElementNS(p,d):c.createElement(d),V1l(c,d,H),d=c,K&&d.setAttribute("nonce",K)),Oe.created.push(d),
c=d);K=c;if(K!==Sy){if(M1L.indexOf(K)>=0)for(d=tt,H=K.nextSibling,c=Sy;c!==null&&c!==K;)p=c.nextSibling,d.insertBefore(c,H),c=p;else tt.insertBefore(K,Sy);Sy=K}};
wVF=function(d,H,K){m8F(d,H,K);tt=Sy;Sy=null;return tt};
PCY=function(){hYF(null);Sy=tt;tt=tt.parentNode};
uxE=function(){Sy=tt.lastChild};
WK5=function(d,H){H=H===void 0?{}:H;var K=H.matches===void 0?U8F:H.matches;return function(c,p,g){var a=Oe,e=yM,k=M1L,C=bj,R=Nt,V=Sy,U=tt,L=LKl;yM=c.ownerDocument;Oe=new IQD(c);LKl=K;bj=[];Nt=[];Sy=null;var w=tt=c.parentNode,W,J=rwE.call(c);if((W=J.nodeType===11||J.nodeType===9?J.activeElement:null)&&c.contains(W)){for(J=[];W!==w;)J.push(W),W=W.parentNode||(w?W.host:null);w=J}else w=[];M1L=w;try{return d(c,p,g)}finally{c=Oe,Dp&&c.deleted.length>0&&Dp(c.deleted),yM=e,Oe=a,LKl=L,bj=C,Nt=R,Sy=V,tt=U,
M1L=k}}};
BQ5=function(d,H,K,c){fl.push(CCX);fl.push(d);fl.push(H);fl.push(K);fl.push(c)};
XVD=function(d,H,K){var c=Nt;H=H._attrsArr||(H._attrsArr=aQi(c.length));for(var p=!H.length||!1,g=0;g<c.length;g+=2){var a=c[g];if(p)H[g]=a;else if(H[g]!==a)break;var e=c[g+1];if(p||H[g+1]!==e)H[g+1]=e,BQ5(d,a,e,K)}if(g<c.length||g<H.length){for(g=p=g;g<H.length;g+=2)At[H[g]]=H[g+1];for(g=p;g<c.length;g+=2)p=c[g],a=c[g+1],At[p]!==a&&BQ5(d,p,a,K),H[g]=p,H[g+1]=a,delete At[p];zO(H,c.length);for(var k in At)BQ5(d,k,void 0,K),delete At[k]}d=zYC;zYC=K=fl.length;for(k=d;k<K;k+=5)(0,fl[k])(fl[k+1],fl[k+
2],fl[k+3],fl[k+4]);zYC=d;zO(fl,d);zO(c,0)};
Jwf=function(d){m8F("#text",null);var H=Sy;var K=Zp(H);if(K.text!==d){K=K.text=d;for(var c=1;c<arguments.length;c+=1)K=(0,arguments[c])(K);H.data!==K&&(H.data=K)}};
Y_h=function(d,H,K){if(K===!1&&s$Y.has(H))se(d,H,null);else if(H!=="idomKey"&&H!=="skip"&&H!=="skipchildren"&&H!=="children"&&H!=="el")if(H.startsWith("on")){if(H[2]!==":")throw Error("Nb`"+H);if(K===void 0||K===null){var c;(c=jX.handleError)==null||c.call.apply(c,[jX].concat(_.ru(Bk(Error("Sb`"+H),d.tagName))));d[H]=void 0}else{var p=H.slice(3);c=Ll();if(p==="jsaction"){K=Array.isArray(K)?K:[K];K=_.q(K);for(var g=K.next();!g.done;g=K.next()){g=g.value;if(typeof g!=="object"||g===null||typeof g.selfReg!==
"function")throw Error("Vb`"+H);g.selfReg(0,d,c?_.Pk:function(){})}}else{if(typeof K!=="object"||K===null)throw Error("Tb`"+H+"`"+typeof K);
if(typeof K.getFn!=="function")throw Error("Ub`"+H+"`"+Object.keys(K));if(K.selfReg)K.selfReg(0,d,p,c?_.Pk:function(){});
else if(c&&d["on"+p]===void 0){var a=K.getFn(0);d.addEventListener(p,a);_.Pk(function(){return void d.removeEventListener(p,a)})}else if(c||!FKE.includes(p))d["on"+p]=K.getFn(0)}}}else{if(H.startsWith("data-")&&typeof K==="string")try{K=Z5E(K)}catch(e){K="zSoyz"}typeof K!=="function"||d._disposeEffects!=null?((c=H.startsWith("prop:"))&&(H=H.slice(5)),jX.enableAttributeSanitization&&(c&&TQX(d.tagName)||(K=ol5(d.tagName,H,K))),H==="style"?("function"==typeof _.jy&&K instanceof _.jy&&(K=K.toString()),
Q$Y(d,H,K)):c?d[H]=K:t1l(d,H,K)):(d._signalProps||(d._signalProps=[]),d._signalValues||(d._signalValues=[]),d._signalProps.push(H))}};
O5F=function(d,H,K){K=(K===void 0?{}:K).isReactive;if(H==null?0:H.el){var c=H.el;if(typeof c==="function")c(d);else{var p;(p=c.onRender)==null||p.call(c,d);d._disposeRef||(d._disposeRef=function(){var g;(g=c.onUnmount)==null||g.call(c);delete d._disposeRef},K&&_.Pk(function(){var g;
(g=d._disposeRef)==null||g.call(d)}))}}};
TQX=function(d){return d.length>0&&d.includes("-")&&!S_F.includes(d.toLowerCase())};
ElC=function(d){return vz(d)&&vk in d};
ywi=function(d){return ElC(d)?d[vk].flattened:d};
b5F=function(d,H){var K=_.sH.apply(2,arguments),c;H=(c=H)!=null?c:{};c={};return c.type=d,c.props=H,c.children=K,c[d9]=!0,c};
_.HE=function(d){return d.children};
$2=function(d){var H=NQC!==b5F;NQC=d?D8Y:b5F;return H};
_.K6=function(d){return _.y4(d)?"nodeType"in d:!1};
cE=function(){return document.createTextNode("")};
g9=function(d){d=document.createTextNode(String(d));d._isSignalTextNode=!0;return d};
Awl=function(d){return d!=null&&d.contentKind===iU||d instanceof QB||fQM(d)};
j$1=function(d){var H=document.createElement("div");if(fQM(d)&&qm4(d))_.AL(H,qm4(d));else if(d instanceof QB)_.AL(H,d);else if(d!=null&&d.contentKind===iU){if(d.contentKind!==iU)throw Error("Rb");d=tL(d.toString());_.AL(H,d)}d=_.q(H.childNodes);for(var K=d.next();!K.done;K=d.next())K.value._isSafeOrSanitizedHtmlNode=!0;return H};
G9=function(d){d=typeof d;return d==="string"||d==="number"||d==="boolean"};
vlh=function(d){return d instanceof UH||u_(d)||d instanceof du||"function"==typeof _.jy&&d instanceof _.jy};
dCE=function(d,H){var K=d.parentElement;if(!K)return H;K.replaceChild(H,d);return H};
HOh=function(d,H){var K=d[0].parentElement;if(K)if(d[0].previousSibling||d[d.length-1].nextSibling){K.insertBefore(H,d[0]);for(var c=d.length-1;c>=0;c--)K.removeChild(d[c])}else K.textContent="",K.appendChild(H);return H};
$CC=function(d,H){if(d[0].parentElement)for(var K=d[0].parentElement,c=H.length,p=d.length,g=c,a=0,e=0,k=d[p-1].nextSibling,C=null;a<p||e<g;)if(d[a]===H[e])a++,e++;else{for(;d[p-1]===H[g-1];)p--,g--;if(p===a)for(var R=g<c?e?H[e-1].nextSibling:H[g-e]:k;e<g;){var V=H[e++];K.insertBefore(V,R)}else if(g===e)for(;a<p;)R=d[a],C&&C.has(R)||K.removeChild(R),a++;else if(d[a]===H[g-1]&&H[e]===d[p-1])R=d[--p].nextSibling,K.insertBefore(H[e++],d[a++].nextSibling),K.insertBefore(H[--g],R),d[p]=H[g];else{if(!C)for(C=
new Map,R=e;R<g;)C.set(H[R],R++);R=C.get(d[a]);if(R==null)K.removeChild(d[a]),a++;else if(e<R&&R<g){V=a;for(var U=1,L=void 0;++V<p&&V<g&&(L=C.get(d[V]))!=null&&L===R+U;)U++;if(U>R-e)for(V=d[a];e<R;)K.insertBefore(H[e++],V);else K.replaceChild(H[e++],d[a++])}else a++}}return H};
cPL=function(d){if(Array.isArray(d)){if(d.length>1)throw Error("dc`"+d.length+"`"+d.map(KGF).join(", "));d=d[0]}if(d==null)return null;if(!(d instanceof _.b_)){var H,K;if((H=window)==null?0:(K=H.trustedTypes)==null?0:K.isScript(d))throw Error("cc");if(String(d).trim().length===0)return null;throw Error("ec`"+KGF(d));}return d};
p3X=function(d,H){H=cPL(H);H!==null&&_.Dw(d,H)};
gKF=function(d){if(Array.isArray(d)){if(d.length>1)throw Error("fc`"+d.length+"`"+d.map(KGF).join(", "));d=d[0]}if(d==null)return null;if(!(d instanceof du)){if(String(d).trim().length===0)return null;throw Error("gc`"+KGF(d));}return d};
iOD=function(d,H){H=gKF(H);H!==null&&(d.textContent=osC(H))};
KGF=function(d){return"("+typeof d+") "+(d!=null&&typeof d==="object"?d.constructor.name:typeof d)+" "+d};
GAi=function(){};
eD=function(d,H){H=H===void 0?{}:H;var K=oKf();jX.legacyTriggerSoyRendererEvents&&Fwl();_.rc(function(){qM.setUp();H.isControlFlowComponent&&nl++;var c=K[0],p=K[vk].flattened,g=$2(!0);try{var a=d(),e=qoY(c,a,K);Array.isArray(e)||(K[vk].flattened=[e]);var k=K[vk].flattened;if(p&&(!Array.isArray(p)||p.length!==0)){var C=Array.isArray(p)?p[0]:p,R=C[lU],V=C._disposeEffects;C._disposeEffects=void 0;C=Array.isArray(k)?k[0]:k;C[lU]=R;C[lU]&&(C[lU].numNodes=C===k?1:k.length);C._disposeEffects=V}K[0]=e;H.isControlFlowComponent&&
RH(!1)}catch(U){throw H.isControlFlowComponent&&RH(!0),U;}finally{$2(g),qM.tearDown()}},H.debugName);
return K};
qoY=function(d,H,K){for(;typeof H==="function";)H=H();if(H!=null&&H[d9]){var c,p,g;(g=jX.handleError)==null||g.call.apply(g,[jX].concat(_.ru(Bk(Error("hc`"+((c=H.type)==null?void 0:c.TAG_NAME)),(p=H.type)==null?void 0:p.TAG_NAME))))}if(d==null)return H==null?cE():G9(H)?g9(H):vlh(H)?g9(H.toString()):_.K6(H)?H:H.length===0?cE():acE(H,K);if(_.K6(d)){if(H==null)return dCE(d,cE());if(G9(H))return lch(d,H);if(vlh(H))return lch(d,H.toString());if(_.K6(H))return dCE(d,H);if(H.length===0)return dCE(d,cE());
H=acE(H,K);$CC([d],K[vk].flattened);return H}d=k2(d);if(H==null)return HOh(d,cE());if(G9(H))return HOh(d,g9(H));if(vlh(H))return HOh(d,g9(H.toString()));if(_.K6(H))return $CC(d,[H])[0];if(H.length===0)return HOh(d,cE());H=acE(H,K);$CC(d,K[vk].flattened);return H};
lch=function(d,H){d.nodeType===Node.TEXT_NODE?d.textContent!==String(H)&&(d.textContent=String(H)):d=dCE(d,g9(H));return d};
k2=function(d,H,K){return eQ4(d,H!=null?H:[],K===void 0?!1:K)};
acE=function(d,H){var K=k2(d,void 0,!0);if(K.length===0)return cE();H[vk].flattened=K;return d};
eQ4=function(d,H,K,c,p){H=H===void 0?[]:H;K=K===void 0?!1:K;p=p===void 0?-1:p;if(d==null)return H;if(d instanceof x2){var g=d.render();return eQ4(g,H,K,c,p)}if(_.K6(H)&&H.nodeType===Node.ELEMENT_NODE)switch(H.tagName){case "SCRIPT":p3X(H,d);return;case "STYLE":iOD(H,d);return}G9(d)&&(d=g9(d),c&&K&&(c[p]=d));if(Awl(d)){K=j$1(d);K=Array.from(K.childNodes);K=_.q(K);for(g=K.next();!g.done;g=K.next())kAh(H,g.value);return H}vlh(d)&&(d=g9(d.toString()),c&&K&&(c[p]=d));if(_.K6(d))return kAh(H,d);if(Array.isArray(d)){for(g=
0;g<d.length;g++)eQ4(d[g],H,K,d,g);return H}if(typeof d==="function"){g=eD(function(){var e=d();return e!=null&&!G9(e)&&Awl(e)?(e=j$1(e),Array.from(e.childNodes)):e},{debugName:"qmF2ne",
debugFn:d})[0];if(Array.isArray(g)){K=_.q(g);for(g=K.next();!g.done;g=K.next())kAh(H,g.value);return H}c&&K&&(c[p]=g);return kAh(H,g)}if(d!=null&&d[d9]){c=d;p=$2(!0);var a=NQC;try{g=a.apply(null,[c.type,c.props].concat(_.ru(c.children)))}finally{$2(p)}return eQ4(g,H,K)}(a=jX.handleError)==null||a.call.apply(a,[jX].concat(_.ru(Bk(Error("ic")))));return H};
oKf=function(d){var H={};H=Object.assign([],(H[vk]={flattened:[]},H));if(!d)return H;H[0]=acE(d,H);return H};
kAh=function(d,H){Array.isArray(d)?d.push(H):d.appendChild(H);return d};
n6=function(d){if(!jX.enableLazyTsx)return d;if(Array.isArray(d)){for(var H=0;H<d.length;H++)d[H]=n6(d[H]);return d}return d instanceof x2?(d=d.render(),n6(d)):d};
nKf=function(d,H){var K,c,p=SDi(d),g=function(L){c=L;L=$2(!0);var w=Hk(C6);b4F("render",p);try{K=n6(d(H))}finally{NFl("render",p),Hk(w),$2(L)}};
g=jX.enableContextPerComponent?A51(g,p):uj(g,jX.alwaysTrackContexts||!!br);vGl(c);if(!H.renderedFromIdom){var a=_.N_(c);try{return xC1(d,H,K),K}finally{_.N_(a)}}!ElC(K)&&Array.isArray(K)&&(K=oKf(K));var e=ywi(K);a=Array.isArray(e)?e[0]:e;var k=!1;if(a){var C,R=(C=H==null?void 0:H.idomKey)!=null?C:d;C=e!==a;a._disposeEffects=g;var V=a[lU]||{},U=ElC(K)?K:V.sourceDynamicRange;Object.assign(V,{key:R,numNodes:C?e.length:1,context:c,higherOrder:!!a[lU],sourceDynamicRange:U});a[lU]=V}else k=!0;(function(){var L=
_.N_(c);try{xC1(d,H,e)}finally{_.N_(L)}})();
k&&g();return K};
CGL=function(d){var H={},K;for(K in d)H={prev$jscomp$23:void 0,next$jscomp$33:void 0},H.prev$jscomp$23=Rs[K],H.next$jscomp$33=d[K],Rs[K]=function(c){return function(){var p=_.sH.apply(0,arguments);c.prev$jscomp$23.apply(null,_.ru(p));c.next$jscomp$33.apply(null,_.ru(p))}}(H)};
RQl=function(){if(Ll())throw Error("jc");return Vx};
VM1=function(d,H){if(!d.__unmounted&&H){d.__unmounted=!0;try{d.didUnmount()}catch(p){var K,c;(c=jX.handleError)==null||c.call.apply(c,[jX].concat(_.ru(Bk(p,(K=d.__type)==null?void 0:K.TAG_NAME))))}Rs.didUnmount(d);d.el=null;H.__instance&&delete H.__instance}};
hQ1=function(d,H,K){d._signalProps!=null&&d._disposeEffects==null&&((K===void 0?0:K)?d._disposeEffects=uj(function(){return void UCF(d,H)},jX.alwaysTrackContexts||!!br):UCF(d,H))};
UCF=function(d,H){_.rc(function(){for(var K=d._signalProps,c=d._signalValues,p=0;p<K.length;p++){var g=K[p],a=H[g]();c[p]!==a&&(c[p]=a,Y_h(d,g,a))}},"e3YVbb")};
LGD=function(d,H,K){var c,p=[];d._disposeEffects=uj(function(){_.rc(function(){var g=K();if(g===null||g===void 0)g="";if(G9(g)||g===null)c!=null||(c=document.createTextNode("")),c.parentNode!==d&&(c._isSignalTextNode=!0,d.insertBefore(c,H)),c.textContent=String(g);else if(Awl(g)){for(var a=p.length>0?p[p.length-1].nextSibling:H,e=_.q(p),k=e.next();!k.done;k=e.next())d.removeChild(k.value);g=j$1(g);p=Array.from(g.childNodes);g=_.q(p);for(e=g.next();!e.done;e=g.next())d.insertBefore(e.value,a)}else throw k=
(e=(a=Ue)==null?void 0:a.name)!=null?e:"unknown",Error("Zb`"+k+"`"+typeof g);},"VvDgC")},jX.alwaysTrackContexts||!!br)};
w3f=function(d,H){var K=_.sH.apply(2,arguments);H!=null||(H={});return!jX.enableLazyTsx||Ue!=null&&!Ll()?MMh(d,H,K):new mCf(d,H,K)};
MMh=function(d,H,K){if(d===_.HE)return K;if(typeof d==="function")return Ue&&!Ll()&&(H.renderedFromIdom=!0),ErC(d,function(){var g=PG1(d,H,K);if(g)return g;K.length>0&&(H.children=K.length===1?K[0]:K);if(d.componentType===ht){var a;A51(function(){var e=H;if(d.componentType!==ht)a=!1;else{e||(e={});var k=new US(e,d),C=Hk(C6);try{var R=k.render(e)}finally{Hk(C)}R instanceof HTMLElement?(R.__instance=k,k.el=R,k.__type=d,d.TAG_NAME=R.tagName.toLowerCase(),Rs.didPatch(k),a=R):a=R}},d.name);
if(a)return a}return nKf(d,H)},H.debugInstance);
var c=uj1(d,H),p;for(p in H)Y_h(c,p,H[p]);hQ1(c,H);k2(K,c);O5F(c,H,{isReactive:!0});IcC(c,H);return c};
uj1=function(d,H){d=(rPM.has(d.toLowerCase())?0:WGC.has(d.startsWith("svg:")?d.replace("svg:",""):d))?document.createElementNS("http://www.w3.org/2000/svg",d.startsWith("svg:")?d.replace("svg:",""):d):BrM(d,H)||document.createElement(d);d[zQi]=!0;return d};
_.X3i=function(d){if(d){var H;(H=d._disposeRef)==null||H.call(d);var K;(K=d._disposeEffects)==null||K.call(d);d.__instance&&d.__instance instanceof hm&&(H=d.__instance,VM1(H,d),H instanceof US&&H.disposeEffects());for(H=0;H<d.childNodes.length;H++)_.X3i(d.childNodes[H])}};
suE=function(d){JPX.push(d)===1&&requestAnimationFrame(function(){setTimeout(function(){var H=[].concat(_.ru(JPX));JPX=[];H=_.q(H);for(var K=H.next();!K.done;K=H.next()){K=K.value;try{for(var c=0;c<K.length;c++)_.X3i(K[c])}catch(p){c=K=void 0,(c=(K=jX).handleError)==null||c.call.apply(c,[K].concat(_.ru(Bk(p))))}}})})};
_.x=function(d,H){return NQC.apply(null,[d,H].concat(_.ru(_.sH.apply(2,arguments))))};
FG1=function(d,H){H=H===void 0?new Map:H;d=_.q(d);for(var K=d.next();!K.done;K=d.next())if(K=K.value,!H.has(K)){for(var c=[],p=K.producers;p!==void 0;p=p.nextProducer)c.push(p.producer);H.set(K,c);FG1(c,H)}return H};
_.n=function(d){var H=d.cond;if(H===void 0)return d.else&&d.else();var K=_.ey(function(){return!!H()},void 0,"JHVi8"),c=function(){var p=H();
if(!p){var g;(g=jX.handleError)==null||g.call.apply(g,[jX].concat(_.ru(Bk(ZOD.nonNullableCondIsNull()))))}return p};
return eD(function(){var p=K(),g;uj(function(){var a=Hk(C6);try{g=n6(p?d.then(c):d.else&&d.else())}finally{Hk(a)}},!0);
return g},{debugName:d.debugInstance,
debugFn:d.then,isControlFlowComponent:!0})};
Tr5=function(d){return _.n(d)};
_.L6=function(d){return d.keyBy==="INDEX"?Qu4(d):tMM(d)};
YoE=function(d){d=_.q(d);for(var H=d.next();!H.done;H=d.next()){var K=void 0;(K=H.value)==null||K()}};
tMM=function(d){var H=d.keyBy===void 0||d.keyBy==="REFERENCE",K=H?function(R){return R}:d.keyBy,c=[],p=[],g=[],a=[],e=[],k=[],C=!0;
_.Pk(function(){YoE(a)});
return eD(function(){var R=d.each(),V=R.length;if(V===0){if(c.length===0&&!C)return g;YoE(a);c=R;p=[];for(R=0;R<c.length;R++)p.push(K(c[R]));g=[];a=[];e=[];k=[];d.fallback&&(a[0]=OOF(function(){g[0]=n6(d.fallback())}));
C=!1;return g}for(var U=new Soi,L=c.length-1;L>=0;L--)U.push(p[L],L);L=Array(V);for(var w=Array(V),W=Array(V),J=Array(V),F=Array(H?0:V),Y={i$jscomp$445:0};Y.i$jscomp$445<V;Y={i$jscomp$445:Y.i$jscomp$445,item$jscomp$104:void 0,key$jscomp$551:void 0},Y.i$jscomp$445++){Y.item$jscomp$104=R[Y.i$jscomp$445];Y.key$jscomp$551=K(Y.item$jscomp$104);var A=U.pop(Y.key$jscomp$551);A!=null?(W[Y.i$jscomp$445]=g[A],w[Y.i$jscomp$445]=p[A],L[Y.i$jscomp$445]=a[A],J[Y.i$jscomp$445]=e[A],H||(F[Y.i$jscomp$445]=k[A]),km(function(E){return function(){J[E.i$jscomp$445](E.i$jscomp$445);
if(!H)F[E.i$jscomp$445](E.item$jscomp$104)}}(Y)),delete a[A]):L[Y.i$jscomp$445]=OOF(function(E){return function(){var N=_.q(_.GO(E.i$jscomp$445,void 0,"Fqk1zd")),y=N.next().value;
N=N.next().value;J[E.i$jscomp$445]=N;w[E.i$jscomp$445]=E.key$jscomp$551;if(H)W[E.i$jscomp$445]=n6(d.children(E.item$jscomp$104,y));else{var v=_.q(_.GO(E.item$jscomp$104,void 0,"GBj5de"));N=v.next().value;v=v.next().value;F[E.i$jscomp$445]=v;W[E.i$jscomp$445]=n6(d.children(N,y))}}}(Y))}YoE(a);
c=R;p=w;g=W;a=L;e=J;k=F;C=!1;return W},{debugName:d.debugInstance,
debugFn:d.each,isControlFlowComponent:!0})};
Qu4=function(d){var H=[],K=[],c=[],p=[],g=!1;_.Pk(function(){for(var a=_.q(p),e=a.next();!e.done;e=a.next())e=e.value,e()});
return eD(function(){var a=d.each();g&&a.length>0&&(p.pop()(),H.pop(),g=!1);for(var e=Array(a.length),k={i$jscomp$446:0};k.i$jscomp$446<a.length;k={i$jscomp$446:k.i$jscomp$446},k.i$jscomp$446++)if(k.i$jscomp$446<H.length)H[k.i$jscomp$446]!==a[k.i$jscomp$446]&&(km(function(R){return function(){return void K[R.i$jscomp$446](a[R.i$jscomp$446])}}(k)),H[k.i$jscomp$446]=a[k.i$jscomp$446]),e[k.i$jscomp$446]=c[k.i$jscomp$446];
else{var C=OOF(function(R){return function(){H[R.i$jscomp$446]=a[R.i$jscomp$446];var V=_.q(_.GO(a[R.i$jscomp$446],void 0,"JMMLmd")),U=V.next().value;V=V.next().value;K[R.i$jscomp$446]=V;e[R.i$jscomp$446]=n6(d.children(U,R.i$jscomp$446))}}(k));
p[k.i$jscomp$446]=C}for(;H.length>a.length;)H.pop(),p.pop()(),K.pop();a.length===0&&!g&&d.fallback&&(k=OOF(function(){e[0]=n6(d.fallback())}),p[0]=k,g=!0);
return c=e},{debugName:d.debugInstance,
isControlFlowComponent:!0})};
OOF=function(d){var H=br;return uj(function(K){var c=Hk(C6);try{K.parent=H,d(K)}finally{Hk(c)}},!1)};
_.MM=function(d){return d};
_.mS=function(d){return{isDefault:!0,children:d.children}};
_.w9=function(d){var H=EKE(d),K=_.ey(function(){return yP4(H)},void 0,"F1PF4");
return eD(function(){var c=K(),p;uj(function(){var g=Hk(C6);try{p=n6(c())}finally{Hk(g)}});
return p},{debugName:d.debugInstance,
isControlFlowComponent:!0})};
EKE=function(d){d=d.children;return Array.isArray(d)?d:[d]};
bOE=function(d){var H=d.props;d=d.getChildren()[0];return H.when?{when:H.when,children:d}:{isDefault:!0,children:d}};
yP4=function(d){var H=function(){return null};
d=_.q(d);for(var K=d.next();!K.done;K=d.next())if(K=K.value,K!=null&&K[d9]&&(K=K.type===_.mS?{isDefault:!0,children:K.children[0]}:{when:K.props.when,children:K.children[0]}),K instanceof x2&&(K=bOE(K)),K.isDefault)H=K.children;else if(K.when())return K.children;return H};
DCM=function(d){var H=null,K,c={get value(){var g,a;(a=(g=p).validateGetValue)==null||a.call(g);return p.__value},set value(g){var a,e;(e=(a=p).validateSetValue)==null||e.call(a,g);p.__value=g;p.__hasBeenSet=!0}},p=(c.__value=null,c.__hasBeenSet=!1,c.__hasErrored=!1,c.onRender=function(g){if(K&&g!==K){K._disposeRef=void 0;var a;(a=H)==null||a()}K=g;H=d(g)||null},c.onUnmount=function(){var g;
(g=H)==null||g();H=p.value=null},c[_.NrM]=!0,c);
return p};
PE=function(d){return typeof d==="symbol"};
APY=function(d){var H=RQl();if(H==null)throw _.fcF.PRIMITIVE_INVALID_HOOK_CALL();var K=H.hookCounter++;H.hooks||(H.hooks=[]);var c=H.hooks;c[K]||(c[K]={key:d,host:H});if(d!==c[K].key){if(H.__type){var p;d=(p=H.__type)==null?void 0:p.name}else d=H instanceof US?SDi(H.functionComponent):"<"+H.el.tagName.toLowerCase()+">";throw _.fcF.OUT_OF_ORDER_HOOK_CALL(d);}return c[K]};
jui=function(d,H){return!d||d.length!==(H==null?void 0:H.length)||d.some(function(K,c){return K!==H[c]})};
vKL=function(d,H){var K=APY("onChange"),c=RQl();jui(K.deps,H)&&(K.deps=H,K.pendingEffect=d,c.__syncEffects||(c.__syncEffects=[]),c.__syncEffects.push(K))};
_.uU=function(d,H){var K=K===void 0?{}:K;K=K.appContext;var c=!!jX.legacyTriggerSoyRendererEvents;qM.setUp();try{var p=doL(d,H,K);c&&(H=K,H==null&&(H=_.V7i(document).getAppContext()),H.get(Hoi).JSC$28923_getEventTarget().dispatchEvent(new $oF(KWl,d,iU)));qM.log(d);return p}finally{qM.tearDown()}};
doL=function(d,H,K){var c=m5(function(){var p=Hk(C6);try{return uj(function(){var g=_.V7i(_.XF(d)),a;var e=svY({rootElement:{value:d},appContext:K||(g==null?void 0:(a=g.getOptionalAppContext)==null?void 0:a.call(g)),dispatcher:g});g=_.N_(e);e=$2(!0);nl++;try{k2(H(),d),RH(!1)}catch(k){throw RH(!0),k;}finally{$2(e),_.N_(g)}},!1)}catch(g){throw jX.enableContextBasedComponentStacks&&Mt(g),g;
}finally{Hk(p)}});
d[cO5]=!0;return function(){d.textContent="";c();d[cO5]=!1}};
_.Is=function(d){if(YDF(dc)){var H;(H=jX.handleError)==null||H.call.apply(H,[jX].concat(_.ru(Bk(Error("Yb")))))}var K=br,c=Ue;Promise.resolve().then(function(){if(K&&!K.isDisposed){var p=_.N_(K);try{m5(function(){return void d()},c)}catch(g){throw jX.enableContextBasedComponentStacks&&Mt(g),g;
}finally{_.N_(p)}}})};
_.r9=function(d,H){vKL(function(){return ij(d)},H)};
_.WE=function(d){Ll()?_.Is(function(){ij(d)}):vKL(function(){return ij(d)},[])};
gWF=function(d){var H=[].concat(_.ru(d));d.length=0;d=_.q(H);for(H=d.next();!H.done;H=d.next()){H=H.value;pyF(H);var K=H.pendingEffect;H.pendingEffect=null;if(K=K==null?void 0:K())H.pendingCleanup=K}};
pyF=function(d){var H=d.pendingCleanup;d.pendingCleanup=null;H==null||H()};
ioX=function(d,H){if(Ll())return d();var K=APY("useMemoInternal");jui(K.deps,H)&&(K.deps=H,K.value=d());return K.value};
GTi=function(d,H){return ioX(d,H)};
BE=function(d){return ioX(d,[])};
z9=function(d){return BE(function(){return{value:d}})};
_.Xm=function(d,H){if(!d)return null;d=Object.keys(d);d=_.q(d);for(var K=d.next();!K.done;K=d.next()){K=K.value;var c=K.toLowerCase();if(c.indexOf(H,c.length-H.length)>-1)return K}return null};
_.sS=function(){var d=arguments,H=_.Jm;d.length>1?H[d[0]]=d[1]:d.length===1&&Object.assign(H,d[0])};
_.Fm=function(d,H){return d in _.Jm?_.Jm[d]:H};
_.Qx=function(d,H){return!!_.Fm(d,H)};
oWY=function(d){var H=_.Jm.EXPERIMENT_FLAGS;return H?H[d]:void 0};
aiX=function(d){qal.forEach(function(H){return H(d)})};
_.Y2=function(d){return d&&window.yterr?function(){try{return d.apply(this,arguments)}catch(H){_.tm(H)}}:d};
_.tm=function(d){var H=_.OS("yt.logging.errors.log");H?H(d,"ERROR",void 0,void 0,void 0,void 0,void 0):(H=_.Fm("ERRORS",[]),H.push([d,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.sS("ERRORS",H));aiX(d)};
_.SD=function(d,H,K,c,p){var g=_.OS("yt.logging.errors.log");g?g(d,"WARNING",H,K,c,void 0,p):(g=_.Fm("ERRORS",[]),g.push([d,"WARNING",H,K,c,void 0,p]),_.sS("ERRORS",g))};
eTM=function(d,H){H=d.split(H);for(var K={},c=0,p=H.length;c<p;c++){var g=H[c].split("=");if(g.length===1&&g[0]||g.length===2)try{var a=liF(g[0]||""),e=liF(g[1]||"");if(a in K){var k=K[a];Array.isArray(k)?_.Sl(k,e):K[a]=[k,e]}else K[a]=e}catch(U){var C=U,R=g[0],V=String(eTM);C.args=[{key:R,value:g[1],query:d,method:kTL===V?"unchanged":V}];xoi.hasOwnProperty(R)||_.SD(C)}}return K};
nWY=function(d){var H=[];_.rs.forEach(d,function(K,c){var p=_.ES(c);K=Array.isArray(K)?K:[K];_.yx(K,function(g){g==""?H.push(p):H.push(p+"="+_.ES(g))})});
return H.join("&")};
_.bU=function(d){d.charAt(0)==="?"&&(d=d.substring(1));return eTM(d,"&")};
_.NM=function(d){return d.indexOf("?")!==-1?(d=(d||"").split("#")[0],d=d.split("?",2),_.bU(d.length>1?d[1]:d[0])):{}};
_.DY=function(d,H){return C5h(d,H||{},!0)};
RTM=function(d,H){return C5h(d,H||{},!1)};
C5h=function(d,H,K){var c=d.split("#",2);d=c[0];c=c.length>1?"#"+c[1]:"";var p=d.split("?",2);d=p[0];p=_.bU(p[1]||"");for(var g in H)if(K||!_.rs.containsKey(p,g))p[g]=H[g];return _.f6(d,p)+c};
df=function(d){if(!H)var H=window.location.href;var K=_.Am(d)[1]||null,c=_.jD(d);return K&&c?vE(d,H):c?_.jD(H)===c&&(Number(_.Am(H)[4]||null)||null)===(Number(_.Am(d)[4]||null)||null):!0};
_.Uof=function(d){d=V5M(d);return d===null?!1:d[0]==="com"&&d[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
V5M=function(d){d=_.jD(d);return d!==null?d.split(".").reverse():null};
liF=function(d){return d&&d.match(hTi)?d:Hb(d)};
_.$p=function(d){return new LWY(d)};
_.Kj=function(){M5f||(M5f=new moE);return M5f};
P51=function(){var d=wyM;return function(){var H=_.Kj();H.resolve(_.$p(d))||H.addProvider({provide:d,useClass:d});return H.resolve(d)}};
IiL=function(d){var H=_.cb,K,c;_.l(function(p){K=_.Kj();return(c=K.resolve(_.$p(H)))?(d(c),p.return(Promise.resolve(c))):p.return(K.resolve(new uwX(H)).then(function(g){d(g);return g}))})};
_.h=function(d){d=pj(d);return typeof d==="string"&&d==="false"?!1:!!d};
_.iT=function(d,H){d=pj(d);return d===void 0&&H!==void 0?H:Number(d||0)};
rOM=function(d){d=pj(d);return Array.isArray(d)?_.Wf(d,function(H){return Number(H||0)}):[Number(d||0)]};
_.GJ=function(d){d=pj(d);return d!==void 0?String(d):""};
_.o5=function(d){d=pj(d);return Array.isArray(d)?_.Wf(d,function(H){return String(H||"")}):[String(d||"")]};
WWh=function(){return _.Fm("EXPERIMENTS_TOKEN","")};
pj=function(d){return _.Fm("EXPERIMENT_FLAGS",{})[d]};
BVl=function(){for(var d=[],H=_.Fm("EXPERIMENTS_FORCED_FLAGS",{}),K=_.q(Object.keys(H)),c=K.next();!c.done;c=K.next())c=c.value,d.push({key:c,value:String(H[c])});K=_.Fm("EXPERIMENT_FLAGS",{});c=_.q(Object.keys(K));for(var p=c.next();!p.done;p=c.next())p=p.value,p.startsWith("force_")&&H[p]===void 0&&d.push({key:p,value:String(K[p])});return d};
Xyl=function(){if(!zT4)return null;var d=zT4();return"open"in d?d:null};
_.JO5=function(d){switch(_.qQ(d)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.qQ=function(d){return d&&"status"in d?d.status:-1};
_.a5=function(d,H){typeof d==="function"&&(d=_.Y2(d));return window.setTimeout(d,H)};
_.lT=function(d,H){typeof d==="function"&&(d=_.Y2(d));return window.setInterval(d,H)};
_.eb=function(d){window.clearTimeout(d)};
FWF=function(d){d=_.NM(d);for(var H=_.q(sFX),K=H.next();!K.done;K=H.next())if(d[K.value]!==void 0)return!0;return!1};
QF5=function(d,H,K,c,p,g,a,e,k){K=K===void 0?"GET":K;c=c===void 0?"":c;e=e===void 0?!1:e;var C=Xyl();if(!C)return null;var R=function(){(C&&"readyState"in C?C.readyState:0)===4&&H&&_.Y2(H)(C)};
"onloadend"in C?C.addEventListener("loadend",R,!1):C.onreadystatechange=R;_.h("debug_forward_web_query_parameters")&&(d=ZoM(d,window.location.search));C.open(K,d,!0);g&&(C.responseType=g);a&&(C.withCredentials=!0);K=K==="POST"&&(window.FormData===void 0||!(c instanceof FormData));if(p=TVM(d,p))for(var V in p)C.setRequestHeader(V,p[V]),"content-type"===V.toLowerCase()&&(K=!1);K&&C.setRequestHeader("Content-Type","application/x-www-form-urlencoded");k&&"onprogress"in C&&(C.onprogress=function(){k(C.responseText)});
if(e&&"setAttributionReporting"in XMLHttpRequest.prototype){d={eventSourceEligible:!0,triggerEligible:!1};try{C.setAttributionReporting(d)}catch(U){_.SD(U)}}C.send(c);return C};
TVM=function(d,H){H=H===void 0?{}:H;var K=df(d),c=_.Fm("INNERTUBE_CLIENT_NAME"),p=_.h("web_ajax_ignore_global_headers_if_set"),g;for(g in t5f){var a=_.Fm(t5f[g]),e=g==="X-Goog-AuthUser"||g==="X-Goog-PageId";g!=="X-Goog-Visitor-Id"||a||(a=_.Fm("VISITOR_DATA"));var k;if(!(k=!a)){if(!(k=K||(_.jD(d)?!1:!0))){k=d;var C;if(C=_.h("add_auth_headers_to_remarketing_google_dot_com_ping")&&g==="Authorization"&&(c==="TVHTML5"||c==="TVHTML5_UNPLUGGED"||c==="TVHTML5_SIMPLY"))C=V5M(k),C=C===null?!1:C[1]==="google"?
!0:C[2]==="google"?C[0]==="au"&&C[1]==="com"?!0:C[0]==="uk"&&C[1]==="co"?!0:!1:!1;C&&(k=_.kp(k)||"",k=k.split("/"),k="/"+(k.length>1?k[1]:""),C=k==="/pagead");k=C?!0:!1}k=!k}k||p&&H[g]!==void 0||c==="TVHTML5_UNPLUGGED"&&e||(H[g]=a)}"X-Goog-EOM-Visitor-Id"in H&&"X-Goog-Visitor-Id"in H&&delete H["X-Goog-Visitor-Id"];if(K||!_.jD(d))H["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(K||!_.jD(d)){try{var R=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(V){}R&&(H["X-YouTube-Time-Zone"]=
R)}document.location.hostname.endsWith("youtubeeducation.com")||!K&&_.jD(d)||(H["X-YouTube-Ad-Signals"]=nWY(Yal()));return H};
_.OoE=function(d,H){var K=_.jD(d);_.h("debug_handle_relative_url_for_query_forward_killswitch")||!K&&df(d)&&(K=document.location.hostname);var c=_.kp(d);c=(K=K&&(K.endsWith("youtube.com")||K.endsWith("youtube-nocookie.com")))&&c&&c.startsWith("/api/");if(!K||c)return d;var p=_.bU(H),g={};_.yx(sFX,function(a){p[a]&&(g[a]=p[a])});
return RTM(d,g)};
SaX=function(d,H){H.method="POST";H.postParams||(H.postParams={});return _.xp(d,H)};
EWF=function(d,H){var K=_.Fm("XSRF_FIELD_NAME"),c;H.headers&&(c=H.headers["Content-Type"]);return!H.excludeXsrf&&(!_.jD(d)||H.withCredentials||_.jD(d)===document.location.hostname)&&H.method==="POST"&&(!c||c==="application/x-www-form-urlencoded")&&!(H.postParams&&H.postParams[K])};
_.xp=function(d,H){var K=H.format||"JSON";d=yOF(d,H);var c=boM(d,H),p=!1,g=NVD(d,function(k){if(!p){p=!0;e&&_.eb(e);var C=_.JO5(k),R=null,V=400<=k.status&&k.status<500,U=500<=k.status&&k.status<600;if(C||V||U)R=DoY(d,K,k,H.convertToSafeHtml);C&&(C=fi1(K,k,R));R=R||{};V=H.context||_.KF;C?H.onSuccess&&H.onSuccess.call(V,k,R):H.onError&&H.onError.call(V,k,R);H.onFinish&&H.onFinish.call(V,k,R)}},H.method,c,H.headers,H.responseType,H.withCredentials,!1,H.onProgress);
c=H.timeout||0;if(H.onTimeout&&c>0){var a=H.onTimeout;var e=_.a5(function(){p||(p=!0,g.abort(),_.eb(e),a.call(H.context||_.KF,g))},c)}return g};
yOF=function(d,H){H.includeDomain&&(d=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+d);var K=_.Fm("XSRF_FIELD_NAME");if(H=H.urlParams)H[K]&&delete H[K],d=_.DY(d,H);return d};
boM=function(d,H){var K=_.Fm("XSRF_FIELD_NAME"),c=_.Fm("XSRF_TOKEN"),p=H.postBody||"",g=H.postParams;EWF(d,H)&&(g||(g={}),g[K]=c);(_.h("ajax_parse_query_data_only_when_filled")&&g&&Object.keys(g).length>0||g)&&typeof p==="string"&&(p=_.bU(p),_.rs.extend(p,g),p=H.postBodyFormat&&H.postBodyFormat==="JSON"?JSON.stringify(p):_.nj(p));g=p||g&&!_.rs.isEmpty(g);!AOX&&g&&H.method!=="POST"&&(AOX=!0,_.tm(Error("Ec")));return p};
DoY=function(d,H,K,c){var p=null;switch(H){case "JSON":try{var g=K.responseText}catch(a){throw c=Error("Fc"),c.params=d,_.SD(c),a;}d=K.getResponseHeader("Content-Type")||"";g&&d.indexOf("json")>=0&&(g.substring(0,5)===")]}'\n"&&(g=g.substring(5)),p=JSON.parse(g));break;case "XML":if(d=(d=K.responseXML)?jFX(d):null)p={},_.yx(d.getElementsByTagName("*"),function(a){p[a.tagName]=vWD(a)})}c&&dR4(p);
return p};
dR4=function(d){if(_.y4(d))for(var H in d)H==="html_content"||i1(H,"_html")?d[H]=tL(d[H]):dR4(d[H])};
fi1=function(d,H,K){if(H&&H.status===204)return!0;switch(d){case "JSON":return!!K;case "XML":return Number(K&&K.return_code)===0;case "RAW":return!0;default:return!!K}};
jFX=function(d){return d?(d=("responseXML"in d?d.responseXML:d).getElementsByTagName("root"))&&d.length>0?d[0]:null:null};
vWD=function(d){var H="";_.yx(d.childNodes,function(K){H+=K.nodeValue});
return H};
HHL=function(d){if(d.name==="JavaException")return!0;d=d.stack;return d.includes("chrome://")||d.includes("-extension://")||d.includes("webkit-masked-url://")};
$RC=function(d){if(!d.stack)return!0;var H=!d.stack.includes("\n");return H&&d.stack.includes("ErrorType: ")||H&&d.stack.includes("Anonymous function (Unknown script")||d.stack.toLowerCase()==="not available"||d.fileName==="user-script"||d.fileName.startsWith("user-script:")?!0:!1};
_.Cj=function(d){_.h_.call(this);this.JSC$10450_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!d};
cFF=function(d,H){var K=d.length,c=0,p=function(){return d.charCodeAt(c++)};
do{var g=KEM(p);if(g===Infinity)break;var a=g>>3;switch(g&7){case 0:g=KEM(p);if(a===H)return g;break;case 1:if(a===H)return;c+=8;break;case 2:g=KEM(p);if(a===H)return d.substr(c,g);c+=g;break;case 5:if(a===H)return;c+=4;break;default:return}}while(c<K)};
KEM=function(d){var H=d(),K=H&127;if(H<128)return K;H=d();K|=(H&127)<<7;if(H<128)return K;H=d();K|=(H&127)<<14;if(H<128)return K;H=d();return H<128?K|(H&127)<<21:Infinity};
gLF=function(d,H,K,c){if(d)if(Array.isArray(d)){var p=c;for(c=0;c<d.length&&!(d[c]&&(p+=pWX(c,d[c],H,K),p>500));c++);c=p}else if(typeof d==="object")for(p in d){if(d[p]){var g=p;var a=d[p],e=H,k=K;g=typeof a!=="string"||g!=="clickTrackingParams"&&g!=="trackingParams"?0:(a=cFF(atob(a.replace(/-/g,"+").replace(/_/g,"/")),2))?pWX(g+".ve",a,e,k):0;c+=g;c+=pWX(p,d[p],H,K);if(c>500)break}}else K[H]=R5(d),c+=K[H].length;else K[H]=R5(d),c+=K[H].length;return c};
pWX=function(d,H,K,c){K+="."+d;d=R5(H);c[K]=d;return K.length+d.length};
R5=function(d){try{return(typeof d==="string"?d:String(JSON.stringify(d))).substr(0,500)}catch(H){return"unable to serialize "+typeof d+" ("+H.message+")"}};
iHC=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}};
_.Um=function(d,H,K,c,p){_.Vm.set(d,H,{maxAge:K,path:"/",domain:c===void 0?"youtube.com":c,secure:p===void 0?!1:p})};
_.GRE=function(d,H,K){_.Vm.remove(d,H===void 0?"/":H,K===void 0?"youtube.com":K)};
_.hX=function(){if(_.h("embeds_web_enable_cookie_detection_fix")){if(!_.KF.navigator.cookieEnabled)return!1}else if(!_.Vm.isEnabled())return!1;if(!_.Vm.isEmpty())return!0;_.h("embeds_web_enable_cookie_detection_fix")?_.Vm.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.Vm.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.Vm.get("TESTCOOKIESENABLED")!=="1")return!1;_.Vm.remove("TESTCOOKIESENABLED");return!0};
oLE=function(){var d=_.KF.navigator;return d?d.connection:void 0};
qcl=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(d){}};
_.lLM=function(){var d=oLE();if(d){var H=aLi[d.type||"unknown"]||"CONN_UNKNOWN";d=aLi[d.effectiveType||"unknown"]||"CONN_UNKNOWN";H==="CONN_CELLULAR_UNKNOWN"&&d!=="CONN_UNKNOWN"&&(H=d);if(H!=="CONN_UNKNOWN")return H;if(d!=="CONN_UNKNOWN")return d}};
kRi=function(){var d=oLE();if(d!=null&&d.effectiveType)return ekF.hasOwnProperty(d.effectiveType)?ekF[d.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.MQ=function(){try{return _.Lj(),!0}catch(d){return!1}};
_.Lj=function(d){if(_.Fm("DATASYNC_ID")!==void 0)return _.Fm("DATASYNC_ID");throw new _.m1("Datasync ID not set",d===void 0?"unknown":d);};
_.wf=function(d){this.mechanism=d};
Pb=function(d){this.mechanism=d};
uT=function(d){this.storage_=d;this.cachedIsStorageAvailable_=null};
xRi=function(){var d=null;try{d=_.KF.localStorage||null}catch(H){}uT.call(this,d)};
nLC=function(){var d=null;try{d=_.KF.sessionStorage||null}catch(H){}uT.call(this,d)};
I5=function(d,H){this.mechanism_=d;this.JSC$10552_prefix_=H+"::"};
_.CZM=function(d){var H=new xRi;return H.isAvailable()?d?new I5(H,d):H:null};
_.RkF=function(d){var H=new nLC;return H.isAvailable()?d?new I5(H,d):H:null};
URF=function(){var d;return(d=VGM())==null?void 0:d.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Bb=function(d){hkY||(_.rf?_.rf.logError(d):(_.Wb.push({type:"ERROR",payload:d}),_.Wb.length>10&&_.Wb.shift()))};
zJ=function(d,H){hkY||(_.rf?_.rf.logEvent(d,H):(_.Wb.push({type:"EVENT",eventType:d,payload:H}),_.Wb.length>10&&_.Wb.shift()))};
XI=function(d){if(d.indexOf(":")>=0)throw Error("Mc");};
JX=function(d){return d.substr(0,d.indexOf(":"))||d};
mRh=function(){return(LEh||MGi)&&sm("applewebkit")&&!sm("version")&&(!sm("safari")||sm("gsa/"))};
sm=function(d){var H=_.nF();return H?H.toLowerCase().indexOf(d)>=0:!1};
uvX=function(d,H,K,c){H=JX(H);var p=d instanceof Error?d:Error("Nc`"+d);if(p instanceof FI)return p;d={objectStoreNames:K,dbName:H,dbVersion:c};if(p.name==="QuotaExceededError")return new FI("QUOTA_EXCEEDED",d);if(_.ZO&&p.name==="UnknownError")return new FI("QUOTA_MAYBE_EXCEEDED",d);if(p instanceof wW4)return new FI("MISSING_INDEX",Object.assign({},d,{objectStore:p.objectStore,index:p.index}));if(p.name==="InvalidStateError"&&PZM.some(function(g){return p.message.includes(g)}))return new FI("EXECUTE_TRANSACTION_ON_CLOSED_DB",
d);
if(p.name==="AbortError")return new FI("UNKNOWN_ABORT",d,p.message);p.args=[Object.assign({},d,{name:"IdbError",originalName:p.name})];p.level="WARNING";return p};
TJ=function(d,H,K){var c=URF();return new FI("IDB_NOT_SUPPORTED",{context:{caller:d,publicName:H,version:K,hasSucceededOnce:c==null?void 0:c.hasSucceededOnce}})};
ILf=function(d){if(!d)throw Error();throw d;};
rFF=function(d){return d};
WEf=function(d,H,K){var c=function(){try{d.removeEventListener("success",p),d.removeEventListener("error",g)}catch(a){}},p=function(){H(d.result);
c()},g=function(){K(d.error);
c()};
d.addEventListener("success",p);d.addEventListener("error",g)};
B04=function(d){return new Promise(function(H,K){WEf(d,H,K)})};
Yp=function(d){return new Qm(new tX(function(H,K){WEf(d,H,K)}))};
zkl=function(d,H){return new Qm(new tX(function(K,c){var p=function(){var g=d?H(d):null;g?g.then(function(a){d=a;p()},c):K()};
p()}))};
XW4=function(d,H,K){return new Promise(function(c,p){var g=H!==void 0?self.indexedDB.open(d,H):self.indexedDB.open(d);var a=K.blocked,e=K.blocking,k=K.terminated,C=K.upgrade,R=K.closed,V,U=function(){V||(V=new Om(g.result,{closed:R}));return V};
g.addEventListener("upgradeneeded",function(L){try{if(L.newVersion===null)throw Error("Sc");if(g.transaction===null)throw Error("Tc");L.dataLoss&&L.dataLoss!=="none"&&zJ("IDB_DATA_CORRUPTED",{reason:L.dataLossMessage||"unknown reason",dbName:JX(d)});var w=U(),W=new Sb(g.transaction);C&&C(w,function(J){return L.oldVersion<J&&L.newVersion>=J},W);
W.done.catch(function(J){p(J)})}catch(J){p(J)}});
g.addEventListener("success",function(){var L=g.result;e&&L.addEventListener("versionchange",function(){e(U())});
L.addEventListener("close",function(){zJ("IDB_UNEXPECTEDLY_CLOSED",{dbName:JX(d),dbVersion:L.version});k&&k()});
c(U())});
g.addEventListener("error",function(){p(g.error)});
a&&g.addEventListener("blocked",function(){a()})})};
JFF=function(d,H,K){K=K===void 0?{}:K;return XW4(d,H,K)};
_.ym=function(d,H){H=H===void 0?{}:H;var K,c,p,g;return _.l(function(a){if(a.nextAddress==1)return _.e2(a,2),K=self.indexedDB.deleteDatabase(d),c=H,(p=c.blocked)&&K.addEventListener("blocked",function(){p()}),a.yield(B04(K),4);
if(a.nextAddress!=2)return _.Em(a,0);g=_.RV(a);throw uvX(g,d,"",-1);})};
FEF=function(d,H){var K;return _.l(function(c){if(c.nextAddress==1)return c.yield(_.bT(s6Y,H),2);K=c.yieldResult;return c.return(_.NQ(K,["databases"],{enableRetries:!0,mode:"readwrite"},function(p){var g=p.objectStore("databases");return g.get(d.actualName).then(function(a){if(a?d.actualName!==a.actualName||d.publicName!==a.publicName||d.userIdentifier!==a.userIdentifier:1)return g.put(d).then(function(){})})}))})};
_.DO=function(d,H){var K;return _.l(function(c){if(c.nextAddress==1)return d?c.yield(_.bT(s6Y,H),2):c.return();K=c.yieldResult;return c.return(K.delete("databases",d))})};
_.ZHL=function(d,H){var K,c;return _.l(function(p){return p.nextAddress==1?(K=[],p.yield(_.bT(s6Y,H),2)):p.nextAddress!=3?(c=p.yieldResult,p.yield(_.NQ(c,["databases"],{enableRetries:!0,mode:"readonly"},function(g){K.length=0;return fj(g.objectStore("databases"),{},function(a){d(a.getValue())&&K.push(a.getValue());return a.continue()})}),3)):p.return(K)})};
T0l=function(d,H){return _.ZHL(function(K){return K.publicName===d&&K.userIdentifier!==void 0},H)};
YcD=function(){var d,H,K,c;return _.l(function(p){switch(p.nextAddress){case 1:d=URF();if((H=d)==null?0:H.hasSucceededOnce)return p.return(!0);var g;if(g=Q6i)g=/WebKit\/([0-9]+)/.exec(_.nF()),g=!!(g&&parseInt(g[1],10)>=600);g&&(g=/WebKit\/([0-9]+)/.exec(_.nF()),g=!(g&&parseInt(g[1],10)>=602));if(g||AX)return p.return(!1);try{if(K=self,!(K.indexedDB&&K.IDBIndex&&K.IDBKeyRange&&K.IDBObjectStore))return p.return(!1)}catch(a){return p.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return p.return(!1);
_.e2(p,2);c={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return p.yield(FEF(c,tGF),4);case 4:return p.yield(_.DO("yt-idb-test-do-not-use",tGF),5);case 5:return p.return(!0);case 2:return _.RV(p),p.return(!1)}})};
ScF=function(){if(OH5!==void 0)return OH5;hkY=!0;return OH5=YcD().then(function(d){hkY=!1;var H;if((H=VGM())!=null&&H.expiringStorage_){var K;H={hasSucceededOnce:((K=URF())==null?void 0:K.hasSucceededOnce)||d};var c;(c=VGM())==null||c.set("LAST_RESULT_ENTRY_KEY",H,2592E3,!0)}return d})};
jb=function(){return _.OS("ytglobal.idbToken_")||void 0};
_.dF=function(){var d=jb();return d?Promise.resolve(d):ScF().then(function(H){(H=H?tGF:void 0)&&_.vb("ytglobal.idbToken_",H);return H})};
ELM=function(d){if(!_.MQ())throw d=new FI("AUTH_INVALID",{dbName:d}),_.Bb(d),d;var H=_.Lj();return{actualName:d+":"+H,publicName:d,userIdentifier:H}};
yFF=function(d,H,K,c){var p,g,a,e,k,C;return _.l(function(R){switch(R.nextAddress){case 1:return g=(p=Error().stack)!=null?p:"",R.yield(_.dF(),2);case 2:a=R.yieldResult;if(!a)throw e=TJ("openDbImpl",d,H),_.h("ytidb_async_stack_killswitch")||(e.stack=e.stack+"\n"+g.substring(g.indexOf("\n")+1)),_.Bb(e),e;XI(d);k=K?{actualName:d,publicName:d,userIdentifier:void 0}:ELM(d);_.e2(R,3);return R.yield(FEF(k,a),5);case 5:return R.yield(JFF(k.actualName,H,c),6);case 6:return R.return(R.yieldResult);case 3:return C=
_.RV(R),_.e2(R,7),R.yield(_.DO(k.actualName,a),9);case 9:_.Em(R,8);break;case 7:_.RV(R);case 8:throw C;}})};
bHC=function(d,H,K){K=K===void 0?{}:K;return yFF(d,H,!1,K)};
N0i=function(d,H,K){K=K===void 0?{}:K;return yFF(d,H,!0,K)};
DRF=function(d,H){H=H===void 0?{}:H;var K,c;return _.l(function(p){if(p.nextAddress==1)return p.yield(_.dF(),2);if(p.nextAddress!=3){K=p.yieldResult;if(!K)return p.return();XI(d);c=ELM(d);return p.yield(_.ym(c.actualName,H),3)}return p.yield(_.DO(c.actualName,K),0)})};
fLX=function(d,H,K){d=d.map(function(c){return _.l(function(p){return p.nextAddress==1?p.yield(_.ym(c.actualName,H),2):p.yield(_.DO(c.actualName,K),0)})});
return Promise.all(d).then(function(){})};
AFF=function(d){var H=H===void 0?{}:H;var K,c;return _.l(function(p){if(p.nextAddress==1)return p.yield(_.dF(),2);if(p.nextAddress!=3){K=p.yieldResult;if(!K)return p.return();XI(d);return p.yield(T0l(d,K),3)}c=p.yieldResult;return p.yield(fLX(c,H,K),0)})};
j61=function(d,H){H=H===void 0?{}:H;var K;return _.l(function(c){if(c.nextAddress==1)return c.yield(_.dF(),2);if(c.nextAddress!=3){K=c.yieldResult;if(!K)return c.return();XI(d);return c.yield(_.ym(d,H),3)}return c.yield(_.DO(d,K),0)})};
HM=function(d,H){return vLi(d,H)};
Hmi=function(d){return _.bT(dvf(),d)};
$vD=function(d,H,K,c){var p,g,a;return _.l(function(e){switch(e.nextAddress){case 1:return p={config:d,hashData:H,timestamp:c!==void 0?c:(0,_.$G)()},e.yield(Hmi(K),2);case 2:return g=e.yieldResult,e.yield(g.clear("hotConfigStore"),3);case 3:return e.yield(g.put("hotConfigStore",p),4);case 4:return a=e.yieldResult,e.return(a)}})};
KZ5=function(d,H,K,c,p){var g,a,e;return _.l(function(k){switch(k.nextAddress){case 1:return g={config:d,hashData:H,configData:K,timestamp:p!==void 0?p:(0,_.$G)()},k.yield(Hmi(c),2);case 2:return a=k.yieldResult,k.yield(a.clear("coldConfigStore"),3);case 3:return k.yield(a.put("coldConfigStore",g),4);case 4:return e=k.yieldResult,k.return(e)}})};
ccF=function(d){var H,K;return _.l(function(c){return c.nextAddress==1?c.yield(Hmi(d),2):c.nextAddress!=3?(H=c.yieldResult,K=void 0,c.yield(_.NQ(H,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(p){return _.K4(p.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(g){K=g.getValue()})}),3)):c.return(K)})};
p55=function(d){var H,K;return _.l(function(c){return c.nextAddress==1?c.yield(Hmi(d),2):c.nextAddress!=3?(H=c.yieldResult,K=void 0,c.yield(_.NQ(H,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(p){return _.K4(p.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(g){K=g.getValue()})}),3)):c.return(K)})};
giF=function(){return _.l(function(d){return d.yield(AFF("ytGcfConfig"),0)})};
imh=function(){return"INNERTUBE_API_KEY"in _.Jm&&"INNERTUBE_API_VERSION"in _.Jm};
_.cM=function(){return{innertubeApiKey:_.Fm("INNERTUBE_API_KEY"),innertubeApiVersion:_.Fm("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Fm("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Fm("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Fm("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Fm("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Fm("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Fm("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Fm("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Qx("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Qx("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Fm("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.ke1=function(d){var H={client:{hl:d.innertubeContextHostLanguage,gl:d.innertubeContextGeoLocation,clientName:d.innertubeContextClientName,clientVersion:d.innertubeContextClientVersion,configInfo:d.innertubeContextClientConfigInfo}};navigator.userAgent&&(H.client.userAgent=String(navigator.userAgent));var K=_.KF.devicePixelRatio;K&&K!=1&&(H.client.screenDensityFloat=String(K));K=WWh();K!==""&&(H.client.experimentsToken=K);K=BVl();K.length>0&&(H.request={internalExperimentFlags:K});GeY(d,void 0,H);
oi1(void 0,H);qbE(void 0,H);a8Y(d,void 0,H);l8F(void 0,H);_.h("start_client_gcf")&&eRF(void 0,H);_.Fm("DELEGATED_SESSION_ID")&&!_.h("pageid_as_header_web")&&(H.user={onBehalfOfUser:_.Fm("DELEGATED_SESSION_ID")});!_.h("fill_delegate_context_in_gel_killswitch")&&(d=_.Fm("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(H.user=Object.assign({},H.user,{serializedDelegationContext:d}));d=_.Fm("INNERTUBE_CONTEXT");var c;if(_.h("enable_persistent_device_token")&&(d==null?0:(c=d.client)==null?0:c.rolloutToken)){var p;
H.client.rolloutToken=d==null?void 0:(p=d.client)==null?void 0:p.rolloutToken}c=Object;p=c.assign;d=H.client;K={};for(var g=_.q(Object.entries(_.bU(_.Fm("DEVICE","")))),a=g.next();!a.done;a=g.next()){var e=_.q(a.value);a=e.next().value;e=e.next().value;a==="cbrand"?K.deviceMake=e:a==="cmodel"?K.deviceModel=e:a==="cbr"?K.browserName=e:a==="cbrver"?K.browserVersion=e:a==="cos"?K.osName=e:a==="cosver"?K.osVersion=e:a==="cplatform"&&(K.platform=e)}H.client=p.call(c,d,K);return H};
GeY=function(d,H,K){d=d.innertubeContextClientName;if(d==="WEB"||d==="MWEB"||d===1||d===2)if(H){K=_.gF(H,xvl,96)||new xvl;var c=niF();c=Object.keys(CO4).indexOf(c);c=c===-1?null:c;c!==null&&_.G1(K,3,c);_.eE(H,96,K)}else K&&(K.client.mainAppWebInfo=(c=K.client.mainAppWebInfo)!=null?c:{},K.client.mainAppWebInfo.webDisplayMode=niF())};
oi1=function(d,H){var K=_.OS("yt.embedded_player.embed_url");K&&(d?(H=_.gF(d,RRh,7)||new RRh,_.UY(H,4,K),_.eE(d,7,H)):H&&(H.thirdParty={embedUrl:K}))};
qbE=function(d,H){var K;if(_.h("web_log_memory_total_kbytes")&&((K=_.KF.navigator)==null?0:K.deviceMemory)){var c;K=(c=_.KF.navigator)==null?void 0:c.deviceMemory;d?_.ov(d,95,pt(K*1E6)):H&&(H.client.memoryTotalKbytes=""+K*1E6)}};
a8Y=function(d,H,K){if(d.appInstallData)if(H){var c;K=(c=_.gF(H,ql,62))!=null?c:new ql;_.UY(K,6,d.appInstallData);_.eE(H,62,K)}else K&&(K.client.configInfo=K.client.configInfo||{},K.client.configInfo.appInstallData=d.appInstallData)};
l8F=function(d,H){var K=_.lLM();K&&(d?_.G1(d,61,Vhl[K]):H&&(H.client.connectionType=K));_.h("web_log_effective_connection_type")&&(K=kRi())&&(d?_.G1(d,94,UvY[K]):H&&(H.client.effectiveConnectionType=K))};
_.MhE=function(d,H,K){K=K===void 0?{}:K;var c={};_.Fm("EOM_VISITOR_DATA")?c={"X-Goog-EOM-Visitor-Id":_.Fm("EOM_VISITOR_DATA")}:c={"X-Goog-Visitor-Id":K.visitorData||_.Fm("VISITOR_DATA","")};if(H&&H.includes("www.youtube-nocookie.com"))return c;H=K.authorization||_.Fm("AUTHORIZATION");H||(d?H="Bearer "+_.OS("gapi.auth.getToken")().access_token:(hR4.instance||(hR4.instance=new hR4),d=LZL(),_.h("pageid_as_header_web")||delete d["X-Goog-PageId"],c=Object.assign({},c,d)));H&&(c.Authorization=H);return c};
eRF=function(d,H){var K=mv4();if(K){var c=K.coldConfigData,p=K.coldHashData;K=K.hotHashData;if(d){var g;H=(g=_.gF(d,ql,62))!=null?g:new ql;c=_.UY(H,1,c);_.UY(c,3,p).setHotHashData(K);_.eE(d,62,H)}else H&&(H.client.configInfo=H.client.configInfo||{},c&&(H.client.configInfo.coldConfigData=c),p&&(H.client.configInfo.coldHashData=p),K&&(H.client.configInfo.hotHashData=K))}};
av=function(d){for(var H=d.length;--H>=0;)d[H]=0};
w5i=function(d,H,K,c,p){this.static_tree=d;this.extra_bits=H;this.extra_base=K;this.elems=c;this.max_length=p;this.has_stree=d&&d.length};
POF=function(d,H){this.dyn_tree=d;this.max_code=0;this.stat_desc=H};
lt=function(d,H){d.pending_buf[d.pending++]=H&255;d.pending_buf[d.pending++]=H>>>8&255};
e7=function(d,H,K){d.bi_valid>16-K?(d.bi_buf|=H<<d.bi_valid&65535,lt(d,d.bi_buf),d.bi_buf=H>>16-d.bi_valid,d.bi_valid+=K-16):(d.bi_buf|=H<<d.bi_valid&65535,d.bi_valid+=K)};
kG=function(d,H,K){e7(d,K[H*2],K[H*2+1])};
uLY=function(d,H){var K=0;do K|=d&1,d>>>=1,K<<=1;while(--H>0);return K>>>1};
I84=function(d,H,K){var c=Array(16),p=0,g;for(g=1;g<=15;g++)c[g]=p=p+K[g-1]<<1;for(K=0;K<=H;K++)p=d[K*2+1],p!==0&&(d[K*2]=uLY(c[p]++,p))};
rcY=function(d){var H;for(H=0;H<286;H++)d.dyn_ltree[H*2]=0;for(H=0;H<30;H++)d.dyn_dtree[H*2]=0;for(H=0;H<19;H++)d.bl_tree[H*2]=0;d.dyn_ltree[512]=1;d.opt_len=d.static_len=0;d.last_lit=d.matches=0};
WZX=function(d){d.bi_valid>8?lt(d,d.bi_buf):d.bi_valid>0&&(d.pending_buf[d.pending++]=d.bi_buf);d.bi_buf=0;d.bi_valid=0};
BnY=function(d,H,K){WZX(d);lt(d,K);lt(d,~K);xG.arraySet(d.pending_buf,d.window,H,K,d.pending);d.pending+=K};
zRY=function(d,H,K,c){var p=H*2,g=K*2;return d[p]<d[g]||d[p]===d[g]&&c[H]<=c[K]};
X5M=function(d,H,K){for(var c=d.heap[K],p=K<<1;p<=d.heap_len;){p<d.heap_len&&zRY(H,d.heap[p+1],d.heap[p],d.depth)&&p++;if(zRY(H,c,d.heap[p],d.depth))break;d.heap[K]=d.heap[p];K=p;p<<=1}d.heap[K]=c};
Tnf=function(d,H,K){var c=0;if(d.last_lit!==0){do{var p=d.pending_buf[d.d_buf+c*2]<<8|d.pending_buf[d.d_buf+c*2+1];var g=d.pending_buf[d.l_buf+c];c++;if(p===0)kG(d,g,H);else{var a=n4[g];kG(d,a+256+1,H);var e=JcL[a];e!==0&&(g-=s3F[a],e7(d,g,e));p--;a=p<256?C4[p]:C4[256+(p>>>7)];kG(d,a,K);e=FZD[a];e!==0&&(p-=ZmM[a],e7(d,p,e))}}while(c<d.last_lit)}kG(d,256,H)};
Q3D=function(d,H){var K=H.dyn_tree,c=H.stat_desc.static_tree,p=H.stat_desc.has_stree,g=H.stat_desc.elems,a,e=-1;d.heap_len=0;d.heap_max=573;for(a=0;a<g;a++)K[a*2]!==0?(d.heap[++d.heap_len]=e=a,d.depth[a]=0):K[a*2+1]=0;for(;d.heap_len<2;){var k=d.heap[++d.heap_len]=e<2?++e:0;K[k*2]=1;d.depth[k]=0;d.opt_len--;p&&(d.static_len-=c[k*2+1])}H.max_code=e;for(a=d.heap_len>>1;a>=1;a--)X5M(d,K,a);k=g;do a=d.heap[1],d.heap[1]=d.heap[d.heap_len--],X5M(d,K,1),c=d.heap[1],d.heap[--d.heap_max]=a,d.heap[--d.heap_max]=
c,K[k*2]=K[a*2]+K[c*2],d.depth[k]=(d.depth[a]>=d.depth[c]?d.depth[a]:d.depth[c])+1,K[a*2+1]=K[c*2+1]=k,d.heap[1]=k++,X5M(d,K,1);while(d.heap_len>=2);d.heap[--d.heap_max]=d.heap[1];a=H.dyn_tree;k=H.max_code;c=H.stat_desc.static_tree;p=H.stat_desc.has_stree;g=H.stat_desc.extra_bits;var C=H.stat_desc.extra_base,R=H.stat_desc.max_length,V,U=0;for(V=0;V<=15;V++)d.bl_count[V]=0;a[d.heap[d.heap_max]*2+1]=0;for(H=d.heap_max+1;H<573;H++){var L=d.heap[H];V=a[a[L*2+1]*2+1]+1;V>R&&(V=R,U++);a[L*2+1]=V;if(!(L>
k)){d.bl_count[V]++;var w=0;L>=C&&(w=g[L-C]);var W=a[L*2];d.opt_len+=W*(V+w);p&&(d.static_len+=W*(c[L*2+1]+w))}}if(U!==0){do{for(V=R-1;d.bl_count[V]===0;)V--;d.bl_count[V]--;d.bl_count[V+1]+=2;d.bl_count[R]--;U-=2}while(U>0);for(V=R;V!==0;V--)for(L=d.bl_count[V];L!==0;)c=d.heap[--H],c>k||(a[c*2+1]!==V&&(d.opt_len+=(V-a[c*2+1])*a[c*2],a[c*2+1]=V),L--)}I84(K,e,d.bl_count)};
thX=function(d,H,K){var c,p=-1,g=H[1],a=0,e=7,k=4;g===0&&(e=138,k=3);H[(K+1)*2+1]=65535;for(c=0;c<=K;c++){var C=g;g=H[(c+1)*2+1];++a<e&&C===g||(a<k?d.bl_tree[C*2]+=a:C!==0?(C!==p&&d.bl_tree[C*2]++,d.bl_tree[32]++):a<=10?d.bl_tree[34]++:d.bl_tree[36]++,a=0,p=C,g===0?(e=138,k=3):C===g?(e=6,k=3):(e=7,k=4))}};
YbY=function(d,H,K){var c,p=-1,g=H[1],a=0,e=7,k=4;g===0&&(e=138,k=3);for(c=0;c<=K;c++){var C=g;g=H[(c+1)*2+1];if(!(++a<e&&C===g)){if(a<k){do kG(d,C,d.bl_tree);while(--a!==0)}else C!==0?(C!==p&&(kG(d,C,d.bl_tree),a--),kG(d,16,d.bl_tree),e7(d,a-3,2)):a<=10?(kG(d,17,d.bl_tree),e7(d,a-3,3)):(kG(d,18,d.bl_tree),e7(d,a-11,7));a=0;p=C;g===0?(e=138,k=3):C===g?(e=6,k=3):(e=7,k=4)}}};
OmY=function(d){var H=4093624447,K;for(K=0;K<=31;K++,H>>>=1)if(H&1&&d.dyn_ltree[K*2]!==0)return 0;if(d.dyn_ltree[18]!==0||d.dyn_ltree[20]!==0||d.dyn_ltree[26]!==0)return 1;for(K=32;K<256;K++)if(d.dyn_ltree[K*2]!==0)return 1;return 0};
Rv=function(d,H,K){d.pending_buf[d.d_buf+d.last_lit*2]=H>>>8&255;d.pending_buf[d.d_buf+d.last_lit*2+1]=H&255;d.pending_buf[d.l_buf+d.last_lit]=K&255;d.last_lit++;H===0?d.dyn_ltree[K*2]++:(d.matches++,H--,d.dyn_ltree[(n4[K]+256+1)*2]++,d.dyn_dtree[(H<256?C4[H]:C4[256+(H>>>7)])*2]++);return d.last_lit===d.lit_bufsize-1};
UX=function(d,H){d.msg=VQ[H];return H};
h5=function(d){for(var H=d.length;--H>=0;)d[H]=0};
L4=function(d){var H=d.state,K=H.pending;K>d.avail_out&&(K=d.avail_out);K!==0&&(xG.arraySet(d.output,H.pending_buf,H.pending_out,K,d.next_out),d.next_out+=K,H.pending_out+=K,d.total_out+=K,d.avail_out-=K,H.pending-=K,H.pending===0&&(H.pending_out=0))};
wF=function(d,H){var K=d.block_start>=0?d.block_start:-1,c=d.strstart-d.block_start,p=0;if(d.level>0){d.strm.data_type===2&&(d.strm.data_type=OmY(d));Q3D(d,d.l_desc);Q3D(d,d.d_desc);thX(d,d.dyn_ltree,d.l_desc.max_code);thX(d,d.dyn_dtree,d.d_desc.max_code);Q3D(d,d.bl_desc);for(p=18;p>=3&&d.bl_tree[SbD[p]*2+1]===0;p--);d.opt_len+=3*(p+1)+5+5+4;var g=d.opt_len+3+7>>>3;var a=d.static_len+3+7>>>3;a<=g&&(g=a)}else g=a=c+5;if(c+4<=g&&K!==-1)e7(d,H?1:0,3),BnY(d,K,c);else if(d.strategy===4||a===g)e7(d,2+(H?
1:0),3),Tnf(d,Ml,mw);else{e7(d,4+(H?1:0),3);K=d.l_desc.max_code+1;c=d.d_desc.max_code+1;p+=1;e7(d,K-257,5);e7(d,c-1,5);e7(d,p-4,4);for(g=0;g<p;g++)e7(d,d.bl_tree[SbD[g]*2+1],3);YbY(d,d.dyn_ltree,K-1);YbY(d,d.dyn_dtree,c-1);Tnf(d,d.dyn_ltree,d.dyn_dtree)}rcY(d);H&&WZX(d);d.block_start=d.strstart;L4(d.strm)};
PM=function(d,H){d.pending_buf[d.pending++]=H};
ut=function(d,H){d.pending_buf[d.pending++]=H>>>8&255;d.pending_buf[d.pending++]=H&255};
EiF=function(d,H){var K=d.max_chain_length,c=d.strstart,p=d.prev_length,g=d.nice_match,a=d.strstart>d.w_size-262?d.strstart-(d.w_size-262):0,e=d.window,k=d.w_mask,C=d.prev,R=d.strstart+258,V=e[c+p-1],U=e[c+p];d.prev_length>=d.good_match&&(K>>=2);g>d.lookahead&&(g=d.lookahead);do{var L=H;if(e[L+p]===U&&e[L+p-1]===V&&e[L]===e[c]&&e[++L]===e[c+1]){c+=2;for(L++;e[++c]===e[++L]&&e[++c]===e[++L]&&e[++c]===e[++L]&&e[++c]===e[++L]&&e[++c]===e[++L]&&e[++c]===e[++L]&&e[++c]===e[++L]&&e[++c]===e[++L]&&c<R;);
L=258-(R-c);c=R-258;if(L>p){d.match_start=H;p=L;if(L>=g)break;V=e[c+p-1];U=e[c+p]}}}while((H=C[H&k])>a&&--K!==0);return p<=d.lookahead?p:d.lookahead};
rF=function(d){var H=d.w_size,K;do{var c=d.window_size-d.lookahead-d.strstart;if(d.strstart>=H+(H-262)){xG.arraySet(d.window,d.window,H,H,0);d.match_start-=H;d.strstart-=H;d.block_start-=H;var p=K=d.hash_size;do{var g=d.head[--p];d.head[p]=g>=H?g-H:0}while(--K);p=K=H;do g=d.prev[--p],d.prev[p]=g>=H?g-H:0;while(--K);c+=H}if(d.strm.avail_in===0)break;p=d.strm;K=d.window;g=d.strstart+d.lookahead;var a=p.avail_in;a>c&&(a=c);a===0?K=0:(p.avail_in-=a,xG.arraySet(K,p.input,p.next_in,a,g),p.state.wrap===
1?p.adler=ycY(p.adler,K,a,g):p.state.wrap===2&&(p.adler=Iv(p.adler,K,a,g)),p.next_in+=a,p.total_in+=a,K=a);d.lookahead+=K;if(d.lookahead+d.insert>=3)for(c=d.strstart-d.insert,d.ins_h=d.window[c],d.ins_h=(d.ins_h<<d.hash_shift^d.window[c+1])&d.hash_mask;d.insert&&!(d.ins_h=(d.ins_h<<d.hash_shift^d.window[c+3-1])&d.hash_mask,d.prev[c&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=c,c++,d.insert--,d.lookahead+d.insert<3););}while(d.lookahead<262&&d.strm.avail_in!==0)};
bmM=function(d,H){for(var K;;){if(d.lookahead<262){rF(d);if(d.lookahead<262&&H===0)return 1;if(d.lookahead===0)break}K=0;d.lookahead>=3&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+3-1])&d.hash_mask,K=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart);K!==0&&d.strstart-K<=d.w_size-262&&(d.match_length=EiF(d,K));if(d.match_length>=3)if(K=Rv(d,d.strstart-d.match_start,d.match_length-3),d.lookahead-=d.match_length,d.match_length<=d.max_lazy_match&&d.lookahead>=3){d.match_length--;
do d.strstart++,d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+3-1])&d.hash_mask,d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart;while(--d.match_length!==0);d.strstart++}else d.strstart+=d.match_length,d.match_length=0,d.ins_h=d.window[d.strstart],d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+1])&d.hash_mask;else K=Rv(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++;if(K&&(wF(d,!1),d.strm.avail_out===0))return 1}d.insert=d.strstart<2?d.strstart:2;return H===4?(wF(d,
!0),d.strm.avail_out===0?3:4):d.last_lit&&(wF(d,!1),d.strm.avail_out===0)?1:2};
WM=function(d,H){for(var K,c;;){if(d.lookahead<262){rF(d);if(d.lookahead<262&&H===0)return 1;if(d.lookahead===0)break}K=0;d.lookahead>=3&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+3-1])&d.hash_mask,K=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart);d.prev_length=d.match_length;d.prev_match=d.match_start;d.match_length=2;K!==0&&d.prev_length<d.max_lazy_match&&d.strstart-K<=d.w_size-262&&(d.match_length=EiF(d,K),d.match_length<=5&&(d.strategy===1||d.match_length===3&&
d.strstart-d.match_start>4096)&&(d.match_length=2));if(d.prev_length>=3&&d.match_length<=d.prev_length){c=d.strstart+d.lookahead-3;K=Rv(d,d.strstart-1-d.prev_match,d.prev_length-3);d.lookahead-=d.prev_length-1;d.prev_length-=2;do++d.strstart<=c&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+3-1])&d.hash_mask,d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart);while(--d.prev_length!==0);d.match_available=0;d.match_length=2;d.strstart++;if(K&&(wF(d,!1),d.strm.avail_out===0))return 1}else if(d.match_available){if((K=
Rv(d,0,d.window[d.strstart-1]))&&wF(d,!1),d.strstart++,d.lookahead--,d.strm.avail_out===0)return 1}else d.match_available=1,d.strstart++,d.lookahead--}d.match_available&&(Rv(d,0,d.window[d.strstart-1]),d.match_available=0);d.insert=d.strstart<2?d.strstart:2;return H===4?(wF(d,!0),d.strm.avail_out===0?3:4):d.last_lit&&(wF(d,!1),d.strm.avail_out===0)?1:2};
NnC=function(d,H){for(var K,c,p,g=d.window;;){if(d.lookahead<=258){rF(d);if(d.lookahead<=258&&H===0)return 1;if(d.lookahead===0)break}d.match_length=0;if(d.lookahead>=3&&d.strstart>0&&(c=d.strstart-1,K=g[c],K===g[++c]&&K===g[++c]&&K===g[++c])){for(p=d.strstart+258;K===g[++c]&&K===g[++c]&&K===g[++c]&&K===g[++c]&&K===g[++c]&&K===g[++c]&&K===g[++c]&&K===g[++c]&&c<p;);d.match_length=258-(p-c);d.match_length>d.lookahead&&(d.match_length=d.lookahead)}d.match_length>=3?(K=Rv(d,1,d.match_length-3),d.lookahead-=
d.match_length,d.strstart+=d.match_length,d.match_length=0):(K=Rv(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++);if(K&&(wF(d,!1),d.strm.avail_out===0))return 1}d.insert=0;return H===4?(wF(d,!0),d.strm.avail_out===0?3:4):d.last_lit&&(wF(d,!1),d.strm.avail_out===0)?1:2};
DvC=function(d,H){for(var K;;){if(d.lookahead===0&&(rF(d),d.lookahead===0)){if(H===0)return 1;break}d.match_length=0;K=Rv(d,0,d.window[d.strstart]);d.lookahead--;d.strstart++;if(K&&(wF(d,!1),d.strm.avail_out===0))return 1}d.insert=0;return H===4?(wF(d,!0),d.strm.avail_out===0?3:4):d.last_lit&&(wF(d,!1),d.strm.avail_out===0)?1:2};
BM=function(d,H,K,c,p){this.good_length=d;this.max_lazy=H;this.nice_length=K;this.max_chain=c;this.func=p};
f8E=function(){this.strm=null;this.status=0;this.pending_buf=null;this.wrap=this.pending=this.pending_out=this.pending_buf_size=0;this.gzhead=null;this.gzindex=0;this.method=8;this.last_flush=-1;this.w_mask=this.w_bits=this.w_size=0;this.window=null;this.window_size=0;this.head=this.prev=null;this.nice_match=this.good_match=this.strategy=this.level=this.max_lazy_match=this.max_chain_length=this.prev_length=this.lookahead=this.match_start=this.strstart=this.match_available=this.prev_match=this.match_length=
this.block_start=this.hash_shift=this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0;this.dyn_ltree=new xG.Buf16(1146);this.dyn_dtree=new xG.Buf16(122);this.bl_tree=new xG.Buf16(78);h5(this.dyn_ltree);h5(this.dyn_dtree);h5(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new xG.Buf16(16);this.heap=new xG.Buf16(573);h5(this.heap);this.heap_max=this.heap_len=0;this.depth=new xG.Buf16(573);h5(this.depth);this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=this.opt_len=
this.d_buf=this.last_lit=this.lit_bufsize=this.l_buf=0};
AcF=function(d,H){if(!d||!d.state||H>5||H<0)return d?UX(d,-2):-2;var K=d.state;if(!d.output||!d.input&&d.avail_in!==0||K.status===666&&H!==4)return UX(d,d.avail_out===0?-5:-2);K.strm=d;var c=K.last_flush;K.last_flush=H;if(K.status===42)if(K.wrap===2)d.adler=0,PM(K,31),PM(K,139),PM(K,8),K.gzhead?(PM(K,(K.gzhead.text?1:0)+(K.gzhead.hcrc?2:0)+(K.gzhead.extra?4:0)+(K.gzhead.name?8:0)+(K.gzhead.comment?16:0)),PM(K,K.gzhead.time&255),PM(K,K.gzhead.time>>8&255),PM(K,K.gzhead.time>>16&255),PM(K,K.gzhead.time>>
24&255),PM(K,K.level===9?2:K.strategy>=2||K.level<2?4:0),PM(K,K.gzhead.os&255),K.gzhead.extra&&K.gzhead.extra.length&&(PM(K,K.gzhead.extra.length&255),PM(K,K.gzhead.extra.length>>8&255)),K.gzhead.hcrc&&(d.adler=Iv(d.adler,K.pending_buf,K.pending,0)),K.gzindex=0,K.status=69):(PM(K,0),PM(K,0),PM(K,0),PM(K,0),PM(K,0),PM(K,K.level===9?2:K.strategy>=2||K.level<2?4:0),PM(K,3),K.status=113);else{var p=8+(K.w_bits-8<<4)<<8;p|=(K.strategy>=2||K.level<2?0:K.level<6?1:K.level===6?2:3)<<6;K.strstart!==0&&(p|=
32);K.status=113;ut(K,p+(31-p%31));K.strstart!==0&&(ut(K,d.adler>>>16),ut(K,d.adler&65535));d.adler=1}if(K.status===69)if(K.gzhead.extra){for(p=K.pending;K.gzindex<(K.gzhead.extra.length&65535)&&(K.pending!==K.pending_buf_size||(K.gzhead.hcrc&&K.pending>p&&(d.adler=Iv(d.adler,K.pending_buf,K.pending-p,p)),L4(d),p=K.pending,K.pending!==K.pending_buf_size));)PM(K,K.gzhead.extra[K.gzindex]&255),K.gzindex++;K.gzhead.hcrc&&K.pending>p&&(d.adler=Iv(d.adler,K.pending_buf,K.pending-p,p));K.gzindex===K.gzhead.extra.length&&
(K.gzindex=0,K.status=73)}else K.status=73;if(K.status===73)if(K.gzhead.name){p=K.pending;do{if(K.pending===K.pending_buf_size&&(K.gzhead.hcrc&&K.pending>p&&(d.adler=Iv(d.adler,K.pending_buf,K.pending-p,p)),L4(d),p=K.pending,K.pending===K.pending_buf_size)){var g=1;break}g=K.gzindex<K.gzhead.name.length?K.gzhead.name.charCodeAt(K.gzindex++)&255:0;PM(K,g)}while(g!==0);K.gzhead.hcrc&&K.pending>p&&(d.adler=Iv(d.adler,K.pending_buf,K.pending-p,p));g===0&&(K.gzindex=0,K.status=91)}else K.status=91;if(K.status===
91)if(K.gzhead.comment){p=K.pending;do{if(K.pending===K.pending_buf_size&&(K.gzhead.hcrc&&K.pending>p&&(d.adler=Iv(d.adler,K.pending_buf,K.pending-p,p)),L4(d),p=K.pending,K.pending===K.pending_buf_size)){g=1;break}g=K.gzindex<K.gzhead.comment.length?K.gzhead.comment.charCodeAt(K.gzindex++)&255:0;PM(K,g)}while(g!==0);K.gzhead.hcrc&&K.pending>p&&(d.adler=Iv(d.adler,K.pending_buf,K.pending-p,p));g===0&&(K.status=103)}else K.status=103;K.status===103&&(K.gzhead.hcrc?(K.pending+2>K.pending_buf_size&&L4(d),
K.pending+2<=K.pending_buf_size&&(PM(K,d.adler&255),PM(K,d.adler>>8&255),d.adler=0,K.status=113)):K.status=113);if(K.pending!==0){if(L4(d),d.avail_out===0)return K.last_flush=-1,0}else if(d.avail_in===0&&(H<<1)-(H>4?9:0)<=(c<<1)-(c>4?9:0)&&H!==4)return UX(d,-5);if(K.status===666&&d.avail_in!==0)return UX(d,-5);if(d.avail_in!==0||K.lookahead!==0||H!==0&&K.status!==666){c=K.strategy===2?DvC(K,H):K.strategy===3?NnC(K,H):z1[K.level].func(K,H);if(c===3||c===4)K.status=666;if(c===1||c===3)return d.avail_out===
0&&(K.last_flush=-1),0;if(c===2&&(H===1?(e7(K,2,3),kG(K,256,Ml),K.bi_valid===16?(lt(K,K.bi_buf),K.bi_buf=0,K.bi_valid=0):K.bi_valid>=8&&(K.pending_buf[K.pending++]=K.bi_buf&255,K.bi_buf>>=8,K.bi_valid-=8)):H!==5&&(e7(K,0,3),BnY(K,0,0),H===3&&(h5(K.head),K.lookahead===0&&(K.strstart=0,K.block_start=0,K.insert=0))),L4(d),d.avail_out===0))return K.last_flush=-1,0}if(H!==4)return 0;if(K.wrap<=0)return 1;K.wrap===2?(PM(K,d.adler&255),PM(K,d.adler>>8&255),PM(K,d.adler>>16&255),PM(K,d.adler>>24&255),PM(K,
d.total_in&255),PM(K,d.total_in>>8&255),PM(K,d.total_in>>16&255),PM(K,d.total_in>>24&255)):(ut(K,d.adler>>>16),ut(K,d.adler&65535));L4(d);K.wrap>0&&(K.wrap=-K.wrap);return K.pending!==0?0:1};
j3h=function(d){if(!(this instanceof j3h))return new j3h(d);d=this.options=xG.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},d||{});d.raw&&d.windowBits>0?d.windowBits=-d.windowBits:d.gzip&&d.windowBits>0&&d.windowBits<16&&(d.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new vih;this.strm.avail_out=0;var H=this.strm;var K=d.level,c=d.method,p=d.windowBits,g=d.memLevel,a=d.strategy;if(H){var e=1;K===-1&&(K=6);p<0?(e=0,p=-p):p>15&&
(e=2,p-=16);if(g<1||g>9||c!==8||p<8||p>15||K<0||K>9||a<0||a>4)H=UX(H,-2);else{p===8&&(p=9);var k=new f8E;H.state=k;k.strm=H;k.wrap=e;k.gzhead=null;k.w_bits=p;k.w_size=1<<k.w_bits;k.w_mask=k.w_size-1;k.hash_bits=g+7;k.hash_size=1<<k.hash_bits;k.hash_mask=k.hash_size-1;k.hash_shift=~~((k.hash_bits+3-1)/3);k.window=new xG.Buf8(k.w_size*2);k.head=new xG.Buf16(k.hash_size);k.prev=new xG.Buf16(k.w_size);k.lit_bufsize=1<<g+6;k.pending_buf_size=k.lit_bufsize*4;k.pending_buf=new xG.Buf8(k.pending_buf_size);
k.d_buf=k.lit_bufsize;k.l_buf=3*k.lit_bufsize;k.level=K;k.strategy=a;k.method=c;if(H&&H.state){H.total_in=H.total_out=0;H.data_type=2;K=H.state;K.pending=0;K.pending_out=0;K.wrap<0&&(K.wrap=-K.wrap);K.status=K.wrap?42:113;H.adler=K.wrap===2?0:1;K.last_flush=0;if(!drX){c=Array(16);for(g=a=0;g<28;g++)for(s3F[g]=a,p=0;p<1<<JcL[g];p++)n4[a++]=g;n4[a-1]=g;for(g=a=0;g<16;g++)for(ZmM[g]=a,p=0;p<1<<FZD[g];p++)C4[a++]=g;for(a>>=7;g<30;g++)for(ZmM[g]=a<<7,p=0;p<1<<FZD[g]-7;p++)C4[256+a++]=g;for(p=0;p<=15;p++)c[p]=
0;for(p=0;p<=143;)Ml[p*2+1]=8,p++,c[8]++;for(;p<=255;)Ml[p*2+1]=9,p++,c[9]++;for(;p<=279;)Ml[p*2+1]=7,p++,c[7]++;for(;p<=287;)Ml[p*2+1]=8,p++,c[8]++;I84(Ml,287,c);for(p=0;p<30;p++)mw[p*2+1]=5,mw[p*2]=uLY(p,5);HKC=new w5i(Ml,JcL,257,286,15);$rX=new w5i(mw,FZD,0,30,15);KJ1=new w5i([],cBf,0,19,7);drX=!0}K.l_desc=new POF(K.dyn_ltree,HKC);K.d_desc=new POF(K.dyn_dtree,$rX);K.bl_desc=new POF(K.bl_tree,KJ1);K.bi_buf=0;K.bi_valid=0;rcY(K);K=0}else K=UX(H,-2);K===0&&(H=H.state,H.window_size=2*H.w_size,h5(H.head),
H.max_lazy_match=z1[H.level].max_lazy,H.good_match=z1[H.level].good_length,H.nice_match=z1[H.level].nice_length,H.max_chain_length=z1[H.level].max_chain,H.strstart=0,H.block_start=0,H.lookahead=0,H.insert=0,H.match_length=H.prev_length=2,H.match_available=0,H.ins_h=0);H=K}}else H=-2;if(H!==0)throw Error(VQ[H]);d.header&&(H=this.strm)&&H.state&&H.state.wrap===2&&(H.state.gzhead=d.header);if(d.dictionary){var C;typeof d.dictionary==="string"?C=pjF(d.dictionary):gfF.call(d.dictionary)==="[object ArrayBuffer]"?
C=new Uint8Array(d.dictionary):C=d.dictionary;d=this.strm;g=C;a=g.length;if(d&&d.state)if(C=d.state,H=C.wrap,H===2||H===1&&C.status!==42||C.lookahead)H=-2;else{H===1&&(d.adler=ycY(d.adler,g,a,0));C.wrap=0;a>=C.w_size&&(H===0&&(h5(C.head),C.strstart=0,C.block_start=0,C.insert=0),K=new xG.Buf8(C.w_size),xG.arraySet(K,g,a-C.w_size,C.w_size,0),g=K,a=C.w_size);K=d.avail_in;c=d.next_in;p=d.input;d.avail_in=a;d.next_in=0;d.input=g;for(rF(C);C.lookahead>=3;){g=C.strstart;a=C.lookahead-2;do C.ins_h=(C.ins_h<<
C.hash_shift^C.window[g+3-1])&C.hash_mask,C.prev[g&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=g,g++;while(--a);C.strstart=g;C.lookahead=2;rF(C)}C.strstart+=C.lookahead;C.block_start=C.strstart;C.insert=C.lookahead;C.lookahead=0;C.match_length=C.prev_length=2;C.match_available=0;d.next_in=c;d.input=p;d.avail_in=K;C.wrap=H;H=0}else H=-2;if(H!==0)throw Error(VQ[H]);this._dict_set=!0}};
iKl=function(d,H){H=H||{};H.gzip=!0;H=new j3h(H);H.push(d,!0);if(H.err)throw H.msg||VQ[H.err];return H.result};
ofi=function(d,H){var K=Gn5();K&&K.publish.call(K,d.toString(),d,H)};
knh=function(d,H,K){var c=Gn5();if(!c)return 0;var p=c.subscribe(d.toString(),function(g,a){var e=_.OS("ytPubsub2Pubsub2SkipSubKey");e&&e==p||(e=function(){if(qI5[p])try{if(a&&d instanceof aVX&&d!=g)try{var k=d.dataClass,C=a;if(!C.args||!C.version)throw Error("Vc");try{if(!k.version_){var R=new k;k.version_=R.version}var V=k.version_}catch(U){}if(!V||C.version!=V)throw Error("Wc");try{a=Reflect.construct(k,_.tC(C.args))}catch(U){throw U.message="yt.pubsub2.Data.deserialize(): "+U.message,U;}}catch(U){throw U.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+d.toString()+": "+U.message,U;}H.call(K||window,a)}catch(U){_.tm(U)}},lV5[d.toString()]?_.OS("yt.scheduler.instance")?_.Xp.addLowPriorityJob(e):_.a5(e,0):e())});
qI5[p]=!0;eZF[d.toString()]||(eZF[d.toString()]=[]);eZF[d.toString()].push(p);return p};
RZM=function(){var d=xrF,H=knh(nf1,function(K){d.apply(void 0,arguments);CsE(H)});
return H};
CsE=function(d){var H=Gn5();H&&(typeof d==="number"&&(d=[d]),_.yx(d,function(K){H.unsubscribeByKey(K);delete qI5[K]}))};
Gn5=function(){return _.OS("ytPubsub2Pubsub2Instance")};
VOh=function(d,H,K){K=K===void 0?{sampleRate:.1}:K;Math.random()<Math.min(.02,K.sampleRate/100)&&ofi("meta_logging_csi_event",{timerName:d,timelineData:H})};
_.Ur5=function(d){return d?(d=d.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.NN(d):null:null};
_.J5=function(d){return d?(d=d.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.hL(d):null:null};
LJX=function(){hZh||(hZh=_.J5(_.Fm("WORKER_SERIALIZATION_URL")));return hZh||void 0};
_.mr4=function(){var d=LJX();MOf||d===void 0||(MOf=new Worker(_.Lc(d),void 0));return MOf};
_.wjX=function(){return typeof Worker==="function"&&LJX()?!0:!1};
_.rBh=function(){if(_.wjX()&&!PsX){var d=function(K){K=K.data;if(K.op==="gzippedGelBatch"){var c=uQM.get(K.key);c&&(IV5(K.gzippedBatch,c.latencyPayload,c.url,c.options,c.sendFn),uQM.delete(K.key))}},H=_.mr4();
H&&(H.addEventListener("message",d),H.onerror=function(){uQM.clear()},PsX=!0)}};
FJ5=function(d,H,K,c,p){p=p===void 0?!1:p;var g={startTime:(0,_.$G)(),ticks:{},infos:{}};if(sX)try{var a=WJi(H);if(a!=null&&(a>B4l||a<zZ4))c(d,K);else{if(_.h("gzip_gel_with_worker")&&(_.h("initial_gzip_use_main_thread")&&!Xj1||!_.h("initial_gzip_use_main_thread"))){PsX||_.rBh();var e=_.mr4();if(e&&!p){uQM.set(JBF,{latencyPayload:g,url:d,options:K,sendFn:c});e.postMessage({op:"gelBatchToGzip",serializedBatch:H,key:JBF});JBF++;return}}var k=iKl(s1h(H));IV5(k,g,d,K,c)}}catch(C){_.SD(C),c(d,K)}else c(d,
K)};
IV5=function(d,H,K,c,p){Xj1=!1;var g=(0,_.$G)();H.ticks.gelc=g;Fp++;_.h("disable_compression_due_to_performance_degredation")&&g-H.startTime>=ZKF&&(T4Y++,_.h("abandon_compression_after_N_slow_zips")?Fp===_.iT("compression_disable_point")&&T4Y>Q15&&(sX=!1):sX=!1);tOF(H);c.headers||(c.headers={});c.headers["Content-Encoding"]="gzip";c.postBody=d;c.postParams=void 0;p(K,c)};
YID=function(d){var H=H===void 0?!1:H;var K=K===void 0?!1:K;var c=(0,_.$G)(),p={startTime:c,ticks:{},infos:{}},g=H?_.OS("yt.logging.gzipForFetch",!1):!0;if(sX&&g){if(!d.body)return d;try{var a=K?d.body:typeof d.body==="string"?d.body:JSON.stringify(d.body);g=a;if(!K&&typeof a==="string"){var e=WJi(a);if(e!=null&&(e>B4l||e<zZ4))return d;K=H?{level:1}:void 0;g=iKl(s1h(a),K);var k=(0,_.$G)();p.ticks.gelc=k;if(H){Fp++;if((_.h("disable_compression_due_to_performance_degredation")||_.h("disable_compression_due_to_performance_degradation_lr"))&&
k-c>=ZKF)if(T4Y++,_.h("abandon_compression_after_N_slow_zips")||_.h("abandon_compression_after_N_slow_zips_lr")){H=T4Y/Fp;var C=Q15/_.iT("compression_disable_point");Fp>0&&Fp%_.iT("compression_disable_point")===0&&H>=C&&(sX=!1)}else sX=!1;tOF(p)}}d.headers=Object.assign({},{"Content-Encoding":"gzip"},d.headers||{});d.body=g;return d}catch(R){return _.SD(R),d}}else return d};
WJi=function(d){try{return(new Blob(d.split(""))).size}catch(H){return _.SD(H),null}};
tOF=function(d){_.h("gel_compression_csi_killswitch")||!_.h("log_gel_compression_latency")&&!_.h("log_gel_compression_latency_lr")||VOh("gel_compression",d,{sampleRate:.1})};
OKF=function(){this.blockSize=-1};
Z7=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var d=1;d<this.blockSize;++d)this.pad_[d]=0;this.total_=this.inbuf_=0;this.reset()};
Ef5=function(d){d=Object.assign({},d);delete d.Authorization;var H=_.SIF();if(H){var K=new Z7;K.update(_.Fm("INNERTUBE_API_KEY"));K.update(H);d.hash=_.mb(K.digest(),3)}return d};
QQ=function(){yB4||(yB4=new _.T1("yt.innertube"));return yB4};
bKF=function(d,H,K,c){if(c)return null;c=QQ().get("nextId",!0)||1;var p=QQ().get("requests",!0)||{};p[c]={method:d,request:H,authState:Ef5(K),requestTime:Math.round((0,_.$G)())};QQ().set("nextId",c+1,86400,!0);QQ().set("requests",p,86400,!0);return c};
N4M=function(d){var H=QQ().get("requests",!0)||{};delete H[d];QQ().set("requests",H,86400,!0)};
fVX=function(d){var H=QQ().get("requests",!0);if(H){for(var K in H){var c=H[K];if(!(Math.round((0,_.$G)())-c.requestTime<6E4)){var p=c.authState,g=Ef5(_.MhE(!1));_.rs.equals(p,g)&&(p=c.request,"requestTimeMs"in p&&(p.requestTimeMs=Math.round((0,_.$G)())),DrF(d,c.method,p,{}));delete H[K]}}QQ().set("requests",H,86400,!0)}};
ABL=function(d){var H;return(d=d==null?void 0:(H=d.error)==null?void 0:H.code)&&d>=400&&d<=599?!1:!0};
j1C=function(d){var H;d=d==null?void 0:(H=d.error)==null?void 0:H.code;return!(d!==400&&d!==415)};
dkF=function(){if(vfF)return vfF();var d={};vfF=HM("LogsDatabaseV2",{objectStores:(d.LogsRequestsStore={addedAtVersion:2},d),shared:!1,upgrade:function(H,K,c){K(2)&&t5(H,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});K(3);K(5)&&(c=c.objectStore("LogsRequestsStore"),c.JSC$10611_wrapped.indexNames.contains("newRequest")&&c.JSC$10611_wrapped.deleteIndex("newRequest"),YG(c,"newRequestV2",["status","interface","timestamp"]));K(7)&&H.JSC$10596_wrapped.objectStoreNames.contains("sapisid")&&H.JSC$10596_wrapped.deleteObjectStore("sapisid");
K(9)&&H.JSC$10596_wrapped.objectStoreNames.contains("SWHealthLog")&&H.JSC$10596_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return vfF()};
OX=function(d){return _.bT(dkF(),d)};
$kL=function(d,H){var K,c,p,g;return _.l(function(a){if(a.nextAddress==1)return K={startTime:(0,_.$G)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},a.yield(OX(H),2);if(a.nextAddress!=3)return c=a.yieldResult,p=Object.assign({},d,{options:JSON.parse(JSON.stringify(d.options)),interface:_.Fm("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),a.yield(c.put("LogsRequestsStore",p),3);g=a.yieldResult;K.ticks.tc=(0,_.$G)();HMF(K);return a.return(g)})};
KlC=function(d,H){var K,c,p,g,a,e,k,C,R;return _.l(function(V){if(V.nextAddress==1)return K={startTime:(0,_.$G)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},V.yield(OX(H),2);if(V.nextAddress!=3)return c=V.yieldResult,p=_.Fm("INNERTUBE_CONTEXT_CLIENT_NAME",0),g=[d,p,0],a=[d,p,(0,_.$G)()],e=IDBKeyRange.bound(g,a),k="prev",_.h("use_fifo_for_networkless")&&(k="next"),C=void 0,R=d==="NEW"?"readwrite":"readonly",_.h("use_readonly_for_get_most_recent_by_status_killswitch")&&(R="readwrite"),
V.yield(_.NQ(c,["LogsRequestsStore"],{mode:R,enableRetries:!0},function(U){return _.K4(U.objectStore("LogsRequestsStore").index("newRequestV2"),{query:e,direction:k},function(L){L.getValue()&&(C=L.getValue(),d==="NEW"&&(C.status="QUEUED",L.update(C)))})}),3);
K.ticks.tc=(0,_.$G)();HMF(K);return V.return(C)})};
cRL=function(d,H){var K;return _.l(function(c){if(c.nextAddress==1)return c.yield(OX(H),2);K=c.yieldResult;return c.return(_.NQ(K,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(p){var g=p.objectStore("LogsRequestsStore");return g.get(d).then(function(a){if(a)return a.status="QUEUED",g.put(a).then(function(){return a})})}))})};
p1f=function(d,H,K,c){K=K===void 0?!0:K;var p;return _.l(function(g){if(g.nextAddress==1)return g.yield(OX(H),2);p=g.yieldResult;return g.return(_.NQ(p,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(a){var e=a.objectStore("LogsRequestsStore");return e.get(d).then(function(k){return k?(k.status="NEW",K&&(k.sendCount+=1),c!==void 0&&(k.options.compress=c),e.put(k).then(function(){return k})):Qm.resolve(void 0)})}))})};
gv5=function(d,H){var K;return _.l(function(c){if(c.nextAddress==1)return c.yield(OX(H),2);K=c.yieldResult;return c.return(K.delete("LogsRequestsStore",d))})};
iM1=function(d){var H,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(OX(d),2);H=c.yieldResult;K=(0,_.$G)()-2592E6;return c.yield(_.NQ(H,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(p){return fj(p.objectStore("LogsRequestsStore"),{},function(g){if(g.getValue().timestamp<=K)return g.delete().then(function(){return g.continue()})})}),0)})};
G6Y=function(){_.l(function(d){return d.yield(AFF("LogsDatabaseV2"),0)})};
HMF=function(d){_.h("nwl_csi_killswitch")||VOh("networkless_performance",d,{sampleRate:1})};
_.qGl=function(d){return _.bT(ovF(),d)};
aXE=function(d){var H,K;_.l(function(c){if(c.nextAddress==1)return c.yield(_.qGl(d),2);H=c.yieldResult;K=(0,_.$G)()-2592E6;return c.yield(_.NQ(H,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(p){return fj(p.objectStore("SWHealthLog"),{},function(g){if(g.getValue().timestamp<=K)return g.delete().then(function(){return g.continue()})})}),0)})};
lXh=function(d){var H;return _.l(function(K){if(K.nextAddress==1)return K.yield(_.qGl(d),2);H=K.yieldResult;return K.yield(H.clear("SWHealthLog"),0)})};
_.S7=function(d,H,K,c,p,g,a){p=p===void 0?"":p;g=g===void 0?!1:g;a=a===void 0?!1:a;if(d)if(K&&!sm("cobalt"))_.SD(new _.m1("Legacy referrer-scrubbed ping detected")),d&&euY(d,void 0,{scrubReferrer:!0});else if(p)QF5(d,H,"POST",p,c);else if(_.Fm("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||c||a)QF5(d,H,"GET","",c,void 0,g,a);else{b:{try{c:{var e=new k65({url:d});if(e.urlParamValues_.dsh==="1")var k=null;else{var C=e.urlParamValues_.ae;if(C==="1"){var R=e.urlParamValues_.adurl;if(R)try{k={version:3,directUrl:decodeURIComponent(R),
asyncUrl:wEX(e.JSC$9447_url_,"act=1","ri=1",xkF(e))};break c}catch(w){}}k=C==="2"?{version:4,directUrl:wEX(e.JSC$9447_url_,"dct=1","suid="+e.suid_,""),asyncUrl:wEX(e.JSC$9447_url_,"act=1","ri=1","suid="+e.suid_)}:null}}if(k){var V=_.kp(d);var U=!(!V||!V.endsWith("/aclk")||_.ZB(d,"ri")!=="1");break b}}catch(w){}U=!1}if(U){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(d,"")){var L=!0;break b}}catch(w){}L=!1}L?(H&&H(),K=!0):K=!1}else K=!1;K||euY(d,H)}};
euY=function(d,H,K){K=K===void 0?{}:K;var c=new Image,p=""+nvY++;CDh[p]=c;c.onload=c.onerror=function(){H&&CDh[p]&&H();delete CDh[p]};
K.scrubReferrer&&(c.referrerPolicy="no-referrer");c.src=d};
EX=function(d,H){RuF(d,H==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
VvF=function(d){var H;return((H=document.featurePolicy)==null?0:H.allowedFeatures().includes("attribution-reporting"))?d+"&nis=6":d+"&nis=5"};
Ukh=function(d){if(!d)return!1;try{var H;if(((H=_.bU(d))==null?void 0:H.asm)==="4")return!0}catch(K){_.tm(K)}return!1};
RuF=function(d,H){H?(d=VvF(d),_.S7(d,void 0,void 0,void 0,"",!0,!0)):_.S7(d)};
LlY=function(){hu5||(hu5=new _.T1("yt.offline"));return hu5};
Mvi=function(d){if(_.h("offline_error_handling")){var H=LlY().get("errors",!0)||{};H[d.message]={name:d.name,stack:d.stack};d.level&&(H[d.message].level=d.level);LlY().set("errors",H,2592E3,!0)}};
w1i=function(d,H,K,c){c=c===void 0?!1:c;H=_.h("web_fp_via_jspb")?Object.assign({},H):H;_.h("use_cfr_monitor")&&mkM(d,H);if(_.h("use_request_time_ms_header"))H.headers&&df(d)&&(H.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.$G)())));else{var p;if((p=H.postParams)==null?0:p.requestTimeMs)H.postParams.requestTimeMs=Math.round((0,_.$G)())}K&&Object.keys(H).length===0?_.S7(d):H.compress?H.postBody?(typeof H.postBody!=="string"&&(H.postBody=JSON.stringify(H.postBody)),FJ5(d,H.postBody,
H,_.xp,c)):FJ5(d,JSON.stringify(H.postParams),H,SaX,c):_.xp(d,H)};
PDf=function(d,H){_.h("use_event_time_ms_header")&&df(d)&&(H.headers||(H.headers={}),H.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.$G)())));return H};
_.IXD=function(){u4L||(u4L=new _.yQ({logOfflineErrors:!0,enablePolling:!0}));return u4L};
mkM=function(d,H){var K=H.onError?H.onError:function(){};
H.onError=function(p,g){bt().requestComplete(d,!1);K(p,g)};
var c=H.onSuccess?H.onSuccess:function(){};
H.onSuccess=function(p,g){bt().requestComplete(d,!0);c(p,g)}};
_.rRC=function(){return _.jD(document.location.toString())!=="www.youtube-nocookie.com"};
_.zu1=function(){return _.OS("ytNetworklessLoggingInitializationOptions")?_.WlF.isNwlInitialized:_.Bgh};
X1f=function(d,H){if(_.h("polymer_on_demand_shady_dom")){var K;var c=(K=d.__shady_native_firstElementChild)!=null?K:d.firstElementChild}else c=d.firstElementChild;for(;c;){if(d=H(c)?c:X1f(c,H))return d;c=c.nextElementSibling}return null};
sql=function(){var d=document;if("visibilityState"in d)return d.visibilityState;var H=JRD+"VisibilityState";if(H in d)return d[H]};
_.Fl1=function(d,H){var K;Nl(d,function(c){K=H[c];return!!K});
return K};
_.f4=function(d){var H=ZM4(d);H?H.focus(void 0):_.D7(d)};
ZM4=function(d){return(d=X1f(d,function(H){return _.A5(H)?TgC(H)&&!!H.offsetParent:!1}))?d:null};
_.D7=function(d,H){d.hasAttribute("tabindex")||d.setAttribute("tabindex","-1");d.focus(H)};
QqX=function(d,H,K,c){c=c===void 0?{}:c;d.addEventListener&&(H!="mouseenter"||"onmouseenter"in document?H!="mouseleave"||"onmouseenter"in document?H=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(H="MozMousePixelScroll"):H="mouseout":H="mouseover");return _.rs.findKey(j7,function(p){var g=typeof p[4]==="boolean"&&p[4]==!!c,a=_.y4(p[4])&&_.y4(c)&&_.rs.equals(p[4],c);return!!p.length&&p[0]==d&&p[1]==H&&p[2]==K&&(g||a)})};
_.dz=function(d,H,K,c){c=c===void 0?{}:c;if(!d||!d.addEventListener&&!d.attachEvent)return"";var p=QqX(d,H,K,c);if(p)return p;p=++tvC.count+"";var g=!(H!="mouseenter"&&H!="mouseleave"||!d.addEventListener||"onmouseenter"in document);var a=g?function(e){e=new vM(e);if(!_.sY(e.relatedTarget,function(k){return k==d},!0))return e.currentTarget=d,e.type=H,K.call(d,e)}:function(e){e=new vM(e);
e.currentTarget=d;return K.call(d,e)};
a=_.Y2(a);d.addEventListener?(H=="mouseenter"&&g?H="mouseover":H=="mouseleave"&&g?H="mouseout":H=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(H="MozMousePixelScroll"),YGY()||typeof c==="boolean"?d.addEventListener(H,a,c):d.addEventListener(H,a,!!c.capture)):d.attachEvent("on"+H,a);j7[p]=[d,H,K,a,c];return p};
_.SGD=function(d,H,K){var c=c===void 0?{}:c;var p=_.dz(d,H,function(){_.OM4(p);K.apply(d,arguments)},c)};
_.OM4=function(d){d&&(typeof d=="string"&&(d=[d]),_.yx(d,function(H){if(H in j7){var K=j7[H],c=K[0],p=K[1],g=K[3];K=K[4];c.removeEventListener?YGY()||typeof K==="boolean"?c.removeEventListener(p,g,K):c.removeEventListener(p,g,!!K.capture):c.detachEvent&&c.detachEvent("on"+p,g);delete j7[H]}}))};
Hd=function(d){this.callback_=d;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(d=0;d<4;d++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.dz(window,"mousemove",(0,_.LA)(this.onMouseMove_,this));this.timerId_=_.lT((0,_.LA)(this.checkPosition_,this),25)};
yRD=function(){var d={};var H=d.preferMobileEvents===void 0?!1:d.preferMobileEvents;d=d.enableScrollEventListener===void 0?!0:d.enableScrollEventListener;if(_.OS("_lact",window)==null){var K=parseInt(_.Fm("LACT"),10);K=isFinite(K)?Date.now()-Math.max(K,0):-1;_.vb("_lact",K,window);_.vb("_fact",K,window);K==-1&&_.Kn();_.dz(document,"keydown",_.Kn);_.dz(document,"keyup",_.Kn);_.dz(document,"mousedown",_.Kn);_.dz(document,"mouseup",_.Kn);H?_.dz(window,"touchmove",function(){EvE("touchmove",200)},{passive:!0}):
(_.dz(window,"resize",function(){EvE("resize",200)}),d&&_.dz(window,"scroll",function(){EvE("scroll",200)}));
new Hd(function(){EvE("mouse",100)});
_.dz(document,"touchstart",_.Kn,{passive:!0});_.dz(document,"touchend",_.Kn,{passive:!0})}};
EvE=function(d,H){bMh[d]||(bMh[d]=!0,_.Xp.addLowPriorityJob(function(){_.Kn();bMh[d]=!1},H))};
_.Kn=function(){_.OS("_lact",window)==null&&yRD();var d=Date.now();_.vb("_lact",d,window);_.OS("_fact",window)==-1&&_.vb("_fact",d,window);(d=_.OS("ytglobal.ytUtilActivityCallback_"))&&d()};
_.cd=function(){var d=_.OS("_lact",window);return d==null?-1:Math.max(Date.now()-d,0)};
_.G5=function(d,H,K){var c=_.pn();if(c&&H){var p=c.subscribe(d,function(){var g=arguments,a=function(){gz[p]&&H.apply&&typeof H.apply=="function"&&H.apply(K||window,g)};
try{_.Ng5[d]?a():_.a5(a,0)}catch(e){_.tm(e)}},K);
gz[p]=!0;iw[d]||(iw[d]=[]);iw[d].push(p);return p}return 0};
_.DkF=function(d){var H=_.pn();H&&(typeof d==="number"?d=[d]:typeof d==="string"&&(d=[parseInt(d,10)]),_.yx(d,function(K){H.unsubscribeByKey(K);delete gz[K]}))};
_.fXY=function(d,H){var K=_.pn();K&&K.publish.apply(K,arguments)};
_.jqF=function(d){var H=_.pn();if(H)if(H.clear(d),d)ARX(d);else for(var K in iw)ARX(K)};
_.pn=function(){return _.KF.ytPubsubPubsubInstance};
ARX=function(d){iw[d]&&(d=iw[d],_.yx(d,function(H){gz[H]&&delete gz[H]}),d.length=0)};
vvC=function(){var d,H;return"h5vcc"in oJ&&((d=oJ.h5vcc.traceEvent)==null?0:d.traceBegin)&&((H=oJ.h5vcc.traceEvent)==null?0:H.traceEnd)?1:"performance"in oJ&&oJ.performance.mark&&oJ.performance.measure?2:0};
dcF=function(d){var H=vvC();switch(H){case 1:oJ.h5vcc.traceEvent.traceBegin("YTLR",d);break;case 2:oJ.performance.mark(d+"-start");break;case 0:break;default:_.tN(H,"unknown trace type")}};
H74=function(d){var H=vvC();switch(H){case 1:oJ.h5vcc.traceEvent.traceEnd("YTLR",d);break;case 2:H=d+"-start";var K=d+"-end";oJ.performance.mark(K);oJ.performance.measure(d,H,K);break;case 0:break;default:_.tN(H,"unknown trace type")}};
$c1=function(d){var H,K;(K=(H=window).onerror)==null||K.call(H,d.message,"",0,0,d)};
KeE=function(d){if(_.h("web_lifecycle_error_handling_killswitch"))return d();try{return d()}catch(H){$c1(H)}};
cu1=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("/")};
_.M=function(d,H){if(d)return d[H.name]};
aJ=function(){var d=_.OS("yt.logging.ims");d||(d=new qe,_.vb("yt.logging.ims",d));return d};
eAF=function(d,H){if(d.endpoint==="log_event"){pgE(d);var K=gM1(d),c=i7E(d.payload)||"",p=Gvl(c),g=200;if(p){if(p.enabled===!1&&!_.h("web_payload_policy_disabled_killswitch"))return;g=oMM(p.tier);if(g===400){qQ4(d,H);return}}lw[K]=!0;K={cttAuthInfo:K,isJspb:!1,tier:g};aJ().storePayload(K,d.payload);aA5(H,!1,K,lAF(c))}};
xcL=function(d,H,K){if(H.endpoint==="log_event"){pgE(void 0,H);var c=gM1(H,!0),p=Gvl(d),g=200;if(p){if(p.enabled===!1&&!_.h("web_payload_policy_disabled_killswitch"))return;g=oMM(p.tier);if(g===400){kvX(d,H,K);return}}lw[c]=!0;c={cttAuthInfo:c,isJspb:!0,tier:g};aJ().storePayload(c,Wv(H.payload));aA5(K,!0,c,lAF(d))}};
aA5=function(d,H,K,c){H=H===void 0?!1:H;c=c===void 0?!1:c;d&&(eV=new d);d=_.iT("tvhtml5_logging_max_batch_ads_fork")||_.iT("tvhtml5_logging_max_batch")||_.iT("web_logging_max_batch")||100;var p=(0,_.$G)(),g=nM5(H,K.tier),a=g.lastDebounceQueueFromLogTimeMs;c&&(g.useVideoStatsEndPoint=!0);c=0;K&&(c=aJ().getSequenceCount(K));var e=function(){CVF({writeThenSend:!0},H,K.tier)};
c>=1E3?e():c>=d?RAi||(RAi=V8i(function(){e();RAi=void 0},0)):p-a>=10&&(UcC(H,K.tier),g.lastDebounceQueueFromLogTimeMs=p)};
qQ4=function(d,H){if(d.endpoint==="log_event"){_.h("more_accurate_gel_parser")&&aJ().storePayload({isJspb:!1},d.payload);pgE(d);var K=gM1(d),c=new Map;c.set(K,[d.payload]);var p=i7E(d.payload)||"";H&&(eV=new H);return new _.kr(function(g,a){eV&&eV.isReady()?hAf(c,eV,g,a,{bypassNetworkless:!0},!0,lAF(p)):g()})}};
kvX=function(d,H,K){if(H.endpoint==="log_event"){pgE(void 0,H);var c=gM1(H,!0),p=new Map;p.set(c,[Wv(H.payload)]);K&&(eV=new K);return new _.kr(function(g){eV&&eV.isReady()?Lel(p,eV,g,{bypassNetworkless:!0},!0,lAF(d)):g()})}};
gM1=function(d,H){var K="";if(d.dangerousLogToVisitorSession)K="visitorOnlyApprovedKey";else if(d.cttAuthInfo){if(H===void 0?0:H){H=d.cttAuthInfo.token;K=d.cttAuthInfo;var c=new M85;K.videoId?c.setVideoId(K.videoId):K.playlistId&&xr(c,2,mch,aZ(K.playlistId));wgX[H]=c}else H=d.cttAuthInfo,K={},H.videoId?K.videoId=H.videoId:H.playlistId&&(K.playlistId=H.playlistId),PV5[d.cttAuthInfo.token]=K;K=d.cttAuthInfo.token}return K};
CVF=function(d,H,K){d=d===void 0?{}:d;H=H===void 0?!1:H;new _.kr(function(c,p){var g=nM5(H,K),a=g.useVideoStatsEndPoint;g.useVideoStatsEndPoint=!1;uXL(g.queueTimer);uXL(g.queueMaxTimer);g.queueMaxTimer=0;eV&&eV.isReady()?K===void 0&&_.h("enable_web_tiered_gel")?IAM(c,p,d,H,300,a):IAM(c,p,d,H,K,a):(UcC(H,K),c())})};
IAM=function(d,H,K,c,p,g){var a=eV;K=K===void 0?{}:K;c=c===void 0?!1:c;p=p===void 0?200:p;g=g===void 0?!1:g;var e=new Map,k=new Map,C={isJspb:c,cttAuthInfo:void 0,tier:p},R={isJspb:c,cttAuthInfo:void 0};if(c){H=_.q(Object.keys(lw));for(p=H.next();!p.done;p=H.next())p=p.value,k=_.h("enable_web_tiered_gel")?aJ().smartExtractMatchingEntries({keys:[C,R],sizeLimit:1E3}):aJ().extractMatchingEntries({isJspb:!0,cttAuthInfo:p}),k.length>0&&e.set(p,k),(_.h("web_fp_via_jspb_and_json")&&K.writeThenSend||!_.h("web_fp_via_jspb_and_json"))&&
delete lw[p];Lel(e,a,d,K,!1,g)}else{e=_.q(Object.keys(lw));for(C=e.next();!C.done;C=e.next())C=C.value,R=_.h("enable_web_tiered_gel")?aJ().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:C,tier:p},{isJspb:!1,cttAuthInfo:C}],sizeLimit:1E3}):aJ().extractMatchingEntries({isJspb:!1,cttAuthInfo:C}),R.length>0&&k.set(C,R),(_.h("web_fp_via_jspb_and_json")&&K.writeThenSend||!_.h("web_fp_via_jspb_and_json"))&&delete lw[C];hAf(k,a,d,H,K,!1,g)}};
UcC=function(d,H){d=d===void 0?!1:d;H=H===void 0?200:H;var K=function(){CVF({writeThenSend:!0},d,H)},c=nM5(d,H),p=c===ruf||c===WeD?5E3:B7L;
_.h("web_gel_timeout_cap")&&!c.queueMaxTimer&&(p=V8i(function(){K()},p),c.queueMaxTimer=p);
uXL(c.queueTimer);p=_.Fm("LOGGING_BATCH_TIMEOUT",_.iT("web_gel_debounce_ms",1E4));_.h("shorten_initial_gel_batch_timeout")&&zAY&&(p=XgM);p=V8i(function(){_.iT("gel_min_batch_size")>0?aJ().getSequenceCount({cttAuthInfo:void 0,isJspb:d,tier:H})>=Ju1&&K():K()},p);
c.queueTimer=p};
hAf=function(d,H,K,c,p,g,a){p=p===void 0?{}:p;var e=Math.round((0,_.$G)()),k=d.size,C=sdC(a);d=_.q(d);var R=d.next();for(a={};!R.done;a={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},R=d.next()){var V=_.q(R.value);R=V.next().value;V=V.next().value;a.batchRequest=_.rs.unsafeClone({context:_.ke1(H.config_||_.cM())});if(!_.O5(V)&&!_.h("throw_err_when_logevent_malformed_killswitch")){c();break}a.batchRequest.events=V;
(V=PV5[R])&&Fe1(a.batchRequest,R,V);delete PV5[R];a.dangerousLogToVisitorSession=R==="visitorOnlyApprovedKey";Z7l(a.batchRequest,e,a.dangerousLogToVisitorSession);T7L(p);a.onSuccess$jscomp$3=function(U){_.h("start_client_gcf")&&_.Xp.addLowPriorityJob(function(){return _.l(function(L){return L.yield(Qdi(U),0)})});
k--;k||K()};
a.networkFailures=0;a.onError$jscomp$5=function(U){return function(){U.networkFailures++;if(p.bypassNetworkless&&U.networkFailures===1)try{DrF(H,C,U.batchRequest,t8M({writeThenSend:!0},U.dangerousLogToVisitorSession,U.onSuccess$jscomp$3,U.onError$jscomp$5,g)),zAY=!1}catch(L){_.tm(L),c()}k--;k||K()}}(a);
try{DrF(H,C,a.batchRequest,t8M(p,a.dangerousLogToVisitorSession,a.onSuccess$jscomp$3,a.onError$jscomp$5,g)),zAY=!1}catch(U){_.tm(U),c()}}};
Lel=function(d,H,K,c,p,g){c=c===void 0?{}:c;var a=Math.round((0,_.$G)()),e={value:d.size},k=new Map([].concat(_.ru(d)));k=_.q(k);for(var C=k.next();!C.done;C=k.next()){var R=_.q(C.value).next().value,V=d.get(R);C=new YQ4;var U=H.config_||_.cM(),L=new nn,w=new O7D;_.UY(w,1,U.innertubeContextHostLanguage);_.UY(w,2,U.innertubeContextGeoLocation);_.G1(w,16,U.innertubeContextClientNameFieldNumber);_.UY(w,17,U.innertubeContextClientVersion);if(U.innertubeContextClientConfigInfo){var W=U.innertubeContextClientConfigInfo,
J=new ql;W.coldConfigData&&_.UY(J,1,W.coldConfigData);W.appInstallData&&_.UY(J,6,W.appInstallData);W.coldHashData&&_.UY(J,3,W.coldHashData);W.hotHashData&&J.setHotHashData(W.hotHashData);_.eE(w,62,J)}(W=_.KF.devicePixelRatio)&&W!=1&&_.ov(w,65,_.O3(W));W=WWh();W!==""&&_.UY(w,54,W);W=BVl();if(W.length>0){J=new SQX;for(var F=0;F<W.length;F++){var Y=new Cn;Y.setKey(W[F].key);xr(Y,2,EMX,aZ(W[F].value));RJ(J,15,Cn,Y)}_.eE(L,5,J)}GeY(U,w);oi1(L);qbE(w);a8Y(U,w);l8F(w);_.h("start_client_gcf")&&eRF(w);_.Fm("DELEGATED_SESSION_ID")&&
!_.h("pageid_as_header_web")&&(U=new Vj,_.UY(U,3,_.Fm("DELEGATED_SESSION_ID")));!_.h("fill_delegate_context_in_gel_killswitch")&&(W=_.Fm("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(J=_.gF(L,Vj,3)||new Vj,U=L,W=_.UY(J,18,W),_.eE(U,3,W));U=w;W=_.q(Object.entries(_.bU(_.Fm("DEVICE",""))));for(J=W.next();!J.done;J=W.next())F=_.q(J.value),J=F.next().value,F=F.next().value,J==="cbrand"?_.UY(U,12,F):J==="cmodel"?_.UY(U,13,F):J==="cbr"?_.UY(U,87,F):J==="cbrver"?_.UY(U,88,F):J==="cos"?_.UY(U,18,
F):J==="cosver"?_.UY(U,19,F):J==="cplatform"&&_.G1(U,42,iHC(F));L.setClient(w);_.eE(C,1,L);if(w=wgX[R])a:{if(_.k1(w,UD(w,mch,1)))L=1;else if(w.getPlaylistId())L=2;else break a;_.eE(C,4,w);w=C.getContext()||new nn;U=_.gF(w,Vj,3)||new Vj;W=new hf;W.setToken(R);_.G1(W,1,L);RJ(U,12,hf,W);_.eE(w,3,U)}delete wgX[R];R=R==="visitorOnlyApprovedKey";yuC()||_.Ln(C,2,a);!R&&(L=_.Fm("EVENT_ID"))&&(w=b7f(),U=new N7i,_.UY(U,1,L),_.Ln(U,2,w),_.eE(C,5,U));T7L(c);if(_.h("jspb_serialize_with_worker")&&(L=_.mr4())&&
c.writeThenSend){_.DcD.set(fAF,{client:H,resolve:K,networklessOptions:c,isIsolated:p,useVSSEndpoint:g,dangerousLogToVisitorSession:R,requestsOutstanding:e});L.postMessage({op:"gelBatchToSerialize",batchRequest:Wv(C),clientEvents:V,key:fAF});fAF++;break}if(V){L=[];for(w=0;w<V.length;w++)try{L.push(new Me(V[w]))}catch(A){_.tm(new _.m1("Transport failed to deserialize "+String(V[w])))}V=L}else V=[];V=_.q(V);for(L=V.next();!L.done;L=V.next())RJ(C,3,Me,L.value);V={startTime:(0,_.$G)(),ticks:{},infos:{}};
C=C.serialize();V.ticks.geljspc=(0,_.$G)();_.h("log_jspb_serialize_latency")&&VOh("gel_jspb_serialize",V,{sampleRate:.1});_.Aui(C,H,K,c,p,g,R,e)}};
_.Aui=function(d,H,K,c,p,g,a,e){c=c===void 0?{}:c;e=e===void 0?{value:0}:e;g=sdC(g);c=t8M(c,a,function(k){_.h("start_client_gcf")&&_.Xp.addLowPriorityJob(function(){return _.l(function(C){return C.yield(Qdi(k),0)})});
e.value--;e.value||K()},function(){e.value--;
e.value||K()},p);
c.headers["Content-Type"]="application/json+protobuf";c.postBodyFormat="JSPB";c.postBody=d;DrF(H,g,"",c);zAY=!1};
T7L=function(d){_.h("always_send_and_write")&&(d.writeThenSend=!1)};
t8M=function(d,H,K,c,p){d={retry:!0,onSuccess:K,onError:c,networklessOptions:d,dangerousLogToVisitorSession:H,bypassMonitoring:!!p,headers:{},postBodyFormat:"",postBody:"",compress:_.h("compress_gel")||_.h("compress_gel_lr")};yuC()&&(d.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.$G)())));return d};
Z7l=function(d,H,K){yuC()||(d.requestTimeMs=String(H));_.h("unsplit_gel_payloads_in_logs")&&(d.unsplitGelPayloadsInLogs=!0);!K&&(H=_.Fm("EVENT_ID"))&&(K=b7f(),d.serializedClientEventId={serializedEventId:H,clientCounter:String(K)})};
b7f=function(){var d=_.Fm("BATCH_CLIENT_COUNTER")||0;d||(d=Math.floor(Math.random()*65535/2));d++;d>65535&&(d=1);_.sS("BATCH_CLIENT_COUNTER",d);return d};
Fe1=function(d,H,K){if(K.videoId)var c="VIDEO";else if(K.playlistId)c="PLAYLIST";else return;d.credentialTransferTokenTargetId=K;d.context=d.context||{};d.context.user=d.context.user||{};d.context.user.credentialTransferTokens=[{token:H,scope:c}]};
pgE=function(d,H){var K=_.GJ("il_payload_scraping")==="enable_il_payload_scraping";if(!_.OS("yt.logging.transport.enableScrapingForTest"))if(K)jd1=[],_.vb("yt.logging.transport.enableScrapingForTest",!0),_.vb("yt.logging.transport.scrapedPayloadsForTesting",jd1),_.vb("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.vb("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.vb("yt.logging.transport.scrapeClientEvent",!0);else return;K=_.OS("yt.logging.transport.scrapedPayloadsForTesting");var c=_.OS("yt.logging.transport.payloadToScrape");H&&(H=_.OS("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(H.payload)())&&K.push(H);H=_.OS("yt.logging.transport.scrapeClientEvent");if(c&&c.length>=1)for(var p=0;p<c.length;p++)if(d&&d.payload[c[p]])if(H)K.push(d.payload);else{var g=void 0;K.push(((g=d)==null?void 0:g.payload)[c[p]])}_.vb("yt.logging.transport.scrapedPayloadsForTesting",
K)};
yuC=function(){return _.h("use_request_time_ms_header")||_.h("lr_use_request_time_ms_header")};
V8i=function(d,H){return _.h("transport_use_scheduler")===!1?_.a5(d,H):_.h("logging_avoid_blocking_during_navigation")||_.h("lr_logging_avoid_blocking_during_navigation")?_.mf(_.Xp,function(){if(_.vMi().currentState==="none")d();else{var K={};_.vMi().install((K.none={callback:d},K))}},H):_.mf(_.Xp,d,H)};
uXL=function(d){_.h("transport_use_scheduler")?_.Xp.cancelJob(d):_.eb(d)};
Qdi=function(d){var H,K,c,p,g,a,e,k,C,R;return _.l(function(V){return V.nextAddress==1?(c=(H=d)==null?void 0:(K=H.responseContext)==null?void 0:K.globalConfigGroup,p=_.M(c,dVi),a=(g=c)==null?void 0:g.hotHashData,e=_.M(c,Hf1),C=(k=c)==null?void 0:k.coldHashData,(R=_.Kj().resolve(_.$p(wz)))?a?p?V.yield($VX(R,a,p),2):V.yield($VX(R,a),2):V.jumpTo(2):V.return()):C?e?V.yield(KRE(R,C,e),0):V.yield(KRE(R,C),0):V.jumpTo(0)})};
nM5=function(d,H){H=H===void 0?200:H;return d?H===300?ruf:cW4:H===300?WeD:pIY};
Gvl=function(d){if(_.h("enable_web_tiered_gel")){d=g6l[d||""];var H,K,c,p=_.Kj().resolve(_.$p(wz))==null?void 0:(H=Pd())==null?void 0:(K=H.loggingHotConfig)==null?void 0:(c=K.eventLoggingConfig)==null?void 0:c.payloadPolicies;if(p)for(H=0;H<p.length;H++)if(p[H].payloadNumber===d)return p[H]}};
i7E=function(d){d=Object.keys(d);d=_.q(d);for(var H=d.next();!H.done;H=d.next())if(H=H.value,g6l[H])return H};
oMM=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}};
lAF=function(d){return d==="gelDebuggingEvent"};
sdC=function(d){return(d===void 0?0:d)&&_.h("vss_through_gel_video_stats")?"video_stats":"log_event"};
IJ=function(d,H,K,c){c=c===void 0?{}:c;var p={},g=Math.round(c.timestamp||(0,_.$G)());p.eventTimeMs=g<Number.MAX_SAFE_INTEGER?g:0;p[d]=H;d=_.cd();p.context={lastActivityMs:String(c.timestamp||!isFinite(d)?-1:d)};c.sequenceGroup&&!_.h("web_gel_sequence_info_killswitch")&&(d=p.context,H=c.sequenceGroup,H={index:ifE(H),groupKey:H},d.sequence=H,c.endOfSequence&&delete uw[c.sequenceGroup]);_.h("web_tag_automated_log_events")&&(p.context.automatedLogEventSource=c.automatedLogEventSource);(c.sendIsolatedPayload?
qQ4:eAF)({endpoint:"log_event",payload:p,cttAuthInfo:c.cttAuthInfo,dangerousLogToVisitorSession:c.dangerousLogToVisitorSession},K)};
ifE=function(d){uw[d]=d in uw?uw[d]+1:0;return uw[d]};
_.Wd=function(d,H,K){K=K===void 0?{}:K;var c=rz;_.Qx("ytLoggingEventsDefaultDisabled",!1)&&rz===rz&&(c=null);IJ(d,H,c,K)};
_.Bd=function(){if(_.h("web_fp_via_jspb")){var d=!0;d=d===void 0?!1:d;var H=GxF;GxF=[];if(H){H=_.q(H);for(var K=H.next();!K.done;K=H.next())K=K.value,d?IJ(K.payloadName,K.payload,rz,K.options):_.Wd(K.payloadName,K.payload,K.options)}CVF(void 0,!0);if(!_.h("web_fp_via_jspb_and_json"))return}CVF(void 0,!1)};
o65=function(d,H){var K;if((K=H)==null?0:K.componentStack)return H;if(d=d.componentStack)H||(H={}),H.componentStack=d;return H};
qjM=function(){_.yx(_.Fm("ERRORS")||[],function(d){_.z5.apply(null,d)});
_.sS("ERRORS",[])};
_.Xi=function(d){_.z5(d)};
_.Jf=function(d){_.z5(d,"WARNING")};
abi=function(d){d instanceof Error?_.z5(d):(d=_.y4(d)?JSON.stringify(d):String(d),d=new _.m1(d),d.name="RejectedPromiseError",_.Jf(d))};
lbi=function(d,H,K,c,p,g){H=H===void 0?"Unknown file":H;K=K===void 0?0:K;var a=!1,e=oWY("log_window_onerror_fraction");if(e&&Math.random()<e)a=!0;else{e=document.getElementsByTagName("script");for(var k=0,C=e.length;k<C;k++)if(e[k].src.indexOf("/debug-")>0){a=!0;break}}a&&(a=!1,p?a=!0:(typeof d==="string"?e=d:ErrorEvent&&d instanceof ErrorEvent?(a=!0,e=d.message,H=d.filename,K=d.lineno,c=d.colno):(e="Unknown error",H="Unknown file",K=0),p=new _.m1(e),p.name="UnhandledWindowError",p.message=e,p.fileName=
H,p.lineNumber=K,isNaN(c)?delete p.columnNumber:p.columnNumber=c),_.h("wiz_enable_component_stack_propagation_killswitch")||(g=o65(p,g)),g&&_.sD(p,g),a?_.z5(p):_.Jf(p))};
_.z5=function(d,H,K,c,p,g,a,e){g=g===void 0?{}:g;g.name=K||_.Fm("INNERTUBE_CONTEXT_CLIENT_NAME",1);g.version=c||_.Fm("INNERTUBE_CONTEXT_CLIENT_VERSION");K=g;H=H===void 0?"ERROR":H;a=a===void 0?!1:a;H=H===void 0?"ERROR":H;a=a===void 0?!1:a;if(d&&(d.hasOwnProperty("level")&&d.level&&(H=d.level),_.h("console_log_js_exceptions")&&(c=[],c.push("Name: "+d.name),c.push("Message: "+d.message),d.hasOwnProperty("params")&&c.push("Error Params: "+JSON.stringify(d.params)),d.hasOwnProperty("args")&&c.push("Error args: "+
JSON.stringify(d.args)),c.push("File name: "+d.fileName),c.push("Stacktrace: "+d.stack),c=c.join("\n"),window.console.log(c,d)),!(eoD>=5))){c=[];p=_.q(kxM);for(g=p.next();!g.done;g=p.next()){g=g.value;try{g()&&c.push(g())}catch(J){}}c=[].concat(_.ru(xVC),_.ru(c));var k=n6M(d);p=k.message||"Unknown Error";g=k.name||"UnknownError";var C=k.stack||d.stacktrace||"Not available";if(C.startsWith(g+": "+p)){var R=C.split("\n");R.shift();C=R.join("\n")}R=k.lineNumber||"Not available";k=k.fileName||"Not available";
var V=0;if(d.hasOwnProperty("args")&&d.args&&d.args.length)for(var U=0;U<d.args.length&&!(V=gLF(d.args[U],"params."+U,K,V),V>=500);U++);else if(d.hasOwnProperty("params")&&d.params){var L=d.params;if(typeof d.params==="object")for(U in L){if(L[U]){var w="params."+U,W=R5(L[U]);K[w]=W;V+=w.length+W.length;if(V>500)break}}else K.params=R5(L)}if(c.length)for(U=0;U<c.length&&!(V=gLF(c[U],"params.context."+U,K,V),V>=500);U++);navigator.vendor&&!K.hasOwnProperty("vendor")&&(K["device.vendor"]=navigator.vendor);
U={message:p,name:g,lineNumber:R,fileName:k,stack:C,params:K,sampleWeight:1};K=Number(d.columnNumber);isNaN(K)||(U.lineNumber=U.lineNumber+":"+K);if(d.level==="IGNORED")d=0;else a:{d=C8L();K=_.q(d.messageWeights);for(c=K.next();!c.done;c=K.next())if(c=c.value,U.message&&U.message.match(c.messageRegExp)){d=c.weight;break a}d=_.q(d.callbackWeights);for(K=d.next();!K.done;K=d.next())if(K=K.value,K.callback(U)){d=K.weight;break a}d=1}U.sampleWeight=d;d=_.q(Roi);for(K=d.next();!K.done;K=d.next())if(K=
K.value,K.patternsForType[U.name])for(p=_.q(K.patternsForType[U.name]),c=p.next();!c.done;c=p.next())if(g=c.value,c=U.message.match(g.regexp)){U.params["params.error.original"]=c[0];p=g.groups;g={};for(R=0;R<p.length;R++)g[p[R]]=c[R+1],U.params["params.error."+p[R]]=c[R+1];U.message=K.messageFn(g);break}U.params||(U.params={});d=C8L();U.params["params.errorServiceSignature"]="msg="+d.messageWeights.length+"&cb="+d.callbackWeights.length;U.params["params.serviceWorker"]="false";_.KF.document&&_.KF.document.querySelectorAll&&
(U.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new T5(VAi,"sample")).constructor!==T5&&(U.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(U);if(U.sampleWeight!==0&&!UVE.has(U.message)){if(a&&_.h("web_enable_error_204"))hoL(H===void 0?"ERROR":H,U);else{H=H===void 0?"ERROR":H;H==="ERROR"?(LRY.publish("handleError",U),_.h("record_app_crashed_web")&&MAX===0&&U.sampleWeight===1&&(MAX++,a={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.h("report_client_error_with_app_crash_ks")||(a.systemHealth={crashData:{clientError:{logMessage:{message:U.message}}}}),_.Wd("appCrashed",a)),mVi++):H==="WARNING"&&LRY.publish("handleWarning",U);if(_.h("kevlar_gel_error_routing")){a=H;e=e===void 0?{}:e;b:{d=_.q(wID);for(K=d.next();!K.done;K=d.next())if(sm(K.value.toLowerCase())){d=!0;break b}d=!1}if(d)e=void 0;else{K={stackTrace:U.stack};U.fileName&&(K.filename=U.fileName);d=U.lineNumber&&U.lineNumber.split?U.lineNumber.split(":"):[];d.length!==
0&&(d.length!==1||isNaN(Number(d[0]))?d.length!==2||isNaN(Number(d[0]))||isNaN(Number(d[1]))||(K.lineNumber=Number(d[0]),K.columnNumber=Number(d[1])):K.lineNumber=Number(d[0]));d={level:"ERROR_LEVEL_UNKNOWN",message:U.message,errorClassName:U.name,sampleWeight:U.sampleWeight};a==="ERROR"?d.level="ERROR_LEVEL_ERROR":a==="WARNING"&&(d.level="ERROR_LEVEL_WARNNING");K={isObfuscated:!0,browserStackInfo:K};e.pageUrl=window.location.href;e.kvPairs=[];_.Fm("FEXP_EXPERIMENTS")&&(e.experimentIds=_.Fm("FEXP_EXPERIMENTS"));
c=_.Fm("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!oWY("web_disable_gel_stp_ecatcher_killswitch")&&c)for(p=_.q(Object.keys(c)),g=p.next();!g.done;g=p.next())g=g.value,e.kvPairs.push({key:g,value:String(c[g])});if(c=U.params)for(p=_.q(Object.keys(c)),g=p.next();!g.done;g=p.next())g=g.value,e.kvPairs.push({key:"client."+g,value:String(c[g])});c=_.Fm("SERVER_NAME");p=_.Fm("SERVER_VERSION");c&&p&&(e.kvPairs.push({key:"server.name",value:c}),e.kvPairs.push({key:"server.version",value:p}));e={errorMetadata:e,
stackTrace:K,logMessage:d}}e&&(_.Wd("clientError",e),(a==="ERROR"||_.h("errors_flush_gel_always_killswitch"))&&_.Bd())}_.h("suppress_error_204_logging")||hoL(H,U)}try{UVE.add(U.message)}catch(J){}eoD++}}};
hoL=function(d,H){var K=H.params||{};d={urlParams:{a:"logerror",t:"jserror",type:H.name,msg:H.message.substr(0,250),line:H.lineNumber,level:d,"client.name":K.name},postParams:{url:_.Fm("PAGE_NAME",window.location.href),file:H.fileName},method:"POST"};K.version&&(d["client.version"]=K.version);if(d.postParams){H.stack&&(d.postParams.stack=H.stack);H=_.q(Object.keys(K));for(var c=H.next();!c.done;c=H.next())c=c.value,d.postParams["client."+c]=K[c];if(K=_.Fm("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(H=
_.q(Object.keys(K)),c=H.next();!c.done;c=H.next())c=c.value,d.postParams[c]=K[c];(K=_.Fm("LAVA_VERSION"))&&(d.postParams["lava.version"]=K);K=_.Fm("SERVER_NAME");H=_.Fm("SERVER_VERSION");K&&H&&(d.postParams["server.name"]=K,d.postParams["server.version"]=H)}_.xp(_.Fm("ECATCHER_REPORT_HOST","")+"/error_204",d)};
_.P85=function(d,H){H=H===void 0?"ERROR":H;var K=K===void 0?{}:K;var c=_.OS("ytbin.polymer.shared.lib.tampering.info");c&&(c=c())&&(K["params.tamperingInfo"]=c.sort().join(","));_.z5(d,H,void 0,void 0,!0,K)};
_.sD=function(d){var H=_.sH.apply(1,arguments);d.args||(d.args=[]);Array.isArray(d.args)&&d.args.push.apply(d.args,_.ru(H))};
uNL=function(d){d.level="IGNORED"};
IbF=function(d,H){xVC.push(d);H();xVC.pop()};
tf=function(d,H){for(var K in H)H.hasOwnProperty(K)&&(d=_.Qj(d,K,H[K]));return d};
_.rWi=function(d,H,K){K=K===void 0?!1:K;if(!d)return null;if(d.adInfoDialogEndpoint||d.backstageImageUploadEndpoint||d.confirmDialogEndpoint||d.clientActionEndpoint||d.createBackstagePostDialogEndpoint||d.createCommentReplyDialogEndpoint||d.flowEndpoint||d.guideBuilderEndpoint||d.liveChatDialogEndpoint||d.modalEndpoint||d.openPopupAction||d.shareEndpoint||d.shareEntityEndpoint||d.showLiveChatItemEndpoint||d.subscriptionManagerEndpoint||d.unlimitedCreateFamilyEndpoint||d.unlimitedFamilyFlowEndpoint||
d.updateCommentDialogEndpoint||d.updateCommentReplyDialogEndpoint||d.userFeedbackEndpoint||d.videoEditorEndpoint||d.ypcCancelSurveyEndpoint)return H=_.iT("polymer_report_client_url_requested_rate"),!K&&Math.random()<H&&_.Jf(new _.m1("urlForEndpoint used on client endpoint",d)),null;var c=_.iT("polymer_report_missing_web_navigation_endpoint_rate");if(d.liveChatEndpoint||d.liveChatReplayEndpoint)c=0;if(!d.commandMetadata&&!d.clickTrackingParams&&Math.random()<c){var p={},g;for(g in d)p[g]="1";_.Jf(new _.m1("Missing navigation data",
p))}p="";if(d.commandMetadata&&d.commandMetadata.webCommandMetadata&&d.commandMetadata.webCommandMetadata.url)p=d.commandMetadata.webCommandMetadata.url;else if(d.searchEndpoint)Math.random()<c&&_.Jf(new _.m1("Should not manually handle search",d)),p="/results?search_query="+encodeURIComponent(d.searchEndpoint.query).replace(/%20/g,"+"),d.searchEndpoint.params&&(p+="&sp="+d.searchEndpoint.params);else if(d.watchEndpoint)Math.random()<c&&_.Jf(new _.m1("Should not manually handle watch",d)),p="/watch?v="+
d.watchEndpoint.videoId,d.watchEndpoint.playlistId&&(p+="&list="+d.watchEndpoint.playlistId),d.watchEndpoint.index&&(p+="&index="+d.watchEndpoint.index),d.watchEndpoint.startTimeSeconds&&(p+="&t="+d.watchEndpoint.startTimeSeconds);else if(d.browseEndpoint)c=d.browseEndpoint.browseId,(g=d.browseEndpoint.canonicalBaseUrl)?p=g:c&&(p=c.substr(0,2),p=p==="FE"?c==="FEwhat_to_watch"?"/":c==="FEmy_videos"?"/my_videos":"/feed/"+c.substr(2):p==="VL"?"/playlist?list="+c.substr(2):"/channel/"+c),p&&d.browseEndpoint.query&&
(p=tf(p+"/search",{query:d.browseEndpoint.query})),p&&d.browseEndpoint.params&&(p=tf(p,{params:d.browseEndpoint.params}));else{if(d.urlEndpoint)return d.urlEndpoint.url;d.signInEndpoint?(p="https://accounts.google.com/ServiceLogin",c={},_.rs.extend(c,H||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),H=c):d.uploadEndpoint?p="//www.youtube.com/upload":d.liveChatEndpoint?(p=d.liveChatEndpoint,c=_.rs.clone(p),_.y4(p.continuation)&&(g=Object.keys(p.continuation)[0],
c.continuation=p.continuation[g].continuation),p=tf("/youtubei/v1/live_chat/get_live_chat",c)):d.liveChatReplayEndpoint?(p=_.rs.clone(d.liveChatReplayEndpoint),p.currentPlayerState&&(_.rs.extend(p,p.currentPlayerState),delete p.currentPlayerState),p=tf("/youtubei/v1/live_chat/get_live_chat_replay",p)):d.liveChatItemContextMenuEndpoint?p=tf("/youtubei/v1/live_chat/get_item_context_menu",d.liveChatItemContextMenuEndpoint):d.liveChatPurchaseMessageEndpoint?p=tf("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
d.liveChatPurchaseMessageEndpoint):d.openSuperStickerBuyFlowCommand?p=tf("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",d.openSuperStickerBuyFlowCommand):d.videoEditEndpoint?p=tf("/edit",{video_id:d.videoEditEndpoint.videoId}):d.liveDashboardEndpoint?p=d.liveDashboardEndpoint.videoId?tf("/live_dashboard",{v:d.liveDashboardEndpoint.videoId}):"/live_dashboard":d.signalNavigationEndpoint&&d.signalNavigationEndpoint.signal&&d.signalNavigationEndpoint.signal==="WEBCAM"?p="/webcam":d.getPdgBuyFlowCommand&&
(p=tf(d.getPdgBuyFlowCommand.buyflowApiPath,{params:d.getPdgBuyFlowCommand.params}))}return p||K?tf(p,H||{}):(_.Jf(new _.m1("Error: Can't construct url for endpoint","keys:"+Object.keys(d).sort().join(","),d)),null)};
WR1=function(d){if(d){if(d.browseEndpoint)return!!d.browseEndpoint.nofollow;if(d.watchEndpoint)return!!d.watchEndpoint.nofollow;if(d.urlEndpoint)return!!d.urlEndpoint.nofollow}return!1};
_.zol=function(d,H){var K=H+d,c=BBF.get(K);if(c)return c;d=H+"-"+d.replace(/([A-Z])/g,"-$1").toLowerCase();BBF.set(K,d);return d};
XIF=function(d){var H=_.Xm(d,"action")||_.Xm(d,"command")||_.Xm(d,"endpoint");if(!H)return null;H=_.zol(H,"yt");_.M(d,_.Yr)&&(H+="-"+_.M(d,_.Yr).signal.toLowerCase().replace(/_/g,"-"));return H};
Zf5=function(d){try{var H=Object.keys(d)}catch(p){return[]}for(var K=0;K<H.length;K++){var c=H[K];if(JWf.test(c)||sDC.test(c))return FRf(d[c])}return[]};
FRf=function(d){return d.command?[d.command]:d.onExecutionAction?[d.onExecutionAction]:d.onResponseReceivedCommand?[d.onResponseReceivedCommand]:d.updateFlowCommand?[d.updateFlowCommand]:d.clientActions?d.clientActions:d.action?[d.action]:d.actions||d.commands||d.onResponseReceivedActions||d.onResponseReceivedCommands||d.onResponseReceivedEndpoints||[]};
QDi=function(d,H){H=H===void 0?!1:H;var K=_.Kj().resolve(_.$p(ED));K||(K=new TB1,_.Kj().addProvider({provide:ED,useValue:K}));return K&&d&&!_.rs.isEmpty(d)?K.getUrl(d,H):""};
tAE=function(d,H,K){K=K===void 0?"":K;if(H){d.data=H;var c=QDi(H);c?(_.TC(d,c),WR1(H)||!df(c)?d.rel="nofollow":d.removeAttribute("rel"),_.M(H,_.yj)&&_.M(H,_.yj).target==="TARGET_NEW_WINDOW"?d.target="_blank":K?d.target=K:d.removeAttribute("target")):(d.removeAttribute("href"),d.removeAttribute("rel"),d.removeAttribute("target"))}};
_.fn=function(d,H){var K=br;if(Ll())YjF(d,function(){var g=_.sH.apply(0,arguments);Wk(K,function(){H.apply(null,_.ru(g))})});
else{var c=_.bw.getInstance(),p=z9(H);vKL(function(){p.value=H});
_.WE(function(){var g={},a=_.Ne(c,(g[d]=function(){var e=_.sH.apply(0,arguments);Wk(K,function(){p.value.apply(p,_.ru(e))})},g));
return function(){var e={};_.Dz(c,(e[d]="",e),a)}})}};
_.Af=function(d,H){return OfF(d,!1,H)};
_.jV=function(d,H){return OfF(d,!0,H)};
OfF=function(d,H,K){return Ll()?Sjl(d,H,K):E6C(d,H,K)};
E6C=function(d,H,K){return BE(function(){return Sjl(d,H,K)})};
Sjl=function(d,H,K){var c=DCM(function(p){c.value=p;var g=function(){var a=Hk(null);try{return K==null?void 0:K(p)}finally{Hk(a)}}();
return function(){g==null||g()}});
c.__expectedTagName=d;c.__optional=H;c.isIdom=!Ll();return c};
yWX=function(d){var H=br,K=Ue;return{getFn:function(){return function(c){H.isDisposed||m5(function(){return ij(function(){return d(c)})},K)!==!0&&c.stopPropagation()}}}};
vd=function(d){if(typeof d.children==="function")return d.children(),null;d=_.q(d.children);for(var H=d.next();!H.done;H=d.next())H=H.value,H();return null};
bf1=function(d){var H;return((H=d.prototype)==null?void 0:H.render)===void 0};
NBM=function(d){return d.items.map(d.children)};
_.fb5=function(d,H,K){K=K===void 0?!1:K;m5(function(){return DVf(d,H,K)})};
DVf=function(d,H,K){var c=null;nl++;K=(K===void 0?0:K)?AWM:jDY;try{c=K(d,function(){dQ(H)}),RH(!1)}catch(p){throw RH(!0),p;
}return c===null?d:c};
dQ=function(d){if(d!==void 0&&d!==null)if(d instanceof x2)for(var H=tt;Ym()!=null&&zQi in Ym()&&H.contains(Ym());)Ee();else if(Array.isArray(d))for(H=_.q(d),d=H.next();!d.done;d=H.next())dQ(d.value);else if(d instanceof UH||d instanceof du||"function"==typeof _.jy&&d instanceof _.jy)Jwf(d.toString());else if(_.K6(d)){if(Ym()!==d){var K,c;H=(c=(K=Ue)==null?void 0:K.name)!=null?c:"unknown";throw Error("bc`"+d.tagName+"`"+H);}Ee()}else if(d!=null&&d.contentKind===iU||d instanceof QB||fQM(d))for(H=j$1(d),
H=Array.from(H.childNodes),H=_.q(H),d=H.next();!d.done;d=H.next())tt.appendChild(d.value),Ee();else if(u_(d)&&(d=d.toString()),K=typeof d,K==="boolean"||K==="number"||K==="string")Jwf(d);else if(typeof d==="function"){H=tt;var p=Ym();p&&(p._isSignalTextNode||p._isSafeOrSanitizedHtmlNode)||LGD(H,p,d);Ee()}else if(d.type===NBM)dQ(d.type(Object.assign({},d.props,{children:d.children[0]})));else{Rs.beforeVisit(d);if(typeof d.type==="string"){a:{d.__open||wVF(d.type,d.props.idomKey);p=tt;for(H in d.props)if(d.props[H]!==
v6i){var g=d.props[H];K=Nt;K.push(H);K.push(g)}H=jX.attributes;H=H===void 0?HV:H;g=tt;K=Zp(g);XVD(g,K,H);hQ1(p,d.props,!0);if((d.props.skip||d.props.skipchildren)&&tt.hasChildNodes())uxE();else{if(d.type==="style"&&gKF(d.children)===null){uxE();H=void 0;break a}dQ(d.children)}PCY();d.__open&&(d.__open=!1);O5F(p,d.props);H=p}return H}if(d.type===_.HE)dQ(d.children);else if(!d$i(d)){H=d;try{H8h(H)}catch(a){d=a,(g=jX.handleError)==null||g.call.apply(g,[jX].concat(_.ru(Bk(d,(p=H.type)==null?void 0:p.TAG_NAME))))}H.__open&&
(PCY(),H.__open=!1)}}};
$$Y=function(d,H){var K;bf1(d)?K=new US(H,d):K=new d(H);K.__type=d;K.__updateContext={nextState:K.state,isForced:!1};return K};
H8h=function(d){var H=d.type,K=H.TAG_NAME;if(H===vd)d.props.children=d.children,H(d.props);else{d.children.length>0&&(d.props.children=d.children);var c;(c=d.props).idomKey||(c.idomKey=H);if(K){var p=wVF(K,d.props.idomKey);d.__open=!0;var g=p.__instance}g||(g=$$Y(H,d.props),g.props=null,p&&(p.__instance=g,g.el=p));var a;K=((a=g.__updateContext)!=null?a:{nextState:g.state,isForced:!1}).nextState;g.__updateContext=void 0;H.getDerivedStateFromProps&&(K=H.getDerivedStateFromProps(d.props,K));g.props=
d.props;g.state=K;a=function(){var e=g;Rs.beforeRender(e);var k=e.render(e.props);Rs.afterRender(e,k);k?(e.props.idomKey&&(k.props.idomKey=e.props.idomKey),e=k):e=void 0;if(k=e)if(k.__open=d.__open,e=dQ(k),d.__open=k.__open,!H.TAG_NAME)if(e)H.TAG_NAME=e.tagName.toLowerCase(),e.__instance=g,g.el=e;else{var C;if((C=g.hooks)==null?0:C.length){var R;(R=jX.handleError)==null||R.call.apply(R,[jX].concat(_.ru(Bk(Error("id")))))}}g.didPatch();Rs.didPatch(g)};
(K=g.functionComponent)?ErC(K,a,g.props.debugInstance):a()}};
d$i=function(d){var H=d.type;if(!bf1(H)||H===vd||H.componentType===ht)return!1;d.props.children=d.children.length>1?d.children:d.children[0];var K,c=(K=d.props.idomKey)!=null?K:d.type,p;if(Ym()&&((p=Ym()[lU])==null?void 0:p.key)===c){var g=Ym(),a=g[lU];if(!a)throw Error("ac`"+g.tagName);var e;(e=a.updateSignalsFromIdomProps)==null||e.call(a,d.props);KBX(a);return!0}if(cEh.has(H.name))throw e=H.name,H=(a=(g=Ue)==null?void 0:g.name)!=null?a:"unknown",Error("$b`"+e+"`"+H);PG1(d.type,d.props,d.children);
d.props.renderedFromIdom=!0;(e=ErC(d.type,function(){return nKf(d.type,d.props)},d.props.debugInstance))&&pKh(e);
return!0};
gE5=function(d){for(var H=0;H<k2(d).length;H++)Ee()};
KBX=function(d){var H=i8l();if(H)gE5(H);else for(var K=0;K<d.numNodes;K++)(H=i8l())?gE5(H):Ee()};
i8l=function(){var d;return(d=Ym()[lU])==null?void 0:d.sourceDynamicRange};
pKh=function(d){d=ywi(d);d=Array.isArray(d)?d:[d];d=_.q(d);for(var H=d.next();!H.done;H=d.next())tt.insertBefore(H.value,Ym()),Ee()};
G_h=function(d){var H=RQl(),K=BE(function(){return{value:typeof d==="function"?d():d}});
return[K.value,function(c){if(Vx!==null){var p;(p=jX.handleError)==null||p.call.apply(p,[jX].concat(_.ru(Bk(Error("jd")))))}K.value=typeof c==="function"?c(K.value):c;H.__updateContext={nextState:H.state,isForced:!0};c=_.N_(H.effectContext);p=$2(!1);try{if(H.el){var g,a={},e=(a.props=H.props,a.type=H.__type,a.children=(g=H.props.children)!=null?g:[],a[d9]=!0,a);try{_.fb5(H.el,e,!0)}catch(R){var k,C;(C=jX.handleError)==null||C.call.apply(C,[jX].concat(_.ru(Bk(R,(k=H.__type)==null?void 0:k.TAG_NAME))))}}}finally{$2(p),
_.N_(c)}}]};
$l=function(d,H){var K=br,c=function(p){Wk(K,function(){H(p)})};
window.addEventListener(d,c,void 0);_.Pk(function(){window.removeEventListener(d,c,void 0)})};
_.cV=function(d){var H=br;return function(K){var c,p=(c=d.observer)!=null?c:_.Kj().resolve(K5);c=oEC(K);var g=[];d.showOption&&g.push(p.observe(K,function(){Wk(H,function(){d.visibilityCallback(!0,K)})},d.showOption));
d.hideOption&&g.push(p.observe(K,function(){Wk(H,function(){d.visibilityCallback(!1,K)})},d.hideOption));
d.prescanOption&&d.prescanCallback&&g.push(p.observe(K,function(){Wk(H,function(){d.prescanCallback()})},d.prescanOption));
var a;c.visibilityMonitorKeys=((a=c.visibilityMonitorKeys)!=null?a:[]).concat(g)}};
oEC=function(d){var H;return(H=d.polymerController)!=null?H:d};
_.p5=function(d){d.componentType=ht};
eDL=function(d,H){var K=q7L;return _.x(_.HE,null,Ct4(jX.enableLazyTsx,function(){return _.x(aa1,{id:K,value:d,children:H})},function(){var c=lai(K,d);
A_(c);c=_.N_(c);try{return H()}finally{_.N_(c)}}))};
aa1=function(d){var H=d.children;d=lai(d.id,d.value);A_(d);d=_.N_(d);try{return _.x(_.HE,null,n6(H()))}finally{_.N_(d)}};
lai=function(d,H){return Object.assign(Object.create(k_C),{id:d,contextValue:H})};
x$F=function(d){var H,K=br;_.rc(function(){var c=_.N_(K),p=$2(!H);try{if(H)_.fb5(H,d.children(),!0);else if(H=n6(d.children()),!(H instanceof Element))throw Error("kd");}finally{$2(p),_.N_(c)}});
return H};
_.nE5=function(d,H){var K;H=uj(function(){var c=$2(!0);nl++;try{K=k2(d()),RH(!1)}catch(p){throw RH(!0),p;}finally{$2(c)}},H===void 0?!1:H);
return[K,H]};
RD4=function(d){var H=new CWC;H.abort(d);return H.signal};
Vnf=function(){if(this.aborted){var d;throw(d=this.reason)!=null?d:new DOMException("signal is aborted without reason","AbortError");}};
LBl=function(d){var H=new CWC;d=_.q(d);for(var K=d.next();!K.done;K=d.next())if(K=K.value,K.aborted){H.abort(K.reason);break}else U$l.set(H.signal,H),hDD.add(K,H.signal);return H.signal};
MnM=function(){for(var d=_.q(hDD.get(this)),H=d.next();!H.done;H=d.next())U$l.get(H.value).abort(this.reason)};
m$i=function(d){var H=new CWC;setTimeout(function(){H.abort(new DOMException("signal timed out","TimeoutError"))},d);
return H.signal};
PWD=function(d){d=d.buf.charCodeAt(d.pos++);return wK4[d]};
gQ=function(d){var H=0,K=0;do{var c=PWD(d);H|=(c&31)<<K;K+=5}while(c&32);return H<0?H+4294967296:H};
rEi=function(d,H,K){ucE(d,H);d[H][IaY].unshift(K)};
ucE=function(d,H){if(!d[H]||!d[H][IaY]){var K=d[H],c=K?[K]:[];d[H]=function(){for(var p=_.q(c),g=p.next();!g.done;g=p.next())g.value.apply(this,arguments)};
d[H][IaY]=c}};
WB4=function(d){if(!d)return[];var H=[];d=_.q(d);for(var K=d.next();!K.done;K=d.next())K=K.value,Array.isArray(K)?H.push.apply(H,_.ru(WB4(K))):H.push(K);return H};
_.GN=function(d,H){if(d&&BEL.test(d)||d==="//")return d;if(zDF===void 0){zDF=!1;try{var K=new URL("b","http://a");K.pathname="c%20d";zDF=K.href==="http://a/c%20d"}catch(c){}}H||(H=document.baseURI||window.location.href);if(zDF)try{return(new URL(d,H)).href}catch(c){return d}iC||(iC=document.implementation.createHTMLDocument("temp"),iC.base=iC.createElement("base"),iC.head.appendChild(iC.base),iC.anchor=iC.createElement("a"),iC.body.appendChild(iC.anchor));iC.base.href=H;iC.anchor.href=d;return iC.anchor.href||
d};
JEL=function(d,H){return d.replace(XKY,function(K,c,p,g){return c+"'"+_.GN(p.replace(/["']/g,""),H)+"'"+g})};
sIX=function(d){return d.substring(0,d.lastIndexOf("/")+1)};
TEY=function(){FBl=!1;for(var d=o$.length,H=0;H<d;H++){var K=o$[H];if(K)try{K()}catch(c){setTimeout(function(){throw c;})}}o$.splice(0,d);
Z8D+=d};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(d){console.log("["+d.is+"]: registered")};
tnh=function(d){QIi.push(d)};
q8=function(d){return Y7f[d]||(Y7f[d]=d.indexOf("-")<0?d:d.replace(O8X,function(H){return H[1].toUpperCase()}))};
a$=function(d){return Y7f[d]||(Y7f[d]=d.replace(S74,"-$1").toLowerCase())};
EEF=function(d,H){var K=H.parentInfo&&EEF(d,H.parentInfo);if(K)for(d=K.firstChild,K=0;d;d=d.nextSibling){if(H.parentIndex===K++)return d}else return d};
yEY=function(d,H){d=d._methodHost||d;return function(K){if(d[H])d[H](K,K.detail);else console.warn("listener method `"+H+"` not defined")}};
lC=function(d){return d.indexOf(".")>=0};
e1=function(d){var H=d.indexOf(".");return H===-1?d:d.slice(0,H)};
b8L=function(d,H){return d.indexOf(H+".")===0};
kl=function(d,H){return H.indexOf(d+".")===0};
xl=function(d,H,K){return H+K.slice(d.length)};
NEh=function(d,H){return d===H||b8L(d,H)||kl(d,H)};
n5=function(d){if(Array.isArray(d)){for(var H=[],K=0;K<d.length;K++)for(var c=d[K].toString().split("."),p=0;p<c.length;p++)H.push(c[p]);return H.join(".")}return d};
D$h=function(d){return Array.isArray(d)?n5(d).split("."):d.toString().split(".")};
C5=function(d,H,K){H=D$h(H);for(var c=0;c<H.length;c++){if(!d)return;d=d[H[c]]}K&&(K.path=H.join("."));return d};
faC=function(d,H,K){var c=D$h(H),p=c[c.length-1];if(c.length>1){for(H=0;H<c.length-1;H++)if(d=d[c[H]],!d)return;d[p]=K}else d[H]=K;return c.join(".")};
AEf=function(d,H,K){var c=d[H];if(!c)c=d[H]={};else if(!d.hasOwnProperty(H)&&(c=d[H]=Object.create(d[H]),K))for(var p in c)for(d=c[p],H=c[p]=Array(d.length),K=0;K<d.length;K++)H[K]=d[K];return c};
VG=function(d,H,K,c,p,g){if(H){var a=!1,e=R$++,k;for(k in K){var C=p?e1(k):k;if(C=H[C])for(var R=0,V=C.length,U=void 0;R<V&&(U=C[R]);R++)U.info&&U.info.lastRun===e||p&&!jI4(k,U.trigger)||(U.info&&(U.info.lastRun=e),U.fn(d,k,K,c,U.info,p,g),a=!0)}return a}return!1};
jI4=function(d,H){if(H){var K=H.name;return K==d||!(!H.structured||!b8L(K,d))||!(!H.wildcard||!kl(K,d))}return!0};
vEM=function(d,H,K,c,p){H=typeof p.method==="string"?d[p.method]:p.method;K=p.property;H?H.call(d,d.__data[K],c[K]):p.dynamicFn||console.warn("observer method `"+p.method+"` not defined")};
dO4=function(d,H,K,c){K={value:K,queueProperty:!0};c&&(K.path=c);(0,_.U_)(d).dispatchEvent(new CustomEvent(H,{detail:K}))};
Hyl=function(d,H,K,c,p,g){g=(c=(g?e1(H):H)!=H?H:null)?C5(d,c):d.__data[H];c&&g===void 0&&(g=K[H]);dO4(d,p.eventName,g,c)};
$OF=function(d,H,K,c,p){K=d.__data[H];hw&&(K=hw(K,p.attrName,"attribute",d));d._propertyToAttribute(H,p.attrName,K)};
caF=function(d){var H=d.constructor.__orderedComputedDeps;if(!H){H=new Map;for(var K=d.__computeEffects,c=KpC(d),p=c.counts,g=c.ready,a=c.total;c=g.shift();)H.set(c,H.size),(c=K[c])&&c.forEach(function(e){e=e.info.methodInfo;--a;--p[e]===0&&g.push(e)});
a!==0&&console.warn("Computed graph for "+d.localName+" incomplete; circular?");d.constructor.__orderedComputedDeps=H}return H};
KpC=function(d){var H=d.__computeInfo,K={};d=d.__computeEffects;var c=[],p=0,g;for(g in H){var a=H[g];p+=K[g]=a.args.filter(function(k){return!k.literal}).length+(a.dynamicFn?1:0)}for(var e in d)H[e]||c.push(e);
return{counts:K,ready:c,total:p}};
g8l=function(d,H,K,c,p){H=pwE(d,H,K,c,p);if(H===M8)return!1;p=p.methodInfo;if(d.__dataHasAccessor&&d.__dataHasAccessor[p])return d._setPendingProperty(p,H,!0);d[p]=H;return!1};
o81=function(d,H,K,c,p,g,a){K.bindings=K.bindings||[];c={kind:c,target:p,parts:g,literal:a,isCompound:g.length!==1};K.bindings.push(c);c.target&&c.kind!="attribute"&&c.kind!="text"&&!c.isCompound&&c.parts[0].mode==="{"&&(K=c.parts[0],g=K.negate,c.listenerEvent=K.event||a$(p)+"-changed",c.listenerNegate=g);p=H.nodeInfoList.length;for(K=0;K<c.parts.length;K++){var e=c.parts[K];e.compoundIndex=K;g=d;a=H;var k=c,C=e,R=p;if(!C.literal)if(k.kind==="attribute"&&k.target[0]==="-")console.warn("Cannot set attribute "+
k.target+' because "-" is not a valid attribute starting character');else for(e=C.dependencies,k={index:R,binding:k,part:C,evaluator:g},C=0;C<e.length;C++)R=e[C],typeof R=="string"&&(R=iyf(R),R.wildcard=!0),g._addTemplatePropertyEffect(a,R.rootProperty,{fn:GHF,info:k,trigger:R})}};
GHF=function(d,H,K,c,p,g,a){a=a[p.index];var e=p.binding,k=p.part;g&&k.source&&H.length>k.source.length&&e.kind=="property"&&!e.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[e.target]?(K=K[H],H=xl(k.source,e.target,H),a._setPendingPropertyOrPath(H,K,!1,!0)&&d._enqueueClient(a)):(H=p.evaluator._evaluateBinding(d,k,H,K,c,g),H!==M8&&(e.isCompound&&(K=a.__dataCompoundStorage[e.target],K[k.compoundIndex]=H,H=K.join("")),e.kind==="attribute"||e.target!=="textContent"&&
(e.target!=="value"||a.localName!=="input"&&a.localName!=="textarea")||(H=H==void 0?"":H),k=H,hw&&(k=hw(k,e.target,e.kind,a)),e.kind=="attribute"?d._valueToNodeAttribute(a,k,e.target):(e=e.target,a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[e]?a.__readOnly&&a.__readOnly[e]||a._setPendingProperty(e,k)&&d._enqueueClient(a):d._setUnmanagedPropertyToNode(a,e,k))))};
qi1=function(d,H,K){if(K.listenerEvent){var c=K.parts[0];d.addEventListener(K.listenerEvent,function(p){var g=K.target,a=c.source,e=c.negate,k=p.detail,C=k&&k.path;C?(a=xl(g,a,C),p=k&&k.value):p=p.currentTarget[g];H.__readOnly&&H.__readOnly[a]||!H._setPendingPropertyOrPath(a,e?!p:p,!0,!!C)||k&&k.queueProperty||H._invalidateProperties()})}};
adD=function(d,H,K,c,p,g){g=H.static||g&&(typeof g!=="object"||g[H.methodName]);p={methodName:H.methodName,args:H.args,methodInfo:p,dynamicFn:g};for(var a=0,e=void 0;a<H.args.length&&(e=H.args[a]);a++)e.literal||d._addPropertyEffect(e.rootProperty,K,{fn:c,info:p,trigger:e});g&&d._addPropertyEffect(H.methodName,K,{fn:c,info:p});return p};
pwE=function(d,H,K,c,p){c=d._methodHost||d;var g=c[p.methodName];if(g)return d=d._marshalArgs(p.args,H,K),d===M8?M8:g.apply(c,d);p.dynamicFn||console.warn("method `"+p.methodName+"` not defined")};
ldL=function(d){for(var H="",K=0;K<d.length;K++)H+=d[K].literal||"";return H};
xOC=function(d){if(d=d.match(/([^\s]+?)\(([\s\S]*)\)/)){var H={methodName:d[1],static:!0,args:eJM};return d[2].trim()?kHh(d[2].replace(/\\,/g,"&comma;").split(","),H):H}return null};
kHh=function(d,H){H.args=d.map(function(K){K=iyf(K);K.literal||(H.static=!1);return K},this);
return H};
iyf=function(d){d=d.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var H={name:d,value:"",literal:!1},K=d[0];K==="-"&&(K=d[1]);K>="0"&&K<="9"&&(K="#");switch(K){case "'":case '"':H.value=d.slice(1,-1);H.literal=!0;break;case "#":H.value=Number(d),H.literal=!0}H.literal||(H.rootProperty=e1(d),H.structured=lC(d),H.structured&&(H.wildcard=d.slice(-2)==".*",H.wildcard&&(H.name=d.slice(0,-2))));return H};
n8Y=function(d,H,K){d=C5(d,K);d===void 0&&(d=H[K]);return d};
CEX=function(d,H,K,c){c={indexSplices:c};mK&&!d._overrideLegacyUndefined&&(H.splices=c);d.notifyPath(K+".splices",c);d.notifyPath(K+".length",H.length);mK&&!d._overrideLegacyUndefined&&(c.indexSplices=[])};
wQ=function(d,H,K,c,p,g){CEX(d,H,K,[{index:c,addedCount:p,removed:g,object:H,type:"splice"}])};
RJE=function(d){d=JEL((d.body?d.body:d).textContent,d.baseURI);var H=document.createElement("style");H.textContent=d;return H};
UOC=function(d){d=d.trim().split(/\s+/);for(var H=[],K=0;K<d.length;K++)H.push.apply(H,_.ru(VfC(d[K])));return H};
VfC=function(d){var H=PV.import(d);if(!H)return console.warn("Could not find style data in module named",d),[];if(H._styles===void 0){d=[];d.push.apply(d,_.ru(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(H)));var K=H.querySelector("template");K&&d.push.apply(d,_.ru(hJF(K,H.assetpath)));H._styles=d}return H._styles};
hJF=function(d,H){if(!d._styles){for(var K=[],c=d.content.querySelectorAll("style"),p=0;p<c.length;p++){var g=c[p],a=g.getAttribute("include");a&&K.push.apply(K,_.ru(UOC(a).filter(function(e,k,C){return C.indexOf(e)===k})));
H&&(g.textContent=JEL(g.textContent,H));K.push(g)}d._styles=K}return d._styles};
Lp4=function(d){return(d=PV.import(d))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(d):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(d){var H=[];d=d.querySelectorAll("link[rel=import][type~=css]");for(var K=0;K<d.length;K++){var c=d[K];if(c.import){var p=c.import;if((c=c.hasAttribute("shady-unscoped"))&&!p._unscopedStyle){var g=RJE(p);g.setAttribute("shady-unscoped","");p._unscopedStyle=g}else p._style||(p._style=RJE(p));H.push(c?p._unscopedStyle:p._style)}}return H};
mOF=function(d){d=d.trim().split(/\s+/);for(var H="",K=0;K<d.length;K++)H+=Mff(d[K]);return H};
Mff=function(d){var H=PV.import(d);if(H&&H._cssText===void 0){var K=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(H),c=H.querySelector("template");c&&(K+=wwi(c,H.assetpath));H._cssText=K||null}H||console.warn("Could not find style data in module named",d);return H&&H._cssText||""};
wwi=function(d,H){var K="";d=hJF(d,H);for(H=0;H<d.length;H++){var c=d[H];c.parentNode&&c.parentNode.removeChild(c);K+=c.textContent}return K};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(d){var H="";d=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(d);for(var K=0;K<d.length;K++)H+=d[K].textContent;return H};
uC=function(d,H){return{index:d,removed:[],addedCount:H}};
ubC=function(d,H,K,c){var p=0,g=0,a=0,e=0,k=Math.min(H-p,c-g);if(p==0&&g==0)a:{for(a=0;a<k;a++)if(d[a]!==K[a])break a;a=k}if(H==d.length&&c==K.length){e=d.length;for(var C=K.length,R=0;R<k-a&&PEF(d[--e],K[--C]);)R++;e=R}p+=a;g+=a;H-=e;c-=e;if(H-p==0&&c-g==0)return[];if(p==H){for(H=uC(p,0);g<c;)H.removed.push(K[g++]);return[H]}if(g==c)return[uC(p,H-p)];k=p;a=g;c=c-a+1;e=H-k+1;H=Array(c);for(C=0;C<c;C++)H[C]=Array(e),H[C][0]=C;for(C=0;C<e;C++)H[0][C]=C;for(C=1;C<c;C++)for(R=1;R<e;R++)if(d[k+R-1]===
K[a+C-1])H[C][R]=H[C-1][R-1];else{var V=H[C-1][R]+1,U=H[C][R-1]+1;H[C][R]=V<U?V:U}k=H.length-1;a=H[0].length-1;c=H[k][a];for(d=[];k>0||a>0;)k==0?(d.push(2),a--):a==0?(d.push(3),k--):(e=H[k-1][a-1],C=H[k-1][a],R=H[k][a-1],V=C<R?C<e?C:e:R<e?R:e,V==e?(e==c?d.push(0):(d.push(1),c=e),k--,a--):V==C?(d.push(3),k--,c=C):(d.push(2),a--,c=R));d.reverse();H=void 0;k=[];for(a=0;a<d.length;a++)switch(d[a]){case 0:H&&(k.push(H),H=void 0);p++;g++;break;case 1:H||(H=uC(p,0));H.addedCount++;p++;H.removed.push(K[g]);
g++;break;case 2:H||(H=uC(p,0));H.addedCount++;p++;break;case 3:H||(H=uC(p,0)),H.removed.push(K[g]),g++}H&&k.push(H);return k};
IdY=function(d,H){return ubC(d,d.length,H,H.length)};
PEF=function(d,H){return d===H};
Wp1=function(d){if(d instanceof ral)return d.value;throw Error("Bd`"+d);};
B5i=function(d,H){for(var K in H)K===null?d.style.removeProperty(K):d.style.setProperty(K,H[K])};
zJL=function(d,H){return(d=window.getComputedStyle(d).getPropertyValue(H))?d.trim():""};
FpM=function(d){requestAnimationFrame(function(){Xwl?Xwl(d):(JaC||(JaC=new Promise(function(H){soL=H}),document.readyState==="complete"?soL():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&soL()})),JaC.then(function(){d&&d()}))})};
QoX=function(d){Zyi=d&&d.shimcssproperties?!1:T54||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
E8L=function(d){if(!(tff.indexOf(d)>-1)&&d!=="touchend"&&Yi4&&OyF&&SiM)return{passive:!0}};
DOf=function(d){for(var H=ya4?["click"]:tff,K=0,c;K<H.length;K++)c=H[K],d?(byF.length=0,document.addEventListener(c,N5E,!0)):document.removeEventListener(c,N5E,!0)};
I$=function(d){var H=d.type;return tff.indexOf(H)>-1?H==="mousemove"?(H=d.buttons===void 0?1:d.buttons,d instanceof window.MouseEvent&&!fdL&&(H=AaY[d.which]||0),!!(H&1)):(d.button===void 0?0:d.button)===0:!1};
joC=function(d){if(d.type==="click"){if(d.detail===0)return!0;var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d);if(!H.nodeType||H.nodeType!==Node.ELEMENT_NODE)return!0;H=H.getBoundingClientRect();var K=d.pageX;d=d.pageY;return!(K>=H.left&&K<=H.right&&d>=H.top&&d<=H.bottom)}return!1};
v8F=function(d,H,K){d.movefn=H;d.upfn=K;document.addEventListener("mousemove",H);document.addEventListener("mouseup",K)};
rQ=function(d){document.removeEventListener("mousemove",d.movefn);document.removeEventListener("mouseup",d.upfn);d.movefn=null;d.upfn=null};
dJl=function(d,H){for(var K=document.elementFromPoint(d,H),c=K;c&&c.shadowRoot&&!window.ShadyDOM;){var p=c;c=c.shadowRoot.elementFromPoint(d,H);if(p===c)break;c&&(K=c)}return K};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(d){var H=H1E(d);return H.length>0?H[0]:d.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(d){var H=d.type,K=d.currentTarget.__polymerGestures;if(K&&(K=K[H])){if(!d.__polymerGesturesHandled&&(d.__polymerGesturesHandled={},H.slice(0,5)==="touch")){var c=d.changedTouches[0];H==="touchstart"&&d.touches.length===1&&($JC=c.identifier);if($JC!==c.identifier)return;Yi4||(H==="touchstart"||H==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d)}c=
d.__polymerGesturesHandled;if(!c.skip){for(var p=0,g;p<zN.length;p++)g=zN[p],K[g.name]&&!c[g.name]&&g.flow&&g.flow.start.indexOf(d.type)>-1&&g.reset&&g.reset();for(p=0;p<zN.length;p++)g=zN[p],K[g.name]&&!c[g.name]&&(c[g.name]=!0,g[H](d))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(d){var H=d.changedTouches[0],K=d.type;if(K==="touchstart")Kt1=H.clientX,cSY=H.clientY,pGD=!1;else if(K==="touchmove"&&!pGD){pGD=!0;K="auto";for(var c=H1E(d),p=0,g;p<c.length;p++)if(g=c[p],g.__polymerGesturesTouchAction){K=g.__polymerGesturesTouchAction;break}c=!1;p=Math.abs(Kt1-H.clientX);H=Math.abs(cSY-H.clientY);d.cancelable&&(K==="none"?c=!0:K==="pan-x"?c=H>p:K==="pan-y"&&(c=p>H));c?d.preventDefault():
Xx("track")}};
s_=function(d,H,K){return Jw[H]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d,H,K),!0):!1};
Fx=function(d,H,K){return Jw[H]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d,H,K),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(d,H,K){var c=Jw[H],p=c.deps,g=c.name,a=d.__polymerGestures;a||(d.__polymerGestures=a={});for(var e=0,k,C;e<p.length;e++)k=p[e],ya4&&tff.indexOf(k)>-1&&k!=="click"||((C=a[k])||(a[k]=C={_count:0}),C._count===0&&d.addEventListener(k,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,E8L(k)),C[g]=(C[g]||0)+1,C._count=(C._count||0)+1);d.addEventListener(H,K);c.touchAction&&_.ZQ(d,c.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(d,H,K){var c=Jw[H],p=c.deps;c=c.name;var g=d.__polymerGestures;if(g)for(var a=0,e,k;a<p.length;a++)e=p[a],(k=g[e])&&k[c]&&(k[c]=(k[c]||1)-1,k._count=(k._count||1)-1,k._count===0&&d.removeEventListener(e,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,E8L(e)));d.removeEventListener(H,K)};
gVM=function(d){zN.push(d);for(var H=0;H<d.emits.length;H++)Jw[d.emits[H]]=d};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(d){for(var H=0,K;H<zN.length;H++){K=zN[H];for(var c=0,p;c<K.emits.length;c++)if(p=K.emits[c],p===d)return K}return null};
_.ZQ=function(d,H){Yi4&&d instanceof HTMLElement&&TN.run(function(){d.style.touchAction=H});
d.__polymerGesturesTouchAction=H};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(d,H,K){H=new Event(H,{bubbles:!0,cancelable:!0,composed:!0});H.detail=K;(0,_.U_)(d).dispatchEvent(H);H.defaultPrevented&&(d=K.preventer||K.sourceEvent)&&d.preventDefault&&d.preventDefault()};
Xx=function(d){d=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d);d.info&&(d.info.prevent=!0)};
QG=function(d,H,K,c){H&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H,d,{x:K.clientX,y:K.clientY,sourceEvent:K,preventer:c,prevent:function(p){return Xx(p)}})};
i1C=function(d,H,K){if(d.prevent)return!1;if(d.started)return!0;K=Math.abs(d.y-K);return Math.abs(d.x-H)>=5||K>=5};
GZ1=function(d,H,K){if(H){var c=d.moves[d.moves.length-2],p=d.moves[d.moves.length-1],g=p.x-d.x,a=p.y-d.y,e=0;if(c){var k=p.x-c.x;e=p.y-c.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H,"track",{state:d.state,x:K.clientX,y:K.clientY,dx:g,dy:a,ddx:k,ddy:e,sourceEvent:K,hover:function(){return dJl(K.clientX,K.clientY)}})}};
qu4=function(d,H,K){var c=Math.abs(H.clientX-d.x),p=Math.abs(H.clientY-d.y),g=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K||H);!g||oVY[g.localName]&&g.hasAttribute("disabled")||!(isNaN(c)||isNaN(p)||c<=25&&p<=25||joC(H))||d.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g,"tap",{x:H.clientX,y:H.clientY,sourceEvent:H,preventer:K})};
ar1=function(d,H,K,c,p){var g;p&&(g=typeof K==="object"&&K!==null)&&(c=d.__dataTemp[H]);c=c!==K&&(c===c||K===K);g&&c&&(d.__dataTemp[H]=K);return c};
efC=function(){if(tw&&!Yl){if(!lrY){lrY=!0;var d=document.createElement("style");d.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(d)}return!0}return!1};
xJL=function(){return kZ4};
nVh=function(d,H){kZ4=d;Object.setPrototypeOf(d,H.prototype);new H;kZ4=null};
Cv1=function(d,H){for(var K=0;K<H.length;K++){var c=H[K];if(!!d!=!!c.__hideTemplateChildren__)if(c.nodeType===Node.TEXT_NODE)d?(c.__polymerTextContent__=c.textContent,c.textContent=""):c.textContent=c.__polymerTextContent__;else if(c.localName==="slot")if(d)c.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.U_)((0,_.U_)(c).parentNode).replaceChild(c.__polymerReplaced__,c);else{var p=c.__polymerReplaced__;p&&(0,_.U_)((0,_.U_)(p).parentNode).replaceChild(c,p)}else c.style&&(d?(c.__polymerDisplay__=
c.style.display,c.style.display="none"):c.style.display=c.__polymerDisplay__);c.__hideTemplateChildren__=d;c._showHideChildren&&c._showHideChildren(d)}};
RfE=function(d){return(d=d.__dataHost)&&d._methodHost||d};
hfE=function(d,H,K){var c=K.mutableData?V34:O_;S1.mixin&&(c=S1.mixin(c));var p=function(){return c.apply(this,arguments)||this};
_.m(p,c);p.prototype.__templatizeOptions=K;p.prototype._bindTemplate(d);UJf(p,d,H,K);return p};
PvX=function(d,H,K,c){var p=K.forwardHostProp;if(p&&H.hasHostProps){var g=d.localName=="template",a=H.templatizeTemplateClass;if(!a){if(g){var e=K.mutableData?Lt5:M31;a=function(){return e.apply(this,arguments)||this};
_.m(a,e);a=H.templatizeTemplateClass=a}else{var k=d.constructor;a=function(){return k.apply(this,arguments)||this};
_.m(a,k);a=H.templatizeTemplateClass=a}var C=H.hostProps,R;for(R in C)a.prototype._addPropertyEffect("_host_"+R,a.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:mJL(p)}),a.prototype._createNotifyingProperty("_host_"+R);E_&&c&&wGD(H,K,c)}d.__dataProto&&Object.assign(d.__data,d.__dataProto);if(g)nVh(d,a),d.__dataTemp={},d.__dataPending=null,d.__dataOld=null,d._enableProperties();else{Object.setPrototypeOf(d,a.prototype);H=H.hostProps;for(var V in H)V="_host_"+V,V in d&&(H=d[V],delete d[V],d.__data[V]=
H)}}};
mJL=function(d){return function(H,K,c){d.call(H.__templatizeOwner,K.substring(6),c[K])}};
UJf=function(d,H,K,c){var p=K.hostProps||{},g;for(g in c.instanceProps){delete p[g];var a=c.notifyInstanceProp;a&&d.prototype._addPropertyEffect(g,d.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:uhM(a)})}if(c.forwardHostProp&&H.__dataHost)for(var e in p)K.hasHostProps||(K.hasHostProps=!0),d.prototype._addPropertyEffect(e,d.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:IrL()})};
uhM=function(d){return function(H,K,c){d.call(H.__templatizeOwner,H,K,c[K])}};
IrL=function(){return function(d,H,K){d.__dataHost._setPendingPropertyOrPath("_host_"+H,K[H],!0,!0)}};
S1=function(d,H,K){if(yG&&!RfE(d))throw Error("Hd");K=K||{};if(d.__templatizeOwner)throw Error("Id");d.__templatizeOwner=H;var c=(H?H.constructor:O_)._parseTemplate(d),p=c.templatizeInstanceClass;p||(p=hfE(d,c,K),c.templatizeInstanceClass=p);var g=RfE(d);PvX(d,c,K,g);K=function(){return p.apply(this,arguments)||this};
_.m(K,p);K.prototype._methodHost=g;K.prototype.__dataHost=d;K.prototype.__templatizeOwner=H;K.prototype.__hostProps=c.hostProps;return K};
wGD=function(d,H,K){K=K.constructor._properties;d=d.propertyEffects;H=H.instanceProps;for(var c in d)if(!(K[c]||H&&H[c]))for(var p=d[c],g=0;g<p.length;g++){var a=p[g].info.part;if(!a.signature||!a.signature.static){console.warn("Property '"+c+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
rSM=function(d,H){for(var K;H;)if(K=H.__dataHost?H:H.__templatizeInstance)if(K.__dataHost!=d)H=K.__dataHost;else return K;else H=(0,_.U_)(H).parentNode;return null};
bC=function(d){return d.localName==="slot"};
Wth=function(){for(var d=N8.prototype,H="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),K={},c=0;c<H.length;K={method$jscomp$33:void 0},c++)K.method$jscomp$33=H[c],d[K.method$jscomp$33]=function(p){return function(){return this.node[p.method$jscomp$33].apply(this.node,arguments)}}(K)};
BKE=function(d,H){for(var K={},c=0;c<H.length;K={name$jscomp$423:void 0},c++)K.name$jscomp$423=H[c],Object.defineProperty(d,K.name$jscomp$423,{get:function(p){return function(){return this.node[p.name$jscomp$423]}}(K),
configurable:!0})};
zfC=function(){for(var d=N8.prototype,H=["textContent","innerHTML","className"],K={},c=0;c<H.length;K={name$jscomp$424:void 0},c++)K.name$jscomp$424=H[c],Object.defineProperty(d,K.name$jscomp$424,{get:function(p){return function(){return this.node[p.name$jscomp$424]}}(K),
set:function(p){return function(g){this.node[p.name$jscomp$424]=g}}(K),
configurable:!0})};
XGl=function(){DQ=document.documentElement.getAttribute("dir");DQ=document.documentElement.getAttribute("dir");for(var d=0;d<f5.length;d++){var H=f5[d];H.__autoDirOptOut||H.setAttribute("dir",DQ)}};
Z14=function(){Aw=!0;requestAnimationFrame(function(){Aw=!1;JSh(sB1);setTimeout(function(){for(var d=0,H=j1.length;d<H;d++)FtM(j1.shift())})})};
JSh=function(d){for(;d.length;)FtM(d.shift())};
FtM=function(d){var H=d[0],K=d[1];d=d[2];try{K.apply(H,d)}catch(c){setTimeout(function(){throw c;})}};
_.TK5=function(d,H,K){Aw||Z14();sB1.push([d,H,K])};
_.vV=function(d,H,K){Aw||Z14();j1.push([d,H,K])};
YuM=function(d,H){H=H===void 0?!1:H;if(!QBh||!t3E||!QBh.handlesDynamicScoping)return null;var K=t3E.ScopingShim;if(!K)return null;var c=K.scopeForNode(d),p=(0,_.U_)(d).getRootNode(),g=function(a){if((0,_.U_)(a).getRootNode()===p){var e=Array.from(QBh.nativeMethods.querySelectorAll.call(a,"*"));e.push(a);for(a=0;a<e.length;a++){var k=e[a];if((0,_.U_)(k).getRootNode()===p){var C=K.currentScopeForNode(k);C!==c&&(C!==""&&K.unscopeNode(k,C),K.scopeNode(k,c))}}}};
g(d);return H?(H=new MutationObserver(function(a){for(var e=0;e<a.length;e++)for(var k=a[e],C=0;C<k.addedNodes.length;C++){var R=k.addedNodes[C];R.nodeType===Node.ELEMENT_NODE&&g(R)}}),H.observe(d,{childList:!0,
subtree:!0}),H):null};
O1C=function(){document.body.removeAttribute("unresolved")};
NK1=function(d){var H=d=d.replace(Su1,"").replace(EVL,""),K=new ySM;K.start=0;K.end=H.length;for(var c=K,p=0,g=H.length;p<g;p++)if(H[p]==="{"){c.rules||(c.rules=[]);var a=c,e=a.rules[a.rules.length-1]||null;c=new ySM;c.start=p+1;c.parent=a;c.previous=e;a.rules.push(c)}else H[p]==="}"&&(c.end=p+1,c=c.parent||K);return b1L(K,d)};
b1L=function(d,H){var K=H.substring(d.start,d.end-1);d.parsedCssText=d.cssText=K.trim();d.parent&&(K=H.substring(d.previous?d.previous.end:d.parent.start,d.start-1),K=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(K),K=K.replace(DJ5," "),K=K.substring(K.lastIndexOf(";")+1),K=d.parsedSelector=d.selector=K.trim(),d.atRule=K.indexOf("@")===0,d.atRule?K.indexOf("@media")===0?d.type=4:K.match(frE)&&(d.type=7,d.keyframesName=d.selector.split(DJ5).pop()):K.indexOf("--")===
0?d.type=1E3:d.type=1);if(K=d.rules)for(var c=0,p=K.length,g=void 0;c<p&&(g=K[c]);c++)b1L(g,H);return d};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(d){return d.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var H=arguments[1],K=6-H.length;K--;)H="0"+H;return"\\"+H})};
AS1=function(d,H,K){K=K===void 0?"":K;var c="";if(d.cssText||d.rules){var p=d.rules;if(p&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(p))for(var g=0,a=p.length,e=void 0;g<a&&(e=p[g]);g++)c=AS1(e,H,c);else H?H=d.cssText:(H=d.cssText,H=H.replace(jBC,"").replace(vVY,""),H=H.replace(d55,"").replace(HV1,"")),(c=H.trim())&&(c="  "+c+"\n")}c&&(d.selector&&(K+=d.selector+" {\n"),K+=c,d.selector&&(K+="}\n\n"));return K};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(d){d=d[0];return!!d&&!!d.selector&&d.selector.indexOf("--")===0};
KsL=function(d){if(d=$5h[d])d._applyShimCurrentVersion=d._applyShimCurrentVersion||0,d._applyShimValidatingVersion=d._applyShimValidatingVersion||0,d._applyShimNextVersion=(d._applyShimNextVersion||0)+1};
c9X=function(d){return d._applyShimCurrentVersion===d._applyShimNextVersion};
gt4=function(d){d._applyShimValidatingVersion=d._applyShimNextVersion;d._validating||(d._validating=!0,prl.then(function(){d._applyShimCurrentVersion=d._applyShimNextVersion;d._validating=!1}))};
GjD=function(d){if(!d)return"";typeof d==="string"&&(d=NK1(d));return AS1(d,iVY)};
otF=function(d){!d.__cssRules&&d.textContent&&(d.__cssRules=NK1(d.textContent));return d.__cssRules||null};
aeM=function(d,H,K,c){if(d){var p=!1,g=d.type;if(c&&g===4){var a=d.selector.match(qlM);a&&(window.matchMedia(a[1]).matches||(p=!0))}g===1?H(d):K&&g===7?K(d):g===1E3&&(p=!0);if((d=d.rules)&&!p)for(p=0,g=d.length,a=void 0;p<g&&(a=d[p]);p++)aeM(a,H,K,c)}};
lei=function(d,H){var K=d.indexOf("var(");if(K===-1)return H(d,"","","");a:{var c=0;var p=K+3;for(var g=d.length;p<g;p++)if(d[p]==="(")c++;else if(d[p]===")"&&--c===0)break a;p=-1}c=d.substring(K+4,p);K=d.substring(0,K);d=lei(d.substring(p+1),H);g=c.indexOf(",");if(g===-1)return H(K,c.trim(),"",d);p=c.substring(0,g).trim();c=c.substring(g+1).trim();return H(K,p,c,d)};
eW5=function(d){if(dr!==void 0)return dr;if(d.__cssBuild===void 0){var H=d.getAttribute("css-build");if(H)d.__cssBuild=H;else{a:{H=d.localName==="template"?d.content.firstChild:d.firstChild;if(H instanceof Comment&&(H=H.textContent.trim().split(":"),H[0]==="css-build")){H=H[1];break a}H=""}if(H!==""){var K=d.localName==="template"?d.content.firstChild:d.firstChild;K.parentNode.removeChild(K)}d.__cssBuild=H}}return d.__cssBuild||""};
x5h=function(d,H,K,c){for(var p=H._noAccessors,g=Object.getOwnPropertyNames(H),a=0;a<g.length;a++){var e=g[a];if(!(e in c))if(p)d[e]=H[e];else{var k=Object.getOwnPropertyDescriptor(H,e);k&&(k.configurable=!0,Object.defineProperty(d,e,k))}}for(var C in kjX)H[C]&&(K[C]=K[C]||[],K[C].push(H[C]))};
ntY=function(d,H,K){H=H||[];for(var c=d.length-1;c>=0;c--){var p=d[c];p?Array.isArray(p)?ntY(p,H):H.indexOf(p)<0&&(!K||K.indexOf(p)<0)&&H.unshift(p):console.warn("behavior is null, check for missing or 404 import")}return H};
CBi=function(d,H){for(var K in H){var c=d[K],p=H[K];d[K]=!("value"in p)&&c&&"value"in c?Object.assign({value:c.value},p):p}};
U5F=function(d,H,K){var c={},p=function(){return H.apply(this,arguments)||this};
_.m(p,H);p._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(a)for(var k=0,C;k<a.length;k++)C=a[k],C.properties&&this.createProperties(C.properties),C.observers&&this.createObservers(C.observers,C.properties);d.properties&&this.createProperties(d.properties);d.observers&&this.createObservers(d.observers,d.properties);this._prepareTemplate()}else H._finalizeClass.call(this)};
p.prototype.created=function(){H.prototype.created.call(this);var k=c.created;if(k)for(var C=0;C<k.length;C++)k[C].call(this)};
p.prototype._registered=function(){var k=p.prototype;if(!k.hasOwnProperty("__hasRegisterFinished")){k.__hasRegisterFinished=!0;H.prototype._registered.call(this);tw&&e(k);k=Object.getPrototypeOf(this);var C=c.beforeRegister;if(C)for(var R=0;R<C.length;R++)C[R].call(k);if(C=c.registered)for(R=0;R<C.length;R++)C[R].call(k)}};
p.prototype._applyListeners=function(){H.prototype._applyListeners.call(this);var k=c.listeners;if(k)for(var C=0;C<k.length;C++){var R=k[C];if(R)for(var V in R)this._addMethodEventListenerToNode(this,V,R[V])}};
p.prototype._ensureAttributes=function(){var k=c.hostAttributes;if(k)for(var C=k.length-1;C>=0;C--){var R=k[C],V;for(V in R)this._ensureAttribute(V,R[V])}H.prototype._ensureAttributes.call(this)};
p.prototype.ready=function(){H.prototype.ready.call(this);var k=c.ready;if(k)for(var C=0;C<k.length;C++)k[C].call(this)};
p.prototype.attached=function(){H.prototype.attached.call(this);var k=c.attached;if(k)for(var C=0;C<k.length;C++)k[C].call(this)};
p.prototype.detached=function(){H.prototype.detached.call(this);var k=c.detached;if(k)for(var C=0;C<k.length;C++)k[C].call(this)};
p.prototype.attributeChanged=function(k,C,R){H.prototype.attributeChanged.call(this);var V=c.attributeChanged;if(V)for(var U=0;U<V.length;U++)V[U].call(this,k,C,R)};
_.H3.Object.defineProperties(p,{properties:{configurable:!0,enumerable:!0,get:function(){var k={};if(a)for(var C=0;C<a.length;C++)CBi(k,a[C].properties);CBi(k,d.properties);return k}},
observers:{configurable:!0,enumerable:!0,get:function(){var k=[];if(a)for(var C=0,R;C<a.length;C++)R=a[C],R.observers&&(k=k.concat(R.observers));d.observers&&(k=k.concat(d.observers));return k}}});
if(K){Array.isArray(K)||(K=[K]);var g=H.prototype.behaviors;var a=ntY(K,null,g);p.prototype.behaviors=g?g.concat(K):a}var e=function(k){if(a)for(var C=a,R=0;R<C.length;R++)x5h(k,C[R],c,RWh);x5h(k,d,c,VR4)};
tw||e(p.prototype);p.generatedFrom=d;return p};
m54=function(d){var H=typeof d!=="string"?d:{is:d,notifyObserversOnUndefined:!0};H.fastInit===void 0&&(H.fastInit=!0);return function(K){if(!H.disableInheritanceCheck&&Object.getPrototypeOf(K.prototype).constructor!==_.$K)throw Error("Md");var c=K.prototype;c.is=H.is;rEi(c,"created",function(){this.hostElement=this;this.polymerController=this});
hWL(c,K,H.fastInit);H.notifyObserversOnUndefined&&(c._overrideLegacyUndefined=!0);if(LsM)for(var p=_.q(Object.getOwnPropertyNames(c)),g=p.next();!g.done;g=p.next()){g=g.value;var a=Object.getOwnPropertyDescriptor(c,g);a.enumerable===!1&&(a.enumerable=!0,Object.defineProperty(c,g,a))}if("template"in K)var e=function(){return K.template};
else H.template!==void 0&&(e=H.template);if(e!==void 0){var k;Object.defineProperty(c,"_template",{get:function(){k===void 0&&(k=e());return k},
set:function(C){k=C},
configurable:!0,enumerable:!0})}Polymer(c);K[MRF]=c}};
wri=function(d){d=d===void 0?{}:d;d.fastInit===void 0&&(d.fastInit=!0);return function(H){if(!d.disableInheritanceCheck&&Object.getPrototypeOf(H.prototype).constructor!==KO)throw Error("Nd");hWL(H.prototype,H,d.fastInit)}};
hWL=function(d,H,K){K=K===void 0?!1:K;PBi(H);K?rEi(d,"created",function(){this.disableEnforceFastDefaultValuesCheck||u2F(H,this)}):rEi(d,"ready",function(){for(var c={},p=_.q(WB4(this.behaviors)),g=p.next();!g.done;g=p.next())g=g.value,g.properties&&Object.assign(c,Ie5(this,g.properties));
Object.assign(c,Ie5(this,this.properties));u2F(H,this);p=_.q(Object.keys(c));for(g=p.next();!g.done;g=p.next())g=g.value,this[g]=c[g]})};
u2F=function(d,H){if(LsM){d=new d;for(var K=_.q(Object.getOwnPropertyNames(d)),c=K.next();!c.done;c=K.next())c=c.value,H[c]=d[c];for(K=H;K&&K!==Object.prototype;K=Object.getPrototypeOf(K)){c=_.q(Object.getOwnPropertyNames(K));for(var p=c.next();!p.done;p=c.next())p=p.value,d.hasOwnProperty(p)||Object.defineProperty(d,p,r9i(H,p))}}else d.apply(H)};
r9i=function(d,H){return{get:function(){var K=d[H];return K instanceof Function?K.bind(d):K},
set:function(K){d[H]=K}}};
Ie5=function(d,H){if(!H)return{};for(var K={},c=_.q(Object.keys(H)),p=c.next();!p.done;p=c.next())if(p=p.value,!H[p].readOnly){var g=d[p];g!==void 0&&(K[p]=g)}return K};
PBi=function(d){var H=new d;d=d.prototype.properties||{};for(var K=_.q(Object.keys(d)),c=K.next();!c.done;c=K.next())if(c=c.value,H.hasOwnProperty(c)){var p=d[c];typeof p==="function"&&(d[c]=p={type:p});H[c]!=null&&p.type===Object&&(p.type=Wsi(H[c].constructor))}};
Wsi=function(d){for(var H=_.q(BvF),K=H.next();!K.done;K=H.next())if(K=K.value,d===K)return K;return Object};
zWD=function(d){return function(H,K){H.behaviors=H.behaviors||[];H.behaviors.push(d||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",H,K).prototype:void 0));Object.defineProperty(H,K,{get:function(){return this},
enumerable:!0,configurable:!0})}};
XrE=function(d){d=d===void 0?{}:d;return function(H,K){H.properties=H.properties||{};d.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?d.type=Wsi(Reflect.getMetadata("design:type",H,K)):d.type=String);var c=d,p=H.properties[K];H.properties[K]=p?Object.assign({},p,c):c}};
J9L=function(d){return function(H,K){H.listeners=H.listeners||{};H.listeners[d]=K}};
spl=function(){var d=_.sH.apply(0,arguments);if(d.length===0)throw Error("Od");return function(H,K){H.observers=H.observers||[];H.observers.push(K+"("+d.join(",")+")")}};
FsM=function(){var d=_.sH.apply(0,arguments);return function(H,K,c){var p=Object.getOwnPropertyDescriptor(H,K).get,g="__compute__"+K;Object.defineProperty(H,g,{value:p,enumerable:!0});H.properties=H.properties||{};p=H.properties[K];p||(p={},H.properties[K]=p);p.computed=g+"("+d.join(",")+")";c.get=void 0}};
_.c3=function(d,H,K){_.h_.call(this);this.JSC$11245_id_=null;this.usingListeners_=!1;this.JSC$11245_listener_=d;this.handler_=K;this.JSC$11245_win_=H||window;this.callback_=(0,_.LA)(this.JSC$11247_doAction_,this)};
pO=function(d){this.range_=d};
gr=function(d){this.range_=d};
ou=function(d,H,K){_.h_.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=d;this.scrollTimer_=new _.iG(50);this.JSC$11324_eventHandler_=new _.GA(this);this.scrollDelta_=new _.Bf;this.containerIsActuallyContent_=d.tagName==="BODY"||d.tagName==="HTML";this.containerBounds_=Tv1(d);this.containerIsActuallyContent_&&(d=_.CB(),this.containerBounds_.height=d.height,this.containerBounds_.width=d.width);this.margin_=H||0;if(H){if(H=this.containerBounds_.clone(),d=this.margin_){var c=
Math.min(d,H.height*.25);H.top+=c;H.height-=2*c;d=Math.min(d,H.width*.25);H.left+=d;H.width-=2*d}}else H=this.containerBounds_;this.scrollBounds_=H;K||this.JSC$11324_eventHandler_.listen(_.XF(this.containerNode_),"mousemove",this.JSC$11326_onMouseMove);this.JSC$11324_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11326_onTick_)};
_.qC=function(d){this.mechanism=d};
au=function(d,H){this.JSC$11422_key_=d;this.JSC$11422_value_=H};
tRL=function(d){if(d>=55296&&d<=57343||d>1114111)return"\ufffd";d in Qpl&&(d=Qpl[d]);var H="";d>65535&&(d-=65536,H+=String.fromCharCode(d>>>10&1023|55296),d=56320|d&1023);return H+=String.fromCharCode(d)};
Yl5=function(d,H){return d<H?1:-1};
SlX=function(){return function(d){return d.charAt(1)==="#"?d.charAt(2)==="X"||d.charAt(2)==="x"?tRL(parseInt(d.substr(3),16)):tRL(parseInt(d.substr(2),10)):OV1[d.slice(1,-1)]}};
bVf=function(d){return d.slice(1,d.length-1).trim().replace(Et4,function(H){return y9F[H]||" "})};
lG=function(d){return d===32||d===9};
eM=function(d,H){return H<d.length?d.charCodeAt(H):-1};
NvD=function(d){for(;d;){if(d._lastLineBlank)return!0;var H=d.type;if(H==="list"||H==="item")d=d._lastChild;else break}return!1};
kK=function(d){if(D5l.test(d)){var H=1,K=0,c=0;for(d[K]=="|"&&K++;K<d.length;){switch(d[K]){case "|":c=1;break;case " ":break;case "\t":break;default:c&&(c=0,H++)}K++}return feL.test(d)?-H:H}return 0};
A9i=function(d){return d=="table"||d=="row"||d=="cell"};
jpC=function(){return new xK("document",[[1,1],[0,0]])};
vtE=function(){};
nO=function(){var d={safe:!1};d=d||{};d.softbreak=d.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=d};
cH4=function(d,H){var K="";if(d)if(d=d.toLowerCase(),d===" "||dWX.test(d))K="space";else if(HqM.test(d))K="esc";else if(d.length==1){if(!H||$WD.test(d))K=d}else K=KUE.test(d)?d.replace("arrow",""):d=="multiply"?"*":d;return K};
Gwl=function(d,H){var K=d.hasModifiers;if(H.key)K=cH4(H.key,K);else if(H.detail&&H.detail.key)K=cH4(H.detail.key,K);else{K=H.keyIdentifier;var c="";K&&(K in p91?c=p91[K]:gJD.test(K)?(K=parseInt(K.replace("U+","0x"),16),c=String.fromCharCode(K).toLowerCase()):c=K.toLowerCase());(K=c)||(K=H.keyCode,c="",Number(K)&&(K>=65&&K<=90?c=String.fromCharCode(32+K):K>=112&&K<=123?c="f"+(K-112+1):K>=48&&K<=57?c=String(K-48):K>=96&&K<=105?c=String(K-96):c=iqF[K]),K=c);K=K||""}return K===d.key&&(!d.hasModifiers||
!!H.shiftKey===!!d.shiftKey&&!!H.ctrlKey===!!d.ctrlKey&&!!H.altKey===!!d.altKey&&!!H.metaKey===!!d.metaKey)};
qL5=function(d){return d.length===1?{combo:d,key:d,event:"keydown"}:d.split("+").reduce(function(H,K){var c=K.split(":");K=c[0];c=c[1];K in oJl?(H[oJl[K]]=!0,H.hasModifiers=!0):(H.key=K,H.event=c||"keydown");return H},{combo:d.split(":").shift()})};
aSX=function(d){return d.trim().split(" ").map(function(H){return qL5(H)})};
lSC=function(d,H){if(d&&d.fn){var K=d.fn;d.fn=function(){try{K.apply(this,arguments)}catch(c){if(c instanceof CO)console.warn("Argument '"+c.arg+"'"+(H?" for method '"+H+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw c;}}}return d};
ebh=function(){var d=_.sH.apply(0,arguments);return d.length===0?function(H){return H}:d.length===1?d[0]:d.reduce(function(H,K){return function(){return H(K.apply(null,_.ru(_.sH.apply(0,arguments))))}})};
kw5=function(){var d=_.sH.apply(0,arguments);return function(H){return function(K,c){K=H(K,c);var p=function(){throw Error("ye");},g={getState:K.getState,
dispatch:function(a){return p.apply(null,[a].concat(_.ru(_.sH.apply(1,arguments))))}};
c=d.map(function(a){return a(g)});
p=ebh.apply(null,_.ru(c))(K.dispatch);return Object.assign({},K,{dispatch:p})}}};
CAL=function(d){Object.keys(d).forEach(function(H){var K=d[H];if(typeof K(void 0,{type:xWf})==="undefined")throw Error("ze`"+H);if(typeof K(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+nJC()})==="undefined")throw Error("Ae`"+H+"`"+xWf);})};
Ru=function(d){for(var H=Object.keys(d),K={},c=0;c<H.length;c++){var p=H[c];typeof d[p]==="function"&&(K[p]=d[p])}var g=Object.keys(K);try{CAL(K)}catch(e){var a=e}return function(e,k){e=e===void 0?{}:e;if(a)throw a;for(var C=!1,R={},V=0;V<g.length;V++){var U=g[V],L=e[U],w=(0,K[U])(L,k);if(typeof w==="undefined")throw e=k&&k.type,Error("Be`"+(e?'"'+String(e)+'"':"(unknown type)")+"`"+U);R[U]=w;C=C||w!==L}return(C=C||g.length!==Object.keys(e).length)?R:e}};
Rb1=function(d,H,K){function c(){if(R)throw Error("Ce");return e}
function p(L){if(typeof L!=="function")throw Error("De`"+typeof L);if(R)throw Error("Ee");var w=!0;C===k&&(C=k.slice());C.push(L);return function(){if(w){if(R)throw Error("Fe");w=!1;C===k&&(C=k.slice());var W=C.indexOf(L);C.splice(W,1);k=null}}}
function g(L){if(typeof L!=="object"||L===null)var w=!1;else{for(w=L;Object.getPrototypeOf(w)!==null;)w=Object.getPrototypeOf(w);w=Object.getPrototypeOf(L)===w}if(!w)throw Error("Ge`"+typeof L);if(typeof L.type==="undefined")throw Error("He");if(R)throw Error("Ie");try{R=!0,e=a(e,L)}finally{R=!1}w=k=C;for(var W=0;W<w.length;W++)(0,w[W])();return L}
if(typeof H==="function"&&typeof K==="function"||typeof K==="function"&&typeof arguments[3]==="function")throw Error("Je");typeof H==="function"&&typeof K==="undefined"&&(K=H,H=void 0);if(typeof K!=="undefined"){if(typeof K!=="function")throw Error("Ke`"+typeof K);return K(Rb1)(d,H)}if(typeof d!=="function")throw Error("Le`"+typeof d);var a=d,e=H,k=[],C=k,R=!1;g({type:xWf});var V={},U=(V.dispatch=g,V.subscribe=p,V.getState=c,V.replaceReducer=function(L){if(typeof L!=="function")throw Error("Me`"+
typeof L);a=L;g({type:Voi});return U},V[UWM]=function(){var L={};
return L.subscribe=function(w){function W(){w.next&&w.next(c())}
if(typeof w!=="object"||w===null)throw new TypeError("Ne`"+typeof w);W();return{unsubscribe:p(W)}},L[UWM]=function(){return this},L},V);
return U};
hb4=function(d){function H(){p&&(p=!1,d());g&&c()}
function K(){requestAnimationFrame(H)}
function c(){var e=Date.now();if(p){if(e-a<2)return;g=!0}else p=!0,g=!1,setTimeout(K,20);a=e}
var p=!1,g=!1,a=0;return c};
VK=function(d){return typeof d==="number"?d:parseFloat(d)||0};
LUh=function(d){return _.sH.apply(1,arguments).reduce(function(H,K){return H+VK(d["border-"+K+"-width"])},0)};
_.P=function(d,H){H=YO(tL(H));d.innerHTML=H};
w94=function(d){var H=MoX;H||(H=mW4(),H=MoX=_.rs.transpose(H));H=H[d];return typeof H==="string"?H:_.Uo(d)};
PAX=function(d){d=String(d).toLowerCase();var H=mW4()[d];return typeof H==="string"?H:_.hP(d)};
uD1=function(d){d=d.toLowerCase();d=mW4()[d];return typeof d==="string"?d:null};
mW4=function(){if(!ISY){for(var d=Object.assign({},rHC),H=_.q(WUF),K=H.next();!K.done;K=H.next())K=K.value,d[K.toLowerCase()]=K;ISY=d}return ISY};
X9l=function(d,H){var K=window.customElements;return K&&K.get(d)||BNL[d]===!0?2:H.name==="HTMLUnknownElement"?1:H.name==="HTMLElement"&&zbh.test(d)?3:0};
FU4=function(d,H){switch(H){case "innerHTML":return JHh(d)===1?2:null;case "textContent":return d=JHh(d),d===1||d===6?1:null;default:var K,c;return(c=(K=sji[d.localName])==null?void 0:K[H])!=null?c:null}};
JHh=function(d){var H=d.localName,K=X9l(H,d.constructor);switch(K){case 0:case 1:return Zqi(H,d);case 3:case 2:return 1;default:_.tN(K,"got an unknown element classification")}};
Zqi=function(d,H){var K=Object.hasOwnProperty.call(TNE,d)?TNE[d]:null;return K!==null?K:Object.hasOwnProperty.call(QjF,d)&&H instanceof SVGElement?QjF[d]:null};
toF=function(d,H){return H};
Oq1=function(d){return(d=d.split(YL4,2))?{url:d[0],metadata:d[1]}:null};
EJX=function(d){var H=String(d.url).replace(SL4,encodeURIComponent);if(d=d.metadata){SL4.lastIndex=0;if(SL4.test(d))return null;H+=" "+d}return H};
DWL=function(d){function H(C){var R=C.localName;if(!C.getAttribute("is")&&X9l(R,C.constructor)===2){var V;return(V=k)!=null?V:k=document.createElement("polyresinuncustomized")}(C=e[R])||(C=e[R]=document.createElement(R));return C}
var K=d.reportHandler||void 0,c=d.safeTypesBridge||yHh,p=/^$/;if(d=d.allowedIdentifierPrefixes){d=_.q(d);for(var g=d.next();!g.done;g=d.next())p=new RegExp(p.source+"|^"+_.bql(g.value))}K&&K(!1,"initResin",null);var a=NN5(p,c,K),e={},k=null;return function(C,R,V){var U=C.nodeType;if(U!==Node.ELEMENT_NODE){if(U===Node.TEXT_NODE){R=C.parentElement;V=!R;if(R&&R.nodeType===Node.ELEMENT_NODE){U=R.localName;var L=X9l(U,R.constructor);switch(L){case 0:case 1:R=Zqi(U,R);V=R===1||R===6;break;case 3:case 2:V=
!0;break;default:_.tN(L,"got an unknown element classification")}}if(V)return function(F){return""+c(F,"STRING",F)}}return function(F){if(!F&&F!==document.all)return F;
K&&K(!0,"Failed to sanitize "+(C.parentElement&&C.parentElement.nodeName)+" #text node to value "+F,C.parentElement);return LO}}var w=C.localName;
U=H(C);var W=null;switch(V){case "attribute":if(PAX(R)in U)break;return function(F){return F};
case "property":if(R in U){W=FU4(U,R);break}if((L=uD1(R))&&L in U)break;return function(F){return F};
default:_.tN(V,"got an unknown resin type, expected either 'property' or 'attribute'")}var J=V==="attribute"?R.toLowerCase():w94(R);W||(W=KKF(w,J,function(F){var Y=C.getAttribute(F);return!Y||/[\[\{]/.test(F)?null:Y}));
return function(F){var Y=MC,A=null;if(!F&&F!==document.all)return F;if(W!=null){var E=a[W],N=E.safeType;A=E.safeReplacement;N&&(Y=c(F,N,MC));Y===MC&&(E.filterString?(Y=String(c(F,"STRING",F)),Y=E.filterString(w,J,Y)):E.filterRaw&&(Y=E.filterRaw(w,J,F,C)),Y===A&&(Y=MC))}Y===MC&&(Y=A||LO,K&&K(!0,"Failed to sanitize attribute of <"+w+">: <"+w+" "+J+'="'+F+'">',C));return Y}}};
NN5=function(d,H,K){return[,{filterRaw:function(c,p,g){return g},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:fSD,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:fSD,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:LO,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:AHi,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(c,p,g){g=
String(g).toLowerCase();return glM(c,p,g)?g:LO},
safeReplacement:LO,safeType:void 0},,{filterRaw:void 0,filterString:function(c,p,g){return d.test(g)?g:LO},
safeReplacement:LO,safeType:"CONSTANT"},{filterRaw:function(c,p,g,a){if(typeof g==="string")var e=(e=g.match(jj1))?e.map(Oq1).filter(Boolean):[];else if(Array.isArray(g))e=g;else return fSD;var k=e;e=[];var C=[],R={};if(Array.isArray(k))for(var V=0,U=k.length;V<U;++V){var L=k[V],w=L&&L.url;if(w){var W=H(w,"URL",R);if(W){var J=W!==R;(J?e:C).push({url:J?W:w,metadata:L.metadata})}}}else C.push(k);k=C.length?JSON.stringify(C):null;C=MC;if(e.length){if(!Array.isArray(e))throw Error();C=e.map(EJX).filter(Boolean).join(" , ")||
MC}k&&K&&K(!0,"Failed to sanitize attribute value of <"+c+">: <"+c+" "+p+'="'+g+'">: '+k,a);return C===MC?fSD:C},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
vJE=function(d){var H=DWL(d);return function(K,c,p,g){return g||g===document.all?H(K,c,p)(g):g}};
mG=function(d,H){function K(){function p(e,k,C){for(k=Reflect.getMetadata("parameters",e)||[];k.length<=C;)k.push(null);k[C]=k[C]||[];k[C].push(a);Reflect.defineMetadata(k,e);return e}
var g=_.sH.apply(0,arguments);if(this instanceof K)return c.apply(this,g),this;var a=new (Function.prototype.bind.apply(K,[null].concat(_.ru(g))));p.annotation=a;return p}
var c=d34(H);K.prototype.toString=function(){return"@"+d};
return K.annotationCls=K};
d34=function(d){return function(){var H=_.sH.apply(0,arguments),K=this;d.forEach(function(c,p){p=H[p];if(Array.isArray(c))K[c[0]]=p&&p!==void 0?p:c[1];else for(var g in c)K[g]=p&&p[g]!==void 0?p[g]:c[g]})}};
HGF=function(d){return d!==void 0&&d!==null};
wr=function(d){if(typeof d==="string")return d;if(d===void 0||d===null)return""+d;if(d.overriddenName)return d.overriddenName;if(d.name)return d.name;d=d.toString();var H=d.indexOf("\n");return H===-1?d:d.substring(0,H)};
$31=function(d){d.__forward_ref__=$31;d.toString=function(){return wr(this())};
return d};
P3=function(d){return typeof d==="function"&&d.hasOwnProperty("__forward_ref__")&&d.__forward_ref__===$31?d():d};
KCD=function(d){return d?d.map(function(H){return new (Function.prototype.bind.apply(H.type.annotationCls,[null].concat(_.ru(H.args?H.args:[]))))}):[]};
cvM=function(d){for(var H=[],K=0;K<d.length;++K){if(H.indexOf(d[K])>-1){H.push(d[K]);break}H.push(d[K])}return H};
pQ4=function(d){return d.length>1?" ("+cvM(d.slice().reverse()).map(function(H){return wr(H.token)}).join(" -> ")+")":""};
iG4=function(d,H,K,c){if(c){var p=Error("Ue``"+(c instanceof Error?c.message:c));p.ngOriginalError=c}else p=Error();p.addKey=g3l;p.keys=[H];p.injectors=[d];p.constructResolvingMessage=K;p.message=p.constructResolvingMessage();p.ngOriginalError=c;return p};
g3l=function(d,H){this.injectors.push(d);this.keys.push(H);this.message=this.constructResolvingMessage()};
GQL=function(d,H){return iG4(d,H,function(){return"No provider for "+wr(this.keys[0].token)+"!"+pQ4(this.keys)})};
o3L=function(d,H){return iG4(d,H,function(){return"Cannot instantiate cyclic dependency!"+pQ4(this.keys)})};
qRh=function(d,H,K){return iG4(d,K,function(){var c=wr(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+c+"!"+pQ4(this.keys)+"."},H)};
akh=function(d,H){for(var K=[],c=0,p=H.length;c<p;c++){var g=H[c];g&&g.length!=0?K.push(g.map(wr).join(" ")):K.push("?")}return Error("Ye`"+wr(d)+"`"+K.join(", ")+"`"+wr(d))};
R1F=function(d){var H=void 0,K=void 0;if(d&&d.useClass!==void 0){H=d.useClass;var c=P3(d.useClass);var p=lkY.factory(c);c=e1E(c)}else d&&d.useExisting!==void 0?(p=function(g){return g},c=[kQ5(uG.get(P3(d.useExisting)))]):d&&d.useFactory!==void 0?(p=d.useFactory,c=x3L(d.useFactory,d.deps)):(K=d.useValue,p=function(){return d.useValue},c=n3Y);
return new CIF(p,c,H,K)};
U3F=function(d){return new VJf(uG.get(P3(d.provide)),[R1F(d)],d.multi)};
LC5=function(d){d=h11(d,[]).map(U3F);for(var H=new Map,K=0;K<d.length;K++){var c=d[K],p=H.get(c.key.id);if(p){if(c.multiProvider!==p.multiProvider)throw Error("$e`"+p+"`"+c);if(c.multiProvider)for(var g=0;g<c.resolvedFactories.length;g++)p.resolvedFactories.push(c.resolvedFactories[g]);else H.set(c.key.id,c)}else p=void 0,c.multiProvider?p=new VJf(c.key,c.resolvedFactories.slice(),c.multiProvider):p=c,H.set(c.key.id,p)}return Array.from(H.values())};
h11=function(d,H){d.forEach(function(K){if(K instanceof MJf)H.push({provide:K,useClass:K});else if(K&&typeof K=="object"&&K.provide!==void 0)H.push(K);else if(K instanceof Array)h11(K,H);else throw Error("Xe`"+K);});
return H};
x3L=function(d,H){if(H){var K=H.map(function(c){return[c]});
return H.map(function(c){return m35(d,c,K)})}return e1E(d)};
e1E=function(d){var H=lkY.parameters(d);if(!H)return[];if(H.some(function(K){return K==null}))throw akh(d,H);
return H.map(function(K){return m35(d,K,H)})};
m35=function(d,H,K){var c=null,p=!1;if(!Array.isArray(H))return H instanceof wQh?PIE(H.token,p,null):PIE(H,p,null);for(var g=null,a=0;a<H.length;++a){var e=H[a];if(e instanceof MJf)c=e;else if(e instanceof wQh)c=e.token;else if(e instanceof uE5)p=!0;else if(e instanceof IkY||e instanceof rvM)g=e}c=P3(c);if(c!=null)return PIE(c,p,g);throw akh(d,K);};
PIE=function(d,H,K){return new WCD(uG.get(P3(d)),H,K)};
BMF=function(d,H){for(var K=Array(d.providers.length),c=0;c<d.providers.length;++c){var p=c;if(c<0||c>=d.providers.length)throw Error("Ze`"+c);K[p]=H(d.providers[c])}return K};
z1F=function(d){return typeof d==="function"&&lkY.parameters(d).every(function(H){return!!H})};
sYl=function(d){var H=XQ1;JvF.get(d)||JvF.set(d,new H);return JvF.get(d)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(d){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(d)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(d){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(d)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(d,H){var K,c;if(d.contains(H))return!0;d=_.Iu(d).querySelectorAll("content,slot");for(K=0;K<d.length;++K){var p=_.Iu(d[K]).getDistributedNodes();for(c=0;c<p.length;++c)if(p[c].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(p[c],H))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(d){d.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(d)&&d.preventDefault();d.targetTouches&&(d=d.targetTouches[0],FCf=d.pageX,ZGF=d.pageY)};
_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager||_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.bind(void 0);
for(var d=0,H=rr.length;d<H;d++)document.addEventListener(rr[d],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){for(var d=0,H=rr.length;d<H;d++)document.removeEventListener(rr[d],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(d){var H=_.Iu(d).rootTarget;d.type!=="touchmove"&&TME!==H&&(TME=H,QYX=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Iu(d).path));if(!QYX.length)return!0;if(d.type==="touchstart")return!1;d=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(d);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(QYX,d.deltaX,d.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(d){for(var H=[],K=d.indexOf(tJi),c=0;c<=K;c++)if(d[c].nodeType===Node.ELEMENT_NODE){var p=d[c],g=p.style;g.overflow!=="scroll"&&g.overflow!=="auto"&&(g=window.getComputedStyle(p));g.overflow!=="scroll"&&g.overflow!=="auto"||H.push(p)}return H};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(d,H,K){if(H||K)for(var c=Math.abs(K)>=Math.abs(H),p=0;p<d.length;p++){var g=d[p];if(c?K<0?g.scrollTop>0:g.scrollTop<g.scrollHeight-g.clientHeight:H<0?g.scrollLeft>0:g.scrollLeft<g.scrollWidth-g.clientWidth)return g}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(d){var H={deltaX:d.deltaX,deltaY:d.deltaY};"deltaX"in d||("wheelDeltaX"in d&&"wheelDeltaY"in d?(H.deltaX=-d.wheelDeltaX,H.deltaY=-d.wheelDeltaY):"wheelDelta"in d?(H.deltaX=0,H.deltaY=-d.wheelDelta):"axis"in d?(H.deltaX=d.axis===1?d.detail:0,H.deltaY=d.axis===2?d.detail:0):d.targetTouches&&(d=d.targetTouches[0],H.deltaX=FCf-d.pageX,H.deltaY=ZGF-d.pageY));return H};
YR5=function(d){this.element=d;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
SRF=function(d){this.element=d;this.color=window.getComputedStyle(d).color;this.wave=document.createElement("div");this.waveContainer=document.createElement("div");this.wave.style.backgroundColor=this.color;this.wave.classList.add("wave");this.waveContainer.classList.add("wave-container");_.Iu(this.waveContainer).appendChild(this.wave);OG1(this)};
W3=function(d,H){for(var K in d)if(K.toLowerCase()===H.toLowerCase())return d[K]};
E3F=function(d,H){for(var K in d)if(K.toLowerCase()===H.toLowerCase()){delete d[K];break}};
bGE=function(d){d=_.rs.clone(d);for(var H=0;H<yvi.length;++H){var K=yvi[H],c=W3(d,K);c&&(d["X-Goog-Upload-Header-"+K]=c,E3F(d,K))}return d};
NMl=function(d){d=_.rs.clone(d);E3F(d,"X-Goog-Upload-Status")};
fk5=function(d){return D3D.some(function(H){return H.test(d)})};
dYX=function(d,H){var K;var c=(K=d.formContent)==null?void 0:K.locale;K=c==null?void 0:c.split("-")[0];c=c&&Av4.includes(c)?c:K&&Av4.includes(K)?K:void 0;c=(c!=null?c:"en").replaceAll("-","_").toLowerCase();var p;d=((p=d.initializationData)==null?0:p.useNightlyRelease)?"nightly":"live";var g;return(H==null?0:(g=H.getEnableAlohaBinarySplit)==null?0:g.call(H))?_.pB(jYD,d):_.pB(v3C,d,c)};
KaY=function(d,H,K,c){if(Hbi&&$Y4===H)return Hbi;$Y4=H;var p=dYX(d,c);return Hbi=H.feedbackV2GlobalObject?Promise.resolve(H.feedbackV2GlobalObject):new Promise(function(g,a){var e=_.x1("SCRIPT");_.fc(e,p);e.onload=function(){H.feedbackV2GlobalObject?g(H.feedbackV2GlobalObject):a(Error("cf"))};
e.onerror=function(){a(Error("df`"+p.toString()))};
K.body.appendChild(e)})};
gFD=function(d,H,K,c){if(c4l&&pqF===H)return c4l;pqF=H;var p=dYX(d,c);return c4l=H.feedbackV2GlobalObject?Promise.resolve(H.feedbackV2GlobalObject):new Promise(function(g,a){var e=_.x1("SCRIPT");_.fc(e,p);e.onload=function(){H.feedbackV2GlobalObject?g(H.feedbackV2GlobalObject):a(Error("cf"))};
e.onerror=function(){a(Error("df`"+p.toString()))};
K.body.appendChild(e)})};
ibl=function(d,H,K,c,p){p=p===void 0?!0:p;var g,a,e,k,C;return _.l(function(R){switch(R.nextAddress){case 1:return g=Date.now(),R.yield(KaY(d,K,c,H),2);case 2:a=R.yieldResult;if(!(p||((k=d.initializationData)==null?0:k.useNightlyRelease)||((C=d.initializationData)==null?0:C.isLocalServer))){e=a.initializeFeedbackClient(d,g,H);R.jumpTo(3);break}return R.yield(a.initializeFeedbackClientAsync(d,g,H),4);case 4:e=R.yieldResult;case 3:return e.initiateAloha(),R.return(e)}})};
GpL=function(d,H,K,c){var p,g,a;return _.l(function(e){if(e.nextAddress==1)return p=Date.now(),e.yield(gFD(d,K,c.document,H),2);if(e.nextAddress!=3)return g=e.yieldResult,e.yield(g.initializeFeedbackClientAsync(d,p,H,c),3);a=e.yieldResult;a.initiateAloha();return e.return(a)})};
oFF=function(d,H,K){var c=!0;c=c===void 0?!0:c;var p,g,a,e,k,C,R,V,U,L;return _.l(function(w){p=K||_.KF;if((g=H)==null?0:(e=(a=g).getEnableAlohaBinarySplit)==null?0:e.call(a)){k=p;if(k.isFormOpened)throw C=Error("ef"),C.name="DuplicateFormError",C;k.isFormOpened=!0;d.callbacks=d.callbacks||{};R=d.callbacks.onClose||function(){};
d.callbacks.onClose=function(W){k.isFormOpened=!1;R(W)};
try{return w.return(GpL(d,H,k,p))}catch(W){throw k.isFormOpened=!1,W;}}else{V=p;if(V.isFormOpened)throw U=Error("ef"),U.name="DuplicateFormError",U;V.isFormOpened=!0;d.callbacks=d.callbacks||{};L=d.callbacks.onClose||function(){};
d.callbacks.onClose=function(W){V.isFormOpened=!1;L(W)};
try{return w.return(ibl(d,H,V,p.document,c))}catch(W){throw V.isFormOpened=!1,W;}}_.VE(w)})};
kpf=function(d,H){return _.l(function(K){return K.return(new Promise(function(c){var p=q4h(H!=null?H:"")+"/aloha_form_properties?productId="+d;aRi(p,function(g){g=g.target;var a=null;try{var e=JSON,k=e.stringify;if(g.JSC$9767_xhr_){var C=g.JSC$9767_xhr_.responseText;C.indexOf(")]}'\n")==0&&(C=C.substring(5));var R=(0,_.B3)(C)}else R=void 0;a=TS5(lRE,k.call(e,R))}catch(V){k=new lRE,R=enC(),R=_.zA(R,13,!1),R=_.zA(R,14,!0),R=_.zA(R,15,!0),R=_.zA(R,20,!1),a=_.eE(k,1,R)}c(a)},"GET","",{},2E3,!0)}))})};
q4h=function(d){return fk5(d)?d:"https://www.google.com/tools/feedback"};
RnC=function(d){d=d.match(new RegExp(xYL,"gi"))||[];d=_.q(d);for(var H=d.next();!H.done;H=d.next()){H=H.value;a:{var K=_.q(nFi);for(var c=K.next();!c.done;c=K.next())if(c.value.test(H)){K=!1;break a}K=!0}if(!K)a:{K=_.q(CJC);for(c=K.next();!c.done;c=K.next())if(c.value.test(H)){K=!0;break a}K=!1}if(K)return!0}return!1};
VqX=function(d,H){var K={},c=Object.keys(d);c=_.q(c);for(var p=c.next();!p.done;p=c.next())p=p.value,K[p]=H(p,d[p]);return K};
UYM=function(d){switch(d){case "canary":return"CLIENT_CANARY_STATE_CANARY";case "control":return"CLIENT_CANARY_STATE_CONTROL";case "none":return"CLIENT_CANARY_STATE_NONE";default:return"CLIENT_CANARY_STATE_UNKNOWN"}};
La1=function(d){if(window.crypto&&window.crypto.getRandomValues)try{var H=Array(d),K=new Uint8Array(d);window.crypto.getRandomValues(K);for(var c=0;c<H.length;c++)H[c]=K[c];return H}catch(g){}H=Array(d);for(K=0;K<d;K++){c=Date.now();for(var p=0;p<c%23;p++)H[K]=Math.random();H[K]=Math.floor(Math.random()*256)}if(hnl)for(K=1,c=0;c<hnl.length;c++)H[K%d]^=H[(K-1)%d]/4^hnl.charCodeAt(c),K++;return H};
Xj=function(d){d=La1(d);for(var H=[],K=0;K<d.length;K++)H.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(d[K]&63));return H.join("")};
MqX=function(){var d=_.KF.ytLoggingDocDocumentNonce_;d||(d=Xj(16),_.vb("ytLoggingDocDocumentNonce_",d));return d};
wq1=function(d){d&&_.Wd("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:mY5,clientScreenNonce:d})};
PJX=function(d){return _.Fm("client-screen-nonce-store",{})[d===void 0?0:d]};
u$h=function(d,H){H=H===void 0?0:H;var K=_.Fm("client-screen-nonce-store");K||(K={},_.sS("client-screen-nonce-store",K));K[H]=d};
IRD=function(d){d=d===void 0?0:d;return d===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+d};
r4Y=function(d){return _.Fm(IRD(d===void 0?0:d))};
_.so=function(d){return(d=r4Y(d===void 0?0:d))?new JP({veType:d,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Wa5=function(){var d=_.Fm("csn-to-ctt-auth-info");d||(d={},_.sS("csn-to-ctt-auth-info",d));return d};
BpF=function(){return Object.values(_.Fm("client-screen-nonce-store",{})).filter(function(d){return d!==void 0})};
_.Fj=function(d){d=PJX(d===void 0?0:d);if(!d&&!_.Qx("USE_CSN_FALLBACK",!0))return null;d||(d="UNDEFINED_CSN");return d?d:null};
XqY=function(d){for(var H=_.q(Object.values(znF)),K=H.next();!K.done;K=H.next())if(_.Fj(K.value)===d)return!0;return!1};
J4h=function(d,H,K){var c=Wa5();(K=_.Fj(K))&&delete c[K];H&&(c[d]=H)};
Zc=function(d){return Wa5()[d]};
_.TA=function(d,H,K,c){K=K===void 0?0:K;if(d!==PJX(K)||H!==_.Fm(IRD(K)))if(J4h(d,c,K),u$h(d,K),_.sS(IRD(K),H),H=function(){setTimeout(function(){wq1(d)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(H)}catch(p){H()}else H()};
sGC=function(d,H){H=H===void 0?"":H;var K=[],c;for(c in d)if(d.hasOwnProperty(c)){var p=H!==""?H+"."+c:c;typeof d[c]==="object"?K.push.apply(K,_.ru(sGC(d[c],p))):K.push([p,d[c]])}K.sort();return K};
_.tP=function(d){var H=_.sH.apply(1,arguments);if(!QK(d)||H.some(function(c){return!QK(c)}))throw Error("ff");
H=_.q(H);for(var K=H.next();!K.done;K=H.next())FaX(d,K.value)};
FaX=function(d,H){for(var K in H)if(QK(H[K])){if(K in d&&!QK(d[K]))throw Error("gf");K in d||(d[K]={});FaX(d[K],H[K])}else if(ZbM(H[K])){if(K in d&&!ZbM(d[K]))throw Error("hf");K in d||(d[K]=[]);TpL(d[K],H[K])}else d[K]=H[K];return d};
TpL=function(d,H){H=_.q(H);for(var K=H.next();!K.done;K=H.next())K=K.value,QK(K)?d.push(FaX({},K)):ZbM(K)?d.push(TpL([],K)):d.push(K);return d};
QK=function(d){return typeof d==="object"&&!Array.isArray(d)};
ZbM=function(d){return typeof d==="object"&&Array.isArray(d)};
tqF=function(d){for(var H=_.q(Object.entries(QGF)),K=H.next();!K.done;K=H.next())if(K=_.q(K.value),K.next(),K=K.next().value,K==="SLI_STATUS_"+d)return K;return"SLI_STATUS_UNKNOWN"};
_.YK=function(d,H,K,c){return Y4E(d,H,function(){return new _.ObD(d,H,K,c)})};
_.S4E=function(){return _.YK("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
EFL=function(){return _.YK("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Oo=function(){return _.YK("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
y4Y=function(){return _.YK("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
bbF=function(){return _.YK("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
Np4=function(){return _.YK("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
A41=function(d){d&&(d.dataset?d.dataset[DYh()]="true":_.jE([_.KB(fRY)],d,"data-loaded","true".toString()))};
jGF=function(d){return d?d.dataset?d.dataset[DYh()]:d.getAttribute("data-loaded"):null};
DYh=function(){return vFX.loaded||(vFX.loaded="loaded".replace(/\-([a-z])/g,function(d,H){return H.toUpperCase()}))};
_.SM=function(d,H,K){ds4(d,H,K===void 0?null:K)};
_.$sE=function(d,H){d&&H&&(d=""+_.b1(H),(d=HTF[d])&&_.DkF(d))};
ds4=function(d,H,K){K=K===void 0?null:K;var c=_.Kqh(typeof d==="string"?d:d.toString()),p=document.getElementById(c),g=p&&jGF(p),a=p&&!g;g?H&&H():(H&&(g=_.G5(c,H),H=""+_.b1(H),HTF[H]=g),a||(p=cgM(d,c,function(){jGF(p)||(A41(p),_.fXY(c),_.a5(function(){_.jqF(c)},0))},K)))};
cgM=function(d,H,K,c){c=c===void 0?null:c;var p=_.x1("SCRIPT");p.id=H;p.onload=function(){K&&setTimeout(K,0)};
p.onreadystatechange=function(){switch(p.readyState){case "loaded":case "complete":p.onload()}};
c&&p.setAttribute("nonce",c);_.fc(p,typeof d==="string"?_.mc(d):d);d=document.getElementsByTagName("head")[0]||document.body;d.insertBefore(p,d.firstChild);return p};
_.Kqh=function(d){var H=document.createElement("a");_.TC(H,d);return"js-"+Eo(H.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
pU4=function(d){var H=_.Fm("INNERTUBE_HOST_OVERRIDE");H&&(d=String(H)+String(_.yK(d)));return d};
gqF=function(d){var H={};_.h("json_condensed_response")&&(H.prettyPrint="false");return d=RTM(d,H)};
_.bG=function(d){return df(d)?"same-origin":"include"};
_.NC=function(d){return df(d)?"same-origin":"cors"};
Dc=function(d,H,K){K=K===void 0?{}:K;d={method:H===void 0?"POST":H,mode:_.NC(d),credentials:_.bG(d)};H={};for(var c=_.q(Object.keys(K)),p=c.next();!p.done;p=c.next())p=p.value,K[p]&&(H[p]=K[p]);Object.keys(H).length>0&&(d.headers=H);return d};
_.fO=function(d,H){H=H===void 0?{}:H;return"service:"+d+"/"+Object.keys(H).sort().map(function(K){return K+":"+H[K]}).join("/")};
iT1=function(d){var H,K,c,p;d=(H=_.M(d,_.AP))==null?void 0:(K=H.watchEndpointSupportedOnesieConfig)==null?void 0:(c=K.html5PlaybackOnesieConfig)==null?void 0:(p=c.commonConfig)==null?void 0:p.url;if(!d)return[];H=new _.jM(d);return H.JSC$10002_domain_?["https://"+H.JSC$10002_domain_+"/generate_204"]:[]};
_.qvE=function(){return G8M()||mRh()||oqD&&sm("version/")?!0:_.Fm("EOM_VISITOR_DATA")?!1:!0};
ahY=function(d){var H=d.docid||d.video_id||d.videoId||d.id;if(H)return H;H=d.raw_player_response;H||(d=d.player_response)&&(H=JSON.parse(d));return H&&H.videoDetails&&H.videoDetails.videoId||null};
lhh=function(d){return d.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
v3=function(d){return!isNaN(Number(d))&&!_.oE(d)};
_.Hy=function(d,H,K,c){c=c===void 0?!0:c;var p=_.Fm("VALID_SESSION_TEMPDATA_DOMAINS",[]),g=_.jD(window.location.href);g&&p.push(g);g=_.jD(d);if(_.TL(p,g)||!g&&_.gh(d,"/"))if(p=document.createElement("a"),_.TC(p,d),d=p.href)if(d=_.yK(d),d=_.dV(d))c&&!H.csn&&(H.itct||H.ved)&&(H=Object.assign({csn:_.Fj()},H)),K?(K=parseInt(K,10),isFinite(K)&&K>0&&eal(d,H,K)):eal(d,H)};
xsM=function(d){var H=_.Fm("VALID_SESSION_TEMPDATA_DOMAINS",[]),K=_.jD(window.location.href);K&&H.push(K);K=_.jD(d);if(!(_.TL(H,K)||!K&&_.gh(d,"/")))return null;d=_.yK(d);(d=_.dV(d))?(d=k8f(d),d=(d=_.Vm.get(d,void 0)||null)?_.bU(d):{}):d=null;return d};
eal=function(d,H,K){d=k8f(d);H=H?_.nj(H):"";K=K||5;_.qvE()&&_.Um(d,H,K)};
k8f=function(d){for(var H=_.q(nqX),K=H.next();!K.done;K=H.next())d=_.$W(d,K.value);return"ST-"+Eo(d).toString(36)};
_.CS4=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("rf"));return d instanceof Promise?d:Promise.resolve()};
_.cy=function(d){var H;_.Fl1(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Ko()==d&&(H=document):H=d;if(H&&(d=_.Fl1(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],H))){d.call(H)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Ko=function(){var d=d===void 0?!1:d;var H=_.Fl1(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(d)for(;H&&H.shadowRoot;)H=H.shadowRoot.fullscreenElement;return H?H:null};
_.gV=function(d,H){H=H===void 0?!0:H;d.addEventListener("wheel",Rai);d.overscrollConfig={cooldown:H}};
_.i5=function(d){d.overscrollConfig=void 0;d.removeEventListener("wheel",Rai)};
Rai=function(d){var H=d.deltaY,K=d.target,c=null;if(window.Polymer&&window.Polymer.Element){if(K=d.path||d.composedPath&&d.composedPath()){K=_.q(K);for(var p=K.next();!p.done&&(p=p.value,!VLX(p,H));p=K.next())if(p.overscrollConfig){c=p;break}}}else for(;K&&!VLX(K,H);){if(K.overscrollConfig){c=K;break}K=K.parentElement}c&&(H=c.overscrollConfig,H.cooldown?(c=d.deltaY,K=H.lastDeltaY||0,H.lastDeltaY=c,p=H.lastStopped||0,K&&p&&K>0==c>0?Math.abs(K)>=Math.abs(c)?(c=p+1200,K=!1):(c=p+600,K=!0):(c=Date.now()+
600,K=!0),c>Date.now()&&(d.preventDefault(),K&&(H.lastStopped=Date.now()))):d.preventDefault())};
VLX=function(d,H){return H<0&&d.scrollTop>0||H>0&&d.scrollTop<d.scrollHeight-d.clientHeight-1?(d=getComputedStyle(d).overflowY,d=="auto"||d=="scroll"):!1};
_.GT=function(d,H,K,c){c||(c={bubbles:!0,cancelable:!1,composed:!0});K!==null&&K!==void 0&&(c.detail=K);var p=new CustomEvent(H,c);_.h("untrack_fire_custom_event_killswitch")?d.dispatchEvent(p):ij(function(){return void d.dispatchEvent(p)});
return p};
Usi=function(d){var H=window,K=function(c){H.removeEventListener("yt-navigate-start",K);return d.call(H,c)};
H.addEventListener("yt-navigate-start",K,void 0)};
_.oF=function(d,H,K,c){H=new ha5(H,!(c===void 0||!c),K);_.GT(d,"yt-action",H);return H.returnValue};
_.qo=function(d,H,K){return _.oF(d,H,K,!0)};
_.l5=function(d,H,K,c){H&&H.length&&H.forEach(function(p){var g=XIF(p);g&&(_.h("handle_service_request_actions")&&p.commandMetadata&&p.commandMetadata.webCommandMetadata&&p.commandMetadata.webCommandMetadata.sendPost?_.aF(K?K:d,[p]):_.qo(d,g,[p,K,c]))})};
_.aF=function(d,H){var K=[d];H&&K.push.apply(K,H);H=_.oF(d,"yt-service-request",K);return H.length>0&&(H=H[0],_.GT(d,"yt-service-request-sent",H),H&&H.ajaxPromise)?(H.ajaxPromise.then(function(c){_.GT(d,"yt-service-request-completed",c)},function(c){_.GT(d,"yt-service-request-error",{error:c,
params:K})},d),H.ajaxPromise):_.e5()};
_.xW=function(d,H){if(_.h("handle_service_request_actions"))_.l5(H,d,H);else{d=_.q(d);for(var K=d.next();!K.done;K=d.next()){K=K.value;var c=void 0;((c=_.M(K,_.kW))==null?0:c.commands)?_.xW(_.M(K,_.kW).commands,H):(c=void 0,((c=_.M(K,_.no))==null?0:c.actions)?_.xW(_.M(K,_.no).actions,H):(c=void 0,((c=_.M(K.commandMetadata,_.Co))==null?0:c.sendPost)?_.aF(H,[K]):_.l5(H,[K],H)))}}};
_.MLL=function(d,H,K){H=H===void 0?{}:H;typeof H==="function"&&(H={callback:H});K||H._c&&H._c.jsl&&H._c.jsl.h||_.rs.extend(H,{_c:{jsl:{h:_.Fm("GAPI_HINT_PARAMS")}}});(H.gapiHintOverride||_.Fm("GAPI_HINT_OVERRIDE"))&&(K=_.NM(document.location.href).gapi_jsh)&&_.rs.extend(H,{_c:{jsl:{h:K}}});LqE(d,H)};
_.Vz=function(d,H,K){H=H===void 0?{}:H;d=(d=d in RF?RF[d]:K)||"";K={};for(var c in H){K={key$jscomp$823:K.key$jscomp$823};K.key$jscomp$823=c;var p=function(g){return function(){return String(H[g.key$jscomp$823])}}(K);
d=d.replace(new RegExp("\\$\\{"+K.key$jscomp$823+"\\}","gi"),p);d=d.replace(new RegExp("\\$"+K.key$jscomp$823,"gi"),p)}return d};
_.Ua=function(d,H){return msF(d in RF?RF[d]:{},H)};
msF=function(d,H){var K=_.Fm("I18N_PLURAL_RULES");K||(K=function(c){return c==1?"one":"other"});
return(d=d["case"+H]||d[K(H)])?d.replace("#",H.toString()):H+""};
uHX=function(d){var H=wUX(d),K=document.getElementById(H),c=K&&jGF(K);c||K&&!c||(K=PSY(d,H,function(){if(!jGF(K)){A41(K);_.fXY(H);var p=_.hO(_.jqF,H);_.a5(p,0)}}))};
PSY=function(d,H,K){var c=document.createElement("link");c.id=H;c.onload=function(){K&&setTimeout(K,0)};
d=_.mc(d);_.ve(c,d,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(c);return c};
wUX=function(d){var H=_.x1("A");_.TC(H,Pe(d));return"css-"+Eo(H.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.rgl=function(d){var H=Ihi();d!==H&&(H=_.Lo(),!_.h("web_autonav_allow_off_by_default")&&d||_.Mo(0,141,!0),_.Mo(0,140,!d),H.save())};
Ihi=function(){var d=_.Lo();return _.h("web_autonav_allow_off_by_default")&&!d.getFlag(141)&&_.Fm("AUTONAV_OFF_BY_DEFAULT")?!1:!d.getFlag(140)};
Wq1=function(d,H){var K,c;d=((K=d.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(c=K.videoAuthorizationToken)==null?void 0:c.credentialTransferTokens)||[];for(K=0;K<d.length;++K)if(d[K].scope===H)return d[K].token||void 0};
Baf=function(d){for(var H=0,K=0;K<d.length;K++)H=H*31+d.charCodeAt(K),K<d.length-1&&(H%=0x800000000000);return H%1E5};
_.mW=function(d){return _.OS("ytcsi."+(d||"")+"data_")||zaC(d)};
_.XUi=function(d){d=_.mW(d);d.metadata||(d.metadata={});return d.metadata};
_.Jg5=function(d){d=_.mW(d);d.tick||(d.tick={});return d.tick};
_.wV=function(d){d=_.mW(d);if(d.gel){var H=d.gel;H.gelInfos||(H.gelInfos={});H.gelTicks||(H.gelTicks={})}else d.gel={gelTicks:{},gelInfos:{}};return d.gel};
_.sbh=function(d){d=_.wV(d);d.gelInfos||(d.gelInfos={});return d.gelInfos};
FqX=function(d){var H=_.mW(d).nonce;H||(H=Xj(16),_.mW(d).nonce=H);return H};
zaC=function(d){var H={tick:{},info:{}};_.vb("ytcsi."+(d||"")+"data_",H);return H};
ZTl=function(){var d=_.OS("ytcsi.debug");d||(d=[],_.vb("ytcsi.debug",d),_.vb("ytcsi.reference",{}));return d};
_.Py=function(d){d=d||"";var H=Ta1();if(H[d])return H[d];var K=ZTl(),c={timerName:d,info:{},tick:{},span:{},jspbInfo:[]};K.push(c);return H[d]=c};
Qb5=function(d){d=d||"";var H=Ta1();H[d]&&delete H[d];var K=ZTl(),c={timerName:d,info:{},tick:{},span:{},jspbInfo:[]};K.push(c);H[d]=c};
Ta1=function(){var d=_.OS("ytcsi.reference");if(d)return d;ZTl();return _.OS("ytcsi.reference")};
_.YvF=function(d){return tL1[d]||"LATENCY_ACTION_UNKNOWN"};
yg5=function(d,H,K){K=K===void 0?{}:K;var c=!1;_.Qx("ytLoggingEventsDefaultDisabled",!1)&&(c=!0);c=c?null:rz;K=K===void 0?{}:K;var p=Math.round(K.timestamp||(0,_.$G)());_.Ln(H,1,p<Number.MAX_SAFE_INTEGER?p:0);p=new OTL;if(K.lact)_.Ln(p,1,isFinite(K.lact)?K.lact:-1);else if(K.timestamp)_.Ln(p,1,-1);else{var g=_.cd();_.Ln(p,1,isFinite(g)?g:-1)}if(K.sequenceGroup&&!_.h("web_gel_sequence_info_killswitch")){g=K.sequenceGroup;var a=ifE(g),e=new SvF;_.Ln(e,2,a);_.UY(e,1,g);_.eE(p,3,e);K.endOfSequence&&delete EqM[K.sequenceGroup]}_.eE(H,
33,p);(K.sendIsolatedPayload?kvX:xcL)(d,{endpoint:"log_event",payload:H,cttAuthInfo:K.cttAuthInfo,dangerousLogToVisitorSession:K.dangerousLogToVisitorSession},c)};
_.IF=function(){return(_.h("csi_use_time_origin")||_.h("csi_use_time_origin_tvhtml5"))&&_.u5.timeOrigin?Math.floor(_.u5.timeOrigin):_.u5.timing.navigationStart};
_.bT5=function(d,H){_.rV("_start",d,H)};
_.Wy=function(d,H){if(!_.h("web_csi_action_sampling_enabled")||!_.mW(H).actionDisabled){var K=_.Py(H||"");_.tP(K.info,d);d.loadType&&(K=d.loadType,_.XUi(H).loadType=K);_.tP(_.sbh(H),d);K=FqX(H);H=_.mW(H).cttAuthInfo;NaL().info(d,K,H)}};
Ds4=function(){var d,H,K,c;return((c=_.Kj().resolve(_.$p(wz))==null?void 0:(d=Pd())==null?void 0:(H=d.loggingHotConfig)==null?void 0:(K=H.csiConfig)==null?void 0:K.debugTicks)!=null?c:[]).map(function(p){return Object.values(p)[0]})};
_.rV=function(d,H,K){if(!_.h("web_csi_action_sampling_enabled")||!_.mW(K).actionDisabled){var c=FqX(K),p;if(p=_.h("web_csi_debug_sample_enabled")&&c){(_.Kj().resolve(_.$p(wz))==null?0:Pd())&&!fhF&&(fhF=!0,_.rV("gcfl",(0,_.$G)(),K));var g,a,e;p=(_.Kj().resolve(_.$p(wz))==null?void 0:(g=Pd())==null?void 0:(a=g.loggingHotConfig)==null?void 0:(e=a.csiConfig)==null?void 0:e.debugSampleWeight)||0;if(g=p!==0)b:{g=Ds4();if(g.length>0)for(a=0;a<g.length;a++)if(d===g[a]){g=!0;break b}g=!1}g?(p=Baf(c)%p!==0,
_.mW(K).debugTicksExcludedLogged||(g={},g.debugTicksExcluded=p,_.Wy(g,K)),_.mW(K).debugTicksExcludedLogged=!0):p=!1}if(!p){d[0]!=="_"&&AgE(d,K,H);p=_.Py(K||"");p.tick[d]=H||(0,_.$G)();if(p.callback&&p.callback[d])for(p=_.q(p.callback[d]),g=p.next();!g.done;g=p.next())g=g.value,g();p=_.wV(K);p.gelTicks&&(p.gelTicks[d]=!0);g=_.Jg5(K);p=H||(0,_.$G)();_.h("log_repeated_ytcsi_ticks")?d in g||(g[d]=p):g[d]=p;g=_.mW(K).cttAuthInfo;d==="_start"?NaL().baseline(c,H,g):NaL().tick(d,c,H,g);_.jbY(K);return p}}};
AgE=function(d,H,K){if(_.u5.mark)if(d.startsWith("mark_")||(d="mark_"+d),H&&(d+=" ("+H+")"),K===void 0||_.h("web_csi_disable_alt_time_performance_mark"))_.u5.mark(d);else{K=_.h("csi_use_performance_navigation_timing")?K-_.u5.timeOrigin:K-(_.u5.timeOrigin||_.u5.timing.navigationStart);try{_.u5.mark(d,{startTime:K})}catch(c){}}};
vqF=function(){var d,H=(d=_.u5.getEntriesByType)==null?void 0:d.call(_.u5,"mark");H&&H.forEach(function(K){if(K.name.startsWith("mark_")){var c;(c=_.u5.clearMarks)==null||c.call(_.u5,K.name)}})};
_.dAM=function(){switch(sql()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.HNF=function(d){var H={},K=function(g,a,e){a=a.match("_rid")?a.split("_rid")[0]:a;typeof e==="number"&&(e=JSON.stringify(e));g.requestIds?g.requestIds.push({endpoint:a,id:e}):g.requestIds=[{endpoint:a,id:e}]};
d=_.q(Object.entries(d));for(var c=d.next();!c.done;c=d.next()){var p=_.q(c.value);c=p.next().value;p=p.next().value;switch(c){case "GetBrowse_rid":K(H,c,p);break;case "GetGuide_rid":K(H,c,p);break;case "GetHome_rid":K(H,c,p);break;case "GetPlayer_rid":K(H,c,p);break;case "GetSearch_rid":K(H,c,p);break;case "GetSettings_rid":K(H,c,p);break;case "GetTrending_rid":K(H,c,p);break;case "GetWatchNext_rid":K(H,c,p);break;case "yt_red":H.isRedSubscriber=!!p;break;case "yt_ad":H.isMonetized=!!p}}return H};
KmD=function(d,H,K,c,p,g){if(!_.h("web_csi_action_sampling_enabled")||!_.mW(g).actionDisabled){var a=_.wV(g);if(a.gelSpans)a.gelSpans[d]=!0;else{var e={};a.gelSpans=(e[d]=!0,e)}$AF++;d={spanName:d,spanLengthUsec:String(Math.round(H*1E3)),spanNonce:$AF};c&&(d.spanInfo=c);p&&(d.parentSpanNonce=p);K&&(d.spanStartTimeUsec=String(Math.round(K*1E3)));_.Py(g||"").span[String(d.spanName)]=d;K=_.wV(g);K.gelSpans||(K.gelSpans={});_.tP(K.gelSpans,d);K=FqX(g);g=_.mW(g).cttAuthInfo;NaL().span(d,K,g);return d.spanNonce}};
_.cQM=function(d){var H=_.By("aft",d);if(H)return H;H=_.Fm((d||"")+"TIMING_AFT_KEYS",["ol"]);for(var K=H.length,c=0;c<K;c++){var p=_.By(H[c],d);if(p)return p}return NaN};
_.pZ5=function(d,H){_.vb("ytglobal.timing"+(H||"")+"ready_",d)};
_.By=function(d,H){if(d=_.Jg5(H)[d])return typeof d==="number"?d:d[d.length-1]};
_.jbY=function(d){var H=_.By("_start",d),K=_.cQM(d),c=!gZh;H&&K&&c&&(ofi(iN1,new GS5(Math.round(K-H),d)),gZh=!0)};
qhi=function(d){zaC(d);oZM();vqF();d||(_.Fm("TIMING_ACTION")&&_.sS("PREVIOUS_ACTION",_.Fm("TIMING_ACTION")),_.sS("TIMING_ACTION",""))};
_.avF=function(d){d=d===void 0?{}:d;_.Y2(function(){zT();Qb5();qhi();_.pZ5(!1);d.cttAuthInfo&&(_.mW().cttAuthInfo=d.cttAuthInfo);_.sS("TIMING_AFT_KEYS",[]);d.isHot?_.Xw({loadType:"hot"}):_.Xw({loadType:"warm"});_.sS("TIMING_ACTION","");delete _.Fm("TIMING_INFO",{}).yt_lt;_.Y2(_.bT5)(d.startTime,void 0)})()};
_.sa=function(d,H,K,c){H=H===void 0?{}:H;_.Y2(function(){var p=K?K:d;JO(p);var g=H.sampleRate;if(!_.h("web_csi_action_sampling_enabled")||g===void 0||g<=1)g=!1;else{var a=FqX(p);g=Baf(a)%g!==0}g&&(_.mW(p).actionDisabled=!0);_.Py(p||"").info.actionType=d;H.cttAuthInfo&&(_.mW(p).cttAuthInfo=H.cttAuthInfo);_.sS(p+"TIMING_ACTION",d);_.Y2(_.bT5)(H.startTime,p);g={actionType:c||_.YvF(d)};H.logPreviousAction&&(g.previousAction=_.YvF(_.Fm("TIMING_ACTION")));(a=_.Fj())&&a!=="UNDEFINED_CSN"&&(g.clientScreenNonce=
a);_.Xw(g,p);_.pZ5(!0,p)})()};
JO=function(d){_.Y2(function(){zT(d);Qb5(d);qhi(d)})()};
lv5=function(){_.Y2(function(){var d=[],H;for(H in _.OS("ytcsi.".slice(0,-1)))H.endsWith("data_")&&d.push(H.slice(0,-5));d=_.q(d);for(H=d.next();!H.done;H=d.next())JO(H.value);zT()})()};
_.kS4=function(d){return _.Y2(function(){return _.eeE("_start",d)})()};
_.Xw=function(d,H,K){_.Y2(_.Wy)(d,H,K===void 0?!1:K)};
_.Fw=function(d,H,K){return _.Y2(_.rV)(d,H,K)};
_.eeE=function(d,H){return _.Y2(function(){var K=_.Jg5(H);return d in K})()};
nZM=function(d){if(!_.h("universal_csi_network_ticks"))return"";d=_.kp(d)||"";for(var H=Object.keys(xAC),K=0;K<H.length;K++){var c=H[K];if(d.includes(c))return c}return""};
ReM=function(d){if(!_.h("universal_csi_network_ticks"))return function(){};
var H=xAC[d];return H?(_.Zi(H),function(){var K=_.h("universal_csi_network_ticks")?(K=ChD[d])?_.Zi(K):!1:!1;return K}):function(){}};
_.Zi=function(d,H,K){return _.Y2(function(){if(_.eeE(d,K))return!1;_.Fw(d,H,K);return!0})()};
_.TT=function(d,H,K){_.Y2(function(){if(!_.kS4(K)||_.eeE(d,K))return!1;_.Fw(d,H,K);return!0})()};
_.Qz=function(d){return _.Y2(_.By)(d,void 0)};
zT=function(d){_.kS4(d)&&_.Fw("aa",void 0,d)};
_.M0D=function(d,H,K,c,p,g,a,e,k){var C=V0l();e=new JP({veType:H,youtubeData:g,jspbYoutubeData:e});g=tO({},C);p&&(g.cttAuthInfo=p);p={csn:C,pageVe:e.getAsJson()};_.h("expectation_logging")&&k&&k.screenCreatedLoggingExpectations&&(p.screenCreatedLoggingExpectations=k.screenCreatedLoggingExpectations);K&&K.visualElement?(p.implicitGesture={parentCsn:K.clientScreenNonce,gesturedVe:K.visualElement.getAsJson()},a&&(p.implicitGesture.gestureType=a)):K&&_.Jf(new _.m1("newScreen() parent element does not have a VE - rootVe",
H));c&&(p.cloneCsn=c);d?IJ("screenCreated",p,d,g):_.Wd("screenCreated",p,g);ofi(nf1,new UAM(C));YW.clear();heE.clear();LmX.clear();return C};
Oa=function(d,H,K,c,p,g){g=g===void 0?{}:g;mAi(d,H,K,[c],p===void 0?!1:p,g)};
mAi=function(d,H,K,c,p,g){p=p===void 0?!1:p;g=g===void 0?{}:g;Object.assign(g,tO({cttAuthInfo:Zc(H)||void 0},H));for(var a=_.q(c),e=a.next();!e.done;e=a.next()){e=e.value;var k=e.getAsJson();(_.rs.isEmpty(k)||!k.trackingParams&&!k.veType)&&_.Jf(Error("sf"));if(_.h("no_client_ve_attach_unless_shown")){var C=wZE(e,H);if(k.veType&&!heE.has(C)&&!LmX.has(C)&&!p){if(!_.h("il_attach_cache_limit")||YW.size<1E3){YW.set(C,[d,H,K,e]);return}_.h("il_attach_cache_limit")&&YW.size>1E3&&_.Jf(new _.m1("IL Attach cache exceeded limit"))}e=
wZE(K,H);YW.has(e)?Ph4(K,H):LmX.set(e,!0)}}c=c.filter(function(R){R.csn!==H?(R.csn=H,R=!0):R=!1;return R});
K={csn:H,parentVe:K.getAsJson(),childVes:_.Wf(c,function(R){return R.getAsJson()})};
H==="UNDEFINED_CSN"?S5("visualElementAttached",g,K):d?IJ("visualElementAttached",K,d,g):_.Wd("visualElementAttached",K,g)};
IvM=function(d,H,K,c,p){usi(d,H,K,p)};
usi=function(d,H,K,c){rQl(K,H);var p=tO({cttAuthInfo:Zc(H)||void 0},H);K={csn:H,ve:K.getAsJson(),eventType:1};c&&(K.clientData=c);H==="UNDEFINED_CSN"?S5("visualElementShown",p,K):d?IJ("visualElementShown",K,d,p):_.Wd("visualElementShown",K,p)};
Wmi=function(d,H,K,c){rQl(K,H);var p=tO({cttAuthInfo:Zc(H)||void 0},H);K={csn:H,ve:K.getAsJson(),eventType:4};c&&(K.clientData=c);H==="UNDEFINED_CSN"?S5("visualElementShown",p,K):d?IJ("visualElementShown",K,d,p):_.Wd("visualElementShown",K,p)};
Bih=function(d,H,K,c,p){var g=(c=c===void 0?!1:c)?16:8;c=tO({cttAuthInfo:Zc(H)||void 0,endOfSequence:c},H);K={csn:H,ve:K.getAsJson(),eventType:g};p&&(K.clientData=p);H==="UNDEFINED_CSN"?S5("visualElementHidden",c,K):d?IJ("visualElementHidden",K,d,c):_.Wd("visualElementHidden",K,c)};
XZ1=function(d,H,K,c,p){ze1(d,H,K,void 0,c,p)};
ze1=function(d,H,K,c,p){rQl(K,H);c=c||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var g=tO({cttAuthInfo:Zc(H)||void 0},H);K={csn:H,ve:K.getAsJson(),gestureType:c};p&&(K.clientData=p);H==="UNDEFINED_CSN"?S5("visualElementGestured",g,K):d?IJ("visualElementGestured",K,d,g):_.Wd("visualElementGestured",K,g)};
JQD=function(d,H,K,c){var p=tO({cttAuthInfo:Zc(H)||void 0},H);K={csn:H,ve:K.getAsJson(),clientData:c};H==="UNDEFINED_CSN"?S5("visualElementStateChanged",p,K):d?IJ("visualElementStateChanged",K,d,p):_.Wd("visualElementStateChanged",K,p)};
shF=function(){var d=La1(16);for(var H=[],K=0;K<d.length;K++)H.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(d[K]&63));return H.join("")};
S5=function(d,H,K){Fmi.push({payloadName:d,payload:K,jspbPayload:void 0,options:H});ZNl||(ZNl=RZM())};
xrF=function(d){if(Fmi){for(var H=_.q(Fmi),K=H.next();!K.done;K=H.next())K=K.value,K.payload&&(K.payload.csn=d.csn,_.Wd(K.payloadName,K.payload,K.options));Fmi.length=0}ZNl=0};
wZE=function(d,H){return""+d.getAsJson().veType+d.getAsJson().veCounter+H};
rQl=function(d,H){if(_.h("no_client_ve_attach_unless_shown")){var K=wZE(d,H);heE.set(K,!0);Ph4(d,H)}};
Ph4=function(d,H){d=wZE(d,H);YW.has(d)&&(H=YW.get(d)||[],Oa(H[0],H[1],H[2],H[3],!0),YW.delete(d))};
tO=function(d,H){_.h("log_sequence_info_on_gel_web")&&(d.sequenceGroup=H);return d};
_.Ea=function(d,H,K){_.Y2(Oa)(void 0,d,H,K)};
_.yz=function(d,H,K){_.Y2(mAi)(void 0,d,H,K)};
_.b5=function(d,H){_.Y2(IvM)(void 0,d,H,void 0,void 0,void 0)};
_.No=function(d,H,K){_.Y2(function(){_.yx(H,function(c){Wmi(void 0,d,c,K)})})()};
_.Di=function(d,H,K,c){_.Y2(function(){_.yx(H,function(p){Bih(void 0,d,p,K,c)})})()};
_.fo=function(d,H,K){_.Y2(XZ1)(void 0,d,H,K,void 0)};
_.AO=function(d,H,K,c){_.Y2(ze1)(void 0,d,H,K,c,void 0)};
_.j5=function(d,H,K){_.Y2(JQD)(void 0,d,H,K,void 0)};
TiY=function(d,H){vy.set(d,H)};
Qh5=function(d){return d0?d0.enabledSpans?!!d0.enabledSpans[d]:!0:!1};
t0i=function(d){if(!d0)throw Error("vf");d0.processors.push(d)};
Yhf=function(d){var H;return{id:d.id,traceId:d.traceId,sessionId:d.sessionId,name:d.name,attributes:d.attributes,startTime:d.startTime,endTime:d.endTime,status:d.status,parentId:(H=d.parent)==null?void 0:H.id}};
ONl=function(d,H){if(d){H=H===void 0?1:H;if(d&&(d.endTime=(0,_.$G)(),H&&(d.status=H),H=d0)){H=_.q(H.processors);for(var K=H.next();!K.done;K=H.next()){var c=void 0,p=void 0;(p=(c=K.value).onSpanEnd)==null||p.call(c,d)}}if(H=d0){d!==H.activeSpan&&_.Jf(Error("wf`"+d.name));var g;H.activeSpan=(g=H.activeSpan)==null?void 0:g.parent}}};
Shl=function(d,H,K){var c;if((c=d0)&&Qh5(d)){var p=c.nextSpanId++,g=c.activeSpan;d={id:p,parent:g,name:d,attributes:H,traceId:g?g.traceId:p,sessionId:c.sessionId,startTime:(0,_.$G)(),status:0};if(c.activeSpan){var a;(a=c.activeSpan).children||(a.children=[]);c.activeSpan.children.push(d)}c=_.q(c.processors);for(a=c.next();!a.done;a=c.next())p=H=void 0,(p=(H=a.value).onSpanStart)==null||p.call(H,d);c=d}else c=void 0;d=d0;c=c&&d?d.activeSpan=c:void 0;if(!c)return K();try{var e=K(c);ONl(c);return e}catch(k){throw ONl(c,
2),k;}};
EZ4=function(){};
yQD=function(d,H){var K=Object.keys(d);d=new _.m1("[Command Handler] "+H,{filteredCommandNames:K,originalCommand:d});_.z5(d)};
bNl=function(d,H){yQD(d,H+" was called but not set")};
Nii=function(d){return function(){return new d}};
HW=function(d){return function(){return _.Kj().resolve(d)}};
DAD=function(d,H){var K=_.M(d,_.Yr);if(K&&(K=H[K.signal]))return K();d=_.q(Object.keys(d));for(K=d.next();!K.done;K=d.next())if(K=K.value,H[K]&&(K=H[K]))return K()};
_.$L=function(d,H,K,c){return{browseEndpoint:{browseId:d},commandMetadata:{webCommandMetadata:{url:H,rootVe:K,webPageType:c===void 0?"WEB_PAGE_TYPE_BROWSE":c}}}};
fvC=function(d,H,K){var c=H=H===void 0?0:H;K=K===void 0?0:K;var p=K-c;return _.KH(d,"PPSV",void 0,void 0,(p>600?0:p<60||K<=0||c/K>.9)?0:H)};
_.KH=function(d,H,K,c,p){var g="/watch?v="+d;d={videoId:d};H&&(d.playlistId=H,g+="&list="+H);c&&(g+="&pp="+c);p&&(d.startTimeSeconds=p,g+="&t="+p+"s");H={watchEndpoint:d,commandMetadata:{webCommandMetadata:{url:g,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};K&&(H.clickTrackingParams=K);c&&(_.M(H,_.AP).playerParams=c);return H};
AQC=function(d){return{browseEndpoint:{browseId:"VL"+d},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+d,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
jhX=function(d){if(d){var H;if(d){var K=(H=_.M(d.commandMetadata,_.Co))==null?void 0:H.url;H=!(!K||K==="/service_ajax")}else H=!1;if(H)return d;var c;if(d=(c=_.M(d,_.kW))==null?void 0:c.commands)for(c=_.q(d),d=c.next();!d.done;d=c.next())if(d=jhX(d.value))return d}};
_.cW=function(d){return{runs:[{text:d}]}};
vZX=function(d,H){return d&&H?{runs:[{text:d,navigationEndpoint:H}]}:void 0};
pH=function(d){return d?_.cW(d):void 0};
_.g0=function(d){return d?{simpleText:d}:void 0};
_.iZ=function(d){var H=d.type;d=d.payload;H={type:H};d!==void 0&&(H.payload=d);return H};
dqF=function(d,H,K){for(var c=Object.assign({},d),p=_.q(Object.keys(H)),g=p.next();!g.done;g=p.next()){g=g.value;var a=d[g],e=H[g];if(e===void 0)delete c[g];else if(a===void 0)c[g]=e;else if(Array.isArray(e)&&Array.isArray(a))c[g]=K?[].concat(_.ru(a),_.ru(e)):e;else if(!Array.isArray(e)&&_.y4(e)&&!Array.isArray(a)&&_.y4(a))c[g]=dqF(a,e,K);else if(typeof e===typeof a)c[g]=e;else return H=new _.m1("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:g,originalValue:a,updateValue:e}),
_.z5(H),d}return c};
K_Y=function(d){if(!d.length)return"";try{if(Ha1)return Ha1.decode(d);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(d)}catch(a){}for(var H=0,K=[],c=d.length;H<c;){for(var p=0;p<1024&&H<c;){var g=d[H++];if(g<128)$ql[p++]=g;else{if(g<224)g=(g&31)<<6|d[H++]&63;else if(g<240)g=(g&15)<<12|(d[H++]&63)<<6|d[H++]&63;else{if(p+1===1024){--H;break}g=(g&7)<<18|(d[H++]&63)<<12|(d[H++]&63)<<6|d[H++]&63;g-=65536;$ql[p++]=55296|g>>10;g=56320|g&1023}$ql[p++]=g}}g=String.fromCharCode.apply(String,
$ql);p<1024&&(g=g.substring(0,p));K.push(g)}return K.join("")};
p4C=function(d,H){var K;if((K=csh)==null?0:K.encodeInto)return H=csh.encodeInto(d,H),H.read<d.length?d.length*4:H.written;for(var c=K=0;c<d.length;c++){var p=d.charCodeAt(c);p<128?H[K++]=p:(p<2048?H[K++]=p>>6|192:((p&64512)===55296&&c+1<d.length&&(d.charCodeAt(c+1)&64512)===56320?(p=65536+((p&1023)<<10)+(d.charCodeAt(++c)&1023),H[K++]=p>>18|240,H[K++]=p>>12&63|128):H[K++]=p>>12|224,H[K++]=p>>6&63|128),H[K++]=p&63|128)}return K};
g44=function(d,H,K){if(H&&K&&K.buffer===H.exports.memory.buffer){var c=H.realloc(K.byteOffset,d);if(c)return new Uint8Array(H.exports.memory.buffer,c,d)}d=H?new Uint8Array(H.exports.memory.buffer,H.malloc(d),d):new Uint8Array(d);K&&d.set(K);return d};
_.a6=function(d){d=new iah(new GzM([_.fF(decodeURIComponent(d))]));if(o4i(d,2)){var H=qR(d);var K=d.pos;var c=d.arrayView;K=K===void 0?0:K;var p=H===void 0?-1:H;K=K===void 0?0:K;p=p===void 0?-1:p;if(c.totalLength&&p){p<0&&(p=c.totalLength-K);c.focus(K);if(!(K-c.arrayPos+p<=c.arrays[c.arrayIdx].length)){var g=c.arrayIdx,a=c.arrayPos;c.focus(K+p-1);a=new Uint8Array(c.arrayPos+c.arrays[c.arrayIdx].length-a);for(var e=0,k=g;k<=c.arrayIdx;k++)a.set(c.arrays[k],e),e+=c.arrays[k].length;c.arrays.splice(g,
c.arrayIdx-g+1,a);c.arrayIdx=0;c.arrayPos=0;c.focus(K)}g=c.arrays[c.arrayIdx];c=new DataView(g.buffer,g.byteOffset+K-c.arrayPos,p)}else c=new DataView(new ArrayBuffer(0));c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength);d.pos+=H;H=c}else H=void 0;H=H?K_Y(H):void 0;d=o4i(d,4)?qR(d):void 0;c=qVF[d];if(typeof c==="undefined")throw d=new _.m1("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:d}),_.z5(d),d;return{entityTypeFieldNumber:d,entityType:c,entityId:H}};
_.kL=function(d,H,K){K=K===void 0?0:K;var c=new agY;if(csh)d=csh.encode(d);else{var p=new Uint8Array(Math.ceil(d.length*1.2)),g=p4C(d,p);p.length<g&&(p=new Uint8Array(g),g=p4C(d,p));p.length>g&&(p=p.subarray(0,g));d=p}d!==void 0&&(lZ(c,18),p=d.length,lZ(c,p),eG(c,p),c.buf.set(d,c.pos),c.pos+=p);d=lgL[H];if(typeof d==="undefined")throw K=new _.m1("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:H}),_.z5(K),K;d!==void 0&&(lZ(c,32),lZ(c,d));lZ(c,40);lZ(c,1);H=new Uint8Array(c.buf.buffer,
c.buf.byteOffset,c.pos);return encodeURIComponent(_.mb(H,K))};
eS4=function(d){d=d.key||d.id;if(!d)throw Error("yf");return d};
xqC=function(d,H){d=d===void 0?{}:d;return kzC(d,H)};
n4F=function(d,H,K,c){if(c===void 0)return c=Object.assign({},d[H]||{}),K=(delete c[K],c),c={},Object.assign({},d,(c[H]=K,c));var p={},g={};return Object.assign({},d,(g[H]=Object.assign({},d[H],(p[K]=c,p)),g))};
C$5=function(d,H,K,c,p){var g=d[H];if(g==null||!g[K])return d;c=dqF(g[K],c,p==="REPEATED_FIELDS_MERGE_OPTION_APPEND");p={};g={};return Object.assign({},d,(g[H]=Object.assign({},d[H],(p[K]=c,p)),g))};
_.xL=function(d,H,K){return d[H]?d[H][K]||null:null};
VKh=function(){if(RSE)return RSE();var d={};RSE=HM("PersistentEntityStoreDb",{objectStores:(d.EntityStore={addedAtVersion:1},d.EntityAssociationStore={addedAtVersion:2},d),shared:!1,upgrade:function(H,K){K(1)&&YG(t5(H,"EntityStore",{keyPath:"key"}),"entityType","entityType");K(2)&&(H=t5(H,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),YG(H,"byParentEntityKey","parentEntityKey"),YG(H,"byChildEntityKey","childEntityKey"))},
version:3});return RSE()};
UqC=function(d){return _.bT(VKh(),d)};
nH=function(d){return window.Int32Array?new Int32Array(d):Array(d)};
L_f=function(d){return _.bT(hSD(),d)};
MK4=function(d){return new CH("WRONG_DATA_TYPE",{encoderVersion:d})};
mqY=function(d){return d instanceof Error?new CH("UNKNOWN_ENCODE_ERROR",{originalMessage:d.message}):new CH("UNKNOWN_ENCODE_ERROR")};
w4h=function(d){return d instanceof Error?new CH("UNKNOWN_DECODE_ERROR",{originalMessage:d.message}):new CH("UNKNOWN_DECODE_ERROR")};
P$E=function(d,H){d=d instanceof CH?d:H(d);_.z5(d);throw d;};
u5F=function(d){d=(new TextEncoder).encode(d).subarray(0,16);var H=new Uint8Array(16);H.set(d);return H};
rs5=function(d){var H=IgD[d];if(H)return H;_.Jf(new _.m1("Entity model not found.",{entityType:d}))};
_.R6=function(){W_E||(W_E=BYf());return W_E};
BYf=function(){var d,H,K;return _.l(function(c){if(c.nextAddress==1)return _.e2(c,2),c.yield(_.dF(),4);if(c.nextAddress!=2){d=c.yieldResult;if(!d||!_.MQ()||typeof _.KF.BroadcastChannel==="undefined")return c.return();H=new zSY;return c.return(new VO(d,H))}K=_.RV(c);K instanceof Error&&_.z5(K);return c.return()})};
_.Uc=function(d,H){var K;return _.l(function(c){if(c.nextAddress==1){K=d.mutations;if(!K||K.length<=0)return c.return();H&&H.dispatch(_.iZ({type:"ENTITY_LOADED",payload:K}));return c.yield(X4F(K),2)}K.length=0;_.VE(c)})};
X4F=function(d){var H;return _.l(function(K){return K.nextAddress==1?K.yield(_.R6(),2):(H=K.yieldResult)?K.yield(_.hF(H,"readwrite",function(c){for(var p={},g=_.q(d),a=g.next(),e={};!a.done;e={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},a=g.next())e.mutation$jscomp$4=a.value,e.mutation$jscomp$4.entityKey&&Js4(e.mutation$jscomp$4)&&(e.mutationEntityType$jscomp$3=(0,_.rs.getAnyKey)(e.mutation$jscomp$4.payload),a=void 0,e.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(a=function(k){return function(){return _.seD(c,
k.mutation$jscomp$4.payload[k.mutationEntityType$jscomp$3],k.mutationEntityType$jscomp$3)}}(e)),e.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(a=function(k){return function(){return F_l(c,k.mutation$jscomp$4.entityKey)}}(e)),e.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(a=function(k){return function(){return Zah(c,k.mutation$jscomp$4.entityKey,k.mutation$jscomp$4.payload[k.mutationEntityType$jscomp$3],k.mutationEntityType$jscomp$3)}}(e)),a&&(p[e.mutation$jscomp$4.entityKey]=
p[e.mutation$jscomp$4.entityKey]?p[e.mutation$jscomp$4.entityKey].then(a):a()));
return Qm.all(Object.values(p))}),0):K.return()})};
Js4=function(d){var H;d=(H=d.options)==null?void 0:H.persistenceOption;return d==="ENTITY_PERSISTENCE_OPTION_PERSIST"||d==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
tKX=function(d,H){var K,c;_.l(function(p){if(p.nextAddress==1)return p.yield(_.R6(),2);if(p.nextAddress!=3)return(K=p.yieldResult)?p.yield(_.hF(K,"readonly",function(g){var a={},e=Object.keys(H).map(function(k){var C=H[k]?[].concat(_.ru(H[k])):[];return TYC(g,k,C,a)});
return Qm.all(e).then(function(){return a})}),3):p.return();
c=p.yieldResult;Object.keys(c).length>0&&d.dispatch(Qef(c));_.VE(p)})};
TYC=function(d,H,K,c){return LH(d,H,K).then(function(p){c[H]=YVi(K,p)})};
YVi=function(d,H){if(H.length!==d.length)throw Error("Bf");return H.reduce(function(K,c,p){K[d[p]]=c;return K},{})};
E4L=function(d){var H=d.filter(function(p){var g;return(p==null?void 0:(g=p.transferEntity)==null?void 0:g.transferState)==="TRANSFER_STATE_COMPLETE"}).length,K=d.filter(function(p){var g;
return(p==null?void 0:(g=p.transferEntity)==null?void 0:g.transferState)==="TRANSFER_STATE_FAILED"}).length,c=d.filter(function(p){var g;
return(p==null?void 0:(g=p.transferEntity)==null?void 0:g.transferState)&&OaF.includes(p.transferEntity.transferState)});
if(!(H||c!=null&&c.length))return 0;H=_.SVD(c)+H;d=d.length-K;return d===0?0:Math.round(H*100/d)/100};
_.SVD=function(d){var H=[];H=H.concat.apply(H,_.ru(d.filter(function(g){return g.streamEntity}).map(function(g){var a=Object.assign({},g.streamEntity),e,k=(e=g.transferEntity)==null?void 0:e.transferState;
a.streamsProgress=a.streamsProgress||[];a.streamsProgress=a.streamsProgress.map(function(C){var R=Object.assign({},C);R.numBytesDownloaded=k==="TRANSFER_STATE_COMPLETE"?C.numTotalBytes:C.numBytesDownloaded;return R});
return a}).map(function(g){return g.streamsProgress})));
var K=d=0;H=_.q(H);for(var c=H.next();!c.done;c=H.next()){var p=c.value;c=Number(p.numBytesDownloaded);p=Number(p.numTotalBytes);K+=isNaN(c)?0:c;d+=isNaN(p)?0:p}return d===0?0:Math.round(K*100/d)/100};
ys1=function(d){if(!d||!d.expirationTimestamp||!d.action)return!1;var H=(0,_.$G)()/1E3;return Number(d.expirationTimestamp)>=H};
MR=function(d){return d&&d.expirationTimestamp&&d.action?ys1(d)&&d.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.mE=function(d){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(d||"TRANSFER_STATE_UNKNOWN")};
bai=function(d){var H=new agY;if(d!==void 0){var K=Math.ceil(Math.log2(d.length*4+2)/7);K=K===void 0?2:K;lZ(H,10);H.submessagePosStack.push(H.pos);H.submessagePosStack.push(K);H.pos+=K;eG(H,d.length*1.2);K=p4C(d,H.buf.subarray(H.pos));H.pos+K>H.buf.length&&(eG(H,K),K=p4C(d,H.buf.subarray(H.pos)));H.pos+=K;d=H.submessagePosStack.pop();K=H.submessagePosStack.pop();for(var c=H.pos-K-d;d--;){var p=d?128:0;H.view.setUint8(K++,c&127|p);c>>=7}}H=new Uint8Array(H.buf.buffer,H.buf.byteOffset,H.pos);return(new TextDecoder("utf-8")).decode(H)};
_.w0=function(d){var H=0;d=_.q(d);for(var K=d.next(),c={};!K.done;c={transferState$jscomp$3:void 0},K=d.next()){var p=K.value,g=void 0;K=(g=p.streamEntity)!=null?g:{};g=void 0;c.transferState$jscomp$3=(g=p.transferEntity)==null?void 0:g.transferState;g=p=void 0;((p=K)==null?0:(g=p.streamsProgress)==null?0:g.length)&&K.streamsProgress.forEach(function(a){return function(e){e=Number(a.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?e.numTotalBytes:e.numBytesDownloaded);isFinite(e)&&(H+=e)}}(c))}return H};
NYY=function(d){return d.some(function(H){var K;if(!(H==null?0:(K=H.transferEntity)==null?0:K.transferState)){var c;return!(H==null?0:(c=H.policyEntity)==null?0:c.action)||H.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return OaF.includes(H.transferEntity.transferState)})};
DqE=function(d,H){if(!H)return!1;if(_.h("of_pb_en_po_ks"))return!0;var K;d=(K=_.xL(d,"offlineVideoPolicy",_.kL(H,"offlineVideoPolicy")))!=null?K:void 0;return!!d&&MR(d)};
_.Asl=function(d){var H=["TRANSFER_STATE_COMPLETE"];H=H===void 0?fgF:H;return d.filter(function(K){var c,p;return H.includes((p=(c=K.transferEntity)==null?void 0:c.transferState)!=null?p:"TRANSFER_STATE_UNKNOWN")})};
je1=function(d,H){if(H){var K,c=(K=_.xL(d,"playbackData",_.kL(H,"playbackData")))!=null?K:null,p;K=(p=_.xL(d,"transfer",_.kL(H,"transfer")))!=null?p:null;var g;p=(g=_.xL(d,"offlineVideoStreams",_.kL(H,"offlineVideoStreams")))!=null?g:null;var a;d=(a=_.xL(d,"offlineVideoPolicy",_.kL(H,"offlineVideoPolicy")))!=null?a:null;if(c||K||p||d)return{playbackDataEntity:c,transferEntity:K,streamEntity:p,policyEntity:d}}};
_.PW=function(d){var H=d.playbackData;if(!H)return[];var K=[];H=_.q(Object.keys(H));for(var c=H.next();!c.done;c=H.next()){var p=c.value;if(!v41(d,_.a6(p).entityId)&&(c=je1(d,_.a6(p).entityId))){var g=void 0,a=void 0;p=(a=Number((g=_.xL(d,"playbackData",p))==null?void 0:g.streamDownloadTimestampSeconds))!=null?a:(0,_.$G)();K.push({entity:c,streamDownloadTimestamp:p})}}return K.sort(function(e,k){var C=e.streamDownloadTimestamp,R=k.streamDownloadTimestamp;return R===C?e.entity.streamEntity&&!k.entity.streamEntity?
1:-1:R-C}).map(function(e){return e.entity})};
dwF=function(d){return _.Asl(_.PW(d))};
_.HUC=function(d){return _.PW(d).filter(function(H){var K;if(((K=H.policyEntity)==null?0:K.action)&&H.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var c;if((c=H.transferEntity)==null?0:c.transferState){var p;return OaF.includes((p=H.transferEntity)==null?void 0:p.transferState)}return!0})};
v41=function(d,H){var K;return((K=_.xL(d,"downloadStatusEntity",_.kL(H,"downloadStatusEntity")))==null?void 0:K.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
$w4=function(d){var H;if(d==null?0:(H=d.playbackDataEntity)==null?0:H.key)return _.a6(d.playbackDataEntity.key).entityId;var K;if(d==null?0:(K=d.transferEntity)==null?0:K.key)return _.a6(d.transferEntity.key).entityId;var c;if(d==null?0:(c=d.streamEntity)==null?0:c.key)return _.a6(d.streamEntity.key).entityId;var p;if(d==null?0:(p=d.policyEntity)==null?0:p.key)return _.a6(d.policyEntity.key).entityId};
cJF=function(d){var H=new Set,K;d=(K=d.mainDownloadsListEntity)==null?void 0:K[K2l];var c;if(!(d==null?0:(c=d.downloads)==null?0:c.length))return H;var p;d==null||(p=d.downloads)==null||p.forEach(function(g){(g==null?0:g.videoItem)&&H.add(g.videoItem)});
return H};
uZ=function(d,H){if(H){var K=_.xL(d,"mainVideoEntity",_.kL(H,"mainVideoEntity")),c=_.xL(d,"downloadStatusEntity",_.kL(H,"downloadStatusEntity")),p=_.xL(d,"ytMainChannelEntity",_.kL(H,"ytMainChannelEntity")),g={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};d=je1(d,H);c=(c==null?void 0:c.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.h("woffle_render_failed_download_state_ks")&&(c==null?void 0:c.downloadState)==="DOWNLOAD_STATE_FAILED";!d&&c&&(d=g);if(d&&K&&
p)return Object.assign({},{videoEntity:K,channelEntity:p},d)}};
gRL=function(d,H){return pxf(d,H)==="TRANSFER_STATE_COMPLETE"&&DqE(d,H)};
iUF=function(d,H){if(!H)return!1;var K;d=(K=_.xL(d,"playbackData",_.kL(H,"playbackData")))!=null?K:void 0;return!!d&&!!d.playerResponseJson};
pxf=function(d,H){if(!H)return"TRANSFER_STATE_UNKNOWN";var K=_.xL(d,"transfer",_.kL(H,"transfer"));if(K){var c;return(c=K.transferState)!=null?c:"TRANSFER_STATE_UNKNOWN"}K=_.xL(d,"offlineOrchestrationActionWrapperEntity",_.kL(H,"offlineOrchestrationActionWrapperEntity"));d=_.xL(d,"mainVideoEntity",_.kL(H,"mainVideoEntity"));return K||d?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
GFE=function(d,H){if(!H)return"TRANSFER_STATE_UNKNOWN";if(d=_.xL(d,"transfer",_.kL(H,"transfer"))){var K;return(K=d.transferState)!=null?K:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
oRF=function(d,H){return H&&(d=_.xL(d,"videoPlaybackPositionEntity",_.kL(H,"videoPlaybackPositionEntity")),d==null?0:d.lastPlaybackPositionSeconds)?Number(d.lastPlaybackPositionSeconds):0};
aE5=function(d,H){return qTi(d).some(function(K){var c;return(K==null?void 0:(c=K.mainPlaylistEntity)==null?void 0:c.playlistId)===H})};
etY=function(d,H,K){var c=lEL(d,H);if(!c.length)return[];H=[];c=_.q(c);for(var p=c.next();!p.done;p=c.next()){p=p.value;var g=uZ(d,p);K&&pxf(d,p)!=="TRANSFER_STATE_COMPLETE"||g&&H.push(g)}return H};
lEL=function(d,H){if(!H)return[];var K=_.kL(H,"mainPlaylistEntity"),c;H=(c=d.mainPlaylistEntity)==null?void 0:c[K];c=[];if(H==null||!H.videos)return c;H=_.q(H.videos);for(K=H.next();!K.done;K=H.next()){K=K.value;var p=void 0,g=void 0,a=void 0,e=(p=d)==null?void 0:(g=p.mainPlaylistVideoEntity)==null?void 0:(a=g[K])==null?void 0:a.video;e&&(K=_.a6(e).entityId)&&c.push(K)}return c};
kF5=function(d,H){if(H){var K=_.xL(d,"mainPlaylistEntity",_.kL(H,"mainPlaylistEntity")),c=_.xL(d,"mainPlaylistDownloadStateEntity",_.kL(H,"mainPlaylistDownloadStateEntity"));d=_.xL(d,"ytMainChannelEntity",_.kL(H,"ytMainChannelEntity"));if(c&&K)return Object.assign({},{mainPlaylistEntity:K,mainPlaylistDownloadStateEntity:c},!!d&&{channelEntity:d})}};
qTi=function(d){return xwY(d).sort(function(H,K){return K.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return H.downloadedPlaylistEntities})};
xwY=function(d){var H=d.mainPlaylistDownloadStateEntity,K=[];if(!H)return K;for(var c=_.q(Object.keys(H)),p=c.next();!p.done;p=c.next()){var g=p.value;p=kF5(d,_.a6(g).entityId);var a=void 0;g=Number((a=H[g])==null?void 0:a.addedTimestampMillis);a=isNaN(g)?(0,_.$G)():g;p!==void 0&&K.push({downloadedPlaylistEntities:p,addedTimestampMillis:a})}return K};
nRF=function(d){var H,K=(H=d.mainPlaylistVideoEntity)!=null?H:{};return new Set(qTi(d).reduce(function(c,p){c=c===void 0?[]:c;var g,a;p==null||(g=p.mainPlaylistEntity)==null||(a=g.videos)==null||a.forEach(function(e){var k;(e=(k=K[e])==null?void 0:k.video)&&c.push(e)});
return c},[]))};
Cd4=function(d){return"downloadedMusicPlaylistEntities"in d};
RtM=function(d){return"mainPlaylistEntity"in d&&"mainPlaylistDownloadStateEntity"in d};
VcD=function(d){return"videoEntity"in d&&"channelEntity"in d};
UwL=function(d){var H=d.musicPlaylistDownloadMetadataEntity,K=[];if(!H)return K;for(var c=_.q(Object.keys(H)),p=c.next();!p.done;p=c.next()){p=p.value;a:{var g=d,a=_.a6(p).entityId;if(a){var e=_.xL(g,"musicPlaylist",_.kL(a,"musicPlaylist"));g=_.xL(g,"musicPlaylistDownloadMetadataEntity",_.kL(a,"musicPlaylistDownloadMetadataEntity"));if(e&&g){e={musicPlaylistEntity:e,musicPlaylistDownloadStateEntity:g};break a}}e=void 0}g=void 0;p=Number((g=H[p])==null?void 0:g.addedTimestampMillis);p=isNaN(p)?(0,_.$G)():
p;e!==void 0&&K.push({downloadedMusicPlaylistEntities:e,addedTimestampMillis:p})}return K};
htC=function(d){var H=new Set;d=_.q(d);for(var K=d.next();!K.done;K=d.next())if(K=K.value,"musicPlaylistEntity"in K&&"musicPlaylistDownloadStateEntity"in K){K=_.q(K.musicPlaylistEntity.tracks);for(var c=K.next();!c.done;c=K.next())H.add(c.value)}return H};
L2X=function(d,H){if(H){var K=_.xL(d,"musicTrack",_.kL(H,"musicTrack")),c=_.xL(d,"musicArtist",_.kL(H,"musicArtist"))||{};if((d=je1(d,H))&&K&&c)return Object.assign({},{musicTrackEntity:K,musicArtistEntity:c},d)}};
McE=function(d){var H=d.musicTrackDownloadMetadataEntity,K=[];if(!H)return[];H=_.q(Object.keys(H));for(var c=H.next();!c.done;c=H.next()){var p=c.value;c=L2X(d,_.a6(p).entityId);var g=void 0;p=Number((g=_.xL(d,"musicTrackDownloadMetadataEntity",p))==null?void 0:g.addedTimestampMillis);g=isNaN(p)?(0,_.$G)():p;c!==void 0&&K.push({downloadedMusicEntities:c,addedTimestampMillis:g})}return K};
PdF=function(d,H){if(!H)return[];if(Object.values(mwh).includes(H))return wxF(d,H);H=_.kL(H,"musicPlaylist");var K;d=(K=d.musicPlaylist)==null?void 0:K[H];K=[];if(d==null||!d.tracks)return K;d=_.q(d.tracks);for(H=d.next();!H.done;H=d.next())(H=_.a6(H.value).entityId)&&K.push(H);return K};
wxF=function(d,H){var K=new Set,c=UwL(d).map(function(g){return g.downloadedMusicPlaylistEntities});
c=htC(c);c=_.q(c);for(var p=c.next();!p.done;p=c.next())(p=_.a6(p.value).entityId)&&K.add(p);return utY(d).downloadedMusicEntities.filter(function(g){var a;if((a=g.musicTrackEntity)!=null&&a.videoId){g=g.musicTrackEntity;if(a=H==="PPOM"?!0:!K.has(g.videoId))b:switch(g=g.musicVideoType,H){case "PPSE":a=g==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:a=g!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}g=a}else g=!1;return g}).map(function(g){var a;
return(a=g.musicTrackEntity)==null?void 0:a.videoId})};
utY=function(d){var H=McE(d).sort(function(K,c){return c.addedTimestampMillis-K.addedTimestampMillis}).map(function(K){return"downloadedMusicEntities"in K?K.downloadedMusicEntities:Cd4(K)?K.downloadedMusicPlaylistEntities:{}});
d=UwL(d).sort(function(K,c){return c.addedTimestampMillis-K.addedTimestampMillis}).map(function(K){return"downloadedMusicEntities"in K?K.downloadedMusicEntities:Cd4(K)?K.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:H,downloadedMusicPlaylistEntities:d}};
rJL=function(d,H){H=_.Fm("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?PdF(d,H):lEL(d,H);if(!H.length)return"TRANSFER_STATE_UNKNOWN";H=H.map(function(K){return GFE(d,K)});
return IEX(H)};
IEX=function(d){var H=new Set(d);if(H.has("TRANSFER_STATE_FAILED")&&H.size===1)return"TRANSFER_STATE_FAILED";H.delete("TRANSFER_STATE_FAILED");if(H.has("TRANSFER_STATE_UNKNOWN")&&H.size===1)return"TRANSFER_STATE_PRE_TRANSFER";H.delete("TRANSFER_STATE_UNKNOWN");if(H.has("TRANSFER_STATE_PRE_TRANSFER")&&H.size===1||H.size===0)return"TRANSFER_STATE_PRE_TRANSFER";d=H.has("TRANSFER_STATE_TRANSFERRING");H=H.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return d||H?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
I6=function(d){var H=d.mainVideoDownloadStateEntity,K=[];if(!H)return[];H=_.q(Object.keys(H));for(var c=H.next();!c.done;c=H.next()){var p=c.value;if(!v41(d,_.a6(p).entityId)){c=uZ(d,_.a6(p).entityId);var g=void 0,a=void 0;p=(a=Number((g=_.xL(d,"mainVideoDownloadStateEntity",p))==null?void 0:g.addedTimestampMillis))!=null?a:(0,_.$G)();c!==void 0&&K.push({downloadedVideoEntities:c,addedTimestampMillis:p})}}return K};
W25=function(d){return I6(d).sort(function(H,K){return K.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return H.downloadedVideoEntities})};
_.zt1=function(d){var H=nRF(d),K=_.r0(d),c=cJF(d),p=I6(d).filter(function(a){var e,k;if((a==null?void 0:(e=a.downloadedVideoEntities)==null?void 0:(k=e.transferEntity)==null?void 0:k.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var C,R;a=a==null?void 0:(C=a.downloadedVideoEntities)==null?void 0:(R=C.videoEntity)==null?void 0:R.key;return _.h("kevlar_use_library_entity")?a&&(c.has(a)||K[a]):a&&!H.has(a)}),g=xwY(d).filter(function(a){return rJL(d,a.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.ru(p),_.ru(g)).sort(function(a,e){return e.addedTimestampMillis-a.addedTimestampMillis}).map(function(a){return BI4(a)})};
XxF=function(d,H){if(H&&DqE(d,H)){var K,c,p=(c=(K=_.xL(d,"playbackData",_.kL(H,"playbackData")))!=null?K:void 0)==null?void 0:c.playerResponseJson;if(p){try{var g=JSON.parse(p);var a=_.xL(d,"transfer",_.kL(H,"transfer")),e=oRF(d,H);e&&(g=Object.assign({},g,{playerConfig:Object.assign({},g.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+e*1E3}}})}));g.cotn=a==null?void 0:a.cotn}catch(k){}return g}}};
_.sS5=function(d){var H,K,c;d=(c=(K=((H=d.downloadsPageViewConfigurationEntity)!=null?H:{})[_.WW])==null?void 0:K.smartDownloadsOptInBannerVisibility)!=null?c:{};var p;return(p=_.M(d,JJD))!=null?p:{}};
_.r0=function(d){var H,K,c;d=(c=(K=((H=d.mainDownloadsListEntity)!=null?H:{})[_.F2F])==null?void 0:K.downloads)!=null?c:[];H={};K=_.q(d);for(c=K.next();!c.done;c=K.next())d=void 0,H[(d=c.value.videoItem)!=null?d:""]=!0;return H};
ZUh=function(d){var H=_.r0(d);if(Object.keys(H).length===0)return!1;var K=d.mainVideoEntity;if(!K)return!0;K=_.q(Object.keys(K));for(var c=K.next();!c.done;c=K.next()){c=c.value;var p=_.a6(c).entityId;if(H[c]&&!v41(d,p))return!1}return!0};
_.BW=function(d){var H=_.r0(d);return I6(d).sort(function(K,c){return K.addedTimestampMillis-c.addedTimestampMillis}).map(function(K){return K.downloadedVideoEntities}).filter(function(K){var c;
return(K=K==null?void 0:(c=K.videoEntity)==null?void 0:c.key)&&!!H[K]})};
_.QS1=function(d){var H,K,c;d=(c=(K=((H=d.downloadsPageViewConfigurationEntity)!=null?H:{})[_.WW])==null?void 0:K.downloadsUpsellBannerVisibility)!=null?c:{};var p;return(p=_.M(d,TIM))!=null?p:{}};
BI4=function(d){return"downloadedVideoEntities"in d?d.downloadedVideoEntities:"downloadedPlaylistEntities"in d?d.downloadedPlaylistEntities:{}};
tcC=function(d){var H=_.r0(d),K=nRF(d),c=I6(d).filter(function(p){var g,a;return(p=p==null?void 0:(g=p.downloadedVideoEntities)==null?void 0:(a=g.videoEntity)==null?void 0:a.key)&&!H[p]&&!K.has(p)});
d=xwY(d);return[].concat(_.ru(c),_.ru(d)).sort(function(p,g){return g.addedTimestampMillis-p.addedTimestampMillis}).map(function(p){return BI4(p)})};
_.zR=function(d){if(!_.h("kevlar_use_library_entity"))return tcC(d);var H=I6(d).filter(function(c){var p,g;if(p=c=c==null?void 0:(p=c.downloadedVideoEntities)==null?void 0:(g=p.videoEntity)==null?void 0:g.key){var a,e,k;p=((e=(a=d.mainDownloadsListEntity)==null?void 0:a[K2l])==null?0:(k=e.downloads)==null?0:k.length)?cJF(d).has(c):!1}return p}),K=xwY(d);
return[].concat(_.ru(H),_.ru(K)).sort(function(c,p){return p.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return BI4(c)})};
YTl=function(d){var H=_.r0(d),K=nRF(d);return W25(d).filter(function(c){var p;return(c=c==null?void 0:(p=c.videoEntity)==null?void 0:p.key)&&!H[c]&&!K.has(c)})};
OUM=function(d){if(!_.h("kevlar_use_library_entity"))return YTl(d);var H=_.r0(d),K=cJF(d);return W25(d).filter(function(c){var p;return(c=c==null?void 0:(p=c.videoEntity)==null?void 0:p.key)&&!H[c]&&K.has(c)})};
STh=function(d,H){H=_.kL(H,"settingEntity");var K,c,p;return!!((p=(c=((K=d.settingEntity)!=null?K:{})[H])==null?void 0:c.settingOptionValue)!=null?p:{}).boolValue};
_.Xv=function(d){var H=_.BW(d);if(NYY(H))return 0;var K=[];H=_.q(H);for(var c=H.next();!c.done;c=H.next()){c=c.value;var p=void 0,g=void 0;if((p=c)==null?0:(g=p.videoEntity)==null?0:g.key)p=_.a6(c.videoEntity.key).entityId,c=d,p=_.kL(p,"mainVideoDownloadStateEntity"),c=_.xL(c,"mainVideoDownloadStateEntity",p),(c=Number(c==null?void 0:c.addedTimestampMillis))&&K.push(c)}return Math.max.apply(Math,_.ru(K))};
_.JF=function(d){return d.ui.richGridMiniMode};
_.sc=function(d){return d.ui.richGridItemsPerRow};
_.ERi=function(d){return d.ui.richGridSlimItemsPerRow};
_.yJi=function(d){return d.ui.guideIsExpanded};
_.Fv=function(d){return d.ui.miniplayerIsActive};
bUl=function(d){return d.ui.singleOptionSurveyIsActive};
_.ZL=function(d){var H;return((H=d.ui)==null?void 0:H.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.NI4=function(d){return _.ZL(d)==="WEB_PAGE_TYPE_WATCH"};
_.Dwl=function(d){return _.ZL(d)==="WEB_PAGE_TYPE_SHORTS"};
_.fEi=function(d){return d.ui.inlinePreviewIsActive};
_.AJC=function(d){return d.ui.inlinePreviewIsEnabled};
_.jSF=function(d){return d.ui.miniplayerPlaybackState};
_.TR=function(d){return d.ui.isOnline};
_.vR5=function(d){return d.ui.frostedGlassMode};
_.QO=function(d,H){return pxf(d.entities,H)};
_.tF=function(d,H){return rJL(d.entities,H)};
dGF=function(d,H){var K;if(H){var c;d=(c=_.xL(d.entities,"offlineVideoPolicy",_.kL(H,"offlineVideoPolicy")))==null?void 0:c.action}else d=void 0;return(K=d)!=null?K:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
HsM=function(d,H){var K;H?(d=_.xL(d.entities,"offlineVideoPolicy",_.kL(H,"offlineVideoPolicy")),d=Number(d==null?void 0:d.expirationTimestamp)):d=void 0;return(K=d)!=null?K:0};
_.$GD=function(d){return _.PW(d.entities).length};
K9h=function(d,H){return uZ(d.entities,H)};
c$F=function(d,H){return kF5(d.entities,H)};
YL=function(d,H){return(d=uZ(d.entities,H))?_.SVD([d]):0};
_.pmM=function(d,H){var K=_.Fm("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(K){var c=d.entities;var p=PdF(c,H);if(p.length){var g=[];p=_.q(p);for(var a=p.next();!a.done;a=p.next())(a=L2X(c,a.value))&&g.push(a);c=g}else c=[]}else c=etY(d.entities,H);var e;if(K){var k=d.entities;H?(H=_.kL(H,"musicPlaylist"),k=(e=k.musicPlaylist)==null?void 0:e[H],e=k!=null&&k.tracks?k.tracks.length:0):e=0}else e=d.entities,H?(H=_.kL(H,"mainPlaylistEntity"),e=(k=e.mainPlaylistEntity)==null?void 0:k[H],e=e!=null&&e.videos?
e.videos.length:0):e=0;return c.length!==e?0:c?E4L(c):0};
_.gCC=function(d){return d.download.isLeaderTab};
_.isF=function(d,H,K){if(!H&&K){var c=d.entities;if(K){var p=bai(K),g,a;H=(a=(g=_.xL(c,"offlineabilityEntity",_.kL(p,"offlineabilityEntity")))==null?void 0:g.addToOfflineButtonState)!=null?a:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else H="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else g=d.entities,H?(a=bai(H),H=(p=(c=_.xL(g,"offlineabilityEntity",_.kL(a,"offlineabilityEntity")))==null?void 0:c.addToOfflineButtonState)!=null?p:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):H="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return H};
Gtf=function(d,H){d=d.entities;if(H){H=bai(H);var K,c;H=(c=(K=_.xL(d,"offlineabilityEntity",_.kL(H,"offlineabilityEntity")))==null?void 0:K.addToOfflineButtonState)!=null?c:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else H="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return H};
_.oCY=function(d){var H=d.entities;d=_.TR(d);var K=STh(H,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.h("kevlar_modern_downloads_page")&&K)var c=!1;else{var p,g;H=(g=(p=((c=H.downloadsPageViewConfigurationEntity)!=null?c:{})[_.WW])==null?void 0:p.smartDownloadsOptInBannerVisibility)!=null?g:{};c=d?!!H.visibleWithConnection:!!H.visibleWithoutConnection}return c};
_.qsl=function(d){return STh(d.entities,"SMART_DOWNLOADS_ENABLED")};
_.afF=function(d){return ZUh(d.entities)};
lfY=function(d){return _.BW(d.entities).every(function(H){var K;return(H==null?void 0:(K=H.transferEntity)==null?void 0:K.transferState)&&!OaF.includes(H.transferEntity.transferState)})};
_.el4=function(d){var H,K,c,p=(c=(K=((H=d.entities.downloadsPageViewConfigurationEntity)!=null?H:{})[_.WW])==null?void 0:K.downloadsUpsellBannerVisibility)!=null?c:{};return _.TR(d)?!!p.visibleWithConnection:!!p.visibleWithoutConnection};
_.ktl=function(d,H){return v41(d.entities,H)};
xG4=function(d,H){if(H){var K,c;d=(c=(K=_.xL(d.entities,"downloadStatusEntity",_.kL(H,"downloadStatusEntity")))==null?void 0:K.downloadState)!=null?c:"DOWNLOAD_STATE_UNKNOWN"}else d="DOWNLOAD_STATE_UNKNOWN";return d};
Oc=function(d,H){return oRF(d.entities,H)};
V$4=function(d){d=_.nC5(d);var H=d.hours===void 0?0:d.hours,K=d.minutes===void 0?0:d.minutes,c=d.seconds===void 0?0:d.seconds,p=H>0;d=[];p&&(H=_.C91(H),d.push(H));H=p;H=H===void 0?!1:H;K=(["af","be","lt"].includes(_.SG)||H)&&K<10?RlC().format(K):(new Intl.NumberFormat("en-u-nu-latn")).format(K);d.push(K);K=RlC().format(c);d.push(K);K=":";"da fi id si sr sr-Latn".split(" ").includes(_.SG)&&(K=".");return d.join(K)};
_.nC5=function(d){var H=d.hours||0,K=d.minutes||0,c=d.seconds||0;H=c+K*60+H*3600+(d.days||0)*86400+(d.weeks||0)*604800+(d.months||0)*2629800+(d.years||0)*31557600;if(H<=0)return{hours:0,minutes:0,seconds:0};d=H;H=Math.floor(d/3600);d%=3600;K=Math.floor(d/60);c=Math.floor(d%60);return{hours:H,minutes:K,seconds:c}};
_.C91=function(d){d=(new Intl.NumberFormat("en-u-nu-latn")).format(d);var H=["fr"],K="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(" ");return"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(_.SG)?d.replace(",","\u00a0"):H.includes(_.SG)?d.replace(",","\u202f"):K.includes(_.SG)?d.replace(",","."):d};
RlC=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
UGE=function(d){try{return(new _.Ec(5)).format(d)}catch(H){}};
yO=function(d){return{thumbnailOverlayDownloadingRenderer:{state:d}}};
hlC=function(d){if(d=UGE(d))return{thumbnailOverlaySidePanelRenderer:{text:_.cW(d),icon:{iconType:"PLAYLISTS"}}}};
L91=function(){var d=_.Vz("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.cW(d),icon:{iconType:"PLAY_ALL"}}}};
M$F=function(d){d=_.bZ(d,2);return _.SG!=="ru"&&_.SG!=="es_419"&&_.SG!=="es-419"&&_.SG!=="es"&&_.SG!=="es_US"&&_.SG!=="es-US"&&_.SG!=="fr"&&_.SG!=="pl"&&_.SG!=="it"&&_.SG!=="nl"&&_.SG!=="uk"&&_.SG!=="fr_CA"&&_.SG!=="fr-CA"||d===""?d:d[0].toLocaleUpperCase()+d.substring(1)};
wmh=function(d){return function(H){var K=d(),c=_.bZ(H,K.dateFormat);H=_.bZ(H,K.timeFormat);var p=mGF.DATETIMEFORMATS[K.joinerStyle];p=p.replace(/'(?!')/g,"");p=p.replace("{0}",H);p=p.replace("{1}",c);return K.capitalize(p)}};
P9l=function(d){return d?typeof d.seconds==="string"&&(d.nanos===void 0||typeof d.nanos==="number"):!1};
uTC=function(d){return new Date(Number(d.seconds)*1E3+(d.nanos||0)*1E-6)};
_.bZ=function(d,H){if(typeof d.getTime==="function")d={date:d};else if(P9l(d))d={date:uTC(d)};else if(typeof P9l(d.timestamp)&&typeof d.i18nInternalSecondsEastOfUtc==="number")d={date:uTC(d.timestamp),timeZone:NR(-d.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(d));var K=d;d=K.date;K=K.timeZone;H=Ifl(H).format(d,K);_.SG==="zh-TW"&&(d=K?Number(Ifl("H").format(d,K)):d.getHours(),H=d<5?H.replace("\u4e0a\u5348","\u51cc\u6668"):d<8?H.replace("\u4e0a\u5348","\u65e9\u4e0a"):d<12?
H.replace("\u4e0a\u5348","\u4e0a\u5348"):d<13?H.replace("\u4e0b\u5348","\u4e2d\u5348"):d<19?H.replace("\u4e0b\u5348","\u4e0b\u5348"):H.replace("\u4e0b\u5348","\u665a\u4e0a"));return H};
Ifl=function(d){if(r$1.has(d))return r$1.get(d);var H=W9F(d);H=ByC(H);zlh!==!0&&(zlh=!0);XmF=!0;XmF=!1;H=new DL(H,mGF);r$1.set(d,H);return H};
W9F=function(d){return(new DL(d,mGF)).patternParts_.map(function(H){return H.type===0?"'"+H.text+"'":H.text}).join("")};
ByC=function(d){return _.SG==="en"||_.SG==="es_US"||_.SG==="es-US"?d:d.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(H,K,c){return"H".repeat(K.length)+c})};
YsX=function(d,H){J$l||(_.fH=_.sk5,J$l=new F9l);var K=J$l;a:if(d=Zsh(d),H=Zsh(H||new Date),d>H)K=d.getTime()-H.getTime()>6048E5?_.bZ(d,1):Ty5(d);else{for(var c=0;QkL(d,12*(c+1))<H;)++c;if(c>0)K=K.format(-c,0);else{for(c=0;QkL(d,c+1)<H;)++c;if(c>0)K=K.format(-c,2);else{d=H.getTime()-d.getTime();H=_.q(t$L);for(c=H.next();!c.done;c=H.next()){c=c.value;var p=c.unit,g=Math.floor(d/c.unitDuration);if(g>=(c.threshold===void 0?1:c.threshold)){K=K.format(-g,p);break a}}K=K.format(-0,7)}}}return K};
Zsh=function(d){if(typeof d.getTime==="function")return d;if(P9l(d))return uTC(d);throw Error("Df`"+JSON.stringify(d));};
QkL=function(d,H){for(var K=0,c;;++K)if(c=new Date(d.getFullYear(),d.getMonth()+H,d.getDate()-K,d.getHours(),d.getMinutes(),d.getSeconds()),c.getMonth()===(d.getMonth()+H)%12)return c};
_.AF=function(d){return{runs:[{text:d}]}};
_.jG=function(d){if(d&&d.simpleText)return d.simpleText;var H="";if(d&&d.runs)for(var K=0;K<d.runs.length;K++)d.runs[K].text&&(H+=d.runs[K].text);return H};
SsF=function(d,H,K,c){return d.videoEntity&&!d.policyEntity&&K!=="DOWNLOAD_STATE_FAILED"?[yO("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:MR(d.policyEntity)&&H!=="TRANSFER_STATE_FAILED"&&H!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?H==="TRANSFER_STATE_PAUSED_BY_USER"?[yO("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.mE(H)?[yO("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:d.videoEntity.lengthSeconds?OsC(d.videoEntity.lengthSeconds,c):[]:
[yO("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
OsC=function(d,H){var K=[{thumbnailOverlayTimeStatusRenderer:{text:_.cW(V$4({seconds:d})),style:"DEFAULT"}}];H&&(d=H<=0||d<=0?0:H>=d?100:Math.ceil(H*100/d),d>0&&K.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:d}}));return K};
EC1=function(d,H,K,c,p){if(H==="TRANSFER_STATE_UNKNOWN"||!d)return{};if(_.mE(H)||H==="TRANSFER_STATE_PRE_TRANSFER")var g=[yO("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var a,e;if(H==="TRANSFER_STATE_COMPLETE"&&((a=d.mainPlaylistEntity)==null?0:(e=a.videos)==null?0:e.length)){if(_.h("web_modern_collections_v2")){var k;var C=(g=d.mainPlaylistEntity)==null?void 0:(k=g.videos)==null?void 0:k.length;g=(g=UGE(C))?{thumbnailOverlayBottomPanelRenderer:{text:_.cW(g),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var R;g=hlC((C=d.mainPlaylistEntity)==null?void 0:(R=C.videos)==null?void 0:R.length)}var V;g=[L91(),Object.assign({},(V=g)!=null?V:{})]}else g=[]}V=g;a:if(H==="TRANSFER_STATE_PRE_TRANSFER")K=pH(_.Vz("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(H==="TRANSFER_STATE_TRANSFER_IN_QUEUE")K=pH(_.Vz("WAITING_TO_DOWNLOAD"));else if(_.mE(H))K=Math.floor(K*100).toString(),K=pH(_.Vz("DOWNLOADING_PERCENT",{percent:K},"Downloading... "+K+"%"));else{if(c&&(_.h("playlist_is_offline_selector_killswitch")&&
(p=_.Kj().resolve(_.yQ).isNetworkAvailable()),p)){K=vZX(_.Vz("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),AQC(c));break a}K=void 0}H=H==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Vz("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},V.length?{thumbnailOverlays:V}:{},K?{viewPlaylistText:K}:{viewPlaylistText:_.AF("")},H.length?{badges:H}:{})};
y$4=function(d,H,K,c,p,g){if(H==="TRANSFER_STATE_UNKNOWN"||!d)return{};if(c==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var a=SsF(d,H,c);if(d.videoEntity&&!d.policyEntity&&c!=="DOWNLOAD_STATE_FAILED"){var e=_.Vz("WAITING_TO_DOWNLOAD");if(e)return{shortViewCountText:_.AF(e),publishedTimeText:void 0,thumbnailOverlays:a}}if(!MR(d.policyEntity)){g=d.policyEntity&&!ys1(d.policyEntity)?_.Vz("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Vz("TRANSFER_FAILED",{},"Download failed");var k;if((k=d.policyEntity)==null?0:k.shortMessageForDisabledAction)g=d.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:pH(g),publishedTimeText:void 0,thumbnailOverlays:a}}if(H==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.AF(_.Vz("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:a};if(H==="TRANSFER_STATE_FAILED"||H==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.AF(_.Vz("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:a};if(H==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(k=_.Vz("WAITING_TO_DOWNLOAD"),c==="DOWNLOAD_STATE_PAUSED"&&(k=_.Vz("DOWNLOAD_PAUSED",{},"Download paused")),k))return{shortViewCountText:_.AF(k),publishedTimeText:void 0,thumbnailOverlays:a};if(_.mE(H))return d=Math.floor(K*100).toString(),{shortViewCountText:_.AF(_.Vz("DOWNLOADING_PERCENT",{percent:d},"Downloading... "+d+"%")),publishedTimeText:void 0,thumbnailOverlays:a};H=void 0;d.videoEntity.publishedTimestampMillis&&
(H=new Date,p&&(H=new Date(p)),H=pH(YsX(new Date(Number(d.videoEntity.publishedTimestampMillis)),H)));p=[];_.h("kevlar_woffle_badge_killswitch")||(p=[{metadataBadgeRenderer:{label:_.Vz("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var C;d=pH((C=d.videoEntity.localizedStrings)==null?void 0:C.viewCount);return Object.assign({},g?{shortViewCountText:void 0}:{shortViewCountText:d},g?{}:{publishedTimeText:H},{badges:p,thumbnailOverlays:a})};
NyD=function(d,H){d=d===void 0?bsF:d;switch(H.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:H.payload.playlistId,inviteLinkURL:H.payload.inviteLinkUrl};default:return d}};
PqM=function(d,H){d=d===void 0?DGi:d;switch(H.type){case "SET_CURRENT_FORM_ID":return H=H.payload.formId,d.currentFormId===H?d:{currentFormId:H,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var K=H.payload;H=K.groupId;K=K.command;if(d.currentFormId){var c=Object.assign({},d.commandsMap);c[H]=K;d=Object.assign({},d,{commandsMap:c})}return d;case "RESET_COMMAND_MAP":return Object.assign({},d,{commandsMap:{}});default:return d}};
IjC=function(d,H){d=d===void 0?uVh:d;switch(H.type){case "UPDATE_CANVAS_MODE":return Object.assign({},d,{currentMode:H.payload.currentMode});default:return d}};
WuF=function(d,H){d=d===void 0?rT4:d;switch(H.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},d,{guideIsExpanded:H.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},d,{scrollAtTop:H.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},d,{guideIsVisibleButNotPersistent:H.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},d,{miniplayerIsActive:H.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},d,{singleOptionSurveyIsActive:H.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},d,{slimlineSurveyRatingSelectedIndex:H.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},d,{richGridMiniMode:H.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},d,{richGridItemsPerRow:H.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},d,{richGridSlimItemsPerRow:H.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},d,{richGridContainerWidth:H.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},d,{richGridStyle:H.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},d,{currentPageType:H.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},d,{inlinePreviewIsActive:H.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},d,{inlinePreviewIsEnabled:H.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},d,{darkModeIsEnabled:H.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
d,{miniplayerPlaybackState:H.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},d,{tabGesturesIsActive:H.payload});case "SET_ONLINE_STATUS":return Object.assign({},d,{isOnline:H.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},d,{chipBarIsSticky:H.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},d,{frostedGlassMode:H.payload});default:return d}};
zq5=function(d,H){d=d===void 0?BlD:d;switch(H.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},d,{transcription:H.payload});case "SET_OVERLAY_STATE":return Object.assign({},d,{overlay:H.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return d}};
OdD=function(){return Ru(Object.assign({},{continuation:XCi,download:JT1,canvas:IjC,reportChannelAbuse:sm1,share:FuX,talkToRecs:Zdh,ui:WuF,voiceSearch:zq5,watch:TlC,ypc:QmX,shorts:tPl,radioButtonGroup:PqM,collabInviteLink:NyD},Yq4))};
yTY=function(){return _.h("web_player_entities_middleware")?new vW(OdD(),[SqX,EkF]):new vW(OdD(),[SqX])};
_.dn=function(){bd4||(bd4=yTY());return bd4};
NlM=function(d,H,K){if(d.length)return{titleText:_.cW(H!=null?H:_.Vz("DOWNLOADS",void 0,"Downloads")),contents:d.map(function(c){var p=c.videoEntity;c={videoId:p.videoId,title:pH(p.title),shortBylineText:pH(c.channelEntity.title),thumbnail:p.thumbnail};var g=p.videoId?Oc(_.dn().getState(),p.videoId):0;p.videoId&&K?c.navigationEndpoint=_.KH(p.videoId,K,void 0,void 0,g):p.videoId&&(c.navigationEndpoint=fvC(p.videoId,g,p.lengthSeconds));p.lengthSeconds&&(c.thumbnailOverlays=OsC(p.lengthSeconds,g));return{playlistPanelVideoRenderer:c}}),
totalVideos:d.length}};
DZE=function(d){return(d=(0,_.rs.getValueByKeys)(d,"playlistId"))?{playlistId:d}:null};
fjM=function(){return{}};
ATF=function(d,H){return new _.kr(function(K,c){d.then(function(p){if(p){if(p=H(p))return K(p);c()}},c)})};
jmM=function(d){var H,K,c,p=(H=d.contents)==null?void 0:(K=H.twoColumnWatchNextResults)==null?void 0:(c=K.autoplay)==null?void 0:c.autoplay,g,a,e;H=(g=d.contents)==null?void 0:(a=g.twoColumnWatchNextResults)==null?void 0:(e=a.playlist)==null?void 0:e.playlist;return p&&H&&H.playlistId?{rawResponse:d,autoplayRenderer:p,playlistPanelRenderer:H,playlistId:H.playlistId}:null};
dT1=function(d){var H=H===void 0?"UNKNOWN_INTERFACE":H;if(d.length===1)return d[0];var K=vk5[H];if(K){K=new RegExp(K);for(var c=_.q(d),p=c.next();!p.done;p=c.next())if(p=p.value,K.exec(p))return p}var g=[];Object.entries(vk5).forEach(function(a){var e=_.q(a);a=e.next().value;e=e.next().value;H!==a&&g.push(e)});
K=new RegExp(g.join("|"));d.sort(function(a,e){return a.length-e.length});
c=_.q(d);for(p=c.next();!p.done;p=c.next())if(p=p.value,!K.exec(p))return p;return d[0]};
_.H5=function(d){return"/youtubei/v1/"+dT1(d)};
_.$i=function(d){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:d}}}}};
_.Km=function(d){return _.$i(_.AF(d))};
Hel=function(d,H){var K={mode:"NORMAL"};d&&(K.autoplayVideo=d.navigationEndpoint,K.nextButtonVideo=d.navigationEndpoint);H&&(K.previousButtonVideo=H.navigationEndpoint);return K};
coF=function(d,H,K){if(!K||!K.sets)return{sets:[Hel(d,H)]};var c=K.sets.find(function(a){return a.mode==="NORMAL"}),p=(0,_.rs.unsafeClone)(K);
if(!c)return p.sets.push(Hel(d,H)),p;if(!d)return K;c=_.rs.getValueByKeys.apply(null,[c].concat(_.ru($TL)));var g=_.rs.getValueByKeys.apply(null,[d].concat(_.ru(K7f)));if(c===g)return K;p.sets=p.sets.filter(function(a){return a.mode!=="NORMAL"});
p.sets.push(Hel(d,H));return p};
pn1=function(d){return!!d.playlistPanelVideoRenderer&&!d.playlistPanelVideoRenderer.unplayableText};
gXl=function(d){return!!d.playlistPanelVideoRenderer&&!!d.playlistPanelVideoRenderer.title};
ief=function(d,H){if(H.contents&&!(d>=H.contents.length)&&(d=H.contents.slice(d).find(pn1)))return d.playlistPanelVideoRenderer};
GbC=function(d,H){if(H.contents)return(H=H.contents.find(function(K){return!!K.playlistPanelVideoRenderer&&K.playlistPanelVideoRenderer.videoId===d}))?H.playlistPanelVideoRenderer:void 0};
oXM=function(d,H){return H.contents?H.contents.findIndex(function(K){return!!K.playlistPanelVideoRenderer&&K.playlistPanelVideoRenderer.videoId===d}):-1};
qOf=function(d,H){return H.contents?H.contents.findIndex(function(K){return!!K.playlistPanelVideoRenderer&&K.playlistPanelVideoRenderer.playlistSetVideoId===d}):-1};
a44=function(d,H){d.contents&&H!==-1&&d.contents.splice(H,1).length===1&&d.totalVideos!==void 0&&(--d.totalVideos,delete d.videoCountText)};
_.l44=function(d){var H=[];if(!d||!d.contents)return H;d=_.q(d.contents);for(var K=d.next();!K.done;K=d.next())K=K.value,K.playlistPanelVideoRenderer&&K.playlistPanelVideoRenderer.videoId&&H.push(K.playlistPanelVideoRenderer.videoId);return H};
_.e3h=function(d){if(d&&d.contents)return(d=d.contents.find(function(H){return!!H.playlistPanelVideoRenderer&&!!H.playlistPanelVideoRenderer.selected})||d.contents[d.currentIndex])?d.playlistPanelVideoRenderer:void 0};
kbF=function(d,H,K,c,p,g,a){p=p===void 0?!1:p;g=g===void 0?!1:g;a=a===void 0?!1:a;if(d.contents&&d.contents.length!==0){c&&(d.contents=d.contents.filter(c));c=d.contents.length;for(var e=0;e<c;e++){var k=d.contents[e].playlistPanelVideoRenderer;k&&(e===H?(g&&delete k.menu,k.indexText=_.AF("\u25b6")):p||d.isInfinite||k.indexText===void 0?delete k.indexText:k.indexText=_.AF((e+1+K).toString()))}d.currentIndex=H+K;a&&(delete d.videoCountText,d.totalVideos=c)}};
_.c5=function(d){d=xTh(d);if(d){var H=d.length;var K=-46%H;K<0&&(K=H+K);d=d.slice(H-K)+d.slice(0,H-K)}else d="";K="";for(H=0;H<d.length&&d[H]!==nXE;H++)K+=d[H];return K};
_.CFF=function(d,H){var K=document.body;H=H===void 0?function(e){return e}:H;
var c,p=null;d=_.q(d);for(c=d.next();!c.done;c=d.next()){var g=c.value;c="div";g[2]&&(c=H(g[2]));c=document.createElement(c);p||(p=c);var a=g[0];g=g[1];a&&(c.id=H(a));if(g)for(g=_.q(g),a=g.next();!a.done;a=g.next())c.classList.add(H(a.value));K.appendChild(c);K=c}return[p,K]};
R3L=function(d,H){for(var K="",c=0;c<H;c++)K+=d.charAt(Math.floor(Math.random()*d.length));return K};
pm=function(d){return R3L("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",d)};
gn=function(d){return R3L("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",d)};
iO=function(d){return R3L("0123456789",d)};
Ge=function(){var d=performance.now(),H=new Date;var K="2."+H.getFullYear()+String(H.getMonth()+1).padStart(2,"0")+String(H.getDate()).padStart(2,"0");for(var c,p=Math.floor(Math.random()*11)+15,g=[],a=0;a<p;a++)g.push(Math.floor(Math.random()*26476865)+24547720);c=g.join(",");var e=pm(10),k=pm(100),C=pm(102),R=pm(106),V=pm(108),U=pm(11),L=pm(1140),w=pm(123),W=pm(14),J=pm(16),F=pm(1900),Y=pm(23),A=pm(26),E=pm(34),N=pm(397),y=pm(44),v=pm(5),el=pm(72),l1=pm(74),V4=pm(75),Mf=pm(88),LF=pm(91),YY="rr5---sn-q4flrne6 rr3---sn-q4fl6nds rr1---sn-q4fl6nde rr4---sn-q4flrnek rr4---sn-q4fl6nss rr5---sn-q4flrn7r rr4---sn-q4fzen7l rr3---sn-q4flrne6 rr5---sn-q4fl6n6z rr5---sn-hgn7rnll rr2---sn-q4flrnsk rr1---sn-aigzrnz7 rr5---sn-aigl6nzl rr1---sn-ntqe6n76 rr2---sn-hgn7yn7l rr5---sn-q4flrnel rr4---sn-q4flrnel rr3---sn-t0a7lnee rr1---sn-q4fl6ns6 rr4---sn-4g5edndk".split(" ");
var FM=YY[Math.floor(Math.random()*YY.length)];var gA=(new Date("2010-01-01")).getTime();var JN=(new Date(gA+Math.random()*((new Date).getTime()-gA))).toISOString().split("T")[0];for(var eS,vF=[],CX=0;CX<4;CX++)vF.push(Math.floor(Math.random()*100));eS=vF.join(".");var kd=Number(iO(5)),BB=Number(iO(6)),ug=Number(iO(7)),fX=Number(iO(9)),pF=iO(1),dA=iO(10),U3=iO(16),lg=iO(19),hN=iO(2),Hv=iO(20),$s=iO(21),dq=iO(3),oC=iO(4),NU=iO(5),RZ=iO(6),uM=iO(7),IC=iO(8),Lt=iO(9);var qj=R3L("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var nt=[gn(5),gn(5),gn(5)].join("%2C"),uk=[iO(3),iO(5),iO(5)].join("%2C"),L5=gn(0),Yd=gn(1),FO=gn(10),EU=gn(108),mr=gn(11),p6=gn(12),Lz=gn(13),p4=gn(14),Xq=gn(15),ds=gn(16),Fi=gn(17),u1=gn(18),ZD=gn(19),E5=gn(2),RC=gn(20),eT=gn(22),We=gn(23),wq=gn(24),MU=gn(266),LX=gn(3),XO=gn(30),kO=gn(34),nX=gn(35),hA=gn(36),VM=gn(4),Zw=gn(40),Jt=gn(43),Zz=gn(47),Qp=gn(5),LB=gn(6),ao=gn(7),D9=gn(75),Nf=gn(8),V1=gn(80),sU=gn(9),ig="https://www."+gn(12)+".com",or={},Su={},XB={},tR={},RD={},oi={},qD={responseContext:{serviceTrackingParams:[{service:"GFEEDBACK",
params:[{key:"ipcc",value:"0"},{key:"is_viewed_live",value:"False"},{key:"is_alc_surface",value:"false"},{key:"premium_membership",value:"non_member"},{key:"has_unlimited_entitlement",value:"False"},{key:"has_alc_entitlement",value:"false"},{key:"logged_in",value:"1"},{key:"e",value:c}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:K},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+gn(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:K},{key:"client.name",value:"WEB"},{key:"client.fexp",value:c}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:$s+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+gn(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Zw,ypcGetOfflineUpsellEndpoint:{params:V1}},trackingParams:nX+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fmp4&ns="+wq+"&cnr="+hN+"&ratebypass=yes&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&c=WEB&txp="+uM+"&n="+J+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:BB,width:640,height:360,lastModified:U3,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:uM,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+uk+"&mn="+
nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fmp4&ns="+wq+"&cnr="+hN+"&ratebypass=yes&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&c=WEB&txp="+uM+"&n="+J+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+EU+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:BB,width:1280,
height:720,lastModified:U3,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:uM,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+uk+"&mn="+nt+"&ms="+
nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fmp4&ns="+wq+"&gir="+LX+"&clen="+Lt+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:ug,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:Lt,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:ug,approxDurationMs:uM},{itag:248,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=248&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+uk+"&mn="+nt+"&ms="+nt+"&mv="+
Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fwebm&ns="+wq+"&gir="+LX+"&clen="+Lt+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+R+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:ug,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:Lt,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:ug,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uM},{itag:399,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=399&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fmp4&ns="+wq+"&gir="+LX+"&clen="+Lt+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:ug,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:Lt,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:ug,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uM},{itag:136,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=136&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fmp4&ns="+wq+"&gir="+LX+"&clen="+Lt+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:ug,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:Lt,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:BB,approxDurationMs:uM},{itag:247,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=247&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+uk+"&mn="+
nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fwebm&ns="+wq+"&gir="+LX+"&clen="+Lt+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:ug,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:Lt,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:BB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uM},{itag:398,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=398&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fmp4&ns="+wq+"&gir="+LX+"&clen="+Lt+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:ug,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:Lt,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:BB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uM},{itag:135,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=135&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fmp4&ns="+wq+"&gir="+LX+"&clen="+IC+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:BB,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:IC,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:BB,approxDurationMs:uM},{itag:244,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=244&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+uk+"&mn="+
nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fwebm&ns="+wq+"&gir="+LX+"&clen="+IC+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+EU+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:BB,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:IC,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:BB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uM},{itag:397,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=397&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fmp4&ns="+wq+"&gir="+LX+"&clen="+IC+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:BB,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:IC,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:BB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uM},{itag:134,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=134&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fmp4&ns="+wq+"&gir="+LX+"&clen="+IC+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:BB,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:IC,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:BB,highReplication:!0,approxDurationMs:uM},{itag:243,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=243&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fwebm&ns="+wq+"&gir="+LX+"&clen="+IC+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+R+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:BB,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:IC,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:BB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uM},{itag:396,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=396&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fmp4&ns="+wq+"&gir="+LX+"&clen="+IC+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:BB,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:IC,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:BB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uM},{itag:133,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=133&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fmp4&ns="+wq+"&gir="+LX+"&clen="+IC+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:BB,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:IC,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:BB,approxDurationMs:uM},{itag:242,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=242&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+uk+"&mn="+
nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fwebm&ns="+wq+"&gir="+LX+"&clen="+IC+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:BB,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:IC,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:BB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uM},{itag:395,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=395&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fmp4&ns="+wq+"&gir="+LX+"&clen="+IC+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:BB,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:IC,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:BB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uM},{itag:160,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=160&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fmp4&ns="+wq+"&gir="+LX+"&clen="+IC+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+R+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:BB,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:IC,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:kd,approxDurationMs:uM},{itag:278,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=278&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+uk+"&mn="+
nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fwebm&ns="+wq+"&gir="+LX+"&clen="+IC+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:BB,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:IC,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:kd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uM},{itag:394,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=394&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=video%2Fmp4&ns="+wq+"&gir="+LX+"&clen="+IC+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:kd,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:IC,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:kd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uM},{itag:140,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=audio%2Fmp4&ns="+wq+"&gir="+LX+"&clen="+IC+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+R+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:BB,
initRange:{start:"0",end:"631"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:IC,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:BB,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:uM,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+
hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=audio%2Fwebm&ns="+wq+"&gir="+LX+"&clen="+uM+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+R+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'audio/webm; codecs="opus"',bitrate:kd,initRange:{start:"0",end:"265"},indexRange:{start:dq,
end:oC},lastModified:U3,contentLength:uM,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:kd,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:uM,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=audio%2Fwebm&ns="+
wq+"&gir="+LX+"&clen="+uM+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+R+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'audio/webm; codecs="opus"',bitrate:kd,initRange:{start:"0",end:"265"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:uM,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:kd,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:uM,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+FM+".googlevideo.com/videoplayback?expire="+dA+"&ei="+Y+"&ip="+eS+"&id=o-AF"+Jt+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+uk+"&mn="+nt+"&ms="+nt+"&mv="+Yd+"&mvi="+pF+"&pl="+hN+"&initcwndbps="+uM+"&siu="+pF+"&spc="+y+"&vprv="+pF+"&svpuc="+pF+"&mime=audio%2Fwebm&ns="+wq+"&gir="+LX+"&clen="+IC+"&dur="+IC+"&lmt="+U3+"&mt="+dA+"&fvip=3&keepalive="+LX+"&c=WEB&txp="+
uM+"&n="+ds+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'audio/webm; codecs="opus"',bitrate:BB,initRange:{start:"0",end:"265"},indexRange:{start:dq,end:oC},lastModified:U3,contentLength:IC,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:BB,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:uM,audioSampleRate:"48000",audioChannels:2,
loudnessDb:-3.7800007}]},playerAds:[{playerLegacyDesktopWatchAdsRenderer:{playerAdParams:{showContentThumbnail:!0,enabledEngageTypes:"3,6,4,5,17,1"},gutParams:{tag:"\\4061\\ytpwmpu"},showCompanion:!0,showInstream:!0,useGut:!0}}],playbackTracking:{videostatsPlaybackUrl:{baseUrl:"https://s.youtube.com/api/stats/playback?cl="+Lt+"&docid="+U+"&ei="+Y+"&feature="+e+"&fexp="+L5+"&ns="+E5+"&plid="+J+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Yd+"&el="+FO+"&len="+oC+"&of="+eT+
"&uga="+hN+"&vm="+MU},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Lt+"&docid="+U+"&ei="+Y+"&feature="+e+"&fexp="+L5+"&ns="+E5+"&plid="+J+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Yd+"&el="+FO+"&len="+oC+"&of="+eT+"&uga="+hN+"&vm="+MU},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Lt+"&docid="+U+"&ei="+Y+"&feature="+e+"&fexp="+L5+"&ns="+E5+"&plid="+J+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Yd+"&el="+FO+"&len="+oC+"&of="+eT+"&uga="+hN+"&vm="+MU},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+Y+"&m="+Mf+"&oid="+eT+"&plid="+J+"&pltype="+ao+"&ptchn="+eT+"&ptk="+W+"&video_id="+U},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Lt+"&docid="+U+"&ei="+Y+"&event="+p4+"&feature="+e+"&fexp="+L5+"&ns="+E5+"&plid="+J+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Yd},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+U+"&ei="+Y+"&feature="+
e+"&len="+oC+"&ns="+E5+"&plid="+J+"&ver="+pF,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+U+"&caps="+LX+"&opi="+Lt+"&xoaf="+pF+"&hl="+E5+"&ip="+eS+"&ipbits="+pF+"&expire="+dA+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+eS+"&key="+LX+"&lang="+v,name:{simpleText:FO},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+U+"&caps="+LX+"&opi="+Lt+"&xoaf="+pF+"&hl="+E5+"&ip="+eS+"&ipbits="+pF+"&expire="+dA+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+eS+"&key="+LX+"&kind="+LX+"&lang="+E5,name:{simpleText:Fi},vssId:"a.it",languageCode:"it",kind:"asr",isTranslatable:!0,trackName:""}],audioTracks:[{captionTrackIndices:[0,1],defaultCaptionTrackIndex:0,visibility:"UNKNOWN",hasDefaultTrack:!0,captionsInitialState:"CAPTIONS_INITIAL_STATE_OFF_RECOMMENDED"}],
translationLanguages:[{languageCode:"af",languageName:{simpleText:"Afrikaans"}},{languageCode:"ak",languageName:{simpleText:"Akan"}},{languageCode:"sq",languageName:{simpleText:"Albanian"}},{languageCode:"am",languageName:{simpleText:"Amharic"}},{languageCode:"ar",languageName:{simpleText:"Arabic"}},{languageCode:"hy",languageName:{simpleText:"Armenian"}},{languageCode:"as",languageName:{simpleText:"Assamese"}},{languageCode:"ay",languageName:{simpleText:"Aymara"}},{languageCode:"az",languageName:{simpleText:"Azerbaijani"}},
{languageCode:"bn",languageName:{simpleText:"Bangla"}},{languageCode:"eu",languageName:{simpleText:"Basque"}},{languageCode:"be",languageName:{simpleText:"Belarusian"}},{languageCode:"bho",languageName:{simpleText:"Bhojpuri"}},{languageCode:"bs",languageName:{simpleText:"Bosnian"}},{languageCode:"bg",languageName:{simpleText:"Bulgarian"}},{languageCode:"my",languageName:{simpleText:"Burmese"}},{languageCode:"ca",languageName:{simpleText:"Catalan"}},{languageCode:"ceb",languageName:{simpleText:"Cebuano"}},
{languageCode:"zh-Hans",languageName:{simpleText:"Chinese (Simplified)"}},{languageCode:"zh-Hant",languageName:{simpleText:"Chinese (Traditional)"}},{languageCode:"co",languageName:{simpleText:"Corsican"}},{languageCode:"hr",languageName:{simpleText:"Croatian"}},{languageCode:"cs",languageName:{simpleText:"Czech"}},{languageCode:"da",languageName:{simpleText:"Danish"}},{languageCode:"dv",languageName:{simpleText:"Divehi"}},{languageCode:"nl",languageName:{simpleText:"Dutch"}},{languageCode:"en",languageName:{simpleText:"English"}},
{languageCode:"eo",languageName:{simpleText:"Esperanto"}},{languageCode:"et",languageName:{simpleText:"Estonian"}},{languageCode:"ee",languageName:{simpleText:"Ewe"}},{languageCode:"fil",languageName:{simpleText:"Filipino"}},{languageCode:"fi",languageName:{simpleText:"Finnish"}},{languageCode:"fr",languageName:{simpleText:"French"}},{languageCode:"gl",languageName:{simpleText:"Galician"}},{languageCode:"lg",languageName:{simpleText:"Ganda"}},{languageCode:"ka",languageName:{simpleText:"Georgian"}},
{languageCode:"de",languageName:{simpleText:"German"}},{languageCode:"el",languageName:{simpleText:"Greek"}},{languageCode:"gn",languageName:{simpleText:"Guarani"}},{languageCode:"gu",languageName:{simpleText:"Gujarati"}},{languageCode:"ht",languageName:{simpleText:"Haitian Creole"}},{languageCode:"ha",languageName:{simpleText:"Hausa"}},{languageCode:"haw",languageName:{simpleText:"Hawaiian"}},{languageCode:"iw",languageName:{simpleText:"Hebrew"}},{languageCode:"hi",languageName:{simpleText:"Hindi"}},
{languageCode:"hmn",languageName:{simpleText:"Hmong"}},{languageCode:"hu",languageName:{simpleText:"Hungarian"}},{languageCode:"is",languageName:{simpleText:"Icelandic"}},{languageCode:"ig",languageName:{simpleText:"Igbo"}},{languageCode:"id",languageName:{simpleText:"Indonesian"}},{languageCode:"ga",languageName:{simpleText:"Irish"}},{languageCode:"it",languageName:{simpleText:"Italian"}},{languageCode:"ja",languageName:{simpleText:"Japanese"}},{languageCode:"jv",languageName:{simpleText:"Javanese"}},
{languageCode:"kn",languageName:{simpleText:"Kannada"}},{languageCode:"kk",languageName:{simpleText:"Kazakh"}},{languageCode:"km",languageName:{simpleText:"Khmer"}},{languageCode:"rw",languageName:{simpleText:"Kinyarwanda"}},{languageCode:"ko",languageName:{simpleText:"Korean"}},{languageCode:"kri",languageName:{simpleText:"Krio"}},{languageCode:"ku",languageName:{simpleText:"Kurdish"}},{languageCode:"ky",languageName:{simpleText:"Kyrgyz"}},{languageCode:"lo",languageName:{simpleText:"Lao"}},{languageCode:"la",
languageName:{simpleText:"Latin"}},{languageCode:"lv",languageName:{simpleText:"Latvian"}},{languageCode:"ln",languageName:{simpleText:"Lingala"}},{languageCode:"lt",languageName:{simpleText:"Lithuanian"}},{languageCode:"lb",languageName:{simpleText:"Luxembourgish"}},{languageCode:"mk",languageName:{simpleText:"Macedonian"}},{languageCode:"mg",languageName:{simpleText:"Malagasy"}},{languageCode:"ms",languageName:{simpleText:"Malay"}},{languageCode:"ml",languageName:{simpleText:"Malayalam"}},{languageCode:"mt",
languageName:{simpleText:"Maltese"}},{languageCode:"mi",languageName:{simpleText:"Maori"}},{languageCode:"mr",languageName:{simpleText:"Marathi"}},{languageCode:"mn",languageName:{simpleText:"Mongolian"}},{languageCode:"ne",languageName:{simpleText:"Nepali"}},{languageCode:"nso",languageName:{simpleText:"Northern Sotho"}},{languageCode:"no",languageName:{simpleText:"Norwegian"}},{languageCode:"ny",languageName:{simpleText:"Nyanja"}},{languageCode:"or",languageName:{simpleText:"Odia"}},{languageCode:"om",
languageName:{simpleText:"Oromo"}},{languageCode:"ps",languageName:{simpleText:"Pashto"}},{languageCode:"fa",languageName:{simpleText:"Persian"}},{languageCode:"pl",languageName:{simpleText:"Polish"}},{languageCode:"pt",languageName:{simpleText:"Portuguese"}},{languageCode:"pa",languageName:{simpleText:"Punjabi"}},{languageCode:"qu",languageName:{simpleText:"Quechua"}},{languageCode:"ro",languageName:{simpleText:"Romanian"}},{languageCode:"ru",languageName:{simpleText:"Russian"}},{languageCode:"sm",
languageName:{simpleText:"Samoan"}},{languageCode:"sa",languageName:{simpleText:"Sanskrit"}},{languageCode:"gd",languageName:{simpleText:"Scottish Gaelic"}},{languageCode:"sr",languageName:{simpleText:"Serbian"}},{languageCode:"sn",languageName:{simpleText:"Shona"}},{languageCode:"sd",languageName:{simpleText:"Sindhi"}},{languageCode:"si",languageName:{simpleText:"Sinhala"}},{languageCode:"sk",languageName:{simpleText:"Slovak"}},{languageCode:"sl",languageName:{simpleText:"Slovenian"}},{languageCode:"so",
languageName:{simpleText:"Somali"}},{languageCode:"st",languageName:{simpleText:"Southern Sotho"}},{languageCode:"es",languageName:{simpleText:"Spanish"}},{languageCode:"su",languageName:{simpleText:"Sundanese"}},{languageCode:"sw",languageName:{simpleText:"Swahili"}},{languageCode:"sv",languageName:{simpleText:"Swedish"}},{languageCode:"tg",languageName:{simpleText:"Tajik"}},{languageCode:"ta",languageName:{simpleText:"Tamil"}},{languageCode:"tt",languageName:{simpleText:"Tatar"}},{languageCode:"te",
languageName:{simpleText:"Telugu"}},{languageCode:"th",languageName:{simpleText:"Thai"}},{languageCode:"ti",languageName:{simpleText:"Tigrinya"}},{languageCode:"ts",languageName:{simpleText:"Tsonga"}},{languageCode:"tr",languageName:{simpleText:"Turkish"}},{languageCode:"tk",languageName:{simpleText:"Turkmen"}},{languageCode:"uk",languageName:{simpleText:"Ukrainian"}},{languageCode:"ur",languageName:{simpleText:"Urdu"}},{languageCode:"ug",languageName:{simpleText:"Uyghur"}},{languageCode:"uz",languageName:{simpleText:"Uzbek"}},
{languageCode:"vi",languageName:{simpleText:"Vietnamese"}},{languageCode:"cy",languageName:{simpleText:"Welsh"}},{languageCode:"fy",languageName:{simpleText:"Western Frisian"}},{languageCode:"xh",languageName:{simpleText:"Xhosa"}},{languageCode:"yi",languageName:{simpleText:"Yiddish"}},{languageCode:"yo",languageName:{simpleText:"Yoruba"}},{languageCode:"zu",languageName:{simpleText:"Zulu"}}],defaultAudioTrackIndex:0}},videoDetails:{videoId:mr,title:Nf,lengthSeconds:"1155",keywords:[Lz,sU,p4,u1],
channelId:wq,isOwnerViewing:!1,shortDescription:FO,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+U+"/hqdefault.jpg?sqp=-oaymwE"+hA+"G&rs="+kO,width:168,height:94},{url:"https://i.ytimg.com/vi/"+U+"/hqdefault.jpg?sqp=-oaymwE"+hA+"G&rs="+kO,width:196,height:110},{url:"https://i.ytimg.com/vi/"+U+"/hqdefault.jpg?sqp=-oaymwE"+hA+"G&rs="+E,width:246,height:138},{url:"https://i.ytimg.com/vi/"+U+"/hqdefault.jpg?sqp=-oaymwE"+hA+"G&rs="+E,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
U+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:uM,author:Lz,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:uM,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+eT+"/featured_channel.jpg?v="+Nf,width:40,height:40}]},trackingParams:nX+"=",navigationEndpoint:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{url:"/channel/"+wq,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:wq}},channelName:Lz,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:p6}]},subscribed:!1,enabled:!0,type:"FREE",channelId:wq,showPreferences:!1,subscribedButtonText:{runs:[{text:Lz}]},unsubscribedButtonText:{runs:[{text:p4}]},trackingParams:nX+"=",unsubscribeButtonText:{runs:[{text:VM}]},serviceEndpoints:[{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[wq],params:Nf}},{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Zw,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:nX+"=",dialogMessages:[{runs:[{text:Qp},{text:Lz},{text:Fi}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Fi}]},serviceEndpoint:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[wq],params:Nf}},accessibility:{label:sU},trackingParams:nX+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Fi}]},accessibility:{label:Xq},trackingParams:nX+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Lz}},unsubscribeAccessibility:{accessibilityData:{label:ao}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:IC},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[wq],params:Nf}},unsubscribeCommand:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[wq],params:Nf}},addToWatchLaterCommand:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:mr,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:mr}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+U+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+hA+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
U+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+mr,width:1280,height:720},title:{simpleText:ds},description:{simpleText:ao},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+ao,externalChannelId:wq,isFamilySafe:!0,availableCountries:"AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW".split(" "),
isUnlisted:!1,hasYpcMetadata:!1,viewCount:uM,category:"Travel & Events",publishDate:JN,ownerChannelName:Lz,uploadDate:JN}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Qp},trackingParams:nX+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Zw,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:nX+"="}}],headerText:{simpleText:p6},icon:{infoCardIconRenderer:{trackingParams:nX+"="}},closeButton:{infoCardIconRenderer:{trackingParams:nX+"="}},trackingParams:nX+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:nX+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+mr+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:qj,interpreterSafeUrl:(or.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+XO+".js",or),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Qp},{text:Qp,bold:!0}]},endpoint:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/",target:"TARGET_NEW_WINDOW"}},trackingParams:nX+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:Nf}]},actionButton:{buttonRenderer:{text:{runs:[{text:u1}]},navigationEndpoint:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+U,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
U,target:"TARGET_NEW_WINDOW"}},trackingParams:nX+"="}},trackingParams:nX+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+el+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+el+"=s400-c-k-c0x00ffffff-no-rj",width:400,height:400}]},icon:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/annotations/youtube.png"}]},left:.030214407,width:.15438597,top:.37587035,aspectRatio:1,
startMs:uM,endMs:uM,title:{accessibility:{accessibilityData:{label:ZD}},simpleText:LB},metadata:{simpleText:p4},callToAction:{simpleText:ds},dismiss:{simpleText:LB},endpoint:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{url:"/channel/"+wq,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:wq}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Xq}]},subscribed:!1,enabled:!0,type:"FREE",channelId:wq,showPreferences:!1,
subscribedButtonText:{runs:[{text:Xq}]},unsubscribedButtonText:{runs:[{text:Nf}]},trackingParams:nX+"=",unsubscribeButtonText:{runs:[{text:p4}]},serviceEndpoints:[{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[wq],params:Nf}},{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Zw,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:nX+
"=",dialogMessages:[{runs:[{text:Nf},{text:Nf},{text:p6}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:RC}]},serviceEndpoint:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[wq],params:Nf}},accessibility:{label:p4},trackingParams:nX+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Xq}]},
accessibility:{label:sU},trackingParams:nX+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Lz}},unsubscribeAccessibility:{accessibilityData:{label:FO}}}},trackingParams:nX+"=",isSubscribe:!0,id:Hv}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+U+"/hqdefault.jpg?sqp=-oaymwE"+hA+"G&rs="+E,width:168,height:94},{url:"https://i.ytimg.com/vi/"+U+"/hqdefault.jpg?sqp=-oaymwE"+hA+"G&rs="+kO,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+U+"/hqdefault.jpg?sqp=-oaymwE"+hA+"G&rs="+E,width:246,height:138},{url:"https://i.ytimg.com/vi/"+U+"/hqdefault.jpg?sqp=-oaymwE"+hA+"G&rs="+E,width:336,height:188},{url:"https://i.ytimg.com/vi/"+U+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:uM,endMs:uM,title:{accessibility:{accessibilityData:{label:LB}},simpleText:Qp},metadata:{simpleText:LB},endpoint:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
mr,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:mr,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+FM+".googlevideo.com/videoplayback?source=youtube&oeis="+pF+"&c=WEB&oad="+oC+"&ovd="+oC+"&oaad="+NU+"&oavd="+NU+"&ocs="+dq+"&oewis="+pF+"&oputc="+pF+"&ofpcc="+pF+"&siu="+pF+"&msp="+pF+"&odepv="+pF+
"&id=o-AF"+Jt+"&ip="+eS+"&initcwndbps="+uM+"&mt="+dA+"&oweuc="+L5}}}}},trackingParams:nX+"=",id:Hv,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Qp}},simpleText:RC},style:"DEFAULT"}}]}}],startMs:uM,trackingParams:nX+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:pF,offsetEndMilliseconds:NU},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Lt+";dc_trk_cid="+Lt+";dc_dbm_token="+V+";ord="+dA+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pF+";dc_rui="+pF+";dc_exteid="+Hv+";dc_av="+dq+";dc_sk="+pF+";dc_ctype="+hN+";dc_ref=http://www.youtube.com/video/"+mr+";dc_pubid="+pF+";dc_btype=23?gclid="+LF+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+pF+"&ns="+pF+"&event="+pF+"&device="+pF+"&content_v="+U+"&el="+FO+"&ei="+Y+"&devicever="+K+"&bti="+uM+"&format="+RZ+"&break_type="+pF+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+pF+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+eS+"&slot_pos="+pF+"&slot_len="+pF+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+uk+"&ad_len="+NU+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
mr+"&aqi="+Y+"&ad_rmp="+pF+"&sli="+pF}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+
";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+RZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+uM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&ctype="+dq+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_engaged_view&ctype="+dq+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+RZ+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Lt+";dc_trk_cid="+Lt+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pF+";ord="+Lt+";dc_rui="+pF+";dc_exteid="+lg+";dc_av="+pF+";dc_sk="+pF+";dc_ctype="+hN+";dc_pubid="+pF+";dc_btype=3?gclid="+LF+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+C+"&sig="+We+"&ad_cpn=[AD_CPN]&id="+LB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LB+"&dc_pubid="+pF+"&dc_exteid="+Hv+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+C+"&sig="+We+"&ad_cpn=[AD_CPN]&id="+LB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+pF},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LB+"&avm="+pF+"&dc_pubid="+pF+"&dc_exteid="+
Hv+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
C+"&sig="+We+"&ad_cpn=[AD_CPN]&id="+LB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+pF},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LB+"&dc_pubid="+pF+"&dc_exteid="+Hv+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+RZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+RZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Zw,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+
dq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+U+"/mqdefault.jpg",width:320,height:180}]},trackingParams:nX+"="},trackingParams:nX+
"=",templatedCountdown:{templatedAdText:{text:u1,isTemplated:!0,trackingParams:nX+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:u1,isTemplated:!1,trackingParams:nX+"="},trackingParams:nX+"="}},trackingParams:nX+"=",skipOffsetMilliseconds:5E3}},trackingParams:nX+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:ZD},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nX+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:RC,isTemplated:!1,trackingParams:nX+"="},trackingParams:nX+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:ds,isTemplated:!0,trackingParams:nX+"="}},trackingParams:nX+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Zw,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Su.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+E5+"&origin=www.youtube.com&ata_theme="+VM,Su),trackingParams:nX+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:nX+"="}},hoverText:{runs:[{text:Lz}]},trackingParams:nX+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Zz+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:nX+"="},headline:{text:VM,isTemplated:!1,trackingParams:nX+"="},description:{text:LB,
trackingParams:nX+"="},actionButton:{buttonRenderer:{text:{simpleText:sU},navigationEndpoint:{clickTrackingParams:Zw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Lt+";dc_trk_cid="+Lt+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pF+";ord="+Lt+";dc_rui="+pF+";dc_exteid="+Hv+";dc_av="+pF+";dc_sk="+pF+";dc_ctype="+hN+";dc_pubid="+pF+";dc_btype=3?gclid="+LF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nX+"="}},startMs:pF,trackingParams:nX+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ao},elementId:p6}},elementId:VM,trackingParams:nX+"=",legacyInfoCardVastExtension:p6,sodarExtensionData:{siub:VM,bgub:Lz,scs:VM,bgp:Xq},externalVideoId:mr,adLayoutLoggingData:{serializedAdServingDataEntry:LB},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Zz+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:nX+"="},
headline:{text:ZD,isTemplated:!1,trackingParams:nX+"="},description:{text:RC,isTemplated:!1,trackingParams:nX+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Nf},navigationEndpoint:{clickTrackingParams:Zw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Lt+";dc_trk_cid="+Lt+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pF+";ord="+Lt+";dc_rui="+pF+";dc_exteid="+
Hv+";dc_av="+pF+";dc_sk="+pF+";dc_ctype="+hN+";dc_pubid="+pF+";dc_btype=3?gclid="+LF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+
pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nX+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:nX+"="}},navigationEndpoint:{clickTrackingParams:Zw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Lt+";dc_trk_cid="+
Lt+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pF+";ord="+Lt+";dc_rui="+pF+";dc_exteid="+Hv+";dc_av="+pF+";dc_sk="+pF+";dc_ctype="+hN+";dc_pubid="+pF+";dc_btype=3?gclid="+LF+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+
w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nX+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:nX+"="},abandonCommands:{commands:[{clickTrackingParams:Zw,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+
pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Zw,commandExecutorCommand:{commands:[{clickTrackingParams:Zw,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Qp,isTemplated:!1,trackingParams:nX+
"="},trackingParams:nX+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Qp},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+uM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"1ID7Gdwk2vV7OZ1A"}},
{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N1957659.127733GOOGLE-YOUTUBE/B29940965.366940103;dc_trk_aid="+Lt+";dc_trk_cid="+Lt+";ord="+dA+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pF+";dc_rui="+pF+";dc_exteid="+Hv+";dc_av="+dq+";dc_sk="+pF+";dc_ctype="+hN+";dc_ref=http://www.youtube.com/video/"+mr+";dc_pubid="+pF+";dc_btype=23?gclid="+LF+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+pF+"&ns="+pF+"&event="+pF+"&device="+pF+"&content_v="+U+"&el="+FO+"&ei="+Y+"&devicever="+K+"&bti="+uM+"&format="+RZ+"&break_type="+pF+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+pF+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+eS+"&slot_pos="+pF+"&slot_len="+pF+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
uk+"&ad_len="+NU+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+mr+"&aqi="+Y+"&ad_rmp="+pF+"&sli="+pF}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+RZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+
A+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+uM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&ctype="+dq+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,
attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_engaged_view&ctype="+dq+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+RZ+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+C+"&sig="+We+"&ad_cpn=[AD_CPN]&id="+
LB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LB+"&dc_pubid="+pF+"&dc_exteid="+Hv+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+C+
"&sig="+We+"&ad_cpn=[AD_CPN]&id="+LB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+pF},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LB+"&avm="+pF+"&dc_pubid="+pF+"&dc_exteid="+Hv+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+C+"&sig="+We+"&ad_cpn=[AD_CPN]&id="+LB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+pF},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LB+"&dc_pubid="+pF+"&dc_exteid="+Hv+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+RZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+RZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+
dq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+U+"/mqdefault.jpg",width:320,height:180}]},trackingParams:nX+"="},trackingParams:nX+"=",templatedCountdown:{templatedAdText:{text:Lz,isTemplated:!0,trackingParams:nX+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Xq,isTemplated:!1,trackingParams:nX+"="},trackingParams:nX+"="}},
trackingParams:nX+"=",skipOffsetMilliseconds:5E3}},trackingParams:nX+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:ds},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nX+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:mr,isTemplated:!1,trackingParams:nX+"="},trackingParams:nX+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:ao,
isTemplated:!0,trackingParams:nX+"="}},trackingParams:nX+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Zw,openPopupAction:{popup:{aboutThisAdRenderer:{url:(XB.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+E5+"&origin=www.youtube.com&ata_theme="+VM,XB),trackingParams:nX+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:nX+"="}},hoverText:{runs:[{text:ZD}]},trackingParams:nX+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+l1+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:nX+"="},headline:{text:Lz,isTemplated:!1,trackingParams:nX+"="},description:{text:FO,trackingParams:nX+"="},actionButton:{buttonRenderer:{text:{simpleText:p6},navigationEndpoint:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nX+"="}},startMs:pF,trackingParams:nX+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ds},elementId:Fi}},elementId:p4,trackingParams:nX+"=",legacyInfoCardVastExtension:Xq,sodarExtensionData:{siub:ds,bgub:Xq,scs:u1,bgp:mr},externalVideoId:mr,adLayoutLoggingData:{serializedAdServingDataEntry:FO},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+l1+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:nX+"="},headline:{text:ao,
isTemplated:!1,trackingParams:nX+"="},description:{text:Lz,isTemplated:!1,trackingParams:nX+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Fi},navigationEndpoint:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nX+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:nX+"="}},navigationEndpoint:{clickTrackingParams:Zw,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+
pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nX+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:nX+"="},abandonCommands:{commands:[{clickTrackingParams:Zw,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+hN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Zw,commandExecutorCommand:{commands:[{clickTrackingParams:Zw,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:ZD,isTemplated:!1,trackingParams:nX+"="},trackingParams:nX+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:VM},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pF+";dc_exteid="+Hv+";met="+pF+";ecn"+pF+"="+pF+";etm1="+pF+";eid1="+
uM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Nf}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ds}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:NU,offsetEndMilliseconds:RZ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Y+"&m_pos="+hN+"&token=ALHj"+N+"&index="+pF+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+K+"&m_pos_ms="+NU}},adSlotLoggingData:{serializedSlotAdServingDataEntry:RC}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:RZ,offsetEndMilliseconds:RZ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Y+"&m_pos="+dq+"&token=ALHj"+N+"&index="+pF+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
K+"&m_pos_ms="+RZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Xq}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:RZ,offsetEndMilliseconds:RZ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Y+"&m_pos="+dq+"&token=ALHj"+N+"&index="+pF+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
K+"&m_pos_ms="+RZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Lz}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:RZ,offsetEndMilliseconds:RZ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Y+"&m_pos="+dq+"&token=ALHj"+N+"&index="+pF+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
K+"&m_pos_ms="+RZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Lz}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:RZ,offsetEndMilliseconds:hN},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Y+"&m_pos="+dq+"&token=ALHj"+N+"&index="+pF+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
K+"&m_pos_ms="+RZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Xq}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:hN,offsetEndMilliseconds:hN},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Y+"&m_pos="+hN+"&token=ALHj"+N+"&index="+pF+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
K+"&m_pos_ms="+hN}},adSlotLoggingData:{serializedSlotAdServingDataEntry:p6}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:p6,isTemplated:!1,trackingParams:nX+"="},description:{text:Fi,isTemplated:!1,trackingParams:nX+"="},actionButton:{buttonRenderer:{text:{simpleText:ZD},navigationEndpoint:{clickTrackingParams:Zw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Lt+";dc_trk_cid="+Lt+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pF+";ord="+Lt+";dc_rui="+pF+";dc_exteid="+Hv+";dc_av="+pF+";dc_sk="+pF+";dc_ctype="+hN+";dc_pubid="+pF+";dc_btype=3?gclid="+LF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nX+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Zz+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:nX+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+V4+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:nX+"="},navigationEndpoint:{clickTrackingParams:Zw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Lt+";dc_trk_cid="+Lt+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pF+";ord="+Lt+
";dc_rui="+pF+";dc_exteid="+Hv+";dc_av="+pF+";dc_sk="+pF+";dc_ctype="+hN+";dc_pubid="+pF+";dc_btype=3?gclid="+LF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nX+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Zw,openPopupAction:{popup:{aboutThisAdRenderer:{url:(tR.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+E5+"&origin=www.youtube.com&ata_theme="+VM,tR),trackingParams:nX+"="}},popupType:"DIALOG"}},trackingParams:nX+"="}},hoverText:{runs:[{text:RC}]},trackingParams:nX+"="}},adVideoId:mr,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:VM},associatedCompositePlayerBytesLayoutId:ds}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:p4}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:ZD,isTemplated:!1,trackingParams:nX+"="},description:{text:VM,isTemplated:!1,trackingParams:nX+"="},actionButton:{buttonRenderer:{text:{simpleText:Fi},navigationEndpoint:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+
w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nX+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+l1+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:nX+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+D9+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:nX+"="},navigationEndpoint:{clickTrackingParams:Zw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+
pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nX+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Zw,openPopupAction:{popup:{aboutThisAdRenderer:{url:(RD.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+E5+"&origin=www.youtube.com&ata_theme="+VM,RD),trackingParams:nX+"="}},popupType:"DIALOG"}},trackingParams:nX+"="}},
hoverText:{runs:[{text:Fi}]},trackingParams:nX+"="}},adVideoId:mr,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+mr+"&cid="+A+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:p6},associatedCompositePlayerBytesLayoutId:ds}},adSlotLoggingData:{serializedSlotAdServingDataEntry:VM}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Xq,
isTemplated:!1,trackingParams:nX+"="},description:{text:FO,isTemplated:!1,trackingParams:nX+"="},actionButton:{buttonRenderer:{text:{simpleText:Fi},navigationEndpoint:{clickTrackingParams:Zw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Lt+";dc_trk_cid="+Lt+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pF+";ord="+Lt+";dc_rui="+pF+";dc_exteid="+Hv+";dc_av="+pF+";dc_sk="+pF+";dc_ctype="+
hN+";dc_pubid="+pF+";dc_btype=3?gclid="+LF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+
E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nX+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Zz+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:nX+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+V4+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:nX+
"="},navigationEndpoint:{clickTrackingParams:Zw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Lt+";dc_trk_cid="+Lt+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pF+";ord="+Lt+";dc_rui="+pF+";dc_exteid="+Hv+";dc_av="+pF+";dc_sk="+pF+";dc_ctype="+hN+";dc_pubid="+pF+";dc_btype=3?gclid="+LF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+w+"AxAA&ase=2&num="+pF+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+E+"&adurl="+ig+"&label=video_click_to_advertiser_site&ctype="+dq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nX+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Zw,openPopupAction:{popup:{aboutThisAdRenderer:{url:(oi.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+E5+"&origin=www.youtube.com&ata_theme="+VM,oi),trackingParams:nX+"="}},popupType:"DIALOG"}},trackingParams:nX+
"="}},hoverText:{runs:[{text:FO}]},trackingParams:nX+"="}},adVideoId:mr,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+w+"AxAA&sigh="+U+"&cid="+A+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Lz},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:ds}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Qp}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:XO,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:XO,command:{innertubeCommand:{clickTrackingParams:Zw,ypcGetOfflineUpsellEndpoint:{params:V1}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:nX+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:dA,nanos:fX}}}},ZVC=JSON.stringify(qD),ai=performance.now()-d;return{objectRepresentation:qD,jsonRepresentation:ZVC,generationTime:ai}};
Vk5=function(d,H){if(d===H)return!0;if(!d||!H||typeof d!==typeof H)return!1;if(d instanceof Array&&H instanceof Array){if(d.length!==H.length)return!1;for(var K=0;K<d.length;K++)if(!Vk5(d[K],H[K]))return!1;return!0}if(typeof d==="object"&&typeof H==="object"&&d&&H){for(K in d)if(!(K in H&&Vk5(d[K],H[K])))return!1;for(var c in H)if(!(c in d))return!1;return!0}return!1};
_.qv=function(){if(!o3){o3=new a4(new UT5);var d=_.iT("client_streamz_web_flush_count",-1);d!==-1&&(o3.invocationLimit=d)}return o3};
a3=function(d,H,K,c){if(d===H)return!0;if(Array.isArray(d)&&Array.isArray(H)){if(d.length!==H.length)return!1;for(var p=0;p<d.length;p++)if(!a3(d[p],H[p],K,c))return!1;return!0}if(d instanceof Set||H instanceof Set){if(d instanceof Set&&H instanceof Set){if(d.size!==H.size)return!1;c=_.q(d.values());for(p=c.next();!p.done;p=c.next())if(!H.has(p.value))return!1;return!0}return!1}if(d instanceof Function){if(c)return!0;d.name===""&&_.z5(Error("Hf"),"ERROR");return!1}if(d instanceof Date&&H instanceof
Date)return d.getTime()===H.getTime();if(d instanceof Object&&H instanceof Object){if(h34(d)&&h34(H))try{return d.equals(H)}catch(a){_.z5(Error("If`"+a),"ERROR")}p=Object.getOwnPropertyNames(d).filter(function(a){return K?d[a]!==void 0:!0});
var g=Object.getOwnPropertyNames(H).filter(function(a){return K?H[a]!==void 0:!0});
if(p.length!==g.length)return!1;p=_.q(p);for(g=p.next();!g.done;g=p.next())if(g=g.value,!a3(d[g],H[g],K,c))return!1;return!0}return!1};
h34=function(d){d=Object.getPrototypeOf(d).equals;return d instanceof Function&&d.length===1};
_.mTE=function(){return _.l(function(d){if(d.nextAddress==1)return L7C!==2?d.jumpTo(2):d.yield(MkX(),3);d.nextAddress!=2&&(L7C=d.yieldResult);return d.return(L7C)})};
_.uZL=function(){return _.l(function(d){if(d.nextAddress==1)return _.h("ab_pl_man")?wnY!==2?d.jumpTo(2):d.yield(PFM(),3):d.return(1);d.nextAddress!=2&&(wnY=d.yieldResult);return d.return(wnY)})};
W7l=function(){return _.l(function(d){if(d.nextAddress==1)return _.h("ab_fk_sk_cl")?I4i!==2?d.jumpTo(2):d.yield(roh(),3):d.return(1);d.nextAddress!=2&&(I4i=d.yieldResult);return d.return(I4i)})};
_.XnE=function(){return _.l(function(d){if(d.nextAddress==1)return _.h("ab_det_apb_b")?B24!==2?d.jumpTo(2):d.yield(z3F(),3):d.return(1);d.nextAddress!=2&&(B24=d.yieldResult);return d.return(B24)})};
F7f=function(){var d;return _.l(function(H){if(H.nextAddress==1)return H.yield(Promise.all([_.mTE(),_.XnE(),_.uZL(),W7l()]),2);if(H.nextAddress!=3)return JoD()?H.return(!0):H.yield(_.sxh(),3);d=H.yieldResult;return H.return(d===0)})};
JoD=function(){var d=!1,H=function(K,c){Ze5.increment(c,K);K===0&&(d=!0)};
H(_.T2h(),"j.s_");H(L7C,"f.i_");H(B24,"a.b_");H(wnY,"p.m_");H(I4i,"i.f_");QxX===2&&(QxX=_.tkD(YO1));H(QxX,"e.h_");_.h("ks_det_gpbl")||H(_.Oef(),"p.i_");_.h("ks_get_o_pp")||H(_.SOY(),"g.o_");_.h("ab_deg_unex_thr")||H(_.EXM(),"a.o_");H(yoF,"s.t_");_.h("ab_det_sc_inj_enf")&&H(_.beh(),"s.i_");H(N2i,"d.p_");H(_.DTY(_.lO),"o.p_");H(_.f4Y()===0?0:_.AoF(),"o.a_");return _.h("debug_sk_em_precheck")?!0:d};
vX4=function(){var d=[].concat(_.ru(jxi));try{var H=Ge();d.push({jsonRepresentation:H.jsonRepresentation,objectRepresentation:H.objectRepresentation})}catch(K){d=[].concat(_.ru(jxi))}return d};
dil=function(){var d=["adPlacements","adSlots"];try{return d.filter(function(){return!0}).length!==d.length?0:1}catch(H){return 0}};
_.SOY=function(){if(dil()===0)return 0;var d=Ge(),H=d.objectRepresentation,K=(0,_.rs.unsafeClone)(H),c=[];if(H&&typeof H==="object")for(var p in H)c.push(p);else return 4;d=d.objectRepresentation.adPlacements;if(!(d&&d.length>0))return 4;try{if(!Vk5(c,Object.getOwnPropertyNames(H)))return 0}catch(g){return 0}return Vk5(K,H)?1:0};
_.DTY=function(d){if(!d||!d.length||typeof d==="string")return 0;for(var H=Object.getOwnPropertyNames(Object.prototype),K=0;K<d.length;K++)for(var c=_.c5(d[K]),p=_.q(H),g=p.next();!g.done;g=p.next())if(c===g.value)return 0;return 1};
H_l=function(d){var H=_.c5(d[1]);if(d[0]===null)return H;d=d[0];for(var K={},c=0;c<d.length;c++){var p=_.c5(d[c]);if(c===0)K[p]=H;else{var g={};g[p]=K;K=g}}return K};
_.f4Y=function(){for(var d=_.eh,H=0;H<d.length;H++){var K=H_l(d[H]),c=[];c.push(K);if(c.length===0)return 0}return 1};
_.AoF=function(){for(var d=_.eh,H={},K=0;K<d.length;H={agQ:void 0},K++){var c=[H_l(d[K])];H.agQ=[];c.forEach(function(p){return function(g){p.agQ[p.agQ.length]=g}}(H));
if(H.agQ.length===0)return 0}return 1};
_.T2h=function(){for(var d=_.q(vX4()),H=d.next();!H.done;H=d.next()){var K=H.value;H=K.jsonRepresentation;K=K.objectRepresentation;try{var c=JSON.parse(H);if(!a3(c,K,!1,!1))return 0}catch(p){return 0}}return 1};
_.beh=function(){try{var d=_.o5("ab_det_sc_inj_val");d.length===1&&d[0]===""&&(d=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var H=document.querySelectorAll("script"),K=_.q(H),c=K.next();!c.done;c=K.next())for(var p=c.value,g=_.q(d),a=g.next();!a.done;a=g.next()){var e=a.value;H=void 0;if((H=p.textContent)==null?0:H.includes(e))return 0}}catch(k){return 4}return 1};
_.sxh=function(){var d,H,K,c,p,g,a;return _.l(function(e){switch(e.nextAddress){case 1:_.e2(e,2),d=_.q(jxi),H=d.next();case 4:if(H.done)return e.return(1);c=K=H.value;p=c.jsonRepresentation;g=c.objectRepresentation;return e.yield((new Response(p,{status:200})).json(),7);case 7:a=e.yieldResult;if(!a3(a,g,!1,!1))return e.return(0);H=d.next();e.jumpTo(4);break;case 2:return _.RV(e),e.return(4)}})};
_.EXM=function(){try{btoa("abc")}catch(d){return 0}return 1};
MkX=function(){var d,H,K,c,p,g,a,e,k,C,R;return _.l(function(V){switch(V.nextAddress){case 1:_.e2(V,2),d=_.q(vX4()),H=d.next();case 4:if(H.done)return V.return(1);c=K=H.value;p=c.jsonRepresentation;g=c.objectRepresentation;a=btoa(p);e="data:application/json;base64,"+a;k=new Request(e);Object.defineProperty(k,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(k,"method",{get:function(){return"POST"}});
Object.defineProperty(k,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(k,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(k,"body",{get:function(){return new ReadableStream}});
return V.yield(fetch(k),7);case 7:return C=V.yieldResult,V.yield(C.json(),8);case 8:R=V.yieldResult;if(!a3(R,g,!1,!1))return V.return(0);H=d.next();V.jumpTo(4);break;case 2:return _.RV(V),V.return(4)}})};
_.tkD=function(d){if(!d||!d.length||typeof d==="string")return 0;for(var H=function(p){return _.c5(p)},K=2,c=0;c<d.length&&(K=_.$i1(_.CFF(d[c],H)),K!==0);c++);
return K};
_.$i1=function(d){var H=_.q(d);d=H.next().value;H=H.next().value;try{var K=document.createElement("div");document.body.appendChild(K);var c=getComputedStyle(K).display;document.body.removeChild(K);if(c==="none")return 4;var p=getComputedStyle(H).display==="none"?0:1;document.body.removeChild(d);return p}catch(g){return 4}};
roh=function(){var d,H,K;return _.l(function(c){d=new _.ki;H=document.createElement("button");H.classList.add("ytp-ad-skip-button");H.style.opacity="0";H.style.height="0px";H.style.width="0px";H.style.padding="0px";H.style.border="none";K=function(){H.parentElement&&H.parentElement.removeChild(H)};
H.onclick=function(){d.resolve(0);K()};
document.body.appendChild(H);setTimeout(function(){K();d.resolve(1)},50);
return c.return(d.promise)})};
PFM=function(){var d,H,K,c,p,g,a;return _.l(function(e){d=new _.ki;H=document.createElement("ytd-player");try{document.body.prepend(H)}catch(k){return e.return(4)}K=function(){H.parentElement&&H.parentElement.removeChild(H)};
H.getElementsByTagName("div").length>0?c=H.getElementsByTagName("div")[0]:(c=document.createElement("div"),H.appendChild(c));p=document.createElement("div");c.appendChild(p);g=document.createElement("video");a=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});g.src=_.IK(_.JL(a));g.ontimeupdate=function(){K();d.resolve(0)};
p.appendChild(g);g.classList.add("html5-main-video");setTimeout(function(){p.classList.add("ad-interrupting")},200);
setTimeout(function(){K();d.resolve(1)},5E3);
return e.return(d.promise)})};
KHi=function(d,H){var K,c;return _.l(function(p){switch(p.nextAddress){case 1:K=[],c=0;case 2:if(!(c<3)){p.jumpTo(4);break}return p.yield(fetch(d,{cache:"no-store",method:H}).then(function(g){K.push(g.status)}).catch(function(){K.push(-1)}),3);
case 3:c++;p.jumpTo(2);break;case 4:return p.return(K)}})};
cI4=function(d){return d.domainLookupStart===0&&d.domainLookupEnd===0&&d.connectStart===0&&d.connectEnd===0};
p6X=function(d,H,K){K=K===void 0?"GET":K;var c,p,g,a,e,k,C,R,V,U;return _.l(function(L){if(L.nextAddress==1)return L.yield(Promise.all([KHi(d,K),KHi(H,K)]),2);c=L.yieldResult;p=_.q(c);g=p.next().value;a=p.next().value;e=g;k=a;if(Math.min.apply(Math,_.ru(k))!==Math.max.apply(Math,_.ru(k))||Math.min.apply(Math,_.ru(e))!==Math.max.apply(Math,_.ru(e)))return L.return(2);if(Math.min.apply(Math,_.ru(k))===Math.min.apply(Math,_.ru(e)))return L.return(1);R=(C=performance.getEntriesByName(d))==null?void 0:
C[0];U=(V=performance.getEntriesByName(H))==null?void 0:V[0];return R&&U?cI4(U)?L.return(1):cI4(R)?L.return(0):L.return(1):L.return(2)})};
z3F=function(){var d;return _.l(function(H){var K=[];var c;var p,g,a;(p=c=(p=Ge().objectRepresentation.streamingData)==null?void 0:(g=p.formats)==null?void 0:(a=g[0])==null?void 0:a.url)&&p&&!c.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(p=p.replace("initcwndbps","ctier=L&initcwndbps"),p=p.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),c={testUrl:p,baseUrl:c,method:"GET"}):c=void 0;c&&K.push(c);_.h("ab_net_tp_e")&&K.push({testUrl:_.KF.location.origin+"/ad_companion",baseUrl:_.KF.location.origin+
"/generate_204",method:"OPTIONS"});if(_.h("ad_net_pb_ab")){var e;b:{c=/api\/stats\/ads/;var k,C,R,V;p=(e=Ge().objectRepresentation.adPlacements)==null?void 0:(k=e[0])==null?void 0:(C=k.adPlacementRenderer)==null?void 0:(R=C.renderer)==null?void 0:(V=R.linearAdSequenceRenderer)==null?void 0:V.linearAds;if(p!=null&&p.length&&(e=_.M(p[0],gxF))&&(e=e.pings,e!=null&&e.impressionPings))for(k=[].concat(_.ru(e.impressionPings)),e.progressPings&&(k=[].concat(_.ru(k),_.ru(e.progressPings))),e=_.q(k),k=e.next();!k.done;k=
e.next())if(k=k.value,k.baseUrl&&c.test(k.baseUrl)){e=k.baseUrl.replace("https://www.youtube.com","");break b}e=void 0}e&&K.push({testUrl:_.KF.location.origin+e,baseUrl:_.KF.location.origin+"/feed/download",method:"GET"})}if(_.h("ad_net_pb_pbp")){var U;b:{e=/api\/stats\/qoe/;if(k=Ge().objectRepresentation.playbackTracking){C=[];C.push(k==null?void 0:(U=k.videostatsPlaybackUrl)==null?void 0:U.baseUrl);var L;C.push(k==null?void 0:(L=k.videostatsDelayplayUrl)==null?void 0:L.baseUrl);var w;C.push(k==
null?void 0:(w=k.videostatsWatchtimeUrl)==null?void 0:w.baseUrl);var W;C.push(k==null?void 0:(W=k.ptrackingUrl)==null?void 0:W.baseUrl);var J;C.push(k==null?void 0:(J=k.qoeUrl)==null?void 0:J.baseUrl);var F;C.push(k==null?void 0:(F=k.atrUrl)==null?void 0:F.baseUrl);U=_.q(C);for(L=U.next();!L.done;L=U.next())if((L=L.value)&&e.test(L)){U=L.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}U=void 0}U&&K.push({testUrl:_.KF.location.origin+U,baseUrl:_.KF.location.origin+
"/feed/download",method:"GET"})}K=K.length!==0?K[Math.floor(Math.random()*K.length)]:void 0;return(d=K)?H.return(p6X(d.testUrl,d.baseUrl,d.method)):H.return(4)})};
_.Oef=function(){if(_.KF.eS7===void 0||_.KF.eS7===null||typeof _.KF.eS7!=="function")return 2;try{return _.KF.eS7()===!0?0:1}catch(d){return 0}};
i_L=function(d){switch(d){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.tN(d,"unknown result type")}};
_.GrD=function(d,H){var K=Number(_.Fm("CATSTAT",0));if(H.qIc===void 0)return K;H=H.qIc;d=i_L(d);return K&~(3<<H)|d<<H};
oxM=function(d){var H,K;if((d=(H=d.auxiliaryUi)==null?void 0:(K=H.messageRenderers)==null?void 0:K.bkaEnforcementMessageViewModel)&&d.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return d};
aTY=function(){for(var d=_.q(Object.values(_.qtL)),H=d.next();!H.done;H=d.next())H=H.value,H.isAsync&&H.qIc&&_.sS("CATSTAT",_.GrD(2,H))};
_.VS=function(d,H){d=_.nm("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",d);(H===void 0?0:H)?_.lT4(d,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Cm(_.R3(),d,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
krF=function(){if(!e5E){if(Polymer.Base){var d=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{d.apply(this,arguments)}catch(V){_.tm(V)}};
var H=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{H.apply(this,arguments)}catch(V){_.tm(V)}};
var K=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{K.apply(this,arguments)}catch(V){_.tm(V)}};
var c=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{c.apply(this,arguments)}catch(V){_.tm(V)}};
var p=Polymer.Base._listen,g=new WeakMap;Polymer.Base._listen=function(V,U,L){var w=function(){try{L.apply(this,arguments)}catch(W){_.tm(W)}};
g.set(L,w);p.call(this,V,U,w)};
var a=Polymer.Base._unlisten;Polymer.Base._unlisten=function(V,U,L){a.call(this,V,U,g.get(L))}}if(Polymer.Async){var e=Polymer.Async,k=e._atEndOfMicrotask;
e._atEndOfMicrotask=function(){try{k.apply(e,arguments)}catch(V){_.tm(V)}}}if(Polymer.RenderStatus){var C=Polymer.RenderStatus,R=C.afterNextRender;
C.afterNextRender=function(V,U,L){R.call(C,V,function(){try{U.apply(this,arguments)}catch(w){_.tm(w)}},L)}}e5E=!0}};
_.Ub=function(d){var H=d?_.kp(d):"";if(H){if(H.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(H.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(H.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(H.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(H.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.h("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(H.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";H=H.toLowerCase();if(H==="/")return"home";if(H==="/channel_memberships")return"channel-memberships-shopfront";if(H.indexOf("/feed/trending")===0)return"trending";if(H.indexOf("/feed/explore")===0)return"explore";if(H.indexOf("/live")===0)return"live";if(H.indexOf("/results")===0)return"search";if(H.indexOf("/sports")===0)return"sports";if(H.indexOf("/fashion")===0||H.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(H))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(H))return _.h("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(H.indexOf("/channel/")===0||H.indexOf("/user/")===0||H.indexOf("/gaming")===0||H.indexOf("/post/")===0)return"channel";if(xiX(d))return"show";if(H==="/playlist"||H.indexOf("/playlist/")===0||H==="/view_play_list"||H.indexOf("/view_play_list/")===0||H.indexOf("/show/")===0)return"playlist";if(H==="/feed/history"||H.indexOf("/feed/history/")===0)return"history";if(H===
"/new")return"labs";if(H==="/feed/subscriptions")return"subscriptions";if(H.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(H==="/history_controls")return"standalone";if(H.indexOf("/account")===0||H==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(H.indexOf("/paid_memberships")===0||H.indexOf("/refund")===0||H.indexOf("/purchases")===0||H.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(H.indexOf("/product")===0)return"yts-products";if(H.indexOf("/premium")===
0||H.indexOf("/musicpremium")===0)return H.indexOf("/premium/offers")===0||H.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(H==="/cart/checkout"||H==="/cart")return"ypc-checkout";if(H.indexOf("/feed/downloads")===0||H.indexOf("/redeem")===0||H.indexOf("/reporthistory")===0)return"browse";if(H.indexOf("/hashtag")===0)return"hashtag-landing-page";if(H.indexOf("/handle")===0)return"handle";if(H.indexOf("/source")===0)return"audio-pivot";if(H.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(H.indexOf("/playables")===0)return"playables";if(H.indexOf("/create/live/join")===0)return"open-in-app";if(H.indexOf("/shorts")===0)return"shorts";if(H.indexOf("/feed/channels")===0)return"subscriptions-channels";(H=d?_.kp(d):"")&&H.indexOf("/watch")===0&&_.h("web_watch_enable_learning_journey")?(d=_.NM(d),d=!!d.list&&d.list.indexOf("LJPP")===0):d=!1;if(d)return"learning_journey_watch"}};
_.hc=function(d){var H,K;(d=(K=_.M(d==null?void 0:d.commandMetadata,_.Co))==null?void 0:K.url)&&(H=_.Ub(d));return H};
xiX=function(d){var H=d?_.kp(d):"";if(!H)return!1;H=H.toLowerCase();return H.indexOf("/show/")===0||H.indexOf("/playlist")===0&&(d=_.NM(d),d.list&&d.list.indexOf("EL")===0)?!0:!1};
mZ=function(d){var H="unknown",K;var c=((K=_.M(d==null?void 0:d.commandMetadata,_.Co))==null?void 0:K.webPageType)||"";c?(K=c.toLowerCase(),K.startsWith("web_page_type_")&&(K=K.slice(14))):K=c;K&&nxf[K.toUpperCase()]?H=nxf[K.toUpperCase()]:_.M(d,_.Lm)||_.M(d,C3h)?H="browse":_.M(d,_.Mv)?H="search":_.M(d,_.AP)&&(H="watch");H==="watch"&&_.hc(d||null)==="learning_journey_watch"&&(H="learning_journey_watch");H==="unknown"&&_.Jf(Error("Kf`"+JSON.stringify({clickTrackingParams:d==null?void 0:d.clickTrackingParams,
commandMetadata:d==null?void 0:d.commandMetadata,allEndpointKeys:Object.keys(d||[])})));return H};
_.wn=function(d){if(!_.R54||d)_.R54=_.CB();return _.R54};
_.V9C=function(d){return!!_.M(d,_.AP)||!!_.M(d,_.P5)&&_.h("kevlar_enable_shorts_prefetch")};
_.Ui5=function(d,H){d=_.M(d,_.AP)||_.M(d,_.P5);return"v"+d.videoId+(d.playlistId?"-pl"+d.playlistId:"")+(H?"-an1":"")+(d.params?"-pr"+d.params:"")};
uO=function(d){return function(){return new d}};
I3=function(d){var H=_.Kj();return function(){return H.resolve(d)}};
LHh=function(d){var H=_.iT("web_pbj_log_warning_rate",0);H=H>0&&Math.random()<H;if(!_.M(d,_.P5))return H&&_.Jf(Error("Nf")),!1;var K;return _.h("shorts_controller_retrieve_seedless_sequence_v2")&&((K=_.M(d,_.P5))==null?void 0:K.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:h54(d)?!0:(H&&_.Jf(Error("Of")),!1)};
h54=function(d){var H=(_.M(d,_.AP)||_.M(d,_.P5)).videoId;if(!H||!M9L.test(H))return!1;var K;return(d=(K=_.M(d.commandMetadata,_.Co))==null?void 0:K.url)&&(d.includes(H)||d.startsWith("/clip"))?!0:!1};
_.w6F=function(){var d=_.Lo();return d.getFlag(192)?d.getFlag(190):!(_.h("web_watch_cinematics_disabled_by_default")||_.h("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&miD())};
_.rn=function(d,H,K){var c={};c.currentUrl=H;c.vis=d.vis!==void 0?d.vis:0;c.splay=!1;H=_.Lo();c.autoCaptionsDefaultOn=H.getFlag(66);H.getFlag(141)?H.getFlag(140)?c.autonavState="STATE_OFF":c.autonavState="STATE_ON":c.autonavState="STATE_NONE";c.html5Preference="HTML5_PREF_WANTS";isNaN(_.Fm("STS"))||(c.signatureTimestamp=_.Fm("STS"));d.autonav&&(c.autoplay=!0,c.autonav=!0);d.mutedAutoplay&&(c.autoplay=!0,c.mutedAutoplay=!0);d.inlinePlayback&&(c.autoplay=!0,c.autonav=!1,c.isInlineUnmutedPlayback=!!d.inlineUnmuted);
c.referer=K;c.lactMilliseconds=d.lact!==void 0?d.lact.toString():"-1";_.h("enable_unknown_lact_fix_on_html5")&&c.lactMilliseconds==="-1"&&_.Jf(new _.m1("Unknown LACT is set in playbackContext.",{"lact in tempData":d.lact||"undefined",autonav:d.autonav||"undefined"}));d={};H.getFlag(194)&&(d.hasShownAmbientMode=!0);H.getFlag(192)&&(d.hasToggledOffAmbientMode=!0);_.w6F()&&(d.watchAmbientModeEnabled=!0);c.watchAmbientModeContext=d;return c};
P3D=function(d){var H={},K=d.pbis||0;K&&(H.playbackBeginsInSeconds=K);d.prefetch_reason&&d.prefetch_reason==="hc_pbis"&&(H.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return H};
_.B5=function(d){d=d===void 0?!1:d;var H=_.Lo(),K="USER_INTERFACE_THEME_LIGHT";H.getFlag(165)?K="USER_INTERFACE_THEME_DARK":H.getFlag(174)?K="USER_INTERFACE_THEME_LIGHT":_.W5()&&(K="USER_INTERFACE_THEME_DARK");return d?K:udF()||K};
_.ITF=function(){return!_.h("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.W5=function(){return _.ITF()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.ze=function(){var d=_.Lo();return _.ITF()&&!d.getFlag(165)&&!d.getFlag(174)};
udF=function(){var d=d===void 0?window.location.href:d;if(_.h("kevlar_disable_theme_param"))return null;var H=_.kp(d);if(_.rID(H))return"USER_INTERFACE_THEME_DARK";try{var K=_.NM(d).theme;return WHi.get(K)||null}catch(c){}return null};
_.rID=function(d){return _.h("enable_dark_theme_only_on_shorts")?!(d==null||!d.startsWith("/shorts/")):!1};
_.X6X=function(d,H,K,c,p){H=H===void 0?!1:H;K=K===void 0?!1:K;var g=_.Fm("INNERTUBE_CONTEXT");if(!g)return _.z5(Error("Rf")),{};g=(0,_.rs.unsafeClone)(g);_.h("web_no_tracking_params_in_shell_killswitch")||delete g.clickTracking;g.client||(g.client={});var a=g.client;a.clientName==="MWEB"&&a.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(a.clientFormFactor=_.Fm("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");a.screenWidthPoints=window.innerWidth;a.screenHeightPoints=window.innerHeight;a.screenPixelDensity=
Math.round(window.devicePixelRatio||1);a.screenDensityFloat=window.devicePixelRatio||1;a.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());a.userInterfaceTheme=_.B5();if(!H){var e=_.lLM();e&&(a.connectionType=e);_.h("web_log_effective_connection_type")&&(e=kRi())&&(g.client.effectiveConnectionType=e)}var k;if(_.h("web_log_memory_total_kbytes")&&((k=_.KF.navigator)==null?0:k.deviceMemory)){var C;k=(C=_.KF.navigator)==null?void 0:C.deviceMemory;g.client.memoryTotalKbytes=""+k*1E6}H&&c&&!_.h("web_it_context_set_original_url_ks")&&
(a.originalUrl=Bjl(_.KF.location.href,c).toString());_.h("web_gcf_hashes_innertube")&&(e=mv4())&&(C=e.coldConfigData,k=e.coldHashData,e=e.hotHashData,g.client.configInfo=g.client.configInfo||{},C&&(g.client.configInfo.coldConfigData=C),k&&(g.client.configInfo.coldHashData=k),e&&(g.client.configInfo.hotHashData=e));C=_.NM(_.KF.location.href);!_.h("web_populate_internal_geo_killswitch")&&C.internalcountrycode&&(a.internalGeo=C.internalcountrycode);!_.h("web_populate_client_screen_killswitch")&&p&&(a.clientScreen=
p);a.clientName==="MWEB"||a.clientName==="WEB"?(a.mainAppWebInfo||(a.mainAppWebInfo={}),a.mainAppWebInfo.graftUrl=c||_.KF.location.href,_.h("kevlar_woffle")&&_.XL.instance&&(c=_.XL.instance,a.mainAppWebInfo.pwaInstallabilityStatus=!c.appInstalledEventFired&&c.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),a.mainAppWebInfo.webDisplayMode=niF(),a.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):a.clientName==="TVHTML5"&&
(!_.h("web_lr_app_quality_killswitch")&&(c=_.Fm("LIVING_ROOM_APP_QUALITY"))&&(a.tvAppInfo=Object.assign(a.tvAppInfo||{},{appQuality:c})),c=_.Fm("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(a.tvAppInfo=Object.assign(a.tvAppInfo||{},{certificationScope:c}));!_.h("web_populate_time_zone_itc_killswitch")&&(c=qcl())&&(a.timeZone=c);(c=WWh())?a.experimentsToken=c:delete a.experimentsToken;a=BVl();c=_.z5Y();c=(0,_.rs.getValues)(c.tokenJars);g.request=Object.assign({},g.request,{internalExperimentFlags:a,consistencyTokenJars:c});
!_.h("web_prequest_context_killswitch")&&(a=_.Fm("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(g.request.externalPrequestContext=a);c=_.Lo();a=c.getFlag(58);c=c.get("gsml","");g.user=Object.assign({},g.user);a&&(g.user.enableSafetyMode=a);c&&(g.user.lockedSafetyMode=!0);_.h("warm_op_csn_cleanup")?K&&(H=_.Fj())&&(g.clientScreenNonce=H):!H&&(H=_.Fj())&&(g.clientScreenNonce=H);d&&(g.clickTracking={clickTrackingParams:d});if(d=_.OS("yt.mdx.remote.remoteClient_"))g.remoteClient=d;_.Jc.getInstance().setLocationOnInnerTubeContext(g);
try{var R=Yal(),V=R.bid;delete R.bid;g.adSignalsInfo={params:[],bid:V};for(var U=_.q(Object.entries(R)),L=U.next();!L.done;L=U.next()){var w=_.q(L.value),W=w.next().value,J=w.next().value;R=W;V=J;d=void 0;(d=g.adSignalsInfo.params)==null||d.push({key:R,value:""+V})}var F,Y;if(((F=g.client)==null?void 0:F.clientName)==="TVHTML5"||((Y=g.client)==null?void 0:Y.clientName)==="TVHTML5_UNPLUGGED"){var A=_.Fm("INNERTUBE_CONTEXT");A.adSignalsInfo&&(g.adSignalsInfo.advertisingId=A.adSignalsInfo.advertisingId,
g.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",g.adSignalsInfo.limitAdTracking=A.adSignalsInfo.limitAdTracking)}}catch(E){_.z5(E)}return g};
_.JIL=function(d){var H=new sb(_.Fm("ONE_PICK_URL",""));H.urlParamMap_.set("hostId",d);(d=_.Fm("GAPI_LOCALE"))&&H.urlParamMap_.set("hl",d);(d=_.Fm("SESSION_INDEX"))&&H.urlParamMap_.set("authuser",d);(d=_.Fm("DELEGATED_SESSION_ID"))&&H.urlParamMap_.set("groupId",d);return H};
FH5=function(){var d=_.Kj(),H=d.resolve(_.FL);d=d.resolve(_.Z8);return new sLL(H,d)};
TjE=function(d){if(window.IntersectionObserver)return new Z_E(d,400);throw new TypeError("Yf");};
t9M=function(){var d=Hammer.TouchAction,H=d.prototype.preventDefaults;d.prototype.preventDefaults=function(K){var c=this.actions.indexOf("pan-down")>-1;if(!c)return H.call(this,K);if(!QLC){var p=K.srcEvent;K=K.direction;var g;if((g=this.manager)==null?0:g.session.prevented)p.preventDefault();else if(c&&K&Hammer.DIRECTION_DOWN)return this.preventSrc(p)}}};
Yth=function(d){if(!d||d.size===0)return Hammer.DIRECTION_ALL;if(d.size===2){if(d.has("up")&&d.has("down"))return Hammer.DIRECTION_VERTICAL;if(d.has("right")&&d.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(d.size===1){if(d.has("up"))return Hammer.DIRECTION_UP;if(d.has("down"))return Hammer.DIRECTION_DOWN;if(d.has("right"))return Hammer.DIRECTION_RIGHT;if(d.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.StX=function(){return O_h?Promise.resolve(O_h):new Promise(function(d,H){var K=self.indexedDB.open("swpushnotificationsdb");K.onerror=H;K.onsuccess=function(){var c=K.result;if(c.objectStoreNames.contains("swpushnotificationsstore"))O_h=c,d(O_h);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.StX()};
K.onupgradeneeded=ExC})};
ExC=function(d){d=d.target.result;d.objectStoreNames.contains("swpushnotificationsstore")&&d.deleteObjectStore("swpushnotificationsstore");d.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
b_E=function(d){var H=yIh(),K;return _.l(function(c){switch(c.nextAddress){case 1:return _.e2(c,2),c.yield(d.match(H,{cacheName:"yt-appshell-assets"}),4);case 4:K=c.yieldResult;_.Em(c,3);break;case 2:_.RV(c);case 3:return c.return(K)}})};
yIh=function(){var d=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?NjF.registration.scope:Di1;d.endsWith("/")&&(d=d.slice(0,-1));return d+"/app_shell_home"};
fTF=function(d){d.map(function(H){return H.source}).join("|")};
_.AIX=function(d){return _.l(function(H){return H.return(b_E(d))})};
jL4=function(){var d=window.caches,H;return _.l(function(K){if(K.nextAddress==1)return K.yield(_.AIX(d),2);H=K.yieldResult;return K.return(!!H)})};
p$l=function(){_.l(function(d){if(d.nextAddress==1){if(vx1)return d.jumpTo(0);vx1=!0;if(_.h("enable_system_health_primes_monitoring"))return _.lT(dF4,3E4),HJF(),d.return();if(!(Math.random()<_.iT("web_system_health_fraction")))return d.jumpTo(0);$FY={heightPixels:screen.height,widthPixels:screen.width};Te&&!isNaN(Te.jsHeapSizeLimit)&&($FY.memoryTotalKbytes=String(Math.round(Te.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&($FY.devicePixelRatio=window.devicePixelRatio);return d.yield(KLF(),4)}_.lT(dF4,
3E4);return d.yield(cVh(),0)})};
KLF=function(){return _.l(function(d){if(d.nextAddress==1)return QS.intersectionObserverPresent="IntersectionObserver"in window,QS.serviceWorkerPresent="serviceWorker"in navigator,QS.webSharePresent="share"in navigator,QS.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,QS.cacheStoragePresent="caches"in window,QS.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,QS.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
QS.webkitTemporaryStoragePresent="webkitTemporaryStorage"in tc&&tc.webkitTemporaryStorage&&"queryUsageAndQuota"in tc.webkitTemporaryStorage,QS.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",d.yield(ScF(),2);QS.indexedDbPresent=d.yieldResult;QS.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;QS.broadcastChannelPresent="BroadcastChannel"in window;QS.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(QS.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,QS.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.VE(d)})};
dF4=function(){var d=9E4+Math.random()*2E3;_.cd()>d||(_.h("enable_system_health_primes_monitoring")?HJF():cVh())};
cVh=function(){var d;return _.l(function(H){if(H.nextAddress==1)return H.yield(gnF(),2);d=H.yieldResult;_.Wd("systemHealthCaptured",d);_.VE(H)})};
HJF=function(){var d={metric:{}},H=iJE();H.networkEvents.length&&(d.metric.networkEvents=G4i(H));_.Wd("systemHealthCaptured",d)};
gnF=function(){var d,H,K,c,p,g,a,e,k,C;return _.l(function(R){switch(R.nextAddress){case 1:d={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};H=window.screen;_.h("enable_is_extended_monitoring")&&H&&"isExtended"in H&&(d.isExtended=!!H.isExtended);K={metric:{staticContext:$FY,dynamicContext:d,webMetric:onh,webApiSupport:QS}};
if(c=_.Fj())K.csn=c;Te&&(K.metric.webMetric.currentHeapKbytes=Math.round(Te.usedJSHeapSize/1E3));window.matchMedia&&(K.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,K.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,K.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in tc&&typeof tc.getBattery==="function")){R.jumpTo(2);break}return R.yield(tc.getBattery(),3);case 3:if(p=
R.yieldResult)K.metric.dynamicContext.chargingStatus=p.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(K.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(QS.storageEstimatePresent)return R.yield(navigator.storage.estimate(),8);if(!QS.webkitTemporaryStoragePresent){R.jumpTo(5);break}return R.yield(qg5(),7);case 7:g=R.yieldResult;R.jumpTo(5);break;case 8:g=R.yieldResult;case 5:return K.metric.dynamicContext.deviceStorageQuotaMbytes=((a=g)==null?0:a.quota)?String(Math.round(g.quota/
1048576/10)*10):"-1",K.metric.dynamicContext.deviceStorageUsageMbytes=((e=g)==null?0:e.usage)?String(Math.round(g.usage/1048576/10)*10):"-1",k=K.metric.dynamicContext,R.yield(jL4(),9);case 9:return k.hasAppShell=R.yieldResult,C=iJE(),C.networkEvents.length&&(K.metric.networkEvents=G4i(C)),R.return(K)}})};
qg5=function(){return new Promise(function(d){var H;QS.webkitTemporaryStoragePresent&&(H=tc.webkitTemporaryStorage)!=null&&H.queryUsageAndQuota?tc.webkitTemporaryStorage.queryUsageAndQuota(function(K,c){d({usage:K,quota:c})}):d(void 0)})};
_.Yi=function(d){d&=16777215;d=[(d&16711680)>>16,(d&65280)>>8,d&255];return aFL(d[0],d[1],d[2])};
_.Ob=function(d){d=[(d&16711680)>>>16,(d&65280)>>>8,d&255,(d&4278190080)>>>24];var H=_.lF4(d,function(K){return K==(K&255)});
d[3]=(d[3]/255).toFixed(3);if(!H)throw Error("Zf`"+d.join(","));return"rgba("+d.join(",")+")"};
_.emi=function(d){return[(d&16711680)>>>16,(d&65280)>>>8,d&255]};
_.k4Y=function(d){d=d.map(function(H){H/=255;return H<=.03928?H/12.92:Math.pow((H+.05)/1.05,2.4)});
return d[0]*.2126+d[1]*.7152+d[2]*.0722};
Sh=function(d,H){d=_.emi(d);return"rgba("+d[0]+", "+d[1]+", "+d[2]+", "+H+")"};
_.xF1=function(){try{return!!self.localStorage}catch(d){return!1}};
VW1=function(){if(nnD())_.Jf(Error("$f"));else{var d=document.createElement("iframe");d.style.display="none";var H=H===void 0?window.location.href:H;var K=_.J5(_.Fm("PERSIST_IDENTITY_IFRAME_URL"));H=K?K:(new URL(H)).host.indexOf("studio")===0?_.pB(Cmf,"persist_identity"):_.pB(Rm4,"persist_identity");_.c1E(d,1,H);d.id="persist_identity";var c;(c=document.body)==null||c.appendChild(d)}};
nnD=function(){var d=UFM;d||(d=document.querySelector("#persist_identity"));return d};
hmi=function(){var d=!1;try{d=!!window.sessionStorage.getItem("session_logininfo")}catch(H){d=!0}return(_.Fm("INNERTUBE_CLIENT_NAME")==="WEB"||_.Fm("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&d};
LLY=function(d,H){if(!hmi())return!1;H||(H=_.Fm("LOGIN_INFO"));return H?(d.session_logininfo=H,!0):!1};
mFh=function(d,H){d=d===void 0?!1:d;if((H===void 0||!H)&&MW5!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Qx("LOG_STICKINESS",!1)){H=_.Fj();var K=_.so(),c={identityStickinessData:{initialState:MW5}};H&&K&&_.j5(H,K,c)}if(H=nnD())if(K=H.src?(new URL(H.src)).origin:"*",d){var p;(p=H.contentWindow)==null||p.postMessage({action:"clear"},K)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(d=window.sessionStorage.getItem("session_logininfo"))){var g;(g=H.contentWindow)==null||g.postMessage({loginInfo:d},K)}};
_.Eb=function(d){d=d===void 0?!0:d;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.sS("LOGIN_INFO",""),d&&window.sessionStorage.setItem("from_switch_account","1"),mFh(!0,d)}catch(H){}};
w$L=function(d){d&&(d.startsWith("https://accounts.google.com/AddSession")?_.Eb():d.startsWith("https://accounts.google.com/ServiceLogin")?_.Eb():d.startsWith("https://myaccount.google.com")&&_.Qe(d).getPath().endsWith("/youtubeoptions")&&_.Eb())};
yS=function(d,H){w$L(d);if(_.Qx("LOGGED_IN",!0)&&hmi()){var K=xsM(d);K==null&&(K={});LLY(K,H)&&_.Hy(d,K)}};
Pml=function(){function d(H){for(H=H.target;H&&H.nodeName!=="A";)if(H=H.parentNode,!(H&&H instanceof HTMLElement))return;if(H&&!H.hasAttribute("download")&&H.getAttribute("rel")!=="external"&&H.href)return H.href}
document.addEventListener("mousedown",function(H){H.button!==0&&(H=d(H))&&yS(H)});
document.addEventListener("click",function(H){(H=d(H))&&yS(H)})};
rV5=function(){var d=new ukM;try{if(_.Qx("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(e){d.increment(5,!1);return}if(_.Fm("LOGIN_INFO")){var H=IF5?IF5:window.location;_.Fm("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&VW1();var K=xsM(H.href);K==null&&(K={});var c=K.session_logininfo,p=Number(window.sessionStorage.getItem("stickiness_reload")),g=c===_.Fm("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
p>=2||g)p>=2?d.increment(2,g):g?d.increment(7,g):window.sessionStorage.getItem("session_logininfo")||(d.increment(3,g),MW5="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Fm("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Fm("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))d.increment(4,g),window.sessionStorage.removeItem("stickiness_reload");
else if(p<2){window.sessionStorage.setItem("stickiness_reload",String(p+1));var a=H.href;a=_.$W(a,"sttick");yS(a,window.sessionStorage.getItem("session_logininfo"));a=_.DY(a,{sttick:p});d.increment(p,g);_.qE1(H,a)}}else d.increment(6,!1)}else _.Eb(!1)}catch(e){}};
_.bO=function(d,H,K,c,p){H=H===void 0?{}:H;K=K===void 0?"":K;c=c===void 0?window:c;d=_.f6(d,H);yS(d);K=_.Xa(d+K,p);_.qE1(c.location,K)};
_.WLh=function(d,H,K,c,p){p=p===void 0?!1:p;K&&_.Hy(d,K);K=_.Xa(d);var g=_.IK(K);d!=g&&_.SD(Error("ag`"+d));d=g;H=H||Eo(d).toString(36);try{if(p)return p=d,p=VvF(p),yS(p),_.EH(window,p,H,"attributionsrc")}catch(a){_.tm(a)}yS(d);return _.EH(window,K,H,c)};
BbM=function(d){if(d.urlEndpoint){if(d=_.NM(d.urlEndpoint.url),d.adurl)return Hb(d.adurl)}else if(d.watchEndpoint)return"//www.youtube.com/watch?v="+d.watchEndpoint.videoId;return null};
zmh=function(d){if(!d||!d.reportingPings)return null;var H={};d.reportingPings.forEach(function(K){K.pingType in H?H[K.pingType].push(K.url):H[K.pingType]=[K.url]});
return{adpings:nWY(H)}};
_.Nv=function(){return{isShellLoad:_.Qx("IS_SHELL_LOAD",!1)}};
JV5=function(){navigator.serviceWorker.getRegistrations().then(function(d){d.forEach(X$Y)})};
X$Y=function(d){d&&_.saC(FLl,d.scope)};
_.saC=function(d,H){H={scope:H||_.GJ("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Lc(d),H)};
D8=function(d,H,K,c){if(H&&H.serializedYpcCujLoggingParams){if(K){var p={};p.transactionErrorType=K;c&&(p.errorMessage=c);H.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:p}}}K={};K.ypcCujContext=H;d=_.nm("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",d,K);_.Cm(_.R3(),d,"FLOW_TYPE_YPC_ACQUISITION")}};
_.ZJf=function(d,H,K,c){var p={};p.serializedTransactionFlowLoggingParams=H;K&&(p.errorType=K);c&&(p.errorMessage=c);_.Wd(d,p);_.Bd()};
_.Tbf=function(d){d&&_.ZJf("transactionFlowStarted",d)};
_.Qa1=function(d){d&&_.ZJf("transactionFlowCancelled",d)};
_.fm=function(d,H,K){H&&_.ZJf("transactionFlowFailed",H,d,K)};
tW5=function(d){var H=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");H&&(H.inert=d)};
_.Ac=function(){this.megabloxUrl_=null};
_.jh=function(d){try{var H=Yg4==null?void 0:Yg4.composedPath(d)}catch(K){H=d.composedPath?d.composedPath():[]}return H&&H.length>0?H:d.composedPath?d.composedPath():[]};
_.v5=function(d){return _.jh(d)[0]};
_.d4=function(d){if(!(d instanceof Element))return null;d=d.classList?Array.from(d.classList):void 0;if(!d)return null;var H=d.indexOf("style-scope");return H>-1&&H+1<d.length?d[H+1]:null};
Hj=function(d){if(!(d instanceof HTMLElement))return null;var H=d&&(d.$$||d.polymerController)?d.tagName.toLowerCase():null;return H?H:_.d4(d)};
OJY=function(d,H){return d.replace(/[^a-z]*[^\s]+/g,function(K){return K+".style-scope."+H})};
SgY=function(d,H){return H?d.split(",").map(function(K){return OJY(K.trim(),H)}).join(", "):d};
_.$f=function(d){var H,K,c,p;return(p=(c=(K=(H=d.root)!=null?H:d.shadowRoot)!=null?K:d.__shady_native_shadowRoot)!=null?c:d.__shady_shadowRoot)!=null?p:d};
KK=function(d){return d instanceof ShadowRoot?ShadowRoot:d instanceof DocumentFragment?DocumentFragment:d instanceof Document?Document:HTMLElement};
EnY=function(d){var H,K,c;return(c=(K=(H=d.parentElement)!=null?H:d.__shady_native_parentElement)!=null?K:d.__shady_parentElement)!=null?c:null};
yVF=function(d){var H,K,c;return(c=(K=(H=d.parentNode)!=null?H:d.__shady_native_parentNode)!=null?K:d.__shady_parentNode)!=null?c:null};
bJ4=function(d){var H,K,c;return(c=(K=(H=d.__shady_parentNode)!=null?H:d.__shady_native_parentNode)!=null?K:d.parentNode)!=null?c:null};
NbL=function(d){var H,K;return(K=(H=yVF(d))!=null?H:d.host)!=null?K:null};
DF1=function(d){var H,K,c;return(c=(K=(H=d.nextSibling)!=null?H:d.__shady_native_nextSibling)!=null?K:d.__shady_nextSibling)!=null?c:null};
fFf=function(d){var H,K,c;return(c=(K=(H=d.previousSibling)!=null?H:d.__shady_native_previousSibling)!=null?K:d.__shady_previousSibling)!=null?c:null};
AVL=function(d){var H,K,c;return(c=(K=(H=d.nextElementSibling)!=null?H:d.__shady_native_nextElementSibling)!=null?K:d.__shady_nextElementSibling)!=null?c:null};
jaD=function(d){var H,K,c;return(c=(K=(H=d.previousElementSibling)!=null?H:d.__shady_native_previousElementSibling)!=null?K:d.__shady_previousElementSibling)!=null?c:null};
vnX=function(d){var H,K,c;return new Set([].concat(_.ru((H=d.children)!=null?H:[]),_.ru((K=d.__shady_native_children)!=null?K:[]),_.ru((c=d.__shady_children)!=null?c:[])))};
dEY=function(d){var H,K,c;return new Set([].concat(_.ru((H=d.childNodes)!=null?H:[]),_.ru((K=d.__shady_native_childNodes)!=null?K:[]),_.ru((c=d.__shady_childNodes)!=null?c:[])))};
HQ5=function(d){if(!d)return null;var H=_.d4(d);if(!H){var K;return(K=Node.prototype.getRootNode)==null?void 0:K.call(d)}H=H.toUpperCase();for(d=EnY(d);d&&d.tagName!==H;)d=EnY(d);return d?_.$f(d):null};
$EF=function(d){for(;d&&!(d instanceof HTMLElement);)d=NbL(d);return d};
KDD=function(d){var H=$EF(d);return d===H?_.d4(d):H?Hj(H):null};
cyF=function(d){return(d=$EF(d))?Hj(d):null};
p24=function(d){if(d instanceof Comment)return!1;if(d instanceof Text){var H,K;if(((K=(H=d.textContent)==null?void 0:H.trim())!=null?K:"")==="")return!1}return!0};
cj=function(d,H,K){var c=H(d);for(K=K===void 0?cyF(d):K;c&&(KDD(c)!==K||!p24(c));)d=c,c=H(d);return c};
gAf=function(d,H,K){if(!H)return null;d=cyF(d);return KDD(H)===d&&p24(H)?H:cj(H,K,d)};
iQY=function(d){return cj(d,bJ4,_.d4(d))};
Gsl=function(d){return cj(d,AVL)};
oAF=function(d){return cj(d,DF1)};
qxM=function(d){return cj(d,jaD)};
aMl=function(d){return cj(d,fFf)};
lMl=function(d){return gAf(d,d.firstChild||d.__shady_native_firstChild||d.__shady_firstChild||null,DF1)};
eUl=function(d){var H,K,c;var p=(c=(K=(H=d.firstElementChild)!=null?H:d.__shady_native_firstElementChild)!=null?K:d.__shady_firstElementChild)!=null?c:null;return gAf(d,p,AVL)};
ksf=function(d){var H,K,c;var p=(c=(K=(H=d.lastChild)!=null?H:d.__shady_native_lastChild)!=null?K:d.__shady_lastChild)!=null?c:null;return gAf(d,p,fFf)};
xE5=function(d){var H,K,c;var p=(c=(K=(H=d.lastElementChild)!=null?H:d.__shady_native_lastElementChild)!=null?K:d.__shady_lastElementChild)!=null?c:null;return gAf(d,p,jaD)};
nA1=function(d){var H=cyF(d);return Array.from(dEY(d)).filter(function(K){return KDD(K)===H})};
CN1=function(d){var H=Hj(d);return Array.from(vnX(d)).filter(function(K){return _.d4(K)===H})};
_.pK=function(d,H,K){if(d instanceof HTMLElement&&_.d4(d)===K){var c=Array.from(d.classList).indexOf("style-scope");if(c===-1)d.classList.add("style-scope"),d.classList.add(H);else if(!(c+1>=d.classList.length)){c=d.classList[c+1];var p,g;d==null||(p=d.classList)==null||(g=p.replace)==null||g.call(p,c,H)}}if(d instanceof HTMLElement||d instanceof DocumentFragment)for(p=_.q(vnX(d)),g=p.next();!g.done;g=p.next())_.pK(g.value,H,K);return d};
g4=function(d,H){if(d instanceof HTMLElement&&_.d4(d)===H){var K=Array.from(d.classList).indexOf("style-scope");K===-1||K+1>=d.classList.length||d.classList.remove("style-scope",d.classList[K+1])}if(d instanceof HTMLElement||d instanceof DocumentFragment){K=_.q(d.children);for(var c=K.next();!c.done;c=K.next())g4(c.value,H)}return d};
_.RUC=function(d,H){return KK(d).prototype.appendChild.call(d,H)};
VwX=function(d,H){if(d===H)return!0;d=dEY(d);return Array.from(d).some(function(K){return VwX(K,H)})};
_.Gn=function(d,H){if(d instanceof is)return d;(H==null?0:H.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(d,"ownerDocument")&&Object.defineProperty(d,"ownerDocument",{get:function(){return window.document}});
return new is(d)};
hUf=function(){var d=is.prototype,H=[].concat(_.ru(UE5?[]:["getRootNode"]),["setAttribute","removeAttribute"]);H=_.q(H);for(var K=H.next(),c={};!K.done;c={method$jscomp$51:void 0},K=H.next())c.method$jscomp$51=K.value,d[c.method$jscomp$51]=function(p){return function(){return this.host[p.method$jscomp$51].apply(this.host,arguments)}}(c)};
MwM=function(){var d=is.prototype,H=[].concat(_.ru(UE5?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.ru(LDF?[]:["querySelector","querySelectorAll"]));H=_.q(H);for(var K=H.next(),c={};!K.done;c={method$jscomp$52:void 0},K=H.next())c.method$jscomp$52=K.value,d[c.method$jscomp$52]=function(p){return function(){return this.root[p.method$jscomp$52].apply(this.root,arguments)}}(c)};
PNl=function(){var d=is.prototype,H=[].concat(_.ru(mE5?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.ru(w2Y?[]:["parentNode"]));H=_.q(H);for(var K=H.next(),c={};!K.done;c={prop$jscomp$63:void 0},K=H.next())c.prop$jscomp$63=K.value,Object.defineProperty(d,c.prop$jscomp$63,{get:function(p){return function(){return this.host[p.prop$jscomp$63]}}(c),
configurable:!0})};
ryE=function(){var d=is.prototype,H=["activeElement"].concat(_.ru(mE5?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.ru(uY1?[]:["children"]),_.ru(IMY?[]:["lastChild"]));H=_.q(H);for(var K=H.next(),c={};!K.done;c={prop$jscomp$64:void 0},K=H.next())c.prop$jscomp$64=K.value,Object.defineProperty(d,c.prop$jscomp$64,{get:function(p){return function(){return this.root[p.prop$jscomp$64]}}(c),
configurable:!0})};
WDE=function(){for(var d=is.prototype,H=_.q(["innerHTML","textContent"]),K=H.next(),c={};!K.done;c={prop$jscomp$65:void 0},K=H.next())c.prop$jscomp$65=K.value,Object.defineProperty(d,c.prop$jscomp$65,{get:function(p){return function(){return this.root[p.prop$jscomp$65]}}(c),
set:function(p){return function(g){this.root[p.prop$jscomp$65]=g}}(c),
configurable:!0})};
B$1=function(d){var H=is.prototype;d=_.q(Object.entries(d));for(var K=d.next(),c={};!K.done;c={fn$jscomp$392:void 0},K=d.next()){var p=_.q(K.value);K=p.next().value;p=p.next().value;c.fn$jscomp$392=p;H[K]=function(g){return function(){return g.fn$jscomp$392.apply(null,[this.host.node||this.host].concat(_.ru(arguments)))}}(c)}};
X2h=function(){for(var d=is.prototype,H=_.q(Object.entries(zUM)),K=H.next(),c={};!K.done;c={fn$jscomp$393:void 0},K=H.next()){var p=_.q(K.value);K=p.next().value;p=p.next().value;c.fn$jscomp$393=p;Object.defineProperty(d,K,{get:function(g){return function(){return g.fn$jscomp$393.apply(null,[this.host.node||this.host].concat(_.ru(arguments)))}}(c),
configurable:!0})}};
_.o1=function(d){return d instanceof Jyf||d instanceof Document?d:new Jyf(d)};
sX5=function(){for(var d=Jyf.prototype,H=_.q("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),K=H.next(),c={};!K.done;c={method$jscomp$53:void 0},K=H.next())c.method$jscomp$53=K.value,d[c.method$jscomp$53]=function(p){return function(){return HTMLElement.prototype[p.method$jscomp$53].call.apply(HTMLElement.prototype[p.method$jscomp$53],[this.node].concat(_.ru(arguments)))}}(c)};
FDL=function(){for(var d=Jyf.prototype,H=_.q("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),K=H.next(),c={};!K.done;c={prop$jscomp$66:void 0},K=H.next())c.prop$jscomp$66=K.value,Object.defineProperty(d,c.prop$jscomp$66,{get:function(p){return function(){var g;return(g=this.node["__shady_native_"+p.prop$jscomp$66])!=null?g:this.node[p.prop$jscomp$66]}}(c),
configurable:!0})};
_.qr=function(d,H,K){K===void 0&&(K=!d.classList.contains(H));K?d.classList.add(H):d.classList.remove(H)};
_.a1=function(d,H,K){K===void 0&&(K=!d.hasAttribute(H));if(H==="class")throw Error("eg");K?_.o1(d).setAttribute(H,""):_.o1(d).removeAttribute(H)};
ZQF=function(d){return(d.localName!=="slot"?[]:(0,_.ls)(d).assignedNodes({flatten:!0})).filter(function(H){return H.nodeType===Node.ELEMENT_NODE})};
_.T$L=function(d){return(d=_.Gn(d).querySelector("slot"))&&d.localName==="slot"?ZQF(d):[]};
_.eO=function(d,H){window.ShadyCSS&&window.ShadyCSS.styleSubtree(d,H)};
kf=function(d,H){var K=H.bind(d);return function(c){K(c,c.detail)}};
_.xf=function(d,H){var K=QXi.get(d);K||(K=new WeakMap,QXi.set(d,K));if(K.has(H))return K.get(H);if(_.h("web_fi_listen_disable_bound_fn_helper")){var c=H.bind(d);d=function(p){c(p,p==null?void 0:p.detail)}}else d=kf(d,H);
K.set(H,d);return d};
OQE=function(d,H){twX(d);d.created[Yxh].push(H)};
twX=function(d){if(!d.created||!d.created[Yxh]){var H=d.created,K=H?[H]:[];d.created=function(){for(var c=_.q(K),p=c.next();!p.done;p=c.next())p.value.apply(this)};
d.created[Yxh]=K}};
Sxf=function(d){return function(){var H=_.sH.apply(0,arguments);return function(K,c,p){d.apply(null,_.ru(H))(K,c,p)}}};
EAE=function(){return function(){var d=_.sH.apply(0,arguments);return function(H,K,c){zWD.apply(null,_.ru(d))(H,K,c)}}};
_.u=function(d){return EAE()(d)};
_.I=function(){return Sxf(FsM).apply(null,_.ru(_.sH.apply(0,arguments)))};
_.nK=function(d){return _.h("pbcm_fi_listen_decorators")?yy1(d):Sxf(J9L)(d)};
yy1=function(d){return function(H,K){OQE(H,function(){var c=this[K],p=_.h("web_fi_listen_disable_bound_fn_helper")?function(g){c(g,g.detail)}.bind(this):kf(this,c);
bQf.has(d)?s_(this.hostElement,d,p):this.hostElement.addEventListener(d,p)})}};
_.CK=function(){return Sxf(spl).apply(null,_.ru(_.sH.apply(0,arguments)))};
_.r=function(d){d=d===void 0?{}:d;return Sxf(XrE)(d)};
_.R1=function(d){if(d.hostElement&&d!==d.hostElement){var H=_.Iu(d.hostElement);H=d.renderIdom?H:H.shadowRoot}H||(d=d.root,H=d instanceof Node?_.Iu(d):null);return H};
_.VP=function(d){return N$5?DE1(d):function(H,K){Object.defineProperty(H,K,{get:function(){var c;return(c=_.R1(this))==null?void 0:c.querySelector(d)},
enumerable:!0,configurable:!0})}};
DE1=function(d){return function(H,K){Object.defineProperty(H,K,{get:function(){var c,p=(c=_.Gn(this.hostElement))==null?void 0:c.querySelector(d);if(p)return p;var g;return(g=_.R1(this))==null?void 0:g.querySelector(d)},
enumerable:!0,configurable:!0})}};
_.UI=function(d){return N$5?fMD(d):function(H,K){Object.defineProperty(H,K,{get:function(){var c;return(c=_.R1(this))==null?void 0:c.querySelectorAll(d)},
enumerable:!0,configurable:!0})}};
fMD=function(d){return function(H,K){Object.defineProperty(H,K,{get:function(){var c,p=(c=_.Gn(this.hostElement))==null?void 0:c.querySelectorAll(d);if(p==null?0:p.length)return p;var g;return(g=_.R1(this))==null?void 0:g.querySelectorAll(d)},
enumerable:!0,configurable:!0})}};
AyF=function(d){return function(H){if(![_.$K,_.B].includes(Object.getPrototypeOf(H.prototype).constructor))throw Error("fg");m54(Object.assign({},typeof d!=="string"?d:{is:d,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(H)}};
_.LK=function(){var d=d===void 0?{}:d;return function(H){if(![KO,_.hB].includes(Object.getPrototypeOf(H.prototype).constructor))throw Error("gg");wri(Object.assign({},d,{disableInheritanceCheck:!0}))(H)}};
vA4=function(d,H){jXE[d]!=null||(jXE[d]=new Set);jXE[d].add(H)};
_.Mr=function(){var d=_.CK.apply(null,_.ru(_.sH.apply(0,arguments)));return function(H,K){vA4(H.is,K);d(H,K)}};
Pj=function(d,H,K){if(mJ(d)&&!dzC.has(H)){H=H.replace(/^JSC\$[\d]+_/,"");H=H.replace(/\.\d+(\.|$)/g,function(g,a){return".#"+a});
w4[d]!=null||(w4[d]={});var c,p;(c=w4[d])[p=H]!=null||(c[p]=new Set);w4[d][H].has(K)||(w4[d][H].add(K),_.Wd("polymerPropertyAccessEvent",{componentName:d,propertyName:H,accessType:K}))}};
HgF=function(){return _.h("polymer_property_access_logging_debug")||_.h("polymer_enable_property_access_logging")};
mJ=function(d){if(_.h("polymer_property_access_logging_debug"))return!0;if(!_.h("polymer_enable_property_access_logging"))return!1;$zY||($zY=Date.now());return(Eo(d)+$zY)%100<_.iT("polymer_property_access_logging_percent")};
Kv1=function(d,H){return mJ(H)&&d.hostElement.loggingStatus?new Proxy(d,{get:function(K,c,p){if(K.hostElement.loggingStatus.bypassProxyController)return K[c];K.hostElement.loggingStatus.isExternalGet=!0;var g=K[c];K.hostElement.loggingStatus.isExternalGet=!1;if(g instanceof Function)return function(){var a=_.sH.apply(0,arguments);try{return K.hostElement.loggingStatus.currentExternalCall=c,Pj(H,c,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),g.apply(this===p?K:this,a)}finally{K.hostElement.loggingStatus.currentExternalCall=
void 0}};
Pj(H,c,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return g},
set:function(K,c,p){if(K.hostElement.loggingStatus.bypassProxyController)return K[c]=p,!0;K.hostElement.loggingStatus.isRendererStamper?Pj(H,c,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):K.hostElement.loggingStatus.isDeclarativeExternal||Pj(H,c,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{K.hostElement.loggingStatus.currentExternalSet=c,K[c]=p}finally{K.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):d};
cYf=function(d,H){d&&d.loggingStatus&&!d.loggingStatus.isDeclarativeExternal&&!d.loggingStatus.isExternalGet&&d.loggingStatus.currentExternalSet!==H&&Pj(d.tagName.toLowerCase(),H,"PROPERTY_ACCESS_GET_INTERNAL")};
r4=function(d,H,K){d&&(K||d.loggingStatus&&!d.loggingStatus.isInitializing&&!d.loggingStatus.isDefiningPropertyAccessor&&d.loggingStatus.currentExternalSet!==H)&&Pj(d.tagName.toLowerCase(),H,"PROPERTY_ACCESS_SET_INTERNAL")};
phF=function(){return{_definePropertyAccessor:function(d,H){var K=this,c=K.hostElement.loggingStatus;c&&(c.isDefiningPropertyAccessor=!0);var p=K[d];p!==void 0&&(K.__data?K._setPendingProperty(d,p):(K.__dataProto!=null||(K.__dataProto={}),K.__dataProto[d]=p));c&&(c.isDefiningPropertyAccessor=!1);Object.defineProperty(this,d,{get:function(){cYf(K.hostElement,d);return this.__data[d]},
set:function(g){H||this._setPendingProperty(d,g,!0)&&this._invalidateProperties()}})},
created:function(){var d=this._setPendingProperty.bind(this);this._setPendingProperty=function(H,K,c){r4(this.hostElement,H);return d.apply(this,[H,K,c])}}}};
gQ5=function(d){HgF()&&_.u(Wj.prototype)(d.prototype,"__templateBindingLoggingBehavior")};
igF=function(d,H){if(H.resolvedFactories.length!==d.resolvedFactories.length)return!0;H=_.q(H.resolvedFactories.entries());for(var K=H.next();!K.done;K=H.next()){var c=_.q(K.value);K=c.next().value;c=c.next().value;if(c.providerClass){if(c.providerClass!==d.resolvedFactories[K].providerClass)return!0}else if(c.providerValue){if(c.providerValue!==d.resolvedFactories[K].providerValue)return!0}else if(c.factory!==d.resolvedFactories[K].factory)return!0}return!1};
GXl=function(d,H){d=_.q(d);for(var K=d.next();!K.done;K=d.next())if(K=K.value,K.constructor===Array)GXl(K,H);else{var c=H;c.has(K)||(K.inject&&c.add(K),K.behaviors&&GXl(K.behaviors,c))}};
Bj=function(d,H){var K=d[H];d[H]=function(){var c=_.sH.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(K)return K.apply(this,c)}};
lsF=function(){_.zn.Class=function(K,c){K=oQY(K,c);Bj(K.prototype,"created");return K};
Bj(XQ.prototype,"_initializeProperties");Bj(_.JB.prototype,"_initializeProperties");if(qdE)Bj(asF,"created");else{var d=function(){Bj(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))d();else{var H=customElements.define;customElements.define=function(K,c,p){H.call(customElements,K,c,p);K==="tp-yt-iron-list"&&(d(),customElements.define=H)}}}};
kXF=function(d,H){d.prototype.behaviors=d.prototype.behaviors||[];d.prototype.behaviors.unshift(ePf.InjectBehavior);d.prototype.provide=H};
_.ZV=function(d){return function(H){if(!d.disableElementRegistration){d.noInjection||kXF(H,d.providers);var K=H.prototype;K.__templateHelpers||zWD(sI.prototype)(K,"__templateHelpers");K=d.is;xzh||(xzh=Date.now());(Eo(K)+xzh)%100<_.iT("polymer_log_prop_change_observer_percent")&&zWD(FQ.prototype)(H.prototype,"__propertyObserverObserver");H.prototype.behaviors=H.prototype.behaviors||[];H.prototype.behaviors.unshift(_.nQ5.YtHostElementBehavior);gQ5(H);AyF({is:d.is,notifyObserversOnUndefined:d.notifyObserversOnUndefined!==
!1,fastInit:d.fastInit,template:d.template,disableEnforceFastDefaultValuesCheck:!0})(H)}}};
_.Z=function(d){return _.ZV({is:d.is,template:d.template,disableElementRegistration:d.disableElementRegistration,cssBuildOptOut:d.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
V6h=function(d,H){if(ClD){d=new d;for(var K=_.q(Object.getOwnPropertyNames(d)),c=K.next();!c.done;c=K.next())c=c.value,H[c]=d[c];for(K=H;K&&K!==Object.prototype;K=Object.getPrototypeOf(K)){c=_.q(Object.getOwnPropertyNames(K));for(var p=c.next();!p.done;p=c.next())p=p.value,d.hasOwnProperty(p)||Object.defineProperty(d,p,RPC(H,p))}}else d.apply(H)};
RPC=function(d,H){return{get:function(){var K=d[H];return K instanceof Function?K.bind(d):K},
set:function(K){d[H]=K}}};
hP4=function(d,H){for(var K=d._noAccessors,c=_.q(Object.getOwnPropertyNames(d)),p=c.next();!p.done;p=c.next())if(p=p.value,!Uz1.has(p))if(K)H[p]=d[p];else{var g=Object.getOwnPropertyDescriptor(d,p);g&&(g.configurable=!0,Object.defineProperty(H,p,g))}};
LvX=function(d,H,K){return function(c){if(K){var p=K();c.model=p}if(d[H])d[H](c,c.detail)}};
Tn=function(d){var H=[];if(typeof d==="string")d.length>0&&H.push.apply(H,_.ru(d.split(".")));else{d=_.q(d);for(var K=d.next();!K.done;K=d.next())K=K.value,typeof K==="string"?H.push.apply(H,_.ru(K.split("."))):H.push(K)}return H};
M6l=function(d,H){if(H[H.length-1]!=="*"&&H[H.length-1]!=="splices"){for(var K=0;K<H.length;K++){if(!d)return;d=d[H[K]]}return d}};
mzL=function(d,H){if(d.length>H.length)return!1;for(var K=0;K<d.length;K++)if(d[K]!==H[K])return!1;return!0};
PlL=function(d,H,K){if(H.type==="compute"){var c=H.getter.bind(K);var p=H.args}else c=function(){return K[H.method.methodName].apply(K,_.ru(_.sH.apply(0,arguments)))},p=H.method.args;
whl(d,H.propertyKey,c,p,H.value)};
Ish=function(d,H){if(H.readOnly){var K=Object.getOwnPropertyDescriptor(d.model,H.propertyKey);Object.defineProperty(d.model,H.propertyKey,{get:K.get,set:function(){}});
d.model[ur4(H.propertyKey)]=K.set}};
rYh=function(d,H,K){if(K){var c=H.propertyKey,p=H.selector;H=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.ru(H.selectorArgs.map(function(g){return{type:"path",path:g}})));
whl(d,c,function(g){var a=_.sH.apply(1,arguments);return p.apply(null,[K.getState()].concat(_.ru(a)))},H)}};
BwE=function(d,H,K){var c=_.Uo(H.propertyKey)+"-changed";Wvh(d,function(p){var g={value:p.value,queueProperty:!0};p.path.split(".").length>1&&(g.path=p.path);K.dispatchEvent(new CustomEvent(c,{detail:g}))},[{type:"wildcard",
path:H.propertyKey}])};
zPl=function(d,H,K){Wvh(d,function(){K[H.method.methodName].apply(K,_.ru(_.sH.apply(0,arguments)))},H.method.args)};
ur4=function(d){return"_set"+(d.charAt(0).toUpperCase()+d.slice(1))};
Xhi=function(){var d,H=uj(function(K){d=K},!1);
return[d,H]};
Twf=function(d){d=d.trim().replace(JYL,",").replace(sMY,"$1");var H=d[0];H==="-"&&(H=d[1]);if(H>="0"&&H<="9")return{type:"literal",value:Number(d)};if(H==="'"||H==='"')return{type:"literal",value:d.slice(1,-1)};if(H=d.match(Fv1)){H=H[1];var K=ZgX[H];if(K)return{type:K,path:d.slice(0,-(H.length+1))}}return{type:"path",path:d}};
OgY=function(d){var H=d.match(QMl);if(H)return d={methodName:H[1],args:t6E},H[2].trim()&&(H=H[2].replace(Yd5,"&comma;").split(","),d.args=H.map(Twf)),d};
Sdh=function(d,H,K,c){c=c===void 0?!1:c;H=_.Uo(H);var p=hw;p&&(K=p(K,H,"attribute",d));QP(d,K,H,c)};
QP=function(d,H,K,c){H=EQX(H,c===void 0?!1:c);H===void 0?d.removeAttribute(K):d.setAttribute(K,H)};
EQX=function(d,H){switch(typeof d){case "object":case "function":if(d instanceof Date)return d.toString();if(d){if((H===void 0?0:H)&&!_.h("polymer_reflect_objects_as_boolean_killswitch"))return d?"":void 0;H=window.trustedTypes?window.trustedTypes.isHTML(d)||window.trustedTypes.isScript(d)||window.trustedTypes.isScriptURL(d):void 0;if(H)return d;try{return JSON.stringify(d)}catch(K){_.Jf(Error("Cg`"+d))}}break;case "boolean":return d?"":void 0;default:return d!==null&&d!==void 0?d.toString():void 0}};
yYD=function(d){if(d===void 0)throw Error("Dg");return d};
AY1=function(d,H,K,c){var p=bgf(c);if(p.length){c=K;var g="property";Nw4.test(K)?g="attribute":K[K.length-1]==="$"&&(K=K.slice(0,-1),g="attribute");var a=DzD(p);a&&g==="attribute"&&(K==="class"&&d.hasAttribute("class")&&(a+=" "+d.getAttribute(K)),QP(d,a,K));g==="attribute"&&c==="disable-upgrade$"&&d.setAttribute("disable-upgrade","");d.localName==="input"&&c==="value"&&d.setAttribute("value","");d.removeAttribute(c);g==="property"&&(K=_.hP(K));H=yYD(H);fs5(H,g,K,p);return!0}return K.slice(0,3)===
"on-"?(d.removeAttribute(K),(g=H).events!=null||(g.events=[]),H.events.push({name:K.slice(3),value:c}),!0):K==="id"?(H.id=c,!0):!1};
bgf=function(d){for(var H=[],K=0,c;(c=jMM.exec(d))!==null;){c.index>K&&H.push({type:"literal",value:d.slice(K,c.index)});var p=c[1][0];K=!!c[2];c=c[3].trim();if(p==="{")throw Error("Eg");(p=OgY(c))?H.push({type:"method",negate:K,signature:p}):H.push({type:"path",negate:K,path:c});K=jMM.lastIndex}K&&K<d.length&&(d=d.substring(K))&&H.push({type:"literal",value:d});return H};
DzD=function(d){for(var H="",K=0;K<d.length;K++){var c=d[K];c.type==="literal"&&(H+=c.value)}return H};
fs5=function(d,H,K,c){d.bindings!=null||(d.bindings=[]);d.bindings.push({kind:H,target:K,parts:c})};
K3l=function(d,H,K){var c=!1;if(d.localName==="template"){c=K;var p=H.stripWhitespace;p=vQE(d,p===void 0?!1:p);var g=d.content.ownerDocument.createDocumentFragment();p.content=g;g.appendChild(d.content);c&&(c.templateInfo=p);c=!0}else d.localName==="slot"&&(H.hasInsertionPoint=!0);if(d.firstChild&&(p=K,d.localName!=="script"&&d.localName!=="style")){g=0;for(var a=d.firstChild;a;){var e=a;if(e.localName==="template"){var k=e.getAttribute("is");if((a=k==="dom-if")||k==="dom-repeat"){e.removeAttribute("is");
k=e.ownerDocument.createElement("ps-"+k);e.parentNode.replaceChild(k,e);k.appendChild(e);var C=Array.from(e.attributes);C=_.q(C);for(var R=C.next();!R.done;R=C.next())R=R.value,a?dH4.has(R.name)&&QP(k,R.value,R.name):HkE.has(R.name)?QP(k,R.value,R.name):$HF.has(R.name),e.removeAttribute(R.name);a=k}else a=e}if(a.nodeType===Node.TEXT_NODE){e=void 0;k=d;for(C=a;((e=C.nextSibling)==null?void 0:e.nodeType)===Node.TEXT_NODE;)R=void 0,(R=C).textContent!=null||(R.textContent=""),C.nextSibling.textContent&&
(C.textContent+=C.nextSibling.textContent),k.removeChild(C.nextSibling);if(H.stripWhitespace&&a.textContent&&!a.textContent.trim()){d.removeChild(a);a=a.nextSibling;continue}}K3l(a,H,{parentIndex:g,parentInfo:p});a.parentNode&&g++;a=a.nextSibling}}var V;if((V=d.hasAttributes)==null?0:V.call(d)){V=K=yYD(K);p=!1;g=Array.from(d.attributes);g=_.q(g);for(e=g.next();!e.done;e=g.next())e=e.value,p=AY1(d,V,e.name,e.value)||p;c=p||c}d.nodeType===Node.TEXT_NODE&&(V=bgf(d.textContent),V.length&&(d.textContent=
DzD(V)||" ",K=yYD(K),fs5(K,"text","textContent",V),c=!0));K&&c&&(K.infoIndex=H.nodeInfoList.push(K)-1)};
vQE=function(d,H){H={nodeInfoList:[],stripWhitespace:(H===void 0?!1:H)||d.hasAttribute("strip-whitespace")};K3l(d.content,H);return H};
cq1=function(d){Object.assign(d,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
gaY=function(d,H,K){H.signalCache!=null||(H.signalCache={});var c=H.signalCache[K];if(!c){var p=K.split(".");c=!pAF(d,p[0]);if(p.length>1&&c){var g=d.getPathMutationSignal(p);c=function(){var a=Wk(d.owner,function(){return d.getWithPath([p[0]])}),e,k=(e=g())==null?void 0:e.value;
return{rootWasDefined:a!==void 0,value:k}}}else c=function(){var a=d.getWithPath(p);
return{rootWasDefined:a!==void 0,value:a}};
H.signalCache[K]=c}return c()};
GYD=function(d,H,K,c,p){H=H.parts.map(function(a,e){if(a.type==="literal"){K.partWasDefined!=null||(K.partWasDefined=[]);var k;(k=K.partWasDefined)[e]||(k[e]=a.value!==void 0);return a.value}var C;if(a.type==="method"){var R,V=(R=(C=K.partWasDefined)==null?void 0:C[e])!=null?R:!1;V||(V=a.signature.args.every(function(w){return w.type==="literal"}));
var U=!1,L=!0;C=a.signature.args.map(function(w){if(w.type==="literal")return w.value;if(w.type!=="path")throw Error("Fg`"+w.type);var W=gaY(d,K,w.path);w=W.value;W=W.rootWasDefined;U||(U=W);L&&(L=W);return w});
V||(V=p===1?L:U);K.partWasDefined!=null||(K.partWasDefined={});K.partWasDefined[e]=V;if(!V)return;C=(e=gaY(d,K,a.signature.methodName).value)&&typeof e==="function"?e.apply(c,C):void 0}else R=gaY(d,K,a.path),C=R.value,K.partWasDefined!=null||(K.partWasDefined={}),(V=K.partWasDefined)[e]||(V[e]=C!==void 0||R.rootWasDefined);a.negate&&(C=!C);return C});
if(H.length===1){var g;return((g=K.partWasDefined)==null?0:g[0])?H[0]:ikF}return H.join("")};
oaF=function(d){return typeof d==="object"&&!!d&&"notifyPath"in d&&"canNotifyPath"in d};
qnC=function(d){return typeof d==="object"&&!!d&&"notifyPath"in d};
anf=function(d){return"polymerController"in d};
lnF=function(d,H){H=""+Tn(H)[0];if(oaF(d))return d.canNotifyPath(H);if(anf(d)&&oaF(d.polymerController))return d.polymerController.canNotifyPath(H);if(qnC(d)){var K;return!((K=d.properties)==null||!K[H])}if(anf(d)&&qnC(d.polymerController)){var c;return!((c=d.polymerController.properties)==null||!c[H])}return!1};
eMh=function(d,H,K){oaF(d)||qnC(d)?d.notifyPath(H,K):anf(d)&&(oaF(d.polymerController)||qnC(d.polymerController))&&d.polymerController.notifyPath(H,K)};
xHX=function(d,H,K){if(K!==ikF){d.kind==="attribute"||d.target!=="textContent"&&(d.target!=="value"||H.localName!=="input"&&H.localName!=="textarea")||(K=K===void 0?"":K);var c,p=(c=kY4.Polymer)==null?void 0:c.sanitizeDOMValue;p&&(K=p(K,d.target,d.kind,H));if(d.kind==="attribute"){d=d.target;if(d==="class"||d==="name"||d==="slot")H=(0,_.ls)(H);QP(H,K,d)}else if(d=d.target,K!==H[d]||typeof K==="object")H.loggingStatus&&(H.loggingStatus.isDeclarativeExternal=!0,Pj(H.localName,d,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
H[d]=K,H.loggingStatus&&(H.loggingStatus.isDeclarativeExternal=!1)}};
na4=function(d,H,K,c){var p=H.parts[0];if(H.parts.length!==1||p.type!=="path"||!lnF(K,H.target))return!1;var g=_.q(p.path.split(".")),a=g.next().value,e=E8(g);if(pAF(d,a))return!1;c.signalCache!=null||(c.signalCache={});g=c.signalCache[p.path];var k;g=(k=g)==null?void 0:k().value;if((g==null?void 0:g.path)!==void 0){c=Tn(g.path);var C=Tn(p.path);c=[H.target].concat(_.ru(c.slice(C.length-1)));eMh(K,c,p.negate?!g.value:g.value);return!0}var R=tB(d,a);var V=R.getChangeRecordSignal(e),U=!1;g=function(){if(!U){var w=
Wk(d.owner,function(){return R.getWithPath([])});
U||(U=w!==void 0)}return{value:V(),rootWasDefined:U}};
c.signalCache[p.path]=g;c.partWasDefined!=null||(c.partWasDefined={});g=g();(C=c.partWasDefined)[0]||(C[0]=g.rootWasDefined);var L=Wk(d.owner,function(){return R.getWithPath(e)});
c.partWasDefined[0]&&Wk(d.owner,function(){return void xHX(H,K,p.negate?!L:L)});
return!0};
CRC=function(d,H,K,c,p,g){if(!na4(d,H,K,c)){var a=GYD(d,H,c,p,g);Wk(d.owner,function(){return void xHX(H,K,a)})}};
RML=function(d,H,K,c,p,g){K=_.q(K);for(var a=K.next(),e={};!a.done;e={infoIndex:void 0},a=K.next()){a=a.value;var k=a.bindings;e.infoIndex=a.infoIndex;a=a.parentInfo;if(k){k=_.q(k);for(var C=k.next(),R={};!C.done;R={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},C=k.next()){R.b$jscomp$253=C.value;if(e.infoIndex===void 0)throw Error("Gg");R.bindingCtx$jscomp$4={};d.effect(function(V,U){return function(){p&&!p()||CRC(d,V.b$jscomp$253,H[U.infoIndex],V.bindingCtx$jscomp$4,c,g)}}(R,e))}}a&&RML(d,H,[a],
c,p,g)}};
VxL=function(d,H){d=(H.parentInfo?VxL(d,H.parentInfo):d).firstChild;for(var K=0;d;d=d.nextSibling)if(H.parentIndex===K++)return d;throw Error("Hg");};
hMf=function(d,H,K,c){d=document.importNode(d.content,!0);d.__noInsertionPoint=!(c==null?0:c.hasInsertionPoint);for(var p=Array(H.length),g={},a=0;a<H.length;a++){var e=H[a],k=VxL(d,e);p[a]=k;e.id&&(g[e.id]=k);if(e.templateInfo){var C=k.parentElement;C&&(C.templateInfo=e.templateInfo,C.parentSignalProxy=K,C.eventListenerHost=c.eventListenerHost,C.stampingEnabled=c.enabledSignal)}C=void 0;if((C=e.events)==null?0:C.length)for(C=0;C<e.events.length;C++){var R=e.events[C];UHX(c.eventListenerHost,k,R.name,
R.value,c.getModel)}}RML(K,p,H,c.thisCtx,c.enabledSignal,c.methodInvocationRequirement);return{root:d,nodes:p,nodesById:g}};
Mxi=function(d,H){d=d();var K;(K=L31.ShadyCSS)==null||K.prepareTemplate(d,H);H=vQE(d);return{template:d,nodeInfoList:H.nodeInfoList,hasInsertionPoint:H.hasInsertionPoint}};
PRL=function(){mHD=!1;for(var d=Yf.length,H=0;H<d;H++){var K=Yf[H];if(K)try{K()}catch(c){Promise.resolve().then(function(){throw c;})}}Yf.splice(0,d);
wAf+=d};
W3F=function(d){mHD||(mHD=!0,uWh.textContent=(InE++).toString());Yf.push(d);return rqF++};
_.EI=function(d,H,K){OI++;d=H?new BOh(OI,d,H,K):new zMY(OI,d);SO.set(OI,d);return OI};
XAX=function(d){(d=SO.get(d))&&d.cancel()};
s_Y=function(d,H){d=JqF.get(d);return d?(H=d.get(H))?H:null:null};
_.yP=function(d,H,K,c){var p=s_Y(d,H);if(!p){p=new F3L;var g=JqF.get(d);g||(g=new Map,JqF.set(d,g));g.set(H,p)}d=K.bind(d);p.run(d,c,void 0)};
_.ZkL=function(d,H){var K;(K=s_Y(d,H))==null||K.cancel()};
TO5=function(d){var H;(H=s_Y(d,"doRender"))==null||H.flush()};
bs=function(d){var H;return(H=d.hostElement)!=null?H:d};
Q_D=function(d){var H=d.indexOf(".");return H===-1?d:d.slice(0,H)};
tx4=function(d,H,K,c,p,g){g=(p=(c=g?Q_D(H):H)?H:null)?d.get(p):d.__data[H];p&&g===void 0&&(g=K[H]);_.GT(d.hostElement,lhh(c)+"-changed",{value:g,queueProperty:!0,path:p!=null?p:void 0},{bubbles:!1,composed:!1})};
YnX=function(d,H){d.__isReflecting=!0;Sdh(d.hostElement,H,d.__data[H]);d.__isReflecting=!1};
Okl=function(d){if(d._onIronRequestResizeNotifications){var H=d._onIronRequestResizeNotifications.bind(d);d._onIronRequestResizeNotifications=function(K){_.v5(K)!==d.hostElement&&H(K)}}d._ariaActiveAttributeChanged&&(d._ariaActiveAttributeChanged=d._ariaActiveAttributeChanged.bind(d.hostElement));
d._activeChanged&&(d._activeChanged=function(K){d.toggles?QP(d.hostElement,K?"true":"false",d.ariaActiveAttribute):d.hostElement.removeAttribute(d.ariaActiveAttribute);d._changedButtonState()});
d._asyncClick&&(d._asyncClick=function(){_.EI(function(){d.hostElement.click()},1)});
!d.keyEventTarget||d.keyEventTarget instanceof EventTarget||(d.keyEventTarget=bs(d.keyEventTarget));d._disabledChanged&&(d._disabledChanged=d._disabledChanged.bind(d.hostElement));d._observeItems&&(d._observeItems=function(K){var c=bs(K);return _.Iu(c).observeNodes(function(p){d._updateItems();d._updateSelected();_.GT(c,"iron-items-changed",p,{bubbles:!1,cancelable:!1})})});
d._updateItems&&d._updateItems===_.Nr._updateItems&&(d._updateItems=function(){var K=_.Iu(d.hostElement).queryDistributedElements(d.selectable||"*");K=Array.prototype.filter.call(K,d._bindFilterItem);d._setItems(K)});
d._computeKeyboardClass&&(d._computeKeyboardClass=function(K){_.qr(d.hostElement,"keyboard-focus",K)});
d.ensureRipple&&(d.ensureRipple=function(K){if(d.hasRipple&&!d.hasRipple()){if(!d._createRipple)return;d._ripple=d._createRipple();d._ripple.noink=d.noink;var c=d._rippleContainer||d.hostElement;c&&_.Gn(c).appendChild(d._ripple)}var p;if(K&&((p=d._ripple)==null?0:p.uiDownAction)){c=_.Gn(d._rippleContainer||d.hostElement);var g;p=(g=K.composedPath())==null?void 0:g[0];c.contains(p)&&d._ripple.uiDownAction(K)}});
d._updateMultiselectable&&(d._updateMultiselectable=function(K){K?d.hostElement.setAttribute("aria-multiselectable","true"):d.hostElement.removeAttribute("aria-multiselectable")})};
Sn4=function(d,H,K){K=_.q(K);for(var c=K.next();!c.done;c=K.next())V6h(c.value.constructor,d);V6h(H.constructor,d)};
yqD=function(d,H){d=_.q(d);for(var K=d.next();!K.done;K=d.next())if(K=K.value,K.type==="signal"){var c=K.propertyKey;if(H.hasOwnProperty(c)&&H[c]!=null&&K.attributeType===Object){a:{c=H[c].constructor;for(var p=_.q(EaF),g=p.next();!g.done;g=p.next())if(g=g.value,c===g){c=g;break a}c=Object}K.attributeType=c}}};
bkC=function(){};
NOY=function(d){var H;return(H=d.hostElement)!=null?H:d};
DHF=function(){throw Error("Lg");};
fn4=function(d,H){d.constructor.prototype.useSignals=!0;var K=new d.constructor;Sn4(K,d,H.behaviors);yqD(H.reactiveSchemas,K);K={};for(var c=_.q(H.reactiveSchemas),p=c.next();!p.done;p=c.next())p=p.value,p.type==="signal"&&(K[p.propertyKey]=p.attributeType);var g={copyPropertiesToProto:DHF,didRegister:!1,typesForSignals:K},a=["disable-upgrade"].concat(_.ru(H.observedAttributes)),e=function(k){DV.call(this,d,H,g,k)};
_.m(e,DV);_.H3.Object.defineProperties(e,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return a}}});
g.copyPropertiesToProto=function(){for(var k=0;k<H.behaviors.length;k++)hP4(H.behaviors[k],e.prototype);hP4(d,e.prototype)};
H.legacyOptimizations||g.copyPropertiesToProto();e.prototype.is=d.is;return e};
AqD=function(d,H){if(Object.getPrototypeOf(H.prototype).constructor!==_.B)throw Error("Mg");H.prototype.is=d.is;return fn4(H.prototype,d)};
j_l=function(d){return d.type==="compute"||d.type==="computeWithMethod"};
vaY=function(d){for(var H=d.reactiveSchemas.filter(j_l),K=new Map,c=new Map,p=new Map,g=_.q(H),a=g.next();!a.done;a=g.next())a=a.value,K.set(a.propertyKey,a),c.set(a.propertyKey,[]),p.set(a.propertyKey,0);g=0;H=_.q(H);for(a=H.next();!a.done;a=H.next()){a=a.value;for(var e=_.q(a.type==="computeWithMethod"?a.method.args:a.args),k=e.next();!k.done;k=e.next())k=k.value,k.type!=="literal"&&(k=k.path.split(".")[0],c.has(k)&&(c.get(k).push(a.propertyKey),p.set(a.propertyKey,p.get(a.propertyKey)+1),g++))}a=
[].concat(_.ru(c.keys())).filter(function(C){return p.get(C)===0});
for(H=[];a.length;)for(e=a.shift(),H.push(K.get(e)),e=_.q(c.get(e)),k=e.next();!k.done;k=e.next())k=k.value,p.set(k,p.get(k)-1),g--,p.get(k)===0&&a.push(k);K=d.reactiveSchemas.filter(function(C){return!j_l(C)});
d.reactiveSchemas=[].concat(_.ru(K),_.ru(H))};
dxf=function(d,H){if(H.properties)for(var K=_.q(Object.entries(H.properties)),c=K.next();!c.done;c=K.next()){var p=_.q(c.value);c=p.next().value;p=p.next().value;d.properties[c]=typeof p==="function"?{type:p}:p}H.observers&&d.observers.push.apply(d.observers,_.ru(H.observers));H.disabledPolySiReactions&&d.disabledPolySiReactions.push.apply(d.disabledPolySiReactions,_.ru(H.disabledPolySiReactions))};
HWF=function(d,H){for(var K=H.length-1;K>=0;K--){var c=H[K];Array.isArray(c)?HWF(d,c):d.indexOf(c)<0&&d.unshift(c)}};
$xM=function(d,H){d.reactiveSchemas=d.reactiveSchemas.filter(function(K){return K.type==="observe"&&H.includes(K.method.methodName)||j_l(K)&&H.includes(K.propertyKey)?!1:!0})};
c7h=function(d,H){var K=H.prototype,c,p,g={is:d.is,reactiveSchemas:[],observedAttributes:[],behaviors:[ePf.InjectBehavior,sI.prototype],disableElementRegistration:d.disableElementRegistration,provide:(c=d.providers)!=null?c:[],reactivityMode:d.reactivityMode,signalProperties:(p=K.signalProperties)!=null?p:[]};"template"in H?g.templateGetter=function(){return H.template}:d.getTemplate&&(g.templateGetter=d.getTemplate);
K.behaviors&&HWF(g.behaviors,K.behaviors);KP5(g,H);return g};
KP5=function(d,H){for(var K=H.prototype,c={properties:{},observers:[],disabledPolySiReactions:[]},p=_.q(d.behaviors),g=p.next();!g.done;g=p.next())dxf(c,g.value);dxf(c,K);if(d.signalProperties)for(K=_.q(d.signalProperties),p=K.next();!p.done;p=K.next())delete c.properties[p.value];K=_.q(Object.entries(c.properties));for(p=K.next();!p.done;p=K.next()){g=_.q(p.value);p=g.next().value;g=g.next().value;var a=void 0;if((a=d.signalProperties)==null||!a.includes(p)){a=void 0;var e=d,k=g.type;if(!k)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{k=Reflect.getMetadata("design:type",H,p);for(var C=_.q(pOf),R=C.next();!R.done;R=C.next())if(R=R.value,k===R){k=R;break a}k=Object}else k=String;g.computed||g.selector||(e.reactiveSchemas.push({type:"signal",propertyKey:p,value:g.value,attributeType:k,readOnly:g.readOnly}),e.observedAttributes.push(_.Uo(p)));g.reflectToAttribute&&e.reactiveSchemas.push({type:"reflect",propertyKey:p});if(g.computed){k=OgY(g.computed);if(!k)throw Error("Ng");e.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:p,method:k,value:g.value})}g.observer&&e.reactiveSchemas.push({type:"observe",method:{methodName:g.observer,args:[{type:"path",path:p}]}});g.notify&&e.reactiveSchemas.push({type:"notify",propertyKey:p});g.selector&&e.reactiveSchemas.push({type:"redux",propertyKey:p,selector:g.selector,selectorArgs:(a=g.selectorArgs)!=null?a:[]})}}ggD&&vaY(d);H=_.q(c.observers);for(p=H.next();!p.done;p=H.next())K=d,p=p.value,(g=OgY(p))?K.reactiveSchemas.push({type:"observe",method:g}):console.log('Warning: unable to parse observe declaration: "'+
p+'"');$xM(d,c.disabledPolySiReactions)};
iWi=function(d,H){for(var K=0;K<H.length;K++){var c=H[K],p=void 0;(p=c).showHideApi!=null||(p.showHideApi={});p=void 0;!!d!==!((p=c.showHideApi)==null||!p.hideTemplateChildren)&&(c.nodeType===Node.TEXT_NODE?d?(c.showHideApi.polymerTextContent=c.textContent,c.textContent=""):(p=void 0,c.textContent=(p=c.showHideApi.polymerTextContent)!=null?p:null):c instanceof Element&&c.localName==="slot"?d?(c.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.ls)((0,_.ls)(c).parentNode).replaceChild(c.showHideApi.polymerReplaced,
c)):(p=c.showHideApi.polymerReplaced)&&(0,_.ls)((0,_.ls)(p).parentNode).replaceChild(c,p):c instanceof HTMLElement&&c.style&&(d?(c.showHideApi.polymerDisplay=c.style.display,c.style.display="none"):c.style.display=c.showHideApi.polymerDisplay));c.showHideApi.hideTemplateChildren=d;c.showHideChildren&&c.showHideChildren(d)}};
ogY=function(){if(!GMF){var d=document.createElement("style");d.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(d);GMF=!0}};
fK=function(){return _.h("disable_hidden_dom_if_using_stamper")};
qwF=function(d,H){var K=_.AB().getState();return H?d.apply(null,[K].concat(_.ru(H))):d(K)};
e85=function(){if(a_4)return a_4;var d=_.q(_.GO(0,void 0,"MB1Hb")),H=d.next().value;d.next();var K=d.next().value;_.AB().subscribe(function(){l_F(K)});
return a_4=H};
l_F=function(d){kMX||(kMX=!0,Promise.resolve().then(function(){d(function(H){return H+1});
kMX=!1}))};
_.AB=function(){return xx4.getAppStore()};
ngM=function(d,H){return xx4.getSelectFn()(d,H)};
_.jO=function(d){xx4.getDispatchFn()(d)};
C01=function(d,H){var K={},c;for(c in d)K[c]=H(d[c],c);return K};
_.vj=function(d,H){return function(){var K;return(K=_.IH(d))!=null?K:H}};
_.dg=function(d,H){var K=Object.assign({},d),c;for(c in H)H.hasOwnProperty(c)&&(K[c]=_.vj(d[c],H[c]));return K};
R8E=function(d,H,K){d instanceof Element&&(K.debugName||(K.debugName="<"+d.tagName.toLowerCase()+(d.tagName.includes("-")?">":"."+d.className+">")),_.h("ytwiz_enable_debug_component_props")&&(d.debugProps||(d.debugProps=C01(H,function(c){return function(){return c()}}))))};
Ux4=function(d){var H;if(!(H=V4f.value.traceAllComponents)){var K;H=(K=d0)==null?void 0:K.activeSpan;H=(H==null?void 0:H.name)!=="ytComponent"}return H?Shl("ytComponent",{},d):d()};
_.H1=function(d,H){var K=function(c){return Ux4(function(p){var g=h8X={};var a;if(((a=K)==null?0:a.idomCompat)&&c.renderedFromIdom){var e;a=typeof K.idomCompat==="object"?(e=K)==null?void 0:e.idomCompat.callbacks:{};a=_.q(LPF(c,a,K.debugName));e=a.next().value;a.next();a=a.next().value;var k=M4i(d,e);g.privateValue=k;h8X=void 0;R8E(k,e,K);g={debugName:K.debugName};p&&g&&Object.assign(p.attributes,g);p=ywi(k);p=Array.isArray(p)?p[0]:p;p[lU]||(p[lU]={});p[lU].updateSignalsFromIdomProps=a;mx4(e,k);return k}a=
C01(c,wOF);e=M4i(d,a);g.privateValue=e;h8X=void 0;R8E(e,a,K);g={debugName:K.debugName};p&&g&&Object.assign(p.attributes,g);mx4(a,e);return e})};
K.debugName=H===void 0?"":H;return K};
M4i=function(d,H){d=d(H);return n6(d)};
P0F=function(d,H){d[H]||(d=new _.m1("IDOM interop setter undefined. Key:",H),_.z5(d))};
wOF=function(d,H){return H==="children"||H==="ref"||typeof d==="function"||d===void 0?d:function(){return _.IH(d)}};
LPF=function(d,H,K){var c={},p={},g={},a={},e;for(e in d){a={key$jscomp$930:a.key$jscomp$930};a.key$jscomp$930=e;var k=d[a.key$jscomp$930];if(a.key$jscomp$930==="children"||a.key$jscomp$930==="ref")c[a.key$jscomp$930]=k;else if(typeof k==="function")a.key$jscomp$930 in H||k.length>0?(g[a.key$jscomp$930]=k,c[a.key$jscomp$930]=function(R){return function(){return g[R.key$jscomp$930].apply(g,_.ru(_.sH.apply(0,arguments)))}}(a)):c[a.key$jscomp$930]=k;
else if(!(d[a.key$jscomp$930]===void 0&&a.key$jscomp$930 in H)){var C=_.q(_.GO(d[a.key$jscomp$930],{debugName:a.key$jscomp$930+":cwis:"+K},"rvrjQe"));k=C.next().value;C=C.next().value;c[a.key$jscomp$930]=k;p[a.key$jscomp$930]=C}}return[c,p,function(R){var V={},U;for(U in R)V={key$jscomp$931:V.key$jscomp$931,val$jscomp$122:void 0},V.key$jscomp$931=U,V.val$jscomp$122=R[V.key$jscomp$931],V.key$jscomp$931!=="children"&&V.key$jscomp$931!=="ref"&&(typeof V.val$jscomp$122==="function"?V.key$jscomp$931 in
H?g[V.key$jscomp$931]=V.val$jscomp$122:V.val$jscomp$122.length>0&&(g[V.key$jscomp$931]=V.val$jscomp$122,_.Jf(new _.m1("Callback detected that was not set in the idomCompat callbacks map. Key:",V.key$jscomp$931))):V.key$jscomp$931 in H&&V.val$jscomp$122===void 0||(P0F(p,V.key$jscomp$931),km(function(L){return function(){p[L.key$jscomp$931](L.val$jscomp$122)}}(V))))}]};
r7M=function(d,H,K){var c=U5F(d.prototype,ulE,d.prototype.behaviors);c.prototype.is=H;c.prototype.localName=H;K&&I_5(c,K);return function(p){p&&(c.prototype.hostElement=p);var g=new c;g.root=g;g.hostElement=p;return g}};
I_5=function(d,H){var K;Object.defineProperty(d.prototype,"_template",{get:function(){K===void 0&&(K=H());return K},
set:function(c){K=c},
configurable:!0,enumerable:!0})};
J7f=function(d,H,K,c){function p(){if(!L){for(var w=new Set,W=_.q(R),J=W.next();!J.done;J=W.next()){J=J.value;for(var F=_.q(Object.getOwnPropertyNames(J)),Y=F.next();!Y.done;Y=F.next()){Y=Y.value;var A=void 0,E=(A=Object.getOwnPropertyDescriptor(J,Y))==null?void 0:A.value;E&&E instanceof Function&&!$v(Y)&&(!e[Y]||_.h("polymer_forward_method_killswitch"))&&w.add(Y)}}W=_.q(Object.entries(Object.getOwnPropertyDescriptors(d.prototype)));for(J=W.next();!J.done;J=W.next())F=_.q(J.value),J=F.next().value,
F=F.next().value,F.value instanceof Function&&!$v(J)&&w.add(J);L=w}return L}
WPE(d,H,c==null?void 0:c.providers);hWL(d.prototype,d,!0);var g=r7M(d,H,K),a,e=(a=d.prototype.properties)!=null?a:{},k,C,R=(C=(k=d.prototype.behaviors)==null?void 0:k.flat(Infinity))!=null?C:[];K=_.q(R);for(a=K.next();!a.done;a=K.next())e=Object.assign({},a.value.properties,e);var V=[].concat(_.ru(BoF),_.ru(Object.keys(e).map(function(w){return _.Uo(w)}))),U=!1,L;
return{ctor:function(w,W){var J=g(w),F,Y;w=[].concat(_.ru((F=c==null?void 0:c.allowedProps)!=null?F:[]),_.ru((Y=c==null?void 0:c.allowedPropsFromBehaviors)!=null?Y:[]));J.allowedProps=w.length>0?w:void 0;F={};Y=_.q(V);for(w=Y.next();!w.done;w=Y.next())w=w.value,F[w]=_.hP(w);J.__dataAttributes=F;var A=J.ready.bind(J);J.ready=function(){W.beforeReady();A();if(mJ(H)&&!U){var E=J.__templateInfo;if(E==null?0:E.hostProps){E=_.q(Object.keys(E.hostProps));for(var N=E.next();!N.done;N=E.next())Pj(H,N.value,
"PROPERTY_ACCESS_GET_INTERNAL")}U=!0}};
J._overrideLegacyUndefined=!0;return J},
props:e,observedAttributes:V,getInitialMethods:p,getPropsToForwardBeforeRegister:function(){for(var w=[],W=new Set,J=_.q(Object.keys(e)),F=J.next();!F.done;F=J.next())F=F.value,w.push([F,e[F].readOnly]),W.add(F);J=p();F=_.q(Object.keys(Object.getOwnPropertyDescriptors(d.prototype)));for(var Y=F.next();!Y.done;Y=F.next())Y=Y.value,!z8Y(Y)||J.has(Y)||W.has(Y)||(w.push([Y,!1]),W.add(Y));W=_.q(XOL);for(J=W.next();!J.done;J=W.next())w.push([J.value,!0]);return w},
getPropsToForwardBeforeReady:function(w){for(var W=[],J=_.q(Object.entries(w)),F=J.next();!F.done;F=J.next()){var Y=_.q(F.value);F=Y.next().value;Y=Y.next().value;if(z8Y(F)&&!(Y instanceof Function)&&(W.push([F,!1]),mJ(H))){var A=Y=void 0;(A=(Y=w)._createPropertyAccessor)==null||A.call(Y,F)}}return W},
shouldForwardProp:z8Y,shouldLog:mJ}};
WPE=function(d,H,K){kXF(d,K);d.prototype.behaviors.unshift(snE);if(HgF()){if(mJ(H)){var c;(c=d.prototype).behaviors!=null||(c.behaviors=[]);d.prototype.behaviors.unshift(phF())}gQ5(d)}_.u(sI.prototype)(d.prototype,"__templateHelpers")};
$v=function(d){return FPF.has(d)||d.startsWith("__compute__")};
z8Y=function(d){return!$v(d)&&!d.startsWith("_")&&!d.endsWith("_")};
Ywf=function(d,H){function K(){var U=k();U=_.q(U);for(var L=U.next();!L.done;L=U.next()){var w=_.q(L.value);L=w.next().value;w=w.next().value;ZWi(V.prototype,L,w)}c=!0}
var c=!1,p=d.ctor,g=d.getInitialMethods,a=d.observedAttributes,e=d.getPropsToForwardBeforeReady,k=d.getPropsToForwardBeforeRegister,C=d.shouldForwardProp,R=d.shouldLog,V=function(){var U=HTMLElement.call(this)||this;U.didForwardDynamicProps=!1;U.loggingStatus={};c||K();U.inst=p(U,{beforeReady:function(){U.didForwardDynamicProps||(U.forwardDynamicProps(),U.didForwardDynamicProps=!0)}});
U.controllerProxy=Kv1(U.inst,H);U.forwardMethods();return U};
_.m(V,HTMLElement);V.prototype.forwardMethods=function(){for(var U=this,L=_.q(this.inst.getExtraMethodsToForward()),w=L.next(),W={};!w.done;W={method$jscomp$63:void 0},w=L.next()){var J=_.q(w.value);w=J.next().value;J=J.next().value;W.method$jscomp$63=J;this[w]=function(F){return function(){return F.method$jscomp$63.call.apply(F.method$jscomp$63,[U.inst].concat(_.ru(_.sH.apply(0,arguments))))}}(W)}L=_.q(g());
for(W=L.next();!W.done;W=L.next())W=W.value,C(W)&&ToC(this,W),R(H)&&!$v(W)&&QnM(this.inst,W)};
V.prototype.forwardDynamicProps=function(){var U=e(this.inst);U=_.q(U);for(var L=U.next();!L.done;L=U.next()){var w=_.q(L.value);L=w.next().value;w=w.next().value;ZWi(this,L,w);R(H)&&!$v(L)&&t4X(this.inst,L)}};
V.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
V.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
V.prototype.attributeChangedCallback=function(U,L,w){this.inst.attributeChangedCallbackWrapper(U,L,w)};
_.H3.Object.defineProperties(V.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return H}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.H3.Object.defineProperties(V,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return a}}});
customElements.define(H,V)};
ZWi=function(d,H,K){d.hasOwnProperty(H)||Object.defineProperty(d,H,{get:function(){var c,p=((c=d.is)!=null?c:d.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Pj(p,H,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,c=this.polymerController[H],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,c},
set:function(c){if(!K){var p,g=((p=d.is)!=null?p:d.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Pj(g,H,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=H,this.loggingStatus.bypassProxyController=!0,this.polymerController[H]!==c&&(p={},this.polymerController.setProperties((p[H]=c,p)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
ToC=function(d,H,K){var c=d.polymerController;d[H]=function(){var p=_.sH.apply(0,arguments);d.loggingStatus.currentExternalCall=H;d.loggingStatus.bypassProxyController=!0;var g,a=((g=d.is)!=null?g:d.tagName).toLowerCase();Pj(a,H,"PROPERTY_ACCESS_CALL_EXTERNAL");var e;g=(e=K!=null?K:c[H])==null?void 0:e.call.apply(e,[c].concat(_.ru(p)));d.loggingStatus.currentExternalCall=void 0;d.loggingStatus.bypassProxyController=!1;return g}};
QnM=function(d,H){var K=d.hostElement,c=d[H];d[H]=function(){var p=_.sH.apply(0,arguments);if(K.loggingStatus.currentExternalCall!==H){var g,a=((g=K.is)!=null?g:K.tagName).toLowerCase();Pj(a,H,"PROPERTY_ACCESS_CALL_INTERNAL")}return c==null?void 0:c.apply(d,p)}};
t4X=function(d,H){var K=Object.getOwnPropertyDescriptor(d,H);K&&!K.get&&Object.defineProperty(d,H,{get:function(){cYf(d.hostElement,H);return K.value},
set:function(c){r4(d.hostElement,H);K.value=c}})};
OWF=function(d){return _.h("poly_si_dom_repeat_detached_fix_killswitch")||d.tagName!=="PS-DOM-REPEAT"?d.tagName==="DOM-REPEAT":!0};
EgL=function(d,H){var K=SwM(d);d instanceof Element&&K.unshift(d);d=_.q(K.filter(OWF));for(var c=d.next();!c.done;c=d.next()){var p=void 0;c=_.q((p=c.value.__instances)!=null?p:[]);for(p=c.next();!p.done;p=c.next())if(p=p.value,p.root){p=Array.from(p.root.children);p=_.q(p);for(var g=p.next();!g.done;g=p.next())K.push.apply(K,_.ru(EgL(g.value,H)))}}return K.filter(function(a){return a.usePatchedLifecycles&&a.lifecycleIsConnected===H})};
SwM=function(d){var H=null;d instanceof Element?H=Element.prototype.querySelectorAll:d instanceof DocumentFragment&&(H=DocumentFragment.prototype.querySelectorAll);return H?Array.from(H.call(d,"*")):[]};
KM=function(d){ij(function(){for(var H=_.q(EgL(d,!1)),K=H.next();!K.done;K=H.next()){K=K.value;K.lifecycleIsConnected=!0;try{var c=void 0,p=void 0,g=void 0,a=void 0;(c=(a=K.polymerController)!=null?a:K)==null||(g=(p=c).connectedCallback)==null||g.call(p)}catch(e){_.z5(e)}}})};
c1=function(d){ij(function(){for(var H=_.q(EgL(d,!0)),K=H.next();!K.done;K=H.next()){K=K.value;K.lifecycleIsConnected=!1;try{var c=void 0,p=void 0,g=void 0,a=void 0;(c=(a=K.polymerController)!=null?a:K)==null||(g=(p=c).disconnectedCallback)==null||g.call(p)}catch(e){_.z5(e)}}})};
jnh=function(){if(!y7C){y7C=!0;var d=[Node];pM&&d.push(pM.Wrapper);var H=Node.prototype.insertBefore,K=Node.prototype.removeChild;d=_.q(d);for(var c=d.next(),p={};!c.done;p={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},c=d.next())c=c.value,p.nativeInsertBefore=c.prototype.insertBefore,c.prototype.insertBefore=function(a){return function(e,k){if(e instanceof DocumentFragment){var C=Array.from(e.children);e=a.nativeInsertBefore.call(this,e,k);
if(this.isConnected&&a.nativeInsertBefore===H)for(k=_.q(C),C=k.next();!C.done;C=k.next())KM(C.value);return e}C=e instanceof Element&&e.isConnected;k=a.nativeInsertBefore.call(this,e,k);C&&c1(e);this.isConnected&&KM(e);return k}}(p),p.nativeAppendChild=c.prototype.appendChild,c.prototype.appendChild=function(a){return function(e){if(e instanceof DocumentFragment){var k=Array.from(e.children);
e=a.nativeAppendChild.call(this,e);if(this.isConnected){k=_.q(k);for(var C=k.next();!C.done;C=k.next())KM(C.value)}return e}k=e instanceof Element&&e.isConnected;C=a.nativeAppendChild.call(this,e);k&&c1(e);this.isConnected&&KM(e);return C}}(p),p.nativeRemoveChild=c.prototype.removeChild,c.prototype.removeChild=function(a){return function(e){var k=e instanceof Element&&e.isConnected,C=a.nativeRemoveChild.call(this,e);
k&&K===a.nativeRemoveChild&&c1(e);return C}}(p),p.nativeReplaceChild=c.prototype.replaceChild,c.prototype.replaceChild=function(a){return function(e,k){if(e instanceof DocumentFragment){var C=Array.from(e.children);
e=a.nativeReplaceChild.call(this,e,k);if(this.isConnected)for(c1(k),k=_.q(C),C=k.next();!C.done;C=k.next())KM(C.value);return e}C=e instanceof Element&&e.isConnected;var R=this.isConnected,V=a.nativeReplaceChild.call(this,e,k);R&&c1(k);C&&c1(e);R&&KM(e);return V}}(p);
d=[Element];pM&&d.push(pM.Wrapper);d=_.q(d);c=d.next();for(p={};!c.done;p={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},c=d.next())c=c.value,c.prototype.before=bWF(c.prototype.before),c.prototype.after=bWF(c.prototype.after),p.nativeReplaceWith=c.prototype.replaceWith,c.prototype.replaceWith=function(a){return function(){var e=_.sH.apply(0,arguments),k=_.q(NoE(e)),C=k.next().value,
R=k.next().value;k=this.isConnected;a.nativeReplaceWith.apply(this,e);e=_.q(R);for(R=e.next();!R.done;R=e.next())c1(R.value);if(k)for(c1(this),C=_.q(C),k=C.next();!k.done;k=C.next())k=k.value,k instanceof Element&&KM(k)}}(p),p.nativeRemove=c.prototype.remove,c.prototype.remove=function(a){return function(){var e=this.isConnected;
a.nativeRemove.call(this);e&&c1(this)}}(p),p.nativeInsertAdjacentElement=c.prototype.insertAdjacentElement,c.prototype.insertAdjacentElement=function(a){return function(e,k){var C=k.isConnected;
e=a.nativeInsertAdjacentElement.call(this,e,k);C&&c1(k);e.isConnected&&KM(e);return e}}(p),p.nativeSetAttribute=c.prototype.setAttribute,c.prototype.setAttribute=function(a){return function(e,k){var C=Dxi(this);
if(!C.usePatchedLifecycles)return a.nativeSetAttribute.call(this,e,k);var R=this.getAttribute(e);a.nativeSetAttribute.call(this,e,k);k=this.getAttribute(e);f_1(C,e,R,k)}}(p),p.nativeRemoveAttribute=c.prototype.removeAttribute,c.prototype.removeAttribute=function(a){return function(e){var k=Dxi(this);
if(!k.usePatchedLifecycles)return a.nativeRemoveAttribute.call(this,e);var C=this.getAttribute(e);a.nativeRemoveAttribute.call(this,e);C!==null&&f_1(k,e,C,null)}}(p),p.nativeToggleAttribute=c.prototype.toggleAttribute,c.prototype.toggleAttribute=function(a){return function(e,k){var C=Dxi(this);
if(!this.usePatchedLifecycles)return a.nativeToggleAttribute.call(this,e,k);var R=this.getAttribute(e),V=R!==null;k=a.nativeToggleAttribute.call(this,e,k);k!==V&&f_1(C,e,R,k?"":null);return k}}(p);
d=[Document,DocumentFragment,Element,ShadowRoot];pM&&d.push(pM.Wrapper);d=_.q(d);for(p=d.next();!p.done;p=d.next())p=p.value,p.prototype.prepend=bWF(p.prototype.prepend),p.prototype.append=bWF(p.prototype.append);(pM==null?void 0:pM.noPatch)===!0&&A71();document.readyState==="complete"?KM(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&KM(document.body)});
var g=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");g&&g.get&&g.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:g.enumerable,configurable:!0,get:g.get,set:function(a){a||c1(this);g.set.call(this,a);return a}})}};
bWF=function(d){return function(){var H=_.sH.apply(0,arguments),K=_.q(NoE(H)),c=K.next().value;K=K.next().value;d.apply(this,H);H=_.q(K);for(K=H.next();!K.done;K=H.next())c1(K.value);if(this.isConnected)for(c=_.q(c),H=c.next();!H.done;H=c.next())H=H.value,H instanceof Element&&KM(H)}};
A71=function(){for(var d=_.q(vg5),H=d.next();!H.done;H=d.next()){H=H.value.prototype;for(var K=_.q(d2M),c=K.next();!c.done;c=K.next()){c=c.value;var p=Object.getOwnPropertyDescriptor(H,c);p&&Object.defineProperty(H,"__shady_native_"+c,p)}}};
f_1=function(d,H,K,c){var p,g;if((p=d.polymerController)==null?0:(g=p.observedAttributes)==null?0:g.includes(H))if(d=d.polymerController,d.attributeChangedCallbackWrapper)d.attributeChangedCallbackWrapper.call(d,H,K,c);else{var a;(a=d.attributeChangedCallback)==null||a.call(d,H,K,c)}};
NoE=function(d){var H=[],K=[];d=_.q(d);for(var c=d.next();!c.done;c=d.next())c=c.value,c instanceof Element&&c.isConnected&&K.push(c),c instanceof DocumentFragment?H.push.apply(H,_.ru(Array.from(c.children))):H.push(c);return[H,K]};
Dxi=function(d){return!(d instanceof Element)&&d.node instanceof Element?d.node:d};
HIi=function(d,H){var K=H?["children"].concat(_.ru(H)):["children"];H=[];K=_.q(K);for(var c=K.next();!c.done;c=K.next()){var p=c.value;if(d.hasOwnProperty(p)){c=d[p];c=typeof c==="function"?c():c;c=Array.isArray(c)?c:[c];c=n6(c).flat();if(p!=="children"){p=lhh(p);for(var g=_.q(c),a=g.next();!a.done;a=g.next())a=a.value,a instanceof Element&&a.setAttribute("slot",p)}H.push(c)}}H.length===0?d=[]:(d=n6(_.x("div",null,H)),d=Array.from(d.childNodes));return d};
KOF=function(d,H,K){var c={};_.rc(function(){var p={},g;for(g in H)if(H.hasOwnProperty(g)){var a=void 0,e=void 0;if(!(((a=K.slotProps)==null?0:a.includes(g))||g==="children"||((e=K.callbackProps)==null?0:e.includes(g))||g==="ref")&&(a=_.IH(H[g]),c[g]!==a)){c[g]=a;e=void 0;var k=(e=d.hostElement)!=null?e:d;$2C.has(g)&&(k[g]=a);p[g]=a}}km(function(){if(d.setProperties)d.setProperties(p);else for(var C=_.q(Object.entries(p)),R=C.next();!R.done;R=C.next()){var V=_.q(R.value);R=V.next().value;V=V.next().value;
d[R]=V}})})};
ptY=function(d,H,K,c){var p=HIi(K,c.slotProps),g=(0,_.ls)(d);p=_.q(p);for(var a=p.next();!a.done;a=p.next())g.appendChild(a.value);KOF(H,K,c);c=_.q(c.callbackProps||[]);p=c.next();for(g={};!p.done;g={kebabEventName:void 0,eventListener:void 0},p=c.next())a=p=p.value,String(p).substring(0,2)==="on"&&K[a]?(g.kebabEventName=lhh(String(p).substring(2)),g.eventListener=K[a],d.addEventListener(g.kebabEventName,g.eventListener),_.Pk(function(R){return function(){d.removeEventListener(R.kebabEventName,R.eventListener)}}(g))):
H[a]=K[a];
if(K.ref){K=_.q(c6F(K.ref));var e=K.next().value,k=K.next().value,C=H.attached.bind(H);H.attached=function(){e(d);C()};
_.Pk(function(){k()})}};
c6F=function(d){if(typeof d==="function"){var H;return[function(K){H=d(K)},
function(){var K;(K=H)==null||K()}]}if(!d.onRender||!d.onUnmount)throw Error("Rg");
return[d.onRender,d.onUnmount]};
ow4=function(d,H,K,c,p){c=c===void 0?{}:c;var g=gwl,a=!1;g?(a=!0,gwl=void 0):(iIF=H,g=document.createElement(H),iIF=void 0);var e=g;e.usePatchedLifecycles=!0;e.lifecycleIsConnected=!1;g.loggingStatus={};var k=GcE(d,H,g,c,p);_.Pk(function(){e.lifecycleIsConnected&&(e.lifecycleIsConnected=!1,k.disconnectedCallback())});
a||(_.h("sink_wrapper_disable_runtime_shadycss")&&(g.__noInsertionPoint=!0),ptY(g,k,K,c));return g};
GcE=function(d,H,K,c,p){p=p===void 0?J7f:p;q$Y[H]!=null||(q$Y[H]=p(d,H,c==null?void 0:c.getTemplate,c));var g=q$Y[H],a=g.ctor;p=g.getInitialMethods;var e=g.getPropsToForwardBeforeReady;d=g.getPropsToForwardBeforeRegister;c=g.shouldForwardProp;var k=g.observedAttributes,C=g.shouldLog,R=a(K,{beforeReady:function(){var V=R;V._takeAttributes?V._takeAttributes():V.setPropertiesFromInitialAttributeValues&&V.setPropertiesFromInitialAttributeValues();V=_.q(e(K.polymerController));for(var U=V.next();!U.done;U=
V.next()){var L=_.q(U.value);U=L.next().value;L=L.next().value;ZWi(K,U,L);C(H)&&!$v(U)&&t4X(K.polymerController,U)}K.polymerController=Kv1(R,H)}});
K.polymerController=R;K.polymerController.observedAttributes=k;g=_.q(R.getExtraMethodsToForward());for(a=g.next();!a.done;a=g.next())k=_.q(a.value),a=k.next().value,k=k.next().value,ToC(K,a,k);p=_.q(p());for(g=p.next();!g.done;g=p.next())g=g.value,c(g)&&ToC(K,g),C(H)&&!$v(g)&&QnM(R,g);d=_.q(d());for(c=d.next();!c.done;c=d.next())p=_.q(c.value),c=p.next().value,p=p.next().value,ZWi(K,c,p);return R};
amh=function(d){var H=gg;gg=d;return H};
kcM=function(d){if(_.iD.has(d))_.lml=d;else if(G6.has(d)&&gg&&eIF(gg)===d){var H;(H=gg)._numRenders!=null||(H._numRenders=0);gg._numRenders++;if(gg._numRenders>1)throw Error("Sg");return gg}};
x25=function(d){_.iD.has(eIF(d))?_.lml=eIF(d):G6.has(eIF(d))&&gg!==d&&(d._isInert=!0)};
eIF=function(d){var H;return(H=d==null?void 0:d.tagName.toLowerCase())!=null?H:""};
nwh=function(d,H){if(d.componentType===ht)throw Error("Tg");G6.add(H);var K=function(){var c=HTMLElement.call(this)||this;c.is=H;if(iIF===H)return c.isInert=!0,c;c.createElement();return c};
_.m(K,HTMLElement);K.prototype.createElement=function(){if(!this.isInert){gwl=this;var c=_.q(_.nE5(function(){return _.x(d,null)})).next().value;
gwl=void 0;cq1(this);return c}};
customElements.define(H,K)};
RIX=function(d,H,K,c,p){d.prototype.is=H;(c==null?0:c.useSink)?CoC(d,H,K,c,p):(K=J7f(d,H,K,c),Ywf(K,H));return d};
CoC=function(d,H,K,c,p){jnh();var g=_.H1(function(a){return ow4(d,H,a,Object.assign({},c,{getTemplate:K}),p)},"a");
g.debugName=H+" (CoW wrapped)";nwh(g,H);return g};
U2f=function(d){return!Vtf.has(d)};
MtD=function(d,H,K,c){function p(){if(!V){for(var U=new Set(hI1),L=_.q(g.behaviors),w=L.next();!w.done;w=L.next()){w=w.value;for(var W=_.q(Object.getOwnPropertyNames(w)),J=W.next();!J.done;J=W.next()){J=J.value;var F=void 0,Y=(F=Object.getOwnPropertyDescriptor(w,J))==null?void 0:F.value;Y&&Y instanceof Function&&(!C[J]||_.h("polymer_forward_method_killswitch"))&&U.add(J)}}L=_.q(Object.entries(Object.getOwnPropertyDescriptors(d.prototype)));for(w=L.next();!w.done;w=L.next())W=_.q(w.value),w=W.next().value,
W=W.next().value,W.value instanceof Function&&U.add(w);V=U}return V}
var g=c7h({is:H,disableElementRegistration:!1,getTemplate:K,providers:c==null?void 0:c.providers,reactivityMode:c==null?void 0:c.reactivityMode},d);if((c==null?0:c.allowedProps)||(c==null?0:c.allowedPropsFromBehaviors)){var a,e;g.allowedProps=[].concat(_.ru((a=c.allowedProps)!=null?a:[]),_.ru((e=c.allowedPropsFromBehaviors)!=null?e:[]))}var k=AqD(g,d);H=k.observedAttributes;var C={};K=_.q(g.reactiveSchemas);for(c=K.next();!c.done;c=K.next())if(c=c.value,c.type==="signal")C[c.propertyKey]={readOnly:c.readOnly},
c.readOnly&&(C[ur4(c.propertyKey)]={readOnly:!0});else if(c.type==="compute"||c.type==="computeWithMethod"||c.type==="redux")C[c.propertyKey]={readOnly:!0};var R=g.reactiveSchemas.length,V;return{ctor:function(U,L){U=new k(U);U.beforeReady=L.beforeReady;return U},
props:C,observedAttributes:H,getInitialMethods:p,getPropsToForwardBeforeRegister:function(){for(var U=[],L=new Set,w=_.q(LOl),W=w.next();!W.done;W=w.next())W=W.value,U.push([W,W!=="observers"&&W!=="properties"]),L.add(W);w=_.q(Object.keys(C));for(W=w.next();!W.done;W=w.next())W=W.value,U.push([W,C[W].readOnly]),L.add(W);w=p();W=_.q(Object.keys(Object.getOwnPropertyDescriptors(d.prototype)));for(var J=W.next();!J.done;J=W.next())J=J.value,!U2f(J)||w.has(J)||L.has(J)||(U.push([J,!1]),L.add(J));U.push(["allowedProps",
!0]);return U},
getPropsToForwardBeforeReady:function(U){var L=[];U=_.q(Object.keys(U));for(var w=U.next();!w.done;w=U.next()){w=w.value;var W=p();U2f(w)&&!W.has(w)&&L.push([w,!1])}U=_.q(g.reactiveSchemas.slice(R));for(w=U.next();!w.done;w=U.next())w=w.value,w.type!=="compute"&&w.type!=="computeWithMethod"&&w.type!=="redux"&&w.type!=="signal"||L.push([w.propertyKey,w.type==="signal"?w.readOnly:!0]);return L},
shouldForwardProp:U2f,shouldLog:mJ}};
_.T=function(d,H,K,c){var p,g,a=(g=(p=c)==null?void 0:p.mode)!=null?g:0;c!=null||(c={});var e;(e=c).reactivityMode!=null||(e.reactivityMode=0);a===1&&_.o5("creator_poly_si_disable_list").includes(H)&&(a=2);return a===1?RIX(d,H,K,Object.assign({},c,{useSink:!0}),MtD):RIX(d,H,K,Object.assign({},c,{useSink:a===2}))};
_.oq=function(){return function(d,H,K,c){var p,g,a=(g=(p=c)==null?void 0:p.mode)!=null?g:2;c!=null||(c={});var e;(e=c).reactivityMode!=null||(e.reactivityMode=0);if(a===0)throw Error("Ug`"+a);return CoC(d,H,K,c,a===1?MtD:void 0)}};
_.qk=function(d){return _.h("creator_poly_si_killswitch")?!1:_.h("force_all_poly_si_batches")&&(d==="poly_si_all_on_test_check"||d==="creator_poly_si_batch_050"?0:d)||document.documentElement.hasAttribute("use-signals")?!0:!d||_.h(d+"_holdback_enabled")&&_.h("kevlar_polysi_holdback")?!1:_.h(d)};
aq=function(d){return d?d.icon?d.icon.iconType.toLowerCase():d.customThumbnail?"member":"":""};
m2f=function(d){if(!d)return"";d=_.q(d);for(var H=d.next();!H.done;H=d.next())if((H=H.value)&&H.liveChatAuthorBadgeRenderer&&(H=aq(H.liveChatAuthorBadgeRenderer))&&H!=="verified")return H;return""};
wtL=function(d,H){if(!d)return null;var K;return((K=d.find(function(c){return c&&c.liveChatAuthorBadgeRenderer?aq(c.liveChatAuthorBadgeRenderer)===H:!1}))==null?void 0:K.liveChatAuthorBadgeRenderer)||null};
_.BD4=function(d){var H=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;d=PoM(d);H=PoM(H);var K=u1h(d.hex);H=u1h(H.hex);var c=H[0]/255;var p=H[1]/255,g=H[2]/255,a=Math.max(c,p,g),e=Math.min(c,p,g),k=0,C=0,R=.5*(a+e);a!=e&&(a==c?k=60*(p-g)/(a-e):a==p?k=60*(g-c)/(a-e)+120:a==g&&(k=60*(c-p)/(a-e)+240),C=0<R&&R<=.5?(a-e)/(2*R):(a-e)/(2-2*R));c=[Math.round(k+360)%360,C,R];K=Imf(K,H);for(d=r65(d.hex);K<4.5;){d=c[2]>=.5?d.darker((4.5-K)/2):d.brighter((4.5-K)/2);K=d.toString();
p=WOX(K);if(!p.length)throw Error("Qd`"+K);K=p;K=Imf(K,H)}return d.hex()};
Imf=function(d,H){d=_.k4Y(d);H=_.k4Y(H);return(Math.max(d,H)+.05)/(Math.min(d,H)+.05)};
_.lD=function(d){return"#"+("000000"+(d&16777215).toString(16)).slice(-6)};
_.zIf=function(d){for(var H=0,K=0;K<d.length;K++)H=d.charCodeAt(K)+((H<<5)-H);d="#";for(K=0;K<3;K++)d+=("00"+(H>>K*8&255).toString(16)).slice(-2);return d};
Xtl=function(d){d=(d||"").split(":");d.length===1&&d.unshift("yt-icons");d[1]=d[1].toLowerCase();return d};
QtL=function(d,H){var K=(H=H===void 0?!1:H)?J6h:st1,c=H?FOF:ZIF;d.getIconNames().forEach(function(p){p=H?p:p.substring(p.indexOf(":")+1);d.name==="yt-icons"?TDD.add(p):p.includes("-filled")?K.add(p):c.add(p)})};
ev=function(d,H,K,c){K=K===void 0?!1:K;c=c===void 0?!1:c;var p,g,a;return _.l(function(e){if(e.nextAddress==1)return e.yield(tt5,2);if(c)return e.return(TDD.has(d));p=K?J6h:st1;g=K?FOF:ZIF;return H?(a=d.includes("-filled")?d:d.concat("-filled"),e.return(p.has(a))):e.return(g.has(d))})};
_.S$M=function(d){if(Y$E(d))return d;var H=d=d.toLowerCase();(d=OI4.get(d))&&(H=d);return H};
_.kv=function(d){if(Y$E(d))return d.toString();var H=EwL.get(d);if(H)return H;H=d.toLowerCase();var K="yt-icons",c=H.replace(/_/g,"-");switch(d){case "MY_CHANNEL":H="account_circle";break;case "ADD_TO_LIBRARY":H="add";break;case "ALERT_WARN_RED":H="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":H="person_music";break;case "BLOCK_USER":H="block";break;case "CAPTIONS":H="closed_caption";break;case "CLOSED_CAPTION":K="av";H="closed-caption";break;case "COLLECTION":K="maps";H="layers";break;case "CONTACT":K=
"icons";H="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":K="ytcp-icons";H=c.split("creator-studio-")[1];break;case "DISMISSAL":H="close";break;case "DO_NOT_DISTURB":H="block";break;case "DOGFOOD":K="icons";H="pets";break;case "DRAFT":H="paper_corner_folded";break;
case "EMPTY_LIKE":H="like_outline";break;case "EXIT_APP":H="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":H=c;break;case "GAMES":K="ytg";H="my-games";break;case "GO_TO_PAGE":H="arrow-forward";break;case "GROUP":K="social";break;case "HIDE":H="not_interested";break;case "INPUT_COMPONENT":K="icons";H="settings-input-component";break;case "KIDS_BLOCK":H="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":K="ytg";H="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":K=
"ytg";H="membership-post-purchase";break;case "MULTIVIEW":H="screen_multi_view";break;case "MY_LOCATION":K="maps";H=c;break;case "NOTIFICATIONS_INBOX":H="NOTIFICATIONS";break;case "NEXT":H="chevron_right";break;case "OFFLINE":H="power-settings-new";break;case "PAUSE":K="miniplayer";break;case "PAYMENT":K="icons";break;case "PHONE_DOWNLOAD":H="phone_download";break;case "PREMIUM_STANDALONE":K="yt-logos";H="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":K="yt-logos";H="premium_standalone_cairo";
break;case "QUESTION_ANSWER":H="question_answer";break;case "REDEEM":K="icons";H="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":H="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":H="library_add";break;case "SCHOOL":K="yt-sys-icons";H="creator_academy";break;case "SETTINGS_LIGHT":H="settings_applications";break;case "SETTINGS_MATERIAL":H="settings";break;case "SEARCH_HISTORY":H="watch_history";break;case "SHOPPING_BAG":H="bag";break;case "SOCIAL":case "PEOPLE":K=
"yt-icons";H="people";break;case "STAFF_PICK":K="ytg";H="spotlight";break;case "START_DVR":H="add";break;case "STOP_DVR":K="av";H="stop";break;case "TAB_LIKED":H="like";break;case "TAB_INBOX":H="mail";break;case "TERMS_OF_SERVICE":K="icons";H="description";break;case "TRENDING":H="fire";break;case "UNBLOCK_USER":H="remove";break;case "UNPLUGGED_DARK_THEME":K="image";H="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":H="live";break;case "UNPLUGGED_SPORTS":K="ytu";H="visibility-off";break;
case "VIDEOS":K="av";H="play-circle-filled";break;case "YOUTUBE":K="yt-logos";H="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":K="yt-logos-ext";H="yt-logo-red-updated";break;case "YOUTUBE_LOGO":K="yt-logos-ext";H="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":K="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":K="shorts";H=c;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":K="yt-sys-icons";H="youtube_improve_tv";break;case "OUTLINE_BAG":K=
"yt-sys-icons";H="bag";break;case "QUEUE_PLAY_LAST":K="yt-sys-icons";H="list_queue_last";break;case "SLASH_CIRCLE_LEFT":H="slash_circle_left";break;case "SPEED_1_POINT_2X":H="1_point_2x";break;case "SPEED_1_POINT_5X":H="1_point_5x";break;case "SPEED_1_POINT_8X":H="1_point_8x";break;case "SPEED_POINT_2X":H="point_2x";break;case "SPEED_POINT_5X":H="point_5x";break;case "SPEED_POINT_8X":H="point_8x";break;case "SPEED_1X":H="1x";break;case "SPEED_2X":H="2x";break;case "TAB_BOOKMARK":H="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":K="yt-sys-icons";H="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":K="yt-sys-icons";H="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":K="yt-sys-icons",H="tic_tac_toe"}H=K+":"+H;EwL.set(d,H);return H};
Y$E=function(d){var H;_.h("kevlar_use_wil_icons")?H=!!_.Kj().resolve(_.xv).resolveIcon({iconName:d.toString()}):H=!1;return H};
_.CM=function(d,H,K,c){K=K===void 0?{}:K;c=c===void 0?!1:c;K===null&&(K={});var p=_.o5("kevlar_command_handler_command_banlist");p=_.q(p);for(var g=p.next();!g.done;g=p.next())if(g=d?d.hasOwnProperty(g.value):void 0,g)return!1;p=_.M(d.commandMetadata,_.Co);return c&&p!=null&&p.url?!1:!H.disableCommandHandlerOverride&&_.nM.instance?(c=_.nM.instance,K.form||(K.form={element:H}),K.form.element||(K.form.element=H),!K.clickedVisualElement&&H.visualElement&&(K.clickedVisualElement=H.visualElement),c.resolveCommand(d,
K),!0):!1};
y6F=function(d,H){d=Rq(d);for(var K=_.q(d.visibilityMonitorKeys||[]),c=K.next();!c.done;c=K.next())H.unobserveByKey(c.value);d.visibilityMonitorKeys=void 0};
fm1=function(d,H){if(_.Fj()){if(_.h("kevlar_vimio_use_shared_monitor"))bIl(d,H.data);else if(!bIl(d,H.data))return;var K=H.data,c=NDi(K);if(_.h("enable_client_ve_spec_logging"))y6F(d,H.observer);else{var p=Rq(d);p.trackedParams&&p.trackedParams!==c&&y6F(d,H.observer)}p=Rq(d);!K||p.data&&p.data===K||(p.data=K);D2F(d,H);p.trackedParams=c}};
D2F=function(d,H){var K=H.observer;if(!K&&_.h("web_skip_missing_vimio_observer")){var c,p;_.Jf(new _.m1("VisibilityObserver is not defined.",d.tagName,d.trackedParams,(c=H.data)==null?void 0:c.trackingParams,(p=H.data)==null?void 0:p.loggingDirectives))}else{var g=H.layer,a=H.visibilityCallback||function(){},e=H.prescanCallback,k=Rq(d);
c=[];H.showOption&&c.push(K.observe(d,function(){H.skipLogging&&H.skipLogging()||_.Vp().reportShown(k,void 0,g);a(!0)},H.showOption));
H.hideOption&&c.push(K.observe(d,function(){_.Vp().reportHidden(k,void 0,g);a(!1)},H.hideOption));
H.prescanOption&&e&&c.push(K.observe(d,function(){e()},H.prescanOption));
k.visibilityMonitorKeys=c}};
bIl=function(d,H){d=Rq(d);if(d.visualElement&&!H)return!0;if(!H)return!1;var K=!1;if(_.h("enable_client_ve_spec_logging")){var c,p;K=!!((c=H.loggingDirectives)==null?0:(p=c.clientVeSpec)==null?0:p.uiType)}c=NDi(H);if(!c&&!K)return!1;_.h("mweb_component_visibility_logging")&&(d.veContainer||(d.veContainer={}),d.veContainer.trackingParams=c);if(d.trackedParams&&d.trackedParams===c)return!1;var g;if(_.h("enable_client_ve_spec_logging")&&((g=d.visualElement)==null?0:g.isClientVe())){var a;g=(a=d.visualElement)==
null?void 0:a.getAsJspb();var e,k,C,R;if(_.$1(g,2)===((e=H.loggingDirectives)==null?void 0:(k=e.clientVeSpec)==null?void 0:k.uiType)&&_.$1(g,3,-1)===((C=H.loggingDirectives)==null?void 0:(R=C.clientVeSpec)==null?void 0:R.elementIndex))return!1}if(_.h("enable_client_ve_spec_logging")){var V,U;!d.visualElement&&((V=H.loggingDirectives)==null?0:(U=V.clientVeSpec)==null?0:U.uiType)&&(e=H.loggingDirectives.clientVeSpec,H=e.uiType,a=e.elementIndex,e=e.clientYoutubeData,d.visualElement=_.UG(_.hR(),{veType:H,
elementIndex:a,clientYouTubeData:e}))}return!0};
NDi=function(d){if(d==null?0:d.rendererContext){var H=_.M(d.rendererContext,_.LM);if(H==null?0:H.loggingDirectives)return H.loggingDirectives.trackingParams}return(d==null?0:d.loggingDirectives)?d.loggingDirectives.trackingParams:d==null?void 0:d.trackingParams};
Rq=function(d){var H;return(H=d.polymerController)!=null?H:d};
dbi=function(d){_.Vp();if(_.Y2(Mk().JSC$12496_elementShouldLogGesture).bind(Mk())(d,4)){A64(d);var H=jtf(d);vwX.set(d,H)}};
A64=function(d){vwX.has(d)&&(vwX.get(d).cancel("untrack hover element"),vwX.delete(d))};
jtf=function(d){var H,K=[],c=!1,p=new _.kr(function(g,a){ml(d,"mouseenter",_.Y2(function(){var e,k,C;return _.l(function(R){if(R.nextAddress==1)return H=(0,_.$G)(),e=HY1(d),K.push(e),k=$bF(d,function(){c=!0;a(Error("Vg"))}),R.yield(e,2);
if(R.nextAddress!=3)return k&&wg(k),C=KzE(d),K.push(C),R.yield(C,3);g();_.VE(R)})}))});
p.then(function(){var g=(0,_.$G)()-H;g=Math.round(g);if(!(500>g||6E5<=g)){var a=d.getScreenLayer?d.getScreenLayer():void 0;a=_.Fj(a)||"";var e=cd1(_.Vp(),d);_.AO(a,d.visualElement?d.visualElement:_.P1(e),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:g}})}dbi(d)},function(){uD&&(uD(),uD=null);
c&&(A64(d),dbi(d))});
return p};
HY1=function(d){var H;return(new _.kr(function(K,c){uD=function(){c(Error("Wg"))};
H=_.Xp.debounce(_.Y2(function(){wg(p);K()}),1,100);
var p=_.Iq(d,"mousemove",H)})).thenCatch(function(){var K=_.Xp.cancelDebouncedJobMap.get(H);
K&&_.Xp.cancelJob(K)})};
KzE=function(d){var H;return(new _.kr(function(K,c){uD=function(){c(Error("Xg"))};
H=ml(d,"mouseleave",_.Y2(function(){K()}))})).thenCatch(function(){wg(H)})};
$bF=function(d,H){return ml(d,"mouseleave",_.Y2(H))};
geM=function(d){pJL&&_.rg.cancel(pJL);pJL=_.rg.run(function(){_.GT(d,"yt-visibility-refresh");pJL=0})};
iYF=function(d){d=Number(d);return"rgba("+[d>>16&255,d>>8&255,d&255,(d>>24&255)/255].join()+")"};
oeF=function(d){if(!d)return!1;if(_.M(d,_.GUD))return!0;var H;if(d=(H=_.M(d,_.kW))==null?void 0:H.commands)for(H=_.q(d),d=H.next();!d.done;d=H.next())if(_.M(d.value,_.GUD))return!0;return!1};
qr5=function(d){var H=!0;H=H===void 0?!0:H;if(!d.useSignals&&!d.experimentalPropertiesChanged||_.h("experimental_templating_behavior_nopatch_killswitch")){var K=d._propertiesChanged;d._propertiesChanged=function(c,p,g){H?d.debounceRender():d.doRender();K&&K.call(d,c,p,g)}}};
aqY=function(d,H){if(d.useSignals||d.experimentalPropertiesChanged)if(_.h("experimental_templating_behavior_nopatch_killswitch"))d.experimentalPropertiesChanged=function(){};
else return;var K=new Set,c=[d].concat(_.ru(d.behaviors));c=_.q(c);for(var p=c.next();!p.done;p=c.next()){p=p.value;for(var g in p.properties)K.has(g)||(d._addPropertyEffect(g,"function",H),K.add(g))}};
lqF=function(){var d=Polymer.Element,H=d._prepareTemplate;d._prepareTemplate=function(){H.call(this);var K=this.prototype;if(K.experimentalTemplatingInUse&&K.experimentalTemplatingInUse()&&K.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.z5(Error("Yg"));else{K=this.template.content.childNodes;for(var c=K.length-1;c>=0;c--){var p=K[c];p.nodeName!=="STYLE"&&p.nodeName!=="LINK"&&p.nodeName!=="SCRIPT"&&p.nodeName!=="#comment"&&p.remove()}}}};
eHM=function(d){var H=!0;H=H===void 0?!0:H;lqF();var K=d.ready;d.ready=function(){this._template=null;K.call(this)};
aqY(d,H?d.debounceRender:d.doRender)};
xb4=function(d,H,K){if(K===null||K===void 0)return K;var c=KKF(d.tagName.toLowerCase(),H,function(){throw Error("Ob");});
if(c===null)return K;c=kUC[c];var p;if((p=c.isUnwrappable)==null?0:p.call(c,K)){if(c.unwrap)return c.unwrap(K);throw Error("ah");}return c.filterString?c.filterString(d.tagName,H,String(K)):K};
nei=function(d,H,K){var c=H[H.length-1]!=="$",p=xb4(d,H,K);if(c)if(typeof p==="function"&&H.startsWith("reactiveon")&&H===H.toLowerCase()){var g=br;lQM(d,H.slice(8),function(a){Wk(g,function(){p(a)})})}else d[H]=p;
else K=p==null?null:String(p),se(d,H.slice(0,-1),K)};
B1=function(d){C6l.length===0&&requestAnimationFrame(function(){setTimeout(function(){var H=C6l.slice();C6l.length=0;H=_.q(H);for(var K=H.next();!K.done;K=H.next()){K=K.value;try{K()}catch(c){_.W1(c)}}})});
C6l.push(d)};
RHC=function(d){if(d){var H=d.component;if(H){var K;H==null||(K=H.events)==null||K.publish("DISCONNECTED");var c;H==null||(c=H.onDisconnected)==null||c.call(H)}var p,g;(p=d.__spec)==null||(g=p.didUnmount)==null||g.call(p);for(H=0;H<d.childNodes.length;H++)RHC(d.childNodes[H])}};
VI4=function(d,H,K){var c=H&&H.key,p=bj;p[0]=d;p[1]=c;p[2]=void 0;for(var g in H)H.hasOwnProperty(g)&&(d=H[g],c=Nt,c.push(g),c.push(d));H=bj;a:{if(g=bj[2])for(d=0;d<g.length;d+=2)if(g[d]==="nonce"){g=g[d+1];break a}g=""}g=wVF(H[0],H[1],g);d=Zp(g);c=H[2];if(!d.staticsApplied&&(d.staticsApplied=!0,c&&c.length))if((p=d._attrsArr)&&p.length){for(p=0;p<c.length;p+=2)z6[c[p]]=p+1;p=d._attrsArr||(d._attrsArr=aQi(0));for(var a=0,e=0;e<p.length;e+=2){var k=p[e],C=p[e+1],R=z6[k];R?c[R]===C&&delete z6[k]:(p[a]=
k,p[a+1]=C,a+=2)}zO(p,a);for(var V in z6)CCX(g,V,c[z6[V]],HV),delete z6[V]}else for(V=0;V<c.length;V+=2)CCX(g,c[V],c[V+1],HV);XVD(g,d,HV);zO(H,0);K&&K(tt);PCY()};
_.X4=function(d,H,K){K===void 0?delete d[H.name]:d[H.name]=K};
_.JR=function(d){var H={androidIncludeFontPadding:!1},K=0,c=[],p=[],g=[];if(d.simpleText)return H.content=d.simpleText,H;if(d.runs===void 0)return H.content="",H;d=_.q(d.runs);for(var a=d.next();!a.done;a=d.next()){a=a.value;var e=a.text,k=void 0,C=(k=e)==null?void 0:k.length;if(e&&C){c.push(e);if(a.bold||a.italics||a.strikethrough||a.underline||a.textColor!=null&&a.textColor!==0||a.deemphasize){e=p;k=e.push;var R={startIndex:K,length:C};a.bold&&(R.weightLabel="FONT_WEIGHT_MEDIUM");a.italics&&(R.italic=
!0);a.strikethrough&&(R.strikethrough="LINE_STYLE_SINGLE");a.underline&&(R.underline="LINE_STYLE_SINGLE");a.textColor!=null&&a.textColor!==0?document.documentElement.hasAttribute("dark")?R.fontColor=a.darkModeTextColor||a.textColor:R.fontColor=a.textColor:a.deemphasize&&(document.documentElement.hasAttribute("dark")?R.fontColor=parseInt("ff"+Ubi("#aaa").substring(1),16):R.fontColor=parseInt("ff"+Ubi("#606060").substring(1),16));k.call(e,R)}a.navigationEndpoint&&(e=g,k=e.push,R={startIndex:K,length:C,
onTap:{innertubeCommand:a.navigationEndpoint}},a.loggingDirectives&&_.X4(R,hHi,a.loggingDirectives),k.call(e,R));K+=C}}H.content=c.join("");H.styleRuns=p.length?p:void 0;H.commandRuns=g.length?g:void 0;return H};
MI1=function(d){if(d==null||!d.runs)return!0;d=_.q(d.runs);for(var H=d.next();!H.done;H=d.next())if(H=H.value,H.bracket||H.errorUnderline||H.deemphasize||_.M(H,sG)||_.M(H,Lzf))return!1;return!0};
mbX=function(d,H){return function(K){var c=H.unit;if(c!==K)throw Error("dh`"+d+"`"+c+"`"+K);return H}};
F4=function(d){if(!((d==null?0:d.value)&&(d==null?0:d.unit)))return"";switch(d.unit){case "DIMENSION_UNIT_FRACTION":var H="%";break;default:H="px"}d=d.value;H==="%"&&(d*=100);return""+d+H};
wJ1=function(d){try{return d()}catch(H){_.Jf(H)}};
_.T6=function(d){var H=_.M(d,_.ZX);if(H)return H;if((H=_.M(d,P6i))&&H.commands)return uz1(H.commands);if((H=_.M(d,Iq4))&&H.commands)return uz1(H.commands);if((d=_.M(d,rdh))&&d.identifier&&d.command&&(WzL||(WzL=[]),!WzL.includes(d.identifier)))return WzL.push(d.identifier),_.M(d.command,_.ZX)};
uz1=function(d){if(d.length!==0){var H=[];d=_.q(d);for(var K=d.next();!K.done;K=d.next())(K=_.T6(K.value))&&H.push(K);return{commandExecutorCommand:{commands:H}}}};
_.OG=function(d){var H=d.defaultTarget,K=d.elementConfig,c=d.elementsCommand,p=d.skipOnClick,g=d.forceNewState,a=d.additionalCommandArgs,e=d.innertubeCommand||_.T6(c);if(e){d={};var k=BJF(e);c=k.navigatingCommand;k=k.href;c&&k?(d.href$=k,zHC(d,c,k,H),_.h("web_atagconfig_pointerdown")&&XJC(d,c),g&&(d["force-new-state$"]=!0)):(d.role$="button",d.href$="javascript:void(0);");_.M(e,JdL)&&(d["aria-haspopup$"]=!0);p||(d.onclick=function(C){var R={};if(sUi(C)){var V=(a==null?void 0:a.clickedVisualElement)||
(a==null?void 0:a.getClickedVisualElement)&&a.getClickedVisualElement();V&&(R={clickedVisualElement:V});R=Object.assign({},{form:{element:C.target,event:C,createScreenConfig:R}},a);C.preventDefault();_.Yv(e,R)}});
return Object.assign({},K,d)}};
Fzh=function(d){if(d.length){if(d.length===1)return d[0];var H={};_.X4(H,_.kW,{commands:d});return H}};
Sv=function(d){return d&&d.href$!=="javascript:void(0);"};
BJF=function(d){var H,K=((H=_.M(d,_.kW))==null?void 0:H.commands)||[d];d=_.q(K);for(H=d.next();!H.done;H=d.next()){H=H.value;var c=void 0,p=void 0;K=(p=_.M((c=H)==null?void 0:c.commandMetadata,_.Co))==null?void 0:p.url;_.h("web_remove_web_navigation_endpoint_data")||(c=void 0,K=K||((c=_.M(H,ZYE))==null?void 0:c.url));if(K&&K!=="/service_ajax"){if(c=_.Be(K,TJL))return d=_.IK(c),{navigatingCommand:H,href:d};_.Jf(new _.m1("AttributedString URL could not be sanitized",K))}}return{}};
sUi=function(d){return d.button!==void 0?d.button===0&&!(d.shiftKey||d.altKey||d.metaKey||d.ctrlKey):!(d.shiftKey||d.altKey||d.metaKey||d.ctrlKey)};
zHC=function(d,H,K,c){K=!df(K);var p,g,a;if((p=_.M(H,_.Lm))!=null&&p.nofollow||(g=_.M(H,_.AP))!=null&&g.nofollow||(a=_.M(H,_.yj))!=null&&a.nofollow||K)d.rel$="nofollow";var e;H=((e=_.M(H,_.yj))==null?void 0:e.target)==="TARGET_NEW_WINDOW"?"_blank":c===void 0?"":c;d.target$=H};
XJC=function(d,H){H.clickTrackingParams&&(d.params={itct:H.clickTrackingParams});d.onpointerdown=function(K){_.QUF(K)};
d._data=H};
_.tIF=function(d){(d.loggingUrls||[]).forEach(function(H){EX(H.baseUrl,H.attributionSrcMode)})};
_.QUF=function(d){var H=d.currentTarget;d=wJ1(function(){return H.href});
var K=H.params;d&&_.Hy(d,K||{},8,!0)};
_.EG=function(d,H){(d=_.T6(d))&&_.Yv(d,H)};
_.Yv=function(d,H){IiL(function(K){H?K.resolveCommand(d,H):K.resolveCommand(d)})};
EeC=function(d,H){var K=["yt-core-attributed-string__link"];H!=null&&H.noLinkColor||((H==null?0:H.isOverlay)?K.push("yt-core-attributed-string__link--overlay-call-to-action-color"):K.push("yt-core-attributed-string__link--call-to-action-color"),(H==null?0:H.linkInheritColor)&&K.push("yt-core-attributed-string--link-inherit-color"));K={className:K.join(" "),tabindex$:"0"};var c=d.onTap||d.onLongPress;if(!c)return K;var p=Yrh(d);p&&(K["aria-label$"]=p);H=_.OG({elementsCommand:c,elementConfig:K,skipOnClick:!(H==
null||!H.skipOnClick),forceNewState:!0});d.onLongPress&&(c=new OY4(function(){var g=_.T6(d.onLongPress);g&&_.Kj().resolve(_.cb).resolveCommand(g)}),H&&Sri(c,H));
return H||K};
Yrh=function(d){var H,K;return(H=d.onTapOptions)==null?void 0:(K=H.accessibilityInfo)==null?void 0:K.accessibilityLabel};
ydL=function(d){var H=d;d<=16777215&&(H+=parseInt("ff000000",16));return _.Ob(H)};
bYh=function(d){var H=d.isDarkTheme;var K=d.extension;d=d.runColor;var c=void 0;if(K=K==null?void 0:K.colorMap){H=H?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";K=_.q(K);for(var p=K.next();!p.done;p=K.next())if(p=p.value,H===p.key){c=p.value;break}}c==null&&d&&(c=d);if(c)return ydL(c)};
yp=function(d){var H=d.config;var K=d.image;var c=d.imageConfig;var p=d.imageWrapperConfig;var g=d.run;var a=d.tag;var e=d.textLength;var k=d.startIndex===void 0?0:d.startIndex;d=d.length;k===void 0&&(k=0);g={run:g,startIndex:k,endIndex:d!==void 0?k+d:e,tag:a};K&&(g.image=K);c&&(g.imageConfig=c);p&&(g.imageWrapperConfig=p);H&&(g.config=H);return g};
Db4=function(d,H){var K=[];K.push("yt-core-attributed-string");(H==null?0:H.className)&&K.push(H==null?void 0:H.className);(H==null?0:H.ellipsisTruncate)?K.push("yt-core-attributed-string--ellipsis-truncate"):(H==null?0:H.noWrap)?K.push("yt-core-attributed-string--white-space-no-wrap"):(H==null?0:H.noPreWrap)||K.push("yt-core-attributed-string--white-space-pre-wrap");(H==null?0:H.linkInheritColor)&&K.push("yt-core-attributed-string--link-inherit-color");d.alignment&&K.push(NJC(d.alignment));d.lineBreakMode&&
K.push("yt-core-attributed-string--word-wrapping");return K.join(" ")};
fq5=function(d,H){if(d.weight)return d.weight;switch(d.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return H?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
Adl=function(d){switch(d){case "LINE_STYLE_DOT":return"yt-core-attributed-string--line-style-dot";case "LINE_STYLE_NONE":return"yt-core-attributed-string--line-style-none";default:return"yt-core-attributed-string--line-style-single"}};
NJC=function(d){switch(d){case "TEXT_ALIGNMENT_LEFT":return"yt-core-attributed-string--text-alignment-left";case "TEXT_ALIGNMENT_RIGHT":return"yt-core-attributed-string--text-alignment-right";case "TEXT_ALIGNMENT_CENTER":return"yt-core-attributed-string--text-alignment-center";case "TEXT_ALIGNMENT_JUSTIFIED":return"yt-core-attributed-string--text-alignment-justified";case "TEXT_ALIGNMENT_LAYOUT_START":return"yt-core-attributed-string--text-alignment-layout-start";default:return"yt-core-attributed-string--text-alignment-unknown"}};
DX=function(d,H,K){var c=H;d.content&&K&&(K=d.content.indexOf("\n"),K!==-1&&(c=Math.min(H,K)));if(!d.content||d.content.length<=c)H=d;else if(d.attachmentRuns||d.commandRuns||d.decorationRuns||d.styleRuns||d.paragraphStyleRuns){H=bD(d.content,c);K=c;var p=d.attachmentRuns;if(p){var g=[];p=_.q(p);for(var a=p.next();!a.done;a=p.next())a=Object.assign({},a.value),a.startIndex===void 0||a.startIndex>=K||(a.length||(a.length=0),a.length+a.startIndex>K&&(a.length=K-a.startIndex),g.push(a));K=g}else K=void 0;
g=jUl(c,d.commandRuns);p=c;var e=d.decorationRuns;if(e){a=[];e=_.q(e);for(var k=e.next();!k.done;k=e.next()){k=k.value;var C=_.M(k.textDecorator,Nk);if(C&&C.startIndex!==void 0&&!(C.startIndex>=p)){k=Object.assign({},k,{textDecorator:{highlightTextDecorator:Object.assign({},C)}});C=_.M(k.textDecorator,Nk);if(!C.length||C.length+C.startIndex>p)C.length=p-C.startIndex;a.push(k)}}p=a}else p=void 0;a=jUl(c,d.styleRuns);if(e=d.paragraphStyleRuns)for(d=[],e=_.q(e),k=e.next();!k.done;k=e.next()){var R=k.value;
k=Object.assign({},R);if(!(k.startIndex===void 0||k.startIndex>=c)){if(!k.length||k.length+k.startIndex>c)k.length=c-k.startIndex;C=[];var V=void 0,U=void 0;if((V=R)==null?0:(U=V.listGroup)==null?0:U.listItems)for(R=_.q(R.listGroup.listItems),V=R.next();!V.done;V=R.next())if(V=Object.assign({},V.value),!(V.startIndex===void 0||V.startIndex>=c)){if(!V.length||V.length+V.startIndex>c)V.length=c-V.startIndex;C.push(V)}C.length>0&&(k.listGroup||(k.listGroup={}),k.listGroup=Object.assign({},k.listGroup,
{listItems:C}));d.push(k)}}else d=void 0;H={content:H,attachmentRuns:K,commandRuns:g,decorationRuns:p,styleRuns:a,paragraphStyleRuns:d}}else H=Object.assign({},d,{content:bD(d.content,c)});return H};
jUl=function(d,H){if(H){var K=[];H=_.q(H);for(var c=H.next();!c.done;c=H.next())if(c=Object.assign({},c.value),!(c.startIndex===void 0||c.startIndex>=d)){if(!c.length||c.length+c.startIndex>d)c.length=d-c.startIndex;K.push(c)}return K}};
bD=function(d,H){var K=H,c;if(c=K>0)c=d.charCodeAt(K-1),c=c>=55296&&c<=56319;c&&(K=d.charCodeAt(K),c=K>=56320&&K<=57343);c&&--H;return d.substring(0,H)};
$0L=function(d,H,K){K=K===void 0?vef:K;if(d){var c=_.Kj().resolve(K5);c||_.h("mweb_no_observer_killswitch")?fm1(d,{data:H,observer:c,visibilityCallback:K,hideOption:d0L,showOption:HSE,layer:d.layer}):_.Jf(new _.m1("Warning: monitorVisibility called with null observer",d.tagName,H==null?void 0:H.loggingDirectives,H==null?void 0:H.trackingParams))}else _.Jf(new _.m1("Warning: monitorVisibility called with null element",H==null?void 0:H.loggingDirectives,H==null?void 0:H.trackingParams,H==null?void 0:
H.rendererContext))};
oj5=function(d,H){var K=[],c=d.content.length,p,g=(p=_.Kj().resolve(_.$p(_.fM)))==null?void 0:p();if(d.paragraphStyleRuns){p=_.q(d.paragraphStyleRuns);for(var a=p.next();!a.done;a=p.next()){var e=K.push,k=e.apply;var C=void 0;a=a.value;if((C=a.listGroup)!=null&&C.listItems){C=[];b:switch(a.listGroup.listType){case "LIST_TYPE_BULLET":var R="ul";break b;default:R="span"}C.push(yp({run:a,textLength:c,tag:R,config:{className:"yt-core-attributed-string__list-group"},startIndex:a.startIndex,length:a.length}));
R=_.q(a.listGroup.listItems);for(var V=R.next();!V.done;V=R.next()){V=V.value;b:switch(a.listGroup.listType){case "LIST_TYPE_BULLET":var U="li";break b;default:U="span"}C.push(yp({run:a,textLength:c,tag:U,startIndex:V.startIndex,length:V.length}))}a=C}else a=[];k.call(e,K,_.ru(a))}}if(d.styleRuns&&(H==null||!H.noStyleRuns))for(p=_.q(d.styleRuns),e=p.next();!e.done;e=p.next()){a=e=e.value;C=g;k=H;C=bYh({extension:_.M(a.styleRunExtensions,KY1),isDarkTheme:C===void 0?!1:C,runColor:a.fontColor});V=a;
R=[];C&&R.push("yt-core-attributed-string--link-inherit-color");V.italic&&R.push("yt-core-attributed-string--italicized");V.underline&&V.strikethrough?R.push("yt-core-attributed-string--underline-strikethrough",Adl(V.underline)):V.underline?R.push("yt-core-attributed-string--underlined",Adl(V.underline)):V.strikethrough&&R.push("yt-core-attributed-string--strikethrough",Adl(V.strikethrough));if(V.baselineOffset){a:switch(V.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":V="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":V="yt-core-attributed-string--baseline-offset-superscript";break a;default:V="yt-core-attributed-string--baseline-offset-unknown"}R.push(V)}R=R.join(" ");V={};if(a.weight||a.weightLabel)V.fontWeight=fq5(a,k==null?void 0:k.isHeadline).toString();C&&(V.color=C);K.push(yp({run:e,textLength:c,tag:"span",config:{className:R,style:V},startIndex:e.startIndex,length:e.length}))}if(d.decorationRuns)for(p=_.q(d.decorationRuns),e=p.next();!e.done;e=p.next())e=e.value,
k={},e.textDecorator&&(R=e.textDecorator,a=g===void 0?!1:g,V=[],C=_.M(R,Nk),R=_.M(R,cil),C?(R=V,V=R.concat,U=[],(a=bYh({extension:_.M(C.highlightTextDecoratorExtensions,plf),isDarkTheme:a,runColor:C.backgroundColor}))&&U.push("background-color: "+a+";"),C.backgroundCornerRadius!==void 0&&U.push("border-radius: "+C.backgroundCornerRadius+"px;"),C.leftPadding!==void 0&&U.push("padding-left: "+C.leftPadding+"px;"),C.rightPadding!==void 0&&U.push("padding-right: "+C.rightPadding+"px;"),C.topPadding!==
void 0&&U.push("padding-top: "+C.topPadding+"px;"),C.bottomPadding!==void 0&&U.push("padding-bottom: "+C.bottomPadding+"px;"),V=V.call(R,U)):R&&(C=V,V=C.concat,a=a?"#2ba640":"#107516",a=R.color?ydL(R.color):a,a=["padding: 2px;","border-top: solid "+a+" 2px;","border-bottom: solid "+a+" 2px;","background: linear-gradient(135deg, "+a+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+a+" 3px, rgba(0, 0, 0, 0) 3px);"],V=V.call(C,a)),a=V.join(" "),k.style$=a,a=e.textDecorator,C=[],R=_.M(a,
cil),_.M(a,Nk)?C.push("yt-core-attributed-string--highlight-text-decorator"):R&&C.push("yt-core-attributed-string--bracket-text-decorator"),a=C.join(" "),k.className=a,k.dir="auto"),a=_.M(e.textDecorator,Nk),C=_.M(e.textDecorator,cil),R=_.M(e.textDecorator,Nk),V=_.M(e.textDecorator,cil),K.push(yp({run:e,textLength:c,tag:"span",config:k,startIndex:(a==null?void 0:a.startIndex)||(C==null?void 0:C.startIndex)||0,length:(R==null?void 0:R.length)||(V==null?void 0:V.length)||0}));if(d.commandRuns&&(H==
null||!H.noEndpoints))for(g=_.q(d.commandRuns),p=g.next();!p.done;p=g.next())p=p.value,e=EeC(p,H),K.push(yp({run:p,textLength:c,tag:"a",config:e,startIndex:p.startIndex,length:p.length}));if(d.attachmentRuns)for(d=_.q(d.attachmentRuns),g=d.next();!g.done;g=d.next()){g=g.value;k=e=void 0;p={className:"yt-core-attributed-string--inline-block-mod"};if((k=g.element)==null?0:k.properties){k=(e=g.element)==null?void 0:e.properties;e=[];k=_.M(k,gjD);if(k==null?0:k.margin)k=k.margin,k.left&&e.push("margin-left: "+
F4(k.left)+";"),k.right&&e.push("margin-right: "+F4(k.right)+";"),k.top&&e.push("margin-top: "+F4(k.top)+";"),k.bottom&&e.push("margin-bottom: "+F4(k.bottom)+";");e=e.length!==0?e.join(" "):void 0;p.style$=e}a=void 0;e={alt:"",preserveHeight:!0,preserveWidth:!0};k=["yt-core-attributed-string__image-element"];if(g.alignment){a:switch(g.alignment){case "ALIGNMENT_BASELINE":C="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":C="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:C="yt-core-attributed-string__image-element--image-alignment-bottom"}k.push(C)}if((a=g.element)==null?0:a.properties)a=[],C=_.M(g.element.properties,gjD),(C==null?0:C.height)&&a.push("height: "+F4(C.height)+";"),(C==null?0:C.width)&&a.push("width: "+F4(C.width)+";"),a=a.length!==0?a.join(" "):void 0,e.style$=a,C=void 0,a=((C=_.M(g.element.properties,iSC))==null?void 0:C.label)||"",e.alt=a;e.className=k.join(" ");k=void 0;R=C=void 0;a=((R=g.element)==null?0:R.type)?(C=_.M(g.element.type,
G$4))==null?void 0:C.image:void 0;K.push(yp({run:g,textLength:c,tag:"img",image:a,imageConfig:e,imageWrapperConfig:p,startIndex:g.startIndex,length:(k=g.length)!=null?k:0}))}if(H==null?0:H.headerRuns)for(H=_.q(H.headerRuns),d=H.next();!d.done;d=H.next())if(d=d.value,d.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(d.headerMapping)){a:{switch(d.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":g=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":g="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":g="yt-core-attributed-string--heading-3";break a}g=void 0}K.push(yp({run:d,textLength:c,tag:"span",config:g?{className:g}:void 0,startIndex:d.startIndex,length:d.length}))}return K};
_.AR=function(d){return(d==null?void 0:d.content)!==void 0};
qfi=function(d){return _.AR(d)?d:_.JR(d)};
a9h=function(d){return d.image!==void 0&&d.imageConfig!==void 0};
l9f=function(d,H){if(H==null?0:H.userInput)for(d=_.q(d),H=d.next();!H.done;H=d.next())if(H=H.value,H.tag!=="a"&&H.tag!=="li"){var K=void 0;(K=H).config||(K.config={});H.config.dir=H.tag==="ul"?_.Kj().resolve(_.jv):"auto"}};
eBF=function(d){return function(H){var K=d.run;(K.onTap!==void 0||K.onLongPress!==void 0)&&_.M(K,hHi)&&$0L(H,{loggingDirectives:_.M(K,hHi)})}};
k$L=function(d){return function(H){for(var K in d)(HV[K]||HV[Fq["default"]])(H,K,d[K])}};
RBL=function(d,H){x0E(H);var K={data:null,start:0,end:d.length,parts:[]};H=_.q(H);for(var c=H.next();!c.done;c=H.next())c=c.value,njD(K,c.startIndex,c.endIndex,c);Cnf(d,K);return K};
njD=function(d,H,K,c){for(var p=_.q(d.parts),g=p.next();!g.done;g=p.next()){g=g.value;if(typeof g==="string")throw Error("fh");if(g.start<=H&&K<=g.end){njD(g,H,K,c);return}}d.parts.push({data:c,parts:[],start:H,end:K})};
Cnf=function(d,H){for(var K=H.parts.length;K>=0;K--){var c=H.parts[K],p=H.parts[K-1],g=K===H.parts.length?H.end:c.start;p=K===0?H.start:p.end;g!==p&&H.parts.splice(K,0,d.slice(p,g));c&&Cnf(d,c)}};
x0E=function(d){d.sort(function(H,K){if(H.startIndex<K.startIndex)return-1;if(K.startIndex<H.startIndex)return 1;H=H.endIndex-H.startIndex;K=K.endIndex-K.startIndex;return H>K?-1:K>H?1:0})};
_.Ve5=function(d){var H=d.thumbnails;if(H){d={sources:[]};H=_.q(H);for(var K=H.next();!K.done;K=H.next()){K=K.value;var c={};c.url=K.url;c.width=K.width;c.height=K.height;d.sources.push(c)}return d}};
U0F=function(d,H,K,c){if(!H)return d.length>=1?d[d.length-1]:null;if(c)for(var p=_.q(d),g=p.next();!g.done;g=p.next()){g=g.value;var a=void 0,e=(a=g.url)==null?void 0:a.indexOf(c);if(e!==void 0&&e>=0)return g}c=_.q(d);for(p=c.next();!p.done;p=c.next())if(p=p.value,p.width&&p.height&&(K&&p.width>=H||!K&&p.height>=H))return p;for(H=d.length-1;H>=0;H--)if(K&&d[H].width||!K&&d[H].height)return d[H];return d[0]};
_.hBi=function(d){var H;return(d=(H=d.sources)==null?void 0:H[0])?d.width/d.height:0};
_.LYY=function(d){if(d.sources){d=_.q(d.sources);for(var H=d.next();!H.done;H=d.next()){H=H.value;var K=void 0;if((K=H.clientResource)==null?0:K.imageName)return H}}};
Mel=function(d){var H;if((H=d.clientResource)!=null&&H.imageColor)return _.Ob(d.clientResource.imageColor)};
_.wlX=function(d,H,K,c,p,g,a){if(!H||H.length===0||H[0].clientResource)return null;if(K&&H[0].url)return H[0].url;c===void 0&&(c=!0);if(c){var e;d=m0X*(p||(d==null?void 0:(e=d.getBoundingClientRect())==null?void 0:e.width)||0)}else{var k;d=m0X*(g||(d==null?void 0:(k=d.getBoundingClientRect())==null?void 0:k.height)||0)}H=U0F(H,d,c,a);return(H==null?0:H.url)?H.url:(H==null?0:H.imageData)?H.imageData:null};
PnD=function(d,H,K){K=K?[K]:[];d.opacity&&K.push("opacity: "+d.opacity+";");H&&d.placeholderColor?(d=_.Ob(d.placeholderColor),K.push("background-color: "+d+";")):K.push("background-color: transparent;");return K.join(" ")};
ueE=function(d,H,K,c,p){var g=["yt-core-image"];H&&g.push(H);K||g.push("yt-core-image--fill-parent-height");c||g.push("yt-core-image--fill-parent-width");switch(d.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":g.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":g.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":g.push("yt-core-image--content-mode-center");break;default:g.push("yt-core-image--content-mode-scale-to-fill")}d.flipForRtlLayout&&
g.push("yt-core-image--flip-rtl");switch(p){case "TOP_START":var a;g.push(((a=document.body)==null?void 0:a.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return g.join(" ")};
riL=function(d){var H;if(d==null?0:(H=d.clientResource)==null?0:H.imageName){var K;d=(K=d.clientResource)==null?void 0:K.imageName;a:{switch(d){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":K="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":K="yt-logos-ext:yt-logo-updated";break a}K=void 0}return K||I9Y.get(d)||d}};
zBF=function(d){return _.h("mweb_wiz_skip_render")?WYM(d):BTF(d)};
WYM=function(d){return function(H){var K=wVF("wink-root");uxE();PCY();_.fb5(K,_.x(d,H))}};
BTF=function(d){var H=H===void 0?!1:H;return function(K){if(!H||!_.h("mweb_skip_keto_to_c3_if_no_data")||K.data!==void 0){var c=$2(!1);try{var p=K.children;_.h("mweb_render_outside_patch_killswitch")||tt?p?dQ(_.x(d,K,p)):dQ(_.x(d,K)):_.Jf(new _.m1("ketoToC3 called outside of a patch",{tagName:d.TAG_NAME}))}finally{$2(c)}}}};
Xl5=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
sTL=function(d,H){d.onViewportEntered=H;JiF.observe(d)};
FYE=function(){var d={rootMargin:"10%",threshold:.01};_.h("mweb_enable_set_io_root_to_null_safari")?d.root=null:_.h("mweb_enable_set_io_root_to_body_safari")&&(d.root=document.body);return new IntersectionObserver(function(H,K){H.filter(function(c){return c.intersectionRect.height>0}).forEach(function(c){c=c.target;
if(!_.h("mweb_enable_only_update_image_when_connected")||c.isConnected!==!1){var p;(p=c.onViewportEntered)==null||p.call(c);K.unobserve(c)}})},d)};
ZSL=function(d,H,K,c,p){function g(){if(c){var e=c.loadedClass,k=c.notifyOnUnloaded;e&&_.v1(d,e);k&&d.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function a(){var e=K(H,d);e&&d.getAttribute("src")!==e&&(_.h("mweb_enable_only_update_image_when_connected")&&d.isConnected===!1||e===d.src||(d.src=e),g())}
p=p===void 0?!0:p;d.removeAttribute("src");g();H&&(p?sTL(d,a):a())};
TTh=function(d,H,K){if(!H)return!1;H=K(H,d);K=d.getAttribute("src");return H&&H===K&&d.complete};
QTM=function(d,H){for(var K in H)K==="className"?d.className=H[K]:(HV[K]||HV[Fq.default])(d,K,H[K])};
teF=function(d,H,K,c){zBF(_.d7)({contentMode:H.contentMode,loadedClass:H.loadedClass,isPreloaded:H.isPreloaded,notifyOnLoaded:H.notifyOnLoaded,notifyOnUnloaded:H.notifyOnUnloaded,preferredThumbnail:H.preferredThumbnail,preserveHeight:H.preserveHeight,preserveWidth:H.preserveWidth,objectPosition:H.objectPosition,targetWidth:H.targetWidth,targetHeight:H.targetHeight,shouldShowPlaceholder:H.shouldShowPlaceholder,useWidth:H.useWidth,isToggled:H.isToggled,alt:H.alt,className:H.className,onerror:H.onerror,
onload:H.onload,style$:H.style$,color:H.color,width:H.width,height:H.height,"aria-hidden$":H["aria-hidden$"],draggable:H.draggable,"data-disabled$":H["data-disabled$"],data:d,callback:K,renderLazy:c===void 0?!0:c,hideOn404:!1})};
OS5=function(d,H,K){K=K===void 0?!1:K;var c=d.sources!==void 0?d:_.Ve5(d);if(c){var p=H.onload;H.onload=function(k){var C=k.target;K&&C.naturalWidth===120||_.Hg(C,"yt-core-image--loaded");H.notifyOnLoaded&&C.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));p==null||p(k)};
H.targetWidth&&H.preserveWidth&&(H.width=H.targetWidth);H.targetHeight&&H.preserveHeight&&(H.height=H.targetHeight);var g=_.LYY(c),a=g&&riL(g);if(a)return(d=Mel(g))&&(H.color=d),{type:"icon",iconName:a,config:Object.assign({},H,H.alt?{}:{"aria-hidden$":"true"},{"aria-label$":H.alt,role:"img"})};if(d.sources===void 0){H.alt=d.accessibility&&d.accessibility.accessibilityData&&d.accessibility.accessibilityData.label||H.alt;H.style$=PnD(d,H.shouldShowPlaceholder,H.style$);var e;H.isPreloaded=!((e=_.M(d,
YfC))==null||!e.isPreloaded)}H.contentMode&&!c.contentMode&&(c.contentMode=H.contentMode);H.className=ueE(c,H.className,H.preserveHeight,H.preserveWidth,H.objectPosition);H.loadedClass="yt-core-image--loaded";return{type:"image",image:c,config:H}}};
_.$M=function(){var d=_.sH.apply(0,arguments);return _.jV(Sf4,function(H){var K=d.map(function(c){return c==null?void 0:c(H)});
return function(){return void K.forEach(function(c){return void(c==null?void 0:c())})}})};
K7=function(d,H){var K=H==null?void 0:H.initial;return _.ey(function(){_.IH(!0);return K=d(K)},{equals:H==null?void 0:H.isEqual},"rSlKsc")};
EjF=function(d,H){if(d===H)return!0;if(d===void 0||H===void 0)return!1;var K,c,p,g,a,e,k,C;return d.content===H.content&&((K=d.styleRuns)==null?void 0:K.length)===((c=H.styleRuns)==null?void 0:c.length)&&((p=d.commandRuns)==null?void 0:p.length)===((g=H.commandRuns)==null?void 0:g.length)&&((a=d.attachmentRuns)==null?void 0:a.length)===((e=H.attachmentRuns)==null?void 0:e.length)&&((k=d.decorationRuns)==null?void 0:k.length)===((C=H.decorationRuns)==null?void 0:C.length)};
NTF=function(d,H){if(d){var K=qfi(d);if(K!=null&&K.content)if(_.h("attr_string_reactive"))zBF(yiF)({text:d,config:H});else{var c=!(H==null||!H.ariaLabel)||!(K.commandRuns&&K.commandRuns.length!==0||K.paragraphStyleRuns&&K.paragraphStyleRuns.length!==0);d=c?H==null?void 0:H.ariaLabel:null;c=c?"text":null;VI4("span",{className:Db4(K,H),dir$:(H==null?0:H.userInput)?"auto":void 0,"aria-label$":d,role$:c},function(){if(K.styleRuns||K.commandRuns||K.attachmentRuns||K.decorationRuns||K.paragraphStyleRuns){var p=
oj5(K,H);l9f(p,H);p=RBL(K.content,p);p=_.q(p.parts);for(var g=p.next();!g.done;g=p.next())bSi(g.value)}else Jwf(K.content)})}}};
bSi=function(d){typeof d==="string"?Jwf(d):a9h(d.data)?VI4("span",d.data.imageWrapperConfig,function(){teF(d.data.image,d.data.imageConfig)}):VI4(d.data.tag,d.data.config,function(H){eBF(d.data)(H);
H=_.q(d.parts);for(var K=H.next();!K.done;K=H.next())bSi(K.value)})};
f9C=function(d){return d.parts.map(D0h)};
D0h=function(d){if(typeof d==="string")return d;d=a9h(d.data)?_.x("span",{el:_.$M(k$L(d.data.imageWrapperConfig))},_.x(_.d7,Object.assign({},{data:d.data.image},d.data.imageConfig))):_.x(d.data.tag,{el:_.$M(eBF(d.data),k$L(d.data.config))},d.parts.map(D0h));return n6(d)};
Aih=function(d,H){return d===H?!0:d===void 0||H===void 0?!1:d.noStyleRuns===H.noStyleRuns&&d.noLinkColor===H.noLinkColor&&d.noEndpoints===H.noEndpoints&&d.headerRuns===H.headerRuns&&d.isOverlay===H.isOverlay&&d.linkInheritColor===H.linkInheritColor&&d.userInput===H.userInput&&d.isHeadline===H.isHeadline};
jTi=function(d){return function(){var H,K,c,p,g,a,e,k,C,R,V,U,L,w,W;return{ariaLabel:(H=d.ariaLabel)==null?void 0:H.call(d),className:(K=d.className)==null?void 0:K.call(d),ellipsisTruncate:(c=d.ellipsisTruncate)==null?void 0:c.call(d),isOverlay:(p=d.isOverlay)==null?void 0:p.call(d),linkInheritColor:(g=d.linkInheritColor)==null?void 0:g.call(d),noEndpoints:(a=d.noEndpoints)==null?void 0:a.call(d),noStyleRuns:(e=d.noStyleRuns)==null?void 0:e.call(d),noLinkColor:(k=d.noLinkColor)==null?void 0:k.call(d),
noPreWrap:(C=d.noPreWrap)==null?void 0:C.call(d),noWrap:(R=d.noWrap)==null?void 0:R.call(d),skipOnClick:(V=d.skipOnClick)==null?void 0:V.call(d),stopPropagation:(U=d.stopPropagation)==null?void 0:U.call(d),userInput:(L=d.userInput)==null?void 0:L.call(d),headerRuns:(w=d.headerRuns)==null?void 0:w.call(d),isHeadline:(W=d.isHeadline)==null?void 0:W.call(d)}}};
_.vj5=function(d){return d.value===""||d.value==="true"?!0:d.value==="false"?!1:isNaN(Number(d.value))?d.value:Number(d.value)};
cg=function(d,H){d=new dLC(d,H);_.z5(d);throw d;};
HDM=function(d,H,K){var c=amh(d);d._numRenders=0;try{var p=_.nE5(function(){return _.x(H,Object.assign({},K))})}catch(a){var g=function(e){e.args||(e.args=[]);
e.args.push("Error in web component wrapper");e.args.push(d.tagName.toLowerCase());return e};
_.Xi(a instanceof Error?g(a):new dLC("Wiz rendering error",d.tagName.toLowerCase()));throw a;}finally{amh(c)}return p};
_.iV=function(d,H,K){function c(R){var V={};R=_.q(R);for(var U=R.next();!U.done;U=R.next()){U=U.value;var L=void 0,w=void 0,W=void 0,J=_.hP((W=(w=(L=U).getAttribute)==null?void 0:w.call(L,"slot"))!=null?W:"children");if(L=V[J])L.push(U);else if(J in g||J==="children")V[J]=[U]}R=_.q(Object.keys(V));J=R.next();for(U={};!J.done;U={content$jscomp$57:void 0},J=R.next())J=J.value,J!=="children"&&(U.content$jscomp$57=V[J],V[J]=function(F){return function(){return F.content$jscomp$57}}(U));
return V}
K=K===void 0?{}:K;d.componentType!==ht||cg("Components must be marked reactive to be used from web component wrapper.",H);_.iD.has(H)&&cg("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",H);var p,g=(p=K.props)!=null?p:{};G6.add(H);var a=_.$LE();p=function(){var R=a.apply(this,arguments)||this;R.rawProps={};R.queuingRender=!1;R.dispose=function(){};
R.isWebComponentWrapper=!0;R.isReparenting=!1;R.hasRendered=!1;return R};
_.m(p,a);p.prototype.render=function(){this.hasRendered=!0;for(var R=_.q([].concat(_.ru(this.attributes))),V=R.next();!V.done;V=R.next())V=V.value,V.name!=="slot"&&V.name!=="hidden"&&this.removeAttribute(V.name);R=Object.assign({},this.componentProps,this.slotProps);V=_.q(HDM(this,d,R));R=V.next().value;V=V.next().value;!(R[0]instanceof Element)||R.length>1?cg("Wrapped Wiz components must return a single root element.",H):(R=R[0].tagName.toLowerCase(),R!==H&&cg("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(R+" !== '"+H),H),this.dispose=V)};
p.prototype.setUpProps=function(){for(var R=this.rawProps,V=this.attributes,U=_.q(Object.keys(g)),L=U.next();!L.done;L=U.next()){L=L.value;var w=void 0;((w=this)==null?0:w[L])&&this[L]!==KAf&&R[L]===void 0&&(R[L]=this[L],(w=Object.getOwnPropertyDescriptor(this.constructor.prototype,L))&&Object.defineProperty(this,L,w))}U=_.q(V);for(L=U.next();!L.done;L=U.next()){w=L.value;L=_.hP(w.name);var W=L==="class"&&!V.getNamedItem("class-name");if(L in g||W)w=_.vj5(w),L!=="class"||R.className?R[L]=w:R.className=
w}V={};for(var J in g)g[J]!==_.p7&&g[J]!==cD5&&(R[J]instanceof Function&&cg("Function props must be configured as STATIC, not SIGNAL.",H),L=_.q(_.GO(R[J],void 0,"Ri8MSe")),U=L.next().value,L=L.next().value,V[J]=L,R[J]=U);R=_.q([R,V]);this.componentProps=R.next().value;this.setters=R.next().value;this.slotProps=c(this.childNodes)};
p.prototype.connectedCallback=function(){_.g7===H&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in g&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
p.prototype.disconnectedCallback=function(){if(!this._isInert){var R;a:{if(_.pof)for(R=this;R;){if(_.gzX.has(R)){R=!0;break a}R=R.parentElement}R=!1}if(R)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){R=_.q([].concat(_.ru(this.attributes)));for(var V=R.next();!V.done;V=R.next()){V=V.value;var U=void 0;V.name==="slot"||V.name==="hidden"&&((U=K.unsafeExternallySettableAttributes)==null?0:U.has("hidden"))||this.removeAttribute(V.name)}}this.innerText="";cq1(this)}}};
p.prototype._setPendingPropertyOrPath=function(){};
p.prototype.notifyPath=function(){};
_.H3.Object.defineProperties(p.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var e=_.q(Object.keys(g)),k=e.next(),C={};!k.done;C={prop$jscomp$105:void 0},k=e.next())C.prop$jscomp$105=k.value,k=void 0,((k=K.legacyPolymer)==null?0:k.forwardHostProps)&&$2C.has(C.prop$jscomp$105)||Object.defineProperty(p.prototype,C.prop$jscomp$105,{set:function(R){return function(V){var U=this;this._isInert||(this.setters?km(function(){var L,w;return void((w=(L=U.setters)[R.prop$jscomp$105])==null?void 0:w.call(L,V))}):(this.rawProps[R.prop$jscomp$105]=V,this.queuingRender&&R.prop$jscomp$105===
"data"&&V!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(C),
get:iDi.has(C.prop$jscomp$105)?void 0:function(){return KAf}});
customElements.define(H,p)};
_.Gal=function(d,H){return(d=_.Gv(d,H))?_.IK(_.Xa(d)):null};
_.od=function(d){if(d=_.Gv(d,Number.MAX_VALUE,void 0,"width"))return _.Xa(d)};
_.Gv=function(d,H,K,c){c=c===void 0?"width":c;if(!d||!d.length)return null;if(_.h("kevlar_tuner_should_always_use_device_pixel_ratio")){var p=window.devicePixelRatio;_.h("kevlar_tuner_should_clamp_device_pixel_ratio")?p=Math.min(p,_.iT("kevlar_tuner_clamp_device_pixel_ratio")):_.h("kevlar_tuner_should_use_thumbnail_factor")&&(p=_.iT("kevlar_tuner_thumbnail_factor"));ozX=p}else ozX||(ozX=window.devicePixelRatio);p=ozX;_.h("kevlar_tuner_should_always_use_device_pixel_ratio")?H*=p:p>1&&(H*=p);if(_.h("kevlar_tuner_min_thumbnail_quality"))return d[0].url||
null;p=d.length;if(_.h("kevlar_tuner_max_thumbnail_quality"))return d[p-1].url||null;if(K)for(var g=0;g<p;g++)if(d[g].url.indexOf(K)>=0)return d[g].url||null;for(K=0;K<p;K++)if(d[K][c]>=H)return d[K].url||null;for(H=p-1;H>0;H--)if(d[H][c])return d[H].url||null;return d[0].url||null};
lCl=function(){qc.size?setTimeout(function(){ad(q0L)},0):aC4=0};
q0L=function(){var d=(0,_.$G)(),H=null,K=!1;qc.forEach(function(p){p.loaded=!0;p.loadTime=d;p.pendingPaint=!1;var g=epF.get(p);g&&g.resolve(d);H=p;K||!p.ftlEligible&&p.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(K=!0)});
var c;((c=H)==null?0:c.markDirty)&&H.markDirty();qc.clear();aC4=0;K&&kaC(d)};
xLF=function(d){qc.add(d);d.pendingPaint=!0;aC4||(aC4=_.lV(_.Xp,lCl))};
nzL=function(d){d.loaded=!1;d.loadTime=Infinity;var H=epF.get(d);H&&(H.reject(Error("lh")),epF.delete(d));d.pendingPaint&&(qc.delete(d),d.pendingPaint=!1)};
_.CP5=function(d){var H=d.indexOf(":");return H===-1?{originalName:d}:{originalName:d.substring(0,H),datasyncId:d.substring(H+1)}};
_.VdF=function(){return _.l(function(d){if(Rpl!==void 0)return d.return(Rpl);Rpl=new Promise(function(H){var K;return _.l(function(c){switch(c.nextAddress){case 1:return _.e2(c,2),c.yield(_.e8.open("test-only"),4);case 4:return c.yield(_.e8.delete("test-only"),5);case 5:_.Em(c,3);break;case 2:if(K=_.RV(c),K instanceof Error&&K.name==="SecurityError")return H(!1),c.return();case 3:H("caches"in window),_.VE(c)}})});
return d.return(Rpl)})};
LAF=function(){return _.l(function(d){if(d.nextAddress==1)return d.yield(_.VdF(),2);if(!d.yieldResult)return d.return(void 0);ULY||(ULY=new hpi);return d.return(ULY)})};
Md4=function(d){var H,K,c,p;return _.l(function(g){switch(g.nextAddress){case 1:return g.yield(LAF(),2);case 2:H=g.yieldResult;if(!H)throw Error("nh");return g.yield(H.open("yt-player-local-img"),3);case 3:return K=g.yieldResult,g.yield(K.match(d),4);case 4:c=g.yieldResult;if(!c)throw Error("oh");return g.yield(c.blob(),5);case 5:return p=g.yieldResult,g.return(p)}})};
mLY=function(d,H){for(var K in d)if(d.hasOwnProperty(K)&&H[K])return K;return null};
woh=function(d){return"stamp"+d.replace("-","_")+"_"};
PPD=function(d){var H=d.match(/\[\[([\w\.]+)\]\]/);if(H&&H.length>1)return H[1];_.z5(Error("qh`"+d));return null};
uAF=function(d){return d===void 0?_.Qx("REUSE_COMPONENTS",!1):d||!1};
WAL=function(d,H,K){K&&(H.is?(ICM.has(H)&&(d=ICM.get(H),K=d.listener,delete H[d.property],K.type==="element"&&H.removeEventListener(K.eventName,K.handler),ICM.delete(H)),rDF(H)):H.__proto__==HTMLElement.prototype&&(H=new _.m1("Rendererstamper removed a non custom element","Stamper: "+d+" element: "+(H&&H.nodeName)),_.Jf(H)))};
BZM=function(d,H,K,c){var p=H.node?H.node:H;_.Gn(K).parentNode===p&&(H.removeChild(K),WAL(d,K,c));if(d=kM.get(K))kM.delete(K),_.Xp.cancelJob(d);K.hidden=!1};
zpC=function(d,H,K,c){if(H&&H.children&&(K=H.children[K]))if(_.Qx("DEFERRED_DETACH"))for(;K&&!kM.has(K);){var p=d,g=H,a=K,e=c;a.hidden=!0;p=_.mf(_.Xp,BZM.bind(null,p,g,a,e),0);kM.set(a,p);K=K.nextElementSibling}else for(;(a=H.lastElementChild)&&(H.removeChild(a),WAL(d,a,c),a!=K););};
_.XoL=function(d){var H=_.Af("__slot-el");_.WE(function(){for(var K=_.q(d.slotContent),c=K.next();!c.done;c=K.next())H.value.appendChild(c.value)});
return _.x("__slot-el",{el:H,skip:!0})};
_.xM=function(){for(var d=_.sH.apply(0,arguments),H=!0,K=_.q(d),c=K.next();!c.done;c=K.next())if(typeof c.value!=="string"){H=!1;break}return H?d.join(" ").trim()||void 0:function(){for(var p="",g=_.q(d),a=g.next();!a.done;a=g.next())if(a=a.value,typeof a==="function"&&(a=a()),a)if(typeof a==="string")p+=" "+a;else for(var e in a)if(a.hasOwnProperty(e)){var k=a[e];typeof k==="function"&&(k=k());k&&(p+=" "+e)}p=p.trim()||void 0;return _.IH(p)}};
sNF=function(d){var H;return(H=JDl[d])!=null?H:"EVENT_SPAN_TYPE_UNKNOWN"};
FA5=function(d){var H=d.nodeName;if(d.id)return H+="#"+d.id;if(d.classList)for(var K=_.q(d.classList),c=K.next();!c.done;c=K.next())H+="."+c.value;d.parentElement&&(H=FA5(d.parentElement)+" > "+H);return H};
ZDX=function(d){return function(H){var K=sNF(H.type);return K==="EVENT_SPAN_TYPE_UNKNOWN"?d(H):Shl("event",{type:K,nodepath:H.target instanceof Element?FA5(H.target):void 0},function(){return d(H)})}};
_.n7=function(d){d&&Qh5("event")&&(d=ZDX(d));return yWX(function(H){var K,c=(K=d)==null?void 0:K(H);return typeof c==="boolean"?c:!0})};
C7=function(d){return function(){return d()?d():void 0}};
Y0l=function(d){var H=_.Af("animated-rolling-character"),K=z9(),c=v3(d.character)||v3(d.previousCharacter);vKL(function(){if(d.marginMultiplier){var p;(p=K.value)==null||p.cancel();c?(p=d.previousCharacter?Number(d.previousCharacter)+10:d.rollUp?0:30,d.shouldAnimate||(p-=TZ4(d,p))):(p=d.rollUp?0:2,d.shouldAnimate||(p-=d.rollUp?-1:1));H.value.style.marginTop="-"+p*d.marginMultiplier+"px";d.shouldAnimate?K.value=QNE(H.value,d,p,c):H.value.style.display=d.character?"":"none"}});
return _.x("animated-rolling-character",{el:H,class:"animatedRollingCharacterHost"},Ct4(c,function(){for(var p=[],g=1;g<30;g++)p.push(_.x("div",null,g%10));return _.x(_.HE,null,_.x("div",null,"\u00a0"),p,_.x("div",null,"\u00a0"))},function(){return td4(d.character)}))};
td4=function(d){return _.x(_.HE,null,_.x("div",null,"\u00a0"),_.x(_.HE,null,Ct4(!d||_.oE(d),function(){return _.x("div",null,"\u00a0")},function(){return _.x("div",null,d)})),_.x("div",null,"\u00a0"))};
QNE=function(d,H,K,c){K=new Animation(new KeyframeEffect(d,[{transform:"translateY(0px)"},{transform:"translateY("+(c?TZ4(H,K):H.rollUp?-1:1)*H.marginMultiplier+"px)"}],OD1),document.timeline);H.character?(d.style.display="",K.onfinish=null):K.onfinish=function(){d.style.display="none"};
K.play();return K};
TZ4=function(d,H){var K=Number(d.character)+10;if(d.previousCharacter)if(d.character){var c=Number(d.character),p=Number(d.previousCharacter);d=d.rollUp?p<c?K:K+10:p<c?K-10:K}else d=d.rollUp?30:0;else d=d.character==="0"?K:d.rollUp?K-10:K+10;return H-d};
_.Rd=function(d){return function(H){var K={},c;for(c in H){var p=void 0,g=void 0;((p=void 0)==null?0:(g=p.callbacks)==null?0:g[c])||(K[c]=H[c])}return _.x(x$F,null,function(){for(var a in K)H[a]=_.IH(K[a]);H.disableReactiveLogging=!0;return _.x(d,Object.assign({},H))})}};
yDF=function(d,H,K,c,p,g,a){K=new Animation(new KeyframeEffect(d,[{transform:"translateY(0px)"},{transform:"translateY("+(g?S05(H,K,c,p):c?-1:1)*a+"px)"}],EzC),document.timeline);H?(d.style.display="",K.onfinish=null):K.onfinish=function(){d.style.display="none"};
K.play();return K};
S05=function(d,H,K,c){var p=Number(d)+10;H?d?(d=Number(d),H=Number(H),K=K?H<d?p:p+10:H<d?p-10:p):K=K?30:0:K=d==="0"?p:K?p-10:p+10;return c-K};
NZC=function(d){var H=z9(),K=z9();_.r9(function(){H.value=d.numberText;K.value=d.numberValue},[d.numberText]);
var c=d.fontSizeMultiplier?d.heightPx*d.fontSizeMultiplier:d.heightPx,p=GTi(function(){if(d.numberText){var a=d.numberText;var e=d.forceRollUp||!K.value||!d.numberValue||K.value<d.numberValue;var k=!!d.shouldAnimate,C=H.value,R=[],V=0,U=0,L=(C?C.replace(/\D/g,"").length:0)-(a?a.replace(/\D/g,"").length:0);C=C?C.split(/(\d)/).filter(Boolean):[];for(a=a.split(/(\d)/).filter(Boolean);L<0;){var w=a[U];R.push({character:w,rollUp:e,marginMultiplier:c,shouldAnimate:k});U++;v3(w)&&L++}for(;V<L;)w=C[V],R.push({previousCharacter:w,
rollUp:e,marginMultiplier:c,shouldAnimate:k}),V++,v3(w)||L++;for(;U<a.length;)L=a[U],w=C[V],v3(L)===v3(w)?(U++,V++):v3(L)?(V++,L=void 0):v3(w)&&(U++,w=void 0),R.push({character:L,previousCharacter:w,rollUp:e,marginMultiplier:c,shouldAnimate:k});e=R}else e=[];return e},[d.numberText]),g=d.numberText?["height: "+c+"px;",
"line-height: "+d.heightPx+"px;"].join(" "):"";return _.x("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:g,dir:"ltr","aria-hidden":"true"},p.map(function(a){return _.x(bDE,Object.assign({},a))}))};
DLL=function(d){return new KeyframeEffect(d,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
fC5=function(d){return new KeyframeEffect(d,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.V2=function(d){var H=K7(function(K){K=K?ij(K[0]):void 0;return _.GO(d(K),void 0,"AwTxXe")},{isEqual:function(K,c){return ij(K[0])===ij(c[0])}});
return[function(){return H()[0]()},
function(K){return void H()[1](K)}]};
_.UQ=function(d){return function(){var H="",K;for(K in d){for(var c=d[K];typeof c==="function";)c=c();c!==void 0&&c!==null&&(H+="; "+K+": "+c)}return H.length>0?_.IH(H.slice(2)):_.IH()}};
ADE=function(d){switch(d){case 2:return"yt-spec-touch-feedback-shape--touch-response-inverse";case 3:return"yt-spec-touch-feedback-shape--overlay-touch-response";case 4:return"yt-spec-touch-feedback-shape--overlay-touch-response-inverse";default:return"yt-spec-touch-feedback-shape--touch-response"}};
$IX=function(d,H,K,c,p,g,a){var e=jN4(d),k=e.disabled,C=e.iconPosition,R=e.style,V=e.focused,U=function(){return!!W()&&C()==="icon-only"},L=function(){return!!W()&&C()==="icon-only-40"},w=function(){return!!W()&&C()==="icon-with-label"},W=function(){return!!H||!(c==null||!c())};
return{type:function(){return R()==="call-to-action-inverse"?"text":R()==="overlay-dark"&&d().type!=="filled"&&d().type!=="tonal"?"tonal":d().type},
shouldFocus:function(){return(V()||(g==null?void 0:g()))&&!k()},
hasIconLeading:function(){return!!W()&&C()==="leading"},
hasIconTrailing:function(){return!!W()&&C()==="trailing"},
hasIconLeadingTrailing:function(){return!!W()&&!!(K||p!=null&&p())&&C()==="leading-trailing"},
hasIconOnly:U,hasIconOnly40:L,hasIconWithLabel:w,iconButton:function(){return U()||L()||w()},
visiblyDisabled:function(){return(k()?"disabled":d().state)==="disabled"||k()},
overrideSmallSizeIcon:function(){return!d().ignoreIconSizeOverride&&vz1(d(),W())},
iconToRender:H?H:function(){return _.x(_.hu,{icon:c,size:function(){return dI1(d(),!0,d().ignoreIconSizeOverride)},
active:function(){return d().toggled},
iconFilter:function(){return Hr4(d())},
animateIcon:a})},
secondaryIconToRender:K?K:function(){return _.x(_.hu,{icon:p,size:function(){return dI1(d(),!0,d().ignoreIconSizeOverride)},
active:function(){return d().toggled},
iconFilter:function(){return Hr4(d())}})}}};
jN4=function(d){return{size:function(){return d().size},
style:function(){return d().style},
focused:function(){return d().focused},
disabled:function(){return d().disabled},
onTap:function(H){var K,c;return(c=(K=d()).onTap)==null?void 0:c.call(K,H)},
alignByText:function(){return d().alignByText},
aTagConfig:function(){return d().aTagConfig},
customColors:function(){return d().customColors},
segmentedPosition:function(){return d().segmentedPosition},
toggled:function(){return d().toggled},
toggleable:function(){return d().toggleable},
accessibilityLabel:function(){return d().accessibilityLabel},
onToggle:function(H){var K,c;return(c=(K=d()).onToggle)==null?void 0:c.call(K,H)},
iconPosition:function(){return d().iconPosition},
oneOffCustomTextWrap:function(){return d().oneOffCustomTextWrap},
disableTextEllipsis:function(){return d().disableTextEllipsis},
disableBackdropFilter:function(){return d().disableBackdropFilter},
tooltipText:function(){return d().tooltipText},
ariaHidden:function(){return d().ariaHidden},
tabIndex:function(){return d().tabIndex},
buttonText:function(){return d().buttonText},
formattedButtonText:function(){return d().formattedButtonText},
animatedTextProps:function(){return d().animatedTextProps}}};
vz1=function(d,H){H=(d.iconPosition==="icon-only"||d.iconPosition==="icon-only-40"||d.iconPosition==="icon-with-label")&&H;return!d.segmentedPosition&&H&&d.size==="S"};
dI1=function(d,H,K){switch(d.size){case "XS":return 16;case "S":return!K&&vz1(d,H)?24:16;default:return 24}};
Kol=function(d){switch(d){case "filled":return"yt-spec-button-shape-next--filled";case "outline":return"yt-spec-button-shape-next--outline";case "tonal":return"yt-spec-button-shape-next--tonal";default:return"yt-spec-button-shape-next--text"}};
cpF=function(d){switch(d){case "call-to-action":return"yt-spec-button-shape-next--call-to-action";case "call-to-action-overlay":return"yt-spec-button-shape-next--call-to-action-overlay";case "mono":return"yt-spec-button-shape-next--mono";case "overlay":return"yt-spec-button-shape-next--overlay";case "overlay-dark":return"yt-spec-button-shape-next--overlay-dark";case "call-to-action-inverse":return"yt-spec-button-shape-next--call-to-action-inverse";case "mono-inverse":return"yt-spec-button-shape-next--mono-inverse";
case "brand-gradient":return"yt-spec-button-shape-next--brand-gradient";case "gen-ai-gradient":return"yt-spec-button-shape-next--gen-ai-gradient";default:return"yt-spec-button-shape-next--mono"}};
p85=function(d){switch(d){case "XS":return"yt-spec-button-shape-next--size-xs";case "S":return"yt-spec-button-shape-next--size-s";case "L":return"yt-spec-button-shape-next--size-l";case "XL":return"yt-spec-button-shape-next--size-xl";default:return"yt-spec-button-shape-next--size-m"}};
Hr4=function(d){if(d.style==="overlay-dark"&&d.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
L7=function(d){return d&&d.endsWith("px")?Number(d.slice(0,-2)):0};
G2D=function(d){var H=H===void 0?{}:H;d=_.q(_.V2(d));var K=d.next().value;return[function(c){var p=_.ey(function(){var e,k,C,R;return{text:(e=K())!=null?e:"",location:(k=H.location)!=null?k:"bottom",offset:(C=H.offset)!=null?C:16,delay:(R=H.delay)!=null?R:1}},void 0,"MgTrkc");
_.wc(function(){var e=p();ij(function(){_.Xp.addJob(function(){Mc.notify(c,e)},4)})},"WlsgZc");
var g=function(){gUh(c,p())},a=function(){irl()};
c.addEventListener("mouseenter",g);c.addEventListener("focus",g);c.addEventListener("mouseleave",a);c.addEventListener("blur",a);c.addEventListener("tap",a);_.Pk(function(){c.removeEventListener("mouseenter",g);c.removeEventListener("mouseleave",a);c.removeEventListener("focus",g);c.removeEventListener("blur",a);c.removeEventListener("tap",a);irl()})},
d.next().value]};
oU4=function(d,H){if(!br){var K;d8C(function(){return K=eDL(d,H)});
return K}d.parent=_.me();return eDL(d,H)};
_.me=function(){var d=_.DB(br||void 0,q7L);return _.hLF(d)?void 0:d};
w7=function(d,H){_.Yv(d,Object.assign({},H,{forceClickLogging:!0}))};
al1=function(d,H){var K=_.T6(d==null?void 0:d.onTap),c={};K&&(c.getClickedVisualElement=function(){var p;return qBC(d,K,H==null?void 0:(p=H.value)==null?void 0:p.visualElement)});
c=_.OG({elementsCommand:d.onTap,forceNewState:!0,additionalCommandArgs:c});return Sv(c)?c:void 0};
llh=function(d,H,K,c){w7(d,Object.assign({},{form:{element:H,event:K}},c))};
e45=function(d,H,K,c,p){var g=void 0;return function(a){var e=_.T6(K?d==null?void 0:d.onDisabledTap:d==null?void 0:d.onTap);if(e){var k;g=(k=g)!=null?k:H==null?void 0:H.value;if(e)if(_.h("web_button_vm_click_client_ve_killswitch"))llh(e,g,a);else{var C;k=qBC(d,e,(C=g)==null?void 0:C.visualElement);if(p){llh(e,p,a,{clickedVisualElement:k,form:{element:p}});return}llh(e,g,a,{clickedVisualElement:k})}}c&&c(a)}};
qBC=function(d,H,K){H=H==null?void 0:H.clickTrackingParams;var c,p;d=d==null?void 0:(c=d.loggingDirectives)==null?void 0:(p=c.clientVeSpec)==null?void 0:p.uiType;if(K&&d&&!H)return K};
k25=function(d){switch(d){case "BUTTON_VIEW_MODEL_STYLE_CTA":return"call-to-action";case "BUTTON_VIEW_MODEL_STYLE_MONO":case "BUTTON_VIEW_MODEL_STYLE_BRAND":return"mono";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY":return"overlay";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK":return"overlay-dark";case "BUTTON_VIEW_MODEL_STYLE_BRAND_GRADIENT":return"brand-gradient";case "BUTTON_VIEW_MODEL_STYLE_BRAND_AI":return"gen-ai-gradient";default:return"mono"}};
xIF=function(d){switch(d){case "BUTTON_VIEW_MODEL_TYPE_FILLED":return"filled";case "BUTTON_VIEW_MODEL_TYPE_OUTLINE":return"outline";case "BUTTON_VIEW_MODEL_TYPE_TEXT":return"text";case "BUTTON_VIEW_MODEL_TYPE_TONAL":return"tonal";default:return"text"}};
nU5=function(d){switch(d){case "BUTTON_VIEW_MODEL_STATE_ACTIVE":return"active";case "BUTTON_VIEW_MODEL_STATE_INACTIVE":return"disabled";case "BUTTON_VIEW_MODEL_STATE_DISABLED":return"disabled";default:return"active"}};
C2D=function(d){switch(d){case "BUTTON_VIEW_MODEL_SIZE_XSMALL":return"XS";case "BUTTON_VIEW_MODEL_SIZE_COMPACT":return"S";case "BUTTON_VIEW_MODEL_SIZE_DEFAULT":return"M";case "BUTTON_VIEW_MODEL_SIZE_LARGE":return"L";case "BUTTON_VIEW_MODEL_SIZE_XLARGE":return"XL";default:return"M"}};
R4f=function(d,H){return _.xL(d.entities,"engagementToolbarStateEntityPayload",H)};
UIF=function(d){(d=_.P1(d))&&_.VjF(d)};
_.VjF=function(d){var H=_.Fj();H&&_.b5(H,d)};
h44=function(d,H,K){_.oF(d,"yt-open-popup-action",[H,K||d])};
Loi=function(d,H){var K=_.Xm(d,"endpoint"),c=_.Xm(d,"action");return(K=c?c:K)&&H&&(K=H.navigationEndpointPopupMap[K])&&(d=_.OS(K,d),(K=_.Xm(d,"renderer"))&&H.supportedPopups.hasOwnProperty(K))?{openPopupAction:{popupType:H.popupTypeMap[K],popup:d}}:null};
MjF=function(d,H,K,c){if(c){var p;K=K==null?void 0:(p=K.data)==null?void 0:p.contents;(p=K instanceof Array&&K.length?K[0]:K)&&(K=_.Xm(p,"renderer"))&&c.supportedPopups.hasOwnProperty(K)&&(H.stopPropagation(),h44(d,{openPopupAction:{popupType:c.popupTypeMap[K],popup:p}}))}};
P2F=function(d,H,K,c){c=c===void 0?!1:c;var p=mIL(H);if(p){p.href&&yS(p.href);var g=H.button;g=g!==void 0?g===0&&!Pg(H):!Pg(H);p.data&&g&&w8E(d,p,H,K,c)}};
w8E=function(d,H,K,c,p){p=p===void 0?!1:p;var g=_.iT("pbj_navigate_limit",-1)===0;ufX(H);_.Kj().resolve(_.$p(ED));var a=H.data;if(Object.keys(a).length!==0)if(!_.h("unplugged_web_disable_actions_for_cec_endpoint")&&_.M(a,_.kW))_.h("endpoint_behavior_command_executor_fix_killswitch")||(K.preventDefault(),K.stopPropagation()),_.l5(d,[a],d);else if(c=Loi(a,c))a.loggingUrls&&a.loggingUrls.forEach(function(k){k.baseUrl&&_.S7(k.baseUrl)}),K.preventDefault(),K.stopPropagation(),h44(d,c,H);
else{var e=Il4(0,H.data,K);if(d=H.getForm)d=d(),e.tempData=e.tempData||{},e.tempData=Object.assign({},e.tempData,d);d=_.jh(K);if(c=d.find(function(k){return!!k.visualElement}))e.createScreenConfig=e.createScreenConfig||{},e.createScreenConfig.clickedVisualElement=c.visualElement;
if(!g)if(K.preventDefault(),K.stopPropagation(),_.M(a,_.rpF)&&!p&&_.nM.instance)_.nM.instance.resolveCommand(a,e);else if(_.h("kevlar_command_handler_formatted_string")&&!p&&_.nM.instance&&WoM(a))p=d.find(function(k){return!!k.is})||K.target,K={form:Object.assign({},e,{event:K,
element:p,originatingNode:H})},_.nM.instance.resolveCommand(a,K);else{a=_.jh(K);K=[];for(p=0;p<a.length;p++)(g=a[p].is)&&K.push(g);IbF({parents:K.join(","),text:H.innerText},function(){_.GT(H,"yt-navigate",e)})}}};
BRf=function(d){if(d=mIL(d))ufX(d),w$L(d.href)};
mIL=function(d){d=_.jh(d);for(var H,K=0;K<d.length;K++)if(H=d[K],H.tagName==="A"&&H.classList.contains("yt-simple-endpoint")){if(!H.data)break;return H}return null};
Pg=function(d){return d.shiftKey||d.altKey||d.metaKey||d.ctrlKey};
z45=function(d,H){var K={itct:H.clickTrackingParams};_.h("kevlar_client_side_screens")&&(!_.M(H,_.P5)||_.h("kevlar_exclude_endpoint_killswitch"))&&(K.endpoint=JSON.stringify(H));_.h("enable_unknown_lact_fix_on_html5")&&_.Kj().resolve(_.$p(_.uV))&&(K.lact=_.cd());LLY(K);_.Hy(d,K)};
ufX=function(d){d.href&&Object.keys(d.data).length!==0&&z45(d.href,d.data)};
WoM=function(d){for(var H=_.q(X8Y),K=H.next();!K.done;K=H.next())if(d[K.value])return!1;return!0};
_.Jpl=function(d,H){return _.xL(d.entities,"markersEngagementPanelSyncEntity",H)};
sOX=function(d,H){return _.xL(d.entities,"fantasyWinProbabilityEntity",H)};
Fo1=function(d,H){return _.xL(d.entities,"fantasyTeamEntity",H)};
Zri=function(d,H){return _.xL(d.entities,"fantasyPlayerEntity",H)};
TRF=function(d,H){return _.xL(d.entities,"booleanEntity",H)};
QO1=function(d,H){return _.xL(d.entities,"qrCodeEntity",H)};
tjl=function(d){return _.xL(d.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
YBf=function(){if(Id)return Id;if(window.lottie)return Id=Promise.resolve(window.lottie);var d=_.J5(_.Fm("LOTTIE_URL"));return d?Id=new Promise(function(H,K){var c=document.createElement("script");c.addEventListener("load",function(){H(lottie)});
c.addEventListener("error",function(p){var g="Lottie library failed to load.";p?p.message&&(g+=" Original description: "+p.message,_.sD(p,g)):p=Error(g);_.Jf(p);K(p)});
c.setAttribute("async","");_.fc(c,d);document.head.appendChild(c)}):Promise.reject(Error("rh"))};
Or1=function(){return Id?Id:YBf()};
SBY=function(d){if(d)switch(d){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.h("kevlar_use_wil_icons"))return d=(d=tjl(_.dn().getState()))&&d.animationLightUrl&&d.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:d.animationLightUrl,pathDarkTheme:d.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,d?d:r7.get("LIKE");break;case "LIKE_DELHI_PLAYER":return r7.get("LIKE_DELHI_PLAYER")}};
EUi=function(d){var H=SBY(d);if(H)return H;switch(d){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return r7.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return r7.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return r7.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return r7.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return r7.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return r7.get("NOTIFICATION_BELL")}};
ypL=function(d,H){if(!d.closest)return!1;H=!!SBY(H);return _.Fm("ID_TOKEN")&&H?!!d.closest("segmented-like-dislike-button-view-model")||!!d.closest("yt-player-quick-action-buttons"):!1};
NRD=function(d,H){if(!d||brX)H=!1;else{var K;if(!(K=ypL(d,H)))if(d.closest)if(K=!_.Fm("ID_TOKEN"),d=d.closest("ytd-subscription-notification-toggle-button-renderer-next"),K||!d)K=!1;else{var c;K=((c=d.data)==null?void 0:c.targetId)==="notification-bell"&&H!=="EXPAND_MORE"}else K=!1;H=K}return H};
DID=function(d){var H,K;return _.l(function(c){switch(c.nextAddress){case 1:return _.e2(c,2),c.yield(fetch(d),4);case 4:return H=c.yieldResult,c.yield(H.json(),5);case 5:return c.return(c.yieldResult);case 2:K=_.RV(c),_.Jf(K),_.VE(c)}})};
fl4=function(d,H){var K,c,p;return _.l(function(g){if(g.nextAddress==1)return(K=H?d.pathDarkTheme:d.path)?g.yield(Promise.all([DID(K),YBf()]),2):g.return();c=g.yieldResult;p=c[0];Wg.set(K,p);_.VE(g)})};
jOC=function(d,H,K,c){function p(a,e){if(H.value===e&&d!=null&&d.value){for(;d.value.firstChild;)d.value.removeChild(d.value.firstChild);d.value.classList.add("yt-spec-icon-shape");a(d.value,c)}}
K=_.Ap4(_.Kj().resolve(_.xv),K);if(typeof K==="function")H.value=null,p(K,null);else{var g=new _.kr(K.then,K);H.value=g;g.then(function(a){p(a,g)})}};
dhF=function(d,H){var K=document.createElement("div"),c=_.uU(K,function(){return _.x(_.n,{cond:d,then:function(p){return _.x(vUD,{data:p,options:H})}})});
return[K,c]};
_.Bg=function(d,H){if(H){var K={};H9E.forEach(function(c){c=$hM(H,c,"--yt-lightsource-");Object.assign(K,c)});
K$4.forEach(function(c){c=$hM(H,c,"--yt-basic-");Object.assign(K,c)});
_.eO(d,K)}};
$hM=function(d,H,K){var c={};c[K+_.Uo(H)]=d&&d[H]?_.Ob(d[H]):"";return c};
_.XX=function(d,H,K){zv[d]||(zv[d]={});zv[d][H]=K};
_.Ju=function(d){zv[d]||(zv[d]={});return zv[d]};
cUL=function(d){if(!d)return{};var H=d.foregroundTitleColor,K=d.backgroundColor;d=d.borderColor;var c="text";d?c="outline":K&&(c="filled");return{type:c,customColors:{color:H?_.Ob(H):void 0,backgroundColor:K?_.Ob(K):void 0,borderColor:d?_.Ob(d):void 0}}};
o$l=function(d){var H=d.renderer;var K=d.element;var c=d.commandController;var p=d.onTapCallback;var g=d.skipCommandHandling;var a=d.overrides;var e=d.forceIcon;var k=d.forceModernIconButton;var C=d.forceDisabled;var R=d.isSubscribe===void 0?!1:d.isSubscribe;var V=d.isPressed===void 0?!1:d.isPressed;var U=d.useButtonSize===void 0?!1:d.useButtonSize;d=p7Y(H);R&&(d.style="mono",d.type="filled");e=!H.icon||!e&&H.text?H.icon?H.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:k?"icon-only":"icon-only-40";e==="icon-only-40"&&(d.type="text");var L;k=Object;R=k.assign;U=g$i(H,U);V=!!H.isSelected||!_.h("web_propagate_is_pressed_killswitch")&&!!V;var w=H.isSelected!==void 0;C=C===void 0?H.isDisabled:C;var W=H.text?_.JR(H.text):void 0;var J,F,Y,A=((J=H.accessibilityData)==null?void 0:(F=J.accessibilityData)==null?void 0:F.label)||((Y=H.accessibility)==null?void 0:Y.label);J=A?A:_.jG(H.text);K=i91(H,K,c,p,g);c=G7l(H);c!=null&&c.length?(c=_.OG({innertubeCommand:Fzh(c),
forceNewState:!0}),c=Sv(c)?c:void 0):c=void 0;return R.call(k,{},d,U,{iconPosition:e},a,{focused:!1,toggled:V,toggleable:w,disabled:C,formattedButtonText:W,accessibilityLabel:J,onTap:K,aTagConfig:c},cUL((L=H.colorData)==null?void 0:L.basicColorPaletteData),{oneOffCustomTextWrap:H.oneOffCustomTextWrap})};
i91=function(d,H,K,c,p){return function(g){var a=G7l(d);c(a,g);if(!p){a=_.q(a);for(var e=a.next();!e.done;e=a.next())w7(e.value,{form:{element:H,event:g},commandController:K})}}};
G7l=function(d){var H=[];d.command&&H.push(d.command);d.serviceEndpoint&&H.push(d.serviceEndpoint);d.navigationEndpoint&&H.push(d.navigationEndpoint);return H};
g$i=function(d,H){if(H)switch(d.size){case "SIZE_SMALL":return{size:"S"};case "SIZE_LARGE":return{size:"L"};case "SIZE_XLARGE":return{size:"XL"};case "SIZE_XSMALL":return{size:"XS"};default:return{size:"M"}}switch(d.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
p7Y=function(d){switch(d.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
qFf=function(d,H){return typeof d!=="object"||d===null?!1:Object.keys(H).every(function(K){return K in d})};
a1l=function(d,H,K){return VqX(K,function(c,p){return function(g){var a=_.sH.apply(1,arguments);return qFf(g,d)?p.apply(null,[g[H]].concat(_.ru(a))):p.apply(null,[g].concat(_.ru(a)))}})};
_.sQ=function(d){return d!=null&&d.watch?d.watch.isTheaterMode:!1};
_.FX=function(d){return d!=null&&d.watch?d.watch.isWatchFullscreen:!1};
_.ZA=function(d){d=_.l1Y(d);return _.h("web_watch_enable_single_column_grid_view")?d:!1};
_.l1Y=function(d){return d.watch.isWatchNarrowWidth};
_.erD=function(d){return d.watch.openEngagementPanels};
_.Tv=function(d){return _.ey(function(){e85()();return ngM(d)},{debugName:"d8B62c"},"wfRQAb")};
Q2=function(d,H){return _.xL(d.entities,"likeStatusEntity",H)};
k7h=function(d,H){return _.xL(d.entities,"likeCountEntity",H)};
_.tu=function(d,H){return _.xL(d.entities,"stringEntity",H)};
xhL=function(d,H){if(!d)return!1;var K,c=(K=_.M(d,_.no))==null?void 0:K.signal;if(c&&H.signalEndpointMap)return!!H.signalEndpointMap[c];var p;if((K=(p=_.M(d,_.YM))==null?void 0:p.request)&&H.continuationEndpointMap)return!!H.continuationEndpointMap[K];for(var g in d)if(H.commandEndpointMap[g])return!0;return!1};
n$X=function(d,H){if(H.streamingEndpointMap)for(var K in d)if(H.streamingEndpointMap[K]&&(d=H.streamingEndpointMap[K]))return d()};
CHM=function(d,H){var K,c=(K=_.M(d,_.no))==null?void 0:K.signal;if(c&&H.signalEndpointMap&&(K=H.signalEndpointMap[c]))return K();var p;if((K=(p=_.M(d,_.YM))==null?void 0:p.request)&&H.continuationEndpointMap&&(p=H.continuationEndpointMap[K]))return p();for(var g in d)if(H.commandEndpointMap[g]&&(d=H.commandEndpointMap[g]))return d()};
RrC=function(d){var H={"Content-Type":"application/json"};_.Fm("EOM_VISITOR_DATA")?H["X-Goog-EOM-Visitor-Id"]=_.Fm("EOM_VISITOR_DATA"):_.Fm("VISITOR_DATA")&&(H["X-Goog-Visitor-Id"]=_.Fm("VISITOR_DATA"));H["X-Youtube-Bootstrap-Logged-In"]=_.Fm("LOGGED_IN",!1);_.Fm("DEBUG_SETTINGS_METADATA")&&(H["X-Debug-Settings-Metadata"]=_.Fm("DEBUG_SETTINGS_METADATA"));d!=="cors"&&((d=_.Fm("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(H["X-Youtube-Client-Name"]=d),(d=_.Fm("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(H["X-Youtube-Client-Version"]=
d),(d=_.Fm("CHROME_CONNECTED_HEADER"))&&(H["X-Youtube-Chrome-Connected"]=d),(d=_.Fm("DOMAIN_ADMIN_STATE"))&&(H["X-Youtube-Domain-Admin-State"]=d),_.Qx("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(d=_.Fm("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(H["X-YouTube-Lava-Device-Context"]=d));return H};
VUi=function(d,H){H.watchNextResponse||H.reelItemWatchResponse?H.watchNextResponse?d.content=H.watchNextResponse:d.content=H.reelItemWatchResponse:H.playerResponse?d.player=H.playerResponse:H.reelWatchSequenceResponse&&(d.reelSequence=H.reelWatchSequenceResponse)};
_.OQ=function(d){if(!d)return null;for(var H=[],K=0;K<d.textSegments.length;K++){var c=d.textSegments[K];c.text?H.push(c):c.emojiId&&H.push({emoji_id:c.emojiId})}return{text_segments:H}};
mh5=function(d,H,K,c,p,g,a){g=g===void 0?[]:g;var e=new _.S8;e.endpoint=K;if(!K)return _.Xi(new _.m1("handle undefined endpoint",H.tagName)),e;var k=Zf5(K);k.length&&(_.l5(d,k,H,c),e.actions=k);K.loggingUrls&&K.loggingUrls.forEach(function(R){R.baseUrl&&EX(R.baseUrl,R.attributionSrcMode)});
k=!_.h("web_skip_impression_click_killswitch")&&c&&c.impression;if(K.clickTrackingParams&&!Uh4(K)&&!hrY(H)&&!k&&(k=_.hR(),!_.EQ(k,H))){var C=H.getScreenLayer&&H.getScreenLayer();C?k.clickCommand(K,null,C):k.clickCommand(K,null)}k=!1;for(C=0;C<g.length;C++)if((0,g[C])(H,K,c)){k=!0;break}!k&&L$Y(K)&&(e.ajaxPromise=MUf(d,H,K,c,p,a));return e};
hrY=function(d){var H;return(d=(H=d.data)==null?void 0:H.navigationEndpoint)&&!!d.clickTrackingParams};
Uh4=function(d){var H=_.M(d,_.no);if(H&&(H=H.signal)&&w7h.indexOf(H)>=0)return!0;for(var K in d)if(PH4.indexOf(K)>=0)return!0;return!1};
L$Y=function(d){var H;if(((H=_.M(d,_.no))==null?void 0:H.signal)==="CLIENT_SIGNAL")return!1;for(var K in d)if(uoF.indexOf(K)>=0)return!1;d=Object.keys(d);return d.length===1&&d[0]==="loggingUrls"?!1:!0};
swf=function(d,H,K,c,p,g,a){var e=_.y2.instance;if(e&&_.bV(e,c))var k=_.Nc(e,c,p).then(function(R){return(R==null?0:R.data)?R:{data:R}});
else k=d.requestDataForServiceEndpoint(c,p),_.M(c,I1C)||_.M(c,rU1)||_.M(c,_.W$4)||_.M(c,BGX)||_.Jf(new _.m1("No RequestBuilder for endpoint",c));var C=_.DA();C.promise.thenCatch(function(){var R=_.Xm(c,"action")||_.Xm(c,"command")||_.Xm(c,"endpoint");R&&(R=c[R],R.hasOwnProperty("onFailureAction")?_.l5(H,[R.onFailureAction],K):R.hasOwnProperty("onFailureCommand")&&_.l5(H,R.onFailureCommand,K));k.cancel("Resolver promise rejected")});
k.then(function(R){if(R){var V=R.error;if(V){if(g&&g.onServerError)g.onServerError(c,R);C.reject(new _.m1("Response error",c,V))}else if(R=R.data)if(V=R.error){if(g&&g.onServerError)g.onServerError(c,R);C.reject(new _.m1("Returned error",c,V))}else{zrM(H,K,R,c);X7i(R);if(V=FRf(R))for(var U=_.q(V),L=U.next();!L.done;L=U.next()){L=L.value;var w=_.Kj().resolve(_.$p(JUX))||f7;if(!_.y2.instance||!w.some(function(J){return!!_.M(c,J)})||_.h("kevlar_response_processor_allowlist_killswitch")){var W=w=void 0;
((W=_.M((w=L)==null?void 0:w.commandMetadata,_.Co))==null?0:W.sendPost)?_.aF(H,[L]):_.l5(H,[L],K)}}(U=_.M(R==null?void 0:R.frameworkUpdates,Au))&&a&&a(U);if(g&&g.onSuccess)g.onSuccess(c,R);C.resolve(new _.j8(R,V))}}else C.reject(new _.m1("Invalid service endpoint provided",c))},function(R){C.reject(R)});
return C.promise};
X7i=function(d){var H;(d=(H=_.M(d==null?void 0:d.onResponseReceivedCommand,_.F$1))==null?void 0:H.continuationItems)&&(d==null?void 0:d.length)===1&&_.M(d[0],Z9i)&&_.Fw("so_r",void 0,"search_overview_answer")};
MUf=function(d,H,K,c,p,g){var a;return(a=H.getNetworkManager&&H.getNetworkManager()?H.getNetworkManager():_.Kj().resolve(_.$p(_.FL)))?swf(a,d,H,K,c,p,g):_.W1("No network manager.")};
zrM=function(d,H,K,c){if(K=K.trackingParams||K.loggingDirectives&&K.loggingDirectives.trackingParams){var p;(_.M(c,TGM)||_.M(c,Qwf)||_.M(c,tUM))&&c.clickTrackingParams?p=_.P1(c.clickTrackingParams):_.h("web_graft_to_parent_command")&&c.clickTrackingParams&&(p=_.P1(c.clickTrackingParams));var g;c=(g=H.getScreenLayer)==null?void 0:g.call(H);H=_.hR().graftServerVe(K,p,c);_.qo(d,"yt-store-grafted-ve-action",[H])}};
_.YFl=function(d){var H=new Image;return new _.kr(function(K,c){H.addEventListener("load",function(){K()});
H.addEventListener("error",function(){c()});
H.src=d})};
O94=function(d){return!!d};
SFD=function(d){return!!d};
E$X=function(d,H,K){var c=d.rowIndex;c!==void 0&&_.qo(d.hostElement,"yt-section-reactive-dismissal",[c,H,K])};
_.vg=function(d,H,K){d=_.q(d);for(var c=d.next();!c.done;c=d.next()){c=c.value;if(c===H)break;for(var p=_.q(K),g=p.next();!g.done;g=p.next())if(g=g.value,c.tagName===g||!_.h("web_event_button_role_check_killswitch")&&c.role==="button"&&g==="BUTTON")return!0}return!1};
_.dB=function(d,H,K){d=_.q(d);for(var c=d.next();!c.done;c=d.next()){c=c.value;if(c===H)break;for(var p=_.q(K),g=p.next();!g.done;g=p.next())if(c.id===g.value)return!0}return!1};
yUL=function(d){switch(d){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
b9Y=function(d,H){if(!d&&!H)return"medium";d=Math.max(d||0,H||0);return d>=256?"large":d>=96?"medium":"small"};
NG5=function(d){switch(d){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.Kf=function(){var d=_.Kj().resolve(_.$p(_.HI));return d?(d=d.getCurrentPage())?_.$6(d):null:null};
_.cI=function(){var d=_.Kf();if(!d){var H=_.Kj().resolve(_.$p(_.HI)),K=H?typeof H:"no page manager";H=H?H.getCurrentPage():null;K=new _.m1("Player is missing when requested.",K,H?H.tagName:"no page");_.z5(K)}return d};
_.$6=function(d){return d&&d.getPlayer?d.getPlayer():null};
Dh1=function(d,H){d={args:{raw_player_response:d}};H&&(d.args=Object.assign({},d.args,H));return d};
f1i=function(d){if(d.args){if(d.args.raw_player_response)return d.args.raw_player_response;if(d.args.player_response)return JSON.parse(d.args.player_response)}};
_.AUY=function(d,H){var K={url:"/watch?v="+d.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};d.playlistId&&(K.url+="&list="+d.playlistId);d.playerParams&&(K.url+="&pp="+d.playerParams);d={watchEndpoint:d,commandMetadata:{webCommandMetadata:K}};H&&(d.clickTrackingParams=H);return d};
v$M=function(){return jw4||!!_.OS("yt.player.Application")};
HE4=function(){return dg5||!!document.querySelector("link#player-css")};
KhY=function(){function d(){jw4=!0;$gE.resolve()}
var H,K;return _.l(function(c){$gE||($gE=new _.ki,v$M()?d():(H=document.createElement("script"),H.addEventListener("load",d),K=_.mc(_.Fm("PLAYER_JS_URL")),_.fc(H,K),document.head.appendChild(H)));return c.return($gE.promise)})};
pXh=function(){function d(){dg5=!0;c3M.resolve()}
if(!c3M)if(c3M=new _.ki,HE4())d();else{var H=document.createElement("link");H.id="player-css";H.addEventListener("load",d);var K=_.mc(_.Fm("PLAYER_CSS_URL"));_.ve(H,K,"stylesheet");document.head.appendChild(H)}return c3M.promise};
gP1=function(){return v$M()&&HE4()?Promise.resolve([]):Promise.all([KhY(),pXh()])};
iEE=function(d,H,K){var c={args:{}};d&&(c.args.raw_player_response=d);H&&(c.args.raw_watch_next_response=H);K&&(c.args=Object.assign({},c.args,K));return c};
aNF=function(d,H,K){var c=!1;c=c===void 0?!0:c;d=typeof d==="string"?_.pf(document,d):d;var p=GEY+"_"+_.b1(d),g=oP4[p];if(g&&c)return qy4(H,K)?g.api.loadVideoByPlayerVars(H.args||null):g.loadNewVideoConfig(H),g.api;g=new gB(d,p,H,K,void 0);oP4[p]=g;g.addOnDisposeCallback(function(){delete oP4[g.getId()]});
return g.api};
qy4=function(d,H){return H&&H.serializedExperimentFlags?H.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):d&&d.args&&d.args.fflags?d.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
lN1=function(){var d=new _.ki;d.resolved=!1;var H=d.resolve;d.resolve=function(K){d.resolved=!0;H(K)};
return d};
kEC=function(d){var H={};e$1().install((H.document_disposed={callback:d},H))};
i8=function(d,H){if(!d&&Math.random()<=_.iT("kevlar_unified_player_logging_threshold")){d=Error("th`"+(H?H:"Unspecified error"));if(_.h("kevlar_unified_player_throw_errors"))throw d;_.Jf(d)}};
_.xgF=function(){var d=_.OS("ytDebugData.callbacks");d||(d={},_.vb("ytDebugData.callbacks",d));return d};
CKl=function(d,H){var K=_.xgF();if(_.h("web_dd_iu")||nPl.includes(d))K[d]=H};
R$E=function(){return _.l(function(d){return d.return({isLeader:_.gCC(_.dn().getState()),c:_.Fm("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Fm("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
Vri=function(){var d;_.l(function(H){if(H.nextAddress==1)return CKl("APP_STATE",R$E),H.yield(_.Kj().resolve(_.Gx),2);d=H.yieldResult;CKl("PI",function(){return _.l(function(K){return K.return(d.getVideoStats())})});
_.VE(H)})};
UgY=function(d){var H=_.dV(_.yK(_.KF.location.href));d=_.dV(_.yK(d));return _.h("kevlar_clear_non_displayable_url_params")?H==oD(d):oD(H)==oD(d)};
oD=function(d){var H=_.h$i(d);d=d.slice(0);var K=["frags"];_.h("kevlar_hide_pp_url_param")&&K.push("pp");_.h("kevlar_hide_time_continue_url_param")&&K.push("time_continue");K=_.q(K);for(var c=K.next();!c.done;c=K.next())c=c.value,d=_.$W(_.dV(d),c);return _.dV(d)+(H?"#"+H:"")};
qV=function(d,H){H=Number(H)*1E3;var K=Math.round((0,_.$G)()),c=K.toString();d={innertubeResponse:d,serverDateTimestampMs:c,lastModifiedTimestampMs:c,expireTimestampMs:(K+H).toString()};if(H=_.Fm("INNERTUBE_CONTEXT_CLIENT_NAME"))d.clientName=H;return d};
Mrf=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++LhF};
_.mgM=function(){var d=_.so(),H=_.Fj();H&&d&&_.Di(H,[d],!0)};
PKY=function(d){return d&&wXX.some(function(H){return d.includes(H)})};
z$i=function(d){var H=_.M(d,_.yj);if(!H)return!1;var K=H.url,c=H.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!K)return _.z5(Error("yh")),!1;if(H.target==="TARGET_NEW_WINDOW"){var p={};_.h("resolve_url_parent_tracking_params")&&(!_.jD(K)||vE(window.location.href,K))&&(p={endpoint:d,itct:d.clickTrackingParams});LLY(p);d=null;try{if(c)return d=_.WLh(K,"_blank",p,void 0,c),u31(_.Kj().resolve(INi),d,K),!0}catch(U){_.z5(U)}_.Hy(K,p);H={target:"_blank",noopener:_.h("set_window_noopener_ks")&&
!H.allowOpener};d=window;c=u_(K)?K:_.Xa(typeof K.href!="undefined"?K.href:String(K));p=self.crossOriginIsolated!==void 0;var g="strict-origin-when-cross-origin";window.Request&&(g=(new Request("/")).referrerPolicy);var a=H.noreferrer;if(p&&a&&g==="unsafe-url")throw Error("oe");g=a&&!p;a=H.target||K.target;var e=[],k=[],C=!1;for(V in H){var R=H[V];switch(V){case "width":case "height":case "top":case "left":e.push(V+"="+R);break;case "target":break;case "noopener":case "noreferrer":R?k.push(V):(C=!0,
k.push(V+"=false"));break;case "attributionsrc":e.push(V+(R?"="+R:""));break;default:e.push(V+"="+(R?1:0))}}var V=a!==void 0&&!["_blank","_self","_top","_parent",""].includes(a);V=PF()&&V;r3F&&p&&e.length===0&&k.length>0&&!V&&!C?(k.length===2&&(k=["noreferrer"]),_.EH(d,c,a,k[0]),d=WhF()):(V=e.join(","),_.WF()&&d.navigator&&d.navigator.standalone&&a&&a!="_self"?(V=_.x1("A"),_.TC(V,c),V.target=a,g&&(V.rel="noreferrer"),((H=H.attributionsrc)||H==="")&&V.setAttribute("attributionsrc",H),H=document.createEvent("MouseEvent"),
H.initMouseEvent("click",!0,!0,d,1),V.dispatchEvent(H),d=WhF()):g?(d=_.EH(d,"",a,V),H=_.IK(c),d&&(d.opener=null,H===""&&(H="javascript:''"),H='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+aD(H)+'">',H=tL(H),(c=d.document)&&c.write&&(c.write(YO(H)),c.close()))):((d=_.EH(d,c,a,V))&&H.noopener&&(d.opener=null),d&&H.noreferrer&&(d.opener=null)));u31(_.Kj().resolve(INi),d,K);return!0}H=_.kp(K);H=PKY(H)||K==="https://studio.youtube.com/";c=!(!_.jD(K)||vE(window.location.href,
K));V=K.indexOf("disable_polymer=1")>=0;if(c||V||H)yS(K),zT(),_.bO(K,void 0,void 0,window.top,BCD);else return _.Jf(new _.m1("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",d)),!1;return!0};
_.s7h=function(d,H){H=H===void 0?0:H;if(!(_.M(d,XXM)||_.M(d,J3C)||_.M(d,_.yj)&&_.M(d,_.yj).url))return!1;var K,c=(K=_.M(d,_.yj))==null?void 0:K.url;K=c?{externalLinkData:{url:c}}:null;return _.hR().clickCommand(d,K,H)};
Fhf=function(d,H){return _.xL(d.entities,"subscriptionStateEntity",H)};
ZED=function(d,H){return _.xL(d.entities,"subscriptionNotificationStateEntity",H)};
TCh=function(d,H){return _.xL(d.entities,"upcomingEventReminderStateEntity",H)};
Q7Y=function(d,H){return _.xL(d.entities,"engagementToolbarSurfaceEntityPayload",H)};
trE=function(d,H){return _.xL(d.entities,"triStateButtonStateEntityPayload",H)};
Yyf=function(d,H){return _.xL(d.entities,"commerceCartCheckoutButtonEntity",H)};
_.OEh=function(d,H){return _.xL(d.entities,"playlistLoopStateEntity",H)};
Syh=function(d,H){return _.xL(d.entities,"commandEntity",H)};
y3h=function(d,H,K,c,p){p=p===void 0?{}:p;return function(g){var a,e;var k=((a=d.loggingDirectives)==null?0:(e=a.clientVeSpec)==null?0:e.uiType)?_.l8(d.loggingDirectives.clientVeSpec.uiType):void 0;p.clickedVisualElement||(p.clickedVisualElement=k);k=EPE(d,H);K(k,g);k=_.q(k);for(a=k.next();!a.done;a=k.next()){a=a.value;e=c;var C=g,R=p;R.form?R.form.event=C:R.form={element:e,event:C};w7(a,R)}}};
EPE=function(d,H){var K=[];H?(d.toggledCommand&&K.push(d.toggledCommand),d.toggledServiceEndpoint&&K.push(d.toggledServiceEndpoint)):(d.defaultCommand&&K.push(d.defaultCommand),d.defaultServiceEndpoint&&K.push(d.defaultServiceEndpoint),d.defaultNavigationEndpoint&&K.push(d.defaultNavigationEndpoint));return K};
bED=function(d,H){var K=d.toggledStyle||d.style,c;switch((c=H?K:d.style)==null?void 0:c.styleType){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_SUGGESTIVE":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":return{style:"mono",type:"outline",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.eA=function(){return _.l(function(d){return d.nextAddress==1?d.yield(_.Kj().resolve(_.Gx),2):d.return(_.Kj().resolve(NCF)())})};
_.k6=function(){return _.Kj().resolve(NCF)()};
_.x6=function(){return BE(function(){return{lottieEl:void 0}})};
DgE=function(d,H){return d.startsWith(H.uniqueId)};
fNY=function(d){var H,K;_.l(function(c){if(c.nextAddress==1)return c.yield(_.eA(),2);H=c.yieldResult;if((K=H)==null||!K.addEventListener)return nf(),c.return();H.addEventListener("onCueRangeEnter",d);_.VE(c)})};
A34=function(d){var H,K;_.l(function(c){if(c.nextAddress==1)return c.yield(_.eA(),2);H=c.yieldResult;if((K=H)==null||!K.removeEventListener)return nf(),c.return();H.removeEventListener("onCueRangeEnter",d);_.VE(c)})};
j74=function(d){var H,K,c,p,g;_.l(function(a){if(a.nextAddress==1)return a.yield(_.eA(),2);H=a.yieldResult;if((K=H)==null||!K.addCueRange)return nf(),a.return();c=_.q(d.timings);for(p=c.next();!p.done;p=c.next())g=p.value,H.addCueRange(d.uniqueId+"-"+g,g/1E3,(g+100)/1E3);_.VE(a)})};
vP4=function(d){var H,K,c,p,g;_.l(function(a){if(a.nextAddress==1)return a.yield(_.eA(),2);H=a.yieldResult;if((K=H)==null||!K.removeCueRange)return nf(),a.return();c=_.q(d.timings);for(p=c.next();!p.done;p=c.next())g=p.value,H.removeCueRange(d.uniqueId+"-"+g);_.VE(a)})};
d1Y=function(){var d,H,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(_.eA(),2);d=c.yieldResult;if((H=d)==null||!H.getPlayerState)return nf(),c.return();K=d.getPlayerState();return c.return(K===2)})};
nf=function(){_.Jf(new _.m1("Smartimation player does not exist or is corrupted"))};
HCY=function(){try{var d;return(d=window.CSS)!=null&&d.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(H){return _.Jf(new _.m1("Smartimation CSS.supports threw an error")),!1}};
Ghf=function(d,H,K,c,p){var g=d.playlistId?$1E:KnF;H=H();K=K();p=!!d.videoId&&p()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.mE(H))return c2l({data:d,actionType:g,disabled:p},K);if(d.videoId&&c())return pHh({data:d,actionType:g,disabled:p});switch(H){case "TRANSFER_STATE_UNKNOWN":return pHh({data:d,actionType:g,disabled:p});case "TRANSFER_STATE_FAILED":return d.videoId?gBh({data:d,actionType:g,disabled:p}):iCh({data:d,actionType:g,disabled:p});case "TRANSFER_STATE_COMPLETE":return iCh({data:d,
actionType:g,disabled:p});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return c2l({data:d,actionType:g,disabled:p},K);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return d.videoId?gBh({data:d,actionType:g,disabled:p}):pHh({data:d,actionType:g,disabled:p});default:return pHh({data:d,actionType:g,disabled:p})}};
oBh=function(d,H){var K=d.onTapCommand,c=_.T6(K);if(d.videoId&&_.M(c,_.Cf))return _.M(c,_.Cf).action=H,K;d.playlistId&&_.M(c,_.VY)&&(_.M(c,_.VY).action=H);return K};
pHh=function(d){var H=d.data;var K=d.actionType;d=d.disabled;return{text:qkh,iconType:"OFFLINE_DOWNLOAD",onTap:oBh(H,K.ACTION_ADD),disabled:d}};
c2l=function(d,H){var K=d.data;var c=d.actionType;d=d.disabled;var p="OFFLINE_DOWNLOAD";H>=0&&H<=.1?p="OFFLINE_DOWNLOADING_ZERO":H>.1&&H<=.3?p="OFFLINE_DOWNLOADING_TWENTY":H>.3&&H<=.5?p="OFFLINE_DOWNLOADING_FORTY":H>.5&&H<=.7?p="OFFLINE_DOWNLOADING_SIXTY":H>.7&&H<1?p="OFFLINE_DOWNLOADING_EIGHTY":H===1&&(p="OFFLINE_PIN");return{text:aHl,iconType:p,onTap:oBh(K,c.ACTION_REMOVE_WITH_PROMPT),disabled:d}};
iCh=function(d){var H=d.data;var K=d.actionType;d=d.disabled;return{text:lHM,iconType:"OFFLINE_PIN",onTap:oBh(H,K.ACTION_REMOVE_WITH_PROMPT),disabled:d}};
gBh=function(d){var H=d.data;var K=d.actionType;d=d.disabled;return{text:e9F,iconType:"OFFLINE_DOWNLOAD",onTap:oBh(H,K.ACTION_RETRY),disabled:d}};
C45=function(d){var H=khi;x1l.push(d);nBE||(H(function(){for(var K=_.q(x1l),c=K.next();!c.done;c=K.next())c=c.value,c();x1l.length=0;nBE=!1}),nBE=!0)};
khi=function(d){Promise.resolve().then(d)};
R9F=function(d){d=_.q(G_h(d));var H=d.next().value,K=d.next().value,c=!1;_.WE(function(){return function(){c=!0}});
return[H,function(p){C45(function(){c&&!_.h("cow_prevent_state_setter_after_cleanup_killswitch")||K(p)})}]};
_.Uj=function(d,H){var K=e85();return _.ey(function(){K();return ngM(d,[_.IH(H)||""])},{debugName:"LUZslf"},"qYSKAc")};
Va1=function(d){var H=_.Uj(_.QO,function(){return d().videoId}),K=_.Uj(_.tF,function(){return d().playlistId});
return function(){return d().videoId?H:d().playlistId?K:_.q(_.GO("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
U1f=function(d){var H=_.Uj(YL,function(){return d().videoId}),K=_.Uj(_.pmM,function(){return d().playlistId});
return function(){return d().videoId?H:d().playlistId?K:_.q(_.GO(0,void 0,"K4tgOc")).next().value}};
h9Y=function(d){var H=_.Uj(_.ktl,function(){return d().videoId});
return function(){return d().videoId?H:_.q(_.GO(!1,void 0,"Oaxwcf")).next().value}};
Lnf=function(d){var H=_.Uj(Gtf,function(){return d().videoId});
return function(){return d().videoId?H:_.q(_.GO("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
Ma5=function(){return{}};
_.IHC=function(d,H,K){return{submitForm:function(){var c;return _.l(function(p){if(p.nextAddress==1){c=m1l(d());if(!c)return p.return();if(c.onSubmit)return c.onSubmit(),p.return();if(!c.submitConfig||!c.formData)return p.jumpTo(0);c.disableDuringSubmission&&wHE(d(),!0);P4X(H);return p.yield(u0F(c.submitConfig,c.formData()),3)}P4X(K);c.disableDuringSubmission&&wHE(d(),!1);return p.return()})},
isValid:function(){var c=m1l(d());if(c){var p;return!((p=c.isValid)==null||!p.call(c))}return!0},
isSubmitting:function(){var c,p;return!!((c=m1l(d()))==null?0:(p=c.isSubmitting)==null?0:p.call(c))}}};
_.BPi=function(){if(!r21){var d=_.q(_.GO(new Map,void 0,"yE61ae"));r21=d.next().value;Wn5=d.next().value}return r21};
_.z9M=function(d){Wn5(new Map(d))};
m1l=function(d){if(d)return _.BPi()().get(d)};
u0F=function(d,H){var K;return _.l(function(c){return H?(K=_.Kj().resolve(_.$p(XH5)))&&d.submitId?c.yield(K.submitForm(d.submitId,H,J25,d.params,d.clickTrackingParams),0):c.return():c.return()})};
wHE=function(d,H){if(d){var K=_.BPi();K().set(d,Object.assign({},K().get(d),{isSubmitting:function(){return H}}));
_.z9M(K())}};
P4X=function(d){if(d){var H=_.Kj().resolve(_.cb);H&&(d=_.T6(d()))&&H.resolveCommand(d)}};
_.hW=function(){return _.Kj().resolve(_.$p(sPY))||{}};
FnF=function(d,H){H=H===void 0?{shouldPersist:!0}:H;return{useUpdatableData:function(K,c){var p=[],g=_.q(_.V2(function(){var C=K();if(c!=null&&c.length&&p){var R=p.length>0;for(var V=!1,U=0;U<c.length;U++){var L=c[U]();R&&L!==p[U]&&(V=!0);p[U]=L}R=V}else R=!1;if(R)_.Lf.remove(k());else if(R=_.Lf.get(k()))return R;return C})),a=g.next().value,e=g.next().value,k=_.ey(function(){return d(K())},void 0,"VFraLb");
_.wc(function(){if(k()!=null){MV.set(k(),[a,e,!1]);var C=k();_.Pk(function(){MV.delete(C)})}},"Fdafud");
return[a,function(C){e(C);H.shouldPersist&&_.Lf.set(k(),C)}]},
getData:function(K){var c;return(c=MV.get(d(K)))==null?void 0:c[0]()},
updateData:function(K,c){K=d(K);var p=MV.get(K);if(!p)return!1;var g=_.q(p);p=g.next().value;g=g.next().value;c=c(p());g(c);H.shouldPersist&&_.Lf.set(K,c);return!0},
useUpdatableDataIdom:function(K,c){var p=d(K),g=_.Lf.get(p),a=_.q(R9F(g!=null?g:K)),e=a.next().value,k=a.next().value,C=z9(g!=null?g:K);_.r9(function(){if(p!=null)return MV.set(p,[function(){return C.value},
function(R){k(R);C.value=R},
MV.has(p)]),_.Xp.addJob(function(){_.mR(_.Xp,function(){var R=MV.get(p);R&&(R[2]=!1)},0)},8),function(){var R;
((R=MV.get(p))==null?0:R[2])||MV.delete(p)}},[p]);
_.r9(function(){e!==K&&(k(K),C.value=K)},c?[].concat(_.ru(c),[p]):[p]);
return[e,k]}}};
ZC5=function(d){var H=_.q(_.GO(!0,void 0,"bKtO6d")),K=H.next().value;H.next();return function(){var c=n6(d.children());return _.x(_.n,{cond:K,then:function(){return c},
else:d.fallback})}()};
_.wB=function(d){var H=TPl(d),K=H.data,c=H.mapping,p=H.wrapper;H=H.pendingFallback;var g=function(){return QPi(_.IH(K))},a=function(){var e=g(),k=[];
e=_.q(e);for(var C=e.next();!C.done;C=e.next()){var R=void 0;C=C.value;var V=void 0;for(R in C)if(!(!C).hasOwnProperty(R)){V=R;break}(R=V)&&k.push(R)}return k};
return d.data?_.x(ZC5,{fallback:H},function(){return _.x(_.L6,{each:a},function(e,k){var C=p?function(V){return p(function(){return c[e](V,k)},R,k)}:function(V){return c[e](V,k)};
C.debugName||(C.debugName=String(e));if(!c[String(e)])return document.createComment("");C.componentType!==ht&&taE(String(e));var R=Yki(g,e,k);return _.x(C,{data:R})})}):_.x(_.HE,null)};
TPl=function(d){var H=d.targetId||OCX(d.children);if(!d.data||!H||_.h("mweb_new_replaceables_killswitch"))return Object.assign({},d,{mapping:d.children,wrapper:void 0});var K="stamper-"+SkF++,c=function(){var e;return(e=typeof d.targetId==="function"?d.targetId(K):d.targetId)!=null?e:K};
H=_.q(EBE(function(){var e=QPi(d.data());e.targetId=c;return e})).next().value;
var p=Object.assign({},_.hW().replaceableMapping,d.children);if(d.replacementWrapper){var g=p.notificationTextRenderer,a=p.notificationMultiActionRenderer;g&&(p.notificationTextRenderer=function(e,k){return d.replacementWrapper(g({data:e.data},k))});
a&&(p.notificationMultiActionRenderer=function(e,k){return d.replacementWrapper(a({data:e.data},k))})}return Object.assign({},d,{data:H,
mapping:p,wrapper:function(e,k,C){return oU4({targetId:c,stamperIndex:C},e)}})};
Yki=function(d,H,K){var c;return _.ey(function(){var p=d()[K()];if(p)c=p[H];else return _.Jf(new _.m1("Stamper failed to find "+String(H)+" at index "+K()+" of data array of length "+(d().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),c;return p[H]},void 0,"wgRPHd")};
OCX=function(d){d=_.q(Object.keys(d));for(var H=d.next();!H.done;H=d.next())if(H=H.value,y2L.includes(H)||bCf.includes(H)||NPY.includes(H))return!0;return!1};
QPi=function(d){return d?Array.isArray(d)?d:[d]:[]};
taE=function(d){if(_.h("web_enable_renderer_logger")){var H;(H=_.Kj().resolve(_.$p(D1F)))!=null&&H.loggingEnabled&&!H.ids.has(d)&&H.ids.add(d)}};
fHL=function(){var d,H;return(H=(d=_.Kj().resolve(_.$p(_.fM)))==null?void 0:d())!=null?H:!1};
jPE=function(d,H){d=d===void 0?A2h:d;switch(H.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},d,{isOpen:H.payload});default:return d}};
ddi=function(d,H){d=d===void 0?vBY:d;switch(H.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},d,{isAllowed:H.payload});default:return d}};
$dY=function(d,H){d=d===void 0?HRh:d;switch(H.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},d,{errorMessage:H.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},d,{title:H.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},d,{privacy:H.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},d,{isDisabled:H.payload});default:return d}};
cbF=function(d,H){d=d===void 0?KTf:d;switch(H.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},d,{isOpen:H.payload});default:return d}};
gHF=function(d,H){d=d===void 0?p0L:d;switch(H.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},d,{isFullscreen:H.payload});case "SET_NAVIGATION_BUTTON":var K=H.payload.targetId,c=Object.assign({},d.navigationButtons);c[K]=H.payload.button;return Object.assign({},d,{navigationButtons:c});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},d,{topPanelId:H.payload});case "SET_SECONDARY_HEADER":return K=H.payload.panelId,c=Object.assign({},d.secondaryHeader),c[K]=H.payload.secondaryHeader,
Object.assign({},d,{secondaryHeader:c});default:return d}};
qK5=function(){return Ru(Object.assign({},{voiceSearch:zq5,engagementPanel:gHF,bottomSheet:jPE,cinematicSetting:ddi,shorts:tPl,drawerLayout:cbF,createPlaylist:$dY,locationCollection:iRF,reportChannel:GIE,reportForm:oHF},Yq4))};
aGD=function(d,H){_.Xp.addLowPriorityJob(function(){var K,c,p;return _.l(function(g){switch(g.nextAddress){case 1:return _.e2(g,2),g.yield(YBf(),4);case 4:return g.yield(fetch(d),5);case 5:return K=g.yieldResult,g.yield(K.json(),6);case 6:c=g.yieldResult;Wg.set(d,c);requestAnimationFrame(function(){H(c)});
_.Em(g,0);break;case 2:p=_.RV(g),_.Jf(p),_.VE(g)}})})};
lG5=function(d){var H={animationConfig:{},listeners:{}},K=function(){d(!0)};
H.listeners.data_failed=K;H.listeners.error=K;H.listeners.data_ready=function(){d(!1)};
return H};
xdM=function(d){var H=d.model;var K=d.subscribed;var c=d.isOverlay;var p=d.element;var g=d.commandController;var a=d.notificationState;if(K){var e,k;var C=(H==null?void 0:(e=H.buttonStyle)==null?void 0:e.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:H==null?void 0:(k=H.unsubscribeButtonContent)==null?void 0:k.buttonText}else{var R;C=H==null?void 0:(R=H.subscribeButtonContent)==null?void 0:R.buttonText}a:{var V;switch(H==null?void 0:(V=H.buttonStyle)==
null?void 0:V.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":e="S";break a;default:e="M"}}a:if(c)c="overlay";else switch(H.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":c="overlay";break a;default:c="mono"}a:if(K)var U="tonal";else switch((U=H.buttonStyle)==
null?void 0:U.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":U="tonal";break a;default:U="filled"}return{style:c,type:U,state:H.disableSubscribeButton?"disabled":"active",size:e,focused:d.focused,toggled:K,accessibilityLabel:eG1(H,K,a),buttonText:C,iconPosition:H.disableNotificationBell?"none":"leading-trailing",onTap:kIF(H,K,p,g),disableTextEllipsis:!!d.disableTextEllipsis}};
kIF=function(d,H,K,c){return function(p){if(H){var g;var a=d.disableNotificationBell?_.T6(d==null?void 0:(g=d.unsubscribeButtonContent)==null?void 0:g.onTapCommand):_.T6(d==null?void 0:d.onShowSubscriptionOptions)}else{var e;a=_.T6(d==null?void 0:(e=d.subscribeButtonContent)==null?void 0:e.onTapCommand)}a&&w7(a,{form:{element:K==null?void 0:K.value},commandController:c});p.stopPropagation()}};
eG1=function(d,H,K){if(H){if(d==null?0:d.disableNotificationBell){var c;return d==null?void 0:(c=d.unsubscribeButtonContent)==null?void 0:c.accessibilityText}switch(K){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var p;return d==null?void 0:(p=d.bellAccessibilityData)==null?void 0:p.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var g;return d==null?void 0:(g=d.bellAccessibilityData)==null?void 0:g.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var a;return d==null?void 0:(a=
d.bellAccessibilityData)==null?void 0:a.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var e;return d==null?void 0:(e=d.bellAccessibilityData)==null?void 0:e.disabledLabel;default:var k;return d==null?void 0:(k=d.unsubscribeButtonContent)==null?void 0:k.accessibilityText}}else{var C;return d==null?void 0:(C=d.subscribeButtonContent)==null?void 0:C.accessibilityText}};
nH1=function(d){if(d){switch(d){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":d="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":d="NOTIFICATIONS_OFF";break;default:d="NOTIFICATIONS_NONE"}return d}};
Cu5=function(d,H,K){K.subscribed!==H&&((K=K.key)&&_.jO(_.PI("subscriptionStateEntity",K,{key:K,subscribed:H})),d.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:H})),H||_.oF(d,"yt-unsubscribe-action"))};
VCY=function(d){d=_.M(_.T6(d),_.u8);var H,K,c,p;return(p=_.M(d==null?void 0:(H=d.panelLoadingStrategy)==null?void 0:(K=H.inlineContent)==null?void 0:(c=K.sheetViewModel)==null?void 0:c.content,RGl))==null?void 0:p.listItems};
UdE=function(d,H){if(d.onShowSubscriptionOptions&&H&&(d=VCY(d.onShowSubscriptionOptions),d!=null&&d.length)){var K=nH1(H);d.forEach(function(c){c=_.M(c,_.ID);var p,g,a,e,k=c==null?void 0:(p=c.leadingImage)==null?void 0:(g=p.sources)==null?void 0:(a=g[0])==null?void 0:(e=a.clientResource)==null?void 0:e.imageName;c&&k&&(c.isSelected=k===K)})}};
hG5=function(d,H,K,c){H&&K?d.style.width=K+"px":!H&&c&&(d.style.width=c+"px")};
LTL=function(d,H,K){var c;(c=d.lottieEl)==null||c.goToAndPlay(0);var p;(p=H.lottieEl)==null||p.goToAndPlay(0);_.rB(_.Xp,function(){var g;(g=K.lottieEl)==null||g.goToAndPlay(0)},300)};
MCL=function(d){return!(d==null||!d.iconName||(d==null?0:d.title))};
md5=function(d,H,K,c){K&&_.Xp.cancelJob(K);K=_.Xp.addLowPriorityJob(function(){c(void 0)},5E3);
c(K);H&&d!==(H.likeStatus==="LIKE")&&H.key&&_.jO(_.PI("likeStatusEntity",H.key,{key:H.key,likeStatus:d?"LIKE":"INDIFFERENT",hadUserInteraction:d}))};
_.w0L=function(d,H){return _.xL(d.entities,"accountLinkStatusEntity",H)};
PuE=function(d,H){return _.xL(d.entities,"hatsSurveyEntity",H)};
uRh=function(d,H){return _.xL(d.entities,"hatsSurveyStateEntity",H)};
IG5=function(d,H){return _.xL(d.entities,"quantityIncrementerEntity",H)};
rbf=function(d){switch(d){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
WTM=function(d){switch(d){case "BADGE_STYLE_TYPE_YPC_GREEN":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_RED_SQUARE":return 11;
case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
B_E=function(d){switch(d){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--promoted-inverted";case 5:return"badge-shape-wiz--timely";case 6:return"badge-shape-wiz--premium";case 7:return"badge-shape-wiz--sale";case 8:return"badge-shape-wiz--membership";case 9:return"badge-shape-wiz--commerce";case 11:return"badge-shape-wiz--live";case 12:return"badge-shape-wiz--status-new";case 13:return"badge-shape-wiz--status-complete";
case 14:return"badge-shape-wiz--status-warning";case 15:return"badge-shape-wiz--status-error";case 16:return"badge-shape-wiz--status-default";case 17:return"badge-shape-wiz--thumbnail-default";case 18:return"badge-shape-wiz--thumbnail-live";case 19:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.X0F=function(d){var H=_.iT("web_generic_client_event_wait_period ",0);H||(H=3E5);var K=zGF.get(d);!_.h("enable_web_client_experiment_event_timeout_killswitch")&&K&&(0,_.$G)()-K<H||(zGF.set(d,(0,_.$G)()),_.Wd("genericClientExperimentEvent",{eventType:d}))};
Jb1=function(d){switch(d){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
sc4=function(d){if(!d)return"";var H,K=(H=_.Kj().resolve(_.$p(_.fM)))==null?void 0:H(),c;if(!K&&((c=d.vibrantColorPalette)==null?0:c.iconInactiveColor))return Sh(d.vibrantColorPalette.iconInactiveColor,"1");var p;return K&&((p=d.darkColorPalette)==null?0:p.iconInactiveColor)?Sh(d.darkColorPalette.iconInactiveColor,"1"):d.color?Sh(d.color,"1"):d.sampledThumbnailColor?(d=d.sampledThumbnailColor,"rgba("+d.red+","+d.green+","+d.blue+");"):""};
_.WI=function(d,H){if(!d.includes("DATE_PLACEHOLDER"))return d;var K=new Date(0);K.setUTCSeconds(H);return d.replace("DATE_PLACEHOLDER",FTF(K))};
ZR1=function(d,H,K){return function(c){var p=d.command;p&&(w7(p,{form:{element:K}}),H([p],c))}};
QcL=function(d,H,K,c,p){return function(g){var a=T_E(d,H);a&&w7(a,{form:{element:K},commandController:c});p&&g.stopPropagation()}};
T_E=function(d,H){if(d.signInEndpoint&&!_.h("web_subscribe_sign_in_endpoint_killswitch"))return d.signInEndpoint;if(H){if(d.serviceEndpoints)return d.serviceEndpoints[1];if(d.onUnsubscribeEndpoints)return d.onUnsubscribeEndpoints[0]}else{if(d.serviceEndpoints)return d.serviceEndpoints[0];if(d.onSubscribeEndpoints)return d.onSubscribeEndpoints[0]}};
tCM=function(d,H){var K,c,p,g;H=H&&((K=d.unsubscribeAccessibility)==null?void 0:(c=K.accessibilityData)==null?void 0:c.label)||((p=d.subscribeAccessibility)==null?void 0:(g=p.accessibilityData)==null?void 0:g.label);return d.longSubscriberCountText?[H,_.jG(d.longSubscriberCountText)].filter(function(a){return a}).join(" "):H};
BI=function(d,H){return H||(d==null?0:d.isChannelDelegate)?"disabled":"active"};
YK4=function(d,H){var K;switch((K=d.style)==null?void 0:K.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:BI(d)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:BI(d)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:BI(d,!0)};case "OVERLAY":return H?{style:"overlay",type:"tonal",state:BI(d)}:{style:"overlay",type:"filled",state:BI(d)};default:return H?{style:"mono",type:"tonal",state:BI(d)}:{style:"mono",type:"filled",state:BI(d)}}};
_.zx=function(){for(var d=[],H=_.q(_.sH.apply(0,arguments)),K=H.next();!K.done;K=H.next())if(K=K.value)if(typeof K==="string")d.push(K);else{K=_.q(Object.entries(K));for(var c=K.next();!c.done;c=K.next()){var p=_.q(c.value);c=p.next().value;(p=p.next().value)&&d.push(c)}}return d.join(" ")};
ORl=function(d){switch(d){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
SKE=function(d){switch(d){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
EHM=function(d,H){var K=d.map(function(c){return c.toString()});
return _.n7(function(c){if(K.includes(c.key)){H&&c.preventDefault();var p;(p=c.currentTarget)==null||p.click()}})};
_.XN=function(){return EHM(["Enter"])};
_.yb5=function(){return EHM(["Enter"," "],!0)};
_.JW=function(d){if(d.composedPath)return d.composedPath();if(!d.__composedPath){for(var H=[],K=d.target;K;)H.push(K),K=K.parentNode;H.push(window);d.__composedPath=H}return d.__composedPath};
_.sj=function(d,H,K){d=_.q(d);for(var c=d.next();!c.done;c=d.next()){c=c.value;if(c===H)break;for(var p=_.q(K),g=p.next();!g.done;g=p.next())if(g=g.value,c.tagName===g||c.role==="button"&&g==="BUTTON")return!0}return!1};
N_M=function(d,H){var K,c=(K=H.observer)!=null?K:_.Kj().resolve(K5);if(d){K=bR5(d);var p=[];H.showOption&&p.push(c.observe(d,function(){H.visibilityCallback(!0,d)},H.showOption));
H.hideOption&&p.push(c.observe(d,function(){H.visibilityCallback(!1,d)},H.hideOption));
H.prescanOption&&H.prescanCallback&&p.push(c.observe(d,function(){H.prescanCallback()},H.prescanOption));
var g;K.visibilityMonitorKeys=((g=K.visibilityMonitorKeys)!=null?g:[]).concat(p)}};
bR5=function(d){var H;return(H=d.polymerController)!=null?H:d};
_.Zb=function(d){return!!_.FN(d)};
_.Tx=function(d,H,K,c,p){return function(g){var a=_.me();_.wc(function(){if(g){_.Ddi(g,d(),p);var e=_.fGi(g,d(),H,K,c,a);_.Pk(e)}},"nr377e")}};
_.Ddi=function(d,H,K){var c=Abi(H),p=jcC(H);H=c&&vHL;var g=p&&dni;(c||p)&&N_M(d,{visibilityCallback:function(a){var e=_.Kj().resolve(_.cb);a&&c?e.resolveCommand(c,{form:{element:K?d:void 0},disableClickTracking:!0}):!a&&p&&e.resolveCommand(p,{form:{element:K?d:void 0},disableClickTracking:!0})},
showOption:H,hideOption:g})};
_.fGi=function(d,H,K,c,p,g){var a=new Map;if(H=_.FN(H)){var e;d=(c==null?void 0:(e=c.onTap)==null?void 0:e.value)||d;K=Hxh(H,d,K==null?void 0:K.onTap,p,g);d.addEventListener("click",K);a.set("click",K)}return function(){for(var k=_.q(a),C=k.next();!C.done;C=k.next()){var R=_.q(C.value);C=R.next().value;R=R.next().value;d.removeEventListener(C,R)}}};
_.FN=function(d){var H;return(d=(H=_.M(d,$nL))==null?void 0:H.onTap)&&_.T6(d)};
Abi=function(d){var H;return(d=(H=_.M(d,$nL))==null?void 0:H.onVisible)&&_.T6(d)};
jcC=function(d){var H;return(d=(H=_.M(d,$nL))==null?void 0:H.onHidden)&&_.T6(d)};
Hxh=function(d,H,K,c,p){var g=function(e){_.Kj().resolve(_.cb).resolveCommand(d,e)},a=function(e){c&&_.sj(_.JW(e),H,c)||g(e.target?{form:{element:e.target,
sourceData:d,mutationContext:p}}:void 0)};
K&&(a=function(e){K(e,g)});
return a};
KXF=function(d){switch(d){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 72;case "giant":return 72;default:return 0}};
cGX=function(d){var H=d.numAvatarsInCluster;switch(d.clusterSize){case "small":return H===2?22:18;case "40":return H===2?24:22;default:return H===2?24:20}};
psh=function(d,H){return function(K){var c=Object.keys(H);_.wc(function(){if(d!=null&&d()){for(var p=_.q(c),g=p.next();!g.done;g=p.next())g=g.value,K.addEventListener(g,H[g]);_.Pk(function(){for(var a=_.q(c),e=a.next();!e.done;e=a.next())e=e.value,K.removeEventListener(e,H[e])})}},"bXZGfe")}};
gyD=function(d){switch(cGX(d)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
ixh=function(d){switch(d){case "tiny":return"yt-spec-avatar-shape--avatar-size-tiny";case "extra-small":return"yt-spec-avatar-shape--avatar-size-extra-small";case "small":return"yt-spec-avatar-shape--avatar-size-small";case "medium":return"yt-spec-avatar-shape--avatar-size-medium";case "48":return"yt-spec-avatar-shape--avatar-size-48";case "large":return"yt-spec-avatar-shape--avatar-size-large";case "extra-large":return"yt-spec-avatar-shape--avatar-size-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape--avatar-size-extra-extra-large";
case "giant":return"yt-spec-avatar-shape--avatar-size-giant";case "responsive":return"yt-spec-avatar-shape--avatar-size-responsive";default:return""}};
GlF=function(d){switch(cGX(d)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
oyM=function(d){switch(d){case "tiny":return"yt-spec-avatar-shape__button--button-tiny";case "extra-small":return"yt-spec-avatar-shape__button--button-extra-small";case "small":return"yt-spec-avatar-shape__button--button-small";case "medium":return"yt-spec-avatar-shape__button--button-medium";case "48":return"yt-spec-avatar-shape__button--button-48";case "large":return"yt-spec-avatar-shape__button--button-large";case "extra-large":return"yt-spec-avatar-shape__button--button-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape__button--button-extra-extra-large";
case "giant":return"yt-spec-avatar-shape__button--button-giant";case "responsive":return"yt-spec-avatar-shape__button--button-responsive";default:return""}};
qNF=function(d){switch(d){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 120;case "giant":return 160;default:return 0}};
ayF=function(d){return d==="medium"||d==="48"||d==="large"||d==="extra-large"||d==="extra-extra-large"||d==="giant"};
lyY=function(d){return!!((d==null?0:d.includes(3))||(d==null?0:d.includes(5)))};
klL=function(d){return{size:eFl(d.data.avatarImageSize),onTap:d.onTap,decorations:d.decorations||[],badgeText:d.badgeText,accessibilityText:d.accessibilityText,avatarButtonCustomClassName:d.avatarButtonCustomClassName,clusterLayoutConfig:d.clusterLayoutConfig}};
eFl=function(d){switch(d){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
xn4=function(d){switch(d){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
ny5=function(d){switch(d){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
CxX=function(d){var H=d.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",K,c=d.avatars&&d.avatars.length>0?(K=_.M(d.avatars[0],_.tW))==null?void 0:K.avatarImageSize:"AVATAR_SIZE_UNKNOWN";K=xn4(c)||0;if(H){var p,g=(p=d.avatarClusterSize)!=null?p:"AVATAR_SIZE_M";H=xn4(g);var a,e,k=Math.min((e=(a=d.avatars)==null?void 0:a.length)!=null?e:0,4),C;return{avatars:((C=d.avatars)==null?void 0:C.slice(0,4))||[],avatarSizeInPx:K,avatarStackStyle:{width:H+"px",height:H+"px",position:"relative"},avatarStyle:function(V){var U=
cGX({clusterSize:eFl(g),numAvatarsInCluster:k,avatarIndex:V});var L=xn4(g);k===3&&V===2?(L=(L-U)/2,L=(_.Fm("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*L):L=void 0;return{position:"absolute",top:k===2&&V===1||k===3&&V===2||k===4&&V>=2?"0":void 0,bottom:k===2&&V===0||k>2&&V<2?"0":void 0,left:k===2&&V===1||k>2&&(V===1||V===3)?"0":void 0,right:k<=3&&V===0||k===4&&(V===0||V===2)?"0":void 0,transform:L?"translateX("+L+"px)":void 0,width:U+"px",height:U+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(V){return{clusterSize:eFl(d.avatarClusterSize),numAvatarsInCluster:k,avatarIndex:V}},
avatarButtonCustomClassName:void 0}}var R;return{avatars:((R=d.avatars)==null?void 0:R.slice())||[],avatarSizeInPx:K,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:ny5(c),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
RFX=function(d,H,K){return function(){w7(d,{form:{element:H},commandController:K})}};
VNF=function(d){switch(d){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
UnM=function(d){switch(d){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
hF4=function(d){if("accessibilityText"in d)return d.accessibilityText||"";if("title"in d){var H,K,c;return((H=d.title)==null?void 0:(K=H.accessibility)==null?void 0:(c=K.accessibilityData)==null?void 0:c.label)||""}if("accessibility"in d){var p,g;return((p=d.accessibility)==null?void 0:(g=p.accessibilityData)==null?void 0:g.label)||""}return""};
LXh=function(d){return"inlinePlayerData"in d};
Y6=function(d){return new MNf(d)};
mnM=function(d){var H=d.data;d=_.n7(function(){var p=_.M(H.onTap,_.ZX);p&&_.Kj().resolve(_.cb).resolveCommand(p);return!1});
var K={sources:[{url:H.thumbnailUrl,width:120,height:90}]},c=H.rating&&H.ratingA11yLabel&&H.reviewsCount&&H.reviewsCountA11yLabel;return _.x("place-data-view-model",null,H.placeName&&H.placeCategory?_.x("div",{class:"yt-spec-place-data-view-model-shape","on:click":d},_.x(_.d7,{data:K,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.x(_.Oj,{className:"yt-spec-place-data-view-model-shape__place-link",command:H.onTap},_.x("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:H.placeName},H.placeName)),_.x("div",{class:"yt-spec-place-data-view-model-shape__metadata"},c?_.x("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.x("span",{class:"score",title:H.ratingA11yLabel},H.rating),_.x("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.x(_.hu,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.x("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",
title:H.reviewsCountA11yLabel},H.reviewsCount)):_.x("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.x("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.x("span",{class:"category",title:H.placeCategory},H.placeCategory)))):null)};
wsC=function(d){return function(H){d&&(d.thumbnailElRef=H.thumbnailElRef,d.thumbnail=H.thumbnail,d.thumbnailOverlays=H.thumbnailOverlays,d.thumbnailSize=H.thumbnailSize)}};
Pxi=function(d){var H;return(H=d.sharedUi)==null?void 0:H.animatedThumbnailEnabled};
uCi=function(d){var H;return(H=d.sharedUi)==null?void 0:H.inlinePreviewEnabled};
_.Iy5=function(d){var H;return(H=d.sharedUi)==null?void 0:H.currentPageSubType};
rGY=function(d){switch(d){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
B8f=function(d){var H=_.q(_.GO(!1,void 0,"RIOonf")),K=H.next().value,c=H.next().value;_.WE(function(){var p=d==null?void 0:d();if(p){var g=_.Kj().resolve(_.$p(WXM));if(g){var a={triggeringElement:p,onDwellTriggeredFn:function(){c(!0)},
onDwellEndFn:function(){c(!1)}};
g.registerElement(a);_.Pk(function(){_.SA(g,a)})}}});
return K};
zFC=function(d,H,K){K?K(H):_.EG(H,d.target?{form:{element:d.target}}:void 0)};
_.Ej=function(d,H,K){return function(c){_.wc(function(){var p=new Map,g,a=(g=d())==null?void 0:g.onTap;a&&(g=function(e){a:{var k=e.composedPath();k=_.q(k);for(var C=k.next();!C.done;C=k.next()){C=C.value;if(C===c)break;if(C.className.indexOf("HostIsClickableAdComponent")>=0||C.tagName==="A".toString()||C.tagName==="BUTTON".toString()){k=!0;break a}}k=!1}k||zFC(e,a,H)},(K==null?0:K())||_.h("enable_web_home_top_landscape_image_layout_level_click")?(c.addEventListener("tap",g),p.set("tap",g)):(c.addEventListener("click",
g),p.set("click",g)));
_.Pk(function(){for(var e=_.q(p),k=e.next();!k.done;k=e.next()){var C=_.q(k.value);k=C.next().value;C=C.next().value;c.removeEventListener(k,C)}})},"NMyqj")}};
Xsf=function(d,H){var K,c=(K=d.interaction)==null?void 0:K.onTap;if(d=_.OG({elementsCommand:c,forceNewState:!0,skipOnClick:!0}))return d.onclick=function(p){sUi(p)&&(p.preventDefault(),c&&zFC(p,c,H))},Sv(d)?d:void 0};
JG1=function(d){switch(d){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
s25=function(d){switch(d){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
FXY=function(d){switch(d){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.Zx4=function(d){return _.h("rich_grid_enable_dynamic_offset")&&d?Math.max(Math.round((d-_.iT("rich_grid_dynamic_offset_anchor_width",1300))/100*_.iT("rich_grid_dynamic_offset_offset_per_100",10)),_.iT("rich_grid_dynamic_offset_lower_bound",-60)):0};
T8M=function(d,H){switch(H){case 4:return 16;case 1:return d<528?16:d<1024?32:48;case 2:return(d>=528?16:8)/2;case 3:return(d<528?16:d<1024?32:48)+(d>=528?16:8)/2;default:return 0}};
Q2C=function(d){var H=d.originalContainerWidth;var K=d.sizing;var c=d.standardUnit;if(d.isCompactList&&H<528)return 1;switch(K){case "STANDARD":return c;case "COMPACT":return c+1;case "EXTRA_COMPACT":return _.h("web_responsive_extra_compact_2x")?c*2:_.h("web_responsive_current")?c===1?2:c%2===0?c/2*3:c+2:c<4?c*2:Math.ceil(c*3/2);case "MINI":return c>1?c*2:3;default:return c}};
YNF=function(d){var H=d.containerWidth;var K=d.peek;var c=d.gutter;var p=d.numItems;d=d.ignoreMaxWidthLimit;H=K?Math.max((H-K-c*p)/p,0):Math.max((H-c*(p-1))/p,0);return d?H:Math.min(H,tN4)};
_.yY=function(d){var H=d.containerWidth;var K=d.hasPeek;var c=d.sizing;var p=d.marginSettings;var g=d.isCompactList;var a=d.enableFullBleedForSingleCol;var e=d.standardUnitMinWidth;c=c||"STANDARD";K=!!K;d=H>=528?16:8;var k=K?H>=528?48:24:0;p=T8M(H,p);var C=Math.max(H-p*2,0);e=_.h("kevlar_disable_min_width_override")?void 0:e;e=Math.min(Math.max(Math.floor((C-k+d)/((e!=null?e:OxL)+_.Zx4(H)+d)),1),6);var R=(a=!!a&&e===1)||e===1&&c!=="STANDARD";K=K||R?C:Math.min(C,(tN4+d)*e-d);c=Q2C({originalContainerWidth:H,
sizing:c,standardUnit:e,isCompactList:g});return{itemWidth:YNF({containerWidth:K,peek:k,gutter:d,numItems:c,ignoreMaxWidthLimit:R}),gutter:d,maxContainerWidth:K,numItems:c,margin:a?0:p,contentMargin:T8M(H,1),typographyBump:YNF({containerWidth:K,peek:k,gutter:d,numItems:e,ignoreMaxWidthLimit:R})>400&&!(g&&H<528),standardUnit:e}};
SN1=function(d){switch(d){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.EyY=function(d){if(d){var H;if((H=d.responsiveContainerConfiguration)==null?0:H.responsiveSize)return SN1(d.responsiveContainerConfiguration.responsiveSize);if(d.layoutSizing)switch(d.layoutSizing){case "RICH_GRID_LAYOUT_SIZING_COMPACT":return"COMPACT";case "RICH_GRID_LAYOUT_SIZING_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RICH_GRID_LAYOUT_SIZING_TINY":return"MINI";default:return"STANDARD"}}};
yGE=function(d){if(d.fullbleed)return 1;switch(d.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
fyl=function(d,H,K,c,p,g,a,e){a:if(d===4&&c==="LOCKUP_CONTENT_TYPE_SOURCE")var k=1;else switch(d){case 3:k=1;break a;default:k=0}a:switch(d){case 4:g=!!(g&&g<100);break a;default:g=!1}a:switch(d){case 3:case 4:var C=c==="LOCKUP_CONTENT_TYPE_CHANNEL"||c==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:C=!1}a:switch(d){case 5:var R=!0;break a;case 4:R=!1;break a;default:R=!1}return{isOverlay:R,isCard:bxi(c,a),sizing:H!=null?H:"STANDARD",typographyBump:K!=null?K:!1,isTiny:g,isCentered:C,isCollection:N8F(c),
arrangement:k,addMarginForFullbleed:d===1&&c!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:d===1&&c==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:DnX(c,p,e),disableRounding:d===5||bxi(c,a)||d===1&&c==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:N8F(c)?2:0,useLegacyTypography:!(e==null||!e.useLegacyTypography),useRichGridLegacyTypography:!(e==null||!e.useRichGridLegacyTypography)&&!_.h("web_enable_typography_bump"),compactMetadata:k===0&&c==="LOCKUP_CONTENT_TYPE_VIDEO"}};
N8F=function(d){switch(d){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
bxi=function(d,H){if(H&&d==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(d){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
DnX=function(d,H,K){if(H&&(K==null||!K.alwaysRespectPodcastShowAspectRatio||d!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(d){case "LOCKUP_CONTENT_TYPE_SHORT":return 4;case "LOCKUP_CONTENT_TYPE_GAME":case "LOCKUP_CONTENT_TYPE_MOVIE":return 1;case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PRODUCT":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return 3;default:return 0}};
AGM=function(d){switch(d){case 0:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingGreenCircle";case 1:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingYellowCircle";case 2:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingRedSquare";case 3:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallGreenSquare";case 4:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlueSquare";case 5:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlueSquare";case 6:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallYellowSquare";case 7:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeYellowSquare";
case 8:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallOrangeSquare";case 9:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeOrangeSquare";case 10:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallRedSquare";case 11:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeRedSquare";case 12:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlackSquare";case 13:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlackSquare"}};
j2F=function(d){switch(d){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
vyX=function(d){switch(d){case "BADGE_NZ_RATING_GREEN_CIRCLE":return 0;case "BADGE_NZ_RATING_YELLOW_CIRCLE":return 1;case "BADGE_NZ_RATING_RED_SQUARE":return 2;case "BADGE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;
case "BADGE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_BR_RATING_LARGE_RED_SQUARE":return 11;case "BADGE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
_.b8=function(d){if(d){var H;return((H=_.Kj().resolve(_.$p(_.fM)))==null?0:H())?d.darkThemeImage:d.image}};
$94=function(d,H,K,c,p,g){if(p&&g&&H==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:p,height:g};if(!K)return{};p=K.size;K=K.allowFullWidth;if(H==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&K)return{fullWidth:!0};if(p===void 0)return{};switch(d){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:p,height:p};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:p,height:1/d9F*p};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:p*
HuL,height:p};default:return(c==null?0:c.height)&&(c==null?0:c.width)?c.width/c.height>1?{maxWidth:p*HuL}:{maxWidth:p}:{maxWidth:p}}};
K0h=function(d){var H;return d&&((H=_.b8(d.themedImage))!=null?H:d.image)};
crM=function(d){var H;return d==null?void 0:(H=d.sources)==null?void 0:H[0]};
pch=function(d){switch(d){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
_.g9C=function(d){if(d)return"content-id-"+d};
iuL=function(d){switch(d.style){case "STYLE_VISIBLY_DISABLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_WHITE_WITH_BORDER":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};
case "STYLE_LIGHT_TEXT":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DARK_ON_BLACK":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",
type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};default:return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"}}};
GyF=function(d){var H=_.Iy5(_.AB().getState())||"";return d?d+H:""};
o94=function(d){switch(d){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
a35=function(d){var H=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],K=_.q(_.GO(void 0,void 0,"JrqNsb")),c=K.next().value,p=K.next().value,g=_.q(_.GO(void 0,void 0,"rWytse"));K=g.next().value;var a=g.next().value;g=_.q(_.GO(void 0,void 0,"DHRqxe"));var e=g.next().value,k=g.next().value;return{touchFeedbackEvents:{pointerUpEvent:c,pointerDownEvent:K,pointerLeaveEvent:e},touchFeedbackOnPointerUp:_.n7(function(C){qWl(_.JW(C),H)||(p(C),a(void 0),k(void 0))}),
touchFeedbackOnPointerDown:_.n7(function(C){d==null||d(C);qWl(_.JW(C),H)||(a(C),p(void 0),k(void 0))}),
touchFeedbackOnPointerLeave:_.n7(function(C){qWl(_.JW(C),H)||(k(C),a(void 0),p(void 0))})}};
qWl=function(d,H){H=H===void 0?[]:H;H=[].concat(_.ru(H),["BUTTON".toString()]);d=_.q(d);for(var K=d.next();!K.done;K=d.next()){K=K.value;for(var c=_.q(H),p=c.next();!p.done;p=c.next())if(K.tagName===p.value)return!0}return!1};
l3Y=function(d){switch(d){case "AD_AVATAR_SIZE_XXS":return"tiny";case "AD_AVATAR_SIZE_XS":return"extra-small";case "AD_AVATAR_SIZE_S":return"small";case "AD_AVATAR_SIZE_M":return"medium";case "AD_AVATAR_SIZE_MPLUS":return"48";case "AD_AVATAR_SIZE_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
es4=function(d){return d.scrollHeight-d.offsetHeight>1};
kyl=function(d,H){var K;return DX(d,((K=d.content)==null?void 0:K.length)||0,!H)};
CLf=function(d,H,K,c,p,g){if(!H||x94){var a;return DX(d,((a=d.content)==null?void 0:a.length)||0,!0)}H=c.value;if(!K.value||!H||!d.content)return d;K=0;c=d.content.length;a=0;n95||(n95=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var e=n95;for(p=p*g*e;K<=c;)g=Math.floor(K+(c-K)/2),e=DX(d,g)||d,H.firstChild&&(H.firstChild.textContent=e.content),H.scrollHeight>p?c=g-1:(a=g,K=g+1);return DX(d,a)};
Rs1=function(d,H){var K,c;return(((K=d.content)==null?void 0:K.length)||0)>(((c=H.content)==null?void 0:c.length)||0)};
Vgf=function(d,H,K,c,p,g){var a=_.Af("truncated-text-content"),e=_.Af("truncated-text-content"),k=_.Af("button"),C=_.Af("button"),R=_.Af("button"),V=_.Kj().resolve(_.jv),U=_.q(_.V2(function(){return kyl(d(),p())})),L=U.next().value,w=U.next().value;
U=_.q(_.V2(function(){return Rs1(d(),L())}));
var W=U.next().value,J=U.next().value,F=null;_.wc(function(){function Y(){if(a.value&&k.value&&R.value){var N=g()?d():CLf(d(),p(),a,e,H(),K());w(N);requestAnimationFrame(function(){if(a.value&&k.value&&R.value){var y=es4(a.value)||Rs1(d(),N);J(y);if(!c()){var v=es4(a.value),el=K(),l1=a.value,V4=k.value,Mf=R.value,LF=V==="rtl";if(l1&&V4){var YY=V4.offsetLeft;LF&&(YY=l1.offsetWidth-V4.offsetWidth-V4.offsetLeft);if(y){y=V4.offsetWidth;V4=l1.offsetWidth;var FM=v?V4-y-70:YY-70;el="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
el+"rem,\n      #000 "+el+"rem,\n      #000 100%), linear-gradient(\n      to "+((LF?"left":"right")+",\n      #000 0px,\n      #000 "+FM+"px,\n      transparent "+(v?V4-y:FM+70)+"px)");l1.style.setProperty("-webkit-mask-image",el);l1.style.setProperty("mask-image",el)}else l1.style.setProperty("-webkit-mask-image",""),l1.style.setProperty("mask-image","");v?LF?(Mf.style.setProperty("left","0"),Mf.style.setProperty("right","unset")):(Mf.style.setProperty("left",""),Mf.style.setProperty("right","0")):
LF?(Mf.style.setProperty("left","unset"),Mf.style.setProperty("right",YY+"px")):(Mf.style.setProperty("left",YY+"px"),Mf.style.setProperty("right","unset"))}}}})}}
var A,E;(A=F)==null||(E=A.stop)==null||E.call(A);A=new _.NV(Y,17);Y();F=A},"sZ7lhf");
_.WE(function(){w(kyl(d(),p()));J(Rs1(d(),L()));var Y=function(){n95=void 0;var E,N;(E=F)==null||(N=E.fire)==null||N.call(E)};
if(window.ResizeObserver){var A=new ResizeObserver(Y);A.observe(a.value);_.Pk(function(){var E,N;(E=F)==null||(N=E.stop)==null||N.call(E);A.disconnect()})}else window.addEventListener("resize",Y),_.Pk(function(){var E,N;
(E=F)==null||(N=E.stop)==null||N.call(E);window.removeEventListener("resize",Y)})});
return{isTruncated:W,displayText:L,contentRef:a,hiddenRef:e,placeholderTruncationTextRef:k,hiddenTruncationTextRef:C,truncationTextRef:R}};
U9i=function(d){return{content:d!=null?d:""}};
hs5=function(d){return _.T6(d.onTap)||_.FN(d.rendererContext)};
L0C=function(d){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:d.overflowMenuA11yLabel,onTap:function(H){H.preventDefault();H.stopPropagation();if(d.overflowMenuOnTap){var K=_.OG({elementsCommand:d.overflowMenuOnTap,forceNewState:!0});if(K==null?0:K.onclick)K.onclick(H)}}}};
_.Db=function(d,H,K,c,p){c=c===void 0?{}:c;if(!p||Math.random()<5E-4){H=H||null;K=K||null;d=d instanceof Error?d:new _.m1(d);if(d.args)for(var g=_.q(d.args),a=g.next();!a.done;a=g.next())a=a.value,a instanceof Object&&(c=Object.assign({},a,c));c.category="H5 Ads Control Flow";H&&(c.slot=H?"slot:  "+H.slotType:"");K&&(c.layout=K?"layout:  "+K.layoutType:"",c.layoutId=K.layoutId);p&&(c.known_error_aggressively_sampled=!0);d.args=[c];_.Jf(d)}};
_.MgX=function(d,H){_.oF(d,"yt-open-popup-action",[_.$i(H),d])};
_.ff=function(d,H){_.MgX(d,_.AF(H))};
wcE=function(d){if(!d)return"";if(m91[d])return m91[d];AW||(AW=_.x1("A"));AW.href!==d&&_.TC(AW,d);var H=AW.pathname;m91[d]=H.startsWith("/")?H:"/"+H;return m91[d]};
PLh=function(){var d=wcE(window.location.href);if(d==="/")return"home";if(d.startsWith("/results"))return"search";if(d.startsWith("/watch"))return"watch";if(d.startsWith("/shorts"))return"shorts";if(d.startsWith("/hashtag"))return"hashtag";if(d.startsWith("/create_channel"))return"create_channel";if(d.startsWith("/@")||d.startsWith("/user/")||d.startsWith("/channel/"))return"channel";if(d.startsWith("/experiments"))return"experiments";if(d.startsWith("/sponsor_channel"))return"sponsorship";if(d.startsWith("/select_site"))return"settings";
if(d.startsWith("/locate"))return"locate";if(d.startsWith("/redeem"))return"redeem";if(d.startsWith("/musicpremium")||d.startsWith("/premium")||d.startsWith("/red"))return"premium";if(d.startsWith("/paid_memberships"))return"paid_memberships";if(d.startsWith("/oops"))return"oops";if(d.startsWith("/clip"))return"clip";var H;return(jA==null?void 0:(H=jA.response)==null?void 0:H.page)==="404"?"404":d.startsWith("/feed/history")?"history":d.startsWith("/feed/library")?"library":d.startsWith("/feed/subscriptions")?
"subscriptions":d.startsWith("/feed/trending")?"trending":d.startsWith("/feed/news_destination")?"news":d.startsWith("/playlist")?"playlist":d.startsWith("/minor_moment")?"minor_moment":d.startsWith("/playable/")||d.match("^/playables/(?!saved).")?"mini_app":d.startsWith("/playables")?"playables":d.startsWith("/create/live/join")?"open_in_app":d.startsWith("/feed/explore")?"explore":"browse"};
_.W0D=function(){var d=jA==null?void 0:jA.response,H=d==null?void 0:d.endpoint;if(!H)return(d==null?void 0:d.page)==="watch"?"watch":PLh();var K;d=(K=_.M(H==null?void 0:H.commandMetadata,_.Co))==null?void 0:K.webPageType;K=!1;if(d&&!unl.includes(d))switch(d){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var c;return((c=_.M(H==null?void 0:H.commandMetadata,_.Co))==null?0:c.url)&&wcE(_.M(H.commandMetadata,_.Co).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var p;return(H=(p=_.M(H,_.Lm))==null?void 0:p.browseId)?I3h[H]||"browse":"browse";default:K=!0}if(_.M(H,_.vI)||_.M(H,rrF))return"sponsorship";p=wcE(window.location.href);if(p.startsWith("/experiments"))return"experiments";if(p.startsWith("/create_channel"))return"create_channel";
if(_.M(H,_.yj)&&p.startsWith("/shorts"))return"shorts";if(_.M(H,_.yj)&&p.startsWith("/watch"))return"watch";K&&(H=new _.m1("Unsupported mWeb page type",{pathname:p,webPageType:d}),_.z5(H));return"browse"};
dE=function(d,H,K,c){return d&&H?d!==K||H!==c?(_.Db(Error("Hh"),void 0,void 0,{"stored-slot":d,"stored-layout":H,"latest-slot":K,"latest-layout":c}),!1):!0:!1};
zsD=function(d,H,K){return d({targetId:H},function(c){return K.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},c,{contents:[K.continuationItems?_.M(K.continuationItems[0],B1Y):{}]}):K.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},c,{header:K.continuationItems?K.continuationItems[0]:void 0}):Object.assign({},c,{contents:K.continuationItems?K.continuationItems:[]})})};
XcX=function(d,H,K,c){if(H=H.trackingParams){var p,g=(p=K.getScreenLayer)==null?void 0:p.call(K);K=_.Fj(g);p=_.so(g);if(K&&p){var a=_.P1(H);_.h("combine_ve_grafts")?d.graftServerVe(H,p,g):_.Ea(K,p,a);c==null||c(a)}}};
sWL=function(d){var H;return((H=Jr5.get(d))==null?void 0:H.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
T1F=function(d,H){var K={type:H.slotType,controlFlowManagerLayer:F0X.get(H.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};H.slotEntryTrigger&&(K.entryTriggerType=H.slotEntryTrigger.triggerType);H.slotPhysicalPosition!==1&&(K.slotPhysicalPosition=H.slotPhysicalPosition);if(d){K.debugData={slotId:H.slotId};if(d=H.slotEntryTrigger)K.debugData.slotEntryTriggerData=ZuF(d);d=H.slotFulfillmentTriggers;K.debugData.fulfillmentTriggerData=[];d=_.q(d);for(var c=d.next();!c.done;c=d.next())K.debugData.fulfillmentTriggerData.push(ZuF(c.value));
H=H.slotExpirationTriggers;K.debugData.expirationTriggerData=[];H=_.q(H);for(d=H.next();!d.done;d=H.next())K.debugData.expirationTriggerData.push(ZuF(d.value))}return K};
ZuF=function(d,H){var K={type:d.triggerType};H!=null&&(K.category=H);d.triggeringSlotId!=null&&(K.triggerSourceData||(K.triggerSourceData={}),K.triggerSourceData.associatedSlotId=d.triggeringSlotId);d.triggeringLayoutId!=null&&(K.triggerSourceData||(K.triggerSourceData={}),K.triggerSourceData.associatedLayoutId=d.triggeringLayoutId);return K};
QWX=function(d,H,K,c){H={opportunityType:H};d&&(c||K)&&(c=_.Wf(c||[],function(p){return T1F(d,p)}),H.debugData=Object.assign({},K&&K.length>0?{associatedSlotId:K}:{},c.length>0?{slots:c}:{}));
return H};
tgM=function(d){return HK(d.opportunityAdapterMap).concat(HK(d.triggerAdapterMap)).concat(HK(d.fulfillmentAdapterFactoryMap)).concat(HK(d.slotAdapterFactoryMap)).concat(HK(d.layoutRenderingAdapterFactoryMap))};
HK=function(d){var H=[];d=_.q(d.values());for(var K=d.next();!K.done;K=d.next())K=K.value,K.isAdsControlFlowEventListener&&H.push(K);return H};
K8=function(d){var H=d.slotId,K=d.slotType,c=d.slotPhysicalPosition;return H===void 0?new $E("Cannot construct a slot due to the missing id.",{adSlotMetadata:d}):K===void 0?new $E("Cannot construct a slot due to the missing type.",{adSlotMetadata:d}):c===void 0?new $E("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:d}):{slotId:H,slotType:K,slotPhysicalPosition:c,managerLayer:"external",adSlotLoggingData:d.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new YWE}};
Ouh=function(d){var H=d.layoutId,K=d.layoutType;return H===void 0?new cK("Cannot construct a layout due to the missing id.",{adLayoutMetadata:d}):K===void 0?new cK("Cannot construct a layout due to the missing type.",{adLayoutMetadata:d}):{layoutId:H,layoutType:K,managerLayer:"external",adLayoutLoggingData:d.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new YWE,interactionLoggingAdsClientData:{}}};
SWM=function(d){if(d.querySelector("img")){var H=d.querySelector("img");H.addEventListener("error",function(){Md4(H.src).then(function(K){(K=_.JL(K).toString())?H.src=K:H.removeAttribute("src")}).catch(function(){H.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
gE=function(d,H){if(H&&(E9L(H.viewableCommand)||E9L(H.endOfSessionCommand))){var K=yrM(H==null?void 0:H.viewableCommand);H=yrM(H==null?void 0:H.endOfSessionCommand);if(!p8){var c=_.iT("custom_active_view_tos_timeout_ms");p8=c>0&&c!==36E5?new bu4(N1L(),c):new bu4(N1L())}D95(p8,d);f35(p8,d,K,H)}};
iW=function(d){p8&&D95(p8,d)};
N1L=function(){var d=_.Fm("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(d==null?void 0:d.length)===2?d[1]:null};
E9L=function(d){d=_.T6(d);return!(d==null||!d.loggingUrls)&&d.loggingUrls.length>0};
yrM=function(d){if(!d)return[];var H=[],K,c;((c=(K=_.T6(d))==null?void 0:K.loggingUrls)!=null?c:[]).forEach(function(p){p.baseUrl&&H.push(p.baseUrl)});
return H};
ArL=function(d){if(_.h("stop_av_measurement_on_detach"))return function(){iW(d)}};
jWi=function(d){return function(){_.h("stop_av_measurement_on_detach")&&iW(d)}};
v9Y=function(d){if(_.h("stop_av_measurement_on_detach"))return function(){iW(d)}};
dP1=function(d){return d.shorts.isDesktopSmallWidth};
_.HvD=function(d){return d.shorts.isShortsActive};
_.$Ph=function(d){return d.shorts.isWatchWhileMode};
_.G_=function(d){return d.shorts.isFullscreen};
_.oI=function(d){return d.shorts.isShortsPipActive};
cj1=function(d){var H,K;if(d=(H=_.M(d.reelsAdCardButtoned,K85))==null?void 0:(K=H.animatedRenderingConfig)==null?void 0:K.easeOutSeconds)return d+"s"};
g71=function(d,H,K){return _.l(function(c){return c.return(new Promise(function(p){var g=new Image;g.onload=function(){p(new p_h(d,H,K,g.naturalWidth,g.naturalHeight))};
g.src=K.toString()}))})};
ivD=function(d,H){return Math.round(d/1E-5)===Math.round(H/1E-5)};
GPX=function(d,H){return Math.round(d/1E-5)===Math.round(H/1E-5)};
o7M=function(d,H){return d.year===H.year&&d.month===H.month&&d.day===H.day};
qJY=function(d,H){return d.year!==H.year?d.year<H.year:d.month!==H.month?d.month<H.month:d.day<H.day};
lZC=function(d){return d.day===aZ1(d.year,d.month)?d.month===11?{year:d.year+1,month:0,day:1}:{year:d.year,month:d.month+1,day:1}:{year:d.year,month:d.month,day:d.day+1}};
eEf=function(){var d=new Date,H={year:d.getFullYear(),month:d.getMonth(),day:d.getDate()};return{start:H,end:{year:d.getFullYear()+2,month:d.getMonth(),day:d.getDate()},selectedDate:lZC(H)}};
kPh=function(d){return(new DL(2)).format(new Date(d.year,d.month,d.day))};
xPY=function(d){return{year:d.getFullYear(),month:d.getMonth(),day:d.getDate()}};
n7i=function(d,H){d=(d+(Number(H.utcOffsetSec)+(new Date(d*1E3)).getTimezoneOffset()*60))*1E3;H=xPY(new Date(d));return{date:H,secondsSinceMidnight:Math.floor((d-(new Date(H.year,H.month,H.day)).getTime())/1E3)}};
Cel=function(d,H){H=H.months.findIndex(function(K){return K.year===d.year&&K.month===d.month});
return H>=0?H:void 0};
REC=function(d){if(!d)return!1;try{if(d.host&&d.host.tagName==="YT-FORMATTED-STRING"&&d.host.id==="contenteditable-textarea"||d.nodeType===Node.ELEMENT_NODE&&d.tagName==="YTD-COMMENTBOX")return!0}catch(H){return!1}return REC(d.parentNode)};
q$=function(d){return d?!(d.tagName!=="A"||!d.href||!d.classList.contains("yt-simple-endpoint")):!1};
VmF=function(d){return d?d.tagName==="IMG"&&d.classList.contains("emoji"):!1};
UPF=function(d,H,K){if(!d)return null;var c=q$(d);if(c&&K)return H=d.pathname.substring(d.pathname.indexOf("/channel/")+9),document.createTextNode("@"+H);if(c&&!K)return document.createTextNode("");if(VmF(d))return K=d.alt,d=d.dataset.emojiId,!d&&H&&(H=_.aI(H,K))&&H.isCustomEmoji&&(d=H.emojiId),d?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+d+">"):document.createTextNode(K);c=d.cloneNode(!1);for(var p=0;p<d.childNodes.length;++p){var g=UPF(d.childNodes[p],H,K);g&&c.appendChild(g)}return c};
lW=function(d){return d?q$(d)?d:lW(d.lastChild):null};
hEi=function(d){return d?q$(d)?d:hEi(d.firstChild):null};
L8Y=function(d){if(!d)return null;for(var H=d.previousSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.previousSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.previousSibling;else break;(H=lW(H))?d=H:d=(d=d.parentNode)?lW(d.previousElementSibling):null;return d};
MmE=function(d){if(!d)return null;for(var H=d.nextSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.nextSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.nextSibling;else break;return(H=hEi(H))?H:MmE(d.parentNode)};
mPY=function(d){var H=_.en(),K=H.JSC$11278_getStartNode();if(!REC(K.parentNode))return null;H=H.JSC$11278_getStartOffset();if(K.nodeType===Node.TEXT_NODE){var c=_.sY(K,q$);if(c){if(d&&H===0||!d&&H===K.length)return c}else{if(d&&H===K.length)return!K||K.nodeName==="BR"||K.nextElementSibling&&_.kE(K.nextElementSibling,"display")==="block"?null:hEi(K.nextElementSibling);if(!d&&H===0)return K?lW(K.previousElementSibling):null}}if(K.nodeType===Node.ELEMENT_NODE)if(d){if(0<=H&&H<K.childNodes.length)return hEi(K.childNodes[H])}else if(0<
H&&H<=K.childNodes.length)return lW(K.childNodes[H-1]);return null};
w_X=function(d,H,K){if(!d)return null;if(d.nodeType===Node.TEXT_NODE)if(K){var c=L8Y(d);if(c&&!/^\s+\S/.test(d.wholeText.substr(0,H)))return c}else if((c=MmE(d))&&!/\S\s+/.test(d.wholeText.substr(H,d.wholeText.length)))return c;return d.nodeType===Node.ELEMENT_NODE?K?L8Y(d.childNodes[H]):MmE(d.childNodes[H]):w_X(d.parentNode,H,K)};
PeX=function(d){if(d.hasChildNodes())switch(d.tagName){case "DIV":case "A":case "SPAN":var H="";for(d=d.firstChild;d;d=d.nextSibling)H+=PeX(d);return H;default:return""}else switch(d.nodeType){case 3:return d.textContent;default:return""}};
xE=function(d,H){return d.year===H.year&&d.month===H.month&&d.day===H.day};
n8=function(d,H){return d.year!==H.year?d.year<H.year:d.month!==H.month?d.month<H.month:d.day<H.day};
uGL=function(d){return{year:d.getFullYear(),month:d.getMonth(),day:d.getDate()}};
IZL=function(d){var H=M$F;H=H===void 0?M$F:H;H(new Date(d.year,d.month,d.day))};
C8=function(d){return uGL(new Date(Number(d.seconds)*1E3))};
rj4=function(d){return d.year!==void 0&&d.month!==void 0&&d.day!==void 0};
W8h=function(d){return d.start!==void 0&&d.end!==void 0};
Bxl=function(d){return W8h(d)?d.start:d};
zEL=function(d){return W8h(d)?d.end:void 0};
JjY=function(d,H){for(var K=[],c=new Date(d.start.year,d.start.month);c.getFullYear()<d.end.year||c.getFullYear()===d.end.year&&c.getMonth()<=d.end.month;){var p=K,g=p.push,a=c.getFullYear(),e=c.getMonth(),k=d,C=H,R=void 0,V=[],U=Object.freeze({extraCssClass:"invisible"}),L=new Date(a,e),w=uGL(L);L=L.getDay();for(var W=uGL(new Date);w.month===e;){L!==X_i&&R||(R=Array.from({length:7}).fill(U),V.push(R));var J={date:{year:a,month:e,day:w.day},extraCssClass:"",debugClass:""};J.extraCssClass=C(J.date,
w,W,k).trim();R[(L-X_i+7)%7]=J;w=w.day===aZ1(w.year,w.month)?w.month===11?{year:w.year+1,month:0,day:1}:{year:w.year,month:w.month+1,day:1}:{year:w.year,month:w.month,day:w.day+1};L=(L+1)%7}g.call(p,{weeks:V,monthLabel:RI.SHORTMONTHS[e]+" "+a,year:a,month:e,monthLabelExtraCssClass:V[0][2]===U?"shift-down-label":""});c.setMonth(c.getMonth()+1)}return K};
sg5=function(d,H){H=H.months.findIndex(function(K){return K.year===d.year&&K.month===d.month});
return H>=0?H:void 0};
ZvM=function(d,H){a:{var K=K===void 0?[2,3]:K;K=_.q(K);for(var c=K.next();!c.done;c=K.next()){var p=new Date;if((new F8l(c.value)).parse(H,p,{validate:!0})){p.setHours(0,0,0,0);H=p;break a}}H=null}if(!H)return{isValid:!1,value:void 0};H=uGL(H);K=d.end;return n8(H,d.start)||n8(K,H)?{isValid:!1,value:void 0}:{isValid:!0,value:H}};
Ov4=function(d){var H=TxF;H=H===void 0?Qgf:H;var K=d.columnsToShow||[],c=tmX(d.columnDimensions,d.columnsToShow,d.leftFloatingColumns,H);return K.map(function(p,g){var a=d.columns[p];if(a===void 0)throw Error("Nh");var e=c?c[g]:"";var k=d.getCustomTooltip?d.getCustomTooltip(p,a.headerTooltipParagraphs):a.headerTooltipParagraphs;var C=YJL(d,p);return{type:p,index:g,style:e,classes:C,headerName:a.headerName||"",headerIcon:a.headerIcon,headerTooltipParagraphs:k||[],headerTooltipHelpContext:a.headerTooltipHelpContext,
sortOrders:a.sortOrders||[],selectionState:a.isSelectionCheckbox?d.selectionState:void 0}})};
YJL=function(d,H){var K=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],c=d.columns[H];if(c===void 0)return"";var p=K.includes("DEFAULTS")&&c.cssClass?[c.cssClass]:[];if(K.includes("SORTING")){c.sortOrders&&c.sortOrders.length&&p.push("sortable");if(d.sorting&&d.sorting.columnType===H)a:switch(d.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var g="column-sorted";break a;default:g=""}else g="";g&&p.push(g)}K.includes("FLOATING")&&(H=d.columnsToShow.indexOf(H),d.leftFloatingColumns&&H<d.leftFloatingColumns&&
p.push("floating-column"),d.leftFloatingColumns&&H===d.leftFloatingColumns-1&&p.push("last-floating-column"));K.includes("RIGHT_ALIGN")&&c.rightAlignHeader&&p.push("right-align");return p.filter(function(a){return a}).join(" ")};
tmX=function(d,H,K,c){K=K===void 0?0:K;c=c===void 0?Qgf:c;if(d){var p=[],g=0;SJF(d,H,c).forEach(function(a,e){var k="min-width:"+a.minWidth+"px;padding-left:"+a.paddingLeft+"px;padding-right:"+a.paddingRight+"px;flex:"+a.flexGrow+" 0 "+a.minWidth+"px;";a.maxWidth!==Infinity&&(k=[k,"max-width:"+a.maxWidth+"px;"].join(""));g>0&&e<K&&(k=[k,"left:"+g+"px;"].join(""));p.push(k);g+=a.minWidth+a.paddingLeft+a.paddingRight});
return p}};
SJF=function(d,H,K){K=K===void 0?Qgf:K;return H.map(function(c,p){c=d&&d[c]||{};var g=p===0?K.paddingLeftFirstColumn:K.padding;c.paddingLeft!==void 0&&(g=c.paddingLeft);p=p===H.length-1?K.paddingRightLastColumn:K.padding;c.paddingRight!==void 0&&(p=c.paddingRight);return{paddingLeft:g,paddingRight:p,minWidth:c.minWidth!==void 0?c.minWidth:K.minWidth,maxWidth:c.maxWidth!==void 0?c.maxWidth:K.maxWidth,flexGrow:c.flexGrow!==void 0?c.flexGrow:K.flexGrow}})};
E7E=function(d){var H=d.reduce(function(c,p){var g=p.columnId,a={};p.headerText&&(a.headerName=_.jG(p.headerText));p.rightAlignHeader&&(a.rightAlignHeader=p.rightAlignHeader);var e;if((e=p.headerIcon)==null?0:e.iconType)a.headerIcon=_.kv(p.headerIcon.iconType);c[g]=a;return c},{}),K=d.filter(function(c){return!c.hideColumn}).map(function(c){return c.columnId});
d=d.filter(function(c){return!!c.dimensions}).reduce(function(c,p){c[p.columnId]=p.dimensions;
return c},{});
return{columns:H,columnsToShow:K,columnDimensions:d}};
_.yj4=function(d){return d?d.simpleText?d.simpleText:d.runs?d.runs.map(function(H){return H.text}).join(""):"":""};
AjX=function(d){var H=d.data;var K=d.onTap;var c=d.isSelected;var p=d.onFocusIn;if(!H)return{};d=bv4(H);c===void 0&&(c=H==null?void 0:H.isSelected);var g;return{text:Nx1(H,d),startIcon:(g=H.icon)==null?void 0:g.iconType,state:c?0:2,type:0,onTap:DPD(H,K),accessibilityLabel:fZL(H,d),onFocusIn:function(){return p==null?void 0:p()}}};
Nx1=function(d,H){if(!H)return d.text?_.yj4(d.text):void 0};
DPD=function(d,H){return function(K){H==null||H(K,d)}};
bv4=function(d){d=d.style&&d.style.styleType;return!x94&&d==="STYLE_EXPLORE_LAUNCHER_CHIP"};
fZL=function(d,H){if(H){var K,c,p;return(p=(K=d.accessibilityData)==null?void 0:(c=K.accessibilityData)==null?void 0:c.label)!=null?p:Nx1(d,!1)}};
Vv=function(d){return{signalAction:{signal:d}}};
dBM=function(){return _.Fm("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?jgM:_.v7l};
Hh5=function(d,H){d=d===void 0?"SOFT_RELOAD_PAGE":d;H=H===void 0?49504:H;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.cW(_.Vz("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:H}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:d}}]}}}};
$BC=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.cW(_.Vz("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:dBM()}};
Kxl=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.cW(_.Vz("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:dBM()}};
cnY=function(d,H){var K=_.cW(_.Vz("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),c=_.cW(_.Vz("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),p={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.cW(_.Vz("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};p.serviceEndpoint=d?d:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Vv("SOFT_RELOAD_PAGE")]}};return{title:K,bodyText:c,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:p},
style:{value:H!=null?H:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
ghF=function(d){d=d===void 0?{}:d;return{title:_.cW(d.localizedZeroStateTitleText===void 0?"":d.localizedZeroStateTitleText),bodyText:_.cW(d.localizedZeroStateMessage===void 0?"":d.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.cW(d.localizedZeroStateButtonText===void 0?"":d.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[pu4]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
G04=function(d){d=d===void 0?{}:d;return{title:_.cW(d.localizedOptInBannerTitleText===void 0?"":d.localizedOptInBannerTitleText),titleLength:19,subtitle:_.cW(d.localizedOptInMessage===void 0?"":d.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.cW(_.Vz("DISMISS",void 0,"Dismiss")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED",boolValue:!0}},
loggingDirectives:{clientVeSpec:{uiType:127984}}}},secondaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.cW(_.Vz("TURN_ON",void 0,"Turn on")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[ihE]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
ax4=function(d,H){var K=H=H===void 0?{}:H;H=K.offlineTitleText===void 0?"":K.offlineTitleText;var c=K.offlineDescriptionText===void 0?"":K.offlineDescriptionText,p=K.formattedSupplementalText,g=K.actionButtonText===void 0?"":K.actionButtonText,a=K.titleText===void 0?"":K.titleText;K=K.descriptionText===void 0?"":K.descriptionText;var e={title:g,accessibilityText:g,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{urlEndpoint:{url:"https://www.youtube.com/premium"},commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",webPageType:"WEB_PAGE_TYPE_PROMO"}}}}};d||(a=H,K=c,e={title:g,accessibilityText:g,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.cW(a),
titleLength:a.length,overrideTitleMaxFontSize:30,subtitle:_.cW(K),supplementalText:p,primaryButton:{buttonViewModel:e},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[ohL]},darkTileImage:{thumbnails:[q9D]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.k04=function(d,H,K,c,p,g,a,e,k,C,R){p=p===void 0?!1:p;g=g===void 0?!1:g;a=a===void 0?0:a;e=e===void 0?-Infinity:e;k=k===void 0?!1:k;C=C===void 0?!1:C;R=R===void 0?!1:R;var V=[],U=_.cW(_.Vz("SMART_DOWNLOADS",void 0,"Smart downloads")),L=_.cW(lx4(a,e,d.length));e=a=void 0;C?a={statementBannerRenderer:ax4(R,c)}:p?d.length>0?e=eOh(d,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.h("kevlar_manual_downloads_above"),U,L):k?e={alertBannerViewModel:{heading:{content:K.localizedOptInBannerTitleText===
void 0?"":K.localizedOptInBannerTitleText},body:{content:K.localizedPromptMessage===void 0?"":K.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Vz("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Vz("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:129730}},
onTap:{innertubeCommand:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",entityKey:_.F2F}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:g&&(e={backgroundPromoRenderer:{bodyText:_.cW(_.Vz("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}):
g&&(e={alertBannerViewModel:{heading:{content:K.localizedOptInBannerTitleText===void 0?"":K.localizedOptInBannerTitleText},body:{content:K.localizedOptInMessage===void 0?"":K.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Vz("TURN_ON",void 0,"Turn on"),accessibilityText:_.Vz("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!0}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});K=_.cW(_.Vz("YOUR_DOWNLOADS",void 0,"Your downloads"));c=void 0;H.length>0?(c=void 0,_.h("kevlar_display_downloads_numbers")&&(c=_.cW(_.Ua("VIDEO_COUNT",H.length))),c=eOh(H,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,K,c)):p||d.length||
C||(c={backgroundPromoRenderer:{bodyText:_.cW(_.Vz("VIDEOS_WILL_APPEAR_HERE",void 0,"Videos you download will appear here")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/downloads_empty_state.png"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:120848}}}});a?V.push({richSectionRenderer:{content:a}}):e&&!_.h("kevlar_manual_downloads_above")&&V.push({richSectionRenderer:{content:e,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
c&&V.push({richSectionRenderer:{content:c,loggingDirectives:{clientVeSpec:{uiType:51721}}}});e&&_.h("kevlar_manual_downloads_above")&&V.push({richSectionRenderer:{content:e,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(H.length>0||p&&d.length>0&&!C)&&V.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.cW(_.Vz("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:V}};
_.nhl=function(d){return xBM(d,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.CcM=function(d){return xBM(d,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
xBM=function(d,H){var K=[];d=eOh(d,H,!0);K.push({richSectionRenderer:{content:d}});return{contents:K}};
eOh=function(d,H,K,c,p){K=K===void 0?!1:K;var g="RESPONSIVE_SIZE_STANDARD";_.h("kevlar_modern_downloads_compact")?g="RESPONSIVE_SIZE_COMPACT":_.h("kevlar_modern_downloads_extra_compact")&&(g="RESPONSIVE_SIZE_EXTRA_COMPACT");d={isExpanded:K,contents:U7(d),entitySelectorType:H,responsiveContainerConfiguration:{responsiveSize:g}};c&&(d.title=c);p&&(d.subtitle=p);K||(_.h("kevlar_smart_downloads_show_more_button")?(d.showMoreButton={buttonRenderer:{accessibility:{label:_.Vz("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.cW(_.Vz("SHOW_MORE",void 0,"Show more"))}},d.showLessButton={buttonRenderer:{accessibility:{label:_.Vz("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.cW(_.Vz("SHOW_LESS",void 0,"Show less"))}}):(d.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Vz("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,
"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},d.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Vz("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:11760}}}},d.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Vz("VIEW_ALL",void 0,"View all"),accessibilityText:_.Vz("VIEW_ALL",void 0,"View all"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:242898}},onTap:{innertubeCommand:_.$L("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:d}};
U7=function(d){var H=[];d=_.q(d);for(var K=d.next();!K.done;K=d.next())if(K=K.value,VcD(K)){var c=H,p=c.push;var g=void 0;if(K==null?0:(g=K.videoEntity)==null?0:g.videoId){g=Oc(_.dn().getState(),K.videoEntity.videoId);var a=_.dn().getState();var e=_.kL(K.videoEntity.videoId,"mainVideoEntity");a=!!_.r0(a.entities)[e];a={videoId:K.videoEntity.videoId,title:pH(K.videoEntity.title),shortBylineText:pH(K.channelEntity.title),thumbnail:K.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:a&&_.h("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:fvC(K.videoEntity.videoId,g,K.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Vz("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};K.videoEntity.lengthSeconds&&(a.thumbnailOverlays=OsC(K.videoEntity.lengthSeconds,g));a.isWatched=g>0;_.h("kevlar_modern_downloads_page")&&(a.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:K.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Vz("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},a.badges=void 0);K=a}else K={};p.call(c,{richItemRenderer:{content:{videoRenderer:K},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(RtM(K)){c=H;p=c.push;var k=e=g=void 0,C=void 0,R=void 0,V=void 0,U=void 0,L=void 0,w=void 0,W=void 0,J=void 0,F=void 0;a=K.mainPlaylistEntity.playlistId;var Y=K==null?void 0:(F=K.mainPlaylistEntity)==null?void 0:(J=F.thumbnailStyleData)==null?void 0:(W=J[0])==null?void 0:(w=W.value)==null?void 0:(L=w.collageThumbnail)==
null?void 0:L.coverThumbnail;if(a&&Y){L=AQC(a);!_.h("enable_offline_playlist_page")&&(K==null?0:(U=K.mainPlaylistEntity)==null?0:U.videos)&&(U=K==null?void 0:(V=K.mainPlaylistEntity)==null?void 0:(R=V.videos)==null?void 0:R[0],R=_.a6(U).entityId,R=JSON.parse(R).videoId,R!==void 0&&(V=Oc(_.dn().getState(),R),L=_.KH(R,a,void 0,void 0,V)));R=[];if(K==null?0:(C=K.mainPlaylistEntity)==null?0:(k=C.videos)==null?0:k.length)R=[L91(),Object.assign({},(e=hlC(K==null?void 0:K.mainPlaylistEntity.videos.length))!=
null?e:{})];K={playlistId:a,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:Y}},navigationEndpoint:L,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:R,title:pH(K.mainPlaylistEntity.title),shortBylineText:pH(K==null?void 0:(g=K.channelEntity)==null?void 0:g.title),badges:[{metadataBadgeRenderer:{label:_.Vz("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.h("kevlar_modern_downloads_page")&&(K.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:ROD,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:a,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Vz("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},K.badges=void 0)}else K=void 0;p.call(c,{richItemRenderer:{content:{playlistRenderer:K},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return H};
lx4=function(d,H,K){d=d?VH1(d):"";H!==void 0&&isFinite(H)?H===0?H=_.Vz("UPDATING",void 0,"Updating..."):(H=YsX(new Date(H),new Date),H=_.Vz("UPDATED_TIME",{relative_time:H},"Updated "+H)):H="";var c="";d&&H&&(c=" \u2022 ");if(K&&_.h("kevlar_display_downloads_numbers")){K=_.Ua("VIDEO_COUNT",K);if(d||H)c=" \u2022 ";return K+c+d+c+H}return d+c+H};
UBL=function(d){return qTi(d.entities).length};
_.hOF=function(d,H){var K=SN1(d.responsiveSize),c;d=!((c=d.responsiveMap)==null||!c.some(function(p){return p.containerSize==="CONTAINER_SIZE_NARROW"&&p.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:H,sizing:K,enableFullBleedForSingleCol:!1,isCompactList:K==="COMPACT"&&d}};
Lxf=function(d,H){return _.xL(d.entities,"votingEntity",H)};
MHF=function(d){if(d){var H;return((H=_.Kj().resolve(_.$p(_.fM)))==null?0:H())?d.darkTheme:d.lightTheme}};
mBL=function(d,H){if(d.simpleText)return Object.assign({},d,{simpleText:bD(d.simpleText,H)});if(!d.runs)return d;for(var K=Object.assign({},d,{runs:[]}),c=0,p=_.q(d.runs),g=p.next();!g.done;g=p.next())if(g=g.value,g.text)if(c+g.text.length<=H)K.runs.push(g),c+=g.text.length;else return K.runs.push(Object.assign({},g,{text:bD(g.text,H-c)})),K;return d};
wu1=function(d,H){return _.xL(d.entities,"chipBarStateEntity",H)};
Pch=function(d,H){return _.xL(d.entities,"chipEntity",H)};
IxY=function(d,H,K,c){return function(){var p=ugX.has(d.displayType)&&d.selected,g=p&&d.deselectCommand?d.deselectCommand:d.tapCommand;!g||p&&c||_.EG(g,{form:{element:H==null?void 0:H.value}});K==null||K()}};
rn5=function(d){switch(d){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
WxM=function(d,H){return{triggeringElement:d,onDwellTriggeredFn:function(){var K={triggeringElement:d,loadVideoPreviewEventData:H},c=document.querySelector(".video-preview");c&&c.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:K}))},
onDwellEndFn:function(){var K=document.querySelector(".video-preview");K&&K.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
Btf=function(d,H){var K=_.Kj().resolve(_.$p(WXM)),c=function(){var p=H();return K&&p?WxM(d.value,p):null};
_.wc(function(){var p=c();K&&p&&Promise.resolve().then(function(){K.registerElement(p)});
_.Pk(function(){K&&p&&Promise.resolve().then(function(){_.SA(K,p)})})},"csPUge")};
Xu4=function(d){var H=d.dataset.resizeObserverId;if(H)return H;H=""+zO5++;return d.dataset.resizeObserverId=H};
Jni=function(d,H){var K=Xu4(d);hE.has(K)||hE.set(K,new Set);hE.get(K).add(H);L8.has(K)&&H(Object.assign({},{target:d},L8.get(K)))};
sfY=function(d){d=_.q(d);for(var H=d.next();!H.done;H=d.next()){H=H.value;var K=Xu4(H.target),c=Object.assign({},{target:H.target},L8.get(K));if(c!=null&&c.contentRect?c.contentRect.width!==H.contentRect.width||c.contentRect.height!==H.contentRect.height:1)for(L8.set(K,{borderBoxSize:H.borderBoxSize,contentBoxSize:H.contentBoxSize,contentRect:H.contentRect,devicePixelContentBoxSize:H.devicePixelContentBoxSize}),K=_.q(hE.get(K)||[]),c=K.next();!c.done;c=K.next())c=c.value,c(H)}};
ZhF=function(){return M$?M$:M$=new FxD(sfY)};
TtC=function(d,H){var K=Xu4(d);hE.has(K)&&(hE.get(K).delete(H),hE.get(K).size===0&&(hE.delete(K),L8.delete(K),M$.unobserve(d),delete d.dataset.resizeObserverId));hE.size===0&&M$&&(M$.disconnect(),M$=void 0)};
tHM=function(d,H){var K=_.Kj().resolve(K5);return QfD.map(function(c){return K.observe(d,H,c)})};
Y9i=function(d){var H=_.Kj().resolve(K5);d.forEach(function(K){H.unobserveByKey(K)})};
_.EhX=function(d,H){var K=Object.assign({},Ohh,H);H=_.q(Pw1());var c=H.next().value,p=H.next().value,g=function(a){var e=a.contentRect.height;if((a=a.contentRect.width)||e||K.canHaveZeroSize)c.width()===a&&c.height()===e||p(c,{height:e,width:a})};
_.WE(function(){var a=d instanceof HTMLElement?d:d.value,e=S9L(g,K.throttleMs),k=[];K.useVisibilityObserver&&(k=tHM(a,function(C,R){requestAnimationFrame(function(){R==="visible"?(Jni(a,e),ZhF().observe(a)):TtC(a,e)})}));
k.length||(Jni(a,e),ZhF().observe(a));_.Pk(function(){k.length&&(Y9i(k),k.length=0);TtC(a,e)})});
return c};
bhD=function(d,H,K,c,p){d=H?d.switchOffCommand:d.switchOnCommand;if(c&&p)ynh(d,K,p);else{var g,a;(g=_.OG({elementsCommand:d}))==null||(a=g.onclick)==null||a.call(g,K)}};
ynh=function(d,H,K){d=_.OG({elementsCommand:d,additionalCommandArgs:{commandController:{onSuccess:function(){K(!1)},
onServerError:function(){K(!1)}}}});
if(d==null?0:d.onclick)d.onclick(H),K(!0)};
DBf=function(d){if(d)return _.M(d,NtX)};
fxM=function(d,H){if(!((H==null?0:H.entitySelectorType)&&(H==null?0:H.entityKey)))return{};switch(H.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":return d=_.tu(d,H.entityKey),d=d==null?void 0:d.value,H=!1,d==="CAPTIONS_UNAVAILABLE"&&(H=!0,d=""),Object.assign({},!!d&&{selectionText:{content:d}},!!d&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:H});case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":return _.h("web_shorts_audio_track_picker")?
(d=_.tu(d,H.entityKey),d=d==null?void 0:d.value,H=!1,d==="ALTERNATE_AUDIO_TRACK_UNAVAILABLE"&&(H=!0,d=""),Object.assign({},!H&&!!d&&{selectionText:{content:d}},!H&&!!d&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}},{isDisabled:H})):{};default:return{}}};
H0C=function(d,H,K){if(H)return[An4];switch(d){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[mB];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return K?[mB]:[jf5,mB];case "TRANSFER_STATE_PAUSED_BY_USER":return[vhL,mB];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[dDL,mB];default:return[An4]}};
$DD=function(d,H,K,c){return H0C(d,H,c).map(function(p){var g=p.text,a=p.iconType,e=p.videoAction;p=p.playlistAction;g=g?{content:g}:void 0;a=a&&{sources:[{clientResource:{imageName:a}}]};var k=(0,_.rs.unsafeClone)(K);if(k){var C=_.M(k,_.Cf),R=_.M(k,_.VY);C&&e?C.action=e:R&&p&&(R.action=p)}return{title:g,leadingImage:a,rendererContext:k&&{commandContext:{onTap:{innertubeCommand:k}}}}})};
Kjf=function(d){d=_.FN(d.rendererContext);var H;return(H=_.M(d,_.VY))==null?void 0:H.playlistId};
cl4=function(d){var H;return(H=d.listItems)==null?void 0:H.some(function(K){var c;return _.Zb((c=_.M(K,_.ID))==null?void 0:c.rendererContext)})};
i0L=function(d){var H;return(H=d.listItems)==null?void 0:H.some(function(K){var c,p,g=(p=(c=_.M(K,pTM))==null?void 0:c.defaultListItem)!=null?p:K;K=_.M(g,_.ID);return!!_.M(K==null?void 0:K.leadingAccessory,guE)})};
qMX=function(d){var H=d.element;var K=d.veType;var c=d.storedVisualElement===void 0?null:d.storedVisualElement;var p=d.elementIndex===void 0?0:d.elementIndex;d=d.clientYouTubeData;var g=_.Fj();g!==GDL&&(ouY.clear(),GDL=g);if(H.visualElement&&ouY.has(H.visualElement))return null;if(c&&ouY.has(c))return H.visualElement=c,null;K=_.UG(_.hR(),{veType:K,elementIndex:p,clientYouTubeData:d});if(!K)return null;H.visualElement=K;ouY.add(K);return K};
_.wE=function(d,H,K,c){K=K===void 0?null:K;c=c===void 0?vef:c;var p=p===void 0?null:p;B1(function(){if(H){K instanceof Function&&(K=K());var g=qMX({element:H,veType:d,storedVisualElement:K,clientYouTubeData:void 0});g&&($0L(H,p),c(g))}})};
PK=function(d,H){if(d){switch(H){case 0:d=d.primaryTitleColor;break;case 1:d=d.secondaryTitleColor;break;case 2:d=d.surgeColor;break;case 3:d=d.section2Color;break;case 4:d=d.section3Color;break;default:return}if(d)return _.Yi(d)}};
uW=function(d,H){if(d){switch(H){case 0:d=d.primaryTitleColor;break;case 1:d=d.secondaryTitleColor;break;case 2:d=d.surgeColor;break;case 3:d=d.section2Color;break;case 4:d=d.section3Color;break;default:return}if(d)return _.Yi(d)}};
aUX=function(d){return d?_.Ob(d):""};
lUh=function(d){return(d==null?void 0:d.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
ey4=function(d,H){var K;return"linear-gradient(to bottom, "+((K=H==null?void 0:H.map(function(c){var p=d?c.darkThemeColor:c.lightThemeColor;return p?_.Ob(p)+" "+((c==null?void 0:c.startLocation)||0)*100+"%":"transparent"}))==null?void 0:K.join(", "))+")"};
kDf=function(d,H,K,c,p){if(!((c==null?0:c.height)&&(c==null?0:c.width)))return{size:0};var g=c.width;c=c.height;if(p)return H==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||H==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&g>c?{size:312/HuL}:H==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(K!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||d!==1&&d!==2||H!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&H!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&H!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(H==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||H==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||c===g)switch(d){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(H==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||c>g)switch(d){case 1:case 3:return{size:240*d9F};default:return{size:360*d9F}}switch(d){case 1:case 2:return{size:1/HuL*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.xDF=function(d){if(!("matchMedia"in window))return _.SD(Error("Oh")),function(){return!1};
var H=window.matchMedia(d);d=_.q(_.GO(H.matches,void 0,"jLJc8e"));var K=d.next().value,c=d.next().value,p=function(g){c(g.matches)};
H.addEventListener?(H.addEventListener("change",p),_.Pk(function(){H.removeEventListener("change",p)})):H.addListener&&(H.addListener(p),_.Pk(function(){H.removeListener(p)}));
return K};
nuD=function(d){return d==="IMAGE_BANNER_STYLE_INSET"||d==="IMAGE_BANNER_STYLE_UNKNOWN"};
CYC=function(){if(!("matchMedia"in window))return _.SD(Error("Oh")),function(){return 0};
var d=BE(function(){return window.matchMedia("(max-width: 527.9px)")}),H=BE(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),K=BE(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),c=BE(function(){return window.matchMedia("(min-width: 1024px)")}),p=_.q(_.GO(d.matches,void 0,"og9kEc")),g=p.next().value,a=p.next().value;
p=_.q(_.GO(H.matches,void 0,"ybDWCb"));var e=p.next().value,k=p.next().value;p=_.q(_.GO(K.matches,void 0,"o0Gfh"));var C=p.next().value,R=p.next().value;p=_.q(_.GO(c.matches,void 0,"yqUUgd"));var V=p.next().value,U=p.next().value,L=BE(function(){return function(F){a(F.matches)}}),w=BE(function(){return function(F){k(F.matches)}}),W=BE(function(){return function(F){R(F.matches)}}),J=BE(function(){return function(F){U(F.matches)}});
_.WE(function(){d.addEventListener?(d.addEventListener("change",L),H.addEventListener("change",w),K.addEventListener("change",W),c.addEventListener("change",J)):d.addListener&&(d.addListener(L),H.addListener(w),K.addListener(W),c.addListener(J));_.Pk(function(){d.removeEventListener?(d.removeEventListener("change",L),H.removeEventListener("change",w),K.removeEventListener("change",W),c.removeEventListener("change",J)):d.removeListener&&(d.removeListener(L),H.removeListener(w),K.removeListener(W),
c.removeListener(J))})});
return function(){return g()?1:e()?2:C()?3:V()?4:0}};
RyC=function(d){var H=0;d=_.q([d.title,d.metadata,d.actions,d.description,d.attribution]);for(var K=d.next();!K.done;K=d.next())K.value&&H++;return H};
VsE=function(d){return d===1||d===2?1:0};
hyC=function(d){d=(new UDY).parse(d);return(new nO).render(d).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(H){var K=H.split(":").map(Number),c=0,p=0;if(K.length===3)K=_.q(K),c=K.next().value,p=K.next().value,K=K.next().value;else if(K.length===2)K=_.q(K),p=K.next().value,K=K.next().value;else if(K.length===1)K=_.q(K).next().value;else throw Error("Ph");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(c*3600+p*60+K)+'" role="button">'+H+"</span>"})};
Ljl=function(d){d=_.q(d.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var H=d.next(),K={};!H.done;K={clickHandler$jscomp$4:void 0},H=d.next()){H=H.value;K.clickHandler$jscomp$4=function(p){p=Number(p.target.getAttribute("data-time"));if(isNaN(p))throw Error("Qh");var g;(g=_.k6())==null||g.seekTo(p,!0)};
var c=function(p){return function(g){g.key!=="Enter"&&g.key!=="Space"||(0,p.clickHandler$jscomp$4)(g)}}(K);
H.setAttribute("tabindex","0");H.removeEventListener("click",K.clickHandler$jscomp$4);H.removeEventListener("keydown",c);H.addEventListener("click",K.clickHandler$jscomp$4);H.addEventListener("keydown",c)}};
MsE=function(){return _.x("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.x(II,{percentWidth:100}),_.x(II,{animationDelay:200}),_.x(II,{animationDelay:400}),_.x(II,{animationDelay:600}),_.x(II,{animationDelay:800,percentWidth:60}),_.x("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.x(II,{percentWidth:100}),_.x(II,{animationDelay:200}),_.x(II,{animationDelay:400}),_.x(II,{animationDelay:600,percentWidth:50}))};
II=function(d){return _.x("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(d.percentWidth===void 0?100:d.percentWidth)+"%"},_.x("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(d.animationDelay===void 0?0:d.animationDelay)+"ms"}))};
mDM=function(){var d=_.q(_.GO(function(){return""},void 0,"v2wS5e")),H=d.next().value;
return[function(){return H()()},
d.next().value]};
wT1=function(d,H){d=d?VH1(d):"";H!==void 0&&isFinite(H)?H===0?H=_.Vz("UPDATING",void 0,"Updating..."):(H=YsX(new Date(H),new Date),H=_.Vz("UPDATED_TIME",{relative_time:H},"Updated "+H)):H="";var K="";d&&H&&(K=" \u2022 ");return _.cW(d+K+H)};
IU5=function(d,H,K,c,p,g){H=H===void 0?0:H;var a=PYl[H],e=a.title,k=a.iconType,C=a.topButtonRenderer,R=a.sectionClientVE;a=a.videoClientVE;var V;if(H!==1||d.length){K=[];d=_.q(d);for(c=d.next();!c.done;c=d.next()){var U=c.value;if(VcD(U))K.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:U.videoEntity.videoId,title:pH(U.videoEntity.title),shortBylineText:pH(U.channelEntity.title),thumbnail:U.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:U.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Vz("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:a}}}}}});else if(RtM(U)){c=K;var L=c.push;var w=void 0,W=void 0,J=void 0,F=void 0,Y=void 0,A=void 0,E=void 0,N=void 0,y=U.mainPlaylistEntity.playlistId,v=U==null?void 0:(N=U.mainPlaylistEntity)==null?void 0:(E=N.thumbnailStyleData)==null?void 0:(A=E[0])==null?void 0:(Y=A.value)==null?void 0:(F=Y.collageThumbnail)==null?void 0:F.coverThumbnail;F=AQC(y);if(!_.h("enable_offline_playlist_page")&&
(U==null?0:(J=U.mainPlaylistEntity)==null?0:J.videos)){b:{J=U==null?void 0:(W=U.mainPlaylistEntity)==null?void 0:W.videos;W=_.dn().getState().entities;if(J!=null&&J.length&&W)for(J=_.q(J),Y=J.next();!Y.done;Y=J.next())if(Y=_.a6(Y.value).entityId,(Y=JSON.parse(Y).videoId)&&GFE(W,Y)==="TRANSFER_STATE_COMPLETE"){W=Y;break b}W=""}W!==void 0&&(F=Oc(_.dn().getState(),W),F=_.KH(W,y,void 0,void 0,F))}W=vZX(_.Vz("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),AQC(y));U=y&&v&&W?{playlistId:y,navigationEndpoint:F,
viewPlaylistText:W,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:v}},title:pH(U.mainPlaylistEntity.title),shortBylineText:pH(U==null?void 0:(w=U.channelEntity)==null?void 0:w.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:u8L,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Vz("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:a}}}:
void 0;L.call(c,{gridPlaylistRenderer:U})}}a={gridRenderer:{items:K}};H===1&&(V=wT1(p,g))}else if(c){var el=_.cW((L=K==null?void 0:K.localizedPromptMessage)!=null?L:"");a={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.cW(_.Vz("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.F2F}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.cW(_.Vz("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};V=wT1(p,g)}else el=_.cW(_.Vz("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
a={};return{contents:[{shelfRenderer:{title:e,titleAnnotation:V,icon:{iconType:k},subtitle:el,content:a,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:C}]}}}}],loggingDirectives:{clientVeSpec:{uiType:R}}}};
rlY=function(d,H,K,c,p,g,a,e,k,C,R){K=K===void 0?{}:K;c=c===void 0?{}:c;p=p===void 0?!1:p;g=g===void 0?!1:g;a=a===void 0?!1:a;e=e===void 0?!1:e;k=k===void 0?!1:k;C=C===void 0?0:C;R=R===void 0?-Infinity:R;if(!(H.length||d.length||p||e))return g?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:ghF(K)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.cW(_.Vz("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},
loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];var V=[];d.length&&V.push(IU5(d,0));e?V.push({contents:[{statementBannerRenderer:ax4(k,c)}]}):p?V.push(IU5(H,1,K,a,C,R)):g&&V.push({contents:[{statementBannerRenderer:G04(K)}]});(p&&H.length||d.length)&&V.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.cW(_.Vz("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});
return V.map(function(U){return{itemSectionRenderer:U}})};
rE=function(d,H){if(typeof d!=="object")return null;d=_.q(Object.entries(d));for(var K=d.next();!K.done;K=d.next()){var c=_.q(K.value);K=c.next().value;c=c.next().value;if(K===H)return K;if(c=rE(c,H))return K+"."+c}return null};
WK=function(d){var H=d.content;return(d=d.styleRuns)&&H?{runs:d.map(function(K){var c={text:H.slice(K.startIndex,K.startIndex+K.length)};K.fontColor&&(c.textColor=K.fontColor);return c})}:{simpleText:H}};
zyD=function(d,H,K,c){var p=WjF;c&&(d.quantity=c);if(!d.quantity||!d.maxQuantity)return{};c=d.minusButton;var g=d.plusButton,a,e,k,C;return{value:d.quantity,maxValue:d.maxQuantity,onChangeCallback:function(R){p(d,R)},
minusLabel:(a=_.M(c,BXF))==null?void 0:a.label,minimumReachedLabel:(e=_.M(c,BXF))==null?void 0:e.limitReachedLabel,plusLabel:(k=_.M(g,BXF))==null?void 0:k.label,maximumReachedLabel:(C=_.M(g,BXF))==null?void 0:C.limitReachedLabel,disabled:H,onRemoveCommand:K}};
WjF=function(d,H){var K=d.quantityIncrementerEntityKey;if(K){var c={};c.quantity=H;_.jO(_.BK("quantityIncrementerEntity",K,c));d.onChangeCommand&&_.EG(d.onChangeCommand)}};
sih=function(d,H){(d=XTY(d))&&((_.h("enable_mini_app_command_handler_mweb_fix")?0:H)?JlE.push({command:d,sourceData:{},commandContext:void 0}):_.Kj().resolve(_.cb).resolveCommand(d))};
XTY=function(d){return _.M(d,_.ZX)};
Fj4=function(){var d=window.performance.timeOrigin+window.performance.now(),H=(new _.z_).setSeconds(d/1E9);return _.D5(H,2,_.jS(d%1E9),0)};
TXX=function(d,H){var K;d=(K=_.M(_.M(d,_.ZX),Z05))==null?void 0:K.methodName;var c,p;(K=window.youtubewebview||((c=window.webkit)==null?void 0:(p=c.messageHandlers)==null?void 0:p.youtubewebview))&&d&&(c=new Xc,d=_.UY(c,1,d),d=_.mb(d.JSC$12321_serializeBinary()),H=_.mb(H),K.postMessage(d+","+H))};
JE=function(d,H){var K=_.M(_.M(d,_.ZX),Z05);K&&(H&&(K.serializedAdditionalMetadata=_.mb(H)),sih(d,!0))};
QiY=function(d){switch(d){case 2:return"MINI_APP_AD_TRIGGER_TYPE_WITHIN";case 3:return"MINI_APP_AD_TRIGGER_TYPE_REWARD";case 1:return"MINI_APP_AD_TRIGGER_TYPE_BEFORE";default:return"MINI_APP_AD_TRIGGER_TYPE_UNSPECIFIED"}};
tsX=function(){return!!_.Fm("ID_TOKEN")};
SMi=function(d){return d instanceof Error&&d.cause instanceof YM1&&d.cause.rpcErrorCode!==void 0?!O0C.includes(d.cause.rpcErrorCode):!0};
ylC=function(){return _.f6(EuF,{authuser:""+(_.Fm("SESSION_INDEX")||0)})};
s7=function(d,H,K,c){K=K===void 0?"MINI_APP_SDK_API_UNSPECIFIED":K;c=c===void 0?"":c;var p=new _.m1;K={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:c,sdkApi:K};d instanceof Error&&(p.message=d.message,p.name=d.name,d.cause instanceof YM1&&d.cause.rpcErrorCode!==void 0&&(K.rpcErrorCode=d.cause.rpcErrorCode));var g;(g=H.onError)==null||g.call(H,{loggingError:p,metadata:K})};
NXM=function(d,H,K,c){switch(d){case "MINI_APP_SOURCE_GAMESNACKS":return new Fc(H,K,c);default:return new b01(H,K,c)}};
DDF=function(d){switch(d){case 1:return"MINI_APP_ERROR_SOURCE_CONSOLE";case 2:return"MINI_APP_ERROR_SOURCE_UNCAUGHT";case 3:return"MINI_APP_ERROR_SOURCE_SDK";case 4:return"MINI_APP_ERROR_SOURCE_SDK_INTERNAL";case 5:return"MINI_APP_ERROR_SOURCE_SDK_SERVER";default:return"MINI_APP_ERROR_SOURCE_UNSPECIFIED"}};
fUL=function(d){switch(d){case 1:return"MINI_APP_SDK_ERROR_TYPE_API_UNAVAILABLE";case 2:return"MINI_APP_SDK_ERROR_TYPE_INVALID_PARAMS";case 3:return"MINI_APP_SDK_ERROR_TYPE_SIZE_LIMIT_EXCEEDED";default:return"MINI_APP_SDK_ERROR_TYPE_UNSPECIFIED"}};
AlF=function(d){switch(d){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
jil=function(){return Math.floor(Math.random()*4)+1};
vuX=function(d,H,K,c){d=_.q(Object.entries(d));for(var p=d.next(),g={};!p.done;g={message$jscomp$992:void 0},p=d.next()){var a=_.q(p.value);p=a.next().value;a=a.next().value;g.message$jscomp$992=a;H.push(setTimeout(function(e){return function(){c(!1);K(e.message$jscomp$992.text)}}(g),g.message$jscomp$992.delayMs));
Number(p)>0&&H.push(setTimeout(function(){c(!0)},g.message$jscomp$992.delayMs-400))}};
d4M=function(d,H){var K=K===void 0?vef:K;_.h("mweb_fix_monitor_visibility_after_render")?d&&B1(function(){$0L(d,H,K)}):B1(function(){$0L(d,H,K)})};
cKX=function(d){HL5||(HL5=$4f(new _.Ec(1,void 0,void 0,Kyh),0));var H=HL5.format(Math.floor(d));H=_.SG==="be"||_.SG==="bg"||_.SG==="es"||_.SG==="et"||_.SG==="hu"||_.SG==="ka"||_.SG==="lv"||_.SG==="pl"||_.SG==="pt-PT"||_.SG==="sq"?H.replace(new RegExp("^(\\d)"+Kyh.GROUP_SEP.replace(".","\\.")+"(\\d+("+Kyh.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):H;return d>=1E3&&d<=9999&&H[1]==="."&&(_.SG==="sl"||_.SG==="it")?H.replace(".",""):H};
pYF=function(d,H){VI4("ytd-button-renderer",{data:d,className:H?H.className:"",overrides:H==null?void 0:H.buttonOverrides},uxE)};
Gfl=function(d,H,K,c){if(d)return c=c||d.likeStatus,H?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:c==="LIKE",isDisabled:!d.likesAllowed,defaultIcon:{iconType:K},defaultText:c==="LIKE"?d.likeCountWithUnlikeText:d.likeCountText,toggledText:c==="LIKE"?d.likeCountText:d.likeCountWithLikeText,defaultNavigationEndpoint:g_M(d,"LIKE"),defaultServiceEndpoint:iL1(d,"LIKE"),toggledServiceEndpoint:iL1(d,"INDIFFERENT"),defaultTooltip:_.jG(d.likeCountTooltipText),toggledTooltip:_.jG(d.likeCountTooltipText),
targetId:d.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:c==="DISLIKE",isDisabled:!d.likesAllowed,defaultIcon:{iconType:K},defaultText:c==="DISLIKE"?d.dislikeCountWithUndislikeText:d.dislikeCountText,toggledText:c==="DISLIKE"?d.dislikeCountText:d.dislikeCountWithDislikeText,defaultNavigationEndpoint:g_M(d,"DISLIKE"),defaultServiceEndpoint:iL1(d,"DISLIKE"),toggledServiceEndpoint:iL1(d,"INDIFFERENT"),defaultTooltip:_.jG(d.dislikeCountTooltipText),
toggledTooltip:_.jG(d.dislikeCountTooltipText)}};
g_M=function(d,H){if(H==="LIKE")return d.likeCommand;if(H==="DISLIKE")return d.dislikeNavigationEndpoint};
iL1=function(d,H){var K;return(K=d.serviceEndpoints)==null?void 0:K.find(function(c){var p;return((p=_.M(c,_.Za))==null?void 0:p.status)===H})};
_.a65=function(d,H,K){return window.spf&&!_.h("web_disable_spfjs_client")?o_M(d,H,K):qCh(d,H)};
o_M=function(d,H,K){var c=null,p=(new _.kr(function(g,a){var e={};if(H){e.method=H.method;var k=H.postParams||{};EWF(d,H)&&(k[_.Fm("XSRF_FIELD_NAME")]=_.Fm("XSRF_TOKEN"));e.postData=_.nj(k);H.type&&(e.type=H.type);k=H.headers}e.headers=TVM(d,k);_.h("debug_forward_web_query_parameters")&&(d=_.OoE(d,window.location.search));e.experimental_headers=e.headers;e.onError=function(C){C.err&&C.xhr&&(C.err.params={url:C.xhr.responseURL,response:C.xhr.responseText.substr(0,64)});a(C.err)};
e.onPartDone=function(C){K&&K.call(null,C.part)};
e.onDone=function(C){var R=l6E(C.response,"xsrf_token");vE(window.location.href,d)&&R&&_.sS("XSRF_TOKEN",R);if(R=l6E(C.response,"service_worker_killswitch"))_.sS("SERVICE_WORKER_KILLSWITCH",R),JV5();g(C.response)};
c=spf.request(d,e)})).then(eVl);
p.thenCatch(function(g){var a=g instanceof _.T_,e=g&&g.hasOwnProperty("params")&&g.params.response?g.params.response:"";g instanceof Error&&(e?a?uNL(g):e===')]}\'\n{"reload":"now"}'?uNL(g):(kf5(g,d,e),x44(g,e)?_.Jf(g):_.z5(g)):uNL(g));c&&c.abort()});
return p};
eVl=function(d){if(d.type==="multipart"){var H=d.timing;d=d.parts.reduce(function(K,c){Object.assign(K,c);return K},{});
d.timing=d.timing||{};Object.assign(d.timing,H);d.type="reduced"}return d};
qCh=function(d,H){H=H===void 0?{}:H;var K=null,c=new _.kr(function(p,g){H.onFinish=function(a){if(a.readyState===XMLHttpRequest.DONE)if(a.status===200){if(a.responseType!=="json"){var e=a.response;e.substring(0,5)===")]}'\n"&&(e=e.substring(5));try{var k=JSON.parse(e)}catch(C){k=C}}else k=a.response;k instanceof Error?g(k):(e=l6E(k,"xsrf_token"),vE(window.location.href,d)&&e&&_.sS("XSRF_TOKEN",e),a=a.responseURL,window.performance&&window.performance.getEntriesByName?(e=window.performance.getEntriesByName(a).pop())?
a={responseStart:(0,_.$G)()-(e.responseEnd-e.responseStart)}:(Math.random()<.01&&(e=Error("bi"),e.params=a,_.Jf(e)),a={responseStart:-1}):a={responseStart:0},k.timing=k.timing||{},Object.assign(k.timing,a),p(k))}else g(Error("ai`"+a.status))};
(K=_.xp(d,H))||g(Error("ai`"+K.status))});
c.thenCatch(function(p){p instanceof Error&&(kf5(p,d),x44(p)&&(p.level="WARNING"))});
_.h("cancel_pending_navs")&&c.thenCatch(function(){K.abort()});
return c};
l6E=function(d,H){var K=d[H],c=d.parts;d.type==="multipart"&&c&&(K=(d=c.find(function(p){return H in p}))&&d[H]);
return K};
kf5=function(d,H,K){var c=d.message||"";H={original:c,url:H};if(K)if(c=c.match(/position:?\s*(\d+)/)){c=c&&Number(c[1])?Number(c[1]):0;var p=Math.max(c-25,0);H.position=c;H.response=K.substring(p,c+25)}else H.response=K.substring(0,50);_.sD(d,H);try{d.message="JSON parse error"}catch(g){}};
x44=function(d,H){d=d.message||"";d=!!(d.indexOf("<")>=0||d.indexOf("end of ")>=0||d.indexOf("Unterminated string")>=0||d.indexOf("Unexpected EOF"));if(!d&&H)for(var K=H.length,c=!1,p=0;p<K;p++)if(c&&H[p]==="\\")p++;else if(H[p]==='"')c=!c;else if(H[p]==="<"&&!c){d=!0;break}return d};
n_4=function(){return document.documentElement.hasAttribute("dark")};
_.CQE=function(d,H){if(d!=="GFEEDBACK"&&d!=="GUIDED_HELP")_.tm(Error("ci`"+d));else{var K=_.Kj().resolve(_.$p(_.HI));if(K&&(K=K.getCurrentPage())&&K.getServiceTrackingParams&&(K=K.getServiceTrackingParams()))for(var c=0,p;p=K[c++];)if(p.service===d){if(d=p.params)for(K=0;c=d[K++];)H[c.key]=c.value;break}}};
_.RVi=function(d){var H=_.Kf();H&&(H=H.getPlayer())&&(H.pauseVideo(),d.playback_id=H.getVideoData().cpn,d.eid=H.getVideoData().eventId,Object.assign(d,H.getFeedbackProductData()))};
VQF=function(){var d={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Fm("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(d.enableAnonymousFeedback=!0);_.Fm("SESSION_INDEX")&&(d.authuser=String(_.Fm("SESSION_INDEX")));_.h("enable_pageid_for_feedback")&&_.Fm("DELEGATED_SESSION_ID")&&(d.pageId=String(_.Fm("DELEGATED_SESSION_ID")));return d};
_.Qv=function(d){_.h("enable_ypc_spinners")&&_.oF(d,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},d])};
_.tE=function(d){_.h("enable_ypc_spinners")&&_.oF(d,"yt-close-popup-action",["yt-loading-renderer"])};
U41=function(d){return new Promise(function(H,K){_.Yv({verifyCommand:{recaptchaToken:d.recaptchaResponse}},{commandController:{onSuccess:function(c,p){p||K("ChallengeService did not return a response.");var g;H({challengeCompleted:(g=p.verified)!=null?g:!1})},
onServerError:function(c,p){K(p)}}})})};
hVE=function(d,H,K,c){H({recaptchaResponse:c}).then(function(p){p.challengeCompleted?_.hX()?(K(3),_.Kj().resolve(_.cb).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:d}})):K(2):K(4)},function(){K(4)})};
MQ5=function(d,H,K){_.SM(_.pB(LyC,_.Fm("HL")),function(){var c;(c=window.grecaptcha)==null||c.ready(function(){var p=window.grecaptcha;p?(K(p.render(d,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:hVE.bind(null,d,U41,H)})),H(1)):H(4)})})};
m4F=function(d,H){return function(){switch(H()){case 0:return d().captchaLoadingMessage;case 1:return d().challengeReason;case 3:return d().captchaSuccessfulMessage;case 2:return d().captchaCookieSetFailureMessage;case 4:return d().captchaFailedMessage;default:return d().challengeReason}}()};
_.YE=function(){if(!wYF){var d=document.querySelector("#player.skeleton");d&&(_.nA(d),wYF=!0)}};
_.uyf=function(){return PQh=JoD()};
Wy4=function(){return _.l(function(d){return I6F!==void 0?d.return():d.yield(rKh(),0)})};
rKh=function(){return _.l(function(d){if(d.nextAddress==1)return d.yield(F7f(),2);PQh=d.yieldResult;I6F=_.Xp.addLowPriorityJob(rKh,5E3);_.VE(d)})};
FyM=function(d){var H=H===void 0?Bm4:H;var K,c,p=(K=d.responseContext)==null?void 0:(c=K.mainAppWebResponseContext)==null?void 0:c.trackingParam;if(!p){H.increment("MISSING");var g,a,e,k,C,R;_.Jf(new _.m1("282054944_a",{osj:!!((g=d.responseContext)==null?0:(a=g.mainAppWebResponseContext)==null?0:a.loggedOut),gK6:((e=d.responseContext)==null?void 0:e.mainAppWebResponseContext)===void 0,x8u:d.responseContext===void 0,cp:(k=d.playabilityStatus)==null?void 0:k.contextParams,aQO:(((C=d.streamingData)==
null?void 0:C.formats)||[]).length>0,cEZ:(((R=d.streamingData)==null?void 0:R.adaptiveFormats)||[]).length>0,os:!!d.offlineState,cotn:d.cotn}));return 2}K="";try{K=zVf(p)}catch(L){return H.increment("C_ERROR"),_.z5(L),2}try{var V=_.XYM(K);var U=JK4(V)}catch(L){return H.increment("P_ERROR"),_.z5(L),2}U=_.dk(U,syh,1,_.Hz());p=[];U=_.q(U);for(V=U.next();!V.done;V=U.next())c=V.value,V=c.getPath(),K=(0,_.rs.getValueByKeys)(d,V.split(".")),K=String(K===void 0||K===null?"":K),c=c.getValue()||"",g=/[+\-\/_]/g,
K.replace(g,"")!==c.replace(g,"")&&(H.increment("MISMATCH"),_.h("ab_mis_log_err")&&(K=new _.m1("282054944_p",{hj6:V,g:String(K),e:String(c)}),_.z5(K)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(V)||(V.match(/enforcementMessageViewModel/i)?p.push(3):p.push(2)));if(p.length>0)return Math.max.apply(Math,_.ru(p));H.increment("SUCCESS");return 1};
Qyl=function(d){var H=new O7;if(d.interpreterJavascript){var K=_.Ur5(d.interpreterJavascript);K=piF(K).toString();var c=new ZLh;_.UY(c,6,K);_.eE(H,1,c,rA)}else d.interpreterUrl&&(K=_.J5(d.interpreterUrl),K=_.Lc(K).toString(),c=new _.Tmh,_.UY(c,4,K),_.eE(H,2,c,rA));d.interpreterHash&&_.Sn(H,3,d.interpreterHash,rA);d.program&&_.Sn(H,4,d.program,rA);d.globalName&&_.Sn(H,5,d.globalName,rA);d.clientExperimentsStateBlob&&_.Sn(H,7,d.clientExperimentsStateBlob,rA);return H};
E7=function(d){var H={};d=_.q(d.split("&"));for(var K=d.next();!K.done;K=d.next())K=K.value.split("="),K.length===2&&(H[K[0]]=K[1]);return H};
tQC=function(d){return Number(d.t)||7200};
umF=function(){if(_.h("bg_st_hr"))return"havuokmhhs-0";var d,H=((d=performance)==null?void 0:d.timeOrigin)||0;return"havuokmhhs-"+Math.floor(H)};
YC5=function(){return new Promise(function(d){var H=window;H.ntpevasrs!==void 0?d(new yv(H.ntpevasrs)):(H.ntpqfbel===void 0&&(H.ntpqfbel=[]),H.ntpqfbel.push(function(K){d(new yv(K))}))})};
OLF=function(d){var H=d.ryt.bind(d);_.vb("yt.aba.att",H);d=d.rbD.bind(d);_.vb("yt.aba.att2",d)};
E_l=function(d){switch(_.kp(d.input)){case _.H5(SCl):var H={};return H.encryptedVideoId=d.innerTubeRequest.externalVideoId,H}return{}};
NmF=function(d){switch(_.kp(d.input)){case _.H5(SCl):if(_.h("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.H5(yKE):if(_.h("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.H5(bW):if(_.h("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&d.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.H5(bLi):var H,K;if(_.h("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((K=_.M((H=d.config)==null?void 0:H.command,TGM))==null?0:K.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.f6M=function(d){var H;if(d.playlistVideoRenderer&&((H=d.playlistVideoRenderer)==null?0:H.engagementBar))return D4C(d.playlistVideoRenderer.engagementBar);if(_.M(d,N$)){var K;if(d=(K=_.M(d,N$))==null?void 0:K.engagementBar)return D4C(d)}return""};
D4C=function(d){if(!d)return"";d=_.M(d,_.AKh);if(d==null||!d.actions)return"";d=_.q(d.actions);for(d=d.next();!d.done;d=d.next()){d=_.M(d.value,_.jyL);var H=void 0;if((H=d)==null||!H.itemId)break;return d.itemId}return""};
_.v_D=function(d){var H;if(d.playlistVideoRenderer&&((H=d.playlistVideoRenderer)==null?0:H.videoId))return d.playlistVideoRenderer.videoId;if(_.M(d,N$)){var K,c;if(d=(K=_.M(d,N$))==null?void 0:(c=K.playlistItemData)==null?void 0:c.videoId)return d}return""};
_.dp4=function(d){var H;if(d.playlistVideoRenderer&&((H=d.playlistVideoRenderer)==null?0:H.voteCount))return d.playlistVideoRenderer.voteCount;if(_.M(d,N$)){var K,c;if(d=(K=_.M(d,N$))==null?void 0:(c=K.playlistItemData)==null?void 0:c.voteCount)return d}return 0};
_.Da=function(d,H){return _.xL(d.entities,"flowStateEntity",H)};
$p1=function(d,H,K,c){var p=void 0;d=_.q(d[H.iconName]||[]);for(var g=d.next();!g.done;g=d.next()){g=g.value;var a=H.iconSize;var e=H.iconStyle;a=!a||a===g[2];var k=HwL[g[0]];c&&c!==g[1]||!a||e&&e!==k?e=!1:p?(e=HwL[g[0]],e=!!H.iconStyle||e==="youtube_outline",a=p.version<=g[1],e=(!!H.iconSize||g[2]===24)&&e&&a):e=!0;e&&(p={name:H.iconName,style:HwL[g[0]],size:g[2],version:g[1],allowMirroring:!!g[3],url:K(H.iconName,g)})}return p};
KQY=function(d,H,K,c){return d+(""+HwL[K[0]]+((c===void 0?0:c)?"_experimental":"")+"/"+H+"/v"+K[1]+"/")+(K[2]+"px.svg")};
cz1=function(d){return _.Fm("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"?"bookmark":d};
pNF=function(d,H){return KQY("https://fonts.gstatic.com/s/i/",d,H)};
gcF=function(d,H){return KQY("https://fonts.gstatic.com/s/i/",d,H,!0)};
iwi=function(d,H){return KQY("https://www.gstatic.com/youtube/img/icons/web/",d,H)};
ocl=function(d){var H=d.enabled;var K=d.itemPlaybackModel;var c=d.thumbnailElRef;var p=d.containerElRef;var g=d.options;var a;_.wc(function(){var e=p==null?void 0:p.value;var k,C=(k=c())==null?void 0:k.value;k=K();var R=g();if(H&&k&&e&&C&&(R==null?0:R.thumbnail)){var V={data:k,hostElement:e},U,L,w=_.h("web_explore_hub_on_hover")||_.h("web_client_explore_hub_on_hover")?[].concat(_.ru((U=R.thumbnailOverlays)!=null?U:[]),_.ru((L=k.overlays)!=null?L:[])):R.thumbnailOverlays||[],W,J;e={mediaRenderer:V,
lockupElement:e,thumbnailElement:C,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.T6((W=k.inlinePlayerData)==null?void 0:W.onVisible),navigationEndpoint:_.T6((J=k.inlinePlayerData)==null?void 0:J.onSelect),thumbnail:R.thumbnail,thumbnailOverlays:w,accessibilityText:R.accessibilityText||""},thumbnailSize:R.thumbnailSize,enableRounding:R.enableRounding}}}else e=void 0;if(W=e){var F;(F=a)==null||f8(F);a=Y6(W);var Y,A;((Y=K())==null?0:(A=Y.inlinePlayerData)==null?0:A.forceImpAutoplay)&&
GgX(a)}},"B33dEc");
_.Pk(function(){var e;(e=a)==null||f8(e)})};
q61=function(d){d=atob(d);for(var H=[],K=0;K<d.length;K++)H.push(d.charCodeAt(K));return new Blob([new Uint8Array(H)],{type:"image/png"})};
luD=function(d,H,K,c){c=c===void 0?"INSERTION_POSITION_UNSPECIFIED":c;return d({targetId:H},function(p){var g,a=(g=p.contents)!=null?g:[];g=K!=null?K:[];var e=aul(a);switch(c){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},p,{contents:[].concat(_.ru(a.slice(0,e)),_.ru(g),_.ru(a.slice(e+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},p,{contents:[].concat(_.ru(g),_.ru(a))});case "INSERTION_POSITION_LAST":return Object.assign({},p,{contents:[].concat(_.ru(a),_.ru(g))});
default:return p}})};
kgL=function(d,H,K,c,p){p=p===void 0?"RELATIVE_INSERTION_POSITION_AFTER":p;return d({targetId:H},function(g){var a,e=(a=g.contents)!=null?a:[];a=e21(e,K);if(a<0)return g;a=p==="RELATIVE_INSERTION_POSITION_BEFORE"?a:a+1;return Object.assign({},g,{contents:[].concat(_.ru(e.slice(0,a)),_.ru(c),_.ru(e.slice(a)))})})};
aul=function(d){var H=d.findIndex(function(K){return _.M(K,_.AE)});
return H>=0?H:d.length};
e21=function(d,H){return d.findIndex(function(K){a:{K=_.q(Object.values(K));for(var c=K.next();!c.done;c=K.next())if((c=c.value)&&c.targetId){K=c.targetId;break a}K=""}return K===H})};
nc4=function(d,H,K){return d({targetId:H},function(c){var p,g=(p=c.contents)!=null?p:[];return Object.assign({},c,{contents:xp5(g,K)})})};
xp5=function(d,H){return d.filter(function(K){var c=H.includes;a:{K=_.q(Object.values(K));for(var p=K.next();!p.done;p=K.next())if((p=p.value)&&p.targetId){K=p.targetId;break a}K=""}return!c.call(H,K||"")})};
_.CiL=function(d,H){return{engagementPanelSectionListRenderer:{panelIdentifier:d,identifier:H,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
R25=function(d,H){d=d.getAvailableAudioTracks();if(d.length)return d==null?void 0:d.find(function(K){var c;return(K==null?void 0:(c=K.getLanguageInfo())==null?void 0:c.getId())===H})};
_.UpF=function(d){var H,K=(H=d.getOption("captions","tracklist",{includeAsr:!0}))!=null?H:[];return K=ViL(K,d)};
h2i=function(d){return d.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
ViL=function(d,H){H=h2i(H);if(H==null||!H.length)return d;var K=H.filter(function(a){return a});
H=d.filter(function(a){return a.languageCode.startsWith("en")});
K=_.q(K);for(var c=K.next();!c.done;c=K.next())if(c=c.value,H.length){var p=H[0],g=Object.assign({},p);p.languageCode!==c.languageCode&&(g.displayName=p.languageName+" >> "+c.languageName,g.translationLanguage=c,d.push(g))}return d};
LQY=function(d,H,K){d=_.UpF(d);if(d.length)return K?d.find(function(c){if(typeof(c==null?void 0:c.translationLanguage)==="object"){var p;return((p=c.translationLanguage)==null?void 0:p.languageCode)===H}return!1}):d==null?void 0:d.find(function(c){return c.languageCode===H})};
Mif=function(d){return d.getOption("captions","tracklist",{includeAsr:!0})};
mp4=function(d){var H=d.getAvailableAudioTracks();if(H!=null&&H.length){var K=d.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.ru(H.map(function(c){return{listItemViewModel:{title:{content:c.getLanguageInfo().getName()},isSelected:c.getLanguageInfo().getId()===(K==null?void 0:K.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:c.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
wNY=function(d){return d.getOption("captions","tracklist",{includeAsr:!0})};
PiD=function(d){var H=wNY(d);if(H==null?0:H.length)return H;d.loadModule("captions");return wNY(d)};
uKC=function(d){var H=d.getOption("captions","track");if(H)return H;d.loadModule("captions");return d.getOption("captions","track")};
rz5=function(d){var H=PiD(d);if(H!=null&&H.length){var K=uKC(d),c;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Vz("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(K==null?0:K.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.ru(H.map(function(p){return{listItemViewModel:{title:{content:p.displayName},
isSelected:p.displayName===(K==null?void 0:K.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:p.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.Vz("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!K.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!K.translationLanguage&&{selectionText:{content:(K==null?void 0:(c=K.translationLanguage)==null?void 0:c.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[IuE(d)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
IuE=function(d){var H=h2i(d);if(H==null||!H.length)throw Error("Bi");var K=uKC(d);d=H.filter(function(c){return!c.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.ru(d.map(function(c){var p;return{listItemViewModel:{title:{content:c.languageName},isSelected:c.languageName===(K==null?void 0:(p=K.translationLanguage)==null?void 0:p.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:c.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
XNC=function(d){return new Promise(function(H,K){if(d===void 0)_.z5(Error("Fi"),"ERROR"),K(Error("Fi"));else{K=new _.WQD;var c=_.B6M();K=K.init();var p=_.z2X(_.Fm("YPC_MB_URL"),!0);Promise.all([K,p]).then(function(){var g=payments.business.integration.ClientTokenFactory.createClientToken(d,c);H(g)})}})};
FQL=function(d,H,K,c,p,g,a){var e=_.DA();K=K.replace(/-/g,"+").replace(/_/g,"/");var k=_.Lo().get("hl"),C=_.jn(_.Ac),R=H==null?void 0:H.element;R&&_.Qv(R);JzE(H,!0);_.s8h(C,K,e.resolve,function(){R&&_.tE(R)},function(V){R&&_.tE(R);
e.reject(V)},k,c?function(V){c&&_.Nc(d,c,{backend_analytics:V})}:void 0,e.resolve,p,g,a);
return e.promise};
JzE=function(d,H){!(d=d==null?void 0:d.element)||d.tagName!=="YT-BUTTON-RENDERER"&&d.tagName!=="YTD-BUTTON-RENDERER"||(d.disabled=H)};
ZwL=function(){var d=_.Vz("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.cW(d),actionButton:{buttonRenderer:Kxl()}}},popupType:"TOAST"}};
T6D=function(){var d=_.Vz("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.cW(d),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
Q81=function(d){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:d}]}}};
vK=function(d,H,K,c){var p;return _.l(function(g){if(g.nextAddress==1)return _.e2(g,2),g.yield(d,4);if(g.nextAddress!=2)return(p=_.PW(H.getState().entities).length>0)?g.return({title:_.cW(_.Vz("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.cW(_.Vz("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:$BC()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
g.return(cnY(K,c));_.RV(g);return g.return(cnY(K,c))})};
tii=function(d,H){return H?H==="PPSV"||aE5(d,H):!1};
Y6Y=function(d){d.responseContext||(d.responseContext={});d.responseContext.maxAgeSeconds=0;return d};
Hw=function(d){var H;return _.l(function(K){return K.nextAddress==1?K.yield(Owh(d,"service:topbar:fallback"),2):(H=K.yieldResult)&&_.d5(H)?K.return(Y6Y(_.d5(H))):K.return()})};
S6l=function(d){var H;return _.l(function(K){return K.nextAddress==1?K.yield(Owh(d,"service:downloads_settings:fallback"),2):(H=K.yieldResult)&&_.d5(H)?K.return(H):K.return()})};
Owh=function(d,H){var K;return _.l(function(c){if(c.nextAddress==1)return d?c.yield(d.get(H),2):c.return();K=c.yieldResult;return!K||!_.d5(K)||!isNaN(Number(K.data.expireTimestampMs))&&K.isExpired()?c.return():c.return(K)})};
EcX=function(d){var H=_.Kj().resolve($8).getState().entities;return d.playlistId?tii(H,d.playlistId):!1};
yzL=function(d,H){var K;if(H==null?0:(K=H.requestTemplate)==null?0:K.panelId)d.panelId=H.requestTemplate.panelId;var c;if(H==null?0:(c=H.requestTemplate)==null?0:c.params)d.params=H.requestTemplate.params};
N65=function(){if(bwE)return bwE();var d=!_.h("idb_response_store_auth_killswitch"),H={};bwE=HM("yt-it-response-store",{objectStores:(H.ResponseStore={addedAtVersion:1},H),shared:!d,upgrade:function(K,c){c(1)&&(K=t5(K,"ResponseStore",{keyPath:["key","clientName"]}),YG(K,"byExpiration","expireTimestampMs"),YG(K,"byInterface","clientName"))},
version:1});return bwE()};
DpL=function(d){return _.bT(N65(),d)};
Azi=function(d,H){var K;return _.l(function(c){return c.nextAddress==1?c.yield(_.dF(),2):(K=c.yieldResult)?c.return(new fuY(d,H,K)):c.return()})};
j8Y=function(d){var H=Object.keys(d)[0];if(H)return d.screenExit&&(H=H+";"+d.screenExit.screen),H};
vci=function(d){var H=new Map;d=_.q(d);for(var K=d.next();!K.done;K=d.next())K=K.value,K!=null&&(H.has(K.taskType)||H.set(K.taskType,[]),H.get(K.taskType).push(K));return H};
dXX=function(d){return!isNaN(d)&&d>0};
H3E=function(d){d=[].concat(_.ru(d)).sort(function(K,c){return K-c});
var H=Math.floor(d.length/2);return d.length%2?d[H]:(d[H-1]+d[H])/2};
ck4=function(d,H){d=d===void 0?lbi:d;H=H===void 0?{}:H;_.vb("yt.logging.errors.log",_.z5);qjM();$XD(C8L(),H);window.onerror=d;KNF=abi;window.addEventListener("unhandledrejection",function(K){if(K.reason instanceof Error){var c=K.reason;_.sD(c,{source:"unhandledrejection"});c.name==="AbortError"&&(c.level="WARNING")}abi(K.reason);K.preventDefault()})};
_.ppi=function(d){return d.a11y.ephemeralAction||null};
_.gIY=function(d){var H,K,c,p,g,a,e,k,C,R,V,U,L,w,W,J,F,Y,A,E,N,y,v,el,l1,V4,Mf,LF,YY,FM,gA,JN,eS,vF,CX,kd,BB,ug,fX,pF;return _.l(function(dA){if(dA.nextAddress==1)return dA.yield(_.hF(d,{mode:"readonly",enableRetries:!0},function(U3){return LH(U3,"playbackData").then(function(lg){var hN=lg.map(function(oC){return oC.transfer}).filter(function(oC){return!!oC}),Hv=lg.map(function(oC){return oC.offlineVideoPolicy}).filter(function(oC){return!!oC}),$s=lg.filter(function(oC){return!!oC.key}).map(function(oC){return _.kL(_.a6(oC.key).entityId,
"downloadStatusEntity")});
hN=LH(U3,"transfer",hN);Hv=LH(U3,"offlineVideoPolicy",Hv);$s=LH(U3,"downloadStatusEntity",$s);var dq=hN.then(function(oC){oC=oC.reduce(function(NU,RZ){(RZ==null?0:RZ.offlineVideoStreams)&&NU.push.apply(NU,_.ru(RZ.offlineVideoStreams));return NU},[]).filter(function(NU){return!!NU});
return LH(U3,"offlineVideoStreams",oC)});
return Qm.all([hN,Hv,dq,$s]).then(function(oC){var NU=_.q(oC);oC=NU.next().value;var RZ=NU.next().value;var uM=NU.next().value;NU=NU.next().value;return[lg,oC,RZ,uM,NU]})})}),2);
if(dA.nextAddress!=3)return H=dA.yieldResult,dA.yield(_.hF(d,{mode:"readonly",enableRetries:!0},function(U3){return LH(U3,"mainDownloadsListEntity").then(function(lg){var hN,Hv;return(Hv=(hN=lg[0])==null?void 0:hN.downloads)!=null?Hv:[]})}),3);
K=dA.yieldResult;c=_.q(H);p=c.next().value;g=c.next().value;a=c.next().value;e=c.next().value;k=c.next().value;C=p;R=g;V=a;U=e;L=k;w={};W={};J={};F={};Y={};A=[];E=_.q(R);for(N=E.next();!N.done;N=E.next())(y=N.value)&&(w[y.key]=y);v=_.q(V);for(el=v.next();!el.done;el=v.next())(l1=el.value)&&(W[l1.key]=l1);V4=_.q(L);for(Mf=V4.next();!Mf.done;Mf=V4.next())(LF=Mf.value)&&(J[LF.key]=LF);YY=_.q(U);for(FM=YY.next();!FM.done;FM=YY.next())(gA=FM.value)&&(F[gA.key]=gA);JN=_.q(K);for(eS=JN.next();!eS.done;eS=
JN.next())vF=eS.value,CX=void 0,Y[(CX=vF.videoItem)!=null?CX:""]=!0,vF.videoItem&&(BB=kd=void 0,ug=(BB=(kd=_.a6(vF.videoItem))==null?void 0:kd.entityId)!=null?BB:"",A.push({externalVideoId:ug}));fX=C.filter(function(U3){if(!U3||!U3.key||!U3.offlineVideoPolicy)return!1;U3=_.a6(U3.key).entityId;U3=_.kL(U3,"downloadStatusEntity");var lg;return!(U3&&((lg=J[U3])==null?void 0:lg.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
pF=fX.map(function(U3){var lg=w[U3.transfer],hN=[];if(lg==null?0:lg.offlineVideoStreams)for(var Hv=_.q(lg.offlineVideoStreams),$s=Hv.next();!$s.done;$s=Hv.next())($s=F[$s.value])&&hN.push($s);Hv=W[U3.offlineVideoPolicy];$s=Y;var dq=U3==null?void 0:U3.playerResponseTimestamp,oC=_.a6(Hv.key).entityId;U3=_.kL(oC,"mainVideoEntity");if(Hv.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var NU="OFFLINE_VIDEO_STATE_DISABLED";Hv.expirationTimestamp&&Number(Hv.expirationTimestamp)<Date.now()/1E3&&(NU="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Hv.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")NU="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(lg==null?void 0:lg.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":NU="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":NU="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":NU="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":NU="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":NU="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":NU="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:NU="OFFLINE_VIDEO_STATE_UNKNOWN"}if(NU==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(lg==null?void 0:lg.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":NU="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":NU="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":NU=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}oC={id:oC,videoState:NU};if(lg==null?0:lg.cotn)oC.cotn=lg.cotn;if(lg==null?0:lg.maximumDownloadQuality)oC.selectedVideoQuality=lg==null?void 0:lg.maximumDownloadQuality;if(lg==null?0:lg.lastProgressTimeMs)oC.lastProgressTimeMs=lg.lastProgressTimeMs;dq&&(oC.playerResponseSavedTimeMs=String(Number(dq)*1E3));lg=String;dq=0;hN=_.q(hN);for(NU=hN.next();!NU.done;NU=hN.next())if(NU=NU.value,NU.streamsProgress){NU=_.q(NU.streamsProgress);for(var RZ=NU.next();!RZ.done;RZ=
NU.next()){var uM=void 0;dq+=Number((uM=RZ.value.numBytesDownloaded)!=null?uM:0)}}oC.downloadedBytes=lg(dq);oC.selectedOfflineMode=$s[U3]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Hv.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(oC.offlinePlaybackDisabledReason=Hv.offlinePlaybackDisabledReason);return oC});
return dA.return({offlineVideos:pF,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:A}}})})};
i3F=function(){var d;return _.l(function(H){return H.nextAddress==1?H.yield(_.R6(),2):(d=H.yieldResult)?H.return(_.gIY(d)):H.return({state:"PES Unavailable"})})};
qPf=function(){var d,H,K,c;return _.l(function(p){if(p.nextAddress==1)return p.yield(_.R6(),2);if(p.nextAddress!=3)return(d=p.yieldResult)?p.yield(GuF(d),3):p.return({state:"PES Unavailable"});H=p.yieldResult;K={};c=H.reduce(function(g,a){g[a.key]=a;return g},K);
return p.return(oI1(c))})};
oI1=function(d){for(var H={},K=[],c=_.q(Object.keys(d)),p=c.next();!p.done;p=c.next()){var g=p.value;p=d[g];var a=void 0;if(((a=p)==null?void 0:a.entityType)==="mainVideoEntity"){delete d[g];var e=p.data;p={};if(e){var k=void 0;a=(k=e.videoId)!=null?k:"vid-"+g;g=d;p.video=e;delete p.video.formattedDescription;delete p.video.thumbnail;e.owner&&(k=g[e.owner],k==null?0:k.data)&&(delete g[k.key],p.video.owner=k.data,delete p.video.owner.avatar);if(e=e.downloadState)if(k=g[e],k==null?0:k.data)if(delete g[e],
e=k.data.playbackData)if(k=g[e],k!=null&&k.data){delete g[e];e=k.data;delete e.playerResponseJson;p.playbackData=e;if(e.transfer&&(k=g[e.transfer],k==null?0:k.data)){delete g[k.key];var C=k.data;p.transfer=C;k=[];C=_.q(C.offlineVideoStreams||[]);for(var R=C.next();!R.done;R=C.next())if(R=g[R.value])delete g[R.key],k.push(R.data);k&&(p.streams=k)}(e=e.offlineVideoPolicy)&&(e=g[e])&&e.data&&(delete g[e.key],p.offlineVideoPolicy=e.data)}H[a]=p}}else p&&p.entityType==="offlineOrchestrationActionWrapperEntity"&&
p.data&&(delete d[p.key],a=p.data,g=void 0,K.push({id:a.rootActionId,type:((g=a.actionProto)==null?void 0:g.actionType)||"",entity:p}))}H.wrapperEntities=K;Object.keys(d).length>0&&(H.unknownKeys=d);return H};
aol=function(){var d,H,K,c,p,g,a,e,k;return _.l(function(C){if(C.nextAddress==1)return d=!!(new _.T1("")).expiringStorage_,c=!!((H=_.KF.crypto)==null?0:(K=H.subtle)==null?0:K.importKey),p=!!_.KF.BroadcastChannel,g=!!_.KF.navigator.locks,C.yield(ScF(),2);a=C.yieldResult;e=d&&c&&p&&g&&a;k={isSupported:e};if(e)return C.return(k);k.missingBrowserFeatures=[];a||k.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");d||k.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
c||k.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");p||k.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");g||k.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return C.return(k)})};
lo4=function(){var d;return!((d=Ky?Ky:null)==null||!d.window)};
_.ku1=function(d){if(_.IE()&&_.kLE("Chromium")>=120){var H=_.ex1().mediaSession;try{H.setActionHandler("enterpictureinpicture",function(){d()})}catch(K){}}};
xXE=function(d){for(var H=[],K=_.q(document.styleSheets),c=K.next(),p={};!c.done;p={node$jscomp$727:void 0},c=K.next())p.node$jscomp$727=c.value.ownerNode,p.node$jscomp$727&&(p.node$jscomp$727 instanceof HTMLStyleElement||p.node$jscomp$727 instanceof HTMLLinkElement)&&H.push(new Promise(function(g){return function(a){var e=g.node$jscomp$727.cloneNode(!0);e.onload=function(){a()};
e.onerror=function(){_.Jf(Error("hj"));a()};
d.document.head.appendChild(e)}}(p)));
return Promise.all(H)};
wpD=function(d){var H=[_.KB(nIl),_.KB(CyF),_.KB(Rx4)];Vzi(window.document.documentElement,d.document.documentElement,[_.KB(UXF),_.KB(hx5),_.KB(LNE),_.KB(MzC),_.KB(mXL)]);Vzi(window.document.body,d.document.body,H)};
Vzi=function(d,H,K){d=_.q(d.attributes);for(var c=d.next();!c.done;c=d.next())if(c=c.value)try{_.jE(K,H,c.name,c.value)}catch(p){}};
uJh=function(d,H){d=new _.cw(d.document.documentElement);d.start(PyE,H);return d};
IoL=function(d){var H=d.document.documentElement;H.addEventListener("click",function(K){P2F(H,K)});
H.addEventListener("touchstart",function(K){BRf(K)});
H.addEventListener("mousedown",function(K){BRf(K)})};
WNl=function(d,H,K,c){c=c===void 0?!1:c;H=new rk4(H||d,K||d);return{x:d.x+((c===void 0?0:c)?H.lengthX*-1:H.lengthX)*.2,y:d.y+((c===void 0?0:c)?H.lengthY*-1:H.lengthY)*.2}};
BHM=function(d){if(!d)return!1;var H=d.status==="OK"||d.status==="LIVE_STREAM_OFFLINE",K,c,p,g=(p=(K=d.errorScreen)==null?void 0:K.playerLegacyDesktopYpcTrailerRenderer)!=null?p:(c=d.errorScreen)==null?void 0:c.ypcTrailerRenderer;return!!H||!!g};
_.zxi=function(d,H){if(!d)return!1;var K,c=(K=d.errorScreen)==null?void 0:K.playerLegacyDesktopYpcOfferRenderer,p;H=!!(H==null?0:(p=H.playerOverlayRenderer)==null?0:p.gatedActionsOverlayRenderer);return!!BHM(d)||!!c||!!H};
s9E=function(d){return XpM(d,0,"gclid",d.search(JkE))>=0||XpM(d,0,"gad_source",d.search(JkE))>=0};
FN1=function(d){var H=[],K=0;return{clear:function(){K=H.length=0},
push:function(c){H[K]=c;K=(K+1)%d},
iterate:function(){return function p(){var g,a,e,k;return _.py(p,function(C){switch(C.nextAddress){case 1:_.nz(C,2),g=H.length,a=0;case 4:if(!(a<g)){C.jumpTo(2);break}e=K+a;k=_.g5;return C.yield(H[e%g],7);case 7:k(C.yieldResult);a++;C.jumpTo(4);break;case 2:_.xs(C),_.Cz(C,0)}})}()}}};
Z3C=function(d){d.eventsToIgnore||(d.eventsToIgnore=[]);var H=d.eventsToIgnore.map(sNF),K=new Set(H),c=FN1(d.bufferSize);return{flush:function(){var p=Array.from(c.iterate());c.clear();p=p.map(function(g){return{name:g.name,timestamp:g.startTime,attributes:g.attributes}});
return JSON.stringify(p)},
onSpanStart:function(p){p.name==="event"&&K.has(p.attributes.type)||c.push(p)}}};
THD=function(d){d=Z3C(d);var H=d.flush;t0i({onSpanStart:d.onSpanStart});LRY.subscribe("handleError",function(K){try{K.params.breadcrumbs=H()}catch(c){_.z5(c,"WARNING")}})};
Q9L=function(){JO("web_tracing_action");_.sa("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
tzF=function(d,H,K){var c=d.endTime;if(c==null)throw Error("jj");var p=d.name,g={};c-=d.startTime;var a=d.startTime;g={webTracing:(g[p]=d.attributes,g)};K=_.Y2(KmD)(p,c,a,g,K,H);if(d.children)for(d=_.q(d.children),p=d.next();!p.done;p=d.next())tzF(p.value,H,K)};
YPX=function(d){var H=EZ4.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(K){K.data&&typeof K.data==="object"&&(K=K.data,K.from==="extension"&&K.app==="yt.telemetry"&&(H("Received message from extension",K),d.onMessage(K)))});
return function(K,c){K={app:"yt.telemetry",from:"app",key:K,payload:c};H("Sending message to extension",K);window.postMessage(K,"*")}};
O3X=function(){var d=d===void 0?3E3:d;var H=YPX({onMessage:function(){}}),K=[];
return{onSpanEnd:function(c){K.push(c)===1&&setTimeout(function(){var p=K.map(Yhf);K.length=0;H("spansReported",{spans:p})},d)}}};
ykh=function(){for(var d=V4f.value,H={},K=_.q(d.enabledSpansArray),c=K.next();!c.done;c=K.next())H[c.value]=!0;if(d.exportToCsi||d.exportBreadcrumbs)d0={sessionId:MqX()||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:H};d.exportBreadcrumbs&&THD({eventsToIgnore:SPX,bufferSize:d.bufferSize});d.exportToCsi&&t0i(EI5);d.exportToDevTools&&t0i(O3X())};
b3X=function(d){return new Promise(function(H){window.setTimeout(H,d)})};
NHE=function(d){var H={bicf:function(g){d.bv7=g},
blc:function(){return d.getLatestChallengeResponse()},
bcr:function(g){d.oQf.push(g)}},K=window;
K.ntpevasrs=H;if(K.ntpqfbel!==void 0)for(var c=_.q(K.ntpqfbel),p=c.next();!p.done;p=c.next())p=p.value,p(H);K.ntpqfbel=void 0};
DXY=function(d){return _.l(function(H){if(H.nextAddress==1)return _.e2(H,2),H.yield(d.vA7(),4);if(H.nextAddress!=2)return _.Em(H,0);_.RV(H);_.VE(H)})};
foC=function(d){var H,K;(H=d.ytcsi)==null||(K=H.tick)==null||K.call(H,"pot_ist")};
AkX=function(d){if(d instanceof Error){var H=_.OS("yt.logging.errors.log");H&&H(d,"WARNING")}};
j9E=function(d){try{var H=JSON.parse(d);if(H.bgChallenge)return H}catch(K){}};
du1=function(){var d=window,H={networkStatusManagerPromise:_.Kj().resolve(new uwX(_.yQ)),initialChallengeSli:_.h("wpo_att_sli")?new _.ObD("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};d=d===void 0?window:d;var K=d.ytAtR,c;H==null||(c=H.initialChallengeSli)==null||_.iE(c);if(K){if(K=j9E(K)){var p;H==null||(p=H.initialChallengeSli)==null||_.GH(p,"SUCCESS");vIL(K,H)}d.ytAtR=void 0}else d.ytAtRC=function(g){if(g=j9E(g)){var a;H==null||(a=H.initialChallengeSli)==null||
_.GH(a,"SUCCESS");vIL(g,H);d.ytAtRC=void 0}}};
KdY=function(){if(HZM)return HZM;try{var d=_.x1("IFRAME");_.OH(d,_.pB($uM));d.sandbox.add("allow-same-origin");d.style.display="none";document.body.appendChild(d);return HZM=d}catch(H){d=new _.m1("Failed to create sandbox iframe"),_.z5(d)}};
c0L=function(d){var H,K;return(K=d==null?void 0:(H=d.contentWindow)==null?void 0:H.fetch)!=null?K:window.fetch};
pRF=function(d){var H,K;return(K=d==null?void 0:(H=d.contentWindow)==null?void 0:H.JSON.parse)!=null?K:JSON.parse};
gbl=function(d){var H,K;return(K=d==null?void 0:(H=d.contentWindow)==null?void 0:H.Request)!=null?K:window.Request};
iZ1=function(d){var H,K;return(K=d==null?void 0:(H=d.contentWindow)==null?void 0:H.TextDecoder)!=null?K:window.TextDecoder};
GdF=function(){return function(d,H){_.Fm("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[d]=H}};
ob1=function(){return function(d,H){var K={};K[d]=H;d=_.Y2(_.HNF)(K);Object.keys(d).length>0&&_.Xw(d)}};
lWF=function(){if(sql()==="hidden")var d="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else sql()==="visible"&&(d="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",qpE=null);d&&aWh(d)};
aWh=function(d){if(d==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||d==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(e0E===d)return;e0E=d}var H=9E4+Math.random()*2E3;if(d!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.cd()>H)&&sql()==="visible"){H=-1;qpE&&(H=Math.round((0,_.$G)()-qpE));var K=String;var c=_.OS("_fact",window);c=c==null||c==-1?-1:Math.max(Date.now()-c,0);_.Wd("foregroundHeartbeat",{firstActivityMs:K(c),clientDocumentNonce:mY5,index:String(kdl),lastEventDeltaMs:String(H),trigger:d});
_.vb("_fact",-1,window);kdl++;qpE=(0,_.$G)()}};
_.xuf=function(){try{return!!self.sessionStorage}catch(d){return!1}};
nb1=function(){var d=navigator;return new Promise(function(H,K){var c;(c=d.webkitTemporaryStorage)!=null&&c.queryUsageAndQuota?d.webkitTemporaryStorage.queryUsageAndQuota(function(p,g){H({usage:p,quota:g})},function(p){K(p)}):K(Error("sj"))})};
Cal=function(d,H){var K={errorSeverity:H.errorSeverity.toString(),wizFeatureFlags:Object.entries(H.featureFlags).join("\n")};o65(H,K);H=H.errorSeverity;H===3?_.z5(d,"ERROR",void 0,void 0,void 0,K):H===2&&_.z5(d,"WARNING",void 0,void 0,void 0,K);_.h("cow_if_errors_in_popup")&&H===3&&d.message.indexOf("<If>")!==-1&&window.alert(d.message)};
R0f=function(d,H){var K=vy.get(d)||{layerNode:H};K.layerNode=H;TiY(d,K);d.getScreenLayer=function(){return oo(K.layerNode)}};
VpE=function(d){var H;d=d.parentNode;for(var K;d&&((H=vy.get(d))==null||!H.isRenderer)&&!((K=d.polymerController)!=null?K:d).isRenderer_;)d=d.parentNode||d.host;if(H=d)return vy.get(H)};
UuM=function(d){if(d){vy.delete(d);var H=_.Kj().resolve(K5);y6F(d,H)}};
Ld1=function(d,H,K){if(K===void 0?0:K){if(K=d.getAttribute("client-ve-type"),H.data&&!H.disableReactiveLogging||K)_.rc(function(){h0F(d,_.IH(H.data))}),_.Pk(function(){return void UuM(d)})}else typeof H.data!=="function"&&h0F(d,H.data)};
h0F=function(d,H){MpE++;muE(d,H)&&_.Xp.addJob(function(){_.mR(_.Xp,function(){if(muE(d,H)&&d.ownerDocument.documentElement===document.documentElement&&d){var K;if(d.getAttribute("layer")){var c=K=Number(d.getAttribute("layer")),p=vy.get(d);p?p.layerNode.layer=c:R0f(d,new wRX(c));(c=VpE(d))&&(p=vy.get(d))!=null&&(p.layerNode.parent=c.layerNode)}else if(K=vy.get(d))K=oo(K.layerNode);else{K=oo;c=new wRX;if(p=VpE(d))c.parent=p.layerNode;R0f(d,c);K=K(c)}K!=null||(K=0);c=d.getAttribute("client-ve-type");
p=Number(c);var g=!1;c=!1;var a=vy.get(d),e;if((e=a)&&!(e=a[Pa1]!==H)&&(e=p)){var k;e=((k=vy.get(d))==null?void 0:k.clientVeType)===void 0}e&&(a[Pa1]=H,g=c=a.isRenderer=!0);vy.has(d)&&(vy.get(d).clientVeType=p);d.visualElement&&(c=!0);if(_.h("wiz_next_ld_fix_client_ve_spec")){var C;k=((C=_.M(H==null?void 0:H.rendererContext,_.LM))==null?void 0:C.loggingDirectives)||(H==null?void 0:H.loggingDirectives)}else k=H==null?void 0:H.loggingDirectives;k&&k.clientVeSpec&&(C=u6i(_.Vp(),d),C=_.IWD(_.hR(),k,C||
void 0,K))&&(d.visualElement=C);!d.visualElement&&p&&g&&(d.veType=p,C=void 0,_.h("wiz_next_client_ve_parent_fix")&&(C=u6i(_.Vp(),d)),C=_.UG(_.hR(),d,C,K),d.visualElement=C);c&&(C=_.Kj().resolve(K5),fm1(d,{data:H,observer:C,layer:K,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
muE=function(d,H){return(H==null?0:H.trackingParams)||(H==null?0:H.loggingDirectives)||_.M(H==null?void 0:H.rendererContext,_.LM)||d.getAttribute("client-ve-type")?!0:!1};
r0Y=function(d,H,K){d.componentType!==ht&&K instanceof HTMLElement&&H&&!_.h("cow_logging_in_component_wrapper")&&Ld1(K,H,!0)};
J0E=function(){if(!WdC){WdC=!0;var d=Object.assign({},{flushRenderEffectsDuringRender:!0},{handleError:Cal,enableComponentStacksInErrorMessages:!1});Object.assign(jX,d);PG1=BW4;z0f();BrM=kcM;IcC=x25;_.h("ytwiz_enable_debug_component_props")&&(d=document.body.firstElementChild,window.ng||d.__ngContext__||(d.__ngContext__={},d.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=XRi))}};
z0f=function(){_.h("cow_logging_in_component_wrapper")?(mx4=function(d,H){H instanceof HTMLElement&&Ld1(H,d,!0)},xC1=function(){}):(mx4=function(){},xC1=r0Y)};
sQX=function(d,H,K){H=H===void 0?{}:H;var c,p=(c=_.M(d.commandMetadata,_.Co))==null?void 0:c.url;c=H.form||{};!K||c.element||c.skipDefaultElement||(H.form=H.form||{},H.form.element=K);if(p&&p!=="/service_ajax")return{type:0,command:d,form:H.form};if(_.h("kevlar_service_command_check")){if(_.bV(_.Kj().resolve(_.Z8),d))return Object.assign({},{type:1,command:d},H)}else{var g;if((g=_.M(d.commandMetadata,_.Co))==null?0:g.apiUrl)return Object.assign({},{type:1,command:d},H)}return{type:2,command:d,form:H.form}};
FdF=function(d){if(d.form){var H=d.form,K=Object.assign({},H);H=H.element;K=(delete K.element,K);if(H)return[_.aF(H,[d.command,K,d.commandController])]}return[]};
ZZh=function(d){if(d.form){var H=d.form,K=Object.assign({},H);H=H.element;K=(delete K.element,K);H&&_.l5(H,[d.command],H,K)}};
QQC=function(d,H,K){var c=new TWY(d,H),p=new qO(d,H,K);d={"/youtubei/v1/browse":new lE(d,H,K),"/youtubei/v1/player":c,"/youtubei/v1/navigation/resolve_url":new ef,"/youtubei/v1/next":p,"/youtubei/v1/guide":new k8(K),"/youtubei/v1/search":new x8(d,H,K),"/youtubei/v1/reel/reel_item_watch":new ny(d,H,K),"/youtubei/v1/get_watch":new Cy(c,p)};d["/youtubei/v1/account/account_menu"]=new Ro;d["/youtubei/v1/notification/get_notification_menu"]=new V$;return d};
ha=function(){var d=_.Kj().resolve(Ui);return Promise.resolve(tpL(d,_.KF.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
Yp5=function(d){return d&&(d=_.Ly(_.h$i(d)))?(new URLSearchParams(d)).get("service"):null};
Io=function(d,H){_.lV(_.MO(),function(){_.Fw("adl")});
_.Kj().resolve(OZ4)(H);d=d.root;d.loadData&&d.loadData(H);(H==null?0:H.response)?_.GH(y4Y(),"SUCCESS"):_.Jf(new _.m1("Lifecycle: No response in data",_.Qx("IS_SHELL_LOAD"),H?H.page:"NO_PAGE",H?H.endpoint:"NO_ENDPOINT"));d.polymerController.$["page-manager"].lazyPrepareCriticalPages((H==null?void 0:H.page)||"",H.endpoint);var K,c;((c=_.M(H==null?void 0:(K=H.endpoint)==null?void 0:K.commandMetadata,_.Co))==null?0:c.webPageType)&&_.dn().dispatch(_.mp(_.M(H.endpoint.commandMetadata,_.Co).webPageType))};
Sp4=function(){var d,H;return _.l(function(K){switch(K.nextAddress){case 1:d=window;if(!d.getDataPromise){K.jumpTo(2);break}_.e2(K,3);return K.yield(d.getDataPromise(),5);case 5:return K.return(K.yieldResult);case 3:return _.RV(K),K.yield(ha(),6);case 6:return K.return(K.yieldResult);case 2:if(d.getInitialData)return H=d.getInitialData(),d.getInitialData=void 0,K.return(H);throw Error("uj`"+_.KF.location.href);}})};
y0M=function(){_.sS("CSI_SERVICE_NAME","youtube");_.Xw({loadType:"cold"});_.h("kevlar_log_lcp")&&EbY(function(d){_.Fw("lcp",d.value)})};
bZ5=function(){var d=_.ZB(document.location.href,"enable");d&&d.indexOf("scraper")>-1&&_.sS("ADD_SCRAPER_ATTRIBUTES",!0)};
jQL=function(d){var H=d.root;d=[NWM,DuM,_.r5];_.h("web_feedback_endpoint_autolog_allowlist_killswitch")&&d.push(_.Ww,fWX);A04(function(K,c){return sQX(K,c,H)},function(K){if(!K.command)return[];
var c;((c=K.form)==null?0:c.element)?K.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},K.form,{endpoint:K.command})})):H.handleNavigate(K);return[]},d);
_.Kj().addProvider({provide:_.cb,useValue:_.nM.instance})};
dmM=function(){var d={},H={},K;for(K in vbC){var c=_.q(_.GO(vbC[K],void 0,"IAtZ7"));d[K]=c.next().value;H[K]=c.next().value}return[d,function(p){for(var g in p){var a=void 0;(a=H[g])==null||a(p[g])}}]};
_.Bw=function(d,H,K){H=H===void 0?!1:H;var c=_.rs.getValueByKeys(d,"contents","twoColumnWatchNextResults","results","results","contents"),p=_.rs.getValueByKeys(d,"contents","twoColumnWatchNextResults","playlist","playlist")||null;H&&(p=null);var g=H=null;if(p)H=_.rs.getValueByKeys(p,"titleText"),g=_.rs.unsafeClone(_.rs.getValueByKeys(p,"longBylineText")),c="",g&&(c=_.jG(g)),g=_.AF(c);else if(c){c=_.q(c);for(var a=c.next();!a.done;a=c.next())a=a.value,a.videoPrimaryInfoRenderer&&(H=_.rs.getValueByKeys.apply(_.rs,
[a].concat(_.ru(HpC)))),a.videoSecondaryInfoRenderer&&(g=_.rs.getValueByKeys.apply(_.rs,[a].concat(_.ru($mD))))}else _.SD(Error("zj"));var e;d.currentVideoEndpoint?e=d.currentVideoEndpoint:_.SD(Error("Aj"));var k;K&&(k=_.rs.getValueByKeys(K,"playabilityStatus","miniplayer","miniplayerRenderer"));d={miniplayerTitle:H,miniplayerSubtitle:g,watchEndpoint:e,playlistData:p};k&&(d.miniplayerRenderer=k);return d};
KFh=function(d){if(d)return _.JR(d)};
_.cMD=function(){return{isFullscreen:function(){throw Error("Bj");},
toggleFullscreen:function(){throw Error("Cj");},
exitFullscreen:function(){throw Error("Dj");},
isAutonavEnabled:function(){throw Error("Ej");},
setAutonavEnabled:function(){throw Error("Fj");},
isAutoplaySetExplicitly:function(){throw Error("Gj");}}};
pL4=function(d){return d.videoDuration?d.numTaps>1&&d.tapDirection!==0?_.zH(d.draggedTime/d.videoDuration,0,1):_.zH((d.playedTime||0)/d.videoDuration,0,1):0};
gNh=function(d){return d.videoDuration?d.isDragging||d.numTaps>1&&d.tapDirection!==0?_.zH(d.draggedTime/d.videoDuration,0,1):_.zH((d.playedTime||0)/d.videoDuration,0,1):0};
GWL=function(d){var H,K,c;return _.M(d==null?void 0:(H=d.markersMap)==null?void 0:(K=H.find(function(p){return p.key==="HEATSEEKER"}))==null?void 0:(c=K.value)==null?void 0:c.heatmap,iph)};
oNf=function(d){var H,K;return(K=(H=GWL(d))==null?void 0:H.heatMarkersDecorations)!=null?K:[]};
q2E=function(d){if(_.h("mweb_supported_chapters_killswitch"))return!0;var H;return!!(d==null?0:(H=d.markersMap)==null?0:H.find(function(K){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(K.key)}))};
_.aJ5=function(d){var H=Object,K=H.assign,c;d={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(c=d==null?void 0:d.getPlayerState())!=null?c:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return K.call(H,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},d,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
lJY=function(d){return function(H){var K=d(),c,p=(c=K.playerApi)==null?void 0:c.getPlayerState();H&&H!==K.playerState&&(H===1||H===2)&&K.setState({playerState:p})}};
kWD=function(d){return function(H){var K=d(),c=K.playerApi;c&&(H==null?void 0:H.type)==="newdata"&&(evF&&(clearTimeout(evF),evF=void 0),_.h("web_shorts_use_progress_state_for_gapless")?(H=c==null?void 0:c.getProgressState(H==null?void 0:H.playertype),H=H.seekableEnd-H.seekableStart):H=c==null?void 0:c.getDuration(H==null?void 0:H.playertype),K.setState({playedTime:0,videoDuration:H}))}};
xmY=function(d){return function(H){var K=d(),c=K.playerApi;if(c){var p=c.getPresentingPlayerType();_.h("web_shorts_use_progress_state_for_gapless")?(c=c.getProgressState(p),c=c.seekableEnd-c.seekableStart):c=c.getDuration(p);K.setState({playedTime:H,videoDuration:c})}}};
CbF=function(d){_.wE(112394,d,function(){return nNY},function(H){nNY=H})};
Um1=function(d,H){if(!d)return[];var K,c,p;d=((K=d.markersMap)==null?void 0:(c=K.find(function(g){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(g.key)}))==null?void 0:(p=c.value)==null?void 0:p.chapters)||[];
!RvF(d)||(H==null?0:H.ignoreStub)||(d=[VZC()].concat(_.ru(d)));return d};
VZC=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
RvF=function(d){if(d.length===0)return!1;var H;return((H=_.M(d[0],Xb))==null?void 0:H.timeRangeStartMillis)!==0};
Ja=function(d){return d?d.timeRangeStartMillis||0:0};
LFf=function(d,H){if(d.isDragging&&H)return d=hvh(d,H),d===-1?VZC():Um1(H)[d]};
hvh=function(d,H){return d.isDragging&&H?Um1(H,{ignoreStub:!0}).findIndex(function(K,c,p){K=MZD(d);return mml(K,p,c).scrubberHovering}):-1};
MZD=function(d){return Object.assign({},d,{videoDuration:d.videoDuration*1E3,playedTime:d.playedTime*1E3,draggedTime:d.draggedTime*1E3})};
mml=function(d,H,K){var c=Ja(_.M(H[K],Xb));H=Ja(_.M(H[K+1],Xb))||d.videoDuration;K=d.isDragging;var p;if(p=d.isDragging)p=d.draggedTime,p=p!==null&&p>=c&&p<H;var g=d.playedTime;return g!==null&&g>=c&&g<H?{videoPosition:"active",isScrubbing:K,scrubberHovering:p}:d.playedTime<c?{videoPosition:"pending",isScrubbing:K,scrubberHovering:p}:{videoPosition:"seen",isScrubbing:K,scrubberHovering:p}};
wLl=function(d,H){return d.videoPosition==="seen"||(H===void 0?0:H)>0};
Pbl=function(d,H,K){H=d/H.storyboardInterval;var c=Um1(K);if(!c.length)return-H*72;K=0;c=_.q(c);for(var p=c.next();!p.done;p=c.next())if(Ja(_.M(p.value,Xb))/1E3<d)K++;else break;return-(H*72)-K*56};
u_F=function(d){return d?d.width/d.columns:0};
IJl=function(d){return d.isHovering?d.hoveredTime:d.draggedTime};
rMD=function(d,H){d=d.draggedTime*1E3;return d>=H.visibleTimeRangeStartMillis&&d<=H.visibleTimeRangeEndMillis};
_.WFi=function(d){if(d===void 0||Number.isNaN(d))return"--:--";var H=Math.abs(Math.floor(d)),K=Math.floor(H/86400),c=Math.floor(H%86400/3600),p=Math.floor(H%3600/60);H=Math.floor(H%60);var g="";K>0&&(g+=K+":",c<10&&(g+="0"));if(K>0||c>0)g+=c+":",p<10&&(g+="0");g+=p+":";H<10&&(g+="0");g+=H;return d>=0?g:"-"+g};
Bei=function(d,H){return function(){var K=IJl(d());var c=H();var p=d().playerApi;if(p&&p.getNumberOfStoryboardLevels()!==0){var g=p.getStoryboardFrameIndex(K,1);g!==-1?c=p.getStoryboardFrame(g,1):(K=p.getStoryboardFrameIndex(K,0),p=p.getStoryboardFrame(K,0),c&&p&&(p.height*=3,p.width*=3),c=p)}else c=null;if(!c)return null;H()&&(c.width=90*c.columns,c.height=160*c.rows);return c}};
_.si=function(d){if(!d||d.getVideoData)return d};
zvY=function(){var d;return{playerApi:(d=_.k6())!=null?d:void 0}};
XLi=function(d){var H;_.l(function(K){if(K.nextAddress==1)return K.yield(_.eA(),2);if(H=K.yieldResult)H.unMute(!0),H.setVolume(d,!0);_.VE(K)})};
JMY=function(d,H){d&&(d.value=""+H,d.style.setProperty("--gradient-percent",H+"%"))};
slY=function(d){var H;return(H=d==null?void 0:d.value)!=null?H:0};
FFf=function(){var d;_.l(function(H){if(H.nextAddress==1)return H.yield(_.eA(),2);d=H.yieldResult;if(!d)return H.return();d.isMuted()?d.unMute(!0):d.mute(!0);_.VE(H)})};
ZpF=function(d){var H=_.Kj().resolve(_.Fb).getPlayerElement();H&&d&&(d===1?H.pause():H.play())};
TeL=function(d){_.qo(d,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
Ql5=function(d){_.qo(d,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
Y2i=function(d){return _.uU(d.document.body,function(){return _.x(tZX,null)})};
Opf=function(){var d=window.performance.getEntriesByType("navigation");return d?d.map(function(H){return H.type}).includes("reload"):!1};
AM1=function(){Zd(Zd(Zd(Zd(Zd(Zd(Zd(_.Kj().resolve(_.TH),_.S2L),_.EN1),_.yMi),_.bpX),_.NeY),_.DmE),_.fJl)};
jlF=function(d,H){H=H===void 0?!1:H;var K,c,p,g;return _.l(function(a){if(a.nextAddress==1)return H||!_.h("kevlar_shorts_seedless_retry_initial_load")||(K=window,c=!(!K.getDataPromise&&!K.getInitialData),c)?a.yield(Sp4(),2):(setTimeout(jlF.bind(window,d,!0),1E3),a.return());if(a.nextAddress!=3)return p=a.yieldResult,a.yield(vNF(p),3);g=a.yieldResult;Io(d,g);_.VE(a)})};
vNF=function(d){var H;if((H=d.response)==null||!H.replacementEndpoint)return _.e5(d);H=_.Kj().resolve(Ui);d=d.response;_.M(d.replacementEndpoint,_.P5)&&d.sequenceContinuation&&(_.M(d.replacementEndpoint,_.P5).sequenceParams=d.sequenceContinuation);return Q$(H,d.replacementEndpoint,{},_.KF.location.href,"shorts",function(){},function(){return!1})};
H$M=function(d){var H=_.Kj().resolve(dyf);d.playerResponse&&H.handleResponse(d.playerResponse);d.response&&H.handleResponse(d.response)};
$yi=function(d){var H=_.dn(),K,c=_.M((K=d.response)==null?void 0:K.frameworkUpdates,Au),p;K=_.M((p=d.playerResponse)==null?void 0:p.frameworkUpdates,Au);var g;d=_.M((g=d.reelWatchSequenceResponse)==null?void 0:g.frameworkUpdates,Au);c&&_.Uc(c,H);K&&_.Uc(K,H);d&&_.Uc(d,H)};
K4C=function(d){var H;_.h("enable_redirect_linking_for_desktop_web_client")&&((H=window.location.hash)==null?0:H.includes("redirect_state"))&&d.url&&(d.url=d.url.toString()+window.location.hash)};
gTE=function(d){var H=_.Kj(),K=H.resolve(Ui);H=H.resolve(_.cxX);d.endpoint&&(K=pP4(K,d.endpoint),K.content&&d.response&&_.ta(H,d.response,K.content),K.player&&d.playerResponse&&_.ta(H,d.playerResponse,K.player),K.reelSequence&&d.reelWatchSequenceResponse&&_.ta(H,d.reelWatchSequenceResponse,K.reelSequence))};
Y8=function(d,H){_.h("web_service_params_response_processor")&&H$M(H);$yi(H);var K;(H==null?0:H.url)&&((K=window.location.hash)==null?0:K.includes("redirect_state"))&&(K4C(H),(K=Yp5(H.url))&&_.oF(d.root,"yt-initialize-third-party",[K,H]));gTE(H);K=_.Kj();var c=K.resolve(i$i);H.playerResponse&&K.resolve(GqX).handleResponse(H.playerResponse);if(H.playerResponse){K=void 0;if(_.h("ab_v_vid_sig")&&H.endpoint){var p,g=(p=_.M(H.endpoint,_.AP))!=null?p:_.M(H.endpoint,_.P5);g&&(K=g.videoId)}oT4(c,H.playerResponse,
K)}H.playerResponse&&oxM(H.playerResponse)&&_.h("web_enable_ab_rsp_cl")?Wy4().then(function(){q1l(c,H.playerResponse);Io(d,H)}):Io(d,H)};
lPE=function(d){if(d=d.root.data){var H=_.Kj().resolve(aPC);d.endpoint&&(d.response&&H.handleResponse(d.response,void 0,document.querySelector("ytd-app")),d.playerResponse&&H.handleResponse(d.playerResponse),d.reelWatchSequenceResponse&&H.handleResponse(d.reelWatchSequenceResponse))}};
eNF=function(d){var H,K,c,p,g,a;return _.l(function(e){switch(e.nextAddress){case 1:H=window;if(!H.getDataPromise){e.jumpTo(2);break}_.e2(e,3);return e.yield(H.getDataPromise(),5);case 5:K=e.yieldResult;Y8(d,K);_.Em(e,4);break;case 3:return _.RV(e),e.yield(ha(),6);case 6:c=e.yieldResult,Io(d,c);case 4:return e.return();case 2:if(!_.h("sw_nav_preload_pbj")){e.jumpTo(7);break}H.fetchInitialData=function(){var k;return _.l(function(C){if(C.nextAddress==1)return C.yield(ha(),2);k=C.yieldResult;Io(d,k);
_.VE(C)})};
if(H.getInitialData){H.loadInitialData=function(k){Y8(d,k)};
p=H.getInitialData();H.getInitialData=void 0;Y8(d,p);e.jumpTo(8);break}H.fetchInitialData=void 0;return e.yield(ha(),9);case 9:g=e.yieldResult,Io(d,g);case 8:return e.return();case 7:H.getInitialData?(a=H.getInitialData(),H.getInitialData=void 0,Y8(d,a)):H.loadInitialData=function(k){Y8(d,k)},_.VE(e)}})};
kqX=function(d){var H=0;return function(){return H<d.length?{done:!1,value:d[H++]}:{done:!0}}};
xyE=typeof Object.defineProperties=="function"?Object.defineProperty:function(d,H,K){if(d==Array.prototype||d==Object.prototype)return d;d[H]=K.value;return d};
nT5=function(d){d=["object"==typeof globalThis&&globalThis,d,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var H=0;H<d.length;++H){var K=d[H];if(K&&K.Math==Math)return K}throw Error("a");};
_.H3=nT5(this);Oi=function(d,H){if(H)a:{var K=_.H3;d=d.split(".");for(var c=0;c<d.length-1;c++){var p=d[c];if(!(p in K))break a;K=K[p]}d=d[d.length-1];c=K[d];H=H(c);H!=c&&H!=null&&xyE(K,d,{configurable:!0,writable:!0,value:H})}};
Oi("Symbol",function(d){if(d)return d;var H=function(g,a){this.$jscomp$symbol$id_=g;xyE(this,"description",{configurable:!0,writable:!0,value:a})};
H.prototype.toString=function(){return this.$jscomp$symbol$id_};
var K="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",c=0,p=function(g){if(this instanceof p)throw new TypeError("b");return new H(K+(g||"")+"_"+c++,g)};
return p});
Oi("Symbol.iterator",function(d){if(d)return d;d=Symbol("c");for(var H="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),K=0;K<H.length;K++){var c=_.H3[H[K]];typeof c==="function"&&typeof c.prototype[d]!="function"&&xyE(c.prototype,d,{configurable:!0,writable:!0,value:function(){return CpX(kqX(this))}})}return d});
Oi("Symbol.asyncIterator",function(d){return d?d:Symbol("d")});
var CpX=function(d){d={next:d};d[Symbol.iterator]=function(){return this};
return d},RNL=typeof Object.create=="function"?Object.create:function(d){var H=function(){};
H.prototype=d;return new H},V_Y=function(){function d(){function K(){}
new K;Reflect.construct(K,[],function(){});
return new K instanceof K}
if(typeof Reflect!="undefined"&&Reflect.construct){if(d())return Reflect.construct;var H=Reflect.construct;return function(K,c,p){K=H(K,c);p&&Reflect.setPrototypeOf(K,p.prototype);return K}}return function(K,c,p){p===void 0&&(p=K);
p=RNL(p.prototype||Object.prototype);return Function.prototype.apply.call(K,p,c)||p}}(),UyL;
if(typeof Object.setPrototypeOf=="function")UyL=Object.setPrototypeOf;else{var hNF;a:{var L4F={a:!0},M_5={};try{M_5.__proto__=L4F;hNF=M_5.a;break a}catch(d){}hNF=!1}UyL=hNF?function(d,H){d.__proto__=H;if(d.__proto__!==H)throw new TypeError("e`"+d);return d}:null}Sf=UyL;
_.m=function(d,H){d.prototype=RNL(H.prototype);d.prototype.constructor=d;if(Sf)Sf(d,H);else for(var K in H)if(K!="prototype")if(Object.defineProperties){var c=Object.getOwnPropertyDescriptor(H,K);c&&Object.defineProperty(d,K,c)}else d[K]=H[K];d.superClass_=H.prototype};
_.q=function(d){var H=typeof Symbol!="undefined"&&Symbol.iterator&&d[Symbol.iterator];if(H)return H.call(d);if(typeof d.length=="number")return{next:kqX(d)};throw Error("f`"+String(d));};
E8=function(d){for(var H,K=[];!(H=d.next()).done;)K.push(H.value);return K};
_.ru=function(d){return d instanceof Array?d:E8(_.q(d))};
_.y$=function(d){return Ei(d,d)};
Ei=function(d,H){d.raw=H;Object.freeze&&(Object.freeze(d),Object.freeze(H));return d};
bE=function(d,H){return Object.prototype.hasOwnProperty.call(d,H)};
myX=typeof Object.assign=="function"?Object.assign:function(d,H){for(var K=1;K<arguments.length;K++){var c=arguments[K];if(c)for(var p in c)bE(c,p)&&(d[p]=c[p])}return d};
Oi("Object.assign",function(d){return d||myX});
var NO=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},wPD=function(d){if(d.isRunning_)throw new TypeError("h");
d.isRunning_=!0};
NO.prototype.JSC$8699_next_=function(d){this.yieldResult=d};
var PpD=function(d,H){d.abruptCompletion_={exception:H,isException:!0};d.nextAddress=d.catchAddress_||d.finallyAddress_};
NO.prototype.return=function(d){this.abruptCompletion_={return:d};this.nextAddress=this.finallyAddress_};
NO.prototype.yield=function(d,H){this.nextAddress=H;return{value:d}};
NO.prototype.jumpTo=function(d){this.nextAddress=d};
_.VE=function(d){d.nextAddress=0};
_.e2=function(d,H,K){d.catchAddress_=H;K!=void 0&&(d.finallyAddress_=K)};
_.nz=function(d,H){d.catchAddress_=0;d.finallyAddress_=H||0};
_.Em=function(d,H,K){d.nextAddress=H;d.catchAddress_=K||0};
_.RV=function(d,H){d.catchAddress_=H||0;H=d.abruptCompletion_.exception;d.abruptCompletion_=null;return H};
_.xs=function(d,H,K,c){c?d.finallyContexts_[c]=d.abruptCompletion_:d.finallyContexts_=[d.abruptCompletion_];d.catchAddress_=H||0;d.finallyAddress_=K||0};
_.Cz=function(d,H,K){K=d.finallyContexts_.splice(K||0)[0];(K=d.abruptCompletion_=d.abruptCompletion_||K)?K.isException?d.nextAddress=d.catchAddress_||d.finallyAddress_:K.jumpTo!=void 0&&d.finallyAddress_<K.jumpTo?(d.nextAddress=K.jumpTo,d.abruptCompletion_=null):d.nextAddress=d.finallyAddress_:d.nextAddress=H};
uSF=function(d){this.JSC$8704_context_=new NO;this.program_=d};
rxY=function(d,H){wPD(d.JSC$8704_context_);var K=d.JSC$8704_context_.yieldAllIterator_;if(K)return IPY(d,"return"in K?K["return"]:function(c){return{value:c,done:!0}},H,d.JSC$8704_context_.return);
d.JSC$8704_context_.return(H);return Dd(d)};
IPY=function(d,H,K,c){try{var p=H.call(d.JSC$8704_context_.yieldAllIterator_,K);if(!(p instanceof Object))throw new TypeError("g`"+p);if(!p.done)return d.JSC$8704_context_.isRunning_=!1,p;var g=p.value}catch(a){return d.JSC$8704_context_.yieldAllIterator_=null,PpD(d.JSC$8704_context_,a),Dd(d)}d.JSC$8704_context_.yieldAllIterator_=null;c.call(d.JSC$8704_context_,g);return Dd(d)};
Dd=function(d){for(;d.JSC$8704_context_.nextAddress;)try{var H=d.program_(d.JSC$8704_context_);if(H)return d.JSC$8704_context_.isRunning_=!1,{value:H.value,done:!1}}catch(K){d.JSC$8704_context_.yieldResult=void 0,PpD(d.JSC$8704_context_,K)}d.JSC$8704_context_.isRunning_=!1;if(d.JSC$8704_context_.abruptCompletion_){H=d.JSC$8704_context_.abruptCompletion_;d.JSC$8704_context_.abruptCompletion_=null;if(H.isException)throw H.exception;return{value:H.return,done:!0}}return{value:void 0,done:!0}};
W4l=function(d){this.next=function(H){wPD(d.JSC$8704_context_);d.JSC$8704_context_.yieldAllIterator_?H=IPY(d,d.JSC$8704_context_.yieldAllIterator_.next,H,d.JSC$8704_context_.JSC$8699_next_):(d.JSC$8704_context_.JSC$8699_next_(H),H=Dd(d));return H};
this.throw=function(H){wPD(d.JSC$8704_context_);d.JSC$8704_context_.yieldAllIterator_?H=IPY(d,d.JSC$8704_context_.yieldAllIterator_["throw"],H,d.JSC$8704_context_.JSC$8699_next_):(PpD(d.JSC$8704_context_,H),H=Dd(d));return H};
this.return=function(H){return rxY(d,H)};
this[Symbol.iterator]=function(){return this}};
_.py=function(d,H){H=new W4l(new uSF(H));Sf&&d.prototype&&Sf(H,d.prototype);return H};
B31=function(d){function H(c){return d.next(c)}
function K(c){return d.throw(c)}
return new Promise(function(c,p){function g(a){a.done?c(a.value):Promise.resolve(a.value).then(H,K).then(g,p)}
g(d.next())})};
_.l=function(d){return B31(new W4l(new uSF(d)))};
_.ks=function(d){var H=d[Symbol.asyncIterator];return H!==void 0?H.call(d):new zNL(_.q(d))};
zNL=function(d){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return d};
this.next=function(H){return Promise.resolve(d.next(H))};
this["throw"]=function(H){return new Promise(function(K,c){var p=d["throw"];p!==void 0?K(p.call(d,H)):(K=d["return"],K!==void 0&&K.call(d),c(new TypeError("i")))})};
d["return"]!==void 0&&(this["return"]=function(H){return Promise.resolve(d["return"](H))})};
_.sH=function(){for(var d=Number(this),H=[],K=d;K<arguments.length;K++)H[K-d]=arguments[K];return H};
_.g5=function(d){return d};
Oi("globalThis",function(d){return d||_.H3});
Oi("Reflect",function(d){return d?d:{}});
Oi("Reflect.construct",function(){return V_Y});
Oi("Reflect.setPrototypeOf",function(d){return d?d:Sf?function(H,K){try{return Sf(H,K),!0}catch(c){return!1}}:null});
Oi("Promise",function(d){function H(){this.batch_=null}
function K(a){return a instanceof p?a:new p(function(e){e(a)})}
if(d&&(typeof _.H3.PromiseRejectionEvent!=="undefined"||!_.H3.Promise||_.H3.Promise.toString().indexOf("[native code]")===-1))return d;H.prototype.asyncExecute=function(a){if(this.batch_==null){this.batch_=[];var e=this;this.asyncExecuteFunction(function(){e.executeBatch_()})}this.batch_.push(a)};
var c=_.H3.setTimeout;H.prototype.asyncExecuteFunction=function(a){c(a,0)};
H.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var a=this.batch_;this.batch_=[];for(var e=0;e<a.length;++e){var k=a[e];a[e]=null;try{k()}catch(C){this.asyncThrow_(C)}}}this.batch_=null};
H.prototype.asyncThrow_=function(a){this.asyncExecuteFunction(function(){throw a;})};
var p=function(a){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var e=this.createResolveAndReject_();try{a(e.resolve,e.reject)}catch(k){e.reject(k)}};
p.prototype.createResolveAndReject_=function(){function a(C){return function(R){k||(k=!0,C.call(e,R))}}
var e=this,k=!1;return{resolve:a(this.resolveTo_),reject:a(this.JSC$8732_reject_)}};
p.prototype.resolveTo_=function(a){if(a===this)this.JSC$8732_reject_(new TypeError("m"));else if(a instanceof p)this.settleSameAsPromise_(a);else{a:switch(typeof a){case "object":var e=a!=null;break a;case "function":e=!0;break a;default:e=!1}e?this.resolveToNonPromiseObj_(a):this.fulfill_(a)}};
p.prototype.resolveToNonPromiseObj_=function(a){var e=void 0;try{e=a.then}catch(k){this.JSC$8732_reject_(k);return}typeof e=="function"?this.settleSameAsThenable_(e,a):this.fulfill_(a)};
p.prototype.JSC$8732_reject_=function(a){this.settle_(2,a)};
p.prototype.fulfill_=function(a){this.settle_(1,a)};
p.prototype.settle_=function(a,e){if(this.state_!=0)throw Error("n`"+a+"`"+e+"`"+this.state_);this.state_=a;this.result_=e;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
p.prototype.scheduleUnhandledRejectionCheck_=function(){var a=this;c(function(){if(a.notifyUnhandledRejection_()){var e=_.H3.console;typeof e!=="undefined"&&e.error(a.result_)}},1)};
p.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var a=_.H3.CustomEvent,e=_.H3.Event,k=_.H3.dispatchEvent;if(typeof k==="undefined")return!0;typeof a==="function"?a=new a("unhandledrejection",{cancelable:!0}):typeof e==="function"?a=new e("unhandledrejection",{cancelable:!0}):(a=_.H3.document.createEvent("CustomEvent"),a.initCustomEvent("unhandledrejection",!1,!0,a));a.promise=this;a.reason=this.result_;return k(a)};
p.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var a=0;a<this.onSettledCallbacks_.length;++a)g.asyncExecute(this.onSettledCallbacks_[a]);this.onSettledCallbacks_=null}};
var g=new H;p.prototype.settleSameAsPromise_=function(a){var e=this.createResolveAndReject_();a.callWhenSettled_(e.resolve,e.reject)};
p.prototype.settleSameAsThenable_=function(a,e){var k=this.createResolveAndReject_();try{a.call(e,k.resolve,k.reject)}catch(C){k.reject(C)}};
p.prototype.then=function(a,e){function k(U,L){return typeof U=="function"?function(w){try{C(U(w))}catch(W){R(W)}}:L}
var C,R,V=new p(function(U,L){C=U;R=L});
this.callWhenSettled_(k(a,C),k(e,R));return V};
p.prototype.catch=function(a){return this.then(void 0,a)};
p.prototype.callWhenSettled_=function(a,e){function k(){switch(C.state_){case 1:a(C.result_);break;case 2:e(C.result_);break;default:throw Error("o`"+C.state_);}}
var C=this;this.onSettledCallbacks_==null?g.asyncExecute(k):this.onSettledCallbacks_.push(k);this.isRejectionHandled_=!0};
p.resolve=K;p.reject=function(a){return new p(function(e,k){k(a)})};
p.race=function(a){return new p(function(e,k){for(var C=_.q(a),R=C.next();!R.done;R=C.next())K(R.value).callWhenSettled_(e,k)})};
p.all=function(a){var e=_.q(a),k=e.next();return k.done?K([]):new p(function(C,R){function V(w){return function(W){U[w]=W;L--;L==0&&C(U)}}
var U=[],L=0;do U.push(void 0),L++,K(k.value).callWhenSettled_(V(U.length-1),R),k=e.next();while(!k.done)})};
return p});
var fy=function(d,H,K){if(d==null)throw new TypeError("p`"+K);if(H instanceof RegExp)throw new TypeError("q`"+K);return d+""};
Oi("String.prototype.startsWith",function(d){return d?d:function(H,K){var c=fy(this,H,"startsWith"),p=c.length,g=H.length;K=Math.max(0,Math.min(K|0,c.length));for(var a=0;a<g&&K<p;)if(c[K++]!=H[a++])return!1;return a>=g}});
Oi("Object.setPrototypeOf",function(d){return d||Sf});
Oi("Symbol.dispose",function(d){return d?d:Symbol("r")});
Oi("SuppressedError",function(d){function H(K,c,p){if(!(this instanceof H))return new H(K,c,p);p=Error(p);"stack"in p&&(this.stack=p.stack);this.message=p.message;this.error=K;this.suppressed=c}
if(d)return d;_.m(H,Error);H.prototype.name="SuppressedError";return H});
var XPC=function(d,H,K){d instanceof String&&(d=String(d));for(var c=d.length,p=0;p<c;p++){var g=d[p];if(H.call(K,g,p,d))return{i:p,v:g}}return{i:-1,v:void 0}};
Oi("Array.prototype.find",function(d){return d?d:function(H,K){return XPC(this,H,K).v}});
Oi("WeakMap",function(d){function H(){}
function K(k){var C=typeof k;return C==="object"&&k!==null||C==="function"}
function c(k){if(!bE(k,g)){var C=new H;xyE(k,g,{value:C})}}
function p(k){var C=Object[k];C&&(Object[k]=function(R){if(R instanceof H)return R;Object.isExtensible(R)&&c(R);return C(R)})}
if(function(){if(!d||!Object.seal)return!1;try{var k=Object.seal({}),C=Object.seal({}),R=new d([[k,2],[C,3]]);if(R.get(k)!=2||R.get(C)!=3)return!1;R.delete(k);R.set(C,4);return!R.has(k)&&R.get(C)==4}catch(V){return!1}}())return d;
var g="$jscomp_hidden_"+Math.random();p("freeze");p("preventExtensions");p("seal");var a=0,e=function(k){this.JSC$8739_id_=(a+=Math.random()+1).toString();if(k){k=_.q(k);for(var C;!(C=k.next()).done;)C=C.value,this.set(C[0],C[1])}};
e.prototype.set=function(k,C){if(!K(k))throw Error("s");c(k);if(!bE(k,g))throw Error("t`"+k);k[g][this.JSC$8739_id_]=C;return this};
e.prototype.get=function(k){return K(k)&&bE(k,g)?k[g][this.JSC$8739_id_]:void 0};
e.prototype.has=function(k){return K(k)&&bE(k,g)&&bE(k[g],this.JSC$8739_id_)};
e.prototype.delete=function(k){return K(k)&&bE(k,g)&&bE(k[g],this.JSC$8739_id_)?delete k[g][this.JSC$8739_id_]:!1};
return e});
Oi("Map",function(d){if(function(){if(!d||typeof d!="function"||!d.prototype.entries||typeof Object.seal!="function")return!1;try{var e=Object.seal({x:4}),k=new d(_.q([[e,"s"]]));if(k.get(e)!="s"||k.size!=1||k.get({x:4})||k.set({x:4},"t")!=k||k.size!=2)return!1;var C=k.entries(),R=C.next();if(R.done||R.value[0]!=e||R.value[1]!="s")return!1;R=C.next();return R.done||R.value[0].x!=4||R.value[1]!="t"||!C.next().done?!1:!0}catch(V){return!1}}())return d;
var H=new WeakMap,K=function(e){this[0]={};this[1]=g();this.size=0;if(e){e=_.q(e);for(var k;!(k=e.next()).done;)k=k.value,this.set(k[0],k[1])}};
K.prototype.set=function(e,k){e=e===0?0:e;var C=c(this,e);C.list||(C.list=this[0][C.id]=[]);C.entry?C.entry.value=k:(C.entry={next:this[1],previous:this[1].previous,head:this[1],key:e,value:k},C.list.push(C.entry),this[1].previous.next=C.entry,this[1].previous=C.entry,this.size++);return this};
K.prototype.delete=function(e){e=c(this,e);return e.entry&&e.list?(e.list.splice(e.index,1),e.list.length||delete this[0][e.id],e.entry.previous.next=e.entry.next,e.entry.next.previous=e.entry.previous,e.entry.head=null,this.size--,!0):!1};
K.prototype.clear=function(){this[0]={};this[1]=this[1].previous=g();this.size=0};
K.prototype.has=function(e){return!!c(this,e).entry};
K.prototype.get=function(e){return(e=c(this,e).entry)&&e.value};
K.prototype.entries=function(){return p(this,function(e){return[e.key,e.value]})};
K.prototype.keys=function(){return p(this,function(e){return e.key})};
K.prototype.values=function(){return p(this,function(e){return e.value})};
K.prototype.forEach=function(e,k){for(var C=this.entries(),R;!(R=C.next()).done;)R=R.value,e.call(k,R[1],R[0],this)};
K.prototype[Symbol.iterator]=K.prototype.entries;var c=function(e,k){var C=k&&typeof k;C=="object"||C=="function"?H.has(k)?C=H.get(k):(C=""+ ++a,H.set(k,C)):C="p_"+k;var R=e[0][C];if(R&&bE(e[0],C))for(e=0;e<R.length;e++){var V=R[e];if(k!==k&&V.key!==V.key||k===V.key)return{id:C,list:R,index:e,entry:V}}return{id:C,list:R,index:-1,entry:void 0}},p=function(e,k){var C=e[1];
return CpX(function(){if(C){for(;C.head!=e[1];)C=C.previous;for(;C.next!=C.head;)return C=C.next,{done:!1,value:k(C)};C=null}return{done:!0,value:void 0}})},g=function(){var e={};
return e.previous=e.next=e.head=e},a=0;
return K});
Oi("Set",function(d){if(function(){if(!d||typeof d!="function"||!d.prototype.entries||typeof Object.seal!="function")return!1;try{var K=Object.seal({x:4}),c=new d(_.q([K]));if(!c.has(K)||c.size!=1||c.add(K)!=c||c.size!=1||c.add({x:4})!=c||c.size!=2)return!1;var p=c.entries(),g=p.next();if(g.done||g.value[0]!=K||g.value[1]!=K)return!1;g=p.next();return g.done||g.value[0]==K||g.value[0].x!=4||g.value[1]!=g.value[0]?!1:p.next().done}catch(a){return!1}}())return d;
var H=function(K){this.JSC$8753_map_=new Map;if(K){K=_.q(K);for(var c;!(c=K.next()).done;)this.add(c.value)}this.size=this.JSC$8753_map_.size};
H.prototype.add=function(K){K=K===0?0:K;this.JSC$8753_map_.set(K,K);this.size=this.JSC$8753_map_.size;return this};
H.prototype.delete=function(K){K=this.JSC$8753_map_.delete(K);this.size=this.JSC$8753_map_.size;return K};
H.prototype.clear=function(){this.JSC$8753_map_.clear();this.size=0};
H.prototype.has=function(K){return this.JSC$8753_map_.has(K)};
H.prototype.entries=function(){return this.JSC$8753_map_.entries()};
H.prototype.values=function(){return this.JSC$8753_map_.values()};
H.prototype.keys=H.prototype.values;H.prototype[Symbol.iterator]=H.prototype.values;H.prototype.forEach=function(K,c){var p=this;this.JSC$8753_map_.forEach(function(g){return K.call(c,g,g,p)})};
return H});
Oi("Math.log2",function(d){return d?d:function(H){return Math.log(H)/Math.LN2}});
Oi("Object.values",function(d){return d?d:function(H){var K=[],c;for(c in H)bE(H,c)&&K.push(H[c]);return K}});
Oi("Object.is",function(d){return d?d:function(H,K){return H===K?H!==0||1/H===1/K:H!==H&&K!==K}});
Oi("Array.prototype.includes",function(d){return d?d:function(H,K){var c=this;c instanceof String&&(c=String(c));var p=c.length;K=K||0;for(K<0&&(K=Math.max(K+p,0));K<p;K++){var g=c[K];if(g===H||Object.is(g,H))return!0}return!1}});
Oi("String.prototype.includes",function(d){return d?d:function(H,K){return fy(this,H,"includes").indexOf(H,K||0)!==-1}});
Oi("Array.from",function(d){return d?d:function(H,K,c){K=K!=null?K:function(e){return e};
var p=[],g=typeof Symbol!="undefined"&&Symbol.iterator&&H[Symbol.iterator];if(typeof g=="function"){H=g.call(H);for(var a=0;!(g=H.next()).done;)p.push(K.call(c,g.value,a++))}else for(g=H.length,a=0;a<g;a++)p.push(K.call(c,H[a],a));return p}});
Oi("Object.entries",function(d){return d?d:function(H){var K=[],c;for(c in H)bE(H,c)&&K.push([c,H[c]]);return K}});
Oi("Number.isFinite",function(d){return d?d:function(H){return typeof H!=="number"?!1:!isNaN(H)&&H!==Infinity&&H!==-Infinity}});
Oi("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Oi("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Oi("Number.isInteger",function(d){return d?d:function(H){return Number.isFinite(H)?H===Math.floor(H):!1}});
Oi("Number.isSafeInteger",function(d){return d?d:function(H){return Number.isInteger(H)&&Math.abs(H)<=Number.MAX_SAFE_INTEGER}});
Oi("String.prototype.endsWith",function(d){return d?d:function(H,K){var c=fy(this,H,"endsWith");K===void 0&&(K=c.length);K=Math.max(0,Math.min(K|0,c.length));for(var p=H.length;p>0&&K>0;)if(c[--K]!=H[--p])return!1;return p<=0}});
var JxL=function(d,H){d instanceof String&&(d+="");var K=0,c=!1,p={next:function(){if(!c&&K<d.length){var g=K++;return{value:H(g,d[g]),done:!1}}c=!0;return{done:!0,value:void 0}}};
p[Symbol.iterator]=function(){return p};
return p};
Oi("Array.prototype.entries",function(d){return d?d:function(){return JxL(this,function(H,K){return[H,K]})}});
Oi("Math.trunc",function(d){return d?d:function(H){H=Number(H);if(isNaN(H)||H===Infinity||H===-Infinity||H===0)return H;var K=Math.floor(Math.abs(H));return H<0?-K:K}});
Oi("Number.isNaN",function(d){return d?d:function(H){return typeof H==="number"&&isNaN(H)}});
Oi("Array.prototype.keys",function(d){return d?d:function(){return JxL(this,function(H){return H})}});
Oi("Array.prototype.values",function(d){return d?d:function(){return JxL(this,function(H,K){return K})}});
Oi("Array.prototype.fill",function(d){return d?d:function(H,K,c){var p=this.length||0;K<0&&(K=Math.max(0,p+K));if(c==null||c>p)c=p;c=Number(c);c<0&&(c=Math.max(0,p+c));for(K=Number(K||0);K<c;K++)this[K]=H;return this}});
var Aa=function(d){return d?d:Array.prototype.fill};
Oi("Int8Array.prototype.fill",Aa);Oi("Uint8Array.prototype.fill",Aa);Oi("Uint8ClampedArray.prototype.fill",Aa);Oi("Int16Array.prototype.fill",Aa);Oi("Uint16Array.prototype.fill",Aa);Oi("Int32Array.prototype.fill",Aa);Oi("Uint32Array.prototype.fill",Aa);Oi("Float32Array.prototype.fill",Aa);Oi("Float64Array.prototype.fill",Aa);
Oi("Object.fromEntries",function(d){return d?d:function(H){var K={};if(!(Symbol.iterator in H))throw new TypeError("u`"+H);H=H[Symbol.iterator].call(H);for(var c=H.next();!c.done;c=H.next()){c=c.value;if(Object(c)!==c)throw new TypeError("v");K[c[0]]=c[1]}return K}});
Oi("String.prototype.replaceAll",function(d){return d?d:function(H,K){if(H instanceof RegExp&&!H.global)throw new TypeError("w");return H instanceof RegExp?this.replace(H,K):this.replace(new RegExp(String(H).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),K)}});
Oi("Object.getOwnPropertySymbols",function(d){return d?d:function(){return[]}});
Oi("String.prototype.repeat",function(d){return d?d:function(H){var K=fy(this,null,"repeat");if(H<0||H>1342177279)throw new RangeError("x");H|=0;for(var c="";H;)if(H&1&&(c+=K),H>>>=1)K+=K;return c}});
Oi("Array.prototype.findIndex",function(d){return d?d:function(H,K){return XPC(this,H,K).i}});
Oi("Array.prototype.flatMap",function(d){return d?d:function(H,K){var c=[];Array.prototype.forEach.call(this,function(p,g){p=H.call(K,p,g,this);Array.isArray(p)?c.push.apply(c,p):c.push(p)});
return c}});
Oi("String.prototype.codePointAt",function(d){return d?d:function(H){var K=fy(this,null,"codePointAt"),c=K.length;H=Number(H)||0;if(H>=0&&H<c){H|=0;var p=K.charCodeAt(H);if(p<55296||p>56319||H+1===c)return p;H=K.charCodeAt(H+1);return H<56320||H>57343?p:(p-55296)*1024+H+9216}}});
Oi("String.fromCodePoint",function(d){return d?d:function(H){for(var K="",c=0;c<arguments.length;c++){var p=Number(arguments[c]);if(p<0||p>1114111||p!==Math.floor(p))throw new RangeError("y`"+p);p<=65535?K+=String.fromCharCode(p):(p-=65536,K+=String.fromCharCode(p>>>10&1023|55296),K+=String.fromCharCode(p&1023|56320))}return K}});
Oi("String.prototype.trimLeft",function(d){function H(){return this.replace(/^[\s\xa0]+/,"")}
return d||H});
Oi("String.prototype.trimStart",function(d){return d||String.prototype.trimLeft});
Oi("String.prototype.padStart",function(d){return d?d:function(H,K){var c=fy(this,null,"padStart");H-=c.length;K=K!==void 0?String(K):" ";return(H>0&&K?K.repeat(Math.ceil(H/K.length)).substring(0,H):"")+c}});
Oi("Promise.prototype.finally",function(d){return d?d:function(H){return this.then(function(K){return Promise.resolve(H()).then(function(){return K})},function(K){return Promise.resolve(H()).then(function(){throw K;
})})}});
Oi("Math.imul",function(d){return d?d:function(H,K){H=Number(H);K=Number(K);var c=H&65535,p=K&65535;return c*p+((H>>>16&65535)*p+c*(K>>>16&65535)<<16>>>0)|0}});
Oi("Object.hasOwn",function(d){return d?d:function(H,K){return Object.prototype.hasOwnProperty.call(H,K)}});
Oi("Math.sign",function(d){return d?d:function(H){H=Number(H);return H===0||isNaN(H)?H:H>0?1:-1}});
Oi("Array.prototype.flat",function(d){return d?d:function(H){H=H===void 0?1:H;var K=[];Array.prototype.forEach.call(this,function(c){Array.isArray(c)&&H>0?(c=Array.prototype.flat.call(c,H-1),K.push.apply(K,c)):K.push(c)});
return K}});
Oi("String.raw",function(d){return d?d:function(H,K){if(H==null)throw new TypeError("z");for(var c=H.raw,p=c.length,g="",a=0;a<p;++a)g+=c[a],a+1<p&&a+1<arguments.length&&(g+=String(arguments[a+1]));return g}});
Oi("Reflect.ownKeys",function(d){return d?d:function(H){var K=[],c=Object.getOwnPropertyNames(H);H=Object.getOwnPropertySymbols(H);for(var p=0;p<c.length;p++)(c[p].substring(0,14)=="jscomp_symbol_"?H:K).push(c[p]);return K.concat(H)}});
Oi("Object.getOwnPropertyDescriptors",function(d){return d?d:function(H){for(var K={},c=Reflect.ownKeys(H),p=0;p<c.length;p++)K[c[p]]=Object.getOwnPropertyDescriptor(H,c[p]);return K}});
Oi("WeakSet",function(d){if(function(){if(!d||!Object.seal)return!1;try{var K=Object.seal({}),c=Object.seal({}),p=new d([K]);if(!p.has(K)||p.has(c))return!1;p.delete(K);p.add(c);return!p.has(K)&&p.has(c)}catch(g){return!1}}())return d;
var H=function(K){this.JSC$8760_map_=new WeakMap;if(K){K=_.q(K);for(var c;!(c=K.next()).done;)this.add(c.value)}};
H.prototype.add=function(K){this.JSC$8760_map_.set(K,!0);return this};
H.prototype.has=function(K){return this.JSC$8760_map_.has(K)};
H.prototype.delete=function(K){return this.JSC$8760_map_.delete(K)};
return H});
Oi("Promise.allSettled",function(d){function H(c){return{status:"fulfilled",value:c}}
function K(c){return{status:"rejected",reason:c}}
return d?d:function(c){var p=this;c=Array.from(c,function(g){return p.resolve(g).then(H,K)});
return p.all(c)}});
Oi("Number.parseInt",function(d){return d||parseInt});
_._DumpException=window._DumpException||function(d){throw d;};
window._DumpException=_._DumpException;var s0h=window.ytcsi;s0h&&typeof s0h.tick==="function"&&s0h.tick("rses_dpj");var F4L,jf,vw,dK,Z$C,T3M,Q0i,t_M,hZ,Y1l;F4L=F4L||{};_.KF=this||self;_.vb=function(d,H,K){d=d.split(".");K=K||_.KF;for(var c;d.length&&(c=d.shift());)d.length||H===void 0?K[c]&&K[c]!==Object.prototype[c]?K=K[c]:K=K[c]={}:K[c]=H};
jf=function(d,H){var K=_.OS("WIZ_global_data.oxN3nb");d=K&&K[d];return d!=null?d:H};
vw=_.KF._F_toggles_default_kevlar_base||[];dK=function(){};
dK.get=function(){return null};
_.OS=function(d,H){d=d.split(".");H=H||_.KF;for(var K=0;K<d.length;K++)if(H=H[d[K]],H==null)return null;return H};
_.HG=function(d){d.instance_=void 0;d.getInstance=function(){return d.instance_?d.instance_:d.instance_=new d}};
_.SS=function(d){var H=typeof d;return H!="object"?H:d?Array.isArray(d)?"array":H:"null"};
_.O5=function(d){var H=_.SS(d);return H=="array"||H=="object"&&typeof d.length=="number"};
_.y4=function(d){var H=typeof d;return H=="object"&&d!=null||H=="function"};
_.b1=function(d){return Object.prototype.hasOwnProperty.call(d,Z$C)&&d[Z$C]||(d[Z$C]=++T3M)};
Z$C="closure_uid_"+(Math.random()*1E9>>>0);T3M=0;Q0i=function(d,H,K){return d.call.apply(d.bind,arguments)};
t_M=function(d,H,K){if(!d)throw Error();if(arguments.length>2){var c=Array.prototype.slice.call(arguments,2);return function(){var p=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(p,c);return d.apply(H,p)}}return function(){return d.apply(H,arguments)}};
_.LA=function(d,H,K){_.LA=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Q0i:t_M;return _.LA.apply(null,arguments)};
_.hO=function(d,H){var K=Array.prototype.slice.call(arguments,1);return function(){var c=K.slice();c.push.apply(c,arguments);return d.apply(this,c)}};
_.$V=function(){return Date.now()};
hZ=function(d){return d};
_.K1=function(d,H){function K(){}
K.prototype=H.prototype;d.superClass_=H.prototype;d.prototype=new K;d.prototype.constructor=d;d.base=function(c,p,g){for(var a=Array(arguments.length-2),e=2;e<arguments.length;e++)a[e-2]=arguments[e];return H.prototype[p].apply(c,a)}};
Y1l=function(d){return d};var O$f,S1X;_.t=function(d,H,K,c){var p=arguments.length,g=p<3?H:c===null?c=Object.getOwnPropertyDescriptor(H,K):c,a;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")g=Reflect.decorate(d,H,K,c);else for(var e=d.length-1;e>=0;e--)if(a=d[e])g=(p<3?a(g):p>3?a(H,K,g):a(H,K))||g;p>3&&g&&Object.defineProperty(H,K,g)};
_.O=function(d,H){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(d,H)};
O$f=function(d,H){if(H!==null&&H!==void 0){if(typeof H!=="object"&&typeof H!=="function")throw new TypeError("A");if(K===void 0){if(!Symbol.dispose)throw new TypeError("C");var K=H[Symbol.dispose]}if(typeof K!=="function")throw new TypeError("D");d.stack.push({value:H,dispose:K,async:!1})}return H};
S1X=function(d){function H(g){d.error=d.hasError?new SuppressedError(g,d.error,"An error was suppressed during disposal."):g;d.hasError=!0}
function K(){for(;c=d.stack.pop();)try{if(!c.async&&p===1)return p=0,d.stack.push(c),Promise.resolve().then(K);if(c.dispose){var g=c.dispose.call(c.value);if(c.async)return p|=2,Promise.resolve(g).then(K,function(a){H(a);return K()})}else p|=1}catch(a){H(a)}if(p===1)return d.hasError?Promise.reject(d.error):Promise.resolve();
if(d.hasError)throw d.error;}
var c,p=0;K()};_.K1(_.dh,Error);_.dh.prototype.name="CustomError";var ET4;var yxM=void 0,b$E,N3E=typeof TextDecoder!=="undefined",Ki4,$fC=typeof String.prototype.isWellFormed==="function",HFF=typeof TextEncoder!=="undefined";var DyC;_.U8=function(d){for(var H=[],K=0,c=0;c<d.length;c++){var p=d.charCodeAt(c);p<128?H[K++]=p:(p<2048?H[K++]=p>>6|192:((p&64512)==55296&&c+1<d.length&&(d.charCodeAt(c+1)&64512)==56320?(p=65536+((p&1023)<<10)+(d.charCodeAt(++c)&1023),H[K++]=p>>18|240,H[K++]=p>>12&63|128):H[K++]=p>>12|224,H[K++]=p>>6&63|128),H[K++]=p&63|128)}return H};
DyC=function(d){for(var H=[],K=0,c=0;K<d.length;){var p=d[K++];if(p<128)H[c++]=String.fromCharCode(p);else if(p>191&&p<224){var g=d[K++];H[c++]=String.fromCharCode((p&31)<<6|g&63)}else if(p>239&&p<365){g=d[K++];var a=d[K++],e=d[K++];p=((p&7)<<18|(g&63)<<12|(a&63)<<6|e&63)-65536;H[c++]=String.fromCharCode(55296+(p>>10));H[c++]=String.fromCharCode(56320+(p&1023))}else g=d[K++],a=d[K++],H[c++]=String.fromCharCode((p&15)<<12|(g&63)<<6|a&63)}return H.join("")};var kY=String.prototype.trim?function(d){return d.trim()}:function(d){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(d)[1]},fPX=/&/g,Axl=/</g,j01=/>/g,vTF=/"/g,dKL=/'/g,Hi5=/\x00/g,$KY=/[\x00&<>"']/;var cG=!!(vw[0]>>15&1),KID=!!(vw[0]&1024),chC=!!(vw[0]>>16&1),pD4=!!(vw[0]&8),gD1=!!(vw[0]&2),ii1=!!(vw[0]&4),GBL=!!(vw[0]&16),oDL=!!(vw[0]&128);var qZF=jf(1,!0),RE=cG?chC:jf(610401301,!1),aIF=cG?pD4:jf(772657768,!1),lIL=cG?gD1:jf(513659523,!1),eCl=cG?KID||!ii1:jf(568333945,!0),r3F=cG?GBL:jf(1331761403,!1),xSl=cG?KID||!oDL:jf(748402147,qZF);var U5,kBM=_.KF.navigator;U5=kBM?kBM.userAgentData||null:null;var Nl;_.s5=function(d,H){return Array.prototype.indexOf.call(d,H,void 0)};
_.yx=function(d,H,K){Array.prototype.forEach.call(d,H,K)};
_.p1=function(d,H,K){return Array.prototype.filter.call(d,H,K)};
_.Wf=function(d,H,K){return Array.prototype.map.call(d,H,K)};
Nl=function(d,H,K){return Array.prototype.some.call(d,H,K)};
_.lF4=function(d,H,K){return Array.prototype.every.call(d,H,K)};var gK=function(d){gK[" "](d);return d};
gK[" "]=function(){};
var LVM=function(d,H){try{return gK(d[H]),!0}catch(K){}return!1},xlX=function(d,H,K,c){c=c?c(H):H;
return Object.prototype.hasOwnProperty.call(d,c)?d[c]:d[c]=K(H)};var xKD,AX,nD4,CzF,VFi,UK1,oqD,hC1,LIE,MF1,x94,wDf,Pzi,WIX,BLF,zC5;_.ex1=function(){return _.KF.navigator||null};
xKD=iFl();_.iv=GLF();AX=hC("Edge");nD4=AX||_.iv;_.GZ=hC("Gecko")&&!(_.aE(_.nF(),"WebKit")&&!hC("Edge"))&&!(hC("Trident")||hC("MSIE"))&&!hC("Edge");_.oB=_.aE(_.nF(),"WebKit")&&!hC("Edge");CzF=_.oB&&hC("Mobile");_.RCl=_.C1F();VFi=_.RXh();UK1=(rh()?U5.platform==="Linux":hC("Linux"))||_.Vll();oqD=_.xfi();hC1=nYE();LIE=hC("iPad");MF1=hC("iPod");_.mKX=_.WF();x94=_.aE(_.nF(),"KaiOS");wDf=function(){var d=_.KF.document;return d?d.documentMode:void 0};
a:{var uPh="",IIL=function(){var d=_.nF();if(_.GZ)return/rv:([^\);]+)(\)|;)/.exec(d);if(AX)return/Edge\/([\d\.]+)/.exec(d);if(_.iv)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(d);if(_.oB)return/WebKit\/(\S+)/.exec(d);if(xKD)return/(?:Version)[ \/]?(\S+)/.exec(d)}();
IIL&&(uPh=IIL?IIL[1]:"");if(_.iv){var rhX=wDf();if(rhX!=null&&rhX>parseFloat(uPh)){Pzi=String(rhX);break a}}Pzi=uPh}WIX=Pzi;BLF={};_.qJ=function(d){return xlX(BLF,d,function(){return _.xY(WIX,d)>=0})};
if(_.KF.document&&_.iv){var XDf=wDf();zC5=XDf?XDf:parseInt(WIX,10)||void 0}else zC5=void 0;_.Jhh=zC5;var LEh,MGi,szi;_.aB=PF();LEh=nYE()||hC("iPod");MGi=hC("iPad");szi=_.aDl();_.lv=_.IE();_.ZO=_.q5D()&&!_.WF();var FID,e3,tuD,xTh,TL5,Zi1;FID={};e3=null;tuD=_.GZ||_.oB||typeof _.KF.btoa=="function";_.mb=function(d,H){H===void 0&&(H=0);Zi1();H=FID[H];for(var K=Array(Math.floor(d.length/3)),c=H[64]||"",p=0,g=0;p<d.length-2;p+=3){var a=d[p],e=d[p+1],k=d[p+2],C=H[a>>2];a=H[(a&3)<<4|e>>4];e=H[(e&15)<<2|k>>6];k=H[k&63];K[g++]=C+a+e+k}C=0;k=c;switch(d.length-p){case 2:C=d[p+1],k=H[(C&15)<<2]||c;case 1:d=d[p],K[g]=H[d>>2]+H[(d&3)<<4|C>>4]+k+c}return K.join("")};
xTh=function(d){var H="";TL5(d,function(K){H+=String.fromCharCode(K)});
return H};
_.XYM=function(d){var H=[];TL5(d,function(K){H.push(K)});
return H};
_.fF=function(d){var H=d.length,K=H*3/4;K%3?K=Math.floor(K):_.qf("=.",d[H-1])&&(K=_.qf("=.",d[H-2])?K-2:K-1);var c=new Uint8Array(K),p=0;TL5(d,function(g){c[p++]=g});
return p!==K?c.subarray(0,p):c};
TL5=function(d,H){function K(k){for(;c<d.length;){var C=d.charAt(c++),R=e3[C];if(R!=null)return R;if(!_.oE(C))throw Error("H`"+C);}return k}
Zi1();for(var c=0;;){var p=K(-1),g=K(0),a=K(64),e=K(64);if(e===64&&p===-1)break;H(p<<2|g>>4);a!=64&&(H(g<<4&240|a>>2),e!=64&&H(a<<6&192|e))}};
Zi1=function(){if(!e3){e3={};for(var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),H=["+/=","+/","-_=","-_.","-_"],K=0;K<5;K++){var c=d.concat(H[K].split(""));FID[K]=c;for(var p=0;p<c.length;p++){var g=c[p];e3[g]===void 0&&(e3[g]=p)}}}};var EYD=typeof Uint8Array!=="undefined",XFF=!_.iv&&typeof btoa==="function",JCM=/[-_.]/g,BhM={"-":"+",_:"/",".":"="},mg={};var Vl,tF1;Vl=function(d,H){if(H!==mg)throw Error("J");this.JSC$8790_value_=d;if(d!=null&&d.length===0)throw Error("I");};
_.wA=function(){return QzD||(QzD=new Vl(null,mg))};
tF1=function(d){return new Uint8Array(ZtF(d)||0)};
Vl.prototype.isEmpty=function(){return this.JSC$8790_value_==null};
Vl.prototype.sizeBytes=function(){var d=ZtF(this);return d?d.length:0};
var ZtF=function(d){if(mg!==mg)throw Error("J");var H=d.JSC$8790_value_;H==null||EYD&&H!=null&&H instanceof Uint8Array||(typeof H==="string"?H=sEF(H):(_.SS(H),H=null));return H==null?H:d.JSC$8790_value_=H},QzD;var ZFF=void 0;var cB=typeof Symbol==="function"&&typeof Symbol()==="symbol",YZD=HB("jas",void 0,!0),JN1=HB(void 0,"0di"),ft=HB(void 0,"1oa"),MS=HB(void 0,Symbol()),ANE=HB(void 0,"0ub"),vdL=HB(void 0,"0ubs"),C_D=HB(void 0,"0ubsb"),CgF=HB(void 0,"0actk"),x0=HB("m_m","messagePrototypeMarker",!0),o0C=HB(void 0,"vps"),NAY=HB();var tlD,QE5,Y0,Oi1;tlD={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};QE5=Object.defineProperties;_.pX=cB?YZD:"internalArrayState";Oi1=[];iM(Oi1,7);Y0=Object.freeze(Oi1);var Ct={},aC={},SZ5=function(d,H,K){this.iterable=d;this.mapper=H;this.thisArg=K};
SZ5.prototype.next=function(){var d=this.iterable.next();d.done||(d.value=this.mapper.call(this.thisArg,d.value));return d};
SZ5.prototype[Symbol.iterator]=function(){return this};
var ED4=Object.freeze({}),rA={};_.yhC=z3(function(d){return d!==null&&d!==void 0});var ACl=z3(function(d){return typeof d==="number"}),fD5=z3(function(d){return typeof d==="string"}),vY4=z3(function(d){return typeof d==="boolean"}),bil=z3(function(d){return d!=null&&typeof d==="object"&&typeof d.then==="function"}),OjC=z3(function(d){return typeof d==="function"}),vz=z3(function(d){return!!d&&(typeof d==="object"||typeof d==="function")});var jEF=typeof _.KF.BigInt==="function"&&typeof _.KF.BigInt(0)==="bigint";var I0l=z3(function(d){return jEF?d>=NLF&&d<=DK4:d[0]==="-"?dUh(d,fIF):dUh(d,Ah4)}),fIF=Number.MIN_SAFE_INTEGER.toString(),NLF=jEF?BigInt(Number.MIN_SAFE_INTEGER):void 0,Ah4=Number.MAX_SAFE_INTEGER.toString(),DK4=jEF?BigInt(Number.MAX_SAFE_INTEGER):void 0;var jzF=typeof Uint8Array.prototype.slice==="function",s3=0,F7=0,UNM;var Kt,gq,E3,GG,a05;Kt=typeof BigInt==="function"?BigInt.asIntN:void 0;_.oZ=typeof BigInt==="function"?BigInt.asUintN:void 0;gq=Number.isSafeInteger;E3=Number.isFinite;GG=Math.trunc;a05=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var qU1={};var EdC={},vDD=function(){try{var d=function(){return V_Y(Map,[],this.constructor)};
_.m(d,Map);gK(new d);return!1}catch(H){return!0}}(),kV=function(){this.JSC$8810_map_=new Map};
_.G=kV.prototype;_.G.get=function(d){return this.JSC$8810_map_.get(d)};
_.G.set=function(d,H){this.JSC$8810_map_.set(d,H);this.size=this.JSC$8810_map_.size;return this};
_.G.delete=function(d){d=this.JSC$8810_map_.delete(d);this.size=this.JSC$8810_map_.size;return d};
_.G.clear=function(){this.JSC$8810_map_.clear();this.size=this.JSC$8810_map_.size};
_.G.has=function(d){return this.JSC$8810_map_.has(d)};
_.G.entries=function(){return this.JSC$8810_map_.entries()};
_.G.keys=function(){return this.JSC$8810_map_.keys()};
_.G.values=function(){return this.JSC$8810_map_.values()};
_.G.forEach=function(d,H){return this.JSC$8810_map_.forEach(d,H)};
kV.prototype[Symbol.iterator]=function(){return this.entries()};
var IZ=function(){if(vDD)return Object.setPrototypeOf(kV.prototype,Map.prototype),Object.defineProperties(kV.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),kV;var d=function(){return V_Y(Map,[],this.constructor)};
_.m(d,Map);return d}(),UU=function(d,H,K,c){K=K===void 0?QCf:K;
c=c===void 0?QCf:c;var p=IZ.call(this)||this;p.arrayState=d[_.pX]|0;p.valueCtor=H;p.keyToApi=K;p.valueToApi=p.valueCtor?Y3E:c;for(var g=0;g<d.length;g++){var a=d[g],e=K(a[0],!1,!0),k=a[1];H?k===void 0&&(k=null):k=c(a[1],!1,!0,void 0,void 0,p.arrayState);IZ.prototype.set.call(p,e,k)}return p};
_.m(UU,IZ);var daF=function(d){if(d.arrayState&2)throw Error("N");};
_.G=UU.prototype;_.G.clear=function(){daF(this);IZ.prototype.clear.call(this)};
_.G.delete=function(d){daF(this);return IZ.prototype.delete.call(this,this.keyToApi(d,!0,!1))};
_.G.entries=function(){if(this.valueCtor){var d=IZ.prototype.keys.call(this);d=new SZ5(d,OXY,this)}else d=IZ.prototype.entries.call(this);return d};
_.G.values=function(){if(this.valueCtor){var d=IZ.prototype.keys.call(this);d=new SZ5(d,UU.prototype.get,this)}else d=IZ.prototype.values.call(this);return d};
_.G.forEach=function(d,H){this.valueCtor?IZ.prototype.forEach.call(this,function(K,c,p){d.call(H,p.get(c),c,p)}):IZ.prototype.forEach.call(this,d,H)};
_.G.set=function(d,H){daF(this);d=this.keyToApi(d,!0,!1);return d==null?this:H==null?(IZ.prototype.delete.call(this,d),this):IZ.prototype.set.call(this,d,this.valueToApi(H,!0,!0,this.valueCtor,!1,this.arrayState))};
_.G.has=function(d){return IZ.prototype.has.call(this,this.keyToApi(d,!1,!1))};
_.G.get=function(d){d=this.keyToApi(d,!1,!1);var H=IZ.prototype.get.call(this,d);if(H!==void 0){var K=this.valueCtor;return K?(K=this.valueToApi(H,!1,!0,K,this.callToMutableOnAccess,this.arrayState),K!==H&&IZ.prototype.set.call(this,d,K),K):H}};
UU.prototype[Symbol.iterator]=function(){return this.entries()};
UU.prototype.toJSON=void 0;var S3D;var Kb5=function(){},Htl=function(d,H){for(var K in d)!isNaN(K)&&H(d,+K,d[K])},cZi=function(d){var H=new Kb5;
Htl(d,function(K,c,p){H[c]=Ql(p)});
H.reviveUnknownFields=d.reviveUnknownFields;return H},DUC={reviveIntoImmutable:!0};var $SE;var a5h,l5l;var H2h,bg,xr,UD,$ah,L1,RJ,KkC,ceL,PG,paX,uv,WG,BG;H2h=_.X7(0);_.xV={};_.n1=function(d,H,K,c,p){H=bg(d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H,K,p);if(H!==null||c&&d.noLegacyNull!==aC)return H};
bg=function(d,H,K,c){if(H===-1)return null;var p=H+(K?0:-1),g=d.length-1;if(!(g<1+(K?0:-1))){if(p>=g){var a=d[g];if(a!=null&&typeof a==="object"&&a.constructor===Object){K=a[H];var e=!0}else if(p===g)K=a;else return}else K=d[p];if(c&&K!=null){c=c(K);if(c==null)return c;if(!Object.is(c,K))return e?a[H]=c:d[p]=c,c}return K}};
_.ov=function(d,H,K,c){Z5(d);var p=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;tZ(p,p[_.pX]|0,H,K,c);return d};
_.C1=function(d,H,K){d=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return zjD(d,d[_.pX]|0,H,K)!==void 0};
_.RB=function(d,H,K,c){var p=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return zjD(p,p[_.pX]|0,H,UD(d,c,K))!==void 0};
_.Hz=function(d){return d===ED4?2:4};
_.V8=function(d,H){d=_.n1(d,H,void 0,void 0,Pg1);return d==null?_.wA():d};
xr=function(d,H,K,c){Z5(d);var p=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=p[_.pX]|0;if(c==null){var a=rZM(p);if(WbX(a,p,g,K)===H)a.set(K,0);else return d}else g=Bqh(p,g,K,H);tZ(p,g,H,c);return d};
_.Uu=function(d,H,K,c){var p=d[_.pX]|0,g=WB(p);p=Bqh(d,p,K,H,g);tZ(d,p,H,c,g)};
UD=function(d,H,K){return _.hS(d,H)===K?K:-1};
_.hS=function(d,H){d=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return WbX(rZM(d),d,void 0,H,void 0)};
$ah=function(d,H,K){var c=d[_.pX]|0,p=WB(c),g=bg(d,K,p);if(g!=null&&g[x0]===Ct){if(!lM(g))return JZ(g),g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var a=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(g)&&(a=g);if(a){var e=a[_.pX]|0;e&2&&(a=zG(a,e))}a=kGM(a,H,!0);a!==g&&tZ(d,c,K,a,p);return a};
_.gF=function(d,H,K,c){var p=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=p[_.pX]|0;H=zjD(p,g,H,K,c);if(H==null)return H;g=p[_.pX]|0;if(!lM(d,g)){var a=tSY(H);a!==H&&(JZ(d)&&(p=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=p[_.pX]|0),H=a,g=tZ(p,g,K,H,c),TG(p,g))}return H};
_.dk=function(d,H,K,c){var p=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return XvX(d,p,p[_.pX]|0,H,K,c,!1,!0)};
_.eE=function(d,H,K,c){K=JZh(K);_.ov(d,H,K,c);K&&!lM(K)&&TG(d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return d};
_.nc=function(d,H,K,c){c=JZh(c);xr(d,H,K,c);c&&!lM(c)&&TG(d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return d};
L1=function(d,H,K){Z5(d);var c=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=c[_.pX]|0;if(K==null)return tZ(c,p,H),d;for(var g=K===Y0?7:K[_.pX]|0,a=g,e=y1(g),k=e||Object.isFrozen(K),C=!0,R=!0,V=0;V<K.length;V++){var U=K[V];e||(U=lM(U),C&&(C=!U),R&&(R=U))}e||(g=C?13:5,g=R?g&-4097:g|4096);k&&g===a||(K=Ql(K),a=0,g=OU(g,p));g!==a&&iM(K,g);p=tZ(c,p,H,K);2&g||!(4096&g||16&g)||TG(c,p);return d};
RJ=function(d,H,K,c){FbL(d,H,K,c);return d};
KkC=function(d,H,K){FbL(d,H,MJ,void 0,K,1,!0);return d};
_.mt=function(d,H,K){d=_.n1(d,H,void 0,K);H=typeof d;d=d==null?d:H==="bigint"?_.X7((0,_.oZ)(64,d)):_.yl(d)?H==="string"?_.u7F(d):_.wB1(d):void 0;return d};
_.wK=function(d,H){var K=K===void 0?!1:K;var c;return(c=_.q3F(_.n1(d,H)))!=null?c:K};
_.$1=function(d,H,K){K=K===void 0?0:K;var c;return(c=_.vB(_.n1(d,H)))!=null?c:K};
ceL=function(d,H){var K=K===void 0?0:K;d=_.e6f(_.n1(d,H));return d!=null?d:K};
PG=function(d,H,K){K=K===void 0?H2h:K;var c;return(c=_.BAl(_.n1(d,H)))!=null?c:K};
paX=function(d){var H=H===void 0?H2h:H;var K;return(K=_.mt(d,23))!=null?K:H};
uv=function(d,H){var K=K===void 0?0:K;var c;return(c=_.n1(d,H,void 0,void 0,_.G3E))!=null?c:K};
_.IB=function(d,H,K,c){K=K===void 0?"":K;var p;return(p=_.k0(_.n1(d,H,c)))!=null?p:K};
_.rK=function(d,H){var K=K===void 0?0:K;var c;return(c=_.AN(_.n1(d,H)))!=null?c:K};
WG=function(d,H){var K=K===void 0?"0":K;d=WgY(_.n1(d,H),!0);return d!=null?d:K};
BG=function(d,H,K){return _.IB(d,UD(d,K,H))};
_.zZ=function(d,H,K,c){return _.gF(d,H,UD(d,c,K),void 0)};
_.k1=function(d,H){return _.k0(_.n1(d,H,void 0,_.xV))};
_.gk=function(d,H,K){return _.ov(d,H,odF(K))};
_.zA=function(d,H,K){return _.D5(d,H,odF(K),!1)};
_.Xh=function(d,H,K){return _.ov(d,H,_.jS(K))};
_.Ln=function(d,H,K){return _.ov(d,H,pt(K))};
_.UY=function(d,H,K){return _.ov(d,H,aZ(K))};
_.Sn=function(d,H,K,c){return _.D5(d,H,aZ(K),"",c)};
_.G1=function(d,H,K){return _.ov(d,H,K==null?K:_.bM(K))};
_.JS=function(d,H,K){return _.D5(d,H,K==null?K:_.bM(K),0)};var AZ=function(d,H,K){this.buffer=d;if(K&&!H)throw Error();this.JSC$8822_isImmutable=H};var goM=function(d,H,K,c){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8825_start_=0;this.init(d,H,K,c)},su,GKF,oo1,a2Y,gOE,i2M;
_.G=goM.prototype;_.G.init=function(d,H,K,c){var p=c===void 0?{}:c;c=p.aliasBytesFields===void 0?!1:p.aliasBytesFields;p=p.treatNewDataAsImmutable===void 0?!1:p.treatNewDataAsImmutable;this.aliasBytesFields=c;this.treatNewDataAsImmutable=p;d&&(d=TqF(d,this.treatNewDataAsImmutable),this.bytes_=d.buffer,this.bytesAreImmutable_=d.JSC$8822_isImmutable,this.JSC$8825_start_=H||0,this.end_=K!==void 0?this.JSC$8825_start_+K:this.bytes_.length,this.cursor_=this.JSC$8825_start_)};
_.G.free=function(){this.clear();i2M.length<100&&i2M.push(this)};
_.G.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8825_start_=0;this.aliasBytesFields=!1};
_.G.reset=function(){this.cursor_=this.JSC$8825_start_};
_.G.atEnd=function(){return this.cursor_==this.end_};
_.Fh=function(d,H){var K=0,c=0,p=0,g=d.bytes_,a=d.cursor_;do{var e=g[a++];K|=(e&127)<<p;p+=7}while(p<32&&e&128);if(p>32)for(c|=(e&127)>>4,p=3;p<32&&e&128;p+=7)e=g[a++],c|=(e&127)<<p;su(d,a);if(!(e&128))return H(K>>>0,c>>>0);throw Error();};
su=function(d,H){d.cursor_=H;if(H>d.end_)throw Error();};
_.Zr=function(d){var H=d.bytes_,K=d.cursor_,c=H[K++],p=c&127;if(c&128&&(c=H[K++],p|=(c&127)<<7,c&128&&(c=H[K++],p|=(c&127)<<14,c&128&&(c=H[K++],p|=(c&127)<<21,c&128&&(c=H[K++],p|=c<<28,c&128&&H[K++]&128&&H[K++]&128&&H[K++]&128&&H[K++]&128&&H[K++]&128)))))throw Error();su(d,K);return p};
_.TZ=function(d){var H=d.bytes_,K=d.cursor_,c=H[K],p=H[K+1],g=H[K+2];H=H[K+3];su(d,d.cursor_+4);return(c<<0|p<<8|g<<16|H<<24)>>>0};
GKF=function(d){var H=_.TZ(d);d=_.TZ(d);return Kg1(H,d)};
oo1=function(d){var H=_.TZ(d),K=_.TZ(d);d=(K>>31)*2+1;var c=K>>>20&2047;H=4294967296*(K&1048575)+H;return c==2047?H?NaN:d*Infinity:c==0?d*4.9E-324*H:d*Math.pow(2,c-1075)*(H+4503599627370496)};
_.qzM=function(d){for(var H=0,K=d.cursor_,c=K+10,p=d.bytes_;K<c;){var g=p[K++];H|=g;if((g&128)===0)return su(d,K),!!(H&127)}throw Error();};
a2Y=function(d,H){if(H<0)throw Error();var K=d.cursor_;H=K+H;if(H>d.end_)throw Error();d.cursor_=H;return K};
gOE=function(d,H){if(H==0)return _.wA();var K=a2Y(d,H);d.aliasBytesFields&&d.bytesAreImmutable_?K=d.bytes_.subarray(K,K+H):(d=d.bytes_,H=K+H,K=K===H?new Uint8Array(0):jzF?d.slice(K,H):new Uint8Array(d.subarray(K,H)));return K.length==0?_.wA():new Vl(K,mg)};
i2M=[];var egD=function(d,H,K,c){if(i2M.length){var p=i2M.pop();p.init(d,H,K,c);d=p}else d=new goM(d,H,K,c);this.decoder_=d;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;l24(this,c)},l24=function(d,H){H=H===void 0?{}:H;
d.discardUnknownFields=H.discardUnknownFields===void 0?!1:H.discardUnknownFields},oO1=function(d,H,K,c){if(kK1.length){var p=kK1.pop();
l24(p,c);p.decoder_.init(d,H,K,c);return p}return new egD(d,H,K,c)},KrL,pel,xaC,kK1;
egD.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;kK1.length<100&&kK1.push(this)};
egD.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
KrL=function(d){if(d.decoder_.atEnd())return!1;d.fieldCursor_=d.decoder_.cursor_;var H=_.Zr(d.decoder_)>>>0,K=H>>>3;H&=7;if(!(H>=0&&H<=5))throw Error();if(K<1)throw Error();d.nextField_=K;d.nextWireType_=H;return!0};
pel=function(d){switch(d.nextWireType_){case 0:d.nextWireType_!=0?pel(d):_.qzM(d.decoder_);break;case 1:d=d.decoder_;su(d,d.cursor_+8);break;case 2:if(d.nextWireType_!=2)pel(d);else{var H=_.Zr(d.decoder_)>>>0;d=d.decoder_;su(d,d.cursor_+H)}break;case 5:d=d.decoder_;su(d,d.cursor_+4);break;case 3:H=d.nextField_;do{if(!KrL(d))throw Error();if(d.nextWireType_==4){if(d.nextField_!=H)throw Error();break}pel(d)}while(1);break;default:throw Error();}};
xaC=function(d,H,K){var c=d.decoder_.end_,p=_.Zr(d.decoder_)>>>0;p=d.decoder_.cursor_+p;var g=p-c;g<=0&&(d.decoder_.end_=p,K(H,d,void 0,void 0,void 0),g=p-d.decoder_.cursor_);if(g)throw Error();d.decoder_.cursor_=p;d.decoder_.end_=c};
_.noh=function(d){var H=_.Zr(d.decoder_)>>>0;d=d.decoder_;var K=a2Y(d,H);d=d.bytes_;if(N3E){var c=d,p;(p=b$E)||(p=b$E=new TextDecoder("utf-8",{fatal:!0}));H=K+H;c=K===0&&H===c.length?c:c.subarray(K,H);try{var g=p.decode(c)}catch(C){if(yxM===void 0){try{p.decode(new Uint8Array([128]))}catch(R){}try{p.decode(new Uint8Array([97])),yxM=!0}catch(R){yxM=!1}}!yxM&&(b$E=void 0);throw C;}}else{g=K;H=g+H;K=[];for(var a=null,e,k;g<H;)e=d[g++],e<128?K.push(e):e<224?g>=H?$Y():(k=d[g++],e<194||(k&192)!==128?(g--,
$Y()):K.push((e&31)<<6|k&63)):e<240?g>=H-1?$Y():(k=d[g++],(k&192)!==128||e===224&&k<160||e===237&&k>=160||((p=d[g++])&192)!==128?(g--,$Y()):K.push((e&15)<<12|(k&63)<<6|p&63)):e<=244?g>=H-2?$Y():(k=d[g++],(k&192)!==128||(e<<28)+(k-144)>>30!==0||((p=d[g++])&192)!==128||((c=d[g++])&192)!==128?(g--,$Y()):(e=(e&7)<<18|(k&63)<<12|(p&63)<<6|c&63,e-=65536,K.push((e>>10&1023)+55296,(e&1023)+56320))):$Y(),K.length>=8192&&(a=dfY(a,K),K.length=0);g=dfY(a,K)}return g};
_.C7X=function(d){var H=_.Zr(d.decoder_)>>>0;return gOE(d.decoder_,H)};
_.Rgl=function(d,H,K){var c=_.Zr(d.decoder_)>>>0;for(c=d.decoder_.cursor_+c;d.decoder_.cursor_<c;)K.push(H(d.decoder_))};
kK1=[];var VY1=function(d,H){this.JSC$8832_lo=d>>>0;this.JSC$8832_hi=H>>>0},hgi=function(d){if(!d)return UaM||(UaM=new VY1(0,0));
if(!/^\d+$/.test(d))return null;iXi(d);return new VY1(s3,F7)},UaM,mNh=function(d,H){this.JSC$8834_lo=d>>>0;
this.JSC$8834_hi=H>>>0},LrD=function(d){if(!d)return LkE||(LkE=new mNh(0,0));
if(!/^-?\d+$/.test(d))return null;iXi(d);return new mNh(s3,F7)},LkE;var Q8=function(){this.JSC$8836_buffer_=[]},ME5,MYX;
Q8.prototype.length=function(){return this.JSC$8836_buffer_.length};
Q8.prototype.end=function(){var d=this.JSC$8836_buffer_;this.JSC$8836_buffer_=[];return d};
ME5=function(d,H,K){for(;K>0||H>127;)d.JSC$8836_buffer_.push(H&127|128),H=(H>>>7|K<<25)>>>0,K>>>=7;d.JSC$8836_buffer_.push(H)};
MYX=function(d,H){for(;H>127;)d.JSC$8836_buffer_.push(H&127|128),H>>>=7;d.JSC$8836_buffer_.push(H)};
_.wel=function(d,H){if(H>=0)MYX(d,H);else{for(var K=0;K<9;K++)d.JSC$8836_buffer_.push(H&127|128),H>>=7;d.JSC$8836_buffer_.push(1)}};
Q8.prototype.writeUint8=function(d){this.JSC$8836_buffer_.push(d>>>0&255)};
_.i_=function(d,H){d.JSC$8836_buffer_.push(H>>>0&255);d.JSC$8836_buffer_.push(H>>>8&255);d.JSC$8836_buffer_.push(H>>>16&255);d.JSC$8836_buffer_.push(H>>>24&255)};
Q8.prototype.writeInt8=function(d){this.JSC$8836_buffer_.push(d>>>0&255)};var mal,$O,ual,WrM;mal=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Q8};
$O=function(d,H){H.length!==0&&(d.blocks_.push(H),d.totalLength_+=H.length)};
_.Otf=function(d,H){_.pc(d,H,2);H=d.encoder_.end();$O(d,H);H.push(d.totalLength_);return H};
_.SUE=function(d,H){var K=H.pop();for(K=d.totalLength_+d.encoder_.length()-K;K>127;)H.push(K&127|128),K>>>=7,d.totalLength_++;H.push(K);d.totalLength_++};
_.pc=function(d,H,K){MYX(d.encoder_,H*8+K)};
ual=function(d,H,K){if(K!=null){switch(typeof K){case "string":hgi(K)}_.pc(d,H,1);switch(typeof K){case "number":d=d.encoder_;HXY(K);_.i_(d,s3);_.i_(d,F7);break;case "bigint":K=BigInt.asUintN(64,K);K=new VY1(Number(K&BigInt(4294967295)),Number(K>>BigInt(32)));d=d.encoder_;H=K.JSC$8832_hi;_.i_(d,K.JSC$8832_lo);_.i_(d,H);break;default:K=hgi(K),d=d.encoder_,H=K.JSC$8832_hi,_.i_(d,K.JSC$8832_lo),_.i_(d,H)}}};
WrM=function(d,H,K){_.pc(d,H,2);MYX(d.encoder_,K.length);$O(d,d.encoder_.end());$O(d,K)};var QZM,u9l,I2F,BUh,zgY;QZM=jT();_.wai=jT();_.P75=jT();u9l=jT();I2F=jT();_.rei=jT();_.tS=jT();_.WkF=jT();BUh=jT();zgY=jT();_.Xai=jT();_.JeD=jT();_.He=function(d,H,K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d,H,K)};
_.He.prototype.toJSON=function(){return Wv(this)};
_.He.prototype.serialize=function(d){return JSON.stringify(Wv(this,d))};
var TS5=function(d,H){if(H==null||H=="")return new d;H=JSON.parse(H);if(!Array.isArray(H))throw Error("V");return new d(S5Y(H))};
_.He.prototype.getExtension=function(d){jCM(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d.fieldIndex);f0X(this,d.fieldIndex);return d.ctor?d.isRepeated?d.getExtensionFn(this,d.ctor,d.fieldIndex,_.Hz(),d.JSC$8847_hasMessageId):d.getExtensionFn(this,d.ctor,d.fieldIndex,d.JSC$8847_hasMessageId):d.isRepeated?d.getExtensionFn(this,d.fieldIndex,_.Hz(),d.JSC$8847_hasMessageId):d.getExtensionFn(this,d.fieldIndex,d.defaultValue,d.JSC$8847_hasMessageId)};
_.He.prototype.clone=function(){var d=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=d[_.pX]|0;return Lb5(this,d,H)?hjF(this,d,!0):new this.constructor(zG(d,H,!1))};
_.He.prototype[x0]=Ct;_.He.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var vv=function(d,H,K){this.$$binaryReaderFn=d;this.$$binaryWriterFn=H;d=hZ(QZM);this.$$isMsg=!!d&&K===d||!1},DSf=tT5(function(d,H,K,c,p){if(d.nextWireType_!==2)return!1;
xaC(d,$ah(H,c,K),p);return!0},E0M),f51=tT5(function(d,H,K,c,p){if(d.nextWireType_!==2)return!1;
xaC(d,$ah(H,c,K),p);return!0},E0M),awi=Symbol(),v0D=Symbol(),$N4=Symbol(),kC1=Symbol(),ich=Symbol(),yZM,bti;var sKC,sAD,Fk4,Z25,TUl,QAl,tYC,Yzf,O2F,SzX,Eof,b2C,NUl,f24,AeF;sKC=function(d,H){var K=new mal;xNF(d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K,dS(awi,qHD,lwF,H));$O(K,K.encoder_.end());d=new Uint8Array(K.totalLength_);H=K.blocks_;for(var c=H.length,p=0,g=0;g<c;g++){var a=H[g];d.set(a,p);p+=a.length}K.blocks_=[d];return d};
sAD=_.Kc(function(d,H,K){if(d.nextWireType_!==1)return!1;_.ce(H,K,oo1(d.decoder_));return!0},h_1,zgY);
Fk4=_.Kc(function(d,H,K,c){if(d.nextWireType_!==1)return!1;_.Uu(H,K,c,oo1(d.decoder_));return!0},h_1,zgY);
Z25=_.Kc(function(d,H,K,c){if(d.nextWireType_!==5)return!1;var p=_.TZ(d.decoder_);d=(p>>31)*2+1;var g=p>>>23&255;p&=8388607;_.Uu(H,K,c,g==255?p?NaN:d*Infinity:g==0?d*1.401298464324817E-45*p:d*Math.pow(2,g-150)*(p+8388608));return!0},function(d,H,K){H=_.G3E(H);
H!=null&&(_.pc(d,K,5),d=d.encoder_,K=UNM||(UNM=new DataView(new ArrayBuffer(8))),K.setFloat32(0,+H,!0),F7=0,s3=K.getUint32(0,!0),_.i_(d,s3))},BUh);
_.YV=_.Kc(function(d,H,K){if(d.nextWireType_!==0)return!1;_.ce(H,K,_.Fh(d.decoder_,cNL));return!0},_.GC,_.tS);
TUl=_.Kc(function(d,H,K){if(d.nextWireType_!==0)return!1;d=_.Fh(d.decoder_,cNL);_.ce(H,K,d===0?void 0:d);return!0},_.GC,_.tS);
QAl=_.Kc(function(d,H,K,c){if(d.nextWireType_!==0)return!1;_.Uu(H,K,c,_.Fh(d.decoder_,cNL));return!0},_.GC,_.tS);
_.Ou=_.Kc(function(d,H,K){if(d.nextWireType_!==0)return!1;_.ce(H,K,_.Zr(d.decoder_));return!0},P_C,u9l);
tYC=_.Kc(function(d,H,K){if(d.nextWireType_!==0)return!1;d=_.Zr(d.decoder_);_.ce(H,K,d===0?void 0:d);return!0},P_C,u9l);
Yzf=_.Kc(function(d,H,K,c){if(d.nextWireType_!==0)return!1;_.Uu(H,K,c,_.Zr(d.decoder_));return!0},P_C,u9l);
O2F=_.Kc(function(d,H,K){if(d.nextWireType_!==1)return!1;_.ce(H,K,GKF(d.decoder_));return!0},_.Iw1,_.WkF);
SzX=_.VEY(function(d,H,K){if(d.nextWireType_!==1&&d.nextWireType_!==2)return!1;H=_.I5Y(H,H[_.pX]|0,K);d.nextWireType_==2?_.Rgl(d,GKF,H):H.push(GKF(d.decoder_));return!0},function(d,H,K){H=_.R_X(XB5,H,!1);
if(H!=null)for(var c=0;c<H.length;c++)ual(d,K,H[c])},_.WkF);
_.S3=_.Kc(function(d,H,K){if(d.nextWireType_!==0)return!1;_.ce(H,K,_.qzM(d.decoder_));return!0},_.rL5,_.wai);
Eof=_.Kc(function(d,H,K,c){if(d.nextWireType_!==0)return!1;_.Uu(H,K,c,_.qzM(d.decoder_));return!0},_.rL5,_.wai);
_.Eu=_.Kc(function(d,H,K){if(d.nextWireType_!==2)return!1;_.ce(H,K,_.noh(d));return!0},_.BSD,_.P75);
_.yeC=_.Kc(function(d,H,K,c){if(d.nextWireType_!==2)return!1;_.Uu(H,K,c,_.noh(d));return!0},_.BSD,_.P75);
b2C=_.VEY(function(d,H,K){if(d.nextWireType_!==2)return!1;d=_.noh(d);_.I5Y(H,H[_.pX]|0,K).push(d);return!0},function(d,H,K){H=_.R_X(_.k0,H,!0);
if(H!=null)for(var c=0;c<H.length;c++){var p=d,g=K,a=H[c];a!=null&&WrM(p,g,cCi(a))}},_.P75);
NUl=void 0;NUl=NUl===void 0?QZM:NUl;_.y8=new vv(function(d,H,K,c,p){if(d.nextWireType_!==2)return!1;c=kGM(void 0,c,!0);_.I5Y(H,H[_.pX]|0,K).push(c);xaC(d,c,p);return!0},function(d,H,K,c,p){if(Array.isArray(H))for(var g=0;g<H.length;g++)z_F(d,H[g],K,c,p)},NUl);
_.bv=tT5(function(d,H,K,c,p,g){if(d.nextWireType_!==2)return!1;var a=H[_.pX]|0;Bqh(H,a,g,K,WB(a));H=$ah(H,c,K);xaC(d,H,p);return!0},z_F);
_.Dah=_.Kc(function(d,H,K){if(d.nextWireType_!==2)return!1;_.ce(H,K,_.C7X(d));return!0},_.Xe4,_.Xai);
f24=_.Kc(function(d,H,K,c){if(d.nextWireType_!==2)return!1;_.Uu(H,K,c,_.C7X(d));return!0},_.Xe4,_.Xai);
AeF=_.Kc(function(d,H,K,c){if(d.nextWireType_!==0)return!1;_.Uu(H,K,c,_.Zr(d.decoder_)>>>0);return!0},function(d,H,K){H=_.e6f(H);
H!=null&&H!=null&&(_.pc(d,K,0),MYX(d.encoder_,H))},I2F);
_.NJ=_.Kc(function(d,H,K){if(d.nextWireType_!==0)return!1;_.ce(H,K,_.Zr(d.decoder_));return!0},_.JL5,_.JeD);var d71=function(){var d=jAi,H=vo4;this.fieldIndex=175237375;this.ctor=H;this.isRepeated=0;this.getExtensionFn=_.gF;this.defaultValue=void 0;this.JSC$8847_hasMessageId=d.messageId!=null?rA:void 0};
d71.prototype.register=function(){gK(this)};var HPL=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(HPL,_.He);var $7f=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m($7f,_.He);var YHf=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(YHf,_.He);var KM5=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(KM5,_.He);var c8i=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(c8i,_.He);var pSi=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(pSi,_.He);var gS5=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(gS5,_.He);gS5.prototype.getData=function(){return _.V8(this,2)};var iPi=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(iPi,_.He);var Gkf=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Gkf,_.He);Gkf.prototype.getStyle=function(){return _.gF(this,HPL,1)};var l_=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(l_,_.He);l_.prototype.getPayloadCase=function(){return _.hS(this,Cc)};
l_.prototype.getStyle=function(){return _.zZ(this,Gkf,6,Cc)};
var oSM=function(){var d=new l_,H=new c8i;return _.nc(d,7,Cc,H)},qAF=function(){var d=new l_,H=new pSi;
return _.nc(d,8,Cc,H)},Cc=[1,
2,3,4,5,6,7,8];var atF=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(atF,_.He);var ltL=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(ltL,_.He);var ewF=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(ewF,_.He);var kk5=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(kk5,_.He);var x7F=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(x7F,_.He);var nSh=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(nSh,_.He);var CfD=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(CfD,_.He);var Rwf=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Rwf,_.He);Rwf.prototype.getData=function(){return _.V8(this,2)};var VB4=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(VB4,_.He);var tE1=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(tE1,_.He);tE1.prototype.getPayloadCase=function(){return _.hS(this,Dr)};
var Dr=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var f1=function(d,H){d=Error.call(this,d);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=H===void 0?2:H};
_.m(f1,Error);var U7i=Promise;var hw5=function(d){this.channelPromise=d};
hw5.prototype.send=function(d,H,K){this.channelPromise.then(function(c){c.send(d,H,K)})};var LM5=function(d,H){this.data=d;this.channel=H};
LM5.prototype.reply=function(d,H,K){this.channel.send(d,H,K)};var MB5=function(d){this.JSC$8913_port_=d};
MB5.prototype.send=function(d,H,K){K=K===void 0?[]:K;var c=new MessageChannel;m7E(c.port1,H);this.JSC$8913_port_.postMessage(d,[c.port2].concat(K))};
var wSl=function(d,H){m7E(d,H);return new MB5(d)},m7E=function(d,H){H&&(d.onmessage=function(K){H(new LM5(K.data,wSl(K.ports[0])))})};var PfY=function(d){this.verifier_=d};
PfY.prototype.verify=function(d){return this.verifier_(d)};
var uuL=function(d){var H=Object.create(null);(typeof d==="string"?[d]:d).forEach(function(K){if(K==="null")throw Error("X");H[K]=!0});
return function(K){return H[K]===!0}};_.Itf=function(){if(!_.KF.addEventListener||!Object.defineProperty)return!1;var d=!1,H=Object.defineProperty({},"passive",{get:function(){d=!0}});
try{var K=function(){};
_.KF.addEventListener("test",K,H);_.KF.removeEventListener("test",K,H)}catch(c){}return d}();var r8F;_.AS=function(d){var H=d.destination;var K=d.iframe;var c=d.origin;var p=d.channelName===void 0?"ZNWN1d":d.channelName;var g=d.onMessage===void 0?void 0:d.onMessage;d=d.onEstablished===void 0?void 0:d.onEstablished;return r8F({destination:H,getSource:function(){return K.contentWindow},
originVerifier:c instanceof PfY?c:typeof c==="function"?new PfY(c):new PfY(uuL(c)),channelName:p,onMessage:g,onEstablished:d})};
r8F=function(d){var H=d.destination;var K=d.getSource;var c=d.originVerifier;var p=d.token===void 0?void 0:d.token;var g=d.channelName;var a=d.onMessage===void 0?void 0:d.onMessage;var e=d.onEstablished===void 0?void 0:d.onEstablished;return new hw5(new U7i(function(k,C){var R=function(V){V.source&&V.source===K()&&c.verify(V.origin)&&(V.data.n||V.data)===g&&(H.removeEventListener("message",R,!1),p&&V.data.t!==p?C(Error("Y`"+g+"`"+p+"`"+V.data.t)):(k(wSl(V.ports[0],a)),e&&e(V)))};
H.addEventListener("message",R,!1)}))};var WMF=function(d){try{d()}catch(H){cF(H)}};var zwX=function(d){var H=this;var K=d.getMessageType;var c=d.onUnregisteredMessage===void 0?function(){}:d.onUnregisteredMessage;
var p=d.onBeforeRegisteredMessage===void 0?function(){}:d.onBeforeRegisteredMessage;
d=d.onAfterRegisteredMessage===void 0?function(){}:d.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=K;this.onUnregisteredMessage_=c;this.onBeforeRegisteredMessage_=p;this.onAfterRegisteredMessage_=d;this.onMessage=function(g){return BdF(H,g)}};
zwX.prototype.register=function(d,H){this.registry_.set(d,H);return this};
var BdF=function(d,H){var K=d.getMessageType_(H.data),c=d.registry_.get(K);c?(WMF(function(){return d.onBeforeRegisteredMessage_(H,K)}),WMF(function(){return c(H)}),WMF(function(){return d.onAfterRegisteredMessage_(H,K)})):WMF(function(){return d.onUnregisteredMessage_(H,K)})};var XSM=function(d){this.JSC$8930_channel_=d},sRl,FM5;
XSM.prototype.send=function(d,H,K){this.JSC$8930_channel_.send(Wv(d),H,K)};
_.J84=function(d,H){return function(K){var c=new d(K.data);return H(new LM5(c,K.channel))}};
sRl=function(d){return function(H){return d(new LM5(H.data,new XSM(H.channel)))}};
FM5=function(d,H){return sRl(_.J84(d,H))};var ZP4=function(d,H,K,c){this.registry=d;this.delegate=H;this.receiveMessageConstructor=K;this.createInitMessage=c;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},QK1=function(d){var H=new zwX({getMessageType:d.getPayloadCase});
return new ZP4(H,new XSM(_.AS({iframe:d.child,destination:window,origin:d.origin,channelName:d.channelName,onMessage:FM5(d.receiveMessageConstructor,H.onMessage)})),d.receiveMessageConstructor,d.createInitMessage)},Td4=function(d,H){d.createInitMessage=H};
ZP4.prototype.send=function(d){if(!this.initialised)throw new f1("Attempted to send a message before initialisation.");this.delegate.send(d)};
var QRX=function(d,H){return _.l(function(K){if(!d.initialised)throw new f1("Attempted to send a message before initialisation.");return K.return(new Promise(function(c){d.delegate.send(H,FM5(d.receiveMessageConstructor,c))}))})};
ZP4.prototype.init=function(){var d=this;return _.l(function(H){if(d.initialised)throw new f1("Attempted to initialise twice. The SDK can only be initialised once.");if(d.createInitMessage!==void 0){var K=d.delegate,c=K.send,p=d.createInitMessage;var g=new $7f;var a=[].concat(_.ru(d.features));g=_.NS(g,1,a,_.bM);c.call(K,p.call(d,g))}d.initialised=!0;_.VE(H)})};
var j3=function(d,H){if(d.initialised)throw new f1('Attempted to set up API "'+H+'" after initialisation. All APIs must be set up before initialising the SDK.');d.features.add(H);return d.registry};
_.H3.Object.defineProperties(ZP4.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var tBh=function(d){this.channel=d;this.registered=!1};
tBh.prototype.update=function(d){if(this.channel.isInitialised){if(!this.registered)throw new f1("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var H=new l_;var K=new KM5;K=_.gk(K,1,d);H=_.nc(H,2,Cc,K);this.channel.send(H)}else this.register();this.JSC$8944_audioEnabled=d};
tBh.prototype.register=function(){j3(this.channel,1);this.registered=!0};
tBh.prototype.isAudioEnabled=function(){return this.JSC$8944_audioEnabled};var YAD=function(d){this.channel=d};
_.G=YAD.prototype;_.G.onFirstFrameReady=function(d){j3(this.channel,2).register(11,function(H){H=_.zZ(H.data,atF,11,Dr);if(!H)throw new f1("Unexpectedly nonexistent GameFirstFrameReadyEvent");d(_.IB(H,1))})};
_.G.onReady=function(d){j3(this.channel,2).register(4,function(H){H=_.zZ(H.data,ewF,4,Dr);if(!H)throw new f1("Unexpectedly nonexistent GameReadyEvent");d(_.IB(H,1))})};
_.G.onLevelComplete=function(d){j3(this.channel,2).register(5,function(H){H=_.zZ(H.data,kk5,5,Dr);if(!H)throw new f1("Unexpectedly nonexistent LevelCompleteEvent");d(_.IB(H,1),_.$1(H,2))})};
_.G.onGameOver=function(d){j3(this.channel,2).register(6,function(H){H=_.zZ(H.data,ltL,6,Dr);if(!H)throw new f1("Unexpectedly nonexistent GameOverEvent");d(_.IB(H,1))})};
_.G.pause=function(){var d=this;if(!this.channel.isInitialised)return j3(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new f1("Using unregistered Game Feature: pause.");var H=oSM();return new Promise(function(K){return _.l(function(c){if(c.nextAddress==1)return c.yield(QRX(d.channel,H),2);K();_.VE(c)})})};
_.G.resume=function(){var d=this;if(!this.channel.isInitialised)return j3(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new f1("Using unregistered Game Feature: resume.");var H=qAF();return new Promise(function(K){return _.l(function(c){if(c.nextAddress==1)return c.yield(QRX(d.channel,H),2);K();_.VE(c)})})};var OPY=function(d){this.channel=d};
OPY.prototype.onReady=function(d){j3(this.channel,5).register(8,function(H){if(!_.zZ(H.data,x7F,8,Dr))throw new f1("Unexpectedly nonexistent PageReadyEvent");d()})};var SAD=function(d){this.channel=d};
SAD.prototype.onChange=function(d){j3(this.channel,3).register(7,function(H){H=_.zZ(H.data,nSh,7,Dr);if(!H)throw new f1("Unexpectedly nonexistent ScoreEvent");d(_.IB(H,1),_.$1(H,2))})};var ES4={load:function(){throw new f1("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new f1("Storage used, but storage.onSave() listener not set!");}},y85=function(d){this.channel=d;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},bPi=function(d){j3(d.channel,4).register(2,ES4.load).register(3,ES4.save);
d.initialSetupDone=!0};
y85.prototype.onLoad=function(d){this.initialSetupDone||bPi(this);this.loadRegistered||(this.loadRegistered=!0,j3(this.channel,4).register(2,function(H){var K,c,p;return _.l(function(g){if(g.nextAddress==1){K=_.zZ(H.data,CfD,2,Dr);if(!K)throw new f1("Unexpectedly nonexistent StorageLoad");c=_.IB(K,1);return g.yield(d(c),2)}p=g.yieldResult;var a=H.reply,e=new l_;var k=new gS5;k=_.UY(k,1,c);k=_.ov(k,2,_.PB(p,!1));e=_.nc(e,3,Cc,k);a.call(H,e);_.VE(g)})}))};
y85.prototype.onSave=function(d){this.initialSetupDone||bPi(this);this.saveRegistered||(this.saveRegistered=!0,j3(this.channel,4).register(3,function(H){var K,c,p;return _.l(function(g){if(g.nextAddress==1){K=_.zZ(H.data,Rwf,3,Dr);if(!K)throw new f1("Unexpectedly nonexistent StorageSave");c=_.IB(K,1);p=tF1(K.getData());return g.yield(d(c,p),2)}var a=H.reply,e=new l_;var k=new iPi;k=_.UY(k,1,c);e=_.nc(e,4,Cc,k);a.call(H,e);_.VE(g)})}))};var Ndi=function(d){this.channel=d};
Ndi.prototype.update=function(d){if(!this.channel.features.has(6))throw new f1("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var H=new l_,K=new Gkf;d=_.eE(K,1,d);H=_.nc(H,6,Cc,d);this.channel.send(H)};
Ndi.prototype.register=function(){j3(this.channel,6)};var D7f=function(d){this.channel=d;this.userActivityLoggingIntervalMs=0};
D7f.prototype.onUserActivity=function(d,H){this.userActivityLoggingIntervalMs=H;j3(this.channel,7).register(9,function(K){if(!_.zZ(K.data,VB4,9,Dr))throw new f1("Unexpectedly nonexistent ClickEvent");d()})};var ftF=function(d){var H=this;this.channel=d;this.init=this.channel.init.bind(this.channel);this.page=new OPY(this.channel);this.game=new YAD(this.channel);this.audio=new tBh(this.channel);this.score=new SAD(this.channel);this.storage=new y85(this.channel);this.style=new Ndi(this.channel);this.userActivity=new D7f(this.channel);Td4(this.channel,function(K){var c=new YHf;K=_.eE(c,1,K);K=_.Xh(K,3,H.userActivity.userActivityLoggingIntervalMs);c=H.audio.isAudioEnabled();c!==void 0&&_.gk(K,2,c);c=new l_;
return _.nc(c,5,Cc,K)})};var A8l=function(){this.timedFunctionContext=0};
A8l.prototype.timeExecution=function(d,H){var K=this;return function(){var c=_.sH.apply(0,arguments);K.timedFunctionContext=d;return H.apply(null,_.ru(c))}};var jRF=function(){var d={};this.priorityTasks=(d[3]=[],d[2]=[],d[1]=[],d);this.isFlushing=!1},eu=function(d,H,K){var c=vSF(d,K);
d.priorityTasks[K].push(H);c&&d.priorityTasks[K].length===1&&d.flush()},vSF=function(d,H){return Object.keys(d.priorityTasks).map(function(K){return Number(K)}).filter(function(K){return!isNaN(K)&&K>H}).every(function(K){return d.priorityTasks[K].length===0})};
jRF.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(d){return d.length>0});)dfd(this,3),dfd(this,2),dfd(this,1)}catch(d){throw Object.values(this.priorityTasks).forEach(function(H){return void H.splice(0,H.length)}),d;
}finally{this.isFlushing=!1}}};
var dfd=function(d,H){for(;vSF(d,H)&&d.priorityTasks[H].length>0;)d.priorityTasks[H][0](),d.priorityTasks[H].shift()};
_.H3.Object.defineProperties(jRF.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(d){return d.length>0})}}});var DND={};var HFB=globalThis.trustedTypes,SHf=HFB,yLD;var UH=function(d){this.privateDoNotAccessOrElseWrappedResourceUrl=d};
UH.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var $fN,Kil,cCg,pFN,gYB,iFS,GLX,oY6;$fN=_.y$([""]);Kil=Ei(["\x00"],["\\0"]);cCg=Ei(["\n"],["\\n"]);pFN=Ei(["\x00"],["\\u0000"]);gYB=_.y$([""]);iFS=Ei(["\x00"],["\\0"]);GLX=Ei(["\n"],["\\n"]);oY6=Ei(["\x00"],["\\u0000"]);_.q50=NSX(function(d){return d($fN)})||NSX(function(d){return d(Kil)})||NSX(function(d){return d(cCg)})||NSX(function(d){return d(pFN)});
_.aDS=_.MN(gYB)&&_.MN(iFS)&&_.MN(GLX)&&_.MN(oY6);var zC;_.wS=function(d,H){this.privateDoNotAccessOrElseWrappedUrl=H};
_.wS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.lDM=Pe("about:blank");zC=Pe("about:invalid#zClosurez");var fw4=function(d){this.isValid=d},eXB=new fw4(function(d){return/^[^:]*([/?#]|$)/.test(d)}),kLC=rS("data"),xfg=rS("http"),nYC=rS("https"),C1B=rS("ftp"),RXA=rS("mailto"),VlS=rS("intent"),UfB=rS("vnd.youtube"),ALE=[kLC,
xfg,nYC,RXA,C1B,eXB],vOY=VB(function(){return typeof URL==="function"}),hX3=["data:",
"http:","https:","mailto:","ftp:"],HzC=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var QB=function(d){this.privateDoNotAccessOrElseWrappedHtml=d};
QB.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var l7h=VB(function(){return new QB(HFB?HFB.emptyHTML:"")});var LiS={FORMATTED_HTML_CONTENT:0,EMBEDDED_INTERNAL_CONTENT:1,EMBEDDED_TRUSTED_EXTERNAL_CONTENT:2,0:"FORMATTED_HTML_CONTENT",1:"EMBEDDED_INTERNAL_CONTENT",2:"EMBEDDED_TRUSTED_EXTERNAL_CONTENT"},K6M=function(d,H){var K=Error.call(this,d+" cannot be used with intent "+LiS[H]);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.type=d;this.intent=H;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.m(K6M,Error);_.b_=function(d){this.privateDoNotAccessOrElseWrappedScript=d};
_.b_.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var izi=function(d){this.privateDoNotAccessOrElseWrappedAttributePrefix=d};
izi.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var GVf="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var du=function(d){this.privateDoNotAccessOrElseWrappedStyleSheet=d};
du.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var n6M=function(d){var H=_.OS("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:H,stack:"Not available"};var K=!1;try{var c=d.lineNumber||d.line||"Not available"}catch(a){c="Not available",K=!0}try{var p=d.fileName||d.filename||d.sourceURL||_.KF.$googDebugFname||H}catch(a){p="Not available",K=!0}H=Ml7(d);if(!(!K&&d.lineNumber&&d.fileName&&d.stack&&d.message&&d.name)){K=d.message;
if(K==null){if(d.constructor&&d.constructor instanceof Function){if(d.constructor.name)K=d.constructor.name;else if(K=d.constructor,vG[K])K=vG[K];else{K=String(K);if(!vG[K]){var g=/function\s+([^\(]+)/m.exec(K);vG[K]=g?g[1]:"[Anonymous]"}K=vG[K]}K='Unknown Error of type "'+K+'"'}else K="Unknown Error of unknown type";typeof d.toString==="function"&&Object.prototype.toString!==d.toString&&(K+=": "+d.toString())}return{message:K,name:d.name||"UnknownError",lineNumber:c,fileName:p,stack:H||"Not available"}}return{message:d.message,
name:d.name,lineNumber:d.lineNumber,fileName:d.fileName,stack:H}},Ml7=function(d,H){H||(H={});
H[mfg(d)]=!0;var K=d.stack||"",c=d.cause;c&&!H[mfg(c)]&&(K+="\nCaused by: ",c.stack&&c.stack.indexOf(c.toString())==0||(K+=typeof c==="string"?c:c.message+"\n"),K+=Ml7(c,H));d=d.errors;if(Array.isArray(d)){c=1;var p;for(p=0;p<d.length&&!(c>4);p++)H[mfg(d[p])]||(K+="\nInner error "+c++ +": ",d[p].stack&&d[p].stack.indexOf(d[p].toString())==0||(K+=typeof d[p]==="string"?d[p]:d[p].message+"\n"),K+=Ml7(d[p],H));p<d.length&&(K+="\n... "+(d.length-p)+" more inner errors")}return K},mfg=function(d){var H=
"";
typeof d.toString==="function"&&(H=""+d);return H+d.stack},vG={};var wFB,Hb,aD,uMB,ID7,P1M,Ti,Eo,WiB;wFB=function(d,H){for(var K=d.split("%s"),c="",p=Array.prototype.slice.call(arguments,1);p.length&&K.length>1;)c+=K.shift()+p.shift();return c+K.join("%s")};
_.ES=function(d){return encodeURIComponent(String(d))};
Hb=function(d){return decodeURIComponent(d.replace(/\+/g," "))};
aD=function(d){$KY.test(d)&&(d.indexOf("&")!=-1&&(d=d.replace(fPX,"&amp;")),d.indexOf("<")!=-1&&(d=d.replace(Axl,"&lt;")),d.indexOf(">")!=-1&&(d=d.replace(j01,"&gt;")),d.indexOf('"')!=-1&&(d=d.replace(vTF,"&quot;")),d.indexOf("'")!=-1&&(d=d.replace(dKL,"&#39;")),d.indexOf("\x00")!=-1&&(d=d.replace(Hi5,"&#0;")));return d};
uMB=function(d){var H={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var K=_.KF.document.createElement("div");return d.replace(P1M,function(c,p){var g=H[c];if(g)return g;p.charAt(0)=="#"&&(p=Number("0"+p.slice(1)),isNaN(p)||(g=String.fromCharCode(p)));g||(_.AL(K,tL(c+" ")),g=K.firstChild.nodeValue.slice(0,-1));return H[c]=g})};
ID7=function(d){return d.replace(/&([^;]+);/g,function(H,K){switch(K){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return K.charAt(0)!="#"||(K=Number("0"+K.slice(1)),isNaN(K))?H:String.fromCharCode(K)}})};
P1M=/&([^;\s<&]+);?/g;_.bql=function(d){return String(d).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.rCg=String.prototype.repeat?function(d,H){return d.repeat(H)}:function(d,H){return Array(H+1).join(d)};
_.dv=function(d,H){if(!Number.isFinite(d))return String(d);d=String(d);var K=d.indexOf(".");K===-1&&(K=d.length);var c=d[0]==="-"?"-":"";c&&(d=d.substring(1));return c+(0,_.rCg)("0",Math.max(0,H-K))+d};
Ti=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.$V()).toString(36)};
Eo=function(d){for(var H=0,K=0;K<d.length;++K)H=31*H+d.charCodeAt(K)>>>0;return H};
_.hP=function(d){return String(d).replace(/\-([a-z])/g,function(H,K){return K.toUpperCase()})};
_.Uo=function(d){return String(d).replace(/([A-Z])/g,"-$1").toLowerCase()};
WiB=function(d){return d.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(H,K,c){return K+c.toUpperCase()})};var Bh7=function(){this.names=new Map};
Bh7.prototype.getName=function(d){var H=this.names.get(d);if(H)return H;var K;H=(K=d.description)!=null?K:Ti();this.names.set(d,H);return H};var zX7=function(d){var H=Error.call(this,d?d.length+" errors occurred during unsubscription:\n"+d.map(function(K,c){return c+1+") "+K.toString()}).join("\n  "):"");
this.message=H.message;"stack"in H&&(this.stack=H.stack);this.errors=d;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.m(zX7,Error);var Kz=function(d){this.initialTeardown=d;this.closed=!1;this._teardowns=this._parentage=null};
_.G=Kz.prototype;
_.G.unsubscribe=function(){if(!this.closed){this.closed=!0;var d=this._parentage;if(Array.isArray(d))for(var H=_.q(d),K=H.next();!K.done;K=H.next())K.value.remove(this);else d==null||d.remove(this);H=this.initialTeardown;if(Hi(H))try{H()}catch(g){var c=g instanceof zX7?g.errors:[g]}var p=this._teardowns;if(p)for(this._teardowns=null,H=_.q(p),K=H.next();!K.done;K=H.next()){K=K.value;try{Hi(K)?K():K.unsubscribe()}catch(g){K=void 0,c=(K=c)!=null?K:[],g instanceof zX7?c=[].concat(_.ru(c),_.ru(g.errors)):
c.push(g)}}if(c)throw new zX7(c);}};
_.G.add=function(d){if(d&&d!==this)if(this.closed)Hi(d)?d():d.unsubscribe();else{if(d instanceof Kz){if(d.closed||d._hasParent(this))return;d._addParent(this)}var H;(this._teardowns=(H=this._teardowns)!=null?H:[]).push(d)}};
_.G._hasParent=function(d){var H=this._parentage;return H===d||Array.isArray(H)&&H.includes(d)};
_.G._addParent=function(d){var H=this._parentage;this._parentage=Array.isArray(H)?(H.push(d),H):H?[H,d]:d};
_.G._removeParent=function(d){var H=this._parentage;H===d?this._parentage=null:Array.isArray(H)&&aKl(H,d)};
_.G.remove=function(d){var H=this._teardowns;H&&aKl(H,d);d instanceof Kz&&d._removeParent(this)};
var XFX=new Kz;XFX.closed=!0;Kz.JSC$9040_EMPTY=XFX;var e7L=function(){setTimeout.apply(null,_.ru(_.sH.apply(0,arguments)))};var Hr=function(d){Kz.call(this);this.JSC$9045_isStopped=!1;this.destination=d instanceof Hr?d:new $t(!d||Hi(d)?{next:d!=null?d:void 0}:d);lKh(d)&&d.add(this)};
_.m(Hr,Kz);Hr.JSC$9040_EMPTY=Kz.JSC$9040_EMPTY;Hr.create=function(d,H,K){return new KV(d,H,K)};
_.G=Hr.prototype;_.G.next=function(d){this.JSC$9045_isStopped||this._next(d)};
_.G.error=function(d){this.JSC$9045_isStopped||(this.JSC$9045_isStopped=!0,this._error(d))};
_.G.complete=function(){this.JSC$9045_isStopped||(this.JSC$9045_isStopped=!0,this._complete())};
_.G.unsubscribe=function(){this.closed||(this.JSC$9045_isStopped=!0,Kz.prototype.unsubscribe.call(this))};
_.G._next=function(d){this.destination.next(d)};
_.G._error=function(d){this.destination.error(d);this.unsubscribe()};
_.G._complete=function(){this.destination.complete();this.unsubscribe()};
var $t=function(d){this.partialObserver=d};
$t.prototype.next=function(d){var H=this.partialObserver;if(H.next)try{H.next(d)}catch(K){pz(K)}};
$t.prototype.error=function(d){var H=this.partialObserver;if(H.error)try{H.error(d)}catch(K){pz(K)}else pz(d)};
$t.prototype.complete=function(){var d=this.partialObserver;if(d.complete)try{d.complete()}catch(H){pz(H)}};
var KV=function(d,H,K){Hr.call(this);var c;Hi(d)||!d?c={next:d!=null?d:void 0,error:H!=null?H:void 0,complete:K!=null?K:void 0}:c=d;this.destination=new $t(c)};
_.m(KV,Hr);KV.JSC$9040_EMPTY=Hr.JSC$9040_EMPTY;KV.create=Hr.create;var oV=typeof Symbol==="function"&&Symbol.observable||"@@observable";var GV=function(d){d&&(this._subscribe=d)};
_.G=GV.prototype;_.G.lift=function(d){var H=new GV;H.source=this;H.operator=d;return H};
_.G.subscribe=function(d,H,K){d=d&&d instanceof Hr||d&&Hi(d.next)&&Hi(d.error)&&Hi(d.complete)&&lKh(d)?d:new KV(d,H,K);H=this.operator;K=this.source;d.add(H?H.call(d,K):K?this._subscribe(d):this._trySubscribe(d));return d};
_.G._trySubscribe=function(d){try{return this._subscribe(d)}catch(H){d.error(H)}};
_.G.forEach=function(d,H){var K=this;H=xj4(H);return new H(function(c,p){var g=K.subscribe(function(a){try{d(a)}catch(e){p(e),g==null||g.unsubscribe()}},p,c)})};
_.G._subscribe=function(d){var H;return(H=this.source)==null?void 0:H.subscribe(d)};
GV.prototype[oV]=function(){return this};
GV.prototype.pipe=function(){var d=_.sH.apply(0,arguments);return d.length?kVM(d)(this):this};
GV.create=function(d){return new GV(d)};var JC7=function(){var d=Error.call(this,"object unsubscribed");this.message=d.message;"stack"in d&&(this.stack=d.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.m(JC7,Error);var Go=function(){this.observers=[];this.hasError=this.JSC$9061_isStopped=this.closed=!1;this.thrownError=null};
_.m(Go,GV);_.G=Go.prototype;_.G.lift=function(d){var H=new cr(this,this);H.operator=d;return H};
_.G._throwIfClosed=function(){if(this.closed)throw new JC7;};
_.G.next=function(d){this._throwIfClosed();if(!this.JSC$9061_isStopped){var H=this.observers.slice();H=_.q(H);for(var K=H.next();!K.done;K=H.next())K.value.next(d)}};
_.G.error=function(d){this._throwIfClosed();if(!this.JSC$9061_isStopped){this.hasError=this.JSC$9061_isStopped=!0;this.thrownError=d;for(var H=this.observers;H.length;)H.shift().error(d)}};
_.G.complete=function(){this._throwIfClosed();if(!this.JSC$9061_isStopped){this.JSC$9061_isStopped=!0;for(var d=this.observers;d.length;)d.shift().complete()}};
_.G.unsubscribe=function(){this.JSC$9061_isStopped=this.closed=!0;this.observers=null};
_.G._trySubscribe=function(d){this._throwIfClosed();return GV.prototype._trySubscribe.call(this,d)};
_.G._subscribe=function(d){this._throwIfClosed();this._checkFinalizedStatuses(d);return this._innerSubscribe(d)};
_.G._innerSubscribe=function(d){var H=this,K=this.JSC$9061_isStopped,c=this.observers;return this.hasError||K?Kz.JSC$9040_EMPTY:(c.push(d),new Kz(function(){return aKl(H.observers,d)}))};
_.G._checkFinalizedStatuses=function(d){var H=this.thrownError,K=this.JSC$9061_isStopped;this.hasError?d.error(H):K&&d.complete()};
Go.create=function(d,H){return new cr(d,H)};
var cr=function(d,H){Go.call(this);this.destination=d;this.source=H};
_.m(cr,Go);cr.create=Go.create;cr.prototype.next=function(d){var H,K;(H=this.destination)==null||(K=H.next)==null||K.call(H,d)};
cr.prototype.error=function(d){var H,K;(H=this.destination)==null||(K=H.error)==null||K.call(H,d)};
cr.prototype.complete=function(){var d,H;(d=this.destination)==null||(H=d.complete)==null||H.call(d)};
cr.prototype._subscribe=function(d){var H,K;return(K=(H=this.source)==null?void 0:H.subscribe(d))!=null?K:Kz.JSC$9040_EMPTY};var Qy=function(d){Go.call(this);this._value=d};
_.m(Qy,Go);Qy.create=Go.create;Qy.prototype._subscribe=function(d){var H=Go.prototype._subscribe.call(this,d);!H.closed&&d.next(this._value);return H};
Qy.prototype.getValue=function(){var d=this.thrownError,H=this._value;if(this.hasError)throw d;this._throwIfClosed();return H};
Qy.prototype.next=function(d){Go.prototype.next.call(this,this._value=d)};
_.H3.Object.defineProperties(Qy.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var J1=new GV(function(d){return d.complete()});var V21=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var mjF=function(d){return d&&typeof d.length==="number"&&typeof d!=="function"};var sEB={now:function(){return(sEB.delegate||Date).now()},
delegate:void 0};var fz=function(d,H,K){d=d===void 0?Infinity:d;H=H===void 0?Infinity:H;K=K===void 0?sEB:K;Go.call(this);this.bufferSize=d;this.windowTime=H;this.timestampProvider=K;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=H===Infinity;this.bufferSize=Math.max(1,d);this.windowTime=Math.max(1,H)};
_.m(fz,Go);fz.create=Go.create;fz.prototype.next=function(d){var H=this.buffer,K=this.infiniteTimeWindow,c=this.timestampProvider,p=this.windowTime;this.JSC$9061_isStopped||(H.push(d),!K&&H.push(c.now()+p));Fil(this);Go.prototype.next.call(this,d)};
fz.prototype._subscribe=function(d){this._throwIfClosed();Fil(this);for(var H=this._innerSubscribe(d),K=this.infiniteTimeWindow,c=this.buffer.slice(),p=0;p<c.length&&!d.closed;p+=K?1:2)d.next(c[p]);this._checkFinalizedStatuses(d);return H};
var Fil=function(d){var H=d.bufferSize,K=d.timestampProvider,c=d.buffer;d=d.infiniteTimeWindow;var p=(d?1:2)*H;H<Infinity&&p<c.length&&c.splice(0,c.length-p);if(!d){H=K.now();K=0;for(d=1;d<c.length&&c[d]<=H;d+=2)K=d;K&&c.splice(0,K+1)}};var ThN=function(d,H){H=H===void 0?ZFX:H;this.schedulerActionCtor=d;this.now=H};
ThN.prototype.schedule=function(d,H,K){H=H===void 0?0:H;return(new this.schedulerActionCtor(this,d)).schedule(K,H)};
var ZFX=sEB.now;var n54=function(){var d=Error.call(this,"no elements in sequence");this.message=d.message;"stack"in d&&(this.stack=d.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.m(n54,Error);var Pi=function(d,H,K,c,p){Hr.call(this,d);this.onUnsubscribe=p;H&&(this._next=function(g){try{H(g)}catch(a){this.destination.error(a)}});
K&&(this._error=function(g){try{K(g)}catch(a){this.destination.error(a)}this.unsubscribe()});
c&&(this._complete=function(){try{c()}catch(g){this.destination.error(g)}this.unsubscribe()})};
_.m(Pi,Hr);Pi.JSC$9040_EMPTY=Hr.JSC$9040_EMPTY;Pi.create=Hr.create;Pi.prototype.unsubscribe=function(){var d;this.closed||(d=this.onUnsubscribe)!=null&&d.call(this);Hr.prototype.unsubscribe.call(this)};var Nj=function(d,H){this.source=d;this.subjectFactory=H;this._subject=null;this._refCount=0;this._connection=null};
_.m(Nj,GV);Nj.create=GV.create;Nj.prototype._subscribe=function(d){return QE3(this).subscribe(d)};
var QE3=function(d){var H=d._subject;if(!H||H.JSC$9061_isStopped)d._subject=d.subjectFactory();return d._subject};
Nj.prototype._teardown=function(){this._refCount=0;var d=this._connection;this._subject=this._connection=null;d==null||d.unsubscribe()};
Nj.prototype.connect=function(){var d=this,H=this._connection;if(!H){H=this._connection=new Kz;var K=QE3(this);H.add(this.source.subscribe(new Pi(K,void 0,function(c){d._teardown();K.error(c)},function(){d._teardown();
K.complete()},function(){return d._teardown()})));
H.closed&&(this._connection=null,H=Kz.JSC$9040_EMPTY)}return H};var F6M=Array.isArray;var TuD=Array.isArray,tl0=Object,QVM=tl0.getPrototypeOf,t2M=tl0.prototype,YE4=tl0.keys;var Bi=function(d,H,K){Hr.call(this,d);this._next=H;this.shouldComplete=K};
_.m(Bi,Hr);Bi.JSC$9040_EMPTY=Hr.JSC$9040_EMPTY;Bi.create=Hr.create;Bi.prototype._complete=function(){this.shouldComplete()?Hr.prototype._complete.call(this):this.unsubscribe()};var A1D=["addListener","removeListener"],fKf=["addEventListener","removeEventListener"],vs4=["on","off"];var pV=function(){Kz.call(this)};
_.m(pV,Kz);pV.JSC$9040_EMPTY=Kz.JSC$9040_EMPTY;pV.prototype.schedule=function(){return this};var Y5B=function(d,H){return setInterval.apply(null,[d,H].concat(_.ru(_.sH.apply(2,arguments))))};var gv=function(d,H){Kz.call(this);this.scheduler=d;this.work=H;this.pending=!1};
_.m(gv,pV);gv.JSC$9040_EMPTY=pV.JSC$9040_EMPTY;gv.prototype.schedule=function(d,H){H=H===void 0?0:H;if(this.closed)return this;this.state=d;d=this.id;var K=this.scheduler;d!=null&&(this.id=OFC(this,d,H));this.pending=!0;this.delay=H;this.id=this.id||this.requestAsyncId(K,this.id,H);return this};
gv.prototype.requestAsyncId=function(d,H,K){K=K===void 0?0:K;return Y5B(d.flush.bind(d,this),K)};
var OFC=function(d,H,K){K=K===void 0?0:K;if(K!=null&&d.delay===K&&d.pending===!1)return H;clearInterval(H)};
gv.prototype.execute=function(d,H){if(this.closed)return Error("ha");this.pending=!1;if(d=this._execute(d,H))return d;this.pending===!1&&this.id!=null&&(this.id=OFC(this,this.id,null))};
gv.prototype._execute=function(d){var H=!1;try{this.work(d)}catch(c){H=!0;var K=!!c&&c||Error(c)}if(H)return this.unsubscribe(),K};
gv.prototype.unsubscribe=function(){if(!this.closed){var d=this.id,H=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;aKl(H,this);d!=null&&(this.id=OFC(this,d,null));this.delay=null;pV.prototype.unsubscribe.call(this)}};var S5d=function(d,H){H=H===void 0?ZFX:H;ThN.call(this,d,H);this.actions=[];this.active=!1;this.scheduled=void 0};
_.m(S5d,ThN);S5d.prototype.flush=function(d){var H=this.actions;if(this.active)H.push(d);else{var K;this.active=!0;do if(K=d.execute(d.state,d.delay))break;while(d=H.shift());this.active=!1;if(K){for(;d=H.shift();)d.unsubscribe();throw K;}}};var ws=new GV(ci);var d6h=Array.isArray;var iB=function(d,H){gv.call(this,d,H);this.scheduler=d;this.work=H};
_.m(iB,gv);iB.JSC$9040_EMPTY=gv.JSC$9040_EMPTY;iB.prototype.schedule=function(d,H){H=H===void 0?0:H;if(H>0)return gv.prototype.schedule.call(this,d,H);this.delay=H;this.state=d;this.scheduler.flush(this);return this};
iB.prototype.execute=function(d,H){return H>0||this.closed?gv.prototype.execute.call(this,d,H):this._execute(d,H)};
iB.prototype.requestAsyncId=function(d,H,K){K=K===void 0?0:K;return K!=null&&K>0||K==null&&this.delay>0?gv.prototype.requestAsyncId.call(this,d,H,K):d.flush(this)};var EY0=function(){S5d.apply(this,arguments)};
_.m(EY0,S5d);var J1F=new EY0(iB);var yC7=function(){this.performanceMonitor=new A8l;this.queue=new jRF;this.internalSymbol=Symbol();this.debugNames=new Bh7};
yC7.prototype.getOnBackgrounded=function(){return ws};
_.H3.Object.defineProperties(yC7.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Gj=function(d,H){H=Error.call(this,H?d+": "+H:String(d));this.message=H.message;"stack"in H&&(this.stack=H.stack);this.code=d;this.__proto__=Gj.prototype;this.name=String(d)};
_.m(Gj,Error);var Pf=function(d){Gj.call(this,1E3,'sfr:"'+d+'"');this.measurementStrategyFailureReason=d;this.__proto__=Pf.prototype};
_.m(Pf,Gj);var Ir=function(){Gj.call(this,1003);this.__proto__=Ir.prototype};
_.m(Ir,Gj);var op=function(){Gj.call(this,1009);this.__proto__=op.prototype};
_.m(op,Gj);var bFl=function(){Gj.call(this,1011);this.__proto__=bFl.prototype};
_.m(bFl,Gj);var Nh0=function(){Gj.call(this,1007);this.__proto__=Ir.prototype};
_.m(Nh0,Gj);var M6=function(d){Gj.call(this,1004,String(d));this.inputObservableIndex=d;this.__proto__=M6.prototype};
_.m(M6,Gj);var Bk5=function(d){Gj.call(this,1010,d);this.__proto__=zzC.prototype};
_.m(Bk5,Gj);var zzC=function(d){Gj.call(this,1005,d);this.__proto__=zzC.prototype};
_.m(zzC,Gj);var Dfg=function(d){var H=_.sH.apply(1,arguments),K=this;this.orderedFactories=[];this.orderedFactories.push(d);H.forEach(function(c){K.orderedFactories.push(c)})};
Dfg.prototype.isSupported=function(d){return this.orderedFactories.some(function(H){return H.isSupported(d)})};
Dfg.prototype.makeBeacon=function(d,H){for(var K=0;K<this.orderedFactories.length;K++)if(this.orderedFactories[K].isSupported(H))return this.orderedFactories[K].makeBeacon(d,H);throw new op;};var UtX=Symbol("ia"),fD3=Symbol("ja"),TV=function(d,H){this.value=d;this.timeline=H},ZK=function(d,H){if(H.timeline!==d.timeline)throw new Nh0;
return d.value-H.value};
_.G=TV.prototype;_.G.equals=function(d){return ZK(this,d)===0};
_.G.maximum=function(d){if(d.timeline!==this.timeline)throw new Nh0;return this.value>=d.value?this:d};
_.G.round=function(){return new TV(Math.round(this.value),this.timeline)};
_.G.add=function(d){return new TV(this.value+d,this.timeline)};
_.G.toString=function(){return String(this.value)};var q5=function(d,H){this.context=d;this.JSC$9167_pinger=H};
q5.prototype.isSupported=function(d){return this.JSC$9167_pinger.isSupported(d)};
q5.prototype.makeBeacon=function(d,H){if(!this.isSupported(H))throw new op;return new ap(this.context,this.JSC$9167_pinger,H!=null?H:void 0,d)};
var ap=function(d,H,K,c){var p=this;this.JSC$9173_pinger=H;this.properties=K;this.url=c;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var g;this.method=(g=K==null?void 0:K.beaconMethod)!=null?g:"GET";this.backgroundedSubscription=d.getOnBackgrounded().subscribe(function(){p.sendNow()})};
ap.prototype.deactivate=function(){this.internalIsPending=!1};
ap.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9173_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var d,H;this.JSC$9173_pinger.pingWithHeadersAndBody((d=this.properties)!=null?d:{},this.customHeaders,(H=this.body)!=null?H:"",this.url)}else this.JSC$9173_pinger.ping(this.url);this.internalIsPending=!1}catch(K){}else this.internalIsPending=!1};
ap.prototype.setHeader=function(d,H){this.customHeaders.set(d,H)};
_.H3.Object.defineProperties(ap.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var jEX=function(){for(var d=_.q(_.sH.apply(0,arguments)),H=d.next();!H.done;H=d.next())if(H=H.value,H.available()){this.timeProvider=H;return}this.timeProvider=new ACS};
_.G=jEX.prototype;_.G.available=function(){return this.timeProvider.available()};
_.G.now=function(){return this.timeProvider.now()};
_.G.setTimeout=function(d,H){return this.timeProvider.setTimeout(d,H)};
_.G.clearTimeout=function(d){this.timeProvider.clearTimeout(d)};
_.G.interval=function(d,H){var K=this.intervalObservable(d).subscribe(H);return function(){return void K.unsubscribe()}};
_.G.intervalObservable=function(d){return this.timeProvider.intervalObservable(d)};
_.H3.Object.defineProperties(jEX.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var ACS=function(){this.timeline=Symbol()};
_.G=ACS.prototype;_.G.available=function(){return!1};
_.G.now=function(){return new TV(0,this.timeline)};
_.G.setTimeout=function(){return 0};
_.G.clearTimeout=function(){};
_.G.interval=function(){return function(){}};
_.G.intervalObservable=function(){return ws};var eR=function(d,H){this.intrinsicFunctionNamespace=d;this.performanceMonitor=H};
_.G=eR.prototype;_.G.setTimeout=function(d,H){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,d),H)};
_.G.clearTimeout=function(d){this.intrinsicFunctionNamespace.clearTimeout(d)};
_.G.interval=function(d,H){var K=this.intervalObservable(d).subscribe(H);return function(){return void K.unsubscribe()}};
_.G.intervalObservable=function(d){var H=this;return new GV(function(K){var c=0,p=H.intrinsicFunctionNamespace.setInterval(function(){K.next(c++)},d);
return function(){H.intrinsicFunctionNamespace.clearInterval(p)}})};
_.G.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var vYl=function(d,H){eR.call(this,d,H);this.timeline=fD3};
_.m(vYl,eR);vYl.prototype.now=function(){return new TV(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
vYl.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&eR.prototype.available.call(this)};var dUA=function(d,H){eR.call(this,d,H);this.timeline=UtX};
_.m(dUA,eR);dUA.prototype.now=function(){return new TV(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
dUA.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&eR.prototype.available.call(this)};var $U6=function(d){this.context=d;if(HXd===void 0)a:{var H,K,c=(H=d.global)==null?void 0:(K=H.document)==null?void 0:K.createElement("meta");if(c)try{c.httpEquiv="origin-trial";c.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";d.global.document.head.append(c);HXd=c;break a}catch(p){}HXd=void 0}},
HXd;
$U6.prototype.isSupported=function(d){return qYi(this.context)!==void 0&&!(d==null||!d.endOfSession)&&!kt(this.context)&&!(d==null?0:d.attributionEnabled)&&!(d==null?0:d.customHeaders)&&!(d==null?0:d.customBody)};
$U6.prototype.makeBeacon=function(d,H){if(!this.isSupported(H))throw new op;return new xt(this.context,d,H)};
var xt=function(d,H,K){this.context=d;this.properties=K;this.JSC$9200_urlWithoutToken=H;var c;this.beaconMethod=(c=K==null?void 0:K.beaconMethod)!=null?c:"GET";d=qYi(this.context);if(d===void 0)throw Error();this.fetchLater=d;KgM(this,cN3(this))},KgM=function(d,H){d.beaconResult&&d.beaconResult.activated||(d.beaconAbort=new AbortController,d.beaconResult=d.fetchLater(H,{method:d.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:d.beaconAbort.signal,activateAfter:96E4}))},cN3=function(d){d=d.JSC$9200_urlWithoutToken;
return(d.slice(-1)[0]==="&"?d:d+"&")+"flapi=1"};
xt.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
xt.prototype.sendNow=function(){};
xt.prototype.setHeader=function(){};
_.H3.Object.defineProperties(xt.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9200_urlWithoutToken},
set:function(d){this.JSC$9200_urlWithoutToken=d;d=cN3(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);KgM(this,d)}},
method:{configurable:!0,enumerable:!0,get:function(){return this.beaconMethod}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.beaconResult?!this.beaconResult.activated:!1}}});var pBM=function(d){this.context=d};
pBM.prototype.isSupported=function(){return!kt(this.context)&&!!this.context.global.fetch};
pBM.prototype.ping=function(){var d=this;return sE.apply(null,_.ru(_.sH.apply(0,arguments).map(function(H){return lX(d.context.global.fetch(H,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(IV(function(K){return K.status===200}))}))).pipe(Ck1(function(H){return H}),VuL())};
pBM.prototype.pingWithHeadersAndBody=function(d,H,K){for(var c=_.sH.apply(3,arguments),p=this,g=new Headers,a=_.q(H.entries()),e=a.next();!e.done;e=a.next()){var k=_.q(e.value);e=k.next().value;k=k.next().value;g.set(e,k)}var C,R=(C=d.keepAlive)!=null?C:!1;sE.apply(null,_.ru(c.map(function(V){return lX(p.context.global.fetch(V,Object.assign({},{method:String(d.beaconMethod),cache:"no-cache"},R?{keepalive:!0}:{},{mode:"no-cors",headers:g,body:K}))).pipe(IV(function(U){return U.status===200}))}))).pipe(Ck1(function(V){return V}),
VuL())};var gdX,S9L;_.nV=function(){};
_.JC=function(d){return d};
gdX=function(d){var H=H||0;return function(){return d.apply(this,Array.prototype.slice.call(arguments,0,H))}};
_.CV=function(d){var H=!1,K;return function(){H||(K=d(),H=!0);return K}};
_.Rp=function(d,H){var K=0;return function(c){_.KF.clearTimeout(K);var p=arguments;K=_.KF.setTimeout(function(){d.apply(void 0,p)},H)}};
S9L=function(d,H){var K=0,c=!1,p=[],g=function(){K=0;c&&(c=!1,a())},a=function(){K=_.KF.setTimeout(g,H);
var e=p;p=[];d.apply(void 0,e)};
return function(e){p=arguments;K?c=!0:a()}};var G3C=function(){return RE&&U5?U5.mobile:!iXg()&&(hC("iPod")||hC("iPhone")||hC("Android")||hC("IEMobile"))},iXg=function(){return RE&&U5?!U5.mobile&&(hC("iPad")||hC("Android")||hC("Silk")):hC("iPad")||hC("Android")&&!hC("Mobile")||hC("Silk")};var odB;_.rs={};odB="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.rs.add=function(d,H,K){if(d!==null&&H in d)throw Error("la`"+H);d[H]=K};
_.rs.clear=function(d){for(var H in d)delete d[H]};
_.rs.clone=function(d){var H={},K;for(K in d)H[K]=d[K];return H};
_.rs.contains=function(d,H){return wfY(d,H)};
_.rs.containsKey=function(d,H){return d!==null&&H in d};
_.rs.containsValue=wfY;_.rs.create=I$5;_.rs.createImmutableView=function(d){var H=d;Object.isFrozen&&!Object.isFrozen(d)&&(H=Object.create(d),Object.freeze(H));return H};
_.rs.createSet=rAL;_.rs.equals=function(d,H){for(var K in d)if(!(K in H)||d[K]!==H[K])return!1;for(var c in H)if(!(c in d))return!1;return!0};
_.rs.every=function(d,H,K){for(var c in d)if(!H.call(K,d[c],c,d))return!1;return!0};
_.rs.extend=function(d,H){for(var K,c,p=1;p<arguments.length;p++){c=arguments[p];for(K in c)d[K]=c[K];for(var g=0;g<odB.length;g++)K=odB[g],Object.prototype.hasOwnProperty.call(c,K)&&(d[K]=c[K])}};
_.rs.filter=function(d,H,K){var c={},p;for(p in d)H.call(K,d[p],p,d)&&(c[p]=d[p]);return c};
_.rs.findKey=PkE;_.rs.findValue=function(d,H,K){return(H=PkE(d,H,K))&&d[H]};
_.rs.forEach=function(d,H,K){for(var c in d)H.call(K,d[c],c,d)};
_.rs.get=function(d,H,K){return d!==null&&H in d?d[H]:K};
_.rs.getAllPropertyNames=function(d,H,K){if(!d)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return m65(d);for(var c={};d&&(d!==Object.prototype||H)&&(d!==Function.prototype||K);){for(var p=Object.getOwnPropertyNames(d),g=0;g<p.length;g++)c[p[g]]=!0;d=Object.getPrototypeOf(d)}return m65(c)};
_.rs.getAnyKey=function(d){for(var H in d)return H};
_.rs.getAnyValue=function(d){for(var H in d)return d[H]};
_.rs.getCount=function(d){var H=0,K;for(K in d)H++;return H};
_.rs.getKeys=m65;_.rs.getSuperClass=function(d){return(d=Object.getPrototypeOf(d.prototype))&&d.constructor};
_.rs.getValueByKeys=function(d,H){var K=_.O5(H),c=K?H:arguments;for(K=K?0:1;K<c.length;K++){if(d==null)return;d=d[c[K]]}return d};
_.rs.getValues=function(d){var H=[],K=0,c;for(c in d)H[K++]=d[c];return H};
_.rs.isEmpty=function(d){for(var H in d)return!1;return!0};
_.rs.isImmutableView=function(d){return!!Object.isFrozen&&Object.isFrozen(d)};
_.rs.map=function(d,H,K){var c={},p;for(p in d)c[p]=H.call(K,d[p],p,d);return c};
_.rs.remove=function(d,H){var K;(K=H in d)&&delete d[H];return K};
_.rs.set=function(d,H,K){d[H]=K};
_.rs.setIfUndefined=function(d,H,K){return H in d?d[H]:d[H]=K};
_.rs.setWithReturnValueIfNotSet=function(d,H,K){if(H in d)return d[H];K=K();return d[H]=K};
_.rs.some=function(d,H,K){for(var c in d)if(H.call(K,d[c],c,d))return!0;return!1};
_.rs.transpose=function(d){var H={},K;for(K in d)H[d[K]]=K;return H};
_.rs.unsafeClone=uFY;var Vd=function(d,H,K,c,p){this.allowedElements=d;this.elementPolicies=H;this.allowedGlobalAttributes=K;this.globalAttributePolicies=c;this.globallyAllowedAttributePrefixes=p},q3B=function(d,H,K){K=d.elementPolicies.get(K);
return(K==null?0:K.has(H))?K.get(H):d.allowedGlobalAttributes.has(H)?{policyAction:1}:(K=d.globalAttributePolicies.get(H))?K:d.globallyAllowedAttributePrefixes&&[].concat(_.ru(d.globallyAllowedAttributePrefixes)).some(function(c){return H.indexOf(c)===0})?{policyAction:1}:{policyAction:0}};var a03="ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR NOBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER ACRONYM BASEFONT BIG DIR HGROUP STRIKE TT".split(" "),
l07=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],e6U="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
k3A=[["dir",{policyAction:3,conditions:VB(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:VB(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:VB(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:VB(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],xUl=new Vd(new Set(a03),new Map(l07),new Set(e6U),new Map(k3A)),nd6=new Vd(new Set(a03.concat(["BUTTON",
"INPUT"])),new Map(l07),new Set(VB(function(){return e6U.concat(["class","id","name"])})),new Map(VB(function(){return k3A.concat([["style",
{policyAction:1}]])})));var CMM,R6M,UU3;CMM=function(d,H,K,c,p){this.JSC$9260_sanitizerTable=d;this.styleElementSanitizer=H;this.styleAttributeSanitizer=K;this.JSC$9260_resourceUrlPolicy=c;this.JSC$9260_navigationUrlPolicy=p;this.changes=[]};
_.VS7=function(d,H){var K=document.implementation.createHTMLDocument("");d=R6M(d,H,K);K=K.body;K.appendChild(d);K=(new XMLSerializer).serializeToString(K);K=K.slice(K.indexOf(">")+1,K.lastIndexOf("</"));return tL(K)};
R6M=function(d,H,K){H=zcX(H,K);H=document.createTreeWalker(H,5,function(e){if(e.nodeType===3)e=1;else if(JA5(e))if(e=Xfi(e),e===null)e=2;else{var k=d.JSC$9260_sanitizerTable;e=e!=="FORM"&&(k.allowedElements.has(e)||k.elementPolicies.has(e))?1:2}else e=2;return e});
for(var c=H.nextNode(),p=K.createDocumentFragment(),g=p;c!==null;){var a=void 0;if(c.nodeType===3)d.styleElementSanitizer&&g.nodeName==="STYLE"?(c=d.styleElementSanitizer(c.data),a=d.createTextNode(c)):a=d.createTextNode(c.data);else if(JA5(c))a=UU3(d,c,K);else throw Error("Z");g.appendChild(a);if(c=H.firstChild())g=a;else for(;!(c=H.nextSibling())&&(c=H.parentNode());)g=g.parentNode}return p};
CMM.prototype.createTextNode=function(d){return document.createTextNode(d)};
UU3=function(d,H,K){var c,p=Xfi(H);K=K.createElement(p);H=H.attributes;for(var g=_.q(H),a=g.next();!a.done;a=g.next()){var e=a.value;a=e.name;e=e.value;var k=q3B(d.JSC$9260_sanitizerTable,a,p);a:{if(c=k.conditions){c=_.q(c);for(var C=c.next();!C.done;C=c.next()){var R=_.q(C.value);C=R.next().value;R=R.next().value;var V=void 0;if((C=(V=H.getNamedItem(C))==null?void 0:V.value)&&!R.has(C)){c=!1;break a}}}c=!0}if(c)switch(k.policyAction){case 1:cf(K,a,e);break;case 2:throw Error();case 3:cf(K,a,e.toLowerCase());
break;case 4:d.styleAttributeSanitizer?(e=d.styleAttributeSanitizer(e),cf(K,a,e)):cf(K,a,e);break;case 5:d.JSC$9260_resourceUrlPolicy?(k={type:2,attributeName:a,elementName:p},e=BsF(e),(e=d.JSC$9260_resourceUrlPolicy(e,k))&&cf(K,a,e.toString())):cf(K,a,e);break;case 6:if(d.JSC$9260_resourceUrlPolicy){k={type:2,attributeName:a,elementName:p};c=[];e=_.q(e.split(","));for(C=e.next();!C.done;C=e.next())R=_.q(C.value.trim().split(/\s+/,2)),C=R.next().value,R=R.next().value,c.push({url:C,descriptor:R});
e={parts:[]};c=_.q(c);for(C=c.next();!C.done;C=c.next())C=C.value,R=BsF(C.url),(R=d.JSC$9260_resourceUrlPolicy(R,k))&&e.parts.push({url:R.toString(),descriptor:C.descriptor});cf(K,a,srY(e))}else cf(K,a,e);break;case 7:k=e;if(d.JSC$9260_navigationUrlPolicy){k={type:2,attributeName:a,elementName:p};e=BsF(e);e=d.JSC$9260_navigationUrlPolicy(e,k);if(e===null)break;k=e.toString()}e=k;k=_.djh(e);k=k!==void 0&&hX3.indexOf(k.toLowerCase())!==-1?e:"about:invalid#zClosurez";cf(K,a,k)}}return K};
_.h6M=VB(function(){return new CMM(xUl)});
_.Lg3=VB(function(){return new CMM(nd6)});var MS6=function(){this.calledBuild=!1;this.JSC$9272_sanitizerTable=xUl},mU3=function(){MS6.apply(this,arguments)};
_.m(mU3,MS6);mU3.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new CMM(this.JSC$9272_sanitizerTable,void 0,void 0,this.JSC$9272_resourceUrlPolicy,this.JSC$9272_navigationUrlPolicy)};var wBM=/[^#]*/;var u7X=function(d){var H=PMl;if(H)for(var K in H)Object.prototype.hasOwnProperty.call(H,K)&&d(H[K],K,H)},I0S=function(){var d=[];
u7X(function(H){d.push(H)});
return d},PMl={ALLOW_FORMS:"allow-forms",
ALLOW_MODALS:"allow-modals",ALLOW_ORIENTATION_LOCK:"allow-orientation-lock",ALLOW_POINTER_LOCK:"allow-pointer-lock",ALLOW_POPUPS:"allow-popups",ALLOW_POPUPS_TO_ESCAPE_SANDBOX:"allow-popups-to-escape-sandbox",ALLOW_PRESENTATION:"allow-presentation",ALLOW_SAME_ORIGIN:"allow-same-origin",ALLOW_SCRIPTS:"allow-scripts",ALLOW_TOP_NAVIGATION:"allow-top-navigation",ALLOW_TOP_NAVIGATION_BY_USER_ACTIVATION:"allow-top-navigation-by-user-activation"},rNM=_.CV(function(){return I0S()}),BAS=function(){var d=Wgd("IFRAME"),
H={};
_.yx(rNM(),function(K){d.sandbox&&d.sandbox.supports&&d.sandbox.supports(K)&&(H[K]=!0)});
return H},Wgd=function(d,H){H=H===void 0?document:H;
return H.createElement(String(d).toLowerCase())};var Ul;_.zH=function(d,H,K){return Math.min(Math.max(d,H),K)};
Ul=function(d,H,K){return d+K*(H-d)};_.Bf=function(d,H){this.x=d!==void 0?d:0;this.y=H!==void 0?H:0};
_.G=_.Bf.prototype;_.G.clone=function(){return new _.Bf(this.x,this.y)};
_.G.equals=function(d){return d instanceof _.Bf&&(this==d?!0:this&&d?this.x==d.x&&this.y==d.y:!1)};
_.G.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.G.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.G.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.G.translate=function(d,H){d instanceof _.Bf?(this.x+=d.x,this.y+=d.y):(this.x+=Number(d),typeof H==="number"&&(this.y+=H));return this};
_.G.scale=function(d,H){this.x*=d;this.y*=typeof H==="number"?H:d;return this};_.nB=function(d,H){this.width=d;this.height=H};
_.G=_.nB.prototype;_.G.clone=function(){return new _.nB(this.width,this.height)};
_.G.area=function(){return this.width*this.height};
_.G.aspectRatio=function(){return this.width/this.height};
_.G.isEmpty=function(){return!this.area()};
_.G.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.G.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.G.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.G.scale=function(d,H){this.width*=d;this.height*=typeof H==="number"?H:d;return this};var T5=function(d,H){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=d===VAi&&H||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=z63};
T5.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var XB3=function(d){return d instanceof T5&&d.constructor===T5&&d.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===z63?d.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},z63={},VAi={};
new T5(VAi,"");var Vy,CA,LV,JNM,ZX7,Fg3,zo,QCU,Y3C,tSd,Pr,OXd,f06,DUN,NAd,ANC,jC7,vd3,dSX,TgC,HtS,Kb3,cZg,$SC,h9;Vy=function(d){return d?new h9(_.XF(d)):ET4||(ET4=new h9)};
_.pf=function(d,H){return typeof H==="string"?d.getElementById(H):H};
CA=function(d,H){return(H||document).getElementsByTagName(String(d))};
_.sC7=function(d){return JNM("yt-formatted-string","paper-input-input",d)};
LV=function(d,H,K,c){d=c||d;return(H=H&&H!="*"?String(H).toUpperCase():"")||K?d.querySelectorAll(H+(K?"."+K:"")):d.getElementsByTagName("*")};
JNM=function(d,H,K){var c=document,p=d&&d!="*"?String(d).toUpperCase():"";return p||H?(K||c).querySelector(p+(H?"."+H:"")):LV(c,d,H,K)[0]||null};
ZX7=function(d,H){_.rs.forEach(H,function(K,c){c=="style"?d.style.cssText=K:c=="class"?d.className=K:c=="for"?d.htmlFor=K:Fg3.hasOwnProperty(c)?d.setAttribute(Fg3[c],K):_.gh(c,"aria-")||_.gh(c,"data-")?d.setAttribute(c,K):d[c]=K})};
Fg3={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"};_.CB=function(d){d=(d||window).document;d=d.compatMode=="CSS1Compat"?d.documentElement:d.body;return new _.nB(d.clientWidth,d.clientHeight)};
_.TA0=function(d){var H=_.M5(d);d=d.defaultView;return new _.Bf(d.pageXOffset||H.scrollLeft,d.pageYOffset||H.scrollTop)};
_.M5=function(d){return d.scrollingElement?d.scrollingElement:_.oB||d.compatMode!="CSS1Compat"?d.body||d.documentElement:d.documentElement};
zo=function(d){return d?d.defaultView:window};
_.ms=function(d,H,K){return QCU(document,arguments)};
QCU=function(d,H){var K=H[1],c=tSd(d,String(H[0]));K&&(typeof K==="string"?c.className=K:Array.isArray(K)?c.className=K.join(" "):ZX7(c,K));H.length>2&&Y3C(d,c,H,2);return c};
Y3C=function(d,H,K,c){function p(e){e&&H.appendChild(typeof e==="string"?d.createTextNode(e):e)}
for(;c<K.length;c++){var g=K[c];if(!_.O5(g)||_.y4(g)&&g.nodeType>0)p(g);else{a:{if(g&&typeof g.length=="number"){if(_.y4(g)){var a=typeof g.item=="function"||typeof g.item=="string";break a}if(typeof g==="function"){a=typeof g.item=="function";break a}}a=!1}_.yx(a?_.tC(g):g,p)}}};
_.x1=function(d){return tSd(document,d)};
tSd=function(d,H){H=String(H);d.contentType==="application/xhtml+xml"&&(H=H.toLowerCase());return d.createElement(H)};
_.wv=function(){return document.createTextNode("\n")};
Pr=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};
OXd=function(d,H){Y3C(_.XF(d),d,arguments,1)};
_.uB=function(d){for(var H;H=d.firstChild;)d.removeChild(H)};
_.Ip=function(d,H){H.parentNode&&H.parentNode.insertBefore(d,H)};
_.rv=function(d,H){H.parentNode&&H.parentNode.insertBefore(d,H.nextSibling)};
_.nA=function(d){return d&&d.parentNode?d.parentNode.removeChild(d):null};
_.S30=function(d,H){var K=H.parentNode;K&&K.replaceChild(d,H)};
_.EdN=function(d){var H,K=d.parentNode;if(K&&K.nodeType!=11)if(d.removeNode)d.removeNode(!1);else{for(;H=d.firstChild;)K.insertBefore(H,d);_.nA(d)}};
_.Wr=function(d){return d.children!=void 0?d.children:Array.prototype.filter.call(d.childNodes,function(H){return H.nodeType==1})};
_.bXX=function(d){return d.nextElementSibling!==void 0?d.nextElementSibling:_.yNS(d.nextSibling,!0)};
_.yNS=function(d,H){for(;d&&d.nodeType!=1;)d=H?d.nextSibling:d.previousSibling;return d};
_.A5=function(d){return _.y4(d)&&d.nodeType==1};
_.FB=function(d,H){if(!d||!H)return!1;if(d.contains&&H.nodeType==1)return d==H||d.contains(H);if(typeof d.compareDocumentPosition!="undefined")return d==H||!!(d.compareDocumentPosition(H)&16);for(;H&&d!=H;)H=H.parentNode;return H==d};
f06=function(d,H){if(d==H)return 0;if(d.compareDocumentPosition)return d.compareDocumentPosition(H)&2?1:-1;if("sourceIndex"in d||d.parentNode&&"sourceIndex"in d.parentNode){var K=d.nodeType==1,c=H.nodeType==1;if(K&&c)return d.sourceIndex-H.sourceIndex;var p=d.parentNode,g=H.parentNode;return p==g?NAd(d,H):!K&&_.FB(p,H)?-1*DUN(d,H):!c&&_.FB(g,d)?DUN(H,d):(K?d.sourceIndex:p.sourceIndex)-(c?H.sourceIndex:g.sourceIndex)}c=_.XF(d);K=c.createRange();K.selectNode(d);K.collapse(!0);d=c.createRange();d.selectNode(H);
d.collapse(!0);return K.compareBoundaryPoints(_.KF.Range.START_TO_END,d)};
DUN=function(d,H){var K=d.parentNode;if(K==H)return-1;for(;H.parentNode!=K;)H=H.parentNode;return NAd(H,d)};
NAd=function(d,H){for(;H=H.previousSibling;)if(H==d)return-1;return 1};
ANC=function(d){var H,K=arguments.length;if(!K)return null;if(K==1)return arguments[0];var c=[],p=Infinity;for(H=0;H<K;H++){for(var g=[],a=arguments[H];a;)g.unshift(a),a=a.parentNode;c.push(g);p=Math.min(p,g.length)}g=null;for(H=0;H<p;H++){a=c[0][H];for(var e=1;e<K;e++)if(a!=c[e][H])return g;g=a}return g};
_.XF=function(d){return d.nodeType==9?d:d.ownerDocument||d.document};
jC7=function(d){return d.contentDocument||d.contentWindow.document};
_.Br=function(d,H){if("textContent"in d)d.textContent=H;else if(d.nodeType==3)d.data=String(H);else if(d.firstChild&&d.firstChild.nodeType==3){for(;d.lastChild!=d.firstChild;)d.removeChild(d.lastChild);d.firstChild.data=String(H)}else _.uB(d),d.appendChild(_.XF(d).createTextNode(String(H)))};
vd3={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};dSX={IMG:" ",BR:"\n"};TgC=function(d){var H;d.tagName=="A"&&d.hasAttribute("href")||d.tagName=="INPUT"||d.tagName=="TEXTAREA"||d.tagName=="SELECT"||d.tagName=="BUTTON"?H=!d.disabled&&(!d.hasAttribute("tabindex")||HtS(d)):H=d.hasAttribute("tabindex")&&HtS(d);return H};
HtS=function(d){d=d.tabIndex;return typeof d==="number"&&d>=0&&d<32768};
Kb3=function(d){var H=[];$SC(d,H,!0);d=H.join("");d=d.replace(/ \xAD /g," ").replace(/\xAD/g,"");d=d.replace(/\u200B/g,"");d=d.replace(/ +/g," ");d!=" "&&(d=d.replace(/^\s*/,""));return d};
cZg=function(d){var H=[];$SC(d,H,!1);return H.join("")};
$SC=function(d,H,K){if(!(d.nodeName in vd3))if(d.nodeType==3)K?H.push(String(d.nodeValue).replace(/(\r\n|\r|\n)/g,"")):H.push(d.nodeValue);else if(d.nodeName in dSX)H.push(dSX[d.nodeName]);else for(d=d.firstChild;d;)$SC(d,H,K),d=d.nextSibling};
_.pvU=function(d,H,K){if(!H&&!K)return null;var c=H?String(H).toUpperCase():null;return _.sY(d,function(p){return(!c||p.nodeName==c)&&(!K||typeof p.className==="string"&&_.TL(p.className.split(/\s+/),K))},!0)};
_.sY=function(d,H,K){d&&!K&&(d=d.parentNode);for(K=0;d;){if(H(d))return d;d=d.parentNode;K++}return null};
h9=function(d){this.JSC$9297_document_=d||_.KF.document||document};
_.G=h9.prototype;_.G.getElement=function(d){return _.pf(this.JSC$9297_document_,d)};
_.G.$=h9.prototype.getElement;_.G.getElementsByTagName=function(d,H){return(H||this.JSC$9297_document_).getElementsByTagName(String(d))};
_.G.getElementsByTagNameAndClass=function(d,H,K){return LV(this.JSC$9297_document_,d,H,K)};
_.G.$$=h9.prototype.getElementsByTagNameAndClass;_.G.setProperties=ZX7;_.G.JSC$9299_createDom=function(d,H,K){return QCU(this.JSC$9297_document_,arguments)};
_.G.createElement=function(d){return tSd(this.JSC$9297_document_,d)};
_.G.createTextNode=function(d){return this.JSC$9297_document_.createTextNode(String(d))};
_.G.getWindow=function(){return this.JSC$9297_document_.defaultView};
var Rr=function(d){return _.TA0(d.JSC$9297_document_)};
_.G=h9.prototype;_.G.appendChild=function(d,H){d.appendChild(H)};
_.G.append=OXd;_.G.canHaveChildren=Pr;_.G.removeNode=_.nA;_.G.getChildren=_.Wr;_.G.contains=_.FB;_.G=ik.prototype;_.G.getWidth=function(){return this.right-this.left};
_.G.getHeight=function(){return this.bottom-this.top};
_.G.clone=function(){return new ik(this.top,this.right,this.bottom,this.left)};
_.G.contains=function(d){return this&&d?d instanceof ik?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.expand=function(d,H,K,c){_.y4(d)?(this.top-=d.top,this.right+=d.right,this.bottom+=d.bottom,this.left-=d.left):(this.top-=d,this.right+=Number(H),this.bottom+=Number(K),this.left-=Number(c));return this};
_.G.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.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.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.translate=function(d,H){d instanceof _.Bf?(this.left+=d.x,this.right+=d.x,this.top+=d.y,this.bottom+=d.y):(this.left+=d,this.right+=d,typeof H==="number"&&(this.top+=H,this.bottom+=H));return this};
_.G.scale=function(d,H){H=typeof H==="number"?H:d;this.left*=d;this.right*=d;this.top*=H;this.bottom*=H;return this};var zj=function(d,H,K,c){this.left=d;this.top=H;this.width=K;this.height=c};
_.G=zj.prototype;_.G.clone=function(){return new zj(this.left,this.top,this.width,this.height)};
_.G.boundingRect=function(d){var H=Math.max(this.left+this.width,d.left+d.width),K=Math.max(this.top+this.height,d.top+d.height);this.left=Math.min(this.left,d.left);this.top=Math.min(this.top,d.top);this.width=H-this.left;this.height=K-this.top};
_.G.contains=function(d){return d instanceof _.Bf?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.distance=function(d){var H=d.x<this.left?this.left-d.x:Math.max(d.x-(this.left+this.width),0);d=d.y<this.top?this.top-d.y:Math.max(d.y-(this.top+this.height),0);return Math.sqrt(H*H+d*d)};
_.G.getSize=function(){return new _.nB(this.width,this.height)};
_.G.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.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.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.translate=function(d,H){d instanceof _.Bf?(this.left+=d.x,this.top+=d.y):(this.left+=d,typeof H==="number"&&(this.top+=H));return this};
_.G.scale=function(d,H){H=typeof H==="number"?H:d;this.left*=d;this.width*=d;this.top*=H;this.height*=H;return this};var itM,sl,GOL,J9,a5A,qUM,l5S,Tv1,ej3,xSS;_.X2=function(d,H,K){if(typeof H==="string")(H=_.g07(d,H))&&(d.style[H]=K);else for(var c in H){K=d;var p=H[c],g=_.g07(K,c);g&&(K.style[g]=p)}};
itM={};_.g07=function(d,H){var K=itM[H];if(!K){var c=_.hP(H);K=c;d.style[c]===void 0&&(c=(_.oB?"Webkit":_.GZ?"Moz":null)+WiB(c),d.style[c]!==void 0&&(K=c));itM[H]=K}return K};
_.kE=function(d,H){var K=_.XF(d);return K.defaultView&&K.defaultView.getComputedStyle&&(d=K.defaultView.getComputedStyle(d,null))?d[H]||d.getPropertyValue(H)||"":""};
_.s8=function(d,H){return _.kE(d,H)||(d.currentStyle?d.currentStyle[H]:null)||d.style&&d.style[H]};
_.GGM=function(d){return _.s8(d,"position")};
sl=function(d,H,K){if(H instanceof _.Bf){var c=H.x;H=H.y}else c=H,H=K;d.style.left=J9(c,!1);d.style.top=J9(H,!1)};
GOL=function(d){try{return d.getBoundingClientRect()}catch(H){return{left:0,top:0,right:0,bottom:0}}};
_.JA=function(d){var H=_.XF(d),K=new _.Bf(0,0);if(d==(H?_.XF(H):document).documentElement)return K;d=GOL(d);H=Rr(Vy(H));K.x=d.left+H.x;K.y=d.top+H.y;return K};
_.o0N=function(d,H,K){if(H instanceof _.nB)K=H.height,H=H.width;else if(K==void 0)throw Error("oa");d.style.width=J9(H,!0);d.style.height=J9(K,!0)};
J9=function(d,H){typeof d=="number"&&(d=(H?Math.round(d):d)+"px");return d};
a5A=function(d){return qUM(d)};
qUM=function(d){var H=l5S;if(_.s8(d,"display")!="none")return H(d);var K=d.style,c=K.display,p=K.visibility,g=K.position;K.visibility="hidden";K.position="absolute";K.display="inline";d=H(d);K.display=c;K.position=g;K.visibility=p;return d};
l5S=function(d){var H=d.offsetWidth,K=d.offsetHeight,c=_.oB&&!H&&!K;return(H===void 0||c)&&d.getBoundingClientRect?(d=GOL(d),new _.nB(d.right-d.left,d.bottom-d.top)):new _.nB(H,K)};
Tv1=function(d){var H=_.JA(d);d=qUM(d);return new zj(H.x,H.y,d.width,d.height)};
ej3=function(d,H){d=d.style;"opacity"in d?d.opacity=H:"MozOpacity"in d?d.MozOpacity=H:"filter"in d&&(d.filter=H===""?"":"alpha(opacity="+Number(H)*100+")")};
_.O8=function(d,H){d.style.display=H?"":"none"};
_.kG7=function(d){return"rtl"==_.s8(d,"direction")};
xSS=function(d){var H=_.kE(d,"marginLeft"),K=_.kE(d,"marginRight"),c=_.kE(d,"marginTop");d=_.kE(d,"marginBottom");return new ik(parseFloat(c),parseFloat(K),parseFloat(d),parseFloat(H))};
_.n0M=function(d){var H=_.kE(d,"borderLeftWidth"),K=_.kE(d,"borderRightWidth"),c=_.kE(d,"borderTopWidth");d=_.kE(d,"borderBottomWidth");return new ik(parseFloat(c),parseFloat(K),parseFloat(d),parseFloat(H))};var F2=function(d){this.context=d};
F2.prototype.isSupported=function(d){return(d==null?0:d.attributionEnabled)||(d==null?void 0:d.beaconMethod)==="POST"||(d==null?0:d.customHeaders)||(d==null?0:d.customBody)||(d==null?0:d.keepAlive)?!1:!kt(this.context)};
F2.prototype.ping=function(){var d=this;return h1(_.sH.apply(0,arguments).map(function(H){try{var K=d.context.global,c=!1;c=c===void 0?!1:c;K.google_image_requests||(K.google_image_requests=[]);var p=Wgd("IMG",K.document);c&&(p.attributionSrc="");p.src=H;K.google_image_requests.push(p);return!0}catch(g){return!1}}).every(function(H){return H}))};
F2.prototype.pingWithHeadersAndBody=function(d,H,K){this.ping.apply(this,_.ru(_.sH.apply(3,arguments)))};var CgX=function(d){this.context=d};
CgX.prototype.isSupported=function(d){return RjS&&!kt(this.context)&&ZB4(this.context)!==void 0&&!(d==null?0:d.attributionEnabled)&&(d==null?void 0:d.beaconMethod)!=="POST"&&!(d==null?0:d.customHeaders)&&!(d==null?0:d.customBody)};
CgX.prototype.makeBeacon=function(d,H){if(!this.isSupported(H))throw new op;return new Ze(this.context,d)};
var RjS=!1,Ze=function(d,H){this.context=d;this.JSC$9318_urlWithoutToken=H;d=ZB4(this.context);if(d===void 0)throw Error();this.wrappedBeacon=new d(VTC(this),{})},VTC=function(d){d=d.JSC$9318_urlWithoutToken;
return(d.slice(-1)[0]==="&"?d:d+"&")+"pbapi=1"};
Ze.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Ze.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Ze.prototype.setHeader=function(){};
_.H3.Object.defineProperties(Ze.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9318_urlWithoutToken},
set:function(d){this.JSC$9318_urlWithoutToken=d;this.wrappedBeacon.setURL(VTC(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(d){if(d!=="GET")throw new op;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var US7=function(d){this.context=d};
US7.prototype.isSupported=function(d){if((d==null?0:d.attributionEnabled)||(d==null?void 0:d.beaconMethod)==="GET"||(d==null?0:d.customHeaders)||(d==null?0:d.customBody)||(d==null?0:d.keepAlive))return!1;var H;return!kt(this.context)&&((H=this.context.global.navigator)==null?void 0:H.sendBeacon)!==void 0};
US7.prototype.ping=function(){var d=this;return h1(_.sH.apply(0,arguments).map(function(H){var K;return(K=d.context.global.navigator)==null?void 0:K.sendBeacon(H)}).every(function(H){return H}))};
US7.prototype.pingWithHeadersAndBody=function(d,H,K){this.ping.apply(this,_.ru(_.sH.apply(3,arguments)))};var k5=function(d){this.value=d},bk=function(d,H){return h1(d.value).pipe(lk(H))},D$=new k5(!1),UM5=new k5(!0);var FF=function(d){this.value=d;this.releasedSubject=new Go};
FF.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.H3.Object.defineProperties(FF.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9331_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var AAi=["FRAME","IMG","IFRAME"],E5l=/^[01](px)?$/,f$h=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},D61=function(){var d=new f$h;
d.crossDomainLoadedDefault=!0;d.pendingImagesBlockLoad=!0;return d};var hjX=function(d,H){var K=c_F(d);if(K)if(K.onCreativeLoad)K.onCreativeLoad(H);else{var c=H?[H]:[],p=function(g){for(var a=0;a<c.length;++a)try{c[a](1,g)}catch(e){}c={push:function(e){e(1,g)}}};
K.onCreativeLoad=function(g){c.push(g)};
K.setAttribute("data-creative-load-listener","");K.addEventListener("creativeLoad",function(g){p(g.detail)});
_.KF.addEventListener("message",function(g){KcM(K,p,g)})}};var Tj=function(d,H){var K=this;this.global=d;this.parentContext=H;this.JSC$9342_onVisibilityChange=this.document?sE(h1(!0),XU(this.document,"visibilitychange")).pipe(t1(this.parentContext.performanceMonitor,748),IV(function(){return K.getVisibilityState()}),yE()):h1("visible");
this.document?XU(this.document,"DOMContentLoaded").pipe(t1(this.parentContext.performanceMonitor,739),EE(1)):h1(OBX("DOMContentLoaded"))},VDX=function(d){return d.document!==null&&d.document.visibilityState!==void 0};
Tj.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Tj.prototype.querySelector=function(d){return this.document?this.document.querySelector(d):null};
Tj.prototype.querySelectorAll=function(d){return this.document?_.tC(this.document.querySelectorAll(d)):[]};
Tj.prototype.elementFromPoint=function(d,H){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;d=this.document.elementFromPoint(d,H);return d===null?null:new FF(d)};
var G95=function(d,H,K){K=K===void 0?!1:K;if(H.ref===void 0||!d.document)return h1(H).pipe(t1(d.parentContext.performanceMonitor,749));var c=new fz(1),p=function(){c.next(H)};
K||hjX(H.ref,p);jrY(H.ref,p);return c.pipe(t1(d.parentContext.performanceMonitor,749),EE(1))};
_.H3.Object.defineProperties(Tj.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return LVM(this.global,"document")?this.global.document||null:null}}});var pzM=_.y$(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),g1D=_.y$(["./reach_worklet.js"]),iA5=_.y$(["./reach_worklet.js"]),Lb3=_.y$(["./reach_worklet.html"]),MTM=_.y$(["./reach_worklet.js"]),mSU=_.y$(["./reach_worklet.js"]);_.pB(Lb3);_.pB(MTM);_.pB(mSU);var tA={left:0,top:0,width:0,height:0};var wv7,PgM,uOd,I5d,vE,Wb6,BqA,zj0,XpM,JkE,sZM,Fb3;wv7=function(d,H,K,c,p,g,a){var e="";d&&(e+=d+":");K&&(e+="//",H&&(e+=H+"@"),e+=K,c&&(e+=":"+c));p&&(e+=p);g&&(e+="?"+g);a&&(e+="#"+a);return e};
PgM=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Am=function(d){return d.match(PgM)};
_.Ly=function(d,H){return d?H?decodeURI(d):decodeURIComponent(d):d};
uOd=function(d){d=_.Am(d)[1]||null;!d&&_.KF.self&&_.KF.self.location&&(d=_.KF.self.location.protocol.slice(0,-1));return d?d.toLowerCase():""};
_.jD=function(d){return _.Ly(_.Am(d)[3]||null,!0)};
_.kp=function(d){return _.Ly(_.Am(d)[5]||null,!0)};
_.h$i=function(d){var H=d.indexOf("#");return H<0?null:d.slice(H+1)};
I5d=function(d){d=_.Am(d);return wv7(d[1],d[2],d[3],d[4])};
_.rZ7=function(d){d=_.Am(d);return wv7(d[1],null,d[3],d[4])};
_.yK=function(d){d=_.Am(d);return wv7(null,null,null,null,d[5],d[6],d[7])};
_.dV=function(d){var H=d.indexOf("#");return H<0?d:d.slice(0,H)};
vE=function(d,H){d=_.Am(d);H=_.Am(H);return d[3]==H[3]&&d[1]==H[1]&&d[4]==H[4]};
Wb6=function(d,H){if(d){d=d.split("&");for(var K=0;K<d.length;K++){var c=d[K].indexOf("="),p=null;if(c>=0){var g=d[K].substring(0,c);p=d[K].substring(c+1)}else g=d[K];H(g,p?Hb(p):"")}}};
BqA=function(d){var H=d.indexOf("#");H<0&&(H=d.length);var K=d.indexOf("?");if(K<0||K>H){K=H;var c=""}else c=d.substring(K+1,H);return[d.slice(0,K),c,d.slice(H)]};
zj0=function(d,H){return H?d?d+"&"+H:H:d};
_.Xv6=function(d,H){if(!H)return d;d=BqA(d);d[1]=zj0(d[1],H);return d[0]+(d[1]?"?"+d[1]:"")+d[2]};
_.JZA=function(d,H,K){if(Array.isArray(H))for(var c=0;c<H.length;c++)_.JZA(d,String(H[c]),K);else H!=null&&K.push(d+(H===""?"":"="+_.ES(H)))};
_.nj=function(d){var H=[],K;for(K in d)_.JZA(K,d[K],H);return H.join("&")};
_.f6=function(d,H){H=_.nj(H);return _.Xv6(d,H)};
_.Qd=function(d,H,K){K=K!=null?"="+_.ES(K):"";return _.Xv6(d,H+K)};
XpM=function(d,H,K,c){for(var p=K.length;(H=d.indexOf(K,H))>=0&&H<c;){var g=d.charCodeAt(H-1);if(g==38||g==63)if(g=d.charCodeAt(H+p),!g||g==61||g==38||g==35)return H;H+=p+1}return-1};
JkE=/#|$/;_.ZB=function(d,H){var K=d.search(JkE),c=XpM(d,0,H,K);if(c<0)return null;var p=d.indexOf("&",c);if(p<0||p>K)p=K;c+=H.length+1;return Hb(d.slice(c,p!==-1?p:0))};
sZM=/[?&]($|#)/;_.$W=function(d,H){for(var K=d.search(JkE),c=0,p,g=[];(p=XpM(d,c,H,K))>=0;)g.push(d.substring(c,p)),c=Math.min(d.indexOf("&",p)+1||K,K);g.push(d.slice(c));return g.join("").replace(sZM,"$1")};
_.Qj=function(d,H,K){return _.Qd(_.$W(d,H),H,K)};
Fb3=function(d){var H=BqA(window.location.href),K=H[1],c=[];K&&K.split("&").forEach(function(p){var g=p.indexOf("=");g=g>=0?p.slice(0,g):p;d.hasOwnProperty(g)||c.push(p)});
H[1]=zj0(c.join("&"),_.nj(d));return H[0]+(H[1]?"?"+H[1]:"")+H[2]};var uBC=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(uBC,_.He);uBC.prototype.getVersion=function(){return _.IB(this,2)};var PrC=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(PrC,_.He);var U_1=function(d,H){return _.UY(d,2,H)},wzh=function(d,H){return _.UY(d,3,H)};
PrC.prototype.getModel=function(){return _.IB(this,4)};
var LcF=function(d,H){return _.UY(d,4,H)},VXY=function(d,H){return _.UY(d,5,H)},m_C=function(d,H){return _.UY(d,9,H)},Rz5=function(d,H){return L1(d,10,H)},CrL=function(d,H){return _.gk(d,11,H)},hz4=function(d,H){return _.UY(d,1,H)},MXi=function(d,H){return _.gk(d,7,H)};var x_E="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var N6=function(d,H,K,c){d=d===void 0?window:d;H=H===void 0?null:H;K=K===void 0?new A8l:K;c=c===void 0?GiX():c;yC7.call(this);var p=this;this.global=d;this.debugChannel=H;this.performanceMonitor=K;this.onPageHide=DjY(function(){return XU(p.global,"pagehide")}).pipe(t1(this.performanceMonitor,941));
this.onLoad=DjY(function(){return XU(p.global,"load")}).pipe(t1(this.performanceMonitor,738),EE(1));
this.onResize=DjY(function(){return XU(p.global,"resize")}).pipe(t1(this.performanceMonitor,741));
this.onMessage=DjY(function(){return XU(p.global,"message")}).pipe(t1(this.performanceMonitor,740));
this.document=new Tj(this.global,this);this.timeProvider=new jEX(new dUA(this.intrinsicFunctionNamespace,this.performanceMonitor),new vYl(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new Dfg(new $U6(this),new CgX(this),new q5(this,new pBM(this)),new q5(this,new US7(this)),new q5(this,new F2(this)))};
_.m(N6,yC7);var kt=function(d){var H=d.global;return!!d.global.HTMLFencedFrameElement&&!!H.fence&&typeof H.fence.reportEvent==="function"};
_.G=N6.prototype;_.G.reportFencedFrameEvent=function(d){kt(this)&&this.global.fence.reportEvent(d)};
_.G.getOnBackgrounded=function(){return this.onPageHide.pipe(t1(this.performanceMonitor,942),lk(this.queue),IV(function(){}))};
_.G.postMessage=function(d,H,K){K=K===void 0?[]:K;this.global.postMessage(d,H,K)};
_.G.getWidth=function(){return MuE(this.global)?this.global.width:0};
_.G.getHeight=function(){return MuE(this.global)?this.global.height:0};
_.G.isMobile=function(){return iXg()||G3C()};
var Z$=function(d,H){try{var K=lBh(H,d.global,d.isMobile());return{left:K.left,top:K.top,width:K.getWidth(),height:K.getHeight()}}catch(c){return tA}};
N6.prototype.validate=function(){var d=this.beaconFactory.isSupported()||kt(this);return this.global&&this.timeProvider.available()&&d};
var QrM=function(d){return(d=r_4(d.global))?lX(d):null};
_.H3.Object.defineProperties(N6.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(d){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!MuE(this.global.top)}},
inIframe:{configurable:!0,enumerable:!0,get:function(){return this.inCrossDomainIframe||this.global.top!==this.global}},
scrollY:{configurable:!0,enumerable:!0,get:function(){return this.global.scrollY}},
MutationObserver:{configurable:!0,enumerable:!0,get:function(){return this.intrinsicFunctionNamespace.MutationObserver}},
ResizeObserver:{configurable:!0,enumerable:!0,get:function(){return this.intrinsicFunctionNamespace.ResizeObserver}}});_.ZtB=!_.iv&&!_.q5D();var hhL=function(d){return d};var MD4=function(d){return d.pipe(FU(function(H){var K=H.endOfSessionReason;var c;return((c=H.viewable)==null?void 0:c.extrapolateToNow().value)||K!=void 0}),EE(1),OE())};var FcL=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},ZAM=function(d){var H=d.sequenceNumber.toString(10).padStart(2,"0");
H=""+d.startTime+H;d.sequenceNumber<99&&d.sequenceNumber++;return H};var RhX=iX($5(function(d){return d.endOfSessionReason===void 0}),IV(function(d){return Object.assign({},d,{timestamps:mV(d)})}),FU(function(d){var H=d.viewable;
d=d.timestamps;var K;return(K=H==null?void 0:H.extrapolateUsingTimestampMap(d).value)!=null?K:!1}),IV(function(d){var H=d.beaconFactory;
var K=d.timestampedExposureHistory;var c=d.timeOnScreen;var p=d.binaryContext;d=d.timestamps;if(H===void 0||K===void 0||c===void 0||p===void 0)return!1;if(c.extrapolateUsingTimestampMap(d).value.every(function(g){return g>=0}))return!0;
K=K.map(function(g){return g.timestamp+":"+g.value}).join(",");
c=Tk5({bin:p,tos:c},d);H.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+c+("&eh="+K)).sendNow();return!0}),$5(function(d){return!d}),OE());var tXl=function(d){return{id:d.pingId,mcvt:d.maxConsecutiveViewTime,p:d.creativePosition,asp:d.adSpeedPosition,tm:d.totalMeasurementTime,tu:d.totalUnviewedTime,mtos:d.maxTimeOnScreen,tos:d.timeOnScreen,v:d.binaryVersion,bin:d.binaryContext,avms:d.measurementStrategy,bs:d.browserSize,mc:d.maximumExposure,"if":d.crossDomainIframeState,vu:d.delayedImpressionJsState,app:d.inApp,mse:d.mraidError,mtop:d.mraidSituation,itpl:d.injectedTemplateId,adk:d.adKey,exk:d.awbidKey,rs:d.requestSource,la:d.isLargeAd,
cr:d.isContentRecommendationAd,uach:d.userAgentClientHints,vs:d.viewState,r:d.reasonCode,pay:d.hasCpmavUrl,co:d.clientPingOrderCounter,rst:d.adRenderStartTime,rpt:d.adRenderPeriodTime,isd:d.initialScrollDepth,lsd:d.loadedScrollDepth,context:d.errorContext,msg:d.errorMessage,stack:d.errorStack,name:d.errorName,ec:d.hasElementChanged,sfr:d.strategyFailureReasons,met:d.creativeSearchResult,wmsd:d.webMeasurementStartDiagnostic,pv:d.pageVisible,epv:d.eosPageVisible,pbe:d.inStatefulBeaconExperiment,fle:d.inFetchLaterBeaconExperiment,
vae:d.inViewableAttributionExperiment,spb:d.supportsPendingBeacon,sfl:d.supportsFetchLater,ffslot:d.isFencedFrameSlotTurtlex,reach:d.sharedStorageReachMode,io2:d.v2VisibilityBitVector,rxdbg:d.rxDebugger,omida:d.omidAppId,omidp:d.omidPartner,omidpv:d.omidPartnerVersion,omidor:d.omidOcclusionReasons,omidv:d.omidVersion,omids:d.omidSessionType,omidam:d.omidAccessMode,omidct:d.omidCreativeType,omidia:d.omidInApp,omiddc:d.omidDeviceCategory,omidlat:d.omidLastActivity,omiddit:d.omidDeviceIdleTime,qid:d.errorEscapedQueryId}};var LSD=function(d){var H=[];return d.pipe(IV(function(K){var c=K.beaconFactory,p=K.fetchBeaconFactory,g=K.timeOnScreen,a=K.timeOnScreenUrlPrefixes,e=K.payloadMapper,k=K.timeOnScreenPingId,C=K.timeOnScreenReason,R=K.urlSerializer,V=K.viewable,U=K.hasImpressionFired,L=K.inStatefulBeaconExperiment,w=K.supportsPendingBeacon,W=K.supportsFetchLater,J=K.turtlexReportEventData;if(!K.geometryMeasurable||!U||K.maxTimeOnScreen===void 0||g===void 0||a===void 0||e===void 0||k===void 0||R===void 0||c===void 0)return!1;
if(K.isTurtlex){if(C===void 0)return!1;a=K.reportFencedFrameEvent;if(!a)return!1;a({eventType:"active-view-time-on-screen",eventData:J!=null?J:"",destination:["buyer"]});return!0}if(!(L||W||C))return!1;J=mV(K);var F;V=(F=V==null?void 0:V.extrapolateUsingTimestampMap(J).value)!=null?F:!1;F=R(Object.assign({},K,{pingId:k,viewState:V?4:3,reasonCode:C!=null?C:"u",payloadMapper:e,urlPrefixes:a}),J);if(L){for(;H.length>a.length;)K=void 0,(K=H.shift())==null||K.deactivate();F.forEach(function(A,E){E>=H.length?
H.push(c.makeBeacon(A)):H[E].url=A});
return w&&p&&C!==void 0?(F.forEach(function(A){p.makeBeacon(A).sendNow()}),!0):C!==void 0}if(w&&p&&C!==void 0)return F.forEach(function(A){p.makeBeacon(A).sendNow()}),!0;
if(W&&p){for(;H.length>a.length;)w=void 0,(w=H.shift())==null||w.deactivate();var Y=R(Object.assign({},K,{pingId:k,viewState:V?4:3,reasonCode:C!=null?C:"u",payloadMapper:e,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),J)[0];F.forEach(function(A,E){E>=H.length?H.push(c.makeBeacon(Y,{endOfSession:!0})):H[E].url=Y});
return C!==void 0?(F.forEach(function(A){p.makeBeacon(A).sendNow()}),!0):C!==void 0}return C!==void 0?(F.forEach(function(A){c.makeBeacon(A).sendNow()}),!0):!1}),$5(function(K){return!K}),OE())};var mMC=iX(FU(function(d){return d.immediateUrlPrefixes!==void 0&&d.payloadMapper!==void 0&&d.urlSerializer!==void 0&&d.inferredPingId!==void 0&&d.beaconFactory!==void 0}),FU(function(d){return D_5(d)!==null}),bAE(function(d){return d.activeViewUnmeasurableEvent},function(d){return d.emit}),IV(function(d){if(d.isTurtlex){var H=d.reportFencedFrameEvent;
if(H){var K;H({eventType:"active-view-unmeasurable",eventData:(K=d.turtlexReportEventData)!=null?K:"",destination:["buyer"]})}}else{K=void 0;var c=D_5(d);if(c==="x"){var p,g=(p=d.geometricMeasurementErrors)!=null?p:d.contextValidationErrors;g&&(H=g.stack,K=g.message)}d.urlSerializer(Object.assign({},d,{urlPrefixes:d.immediateUrlPrefixes,payloadMapper:d.payloadMapper,pingId:d.inferredPingId,viewState:2,reasonCode:c,errorMessage:K,errorStack:H}),mV(d)).forEach(function(a){d.beaconFactory.makeBeacon(a).sendNow()})}}),
EE(1),OE());var fBl=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var CUY=iX(FU(function(d){return d.payloadMapper!==void 0&&d.immediateUrlPrefixes!==void 0&&d.urlSerializer!==void 0&&d.inferredPingId!==void 0&&d.beaconFactory!==void 0}),IV(function(d){return Object.assign({},d,{timestamps:mV(d)})}),FU(function(d){var H=d.viewable;
var K=d.hasImpressionFired;d=d.timestamps;var c;return!!K&&((c=H==null?void 0:H.extrapolateUsingTimestampMap(d).value)!=null?c:!1)}),bAE(function(d){return d.activeViewViewableEvent},function(d){return d.emit}),IV(function(d){var H=d.beaconFactory,K=d.turtlexReportEventData;
if(d.isTurtlex){var c=d.reportFencedFrameEvent;if(!c)return!1;c({eventType:"active-view-viewable",eventData:K!=null?K:"",destination:["buyer"]});return!0}K=d.urlSerializer(Object.assign({},d,{urlPrefixes:d.immediateUrlPrefixes,payloadMapper:d.payloadMapper,pingId:d.inferredPingId,viewState:4,reasonCode:"v"}),d.timestamps);(c=d.cpmavUrls)&&c.length>0&&d.viewUrlSerializer&&d.viewUrlSerializer(c,d).forEach(function(p){H.makeBeacon(p).sendNow()});
(c=d.viewableRelayUrls)&&c.length>0&&d.viewUrlSerializer&&d.viewUrlSerializer(c,d).forEach(function(p){H.makeBeacon(p).sendNow()});
K.forEach(function(p){H.makeBeacon(p,{attributionEnabled:d.isViewableAttributionEnabled}).sendNow()});
return!0}),$5(function(d){return!d}),OE());var tyY=IV(function(d){return[d.value.topWindowViewportExternalGeometry.width,d.value.topWindowViewportExternalGeometry.height]});var To=function(d,H){this.callback=d;this.options=H;this.intersectionObserverV2=this.intersectionObserverV1=null},L5i=function(d,H){H?d.intersectionObserverV2||(H=Object.assign({},d.options,{delay:100,
trackVisibility:!0}),d.intersectionObserverV2=new IntersectionObserver(d.callback,H)):d.intersectionObserverV1||(d.intersectionObserverV1=new IntersectionObserver(d.callback,d.options))},TqB=function(d,H){d=H?d.intersectionObserverV2:d.intersectionObserverV1;
if(!d)throw new bFl;return d};
To.prototype.observe=function(d,H){TqB(this,d).observe(H)};
To.prototype.unobserve=function(d,H){TqB(this,d).unobserve(H)};
To.prototype.disconnect=function(d){TqB(this,d).disconnect()};
To.prototype.takeRecords=function(d){return TqB(this,d).takeRecords()};var qef={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:tA,topWindowViewportExternalGeometry:tA,measurementRequests:new Go,elementGeometrySourceName:"ns",elementGeometry:tA,intersectionGeometry:tA,viewportLocalAppOffset:{x:0,y:0}};var rtl=Y5(iX(IV(function(d){var H;return(H=d.exposureOverride)!=null?H:mt1(d)}),IV(function(d){return isFinite(d)?d:0}))),F5C=Y5(iX(IV(function(d){var H;
return(H=d.exposureOverride)!=null?H:mt1(d)}),IV(function(d){return isFinite(d)?d:-1})));var t9=function(d,H){this.a=d;this.b=H;if(d.clock.timeline!==H.clock.timeline)throw Error();};
t9.prototype.equivalentTo=function(d){return d instanceof t9?this.a.equivalentTo(d.a)&&this.b.equivalentTo(d.b):!1};
t9.prototype.extrapolateToTime=function(d){var H=this.a.extrapolateToTime(d).value,K=this.b.extrapolateToTime(d).value;return{timestamp:d,value:[H,K]}};
_.H3.Object.defineProperties(t9.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var d=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),H=this.a.lastMeasurement.timestamp.equals(d)?this.a.lastMeasurement.value:this.a.extrapolateToTime(d).value,K=this.b.lastMeasurement.timestamp.equals(d)?this.b.lastMeasurement.value:this.b.extrapolateToTime(d).value;return{timestamp:d,value:[H,K]}}}});var Yt=function(d,H){this.input=d;this.mapFunction=H;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Yt.prototype.equivalentTo=function(d){return d instanceof Yt?this.input.equivalentTo(d.input)&&this.mapFunction===d.mapFunction:!1};
Yt.prototype.extrapolateToTime=function(d){d=this.input.extrapolateToTime(d);return{timestamp:d.timestamp,value:this.mapFunction(d.value)}};
_.H3.Object.defineProperties(Yt.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Ol=function(){};
Ol.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Ol.prototype.extrapolateUsingTimestampMap=function(d){var H=this.clock.timeline,K,c=(K=d.get(H))!=null?K:this.clock.now();d.set(H,c);return this.extrapolateToTime(c)};
Ol.prototype.map=function(d){return new QZ7(this,d)};
Ol.prototype.joinWith=function(d){return new tT3(this,d)};
var tT3=function(){t9.apply(this,arguments);this.map=Ol.prototype.map;this.joinWith=Ol.prototype.joinWith;this.extrapolateToNow=Ol.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Ol.prototype.extrapolateUsingTimestampMap};
_.m(tT3,t9);var QZ7=function(){Yt.apply(this,arguments);this.map=Ol.prototype.map;this.joinWith=Ol.prototype.joinWith;this.extrapolateToNow=Ol.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Ol.prototype.extrapolateUsingTimestampMap};
_.m(QZ7,Yt);var EY=function(d,H){this.lastMeasurement=H;this.extrapolateToNow=Ol.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Ol.prototype.extrapolateUsingTimestampMap;this.map=Ol.prototype.map;this.joinWith=Ol.prototype.joinWith;this.clock=d};
EY.prototype.equivalentTo=function(d){return d.active};
EY.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.H3.Object.defineProperties(EY.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var QHM=IV(function(d){if(d.value.viewportGeometrySourceName==="omid"){if(d.value.elementGeometrySourceName==="nio")return"omio";if(d.value.elementGeometrySourceName==="geo")return"omgeo"}return d.value.elementGeometrySourceName==="geo"||d.value.elementGeometrySourceName==="nio"?d.value.viewportGeometrySourceName:d.value.elementGeometrySourceName});var Pjl=iX(FU(function(d){return!isNaN(d)}),j2(function(d,H){return isNaN(d)?H:Math.min(d,H)},NaN),yE());var W5D=Y5(iX(IV(function(d){return d.intersectionGeometry.width*d.intersectionGeometry.height/(d.exposedViewportLocalGeometry.width*d.exposedViewportLocalGeometry.height)}),IV(function(d){return isFinite(d)?Math.min(1,d):0})));var TcC=iX(Y5(IV(function(d){d=d.exposureOverride?d.elementGeometry.width*d.elementGeometry.height*d.exposureOverride/(d.topWindowViewportExternalGeometry.width*d.topWindowViewportExternalGeometry.height):d.intersectionGeometry.width*d.intersectionGeometry.height/(d.topWindowViewportExternalGeometry.width*d.topWindowViewportExternalGeometry.height);return isFinite(d)?d:0})));var SeD=function(d,H){var K=this;this.timeProvider=d;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=H.pipe(yE()).subscribe(function(c){ytM(K);K.measurementRequestObserver=c})},blF=function(d,H){ytM(d);
d.lastMeasurementRequest=d.timeProvider.setTimeout(function(){var K;return void((K=d.measurementRequestObserver)==null?void 0:K.next())},H)},ytM=function(d){d.lastMeasurementRequest!==null&&d.timeProvider.clearTimeout(d.lastMeasurementRequest);
d.lastMeasurementRequest=null};
SeD.prototype.dispose=function(){ytM(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var YUl=function(){};var k9C=function(d,H){this.context=d;this.strategies=H};
_.m(k9C,YUl);k9C.prototype.buildGeometrySource=function(d,H){var K=this.strategies.map(function(g){return g.buildGeometrySource(d,H)}),c=jHC(K.map(function(g){return g.geometrySource})),p=c.capturedErrors.pipe(OtU());
return{geometrySource:c.chain.pipe(lk(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:p,strategyErrors:c.capturedErrors}].concat(_.ru(K.map(function(g){return g.additionalOutputs}))))}};
var OtU=function(){return j2(function(d,H){H instanceof Pf?d.push(H.measurementStrategyFailureReason):d.push(-1);return d},[])};var n25=function(d,H){this.context=d;this.poller=H};
_.m(n25,YUl);n25.prototype.buildGeometrySource=function(d,H){var K=vmC(H6F(this.context,this.poller),ap1(this.context,H.requestSource));return{geometrySource:AtX(d.measurableCreative.pipe(K),H.inApp),additionalOutputs:{}}};var xMl=function(d,H,K){K=K===void 0?CjY(d,H):K;this.context=d;this.intersectionObserverStrategy=K};
_.m(xMl,YUl);xMl.prototype.buildGeometrySource=function(d,H){var K=this.intersectionObserverStrategy(H.useV2);return{geometrySource:AtX(d.measurableCreative.pipe(K,RK5(this.context)),H.inApp),additionalOutputs:{}}};var SUC=function(d,H,K){var c=c===void 0?Symbol():c;this.element=d;this.immediateUrls=H;this.timeOnScreenUrls=K;this.symbol=c};var OlX=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),g24=Object.freeze([1,.75,OlX.exposureThreshold,OlX.largeAdExposureThreshold,0]);var bu4=function(d,H){H=H===void 0?36E5:H;var K=K===void 0?!0:K;this.creatives=new Go;this.elementsToUnregister=new Go;this.elementMap=new Map;var c=new N6(window,null);c.beaconFactory=new q5(c,new F2(c));ehf(c,this.creatives,this.elementsToUnregister,d,H,K).subscribe()},f35=function(d,H,K,c){if(!d.elementMap.has(H)){var p=new FF(H);
d.elementMap.set(H,p);d.creatives.next(new SUC(p,K,c))}},D95=function(d,H){d.elementsToUnregister.next(H);
var K=d.elementMap.get(H);K!==void 0&&(K.release(),d.elementMap.delete(H))};var k65=function(d){var H=d.url;d=d.uaDataValues;this.JSC$9447_url_=H;this.uaDataValues_=d;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var K=/[?&]([^&=]+)=([^&]*)/g;d=K.exec(H);)this.urlParamValues_[d[1]]=d[2]},xkF=function(d){d=d.uaDataValues_;
if(!d)return"";var H=fB("uap",d.platform)+fB("uapv",d.platformVersion)+fB("uafv",d.uaFullVersion)+fB("uaa",d.architecture)+fB("uam",d.model)+fB("uab",d.bitness);d.fullVersionList&&(H+="&uafvl="+encodeURIComponent(d.fullVersionList.map(function(K){return encodeURIComponent(K.brand)+";"+encodeURIComponent(K.version)}).join("|")));
d.wow64!=null&&(H+="&uaw="+Number(d.wow64));return H.slice(1)};var E07=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(E07,_.He);E07.prototype.getId=function(){return _.IB(this,1)};var SR=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(SR,_.He);SR.prototype.getSeconds=function(){return PG(this,1)};
SR.prototype.setSeconds=function(d){return _.D5(this,1,pt(d),"0")};_.z_=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(_.z_,_.He);_.z_.prototype.getSeconds=function(){return PG(this,1)};
_.z_.prototype.setSeconds=function(d){return _.D5(this,1,pt(d),"0")};
_.yZ7=function(d){var H=Number(WG(d,1));d=_.$1(d,2);return new Date(H*1E3+d/1E6)};var El=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(El,_.He);El.prototype.getUrl=function(){return _.IB(this,1)};
El.prototype.setUrl=function(d){return _.Sn(this,1,d)};
El.prototype.getHeight=function(){return _.$1(this,2)};
El.prototype.getWidth=function(){return _.$1(this,3)};var yd=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(yd,_.He);yd.prototype.getAspectRatio=function(){return uv(this,1)};
yd.prototype.getDuration=function(){return _.gF(this,SR,2)};var btg=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(btg,_.He);var NqC=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(NqC,_.He);var DSU=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(DSU,_.He);var f5M=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(f5M,_.He);var AZB=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(AZB,_.He);var jZl=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(jZl,_.He);var v00=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(v00,_.He);var dN7=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(dN7,_.He);var HcX=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(HcX,_.He);var bB=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(bB,_.He);var N5=[2,4,5,6,7];var $Nl=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m($Nl,_.He);var MJ=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(MJ,_.He);_.G=MJ.prototype;_.G.getId=function(){return _.gF(this,E07,1)};
_.G.getName=function(){return _.IB(this,2)};
_.G.setDescription=function(d){return _.Sn(this,3,d)};
_.G.getUrl=function(){return _.IB(this,8)};
_.G.setUrl=function(d){return _.Sn(this,8,d)};
var De=function(d){return _.dk(d,El,10,_.Hz())};
MJ.prototype.getOwner=function(d){var H=_.ST(this,40,_.k0,3,!0);yCM(H,d);return H[d]};
MJ.prototype.getVersion=function(){return PG(this,45)};
var fV=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(fV,_.He);_.Kr3=[0,TUl,tYC];_.cLU=[0,TUl,tYC];var peS=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(peS,_.He);var A9=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(A9,_.He);A9.prototype.getStatus=function(){return _.rK(this,1)};
A9.prototype.removeItem=function(d){return KkC(this,2,d)};var gOC=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(gOC,_.He);gOC.prototype.getName=function(){return _.IB(this,8)};var jR=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(jR,_.He);jR.prototype.getCommand=function(){return _.rK(this,1)};
jR.prototype.getSource=function(){return _.gF(this,gOC,2)};
jR.prototype.setVisible=function(d){return _.zA(this,5,d)};
jR.prototype.removeItem=function(d){return KkC(this,7,d)};var icA=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(icA,_.He);icA.prototype.getCommand=function(){return _.rK(this,1)};
icA.prototype.removeItem=function(d){return KkC(this,4,d)};
var GCd=_.aK(icA);var vr=function(d,H,K){K=K===void 0?Error():K;var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=d;H+=":";K instanceof Error?(this.message=H+K.message,this.stack=K.stack||""):(this.message=H+String(K),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(vr,Error);_.h_=function(){this.JSC$9505_disposed_=this.JSC$9505_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.h_.prototype.JSC$9505_disposed_=!1;_.h_.prototype.isDisposed=function(){return this.JSC$9505_disposed_};
_.h_.prototype.dispose=function(){this.JSC$9505_disposed_||(this.JSC$9505_disposed_=!0,this.disposeInternal())};
_.h_.prototype[Symbol.dispose]=function(){this.dispose()};
_.q_=function(d,H){d.addOnDisposeCallback(_.hO(_.AA,H))};
_.h_.prototype.addOnDisposeCallback=function(d,H){this.JSC$9505_disposed_?H!==void 0?d.call(H):d():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),H&&(d=d.bind(H)),this.onDisposeCallbacks_.push(d))};
_.h_.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var dN=function(d){_.h_.call(this);this.wpc=d};
_.m(dN,_.h_);dN.prototype.vA7=function(){return this.wpc.f()};
dN.prototype.non=function(d){return this.wpc.c(d)};
dN.prototype.c8=function(d){return this.wpc.m(rmX(d))};
dN.prototype.ijt=function(d){return this.wpc.mws(rmX(d))};
var vf=function(d){_.h_.call(this);var H=this;this.vm=d;this.r4f="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.bx3=void 0;this.nAF=this.vm.p;this.njZ=this.mg4.bind(this);this.addOnDisposeCallback(function(){return void oOM(H)})};
_.m(vf,_.h_);var qH0=function(d){var H;return _.l(function(K){if(K.nextAddress==1){if(!d.vm.wpc)throw new vr(30,"NWA");return d.ogQ?K.return(d.ogQ):K.yield(d.vm.wpc(),2)}H=K.yieldResult;d.ogQ=new dN(H);return K.return(d.ogQ)})};
vf.prototype.snapshot=function(d){return this.vm.s(Object.assign({},d.wF&&{c:d.wF},d.zqc&&{s:d.zqc},d.p9k!==void 0&&{p:d.p9k}))};
vf.prototype.mg4=function(d){this.vm.e(d)};
vf.prototype.cPw=function(d,H){return this.vm.c(d,H,!1)};
var oOM=function(d){d.bx3!==void 0&&(d.r4f.forEach(function(H){var K;(K=d.bx3)==null||K.removeEventListener(H,d.njZ)}),d.bx3=void 0)};
vf.prototype.wDb=function(){return this.vm.l()};var H9=function(){_.h_.apply(this,arguments);this.hEv=1};
_.m(H9,_.h_);H9.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.hEv++;return this};
H9.prototype.dispose=function(){--this.hEv||_.h_.prototype.dispose.call(this)};var awg=function(d){this.zVD=d;d.addNewEventMetric("/client_streamz/bg/frs",_.pA("mk"))};
awg.prototype.record=function(d,H){this.zVD.record("/client_streamz/bg/frs",d,H)};
var lwB=function(d){this.peD=d;d.addNewEventMetric("/client_streamz/bg/wrl",_.pA("mn"),cz("ac"),cz("sc"),_.pA("rk"),_.pA("mk"))};
lwB.prototype.record=function(d,H,K,c,p,g){this.peD.record("/client_streamz/bg/wrl",d,H,K,c,p,g)};
var e_3=function(d){this.bqD=d;d.addNewCounter("/client_streamz/bg/ec",_.pA("en"),_.pA("mk"))};
e_3.prototype.increment=function(d,H){this.bqD.JSC$9758_incrementCounter("/client_streamz/bg/ec",d,H)};
var kCM=function(d){this.vdP=d;d.addNewEventMetric("/client_streamz/bg/el",_.pA("en"),_.pA("mk"))};
kCM.prototype.record=function(d,H,K){this.vdP.record("/client_streamz/bg/el",d,H,K)};
var xNX=function(d){this.weD=d;d.addNewCounter("/client_streamz/bg/cec",cz("ec"),_.pA("mk"))};
xNX.prototype.increment=function(d,H){this.weD.JSC$9758_incrementCounter("/client_streamz/bg/cec",d,H)};
var nO6=function(d){this.lRr=d;d.addNewCounter("/client_streamz/bg/po/csc",cz("cs"),_.pA("mk"))};
nO6.prototype.increment=function(d,H){this.lRr.JSC$9758_incrementCounter("/client_streamz/bg/po/csc",d,H)};
var C_0=function(d){this.kHI=d;d.addNewCounter("/client_streamz/bg/po/ctav",_.pA("av"),_.pA("mk"))};
C_0.prototype.increment=function(d,H){this.kHI.JSC$9758_incrementCounter("/client_streamz/bg/po/ctav",d,H)};
var R_6=function(d){this.sJQ=d;d.addNewCounter("/client_streamz/bg/po/cwsc",_.pA("su"),_.pA("mk"))};
R_6.prototype.increment=function(d,H){this.sJQ.JSC$9758_incrementCounter("/client_streamz/bg/po/cwsc",d,H)};var cXE=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(cXE,_.He);var K1l=function(d,H){return _.NS(d,3,H,l0M)};var VEd=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(VEd,_.He);var UN7=[1,2,3];var h_M=[0,UN7,_.yeC,Yzf,Eof];var Lr0=[0,_.y8,[0,sAD,_.YV]];var ME3=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(ME3,_.He);var mNA=[1,2,3];var weS=[0,mNA,QAl,Fk4,_.bv,Lr0];var P_N=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(P_N,_.He);var uaS=[0,_.y8,h_M,weS];var IwM=[0,_.Eu];var rL3=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(rL3,_.He);var Wr7=[0,_.Eu,-1,_.S3];var BS0=[0,_.Eu,-1,_.Ou,_.S3];var z_X=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(z_X,_.He);var Xel=[1,2,3];var JL3=[0,Xel,_.bv,Wr7,_.bv,BS0,_.bv,IwM];var sKN=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(sKN,_.He);sKN.prototype.JSC$9578_serializeBinary=FrX([0,_.Eu,JL3,b2C,_.y8,uaS,O2F,SzX]);var Fr6=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Fr6,_.He);var QKM=function(d){var H=new sKN;H=_.UY(H,1,d.JSC$9694_metricName);var K=ZcA(d);H=_.NS(H,3,K,_.qS);K=[];for(var c=[],p=_.q(d.cellMap.keys()),g=p.next();!g.done;g=p.next())c.push(g.value.split(","));for(p=0;p<c.length;p++){g=c[p];for(var a=d.cellType,e=d.getCells(g)||[],k=[],C=0;C<e.length;C++){var R=e[C],V=R&&R.cellValue;R=new ME3;switch(a){case 3:V=Number(V);Number.isFinite(V)&&xr(R,1,mNA,pt(V));break;case 2:xr(R,2,mNA,_.O3(Number(V)))}k.push(R)}a=k;for(e=0;e<a.length;e++){k=a[e];C=new P_N;k=_.eE(C,
2,k);C=[];R=TS3(d);for(V=0;V<R.length;V++){var U=R[V],L=g[V],w=new VEd;switch(U){case 3:xr(w,1,UN7,aZ(String(L)));break;case 2:U=Number(L);Number.isFinite(U)&&xr(w,2,UN7,_.jS(U));break;case 1:xr(w,3,UN7,odF(L==="true"))}C.push(w)}L1(k,1,C);K.push(k)}}L1(H,4,K);return H};var tEM=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 H=d.substring(d.indexOf("://")+3),K=H.indexOf("/");K!=-1&&(H=H.substring(0,K));K=d.substring(0,d.indexOf("://"));if(!K)throw Error("qa`"+d);if(K!=="http"&&K!=="https"&&K!=="chrome-extension"&&K!=="moz-extension"&&
K!=="file"&&K!=="android-app"&&K!=="chrome-search"&&K!=="chrome-untrusted"&&K!=="chrome"&&K!=="app"&&K!=="devtools")throw Error("ra`"+K);d="";var c=H.indexOf(":");if(c!=-1){var p=H.substring(c+1);H=H.substring(0,c);if(K==="http"&&p!=="80"||K==="https"&&p!=="443")d=":"+p}return K+"://"+H+d};var Oc3=function(d,H,K){var c=String(_.KF.location.href);return c&&d&&H?[H,YHU(tEM(c),d,K||null)].join(" "):null},YHU=function(d,H,K){var c=[],p=[];
if((Array.isArray(K)?2:1)==1)return p=[H,d],_.yx(c,function(e){p.push(e)}),SHU(p.join(" "));
var g=[],a=[];_.yx(K,function(e){a.push(e.key);g.push(e.value)});
K=Math.floor((new Date).getTime()/1E3);p=g.length==0?[K,H,d]:[g.join(":"),K,H,d];_.yx(c,function(e){p.push(e)});
d=SHU(p.join(" "));d=[K,d];a.length==0||d.push(a.join(""));return d.join("_")},SHU=function(d){var H=Z64();
H.update(d);return H.digestString().toLowerCase()};var $J=function(d){this.JSC$9589_document_=d||{cookie:""}},EO7;
_.G=$J.prototype;_.G.isEnabled=function(){if(!_.KF.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.G.set=function(d,H,K){var c=!1;if(typeof K==="object"){var p=K.sameSite;c=K.secure||!1;var g=K.domain||void 0;var a=K.path||void 0;var e=K.maxAge}if(/[;=\s]/.test(d))throw Error("sa`"+d);if(/[;\r\n]/.test(H))throw Error("ta`"+H);e===void 0&&(e=-1);K=g?";domain="+g:"";a=a?";path="+a:"";c=c?";secure":"";e=e<0?"":e==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+e*1E3)).toUTCString();this.JSC$9589_document_.cookie=d+"="+H+K+a+e+c+(p!=null?";samesite="+p:"")};
_.G.get=function(d,H){for(var K=d+"=",c=(this.JSC$9589_document_.cookie||"").split(";"),p=0,g;p<c.length;p++){g=kY(c[p]);if(g.lastIndexOf(K,0)==0)return g.slice(K.length);if(g==d)return""}return H};
_.G.remove=function(d,H,K){var c=this.containsKey(d);this.set(d,"",{maxAge:0,path:H,domain:K});return c};
_.G.getKeys=function(){return EO7(this).keys};
_.G.getValues=function(){return EO7(this).values};
_.G.isEmpty=function(){return!this.JSC$9589_document_.cookie};
_.G.getCount=function(){return this.JSC$9589_document_.cookie?(this.JSC$9589_document_.cookie||"").split(";").length:0};
_.G.containsKey=function(d){return this.get(d)!==void 0};
_.G.containsValue=function(d){for(var H=EO7(this).values,K=0;K<H.length;K++)if(H[K]==d)return!0;return!1};
_.G.clear=function(){for(var d=EO7(this).keys,H=d.length-1;H>=0;H--)this.remove(d[H])};
EO7=function(d){d=(d.JSC$9589_document_.cookie||"").split(";");for(var H=[],K=[],c,p,g=0;g<d.length;g++)p=kY(d[g]),c=p.indexOf("="),c==-1?(H.push(""),K.push(p)):(H.push(p.substring(0,c)),K.push(p.substring(c+1)));return{keys:H,values:K}};
_.Vm=new $J(typeof document=="undefined"?null:document);var G8M,yL0;G8M=function(){var d=_.KF.__SAPISID||_.KF.__APISID||_.KF.__3PSAPISID||_.KF.__1PSAPISID||_.KF.__OVERRIDE_SID;if(d)return!0;typeof document!=="undefined"&&(d=new $J(document),d=d.get("SAPISID")||d.get("APISID")||d.get("__Secure-3PAPISID")||d.get("__Secure-1PAPISID"));return!!d};
yL0=function(d,H,K,c){(d=_.KF[d])||typeof document==="undefined"||(d=(new $J(document)).get(H));return d?Oc3(d,K,c):null};
_.SIF=function(d){var H=tEM(_.KF==null?void 0:_.KF.location.href),K=[];if(G8M()){H=H.indexOf("https:")==0||H.indexOf("chrome-extension:")==0||H.indexOf("chrome-untrusted://new-tab-page")==0||H.indexOf("moz-extension:")==0;var c=H?_.KF.__SAPISID:_.KF.__APISID;c||typeof document==="undefined"||(c=new $J(document),c=c.get(H?"SAPISID":"APISID")||c.get("__Secure-3PAPISID"));(c=c?Oc3(c,H?"SAPISIDHASH":"APISIDHASH",d):null)&&K.push(c);H&&((H=yL0("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",d))&&K.push(H),
(d=yL0("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",d))&&K.push(d))}return K.length==0?null:K.join(" ")};var bcg=function(){this.minSize=1024};
bcg.prototype.compress=function(d){var H,K,c,p;return _.l(function(g){switch(g.nextAddress){case 1:return H=new CompressionStream("gzip"),K=(new Response(H.readable)).arrayBuffer(),c=H.writable.getWriter(),g.yield(c.write((new TextEncoder).encode(d)),2);case 2:return g.yield(c.close(),3);case 3:return p=Uint8Array,g.yield(K,4);case 4:return g.return(new p(g.yieldResult))}})};
bcg.prototype.isSupported=function(d){return d<this.minSize?!1:typeof CompressionStream!=="undefined"};var NS6=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(NS6,_.He);var Kq=function(d,H){this.intervalMs=d;this.callback=H;this.enabled=!1;this.nowFn=function(){return _.$V()};
this.lastTimeMs=this.nowFn()};
Kq.prototype.setInterval=function(d){this.intervalMs=d;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Kq.prototype.start=function(){var d=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){d.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
Kq.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Kq.prototype.tick=function(){var d=this;if(this.enabled){var H=Math.max(this.nowFn()-this.lastTimeMs,0);H<this.intervalMs*.8?this.timer=setTimeout(function(){d.tick()},this.intervalMs-H):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var DN0=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(DN0,_.He);var fwl=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(fwl,_.He);var ALC=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(ALC,_.He);ALC.prototype.getTransmissionType=function(){return _.rK(this,1)};var YSL=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(YSL,_.He);YSL.prototype.getVersion=function(){return _.IB(this,2)};var c9=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(c9,_.He);var tDX=function(d){L1(O61,1,d)};
c9.prototype.getModel=function(){return _.IB(this,6)};
var jK0=_.aK(c9);var vOd=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(vOd,_.He);var T95=["platform","platformVersion","architecture","model","uaFullVersion"],O61=new c9,Qsi=null;var pq=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(pq,_.He);var djA=function(d){return _.G1(d,1,1)};var HzN=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d,4)};
_.m(HzN,_.He);_.gN=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d,36)};
_.m(_.gN,_.He);_.gN.prototype.getExperimentIds=function(){return _.gF(this,NS6,16)};var $jB=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d,19)};
_.m($jB,_.He);$jB.prototype.setLogSource=function(d){return _.G1(this,2,d)};
$jB.prototype.setScheduler=function(d){return _.G1(this,10,d)};var c1C=function(d,H){this.isServiceWorkerScope=H=H===void 0?!1:H;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new $jB;Number.isInteger(d)&&this.logRequest.setLogSource(d);H||(this.locale=document.documentElement.getAttribute("lang"));K67(this,new pq)};
c1C.prototype.setLogSource=function(d){this.logRequest.setLogSource(d);return this};
var K67=function(d,H){_.eE(d.logRequest,1,H);_.rK(H,1)||djA(H);d.isServiceWorkerScope||(H=iA(d),_.IB(H,5)||_.UY(H,5,d.locale));d.uach&&(H=iA(d),_.gF(H,c9,9)||_.eE(H,9,d.uach))},piB=function(d,H){d.transmissionType=H},gsg=function(d){var H=H===void 0?T95:H;
var K=d.isServiceWorkerScope?void 0:zo();K?SSM(K,H).then(function(c){d.uach=jK0(c!=null?c:"[]");c=iA(d);_.eE(c,9,d.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},iA=function(d){var H=_.gF(d.logRequest,pq,1);
H||(H=new pq,K67(d,H));d=H;H=_.gF(d,vOd,11);H||(H=new vOd,_.eE(d,11,H));return H};
c1C.prototype.build=function(d,H,K,c,p,g){H=H===void 0?0:H;K=K===void 0?0:K;c=c===void 0?null:c;p=p===void 0?0:p;g=g===void 0?0:g;if(!this.isServiceWorkerScope){var a=iA(this);var e=new ALC;e=_.G1(e,1,this.transmissionType);e=_.gk(e,2,this.isFinal);K=_.Xh(e,3,K>0?K:void 0);K=_.Xh(K,4,p>0?p:void 0);K=_.Xh(K,5,g>0?g:void 0);p=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;g=p[_.pX]|0;K=lM(K,g)?K:Lb5(K,p,g)?hjF(K,p):new K.constructor(zG(p,g,!0));_.eE(a,10,K)}a=this.logRequest.clone();K=Date.now().toString();
a=_.ov(a,4,pt(K));d=d.slice();d=L1(a,3,d);c&&(a=new DN0,c=_.Xh(a,13,c),a=new fwl,c=_.eE(a,2,c),a=new HzN,c=_.eE(a,1,c),c=_.G1(c,2,9),_.eE(d,18,c));H&&_.Ln(d,14,H);return d};ir.prototype.currBackoffCount_=0;ir.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
ir.prototype.getValue=function(){return this.currValue_};
var izg=function(d){d.currBaseValue_=Math.min(d.maxValue_,d.currBaseValue_*d.backoffFactor_);d.currValue_=Math.min(d.maxValue_,d.currBaseValue_+(d.randomFactor_?Math.round(d.randomFactor_*(Math.random()-.5)*2*d.currBaseValue_):0));d.currBackoffCount_++};var jAi=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d,8)};
_.m(jAi,_.He);var GVU=_.aK(jAi);var vo4=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(vo4,_.He);var Gw;Gw=new d71;var oj=function(d){_.h_.call(this);var H=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9667_compressor=this.experimentIds=null;this.numRetriesSinceLastSuccessfulFlush=this.numLogsDroppedSinceLastFlush=0;this.metalogService=null;this.persistedLogExpiredCount=this.persistedLogRecoveredCount=0;this.sequencePosition=1;this.timeoutMillis=0;this.JSC$9667_sendBeaconApiEnabled=!1;this.logSource=d.logSource;this.getAuthHeaderValue=
d.getAuthHeaderValue||function(){};
this.logRequestBuilder=new c1C(d.logSource,d.isServiceWorkerScope);this.network=d.network||null;this.productID=d.productID||null;this.bufferSize=1E3;this.clearcutUrl=d.urlOverride||null;this.sessionIndex=d.sessionIndex||null;this.disableAutomaticFlush=d.disableAutomaticFlush||!1;this.withCredentials=!d.disableWithCredentials;this.isServiceWorkerScope=d.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!zo()&&!!zo().navigator&&zo().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(osN())).searchParams&&!!(new URL(osN())).searchParams.set;var K=djA(new pq);K67(this.logRequestBuilder,K);this.flushBackoff=new ir(1E4,3E5,.1);d=qEM(this,d.backgroundJobDeferrer);this.JSC$9667_flushTimer=new Kq(this.flushBackoff.getValue(),d);this.backupTimer=new Kq(6E5,d);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){aKS(H);
var c;(c=H.metalogService)==null||c.flush()}}),document.addEventListener("pagehide",function(){aKS(H);
var c;(c=H.metalogService)==null||c.flush()}))};
_.m(oj,_.h_);var qEM=function(d,H){return d.isBrowserSupported?H?function(){H().then(function(){d.flush()})}:function(){d.flush()}:function(){}};
oj.prototype.disposeInternal=function(){aKS(this);this.JSC$9667_flushTimer.stop();this.backupTimer.stop();_.h_.prototype.disposeInternal.call(this)};
var lKA=function(d){d.clearcutUrl||(d.clearcutUrl=osN());try{return(new URL(d.clearcutUrl)).toString()}catch(H){return(new URL(d.clearcutUrl,zo().location.origin)).toString()}};
oj.prototype.dispatch=function(d){if(d instanceof _.gN)this.log(d);else try{var H=new _.gN,K=d.serialize();var c=_.UY(H,8,K);this.log(c)}catch(p){qW(this,4,1)}};
var qW=function(d,H,K){d.metalogService&&d.metalogService.increment(H,K)};
oj.prototype.log=function(d){qW(this,2,1);if(this.isBrowserSupported){d=d.clone();var H=this.sequencePosition++;d=_.Ln(d,21,H);this.componentId&&_.UY(d,26,this.componentId);H=d;if(WgY(_.n1(H,1))==null){var K=Date.now();K=Number.isFinite(K)?K.toString():"0";_.ov(H,1,pt(K))}_.rN1(_.n1(H,15))!=null||_.Ln(H,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(K=this.experimentIds.clone(),_.eE(H,16,K));qW(this,1,1);H=this.pendingEvents.length-this.bufferSize+1;H>0&&(this.pendingEvents.splice(0,H),
this.numLogsDroppedSinceLastFlush+=H,qW(this,3,H));this.pendingEvents.push(d);this.disableAutomaticFlush||this.JSC$9667_flushTimer.enabled||this.JSC$9667_flushTimer.start()}};
oj.prototype.flush=function(d,H){var K=this;if(this.pendingEvents.length===0)d&&d();else if(this.JSC$9667_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,e73(this);else{var c=Date.now();if(this.noFlushUntilMs>c&&this.startWaitingMs<c)H&&H("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?piB(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var p=this.pendingEvents.length,
g=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),a=this.getAuthHeaderValue();if(a&&this.lastFailedAuth===a)H&&H("stale-auth-token");else{this.pendingEvents=[];this.JSC$9667_flushTimer.enabled&&this.JSC$9667_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;c=g.serialize();var e;this.JSC$9667_compressor&&this.JSC$9667_compressor.isSupported(c.length)&&
(e=this.JSC$9667_compressor.compress(c));var k=kV7(this,c,a),C=function(U){K.flushBackoff.reset();K.JSC$9667_flushTimer.setInterval(K.flushBackoff.getValue());if(U){var L=null;try{var w=JSON.stringify(JSON.parse(U.replace(")]}'\n","")));L=GVU(w)}catch(W){}L&&(U=Number(PG(L,1,_.X7("-1"))),U>0&&(K.startWaitingMs=Date.now(),K.noFlushUntilMs=K.startWaitingMs+U),jCM(L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Gw.fieldIndex),f0X(L,Gw.fieldIndex),L=Gw.ctor?Gw.getExtensionFn(L,Gw.ctor,Gw.fieldIndex,
Gw.JSC$8847_hasMessageId):Gw.getExtensionFn(L,Gw.fieldIndex,null,Gw.JSC$8847_hasMessageId),L=L===null?void 0:L)&&(L=_.$1(L,1,-1),L!==-1&&(K.flushBackoff=new ir(L<1?1:L,3E5,.1),K.JSC$9667_flushTimer.setInterval(K.flushBackoff.getValue())))}d&&d();K.numRetriesSinceLastSuccessfulFlush=0},R=function(U,L){var w=_.dk(g,_.gN,3,_.Hz());
var W=Number(PG(g,14));izg(K.flushBackoff);K.JSC$9667_flushTimer.setInterval(K.flushBackoff.getValue());U===401&&a&&(K.lastFailedAuth=a);W&&(K.numLogsDroppedSinceLastFlush+=W);L===void 0&&(L=K.isRetryable(U));L&&(K.pendingEvents=w.concat(K.pendingEvents),K.disableAutomaticFlush||K.JSC$9667_flushTimer.enabled||K.JSC$9667_flushTimer.start());qW(K,7,1);H&&H("net-send-failed",U);++K.numRetriesSinceLastSuccessfulFlush},V=function(){K.network&&K.network.send(k,C,R)};
e?e.then(function(U){qW(K,5,p);k.requestHeaders["Content-Encoding"]="gzip";k.requestHeaders["Content-Type"]="application/binary";k.body=U;k.bodyType=2;V()},function(){qW(K,6,p);
V()}):V()}}}};
var kV7=function(d,H,K){K=K===void 0?null:K;var c=c===void 0?d.withCredentials:c;var p={},g=new URL(lKA(d));K&&(p.Authorization=K);d.sessionIndex&&(p["X-Goog-AuthUser"]=d.sessionIndex,g.searchParams.set("authuser",d.sessionIndex));d.pageId&&(Object.defineProperty(p,"X-Goog-PageId",{value:d.pageId}),g.searchParams.set("pageId",d.pageId));return{url:g.toString(),body:H,bodyType:1,requestHeaders:p,requestType:"POST",withCredentials:c,timeoutMillis:d.timeoutMillis}},aKS=function(d){d.logRequestBuilder.isFinal=
!0;
d.flush();d.logRequestBuilder.isFinal=!1},e73=function(d){xjl(d,function(H,K){H=new URL(H);
H.searchParams.set("format","json");var c=!1;try{c=zo().navigator.sendBeacon(H.toString(),K.serialize())}catch(p){}c||(d.isSendBeaconSupported=!1);return c})},xjl=function(d,H){if(d.pendingEvents.length!==0){var K=new URL(lKA(d));
K.searchParams.delete("format");var c=d.getAuthHeaderValue();c&&K.searchParams.set("auth",c);K.searchParams.set("authuser",d.sessionIndex||"0");for(c=0;c<10&&d.pendingEvents.length;++c){var p=d.pendingEvents.slice(0,32),g=d.logRequestBuilder.build(p,d.numLogsDroppedSinceLastFlush,d.numRetriesSinceLastSuccessfulFlush,d.productID,d.persistedLogRecoveredCount,d.persistedLogExpiredCount);if(!H(K.toString(),g)){++d.numRetriesSinceLastSuccessfulFlush;break}d.numLogsDroppedSinceLastFlush=0;d.numRetriesSinceLastSuccessfulFlush=
0;d.persistedLogRecoveredCount=0;d.persistedLogExpiredCount=0;d.pendingEvents=d.pendingEvents.slice(p.length)}d.JSC$9667_flushTimer.enabled&&d.JSC$9667_flushTimer.stop()}};
oj.prototype.isRetryable=function(d){return 500<=d&&d<600||d===401||d===0};
var osN=function(){return"https://play.google.com/log?format=json&hasfast=true"};var ns3=function(){this.abortSupported=typeof AbortController!=="undefined"};
ns3.prototype.send=function(d,H,K){var c=this,p,g,a,e,k,C,R,V,U,L;return _.l(function(w){switch(w.nextAddress){case 1:return g=(p=c.abortSupported?new AbortController:void 0)?setTimeout(function(){p.abort()},d.timeoutMillis):void 0,_.e2(w,2,3),a=Object.assign({},{method:d.requestType,
headers:Object.assign({},d.requestHeaders)},d.body&&{body:d.body},d.withCredentials&&{credentials:"include"},{signal:d.timeoutMillis&&p?p.signal:null}),w.yield(fetch(d.url,a),5);case 5:e=w.yieldResult;if(e.status!==200){(k=K)==null||k(e.status);w.jumpTo(3);break}if((C=H)==null){w.jumpTo(7);break}return w.yield(e.text(),8);case 8:C(w.yieldResult);case 7:case 3:_.xs(w);clearTimeout(g);_.Cz(w,0);break;case 2:R=_.RV(w);switch((V=R)==null?void 0:V.name){case "AbortError":(U=K)==null||U(408);break;default:(L=
K)==null||L(400)}w.jumpTo(3)}})};
ns3.prototype.getTransmissionType=function(){return 4};_.o4=function(d,H){H=H===void 0?"0":H;_.h_.call(this);this.logSource=d;this.sessionIndex=H;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9685_clearExperimentIds=this.productID=null;this.JSC$9685_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.m(_.o4,_.h_);var dQF=function(d,H){d.buildLabel=H;return d},v2E=function(d,H){d.network=H;
return d},$Q1=function(d,H){d.JSC$9685_clearExperimentIds=H},jsF=function(d){d.JSC$9685_sendBeaconApiEnabled=!0;
return d};
_.o4.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.o4.prototype.build=function(){this.network||(this.network=new ns3);var d=new oj({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.SIF,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.q_(this,d);if(this.buildLabel){var H=this.buildLabel,K=
iA(d.logRequestBuilder);_.UY(K,7,H)}d.JSC$9667_compressor=new bcg;this.componentId&&(d.componentId=this.componentId);this.productID&&(d.productID=this.productID);this.pageId&&(d.pageId=this.pageId);this.JSC$9685_clearExperimentIds&&((K=this.JSC$9685_clearExperimentIds)?(d.experimentIds||(d.experimentIds=new NS6),H=d.experimentIds,K=K.serialize(),_.UY(H,4,K)):d.experimentIds&&_.ov(d.experimentIds,4));this.JSC$9685_sendBeaconApiEnabled&&(d.JSC$9667_sendBeaconApiEnabled=d.isSendBeaconSupported);gsg(d.logRequestBuilder);
this.bufferSize&&(d.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(d);return d};var pbX=function(d,H,K,c,p,g,a){d=d===void 0?-1:d;H=H===void 0?"":H;K=K===void 0?"":K;c=c===void 0?!1:c;p=p===void 0?"":p;_.h_.call(this);this.logSource=d;this.componentId=H;g?H=g:(d=new _.o4(d,"0"),d.componentId=H,_.q_(this,d),K!==""&&(d.destinationUrl=K),c&&(d.serviceWorkerScopeEnabled=!0),p&&dQF(d,p),a&&v2E(d,a),H=d.build());this.JSC$9689_transport=H};
_.m(pbX,_.h_);pbX.prototype.flush=function(d){d=d||[];if(d.length){for(var H=new Fr6,K=[],c=0;c<d.length;c++){var p=d[c],g=QKM(p);K.push(g);p.clear()}L1(H,1,K);this.JSC$9689_transport.dispatch(H);this.JSC$9689_transport.flush()}};var CX7=function(d){this.cellValue=d};var aj=function(d,H,K){this.JSC$9694_metricName=d;this.cellType=H;this.fields=K||[];this.cellMap=new Map},TS3=function(d){return d.fields.map(function(H){return H.fieldType})},ZcA=function(d){return d.fields.map(function(H){return H.fieldName})};
_.G=aj.prototype;_.G.addCell=function(d){var H=_.sH.apply(1,arguments),K=this.getCells(H);K?K.push(new CX7(d)):this.JSC$9694_setCell(d,H)};
_.G.JSC$9694_setCell=function(d){var H=this.JSC$9694_getKey(_.sH.apply(1,arguments));this.cellMap.set(H,[new CX7(d)])};
_.G.getCells=function(){var d=this.JSC$9694_getKey(_.sH.apply(0,arguments));return this.cellMap.has(d)?this.cellMap.get(d):void 0};
_.G.getCell=function(){var d=this.getCells(_.sH.apply(0,arguments));return d&&d.length?d[0]:void 0};
_.G.clear=function(){this.cellMap.clear()};
_.G.JSC$9694_getKey=function(){var d=_.sH.apply(0,arguments);return d?d.join(","):"key"};var R7S=function(d,H){aj.call(this,d,3,H)};
_.m(R7S,aj);R7S.prototype.JSC$9697_incrementCounterBy=function(d){var H=_.sH.apply(1,arguments),K=0,c=this.getCell(H);c&&(K=c.cellValue);this.JSC$9694_setCell(K+d,H)};var V2M=function(d,H){aj.call(this,d,2,H)};
_.m(V2M,aj);V2M.prototype.record=function(d){this.addCell(d,_.sH.apply(1,arguments))};_.lA=function(d){this.id=d};
_.lA.prototype.toString=function(){return this.id};_.eo=function(d,H){this.type=d instanceof _.lA?String(d):d;this.currentTarget=this.target=H;this.defaultPrevented=this.propagationStopped_=!1};
_.eo.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.eo.prototype.preventDefault=function(){this.defaultPrevented=!0};_.kJ=function(d,H){_.eo.call(this,d?d.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=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.timeStamp=0;this.event_=null;d&&this.init(d,H)};
_.K1(_.kJ,_.eo);
_.kJ.prototype.init=function(d,H){var K=this.type=d.type,c=d.changedTouches&&d.changedTouches.length?d.changedTouches[0]:null;this.target=d.target||d.srcElement;this.currentTarget=H;H=d.relatedTarget;H||(K=="mouseover"?H=d.fromElement:K=="mouseout"&&(H=d.toElement));this.relatedTarget=H;c?(this.clientX=c.clientX!==void 0?c.clientX:c.pageX,this.clientY=c.clientY!==void 0?c.clientY:c.pageY,this.screenX=c.screenX||0,this.screenY=c.screenY||0):(this.offsetX=_.oB||d.offsetX!==void 0?d.offsetX:d.layerX,
this.offsetY=_.oB||d.offsetY!==void 0?d.offsetY:d.layerY,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||(K=="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.timeStamp=d.timeStamp;this.event_=d;d.defaultPrevented&&_.kJ.superClass_.preventDefault.call(this)};
_.kJ.prototype.stopPropagation=function(){_.kJ.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.kJ.prototype.preventDefault=function(){_.kJ.superClass_.preventDefault.call(this);var d=this.event_;d.preventDefault?d.preventDefault():d.returnValue=!1};var Uj3="closure_listenable_"+(Math.random()*1E6|0),xJ=function(d){return!(!d||!d[Uj3])};var h7d=0;var L66=function(d,H,K,c,p){this.listener=d;this.proxy=null;this.src=H;this.type=K;this.capture=!!c;this.handler=p;this.key=++h7d;this.removed=this.callOnce=!1},M2g=function(d){d.removed=!0;
d.listener=null;d.proxy=null;d.src=null;d.handler=null};Gi.prototype.add=function(d,H,K,c,p){var g=d.toString();d=this.listeners[g];d||(d=this.listeners[g]=[],this.typeCount_++);var a=mjX(d,H,c,p);a>-1?(H=d[a],K||(H.callOnce=!1)):(H=new L66(H,this.src,g,!!c,p),H.callOnce=K,d.push(H));return H};
Gi.prototype.remove=function(d,H,K,c){d=d.toString();if(!(d in this.listeners))return!1;var p=this.listeners[d];H=mjX(p,H,K,c);return H>-1?(M2g(p[H]),_.MlM(p,H),p.length==0&&(delete this.listeners[d],this.typeCount_--),!0):!1};
var wid=function(d,H){var K=H.type;if(!(K in d.listeners))return!1;var c=_.Q4(d.listeners[K],H);c&&(M2g(H),d.listeners[K].length==0&&(delete d.listeners[K],d.typeCount_--));return c};
Gi.prototype.removeAll=function(d){d=d&&d.toString();var H=0,K;for(K in this.listeners)if(!d||K==d){for(var c=this.listeners[K],p=0;p<c.length;p++)++H,M2g(c[p]);delete this.listeners[K];this.typeCount_--}return H};
Gi.prototype.getListener=function(d,H,K,c){d=this.listeners[d.toString()];var p=-1;d&&(p=mjX(d,H,K,c));return p>-1?d[p]:null};
Gi.prototype.hasListener=function(d,H){var K=d!==void 0,c=K?d.toString():"",p=H!==void 0;return _.rs.some(this.listeners,function(g){for(var a=0;a<g.length;++a)if(!(K&&g[a].type!=c||p&&g[a].capture!=H))return!0;return!1})};
var mjX=function(d,H,K,c){for(var p=0;p<d.length;++p){var g=d[p];if(!g.removed&&g.listener==H&&g.capture==!!K&&g.handler==c)return p}return-1};var PX3,uUU,IKd,W6X,Bul,ml,wg,J1B,z7S,XiN,nq,sVB,r1A;PX3="closure_lm_"+(Math.random()*1E6|0);uUU={};IKd=0;_.Iq=function(d,H,K,c,p){if(c&&c.once)return ml(d,H,K,c,p);if(Array.isArray(H)){for(var g=0;g<H.length;g++)_.Iq(d,H[g],K,c,p);return null}K=r1A(K);return xJ(d)?d.listen(H,K,_.y4(c)?!!c.capture:!!c,p):W6X(d,H,K,!1,c,p)};
W6X=function(d,H,K,c,p,g){if(!H)throw Error("va");var a=_.y4(p)?!!p.capture:!!p,e=nq(d);e||(d[PX3]=e=new Gi(d));K=e.add(H,K,c,a,g);if(K.proxy)return K;c=Bul();K.proxy=c;c.src=d;c.listener=K;if(d.addEventListener)_.Itf||(p=a),p===void 0&&(p=!1),d.addEventListener(H.toString(),c,p);else if(d.attachEvent)d.attachEvent(z7S(H.toString()),c);else if(d.addListener&&d.removeListener)d.addListener(c);else throw Error("wa");IKd++;return K};
Bul=function(){var d=XiN,H=function(K){return d.call(H.src,H.listener,K)};
return H};
ml=function(d,H,K,c,p){if(Array.isArray(H)){for(var g=0;g<H.length;g++)ml(d,H[g],K,c,p);return null}K=r1A(K);return xJ(d)?d.listenOnce(H,K,_.y4(c)?!!c.capture:!!c,p):W6X(d,H,K,!0,c,p)};
_.Cq=function(d,H,K,c,p){if(Array.isArray(H))for(var g=0;g<H.length;g++)_.Cq(d,H[g],K,c,p);else c=_.y4(c)?!!c.capture:!!c,K=r1A(K),xJ(d)?d.unlisten(H,K,c,p):d&&(d=nq(d))&&(H=d.getListener(H,K,c,p))&&wg(H)};
wg=function(d){if(typeof d==="number"||!d||d.removed)return!1;var H=d.src;if(xJ(H))return wid(H.eventTargetListeners_,d);var K=d.type,c=d.proxy;H.removeEventListener?H.removeEventListener(K,c,d.capture):H.detachEvent?H.detachEvent(z7S(K),c):H.addListener&&H.removeListener&&H.removeListener(c);IKd--;(K=nq(H))?(wid(K,d),K.typeCount_==0&&(K.src=null,H[PX3]=null)):M2g(d);return!0};
J1B=function(d,H,K,c,p){K=r1A(K);c=!!c;return xJ(d)?d.getListener(H,K,c,p):d?(d=nq(d))?d.getListener(H,K,c,p):null:null};
z7S=function(d){return d in uUU?uUU[d]:uUU[d]="on"+d};
XiN=function(d,H){if(d.removed)d=!0;else{H=new _.kJ(H,this);var K=d.listener,c=d.handler||d.src;d.callOnce&&wg(d);d=K.call(c,H)}return d};
nq=function(d){d=d[PX3];return d instanceof Gi?d:null};
sVB="__closure_events_fn_"+(Math.random()*1E9>>>0);r1A=function(d){if(typeof d==="function")return d;d[sVB]||(d[sVB]=function(H){return d.handleEvent(H)});
return d[sVB]};_.Rj=function(){_.h_.call(this);this.eventTargetListeners_=new Gi(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.K1(_.Rj,_.h_);_.Rj.prototype[Uj3]=!0;_.G=_.Rj.prototype;_.G.setParentEventTarget=function(d){this.parentEventTarget_=d};
_.G.addEventListener=function(d,H,K,c){_.Iq(this,d,H,K,c)};
_.G.removeEventListener=function(d,H,K,c){_.Cq(this,d,H,K,c)};
_.G.dispatchEvent=function(d){var H,K=this.parentEventTarget_;if(K)for(H=[];K;K=K.parentEventTarget_)H.push(K);K=this.actualEventTarget_;var c=d.type||d;if(typeof d==="string")d=new _.eo(d,K);else if(d instanceof _.eo)d.target=d.target||K;else{var p=d;d=new _.eo(c,K);_.rs.extend(d,p)}p=!0;var g;if(H)for(g=H.length-1;!d.propagationStopped_&&g>=0;g--){var a=d.currentTarget=H[g];p=F67(a,c,!0,d)&&p}d.propagationStopped_||(a=d.currentTarget=K,p=F67(a,c,!0,d)&&p,d.propagationStopped_||(p=F67(a,c,!1,d)&&
p));if(H)for(g=0;!d.propagationStopped_&&g<H.length;g++)a=d.currentTarget=H[g],p=F67(a,c,!1,d)&&p;return p};
_.G.disposeInternal=function(){_.Rj.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.G.listen=function(d,H,K,c){return this.eventTargetListeners_.add(String(d),H,!1,K,c)};
_.G.listenOnce=function(d,H,K,c){return this.eventTargetListeners_.add(String(d),H,!0,K,c)};
_.G.unlisten=function(d,H,K,c){return this.eventTargetListeners_.remove(String(d),H,K,c)};
_.G.removeAllListeners=function(d){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(d):0};
var F67=function(d,H,K,c){H=d.eventTargetListeners_.listeners[String(H)];if(!H)return!0;H=H.concat();for(var p=!0,g=0;g<H.length;++g){var a=H[g];if(a&&!a.removed&&a.capture==K){var e=a.listener,k=a.handler||a.src;a.callOnce&&wid(d.eventTargetListeners_,a);p=e.call(k,c)!==!1&&p}}return p&&!c.defaultPrevented};
_.Rj.prototype.getListener=function(d,H,K,c){return this.eventTargetListeners_.getListener(String(d),H,K,c)};
_.Rj.prototype.hasListener=function(d,H){return this.eventTargetListeners_.hasListener(d!==void 0?String(d):void 0,H)};var V5=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(d){return d&&AsyncContext.Snapshot.wrap(d)}:function(d){return d};var ZzU=function(d,H){this.create_=d;this.reset_=H;this.occupants_=0;this.JSC$9729_head_=null};
ZzU.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var d=this.JSC$9729_head_;this.JSC$9729_head_=d.next;d.next=null}else d=this.create_();return d};
ZzU.prototype.put=function(d){this.reset_(d);this.occupants_<100&&(this.occupants_++,d.next=this.JSC$9729_head_,this.JSC$9729_head_=d)};var Tu0=function(){this.workTail_=this.workHead_=null};
Tu0.prototype.add=function(d,H){var K=ymf.get();K.set(d,H);this.workTail_?this.workTail_.next=K:this.workHead_=K;this.workTail_=K};
Tu0.prototype.remove=function(){var d=null;this.workHead_&&(d=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),d.next=null);return d};
var ymf=new ZzU(function(){return new QV7},function(d){return d.reset()}),QV7=function(){this.next=this.scope=this.fn=null};
QV7.prototype.set=function(d,H){this.fn=d;this.scope=H;this.next=null};
QV7.prototype.reset=function(){this.next=this.scope=this.fn=null};var t27,b6F,E2l,YEl;b6F=!1;E2l=new Tu0;_.UL=function(d,H){t27||YEl();b6F||(t27(),b6F=!0);E2l.add(d,H)};
YEl=function(){var d=Promise.resolve(void 0);t27=function(){d.then(N9E)}};var OzN=function(d){d.prototype.$goog_Thenable=!0},SE3=function(d){if(!d)return!1;
try{return!!d.$goog_Thenable}catch(H){return!1}};var EsB,y17,bzX,Djd,fKU,A10,HB3,cAS,Go6,g57,KNF;_.kr=function(d,H){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(d!=_.nV)try{var K=this;d.call(H,function(c){K.resolve_(2,c)},function(c){K.resolve_(3,c)})}catch(c){this.resolve_(3,c)}};
EsB=function(){this.next=this.context=this.JSC$9740_onRejected=this.JSC$9740_onFulfilled=this.child=null;this.always=!1};
EsB.prototype.reset=function(){this.context=this.JSC$9740_onRejected=this.JSC$9740_onFulfilled=this.child=null;this.always=!1};
y17=new ZzU(function(){return new EsB},function(d){d.reset()});
bzX=function(d,H,K){var c=y17.get();c.JSC$9740_onFulfilled=d;c.JSC$9740_onRejected=H;c.context=K;return c};
_.e5=function(d){if(d instanceof _.kr)return d;var H=new _.kr(_.nV);H.resolve_(2,d);return H};
_.W1=function(d){return new _.kr(function(H,K){K(d)})};
Djd=function(d,H,K){NuC(d,H,K,null)||_.UL(_.hO(H,d))};
_.hH=function(d){return new _.kr(function(H,K){var c=d.length,p=[];if(c)for(var g=function(C,R){c--;p[C]=R;c==0&&H(p)},a=function(C){K(C)},e,k=0;k<d.length;k++)e=d[k],Djd(e,_.hO(g,k),a);
else H(p)})};
fKU=function(d){return new _.kr(function(H){var K=d.length,c=[];if(K)for(var p=function(e,k,C){K--;c[e]=k?{fulfilled:!0,value:C}:{fulfilled:!1,reason:C};K==0&&H(c)},g,a=0;a<d.length;a++)g=d[a],Djd(g,_.hO(p,a,!0),_.hO(p,a,!1));
else H(c)})};
A10=function(d){return new _.kr(function(H,K){var c=d.length,p=[];if(c)for(var g=function(C){H(C)},a=function(C,R){c--;
p[C]=R;c==0&&K(p)},e,k=0;k<d.length;k++)e=d[k],Djd(e,g,_.hO(a,k));
else H(void 0)})};
_.DA=function(){var d,H,K=new _.kr(function(c,p){d=c;H=p});
return new jV0(K,d,H)};
_.kr.prototype.then=function(d,H,K){return vsl(this,V5(typeof d==="function"?d:null),V5(typeof H==="function"?H:null),K)};
OzN(_.kr);HB3=function(d,H,K,c){d6A(d,bzX(H||_.nV,K||null,c))};
_.Lq=function(d,H){H=V5(H);H=bzX(H,H);H.always=!0;d6A(d,H);return d};
_.kr.prototype.finally=function(d){var H=this;d=V5(d);return new _.kr(function(K,c){HB3(H,function(p){d();K(p)},function(p){d();
c(p)})})};
_.kr.prototype.thenCatch=function(d,H){return vsl(this,null,V5(d),H)};
_.kr.prototype.catch=_.kr.prototype.thenCatch;_.kr.prototype.cancel=function(d){if(this.state_==0){var H=new _.T_(d);_.UL(function(){$67(this,H)},this)}};
var $67=function(d,H){if(d.state_==0)if(d.parent_){var K=d.parent_;if(K.callbackEntries_){for(var c=0,p=null,g=null,a=K.callbackEntries_;a&&(a.always||(c++,a.child==d&&(p=a),!(p&&c>1)));a=a.next)p||(g=a);p&&(K.state_==0&&c==1?$67(K,H):(g?(c=g,c.next==K.callbackEntriesTail_&&(K.callbackEntriesTail_=c),c.next=c.next.next):KVl(K),cAS(K,p,3,H)))}d.parent_=null}else d.resolve_(3,H)},d6A=function(d,H){d.callbackEntries_||d.state_!=2&&d.state_!=3||pfC(d);
d.callbackEntriesTail_?d.callbackEntriesTail_.next=H:d.callbackEntries_=H;d.callbackEntriesTail_=H},vsl=function(d,H,K,c){var p=bzX(null,null,null);
p.child=new _.kr(function(g,a){p.JSC$9740_onFulfilled=H?function(e){try{var k=H.call(c,e);g(k)}catch(C){a(C)}}:g;
p.JSC$9740_onRejected=K?function(e){try{var k=K.call(c,e);k===void 0&&e instanceof _.T_?a(e):g(k)}catch(C){a(C)}}:a});
p.child.parent_=d;d6A(d,p);return p.child};
_.kr.prototype.unblockAndFulfill_=function(d){this.state_=0;this.resolve_(2,d)};
_.kr.prototype.unblockAndReject_=function(d){this.state_=0;this.resolve_(3,d)};
_.kr.prototype.resolve_=function(d,H){this.state_==0&&(this===H&&(d=3,H=new TypeError("xa")),this.state_=1,NuC(H,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=H,this.state_=d,this.parent_=null,pfC(this),d!=3||H instanceof _.T_||g57(this,H)))};
var NuC=function(d,H,K,c){if(d instanceof _.kr)return HB3(d,H,K,c),!0;if(SE3(d))return d.then(H,K,c),!0;if(_.y4(d))try{var p=d.then;if(typeof p==="function")return iBg(d,p,H,K,c),!0}catch(g){return K.call(c,g),!0}return!1},iBg=function(d,H,K,c,p){var g=!1,a=function(k){g||(g=!0,K.call(p,k))},e=function(k){g||(g=!0,c.call(p,k))};
try{H.call(d,a,e)}catch(k){e(k)}},pfC=function(d){d.executing_||(d.executing_=!0,_.UL(d.executeCallbacks_,d))},KVl=function(d){var H=null;
d.callbackEntries_&&(H=d.callbackEntries_,d.callbackEntries_=H.next,H.next=null);d.callbackEntries_||(d.callbackEntriesTail_=null);return H};
_.kr.prototype.executeCallbacks_=function(){for(var d;d=KVl(this);)cAS(this,d,this.state_,this.result_);this.executing_=!1};
cAS=function(d,H,K,c){if(K==3&&H.JSC$9740_onRejected&&!H.always)for(;d&&d.hadUnhandledRejection_;d=d.parent_)d.hadUnhandledRejection_=!1;if(H.child)H.child.parent_=null,Go6(H,K,c);else try{H.always?H.JSC$9740_onFulfilled.call(H.context):Go6(H,K,c)}catch(p){KNF.call(null,p)}y17.put(H)};
Go6=function(d,H,K){H==2?d.JSC$9740_onFulfilled.call(d.context,K):d.JSC$9740_onRejected&&d.JSC$9740_onRejected.call(d.context,K)};
g57=function(d,H){d.hadUnhandledRejection_=!0;_.UL(function(){d.hadUnhandledRejection_&&KNF.call(null,H)})};
KNF=cF;_.T_=function(d){_.dh.call(this,d)};
_.K1(_.T_,_.dh);_.T_.prototype.name="cancel";var jV0=function(d,H,K){this.promise=d;this.resolve=H;this.reject=K};var MW;_.iG=function(d,H){_.Rj.call(this);this.JSC$9752_interval_=d||1;this.timerObject_=H||_.KF;this.boundTick_=(0,_.LA)(this.tick_,this);this.last_=_.$V()};
_.K1(_.iG,_.Rj);_.G=_.iG.prototype;_.G.enabled=!1;_.G.JSC$9754_timer_=null;_.G.setInterval=function(d){this.JSC$9752_interval_=d;this.JSC$9754_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9754_timer_&&this.stop()};
_.G.tick_=function(){if(this.enabled){var d=_.$V()-this.last_;d>0&&d<this.JSC$9752_interval_*.8?this.JSC$9754_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9752_interval_-d):(this.JSC$9754_timer_&&(this.timerObject_.clearTimeout(this.JSC$9754_timer_),this.JSC$9754_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.G.start=function(){this.enabled=!0;this.JSC$9754_timer_||(this.JSC$9754_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9752_interval_),this.last_=_.$V())};
_.G.stop=function(){this.enabled=!1;this.JSC$9754_timer_&&(this.timerObject_.clearTimeout(this.JSC$9754_timer_),this.JSC$9754_timer_=null)};
_.G.disposeInternal=function(){_.iG.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
MW=function(d,H,K){if(typeof d==="function")K&&(d=(0,_.LA)(d,K));else if(d&&typeof d.handleEvent=="function")d=(0,_.LA)(d.handleEvent,d);else throw Error("ya");return Number(H)>2147483647?-1:_.KF.setTimeout(d,H||0)};
_.o53=function(d){var H=null;return(new _.kr(function(K,c){H=MW(function(){K(void 0)},d);
H==-1&&c(Error("za"))})).thenCatch(function(K){_.KF.clearTimeout(H);
throw K;})};var a4=function(d){_.h_.call(this);this.streamzLogger=d;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9758_flushTimer=new _.iG(this.flushInterval);this.JSC$9758_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.q_(this,this.JSC$9758_flushTimer)};
_.m(a4,_.h_);a4.prototype.sendIsolatedPayload=function(d){this.shouldSendIsolatedPayload=d;this.invocationLimit=1};
var qYg=function(d){d.JSC$9758_flushTimer.enabled||d.JSC$9758_flushTimer.start();d.invocationCount++;d.invocationCount>=d.invocationLimit&&d.snapshotAndFlush()};
a4.prototype.snapshotAndFlush=function(){var d=this.metricMap.values();d=[].concat(_.ru(d)).filter(function(H){return H.cellMap.size});
d.length&&this.streamzLogger.flush(d,this.shouldSendIsolatedPayload);a$U(d);this.invocationCount=0;this.JSC$9758_flushTimer.enabled&&this.JSC$9758_flushTimer.stop()};
a4.prototype.addNewCounter=function(d){var H=_.sH.apply(1,arguments);this.metricMap.has(d)||this.metricMap.set(d,new R7S(d,H))};
a4.prototype.addNewEventMetric=function(d){var H=_.sH.apply(1,arguments);this.metricMap.has(d)||this.metricMap.set(d,new V2M(d,H))};
var l$S=function(d,H){return d.disabledMetrics.has(H)?void 0:d.metricMap.get(H)};
a4.prototype.JSC$9758_incrementCounter=function(d){this.JSC$9758_incrementCounterBy(d,1,_.sH.apply(1,arguments))};
a4.prototype.JSC$9758_incrementCounterBy=function(d,H){var K=_.sH.apply(2,arguments),c=l$S(this,d);c&&c instanceof R7S&&(c.JSC$9697_incrementCounterBy(H,K),qYg(this))};
a4.prototype.record=function(d,H){var K=_.sH.apply(2,arguments),c=l$S(this,d);c&&c instanceof V2M&&(c.record(H,K),qYg(this))};
var a$U=function(d){for(var H=0;H<d.length;H++)d[H].clear()};_.mU=function(d,H,K){K=K===void 0?{}:K;H=Error.call(this,H);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.code=d;this.metadata=K;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(_.mU,Error);_.mU.prototype.toString=function(){var d="RpcError("+(fYM(this.code)||String(this.code))+")";this.message&&(d+=": "+this.message);return d};_.ecl=_.KF.JSON.parse;_.wN=_.KF.JSON.stringify;_.B3=_.KF.JSON.parse;_.koA=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"}};var x63=function(d){switch(d){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var n5l,CkM=function(){};
_.K1(CkM,_.AmF);CkM.prototype.createInstance=function(){return new XMLHttpRequest};
n5l=new CkM;_.P9=function(d){_.Rj.call(this);this.headers=new Map;this.JSC$9767_xmlHttpFactory_=d||null;this.JSC$9767_active_=!1;this.JSC$9767_xhr_=null;this.JSC$9767_lastUri_="";this.JSC$9767_lastErrorCode_=0;this.JSC$9767_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9767_timeoutId_=null;this.responseType_="";this.JSC$9767_withCredentials_=!1};
_.K1(_.P9,_.Rj);var RcN=/^https?$/i,Vu3=["POST","PUT"],U6C=[],aRi=function(d,H,K,c,p,g,a){var e=new _.P9;U6C.push(e);H&&e.listen("complete",H);e.listenOnce("ready",e.cleanupSend_);g&&(e.timeoutInterval_=Math.max(0,g));a&&(e.JSC$9767_withCredentials_=a);e.send(d,K,c,p)};
_.P9.prototype.cleanupSend_=function(){this.dispose();_.Q4(U6C,this)};
_.P9.prototype.send=function(d,H,K,c){if(this.JSC$9767_xhr_)throw Error("Aa`"+this.JSC$9767_lastUri_+"`"+d);H=H?H.toUpperCase():"GET";this.JSC$9767_lastUri_=d;this.JSC$9767_lastError_="";this.JSC$9767_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9767_active_=!0;this.JSC$9767_xhr_=this.createXhr();this.JSC$9767_xhr_.onreadystatechange=V5((0,_.LA)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9767_xhr_.open(H,String(d),!0),this.inOpen_=!1}catch(a){hc3(this,a);return}d=K||"";K=new Map(this.headers);
if(c)if(Object.getPrototypeOf(c)===Object.prototype)for(var p in c)K.set(p,c[p]);else if(typeof c.keys==="function"&&typeof c.get==="function"){p=_.q(c.keys());for(var g=p.next();!g.done;g=p.next())g=g.value,K.set(g,c.get(g))}else throw Error("Ba`"+String(c));c=Array.from(K.keys()).find(function(a){return"content-type"==a.toLowerCase()});
p=_.KF.FormData&&d instanceof _.KF.FormData;!_.TL(Vu3,H)||c||p||K.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");H=_.q(K);for(c=H.next();!c.done;c=H.next())K=_.q(c.value),c=K.next().value,K=K.next().value,this.JSC$9767_xhr_.setRequestHeader(c,K);this.responseType_&&(this.JSC$9767_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9767_xhr_&&this.JSC$9767_xhr_.withCredentials!==this.JSC$9767_withCredentials_&&(this.JSC$9767_xhr_.withCredentials=this.JSC$9767_withCredentials_);
try{this.JSC$9767_timeoutId_&&(clearTimeout(this.JSC$9767_timeoutId_),this.JSC$9767_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9767_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9767_xhr_.send(d),this.inSend_=!1}catch(a){hc3(this,a)}};
_.P9.prototype.createXhr=function(){return this.JSC$9767_xmlHttpFactory_?this.JSC$9767_xmlHttpFactory_.createInstance():n5l.createInstance()};
_.P9.prototype.timeout_=function(){typeof F4L!="undefined"&&this.JSC$9767_xhr_&&(this.JSC$9767_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9767_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var hc3=function(d,H){d.JSC$9767_active_=!1;d.JSC$9767_xhr_&&(d.inAbort_=!0,d.JSC$9767_xhr_.abort(),d.inAbort_=!1);d.JSC$9767_lastError_=H;d.JSC$9767_lastErrorCode_=5;LV7(d);MuC(d)},LV7=function(d){d.errorDispatched_||(d.errorDispatched_=!0,d.dispatchEvent("complete"),d.dispatchEvent("error"))};
_.P9.prototype.abort=function(d){this.JSC$9767_xhr_&&this.JSC$9767_active_&&(this.JSC$9767_active_=!1,this.inAbort_=!0,this.JSC$9767_xhr_.abort(),this.inAbort_=!1,this.JSC$9767_lastErrorCode_=d||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),MuC(this))};
_.P9.prototype.disposeInternal=function(){this.JSC$9767_xhr_&&(this.JSC$9767_active_&&(this.JSC$9767_active_=!1,this.inAbort_=!0,this.JSC$9767_xhr_.abort(),this.inAbort_=!1),MuC(this,!0));_.P9.superClass_.disposeInternal.call(this)};
_.P9.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)m63(this);else this.onReadyStateChangeEntryPoint_()};
_.P9.prototype.onReadyStateChangeEntryPoint_=function(){m63(this)};
var m63=function(d){if(d.JSC$9767_active_&&typeof F4L!="undefined")if(d.inSend_&&_.uA(d)==4)setTimeout(d.onReadyStateChange_.bind(d),0);else if(d.dispatchEvent("readystatechange"),d.isComplete()){d.JSC$9767_active_=!1;try{if(d.isSuccess())d.dispatchEvent("complete"),d.dispatchEvent("success");else{d.JSC$9767_lastErrorCode_=6;try{var H=_.uA(d)>2?d.JSC$9767_xhr_.statusText:""}catch(K){H=""}d.JSC$9767_lastError_=H+" ["+d.getStatus()+"]";LV7(d)}}finally{MuC(d)}}},MuC=function(d,H){if(d.JSC$9767_xhr_){d.JSC$9767_timeoutId_&&
(clearTimeout(d.JSC$9767_timeoutId_),d.JSC$9767_timeoutId_=null);
var K=d.JSC$9767_xhr_;d.JSC$9767_xhr_=null;H||d.dispatchEvent("ready");try{K.onreadystatechange=null}catch(c){}}};
_.P9.prototype.isActive=function(){return!!this.JSC$9767_xhr_};
_.P9.prototype.isComplete=function(){return _.uA(this)==4};
_.P9.prototype.isSuccess=function(){var d=this.getStatus(),H;if(!(H=x63(d))){if(d=d===0)d=uOd(String(this.JSC$9767_lastUri_)),d=!RcN.test(d);H=d}return H};
_.uA=function(d){return d.JSC$9767_xhr_?d.JSC$9767_xhr_.readyState:0};
_.G=_.P9.prototype;_.G.getStatus=function(){try{return _.uA(this)>2?this.JSC$9767_xhr_.status:-1}catch(d){return-1}};
_.G.getResponseText=function(){try{return this.JSC$9767_xhr_?this.JSC$9767_xhr_.responseText:""}catch(d){return""}};
_.G.getResponse=function(){try{if(!this.JSC$9767_xhr_)return null;if("response"in this.JSC$9767_xhr_)return this.JSC$9767_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9767_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9767_xhr_)return this.JSC$9767_xhr_.mozResponseArrayBuffer}return null}catch(d){return null}};
_.G.getAllResponseHeaders=function(){return this.JSC$9767_xhr_&&_.uA(this)>=2?this.JSC$9767_xhr_.getAllResponseHeaders()||"":""};
_.G.getLastError=function(){return typeof this.JSC$9767_lastError_==="string"?this.JSC$9767_lastError_:String(this.JSC$9767_lastError_)};var HjC=function(){};
HjC.prototype.send=function(d,H,K){H=H===void 0?function(){}:H;
K=K===void 0?function(){}:K;
aRi(d.url,function(c){c=c.target;c.isSuccess()?H(c.getResponseText()):K(c.getStatus())},d.requestType,d.body,d.requestHeaders,d.timeoutMillis,d.withCredentials)};
HjC.prototype.getTransmissionType=function(){return 1};var wfd=function(d,H){this.aRv=d;this.event=H;this.startTime=lr()},ijE;
wfd.prototype.done=function(){this.aRv.lr(this.event,lr()-this.startTime)};
var Ij=function(){H9.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.m(Ij,H9);_.rN=function(d,H,K){var c=lr();H=H();d.lr(K,lr()-c);return H};
ijE=function(){Ij.apply(this,arguments)};
_.m(ijE,Ij);_.G=ijE.prototype;_.G.hbt=function(){};
_.G.hP=function(){};
_.G.lr=function(){};
_.G.logError=function(){};
_.G.dL=function(){};
_.G.bm4=function(){};
_.G.q4U=function(){};
_.G.znj=function(){};
var PkC=function(d){Ij.call(this);var H=this;this.jf=d;this.TEST_ONLY={tsI:function(){return H.jf},
getExperimentIds:function(){return H.jf.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void H.jf.dispose()})};
_.m(PkC,Ij);_.G=PkC.prototype;_.G.update=function(d){this.jf.dispose();this.jf=d};
_.G.hP=function(d){this.jf.hP(d)};
_.G.lr=function(d,H){this.jf.lr(d,H)};
_.G.logError=function(d){this.jf.logError(d)};
_.G.dL=function(){this.jf.dL()};
_.G.bm4=function(d){this.jf.bm4(d)};
_.G.q4U=function(d){this.jf.q4U(d)};
_.G.znj=function(d){this.jf.znj(d)};
_.G.hbt=function(d){this.jf.hbt(d)};
var uFd=function(d,H){_.h_.call(this);var K=this;this.callback=d;this.zvf=H;this.yyk=-H;this.addOnDisposeCallback(function(){return void clearTimeout(K.timer)})};
_.m(uFd,_.h_);var I$3=function(d){if(d.timer===void 0){var H=Math.max(0,d.yyk+d.zvf-lr());d.timer=setTimeout(function(){try{d.callback()}finally{d.yyk=lr(),d.timer=void 0}},H)}},rA3=function(d,H){Ij.call(this);
this.metrics=d;this.pS=H};
_.m(rA3,Ij);_.G=rA3.prototype;_.G.hbt=function(d){this.metrics.gUZ.record(d,this.pS)};
_.G.hP=function(d){this.metrics.eventCount.increment(d,this.pS)};
_.G.lr=function(d,H){this.metrics.wpZ.record(H,d,this.pS)};
_.G.logError=function(d){this.metrics.errorCount.increment(d,this.pS)};
_.G.bm4=function(d){this.metrics.j3Z.increment(d,this.pS)};
_.G.q4U=function(d){this.metrics.cAD.increment(d,this.pS)};
_.G.znj=function(d){this.metrics.uiu.increment(d,this.pS)};
var GJf=function(d,H){H=H===void 0?[]:H;var K={pS:d.pS||"_",yus:d.yus||[],l56:d.l56|0,destinationUrl:d.destinationUrl,mLQ:d.mLQ||function(){},
cjF:d.cjF||function(g,a){return gp5(g,a,K.mLQ,K.destinationUrl)}},c=K.cjF("51",K.yus.concat(H));
rA3.call(this,{gUZ:new awg(c),errorCount:new xNX(c),eventCount:new e_3(c),wpZ:new kCM(c),l6v:new lwB(c),j3Z:new nO6(c),cAD:new C_0(c),uiu:new R_6(c)},K.pS);var p=this;this.TEST_ONLY={getExperimentIds:function(){return p.options.yus.concat(p.pmQ).sort(function(g,a){return g-a})}};
this.options=K;this.service=c;this.zHd=!d.cjF;this.flushDebouncer=new uFd(function(){return void p.service.snapshotAndFlush()},K.l56);
this.addOnDisposeCallback(function(){p.flushDebouncer.dispose();p.zHd&&p.service.dispose()});
(this.pmQ=H.slice()).sort(_.uMF)};
_.m(GJf,rA3);GJf.prototype.dL=function(){I$3(this.flushDebouncer)};var ZLh=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(ZLh,_.He);_.Tmh=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(_.Tmh,_.He);var O7=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d,0,O7.messageId)};
_.m(O7,_.He);var WVA=_.Zch(O7);O7.messageId="bfkj";var XEL=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(XEL,_.He);var BsX=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(BsX,_.He);var zc6=_.aK(BsX);_.ki=function(){var d=this;this.promise=new Promise(function(H,K){d.resolve=H;d.reject=K})};_.W9=function(d){_.h_.call(this);var H=this;this.tD2=Math.floor(Math.random()*200);this.cIt=new BsX;if("challenge"in d&&WVA(d.challenge)){var K=_.IB(d.challenge,4,void 0,rA);var c=_.IB(d.challenge,5,void 0,rA);_.IB(d.challenge,7,void 0,rA)&&(this.cIt=zc6(_.IB(d.challenge,7,void 0,rA)))}else K=d.program,c=d.globalName;this.addOnDisposeCallback(function(){var w,W,J;return _.l(function(F){if(F.nextAddress==1)return F.yield(H.bLT,2);w=F.yieldResult;W=w.c3r;(J=W)==null||J();_.VE(F)})});
this.k6=opl(d.toV||{},this.cIt);_.q_(this,this.k6);var p=new _.ki;this.bLT=p.promise;this.k6.hP("t");var g=this.k6.share(),a=new wfd(g,"t"),e=function(w,W,J,F){if(!H.k6.isDisposed()){var Y="k";W?Y="h":J&&(Y="u");Y!=="k"?F!==0&&(H.k6.hP(Y),H.k6.lr(Y,w)):H.tD2<=0?(H.k6.hP(Y),H.k6.lr(Y,w),H.tD2=Math.floor(Math.random()*200)):H.tD2--}},k=function(w,W,J,F){Promise.resolve().then(function(){a.done();
g.dL();g.dispose();p.resolve({f3r:w,c3r:W,mld:J,vLv:F})})};
if(!_.KF[c])throw this.k6.logError(25),Error("Ca");if(!_.KF[c].a)throw this.k6.logError(26),Error("Da");try{var C=_.KF[c].a;c=[];for(var R=[],V=Jm1(this.cIt),U=0;U<V.length;U++)c.push(V[U]),R.push(1);var L=ssE(this.cIt);for(V=0;V<L.length;V++)c.push(L[V]),R.push(2);this.bgd=_.q(C(K,k,!0,d.c3Q,e,[c,R],_.IB(this.cIt,5))).next().value;this.nAF=p.promise.then(function(){})}catch(w){throw this.k6.logError(28),w;
}};
_.m(_.W9,_.h_);_.W9.prototype.snapshot=function(d){if(this.isDisposed())throw Error("Ea");this.k6.hP("n");var H=this.k6.share();return this.bLT.then(function(K){var c=K.f3r;return new Promise(function(p){var g=new wfd(H,"n");c(function(a){g.done();H.hbt(a.length);H.dL();H.dispose();p(a)},[d.wF,
d.zqc,d.b2d,d.p9k])})})};
_.W9.prototype.mg4=function(d){this.bLT.then(function(H){var K;(K=H.mld)==null||K(d)})};
_.W9.prototype.cPw=function(d,H){return this.bLT.then(function(K){var c;return(c=K.vLv)==null?void 0:c(d,H,!1)})};
_.W9.prototype.wDb=function(){return this.k6.share()};var Xfg=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Xfg,_.He);var fQM=_.Zch(Xfg);var JA3=function(){this.promises={};this.dqf=null},srd=function(){JA3.instance||(JA3.instance=new JA3);
return JA3.instance},ZBl=function(d,H){return FVS(d,_.gF(H,ZLh,1,rA),_.gF(H,_.Tmh,2,rA),_.IB(H,3,void 0,rA))},FVS=function(d,H,K,c){if(!H&&!K)return Promise.resolve();
if(!c)return BfY(H,K);var p;(p=d.promises)[c]||(p[c]=new Promise(function(g,a){BfY(H,K).then(function(){d.dqf=c;g()},function(e){delete d.promises[c];
a(e)})}));
return d.promises[c]};var TsX=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(TsX,_.He);var Qr7=function(d,H){return _.Sn(d,1,H)},tu0=function(d,H){return _.Sn(d,2,H)};var B9=function(d){_.h_.call(this);var H=this;this.options=d;this.rHs=new _.ki;this.nAF=this.rHs.promise;this.kEs=new _.ki;this.fvx=1;this.uVU=new _.ki;this.fos=[];this.ycQ=d.ycQ||function(){};
this.ng4=new PkC(opl(d.toV||{}));YYA(this,d.dJ,d.lLQ,d.fQr,d.pod,Object.assign({},OB6,d.s3j||{}));this.addOnDisposeCallback(function(){return void SY3(H)})};
_.m(B9,_.h_);B9.prototype.snapshot=function(d){var H=this;return _.l(function(K){switch(K.nextAddress){case 1:if(H.isDisposed())throw Error("Ea");if(H.z3||H.fE3){K.jumpTo(2);break}return K.yield(H.kEs.promise,2);case 2:if(!H.z3){K.jumpTo(4);break}return K.yield(H.z3.snapshot(d),5);case 5:return K.return(K.yieldResult);case 4:throw H.fE3;}})};
var E5S=function(d){var H;return _.l(function(K){if(d.isDisposed())throw Error("Ea");(H=d.qK)!=null&&(H.endTimeMs=0,H.resolver(1));return K.yield(d.uVU.promise,0)})},SY3=function(d){d.fE3=Error("Ga");
d.kEs.resolve();FSY(d.rHs.promise);d.rHs.reject(Error("Ga"));d.ng4.dispose();Promise.all(d.fos).then(function(){var K;return _.l(function(c){(K=d.z3)==null||K.dispose();d.z3=void 0;_.VE(c)})});
d.fos=[];var H;(H=d.qK)!=null&&(H.endTimeMs=0,H.resolver(1));FSY(d.uVU.promise);d.uVU.reject(Error("Ga"))};
B9.prototype.mg4=function(d){var H,K;(H=this.z3)==null||(K=H.mg4)==null||K.call(H,d)};
B9.prototype.cPw=function(d,H){var K,c,p;return(p=(K=this.z3)==null?void 0:(c=K.cPw)==null?void 0:c.call(K,d,H))!=null?p:Promise.resolve()};
var yA0=function(d,H){var K=d.ycQ;d.ycQ=function(){K();H()}},bBM=function(d,H){d.isDisposed()||(d.z3=H,d.ng4.update(H.wDb()),d.kEs.resolve(),d.rHs.resolve(void 0),d.ycQ())};
B9.prototype.handleError=function(d){if(!this.isDisposed()){this.fE3=d;this.kEs.resolve();var H,K;(K=(H=this.options).at6)==null||K.call(H,d)}};
var Ns3=function(d,H){H&&(Promise.all(d.fos).then(function(){return void H.dispose()}),d.fos=[])},zw=function(d,H){d.fvx=H;
var K,c;(c=(K=d.options).piS)==null||c.call(K,H)},D6M=function(d){d.isDisposed()||(d.uVU.resolve(),d.uVU=new _.ki)},YYA=function(d,H,K,c,p,g){c=c===void 0?srd():c;
p=p===void 0?Promise.resolve(void 0):p;var a,e,k,C,R,V,U,L,w,W,J,F;_.l(function(Y){switch(Y.nextAddress){case 1:return Y.yield(0,3);case 3:e=null;if(!a){Y.jumpTo(6);break}zw(d,7);_.e2(Y,7);return Y.yield(R4(a.snapshot({}),g.yBZ,function(){return Promise.resolve("E:CTO")}),9);
case 9:e=Y.yieldResult;_.Em(Y,6);break;case 7:_.RV(Y),e="E:UCE";case 6:k=void 0,C=a?g.y8r:g.nMr,R=new ir(C,g.q7P,g.zrQ,g.hrf),V=1;case 10:if(!(V<=g.maxAttempts)){Y.jumpTo(12);break}if(V===1){Y.jumpTo(13);break}zw(d,0);d.qK=new f$A(R.getValue(),g.lnJ,g.mxZ);return Y.yield(d.qK.promise,14);case 14:U=Y.yieldResult,d.qK=void 0,U===1?(V=1,R.reset()):izg(R);case 13:_.e2(Y,15);L=void 0;if(K){L=K;Y.jumpTo(17);break}zw(d,5);w=c.dqf;return Y.yield(R4(AAg(H,w,e),g.zhd,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:L=Y.yieldResult;case 17:return zw(d,3),Y.yield(R4(ZBl(c,L),g.hdZ,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return zw(d,8),Y.yield(p,20);case 20:return W=new _.W9({challenge:L,toV:d.options.toV,c3Q:d.options.c3Q}),Y.yield(R4(W.nAF,g.wUI,function(){return Promise.reject(Error("Ja"))}),21);
case 21:k=W;Y.jumpTo(12);break;case 15:J=_.RV(Y),d.handleError(J),D6M(d);case 11:V++;Y.jumpTo(10);break;case 12:if(d.isDisposed()){Y.jumpTo(5);break}k&&(K=void 0,Ns3(d,a),a=k,bBM(d,k),D6M(d));zw(d,2);d.qK=new f$A(g.yLZ,g.lnJ,g.mxZ);return Y.yield(d.qK.promise,22);case 22:d.qK=void 0;if(d.isDisposed()){Y.jumpTo(5);break}Y.jumpTo(3);break;case 5:(F=a)==null||F.dispose(),_.VE(Y)}})};
B9.prototype.wDb=function(){return this.ng4.share()};
var OB6={yLZ:432E5,lnJ:3E5,mxZ:10,yBZ:1E4,zhd:3E4,hdZ:3E4,wUI:6E4,nMr:1E3,y8r:6E4,q7P:6E5,zrQ:.25,hrf:2,maxAttempts:10},f$A=function(d,H,K){var c=this;this.endTimeMs=Date.now()+d;this.promise=new Promise(function(g){c.resolver=g});
var p=function(){var g=c.endTimeMs-Date.now();g<=K?c.resolver(0):setTimeout(p,Math.min(g,H))};
p()};var jrd,JXi=(jrd=Math.imul)!=null?jrd:function(d,H){return d*H|0},Ve=[196,
200,224,18],XD=function(d,H,K){K=K===void 0?[]:K;this.maxItems=d;this.zG=H===void 0?0:H;this.nn=K},v5U=function(d){var H=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!H)return new XD(d);var K=H.split(",");if(K.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new XD(d);H=K.slice(1);H.length===1&&H[0]===""&&(H=[]);K=Number(K[0]);return isNaN(K)||K<0||K>H.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new XD(d)):new XD(d,K,H)};
XD.prototype.serialize=function(){return String(this.zG)+","+this.nn.join()};
XD.prototype.insert=function(d,H){var K=void 0;if(this.nn[this.zG]!==d){var c=this.nn.indexOf(d);c!==-1?(this.nn.splice(c,1),c<this.zG&&this.zG--,this.nn.splice(this.zG,0,d)):(K=this.nn[this.zG],this.nn[this.zG]=d)}this.zG=(this.zG+1)%this.maxItems;d=zdl("iU5q-!O9@$",this.serialize());K&&d&&H(K);return d};
var d_6=function(d,H){this.bwt=H;try{var K=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(c){K=!1}K&&(this.index=v5U(d))},HAX=function(d,H,K,c,p){var g=d.index?_.rN(d.bwt,function(){return TfE(d.index,F15(H),K,c,p)},"W"):"u";
d.bwt.znj(g)},$_6=function(d,H,K){var c=_.q(d.index?_.rN(d.bwt,function(){return Q5h(F15(H),K)},"R"):["u"]),p=c.next().value;
c=c.next().value;d.bwt.q4U(p);return c};var Kc7={toString:function(d){var H=[],K=0;d-=-2147483648;H[K++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(d%52);for(d=Math.floor(d/52);d>0;)H[K++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(d%62),d=Math.floor(d/62);return H.join("")}};var g10=function(d){d=c_B(d);for(var H=2654435769,K=2654435769,c=314159265,p=d.length,g=p,a=0,e=function(){H-=K;H-=c;H^=c>>>13;K-=c;K-=H;K^=H<<8;c-=H;c-=K;c^=K>>>13;H-=K;H-=c;H^=c>>>12;K-=c;K-=H;K^=H<<16;c-=H;c-=K;c^=K>>>5;H-=K;H-=c;H^=c>>>3;K-=c;K-=H;K^=H<<10;c-=H;c-=K;c^=K>>>15};g>=12;g-=12,a+=12)H+=pz7(d,a),K+=pz7(d,a+4),c+=pz7(d,a+8),e();
c+=p;switch(g){case 11:c+=d[a+10]<<24;case 10:c+=d[a+9]<<16;case 9:c+=d[a+8]<<8;case 8:K+=d[a+7]<<24;case 7:K+=d[a+6]<<16;case 6:K+=d[a+5]<<8;case 5:K+=d[a+4];case 4:H+=d[a+3]<<24;case 3:H+=d[a+2]<<16;case 2:H+=d[a+1]<<8;case 1:H+=d[a]}e();return Kc7.toString(c)},c_B=function(d){for(var H=[],K=0;K<d.length;K++)H.push(d.charCodeAt(K));
return H},pz7=function(d,H){return d[H]+(d[H+1]<<8)+(d[H+2]<<16)+(d[H+3]<<24)};var JH=function(d){_.h_.call(this);this.qE=d;this.iG7=new _.ki};
_.m(JH,_.h_);var iA3=function(d,H){var K=setTimeout(function(){d.iG7.resolve()},H);
d.addOnDisposeCallback(function(){return void clearTimeout(K)})};
JH.prototype.ijt=function(d,H){var K=this.c8(d);H==null||H(K);return _.rN(this.qE,function(){return _.mb(K,2)},this.bIo)};
var Gi6=function(d,H,K,c){return _.rN(d.qE,function(){return K?d.ijt(H,c):d.c8(H,c)},d.mb3)},o1l=function(d,H,K,c){JH.call(this,d);
this.vhP=H;this.lhI=K;this.mb3="m";this.bIo="x";this.wB0=0;iA3(this,c)};
_.m(o1l,JH);o1l.prototype.c8=function(d,H){var K=this;this.qE.hP(this.mb3);++this.wB0>=this.lhI&&this.iG7.resolve();var c=d();d=_.rN(this.qE,function(){return K.vhP(c)},"C");
if(d===void 0)throw new vr(17,"YNJ:Undefined");if(!(d instanceof Uint8Array))throw new vr(18,"ODM:Invalid");H==null||H(d);return d};
var q8C=function(d,H,K){JH.call(this,d);this.yFI=H;this.mb3="f";this.bIo="z";iA3(this,K)};
_.m(q8C,JH);q8C.prototype.c8=function(){return this.yFI};
var aBg=function(d,H,K){JH.call(this,d);this.vUZ=H;this.mb3="w";this.bIo="z";iA3(this,K)};
_.m(aBg,JH);aBg.prototype.c8=function(){var d=this;return _.rN(this.qE,function(){return _.fF(d.vUZ)},"d")};
aBg.prototype.ijt=function(){return this.vUZ};
var lBA=function(d,H){JH.call(this,d);this.error=H;this.mb3="e";this.bIo="y"};
_.m(lBA,JH);var ez3=function(d,H){var K=(H(d.error.message)+":"+H(d.error.stack)).substring(0,2048);H=K.length+1;K=tbF(K);var c=new Uint8Array(4+K.length);c.set([42,H&127|128,H>>7,d.error.code]);c.set(K,4);return c};
lBA.prototype.c8=function(){if(this.r8f)return this.r8f;this.r8f=ez3(this,function(d){return"_"+g10(d)});
return ez3(this,function(d){return d})};
var ki3=function(d,H,K){JH.call(this,d);this.cJI=H;this.clientState=K;this.mb3="S";this.bIo="q"};
_.m(ki3,JH);ki3.prototype.c8=function(){var d=Math.floor(Date.now()/1E3),H=[Math.random()*255,Math.random()*255],K=H.concat([this.cJI&255,this.clientState],[d>>24&255,d>>16&255,d>>8&255,d&255]);d=new Uint8Array(2+K.length);d[0]=34;d[1]=K.length;d.set(K,2);K=d.subarray(2);for(var c=H=H.length;c<K.length;++c)K[c]^=K[c%H];this.qE.bm4(this.clientState);return d};var x_C={bdZ:3E4,ezx:2E4},sL=function(d){_.h_.call(this);var H=this;this.srQ=new _.ki;this.ltC=0;this.cF=void 0;this.state=2;this.vm=d.vm;this.dJ=d.dJ;this.s3j=Object.assign({},x_C,d.s3j||{});this.yE=d.vm.wDb();var K;this.onError=(K=d.onError)!=null?K:function(){};
this.uzk=d.uzk||!1;if(n1B(d)){var c=this.vm;this.we6=function(){return E5S(c).catch(function(a){a=H.reportError(new vr(H.mC?20:32,"TRG:Disposed",a));H.cF=a;var e;(e=H.mC)==null||e.dispose();H.mC=void 0;H.srQ.reject(a)})};
yA0(c,function(){return void Cr3(H)});
c.fvx===2&&Cr3(this)}else this.we6=d.xtI,Cr3(this);var p=this.yE.share();p.hP("o");var g=new wfd(p,"o");this.srQ.promise.then(function(){g.done();p.dL();p.dispose()},function(){return void p.dispose()});
this.addOnDisposeCallback(function(){H.mC?(H.mC.dispose(),H.mC=void 0):H.cF?H.yE.dL():(H.cF=H.reportError(new vr(32,"TNP:Disposed")),H.yE.dL(),H.srQ.reject(H.cF))});
_.q_(this,this.yE)};
_.m(sL,_.h_);sL.prototype.vA7=function(){return this.srQ.promise};
var Rz3=function(d,H){if(!(H instanceof vr))if(H instanceof _.mU){var K=Error(H.toString());K.stack=H.stack;H=new vr(11,"EBH:Error",K)}else H=new vr(12,"BSO:Unknown",H);return d.reportError(H)},Cr3=function(d){var H,K,c,p,g,a,e,k,C,R,V,U,L,w,W;
return _.l(function(J){switch(J.nextAddress){case 1:H=void 0;d.ltC++;K=new _.ki;d.vm instanceof B9&&d.vm.fos.push(K.promise);if(!d.uzk){J.jumpTo(2);break}c=new _.ki;setTimeout(function(){return void c.resolve()});
return J.yield(c.promise,2);case 2:return p=d.yE.share(),_.e2(J,4,5),d.state=5,g={},a=[],J.yield(R4(d.vm.snapshot({wF:g,b2d:a}),d.s3j.ezx,function(){return Promise.reject(new vr(15,"MDA:Timeout"))}),7);
case 7:e=J.yieldResult;if(d.isDisposed())throw new vr(d.mC?20:32,"MDA:Disposed");k=a[0];d.state=6;return J.yield(R4(VXd(d.dJ,e),d.s3j.bdZ,function(){return Promise.reject(new vr(10,"BWB:Timeout"))}),8);
case 8:C=J.yieldResult;if(d.isDisposed())throw new vr(d.mC?20:32,"BWB:Disposed");d.state=7;H=_.rN(p,function(){var Y=U_M(d,C,K,k);Y.iG7.promise.then(function(){return void d.we6()});
return Y},"i");
case 5:_.xs(J);p.dispose();_.Cz(J,6);break;case 4:R=_.RV(J);(V=H)==null||V.dispose();if(!d.cF){U=Rz3(d,R);K.resolve();var F;if(F=d.vm instanceof B9&&d.ltC<2)a:if(R instanceof vr)F=R.code!==32&&R.code!==20&&R.code!==10;else{if(R instanceof _.mU)switch(R.code){case 2:case 13:case 14:case 4:break;default:F=!1;break a}F=!0}if(F)return L=(1+Math.random()*.25)*(d.mC?6E4:1E3),w=setTimeout(function(){return void d.we6()},L),d.addOnDisposeCallback(function(){return void clearTimeout(w)}),J.return();
d.cF=U}p.logError(d.mC?13:14);d.srQ.reject(d.cF);return J.return();case 6:d.state=8,d.ltC=0,(W=d.mC)==null||W.dispose(),d.mC=H,d.srQ.resolve(),_.VE(J)}})},U_M=function(d,H,K,c){var p=ceL(H,2)*1E3;
if(p<=0)throw new vr(31,"TTM:Invalid");if(_.IB(H,4))return new aBg(d.yE,_.IB(H,4),p);if(!ceL(H,3))return new q8C(d.yE,tF1(_.V8(H,1)),p);if(!c)throw new vr(4,"PMD:Undefined");c=c(tF1(_.V8(H,1)));if(!(c instanceof Function))throw new vr(16,"APF:Failed");d.hTv=Math.floor((Date.now()+p)/1E3);d=new o1l(d.yE,c,ceL(H,3),p);d.addOnDisposeCallback(function(){return void K.resolve()});
return d};
sL.prototype.c8=function(d){return hzl(this,Object.assign({},d),!1)};
sL.prototype.ijt=function(d){return hzl(this,Object.assign({},d),!0)};
sL.prototype.non=function(d){if(d>150)return!1;try{return this.cache=new d_6(d,this.yE),!0}catch(H){return this.reportError(new vr(22,"GBJ:init",H)),!1}};
sL.prototype.reportError=function(d){this.yE.logError(d.code);this.onError(d);return d};
var LcX=function(d,H){H=H instanceof vr?H:new vr(5,"TVD:error",H);return d.reportError(H)},hzl=function(d,H,K){try{if(d.isDisposed())throw new vr(21,"BNT:disposed");
if(!d.mC&&d.cF)throw d.cF;var c,p;return(p=(c=MXg(d,H,K))!=null?c:m_N(d,H,K))!=null?p:wzA(d,H,K)}catch(g){if(!H.mx7)throw LcX(d,g);return PrN(d,K,g)}},MXg=function(d,H,K){var c;
return(c=d.mC)==null?void 0:Gi6(c,function(){return uBN(d,H)},K,function(p){var g;
if(d.mC instanceof o1l&&((g=H.iP)==null?0:g.yld))try{var a;(a=d.cache)==null||HAX(a,uBN(d,H),p,H.iP.mQT,d.hTv-120)}catch(e){d.reportError(new vr(24,"ELX:write",e))}})},m_N=function(d,H,K){var c;
if((c=H.iP)!=null&&c.ccH)try{var p,g=(p=d.cache)==null?void 0:$_6(p,uBN(d,H),H.iP.mQT);return g?K?_.rN(d.yE,function(){return _.mb(g,2)},"a"):g:void 0}catch(a){d.reportError(new vr(23,"RXO:read",a))}},wzA=function(d,H,K){var c={stack:[],
error:void 0,hasError:!1};try{if(!H.iEY)throw new vr(29,"SDF:notready");return Gi6(O$f(c,new ki3(d.yE,0,d.state)),function(){return uBN(d,H)},K)}catch(p){c.error=p,c.hasError=!0}finally{S1X(c)}},PrN=function(d,H,K){var c={stack:[],
error:void 0,hasError:!1};try{var p=LcX(d,K);return Gi6(O$f(c,new lBA(d.yE,p)),function(){return[]},H)}catch(g){c.error=g,c.hasError=!0}finally{S1X(c)}},uBN=function(d,H){return H.a3c?H.a3c:H.wF?_.rN(d.yE,function(){return H.a3c=tbF(H.wF)},"c"):[]},n1B=function(d){return z3(function(H){if(!vz(H))return!1;
for(var K=_.q(Object.entries(d)),c=K.next();!c.done;c=K.next()){var p=_.q(c.value);c=p.next().value;p=p.next().value;if(!(c in H)){if(p.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!p(H[c]))return!1}return!0})}({vm:function(d){return z3(function(H){return H instanceof d})}(B9)},"");var IBU=function(){var d=_.qv();this.JSC$9885_streamzService=d;d.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",KA("cookie_enabled"),KA("cookie_3p_enabled"),_.pA("browser"))};
IBU.prototype.increment=function(d,H,K){this.JSC$9885_streamzService.JSC$9758_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",d,H,K)};
var ukM=function(){var d=_.qv();this.JSC$9909_streamzService=d;d.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",cz("tick"),KA("from_st_cookie"))};
ukM.prototype.increment=function(d,H){this.JSC$9909_streamzService.JSC$9758_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",d,H)};
var r_l=function(){var d=_.qv();this.JSC$9915_streamzService=d;d.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.pA("status"))};
r_l.prototype.increment=function(d){this.JSC$9915_streamzService.JSC$9758_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",d)};
var WcA=function(){var d=_.qv();this.JSC$9918_streamzService=d;d.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.pA("stage"),KA("is_using_ytd_player"),KA("has_expandable_tiles"))};
WcA.prototype.increment=function(d,H,K){this.JSC$9918_streamzService.JSC$9758_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",d,H,K)};
var Bk3=function(){var d=_.qv();this.JSC$9921_streamzService=d;d.addNewCounter("/client_streamz/youtube/web/response_signature",_.pA("check_status"))};
Bk3.prototype.increment=function(d){this.JSC$9921_streamzService.JSC$9758_incrementCounter("/client_streamz/youtube/web/response_signature",d)};
var zzN=function(){var d=_.qv();this.JSC$9924_streamzService=d;d.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.pA("sig"),cz("de"))};
zzN.prototype.increment=function(d,H){this.JSC$9924_streamzService.JSC$9758_incrementCounter("/client_streamz/youtube/web/e_sig_log",d,H)};
var Xz7=function(){var d=_.qv();this.JSC$9927_streamzService=d;d.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.pA("sig"),cz("de"))};
Xz7.prototype.increment=function(d,H){this.JSC$9927_streamzService.JSC$9758_incrementCounter("/client_streamz/youtube/web/e_sig_en",d,H)};
_.J_d=function(){var d=_.qv();this.JSC$9930_streamzService=d;d.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.pA("action"))};
_.J_d.prototype.increment=function(d){this.JSC$9930_streamzService.JSC$9758_incrementCounter("/client_streamz/youtube/web/enforcement_intent",d)};var FD=window;var s4X=(new Date).getTime();_.rs.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.rs.createSet("action","cite","data","formaction","href","manifest","poster","src");var Fc3=function(d){this.servicePromise_=d;d.then((0,_.LA)(function(){},this),function(){},this)},ZA7=function(d,H,K){d.servicePromise_.then(function(c){var p=c[H];
if(!p)throw Error("Ka`"+H);return p.apply(c,K)})},tXS=function(d,H,K){for(var c=Array(arguments.length-2),p=2;p<arguments.length;p++)c[p-2]=arguments[p];
p=Tk3(d,H).then(function(g){return g.apply(null,c)},function(g){g=Error("La`"+H+"`"+d,{cause:g});
delete Q4A[H];return _.W1(g)});
return new Fc3(p)},Q4A={},Tk3=function(d,H){var K=Q4A[H];
if(K)return K;K=(K=_.OS(H))?_.e5(K):(new _.kr(function(c,p){var g=(new h9(document)).createElement("SCRIPT");g.async=!0;_.fc(g,_.hL(XB3(d)));g.onload=g.onreadystatechange=function(){g.readyState&&g.readyState!="loaded"&&g.readyState!="complete"||c()};
g.onerror=function(a){p(Error("Ma`"+H+"`"+d,{cause:a}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(g)})).then(function(){var c=_.OS(H);
if(!c)throw Error("Na`"+H+"`"+d);return c});
return Q4A[H]=K};var Y8d={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},S8U=function(){var d=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=YmE(function(){return _.l(function(H){if(H.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?H.return(Promise.resolve()):H.yield(OAl(d),2);d.rsaForList.length>
0&&document.addEventListener("click",d.requestAccessForHelpPanel);_.VE(H)})});
this.requestAccessForHelpPanel=function(){if(!(d.rsaForPromises.length>0)){for(var H=_.q(d.rsaForList),K=H.next();!K.done;K=H.next()){K=K.value;try{d.rsaForPromises.push(document.requestStorageAccessFor(K))}catch(c){}}Promise.all(d.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){d.reset()})}}};
S8U.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var OAl=function(d){var H,K,c,p;return _.l(function(g){switch(g.nextAddress){case 1:H=_.q(Object.values(Y8d)),K=H.next();case 2:if(K.done){g.jumpTo(0);break}c=K.value;_.e2(g,5);return g.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:c}),7);case 7:p=g.yieldResult;p.state!=="granted"&&d.rsaForList.push(c);_.Em(g,3);break;case 5:_.RV(g);g.jumpTo(0);break;case 3:K=H.next(),g.jumpTo(2)}})};(new S8U).initialize();var E1l=function(d){this.JSC$9944_loader_=d};
E1l.prototype.startHelp=function(d){ZA7(this.JSC$9944_loader_,"startHelp",arguments)};
E1l.prototype.JSC$9946_loadChatSupport=function(d){ZA7(this.JSC$9944_loader_,"loadChatSupport",arguments)};
var bAC=function(d,H){H=H||{};d=tXS(y_A,"help.service.Lazy.create",d,{apiKey:H.apiKey||H.apiKey,asxUiUri:H.asxUiUri||H.asxUiUri,environment:H.environment||H.environment,flow:H.flow||H.flow,frdProductData:H.frdProductData||H.frdProductData,frdProductDataSerializedJspb:H.frdProductDataSerializedJspb||H.frdProductDataSerializedJspb,helpCenterPath:H.helpCenterPath||H.helpCenterPath,locale:H.locale||H.locale||"en-US".replace(/-/g,"_"),nonce:H.nonce||H.nonce,productData:H.productData||H.productData,receiverUri:H.receiverUri||
H.receiverUri,renderApiUri:H.renderApiUri||H.renderApiUri,theme:H.theme||H.theme,window:H.window||H.window});return new E1l(d)},y_A=new T5(VAi,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var Nkg=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Nkg,_.He);var D_3=_.aK(Nkg);_.fBS=new function(d,H,K,c){this.configType=d;this.flagName=K;this.defaultValue=c;this.flagType="bool"}(2,0,"external_fullscreen",!0);
new Uint8Array([10,2,75,82]);new Uint8Array([10,2,78,76,10,2,69,83]);new Uint8Array([]);new Uint8Array([]);new Uint8Array([]);var j4B=function(){this.retriever=_.Kj().resolve(A_A)};SmX(Node);SmX(Element);var v1g=SmX(HTMLElement);SmX(SVGElement);var dt0,HlC,Q5,$t6;dt0=function(d){return typeof d.className=="string"?d.className:d.getAttribute&&d.getAttribute("class")||""};
HlC=function(d){return d.classList?d.classList:dt0(d).match(/\S+/g)||[]};
_.ZS=function(d,H){typeof d.className=="string"?d.className=H:d.setAttribute&&d.setAttribute("class",H)};
_.Tw=function(d,H){return d.classList?d.classList.contains(H):_.TL(HlC(d),H)};
_.Hg=function(d,H){if(d.classList)d.classList.add(H);else if(!_.Tw(d,H)){var K=dt0(d);_.ZS(d,K+(K.length>0?" "+H:H))}};
Q5=function(d,H){if(d.classList)Array.prototype.forEach.call(H,function(p){_.Hg(d,p)});
else{var K={};Array.prototype.forEach.call(HlC(d),function(p){K[p]=!0});
Array.prototype.forEach.call(H,function(p){K[p]=!0});
H="";for(var c in K)H+=H.length>0?" "+c:c;_.ZS(d,H)}};
_.v1=function(d,H){d.classList?d.classList.remove(H):_.Tw(d,H)&&_.ZS(d,Array.prototype.filter.call(HlC(d),function(K){return K!=H}).join(" "))};
$t6=function(d,H){d.classList?Array.prototype.forEach.call(H,function(K){_.v1(d,K)}):_.ZS(d,Array.prototype.filter.call(HlC(d),function(K){return!_.TL(H,K)}).join(" "))};var K5S=function(d){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=d.document},gmd=function(d,H){ctB(d);
var K=document.createElement("div"),c;(c=H.parentNode)==null||c.insertBefore(K,H);K.tabIndex=0;K.id="fc-focus-trap-pre-div";K=document.createElement("div");var p;(p=H.parentNode)==null||p.insertBefore(K,H.nextSibling);K.tabIndex=0;K.id="fc-focus-trap-post-div";var g=pk7(d,H),a=pk7(d,H,!0);g&&a&&(d.focusChangeHandler=function(){var e=d.document.activeElement;if(e)if(_.FB(H,e))d.previouslyFocusedElement=e;else if(e===d.document.activeElement)switch(d.previouslyFocusedElement){case g:a.focus();d.previouslyFocusedElement=
a;break;default:g.focus(),d.previouslyFocusedElement=g}},d.document.addEventListener("focus",d.focusChangeHandler,!0),d.document.addEventListener("focusin",d.focusChangeHandler))},ctB=function(d){d.focusChangeHandler&&(document.removeEventListener("focus",d.focusChangeHandler,!0),document.removeEventListener("focusin",d.focusChangeHandler),d.focusChangeHandler=null);
var H;(H=document.getElementById("fc-focus-trap-pre-div"))==null||H.remove();var K;(K=document.getElementById("fc-focus-trap-post-div"))==null||K.remove()},ilN=function(d,H,K,c,p){K=K===void 0?!0:K;
var g;p=(g=p===void 0?null:p)!=null?g:pk7(d,H,c===void 0?!1:c);p!==null&&(p.focus(),K&&gmd(d,H))};
K5S.prototype.disableButton=function(d,H){H=H===void 0?null:H;d.disabled=!0;H&&_.Hg(d,H)};
var pk7=function(d,H,K){K=K===void 0?!1:K;if(TgC(H)&&!K)return H;var c=K?[].slice.call(H.children,0).reverse():H.children;c=_.q(c);for(var p=c.next();!p.done;p=c.next())if(p=p.value,v1g(p)&&(p=pk7(d,p,K)))return p;return TgC(H)&&K?H:null};var GO3=function(d){this.originalBodyOverflow="";this.JSC$9970_domHelper=Vy(d)};
GO3.prototype.enableScrolling=function(){this.JSC$9970_domHelper.JSC$9297_document_.body.style.overflow=this.originalBodyOverflow};_.K1(_.M_,_.h_);_.G=_.M_.prototype;_.G.JSC$9973_id_=0;_.G.disposeInternal=function(){_.M_.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9971_listener_;delete this.handler_};
_.G.start=function(d){this.stop();this.JSC$9973_id_=MW(this.callback_,d!==void 0?d:this.JSC$9971_interval_)};
_.G.stop=function(){this.isActive()&&_.KF.clearTimeout(this.JSC$9973_id_);this.JSC$9973_id_=0};
_.G.fire=function(){this.stop();this.JSC$9973_doAction_()};
_.G.isActive=function(){return this.JSC$9973_id_!=0};
_.G.JSC$9973_doAction_=function(){this.JSC$9973_id_=0;this.JSC$9971_listener_&&this.JSC$9971_listener_.call(this.handler_)};_.GA=function(d){_.h_.call(this);this.handler_=d;this.JSC$9974_keys_={}};
_.K1(_.GA,_.h_);var om6=[];_.GA.prototype.listen=function(d,H,K,c){Array.isArray(H)||(H&&(om6[0]=H.toString()),H=om6);for(var p=0;p<H.length;p++){var g=_.Iq(d,H[p],K||this.handleEvent,c||!1,this.handler_||this);if(!g)break;this.JSC$9974_keys_[g.key]=g}return this};
_.GA.prototype.listenOnce=function(d,H,K,c){return qeU(this,d,H,K,c)};
var qeU=function(d,H,K,c,p,g){if(Array.isArray(K))for(var a=0;a<K.length;a++)qeU(d,H,K[a],c,p,g);else{H=ml(H,K,c||d.handleEvent,p,g||d.handler_||d);if(!H)return d;d.JSC$9974_keys_[H.key]=H}return d};
_.GA.prototype.unlisten=function(d,H,K,c,p){if(Array.isArray(H))for(var g=0;g<H.length;g++)this.unlisten(d,H[g],K,c,p);else if(d=J1B(d,H,K||this.handleEvent,_.y4(c)?!!c.capture:!!c,p||this.handler_||this))wg(d),delete this.JSC$9974_keys_[d.key];return this};
_.GA.prototype.removeAll=function(){_.rs.forEach(this.JSC$9974_keys_,function(d,H){this.JSC$9974_keys_.hasOwnProperty(H)&&wg(d)},this);
this.JSC$9974_keys_={}};
_.GA.prototype.disposeInternal=function(){_.GA.superClass_.disposeInternal.call(this);this.removeAll()};
_.GA.prototype.handleEvent=function(){throw Error("Oa");};var tH=function(){_.h_.call(this);this.services_={}};
_.K1(tH,_.h_);tH.prototype.connect=function(d){d&&d()};
tH.prototype.isConnected=function(){return!0};
tH.prototype.registerService=function(d,H,K){this.services_[d]={callback:H,objectPayload:!!K}};
tH.prototype.getService=function(d,H){var K=this.services_[d];return K?K:this.defaultService_?{callback:_.hO(this.defaultService_,d),objectPayload:_.y4(H)}:null};
var apM=function(d,H){if(H&&typeof d==="string")try{return JSON.parse(d)}catch(K){return null}else if(!H&&typeof d!=="string")return(0,_.wN)(d);return d};
tH.prototype.disposeInternal=function(){tH.superClass_.disposeInternal.call(this);delete this.services_;delete this.defaultService_};/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
var YJ=function(d,H){this.sequence_=[];this.onCancelFunction_=d;this.defaultScope_=H||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
YJ.prototype.cancel=function(d){if(this.fired_)this.result_ instanceof YJ&&this.result_.cancel();else{if(this.parent_){var H=this.parent_;delete this.parent_;d?H.cancel(d):(H.branches_--,H.branches_<=0&&H.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new OL(this))}};
YJ.prototype.continue_=function(d,H){this.blocked_=!1;lpd(this,d,H)};
var lpd=function(d,H,K){d.fired_=!0;d.result_=K;d.hadError_=!H;eK6(d)},xt6=function(d){if(d.fired_){if(!d.silentlyCanceled_)throw new kOU(d);
d.silentlyCanceled_=!1}};
YJ.prototype.callback=function(d){xt6(this);lpd(this,!0,d)};
YJ.prototype.errback=function(d){xt6(this);lpd(this,!1,d)};
var nm7=function(d,H,K){So(d,H,null,K)};
YJ.prototype.finally=function(d){var H=this;return Cjd(new Promise(function(K,c){So(H,function(p){d();K(p)},function(p){d();
c(p)})}))};
var So=function(d,H,K,c){var p=d.fired_;p||(H===K?H=K=V5(H):(H=V5(H),K=V5(K)));d.sequence_.push([H,K,c]);p&&eK6(d)};
YJ.prototype.then=function(d,H,K){var c,p,g=new _.kr(function(a,e){p=a;c=e});
So(this,p,function(a){a instanceof OL?g.cancel():c(a);return RK3},this);
return g.then(d,H,K)};
OzN(YJ);var VyS=function(d,H){H instanceof YJ?nm7(d,(0,_.LA)(H.branch,H)):nm7(d,function(){return H})};
YJ.prototype.branch=function(d){var H=new YJ;So(this,H.callback,H.errback,H);d&&(H.parent_=this,this.branches_++);return H};
YJ.prototype.isError=function(d){return d instanceof Error};
var Ut6=function(d){return Nl(d.sequence_,function(H){return typeof H[1]==="function"})},RK3={},eK6=function(d){if(d.unhandledErrorId_&&d.fired_&&Ut6(d)){var H=d.unhandledErrorId_,K=hKA[H];
K&&(_.KF.clearTimeout(K.JSC$9991_id_),delete hKA[H]);d.unhandledErrorId_=0}d.parent_&&(d.parent_.branches_--,delete d.parent_);H=d.result_;for(var c=K=!1;d.sequence_.length&&!d.blocked_;){var p=d.sequence_.shift(),g=p[0],a=p[1];p=p[2];if(g=d.hadError_?a:g)try{var e=g.call(p||d.defaultScope_,H);e===RK3&&(e=void 0);e!==void 0&&(d.hadError_=d.hadError_&&(e==H||d.isError(e)),d.result_=H=e);if(SE3(H)||typeof _.KF.Promise==="function"&&H instanceof _.KF.Promise)c=!0,d.blocked_=!0}catch(k){H=k,d.hadError_=
!0,Ut6(d)||(K=!0)}}d.result_=H;c&&(e=(0,_.LA)(d.continue_,d,!0),c=(0,_.LA)(d.continue_,d,!1),H instanceof YJ?(So(H,e,c),H.blocking_=!0):H.then(e,c));K&&(H=new L5g(H),hKA[H.JSC$9991_id_]=H,d.unhandledErrorId_=H.JSC$9991_id_)},Cjd=function(d){var H=new YJ;
d.then(function(K){H.callback(K)},function(K){H.errback(K)});
return H},kOU=function(){_.dh.call(this)};
_.K1(kOU,_.dh);kOU.prototype.message="Deferred has already fired";kOU.prototype.name="AlreadyCalledError";var OL=function(){_.dh.call(this)};
_.K1(OL,_.dh);OL.prototype.message="Deferred was canceled";OL.prototype.name="CanceledError";var L5g=function(d){this.JSC$9991_id_=_.KF.setTimeout((0,_.LA)(this.throwError,this),0);this.JSC$9991_error_=d};
L5g.prototype.throwError=function(){delete hKA[this.JSC$9991_id_];throw this.JSC$9991_error_;};
var hKA={};var MyM={1:"NativeMessagingTransport"},mtM=["pu","lru","pru","lpu","ppu"],PjS=function(){for(var d=10,H=wkX,K=H.length,c="";d-- >0;)c+=H.charAt(Math.floor(Math.random()*K));return c},wkX="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var EL=function(d){_.h_.call(this);this.JSC$9994_domHelper_=d||Vy()};
_.K1(EL,_.h_);EL.prototype.transportType=0;EL.prototype.getWindow=function(){return this.JSC$9994_domHelper_.getWindow()};
EL.prototype.getName=function(){return MyM[String(this.transportType)]||""};var y5=function(d,H,K,c,p){EL.call(this,K);this.JSC$9997_channel_=d;this.protocolVersion_=p||2;this.peerHostname_=H||"*";this.JSC$9997_eventHandler_=new _.GA(this);this.maybeAttemptToConnectTimer_=new _.iG(100,this.getWindow());this.oneSidedHandshake_=!!c;this.setupAckReceived_=new YJ;this.setupAckSent_=new YJ;this.JSC$9997_connected_=new YJ;this.endpointId_=PjS();this.peerEndpointId_=null;this.oneSidedHandshake_?uqX(this.JSC$9997_channel_)==1?VyS(this.JSC$9997_connected_,this.setupAckReceived_):
VyS(this.JSC$9997_connected_,this.setupAckSent_):(VyS(this.JSC$9997_connected_,this.setupAckReceived_),this.protocolVersion_==2&&VyS(this.JSC$9997_connected_,this.setupAckSent_));nm7(this.JSC$9997_connected_,this.notifyConnected_,this);this.JSC$9997_connected_.callback(!0);this.JSC$9997_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.K1(y5,EL);y5.prototype.peerProtocolVersion_=null;y5.prototype.initialized_=!1;y5.prototype.transportType=1;var IpC={};y5.prototype.sendTimerId_=0;
var Bc0=function(d){var H=d.event_.data;if(typeof H!=="string")return!1;var K=H.indexOf("|"),c=H.indexOf(":");if(K==-1||c==-1)return!1;var p=H.substring(0,K);K=H.substring(K+1,c);H=H.substring(c+1);if(c=bA[p])return c.xpcDeliver(K,H,d.event_.origin),!0;c=rtS(H)[0];for(var g in bA){var a=bA[g];if(uqX(a)==1&&!a.isConnected()&&K=="tp"&&(c=="SETUP"||c=="SETUP_NTPV2")&&W50(a,d.event_.origin))return delete bA[a.name],a.name=p,bA[p]=a,a.xpcDeliver(K,H),!0}return!1},zK3=function(d){d.protocolVersion_!=2||
d.peerProtocolVersion_!=null&&d.peerProtocolVersion_!=2||d.send("tp","SETUP_NTPV2,"+d.endpointId_);
d.peerProtocolVersion_!=null&&d.peerProtocolVersion_!=1||d.send("tp","SETUP")},Xk3=function(d,H){if(d.protocolVersion_!=2||d.peerProtocolVersion_!=null&&d.peerProtocolVersion_!=2||H!=2){if(d.peerProtocolVersion_!=null&&d.peerProtocolVersion_!=1||H!=1)return;
d.send("tp","SETUP_ACK")}else d.send("tp","SETUP_ACK_NTPV2");d.setupAckSent_.fired_||d.setupAckSent_.callback(!0)},Jtl=function(d,H){H>d.peerProtocolVersion_&&(d.peerProtocolVersion_=H);
d.peerProtocolVersion_==1&&(d.setupAckSent_.fired_||d.oneSidedHandshake_||d.setupAckSent_.callback(!0),d.peerEndpointId_=null)};
_.G=y5.prototype;_.G.connect=function(){var d=this.getWindow(),H=_.b1(d),K=IpC[H];typeof K!=="number"&&(K=0);K==0&&_.Iq(d.postMessage?d:d.document,"message",Bc0,!1,y5);IpC[H]=K+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.G.maybeAttemptToConnect_=function(){var d=uqX(this.JSC$9997_channel_)==0;this.oneSidedHandshake_&&d||this.JSC$9997_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),zK3(this))};
_.G.send=function(d,H){var K=this.JSC$9997_channel_.peerWindowObject_;K&&(this.send=function(c,p){var g=this,a=this.JSC$9997_channel_.name;this.sendTimerId_=MW(function(){g.sendTimerId_=0;try{var e=K.postMessage?K:K.document;e.postMessage&&e.postMessage(a+"|"+c+":"+p,g.peerHostname_)}catch(k){}},0)},this.send(d,H))};
_.G.notifyConnected_=function(){var d=this.JSC$9997_channel_,H=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;d.isConnected()||d.connectionDelay_&&d.connectionDelay_.isActive()||(d.state_=2,_.AA(d.connectionDelay_),H!==void 0?(d.connectionDelay_=new _.M_(d.connectCb_,H),d.connectionDelay_.start()):(d.connectionDelay_=null,d.connectCb_()))};
_.G.disposeInternal=function(){if(this.initialized_){var d=this.getWindow(),H=_.b1(d),K=IpC[H];IpC[H]=K-1;K==1&&_.Cq(d.postMessage?d:d.document,"message",Bc0,!1,y5)}this.sendTimerId_&&(_.KF.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.AA(this.JSC$9997_eventHandler_);delete this.JSC$9997_eventHandler_;_.AA(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$9997_connected_.cancel();delete this.JSC$9997_connected_;delete this.send;y5.superClass_.disposeInternal.call(this)};
var rtS=function(d){d=d.split(",");d[1]=d[1]||null;return d};var F5N;_.NW=function(d){if(d.getValues&&typeof d.getValues=="function")return d.getValues();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(_.O5(d)){for(var H=[],K=d.length,c=0;c<K;c++)H.push(d[c]);return H}return _.rs.getValues(d)};
_.sH7=function(d){if(d.getKeys&&typeof d.getKeys=="function")return d.getKeys();if(!d.getValues||typeof d.getValues!="function"){if(typeof Map!=="undefined"&&d instanceof Map)return Array.from(d.keys());if(!(typeof Set!=="undefined"&&d instanceof Set)){if(_.O5(d)||typeof d==="string"){var H=[];d=d.length;for(var K=0;K<d;K++)H.push(K);return H}return _.rs.getKeys(d)}}};
F5N=function(d,H,K){if(d.forEach&&typeof d.forEach=="function")d.forEach(H,K);else if(_.O5(d)||typeof d==="string")Array.prototype.forEach.call(d,H,K);else for(var c=_.sH7(d),p=_.NW(d),g=p.length,a=0;a<g;a++)H.call(K,p[a],c&&c[a],d)};var Bjl,HQ,KG,Se0,ZlN,QH7,TcN,Ol6,tyd;
_.jM=function(d,H){this.JSC$10002_domain_=this.userInfo_=this.scheme_="";this.JSC$10002_port_=null;this.fragment_=this.JSC$10002_path_="";this.JSC$10002_ignoreCase_=!1;var K;d instanceof _.jM?(this.JSC$10002_ignoreCase_=H!==void 0?H:d.JSC$10002_ignoreCase_,_.DS(this,d.scheme_),this.userInfo_=d.userInfo_,_.fq(this,d.JSC$10002_domain_),_.AH(this,d.JSC$10002_port_),_.jo(this,d.getPath()),_.v9(this,d.JSC$10002_queryData_.clone()),_.dM(this,d.fragment_)):d&&(K=_.Am(String(d)))?(this.JSC$10002_ignoreCase_=
!!H,_.DS(this,K[1]||"",!0),this.userInfo_=HQ(K[2]||""),_.fq(this,K[3]||"",!0),_.AH(this,K[4]),_.jo(this,K[5]||"",!0),_.v9(this,K[6]||"",!0),_.dM(this,K[7]||"",!0)):(this.JSC$10002_ignoreCase_=!!H,this.JSC$10002_queryData_=new _.$3(null,this.JSC$10002_ignoreCase_))};
_.jM.prototype.toString=function(){var d=[],H=this.scheme_;H&&d.push(KG(H,ZlN,!0),":");var K=this.JSC$10002_domain_;if(K||H=="file")d.push("//"),(H=this.userInfo_)&&d.push(KG(H,ZlN,!0),"@"),d.push(_.ES(K).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),K=this.JSC$10002_port_,K!=null&&d.push(":",String(K));if(K=this.getPath())this.JSC$10002_domain_&&K.charAt(0)!="/"&&d.push("/"),d.push(KG(K,K.charAt(0)=="/"?TcN:QH7,!0));(K=this.JSC$10002_queryData_.toString())&&d.push("?",K);(K=this.fragment_)&&d.push("#",
KG(K,tyd));return d.join("")};
_.jM.prototype.resolve=function(d){var H=this.clone(),K=!!d.scheme_;K?_.DS(H,d.scheme_):K=!!d.userInfo_;K?H.userInfo_=d.userInfo_:K=!!d.JSC$10002_domain_;K?_.fq(H,d.JSC$10002_domain_):K=d.JSC$10002_port_!=null;var c=d.getPath();if(K)_.AH(H,d.JSC$10002_port_);else if(K=!!d.JSC$10002_path_){if(c.charAt(0)!="/")if(this.JSC$10002_domain_&&!this.JSC$10002_path_)c="/"+c;else{var p=H.getPath().lastIndexOf("/");p!=-1&&(c=H.getPath().slice(0,p+1)+c)}p=c;if(p==".."||p==".")c="";else if(_.qf(p,"./")||_.qf(p,
"/.")){c=_.gh(p,"/");p=p.split("/");for(var g=[],a=0;a<p.length;){var e=p[a++];e=="."?c&&a==p.length&&g.push(""):e==".."?((g.length>1||g.length==1&&g[0]!="")&&g.pop(),c&&a==p.length&&g.push("")):(g.push(e),c=!0)}c=g.join("/")}else c=p}K?_.jo(H,c):K=d.JSC$10002_queryData_.toString()!=="";K?_.v9(H,d.JSC$10002_queryData_.clone()):K=!!d.fragment_;K&&_.dM(H,d.fragment_);return H};
_.jM.prototype.clone=function(){return new _.jM(this)};
_.DS=function(d,H,K){d.scheme_=K?HQ(H,!0):H;d.scheme_&&(d.scheme_=d.scheme_.replace(/:$/,""));return d};
_.fq=function(d,H,K){d.JSC$10002_domain_=K?HQ(H,!0):H;return d};
_.AH=function(d,H){if(H){H=Number(H);if(isNaN(H)||H<0)throw Error("Pa`"+H);d.JSC$10002_port_=H}else d.JSC$10002_port_=null;return d};
_.jM.prototype.getPath=function(){return this.JSC$10002_path_};
_.jo=function(d,H,K){d.JSC$10002_path_=K?HQ(H,!0):H;return d};
_.v9=function(d,H,K){H instanceof _.$3?(d.JSC$10002_queryData_=H,YeN(d.JSC$10002_queryData_,d.JSC$10002_ignoreCase_)):(K||(H=KG(H,Ol6)),d.JSC$10002_queryData_=new _.$3(H,d.JSC$10002_ignoreCase_));return d};
_.Y1=function(d,H,K){d.JSC$10002_queryData_.set(H,K);return d};
_.t_=function(d,H){return d.JSC$10002_queryData_.get(H)};
_.dM=function(d,H,K){d.fragment_=K?HQ(H):H;return d};
_.cQ=function(d){_.Y1(d,"zx",Ti());return d};
_.Qe=function(d,H){return d instanceof _.jM?d.clone():new _.jM(d,H)};
Bjl=function(d,H){d instanceof _.jM||(d=_.Qe(d));H instanceof _.jM||(H=_.Qe(H));return d.resolve(H)};
HQ=function(d,H){return d?H?decodeURI(d.replace(/%25/g,"%2525")):decodeURIComponent(d):""};
KG=function(d,H,K){return typeof d==="string"?(d=encodeURI(d).replace(H,Se0),K&&(d=d.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),d):null};
Se0=function(d){d=d.charCodeAt(0);return"%"+(d>>4&15).toString(16)+(d&15).toString(16)};
ZlN=/[#\/\?@]/g;QH7=/[#\?:]/g;TcN=/[#\?]/g;Ol6=/[#\?@]/g;tyd=/#/g;_.$3=function(d,H){this.count_=this.keyMap_=null;this.encodedQuery_=d||null;this.JSC$10003_ignoreCase_=!!H};
_.pG=function(d){d.keyMap_||(d.keyMap_=new Map,d.count_=0,d.encodedQuery_&&Wb6(d.encodedQuery_,function(H,K){d.add(Hb(H),K)}))};
_.G=_.$3.prototype;_.G.getCount=function(){_.pG(this);return this.count_};
_.G.add=function(d,H){_.pG(this);this.encodedQuery_=null;d=gM(this,d);var K=this.keyMap_.get(d);K||this.keyMap_.set(d,K=[]);K.push(H);this.count_+=1;return this};
_.G.remove=function(d){_.pG(this);d=gM(this,d);return this.keyMap_.has(d)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(d).length,this.keyMap_.delete(d)):!1};
_.G.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.G.isEmpty=function(){_.pG(this);return this.count_==0};
_.G.containsKey=function(d){_.pG(this);d=gM(this,d);return this.keyMap_.has(d)};
_.G.containsValue=function(d){var H=this.getValues();return _.TL(H,d)};
_.G.forEach=function(d,H){_.pG(this);this.keyMap_.forEach(function(K,c){K.forEach(function(p){d.call(H,p,c,this)},this)},this)};
_.G.getKeys=function(){_.pG(this);for(var d=Array.from(this.keyMap_.values()),H=Array.from(this.keyMap_.keys()),K=[],c=0;c<H.length;c++)for(var p=d[c],g=0;g<p.length;g++)K.push(H[c]);return K};
_.G.getValues=function(d){_.pG(this);var H=[];if(typeof d==="string")this.containsKey(d)&&(H=H.concat(this.keyMap_.get(gM(this,d))));else{d=Array.from(this.keyMap_.values());for(var K=0;K<d.length;K++)H=H.concat(d[K])}return H};
_.G.set=function(d,H){_.pG(this);this.encodedQuery_=null;d=gM(this,d);this.containsKey(d)&&(this.count_-=this.keyMap_.get(d).length);this.keyMap_.set(d,[H]);this.count_+=1;return this};
_.G.get=function(d,H){if(!d)return H;d=this.getValues(d);return d.length>0?String(d[0]):H};
_.EmM=function(d,H,K){d.remove(H);K.length>0&&(d.encodedQuery_=null,d.keyMap_.set(gM(d,H),_.tC(K)),d.count_+=K.length)};
_.$3.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var d=[],H=Array.from(this.keyMap_.keys()),K=0;K<H.length;K++){var c=H[K],p=_.ES(c);c=this.getValues(c);for(var g=0;g<c.length;g++){var a=p;c[g]!==""&&(a+="="+_.ES(c[g]));d.push(a)}}return this.encodedQuery_=d.join("&")};
_.$3.prototype.clone=function(){var d=new _.$3;d.encodedQuery_=this.encodedQuery_;this.keyMap_&&(d.keyMap_=new Map(this.keyMap_),d.count_=this.count_);return d};
var gM=function(d,H){H=String(H);d.JSC$10003_ignoreCase_&&(H=H.toLowerCase());return H},YeN=function(d,H){H&&!d.JSC$10003_ignoreCase_&&(_.pG(d),d.encodedQuery_=null,d.keyMap_.forEach(function(K,c){var p=c.toLowerCase();
c!=p&&(this.remove(c),_.EmM(this,p,K))},d));
d.JSC$10003_ignoreCase_=H};
_.$3.prototype.extend=function(d){for(var H=0;H<arguments.length;H++)F5N(arguments[H],function(K,c){this.add(c,K)},this)};var iI=function(d,H){tH.call(this);for(var K=0,c;c=mtM[K];K++)if(c in d&&!/^https?:\/\//.test(d[c]))throw Error("Ra`"+d[c]+"`"+c);this.cfg_=d;this.name=this.cfg_.cn||PjS();this.JSC$9998_domHelper_=H||Vy();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.GA(this);d.lpu=d.lpu||I5d(this.JSC$9998_domHelper_.getWindow().location.href)+"/robots.txt";d.ppu=d.ppu||I5d(d.pu||"")+"/robots.txt";bA[this.name]=this;J1B(window,"unload",yt7)||ml(window,"unload",yt7)};
_.K1(iI,tH);var blB=RegExp("^%*tp$"),Nc6=RegExp("^%+tp$");_.G=iI.prototype;_.G.connectionDelay_=null;_.G.peerWindowDeferred_=null;_.G.transport_=null;_.G.state_=1;_.G.isConnected=function(){return this.state_==2};
_.G.peerWindowObject_=null;_.G.iframeElement_=null;_.G.connect=function(d){this.connectCb_=d||_.nV;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?nm7(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.G.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$9998_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var d=this.iframeElement_.contentWindow;d||(d=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=d}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$9998_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new y5(this,this.cfg_.ph,this.JSC$9998_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.G.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.AA(this.transport_);this.connectCb_=this.transport_=null;_.AA(this.connectionDelay_);this.connectionDelay_=null};
_.G.send=function(d,H){if(this.isConnected()){try{var K=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(p){K=!1}if(K){_.y4(H)&&(H=(0,_.wN)(H));K=this.transport_;var c=K.send;blB.test(d)&&(d="%"+d);d=d.replace(/[%:|]/g,encodeURIComponent);c.call(K,d,H)}else this.close()}};
_.G.xpcDeliver=function(d,H,K){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.LA)(this.xpcDeliver,this,d,H,K));else if(W50(this,K)&&!this.isDisposed()&&this.state_!=3)if(d&&d!="tp")this.isConnected()&&(d=d.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),d=Nc6.test(d)?d.substring(1):d,d=this.getService(d,H))&&(H=apM(H,d.objectPayload),H!=null&&d.callback(H));else switch(d=this.transport_,K=rtS(H),H=K[1],K[0]){case "SETUP_ACK":Jtl(d,1);d.setupAckReceived_.fired_||d.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":d.protocolVersion_==2&&(Jtl(d,2),d.setupAckReceived_.fired_||d.setupAckReceived_.callback(!0));break;case "SETUP":Jtl(d,1);Xk3(d,1);break;case "SETUP_NTPV2":d.protocolVersion_==2&&(K=d.peerProtocolVersion_,Jtl(d,2),Xk3(d,2),K!=1&&d.peerEndpointId_==null||d.peerEndpointId_==H||zK3(d),d.peerEndpointId_=H)}};
var uqX=function(d){var H=d.cfg_.role;return typeof H==="number"?H:window.parent==d.peerWindowObject_?1:0},W50=function(d,H){var K=d.cfg_.ph;
return _.oE(H==null?"":String(H))||_.oE(K==null?"":String(K))||H==d.cfg_.ph};
iI.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete bA[this.name];_.AA(this.peerLoadHandler_);delete this.peerLoadHandler_;iI.superClass_.disposeInternal.call(this)};
var yt7=function(){for(var d in bA)_.AA(bA[d])},bA={};var fpN=function(d,H){this.JSC$10012_win=d;this.allowAdsHttpEndpoint=H;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10012_domHelper=Vy(d);this.scrollManager=new GO3(d);this.accessibilityManager=new K5S(d);DtC(this)},DtC=function(d){var H=function(){d.allowAdsPopup&&d.allowAdsPopup.style.setProperty("display","none","important");
d.wallElement.style.setProperty("display","","important");ctB(d.accessibilityManager);ilN(d.accessibilityManager,d.wallElement.querySelector(".fc-dialog-container"),!1,!1,d.wallElement.querySelector(".fc-button-whitelist"));d.scrollManager.enableScrolling()};
d.allowAdsPopup=d.JSC$10012_domHelper.JSC$9299_createDom("DIV",{"class":"fc-whitelist-root"});d.allowAdsPopup.style.setProperty("display","none","important");d.JSC$10012_domHelper.appendChild(d.JSC$10012_domHelper.JSC$9297_document_.body,d.allowAdsPopup);var K=d.JSC$10012_domHelper.JSC$9299_createDom("DIV",{"class":"fc-dialog-overlay"});d.JSC$10012_domHelper.appendChild(d.allowAdsPopup,K);var c=d.JSC$10012_domHelper.JSC$9299_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:H});d.JSC$10012_domHelper.appendChild(d.allowAdsPopup,
c);K=d.JSC$10012_domHelper.JSC$9299_createDom("IFRAME");K.className="fc-whitelist-dialog";K.frameBorder="0";K.id="fc-whitelist-iframe";K.tabIndex="0";_.OH(K,d.allowAdsHttpEndpoint);d.JSC$10012_domHelper.appendChild(c,K);c={};c.pu=_.Lc(d.allowAdsHttpEndpoint).toString();c.tp=1;c.cn="fc-whitelist-channel";c.ifrid=K.id;c.osh=!0;d.allowAdsCrossPageChannel=new iI(c);d.allowAdsCrossPageChannel.registerService("close",H);d.allowAdsCrossPageChannel.registerService("refresh",function(){d.JSC$10012_win.location.reload()});
d.allowAdsCrossPageChannel.registerService("resize",function(p){if(p){var g=d.allowAdsPopup.querySelector(".fc-whitelist-dialog");p.width&&g.style.setProperty("width",p.width,"important");p.height&&g.style.setProperty("height",p.height,"important")}},!0);
d.allowAdsCrossPageChannel.connect()};
fpN.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10012_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var GQ=window,oY=document,At6=GQ.location,jHN=function(){},vmN=/\[native code\]/,q3=function(d,H,K){return d[H]=d[H]||K},dMX=function(d){d=d.sort();
for(var H=[],K=void 0,c=0;c<d.length;c++){var p=d[c];p!=K&&H.push(p);K=p}return H},lI=function(){var d;
if((d=Object.create)&&vmN.test(d))d=d(null);else{d={};for(var H in d)d[H]=void 0}return d},eJ=q3(GQ,"gapi",{});var k3={};k3=q3(GQ,"___jsl",lI());q3(k3,"I",0);q3(k3,"hel",10);var H6X=function(){var d=At6.href;if(k3.dpo)var H=k3.h;else{H=k3.h;var K=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),c=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(d=d&&(K.exec(d)||c.exec(d)))try{H=decodeURIComponent(d[2])}catch(p){}}return H},$M3=function(d){var H=q3(k3,"PQ",[]);
k3.PQ=[];var K=H.length;if(K===0)d();else for(var c=0,p=function(){++c===K&&d()},g=0;g<K;g++)H[g](p)},KS0=function(d){return q3(q3(k3,"H",lI()),d,lI())};var x3=function(d){this.JSC$10014_obj_=d};
x3.prototype.value=function(){return this.JSC$10014_obj_};
x3.prototype.getWidth=function(){return this.JSC$10014_obj_.width};
x3.prototype.getHeight=function(){return this.JSC$10014_obj_.height};
x3.prototype.getStyle=function(){return this.JSC$10014_obj_.style};var cm3=function(d){this.JSC$10017_obj_=d||{}};
_.G=cm3.prototype;_.G.value=function(){return this.JSC$10017_obj_};
_.G.setUrl=function(d){this.JSC$10017_obj_.url=d;return this};
_.G.getUrl=function(){return this.JSC$10017_obj_.url};
_.G.getStyle=function(){return this.JSC$10017_obj_.style};
_.G.getId=function(){return this.JSC$10017_obj_.id};
_.G.getContext=function(){return this.JSC$10017_obj_.context};
var pEC=function(d){d.JSC$10017_obj_.attributes=d.JSC$10017_obj_.attributes||{};return new x3(d.JSC$10017_obj_.attributes)};var g2l=function(){cm3.apply(this,arguments)};
_.m(g2l,cm3);var i67=q3(k3,"perf",lI());q3(i67,"g",lI());var G93=q3(i67,"i",lI());q3(i67,"r",[]);lI();lI();var qS3=function(d,H,K){H&&H.length>0&&(H=o2l(H),K&&K.length>0&&(H+="___"+o2l(K)),H.length>28&&(H=H.substr(0,28)+(H.length-28)),K=H,H=q3(G93,"_p",lI()),q3(H,K,lI())[d]=(new Date).getTime(),H=i67.r,typeof H==="function"?H(d,"_p",K):H.push([d,"_p",K]))},o2l=function(d){return d.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var aYM=lI(),lY7=[],nG=function(d){throw Error("Ua`"+d);};
lY7.push(["jsl",function(d){for(var H in d)if(Object.prototype.hasOwnProperty.call(d,H)){var K=d[H];typeof K=="object"?k3[H]=q3(k3,H,[]).concat(K):q3(k3,H,K)}if(H=d.u)d=q3(k3,"us",[]),d.push(H),(H=/^https:(.*)$/.exec(H))&&d.push("http:"+H[1])}]);
var ehU=/^(\/[a-zA-Z0-9_\-]+)+$/,k9N=[/\/amp\//,/\/amp$/,/^\/amp$/],xMS=/^[a-zA-Z0-9\-_\.,!]+$/,n23=/^gapi\.loaded_[0-9]+$/,CUd=/^[a-zA-Z0-9,._-]+$/,hh3=function(d,H,K,c,p){var g=d.split(";"),a=g.shift(),e=aYM[a],k=null;e?k=e(g,H,K,c):nG("no hint processor for: "+a);k||nG("failed to generate load url");H=k;K=H.match(Rh6);(c=H.match(VD6))&&c.length===1&&UM3.test(H)&&K&&K.length===1||nG("failed sanity: "+d);try{d="?";if(p&&p.length>0){P11(p);var C=p.join(",");k=k+"?le="+C;d="&"}if(k3.rol){var R=k3.ol;
R&&R.length&&(k=""+k+d+"ol="+R.length)}}catch(V){}return k},mMN=function(d,H,K,c){d=LS0(d);
n23.test(K)||nG("invalid_callback");H=MDl(H);c=c&&c.length?MDl(c):null;var p=function(g){return encodeURIComponent(g).replace(/%2C/g,",")};
return[encodeURIComponent(d.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",p(d.version),"/m=",p(H),c?"/exm="+p(c):"","/rt=j/sv=1/d=1/ed=1",d.activeMods?"/am="+p(d.activeMods):"",d.resourceSig?"/rs="+p(d.resourceSig):"",d.zcms?"/t="+p(d.zcms):"","/cb=",p(K)].join("")},LS0=function(d){d.charAt(0)!=="/"&&nG("relative path");
for(var H=d.substring(1).split("/"),K=[];H.length;){d=H.shift();if(!d.length||d.indexOf(".")==0)nG("empty/relative directory");else if(d.indexOf("=")>0){H.unshift(d);break}K.push(d)}d={};for(var c=0,p=H.length;c<p;++c){var g=H[c].split("="),a=decodeURIComponent(g[0]),e=decodeURIComponent(g[1]);g.length==2&&a&&e&&(d[a]=d[a]||e)}H="/"+K.join("/");ehU.test(H)||nG("invalid_prefix");K=0;for(c=k9N.length;K<c;++K)k9N[K].test(H)&&nG("invalid_prefix");K=wE6(d,"k",!0);c=wE6(d,"am");p=wE6(d,"rs");d=wE6(d,"t");
return{pathPrefix:H,version:K,activeMods:c,resourceSig:p,zcms:d}},MDl=function(d){for(var H=[],K=0,c=d.length;K<c;++K){var p=d[K].replace(/\./g,"_").replace(/-/g,"_");
CUd.test(p)&&H.push(p)}return H.join(",")},wE6=function(d,H,K){d=d[H];
!d&&K&&nG("missing: "+H);if(d){if(xMS.test(d))return d;nG("invalid: "+H)}return null},UM3=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,VD6=/\/cb=/g,Rh6=/\/\//g;
aYM.m=function(d,H,K,c){(d=d[0])||nG("missing_hint");return"https://apis.google.com"+mMN(d,H,K,c)};
var PUN=decodeURI("%73cript"),umX=/^[-+_0-9\/A-Za-z]+={0,2}$/,IYN=function(d,H){for(var K=[],c=0;c<d.length;++c){var p=d[c],g;if(g=p){a:{for(g=0;g<H.length;g++)if(H[g]===p)break a;g=-1}g=g<0}g&&K.push(p)}return K},rm6=function(){var d=k3.nonce;
return d!==void 0?d&&d===String(d)&&d.match(umX)?d:k3.nonce=null:oY.querySelector?(d=oY.querySelector("script[nonce]"))?(d=d.nonce||d.getAttribute("nonce")||"",d&&d===String(d)&&d.match(umX)?k3.nonce=d:k3.nonce=null):null:null},zhN=function(d){if(oY.readyState!="loading")WSC(d);
else{var H=rm6(),K="";H!==null&&(K=' nonce="'+H+'"');d="<"+PUN+' src="'+encodeURI(d)+'"'+K+"></"+PUN+">";oY.write(B93?B93.createHTML(d):d)}},WSC=function(d){var H=oY.createElement(PUN);
H.setAttribute("src",B93?B93.createScriptURL(d):d);d=rm6();d!==null&&H.setAttribute("nonce",d);H.async="true";(d=oY.getElementsByTagName(PUN)[0])?d.parentNode.insertBefore(H,d):(oY.head||oY.body||oY.documentElement).appendChild(H)},JmM=function(d,H,K){XE3(function(){var c=H===H6X()?q3(eJ,"_",lI()):lI();
c=q3(KS0(H),"_",c);d(c)},K)},LqE=function(d,H){var K=H||{};
typeof H=="function"&&(K={},K.callback=H);var c=(H=K)&&H._c;if(c)for(var p=0;p<lY7.length;p++){var g=lY7[p][0],a=lY7[p][1];a&&Object.prototype.hasOwnProperty.call(c,g)&&a(c[g],d,H)}H=[];d?H=d.split(":"):K.features&&(H=K.features);if(!(d=K.h)&&(d=H6X(),!d))throw Error("Va");ssC(H||[],K,d)},ssC=function(d,H,K){d=dMX(d)||[];
var c=H.callback,p=H.config,g=H.timeout,a=H.ontimeout,e=H.onerror,k=void 0;typeof e=="function"&&(k=e);var C=null,R=!1;if(g&&!a||!g&&a)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";e=q3(KS0(K),"r",[]).sort();var V=q3(KS0(K),"L",[]).sort(),U=k3.le||[],L=[].concat(e),w=function(A,E){if(R)return 0;GQ.clearTimeout(C);V.push.apply(V,W);var N=((eJ||{}).config||{}).update;N?N(p):p&&q3(k3,"cu",[]).push(p);if(E){qS3("me0",A,L);try{JmM(E,K,k)}finally{qS3("me1",A,L)}}return 1};
g>0&&(C=GQ.setTimeout(function(){R=!0;a()},g));
var W=IYN(d,V);if(W.length){W=IYN(d,e);var J=q3(k3,"CP",[]),F=J.length;J[F]=function(A){if(!A)return 0;qS3("ml1",W,L);var E=function(y){J[F]=null;w(W,A)&&$M3(function(){c&&c();y()})},N=function(){var y=J[F+1];
y&&y()};
F>0&&J[F-1]?J[F]=function(){E(N)}:E(N)};
if(W.length){var Y="loaded_"+k3.I++;eJ[Y]=function(A){J[F](A);eJ[Y]=null};
d=hh3(K,W,"gapi."+Y,e,U);e.push.apply(e,W);qS3("ml0",W,L);H.sync||GQ.___gapisync?zhN(d):WSC(d)}else J[F](jHN)}else w(W)&&c&&c()},FSd;
var Z6l=null,T93=_.KF.trustedTypes;if(T93&&T93.createPolicy){try{Z6l=T93.createPolicy("goog#gapi",{createHTML:Y1l,createScript:Y1l,createScriptURL:Y1l})}catch(d){_.KF.console&&_.KF.console.error(d.message)}FSd=Z6l}else FSd=Z6l;var B93=FSd,XE3=function(d,H){if(k3.hee&&k3.hel>0)try{return d()}catch(K){H&&H(K),k3.hel--,LqE("debug_error",function(){try{window.___jsl.hefn(K)}catch(c){throw K;}})}else try{return d()}catch(K){throw H&&H(K),K;
}},Qsg=eJ.load;
Qsg&&q3(k3,"ol",[]).push(Qsg);eJ.load=function(d,H){return XE3(function(){return LqE(d,H)})};var DQX;var YS3=function(d,H){var K=K||[];this.serviceId_=d;this.moduleId_=H||null;this.dependencies_=[];tD6(this,K)};
YS3.prototype.toString=function(){return this.serviceId_};
YS3.prototype.getModuleId=function(){return this.moduleId_};
var tD6=function(d,H){var K=!1;K=K===void 0?!1:K;d.dependencies_=d.dependencies_.concat(H);if(K){if(!d.moduleId_)throw Error("Wa`"+d.serviceId_);H.map(function(c){return c.getModuleId()}).forEach(function(c){fOY(function(p){p.addExtraEdge(d.moduleId_,c)})})}};var Hoi=new YS3("MpJwZc","MpJwZc");var KWl=new _.lA("a"),$oF=function(d,H,K){_.eo.call(this,d,H);this.node=H;this.kind=K};
_.m($oF,_.eo);var O6M=function(){this.JSC$10030_keys_={};this.urlPrefix_="";this.JSC$10030_queryData_={}};
O6M.prototype.toString=function(){var d=this.urlPrefix_+SS7(this),H=_.nj(this.JSC$10030_queryData_),K="";H!=""&&(K="?"+H);return d+K};
var E2S=function(d){d=CG(d,"md");return!!d&&d!=="0"},SS7=function(d){var H=[],K=(0,_.LA)(function(c){this.JSC$10030_keys_[c]!==void 0&&H.push(c+"="+this.JSC$10030_keys_[c])},d);
E2S(d)?(K("md"),K("k"),K("ck"),K("am"),K("rs"),K("gssmodulesetproto"),K("slk"),K("dti")):(K("sdch"),K("k"),K("ck"),K("am"),K("rt"),"d"in d.JSC$10030_keys_||RY(d,"d","0"),K("d"),K("exm"),K("excm"),(d.JSC$10030_keys_.excm||d.JSC$10030_keys_.exm)&&H.push("ed=1"),K("im"),K("dg"),K("sm"),CG(d,"br")!="1"&&CG(d,"br")!="0"||K("br"),K("br-d"),CG(d,"rb")=="1"&&K("rb"),CG(d,"zs")!=="0"&&K("zs"),ymU(d)!==""&&K("wt"),K("gssmodulesetproto"),K("ujg"),K("sp"),K("rs"),K("cb"),K("ee"),K("slk"),K("dti"),K("m"));return H.join("/")},
CG=function(d,H){return d.JSC$10030_keys_[H]?d.JSC$10030_keys_[H]:null},RY=function(d,H,K){K?d.JSC$10030_keys_[H]=K:delete d.JSC$10030_keys_[H]},b6B=function(d,H){d.urlPrefix_=H},N9C=function(d,H){H&&H.length>0?(H.sort(),RY(d,"exm",H.join(","))):RY(d,"exm",null)},DMA=function(d,H){H&&H.length>0?(H.sort(),RY(d,"excm",H.join(","))):RY(d,"excm",null)},fY7=function(d){return(d=CG(d,"m"))?d.split(","):[]},ymU=function(d){switch(CG(d,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},AmX=function(d,H){var K=Object.keys(H).filter(function(c){return!!Object.keys(H[c]).length}).map(function(c){var p=Object.keys(H[c]);
p.length>1&&p.sort();return c+":"+p.join(",")});
K.sort();RY(d,"ee",K.join(";"))},YXX=function(d){var H=CG(d,"ee");
if(!H)return{};d={};H=_.q(H.split(";"));for(var K=H.next();!K.done;K=H.next()){var c=_.q(K.value.split(":"));K=c.next().value;c=c.next().value;d[K]={};c=_.q(c.split(","));for(var p=c.next();!p.done;p=c.next())d[K][p.value]=!0}return d},jsB=function(d){delete d.JSC$10030_keys_.m;
delete d.JSC$10030_keys_.exm;delete d.JSC$10030_keys_.ed};
O6M.prototype.clone=function(){var d=new O6M;d.JSC$10030_keys_=Object.assign({},this.JSC$10030_keys_);d.urlPrefix_=this.urlPrefix_;d.JSC$10030_queryData_=Object.assign({},this.JSC$10030_queryData_);return d};
var O4E=function(d,H){H=H===void 0?!0:H;var K=v2C(d),c=new O6M,p=_.Am(K)[5];_.rs.forEach(dQB,function(a){var e=p.match("/"+a+"=([^/]+)");e&&RY(c,a,e[1])});
var g="";g=d.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";b6B(c,d.substr(0,d.indexOf(g)+g.length));if(!H)return c;(d=_.Am(K)[6]||null)&&Wb6(d,function(a,e){c.JSC$10030_queryData_[a]=e});
return c},TFh=function(d){d=_.kp(v2C(d));
return d===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(d)?/\/k=/.test(d):!1},v2C=function(d){return d.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?d.substr(65):d},dQB={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},HjN=RegExp("^loaded_(g|h)?[_\\d]+$");_.Vn=function(d){this.JSC$10042_id_=d;this.opts={}};
_.Vn.prototype.JSC$10044_setLabel=function(d){this.label_=d||void 0;return this};
_.Vn.prototype.addUploadMetadata=function(d,H){var K=this.opts.data||{};K[d]=H;this.opts.data=K;return this};
var $QM=function(d){var H=_.rs.filter(d.opts,function(K){return K!==null});
H=_.rs.isEmpty(H)?null:H;d=[d.JSC$10042_id_,d.label_,H];H=hX5(d);return d=d.slice(0,H+1)};
_.Vn.prototype.toString=function(){var d=$QM(this);return"("+_.Wf(d,function(H){return JSON.stringify(H)}).join(",")+")"};
_.Vn.prototype.getId=function(){return this.JSC$10042_id_};
_.Vn.prototype.getOptions=function(){return _.rs.clone(this.opts)};var UR=function(){_.Vn.call(this,"image-search")};
_.m(UR,_.Vn);UR.prototype.setSize=function(d){this.opts.imgsz=d;return this};
UR.prototype.JSC$10044_setLabel=function(d){_.Vn.prototype.JSC$10044_setLabel.call(this,d);return this};
UR.prototype.addUploadMetadata=function(d,H){_.Vn.prototype.addUploadMetadata.call(this,d,H);return this};var hv=function(){_.Vn.call(this,"maps")};
_.m(hv,_.Vn);hv.prototype.setZoom=function(d){this.opts.zoom=d;return this};
hv.prototype.JSC$10044_setLabel=function(d){_.Vn.prototype.JSC$10044_setLabel.call(this,d);return this};
hv.prototype.addUploadMetadata=function(d,H){_.Vn.prototype.addUploadMetadata.call(this,d,H);return this};_.LG=function(){_.Vn.call(this,"photos")};
_.m(_.LG,_.Vn);_.LG.prototype.JSC$10044_setLabel=function(d){_.Vn.prototype.JSC$10044_setLabel.call(this,d);return this};
_.LG.prototype.addUploadMetadata=function(d,H){_.Vn.prototype.addUploadMetadata.call(this,d,H);return this};var M3=function(){_.Vn.call(this,"url")};
_.m(M3,_.Vn);var K1S=function(){var d=new M3;d.opts.type="video";d.opts.site="youtube.com";return d};
M3.prototype.JSC$10044_setLabel=function(d){_.Vn.prototype.JSC$10044_setLabel.call(this,d);return this};
M3.prototype.addUploadMetadata=function(d,H){_.Vn.prototype.addUploadMetadata.call(this,d,H);return this};var mC=function(){_.Vn.call(this,"video-search")};
_.m(mC,_.Vn);var cXC=function(){var d=new mC;d.opts.site="youtube.com";return d};
mC.prototype.JSC$10044_setLabel=function(d){_.Vn.prototype.JSC$10044_setLabel.call(this,d);return this};
mC.prototype.addUploadMetadata=function(d,H){_.Vn.prototype.addUploadMetadata.call(this,d,H);return this};var pb6=function(){_.Vn.call(this,"web")};
_.m(pb6,_.Vn);pb6.prototype.JSC$10044_setLabel=function(d){_.Vn.prototype.JSC$10044_setLabel.call(this,d);return this};
pb6.prototype.addUploadMetadata=function(d,H){_.Vn.prototype.addUploadMetadata.call(this,d,H);return this};var wM=function(){this.items_=[];this.opts={}},gp3=function(d){switch(d){case "image-search":return new UR;
case "maps":return new hv;case "photos":return new _.LG;case "url":return new M3;case "video-search":return new mC;case "web":return new pb6}return new _.Vn(d)};
wM.prototype.addView=function(d){this.items_.push(typeof d==="string"?gp3(d):d);return this};
var ijC=function(d){return"("+_.Wf(d.items_,function(H){return H.toString()}).join(",")+")"};
wM.prototype.toString=function(){return ijC(this)};
wM.prototype.getViews=function(d,H){H=H===void 0?[]:H;for(var K=this.items_,c=0;c<K.length;c++){var p=K[c];p instanceof wM?p.getViews(d,H):p.getId()==d&&H.push(p)}return H};
wM.prototype.getOptions=function(){return _.rs.clone(this.opts)};var zi=function(d){this.basePickerUrl_=d||"https://docs.google.com/picker";this.nav_=new wM};
zi.prototype.nav_=null;zi.prototype.addView=function(d){this.nav_.addView(d);return this};
zi.prototype.getBaseUrl=function(){return this.basePickerUrl_};
zi.prototype.getViews=function(d){return this.nav_.getViews(d)};
_.GJU=function(d,H){d.callback_=H;return d};var opS=new Map;opS.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");opS.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");opS.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var qml=new Set;qml.add("application/vnd.google-apps.kix");qml.add("application/vnd.google-apps.ritz");qml.add("application/vnd.google-apps.punch");var L13=function(d,H,K){var c=K&&_.IB(K,1);K=aO0(K);var p=d[0].getId();switch(_.rK(p,2)){case 13:return lO6(d,H,c,K);case 3:return edg(d,H,c,K);case 10:return kJU(d,H,c,K);case 27:return kJU(d,H,c,K);case 12:return xQ3(d,H);case 2:return npd(d,H,c,K);case 5:return CT3(d,H,c,K);case 9:return Rd3(d,H,c,K);case 6:return Vb7(d,H,c,K);case 25:return UQU(d,H,c,K);case 1:return _.C1(d[0],btg,26)?hd0(d,H,c,K):kJU(d,H,c,K);default:return{}}},Vb7=function(d,H,K,c){d=d.map(function(p){return{id:p.getId().getId(),
serviceId:"youtube",name:p.getName(),description:_.IB(p,3),type:PQ(p),lastEditedUtc:_.yZ7(_.gF(p,_.z_,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:p.getUrl(),embedUrl:_.IB(p,13),thumbnails:uI(De(p))}});
return{action:H,docs:d,viewToken:c,view:K||"youtube",v2Translated:!0}},npd=function(d,H,K,c){var p=d.map(function(g){var a=g.getId().getId(),e=_.IB(g,7),k=g.getName(),C=PQ(g),R=_.yZ7(_.gF(g,_.z_,12)).getTime(),V=g.getUrl(),U=Number(paX(g)),L=_.IB(g,3),w=_.IB(g,11),W=uI(De(g));
var J=_.gF(g,fV,21);J=_.wK(J,1);var F=_.gF(g,fV,21);F=_.IB(F,10);var Y=_.IB(g,13);var A=_.gF(g,fV,21);A=_.wK(A,9);var E=_.gF(g,fV,21);E=_.IB(E,11);a={id:a,serviceId:"docs",mimeType:e,name:k,type:C,lastEditedUtc:R,url:V,sizeBytes:U,description:L,iconUrl:w,thumbnails:W,isShared:J,downloadUrl:F,embedUrl:Y,copyable:A,resourceKey:E};e=_.gF(g,fV,21);_.wK(e,12)&&(a.uploadState="success",a.isNew=!0);e=_.gF(g,fV,21);_.C1(e,yd,3)&&(g=_.gF(g,fV,21),g=_.gF(g,yd,3),_.C1(g,SR,2)&&(e=Wz(g.getDuration().getSeconds()),
k=g.getDuration(),k=_.$1(k,2),a.duration=e+k/1E9),a.aspectRatio=g.getAspectRatio());return a});
return{action:H,docs:p,viewToken:c,view:K||"all",extraUserInputs:MbS(d),v2Translated:!0}},CT3=function(d,H,K,c){d=d.map(function(p){var g=_.gF(p,$Nl,15);
g=_.gF(g,El,1);RJ(p,10,El,g);return{id:p.getId().getId(),serviceId:"web",mimeType:_.IB(p,7),name:p.getName(),type:PQ(p),url:p.getUrl(),description:_.IB(p,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:uI(De(p))}});
return{action:H,docs:d,viewToken:c,view:K||"image-search",v2Translated:!0}},Rd3=function(d,H,K,c){d=d.map(function(p){return{serviceId:"url",
name:De(p)[0].getUrl().split("/").pop(),type:PQ(p),mimeType:_.IB(p,7),url:p.getUrl(),description:_.IB(p,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:uI(De(p))}});
return{action:H,docs:d,viewToken:c,view:K||"url",v2Translated:!0}},hd0=function(d,H,K,c){d=d.map(function(p){return{id:p.getId().getId(),
serviceId:"picasa",name:p.getName(),type:PQ(p),description:_.IB(p,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:uI(De(p))}});
return{action:H,docs:d,viewToken:c,view:K||"webcam",v2Translated:!0}},kJU=function(d,H,K,c){return{action:H,
docs:d.map(mQg),viewToken:c,view:wbg(K||"upload",d),extraUserInputs:MbS(d),v2Translated:!0}},wbg=function(d,H){return H.some(function(K){var c;
return((c=_.gF(K,bB,30))==null?void 0:_.rK(c,3))===9})?d+"/gmailphotos":d},edg=function(d,H,K,c){var p=d.map(function(g){var a={id:g.getId().getId(),
serviceId:"picasa",mimeType:_.IB(g,7),name:g.getName(),type:PQ(g),lastEditedUtc:_.yZ7(_.gF(g,_.z_,12)).getTime(),url:g.getUrl(),sizeBytes:Number(paX(g)),description:_.IB(g,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:uI(De(g)),mediaKey:g.getId().getId(),parentId:_.IB(g,4)},e,k=(e=_.gF(g,f5M,18))==null?void 0:_.gF(e,DSU,3);k&&(a.latitude=uv(k,1),a.longitude=uv(k,2));var C;g=(C=_.gF(g,f5M,18))==null?void 0:PG(C,6);C=g!=null?Wz(g):void 0;C&&(a.version=
C);return a});
return{action:H,docs:p,viewToken:c,view:K||"photos",extraUserInputs:MbS(d),v2Translated:!0}},lO6=function(d,H,K,c){d=d.map(function(p){return{id:p.getId().getId(),
serviceId:"et",name:De(p)[0].getUrl().split("/").pop(),description:_.IB(p,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:uI(De(p),"etjpg")}});
return{action:H,docs:d,viewToken:c,view:K||"et",v2Translated:!0}},UQU=function(d,H,K,c){d=d.map(function(p){var g=p.getId().getId(),a=c["2"];
return{id:g,serviceId:a.type!=="gmail_themes"&&a.parent==="6226252643674576769"?"picasa":"static_themes",name:p.getName(),mimeType:_.IB(p,7),type:PQ(p),description:_.IB(p,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:p.getUrl(),embedUrl:p.getUrl(),thumbnails:uI(De(p))}});
return{action:H,docs:d,viewToken:c,view:K||"photos",v2Translated:!0}},xQ3=function(d,H){d=d.map(function(K){var c=_.gF(K,NqC,27);
c=_.ST(c,1,_.k0,_.Hz())[0];return{id:K.getId().getId(),serviceId:"contacts",mimeType:_.IB(K,7),name:K.getName(),description:_.IB(K,3),url:"mailto:"+c,thumbnail:[{url:_.IB(K,11)}],email:c}});
return{action:H,docs:d,view:"contacts",v2Translated:!0}},aO0=function(d){if(!d)return{};
var H=_.IB(d,3);H=H&&JSON.parse(H)||{};return{0:_.IB(d,1),1:_.IB(d,2),2:H}},uI=function(d,H){H=H===void 0?"":H;
if(!d.length)return null;H=="etjpg"&&(d=d.filter(function(K){return K.getUrl().includes("w1200-h300")}));
return d.map(function(K){return{url:K.getUrl(),height:K.getHeight(),width:K.getWidth(),type:H}})},MbS=function(d){return{isAttachment:d.some(function(H){return _.wK(H,31)})}},mQg=function(d){var H,K={id:(H=d.getId())==null?void 0:H.getId(),
serviceId:PTM(d),mimeType:_.IB(d,7),name:d.getName(),type:PQ(d),sizeBytes:Number(paX(d)),description:_.IB(d,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:uI(De(d)),isNew:!0};if(H=_.gF(d,bB,30)){K.dataUrl=_.IB(H,1)||null;a:{var c=_.gF(d,bB,30);switch(_.rK(c,3)){case 9:c=_.zZ(c,dN7,2,N5);c={remoteRefs:c&&_.IB(c,1)};break a;case 10:case 15:c=_.zZ(c,v00,4,N5);var p=De(d);c={photo_id:c&&_.IB(c,1),media_key:d.getId().getId(),media_type:_.rK(d,6)===1?1:2,image_url:p&&
p[0].getUrl(),width:p&&String(p[0].getWidth()),height:p&&String(p[0].getHeight())};break a}c=null}K.uploadMetadata=c;K.uploadId=_.IB(H,9)||null;K.uploadState=uI7(H)||null}(c=H&&_.zZ(H,v00,4,N5))&&(K.id=_.IB(c,1));(c=H&&_.zZ(H,HcX,5,N5))&&(K.contentId=_.IB(c,1));(c=H&&_.zZ(H,AZB,7,N5))&&(K.contentId=_.IB(c,1));(c=H&&_.zZ(H,jZl,6,N5))&&(K.contentId=_.IB(c,1));(H==null?void 0:_.rK(H,3))===1&&(K.mediaKey=d.getId().getId());return K},PTM=function(d){var H;
switch(((H=_.gF(d,bB,30))==null?void 0:_.rK(H,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},PQ=function(d){switch(_.rK(d,6)){case 1:case 21:return"photo";
case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return _.IB(d,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},uI7=function(d){switch(d==null?void 0:_.rK(d,8)){case 0:return"default";
case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var Bfd,IO3,rXC,W1N;_.zdS=function(d,H){var K=H||{};H=K.document||document;var c=_.Lc(d).toString(),p=(new h9(H)).createElement("SCRIPT"),g={script_:p,timeout_:void 0},a=new YJ(IO3,g),e=null,k=K.timeout!=null?K.timeout:5E3;k>0&&(e=window.setTimeout(function(){rXC(p,!0);a.errback(new W1N(1,"Timeout reached for loading script "+c))},k),g.timeout_=e);
p.onload=p.onreadystatechange=function(){p.readyState&&p.readyState!="loaded"&&p.readyState!="complete"||(rXC(p,K.cleanupWhenDone||!1,e),a.callback(null))};
p.onerror=function(){rXC(p,!0,e);a.errback(new W1N(0,"Error while loading script "+c))};
g=K.attributes||{};_.rs.extend(g,{type:"text/javascript",charset:"UTF-8"});ZX7(p,g);_.fc(p,d);Bfd(H).appendChild(p);return a};
Bfd=function(d){var H=CA("HEAD",d);return H&&H.length!==0?H[0]:d.documentElement};
IO3=function(){if(this&&this.script_){var d=this.script_;d&&d.tagName=="SCRIPT"&&rXC(d,!0,this.timeout_)}};
rXC=function(d,H,K){K!=null&&_.KF.clearTimeout(K);d.onload=function(){};
d.onerror=function(){};
d.onreadystatechange=function(){};
H&&window.setTimeout(function(){_.nA(d)},0)};
W1N=function(d,H){var K="Jsloader error (code #"+d+")";H&&(K+=": "+H);_.dh.call(this,K);this.code=d};
_.K1(W1N,_.dh);var Xb7=_.y$(["https://apis.google.com/js/api.js"]),JXg=_.pB(Xb7),TfC=function(d,H){var K=!1,c=s5S(d,H).then(function(g){K=!0;return g}),p=_.o53(5E3).then(function(){return K?s5S(d,H):F13(H).then(function(g){return Zj7(g,d)})});
return A10([c,p])},s5S=function(d,H){return Q5A(H).then(function(K){return Zj7(K,d)})},Zj7=function(d,H){var K=_.gh(H,"gapi.")?H.slice(5):H;
return d[K]?_.e5(d[K]):new _.kr(function(c,p){var g=MW(function(){p(Error("Ya"))},3E4);
d.load(H,{callback:function(){_.KF.clearTimeout(g);c(d[K])},
onerror:function(a){_.KF.clearTimeout(g);p(a)}})})},Q5A=function(d){return d.gapi&&d.gapi.load?_.e5(d.gapi):F13(d)},F13=function(d){return _.zdS(JXg,{document:d.document}).then(function(){return d.gapi})},tbB=function(){};
tbB.prototype.load=function(d,H){H=H===void 0?window:H;var K=Date.now();return TfC(d,H).then(function(c){var p=Date.now();return{library:c,loadStartMs:K,loadEndMs:p}},function(c){throw c instanceof Error?c:Error(String(c));
})};var G1i=function(){_.h_.call(this);this.gapiLoader_=new tbB;this.origin_=null;this.gapiPickerIframeResolver_=_.DA();this.gapiIframesResolver_=_.DA();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.m(G1i,_.h_);var YmC=function(d,H){var K=_.OS("gapi.iframes",H);return K?(d=Date.now(),_.e5({library:K,loadStartMs:d,loadEndMs:d})):d.gapiLoader_.load("gapi.iframes",H)},OjN=function(d,H,K,c,p,g){var a=!1;
a=a===void 0?!1:a;YmC(d,zo(H.ownerDocument)).then(function(e){var k=e.library;d.gapiIframesResolver_.resolve(k);e=d.gapiPickerIframeResolver_;var C=e.resolve,R=a;R=R===void 0?!1:R;var V={};V["host-message-handler"]=K;d.hostMessageHandlerInternal_=V;var U=_.Qe(c);U=_.Qe(U);U=_.AH(_.fq(_.DS(new _.jM,U.scheme_),U.JSC$10002_domain_),U.JSC$10002_port_).toString();d.origin_=U;U=(new g2l).setUrl(c);U.JSC$10017_obj_.where=H;U.JSC$10017_obj_.allowPost=R;U.JSC$10017_obj_.messageHandlers=V;R=_.OS("makeWhiteListIframesFilter",
k)([d.origin_]);U.JSC$10017_obj_.messageHandlersFilter=R;p!=null&&(U.JSC$10017_obj_.id=p);g!=null&&(U.JSC$10017_obj_.rpctoken=g);R=pEC(U);R.JSC$10014_obj_.style={display:"block","min-width":"100%",width:"1px"};R.JSC$10014_obj_.height="100%";pEC(U).value().allow="camera 'src' "+d.origin_;k=k.getContext().openChild(U.value());C.call(e,k)},function(e){d.gapiIframesResolver_.reject(e);
d.gapiPickerIframeResolver_.reject(e)});
return d.gapiPickerIframeResolver_.promise},Sm6=function(d,H){return _.hH([d.gapiIframesResolver_.promise,
d.gapiPickerIframeResolver_.promise]).then(function(K){var c=_.q(K);K=c.next().value;return(c=c.next().value)?c.send("picker-message-handler",H,void 0,_.OS("makeWhiteListIframesFilter",K)([d.origin_])):_.W1(Error("Za"))})};
G1i.prototype.disposeInternal=function(){Ep6(this);_.h_.prototype.disposeInternal.call(this)};
var Ep6=function(d){d.gapiPickerIframeResolver_.promise.then(function(H){H&&(H.unregister("host-message-handler"),delete d.hostMessageHandlerInternal_["host-message-handler"])})};var yX6=function(){this.JSC$10104_nextId=0};var NfN=function(d,H){switch(d.action){case "select-contacts":d=bjA(d.contacts);break;case "visibility":d=d.visible;var K=new jR;d=_.JS(K,1,7).setVisible(d);K={};K["iframe-command"]=d.serialize();d=K;break;default:d=null}return d?Sm6(H,d):_.e5()},bjA=function(d){if(!d||d.length==0)return null;
var H=new jR;_.JS(H,1,11);var K=new yX6;d.forEach(function(c){if(c.email){var p=new MJ;p=_.Sn(p,2,c.name?c.name:c.email);var g=new NqC;c=_.sZ1(g,1,_.qS,c.email,_.k0);c=_.eE(p,27,c);p=new E07;g=":"+(K.JSC$10104_nextId++).toString(36);p=_.Sn(p,1,g);p=_.JS(p,2,12);c=_.eE(c,1,p)}else c=null;c&&RJ(H,7,MJ,c)});
d={};d["iframe-command"]=H.serialize();return d};_.DQ6=function(){if(VFi){var d=/Windows NT ([0-9.]+)/;return(d=d.exec(_.nF()))?d[1]:"0"}return _.RCl?(d=/1[0|1][_.][0-9_.]+/,(d=d.exec(_.nF()))?d[0].replace(/_/g,"."):"10"):oqD?(d=/Android\s+([^\);]+)(\)|;)/,(d=d.exec(_.nF()))?d[1]:""):hC1||LIE||MF1?(d=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(d=d.exec(_.nF()))?d[1].replace(/_/g,"."):""):""}();var IY;IY=function(d){return(d=d.exec(_.nF()))?d[1]:""};
_.fOd=function(){if(_.aB)return IY(/Firefox\/([0-9.]+)/);if(_.iv||AX||xKD)return WIX;if(_.lv){if(_.WF()||_.C1F()){var d=IY(/CriOS\/([0-9.]+)/);if(d)return d}return IY(/Chrome\/([0-9.]+)/)}if(_.ZO&&!_.WF())return IY(/Version\/([0-9.]+)/);if(LEh||MGi){if(d=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.nF()))return d[1]+"."+d[2]}else if(szi)return(d=IY(/Android\s+([0-9.]+)/))?d:IY(/Version\/([0-9.]+)/);return""}();var AXM=function(){};
_.HG(AXM);AXM.prototype.nextId_=0;_.rM=function(d){return":"+(d.nextId_++).toString(36)};var WQ=function(d){_.Rj.call(this);this.JSC$10112_dom_=d||Vy();this.JSC$10112_id_=null;this.inDocument_=!1;this.JSC$10112_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.K1(WQ,_.Rj);WQ.prototype.idGenerator_=AXM.getInstance();WQ.prototype.getId=function(){return this.JSC$10112_id_||(this.JSC$10112_id_=_.rM(this.idGenerator_))};
WQ.prototype.getElement=function(){return this.JSC$10112_element_};
var BQ=function(d){d.googUiComponentHandler_||(d.googUiComponentHandler_=new _.GA(d));return d.googUiComponentHandler_},j5U=function(d,H){if(d==H)throw Error("$a");
var K;if(K=H&&d.parent_&&d.JSC$10112_id_){K=d.parent_;var c=d.JSC$10112_id_;K=K.childIndex_&&c?_.rs.get(K.childIndex_,c)||null:null}if(K&&d.parent_!=H)throw Error("$a");d.parent_=H;WQ.superClass_.setParentEventTarget.call(d,H)};
WQ.prototype.setParentEventTarget=function(d){if(this.parent_&&this.parent_!=d)throw Error("ab");WQ.superClass_.setParentEventTarget.call(this,d)};
WQ.prototype.JSC$10114_createDom=function(){this.JSC$10112_element_=this.JSC$10112_dom_.createElement("DIV")};
WQ.prototype.render=function(d){vpl(this,d)};
var vpl=function(d,H,K){if(d.inDocument_)throw Error("bb");d.JSC$10112_element_||d.JSC$10114_createDom();H?H.insertBefore(d.JSC$10112_element_,K||null):d.JSC$10112_dom_.JSC$9297_document_.body.appendChild(d.JSC$10112_element_);d.parent_&&!d.parent_.inDocument_||d.enterDocument()};
_.G=WQ.prototype;_.G.decorate=function(d){if(this.inDocument_)throw Error("bb");if(d&&this.canDecorate(d)){this.wasDecorated_=!0;var H=_.XF(d);this.JSC$10112_dom_&&this.JSC$10112_dom_.JSC$9297_document_==H||(this.JSC$10112_dom_=Vy(d));this.decorateInternal(d);this.enterDocument()}else throw Error("cb");};
_.G.canDecorate=function(){return!0};
_.G.decorateInternal=function(d){this.JSC$10112_element_=d};
_.G.enterDocument=function(){this.inDocument_=!0;dlB(this,function(d){!d.inDocument_&&d.getElement()&&d.enterDocument()})};
_.G.exitDocument=function(){dlB(this,function(d){d.inDocument_&&d.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.G.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);dlB(this,function(d){d.dispose()});
!this.wasDecorated_&&this.JSC$10112_element_&&_.nA(this.JSC$10112_element_);this.parent_=this.model_=this.JSC$10112_element_=this.childIndex_=this.children_=null;WQ.superClass_.disposeInternal.call(this)};
_.G.getModel=function(){return this.model_};
_.G.addChild=function(d,H){var K=this.children_?this.children_.length:0;if(d.inDocument_&&(H||!this.inDocument_))throw Error("bb");if(K<0||K>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);d.parent_==this?(_.rs.set(this.childIndex_,d.getId(),d),_.Q4(this.children_,d)):_.rs.add(this.childIndex_,d.getId(),d);j5U(d,this);_.wFF(this.children_,K,0,d);d.inDocument_&&this.inDocument_&&d.parent_==this?(H=this.getContentElement(),
(H.childNodes[K]||null)!=d.getElement()&&(d.getElement().parentElement==H&&H.removeChild(d.getElement()),K=H.childNodes[K]||null,H.insertBefore(d.getElement(),K))):H?(this.JSC$10112_element_||this.JSC$10114_createDom(),K=this.children_?this.children_[K+1]||null:null,vpl(d,this.getContentElement(),K?K.JSC$10112_element_:null)):this.inDocument_&&!d.inDocument_&&d.JSC$10112_element_&&d.JSC$10112_element_.parentNode&&d.JSC$10112_element_.parentNode.nodeType==1&&d.enterDocument()};
_.G.getContentElement=function(){return this.JSC$10112_element_};
var dlB=function(d,H){d.children_&&d.children_.forEach(H,void 0)};
WQ.prototype.removeChild=function(d,H){if(d){var K=typeof d==="string"?d:d.getId();d=this.childIndex_&&K?_.rs.get(this.childIndex_,K)||null:null;K&&d&&(_.rs.remove(this.childIndex_,K),_.Q4(this.children_,d),H&&(d.exitDocument(),d.JSC$10112_element_&&_.nA(d.JSC$10112_element_)),j5U(d,null))}if(!d)throw Error("eb");return d};_.K1(vp4,j5f);_.K1(dlF,j5f);var H4X;_.rs.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var $ll=function(d,H){H?d.setAttribute("role",H):d.removeAttribute("role")},zQ=function(d,H,K){Array.isArray(K)&&(K=K.join(" "));
var c="aria-"+H;K===""||K==void 0?(H4X||(K={},H4X=(K.atomic=!1,K.autocomplete="none",K.dropeffect="none",K.haspopup=!1,K.live="off",K.multiline=!1,K.multiselectable=!1,K.orientation="vertical",K.readonly=!1,K.relevant="additions text",K.required=!1,K.sort="none",K.busy=!1,K.disabled=!1,K.hidden=!1,K.invalid="false",K)),K=H4X,H in K?d.setAttribute(c,K[H]):d.removeAttribute(c)):d.setAttribute(c,K)};var Kw3;_.XE=function(d,H,K){_.Rj.call(this);this.target=d;this.handle=H||d;this.limits=K||new zj(NaN,NaN,NaN,NaN);this.JSC$10117_document_=_.XF(d);this.JSC$10117_eventHandler_=new _.GA(this);_.q_(this,this.JSC$10117_eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.enabled_=!0;this.dragging_=!1;this.hysteresisDistanceSquared_=0;_.Iq(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=Kw3};
_.K1(_.XE,_.Rj);Kw3=_.KF.document&&_.KF.document.documentElement&&!!_.KF.document.documentElement.setCapture&&!!_.KF.document.releaseCapture;_.c5B=function(d,H){d.hysteresisDistanceSquared_=Math.pow(H,2)};
_.G=_.XE.prototype;_.G.setEnabled=function(d){this.enabled_=d};
_.G.disposeInternal=function(){_.XE.superClass_.disposeInternal.call(this);_.Cq(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10117_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10117_document_.releaseCapture();this.handle=this.target=null};
_.G.startDrag=function(d){var H=d.type=="mousedown";if(!this.enabled_||this.dragging_||H&&(d.event_.button!=0||_.RCl&&d.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Jv("start",this,d.clientX,d.clientY,d)))this.dragging_=!0,H&&d.preventDefault();else return;else H&&d.preventDefault();H=this.JSC$10117_document_;var K=H.documentElement,c=!this.useSetCapture_;this.JSC$10117_eventHandler_.listen(H,["touchmove","mousemove"],this.handleMove_,
{capture:c,passive:!1});this.JSC$10117_eventHandler_.listen(H,["touchend","mouseup"],this.endDrag,c);this.useSetCapture_?(K.setCapture(!1),this.JSC$10117_eventHandler_.listen(K,"losecapture",this.endDrag)):this.JSC$10117_eventHandler_.listen(zo(H),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10117_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,c);this.clientX=this.startX=d.clientX;this.clientY=this.startY=d.clientY;this.screenX=d.screenX;this.screenY=d.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Rr(Vy(this.JSC$10117_document_))}};
_.G.endDrag=function(d,H){this.JSC$10117_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10117_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Jv("end",this,d.clientX,d.clientY,d,pMM(this,this.deltaX),gGA(this,this.deltaY),H||d.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.G.handleMove_=function(d){if(this.enabled_){var H=d.clientX-this.clientX,K=d.clientY-this.clientY;this.clientX=d.clientX;this.clientY=d.clientY;this.screenX=d.screenX;this.screenY=d.screenY;if(!this.dragging_){var c=this.startX-this.clientX,p=this.startY-this.clientY;if(c*c+p*p>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Jv("start",this,d.clientX,d.clientY,d)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(d);return}}K=i4S(this,H,K);H=K.x;K=K.y;this.dragging_&&this.dispatchEvent(new Jv("beforedrag",
this,d.clientX,d.clientY,d,H,K))&&(G1g(this,d,H,K),d.preventDefault())}};
var i4S=function(d,H,K){var c=Rr(Vy(d.JSC$10117_document_));H+=c.x-d.pageScroll.x;K+=c.y-d.pageScroll.y;d.pageScroll=c;d.deltaX+=H;d.deltaY+=K;return new _.Bf(pMM(d,d.deltaX),gGA(d,d.deltaY))};
_.XE.prototype.onScroll_=function(d){var H=i4S(this,0,0);d.clientX=this.clientX;d.clientY=this.clientY;G1g(this,d,H.x,H.y)};
var G1g=function(d,H,K,c){d.target.style.left=K+"px";d.target.style.top=c+"px";d.dispatchEvent(new Jv("drag",d,H.clientX,H.clientY,H,K,c))},pMM=function(d,H){var K=d.limits;
d=isNaN(K.left)?null:K.left;K=isNaN(K.width)?0:K.width;return Math.min(d!=null?d+K:Infinity,Math.max(d!=null?d:-Infinity,H))},gGA=function(d,H){var K=d.limits;
d=isNaN(K.top)?null:K.top;K=isNaN(K.height)?0:K.height;return Math.min(d!=null?d+K:Infinity,Math.max(d!=null?d:-Infinity,H))};
_.XE.prototype.isDragging=function(){return this.dragging_};
var Jv=function(d,H,K,c,p,g,a){_.eo.call(this,d);this.clientX=K;this.clientY=c;this.browserEvent=p;this.left=g!==void 0?g:H.deltaX;this.top=a!==void 0?a:H.deltaY};
_.K1(Jv,_.eo);var sR=function(d){this.JSC$10124_map_=new Map;var H=arguments.length;if(H>1){if(H%2)throw Error("ka");for(var K=0;K<H;K+=2)this.set(arguments[K],arguments[K+1])}else d&&this.addAll(d)};
_.G=sR.prototype;_.G.getCount=function(){return this.JSC$10124_map_.size};
_.G.getValues=function(){return Array.from(this.JSC$10124_map_.values())};
_.G.getKeys=function(){return Array.from(this.JSC$10124_map_.keys())};
_.G.containsKey=function(d){return this.JSC$10124_map_.has(d)};
_.G.containsValue=function(d){return this.getValues().some(function(H){return H==d})};
_.G.equals=function(d,H){var K=this;H=H===void 0?function(c,p){return c===p}:H;
return this===d?!0:this.JSC$10124_map_.size!=d.getCount()?!1:this.getKeys().every(function(c){return H(K.JSC$10124_map_.get(c),d.get(c))})};
_.G.isEmpty=function(){return this.JSC$10124_map_.size==0};
_.G.clear=function(){this.JSC$10124_map_.clear()};
_.G.remove=function(d){return this.JSC$10124_map_.delete(d)};
_.G.get=function(d,H){return this.JSC$10124_map_.has(d)?this.JSC$10124_map_.get(d):H};
_.G.set=function(d,H){this.JSC$10124_map_.set(d,H);return this};
_.G.addAll=function(d){if(d instanceof sR){d=_.q(d.JSC$10124_map_);for(var H=d.next();!H.done;H=d.next()){var K=_.q(H.value);H=K.next().value;K=K.next().value;this.JSC$10124_map_.set(H,K)}}else if(d)for(d=_.q(Object.entries(d)),H=d.next();!H.done;H=d.next())K=_.q(H.value),H=K.next().value,K=K.next().value,this.JSC$10124_map_.set(H,K)};
_.G.forEach=function(d,H){var K=this;H=H===void 0?this:H;this.JSC$10124_map_.forEach(function(c,p){return d.call(H,c,p,K)})};
_.G.clone=function(){return new sR(this)};(function(){for(var d=["ms","moz","webkit","o"],H,K=0;H=d[K]&&!_.KF.requestAnimationFrame;++K)_.KF.requestAnimationFrame=_.KF[H+"RequestAnimationFrame"],_.KF.cancelAnimationFrame=_.KF[H+"CancelAnimationFrame"]||_.KF[H+"CancelRequestAnimationFrame"];if(!_.KF.requestAnimationFrame){var c=0;_.KF.requestAnimationFrame=function(p){var g=(new Date).getTime(),a=Math.max(0,16-(g-c));c=g+a;return _.KF.setTimeout(function(){p(g+a)},a)};
_.KF.cancelAnimationFrame||(_.KF.cancelAnimationFrame=function(p){clearTimeout(p)})}})();
var oG3=[[],[]],qXg=0,a7X=!1,l7A=0,k1N=function(d,H){var K=l7A++,c={measureTask:{id:K,fn:d.measure,context:H},mutateTask:{id:K,fn:d.mutate,context:H},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(c.args||(c.args=[]),c.args.length=0,c.args.push.apply(c.args,arguments),c.args.push(c.state)):c.args&&c.args.length!=0?(c.args[0]=c.state,c.args.length=1):c.args=[c.state];c.isScheduled||(c.isScheduled=!0,oG3[qXg].push(c));a7X||(a7X=!0,window.requestAnimationFrame(eL7))}},eL7=
function(){a7X=!1;
var d=oG3[qXg],H=d.length;qXg=(qXg+1)%2;for(var K,c=0;c<H;++c){K=d[c];var p=K.measureTask;K.isScheduled=!1;p.fn&&p.fn.apply(p.context,K.args)}for(c=0;c<H;++c)K=d[c],p=K.mutateTask,K.isScheduled=!1,p.fn&&p.fn.apply(p.context,K.args),K.state={};d.length=0};var xl6=_.y$(["about:blank"]),nGg=_.y$(["javascript:undefined"]),Ctl=_.pB(xl6);_.Lc(Ctl);var RLX=_.pB(nGg);_.Lc(RLX);var FE=function(d){_.Rj.call(this);this.JSC$10130_element_=d;this.listenKeyIn_=_.Iq(this.JSC$10130_element_,"focus",this,!0);this.listenKeyOut_=_.Iq(this.JSC$10130_element_,"blur",this,!0)};
_.K1(FE,_.Rj);FE.prototype.handleEvent=function(d){var H=new _.kJ(d.event_);H.type=d.type=="focusin"||d.type=="focus"?"focusin":"focusout";this.dispatchEvent(H)};
FE.prototype.disposeInternal=function(){FE.superClass_.disposeInternal.call(this);wg(this.listenKeyIn_);wg(this.listenKeyOut_);delete this.JSC$10130_element_};var V7g=function(d,H){this.JSC$10133_element_=d;this.JSC$10133_dom_=H};var Zk=function(d,H){WQ.call(this,H);this.useIframeMask_=!!d;this.lastFocus_=null;this.resizeBackgroundTask_=k1N({mutate:this.resizeBackground_},this);k1N({mutate:this.updateModalAndBackground_},this)};
_.K1(Zk,WQ);_.G=Zk.prototype;_.G.focusHandler_=null;_.G.visible_=!1;_.G.bgEl_=null;_.G.bgIframeEl_=null;_.G.tabCatcherElement_=null;_.G.backwardTabWrapInProgress_=!1;_.G.getCssClass=function(){return"goog-modalpopup"};
_.G.getBackgroundElement=function(){return this.bgEl_};
_.G.JSC$10114_createDom=function(){Zk.superClass_.JSC$10114_createDom.call(this);var d=this.getElement(),H=kY(this.getCssClass()).split(" ");Q5(d,H);d.tabIndex=0;_.O8(d,!1);UlC(this);hLB(this)};
var UlC=function(d){if(d.useIframeMask_&&!d.bgIframeEl_){var H=d.JSC$10112_dom_.JSC$9299_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.OH(H,Ctl);d.bgIframeEl_=H;d.bgIframeEl_.className=d.getCssClass()+"-bg";_.O8(d.bgIframeEl_,!1);ej3(d.bgIframeEl_,0)}d.bgEl_||(d.bgEl_=d.JSC$10112_dom_.JSC$9299_createDom("DIV",d.getCssClass()+"-bg"),_.O8(d.bgEl_,!1))},hLB=function(d){d.tabCatcherElement_||(d.tabCatcherElement_=d.JSC$10112_dom_.createElement("SPAN"),_.O8(d.tabCatcherElement_,
!1),d.tabCatcherElement_.tabIndex=0,d.tabCatcherElement_.style.position="absolute")};
_.G=Zk.prototype;_.G.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.G.canDecorate=function(d){return!!d&&d.tagName=="DIV"};
_.G.decorateInternal=function(d){Zk.superClass_.decorateInternal.call(this,d);d=kY(this.getCssClass()).split(" ");Q5(this.getElement(),d);UlC(this);hLB(this);this.getElement().tabIndex=0;_.O8(this.getElement(),!1)};
_.G.enterDocument=function(){this.bgIframeEl_&&_.Ip(this.bgIframeEl_,this.getElement());_.Ip(this.bgEl_,this.getElement());Zk.superClass_.enterDocument.call(this);_.rv(this.tabCatcherElement_,this.getElement());this.focusHandler_=new FE(this.JSC$10112_dom_.JSC$9297_document_);BQ(this).listen(this.focusHandler_,"focusin",this.onFocus);LwB(this,!1)};
_.G.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.AA(this.focusHandler_);Zk.superClass_.exitDocument.call(this);_.nA(this.bgIframeEl_);_.nA(this.bgEl_);_.nA(this.tabCatcherElement_)};
_.G.setVisible=function(d){if(d!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&LwB(this,d),d){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10112_dom_.JSC$9297_document_.activeElement}catch(p){}this.updateModalAndBackground_();BQ(this).listen(this.JSC$10112_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10112_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);M7X(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)ml(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){BQ(this).unlisten(this.JSC$10112_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10112_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)ml(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var H=this.JSC$10112_dom_,K=H.JSC$9297_document_.body,c=H.JSC$9297_document_.activeElement||K;if(!this.lastFocus_||this.lastFocus_==K){this.lastFocus_=null;break a}(c==K||H.contains(this.getElement(),c))&&this.lastFocus_.focus()}catch(p){}this.lastFocus_=
null}}};
var LwB=function(d,H){d.modalAriaVisibilityHelper_||(d.modalAriaVisibilityHelper_=new V7g(d.JSC$10112_element_,d.JSC$10112_dom_));d=d.modalAriaVisibilityHelper_;if(H){d.hiddenElements_||(d.hiddenElements_=[]);H=d.JSC$10133_dom_.getChildren(d.JSC$10133_dom_.JSC$9297_document_.body);for(var K=0;K<H.length;K++){var c=H[K],p;if(p=c!=d.JSC$10133_element_)p=c.getAttribute("aria-hidden"),p=!(p==null||p==void 0?0:String(p));p&&(zQ(c,"hidden",!0),d.hiddenElements_.push(c))}}else if(d.hiddenElements_){for(H=
0;H<d.hiddenElements_.length;H++)d.hiddenElements_[H].removeAttribute("aria-hidden");d.hiddenElements_=null}};
Zk.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var M7X=function(d,H){d.bgIframeEl_&&_.O8(d.bgIframeEl_,H);d.bgEl_&&_.O8(d.bgEl_,H);_.O8(d.getElement(),H);_.O8(d.tabCatcherElement_,H)};
_.G=Zk.prototype;_.G.onShow=function(){this.dispatchEvent("show")};
_.G.onHide=function(){M7X(this,!1);this.dispatchEvent("hide")};
_.G.isVisible=function(){return this.visible_};
_.G.focus=function(){this.focusElement_()};
_.G.resizeBackground_=function(){this.bgIframeEl_&&_.O8(this.bgIframeEl_,!1);this.bgEl_&&_.O8(this.bgEl_,!1);var d=this.JSC$10112_dom_.JSC$9297_document_;var H=_.CB(zo(this.JSC$10112_dom_.JSC$9297_document_)||window);var K=Math.max(H.width,Math.max(d.body.scrollWidth,d.documentElement.scrollWidth));d=Math.max(H.height,Math.max(d.body.scrollHeight,d.documentElement.scrollHeight));this.bgIframeEl_&&(_.O8(this.bgIframeEl_,!0),_.o0N(this.bgIframeEl_,K,d));this.bgEl_&&(_.O8(this.bgEl_,!0),_.o0N(this.bgEl_,
K,d))};
_.G.reposition=function(){var d;if(_.GGM(this.getElement())=="fixed")var H=d=0;else H=Rr(this.JSC$10112_dom_),d=H.x,H=H.y;var K=a5A(this.getElement());var c=_.CB(zo(this.JSC$10112_dom_.JSC$9297_document_)||window);d=Math.max(d+c.width/2-K.width/2,0);H=Math.max(H+c.height/2-K.height/2,0);sl(this.getElement(),d,H);sl(this.tabCatcherElement_,d,H)};
_.G.onFocus=function(d){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():d.target==this.tabCatcherElement_&&MW(this.focusElement_,0,this)};
_.G.focusElement_=function(){try{this.getElement().focus()}catch(d){}};
_.G.disposeInternal=function(){_.AA(this.popupShowTransition_);this.popupShowTransition_=null;_.AA(this.popupHideTransition_);this.popupHideTransition_=null;_.AA(this.bgShowTransition_);this.bgShowTransition_=null;_.AA(this.bgHideTransition_);this.bgHideTransition_=null;Zk.superClass_.disposeInternal.call(this)};var Bz=function(d,H,K){Zk.call(this,H,K);this.JSC$10143_class_=d||"modal-dialog";this.buttons_=(new TQ).addButton(mlU,!0).addButton(wMg,!1,!0)};
_.K1(Bz,Zk);_.G=Bz.prototype;_.G.escapeToCancel_=!0;_.G.hasTitleCloseButton_=!0;_.G.modal_=!0;_.G.draggable_=!0;_.G.backgroundElementOpacity_=.5;_.G.title_="";_.G.JSC$10145_dragger_=null;_.G.JSC$10145_disposeOnHide_=!1;_.G.titleEl_=null;_.G.titleTextEl_=null;_.G.titleTextId_=null;_.G.titleCloseEl_=null;_.G.contentEl_=null;_.G.buttonEl_=null;_.G.getCssClass=function(){return this.JSC$10143_class_};
_.G.setTitle=function(d){this.title_=d;this.titleTextEl_&&_.Br(this.titleTextEl_,d)};
_.G.getTitle=function(){return this.title_};
_.G.getContent=function(){return""};
_.G.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var Ptg=function(d){d.getElement()||d.render();return d.getElement()};
Bz.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Bz.superClass_.getBackgroundElement.call(this)};
var upd=function(d,H){d.backgroundElementOpacity_=H;d.getElement()&&(H=d.getBackgroundElement())&&ej3(H,d.backgroundElementOpacity_)};
Bz.prototype.setDraggable=function(d){this.draggable_=d;I7d(this,d&&this.inDocument_)};
Bz.prototype.handleDrag=function(){};
var I7d=function(d,H){var K=kY(d.JSC$10143_class_+"-title-draggable").split(" ");d.getElement()&&(H?Q5(d.titleEl_,K):$t6(d.titleEl_,K));H&&!d.JSC$10145_dragger_?(H=new _.XE(d.getElement(),d.titleEl_),d.JSC$10145_dragger_=H,Q5(d.titleEl_,K),_.Iq(d.JSC$10145_dragger_,"start",d.setDraggerLimits_,!1,d),_.Iq(d.JSC$10145_dragger_,"drag",d.handleDrag,!1,d)):!H&&d.JSC$10145_dragger_&&(d.JSC$10145_dragger_.dispose(),d.JSC$10145_dragger_=null)};
_.G=Bz.prototype;
_.G.JSC$10114_createDom=function(){Bz.superClass_.JSC$10114_createDom.call(this);var d=this.getElement(),H=this.JSC$10112_dom_;this.titleTextId_=this.getId();var K=this.getId()+".contentEl";this.titleEl_=H.JSC$9299_createDom("DIV",this.JSC$10143_class_+"-title",this.titleTextEl_=H.JSC$9299_createDom("SPAN",{className:this.JSC$10143_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=H.JSC$9299_createDom("SPAN",this.JSC$10143_class_+"-title-close"));OXd(d,this.titleEl_,this.contentEl_=
H.JSC$9299_createDom("DIV",{className:this.JSC$10143_class_+"-content",id:K}),this.buttonEl_=H.JSC$9299_createDom("DIV",this.JSC$10143_class_+"-buttons"));$ll(this.titleTextEl_,"heading");$ll(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;zQ(this.titleCloseEl_,"label","Close");$ll(d,"dialog");zQ(d,"labelledby",this.titleTextId_||"");_.O8(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(d=this.buttons_,d.JSC$10146_element_=this.buttonEl_,d.render());_.O8(this.buttonEl_,!!this.buttons_);
upd(this,this.backgroundElementOpacity_)};
_.G.decorateInternal=function(d){Bz.superClass_.decorateInternal.call(this,d);d=this.getElement();var H=this.JSC$10143_class_+"-content";this.contentEl_=LV(document,null,H,d)[0];this.contentEl_||(this.contentEl_=this.JSC$10112_dom_.JSC$9299_createDom("DIV",H),d.appendChild(this.contentEl_));H=this.JSC$10143_class_+"-title";var K=this.JSC$10143_class_+"-title-text",c=this.JSC$10143_class_+"-title-close";(this.titleEl_=LV(document,null,H,d)[0])?(this.titleTextEl_=LV(document,null,K,this.titleEl_)[0],
this.titleCloseEl_=LV(document,null,c,this.titleEl_)[0]):(this.titleEl_=this.JSC$10112_dom_.JSC$9299_createDom("DIV",H),d.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=Kb3(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.ms("SPAN",{className:K,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;zQ(d,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10112_dom_.JSC$9299_createDom("SPAN",c),this.titleEl_.appendChild(this.titleCloseEl_));_.O8(this.titleCloseEl_,this.hasTitleCloseButton_);H=this.JSC$10143_class_+"-buttons";(this.buttonEl_=LV(document,null,H,d)[0])?(this.buttons_=new TQ(this.JSC$10112_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10112_dom_.JSC$9299_createDom("DIV",H),d.appendChild(this.buttonEl_),this.buttons_&&(d=this.buttons_,d.JSC$10146_element_=this.buttonEl_,d.render()),_.O8(this.buttonEl_,
!!this.buttons_));upd(this,this.backgroundElementOpacity_)};
_.G.enterDocument=function(){Bz.superClass_.enterDocument.call(this);BQ(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);BQ(this).listen(this.buttonEl_,"click",this.onButtonClick_);I7d(this,this.draggable_);BQ(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var d=this.getElement();$ll(d,"dialog");this.titleTextEl_.id!==""&&zQ(d,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){d=this.JSC$10112_dom_;
var H=this.getBackgroundElement();d.removeNode(this.bgIframeEl_);d.removeNode(H)}this.isVisible()&&LwB(this,!1)}};
_.G.exitDocument=function(){this.isVisible()&&this.setVisible(!1);I7d(this,!1);Bz.superClass_.exitDocument.call(this)};
_.G.setVisible=function(d){d!=this.isVisible()&&(this.inDocument_||this.render(),Bz.superClass_.setVisible.call(this,d))};
_.G.onShow=function(){Bz.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.G.onHide=function(){Bz.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10145_disposeOnHide_&&this.dispose()};
_.G.setDraggerLimits_=function(){var d=this.JSC$10112_dom_.JSC$9297_document_,H=_.CB(zo(d)||window),K=Math.max(d.body.scrollWidth,H.width);d=Math.max(d.body.scrollHeight,H.height);var c=a5A(this.getElement());_.GGM(this.getElement())=="fixed"?this.JSC$10145_dragger_.limits=new zj(0,0,Math.max(0,H.width-c.width),Math.max(0,H.height-c.height)):this.JSC$10145_dragger_.limits=new zj(0,0,K-c.width,d-c.height)};
_.G.onTitleCloseClick_=function(){r5M(this)};
var r5M=function(d){if(d.hasTitleCloseButton_){var H=d.buttons_,K=H&&H.cancelButton_;K?(H=H.get(K),d.dispatchEvent(new Qn(K,H))&&d.setVisible(!1)):d.setVisible(!1)}},Ww0=function(d){d.hasTitleCloseButton_=!1;
d.titleCloseEl_&&_.O8(d.titleCloseEl_,d.hasTitleCloseButton_)};
Bz.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Bz.superClass_.disposeInternal.call(this)};
Bz.prototype.onButtonClick_=function(d){a:{for(d=d.target;d!=null&&d!=this.buttonEl_;){if(d.tagName=="BUTTON")break a;d=d.parentNode}d=null}if(d&&!d.disabled){d=d.name;var H=this.buttons_.get(d);this.dispatchEvent(new Qn(d,H))&&this.setVisible(!1)}};
Bz.prototype.onKey_=function(d){var H=!1,K=!1,c=this.buttons_,p=d.target;if(d.type=="keydown")if(this.escapeToCancel_&&d.keyCode==27){var g=c&&c.cancelButton_;p=p.tagName=="SELECT"&&!p.disabled;g&&!p?(K=!0,H=c.get(g),H=this.dispatchEvent(new Qn(g,H))):p||(H=!0)}else{if(d.keyCode==9&&d.shiftKey&&p==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(R){}MW(this.resetBackwardTabWrap_,0,this)}}else if(d.keyCode==13){if(p.tagName=="BUTTON"&&!p.disabled)g=p.name;
else if(p==this.titleCloseEl_)r5M(this);else if(c){var a=c.defaultButton_,e;if(e=a)a:{e=CA("BUTTON",c.JSC$10146_element_);for(var k,C=0;k=e[C];C++)if(k.name==a||k.id==a){e=k;break a}e=null}p=(p.tagName=="TEXTAREA"||p.tagName=="SELECT"||p.tagName=="A")&&!p.disabled;!e||e.disabled||p||(g=a)}g&&c&&(K=!0,H=this.dispatchEvent(new Qn(g,String(c.get(g)))))}else p!=this.titleCloseEl_||d.keyCode!=32&&d.key!=" "||r5M(this);if(H||K)d.stopPropagation(),d.preventDefault();H&&this.setVisible(!1)};
var Qn=function(d,H){this.type="dialogselect";this.key=d;this.caption=H};
_.K1(Qn,_.eo);var TQ=function(d){sR.call(this);d||Vy();this.cancelButton_=this.JSC$10146_element_=this.defaultButton_=null};
_.K1(TQ,sR);_.G=TQ.prototype;_.G.clear=function(){sR.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.G.set=function(d,H,K,c){sR.prototype.set.call(this,d,H);K&&(this.defaultButton_=d);c&&(this.cancelButton_=d);return this};
_.G.addButton=function(d,H,K){return this.set(d.key,d.caption,H,K)};
_.G.render=function(){if(this.JSC$10146_element_){_.AL(this.JSC$10146_element_,l7h);var d=Vy(this.JSC$10146_element_);this.forEach(function(H,K){H=d.JSC$9299_createDom("BUTTON",{name:K},H);K==this.defaultButton_&&(H.className="goog-buttonset-default");this.JSC$10146_element_.appendChild(H)},this)}};
_.G.decorate=function(d){if(d&&d.nodeType==1){this.JSC$10146_element_=d;d=CA("BUTTON",this.JSC$10146_element_);for(var H,K,c,p=0;H=d[p];p++)if(K=H.name||H.id,c=Kb3(H)||H.value,K){var g=p==0;this.set(K,c,g,H.name=="cancel");g&&_.Hg(H,"goog-buttonset-default")}}};
_.G.getElement=function(){return this.JSC$10146_element_};
var mlU={key:"ok",caption:"OK"},wMg={key:"cancel",caption:"Cancel"},BFX={key:"yes",caption:"Yes"},zLB={key:"no",caption:"No"},XMN={key:"save",caption:"Save"},J53={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new TQ).addButton(mlU,!0,!0),(new TQ).addButton(mlU,!0).addButton(wMg,!1,!0),(new TQ).addButton(BFX,!0).addButton(zLB,!1,!0),(new TQ).addButton(BFX).addButton(zLB,!0).addButton(wMg,!1,!0),(new TQ).addButton(J53).addButton(XMN).addButton(wMg,!0,!0));_.K1(H4F,Bz);_.K1($l4,zi);var svd=_.y$(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),FwS=_.y$(["//apis.google.com/js/rpc.js"]),a7F=_.pB(svd),qXi=_.pB(FwS),c5F=null;var J_=function(d,H){_.Rj.call(this);this.JSC$10155_element_=d;d=_.A5(this.JSC$10155_element_)?this.JSC$10155_element_:this.JSC$10155_element_?this.JSC$10155_element_.body:null;this.isRtl_=!!d&&_.kG7(d);this.listenKey_=_.Iq(this.JSC$10155_element_,_.GZ?"DOMMouseScroll":"mousewheel",this,H)};
_.K1(J_,_.Rj);J_.prototype.handleEvent=function(d){var H=0,K=0,c=d.event_;c.type=="mousewheel"?(d=Z4M(-c.wheelDelta),c.wheelDeltaX!==void 0?(H=Z4M(-c.wheelDeltaX),K=Z4M(-c.wheelDeltaY)):K=d):(d=c.detail,d>100?d=3:d<-100&&(d=-3),c.axis!==void 0&&c.axis===c.HORIZONTAL_AXIS?H=d:K=d);typeof this.maxDeltaX_==="number"&&(H=_.zH(H,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(K=_.zH(K,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(H=-H);H=new TFA(d,c,H,K);this.dispatchEvent(H)};
var Z4M=function(d){return _.oB&&(_.RCl||UK1)&&d%40!=0?d:d/40};
J_.prototype.disposeInternal=function(){J_.superClass_.disposeInternal.call(this);wg(this.listenKey_);this.listenKey_=null};
var TFA=function(d,H,K,c){_.kJ.call(this,H);this.type="mousewheel";this.detail=d;this.deltaX=K;this.deltaY=c};
_.K1(TFA,_.kJ);_.jn=function(d){var H="instance_";if(d.instance_&&d.hasOwnProperty(H))return d.instance_;H=new d;return d.instance_=H};var oG5;var QvN=_.y$(["https://about:blank"]),t7g=_.y$(['javascript:""']),YX6=_.y$(["about:blank"]);_.K1(SX,H4F);_.G=SX.prototype;_.G.JSC$10163_url_="";_.G.JSC$10163_iframe_=null;_.G.iframeLoaded_=!1;_.G.loadedFired_=!1;_.G.callback_=function(){};
_.G.enterDocument=function(){SX.superClass_.enterDocument.call(this);i4l(this.getBackgroundElement(),BQ(this))};
_.G.render=function(d){var H=this;SX.superClass_.render.call(this,d);this.useGapi_?YmC(this.iframeManager_,window).then(function(){return O4C(H)}).then(null,function(){H.callback_({action:"error"})}):SX3(this)};
var O4C=function(d){var H=d.JSC$10112_dom_.JSC$9299_createDom("div",["picker-dialog-content","picker-frame"]);_.O8(H,!1);d.getContentElement().appendChild(H);return OjN(d.iframeManager_,H,function(K){var c=GCd(K["iframe-command"]);switch(c.getCommand()){case 1:K=d.callback_;c=_.gF(c,A9,2);var p="";switch(c.getStatus()){case 2:p="cancel";break;case 1:p="picked";break;case 3:p="error"}var g=_.dk(c,MJ,2,_.Hz(ED4));c=g.length===0?{action:p}:L13(g,p,_.gF(c,peS,7));K.call(d,c);d.setVisible(!1);break;case 4:Ww0(d);
d.callback_({action:"loaded"});break;case 7:case 8:K=d.callback_;a:{p=c.getCommand();g=_.gF(c,A9,2);switch(p){case 7:p="uploadScheduled";break;case 8:p="uploadStateChange";break;default:c={};break a}c=_.dk(g,MJ,2,_.Hz(ED4));if(c.length===0)c={action:p};else{var a=_.gF(g,peS,7);g=a&&_.IB(a,1);a=aO0(a);c=kJU(c,p,g,a)}}K.call(d,c)}},d.JSC$10163_url_,d.targetId_,d.rpcToken_).then(function(K){d.JSC$10163_iframe_=K.getIframeEl();
EGC(d);_.O8(d.JSC$10163_iframe_.parentElement,!0);_.Hg(d.getElement(),"picker-dialog");y5X(d);return K})},SX3=function(d){d.JSC$10163_iframe_=d.JSC$10112_dom_.JSC$9299_createDom("IFRAME",{id:d.targetId_,
name:d.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.OH(d.JSC$10163_iframe_,b4X(d));_.Hg(d.getElement(),"picker-dialog");d.getContentElement().appendChild(d.JSC$10163_iframe_);BQ(d).listen(d.JSC$10163_iframe_,"load",function(){return void EGC(d)});
d.JSC$10163_iframe_.src=d.JSC$10163_url_;y5X(d)},DlS=function(d){NFS(d,(0,_.LA)(function(H){H.setAuthToken(this.targetId_,this.rpcToken_)},d))},y5X=function(d){var H=_.t_(_.Qe(d.JSC$10163_url_),"title");
H&&d.setTitle(H)},b4X=function(d){return _.kLE("Internet Explorer")>=7&&_.gh(d.JSC$10163_url_,"https")?_.pB(QvN):_.iv?_.pB(t7g):_.pB(YX6)},EGC=function(d){DlS(d);
d.iframeLoaded_=!0;d.JSC$10163_iframe_.tabIndex=0;d.isVisible()&&d.focus()};
SX.prototype.handleKeydown_=function(d){d.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),d.stopPropagation(),d.preventDefault())};
var NFS=function(d,H){var K=d.JSC$10161_gadgetsDomHelper_;pM1(function(){H(K.getWindow().gadgets.rpc)},K)};
SX.prototype.setUrl=function(d){d=_.Y1(new _.jM(d),"rpcService",this.targetId_);_.Y1(d,"rpctoken",this.rpcToken_);_.dM(d,"rpctoken="+this.rpcToken_);_.DS(d,"https");this.JSC$10163_url_=d.toString();this.JSC$10163_iframe_&&(this.JSC$10163_iframe_.src=this.JSC$10163_url_)};
var f7M=function(d,H){d.callback_=H;NFS(d,(0,_.LA)(function(K){K.register(this.targetId_,(0,_.LA)(this.handlePickerAction_,this))},d))};
SX.prototype.handlePickerAction_=function(d){var H=d.action;H=="loaded"&&(this.loadedFired_=!0,A5M(this,new dlF(this.isVisible())),jv6(this),Ww0(this),BQ(this).unlisten(this.JSC$10112_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10163_iframe_.tabIndex=0);H!="picked"&&H!="cancel"||this.setVisible(!1);this.callback_(d)};
var jv6=function(d){d.JSC$10163_appId_&&A5M(d,new vp4(d.JSC$10163_appId_,window.location.protocol+"//"+window.location.host))};
SX.prototype.setRelayUrl=function(d){NFS(this,(0,_.LA)(function(H){H.setRelayUrl(this.targetId_,d)},this))};
var A5M=function(d,H){d.useGapi_&&NfN(H,d.iframeManager_).then(null,function(){d.callback_({action:"error"})});
NFS(d,(0,_.LA)(function(K){K.call(this.targetId_,"picker",null,H)},d))};
SX.prototype.resizePicker_=function(){var d=zo(this.JSC$10112_dom_.JSC$9297_document_)||window;if(_.t_(_.Qe(this.JSC$10163_url_),"ignoreLimits")=="true")d=new _.nB(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.t_(_.Qe(this.JSC$10163_url_),"shadeDialog")=="true"){var H=Ptg(this);H=xSS(H);var K=_.CB(d);d=K.width-80;K=K.height-40;H&&(d-=H.left?H.left:0,d-=H.right?H.right:0,K-=H.top?H.top:0,K-=H.bottom?H.bottom:0);d=new _.nB(d>0?d:0,K>0?K:0)}else(H=this.preferredDialogWidth_)?(H=Math.max(320,
Math.min(1051,H)),(K=this.preferredDialogHeight_)||(K=_.CB(d).height*.85),K=Math.max(480,Math.min(650,K))):(H=_.CB(d),K=H.width*.618,K=K<H.height?Math.round(Math.max(480,Math.min(650,K*.85))):Math.round(Math.max(480,Math.min(650,H.height*.85))),H=Math.round(K/.618)),d=_.CB(d),H=Math.min(H,Math.max(d.width,320)),K=Math.min(K,Math.max(d.height,480)),d=new _.nB(H,K);_.o0N(this.getContentElement(),d);this.reposition()};
SX.prototype.reposition=function(){if(_.t_(_.Qe(this.JSC$10163_url_),"shadeDialog")=="true"){var d=a5A(this.getElement()),H=_.CB(this.JSC$10112_dom_.getWindow());d=Math.floor(H.width/2-d.width/2);H=Ptg(this);if(H=xSS(H)){var K=H.left?H.left:0;K+=H.right?H.right:0;d=Math.floor(d-K/2)}d=d>0?d:0;H=Rr(this.JSC$10112_dom_).y;sl(this.getElement(),d,H)}else SX.superClass_.reposition.call(this)};
SX.prototype.setVisible=function(d){if(d!=this.isVisible()&&this.autoSizeDialog_){var H=this.JSC$10112_dom_.getWindow();d?(this.resizePicker_(),BQ(this).listen(H,"resize",this.resizePicker_),this.iframeLoaded_||BQ(this).listen(H,"keydown",this.handleKeydown_)):(BQ(this).unlisten(H,"resize",this.resizePicker_),this.iframeLoaded_||BQ(this).unlisten(H,"keydown",this.handleKeydown_))}SX.superClass_.setVisible.call(this,d);A5M(this,new dlF(d))};
SX.prototype.focus=function(){SX.superClass_.focus.call(this);if(this.JSC$10163_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10163_iframe_.focus()}catch(d){}};var sb=function(d,H){H=H===void 0?SX:H;zi.call(this,d);this.pickerConstructor=H;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(d=window.location.origin)||(d=window.location.protocol+"//"+window.location.host);d&&this.urlParamMap_.set("origin",d);this.postProcessors_=[]};
_.m(sb,$l4);sb.prototype.JSC$10168_disposeOnHide_=!1;
sb.prototype.build=function(){this.JSC$10069_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10069_appId_);this.getRelayUrl()||this.setRelayUrl(_.jo(_.dM(_.v9(_.Qe(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var d=new this.pickerConstructor(vGS(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);d.JSC$10145_disposeOnHide_=this.JSC$10168_disposeOnHide_;
d.JSC$10163_appId_=this.JSC$10069_appId_;d.loadedFired_&&jv6(d);f7M(d,this.callback_);return d};
var deM=function(d){d.urlParamMap_.set("multiselectEnabled","true");return d};
_.G=sb.prototype;_.G.getHeight=function(){return this.dialogHeight_};
_.G.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.G.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.G.getTitle=function(){return this.urlParamMap_.get("title")};
_.G.getWidth=function(){return this.dialogWidth_};
var HnA=function(d){d.JSC$10168_disposeOnHide_=void 0;return d};
sb.prototype.setRelayUrl=function(d){this.urlParamMap_.set("parent",d);return this};
var $eS=function(d,H){d.urlParamMap_.set("selectButtonLabel",H);return d};
sb.prototype.setSize=function(d,H){this.dialogWidth_=d;this.dialogHeight_=H;return this};
sb.prototype.setTitle=function(d){this.urlParamMap_.set("title",d);return this};
var vGS=function(d){d.postProcessors_.length&&d.urlParamMap_.set("pp",JSON.stringify(d.postProcessors_));d.urlParamMap_.set("nav",ijC(d.nav_));var H=new _.jM(d.getBaseUrl());d.urlParamMap_.forEach(function(K,c){_.Y1(H,c,K)});
return H};var pd3=function(d,H){d.name!==void 0?(this.name=d.name,this.code=Kf6[d.name]):(this.code=d=d.code,this.name=cfC(d));_.dh.call(this,wFB("%s %s",this.name,H))};
_.K1(pd3,_.dh);var cfC=function(d){var H=_.rs.findKey(Kf6,function(K){return d==K});
if(H===void 0)throw Error("hb`"+d);return H},tv={},Kf6=(tv.AbortError=3,tv.EncodingError=5,tv.InvalidModificationError=9,tv.InvalidStateError=7,tv.NotFoundError=1,tv.NotReadableError=4,tv.NoModificationAllowedError=6,tv.PathExistsError=12,tv.QuotaExceededError=10,tv.SecurityError=2,tv.SyntaxError=8,tv.TypeMismatchError=11,tv);var grC=function(d,H){_.eo.call(this,d.type,H);this.event_=d};
_.K1(grC,_.eo);var in3=function(d,H,K){K===void 0&&(K=d.size);return d.slice?d.slice(H,K):null};var k1C=new WeakMap,eLM=function(d,H){d=[d];for(var K=H.length-1;K>=0;--K)d.push(typeof H[K],H[K]);return d.join("\v")};_.nGi(function(){if(!_.KF.Blob)return!1;var d=new Uint8Array(100);try{var H=new Blob([d])}catch(K){return!1}return H.size!=100?!1:!0});
var G57=_.nGi(function(){if(!_.KF.Blob)return!1;var d=new Uint8Array(100);try{var H=new Blob([d])}catch(K){return!1}return in3(H,0,1)===null?!1:!0});_.KF.U3bHHf!=null||(_.KF.U3bHHf=0);_.KF.U3bHHf++;_.orA=new WeakMap;_.qDg=new WeakMap;var RLF={};var br=void 0;var UlE=Symbol("pb");var XMC=fA("WizInjectionContext_Dispatcher");var d9=Symbol("qb");var x2,hm;x2=function(){this.afterRenderCallbacks=null};
_.NrM=Symbol("rb");hm=function(d){this.props=d;this.__unmounted=!1};
hm.prototype.didPatch=function(){};
hm.prototype.didMount=function(){};
hm.prototype.didUnmount=function(){};
hm.prototype.didUpdate=function(){};_.I7Y=fA("WizInjectionContext_RootElement");var WwD=fA("WizInjectionContext_AppContext"),r51=fA("WizInjectionContext_ModelRootElement"),BFF=fA("WizInjectionContext_RendererData"),zLF=fA("WizInjectionContext_InjectingConstructor"),upY=fA("WizInjectionContext_AsyncDeps"),J5L={};var t7i=!1;var EGE={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:lIL,enableLazyTsx:eCl,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:aIF,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var jX=Object.assign({},{attributes:{},handleError:function(d){throw d;}},EGE);var azC=Symbol("vb"),xm=Symbol("wb"),JfL=Symbol("xb"),ziE=Symbol("yb"),YDF=z3(function(d){return vz(d)&&azC in d});var jvX=Symbol("zb"),Y3={},f71=(Y3[jvX]=!0,Y3.debugName="[component]",Y3.getComponentStack=function(){for(var d=[],H=this;H;)vGl(H)&&d.push(H.debugName),H=H.parent;return d},Y3.registerSignal=function(){},Y3.registerEffect=function(){},Y3);var dc=null,$m=!1,KfX=1,pl=Symbol("Ab"),lj={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var OR=Symbol("Bb"),SJ=Symbol("Cb"),ck=Symbol("Db"),azE=Object.assign({},lj,{value:OR,dirty:!0,error:null,equal:de1,kind:"computed",producerMustRecompute:function(d){return d.value===OR||d.value===SJ},
producerRecomputeValue:function(d){if(d.value===SJ)throw Error("Z");var H=d.value;d.value=SJ;var K=G5M(d),c=!1;try{var p=d.computation();Hk(null);c=H!==OR&&H!==ck&&p!==ck&&d.equal(H,p)}catch(g){p=ck,d.error=g}finally{qDi(d,K)}c?d.value=H:(d.value=p,d.version++)}});var xeh=function(){throw Error();};var Cwl=null,eiF=Object.assign({},lj,{equal:de1,value:void 0,kind:"signal"});Object.assign({},lj,{value:OR,dirty:!0,error:null,equal:de1,kind:"linkedSignal",producerMustRecompute:function(d){return d.value===OR||d.value===SJ},
producerRecomputeValue:function(d){if(d.value===SJ)throw Error("Z");var H=d.value;d.value=SJ;var K=G5M(d);try{var c=d.source();var p=d.computation(c,H===OR||H===ck?void 0:{source:d.sourceValue,value:H});d.sourceValue=c}catch(g){p=ck,d.error=g}finally{qDi(d,K)}H!==OR&&p!==ck&&d.equal(H,p)?d.value=H:(d.value=p,d.version++)}});Object.assign({},lj,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(d){d.schedule!==null&&d.schedule(d.ref)},
hasRun:!1,cleanupFn:function(){}});var VVM=Symbol("Eb"),oH=Symbol("Fb");var qt=Array.isArray;var IzL;var lz3={},Wfi=ui4(Object.assign({},{consumerAllowSignalWrites:!0},lz3)),C6=ui4(Object.assign({},{consumerAllowSignalWrites:!0},lz3));var nl=0,Cl=!1,ER=function(){this.queue=new Set};
ER.prototype.remove=function(d){this.queue.delete(d)};
ER.prototype.clear=function(){this.queue.clear()};
var eiX=function(){ER.apply(this,arguments)};
_.m(eiX,ER);eiX.prototype.schedule=function(d){this.queue.add(d)};
eiX.prototype.flush=function(){if(this.queue.size){Cl=!0;try{for(var d=_.q(this.queue),H=d.next();!H.done;H=d.next()){var K=H.value;this.queue.delete(K);try{K.run()}catch(c){k5B(c)}}}finally{Cl=!1}}};
var xeA=new eiX,yn=function(){ER.apply(this,arguments)};
_.m(yn,ER);var nrC=function(){yn.apply(this,arguments)};
_.m(nrC,yn);nrC.prototype.schedule=function(d){d.hasRun?this.queue.add(d):d.run()};
nrC.prototype.flush=function(){if(this.queue.size)if(jX.flushRenderEffectsDuringRender){var d=this.queue;this.queue=new Set;OnF(d)}else OnF(this.queue)};
var BzC=new nrC,CwS=function(){yn.apply(this,arguments)};
_.m(CwS,yn);CwS.prototype.schedule=function(d){var H=this;return _.l(function(K){if(K.nextAddress==1)return d.hasRun?K.jumpTo(2):K.yield(Promise.resolve(),3);if(K.nextAddress!=2)return d.run(),K.return();H.queue.add(d);_.VE(K)})};
CwS.prototype.flush=function(){var d=this;return _.l(function(H){if(H.nextAddress==1)return d.queue.size?H.yield(Promise.resolve(),2):H.return();OnF(d.queue);_.VE(H)})};
var sJM=new CwS,RiS=function(){yn.apply(this,arguments)};
_.m(RiS,yn);RiS.prototype.schedule=function(d){this.queue.add(d)};
RiS.prototype.flush=function(){this.queue.size&&OnF(this.queue)};
var XdY=new RiS,QJ5=[BzC,xeA,XdY,sJM],VV7=[BzC,XdY,sJM],Znf=[];Cwl=function(){tVX();for(var d=_.q(Znf),H=d.next();!H.done;H=d.next())H=H.value,H()};
var k5B=cF;var ht=Symbol("Kb");var Ue=null,yfF,bnY=null,Nzh;var bI={},Uel=Object.assign({},lj,(bI[azC]=!0,bI.effectType=xm,bI.isResettableContext=!0,bI.hasRun=!1,bI.effectFn=null,bI.consumerIsAlwaysLive=!0,bI.consumerAllowSignalWrites=!0,bI.consumerMarkedDirty=FfE,bI.kind="effect",bI.run=function(){if(this.effectFn!==null&&!this.isDisposed){if($m)throw Error("Lb");this.dirty=!1;if(!this.hasRun||cfE(this)){this.hasRun=!0;Pti(this);var d=_.N_(this),H=G5M(this);b4F("effectRun",this.debugName);try{m5(this.effectFn,this.componentStack,this)}catch(K){throw jX.enableContextBasedComponentStacks&&
Mt(K),K;}finally{NFl("effectRun",this.debugName),qDi(this,H),_.N_(d)}}}},bI.componentStack=void 0,bI.debugName="[effect]",bI[Symbol.dispose]=function(){if(Kl(this))for(var d=this.producers;d!==void 0;)d=orh(d);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;d=_.q(VV7);for(var H=d.next();!H.done;H=d.next())H.value.remove(this);wMi(this)},bI));var Afi=Object.assign({},Uel,{effectType:JfL});var jJF=Symbol("Mb");var vri=Object.assign({},Uel,{effectType:xm});var s$Y=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var $81={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},H51=
{a:{href:[{contract:3}]},area:{href:[{contract:3}]},audio:{src:[{contract:3}]},button:{formaction:[{contract:3}],formmethod:[{contract:1}]},form:{action:[{contract:3}],method:[{contract:1}]},iframe:{srcdoc:[{contract:2}]},img:{src:[{contract:3}],srcset:[{contract:11}]},input:{accept:[{contract:1}],formaction:[{contract:3}],formmethod:[{contract:1}],pattern:[{contract:1}],readonly:[{contract:1}],src:[{contract:3}]},link:{href:[{contract:3,contingentAttribute:"rel",requiredValue:"alternate"},{contract:3,
contingentAttribute:"rel",requiredValue:"author"},{contract:3,contingentAttribute:"rel",requiredValue:"bookmark"},{contract:3,contingentAttribute:"rel",requiredValue:"canonical"},{contract:3,contingentAttribute:"rel",requiredValue:"cite"},{contract:3,contingentAttribute:"rel",requiredValue:"help"},{contract:3,contingentAttribute:"rel",requiredValue:"icon"},{contract:3,contingentAttribute:"rel",requiredValue:"license"},{contract:3,contingentAttribute:"rel",requiredValue:"next"},{contract:3,contingentAttribute:"rel",
requiredValue:"prefetch"},{contract:3,contingentAttribute:"rel",requiredValue:"dns-prefetch"},{contract:3,contingentAttribute:"rel",requiredValue:"prerender"},{contract:3,contingentAttribute:"rel",requiredValue:"preconnect"},{contract:3,contingentAttribute:"rel",requiredValue:"preload"},{contract:3,contingentAttribute:"rel",requiredValue:"prev"},{contract:3,contingentAttribute:"rel",requiredValue:"search"},{contract:3,contingentAttribute:"rel",requiredValue:"subresource"}]},script:{defer:[{contract:1}]},
source:{src:[{contract:3}],srcset:[{contract:11}]},textarea:{readonly:[{contract:1}]},video:{src:[{contract:3}]}},TNE={a:1,abbr:1,acronym:1,address:1,applet:4,area:5,article:1,aside:1,audio:1,b:1,base:4,basefont:1,bdi:1,bdo:1,big:1,blockquote:1,body:1,br:5,button:1,canvas:1,caption:1,center:1,cite:1,code:1,col:5,colgroup:1,command:1,data:1,datalist:1,dd:1,del:1,details:1,dfn:1,dialog:1,dir:1,div:1,dl:1,dt:1,em:1,embed:4,fieldset:1,figcaption:1,figure:1,font:1,footer:1,form:1,frame:1,frameset:1,h1:1,
h2:1,h3:1,h4:1,h5:1,h6:1,head:1,header:1,hgroup:1,hr:5,html:1,i:1,iframe:1,img:5,input:5,ins:1,kbd:1,label:1,legend:1,lh:1,li:1,link:5,main:1,map:1,mark:1,math:4,menu:1,meta:4,meter:1,nav:1,nobr:1,noscript:1,object:4,ol:1,optgroup:1,option:1,output:1,p:1,param:5,picture:1,pre:1,progress:1,q:1,rb:1,rp:1,rt:1,rtc:1,ruby:1,s:1,samp:1,script:3,section:1,select:1,slot:1,small:1,source:5,span:1,strike:1,strong:1,style:2,sub:1,summary:1,sup:1,svg:4,table:1,tbody:1,td:1,template:4,textarea:6,tfoot:1,th:1,
thead:1,time:1,title:6,tr:1,track:5,tt:1,u:1,ul:1,"var":1,video:1,wbr:5},pVX=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],cwF={"*":{async:1,dir:0,loading:2,target:3}};var hiA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,N3={},i5M=(N3[1]=null,N3[2]=function(d,H){return H instanceof QB?YO(H):zC.toString()},N3[3]=function(d,H){return u_(H)?_.IK(H):hiA.test(String(H))?String(H):zC.toString()},N3[4]=function(d,H){return H instanceof UH?_.Lc(H):zC.toString()},N3[5]=function(d,H){return String(H)},N3[7]=null,N3[8]=null,N3[10]=null,N3);var v6i=Symbol("Pb");var VH1=function(d){var H=LfM,K=d,c="",p="",g=1;d<0&&(d=-d);if(d===Infinity)d=(Infinity*Math.sign(K)).toString();else{for(var a=0;a<MV7.length;a++){var e=MV7[a];g=H[e];if(d>=g||g<=1&&d>.1*g){c=e;break}}c?(c+="B",p=" "):g=1;d=Math.round(K/g*10)/10+p+c}return d},MV7="Y Z E P T G M K  m u n".split(" "),LfM={"":1,
n:9.313225746154785E-10,u:9.5367431640625E-7,m:1/1024,k:1024,K:1024,M:1048576,G:1073741824,T:1099511627776,P:0x4000000000000,E:0x1000000000000000,Z:1.1805916207174113E21,Y:1.2089258196146292E24};_.meS=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]");var iU={};RegExp.prototype.hasOwnProperty("sticky");var Z5E=function(d){d=String(d);for(var H=function(c,p,g){for(var a=Math.min(p.length-g,c.length),e=0;e<a;e++){var k=p[g+e];if(c[e]!==("A"<=k&&k<="Z"?k.toLowerCase():k))return!1}return!0},K=0;(K=d.indexOf("<",K))!=-1;){if(H("\x3c/script",d,K)||H("\x3c!--",d,K))return"zSoyz";
K+=1}return d};var Fq={default:"__default"};var eYf=Object.prototype.hasOwnProperty;q_Y.prototype=Object.create(null);var HV=nlD();var Dp=null;var IQD=function(d){this.created=[];this.deleted=[];this.node=d};var rwE=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var d=this,H=d;d;)H=d,d=d.parentNode;return H};var RY5=function(d,H){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=d;this.key=H;this.text=void 0};var Oe=null,Sy=null,tt=null,yM=null,M1L=[],LKl=U8F,bj=[],Nt=[],jDY=function(d){return WK5(function(H,K,c){tt=Sy=H;Sy=null;K(c);hYF(null);Sy=tt;tt=tt.parentNode;return H},d)}(),AWM=function(d){return WK5(function(H,K,c){var p={nextSibling:H};
Sy=p;K(c);tt&&hYF(H.nextSibling);return p===Sy?null:Sy},d)}();var fl=[],zYC=0;var At=new q_Y;var z6=new q_Y;var wd0=nlD(),t1l=wd0[Fq.default],Q$Y=wd0.style,FKE=["focusin","focusout"],S_F="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var PG1=function(){},xC1=function(){},BrM=function(){},IcC=function(){};var vk=Symbol("Wb");var D8Y,NQC=b5F;var lU=Symbol("Xb");var WGC=new Set("a altGlyph altGlyphDef altGlyphItem animate animateColor animateMotion animateTransform circle clipPath color-profile cursor defs desc ellipse feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence filter font font-face font-face-format font-face-name font-face-src font-face-uri foreignObject g glyph glyphRef hkern image line linearGradient marker mask metadata missing-glyph mpath path pattern polygon polyline radialGradient rect script set stop style svg switch symbol text textPath title tref tspan use view vkern".split(" ")),
rPM=new Set(["a","font","script","style","title"]);var qM={setUp:GAi,tearDown:GAi,log:GAi,logNodeRange:GAi,graft:function(d,H){H()}};var Rs={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Vx=null,US=function(d,H){hm.call(this,d);var K=this;this.functionComponent=H;this.hooks=[];this.hookCounter=0;this.disposeEffects=uj(function(c){K.effectContext=c;_.Pk(function(){VM1(K,K.el)})},jX.alwaysTrackContexts||!!br)};
_.m(US,hm);US.prototype.render=function(d){var H=Vx;Vx=this;this.hookCounter=0;var K=Hk(C6),c=_.N_(this.effectContext);try{return b4F("render",this.componentName),this.functionComponent(d)}finally{NFl("render",this.componentName),_.N_(c),Hk(K),Vx=H}};
_.H3.Object.defineProperties(US.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return SDi(this.functionComponent)}}});var zQi=Symbol("kc"),mCf=function(d,H,K){this.afterRenderCallbacks=null;this.kind=d;this.props=H;this.children=K};
_.m(mCf,x2);mCf.prototype.render=function(){var d=MMh(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var H=_.q(this.afterRenderCallbacks),K=H.next();!K.done;K=H.next())K=K.value,d=K(d);return d};
mCf.prototype.getChildren=function(){return this.children};var JPX=[];xeh=function(d){throw Error("ob`"+d.debugName);};
(function(){var d=Dp;Dp=function(H){d==null||d(H);suE(H)}})();var PwM=new WeakMap,uil=0;var Iz3=void 0,rfM={},Wfg=new WeakMap,XRi={getComponent:function(d){if(d.hasAttribute("ng-version"))return rfM;if(!d.__wizComponent)return null;d=d.__wizComponent;Wfg.set(d.propsAndState,d);return d.propsAndState},
getDirectiveMetadata:function(d){if(d===rfM)return{framework:"wiz",name:"<Root>",props:{}};d=Wfg.get(d);if(!d)throw Error("lc");return{framework:"wiz",name:d.name,props:Object.fromEntries(Object.keys(d.props).map(function(H){return[H,H]}))}},
"\u0275setProfiler":function(d){var H;(H=Iz3)==null||H();Iz3=Tzh(function(){d(2)})},
getInjector:function(d){return d.__wizComponent},
"\u0275getSignalGraph":function(d){var H;d=(H=d.effects)!=null?H:[];var K=FG1(d),c=Array.from(K.keys());H=[];d=[];for(var p=new Map,g=0;g<c.length;g++)p.set(c[g],g);K=_.q(K.entries());for(c=K.next();!c.done;c=K.next()){g=_.q(c.value);c=g.next().value;var a=g.next().value;g=c;c=p.get(g);var e=PwM.get(g);e||(e=uil.toString(),PwM.set(g,e),uil++);var k=void 0,C=((k=g.debugName)!=null?k:"").replace(/@.+/,"");if(g.kind==="computed"){k=g.computation;var R=void 0;H.push({label:C,value:g.value,kind:g.kind,
epoch:g.version,debuggableFn:(R=k.userFn)!=null?R:k,id:e})}else if(g.kind==="signal")H.push({label:C,value:g.value,kind:g.kind,epoch:g.version,debuggableFn:g.debugFn,id:e});else if(g.kind==="effect"){R=void 0;k=(R=g.effectFn)!=null?R:void 0;var V=R=void 0;H.push({label:C,kind:g.kind,epoch:g.version,debuggableFn:(V=(R=k)==null?void 0:R.userFn)!=null?V:k,id:e})}else H.push({label:C,kind:g.kind,epoch:g.version,id:e});g=_.q(a);for(a=g.next();!a.done;a=g.next())d.push({consumer:c,producer:p.get(a.value)})}return{nodes:H,
edges:d}},
isSignal:function(d){return typeof d==="function"&&d[pl]!==void 0}};Object.assign({},Uel,{effectType:xm,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var d=this.elementRef;var H;d.element!=null||(d.element=(H=d.document.getElementById(d.value))!=null?H:void 0);d=d.element;for(H=this.attributes;H;){var K=H.signal();K!==H.prevValue&&(H.prevValue=K,H.namespace===1?d[H.name]=K:s$Y.has(H.name)?se(d,H.name,K?"":null):se(d,H.name,K));H=H.next}}});Object.assign({},Uel,{effectType:xm,hasRun:!0});_.n.debugName="RlDudd";var ZOD={nonNullableCondIsNull:function(){return Error("pc")}};var Soi=function(){this.map=new Map};
Soi.prototype.push=function(d,H){var K=this.map;K.has(d)&&(this.multi||(this.multi=new Map),this.multi.set(H,K.get(d)));K.set(d,H)};
Soi.prototype.pop=function(d){var H=this.map,K=H.get(d),c;K!==void 0&&((c=this.multi)==null?0:c.has(K))?(H.set(d,this.multi.get(K)),this.multi.delete(K)):H.delete(d);return K};_.L6.debugName="nsTGHd";_.MM.debugName="tbhMcf";_.mS.debugName="zyMFzb";_.w9.debugName="vI1rtf";_.fcF={OUT_OF_ORDER_HOOK_CALL:function(d){return Error("qc`"+d)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("rc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("sc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("tc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(d,H){return Error("uc`"+((H===void 0?0:H)?"IDOM":"Reactive")+"`"+(PE(d)?d.description:d))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(d,H){return Error("vc`"+(PE(d)?d.description:d)+"`"+H)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(d){return Error("wc`"+(PE(d)?d.description:d))},
USE_ELEMENT_NOT_ASSIGNED:function(d){return Error("xc`"+(PE(d)?d.description:d))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(d){return Error("yc`"+(PE(d)?d.description:d))}};D8Y=w3f;var cO5=Symbol("zc");CGL({beforeRender:function(d){var H=_.N_(d.effectContext);try{var K;((K=d.__syncEffects)==null?0:K.length)&&gWF(d.__syncEffects)}finally{_.N_(H)}},
didPatch:function(d){var H=_.N_(d.effectContext);try{var K;((K=d.__syncEffects)==null?0:K.length)&&gWF(d.__syncEffects)}finally{_.N_(H)}},
didUnmount:function(d){var H;((H=d.hooks)==null?0:H.length)&&d.hooks.forEach(pyF)}});var BzN,ziC,Xdd;BzN=_.KF.window;_.Jm=(BzN==null?void 0:(ziC=BzN.yt)==null?void 0:ziC.config_)||(BzN==null?void 0:(Xdd=BzN.ytcfg)==null?void 0:Xdd.data_)||{};_.vb("yt.config_",_.Jm);var Jf3={},qal=[];_.m1=function(d){var H=_.sH.apply(1,arguments);var K=Error.call(this,d);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.args=[].concat(_.ru(H));Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(_.m1,Error);var ha5=function(d,H,K){this.actionName=d;this.optionalAction=H===void 0?!1:H;this.args=K===void 0?null:K;this.returnValue=[]};_.Dk=function(d){this.name=d};_.Yr=new _.Dk("signalAction");var hTi=/^[\w.]*$/,xoi={q:!0,search_query:!0},kTL=String(eTM);var fG;fG=Symbol("Ac");_.Av=function(d){this.name=d};
_.Av.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var LWY=function(d){this.key=d},uwX=function(d){this.deferredKey=d},moE=function(){var d=this;
this.providers=new Map;this.JSC$10420_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(d.providers)}}};
moE.prototype.addProvider=function(d){this.providers.set(d.provide,d);var H=this.JSC$10420_deferred.get(d.provide);if(H)try{H.resolver(this.resolve(d.provide))}catch(K){H.rejector(K)}};
moE.prototype.resolve=function(d){return d instanceof uwX?sJ7(this,d):d instanceof LWY?FfC(this,d.key,[],!0):FfC(this,d,[])};
var sJ7=function(d,H){H=H.deferredKey;if(d.JSC$10420_deferred.has(H))return d.JSC$10420_deferred.get(H).promise;var K={};K.promise=new Promise(function(c,p){K.resolver=c;K.rejector=p});
d.JSC$10420_deferred.set(H,K);return K.promise},FfC=function(d,H,K,c){c=c===void 0?!1:c;
if(K.indexOf(H)>-1)throw Error("Bc`"+H);if(d.cachedValues.has(H))return d.cachedValues.get(H);if(!d.providers.has(H)){if(c)return;throw Error("Cc`"+H);}c=d.providers.get(H);K.push(H);if(c.useValue!==void 0)var p=c.useValue;else if(c.useFactory)p=c[fG]?ZnU(d,c[fG],K):[],p=c.useFactory.apply(c,_.ru(p));else if(c.useClass){p=c.useClass;var g=p[fG]?ZnU(d,p[fG],K):[];p=new (Function.prototype.bind.apply(p,[null].concat(_.ru(g))))}else throw Error("Dc`"+H);K.pop();c.skipCache||d.cachedValues.set(H,p);return p},
ZnU=function(d,H,K){return H?H.map(function(c){return c instanceof LWY?FfC(d,c.key,K,!0):FfC(d,c,K)}):[]};var M5f;var ED=new _.Av("ENDPOINT_HANDLER_TOKEN");_.yj=new _.Dk("urlEndpoint");var TzA=function(){this.data=[];this.cachedPackedInt52=-1};
TzA.prototype.set=function(d,H){H=H===void 0?!0:H;0<=d&&d<52&&Number.isInteger(d)&&this.data[d]!==H&&(this.data[d]=H,this.cachedPackedInt52=-1)};
TzA.prototype.get=function(d){return!!this.data[d]};
var QJ3=function(d){d.cachedPackedInt52===-1&&(d.cachedPackedInt52=d.data.reduce(function(H,K,c){return H+(K?Math.pow(2,c):0)},0));
return d.cachedPackedInt52};var Yal=function(d){var H=tV6;d=d===void 0?_.OS("yt.ads.biscotti.lastId_")||"":d;var K=Object,c=K.assign,p={};p.dt=s4X;p.flash="0";a:{try{var g=H.JSC$10426_win_.top.location.href}catch(v){g=2;break a}g=g?g===H.doc_.location.href?0:1:2}p=(p.frm=g,p);try{p.u_tz=-(new Date).getTimezoneOffset();try{var a=FD.history.length}catch(v){a=0}p.u_his=a;var e;p.u_h=(e=FD.screen)==null?void 0:e.height;var k;p.u_w=(k=FD.screen)==null?void 0:k.width;var C;p.u_ah=(C=FD.screen)==null?void 0:C.availHeight;var R;p.u_aw=
(R=FD.screen)==null?void 0:R.availWidth;var V;p.u_cd=(V=FD.screen)==null?void 0:V.colorDepth}catch(v){}a=H.JSC$10426_win_;try{var U=a.screenX;var L=a.screenY}catch(v){}try{var w=a.outerWidth;var W=a.outerHeight}catch(v){}try{var J=a.innerWidth;var F=a.innerHeight}catch(v){}try{var Y=a.screenLeft;var A=a.screenTop}catch(v){}try{J=a.innerWidth,F=a.innerHeight}catch(v){}try{var E=a.screen.availWidth;var N=a.screen.availTop}catch(v){}U=[Y,A,U,L,E,N,w,W,J,F];L=aBi(!1,H.JSC$10426_win_.top);w={};var y=y===
void 0?_.KF:y;W=new TzA;"SVGElement"in y&&"createElementNS"in y.document&&W.set(0);J=BAS();J["allow-top-navigation-by-user-activation"]&&W.set(1);J["allow-popups-to-escape-sandbox"]&&W.set(2);y.crypto&&y.crypto.subtle&&W.set(3);"TextDecoder"in y&&"TextEncoder"in y&&W.set(4);y=QJ3(W);H=(w.bc=y,w.bih=L.height,w.biw=L.width,w.brdim=U.join(),w.vis=$ML(H.doc_),w.wgl=!!FD.WebGLRenderingContext,w);K=c.call(K,p,H);K.ca_type="image";d&&(K.bid=d);return K},tV6=new function(){var d=window.document;
this.JSC$10426_win_=window;this.doc_=d};
_.vb("yt.ads_.signals_.getAdSignalsString",function(d){return nWY(Yal(d))});_.$V();navigator.userAgent.indexOf(" (CrKey ");var zT4="XMLHttpRequest"in _.KF?function(){return new XMLHttpRequest}:null;var YDB="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),OnX=[].concat(_.ru(YDB),["client_dev_set_cookie"]);var t5f={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"},sFX="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(_.ru(YDB)),AOX=!1,ZoM=_.OoE,NVD=QF5;var Roi=[{messageFn:function(d){return"Cannot read property '"+d.key+"'"},
patternsForType:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\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"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{messageFn:function(d){return"Cannot call '"+d.key+"'"},
patternsForType:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\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"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{messageFn:function(d){return d.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var SDg={messageWeights:[],callbackWeights:[{callback:HHL,weight:500},{callback:$RC,weight:500}]};var ErN=function(){this.callbackWeights=[];this.messageWeights=[]},yfX,C8L=function(){if(!yfX){var d=yfX=new ErN;
d.messageWeights.length=0;d.callbackWeights.length=0;$XD(d,SDg)}return yfX},$XD=function(d,H){H.messageWeights&&d.messageWeights.push.apply(d.messageWeights,H.messageWeights);
H.callbackWeights&&d.callbackWeights.push.apply(d.callbackWeights,H.callbackWeights)};_.K1(_.Cj,_.h_);_.Cj.prototype.subscribe=function(d,H,K){var c=this.topics_[d];c||(c=this.topics_[d]=[]);var p=this.JSC$10450_key_;this.subscriptions_[p]=d;this.subscriptions_[p+1]=H;this.subscriptions_[p+2]=K;this.JSC$10450_key_=p+3;c.push(p);return p};
var bnd=function(d){var H=LRY,K=!1,c=H.subscribe("handleError",function(p){K||(K=!0,this.unsubscribeByKey(c),d.apply(void 0,arguments))},H)};
_.Cj.prototype.unsubscribe=function(d,H,K){if(d=this.topics_[d]){var c=this.subscriptions_;if(d=d.find(function(p){return c[p+1]==H&&c[p+2]==K}))return this.unsubscribeByKey(d)}return!1};
_.Cj.prototype.unsubscribeByKey=function(d){var H=this.subscriptions_[d];if(H){var K=this.topics_[H];this.publishDepth_!=0?(this.pendingKeys_.push(d),this.subscriptions_[d+1]=function(){}):(K&&_.Q4(K,d),delete this.subscriptions_[d],delete this.subscriptions_[d+1],delete this.subscriptions_[d+2])}return!!H};
_.Cj.prototype.publish=function(d,H){var K=this.topics_[d];if(K){var c=Array(arguments.length-1),p=arguments.length,g;for(g=1;g<p;g++)c[g-1]=arguments[g];if(this.async_)for(g=0;g<K.length;g++)p=K[g],NzA(this.subscriptions_[p+1],this.subscriptions_[p+2],c);else{this.publishDepth_++;try{for(g=0,p=K.length;g<p&&!this.isDisposed();g++){var a=K[g];this.subscriptions_[a+1].apply(this.subscriptions_[a+2],c)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;K=this.pendingKeys_.pop();)this.unsubscribeByKey(K)}}return g!=
0}return!1};
var NzA=function(d,H,K){_.UL(function(){d.apply(H,K)})};
_.Cj.prototype.clear=function(d){if(d){var H=this.topics_[d];H&&(H.forEach(this.unsubscribeByKey,this),delete this.topics_[d])}else this.subscriptions_.length=0,this.topics_={}};
_.Cj.prototype.getCount=function(d){if(d){var H=this.topics_[d];return H?H.length:0}d=0;for(H in this.topics_)d+=this.getCount(H);return d};
_.Cj.prototype.disposeInternal=function(){_.Cj.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var LRY=new _.Cj;var ql=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(ql,_.He);ql.prototype.getColdHashData=function(){return _.IB(this,3)};
ql.prototype.getHotHashData=function(){return _.IB(this,5)};
ql.prototype.setHotHashData=function(d){return _.UY(this,5,d)};var xvl=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(xvl,_.He);var O7D=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(O7D,_.He);_.G=O7D.prototype;_.G.getDeviceId=function(){return _.IB(this,6)};
_.G.getExperimentIds=function(d){var H=_.ST(this,9,_.vB,3,!0);yCM(H,d);return H[d]};
_.G.getPlayerType=function(){return _.rK(this,36)};
_.G.setHomeGroupInfo=function(d){return _.eE(this,81,d)};
_.G.clearLocationPlayabilityToken=function(){return _.ov(this,89)};var Cn=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Cn,_.He);Cn.prototype.setKey=function(d){return _.UY(this,1,d)};
Cn.prototype.getValue=function(){return BG(this,2,EMX)};
var EMX=[2,3,4,5,6];var De3=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(De3,_.He);De3.prototype.setTrackingParams=function(d){return _.ov(this,1,_.PB(d,!1))};var SQX=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(SQX,_.He);var RRh=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(RRh,_.He);RRh.prototype.getExperimentIds=function(d){var H=_.ST(this,5,_.e6f,3,!0);yCM(H,d);return H[d]};var hf=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(hf,_.He);hf.prototype.getToken=function(){return _.k1(this,2)};
hf.prototype.setToken=function(d){return _.UY(this,2,d)};var Vj=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Vj,_.He);Vj.prototype.setSafetyMode=function(d){return _.G1(this,5,d)};var nn=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(nn,_.He);nn.prototype.setClient=function(d){return _.eE(this,1,d)};var CO4={WEB_DISPLAY_MODE_UNKNOWN:"WEB_DISPLAY_MODE_UNKNOWN",WEB_DISPLAY_MODE_BROWSER:"WEB_DISPLAY_MODE_BROWSER",WEB_DISPLAY_MODE_MINIMAL_UI:"WEB_DISPLAY_MODE_MINIMAL_UI",WEB_DISPLAY_MODE_STANDALONE:"WEB_DISPLAY_MODE_STANDALONE",WEB_DISPLAY_MODE_FULLSCREEN:"WEB_DISPLAY_MODE_FULLSCREEN"};var niF;_.XL=function(){var d=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.KF.addEventListener("beforeinstallprompt",function(H){H.preventDefault();d.deferredInstallPrompt=H});
_.KF.addEventListener("appinstalled",function(){d.appInstalledEventFired=!0},{once:!0})};
niF=function(){if(!_.KF.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.KF.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.KF.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.KF.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.KF.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(d){return"WEB_DISPLAY_MODE_UNKNOWN"}};var hR4=function(){this.syncHeaders=!0},LZL=function(d){var H={},K=[];
"USER_SESSION_ID"in _.Jm&&K.push({key:"u",value:_.Fm("USER_SESSION_ID")});if(K=_.SIF(K))H.Authorization=K,K=d=d==null?void 0:d.sessionIndex,K===void 0&&(K=Number(_.Fm("SESSION_INDEX",0)),K=isNaN(K)?0:K),_.h("voice_search_auth_header_removal")||(H["X-Goog-AuthUser"]=K.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Jm||(H["X-Origin"]=window.location.origin),d===void 0&&"DELEGATED_SESSION_ID"in _.Jm&&(H["X-Goog-PageId"]=_.Fm("DELEGATED_SESSION_ID"));return H};var fzC={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var jJ=_.OS("ytglobal.prefsUserPrefsPrefs_")||{},Afg;_.vb("ytglobal.prefsUserPrefsPrefs_",jJ);_.vQ=function(){this.cookieName=_.Fm("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Fm("ALT_PREF_COOKIE_DOMAIN","youtube.com");var d=_.Vm.get(this.cookieName,void 0);d&&this.parse(d)};
_.Lo=function(){Afg||(Afg=new _.vQ);return Afg};
_.vQ.prototype.get=function(d,H){jJB(d);vrg(d);d=jJ[d]!==void 0?jJ[d].toString():null;return d!=null?d:H?H:""};
_.vQ.prototype.set=function(d,H){jJB(d);vrg(d);if(H==null)throw Error("Gc");jJ[d]=H.toString()};
_.vQ.prototype.getFlag=function(d){return!!((d8N("f"+(Math.floor(d/31)+1))||0)&1<<d%31)};
_.Mo=function(d,H,K){d="f"+(Math.floor(H/31)+1);H=1<<H%31;var c=d8N(d)||0;c=K?c|H:c&~H;c===0?delete jJ[d]:(K=c.toString(16),jJ[d]=K.toString())};
_.vQ.prototype.remove=function(d){jJB(d);vrg(d);delete jJ[d]};
_.vQ.prototype.save=function(){var d=!0;_.h("web_secure_pref_cookie_killswitch")&&(d=!1);_.Um(this.cookieName,this.dump(),63072E3,this.cookieDomain,d)};
_.vQ.prototype.clear=function(){_.rs.clear(jJ)};
_.vQ.prototype.dump=function(){var d=[],H;for(H in jJ)jJ.hasOwnProperty(H)&&d.push(H+"="+encodeURIComponent(String(jJ[H])));return d.join("&")};
var vrg=function(d){if(/^f([1-9][0-9]*)$/.test(d))throw Error("Hc`"+d);},jJB=function(d){if(!/^\w+$/.test(d))throw Error("Ic`"+d);
},d8N=function(d){d=jJ[d]!==void 0?jJ[d].toString():null;
return d!=null&&/^[A-Fa-f0-9]+$/.test(d)?parseInt(d,16):null};
_.vQ.prototype.parse=function(d){d=decodeURIComponent(d).split("&");for(var H=0;H<d.length;H++){var K=d[H].split("="),c=K[0];(K=K[1])&&(jJ[c]=K.toString())}};var aLi={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"},Vhl={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},UvY={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},ekF={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var ad;_.dp=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.mf=function(d,H,K){return d.addJob(H,0,K)};
_.dp.prototype.addLowPriorityJob=function(d,H){return this.addJob(d,1,H)};
_.rB=function(d,H,K){return d.addJob(H,2,K)};
_.mR=function(d,H,K){return d.addJob(H,3,K)};
_.lV=function(d,H,K){return d.addJob(H,4,K)};
ad=function(d){var H=_.OS("yt.scheduler.instance.addImmediateJob");H?H(d):d()};
_.dp.prototype.debounce=function(d,H,K){var c=this,p=0,g=function(){p&&c.cancelJob(p);p=c.addJob(d,H,K);c.cancelDebouncedJobMap.set(g,p)};
return g};
_.dp.prototype.cancelThrottle=function(d){(d=this.cancelThrottledJobMap.get(d))&&d()};var Hq=function(){_.dp.apply(this,arguments)};
_.m(Hq,_.dp);_.MO=function(){Hq.instance||(Hq.instance=new Hq);return Hq.instance};
Hq.prototype.addJob=function(d,H,K){K!==void 0&&Number.isNaN(Number(K))&&(K=void 0);var c=_.OS("yt.scheduler.instance.addJob");return c?c(d,H,K):K===void 0?(d(),NaN):_.a5(d,K||0)};
Hq.prototype.cancelJob=function(d){if(d===void 0||!Number.isNaN(Number(d))){var H=_.OS("yt.scheduler.instance.cancelJob");H?H(d):_.eb(d)}};
Hq.prototype.start=function(){var d=_.OS("yt.scheduler.instance.start");d&&d()};
Hq.prototype.pause=function(){var d=_.OS("yt.scheduler.instance.pause");d&&d()};
_.Xp=_.MO();_.wf.prototype.set=function(d,H){H===void 0?this.mechanism.remove(d):this.mechanism.set(d,(0,_.wN)(H))};
_.wf.prototype.get=function(d){try{var H=this.mechanism.get(d)}catch(K){return}if(H!==null)try{return JSON.parse(H)}catch(K){throw"Storage: Invalid value was encountered";}};
_.wf.prototype.remove=function(d){this.mechanism.remove(d)};var $F=function(d){this.mechanism=d};
_.K1($F,_.wf);var H5M=function(d){this.data=d},$8M=function(d){return d===void 0||d instanceof H5M?d:new H5M(d)};
$F.prototype.set=function(d,H){$F.superClass_.set.call(this,d,$8M(H))};
$F.prototype.getWrapper=function(d){d=$F.superClass_.get.call(this,d);if(d===void 0||d instanceof Object)return d;throw"Storage: Invalid value was encountered";};
$F.prototype.get=function(d){if(d=this.getWrapper(d)){if(d=d.data,d===void 0)throw"Storage: Invalid value was encountered";}else d=void 0;return d};_.K1(Pb,$F);_.KKX=function(d){var H=d.creation;d=d.expiration;return!!d&&d<_.$V()||!!H&&H>_.$V()};
Pb.prototype.set=function(d,H,K){if(H=$8M(H)){if(K){if(K<_.$V()){Pb.prototype.remove.call(this,d);return}H.expiration=K}H.creation=_.$V()}Pb.superClass_.set.call(this,d,H)};
Pb.prototype.getWrapper=function(d,H){var K=Pb.superClass_.getWrapper.call(this,d);if(K)if(!H&&_.KKX(K))Pb.prototype.remove.call(this,d);else return K};var Kb=function(){};
Kb.prototype.next=function(){return cq};
var cq={done:!0,value:void 0},pb=function(d){return{value:d,done:!1}};
Kb.prototype.__iterator__=function(){return this};
_.cwB=function(d){if(d instanceof Kb)return d;if(typeof d.__iterator__=="function")return d.__iterator__(!1);if(_.O5(d)){var H=0,K=new Kb;K.next=function(){for(;;){if(H>=d.length)return cq;if(H in d)return pb(d[H++]);H++}};
return K}throw Error("Jc");};var pV6=function(d){if(d instanceof gp||d instanceof iJ||d instanceof Gp)return d;if(typeof d.next=="function")return new gp(function(){return d});
if(typeof d[Symbol.iterator]=="function")return new gp(function(){return d[Symbol.iterator]()});
if(typeof d.__iterator__=="function")return new gp(function(){return d.__iterator__()});
throw Error("Kc");},gp=function(d){this.func_=d};
gp.prototype.__iterator__=function(){return new iJ(this.func_())};
gp.prototype[Symbol.iterator]=function(){return new Gp(this.func_())};
gp.prototype.toEs6=function(){return new Gp(this.func_())};
var iJ=function(d){this.JSC$10534_iter_=d};
_.m(iJ,Kb);iJ.prototype.next=function(){return this.JSC$10534_iter_.next()};
iJ.prototype[Symbol.iterator]=function(){return new Gp(this.JSC$10534_iter_)};
iJ.prototype.toEs6=function(){return new Gp(this.JSC$10534_iter_)};
var Gp=function(d){gp.call(this,function(){return d});
this.JSC$10537_iter_=d};
_.m(Gp,gp);Gp.prototype.next=function(){return this.JSC$10537_iter_.next()};var gl7=function(){};var oG=function(){};
_.K1(oG,gl7);oG.prototype.getCount=function(){for(var d=0,H=_.q(this),K=H.next();!K.done;K=H.next())d++;return d};
oG.prototype[Symbol.iterator]=function(){return pV6(this.__iterator__(!0)).toEs6()};
oG.prototype.clear=function(){var d=Array.from(this);d=_.q(d);for(var H=d.next();!H.done;H=d.next())this.remove(H.value)};_.K1(uT,oG);_.G=uT.prototype;_.G.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var d=this.storage_;if(d)try{d.setItem("__sak","1");d.removeItem("__sak");var H=!0}catch(K){H=K instanceof DOMException&&(K.name==="QuotaExceededError"||K.code===22||K.code===1014||K.name==="NS_ERROR_DOM_QUOTA_REACHED")&&d&&d.length!==0}else H=!1;this.cachedIsStorageAvailable_=H}return this.cachedIsStorageAvailable_};
_.G.set=function(d,H){qY(this);try{this.storage_.setItem(d,H)}catch(K){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.G.get=function(d){qY(this);d=this.storage_.getItem(d);if(typeof d!=="string"&&d!==null)throw"Storage mechanism: Invalid value was encountered";return d};
_.G.remove=function(d){qY(this);this.storage_.removeItem(d)};
_.G.getCount=function(){qY(this);return this.storage_.length};
_.G.__iterator__=function(d){qY(this);var H=0,K=this.storage_,c=new Kb;c.next=function(){if(H>=K.length)return cq;var p=K.key(H++);if(d)return pb(p);p=K.getItem(p);if(typeof p!=="string")throw"Storage mechanism: Invalid value was encountered";return pb(p)};
return c};
_.G.clear=function(){qY(this);this.storage_.clear()};
_.G.key=function(d){qY(this);return this.storage_.key(d)};
var qY=function(d){if(d.storage_==null)throw Error("Lc");d.isAvailable()||cF(Error("Lc"))};_.K1(xRi,uT);_.K1(nLC,uT);_.K1(I5,oG);I5.prototype.set=function(d,H){this.mechanism_.set(this.JSC$10552_prefix_+d,H)};
I5.prototype.get=function(d){return this.mechanism_.get(this.JSC$10552_prefix_+d)};
I5.prototype.remove=function(d){this.mechanism_.remove(this.JSC$10552_prefix_+d)};
I5.prototype.__iterator__=function(d){var H=this.mechanism_[Symbol.iterator](),K=this,c=new Kb;c.next=function(){var p=H.next();if(p.done)return p;for(p=p.value;p.slice(0,K.JSC$10552_prefix_.length)!=K.JSC$10552_prefix_;){p=H.next();if(p.done)return p;p=p.value}return pb(d?p.slice(K.JSC$10552_prefix_.length):K.mechanism_.get(p))};
return c};_.T1=function(d){this.expiringStorage_=(d=_.CZM(d))?new Pb(d):null;this.JSC$10556_domain_=document.domain||window.location.hostname};
_.T1.prototype.set=function(d,H,K,c){K=K||31104E3;this.remove(d);if(this.expiringStorage_)try{this.expiringStorage_.set(d,H,Date.now()+K*1E3);return}catch(g){}var p="";if(c)try{p=escape((0,_.wN)(H))}catch(g){return}else p=escape(H);_.Um(d,p,K,this.JSC$10556_domain_)};
_.T1.prototype.get=function(d,H){var K=void 0,c=!this.expiringStorage_;if(!c)try{K=this.expiringStorage_.get(d)}catch(p){c=!0}if(c&&(K=_.Vm.get(d,void 0))&&(K=unescape(K),H))try{K=JSON.parse(K)}catch(p){this.remove(d),K=void 0}return K};
_.T1.prototype.remove=function(d){this.expiringStorage_&&this.expiringStorage_.remove(d);_.GRE(d,"/",this.JSC$10556_domain_)};
_.T1.prototype.getCreationTime=function(d){return this.expiringStorage_&&(d=(this.expiringStorage_.getWrapper(d)||{}).creation,typeof d==="number")?d:null};var VGM=function(){var d;return function(){d||(d=new _.T1("ytidb"));return d}}();var hkY;_.Wb=[];hkY=!1;var Q6i=LEh||MGi;var aG={},i57=(aG.AUTH_INVALID="No user identifier specified.",aG.EXPLICIT_ABORT="Transaction was explicitly aborted.",aG.IDB_NOT_SUPPORTED="IndexedDB is not supported.",aG.MISSING_INDEX="Index not created.",aG.MISSING_OBJECT_STORES="Object stores not created.",aG.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",aG.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",aG.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",aG.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",aG.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",aG.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",aG.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",aG),lJ={},GN7=(lJ.AUTH_INVALID="ERROR",lJ.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",lJ.EXPLICIT_ABORT="IGNORED",
lJ.IDB_NOT_SUPPORTED="ERROR",lJ.MISSING_INDEX="WARNING",lJ.MISSING_OBJECT_STORES="ERROR",lJ.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",lJ.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",lJ.QUOTA_EXCEEDED="WARNING",lJ.QUOTA_MAYBE_EXCEEDED="WARNING",lJ.UNKNOWN_ABORT="WARNING",lJ.INCOMPATIBLE_DB_VERSION="WARNING",lJ),eq={},ol3=(eq.AUTH_INVALID=!1,eq.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,eq.EXPLICIT_ABORT=!1,eq.IDB_NOT_SUPPORTED=!1,eq.MISSING_INDEX=!1,eq.MISSING_OBJECT_STORES=!1,eq.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,eq.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,eq.QUOTA_EXCEEDED=!1,eq.QUOTA_MAYBE_EXCEEDED=!0,eq.UNKNOWN_ABORT=!0,eq.INCOMPATIBLE_DB_VERSION=!1,eq),FI=function(d,H,K,c,p){H=H===void 0?{}:H;K=K===void 0?i57[d]:K;c=c===void 0?GN7[d]:c;p=p===void 0?ol3[d]:p;_.m1.call(this,K,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:d},H));this.type=d;this.message=K;this.level=c;this.retryable=p;Object.setPrototypeOf(this,FI.prototype)};
_.m(FI,_.m1);var q_d=function(d,H){FI.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:H,foundObjectStores:d},i57.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,q_d.prototype)};
_.m(q_d,FI);var wW4=function(d,H){var K=Error.call(this);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.index=d;this.objectStore=H;Object.setPrototypeOf(this,wW4.prototype)};
_.m(wW4,Error);var PZM=["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"];var tX=function(d){this.executor=d},Qm=function(d){var H=this;
this.state={status:"PENDING"};this.JSC$10584_onFulfilled=[];this.JSC$10584_onRejected=[];d=d.executor;var K=function(p){if(H.state.status==="PENDING"){H.state={status:"FULFILLED",value:p};p=_.q(H.JSC$10584_onFulfilled);for(var g=p.next();!g.done;g=p.next())g=g.value,g()}},c=function(p){if(H.state.status==="PENDING"){H.state={status:"REJECTED",
reason:p};p=_.q(H.JSC$10584_onRejected);for(var g=p.next();!g.done;g=p.next())g=g.value,g()}};
try{d(K,c)}catch(p){c(p)}};
Qm.all=function(d){return new Qm(new tX(function(H,K){var c=[],p=d.length;p===0&&H(c);for(var g={i$jscomp$463:0};g.i$jscomp$463<d.length;g={i$jscomp$463:g.i$jscomp$463},++g.i$jscomp$463)Qm.resolve(d[g.i$jscomp$463]).then(function(a){return function(e){c[a.i$jscomp$463]=e;p--;p===0&&H(c)}}(g)).catch(function(a){K(a)})}))};
Qm.resolve=function(d){return new Qm(new tX(function(H,K){d instanceof Qm?d.then(H,K):H(d)}))};
Qm.reject=function(d){return new Qm(new tX(function(H,K){K(d)}))};
Qm.prototype.then=function(d,H){var K=this,c=d!=null?d:rFF,p=H!=null?H:ILf;return new Qm(new tX(function(g,a){K.state.status==="PENDING"?(K.JSC$10584_onFulfilled.push(function(){aQg(K,K,c,g,a)}),K.JSC$10584_onRejected.push(function(){lQ7(K,K,p,g,a)})):K.state.status==="FULFILLED"?aQg(K,K,c,g,a):K.state.status==="REJECTED"&&lQ7(K,K,p,g,a)}))};
Qm.prototype.catch=function(d){return this.then(void 0,d)};
var aQg=function(d,H,K,c,p){try{if(d.state.status!=="FULFILLED")throw Error("Oc");var g=K(d.state.value);g instanceof Qm?eYU(d,H,g,c,p):c(g)}catch(a){p(a)}},lQ7=function(d,H,K,c,p){try{if(d.state.status!=="REJECTED")throw Error("Pc");
var g=K(d.state.reason);g instanceof Qm?eYU(d,H,g,c,p):c(g)}catch(a){p(a)}},eYU=function(d,H,K,c,p){H===K?p(new TypeError("Qc")):K.then(function(g){g instanceof Qm?eYU(d,H,g,c,p):c(g)},function(g){p(g)})};var kF;kF=window;_.$G=kF.ytcsi&&kF.ytcsi.now?kF.ytcsi.now:kF.performance&&kF.performance.timing&&kF.performance.now&&kF.performance.timing.navigationStart?function(){return kF.performance.timing.navigationStart+kF.performance.now()}:function(){return(new Date).getTime()};var Om=function(d,H){this.JSC$10596_wrapped=d;this.options=H;this.transactionCount=0;this.startedMs=Math.round((0,_.$G)());this.hasUnknownAbortedTransaction=!1},xF=function(){return _.h("idb_immediate_commit")},nl0,CC6,RG,U8B;
Om.prototype.add=function(d,H,K){return _.NQ(this,[d],{mode:"readwrite",enableRetries:!0,commit:xF()},function(c){return c.objectStore(d).add(H,K)})};
Om.prototype.clear=function(d){return _.NQ(this,[d],{mode:"readwrite",enableRetries:!0},function(H){return H.objectStore(d).clear()})};
Om.prototype.close=function(){this.JSC$10596_wrapped.close();var d;((d=this.options)==null?0:d.closed)&&this.options.closed()};
Om.prototype.count=function(d,H){return _.NQ(this,[d],{mode:"readonly",enableRetries:!0,commit:xF()},function(K){return K.objectStore(d).count(H)})};
var t5=function(d,H,K){d=d.JSC$10596_wrapped.createObjectStore(H,K);return new nb(d)};
Om.prototype.delete=function(d,H){return _.NQ(this,[d],{mode:"readwrite",enableRetries:!0,commit:xF()&&!(H instanceof IDBKeyRange)},function(K){return K.objectStore(d).delete(H)})};
var kNl=function(d,H){return _.NQ(d,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(K){return K.objectStore("ResponseStore").index("byInterface").delete(H)})};
Om.prototype.get=function(d,H){return _.NQ(this,[d],{mode:"readonly",enableRetries:!0,commit:xF()},function(K){return K.objectStore(d).get(H)})};
Om.prototype.getAll=function(d,H,K){return _.NQ(this,[d],{mode:"readonly",enableRetries:!0},function(c){return c.objectStore(d).getAll(H,K)})};
Om.prototype.put=function(d,H,K){return _.NQ(this,[d],{mode:"readwrite",enableRetries:!0,commit:xF()},function(c){return c.objectStore(d).put(H,K)})};
Om.prototype.objectStoreNames=function(){return Array.from(this.JSC$10596_wrapped.objectStoreNames)};
_.NQ=function(d,H,K,c){var p,g,a,e,k,C,R,V,U,L,w,W;return _.l(function(J){switch(J.nextAddress){case 1:var F={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof K==="string"?F.mode=K:Object.assign(F,K);p=F;d.transactionCount++;g=p.enableRetries?3:1;a=0;case 2:if(e){J.jumpTo(4);break}a++;k=Math.round((0,_.$G)());_.e2(J,5);C=d.JSC$10596_wrapped.transaction(H,p.mode);F=J.yield;var Y=!!p.commit;var A=new Sb(C);Y=x8l(A,c,Y);return F.call(J,Y,7);case 7:return R=J.yieldResult,V=Math.round((0,_.$G)()),
nl0(d,k,V,a,void 0,H.join(),p),J.return(R);case 5:U=_.RV(J);L=Math.round((0,_.$G)());w=uvX(U,d.JSC$10596_wrapped.name,H.join(),d.JSC$10596_wrapped.version);if((W=w instanceof FI&&!w.retryable)||a>=g)nl0(d,k,L,a,w,H.join(),p),e=w;J.jumpTo(2);break;case 4:return J.return(Promise.reject(e))}})};
nl0=function(d,H,K,c,p,g,a){H=K-H;p?(p instanceof FI&&(p.type==="QUOTA_EXCEEDED"||p.type==="QUOTA_MAYBE_EXCEEDED")&&zJ("QUOTA_EXCEEDED",{dbName:JX(d.JSC$10596_wrapped.name),objectStoreNames:g,transactionCount:d.transactionCount,transactionMode:a.mode}),p instanceof FI&&p.type==="UNKNOWN_ABORT"&&(K-=d.startedMs,K<0&&K>=2147483648&&(K=0),zJ("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:g,transactionDuration:H,transactionCount:d.transactionCount,dbDuration:K}),d.hasUnknownAbortedTransaction=!0),
CC6(d,!1,c,g,H,a.tag),_.Bb(p)):CC6(d,!0,c,g,H,a.tag)};
CC6=function(d,H,K,c,p,g){zJ("TRANSACTION_ENDED",{objectStoreNames:c,connectionHasUnknownAbortedTransaction:d.hasUnknownAbortedTransaction,duration:p,isSuccessful:H,tryCount:K,tag:g===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":g})};
Om.prototype.getVersion=function(){return this.JSC$10596_wrapped.version};
Om.prototype.getName=function(){return this.JSC$10596_wrapped.name};
var nb=function(d){this.JSC$10611_wrapped=d};
nb.prototype.add=function(d,H){return Yp(this.JSC$10611_wrapped.add(d,H))};
nb.prototype.autoIncrement=function(){return this.JSC$10611_wrapped.autoIncrement};
nb.prototype.clear=function(){return Yp(this.JSC$10611_wrapped.clear()).then(function(){})};
var YG=function(d,H,K){d.JSC$10611_wrapped.createIndex(H,K,{unique:!1})};
nb.prototype.count=function(d){return Yp(this.JSC$10611_wrapped.count(d))};
var RY3=function(d,H){return fj(d,{query:H},function(K){return K.delete().then(function(){return K.continue()})}).then(function(){})};
nb.prototype.delete=function(d){return d instanceof IDBKeyRange?RY3(this,d):Yp(this.JSC$10611_wrapped.delete(d))};
nb.prototype.get=function(d){return Yp(this.JSC$10611_wrapped.get(d))};
nb.prototype.getAll=function(d,H){return"getAll"in IDBObjectStore.prototype?Yp(this.JSC$10611_wrapped.getAll(d,H)):V1S(this,d,H)};
var V1S=function(d,H,K){var c=[];return fj(d,{query:H},function(p){if(!(K!==void 0&&c.length>=K))return c.push(p.getValue()),p.continue()}).then(function(){return c})};
nb.prototype.index=function(d){try{return new Cb(this.JSC$10611_wrapped.index(d))}catch(H){if(H instanceof Error&&H.name==="NotFoundError")throw new wW4(d,this.JSC$10611_wrapped.name);throw H;}};
nb.prototype.getName=function(){return this.JSC$10611_wrapped.name};
nb.prototype.keyPath=function(){return this.JSC$10611_wrapped.keyPath};
nb.prototype.put=function(d,H){return Yp(this.JSC$10611_wrapped.put(d,H))};
var fj=function(d,H,K){d=d.JSC$10611_wrapped.openCursor(H.query,H.direction);return U8B(d).then(function(c){return zkl(c,K)})},Sb=function(d){var H=this;
this.JSC$10619_wrapped=d;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(K,c){H.JSC$10619_wrapped.addEventListener("complete",function(){K()});
H.JSC$10619_wrapped.addEventListener("error",function(p){p.currentTarget===p.target&&c(H.JSC$10619_wrapped.error)});
H.JSC$10619_wrapped.addEventListener("abort",function(){var p=H.JSC$10619_wrapped.error;if(p)c(p);else if(!H.aborted){p=FI;for(var g=H.JSC$10619_wrapped.objectStoreNames,a=[],e=0;e<g.length;e++){var k=g.item(e);if(k===null)throw Error("Rc");a.push(k)}p=new p("UNKNOWN_ABORT",{objectStoreNames:a.join(),dbName:H.JSC$10619_wrapped.db.name,mode:H.JSC$10619_wrapped.mode});c(p)}})})},x8l=function(d,H,K){var c=new Promise(function(p,g){try{var a=H(d);
K&&d.commit();a.then(function(e){p(e)}).catch(g)}catch(e){g(e),d.abort()}});
return Promise.all([c,d.done]).then(function(p){return _.q(p).next().value})};
Sb.prototype.abort=function(){this.JSC$10619_wrapped.abort();this.aborted=!0;throw new FI("EXPLICIT_ABORT");};
Sb.prototype.commit=function(){if(!this.aborted){var d,H;(H=(d=this.JSC$10619_wrapped).commit)==null||H.call(d)}};
Sb.prototype.objectStore=function(d){d=this.JSC$10619_wrapped.objectStore(d);var H=this.objectStoreCache.get(d);H||(H=new nb(d),this.objectStoreCache.set(d,H));return H};
var Cb=function(d){this.JSC$10621_wrapped=d};
Cb.prototype.count=function(d){return Yp(this.JSC$10621_wrapped.count(d))};
Cb.prototype.delete=function(d){return _.K4(this,{query:d},function(H){return H.delete().then(function(){return H.continue()})})};
Cb.prototype.get=function(d){return Yp(this.JSC$10621_wrapped.get(d))};
Cb.prototype.getAll=function(d,H){return"getAll"in IDBIndex.prototype?Yp(this.JSC$10621_wrapped.getAll(d,H)):hYB(this,d,H)};
var hYB=function(d,H,K){var c=[];return _.K4(d,{query:H},function(p){if(!(K!==void 0&&c.length>=K))return c.push(p.getValue()),p.continue()}).then(function(){return c})};
Cb.prototype.keyPath=function(){return this.JSC$10621_wrapped.keyPath};
Cb.prototype.unique=function(){return this.JSC$10621_wrapped.unique};
_.K4=function(d,H,K){d=d.JSC$10621_wrapped.openCursor(H.query===void 0?null:H.query,H.direction===void 0?"next":H.direction);return U8B(d).then(function(c){return zkl(c,K)})};
RG=function(d,H){this.request=d;this.cursor=H};
U8B=function(d){return Yp(d).then(function(H){return H?new RG(d,H):null})};
RG.prototype.continue=function(d){this.cursor.continue(d);return U8B(this.request)};
RG.prototype.delete=function(){return Yp(this.cursor.delete()).then(function(){})};
RG.prototype.getValue=function(){return this.cursor.value};
RG.prototype.update=function(d){return Yp(this.cursor.update(d))};var VT=function(d,H){this.name=d;this.options=H;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},LKS;
VT.prototype.openDb=function(d,H,K){K=K===void 0?{}:K;return JFF(d,H,K)};
VT.prototype.delete=function(d){d=d===void 0?{}:d;return _.ym(this.name,d)};
LKS=function(d,H){return new FI("INCOMPATIBLE_DB_VERSION",{dbName:d.name,oldVersion:d.options.version,newVersion:H})};
_.bT=function(d,H){if(!H)throw TJ("openWithToken",JX(d.name));return d.open()};
VT.prototype.open=function(){var d=this;if(!this.isCompatible)throw LKS(this);if(this.connectionPromise)return this.connectionPromise;var H,K=function(){d.connectionPromise===H&&(d.connectionPromise=void 0)},c={blocking:function(g){g.close()},
closed:K,terminated:K,upgrade:this.options.upgrade},p=function(){var g,a,e,k,C,R,V,U,L,w;return _.l(function(W){switch(W.nextAddress){case 1:return a=(g=Error().stack)!=null?g:"",_.e2(W,2),W.yield(d.openDb(d.name,d.options.version,c),4);case 4:for(var J=e=W.yieldResult,F=d.options,Y=[],A=_.q(Object.keys(F.objectStores)),E=A.next();!E.done;E=A.next()){E=E.value;var N=F.objectStores[E],y=N.removedAtVersion===void 0?Number.MAX_VALUE:N.removedAtVersion;!(J.JSC$10596_wrapped.version>=N.addedAtVersion)||
J.JSC$10596_wrapped.version>=y||J.JSC$10596_wrapped.objectStoreNames.contains(E)||Y.push(E)}k=Y;if(k.length===0){W.jumpTo(5);break}C=Object.keys(d.options.objectStores);R=e.objectStoreNames();if(d.timesReopenedToFixMissingObjectStore<_.iT("ytidb_reopen_db_retries",0))return d.timesReopenedToFixMissingObjectStore++,e.close(),_.Bb(new FI("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:d.name,expectedObjectStores:C,foundObjectStores:R})),W.return(p());if(!(d.timesDeletedToFixMissingObjectStore<_.iT("ytidb_remake_db_retries",
1))){W.jumpTo(6);break}d.timesDeletedToFixMissingObjectStore++;return W.yield(d.delete(),7);case 7:return _.Bb(new FI("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:d.name,expectedObjectStores:C,foundObjectStores:R})),W.return(p());case 6:throw new q_d(R,C);case 5:return W.return(e);case 2:V=_.RV(W);if(V instanceof DOMException?V.name!=="VersionError":"DOMError"in self&&V instanceof DOMError?V.name!=="VersionError":!(V instanceof Object&&"message"in V)||V.message!=="An attempt was made to open a database using a lower version than the existing version."){W.jumpTo(8);
break}return W.yield(d.openDb(d.name,void 0,Object.assign({},c,{upgrade:void 0})),9);case 9:U=W.yieldResult;L=U.getVersion();if(d.options.version!==void 0&&L>d.options.version+1)throw U.close(),d.isCompatible=!1,LKS(d,L);return W.return(U);case 8:throw K(),V instanceof Error&&!_.h("ytidb_async_stack_killswitch")&&(V.stack=V.stack+"\n"+a.substring(a.indexOf("\n")+1)),uvX(V,d.name,"",(w=d.options.version)!=null?w:-1);}})};
return this.connectionPromise=H=p()};var s6Y=new VT("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(d,H){H(1)&&t5(d,"databases",{keyPath:"actualName"})}});var OH5,tGF=new function(){}(new function(){});new _.ki;var M13=function(d,H){VT.call(this,d,H);this.options=H;XI(d)};
_.m(M13,VT);var vLi=function(d,H){var K;return function(){K||(K=new M13(d,H));return K}};
M13.prototype.openDb=function(d,H,K){K=K===void 0?{}:K;return(this.options.shared?N0i:bHC)(d,H,Object.assign({},K))};
M13.prototype.delete=function(d){d=d===void 0?{}:d;return(this.options.shared?j61:DRF)(this.name,d)};var m8X={},dvf=HM("ytGcfConfig",{objectStores:(m8X.coldConfigStore={addedAtVersion:1},m8X.hotConfigStore={addedAtVersion:1},m8X),shared:!1,upgrade:function(d,H){H(1)&&(YG(t5(d,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),YG(t5(d,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var wVB=function(){_.h_.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var d=_.OS("yt.gcf.config.hotUpdateCallbacks");d?(this.localHotConfigJobQueue=[].concat(_.ru(d)),this.sharedHotConfigJobQueue=d):(this.sharedHotConfigJobQueue=[],_.vb("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.m(wVB,_.h_);wVB.prototype.disposeInternal=function(){for(var d=_.q(this.localHotConfigJobQueue),H=d.next();!H.done;H=d.next()){var K=this.sharedHotConfigJobQueue;H=K.indexOf(H.value);H>=0&&K.splice(H,1)}this.localHotConfigJobQueue.length=0;_.h_.prototype.disposeInternal.call(this)};var wz=function(){var d=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new wVB;this.TEST_ONLY={initializeConfigDb:function(){d.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return d.coldGlobalConfigGroup},
setHotConfigGroup:function(H){PCd(d,H)},
setHotHashData:function(H){d.setHotHashData(H)},
setColdConfigGroup:function(H){uxC(d,H)},
getColdHashData:function(){return d.coldHashData},
getHotHashData:function(){return d.hotHashData},
getHotConfigGroup:function(){return d.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return IQ0()},
getExportedHotConfigGroup:function(){return U4()},
getExportedColdHashData:function(){return _.OS("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.OS("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){rwC(d)},
resetInstance:function(){d.setHotHashData(void 0);WK3(d);delete wz.instance},
setDebounceTimer:function(H){d.debounceTimer=H},
getDebounceTimer:function(){return d.debounceTimer}}},BQ3=function(){if(!wz.instance){var d=new wz;
wz.instance=d}return wz.instance},JwU=function(d){var H;
_.l(function(K){if(K.nextAddress==1)return _.h("start_client_gcf")||_.h("delete_gcf_config_db")?_.h("start_client_gcf")?K.yield(_.dF(),3):K.jumpTo(2):K.return();K.nextAddress!=2&&((H=K.yieldResult)&&_.MQ()&&!_.h("delete_gcf_config_db")?(d.isConfigDbInitialized=!0,rwC(d)):(zYN(d),XV0(d)));return _.h("delete_gcf_config_db")?K.yield(giF(),0):K.jumpTo(0)})},Pd=function(){var d;
return(d=U4())!=null?d:_.Fm("RAW_HOT_CONFIG_GROUP")},s$d=function(d){var H,K,c,p,g,a;
return _.l(function(e){switch(e.nextAddress){case 1:if(d.hotGlobalConfigGroup)return e.return(U4());if(!d.isConfigDbInitialized)return H=TJ("getHotConfig IDB not initialized"),_.SD(H),e.return(Promise.reject(H));K=jb();c=_.Fm("TIME_CREATED_MS");if(!K){p=TJ("getHotConfig token error");_.SD(p);e.jumpTo(2);break}return e.yield(p55(K),3);case 3:if((g=e.yieldResult)&&g.timestamp>c)return PCd(d,g.config),d.setHotHashData(g.hashData),e.return(U4());case 2:XV0(d);if(!(K&&d.hotGlobalConfigGroup&&d.hotHashData)){e.jumpTo(4);
break}return e.yield($vD(d.hotGlobalConfigGroup,d.hotHashData,K,c),4);case 4:return d.hotGlobalConfigGroup?e.return(U4()):(a=new _.m1("Config not available in ytConfig"),_.SD(a),e.return(Promise.reject(a)))}})},Z5C=function(d){var H,K,c,p,g,a;
return _.l(function(e){switch(e.nextAddress){case 1:if(d.coldGlobalConfigGroup)return e.return(IQ0());if(!d.isConfigDbInitialized)return H=TJ("getColdConfig IDB not initialized"),_.SD(H),e.return(Promise.reject(H));K=jb();c=_.Fm("TIME_CREATED_MS");if(!K){p=TJ("getColdConfig");_.SD(p);e.jumpTo(2);break}return e.yield(ccF(K),3);case 3:if((g=e.yieldResult)&&g.timestamp>c)return uxC(d,g.config),FKC(d,g.configData),WK3(d,g.hashData),e.return(IQ0());case 2:zYN(d);if(!(K&&d.coldGlobalConfigGroup&&d.coldHashData&&
d.configData)){e.jumpTo(4);break}return e.yield(KZ5(d.coldGlobalConfigGroup,d.coldHashData,d.configData,K,c),4);case 4:return d.coldGlobalConfigGroup?e.return(IQ0()):(a=new _.m1("Config not available in ytConfig"),_.SD(a),e.return(Promise.reject(a)))}})},rwC=function(d){if(!d.hotGlobalConfigGroup||!d.coldGlobalConfigGroup){if(!jb()){var H=TJ("scheduleGetConfigs");
_.SD(H)}d.initJob||(d.initJob=_.Xp.addLowPriorityJob(function(){return _.l(function(K){switch(K.nextAddress){case 1:return _.e2(K,2),K.yield(s$d(d),4);case 4:_.Em(K,3);break;case 2:_.RV(K);case 3:return _.e2(K,5),K.yield(Z5C(d),7);case 7:_.Em(K,6);break;case 5:_.RV(K);case 6:d.initJob&&(d.initJob=0),_.VE(K)}})},100))}},$VX=function(d,H,K){var c,p,g;
return _.l(function(a){switch(a.nextAddress){case 1:if(!_.h("start_client_gcf")){a.jumpTo(0);break}K&&PCd(d,K);d.setHotHashData(H);c=jb();if(!c){a.jumpTo(3);break}if(K){a.jumpTo(4);break}return a.yield(p55(c),5);case 5:p=a.yieldResult,K=(g=p)==null?void 0:g.config;case 4:return a.yield($vD(K,H,c),3);case 3:if(K)for(var e=K,k=_.q(d.configUpdateService.sharedHotConfigJobQueue),C=k.next();!C.done;C=k.next())C=C.value,C(e);_.VE(a)}})},KRE=function(d,H,K){var c,p,g,a;
return _.l(function(e){if(e.nextAddress==1){if(!_.h("start_client_gcf"))return e.jumpTo(0);WK3(d,H);return(c=jb())?K?e.jumpTo(4):e.yield(ccF(c),5):e.jumpTo(0)}e.nextAddress!=4&&(p=e.yieldResult,K=(g=p)==null?void 0:g.config);if(!K)return e.jumpTo(0);a=K.configData;return e.yield(KZ5(K,H,a,c),0)})},mv4=function(){var d=BQ3(),H=(0,_.$G)()-d.debounceTimer;
if(!(d.debounceTimer!==0&&H<_.iT("send_config_hash_timer"))){H=_.OS("yt.gcf.config.coldConfigData");var K=_.OS("yt.gcf.config.hotHashData"),c=_.OS("yt.gcf.config.coldHashData");H&&K&&c&&(d.debounceTimer=(0,_.$G)());return{coldConfigData:H,hotHashData:K,coldHashData:c}}},zYN=function(d){uxC(d,_.Fm("RAW_COLD_CONFIG_GROUP"));
WK3(d,_.Fm("SERIALIZED_COLD_HASH_DATA"));var H;FKC(d,(H=d.coldGlobalConfigGroup)==null?void 0:H.configData)},XV0=function(d){PCd(d,_.Fm("RAW_HOT_CONFIG_GROUP"));
d.setHotHashData(_.Fm("SERIALIZED_HOT_HASH_DATA"))},PCd=function(d,H){d.hotGlobalConfigGroup=H;
_.vb("yt.gcf.config.hotConfigGroup",d.hotGlobalConfigGroup||null)},uxC=function(d,H){d.coldGlobalConfigGroup=H;
_.vb("yt.gcf.config.coldConfigGroup",d.coldGlobalConfigGroup||null)};
wz.prototype.setHotHashData=function(d){this.hotHashData=d;_.vb("yt.gcf.config.hotHashData",this.hotHashData||null)};
var WK3=function(d,H){d.coldHashData=H;_.vb("yt.gcf.config.coldHashData",d.coldHashData||null)},FKC=function(d,H){d.configData=H;
_.vb("yt.gcf.config.coldConfigData",d.configData||null)},U4=function(){return _.OS("yt.gcf.config.hotConfigGroup")},IQ0=function(){return _.OS("yt.gcf.config.coldConfigGroup")};var xG={},TQ6=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";xG.assign=function(d){for(var H=Array.prototype.slice.call(arguments,1);H.length;){var K=H.shift();if(K){if(typeof K!=="object")throw new TypeError("Uc`"+K);for(var c in K)Object.prototype.hasOwnProperty.call(K,c)&&(d[c]=K[c])}}return d};
xG.shrinkBuf=function(d,H){if(d.length===H)return d;if(d.subarray)return d.subarray(0,H);d.length=H;return d};
var Q$d={arraySet:function(d,H,K,c,p){if(H.subarray&&d.subarray)d.set(H.subarray(K,K+c),p);else for(var g=0;g<c;g++)d[p+g]=H[K+g]},
flattenChunks:function(d){var H,K;var c=K=0;for(H=d.length;c<H;c++)K+=d[c].length;var p=new Uint8Array(K);c=K=0;for(H=d.length;c<H;c++){var g=d[c];p.set(g,K);K+=g.length}return p}},t1S={arraySet:function(d,H,K,c,p){for(var g=0;g<c;g++)d[p+g]=H[K+g]},
flattenChunks:function(d){return[].concat.apply([],d)}};
xG.setTyped=function(){TQ6?(xG.Buf8=Uint8Array,xG.Buf16=Uint16Array,xG.Buf32=Int32Array,xG.assign(xG,Q$d)):(xG.Buf8=Array,xG.Buf16=Array,xG.Buf32=Array,xG.assign(xG,t1S))};
xG.setTyped();var Y_A=!0;try{new Uint8Array(1)}catch(d){Y_A=!1}
var pjF=function(d){var H,K,c=d.length,p=0;for(H=0;H<c;H++){var g=d.charCodeAt(H);if((g&64512)===55296&&H+1<c){var a=d.charCodeAt(H+1);(a&64512)===56320&&(g=65536+(g-55296<<10)+(a-56320),H++)}p+=g<128?1:g<2048?2:g<65536?3:4}var e=new xG.Buf8(p);for(H=K=0;K<p;H++)g=d.charCodeAt(H),(g&64512)===55296&&H+1<c&&(a=d.charCodeAt(H+1),(a&64512)===56320&&(g=65536+(g-55296<<10)+(a-56320),H++)),g<128?e[K++]=g:(g<2048?e[K++]=192|g>>>6:(g<65536?e[K++]=224|g>>>12:(e[K++]=240|g>>>18,e[K++]=128|g>>>12&63),e[K++]=
128|g>>>6&63),e[K++]=128|g&63);return e};var ycY={};ycY=function(d,H,K,c){var p=d&65535|0;d=d>>>16&65535|0;for(var g;K!==0;){g=K>2E3?2E3:K;K-=g;do p=p+H[c++]|0,d=d+p|0;while(--g);p%=65521;d%=65521}return p|d<<16|0};for(var Iv={},h4,O5X=[],S_B=0;S_B<256;S_B++){h4=S_B;for(var ElN=0;ElN<8;ElN++)h4=h4&1?3988292384^h4>>>1:h4>>>1;O5X[S_B]=h4}Iv=function(d,H,K,c){K=c+K;for(d^=-1;c<K;c++)d=d>>>8^O5X[(d^H[c])&255];return d^-1};var VQ={};VQ={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 JcL=[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],FZD=[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],cBf=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],SbD=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ml=Array(576);av(Ml);var mw=Array(60);av(mw);var C4=Array(512);av(C4);var n4=Array(256);av(n4);var s3F=Array(29);av(s3F);var ZmM=Array(30);av(ZmM);var HKC,$rX,KJ1,drX=!1;var z1;
z1=[new BM(0,0,0,0,function(d,H){var K=65535;for(K>d.pending_buf_size-5&&(K=d.pending_buf_size-5);;){if(d.lookahead<=1){rF(d);if(d.lookahead===0&&H===0)return 1;if(d.lookahead===0)break}d.strstart+=d.lookahead;d.lookahead=0;var c=d.block_start+K;if(d.strstart===0||d.strstart>=c)if(d.lookahead=d.strstart-c,d.strstart=c,wF(d,!1),d.strm.avail_out===0)return 1;if(d.strstart-d.block_start>=d.w_size-262&&(wF(d,!1),d.strm.avail_out===0))return 1}d.insert=0;if(H===4)return wF(d,!0),d.strm.avail_out===0?3:
4;d.strstart>d.block_start&&wF(d,!1);return 1}),
new BM(4,4,8,4,bmM),new BM(4,5,16,8,bmM),new BM(4,6,32,32,bmM),new BM(4,4,16,16,WM),new BM(8,16,32,32,WM),new BM(8,16,128,128,WM),new BM(8,32,128,256,WM),new BM(32,128,258,1024,WM),new BM(32,258,258,4096,WM)];var vih={};vih=function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0};var gfF=Object.prototype.toString;
j3h.prototype.push=function(d,H){var K=this.strm,c=this.options.chunkSize;if(this.ended)return!1;var p=H===~~H?H:H===!0?4:0;typeof d==="string"?K.input=pjF(d):gfF.call(d)==="[object ArrayBuffer]"?K.input=new Uint8Array(d):K.input=d;K.next_in=0;K.avail_in=K.input.length;do{K.avail_out===0&&(K.output=new xG.Buf8(c),K.next_out=0,K.avail_out=c);d=AcF(K,p);if(d!==1&&d!==0)return ywg(this,d),this.ended=!0,!1;if(K.avail_out===0||K.avail_in===0&&(p===4||p===2))if(this.options.to==="string"){var g=xG.shrinkBuf(K.output,
K.next_out);H=g;g=g.length;if(g<65537&&(H.subarray&&Y_A||!H.subarray))H=String.fromCharCode.apply(null,xG.shrinkBuf(H,g));else{for(var a="",e=0;e<g;e++)a+=String.fromCharCode(H[e]);H=a}this.chunks.push(H)}else H=xG.shrinkBuf(K.output,K.next_out),this.chunks.push(H)}while((K.avail_in>0||K.avail_out===0)&&d!==1);if(p===4)return(K=this.strm)&&K.state?(c=K.state.status,c!==42&&c!==69&&c!==73&&c!==91&&c!==103&&c!==113&&c!==666?d=UX(K,-2):(K.state=null,d=c===113?UX(K,-3):0)):d=-2,ywg(this,d),this.ended=
!0,d===0;p===2&&(ywg(this,0),K.avail_out=0);return!0};
var ywg=function(d,H){H===0&&(d.result=d.options.to==="string"?d.chunks.join(""):xG.flattenChunks(d.chunks));d.chunks=[];d.err=H;d.msg=d.strm.msg};var b5X=typeof TextEncoder!=="undefined"?new TextEncoder:null,s1h=b5X?function(d){return b5X.encode(d)}:function(d){d=_.U8(d);
for(var H=new Uint8Array(d.length),K=0;K<H.length;K++)H[K]=d[K];return H};var xAC={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},ChD={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Lb=function(d,H){this.version=d;this.args=H};
Lb.prototype.serialize=function(){return{version:this.version,args:this.args}};var aVX=function(d,H){this.topic=d;this.dataClass=H};
aVX.prototype.toString=function(){return this.topic};var NQN=_.OS("ytPubsub2Pubsub2Instance")||new _.Cj;_.Cj.prototype.subscribe=_.Cj.prototype.subscribe;_.Cj.prototype.unsubscribeByKey=_.Cj.prototype.unsubscribeByKey;_.Cj.prototype.publish=_.Cj.prototype.publish;_.Cj.prototype.clear=_.Cj.prototype.clear;_.vb("ytPubsub2Pubsub2Instance",NQN);var qI5=_.OS("ytPubsub2Pubsub2SubscribedKeys")||{};_.vb("ytPubsub2Pubsub2SubscribedKeys",qI5);var eZF=_.OS("ytPubsub2Pubsub2TopicToKeys")||{};_.vb("ytPubsub2Pubsub2TopicToKeys",eZF);
var lV5=_.OS("ytPubsub2Pubsub2IsAsync")||{};_.vb("ytPubsub2Pubsub2IsAsync",lV5);_.vb("ytPubsub2Pubsub2SkipSubKey",null);var MOf=void 0,hZh=void 0;var B4l=_.iT("max_body_size_to_compress",5E5),zZ4=_.iT("min_body_size_to_compress",500),sX=!0,T4Y=0,Fp=0,ZKF=_.iT("compression_performance_threshold_lr",250),Q15=_.iT("slow_compressions_before_abandon_count",4),PsX=!1,uQM=new Map,JBF=1,Xj1=!0;_.K1(Z7,OKF);Z7.prototype.reset=function(){this.chain_[0]=1732584193;this.chain_[1]=4023233417;this.chain_[2]=2562383102;this.chain_[3]=271733878;this.chain_[4]=3285377520;this.total_=this.inbuf_=0};
var D8d=function(d,H,K){K||(K=0);var c=d.W_;if(typeof H==="string")for(var p=0;p<16;p++)c[p]=H.charCodeAt(K)<<24|H.charCodeAt(K+1)<<16|H.charCodeAt(K+2)<<8|H.charCodeAt(K+3),K+=4;else for(p=0;p<16;p++)c[p]=H[K]<<24|H[K+1]<<16|H[K+2]<<8|H[K+3],K+=4;for(H=16;H<80;H++)K=c[H-3]^c[H-8]^c[H-14]^c[H-16],c[H]=(K<<1|K>>>31)&4294967295;H=d.chain_[0];K=d.chain_[1];p=d.chain_[2];for(var g=d.chain_[3],a=d.chain_[4],e,k,C=0;C<80;C++)C<40?C<20?(e=g^K&(p^g),k=1518500249):(e=K^p^g,k=1859775393):C<60?(e=K&p|g&(K|p),
k=2400959708):(e=K^p^g,k=3395469782),e=(H<<5|H>>>27)+e+a+k+c[C]&4294967295,a=g,g=p,p=(K<<30|K>>>2)&4294967295,K=H,H=e;d.chain_[0]=d.chain_[0]+H&4294967295;d.chain_[1]=d.chain_[1]+K&4294967295;d.chain_[2]=d.chain_[2]+p&4294967295;d.chain_[3]=d.chain_[3]+g&4294967295;d.chain_[4]=d.chain_[4]+a&4294967295};
Z7.prototype.update=function(d,H){if(d!=null){H===void 0&&(H=d.length);for(var K=H-this.blockSize,c=0,p=this.buf_,g=this.inbuf_;c<H;){if(g==0)for(;c<=K;)D8d(this,d,c),c+=this.blockSize;if(typeof d==="string")for(;c<H;){if(p[g]=d.charCodeAt(c),++g,++c,g==this.blockSize){D8d(this,p);g=0;break}}else for(;c<H;)if(p[g]=d[c],++g,++c,g==this.blockSize){D8d(this,p);g=0;break}}this.inbuf_=g;this.total_+=H}};
Z7.prototype.digest=function(){var d=[],H=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var K=this.blockSize-1;K>=56;K--)this.buf_[K]=H&255,H/=256;D8d(this,this.buf_);for(K=H=0;K<5;K++)for(var c=24;c>=0;c-=8)d[H]=this.chain_[K]>>c&255,++H;return d};var yB4;var ma=function(d){var H=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(R){H.databaseToken=R},
triggerThrottle:function(){H.throttledSend()},
cancelThrottle:function(){H.cancelThrottledSend()},
immediateSend:function(R){return _.l(function(V){return V.yield(H.immediateSend(R),0)})},
requestWithinAgeLimit:function(R,V){return H.requestWithinAgeLimit(R,V)},
retryQueuedRequests:function(){H.retryQueuedRequests()}};
var K;this.throttleTimeout=(K=d.throttleTimeout)!=null?K:100;var c;this.retryMaxAttempts=(c=d.retryMaxAttempts)!=null?c:1;var p;this.requestAgeLimitMs=(p=d.requestAgeLimitMs)!=null?p:2592E6;var g;this.queuedRequestAgeLimitMs=(g=d.queuedRequestAgeLimitMs)!=null?g:12E4;var a;this.retryDelayMs=(a=d.retryDelayMs)!=null?a:5E3;var e;this.databaseToken=(e=d.databaseToken)!=null?e:void 0;this.enableCleaning=!!d.enableCleaning;var k;this.cleaningRate=(k=d.cleaningRate)!=null?k:.1;var C;this.potentialEsfErrorLimit=
(C=d.potentialEsfErrorLimit)!=null?C:10;d.handleError&&(this.handleError=d.handleError);d.handleWarning&&(this.handleWarning=d.handleWarning);d.disableYtIdbTransactions&&(this.disableYtIdbTransactions=d.disableYtIdbTransactions);d.bypassDbTokenDependency&&(this.bypassDbTokenDependency=d.bypassDbTokenDependency);this.getBooleanFlag=d.getBooleanFlag;this.jobManager=d.jobManager;this.logsStore=d.logsStore;this.networkManager=d.networkManager;this.sendFn=d.sendFn;this.onlineEvent=d.onlineEvent;this.offlineEvent=
d.offlineEvent;MY(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&fQ7(this)},fQ7=function(d){MY(d)&&!d.disableYtIdbTransactions&&(d.initialized=!0,d.enableCleaning&&Math.random()<=d.cleaningRate&&d.logsStore.cleanLogsStore(d.databaseToken),d.retryQueuedRequests(),d.networkManager.isNetworkAvailable()&&d.throttledSend(),d.networkManager.listen(d.onlineEvent,d.throttledSend.bind(d)),d.networkManager.listen(d.offlineEvent,d.cancelThrottledSend.bind(d)))};
_.G=ma.prototype;_.G.writeThenSend=function(d,H){var K=this;H=H===void 0?{}:H;if(MY(this)&&this.initialized){var c={url:d,options:H,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(c,this.databaseToken).then(function(p){c.id=p;K.networkManager.isNetworkAvailable()&&K.immediateSend(c)}).catch(function(p){K.immediateSend(c);
AwS(K,p)})}else this.sendFn(d,H)};
_.G.sendThenWrite=function(d,H,K){var c=this;H=H===void 0?{}:H;if(MY(this)&&this.initialized){var p={url:d,options:H,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(p.skipRetry=K);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!p.skipRetry){if(!p.skipRetry){var g=H.onError?H.onError:function(){};
H.onError=function(a,e){return _.l(function(k){if(k.nextAddress==1)return k.yield(c.logsStore.set(p,c.databaseToken).catch(function(C){AwS(c,C)}),2);
g(a,e);_.VE(k)})}}this.sendFn(d,H,p.skipRetry)}else this.logsStore.set(p,this.databaseToken).catch(function(a){c.sendFn(d,H,p.skipRetry);
AwS(c,a)})}else this.sendFn(d,H,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&K)};
_.G.sendAndWrite=function(d,H){var K=this;H=H===void 0?{}:H;if(MY(this)&&this.initialized){var c={url:d,options:H,timestamp:this.now(),status:"NEW",sendCount:0},p=!1,g=H.onSuccess?H.onSuccess:function(){};
c.options.onSuccess=function(a,e){c.id!==void 0?K.logsStore.deleteRequest(c.id,K.databaseToken):p=!0;K.networkManager.networkStatusHint&&K.getBooleanFlag&&K.getBooleanFlag("vss_network_hint")&&K.networkManager.networkStatusHint(!0);g(a,e)};
this.sendFn(c.url,c.options,void 0,!0);this.logsStore.set(c,this.databaseToken).then(function(a){c.id=a;p&&K.logsStore.deleteRequest(c.id,K.databaseToken)}).catch(function(a){AwS(K,a)})}else this.sendFn(d,H,void 0,!0)};
_.G.throttledSend=function(){var d=this;if(!MY(this))throw Error("Xc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var H;return _.l(function(K){if(K.nextAddress==1)return K.yield(d.logsStore.getMostRecentByStatus("NEW",d.databaseToken),2);if(K.nextAddress!=3)return H=K.yieldResult,H?K.yield(d.immediateSend(H),3):(d.cancelThrottledSend(),K.return());d.intervalJob&&(d.intervalJob=0,d.throttledSend());_.VE(K)})},this.throttleTimeout))};
_.G.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.G.immediateSend=function(d){var H=this,K;return _.l(function(c){switch(c.nextAddress){case 1:if(!MY(H))throw Error("Yc");if(d.id===void 0){c.jumpTo(2);break}return c.yield(H.logsStore.markAsQueued(d.id,H.databaseToken),3);case 3:(K=c.yieldResult)||H.handleWarning(Error("Zc"));case 2:if(H.requestWithinAgeLimit(d,H.requestAgeLimitMs)){c.jumpTo(4);break}H.handleWarning(Error("$c"));if(d.id===void 0){c.jumpTo(5);break}return c.yield(H.logsStore.deleteRequest(d.id,H.databaseToken),5);case 5:return c.return();
case 4:d.skipRetry||(d=j$M(H,d));if(!d){c.jumpTo(0);break}if(!d.skipRetry||d.id===void 0){c.jumpTo(8);break}return c.yield(H.logsStore.deleteRequest(d.id,H.databaseToken),8);case 8:H.sendFn(d.url,d.options,!!d.skipRetry),_.VE(c)}})};
var j$M=function(d,H){if(!MY(d))throw Error("ad");var K=H.options.onError?H.options.onError:function(){};
H.options.onError=function(p,g){var a,e,k,C;return _.l(function(R){switch(R.nextAddress){case 1:a=ABL(g);(e=j1C(g))&&d.getBooleanFlag&&d.getBooleanFlag("web_enable_error_204")&&d.handleError(Error("bd"),H.url,g);if(!(d.getBooleanFlag&&d.getBooleanFlag("nwl_consider_error_code")&&a||d.getBooleanFlag&&!d.getBooleanFlag("nwl_consider_error_code")&&d.potentialEsfErrorCounter<=d.potentialEsfErrorLimit)){R.jumpTo(2);break}if(!d.networkManager.sendNetworkCheckRequest){R.jumpTo(3);break}return R.yield(d.networkManager.sendNetworkCheckRequest(),
3);case 3:if(d.networkManager.isNetworkAvailable()){R.jumpTo(2);break}K(p,g);if(!d.getBooleanFlag||!d.getBooleanFlag("nwl_consider_error_code")||((k=H)==null?void 0:k.id)===void 0){R.jumpTo(6);break}return R.yield(d.logsStore.resetRequest(H.id,d.databaseToken,!1),6);case 6:return R.return();case 2:if(d.getBooleanFlag&&d.getBooleanFlag("nwl_consider_error_code")&&!a&&d.potentialEsfErrorCounter>d.potentialEsfErrorLimit)return R.return();d.potentialEsfErrorCounter++;if(((C=H)==null?void 0:C.id)===void 0){R.jumpTo(8);
break}return H.sendCount<d.retryMaxAttempts?R.yield(d.logsStore.resetRequest(H.id,d.databaseToken,!0,e?!1:void 0),12):R.yield(d.logsStore.deleteRequest(H.id,d.databaseToken),8);case 12:d.jobManager.addLowPriorityJob(function(){d.networkManager.isNetworkAvailable()&&d.throttledSend()},d.retryDelayMs);
case 8:K(p,g),_.VE(R)}})};
var c=H.options.onSuccess?H.options.onSuccess:function(){};
H.options.onSuccess=function(p,g){var a;return _.l(function(e){if(e.nextAddress==1)return((a=H)==null?void 0:a.id)===void 0?e.jumpTo(2):e.yield(d.logsStore.deleteRequest(H.id,d.databaseToken),2);d.networkManager.networkStatusHint&&d.getBooleanFlag&&d.getBooleanFlag("vss_network_hint")&&d.networkManager.networkStatusHint(!0);c(p,g);_.VE(e)})};
return H};
ma.prototype.requestWithinAgeLimit=function(d,H){d=d.timestamp;return this.now()-d>=H?!1:!0};
ma.prototype.retryQueuedRequests=function(){var d=this;if(!MY(this))throw Error("cd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(H){H&&!d.requestWithinAgeLimit(H,d.queuedRequestAgeLimitMs)?d.jobManager.addLowPriorityJob(function(){return _.l(function(K){if(K.nextAddress==1)return H.id===void 0?K.jumpTo(2):K.yield(d.logsStore.resetRequest(H.id,d.databaseToken),2);d.retryQueuedRequests();_.VE(K)})}):d.networkManager.isNetworkAvailable()&&d.throttledSend()})};
var AwS=function(d,H){d.writeError&&!d.networkManager.isNetworkAvailable()?d.writeError(H):d.handleError(H)},MY=function(d){return!!d.databaseToken||d.bypassDbTokenDependency};var vfF;var g6l={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 vlA={},ovF=HM("ServiceWorkerLogsDatabase",{objectStores:(vlA.SWHealthLog={addedAtVersion:1},vlA),shared:!0,upgrade:function(d,H){H(1)&&YG(t5(d,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var CDh={},nvY=0;var hu5;var wp=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},bt=function(){if(!wp.instance){var d=_.OS("yt.networkRequestMonitor.instance")||new wp;
_.vb("yt.networkRequestMonitor.instance",d);wp.instance=d}return wp.instance};
wp.prototype.requestComplete=function(d,H){H&&(this.anyRequestHasSucceeded=!0);d=this.removeParams(d);this.requestMap.get(d)||this.requestMap.set(d,H)};
wp.prototype.isEndpointCFR=function(d){d=this.removeParams(d);return(d=this.requestMap.get(d))?!1:d===!1&&this.anyRequestHasSucceeded?!0:null};
wp.prototype.removeParams=function(d){return d.split("?")[0]};
wp.prototype.removeParams=wp.prototype.removeParams;wp.prototype.isEndpointCFR=wp.prototype.isEndpointCFR;wp.prototype.requestComplete=wp.prototype.requestComplete;wp.getInstance=bt;var Pq=function(d){_.Rj.call(this);var H=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=d!=null?d:{addLowPriorityJob:function(p,g){return setTimeout(p,g)},
cancelJob:function(p){clearTimeout(p)}};
var K,c;this.isOnline=(c=(K=window.navigator)==null?void 0:K.onLine)!=null?c:!0;this.onNavigatorChange=function(){return _.l(function(p){return p.yield(dCC(H),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||HOA(this)};
_.m(Pq,_.Rj);Pq.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete Pq.instance};
Pq.prototype.isNetworkAvailable=function(){return this.isOnline};
var HOA=function(d){d.pollingJob=d.jobManager.addLowPriorityJob(function(){var H;return _.l(function(K){if(K.nextAddress==1)return d.isOnline?((H=window.navigator)==null?0:H.onLine)?K.jumpTo(3):K.yield(dCC(d),3):K.yield(dCC(d),3);HOA(d);_.VE(K)})},3E4)},dCC=function(d,H){return d.networkRequestPromise?d.networkRequestPromise:d.networkRequestPromise=new Promise(function(K){var c,p,g,a;
return _.l(function(e){switch(e.nextAddress){case 1:return c=window.AbortController?new window.AbortController:void 0,g=(p=c)==null?void 0:p.signal,a=!1,_.e2(e,2,3),c&&(d.abortTimeoutKey=d.jobManager.addLowPriorityJob(function(){c.abort()},H||2E4)),e.yield(fetch("/generate_204",{method:"HEAD",
signal:g}),5);case 5:a=!0;case 3:_.xs(e);d.networkRequestPromise=void 0;d.abortTimeoutKey&&(d.jobManager.cancelJob(d.abortTimeoutKey),d.abortTimeoutKey=0);a!==d.isOnline&&(d.isOnline=a,d.isOnline?d.dispatchEvent("networkstatus-online"):d.dispatchEvent("networkstatus-offline"));K(a);_.Cz(e,0);break;case 2:_.RV(e),a=!1,e.jumpTo(3)}})})};var uJ=function(){_.Rj.call(this);var d=this;this.shouldFlushErrors=!1;Pq.instance||(Pq.instance=new Pq(_.Xp));this.sharedNetworkStatusManager=Pq.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(d.shouldFlushErrors&&_.h("offline_error_handling")){var H=LlY().get("errors",!0);if(H){for(var K in H)if(H[K]){var c=new _.m1(K,"sent via offline_errors");c.name=H[K].name;c.stack=H[K].stack;c.level=H[K].level;_.tm(c)}LlY().set("errors",{},2592E3,!0)}}})};
_.m(uJ,_.Rj);var $CN=function(){if(!uJ.instance){var d=_.OS("yt.networkStatusManager.instance")||new uJ;_.vb("yt.networkStatusManager.instance",d);uJ.instance=d}return uJ.instance};
_.G=uJ.prototype;_.G.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.G.networkStatusHint=function(d){this.sharedNetworkStatusManager.isOnline=d};
_.G.getWindowStatus=function(){var d=window.navigator.onLine;return d===void 0?!0:d};
_.G.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.G.listen=function(d,H){return this.sharedNetworkStatusManager.listen(d,H)};
_.G.sendNetworkCheckRequest=function(d){d=dCC(this.sharedNetworkStatusManager,d);d.then(function(H){_.h("use_cfr_monitor")&&bt().requestComplete("generate_204",H)});
return d};
uJ.prototype.sendNetworkCheckRequest=uJ.prototype.sendNetworkCheckRequest;uJ.prototype.listen=uJ.prototype.listen;uJ.prototype.enableErrorFlushing=uJ.prototype.enableErrorFlushing;uJ.prototype.getWindowStatus=uJ.prototype.getWindowStatus;uJ.prototype.networkStatusHint=uJ.prototype.networkStatusHint;uJ.prototype.isNetworkAvailable=uJ.prototype.isNetworkAvailable;uJ.getInstance=$CN;_.yQ=function(d){d=d===void 0?{}:d;_.Rj.call(this);var H=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=$CN();var K=_.OS("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);K&&(d.rateLimit?(this.rateLimit=d.rateLimit,K("networkstatus-online",function(){KGX(H,"publicytnetworkstatus-online")}),K("networkstatus-offline",function(){KGX(H,"publicytnetworkstatus-offline")})):(K("networkstatus-online",function(){H.dispatchEvent("publicytnetworkstatus-online")}),K("networkstatus-offline",
function(){H.dispatchEvent("publicytnetworkstatus-offline")})))};
_.m(_.yQ,_.Rj);_.yQ.prototype.isNetworkAvailable=function(){var d=_.OS("yt.networkStatusManager.instance.isNetworkAvailable");return d?d.bind(this.nsmInstance)():!0};
_.yQ.prototype.networkStatusHint=function(d){var H=_.OS("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);H&&H(d)};
_.yQ.prototype.sendNetworkCheckRequest=function(d){var H=this,K;return _.l(function(c){K=_.OS("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(H.nsmInstance);return _.h("skip_network_check_if_cfr")&&bt().isEndpointCFR("generate_204")?c.return(new Promise(function(p){var g;H.networkStatusHint(((g=window.navigator)==null?void 0:g.onLine)||!0);p(H.isNetworkAvailable())})):K?c.return(K(d)):c.return(!0)})};
var KGX=function(d,H){d.rateLimit?d.lastJobTime?(_.Xp.cancelJob(d.schedulerJob),d.schedulerJob=_.Xp.addLowPriorityJob(function(){d.lastPublicSignalSent!==H&&(d.dispatchEvent(H),d.lastPublicSignalSent=H,d.lastJobTime=(0,_.$G)())},d.rateLimit-((0,_.$G)()-d.lastJobTime))):(d.dispatchEvent(H),d.lastPublicSignalSent=H,d.lastJobTime=(0,_.$G)()):d.dispatchEvent(H)};var u4L,IG=function(){ma.call(this,{logsStore:{cleanLogsStore:iM1,deleteRequest:gv5,getMostRecentByStatus:KlC,markAsQueued:cRL,resetRequest:p1f,set:$kL},networkManager:_.IXD(),handleError:function(d,H,K){var c,p=K==null?void 0:(c=K.error)==null?void 0:c.code;if(p===400||p===415){var g;d=new _.m1(d.message,H,K==null?void 0:(g=K.error)==null?void 0:g.code);_.SD(d,void 0,void 0,void 0,!0)}else _.tm(d)},
handleWarning:_.SD,sendFn:w1i,now:_.$G,writeError:Mvi,jobManager:_.MO(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.iT("potential_esf_error_limit",10),getBooleanFlag:_.h,disableYtIdbTransactions:!(_.MQ()&&_.rRC())});this.initializationPromise=new _.ki;_.h("networkless_immediately_drop_all_requests")&&G6Y();j61("LogsDatabaseV2")};
_.m(IG,ma);_.p36=function(){var d=_.OS("yt.networklessRequestController.instance");d||(d=new IG,_.vb("yt.networklessRequestController.instance",d),_.h("networkless_logging")&&_.dF().then(function(H){d.databaseToken=H;fQ7(d);d.initializationPromise.resolve();d.enableCleaning&&Math.random()<=d.cleaningRate&&d.databaseToken&&aXE(d.databaseToken);_.h("networkless_immediately_drop_sw_health_store")&&cP3(d)}));
return d};
IG.prototype.writeThenSend=function(d,H){H||(H={});H=PDf(d,H);_.MQ()||(this.initialized=!1);ma.prototype.writeThenSend.call(this,d,H)};
IG.prototype.sendThenWrite=function(d,H,K){H||(H={});H=PDf(d,H);_.MQ()||(this.initialized=!1);ma.prototype.sendThenWrite.call(this,d,H,K)};
IG.prototype.sendAndWrite=function(d,H){H||(H={});H=PDf(d,H);_.MQ()||(this.initialized=!1);ma.prototype.sendAndWrite.call(this,d,H)};
IG.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var cP3=function(d){var H;_.l(function(K){if(!d.databaseToken)throw H=TJ("clearSWHealthLogsDb"),H;return K.return(lXh(d.databaseToken).catch(function(c){d.handleError(c)}))})};_.Bgh=!1;_.WlF=_.KF.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.Bgh};_.vb("ytNetworklessLoggingInitializationOptions",_.WlF);var rz=function(d){var H=this;this.config_=null;d?this.config_=d:imh()&&(this.config_=_.cM());_.mf(_.Xp,function(){fVX(H)},5E3)};
rz.prototype.isReady=function(){!this.config_&&imh()&&(this.config_=_.cM());return!!this.config_};
var DrF=function(d,H,K,c){!_.Fm("VISITOR_DATA")&&H!=="visitor_id"&&Math.random()<.01&&_.SD(new _.m1("Missing VISITOR_DATA when sending innertube request.",H,K,c));if(!d.isReady()){var p=new _.m1("innertube xhrclient not ready",H,K,c);_.tm(p);throw p;}var g={headers:c.headers||{},method:"POST",postParams:K,postBody:c.postBody,postBodyFormat:c.postBodyFormat||"JSON",onTimeout:function(){c.onTimeout()},
onFetchTimeout:c.onTimeout,onSuccess:function(V,U){if(c.onSuccess)c.onSuccess(U)},
onFetchSuccess:function(V){if(c.onSuccess)c.onSuccess(V)},
onProgress:function(V){if(c.onProgress)c.onProgress(V)},
onError:function(V,U){if(c.onError)c.onError(U)},
onFetchError:function(V){if(c.onError)c.onError(V)},
timeout:c.timeout,withCredentials:!0,compress:c.compress};g.headers["Content-Type"]||(g.headers["Content-Type"]="application/json");var a="";(p=d.config_.innertubeHostOverride)&&(a=p);var e=d.config_.innertubeUseThirdPartyAuth||!1,k=_.MhE(e,a,c);Object.assign(g.headers,k);g.headers.Authorization&&!a&&e&&(g.headers["x-origin"]=window.location.origin);var C=_.DY(a+("/youtubei/"+d.config_.innertubeApiVersion+"/"+H),{alt:"json"}),R=function(V){V=V===void 0?!1:V;var U;if(c.retry&&a!="www.youtube-nocookie.com"&&
(V||_.h("skip_ls_gel_retry")||g.headers["Content-Type"]!=="application/json"||(U=bKF(H,K,k,e)),U)){var L=g.onSuccess,w=g.onFetchSuccess;g.onSuccess=function(F,Y){N4M(U);L(F,Y)};
K.onFetchSuccess=function(F,Y){N4M(U);w(F,Y)}}try{if(V&&c.retry&&!c.networklessOptions.bypassNetworkless)g.method="POST",c.networklessOptions.writeThenSend?_.p36().writeThenSend(C,g):_.p36().sendAndWrite(C,g);
else if(c.compress){var W=!c.networklessOptions.writeThenSend;if(g.postBody){var J=g.postBody;typeof J!=="string"&&(J=JSON.stringify(g.postBody));FJ5(C,J,g,_.xp,W)}else FJ5(C,JSON.stringify(g.postParams),g,SaX,W)}else _.h("web_all_payloads_via_jspb")?_.xp(C,g):SaX(C,g)}catch(F){if(F.name==="InvalidAccessError")U&&(N4M(U),U=0),_.SD(Error("dd"));else throw F;}U&&_.mf(_.Xp,function(){fVX(d)},5E3)};
_.zu1()?ScF().then(function(V){R(V)}):R(!1)};var SvF=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(SvF,_.He);var gKX=0,JRD=_.oB?"webkit":_.GZ?"moz":_.iv?"ms":xKD?"o":"";_.vb("ytDomDomGetNextId",_.OS("ytDomDomGetNextId")||function(){return++gKX});var iO0={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},vM=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 H in d)H in iO0||(this[H]=d[H]);this.scale=d.scale;this.rotation=d.rotation;var K=d.target||d.srcElement;K&&K.nodeType==3&&(K=K.parentNode);this.target=K;var c=d.relatedTarget;if(c)try{c=c.nodeName?c:null}catch(p){c=null}else this.type=="mouseover"?c=d.fromElement:this.type=="mouseout"&&(c=d.toElement);this.relatedTarget=c;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.pageX_=d.pageX;this.pageY_=d.pageY}}catch(p){}},GAg=function(d){if(document.body&&document.documentElement){var H=document.body.scrollTop+document.documentElement.scrollTop;
d.pageX_=d.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);d.pageY_=d.clientY+H}};
vM.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
vM.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
vM.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var j7=_.KF.ytEventsEventsListeners||{};_.vb("ytEventsEventsListeners",j7);var tvC=_.KF.ytEventsEventsCounter||{count:0};_.vb("ytEventsEventsCounter",tvC);var YGY=_.CV(function(){var d=!1;try{var H=Object.defineProperty({},"capture",{get:function(){d=!0}});
window.addEventListener("test",null,H)}catch(K){}return d});_.K1(Hd,_.h_);Hd.prototype.onMouseMove_=function(d){d.pageX_===void 0&&GAg(d);var H=d.pageX_;d.pageY_===void 0&&GAg(d);this.position_=new _.Bf(H,d.pageY_)};
Hd.prototype.checkPosition_=function(){if(this.position_){var d=(0,_.$G)();if(this.previousTime_!=0){var H=this.previousPosition_,K=this.position_,c=H.x-K.x;H=H.y-K.y;c=Math.sqrt(c*c+H*H)/(d-this.previousTime_);this.cycles_[this.index_]=Math.abs((c-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(K=H=0;K<4;K++)H+=this.cycles_[K]||0;H>=3&&this.callback_();this.previousVelocity_=c}this.previousTime_=d;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Hd.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.OM4(this.mouseListenerKey_)};var bMh={};var Hf1=new _.Dk("rawColdConfigGroup");var dVi=new _.Dk("rawHotConfigGroup");var oKU=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(oKU,_.He);var OTL=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(OTL,_.He);var Me=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d,500)};
_.m(Me,_.He);Me.prototype.getPayloadCase=function(){return _.hS(this,qod)};
Me.prototype.getContext=function(){return _.gF(this,OTL,33)};
var qod=[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 N7i=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(N7i,_.He);var M85=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(M85,_.He);M85.prototype.setVideoId=function(d){return xr(this,1,mch,aZ(d))};
M85.prototype.getPlaylistId=function(){return _.k1(this,UD(this,mch,2))};
var mch=[1,2];var YQ4=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(YQ4,_.He);YQ4.prototype.getContext=function(){return _.gF(this,nn,1)};
YQ4.prototype.getTier=function(){return _.rK(this,7)};var acC,gz,iw;acC=_.KF.ytPubsubPubsubInstance||new _.Cj;gz=_.KF.ytPubsubPubsubSubscribedKeys||{};iw=_.KF.ytPubsubPubsubTopicToKeys||{};_.Ng5=_.KF.ytPubsubPubsubIsSynchronous||{};_.Cj.prototype.subscribe=_.Cj.prototype.subscribe;_.Cj.prototype.unsubscribeByKey=_.Cj.prototype.unsubscribeByKey;_.Cj.prototype.publish=_.Cj.prototype.publish;_.Cj.prototype.clear=_.Cj.prototype.clear;_.vb("ytPubsubPubsubInstance",acC);_.vb("ytPubsubPubsubTopicToKeys",iw);_.vb("ytPubsubPubsubIsSynchronous",_.Ng5);
_.vb("ytPubsubPubsubSubscribedKeys",gz);var oJ=window;var rp=_.h("web_enable_lifecycle_monitoring")&&vvC()!==0,lcA=_.h("web_enable_lifecycle_monitoring");var eQl=function(d){var H=this;var K=K===void 0?0:K;var c=c===void 0?_.MO():c;this.JSC$10818_defaultPriority=K;this.scheduler=c;this.completedResolver=new _.ki;this.scheduledPayloads=d;for(d={i$jscomp$487:0};d.i$jscomp$487<this.scheduledPayloads.length;d={payload$jscomp$19:void 0,i$jscomp$487:d.i$jscomp$487},d.i$jscomp$487++)d.payload$jscomp$19=this.scheduledPayloads[d.i$jscomp$487],K=function(p){return function(){p.payload$jscomp$19.job();H.scheduledPayloads[p.i$jscomp$487].processed=!0;H.scheduledPayloads.every(function(g){return g.processed===
!0})&&H.completedResolver.resolve()}}(d),c=this.getPriority(d.payload$jscomp$19),c=this.scheduler.addJob(K,c),this.scheduledPayloads[d.i$jscomp$487]=Object.assign({},d.payload$jscomp$19,{job:K,
jobId:c})};
eQl.prototype.flushJobs=function(){var d=this,H=Array.from(this.scheduledPayloads.keys()).sort(function(c,p){return d.getPriority(d.scheduledPayloads[p])-d.getPriority(d.scheduledPayloads[c])});
H=_.q(H);for(var K=H.next();!K.done;K=H.next())K=this.scheduledPayloads[K.value],K.jobId===void 0||K.processed||(this.scheduler.cancelJob(K.jobId),this.scheduler.addJob(K.job,10))};
eQl.prototype.cancel=function(){for(var d=_.q(this.scheduledPayloads),H=d.next();!H.done;H=d.next())H=H.value,H.jobId===void 0||H.processed||this.scheduler.cancelJob(H.jobId),H.processed=!0;this.completedResolver.resolve()};
eQl.prototype.getPriority=function(d){var H;return(H=d.priority)!=null?H:this.JSC$10818_defaultPriority};var Wq=function(d){this.state=d;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};rp&&dcF(this.state)};
Wq.prototype.install=function(d){this.plugins.push(d);return this};
Wq.prototype.uninstall=function(){var d=this;_.sH.apply(0,arguments).forEach(function(H){H=d.plugins.indexOf(H);H>-1&&d.plugins.splice(H,1)})};
Wq.prototype.transition=function(d,H){var K=this;rp&&H74(this.state);var c=this.transitions.find(function(g){return Array.isArray(g.from)?g.from.find(function(a){return a===K.state&&g.to===d}):g.from===K.state&&g.to===d});
if(c){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);kAA(this,d,H);this.state=d;rp&&dcF(this.state);c=c.action.bind(this);var p=this.plugins.filter(function(g){return g[d]}).map(function(g){return g[d]});
c(xCM(this,p),H)}else throw Error("ed`"+this.state+"`"+d);};
var xCM=function(d,H){var K=H.filter(function(p){return nKU(d,p)===10}),c=H.filter(function(p){return nKU(d,p)!==10});
return d.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var p=_.sH.apply(0,arguments);return _.l(function(g){if(g.nextAddress==1)return g.yield(d.runImmediateJobsAsync.apply(d,[K].concat(_.ru(p))),2);d.setJobSetWithScheduledJobs.apply(d,[c].concat(_.ru(p)));_.VE(g)})}:function(){var p=_.sH.apply(0,arguments);
d.runImmediateJobsSync.apply(d,[K].concat(_.ru(p)));d.setJobSetWithScheduledJobs.apply(d,[c].concat(_.ru(p)))}};
Wq.prototype.runImmediateJobsSync=function(d){var H=_.sH.apply(1,arguments);_.MO();for(var K=_.q(d),c=K.next(),p={};!c.done;p={lifecycle$jscomp$2:void 0},c=K.next())p.lifecycle$jscomp$2=c.value,ad(function(g){return function(){CG3(g.lifecycle$jscomp$2.name);KeE(function(){return g.lifecycle$jscomp$2.callback.apply(g.lifecycle$jscomp$2,_.ru(H))});
Bq(g.lifecycle$jscomp$2.name)}}(p))};
Wq.prototype.runImmediateJobsAsync=function(d){var H=_.sH.apply(1,arguments),K,c,p,g;return _.l(function(a){a.nextAddress==1&&(_.MO(),K=_.q(d),c=K.next(),p={});if(a.nextAddress!=3){if(c.done)return a.jumpTo(0);p.lifecycle$jscomp$3=c.value;p.asyncJobCompletion=void 0;g=function(e){return function(){CG3(e.lifecycle$jscomp$3.name);var k=KeE(function(){return e.lifecycle$jscomp$3.callback.apply(e.lifecycle$jscomp$3,_.ru(H))});
bil(k)?e.asyncJobCompletion=_.h("web_lifecycle_error_handling_killswitch")?k.then(function(){Bq(e.lifecycle$jscomp$3.name)}):k.then(function(){Bq(e.lifecycle$jscomp$3.name)},function(C){$c1(C);
Bq(e.lifecycle$jscomp$3.name)}):Bq(e.lifecycle$jscomp$3.name)}}(p);
ad(g);return p.asyncJobCompletion?a.yield(p.asyncJobCompletion,3):a.jumpTo(3)}p={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};c=K.next();return a.jumpTo(2)})};
Wq.prototype.setJobSetWithScheduledJobs=function(d){var H=_.sH.apply(1,arguments),K=this,c=d.map(function(p){return{job:function(){CG3(p.name);KeE(function(){return p.callback.apply(p,_.ru(H))});
Bq(p.name)},
priority:nKU(K,p)}});
c.length&&(this.jobSet=new eQl(c))};
var nKU=function(d,H){var K,c;return(c=(K=d.overridePriority)!=null?K:H.priority)!=null?c:0},CG3=function(d){rp&&d&&dcF(d)},Bq=function(d){rp&&d&&H74(d)},kAA=function(d,H,K){lcA&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+d.constructor.name+"] '"+d.state+"' to '"+H+"'"),console.log("with message: ",K),console.groupEnd())};
_.H3.Object.defineProperties(Wq.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var RQS=function(d){Wq.call(this,d===void 0?"none":d);this.navigationTimer=null;this.overridePriority=10;this.transitions=[{from:"none",to:"application_navigating",action:this.runApplicationNavigationBegin},{from:"application_navigating",to:"none",action:this.runApplicationNavigationEnd},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]},VMM;
_.m(RQS,Wq);RQS.prototype.runApplicationNavigationBegin=function(d,H){var K=this;this.navigationTimer=_.mf(_.Xp,function(){K.currentState==="application_navigating"&&K.transition("none")},5E3);
d(H==null?void 0:H.event)};
RQS.prototype.runApplicationNavigationEnd=function(d,H){this.navigationTimer&&(_.Xp.cancelJob(this.navigationTimer),this.navigationTimer=null);d(H==null?void 0:H.event)};
_.vMi=function(){VMM||(VMM=new RQS);return VMM};var jd1=[];_.vb("yt.logging.transport.getScrapedGelPayloads",function(){return jd1});var qe=function(){var d=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return d.totalEntries}}};
qe.prototype.storePayload=function(d,H){d=cu1(d);this.store[d]?this.store[d].push(H):(this.memoizedKeySequences={},this.store[d]=[H]);this.totalEntries++;_.h("more_accurate_gel_parser")&&(H=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(H));return d};
qe.prototype.smartExtractMatchingEntries=function(d){if(!d.keys.length)return[];for(var H=UCX(this,d.keys.splice(0,1)[0]),K=[],c=0;c<H.length;c++)this.store[H[c]]&&d.sizeLimit&&(this.store[H[c]].length<=d.sizeLimit?(K.push.apply(K,_.ru(this.store[H[c]])),delete this.store[H[c]]):K.push.apply(K,_.ru(this.store[H[c]].splice(0,d.sizeLimit))));this.totalEntries-=K.length;(d==null?0:d.sizeLimit)&&K.length<(d==null?void 0:d.sizeLimit)&&(d.sizeLimit-=K.length,K.push.apply(K,_.ru(this.smartExtractMatchingEntries(d))));
return K};
qe.prototype.extractMatchingEntries=function(d){d=UCX(this,d);for(var H=[],K=0;K<d.length;K++)this.store[d[K]]&&(H.push.apply(H,_.ru(this.store[d[K]])),delete this.store[d[K]]);this.totalEntries-=H.length;return H};
qe.prototype.getSequenceCount=function(d){d=UCX(this,d);for(var H=0,K=0;K<d.length;K++){var c=void 0;H+=((c=this.store[d[K]])==null?void 0:c.length)||0}return H};
var UCX=function(d,H){var K=cu1(H);if(d.memoizedKeySequences[K])return d.memoizedKeySequences[K];var c=Object.keys(d.store)||[];if(c.length<=1&&cu1(H)===c[0])return c;for(var p=[],g=0;g<c.length;g++){var a=c[g].split("/");if(hQM(H.auth,a[0])){var e=H.isJspb;hQM(e===void 0?"undefined":e?"true":"false",a[1])&&hQM(H.cttAuthInfo,a[2])&&(e=H.tier,e=e===void 0?"undefined":JSON.stringify(e),hQM(e,a[3])&&p.push(c[g]))}}return d.memoizedKeySequences[K]=p},hQM=function(d,H){return d===void 0||d==="undefined"?
!0:d===H};
qe.prototype.getSequenceCount=qe.prototype.getSequenceCount;qe.prototype.extractMatchingEntries=qe.prototype.extractMatchingEntries;qe.prototype.smartExtractMatchingEntries=qe.prototype.smartExtractMatchingEntries;qe.prototype.storePayload=qe.prototype.storePayload;var XgM,B7L,Ju1,eV,LG0,pIY,cW4,WeD,ruf,RAi,zAY,fAF,PV5;XgM=_.iT("initial_gel_batch_timeout",2E3);B7L=_.iT("gel_queue_timeout_max_ms",6E4);Ju1=_.iT("gel_min_batch_size",5);eV=void 0;LG0=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
pIY=new LG0;cW4=new LG0;WeD=new LG0;ruf=new LG0;zAY=!0;fAF=1;_.DcD=new Map;PV5=_.KF.ytLoggingTransportTokensToCttTargetIds_||{};_.vb("ytLoggingTransportTokensToCttTargetIds_",PV5);var wgX=_.KF.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.vb("ytLoggingTransportTokensToJspbCttTargetIds_",wgX);var lw={};var uw=_.KF.ytLoggingGelSequenceIdObj_||{};_.vb("ytLoggingGelSequenceIdObj_",uw);var GxF=[];var UVE=new Set,eoD=0,mVi=0,MAX=0,xVC=[],kxM=[],wID=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var TB1=function(){};
TB1.prototype.getUrl=function(d,H){H=H===void 0?!1:H;return d.hasOwnProperty("shareEndpoint")?null:_.rWi(d,null,H)};
var Il4=function(d,H,K){d={endpoint:H,actions:[]};K=(K.path?K.path[0]:K.target).icon||"";H=K.indexOf(":");H>0&&(K=K.substr(H+1));K&&d.actions.push(K);return d};var sDC=/Command$/,JWf=/Endpoint$/,BBF=new Map;var MMA,mCU;MMA=1;_.bw=function(){this.actionRoutingMap=new Map};
_.bw.prototype.triggerAction=function(d){var H=new ha5(d,!1,_.sH.apply(1,arguments));this.handleAction(H);return H.returnValue};
_.bw.prototype.triggerOptionalAction=function(d){var H=new ha5(d,!0,_.sH.apply(1,arguments));this.handleAction(H);return H.returnValue};
_.zp=function(d,H,K){H.forEach(function(c){var p=XIF(c);p&&d.triggerOptionalAction(p,c,K,void 0)})};
_.bw.prototype.handleAction=function(d){var H=this.actionRoutingMap.get(d.actionName);H&&mCU(d,H);d.optionalAction||d.returnValue.length!==0||(d=new _.m1("Unhandled action",d.actionName),_.SD(d))};
mCU=function(d,H){H.forEach(function(K){var c=null;K?c=K.apply(null,d.args):(K=Error("fd"),K.params=d.actionName,_.tm(K));d.returnValue.push(c)})};
_.Ne=function(d,H,K){K||(K=MMA++);for(var c=_.q(Object.keys(H)),p=c.next();!p.done;p=c.next()){p=p.value;var g=d.actionRoutingMap.get(p);g||(g=new Map,d.actionRoutingMap.set(p,g));d.registerActionHandler(K,p,H[p],g)}return K};
_.bw.prototype.registerActionHandler=function(d,H,K,c){c.set(d,_.Y2(K))};
_.Dz=function(d,H,K){H=_.q(Object.keys(H));for(var c=H.next();!c.done;c=H.next())(c=d.actionRoutingMap.get(c.value))&&c.delete(K)};
_.HG(_.bw);var YjF=function(d,H){var K=_.bw.getInstance();_.WE(function(){var c={},p=_.Ne(K,(c[d]=H,c));_.Pk(function(){var g={};_.Dz(K,(g[d]="",g),p)})})};var Sf4=Symbol("hd");D8Y=w3f;var cEh=new Set(["For","If","Match","Watch"]),w3U={},PGM=(w3U[Fq.default]=function(){return Y_h},w3U.style=function(){return Y_h},w3U),ujM;
for(ujM in PGM)jX.attributes[ujM]=PGM[ujM](jX.attributes[ujM]);var K5=new _.Av("VISIBILITY_OBSERVER");var k_C={retrieve:function(d){return this.id.\u0275prov.token===d.\u0275prov.token?this.contextValue:this?_.DB(this,this.id):UlE}};var BW4=function(d,H,K){if(d!==vd)return!1;d=jDY(document.createElement("div"),function(){var c=$2(!1);try{K[0]()}finally{$2(c)}});
d=Array.from(d.childNodes);d.length===1&&(d=d[0]);return d};var IcN=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(d){}var rP7=typeof WeakRef==="function";var WGN=function(d){this.value=d};
WGN.prototype.deref=function(){return this.value};
var Br7=rP7?WeakRef:WGN,zQg=function(d){this.newKeyHandler=d;this.map=new WeakMap};
zQg.prototype.add=function(d,H){this.map.has(d)||(this.newKeyHandler(d),this.map.set(d,[]));this.map.get(d).push(new Br7(H))};
zQg.prototype.get=function(d){var H=this;return function c(){var p,g,a,e,k,C,R,V,U,L,w;return _.py(c,function(W){switch(W.nextAddress){case 1:_.nz(W,2);p=H.map.get(d);if(!p)return W.return();g=0;a=_.q(p);e=a.next();case 4:if(e.done){W.jumpTo(6);break}k=e.value;C=k.deref();if(!C){W.jumpTo(5);break}g++;R=_.g5;return W.yield(C,8);case 8:R(W.yieldResult);case 5:e=a.next();W.jumpTo(4);break;case 6:if(2*g<p.length){V=0;U=_.q(p);for(L=U.next();!L.done;L=U.next())w=L.value,w.deref()&&(p[V++]=w);p.length=
V}case 2:_.xs(W),_.Cz(W,0)}})}()};var X3g=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},hDD=new zQg(function(d){d.addEventListener("abort",MnM,{once:!0})}),U$l=new WeakMap,JP6=function(d){d=d===void 0?X$:d;
this.signal=new d};
JP6.prototype.abort=function(d){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=d,d=new Event("abort"),this.signal.dispatchEvent(d))};
var X$=function(){this.target=X3g();this.aborted=!1;this.onabort=null};
X$.prototype.throwIfAborted=function(){Vnf.call(this)};
X$.prototype.addEventListener=function(d,H,K){this.target.addEventListener(d,H,K)};
X$.prototype.removeEventListener=function(d,H,K){this.target.removeEventListener(d,H,K)};
X$.prototype.dispatchEvent=function(d){if(this.onabort&&d.type==="abort")this.onabort(d);return this.target.dispatchEvent(d)};
X$.abort=RD4;X$.timeout=m$i;X$.any=LBl;var CWC=IcN?AbortController:JP6,J4=IcN?AbortSignal:X$;typeof J4.abort!=="function"&&(J4.abort=RD4);typeof J4.prototype.throwIfAborted!=="function"&&(J4.prototype.throwIfAborted=Vnf);typeof J4.any!=="function"&&(J4.any=LBl);typeof J4.timeout!=="function"&&(J4.timeout=m$i);var suC=function(d){d=d.clone();jsB(d);RY(d,"dg",null);RY(d,"d","0");N9C(d,null);DMA(d,null);return d},FGM=!0,ZO0=function(d,H,K){var c=K===void 0?{}:K;
K=c.cssRowKey===void 0?void 0:c.cssRowKey;var p=c.combinedSignature===void 0?void 0:c.combinedSignature;var g=c.extraEdges===void 0?void 0:c.extraEdges;c=c.callback===void 0?void 0:c.callback;RY(d,"m",H.join(","));g&&AmX(d,g);K&&(RY(d,"ck",K),p?RY(d,"rs",p):FGM&&(FGM=!1));if(c){if(c!=null&&!HjN.test(c))throw Error("Xa`"+c);RY(d,"cb",c)}d=d.toString();_.gh(d,"/")&&(d=I5d(document.location.href)+d);return _.hL(d)};var Qul=function(d){return Tr3(d).then(function(H){return JSON.parse(H.responseText)})},Tr3=function(d){var H={},K=H.xmlHttpFactory?H.xmlHttpFactory.createInstance():n5l.createInstance();
return(new _.kr(function(c,p){var g;try{K.open("GET",d,!0)}catch(k){p(new s4("Error opening XHR: "+k.message,d,K))}K.onreadystatechange=function(){if(K.readyState==4){_.KF.clearTimeout(g);var k;!(k=x63(K.status))&&(k=K.status===0)&&(k=uOd(d),k=!(k=="http"||k=="https"||k==""));k?c(K):p(new tM7(K.status,d,K))}};
K.onerror=function(){p(new s4("Network error",d,K))};
if(H.headers)for(var a in H.headers){var e=H.headers[a];e!=null&&K.setRequestHeader(a,e)}H.withCredentials&&(K.withCredentials=H.withCredentials);H.responseType&&(K.responseType=H.responseType);H.mimeType&&K.overrideMimeType(H.mimeType);H.timeoutMs>0&&(g=_.KF.setTimeout(function(){K.onreadystatechange=function(){};
K.abort();p(new YoC(d,K))},H.timeoutMs));
try{K.send(null)}catch(k){K.onreadystatechange=function(){},_.KF.clearTimeout(g),p(new s4("Error sending XHR: "+k.message,d,K))}})).thenCatch(function(c){c instanceof _.T_&&K.abort();
throw c;})},s4=function(d,H,K){_.dh.call(this,d+", url="+H);
this.url=H;this.xhr=K};
_.K1(s4,_.dh);s4.prototype.name="XhrError";var tM7=function(d,H,K){s4.call(this,"Request Failed, status="+d,H,K);this.status=d};
_.K1(tM7,s4);tM7.prototype.name="XhrHttpError";var YoC=function(d,H){s4.call(this,"Request timed out",d,H)};
_.K1(YoC,s4);YoC.prototype.name="XhrTimeoutError";dK=dK||{};var F$=function(){_.h_.call(this)};
_.K1(F$,_.h_);F$.prototype.initialize=function(){};var OOX=function(d,H){this.fn_=d;this.handler_=H};
OOX.prototype.execute=function(d){this.fn_&&(this.fn_.call(this.handler_||null,d),this.fn_=this.handler_=null)};
OOX.prototype.abort=function(){this.handler_=this.fn_=null};var ZR=function(d,H){_.h_.call(this);this.deps_=d;this.JSC$10972_id_=H;this.onloadCallbacks_=[];this.JSC$10972_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.K1(ZR,_.h_);ZR.prototype.moduleConstructor_=F$;ZR.prototype.module_=null;ZR.prototype.getId=function(){return this.JSC$10972_id_};
ZR.prototype.registerCallback=function(d,H){return Sog(this.onloadCallbacks_,d,H)};
var EKC=function(d,H){Sog(d.JSC$10972_onErrorCallbacks_,H)},Sog=function(d,H,K){H=new OOX(H,K);
d.push(H);return H};
ZR.prototype.isLoaded=function(){return!!this.module_};
ZR.prototype.onLoad=function(d){var H=new this.moduleConstructor_;H.initialize(d());this.module_=H;H=(H=yPl(this.earlyOnloadCallbacks_,d()))||yPl(this.onloadCallbacks_,d());H||(this.JSC$10972_onErrorCallbacks_.length=0);return H};
ZR.prototype.onError=function(d){(d=yPl(this.JSC$10972_onErrorCallbacks_,d))&&cF(Error("ld`"+d));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var yPl=function(d,H){for(var K=[],c=0;c<d.length;c++)try{d[c].execute(H)}catch(p){cF(p),K.push(p)}d.length=0;return K.length?K:null};
ZR.prototype.disposeInternal=function(){ZR.superClass_.disposeInternal.call(this);_.AA(this.module_)};var bOC,vK3,APd,jug,DC7,fcX,cO3,$oX,KWS;
_.QT=function(d,H,K,c,p){c=c===void 0?!1:c;p=p===void 0?!1:p;var g=g===void 0?!0:g;this.scsReferenceUrl_=O4E(_.Lc(d).toString(),g);this.cssRowKey_=H;this.combinedSignature_=K;this.useNegativeLoading_=c;this.requestedModuleMap_={};this.JSC$10975_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(d=CG(this.scsReferenceUrl_,"excm"))?d.split(","):[];this.shouldScanForCss_=p;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;SX5();_.Tp(this,fY7(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
bOC=function(d,H){if(H.href||H.getAttribute("data-href"))if(H=H.href||H.getAttribute("data-href"),TFh(H)&&!O4E(H).urlPrefix_.endsWith("_/js/")){H=fY7(O4E(H));H=_.q(H);for(var K=H.next();!K.done;K=H.next())K=K.value,d.loadedCssModuleList_.includes(K)||d.loadedCssModuleList_.push(K)}};
_.QT.prototype.JSC$10977_loadModules=function(d,H,K){var c=K===void 0?{}:K;K=c.extraEdges;var p=c.onError;var g=c.onSuccess;c=c.forceReload;this.JSC$10975_moduleInfoMap_=H;if(!d)throw Error("md");if(this.shouldScanForCss_){H=_.q(document.getElementsByTagName("style"));for(var a=H.next();!a.done;a=H.next())bOC(this,a.value);H=_.q(document.getElementsByTagName("link"));for(a=H.next();!a.done;a=H.next())bOC(this,a.value)}Nr7(this,DC7(this,d),K,p,g,c)};
var Nr7=function(d,H,K,c,p,g){c=c===void 0?function(){}:c;
p=p===void 0?function(){}:p;
g=g===void 0?!1:g;fcX(d,H,function(a,e,k){k=k===void 0?e:k;d.enableFallbackFetch&&g?d.loadWithFetch(a,e,c,p,k):d.load(a,e,c,p,k,K)},K)||c(-1)};
_.QT.prototype.loadWithFetch=function(){_.l(function(){throw Error("nd");})};
_.QT.prototype.maybeSetAdditionalFields=function(){};
vK3=function(d,H,K){if(d.useNegativeLoading_){var c=d.scsReferenceUrl_;d={cssRowKey:d.cssRowKey_,combinedSignature:d.combinedSignature_,extraEdges:K,requestedModuleIds:APd(d),requestedCssModuleIds:jug(d)};var p=d===void 0?{}:d;d=p.requestedModuleIds===void 0?[]:p.requestedModuleIds;K=p.requestedCssModuleIds===void 0?[]:p.requestedCssModuleIds;var g=p.cssRowKey===void 0?void 0:p.cssRowKey;var a=p.combinedSignature===void 0?void 0:p.combinedSignature;var e=p.extraEdges===void 0?void 0:p.extraEdges;
p=p.callback===void 0?void 0:p.callback;c=suC(c);RY(c,"d","1");N9C(c,d);DMA(c,K);H=ZO0(c,H,{cssRowKey:g,combinedSignature:a,extraEdges:e,callback:p})}else c=d.scsReferenceUrl_,d={cssRowKey:d.cssRowKey_,combinedSignature:d.combinedSignature_,requestedModuleIds:APd(d),requestedCssModuleIds:jug(d)},e=d===void 0?{}:d,d=e.requestedCssModuleIds===void 0?[]:e.requestedCssModuleIds,K=e.cssRowKey===void 0?void 0:e.cssRowKey,g=e.combinedSignature===void 0?void 0:e.combinedSignature,a=e.extraEdges===void 0?
void 0:e.extraEdges,e=e.callback===void 0?void 0:e.callback,c=suC(c),DMA(c,d),H=ZO0(c,H,{cssRowKey:K,combinedSignature:g,extraEdges:a,callback:e});return H};
_.Tp=function(d,H){for(var K=!1,c=[],p=0;p<H.length;++p){var g=H[p];d.requestedModuleMap_[g]||(d.requestedModuleMap_[g]=!0,d.requestedModuleList_.push(g),K=!0,c.push(g))}K&&(d.requestedModuleListSorted_=!1)};
_.t4=function(d,H){for(var K=[],c=0;c<H.length;++c){var p=H[c];d.requestedModuleMap_[p]&&(delete d.requestedModuleMap_[p],_.Q4(d.requestedModuleList_,p),K.push(p))}};
_.QT.prototype.load=function(d,H,K,c,p){p=p===void 0?H:p;_.Lc(d);var g=this.useCors_,a=this.corsMode_,e=this.fetchPriority,k=_.x1("SCRIPT");_.fc(k,d);g&&(k.crossOrigin=a);k.async=!1;e&&k.setAttribute("fetchpriority",e);_.Tp(this,H);_.do3(this,d,k,H,K,c,p)};
_.do3=function(d,H,K,c,p,g,a){a=a===void 0?c:a;d.lastScript_=K;d.insertPos.insertBefore(K,d.insertPos.firstChild);_.Hog(K,c,function(){K.parentElement.removeChild(K);d.lastScript_==K&&(d.lastScript_=null);var e=new Set;c.map(function(C){return e.add(C)});
for(var k in d.JSC$10975_moduleInfoMap_)d.JSC$10975_moduleInfoMap_[k].isLoaded()&&e.add(k);Array.from(e);g()},function(e){K.parentElement.removeChild(K);
d.lastScript_==K&&(d.lastScript_=null);_.t4(d,e);d.pendingModuleGraphUpdate_?d.pendingModuleGraphUpdate_.then(function(){p(-1,H)}):p(-1,H)},a)};
_.Hog=function(d,H,K,c,p){p=p===void 0?H:p;var g=H.length,a=function(){g=0;d.onload=null;d.onerror=null;e=function(){}},e=function(){a();
var C=p.filter(function(R){return!ur().getModuleInfo(R).isLoaded()});
C.length!==0?c(C,"Response was successful but was missing module(s) "+C+"."):K()},k=function(){g--;
g==0&&e()};
H.forEach(function(C){C=ur().getModuleInfo(C);C.isLoaded()?k():(Sog(C.earlyOnloadCallbacks_,k),EKC(C,k))});
d.onload=function(){return e()};
d.onerror=function(){a();c(H)}};
APd=function(d){d.requestedModuleListSorted_||(d.requestedModuleListSorted_=!0,d.requestedModuleList_.sort());return d.requestedModuleList_};
jug=function(d){d=d.loadedCssModuleList_;d.sort();return d};
DC7=function(d,H){return H.filter(function(K){return!d.requestedModuleMap_[K]})};
fcX=function(d,H,K,c){if(d.pendingModuleGraphUpdate_)return d.pendingModuleGraphUpdate_.then(function(){fcX(d,H,K,c)}),!0;
if(!d.useNegativeLoading_){var p=[],g=Object.assign({},d.requestedModuleMap_);$oX(d,H,function(R){p.push(R.getId())},c,function(R){return!R.isLoaded()},g);
H=p}for(g=0;g<H.length;){for(var a=H.length-g,e=g==0?H:H.slice(g,H.length),k=vK3(d,e,c),C=_.Lc(k).toString();C.length>d.urlMaxLength;)if(a>1)a-=Math.ceil((C.length-d.urlMaxLength)/6),a=Math.max(a,1),e=H.slice(g,g+a),k=vK3(d,e,c),C=_.Lc(k).toString();else return d.useNegativeLoading_?(d.useNegativeLoading_=!1,d.pendingModuleGraphUpdate_=KWS(d).then(function(R){cO3(d,R,c)}),fcX(d,H.slice(g),K,c)):!1;
g+=a;d.useNegativeLoading_?K(k,e):K(k,e,g===H.length?H:[])}return!0};
cO3=function(d,H,K){ur().setAllModuleInfoString((H||{}).moduleGraph);$oX(d,APd(d),function(c){_.Tp(d,[c.getId()])},K);
d.pendingModuleGraphUpdate_=null};
$oX=function(d,H,K,c,p,g){g=g===void 0?{}:g;var a=ur();H=_.q(H);for(var e=H.next();!e.done;e=H.next()){e=e.value;var k=a.getModuleInfo(e);if(!(g[e]||p&&!p(k))){g[e]=!0;var C=k.deps_||[];if(c){var R=[];c[e]&&(R=Object.keys(c[e]));C=C.concat(R)}$oX(d,C,K,c,p,g);K(k)}}};
KWS=function(d){d=d.scsReferenceUrl_.clone();jsB(d);RY(d,"dg",null);RY(d,"md","1");return Qul(d.toString())};var wK4=new Uint8Array(123);var pyX=[];var gWX=function(){this.JSC$10024_loader_=null};
_.G=gWX.prototype;_.G.setBatchModeEnabled=function(){};
_.G.setAllModuleInfoString=function(){};
_.G.addExtraEdge=function(){throw Error("od");};
_.G.removeExtraEdge=function(){throw Error("pd");};
_.G.getModuleContext=function(){return null};
_.G.isActive=function(){return!1};
_.G.isUserActive=function(){return!1};
_.G.registerCallback=function(){};var YF=function(d,H,K,c,p){var g=Error.call(this);this.message=g.message;"stack"in g&&(this.stack=g.stack);this.name="ModuleLoadFailure";this.type=d;this.status=H;this.requestedModuleIds=K;this.url=c;this.cause=p;this.message=this.toString()};
_.m(YF,Error);YF.prototype.toString=function(){return io6(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var io6=function(d){switch(d.type){case YF.Type.UNAUTHORIZED:return"Unauthorized";case YF.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case YF.Type.TIMEOUT:return"Timed out";case YF.Type.OLD_CODE_GONE:return"Out of date module id";case YF.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+d.type}};
dK.ModuleLoadFailure=YF;dK.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var O4=function(){this.moduleIds_=this.JSC$10024_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$10990_extraEdges_={};this.JSC$10990_callbackMap_={};this.JSC$10990_currentlyLoadingModule_=this.baseModuleInfo_=new ZR([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new YJ;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.K1(O4,gWX);var GTg=function(d,H){_.dh.call(this,"Error loading "+d+": "+H)};
_.K1(GTg,_.dh);O4.prototype.setBatchModeEnabled=function(d){this.batchModeEnabled_=d};
O4.prototype.setAllModuleInfoString=function(d,H){if(!(this instanceof O4))this.setAllModuleInfoString(d,H);else if(typeof d==="string"){if(d.startsWith("d$")){d=d.substring(2);for(var K=[],c=0,p=d.indexOf("/"),g=0,a=!1,e=0;;){var k=a?d.substring(g):d.substring(g,p);if(k.length===0)c++,g="sy"+c.toString(36),k=[];else{var C=k.indexOf(":");if(C<0)g=k,k=[];else if(C===k.length-1)g=k.substring(0,C),k=Array(K[e-1]);else{g=k.substring(0,C);k=k.substring(C+1).split(",");C=e;for(var R=0;R<k.length;R++)C-=
k[R].length===0?1:Number(k[R]),k[R]=K[C]}C=0;if(g.length===0)C=1;else if(g.charAt(0)==="+"||g.charAt(0)==="-")C=Number(g);C!==0&&(c+=C,g="sy"+c.toString(36))}K.push(g);oWd(this,g,k);if(a)break;g=p+1;p=d.indexOf("/",g);p===-1&&(a=!0);e++}this.moduleIds_=K}else if(d.startsWith("p$"))qaS(this,d);else{d=d.split("/");K=[];for(c=0;c<d.length;c++){e=d[c].split(":");p=e[0];a=[];if(e[1])for(a=e[1].split(","),e=0;e<a.length;e++)a[e]=K[parseInt(a[e],36)];K.push(p);oWd(this,p,a)}this.moduleIds_=K}H&&H.length?
(_.Sl(this.loadingModuleIds_,H),this.lastInitialModuleId_=_.BF(H)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$10990_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$10990_currentlyLoadingModule_=null,(H=this.baseModuleInfo_.onLoad((0,_.LA)(this.getModuleContext,this)))&&H.length&&ai6(this,new dK.ModuleLoadFailure(dK.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,H[0])),Sq(this))}};
var qaS=function(d,H){var K=H.substring(2);for(H=0;H<64;H++)wK4["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(H)]=H;var c={buf:K,pos:0};gQ(c);var p=gQ(c),g=gQ(c)+1;H=Array(p);var a=Array(p),e=Array(p);g=Array(g);var k=0,C=0,R=c.pos,V=c.buf.indexOf("|",c.pos);c.pos=V+1;for(V=0;V<p;V++){var U=gQ(c),L=U&2,w=U&1;U>>>=2;w?(k+=U>>>1^-(U&1),U="sy"+k.toString(36)):(w=R,R+=U,U=K.substring(w,R));H[V]=U;L&&(g[C++]=U)}g[C]="";c.pos++;C=p&-2;K=p&1;for(k=0;k<C;k+=2)R=PWD(c),e[k]=
R&7,e[k+1]=R>>>3&7;K&&(K=PWD(c),e[C]=K&7);c.pos++;for(C=0;C<p;C++)e[C]===7&&(e[C]=gQ(c));c.pos++;for(K=C=0;K<p;K++){k=e[K];R=k===0?pyX:Array(k);a[K]=R;V=C;for(L=0;L<k;L++)V-=gQ(c),R[L]=g[V];g[C]===H[K]&&C++}for(c=0;c<H.length;c++)oWd(d,H[c],a[c]);d.moduleIds_=H};
_.G=O4.prototype;_.G.getModuleInfo=function(d){return this.moduleInfoMap[d]};
_.G.addExtraEdge=function(d,H){var K=this.getModuleInfo(d);K&&K.isLoaded()?this.load(H):(this.JSC$10990_extraEdges_[d]||(this.JSC$10990_extraEdges_[d]={}),this.JSC$10990_extraEdges_[d][H]=!0)};
_.G.removeExtraEdge=function(d,H){if(this.JSC$10990_extraEdges_[d]){delete this.JSC$10990_extraEdges_[d][H];for(var K in this.JSC$10990_extraEdges_[d])return;delete this.JSC$10990_extraEdges_[d]}};
_.G.isActive=function(){return this.loadingModuleIds_.length>0};
_.G.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Sq=function(d){var H=d.lastActive_,K=d.isActive();K!=H&&(d.executeCallbacks_(K?"active":"idle"),d.lastActive_=K);H=d.isUserActive();H!=d.userLastActive_&&(d.executeCallbacks_(H?"userActive":"userIdle"),d.userLastActive_=H)},oWd=function(d,H,K){d.moduleInfoMap[H]?(d=d.moduleInfoMap[H].deps_,d!=K&&d.splice.apply(d,[0,
d.length].concat(_.ru(K)))):d.moduleInfoMap[H]=new ZR(K,H)},eT7=function(d,H,K){var c=[];
P11(H,c);H=[];for(var p={},g=0;g<c.length;g++){var a=c[g],e=d.getModuleInfo(a);if(!e)throw Error("qd`"+a);var k=new YJ;p[a]=k;e.isLoaded()?k.callback(null):(liB(d,a,e,!!K,k),d.isModuleLoading(a)||H.push(a))}H.length>0&&(d.loadingModuleIds_.length===0?d.loadModules_(H):(d.requestedModuleIdsQueue_.push(H),Sq(d)));return p},liB=function(d,H,K,c,p){K.registerCallback(p.callback,p);
EKC(K,function(g){p.errback(new GTg(H,g))});
d.isModuleLoading(H)?c&&(kT3(d,H),Sq(d)):c&&kT3(d,H)};
O4.prototype.loadModules_=function(d,H,K){var c=this;H||(this.consecutiveFailures_=0);var p=xog(this,d);this.loadingModuleIds_=p;this.requestedLoadingModuleIds_=this.batchModeEnabled_?d:_.tC(p);Sq(this);if(p.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,p);if(Object.keys(this.JSC$10990_extraEdges_).length>0&&!this.JSC$10024_loader_.supportsExtraEdges)throw Error("rd");d=(0,_.LA)(this.JSC$10024_loader_.JSC$10977_loadModules,this.JSC$10024_loader_,_.tC(p),this.moduleInfoMap,
{extraEdges:this.JSC$10990_extraEdges_,forceReload:!!K,onError:function(g,a){var e=c.requestedLoadingModuleIds_;g=g!=null?g:void 0;c.consecutiveFailures_++;var k=_.tC(p);c.requestedLoadingModuleIds_=e;p.forEach(_.hO(_.Q4,c.requestedModuleIds_),c);g==401?(ai6(c,new dK.ModuleLoadFailure(dK.ModuleLoadFailure.Type.UNAUTHORIZED,g)),c.requestedModuleIdsQueue_.length=0):g==410?(nWd(c,new dK.ModuleLoadFailure(dK.ModuleLoadFailure.Type.OLD_CODE_GONE,g)),C5A(c)):c.consecutiveFailures_>=3?(nWd(c,new dK.ModuleLoadFailure(dK.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
g,k,a)),C5A(c)):c.loadModules_(c.requestedLoadingModuleIds_,!0,g==8001||!1)},
onTimeout:(0,_.LA)(this.handleLoadTimeout_,this)});(H=Math.pow(this.consecutiveFailures_,2)*5E3)?_.KF.setTimeout(d,H):d()}};
var xog=function(d,H){H=H.filter(function(p){return d.moduleInfoMap[p].isLoaded()?(_.KF.setTimeout(function(){return Error("sd`"+p)},0),!1):!0});
for(var K=[],c=0;c<H.length;c++)K=K.concat(RT7(d,H[c]));P11(K);return!d.batchModeEnabled_&&K.length>1?(H=K.shift(),d.requestedModuleIdsQueue_=K.map(function(p){return[p]}).concat(d.requestedModuleIdsQueue_),[H]):K},RT7=function(d,H){var K=_.rs.createSet(d.requestedModuleIds_),c=[];
K[H]||c.push(H);H=[H];for(var p=0;p<H.length;p++)for(var g=d.getModuleInfo(H[p]).deps_,a=g.length-1;a>=0;a--){var e=g[a];d.getModuleInfo(e).isLoaded()||K[e]||(c.push(e),H.push(e))}c.reverse();P11(c);return c};
O4.prototype.JSC$10985_setLoaded=function(){if(this.JSC$10990_currentlyLoadingModule_){var d=this.JSC$10990_currentlyLoadingModule_.getId(),H=[];if(this.JSC$10990_extraEdges_[d]){for(var K=_.q(Object.keys(this.JSC$10990_extraEdges_[d])),c=K.next();!c.done;c=K.next()){c=c.value;var p=this.getModuleInfo(c);p&&!p.isLoaded()&&(this.removeExtraEdge(d,c),H.push(c))}this.loadMultiple(H)}this.isDisposed()||((H=this.moduleInfoMap[d].onLoad((0,_.LA)(this.getModuleContext,this)))&&H.length&&ai6(this,new dK.ModuleLoadFailure(dK.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,H[0])),_.Q4(this.userInitiatedLoadingModuleIds_,d),_.Q4(this.loadingModuleIds_,d),this.loadingModuleIds_.length===0&&C5A(this),this.lastInitialModuleId_&&d==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Sq(this),this.JSC$10990_currentlyLoadingModule_=null)}};
O4.prototype.isModuleLoading=function(d){if(_.TL(this.loadingModuleIds_,d))return!0;for(var H=0;H<this.requestedModuleIdsQueue_.length;H++)if(_.TL(this.requestedModuleIdsQueue_[H],d))return!0;return!1};
O4.prototype.load=function(d,H){return eT7(this,[d],H)[d]};
O4.prototype.loadMultiple=function(d){return eT7(this,d)};
var kT3=function(d,H){_.TL(d.userInitiatedLoadingModuleIds_,H)||d.userInitiatedLoadingModuleIds_.push(H)};
O4.prototype.beforeLoadModuleCode=function(d){var H=this;this.JSC$10990_currentlyLoadingModule_&&this.JSC$10990_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$10985_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[d]&&V57(this,this.moduleInfoMap[d].deps_||[],function(K){K.module_=new F$;_.Q4(H.loadingModuleIds_,K.getId())},function(K){return!K.isLoaded()});
this.JSC$10990_currentlyLoadingModule_=this.getModuleInfo(d)};
O4.prototype.handleLoadTimeout_=function(){nWd(this,new dK.ModuleLoadFailure(dK.ModuleLoadFailure.Type.TIMEOUT));C5A(this)};
var nWd=function(d,H){d.requestedLoadingModuleIds_.length>1?d.requestedModuleIdsQueue_=d.requestedLoadingModuleIds_.map(function(K){return[K]}).concat(d.requestedModuleIdsQueue_):ai6(d,H)},ai6=function(d,H){var K=d.requestedLoadingModuleIds_;
d.loadingModuleIds_.length=0;for(var c=[],p=0;p<d.requestedModuleIdsQueue_.length;p++){var g=d.requestedModuleIdsQueue_[p].filter(function(k){var C=RT7(this,k);return Nl(K,function(R){return _.TL(C,R)})},d);
_.Sl(c,g)}for(p=0;p<K.length;p++)_.Lil(c,K[p]);for(p=0;p<c.length;p++){for(g=0;g<d.requestedModuleIdsQueue_.length;g++)_.Q4(d.requestedModuleIdsQueue_[g],c[p]);_.Q4(d.userInitiatedLoadingModuleIds_,c[p])}if(p=d.JSC$10990_callbackMap_.error)for(g=0;g<p.length;g++)for(var a=p[g],e=0;e<c.length;e++)a("error",c[e],H);for(c=0;c<K.length;c++)if(d.moduleInfoMap[K[c]])d.moduleInfoMap[K[c]].onError(H);d.requestedLoadingModuleIds_.length=0;Sq(d)},C5A=function(d){for(;d.requestedModuleIdsQueue_.length;){var H=
d.requestedModuleIdsQueue_.shift().filter(function(K){return!this.getModuleInfo(K).isLoaded()},d);
if(H.length>0){d.loadModules_(H);return}}Sq(d)};
O4.prototype.registerCallback=function(d,H){Array.isArray(d)||(d=[d]);for(var K=0;K<d.length;K++){var c=d[K],p=H,g=this.JSC$10990_callbackMap_;g[c]||(g[c]=[]);g[c].push(p)}};
O4.prototype.executeCallbacks_=function(d){for(var H=this.JSC$10990_callbackMap_[d],K=0;H&&K<H.length;K++)H[K](d)};
var V57=function(d,H,K,c,p){c=c===void 0?function(){return!0}:c;
p=p===void 0?{}:p;H=_.q(H);for(var g=H.next();!g.done;g=H.next()){g=g.value;var a=d.getModuleInfo(g);!p[g]&&c(a)&&(p[g]=!0,V57(d,a.deps_||[],K,c,p),K(a))}};
O4.prototype.dispose=function(){_.ju(_.rs.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$10990_callbackMap_={};this.isDisposed_=!0};
O4.prototype.isDisposed=function(){return this.isDisposed_};
_.Pz=function(){return new O4};var UoU=[5E3,2E4],hTg=function(){this.JSC$10024_loader_=null;this.JSC$10998_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$10998_queue_=[];this.JSC$10998_extraEdges_=Object.create(null);this.JSC$10998_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.m(hTg,gWX);_.G=hTg.prototype;_.G.setAllModuleInfoString=function(){this.JSC$10998_currentlyLoadingModule_&&this.JSC$10998_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$10985_setLoaded()};
_.G.getModuleInfo=function(d){var H=this.JSC$10998_moduleInfoMap_[d];H||(H=new ZR([],d),this.JSC$10998_moduleInfoMap_[d]=H);return H};
_.G.addExtraEdge=function(d,H){this.getModuleInfo(d).isLoaded()?this.load(H):(this.JSC$10998_extraEdges_[d]||(this.JSC$10998_extraEdges_[d]={}),this.JSC$10998_extraEdges_[d][H]=!0)};
_.G.removeExtraEdge=function(d,H){if(this.JSC$10998_extraEdges_[d]){delete this.JSC$10998_extraEdges_[d][H];for(var K in this.JSC$10998_extraEdges_[d])return;delete this.JSC$10998_extraEdges_[d]}};
_.G.isModuleLoading=function(d){return!!this.loadingModules_[d]};
_.G.load=function(d){LWd(this,[d]);return M5U(this,d)};
_.G.loadMultiple=function(d){var H=this,K=Object.create(null),c=[];d.forEach(function(p){K[p]||(K[p]=M5U(H,p),c.push(p))});
LWd(this,c);return K};
_.G.beforeLoadModuleCode=function(d){var H;((H=this.JSC$10998_currentlyLoadingModule_)==null?void 0:H.getId())==="synthetic_module_overhead"&&this.JSC$10985_setLoaded();var K,c;moC(this,(c=(K=this.JSC$10998_moduleInfoMap_[d])==null?void 0:K.deps_)!=null?c:[],function(p){p.module_=new F$},function(p){return!p.isLoaded()});
this.JSC$10998_currentlyLoadingModule_=this.getModuleInfo(d)};
_.G.JSC$10985_setLoaded=function(){if(this.JSC$10998_currentlyLoadingModule_){var d=this.JSC$10998_currentlyLoadingModule_.getId(),H=[];if(this.JSC$10998_extraEdges_[d]){for(var K=_.q(Object.keys(this.JSC$10998_extraEdges_[d])),c=K.next();!c.done;c=K.next())c=c.value,this.getModuleInfo(c).isLoaded()||(this.removeExtraEdge(d,c),H.push(c));this.loadMultiple(H)}this.JSC$10998_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$10998_currentlyLoadingModule_=null;(!this.isModuleLoading(d)&&/^sy[0-9a-z]{0,4}$/.test(d)||d==="synthetic_module_overhead")&&delete this.JSC$10998_moduleInfoMap_[d];this.unsetModulesAsLoading(d)}};
_.G.setModulesAsLoading=function(){var d=this;_.sH.apply(0,arguments).forEach(function(H){d.loadingModules_[H]=!0})};
_.G.unsetModulesAsLoading=function(){var d=this;_.sH.apply(0,arguments).forEach(function(H){delete d.loadingModules_[H]})};
var M5U=function(d,H){return new _.kr(function(K,c){var p=d.getModuleInfo(H);p.isLoaded()?K(null):(p.registerCallback(function(){K(null)}),EKC(p,function(g){var a="Error loading "+H+": "+g;
g instanceof dK.ModuleLoadFailure&&g.url&&(a=a+", requested url: "+g.url.toString());c(Error(a))}))})},LWd=function(d,H){H=H.filter(function(K){return!d.isModuleLoading(K)&&!d.getModuleInfo(K).isLoaded()});
H.length>0&&(d.setModulesAsLoading.apply(d,_.ru(H)),d.JSC$10998_queue_.push(H),wy7(d))},wy7=function(d){for(var H={};d.activeLoads_<Infinity&&d.JSC$10998_queue_.length>0;H={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})H.ids$jscomp$36=d.JSC$10998_queue_.shift().filter(function(K){return!d.getModuleInfo(K).isLoaded()}),H.ids$jscomp$36.length>0&&(d.activeLoads_++,H.finishLoad=function(K){return function(){d.activeLoads_--;
wy7(d);K.finishLoad=function(){}}}(H),_.hH(H.ids$jscomp$36.map(function(K){return M5U(d,K)})).then(function(K){return function(){(0,K.finishLoad)()}}(H)),H.attempt$jscomp$6=0,H.load$jscomp$1=function(K){return function(){if(Object.keys(d.JSC$10998_extraEdges_).length>0&&!d.JSC$10024_loader_.supportsExtraEdges)throw Error("rd");
d.JSC$10024_loader_.JSC$10977_loadModules(K.ids$jscomp$36,d.JSC$10998_moduleInfoMap_,{extraEdges:d.JSC$10998_extraEdges_,onError:function(c,p){var g=UoU[K.attempt$jscomp$6++];g!==void 0?setTimeout(function(){(0,K.load$jscomp$1)()},g):(d.unsetModulesAsLoading.apply(d,_.ru(K.ids$jscomp$36)),(0,K.finishLoad)(),K.ids$jscomp$36.forEach(function(a){a=d.getModuleInfo(a);
if(!a.isLoaded())a.onError(new dK.ModuleLoadFailure(dK.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,c,K.ids$jscomp$36,p))}))}})}}(H),(0,H.load$jscomp$1)())},moC=function(d,H,K,c,p){c=c===void 0?function(){return!0}:c;
p=p===void 0?{}:p;H=_.q(H);for(var g=H.next();!g.done;g=H.next()){g=g.value;var a=d.getModuleInfo(g);!p[g]&&c(a)&&(p[g]=!0,moC(d,a.deps_||[],K,c,p),K(a))}};var P5M=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var IaY=Symbol("ud");window.JSCompiler_renameProperty=function(d){return d};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var uw6,Ii3,rO7;uw6=!P5M||HTMLElement.es5Shimmed||_.KF.Reflect===void 0||_.KF.customElements===void 0||_.KF.customElements.polyfillWrapFlushCallback||!1;_.$LE=function(){var d=HTMLElement;if(uw6)return d;if(Ii3!==void 0)return Ii3;var H=_.KF.Reflect,K=function(){return H.construct(d,[],this.constructor)};
K.prototype=d.prototype;K.prototype.constructor=K;K.es5Shimmed=!0;Object.setPrototypeOf(K,d);return Ii3=K};
rO7=!1;uw6||rO7||(rO7=!0,_.KF.HTMLElement=_.$LE());/*

Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
window.COMPILED=window.COMPILED||!1;var XKY=/(url\()([^)]*)(\))/g,BEL=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,zDF,iC;var Yl=!window.ShadyDOM||!window.ShadyDOM.inUse,WWA=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),BVS=!window.customElements.polyfillWrapFlushCallback,zTl;if(zTl=Yl&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var XyS=new CSSStyleSheet;XyS.replaceSync("");var JO3=document.createElement("div");JO3.attachShadow({mode:"open"});JO3.shadowRoot.adoptedStyleSheets=[XyS];zTl=JO3.shadowRoot.adoptedStyleSheets[0]===XyS}catch(d){zTl=!1}
var sF6=zTl,FWB=window.Polymer&&window.Polymer.rootPath||sIX(document.baseURI||window.location.href),hw=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,SiM=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,yG=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Zo7=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,tw=window.Polymer&&window.Polymer.legacyOptimizations||!1,E_=window.Polymer&&window.Polymer.legacyWarnings||!1,TV7=window.Polymer&&window.Polymer.syncInitialRender||
!1,mK=window.Polymer&&window.Polymer.legacyUndefined||!1,QF3=window.Polymer&&window.Polymer.orderedComputed||!1,E4=window.Polymer&&window.Polymer.removeNestedTemplates||!1,yT=window.Polymer&&window.Polymer.fastDomIf||!1,bJ=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,t5U=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,YaS=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var NY={},OoC={},PV=function(){return HTMLElement.apply(this,arguments)||this};
_.m(PV,HTMLElement);PV.import=function(d,H){return d?(d=NY[d]||OoC[d.toLowerCase()])&&H?d.querySelector(H):d:null};
PV.prototype.attributeChangedCallback=function(d,H,K){H!==K&&this.register()};
PV.prototype.register=function(d){if(d=d||this.id){if(yG&&(NY[d]||OoC[d.toLowerCase()])!==void 0)throw NY[d]=OoC[d.toLowerCase()]=null,Error("vd`"+d);this.id=d;NY[d]=OoC[d.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.H3.Object.defineProperties(PV.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var d=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;d=_.GN(this.getAttribute("assetpath")||"",d.baseURI);this.__assetpath=sIX(d)}return this.__assetpath}}});
_.H3.Object.defineProperties(PV,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
PV["import"]=PV.import;PV.prototype.modules=NY;customElements.define("dom-module",PV);var Sa6=0,Z8D=0,o$=[],EWB=0,FBl=!1,yOB=document.createTextNode(""),bo7,TN;(new window.MutationObserver(TEY)).observe(yOB,{characterData:!0});_.DR={after:function(d){return{run:function(H){return window.setTimeout(H,d)},
cancel:function(H){window.clearTimeout(H)}}},
run:function(d,H){return window.setTimeout(d,H)},
cancel:function(d){window.clearTimeout(d)}};
_.rg={run:function(d){return window.requestAnimationFrame(d)},
cancel:function(d){window.cancelAnimationFrame(d)}};
bo7={run:function(d){return window.requestIdleCallback?window.requestIdleCallback(d):window.setTimeout(d,16)},
cancel:function(d){window.cancelIdleCallback?window.cancelIdleCallback(d):window.clearTimeout(d)}};
TN={run:function(d){FBl||(FBl=!0,yOB.textContent=EWB++);o$.push(d);return Sa6++},
cancel:function(d){var H=d-Z8D;if(H>=0){if(!o$[H])throw Error("wd`"+d);o$[H]=null}}};var NV0=0,fb=function(d){var H=d.__mixinApplications;H||(H=new WeakMap,d.__mixinApplications=H);var K=NV0++;return function(c){var p=c.__mixinSet;if(p&&p[K])return c;var g=H,a=g.get(c);a||(a=d(c),g.set(c,a),c=Object.create(a.__mixinSet||p||null),c[K]=!0,a.__mixinSet=c);return a}};_.U_=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(d){return ShadyDOM.patch(d)}:function(d){return d};var Dod=fb(function(d){var H=function(){var K=d.call(this)||this;K.__dataEnabled=!1;K.__dataReady=!1;K.__dataInvalid=!1;K.__data={};K.__dataPending=null;K.__dataOld=null;K.__dataInstanceProps=null;K.__dataCounter=0;K.__serializing=!1;K._initializeProperties();return K};
_.m(H,d);H.createProperties=function(K){var c=this.prototype,p;for(p in K)p in c||c._createPropertyAccessor(p)};
H.attributeNameForProperty=function(K){return K.toLowerCase()};
H.typeForProperty=function(){};
H.prototype._createPropertyAccessor=function(K,c){this._addPropertyToAttributeMap(K);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[K]||(this.__dataHasAccessor[K]=!0,this._definePropertyAccessor(K,c))};
H.prototype._addPropertyToAttributeMap=function(K){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var c=this.__dataAttributes[K];c||(c=this.constructor.attributeNameForProperty(K),this.__dataAttributes[c]=K);return c};
H.prototype._definePropertyAccessor=function(K,c){Object.defineProperty(this,K,{get:function(){return this.__data[K]},
set:c?function(){}:function(p){this._setPendingProperty(K,p,!0)&&this._invalidateProperties()}})};
H.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
H.prototype._initializeProperties=function(){for(var K in this.__dataHasAccessor)this.hasOwnProperty(K)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[K]=this[K],delete this[K])};
H.prototype._initializeInstanceProperties=function(K){Object.assign(this,K)};
H.prototype._setProperty=function(K,c){this._setPendingProperty(K,c)&&this._invalidateProperties()};
H.prototype._getProperty=function(K){return this.__data[K]};
H.prototype._setPendingProperty=function(K,c){var p=this.__data[K],g=this._shouldPropertyChange(K,c,p);g&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||K in this.__dataOld||(this.__dataOld[K]=p),this.__data[K]=c,this.__dataPending[K]=c);return g};
H.prototype._isPropertyPending=function(K){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(K))};
H.prototype._invalidateProperties=function(){var K=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,TN.run(function(){K.__dataInvalid&&(K.__dataInvalid=!1,K._flushProperties())}))};
H.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
H.prototype._flushProperties=function(){this.__dataCounter++;var K=this.__data,c=this.__dataPending,p=this.__dataOld;this._shouldPropertiesChange(K,c,p)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(K,c,p));this.__dataCounter--};
H.prototype._shouldPropertiesChange=function(K,c){return!!c};
H.prototype._propertiesChanged=function(){};
H.prototype._shouldPropertyChange=function(K,c,p){return p!==c&&(p===p||c===c)};
H.prototype.attributeChangedCallback=function(K,c,p,g){c!==p&&this._attributeToProperty(K,p);d.prototype.attributeChangedCallback&&d.prototype.attributeChangedCallback.call(this,K,c,p,g)};
H.prototype._attributeToProperty=function(K,c,p){if(!this.__serializing){var g=this.__dataAttributes;K=g&&g[K]||K;this[K]=this._deserializeValue(c,p||this.constructor.typeForProperty(K))}};
H.prototype._propertyToAttribute=function(K,c,p){this.__serializing=!0;p=arguments.length<3?this[K]:p;this._valueToNodeAttribute(this,p,c||this.constructor.attributeNameForProperty(K));this.__serializing=!1};
H.prototype._valueToNodeAttribute=function(K,c,p){c=this._serializeValue(c);if(p==="class"||p==="name"||p==="slot")K=(0,_.U_)(K);c===void 0?K.removeAttribute(p):K.setAttribute(p,c===""&&window.trustedTypes?window.trustedTypes.emptyScript:c)};
H.prototype._serializeValue=function(K){switch(typeof K){case "boolean":return K?"":void 0;default:return K!=null?K.toString():void 0}};
H.prototype._deserializeValue=function(K,c){switch(c){case Boolean:return K!==null;case Number:return Number(K);default:return K}};
return H});var fiM=0,QIi=[];var AO6=fb(function(d){function H(g){g=Object.getPrototypeOf(g);return g.prototype instanceof p?g:null}
function K(g){if(!g.hasOwnProperty("__ownProperties")){var a=null;if(g.hasOwnProperty("properties")){var e=g.properties;if(e){a={};for(var k in e){var C=e[k];a[k]=typeof C==="function"?{type:C}:C}}}g.__ownProperties=a}return g.__ownProperties}
var c=Dod(d),p=function(){return c.apply(this,arguments)||this};
_.m(p,c);p.finalize=function(){if(!this.hasOwnProperty("__finalized")){var g=H(this);g&&g.finalize();this.__finalized=!0;this._finalizeClass()}};
p._finalizeClass=function(){var g=K(this);g&&this.createProperties(g)};
p.typeForProperty=function(g){return(g=this._properties[g])&&g.type};
p.prototype._initializeProperties=function(){fiM++;this.constructor.finalize();c.prototype._initializeProperties.call(this)};
p.prototype.connectedCallback=function(){c.prototype.connectedCallback&&c.prototype.connectedCallback.call(this);this._enableProperties()};
p.prototype.disconnectedCallback=function(){c.prototype.disconnectedCallback&&c.prototype.disconnectedCallback.call(this)};
_.H3.Object.defineProperties(p,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var g=this;if(!this.hasOwnProperty("__observedAttributes")){tnh(this.prototype);var a=this._properties;this.__observedAttributes=a?Object.keys(a).map(function(e){return g.prototype._addPropertyToAttributeMap(e)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var g=H(this);this.__properties=Object.assign({},g&&g._properties,K(this))}return this.__properties}}});
return p});var Y7f={},O8X=/-[a-z]/g,S74=/([A-Z])/g;for(var jF6={},vW0=HTMLElement.prototype;vW0;){for(var dRl=Object.getOwnPropertyNames(vW0),HH3=0;HH3<dRl.length;HH3++)jF6[dRl[HH3]]=!0;vW0=Object.getPrototypeOf(vW0)}var $RN=window.trustedTypes?function(d){return trustedTypes.isHTML(d)||trustedTypes.isScript(d)||trustedTypes.isScriptURL(d)}:function(){return!1},KE7=fb(function(d){var H=Dod(d);
d=function(){return H.apply(this,arguments)||this};
_.m(d,H);d.createPropertiesForAttributes=function(){for(var K=this.observedAttributes,c=0;c<K.length;c++)this.prototype._createPropertyAccessor(q8(K[c]))};
d.attributeNameForProperty=function(K){return a$(K)};
d.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);H.prototype._initializeProperties.call(this)};
d.prototype._initializeProtoProperties=function(K){for(var c in K)this._setProperty(c,K[c])};
d.prototype._ensureAttribute=function(K,c){this.hasAttribute(K)||this._valueToNodeAttribute(this,c,K)};
d.prototype._serializeValue=function(K){switch(typeof K){case "object":if(K instanceof Date)return K.toString();if(K){if($RN(K))return K;try{return JSON.stringify(K)}catch(c){return""}}default:return H.prototype._serializeValue.call(this,K)}};
d.prototype._deserializeValue=function(K,c){switch(c){case Object:try{var p=JSON.parse(K)}catch(g){p=K}break;case Array:try{p=JSON.parse(K)}catch(g){p=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+K)}break;case Date:p=isNaN(K)?String(K):Number(K);p=new Date(p);break;default:p=H.prototype._deserializeValue.call(this,K,c)}return p};
d.prototype._definePropertyAccessor=function(K,c){if(!jF6[K]){var p=this[K];p!==void 0&&(this.__data?this._setPendingProperty(K,p):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[K]=p))}H.prototype._definePropertyAccessor.call(this,K,c)};
d.prototype._hasAccessor=function(K){return this.__dataHasAccessor&&this.__dataHasAccessor[K]};
d.prototype._isPropertyPending=function(K){return!!(this.__dataPending&&K in this.__dataPending)};
return d});var cFB={"dom-if":!0,"dom-repeat":!0},pW6=!1,gLB=!1,iHN=function(){var d=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(H){return H}});
return function(H,K,c){K=K.getAttribute(c);d&&c.startsWith("on-")?H.setAttribute(c,d.createScript(K,c)):H.setAttribute(c,K)}}(),GRC=fb(function(d){var H=function(){return d.apply(this,arguments)||this};
_.m(H,d);H._parseTemplate=function(K,c){if(!K._templateInfo){var p=K._templateInfo={};p.nodeInfoList=[];p.nestedTemplate=!!c;p.stripWhiteSpace=c&&c.stripWhiteSpace||K.hasAttribute&&K.hasAttribute("strip-whitespace");this._parseTemplateContent(K,p,{parent:null})}return K._templateInfo};
H._parseTemplateContent=function(K,c,p){return this._parseTemplateNode(K.content,c,p)};
H._parseTemplateNode=function(K,c,p){var g=!1;K.localName!="template"||K.hasAttribute("preserve-content")?K.localName==="slot"&&(c.hasInsertionPoint=!0):g=this._parseTemplateNestedTemplate(K,c,p)||g;if(!pW6){pW6=!0;var a=document.createElement("textarea");a.placeholder="a";gLB=a.placeholder===a.textContent}gLB&&K.localName==="textarea"&&K.placeholder&&K.placeholder===K.textContent&&(K.textContent=null);K.firstChild&&this._parseTemplateChildNodes(K,c,p);K.hasAttributes&&K.hasAttributes()&&(g=this._parseTemplateNodeAttributes(K,
c,p)||g);return g||p.noted};
H._parseTemplateChildNodes=function(K,c,p){if(K.localName!=="script"&&K.localName!=="style")for(var g=K.firstChild,a=0,e;g;g=e){if(g.localName=="template"){var k=g.getAttribute("is");if(k&&cFB[k])for(e=g,e.removeAttribute("is"),g=e.ownerDocument.createElement(k),e.parentNode.replaceChild(g,e),g.appendChild(e);e.attributes.length;)k=e.attributes[0].name,iHN(g,e,k),e.removeAttribute(k)}e=g.nextSibling;if(g.nodeType===Node.TEXT_NODE){for(k=e;k&&k.nodeType===Node.TEXT_NODE;)g.textContent+=k.textContent,
e=k.nextSibling,K.removeChild(k),k=e;if(c.stripWhiteSpace&&!g.textContent.trim()){K.removeChild(g);continue}}k={parentIndex:a,parentInfo:p};this._parseTemplateNode(g,c,k)&&(k.infoIndex=c.nodeInfoList.push(k)-1);g.parentNode&&a++}};
H._parseTemplateNestedTemplate=function(K,c,p){c=this._parseTemplate(K,c);(c.content=K.content.ownerDocument.createDocumentFragment()).appendChild(K.content);p.templateInfo=c;return!0};
H._parseTemplateNodeAttributes=function(K,c,p){for(var g=!1,a=Array.from(K.attributes),e=a.length-1,k;k=a[e];e--)g=this._parseTemplateNodeAttribute(K,c,p,k.name,k.value)||g;return g};
H._parseTemplateNodeAttribute=function(K,c,p,g,a){return g.slice(0,3)==="on-"?(K.removeAttribute(g),p.events=p.events||[],p.events.push({name:g.slice(3),value:a}),!0):g==="id"?(p.id=a,!0):!1};
H._contentForTemplate=function(K){var c=K._templateInfo;return c&&c.content||K.content};
H.prototype._stampTemplate=function(K,c){K&&!K.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(K);c=c||this.constructor._parseTemplate(K);var p=c.nodeInfoList;K=document.importNode(c.content||K.content,!0);K.__noInsertionPoint=!c.hasInsertionPoint;var g=K.nodeList=Array(p.length);K.$={};for(var a=0,e=p.length,k=void 0;a<e&&(k=p[a]);a++){var C=g[a]=EEF(K,k);k.id&&(K.$[k.id]=C);var R=C,V=k,U=c;V.templateInfo&&(R._templateInfo=V.templateInfo,R._parentTemplateInfo=
U);if(k.events&&k.events.length)for(R=0,V=k.events,U=void 0;R<V.length&&(U=V[R]);R++)this._addMethodEventListenerToNode(C,U.name,U.value,this)}return K};
H.prototype._addMethodEventListenerToNode=function(K,c,p,g){p=yEY(g||K,p);this._addEventListenerToNode(K,c,p);return p};
H.prototype._addEventListenerToNode=function(K,c,p){K.addEventListener(c,p)};
H.prototype._removeEventListenerFromNode=function(K,c,p){K.removeEventListener(c,p)};
return H});var R$=0,M8=[],oLC={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},qcS=/[A-Z]/,aLg=function(d,H,K,c,p){var g=p?e1(d):d;if(H=H[g])for(g=0;g<H.length;g++){var a=H[g];if(a.info.lastRun!==R$&&(!p||jI4(d,a.trigger))){a.info.lastRun=R$;a=a.info;for(var e=K,k=c,C=0,R=e.length-1,V=-1;C<=R;){var U=C+R>>1,L=k.get(e[U].methodInfo)-k.get(a.methodInfo);if(L<0)C=U+1;else if(L>0)R=U-1;else{V=U;break}}V<
0&&(V=R+1);e.splice(V,0,a)}}},eJM=[],lL7=RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g"),jq=fb(function(d){var H=GRC(KE7(d));
d=function(){var K=H.call(this)||this;K.__isPropertyEffectsClient=!0;return K};
_.m(d,H);d.prototype._initializeProperties=function(){H.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
d.prototype._registerHost=function(){if(A4.length){var K=A4[A4.length-1];K._enqueueClient(this);this.__dataHost=K}};
d.prototype._initializeProtoProperties=function(K){this.__data=Object.create(K);this.__dataPending=Object.create(K);this.__dataOld={}};
d.prototype._initializeInstanceProperties=function(K){var c=this.__readOnly,p;for(p in K)c&&c[p]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[p]=this.__dataPending[p]=K[p])};
d.prototype._addPropertyEffect=function(K,c,p){this._createPropertyAccessor(K,c=="__readOnly");var g=AEf(this,c,!0)[K];g||(g=this[c][K]=[]);g.push(p)};
d.prototype._removePropertyEffect=function(K,c,p){K=AEf(this,c,!0)[K];p=K.indexOf(p);p>=0&&K.splice(p,1)};
d.prototype._hasPropertyEffect=function(K,c){c=this[c];return!(!c||!c[K])};
d.prototype._hasReadOnlyEffect=function(K){return this._hasPropertyEffect(K,"__readOnly")};
d.prototype._hasNotifyEffect=function(K){return this._hasPropertyEffect(K,"__notifyEffects")};
d.prototype._hasReflectEffect=function(K){return this._hasPropertyEffect(K,"__reflectEffects")};
d.prototype._hasComputedEffect=function(K){return this._hasPropertyEffect(K,"__computeEffects")};
d.prototype._setPendingPropertyOrPath=function(K,c,p,g){if(g||e1(Array.isArray(K)?K[0]:K)!==K){if(!g&&(g=C5(this,K),K=faC(this,K,c),!K||!H.prototype._shouldPropertyChange.call(this,K,c,g)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(K,c,p)){if(p=this.__dataLinkedPaths)for(var a in p)g=p[a],kl(a,K)?(g=xl(a,g,K),this._setPendingPropertyOrPath(g,c,!0,!0)):kl(g,K)&&(g=xl(g,a,K),this._setPendingPropertyOrPath(g,c,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[K])return this._setPendingProperty(K,
c,p);this[K]=c}return!1};
d.prototype._setUnmanagedPropertyToNode=function(K,c,p){if(p!==K[c]||typeof p=="object")c==="className"&&(K=(0,_.U_)(K)),K[c]=p};
d.prototype._setPendingProperty=function(K,c,p){var g=this.__dataHasPaths&&lC(K);if(this._shouldPropertyChange(K,c,(g?this.__dataTemp:this.__data)[K])){this.__dataPending||(this.__dataPending={},this.__dataOld={});K in this.__dataOld||(this.__dataOld[K]=this.__data[K]);g?this.__dataTemp[K]=c:this.__data[K]=c;this.__dataPending[K]=c;if(g||this.__notifyEffects&&this.__notifyEffects[K])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[K]=p;return!0}return!1};
d.prototype._setProperty=function(K,c){this._setPendingProperty(K,c,!0)&&this._invalidateProperties()};
d.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
d.prototype._enqueueClient=function(K){this.__dataPendingClients=this.__dataPendingClients||[];K!==this&&this.__dataPendingClients.push(K)};
d.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
d.prototype.__enableOrFlushClients=function(){var K=this.__dataPendingClients;if(K){this.__dataPendingClients=null;for(var c=0;c<K.length;c++){var p=K[c];p.__dataEnabled?p.__dataPending&&p._flushProperties():p._enableProperties()}}};
d.prototype._readyClients=function(){this.__enableOrFlushClients()};
d.prototype.setProperties=function(K,c){for(var p in K)!c&&this.__readOnly&&this.__readOnly[p]||this._setPendingPropertyOrPath(p,K[p],!0);this._invalidateProperties()};
d.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
d.prototype._propertiesChanged=function(K,c,p){K=this.__dataHasPaths;this.__dataHasPaths=!1;var g;if(g=this.__computeEffects)if(QF3){R$++;var a=caF(this),e=[],k;for(k in c)aLg(k,g,e,a,K);for(;k=e.shift();)g8l(this,"",c,p,k)&&aLg(k.methodInfo,g,e,a,K);Object.assign(p,this.__dataOld);Object.assign(c,this.__dataPending);this.__dataPending=null}else for(a=c;VG(this,g,a,p,K);)Object.assign(p,this.__dataOld),Object.assign(c,this.__dataPending),a=this.__dataPending,this.__dataPending=null;g=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(c,p,K);this._flushClients();VG(this,this.__reflectEffects,c,p,K);VG(this,this.__observeEffects,c,p,K);if(g){a=this.__notifyEffects;e=R$++;for(var C in g)if(g[C]){if(k=a){var R=a;k=e;var V=C,U=c,L=p,w=K,W=!1,J=w?e1(V):V;if(R=R[J]){J=0;for(var F=R.length,Y=void 0;J<F&&(Y=R[J]);J++)Y.info&&Y.info.lastRun===k||w&&!jI4(V,Y.trigger)||(Y.info&&(Y.info.lastRun=k),Y.fn(this,V,U,L,Y.info,w,void 0),W=!0)}k=W}if(k)var A=!0;else{if(k=K)k=C,V=c,U=e1(k),U!==
k?(U=a$(U)+"-changed",dO4(this,U,V[k],k),k=!0):k=!1;k&&(A=!0)}}var E;A&&(E=this.__dataHost)&&E._invalidateProperties&&E._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
d.prototype._propagatePropertyChanges=function(K,c,p){this.__propagateEffects&&VG(this,this.__propagateEffects,K,c,p);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,K,c,p)};
d.prototype._runEffectsForTemplate=function(K,c,p,g){var a=this,e=function(k,C){VG(a,K.propertyEffects,k,p,C,K.nodeList);for(var R=K.firstChild;R;R=R.nextSibling)a._runEffectsForTemplate(R,k,p,C)};
K.runEffects?K.runEffects(e,c,g):e(c,g)};
d.prototype.linkPaths=function(K,c){K=n5(K);c=n5(c);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[K]=c};
d.prototype.unlinkPaths=function(K){K=n5(K);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[K]};
d.prototype.notifySplices=function(K,c){var p={path:""};K=C5(this,K,p);CEX(this,K,p.path,c)};
d.prototype.get=function(K,c){return C5(c||this,K)};
d.prototype.set=function(K,c,p){p?faC(p,K,c):this.__readOnly&&this.__readOnly[K]||this._setPendingPropertyOrPath(K,c,!0)&&this._invalidateProperties()};
d.prototype.push=function(K){var c=_.sH.apply(1,arguments),p={path:""},g=C5(this,K,p),a=g.length,e=g.push.apply(g,_.ru(c));c.length&&wQ(this,g,p.path,a,c.length,[]);return e};
d.prototype.pop=function(K){var c={path:""};K=C5(this,K,c);var p=!!K.length,g=K.pop();p&&wQ(this,K,c.path,K.length,0,[g]);return g};
d.prototype.splice=function(K,c,p){var g=_.sH.apply(3,arguments),a={path:""},e=C5(this,K,a);c<0?c=e.length-Math.floor(-c):c&&(c=Math.floor(c));var k=arguments.length===2?e.splice(c):e.splice.apply(e,[c,p].concat(_.ru(g)));(g.length||k.length)&&wQ(this,e,a.path,c,g.length,k);return k};
d.prototype.shift=function(K){var c={path:""};K=C5(this,K,c);var p=!!K.length,g=K.shift();p&&wQ(this,K,c.path,0,0,[g]);return g};
d.prototype.unshift=function(K){var c=_.sH.apply(1,arguments),p={path:""},g=C5(this,K,p),a=g.unshift.apply(g,_.ru(c));c.length&&wQ(this,g,p.path,0,c.length,[]);return a};
d.prototype.notifyPath=function(K,c){if(arguments.length==1){var p={path:""};c=C5(this,K,p);p=p.path}else p=Array.isArray(K)?n5(K):K;this._setPendingPropertyOrPath(p,c,!0,!0)&&this._invalidateProperties()};
d.prototype._createReadOnlyProperty=function(K,c){this._addPropertyEffect(K,"__readOnly");c&&(this["_set"+(K[0].toUpperCase()+K.substring(1))]=function(p){this._setProperty(K,p)})};
d.prototype._createPropertyObserver=function(K,c,p){var g={property:K,method:c,dynamicFn:!!p};this._addPropertyEffect(K,"__observeEffects",{fn:vEM,info:g,trigger:{name:K}});p&&this._addPropertyEffect(c,"__observeEffects",{fn:vEM,info:g,trigger:{name:c}})};
d.prototype._createMethodObserver=function(K,c){var p=xOC(K);if(!p)throw Error("xd`"+K);adD(this,p,"__observeEffects",pwE,null,c)};
d.prototype._createNotifyingProperty=function(K){this._addPropertyEffect(K,"__notifyEffects",{fn:Hyl,info:{eventName:a$(K)+"-changed",property:K}})};
d.prototype._createReflectedProperty=function(K){var c=this.constructor.attributeNameForProperty(K);c[0]==="-"?console.warn("Property "+K+" cannot be reflected to attribute "+c+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(K,"__reflectEffects",{fn:$OF,info:{attrName:c}})};
d.prototype._createComputedProperty=function(K,c,p){var g=xOC(c);if(!g)throw Error("yd`"+c);c=adD(this,g,"__computeEffects",g8l,K,p);AEf(this,"__computeInfo")[K]=c};
d.prototype._marshalArgs=function(K,c,p){for(var g=this.__data,a=[],e=0,k=K.length;e<k;e++){var C=K[e],R=C.name,V=C.structured,U=C.wildcard,L=C.value;C.literal||(U?(C=kl(R,c),V=n8Y(g,p,C?c:R),L={path:C?c:R,value:V,base:C?C5(g,R):V}):L=V?n8Y(g,p,R):g[R]);if(mK&&!this._overrideLegacyUndefined&&L===void 0&&K.length>1)return M8;a[e]=L}return a};
d.addPropertyEffect=function(K,c,p){this.prototype._addPropertyEffect(K,c,p)};
d.createPropertyObserver=function(K,c,p){this.prototype._createPropertyObserver(K,c,p)};
d.createMethodObserver=function(K,c){this.prototype._createMethodObserver(K,c)};
d.createNotifyingProperty=function(K){this.prototype._createNotifyingProperty(K)};
d.createReadOnlyProperty=function(K,c){this.prototype._createReadOnlyProperty(K,c)};
d.createReflectedProperty=function(K){this.prototype._createReflectedProperty(K)};
d.createComputedProperty=function(K,c,p){this.prototype._createComputedProperty(K,c,p)};
d.bindTemplate=function(K){return this.prototype._bindTemplate(K)};
d.prototype._bindTemplate=function(K,c){var p=this.constructor._parseTemplate(K),g=this.__preBoundTemplateInfo==p;if(!g)for(var a in p.propertyEffects)this._createPropertyAccessor(a);c?(p=Object.create(p),p.wasPreBound=g,this.__templateInfo?(K=K._parentTemplateInfo||this.__templateInfo,c=K.lastChild,p.parent=K,K.lastChild=p,(p.previousSibling=c)?c.nextSibling=p:K.firstChild=p):this.__templateInfo=p):this.__preBoundTemplateInfo=p;return p};
d._addTemplatePropertyEffect=function(K,c,p){(K.hostProps=K.hostProps||{})[c]=!0;K=K.propertyEffects=K.propertyEffects||{};(K[c]=K[c]||[]).push(p)};
d.prototype._stampTemplate=function(K,c){c=c||this._bindTemplate(K,!0);A4.push(this);K=H.prototype._stampTemplate.call(this,K,c);A4.pop();c.nodeList=K.nodeList;if(!c.wasPreBound)for(var p=c.childNodes=[],g=K.firstChild;g;g=g.nextSibling)p.push(g);K.templateInfo=c;p=c.nodeList;g=c.nodeInfoList;if(g.length)for(var a=0;a<g.length;a++){var e=p[a],k=g[a].bindings;if(k)for(var C=0;C<k.length;C++){var R=k[C],V=e,U=R;if(U.isCompound){for(var L=V.__dataCompoundStorage||(V.__dataCompoundStorage={}),w=U.parts,
W=Array(w.length),J=0;J<w.length;J++)W[J]=w[J].literal;w=U.target;L[w]=W;U.literal&&U.kind=="property"&&(w==="className"&&(V=(0,_.U_)(V)),V[w]=U.literal)}qi1(e,this,R)}e.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(c,this.__data,null,!1),this._flushClients());return K};
d.prototype._removeBoundDom=function(K){K=K.templateInfo;var c=K.previousSibling,p=K.nextSibling,g=K.parent;c?c.nextSibling=p:g&&(g.firstChild=p);p?p.previousSibling=c:g&&(g.lastChild=c);K.nextSibling=K.previousSibling=null;K=K.childNodes;for(c=0;c<K.length;c++)p=K[c],(0,_.U_)((0,_.U_)(p).parentNode).removeChild(p)};
d._parseTemplateNode=function(K,c,p){var g=H._parseTemplateNode.call(this,K,c,p);if(K.nodeType===Node.TEXT_NODE){var a=this._parseBindings(K.textContent,c);a&&(K.textContent=ldL(a)||" ",o81(this,c,p,"text","textContent",a),g=!0)}return g};
d._parseTemplateNodeAttribute=function(K,c,p,g,a){var e=this._parseBindings(a,c);if(e){a=g;var k="property";qcS.test(g)?k="attribute":g[g.length-1]=="$"&&(g=g.slice(0,-1),k="attribute");var C=ldL(e);C&&k=="attribute"&&(g=="class"&&K.hasAttribute("class")&&(C+=" "+K.getAttribute(g)),K.setAttribute(g,C));k=="attribute"&&a=="disable-upgrade$"&&K.setAttribute(g,"");K.localName==="input"&&a==="value"&&K.setAttribute(a,"");K.removeAttribute(a);k==="property"&&(g=q8(g));o81(this,c,p,k,g,e,C);return!0}return H._parseTemplateNodeAttribute.call(this,
K,c,p,g,a)};
d._parseTemplateNestedTemplate=function(K,c,p){var g=H._parseTemplateNestedTemplate.call(this,K,c,p),a=K.parentNode,e=p.templateInfo,k=a.localName==="dom-if",C=a.localName==="dom-repeat";E4&&(k||C)&&(a.removeChild(K),p=p.parentInfo,p.templateInfo=e,p.noted=!0,g=!1);K=e.hostProps;if(yT&&k)K&&(c.hostProps=Object.assign(c.hostProps||{},K),E4||(p.parentInfo.noted=!0));else for(var R in K)o81(this,c,p,"property","_host_"+R,[{mode:"{",source:R,dependencies:[R],hostProp:!0}]);return g};
d._parseBindings=function(K,c){for(var p=[],g=0,a;(a=lL7.exec(K))!==null;){a.index>g&&p.push({literal:K.slice(g,a.index)});g=a[1][0];var e=!!a[2];a=a[3].trim();var k=!1,C="",R=-1;g=="{"&&(R=a.indexOf("::"))>0&&(C=a.substring(R+2),a=a.substring(0,R),k=!0);R=xOC(a);var V=[];if(R){var U=R,L=U.args;U=U.methodName;for(var w=0;w<L.length;w++){var W=L[w];W.literal||V.push(W)}if((L=c.dynamicFns)&&L[U]||R.static)V.push(U),R.dynamicFn=!0}else V.push(a);p.push({source:a,mode:g,negate:e,customEvent:k,signature:R,
dependencies:V,event:C});g=lL7.lastIndex}g&&g<K.length&&(K=K.substring(g))&&p.push({literal:K});return p.length?p:null};
d._evaluateBinding=function(K,c,p,g,a,e){K=c.signature?pwE(K,p,g,a,c.signature):p!=c.source?C5(K,c.source):e&&lC(p)?C5(K,p):K.__data[p];c.negate&&(K=!K);return K};
_.H3.Object.defineProperties(d.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return oLC}}});
return d}),A4=[];var ekX=window.ShadyCSS&&window.ShadyCSS.cssBuild,vq=fb(function(d){function H(c,p,g,a){if(!ekX){for(var e=p.content.querySelectorAll("style"),k=hJF(p),C=Lp4(g),R=p.content.firstElementChild,V=0;V<C.length;V++){var U=C[V];U.textContent=c._processStyleText(U.textContent,a);p.content.insertBefore(U,R)}for(R=C=0;R<k.length;R++)V=k[R],U=e[C],U!==V?(V=V.cloneNode(!0),U.parentNode.insertBefore(V,U)):C++,V.textContent=c._processStyleText(V.textContent,a)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(p,
g);if(YaS&&ekX&&sF6&&(p=p.content.querySelectorAll("style"))){var L="";Array.from(p).forEach(function(w){L+=w.textContent;w.parentNode.removeChild(w)});
c._styleSheet=new CSSStyleSheet;c._styleSheet.replaceSync(L)}}
var K=AO6(jq(d));d=function(){return K.call(this)||this};
_.m(d,K);d._finalizeClass=function(){K._finalizeClass.call(this);var c;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(c=this.__ownObservers)&&this.createObservers(c,this._properties);this._prepareTemplate()};
d._prepareTemplate=function(){var c=this.template;c&&(typeof c==="string"?(console.error("template getter must return HTMLTemplateElement"),c=null):tw||(c=c.cloneNode(!0)));this.prototype._template=c};
d.createProperties=function(c){for(var p in c){var g=this.prototype,a=p,e=c[p],k=c;e.computed&&(e.readOnly=!0);e.computed&&(g._hasReadOnlyEffect(a)?console.warn("Cannot redefine computed property '"+a+"'."):g._createComputedProperty(a,e.computed,k));e.readOnly&&!g._hasReadOnlyEffect(a)?g._createReadOnlyProperty(a,!e.computed):e.readOnly===!1&&g._hasReadOnlyEffect(a)&&console.warn("Cannot make readOnly property '"+a+"' non-readOnly.");e.reflectToAttribute&&!g._hasReflectEffect(a)?g._createReflectedProperty(a):
e.reflectToAttribute===!1&&g._hasReflectEffect(a)&&console.warn("Cannot make reflected property '"+a+"' non-reflected.");e.notify&&!g._hasNotifyEffect(a)?g._createNotifyingProperty(a):e.notify===!1&&g._hasNotifyEffect(a)&&console.warn("Cannot make notify property '"+a+"' non-notify.");e.observer&&g._createPropertyObserver(a,e.observer,k[e.observer]);g._addPropertyToAttributeMap(a)}};
d.createObservers=function(c,p){for(var g=this.prototype,a=0;a<c.length;a++)g._createMethodObserver(c[a],p)};
d.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);K.prototype._initializeProperties.call(this);this.rootPath=FWB;this.importPath=this.constructor.importPath;var c=this.constructor;if(!c.hasOwnProperty("__propertyDefaults")){c.__propertyDefaults=null;var p=c._properties,g;for(g in p){var a=p[g];"value"in a&&(c.__propertyDefaults=c.__propertyDefaults||{},c.__propertyDefaults[g]=a)}}if(c=c.__propertyDefaults)for(var e in c)p=c[e],
this._canApplyPropertyDefault(e)&&(p=typeof p.value=="function"?p.value.call(this):p.value,this._hasAccessor(e)?this._setPendingProperty(e,p,!0):this[e]=p)};
d.prototype._canApplyPropertyDefault=function(c){return!this.hasOwnProperty(c)};
d._processStyleText=function(c,p){return JEL(c,p)};
d._finalizeTemplate=function(c){var p=this.prototype._template;if(p&&!p.__polymerFinalized){p.__polymerFinalized=!0;var g=this.importPath;g=g?_.GN(g):"";H(this,p,c,g);this.prototype._bindTemplate(p)}};
d.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);K.prototype.connectedCallback.call(this)};
d.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);K.prototype.ready.call(this)};
d.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));K.prototype._readyClients.call(this)};
d.prototype._attachDom=function(c){var p=(0,_.U_)(this);if(p.attachShadow)return c?(p.shadowRoot||(p.attachShadow({mode:"open",shadyUpgradeFragment:c}),p.shadowRoot.appendChild(c),this.constructor._styleSheet&&(p.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),TV7&&window.ShadyDOM&&window.ShadyDOM.flushInitial(p.shadowRoot),p.shadowRoot):null;throw Error("Ad");};
d.prototype.updateStyles=function(c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,c)};
d.prototype.resolveUrl=function(c,p){!p&&this.importPath&&(p=_.GN(this.importPath));return _.GN(c,p)};
d._parseTemplateContent=function(c,p,g){p.dynamicFns=p.dynamicFns||this._properties;return K._parseTemplateContent.call(this,c,p,g)};
d._addTemplatePropertyEffect=function(c,p,g){!E_||p in this._properties||g.info.part.signature&&g.info.part.signature.static||g.info.part.hostProp||c.nestedTemplate||console.warn("Property '"+p+"' used in template but not declared in 'properties'; attribute will not be observed.");return K._addTemplatePropertyEffect.call(this,c,p,g)};
_.H3.Object.defineProperties(d,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var c=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof c==="function"&&(c=c());if(c===void 0){if(c=this.hasOwnProperty("is")){c=this.is;var p=null;if(c&&(!yG||Zo7)&&(p=PV.import(c,"template"),yG&&!p))throw Error("zd`"+c);c=p}c=c||Object.getPrototypeOf(this.prototype).constructor.template}this._template=c}return this._template},
set:function(c){this._template=c}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var c=this.importMeta;c?this._importPath=sIX(c.url):this._importPath=(c=PV.import(this.is))&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return d});var kRg=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(d){return d}}),ral=function(d,H){xRg(d,H);
this.value=H.reduce(function(K,c,p){return K+Wp1(c)+d[p+1]},d[0]).toString()},xRg;
ral.prototype.toString=function(){return this.value};
_.nLN=function(d){var H=_.sH.apply(1,arguments);xRg(d,H);var K=document.createElement("template");H=H.reduce(function(c,p,g){if(p instanceof HTMLTemplateElement)p=p.innerHTML;else if(p instanceof ral)p=Wp1(p);else throw Error("Cd`"+p);return c+p+d[g+1]},d[0]);
kRg&&(H=kRg.createHTML(H));K.innerHTML=H;return K};
xRg=function(d,H){if(!Array.isArray(d)||!Array.isArray(d.raw)||H.length!==d.length-1)throw new TypeError("Dd");};var da=vq(HTMLElement);var CZ7=fb(function(d){var H=vq(d);d=function(){var K=H.call(this)||this;K.__lastItems=null;K.__lastMulti=null;K.__selectedMap=null;return K};
_.m(d,H);d.prototype.__updateSelection=function(K,c){var p=c.path;p=="items"?(c=c.base||[],p=this.__lastItems,K!==this.__lastMulti&&this.clearSelection(),p&&(p=IdY(c,p),this.__applySplices(p)),this.__lastItems=c,this.__lastMulti=K):c.path=="items.splices"?this.__applySplices(c.value.indexSplices):(K=p.slice(6),c=parseInt(K,10),K.indexOf(".")<0&&K==c&&this.__deselectChangedIdx(c))};
d.prototype.__applySplices=function(K){for(var c=this,p=this.__selectedMap,g={},a=0;a<K.length;g={s$jscomp$108:void 0},a++){g.s$jscomp$108=K[a];p.forEach(function(R){return function(V,U){V<R.s$jscomp$108.index||(V>=R.s$jscomp$108.index+R.s$jscomp$108.removed.length?p.set(U,V+R.s$jscomp$108.addedCount-R.s$jscomp$108.removed.length):p.set(U,-1))}}(g));
for(var e=0;e<g.s$jscomp$108.addedCount;e++){var k=g.s$jscomp$108.index+e;p.has(this.items[k])&&p.set(this.items[k],k)}}this.__updateLinks();var C=0;p.forEach(function(R,V){R<0?(c.multi?c.splice("selected",C,1):c.selected=c.selectedItem=null,p.delete(V)):C++})};
d.prototype.__updateLinks=function(){var K=this;this.__dataLinkedPaths={};if(this.multi){var c=0;this.__selectedMap.forEach(function(p){p>=0&&K.linkPaths("items."+p,"selected."+c++)})}else this.__selectedMap.forEach(function(p){K.linkPaths("selected","items."+p);
K.linkPaths("selectedItem","items."+p)})};
d.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
d.prototype.isSelected=function(K){return this.__selectedMap.has(K)};
d.prototype.isIndexSelected=function(K){return this.isSelected(this.items[K])};
d.prototype.__deselectChangedIdx=function(K){var c=this,p=this.__selectedIndexForItemIndex(K);if(p>=0){var g=0;this.__selectedMap.forEach(function(a,e){p==g++&&c.deselect(e)})}};
d.prototype.__selectedIndexForItemIndex=function(K){if(K=this.__dataLinkedPaths["items."+K])return parseInt(K.slice(9),10)};
d.prototype.deselect=function(K){var c=this.__selectedMap.get(K);if(c>=0){this.__selectedMap.delete(K);var p;this.multi&&(p=this.__selectedIndexForItemIndex(c));this.__updateLinks();this.multi?this.splice("selected",p,1):this.selected=this.selectedItem=null}};
d.prototype.deselectIndex=function(K){this.deselect(this.items[K])};
d.prototype.select=function(K){this.selectIndex(this.items.indexOf(K))};
d.prototype.selectIndex=function(K){var c=this.items[K];this.isSelected(c)?this.toggle&&this.deselectIndex(K):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(c,K),this.__updateLinks(),this.multi?this.push("selected",c):this.selected=this.selectedItem=c)};
_.H3.Object.defineProperties(d,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}});
return d}),RkB=CZ7(da),HU=function(){return RkB.apply(this,arguments)||this};
_.m(HU,RkB);_.H3.Object.defineProperties(HU,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(HU.is,HU);var VG7=window.Polymer;window.Polymer=function(d){return window.Polymer._polymerFn(d)};
VG7&&Object.assign(Polymer,VG7);Polymer._polymerFn=function(){throw Error("Ed");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:JEL,resolveUrl:_.GN,pathFromUrl:sIX};Polymer.DomModule=PV;Polymer.Async={timeOut:_.DR,animationFrame:_.rg,idlePeriod:bo7,microTask:TN};Polymer.dedupingMixin=fb;Polymer.wrap=_.U_;Polymer.PropertiesChanged=Dod;Polymer.telemetry={instanceCount:fiM,incrementInstanceCount:function(){fiM++},
registrations:QIi,register:tnh,dumpRegistrations:function(){QIi.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=AO6;Polymer.CaseMap={dashToCamelCase:q8,camelToDashCase:a$};Polymer.PropertyAccessors=KE7;Polymer.TemplateStamp=GRC;Polymer.Path={isPath:lC,root:e1,isAncestor:b8L,isDescendant:kl,translate:xl,matches:NEh,normalize:n5,split:D$h,get:C5,set:faC,isDeep:lC};Polymer.Settings={useShadow:Yl,useNativeCSSProperties:WWA,useNativeCustomElements:BVS,get rootPath(){return FWB},setRootPath:function(d){FWB=d},
get sanitizeDOMValue(){return hw},setSanitizeDOMValue:function(d){hw=d},
get passiveTouchGestures(){return SiM},setPassiveTouchGestures:function(d){SiM=d},
get strictTemplatePolicy(){return yG},setStrictTemplatePolicy:function(d){yG=d},
get allowTemplateFromDomModule(){return Zo7},setAllowTemplateFromDomModule:function(d){Zo7=d},
get legacyOptimizations(){return tw},setLegacyOptimizations:function(d){tw=d},
get syncInitialRender(){return TV7},setSyncInitialRender:function(d){TV7=d},
get legacyUndefined(){return mK},setLegacyUndefined:function(d){mK=d},
get legacyWarnings(){return E_},setLegacyWarnings:function(d){E_=d},
get orderedComputed(){return QF3},setOrderedComputed:function(d){QF3=d},
get fastDomIf(){return yT},setFastDomIf:function(d){yT=d},
get removeNestedTemplates(){return E4},setRemoveNestedTemplates:function(d){E4=d},
get suppressTemplateNotifications(){return bJ},setSuppressTemplateNotifications:bJ};Polymer.rootPath!==void 0&&(FWB=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(hw=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(SiM=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(yG=Polymer.strictTemplatePolicy);Zo7=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(tw=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(TV7=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(mK=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(E_=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(QF3=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(yT=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(E4=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(bJ=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return hw},
set:function(d){hw=d}});Polymer.PropertyEffects=jq;Polymer.StyleGather={stylesFromModules:UOC,stylesFromModule:VfC,stylesFromTemplate:hJF,stylesFromModuleImports:Lp4,cssFromModules:mOF,cssFromModule:Mff,cssFromTemplate:wwi,cssFromModuleImports:function(d){return(d=PV.import(d))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(d):""}};Polymer.ElementMixin=vq;Polymer.updateStyles=function(d){window.ShadyCSS&&window.ShadyCSS.styleDocument(d)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:IdY};Polymer.html=_.nLN;Polymer.htmlLiteral=function(d){return new ral(d,_.sH.apply(1,arguments))};Polymer.Element=da;Polymer.ArraySelectorMixin=CZ7;Polymer.ArraySelector=HU;var URB=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,hkd=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,qlM=/@media\s(.*)/;var JaC=null,Xwl=window.HTMLImports&&window.HTMLImports.whenReady||null,soL;var LEA=null,$q=null,KT=function(){this.customStyles=[];this.enqueued=!1;FpM(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},MGg=function(d){!d.enqueued&&$q&&(d.enqueued=!0,FpM($q))};
KT.prototype.addCustomStyle=function(d){d.__seenByShadyCSS||(d.__seenByShadyCSS=!0,this.customStyles.push(d),MGg(this))};
KT.prototype.getStyleForCustomStyle=function(d){if(d.__shadyCSSCachedStyle)return d.__shadyCSSCachedStyle;var H;d.getStyle?H=d.getStyle():H=d;return H};
KT.prototype.processStyles=function(){for(var d=this.customStyles,H=0;H<d.length;H++){var K=d[H];if(!K.__shadyCSSCachedStyle){var c=this.getStyleForCustomStyle(K);c&&(c=c.__appliedElement||c,LEA&&LEA(c),K.__shadyCSSCachedStyle=c)}}return d};
KT.prototype.addCustomStyle=KT.prototype.addCustomStyle;KT.prototype.getStyleForCustomStyle=KT.prototype.getStyleForCustomStyle;KT.prototype.processStyles=KT.prototype.processStyles;Object.defineProperties(KT.prototype,{transformCallback:{get:function(){return LEA},
set:function(d){LEA=d}},
validateCallback:{get:function(){return $q},
set:function(d){var H=!1;$q||(H=!0);$q=d;H&&MGg(this)}}});var T54=!(window.ShadyDOM&&window.ShadyDOM.inUse),Zyi,dr;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(dr=window.ShadyCSS.cssBuild);var mRA=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?Zyi=window.ShadyCSS.nativeCss:window.ShadyCSS?(QoX(window.ShadyCSS),window.ShadyCSS=void 0):QoX(window.WebComponents&&window.WebComponents.flags);var iVY=Zyi;var wWl=new KT;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(d,H){wWl.processStyles();B5i(d,H)},
styleElement:function(){wWl.processStyles()},
styleDocument:function(d){wWl.processStyles();B5i(document.body,d)},
getComputedStyleValue:function(d,H){return zJL(d,H)},
flushCustomStyles:function(){},
nativeCss:iVY,nativeShadow:T54,cssBuild:dr,disableRuntime:mRA});window.ShadyCSS.CustomStyleInterface=wWl;var PZ7=window.ShadyCSS.CustomStyleInterface,cU=function(){var d=HTMLElement.call(this)||this;d._style=null;PZ7.addCustomStyle(d);return d};
_.m(cU,HTMLElement);cU.prototype.getStyle=function(){if(this._style)return this._style;var d=this.querySelector("style");if(!d)return null;this._style=d;var H=d.getAttribute("include");H&&(d.removeAttribute("include"),d.textContent=mOF(H)+d.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
cU.prototype.getStyle=cU.prototype.getStyle;window.customElements.define("custom-style",cU);Polymer.CustomStyle=cU;var pT=function(){this._timer=this._callback=this._asyncModule=null},iS,ILU;
pT.prototype.setConfig=function(d,H){var K=this;this._asyncModule=d;this._callback=H;this._timer=this._asyncModule.run(function(){K._timer=null;iS.delete(K);K._callback()})};
pT.prototype.cancel=function(){this.isActive()&&(uv6(this),iS.delete(this))};
var uv6=function(d){d.isActive()&&(d._asyncModule.cancel(d._timer),d._timer=null)};
pT.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
pT.prototype.isActive=function(){return this._timer!=null};
_.G8=function(d,H,K){d instanceof pT?uv6(d):d=new pT;d.setConfig(H,K);return d};
iS=new Set;_.ob=function(d){iS.add(d)};
ILU=function(){var d=!!iS.size;iS.forEach(function(H){try{H.flush()}catch(K){setTimeout(function(){throw K;})}});
return d};var Yi4=typeof document.head.style.touchAction==="string",tff=["mousedown","mousemove","mouseup","click"],AaY=[0,1,4,2],rFX;try{rFX=(new MouseEvent("test",{buttons:1})).buttons===1}catch(d){rFX=!1}var fdL=rFX,OyF=!1;(function(){try{var d=Object.defineProperty({},"passive",{get:function(){OyF=!0}});
window.addEventListener("test",null,d);window.removeEventListener("test",null,d)}catch(H){}})();
var ya4=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),byF=[],WEU={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},oVY={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},N5E=function(d){var H=d.sourceCapabilities;if(!H||H.firesTouchEvents)if(d.__polymerGesturesHandled={skip:!0},d.type==="click"){H=!1;for(var K=H1E(d),c=0;c<K.length;c++){if(K[c].nodeType===Node.ELEMENT_NODE)if(K[c].localName==="label")byF.push(K[c]);
else if(WEU[K[c].localName]){var p=K[c];var g=Array.prototype.slice.call(p.labels||[]);if(!g.length){g=[];try{var a=p.getRootNode();if(p.id){var e=a.querySelectorAll("label[for = '"+p.id+"']");for(p=0;p<e.length;p++)g.push(e[p])}}catch(k){}}for(p=0;p<g.length;p++)H=H||byF.indexOf(g[p])>-1}if(K[c]===B0l)return}H||(d.preventDefault(),d.stopPropagation())}},B0l=null,qs=null,Kt1=0,cSY=0,$JC=-1,pGD=!1;
document.addEventListener("touchend",function(d){qs||DOf(!0);B0l=H1E(d)[0];qs=_.G8(qs,_.DR.after(2500),function(){DOf();qs=B0l=null})},OyF?{passive:!0}:!1);
var H1E=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(d){return d.composedPath&&d.composedPath()||[]},Jw={},zN=[];
gVM({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){rQ(this.info)},
mousedown:function(d){if(I$(d)){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d),K=this;v8F(this.info,function(c){I$(c)||(QG("up",H,c),rQ(K.info))},function(c){I$(c)&&QG("up",H,c);
rQ(K.info)});
QG("down",H,d)}},
touchstart:function(d){QG("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d),d.changedTouches[0],d)},
touchend:function(d){QG("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d),d.changedTouches[0],d)}});
gVM({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(d){this.moves.length>2&&this.moves.shift();this.moves.push(d)},
movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start";this.info.started=!1;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=!1;rQ(this.info)},
mousedown:function(d){if(I$(d)){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d),K=this,c=function(p){var g=p.clientX,a=p.clientY;i1C(K.info,g,a)&&(K.info.state=K.info.started?p.type==="mouseup"?"end":"track":"start",K.info.state==="start"&&Xx("tap"),K.info.addMove({x:g,y:a}),I$(p)||(K.info.state="end",rQ(K.info)),H&&GZ1(K.info,H,p),K.info.started=!0)};
v8F(this.info,c,function(p){K.info.started&&c(p);rQ(K.info)});
this.info.x=d.clientX;this.info.y=d.clientY}},
touchstart:function(d){d=d.changedTouches[0];this.info.x=d.clientX;this.info.y=d.clientY},
touchmove:function(d){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d);d=d.changedTouches[0];var K=d.clientX,c=d.clientY;i1C(this.info,K,c)&&(this.info.state==="start"&&Xx("tap"),this.info.addMove({x:K,y:c}),GZ1(this.info,H,d),this.info.state="track",this.info.started=!0)},
touchend:function(d){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d);d=d.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:d.clientX,y:d.clientY}),GZ1(this.info,H,d))}});
gVM({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=!1},
mousedown:function(d){I$(d)&&(this.info.x=d.clientX,this.info.y=d.clientY)},
click:function(d){I$(d)&&qu4(this.info,d)},
touchstart:function(d){d=d.changedTouches[0];this.info.x=d.clientX;this.info.y=d.clientY},
touchend:function(d){qu4(this.info,d.changedTouches[0],d)}});var zkS=fb(function(d){var H=function(){return d.apply(this,arguments)||this};
_.m(H,d);H.prototype._addEventListenerToNode=function(K,c,p){s_(K,c,p)||d.prototype._addEventListenerToNode.call(this,K,c,p)};
H.prototype._removeEventListenerFromNode=function(K,c,p){Fx(K,c,p)||d.prototype._removeEventListenerFromNode.call(this,K,c,p)};
return H});var ab=fb(function(d){var H=function(){return d.apply(this,arguments)||this};
_.m(H,d);H.prototype._shouldPropertyChange=function(K,c,p){return ar1(this,K,c,p,!0)};
return H}),XWl=fb(function(d){var H=function(){return d.apply(this,arguments)||this};
_.m(H,d);H.prototype._shouldPropertyChange=function(K,c,p){return ar1(this,K,c,p,this.mutableData)};
_.H3.Object.defineProperties(H,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return H});
ab._mutablePropertyChange=ar1;var lrY=!1;var JFB=zkS(XWl(jq(HTMLElement))),lS=function(){var d=JFB.call(this)||this;if(yG)throw Error("Fd");d.root=null;d.$=null;d.__children=null;return d};
_.m(lS,JFB);_.G=lS.prototype;_.G.attributeChangedCallback=function(){this.mutableData=!0};
_.G.connectedCallback=function(){efC()||(this.style.display="none");this.render()};
_.G.disconnectedCallback=function(){this.__removeChildren()};
_.G.__insertChildren=function(){(0,_.U_)((0,_.U_)(this).parentNode).insertBefore(this.root,this)};
_.G.__removeChildren=function(){if(this.__children)for(var d=0;d<this.__children.length;d++)this.root.appendChild(this.__children[d])};
_.G.render=function(){var d=this;if(!this.__children){var H=H||this.querySelector("template");if(!H){var K=new MutationObserver(function(){if(H=d.querySelector("template"))K.disconnect(),d.render();else throw Error("Gd");});
K.observe(this,{childList:!0});return}this.root=this._stampTemplate(H);this.$=this.root.$;this.__children=[];for(var c=this.root.firstChild;c;c=c.nextSibling)this.__children[this.__children.length]=c;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.H3.Object.defineProperties(lS,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",lS);Polymer.Debouncer=pT;Polymer.Gestures={gestures:Jw,recognizers:zN,deepTargetFind:dJl,addListener:s_,removeListener:Fx,register:gVM,setTouchAction:_.ZQ,prevent:Xx,resetMouseCanceller:function(){qs&&qs.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:s_,remove:Fx};Polymer.GestureEventListeners=zkS;Polymer.MutableData=ab;Polymer.OptionalMutableData=XWl;Polymer.DomBind=lS;_.eL=function(){do{var d=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var H=ILU()}while(d||H)};var kZ4=null;xJL.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:xJL,writable:!0}});var M31=jq(xJL),Lt5=ab(M31),s6d=jq(function(){}),O_=function(d){var H=s6d.call(this)||this;
H._configureProperties(d);H.root=H._stampTemplate(H.__dataHost);var K=[];H.children=K;for(var c=H.root.firstChild;c;c=c.nextSibling)K.push(c),c.__templatizeInstance=H;H.__templatizeOwner&&H.__templatizeOwner.__hideTemplateChildren__&&H._showHideChildren(!0);K=H.__templatizeOptions;(d&&K.instanceProps||!K.instanceProps)&&H._enableProperties();return H};
_.m(O_,s6d);_.G=O_.prototype;_.G._configureProperties=function(d){if(this.__templatizeOptions.forwardHostProp)for(var H in this.__hostProps)this._setPendingProperty(H,this.__dataHost["_host_"+H]);for(var K in d)this._setPendingProperty(K,d[K])};
_.G.forwardHostProp=function(d,H){this._setPendingPropertyOrPath(d,H,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.G._addEventListenerToNode=function(d,H,K){var c=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(d,H,function(g){g.model=c;K(g)});
else{var p=this.__dataHost.__dataHost;p&&p._addEventListenerToNode(d,H,K)}};
_.G._showHideChildren=function(d){Cv1(d,this.children)};
_.G._setUnmanagedPropertyToNode=function(d,H,K){d.__hideTemplateChildren__&&d.nodeType==Node.TEXT_NODE&&H=="textContent"?d.__polymerTextContent__=K:s6d.prototype._setUnmanagedPropertyToNode.call(this,d,H,K)};
_.G.dispatchEvent=function(){return!0};
_.H3.Object.defineProperties(O_.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var d=this.__parentModel;if(!d){var H;d=this;do d=d.__dataHost.__dataHost;while((H=d.__templatizeOptions)&&!H.parentModel);this.__parentModel=d}return d}}});
var V34=ab(O_);var kq=function(){var d=da.call(this)||this;d.__renderDebouncer=null;d._lastIf=!1;d.__hideTemplateChildren__=!1;return d};
_.m(kq,da);_.G=kq.prototype;_.G.__debounceRender=function(){var d=this;this.__renderDebouncer=_.G8(this.__renderDebouncer,TN,function(){return d.__render()});
_.ob(this.__renderDebouncer)};
_.G.disconnectedCallback=function(){da.prototype.disconnectedCallback.call(this);var d=(0,_.U_)(this).parentNode;d&&(d.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.U_)(d).host)||this.__teardownInstance()};
_.G.connectedCallback=function(){da.prototype.connectedCallback.call(this);efC()||(this.style.display="none");this.if&&this.__debounceRender()};
_.G.__ensureTemplate=function(){var d=this;if(!this.__template){var H=this._templateInfo?this:(0,_.U_)(this).querySelector("template");if(!H){var K=new MutationObserver(function(){if((0,_.U_)(d).querySelector("template"))K.disconnect(),d.__render();else throw Error("Jd");});
K.observe(this,{childList:!0});return!1}this.__template=H}return!0};
_.G.__ensureInstance=function(){var d=(0,_.U_)(this).parentNode;if(this.__hasInstance()){var H=this.__getInstanceNodes();if(H&&H.length&&(0,_.U_)(this).previousSibling!==H[H.length-1])for(var K=0,c=void 0;K<H.length&&(c=H[K]);K++)(0,_.U_)(d).insertBefore(c,this)}else{if(!d||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(d)}return!0};
_.G.render=function(){_.eL()};
_.G.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();bJ&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.G.__hasInstance=function(){};
_.G.__getInstanceNodes=function(){};
_.G.__createAndInsertInstance=function(){};
_.G.__teardownInstance=function(){};
_.G._showHideChildren=function(){};
_.H3.Object.defineProperties(kq,{is:{configurable:!0,enumerable:!0,get:function(){return"dom-if"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}},
properties:{configurable:!0,enumerable:!0,get:function(){return{if:{type:Boolean,observer:kq.prototype.__debounceRender},restamp:{type:Boolean,observer:kq.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var FEB=function(){var d=kq.call(this)||this;d.__instance=null;d.__syncInfo=null;return d};
_.m(FEB,kq);_.G=FEB.prototype;_.G.__hasInstance=function(){return!!this.__instance};
_.G.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.G.__createAndInsertInstance=function(d){var H=this,K=this.__dataHost||this;if(yG&&!this.__dataHost)throw Error("Hd");var c=K._bindTemplate(this.__template,!0);c.runEffects=function(p,g,a){var e=H.__syncInfo;if(H.if)e&&(H.__syncInfo=null,H._showHideChildren(),g=Object.assign(e.changedProps,g)),p(g,a);else if(H.__instance)if(e||(e=H.__syncInfo={runEffects:p,changedProps:{}}),a)for(var k in g)p=e1(k),e.changedProps[p]=H.__dataHost[p];else Object.assign(e.changedProps,g)};
this.__instance=K._stampTemplate(this.__template,c);(0,_.U_)(d).insertBefore(this.__instance,this)};
_.G.__syncHostProperties=function(){var d=this.__syncInfo;d&&(this.__syncInfo=null,d.runEffects(d.changedProps,!1))};
_.G.__teardownInstance=function(){var d=this.__dataHost||this;this.__instance&&(d._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.G._showHideChildren=function(){var d=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==d&&(this.__instance.__hidden=d,Cv1(d,this.__instance.templateInfo.childNodes));d||this.__syncHostProperties()};
var ZH3=function(){var d=kq.call(this)||this;d.__ctor=null;d.__instance=null;d.__invalidProps=null;return d};
_.m(ZH3,kq);_.G=ZH3.prototype;_.G.__hasInstance=function(){return!!this.__instance};
_.G.__getInstanceNodes=function(){return this.__instance.children};
_.G.__createAndInsertInstance=function(d){this.__ctor||(this.__ctor=S1(this.__template,this,{mutableData:!0,forwardHostProp:function(H,K){this.__instance&&(this.if?this.__instance.forwardHostProp(H,K):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[e1(H)]=!0))}}));
this.__instance=new this.__ctor;(0,_.U_)(d).insertBefore(this.__instance.root,this)};
_.G.__teardownInstance=function(){if(this.__instance){var d=this.__instance.children;if(d&&d.length){var H=(0,_.U_)(d[0]).parentNode;if(H){H=(0,_.U_)(H);for(var K=0,c=void 0;K<d.length&&(c=d[K]);K++)H.removeChild(c)}}this.__instance=this.__invalidProps=null}};
_.G.__syncHostProperties=function(){var d=this.__invalidProps;if(d){this.__invalidProps=null;for(var H in d)this.__instance._setPendingProperty(H,this.__dataHost[H]);this.__instance._flushProperties()}};
_.G._showHideChildren=function(){var d=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==d&&(this.__instance.__hidden=d,this.__instance._showHideChildren(d));d||this.__syncHostProperties()};
_.JB=yT?FEB:ZH3;customElements.define(_.JB.is,_.JB);Polymer.enqueueDebouncer=_.ob;Polymer.flush=_.eL;Polymer.Templatize={templatize:S1,modelForElement:rSM};Polymer.TemplateInstanceBase=O_;Polymer.DomIf=_.JB;var T0S=XWl(da),XQ=function(){var d=T0S.call(this)||this;d.__instances=[];d.__renderDebouncer=null;d.__itemsIdxToInstIdx={};d.__chunkCount=null;d.__renderStartTime=null;d.__itemsArrayChanged=!1;d.__shouldMeasureChunk=!1;d.__shouldContinueChunking=!1;d.__chunkingId=0;d.__sortFn=null;d.__filterFn=null;d.__observePaths=null;d.__ctor=null;d.__isDetached=!0;d.template=null;return d};
_.m(XQ,T0S);_.G=XQ.prototype;_.G.disconnectedCallback=function(){T0S.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var d=0;d<this.__instances.length;d++)this.__detachInstance(d);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.G.connectedCallback=function(){T0S.prototype.connectedCallback.call(this);efC()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var d=(0,_.U_)((0,_.U_)(this).parentNode),H=0;H<this.__instances.length;H++)this.__attachInstance(H,d);this.__chunkingId&&this.__render()}};
_.G.__ensureTemplatized=function(){var d=this;if(!this.__ctor){var H=this.template=this._templateInfo?this:this.querySelector("template");if(!H){var K=new MutationObserver(function(){if(d.querySelector("template"))K.disconnect(),d.__render();else throw Error("Kd");});
K.observe(this,{childList:!0});return!1}var c={};c[this.as]=!0;c[this.indexAs]=!0;c[this.itemsIndexAs]=!0;this.__ctor=S1(H,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:c,forwardHostProp:function(p,g){for(var a=this.__instances,e=0,k=void 0;e<a.length&&(k=a[e]);e++)k.forwardHostProp(p,g)},
notifyInstanceProp:function(p,g,a){NEh(this.as,g)&&(p=p[this.itemsIndexAs],g==this.as&&(this.items[p]=a),g=xl(this.as,"items."+p,g),this.notifyPath(g,a))}})}return!0};
_.G.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.G.__functionFromPropertyValue=function(d){if(typeof d==="string"){var H=this.__getMethodHost();return function(){return H[d].apply(H,arguments)}}return d};
_.G.__sortChanged=function(d){this.__sortFn=this.__functionFromPropertyValue(d);this.items&&this.__debounceRender(this.__render)};
_.G.__filterChanged=function(d){this.__filterFn=this.__functionFromPropertyValue(d);this.items&&this.__debounceRender(this.__render)};
_.G.__computeFrameTime=function(d){return Math.ceil(1E3/d)};
_.G.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.G.__handleObservedPaths=function(d){if(this.__sortFn||this.__filterFn)if(!d)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var H=this.__observePaths,K=0;K<H.length;K++)d.indexOf(H[K])===0&&this.__debounceRender(this.__render,this.delay)};
_.G.__itemsChanged=function(d){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(d.path,d.value)||(d.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.G.__debounceRender=function(d,H){H=H===void 0?0:H;this.__renderDebouncer=_.G8(this.__renderDebouncer,H>0?_.DR.after(H):TN,d.bind(this));_.ob(this.__renderDebouncer)};
_.G.render=function(){this.__debounceRender(this.__render);_.eL()};
_.G.__render=function(){var d=this;if(this.__ensureTemplatized()){var H=this.items||[],K=this.__sortAndFilterItems(H),c=this.__calculateLimit(K.length);this.__updateInstances(H,c,K);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){d.__chunkingId=null;d.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);bJ&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.G.__sortAndFilterItems=function(d){for(var H=this,K=Array(d.length),c=0;c<d.length;c++)K[c]=c;this.__filterFn&&(K=K.filter(function(p,g,a){return H.__filterFn(d[p],g,a)}));
this.__sortFn&&K.sort(function(p,g){return H.__sortFn(d[p],d[g])});
return K};
_.G.__calculateLimit=function(d){var H=d,K=this.__instances.length;if(this.initialCount){var c;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(H=Math.min(d,this.initialCount),this.__chunkCount=(c=Math.max(H-K,0))||1):(c=Math.min(Math.max(d-K,0),this.__chunkCount),H=Math.min(K+c,d));this.__shouldMeasureChunk=c===this.__chunkCount;this.__shouldContinueChunking=H<d;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return H};
_.G.__continueChunking=function(){if(this.__shouldMeasureChunk){var d=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/d*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.G.__updateInstances=function(d,H,K){var c=this.__itemsIdxToInstIdx={},p;for(p=0;p<H;p++){var g=this.__instances[p],a=K[p],e=d[a];c[a]=p;g?(g._setPendingProperty(this.as,e),g._setPendingProperty(this.indexAs,p),g._setPendingProperty(this.itemsIndexAs,a),g._flushProperties()):this.__insertInstance(e,p,a)}for(d=this.__instances.length-1;d>=p;d--)this.__detachAndRemoveInstance(d)};
_.G.__detachInstance=function(d){d=this.__instances[d];for(var H=(0,_.U_)(d.root),K=0;K<d.children.length;K++)H.appendChild(d.children[K]);return d};
_.G.__attachInstance=function(d,H){H.insertBefore(this.__instances[d].root,this)};
_.G.__detachAndRemoveInstance=function(d){this.__detachInstance(d);this.__instances.splice(d,1)};
_.G.__stampInstance=function(d,H,K){var c={};c[this.as]=d;c[this.indexAs]=H;c[this.itemsIndexAs]=K;return new this.__ctor(c)};
_.G.__insertInstance=function(d,H,K){d=this.__stampInstance(d,H,K);K=(K=this.__instances[H+1])?K.children[0]:this;(0,_.U_)((0,_.U_)(this).parentNode).insertBefore(d.root,K);return this.__instances[H]=d};
_.G._showHideChildren=function(d){for(var H=0;H<this.__instances.length;H++)this.__instances[H]._showHideChildren(d)};
_.G.__handleItemPath=function(d,H){var K=d.slice(6),c=K.indexOf(".");d=c<0?K:K.substring(0,c);if(d==parseInt(d,10)){K=c<0?"":K.substring(c+1);this.__handleObservedPaths(K);if(d=this.__instances[this.__itemsIdxToInstIdx[d]])d._setPendingPropertyOrPath(this.as+(K?"."+K:""),H,!1,!0),d._flushProperties();return!0}};
_.G.itemForElement=function(d){return(d=this.modelForElement(d))&&d[this.as]};
_.G.indexForElement=function(d){return(d=this.modelForElement(d))&&d[this.indexAs]};
_.G.modelForElement=function(d){return rSM(this.template,d)};
_.H3.Object.defineProperties(XQ,{is:{configurable:!0,enumerable:!0,get:function(){return"dom-repeat"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}},
properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:XQ.prototype.__sortChanged},filter:{type:Function,observer:XQ.prototype.__filterChanged},observe:{type:String,observer:XQ.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!bJ,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},
_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__itemsChanged(items.*)"]}}});
XQ.prototype._setRenderedItemCount=function(){};
customElements.define(XQ.is,XQ);Polymer.DomRepeat=XQ;var Q6g=function(d,H){var K=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=d;this.callback=H;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){K._schedule()};
this.connect();this._schedule()},tGX=function(d){var H=(0,_.U_)(d);
if(bC(d))return H.assignedNodes({flatten:!0});d=[];for(var K=0;K<H.childNodes.length;K++){var c=H.childNodes[K];bC(c)?d.push.apply(d,_.ru((0,_.U_)(c).assignedNodes({flatten:!0}))):d.push(c)}return d};
_.G=Q6g.prototype;_.G.connect=function(){var d=this;bC(this._target)?this._listenSlots([this._target]):(0,_.U_)(this._target).children&&(this._listenSlots((0,_.U_)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(H){d._processMutations(H)}):(this._nativeChildrenObserver=new MutationObserver(function(H){d._processMutations(H)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.G.disconnect=function(){bC(this._target)?this._unlistenSlots([this._target]):(0,_.U_)(this._target).children&&(this._unlistenSlots((0,_.U_)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null));this._connected=!1};
_.G._schedule=function(){var d=this;this._scheduled||(this._scheduled=!0,TN.run(function(){return d.flush()}))};
_.G._processMutations=function(d){this._processSlotMutations(d);this.flush()};
_.G._processSlotMutations=function(d){if(d)for(var H=0;H<d.length;H++){var K=d[H];K.addedNodes&&this._listenSlots(K.addedNodes);K.removedNodes&&this._unlistenSlots(K.removedNodes)}};
_.G.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var d={target:this._target,addedNodes:[],removedNodes:[]},H=tGX(this._target),K=IdY(H,this._effectiveNodes),c=0,p=void 0;c<K.length&&(p=K[c]);c++)for(var g=0,a=void 0;g<p.removed.length&&(a=p.removed[g]);g++)d.removedNodes.push(a);
c=0;for(p=void 0;c<K.length&&(p=K[c]);c++)for(g=p.index;g<p.index+p.addedCount;g++)d.addedNodes.push(H[g]);this._effectiveNodes=H;H=!1;if(d.addedNodes.length||d.removedNodes.length)H=!0,this.callback.call(this._target,d);return H};
_.G._listenSlots=function(d){for(var H=0;H<d.length;H++){var K=d[H];bC(K)&&K.addEventListener("slotchange",this._boundSchedule)}};
_.G._unlistenSlots=function(d){for(var H=0;H<d.length;H++){var K=d[H];bC(K)&&K.removeEventListener("slotchange",this._boundSchedule)}};var xq=Element.prototype,Yc0=xq.matches||xq.matchesSelector||xq.mozMatchesSelector||xq.msMatchesSelector||xq.oMatchesSelector||xq.webkitMatchesSelector,OH3=function(d,H){return Yc0.call(d,H)},N8=function(d){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(d);
this.node=d},bHN;
_.G=N8.prototype;_.G.observeNodes=function(d){return new Q6g(this.node,d)};
_.G.unobserveNodes=function(d){d.disconnect()};
_.G.notifyObserver=function(){};
_.G.deepContains=function(d){if((0,_.U_)(this.node).contains(d))return!0;var H=d;for(d=d.ownerDocument;H&&H!==d&&H!==this.node;)H=(0,_.U_)(H).parentNode||(0,_.U_)(H).host;return H===this.node};
_.G.getOwnerRoot=function(){return(0,_.U_)(this.node).getRootNode()};
_.G.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.U_)(this.node).assignedNodes({flatten:!0}):[]};
_.G.getDestinationInsertionPoints=function(){for(var d=[],H=(0,_.U_)(this.node).assignedSlot;H;)d.push(H),H=(0,_.U_)(H).assignedSlot;return d};
_.G.importNode=function(d,H){return(0,_.U_)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(d,H)};
_.G.getEffectiveChildNodes=function(){return tGX(this.node)};
_.G.queryDistributedElements=function(d){for(var H=this.getEffectiveChildNodes(),K=[],c=0,p=H.length,g=void 0;c<p&&(g=H[c]);c++)g.nodeType===Node.ELEMENT_NODE&&OH3(g,d)&&K.push(g);return K};
_.H3.Object.defineProperties(N8.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var d=this.node;return d._activeElement!==void 0?d._activeElement:d.activeElement}}});
var nT=function(d){this.event=d};
_.H3.Object.defineProperties(nT.prototype,{rootTarget:{configurable:!0,enumerable:!0,get:function(){return this.path[0]}},
localTarget:{configurable:!0,enumerable:!0,get:function(){return this.event.target}},
path:{configurable:!0,enumerable:!0,get:function(){return this.event.composedPath()}}});
var ScX=N8;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var EL7=window.ShadyDOM.Wrapper,yFB=function(){return EL7.apply(this,arguments)||this};
_.m(yFB,EL7);Object.getOwnPropertyNames(N8.prototype).forEach(function(d){d!="activeElement"&&d!="constructor"&&(yFB.prototype[d]=N8.prototype[d])});
BKE(yFB.prototype,["classList"]);ScX=yFB;Object.defineProperties(nT.prototype,{localTarget:{get:function(){var d=this.event.currentTarget;d=d&&_.Iu(d).getOwnerRoot();for(var H=this.path,K=0;K<H.length;K++){var c=H[K];if(_.Iu(c).getOwnerRoot()===d)return c}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else Wth(),BKE(N8.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),zfC();bHN=ScX;_.Iu=function(d){d=d||document;if(d instanceof ScX)return d;if(d instanceof nT)return d;var H=d.__domApi;H||(d instanceof Event?H=new nT(d):H=new ScX(d),d.__domApi=H);return H};var N0g=/:host\(:dir\((ltr|rtl)\)\)/g,DRB=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,fL6=/:dir\((?:ltr|rtl)\)/,AFB=!(!window.ShadyDOM||!window.ShadyDOM.inUse),f5=[],CT=null,DQ="",j6M=fb(function(d){AFB||CT||(DQ=document.documentElement.getAttribute("dir"),CT=new MutationObserver(XGl),CT.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var H=KE7(d);d=function(){var K=H.call(this)||this;K.__autoDirOptOut=!1;return K};
_.m(d,H);d._processStyleText=function(K,c){K=H._processStyleText.call(this,K,c);!AFB&&fL6.test(K)&&(K=this._replaceDirInCssText(K),this.__activateDir=!0);return K};
d._replaceDirInCssText=function(K){K=K.replace(N0g,':host([dir="$1"])');return K=K.replace(DRB,':host([dir="$2"]) $1')};
d.prototype.ready=function(){H.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
d.prototype.connectedCallback=function(){H.prototype.connectedCallback&&H.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(CT&&CT.takeRecords().length&&XGl(),f5.push(this),this.__autoDirOptOut||this.setAttribute("dir",DQ))};
d.prototype.disconnectedCallback=function(){H.prototype.disconnectedCallback&&H.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var K=f5.indexOf(this);K>-1&&f5.splice(K,1)}};
d.__activateDir=!1;return d});var vLg=function(d){for(;d;){var H=Object.getOwnPropertyDescriptor(d,"observedAttributes");if(H)return H.get;d=Object.getPrototypeOf(d.prototype).constructor}return function(){return[]}};
fb(function(d){var H=vq(d),K=vLg(H);d=function(){return H.call(this)||this};
_.m(d,H);d.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:H.prototype._initializeProperties.call(this)};
d.prototype._enableProperties=function(){this.__isUpgradeDisabled||H.prototype._enableProperties.call(this)};
d.prototype._canApplyPropertyDefault=function(c){return H.prototype._canApplyPropertyDefault.call(this,c)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(c))};
d.prototype.attributeChangedCallback=function(c,p,g,a){c=="disable-upgrade"?this.__isUpgradeDisabled&&g==null&&(H.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.U_)(this).isConnected&&H.prototype.connectedCallback.call(this)):H.prototype.attributeChangedCallback.call(this,c,p,g,a)};
d.prototype.connectedCallback=function(){this.__isUpgradeDisabled||H.prototype.connectedCallback.call(this)};
d.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||H.prototype.disconnectedCallback.call(this)};
_.H3.Object.defineProperties(d,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return K.call(this).concat("disable-upgrade")}}});
return d});var Aw=!1,sB1=[],j1=[];var QBh=window.ShadyDOM,t3E=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",O1C):document.readyState==="interactive"||document.readyState==="complete"?O1C():window.addEventListener("DOMContentLoaded",O1C);var ySM=function(){this.end=this.start=0;this.rules=this.parent=this.previous=null;this.cssText=this.parsedCssText="";this.atRule=!1;this.type=0;this.parsedSelector=this.selector=this.keyframesName=""},Su1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,EVL=/@import[^;]*;/gim,jBC=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,vVY=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,d55=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,HV1=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,frE=/^@[^\s]*keyframes/,
DJ5=/\s+/g;var $5h={};var prl=Promise.resolve();var dvU=new Set;var Hmg=/;\s*/m,$v0=/^\s*(initial)|(inherit)\s*$/,KZ3=/\s*!important/,ccB=function(){this._map={}};
ccB.prototype.set=function(d,H){d=d.trim();this._map[d]={properties:H,dependants:{}}};
ccB.prototype.get=function(d){d=d.trim();return this._map[d]||null};
var p53=null,Rb=function(){this._measureElement=this._currentElement=null;this._map=new ccB};
_.G=Rb.prototype;_.G.detectMixin=function(d){d=hkd.test(d)||URB.test(d);hkd.lastIndex=0;URB.lastIndex=0;return d};
_.G.transformTemplate=function(d,H){if(d._gatheredStyle===void 0){var K=[];for(var c=d.content.querySelectorAll("style"),p=0;p<c.length;p++){var g=c[p];if(g.hasAttribute("shady-unscoped")){if(!T54){var a=g.textContent;if(!dvU.has(a)){dvU.add(a);var e=document.createElement("style");e.setAttribute("shady-unscoped","");e.textContent=a;document.head.appendChild(e)}g.parentNode.removeChild(g)}}else K.push(g.textContent),g.parentNode.removeChild(g)}(K=K.join("").trim())?(c=document.createElement("style"),
c.textContent=K,d.content.insertBefore(c,d.content.firstChild),K=c):K=null;d._gatheredStyle=K}return(d=d._gatheredStyle)?this.JSC$11202_transformStyle(d,H):null};
_.G.JSC$11202_transformStyle=function(d,H){H=H===void 0?"":H;var K=otF(d);this.transformRules(K,H);d.textContent=GjD(K);return K};
_.G.transformCustomStyle=function(d){var H=this,K=otF(d);aeM(K,function(c){c.selector===":root"&&(c.selector="html");H.transformRule(c)});
d.textContent=GjD(K);return K};
_.G.transformRules=function(d,H){var K=this;this._currentElement=H;aeM(d,function(c){K.transformRule(c)});
this._currentElement=null};
_.G.transformRule=function(d){d.cssText=giX(this,d.parsedCssText,d);d.selector===":root"&&(d.selector=":host > *")};
var giX=function(d,H,K){H=H.replace(URB,function(c,p,g,a){return d._produceCssProperties(c,p,g,a,K)});
return d._consumeCssProperties(H,K)};
_.G=Rb.prototype;_.G._getInitialValueForProperty=function(d){this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement));return window.getComputedStyle(this._measureElement).getPropertyValue(d)};
_.G._fallbacksFromPreviousRules=function(d){for(var H=this,K=d;K.parent;)K=K.parent;var c={},p=!1;aeM(K,function(g){(p=p||g===d)||g.selector===d.selector&&Object.assign(c,H._cssTextToMap(g.parsedCssText))});
return c};
_.G._consumeCssProperties=function(d,H){for(var K;K=hkd.exec(d);){var c=K[0],p=K[1];K=K.index;var g=K+c.indexOf("@apply"),a=K+c.length;c=d.slice(0,g);d=d.slice(a);g=H?this._fallbacksFromPreviousRules(H):{};Object.assign(g,this._cssTextToMap(c));p=this._atApplyToCssProperties(p,g);d=c+p+d;hkd.lastIndex=K+p.length}return d};
_.G._atApplyToCssProperties=function(d,H){d=d.replace(Hmg,"");var K=[],c=this._map.get(d);c||(this._map.set(d,{}),c=this._map.get(d));if(c){this._currentElement&&(c.dependants[this._currentElement]=!0);var p,g=c.properties;for(p in g){var a=H&&H[p];c=[p,": var(",d,"_-_",p];a&&c.push(",",a.replace(KZ3,""));c.push(")");KZ3.test(g[p])&&c.push(" !important");K.push(c.join(""))}}return K.join("; ")};
_.G._replaceInitialOrInherit=function(d,H){var K=$v0.exec(H);K&&(H=K[1]?this._getInitialValueForProperty(d):"apply-shim-inherit");return H};
_.G._cssTextToMap=function(d,H){H=H===void 0?!1:H;d=d.split(";");for(var K,c,p={},g=0;g<d.length;g++)if(K=d[g])c=K.split(":"),c.length>1&&(K=c[0].trim(),c=c.slice(1).join(":"),H&&(c=this._replaceInitialOrInherit(K,c)),p[K]=c);return p};
_.G._invalidateMixinEntry=function(d){if(p53)for(var H in d.dependants)H!==this._currentElement&&p53(H)};
_.G._produceCssProperties=function(d,H,K,c,p){var g=this;K&&lei(K,function(w,W){W&&g._map.get(W)&&(c="@apply "+W+";")});
if(!c)return d;var a=this._consumeCssProperties(""+c,p);p=d.slice(0,d.indexOf("--"));var e=a=this._cssTextToMap(a,!0),k=this._map.get(H),C=k&&k.properties;C?e=Object.assign(Object.create(C),a):this._map.set(H,e);var R=[],V,U=!1;for(V in e){var L=a[V];L===void 0&&(L="initial");!C||V in C||(U=!0);R.push(H+"_-_"+V+": "+L)}U&&this._invalidateMixinEntry(k);k&&(k.properties=e);K&&(p=d+";"+p);return p+R.join("; ")+";"};
Rb.prototype.detectMixin=Rb.prototype.detectMixin;Rb.prototype.transformStyle=Rb.prototype.JSC$11202_transformStyle;Rb.prototype.transformCustomStyle=Rb.prototype.transformCustomStyle;Rb.prototype.transformRules=Rb.prototype.transformRules;Rb.prototype.transformRule=Rb.prototype.transformRule;Rb.prototype.transformTemplate=Rb.prototype.transformTemplate;Rb.prototype._separator="_-_";Object.defineProperty(Rb.prototype,"invalidCallback",{get:function(){return p53},
set:function(d){p53=d}});var Vc=new Rb,imA=function(){this.customStyleInterface=null;Vc.invalidCallback=KsL},Uv=function(d){!d.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(d.customStyleInterface=window.ShadyCSS.CustomStyleInterface,d.customStyleInterface.transformCallback=function(H){Vc.transformCustomStyle(H)},d.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){d.customStyleInterface.enqueued&&d.flushCustomStyles()})})};
_.G=imA.prototype;_.G.prepareTemplate=function(d,H){Uv(this);eW5(d)===""&&($5h[H]=d,H=Vc.transformTemplate(d,H),d._styleAst=H)};
_.G.flushCustomStyles=function(){Uv(this);if(this.customStyleInterface){var d=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var H=0;H<d.length;H++){var K=this.customStyleInterface.getStyleForCustomStyle(d[H]);K&&Vc.transformCustomStyle(K)}this.customStyleInterface.enqueued=!1}}};
_.G.styleSubtree=function(d,H){Uv(this);H&&B5i(d,H);if(d.shadowRoot)for(this.styleElement(d),d=d.shadowRoot.children||d.shadowRoot.childNodes,H=0;H<d.length;H++)this.styleSubtree(d[H]);else for(d=d.children||d.childNodes,H=0;H<d.length;H++)this.styleSubtree(d[H])};
_.G.styleElement=function(d){Uv(this);var H=d.localName,K;H?H.indexOf("-")>-1?K=H:K=d.getAttribute&&d.getAttribute("is")||"":K=d.is;H=$5h[K];if(!(H&&eW5(H)!==""||!H||c9X(H))){if(c9X(H)||H._applyShimValidatingVersion!==H._applyShimNextVersion)this.prepareTemplate(H,K),gt4(H);if(d=d.shadowRoot)if(d=d.querySelector("style"))d.__cssRules=H._styleAst,d.textContent=GjD(H._styleAst)}};
_.G.styleDocument=function(d){Uv(this);this.styleSubtree(document.body,d)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var hg=new imA,Ged=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(d,H){hg.flushCustomStyles();hg.prepareTemplate(d,H)},
prepareTemplateStyles:function(d,H,K){window.ShadyCSS.prepareTemplate(d,H,K)},
prepareTemplateDom:function(){},
styleSubtree:function(d,H){hg.flushCustomStyles();hg.styleSubtree(d,H)},
styleElement:function(d){hg.flushCustomStyles();hg.styleElement(d)},
styleDocument:function(d){hg.flushCustomStyles();hg.styleDocument(d)},
getComputedStyleValue:function(d,H){return zJL(d,H)},
flushCustomStyles:function(){hg.flushCustomStyles()},
nativeCss:iVY,nativeShadow:T54,cssBuild:dr,disableRuntime:mRA};Ged&&(window.ShadyCSS.CustomStyleInterface=Ged)}window.ShadyCSS.ApplyShim=Vc;var oiM;oiM=window.ShadyCSS;_.LT=fb(function(d){d=zkS(vq(d));var H=ekX?d:j6M(d),K=vLg(H),c={x:"pan-x",y:"pan-y",none:"none",all:"auto"};d=function(){return H.call(this)||this};
_.m(d,H);d.prototype.created=function(){};
d.prototype.__attributeReaction=function(p,g,a){(this.__dataAttributes&&this.__dataAttributes[p]||p==="disable-upgrade")&&this.attributeChangedCallback(p,g,a,null)};
d.prototype.setAttribute=function(p,g){if(t5U&&!this._legacyForceObservedAttributes){var a=this.getAttribute(p);H.prototype.setAttribute.call(this,p,g);this.__attributeReaction(p,a,String(g))}else H.prototype.setAttribute.call(this,p,g)};
d.prototype.removeAttribute=function(p){if(t5U&&!this._legacyForceObservedAttributes){var g=this.getAttribute(p);H.prototype.removeAttribute.call(this,p);this.__attributeReaction(p,g,null)}else H.prototype.removeAttribute.call(this,p)};
d.prototype._enableProperties=function(){this.__isUpgradeDisabled||H.prototype._enableProperties.call(this)};
d.prototype._canApplyPropertyDefault=function(p){return H.prototype._canApplyPropertyDefault.call(this,p)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(p))};
d.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(H.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
d.prototype.attached=function(){};
d.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(H.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
d.prototype.detached=function(){};
d.prototype.attributeChangedCallback=function(p,g,a,e){g!==a&&(p=="disable-upgrade"?this.__isUpgradeDisabled&&a==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.U_)(this).isConnected&&this.connectedCallback()):(H.prototype.attributeChangedCallback.call(this,p,g,a,e),this.attributeChanged(p,g,a)))};
d.prototype.attributeChanged=function(){};
d.prototype._initializeProperties=function(){if(tw&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var p=Object.getPrototypeOf(this);p.hasOwnProperty("__hasRegisterFinished")||(this._registered(),p.__hasRegisterFinished=!0);H.prototype._initializeProperties.call(this);this.root=this;this.created();t5U&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
d.prototype._takeAttributes=function(){for(var p=this.attributes,g=0,a=p.length;g<a;g++){var e=p[g];this.__attributeReaction(e.name,null,e.value)}};
d.prototype._registered=function(){};
d.prototype.ready=function(){this._ensureAttributes();H.prototype.ready.call(this)};
d.prototype._ensureAttributes=function(){};
d.prototype._applyListeners=function(){};
d.prototype.serialize=function(p){return this._serializeValue(p)};
d.prototype.deserialize=function(p,g){return this._deserializeValue(p,g)};
d.prototype.reflectPropertyToAttribute=function(p,g,a){this._propertyToAttribute(p,g,a)};
d.prototype.serializeValueToAttribute=function(p,g,a){this._valueToNodeAttribute(a||this,p,g)};
d.prototype.extend=function(p,g){if(!p||!g)return p||g;for(var a=Object.getOwnPropertyNames(g),e=0,k=void 0;e<a.length&&(k=a[e]);e++){var C=Object.getOwnPropertyDescriptor(g,k);C&&Object.defineProperty(p,k,C)}return p};
d.prototype.mixin=function(p,g){for(var a in g)p[a]=g[a];return p};
d.prototype.chainObject=function(p,g){p&&g&&p!==g&&(p.__proto__=g);return p};
d.prototype.instanceTemplate=function(p){p=this.constructor._contentForTemplate(p);return document.importNode(p,!0)};
d.prototype.fire=function(p,g,a){a=a||{};g=g===null||g===void 0?{}:g;p=new Event(p,{bubbles:a.bubbles===void 0?!0:a.bubbles,cancelable:!!a.cancelable,composed:a.composed===void 0?!0:a.composed});p.detail=g;(0,_.U_)(a.node||this).dispatchEvent(p);return p};
d.prototype.listen=function(p,g,a){p=p||this;var e=this.__boundListeners||(this.__boundListeners=new WeakMap),k=e.get(p);k||(k={},e.set(p,k));e=g+a;k[e]||(k[e]=this._addMethodEventListenerToNode(p,g,a,this))};
d.prototype.unlisten=function(p,g,a){p=p||this;var e=this.__boundListeners&&this.__boundListeners.get(p);a=g+a;var k=e&&e[a];k&&(this._removeEventListenerFromNode(p,g,k),e[a]=null)};
d.prototype.setScrollDirection=function(p,g){_.ZQ(g||this,c[p]||"auto")};
d.prototype.$$=function(p){return this.root.querySelector(p)};
d.prototype.distributeContent=function(){var p=_.Iu(this);window.ShadyDOM&&p.shadowRoot&&ShadyDOM.flush()};
d.prototype.getEffectiveChildNodes=function(){return _.Iu(this).getEffectiveChildNodes()};
d.prototype.queryDistributedElements=function(p){return _.Iu(this).queryDistributedElements(p)};
d.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(p){return p.nodeType===Node.ELEMENT_NODE})};
d.prototype.getEffectiveTextContent=function(){for(var p=this.getEffectiveChildNodes(),g=[],a=0,e;e=p[a];a++)e.nodeType!==Node.COMMENT_NODE&&g.push(e.textContent);return g.join("")};
d.prototype.queryEffectiveChildren=function(p){return(p=this.queryDistributedElements(p))&&p[0]};
d.prototype.queryAllEffectiveChildren=function(p){return this.queryDistributedElements(p)};
d.prototype.getContentChildNodes=function(p){return(p=this.root.querySelector(p||"slot"))?_.Iu(p).getDistributedNodes():[]};
d.prototype.getContentChildren=function(p){return this.getContentChildNodes(p).filter(function(g){return g.nodeType===Node.ELEMENT_NODE})};
d.prototype.isLightDescendant=function(p){return this!==p&&(0,_.U_)(this).contains(p)&&(0,_.U_)(this).getRootNode()===(0,_.U_)(p).getRootNode()};
d.prototype.isLocalDescendant=function(p){return this.root===(0,_.U_)(p).getRootNode()};
d.prototype.scopeSubtree=function(p,g){return YuM(p,g===void 0?!1:g)};
d.prototype.getComputedStyleValue=function(p){return oiM.getComputedStyleValue(this,p)};
d.prototype.debounce=function(p,g,a){this._debouncers=this._debouncers||{};return this._debouncers[p]=_.G8(this._debouncers[p],a>0?_.DR.after(a):TN,g.bind(this))};
d.prototype.isDebouncerActive=function(p){this._debouncers=this._debouncers||{};p=this._debouncers[p];return!(!p||!p.isActive())};
d.prototype.flushDebouncer=function(p){this._debouncers=this._debouncers||{};(p=this._debouncers[p])&&p.flush()};
d.prototype.cancelDebouncer=function(p){this._debouncers=this._debouncers||{};(p=this._debouncers[p])&&p.cancel()};
d.prototype.async=function(p,g){return g>0?_.DR.run(p.bind(this),g):~TN.run(p.bind(this))};
d.prototype.cancelAsync=function(p){p<0?TN.cancel(~p):_.DR.cancel(p)};
d.prototype.create=function(p,g){p=document.createElement(p);if(g)if(p.setProperties)p.setProperties(g);else for(var a in g)p[a]=g[a];return p};
d.prototype.elementMatches=function(p,g){return OH3(g||this,p)};
d.prototype.toggleAttribute=function(p,g){var a=this;arguments.length===3&&(a=arguments[2]);arguments.length==1&&(g=!a.hasAttribute(p));if(g)return(0,_.U_)(a).setAttribute(p,""),!0;(0,_.U_)(a).removeAttribute(p);return!1};
d.prototype.toggleClass=function(p,g,a){a=a||this;arguments.length==1&&(g=!a.classList.contains(p));g?a.classList.add(p):a.classList.remove(p)};
d.prototype.transform=function(p,g){g=g||this;g.style.webkitTransform=p;g.style.transform=p};
d.prototype.translate3d=function(p,g,a,e){this.transform("translate3d("+p+","+g+","+a+")",e||this)};
d.prototype.arrayDelete=function(p,g){if(Array.isArray(p)){if(g=p.indexOf(g),g>=0)return p.splice(g,1)}else if(g=C5(this,p).indexOf(g),g>=0)return this.splice(p,g,1);return null};
d.prototype._logger=function(p,g){Array.isArray(g)&&g.length===1&&Array.isArray(g[0])&&(g=g[0]);switch(p){case "log":case "warn":case "error":console[p].apply(console,_.ru(g))}};
d.prototype._log=function(){this._logger("log",_.sH.apply(0,arguments))};
d.prototype._warn=function(){this._logger("warn",_.sH.apply(0,arguments))};
d.prototype._error=function(){this._logger("error",_.sH.apply(0,arguments))};
d.prototype._logf=function(p){return["[%s::%s]",this.is,p].concat(_.ru(_.sH.apply(1,arguments)))};
_.H3.Object.defineProperties(d.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var p=(0,_.U_)(this).getRootNode();return p instanceof DocumentFragment?p.host:p}}});
_.H3.Object.defineProperties(d,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return t5U&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],tnh(this.prototype)),this.__observedAttributes):K.call(this).concat("disable-upgrade")}}});
d.prototype.is="";return d});Polymer.FlattenedNodesObserver=Q6g;Polymer.DomApi=bHN;Polymer.EventApi=nT;Polymer.dom=_.Iu;Polymer.dom.matchesSelector=OH3;Polymer.dom.flush=_.eL;Polymer.dom.addDebouncer=_.ob;Polymer.DirMixin=j6M;Polymer.RenderStatus={beforeNextRender:_.TK5,afterNextRender:_.vV,flush:function(){for(;sB1.length||j1.length;)JSh(sB1),JSh(j1);Aw=!1}};Polymer.LegacyElementMixin=_.LT;var qbC;qbC=ab._mutablePropertyChange;var a8d={properties:{mutableData:Boolean},_shouldPropertyChange:function(d,H,K){return qbC(this,d,H,K,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(d,H,K){return qbC(this,d,H,K,!0)}};
Polymer.OptionalMutableDataBehavior=a8d;var kjX={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},VR4={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},RWh=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},VR4),l8X=(0,_.LT)(HTMLElement),oQY=function(d,H){d||console.warn("Polymer.Class requires `info` argument");H=H?H(l8X):l8X;H=U5F(d,H,d.behaviors);H.is=H.prototype.is=
d.is;return H};Polymer.Class=oQY;Polymer.mixinBehaviors=function(d,H){return U5F({},(0,_.LT)(H),d)};
Polymer.GenerateClassFromInfo=U5F;_.zn=function(d){var H=typeof d==="function"?d:_.zn.Class(d);d._legacyForceObservedAttributes&&(H.prototype._legacyForceObservedAttributes=d._legacyForceObservedAttributes);customElements.define(H.is,H);return H};
_.zn.Class=oQY;Polymer._polymerFn=_.zn;var eRB=window.onLegacyPolymerFunctionDefinedCallback;eRB&&eRB();var asF={templatize:function(d,H){this._templatizerTemplate=d;this.ctor=S1(d,this,{mutableData:!!H,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(d){return new this.ctor(d)},
modelForElement:function(d){return rSM(this._templatizerTemplate,d)}};Polymer.Templatizer=asF;_.Ms=(0,_.LT)(HTMLElement).prototype;Polymer.Base=_.Ms;var LsM=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.$K=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.m(_.$K,PolymerFakeBaseClass);var KO=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.m(KO,PolymerFakeBaseClass);var MRF=Symbol("Ld"),BvF=[Array,Boolean,Date,Number,Object,String];/*
 ****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and
limitations under the License.
*****************************************************************************/
var keM=keM||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},xvS;(function(d){function H(E,N,y){var v=A.get(E);if(!v){if(!y)return;v=new F;A.set(E,v)}E=v.get(N);if(!E){if(!y)return;E=new F;v.set(N,E)}return E}
function K(E,N,y){if(c(E,N,y))return!0;N=U(N);return N!==null?K(E,N,y):!1}
function c(E,N,y){N=H(N,y,!1);return N===void 0?!1:!!N.has(E)}
function p(E,N,y){if(c(E,N,y))return g(E,N,y);N=U(N);if(N!==null)return p(E,N,y)}
function g(E,N,y){N=H(N,y,!1);if(N!==void 0)return N.get(E)}
function a(E,N){var y=e(E,N);E=U(E);if(E===null)return y;var v=a(E,N);if(v.length<=0)return y;if(y.length<=0)return v;N=new Y;E=[];y=_.q(y);for(var el=y.next();!el.done;el=y.next())el=el.value,N.has(el)||(N.add(el),E.push(el));y=_.q(v);for(v=y.next();!v.done;v=y.next())v=v.value,N.has(v)||(N.add(v),E.push(v));return E}
function e(E,N){E=H(E,N,!1);var y=[];E&&E.forEach(function(v,el){return y.push(el)});
return y}
function k(E){return E===void 0}
function C(E){return typeof E==="object"?E!==null:typeof E==="function"}
function R(E){return typeof E==="function"}
function V(E){return typeof E==="symbol"?E:String(E)}
function U(E){var N=Object.getPrototypeOf(E);if(typeof E!=="function"||E===J||N!==J)return N;var y=Object.getPrototypeOf(E.prototype);if(y==null||y===Object.prototype)return N;y=y.constructor;return typeof y!=="function"||y===E?N:y}
function L(){function E(){this._keys=[];this._values=[];this._cache=N}
var N={};E.prototype={get size(){return this._keys.length},has:function(y){return y===this._cache?!0:this._find(y)>=0?(this._cache=y,!0):!1},
get:function(y){var v=this._find(y);if(v>=0)return this._cache=y,this._values[v]},
set:function(y,v){this.delete(y);this._keys.push(y);this._values.push(v);this._cache=y;return this},
delete:function(y){y=this._find(y);return y>=0?(this._keys.splice(y,1),this._values.splice(y,1),this._cache=N,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=N},
forEach:function(y){for(var v=this.size,el=0;el<v;++el){var l1=this._keys[el],V4=this._values[el];this._cache=l1;y.call(this,V4,l1,this)}},
_find:function(y){for(var v=this._keys,el=v.length,l1=0;l1<el;++l1)if(v[l1]===y)return l1;return-1}};
return E}
function w(){function E(){this._map=new F}
E.prototype={get size(){return this._map.length},has:function(N){return this._map.has(N)},
add:function(N){this._map.set(N,N);return this},
delete:function(N){return this._map.delete(N)},
clear:function(){this._map.clear()},
forEach:function(N,y){this._map.forEach(N,y)}};
return E}
function W(){function E(){this._key=y()}
function N(LF,YY){for(var FM=0;FM<YY;++FM)LF[FM]=Math.random()*255|0}
function y(){do{if(el)var LF=el.randomBytes(16);else typeof Uint8Array==="function"?(LF=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(LF):N(LF,16)):(LF=Array(16),N(LF,16));LF[6]=LF[6]&79|64;LF[8]=LF[8]&191|128;for(var YY="",FM=0;FM<16;++FM){var gA=LF[FM];if(FM===4||FM===6||FM===8)YY+="-";gA<16&&(YY+="0");YY+=gA.toString(16).toLowerCase()}LF="@@WeakMap@@"+YY}while(l1.call(V4,LF));V4[LF]=!0;return LF}
function v(LF,YY){if(!l1.call(LF,Mf)){if(!YY)return;Object.defineProperty(LF,Mf,{value:Object.create(null)})}return LF[Mf]}
var el=typeof global!=="undefined"&&typeof keM==="object"&&typeof require==="function"&&require("crypto"),l1=Object.prototype.hasOwnProperty,V4={},Mf=y();E.prototype={has:function(LF){return(LF=v(LF,!1))?this._key in LF:!1},
get:function(LF){if(LF=v(LF,!1))return LF[this._key]},
set:function(LF,YY){v(LF,!0)[this._key]=YY;return this},
delete:function(LF){return(LF=v(LF,!1))&&this._key in LF?delete LF[this._key]:!1},
clear:function(){this._key=y()}};
return E}
var J=Object.getPrototypeOf(Function),F=typeof Map==="function"?Map:L(),Y=typeof Set==="function"?Set:w(),A=new (typeof WeakMap==="function"?WeakMap:W());d.decorate=function(E,N,y,v){if(k(v)){if(k(y)){if(!Array.isArray(E))throw new TypeError;if(!R(N))throw new TypeError;for(y=E.length-1;y>=0;--y)if(v=(0,E[y])(N),!k(v)){if(!R(v))throw new TypeError;N=v}return N}if(!Array.isArray(E))throw new TypeError;if(!C(N))throw new TypeError;y=V(y);for(v=E.length-1;v>=0;--v)(0,E[v])(N,y)}else{if(Array.isArray(E))if(C(N)){if(k(y))throw new TypeError;
if(!C(v))throw new TypeError;}else throw new TypeError;else throw new TypeError;y=V(y);for(var el=E.length-1;el>=0;--el){var l1=(0,E[el])(N,y,v);if(!k(l1)){if(!C(l1))throw new TypeError;v=l1}}return v}};
d.metadata=function(E,N){return function(y,v){if(k(v)){if(!R(y))throw new TypeError;H(y,void 0,!0).set(E,N)}else{if(!C(y))throw new TypeError;v=V(v);H(y,v,!0).set(E,N)}}};
d.defineMetadata=function(E,N){var y;if(C(N))k(y)||(y=V(y));else throw new TypeError;H(N,y,!0).set("parameters",E)};
d.hasMetadata=function(E,N,y){if(C(N))k(y)||(y=V(y));else throw new TypeError;return K(E,N,y)};
d.hasOwnMetadata=function(E,N,y){if(C(N))k(y)||(y=V(y));else throw new TypeError;return c(E,N,y)};
d.getMetadata=function(E,N,y){if(C(N))k(y)||(y=V(y));else throw new TypeError;return p(E,N,y)};
d.getOwnMetadata=function(E,N,y){if(C(N))k(y)||(y=V(y));else throw new TypeError;return g(E,N,y)};
d.getMetadataKeys=function(E,N){if(C(E))k(N)||(N=V(N));else throw new TypeError;return a(E,N)};
d.getOwnMetadataKeys=function(E,N){if(C(E))k(N)||(N=V(N));else throw new TypeError;return e(E,N)};
d.deleteMetadata=function(E,N,y){if(C(N))k(y)||(y=V(y));else throw new TypeError;var v=H(N,y,!1);if(!k(v)){if(!v.delete(E))return!1;if(v.size>0)return!0;E=A.get(N);E.delete(y);if(E.size>0)return!0;A.delete(N);return!0}};
(function(E){if(typeof E.Reflect!=="undefined"){if(E.Reflect!==d)for(var N in d)E.Reflect[N]=d[N]}else E.Reflect=d})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(xvS||(xvS={}));var NjF=self;var niX=[0,_.Ou,_.Eu,_.Ou];var COl=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(COl,_.He);var RRA=_.oK(COl,[0,_.Dah,_.y8,niX,_.Eu,_.NJ]);_.K1(_.c3,_.h_);_.G=_.c3.prototype;_.G.start=function(){this.stop();this.usingListeners_=!1;var d=VhS(this),H=Uvd(this);d&&!H&&this.JSC$11245_win_.mozRequestAnimationFrame?(this.JSC$11245_id_=_.Iq(this.JSC$11245_win_,"MozBeforePaint",this.callback_),this.JSC$11245_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11245_id_=d&&H?d.call(this.JSC$11245_win_,this.callback_):this.JSC$11245_win_.setTimeout(gdX(this.callback_),20)};
_.G.stop=function(){if(this.isActive()){var d=VhS(this),H=Uvd(this);d&&!H&&this.JSC$11245_win_.mozRequestAnimationFrame?wg(this.JSC$11245_id_):d&&H?H.call(this.JSC$11245_win_,this.JSC$11245_id_):this.JSC$11245_win_.clearTimeout(this.JSC$11245_id_)}this.JSC$11245_id_=null};
_.G.fire=function(){this.stop();this.JSC$11247_doAction_()};
_.G.isActive=function(){return this.JSC$11245_id_!=null};
_.G.JSC$11247_doAction_=function(){this.usingListeners_&&this.JSC$11245_id_&&wg(this.JSC$11245_id_);this.JSC$11245_id_=null;this.JSC$11245_listener_.call(this.handler_,_.$V())};
_.G.disposeInternal=function(){this.stop();_.c3.superClass_.disposeInternal.call(this)};
var VhS=function(d){d=d.JSC$11245_win_;return d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||d.msRequestAnimationFrame||null},Uvd=function(d){d=d.JSC$11245_win_;
return d.cancelAnimationFrame||d.cancelRequestAnimationFrame||d.webkitCancelRequestAnimationFrame||d.mozCancelRequestAnimationFrame||d.oCancelRequestAnimationFrame||d.msCancelRequestAnimationFrame||null};_.NV=function(d,H,K){_.h_.call(this);this.JSC$11248_listener_=K!=null?d.bind(K):d;this.JSC$11248_interval_=H;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11248_timer_=null};
_.m(_.NV,_.h_);_.G=_.NV.prototype;_.G.fire=function(d){this.args_=arguments;this.JSC$11248_timer_||this.pauseCount_?this.shouldFire_=!0:hRl(this)};
_.G.stop=function(){this.JSC$11248_timer_&&(_.KF.clearTimeout(this.JSC$11248_timer_),this.JSC$11248_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.G.pause=function(){this.pauseCount_++};
_.G.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11248_timer_||(this.shouldFire_=!1,hRl(this))};
_.G.disposeInternal=function(){_.h_.prototype.disposeInternal.call(this);this.stop()};
var hRl=function(d){d.JSC$11248_timer_=MW(function(){d.JSC$11248_timer_=null;d.shouldFire_&&!d.pauseCount_&&(d.shouldFire_=!1,hRl(d))},d.JSC$11248_interval_);
var H=d.args_;d.args_=null;d.JSC$11248_listener_.apply(null,H)};var LZ3=function(d,H){this.childIterator_=d[_.KF.Symbol.iterator]();this.mapFn_=H};
LZ3.prototype[Symbol.iterator]=function(){return this};
LZ3.prototype.next=function(){var d=this.childIterator_.next();return{value:d.done?void 0:this.mapFn_.call(void 0,d.value),done:d.done}};
var MhC=function(d,H){return new LZ3(d,H)};var mvl={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var PoM=function(d){var H=w5g(d);if(!H)throw Error("Pd`"+d);return H},w5g=function(d){var H={};
d=String(d);var K=d.charAt(0)=="#"?d:"#"+d;if(POX.test(K))return H.hex=Ubi(K),H.type="hex",H;K=WOX(d);return K.length?(H.hex=aFL(K[0],K[1],K[2]),H.type="rgb",H):mvl&&(d=mvl[d.toLowerCase()])?(H.hex=d,H.type="named",H):null},uLd=/#(.)(.)(.)/,Ubi=function(d){if(!POX.test(d))throw Error("Rd`"+d);
d.length==4&&(d=d.replace(uLd,"#$1$1$2$2$3$3"));return d.toLowerCase()},u1h=function(d){d=Ubi(d);
d=parseInt(d.slice(1),16);return[d>>16,d>>8&255,d&255]},aFL=function(d,H,K){d=Number(d);
H=Number(H);K=Number(K);if(d!=(d&255)||H!=(H&255)||K!=(K&255))throw Error("Sd`"+d+"`"+H+"`"+K);H=d<<16|H<<8|K;return d<16?"#"+(16777216|H).toString(16).slice(1):"#"+H.toString(16)},POX=/^#(?:[0-9a-f]{3}){1,2}$/i,I8l=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,WOX=function(d){var H=d.match(I8l);
if(H){d=Number(H[1]);var K=Number(H[2]);H=Number(H[3]);if(d>=0&&d<=255&&K>=0&&K<=255&&H>=0&&H<=255)return[d,K,H]}return[]};var rcd={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, y",
"MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss\u202fa zzzz","h:mm:ss\u202fa z","h:mm:ss\u202fa","h:mm\u202fa"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5},RI=rcd;RI=rcd;var aZ1,WZ6,Bnd;aZ1=function(d,H){switch(H){case 1:return d%4!=0||d%100==0&&d%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
WZ6=function(d,H,K,c,p){d=new Date(d,H,K);p=p||0;return d.valueOf()+(((c!==void 0?c:3)-p+7)%7-((d.getDay()+6)%7-p+7)%7)*864E5};
_.mq=function(d,H,K){typeof d==="number"?(this.date=Bnd(d,H||0,K||1),zRd(this,K||1)):_.y4(d)?(this.date=Bnd(d.getFullYear(),d.getMonth(),d.getDate()),zRd(this,d.getDate())):(this.date=new Date(_.$V()),d=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),zRd(this,d))};
Bnd=function(d,H,K){H=new Date(d,H,K);d>=0&&d<100&&H.setFullYear(H.getFullYear()-1900);return H};
_.G=_.mq.prototype;_.G.firstDayOfWeek_=RI.FIRSTDAYOFWEEK;_.G.firstWeekCutOffDay_=RI.FIRSTWEEKCUTOFFDAY;_.G.clone=function(){var d=new _.mq(this.date);d.firstDayOfWeek_=this.firstDayOfWeek_;d.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return d};
_.G.getFullYear=function(){return this.date.getFullYear()};
_.G.getYear=function(){return this.getFullYear()};
_.G.getMonth=function(){return this.date.getMonth()};
_.G.getDate=function(){return this.date.getDate()};
_.G.getTime=function(){return this.date.getTime()};
_.G.getDay=function(){return this.date.getDay()};
_.G.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.G.getUTCMonth=function(){return this.date.getUTCMonth()};
_.G.getUTCDate=function(){return this.date.getUTCDate()};
_.G.getUTCDay=function(){return this.date.getDay()};
_.G.getUTCHours=function(){return this.date.getUTCHours()};
_.G.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.G.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.G.set=function(d){this.date=new Date(d.getFullYear(),d.getMonth(),d.getDate())};
_.G.setFullYear=function(d){this.date.setFullYear(d)};
_.G.setYear=function(d){this.setFullYear(d)};
_.G.setMonth=function(d){this.date.setMonth(d)};
_.G.setDate=function(d){this.date.setDate(d)};
_.G.setTime=function(d){this.date.setTime(d)};
_.G.setUTCFullYear=function(d){this.date.setUTCFullYear(d)};
_.G.setUTCMonth=function(d){this.date.setUTCMonth(d)};
_.G.setUTCDate=function(d){this.date.setUTCDate(d)};
_.G.add=function(d){if(d.years||d.months){var H=this.getMonth()+d.months+d.years*12,K=this.getYear()+Math.floor(H/12);H%=12;H<0&&(H+=12);var c=Math.min(aZ1(K,H),this.getDate());this.setDate(1);this.setFullYear(K);this.setMonth(H);this.setDate(c)}d.days&&(K=this.getYear(),H=K>=0&&K<=99?-1900:0,d=new Date((new Date(K,this.getMonth(),this.getDate(),12)).getTime()+d.days*864E5),this.setDate(1),this.setFullYear(d.getFullYear()+H),this.setMonth(d.getMonth()),this.setDate(d.getDate()),zRd(this,d.getDate()))};
_.G.JSC$11261_toIsoString=function(d){var H=this.getFullYear(),K=H<0?"-":H>=1E4?"+":"";return[K+_.dv(Math.abs(H),K?6:4),_.dv(this.getMonth()+1,2),_.dv(this.getDate(),2)].join(d?"-":"")};
_.G.equals=function(d){return!(!d||this.getYear()!=d.getYear()||this.getMonth()!=d.getMonth()||this.getDate()!=d.getDate())};
_.G.toString=function(){return this.JSC$11261_toIsoString()};
var zRd=function(d,H){d.getDate()!=H&&d.date.setUTCHours(d.date.getUTCHours()+(d.getDate()<H?1:-1))};
_.mq.prototype.valueOf=function(){return this.date.valueOf()};var PU=function(d,H,K,c,p){this.reversed=!!H;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!K;d&&wa(this,d,c);this.depth=p!=void 0?p:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.K1(PU,Kb);var wa=function(d,H,K,c){if(d.node=H)d.tagType=typeof K==="number"?K:d.node.nodeType!=1?0:d.reversed?-1:1;typeof c==="number"&&(d.depth=c)};
_.G=PU.prototype;_.G.JSC$11276_copyFrom=function(d){this.node=d.node;this.tagType=d.tagType;this.depth=d.depth;this.reversed=d.reversed;this.constrained=d.constrained};
_.G.clone=function(){return new PU(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.G.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return cq;var d=this.node;var H=this.reversed?-1:1;if(this.tagType==H){var K=this.reversed?d.lastChild:d.firstChild;K?wa(this,K):wa(this,d,H*-1)}else(K=this.reversed?d.previousSibling:d.nextSibling)?wa(this,K):wa(this,d.parentNode,H*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(d=this.node)?pb(d):cq};
_.G.equals=function(d){return d.node==this.node&&(!this.node||d.tagType==this.tagType)};
_.G.splice=function(d){var H=this.node,K=this.reversed?1:-1;this.tagType==K&&(this.tagType=K*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;PU.prototype.next.call(this);this.reversed=!this.reversed;K=_.O5(arguments[0])?arguments[0]:arguments;for(var c=K.length-1;c>=0;c--)_.rv(K[c],H);_.nA(H)};var X57=function(){},uS=function(d){for(var H=[],K=d.getTextRangeCount(),c=0;c<K;c++)H.push(d.getTextRange(c));
return H};
X57.prototype.isReversed=function(){return!1};
X57.prototype.getWindow=function(){return zo(_.XF(this.JSC$11278_getStartNode()))};
var Jc3=function(d,H){PU.call(this,d,H,!0)};
_.K1(Jc3,PU);var Ib=function(d,H,K,c,p){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!p;if(d){this.startNode_=d;this.startOffset_=H;this.endNode_=K;this.endOffset_=c;if(d.nodeType==1&&d.tagName!="BR")if(d=d.childNodes,H=d[H])this.startNode_=H,this.startOffset_=0;else{d.length&&(this.startNode_=_.BF(d));var g=!0}K.nodeType==1&&((this.endNode_=K.childNodes[c])?this.endOffset_=0:this.endNode_=K)}PU.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);g&&this.next()};
_.K1(Ib,Jc3);_.G=Ib.prototype;_.G.JSC$11284_getStartNode=function(){return this.startNode_};
_.G.isLast=function(){return this.started_&&(this.node!=(this.isReversed_?this.startNode_:this.endNode_)?!1:this.isReversed_?this.startOffset_?this.tagType!=-1:this.tagType==1:!this.endOffset_||this.tagType!=1)};
_.G.next=function(){return this.isLast()?cq:Ib.superClass_.next.call(this)};
_.G.JSC$11276_copyFrom=function(d){this.startNode_=d.startNode_;this.endNode_=d.endNode_;this.startOffset_=d.startOffset_;this.endOffset_=d.endOffset_;this.isReversed_=d.isReversed_;Ib.superClass_.JSC$11276_copyFrom.call(this,d)};
_.G.clone=function(){var d=new Ib(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);d.JSC$11276_copyFrom(this);return d};var s3X=function(){};
s3X.prototype.__iterator__=function(){return new Ib(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var ra=function(d){this.range_=d};
_.K1(ra,s3X);var FZ0=function(d){var H=_.XF(d).createRange();if(d.nodeType==3)H.setStart(d,0),H.setEnd(d,d.length);else if(Pr(d)||d.nodeType==3){for(var K,c=d;(K=c.firstChild)&&(Pr(K)||K.nodeType==3);)c=K;H.setStart(c,0);for(c=d;(K=c.lastChild)&&(Pr(K)||K.nodeType==3);)c=K;H.setEnd(c,c.nodeType==1?c.childNodes.length:c.length)}else K=d.parentNode,d=Array.prototype.indexOf.call(K.childNodes,d),H.setStart(K,d),H.setEnd(K,d+1);return H},Zm7=function(d,H,K,c){var p=_.XF(d).createRange();
p.setStart(d,H);p.setEnd(K,c);return p};
_.G=ra.prototype;_.G.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.G.getContainer=function(){return this.range_.commonAncestorContainer};
_.G.compareBrowserRangeEndpoints=function(d,H,K){return this.range_.compareBoundaryPoints(K==1?H==1?_.KF.Range.START_TO_START:_.KF.Range.START_TO_END:H==1?_.KF.Range.END_TO_START:_.KF.Range.END_TO_END,d)};
_.G.isCollapsed=function(){return this.range_.collapsed};
_.G.select=function(d){this.selectInternal(zo(_.XF(this.range_.startContainer)).getSelection(),d)};
_.G.selectInternal=function(d){d.removeAllRanges();d.addRange(this.range_)};
_.G.insertNode=function(d,H){var K=this.range_.cloneRange();K.collapse(H);K.insertNode(d);K.detach();return d};
_.G.collapse=function(d){this.range_.collapse(d)};_.K1(pO,ra);pO.prototype.selectInternal=function(d,H){!H||this.isCollapsed()?pO.superClass_.selectInternal.call(this,d,H):(d.collapse(this.range_.endContainer,this.range_.endOffset),d.extend(this.range_.startContainer,this.range_.startOffset))};_.K1(gr,ra);gr.prototype.compareBrowserRangeEndpoints=function(d,H,K){return gr.superClass_.compareBrowserRangeEndpoints.call(this,d,H,K)};
gr.prototype.selectInternal=function(d,H){H?d.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):d.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var TnU=function(d){return _.oB?new gr(d):_.GZ?new pO(d):new ra(d)};var WU=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},Q30;
_.K1(WU,X57);Q30=function(d,H){var K=new WU;K.browserRangeWrapper_=d;K.isReversed_=!!H;return K};
_.th6=function(d){d=_.oB?new gr(FZ0(d)):_.GZ?new pO(FZ0(d)):new ra(FZ0(d));return Q30(d)};
_.BU=function(d,H,K,c){var p=new WU;p.isReversed_=Ybd(d,H,K,c);if(_.A5(d)&&!Pr(d)){var g=d.parentNode;H=Array.prototype.indexOf.call(g.childNodes,d);d=g}_.A5(K)&&!Pr(K)&&(g=K.parentNode,c=Array.prototype.indexOf.call(g.childNodes,K),K=g);p.isReversed_?(p.startNode_=K,p.startOffset_=c,p.endNode_=d,p.endOffset_=H):(p.startNode_=d,p.startOffset_=H,p.endNode_=K,p.endOffset_=c);return p};
_.G=WU.prototype;_.G.clone=function(){var d=new WU;d.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();d.startNode_=this.startNode_;d.startOffset_=this.startOffset_;d.endNode_=this.endNode_;d.endOffset_=this.endOffset_;d.isReversed_=this.isReversed_;return d};
_.G.JSC$11278_getType=function(){return"text"};
_.G.getBrowserRangeObject=function(){return z8(this).range_};
_.G.getTextRangeCount=function(){return 1};
_.G.getTextRange=function(){return this};
var z8=function(d){var H;if(!(H=d.browserRangeWrapper_)){H=d.JSC$11278_getStartNode();var K=d.JSC$11278_getStartOffset(),c=d.JSC$11278_getEndNode(),p=d.JSC$11278_getEndOffset();H=_.oB?new gr(Zm7(H,K,c,p)):_.GZ?new pO(Zm7(H,K,c,p)):new ra(Zm7(H,K,c,p));H=d.browserRangeWrapper_=H}return H};
_.G=WU.prototype;_.G.getContainer=function(){return z8(this).getContainer()};
_.G.JSC$11278_getStartNode=function(){return this.startNode_||(this.startNode_=z8(this).range_.startContainer)};
_.G.JSC$11278_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=z8(this).range_.startOffset};
_.G.JSC$11278_getEndNode=function(){return this.endNode_||(this.endNode_=z8(this).range_.endContainer)};
_.G.JSC$11278_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=z8(this).range_.endOffset};
_.G.isReversed=function(){return this.isReversed_};
_.G.JSC$11278_containsRange=function(d,H){if(d.JSC$11278_getType()=="text"){var K=z8(this);d=z8(d);H=H&&!d.isCollapsed();d=d.range_;K=H?K.compareBrowserRangeEndpoints(d,0,1)>=0&&K.compareBrowserRangeEndpoints(d,1,0)<=0:K.compareBrowserRangeEndpoints(d,0,0)>=0&&K.compareBrowserRangeEndpoints(d,1,1)<=0}else K=!1;return K};
_.G.isCollapsed=function(){return z8(this).isCollapsed()};
_.G.JSC$11278_getText=function(){return z8(this).range_.toString()};
_.G.__iterator__=function(){return new Ib(this.JSC$11278_getStartNode(),this.JSC$11278_getStartOffset(),this.JSC$11278_getEndNode(),this.JSC$11278_getEndOffset())};
_.G.select=function(){z8(this).select(this.isReversed_)};
_.G.JSC$11278_removeContents=function(){var d=z8(this).range_;d.extractContents();if(d.startContainer.hasChildNodes()&&(d=d.startContainer.childNodes[d.startOffset])){var H=d.previousSibling;cZg(d)==""&&_.nA(d);H&&cZg(H)==""&&_.nA(H)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.G.insertNode=function(d,H){d=z8(this).insertNode(d,H);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return d};
_.G.collapse=function(d){d=this.isReversed()?!d:d;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(d);d?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Omd=function(){};
_.K1(Omd,X57);Omd.prototype.JSC$11278_containsRange=function(d,H){var K=uS(this);d=uS(d);return(H?Nl:_.lF4)(d,function(c){return Nl(K,function(p){return p.JSC$11278_containsRange(c,H)})})};
Omd.prototype.insertNode=function(d,H){H?_.Ip(d,this.JSC$11278_getStartNode()):_.rv(d,this.JSC$11278_getEndNode());return d};var Sb0,EiB=Vy().JSC$9297_document_.documentElement;Sb0=EiB.requestFullscreen?"fullscreenchange":EiB.webkitRequestFullscreen?"webkitfullscreenchange":EiB.mozRequestFullScreen?"mozfullscreenchange":EiB.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var ycd=function(){var d=Vy().JSC$9297_document_;return!!(d.webkitIsFullScreen||d.mozFullScreen||d.msFullscreenElement||d.fullscreenElement)};var XH=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.K1(XH,Omd);_.G=XH.prototype;_.G.clone=function(){var d=new XH;d.browserRanges_=_.tC(this.browserRanges_);return d};
_.G.JSC$11278_getType=function(){return"mutli"};
_.G.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.G.getTextRangeCount=function(){return this.browserRanges_.length};
_.G.getTextRange=function(d){this.ranges_[d]||(this.ranges_[d]=Q30(TnU(this.browserRanges_[d])));return this.ranges_[d]};
_.G.getContainer=function(){if(!this.container_){for(var d=[],H=this.getTextRangeCount(),K=0;K<H;K++)d.push(this.getTextRange(K).getContainer());this.container_=ANC.apply(null,d)}return this.container_};
var Jg=function(d){d.sortedRanges_||(d.sortedRanges_=uS(d),d.sortedRanges_.sort(function(H,K){var c=H.JSC$11278_getStartNode();H=H.JSC$11278_getStartOffset();var p=K.JSC$11278_getStartNode();K=K.JSC$11278_getStartOffset();return c==p&&H==K?0:Ybd(c,H,p,K)?1:-1}));
return d.sortedRanges_};
_.G=XH.prototype;_.G.JSC$11278_getStartNode=function(){return Jg(this)[0].JSC$11278_getStartNode()};
_.G.JSC$11278_getStartOffset=function(){return Jg(this)[0].JSC$11278_getStartOffset()};
_.G.JSC$11278_getEndNode=function(){return _.BF(Jg(this)).JSC$11278_getEndNode()};
_.G.JSC$11278_getEndOffset=function(){return _.BF(Jg(this)).JSC$11278_getEndOffset()};
_.G.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.G.JSC$11278_getText=function(){return uS(this).map(function(d){return d.JSC$11278_getText()}).join("")};
_.G.__iterator__=function(){return new sv(this)};
_.G.select=function(){var d=this.getWindow().getSelection();d.removeAllRanges();for(var H=this.getTextRangeCount(),K=0;K<H;K++)d.addRange(this.getTextRange(K).getBrowserRangeObject())};
_.G.JSC$11278_removeContents=function(){uS(this).forEach(function(d){d.JSC$11278_removeContents()})};
_.G.collapse=function(d){if(!this.isCollapsed()){var H=d?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;H.collapse(d);this.ranges_=[H];this.sortedRanges_=[H];this.browserRanges_=[H.getBrowserRangeObject()]}};
var sv=function(d){this.iterators_=null;this.currentIdx_=0;d&&(this.iterators_=Jg(d).map(function(H){return _.cwB(H)}));
PU.call(this,d?this.JSC$11284_getStartNode():null,!1,!0)};
_.K1(sv,Jc3);_.G=sv.prototype;_.G.JSC$11284_getStartNode=function(){return this.iterators_[0].JSC$11284_getStartNode()};
_.G.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.G.next=function(){for(;this.currentIdx_<this.iterators_.length;){var d=this.iterators_[this.currentIdx_],H=d.next();if(H.done)this.currentIdx_++;else return wa(this,d.node,d.tagType,d.depth),H}return cq};
_.G.JSC$11276_copyFrom=function(d){this.iterators_=_.tC(d.iterators_);sv.superClass_.JSC$11276_copyFrom.call(this,d)};
_.G.clone=function(){var d=new sv(null);d.JSC$11276_copyFrom(this);return d};var bm7,Ybd;_.en=function(){var d=window.getSelection();return d&&bm7(d)};
bm7=function(d){var H=!1;if(d.createRange)try{var K=d.createRange()}catch(p){return null}else if(d.rangeCount){if(d.rangeCount>1){K=new XH;H=d.rangeCount;for(var c=0;c<H;c++)K.browserRanges_.push(d.getRangeAt(c));return K}K=d.getRangeAt(0);H=Ybd(d.anchorNode,d.anchorOffset,d.focusNode,d.focusOffset)}else return null;return Q30(TnU(K),H)};
_.FH=function(d,H){return _.BU(d,H,d,H)};
_.Zh=function(d,H,K,c){return _.BU(d,H,K,c)};
Ybd=function(d,H,K,c){if(d==K)return c<H;var p;if(d.nodeType==1&&H)if(p=d.childNodes[H])d=p,H=0;else if(_.FB(d,K))return!0;if(K.nodeType==1&&c)if(p=K.childNodes[c])K=p,c=0;else if(_.FB(K,d))return!1;return(f06(d,K)||H-c)>0};var T8=function(){_.Rj.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.LA)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.LA)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.LA)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.LA)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.LA)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.LA)(this.dispatchProgressEvent_,this)};
_.K1(T8,_.Rj);T8.prototype.abort=function(){try{this.reader_.abort()}catch(d){throw new pd3(d,"aborting read");}};
T8.prototype.getError=function(){return this.reader_.error&&new pd3(this.reader_.error,"reading file")};
T8.prototype.dispatchProgressEvent_=function(d){this.dispatchEvent(new grC(d,this))};
T8.prototype.disposeInternal=function(){T8.superClass_.disposeInternal.call(this);delete this.reader_};
var DvN=function(d){var H=new T8,K=NnN(H);H.reader_.readAsArrayBuffer(d);return K},f8C=function(d){var H=new T8,K=NnN(H);
H.reader_.readAsDataURL(d);return K},NnN=function(d){var H=new YJ;
d.listen("loadend",_.hO(function(K,c){var p=c.reader_.result,g=c.getError();p==null||g?K.errback(g):K.callback(p);c.dispose()},H,d));
return H};var Qc=function(){_.Rj.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11318_eventHandler_=new _.GA(this);this.JSC$11318_isInitialized_=!1};
_.K1(Qc,_.Rj);var AcB=new _.lA("d"),j3A=new _.lA("beforedragstart"),viA=new _.lA("dragstart"),dr6=new _.lA("beforedragmove"),HKN=new _.lA("dragmove"),$r6=new _.lA("beforedragend"),KJM=new _.lA("dragend"),cBU=new _.lA("e");Qc.prototype.isDragging=function(){return!!this.JSC$11318_dragger_};
var pjB=function(d,H){H.dlgGrowthDirection_=0;H.dlgDragHoverClass_=void 0;H.dlgDragPermission=0;d.dragLists_.push(H)},gfB=function(d,H){d.getHandleForDragItem_=H};
Qc.prototype.init=function(){if(!this.JSC$11318_isInitialized_){for(var d=this.dragLists_.length,H=0;H<d;H++)for(var K=_.Wr(this.dragLists_[H]),c=K.length,p=0;p<c;++p){var g=K[p],a=this.getHandleForDragItem_(g),e=_.b1(a);this.dragItemForHandle_[e]=g;this.dragItemHoverClasses_&&(this.JSC$11318_eventHandler_.listen(g,"mouseover",this.handleDragItemMouseover_),this.JSC$11318_eventHandler_.listen(g,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11318_eventHandler_.listen(a,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11318_eventHandler_.listen(a,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(g);this.JSC$11318_eventHandler_.listen(a,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11318_isInitialized_=!0}};
Qc.prototype.disposeInternal=function(){this.JSC$11318_eventHandler_.dispose();for(var d=this.dragLists_.length,H=0;H<d;H++){var K=this.dragLists_[H];K.dlgGrowthDirection_=void 0;K.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;iKS(this);Qc.superClass_.disposeInternal.call(this)};
var Gn3=function(d,H){for(var K=d.dragLists_.length,c=0;c<K;c++){var p=d.dragLists_[c];p.dlgBounds_=Tv1(p)}K=d.dragItems_.length;for(c=0;c<K;c++)p=d.dragItems_[c],p!=H&&(p.dlgBounds_=Tv1(p))};
_.G=Qc.prototype;
_.G.handlePotentialDragStart_=function(d){var H=_.b1(d.currentTarget);H=this.dragItemForHandle_[H];if(H.parentElement.dlgDragPermission!=2){this.currDragItem_=H;a:{H=this.currDragItem_;for(var K=H.cloneNode(!0),c=CA("TEXTAREA",H),p=CA("TEXTAREA",K),g=0;g<c.length;g++)p[g].value=c[g].value;switch(H.tagName){case "TR":H=_.ms("TABLE",null,_.ms("TBODY",null,K));break a;case "TD":case "TH":H=_.ms("TABLE",null,_.ms("TBODY",null,_.ms("TR",null,K)));break a;case "TEXTAREA":K.value=H.value;default:H=K;break a}H=
void 0}this.draggerEl_=H;this.draggerElClasses_&&Q5(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.XF(this.currDragItem_).body.appendChild(this.draggerEl_);K=_.JA(this.currDragItem_);H=this.draggerEl_;c=_.JA(H);if(K instanceof _.Bf){var a=K.y;K=K.x}sl(H,H.offsetLeft+(K-c.x),H.offsetTop+(Number(a)-c.y));this.JSC$11318_dragger_=new _.XE(this.draggerEl_);_.c5B(this.JSC$11318_dragger_,this.hysteresisDistance_);
_.Iq(this.JSC$11318_dragger_,"start",this.handleDragStart_,!1,this);_.Iq(this.JSC$11318_dragger_,"end",this.handleDragEnd_,!1,this);_.Iq(this.JSC$11318_dragger_,"earlycancel",this.JSC$11320_cleanup_,!1,this);this.dispatchEvent(new tg(AcB,this,d,this.currDragItem_,this.draggerEl_,this.JSC$11318_dragger_));this.JSC$11318_dragger_.startDrag(d)}};
_.G.handleDragStart_=function(d){if(this.dispatchEvent(new tg(j3A,this,d.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.bXX(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Q5(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var H=qUM(this.draggerEl_);this.draggerEl_.halfWidth=H.width/2;this.draggerEl_.halfHeight=H.height/2;H=this.draggerEl_.getBoundingClientRect();
var K=d.clientY,c=pMM(this.JSC$11318_dragger_,d.clientX);if(c>H.right){var p=this.currDragItem_.getBoundingClientRect();this.JSC$11318_dragger_.deltaX=c-(c-p.left)/p.width*H.width}K=gGA(this.JSC$11318_dragger_,K);K>H.bottom&&(this.JSC$11318_dragger_.deltaY+=K-H.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";Gn3(this,this.currDragItem_);this.currDragItem_.style.display="";_.Iq(this.JSC$11318_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new tg(viA,
this,d.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11318_dragger_))}else d.preventDefault(),this.JSC$11320_cleanup_()};
_.G.handleDragMove_=function(d){var H=_.JA(this.draggerEl_);H=new _.Bf(H.x+this.draggerEl_.halfWidth,H.y+this.draggerEl_.halfHeight);a:{var K=null;if(this.currDragItem_.style.display!="none"){K=this.currDragItem_.parentNode;var c=Tv1(K);if(ofg(H,c))break a}c=this.dragLists_.length;for(var p=0;p<c;p++){var g=this.dragLists_[p];if(g!=K&&ofg(H,g.dlgBounds_)){K=g;break a}}K=null}if(K){if(K==null)throw Error("Td");c=0;p=!1;g=void 0;switch(K.dlgGrowthDirection_){case 0:c=H.y;var a=qI3;var e=aV6;break;case 4:p=
!0;case 2:c=H.x;a=lV3;e=aV6;break;case 5:p=!0;case 3:c=H.x,a=eZX,e=knA}for(var k=null,C,R=_.Wr(K),V=R.length,U=0;U<V;U++){var L=R[U];if(L!=this.currDragItem_){var w=a(L.dlgBounds_);if(p){var W=xrX(L,H);g===void 0&&(g=W);e(c,w)&&(C==void 0||W<g||W==g&&(e(w,C)||w==C))&&(k=L,C=w);W<g&&(g=W)}else e(c,w)&&(C==void 0||e(w,C))&&(k=L,C=w)}}a=k!==null&&xrX(k,H)>g?null:k}else a=null;if(!this.dispatchEvent(new tg(dr6,this,d,this.currDragItem_,this.draggerEl_,this.JSC$11318_dragger_,H,K,a)))return!1;if(K&&K.dlgDragPermission!=
1)this.currDragItem_.parentNode==K&&_.bXX(this.currDragItem_)==a||K.insertBefore(this.currDragItem_,a),this.currDragItem_.style.display="",K.dlgDragHoverClass_&&_.Hg(K,K.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",e=this.dragLists_.length,C=0;C<e;C++)c=this.dragLists_[C],c.dlgDragHoverClass_&&_.v1(c,c.dlgDragHoverClass_);K!=this.currHoverList_&&(this.currHoverList_=K,Gn3(this,this.currDragItem_));this.dispatchEvent(new tg(HKN,this,d,this.currDragItem_,this.draggerEl_,this.JSC$11318_dragger_,
H,K,a));return!1};
_.G.JSC$11320_cleanup_=function(){iKS(this);this.JSC$11318_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var d=this.dragLists_.length,H=0;H<d;H++)this.dragLists_[H].dlgBounds_=null;d=this.dragItems_.length;for(H=0;H<d;H++)this.dragItems_[H].dlgBounds_=null};
_.G.handleDragEnd_=function(d){if(!this.dispatchEvent(new tg($r6,this,d,this.currDragItem_,this.draggerEl_,this.JSC$11318_dragger_)))return!1;iKS(this);this.dispatchEvent(new tg(KJM,this,d,this.currDragItem_,this.draggerEl_,this.JSC$11318_dragger_));this.JSC$11320_cleanup_();return!0};
var iKS=function(d){_.AA(d.JSC$11318_dragger_);var H=d.draggerEl_&&d.draggerEl_.parentElement;d.draggerEl_&&_.nA(d.draggerEl_);d.currDragItem_&&d.currDragItem_.style.display=="none"&&(d.origList_.insertBefore(d.currDragItem_,d.origNextItem_),d.currDragItem_.style.display="");d.currDragItemClasses_&&d.currDragItem_?$t6(d.currDragItem_,d.currDragItemClasses_||[]):d.currDragItem_&&(d.currDragItem_.style.visibility="");for(var K=d.dragLists_.length,c=0;c<K;c++){var p=d.dragLists_[c];p.dlgDragHoverClass_&&
_.v1(p,p.dlgDragHoverClass_)}H&&d.dispatchEvent(new tg(cBU,d,null,d.currDragItem_,d.draggerEl_,d.JSC$11318_dragger_))};
_.G=Qc.prototype;_.G.getHandleForDragItem_=function(d){return d};
_.G.handleDragItemMouseover_=function(d){Q5(d.currentTarget,this.dragItemHoverClasses_||[])};
_.G.handleDragItemMouseout_=function(d){$t6(d.currentTarget,this.dragItemHoverClasses_||[])};
_.G.handleDragItemHandleMouseover_=function(d){Q5(d.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.G.handleDragItemHandleMouseout_=function(d){$t6(d.currentTarget,this.dragItemHandleHoverClasses_||[])};
var ofg=function(d,H){return d.x>H.left&&d.x<H.left+H.width&&d.y>H.top&&d.y<H.top+H.height},xrX=function(d,H){d=d.dlgBounds_;
return Math.abs(H.y-(d.top+(d.height-1)/2))},qI3=function(d){return d.top+d.height-1},lV3=function(d){return d.left+d.width-1},eZX=function(d){return d.left||0},aV6=function(d,H){return d<H},knA=function(d,H){return d>H},tg=function(d,H,K,c,p,g){_.eo.call(this,d);
this.event=K;this.currDragItem=c;this.draggerEl=p;this.JSC$11322_dragger=g};
_.K1(tg,_.eo);_.K1(ou,_.h_);var nfM=new _.Bf(0,0);ou.prototype.JSC$11326_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
ou.prototype.JSC$11326_onMouseMove=function(d){var H=this.containerIsActuallyContent_?nfM:Rr(Vy(this.containerNode_)),K=this.horizontalScrolling_?this.calculateScrollDelta(d.clientX+H.x,this.scrollBounds_.left,this.scrollBounds_.width):0,c=this.calculateScrollDelta(d.clientY+H.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=K;this.scrollDelta_.y=c;!(K=!K&&!c)&&(K=this.constrainScroll_)&&(K=d.clientX+H.x,d=d.clientY+H.y,H=this.containerBounds_,K=!(H.left<=K&&H.left+H.width>=
K&&H.top<=d&&H.top+H.height>=d));K?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
ou.prototype.calculateScrollDelta=function(d,H,K){var c=0;d<H?c=-8:d>H+K&&(c=8);return c};
ou.prototype.disposeInternal=function(){ou.superClass_.disposeInternal.call(this);this.JSC$11324_eventHandler_.dispose();this.scrollTimer_.dispose()};var CsC={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"},1E8:{other:"000M"},1E9:{other:"0B"},1E10:{other:"00B"},1E11:{other:"000B"},1E12:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},COMPACT_DECIMAL_LONG_PATTERN:{1E3:{other:"0 thousand"},1E4:{other:"00 thousand"},1E5:{other:"000 thousand"},1E6:{other:"0 million"},1E7:{other:"00 million"},1E8:{other:"000 million"},1E9:{other:"0 billion"},1E10:{other:"00 billion"},1E11:{other:"000 billion"},
1E12:{other:"0 trillion"},1E13:{other:"00 trillion"},1E14:{other:"000 trillion"}}},Yq=CsC;Yq=CsC;var Ov={AED:[2,"dh","\u062f.\u0625."],ALL:[0,"Lek","Lek"],AUD:[2,"$","AU$"],BDT:[2,"\u09f3","Tk"],BGN:[2,"lev","lev"],BRL:[2,"R$","R$"],CAD:[2,"$","C$"],CDF:[2,"FrCD","CDF"],CHF:[2,"CHF","CHF"],CLP:[0,"$","CL$"],CNY:[2,"\u00a5","RMB\u00a5"],COP:[32,"$","COL$"],CRC:[0,"\u20a1","CR\u20a1"],CZK:[50,"K\u010d","K\u010d"],DKK:[50,"kr.","kr."],DOP:[2,"RD$","RD$"],EGP:[2,"\u00a3","LE"],ETB:[2,"Birr","Birr"],EUR:[2,"\u20ac","\u20ac"],GBP:[2,"\u00a3","GB\u00a3"],HKD:[2,"$","HK$"],HRK:[2,"kn","kn"],HUF:[34,
"Ft","Ft"],IDR:[0,"Rp","Rp"],ILS:[34,"\u20aa","IL\u20aa"],INR:[2,"\u20b9","Rs"],IRR:[0,"Rial","IRR"],ISK:[0,"kr","kr"],JMD:[2,"$","JA$"],JPY:[0,"\u00a5","JP\u00a5"],KRW:[0,"\u20a9","KR\u20a9"],LKR:[2,"Rs","SLRs"],LTL:[2,"Lt","Lt"],MNT:[0,"\u20ae","MN\u20ae"],MVR:[2,"Rf","MVR"],MXN:[2,"$","Mex$"],MYR:[2,"RM","RM"],NOK:[50,"kr","NOkr"],PAB:[2,"B/.","B/."],PEN:[2,"S/.","S/."],PHP:[2,"\u20b1","PHP"],PKR:[0,"Rs","PKRs."],PLN:[50,"z\u0142","z\u0142"],RON:[2,"RON","RON"],RSD:[0,"din","RSD"],RUB:[50,"\u20bd",
"RUB"],SAR:[2,"SAR","SAR"],SEK:[50,"kr","kr"],SGD:[2,"$","S$"],THB:[2,"\u0e3f","THB"],TRY:[2,"\u20ba","TRY"],TWD:[2,"$","NT$"],TZS:[0,"TSh","TSh"],UAH:[2,"\u0433\u0440\u043d.","UAH"],USD:[2,"$","US$"],UYU:[2,"$","$U"],VND:[48,"\u20ab","VN\u20ab"],YER:[0,"Rial","Rial"],ZAR:[2,"R","ZAR"]};var RZ7=function(){},NR=function(d){if(typeof d=="number"){var H=new RZ7;
H.standardOffset_=d;var K=d;if(K==0)K="Etc/GMT";else{var c=["Etc/GMT",K<0?"-":"+"];K=Math.abs(K);c.push(Math.floor(K/60)%100);K%=60;K!=0&&c.push(":",_.dv(K,2));K=c.join("")}H.timeZoneId_=K;K=d;K==0?K="UTC":(c=["UTC",K<0?"+":"-"],K=Math.abs(K),c.push(Math.floor(K/60)%100),K%=60,K!=0&&c.push(":",K),K=c.join(""));d=VOA(d);H.tzNames_=[K,K];H.tzNamesExt_={STD_LONG_NAME_GMT:d,STD_GENERIC_LOCATION:d};H.transitions_=[];return H}H=new RZ7;H.timeZoneId_=d.id;H.standardOffset_=-d.std_offset;H.tzNames_=d.names;
H.tzNamesExt_=d.names_ext;H.transitions_=d.transitions;return H},VOA=function(d){var H=["GMT"];
H.push(d<=0?"+":"-");d=Math.abs(d);H.push(_.dv(Math.floor(d/60)%100,2),":",_.dv(d%60,2));return H.join("")},Ur3=function(d,H){H=Date.UTC(H.getUTCFullYear(),H.getUTCMonth(),H.getUTCDate(),H.getUTCHours(),H.getUTCMinutes())/36E5;
for(var K=0;K<d.transitions_.length&&H>=d.transitions_[K];)K+=2;return K==0?0:d.transitions_[K-1]},hZA=function(d,H){d=d.standardOffset_-Ur3(d,H);
return d===-1440?0:d};var DL=function(d,H){this.patternParts_=[];this.JSC$11337_dateTimeSymbols_=H||RI;typeof d=="number"?LJ6(this,d):MOU(this,d)},mrl=[/^'(?:[^']|'')*('|$)/,
/^(?:G+|y+|Y+|u+|M+|k+|S+|E+|a+|b+|B+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYuMkSEabBhKHcLQdmsvVwzZ]+/],SL=function(d){return d.getHours?d.getHours():0},MOU=function(d,H){for(XmF&&(H=H.replace(/\u200f/g,""));H;){for(var K=H,c=0;c<mrl.length;++c){var p=H.match(mrl[c]);
if(p){var g=p[0];H=H.substring(g.length);c==0&&(g=="''"?g="'":(g=g.substring(1,p[1]=="'"?g.length-1:g.length),g=g.replace(/''/g,"'")));d.patternParts_.push({text:g,type:c});break}}if(K===H)throw Error("Ud`"+H);}};
DL.prototype.format=function(d,H){if(!d)throw Error("Vd");var K=H?(d.getTimezoneOffset()-hZA(H,d))*6E4:0,c=K?new Date(d.getTime()+K):d,p=c;H&&c.getTimezoneOffset()!=d.getTimezoneOffset()&&(c=new Date(c.getTime()+(c.getTimezoneOffset()-d.getTimezoneOffset())*6E4),p=new Date(d.getTime()+(K+(K>0?-864E5:864E5))));K=[];for(var g=0;g<this.patternParts_.length;++g){var a=this.patternParts_[g].text;1==this.patternParts_[g].type?K.push(wj6(this,a,d,c,p,H)):K.push(a)}return K.join("")};
var LJ6=function(d,H){if(H<4)var K=d.JSC$11337_dateTimeSymbols_.DATEFORMATS[H];else if(H<8)K=d.JSC$11337_dateTimeSymbols_.TIMEFORMATS[H-4];else if(H<12)K=d.JSC$11337_dateTimeSymbols_.DATETIMEFORMATS[H-8],K=K.replace("{1}",d.JSC$11337_dateTimeSymbols_.DATEFORMATS[H-8]),K=K.replace("{0}",d.JSC$11337_dateTimeSymbols_.TIMEFORMATS[H-8]);else if(H===12)K=d.JSC$11337_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(H===13)K=d.JSC$11337_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{LJ6(d,10);return}MOU(d,K)},Ev=function(d,H){H=String(H);
d=d.JSC$11337_dateTimeSymbols_||RI;if(d.ZERODIGIT!==void 0&&!zlh){for(var K=[],c=0;c<H.length;c++){var p=H.charCodeAt(c);K.push(48<=p&&p<=57?String.fromCharCode(d.ZERODIGIT+p-48):H.charAt(c))}H=K.join("")}return H},zlh=!1,XmF=!1,uQ7=function(d,H,K,c){K=K.getFullYear();
K<=0&&c&&(K=1-K);return Ev(d,Ps6(K,H))},Ps6=function(d,H){H==2&&(d%=100);
d<0&&H++;return _.dv(d,H)},yc=function(d){if(!(d.getHours&&d.getSeconds&&d.getMinutes))throw Error("Wd");
},IV3=function(d,H){yc(H);
H=SL(H);return d.JSC$11337_dateTimeSymbols_.AMPMS[H>=12&&H<24?1:0]},wj6=function(d,H,K,c,p,g){var a=H.length;
switch(H.charAt(0)){case "G":return K=c.getFullYear()>0?1:0,a>=4?d.JSC$11337_dateTimeSymbols_.ERANAMES[K]:d.JSC$11337_dateTimeSymbols_.ERAS[K];case "y":return uQ7(d,a,c,!0);case "Y":return K=(new Date(WZ6(c.getFullYear(),c.getMonth(),c.getDate(),d.JSC$11337_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,d.JSC$11337_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),a==2&&(K%=100),Ev(d,Ps6(K,a));case "u":return uQ7(d,a,c,!1);case "M":a:switch(K=c.getMonth(),a){case 5:a=d.JSC$11337_dateTimeSymbols_.NARROWMONTHS[K];
break a;case 4:a=d.JSC$11337_dateTimeSymbols_.MONTHS[K];break a;case 3:a=d.JSC$11337_dateTimeSymbols_.SHORTMONTHS[K];break a;default:a=Ev(d,_.dv(K+1,a))}return a;case "k":return yc(p),Ev(d,_.dv(SL(p)||24,a));case "S":return Ev(d,(p.getMilliseconds()/1E3).toFixed(Math.min(3,a)).slice(2)+(a>3?_.dv(0,a-3):""));case "E":return K=c.getDay(),a>=4?d.JSC$11337_dateTimeSymbols_.WEEKDAYS[K]:d.JSC$11337_dateTimeSymbols_.SHORTWEEKDAYS[K];case "a":return IV3(d,p);case "b":return IV3(d,p);case "B":return IV3(d,
p);case "h":return yc(p),Ev(d,_.dv(SL(p)%12||12,a));case "K":return yc(p),Ev(d,_.dv(SL(p)%12,a));case "H":return yc(p),Ev(d,_.dv(SL(p),a));case "c":a:switch(K=c.getDay(),a){case 5:a=d.JSC$11337_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[K];break a;case 4:a=d.JSC$11337_dateTimeSymbols_.STANDALONEWEEKDAYS[K];break a;case 3:a=d.JSC$11337_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[K];break a;default:a=Ev(d,_.dv(K,1))}return a;case "L":a:switch(K=c.getMonth(),a){case 5:a=d.JSC$11337_dateTimeSymbols_.STANDALONENARROWMONTHS[K];
break a;case 4:a=d.JSC$11337_dateTimeSymbols_.STANDALONEMONTHS[K];break a;case 3:a=d.JSC$11337_dateTimeSymbols_.STANDALONESHORTMONTHS[K];break a;default:a=Ev(d,_.dv(K+1,a))}return a;case "Q":return K=Math.floor(c.getMonth()/3),a<4?d.JSC$11337_dateTimeSymbols_.SHORTQUARTERS[K]:d.JSC$11337_dateTimeSymbols_.QUARTERS[K];case "d":return Ev(d,_.dv(c.getDate(),a));case "m":return yc(p),Ev(d,_.dv(p.getMinutes?p.getMinutes():0,a));case "s":return yc(p),Ev(d,_.dv(p.getSeconds(),a));case "v":return(g||NR(K.getTimezoneOffset())).timeZoneId_;
case "V":return d=g||NR(K.getTimezoneOffset()),a<=2?d.timeZoneId_:Ur3(d,K)>0?d.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?d.tzNamesExt_.DST_GENERIC_LOCATION:d.tzNamesExt_.DST_GENERIC_LOCATION:d.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?d.tzNamesExt_.STD_GENERIC_LOCATION:d.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return K=WZ6(p.getFullYear(),p.getMonth(),p.getDate(),d.JSC$11337_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,d.JSC$11337_dateTimeSymbols_.FIRSTDAYOFWEEK),Ev(d,_.dv(Math.floor(Math.round((K-(new Date((new Date(K)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,a));case "z":return d=g||NR(K.getTimezoneOffset()),a<4?d.tzNames_[Ur3(d,K)>0?2:0]:d.tzNames_[Ur3(d,K)>0?3:1];case "Z":return H=g||NR(K.getTimezoneOffset()),a<4?(a=-hZA(H,K),d=[a<0?"-":"+"],a=Math.abs(a),d.push(_.dv(Math.floor(a/60)%100,2),_.dv(a%60,2)),a=d.join("")):a=Ev(d,VOA(hZA(H,K))),a;default:return""}};var rBA=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,WJg=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,F8l=function(d){this.patternParts_=[];this.JSC$11346_dateTimeSymbols_=RI;if(typeof d=="number"){d>11&&(d=10);if(d<4)var H=this.JSC$11346_dateTimeSymbols_.DATEFORMATS[d];else d<8?H=this.JSC$11346_dateTimeSymbols_.TIMEFORMATS[d-4]:(H=this.JSC$11346_dateTimeSymbols_.DATETIMEFORMATS[d-8],H=H.replace("{1}",this.JSC$11346_dateTimeSymbols_.DATEFORMATS[d-8]),H=H.replace("{0}",this.JSC$11346_dateTimeSymbols_.TIMEFORMATS[d-
8]));B4S(this,H)}else B4S(this,d)},B4S=function(d,H){for(var K=!1,c="",p=0;p<H.length;p++){var g=H.charAt(p);
if(rBA.test(g))for(c.length>0&&(d.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1}),c=""),d.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});p<H.length-1&&H.charAt(p+1)==" ";)p++;else if(K)g=="'"?p+1<H.length&&H.charAt(p+1)=="'"?(c+="'",p++):K=!1:c+=g;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(g)>=0){c.length>0&&(d.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1}),c="");for(var a=H.charAt(p),e=p+1;e<H.length&&H.charAt(e)==a;)e++;a=e-p;a<=0?e=!1:(e="MydhHmsSDkK".indexOf(g),
e=e>0||e==0&&a<3);d.patternParts_.push({text:g,count:a,abutStart:!1,numeric:e});p+=a-1}else g=="'"?p+1<H.length&&H.charAt(p+1)=="'"?(c+="'",p++):K=!0:c+=g}c.length>0&&d.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1});H=!1;for(K=0;K<d.patternParts_.length;K++)d.patternParts_[K].numeric?!H&&K+1<d.patternParts_.length&&d.patternParts_[K+1].numeric&&(H=!0,d.patternParts_[K].abutStart=!0):H=!1};
F8l.prototype.parse=function(d,H,K){var c=!1,p=!1;K&&(c=K.predictive||!1,p=K.validate||!1);if(c)for(K=0;K<this.patternParts_.length;K++){var g=this.patternParts_[K];if(g.count>0&&("abBhHkKm".indexOf(g.text.charAt(0))<0||g.count>2||g.abutStart))throw Error("Xd`"+g.text.charAt(0));}g=new zZl;K=[0];g.dayPeriodIndex=-1;for(var a=0;a<this.patternParts_.length&&!(c&&K[0]>=d.length);a++){if(this.patternParts_[a].count==0){a:{var e=d;var k=K,C=this.patternParts_[a],R=c;if(C.text.match(rBA)!=null){if(C=k[0],
XjM(e,k),k[0]>C){e=!0;break a}}else{if(e.indexOf(C.text,k[0])==k[0]){k[0]+=C.text.length;e=!0;break a}if(R&&C.text.indexOf(e.substring(k[0]))==0){k[0]+=e.length-k[0];e=!0;break a}}e=!1}if(e)continue;return 0}if(this.patternParts_[a].abutStart){a:{k=d;C=K;R=a;var V=C[0],U=0;for(e=R;e<this.patternParts_.length;e++){var L=this.patternParts_[e],w=L.count;if(w===0)break;if(e==R&&(w-=U,U++,w==0)){e=0;break a}var W=e>R&&L.numeric,J=C[0];if(!JBX(this,k,C,L,w,g,!1)||W&&C[0]-J<w)e=R-1,C[0]=V}e-=R}if(e<=0)return 0;
a+=e-1}else if(!JBX(this,d,K,this.patternParts_[a],0,g,c))return 0}a:{d=p;if(H==null)throw Error("Yd");g.era!=void 0&&g.year!=void 0&&g.era==0&&g.year>0&&(g.year=-(g.year-1));g.year!=void 0&&H.setFullYear(g.year);c=H.getDate();H.setDate(1);g.month!=void 0&&H.setMonth(g.month);g.day!=void 0?H.setDate(g.day):(p=aZ1(H.getFullYear(),H.getMonth()),H.setDate(c>p?p:c));typeof H.setHours==="function"&&(g.hours==void 0&&(g.hours=H.getHours()),g.hours<12&&(g.ampm!=void 0&&g.ampm>0?g.hours+=12:g.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(g.dayPeriodName)||["night1","night2"].includes(g.dayPeriodName)&&g.hours>=6)&&(g.hours+=12)),H.setHours(g.hours));typeof H.setMinutes==="function"&&g.minutes!=void 0&&H.setMinutes(g.minutes);typeof H.setSeconds==="function"&&g.seconds!=void 0&&H.setSeconds(g.seconds);typeof H.setMilliseconds==="function"&&g.milliseconds!=void 0&&H.setMilliseconds(g.milliseconds);if(d&&(g.year&&g.year!=H.getFullYear()||g.month&&g.month!=
H.getMonth()||g.day&&g.day!=H.getDate()||g.hours&&g.hours>=24||g.minutes&&g.minutes>=60||g.seconds&&g.seconds>=60||g.milliseconds&&g.milliseconds>=1E3))H=!1;else{g.tzOffset!=void 0&&H.setTime(H.getTime()+(g.tzOffset-H.getTimezoneOffset())*60*1E3);g.ambiguousYear&&(d=new Date,d.setFullYear(d.getFullYear()-80),H.getTime()<d.getTime()&&H.setFullYear(d.getFullYear()+100));if(g.dayOfWeek!=void 0)if(g.day==void 0)g=(7+g.dayOfWeek-H.getDay())%7,g>3&&(g-=7),d=H.getMonth(),H.setDate(H.getDate()+g),H.getMonth()!=
d&&H.setDate(H.getDate()+(g>0?-7:7));else if(g.dayOfWeek!=H.getDay()){H=!1;break a}H=!0}}return H?K[0]:0};
var JBX=function(d,H,K,c,p,g,a){XjM(H,K);if(c.numeric&&p>0&&K[0]+p>H.length)return!1;switch(c.text.charAt(0)){case "G":return bS(H,K,[d.JSC$11346_dateTimeSymbols_.ERAS],function(e){return g.era=e}),!0;
case "M":case "L":return s1A(d,H,K,p,c,g);case "E":return bS(H,K,[d.JSC$11346_dateTimeSymbols_.WEEKDAYS,d.JSC$11346_dateTimeSymbols_.SHORTWEEKDAYS],function(e){return g.dayOfWeek=e});
case "B":case "b":return p=[],d=[[].concat(d.JSC$11346_dateTimeSymbols_.AMPMS)],p.push("isAm"),p.push("isPm"),H=bS(H,K,d,function(e){return g.dayPeriodIndex=e},a),g.dayPeriodName=p[g.dayPeriodIndex],a?H:!0;
case "a":return H=bS(H,K,[d.JSC$11346_dateTimeSymbols_.AMPMS],function(e){return g.ampm=e},a),a?H:!0;
case "y":return FJ3(d,H,K,c,p,g);case "Q":return bS(H,K,[d.JSC$11346_dateTimeSymbols_.QUARTERS,d.JSC$11346_dateTimeSymbols_.SHORTQUARTERS],function(e){g.month=e*3;g.day=1});
case "d":return Ns(d,H,K,c,p,function(e){g.day=e}),!0;
case "S":return ZKB(d,H,K,p,g);case "h":case "K":case "H":case "k":return H=Ns(d,H,K,c,p,function(e){g.hours=c.text.charAt(0)==="h"&&e===12?0:e},a),a?H:!0;
case "m":return H=Ns(d,H,K,c,p,function(e){g.minutes=e},a),a?H:!0;
case "s":return Ns(d,H,K,c,p,function(e){g.seconds=e}),!0;
case "z":case "Z":case "v":return T4d(d,H,K,g);default:return!1}},FJ3=function(d,H,K,c,p,g){var a=K[0];
p=Dh(d,H,K,p);p===null&&(p=Dh(d,H,K,0,!0));if(p===null)return!1;p>=0&&K[0]-a==2&&c.count==2?(d=p,H=(new Date).getFullYear()-80,K=H%100,g.ambiguousYear=d==K,d+=Math.floor(H/100)*100+(d<K?100:0),g.year=d):g.year=p;return!0},s1A=function(d,H,K,c,p,g){return p.numeric&&Ns(d,H,K,p,c,function(a){g.month=a-1})?!0:bS(H,K,[d.JSC$11346_dateTimeSymbols_.MONTHS,
d.JSC$11346_dateTimeSymbols_.STANDALONEMONTHS,d.JSC$11346_dateTimeSymbols_.SHORTMONTHS,d.JSC$11346_dateTimeSymbols_.STANDALONESHORTMONTHS],function(a){g.month=a})},ZKB=function(d,H,K,c,p){var g=K[0];
d=Dh(d,H,K,c);if(d===null)return!1;K=K[0]-g;p.milliseconds=K<3?d*Math.pow(10,3-K):Math.round(d/Math.pow(10,K-3));return!0},T4d=function(d,H,K,c){H.indexOf("GMT",K[0])==K[0]&&(K[0]+=3);
if(K[0]>=H.length)return c.tzOffset=0,!0;var p=K[0],g=Dh(d,H,K,0,!0);if(g===null)return!1;if(K[0]<H.length&&H.charAt(K[0])==":"){var a=g*60;K[0]++;g=Dh(d,H,K,0);if(g===null)return!1;a+=g}else a=g,a=a<24&&K[0]-p<=3?a*60:a%100+a/100*60;c.tzOffset=-a;return!0},Ns=function(d,H,K,c,p,g,a){a=a||!1;
var e=K[0];d=Dh(d,H,K,p);if(d===null)return!1;if(a&&K[0]-e<c.count){if(K[0]<H.length)return!1;d*=Math.pow(10,c.count-(K[0]-e))}g(d);return!0},bS=function(d,H,K,c,p){p=p||!1;
for(var g,a=0;a<K.length;a++){g=H;for(var e=K[a],k=p,C=0,R=null,V=d.substring(g[0]).toLowerCase(),U=0;U<e.length;U++){var L=e[U].toLowerCase();if(k&&L.indexOf(V)==0){C=V.length;R=U;break}e[U].length>C&&V.indexOf(L)==0&&(C=e[U].length,R=U)}R!==null&&(g[0]+=C);g=R;if(g!==null)return c(g),!0}return!1},XjM=function(d,H){(d=d.substring(H[0]).match(WJg))&&(H[0]+=d[0].length)},Dh=function(d,H,K,c,p){H=c>0?H.substring(0,K[0]+c):H;
p=p||!1;if(d.JSC$11346_dateTimeSymbols_.ZERODIGIT){c=[];for(var g=K[0];g<H.length;g++){var a=H.charCodeAt(g)-d.JSC$11346_dateTimeSymbols_.ZERODIGIT;c.push(0<=a&&a<=9?String.fromCharCode(a+48):H.charAt(g))}H=c.join("")}else H=H.substring(K[0]);d=H.match(new RegExp("^"+(p?"[+-]?":"")+"\\d+"));if(!d)return null;K[0]+=d[0].length;return parseInt(d[0],10)},zZl=function(){};
zZl.prototype.ambiguousYear=!1;_.Q13={DAY:{LONG:"one{# day}other{# days}",SHORT:"one{# day}other{# days}",NARROW:"one{#d}other{#d}"},HOUR:{LONG:"one{# hour}other{# hours}",SHORT:"one{# hr}other{# hr}",NARROW:"one{#h}other{#h}"},MINUTE:{LONG:"one{# minute}other{# minutes}",SHORT:"one{# min}other{# min}",NARROW:"one{#m}other{#m}"},MONTH:{LONG:"one{# month}other{# months}",SHORT:"one{# mth}other{# mths}",NARROW:"one{#m}other{#m}"},SECOND:{LONG:"one{# second}other{# seconds}",SHORT:"one{# sec}other{# sec}",NARROW:"one{#s}other{#s}"},
WEEK:{LONG:"one{# week}other{# weeks}",SHORT:"one{# wk}other{# wks}",NARROW:"one{#w}other{#w}"},YEAR:{LONG:"one{# year}other{# years}",SHORT:"one{# yr}other{# yrs}",NARROW:"one{#y}other{#y}"}};var tOB={DECIMAL_SEP:".",GROUP_SEP:",",PERCENT:"%",ZERO_DIGIT:"0",PLUS_SIGN:"+",MINUS_SIGN:"-",EXP_SYMBOL:"E",PERMILL:"\u2030",INFINITY:"\u221e",NAN:"NaN",DECIMAL_PATTERN:"#,##0.###",SCIENTIFIC_PATTERN:"#E0",PERCENT_PATTERN:"#,##0%",CURRENCY_PATTERN:"\u00a4#,##0.00",DEF_CURRENCY_CODE:"USD"},YI0=tOB,OKX=tOB;OKX=YI0=tOB;var Ef3,fT,jL,$4f,Ag,SIB;
_.Ec=function(d,H,K,c){var p;if(p=H){a:if(H&&H.length===3){for(p=0;p<3;p++){var g=H[p];if(g<"A"||g>"Z"&&g<"a"||g>"z"){p=!1;break a}}p=!0}else p=!1;p=!p}if(p)throw new TypeError("Zd");this.intlCurrencyCode_=H?H.toUpperCase():null;this.currencyStyle_=K||0;this.overrideNumberFormatSymbols_=c||null;this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.useSignForPositiveExponent_=!1;
this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=fT(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof d==="number")switch(d){case 1:Ag(this,fT(this).DECIMAL_PATTERN);break;case 2:Ag(this,fT(this).SCIENTIFIC_PATTERN);break;case 3:Ag(this,fT(this).PERCENT_PATTERN);break;case 4:d=fT(this).CURRENCY_PATTERN;H=["0"];if(K=
Ov[jL(this)]){K=K[0]&7;if(K>0)for(H.push("."),c=0;c<K;c++)H.push("0");d=d.replace(/0.00/g,H.join(""))}Ag(this,d);break;case 5:SIB(this,1);break;case 6:SIB(this,2);break;default:throw Error("be");}else Ag(this,d)};
Ef3=!1;fT=function(d){return d.overrideNumberFormatSymbols_||(Ef3?OKX:YI0)};
jL=function(d){return d.intlCurrencyCode_||fT(d).DEF_CURRENCY_CODE};
$4f=function(d,H){if(H>308)throw Error("ae`"+H);d.maximumFractionDigits_=H;return d};
Ag=function(d,H){var K=[0];d.positivePrefix_=yBl(d,H,K);for(var c=K[0],p=-1,g=0,a=0,e=0,k=-1,C=H.length,R=!0;K[0]<C&&R;K[0]++)switch(H.charAt(K[0])){case "#":a>0?e++:g++;k>=0&&p<0&&k++;break;case "0":if(e>0)throw Error("he`"+H);a++;k>=0&&p<0&&k++;break;case ",":k>0&&d.groupingArray_.push(k);k=0;break;case ".":if(p>=0)throw Error("ie`"+H);p=g+a+e;break;case "E":if(d.useExponentialNotation_)throw Error("je`"+H);d.useExponentialNotation_=!0;d.minExponentDigits_=0;K[0]+1<C&&H.charAt(K[0]+1)=="+"&&(K[0]++,
d.useSignForPositiveExponent_=!0);for(;K[0]+1<C&&H.charAt(K[0]+1)=="0";)K[0]++,d.minExponentDigits_++;if(g+a<1||d.minExponentDigits_<1)throw Error("ke`"+H);R=!1;break;default:K[0]--,R=!1}a==0&&g>0&&p>=0&&(a=p,a==0&&a++,e=g-a,g=a-1,a=1);if(p<0&&e>0||p>=0&&(p<g||p>g+a)||k==0)throw Error("le`"+H);e=g+a+e;d.maximumFractionDigits_=p>=0?e-p:0;p>=0&&(d.minimumFractionDigits_=g+a-p,d.minimumFractionDigits_<0&&(d.minimumFractionDigits_=0));d.minimumIntegerDigits_=(p>=0?p:e)-g;d.useExponentialNotation_&&(d.maximumIntegerDigits_=
g+d.minimumIntegerDigits_,d.maximumFractionDigits_==0&&d.minimumIntegerDigits_==0&&(d.minimumIntegerDigits_=1));d.groupingArray_.push(Math.max(0,k));d.decimalSeparatorAlwaysShown_=p==0||p==e;c=K[0]-c;d.positiveSuffix_=yBl(d,H,K);K[0]<H.length&&H.charAt(K[0])==";"?(K[0]++,d.multiplier_!=1&&(d.negativePercentSignExpected_=!0),d.negativePrefix_=yBl(d,H,K),K[0]+=c,d.negativeSuffix_=yBl(d,H,K)):(d.negativePrefix_+=d.positivePrefix_,d.negativeSuffix_+=d.positiveSuffix_)};
SIB=function(d,H){d.compactStyle_=H;Ag(d,fT(d).DECIMAL_PATTERN);d.minimumFractionDigits_=0;$4f(d,2);if(d.minimumFractionDigits_>0)throw Error("$d");d.significantDigits_=2};
_.Ec.prototype.parse=function(d,H){H=H||[0];if(this.compactStyle_!==0)throw Error("ce");d=d.replace(/ |\u202f/g,"\u00a0");var K=d.indexOf(this.positivePrefix_,H[0])==H[0],c=d.indexOf(this.negativePrefix_,H[0])==H[0];K&&c&&(this.positivePrefix_.length>this.negativePrefix_.length?c=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(K=!1));K?H[0]+=this.positivePrefix_.length:c&&(H[0]+=this.negativePrefix_.length);if(d.indexOf(fT(this).INFINITY,H[0])==H[0]){H[0]+=fT(this).INFINITY.length;var p=
Infinity}else{p=d;var g=!1,a=!1,e=!1,k=-1,C=1,R=fT(this).DECIMAL_SEP,V=fT(this).GROUP_SEP,U=fT(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("de");V=V.replace(/\u202f/g,"\u00a0");for(var L="";H[0]<p.length;H[0]++){var w=p.charAt(H[0]),W=bKB(this,w);if(W>=0&&W<=9)L+=W,e=!0;else if(w==R.charAt(0)){if(g||a)break;L+=".";g=!0}else if(w==V.charAt(0)&&("\u00a0"!=V.charAt(0)||H[0]+1<p.length&&bKB(this,p.charAt(H[0]+1))>=0)){if(g||a)break}else if(w==U.charAt(0)){if(a)break;L+="E";a=!0;k=H[0]}else if(w==
"+"||w=="-"){if(e&&k!=H[0]-1)break;L+=w}else if(this.multiplier_==1&&w==fT(this).PERCENT.charAt(0)){if(C!=1)break;C=100;if(e){H[0]++;break}}else if(this.multiplier_==1&&w==fT(this).PERMILL.charAt(0)){if(C!=1)break;C=1E3;if(e){H[0]++;break}}else break}this.multiplier_!=1&&(C=this.multiplier_);p=parseFloat(L)/C}if(K){if(d.indexOf(this.positiveSuffix_,H[0])!=H[0])return NaN;H[0]+=this.positiveSuffix_.length}else if(c){if(d.indexOf(this.negativeSuffix_,H[0])!=H[0])return NaN;H[0]+=this.negativeSuffix_.length}return c?
-p:p};
_.Ec.prototype.format=function(d){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ee");if(isNaN(d))return fT(this).NAN;var H=[];var K=d;if(this.compactStyle_==0)K=vU;else{K=Math.abs(K);var c=N47(this,K<=1?0:DrB(K)).divisorBase;K=N47(this,c+DrB(fV6(this,di(K,-c)).intValue))}d=di(d,-K.divisorBase);(c=d<0||d==0&&1/d<0)?K.negative_prefix?H.push(K.negative_prefix):(H.push(K.prefix),H.push(this.negativePrefix_)):(H.push(K.prefix),H.push(this.positivePrefix_));if(isFinite(d))if(d*=
c?-1:1,d*=this.multiplier_,this.useExponentialNotation_){var p=d;if(p==0)AB3(this,p,this.minimumIntegerDigits_,H),j1N(this,0,H);else{var g=Math.floor(Math.log(p)/Math.log(10)+2E-15);p=di(p,-g);var a=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(a=g%this.maximumIntegerDigits_,a<0&&(a=this.maximumIntegerDigits_+a),p=di(p,a),g-=a,a=1):this.minimumIntegerDigits_<1?(g++,p=di(p,-1)):(g-=this.minimumIntegerDigits_-1,p=di(p,this.minimumIntegerDigits_-
1));AB3(this,p,a,H);j1N(this,g,H)}}else AB3(this,d,this.minimumIntegerDigits_,H);else H.push(fT(this).INFINITY);c?K.negative_suffix?H.push(K.negative_suffix):(isFinite(d)&&H.push(K.suffix),H.push(this.negativeSuffix_)):(isFinite(d)&&H.push(K.suffix),H.push(this.positiveSuffix_));return H.join("")};
var fV6=function(d,H){var K=di(H,d.maximumFractionDigits_);d.significantDigits_>0&&(K=vfX(K,d.significantDigits_,d.maximumFractionDigits_));K=Math.round(K);if(isFinite(K)){var c=Math.floor(di(K,-d.maximumFractionDigits_));K=Math.floor(K-di(c,d.maximumFractionDigits_));if(K<0||K>=di(1,d.maximumFractionDigits_))c=Math.round(H),K=0}else c=H,K=0;return{intValue:c,fracValue:K}},AB3=function(d,H,K,c){if(d.minimumFractionDigits_>d.maximumFractionDigits_)throw Error("ee");
c||(c=[]);H=fV6(d,H);var p=H.intValue,g=H.fracValue,a=d.minimumFractionDigits_>0||g>0||!1;H=d.minimumFractionDigits_;a&&(H=d.minimumFractionDigits_);for(var e="",k=p;k>1E20;)e="0"+e,k=Math.round(di(k,-1));e=k+e;var C=fT(d).DECIMAL_SEP;k=fT(d).ZERO_DIGIT.codePointAt(0);var R=e.length,V=0;if(p>0||K>0){for(p=R;p<K;p++)c.push(String.fromCodePoint(k));if(d.groupingArray_.length>=2)for(K=1;K<d.groupingArray_.length;K++)V+=d.groupingArray_[K];K=R-V;if(K>0){p=d.groupingArray_;V=R=0;for(var U,L=fT(d).GROUP_SEP,
w=e.length,W=0;W<w;W++)if(c.push(String.fromCodePoint(k+Number(e.charAt(W)))),w-W>1)if(U=p[V],W<K){var J=K-W;(U===1||U>0&&J%U===1)&&c.push(L)}else V<p.length&&(W===K?V+=1:U===W-K-R+1&&(c.push(L),R+=U,V+=1))}else{K=e;e=d.groupingArray_;p=fT(d).GROUP_SEP;U=K.length;L=[];for(R=e.length-1;R>=0&&U>0;R--){V=e[R];for(w=0;w<V&&U-w-1>=0;w++)L.push(String.fromCodePoint(k+Number(K.charAt(U-w-1))));U-=V;U>0&&L.push(p)}c.push.apply(c,L.reverse())}}else a||c.push(String.fromCodePoint(k));(d.decimalSeparatorAlwaysShown_||
a)&&c.push(C);g=String(g);a=g.split("e+");a.length==2&&(g=String(vfX(parseFloat(a[0]),d.significantDigits_,1)),g=g.replace(".",""),g+=(0,_.rCg)("0",parseInt(a[1],10)-g.length+1));d.maximumFractionDigits_+1>g.length&&(g="1"+(0,_.rCg)("0",d.maximumFractionDigits_-g.length)+g);for(d=g.length;g.charAt(d-1)=="0"&&d>H+1;)d--;for(H=1;H<d;H++)c.push(String.fromCodePoint(k+Number(g.charAt(H))))},j1N=function(d,H,K){K.push(fT(d).EXP_SYMBOL);
H<0?(H=-H,K.push(fT(d).MINUS_SIGN)):d.useSignForPositiveExponent_&&K.push(fT(d).PLUS_SIGN);H=""+H;for(var c=fT(d).ZERO_DIGIT,p=H.length;p<d.minExponentDigits_;p++)K.push(c);d=c.codePointAt(0)-dkX;for(c=0;c<H.length;c++)K.push(String.fromCodePoint(d+H.codePointAt(c)))},bKB=function(d,H){H=H.codePointAt(0);
if(48<=H&&H<58)return H-48;d=fT(d).ZERO_DIGIT.codePointAt(0);return d<=H&&H<d+10?H-d:-1},dkX="0".codePointAt(0),yBl=function(d,H,K){for(var c="",p=!1,g=H.length;K[0]<g;K[0]++){var a=H.charAt(K[0]);
if(a=="'")K[0]+1<g&&H.charAt(K[0]+1)=="'"?(K[0]++,c+="'"):p=!p;else if(p)c+=a;else switch(a){case "#":case "0":case ",":case ".":case ";":return c;case "\u00a4":if(K[0]+1<g&&H.charAt(K[0]+1)=="\u00a4")K[0]++,c+=jL(d);else switch(d.currencyStyle_){case 0:a=jL(d);c+=a in Ov?Ov[a][1]:a;break;case 2:a=jL(d);var e=Ov[a];c+=e?a==e[1]?a:a+" "+e[1]:a;break;case 1:a=jL(d),c+=a in Ov?Ov[a][2]:a}break;case "%":if(!d.negativePercentSignExpected_&&d.multiplier_!=1)throw Error("fe");if(d.negativePercentSignExpected_&&
d.multiplier_!=100)throw Error("ge");d.multiplier_=100;d.negativePercentSignExpected_=!1;c+=fT(d).PERCENT;break;case "\u2030":if(!d.negativePercentSignExpected_&&d.multiplier_!=1)throw Error("fe");if(d.negativePercentSignExpected_&&d.multiplier_!=1E3)throw Error("ge");d.multiplier_=1E3;d.negativePercentSignExpected_=!1;c+=fT(d).PERMILL;break;default:c+=a}}return c},vU={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},N47=function(d,H){d=d.compactStyle_==1?Yq.COMPACT_DECIMAL_SHORT_PATTERN:Yq.COMPACT_DECIMAL_LONG_PATTERN;d==null&&(d=Yq.COMPACT_DECIMAL_SHORT_PATTERN);if(H<3)return vU;H=Math.min(14,H);var K=d[di(1,H)];for(--H;!K&&H>=3;)K=d[di(1,H)],H--;if(!K)return vU;K=K.other;var c=d="",p=K.indexOf(";");p>=0&&(K=K.substring(0,p),p=K.substring(p+1))&&(c=/([^0]*)(0+)(.*)/.exec(p),d=c[1],c=c[3]);return K&&K!="0"?(K=/([^0]*)(0+)(.*)/.exec(K))?{divisorBase:H+
1-(K[2].length-1),negative_prefix:d,negative_suffix:c,prefix:K[1],suffix:K[3]}:vU:vU},DrB=function(d){if(!isFinite(d))return d>0?d:0;
for(var H=0;(d/=10)>=1;)H++;return H},di=function(d,H){if(!d||!isFinite(d)||H==0)return d;
d=String(d).split("e");return parseFloat(d[0]+"e"+(parseInt(d[1]||0,10)+H))},HMX=function(d,H){return d&&isFinite(d)?di(Math.round(di(d,H)),-H):d},vfX=function(d,H,K){if(!d)return d;
H=H-DrB(d)-1;return H<-K?HMX(d,-K):HMX(d,H)};var $k3=function(d){return d%10==1&&d%100!=11?"one":d%10==2&&d%100!=12?"two":d%10==3&&d%100!=13?"few":"other"},KlN=$k3;
KlN=$k3;var cR3;cR3=function(d,H){var K=d|0;if(void 0===H){H=Math;var c=H.min,p=d+"",g=p.indexOf(".");H=c.call(H,g===-1?0:p.length-g-1,3)}c=Math.pow(10,H);d={v:H,f:(d*c|0)%c};return K==1&&d.v==0?"one":"other"};
_.fH=cR3;_.fH=cR3;var p1U,gv3,iMM,ovX,qGS;_.G6d=function(d){this.JSC$11389_pattern_=d;this.parsedPattern_=this.literals_=this.initialLiterals_=null;d=YI0;var H=Yq;if(p1U!==d||gv3!==H)p1U=d,gv3=H,iMM=new _.Ec(1);this.numberFormatter_=iMM};
p1U=null;gv3=null;iMM=null;ovX=RegExp("'([{}#].*?)'","g");qGS=RegExp("''","g");
_.G6d.prototype.format=function(d){if(this.JSC$11389_pattern_){this.initialLiterals_=[];var H=aXC(this,this.JSC$11389_pattern_);this.parsedPattern_=lXA(this,H);this.JSC$11389_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.tC(this.initialLiterals_),H=[],eud(this,this.parsedPattern_,d,!1,H),d=H.join("");this.literals_.length>0;)d=d.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else d="";return d};
var eud=function(d,H,K,c,p){for(var g=0;g<H.length;g++)switch(H[g].type){case 4:p.push(H[g].value);break;case 3:var a=H[g].value;var e=d,k=p,C=K[a];C===void 0?k.push("Undefined parameter - "+a):(e.literals_.push(C),k.push(e.buildPlaceholder_(e.literals_)));break;case 2:a=H[g].value;e=d;k=K;C=c;var R=p,V=a.argumentIndex;k[V]===void 0?R.push("Undefined parameter - "+V):(V=a[k[V]],V===void 0&&(V=a.other),eud(e,V,k,C,R));break;case 0:a=H[g].value;k63(d,a,K,_.fH,c,p);break;case 1:a=H[g].value,k63(d,a,
K,KlN,c,p)}},k63=function(d,H,K,c,p,g){var a=H.argumentIndex,e=H.argumentOffset,k=+K[a];
isNaN(k)?g.push("Undefined or invalid parameter - "+a):(e=k-e,a=H[K[a]],a===void 0&&(c=c(Math.abs(e)),a=H[c],a===void 0&&(a=H.other)),H=[],eud(d,a,K,p,H),K=H.join(""),p?g.push(K):(d=d.numberFormatter_.format(e),g.push(K.replace(/#/g,d))))},aXC=function(d,H){var K=d.initialLiterals_,c=d.buildPlaceholder_.bind(d);
H=H.replace(qGS,function(){K.push("'");return c(K)});
return H=H.replace(ovX,function(p,g){K.push(g);return c(K)})},xkX=function(d){var H=0,K=[],c=[],p=/[{}]/g;
p.lastIndex=0;for(var g;g=p.exec(d);){var a=g.index;g[0]=="}"?(K.pop(),K.length==0&&(g={type:1},g.value=d.substring(H,a),c.push(g),H=a+1)):(K.length==0&&(H=d.substring(H,a),H!=""&&c.push({type:0,value:H}),H=a+1),K.push("{"))}d=d.substring(H);d!=""&&c.push({type:0,value:d});return c},nvd=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,CDA=/^\s*(\w+)\s*,\s*selectordinal\s*,/,RuX=/^\s*(\w+)\s*,\s*select\s*,/,lXA=function(d,H){var K=[];
H=xkX(H);for(var c=0;c<H.length;c++){var p={};if(0==H[c].type)p.type=4,p.value=H[c].value;else if(1==H[c].type){var g=H[c].value;switch(nvd.test(g)?0:CDA.test(g)?1:RuX.test(g)?2:/^\s*\w+\s*/.test(g)?3:5){case 2:p.type=2;p.value=VvX(d,H[c].value);break;case 0:p.type=0;p.value=UkA(d,H[c].value);break;case 1:p.type=1;p.value=hu3(d,H[c].value);break;case 3:p.type=3,p.value=H[c].value}}K.push(p)}return K},VvX=function(d,H){var K="";
H=H.replace(RuX,function(e,k){K=k;return""});
var c={};c.argumentIndex=K;H=xkX(H);for(var p=0;p<H.length;){var g=H[p].value;p++;var a=void 0;1==H[p].type&&(a=lXA(d,H[p].value));c[g.replace(/\s/g,"")]=a;p++}return c},UkA=function(d,H){var K="",c=0;
H=H.replace(nvd,function(k,C,R){K=C;R&&(c=parseInt(R,10));return""});
var p={};p.argumentIndex=K;p.argumentOffset=c;H=xkX(H);for(var g=0;g<H.length;){var a=H[g].value;g++;var e=void 0;1==H[g].type&&(e=lXA(d,H[g].value));p[a.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=e;g++}return p},hu3=function(d,H){var K="";
H=H.replace(CDA,function(e,k){K=k;return""});
var c={};c.argumentIndex=K;c.argumentOffset=0;H=xkX(H);for(var p=0;p<H.length;){var g=H[p].value;p++;var a=void 0;1==H[p].type&&(a=lXA(d,H[p].value));c[g.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=a;p++}return c};
_.G6d.prototype.buildPlaceholder_=function(d){return"\ufddf_"+(d.length-1).toString(10)+"_"};var Lld;
Lld={DAY:{LONG:{R:{"-1":"yesterday",0:"today",1:"tomorrow"},P:"one{# day ago}other{# days ago}",F:"one{in # day}other{in # days}"},NARROW:{R:{"-1":"yesterday",0:"today",1:"tomorrow"},P:"one{#d ago}other{#d ago}",F:"one{in #d}other{in #d}"}},HOUR:{LONG:{R:{0:"this hour"},P:"one{# hour ago}other{# hours ago}",F:"one{in # hour}other{in # hours}"},SHORT:{R:{0:"this hour"},P:"one{# hr. ago}other{# hr. ago}",F:"one{in # hr.}other{in # hr.}"},NARROW:{R:{0:"this hour"},P:"one{#h ago}other{#h ago}",F:"one{in #h}other{in #h}"}},
MINUTE:{LONG:{R:{0:"this minute"},P:"one{# minute ago}other{# minutes ago}",F:"one{in # minute}other{in # minutes}"},SHORT:{R:{0:"this minute"},P:"one{# min. ago}other{# min. ago}",F:"one{in # min.}other{in # min.}"},NARROW:{R:{0:"this minute"},P:"one{#m ago}other{#m ago}",F:"one{in #m}other{in #m}"}},MONTH:{LONG:{R:{"-1":"last month",0:"this month",1:"next month"},P:"one{# month ago}other{# months ago}",F:"one{in # month}other{in # months}"},SHORT:{R:{"-1":"last mo.",0:"this mo.",1:"next mo."},P:"one{# mo. ago}other{# mo. ago}",
F:"one{in # mo.}other{in # mo.}"},NARROW:{R:{"-1":"last mo.",0:"this mo.",1:"next mo."},P:"one{#mo ago}other{#mo ago}",F:"one{in #mo}other{in #mo}"}},QUARTER:{LONG:{R:{"-1":"last quarter",0:"this quarter",1:"next quarter"},P:"one{# quarter ago}other{# quarters ago}",F:"one{in # quarter}other{in # quarters}"},SHORT:{R:{"-1":"last qtr.",0:"this qtr.",1:"next qtr."},P:"one{# qtr. ago}other{# qtrs. ago}",F:"one{in # qtr.}other{in # qtrs.}"},NARROW:{R:{"-1":"last qtr.",0:"this qtr.",1:"next qtr."},P:"one{#q ago}other{#q ago}",
F:"one{in #q}other{in #q}"}},SECOND:{LONG:{R:{0:"now"},P:"one{# second ago}other{# seconds ago}",F:"one{in # second}other{in # seconds}"},SHORT:{R:{0:"now"},P:"one{# sec. ago}other{# sec. ago}",F:"one{in # sec.}other{in # sec.}"},NARROW:{R:{0:"now"},P:"one{#s ago}other{#s ago}",F:"one{in #s}other{in #s}"}},WEEK:{LONG:{R:{"-1":"last week",0:"this week",1:"next week"},P:"one{# week ago}other{# weeks ago}",F:"one{in # week}other{in # weeks}"},SHORT:{R:{"-1":"last wk.",0:"this wk.",1:"next wk."},P:"one{# wk. ago}other{# wk. ago}",
F:"one{in # wk.}other{in # wk.}"},NARROW:{R:{"-1":"last wk.",0:"this wk.",1:"next wk."},P:"one{#w ago}other{#w ago}",F:"one{in #w}other{in #w}"}},YEAR:{LONG:{R:{"-1":"last year",0:"this year",1:"next year"},P:"one{# year ago}other{# years ago}",F:"one{in # year}other{in # years}"},SHORT:{R:{"-1":"last yr.",0:"this yr.",1:"next yr."},P:"one{# yr. ago}other{# yr. ago}",F:"one{in # yr.}other{in # yr.}"},NARROW:{R:{"-1":"last yr.",0:"this yr.",1:"next yr."},P:"one{#y ago}other{#y ago}",F:"one{in #y}other{in #y}"}}};var F9l=function(){this.rdtfSymbols_=Mvg||Lld;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
F9l.prototype.format=function(d,H){a:{H=mk7(this,H);switch(this.style_){case 2:if(H.NARROW!=void 0){H=H.NARROW;break a}case 1:if(H.SHORT!=void 0){H=H.SHORT;break a}default:H=H.LONG;break a}H=void 0}if(!this.alwaysNumeric_&&H&&H.R&&H.R[""+d])d=H.R[""+d];else if(H){var K=Math.abs(d);d=(new _.G6d("{N,plural,"+(d>0||d==0&&1/d==Infinity?H.F:H.P)+"}")).format({N:K})}else d="";return d};
var mk7=function(d,H){switch(H){default:case 0:return d.rdtfSymbols_.YEAR;case 1:return d.rdtfSymbols_.QUARTER;case 2:return d.rdtfSymbols_.MONTH;case 3:return d.rdtfSymbols_.WEEK;case 4:return d.rdtfSymbols_.DAY;case 5:return d.rdtfSymbols_.HOUR;case 6:return d.rdtfSymbols_.MINUTE;case 7:return d.rdtfSymbols_.SECOND}};var w1g=function(d,H,K,c,p,g,a,e){this.x0=d;this.y0=H;this.x1=K;this.y1=c;this.x2=p;this.y2=g;this.x3=a;this.y3=e};
w1g.prototype.clone=function(){return new w1g(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
w1g.prototype.equals=function(d){return this.x0==d.x0&&this.y0==d.y0&&this.x1==d.x1&&this.y1==d.y1&&this.x2==d.x2&&this.y2==d.y2&&this.x3==d.x3&&this.y3==d.y3};
var PDU=function(d,H){if(H==0)return d.x0;if(H==1)return d.x3;var K=Ul(d.x0,d.x1,H),c=Ul(d.x1,d.x2,H);d=Ul(d.x2,d.x3,H);K=Ul(K,c,H);c=Ul(c,d,H);return Ul(K,c,H)},u43=function(d,H){var K=(H-d.x0)/(d.x3-d.x0);
if(K<=0)return 0;if(K>=1)return 1;for(var c=0,p=1,g=0,a=0;a<8;a++){g=PDU(d,K);var e=(PDU(d,K+1E-6)-g)/1E-6;if(Math.abs(g-H)<1E-6)return K;if(Math.abs(e)<1E-6)break;else g<H?c=K:p=K,K-=(g-H)/e}for(a=0;Math.abs(g-H)>1E-6&&a<8;a++)g<H?(c=K,K=(K+p)/2):(p=K,K=(K+c)/2),g=PDU(d,K);return K};var HZ=function(){_.Rj.call(this);this.JSC$11410_name_="closure_frame"+IX0++;this.iframesForDisposal_=[];rRN[this.JSC$11410_name_]=this},$Z;
_.K1(HZ,_.Rj);var rRN={},IX0=0,WlX=function(d,H){var K=Vy(d);F5N(H,function(c,p){Array.isArray(c)||(c=[c]);_.yx(c,function(g){g=K.JSC$9299_createDom("INPUT",{type:"hidden",name:p,value:g});d.appendChild(g)})})};
_.G=HZ.prototype;_.G.JSC$11412_form_=null;_.G.JSC$11412_iframe_=null;_.G.iframeName_=null;_.G.nextIframeId_=0;_.G.JSC$11412_active_=!1;_.G.complete_=!1;_.G.success_=!1;_.G.lastContent_=null;_.G.JSC$11412_lastErrorCode_=0;_.G.iframeDisposalTimer_=null;
_.G.send=function(d,H,K,c){if(this.JSC$11412_active_)throw Error("me");d=new _.jM(d);H=H?H.toUpperCase():"GET";K&&_.cQ(d);$Z||($Z=_.ms("FORM"),$Z.acceptCharset="utf-8",K=$Z.style,K.position="absolute",K.visibility="hidden",K.top=K.left="-10px",K.width=K.height="10px",K.overflow="hidden",document.body.appendChild($Z));this.JSC$11412_form_=$Z;H=="GET"&&WlX(this.JSC$11412_form_,d.JSC$10002_queryData_);c&&WlX(this.JSC$11412_form_,c);K=d.toString();K=EpX(K);c=this.JSC$11412_form_;K=_.Fa(Pe(K));K!==void 0&&
(c.action=K);this.JSC$11412_form_.method=H;BgA(this);zuM(this)};
_.G.abort=function(d){if(this.JSC$11412_active_){var H=KN(this);if(H)if(xJ(H))H.removeAllListeners(void 0);else if(H=nq(H)){var K=0,c;for(c in H.listeners)for(var p=H.listeners[c].concat(),g=0;g<p.length;++g)wg(p[g])&&++K}this.success_=this.JSC$11412_active_=this.complete_=!1;this.JSC$11412_lastErrorCode_=d||7;this.dispatchEvent("abort");X1U(this)}};
_.G.disposeInternal=function(){this.JSC$11412_active_&&this.abort();HZ.superClass_.disposeInternal.call(this);this.JSC$11412_iframe_&&JR0(this);zuM(this);this.JSC$11412_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11412_form_=null;this.JSC$11412_lastErrorCode_=0;delete rRN[this.JSC$11410_name_]};
_.G.isComplete=function(){return this.complete_};
_.G.isSuccess=function(){return this.success_};
_.G.isActive=function(){return this.JSC$11412_active_};
_.G.getResponseText=function(){return this.lastContent_};
_.G.getLastError=function(){return _.koA(this.JSC$11412_lastErrorCode_)};
var BgA=function(d){d.JSC$11412_active_=!0;d.complete_=!1;d.JSC$11412_lastErrorCode_=0;d.iframeName_=d.JSC$11410_name_+"_"+(d.nextIframeId_++).toString(36);d.JSC$11412_iframe_=Vy(d.JSC$11412_form_).JSC$9299_createDom("IFRAME",{name:d.iframeName_,id:d.iframeName_});var H=d.JSC$11412_iframe_.style;H.visibility="hidden";H.width=H.height="10px";H.display="none";_.oB?H.marginTop=H.marginLeft="-10px":(H.position="absolute",H.top=H.left="-10px");Vy(d.JSC$11412_form_).JSC$9297_document_.body.appendChild(d.JSC$11412_iframe_);
H=d.iframeName_+"_inner";var K=jC7(d.JSC$11412_iframe_);if(document.baseURI){var c=aD(H);c='<head><base href="'+aD(document.baseURI)+'"></head><body><iframe id="'+c+'" name="'+c+'"></iframe>';c=tL(c)}else c=aD(H),c=tL('<body><iframe id="'+c+'" name="'+c+'"></iframe>');K.write(YO(c));_.Iq(K.getElementById(H),"load",d.onIframeLoaded_,!1,d);c=CA("TEXTAREA",d.JSC$11412_form_);for(var p=0,g=c.length;p<g;p++){var a=c[p].value;cZg(c[p])!=a&&(_.Br(c[p],a),c[p].value=a)}c=K.importNode(d.JSC$11412_form_,!0);
c.target=H;c.action=d.JSC$11412_form_.action;K.body.appendChild(c);p=CA("SELECT",d.JSC$11412_form_);g=CA("SELECT",c);a=0;for(var e=p.length;a<e;a++)for(var k=CA("OPTION",p[a]),C=CA("OPTION",g[a]),R=0,V=k.length;R<V;R++)C[R].selected=k[R].selected;p=CA("INPUT",d.JSC$11412_form_);g=CA("INPUT",c);a=0;for(e=p.length;a<e;a++)if(p[a].type=="file"&&p[a].value!=g[a].value){d.JSC$11412_form_.target=H;c=d.JSC$11412_form_;break}try{d.errorHandled_=!1,c.submit(),K.close(),_.GZ&&setTimeout(d.testForFirefoxSilentError_.bind(d),
250)}catch(U){_.Cq(K.getElementById(H),"load",d.onIframeLoaded_,!1,d),K.close(),cZ(d,2)}};
HZ.prototype.onIframeLoaded_=function(){_.Cq(KN(this),"load",this.onIframeLoaded_,!1,this);try{var d=this.JSC$11412_iframe_?jC7(KN(this)):null;this.complete_=!0;this.JSC$11412_active_=!1;try{var H=d.body;this.lastContent_=H.textContent||H.innerText}catch(p){var K=1}var c;K||typeof this.errorChecker_!="function"||(c=this.errorChecker_(d))&&(K=4);K?cZ(this,K):(this.success_=!0,this.JSC$11412_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),X1U(this))}catch(p){cZ(this,1)}};
var cZ=function(d,H){d.errorHandled_||(d.success_=!1,d.JSC$11412_active_=!1,d.complete_=!0,d.JSC$11412_lastErrorCode_=H,d.dispatchEvent("complete"),d.dispatchEvent("error"),X1U(d),d.errorHandled_=!0)},X1U=function(d){JR0(d);
zuM(d);d.JSC$11412_form_=null;d.dispatchEvent("ready")},JR0=function(d){var H=d.JSC$11412_iframe_;
H&&(H.onreadystatechange=null,H.onload=null,H.onerror=null,d.iframesForDisposal_.push(H));d.iframeDisposalTimer_&&(clearTimeout(d.iframeDisposalTimer_),d.iframeDisposalTimer_=null);_.GZ?d.iframeDisposalTimer_=setTimeout(d.disposeIframes_.bind(d),2E3):d.disposeIframes_();d.JSC$11412_iframe_=null;d.iframeName_=null};
HZ.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var d=this.iframesForDisposal_.pop();_.nA(d)}};
var zuM=function(d){d.JSC$11412_form_&&d.JSC$11412_form_==$Z&&_.uB(d.JSC$11412_form_)},KN=function(d){return d.JSC$11412_iframe_?jC7(d.JSC$11412_iframe_).getElementById(d.iframeName_+"_inner"):null};
HZ.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11412_active_){var d=this.JSC$11412_iframe_?jC7(KN(this)):null;d&&!LVM(d,"documentUri")?(_.Cq(KN(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?cZ(this,3):cZ(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.pN=function(d){return d=="\r"||d=="\n"||d==" "||d=="\t"};var sqS;_.gi=function(d){this.errorMessage_=null;this.result_=[];this.JSC$11414_buffer_="";this.stack_=[];this.JSC$11414_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!d||!d.deliverMessageAsRawString)};
sqS={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,NUM_DIGIT:20};_.gi.prototype.isInputValid=function(){return this.streamState_!=3};
_.gi.prototype.done=function(){return this.streamState_===2};
var ih=function(d,H,K){d.streamState_=3;d.errorMessage_="The stream is broken @"+d.JSC$11414_pos_+"/"+K+". With input:\n"+H;throw Error(d.errorMessage_);};
_.gi.prototype.acceptsBinaryInput=function(){return!1};
_.gi.prototype.parse=function(d){function H(){for(;U<d.length;)if(_.pN(d[U]))U++,g.JSC$11414_pos_++;else break;return U<C}
function K(){for(var w;;){w=d[U++];if(!w)break;g.JSC$11414_pos_++;switch(g.state_){case k.INIT:w==="{"?g.state_=k.OBJECT_OPEN:w==="["?g.state_=k.ARRAY_OPEN:_.pN(w)||ih(g,d,U);continue;case k.KEY_START:case k.OBJECT_OPEN:if(_.pN(w))continue;if(g.state_===k.KEY_START)a.push(k.KEY_END);else if(w==="}"){p("{}");g.state_=c();continue}else a.push(k.OBJECT_END);w==='"'?g.state_=k.STRING:ih(g,d,U);continue;case k.KEY_END:case k.OBJECT_END:if(_.pN(w))continue;w===":"?(g.state_===k.OBJECT_END&&(a.push(k.OBJECT_END),
g.depth_++),g.state_=k.VALUE):w==="}"?(g.depth_--,p(),g.state_=c()):w===","?(g.state_===k.OBJECT_END&&a.push(k.OBJECT_END),g.state_=k.KEY_START):ih(g,d,U);continue;case k.ARRAY_OPEN:case k.VALUE:if(_.pN(w))continue;if(g.state_===k.ARRAY_OPEN)if(g.depth_++,g.state_=k.VALUE,w==="]"){g.depth_--;if(g.depth_===0){g.state_=k.ARRAY_END;return}p("[]");g.state_=c();continue}else a.push(k.ARRAY_END);w==='"'?g.state_=k.STRING:w==="{"?g.state_=k.OBJECT_OPEN:w==="["?g.state_=k.ARRAY_OPEN:w==="t"?g.state_=k.TRUE1:
w==="f"?g.state_=k.FALSE1:w==="n"?g.state_=k.NULL1:w!=="-"&&("0123456789".indexOf(w)!==-1?g.state_=k.NUM_DIGIT:ih(g,d,U));continue;case k.ARRAY_END:if(w===",")a.push(k.ARRAY_END),g.state_=k.VALUE,g.depth_===1&&(V=U);else if(w==="]"){g.depth_--;if(g.depth_===0)return;p();g.state_=c()}else if(_.pN(w))continue;else ih(g,d,U);continue;case k.STRING:var W=U;a:for(;;){for(;g.unicodeCount_>0;)if(w=d[U++],g.unicodeCount_===4?g.unicodeCount_=0:g.unicodeCount_++,!w)break a;if(w==='"'&&!g.slashed_){g.state_=
c();break}if(w==="\\"&&!g.slashed_&&(g.slashed_=!0,w=d[U++],!w))break;if(g.slashed_)if(g.slashed_=!1,w==="u"&&(g.unicodeCount_=1),w=d[U++])continue;else break;e.lastIndex=U;w=e.exec(d);if(!w){U=d.length+1;break}U=w.index+1;w=d[w.index];if(!w)break}g.JSC$11414_pos_+=U-W;continue;case k.TRUE1:if(!w)continue;w==="r"?g.state_=k.TRUE2:ih(g,d,U);continue;case k.TRUE2:if(!w)continue;w==="u"?g.state_=k.TRUE3:ih(g,d,U);continue;case k.TRUE3:if(!w)continue;w==="e"?g.state_=c():ih(g,d,U);continue;case k.FALSE1:if(!w)continue;
w==="a"?g.state_=k.FALSE2:ih(g,d,U);continue;case k.FALSE2:if(!w)continue;w==="l"?g.state_=k.FALSE3:ih(g,d,U);continue;case k.FALSE3:if(!w)continue;w==="s"?g.state_=k.FALSE4:ih(g,d,U);continue;case k.FALSE4:if(!w)continue;w==="e"?g.state_=c():ih(g,d,U);continue;case k.NULL1:if(!w)continue;w==="u"?g.state_=k.NULL2:ih(g,d,U);continue;case k.NULL2:if(!w)continue;w==="l"?g.state_=k.NULL3:ih(g,d,U);continue;case k.NULL3:if(!w)continue;w==="l"?g.state_=c():ih(g,d,U);continue;case k.NUM_DECIMAL_POINT:w===
"."?g.state_=k.NUM_DIGIT:ih(g,d,U);continue;case k.NUM_DIGIT:if("0123456789.eE+-".indexOf(w)!==-1)continue;else U--,g.JSC$11414_pos_--,g.state_=c();continue;default:ih(g,d,U)}}}
function c(){var w=a.pop();return w!=null?w:k.VALUE}
function p(w){g.depth_>1||(w||(w=V===-1?g.JSC$11414_buffer_+d.substring(R,U):d.substring(V,U)),g.deliverMessageAsRawString_?g.result_.push(w):g.result_.push(JSON.parse(w)),V=U)}
for(var g=this,a=g.stack_,e=g.stringInputPattern_,k=sqS,C=d.length,R=0,V=-1,U=0;U<C;)switch(g.streamState_){case 3:return ih(g,d,U),null;case 2:return H()&&ih(g,d,U),null;case 0:if(H()){var L=d[U++];g.JSC$11414_pos_++;if(L==="["){g.streamState_=1;R=U;g.state_=k.ARRAY_OPEN;continue}else ih(g,d,U)}return null;case 1:return K(),g.depth_===0&&g.state_==k.ARRAY_END?(g.streamState_=2,g.JSC$11414_buffer_=d.substring(U)):g.JSC$11414_buffer_=V===-1?g.JSC$11414_buffer_+d.substring(R):d.substring(V),g.result_.length>
0?(L=g.result_,g.result_=[],L):null}return null};_.K1(_.qC,Pb);au.prototype.getValue=function(){return this.JSC$11422_value_};
au.prototype.clone=function(){return new au(this.JSC$11422_key_,this.JSC$11422_value_)};var GS=function(d){this.nodes_=[];if(d)a:{if(d instanceof GS){var H=d.getKeys();d=d.getValues();if(this.getCount()<=0){for(var K=this.nodes_,c=0;c<H.length;c++)K.push(new au(H[c],d[c]));break a}}else H=_.rs.getKeys(d),d=_.rs.getValues(d);for(K=0;K<H.length;K++)this.insert(H[K],d[K])}};
_.G=GS.prototype;_.G.insert=function(d,H){var K=this.nodes_;K.push(new au(d,H));d=K.length-1;H=this.nodes_;for(K=H[d];d>0;){var c=d-1>>1;if(H[c].JSC$11422_key_>K.JSC$11422_key_)H[d]=H[c],d=c;else break}H[d]=K};
_.G.remove=function(){var d=this.nodes_,H=d.length,K=d[0];if(!(H<=0)){if(H==1)d.length=0;else{d[0]=d.pop();d=0;H=this.nodes_;for(var c=H.length,p=H[d];d<c>>1;){var g=d*2+1,a=d*2+2;g=a<c&&H[a].JSC$11422_key_<H[g].JSC$11422_key_?a:g;if(H[g].JSC$11422_key_>p.JSC$11422_key_)break;H[d]=H[g];d=g}H[d]=p}return K.getValue()}};
_.G.peek=function(){var d=this.nodes_;if(d.length!=0)return d[0].getValue()};
_.G.getValues=function(){for(var d=this.nodes_,H=[],K=d.length,c=0;c<K;c++)H.push(d[c].getValue());return H};
_.G.getKeys=function(){for(var d=this.nodes_,H=[],K=d.length,c=0;c<K;c++)H.push(d[c].JSC$11422_key_);return H};
_.G.containsValue=function(d){return this.nodes_.some(function(H){return H.getValue()==d})};
_.G.containsKey=function(d){return this.nodes_.some(function(H){return H.JSC$11422_key_==d})};
_.G.clone=function(){return new GS(this)};
_.G.getCount=function(){return this.nodes_.length};
_.G.isEmpty=function(){return this.nodes_.length===0};
_.G.clear=function(){this.nodes_.length=0};_.oh=function(d,H){this.JSC$11428_map_={};this.JSC$11428_keys_=[];this.version_=this.size=0;var K=arguments.length;if(K>1){if(K%2)throw Error("ka");for(var c=0;c<K;c+=2)this.set(arguments[c],arguments[c+1])}else d&&this.addAll(d)};
_.G=_.oh.prototype;_.G.getCount=function(){return this.size};
_.G.getValues=function(){qA(this);for(var d=[],H=0;H<this.JSC$11428_keys_.length;H++)d.push(this.JSC$11428_map_[this.JSC$11428_keys_[H]]);return d};
_.G.getKeys=function(){qA(this);return this.JSC$11428_keys_.concat()};
_.G.containsKey=function(d){return this.has(d)};
_.G.has=function(d){return ah(this.JSC$11428_map_,d)};
_.G.containsValue=function(d){for(var H=0;H<this.JSC$11428_keys_.length;H++){var K=this.JSC$11428_keys_[H];if(ah(this.JSC$11428_map_,K)&&this.JSC$11428_map_[K]==d)return!0}return!1};
_.G.equals=function(d,H){if(this===d)return!0;if(this.size!=d.getCount())return!1;H=H||FlM;qA(this);for(var K,c=0;K=this.JSC$11428_keys_[c];c++)if(!H(this.get(K),d.get(K)))return!1;return!0};
var FlM=function(d,H){return d===H};
_.oh.prototype.isEmpty=function(){return this.size==0};
_.oh.prototype.clear=function(){this.JSC$11428_map_={};this.version_=this.size=this.JSC$11428_keys_.length=0};
_.oh.prototype.remove=function(d){return this.delete(d)};
_.oh.prototype.delete=function(d){return ah(this.JSC$11428_map_,d)?(delete this.JSC$11428_map_[d],--this.size,this.version_++,this.JSC$11428_keys_.length>2*this.size&&qA(this),!0):!1};
var qA=function(d){if(d.size!=d.JSC$11428_keys_.length){for(var H=0,K=0;H<d.JSC$11428_keys_.length;){var c=d.JSC$11428_keys_[H];ah(d.JSC$11428_map_,c)&&(d.JSC$11428_keys_[K++]=c);H++}d.JSC$11428_keys_.length=K}if(d.size!=d.JSC$11428_keys_.length){H={};for(c=K=0;K<d.JSC$11428_keys_.length;){var p=d.JSC$11428_keys_[K];ah(H,p)||(d.JSC$11428_keys_[c++]=p,H[p]=1);K++}d.JSC$11428_keys_.length=c}};
_.G=_.oh.prototype;_.G.get=function(d,H){return ah(this.JSC$11428_map_,d)?this.JSC$11428_map_[d]:H};
_.G.set=function(d,H){ah(this.JSC$11428_map_,d)||(this.size+=1,this.JSC$11428_keys_.push(d),this.version_++);this.JSC$11428_map_[d]=H};
_.G.addAll=function(d){if(d instanceof _.oh)for(var H=d.getKeys(),K=0;K<H.length;K++)this.set(H[K],d.get(H[K]));else for(H in d)this.set(H,d[H])};
_.G.forEach=function(d,H){for(var K=this.getKeys(),c=0;c<K.length;c++){var p=K[c],g=this.get(p);d.call(H,g,p,this)}};
_.G.clone=function(){return new _.oh(this)};
_.G.transpose=function(){for(var d=new _.oh,H=0;H<this.JSC$11428_keys_.length;H++){var K=this.JSC$11428_keys_[H];d.set(this.JSC$11428_map_[K],K)}return d};
_.G.keys=function(){return pV6(this.__iterator__(!0)).toEs6()};
_.G.values=function(){return pV6(this.__iterator__(!1)).toEs6()};
_.G.entries=function(){var d=this;return MhC(this.keys(),function(H){return[H,d.get(H)]})};
_.G.__iterator__=function(d){qA(this);var H=0,K=this.version_,c=this,p=new Kb;p.next=function(){if(K!=c.version_)throw Error("ne");if(H>=c.JSC$11428_keys_.length)return cq;var g=c.JSC$11428_keys_[H++];return pb(d?g:c.JSC$11428_map_[g])};
return p};
var ah=function(d,H){return Object.prototype.hasOwnProperty.call(d,H)};var TgN=function(){this.JSC$11431_map_=new _.oh;this.JSC$11431_head_=new ZMl("");this.JSC$11431_head_.next=this.JSC$11431_head_.prev=this.JSC$11431_head_},Qq6=function(d,H){if(H=d.JSC$11431_map_.get(H))H.remove(),d.insert_(H);
return H};
_.G=TgN.prototype;_.G.get=function(d,H){return(d=Qq6(this,d))?d.value:H};
_.G.set=function(d,H){var K=Qq6(this,d);K?K.value=H:(K=new ZMl(d,H),this.JSC$11431_map_.set(d,K),this.insert_(K))};
_.G.peek=function(){return this.JSC$11431_head_.next.value};
_.G.shift=function(){return tvN(this,this.JSC$11431_head_.next)};
_.G.pop=function(){return tvN(this,this.JSC$11431_head_.prev)};
_.G.remove=function(d){return(d=this.JSC$11431_map_.get(d))?(this.removeNode(d),!0):!1};
_.G.removeNode=function(d){d.remove();this.JSC$11431_map_.remove(d.key)};
_.G.getCount=function(){return this.JSC$11431_map_.getCount()};
_.G.isEmpty=function(){return this.JSC$11431_map_.isEmpty()};
_.G.getKeys=function(){return this.map(function(d,H){return H})};
_.G.getValues=function(){return this.map(function(d){return d})};
_.G.contains=function(d){return this.some(function(H){return H==d})};
_.G.containsKey=function(d){return this.JSC$11431_map_.containsKey(d)};
_.G.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11431_head_.prev)};
_.G.forEach=function(d,H){for(var K=this.JSC$11431_head_.next;K!=this.JSC$11431_head_;K=K.next)d.call(H,K.value,K.key,this)};
_.G.map=function(d,H){for(var K=[],c=this.JSC$11431_head_.next;c!=this.JSC$11431_head_;c=c.next)K.push(d.call(H,c.value,c.key,this));return K};
_.G.some=function(d,H){for(var K=this.JSC$11431_head_.next;K!=this.JSC$11431_head_;K=K.next)if(d.call(H,K.value,K.key,this))return!0;return!1};
_.G.every=function(d,H){for(var K=this.JSC$11431_head_.next;K!=this.JSC$11431_head_;K=K.next)if(!d.call(H,K.value,K.key,this))return!1;return!0};
_.G.insert_=function(d){d.next=this.JSC$11431_head_.next;d.prev=this.JSC$11431_head_;this.JSC$11431_head_.next=d;for(d.next.prev=d;this.getCount()>100;)this.removeNode(this.JSC$11431_head_.prev)};
var tvN=function(d,H){d.JSC$11431_head_!=H&&d.removeNode(H);return H.value},ZMl=function(d,H){this.key=d;
this.value=H};
ZMl.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var YGd=function(){GS.apply(this,arguments)};
_.m(YGd,GS);YGd.prototype.enqueue=function(d,H){this.insert(d,H)};var OMl=function(){var d=Error();d.name="SecurityError";throw d;},WhF=function(){return{get opener(){return null},
get closed(){return!0},get location(){OMl()},get document(){OMl()},postMessage:function(){},
close:function(){},
focus:function(){}}};var Qpl={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var OV1={Aacute:"\u00c1",aacute:"\u00e1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",Acirc:"\u00c2",acirc:"\u00e2",acute:"\u00b4",Acy:"\u0410",acy:"\u0430",AElig:"\u00c6",aelig:"\u00e6",af:"\u2061",Afr:"\ud835\udd04",afr:"\ud835\udd1e",Agrave:"\u00c0",agrave:"\u00e0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03b1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2a3f",amp:"&",AMP:"&",andand:"\u2a55",And:"\u2a53",and:"\u2227",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",
ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angmsd:"\u2221",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\u00c5",angzarr:"\u237c",Aogon:"\u0104",aogon:"\u0105",Aopf:"\ud835\udd38",aopf:"\ud835\udd52",apacir:"\u2a6f",ap:"\u2248",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",
Aring:"\u00c5",aring:"\u00e5",Ascr:"\ud835\udc9c",ascr:"\ud835\udcb6",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",Atilde:"\u00c3",atilde:"\u00e3",Auml:"\u00c4",auml:"\u00e4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",
because:"\u2235",Because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",Beta:"\u0392",beta:"\u03b2",beth:"\u2136",between:"\u226c",Bfr:"\ud835\udd05",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",
blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bNot:"\u2aed",bnot:"\u2310",Bopf:"\ud835\udd39",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250c",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252c",boxHd:"\u2564",
boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxuL:"\u255b",boxUl:"\u255c",boxUL:"\u255d",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255a",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253c",boxvH:"\u256a",boxVh:"\u256b",boxVH:"\u256c",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251c",boxvR:"\u255e",boxVr:"\u255f",boxVR:"\u2560",bprime:"\u2035",breve:"\u02d8",
Breve:"\u02d8",brvbar:"\u00a6",bscr:"\ud835\udcb7",Bscr:"\u212c",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsolb:"\u29c5",bsol:"\\",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",Bumpeq:"\u224e",bumpeq:"\u224f",Cacute:"\u0106",cacute:"\u0107",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",cap:"\u2229",Cap:"\u22d2",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",
Ccaron:"\u010c",ccaron:"\u010d",Ccedil:"\u00c7",ccedil:"\u00e7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",Cdot:"\u010a",cdot:"\u010b",cedil:"\u00b8",Cedilla:"\u00b8",cemptyv:"\u29b2",cent:"\u00a2",centerdot:"\u00b7",CenterDot:"\u00b7",cfr:"\ud835\udd20",Cfr:"\u212d",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03a7",chi:"\u03c7",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",
circleddash:"\u229d",CircleDot:"\u2299",circledR:"\u00ae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25cb",cirE:"\u29c3",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2a74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",
cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",conint:"\u222e",Conint:"\u222f",ContourIntegral:"\u222e",copf:"\ud835\udd54",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\u00a9",COPY:"\u00a9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",Cscr:"\ud835\udc9e",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",
cupbrcap:"\u2a48",cupcap:"\u2a46",CupCap:"\u224d",cup:"\u222a",Cup:"\u22d3",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\u00a4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21a1",dArr:"\u21d3",dash:"\u2010",
Dashv:"\u2ae4",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",Dcaron:"\u010e",dcaron:"\u010f",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21ca",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\u00b0",Del:"\u2207",Delta:"\u0394",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",Dfr:"\ud835\udd07",dfr:"\ud835\udd21",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\u00b4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",
diam:"\u22c4",diamond:"\u22c4",Diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\u00a8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\u00f7",divide:"\u00f7",divideontimes:"\u22c7",divonx:"\u22c7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",Dopf:"\ud835\udd3b",dopf:"\ud835\udd55",Dot:"\u00a8",dot:"\u02d9",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",
DoubleContourIntegral:"\u222f",DoubleDot:"\u00a8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21d3",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",
downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21bd",DownRightTeeVector:"\u295f",DownRightVectorBar:"\u2957",DownRightVector:"\u21c1",DownTeeArrow:"\u21a7",DownTee:"\u22a4",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",Dscr:"\ud835\udc9f",dscr:"\ud835\udcb9",DScy:"\u0405",dscy:"\u0455",dsol:"\u29f6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",
duhar:"\u296f",dwangle:"\u29a6",DZcy:"\u040f",dzcy:"\u045f",dzigrarr:"\u27ff",Eacute:"\u00c9",eacute:"\u00e9",easter:"\u2a6e",Ecaron:"\u011a",ecaron:"\u011b",Ecirc:"\u00ca",ecirc:"\u00ea",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042d",ecy:"\u044d",eDDot:"\u2a77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\ud835\udd08",efr:"\ud835\udd22",eg:"\u2a9a",Egrave:"\u00c8",egrave:"\u00e8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",
elsdot:"\u2a97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014a",eng:"\u014b",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\ud835\udd3c",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",Epsilon:"\u0395",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",
Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",escr:"\u212f",Escr:"\u2130",esdot:"\u2250",Esim:"\u2a73",esim:"\u2242",Eta:"\u0397",eta:"\u03b7",ETH:"\u00d0",eth:"\u00f0",Euml:"\u00cb",euml:"\u00eb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",
fflig:"\ufb00",ffllig:"\ufb04",Ffr:"\ud835\udd09",ffr:"\ud835\udd23",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\ud835\udd3d",fopf:"\ud835\udd57",forall:"\u2200",ForAll:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\u00bd",frac13:"\u2153",frac14:"\u00bc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\u00be",frac35:"\u2157",
frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",Fscr:"\u2131",gacute:"\u01f5",Gamma:"\u0393",gamma:"\u03b3",Gammad:"\u03dc",gammad:"\u03dd",gap:"\u2a86",Gbreve:"\u011e",gbreve:"\u011f",Gcedil:"\u0122",Gcirc:"\u011c",gcirc:"\u011d",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2a8c",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",gescc:"\u2aa9",ges:"\u2a7e",gesdot:"\u2a80",
gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",Gfr:"\ud835\udd0a",gfr:"\ud835\udd24",gg:"\u226b",Gg:"\u22d9",ggg:"\u22d9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2aa5",gl:"\u2277",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gnE:"\u2269",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",Gopf:"\ud835\udd3e",gopf:"\ud835\udd58",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",
GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gt:">",GT:">",Gt:"\u226b",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\u00bd",hamilt:"\u210b",HARDcy:"\u042a",hardcy:"\u044a",harrcir:"\u2948",
harr:"\u2194",hArr:"\u21d4",harrw:"\u21ad",Hat:"^",hbar:"\u210f",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\ud835\udcbd",Hscr:"\u210b",hslash:"\u210f",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224e",
HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",Iacute:"\u00cd",iacute:"\u00ed",ic:"\u2063",Icirc:"\u00ce",icirc:"\u00ee",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\u00a1",iff:"\u21d4",ifr:"\ud835\udd26",Ifr:"\u2111",Igrave:"\u00cc",igrave:"\u00ec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012a",imacr:"\u012b",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",
Im:"\u2111",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",incare:"\u2105","in":"\u2208",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",intcal:"\u22ba","int":"\u222b",Int:"\u222c",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012e",iogon:"\u012f",Iopf:"\ud835\udd40",iopf:"\ud835\udd5a",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\u00bf",iscr:"\ud835\udcbe",
Iscr:"\u2110",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\u00cf",iuml:"\u00ef",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\ud835\udd0d",jfr:"\ud835\udd27",jmath:"\u0237",Jopf:"\ud835\udd41",jopf:"\ud835\udd5b",Jscr:"\ud835\udca5",jscr:"\ud835\udcbf",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",
Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\ud835\udd0e",kfr:"\ud835\udd28",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\ud835\udd42",kopf:"\ud835\udd5c",Kscr:"\ud835\udca6",kscr:"\ud835\udcc0",lAarr:"\u21da",Lacute:"\u0139",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",Lambda:"\u039b",lambda:"\u03bb",lang:"\u27e8",Lang:"\u27ea",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\u00ab",larrb:"\u21e4",larrbfs:"\u291f",larr:"\u2190",
Larr:"\u219e",lArr:"\u21d0",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",latail:"\u2919",lAtail:"\u291b",lat:"\u2aab",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lBarr:"\u290e",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",Lcaron:"\u013d",lcaron:"\u013e",Lcedil:"\u013b",lcedil:"\u013c",lceil:"\u2308",lcub:"{",Lcy:"\u041b",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",
ldsh:"\u21b2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27e8",LeftArrowBar:"\u21e4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21d0",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21c3",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21d4",leftrightarrows:"\u21c6",
leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTeeArrow:"\u21a4",LeftTee:"\u22a3",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangleBar:"\u29cf",LeftTriangle:"\u22b2",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21bf",LeftVectorBar:"\u2952",LeftVector:"\u21bc",lEg:"\u2a8b",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",lescc:"\u2aa8",les:"\u2a7d",lesdot:"\u2a7f",lesdoto:"\u2a81",
lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",Lfr:"\ud835\udd0f",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21c7",
ll:"\u226a",Ll:"\u22d8",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",Lmidot:"\u013f",lmidot:"\u0140",lmoustache:"\u23b0",lmoust:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lnE:"\u2268",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",LongLeftArrow:"\u27f5",Longleftarrow:"\u27f8",longleftrightarrow:"\u27f7",LongLeftRightArrow:"\u27f7",Longleftrightarrow:"\u27fa",longmapsto:"\u27fc",longrightarrow:"\u27f6",
LongRightArrow:"\u27f6",Longrightarrow:"\u27f9",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",Lopf:"\ud835\udd43",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",Lscr:"\u2112",lsh:"\u21b0",Lsh:"\u21b0",lsim:"\u2272",
lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",lt:"<",LT:"<",Lt:"\u226a",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\u00af",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",
mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",Mcy:"\u041c",mcy:"\u043c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",mfr:"\ud835\udd2a",mho:"\u2127",micro:"\u00b5",midast:"*",midcir:"\u2af0",mid:"\u2223",middot:"\u00b7",minusb:"\u229f",minus:"\u2212",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",Mopf:"\ud835\udd44",mopf:"\ud835\udd5e",mp:"\u2213",mscr:"\ud835\udcc2",
Mscr:"\u2133",mstpos:"\u223e",Mu:"\u039c",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266e",naturals:"\u2115",natur:"\u266e",nbsp:"\u00a0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",Ncy:"\u041d",ncy:"\u043d",
ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21d7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\ud835\udd11",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",
nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",nGt:"\u226b\u20d2",ngt:"\u226f",ngtr:"\u226f",nGtv:"\u226b\u0338",nharr:"\u21ae",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",NJcy:"\u040a",njcy:"\u045a",nlarr:"\u219a",nlArr:"\u21cd",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219a",nLeftarrow:"\u21cd",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",
nLl:"\u22d8\u0338",nlsim:"\u2274",nLt:"\u226a\u20d2",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\u00a0",nopf:"\ud835\udd5f",Nopf:"\u2115",Not:"\u2aec",not:"\u00ac",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",
NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangle:"\u22ea",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",
NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangle:"\u22eb",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",
NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",nprec:"\u2280",npreceq:"\u2aaf\u0338",npre:"\u2aaf\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219b",nrArr:"\u21cf",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",
nRightarrow:"\u21cf",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",Nscr:"\ud835\udca9",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",
nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",Ntilde:"\u00d1",ntilde:"\u00f1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",Nu:"\u039d",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",
nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21d6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\u00d3",oacute:"\u00f3",oast:"\u229b",Ocirc:"\u00d4",ocirc:"\u00f4",ocir:"\u229a",Ocy:"\u041e",ocy:"\u043e",odash:"\u229d",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29bf",Ofr:"\ud835\udd12",ofr:"\ud835\udd2c",ogon:"\u02db",Ograve:"\u00d2",ograve:"\u00f2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",
olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",Omacr:"\u014c",omacr:"\u014d",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",Oopf:"\ud835\udd46",oopf:"\ud835\udd60",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",orarr:"\u21bb",Or:"\u2a54",or:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\u00aa",ordm:"\u00ba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",
oS:"\u24c8",Oscr:"\ud835\udcaa",oscr:"\u2134",Oslash:"\u00d8",oslash:"\u00f8",osol:"\u2298",Otilde:"\u00d5",otilde:"\u00f5",otimesas:"\u2a36",Otimes:"\u2a37",otimes:"\u2297",Ouml:"\u00d6",ouml:"\u00f6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",para:"\u00b6",parallel:"\u2225",par:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",Pcy:"\u041f",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",
Pfr:"\ud835\udd13",pfr:"\ud835\udd2d",Phi:"\u03a6",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",Pi:"\u03a0",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plus:"+",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\u00b1",plusmn:"\u00b1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\u00b1",Poincareplane:"\u210c",pointint:"\u2a15",popf:"\ud835\udd61",Popf:"\u2119",pound:"\u00a3",prap:"\u2ab7",
Pr:"\u2abb",pr:"\u227a",prcue:"\u227c",precapprox:"\u2ab7",prec:"\u227a",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",pre:"\u2aaf",prE:"\u2ab3",precsim:"\u227e",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportional:"\u221d",
Proportion:"\u2237",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",Pscr:"\ud835\udcab",pscr:"\ud835\udcc5",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\ud835\udd14",qfr:"\ud835\udd2e",qint:"\u2a0c",qopf:"\ud835\udd62",Qopf:"\u211a",qprime:"\u2057",Qscr:"\ud835\udcac",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',QUOT:'"',rAarr:"\u21db",race:"\u223d\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",Rang:"\u27eb",
rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\u00bb",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21a0",rArr:"\u21d2",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21a3",rarrw:"\u219d",ratail:"\u291a",rAtail:"\u291c",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rBarr:"\u290f",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",Rcaron:"\u0158",
rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",Re:"\u211c",rect:"\u25ad",reg:"\u00ae",REG:"\u00ae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",Rfr:"\u211c",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",Rho:"\u03a1",
rho:"\u03c1",rhov:"\u03f1",RightAngleBracket:"\u27e9",RightArrowBar:"\u21e5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21d2",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVectorBar:"\u2955",RightDownVector:"\u21c2",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTeeArrow:"\u21a6",
RightTee:"\u22a2",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangleBar:"\u29d0",RightTriangle:"\u22b3",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVectorBar:"\u2954",RightUpVector:"\u21be",RightVectorBar:"\u2953",RightVector:"\u21c0",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoustache:"\u23b1",rmoust:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",
Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\ud835\udcc7",Rscr:"\u211b",rsh:"\u21b1",Rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",Sacute:"\u015a",sacute:"\u015b",sbquo:"\u201a",scap:"\u2ab8",Scaron:"\u0160",scaron:"\u0161",
Sc:"\u2abc",sc:"\u227b",sccue:"\u227d",sce:"\u2ab0",scE:"\u2ab4",Scedil:"\u015e",scedil:"\u015f",Scirc:"\u015c",scirc:"\u015d",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",Scy:"\u0421",scy:"\u0441",sdotb:"\u22a1",sdot:"\u22c5",sdote:"\u2a66",searhk:"\u2925",searr:"\u2198",seArr:"\u21d8",searrow:"\u2198",sect:"\u00a7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\ud835\udd16",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",SHCHcy:"\u0429",
shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\u00ad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",
smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",SOFTcy:"\u042c",softcy:"\u044c",solbar:"\u233f",solb:"\u29c4",sol:"/",Sopf:"\ud835\udd4a",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25a1",Square:"\u25a1",SquareIntersection:"\u2293",
SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squ:"\u25a1",squf:"\u25aa",srarr:"\u2192",Sscr:"\ud835\udcae",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",Star:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\u00af",sub:"\u2282",Sub:"\u22d0",subdot:"\u2abd",subE:"\u2ac5",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",
subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",Subset:"\u22d0",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succapprox:"\u2ab8",succ:"\u227b",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",sum:"\u2211",Sum:"\u2211",sung:"\u266a",
sup1:"\u00b9",sup2:"\u00b2",sup3:"\u00b3",sup:"\u2283",Sup:"\u22d1",supdot:"\u2abe",supdsub:"\u2ad8",supE:"\u2ac6",supe:"\u2287",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",supset:"\u2283",Supset:"\u22d1",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21d9",
swarrow:"\u2199",swnwar:"\u292a",szlig:"\u00df",Tab:"\t",target:"\u2316",Tau:"\u03a4",tau:"\u03c4",tbrk:"\u23b4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",Tfr:"\ud835\udd17",tfr:"\ud835\udd31",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",
thksim:"\u223c",THORN:"\u00de",thorn:"\u00fe",tilde:"\u02dc",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2a31",timesb:"\u22a0",times:"\u00d7",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",topbot:"\u2336",topcir:"\u2af1",top:"\u22a4",Topf:"\ud835\udd4b",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",
trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",Tscr:"\ud835\udcaf",tscr:"\ud835\udcc9",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040b",tshcy:"\u045b",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",Uacute:"\u00da",uacute:"\u00fa",uarr:"\u2191",Uarr:"\u219f",uArr:"\u21d1",Uarrocir:"\u2949",Ubrcy:"\u040e",ubrcy:"\u045e",Ubreve:"\u016c",ubreve:"\u016d",
Ucirc:"\u00db",ucirc:"\u00fb",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21c5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",Ufr:"\ud835\udd18",ufr:"\ud835\udd32",Ugrave:"\u00d9",ugrave:"\u00f9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",Umacr:"\u016a",umacr:"\u016b",uml:"\u00a8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",
uogon:"\u0173",Uopf:"\ud835\udd4c",uopf:"\ud835\udd66",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21d1",UpArrowDownArrow:"\u21c5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21d5",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03c5",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",UpTeeArrow:"\u21a5",UpTee:"\u22a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",
urcrop:"\u230e",Uring:"\u016e",uring:"\u016f",urtri:"\u25f9",Uscr:"\ud835\udcb0",uscr:"\ud835\udcca",utdot:"\u22f0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",Uuml:"\u00dc",uuml:"\u00fc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",vArr:"\u21d5",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",
varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vBar:"\u2ae8",Vbar:"\u2aeb",vBarv:"\u2ae9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22a2",vDash:"\u22a8",Vdash:"\u22a9",VDash:"\u22ab",Vdashl:"\u2ae6",veebar:"\u22bb",vee:"\u2228",Vee:"\u22c1",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",vfr:"\ud835\udd33",
vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\ud835\udd4d",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\ud835\udcb1",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2a5f",wedge:"\u2227",Wedge:"\u22c0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\ud835\udd1a",wfr:"\ud835\udd34",Wopf:"\ud835\udd4e",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",
Wscr:"\ud835\udcb2",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\ud835\udd1b",xfr:"\ud835\udd35",xharr:"\u27f7",xhArr:"\u27fa",Xi:"\u039e",xi:"\u03be",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",Xopf:"\ud835\udd4f",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",Xscr:"\ud835\udcb3",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",Yacute:"\u00dd",yacute:"\u00fd",
YAcy:"\u042f",yacy:"\u044f",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042b",ycy:"\u044b",yen:"\u00a5",Yfr:"\ud835\udd1c",yfr:"\ud835\udd36",YIcy:"\u0407",yicy:"\u0457",Yopf:"\ud835\udd50",yopf:"\ud835\udd6a",Yscr:"\ud835\udcb4",yscr:"\ud835\udcce",YUcy:"\u042e",yucy:"\u044e",yuml:"\u00ff",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017a",Zcaron:"\u017d",zcaron:"\u017e",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017b",zdot:"\u017c",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",Zeta:"\u0396",zeta:"\u03b6",zfr:"\ud835\udd37",
Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",Zopf:"\u2124",Zscr:"\ud835\udcb5",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"};var SG0={Aacute:"\u00c1",aacute:"\u00e1",Acirc:"\u00c2",acirc:"\u00e2",acute:"\u00b4",AElig:"\u00c6",aelig:"\u00e6",Agrave:"\u00c0",agrave:"\u00e0",amp:"&",AMP:"&",Aring:"\u00c5",aring:"\u00e5",Atilde:"\u00c3",atilde:"\u00e3",Auml:"\u00c4",auml:"\u00e4",brvbar:"\u00a6",Ccedil:"\u00c7",ccedil:"\u00e7",cedil:"\u00b8",cent:"\u00a2",copy:"\u00a9",COPY:"\u00a9",curren:"\u00a4",deg:"\u00b0",divide:"\u00f7",Eacute:"\u00c9",eacute:"\u00e9",Ecirc:"\u00ca",ecirc:"\u00ea",Egrave:"\u00c8",egrave:"\u00e8",ETH:"\u00d0",
eth:"\u00f0",Euml:"\u00cb",euml:"\u00eb",frac12:"\u00bd",frac14:"\u00bc",frac34:"\u00be",gt:">",GT:">",Iacute:"\u00cd",iacute:"\u00ed",Icirc:"\u00ce",icirc:"\u00ee",iexcl:"\u00a1",Igrave:"\u00cc",igrave:"\u00ec",iquest:"\u00bf",Iuml:"\u00cf",iuml:"\u00ef",laquo:"\u00ab",lt:"<",LT:"<",macr:"\u00af",micro:"\u00b5",middot:"\u00b7",nbsp:"\u00a0",not:"\u00ac",Ntilde:"\u00d1",ntilde:"\u00f1",Oacute:"\u00d3",oacute:"\u00f3",Ocirc:"\u00d4",ocirc:"\u00f4",Ograve:"\u00d2",ograve:"\u00f2",ordf:"\u00aa",ordm:"\u00ba",
Oslash:"\u00d8",oslash:"\u00f8",Otilde:"\u00d5",otilde:"\u00f5",Ouml:"\u00d6",ouml:"\u00f6",para:"\u00b6",plusmn:"\u00b1",pound:"\u00a3",quot:'"',QUOT:'"',raquo:"\u00bb",reg:"\u00ae",REG:"\u00ae",sect:"\u00a7",shy:"\u00ad",sup1:"\u00b9",sup2:"\u00b2",sup3:"\u00b3",szlig:"\u00df",THORN:"\u00de",thorn:"\u00fe",times:"\u00d7",Uacute:"\u00da",uacute:"\u00fa",Ucirc:"\u00db",ucirc:"\u00fb",Ugrave:"\u00d9",ugrave:"\u00f9",uml:"\u00a8",Uuml:"\u00dc",uuml:"\u00fc",Yacute:"\u00dd",yacute:"\u00fd",yen:"\u00a5",
yuml:"\u00ff"};Object.keys({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}).join("|");Object.keys(OV1).join("|");var EvC=function(){function d(e){e.substr(-1)!==";"&&(e+=";");return a(e)}
for(var H=Object.keys(SG0).sort(Yl5),K=Object.keys(OV1).sort(Yl5),c=0,p=0;c<K.length;c++)H[p]===K[c]?(K[c]+=";?",p++):K[c]+=";";var g=new RegExp("&(?:"+K.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=SlX();return function(e){return String(e).replace(g,d)}}();/*

 Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.

 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.
*/
var yR0={};var bMA=RegExp("^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|</[A-Za-z][A-Za-z0-9-]*\\s*[>]|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|[<][?].*?[?][>]|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)","i"),Ng3=/[\\&]/,DkB=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),fXd=RegExp('[&<>"]',"g"),AR6=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),jqB=function(d){return d.charCodeAt(0)===92?d.charAt(1):EvC(d)},vvN=function(d){return Ng3.test(d)?d.replace(DkB,jqB):d},dcX=function(d){try{var H,K="";
if(typeof p!=="string"){var c=p;var p=";/?:@&=+$,-_.!~*'()#"}typeof c==="undefined"&&(c=!0);var g,a=yR0[p];if(a)var e=a;else{a=yR0[p]=[];for(g=0;g<128;g++){var k=String.fromCharCode(g);/^[0-9a-z]$/i.test(k)?a.push(k):a.push("%"+("0"+g.toString(16).toUpperCase()).slice(-2))}for(g=0;g<p.length;g++)a[p.charCodeAt(g)]=p[g];e=a}var C=0;for(H=d.length;C<H;C++){var R=d.charCodeAt(C);if(c&&R===37&&C+2<H&&/^[0-9a-f]{2}$/i.test(d.slice(C+1,C+3)))K+=d.slice(C,C+3),C+=2;else if(R<128)K+=e[R];else if(R>=55296&&
R<=57343){if(R>=55296&&R<=56319&&C+1<H){var V=d.charCodeAt(C+1);if(V>=56320&&V<=57343){K+=encodeURIComponent(d[C]+d[C+1]);C++;continue}}K+="%EF%BF%BD"}else K+=encodeURIComponent(d[C])}return K}catch(U){return d}},H7l=function(d){switch(d){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return d}},lh=function(d,H){return fXd.test(d)?H?d.replace(AR6,H7l):d.replace(fXd,H7l):d};/*

 lib/from-code-point.js is derived from a polyfill
 Copyright Mathias Bynens <http://mathiasbynens.be/>

 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.
 http://mths.be/fromcodepoint v0.2.1 by @mathias */
var e0;if(String.fromCodePoint)e0=function(d){try{return String.fromCodePoint(d)}catch(H){if(H instanceof RangeError)return String.fromCharCode(65533);throw H;}};
else{var $cM=String.fromCharCode,KeC=Math.floor;e0=function(){var d=[],H=-1,K=arguments.length;if(!K)return"";for(var c="";++H<K;){var p=Number(arguments[H]);if(!isFinite(p)||p<0||p>1114111||KeC(p)!==p)return String.fromCharCode(65533);if(p<=65535)d.push(p);else{p-=65536;var g=(p>>10)+55296;p=p%1024+56320;d.push(g,p)}if(H+1===K||d.length>16384)c+=$cM.apply(null,d),d.length=0}return c}};var cuM=function(d){this.root=this.current=d;this.entering=!0};
cuM.prototype.next=function(){var d=this.current,H=this.entering;if(d===null)return null;a:switch(d._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var K=!0;break a;default:K=!1}H&&K?d._firstChild?(this.current=d._firstChild,this.entering=!0):this.entering=!1:d===this.root?this.current=null:d._next===null?(this.current=
d._parent,this.entering=!1):(this.current=d._next,this.entering=!0);return{entering:H,node:d}};
var xK=function(d,H){this._type=d;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=H;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
xK.prototype.appendChild=function(d){d.unlink();d._parent=this;this._lastChild?(this._lastChild._next=d,d._prev=this._lastChild):this._firstChild=d;this._lastChild=d};
xK.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var pgC=function(d,H){H.unlink();H._next=d._next;H._next&&(H._next._prev=H);H._prev=d;d._next=H;H._parent=d._parent;H._next||(H._parent._lastChild=H)};
xK.prototype.insertBefore=function(d){d.unlink();d._prev=this._prev;d._prev&&(d._prev._next=d);d._next=this;this._prev=d;d._parent=this._parent;d._prev||(d._parent._firstChild=d)};
_.H3.Object.defineProperties(xK.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this._type}},
firstChild:{configurable:!0,enumerable:!0,get:function(){return this._firstChild}},
lastChild:{configurable:!0,enumerable:!0,get:function(){return this._lastChild}},
next:{configurable:!0,enumerable:!0,get:function(){return this._next}},
prev:{configurable:!0,enumerable:!0,get:function(){return this._prev}},
parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},
sourcepos:{configurable:!0,enumerable:!0,get:function(){return this._sourcepos}},
literal:{configurable:!0,enumerable:!0,get:function(){return this._literal},
set:function(d){this._literal=d}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(d){this._destination=d}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(d){this._title=d}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(d){this._info=d}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(d){this._level=d}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(d){this._listData.type=d}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(d){this._listData.tight=d}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(d){this._listData.start=d}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(d){this._onEnter=d}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(d){this._onExit=d}}});var Et4=/[ \t\r\n]+|[A-Z\xB5\xC0-\xD6\xD8-\xDF\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u0149\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u017F\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C5\u01C7\u01C8\u01CA\u01CB\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F0-\u01F2\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0345\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03AB\u03B0\u03C2\u03CF-\u03D1\u03D5\u03D6\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F0\u03F1\u03F4\u03F5\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u0587\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E96-\u1E9B\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F50\u1F52\u1F54\u1F56\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1F80-\u1FAF\u1FB2-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD2\u1FD3\u1FD6-\u1FDB\u1FE2-\u1FE4\u1FE6-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A\u212B\u2132\u2160-\u216F\u2183\u24B6-\u24CF\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0\uA7B1\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27]|\uD806[\uDCA0-\uDCBF]/g,
y9F={A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z","\u00b5":"\u03bc","\u00c0":"\u00e0","\u00c1":"\u00e1","\u00c2":"\u00e2","\u00c3":"\u00e3","\u00c4":"\u00e4","\u00c5":"\u00e5","\u00c6":"\u00e6","\u00c7":"\u00e7","\u00c8":"\u00e8","\u00c9":"\u00e9","\u00ca":"\u00ea","\u00cb":"\u00eb","\u00cc":"\u00ec","\u00cd":"\u00ed","\u00ce":"\u00ee","\u00cf":"\u00ef","\u00d0":"\u00f0","\u00d1":"\u00f1",
"\u00d2":"\u00f2","\u00d3":"\u00f3","\u00d4":"\u00f4","\u00d5":"\u00f5","\u00d6":"\u00f6","\u00d8":"\u00f8","\u00d9":"\u00f9","\u00da":"\u00fa","\u00db":"\u00fb","\u00dc":"\u00fc","\u00dd":"\u00fd","\u00de":"\u00fe","\u0100":"\u0101","\u0102":"\u0103","\u0104":"\u0105","\u0106":"\u0107","\u0108":"\u0109","\u010a":"\u010b","\u010c":"\u010d","\u010e":"\u010f","\u0110":"\u0111","\u0112":"\u0113","\u0114":"\u0115","\u0116":"\u0117","\u0118":"\u0119","\u011a":"\u011b","\u011c":"\u011d","\u011e":"\u011f",
"\u0120":"\u0121","\u0122":"\u0123","\u0124":"\u0125","\u0126":"\u0127","\u0128":"\u0129","\u012a":"\u012b","\u012c":"\u012d","\u012e":"\u012f","\u0132":"\u0133","\u0134":"\u0135","\u0136":"\u0137","\u0139":"\u013a","\u013b":"\u013c","\u013d":"\u013e","\u013f":"\u0140","\u0141":"\u0142","\u0143":"\u0144","\u0145":"\u0146","\u0147":"\u0148","\u014a":"\u014b","\u014c":"\u014d","\u014e":"\u014f","\u0150":"\u0151","\u0152":"\u0153","\u0154":"\u0155","\u0156":"\u0157","\u0158":"\u0159","\u015a":"\u015b",
"\u015c":"\u015d","\u015e":"\u015f","\u0160":"\u0161","\u0162":"\u0163","\u0164":"\u0165","\u0166":"\u0167","\u0168":"\u0169","\u016a":"\u016b","\u016c":"\u016d","\u016e":"\u016f","\u0170":"\u0171","\u0172":"\u0173","\u0174":"\u0175","\u0176":"\u0177","\u0178":"\u00ff","\u0179":"\u017a","\u017b":"\u017c","\u017d":"\u017e","\u017f":"s","\u0181":"\u0253","\u0182":"\u0183","\u0184":"\u0185","\u0186":"\u0254","\u0187":"\u0188","\u0189":"\u0256","\u018a":"\u0257","\u018b":"\u018c","\u018e":"\u01dd","\u018f":"\u0259",
"\u0190":"\u025b","\u0191":"\u0192","\u0193":"\u0260","\u0194":"\u0263","\u0196":"\u0269","\u0197":"\u0268","\u0198":"\u0199","\u019c":"\u026f","\u019d":"\u0272","\u019f":"\u0275","\u01a0":"\u01a1","\u01a2":"\u01a3","\u01a4":"\u01a5","\u01a6":"\u0280","\u01a7":"\u01a8","\u01a9":"\u0283","\u01ac":"\u01ad","\u01ae":"\u0288","\u01af":"\u01b0","\u01b1":"\u028a","\u01b2":"\u028b","\u01b3":"\u01b4","\u01b5":"\u01b6","\u01b7":"\u0292","\u01b8":"\u01b9","\u01bc":"\u01bd","\u01c4":"\u01c6","\u01c5":"\u01c6",
"\u01c7":"\u01c9","\u01c8":"\u01c9","\u01ca":"\u01cc","\u01cb":"\u01cc","\u01cd":"\u01ce","\u01cf":"\u01d0","\u01d1":"\u01d2","\u01d3":"\u01d4","\u01d5":"\u01d6","\u01d7":"\u01d8","\u01d9":"\u01da","\u01db":"\u01dc","\u01de":"\u01df","\u01e0":"\u01e1","\u01e2":"\u01e3","\u01e4":"\u01e5","\u01e6":"\u01e7","\u01e8":"\u01e9","\u01ea":"\u01eb","\u01ec":"\u01ed","\u01ee":"\u01ef","\u01f1":"\u01f3","\u01f2":"\u01f3","\u01f4":"\u01f5","\u01f6":"\u0195","\u01f7":"\u01bf","\u01f8":"\u01f9","\u01fa":"\u01fb",
"\u01fc":"\u01fd","\u01fe":"\u01ff","\u0200":"\u0201","\u0202":"\u0203","\u0204":"\u0205","\u0206":"\u0207","\u0208":"\u0209","\u020a":"\u020b","\u020c":"\u020d","\u020e":"\u020f","\u0210":"\u0211","\u0212":"\u0213","\u0214":"\u0215","\u0216":"\u0217","\u0218":"\u0219","\u021a":"\u021b","\u021c":"\u021d","\u021e":"\u021f","\u0220":"\u019e","\u0222":"\u0223","\u0224":"\u0225","\u0226":"\u0227","\u0228":"\u0229","\u022a":"\u022b","\u022c":"\u022d","\u022e":"\u022f","\u0230":"\u0231","\u0232":"\u0233",
"\u023a":"\u2c65","\u023b":"\u023c","\u023d":"\u019a","\u023e":"\u2c66","\u0241":"\u0242","\u0243":"\u0180","\u0244":"\u0289","\u0245":"\u028c","\u0246":"\u0247","\u0248":"\u0249","\u024a":"\u024b","\u024c":"\u024d","\u024e":"\u024f","\u0345":"\u03b9","\u0370":"\u0371","\u0372":"\u0373","\u0376":"\u0377","\u037f":"\u03f3","\u0386":"\u03ac","\u0388":"\u03ad","\u0389":"\u03ae","\u038a":"\u03af","\u038c":"\u03cc","\u038e":"\u03cd","\u038f":"\u03ce","\u0391":"\u03b1","\u0392":"\u03b2","\u0393":"\u03b3",
"\u0394":"\u03b4","\u0395":"\u03b5","\u0396":"\u03b6","\u0397":"\u03b7","\u0398":"\u03b8","\u0399":"\u03b9","\u039a":"\u03ba","\u039b":"\u03bb","\u039c":"\u03bc","\u039d":"\u03bd","\u039e":"\u03be","\u039f":"\u03bf","\u03a0":"\u03c0","\u03a1":"\u03c1","\u03a3":"\u03c3","\u03a4":"\u03c4","\u03a5":"\u03c5","\u03a6":"\u03c6","\u03a7":"\u03c7","\u03a8":"\u03c8","\u03a9":"\u03c9","\u03aa":"\u03ca","\u03ab":"\u03cb","\u03c2":"\u03c3","\u03cf":"\u03d7","\u03d0":"\u03b2","\u03d1":"\u03b8","\u03d5":"\u03c6",
"\u03d6":"\u03c0","\u03d8":"\u03d9","\u03da":"\u03db","\u03dc":"\u03dd","\u03de":"\u03df","\u03e0":"\u03e1","\u03e2":"\u03e3","\u03e4":"\u03e5","\u03e6":"\u03e7","\u03e8":"\u03e9","\u03ea":"\u03eb","\u03ec":"\u03ed","\u03ee":"\u03ef","\u03f0":"\u03ba","\u03f1":"\u03c1","\u03f4":"\u03b8","\u03f5":"\u03b5","\u03f7":"\u03f8","\u03f9":"\u03f2","\u03fa":"\u03fb","\u03fd":"\u037b","\u03fe":"\u037c","\u03ff":"\u037d","\u0400":"\u0450","\u0401":"\u0451","\u0402":"\u0452","\u0403":"\u0453","\u0404":"\u0454",
"\u0405":"\u0455","\u0406":"\u0456","\u0407":"\u0457","\u0408":"\u0458","\u0409":"\u0459","\u040a":"\u045a","\u040b":"\u045b","\u040c":"\u045c","\u040d":"\u045d","\u040e":"\u045e","\u040f":"\u045f","\u0410":"\u0430","\u0411":"\u0431","\u0412":"\u0432","\u0413":"\u0433","\u0414":"\u0434","\u0415":"\u0435","\u0416":"\u0436","\u0417":"\u0437","\u0418":"\u0438","\u0419":"\u0439","\u041a":"\u043a","\u041b":"\u043b","\u041c":"\u043c","\u041d":"\u043d","\u041e":"\u043e","\u041f":"\u043f","\u0420":"\u0440",
"\u0421":"\u0441","\u0422":"\u0442","\u0423":"\u0443","\u0424":"\u0444","\u0425":"\u0445","\u0426":"\u0446","\u0427":"\u0447","\u0428":"\u0448","\u0429":"\u0449","\u042a":"\u044a","\u042b":"\u044b","\u042c":"\u044c","\u042d":"\u044d","\u042e":"\u044e","\u042f":"\u044f","\u0460":"\u0461","\u0462":"\u0463","\u0464":"\u0465","\u0466":"\u0467","\u0468":"\u0469","\u046a":"\u046b","\u046c":"\u046d","\u046e":"\u046f","\u0470":"\u0471","\u0472":"\u0473","\u0474":"\u0475","\u0476":"\u0477","\u0478":"\u0479",
"\u047a":"\u047b","\u047c":"\u047d","\u047e":"\u047f","\u0480":"\u0481","\u048a":"\u048b","\u048c":"\u048d","\u048e":"\u048f","\u0490":"\u0491","\u0492":"\u0493","\u0494":"\u0495","\u0496":"\u0497","\u0498":"\u0499","\u049a":"\u049b","\u049c":"\u049d","\u049e":"\u049f","\u04a0":"\u04a1","\u04a2":"\u04a3","\u04a4":"\u04a5","\u04a6":"\u04a7","\u04a8":"\u04a9","\u04aa":"\u04ab","\u04ac":"\u04ad","\u04ae":"\u04af","\u04b0":"\u04b1","\u04b2":"\u04b3","\u04b4":"\u04b5","\u04b6":"\u04b7","\u04b8":"\u04b9",
"\u04ba":"\u04bb","\u04bc":"\u04bd","\u04be":"\u04bf","\u04c0":"\u04cf","\u04c1":"\u04c2","\u04c3":"\u04c4","\u04c5":"\u04c6","\u04c7":"\u04c8","\u04c9":"\u04ca","\u04cb":"\u04cc","\u04cd":"\u04ce","\u04d0":"\u04d1","\u04d2":"\u04d3","\u04d4":"\u04d5","\u04d6":"\u04d7","\u04d8":"\u04d9","\u04da":"\u04db","\u04dc":"\u04dd","\u04de":"\u04df","\u04e0":"\u04e1","\u04e2":"\u04e3","\u04e4":"\u04e5","\u04e6":"\u04e7","\u04e8":"\u04e9","\u04ea":"\u04eb","\u04ec":"\u04ed","\u04ee":"\u04ef","\u04f0":"\u04f1",
"\u04f2":"\u04f3","\u04f4":"\u04f5","\u04f6":"\u04f7","\u04f8":"\u04f9","\u04fa":"\u04fb","\u04fc":"\u04fd","\u04fe":"\u04ff","\u0500":"\u0501","\u0502":"\u0503","\u0504":"\u0505","\u0506":"\u0507","\u0508":"\u0509","\u050a":"\u050b","\u050c":"\u050d","\u050e":"\u050f","\u0510":"\u0511","\u0512":"\u0513","\u0514":"\u0515","\u0516":"\u0517","\u0518":"\u0519","\u051a":"\u051b","\u051c":"\u051d","\u051e":"\u051f","\u0520":"\u0521","\u0522":"\u0523","\u0524":"\u0525","\u0526":"\u0527","\u0528":"\u0529",
"\u052a":"\u052b","\u052c":"\u052d","\u052e":"\u052f","\u0531":"\u0561","\u0532":"\u0562","\u0533":"\u0563","\u0534":"\u0564","\u0535":"\u0565","\u0536":"\u0566","\u0537":"\u0567","\u0538":"\u0568","\u0539":"\u0569","\u053a":"\u056a","\u053b":"\u056b","\u053c":"\u056c","\u053d":"\u056d","\u053e":"\u056e","\u053f":"\u056f","\u0540":"\u0570","\u0541":"\u0571","\u0542":"\u0572","\u0543":"\u0573","\u0544":"\u0574","\u0545":"\u0575","\u0546":"\u0576","\u0547":"\u0577","\u0548":"\u0578","\u0549":"\u0579",
"\u054a":"\u057a","\u054b":"\u057b","\u054c":"\u057c","\u054d":"\u057d","\u054e":"\u057e","\u054f":"\u057f","\u0550":"\u0580","\u0551":"\u0581","\u0552":"\u0582","\u0553":"\u0583","\u0554":"\u0584","\u0555":"\u0585","\u0556":"\u0586","\u10a0":"\u2d00","\u10a1":"\u2d01","\u10a2":"\u2d02","\u10a3":"\u2d03","\u10a4":"\u2d04","\u10a5":"\u2d05","\u10a6":"\u2d06","\u10a7":"\u2d07","\u10a8":"\u2d08","\u10a9":"\u2d09","\u10aa":"\u2d0a","\u10ab":"\u2d0b","\u10ac":"\u2d0c","\u10ad":"\u2d0d","\u10ae":"\u2d0e",
"\u10af":"\u2d0f","\u10b0":"\u2d10","\u10b1":"\u2d11","\u10b2":"\u2d12","\u10b3":"\u2d13","\u10b4":"\u2d14","\u10b5":"\u2d15","\u10b6":"\u2d16","\u10b7":"\u2d17","\u10b8":"\u2d18","\u10b9":"\u2d19","\u10ba":"\u2d1a","\u10bb":"\u2d1b","\u10bc":"\u2d1c","\u10bd":"\u2d1d","\u10be":"\u2d1e","\u10bf":"\u2d1f","\u10c0":"\u2d20","\u10c1":"\u2d21","\u10c2":"\u2d22","\u10c3":"\u2d23","\u10c4":"\u2d24","\u10c5":"\u2d25","\u10c7":"\u2d27","\u10cd":"\u2d2d","\u1e00":"\u1e01","\u1e02":"\u1e03","\u1e04":"\u1e05",
"\u1e06":"\u1e07","\u1e08":"\u1e09","\u1e0a":"\u1e0b","\u1e0c":"\u1e0d","\u1e0e":"\u1e0f","\u1e10":"\u1e11","\u1e12":"\u1e13","\u1e14":"\u1e15","\u1e16":"\u1e17","\u1e18":"\u1e19","\u1e1a":"\u1e1b","\u1e1c":"\u1e1d","\u1e1e":"\u1e1f","\u1e20":"\u1e21","\u1e22":"\u1e23","\u1e24":"\u1e25","\u1e26":"\u1e27","\u1e28":"\u1e29","\u1e2a":"\u1e2b","\u1e2c":"\u1e2d","\u1e2e":"\u1e2f","\u1e30":"\u1e31","\u1e32":"\u1e33","\u1e34":"\u1e35","\u1e36":"\u1e37","\u1e38":"\u1e39","\u1e3a":"\u1e3b","\u1e3c":"\u1e3d",
"\u1e3e":"\u1e3f","\u1e40":"\u1e41","\u1e42":"\u1e43","\u1e44":"\u1e45","\u1e46":"\u1e47","\u1e48":"\u1e49","\u1e4a":"\u1e4b","\u1e4c":"\u1e4d","\u1e4e":"\u1e4f","\u1e50":"\u1e51","\u1e52":"\u1e53","\u1e54":"\u1e55","\u1e56":"\u1e57","\u1e58":"\u1e59","\u1e5a":"\u1e5b","\u1e5c":"\u1e5d","\u1e5e":"\u1e5f","\u1e60":"\u1e61","\u1e62":"\u1e63","\u1e64":"\u1e65","\u1e66":"\u1e67","\u1e68":"\u1e69","\u1e6a":"\u1e6b","\u1e6c":"\u1e6d","\u1e6e":"\u1e6f","\u1e70":"\u1e71","\u1e72":"\u1e73","\u1e74":"\u1e75",
"\u1e76":"\u1e77","\u1e78":"\u1e79","\u1e7a":"\u1e7b","\u1e7c":"\u1e7d","\u1e7e":"\u1e7f","\u1e80":"\u1e81","\u1e82":"\u1e83","\u1e84":"\u1e85","\u1e86":"\u1e87","\u1e88":"\u1e89","\u1e8a":"\u1e8b","\u1e8c":"\u1e8d","\u1e8e":"\u1e8f","\u1e90":"\u1e91","\u1e92":"\u1e93","\u1e94":"\u1e95","\u1e9b":"\u1e61","\u1ea0":"\u1ea1","\u1ea2":"\u1ea3","\u1ea4":"\u1ea5","\u1ea6":"\u1ea7","\u1ea8":"\u1ea9","\u1eaa":"\u1eab","\u1eac":"\u1ead","\u1eae":"\u1eaf","\u1eb0":"\u1eb1","\u1eb2":"\u1eb3","\u1eb4":"\u1eb5",
"\u1eb6":"\u1eb7","\u1eb8":"\u1eb9","\u1eba":"\u1ebb","\u1ebc":"\u1ebd","\u1ebe":"\u1ebf","\u1ec0":"\u1ec1","\u1ec2":"\u1ec3","\u1ec4":"\u1ec5","\u1ec6":"\u1ec7","\u1ec8":"\u1ec9","\u1eca":"\u1ecb","\u1ecc":"\u1ecd","\u1ece":"\u1ecf","\u1ed0":"\u1ed1","\u1ed2":"\u1ed3","\u1ed4":"\u1ed5","\u1ed6":"\u1ed7","\u1ed8":"\u1ed9","\u1eda":"\u1edb","\u1edc":"\u1edd","\u1ede":"\u1edf","\u1ee0":"\u1ee1","\u1ee2":"\u1ee3","\u1ee4":"\u1ee5","\u1ee6":"\u1ee7","\u1ee8":"\u1ee9","\u1eea":"\u1eeb","\u1eec":"\u1eed",
"\u1eee":"\u1eef","\u1ef0":"\u1ef1","\u1ef2":"\u1ef3","\u1ef4":"\u1ef5","\u1ef6":"\u1ef7","\u1ef8":"\u1ef9","\u1efa":"\u1efb","\u1efc":"\u1efd","\u1efe":"\u1eff","\u1f08":"\u1f00","\u1f09":"\u1f01","\u1f0a":"\u1f02","\u1f0b":"\u1f03","\u1f0c":"\u1f04","\u1f0d":"\u1f05","\u1f0e":"\u1f06","\u1f0f":"\u1f07","\u1f18":"\u1f10","\u1f19":"\u1f11","\u1f1a":"\u1f12","\u1f1b":"\u1f13","\u1f1c":"\u1f14","\u1f1d":"\u1f15","\u1f28":"\u1f20","\u1f29":"\u1f21","\u1f2a":"\u1f22","\u1f2b":"\u1f23","\u1f2c":"\u1f24",
"\u1f2d":"\u1f25","\u1f2e":"\u1f26","\u1f2f":"\u1f27","\u1f38":"\u1f30","\u1f39":"\u1f31","\u1f3a":"\u1f32","\u1f3b":"\u1f33","\u1f3c":"\u1f34","\u1f3d":"\u1f35","\u1f3e":"\u1f36","\u1f3f":"\u1f37","\u1f48":"\u1f40","\u1f49":"\u1f41","\u1f4a":"\u1f42","\u1f4b":"\u1f43","\u1f4c":"\u1f44","\u1f4d":"\u1f45","\u1f59":"\u1f51","\u1f5b":"\u1f53","\u1f5d":"\u1f55","\u1f5f":"\u1f57","\u1f68":"\u1f60","\u1f69":"\u1f61","\u1f6a":"\u1f62","\u1f6b":"\u1f63","\u1f6c":"\u1f64","\u1f6d":"\u1f65","\u1f6e":"\u1f66",
"\u1f6f":"\u1f67","\u1fb8":"\u1fb0","\u1fb9":"\u1fb1","\u1fba":"\u1f70","\u1fbb":"\u1f71","\u1fbe":"\u03b9","\u1fc8":"\u1f72","\u1fc9":"\u1f73","\u1fca":"\u1f74","\u1fcb":"\u1f75","\u1fd8":"\u1fd0","\u1fd9":"\u1fd1","\u1fda":"\u1f76","\u1fdb":"\u1f77","\u1fe8":"\u1fe0","\u1fe9":"\u1fe1","\u1fea":"\u1f7a","\u1feb":"\u1f7b","\u1fec":"\u1fe5","\u1ff8":"\u1f78","\u1ff9":"\u1f79","\u1ffa":"\u1f7c","\u1ffb":"\u1f7d","\u2126":"\u03c9","\u212a":"k","\u212b":"\u00e5","\u2132":"\u214e","\u2160":"\u2170","\u2161":"\u2171",
"\u2162":"\u2172","\u2163":"\u2173","\u2164":"\u2174","\u2165":"\u2175","\u2166":"\u2176","\u2167":"\u2177","\u2168":"\u2178","\u2169":"\u2179","\u216a":"\u217a","\u216b":"\u217b","\u216c":"\u217c","\u216d":"\u217d","\u216e":"\u217e","\u216f":"\u217f","\u2183":"\u2184","\u24b6":"\u24d0","\u24b7":"\u24d1","\u24b8":"\u24d2","\u24b9":"\u24d3","\u24ba":"\u24d4","\u24bb":"\u24d5","\u24bc":"\u24d6","\u24bd":"\u24d7","\u24be":"\u24d8","\u24bf":"\u24d9","\u24c0":"\u24da","\u24c1":"\u24db","\u24c2":"\u24dc",
"\u24c3":"\u24dd","\u24c4":"\u24de","\u24c5":"\u24df","\u24c6":"\u24e0","\u24c7":"\u24e1","\u24c8":"\u24e2","\u24c9":"\u24e3","\u24ca":"\u24e4","\u24cb":"\u24e5","\u24cc":"\u24e6","\u24cd":"\u24e7","\u24ce":"\u24e8","\u24cf":"\u24e9","\u2c00":"\u2c30","\u2c01":"\u2c31","\u2c02":"\u2c32","\u2c03":"\u2c33","\u2c04":"\u2c34","\u2c05":"\u2c35","\u2c06":"\u2c36","\u2c07":"\u2c37","\u2c08":"\u2c38","\u2c09":"\u2c39","\u2c0a":"\u2c3a","\u2c0b":"\u2c3b","\u2c0c":"\u2c3c","\u2c0d":"\u2c3d","\u2c0e":"\u2c3e",
"\u2c0f":"\u2c3f","\u2c10":"\u2c40","\u2c11":"\u2c41","\u2c12":"\u2c42","\u2c13":"\u2c43","\u2c14":"\u2c44","\u2c15":"\u2c45","\u2c16":"\u2c46","\u2c17":"\u2c47","\u2c18":"\u2c48","\u2c19":"\u2c49","\u2c1a":"\u2c4a","\u2c1b":"\u2c4b","\u2c1c":"\u2c4c","\u2c1d":"\u2c4d","\u2c1e":"\u2c4e","\u2c1f":"\u2c4f","\u2c20":"\u2c50","\u2c21":"\u2c51","\u2c22":"\u2c52","\u2c23":"\u2c53","\u2c24":"\u2c54","\u2c25":"\u2c55","\u2c26":"\u2c56","\u2c27":"\u2c57","\u2c28":"\u2c58","\u2c29":"\u2c59","\u2c2a":"\u2c5a",
"\u2c2b":"\u2c5b","\u2c2c":"\u2c5c","\u2c2d":"\u2c5d","\u2c2e":"\u2c5e","\u2c60":"\u2c61","\u2c62":"\u026b","\u2c63":"\u1d7d","\u2c64":"\u027d","\u2c67":"\u2c68","\u2c69":"\u2c6a","\u2c6b":"\u2c6c","\u2c6d":"\u0251","\u2c6e":"\u0271","\u2c6f":"\u0250","\u2c70":"\u0252","\u2c72":"\u2c73","\u2c75":"\u2c76","\u2c7e":"\u023f","\u2c7f":"\u0240","\u2c80":"\u2c81","\u2c82":"\u2c83","\u2c84":"\u2c85","\u2c86":"\u2c87","\u2c88":"\u2c89","\u2c8a":"\u2c8b","\u2c8c":"\u2c8d","\u2c8e":"\u2c8f","\u2c90":"\u2c91",
"\u2c92":"\u2c93","\u2c94":"\u2c95","\u2c96":"\u2c97","\u2c98":"\u2c99","\u2c9a":"\u2c9b","\u2c9c":"\u2c9d","\u2c9e":"\u2c9f","\u2ca0":"\u2ca1","\u2ca2":"\u2ca3","\u2ca4":"\u2ca5","\u2ca6":"\u2ca7","\u2ca8":"\u2ca9","\u2caa":"\u2cab","\u2cac":"\u2cad","\u2cae":"\u2caf","\u2cb0":"\u2cb1","\u2cb2":"\u2cb3","\u2cb4":"\u2cb5","\u2cb6":"\u2cb7","\u2cb8":"\u2cb9","\u2cba":"\u2cbb","\u2cbc":"\u2cbd","\u2cbe":"\u2cbf","\u2cc0":"\u2cc1","\u2cc2":"\u2cc3","\u2cc4":"\u2cc5","\u2cc6":"\u2cc7","\u2cc8":"\u2cc9",
"\u2cca":"\u2ccb","\u2ccc":"\u2ccd","\u2cce":"\u2ccf","\u2cd0":"\u2cd1","\u2cd2":"\u2cd3","\u2cd4":"\u2cd5","\u2cd6":"\u2cd7","\u2cd8":"\u2cd9","\u2cda":"\u2cdb","\u2cdc":"\u2cdd","\u2cde":"\u2cdf","\u2ce0":"\u2ce1","\u2ce2":"\u2ce3","\u2ceb":"\u2cec","\u2ced":"\u2cee","\u2cf2":"\u2cf3","\ua640":"\ua641","\ua642":"\ua643","\ua644":"\ua645","\ua646":"\ua647","\ua648":"\ua649","\ua64a":"\ua64b","\ua64c":"\ua64d","\ua64e":"\ua64f","\ua650":"\ua651","\ua652":"\ua653","\ua654":"\ua655","\ua656":"\ua657",
"\ua658":"\ua659","\ua65a":"\ua65b","\ua65c":"\ua65d","\ua65e":"\ua65f","\ua660":"\ua661","\ua662":"\ua663","\ua664":"\ua665","\ua666":"\ua667","\ua668":"\ua669","\ua66a":"\ua66b","\ua66c":"\ua66d","\ua680":"\ua681","\ua682":"\ua683","\ua684":"\ua685","\ua686":"\ua687","\ua688":"\ua689","\ua68a":"\ua68b","\ua68c":"\ua68d","\ua68e":"\ua68f","\ua690":"\ua691","\ua692":"\ua693","\ua694":"\ua695","\ua696":"\ua697","\ua698":"\ua699","\ua69a":"\ua69b","\ua722":"\ua723","\ua724":"\ua725","\ua726":"\ua727",
"\ua728":"\ua729","\ua72a":"\ua72b","\ua72c":"\ua72d","\ua72e":"\ua72f","\ua732":"\ua733","\ua734":"\ua735","\ua736":"\ua737","\ua738":"\ua739","\ua73a":"\ua73b","\ua73c":"\ua73d","\ua73e":"\ua73f","\ua740":"\ua741","\ua742":"\ua743","\ua744":"\ua745","\ua746":"\ua747","\ua748":"\ua749","\ua74a":"\ua74b","\ua74c":"\ua74d","\ua74e":"\ua74f","\ua750":"\ua751","\ua752":"\ua753","\ua754":"\ua755","\ua756":"\ua757","\ua758":"\ua759","\ua75a":"\ua75b","\ua75c":"\ua75d","\ua75e":"\ua75f","\ua760":"\ua761",
"\ua762":"\ua763","\ua764":"\ua765","\ua766":"\ua767","\ua768":"\ua769","\ua76a":"\ua76b","\ua76c":"\ua76d","\ua76e":"\ua76f","\ua779":"\ua77a","\ua77b":"\ua77c","\ua77d":"\u1d79","\ua77e":"\ua77f","\ua780":"\ua781","\ua782":"\ua783","\ua784":"\ua785","\ua786":"\ua787","\ua78b":"\ua78c","\ua78d":"\u0265","\ua790":"\ua791","\ua792":"\ua793","\ua796":"\ua797","\ua798":"\ua799","\ua79a":"\ua79b","\ua79c":"\ua79d","\ua79e":"\ua79f","\ua7a0":"\ua7a1","\ua7a2":"\ua7a3","\ua7a4":"\ua7a5","\ua7a6":"\ua7a7",
"\ua7a8":"\ua7a9","\ua7aa":"\u0266","\ua7ab":"\u025c","\ua7ac":"\u0261","\ua7ad":"\u026c","\ua7b0":"\u029e","\ua7b1":"\u0287","\uff21":"\uff41","\uff22":"\uff42","\uff23":"\uff43","\uff24":"\uff44","\uff25":"\uff45","\uff26":"\uff46","\uff27":"\uff47","\uff28":"\uff48","\uff29":"\uff49","\uff2a":"\uff4a","\uff2b":"\uff4b","\uff2c":"\uff4c","\uff2d":"\uff4d","\uff2e":"\uff4e","\uff2f":"\uff4f","\uff30":"\uff50","\uff31":"\uff51","\uff32":"\uff52","\uff33":"\uff53","\uff34":"\uff54","\uff35":"\uff55",
"\uff36":"\uff56","\uff37":"\uff57","\uff38":"\uff58","\uff39":"\uff59","\uff3a":"\uff5a","\ud801\udc00":"\ud801\udc28","\ud801\udc01":"\ud801\udc29","\ud801\udc02":"\ud801\udc2a","\ud801\udc03":"\ud801\udc2b","\ud801\udc04":"\ud801\udc2c","\ud801\udc05":"\ud801\udc2d","\ud801\udc06":"\ud801\udc2e","\ud801\udc07":"\ud801\udc2f","\ud801\udc08":"\ud801\udc30","\ud801\udc09":"\ud801\udc31","\ud801\udc0a":"\ud801\udc32","\ud801\udc0b":"\ud801\udc33","\ud801\udc0c":"\ud801\udc34","\ud801\udc0d":"\ud801\udc35",
"\ud801\udc0e":"\ud801\udc36","\ud801\udc0f":"\ud801\udc37","\ud801\udc10":"\ud801\udc38","\ud801\udc11":"\ud801\udc39","\ud801\udc12":"\ud801\udc3a","\ud801\udc13":"\ud801\udc3b","\ud801\udc14":"\ud801\udc3c","\ud801\udc15":"\ud801\udc3d","\ud801\udc16":"\ud801\udc3e","\ud801\udc17":"\ud801\udc3f","\ud801\udc18":"\ud801\udc40","\ud801\udc19":"\ud801\udc41","\ud801\udc1a":"\ud801\udc42","\ud801\udc1b":"\ud801\udc43","\ud801\udc1c":"\ud801\udc44","\ud801\udc1d":"\ud801\udc45","\ud801\udc1e":"\ud801\udc46",
"\ud801\udc1f":"\ud801\udc47","\ud801\udc20":"\ud801\udc48","\ud801\udc21":"\ud801\udc49","\ud801\udc22":"\ud801\udc4a","\ud801\udc23":"\ud801\udc4b","\ud801\udc24":"\ud801\udc4c","\ud801\udc25":"\ud801\udc4d","\ud801\udc26":"\ud801\udc4e","\ud801\udc27":"\ud801\udc4f","\ud806\udca0":"\ud806\udcc0","\ud806\udca1":"\ud806\udcc1","\ud806\udca2":"\ud806\udcc2","\ud806\udca3":"\ud806\udcc3","\ud806\udca4":"\ud806\udcc4","\ud806\udca5":"\ud806\udcc5","\ud806\udca6":"\ud806\udcc6","\ud806\udca7":"\ud806\udcc7",
"\ud806\udca8":"\ud806\udcc8","\ud806\udca9":"\ud806\udcc9","\ud806\udcaa":"\ud806\udcca","\ud806\udcab":"\ud806\udccb","\ud806\udcac":"\ud806\udccc","\ud806\udcad":"\ud806\udccd","\ud806\udcae":"\ud806\udcce","\ud806\udcaf":"\ud806\udccf","\ud806\udcb0":"\ud806\udcd0","\ud806\udcb1":"\ud806\udcd1","\ud806\udcb2":"\ud806\udcd2","\ud806\udcb3":"\ud806\udcd3","\ud806\udcb4":"\ud806\udcd4","\ud806\udcb5":"\ud806\udcd5","\ud806\udcb6":"\ud806\udcd6","\ud806\udcb7":"\ud806\udcd7","\ud806\udcb8":"\ud806\udcd8",
"\ud806\udcb9":"\ud806\udcd9","\ud806\udcba":"\ud806\udcda","\ud806\udcbb":"\ud806\udcdb","\ud806\udcbc":"\ud806\udcdc","\ud806\udcbd":"\ud806\udcdd","\ud806\udcbe":"\ud806\udcde","\ud806\udcbf":"\ud806\udcdf","\u00df":"ss","\u0130":"i\u0307","\u0149":"\u02bcn","\u01f0":"j\u030c","\u0390":"\u03b9\u0308\u0301","\u03b0":"\u03c5\u0308\u0301","\u0587":"\u0565\u0582","\u1e96":"h\u0331","\u1e97":"t\u0308","\u1e98":"w\u030a","\u1e99":"y\u030a","\u1e9a":"a\u02be","\u1e9e":"ss","\u1f50":"\u03c5\u0313","\u1f52":"\u03c5\u0313\u0300",
"\u1f54":"\u03c5\u0313\u0301","\u1f56":"\u03c5\u0313\u0342","\u1f80":"\u1f00\u03b9","\u1f81":"\u1f01\u03b9","\u1f82":"\u1f02\u03b9","\u1f83":"\u1f03\u03b9","\u1f84":"\u1f04\u03b9","\u1f85":"\u1f05\u03b9","\u1f86":"\u1f06\u03b9","\u1f87":"\u1f07\u03b9","\u1f88":"\u1f00\u03b9","\u1f89":"\u1f01\u03b9","\u1f8a":"\u1f02\u03b9","\u1f8b":"\u1f03\u03b9","\u1f8c":"\u1f04\u03b9","\u1f8d":"\u1f05\u03b9","\u1f8e":"\u1f06\u03b9","\u1f8f":"\u1f07\u03b9","\u1f90":"\u1f20\u03b9","\u1f91":"\u1f21\u03b9","\u1f92":"\u1f22\u03b9",
"\u1f93":"\u1f23\u03b9","\u1f94":"\u1f24\u03b9","\u1f95":"\u1f25\u03b9","\u1f96":"\u1f26\u03b9","\u1f97":"\u1f27\u03b9","\u1f98":"\u1f20\u03b9","\u1f99":"\u1f21\u03b9","\u1f9a":"\u1f22\u03b9","\u1f9b":"\u1f23\u03b9","\u1f9c":"\u1f24\u03b9","\u1f9d":"\u1f25\u03b9","\u1f9e":"\u1f26\u03b9","\u1f9f":"\u1f27\u03b9","\u1fa0":"\u1f60\u03b9","\u1fa1":"\u1f61\u03b9","\u1fa2":"\u1f62\u03b9","\u1fa3":"\u1f63\u03b9","\u1fa4":"\u1f64\u03b9","\u1fa5":"\u1f65\u03b9","\u1fa6":"\u1f66\u03b9","\u1fa7":"\u1f67\u03b9",
"\u1fa8":"\u1f60\u03b9","\u1fa9":"\u1f61\u03b9","\u1faa":"\u1f62\u03b9","\u1fab":"\u1f63\u03b9","\u1fac":"\u1f64\u03b9","\u1fad":"\u1f65\u03b9","\u1fae":"\u1f66\u03b9","\u1faf":"\u1f67\u03b9","\u1fb2":"\u1f70\u03b9","\u1fb3":"\u03b1\u03b9","\u1fb4":"\u03ac\u03b9","\u1fb6":"\u03b1\u0342","\u1fb7":"\u03b1\u0342\u03b9","\u1fbc":"\u03b1\u03b9","\u1fc2":"\u1f74\u03b9","\u1fc3":"\u03b7\u03b9","\u1fc4":"\u03ae\u03b9","\u1fc6":"\u03b7\u0342","\u1fc7":"\u03b7\u0342\u03b9","\u1fcc":"\u03b7\u03b9","\u1fd2":"\u03b9\u0308\u0300",
"\u1fd3":"\u03b9\u0308\u0301","\u1fd6":"\u03b9\u0342","\u1fd7":"\u03b9\u0308\u0342","\u1fe2":"\u03c5\u0308\u0300","\u1fe3":"\u03c5\u0308\u0301","\u1fe4":"\u03c1\u0313","\u1fe6":"\u03c5\u0342","\u1fe7":"\u03c5\u0308\u0342","\u1ff2":"\u1f7c\u03b9","\u1ff3":"\u03c9\u03b9","\u1ff4":"\u03ce\u03b9","\u1ff6":"\u03c9\u0342","\u1ff7":"\u03c9\u0342\u03b9","\u1ffc":"\u03c9\u03b9","\ufb00":"ff","\ufb01":"fi","\ufb02":"fl","\ufb03":"ffi","\ufb04":"ffl","\ufb05":"st","\ufb06":"st","\ufb13":"\u0574\u0576","\ufb14":"\u0574\u0565",
"\ufb15":"\u0574\u056b","\ufb16":"\u057e\u0576","\ufb17":"\u0574\u056d"};var gMM=new RegExp(/[!-#%-\*,-/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/),
i7C=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),GvS=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),oM7=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),qQl=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),aA3=/`+/,lAX=/^`+/,eAB=/\.\.\./g,kv6=/--+/g,xc3=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,
nM3=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,CVB=/^ *(?:\n *)?/,RAg=/^[ \t\n\x0b\x0c\x0d]/,V8g=/[ \t\n\x0b\x0c\x0d]+/g,UcN=/^\s/,hAU=/ *$/,LeS=/^ */,M83=/^ *(?:\n|$)/,mcA=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),wg6=/^[^\n`\[\]\\!<&*_'"]+/m,kZ=function(d){var H=new xK("text");H._literal=d;return H},xZ=function(d){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=d||{}};
xZ.prototype.match=function(d){d=d.exec(this.subject.slice(this.pos));if(d===null)return null;this.pos+=d.index+d[0].length;return d[0]};
xZ.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var nN=function(d){d.match(CVB);return!0},PV3=function(d,H,K){var c=0;
var p=d.pos;if(H===39||H===34)c++,d.pos++;else for(;d.peek()===H;)c++,d.pos++;if(c===0)c=null;else{var g=p===0?"\n":d.subject.charAt(p-1);var a=d.peek();a=a===-1?"\n":e0(a);var e=UcN.test(a);a=gMM.test(a);var k=UcN.test(g);var C=gMM.test(g);g=!e&&!(a&&!k&&!C);e=!k&&!(C&&!e&&!a);H===95?(k=g&&(!e||C),a=e&&(!g||a)):(k=H===39||H===34?g&&!e:g,a=e);d.pos=p;c={numdelims:c,can_open:k,can_close:a}}if(!c)return!1;p=c.numdelims;a=d.pos;d.pos+=p;a=H===39?"\u2019":H===34?"\u201c":d.subject.slice(a,d.pos);a=kZ(a);
K.appendChild(a);d.delimiters={cc:H,numdelims:p,origdelims:p,node:a,previous:d.delimiters,next:null,can_open:c.can_open,can_close:c.can_close};d.delimiters.previous!==null&&(d.delimiters.previous.next=d.delimiters);return!0},uX3=function(d,H){H.previous!==null&&(H.previous.next=H.next);
H.next===null?d.delimiters=H.previous:H.next.previous=H.previous},IA7=function(d,H){var K,c,p=[],g=!1;
p[95]=H;p[42]=H;p[39]=H;p[34]=H;for(K=d.delimiters;K!==null&&K.previous!==H;)K=K.previous;for(;K!==null;){var a=K.cc;if(K.can_close){var e=K.previous;for(c=!1;e!==null&&e!==H&&e!==p[a];){g=(K.can_open||e.can_close)&&(e.origdelims+K.origdelims)%3===0;if(e.cc===K.cc&&e.can_open&&!g){c=!0;break}e=e.previous}var k=K;if(a===42||a===95)if(c){var C=K.numdelims>=2&&e.numdelims>=2?2:1;var R=e.node;var V=K.node;e.numdelims-=C;K.numdelims-=C;R._literal=R._literal.slice(0,R._literal.length-C);V._literal=V._literal.slice(0,
V._literal.length-C);var U=new xK(C===1?"emph":"strong");for(C=R._next;C&&C!==V;){var L=C._next;C.unlink();U.appendChild(C);C=L}pgC(R,U);C=e;L=K;C.next!==L&&(C.next=L,L.previous=C);e.numdelims===0&&(R.unlink(),uX3(d,e));K.numdelims===0&&(V.unlink(),e=K.next,uX3(d,K),K=e)}else K=K.next;else a===39?(K.node._literal="\u2019",c&&(e.node._literal="\u2018"),K=K.next):a===34&&(K.node._literal="\u201d",c&&(e.node.literal="\u201c"),K=K.next);c||g||(p[a]=k.previous,k.can_open||uX3(d,k))}else K=K.next}for(;d.delimiters!==
null&&d.delimiters!==H;)uX3(d,d.delimiters)},ruU=function(d){d=d.match(i7C);
return d===null?null:vvN(d.substr(1,d.length-2))},We0=function(d){var H=d.match(GvS);
if(H===null){H=d.pos;for(var K=0,c;(c=d.peek())!==-1;)if(c===92)d.pos+=1,d.peek()!==-1&&(d.pos+=1);else if(c===40)d.pos+=1,K+=1;else if(c===41)if(K<1)break;else d.pos+=1,--K;else if(RAg.exec(e0(c))!==null)break;else d.pos+=1;H=d.subject.substr(H,d.pos-H);return dcX(vvN(H))}return dcX(vvN(H.substr(1,H.length-2)))},B73=function(d){d=d.match(mcA);
return d===null||d.length>1001?0:d.length},zAd=function(d,H,K,c){d.brackets!==null&&(d.brackets.bracketAfter=!0);
d.brackets={node:H,previous:d.brackets,previousDelimiter:d.delimiters,index:K,image:c,active:!0}},Xg7=function(d,H){var K;
return(K=d.match(wg6))?(d.options.smart?H.appendChild(kZ(K.replace(eAB,"\u2026").replace(kv6,function(c){var p=0,g=0;c.length%3===0?g=c.length/3:c.length%2===0?p=c.length/2:c.length%3===2?(p=1,g=(c.length-2)/3):(p=2,g=(c.length-4)/3);c="";var a;for(a=0;a<g;a++)c+="\u2014";for(a=0;a<p;a++)c+="\u2013";return c}))):H.appendChild(kZ(K)),!0):!1},JuM=function(d,H,K){d.subject=H;
d.pos=0;H=d.pos;var c=B73(d);if(c===0)return 0;var p=d.subject.substr(0,c);if(d.peek()===58)d.pos++;else return d.pos=H,0;nN(d);c=We0(d);if(c===null||c.length===0)return d.pos=H,0;var g=d.pos;nN(d);var a=ruU(d);a===null&&(a="",d.pos=g);var e=!0;d.match(M83)===null&&(a===""?e=!1:(a="",d.pos=g,e=d.match(M83)!==null));if(!e)return d.pos=H,0;p=bVf(p);if(p==="")return d.pos=H,0;K[p]||(K[p]={destination:c,title:a});return d.pos-H},sdN=function(d,H){var K,c=d.peek();
if(c===-1)return!1;switch(c){case 10:d.pos+=1;if((K=H._lastChild)&&K.type==="text"&&K._literal[K._literal.length-1]===" "){var p=K._literal[K._literal.length-2]===" ";K._literal=K._literal.replace(hAU,"");H.appendChild(new xK(p?"linebreak":"softbreak"))}else H.appendChild(new xK("softbreak"));d.match(LeS);K=!0;break;case 92:K=d.subject;d.pos+=1;d.peek()===10?(d.pos+=1,K=new xK("linebreak"),H.appendChild(K)):oM7.test(K.charAt(d.pos))?(H.appendChild(kZ(K.charAt(d.pos))),d.pos+=1):H.appendChild(kZ("\\"));
K=!0;break;case 96:a:if(K=d.match(lAX),K===null)K=!1;else{p=d.pos;for(var g;(g=d.match(aA3))!==null;)if(g===K){g=new xK("code");g._literal=d.subject.slice(p,d.pos-K.length).trim().replace(V8g," ");H.appendChild(g);K=!0;break a}d.pos=p;H.appendChild(kZ(K));K=!0}break;case 42:case 95:K=PV3(d,c,H);break;case 39:case 34:K=d.options.smart&&PV3(d,c,H);break;case 91:K=d.pos;d.pos+=1;p=kZ("[");H.appendChild(p);zAd(d,p,K,!1);K=!0;break;case 33:K=d.pos;d.pos+=1;d.peek()===91?(d.pos+=1,p=kZ("!["),H.appendChild(p),
zAd(d,p,K+1,!0)):H.appendChild(kZ("!"));K=!0;break;case 93:var a,e=!1,k;d.pos+=1;var C=d.pos;p=d.brackets;if(p===null)H.appendChild(kZ("]"));else if(p.active){K=p.image;var R=d.pos;d.peek()===40&&(d.pos++,nN(d)&&(g=We0(d))!==null&&nN(d)&&(RAg.test(d.subject.charAt(d.pos-1))&&(a=ruU(d)),1)&&nN(d)&&d.peek()===41?(d.pos+=1,e=!0):d.pos=R);if(!e){var V=d.pos,U=B73(d);U>2?k=d.subject.slice(V,V+U):p.bracketAfter||(k=d.subject.slice(p.index,C));U===0&&(d.pos=R);k&&(k=d.refmap[bVf(k)])&&(g=k.destination,a=
k.title,e=!0)}if(e){C=new xK(K?"image":"link");C._destination=g;C._title=a||"";for(g=p.node._next;g;)a=g._next,g.unlink(),C.appendChild(g),g=a;H.appendChild(C);IA7(d,p.previousDelimiter);d.brackets=d.brackets.previous;p.node.unlink();if(!K)for(p=d.brackets;p!==null;)p.image||(p.active=!1),p=p.previous}else d.brackets=d.brackets.previous,d.pos=C,H.appendChild(kZ("]"))}else H.appendChild(kZ("]")),d.brackets=d.brackets.previous;K=!0;break;case 60:(K=d.match(xc3))?(K=K.slice(1,K.length-1),p=new xK("link"),
p._destination=dcX("mailto:"+K),p._title="",p.appendChild(kZ(K)),H.appendChild(p),K=!0):(K=d.match(nM3))?(K=K.slice(1,K.length-1),p=new xK("link"),p._destination=dcX(K),p._title="",p.appendChild(kZ(K)),H.appendChild(p),K=!0):K=!1;K||(K=d.match(bMA),K===null?K=!1:(p=new xK("html_inline"),p._literal=K,H.appendChild(p),K=!0));break;case 38:(K=d.match(qQl))?(H.appendChild(kZ(EvC(K))),K=!0):K=!1;break;default:K=Xg7(d,H)}K||(d.pos+=1,H.appendChild(kZ(e0(c))));return!0};
xZ.prototype.parseInlines=function(d){this.subject=d._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;sdN(this,d););d._string_content=null;IA7(this,null)};
xZ.prototype.parse=xZ.prototype.parseInlines;var FeM=[/./,/^<(?:script|pre|style)(?:\s|>|$)/i,/^\x3c!--/,/^<[?]/,/^<![A-Z]/,/^<!\[CDATA\[/,/^<[/]?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[123456]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|title|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/i,RegExp("^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|</[A-Za-z][A-Za-z0-9-]*\\s*[>])\\s*$",
"i")],Z7S=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],T73=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Qdg=/^[#`~*+_=<>0-9-\|]|\|/,t87=/[^ \t\f\v\r\n]/,YQl=/^[*+-]/,O70=/^(\d{1,9})([.)])/,SQ6=/^#{1,6}(?:[ \t]+|$)/,EM6=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,yuN=/^(?:`{3,}|~{3,})(?= *$)/,b7U=/^(?:=+|-+)[ \t]*$/,N7g=/\r\n|\n|\r/,D5l=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,feL=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Dc0={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(d){return d!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(d,H){for(d=H._firstChild;d;){if(NvD(d)&&d._next){H._listData.tight=!1;break}for(var K=d._firstChild;K;){if(NvD(K)&&(d._next||K._next)){H._listData.tight=!1;break}K=K._next}d=d._next}},
canContain:function(d){return d==="item"},
acceptsLines:!1},block_quote:{continue:function(d){var H=d.currentLine;if(d.indented||eM(H,d.nextNonspace)!==62)return 1;CN(d);Rh(d,1,!1);lG(eM(H,d.offset))&&Rh(d,1,!0);return 0},
finalize:function(){},
canContain:function(d){return d!=="item"},
acceptsLines:!1},item:{continue:function(d,H){if(d.blank){if(H._firstChild==null)return 1;CN(d)}else if(d.indent>=H._listData.markerOffset+H._listData.padding)Rh(d,H._listData.markerOffset+H._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(d){return d!=="item"&&!A9i(d)},
acceptsLines:!1},heading:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},thematic_break:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},code_block:{continue:function(d,H){var K=d.currentLine,c=d.indent;if(H._isFenced){if((c=c<=3&&K.charAt(d.nextNonspace)===H._fenceChar&&K.slice(d.nextNonspace).match(yuN))&&c[0].length>=H._fenceLength)return d.finalize(H,d.lineNumber),2;for(H=H._fenceOffset;H>0&&lG(eM(K,d.offset));)Rh(d,1,!0),H--}else if(c>=4)Rh(d,4,!0);else if(d.blank)CN(d);else return 1;return 0},
finalize:function(d,H){if(H._isFenced){var K=H._string_content,c=K.indexOf("\n");d=K.slice(0,c);K=K.slice(c+1);H.info=vvN(d.trim());H._literal=K}else H._literal=H._string_content.replace(/(\n *)+$/,"\n");H._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(d,H){return!d.blank||H._htmlBlockType!==6&&H._htmlBlockType!==7?0:1},
finalize:function(d,H){H._literal=H._string_content.replace(/(\n *)+$/,"");H._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(d){return d.blank?1:0},
finalize:function(d,H){for(var K,c=!1;eM(H._string_content,0)===91&&(K=JuM(d.inlineParser,H._string_content,d.refmap));)H._string_content=H._string_content.slice(K),c=!0;c&&!t87.test(H._string_content)&&H.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(d){return kK(d.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(d){return d=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(d,H){if(!H._rowIsDelimiter){d=H._isHeader?"th":"td";for(var K=H._parent._tableColumns,c=H._string_content,p=0,g="",a,e=H._sourcepos[0][0];p<c.length;){switch(c[p]){case "|":a&&(a._string_content=g.trim(),g="",a=null,K--,K<=0&&(p=c.length));break;default:if(!a){a=new xK(d,[[e,p],[e,p]]);var k=H._parent._columnAlignment,C=H._parent._tableColumns-K;k&&C<=k.length&&C>=0&&(a._alignment=k[C]);H.appendChild(a)}g+=c[p];a._sourcepos[1][1]=p}p++}a&&(a._string_content=g.trim());H._string_content=
""}},
canContain:function(d){return d!=="row"},
acceptsLines:!1}},fAX=[function(d){if(d.indented||eM(d.currentLine,d.nextNonspace)!==62)return 0;CN(d);Rh(d,1,!1);lG(eM(d.currentLine,d.offset))&&Rh(d,1,!0);VX(d);d.addChild("block_quote",d.nextNonspace);return 1},
function(d){var H;if(!d.indented&&(H=d.currentLine.slice(d.nextNonspace).match(SQ6))){CN(d);Rh(d,H[0].length,!1);VX(d);var K=d.addChild("heading",d.nextNonspace);K.level=H[0].trim().length;K._string_content=d.currentLine.slice(d.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");Rh(d,d.currentLine.length-d.offset);return 2}return 0},
function(d){var H;if(!d.indented&&(H=d.currentLine.slice(d.nextNonspace).match(EM6))){var K=H[0].length;VX(d);var c=d.addChild("code_block",d.nextNonspace);c._isFenced=!0;c._fenceLength=K;c._fenceChar=H[0][0];c._fenceOffset=d.indent;CN(d);Rh(d,K,!1);return 2}return 0},
function(d,H){if(!d.indented&&eM(d.currentLine,d.nextNonspace)===60){var K=d.currentLine.slice(d.nextNonspace),c;for(c=1;c<=7;c++)if(FeM[c].test(K)&&(c<7||H.type!=="paragraph"))return VX(d),d.addChild("html_block",d.offset)._htmlBlockType=c,2}return 0},
function(d,H){var K;if(!d.indented&&H.type==="paragraph"&&(K=d.currentLine.slice(d.nextNonspace).match(b7U))){VX(d);var c=new xK("heading",H.sourcepos);c.level=K[0][0]==="="?1:2;c._string_content=H._string_content;pgC(H,c);H.unlink();d.tip=c;Rh(d,d.currentLine.length-d.offset,!1);return 2}return 0},
function(d){return!d.indented&&T73.test(d.currentLine.slice(d.nextNonspace))?(VX(d),d.addChild("thematic_break",d.nextNonspace),Rh(d,d.currentLine.length-d.offset,!1),2):0},
function(d,H){var K,c;if(!(c=d.indented&&H.type!=="list")){a:{var p=H,g=d.currentLine.slice(d.nextNonspace);c={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:d.indent};if(K=g.match(YQl))c.type="bullet",c.bulletChar=K[0][0];else{if(!(K=g.match(O70))||p.type==="paragraph"&&K[1]!=="1"){K=null;break a}c.type="ordered";c.start=parseInt(K[1],10);c.delimiter=K[2]}var a=eM(d.currentLine,d.nextNonspace+K[0].length);if(a!==-1&&a!==9&&a!==32||p.type==="paragraph"&&!d.currentLine.slice(d.nextNonspace+
K[0].length).match(t87))K=null;else{CN(d);Rh(d,K[0].length,!0);p=d.column;g=d.offset;do Rh(d,1,!0),a=eM(d.currentLine,d.offset);while(d.column-p<5&&lG(a));a=eM(d.currentLine,d.offset)===-1;var e=d.column-p;e>=5||e<1||a?(c.padding=K[0].length+1,d.column=p,d.offset=g,lG(eM(d.currentLine,d.offset))&&Rh(d,1,!0)):c.padding=K[0].length+e;K=c}}c=!K}if(c)return 0;VX(d);(c=d.tip.type!=="list")||(H=H._listData,c=!(H.type===K.type&&H.delimiter===K.delimiter&&H.bulletChar===K.bulletChar));c&&(H=d.addChild("list",
d.nextNonspace),H._listData=K);H=d.addChild("item",d.nextNonspace);H._listData=K;return 1},
function(d){var H;return((H=d.options.shouldParseIndentAsCodeBlock)!=null?H:1)&&d.indented&&d.tip.type!=="paragraph"&&!d.blank?(Rh(d,4,!0),VX(d),d.addChild("code_block",d.offset),2):0},
function(d,H){var K=kK(d.currentLine),c=kK(d.lookahead);if(K!==0&&c<0&&Math.abs(K)==Math.abs(c)&&!A9i(H.type)){VX(d);H=d.addChild("table",d.nextNonspace);H._tableRows=1;H._tableColumns=Math.abs(K);K=d.lookahead;if(feL.test(K)){c=[];for(var p=0,g=!1,a=0,e=void 0;p<K.length;){var k=a>=3;switch(K[p]){case "-":a++;break;case "|":g&&(c.push(e),e=void 0,a=0);g=!0;break;case ":":e||k||(e="left"),!e&&k&&(e="right"),e==="left"&&k&&(e="center")}p++}K=c}else K=void 0;H._columnAlignment=K;H=d.addChild("row",
d.nextNonspace);H._isHeader=!0;Rh(d,d.currentLine.length-d.offset,!1);H._string_content=d.currentLine;return 1}return 0},
function(d,H){if(H.type=="table"&&kK(d.currentLine)!==0){VX(d);var K=H;H=d.addChild("row",d.nextNonspace);kK(d.currentLine)<0?H._rowIsDelimiter=!0:K._tableRows+=1;Rh(d,d.currentLine.length-d.offset,!1);H._string_content=d.currentLine;return 2}return 0}],UDY=function(){var d={shouldParseIndentAsCodeBlock:!1};
d=d===void 0?{}:d;this.lastMatchedContainer=this.doc=jpC();this.refmap={};this.lastLineLength=0;this.inlineParser=new xZ(d);this.options=d;this.oldtip=this.tip=this.doc;this.lookahead=this.currentLine="";this.indent=this.nextNonspaceColumn=this.nextNonspace=this.column=this.offset=this.lineNumber=0;this.partiallyConsumedTab=this.blank=this.indented=!1;this.allClosed=!0;this.blocks=Dc0;this.blockStarts=fAX},Aug=function(d){d.partiallyConsumedTab&&(d.offset+=1,d.tip._string_content+=" ".repeat(4-d.column%
4));
d.tip._string_content+=d.currentLine.slice(d.offset)+"\n"};
UDY.prototype.addChild=function(d,H){for(;!this.blocks[this.tip.type].canContain(d);)this.finalize(this.tip,this.lineNumber-1);d=new xK(d,[[this.lineNumber,H+1],[0,0]]);d._string_content="";this.tip.appendChild(d);return this.tip=d};
var VX=function(d){if(!d.allClosed){for(;d.oldtip!==d.lastMatchedContainer;){var H=d.oldtip._parent;d.finalize(d.oldtip,d.lineNumber-1);d.oldtip=H}d.allClosed=!0}},Rh=function(d,H,K){for(var c=d.currentLine,p,g;H>0&&(g=c[d.offset]);)g==="\t"?(p=4-d.column%4,K?(d.partiallyConsumedTab=p>H,p=p>H?H:p,d.column+=p,d.offset+=d.partiallyConsumedTab?0:1,H-=p):(d.partiallyConsumedTab=!1,d.column+=p,d.offset+=1,--H)):(d.partiallyConsumedTab=!1,d.offset+=1,d.column+=1,--H)},CN=function(d){d.offset=d.nextNonspace;
d.column=d.nextNonspaceColumn;d.partiallyConsumedTab=!1},jdM=function(d){for(var H=d.currentLine,K=d.offset,c=d.column,p;(p=H.charAt(K))!=="";)if(p===" ")K++,c++;
else if(p==="\t")K++,c+=4-c%4;else break;d.blank=p==="\n"||p==="\r"||p==="";d.nextNonspace=K;d.nextNonspaceColumn=c;d.indent=d.nextNonspaceColumn-d.column;d.indented=d.indent>=4};
UDY.prototype.finalize=function(d,H){var K=d._parent;d._open=!1;d.sourcepos[1]=[H,this.lastLineLength];this.blocks[d.type].finalize(this,d);this.tip=K};
UDY.prototype.parse=function(d){this.tip=this.doc=jpC();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!d)return this.doc;this.options.time&&console.time("preparing input");var H=d.split(N7g),K=H.length;d.charCodeAt(d.length-1)===10&&--K;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(d=0;d<K;d++)a:{var c=void 0,p=H[d],g=H[d+1],a=!0,e=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;p.indexOf("\x00")!==-1&&(p=p.replace(/\0/g,"\ufffd"));this.currentLine=p;for(this.lookahead=g;(c=e._lastChild)&&c._open;){e=c;jdM(this);switch(this.blocks[e.type].continue(this,e)){case 0:break;case 1:a=!1;break;case 2:this.lastLineLength=p.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!a){e=e._parent;break}}this.allClosed=e===this.oldtip;this.lastMatchedContainer=
e;c=e.type!=="paragraph"&&Dc0[e.type].acceptsLines;g=this.blockStarts;for(a=g.length;!c;){jdM(this);if(!this.indented&&!Qdg.test(p.slice(this.nextNonspace))){CN(this);break}for(var k=0;k<a;){var C=g[k](this,e);if(C===1){e=this.tip;break}else if(C===2){e=this.tip;c=!0;break}else k++}if(k===a){CN(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){VX(this);this.blank&&e.lastChild&&(e.lastChild._lastLineBlank=!0);c=e.type;g=this.blank&&!(c==="block_quote"||c==="code_block"&&e._isFenced||
c==="item"&&!e._firstChild&&e.sourcepos[0][0]===this.lineNumber);for(a=e;a;)a._lastLineBlank=g,a=a._parent;this.blocks[c].acceptsLines?(Aug(this),c==="html_block"&&e._htmlBlockType>=1&&e._htmlBlockType<=5&&Z7S[e._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(e,this.lineNumber)):this.offset<p.length&&!this.blank&&(this.addChild("paragraph",this.offset),CN(this),Aug(this))}else Aug(this);this.lastLineLength=p.length}for(;this.tip;)this.finalize(this.tip,K);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");p=new cuM(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;K=p.next();)H=K.node,d=H.type,K.entering||d!=="paragraph"&&d!=="heading"&&d!=="th"&&d!="td"||this.inlineParser.parse(H);this.options.time&&console.timeEnd("inline parsing");return this.doc};vtE.prototype.render=function(d){d=new cuM(d);var H;this.buffer="";for(this.lastOut="\n";H=d.next();){var K=H.node.type;if(this[K])this[K](H.node,H.entering)}return this.buffer};
vtE.prototype.out=function(d){Uh(this,d)};
var Uh=function(d,H){d.buffer+=H;d.lastOut=H};
vtE.prototype.cr=function(){this.lastOut!=="\n"&&Uh(this,"\n")};var vMg=/^javascript:|vbscript:|file:|data:/i,dVg=/^data:image\/(?:png|gif|jpeg|webp)/i,HfM=function(d){return vMg.test(d)&&!dVg.test(d)};
nO.prototype=Object.create(vtE.prototype);_.G=nO.prototype;_.G.text=function(d){this.out(d.literal)};
_.G.html_inline=function(d){this.options.safe?Uh(this,"\x3c!-- raw HTML omitted --\x3e"):Uh(this,d.literal)};
_.G.html_block=function(d){this.cr();this.options.safe?Uh(this,"\x3c!-- raw HTML omitted --\x3e"):Uh(this,d.literal);this.cr()};
_.G.softbreak=function(){Uh(this,this.options.softbreak)};
_.G.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.G.link=function(d,H){var K=this.attrs(d);H?(this.options.safe&&HfM(d.destination)||K.push(["href",lh(d.destination,!0)]),d.title&&K.push(["title",lh(d.title,!0)]),this.tag("a",K)):this.tag("/a")};
_.G.image=function(d,H){H?(this.disableTags===0&&(this.options.safe&&HfM(d.destination)?Uh(this,'<img src="" alt="'):Uh(this,'<img src="'+lh(d.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(d.title&&Uh(this,'" title="'+lh(d.title,!0)),Uh(this,'" />')))};
_.G.emph=function(d,H){this.tag(H?"em":"/em")};
_.G.strong=function(d,H){this.tag(H?"strong":"/strong")};
_.G.paragraph=function(d,H){var K=d.parent.parent;d=this.attrs(d);K!==null&&K.type==="list"&&K.listTight||(H?(this.cr(),this.tag("p",d)):(this.tag("/p"),this.cr()))};
_.G.heading=function(d,H){var K="h"+d.level;d=this.attrs(d);H?(this.cr(),this.tag(K,d)):(this.tag("/"+K),this.cr())};
_.G.code=function(d){this.tag("code");this.out(d.literal);this.tag("/code")};
_.G.code_block=function(d){var H=d.info?d.info.split(/\s+/):[],K=this.attrs(d);H.length>0&&H[0].length>0&&K.push(["class","language-"+lh(H[0],!0)]);this.cr();this.tag("pre");this.tag("code",K);this.out(d.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.G.thematic_break=function(d){d=this.attrs(d);this.cr();this.tag("hr",d,!0);this.cr()};
_.G.block_quote=function(d,H){d=this.attrs(d);H?(this.cr(),this.tag("blockquote",d)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.G.list=function(d,H){var K=d.listType==="bullet"?"ul":"ol",c=this.attrs(d);H?(d=d.listStart,d!==null&&d!==1&&c.push(["start",d.toString()]),this.cr(),this.tag(K,c)):(this.cr(),this.tag("/"+K));this.cr()};
_.G.item=function(d,H){d=this.attrs(d);H?this.tag("li",d):(this.tag("/li"),this.cr())};
_.G.custom_inline=function(d,H){H&&d.onEnter?Uh(this,d.onEnter):!H&&d.onExit&&Uh(this,d.onExit)};
_.G.custom_block=function(d,H){this.cr();H&&d.onEnter?Uh(this,d.onEnter):!H&&d.onExit&&Uh(this,d.onExit);this.cr()};
_.G.table=function(d,H){d=this.attrs(d);H?(this.cr(),this.tag("table",d)):(this.tag("/table"),this.cr())};
_.G.row=function(d,H){d._rowIsDelimiter||(d=this.attrs(d),H?this.tag("tr",d):this.tag("/tr"))};
_.G.td=function(d,H){var K=this.attrs(d);d._alignment&&K.push(["align",d._alignment]);H?this.tag("td",K):this.tag("/td")};
_.G.th=function(d,H){var K=this.attrs(d);d._alignment&&K.push(["align",d._alignment]);H?this.tag("th",K):this.tag("/th")};
_.G.out=function(d){Uh(this,lh(d,!1))};
_.G.tag=function(d,H,K){if(!(this.disableTags>0)){this.buffer+="<"+d;if(H&&H.length>0){d=0;for(var c;(c=H[d])!==void 0;)this.buffer+=" "+c[0]+'="'+c[1]+'"',d++}K&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.G.attrs=function(d){var H=[];this.options.sourcepos&&(d=d.sourcepos)&&H.push(["data-sourcepos",String(d[0][0])+":"+String(d[0][1])+"-"+String(d[1][0])+":"+String(d[1][1])]);return H};
nO.prototype.text=nO.prototype.text;nO.prototype.html_inline=nO.prototype.html_inline;nO.prototype.html_block=nO.prototype.html_block;nO.prototype.softbreak=nO.prototype.softbreak;nO.prototype.linebreak=nO.prototype.linebreak;nO.prototype.link=nO.prototype.link;nO.prototype.image=nO.prototype.image;nO.prototype.emph=nO.prototype.emph;nO.prototype.strong=nO.prototype.strong;nO.prototype.paragraph=nO.prototype.paragraph;nO.prototype.heading=nO.prototype.heading;nO.prototype.code=nO.prototype.code;
nO.prototype.code_block=nO.prototype.code_block;nO.prototype.thematic_break=nO.prototype.thematic_break;nO.prototype.block_quote=nO.prototype.block_quote;nO.prototype.list=nO.prototype.list;nO.prototype.item=nO.prototype.item;nO.prototype.custom_inline=nO.prototype.custom_inline;nO.prototype.custom_block=nO.prototype.custom_block;nO.prototype.table=nO.prototype.table;nO.prototype.row=nO.prototype.row;nO.prototype.td=nO.prototype.td;nO.prototype.th=nO.prototype.th;nO.prototype.out=nO.prototype.out;
nO.prototype.tag=nO.prototype.tag;nO.prototype.attrs=nO.prototype.attrs;/*

Copyright 2010-2017 Mike Bostock
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

 Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

 Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

 Neither the name of the author nor the names of contributors may be used to
  endorse or promote products derived from this software without specific prior
  written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
var $V6,KRC,r65;(function(){function d(X,z){return X<z?-1:X>z?1:X>=z?0:NaN}
function H(X){return function(z,Q){return d(X(z),Q)}}
function K(){for(var X=0,z=arguments.length,Q={},HF;X<z;++X){if(!(HF=arguments[X]+"")||HF in Q)throw Error("pe`"+HF);Q[HF]=[]}return new c(Q)}
function c(X){this._=X}
function p(X,z){return X.trim().split(/^|\s+/).map(function(Q){var HF="",GL=Q.indexOf(".");GL>=0&&(HF=Q.slice(GL+1),Q=Q.slice(0,GL));if(Q&&!z.hasOwnProperty(Q))throw Error("qe`"+Q);return{type:Q,name:HF}})}
function g(X,z,Q){for(var HF=0,GL=X.length;HF<GL;++HF)if(X[HF].name===z){X[HF]=mAb;X=X.slice(0,HF).concat(X.slice(HF+1));break}Q!=null&&X.push({name:z,value:Q});return X}
function a(X){var z=X,Q=z.indexOf(":");Q>=0&&(z=X.slice(0,Q))!=="xmlns"&&(X=X.slice(Q+1));return w5.hasOwnProperty(z)?{space:w5[z],local:X}:X}
function e(X){return function(){var z=this.ownerDocument,Q=this.namespaceURI;return Q==="http://www.w3.org/1999/xhtml"&&z.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?z.createElement(X):z.createElementNS(Q,X)}}
function k(X){return function(){return this.ownerDocument.createElementNS(X.space,X.local)}}
function C(X){X=a(X);return(X.local?k:e)(X)}
function R(){}
function V(X){return X==null?R:function(){return this.querySelector(X)}}
function U(X){return Array(X.length)}
function L(X,z){this.ownerDocument=X.ownerDocument;this.namespaceURI=X.namespaceURI;this._next=null;this._parent=X;this.__data__=z}
function w(X){return function(){return X}}
function W(X,z,Q,HF,GL,CF){for(var mi=0,zL,$d=z.length,AC=CF.length;mi<AC;++mi)(zL=z[mi])?(zL.__data__=CF[mi],HF[mi]=zL):Q[mi]=new L(X,CF[mi]);for(;mi<$d;++mi)if(zL=z[mi])GL[mi]=zL}
function J(X,z,Q,HF,GL,CF,mi){var zL,$d,AC={},KX=z.length,xd=CF.length,D0=Array(KX),Pv;for(zL=0;zL<KX;++zL)if($d=z[zL])D0[zL]=Pv="$"+mi.call($d,$d.__data__,zL,z),Pv in AC?GL[zL]=$d:AC[Pv]=$d;for(zL=0;zL<xd;++zL)Pv="$"+mi.call(X,CF[zL],zL,CF),($d=AC[Pv])?(HF[zL]=$d,$d.__data__=CF[zL],AC[Pv]=null):Q[zL]=new L(X,CF[zL]);for(zL=0;zL<KX;++zL)($d=z[zL])&&AC[D0[zL]]===$d&&(GL[zL]=$d)}
function F(X,z){return X<z?-1:X>z?1:X>=z?0:NaN}
function Y(X){return function(){this.removeAttribute(X)}}
function A(X){return function(){this.removeAttributeNS(X.space,X.local)}}
function E(X,z){return function(){this.setAttribute(X,z)}}
function N(X,z){return function(){this.setAttributeNS(X.space,X.local,z)}}
function y(X,z){return function(){var Q=z.apply(this,arguments);Q==null?this.removeAttribute(X):this.setAttribute(X,Q)}}
function v(X,z){return function(){var Q=z.apply(this,arguments);Q==null?this.removeAttributeNS(X.space,X.local):this.setAttributeNS(X.space,X.local,Q)}}
function el(X){return function(){this.style.removeProperty(X)}}
function l1(X,z,Q){return function(){this.style.setProperty(X,z,Q)}}
function V4(X,z,Q){return function(){var HF=z.apply(this,arguments);HF==null?this.style.removeProperty(X):this.style.setProperty(X,HF,Q)}}
function Mf(X,z){return X.style.getPropertyValue(z)||(X.ownerDocument&&X.ownerDocument.defaultView||X.document&&X||X.defaultView).getComputedStyle(X,null).getPropertyValue(z)}
function LF(X){return function(){delete this[X]}}
function YY(X,z){return function(){this[X]=z}}
function FM(X,z){return function(){var Q=z.apply(this,arguments);Q==null?delete this[X]:this[X]=Q}}
function gA(){this.textContent=""}
function JN(X){return function(){this.textContent=X}}
function eS(X){return function(){var z=X.apply(this,arguments);this.textContent=z==null?"":z}}
function vF(){this.innerHTML=""}
function CX(X){return function(){this.innerHTML=X}}
function kd(X){return function(){var z=X.apply(this,arguments);this.innerHTML=z==null?"":z}}
function BB(){return null}
function ug(){var X=this.parentNode;X&&X.removeChild(this)}
function fX(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function pF(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function dA(X,z,Q){X=U3(X,z,Q);return function(HF){var GL=HF.relatedTarget;GL&&(GL===this||GL.compareDocumentPosition(this)&8)||X.call(this,HF)}}
function U3(X,z,Q){return function(){X.call(this,this.__data__,z,Q)}}
function lg(X){return X.trim().split(/^|\s+/).map(function(z){var Q="",HF=z.indexOf(".");HF>=0&&(Q=z.slice(HF+1),z=z.slice(0,HF));return{type:z,name:Q}})}
function hN(X){return function(){var z=this.__on;if(z){for(var Q=0,HF=-1,GL=z.length,CF;Q<GL;++Q)(CF=z[Q],X.type&&CF.type!==X.type||CF.name!==X.name)?z[++HF]=CF:this.removeEventListener(CF.type,CF.listener,CF.capture);++HF?z.length=HF:delete this.__on}}}
function Hv(X,z,Q){var HF=XxX.hasOwnProperty(X.type)?dA:U3;return function(GL,CF,mi){GL=this.__on;var zL;CF=HF(z,CF,mi);if(GL){mi=0;for(var $d=GL.length;mi<$d;++mi)if((zL=GL[mi]).type===X.type&&zL.name===X.name){this.removeEventListener(zL.type,zL.listener,zL.capture);this.addEventListener(zL.type,zL.listener=CF,zL.capture=Q);zL.value=z;return}}this.addEventListener(X.type,CF,Q);zL={type:X.type,name:X.name,value:z,listener:CF,capture:Q};GL?GL.push(zL):this.__on=[zL]}}
function $s(X,z,Q){var HF=X.ownerDocument&&X.ownerDocument.defaultView||X.document&&X||X.defaultView,GL=HF.CustomEvent;typeof GL==="function"?GL=new GL(z,Q):(GL=HF.document.createEvent("Event"),Q?(GL.initEvent(z,Q.bubbles,Q.cancelable),GL.detail=Q.detail):GL.initEvent(z,!1,!1));X.dispatchEvent(GL)}
function dq(X,z){return function(){return $s(this,X,z)}}
function oC(X,z){return function(){return $s(this,X,z.apply(this,arguments))}}
function NU(X,z){this._groups=X;this._parents=z}
function RZ(){return new NU([[document.documentElement]],wZZ)}
function uM(){this._="@"+(++Ph1).toString(36)}
function IC(X,z,Q){X.prototype=z.prototype=Q;Q.constructor=X}
function Lt(X,z){X=Object.create(X.prototype);for(var Q in z)X[Q]=z[Q];return X}
function qj(){}
function nt(X){var z;X=(X+"").trim().toLowerCase();return(z=usb.exec(X))?(z=parseInt(z[1],16),new EU(z>>8&15|z>>4&240,z>>4&15|z&240,(z&15)<<4|z&15,1)):(z=IvO.exec(X))?uk(parseInt(z[1],16)):(z=rQT.exec(X))?new EU(z[1],z[2],z[3],1):(z=Wmb.exec(X))?new EU(z[1]*255/100,z[2]*255/100,z[3]*255/100,1):(z=Biq.exec(X))?L5(z[1],z[2],z[3],z[4]):(z=zeg.exec(X))?L5(z[1]*255/100,z[2]*255/100,z[3]*255/100,z[4]):(z=XZg.exec(X))?p6(z[1],z[2]/100,z[3]/100,1):(z=JQ5.exec(X))?p6(z[1],z[2]/100,z[3]/100,z[4]):JJ0.hasOwnProperty(X)?
uk(JJ0[X]):X==="transparent"?new EU(NaN,NaN,NaN,0):null}
function uk(X){return new EU(X>>16&255,X>>8&255,X&255,1)}
function L5(X,z,Q,HF){HF<=0&&(X=z=Q=NaN);return new EU(X,z,Q,HF)}
function Yd(X){X instanceof qj||(X=nt(X));if(!X)return new EU;X=X.rgb();return new EU(X.r,X.g,X.b,X.opacity)}
function FO(X,z,Q,HF){return arguments.length===1?Yd(X):new EU(X,z,Q,HF==null?1:HF)}
function EU(X,z,Q,HF){this.r=+X;this.g=+z;this.b=+Q;this.opacity=+HF}
function mr(X){X=Math.max(0,Math.min(255,Math.round(X)||0));return(X<16?"0":"")+X.toString(16)}
function p6(X,z,Q,HF){HF<=0?X=z=Q=NaN:Q<=0||Q>=1?X=z=NaN:z<=0&&(X=NaN);return new Xq(X,z,Q,HF)}
function Lz(X){if(X instanceof Xq)return new Xq(X.h,X.s,X.l,X.opacity);X instanceof qj||(X=nt(X));if(!X)return new Xq;if(X instanceof Xq)return X;X=X.rgb();var z=X.r/255,Q=X.g/255,HF=X.b/255,GL=Math.min(z,Q,HF),CF=Math.max(z,Q,HF),mi=NaN,zL=CF-GL,$d=(CF+GL)/2;zL?(mi=z===CF?(Q-HF)/zL+(Q<HF)*6:Q===CF?(HF-z)/zL+2:(z-Q)/zL+4,zL/=$d<.5?CF+GL:2-CF-GL,mi*=60):zL=$d>0&&$d<1?0:mi;return new Xq(mi,zL,$d,X.opacity)}
function p4(X,z,Q,HF){return arguments.length===1?Lz(X):new Xq(X,z,Q,HF==null?1:HF)}
function Xq(X,z,Q,HF){this.h=+X;this.s=+z;this.l=+Q;this.opacity=+HF}
function ds(X,z,Q){return(X<60?z+(Q-z)*X/60:X<180?Q:X<240?z+(Q-z)*(240-X)/60:z)*255}
function Fi(X){if(X instanceof u1)return new u1(X.l,X.a,X.b,X.opacity);if(X instanceof MU){if(isNaN(X.h))return new u1(X.l,0,0,X.opacity);var z=X.h*sS3;return new u1(X.l,Math.cos(z)*X.c,Math.sin(z)*X.c,X.opacity)}X instanceof EU||(X=Yd(X));var Q=eT(X.r),HF=eT(X.g),GL=eT(X.b);z=ZD(.2225045*Q+.7168786*HF+.0606169*GL);if(Q===HF&&HF===GL)var CF=Q=z;else CF=ZD((.4360747*Q+.3850649*HF+.1430804*GL)/.96422),Q=ZD((.0139322*Q+.0971045*HF+.7141733*GL)/.82521);return new u1(116*z-16,500*(CF-z),200*(z-Q),X.opacity)}
function u1(X,z,Q,HF){this.l=+X;this.a=+z;this.b=+Q;this.opacity=+HF}
function ZD(X){return X>shv?Math.pow(X,1/3):X/F2B+ZUA}
function E5(X){return X>fr?X*X*X:F2B*(X-ZUA)}
function RC(X){return 255*(X<=.0031308?12.92*X:1.055*Math.pow(X,1/2.4)-.055)}
function eT(X){return(X/=255)<=.04045?X/12.92:Math.pow((X+.055)/1.055,2.4)}
function We(X){if(X instanceof MU)return new MU(X.h,X.c,X.l,X.opacity);X instanceof u1||(X=Fi(X));if(X.a===0&&X.b===0)return new MU(NaN,0,X.l,X.opacity);var z=Math.atan2(X.b,X.a)*TI7;return new MU(z<0?z+360:z,Math.sqrt(X.a*X.a+X.b*X.b),X.l,X.opacity)}
function wq(X,z,Q,HF){return arguments.length===1?We(X):new MU(X,z,Q,HF==null?1:HF)}
function MU(X,z,Q,HF){this.h=+X;this.c=+z;this.l=+Q;this.opacity=+HF}
function LX(X,z,Q,HF){if(arguments.length===1){var GL=X;if(GL instanceof XO)GL=new XO(GL.h,GL.s,GL.l,GL.opacity);else{GL instanceof EU||(GL=Yd(GL));var CF=GL.g/255,mi=GL.b/255,zL=(QSM*mi+GL.r/255*-1.7884503806-3.5172982438*CF)/(QSM+-1.7884503806-3.5172982438);mi-=zL;var $d=(1.97294*(CF-zL)- -.29227*mi)/-.90649;mi=(CF=Math.sqrt($d*$d+mi*mi)/(1.97294*zL*(1-zL)))?Math.atan2($d,mi)*TI7-120:NaN;GL=new XO(mi<0?mi+360:mi,CF,zL,GL.opacity)}}else GL=new XO(X,z,Q,HF==null?1:HF);return GL}
function XO(X,z,Q,HF){this.h=+X;this.s=+z;this.l=+Q;this.opacity=+HF}
function kO(X,z,Q,HF,GL){var CF=X*X,mi=CF*X;return((1-3*X+3*CF-mi)*z+(4-6*CF+3*mi)*Q+(1+3*X+3*CF-3*mi)*HF+mi*GL)/6}
function nX(X){return function(){return X}}
function hA(X,z){return function(Q){return X+Q*z}}
function VM(X,z,Q){return X=Math.pow(X,Q),z=Math.pow(z,Q)-X,Q=1/Q,function(HF){return Math.pow(X+HF*z,Q)}}
function Zw(X,z){var Q=z-X;return Q?hA(X,Q>180||Q<-180?Q-360*Math.round(Q/360):Q):nX(isNaN(X)?z:X)}
function Jt(X){return(X=+X)===1?Zz:function(z,Q){return Q-z?VM(z,Q,X):nX(isNaN(z)?Q:z)}}
function Zz(X,z){var Q=z-X;return Q?hA(X,Q):nX(isNaN(X)?z:X)}
function Qp(X){return function(z){var Q=z.length,HF=Array(Q),GL=Array(Q),CF=Array(Q),mi;for(mi=0;mi<Q;++mi){var zL=FO(z[mi]);HF[mi]=zL.r||0;GL[mi]=zL.g||0;CF[mi]=zL.b||0}HF=X(HF);GL=X(GL);CF=X(CF);zL.opacity=1;return function($d){zL.r=HF($d);zL.g=GL($d);zL.b=CF($d);return zL+""}}}
function LB(X,z){return X=+X,z-=X,function(Q){return X+z*Q}}
function ao(X){return function(){return X}}
function D9(X){return function(z){return X(z)+""}}
function Nf(X,z){var Q=ffl.lastIndex=A$f.lastIndex=0,HF,GL,CF,mi=-1,zL=[],$d=[];X+="";for(z+="";(HF=ffl.exec(X))&&(GL=A$f.exec(z));)(CF=GL.index)>Q&&(CF=z.slice(Q,CF),zL[mi]?zL[mi]+=CF:zL[++mi]=CF),(HF=HF[0])===(GL=GL[0])?zL[mi]?zL[mi]+=GL:zL[++mi]=GL:(zL[++mi]=null,$d.push({i:mi,x:LB(HF,GL)})),Q=A$f.lastIndex;Q<z.length&&(CF=z.slice(Q),zL[mi]?zL[mi]+=CF:zL[++mi]=CF);return zL.length<2?$d[0]?D9($d[0].x):ao(z):(z=$d.length,function(AC){for(var KX=0,xd;KX<z;++KX)zL[(xd=$d[KX]).i]=xd.x(AC);return zL.join("")})}
function V1(X,z,Q,HF,GL,CF){var mi,zL,$d;if(mi=Math.sqrt(X*X+z*z))X/=mi,z/=mi;if($d=X*Q+z*HF)Q-=X*$d,HF-=z*$d;if(zL=Math.sqrt(Q*Q+HF*HF))Q/=zL,HF/=zL,$d/=zL;X*HF<z*Q&&(X=-X,z=-z,$d=-$d,mi=-mi);return{translateX:GL,translateY:CF,rotate:Math.atan2(z,X)*tcN,skewX:Math.atan($d)*tcN,scaleX:mi,scaleY:zL}}
function sU(X,z,Q,HF){function GL(AC){return AC.length?AC.pop()+" ":""}
function CF(AC,KX,xd,D0,Pv,RK){AC!==xd||KX!==D0?(Pv=Pv.push("translate(",null,z,null,Q),RK.push({i:Pv-4,x:LB(AC,xd)},{i:Pv-2,x:LB(KX,D0)})):(xd||D0)&&Pv.push("translate("+xd+z+D0+Q)}
function mi(AC,KX,xd,D0){AC!==KX?(AC-KX>180?KX+=360:KX-AC>180&&(AC+=360),D0.push({i:xd.push(GL(xd)+"rotate(",null,HF)-2,x:LB(AC,KX)})):KX&&xd.push(GL(xd)+"rotate("+KX+HF)}
function zL(AC,KX,xd,D0){AC!==KX?D0.push({i:xd.push(GL(xd)+"skewX(",null,HF)-2,x:LB(AC,KX)}):KX&&xd.push(GL(xd)+"skewX("+KX+HF)}
function $d(AC,KX,xd,D0,Pv,RK){AC!==xd||KX!==D0?(Pv=Pv.push(GL(Pv)+"scale(",null,",",null,")"),RK.push({i:Pv-4,x:LB(AC,xd)},{i:Pv-2,x:LB(KX,D0)})):xd===1&&D0===1||Pv.push(GL(Pv)+"scale("+xd+","+D0+")")}
return function(AC,KX){var xd=[],D0=[];AC=X(AC);KX=X(KX);CF(AC.translateX,AC.translateY,KX.translateX,KX.translateY,xd,D0);mi(AC.rotate,KX.rotate,xd,D0);zL(AC.skewX,KX.skewX,xd,D0);$d(AC.scaleX,AC.scaleY,KX.scaleX,KX.scaleY,xd,D0);AC=KX=null;return function(Pv){for(var RK=-1,QE=D0.length,Mj;++RK<QE;)xd[(Mj=D0[RK]).i]=Mj.x(Pv);return xd.join("")}}}
function ig(X){return function(z,Q){var HF=X((z=p4(z)).h,(Q=p4(Q)).h),GL=Zz(z.s,Q.s),CF=Zz(z.l,Q.l),mi=Zz(z.opacity,Q.opacity);return function(zL){z.h=HF(zL);z.s=GL(zL);z.l=CF(zL);z.opacity=mi(zL);return z+""}}}
function or(X){return function(z,Q){var HF=X((z=wq(z)).h,(Q=wq(Q)).h),GL=Zz(z.c,Q.c),CF=Zz(z.l,Q.l),mi=Zz(z.opacity,Q.opacity);return function(zL){z.h=HF(zL);z.c=GL(zL);z.l=CF(zL);z.opacity=mi(zL);return z+""}}}
function Su(X){return function HF(Q){function GL(CF,mi){var zL=X((CF=LX(CF)).h,(mi=LX(mi)).h),$d=Zz(CF.s,mi.s),AC=Zz(CF.l,mi.l),KX=Zz(CF.opacity,mi.opacity);return function(xd){CF.h=zL(xd);CF.s=$d(xd);CF.l=AC(Math.pow(xd,Q));CF.opacity=KX(xd);return CF+""}}
Q=+Q;GL.gamma=HF;return GL}(1)}
function XB(){return IM||(YTS(tR),IM=ez.now()+kJf)}
function tR(){IM=0}
function RD(){this._call=this._time=this._next=null}
function oi(X,z,Q){var HF=new RD;HF.restart(X,z,Q);return HF}
function qD(){IM=(xQ5=ez.now())+kJf;Ap=kI=0;try{XB();++Ap;for(var X=npY,z;X;)(z=IM-X._time)>=0&&X._call.call(null,z),X=X._next;--Ap}finally{Ap=0;X=npY;for(var Q=Infinity;X;)if(X._call){Q>X._time&&(Q=X._time);var HF=X;X=X._next}else z=X._next,X._next=null,X=HF?HF._next=z:npY=z;xI=HF;ai(Q);IM=0}}
function ZVC(){var X=ez.now(),z=X-xQ5;z>1E3&&(kJf-=z,xQ5=X)}
function ai(X){Ap||(kI&&(kI=clearTimeout(kI)),X-IM>24?(X<Infinity&&(kI=setTimeout(qD,X-ez.now()-kJf)),n3&&(n3=clearInterval(n3))):(n3||(xQ5=ez.now(),n3=setInterval(ZVC,1E3)),Ap=1,YTS(qD)))}
function OU7(X,z,Q){var HF=new RD;z=z==null?0:+z;HF.restart(function(GL){HF.stop();X(GL+z)},z,Q);
return HF}
function jkM(X,z,Q,HF,GL,CF){var mi=X.__transition;if(!mi)X.__transition={};else if(Q in mi)return;Fmb(X,Q,{name:z,index:HF,group:GL,on:ZNT,tween:Ti0,time:CF.time,delay:CF.delay,duration:CF.duration,ease:CF.ease,timer:null,state:0})}
function vCi(X,z){X=aY(X,z);if(X.state>0)throw Error("re");return X}
function rw(X,z){X=aY(X,z);if(X.state>2)throw Error("se");return X}
function aY(X,z){X=X.__transition;if(!X||!(X=X[z]))throw Error("te");return X}
function Fmb(X,z,Q){function HF($d){var AC,KX;if(Q.state!==1)return CF();for(D0 in mi){var xd=mi[D0];if(xd.name===Q.name){if(xd.state===3)return OU7(HF);xd.state===4?(xd.state=6,xd.timer.stop(),xd.on.call("interrupt",X,X.__data__,xd.index,xd.group),delete mi[D0]):+D0<z&&(xd.state=6,xd.timer.stop(),delete mi[D0])}}OU7(function(){Q.state===3&&(Q.state=4,Q.timer.restart(GL,Q.delay,Q.time),GL($d))});
Q.state=2;Q.on.call("start",X,X.__data__,Q.index,Q.group);if(Q.state===2){Q.state=3;zL=Array(KX=Q.tween.length);var D0=0;for(AC=-1;D0<KX;++D0)if(xd=Q.tween[D0].value.call(X,X.__data__,Q.index,Q.group))zL[++AC]=xd;zL.length=AC+1}}
function GL($d){$d=$d<Q.duration?Q.ease.call(null,$d/Q.duration):(Q.timer.restart(CF),Q.state=5,1);for(var AC=-1,KX=zL.length;++AC<KX;)zL[AC].call(null,$d);Q.state===5&&(Q.on.call("end",X,X.__data__,Q.index,Q.group),CF())}
function CF(){Q.state=6;Q.timer.stop();delete mi[z];for(var $d in mi)return;delete X.__transition}
var mi=X.__transition,zL;mi[z]=Q;Q.timer=oi(function($d){Q.state=1;Q.timer.restart(HF,Q.delay,Q.time);Q.delay<=$d&&HF($d-Q.delay)},0,Q.time)}
function QhU(X,z){var Q,HF;return function(){var GL=rw(this,X),CF=GL.tween;if(CF!==Q){HF=Q=CF;CF=0;for(var mi=HF.length;CF<mi;++CF)if(HF[CF].name===z){HF=HF.slice();HF.splice(CF,1);break}}GL.tween=HF}}
function t0b(X,z,Q){var HF,GL;if(typeof Q!=="function")throw Error();return function(){var CF=rw(this,X),mi=CF.tween;if(mi!==HF){GL=(HF=mi).slice();mi={name:z,value:Q};for(var zL=0,$d=GL.length;zL<$d;++zL)if(GL[zL].name===z){GL[zL]=mi;break}zL===$d&&GL.push(mi)}CF.tween=GL}}
function dZD(X,z,Q){var HF=X._id;X.each(function(){var GL=rw(this,HF);(GL.value||(GL.value={}))[z]=Q.apply(this,arguments)});
return function(GL){return aY(GL,HF).value[z]}}
function STA(X,z){var Q;return(typeof z==="number"?LB:z instanceof nt?ERg:(Q=nt(z))?(z=Q,ERg):Nf)(X,z)}
function YhS(X){return function(){this.removeAttribute(X)}}
function ONT(X){return function(){this.removeAttributeNS(X.space,X.local)}}
function ShT(X,z,Q){var HF,GL;return function(){var CF=this.getAttribute(X);return CF===Q?null:CF===HF?GL:GL=z(HF=CF,Q)}}
function EZ1(X,z,Q){var HF,GL;return function(){var CF=this.getAttributeNS(X.space,X.local);return CF===Q?null:CF===HF?GL:GL=z(HF=CF,Q)}}
function yQ5(X,z,Q){var HF,GL,CF;return function(){var mi=Q(this);if(mi==null)return void this.removeAttribute(X);var zL=this.getAttribute(X);return zL===mi?null:zL===HF&&mi===GL?CF:CF=z(HF=zL,GL=mi)}}
function bNT(X,z,Q){var HF,GL,CF;return function(){var mi=Q(this);if(mi==null)return void this.removeAttributeNS(X.space,X.local);var zL=this.getAttributeNS(X.space,X.local);return zL===mi?null:zL===HF&&mi===GL?CF:CF=z(HF=zL,GL=mi)}}
function Nib(X,z){function Q(){var HF=this,GL=z.apply(HF,arguments);return GL&&function(CF){HF.setAttributeNS(X.space,X.local,GL(CF))}}
Q._value=z;return Q}
function DA5(X,z){function Q(){var HF=this,GL=z.apply(HF,arguments);return GL&&function(CF){HF.setAttribute(X,GL(CF))}}
Q._value=z;return Q}
function fvZ(X,z){return function(){vCi(this,X).delay=+z.apply(this,arguments)}}
function AQZ(X,z){return z=+z,function(){vCi(this,X).delay=z}}
function jhj(X,z){return function(){rw(this,X).duration=+z.apply(this,arguments)}}
function vZj(X,z){return z=+z,function(){rw(this,X).duration=z}}
function dqt(X,z){if(typeof z!=="function")throw Error();return function(){rw(this,X).ease=z}}
function Hag(X){return(X+"").trim().split(/^|\s+/).every(function(z){var Q=z.indexOf(".");Q>=0&&(z=z.slice(0,Q));return!z||z==="start"})}
function $qT(X,z,Q){var HF,GL,CF=Hag(z)?vCi:rw;return function(){var mi=CF(this,X),zL=mi.on;if(zL!==HF)(GL=(HF=zL).copy()).on(z,Q);mi.on=GL}}
function K_0(X){return function(){var z=this.parentNode,Q;for(Q in this.__transition)if(+Q!==X)return;z&&z.removeChild(this)}}
function csq(X,z){var Q,HF,GL;return function(){var CF=Mf(this,X),mi=(this.style.removeProperty(X),Mf(this,X));return CF===mi?null:CF===Q&&mi===HF?GL:GL=z(Q=CF,HF=mi)}}
function p4Z(X){return function(){this.style.removeProperty(X)}}
function g41(X,z,Q){var HF,GL;return function(){var CF=Mf(this,X);return CF===Q?null:CF===HF?GL:GL=z(HF=CF,Q)}}
function iaq(X,z,Q){var HF,GL,CF;return function(){var mi=Mf(this,X),zL=Q(this);zL==null&&(zL=(this.style.removeProperty(X),Mf(this,X)));return mi===zL?null:mi===HF&&zL===GL?CF:CF=z(HF=mi,GL=zL)}}
function GzO(X,z,Q){function HF(){var GL=this,CF=z.apply(GL,arguments);return CF&&function(mi){GL.style.setProperty(X,CF(mi),Q)}}
HF._value=z;return HF}
function o4b(X){return function(){this.textContent=X}}
function qVv(X){return function(){var z=X(this);this.textContent=z==null?"":z}}
function JT(X,z,Q,HF){this._groups=X;this._parents=z;this._name=Q;this._id=HF}
function Hd1(X){return{type:X}}
function $ZX(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function CT5(){}
function yJg(X,z){var Q=new CT5;if(X instanceof CT5)X.each(function(mi,zL){Q.set(zL,mi)});
else if(Array.isArray(X)){var HF=-1,GL=X.length,CF;if(z==null)for(;++HF<GL;)Q.set(HF,X[HF]);else for(;++HF<GL;)Q.set(z(CF=X[HF],HF,X),CF)}else if(X)for(HF in X)Q.set(HF,X[HF]);return Q}
function RdL(){}
function bUS(X){return function(z){for(var Q={},HF=0;HF<X.length;HF++)Q[X[HF]]=z[HF]||"";return Q}}
function ag0(X,z){var Q=bUS(X);return function(HF,GL){return z(Q(HF),GL,X)}}
function lgG(X){var z=Object.create(null),Q=[];X.forEach(function(HF){for(var GL in HF)GL in z||Q.push(z[GL]=GL)});
return Q}
function NIl(X){function z(mi,zL){function $d(){if(RK)return Ku4;if(QE)return QE=!1,DwS;var OD,TO=xd,GR;if(mi.charCodeAt(TO)===34){for(;xd++<KX&&mi.charCodeAt(xd)!==34||mi.charCodeAt(++xd)===34;);(OD=xd)>=KX?RK=!0:(GR=mi.charCodeAt(xd++))===10?QE=!0:GR===13&&(QE=!0,mi.charCodeAt(xd)===10&&++xd);return mi.slice(TO+1,OD-1).replace(/""/g,'"')}for(;xd<KX;){if((GR=mi.charCodeAt(OD=xd++))===10)QE=!0;else if(GR===13)QE=!0,mi.charCodeAt(xd)===10&&++xd;else if(GR!==CF)continue;return mi.slice(TO,OD)}return RK=
!0,mi.slice(TO,KX)}
var AC=[],KX=mi.length,xd=0,D0=0,Pv,RK=KX<=0,QE=!1;mi.charCodeAt(KX-1)===10&&--KX;for(mi.charCodeAt(KX-1)===13&&--KX;(Pv=$d())!==Ku4;){for(var Mj=[];Pv!==DwS&&Pv!==Ku4;)Mj.push(Pv),Pv=$d();zL&&(Mj=zL(Mj,D0++))==null||AC.push(Mj)}return AC}
function Q(mi){return mi.map(HF).join(X)}
function HF(mi){return mi==null?"":GL.test(mi)?'"'+mi.replace(/"/g,'""')+'"':mi}
var GL=new RegExp('["'+X+"\n\r]"),CF=X.charCodeAt(0);return{parse:function(mi,zL){var $d,AC;mi=z(mi,function(KX,xd){if($d)return $d(KX,xd-1);AC=KX;$d=zL?ag0(KX,zL):bUS(KX)});
mi.columns=AC||[];return mi},
parseRows:z,format:function(mi,zL){zL==null&&(zL=lgG(mi));return[zL.map(HF).join(X)].concat(mi.map(function($d){return zL.map(function(AC){return HF($d[AC])}).join(X)})).join("\n")},
formatRows:function(mi){return mi.map(Q).join("\n")}}}
function eS1(X){if(!X.ok)throw Error("ue`"+X.status+"`"+X.statusText);return X.text()}
function fEg(X){return function(z,Q,HF){arguments.length===2&&typeof Q==="function"&&(HF=Q,Q=void 0);return fetch(z,Q).then(eS1).then(function(GL){return X(GL,HF)})}}
function AJN(X,z,Q,HF){if(isNaN(z)||isNaN(Q))return X;var GL,CF=X._root;HF={data:HF};var mi=X._x0,zL=X._y0,$d=X._x1,AC=X._y1,KX,xd,D0,Pv,RK;if(!CF)return X._root=HF,X;for(;CF.length;)if((D0=z>=(KX=(mi+$d)/2))?mi=KX:$d=KX,(Pv=Q>=(xd=(zL+AC)/2))?zL=xd:AC=xd,GL=CF,!(CF=CF[RK=Pv<<1|D0]))return GL[RK]=HF,X;var QE=+X._x.call(null,CF.data);var Mj=+X._y.call(null,CF.data);if(z===QE&&Q===Mj)return HF.next=CF,GL?GL[RK]=HF:X._root=HF,X;do GL=GL?GL[RK]=Array(4):X._root=Array(4),(D0=z>=(KX=(mi+$d)/2))?mi=KX:$d=
KX,(Pv=Q>=(xd=(zL+AC)/2))?zL=xd:AC=xd;while((RK=Pv<<1|D0)===(D0=(Mj>=xd)<<1|QE>=KX));return GL[D0]=CF,GL[RK]=HF,X}
function us(X,z,Q,HF,GL){this.node=X;this.x0=z;this.y0=Q;this.x1=HF;this.y1=GL}
function kzZ(X){return X[0]}
function xqZ(X){return X[1]}
function cTY(X,z,Q,HF,GL,CF){this._x=X;this._y=z;this._x0=Q;this._y0=HF;this._x1=GL;this._y1=CF;this._root=void 0}
function jSB(X){for(var z={data:X.data},Q=z;X=X.next;)Q=Q.next={data:X.data};return z}
function VbM(X,z){if((z=(X=z?X.toExponential(z-1):X.toExponential()).indexOf("e"))<0)return null;var Q=X.slice(0,z);return[Q.length>1?Q[0]+Q.slice(2):Q,+X.slice(z+1)]}
function n4t(X){return X=VbM(Math.abs(X)),X?X[1]:NaN}
function C$U(X,z){return function(Q,HF){for(var GL=Q.length,CF=[],mi=0,zL=X[0],$d=0;GL>0&&zL>0;){$d+zL+1>HF&&(zL=Math.max(1,HF-$d));CF.push(Q.substring(GL-=zL,GL+zL));if(($d+=zL+1)>HF)break;zL=X[mi=(mi+1)%X.length]}return CF.reverse().join(z)}}
function RSZ(X){return function(z){return z.replace(/[0-9]/g,function(Q){return X[+Q]})}}
function pCL(X){return new gkX(X)}
function gkX(X){if(!(z=VKq.exec(X)))throw Error("ve`"+X);var z;this.fill=z[1]||" ";this.align=z[2]||">";this.sign=z[3]||"-";this.symbol=z[4]||"";this.zero=!!z[5];this.width=z[6]&&+z[6];this.comma=!!z[7];this.precision=z[8]&&+z[8].slice(1);this.trim=!!z[9];this.type=z[10]||""}
function vR3(X,z){z=VbM(X,z);if(!z)return X+"";X=z[0];z=z[1];return z<0?"0."+Array(-z).join("0")+X:X.length>z+1?X.slice(0,z+1)+"."+X.slice(z+1):X+Array(z-X.length+2).join("0")}
function dGX(X){return X}
function UqZ(X){function z(zL){function $d(SE){var $r=GR,Q1=QY,xO,gS;if(TO==="c")Q1=QM(SE)+Q1,SE="";else{SE=+SE;var rq=SE<0;SE=QM(Math.abs(SE),Mj);if(OD){var ZY=SE.length,WV=1,SV=-1;a:for(;WV<ZY;++WV)switch(SE[WV]){case ".":SV=xO=WV;break;case "0":SV===0&&(SV=WV);xO=WV;break;default:if(!+SE[WV])break a;SV>0&&(SV=0)}SE=SV>0?SE.slice(0,SV)+SE.slice(xO+1):SE}rq&&+SE===0&&(rq=!1);$r=(rq?xd==="("?xd:"-":xd==="-"||xd==="("?"":xd)+$r;Q1=(TO==="s"?Hs7[8+$G0/3]:"")+Q1+(rq&&xd==="("?")":"");if(eX)for(rq=-1,
xO=SE.length;++rq<xO;)if(gS=SE.charCodeAt(rq),48>gS||gS>57){Q1=(gS===46?GL+SE.slice(rq+1):SE.slice(rq))+Q1;SE=SE.slice(0,rq);break}}QE&&!Pv&&(SE=Q(SE,Infinity));gS=$r.length+SE.length+Q1.length;rq=gS<RK?Array(RK-gS+1).join(AC):"";QE&&Pv&&(SE=Q(rq+SE,rq.length?RK-Q1.length:Infinity),rq="");switch(KX){case "<":SE=$r+SE+Q1+rq;break;case "=":SE=$r+rq+SE+Q1;break;case "^":SE=rq.slice(0,gS=rq.length>>1)+$r+SE+Q1+rq.slice(gS);break;default:SE=rq+$r+SE+Q1}return CF(SE)}
zL=pCL(zL);var AC=zL.fill,KX=zL.align,xd=zL.sign,D0=zL.symbol,Pv=zL.zero,RK=zL.width,QE=zL.comma,Mj=zL.precision,OD=zL.trim,TO=zL.type;TO==="n"?(QE=!0,TO="g"):K9A[TO]||(Mj==null&&(Mj=12),OD=!0,TO="g");if(Pv||AC==="0"&&KX==="=")Pv=!0,AC="0",KX="=";var GR=D0==="$"?HF[0]:D0==="#"&&/[boxX]/.test(TO)?"0"+TO.toLowerCase():"",QY=D0==="$"?HF[1]:/[%p]/.test(TO)?mi:"",QM=K9A[TO],eX=/[defgprs%]/.test(TO);Mj=Mj==null?6:/[gprs]/.test(TO)?Math.max(1,Math.min(21,Mj)):Math.max(0,Math.min(20,Mj));$d.toString=function(){return zL+
""};
return $d}
var Q=X.grouping&&X.thousands?C$U(X.grouping,X.thousands):dGX,HF=X.currency,GL=X.decimal,CF=X.numerals?RSZ(X.numerals):dGX,mi=X.percent||"%";return{format:z,formatPrefix:function(zL,$d){var AC=z((zL=pCL(zL),zL.type="f",zL));zL=Math.max(-8,Math.min(8,Math.floor(n4t($d)/3)))*3;var KX=Math.pow(10,-zL),xd=Hs7[8+zL/3];return function(D0){return AC(KX*D0)+xd}}}}
function lB(){this.reset()}
function c$X(X,z,Q){var HF=X.s=z+Q,GL=HF-z;X.t=z-(HF-GL)+(Q-GL)}
function UQf(X){return X>1?Pw:X<-1?-Pw:Math.asin(X)}
function hS5(){}
function pm7(X){var z=X[0];X=X[1];var Q=uE(X);return[Q*uE(z),Q*xi(z),xi(X)]}
function gCN(X,z){return[X[1]*z[2]-X[2]*z[1],X[2]*z[0]-X[0]*z[2],X[0]*z[1]-X[1]*z[0]]}
function isB(X){var z=hdD(X[0]*X[0]+X[1]*X[1]+X[2]*X[2]);X[0]/=z;X[1]/=z;X[2]/=z}
function L_S(){var X=[],z;return{point:function(Q,HF){z.push([Q,HF])},
lineStart:function(){X.push(z=[])},
lineEnd:hS5,rejoin:function(){X.length>1&&X.push(X.pop().concat(X.shift()))},
result:function(){var Q=X;X=[];z=null;return Q}}}
function L1L(X,z,Q,HF){this.x=X;this.z=z;this.o=Q;this.e=HF;this.v=!1;this.n=this.p=null}
function MK1(X,z,Q,HF,GL){var CF=[],mi=[];X.forEach(function(xd){if(!((D0=xd.length-1)<=0)){var D0,Pv=xd[0],RK=xd[D0],QE=Pv;if(sq(QE[0]-RK[0])<1E-6&&sq(QE[1]-RK[1])<1E-6){GL.lineStart();for(zL=0;zL<D0;++zL)GL.point((Pv=xd[zL])[0],Pv[1]);GL.lineEnd()}else CF.push(D0=new L1L(Pv,xd,null,!0)),mi.push(D0.o=new L1L(Pv,null,D0,!1)),CF.push(D0=new L1L(RK,xd,null,!1)),mi.push(D0.o=new L1L(RK,null,D0,!0))}});
if(CF.length){mi.sort(z);GtU(CF);GtU(mi);var zL=0;for(X=mi.length;zL<X;++zL)mi[zL].e=Q=!Q;Q=CF[0];for(var $d;;){for(var AC=Q,KX=!0;AC.v;)if((AC=AC.n)===Q)return;z=AC.z;GL.lineStart();do{AC.v=AC.o.v=!0;if(AC.e){if(KX)for(zL=0,X=z.length;zL<X;++zL)GL.point(($d=z[zL])[0],$d[1]);else HF(AC.x,AC.n.x,1,GL);AC=AC.n}else{if(KX)for(z=AC.p.z,zL=z.length-1;zL>=0;--zL)GL.point(($d=z[zL])[0],$d[1]);else HF(AC.x,AC.p.x,-1,GL);AC=AC.p}AC=AC.o;z=AC.z;KX=!KX}while(!AC.v);GL.lineEnd()}}}
function GtU(X){if(z=X.length){for(var z,Q=0,HF=X[0],GL;++Q<z;)HF.n=GL=X[Q],GL.p=HF,HF=GL;HF.n=GL=X[0];GL.p=HF}}
function mq0(X){return X.length>1}
function w4q(X,z){return((X=X.x)[0]<0?X[1]-Pw-1E-6:Pw-X[1])-((z=z.x)[0]<0?z[1]-Pw-1E-6:Pw-z[1])}
function idF(){}
function oCd(X){return function(z,Q){var HF=uE(z),GL=uE(Q);HF=X(HF*GL);return[HF*GL*xi(z),HF*xi(Q)]}}
function C3(X){return function(z,Q){var HF=hdD(z*z+Q*Q),GL=X(HF),CF=xi(GL);GL=uE(GL);return[qsS(z*CF,HF*GL),UQf(HF&&Q*CF/HF)]}}
function P$Z(X){var z=0,Q=X.children,HF=Q&&Q.length;if(HF)for(;--HF>=0;)z+=Q[HF].value;else z=1;X.value=z}
function afX(X,z){var Q=new R9(X);X=+X.value&&(Q.value=X.value);var HF,GL=[Q],CF,mi,zL,$d;for(z==null&&(z=u5t);HF=GL.pop();)if(X&&(HF.value=+HF.data.value),(mi=z(HF.data))&&($d=mi.length))for(HF.children=Array($d),zL=$d-1;zL>=0;--zL)GL.push(CF=HF.children[zL]=new R9(mi[zL])),CF.parent=HF,CF.depth=HF.depth+1;return Q.eachBefore(Ig5)}
function u5t(X){return X.children}
function rsU(X){X.data=X.data.data}
function Ig5(X){var z=0;do X.height=z;while((X=X.parent)&&X.height<++z)}
function R9(X){this.data=X;this.depth=this.height=0;this.parent=null}
function po(X,z,Q,HF){function GL(CF){return X(CF=new Date(+CF)),CF}
GL.floor=GL;GL.ceil=function(CF){return X(CF=new Date(CF-1)),z(CF,1),X(CF),CF};
GL.round=function(CF){var mi=GL(CF),zL=GL.ceil(CF);return CF-mi<zL-CF?mi:zL};
GL.offset=function(CF,mi){return z(CF=new Date(+CF),mi==null?1:Math.floor(mi)),CF};
GL.range=function(CF,mi,zL){var $d=[],AC;CF=GL.ceil(CF);zL=zL==null?1:Math.floor(zL);if(!(CF<mi&&zL>0))return $d;do $d.push(AC=new Date(+CF)),z(CF,zL),X(CF);while(AC<CF&&CF<mi);return $d};
GL.filter=function(CF){return po(function(mi){if(mi>=mi)for(;X(mi),!CF(mi);)mi.setTime(mi-1)},function(mi,zL){if(mi>=mi)if(zL<0)for(;++zL<=0;)for(;z(mi,-1),!CF(mi););
else for(;--zL>=0;)for(;z(mi,1),!CF(mi););})};
Q&&(GL.count=function(CF,mi){Gm4.setTime(+CF);okY.setTime(+mi);X(Gm4);X(okY);return Math.floor(Q(Gm4,okY))},GL.every=function(CF){CF=Math.floor(CF);
return isFinite(CF)&&CF>0?CF>1?GL.filter(HF?function(mi){return HF(mi)%CF===0}:function(mi){return GL.count(0,mi)%CF===0}):GL:null});
return GL}
function Wh(X){return po(function(z){z.setDate(z.getDate()-(z.getDay()+7-X)%7);z.setHours(0,0,0,0)},function(z,Q){z.setDate(z.getDate()+Q*7)},function(z,Q){return(Q-z-(Q.getTimezoneOffset()-z.getTimezoneOffset())*6E4)/6048E5})}
function Bh(X){return po(function(z){z.setUTCDate(z.getUTCDate()-(z.getUTCDay()+7-X)%7);z.setUTCHours(0,0,0,0)},function(z,Q){z.setUTCDate(z.getUTCDate()+Q*7)},function(z,Q){return(Q-z)/6048E5})}
function W_Z(X){if(0<=X.y&&X.y<100){var z=new Date(-1,X.m,X.d,X.H,X.M,X.S,X.L);z.setFullYear(X.y);return z}return new Date(X.y,X.m,X.d,X.H,X.M,X.S,X.L)}
function Mbl(X){if(0<=X.y&&X.y<100){var z=new Date(Date.UTC(-1,X.m,X.d,X.H,X.M,X.S,X.L));z.setUTCFullYear(X.y);return z}return new Date(Date.UTC(X.y,X.m,X.d,X.H,X.M,X.S,X.L))}
function Vt(X){return{y:X,m:0,d:1,H:0,M:0,S:0,L:0}}
function BYS(X){function z(Q1,xO){return function(gS){var rq=[],ZY=-1,WV=0,SV=Q1.length,gf,NA;for(gS instanceof Date||(gS=new Date(+gS));++ZY<SV;)if(Q1.charCodeAt(ZY)===37){rq.push(Q1.slice(WV,ZY));(WV=lfd[gf=Q1.charAt(++ZY)])!=null?gf=Q1.charAt(++ZY):WV=gf==="e"?" ":"0";if(NA=xO[gf])gf=NA(gS,WV);rq.push(gf);WV=ZY+1}rq.push(Q1.slice(WV,ZY));return rq.join("")}}
function Q(Q1,xO){return function(gS){var rq=Vt(1900);if(HF(rq,Q1,gS,0)!=gS.length)return null;if("Q"in rq)return new Date(rq.Q);"p"in rq&&(rq.H=rq.H%12+rq.p*12);if("V"in rq){if(rq.V<1||rq.V>53)return null;"w"in rq||(rq.w=1);if("Z"in rq){gS=Mbl(Vt(rq.y));var ZY=gS.getUTCDay();gS=ZY>4||ZY===0?qqF.ceil(gS):qqF(gS);gS=ell.offset(gS,(rq.V-1)*7);rq.y=gS.getUTCFullYear();rq.m=gS.getUTCMonth();rq.d=gS.getUTCDate()+(rq.w+6)%7}else gS=xO(Vt(rq.y)),ZY=gS.getDay(),gS=ZY>4||ZY===0?ajX.ceil(gS):ajX(gS),gS=ktS.offset(gS,
(rq.V-1)*7),rq.y=gS.getFullYear(),rq.m=gS.getMonth(),rq.d=gS.getDate()+(rq.w+6)%7}else if("W"in rq||"U"in rq)"w"in rq||(rq.w="u"in rq?rq.u%7:"W"in rq?1:0),ZY="Z"in rq?Mbl(Vt(rq.y)).getUTCDay():xO(Vt(rq.y)).getDay(),rq.m=0,rq.d="W"in rq?(rq.w+6)%7+rq.W*7-(ZY+5)%7:rq.w+rq.U*7-(ZY+6)%7;return"Z"in rq?(rq.H+=rq.Z/100|0,rq.M+=rq.Z%100,Mbl(rq)):xO(rq)}}
function HF(Q1,xO,gS,rq){for(var ZY=0,WV=xO.length,SV=gS.length,gf;ZY<WV;){if(rq>=SV)return-1;gf=xO.charCodeAt(ZY++);if(gf===37){if(gf=xO.charAt(ZY++),gf=$r[gf in lfd?xO.charAt(ZY++):gf],!gf||(rq=gf(Q1,gS,rq))<0)return-1}else if(gf!=gS.charCodeAt(rq++))return-1}return rq}
var GL=X.dateTime,CF=X.date,mi=X.time,zL=X.periods,$d=X.days,AC=X.shortDays,KX=X.months,xd=X.shortMonths,D0=UP(zL),Pv=hk(zL),RK=UP($d),QE=hk($d),Mj=UP(AC),OD=hk(AC),TO=UP(KX),GR=hk(KX),QY=UP(xd),QM=hk(xd),eX={a:function(Q1){return AC[Q1.getDay()]},
A:function(Q1){return $d[Q1.getDay()]},
b:function(Q1){return xd[Q1.getMonth()]},
B:function(Q1){return KX[Q1.getMonth()]},
c:null,d:xGl,e:xGl,f:zS0,H:X4v,I:Js1,j:se5,L:nC3,m:F_T,M:Zaq,p:function(Q1){return zL[+(Q1.getHours()>=12)]},
Q:C9M,s:RlN,S:TYZ,u:QeS,U:tKj,V:YVb,w:Oat,W:SV5,x:null,X:null,y:E4G,Y:ysg,Z:bab,"%":V$l},SE={a:function(Q1){return AC[Q1.getUTCDay()]},
A:function(Q1){return $d[Q1.getUTCDay()]},
b:function(Q1){return xd[Q1.getUTCMonth()]},
B:function(Q1){return KX[Q1.getUTCMonth()]},
c:null,d:UGC,e:UGC,f:NY0,H:DqZ,I:fgv,j:AsT,L:hlN,m:jeg,M:v4g,p:function(Q1){return zL[+(Q1.getUTCHours()>=12)]},
Q:C9M,s:RlN,S:dwt,u:HUZ,U:$w1,V:K2T,w:cJv,W:pxS,x:null,X:null,y:gRG,Y:iUt,Z:GFZ,"%":V$l},$r={a:function(Q1,xO,gS){return(xO=Mj.exec(xO.slice(gS)))?(Q1.w=OD[xO[0].toLowerCase()],gS+xO[0].length):-1},
A:function(Q1,xO,gS){return(xO=RK.exec(xO.slice(gS)))?(Q1.w=QE[xO[0].toLowerCase()],gS+xO[0].length):-1},
b:function(Q1,xO,gS){return(xO=QY.exec(xO.slice(gS)))?(Q1.m=QM[xO[0].toLowerCase()],gS+xO[0].length):-1},
B:function(Q1,xO,gS){return(xO=TO.exec(xO.slice(gS)))?(Q1.m=GR[xO[0].toLowerCase()],gS+xO[0].length):-1},
c:function(Q1,xO,gS){return HF(Q1,GL,xO,gS)},
d:L9M,e:L9M,f:oRt,H:M$B,I:M$B,j:qTb,L:aEU,m:lEG,M:et0,p:function(Q1,xO,gS){return(xO=D0.exec(xO.slice(gS)))?(Q1.p=Pv[xO[0].toLowerCase()],gS+xO[0].length):-1},
Q:kFU,s:xw0,S:nRt,u:Cd1,U:RtO,V:Vc5,w:UwG,W:htZ,x:function(Q1,xO,gS){return HF(Q1,CF,xO,gS)},
X:function(Q1,xO,gS){return HF(Q1,mi,xO,gS)},
y:L2j,Y:McZ,Z:mwq,"%":wxv};eX.x=z(CF,eX);eX.X=z(mi,eX);eX.c=z(GL,eX);SE.x=z(CF,SE);SE.X=z(mi,SE);SE.c=z(GL,SE);return{format:function(Q1){var xO=z(Q1,eX);xO.toString=function(){return Q1};
return xO},
parse:function(Q1){var xO=Q(Q1,W_Z);xO.toString=function(){return Q1};
return xO},
utcFormat:function(Q1){var xO=z(Q1,SE);xO.toString=function(){return Q1};
return xO},
utcParse:function(Q1){var xO=Q(Q1,Mbl);xO.toString=function(){return Q1};
return xO}}}
function as(X,z,Q){var HF=X<0?"-":"";X=(HF?-X:X)+"";var GL=X.length;return HF+(GL<Q?Array(Q-GL+1).join(z)+X:X)}
function Pdv(X){return X.replace(ut0,"\\$&")}
function UP(X){return new RegExp("^(?:"+X.map(Pdv).join("|")+")","i")}
function hk(X){for(var z={},Q=-1,HF=X.length;++Q<HF;)z[X[Q].toLowerCase()]=Q;return z}
function UwG(X,z,Q){return(z=o6.exec(z.slice(Q,Q+1)))?(X.w=+z[0],Q+z[0].length):-1}
function Cd1(X,z,Q){return(z=o6.exec(z.slice(Q,Q+1)))?(X.u=+z[0],Q+z[0].length):-1}
function RtO(X,z,Q){return(z=o6.exec(z.slice(Q,Q+2)))?(X.U=+z[0],Q+z[0].length):-1}
function Vc5(X,z,Q){return(z=o6.exec(z.slice(Q,Q+2)))?(X.V=+z[0],Q+z[0].length):-1}
function htZ(X,z,Q){return(z=o6.exec(z.slice(Q,Q+2)))?(X.W=+z[0],Q+z[0].length):-1}
function McZ(X,z,Q){return(z=o6.exec(z.slice(Q,Q+4)))?(X.y=+z[0],Q+z[0].length):-1}
function L2j(X,z,Q){return(z=o6.exec(z.slice(Q,Q+2)))?(X.y=+z[0]+(+z[0]>68?1900:2E3),Q+z[0].length):-1}
function mwq(X,z,Q){return(z=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(z.slice(Q,Q+6)))?(X.Z=z[1]?0:-(z[2]+(z[3]||"00")),Q+z[0].length):-1}
function lEG(X,z,Q){return(z=o6.exec(z.slice(Q,Q+2)))?(X.m=z[0]-1,Q+z[0].length):-1}
function L9M(X,z,Q){return(z=o6.exec(z.slice(Q,Q+2)))?(X.d=+z[0],Q+z[0].length):-1}
function qTb(X,z,Q){return(z=o6.exec(z.slice(Q,Q+3)))?(X.m=0,X.d=+z[0],Q+z[0].length):-1}
function M$B(X,z,Q){return(z=o6.exec(z.slice(Q,Q+2)))?(X.H=+z[0],Q+z[0].length):-1}
function et0(X,z,Q){return(z=o6.exec(z.slice(Q,Q+2)))?(X.M=+z[0],Q+z[0].length):-1}
function nRt(X,z,Q){return(z=o6.exec(z.slice(Q,Q+2)))?(X.S=+z[0],Q+z[0].length):-1}
function aEU(X,z,Q){return(z=o6.exec(z.slice(Q,Q+3)))?(X.L=+z[0],Q+z[0].length):-1}
function oRt(X,z,Q){return(z=o6.exec(z.slice(Q,Q+6)))?(X.L=Math.floor(z[0]/1E3),Q+z[0].length):-1}
function wxv(X,z,Q){return(X=IEj.exec(z.slice(Q,Q+1)))?Q+X[0].length:-1}
function kFU(X,z,Q){return(z=o6.exec(z.slice(Q)))?(X.Q=+z[0],Q+z[0].length):-1}
function xw0(X,z,Q){return(z=o6.exec(z.slice(Q)))?(X.Q=+z[0]*1E3,Q+z[0].length):-1}
function xGl(X,z){return as(X.getDate(),z,2)}
function X4v(X,z){return as(X.getHours(),z,2)}
function Js1(X,z){return as(X.getHours()%12||12,z,2)}
function se5(X,z){return as(1+ktS.count(jj(X),X),z,3)}
function nC3(X,z){return as(X.getMilliseconds(),z,3)}
function zS0(X,z){return nC3(X,z)+"000"}
function F_T(X,z){return as(X.getMonth()+1,z,2)}
function Zaq(X,z){return as(X.getMinutes(),z,2)}
function TYZ(X,z){return as(X.getSeconds(),z,2)}
function QeS(X){X=X.getDay();return X===0?7:X}
function tKj(X,z){return as(rJG.count(jj(X),X),z,2)}
function YVb(X,z){var Q=X.getDay();X=Q>=4||Q===0?ljM(X):ljM.ceil(X);return as(ljM.count(jj(X),X)+(jj(X).getDay()===4),z,2)}
function Oat(X){return X.getDay()}
function SV5(X,z){return as(ajX.count(jj(X),X),z,2)}
function E4G(X,z){return as(X.getFullYear()%100,z,2)}
function ysg(X,z){return as(X.getFullYear()%1E4,z,4)}
function bab(X){X=X.getTimezoneOffset();return(X>0?"-":(X*=-1,"+"))+as(X/60|0,"0",2)+as(X%60,"0",2)}
function UGC(X,z){return as(X.getUTCDate(),z,2)}
function DqZ(X,z){return as(X.getUTCHours(),z,2)}
function fgv(X,z){return as(X.getUTCHours()%12||12,z,2)}
function AsT(X,z){return as(1+ell.count(dG(X),X),z,3)}
function hlN(X,z){return as(X.getUTCMilliseconds(),z,3)}
function NY0(X,z){return hlN(X,z)+"000"}
function jeg(X,z){return as(X.getUTCMonth()+1,z,2)}
function v4g(X,z){return as(X.getUTCMinutes(),z,2)}
function dwt(X,z){return as(X.getUTCSeconds(),z,2)}
function HUZ(X){X=X.getUTCDay();return X===0?7:X}
function $w1(X,z){return as(W2U.count(dG(X),X),z,2)}
function K2T(X,z){var Q=X.getUTCDay();X=Q>=4||Q===0?eqD(X):eqD.ceil(X);return as(eqD.count(dG(X),X)+(dG(X).getUTCDay()===4),z,2)}
function cJv(X){return X.getUTCDay()}
function pxS(X,z){return as(qqF.count(dG(X),X),z,2)}
function gRG(X,z){return as(X.getUTCFullYear()%100,z,2)}
function iUt(X,z){return as(X.getUTCFullYear()%1E4,z,4)}
function GFZ(){return"+0000"}
function V$l(){return"%"}
function C9M(X){return+X}
function RlN(X){return Math.floor(+X/1E3)}
function ar(X){for(var z=X.length/6|0,Q=Array(z),HF=0;HF<z;)Q[HF]="#"+X.slice(HF*6,++HF*6);return Q}
function T9(X){return BI1(X[X.length-1])}
function mQi(X){var z=X.length;return function(Q){return X[Math.max(0,Math.min(z-1,Math.floor(Q*z)))]}}
function mGB(X){this._context=X}
function wmA(X){this._curve=X}
function P9S(X,z,Q){var HF=X._x1-X._x0;z-=X._x1;var GL=(X._y1-X._y0)/(HF||z<0&&-0);X=(Q-X._y1)/(z||HF<0&&-0);return((GL<0?-1:1)+(X<0?-1:1))*Math.min(Math.abs(GL),Math.abs(X),.5*Math.abs((GL*z+X*HF)/(HF+z)))||0}
function uTN(X,z){var Q=X._x1-X._x0;return Q?(3*(X._y1-X._y0)/Q-z)/2:z}
function km4(X,z,Q){var HF=X._x0,GL=X._x1,CF=X._y1,mi=(GL-HF)/3;X._context.bezierCurveTo(HF+mi,X._y0+mi*z,GL-mi,CF-mi*Q,GL,CF)}
function xZ4(X){this._context=X}
function IfS(X){this._context=X}
function L3(X,z,Q){this.k=X;this.x=z;this.y=Q}
(function(X){X.length===1&&(X=H(X));return{left:function(z,Q,HF,GL){HF==null&&(HF=0);GL==null&&(GL=z.length);for(;HF<GL;){var CF=HF+GL>>>1;X(z[CF],Q)<0?HF=CF+1:GL=CF}return HF},
right:function(z,Q,HF,GL){HF==null&&(HF=0);GL==null&&(GL=z.length);for(;HF<GL;){var CF=HF+GL>>>1;X(z[CF],Q)>0?GL=CF:HF=CF+1}return HF}}})(d);
var mAb={value:function(){}};
c.prototype=K.prototype={constructor:c,on:function(X,z){var Q=this._,HF=p(X+"",Q),GL,CF=-1,mi=HF.length;if(arguments.length<2)for(;++CF<mi;){var zL;if(zL=GL=(X=HF[CF]).type){a:{zL=Q[GL];for(var $d=0,AC=zL.length;$d<AC;++$d)if((GL=zL[$d]).name===X.name){GL=GL.value;break a}GL=void 0}zL=GL}if(zL)return GL}else{if(z!=null&&typeof z!=="function")throw Error("we`"+z);for(;++CF<mi;)if(GL=(X=HF[CF]).type)Q[GL]=g(Q[GL],X.name,z);else if(z==null)for(GL in Q)Q[GL]=g(Q[GL],X.name,null);return this}},
copy:function(){var X={},z=this._,Q;for(Q in z)X[Q]=z[Q].slice();return new c(X)},
call:function(X,z){if((GL=arguments.length-2)>0)for(var Q=Array(GL),HF=0,GL,CF;HF<GL;++HF)Q[HF]=arguments[HF+2];if(!this._.hasOwnProperty(X))throw Error("qe`"+X);CF=this._[X];HF=0;for(GL=CF.length;HF<GL;++HF)CF[HF].value.apply(z,Q)},
apply:function(X,z,Q){if(!this._.hasOwnProperty(X))throw Error("qe`"+X);X=this._[X];for(var HF=0,GL=X.length;HF<GL;++HF)X[HF].value.apply(z,Q)}};
var w5={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},r$M=function(X){return function(){return this.matches(X)}};
if(typeof document!=="undefined"){var MX=document.documentElement;if(!MX.matches){var ztg=MX.webkitMatchesSelector||MX.msMatchesSelector||MX.mozMatchesSelector||MX.oMatchesSelector;r$M=function(X){return function(){return ztg.call(this,X)}}}}var W9B=r$M;
L.prototype={constructor:L,appendChild:function(X){return this._parent.insertBefore(X,this._next)},
insertBefore:function(X,z){return this._parent.insertBefore(X,z)},
querySelector:function(X){return this._parent.querySelector(X)},
querySelectorAll:function(X){return this._parent.querySelectorAll(X)}};
var XxX={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(XxX={mouseenter:"mouseover",mouseleave:"mouseout"}));var wZZ=[null];NU.prototype=RZ.prototype={constructor:NU,select:function(X){typeof X!=="function"&&(X=V(X));for(var z=this._groups,Q=z.length,HF=Array(Q),GL=0;GL<Q;++GL)for(var CF=z[GL],mi=CF.length,zL=HF[GL]=Array(mi),$d,AC,KX=0;KX<mi;++KX)($d=CF[KX])&&(AC=X.call($d,$d.__data__,KX,CF))&&("__data__"in $d&&(AC.__data__=$d.__data__),zL[KX]=AC);return new NU(HF,
this._parents)},
filter:function(X){typeof X!=="function"&&(X=W9B(X));for(var z=this._groups,Q=z.length,HF=Array(Q),GL=0;GL<Q;++GL)for(var CF=z[GL],mi=CF.length,zL=HF[GL]=[],$d,AC=0;AC<mi;++AC)($d=CF[AC])&&X.call($d,$d.__data__,AC,CF)&&zL.push($d);return new NU(HF,this._parents)},
data:function(X,z){if(!X)return Pv=Array(this.size()),AC=-1,this.each(function(TO){Pv[++AC]=TO}),Pv;
var Q=z?J:W,HF=this._parents,GL=this._groups;typeof X!=="function"&&(X=w(X));for(var CF=GL.length,mi=Array(CF),zL=Array(CF),$d=Array(CF),AC=0;AC<CF;++AC){var KX=HF[AC],xd=GL[AC],D0=xd.length,Pv=X.call(KX,KX&&KX.__data__,AC,HF),RK=Pv.length,QE=zL[AC]=Array(RK),Mj=mi[AC]=Array(RK);D0=$d[AC]=Array(D0);Q(KX,xd,QE,Mj,D0,Pv,z);xd=KX=0;for(var OD;KX<RK;++KX)if(D0=QE[KX]){for(KX>=xd&&(xd=KX+1);!(OD=Mj[xd])&&++xd<RK;);D0._next=OD||null}}mi=new NU(mi,HF);mi._enter=zL;mi._exit=$d;return mi},
enter:function(){return new NU(this._enter||this._groups.map(U),this._parents)},
exit:function(){return new NU(this._exit||this._groups.map(U),this._parents)},
merge:function(X){var z=this._groups;X=X._groups;for(var Q=z.length,HF=Math.min(Q,X.length),GL=Array(Q),CF=0;CF<HF;++CF)for(var mi=z[CF],zL=X[CF],$d=mi.length,AC=GL[CF]=Array($d),KX,xd=0;xd<$d;++xd)if(KX=mi[xd]||zL[xd])AC[xd]=KX;for(;CF<Q;++CF)GL[CF]=z[CF];return new NU(GL,this._parents)},
order:function(){for(var X=this._groups,z=-1,Q=X.length;++z<Q;)for(var HF=X[z],GL=HF.length-1,CF=HF[GL],mi;--GL>=0;)if(mi=HF[GL])CF&&CF!==mi.nextSibling&&CF.parentNode.insertBefore(mi,CF),CF=mi;return this},
sort:function(X){function z(xd,D0){return xd&&D0?X(xd.__data__,D0.__data__):!xd-!D0}
X||(X=F);for(var Q=this._groups,HF=Q.length,GL=Array(HF),CF=0;CF<HF;++CF){for(var mi=Q[CF],zL=mi.length,$d=GL[CF]=Array(zL),AC,KX=0;KX<zL;++KX)if(AC=mi[KX])$d[KX]=AC;$d.sort(z)}return(new NU(GL,this._parents)).order()},
call:function(){var X=arguments[0];arguments[0]=this;X.apply(null,arguments);return this},
nodes:function(){var X=Array(this.size()),z=-1;this.each(function(){X[++z]=this});
return X},
node:function(){for(var X=this._groups,z=0,Q=X.length;z<Q;++z)for(var HF=X[z],GL=0,CF=HF.length;GL<CF;++GL){var mi=HF[GL];if(mi)return mi}return null},
size:function(){var X=0;this.each(function(){++X});
return X},
empty:function(){return!this.node()},
each:function(X){for(var z=this._groups,Q=0,HF=z.length;Q<HF;++Q)for(var GL=z[Q],CF=0,mi=GL.length,zL;CF<mi;++CF)(zL=GL[CF])&&X.call(zL,zL.__data__,CF,GL);return this},
attr:function(X,z){var Q=a(X);if(arguments.length<2){var HF=this.node();return Q.local?HF.getAttributeNS(Q.space,Q.local):HF.getAttribute(Q)}return this.each((z==null?Q.local?A:Y:typeof z==="function"?Q.local?v:y:Q.local?N:E)(Q,z))},
style:function(X,z,Q){return arguments.length>1?this.each((z==null?el:typeof z==="function"?V4:l1)(X,z,Q==null?"":Q)):Mf(this.node(),X)},
property:function(X,z){return arguments.length>1?this.each((z==null?LF:typeof z==="function"?FM:YY)(X,z)):this.node()[X]},
text:function(X){return arguments.length?this.each(X==null?gA:(typeof X==="function"?eS:JN)(X)):this.node().textContent},
html:function(X){return arguments.length?this.each(X==null?vF:(typeof X==="function"?kd:CX)(X)):this.node().innerHTML},
append:function(X){var z=typeof X==="function"?X:C(X);return this.select(function(){return this.appendChild(z.apply(this,arguments))})},
insert:function(X,z){var Q=typeof X==="function"?X:C(X),HF=z==null?BB:typeof z==="function"?z:V(z);return this.select(function(){return this.insertBefore(Q.apply(this,arguments),HF.apply(this,arguments)||null)})},
remove:function(){return this.each(ug)},
clone:function(X){return this.select(X?pF:fX)},
datum:function(X){return arguments.length?this.property("__data__",X):this.node().__data__},
on:function(X,z,Q){var HF=lg(X+""),GL=HF.length,CF;if(arguments.length<2){var mi=this.node().__on;if(mi)for(var zL=0,$d=mi.length,AC;zL<$d;++zL){var KX=0;for(AC=mi[zL];KX<GL;++KX)if((CF=HF[KX]).type===AC.type&&CF.name===AC.name)return AC.value}}else{mi=z?Hv:hN;Q==null&&(Q=!1);for(KX=0;KX<GL;++KX)this.each(mi(HF[KX],z,Q));return this}},
dispatch:function(X,z){return this.each((typeof z==="function"?oC:dq)(X,z))}};
var Ph1=0;uM.prototype=function(){return new uM}.prototype={constructor:uM,
get:function(X){for(var z=this._;!(z in X);)if(!(X=X.parentNode))return;return X[z]},
set:function(X,z){return X[this._]=z},
remove:function(X){return this._ in X&&delete X[this._]},
toString:function(){return this._}};
var H7=1/.7,usb=/^#([0-9a-f]{3})$/,IvO=/^#([0-9a-f]{6})$/,rQT=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),Wmb=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Biq=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),zeg=RegExp("^rgba\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),
XZg=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),JQ5=RegExp("^hsla\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),JJ0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,
blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,
darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,
lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,
mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,
purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};
IC(qj,nt,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
IC(EU,FO,Lt(qj,{brighter:function(X){X=X==null?H7:Math.pow(H7,X);return new EU(this.r*X,this.g*X,this.b*X,this.opacity)},
darker:function(X){X=X==null?.7:Math.pow(.7,X);return new EU(this.r*X,this.g*X,this.b*X,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+mr(this.r)+mr(this.g)+mr(this.b)},
toString:function(){var X=this.opacity;X=isNaN(X)?1:Math.max(0,Math.min(1,X));return(X===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(X===1?")":", "+X+")")}}));
IC(Xq,p4,Lt(qj,{brighter:function(X){X=X==null?H7:Math.pow(H7,X);return new Xq(this.h,this.s,this.l*X,this.opacity)},
darker:function(X){X=X==null?.7:Math.pow(.7,X);return new Xq(this.h,this.s,this.l*X,this.opacity)},
rgb:function(){var X=this.h%360+(this.h<0)*360,z=this.l,Q=z+(z<.5?z:1-z)*(isNaN(X)||isNaN(this.s)?0:this.s);z=2*z-Q;return new EU(ds(X>=240?X-240:X+120,z,Q),ds(X,z,Q),ds(X<120?X+240:X-120,z,Q),this.opacity)},
displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));
var sS3=Math.PI/180,TI7=180/Math.PI,ZUA=4/29,fr=6/29,F2B=3*fr*fr,shv=fr*fr*fr;IC(u1,function(X,z,Q,HF){return arguments.length===1?Fi(X):new u1(X,z,Q,HF==null?1:HF)},Lt(qj,{brighter:function(X){return new u1(this.l+18*(X==null?1:X),this.a,this.b,this.opacity)},
darker:function(X){return new u1(this.l-18*(X==null?1:X),this.a,this.b,this.opacity)},
rgb:function(){var X=(this.l+16)/116,z=isNaN(this.a)?X:X+this.a/500,Q=isNaN(this.b)?X:X-this.b/200;z=.96422*E5(z);X=1*E5(X);Q=.82521*E5(Q);return new EU(RC(3.1338561*z-1.6168667*X-.4906146*Q),RC(-.9787684*z+1.9161415*X+.033454*Q),RC(.0719453*z-.2289914*X+1.4052427*Q),this.opacity)}}));
IC(MU,wq,Lt(qj,{brighter:function(X){return new MU(this.h,this.c,this.l+18*(X==null?1:X),this.opacity)},
darker:function(X){return new MU(this.h,this.c,this.l-18*(X==null?1:X),this.opacity)},
rgb:function(){return Fi(this).rgb()}}));
var QSM=1.78277*-.29227-.1347134789;IC(XO,LX,Lt(qj,{brighter:function(X){X=X==null?H7:Math.pow(H7,X);return new XO(this.h,this.s,this.l*X,this.opacity)},
darker:function(X){X=X==null?.7:Math.pow(.7,X);return new XO(this.h,this.s,this.l*X,this.opacity)},
rgb:function(){var X=isNaN(this.h)?0:(this.h+120)*sS3,z=+this.l,Q=isNaN(this.s)?0:this.s*z*(1-z),HF=Math.cos(X);X=Math.sin(X);return new EU(255*(z+Q*(-.14861*HF+1.78277*X)),255*(z+Q*(-.29227*HF+-.90649*X)),255*(z+1.97294*HF*Q),this.opacity)}}));
var ERg=function Q(z){function HF(CF,mi){var zL=GL((CF=FO(CF)).r,(mi=FO(mi)).r),$d=GL(CF.g,mi.g),AC=GL(CF.b,mi.b),KX=Zz(CF.opacity,mi.opacity);return function(xd){CF.r=zL(xd);CF.g=$d(xd);CF.b=AC(xd);CF.opacity=KX(xd);return CF+""}}
var GL=Jt(z);HF.gamma=Q;return HF}(1),BI1=Qp(function(z){var Q=z.length-1;
return function(HF){var GL=HF<=0?HF=0:HF>=1?(HF=1,Q-1):Math.floor(HF*Q),CF=z[GL],mi=z[GL+1];return kO((HF-GL/Q)*Q,GL>0?z[GL-1]:2*CF-mi,CF,mi,GL<Q-1?z[GL+2]:2*mi-CF)}});
Qp(function(z){var Q=z.length;return function(HF){var GL=Math.floor(((HF%=1)<0?++HF:HF)*Q);return kO((HF-GL/Q)*Q,z[(GL+Q-1)%Q],z[GL%Q],z[(GL+1)%Q],z[(GL+2)%Q])}});
var ffl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,A$f=new RegExp(ffl.source,"g"),tcN=180/Math.PI,nkh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},mN,CqM,ByN,wbi,Xxt=sU(function(z){if(z==="none")return nkh;mN||(mN=document.createElement("DIV"),CqM=document.documentElement,ByN=document.defaultView);mN.style.transform=z;z=ByN.getComputedStyle(CqM.appendChild(mN),null).getPropertyValue("transform");CqM.removeChild(mN);z=z.slice(7,-1).split(",");return V1(+z[0],+z[1],+z[2],+z[3],
+z[4],+z[5])},"px, ","px)","deg)"),JJ5=sU(function(z){if(z==null)return nkh;
wbi||(wbi=document.createElementNS("http://www.w3.org/2000/svg","g"));wbi.setAttribute("transform",z);if(!(z=wbi.transform.baseVal.consolidate()))return nkh;z=z.matrix;return V1(z.a,z.b,z.c,z.d,z.e,z.f)},", ",")",")");
ig(Zw);ig(Zz);or(Zw);or(Zz);Su(Zw);var RqY=Su(Zz),Ap=0,kI=0,n3=0,npY,xI,xQ5=0,IM=0,kJf=0,ez=typeof performance==="object"&&performance.now?performance:Date,YTS=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(z){setTimeout(z,17)};
RD.prototype=oi.prototype={constructor:RD,restart:function(z,Q,HF){if(typeof z!=="function")throw new TypeError("xe");HF=(HF==null?XB():+HF)+(Q==null?0:+Q);this._next||xI===this||(xI?xI._next=this:npY=this,xI=this);this._call=z;this._time=HF;ai()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,ai())}};
var ZNT=K("start","end","interrupt"),Ti0=[],sSU=RZ.prototype.constructor,zlA=0,$$=RZ.prototype;JT.prototype=function(z){return RZ().transition(z)}.prototype={constructor:JT,
select:function(z){var Q=this._name,HF=this._id;typeof z!=="function"&&(z=V(z));for(var GL=this._groups,CF=GL.length,mi=Array(CF),zL=0;zL<CF;++zL)for(var $d=GL[zL],AC=$d.length,KX=mi[zL]=Array(AC),xd,D0,Pv=0;Pv<AC;++Pv)(xd=$d[Pv])&&(D0=z.call(xd,xd.__data__,Pv,$d))&&("__data__"in xd&&(D0.__data__=xd.__data__),KX[Pv]=D0,jkM(KX[Pv],Q,HF,Pv,KX,aY(xd,HF)));return new JT(mi,this._parents,Q,HF)},
filter:function(z){typeof z!=="function"&&(z=W9B(z));for(var Q=this._groups,HF=Q.length,GL=Array(HF),CF=0;CF<HF;++CF)for(var mi=Q[CF],zL=mi.length,$d=GL[CF]=[],AC,KX=0;KX<zL;++KX)(AC=mi[KX])&&z.call(AC,AC.__data__,KX,mi)&&$d.push(AC);return new JT(GL,this._parents,this._name,this._id)},
merge:function(z){if(z._id!==this._id)throw Error();var Q=this._groups;z=z._groups;for(var HF=Q.length,GL=Math.min(HF,z.length),CF=Array(HF),mi=0;mi<GL;++mi)for(var zL=Q[mi],$d=z[mi],AC=zL.length,KX=CF[mi]=Array(AC),xd,D0=0;D0<AC;++D0)if(xd=zL[D0]||$d[D0])KX[D0]=xd;for(;mi<HF;++mi)CF[mi]=Q[mi];return new JT(CF,this._parents,this._name,this._id)},
selection:function(){return new sSU(this._groups,this._parents)},
transition:function(){for(var z=this._name,Q=this._id,HF=++zlA,GL=this._groups,CF=GL.length,mi=0;mi<CF;++mi)for(var zL=GL[mi],$d=zL.length,AC,KX=0;KX<$d;++KX)if(AC=zL[KX]){var xd=aY(AC,Q);jkM(AC,z,HF,KX,zL,{time:xd.time+xd.delay+xd.duration,delay:0,duration:xd.duration,ease:xd.ease})}return new JT(GL,this._parents,z,HF)},
call:$$.call,nodes:$$.nodes,node:$$.node,size:$$.size,empty:$$.empty,each:$$.each,on:function(z,Q){var HF=this._id;return arguments.length<2?aY(this.node(),HF).on.on(z):this.each($qT(HF,z,Q))},
attr:function(z,Q){var HF=a(z),GL=HF==="transform"?JJ5:STA;return this.attrTween(z,typeof Q==="function"?(HF.local?bNT:yQ5)(HF,GL,dZD(this,"attr."+z,Q)):Q==null?(HF.local?ONT:YhS)(HF):(HF.local?EZ1:ShT)(HF,GL,Q+""))},
attrTween:function(z,Q){var HF="attr."+z;if(arguments.length<2)return(HF=this.tween(HF))&&HF._value;if(Q==null)return this.tween(HF,null);if(typeof Q!=="function")throw Error();var GL=a(z);return this.tween(HF,(GL.local?Nib:DA5)(GL,Q))},
style:function(z,Q,HF){var GL=z==="transform"?Xxt:STA;return Q==null?this.styleTween(z,csq(z,GL)).on("end.style."+z,p4Z(z)):this.styleTween(z,typeof Q==="function"?iaq(z,GL,dZD(this,"style."+z,Q)):g41(z,GL,Q+""),HF)},
styleTween:function(z,Q,HF){var GL="style."+z;if(arguments.length<2)return(GL=this.tween(GL))&&GL._value;if(Q==null)return this.tween(GL,null);if(typeof Q!=="function")throw Error();return this.tween(GL,GzO(z,Q,HF==null?"":HF))},
text:function(z){return this.tween("text",typeof z==="function"?qVv(dZD(this,"text",z)):o4b(z==null?"":z+""))},
remove:function(){return this.on("end.remove",K_0(this._id))},
tween:function(z,Q){var HF=this._id;if(arguments.length<2){HF=aY(this.node(),HF).tween;for(var GL=0,CF=HF.length,mi;GL<CF;++GL)if((mi=HF[GL]).name===z)return mi.value;return null}return this.each((Q==null?QhU:t0b)(HF,z,Q))},
delay:function(z){var Q=this._id;return arguments.length?this.each((typeof z==="function"?fvZ:AQZ)(Q,z)):aY(this.node(),Q).delay},
duration:function(z){var Q=this._id;return arguments.length?this.each((typeof z==="function"?jhj:vZj)(Q,z)):aY(this.node(),Q).duration},
ease:function(z){var Q=this._id;return arguments.length?this.each(dqt(Q,z)):aY(this.node(),Q).ease}};
var VPl={time:null,delay:0,duration:250,ease:function(z){return((z*=2)<=1?z*z*z:(z-=2)*z*z+2)/2}};
RZ.prototype.transition=function(z){var Q;if(z instanceof JT){var HF=z._id;z=z._name}else HF=++zlA,(Q=VPl).time=XB(),z=z==null?null:z+"";for(var GL=this._groups,CF=GL.length,mi=0;mi<CF;++mi)for(var zL=GL[mi],$d=zL.length,AC,KX=0;KX<$d;++KX)if(AC=zL[KX]){var xd=AC,D0=z,Pv=HF,RK=KX,QE=zL,Mj;if(!(Mj=Q))a:{Mj=void 0;for(var OD=HF;!(Mj=AC.__transition)||!(Mj=Mj[OD]);)if(!(AC=AC.parentNode)){Mj=(VPl.time=XB(),VPl);break a}}jkM(xd,D0,Pv,RK,QE,Mj)}return new JT(GL,this._parents,z,HF)};
["e","w"].map(Hd1);["n","s"].map(Hd1);"n e s w nw ne se sw".split(" ").map(Hd1);$ZX.prototype=function(){return new $ZX}.prototype={constructor:$ZX,
moveTo:function(z,Q){this._+="M"+(this._x0=this._x1=+z)+","+(this._y0=this._y1=+Q)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(z,Q){this._+="L"+(this._x1=+z)+","+(this._y1=+Q)},
bezierCurveTo:function(z,Q,HF,GL,CF,mi){this._+="C"+ +z+","+ +Q+","+ +HF+","+ +GL+","+(this._x1=+CF)+","+(this._y1=+mi)},
rect:function(z,Q,HF,GL){this._+="M"+(this._x0=this._x1=+z)+","+(this._y0=this._y1=+Q)+"h"+ +HF+"v"+ +GL+"h"+-HF+"Z"},
toString:function(){return this._}};
CT5.prototype=yJg.prototype={constructor:CT5,has:function(z){return" "+z in this},
get:function(z){return this[" "+z]},
set:function(z,Q){this[" "+z]=Q;return this},
remove:function(z){z=" "+z;return z in this&&delete this[z]},
clear:function(){for(var z in this)z[0]===" "&&delete this[z]},
keys:function(){var z=[],Q;for(Q in this)Q[0]===" "&&z.push(Q.slice(1));return z},
values:function(){var z=[],Q;for(Q in this)Q[0]===" "&&z.push(this[Q]);return z},
entries:function(){var z=[],Q;for(Q in this)Q[0]===" "&&z.push({key:Q.slice(1),value:this[Q]});return z},
size:function(){var z=0,Q;for(Q in this)Q[0]===" "&&++z;return z},
empty:function(){for(var z in this)if(z[0]===" ")return!1;return!0},
each:function(z){for(var Q in this)Q[0]===" "&&z(this[Q],Q.slice(1),this)}};
var zX=yJg.prototype;RdL.prototype=function(z,Q){var HF=new RdL;if(z instanceof RdL)z.each(function(mi){HF.add(mi)});
else if(z){var GL=-1,CF=z.length;if(Q==null)for(;++GL<CF;)HF.add(z[GL]);else for(;++GL<CF;)HF.add(Q(z[GL],GL,z))}return HF}.prototype={constructor:RdL,
has:zX.has,add:function(z){this[" "+z]=z;return this},
remove:zX.remove,clear:zX.clear,values:zX.keys,size:zX.size,empty:zX.empty,each:zX.each};var DwS={},Ku4={},F2v=NIl(",").parse,ZUq=NIl("\t").parse;fEg(F2v);fEg(ZUq);var I1=function(z,Q,HF){Q=new cTY(Q==null?kzZ:Q,HF==null?xqZ:HF,NaN,NaN,NaN,NaN);return z==null?Q:Q.addAll(z)}.prototype=cTY.prototype;
I1.copy=function(){var z=new cTY(this._x,this._y,this._x0,this._y0,this._x1,this._y1),Q=this._root,HF,GL;if(!Q)return z;if(!Q.length)return z._root=jSB(Q),z;for(HF=[{source:Q,target:z._root=Array(4)}];Q=HF.pop();)for(var CF=0;CF<4;++CF)if(GL=Q.source[CF])GL.length?HF.push({source:GL,target:Q.target[CF]=Array(4)}):Q.target[CF]=jSB(GL);return z};
I1.add=function(z){var Q=+this._x.call(null,z),HF=+this._y.call(null,z);return AJN(this.cover(Q,HF),Q,HF,z)};
I1.addAll=function(z){var Q,HF,GL=z.length,CF,mi,zL=Array(GL),$d=Array(GL),AC=Infinity,KX=Infinity,xd=-Infinity,D0=-Infinity;for(HF=0;HF<GL;++HF)isNaN(CF=+this._x.call(null,Q=z[HF]))||isNaN(mi=+this._y.call(null,Q))||(zL[HF]=CF,$d[HF]=mi,CF<AC&&(AC=CF),CF>xd&&(xd=CF),mi<KX&&(KX=mi),mi>D0&&(D0=mi));xd<AC&&(AC=this._x0,xd=this._x1);D0<KX&&(KX=this._y0,D0=this._y1);this.cover(AC,KX).cover(xd,D0);for(HF=0;HF<GL;++HF)AJN(this,zL[HF],$d[HF],z[HF]);return this};
I1.cover=function(z,Q){if(isNaN(z=+z)||isNaN(Q=+Q))return this;var HF=this._x0,GL=this._y0,CF=this._x1,mi=this._y1;if(isNaN(HF))CF=(HF=Math.floor(z))+1,mi=(GL=Math.floor(Q))+1;else if(HF>z||z>CF||GL>Q||Q>mi){var zL=CF-HF,$d=this._root,AC;switch(AC=(Q<(GL+mi)/2)<<1|z<(HF+CF)/2){case 0:do{var KX=Array(4);KX[AC]=$d;$d=KX}while(zL*=2,CF=HF+zL,mi=GL+zL,z>CF||Q>mi);break;case 1:do KX=Array(4),KX[AC]=$d,$d=KX;while(zL*=2,HF=CF-zL,mi=GL+zL,HF>z||Q>mi);break;case 2:do KX=Array(4),KX[AC]=$d,$d=KX;while(zL*=
2,CF=HF+zL,GL=mi-zL,z>CF||GL>Q);break;case 3:do KX=Array(4),KX[AC]=$d,$d=KX;while(zL*=2,HF=CF-zL,GL=mi-zL,HF>z||GL>Q)}this._root&&this._root.length&&(this._root=$d)}else return this;this._x0=HF;this._y0=GL;this._x1=CF;this._y1=mi;return this};
I1.data=function(){var z=[];this.visit(function(Q){if(!Q.length){do z.push(Q.data);while(Q=Q.next)}});
return z};
I1.extent=function(z){return arguments.length?this.cover(+z[0][0],+z[0][1]).cover(+z[1][0],+z[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
I1.find=function(z,Q,HF){var GL=this._x0,CF=this._y0,mi,zL,$d,AC,KX=this._x1,xd=this._y1,D0=[],Pv=this._root,RK;Pv&&D0.push(new us(Pv,GL,CF,KX,xd));HF==null?HF=Infinity:(GL=z-HF,CF=Q-HF,KX=z+HF,xd=Q+HF,HF*=HF);for(;RK=D0.pop();)if(!(!(Pv=RK.node)||(mi=RK.x0)>KX||(zL=RK.y0)>xd||($d=RK.x1)<GL||(AC=RK.y1)<CF))if(Pv.length){RK=(mi+$d)/2;var QE=(zL+AC)/2;D0.push(new us(Pv[3],RK,QE,$d,AC),new us(Pv[2],mi,QE,RK,AC),new us(Pv[1],RK,zL,$d,QE),new us(Pv[0],mi,zL,RK,QE));if(Pv=(Q>=QE)<<1|z>=RK)RK=D0[D0.length-
1],D0[D0.length-1]=D0[D0.length-1-Pv],D0[D0.length-1-Pv]=RK}else if(RK=z-+this._x.call(null,Pv.data),QE=Q-+this._y.call(null,Pv.data),RK=RK*RK+QE*QE,RK<HF){var Mj=Math.sqrt(HF=RK);GL=z-Mj;CF=Q-Mj;KX=z+Mj;xd=Q+Mj;Mj=Pv.data}return Mj};
I1.remove=function(z){if(isNaN(AC=+this._x.call(null,z))||isNaN(KX=+this._y.call(null,z)))return this;var Q,HF=this._root,GL,CF=this._x0,mi=this._y0,zL=this._x1,$d=this._y1,AC,KX,xd,D0,Pv,RK,QE;if(!HF)return this;if(HF.length)for(;;){(Pv=AC>=(xd=(CF+zL)/2))?CF=xd:zL=xd;(RK=KX>=(D0=(mi+$d)/2))?mi=D0:$d=D0;if(!(Q=HF,HF=HF[QE=RK<<1|Pv]))return this;if(!HF.length)break;if(Q[QE+1&3]||Q[QE+2&3]||Q[QE+3&3]){var Mj=Q;var OD=QE}}for(;HF.data!==z;)if(!(GL=HF,HF=HF.next))return this;(z=HF.next)&&delete HF.next;
if(GL)return z?GL.next=z:delete GL.next,this;if(!Q)return this._root=z,this;z?Q[QE]=z:delete Q[QE];(HF=Q[0]||Q[1]||Q[2]||Q[3])&&HF===(Q[3]||Q[2]||Q[1]||Q[0])&&!HF.length&&(Mj?Mj[OD]=HF:this._root=HF);return this};
I1.removeAll=function(z){for(var Q=0,HF=z.length;Q<HF;++Q)this.remove(z[Q]);return this};
I1.root=function(){return this._root};
I1.size=function(){var z=0;this.visit(function(Q){if(!Q.length){do++z;while(Q=Q.next)}});
return z};
I1.visit=function(z){var Q=[],HF,GL=this._root,CF,mi,zL,$d,AC;for(GL&&Q.push(new us(GL,this._x0,this._y0,this._x1,this._y1));HF=Q.pop();)if(!z(GL=HF.node,mi=HF.x0,zL=HF.y0,$d=HF.x1,AC=HF.y1)&&GL.length){HF=(mi+$d)/2;var KX=(zL+AC)/2;(CF=GL[3])&&Q.push(new us(CF,HF,KX,$d,AC));(CF=GL[2])&&Q.push(new us(CF,mi,KX,HF,AC));(CF=GL[1])&&Q.push(new us(CF,HF,zL,$d,KX));(CF=GL[0])&&Q.push(new us(CF,mi,zL,HF,KX))}};
I1.visitAfter=function(z){var Q=[],HF=[],GL;for(this._root&&Q.push(new us(this._root,this._x0,this._y0,this._x1,this._y1));GL=Q.pop();){var CF=GL.node;if(CF.length){var mi,zL=GL.x0,$d=GL.y0,AC=GL.x1,KX=GL.y1,xd=(zL+AC)/2,D0=($d+KX)/2;(mi=CF[0])&&Q.push(new us(mi,zL,$d,xd,D0));(mi=CF[1])&&Q.push(new us(mi,xd,$d,AC,D0));(mi=CF[2])&&Q.push(new us(mi,zL,D0,xd,KX));(mi=CF[3])&&Q.push(new us(mi,xd,D0,AC,KX))}HF.push(GL)}for(;GL=HF.pop();)z(GL.node,GL.x0,GL.y0,GL.x1,GL.y1);return this};
I1.x=function(z){return arguments.length?(this._x=z,this):this._x};
I1.y=function(z){return arguments.length?(this._y=z,this):this._y};
var VKq=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;pCL.prototype=gkX.prototype;gkX.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width==null?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision==null?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};
var $G0,K9A={"%":function(z,Q){return(z*100).toFixed(Q)},
b:function(z){return Math.round(z).toString(2)},
c:function(z){return z+""},
d:function(z){return Math.round(z).toString(10)},
e:function(z,Q){return z.toExponential(Q)},
f:function(z,Q){return z.toFixed(Q)},
g:function(z,Q){return z.toPrecision(Q)},
o:function(z){return Math.round(z).toString(8)},
p:function(z,Q){return vR3(z*100,Q)},
r:vR3,s:function(z,Q){var HF=VbM(z,Q);if(!HF)return z+"";var GL=HF[0];HF=HF[1];HF=HF-($G0=Math.max(-8,Math.min(8,Math.floor(HF/3)))*3)+1;var CF=GL.length;return HF===CF?GL:HF>CF?GL+Array(HF-CF+1).join("0"):HF>0?GL.slice(0,HF)+"."+GL.slice(HF):"0."+Array(1-HF).join("0")+VbM(z,Math.max(0,Q+HF-1))[0]},
X:function(z){return Math.round(z).toString(16).toUpperCase()},
x:function(z){return Math.round(z).toString(16)}},Hs7="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),TIO;
(function(z){return TIO=UqZ(z)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});lB.prototype={constructor:lB,reset:function(){this.s=this.t=0},
add:function(z){c$X(PT1,z,this.t);c$X(this,PT1.s,this.s);this.s?this.t+=PT1.t:this.s=PT1.t},
valueOf:function(){return this.s}};
var PT1=new lB,BV=Math.PI,Pw=BV/2,XmX=BV/4,QSg=BV*2,UZE=BV/180,sq=Math.abs,hqM=Math.atan,qsS=Math.atan2,uE=Math.cos,xi=Math.sin,hdD=Math.sqrt;new lB;new lB;new lB;var LuD=new lB;(function(z,Q,HF,GL){return function(CF){function mi(QM,eX){z(QM,eX)&&CF.point(QM,eX)}
function zL(QM,eX){Pv.point(QM,eX)}
function $d(){QY.point=zL;Pv.lineStart()}
function AC(){QY.point=mi;Pv.lineEnd()}
function KX(QM,eX){GR.push([QM,eX]);QE.point(QM,eX)}
function xd(){QE.lineStart();GR=[]}
function D0(){KX(GR[0][0],GR[0][1]);QE.lineEnd();var QM=QE.clean(),eX=RK.result(),SE=eX.length,$r;GR.pop();OD.push(GR);GR=null;if(SE)if(QM&1){if(SE=eX[0],(eX=SE.length-1)>0){Mj||(CF.polygonStart(),Mj=!0);CF.lineStart();for(QM=0;QM<eX;++QM)CF.point(($r=SE[QM])[0],$r[1]);CF.lineEnd()}}else SE>1&&QM&2&&eX.push(eX.pop().concat(eX.shift())),TO.push(eX.filter(mq0))}
var Pv=Q(CF),RK=L_S(),QE=Q(RK),Mj=!1,OD,TO,GR,QY={point:mi,lineStart:$d,lineEnd:AC,polygonStart:function(){QY.point=KX;QY.lineStart=xd;QY.lineEnd=D0;TO=[];OD=[]},
polygonEnd:function(){QY.point=mi;QY.lineStart=$d;QY.lineEnd=AC;var QM=TO,eX=QM.length;var SE=-1;for(var $r=0,Q1,xO;++SE<eX;)$r+=QM[SE].length;for(Q1=Array($r);--eX>=0;)for(xO=QM[eX],SE=xO.length;--SE>=0;)Q1[--$r]=xO[SE];TO=Q1;QM=OD;eX=GL[0];$r=GL[1];var gS=xi($r);SE=[xi(eX),-uE(eX),0];xO=Q1=0;LuD.reset();gS===1?$r=Pw+1E-6:gS===-1&&($r=-Pw-1E-6);gS=0;for(var rq=QM.length;gS<rq;++gS)if(WV=(ZY=QM[gS]).length){var ZY,WV,SV=ZY[WV-1],gf=SV[0],NA=SV[1]/2+XmX,uIM=xi(NA),J$S=uE(NA);for(NA=0;NA<WV;++NA,gf=
MP5,uIM=sk3,J$S=wH,SV=IO5){var IO5=ZY[NA],MP5=IO5[0];wH=IO5[1]/2+XmX;var sk3=xi(wH),wH=uE(wH),K9=MP5-gf,mZL=K9>=0?1:-1,wCC=mZL*K9,rXE=wCC>BV;uIM*=sk3;LuD.add(qsS(uIM*mZL*xi(wCC),J$S*wH+uIM*uE(wCC)));Q1+=rXE?K9+mZL*QSg:K9;rXE^gf>=eX^MP5>=eX&&(SV=gCN(pm7(SV),pm7(IO5)),isB(SV),gf=gCN(SE,SV),isB(gf),gf=(rXE^K9>=0?-1:1)*UQf(gf[2]),$r>gf||$r===gf&&(SV[0]||SV[1]))&&(xO+=rXE^K9>=0?1:-1)}}QM=(Q1<-1E-6||Q1<1E-6&&LuD<-1E-6)^xO&1;TO.length?(Mj||(CF.polygonStart(),Mj=!0),MK1(TO,w4q,QM,HF,CF)):QM&&(Mj||(CF.polygonStart(),
Mj=!0),CF.lineStart(),HF(null,null,1,CF),CF.lineEnd());Mj&&(CF.polygonEnd(),Mj=!1);TO=OD=null},
sphere:function(){CF.polygonStart();CF.lineStart();HF(null,null,1,CF);CF.lineEnd();CF.polygonEnd()}};
return QY}})(function(){return!0},function(z){var Q=NaN,HF=NaN,GL=NaN,CF;
return{lineStart:function(){z.lineStart();CF=1},
point:function(mi,zL){var $d=mi>0?BV:-BV,AC=sq(mi-Q);if(sq(AC-BV)<1E-6)z.point(Q,HF=(HF+zL)/2>0?Pw:-Pw),z.point(GL,HF),z.lineEnd(),z.lineStart(),z.point($d,HF),z.point(mi,HF),CF=0;else if(GL!==$d&&AC>=BV){sq(Q-GL)<1E-6&&(Q-=GL*1E-6);sq(mi-$d)<1E-6&&(mi-=$d*1E-6);AC=Q;var KX=HF,xd=mi,D0,Pv,RK=xi(AC-xd);HF=sq(RK)>1E-6?hqM((xi(KX)*(Pv=uE(zL))*xi(xd)-xi(zL)*(D0=uE(KX))*xi(AC))/(D0*Pv*RK)):(KX+zL)/2;z.point(GL,HF);z.lineEnd();z.lineStart();z.point($d,HF);CF=0}z.point(Q=mi,HF=zL);GL=$d},
lineEnd:function(){z.lineEnd();Q=HF=NaN},
clean:function(){return 2-CF}}},function(z,Q,HF,GL){z==null?(HF*=Pw,GL.point(-BV,HF),GL.point(0,HF),GL.point(BV,HF),GL.point(BV,0),GL.point(BV,-HF),GL.point(0,-HF),GL.point(-BV,-HF),GL.point(-BV,0),GL.point(-BV,HF)):sq(z[0]-Q[0])>1E-6?(z=z[0]<Q[0]?BV:-BV,HF=HF*z/2,GL.point(-z,HF),GL.point(0,HF),GL.point(z,HF)):GL.point(Q[0],Q[1])},[-BV,
-Pw]);new lB;new lB;new lB;new lB;idF.prototype={constructor:idF,point:function(z,Q){this.stream.point(z,Q)},
sphere:function(){this.stream.sphere()},
lineStart:function(){this.stream.lineStart()},
lineEnd:function(){this.stream.lineEnd()},
polygonStart:function(){this.stream.polygonStart()},
polygonEnd:function(){this.stream.polygonEnd()}};
uE(30*UZE);(function(z){return function(Q){var HF=new idF,GL;for(GL in z)HF[GL]=z[GL];HF.stream=Q;return HF}})({point:function(z,Q){this.stream.point(z*UZE,Q*UZE)}});
oCd(function(z){return hdD(2/(1+z))}).invert=C3(function(z){return 2*UQf(z/2)});
oCd(function(z){return(z=z>1?0:z<-1?BV:Math.acos(z))&&z/xi(z)}).invert=C3(function(z){return z});
hdD(3);C3(hqM);C3(UQf);C3(function(z){return 2*hqM(z)});
R9.prototype=afX.prototype={constructor:R9,count:function(){return this.eachAfter(P$Z)},
each:function(z){var Q,HF=[this],GL;do{var CF=HF.reverse();for(HF=[];Q=CF.pop();)if(z(Q),Q=Q.children){var mi=0;for(GL=Q.length;mi<GL;++mi)HF.push(Q[mi])}}while(HF.length);return this},
eachAfter:function(z){for(var Q,HF=[this],GL=[],CF,mi;Q=HF.pop();)if(GL.push(Q),Q=Q.children)for(CF=0,mi=Q.length;CF<mi;++CF)HF.push(Q[CF]);for(;Q=GL.pop();)z(Q);return this},
eachBefore:function(z){for(var Q,HF=[this],GL;Q=HF.pop();)if(z(Q),Q=Q.children)for(GL=Q.length-1;GL>=0;--GL)HF.push(Q[GL]);return this},
sum:function(z){return this.eachAfter(function(Q){for(var HF=+z(Q.data)||0,GL=Q.children,CF=GL&&GL.length;--CF>=0;)HF+=GL[CF].value;Q.value=HF})},
sort:function(z){return this.eachBefore(function(Q){Q.children&&Q.children.sort(z)})},
path:function(z){var Q=this;var HF=Q;var GL=z;if(HF!==GL){var CF=HF.ancestors(),mi=GL.ancestors(),zL=null;HF=CF.pop();for(GL=mi.pop();HF===GL;)zL=HF,HF=CF.pop(),GL=mi.pop();HF=zL}for(GL=[Q];Q!==HF;)Q=Q.parent,GL.push(Q);for(Q=GL.length;z!==HF;)GL.splice(Q,0,z),z=z.parent;return GL},
ancestors:function(){for(var z=this,Q=[z];z=z.parent;)Q.push(z);return Q},
links:function(){var z=this,Q=[];z.each(function(HF){HF!==z&&Q.push({source:HF.parent,target:HF})});
return Q},
copy:function(){return afX(this).eachBefore(rsU)}};
(function(z,Q){this._=z;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=Q}).prototype=Object.create(R9.prototype);
var Gm4=new Date,okY=new Date,F9S=po(function(){},function(z,Q){z.setTime(+z+Q)},function(z,Q){return Q-z});
F9S.every=function(z){z=Math.floor(z);return isFinite(z)&&z>0?z>1?po(function(Q){Q.setTime(Math.floor(Q/z)*z)},function(Q,HF){Q.setTime(+Q+HF*z)},function(Q,HF){return(HF-Q)/z}):F9S:null};
po(function(z){z.setTime(Math.floor(z/1E3)*1E3)},function(z,Q){z.setTime(+z+Q*1E3)},function(z,Q){return(Q-z)/1E3},function(z){return z.getUTCSeconds()});
po(function(z){z.setTime(Math.floor(z/6E4)*6E4)},function(z,Q){z.setTime(+z+Q*6E4)},function(z,Q){return(Q-z)/6E4},function(z){return z.getMinutes()});
po(function(z){var Q=z.getTimezoneOffset()*6E4%36E5;Q<0&&(Q+=36E5);z.setTime(Math.floor((+z-Q)/36E5)*36E5+Q)},function(z,Q){z.setTime(+z+Q*36E5)},function(z,Q){return(Q-z)/36E5},function(z){return z.getHours()});
var ktS=po(function(z){z.setHours(0,0,0,0)},function(z,Q){z.setDate(z.getDate()+Q)},function(z,Q){return(Q-z-(Q.getTimezoneOffset()-z.getTimezoneOffset())*6E4)/864E5},function(z){return z.getDate()-1}),rJG=Wh(0),ajX=Wh(1);
Wh(2);Wh(3);var ljM=Wh(4);Wh(5);Wh(6);po(function(z){z.setDate(1);z.setHours(0,0,0,0)},function(z,Q){z.setMonth(z.getMonth()+Q)},function(z,Q){return Q.getMonth()-z.getMonth()+(Q.getFullYear()-z.getFullYear())*12},function(z){return z.getMonth()});
var jj=po(function(z){z.setMonth(0,1);z.setHours(0,0,0,0)},function(z,Q){z.setFullYear(z.getFullYear()+Q)},function(z,Q){return Q.getFullYear()-z.getFullYear()},function(z){return z.getFullYear()});
jj.every=function(z){return isFinite(z=Math.floor(z))&&z>0?po(function(Q){Q.setFullYear(Math.floor(Q.getFullYear()/z)*z);Q.setMonth(0,1);Q.setHours(0,0,0,0)},function(Q,HF){Q.setFullYear(Q.getFullYear()+HF*z)}):null};
po(function(z){z.setUTCSeconds(0,0)},function(z,Q){z.setTime(+z+Q*6E4)},function(z,Q){return(Q-z)/6E4},function(z){return z.getUTCMinutes()});
po(function(z){z.setUTCMinutes(0,0,0)},function(z,Q){z.setTime(+z+Q*36E5)},function(z,Q){return(Q-z)/36E5},function(z){return z.getUTCHours()});
var ell=po(function(z){z.setUTCHours(0,0,0,0)},function(z,Q){z.setUTCDate(z.getUTCDate()+Q)},function(z,Q){return(Q-z)/864E5},function(z){return z.getUTCDate()-1}),W2U=Bh(0),qqF=Bh(1);
Bh(2);Bh(3);var eqD=Bh(4);Bh(5);Bh(6);po(function(z){z.setUTCDate(1);z.setUTCHours(0,0,0,0)},function(z,Q){z.setUTCMonth(z.getUTCMonth()+Q)},function(z,Q){return Q.getUTCMonth()-z.getUTCMonth()+(Q.getUTCFullYear()-z.getUTCFullYear())*12},function(z){return z.getUTCMonth()});
var dG=po(function(z){z.setUTCMonth(0,1);z.setUTCHours(0,0,0,0)},function(z,Q){z.setUTCFullYear(z.getUTCFullYear()+Q)},function(z,Q){return Q.getUTCFullYear()-z.getUTCFullYear()},function(z){return z.getUTCFullYear()});
dG.every=function(z){return isFinite(z=Math.floor(z))&&z>0?po(function(Q){Q.setUTCFullYear(Math.floor(Q.getUTCFullYear()/z)*z);Q.setUTCMonth(0,1);Q.setUTCHours(0,0,0,0)},function(Q,HF){Q.setUTCFullYear(Q.getUTCFullYear()+HF*z)}):null};
var lfd={"-":"",_:" ",0:"0"},o6=/^\s*\d+/,IEj=/^%/,ut0=/[\\^$*+?|[\]().{}]/g,W1C;(function(z){W1C=BYS(z);$V6=W1C.utcFormat;KRC=W1C.utcParse;return W1C})({dateTime:"%x, %X",
date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),shortDays:"Sun Mon Tue Wed Thu Fri Sat".split(" "),months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")});Date.prototype.toISOString||$V6("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||KRC("%Y-%m-%dT%H:%M:%S.%LZ");ar("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
ar("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");ar("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");ar("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");ar("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");ar("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");ar("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
ar("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");ar("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");ar("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");ar("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");ar("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var tcZ=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ar);T9(tcZ);var YTT=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ar);T9(YTT);var OUO=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ar);T9(OUO);var STq=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ar);
T9(STq);var ERb=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ar);T9(ERb);var yJb=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ar);T9(yJb);var bUT=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ar);T9(bUT);var NI1=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ar);T9(NI1);var DwT=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ar);T9(DwT);var fEb=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ar);T9(fEb);var AJZ=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ar);T9(AJZ);var jSv=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ar);T9(jSv);var vRU=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ar);T9(vRU);var dGt=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ar);T9(dGt);var HsO=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ar);T9(HsO);var $G5=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ar);T9($G5);var K9q=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ar);T9(K9q);var c$t=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ar);T9(c$t);var pmO=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ar);T9(pmO);var gCZ=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ar);T9(gCZ);var isv=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ar);T9(isv);var GtS=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ar);T9(GtS);var oC0=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ar);T9(oC0);var qsT=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ar);T9(qsT);var aft=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ar);T9(aft);var lf0=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ar);T9(lf0);var el1=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ar);T9(el1);RqY(LX(300,.5,0),LX(-240,.5,1));RqY(LX(-100,.75,.35),LX(80,1.5,.8));RqY(LX(260,.75,.35),LX(80,1.5,.8));LX();FO();mQi(ar("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
mQi(ar("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
mQi(ar("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
mQi(ar("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
mGB.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(z,Q){z=+z;Q=+Q;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(z,Q):this._context.moveTo(z,Q);break;case 1:this._point=2;default:this._context.lineTo(z,Q)}}};
(function(z){function Q(HF){return new wmA(z(HF))}
Q._curve=z;return Q})(function(z){return new mGB(z)});
wmA.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(z,Q){this._curve.point(Q*Math.sin(z),Q*-Math.cos(z))}};
xZ4.prototype={lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},
lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:km4(this,this._t0,uTN(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(z,Q){var HF=NaN;z=+z;Q=+Q;if(z!==this._x1||Q!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(z,Q):this._context.moveTo(z,Q);break;case 1:this._point=2;break;case 2:this._point=3;km4(this,uTN(this,HF=P9S(this,z,Q)),HF);break;default:km4(this,this._t0,HF=P9S(this,z,Q))}this._x0=this._x1;this._x1=z;this._y0=this._y1;this._y1=Q;this._t0=HF}}};
(function(z){this._context=new IfS(z)}.prototype=Object.create(xZ4.prototype)).point=function(z,Q){xZ4.prototype.point.call(this,Q,z)};
IfS.prototype={moveTo:function(z,Q){this._context.moveTo(Q,z)},
closePath:function(){this._context.closePath()},
lineTo:function(z,Q){this._context.lineTo(Q,z)},
bezierCurveTo:function(z,Q,HF,GL,CF,mi){this._context.bezierCurveTo(Q,z,GL,HF,mi,CF)}};
L3.prototype={constructor:L3,scale:function(z){return z===1?this:new L3(this.k*z,this.x,this.y)},
translate:function(z,Q){return z===0&Q===0?this:new L3(this.k,this.x+this.k*z,this.y+this.k*Q)},
apply:function(z){return[z[0]*this.k+this.x,z[1]*this.k+this.y]},
invert:function(z){return[(z[0]-this.x)/this.k,(z[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new L3(1,0,0);r65=nt;w5.svg=w5.svg;w5.xhtml=w5.xhtml;w5.xlink=w5.xlink;w5.xml=w5.xml;w5.xmlns=w5.xmlns})();/*

 Hammer.JS - v2.0.2 - 2014-07-26
 http://hammerjs.github.io/

 Copyright (c) 2014 Jorik Tangelder <j.tangelder@gmail.com>;
 Licensed under the MIT license */
var cWl="hammer_"+(Math.random()*1E6|0),pId=function(){var d=document||document;if(!d[cWl]){var H=function(){(function(K,c,p,g){function a(u1,ZD,E5){return setTimeout(U(u1,E5),ZD)}
function e(u1,ZD,E5){return Array.isArray(u1)?(k(u1,E5[ZD],E5),!0):!1}
function k(u1,ZD,E5){var RC;if(u1)if(u1.forEach)u1.forEach(ZD,E5);else if(u1.length!==g){var eT=0;for(RC=u1.length;eT<RC;eT++)ZD.call(E5,u1[eT],eT,u1)}else for(eT in u1)u1.hasOwnProperty(eT)&&ZD.call(E5,u1[eT],eT,u1)}
function C(u1,ZD,E5){for(var RC=Object.keys(ZD),eT=0,We=RC.length;eT<We;eT++)if(!E5||E5&&u1[RC[eT]]===g)u1[RC[eT]]=ZD[RC[eT]];return u1}
function R(u1,ZD){return C(u1,ZD,!0)}
function V(u1,ZD,E5){ZD=ZD.prototype;var RC=u1.prototype=Object.create(ZD);RC.constructor=u1;RC._super=ZD;E5&&C(RC,E5)}
function U(u1,ZD){return function(){return u1.apply(ZD,arguments)}}
function L(u1,ZD){return typeof u1=="function"?u1.apply(ZD?ZD[0]||g:g,ZD):u1}
function w(u1,ZD,E5){k(J(ZD),function(RC){u1.addEventListener(RC,E5,!1)})}
function W(u1,ZD,E5){k(J(ZD),function(RC){u1.removeEventListener(RC,E5,!1)})}
function J(u1){return u1.trim().split(/\s+/g)}
function F(u1,ZD,E5){if(u1.indexOf&&!E5)return u1.indexOf(ZD);for(var RC=0,eT=u1.length;RC<eT;RC++)if(E5&&u1[RC][E5]==ZD||!E5&&u1[RC]===ZD)return RC;return-1}
function Y(u1,ZD,E5){for(var RC=[],eT=[],We=0,wq=u1.length;We<wq;We++){var MU=ZD?u1[We][ZD]:u1[We];F(eT,MU)<0&&RC.push(u1[We]);eT[We]=MU}E5&&(RC=ZD?RC.sort(function(LX,XO){return LX[ZD]>XO[ZD]}):RC.sort());
return RC}
function A(u1,ZD){for(var E5,RC=ZD[0].toUpperCase()+ZD.slice(1),eT=0,We=oC.length;eT<We;eT++)if(E5=(E5=oC[eT])?E5+RC:ZD,E5 in u1)return E5;return g}
function E(u1,ZD){var E5=this;this.manager=u1;this.callback=ZD;this.element=u1.element;this.target=u1.options.inputTarget;this.domHandler=function(RC){L(u1.options.enable,[u1])&&E5.handler(RC)};
this.evEl&&w(this.element,this.evEl,this.domHandler);this.evTarget&&w(this.target,this.evTarget,this.domHandler);this.evWin&&w(K,this.evWin,this.domHandler)}
function N(u1){var ZD;uk?ZD=YY:L5?ZD=FM:nt?ZD=gA:ZD=LF;return new ZD(u1,y)}
function y(u1,ZD,E5){var RC=E5.pointers.length,eT=E5.changedPointers.length,We=ZD&1&&RC-eT===0;E5.isFirst=!!We;E5.isFinal=!!(ZD&12&&RC-eT===0);We&&(u1.session={});E5.eventType=ZD;ZD=u1.session;RC=E5.pointers;eT=RC.length;ZD.firstInput||(ZD.firstInput=v(E5));eT>1&&!ZD.firstMultiple?ZD.firstMultiple=v(E5):eT===1&&(ZD.firstMultiple=!1);We=ZD.firstInput;var wq=(eT=ZD.firstMultiple)?eT.center:We.center,MU=E5.center=el(RC);E5.timeStamp=IC();E5.deltaTime=E5.timeStamp-We.timeStamp;E5.angle=Mf(wq,MU);E5.distance=
V4(wq,MU);We=E5.center;wq=ZD.offsetDelta||{};MU=ZD.prevDelta||{};var LX=ZD.prevInput||{};if(E5.eventType===1||LX.eventType===4)MU=ZD.prevDelta={x:LX.deltaX||0,y:LX.deltaY||0},wq=ZD.offsetDelta={x:We.x,y:We.y};E5.deltaX=MU.x+(We.x-wq.x);E5.deltaY=MU.y+(We.y-wq.y);E5.offsetDirection=l1(E5.deltaX,E5.deltaY);eT?(We=eT.pointers,We=V4(RC[0],RC[1],FO)/V4(We[0],We[1],FO)):We=1;E5.scale=We;eT?(eT=eT.pointers,RC=Mf(RC[1],RC[0],FO)-Mf(eT[1],eT[0],FO)):RC=0;E5.rotation=RC;wq=ZD.lastInterval||E5;RC=E5.timeStamp-
wq.timeStamp;E5.eventType!=8&&(RC>25||wq.velocity===g)?(We=wq.deltaX-E5.deltaX,wq=wq.deltaY-E5.deltaY,MU=We/RC||0,LX=wq/RC||0,RC=MU,eT=LX,MU=uM(MU)>uM(LX)?MU:LX,We=l1(We,wq),ZD.lastInterval=E5):(MU=wq.velocity,RC=wq.velocityX,eT=wq.velocityY,We=wq.direction);E5.velocity=MU;E5.velocityX=RC;E5.velocityY=eT;E5.direction=We;ZD=u1.element;a:{for(RC=E5.srcEvent.target;RC;){if(RC==ZD){RC=!0;break a}RC=RC.parentNode}RC=!1}RC&&(ZD=E5.srcEvent.target);E5.target=ZD;u1.emit("hammer.input",E5);u1.recognize(E5);
u1.session.prevInput=E5}
function v(u1){for(var ZD=[],E5=0;E5<u1.pointers.length;E5++)ZD[E5]={clientX:RZ(u1.pointers[E5].clientX),clientY:RZ(u1.pointers[E5].clientY)};return{timeStamp:IC(),pointers:ZD,center:el(ZD),deltaX:u1.deltaX,deltaY:u1.deltaY}}
function el(u1){var ZD=u1.length;if(ZD===1)return{x:RZ(u1[0].clientX),y:RZ(u1[0].clientY)};for(var E5=0,RC=0,eT=0;eT<ZD;eT++)E5+=u1[eT].clientX,RC+=u1[eT].clientY;return{x:RZ(E5/ZD),y:RZ(RC/ZD)}}
function l1(u1,ZD){return u1===ZD?1:uM(u1)>=uM(ZD)?u1>0?2:4:ZD>0?8:16}
function V4(u1,ZD,E5){E5||(E5=Yd);var RC=ZD[E5[0]]-u1[E5[0]];u1=ZD[E5[1]]-u1[E5[1]];return Math.sqrt(RC*RC+u1*u1)}
function Mf(u1,ZD,E5){E5||(E5=Yd);return Math.atan2(ZD[E5[1]]-u1[E5[1]],ZD[E5[0]]-u1[E5[0]])*180/Math.PI}
function LF(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;E.apply(this,arguments)}
function YY(){this.evEl=Lz;this.evWin=p4;E.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function FM(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};E.apply(this,arguments)}
function gA(){E.apply(this,arguments);var u1=U(this.handler,this);this.touch=new FM(this.manager,u1);this.mouse=new LF(this.manager,u1)}
function JN(u1,ZD){this.manager=u1;this.set(ZD)}
function eS(u1){if(u1.indexOf("none")>-1)return"none";var ZD=u1.indexOf("pan-x")>-1,E5=u1.indexOf("pan-y")>-1;return ZD&&E5?"pan-x pan-y":ZD||E5?ZD?"pan-x":"pan-y":u1.indexOf("manipulation")>-1?"manipulation":"auto"}
function vF(u1){this.id=Lt++;this.manager=null;this.options=R(u1||{},this.defaults);u1=this.options.enable;this.options.enable=u1===g?!0:u1;this.state=1;this.simultaneous={};this.requireFail=[]}
function CX(u1){return u1==16?"down":u1==8?"up":u1==2?"left":u1==4?"right":""}
function kd(u1,ZD){return(ZD=ZD.manager)?ZD.get(u1):u1}
function BB(){vF.apply(this,arguments)}
function ug(){BB.apply(this,arguments);this.pY=this.pX=null}
function fX(){BB.apply(this,arguments)}
function pF(){vF.apply(this,arguments);this._input=this._timer=null}
function dA(){BB.apply(this,arguments)}
function U3(){BB.apply(this,arguments)}
function lg(){vF.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function hN(u1,ZD){ZD=ZD||{};var E5=ZD.recognizers;ZD.recognizers=E5===g?hN.defaults.preset:E5;return new Hv(u1,ZD)}
function Hv(u1,ZD){ZD=ZD||{};this.options=R(ZD,hN.defaults);this.options.inputTarget=this.options.inputTarget||u1;this.handlers={};this.session={};this.recognizers=[];this.element=u1;this.input=N(this);this.touchAction=new JN(this,this.options.touchAction);$s(this,!0);k(ZD.recognizers,function(E5){var RC=this.add(new E5[0](E5[1]));E5[2]&&RC.recognizeWith(E5[2]);E5[3]&&RC.requireFailure(E5[2])},this)}
function $s(u1,ZD){var E5=u1.element;k(u1.options.cssProps,function(RC,eT){E5.style[A(E5.style,eT)]=ZD?RC:""})}
function dq(u1,ZD){var E5=c.createEvent("Event");E5.initEvent(u1,!0,!0);E5.gesture=ZD;ZD.target.dispatchEvent(E5)}
var oC=" webkit moz MS ms o".split(" "),NU=c.createElement("div"),RZ=Math.round,uM=Math.abs,IC=Date.now,Lt=1,qj=/mobile|tablet|ip(ad|hone|od)|android/i,nt="ontouchstart"in K,uk=A(K,"PointerEvent")!==g,L5=nt&&qj.test(navigator.userAgent),Yd=["x","y"],FO=["clientX","clientY"];E.prototype={handler:function(){},
destroy:function(){this.evEl&&W(this.element,this.evEl,this.domHandler);this.evTarget&&W(this.target,this.evTarget,this.domHandler);this.evWin&&W(K,this.evWin,this.domHandler)}};
var EU={mousedown:1,mousemove:2,mouseup:4};V(LF,E,{handler:function(u1){var ZD=EU[u1.type];ZD&1&&u1.button===0&&(this.pressed=!0);ZD&2&&u1.which!==1&&(ZD=4);this.pressed&&this.allow&&(ZD&4&&(this.pressed=!1),this.callback(this.manager,ZD,{pointers:[u1],changedPointers:[u1],pointerType:"mouse",srcEvent:u1}))}});
var mr={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},p6={2:"touch",3:"pen",4:"mouse",5:"kinect"},Lz="pointerdown",p4="pointermove pointerup pointercancel";K.MSPointerEvent&&(Lz="MSPointerDown",p4="MSPointerMove MSPointerUp MSPointerCancel");V(YY,E,{handler:function(u1){var ZD=this.store,E5=!1,RC=u1.type.toLowerCase().replace("ms","");RC=mr[RC];var eT=p6[u1.pointerType]||u1.pointerType;RC&1&&(u1.button===0||eT=="touch")?ZD.push(u1):RC&12&&(E5=!0);var We=F(ZD,u1.pointerId,"pointerId");
We<0||(ZD[We]=u1,this.callback(this.manager,RC,{pointers:ZD,changedPointers:[u1],pointerType:eT,srcEvent:u1}),E5&&ZD.splice(We,1))}});
var Xq={touchstart:1,touchmove:2,touchend:4,touchcancel:8};V(FM,E,{handler:function(u1){var ZD=Xq[u1.type];var E5=Array.prototype.slice.call(u1.touches,0);var RC=this.targetIds;if(ZD&3&&E5.length===1)RC[E5[0].identifier]=!0,RC=[E5,E5];else{var eT,We=Array.prototype.slice.call(u1.targetTouches,0),wq=Array.prototype.slice.call(u1.changedTouches,0),MU=[];if(ZD===1)for(E5=0,eT=We.length;E5<eT;E5++)RC[We[E5].identifier]=!0;E5=0;for(eT=wq.length;E5<eT;E5++)RC[wq[E5].identifier]&&MU.push(wq[E5]),ZD&12&&
delete RC[wq[E5].identifier];RC=MU.length?[Y(We.concat(MU),"identifier",!0),MU]:void 0}RC&&this.callback(this.manager,ZD,{pointers:RC[0],changedPointers:RC[1],pointerType:"touch",srcEvent:u1})}});
V(gA,E,{handler:function(u1,ZD,E5){var RC=E5.pointerType=="mouse";if(E5.pointerType=="touch")this.mouse.allow=!1;else if(RC&&!this.mouse.allow)return;ZD&12&&(this.mouse.allow=!0);this.callback(u1,ZD,E5)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var ds=A(NU.style,"touchAction"),Fi=ds!==g;JN.prototype={set:function(u1){u1=="compute"&&(u1=this.compute());Fi&&(this.manager.element.style[ds]=u1);this.actions=u1.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var u1=[];k(this.manager.recognizers,function(ZD){L(ZD.options.enable,[ZD])&&(u1=u1.concat(ZD.getTouchAction()))});
return eS(u1.join(" "))},
preventDefaults:function(u1){if(!Fi){var ZD=u1.srcEvent;u1=u1.offsetDirection;if(this.manager.session.prevented)ZD.preventDefault();else{var E5=this.actions,RC=E5.indexOf("none")>-1,eT=E5.indexOf("pan-y")>-1;E5=E5.indexOf("pan-x")>-1;if(RC||eT&&E5||eT&&u1&6||E5&&u1&24)return this.preventSrc(ZD)}}},
preventSrc:function(u1){this.manager.session.prevented=!0;u1.preventDefault()}};
vF.prototype={defaults:{},set:function(u1){C(this.options,u1);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(u1){if(e(u1,"recognizeWith",this))return this;var ZD=this.simultaneous;u1=kd(u1,this);ZD[u1.id]||(ZD[u1.id]=u1,u1.recognizeWith(this));return this},
dropRecognizeWith:function(u1){if(e(u1,"dropRecognizeWith",this))return this;u1=kd(u1,this);delete this.simultaneous[u1.id];return this},
requireFailure:function(u1){if(e(u1,"requireFailure",this))return this;var ZD=this.requireFail;u1=kd(u1,this);F(ZD,u1)===-1&&(ZD.push(u1),u1.requireFailure(this));return this},
dropRequireFailure:function(u1){if(e(u1,"dropRequireFailure",this))return this;u1=kd(u1,this);u1=F(this.requireFail,u1);u1>-1&&this.requireFail.splice(u1,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(u1){return!!this.simultaneous[u1.id]},
emit:function(u1){function ZD(eT){E5.manager.emit(E5.options.event+(eT?RC&16?"cancel":RC&8?"end":RC&4?"move":RC&2?"start":"":""),u1)}
var E5=this,RC=this.state;RC<8&&ZD(!0);ZD();RC>=8&&ZD(!0)},
tryEmit:function(u1){if(this.canEmit())return this.emit(u1);this.state=32},
canEmit:function(){for(var u1=0;u1<this.requireFail.length;u1++)if(!(this.requireFail[u1].state&33))return!1;return!0},
recognize:function(u1){u1=C({},u1);L(this.options.enable,[this,u1])?(this.state&56&&(this.state=1),this.state=this.process(u1),this.state&30&&this.tryEmit(u1)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
V(BB,vF,{defaults:{pointers:1},attrTest:function(u1){var ZD=this.options.pointers;return ZD===0||u1.pointers.length===ZD},
process:function(u1){var ZD=this.state,E5=u1.eventType,RC=ZD&6;u1=this.attrTest(u1);return RC&&(E5&8||!u1)?ZD|16:RC||u1?E5&4?ZD|8:ZD&2?ZD|4:2:32}});
V(ug,BB,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var u1=this.options.direction;if(u1===30)return["none"];var ZD=[];u1&6&&ZD.push("pan-y");u1&24&&ZD.push("pan-x");return ZD},
directionTest:function(u1){var ZD=this.options,E5=!0,RC=u1.distance,eT=u1.direction,We=u1.deltaX,wq=u1.deltaY;eT&ZD.direction||(ZD.direction&6?(eT=We===0?1:We<0?2:4,E5=We!=this.pX,RC=Math.abs(u1.deltaX)):(eT=wq===0?1:wq<0?8:16,E5=wq!=this.pY,RC=Math.abs(u1.deltaY)));u1.direction=eT;return E5&&RC>ZD.threshold&&eT&ZD.direction},
attrTest:function(u1){return BB.prototype.attrTest.call(this,u1)&&(this.state&2||!(this.state&2)&&this.directionTest(u1))},
emit:function(u1){this.pX=u1.deltaX;this.pY=u1.deltaY;var ZD=CX(u1.direction);ZD&&this.manager.emit(this.options.event+ZD,u1);this._super.emit.call(this,u1)}});
V(fX,BB,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(u1){return this._super.attrTest.call(this,u1)&&(Math.abs(u1.scale-1)>this.options.threshold||this.state&2)},
emit:function(u1){this._super.emit.call(this,u1);u1.scale!==1&&this.manager.emit(this.options.event+(u1.scale<1?"in":"out"),u1)}});
V(pF,vF,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(u1){var ZD=this.options,E5=u1.pointers.length===ZD.pointers,RC=u1.distance<ZD.threshold,eT=u1.deltaTime>ZD.time;this._input=u1;if(!RC||!E5||u1.eventType&12&&!eT)this.reset();else if(u1.eventType&1)this.reset(),this._timer=a(function(){this.state=8;this.tryEmit()},ZD.time,this);
else if(u1.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(u1){this.state===8&&(u1&&u1.eventType&4?this.manager.emit(this.options.event+"up",u1):(this._input.timeStamp=IC(),this.manager.emit(this.options.event,this._input)))}});
V(dA,BB,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(u1){return this._super.attrTest.call(this,u1)&&(Math.abs(u1.rotation)>this.options.threshold||this.state&2)}});
V(U3,BB,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return ug.prototype.getTouchAction.call(this)},
attrTest:function(u1){var ZD=this.options.direction;if(ZD&30)var E5=u1.velocity;else ZD&6?E5=u1.velocityX:ZD&24&&(E5=u1.velocityY);return this._super.attrTest.call(this,u1)&&ZD&u1.direction&&uM(E5)>this.options.velocity&&u1.eventType&4},
emit:function(u1){var ZD=CX(u1.direction);ZD&&this.manager.emit(this.options.event+ZD,u1);this.manager.emit(this.options.event,u1)}});
V(lg,vF,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(u1){var ZD=this.options,E5=u1.pointers.length===ZD.pointers,RC=u1.distance<ZD.threshold,eT=u1.deltaTime<ZD.time;this.reset();if(u1.eventType&1&&this.count===0)return this.failTimeout();if(RC&&eT&&E5){if(u1.eventType!=4)return this.failTimeout();E5=this.pTime?u1.timeStamp-this.pTime<ZD.interval:!0;RC=!this.pCenter||V4(this.pCenter,u1.center)<ZD.posThreshold;this.pTime=u1.timeStamp;this.pCenter=u1.center;RC&&E5?this.count+=1:this.count=1;this._input=u1;if(this.count%ZD.taps===0)return this.hasRequireFailures()?
(this._timer=a(function(){this.state=8;this.tryEmit()},ZD.interval,this),2):8}return 32},
failTimeout:function(){this._timer=a(function(){this.state=32},this.options.interval,this);
return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(){this.state==8&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});
hN.VERSION="2.0.2";hN.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[dA,{enable:!1}],[fX,{enable:!1},["rotate"]],[U3,{direction:6}],[ug,{direction:6},["swipe"]],[lg],[lg,{event:"doubletap",taps:2},["tap"]],[pF]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Hv.prototype={set:function(u1){C(this.options,u1);return this},
stop:function(u1){this.session.stopped=u1?2:1},
recognize:function(u1){var ZD=this.session;if(!ZD.stopped){this.touchAction.preventDefaults(u1);var E5=this.recognizers,RC=ZD.curRecognizer;if(!RC||RC&&RC.state&8)RC=ZD.curRecognizer=null;for(var eT=0,We=E5.length;eT<We;eT++){var wq=E5[eT];ZD.stopped===2||RC&&wq!=RC&&!wq.canRecognizeWith(RC)?wq.reset():wq.recognize(u1);!RC&&wq.state&14&&(RC=ZD.curRecognizer=wq)}}},
get:function(u1){if(u1 instanceof vF)return u1;for(var ZD=this.recognizers,E5=0;E5<ZD.length;E5++)if(ZD[E5].options.event==u1)return ZD[E5];return null},
add:function(u1){if(e(u1,"add",this))return this;var ZD=this.get(u1.options.event);ZD&&this.remove(ZD);this.recognizers.push(u1);u1.manager=this;this.touchAction.update();return u1},
remove:function(u1){if(e(u1,"remove",this))return this;var ZD=this.recognizers;u1=this.get(u1);ZD.splice(F(ZD,u1),1);this.touchAction.update();return this},
on:function(u1,ZD){var E5=this.handlers;k(J(u1),function(RC){E5[RC]=E5[RC]||[];E5[RC].push(ZD)});
return this},
off:function(u1,ZD){var E5=this.handlers;k(J(u1),function(RC){ZD?E5[RC].splice(F(E5[RC],ZD),1):delete E5[RC]});
return this},
emit:function(u1,ZD){this.options.domEvents&&dq(u1,ZD);var E5=this.handlers[u1]&&this.handlers[u1].slice();if(E5&&E5.length){ZD.type=u1;ZD.preventDefault=function(){ZD.srcEvent.preventDefault()};
u1=0;for(var RC=E5.length;u1<RC;u1++)E5[u1](ZD)}},
destroy:function(){this.element&&$s(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
C(hN,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Hv,Input:E,TouchAction:JN,Recognizer:vF,AttrRecognizer:BB,Tap:lg,Pan:ug,Swipe:U3,Pinch:fX,Rotate:dA,Press:pF,on:w,off:W,each:k,merge:R,extend:C,inherit:V,bindFn:U,prefixed:A});
K[p]=hN})(window,document,"Hammer");
return window.Hammer}.call({});
H.DOCUMENT=d;d[cWl]=H}return d[cWl]};/*

 MIT License

 Copyright (c) 2017 Alexander Reardon

 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
*/
var g6S=function(d,H){if(d.length!==H.length)return!1;for(var K=0;K<d.length;++K)if(d[K]!==H[K])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var ifC=_.q(["https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic","https://fonts.googleapis.com/css?family=Roboto+Mono:400,700"]),GxX=ifC.next();!GxX.done;GxX=ifC.next()){var o63=GxX.value,qj7=document.createElement("link");qj7.rel="stylesheet";qj7.href=o63;document.head.appendChild(qj7)};var p91,iqF,oJl,$WD,gJD,KUE,dWX,HqM;p91={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};iqF={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"};oJl={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};$WD=/[a-z0-9*]/;gJD=/U\+/;KUE=/^arrow/;dWX=/^space(bar)?/;HqM=/^escape$/;_.hQ={properties:{keyEventTarget:{type:Object,value:function(){return this}},
stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},
_imperativeKeyBindings:{type:Object,value:function(){return{}}}},
observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},
attached:function(){this._listenKeyEventListeners()},
detached:function(){this._unlistenKeyEventListeners()},
addOwnKeyBinding:function(d,H){this._imperativeKeyBindings[d]=H;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(d,H){H=aSX(H);for(var K=0;K<H.length;++K)if(Gwl(H[K],d))return!0;return!1},
_collectKeyBindings:function(){var d=this.behaviors.map(function(H){return H.keyBindings});
d.indexOf(this.keyBindings)===-1&&d.push(this.keyBindings);return d},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(K){for(var c in K)this._addKeyBinding(c,K[c])},this);
for(var d in this._imperativeKeyBindings)this._addKeyBinding(d,this._imperativeKeyBindings[d]);for(var H in this._keyBindings)this._keyBindings[H].sort(function(K,c){K=K[0].hasModifiers;return K===c[0].hasModifiers?0:K?-1:1})},
_addKeyBinding:function(d,H){aSX(d).forEach(function(K){this._keyBindings[K.event]=this._keyBindings[K.event]||[];this._keyBindings[K.event].push([K,H])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(d){var H=this._onKeyBindingEvent.bind(this,this._keyBindings[d]);this._boundKeyHandlers.push([this.keyEventTarget,d,H]);this.keyEventTarget.addEventListener(d,H)},this)},
_unlistenKeyEventListeners:function(){for(var d,H,K;this._boundKeyHandlers.length;)d=this._boundKeyHandlers.pop(),H=d[0],K=d[1],d=d[2],H.removeEventListener(K,d)},
_onKeyBindingEvent:function(d,H){this.stopKeyboardEventPropagation&&H.stopPropagation();if(!H.defaultPrevented)for(var K=0;K<d.length;K++){var c=d[K][0],p=d[K][1];if(Gwl(c,H)&&(this._triggerKeyHandler(c,p,H),H.defaultPrevented))break}},
_triggerKeyHandler:function(d,H,K){var c=Object.create(d);c.keyboardEvent=K;d=new CustomEvent(d.event,{detail:c,cancelable:!0});this[H].call(this,d);d.defaultPrevented&&K.preventDefault()}};/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
_.zn({is:"iron-a11y-keys",_template:null,behaviors:[_.hQ],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(d){this.keyEventTarget=d},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(d){this.fire("keys-pressed",d.detail,{})}});_.LN={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:String},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},
observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0);this.addEventListener("blur",this._boundFocusBlurHandler,!0)},
_focusBlurHandler:function(d){this._setFocused(d.type==="focus")},
_disabledChanged:function(d){this.setAttribute("aria-disabled",d?"true":"false");this.style.pointerEvents=d?"none":"";d?(this._oldTabIndex=this.getAttribute("tabindex"),this._setFocused(!1),this.tabIndex=-1,this.blur()):this._oldTabIndex!==void 0&&(this._oldTabIndex===null?this.removeAttribute("tabindex"):this.setAttribute("tabindex",this._oldTabIndex))},
_changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}};var MA={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActiveAttributeChanged"}},listeners:{down:"_downHandler",mouseup:"_upHandler",tap:"_tapHandler"},observers:["_focusChanged(focused)",
"_activeChanged(active, ariaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1},
_focusChanged:function(d){this._detectKeyboardFocus(d);d||this._setPressed(!1)},
_detectKeyboardFocus:function(d){this._setReceivedFocusFromKeyboard(!this.pointerDown&&d)},
_userActivate:function(d){this.active!==d&&(this.active=d,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(d){d=d.detail.keyboardEvent;var H=_.Iu(d).localTarget;this.isLightDescendant(H)||(d.preventDefault(),d.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(d){d=_.Iu(d.detail.keyboardEvent).localTarget;this.isLightDescendant(d)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(d,H){H&&H!=d&&this.hasAttribute(H)&&this.removeAttribute(H)},
_activeChanged:function(d){this.toggles?this.setAttribute(this.ariaActiveAttribute,d?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},abg=[_.hQ,
MA];_.mm={IronButtonState:abg,IronButtonStateImpl:MA};_.wi={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.PZ=function(d){_.PZ[" "](d);this.type=d&&d.type||"default";this.key=d&&d.key;d&&"value"in d&&(this.value=d.value)};
_.PZ.prototype.byKey=function(d){this.key=d;return this.value};
_.H3.Object.defineProperties(_.PZ.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var d=this.type,H=this.key;if(d&&H)return uh[d]&&uh[d][H]},
set:function(d){var H=this.type,K=this.key;H&&K&&(H=uh[H]=uh[H]||{},d==null?delete H[K]:H[K]=d)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var d=uh[this.type];return d?Object.keys(d).map(function(H){return uh[this.type][H]},this):[]}}});
_.PZ[" "]=function(){};
var uh={};_.zn({is:"iron-meta",_template:null,properties:{type:{type:String,value:"default"},key:{type:String},value:{type:String,notify:!0},self:{type:Boolean,observer:"_selfChanged"},__meta:{type:Boolean,computed:"__computeMeta(type, key, value)"}},hostAttributes:{hidden:!0},__computeMeta:function(d,H,K){d=new _.PZ({type:d,key:H});K!==void 0&&K!==d.value?d.value=K:this.value!==d.value&&(this.value=d.value);return d},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(d){d&&(this.value=this)},
byKey:function(d){return(new _.PZ({type:this.type,key:d})).value}});var lbg;lbg=null;_.Ih={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){lbg=new _.PZ({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return lbg&&lbg.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(d){this.invalid=d===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(d);return!this.invalid},
_getValidity:function(d){return this.hasValidator()?this._validator.validate(d):!0}};var eo0={properties:{checked:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0,observer:"_checkedChanged"},toggles:{type:Boolean,value:!0,reflectToAttribute:!0},value:{type:String,value:"on",observer:"_valueChanged"}},observers:["_requiredChanged(required)"],created:function(){this._hasIronCheckedElementBehavior=!0},
_getValidity:function(){return this.disabled||!this.required||this.checked},
_requiredChanged:function(){this.required?this.setAttribute("aria-required","true"):this.removeAttribute("aria-required")},
_checkedChanged:function(){this.active=this.checked;this.fire("iron-change")},
_valueChanged:function(){if(this.value===void 0||this.value===null)this.value="on"}},kx7=[_.wi,
_.Ih,eo0];_.zn({is:"iron-iconset-svg",_template:null,properties:{name:{type:String,observer:"_nameChanged"},size:{type:Number,value:24},rtlMirroring:{type:Boolean,value:!1},useGlobalRtlAttribute:{type:Boolean,value:!1}},created:function(){this._meta=new _.PZ({type:"iconset",key:null,value:null})},
attached:function(){this.style.display="none"},
getIconNames:function(){this._icons=this._createIconMap();return Object.keys(this._icons).map(function(d){return this.name+":"+d},this)},
applyIcon:function(d,H){this.removeIcon(d);if(H=this._cloneIcon(H,this.rtlMirroring&&this._targetIsRTL(d))){var K=_.Iu(d.root||d);K.insertBefore(H,K.childNodes[0]);return d._svgIcon=H}return null},
removeIcon:function(d){d._svgIcon&&(_.Iu(d.root||d).removeChild(d._svgIcon),d._svgIcon=null)},
_targetIsRTL:function(d){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(d&&d.nodeType!==Node.ELEMENT_NODE&&(d=d.host),this.__targetIsRTL=d&&window.getComputedStyle(d).direction==="rtl"));return this.__targetIsRTL},
_nameChanged:function(){this._meta.value=null;this._meta.key=this.name;this._meta.value=this;this.async(function(){this.fire("iron-iconset-added",this,{node:window})})},
_createIconMap:function(){var d=Object.create(null);_.Iu(this).querySelectorAll("[id]").forEach(function(H){d[H.id]=H});
return d},
_cloneIcon:function(d,H){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[d],this.size,H)},
_prepareSvgClone:function(d,H,K){if(d){d=d.cloneNode(!0);var c=document.createElementNS("http://www.w3.org/2000/svg","svg");H=d.getAttribute("viewBox")||"0 0 "+H+" "+H;var p="pointer-events: none; display: block; width: 100%; height: 100%;";K&&d.hasAttribute("mirror-in-rtl")&&(p+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");c.setAttribute("viewBox",H);c.setAttribute("preserveAspectRatio","xMidYMid meet");c.setAttribute("focusable","false");c.style&&(c.style.cssText=
p);c.appendChild(d).removeAttribute("id");return c}return null}});var xVN=function(d){this.multi=!1;this.selection=[];this.selectCallback=d};
_.G=xVN.prototype;_.G.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.G.clear=function(d){this.selection.slice().forEach(function(H){(!d||d.indexOf(H)<0)&&this.setItemSelected(H,!1)},this)};
_.G.isSelected=function(d){return this.selection.indexOf(d)>=0};
_.G.setItemSelected=function(d,H){if(d!=null&&H!==this.isSelected(d)){if(H)this.selection.push(d);else{var K=this.selection.indexOf(d);K>=0&&this.selection.splice(K,1)}this.selectCallback&&this.selectCallback(d,H)}};
_.G.select=function(d){this.multi?this.toggle(d):this.get()!==d&&(this.setItemSelected(this.get(),!1),this.setItemSelected(d,!0))};
_.G.toggle=function(d){this.setItemSelected(d,!this.isSelected(d))};_.Nr={properties:{attrForSelected:{type:String,value:null},selected:{type:String,notify:!0},selectedItem:{type:Object,readOnly:!0,notify:!0},activateEvent:{type:String,value:"tap",observer:"_activateEventChanged"},selectable:String,selectedClass:{type:String,value:"iron-selected"},selectedAttribute:{type:String,value:null},fallbackSelection:{type:String,value:null},items:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}},
_excludedLocalNames:{type:Object,value:function(){return{template:1,"dom-bind":1,"dom-if":1,"dom-repeat":1,"ps-dom-if":1,"ps-dom-repeat":1}}}},
observers:["_updateAttrForSelected(attrForSelected)","_updateSelected(selected)","_checkFallback(fallbackSelection)"],created:function(){this._bindFilterItem=this._filterItem.bind(this);this._selection=new xVN(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Iu(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(d){return this.items?this.items.indexOf(d):-1},
select:function(d){this.selected=d},
selectPrevious:function(){var d=this.items.length,H=d-1;this.selected!==void 0&&(H=(Number(this._valueToIndex(this.selected))-1+d)%d);this.selected=this._indexToValue(H)},
selectNext:function(){var d=0;this.selected!==void 0&&(d=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(d)},
selectIndex:function(d){this.select(this._indexToValue(d))},
forceSynchronousItemUpdate:function(){this._observer&&typeof this._observer.flush==="function"?this._observer.flush():this._updateItems()},
get _shouldUpdateSelection(){return this.selected!=null},_checkFallback:function(){this._updateSelected()},
_addListener:function(d){this.listen(this,d,"_activateHandler")},
_removeListener:function(d){this.unlisten(this,d,"_activateHandler")},
_activateEventChanged:function(d,H){this._removeListener(H);this._addListener(d)},
_updateItems:function(){var d=_.Iu(this).queryDistributedElements(this.selectable||"*");d=Array.prototype.filter.call(d,this._bindFilterItem);this._setItems(d)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var d=this._valueToItem(this.selected);d?this._selection.select(d):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(d){return!this._excludedLocalNames[d.localName]},
_valueToItem:function(d){return d==null?null:this.items[this._valueToIndex(d)]},
_valueToIndex:function(d){if(this.attrForSelected)for(var H=0,K;K=this.items[H];H++){if(this._valueForItem(K)==d)return H}else return Number(d)},
_indexToValue:function(d){if(this.attrForSelected){if(d=this.items[d])return this._valueForItem(d)}else return d},
_valueForItem:function(d){if(!d)return null;if(!this.attrForSelected)return d=this.indexOf(d),d===-1?null:d;var H=d[q8(this.attrForSelected)];return H!=void 0?H:d.getAttribute(this.attrForSelected)},
_applySelection:function(d,H){this.selectedClass&&this.toggleClass(this.selectedClass,H,d);this.selectedAttribute&&this.toggleAttribute.call(d,this.selectedAttribute,H);this._selectionChange();this.fire("iron-"+(H?"select":"deselect"),{item:d})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(d){return _.Iu(d).observeNodes(function(H){this._updateItems();this._updateSelected();this.fire("iron-items-changed",H,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(d){d=d.target;for(var H=this.items;d&&d!=this;){var K=H.indexOf(d);if(K>=0){H=this._indexToValue(K);this._itemActivate(H,d);break}d=d.parentNode}},
_itemActivate:function(d,H){this.fire("iron-activate",{selected:d,item:H},{cancelable:!0}).defaultPrevented||this.select(d)}};var n67={properties:{multi:{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0,value:function(){return[]}},
selectedItems:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}}},
observers:["_updateSelected(selectedValues.splices)"],select:function(d){this.multi?this._toggleSelected(d):this.selected=d},
multiChanged:function(d){this._selection.multi=d;this._updateSelected()},
get _shouldUpdateSelection(){return this.selected!=null||this.selectedValues!=null&&this.selectedValues.length},_updateAttrForSelected:function(){this.multi?this.selectedItems&&this.selectedItems.length>0&&(this.selectedValues=this.selectedItems.map(function(d){return this._indexToValue(this.indexOf(d))},this).filter(function(d){return d!=null},this)):_.Nr._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(d){d=d||[];d=(this._valuesToItems(d)||[]).filter(function(K){return K!==null&&K!==void 0});
this._selection.clear(d);for(var H=0;H<d.length;H++)this._selection.setItemSelected(d[H],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var d=this._selection.get();this.multi?(this._setSelectedItems(d),this._setSelectedItem(d.length?d[0]:null)):d!==null&&d!==void 0?(this._setSelectedItems([d]),this._setSelectedItem(d)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(d){var H=this.selectedValues.indexOf(d);H<0?this.push("selectedValues",d):this.splice("selectedValues",H,1)},
_valuesToItems:function(d){return d==null?null:d.map(function(H){return this._valueToItem(H)},this)}},C83=[_.Nr,
n67];var Rog;
_.ri={properties:{focusedItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle:{type:String},disabled:{type:Boolean,value:!1,observer:"_disabledChanged"}},_MODIFIER_KEYS:"Alt AltGraph CapsLock Control Fn FnLock Hyper Meta NumLock OS ScrollLock Shift Super Symbol SymbolLock".split(" "),_SEARCH_RESET_TIMEOUT_MS:1E3,_previousTabIndex:0,hostAttributes:{role:"menu"},observers:["_updateMultiselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged"},keyBindings:{up:"_onUpKey",
down:"_onDownKey",esc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._resetTabindices()},
select:function(d){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var H=this._valueToItem(d);H&&H.hasAttribute("disabled")||(this._setFocusedItem(H),n67.select.apply(this,arguments))},
_resetTabindices:function(){var d=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(H){H.setAttribute("tabindex",H===d?"0":"-1");H.setAttribute("aria-selected",this._selection.isSelected(H))},this)},
_updateMultiselectable:function(d){d?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(d){if(this._MODIFIER_KEYS.indexOf(d.key)===-1){this.cancelDebouncer("_clearSearchText");var H=this._searchText||"";H+=(d.key&&d.key.length==1?d.key:String.fromCharCode(d.keyCode)).toLocaleLowerCase();d=H.length;for(var K=0,c;c=this.items[K];K++)if(!c.hasAttribute("disabled")){var p=this.attrForItemTitle||"textContent";p=(c[p]||c.getAttribute(p)||"").trim();if(!(p.length<d)&&p.slice(0,d).toLocaleLowerCase()==H){this._setFocusedItem(c);break}}this._searchText=H;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var d=this.items.length,H=Number(this.indexOf(this.focusedItem)),K=1;K<d+1;K++){var c=this.items[(H-K+d)%d];if(!c.hasAttribute("disabled")){var p=_.Iu(c).getOwnerRoot()||document;this._setFocusedItem(c);if(_.Iu(p).activeElement==c)break}}},
_focusNext:function(){for(var d=this.items.length,H=Number(this.indexOf(this.focusedItem)),K=1;K<d+1;K++){var c=this.items[(H+K)%d];if(!c.hasAttribute("disabled")){var p=_.Iu(c).getOwnerRoot()||document;this._setFocusedItem(c);if(_.Iu(p).activeElement==c)break}}},
_applySelection:function(d,H){H?d.setAttribute("aria-selected","true"):d.setAttribute("aria-selected","false");_.Nr._applySelection.apply(this,arguments)},
_focusedItemChanged:function(d,H){H&&H.setAttribute("tabindex","-1");!d||d.hasAttribute("disabled")||this.disabled||(d.setAttribute("tabindex","0"),d.focus())},
_onIronItemsChanged:function(d){d.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var d=this.getAttribute("tabindex");_.ri._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",d);_.ri._shiftTabPressed=!1},1)},
_onFocus:function(d){!_.ri._shiftTabPressed&&(d=_.Iu(d).rootTarget,d===this||typeof d.tabIndex==="undefined"||this.isLightDescendant(d))&&(this._defaultFocusAsync=this.async(function(){var H=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);H?this._setFocusedItem(H):this.items[0]&&this._focusNext()}))},
_onUpKey:function(d){this._focusPrevious();d.detail.keyboardEvent.preventDefault()},
_onDownKey:function(d){this._focusNext();d.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var d=this.focusedItem;d&&d.blur()},
_onKeydown:function(d){this.keyboardEventMatchesKeys(d,"up down esc")||this._focusWithKeyboardEvent(d);d.stopPropagation()},
_activateHandler:function(d){_.Nr._activateHandler.call(this,d);d.stopPropagation()},
_disabledChanged:function(d){d?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};Rog=[C83,_.hQ,_.ri];_.VAg={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(d){this.focusedItem&&(this.focusedItem.click(),d.detail.keyboardEvent.preventDefault())},
_onDownKey:function(d){this.focusedItem&&(this.focusedItem.click(),d.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(d){return d.ctrlKey||d.shiftKey||d.altKey||d.metaKey},
_onLeftKey:function(d){this._isSpecialKey(d.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),d.detail.keyboardEvent.preventDefault())},
_onRightKey:function(d){this._isSpecialKey(d.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),d.detail.keyboardEvent.preventDefault())},
_onKeydown:function(d){this.keyboardEventMatchesKeys(d,"up down left right esc")||this._focusWithKeyboardEvent(d)}};
_.UVC=[Rog,_.VAg];var ho3;ho3=new Set;_.WZ={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[];this._boundNotifyResize=this.notifyResize.bind(this);this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},
attached:function(){this._requestResizeNotifications()},
detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(ho3.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(d){this.resizerShouldNotify(d)&&this._notifyDescendant(d)},this),this._fireResize())},
assignParentResizable:function(d){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=d)&&d._interestedResizables.indexOf(this)===-1&&(d._interestedResizables.push(this),d._subscribeIronResize(this))},
stopResizeNotificationsFor:function(d){var H=this._interestedResizables.indexOf(d);H>-1&&(this._interestedResizables.splice(H,1),this._unsubscribeIronResize(d))},
_subscribeIronResize:function(d){d.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(d){d.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(d){this._notifyingDescendant?d.stopPropagation():Yl||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(d){var H=_.Iu(d).rootTarget;H!==this&&(H.assignParentResizable(this),this._notifyDescendant(H),d.stopPropagation())},
_parentResizableChanged:function(d){d&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(d){this.isAttached&&(this._notifyingDescendant=!0,d.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var d=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function K(){document.removeEventListener("readystatechange",K);d()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(H){H!==this&&H._findParent()},this):(ho3.forEach(function(H){H!==this&&H._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),
this.notifyResize())},
_findParent:function(){this.assignParentResizable(null);this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0});this._parentResizable?ho3.delete(this):ho3.add(this)}};/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
_.LRd={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(d,H){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);H&&(d==="document"?this.scrollTarget=this._doc:typeof d==="string"?this.scrollTarget=(H=this.domHost)&&H.$?H.$[d]:_.Iu(this.ownerDocument).querySelector("#"+d):this._isValidScrollTarget()&&(this._oldScrollTarget=d,this._toggleScrollListener(this._shouldHaveListener,d)))},
_scrollHandler:function(){},
get _defaultScrollTarget(){return this._doc},get _doc(){return this.ownerDocument.documentElement},get _scrollTop(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageYOffset:this.scrollTarget.scrollTop:0},get _scrollLeft(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageXOffset:this.scrollTarget.scrollLeft:0},set _scrollTop(d){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,d):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
d)},set _scrollLeft(d){this.scrollTarget===this._doc?window.scrollTo(d,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=d)},scroll:function(d,H){if(typeof d==="object"){var K=d.left;H=d.top}else K=d;K=K||0;H=H||0;this.scrollTarget===this._doc?window.scrollTo(K,H):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=K,this.scrollTarget.scrollTop=H)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(d,H){H=H===this._doc?window:H;d?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),H.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(H.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(d){this._shouldHaveListener=d;this._toggleScrollListener(d,this.scrollTarget)}};_.zn({is:"iron-selector",_template:null,behaviors:[C83]});var BZ={properties:{animationTiming:{type:Object,value:function(){return{duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"both"}}}},
isNeonAnimation:!0,created:function(){document.body.animate||console.warn("No web animations detected. This element will not function without a web animations polyfill.")},
timingFromConfig:function(d){if(d.timing)for(var H in d.timing)this.animationTiming[H]=d.timing[H];return this.animationTiming},
setPrefixedProperty:function(d,H,K){for(var c={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[H],p,g=0;p=c[g];g++)d.style[p]=K;d.style[H]=K},
complete:function(){}};_.zn({is:"fade-in-animation",_template:null,behaviors:[BZ],configure:function(d){return this._effect=new KeyframeEffect(d.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(d))}});_.zn({is:"fade-out-animation",_template:null,behaviors:[BZ],configure:function(d){return this._effect=new KeyframeEffect(d.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(d))}});var MA6=[{properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},
_exitAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},
_copyProperties:function(d,H){for(var K in H)d[K]=H[K]},
_cloneConfig:function(d){var H={isClone:!0};this._copyProperties(H,d);return H},
_getAnimationConfigRecursive:function(d,H,K){if(this.animationConfig)if(this.animationConfig.value&&typeof this.animationConfig.value==="function")this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else{var c=d?this.animationConfig[d]:this.animationConfig;Array.isArray(c)||(c=[c]);if(c)for(var p,g=0;p=c[g];g++)if(p.animatable)p.animatable._getAnimationConfigRecursive(p.type||d,H,K);else if(p.id){var a=H[p.id];
a?(a.isClone||(H[p.id]=this._cloneConfig(a),a=H[p.id]),this._copyProperties(a,p)):H[p.id]=p}else K.push(p)}},
getAnimationConfig:function(d){var H={},K=[];this._getAnimationConfigRecursive(d,H,K);for(var c in H)K.push(H[c]);return K}},
{_configureAnimations:function(d){var H=[],K=[];if(d.length>0)for(var c,p=0;c=d[p];p++){var g=document.createElement(c.name);if(g.isNeonAnimation){var a=null;g.configure||(g.configure=function(){return null});
a=g.configure(c);K.push({result:a,config:c})}else console.warn(this.is+":",c.name,"not found!")}for(d=0;d<K.length;d++){a=K[d].result;c=K[d].config;try{typeof a.cancel!="function"&&(a=document.timeline.play(a))}catch(e){a=null,console.warn("Couldnt play","(",c.name,").",e)}a&&H.push({neonAnimation:g,config:c,animation:a})}return H},
_shouldComplete:function(d){for(var H=!0,K=0;K<d.length;K++)if(d[K].animation.playState!="finished"){H=!1;break}return H},
_complete:function(d){for(var H=0;H<d.length;H++)d[H].neonAnimation.complete(d[H].config);for(H=0;H<d.length;H++)d[H].animation.cancel()},
playAnimation:function(d,H){var K=this.getAnimationConfig(d);if(K){this._active=this._active||{};this._active[d]&&(this._complete(this._active[d]),delete this._active[d]);var c=this._configureAnimations(K);if(c.length==0)this.fire("neon-animation-finish",H,{bubbles:!1});else for(this._active[d]=c,K=0;K<c.length;K++)c[K].animation.onfinish=function(){this._shouldComplete(c)&&(this._complete(c),delete this._active[d],this.fire("neon-animation-finish",H,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var d in this._active){var H=this._active[d],K;for(K in H)H[K].animation&&H[K].animation.cancel&&H[K].animation.cancel()}this._active={}}}];var CO=function(d,H){d=Error.call(this,d);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.arg=H;this.name=this.constructor.name;this.constructor=CO;this.__proto__=CO.prototype};
_.m(CO,Error);var mVg=fb(function(d){var H=function(){return d.apply(this,arguments)||this};
_.m(H,d);H.prototype._marshalArgs=function(K,c,p){c=d.prototype._marshalArgs.call(this,K,c,p);if(this._legacyUndefinedCheck&&c.length>1)for(p=0;p<c.length;p++)if(c[p]===void 0||K[p].wildcard&&c[p].base===void 0)throw K=K[p].name,new CO("Argument '"+K+"' is undefined.",K);return c};
H.prototype._addPropertyEffect=function(K,c,p){return d.prototype._addPropertyEffect.call(this,K,c,lSC(p,p&&p.info&&p.info.methodName))};
H._addTemplatePropertyEffect=function(K,c,p){return d._addTemplatePropertyEffect.call(this,K,c,lSC(p))};
return H}),wI0=_.zn.Class;
_.zn.Class=function(d,H){return wI0(d,function(K){return H?H(mVg(K)):mVg(K)})};
var P83=fb(function(d){var H=mVg(d);d=function(){return H.apply(this,arguments)||this};
_.m(d,H);_.H3.Object.defineProperties(d.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return d}),uN3=S1.mixin;
S1.mixin=uN3?function(d){return P83(uN3(d))}:P83;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.zS=_.mm.IronButtonState;var qdE=tw;/*

Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
var rWg;_.IbX="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");rWg=function(){var d=[],H;var K=K||_.IbX.length;for(H=0;H<8;H++)d[H]=_.IbX[0|Math.random()*K];return d.join("")};var nJC=function(){return Math.random().toString(36).substring(7).split("").join(".")},xWf="@@redux/INIT"+nJC(),Voi="@@redux/REPLACE"+nJC();var UWM=typeof Symbol==="function"&&Symbol.observable||"@@observable";var WRM=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var BBX="top right bottom left width height size weight".split(" "),zoS=typeof MutationObserver!=="undefined",XIB=WRM&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,JWU=function(){this.mutationEventsAdded_=this.JSC$11687_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=hb4(this.refresh.bind(this))},sDN=function(d,
H){var K=d.observers_;
H=K.indexOf(H);~H&&K.splice(H,1);!K.length&&d.JSC$11687_connected_&&WRM&&d.JSC$11687_connected_&&(document.removeEventListener("transitionend",d.onTransitionEnd_),window.removeEventListener("resize",d.refresh),d.mutationsObserver_&&(d.mutationsObserver_.disconnect(),XIB&&(HTMLElement.prototype.attachShadow=XIB)),d.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",d.refresh),d.mutationsObserver_=null,d.mutationEventsAdded_=!1,d.JSC$11687_connected_=!1)};
JWU.prototype.refresh=function(){FRU(this)&&this.refresh()};
var FRU=function(d){d=d.observers_.filter(function(H){return Zf3(H),H.activeObservations_.length>0});
d.forEach(function(H){return TBM(H)});
return d.length>0},QDg=function(d){if(WRM&&!d.JSC$11687_connected_){document.addEventListener("transitionend",d.onTransitionEnd_);
window.addEventListener("resize",d.refresh);if(zoS){d.mutationsObserver_=new MutationObserver(d.refresh);var H={attributes:!0,childList:!0,characterData:!0,subtree:!0};d.mutationsObserver_.observe(document,H);XIB&&(function p(c){var g=c.shadowRoot;g&&(d.mutationsObserver_.observe(g,H),p(g));for(c=c.firstElementChild;c;)p(c),c=c.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var c=XIB.apply(this,_.sH.apply(0,arguments));
d.mutationsObserver_.observe(c,H);return c})}else document.addEventListener("DOMSubtreeModified",d.refresh),d.mutationEventsAdded_=!0;
d.JSC$11687_connected_=!0}};
JWU.prototype.onTransitionEnd_=function(d){var H=d.propertyName===void 0?"":d.propertyName;BBX.some(function(K){return!!~H.indexOf(K)})&&this.refresh()};
var tAC=null;var YjB=function(d,H){for(var K=_.q(Object.keys(H)),c=K.next();!c.done;c=K.next())c=c.value,Object.defineProperty(d,c,{value:H[c],enumerable:!1,writable:!1,configurable:!0})};var Xs=function(d){var H;return(d==null?void 0:(H=d.ownerDocument)==null?void 0:H.defaultView)||globalThis};var OfX={x:0,y:0,width:0,height:0},SjS=typeof SVGGraphicsElement!=="undefined"?function(d){return d instanceof Xs(d).SVGGraphicsElement}:function(d){return d instanceof Xs(d).SVGElement&&typeof d.getBBox==="function"};var E6N=function(d){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=d};
E6N.prototype.isActive=function(){var d=this.target;if(WRM)if(SjS(d)){var H=d.getBBox();H={x:0,y:0,width:H.width,height:H.height}}else{var K=d.clientWidth,c=d.clientHeight;if(K||c){var p=Xs(d).getComputedStyle(d);H=VK(p["padding-top"]);var g=VK(p["padding-left"]),a=g+VK(p["padding-right"]),e=H+VK(p["padding-bottom"]),k=VK(p.width),C=VK(p.height);p.boxSizing==="border-box"&&(Math.round(k+a)!==K&&(k-=LUh(p,"left","right")+a),Math.round(C+e)!==c&&(C-=LUh(p,"top","bottom")+e));d!==Xs(d).document.documentElement&&
(d=Math.round(k+a)-K,c=Math.round(C+e)-c,Math.abs(d)!==1&&(k-=d),Math.abs(c)!==1&&(C-=c));H={x:g,y:H,width:k,height:C}}else H=OfX}else H=OfX;this.contentRect_=H;return H.width!==this.broadcastWidth||H.height!==this.broadcastHeight};var yW6=function(d,H){var K=H.x;var c=H.y;var p=H.width;H=H.height;var g=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);YjB(g,{x:K,y:c,width:p,height:H,top:c,right:K+p,bottom:H+c,left:K});YjB(this,{target:d,contentRect:g})};var bfM=function(d,H){var K=tAC;this.activeObservations_=[];this.observations_=new Map;if(typeof d!=="function")throw new TypeError("Oe");this.callback_=d;this.controller_=K;this.callbackCtx_=H};
bfM.prototype.observe=function(d){if(d===void 0)throw new TypeError("Pe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(d instanceof Xs(d).Element))throw new TypeError("Qe");var H=this.observations_;H.has(d)||(H.set(d,new E6N(d)),d=this.controller_,~d.observers_.indexOf(this)||d.observers_.push(this),d.JSC$11687_connected_||QDg(d),this.controller_.refresh())}};
bfM.prototype.unobserve=function(d){if(d===void 0)throw new TypeError("Pe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(d instanceof Xs(d).Element))throw new TypeError("Qe");var H=this.observations_;H.has(d)&&(H.delete(d),H.size||sDN(this.controller_,this))}};
bfM.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();sDN(this.controller_,this)};
var Zf3=function(d){d.activeObservations_.splice(0);d.observations_.forEach(function(H){H.isActive()&&d.activeObservations_.push(H)})},TBM=function(d){if(d.activeObservations_.length>0){var H=d.callbackCtx_,K=d.activeObservations_.map(function(c){var p=c.target,g=c.contentRect_;
c.broadcastWidth=g.width;c.broadcastHeight=g.height;return new yW6(p,g)});
d.callback_.call(H,K,H);d.activeObservations_.splice(0)}};var JQ=function(d){if(!(this instanceof JQ))throw new TypeError("Re");if(!arguments.length)throw new TypeError("Pe");tAC||(tAC=new JWU);this.observer_=new bfM(d,this)};
JQ.prototype.observe=function(d){this.observer_.observe(d)};
JQ.prototype.unobserve=function(d){this.observer_.unobserve(d)};
JQ.prototype.disconnect=function(){this.observer_.disconnect()};var FxD=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:JQ;var WUF="aLink accessKey allowFullscreen bgColor cellPadding cellSpacing codeBase codeType contentEditable crossOrigin dateTime dirName formAction formEnctype formMethod formNoValidate formTarget frameBorder innerHTML innerText inputMode isMap longDesc marginHeight marginWidth maxLength mediaGroup minLength noHref noResize noShade noValidate noWrap nodeValue outerHTML outerText readOnly tabIndex textContent trueSpeed useMap vAlign vLink valueAsDate valueAsNumber valueType".split(" "),rHC={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},ISY=null,MoX=null;var BNL={},zbh=RegExp("^(?!(?:annotation-xml|color-profile|font-face|font-face(?:-(?:src|uri|format|name))?|missing-glyph)$)[a-z][a-z.0-9_\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u200c\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\udfff\uf900-\ufdcf\ufdf0-\ufffd]*-[\\-a-z.0-9_\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u200c\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\udfff\uf900-\ufdcf\ufdf0-\ufffd]*$");var QjF={text:1},sji={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var NB7=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,DVU={CONSTANT:{isUnwrappable:function(d){return d instanceof T5},
unwrap:XB3},JAVASCRIPT:{isUnwrappable:function(d){return d instanceof _.b_},
unwrap:piF},HTML:{isUnwrappable:function(d){return d instanceof QB},
unwrap:function(d){return YO(d)}},
RESOURCE_URL:{isUnwrappable:function(d){return d instanceof UH},
unwrap:_.Lc},STRING:{isUnwrappable:function(d){return d instanceof Object},
unwrap:function(d){return String(d)}},
STYLE:{isUnwrappable:function(d){return typeof d==="string"},
unwrap:function(d){return d}},
URL:{isUnwrappable:function(d){return u_(d)},
unwrap:_.IK}},fb3={CONSTANT:toF,JAVASCRIPT:toF,HTML:function(d){d=d instanceof QB?d:tL(String(d).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return YO(d)},
RESOURCE_URL:toF,STRING:String,STYLE:toF,URL:function(d,H){d=NB7.test(d)?d:void 0;return d===void 0?H:d}};var jj1=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,YL4=/[\t\n\f\r ]+/,SL4=/[\t\n\f\r ,]+/g,yHh=function(d,H,K){return K},MC={},AW7=function(){var d=function(){var c={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",c):c}(),H=d.createHTML(""),K=d.createScript("");
d=d.createScriptURL("");return{INNOCUOUS_STRING:H,INNOCUOUS_SCRIPT:K,INNOCUOUS_URL:d}}(),LO=AW7.INNOCUOUS_STRING,AHi=AW7.INNOCUOUS_SCRIPT,fSD=AW7.INNOCUOUS_URL;var jDd=function(d){var H=vJE(d);return function(K,c,p,g){return g?H(g,c,p,K):LO}}({reportHandler:function(d,H){if(d)try{throw Error(H);
}catch(K){_.z5(K)}},
safeTypesBridge:function(d,H,K){var c=DVU[H];return c.isUnwrappable(d)&&(c=c.unwrap(d,K),c!==K)?c:(0,fb3[H])(String(d),K)},
allowedIdentifierPrefixes:[""]});if(hw!==void 0)throw Error("Se");hw=jDd;if(hw!==jDd)throw Error("Te");mG("Injectable",[]);var wQh=mG("Inject",[["token",void 0]]),uE5=mG("Optional",[]);mG("Injectable",[]);var IkY=mG("Self",[]),rvM=mG("SkipSelf",[]);mG("Host",[]);var v6g={},d$g=function(){};
d$g.prototype.resolve=function(){throw Error("Ve");};
d$g.prototype.addProvider=function(){throw Error("Ve");};var MJf=Function;var H8A=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,$$d=function(){this._reflect=window.Reflect};
_.G=$$d.prototype;_.G.factory=function(d){return function(){return new (Function.prototype.bind.apply(d,[null].concat(_.ru(_.sH.apply(0,arguments)))))}};
_.G._zipTypesAndAnnotations=function(d,H){var K=typeof d==="undefined"?Array(H.length):Array(d.length);for(var c=0;c<K.length;c++)K[c]=typeof d==="undefined"?[]:d[c]!=Object?[d[c]]:[],H&&HGF(H[c])&&(K[c]=K[c].concat(H[c]));return K};
_.G._ownParameters=function(d,H){if(H8A.exec(d.toString()))return null;if(d.parameters&&d.parameters!==H.parameters)return d.parameters;var K=d.ctorParameters;return K&&K!==H.ctorParameters?(H=typeof K==="function"?K():K,d=H.map(function(c){return c&&c.type}),H=H.map(function(c){return c&&KCD(c.decorators)}),this._zipTypesAndAnnotations(d,H)):HGF(this._reflect)&&HGF(this._reflect.getOwnMetadata)&&(H=this._reflect.getOwnMetadata("parameters",d),(K=this._reflect.getOwnMetadata("design:paramtypes",d))||
H)?this._zipTypesAndAnnotations(K,H):Array(d.length).fill(void 0)};
_.G.parameters=function(d){if(!d.prototype)return[];var H=Object.getPrototypeOf(d.prototype).constructor;(d=this._ownParameters(d,H))||H===Object||(d=this.parameters(H));return d||[]};
_.G._ownAnnotations=function(d,H){if(d.annotations&&d.annotations!==H.annotations)return d=d.annotations,typeof d==="function"&&d.annotations&&(d=d.annotations),d;if(d.decorators&&d.decorators!==H.decorators)return KCD(d.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",d)};
_.G.annotations=function(d){var H=Object.getPrototypeOf(d.prototype).constructor;d=this._ownAnnotations(d,H)||[];return(H!==Object?this.annotations(H):[]).concat(d)};
_.G._ownPropMetadata=function(d,H){if(d.propMetadata&&d.propMetadata!==H.propMetadata)return d=d.propMetadata,typeof d==="function"&&d.propMetadata&&(d=d.propMetadata),d;if(d.propDecorators&&d.propDecorators!==H.propDecorators){var K=d.propDecorators,c={};Object.keys(K).forEach(function(p){c[p]=KCD(K[p])});
return c}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",d)};
_.G.propMetadata=function(d){var H=Object.getPrototypeOf(d.prototype).constructor,K={};if(H!==Object){var c=this.propMetadata(H);Object.keys(c).forEach(function(g){K[g]=c[g]})}var p=this._ownPropMetadata(d,H);
p&&Object.keys(p).forEach(function(g){var a=[];K.hasOwnProperty(g)&&a.push.apply(a,_.ru(K[g]));a.push.apply(a,_.ru(p[g]));K[g]=a});
return K};
_.G.getter=function(d){return function(H){return H[d]}};
_.G.setter=function(d){return function(H,K){return H[d]=K}};
_.G.method=function(d){return function(H,K){if(!H[d])throw Error("We`"+d);return H[d].apply(H,K)}};var KB6=function(){};var cEA=function(d){this.reflectionCapabilities=d};
_.m(cEA,KB6);_.G=cEA.prototype;_.G.factory=function(d){return this.reflectionCapabilities.factory(d)};
_.G.parameters=function(d){return this.reflectionCapabilities.parameters(d)};
_.G.annotations=function(d){return this.reflectionCapabilities.annotations(d)};
_.G.propMetadata=function(d){return this.reflectionCapabilities.propMetadata(d)};
_.G.getter=function(d){return this.reflectionCapabilities.getter(d)};
_.G.setter=function(d){return this.reflectionCapabilities.setter(d)};
_.G.method=function(d){return this.reflectionCapabilities.method(d)};var lkY=new cEA(new $$d);var sh=function(d,H){this.token=d;this.id=H;if(d===void 0||d===null)throw Error("af");};
_.H3.Object.defineProperties(sh.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return wr(this.token)}}});
_.H3.Object.defineProperties(sh,{JSC$11729_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return uG.JSC$11733_numberOfKeys}}});
var pKA=function(){this._allKeys=new Map};
pKA.prototype.get=function(d){if(d instanceof sh)return d;if(this._allKeys.has(d))return this._allKeys.get(d);var H=new sh(d,sh.JSC$11729_numberOfKeys);this._allKeys.set(d,H);return H};
_.H3.Object.defineProperties(pKA.prototype,{JSC$11733_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var uG=new pKA;var WCD=function(d,H,K){this.key=d;this.optional=H;this.visibility=K},kQ5=function(d){return new WCD(d,!1,null)},n3Y=[],VJf=function(d,H,K){this.key=d;
this.resolvedFactories=H;this.multiProvider=K},CIF=function(d,H,K,c){this.factory=d;
this.dependencies=H;this.providerClass=K;this.providerValue=c};var Fs={},Zv=function(d,H){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=H===void 0?null:H;d=_.q(d);for(H=d.next();!H.done;H=d.next())this.addProvider(H.value)};
_.G=Zv.prototype;_.G.addProvider=function(d){this.keyIdToIndex.set(d.key.id,this.keyIds.length);this.providers.push(d);this.keyIds.push(d.key.id);this.objs.push(Fs)};
_.G.resolve=function(d,H){H=H===void 0?v6g:H;return this._getByKey(uG.get(P3(d)),null,H)};
_.G._new=function(d){if(this.constructedKeyIds[d.key.id])throw o3L(this,d.key);this.constructedKeyIds[d.key.id]=!0;return this._instantiateProvider(d)};
_.G._instantiateProvider=function(d){if(d.multiProvider){for(var H=Array(d.resolvedFactories.length),K=0;K<d.resolvedFactories.length;++K)H[K]=this._instantiate(d,d.resolvedFactories[K]);return H}return this._instantiate(d,d.resolvedFactories[0])};
_.G._instantiate=function(d,H){var K=this,c=H.factory;try{var p=H.dependencies.map(function(a){return K._getByReflectiveDependency(a)})}catch(a){throw a.addKey&&a.addKey(this,d.key),a;
}try{var g=c.apply(null,_.ru(p))}catch(a){throw qRh(this,a,d.key);}return g};
_.G._getByReflectiveDependency=function(d){return this._getByKey(d.key,d.visibility,d.optional?null:v6g)};
_.G._getByKey=function(d,H,K){return d===gE3?this:H instanceof IkY?this._getByKeySelf(d,K):this._getByKeyDefault(d,K,H)};
_.G._getObjByKeyId=function(d){for(var H=0;H<this.keyIds.length;H++)if(this.keyIds[H]===d)return this.objs[H]===Fs&&(this.objs[H]=this._new(this.providers[H])),this.objs[H];return Fs};
_.G._throwOrNull=function(d,H){if(H!==v6g)return H;throw GQL(this,d);};
_.G._getByKeySelf=function(d,H){var K=this._getObjByKeyId(d.id);return K!==Fs?K:this._throwOrNull(d,H)};
_.G._getByKeyDefault=function(d,H,K){for(var c=K=K instanceof rvM?this.parent:this;K instanceof Zv;){var p=K._getObjByKeyId(d.id);if(p!==Fs)return p;K=K.parent}p=void 0;if(K!==null)try{var g=K.resolve(d.token,H);if(g!==Fs)return g}catch(a){p=a}if(!(c instanceof Zv&&z1F(d.token))){if(p)throw p;return this._throwOrNull(d,H)}for(g=c;g.parent instanceof Zv;)g=g.parent;g.addProvider(U3F({provide:d.token,useClass:d.token}));return g.resolve(d.token,H)};
_.G.toString=function(){return this.displayName};
_.H3.Object.defineProperties(Zv.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+BMF(this,function(d){return' "'+d.key.displayName+'" '}).join(", ")+"])"}}});
var gE3=uG.get(P3(d$g));(function(){let module=undefined;let exports=undefined;let define=undefined;var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_ES6=!1;$jscomp.ASSUME_ES2020=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.INSTRUMENT_ASYNC_CONTEXT=!0;$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:
function(e,n,m){if(e==Array.prototype||e==Object.prototype)return e;e[n]=m.value;return e};
$jscomp.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var n=0;n<e.length;++n){var m=e[n];if(m&&m.Math==Math)return m}throw Error("Cannot find global object");};
$jscomp.global=$jscomp.ASSUME_ES2020?globalThis:$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE=typeof Symbol==="function"&&typeof Symbol("x")==="symbol";$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";$jscomp.polyfill=function(e,n,m,b){n&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,n,m,b):$jscomp.polyfillUnisolated(e,n,m,b))};
$jscomp.polyfillUnisolated=function(e,n){var m=$jscomp.global;e=e.split(".");for(var b=0;b<e.length-1;b++){var q=e[b];if(!(q in m))return;m=m[q]}e=e[e.length-1];b=m[e];n=n(b);n!=b&&n!=null&&$jscomp.defineProperty(m,e,{configurable:!0,writable:!0,value:n})};
$jscomp.polyfillIsolated=function(e,n,m){var b=e.split("."),q=b.length===1;e=b[0];e=!q&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var v=0;v<b.length-1;v++){var t=b[v];if(!(t in e))return;e=e[t]}b=b[b.length-1];m=$jscomp.IS_SYMBOL_NATIVE&&m==="es6"?e[b]:null;n=n(m);n!=null&&(q?$jscomp.defineProperty($jscomp.polyfills,b,{configurable:!0,writable:!0,value:n}):n!==m&&($jscomp.propertyToPolyfillSymbol[b]===void 0&&(q=Math.random()*1E9>>>0,$jscomp.propertyToPolyfillSymbol[b]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(b):$jscomp.POLYFILL_PREFIX+q+"$"+b),q=$jscomp.propertyToPolyfillSymbol[b],$jscomp.defineProperty(e,q,{configurable:!0,writable:!0,value:n})))};
$jscomp.checkEs6ConformanceViaProxy=function(){try{var e={},n=Object.create(new $jscomp.global.Proxy(e,{get:function(m,b,q){return m==e&&b=="q"&&q==n}}));
return n.q===!0}catch(m){return!1}};
$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();$jscomp.arrayIteratorImpl=function(e){var n=0;return function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}}};
$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};
$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(e){if(e)return e;var n=function(v,t){this.$jscomp$symbol$id_=v;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:t})};
n.prototype.toString=function(){return this.$jscomp$symbol$id_};
e=Math.random()*1E9>>>0;var m="jscomp_symbol_"+e+"_",b=0,q=function(v){if(this instanceof q)throw new TypeError("Symbol is not a constructor");return new n(m+(v||"")+"_"+b++,v)};
return q},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),m=0;m<n.length;m++){var b=$jscomp.global[n[m]];typeof b==="function"&&typeof b.prototype[e]!="function"&&$jscomp.defineProperty(b.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return e},"es6",
"es3");
$jscomp.iteratorPrototype=function(e){e={next:e};e[Symbol.iterator]=function(){return this};
return e};
$jscomp.makeIterator=function(e){var n=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(n)return n.call(e);if(typeof e.length=="number")return $jscomp.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike");};
$jscomp.owns=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)};
$jscomp.polyfill("WeakMap",function(e){function n(){if(!e||!Object.seal)return!1;try{var f=Object.seal({}),h=Object.seal({}),k=new e([[f,2],[h,3]]);if(k.get(f)!=2||k.get(h)!=3)return!1;k.delete(f);k.set(h,4);return!k.has(f)&&k.get(h)==4}catch(r){return!1}}
function m(){}
function b(f){var h=typeof f;return h==="object"&&f!==null||h==="function"}
function q(f){if(!$jscomp.owns(f,t)){var h=new m;$jscomp.defineProperty(f,t,{value:h})}}
function v(f){if(!$jscomp.ISOLATE_POLYFILLS){var h=Object[f];h&&(Object[f]=function(k){if(k instanceof m)return k;Object.isExtensible(k)&&q(k);return h(k)})}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;var t="$jscomp_hidden_"+Math.random();v("freeze");v("preventExtensions");v("seal");var A=0,d=function(f){this.id_=(A+=Math.random()+1).toString();if(f){f=$jscomp.makeIterator(f);for(var h;!(h=f.next()).done;)h=h.value,this.set(h[0],h[1])}};
d.prototype.set=function(f,h){if(!b(f))throw Error("Invalid WeakMap key");q(f);if(!$jscomp.owns(f,t))throw Error("WeakMap key fail: "+f);f[t][this.id_]=h;return this};
d.prototype.get=function(f){return b(f)&&$jscomp.owns(f,t)?f[t][this.id_]:void 0};
d.prototype.has=function(f){return b(f)&&$jscomp.owns(f,t)&&$jscomp.owns(f[t],this.id_)};
d.prototype.delete=function(f){return b(f)&&$jscomp.owns(f,t)&&$jscomp.owns(f[t],this.id_)?delete f[t][this.id_]:!1};
return d},"es6","es3");
$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(e){function n(){if($jscomp.ASSUME_NO_NATIVE_MAP||!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var d=Object.seal({x:4}),f=new e($jscomp.makeIterator([[d,"s"]]));if(f.get(d)!="s"||f.size!=1||f.get({x:4})||f.set({x:4},"t")!=f||f.size!=2)return!1;var h=f.entries(),k=h.next();if(k.done||k.value[0]!=d||k.value[1]!="s")return!1;k=h.next();return k.done||k.value[0].x!=4||k.value[1]!="t"||!h.next().done?!1:!0}catch(r){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;var m=new WeakMap,b=function(d){this[0]={};this[1]=t();this.size=0;if(d){d=$jscomp.makeIterator(d);for(var f;!(f=d.next()).done;)f=f.value,this.set(f[0],f[1])}};
b.prototype.set=function(d,f){d=d===0?0:d;var h=q(this,d);h.list||(h.list=this[0][h.id]=[]);h.entry?h.entry.value=f:(h.entry={next:this[1],previous:this[1].previous,head:this[1],key:d,value:f},h.list.push(h.entry),this[1].previous.next=h.entry,this[1].previous=h.entry,this.size++);return this};
b.prototype.delete=function(d){d=q(this,d);return d.entry&&d.list?(d.list.splice(d.index,1),d.list.length||delete this[0][d.id],d.entry.previous.next=d.entry.next,d.entry.next.previous=d.entry.previous,d.entry.head=null,this.size--,!0):!1};
b.prototype.clear=function(){this[0]={};this[1]=this[1].previous=t();this.size=0};
b.prototype.has=function(d){return!!q(this,d).entry};
b.prototype.get=function(d){return(d=q(this,d).entry)&&d.value};
b.prototype.entries=function(){return v(this,function(d){return[d.key,d.value]})};
b.prototype.keys=function(){return v(this,function(d){return d.key})};
b.prototype.values=function(){return v(this,function(d){return d.value})};
b.prototype.forEach=function(d,f){for(var h=this.entries(),k;!(k=h.next()).done;)k=k.value,d.call(f,k[1],k[0],this)};
b.prototype[Symbol.iterator]=b.prototype.entries;var q=function(d,f){var h;var k=(h=f)&&typeof h;k=="object"||k=="function"?m.has(h)?h=m.get(h):(k=""+ ++A,m.set(h,k),h=k):h="p_"+h;if((k=d[0][h])&&$jscomp.owns(d[0],h))for(d=0;d<k.length;d++){var r=k[d];if(f!==f&&r.key!==r.key||f===r.key)return{id:h,list:k,index:d,entry:r}}return{id:h,list:k,index:-1,entry:void 0}},v=function(d,f){var h=d[1];
return $jscomp.iteratorPrototype(function(){if(h){for(;h.head!=d[1];)h=h.previous;for(;h.next!=h.head;)return h=h.next,{done:!1,value:f(h)};h=null}return{done:!0,value:void 0}})},t=function(){var d={};
return d.previous=d.next=d.head=d},A=0;
return b},"es6","es3");
$jscomp.polyfill("Set",function(e){function n(){if($jscomp.ASSUME_NO_NATIVE_SET||!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var b=Object.seal({x:4}),q=new e($jscomp.makeIterator([b]));if(!q.has(b)||q.size!=1||q.add(b)!=q||q.size!=1||q.add({x:4})!=q||q.size!=2)return!1;var v=q.entries(),t=v.next();if(t.done||t.value[0]!=b||t.value[1]!=b)return!1;t=v.next();return t.done||t.value[0]==b||t.value[0].x!=4||t.value[1]!=t.value[0]?!1:v.next().done}catch(A){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;var m=function(b){this.map_=new Map;if(b){b=$jscomp.makeIterator(b);for(var q;!(q=b.next()).done;)q=q.value,this.add(q)}this.size=this.map_.size};
m.prototype.add=function(b){b=b===0?0:b;this.map_.set(b,b);this.size=this.map_.size;return this};
m.prototype.delete=function(b){b=this.map_.delete(b);this.size=this.map_.size;return b};
m.prototype.clear=function(){this.map_.clear();this.size=0};
m.prototype.has=function(b){return this.map_.has(b)};
m.prototype.entries=function(){return this.map_.entries()};
m.prototype.values=function(){return this.map_.values()};
m.prototype.keys=m.prototype.values;m.prototype[Symbol.iterator]=m.prototype.values;m.prototype.forEach=function(b,q){var v=this;this.map_.forEach(function(t){return b.call(q,t,t,v)})};
return m},"es6","es3");
$jscomp.polyfill("Set.prototype.union",function(e){function n(m){$jscomp.checkIsSetInstance(this);$jscomp.checkIsSetLike(m);var b=new Set(this);m=$jscomp.checkIsValidIterator(m.keys());for(var q=m.next();!q.done;)b.add(q.value),q=m.next();return b}
return e?e:n},"es_next","es6");
$jscomp.checkIsSetLike=function(e){if(typeof e!=="object"||e===null||typeof e.size!=="number"||e.size<0||typeof e.keys!=="function"||typeof e.has!=="function")throw new TypeError("Argument must be set-like");};
$jscomp.checkIsValidIterator=function(e){if(typeof e!=="object"||e===null||typeof e.next!=="function")throw new TypeError("Invalid iterator.");return e};
$jscomp.getSmallerAndLargerSets=function(e,n){return e.size<=n.size?{smallerSetIterator:e.keys(),largerSet:n}:{smallerSetIterator:$jscomp.checkIsValidIterator(n.keys()),largerSet:e}};
$jscomp.checkIsSetInstance=function(e){if(!(e instanceof Set))throw new TypeError("Method must be called on an instance of Set.");};
(function(e){if(typeof exports==="object"&&typeof module!=="undefined")module.exports=e();else if(typeof define==="function"&&define.amd)define([],e);else{var n=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;n.XRegExp=e()}})(function(){return function q(n,m,b){function v(d,f){if(!m[d]){if(!n[d]){var h=typeof require=="function"&&require;
if(!f&&h)return h(d,!0);if(t)return t(d,!0);f=Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f;}f=m[d]={exports:{}};n[d][0].call(f.exports,function(k){var r=n[d][1][k];return v(r?r:k)},f,f.exports,q,n,m,b)}return m[d].exports}
for(var t=typeof require=="function"&&require,A=0;A<b.length;A++)v(b[A]);return v}({1:[function(n,m){m.exports=function(b){function q(d){var f=/^(?:\(\?:\))*\^/,h=/\$(?:\(\?:\))*$/;
return f.test(d)&&h.test(d)&&h.test(d.replace(/\\[\s\S]/g,""))?d.replace(f,"").replace(h,""):d}
function v(d,f){f=f?"x":"";return b.isRegExp(d)?d.xregexp&&d.xregexp.captureNames?d:b(d.source,f):b(d,f)}
var t=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,A=b.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,t],"g",{conjunction:"or"});b.build=function(d,f,h){h=h||"";var k=h.indexOf("x")>-1,r=/^\(\?([\w$]+)\)/.exec(d);r&&(h=b._clipDuplicates(h+r[1]));var u={},B;for(B in f)f.hasOwnProperty(B)&&(r=v(f[B],k),u[B]={pattern:q(r.source),names:r.xregexp.captureNames||[]});d=v(d,k);var C=0,D,p=0,I=[0],E=d.xregexp.captureNames||[];d=d.source.replace(A,function(F,J,N,Q,R){var L=J||N;if(L){if(!u.hasOwnProperty(L))throw new ReferenceError("Undefined property "+
F);if(J){var M=E[p];I[++p]=++C;F="(?<"+(M||L)+">"}else F="(?:";D=C;return F+u[L].pattern.replace(t,function(T,U,O){if(U){if(M=u[L].names[C-D],++C,M)return"(?<"+M+">"}else if(O)return P=+O-1,u[L].names[P]?"\\k<"+u[L].names[P]+">":"\\"+(+O+D);return T})+")"}if(Q){if(M=E[p],I[++p]=++C,M)return"(?<"+M+">"}else if(R){var P=+R-1;
return E[P]?"\\k<"+E[P]+">":"\\"+I[+R]}return F});
return b(d,h)}}},
{}],2:[function(n,m){m.exports=function(b){function q(v,t,A,d){return{name:v,value:t,start:A,end:d}}
b.matchRecursive=function(v,t,A,d,f){d=d||"";f=f||{};var h=d.indexOf("g")>-1,k=d.indexOf("y")>-1,r=d.replace(/y/g,""),u=f.escapeChar;f=f.valueNames;var B=[],C=0,D=0,p=0,I=0;t=b(t,r);A=b(A,r);if(u){if(u.length>1)throw Error("Cannot use more than one escape character");u=b.escape(u);var E=new RegExp("(?:"+u+"[\\S\\s]|(?:(?!"+b.union([t,A],"",{conjunction:"or"}).source+")[^"+u+"])+)+",d.replace(/[^imu]+/g,""))}for(;;){u&&(p+=(b.exec(v,E,p,"sticky")||[""])[0].length);d=b.exec(v,t,p);r=b.exec(v,A,p);d&&
r&&(d.index<=r.index?r=null:d=null);if(d||r)D=(d||r).index,p=D+(d||r)[0].length;else if(!C)break;if(k&&!C&&D>I)break;if(d){if(!C){var F=D;var J=p}++C}else if(r&&C){if(!--C&&(f?(f[0]&&F>I&&B.push(q(f[0],v.slice(I,F),I,F)),f[1]&&B.push(q(f[1],v.slice(F,J),F,J)),f[2]&&B.push(q(f[2],v.slice(J,D),J,D)),f[3]&&B.push(q(f[3],v.slice(D,p),D,p))):B.push(v.slice(J,D)),I=p,!h))break}else throw Error("Unbalanced delimiter found in string");D===p&&++p}h&&!k&&f&&f[0]&&v.length>I&&B.push(q(f[0],v.slice(I),I,v.length));
return B}}},
{}],3:[function(n,m){m.exports=function(b){function q(k){return k.replace(/[- _]+/g,"").toLowerCase()}
function v(k){var r=/^\\[xu](.+)/.exec(k);return r?d(r[1]):k.charCodeAt(k.charAt(0)==="\\"?1:0)}
function t(k){var r="",u=-1;b.forEach(k,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(B){var C=v(B[1]);C>u+1&&(r+="\\u"+h(f(u+1)),C>u+2&&(r+="-\\u"+h(f(C-1))));u=v(B[2]||B[1])});
u<65535&&(r+="\\u"+h(f(u+1)),u<65534&&(r+="-\\uFFFF"));return r}
var A={},d=b._dec,f=b._hex,h=b._pad4;b.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(k,r,u){var B=k[1]==="P"||!!k[2],C=u.indexOf("A")>-1;u=q(k[4]||k[3]);var D=A[u];if(k[1]==="P"&&k[2])throw new SyntaxError("Invalid double negation "+k[0]);if(!A.hasOwnProperty(u))throw new SyntaxError("Unknown Unicode token "+k[0]);if(D.inverseOf){u=q(D.inverseOf);if(!A.hasOwnProperty(u))throw new ReferenceError("Unicode token missing data "+k[0]+" -> "+D.inverseOf);D=A[u];B=!B}if(!D.bmp&&!C)throw new SyntaxError("Astral mode required for Unicode token "+
k[0]);if(C){if(r==="class")throw new SyntaxError("Astral mode does not support Unicode tokens within character classes");k=B?"a!":"a=";(r=A[u][k])||(r=A[u],u=A[u],C="",u.bmp&&!u.isBmpLast&&(C="["+u.bmp+"]"+(u.astral?"|":"")),u.astral&&(C+=u.astral),u.isBmpLast&&u.bmp&&(C+=(u.astral?"|":"")+"["+u.bmp+"]"),B=B?"(?:(?!"+C+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+C+")",r=r[k]=B);return B=r}return B=r==="class"?B?A[u]["b!"]||(A[u]["b!"]=t(A[u].bmp)):D.bmp:(B?"[^":"[")+D.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});b.addUnicodeData=function(k){for(var r,u=0;u<k.length;++u){r=k[u];if(!r.name)throw Error("Unicode token requires name");if(!(r.inverseOf||r.bmp||r.astral))throw Error("Unicode token has no character data "+r.name);A[q(r.name)]=r;r.alias&&(A[q(r.alias)]=r)}b.cache.flush("patterns")};
b._getUnicodeProperty=function(k){k=q(k);return A[k]}}},
{}],4:[function(n,m){m.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks");b.addUnicodeData([{name:"InAdlam",astral:"\ud83a[\udd00-\udd5f]"},{name:"InAegean_Numbers",astral:"\ud800[\udd00-\udd3f]"},{name:"InAhom",astral:"\ud805[\udf00-\udf3f]"},{name:"InAlchemical_Symbols",astral:"\ud83d[\udf00-\udf7f]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\ufb00-\ufb4f"},{name:"InAnatolian_Hieroglyphs",astral:"\ud811[\udc00-\ude7f]"},{name:"InAncient_Greek_Musical_Notation",
astral:"\ud834[\ude00-\ude4f]"},{name:"InAncient_Greek_Numbers",astral:"\ud800[\udd40-\udd8f]"},{name:"InAncient_Symbols",astral:"\ud800[\udd90-\uddcf]"},{name:"InArabic",bmp:"\u0600-\u06ff"},{name:"InArabic_Extended_A",bmp:"\u08a0-\u08ff"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\ud83b[\ude00-\udeff]"},{name:"InArabic_Presentation_Forms_A",bmp:"\ufb50-\ufdff"},{name:"InArabic_Presentation_Forms_B",bmp:"\ufe70-\ufeff"},{name:"InArabic_Supplement",bmp:"\u0750-\u077f"},{name:"InArmenian",
bmp:"\u0530-\u058f"},{name:"InArrows",bmp:"\u2190-\u21ff"},{name:"InAvestan",astral:"\ud802[\udf00-\udf3f]"},{name:"InBalinese",bmp:"\u1b00-\u1b7f"},{name:"InBamum",bmp:"\ua6a0-\ua6ff"},{name:"InBamum_Supplement",astral:"\ud81a[\udc00-\ude3f]"},{name:"InBasic_Latin",bmp:"\x00-\u007f"},{name:"InBassa_Vah",astral:"\ud81a[\uded0-\udeff]"},{name:"InBatak",bmp:"\u1bc0-\u1bff"},{name:"InBengali",bmp:"\u0980-\u09ff"},{name:"InBhaiksuki",astral:"\ud807[\udc00-\udc6f]"},{name:"InBlock_Elements",bmp:"\u2580-\u259f"},
{name:"InBopomofo",bmp:"\u3100-\u312f"},{name:"InBopomofo_Extended",bmp:"\u31a0-\u31bf"},{name:"InBox_Drawing",bmp:"\u2500-\u257f"},{name:"InBrahmi",astral:"\ud804[\udc00-\udc7f]"},{name:"InBraille_Patterns",bmp:"\u2800-\u28ff"},{name:"InBuginese",bmp:"\u1a00-\u1a1f"},{name:"InBuhid",bmp:"\u1740-\u175f"},{name:"InByzantine_Musical_Symbols",astral:"\ud834[\udc00-\udcff]"},{name:"InCJK_Compatibility",bmp:"\u3300-\u33ff"},{name:"InCJK_Compatibility_Forms",bmp:"\ufe30-\ufe4f"},{name:"InCJK_Compatibility_Ideographs",
bmp:"\uf900-\ufaff"},{name:"InCJK_Compatibility_Ideographs_Supplement",astral:"\ud87e[\udc00-\ude1f]"},{name:"InCJK_Radicals_Supplement",bmp:"\u2e80-\u2eff"},{name:"InCJK_Strokes",bmp:"\u31c0-\u31ef"},{name:"InCJK_Symbols_and_Punctuation",bmp:"\u3000-\u303f"},{name:"InCJK_Unified_Ideographs",bmp:"\u4e00-\u9fff"},{name:"InCJK_Unified_Ideographs_Extension_A",bmp:"\u3400-\u4dbf"},{name:"InCJK_Unified_Ideographs_Extension_B",astral:"[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\udedf]"},{name:"InCJK_Unified_Ideographs_Extension_C",
astral:"\ud869[\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf3f]"},{name:"InCJK_Unified_Ideographs_Extension_D",astral:"\ud86d[\udf40-\udfff]|\ud86e[\udc00-\udc1f]"},{name:"InCJK_Unified_Ideographs_Extension_E",astral:"\ud86e[\udc20-\udfff]|[\ud86f-\ud872][\udc00-\udfff]|\ud873[\udc00-\udeaf]"},{name:"InCarian",astral:"\ud800[\udea0-\udedf]"},{name:"InCaucasian_Albanian",astral:"\ud801[\udd30-\udd6f]"},{name:"InChakma",astral:"\ud804[\udd00-\udd4f]"},{name:"InCham",bmp:"\uaa00-\uaa5f"},
{name:"InCherokee",bmp:"\u13a0-\u13ff"},{name:"InCherokee_Supplement",bmp:"\uab70-\uabbf"},{name:"InCombining_Diacritical_Marks",bmp:"\u0300-\u036f"},{name:"InCombining_Diacritical_Marks_Extended",bmp:"\u1ab0-\u1aff"},{name:"InCombining_Diacritical_Marks_Supplement",bmp:"\u1dc0-\u1dff"},{name:"InCombining_Diacritical_Marks_for_Symbols",bmp:"\u20d0-\u20ff"},{name:"InCombining_Half_Marks",bmp:"\ufe20-\ufe2f"},{name:"InCommon_Indic_Number_Forms",bmp:"\ua830-\ua83f"},{name:"InControl_Pictures",bmp:"\u2400-\u243f"},
{name:"InCoptic",bmp:"\u2c80-\u2cff"},{name:"InCoptic_Epact_Numbers",astral:"\ud800[\udee0-\udeff]"},{name:"InCounting_Rod_Numerals",astral:"\ud834[\udf60-\udf7f]"},{name:"InCuneiform",astral:"\ud808[\udc00-\udfff]"},{name:"InCuneiform_Numbers_and_Punctuation",astral:"\ud809[\udc00-\udc7f]"},{name:"InCurrency_Symbols",bmp:"\u20a0-\u20cf"},{name:"InCypriot_Syllabary",astral:"\ud802[\udc00-\udc3f]"},{name:"InCyrillic",bmp:"\u0400-\u04ff"},{name:"InCyrillic_Extended_A",bmp:"\u2de0-\u2dff"},{name:"InCyrillic_Extended_B",
bmp:"\ua640-\ua69f"},{name:"InCyrillic_Extended_C",bmp:"\u1c80-\u1c8f"},{name:"InCyrillic_Supplement",bmp:"\u0500-\u052f"},{name:"InDeseret",astral:"\ud801[\udc00-\udc4f]"},{name:"InDevanagari",bmp:"\u0900-\u097f"},{name:"InDevanagari_Extended",bmp:"\ua8e0-\ua8ff"},{name:"InDingbats",bmp:"\u2700-\u27bf"},{name:"InDomino_Tiles",astral:"\ud83c[\udc30-\udc9f]"},{name:"InDuployan",astral:"\ud82f[\udc00-\udc9f]"},{name:"InEarly_Dynastic_Cuneiform",astral:"\ud809[\udc80-\udd4f]"},{name:"InEgyptian_Hieroglyphs",
astral:"\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2f]"},{name:"InElbasan",astral:"\ud801[\udd00-\udd2f]"},{name:"InEmoticons",astral:"\ud83d[\ude00-\ude4f]"},{name:"InEnclosed_Alphanumeric_Supplement",astral:"\ud83c[\udd00-\uddff]"},{name:"InEnclosed_Alphanumerics",bmp:"\u2460-\u24ff"},{name:"InEnclosed_CJK_Letters_and_Months",bmp:"\u3200-\u32ff"},{name:"InEnclosed_Ideographic_Supplement",astral:"\ud83c[\ude00-\udeff]"},{name:"InEthiopic",bmp:"\u1200-\u137f"},{name:"InEthiopic_Extended",bmp:"\u2d80-\u2ddf"},
{name:"InEthiopic_Extended_A",bmp:"\uab00-\uab2f"},{name:"InEthiopic_Supplement",bmp:"\u1380-\u139f"},{name:"InGeneral_Punctuation",bmp:"\u2000-\u206f"},{name:"InGeometric_Shapes",bmp:"\u25a0-\u25ff"},{name:"InGeometric_Shapes_Extended",astral:"\ud83d[\udf80-\udfff]"},{name:"InGeorgian",bmp:"\u10a0-\u10ff"},{name:"InGeorgian_Supplement",bmp:"\u2d00-\u2d2f"},{name:"InGlagolitic",bmp:"\u2c00-\u2c5f"},{name:"InGlagolitic_Supplement",astral:"\ud838[\udc00-\udc2f]"},{name:"InGothic",astral:"\ud800[\udf30-\udf4f]"},
{name:"InGrantha",astral:"\ud804[\udf00-\udf7f]"},{name:"InGreek_Extended",bmp:"\u1f00-\u1fff"},{name:"InGreek_and_Coptic",bmp:"\u0370-\u03ff"},{name:"InGujarati",bmp:"\u0a80-\u0aff"},{name:"InGurmukhi",bmp:"\u0a00-\u0a7f"},{name:"InHalfwidth_and_Fullwidth_Forms",bmp:"\uff00-\uffef"},{name:"InHangul_Compatibility_Jamo",bmp:"\u3130-\u318f"},{name:"InHangul_Jamo",bmp:"\u1100-\u11ff"},{name:"InHangul_Jamo_Extended_A",bmp:"\ua960-\ua97f"},{name:"InHangul_Jamo_Extended_B",bmp:"\ud7b0-\ud7ff"},{name:"InHangul_Syllables",
bmp:"\uac00-\ud7af"},{name:"InHanunoo",bmp:"\u1720-\u173f"},{name:"InHatran",astral:"\ud802[\udce0-\udcff]"},{name:"InHebrew",bmp:"\u0590-\u05ff"},{name:"InHigh_Private_Use_Surrogates",bmp:"\udb80-\udbff"},{name:"InHigh_Surrogates",bmp:"\ud800-\udb7f"},{name:"InHiragana",bmp:"\u3040-\u309f"},{name:"InIPA_Extensions",bmp:"\u0250-\u02af"},{name:"InIdeographic_Description_Characters",bmp:"\u2ff0-\u2fff"},{name:"InIdeographic_Symbols_and_Punctuation",astral:"\ud81b[\udfe0-\udfff]"},{name:"InImperial_Aramaic",
astral:"\ud802[\udc40-\udc5f]"},{name:"InInscriptional_Pahlavi",astral:"\ud802[\udf60-\udf7f]"},{name:"InInscriptional_Parthian",astral:"\ud802[\udf40-\udf5f]"},{name:"InJavanese",bmp:"\ua980-\ua9df"},{name:"InKaithi",astral:"\ud804[\udc80-\udccf]"},{name:"InKana_Supplement",astral:"\ud82c[\udc00-\udcff]"},{name:"InKanbun",bmp:"\u3190-\u319f"},{name:"InKangxi_Radicals",bmp:"\u2f00-\u2fdf"},{name:"InKannada",bmp:"\u0c80-\u0cff"},{name:"InKatakana",bmp:"\u30a0-\u30ff"},{name:"InKatakana_Phonetic_Extensions",
bmp:"\u31f0-\u31ff"},{name:"InKayah_Li",bmp:"\ua900-\ua92f"},{name:"InKharoshthi",astral:"\ud802[\ude00-\ude5f]"},{name:"InKhmer",bmp:"\u1780-\u17ff"},{name:"InKhmer_Symbols",bmp:"\u19e0-\u19ff"},{name:"InKhojki",astral:"\ud804[\ude00-\ude4f]"},{name:"InKhudawadi",astral:"\ud804[\udeb0-\udeff]"},{name:"InLao",bmp:"\u0e80-\u0eff"},{name:"InLatin_Extended_Additional",bmp:"\u1e00-\u1eff"},{name:"InLatin_Extended_A",bmp:"\u0100-\u017f"},{name:"InLatin_Extended_B",bmp:"\u0180-\u024f"},{name:"InLatin_Extended_C",
bmp:"\u2c60-\u2c7f"},{name:"InLatin_Extended_D",bmp:"\ua720-\ua7ff"},{name:"InLatin_Extended_E",bmp:"\uab30-\uab6f"},{name:"InLatin_1_Supplement",bmp:"\u0080-\u00ff"},{name:"InLepcha",bmp:"\u1c00-\u1c4f"},{name:"InLetterlike_Symbols",bmp:"\u2100-\u214f"},{name:"InLimbu",bmp:"\u1900-\u194f"},{name:"InLinear_A",astral:"\ud801[\ude00-\udf7f]"},{name:"InLinear_B_Ideograms",astral:"\ud800[\udc80-\udcff]"},{name:"InLinear_B_Syllabary",astral:"\ud800[\udc00-\udc7f]"},{name:"InLisu",bmp:"\ua4d0-\ua4ff"},
{name:"InLow_Surrogates",bmp:"\udc00-\udfff"},{name:"InLycian",astral:"\ud800[\ude80-\ude9f]"},{name:"InLydian",astral:"\ud802[\udd20-\udd3f]"},{name:"InMahajani",astral:"\ud804[\udd50-\udd7f]"},{name:"InMahjong_Tiles",astral:"\ud83c[\udc00-\udc2f]"},{name:"InMalayalam",bmp:"\u0d00-\u0d7f"},{name:"InMandaic",bmp:"\u0840-\u085f"},{name:"InManichaean",astral:"\ud802[\udec0-\udeff]"},{name:"InMarchen",astral:"\ud807[\udc70-\udcbf]"},{name:"InMathematical_Alphanumeric_Symbols",astral:"\ud835[\udc00-\udfff]"},
{name:"InMathematical_Operators",bmp:"\u2200-\u22ff"},{name:"InMeetei_Mayek",bmp:"\uabc0-\uabff"},{name:"InMeetei_Mayek_Extensions",bmp:"\uaae0-\uaaff"},{name:"InMende_Kikakui",astral:"\ud83a[\udc00-\udcdf]"},{name:"InMeroitic_Cursive",astral:"\ud802[\udda0-\uddff]"},{name:"InMeroitic_Hieroglyphs",astral:"\ud802[\udd80-\udd9f]"},{name:"InMiao",astral:"\ud81b[\udf00-\udf9f]"},{name:"InMiscellaneous_Mathematical_Symbols_A",bmp:"\u27c0-\u27ef"},{name:"InMiscellaneous_Mathematical_Symbols_B",bmp:"\u2980-\u29ff"},
{name:"InMiscellaneous_Symbols",bmp:"\u2600-\u26ff"},{name:"InMiscellaneous_Symbols_and_Arrows",bmp:"\u2b00-\u2bff"},{name:"InMiscellaneous_Symbols_and_Pictographs",astral:"\ud83c[\udf00-\udfff]|\ud83d[\udc00-\uddff]"},{name:"InMiscellaneous_Technical",bmp:"\u2300-\u23ff"},{name:"InModi",astral:"\ud805[\ude00-\ude5f]"},{name:"InModifier_Tone_Letters",bmp:"\ua700-\ua71f"},{name:"InMongolian",bmp:"\u1800-\u18af"},{name:"InMongolian_Supplement",astral:"\ud805[\ude60-\ude7f]"},{name:"InMro",astral:"\ud81a[\ude40-\ude6f]"},
{name:"InMultani",astral:"\ud804[\ude80-\udeaf]"},{name:"InMusical_Symbols",astral:"\ud834[\udd00-\uddff]"},{name:"InMyanmar",bmp:"\u1000-\u109f"},{name:"InMyanmar_Extended_A",bmp:"\uaa60-\uaa7f"},{name:"InMyanmar_Extended_B",bmp:"\ua9e0-\ua9ff"},{name:"InNKo",bmp:"\u07c0-\u07ff"},{name:"InNabataean",astral:"\ud802[\udc80-\udcaf]"},{name:"InNew_Tai_Lue",bmp:"\u1980-\u19df"},{name:"InNewa",astral:"\ud805[\udc00-\udc7f]"},{name:"InNumber_Forms",bmp:"\u2150-\u218f"},{name:"InOgham",bmp:"\u1680-\u169f"},
{name:"InOl_Chiki",bmp:"\u1c50-\u1c7f"},{name:"InOld_Hungarian",astral:"\ud803[\udc80-\udcff]"},{name:"InOld_Italic",astral:"\ud800[\udf00-\udf2f]"},{name:"InOld_North_Arabian",astral:"\ud802[\ude80-\ude9f]"},{name:"InOld_Permic",astral:"\ud800[\udf50-\udf7f]"},{name:"InOld_Persian",astral:"\ud800[\udfa0-\udfdf]"},{name:"InOld_South_Arabian",astral:"\ud802[\ude60-\ude7f]"},{name:"InOld_Turkic",astral:"\ud803[\udc00-\udc4f]"},{name:"InOptical_Character_Recognition",bmp:"\u2440-\u245f"},{name:"InOriya",
bmp:"\u0b00-\u0b7f"},{name:"InOrnamental_Dingbats",astral:"\ud83d[\ude50-\ude7f]"},{name:"InOsage",astral:"\ud801[\udcb0-\udcff]"},{name:"InOsmanya",astral:"\ud801[\udc80-\udcaf]"},{name:"InPahawh_Hmong",astral:"\ud81a[\udf00-\udf8f]"},{name:"InPalmyrene",astral:"\ud802[\udc60-\udc7f]"},{name:"InPau_Cin_Hau",astral:"\ud806[\udec0-\udeff]"},{name:"InPhags_pa",bmp:"\ua840-\ua87f"},{name:"InPhaistos_Disc",astral:"\ud800[\uddd0-\uddff]"},{name:"InPhoenician",astral:"\ud802[\udd00-\udd1f]"},{name:"InPhonetic_Extensions",
bmp:"\u1d00-\u1d7f"},{name:"InPhonetic_Extensions_Supplement",bmp:"\u1d80-\u1dbf"},{name:"InPlaying_Cards",astral:"\ud83c[\udca0-\udcff]"},{name:"InPrivate_Use_Area",bmp:"\ue000-\uf8ff"},{name:"InPsalter_Pahlavi",astral:"\ud802[\udf80-\udfaf]"},{name:"InRejang",bmp:"\ua930-\ua95f"},{name:"InRumi_Numeral_Symbols",astral:"\ud803[\ude60-\ude7f]"},{name:"InRunic",bmp:"\u16a0-\u16ff"},{name:"InSamaritan",bmp:"\u0800-\u083f"},{name:"InSaurashtra",bmp:"\ua880-\ua8df"},{name:"InSharada",astral:"\ud804[\udd80-\udddf]"},
{name:"InShavian",astral:"\ud801[\udc50-\udc7f]"},{name:"InShorthand_Format_Controls",astral:"\ud82f[\udca0-\udcaf]"},{name:"InSiddham",astral:"\ud805[\udd80-\uddff]"},{name:"InSinhala",bmp:"\u0d80-\u0dff"},{name:"InSinhala_Archaic_Numbers",astral:"\ud804[\udde0-\uddff]"},{name:"InSmall_Form_Variants",bmp:"\ufe50-\ufe6f"},{name:"InSora_Sompeng",astral:"\ud804[\udcd0-\udcff]"},{name:"InSpacing_Modifier_Letters",bmp:"\u02b0-\u02ff"},{name:"InSpecials",bmp:"\ufff0-\uffff"},{name:"InSundanese",bmp:"\u1b80-\u1bbf"},
{name:"InSundanese_Supplement",bmp:"\u1cc0-\u1ccf"},{name:"InSuperscripts_and_Subscripts",bmp:"\u2070-\u209f"},{name:"InSupplemental_Arrows_A",bmp:"\u27f0-\u27ff"},{name:"InSupplemental_Arrows_B",bmp:"\u2900-\u297f"},{name:"InSupplemental_Arrows_C",astral:"\ud83e[\udc00-\udcff]"},{name:"InSupplemental_Mathematical_Operators",bmp:"\u2a00-\u2aff"},{name:"InSupplemental_Punctuation",bmp:"\u2e00-\u2e7f"},{name:"InSupplemental_Symbols_and_Pictographs",astral:"\ud83e[\udd00-\uddff]"},{name:"InSupplementary_Private_Use_Area_A",
astral:"[\udb80-\udbbf][\udc00-\udfff]"},{name:"InSupplementary_Private_Use_Area_B",astral:"[\udbc0-\udbff][\udc00-\udfff]"},{name:"InSutton_SignWriting",astral:"\ud836[\udc00-\udeaf]"},{name:"InSyloti_Nagri",bmp:"\ua800-\ua82f"},{name:"InSyriac",bmp:"\u0700-\u074f"},{name:"InTagalog",bmp:"\u1700-\u171f"},{name:"InTagbanwa",bmp:"\u1760-\u177f"},{name:"InTags",astral:"\udb40[\udc00-\udc7f]"},{name:"InTai_Le",bmp:"\u1950-\u197f"},{name:"InTai_Tham",bmp:"\u1a20-\u1aaf"},{name:"InTai_Viet",bmp:"\uaa80-\uaadf"},
{name:"InTai_Xuan_Jing_Symbols",astral:"\ud834[\udf00-\udf5f]"},{name:"InTakri",astral:"\ud805[\ude80-\udecf]"},{name:"InTamil",bmp:"\u0b80-\u0bff"},{name:"InTangut",astral:"[\ud81c-\ud821][\udc00-\udfff]"},{name:"InTangut_Components",astral:"\ud822[\udc00-\udeff]"},{name:"InTelugu",bmp:"\u0c00-\u0c7f"},{name:"InThaana",bmp:"\u0780-\u07bf"},{name:"InThai",bmp:"\u0e00-\u0e7f"},{name:"InTibetan",bmp:"\u0f00-\u0fff"},{name:"InTifinagh",bmp:"\u2d30-\u2d7f"},{name:"InTirhuta",astral:"\ud805[\udc80-\udcdf]"},
{name:"InTransport_and_Map_Symbols",astral:"\ud83d[\ude80-\udeff]"},{name:"InUgaritic",astral:"\ud800[\udf80-\udf9f]"},{name:"InUnified_Canadian_Aboriginal_Syllabics",bmp:"\u1400-\u167f"},{name:"InUnified_Canadian_Aboriginal_Syllabics_Extended",bmp:"\u18b0-\u18ff"},{name:"InVai",bmp:"\ua500-\ua63f"},{name:"InVariation_Selectors",bmp:"\ufe00-\ufe0f"},{name:"InVariation_Selectors_Supplement",astral:"\udb40[\udd00-\uddef]"},{name:"InVedic_Extensions",bmp:"\u1cd0-\u1cff"},{name:"InVertical_Forms",bmp:"\ufe10-\ufe1f"},
{name:"InWarang_Citi",astral:"\ud806[\udca0-\udcff]"},{name:"InYi_Radicals",bmp:"\ua490-\ua4cf"},{name:"InYi_Syllables",bmp:"\ua000-\ua48f"},{name:"InYijing_Hexagram_Symbols",bmp:"\u4dc0-\u4dff"}])}},
{}],5:[function(n,m){m.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");b.addUnicodeData([{name:"C",alias:"Other",isBmpLast:!0,bmp:"\x00-\u001f\u007f-\u009f\u00ad\u0378\u0379\u0380-\u0383\u038b\u038d\u03a2\u0530\u0557\u0558\u0560\u0588\u058b\u058c\u0590\u05c8-\u05cf\u05eb-\u05ef\u05f5-\u0605\u061c\u061d\u06dd\u070e\u070f\u074b\u074c\u07b2-\u07bf\u07fb-\u07ff\u082e\u082f\u083f\u085c\u085d\u085f-\u089f\u08b5\u08be-\u08d3\u08e2\u0984\u098d\u098e\u0991\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba\u09bb\u09c5\u09c6\u09c9\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4\u09e5\u09fc-\u0a00\u0a04\u0a0b-\u0a0e\u0a11\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a\u0a3b\u0a3d\u0a43-\u0a46\u0a49\u0a4a\u0a4e-\u0a50\u0a52-\u0a58\u0a5d\u0a5f-\u0a65\u0a76-\u0a80\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba\u0abb\u0ac6\u0aca\u0ace\u0acf\u0ad1-\u0adf\u0ae4\u0ae5\u0af2-\u0af8\u0afa-\u0b00\u0b04\u0b0d\u0b0e\u0b11\u0b12\u0b29\u0b31\u0b34\u0b3a\u0b3b\u0b45\u0b46\u0b49\u0b4a\u0b4e-\u0b55\u0b58-\u0b5b\u0b5e\u0b64\u0b65\u0b78-\u0b81\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce\u0bcf\u0bd1-\u0bd6\u0bd8-\u0be5\u0bfb-\u0bff\u0c04\u0c0d\u0c11\u0c29\u0c3a-\u0c3c\u0c45\u0c49\u0c4e-\u0c54\u0c57\u0c5b-\u0c5f\u0c64\u0c65\u0c70-\u0c77\u0c84\u0c8d\u0c91\u0ca9\u0cb4\u0cba\u0cbb\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0cdd\u0cdf\u0ce4\u0ce5\u0cf0\u0cf3-\u0d00\u0d04\u0d0d\u0d11\u0d3b\u0d3c\u0d45\u0d49\u0d50-\u0d53\u0d64\u0d65\u0d80\u0d81\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe\u0dbf\u0dc7-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0de5\u0df0\u0df1\u0df5-\u0e00\u0e3b-\u0e3e\u0e5c-\u0e80\u0e83\u0e85\u0e86\u0e89\u0e8b\u0e8c\u0e8e-\u0e93\u0e98\u0ea0\u0ea4\u0ea6\u0ea8\u0ea9\u0eac\u0eba\u0ebe\u0ebf\u0ec5\u0ec7\u0ece\u0ecf\u0eda\u0edb\u0ee0-\u0eff\u0f48\u0f6d-\u0f70\u0f98\u0fbd\u0fcd\u0fdb-\u0fff\u10c6\u10c8-\u10cc\u10ce\u10cf\u1249\u124e\u124f\u1257\u1259\u125e\u125f\u1289\u128e\u128f\u12b1\u12b6\u12b7\u12bf\u12c1\u12c6\u12c7\u12d7\u1311\u1316\u1317\u135b\u135c\u137d-\u137f\u139a-\u139f\u13f6\u13f7\u13fe\u13ff\u169d-\u169f\u16f9-\u16ff\u170d\u1715-\u171f\u1737-\u173f\u1754-\u175f\u176d\u1771\u1774-\u177f\u17de\u17df\u17ea-\u17ef\u17fa-\u17ff\u180e\u180f\u181a-\u181f\u1878-\u187f\u18ab-\u18af\u18f6-\u18ff\u191f\u192c-\u192f\u193c-\u193f\u1941-\u1943\u196e\u196f\u1975-\u197f\u19ac-\u19af\u19ca-\u19cf\u19db-\u19dd\u1a1c\u1a1d\u1a5f\u1a7d\u1a7e\u1a8a-\u1a8f\u1a9a-\u1a9f\u1aae\u1aaf\u1abf-\u1aff\u1b4c-\u1b4f\u1b7d-\u1b7f\u1bf4-\u1bfb\u1c38-\u1c3a\u1c4a-\u1c4c\u1c89-\u1cbf\u1cc8-\u1ccf\u1cf7\u1cfa-\u1cff\u1df6-\u1dfa\u1f16\u1f17\u1f1e\u1f1f\u1f46\u1f47\u1f4e\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e\u1f7f\u1fb5\u1fc5\u1fd4\u1fd5\u1fdc\u1ff0\u1ff1\u1ff5\u1fff\u200b-\u200f\u202a-\u202e\u2060-\u206f\u2072\u2073\u208f\u209d-\u209f\u20bf-\u20cf\u20f1-\u20ff\u218c-\u218f\u23ff\u2427-\u243f\u244b-\u245f\u2b74\u2b75\u2b96\u2b97\u2bba-\u2bbc\u2bc9\u2bd2-\u2beb\u2bf0-\u2bff\u2c2f\u2c5f\u2cf4-\u2cf8\u2d26\u2d28-\u2d2c\u2d2e\u2d2f\u2d68-\u2d6e\u2d71-\u2d7e\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e45-\u2e7f\u2e9a\u2ef4-\u2eff\u2fd6-\u2fef\u2ffc-\u2fff\u3040\u3097\u3098\u3100-\u3104\u312e-\u3130\u318f\u31bb-\u31bf\u31e4-\u31ef\u321f\u32ff\u4db6-\u4dbf\u9fd6-\u9fff\ua48d-\ua48f\ua4c7-\ua4cf\ua62c-\ua63f\ua6f8-\ua6ff\ua7af\ua7b8-\ua7f6\ua82c-\ua82f\ua83a-\ua83f\ua878-\ua87f\ua8c6-\ua8cd\ua8da-\ua8df\ua8fe\ua8ff\ua954-\ua95e\ua97d-\ua97f\ua9ce\ua9da-\ua9dd\ua9ff\uaa37-\uaa3f\uaa4e\uaa4f\uaa5a\uaa5b\uaac3-\uaada\uaaf7-\uab00\uab07\uab08\uab0f\uab10\uab17-\uab1f\uab27\uab2f\uab66-\uab6f\uabee\uabef\uabfa-\uabff\ud7a4-\ud7af\ud7c7-\ud7ca\ud7fc-\uf8ff\ufa6e\ufa6f\ufada-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbc2-\ufbd2\ufd40-\ufd4f\ufd90\ufd91\ufdc8-\ufdef\ufdfe\ufdff\ufe1a-\ufe1f\ufe53\ufe67\ufe6c-\ufe6f\ufe75\ufefd-\uff00\uffbf-\uffc1\uffc8\uffc9\uffd0\uffd1\uffd8\uffd9\uffdd-\uffdf\uffe7\uffef-\ufffb\ufffe\uffff",
astral:"\ud800[\udc0c\udc27\udc3b\udc3e\udc4e\udc4f\udc5e-\udc7f\udcfb-\udcff\udd03-\udd06\udd34-\udd36\udd8f\udd9c-\udd9f\udda1-\uddcf\uddfe-\ude7f\ude9d-\ude9f\uded1-\udedf\udefc-\udeff\udf24-\udf2f\udf4b-\udf4f\udf7b-\udf7f\udf9e\udfc4-\udfc7\udfd6-\udfff]|\ud801[\udc9e\udc9f\udcaa-\udcaf\udcd4-\udcd7\udcfc-\udcff\udd28-\udd2f\udd64-\udd6e\udd70-\uddff\udf37-\udf3f\udf56-\udf5f\udf68-\udfff]|\ud802[\udc06\udc07\udc09\udc36\udc39-\udc3b\udc3d\udc3e\udc56\udc9f-\udca6\udcb0-\udcdf\udcf3\udcf6-\udcfa\udd1c-\udd1e\udd3a-\udd3e\udd40-\udd7f\uddb8-\uddbb\uddd0\uddd1\ude04\ude07-\ude0b\ude14\ude18\ude34-\ude37\ude3b-\ude3e\ude48-\ude4f\ude59-\ude5f\udea0-\udebf\udee7-\udeea\udef7-\udeff\udf36-\udf38\udf56\udf57\udf73-\udf77\udf92-\udf98\udf9d-\udfa8\udfb0-\udfff]|\ud803[\udc49-\udc7f\udcb3-\udcbf\udcf3-\udcf9\udd00-\ude5f\ude7f-\udfff]|\ud804[\udc4e-\udc51\udc70-\udc7e\udcbd\udcc2-\udccf\udce9-\udcef\udcfa-\udcff\udd35\udd44-\udd4f\udd77-\udd7f\uddce\uddcf\udde0\uddf5-\uddff\ude12\ude3f-\ude7f\ude87\ude89\ude8e\ude9e\udeaa-\udeaf\udeeb-\udeef\udefa-\udeff\udf04\udf0d\udf0e\udf11\udf12\udf29\udf31\udf34\udf3a\udf3b\udf45\udf46\udf49\udf4a\udf4e\udf4f\udf51-\udf56\udf58-\udf5c\udf64\udf65\udf6d-\udf6f\udf75-\udfff]|\ud805[\udc5a\udc5c\udc5e-\udc7f\udcc8-\udccf\udcda-\udd7f\uddb6\uddb7\uddde-\uddff\ude45-\ude4f\ude5a-\ude5f\ude6d-\ude7f\udeb8-\udebf\udeca-\udeff\udf1a-\udf1c\udf2c-\udf2f\udf40-\udfff]|\ud806[\udc00-\udc9f\udcf3-\udcfe\udd00-\udebf\udef9-\udfff]|\ud807[\udc09\udc37\udc46-\udc4f\udc6d-\udc6f\udc90\udc91\udca8\udcb7-\udfff]|\ud808[\udf9a-\udfff]|\ud809[\udc6f\udc75-\udc7f\udd44-\udfff]|[\ud80a\ud80b\ud80e-\ud810\ud812-\ud819\ud823-\ud82b\ud82d\ud82e\ud830-\ud833\ud837\ud839\ud83f\ud874-\ud87d\ud87f-\udb3f\udb41-\udbff][\udc00-\udfff]|\ud80d[\udc2f-\udfff]|\ud811[\ude47-\udfff]|\ud81a[\ude39-\ude3f\ude5f\ude6a-\ude6d\ude70-\udecf\udeee\udeef\udef6-\udeff\udf46-\udf4f\udf5a\udf62\udf78-\udf7c\udf90-\udfff]|\ud81b[\udc00-\udeff\udf45-\udf4f\udf7f-\udf8e\udfa0-\udfdf\udfe1-\udfff]|\ud821[\udfed-\udfff]|\ud822[\udef3-\udfff]|\ud82c[\udc02-\udfff]|\ud82f[\udc6b-\udc6f\udc7d-\udc7f\udc89-\udc8f\udc9a\udc9b\udca0-\udfff]|\ud834[\udcf6-\udcff\udd27\udd28\udd73-\udd7a\udde9-\uddff\ude46-\udeff\udf57-\udf5f\udf72-\udfff]|\ud835[\udc55\udc9d\udca0\udca1\udca3\udca4\udca7\udca8\udcad\udcba\udcbc\udcc4\udd06\udd0b\udd0c\udd15\udd1d\udd3a\udd3f\udd45\udd47-\udd49\udd51\udea6\udea7\udfcc\udfcd]|\ud836[\ude8c-\ude9a\udea0\udeb0-\udfff]|\ud838[\udc07\udc19\udc1a\udc22\udc25\udc2b-\udfff]|\ud83a[\udcc5\udcc6\udcd7-\udcff\udd4b-\udd4f\udd5a-\udd5d\udd60-\udfff]|\ud83b[\udc00-\uddff\ude04\ude20\ude23\ude25\ude26\ude28\ude33\ude38\ude3a\ude3c-\ude41\ude43-\ude46\ude48\ude4a\ude4c\ude50\ude53\ude55\ude56\ude58\ude5a\ude5c\ude5e\ude60\ude63\ude65\ude66\ude6b\ude73\ude78\ude7d\ude7f\ude8a\ude9c-\udea0\udea4\udeaa\udebc-\udeef\udef2-\udfff]|\ud83c[\udc2c-\udc2f\udc94-\udc9f\udcaf\udcb0\udcc0\udcd0\udcf6-\udcff\udd0d-\udd0f\udd2f\udd6c-\udd6f\uddad-\udde5\ude03-\ude0f\ude3c-\ude3f\ude49-\ude4f\ude52-\udeff]|\ud83d[\uded3-\udedf\udeed-\udeef\udef7-\udeff\udf74-\udf7f\udfd5-\udfff]|\ud83e[\udc0c-\udc0f\udc48-\udc4f\udc5a-\udc5f\udc88-\udc8f\udcae-\udd0f\udd1f\udd28-\udd2f\udd31\udd32\udd3f\udd4c-\udd4f\udd5f-\udd7f\udd92-\uddbf\uddc1-\udfff]|\ud869[\uded7-\udeff]|\ud86d[\udf35-\udf3f]|\ud86e[\udc1e\udc1f]|\ud873[\udea2-\udfff]|\ud87e[\ude1e-\udfff]|\udb40[\udc00-\udcff\uddf0-\udfff]"},
{name:"Cc",alias:"Control",bmp:"\x00-\u001f\u007f-\u009f"},{name:"Cf",alias:"Format",bmp:"\u00ad\u0600-\u0605\u061c\u06dd\u070f\u08e2\u180e\u200b-\u200f\u202a-\u202e\u2060-\u2064\u2066-\u206f\ufeff\ufff9-\ufffb",astral:"\ud804\udcbd|\ud82f[\udca0-\udca3]|\ud834[\udd73-\udd7a]|\udb40[\udc01\udc20-\udc7f]"},{name:"Cn",alias:"Unassigned",bmp:"\u0378\u0379\u0380-\u0383\u038b\u038d\u03a2\u0530\u0557\u0558\u0560\u0588\u058b\u058c\u0590\u05c8-\u05cf\u05eb-\u05ef\u05f5-\u05ff\u061d\u070e\u074b\u074c\u07b2-\u07bf\u07fb-\u07ff\u082e\u082f\u083f\u085c\u085d\u085f-\u089f\u08b5\u08be-\u08d3\u0984\u098d\u098e\u0991\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba\u09bb\u09c5\u09c6\u09c9\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4\u09e5\u09fc-\u0a00\u0a04\u0a0b-\u0a0e\u0a11\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a\u0a3b\u0a3d\u0a43-\u0a46\u0a49\u0a4a\u0a4e-\u0a50\u0a52-\u0a58\u0a5d\u0a5f-\u0a65\u0a76-\u0a80\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba\u0abb\u0ac6\u0aca\u0ace\u0acf\u0ad1-\u0adf\u0ae4\u0ae5\u0af2-\u0af8\u0afa-\u0b00\u0b04\u0b0d\u0b0e\u0b11\u0b12\u0b29\u0b31\u0b34\u0b3a\u0b3b\u0b45\u0b46\u0b49\u0b4a\u0b4e-\u0b55\u0b58-\u0b5b\u0b5e\u0b64\u0b65\u0b78-\u0b81\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce\u0bcf\u0bd1-\u0bd6\u0bd8-\u0be5\u0bfb-\u0bff\u0c04\u0c0d\u0c11\u0c29\u0c3a-\u0c3c\u0c45\u0c49\u0c4e-\u0c54\u0c57\u0c5b-\u0c5f\u0c64\u0c65\u0c70-\u0c77\u0c84\u0c8d\u0c91\u0ca9\u0cb4\u0cba\u0cbb\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0cdd\u0cdf\u0ce4\u0ce5\u0cf0\u0cf3-\u0d00\u0d04\u0d0d\u0d11\u0d3b\u0d3c\u0d45\u0d49\u0d50-\u0d53\u0d64\u0d65\u0d80\u0d81\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe\u0dbf\u0dc7-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0de5\u0df0\u0df1\u0df5-\u0e00\u0e3b-\u0e3e\u0e5c-\u0e80\u0e83\u0e85\u0e86\u0e89\u0e8b\u0e8c\u0e8e-\u0e93\u0e98\u0ea0\u0ea4\u0ea6\u0ea8\u0ea9\u0eac\u0eba\u0ebe\u0ebf\u0ec5\u0ec7\u0ece\u0ecf\u0eda\u0edb\u0ee0-\u0eff\u0f48\u0f6d-\u0f70\u0f98\u0fbd\u0fcd\u0fdb-\u0fff\u10c6\u10c8-\u10cc\u10ce\u10cf\u1249\u124e\u124f\u1257\u1259\u125e\u125f\u1289\u128e\u128f\u12b1\u12b6\u12b7\u12bf\u12c1\u12c6\u12c7\u12d7\u1311\u1316\u1317\u135b\u135c\u137d-\u137f\u139a-\u139f\u13f6\u13f7\u13fe\u13ff\u169d-\u169f\u16f9-\u16ff\u170d\u1715-\u171f\u1737-\u173f\u1754-\u175f\u176d\u1771\u1774-\u177f\u17de\u17df\u17ea-\u17ef\u17fa-\u17ff\u180f\u181a-\u181f\u1878-\u187f\u18ab-\u18af\u18f6-\u18ff\u191f\u192c-\u192f\u193c-\u193f\u1941-\u1943\u196e\u196f\u1975-\u197f\u19ac-\u19af\u19ca-\u19cf\u19db-\u19dd\u1a1c\u1a1d\u1a5f\u1a7d\u1a7e\u1a8a-\u1a8f\u1a9a-\u1a9f\u1aae\u1aaf\u1abf-\u1aff\u1b4c-\u1b4f\u1b7d-\u1b7f\u1bf4-\u1bfb\u1c38-\u1c3a\u1c4a-\u1c4c\u1c89-\u1cbf\u1cc8-\u1ccf\u1cf7\u1cfa-\u1cff\u1df6-\u1dfa\u1f16\u1f17\u1f1e\u1f1f\u1f46\u1f47\u1f4e\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e\u1f7f\u1fb5\u1fc5\u1fd4\u1fd5\u1fdc\u1ff0\u1ff1\u1ff5\u1fff\u2065\u2072\u2073\u208f\u209d-\u209f\u20bf-\u20cf\u20f1-\u20ff\u218c-\u218f\u23ff\u2427-\u243f\u244b-\u245f\u2b74\u2b75\u2b96\u2b97\u2bba-\u2bbc\u2bc9\u2bd2-\u2beb\u2bf0-\u2bff\u2c2f\u2c5f\u2cf4-\u2cf8\u2d26\u2d28-\u2d2c\u2d2e\u2d2f\u2d68-\u2d6e\u2d71-\u2d7e\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e45-\u2e7f\u2e9a\u2ef4-\u2eff\u2fd6-\u2fef\u2ffc-\u2fff\u3040\u3097\u3098\u3100-\u3104\u312e-\u3130\u318f\u31bb-\u31bf\u31e4-\u31ef\u321f\u32ff\u4db6-\u4dbf\u9fd6-\u9fff\ua48d-\ua48f\ua4c7-\ua4cf\ua62c-\ua63f\ua6f8-\ua6ff\ua7af\ua7b8-\ua7f6\ua82c-\ua82f\ua83a-\ua83f\ua878-\ua87f\ua8c6-\ua8cd\ua8da-\ua8df\ua8fe\ua8ff\ua954-\ua95e\ua97d-\ua97f\ua9ce\ua9da-\ua9dd\ua9ff\uaa37-\uaa3f\uaa4e\uaa4f\uaa5a\uaa5b\uaac3-\uaada\uaaf7-\uab00\uab07\uab08\uab0f\uab10\uab17-\uab1f\uab27\uab2f\uab66-\uab6f\uabee\uabef\uabfa-\uabff\ud7a4-\ud7af\ud7c7-\ud7ca\ud7fc-\ud7ff\ufa6e\ufa6f\ufada-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbc2-\ufbd2\ufd40-\ufd4f\ufd90\ufd91\ufdc8-\ufdef\ufdfe\ufdff\ufe1a-\ufe1f\ufe53\ufe67\ufe6c-\ufe6f\ufe75\ufefd\ufefe\uff00\uffbf-\uffc1\uffc8\uffc9\uffd0\uffd1\uffd8\uffd9\uffdd-\uffdf\uffe7\uffef-\ufff8\ufffe\uffff",
astral:"\ud800[\udc0c\udc27\udc3b\udc3e\udc4e\udc4f\udc5e-\udc7f\udcfb-\udcff\udd03-\udd06\udd34-\udd36\udd8f\udd9c-\udd9f\udda1-\uddcf\uddfe-\ude7f\ude9d-\ude9f\uded1-\udedf\udefc-\udeff\udf24-\udf2f\udf4b-\udf4f\udf7b-\udf7f\udf9e\udfc4-\udfc7\udfd6-\udfff]|\ud801[\udc9e\udc9f\udcaa-\udcaf\udcd4-\udcd7\udcfc-\udcff\udd28-\udd2f\udd64-\udd6e\udd70-\uddff\udf37-\udf3f\udf56-\udf5f\udf68-\udfff]|\ud802[\udc06\udc07\udc09\udc36\udc39-\udc3b\udc3d\udc3e\udc56\udc9f-\udca6\udcb0-\udcdf\udcf3\udcf6-\udcfa\udd1c-\udd1e\udd3a-\udd3e\udd40-\udd7f\uddb8-\uddbb\uddd0\uddd1\ude04\ude07-\ude0b\ude14\ude18\ude34-\ude37\ude3b-\ude3e\ude48-\ude4f\ude59-\ude5f\udea0-\udebf\udee7-\udeea\udef7-\udeff\udf36-\udf38\udf56\udf57\udf73-\udf77\udf92-\udf98\udf9d-\udfa8\udfb0-\udfff]|\ud803[\udc49-\udc7f\udcb3-\udcbf\udcf3-\udcf9\udd00-\ude5f\ude7f-\udfff]|\ud804[\udc4e-\udc51\udc70-\udc7e\udcc2-\udccf\udce9-\udcef\udcfa-\udcff\udd35\udd44-\udd4f\udd77-\udd7f\uddce\uddcf\udde0\uddf5-\uddff\ude12\ude3f-\ude7f\ude87\ude89\ude8e\ude9e\udeaa-\udeaf\udeeb-\udeef\udefa-\udeff\udf04\udf0d\udf0e\udf11\udf12\udf29\udf31\udf34\udf3a\udf3b\udf45\udf46\udf49\udf4a\udf4e\udf4f\udf51-\udf56\udf58-\udf5c\udf64\udf65\udf6d-\udf6f\udf75-\udfff]|\ud805[\udc5a\udc5c\udc5e-\udc7f\udcc8-\udccf\udcda-\udd7f\uddb6\uddb7\uddde-\uddff\ude45-\ude4f\ude5a-\ude5f\ude6d-\ude7f\udeb8-\udebf\udeca-\udeff\udf1a-\udf1c\udf2c-\udf2f\udf40-\udfff]|\ud806[\udc00-\udc9f\udcf3-\udcfe\udd00-\udebf\udef9-\udfff]|\ud807[\udc09\udc37\udc46-\udc4f\udc6d-\udc6f\udc90\udc91\udca8\udcb7-\udfff]|\ud808[\udf9a-\udfff]|\ud809[\udc6f\udc75-\udc7f\udd44-\udfff]|[\ud80a\ud80b\ud80e-\ud810\ud812-\ud819\ud823-\ud82b\ud82d\ud82e\ud830-\ud833\ud837\ud839\ud83f\ud874-\ud87d\ud87f-\udb3f\udb41-\udb7f][\udc00-\udfff]|\ud80d[\udc2f-\udfff]|\ud811[\ude47-\udfff]|\ud81a[\ude39-\ude3f\ude5f\ude6a-\ude6d\ude70-\udecf\udeee\udeef\udef6-\udeff\udf46-\udf4f\udf5a\udf62\udf78-\udf7c\udf90-\udfff]|\ud81b[\udc00-\udeff\udf45-\udf4f\udf7f-\udf8e\udfa0-\udfdf\udfe1-\udfff]|\ud821[\udfed-\udfff]|\ud822[\udef3-\udfff]|\ud82c[\udc02-\udfff]|\ud82f[\udc6b-\udc6f\udc7d-\udc7f\udc89-\udc8f\udc9a\udc9b\udca4-\udfff]|\ud834[\udcf6-\udcff\udd27\udd28\udde9-\uddff\ude46-\udeff\udf57-\udf5f\udf72-\udfff]|\ud835[\udc55\udc9d\udca0\udca1\udca3\udca4\udca7\udca8\udcad\udcba\udcbc\udcc4\udd06\udd0b\udd0c\udd15\udd1d\udd3a\udd3f\udd45\udd47-\udd49\udd51\udea6\udea7\udfcc\udfcd]|\ud836[\ude8c-\ude9a\udea0\udeb0-\udfff]|\ud838[\udc07\udc19\udc1a\udc22\udc25\udc2b-\udfff]|\ud83a[\udcc5\udcc6\udcd7-\udcff\udd4b-\udd4f\udd5a-\udd5d\udd60-\udfff]|\ud83b[\udc00-\uddff\ude04\ude20\ude23\ude25\ude26\ude28\ude33\ude38\ude3a\ude3c-\ude41\ude43-\ude46\ude48\ude4a\ude4c\ude50\ude53\ude55\ude56\ude58\ude5a\ude5c\ude5e\ude60\ude63\ude65\ude66\ude6b\ude73\ude78\ude7d\ude7f\ude8a\ude9c-\udea0\udea4\udeaa\udebc-\udeef\udef2-\udfff]|\ud83c[\udc2c-\udc2f\udc94-\udc9f\udcaf\udcb0\udcc0\udcd0\udcf6-\udcff\udd0d-\udd0f\udd2f\udd6c-\udd6f\uddad-\udde5\ude03-\ude0f\ude3c-\ude3f\ude49-\ude4f\ude52-\udeff]|\ud83d[\uded3-\udedf\udeed-\udeef\udef7-\udeff\udf74-\udf7f\udfd5-\udfff]|\ud83e[\udc0c-\udc0f\udc48-\udc4f\udc5a-\udc5f\udc88-\udc8f\udcae-\udd0f\udd1f\udd28-\udd2f\udd31\udd32\udd3f\udd4c-\udd4f\udd5f-\udd7f\udd92-\uddbf\uddc1-\udfff]|\ud869[\uded7-\udeff]|\ud86d[\udf35-\udf3f]|\ud86e[\udc1e\udc1f]|\ud873[\udea2-\udfff]|\ud87e[\ude1e-\udfff]|\udb40[\udc00\udc02-\udc1f\udc80-\udcff\uddf0-\udfff]|[\udbbf\udbff][\udffe\udfff]"},
{name:"Co",alias:"Private_Use",bmp:"\ue000-\uf8ff",astral:"[\udb80-\udbbe\udbc0-\udbfe][\udc00-\udfff]|[\udbbf\udbff][\udc00-\udffd]"},{name:"Cs",alias:"Surrogate",bmp:"\ud800-\udfff"},{name:"L",alias:"Letter",bmp:"A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u1884\u1887-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf40\udf42-\udf49\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc80-\udcaf\udcc4\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udf00-\udf19]|\ud806[\udca0-\udcdf\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f]|\ud808[\udc00-\udf99]|\ud809[\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50\udf93-\udf9f\udfe0]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud83a[\udc00-\udcc4\udd00-\udd43]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Ll",alias:"Lowercase_Letter",bmp:"a-z\u00b5\u00df-\u00f6\u00f8-\u00ff\u0101\u0103\u0105\u0107\u0109\u010b\u010d\u010f\u0111\u0113\u0115\u0117\u0119\u011b\u011d\u011f\u0121\u0123\u0125\u0127\u0129\u012b\u012d\u012f\u0131\u0133\u0135\u0137\u0138\u013a\u013c\u013e\u0140\u0142\u0144\u0146\u0148\u0149\u014b\u014d\u014f\u0151\u0153\u0155\u0157\u0159\u015b\u015d\u015f\u0161\u0163\u0165\u0167\u0169\u016b\u016d\u016f\u0171\u0173\u0175\u0177\u017a\u017c\u017e-\u0180\u0183\u0185\u0188\u018c\u018d\u0192\u0195\u0199-\u019b\u019e\u01a1\u01a3\u01a5\u01a8\u01aa\u01ab\u01ad\u01b0\u01b4\u01b6\u01b9\u01ba\u01bd-\u01bf\u01c6\u01c9\u01cc\u01ce\u01d0\u01d2\u01d4\u01d6\u01d8\u01da\u01dc\u01dd\u01df\u01e1\u01e3\u01e5\u01e7\u01e9\u01eb\u01ed\u01ef\u01f0\u01f3\u01f5\u01f9\u01fb\u01fd\u01ff\u0201\u0203\u0205\u0207\u0209\u020b\u020d\u020f\u0211\u0213\u0215\u0217\u0219\u021b\u021d\u021f\u0221\u0223\u0225\u0227\u0229\u022b\u022d\u022f\u0231\u0233-\u0239\u023c\u023f\u0240\u0242\u0247\u0249\u024b\u024d\u024f-\u0293\u0295-\u02af\u0371\u0373\u0377\u037b-\u037d\u0390\u03ac-\u03ce\u03d0\u03d1\u03d5-\u03d7\u03d9\u03db\u03dd\u03df\u03e1\u03e3\u03e5\u03e7\u03e9\u03eb\u03ed\u03ef-\u03f3\u03f5\u03f8\u03fb\u03fc\u0430-\u045f\u0461\u0463\u0465\u0467\u0469\u046b\u046d\u046f\u0471\u0473\u0475\u0477\u0479\u047b\u047d\u047f\u0481\u048b\u048d\u048f\u0491\u0493\u0495\u0497\u0499\u049b\u049d\u049f\u04a1\u04a3\u04a5\u04a7\u04a9\u04ab\u04ad\u04af\u04b1\u04b3\u04b5\u04b7\u04b9\u04bb\u04bd\u04bf\u04c2\u04c4\u04c6\u04c8\u04ca\u04cc\u04ce\u04cf\u04d1\u04d3\u04d5\u04d7\u04d9\u04db\u04dd\u04df\u04e1\u04e3\u04e5\u04e7\u04e9\u04eb\u04ed\u04ef\u04f1\u04f3\u04f5\u04f7\u04f9\u04fb\u04fd\u04ff\u0501\u0503\u0505\u0507\u0509\u050b\u050d\u050f\u0511\u0513\u0515\u0517\u0519\u051b\u051d\u051f\u0521\u0523\u0525\u0527\u0529\u052b\u052d\u052f\u0561-\u0587\u13f8-\u13fd\u1c80-\u1c88\u1d00-\u1d2b\u1d6b-\u1d77\u1d79-\u1d9a\u1e01\u1e03\u1e05\u1e07\u1e09\u1e0b\u1e0d\u1e0f\u1e11\u1e13\u1e15\u1e17\u1e19\u1e1b\u1e1d\u1e1f\u1e21\u1e23\u1e25\u1e27\u1e29\u1e2b\u1e2d\u1e2f\u1e31\u1e33\u1e35\u1e37\u1e39\u1e3b\u1e3d\u1e3f\u1e41\u1e43\u1e45\u1e47\u1e49\u1e4b\u1e4d\u1e4f\u1e51\u1e53\u1e55\u1e57\u1e59\u1e5b\u1e5d\u1e5f\u1e61\u1e63\u1e65\u1e67\u1e69\u1e6b\u1e6d\u1e6f\u1e71\u1e73\u1e75\u1e77\u1e79\u1e7b\u1e7d\u1e7f\u1e81\u1e83\u1e85\u1e87\u1e89\u1e8b\u1e8d\u1e8f\u1e91\u1e93\u1e95-\u1e9d\u1e9f\u1ea1\u1ea3\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u1eb9\u1ebb\u1ebd\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ec9\u1ecb\u1ecd\u1ecf\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u1edb\u1edd\u1edf\u1ee1\u1ee3\u1ee5\u1ee7\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u1ef3\u1ef5\u1ef7\u1ef9\u1efb\u1efd\u1eff-\u1f07\u1f10-\u1f15\u1f20-\u1f27\u1f30-\u1f37\u1f40-\u1f45\u1f50-\u1f57\u1f60-\u1f67\u1f70-\u1f7d\u1f80-\u1f87\u1f90-\u1f97\u1fa0-\u1fa7\u1fb0-\u1fb4\u1fb6\u1fb7\u1fbe\u1fc2-\u1fc4\u1fc6\u1fc7\u1fd0-\u1fd3\u1fd6\u1fd7\u1fe0-\u1fe7\u1ff2-\u1ff4\u1ff6\u1ff7\u210a\u210e\u210f\u2113\u212f\u2134\u2139\u213c\u213d\u2146-\u2149\u214e\u2184\u2c30-\u2c5e\u2c61\u2c65\u2c66\u2c68\u2c6a\u2c6c\u2c71\u2c73\u2c74\u2c76-\u2c7b\u2c81\u2c83\u2c85\u2c87\u2c89\u2c8b\u2c8d\u2c8f\u2c91\u2c93\u2c95\u2c97\u2c99\u2c9b\u2c9d\u2c9f\u2ca1\u2ca3\u2ca5\u2ca7\u2ca9\u2cab\u2cad\u2caf\u2cb1\u2cb3\u2cb5\u2cb7\u2cb9\u2cbb\u2cbd\u2cbf\u2cc1\u2cc3\u2cc5\u2cc7\u2cc9\u2ccb\u2ccd\u2ccf\u2cd1\u2cd3\u2cd5\u2cd7\u2cd9\u2cdb\u2cdd\u2cdf\u2ce1\u2ce3\u2ce4\u2cec\u2cee\u2cf3\u2d00-\u2d25\u2d27\u2d2d\ua641\ua643\ua645\ua647\ua649\ua64b\ua64d\ua64f\ua651\ua653\ua655\ua657\ua659\ua65b\ua65d\ua65f\ua661\ua663\ua665\ua667\ua669\ua66b\ua66d\ua681\ua683\ua685\ua687\ua689\ua68b\ua68d\ua68f\ua691\ua693\ua695\ua697\ua699\ua69b\ua723\ua725\ua727\ua729\ua72b\ua72d\ua72f-\ua731\ua733\ua735\ua737\ua739\ua73b\ua73d\ua73f\ua741\ua743\ua745\ua747\ua749\ua74b\ua74d\ua74f\ua751\ua753\ua755\ua757\ua759\ua75b\ua75d\ua75f\ua761\ua763\ua765\ua767\ua769\ua76b\ua76d\ua76f\ua771-\ua778\ua77a\ua77c\ua77f\ua781\ua783\ua785\ua787\ua78c\ua78e\ua791\ua793-\ua795\ua797\ua799\ua79b\ua79d\ua79f\ua7a1\ua7a3\ua7a5\ua7a7\ua7a9\ua7b5\ua7b7\ua7fa\uab30-\uab5a\uab60-\uab65\uab70-\uabbf\ufb00-\ufb06\ufb13-\ufb17\uff41-\uff5a",
astral:"\ud801[\udc28-\udc4f\udcd8-\udcfb]|\ud803[\udcc0-\udcf2]|\ud806[\udcc0-\udcdf]|\ud835[\udc1a-\udc33\udc4e-\udc54\udc56-\udc67\udc82-\udc9b\udcb6-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udccf\udcea-\udd03\udd1e-\udd37\udd52-\udd6b\udd86-\udd9f\uddba-\uddd3\uddee-\ude07\ude22-\ude3b\ude56-\ude6f\ude8a-\udea5\udec2-\udeda\udedc-\udee1\udefc-\udf14\udf16-\udf1b\udf36-\udf4e\udf50-\udf55\udf70-\udf88\udf8a-\udf8f\udfaa-\udfc2\udfc4-\udfc9\udfcb]|\ud83a[\udd22-\udd43]"},{name:"Lm",alias:"Modifier_Letter",
bmp:"\u02b0-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0374\u037a\u0559\u0640\u06e5\u06e6\u07f4\u07f5\u07fa\u081a\u0824\u0828\u0971\u0e46\u0ec6\u10fc\u17d7\u1843\u1aa7\u1c78-\u1c7d\u1d2c-\u1d6a\u1d78\u1d9b-\u1dbf\u2071\u207f\u2090-\u209c\u2c7c\u2c7d\u2d6f\u2e2f\u3005\u3031-\u3035\u303b\u309d\u309e\u30fc-\u30fe\ua015\ua4f8-\ua4fd\ua60c\ua67f\ua69c\ua69d\ua717-\ua71f\ua770\ua788\ua7f8\ua7f9\ua9cf\ua9e6\uaa70\uaadd\uaaf3\uaaf4\uab5c-\uab5f\uff70\uff9e\uff9f",astral:"\ud81a[\udf40-\udf43]|\ud81b[\udf93-\udf9f\udfe0]"},
{name:"Lo",alias:"Other_Letter",bmp:"\u00aa\u00ba\u01bb\u01c0-\u01c3\u0294\u05d0-\u05ea\u05f0-\u05f2\u0620-\u063f\u0641-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u0800-\u0815\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e45\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10d0-\u10fa\u10fd-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17dc\u1820-\u1842\u1844-\u1877\u1880-\u1884\u1887-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c77\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u2135-\u2138\u2d30-\u2d67\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3006\u303c\u3041-\u3096\u309f\u30a1-\u30fa\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua014\ua016-\ua48c\ua4d0-\ua4f7\ua500-\ua60b\ua610-\ua61f\ua62a\ua62b\ua66e\ua6a0-\ua6e5\ua78f\ua7f7\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9e0-\ua9e4\ua9e7-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa6f\uaa71-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb\uaadc\uaae0-\uaaea\uaaf2\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff66-\uff6f\uff71-\uff9d\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf40\udf42-\udf49\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc50-\udc9d\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc80-\udcaf\udcc4\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udf00-\udf19]|\ud806[\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f]|\ud808[\udc00-\udf99]|\ud809[\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud83a[\udc00-\udcc4]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Lt",alias:"Titlecase_Letter",bmp:"\u01c5\u01c8\u01cb\u01f2\u1f88-\u1f8f\u1f98-\u1f9f\u1fa8-\u1faf\u1fbc\u1fcc\u1ffc"},{name:"Lu",alias:"Uppercase_Letter",bmp:"A-Z\u00c0-\u00d6\u00d8-\u00de\u0100\u0102\u0104\u0106\u0108\u010a\u010c\u010e\u0110\u0112\u0114\u0116\u0118\u011a\u011c\u011e\u0120\u0122\u0124\u0126\u0128\u012a\u012c\u012e\u0130\u0132\u0134\u0136\u0139\u013b\u013d\u013f\u0141\u0143\u0145\u0147\u014a\u014c\u014e\u0150\u0152\u0154\u0156\u0158\u015a\u015c\u015e\u0160\u0162\u0164\u0166\u0168\u016a\u016c\u016e\u0170\u0172\u0174\u0176\u0178\u0179\u017b\u017d\u0181\u0182\u0184\u0186\u0187\u0189-\u018b\u018e-\u0191\u0193\u0194\u0196-\u0198\u019c\u019d\u019f\u01a0\u01a2\u01a4\u01a6\u01a7\u01a9\u01ac\u01ae\u01af\u01b1-\u01b3\u01b5\u01b7\u01b8\u01bc\u01c4\u01c7\u01ca\u01cd\u01cf\u01d1\u01d3\u01d5\u01d7\u01d9\u01db\u01de\u01e0\u01e2\u01e4\u01e6\u01e8\u01ea\u01ec\u01ee\u01f1\u01f4\u01f6-\u01f8\u01fa\u01fc\u01fe\u0200\u0202\u0204\u0206\u0208\u020a\u020c\u020e\u0210\u0212\u0214\u0216\u0218\u021a\u021c\u021e\u0220\u0222\u0224\u0226\u0228\u022a\u022c\u022e\u0230\u0232\u023a\u023b\u023d\u023e\u0241\u0243-\u0246\u0248\u024a\u024c\u024e\u0370\u0372\u0376\u037f\u0386\u0388-\u038a\u038c\u038e\u038f\u0391-\u03a1\u03a3-\u03ab\u03cf\u03d2-\u03d4\u03d8\u03da\u03dc\u03de\u03e0\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03f9\u03fa\u03fd-\u042f\u0460\u0462\u0464\u0466\u0468\u046a\u046c\u046e\u0470\u0472\u0474\u0476\u0478\u047a\u047c\u047e\u0480\u048a\u048c\u048e\u0490\u0492\u0494\u0496\u0498\u049a\u049c\u049e\u04a0\u04a2\u04a4\u04a6\u04a8\u04aa\u04ac\u04ae\u04b0\u04b2\u04b4\u04b6\u04b8\u04ba\u04bc\u04be\u04c0\u04c1\u04c3\u04c5\u04c7\u04c9\u04cb\u04cd\u04d0\u04d2\u04d4\u04d6\u04d8\u04da\u04dc\u04de\u04e0\u04e2\u04e4\u04e6\u04e8\u04ea\u04ec\u04ee\u04f0\u04f2\u04f4\u04f6\u04f8\u04fa\u04fc\u04fe\u0500\u0502\u0504\u0506\u0508\u050a\u050c\u050e\u0510\u0512\u0514\u0516\u0518\u051a\u051c\u051e\u0520\u0522\u0524\u0526\u0528\u052a\u052c\u052e\u0531-\u0556\u10a0-\u10c5\u10c7\u10cd\u13a0-\u13f5\u1e00\u1e02\u1e04\u1e06\u1e08\u1e0a\u1e0c\u1e0e\u1e10\u1e12\u1e14\u1e16\u1e18\u1e1a\u1e1c\u1e1e\u1e20\u1e22\u1e24\u1e26\u1e28\u1e2a\u1e2c\u1e2e\u1e30\u1e32\u1e34\u1e36\u1e38\u1e3a\u1e3c\u1e3e\u1e40\u1e42\u1e44\u1e46\u1e48\u1e4a\u1e4c\u1e4e\u1e50\u1e52\u1e54\u1e56\u1e58\u1e5a\u1e5c\u1e5e\u1e60\u1e62\u1e64\u1e66\u1e68\u1e6a\u1e6c\u1e6e\u1e70\u1e72\u1e74\u1e76\u1e78\u1e7a\u1e7c\u1e7e\u1e80\u1e82\u1e84\u1e86\u1e88\u1e8a\u1e8c\u1e8e\u1e90\u1e92\u1e94\u1e9e\u1ea0\u1ea2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u1eb8\u1eba\u1ebc\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ec8\u1eca\u1ecc\u1ece\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1eda\u1edc\u1ede\u1ee0\u1ee2\u1ee4\u1ee6\u1ee8\u1eea\u1eec\u1eee\u1ef0\u1ef2\u1ef4\u1ef6\u1ef8\u1efa\u1efc\u1efe\u1f08-\u1f0f\u1f18-\u1f1d\u1f28-\u1f2f\u1f38-\u1f3f\u1f48-\u1f4d\u1f59\u1f5b\u1f5d\u1f5f\u1f68-\u1f6f\u1fb8-\u1fbb\u1fc8-\u1fcb\u1fd8-\u1fdb\u1fe8-\u1fec\u1ff8-\u1ffb\u2102\u2107\u210b-\u210d\u2110-\u2112\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u2130-\u2133\u213e\u213f\u2145\u2183\u2c00-\u2c2e\u2c60\u2c62-\u2c64\u2c67\u2c69\u2c6b\u2c6d-\u2c70\u2c72\u2c75\u2c7e-\u2c80\u2c82\u2c84\u2c86\u2c88\u2c8a\u2c8c\u2c8e\u2c90\u2c92\u2c94\u2c96\u2c98\u2c9a\u2c9c\u2c9e\u2ca0\u2ca2\u2ca4\u2ca6\u2ca8\u2caa\u2cac\u2cae\u2cb0\u2cb2\u2cb4\u2cb6\u2cb8\u2cba\u2cbc\u2cbe\u2cc0\u2cc2\u2cc4\u2cc6\u2cc8\u2cca\u2ccc\u2cce\u2cd0\u2cd2\u2cd4\u2cd6\u2cd8\u2cda\u2cdc\u2cde\u2ce0\u2ce2\u2ceb\u2ced\u2cf2\ua640\ua642\ua644\ua646\ua648\ua64a\ua64c\ua64e\ua650\ua652\ua654\ua656\ua658\ua65a\ua65c\ua65e\ua660\ua662\ua664\ua666\ua668\ua66a\ua66c\ua680\ua682\ua684\ua686\ua688\ua68a\ua68c\ua68e\ua690\ua692\ua694\ua696\ua698\ua69a\ua722\ua724\ua726\ua728\ua72a\ua72c\ua72e\ua732\ua734\ua736\ua738\ua73a\ua73c\ua73e\ua740\ua742\ua744\ua746\ua748\ua74a\ua74c\ua74e\ua750\ua752\ua754\ua756\ua758\ua75a\ua75c\ua75e\ua760\ua762\ua764\ua766\ua768\ua76a\ua76c\ua76e\ua779\ua77b\ua77d\ua77e\ua780\ua782\ua784\ua786\ua78b\ua78d\ua790\ua792\ua796\ua798\ua79a\ua79c\ua79e\ua7a0\ua7a2\ua7a4\ua7a6\ua7a8\ua7aa-\ua7ae\ua7b0-\ua7b4\ua7b6\uff21-\uff3a",
astral:"\ud801[\udc00-\udc27\udcb0-\udcd3]|\ud803[\udc80-\udcb2]|\ud806[\udca0-\udcbf]|\ud835[\udc00-\udc19\udc34-\udc4d\udc68-\udc81\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb5\udcd0-\udce9\udd04\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd38\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd6c-\udd85\udda0-\uddb9\uddd4-\udded\ude08-\ude21\ude3c-\ude55\ude70-\ude89\udea8-\udec0\udee2-\udefa\udf1c-\udf34\udf56-\udf6e\udf90-\udfa8\udfca]|\ud83a[\udd00-\udd21]"},{name:"M",
alias:"Mark",bmp:"\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d4-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u1885\u1886\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c5\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f",
astral:"\ud800[\uddfd\udee0\udf76-\udf7a]|\ud802[\ude01-\ude03\ude05\ude06\ude0c-\ude0f\ude38-\ude3a\ude3f\udee5\udee6]|\ud804[\udc00-\udc02\udc38-\udc46\udc7f-\udc82\udcb0-\udcba\udd00-\udd02\udd27-\udd34\udd73\udd80-\udd82\uddb3-\uddc0\uddca-\uddcc\ude2c-\ude37\ude3e\udedf-\udeea\udf00-\udf03\udf3c\udf3e-\udf44\udf47\udf48\udf4b-\udf4d\udf57\udf62\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc35-\udc46\udcb0-\udcc3\uddaf-\uddb5\uddb8-\uddc0\udddc\udddd\ude30-\ude40\udeab-\udeb7\udf1d-\udf2b]|\ud807[\udc2f-\udc36\udc38-\udc3f\udc92-\udca7\udca9-\udcb6]|\ud81a[\udef0-\udef4\udf30-\udf36]|\ud81b[\udf51-\udf7e\udf8f-\udf92]|\ud82f[\udc9d\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udcd0-\udcd6\udd44-\udd4a]|\udb40[\udd00-\uddef]"},
{name:"Mc",alias:"Spacing_Mark",bmp:"\u0903\u093b\u093e-\u0940\u0949-\u094c\u094e\u094f\u0982\u0983\u09be-\u09c0\u09c7\u09c8\u09cb\u09cc\u09d7\u0a03\u0a3e-\u0a40\u0a83\u0abe-\u0ac0\u0ac9\u0acb\u0acc\u0b02\u0b03\u0b3e\u0b40\u0b47\u0b48\u0b4b\u0b4c\u0b57\u0bbe\u0bbf\u0bc1\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd7\u0c01-\u0c03\u0c41-\u0c44\u0c82\u0c83\u0cbe\u0cc0-\u0cc4\u0cc7\u0cc8\u0cca\u0ccb\u0cd5\u0cd6\u0d02\u0d03\u0d3e-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d57\u0d82\u0d83\u0dcf-\u0dd1\u0dd8-\u0ddf\u0df2\u0df3\u0f3e\u0f3f\u0f7f\u102b\u102c\u1031\u1038\u103b\u103c\u1056\u1057\u1062-\u1064\u1067-\u106d\u1083\u1084\u1087-\u108c\u108f\u109a-\u109c\u17b6\u17be-\u17c5\u17c7\u17c8\u1923-\u1926\u1929-\u192b\u1930\u1931\u1933-\u1938\u1a19\u1a1a\u1a55\u1a57\u1a61\u1a63\u1a64\u1a6d-\u1a72\u1b04\u1b35\u1b3b\u1b3d-\u1b41\u1b43\u1b44\u1b82\u1ba1\u1ba6\u1ba7\u1baa\u1be7\u1bea-\u1bec\u1bee\u1bf2\u1bf3\u1c24-\u1c2b\u1c34\u1c35\u1ce1\u1cf2\u1cf3\u302e\u302f\ua823\ua824\ua827\ua880\ua881\ua8b4-\ua8c3\ua952\ua953\ua983\ua9b4\ua9b5\ua9ba\ua9bb\ua9bd-\ua9c0\uaa2f\uaa30\uaa33\uaa34\uaa4d\uaa7b\uaa7d\uaaeb\uaaee\uaaef\uaaf5\uabe3\uabe4\uabe6\uabe7\uabe9\uabea\uabec",
astral:"\ud804[\udc00\udc02\udc82\udcb0-\udcb2\udcb7\udcb8\udd2c\udd82\uddb3-\uddb5\uddbf\uddc0\ude2c-\ude2e\ude32\ude33\ude35\udee0-\udee2\udf02\udf03\udf3e\udf3f\udf41-\udf44\udf47\udf48\udf4b-\udf4d\udf57\udf62\udf63]|\ud805[\udc35-\udc37\udc40\udc41\udc45\udcb0-\udcb2\udcb9\udcbb-\udcbe\udcc1\uddaf-\uddb1\uddb8-\uddbb\uddbe\ude30-\ude32\ude3b\ude3c\ude3e\udeac\udeae\udeaf\udeb6\udf20\udf21\udf26]|\ud807[\udc2f\udc3e\udca9\udcb1\udcb4]|\ud81b[\udf51-\udf7e]|\ud834[\udd65\udd66\udd6d-\udd72]"},
{name:"Me",alias:"Enclosing_Mark",bmp:"\u0488\u0489\u1abe\u20dd-\u20e0\u20e2-\u20e4\ua670-\ua672"},{name:"Mn",alias:"Nonspacing_Mark",bmp:"\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d4-\u08e1\u08e3-\u0902\u093a\u093c\u0941-\u0948\u094d\u0951-\u0957\u0962\u0963\u0981\u09bc\u09c1-\u09c4\u09cd\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b62\u0b63\u0b82\u0bc0\u0bcd\u0c00\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81\u0cbc\u0cbf\u0cc6\u0ccc\u0ccd\u0ce2\u0ce3\u0d01\u0d41-\u0d44\u0d4d\u0d62\u0d63\u0dca\u0dd2-\u0dd4\u0dd6\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4\u17b5\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u1885\u1886\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a1b\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1ab0-\u1abd\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1bab-\u1bad\u1be6\u1be8\u1be9\u1bed\u1bef-\u1bf1\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302d\u3099\u309a\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8c5\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\ua9e5\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaa7c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaec\uaaed\uaaf6\uabe5\uabe8\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f",
astral:"\ud800[\uddfd\udee0\udf76-\udf7a]|\ud802[\ude01-\ude03\ude05\ude06\ude0c-\ude0f\ude38-\ude3a\ude3f\udee5\udee6]|\ud804[\udc01\udc38-\udc46\udc7f-\udc81\udcb3-\udcb6\udcb9\udcba\udd00-\udd02\udd27-\udd2b\udd2d-\udd34\udd73\udd80\udd81\uddb6-\uddbe\uddca-\uddcc\ude2f-\ude31\ude34\ude36\ude37\ude3e\udedf\udee3-\udeea\udf00\udf01\udf3c\udf40\udf66-\udf6c\udf70-\udf74]|\ud805[\udc38-\udc3f\udc42-\udc44\udc46\udcb3-\udcb8\udcba\udcbf\udcc0\udcc2\udcc3\uddb2-\uddb5\uddbc\uddbd\uddbf\uddc0\udddc\udddd\ude33-\ude3a\ude3d\ude3f\ude40\udeab\udead\udeb0-\udeb5\udeb7\udf1d-\udf1f\udf22-\udf25\udf27-\udf2b]|\ud807[\udc30-\udc36\udc38-\udc3d\udc3f\udc92-\udca7\udcaa-\udcb0\udcb2\udcb3\udcb5\udcb6]|\ud81a[\udef0-\udef4\udf30-\udf36]|\ud81b[\udf8f-\udf92]|\ud82f[\udc9d\udc9e]|\ud834[\udd67-\udd69\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udcd0-\udcd6\udd44-\udd4a]|\udb40[\udd00-\uddef]"},
{name:"N",alias:"Number",bmp:"0-9\u00b2\u00b3\u00b9\u00bc-\u00be\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u09f4-\u09f9\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0b72-\u0b77\u0be6-\u0bf2\u0c66-\u0c6f\u0c78-\u0c7e\u0ce6-\u0cef\u0d58-\u0d5e\u0d66-\u0d78\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f33\u1040-\u1049\u1090-\u1099\u1369-\u137c\u16ee-\u16f0\u17e0-\u17e9\u17f0-\u17f9\u1810-\u1819\u1946-\u194f\u19d0-\u19da\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249b\u24ea-\u24ff\u2776-\u2793\u2cfd\u3007\u3021-\u3029\u3038-\u303a\u3192-\u3195\u3220-\u3229\u3248-\u324f\u3251-\u325f\u3280-\u3289\u32b1-\u32bf\ua620-\ua629\ua6e6-\ua6ef\ua830-\ua835\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19",
astral:"\ud800[\udd07-\udd33\udd40-\udd78\udd8a\udd8b\udee1-\udefb\udf20-\udf23\udf41\udf4a\udfd1-\udfd5]|\ud801[\udca0-\udca9]|\ud802[\udc58-\udc5f\udc79-\udc7f\udca7-\udcaf\udcfb-\udcff\udd16-\udd1b\uddbc\uddbd\uddc0-\uddcf\uddd2-\uddff\ude40-\ude47\ude7d\ude7e\ude9d-\ude9f\udeeb-\udeef\udf58-\udf5f\udf78-\udf7f\udfa9-\udfaf]|\ud803[\udcfa-\udcff\ude60-\ude7e]|\ud804[\udc52-\udc6f\udcf0-\udcf9\udd36-\udd3f\uddd0-\uddd9\udde1-\uddf4\udef0-\udef9]|\ud805[\udc50-\udc59\udcd0-\udcd9\ude50-\ude59\udec0-\udec9\udf30-\udf3b]|\ud806[\udce0-\udcf2]|\ud807[\udc50-\udc6c]|\ud809[\udc00-\udc6e]|\ud81a[\ude60-\ude69\udf50-\udf59\udf5b-\udf61]|\ud834[\udf60-\udf71]|\ud835[\udfce-\udfff]|\ud83a[\udcc7-\udccf\udd50-\udd59]|\ud83c[\udd00-\udd0c]"},
{name:"Nd",alias:"Decimal_Number",bmp:"0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19",
astral:"\ud801[\udca0-\udca9]|\ud804[\udc66-\udc6f\udcf0-\udcf9\udd36-\udd3f\uddd0-\uddd9\udef0-\udef9]|\ud805[\udc50-\udc59\udcd0-\udcd9\ude50-\ude59\udec0-\udec9\udf30-\udf39]|\ud806[\udce0-\udce9]|\ud807[\udc50-\udc59]|\ud81a[\ude60-\ude69\udf50-\udf59]|\ud835[\udfce-\udfff]|\ud83a[\udd50-\udd59]"},{name:"Nl",alias:"Letter_Number",bmp:"\u16ee-\u16f0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303a\ua6e6-\ua6ef",astral:"\ud800[\udd40-\udd74\udf41\udf4a\udfd1-\udfd5]|\ud809[\udc00-\udc6e]"},
{name:"No",alias:"Other_Number",bmp:"\u00b2\u00b3\u00b9\u00bc-\u00be\u09f4-\u09f9\u0b72-\u0b77\u0bf0-\u0bf2\u0c78-\u0c7e\u0d58-\u0d5e\u0d70-\u0d78\u0f2a-\u0f33\u1369-\u137c\u17f0-\u17f9\u19da\u2070\u2074-\u2079\u2080-\u2089\u2150-\u215f\u2189\u2460-\u249b\u24ea-\u24ff\u2776-\u2793\u2cfd\u3192-\u3195\u3220-\u3229\u3248-\u324f\u3251-\u325f\u3280-\u3289\u32b1-\u32bf\ua830-\ua835",astral:"\ud800[\udd07-\udd33\udd75-\udd78\udd8a\udd8b\udee1-\udefb\udf20-\udf23]|\ud802[\udc58-\udc5f\udc79-\udc7f\udca7-\udcaf\udcfb-\udcff\udd16-\udd1b\uddbc\uddbd\uddc0-\uddcf\uddd2-\uddff\ude40-\ude47\ude7d\ude7e\ude9d-\ude9f\udeeb-\udeef\udf58-\udf5f\udf78-\udf7f\udfa9-\udfaf]|\ud803[\udcfa-\udcff\ude60-\ude7e]|\ud804[\udc52-\udc65\udde1-\uddf4]|\ud805[\udf3a\udf3b]|\ud806[\udcea-\udcf2]|\ud807[\udc5a-\udc6c]|\ud81a[\udf5b-\udf61]|\ud834[\udf60-\udf71]|\ud83a[\udcc7-\udccf]|\ud83c[\udd00-\udd0c]"},
{name:"P",alias:"Punctuation",bmp:"!-#%-\\x2A,-/:;\\x3F@\\x5B-\\x5D_\\x7B}\u00a1\u00a7\u00ab\u00b6\u00b7\u00bb\u00bf\u037e\u0387\u055a-\u055f\u0589\u058a\u05be\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u0af0\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f14\u0f3a-\u0f3d\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1360-\u1368\u1400\u166d\u166e\u169b\u169c\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cc0-\u1cc7\u1cd3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205e\u207d\u207e\u208d\u208e\u2308-\u230b\u2329\u232a\u2768-\u2775\u27c5\u27c6\u27e6-\u27ef\u2983-\u2998\u29d8-\u29db\u29fc\u29fd\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00-\u2e2e\u2e30-\u2e44\u3001-\u3003\u3008-\u3011\u3014-\u301f\u3030\u303d\u30a0\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua8fc\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uaaf0\uaaf1\uabeb\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe61\ufe63\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff0a\uff0c-\uff0f\uff1a\uff1b\uff1f\uff20\uff3b-\uff3d\uff3f\uff5b\uff5d\uff5f-\uff65",
astral:"\ud800[\udd00-\udd02\udf9f\udfd0]|\ud801\udd6f|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud804[\udc47-\udc4d\udcbb\udcbc\udcbe-\udcc1\udd40-\udd43\udd74\udd75\uddc5-\uddc9\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud807[\udc41-\udc45\udc70\udc71]|\ud809[\udc70-\udc74]|\ud81a[\ude6e\ude6f\udef5\udf37-\udf3b\udf44]|\ud82f\udc9f|\ud836[\ude87-\ude8b]|\ud83a[\udd5e\udd5f]"},
{name:"Pc",alias:"Connector_Punctuation",bmp:"_\u203f\u2040\u2054\ufe33\ufe34\ufe4d-\ufe4f\uff3f"},{name:"Pd",alias:"Dash_Punctuation",bmp:"\\x2D\u058a\u05be\u1400\u1806\u2010-\u2015\u2e17\u2e1a\u2e3a\u2e3b\u2e40\u301c\u3030\u30a0\ufe31\ufe32\ufe58\ufe63\uff0d"},{name:"Pe",alias:"Close_Punctuation",bmp:"\\x29\\x5D}\u0f3b\u0f3d\u169c\u2046\u207e\u208e\u2309\u230b\u232a\u2769\u276b\u276d\u276f\u2771\u2773\u2775\u27c6\u27e7\u27e9\u27eb\u27ed\u27ef\u2984\u2986\u2988\u298a\u298c\u298e\u2990\u2992\u2994\u2996\u2998\u29d9\u29db\u29fd\u2e23\u2e25\u2e27\u2e29\u3009\u300b\u300d\u300f\u3011\u3015\u3017\u3019\u301b\u301e\u301f\ufd3e\ufe18\ufe36\ufe38\ufe3a\ufe3c\ufe3e\ufe40\ufe42\ufe44\ufe48\ufe5a\ufe5c\ufe5e\uff09\uff3d\uff5d\uff60\uff63"},
{name:"Pf",alias:"Final_Punctuation",bmp:"\u00bb\u2019\u201d\u203a\u2e03\u2e05\u2e0a\u2e0d\u2e1d\u2e21"},{name:"Pi",alias:"Initial_Punctuation",bmp:"\u00ab\u2018\u201b\u201c\u201f\u2039\u2e02\u2e04\u2e09\u2e0c\u2e1c\u2e20"},{name:"Po",alias:"Other_Punctuation",bmp:"!-#%-'\\x2A,\\x2E/:;\\x3F@\\x5C\u00a1\u00a7\u00b6\u00b7\u00bf\u037e\u0387\u055a-\u055f\u0589\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u0af0\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f14\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1360-\u1368\u166d\u166e\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u1805\u1807-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cc0-\u1cc7\u1cd3\u2016\u2017\u2020-\u2027\u2030-\u2038\u203b-\u203e\u2041-\u2043\u2047-\u2051\u2053\u2055-\u205e\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00\u2e01\u2e06-\u2e08\u2e0b\u2e0e-\u2e16\u2e18\u2e19\u2e1b\u2e1e\u2e1f\u2e2a-\u2e2e\u2e30-\u2e39\u2e3c-\u2e3f\u2e41\u2e43\u2e44\u3001-\u3003\u303d\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua8fc\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uaaf0\uaaf1\uabeb\ufe10-\ufe16\ufe19\ufe30\ufe45\ufe46\ufe49-\ufe4c\ufe50-\ufe52\ufe54-\ufe57\ufe5f-\ufe61\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff07\uff0a\uff0c\uff0e\uff0f\uff1a\uff1b\uff1f\uff20\uff3c\uff61\uff64\uff65",
astral:"\ud800[\udd00-\udd02\udf9f\udfd0]|\ud801\udd6f|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud804[\udc47-\udc4d\udcbb\udcbc\udcbe-\udcc1\udd40-\udd43\udd74\udd75\uddc5-\uddc9\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud807[\udc41-\udc45\udc70\udc71]|\ud809[\udc70-\udc74]|\ud81a[\ude6e\ude6f\udef5\udf37-\udf3b\udf44]|\ud82f\udc9f|\ud836[\ude87-\ude8b]|\ud83a[\udd5e\udd5f]"},
{name:"Ps",alias:"Open_Punctuation",bmp:"\\x28\\x5B\\x7B\u0f3a\u0f3c\u169b\u201a\u201e\u2045\u207d\u208d\u2308\u230a\u2329\u2768\u276a\u276c\u276e\u2770\u2772\u2774\u27c5\u27e6\u27e8\u27ea\u27ec\u27ee\u2983\u2985\u2987\u2989\u298b\u298d\u298f\u2991\u2993\u2995\u2997\u29d8\u29da\u29fc\u2e22\u2e24\u2e26\u2e28\u2e42\u3008\u300a\u300c\u300e\u3010\u3014\u3016\u3018\u301a\u301d\ufd3f\ufe17\ufe35\ufe37\ufe39\ufe3b\ufe3d\ufe3f\ufe41\ufe43\ufe47\ufe59\ufe5b\ufe5d\uff08\uff3b\uff5b\uff5f\uff62"},{name:"S",
alias:"Symbol",bmp:"\\x24\\x2B<->\\x5E`\\x7C~\u00a2-\u00a6\u00a8\u00a9\u00ac\u00ae-\u00b1\u00b4\u00b8\u00d7\u00f7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20be\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u23fe\u2400-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2ce5-\u2cea\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u32fe\u3300-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd",
astral:"\ud800[\udd37-\udd3f\udd79-\udd89\udd8c-\udd8e\udd90-\udd9b\udda0\uddd0-\uddfc]|\ud802[\udc77\udc78\udec8]|\ud805\udf3f|\ud81a[\udf3c-\udf3f\udf45]|\ud82f\udc9c|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd64\udd6a-\udd6c\udd83\udd84\udd8c-\udda9\uddae-\udde8\ude00-\ude41\ude45\udf00-\udf56]|\ud835[\udec1\udedb\udefb\udf15\udf35\udf4f\udf6f\udf89\udfa9\udfc3]|\ud836[\udc00-\uddff\ude37-\ude3a\ude6d-\ude74\ude76-\ude83\ude85\ude86]|\ud83b[\udef0\udef1]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udfff]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]"},
{name:"Sc",alias:"Currency_Symbol",bmp:"\\x24\u00a2-\u00a5\u058f\u060b\u09f2\u09f3\u09fb\u0af1\u0bf9\u0e3f\u17db\u20a0-\u20be\ua838\ufdfc\ufe69\uff04\uffe0\uffe1\uffe5\uffe6"},{name:"Sk",alias:"Modifier_Symbol",bmp:"\\x5E`\u00a8\u00af\u00b4\u00b8\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u309b\u309c\ua700-\ua716\ua720\ua721\ua789\ua78a\uab5b\ufbb2-\ufbc1\uff3e\uff40\uffe3",astral:"\ud83c[\udffb-\udfff]"},
{name:"Sm",alias:"Math_Symbol",bmp:"\\x2B<->\\x7C~\u00ac\u00b1\u00d7\u00f7\u03f6\u0606-\u0608\u2044\u2052\u207a-\u207c\u208a-\u208c\u2118\u2140-\u2144\u214b\u2190-\u2194\u219a\u219b\u21a0\u21a3\u21a6\u21ae\u21ce\u21cf\u21d2\u21d4\u21f4-\u22ff\u2320\u2321\u237c\u239b-\u23b3\u23dc-\u23e1\u25b7\u25c1\u25f8-\u25ff\u266f\u27c0-\u27c4\u27c7-\u27e5\u27f0-\u27ff\u2900-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2aff\u2b30-\u2b44\u2b47-\u2b4c\ufb29\ufe62\ufe64-\ufe66\uff0b\uff1c-\uff1e\uff5c\uff5e\uffe2\uffe9-\uffec",
astral:"\ud835[\udec1\udedb\udefb\udf15\udf35\udf4f\udf6f\udf89\udfa9\udfc3]|\ud83b[\udef0\udef1]"},{name:"So",alias:"Other_Symbol",bmp:"\u00a6\u00a9\u00ae\u00b0\u0482\u058d\u058e\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u09fa\u0b70\u0bf3-\u0bf8\u0bfa\u0c7f\u0d4f\u0d79\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116\u2117\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u214a\u214c\u214d\u214f\u218a\u218b\u2195-\u2199\u219c-\u219f\u21a1\u21a2\u21a4\u21a5\u21a7-\u21ad\u21af-\u21cd\u21d0\u21d1\u21d3\u21d5-\u21f3\u2300-\u2307\u230c-\u231f\u2322-\u2328\u232b-\u237b\u237d-\u239a\u23b4-\u23db\u23e2-\u23fe\u2400-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u25b6\u25b8-\u25c0\u25c2-\u25f7\u2600-\u266e\u2670-\u2767\u2794-\u27bf\u2800-\u28ff\u2b00-\u2b2f\u2b45\u2b46\u2b4d-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2ce5-\u2cea\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u32fe\u3300-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua828-\ua82b\ua836\ua837\ua839\uaa77-\uaa79\ufdfd\uffe4\uffe8\uffed\uffee\ufffc\ufffd",
astral:"\ud800[\udd37-\udd3f\udd79-\udd89\udd8c-\udd8e\udd90-\udd9b\udda0\uddd0-\uddfc]|\ud802[\udc77\udc78\udec8]|\ud805\udf3f|\ud81a[\udf3c-\udf3f\udf45]|\ud82f\udc9c|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd64\udd6a-\udd6c\udd83\udd84\udd8c-\udda9\uddae-\udde8\ude00-\ude41\ude45\udf00-\udf56]|\ud836[\udc00-\uddff\ude37-\ude3a\ude6d-\ude74\ude76-\ude83\ude85\ude86]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udffa]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]"},
{name:"Z",alias:"Separator",bmp:" \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000"},{name:"Zl",alias:"Line_Separator",bmp:"\u2028"},{name:"Zp",alias:"Paragraph_Separator",bmp:"\u2029"},{name:"Zs",alias:"Space_Separator",bmp:" \u00a0\u1680\u2000-\u200a\u202f\u205f\u3000"}])}},
{}],6:[function(n,m){m.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Properties");var q=[{name:"ASCII",bmp:"\x00-\u007f"},{name:"Alphabetic",bmp:"A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0345\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05b0-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u05d0-\u05ea\u05f0-\u05f2\u0610-\u061a\u0620-\u0657\u0659-\u065f\u066e-\u06d3\u06d5-\u06dc\u06e1-\u06e8\u06ed-\u06ef\u06fa-\u06fc\u06ff\u0710-\u073f\u074d-\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0817\u081a-\u082c\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u08d4-\u08df\u08e3-\u08e9\u08f0-\u093b\u093d-\u094c\u094e-\u0950\u0955-\u0963\u0971-\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd-\u09c4\u09c7\u09c8\u09cb\u09cc\u09ce\u09d7\u09dc\u09dd\u09df-\u09e3\u09f0\u09f1\u0a01-\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3e-\u0a42\u0a47\u0a48\u0a4b\u0a4c\u0a51\u0a59-\u0a5c\u0a5e\u0a70-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd-\u0ac5\u0ac7-\u0ac9\u0acb\u0acc\u0ad0\u0ae0-\u0ae3\u0af9\u0b01-\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d-\u0b44\u0b47\u0b48\u0b4b\u0b4c\u0b56\u0b57\u0b5c\u0b5d\u0b5f-\u0b63\u0b71\u0b82\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0c00-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4c\u0c55\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccc\u0cd5\u0cd6\u0cde\u0ce0-\u0ce3\u0cf1\u0cf2\u0d01-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d44\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d7a-\u0d7f\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e01-\u0e3a\u0e40-\u0e46\u0e4d\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb9\u0ebb-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ecd\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f71-\u0f81\u0f88-\u0f97\u0f99-\u0fbc\u1000-\u1036\u1038\u103b-\u103f\u1050-\u1062\u1065-\u1068\u106e-\u1086\u108e\u109c\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135f\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1713\u1720-\u1733\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772\u1773\u1780-\u17b3\u17b6-\u17c8\u17d7\u17dc\u1820-\u1877\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u1938\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a1b\u1a20-\u1a5e\u1a61-\u1a74\u1aa7\u1b00-\u1b33\u1b35-\u1b43\u1b45-\u1b4b\u1b80-\u1ba9\u1bac-\u1baf\u1bba-\u1be5\u1be7-\u1bf1\u1c00-\u1c35\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1d00-\u1dbf\u1de7-\u1df4\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u24b6-\u24e9\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua674-\ua67b\ua67f-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua827\ua840-\ua873\ua880-\ua8c3\ua8c5\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua92a\ua930-\ua952\ua960-\ua97c\ua980-\ua9b2\ua9b4-\ua9bf\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa60-\uaa76\uaa7a\uaa7e-\uaabe\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf5\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabea\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00-\ude03\ude05\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2]|\ud804[\udc00-\udc45\udc82-\udcb8\udcd0-\udce8\udd00-\udd32\udd50-\udd72\udd76\udd80-\uddbf\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude34\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udee8\udf00-\udf03\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d-\udf44\udf47\udf48\udf4b\udf4c\udf50\udf57\udf5d-\udf63]|\ud805[\udc00-\udc41\udc43-\udc45\udc47-\udc4a\udc80-\udcc1\udcc4\udcc5\udcc7\udd80-\uddb5\uddb8-\uddbe\uddd8-\udddd\ude00-\ude3e\ude40\ude44\ude80-\udeb5\udf00-\udf19\udf1d-\udf2a]|\ud806[\udca0-\udcdf\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc3e\udc40\udc72-\udc8f\udc92-\udca7\udca9-\udcb6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf36\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50-\udf7e\udf93-\udf9f\udfe0]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9e]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd47]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud83c[\udd30-\udd49\udd50-\udd69\udd70-\udd89]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Any",isBmpLast:!0,bmp:"\x00-\uffff",astral:"[\ud800-\udbff][\udc00-\udfff]"},{name:"Default_Ignorable_Code_Point",bmp:"\u00ad\u034f\u061c\u115f\u1160\u17b4\u17b5\u180b-\u180e\u200b-\u200f\u202a-\u202e\u2060-\u206f\u3164\ufe00-\ufe0f\ufeff\uffa0\ufff0-\ufff8",astral:"\ud82f[\udca0-\udca3]|\ud834[\udd73-\udd7a]|[\udb40-\udb43][\udc00-\udfff]"},{name:"Lowercase",bmp:"a-z\u00aa\u00b5\u00ba\u00df-\u00f6\u00f8-\u00ff\u0101\u0103\u0105\u0107\u0109\u010b\u010d\u010f\u0111\u0113\u0115\u0117\u0119\u011b\u011d\u011f\u0121\u0123\u0125\u0127\u0129\u012b\u012d\u012f\u0131\u0133\u0135\u0137\u0138\u013a\u013c\u013e\u0140\u0142\u0144\u0146\u0148\u0149\u014b\u014d\u014f\u0151\u0153\u0155\u0157\u0159\u015b\u015d\u015f\u0161\u0163\u0165\u0167\u0169\u016b\u016d\u016f\u0171\u0173\u0175\u0177\u017a\u017c\u017e-\u0180\u0183\u0185\u0188\u018c\u018d\u0192\u0195\u0199-\u019b\u019e\u01a1\u01a3\u01a5\u01a8\u01aa\u01ab\u01ad\u01b0\u01b4\u01b6\u01b9\u01ba\u01bd-\u01bf\u01c6\u01c9\u01cc\u01ce\u01d0\u01d2\u01d4\u01d6\u01d8\u01da\u01dc\u01dd\u01df\u01e1\u01e3\u01e5\u01e7\u01e9\u01eb\u01ed\u01ef\u01f0\u01f3\u01f5\u01f9\u01fb\u01fd\u01ff\u0201\u0203\u0205\u0207\u0209\u020b\u020d\u020f\u0211\u0213\u0215\u0217\u0219\u021b\u021d\u021f\u0221\u0223\u0225\u0227\u0229\u022b\u022d\u022f\u0231\u0233-\u0239\u023c\u023f\u0240\u0242\u0247\u0249\u024b\u024d\u024f-\u0293\u0295-\u02b8\u02c0\u02c1\u02e0-\u02e4\u0345\u0371\u0373\u0377\u037a-\u037d\u0390\u03ac-\u03ce\u03d0\u03d1\u03d5-\u03d7\u03d9\u03db\u03dd\u03df\u03e1\u03e3\u03e5\u03e7\u03e9\u03eb\u03ed\u03ef-\u03f3\u03f5\u03f8\u03fb\u03fc\u0430-\u045f\u0461\u0463\u0465\u0467\u0469\u046b\u046d\u046f\u0471\u0473\u0475\u0477\u0479\u047b\u047d\u047f\u0481\u048b\u048d\u048f\u0491\u0493\u0495\u0497\u0499\u049b\u049d\u049f\u04a1\u04a3\u04a5\u04a7\u04a9\u04ab\u04ad\u04af\u04b1\u04b3\u04b5\u04b7\u04b9\u04bb\u04bd\u04bf\u04c2\u04c4\u04c6\u04c8\u04ca\u04cc\u04ce\u04cf\u04d1\u04d3\u04d5\u04d7\u04d9\u04db\u04dd\u04df\u04e1\u04e3\u04e5\u04e7\u04e9\u04eb\u04ed\u04ef\u04f1\u04f3\u04f5\u04f7\u04f9\u04fb\u04fd\u04ff\u0501\u0503\u0505\u0507\u0509\u050b\u050d\u050f\u0511\u0513\u0515\u0517\u0519\u051b\u051d\u051f\u0521\u0523\u0525\u0527\u0529\u052b\u052d\u052f\u0561-\u0587\u13f8-\u13fd\u1c80-\u1c88\u1d00-\u1dbf\u1e01\u1e03\u1e05\u1e07\u1e09\u1e0b\u1e0d\u1e0f\u1e11\u1e13\u1e15\u1e17\u1e19\u1e1b\u1e1d\u1e1f\u1e21\u1e23\u1e25\u1e27\u1e29\u1e2b\u1e2d\u1e2f\u1e31\u1e33\u1e35\u1e37\u1e39\u1e3b\u1e3d\u1e3f\u1e41\u1e43\u1e45\u1e47\u1e49\u1e4b\u1e4d\u1e4f\u1e51\u1e53\u1e55\u1e57\u1e59\u1e5b\u1e5d\u1e5f\u1e61\u1e63\u1e65\u1e67\u1e69\u1e6b\u1e6d\u1e6f\u1e71\u1e73\u1e75\u1e77\u1e79\u1e7b\u1e7d\u1e7f\u1e81\u1e83\u1e85\u1e87\u1e89\u1e8b\u1e8d\u1e8f\u1e91\u1e93\u1e95-\u1e9d\u1e9f\u1ea1\u1ea3\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u1eb9\u1ebb\u1ebd\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ec9\u1ecb\u1ecd\u1ecf\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u1edb\u1edd\u1edf\u1ee1\u1ee3\u1ee5\u1ee7\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u1ef3\u1ef5\u1ef7\u1ef9\u1efb\u1efd\u1eff-\u1f07\u1f10-\u1f15\u1f20-\u1f27\u1f30-\u1f37\u1f40-\u1f45\u1f50-\u1f57\u1f60-\u1f67\u1f70-\u1f7d\u1f80-\u1f87\u1f90-\u1f97\u1fa0-\u1fa7\u1fb0-\u1fb4\u1fb6\u1fb7\u1fbe\u1fc2-\u1fc4\u1fc6\u1fc7\u1fd0-\u1fd3\u1fd6\u1fd7\u1fe0-\u1fe7\u1ff2-\u1ff4\u1ff6\u1ff7\u2071\u207f\u2090-\u209c\u210a\u210e\u210f\u2113\u212f\u2134\u2139\u213c\u213d\u2146-\u2149\u214e\u2170-\u217f\u2184\u24d0-\u24e9\u2c30-\u2c5e\u2c61\u2c65\u2c66\u2c68\u2c6a\u2c6c\u2c71\u2c73\u2c74\u2c76-\u2c7d\u2c81\u2c83\u2c85\u2c87\u2c89\u2c8b\u2c8d\u2c8f\u2c91\u2c93\u2c95\u2c97\u2c99\u2c9b\u2c9d\u2c9f\u2ca1\u2ca3\u2ca5\u2ca7\u2ca9\u2cab\u2cad\u2caf\u2cb1\u2cb3\u2cb5\u2cb7\u2cb9\u2cbb\u2cbd\u2cbf\u2cc1\u2cc3\u2cc5\u2cc7\u2cc9\u2ccb\u2ccd\u2ccf\u2cd1\u2cd3\u2cd5\u2cd7\u2cd9\u2cdb\u2cdd\u2cdf\u2ce1\u2ce3\u2ce4\u2cec\u2cee\u2cf3\u2d00-\u2d25\u2d27\u2d2d\ua641\ua643\ua645\ua647\ua649\ua64b\ua64d\ua64f\ua651\ua653\ua655\ua657\ua659\ua65b\ua65d\ua65f\ua661\ua663\ua665\ua667\ua669\ua66b\ua66d\ua681\ua683\ua685\ua687\ua689\ua68b\ua68d\ua68f\ua691\ua693\ua695\ua697\ua699\ua69b-\ua69d\ua723\ua725\ua727\ua729\ua72b\ua72d\ua72f-\ua731\ua733\ua735\ua737\ua739\ua73b\ua73d\ua73f\ua741\ua743\ua745\ua747\ua749\ua74b\ua74d\ua74f\ua751\ua753\ua755\ua757\ua759\ua75b\ua75d\ua75f\ua761\ua763\ua765\ua767\ua769\ua76b\ua76d\ua76f-\ua778\ua77a\ua77c\ua77f\ua781\ua783\ua785\ua787\ua78c\ua78e\ua791\ua793-\ua795\ua797\ua799\ua79b\ua79d\ua79f\ua7a1\ua7a3\ua7a5\ua7a7\ua7a9\ua7b5\ua7b7\ua7f8-\ua7fa\uab30-\uab5a\uab5c-\uab65\uab70-\uabbf\ufb00-\ufb06\ufb13-\ufb17\uff41-\uff5a",
astral:"\ud801[\udc28-\udc4f\udcd8-\udcfb]|\ud803[\udcc0-\udcf2]|\ud806[\udcc0-\udcdf]|\ud835[\udc1a-\udc33\udc4e-\udc54\udc56-\udc67\udc82-\udc9b\udcb6-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udccf\udcea-\udd03\udd1e-\udd37\udd52-\udd6b\udd86-\udd9f\uddba-\uddd3\uddee-\ude07\ude22-\ude3b\ude56-\ude6f\ude8a-\udea5\udec2-\udeda\udedc-\udee1\udefc-\udf14\udf16-\udf1b\udf36-\udf4e\udf50-\udf55\udf70-\udf88\udf8a-\udf8f\udfaa-\udfc2\udfc4-\udfc9\udfcb]|\ud83a[\udd22-\udd43]"},{name:"Noncharacter_Code_Point",
bmp:"\ufdd0-\ufdef\ufffe\uffff",astral:"[\ud83f\ud87f\ud8bf\ud8ff\ud93f\ud97f\ud9bf\ud9ff\uda3f\uda7f\udabf\udaff\udb3f\udb7f\udbbf\udbff][\udffe\udfff]"},{name:"Uppercase",bmp:"A-Z\u00c0-\u00d6\u00d8-\u00de\u0100\u0102\u0104\u0106\u0108\u010a\u010c\u010e\u0110\u0112\u0114\u0116\u0118\u011a\u011c\u011e\u0120\u0122\u0124\u0126\u0128\u012a\u012c\u012e\u0130\u0132\u0134\u0136\u0139\u013b\u013d\u013f\u0141\u0143\u0145\u0147\u014a\u014c\u014e\u0150\u0152\u0154\u0156\u0158\u015a\u015c\u015e\u0160\u0162\u0164\u0166\u0168\u016a\u016c\u016e\u0170\u0172\u0174\u0176\u0178\u0179\u017b\u017d\u0181\u0182\u0184\u0186\u0187\u0189-\u018b\u018e-\u0191\u0193\u0194\u0196-\u0198\u019c\u019d\u019f\u01a0\u01a2\u01a4\u01a6\u01a7\u01a9\u01ac\u01ae\u01af\u01b1-\u01b3\u01b5\u01b7\u01b8\u01bc\u01c4\u01c7\u01ca\u01cd\u01cf\u01d1\u01d3\u01d5\u01d7\u01d9\u01db\u01de\u01e0\u01e2\u01e4\u01e6\u01e8\u01ea\u01ec\u01ee\u01f1\u01f4\u01f6-\u01f8\u01fa\u01fc\u01fe\u0200\u0202\u0204\u0206\u0208\u020a\u020c\u020e\u0210\u0212\u0214\u0216\u0218\u021a\u021c\u021e\u0220\u0222\u0224\u0226\u0228\u022a\u022c\u022e\u0230\u0232\u023a\u023b\u023d\u023e\u0241\u0243-\u0246\u0248\u024a\u024c\u024e\u0370\u0372\u0376\u037f\u0386\u0388-\u038a\u038c\u038e\u038f\u0391-\u03a1\u03a3-\u03ab\u03cf\u03d2-\u03d4\u03d8\u03da\u03dc\u03de\u03e0\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03f9\u03fa\u03fd-\u042f\u0460\u0462\u0464\u0466\u0468\u046a\u046c\u046e\u0470\u0472\u0474\u0476\u0478\u047a\u047c\u047e\u0480\u048a\u048c\u048e\u0490\u0492\u0494\u0496\u0498\u049a\u049c\u049e\u04a0\u04a2\u04a4\u04a6\u04a8\u04aa\u04ac\u04ae\u04b0\u04b2\u04b4\u04b6\u04b8\u04ba\u04bc\u04be\u04c0\u04c1\u04c3\u04c5\u04c7\u04c9\u04cb\u04cd\u04d0\u04d2\u04d4\u04d6\u04d8\u04da\u04dc\u04de\u04e0\u04e2\u04e4\u04e6\u04e8\u04ea\u04ec\u04ee\u04f0\u04f2\u04f4\u04f6\u04f8\u04fa\u04fc\u04fe\u0500\u0502\u0504\u0506\u0508\u050a\u050c\u050e\u0510\u0512\u0514\u0516\u0518\u051a\u051c\u051e\u0520\u0522\u0524\u0526\u0528\u052a\u052c\u052e\u0531-\u0556\u10a0-\u10c5\u10c7\u10cd\u13a0-\u13f5\u1e00\u1e02\u1e04\u1e06\u1e08\u1e0a\u1e0c\u1e0e\u1e10\u1e12\u1e14\u1e16\u1e18\u1e1a\u1e1c\u1e1e\u1e20\u1e22\u1e24\u1e26\u1e28\u1e2a\u1e2c\u1e2e\u1e30\u1e32\u1e34\u1e36\u1e38\u1e3a\u1e3c\u1e3e\u1e40\u1e42\u1e44\u1e46\u1e48\u1e4a\u1e4c\u1e4e\u1e50\u1e52\u1e54\u1e56\u1e58\u1e5a\u1e5c\u1e5e\u1e60\u1e62\u1e64\u1e66\u1e68\u1e6a\u1e6c\u1e6e\u1e70\u1e72\u1e74\u1e76\u1e78\u1e7a\u1e7c\u1e7e\u1e80\u1e82\u1e84\u1e86\u1e88\u1e8a\u1e8c\u1e8e\u1e90\u1e92\u1e94\u1e9e\u1ea0\u1ea2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u1eb8\u1eba\u1ebc\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ec8\u1eca\u1ecc\u1ece\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1eda\u1edc\u1ede\u1ee0\u1ee2\u1ee4\u1ee6\u1ee8\u1eea\u1eec\u1eee\u1ef0\u1ef2\u1ef4\u1ef6\u1ef8\u1efa\u1efc\u1efe\u1f08-\u1f0f\u1f18-\u1f1d\u1f28-\u1f2f\u1f38-\u1f3f\u1f48-\u1f4d\u1f59\u1f5b\u1f5d\u1f5f\u1f68-\u1f6f\u1fb8-\u1fbb\u1fc8-\u1fcb\u1fd8-\u1fdb\u1fe8-\u1fec\u1ff8-\u1ffb\u2102\u2107\u210b-\u210d\u2110-\u2112\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u2130-\u2133\u213e\u213f\u2145\u2160-\u216f\u2183\u24b6-\u24cf\u2c00-\u2c2e\u2c60\u2c62-\u2c64\u2c67\u2c69\u2c6b\u2c6d-\u2c70\u2c72\u2c75\u2c7e-\u2c80\u2c82\u2c84\u2c86\u2c88\u2c8a\u2c8c\u2c8e\u2c90\u2c92\u2c94\u2c96\u2c98\u2c9a\u2c9c\u2c9e\u2ca0\u2ca2\u2ca4\u2ca6\u2ca8\u2caa\u2cac\u2cae\u2cb0\u2cb2\u2cb4\u2cb6\u2cb8\u2cba\u2cbc\u2cbe\u2cc0\u2cc2\u2cc4\u2cc6\u2cc8\u2cca\u2ccc\u2cce\u2cd0\u2cd2\u2cd4\u2cd6\u2cd8\u2cda\u2cdc\u2cde\u2ce0\u2ce2\u2ceb\u2ced\u2cf2\ua640\ua642\ua644\ua646\ua648\ua64a\ua64c\ua64e\ua650\ua652\ua654\ua656\ua658\ua65a\ua65c\ua65e\ua660\ua662\ua664\ua666\ua668\ua66a\ua66c\ua680\ua682\ua684\ua686\ua688\ua68a\ua68c\ua68e\ua690\ua692\ua694\ua696\ua698\ua69a\ua722\ua724\ua726\ua728\ua72a\ua72c\ua72e\ua732\ua734\ua736\ua738\ua73a\ua73c\ua73e\ua740\ua742\ua744\ua746\ua748\ua74a\ua74c\ua74e\ua750\ua752\ua754\ua756\ua758\ua75a\ua75c\ua75e\ua760\ua762\ua764\ua766\ua768\ua76a\ua76c\ua76e\ua779\ua77b\ua77d\ua77e\ua780\ua782\ua784\ua786\ua78b\ua78d\ua790\ua792\ua796\ua798\ua79a\ua79c\ua79e\ua7a0\ua7a2\ua7a4\ua7a6\ua7a8\ua7aa-\ua7ae\ua7b0-\ua7b4\ua7b6\uff21-\uff3a",
astral:"\ud801[\udc00-\udc27\udcb0-\udcd3]|\ud803[\udc80-\udcb2]|\ud806[\udca0-\udcbf]|\ud835[\udc00-\udc19\udc34-\udc4d\udc68-\udc81\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb5\udcd0-\udce9\udd04\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd38\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd6c-\udd85\udda0-\uddb9\uddd4-\udded\ude08-\ude21\ude3c-\ude55\ude70-\ude89\udea8-\udec0\udee2-\udefa\udf1c-\udf34\udf56-\udf6e\udf90-\udfa8\udfca]|\ud83a[\udd00-\udd21]|\ud83c[\udd30-\udd49\udd50-\udd69\udd70-\udd89]"},
{name:"White_Space",bmp:"\t-\r \u0085\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000"}];q.push({name:"Assigned",inverseOf:"Cn"});b.addUnicodeData(q)}},
{}],7:[function(n,m){m.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");b.addUnicodeData([{name:"Adlam",astral:"\ud83a[\udd00-\udd4a\udd50-\udd59\udd5e\udd5f]"},{name:"Ahom",astral:"\ud805[\udf00-\udf19\udf1d-\udf2b\udf30-\udf3f]"},{name:"Anatolian_Hieroglyphs",astral:"\ud811[\udc00-\ude46]"},{name:"Arabic",bmp:"\u0600-\u0604\u0606-\u060b\u060d-\u061a\u061e\u0620-\u063f\u0641-\u064a\u0656-\u066f\u0671-\u06dc\u06de-\u06ff\u0750-\u077f\u08a0-\u08b4\u08b6-\u08bd\u08d4-\u08e1\u08e3-\u08ff\ufb50-\ufbc1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfd\ufe70-\ufe74\ufe76-\ufefc",
astral:"\ud803[\ude60-\ude7e]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb\udef0\udef1]"},{name:"Armenian",bmp:"\u0531-\u0556\u0559-\u055f\u0561-\u0587\u058a\u058d-\u058f\ufb13-\ufb17"},{name:"Avestan",astral:"\ud802[\udf00-\udf35\udf39-\udf3f]"},
{name:"Balinese",bmp:"\u1b00-\u1b4b\u1b50-\u1b7c"},{name:"Bamum",bmp:"\ua6a0-\ua6f7",astral:"\ud81a[\udc00-\ude38]"},{name:"Bassa_Vah",astral:"\ud81a[\uded0-\udeed\udef0-\udef5]"},{name:"Batak",bmp:"\u1bc0-\u1bf3\u1bfc-\u1bff"},{name:"Bengali",bmp:"\u0980-\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7\u09c8\u09cb-\u09ce\u09d7\u09dc\u09dd\u09df-\u09e3\u09e6-\u09fb"},{name:"Bhaiksuki",astral:"\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc45\udc50-\udc6c]"},
{name:"Bopomofo",bmp:"\u02ea\u02eb\u3105-\u312d\u31a0-\u31ba"},{name:"Brahmi",astral:"\ud804[\udc00-\udc4d\udc52-\udc6f\udc7f]"},{name:"Braille",bmp:"\u2800-\u28ff"},{name:"Buginese",bmp:"\u1a00-\u1a1b\u1a1e\u1a1f"},{name:"Buhid",bmp:"\u1740-\u1753"},{name:"Canadian_Aboriginal",bmp:"\u1400-\u167f\u18b0-\u18f5"},{name:"Carian",astral:"\ud800[\udea0-\uded0]"},{name:"Caucasian_Albanian",astral:"\ud801[\udd30-\udd63\udd6f]"},{name:"Chakma",astral:"\ud804[\udd00-\udd34\udd36-\udd43]"},{name:"Cham",bmp:"\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa5c-\uaa5f"},
{name:"Cherokee",bmp:"\u13a0-\u13f5\u13f8-\u13fd\uab70-\uabbf"},{name:"Common",bmp:"\x00-@\\x5B-`\\x7B-\u00a9\u00ab-\u00b9\u00bb-\u00bf\u00d7\u00f7\u02b9-\u02df\u02e5-\u02e9\u02ec-\u02ff\u0374\u037e\u0385\u0387\u0589\u0605\u060c\u061b\u061c\u061f\u0640\u06dd\u08e2\u0964\u0965\u0e3f\u0fd5-\u0fd8\u10fb\u16eb-\u16ed\u1735\u1736\u1802\u1803\u1805\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u2000-\u200b\u200e-\u2064\u2066-\u2070\u2074-\u207e\u2080-\u208e\u20a0-\u20be\u2100-\u2125\u2127-\u2129\u212c-\u2131\u2133-\u214d\u214f-\u215f\u2189-\u218b\u2190-\u23fe\u2400-\u2426\u2440-\u244a\u2460-\u27ff\u2900-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2e00-\u2e44\u2ff0-\u2ffb\u3000-\u3004\u3006\u3008-\u3020\u3030-\u3037\u303c-\u303f\u309b\u309c\u30a0\u30fb\u30fc\u3190-\u319f\u31c0-\u31e3\u3220-\u325f\u327f-\u32cf\u3358-\u33ff\u4dc0-\u4dff\ua700-\ua721\ua788-\ua78a\ua830-\ua839\ua92e\ua9cf\uab5b\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe66\ufe68-\ufe6b\ufeff\uff01-\uff20\uff3b-\uff40\uff5b-\uff65\uff70\uff9e\uff9f\uffe0-\uffe6\uffe8-\uffee\ufff9-\ufffd",
astral:"\ud800[\udd00-\udd02\udd07-\udd33\udd37-\udd3f\udd90-\udd9b\uddd0-\uddfc\udee1-\udefb]|\ud82f[\udca0-\udca3]|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd66\udd6a-\udd7a\udd83\udd84\udd8c-\udda9\uddae-\udde8\udf00-\udf56\udf60-\udf71]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udfcb\udfce-\udfff]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd00-\udd0c\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\uddff\ude01\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udfff]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]|\udb40[\udc01\udc20-\udc7f]"},
{name:"Coptic",bmp:"\u03e2-\u03ef\u2c80-\u2cf3\u2cf9-\u2cff"},{name:"Cuneiform",astral:"\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc70-\udc74\udc80-\udd43]"},{name:"Cypriot",astral:"\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f]"},{name:"Cyrillic",bmp:"\u0400-\u0484\u0487-\u052f\u1c80-\u1c88\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f"},{name:"Deseret",astral:"\ud801[\udc00-\udc4f]"},{name:"Devanagari",bmp:"\u0900-\u0950\u0953-\u0963\u0966-\u097f\ua8e0-\ua8fd"},{name:"Duployan",
astral:"\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9c-\udc9f]"},{name:"Egyptian_Hieroglyphs",astral:"\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]"},{name:"Elbasan",astral:"\ud801[\udd00-\udd27]"},{name:"Ethiopic",bmp:"\u1200-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u137c\u1380-\u1399\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e"},
{name:"Georgian",bmp:"\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u10ff\u2d00-\u2d25\u2d27\u2d2d"},{name:"Glagolitic",bmp:"\u2c00-\u2c2e\u2c30-\u2c5e",astral:"\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]"},{name:"Gothic",astral:"\ud800[\udf30-\udf4a]"},{name:"Grantha",astral:"\ud804[\udf00-\udf03\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3c-\udf44\udf47\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]"},{name:"Greek",
bmp:"\u0370-\u0373\u0375-\u0377\u037a-\u037d\u037f\u0384\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03e1\u03f0-\u03ff\u1d26-\u1d2a\u1d5d-\u1d61\u1d66-\u1d6a\u1dbf\u1f00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fc4\u1fc6-\u1fd3\u1fd6-\u1fdb\u1fdd-\u1fef\u1ff2-\u1ff4\u1ff6-\u1ffe\u2126\uab65",astral:"\ud800[\udd40-\udd8e\udda0]|\ud834[\ude00-\ude45]"},{name:"Gujarati",bmp:"\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0af1\u0af9"},
{name:"Gurmukhi",bmp:"\u0a01-\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75"},{name:"Han",bmp:"\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u3005\u3007\u3021-\u3029\u3038-\u303b\u3400-\u4db5\u4e00-\u9fd5\uf900-\ufa6d\ufa70-\ufad9",astral:"[\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Hangul",bmp:"\u1100-\u11ff\u302e\u302f\u3131-\u318e\u3200-\u321e\u3260-\u327e\ua960-\ua97c\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"},{name:"Hanunoo",bmp:"\u1720-\u1734"},{name:"Hatran",astral:"\ud802[\udce0-\udcf2\udcf4\udcf5\udcfb-\udcff]"},{name:"Hebrew",bmp:"\u0591-\u05c7\u05d0-\u05ea\u05f0-\u05f4\ufb1d-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufb4f"},{name:"Hiragana",bmp:"\u3041-\u3096\u309d-\u309f",astral:"\ud82c\udc01|\ud83c\ude00"},
{name:"Imperial_Aramaic",astral:"\ud802[\udc40-\udc55\udc57-\udc5f]"},{name:"Inherited",bmp:"\u0300-\u036f\u0485\u0486\u064b-\u0655\u0670\u0951\u0952\u1ab0-\u1abe\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u200c\u200d\u20d0-\u20f0\u302a-\u302d\u3099\u309a\ufe00-\ufe0f\ufe20-\ufe2d",astral:"\ud800[\uddfd\udee0]|\ud834[\udd67-\udd69\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad]|\udb40[\udd00-\uddef]"},{name:"Inscriptional_Pahlavi",astral:"\ud802[\udf60-\udf72\udf78-\udf7f]"},
{name:"Inscriptional_Parthian",astral:"\ud802[\udf40-\udf55\udf58-\udf5f]"},{name:"Javanese",bmp:"\ua980-\ua9cd\ua9d0-\ua9d9\ua9de\ua9df"},{name:"Kaithi",astral:"\ud804[\udc80-\udcc1]"},{name:"Kannada",bmp:"\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1\u0cf2"},{name:"Katakana",bmp:"\u30a1-\u30fa\u30fd-\u30ff\u31f0-\u31ff\u32d0-\u32fe\u3300-\u3357\uff66-\uff6f\uff71-\uff9d",astral:"\ud82c\udc00"},
{name:"Kayah_Li",bmp:"\ua900-\ua92d\ua92f"},{name:"Kharoshthi",astral:"\ud802[\ude00-\ude03\ude05\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude33\ude38-\ude3a\ude3f-\ude47\ude50-\ude58]"},{name:"Khmer",bmp:"\u1780-\u17dd\u17e0-\u17e9\u17f0-\u17f9\u19e0-\u19ff"},{name:"Khojki",astral:"\ud804[\ude00-\ude11\ude13-\ude3e]"},{name:"Khudawadi",astral:"\ud804[\udeb0-\udeea\udef0-\udef9]"},{name:"Lao",bmp:"\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb9\u0ebb-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf"},
{name:"Latin",bmp:"A-Za-z\u00aa\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u02e0-\u02e4\u1d00-\u1d25\u1d2c-\u1d5c\u1d62-\u1d65\u1d6b-\u1d77\u1d79-\u1dbe\u1e00-\u1eff\u2071\u207f\u2090-\u209c\u212a\u212b\u2132\u214e\u2160-\u2188\u2c60-\u2c7f\ua722-\ua787\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua7ff\uab30-\uab5a\uab5c-\uab64\ufb00-\ufb06\uff21-\uff3a\uff41-\uff5a"},{name:"Lepcha",bmp:"\u1c00-\u1c37\u1c3b-\u1c49\u1c4d-\u1c4f"},{name:"Limbu",bmp:"\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1940\u1944-\u194f"},
{name:"Linear_A",astral:"\ud801[\ude00-\udf36\udf40-\udf55\udf60-\udf67]"},{name:"Linear_B",astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa]"},{name:"Lisu",bmp:"\ua4d0-\ua4ff"},{name:"Lycian",astral:"\ud800[\ude80-\ude9c]"},{name:"Lydian",astral:"\ud802[\udd20-\udd39\udd3f]"},{name:"Mahajani",astral:"\ud804[\udd50-\udd76]"},{name:"Malayalam",bmp:"\u0d01-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d44\u0d46-\u0d48\u0d4a-\u0d4f\u0d54-\u0d63\u0d66-\u0d7f"},
{name:"Mandaic",bmp:"\u0840-\u085b\u085e"},{name:"Manichaean",astral:"\ud802[\udec0-\udee6\udeeb-\udef6]"},{name:"Marchen",astral:"\ud807[\udc70-\udc8f\udc92-\udca7\udca9-\udcb6]"},{name:"Meetei_Mayek",bmp:"\uaae0-\uaaf6\uabc0-\uabed\uabf0-\uabf9"},{name:"Mende_Kikakui",astral:"\ud83a[\udc00-\udcc4\udcc7-\udcd6]"},{name:"Meroitic_Cursive",astral:"\ud802[\udda0-\uddb7\uddbc-\uddcf\uddd2-\uddff]"},{name:"Meroitic_Hieroglyphs",astral:"\ud802[\udd80-\udd9f]"},{name:"Miao",astral:"\ud81b[\udf00-\udf44\udf50-\udf7e\udf8f-\udf9f]"},
{name:"Modi",astral:"\ud805[\ude00-\ude44\ude50-\ude59]"},{name:"Mongolian",bmp:"\u1800\u1801\u1804\u1806-\u180e\u1810-\u1819\u1820-\u1877\u1880-\u18aa",astral:"\ud805[\ude60-\ude6c]"},{name:"Mro",astral:"\ud81a[\ude40-\ude5e\ude60-\ude69\ude6e\ude6f]"},{name:"Multani",astral:"\ud804[\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea9]"},{name:"Myanmar",bmp:"\u1000-\u109f\ua9e0-\ua9fe\uaa60-\uaa7f"},{name:"Nabataean",astral:"\ud802[\udc80-\udc9e\udca7-\udcaf]"},{name:"New_Tai_Lue",bmp:"\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u19de\u19df"},
{name:"Newa",astral:"\ud805[\udc00-\udc59\udc5b\udc5d]"},{name:"Nko",bmp:"\u07c0-\u07fa"},{name:"Ogham",bmp:"\u1680-\u169c"},{name:"Ol_Chiki",bmp:"\u1c50-\u1c7f"},{name:"Old_Hungarian",astral:"\ud803[\udc80-\udcb2\udcc0-\udcf2\udcfa-\udcff]"},{name:"Old_Italic",astral:"\ud800[\udf00-\udf23]"},{name:"Old_North_Arabian",astral:"\ud802[\ude80-\ude9f]"},{name:"Old_Permic",astral:"\ud800[\udf50-\udf7a]"},{name:"Old_Persian",astral:"\ud800[\udfa0-\udfc3\udfc8-\udfd5]"},{name:"Old_South_Arabian",astral:"\ud802[\ude60-\ude7f]"},
{name:"Old_Turkic",astral:"\ud803[\udc00-\udc48]"},{name:"Oriya",bmp:"\u0b01-\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b5c\u0b5d\u0b5f-\u0b63\u0b66-\u0b77"},{name:"Osage",astral:"\ud801[\udcb0-\udcd3\udcd8-\udcfb]"},{name:"Osmanya",astral:"\ud801[\udc80-\udc9d\udca0-\udca9]"},{name:"Pahawh_Hmong",astral:"\ud81a[\udf00-\udf45\udf50-\udf59\udf5b-\udf61\udf63-\udf77\udf7d-\udf8f]"},{name:"Palmyrene",astral:"\ud802[\udc60-\udc7f]"},
{name:"Pau_Cin_Hau",astral:"\ud806[\udec0-\udef8]"},{name:"Phags_Pa",bmp:"\ua840-\ua877"},{name:"Phoenician",astral:"\ud802[\udd00-\udd1b\udd1f]"},{name:"Psalter_Pahlavi",astral:"\ud802[\udf80-\udf91\udf99-\udf9c\udfa9-\udfaf]"},{name:"Rejang",bmp:"\ua930-\ua953\ua95f"},{name:"Runic",bmp:"\u16a0-\u16ea\u16ee-\u16f8"},{name:"Samaritan",bmp:"\u0800-\u082d\u0830-\u083e"},{name:"Saurashtra",bmp:"\ua880-\ua8c5\ua8ce-\ua8d9"},{name:"Sharada",astral:"\ud804[\udd80-\uddcd\uddd0-\udddf]"},{name:"Shavian",
astral:"\ud801[\udc50-\udc7f]"},{name:"Siddham",astral:"\ud805[\udd80-\uddb5\uddb8-\udddd]"},{name:"SignWriting",astral:"\ud836[\udc00-\ude8b\ude9b-\ude9f\udea1-\udeaf]"},{name:"Sinhala",bmp:"\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df4",astral:"\ud804[\udde1-\uddf4]"},{name:"Sora_Sompeng",astral:"\ud804[\udcd0-\udce8\udcf0-\udcf9]"},{name:"Sundanese",bmp:"\u1b80-\u1bbf\u1cc0-\u1cc7"},{name:"Syloti_Nagri",bmp:"\ua800-\ua82b"},
{name:"Syriac",bmp:"\u0700-\u070d\u070f-\u074a\u074d-\u074f"},{name:"Tagalog",bmp:"\u1700-\u170c\u170e-\u1714"},{name:"Tagbanwa",bmp:"\u1760-\u176c\u176e-\u1770\u1772\u1773"},{name:"Tai_Le",bmp:"\u1950-\u196d\u1970-\u1974"},{name:"Tai_Tham",bmp:"\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa0-\u1aad"},{name:"Tai_Viet",bmp:"\uaa80-\uaac2\uaadb-\uaadf"},{name:"Takri",astral:"\ud805[\ude80-\udeb7\udec0-\udec9]"},{name:"Tamil",bmp:"\u0b82\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bfa"},
{name:"Tangut",astral:"\ud81b\udfe0|[\ud81c-\ud820][\udc00-\udfff]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]"},{name:"Telugu",bmp:"\u0c00-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c78-\u0c7f"},{name:"Thaana",bmp:"\u0780-\u07b1"},{name:"Thai",bmp:"\u0e01-\u0e3a\u0e40-\u0e5b"},{name:"Tibetan",bmp:"\u0f00-\u0f47\u0f49-\u0f6c\u0f71-\u0f97\u0f99-\u0fbc\u0fbe-\u0fcc\u0fce-\u0fd4\u0fd9\u0fda"},
{name:"Tifinagh",bmp:"\u2d30-\u2d67\u2d6f\u2d70\u2d7f"},{name:"Tirhuta",astral:"\ud805[\udc80-\udcc7\udcd0-\udcd9]"},{name:"Ugaritic",astral:"\ud800[\udf80-\udf9d\udf9f]"},{name:"Vai",bmp:"\ua500-\ua62b"},{name:"Warang_Citi",astral:"\ud806[\udca0-\udcf2\udcff]"},{name:"Yi",bmp:"\ua000-\ua48c\ua490-\ua4c6"}])}},
{}],8:[function(n,m){var b=n("./xregexp");n("./addons/build")(b);n("./addons/matchrecursive")(b);n("./addons/unicode-base")(b);n("./addons/unicode-blocks")(b);n("./addons/unicode-categories")(b);n("./addons/unicode-properties")(b);n("./addons/unicode-scripts")(b);m.exports=b},
{"./addons/build":1,"./addons/matchrecursive":2,"./addons/unicode-base":3,"./addons/unicode-blocks":4,"./addons/unicode-categories":5,"./addons/unicode-properties":6,"./addons/unicode-scripts":7,"./xregexp":9}],9:[function(n,m){function b(a){var c=!0;try{c=!!RegExp("",a)}catch(g){c=!1}return c}
function q(a,c,g,l,x){var z;a.xregexp={captureNames:c};if(x)return a;if(a.__proto__)a.__proto__=p.prototype;else for(z in p.prototype)a[z]=p.prototype[z];a.xregexp.source=g;a.xregexp.flags=l?l.split("").sort().join(""):l;return a}
function v(a){return E.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function t(a,c){if(!p.isRegExp(a))throw new TypeError("Type RegExp expected");var g=a.xregexp||{},l=P?a.flags:E.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(a))[1],x="",z="",w=null,y=null;c=c||{};c.removeG&&(z+="g");c.removeY&&(z+="y");z&&(l=E.replace.call(l,new RegExp("["+z+"]+","g"),""));c.addG&&(x+="g");c.addY&&(x+="y");x&&(l=v(l+x));c.isInternalOnly||(g.source!==void 0&&(w=g.source),g.flags!=null&&(y=x?v(g.flags+x):g.flags));return a=q(new RegExp(c.source||a.source,l),a.xregexp&&a.xregexp.captureNames?
g.captureNames.slice(0):null,w,y,c.isInternalOnly)}
function A(a){return parseInt(a,16)}
function d(a,c,g){(c=a.input.charAt(a.index-1)==="("||a.input.charAt(a.index+a[0].length)===")")||(g=g.indexOf("x")>-1?["\\s","#[^#\\n]*","\\(\\?#[^)]*\\)"]:["\\(\\?#[^)]*\\)"],c=E.test.call(new RegExp("^(?:"+g.join("|")+")*(?:[?*+]|{\\d+(?:,\\d*)?})"),a.input.slice(a.index+a[0].length)));return c?"":"(?:)"}
function f(a){return parseInt(a,10).toString(16)}
function h(a,c){var g=a.length,l;for(l=0;l<g;++l)if(a[l]===c)return l;return-1}
function k(a,c){return T.call(a)==="[object "+c+"]"}
function r(a){for(;a.length<4;)a="0"+a;return a}
function u(a,c){var g;if(v(c)!==c)throw new SyntaxError("Invalid duplicate regex flag "+c);a=E.replace.call(a,/^\(\?([\w$]+)\)/,function(l,x){if(E.test.call(/[gy]/,x))throw new SyntaxError("Cannot use flag g or y in mode modifier "+l);c=v(c+x);return""});
for(g=0;g<c.length;++g)if(!Z[c.charAt(g)])throw new SyntaxError("Unknown regex flag "+c.charAt(g));return{pattern:a,flags:c}}
function B(a){var c={};return k(a,"String")?(p.forEach(a,/[^\s,]+/,function(g){c[g]=!0}),c):a}
function C(a){if(!/^[\w$]$/.test(a))throw Error("Flag must be a single character A-Za-z0-9_$");Z[a]=!0}
function D(a){if(a==null)throw new TypeError("Cannot convert null or undefined to object");return a}
function p(a,c){if(p.isRegExp(a)){if(c!==void 0)throw new TypeError("Cannot supply flags when copying a RegExp");return t(a)}a=a===void 0?"":String(a);c=c===void 0?"":String(c);p.isInstalled("astral")&&c.indexOf("A")===-1&&(c+="A");N[a]||(N[a]={});if(!N[a][c]){var g={hasNamedCapture:!1,captureNames:[]},l="default",x="",z=0,w=u(a,c),y=w.pattern;for(w=w.flags;z<y.length;){do{for(var K,H=y,V=w,W=z,X=l,Y=g,S=Q.length,ba=H.charAt(W),aa=null;S--;){var G=Q[S];if(!(G.leadChar&&G.leadChar!==ba||G.scope!==
X&&G.scope!=="all"||G.flag&&V.indexOf(G.flag)===-1)&&(K=p.exec(H,G.regex,W,"sticky"))){aa={matchLength:K[0].length,output:G.handler.call(Y,K,X,V),reparse:G.reparse};break}}(G=aa)&&G.reparse&&(y=y.slice(0,z)+G.output+y.slice(z+G.matchLength))}while(G&&G.reparse);G?(x+=G.output,z+=G.matchLength||1):(G=p.exec(y,R[l],z,"sticky")[0],x+=G,z+=G.length,G==="["&&l==="default"?l="class":G==="]"&&l==="class"&&(l="default"))}N[a][c]={pattern:E.replace.call(x,/(?:\(\?:\))+/g,"(?:)"),flags:E.replace.call(w,/[^gimuy]+/g,
""),captures:g.hasNamedCapture?g.captureNames:null}}g=N[a][c];return q(new RegExp(g.pattern,g.flags),g.captures,a,c)}
var I={astral:!1,natives:!1},E={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},F={},J={},N={},Q=[],R={"default":/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,"class":/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},L=/\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g,
M=E.exec.call(/()??/,"")[1]===void 0,P=/x/.flags!==void 0,T={}.toString,U=b("u"),O=b("y"),Z={g:!0,i:!0,m:!0,u:U,y:O};p.prototype=RegExp();p.version="3.2.0";p._clipDuplicates=v;p._hasNativeFlag=b;p._dec=A;p._hex=f;p._pad4=r;p.addToken=function(a,c,g){g=g||{};var l=g.optionalFlags,x;g.flag&&C(g.flag);if(l)for(l=E.split.call(l,""),x=0;x<l.length;++x)C(l[x]);Q.push({regex:t(a,{addG:!0,addY:O,isInternalOnly:!0}),handler:c,scope:g.scope||"default",flag:g.flag,reparse:g.reparse,leadChar:g.leadChar});p.cache.flush("patterns")};
p.cache=function(a,c){J[a]||(J[a]={});return J[a][c]||(J[a][c]=p(a,c))};
p.cache.flush=function(a){a==="patterns"?N={}:J={}};
p.escape=function(a){return E.replace.call(D(a),/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};
p.exec=function(a,c,g,l){var x="g",z,w=!1;(z=O&&!!(l||c.sticky&&l!==!1))?x+="y":l&&(w=!0,x+="FakeY");c.xregexp=c.xregexp||{};l=c.xregexp[x]||(c.xregexp[x]=t(c,{addG:!0,addY:z,source:w?c.source+"|()":void 0,removeY:l===!1,isInternalOnly:!0}));g=g||0;l.lastIndex=g;a=F.exec.call(l,a);w&&a&&a.pop()===""&&(a=null);c.global&&(c.lastIndex=a?l.lastIndex:0);return a};
p.forEach=function(a,c,g){for(var l=0,x=-1;l=p.exec(a,c,l);)g(l,++x,a,c),l=l.index+(l[0].length||1)};
p.install=function(a){a=B(a);!I.astral&&a.astral&&(I.astral=!0);!I.natives&&a.natives&&(RegExp.prototype.exec=F.exec,RegExp.prototype.test=F.test,String.prototype.match=F.match,String.prototype.replace=F.replace,String.prototype.split=F.split,I.natives=!0)};
p.isInstalled=function(a){return!!I[a]};
p.isRegExp=function(a){return T.call(a)==="[object RegExp]"};
p.match=function(a,c,g){var l=c.global&&g!=="one"||g==="all",x=(l?"g":"")+(c.sticky?"y":"")||"noGY";c.xregexp=c.xregexp||{};x=c.xregexp[x]||(c.xregexp[x]=t(c,{addG:!!l,removeG:g==="one",isInternalOnly:!0}));a=E.match.call(D(a),x);c.global&&(c.lastIndex=g==="one"&&a?a.index+a[0].length:0);return l?a||[]:a&&a[0]};
p.replace=function(a,c,g,l){var x=p.isRegExp(c),z=c.global&&l!=="one"||l==="all",w=(z?"g":"")+(c.sticky?"y":"")||"noGY",y=c;x?(c.xregexp=c.xregexp||{},y=c.xregexp[w]||(c.xregexp[w]=t(c,{addG:!!z,removeG:l==="one",isInternalOnly:!0}))):z&&(y=new RegExp(p.escape(String(c)),"g"));a=F.replace.call(D(a),y,g);x&&c.global&&(c.lastIndex=0);return a};
p.split=function(a,c,g){return F.split.call(D(a),c,g)};
p.test=function(a,c,g,l){return!!p.exec(a,c,g,l)};
p.union=function(a,c,g){function l(W,X,Y){var S=V[z-H];if(X){if(++z,S)return"(?<"+S+">"}else if(Y)return"\\"+(+Y+H);return W}
g=g||{};var x=g.conjunction||"or",z=0;if(!k(a,"Array")||!a.length)throw new TypeError("Must provide a nonempty array of patterns to merge");var w=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;g=[];for(var y,K=0;K<a.length;++K)if(y=a[K],p.isRegExp(y)){var H=z;var V=y.xregexp&&y.xregexp.captureNames||[];g.push(E.replace.call(p(y.source).source,w,l))}else g.push(p.escape(y));a=x==="none"?"":"|";return p(g.join(a),c)};
F.exec=function(a){var c=this.lastIndex,g=E.exec.apply(this,arguments),l;if(g){if(!M&&g.length>1&&h(g,"")>-1){var x=t(this,{removeG:!0,isInternalOnly:!0});E.replace.call(String(a).slice(g.index),x,function(){var z=arguments.length,w;for(w=1;w<z-2;++w)arguments[w]===void 0&&(g[w]=void 0)})}if(this.xregexp&&this.xregexp.captureNames)for(l=1;l<g.length;++l)(x=this.xregexp.captureNames[l-1])&&(g[x]=g[l]);
this.global&&!g[0].length&&this.lastIndex>g.index&&(this.lastIndex=g.index)}this.global||(this.lastIndex=c);return g};
F.test=function(a){return!!F.exec.call(this,a)};
F.match=function(a){if(!p.isRegExp(a))a=new RegExp(a);else if(a.global){var c=E.match.apply(this,arguments);a.lastIndex=0;return c}return F.exec.call(a,D(this))};
F.replace=function(a,c){var g=p.isRegExp(a);if(g){if(a.xregexp)var l=a.xregexp.captureNames;var x=a.lastIndex}else a+="";var z=k(c,"Function")?E.replace.call(String(this),a,function(){var w=arguments,y;if(l)for(w[0]=new String(w[0]),y=0;y<l.length;++y)l[y]&&(w[0][l[y]]=w[y+1]);g&&a.global&&(a.lastIndex=w[w.length-2]+w[0].length);return c.apply(void 0,w)}):E.replace.call(this==null?this:String(this),a,function(){var w=arguments;
return E.replace.call(String(c),L,function(y,K,H){if(K){H=+K;if(H<=w.length-3)return w[H]||"";H=l?h(l,K):-1;if(H<0)throw new SyntaxError("Backreference to undefined group "+y);return w[H+1]||""}if(H==="$")return"$";if(H==="&"||+H===0)return w[0];if(H==="`")return w[w.length-1].slice(0,w[w.length-2]);if(H==="'")return w[w.length-1].slice(w[w.length-2]+w[0].length);H=+H;if(!isNaN(H)){if(H>w.length-3)throw new SyntaxError("Backreference to undefined group "+y);return w[H]||""}throw new SyntaxError("Invalid token "+
y);})});
g&&(a.lastIndex=a.global?0:x);return z};
F.split=function(a,c){if(!p.isRegExp(a))return E.split.apply(this,arguments);var g=String(this),l=[],x=a.lastIndex,z=0,w;c=(c===void 0?-1:c)>>>0;p.forEach(g,a,function(y){y.index+y[0].length>z&&(l.push(g.slice(z,y.index)),y.length>1&&y.index<g.length&&Array.prototype.push.apply(l,y.slice(1)),w=y[0].length,z=y.index+w)});
z===g.length?(!E.test.call(a,"")||w)&&l.push(""):l.push(g.slice(z));a.lastIndex=x;return l.length>c?l.slice(0,c):l};
p.addToken(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/,function(a,c){if(a[1]==="B"&&c==="default")return a[0];throw new SyntaxError("Invalid escape "+a[0]);},{scope:"all",
leadChar:"\\"});p.addToken(/\\u{([\dA-Fa-f]+)}/,function(a,c,g){c=A(a[1]);if(c>1114111)throw new SyntaxError("Invalid Unicode code point "+a[0]);if(c<=65535)return"\\u"+r(f(c));if(U&&g.indexOf("u")>-1)return a[0];throw new SyntaxError("Cannot use Unicode code point above \\u{FFFF} without flag u");},{scope:"all",
leadChar:"\\"});p.addToken(/\[(\^?)\]/,function(a){return a[1]?"[\\s\\S]":"\\b\\B"},{leadChar:"["});
p.addToken(/\(\?#[^)]*\)/,d,{leadChar:"("});p.addToken(/\s+|#[^\n]*\n?/,d,{flag:"x"});p.addToken(/\./,function(){return"[\\s\\S]"},{flag:"s",
leadChar:"."});p.addToken(/\\k<([\w$]+)>/,function(a){var c=isNaN(a[1])?h(this.captureNames,a[1])+1:+a[1],g=a.index+a[0].length;if(!c||c>this.captureNames.length)throw new SyntaxError("Backreference to undefined group "+a[0]);return"\\"+c+(g===a.input.length||isNaN(a.input.charAt(g))?"":"(?:)")},{leadChar:"\\"});
p.addToken(/\\(\d+)/,function(a,c){if(!(c==="default"&&/^[1-9]/.test(a[1])&&+a[1]<=this.captureNames.length)&&a[1]!=="0")throw new SyntaxError("Cannot use octal escape or backreference to undefined group "+a[0]);return a[0]},{scope:"all",
leadChar:"\\"});p.addToken(/\(\?P?<([\w$]+)>/,function(a){if(!isNaN(a[1]))throw new SyntaxError("Cannot use integer as capture name "+a[0]);if(a[1]==="length"||a[1]==="__proto__")throw new SyntaxError("Cannot use reserved word as capture name "+a[0]);if(h(this.captureNames,a[1])>-1)throw new SyntaxError("Cannot use same name for multiple groups "+a[0]);this.captureNames.push(a[1]);this.hasNamedCapture=!0;return"("},{leadChar:"("});
p.addToken(/\((?!\?)/,function(a,c,g){if(g.indexOf("n")>-1)return"(?:";this.captureNames.push(null);return"("},{optionalFlags:"n",
leadChar:"("});m.exports=p},
{}]},{},[8])(8)})}).call(globalThis);var i8S=window.XRegExp;var G_A=-1,oEN=function(d){addEventListener("pageshow",function(H){H.persisted&&(G_A=H.timeStamp,d(H))},!0)};var aaM=function(d,H,K){var c=q73,p,g;return function(a){if(H.value>=0&&(a||K)){var e;if((g=H.value-((e=p)!=null?e:0))||p===void 0)p=H.value,H.delta=g,a=H.value,H.rating=a>c[1]?"poor":a>c[0]?"needs-improvement":"good",d(H)}}};var lag=function(d){requestAnimationFrame(function(){return requestAnimationFrame(function(){return d()})})};var eD3=function(){var d=performance.getEntriesByType("navigation")[0];if(d&&d.responseStart>0&&d.responseStart<performance.now())return d};var k_N=function(){var d,H;return(H=(d=eD3())==null?void 0:d.activationStart)!=null?H:0};var x$B=function(){var d=d===void 0?-1:d;var H=eD3(),K="navigate";G_A>=0?K="back-forward-cache":H&&(document.prerendering||k_N()>0?K="prerender":document.wasDiscarded?K="restore":H.type&&(K=H.type.replace(/_/g,"-")));return{name:"LCP",value:d,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:K}};var JvF=new WeakMap;var nE3=function(d){var H=H===void 0?{}:H;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var K=new PerformanceObserver(function(c){Promise.resolve().then(function(){d(c.getEntries())})});
K.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},H));return K}}catch(c){}};var CWN=function(d){var H=!1;return function(){H||(d(),H=!0)}};var TS=-1,RDl=function(d){document.visibilityState==="hidden"&&TS>-1&&(TS=d.type==="visibilitychange"?d.timeStamp:0,removeEventListener("visibilitychange",RDl,!0),removeEventListener("prerenderingchange",RDl,!0))},VnU=function(){addEventListener("visibilitychange",RDl,!0);
addEventListener("prerenderingchange",RDl,!0)},U$S=function(){if(TS<0){var d=k_N(),H,K;
TS=(K=document.prerendering?void 0:(H=globalThis.performance.getEntriesByType("visibility-state").filter(function(c){return c.name==="hidden"&&c.startTime>d})[0])==null?void 0:H.startTime)!=null?K:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
VnU();oEN(function(){setTimeout(function(){TS=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;VnU()})})}return{get firstHiddenTime(){return TS}}};var hD0=function(d){document.prerendering?addEventListener("prerenderingchange",function(){return d()},!0):d()};var LBS=function(d){var H=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?d():(d=CWN(d),document.addEventListener("visibilitychange",d,{once:!0}),H(function(){d();document.removeEventListener("visibilitychange",d)}))};var XQ1=function(){};
XQ1.prototype._processEntry=function(d){var H;(H=this._onBeforeProcessingEntry)==null||H.call(this,d)};var q73=[2500,4E3],EbY=function(d){var H=H===void 0?{}:H;hD0(function(){var K=U$S(),c=x$B(),p=sYl(H),g=function(V){H.reportAllChanges||(V=V.slice(-1));V=_.q(V);for(var U=V.next();!U.done;U=V.next())U=U.value,p._processEntry(U),U.startTime<K.firstHiddenTime&&(c.value=Math.max(U.startTime-k_N(),0),c.entries=[U],e())},a=nE3(g);
if(a){var e=aaM(d,c,H.reportAllChanges);for(var k=CWN(function(){g(a.takeRecords());a.disconnect();e(!0)}),C=_.q(["keydown",
"click","visibilitychange"]),R=C.next();!R.done;R=C.next())addEventListener(R.value,function(){return LBS(k)},{capture:!0,
once:!0});oEN(function(V){c=x$B();e=aaM(d,c,H.reportAllChanges);lag(function(){c.value=performance.now()-V.timeStamp;e(!0)})})}})};var Mn7;var m$g;_.S=function(){return m$g!==void 0?m$g:m$g=document.createElement("template")};
document.head.appendChild(_.S().content);var wKl;_.zn({_template:function(){if(wKl!==void 0)return wKl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-toolbar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_toolbar.tp.yt.app.toolbar.css.js--\x3e<slot class="style-scope tp-yt-app-toolbar"></slot>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
var H=d.content,K=H.insertBefore;Mn7===void 0&&(Mn7=document.createElement("template"));var c=Mn7;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return wKl=d},
is:"tp-yt-app-toolbar"});var PW0;var ucC;_.QX=function(){};
_.QX=_.zn({_template:function(){if(ucC!==void 0)return ucC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-a11y-announcer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_a11y_announcer.tp.yt.iron.a11y.announcer.css.js--\x3e<div aria-live$="[[mode]]" class="style-scope tp-yt-iron-a11y-announcer">[[_text]]</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;PW0===void 0&&(PW0=document.createElement("template"));var c=PW0;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return ucC=d},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.QX.instance||(_.QX.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(d){this._text===d&&(d+="\u00a0");this._text="";this.async(function(){this._text=d},this.timeout)},
_onIronAnnounce:function(d){d.detail&&d.detail.text&&this.announce(d.detail.text)}});
_.QX.instance=null;_.QX.requestAvailability=function(){_.QX.instance||(_.QX.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.QX.instance):document.addEventListener("load",function(){document.body.appendChild(_.QX.instance)})};var Iad;var rEg;/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
_.zn({_template:function(){if(rEg!==void 0)return rEg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-autogrow-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_autogrow_textarea.tp.yt.iron.autogrow.textarea.css.js--\x3e\n\n<div id="mirror" class="mirror-text style-scope tp-yt-iron-autogrow-textarea" aria-hidden="true" style-target="textarea">\u00a0</div>\n\n\n<div class="textarea-container fit style-scope tp-yt-iron-autogrow-textarea">\n  <textarea id="textarea" name$="[[name]]" aria-label$="[[label]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" autocapitalize$="[[autocapitalize]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" style-target="textarea" class="style-scope tp-yt-iron-autogrow-textarea"></textarea>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;Iad===void 0&&(Iad=document.createElement("template"));var c=Iad;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return rEg=d},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.Ih,_.LN],properties:{value:{observer:"_valueChanged",type:String,notify:!0},bindValue:{observer:"_bindValueChanged",type:String,notify:!0},rows:{type:Number,value:1,observer:"_updateCached"},maxRows:{type:Number,value:0,observer:"_updateCached"},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,value:!1},autocapitalize:{type:String,value:"none"},inputmode:{type:String},placeholder:{type:String},readonly:{type:String},required:{type:Boolean},
minlength:{type:Number},maxlength:{type:Number},label:{type:String}},listeners:{input:"_onInput"},get textarea(){return this.$.textarea},get selectionStart(){return this.$.textarea.selectionStart},get selectionEnd(){return this.$.textarea.selectionEnd},set selectionStart(d){this.$.textarea.selectionStart=d},set selectionEnd(d){this.$.textarea.selectionEnd=d},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var d=this.$.textarea.validity.valid;d&&(this.required&&this.value===""?d=!1:this.hasValidator()&&(d=_.Ih.validate.call(this,this.value)));this.invalid=!d;this.fire("iron-input-validate");return d},
_bindValueChanged:function(d){this.value=d},
_valueChanged:function(d){var H=this.textarea;H&&(H.value!==d&&(H.value=d||d===0?d:""),this.bindValue=d,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(d){var H=_.Iu(d).path;this.value=H?H[0].value:d.target.value},
_constrain:function(d){var H;d=d||[""];for(H=this.maxRows>0&&d.length>this.maxRows?d.slice(0,this.maxRows):d.slice(0);this.rows>0&&H.length<this.rows;)H.push("");return H.join("\n")+"\u00a0"},
_valueForMirror:function(){var d=this.textarea;if(d)return this.tokens=d&&d.value?d.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var WBl;var BE3;_.zn({_template:function(){if(BE3!==void 0)return BE3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-collapse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_collapse.tp.yt.iron.collapse.css.js--\x3e<slot class="style-scope tp-yt-iron-collapse"></slot>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
var H=d.content,K=H.insertBefore;WBl===void 0&&(WBl=document.createElement("template"));var c=WBl;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return BE3=d},
is:"tp-yt-iron-collapse",behaviors:[_.WZ],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group",
"aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},
show:function(){this.opened=!0},
hide:function(){this.opened=!1},
updateSize:function(d,H){d=d==="auto"?"":d;H=H&&!this.noAnimation&&this.isAttached&&this._desiredSize!==d;this._desiredSize=d;this._updateTransition(!1);H&&(H=this._calcSize(),d===""&&(this.style[this._dimensionMax]="",d=this._calcSize()),this.style[this._dimensionMax]=H,this.scrollTop=this.scrollTop,this._updateTransition(!0),H=d!==H);this.style[this._dimensionMax]=d;H||this._transitionEnd()},
enableTransition:function(d){_.Ms._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!d},
_updateTransition:function(d){this.style.transitionDuration=d&&!this.noAnimation?"":"0s"},
_horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;this.style[this._dimensionMax==="maxWidth"?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)},
_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0);this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()},
_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)},
_onTransitionEnd:function(d){_.Iu(d).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var zDB;var XKd;var JE3=void 0,sI6={properties:{sizingTarget:{type:Object,value:function(){var d;return(d=this.hostElement)!=null?d:this}},
fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object},avoidOuterEdge:{type:Boolean,value:!1}},get _defaultPositionTarget(){var d,H=_.Iu((d=this.hostElement)!=null?d:
this).parentNode;H&&H.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(H=H.host);return H},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var d;this._memoizedIsRTL=window.getComputedStyle((d=this.hostElement)!=null?d:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var d;window.getComputedStyle((d=this.hostElement)!=null?d:this).display==="none"?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit())}},
detached:function(){},
fit:function(){this.position();this.constrain();this.center()},
_discoverInfo:function(){if(!this._fitInfo){var d,H=window.getComputedStyle((d=this.hostElement)!=null?d:this);d=window.getComputedStyle(this.sizingTarget);var K,c,p;this._fitInfo={inlineStyle:{top:((K=this.hostElement)!=null?K:this).style.top||"",left:((c=this.hostElement)!=null?c:this).style.left||"",position:((p=this.hostElement)!=null?p:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:H.top!=="auto"?"top":H.bottom!=="auto"?"bottom":null,horizontally:H.left!=="auto"?"left":H.right!=="auto"?"right":null},sizedBy:{height:d.maxHeight!=="none",width:d.maxWidth!=="none",minWidth:parseInt(d.minWidth,10)||0,minHeight:parseInt(d.minHeight,10)||0},margin:{top:parseInt(H.marginTop,10)||0,right:parseInt(H.marginRight,10)||0,bottom:parseInt(H.marginBottom,10)||0,left:parseInt(H.marginLeft,10)||0}}}},
resetFit:function(){var d=this._fitInfo||{},H;for(H in d.sizerInlineStyle)this.sizingTarget.style[H]=d.sizerInlineStyle[H];for(H in d.inlineStyle){var K=void 0;((K=this.hostElement)!=null?K:this).style[H]=d.inlineStyle[H]}this._fitInfo=null},
refit:function(){var d=this.sizingTarget.scrollLeft,H=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=d;this.sizingTarget.scrollTop=H},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var d;((d=this.hostElement)!=null?d:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var H;((H=this.hostElement)!=null?H:this).style.left="0px";var K;((K=this.hostElement)!=null?K:this).style.top="0px";var c,p=((c=this.hostElement)!=null?c:this).getBoundingClientRect();H=this.__getNormalizedRect(this.positionTarget);c=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(c={left:c.left+24,right:c.right-24,top:c.top+24,bottom:c.bottom-24});if(this.expandSizingTargetForScrollbars){var g=this.sizingTarget.offsetWidth;var a=this.sizingTarget.offsetHeight;var e=this.sizingTarget.clientWidth;var k=this.sizingTarget.clientHeight}d=this._fitInfo.margin;H=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:p.width+d.left+d.right,height:p.height+d.top+d.bottom},p,H,c);var C=H.left+d.left,R=H.top+d.top;K=Math.min(c.right-d.right,C+p.width);var V=Math.min(c.bottom-
d.bottom,R+p.height);C=Math.max(c.left+d.left,Math.min(C,K-this._fitInfo.sizedBy.minWidth));R=Math.max(c.top+d.top,Math.min(R,V-this._fitInfo.sizedBy.minHeight));K=Math.max(K-C,this._fitInfo.sizedBy.minWidth);V=Math.max(V-R,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=K+"px";this.sizingTarget.style.maxHeight=V+"px";C-=p.left;p=R-p.top;var U;((U=this.hostElement)!=null?U:this).style.left=C+"px";var L;((L=this.hostElement)!=null?L:this).style.top=p+"px";if(this.expandSizingTargetForScrollbars){U=
this.sizingTarget.offsetHeight;a=U-this.sizingTarget.clientHeight-(a-k);if(a>0){this.sizingTarget.style.maxHeight=Math.min(c.height-d.top-d.bottom,V+a)+"px";a=this.sizingTarget.offsetHeight;k=a-U;var w;H.verticalAlign==="top"?w=p:H.verticalAlign==="middle"?w=p-k/2:H.verticalAlign==="bottom"&&(w=p-k);w=Math.max(c.top+d.top,Math.min(w,c.bottom-d.bottom-a));var W;((W=this.hostElement)!=null?W:this).style.top=w+"px"}w=this.sizingTarget.offsetWidth;g=w-this.sizingTarget.clientWidth-(g-e);if(g>0){JE3!==
void 0?e=JE3:(e=document.createElement("div"),Object.assign(e.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),W=document.createElement("div"),W.style.width="200px",W.style.height="200px",e.appendChild(W),document.body.appendChild(e),JE3=Math.abs(e.offsetWidth-100)>1?e.offsetWidth-e.clientWidth:0,document.body.removeChild(e),e=JE3);this.sizingTarget.style.maxWidth=Math.min(c.width-d.left-d.right,K+g-e)+"px";g=this.sizingTarget.offsetWidth+e;e=g-w;var J;
H.horizontalAlign==="left"?J=C:H.horizontalAlign==="center"?J=C-e/2:H.horizontalAlign==="right"&&(J=C-e);J=Math.max(c.left+d.left,Math.min(J,c.right-d.right-g));var F;((F=this.hostElement)!=null?F:this).style.left=J+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var d=this._fitInfo;if(!d.positionedBy.vertically){var H;((H=this.hostElement)!=null?H:this).style.position="fixed";var K;((K=this.hostElement)!=null?K:this).style.top="0px"}if(!d.positionedBy.horizontally){var c;((c=this.hostElement)!=null?c:this).style.position="fixed";var p;((p=this.hostElement)!=null?p:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var g;H=((g=this.hostElement)!=null?g:this).getBoundingClientRect();
d.sizedBy.height||this.__sizeDimension(H,d.positionedBy.vertically,"top","bottom","Height");d.sizedBy.width||this.__sizeDimension(H,d.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(d,H,K,c,p){this.__sizeDimension(d,H,K,c,p)},
__sizeDimension:function(d,H,K,c,p){var g=this._fitInfo,a=this.__getNormalizedRect(this.fitInto);a=p==="Width"?a.width:a.height;d=(H=H===c)?a-d[c]:d[K];K=g.margin[H?K:c];c="offset"+p;var e;g=((e=this.hostElement)!=null?e:this)[c]-this.sizingTarget[c];this.sizingTarget.style["max"+p]=a-K-d-g+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var d=this._fitInfo.positionedBy;if(!d.vertically||!d.horizontally){var H;((H=this.hostElement)!=null?H:this).style.position="fixed";if(!d.vertically){var K;((K=this.hostElement)!=null?K:this).style.top="0px"}if(!d.horizontally){var c;((c=this.hostElement)!=null?c:this).style.left="0px"}var p;H=((p=this.hostElement)!=null?p:this).getBoundingClientRect();p=this.__getNormalizedRect(this.fitInto);if(!d.vertically){K=p.top-H.top+(p.height-
H.height)/2;var g;((g=this.hostElement)!=null?g:this).style.top=K+"px"}if(!d.horizontally){d=p.left-H.left+(p.width-H.width)/2;var a;((a=this.hostElement)!=null?a:this).style.left=d+"px"}}}},
__getNormalizedRect:function(d){return d===document.documentElement||d===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:d.getBoundingClientRect()},
__getOffscreenArea:function(d,H,K){return Math.abs(Math.min(0,d.top)+Math.min(0,K.bottom-(d.top+H.height)))*H.width+Math.abs(Math.min(0,d.left)+Math.min(0,K.right-(d.left+H.width)))*H.height},
__getPosition:function(d,H,K,c,p,g){var a=[{verticalAlign:"top",horizontalAlign:"left",top:p.top+this.verticalOffset,left:p.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:p.top+this.verticalOffset,left:p.right-K.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:p.bottom-K.height-this.verticalOffset,left:p.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:p.bottom-K.height-this.verticalOffset,left:p.right-K.width-
this.horizontalOffset}];if(this.noOverlap){for(var e=0,k=a.length;e<k;e++){var C={},R;for(R in a[e])C[R]=a[e][R];a.push(C)}a[0].top=a[1].top+=p.height;a[2].top=a[3].top-=p.height;a[4].left=a[6].left+=p.width;a[5].left=a[7].left-=p.width}H=H==="auto"?null:H;d=d==="auto"?null:d;d&&d!=="center"||(a.push({verticalAlign:"top",horizontalAlign:"center",top:p.top+this.verticalOffset+(this.noOverlap?p.height:0),left:p.left-c.width/2+p.width/2+this.horizontalOffset}),a.push({verticalAlign:"bottom",horizontalAlign:"center",
top:p.bottom-K.height-this.verticalOffset-(this.noOverlap?p.height:0),left:p.left-c.width/2+p.width/2+this.horizontalOffset}));H&&H!=="middle"||(a.push({verticalAlign:"middle",horizontalAlign:"left",top:p.top-c.height/2+p.height/2+this.verticalOffset,left:p.left+this.horizontalOffset+(this.noOverlap?p.width:0)}),a.push({verticalAlign:"middle",horizontalAlign:"right",top:p.top-c.height/2+p.height/2+this.verticalOffset,left:p.right-K.width-this.horizontalOffset-(this.noOverlap?p.width:0)}));H==="middle"&&
d==="center"&&a.push({verticalAlign:"middle",horizontalAlign:"center",top:p.top-c.height/2+p.height/2+this.verticalOffset,left:p.left-c.width/2+p.width/2+this.horizontalOffset});for(e=0;e<a.length;e++){c=a[e];p=c.verticalAlign===H;k=c.horizontalAlign===d;if(!this.dynamicAlign&&!this.noOverlap&&p&&k){var V=c;break}C=(!H||p)&&(!d||k);if(this.dynamicAlign||C){c.offscreenArea=this.__getOffscreenArea(c,K,g);if(c.offscreenArea===0&&C){V=c;break}c.alignsOk=p+k;V=V||c;p=c.offscreenArea-V.offscreenArea;if(p<
0||p===0&&c.alignsOk>V.alignsOk)V=c}}return V}};/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var tQ,FBS,Z80;tQ=Element.prototype;FBS=tQ.matches||tQ.matchesSelector||tQ.mozMatchesSelector||tQ.msMatchesSelector||tQ.oMatchesSelector||tQ.webkitMatchesSelector;Z80=function(){};
_.QIg=function(d){var H=TEd,K=[];return H._collectTabbableNodes(d,K)?H._sortByTabIndex(K):K};
_.G=Z80.prototype;_.G._normalizedTabIndex=function(d){return(FBS.call(d,"input, select, textarea, button, object")?FBS.call(d,":not([disabled])"):FBS.call(d,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(d=d.getAttribute("tabindex")||0,Number(d)):-1};
_.G._collectTabbableNodes=function(d,H){if(d.nodeType!==Node.ELEMENT_NODE||!this._isVisible(d))return!1;var K=this._normalizedTabIndex(d),c=K>0;K>=0&&H.push(d);if(d.localName==="content"||d.localName==="slot")K=_.Iu(d).getDistributedNodes();else{var p;K=((p=_.Iu(d).shadowRoot)!=null?p:_.Iu(d.root||d)).children}for(d=0;d<K.length;d++)c=this._collectTabbableNodes(K[d],H)||c;return c};
_.G._isVisible=function(d){var H=d.style;return H.visibility!=="hidden"&&H.display!=="none"?(H=window.getComputedStyle(d),H.visibility!=="hidden"&&H.display!=="none"):!1};
_.G._sortByTabIndex=function(d){var H=d.length;if(H<2)return d;var K=Math.ceil(H/2);H=this._sortByTabIndex(d.slice(0,K));d=this._sortByTabIndex(d.slice(K));return this._mergeSortByTabIndex(H,d)};
_.G._mergeSortByTabIndex=function(d,H){for(var K=[];d.length>0&&H.length>0;)this._hasLowerTabOrder(d[0],H[0])?K.push(H.shift()):K.push(d.shift());return K.concat(d,H)};
_.G._hasLowerTabOrder=function(d,H){d=Math.max(d.tabIndex,0);H=Math.max(H.tabIndex,0);return d===0||H===0?H>d:d>H};
var TEd=new Z80;var tnA;var Y7U;_.zn({_template:function(){if(Y7U!==void 0)return Y7U;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-overlay-backdrop--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_overlay_backdrop.tp.yt.iron.overlay.backdrop.css.js--\x3e<slot class="style-scope tp-yt-iron-overlay-backdrop"></slot>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;tnA===void 0&&(tnA=document.createElement("template"));var c=tnA;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return Y7U=d},
is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},
attached:function(){this.opened&&this._openedChanged(this.opened)},
prepare:function(){this.opened&&!this.parentNode&&_.Iu(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Iu(this.parentNode).removeChild(this)},
_onTransitionend:function(d){d&&d.target===this&&this.complete()},
_openedChanged:function(d){d?this.prepare():(d=window.getComputedStyle(this),d.transitionDuration!=="0s"&&d.opacity!=0||this.complete());this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null;this.toggleClass("opened",this.opened)}.bind(this)))}});var YZ=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;s_(document.documentElement,"tap",function(){});
document.addEventListener("tap",this._onCaptureClick.bind(this),!0);document.addEventListener("focus",this._onCaptureFocus.bind(this),!0);document.addEventListener("keydown",this._onCaptureKeyDown.bind(this),!0)};
YZ.prototype._bringOverlayAtIndexToFront=function(d){var H=this._overlays[d];if(H){var K=this._overlays.length-1,c=this._overlays[K];c&&this._shouldBeBehindOverlay(H,c)&&K--;if(!(d>=K)){c=Math.max(this._getZ(_.O86(this)),this._minimumZ);for(this._getZ(H)<=c&&this._applyOverlayZ(H,c);d<K;)this._overlays[d]=this._overlays[d+1],d++;this._overlays[K]=H}}};
YZ.prototype.addOverlay=function(d){var H=this._overlays.indexOf(d);if(H>=0)this._bringOverlayAtIndexToFront(H);else{H=this._overlays.length;var K=this._overlays[H-1],c=Math.max(this._getZ(K),this._minimumZ),p=this._getZ(d);K&&this._shouldBeBehindOverlay(d,K)&&(this._applyOverlayZ(K,c),H--,c=Math.max(this._getZ(this._overlays[H-1]),this._minimumZ));p<=c&&this._applyOverlayZ(d,c);this._overlays.splice(H,0,d)}this.trackBackdrop()};
YZ.prototype.removeOverlay=function(d){d=this._overlays.indexOf(d);d!==-1&&(this._overlays.splice(d,1),this.trackBackdrop())};
_.O86=function(d){return d._overlays[d._overlays.length-1]};
_.G=YZ.prototype;_.G.trackBackdrop=function(){var d=this._overlayWithBackdrop();if(d||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(d)-1,this.backdropElement.opened=!!d,this.backdropElement.prepare()};
_.G._overlayWithBackdrop=function(){for(var d=this._overlays.length-1;d>=0;d--)if(this._overlays[d].withBackdrop)return this._overlays[d]};
_.G._getZ=function(d){var H=this._minimumZ;if(d){var K,c,p=Number(((K=d.hostElement)!=null?K:d).style.zIndex||window.getComputedStyle((c=d.hostElement)!=null?c:d).zIndex);p===p&&(H=p)}return H};
_.G._setZ=function(d,H){var K;((K=d.hostElement)!=null?K:d).style.zIndex=H};
_.G._applyOverlayZ=function(d,H){this._setZ(d,H+2)};
_.G._overlayInPath=function(d){d=d||[];for(var H=0;H<d.length;H++){var K=void 0;if(((K=d[H].polymerController)!=null?K:d[H])._manager===this)return d[H]}};
_.G._onCaptureClick=function(d){var H=this._overlays.length-1;if(H!==-1)for(var K=_.Iu(d).path,c,p;(c=this._overlays[H])&&this._overlayInPath(K)!==((p=c.hostElement)!=null?p:c);)if(c._onCaptureClick(d),c.allowClickThrough)H--;else break};
_.G._onCaptureFocus=function(d){var H=_.O86(this);H&&H._onCaptureFocus(d)};
_.G._onCaptureKeyDown=function(d){var H=_.O86(this);H&&(_.hQ.keyboardEventMatchesKeys(d,"esc")?H._onCaptureEsc(d):_.hQ.keyboardEventMatchesKeys(d,"tab")&&H._onCaptureTab(d))};
_.G._shouldBeBehindOverlay=function(d,H){return!d.alwaysOnTop&&H.alwaysOnTop&&!H.contains(d)};
_.H3.Object.defineProperties(YZ.prototype,{backdropElement:{configurable:!0,enumerable:!0,get:function(){this._backdropElement||(this._backdropElement=document.createElement("tp-yt-iron-overlay-backdrop"));return this._backdropElement}},
deepActiveElement:{configurable:!0,enumerable:!0,get:function(){var d=document.activeElement;d&&d instanceof Element!==!1||(d=document.body);for(;d.root&&_.Iu(d.root).activeElement;)d=_.Iu(d.root).activeElement;return d}}});
_.Oh=new YZ;var FCf=0,ZGF=0,TME=null,QYX=[],rr=["wheel","mousewheel","DOMMouseScroll"],tJi;_.h("web_no_lock_on_touchstart_killswitch")&&(rr.push("touchstart"),rr.push("touchmove"));_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[];_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=null;
_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=null;_.S0={properties:{opened:{observer:"_openedChanged",type:Boolean,value:!1,notify:!0},canceled:{observer:"_canceledChanged",readOnly:!0,type:Boolean,value:!1},withBackdrop:{observer:"_withBackdropChanged",type:Boolean},noAutoFocus:{type:Boolean,value:!1},noCancelOnEscKey:{type:Boolean,value:!1},noCancelOnOutsideClick:{type:Boolean,value:!1},closingReason:{type:Object},restoreFocusOnClose:{type:Boolean,value:!1},allowClickThrough:{type:Boolean},alwaysOnTop:{type:Boolean},scrollAction:{type:String},
_manager:{type:Object,value:_.Oh},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var d;return this._focusedChild||_.Iu((d=this.hostElement)!=null?d:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var d;return _.QIg((d=this.hostElement)!=null?d:this)},ready:function(){this.__shouldRemoveTabIndex=
this.__isAnimating=!1;this.__firstFocusableNode=this.__lastFocusableNode=null;this.__rafs={};this.__scrollTop=this.__scrollLeft=this.__restoreFocusNode=null;this.__onCaptureScroll=this.__onCaptureScroll.bind(this);this.__rootNodes=null;this._ensureSetup()},
attached:function(){this.opened&&this._openedChanged(this.opened);var d;this._observer=_.Iu((d=this.hostElement)!=null?d:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var d;_.Iu((d=this.hostElement)!=null?d:this).unobserveNodes(this._observer)}this._observer=null;for(var H in this.__rafs)this.__rafs[H]!==null&&cancelAnimationFrame(this.__rafs[H]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(d){this.fire("iron-overlay-canceled",d,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},
invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},
_ensureSetup:function(){if(!this._overlaySetup){this._overlaySetup=!0;var d;((d=this.hostElement)!=null?d:this).style.outline="none";var H;((H=this.hostElement)!=null?H:this).style.display="none"}},
_openedChanged:function(d){if(d){var H;((H=this.hostElement)!=null?H:this).removeAttribute("aria-hidden")}else{var K;((K=this.hostElement)!=null?K:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var d;if(this.withBackdrop&&!((d=this.hostElement)!=null?d:this).hasAttribute("tabindex")){var H;((H=this.hostElement)!=null?H:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var K;((K=this.hostElement)!=null?K:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var d;((d=this.hostElement)!=null?d:this).style.display="none";var H;((H=this.hostElement)!=null?H:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var d,H;((d=this.hostElement)!=null?d:this).style.transition=((H=this.hostElement)!=null?H:this).style.webkitTransition="none";var K,c;((K=this.hostElement)!=null?K:this).style.transform=((c=this.hostElement)!=null?c:this).style.webkitTransform="none";var p;((p=this.hostElement)!=null?p:this).style.display=""},
_finishPositioning:function(){var d;((d=this.hostElement)!=null?d:this).style.display="none";this.scrollTop=this.scrollTop;var H,K;((H=this.hostElement)!=null?H:this).style.transition=((K=this.hostElement)!=null?K:this).style.webkitTransition="";var c,p;((c=this.hostElement)!=null?c:this).style.transform=((p=this.hostElement)!=null?p:this).style.webkitTransform="";var g;((g=this.hostElement)!=null?g:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var d=this._manager.deepActiveElement,H;if(!(H=d===document.body))a:{for(;d;d=d.assignedSlot||d.parentNode||d.host)if(d===this){H=!0;break a}H=!1}H&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(d){this.noCancelOnOutsideClick||this.cancel(d)},
_onCaptureFocus:function(d){if(this.withBackdrop){var H=_.Iu(d).path;H.indexOf(this)===-1?(d.stopPropagation(),this._applyFocus()):this._focusedChild=H[0]}},
_onCaptureEsc:function(d){this.noCancelOnEscKey||this.cancel(d)},
_onCaptureTab:function(d){if(this.withBackdrop){this.__ensureFirstLastFocusables();var H=d.shiftKey,K=H?this.__firstFocusableNode:this.__lastFocusableNode;H=H?this.__lastFocusableNode:this.__firstFocusableNode;if(K===H)K=!0;else{var c=this._manager.deepActiveElement;K=c===K||c===this}K&&(d.preventDefault(),this._focusedChild=H,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var d=this._focusableNodes;this.__firstFocusableNode=d[0];this.__lastFocusableNode=d[d.length-1]},
__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},
__deraf:function(d,H){var K=this.__rafs;K[d]!==null&&cancelAnimationFrame(K[d]);K[d]=requestAnimationFrame(function(){K[d]=null;H.call(this)}.bind(this))},
__updateScrollObservers:function(d,H,K){d&&H&&this.__isValidScrollAction(K)?(K==="lock"&&(this.__saveScrollPosition(),_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this)>=0||(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(),
_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.push(this),tJi=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=
[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[])),this.__addScrollListeners()):(d=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),d!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(d,1),tJi=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-
1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[],_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager()),
this.__removeScrollListeners())},
__addScrollListeners:function(){if(!this.__rootNodes){this.__rootNodes=[];if(Yl)for(var d=this;d;)d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&this.__rootNodes.push(d),d=d.host||d.assignedSlot||d.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(H){H.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(d){d.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(d){return d==="lock"||d==="refit"||d==="cancel"},
__onCaptureScroll:function(d){if(!(this.__isAnimating||_.Iu(d).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(d)}},
__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},
__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}};
_.Eh=[sI6,_.WZ,_.S0];_.zn({_template:function(){if(XKd!==void 0)return XKd;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_dropdown.tp.yt.iron.dropdown.css.js--\x3e<div id="contentWrapper" class="style-scope tp-yt-iron-dropdown">\n  <slot id="content" name="dropdown-content" class="style-scope tp-yt-iron-dropdown"></slot>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;zDB===void 0&&(zDB=document.createElement("template"));var c=zDB;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return XKd=d},
is:"tp-yt-iron-dropdown",behaviors:[_.LN,_.hQ,_.Eh,MA6],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],
get containedElement(){for(var d=_.Iu(this.$.content).getDistributedNodes(),H=0,K=d.length;H<K;H++)if(d[H].nodeType===Node.ELEMENT_NODE)return d[H]},ready:function(){this.scrollAction||(this.scrollAction=this.allowOutsideScroll?"refit":"lock");this._readied=!0},
attached:function(){this.sizingTarget&&this.sizingTarget!==this||(this.sizingTarget=this.containedElement||this)},
detached:function(){this.cancelAnimation()},
_openedChanged:function(){this.opened&&this.disabled?this.cancel():(this.cancelAnimation(),this._updateAnimationConfig(),_.S0._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.S0._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.S0._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var d=this.containedElement,H=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),K=0;K<H.length;K++)H[K].node=d;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(d){this._readied&&(d?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var d=this.focusTarget||this.containedElement;d&&this.opened&&!this.noAutoFocus?d.focus():_.S0._applyFocus.apply(this,arguments)}});var S7l;var EEB;/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var yEd=new _.PZ({type:"iconset"});
_.zn({_template:function(){if(EEB!==void 0)return EEB;var d=document.createElement("template");_.P(d,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_icon.tp.yt.iron.icon.css.js--\x3e\n");d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;S7l===void 0&&(S7l=document.createElement("template"));
var c=S7l;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return EEB=d},
is:"tp-yt-iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String}},observers:["_updateIcon(isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(d){d=(d||"").split(":");this._iconName=d.pop();this._iconsetName=d.pop()||this._DEFAULT_ICONSET;this._updateIcon()},
_srcChanged:function(){this._updateIcon()},
_usesIconset:function(){return this.icon||!this.src},
_updateIcon:function(){if(this._usesIconset())if(this._img&&this._img.parentNode&&_.Iu(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=yEd.byKey(this._iconsetName)){var d=this._iconset.applyIcon(this,this._iconName,this.theme);d&&d.setAttribute("aria-hidden","true");this.unlisten(window,"iron-iconset-added","_updateIcon")}else this.listen(window,"iron-iconset-added","_updateIcon")}else this._iconset&&this._iconset.removeIcon(this),
this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,_.Iu(this.root).appendChild(this._img)}});var b83;var NEA;_.zn({_template:function(){if(NEA!==void 0)return NEA;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_input.tp.yt.iron.input.css.js--\x3e<slot id="content" class="style-scope tp-yt-iron-input"></slot>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
var H=d.content,K=H.insertBefore;b83===void 0&&(b83=document.createElement("template"));var c=b83;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return NEA=d},
is:"tp-yt-iron-input",behaviors:[_.Ih],properties:{bindValue:{type:String,value:""},value:{type:String,computed:"_computeValue(bindValue)"},allowedPattern:{type:String},autoValidate:{type:Boolean,value:!1},_inputElement:Object},observers:["_bindValueChanged(bindValue, _inputElement)"],listeners:{input:"_onInput",keypress:"_onKeypress"},created:function(){_.QX.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Iu(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Iu(this).unobserveNodes(this._observer),this._observer=null)},
get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value);this.fire("iron-input-ready")},
get _patternRegExp(){if(this.allowedPattern)var d=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":d=/[0-9.,e-]/}return d},_bindValueChanged:function(d,H){H&&(d===void 0?H.value=null:d!==H.value&&(this.inputElement.value=d),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:d}))},
_onInput:function(){!this.allowedPattern||this._patternAlreadyChecked||this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput);this.bindValue=this._previousValidInput=this.inputElement.value;this._patternAlreadyChecked=!1},
_isPrintable:function(d){var H=d.keyCode==19||d.keyCode==20||d.keyCode==45||d.keyCode==46||d.keyCode==144||d.keyCode==145||d.keyCode>32&&d.keyCode<41||d.keyCode>111&&d.keyCode<124;return!(d.keyCode==8||d.keyCode==9||d.keyCode==13||d.keyCode==27)&&!(d.charCode==0&&H)},
_onKeypress:function(d){if(this.allowedPattern||this.inputElement.type==="number"){var H=this._patternRegExp;if(H&&!(d.metaKey||d.ctrlKey||d.altKey)){this._patternAlreadyChecked=!0;var K=String.fromCharCode(d.charCode);this._isPrintable(d)&&!H.test(K)&&(d.preventDefault(),this._announceInvalidCharacter("Invalid character "+K+" not entered."))}}},
_checkPatternValidity:function(){var d=this._patternRegExp;if(!d)return!0;for(var H=0;H<this.inputElement.value.length;H++)if(!d.test(this.inputElement.value[H]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var d=this.inputElement.checkValidity();d&&(this.required&&this.bindValue===""?d=!1:this.hasValidator()&&(d=_.Ih.validate.call(this,this.bindValue)));this.invalid=!d;this.fire("iron-input-validate");return d},
_announceInvalidCharacter:function(d){this.fire("iron-announce",{text:d})},
_computeValue:function(d){return d}});var D$A;var faN;var AEU=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),jIl=AEU&&AEU[1]>=8;
_.zn({_template:function(){if(faN!==void 0)return faN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;D$A===void 0&&(D$A=document.createElement("template"));var c=D$A;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return faN=d},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[asF,_.WZ,_.LRd,a8d],_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_focusedItem:null,_focusedVirtualIndex:-1,_focusedPhysicalIndex:-1,_offscreenFocusedItem:null,
_focusBackfillItem:null,_itemsPerRow:1,_itemWidth:0,_rowHeight:0,_templateCost:0,_parentModel:!0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return(this.grid?this._physicalRows*this._rowHeight:this._physicalSize)-this._viewportHeight},get _itemsParent(){return _.Iu(_.Iu(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var d=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,d-this._physicalCount)},set _virtualStart(d){d=this._clamp(d,0,this._maxVirtualStart);this.grid&&(d-=d%this._itemsPerRow);this._virtualStartVal=d},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(d){d%=this._physicalCount;d<0&&(d=this._physicalCount+d);this.grid&&(d-=d%this._itemsPerRow);this._physicalStartVal=d},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(d){this._physicalCountVal=d},get _physicalCount(){return this._physicalCountVal||0},get _optPhysicalSize(){return this._viewportHeight===0?Infinity:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){var d=this._firstVisibleIndexVal;if(d==null){var H=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
d=this._iterateItems(function(K,c){H+=this._getPhysicalSizeIncrement(K);if(H>this._scrollPosition)return this.grid?c-c%this._itemsPerRow:c;if(this.grid&&this._virtualCount-1===c)return c-c%this._itemsPerRow})||0}return d},
get lastVisibleIndex(){var d=this._lastVisibleIndexVal;if(d==null){if(this.grid)d=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var H=this._physicalTop+this._scrollOffset;this._iterateItems(function(K,c){H<this._scrollBottom&&(d=c);H+=this._getPhysicalSizeIncrement(K)})}this._lastVisibleIndexVal=d}return d},
get _defaultScrollTarget(){return this},get _virtualRowCount(){return Math.ceil(this._virtualCount/this._itemsPerRow)},get _estRowsInView(){return Math.ceil(this._viewportHeight/this._rowHeight)},get _physicalRows(){return Math.ceil(this._physicalCount/this._itemsPerRow)},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},ready:function(){this.addEventListener("focus",this._didFocus.bind(this),!0)},
attached:function(){this._debounce("_render",this._render,_.rg);this.listen(this,"iron-resize","_resizeHandler");this.listen(this,"keydown","_keydownHandler")},
detached:function(){this.unlisten(this,"iron-resize","_resizeHandler");this.unlisten(this,"keydown","_keydownHandler")},
_setOverflow:function(d){this.style.webkitOverflowScrolling=d===this?"touch":"";this.style.overflowY=d===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.rg)},
updateViewportBoundaries:function(){var d=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(d["padding-top"],10);this._isRTL=d.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var d=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),H=d-this._scrollPosition,K=H>=0;this._scrollPosition=d;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(H)>this._physicalSize&&this._physicalSize>0?(H-=this._scrollOffset,K=Math.round(H/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=K,this._physicalStart+=K,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(d=this._getReusables(K),K?(this._physicalTop=d.physicalTop,this._virtualStart+=d.indexes.length,this._physicalStart+=d.indexes.length):(this._virtualStart=this._virtualStart-d.indexes.length,this._physicalStart=this._physicalStart-d.indexes.length),this._update(d.indexes,K?null:d.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),TN))},
_getReusables:function(d){var H=[],K=this._hiddenContentSize*this._ratio,c=this._virtualStart,p=this._virtualEnd,g=this._physicalCount,a=this._physicalTop+this._scrollOffset;var e=this._physicalBottom+this._scrollOffset;var k=this._scrollPosition,C=this._scrollBottom;if(d){var R=this._physicalStart;e=k-a}else R=this._physicalEnd,e-=C;for(;;){var V=this._getPhysicalSizeIncrement(R);e-=V;if(H.length>=g||e<=K)break;if(d){if(p+H.length+1>=this._virtualCount)break;if(a+V>=k-this._scrollOffset)break;H.push(R);
a+=V;R=(R+1)%g}else{if(c-H.length<=0)break;if(a+this._physicalSize-V<=C)break;H.push(R);a-=V;R=R===0?g-1:R-1}}return{indexes:H,physicalTop:a-this._scrollOffset}},
_update:function(d,H){if(!(d&&d.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(d);this._updateMetrics(d);if(H)for(;H.length;)d=H.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(d);this._positionItems();this._updateScrollerSize()}},
_createPool:function(d){this._ensureTemplatized();var H,K=Array(d);for(H=0;H<d;H++){var c=this.stamp(null);K[H]=c.root.querySelector("*");this._itemsParent.appendChild(c.root)}return K},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(d){d=this._clamp(this._physicalCount+d,3,this._virtualCount-this._virtualStart);d=this._convertIndexToCompleteRow(d);if(this.grid){var H=d%this._itemsPerRow;H&&d-H<=this._physicalCount&&(d+=this._itemsPerRow);d-=H}d-=this._physicalCount;H=Math.round(this._physicalCount*.5);if(!(d<0)){if(d>0){H=window.performance.now();[].push.apply(this._physicalItems,this._createPool(d));for(var K=0;K<d;K++)this._physicalSizes.push(0);this._physicalCount+=d;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=d);this._update();this._templateCost=(window.performance.now()-H)/d;H=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||H===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,H)),bo7):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,H),TN))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var d=this._getReusables(!0);this._physicalTop=d.physicalTop;this._virtualStart+=d.indexes.length;this._physicalStart+=d.indexes.length;this._update(d.indexes);this._update();this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},
_ensureTemplatized:function(){if(!this.ctor){(this._userTemplate=this.queryEffectiveChildren("template"))||console.warn("iron-list requires a template to be provided in light-dom");var d={__key__:!0};d[this.as]=!0;d[this.indexAs]=!0;d[this.selectedAs]=!0;d.tabIndex=!0;this._instanceProps=d;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(d,H){typeof H!=="undefined"&&(this.notifyResize(),_.eL(),d&&this._updateGridMetrics())},
_itemsChanged:function(d){if(d.path==="items")this._physicalTop=this._virtualStart=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._lastVisibleIndexVal=this._firstVisibleIndexVal=null,this._physicalCount=this._physicalCount||0,this._physicalItems=this._physicalItems||[],this._physicalSizes=this._physicalSizes||[],this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._removeFocusedItem(),this._debounce("_render",this._render,
_.rg);else if(d.path==="items.splices"){this._adjustVirtualIndex(d.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(d.value.indexSplices.some(function(K){return K.addedCount>0||K.removed.length>0})){var H=this._getActiveElement();
this.contains(H)&&H.blur()}d=d.value.indexSplices.some(function(K){return K.index+K.addedCount>=this._virtualStart&&K.index<=this._virtualEnd},this);
this._isClientFull()&&!d||this._debounce("_render",this._render,_.rg)}else d.path!=="items.length"&&this._forwardItemPath(d.path,d.value)},
_forwardItemPath:function(d,H){d=d.slice(6);var K=d.indexOf(".");K===-1&&(K=d.length);var c,p=this.modelForElement(this._offscreenFocusedItem),g=parseInt(d.substring(0,K),10);if(c=this._isIndexRendered(g)){var a=this._getPhysicalIndex(g);var e=this.modelForElement(this._physicalItems[a])}else p&&(e=p);e&&e[this.indexAs]===g&&(d=d.substring(K+1),d=this.as+(d?"."+d:""),e._setPendingPropertyOrPath(d,H,!1,!0),e._flushProperties&&e._flushProperties(),c&&(this._updateMetrics([a]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(d){d.forEach(function(H){H.removed.forEach(this._removeItem,this);H.index<this._virtualStart&&(H=Math.max(H.addedCount-H.removed.length,H.index-this._virtualStart),this._virtualStart+=H,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=H))},this)},
_removeItem:function(d){this.$.selector.deselect(d);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===d&&this._removeFocusedItem()},
_iterateItems:function(d,H){var K,c;if(arguments.length===2&&H)for(c=0;c<H.length;c++){var p=H[c];var g=this._computeVidx(p);if((K=d.call(this,p,g))!=null)return K}else{p=this._physicalStart;for(g=this._virtualStart;p<this._physicalCount;p++,g++)if((K=d.call(this,p,g))!=null)return K;for(p=0;p<this._physicalStart;p++,g++)if((K=d.call(this,p,g))!=null)return K}},
_computeVidx:function(d){return d>=this._physicalStart?this._virtualStart+(d-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+d},
_assignModels:function(d){this._iterateItems(function(H,K){var c=this._physicalItems[H],p=this.items&&this.items[K];if(p!=null){var g=this.modelForElement(c);g.__key__=null;this._forwardProperty(g,this.as,p);this._forwardProperty(g,this.selectedAs,this.$.selector.isSelected(p));this._forwardProperty(g,this.indexAs,K);this._forwardProperty(g,"tabIndex",this._focusedVirtualIndex===K?0:-1);this._physicalIndexForKey[g.__key__]=H;g._flushProperties&&g._flushProperties(!0);c.removeAttribute("hidden")}else c.setAttribute("hidden",
"")},d)},
_updateMetrics:function(d){_.eL();var H=0,K=0,c=this._physicalAverageCount,p=this._physicalAverage;this._iterateItems(function(g){K+=this._physicalSizes[g];this._physicalSizes[g]=this._physicalItems[g].offsetHeight;H+=this._physicalSizes[g];this._physicalAverageCount+=this._physicalSizes[g]?1:0},d);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(K=this._itemsPerRow===1?K:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+H-K,this._itemsPerRow=1);this._physicalAverageCount!==c&&(this._physicalAverage=Math.round((p*c+H)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var d=this._physicalTop;if(this.grid){var H=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(K,c){var p=Math.floor(c%this._itemsPerRow*this._itemWidth+H);this._isRTL&&(p*=-1);this.translate3d(p+"px",d+"px",0,this._physicalItems[K]);this._shouldRenderNextRow(c)&&(d+=this._rowHeight)})}else this._iterateItems(function(K){this.translate3d(0,d+"px",0,this._physicalItems[K]);
d+=this._physicalSizes[K]})},
_getPhysicalSizeIncrement:function(d){return this.grid?this._computeVidx(d)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[d]},
_shouldRenderNextRow:function(d){return d%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var d=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(d!==0){this._physicalTop=this._physicalTop-d;var H=this._scrollPosition;!jIl&&H>0&&this._resetScrollPosition(H-d)}},
_resetScrollPosition:function(d){this.scrollTarget&&d>=0&&(this._scrollPosition=this._scrollTop=d)},
_updateScrollerSize:function(d){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((d=(d=(d=d||this._scrollHeight===0)||this._scrollPosition>=this._estScrollHeight-this._physicalSize)||this.grid&&this.$.items.style.height<this._estScrollHeight)||Math.abs(this._estScrollHeight-this._scrollHeight)>=this._viewportHeight)this.$.items.style.height=
this._estScrollHeight+"px",this._scrollHeight=this._estScrollHeight},
scrollToItem:function(d){return this.scrollToIndex(this.items.indexOf(d))},
scrollToIndex:function(d){if(!(typeof d!=="number"||d<0||d>this.items.length-1)&&(_.eL(),this._physicalCount!==0)){d=this._clamp(d,0,this._virtualCount-1);if(!this._isIndexRendered(d)||d>=this._maxVirtualStart)this._virtualStart=this.grid?d-this._itemsPerRow*2:d-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var H=this._physicalStart,K=this._virtualStart,c=0,p=this._hiddenContentSize;K<d&&
c<=p;)c+=this._getPhysicalSizeIncrement(H),H=(H+1)%this._physicalCount,K++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+c);this._increasePoolIfNeeded(0);this._lastVisibleIndexVal=this._firstVisibleIndexVal=null}},
_resetAverage:function(){this._physicalAverageCount=this._physicalAverage=0},
_resizeHandler:function(){this._debounce("_render",function(){this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},_.rg)},
selectItem:function(d){return this.selectIndex(this.items.indexOf(d))},
selectIndex:function(d){if(!(d<0||d>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(d)){var H=this.modelForElement(this._physicalItems[this._getPhysicalIndex(d)]);H&&(H[this.selectedAs]=!0);this.updateSizeForIndex(d)}this.$.selector.selectIndex(d)}},
deselectItem:function(d){return this.deselectIndex(this.items.indexOf(d))},
deselectIndex:function(d){d<0||d>=this._virtualCount||(this._isIndexRendered(d)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(d)])[this.selectedAs]=!1,this.updateSizeForIndex(d)),this.$.selector.deselectIndex(d))},
toggleSelectionForItem:function(d){return this.toggleSelectionForIndex(this.items.indexOf(d))},
toggleSelectionForIndex:function(d){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(d):this.$.selector.isSelected(this.items[d]))?this.deselectIndex(d):this.selectIndex(d)},
clearSelection:function(){this._iterateItems(function(d){this.modelForElement(this._physicalItems[d])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(d){(d?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(d){var H=this.modelForElement(d.target);if(H){var K=_.Iu(d).path[0];d=this._getActiveElement();var c=this._physicalItems[this._getPhysicalIndex(H[this.indexAs])];if(K.localName!=="input"&&K.localName!=="button"&&K.localName!=="select"){K=H.tabIndex;H.tabIndex=-100;var p=d?d.tabIndex:-1;H.tabIndex=K;d&&c!==d&&c.contains(d)&&p!==-100||this.toggleSelectionForItem(H[this.as])}}},
_multiSelectionChanged:function(d){this.clearSelection();this.$.selector.multi=d},
updateSizeForItem:function(d){return this.updateSizeForIndex(this.items.indexOf(d))},
updateSizeForIndex:function(d){if(!this._isIndexRendered(d))return null;this._updateMetrics([this._getPhysicalIndex(d)]);this._positionItems();return null},
_manageFocus:function(){var d=this._focusedVirtualIndex;d>=0&&d<this._virtualCount?this._isIndexRendered(d)?this._restoreFocusedItem():this._createFocusBackfillItem():this._virtualCount>0&&this._physicalCount>0&&(this._focusedPhysicalIndex=this._physicalStart,this._focusedVirtualIndex=this._virtualStart,this._focusedItem=this._physicalItems[this._physicalStart])},
_convertIndexToCompleteRow:function(d){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(d/this._itemsPerRow)*this._itemsPerRow:d},
_isIndexRendered:function(d){return d>=this._virtualStart&&d<=this._virtualEnd},
_isIndexVisible:function(d){return d>=this.firstVisibleIndex&&d<=this.lastVisibleIndex},
_getPhysicalIndex:function(d){return(this._physicalStart+(d-this._virtualStart))%this._physicalCount},
focusItem:function(d){this._focusPhysicalItem(d)},
_focusPhysicalItem:function(d){if(!(d<0||d>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(d)||this.scrollToIndex(d);var H=this._physicalItems[this._getPhysicalIndex(d)],K=this.modelForElement(H),c;K.tabIndex=-100;H.tabIndex===-100&&(c=H);c||(c=_.Iu(H).querySelector('[tabindex="-100"]'));K.tabIndex=0;this._focusedVirtualIndex=d;c&&c.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var d=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var H=this.stamp(null);this._focusBackfillItem=H.root.querySelector("*");this._itemsParent.appendChild(H.root)}this._offscreenFocusedItem=this._physicalItems[d];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[d]=this._focusBackfillItem;this._focusedPhysicalIndex=d;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var d=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),H=this._physicalItems[d];if(H){var K=this.modelForElement(H),c=this.modelForElement(this._offscreenFocusedItem);K[this.as]===c[this.as]?(this._focusBackfillItem=H,K.tabIndex=-1,this._physicalItems[d]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(d){d=this.modelForElement(d.target);var H=this.modelForElement(this._focusedItem),K=this._offscreenFocusedItem!==null,c=this._focusedVirtualIndex;d&&(H===d?this._isIndexVisible(c)||this.scrollToIndex(c):(this._restoreFocusedItem(),H&&(H.tabIndex=-1),d.tabIndex=0,this._focusedVirtualIndex=c=d[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(c),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],K&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(d){switch(d.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&d.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex+(this.grid?this._itemsPerRow:1));break;case 39:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+(this._isRTL?-1:1));break;case 38:this._focusedVirtualIndex>0&&d.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex-(this.grid?this._itemsPerRow:1));break;case 37:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+
(this._isRTL?1:-1));break;case 13:this._focusPhysicalItem(this._focusedVirtualIndex),this.selectionEnabled&&this._selectionHandler(d)}},
_clamp:function(d,H,K){return Math.min(K,Math.max(H,d))},
_debounce:function(d,H,K){this._debouncers=this._debouncers||{};this._debouncers[d]=_.G8(this._debouncers[d],K,H.bind(this));_.ob(this._debouncers[d])},
_forwardProperty:function(d,H,K){d._setPendingProperty(H,K)},
_forwardHostPropV2:function(d,H){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(K){K&&this.modelForElement(K).forwardHostProp(d,H)},this)},
_notifyInstancePropV2:function(d,H,K){NEh(this.as,H)&&(d=d[this.indexAs],H==this.as&&(this.items[d]=K),this.notifyPath(xl(this.as,"items."+d,H),K))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(d,H,K){H.indexOf(this.as+".")===0&&this.notifyPath("items."+d.__key__+"."+H.slice(this.as.length+1),K)},
_forwardParentPath:function(d,H){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(K){K&&this.modelForElement(K).notifyPath(d,H)},this)},
_forwardParentProp:function(d,H){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(K){K&&(this.modelForElement(K)[d]=H)},this)},
_getActiveElement:function(){var d=this._itemsParent.node.domHost;return _.Iu(d?d.root:document).activeElement},
_scrollTargetChanged:function(d,H){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(H)if(d==="document")this.scrollTarget=this._doc;else if(typeof d==="string"){var K,c;this.scrollTarget=(H=(c=(K=this.domHost)==null?void 0:K.polymerController)!=null?c:this.domHost)&&H.$?H.$[d]:_.Iu(this.ownerDocument).querySelector("#"+d)}else this._isValidScrollTarget()&&(this._oldScrollTarget=d,this._toggleScrollListener(this._shouldHaveListener,d))}});var vE7;var dOl;var HyS=function(d,H,K,c){d-=K;H-=c;return Math.sqrt(d*d+H*H)},$OB=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
YR5.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var OG1=function(d){d.maxRadius=0;d.mouseDownStart=0;d.mouseUpStart=0;d.xStart=0;d.yStart=0;d.xEnd=0;d.yEnd=0;d.containerMetrics=new YR5(d.element)};
SRF.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var d=$OB()-this.mouseDownStart;this.mouseUpStart&&(d-=this.mouseUpElapsed);return d},get mouseUpElapsed(){return this.mouseUpStart?$OB()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1E3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1E3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+
this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var d=Math.min(Math.sqrt(this.containerMetrics.width*this.containerMetrics.width+this.containerMetrics.height*this.containerMetrics.height),300)*1.1+5;return Math.min(Math.abs(d*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-d/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var d=this.radius/(this.containerMetrics.size/2);var H=this.xNow-this.containerMetrics.width/2;var K=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+H+"px, "+K+"px)";this.waveContainer.style.transform="translate3d("+H+"px, "+K+"px, 0)";this.wave.style.webkitTransform="scale("+d+","+d+")";this.wave.style.transform="scale3d("+d+","+d+",1)"},
downAction:function(d){var H=this.containerMetrics.width/2,K=this.containerMetrics.height/2;OG1(this);this.mouseDownStart=$OB();this.center?(this.xStart=H,this.yStart=K):(this.xStart=d?d.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=d?d.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=H,this.yEnd=K);d=this.containerMetrics;H=this.xStart;K=this.yStart;this.maxRadius=Math.max(HyS(H,K,0,0),HyS(H,K,
d.width,0),HyS(H,K,0,d.height),HyS(H,K,d.width,d.height));this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px";this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px";this.waveContainer.style.width=this.containerMetrics.size+"px";this.waveContainer.style.height=this.containerMetrics.size+"px"},
upAction:function(){this.isMouseDown&&(this.mouseUpStart=$OB())},
remove:function(){_.Iu(_.Iu(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.zn({_template:function(){if(dOl!==void 0)return dOl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-ripple--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_ripple.tp.yt.paper.ripple.css.js--\x3e<div id="background" class="style-scope tp-yt-paper-ripple"></div>\n<div id="waves" class="style-scope tp-yt-paper-ripple"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;vE7===void 0&&(vE7=document.createElement("template"));var c=vE7;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return dOl=d},
is:"tp-yt-paper-ripple",behaviors:[_.hQ],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}},
animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}},
get target(){return this.keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keydown":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){_.Iu(this).parentNode.nodeType==11?this.keyEventTarget=_.Iu(this).getOwnerRoot().host:this.keyEventTarget=_.Iu(this).parentNode;var d=this.keyEventTarget;this.listen(d,"up","uiUpAction");this.listen(d,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(d){d.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var d=0;d<this.ripples.length;++d)if(!this.ripples[d].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(d){this.noink||this.downAction(d)},
downAction:function(d){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(d),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(d){this.noink||this.upAction(d)},
upAction:function(d){this.holdDown||(this.ripples.forEach(function(H){H.upAction(d)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var d=0;d<this.ripples.length;++d){var H=this.ripples[d];H.isOpacityFullyDecayed&&!H.isRestingAtMaxRadius&&this.removeRipple(H)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var d=new SRF(this);_.Iu(this.$.waves).appendChild(d.waveContainer);this.$.background.style.backgroundColor=d.color;this.ripples.push(d);this._setAnimating(!0);return d},
removeRipple:function(d){var H=this.ripples.indexOf(d);H<0||(this.ripples.splice(H,1),d.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var d;for(d=0;d<this.ripples.length;++d){var H=this.ripples[d];H.draw();this.$.background.style.opacity=H.outerOpacity;H.isOpacityFullyDecayed&&!H.isRestingAtMaxRadius&&this.removeRipple(H)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(d,H){H!==void 0&&(d?this.downAction():this.upAction())}});var yX={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(d){MA._downHandler.call(this,d);this.pressed&&this.ensureRipple(d)},
ensureRipple:function(d){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var H=this._rippleContainer||this.root;H&&_.Iu(H).appendChild(this._ripple);if(d){H=_.Iu(this._rippleContainer||this);var K=_.Iu(d).rootTarget;H.deepContains(K)&&this._ripple.uiDownAction(d)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(d){this.hasRipple()&&(this._ripple.noink=d)}};var KpN={properties:{elevation:{type:Number,reflectToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateElevation:function(){var d=1;this.disabled?d=0:this.active||this.pressed?d=4:this.receivedFocusFromKeyboard&&(d=3);this._setElevation(d)},
_computeKeyboardClass:function(d){this.toggleClass("keyboard-focus",d)},
_spaceKeyDownHandler:function(d){MA._spaceKeyDownHandler.call(this,d);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(d){MA._spaceKeyUpHandler.call(this,d);this.hasRipple()&&this._ripple.uiUpAction()}},caX=[abg,
_.LN,yX,KpN];_.pwC={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(d){d&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=d)},
_createRipple:function(){var d=yX._createRipple();d.id="ink";d.setAttribute("center","");d.classList.add("circle");return d}};
_.g8S=[abg,_.LN,yX,_.pwC];_.iyU=[_.g8S,kx7,{_checkedChanged:function(){eo0._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){yX._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var GHX;var o8M;var qiM=function(){};
_.G=qiM.prototype;_.G.registered=function(){};
_.G.addOwnKeyBinding=function(){};
_.G.removeOwnKeyBindings=function(){};
_.G.keyboardEventMatchesKeys=function(){};
_.G._collectKeyBindings=function(){};
_.G._prepKeyBindings=function(){};
_.G._addKeyBinding=function(){};
_.G._resetKeyEventListeners=function(){};
_.G._listenKeyEventListeners=function(){};
_.G._unlistenKeyEventListeners=function(){};
_.G._onKeyBindingEvent=function(){};
_.G._triggerKeyHandler=function(){};
_.G._tapHandler=function(){};
_.G._focusChanged=function(){};
_.G._detectKeyboardFocus=function(){};
_.G._userActivate=function(){};
_.G._upHandler=function(){};
_.G._asyncClick=function(){};
_.G._pressedChanged=function(){};
_.G._ariaActiveAttributeChanged=function(){};
_.G._activeChanged=function(){};
_.G._controlStateChanged=function(){};
_.G._changedButtonState=function(){};
_.G._focusBlurHandler=function(){};
_.G._disabledChanged=function(){};
_.G._changedControlState=function(){};
_.G._buttonStateChanged=function(){};
_.G._downHandler=function(){};
_.G.ensureRipple=function(){};
_.G.getRipple=function(){};
_.G.hasRipple=function(){};
_.G._createRipple=function(){};
_.G._noinkChanged=function(){};
_.G._computeKeyboardClass=function(){};
_.G._spaceKeyDownHandler=function(){};
_.G._spaceKeyUpHandler=function(){};
_.G._setPressed=function(){};
_.G._setPointerDown=function(){};
_.G._setReceivedFocusFromKeyboard=function(){};
_.G._setFocused=function(){};
_.G._setElevation=function(){};
qiM=_.zn({_template:function(){if(o8M!==void 0)return o8M;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_button.tp.yt.paper.button.css.js--\x3e<slot class="style-scope tp-yt-paper-button"></slot>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
var H=d.content,K=H.insertBefore;GHX===void 0&&(GHX=document.createElement("template"));var c=GHX;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return o8M=d},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[caX],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?KpN._calculateElevation.apply(this):this._setElevation(0)}});var ad0;var ld3;var eJ7={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(d){_.h("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(d)},
_onDialogClickWrapped:function(d){_.h("dialog_behavior_no_tap_killswitch")||this._onDialogClick(d)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(d,H){H&&(d?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(d){if(d){var H;((H=this.hostElement)!=null?H:this).setAttribute("aria-modal","true")}else{var K;((K=this.hostElement)!=null?K:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(d){this.closingReason=this.closingReason||{};this.closingReason.confirmed=d},
_onDialogClick:function(d){for(var H=_.Iu(d).path,K=0,c,p=H.indexOf((c=this.hostElement)!=null?c:this);K<p;K++)if(c=H[K],c.hasAttribute&&(c.hasAttribute("dialog-dismiss")||c.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(c.hasAttribute("dialog-confirm"));this.close();d.stopPropagation();break}}},kHA=[_.Eh,
eJ7];var xON=document.createElement("template");_.P(xON,'<custom-style><style is="custom-style">/* autoprefixer: off */\n/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\nSPDX-License-Identifier: BSD-3-Clause\n*/\nhtml {\n  --primary-text-color: var(--light-theme-text-color);\n  --primary-background-color: var(--light-theme-background-color);\n  --secondary-text-color: var(--light-theme-secondary-color);\n  --disabled-text-color: var(--light-theme-disabled-color);\n  --divider-color: var(--light-theme-divider-color);\n  --error-color: #dd2c00;\n  --primary-color: #3f51b5;\n  --light-primary-color: #c5cae9;\n  --dark-primary-color: #303f9f;\n  --accent-color: #ff4081;\n  --light-accent-color: #ff80ab;\n  --dark-accent-color: #f50057;\n  --light-theme-background-color: #fff;\n  --light-theme-base-color: #000;\n  --light-theme-text-color: #212121;\n  --light-theme-secondary-color: #737373;\n  --light-theme-disabled-color: #9b9b9b;\n  --light-theme-divider-color: #dbdbdb;\n  --dark-theme-background-color: #212121;\n  --dark-theme-base-color: #fff;\n  --dark-theme-text-color: #fff;\n  --dark-theme-secondary-color: #bcbcbc;\n  --dark-theme-disabled-color: #646464;\n  --dark-theme-divider-color: #3c3c3c;\n  --text-primary-color: var(--dark-theme-text-color);\n  --default-primary-color: var(--primary-color);\n}</style></custom-style>');
document.head.appendChild(xON.content);var n8d=document.createElement("template");_.P(n8d,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(n8d.content);_.zn({_template:function(){if(ld3!==void 0)return ld3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog.tp.yt.paper.dialog.css.js--\x3e<slot class="style-scope tp-yt-paper-dialog"></slot>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
var H=d.content,K=H.insertBefore;ad0===void 0&&(ad0=document.createElement("template"));var c=ad0;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return ld3=d},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[kHA,MA6],listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},_renderOpened:function(){this.cancelAnimation();this.playAnimation("entry")},
_renderClosed:function(){this.cancelAnimation();this.playAnimation("exit")},
_onNeonAnimationFinish:function(){this.opened?this._finishRenderOpened():this._finishRenderClosed()}});var CE6;var RJC;_.zn({_template:function(){if(RJC!==void 0)return RJC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog-scrollable--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog_scrollable.tp.yt.paper.dialog.scrollable.css.js--\x3e<div id="scrollable" class="scrollable style-scope tp-yt-paper-dialog-scrollable" on-scroll="updateScrollState">\n  <slot class="style-scope tp-yt-paper-dialog-scrollable"></slot>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;CE6===void 0&&(CE6=document.createElement("template"));var c=CE6;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return RJC=d},
is:"tp-yt-paper-dialog-scrollable",properties:{dialogElement:{type:Object}},get scrollTarget(){return this.$.scrollable},ready:function(){this._ensureTarget();this.classList.add("no-padding")},
attached:function(){this._ensureTarget();requestAnimationFrame(this.updateScrollState.bind(this))},
updateScrollState:function(){this.toggleClass("is-scrolled",this.scrollTarget.scrollTop>0);this.toggleClass("can-scroll",this.scrollTarget.offsetHeight<this.scrollTarget.scrollHeight);this.toggleClass("scrolled-to-bottom",this.scrollTarget.scrollTop+this.scrollTarget.offsetHeight>=this.scrollTarget.scrollHeight)},
_ensureTarget:function(){var d,H,K;if(((d=window.ShadyDOM)==null?void 0:d.noPatch)!==!0&&((H=window.ShadyDOM)==null?void 0:H.noPatch)!=="on-demand"||((K=this.__shady_parentNode)==null?void 0:K.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(eJ7)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var VfN=_.y$(['<iron-iconset-svg name="paper-dropdown-menu" size="24">\n<svg><defs>\n<g id="arrow-drop-down"><path d="M12,15.7L5.6,9.4l0.7-0.7l5.6,5.6l5.6-5.6l0.7,0.7L12,15.7z"/></g>\n</defs></svg>\n</iron-iconset-svg>']),UON=_.nLN(VfN);UON.setAttribute("style","display: none;");document.head.appendChild(UON.content);var hJX;var Lpl;var MfU;var mOX;_.zn({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[BZ],configure:function(d){var H=d.node,K=H.getBoundingClientRect().height;return this._effect=new KeyframeEffect(H,[{height:K/2+"px"},{height:K+"px"}],this.timingFromConfig(d))}});
_.zn({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[BZ],configure:function(d){var H=d.node,K=H.getBoundingClientRect().width;return this._effect=new KeyframeEffect(H,[{width:K/2+"px"},{width:K+"px"}],this.timingFromConfig(d))}});
_.zn({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[BZ],configure:function(d){var H=d.node,K=H.getBoundingClientRect().width;return this._effect=new KeyframeEffect(H,[{width:K+"px"},{width:K-K/20+"px"}],this.timingFromConfig(d))}});
_.zn({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[BZ],configure:function(d){var H=d.node,K=H.getBoundingClientRect().height;this.setPrefixedProperty(H,"transformOrigin","0 0");return this._effect=new KeyframeEffect(H,[{height:K+"px",transform:"translateY(0)"},{height:K/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(d))}});var bh={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},wwg=function(){};
_.G=wwg.prototype;_.G.registered=function(){};
_.G.addOwnKeyBinding=function(){};
_.G.removeOwnKeyBindings=function(){};
_.G.keyboardEventMatchesKeys=function(){};
_.G._collectKeyBindings=function(){};
_.G._prepKeyBindings=function(){};
_.G._addKeyBinding=function(){};
_.G._resetKeyEventListeners=function(){};
_.G._listenKeyEventListeners=function(){};
_.G._unlistenKeyEventListeners=function(){};
_.G._onKeyBindingEvent=function(){};
_.G._triggerKeyHandler=function(){};
_.G._focusBlurHandler=function(){};
_.G._changedControlState=function(){};
_.G._setFocused=function(){};
wwg=_.zn({_template:function(){if(mOX!==void 0)return mOX;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;MfU===void 0&&(MfU=document.createElement("template"));var c=MfU;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return mOX=d},
is:"tp-yt-paper-menu-button",behaviors:[_.hQ,_.LN],properties:{opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},noOverlap:{type:Boolean},noAnimations:{type:Boolean,value:!1},ignoreSelect:{type:Boolean,value:!1},closeOnActivate:{type:Boolean,
value:!1},openAnimationConfig:{type:Object,value:function(){return[{name:"fade-in-animation",timing:{delay:100,duration:200}},{name:"tp-yt-paper-menu-grow-width-animation",timing:{delay:100,duration:150,easing:bh.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:bh.ANIMATION_CUBIC_BEZIER}}]}},
closeAnimationConfig:{type:Object,value:function(){return[{name:"fade-out-animation",timing:{duration:150}},{name:"tp-yt-paper-menu-shrink-width-animation",timing:{delay:100,duration:50,easing:bh.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object},fitInto:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var d=_.Iu(this.$.content).getDistributedNodes(),H=0,K=d.length;H<K;H++)if(d[H].nodeType===Node.ELEMENT_NODE)return d[H]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(d,H){d?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):H!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(d){_.LN._disabledChanged.apply(this,arguments);d&&this.opened&&this.close()},
__onIronOverlayCanceled:function(d){var H=this.$.trigger;_.Iu(d.detail).path.indexOf(H)>-1&&d.preventDefault()}});
Object.keys(bh).forEach(function(d){wwg[d]=bh[d]});var PEX=_.mm.IronButtonState,ubN=(0,_.LT)(HTMLElement);
_.zn({_template:function(){if(Lpl!==void 0)return Lpl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu-light--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu_light.tp.yt.paper.dropdown.menu.light.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" class="style-scope tp-yt-paper-dropdown-menu-light">\n  \n  <div id="dropdown-trigger" class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu-light" slot="dropdown-trigger" role="button" tabindex="0" aria-haspopup="listbox">\n    <label class$="[[_computeLabelClass(noLabelFloat,alwaysFloatLabel,hasContent)]] style-scope tp-yt-paper-dropdown-menu-light" style-target="label">\n      [[label]]\n    </label>\n    <div id="input" tabindex="-1" style-target="input" class="style-scope tp-yt-paper-dropdown-menu-light">\u00a0</div>\n    <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" class="style-scope tp-yt-paper-dropdown-menu-light"></tp-yt-iron-icon>\n    <span class="error style-scope tp-yt-paper-dropdown-menu-light">[[errorMessage]]</span>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu-light"></slot>\n</tp-yt-paper-menu-button>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;hJX===void 0&&(hJX=document.createElement("template"));var c=hJX;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return Lpl=d},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[PEX,_.LN,yX,_.wi,_.Ih],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0,observer:"_valueChanged"},label:{type:String},placeholder:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,hasContent:{type:Boolean,readOnly:!0}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(d){var H=(0,_.U_)(this);H.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:d});H.shadowRoot.appendChild(d);return ubN.prototype._attachDom.call(this,d)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var d=this.contentElement;d&&d.selectedItem&&this._setSelectedItem(d.selectedItem)},
get contentElement(){for(var d=_.Iu(this.$.content).getDistributedNodes(),H=0,K=d.length;H<K;H++)if(d[H].nodeType===Node.ELEMENT_NODE)return d[H]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(d){this._setSelectedItem(d.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(d){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d)===this&&this.open()},
_selectedItemChanged:function(d){var H="";d?H=d.label||d.getAttribute("label")||d.textContent.trim():H="";this.value=H;this._setSelectedItemLabel(H)},
_computeMenuVerticalOffset:function(d,H){return H?H:d?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var d=this.opened?"true":"false",H=this.contentElement;H&&H.setAttribute("aria-expanded",d)},
_computeLabelClass:function(d,H,K){var c="label";if(d)K&&(c+=" label-is-hidden");else if(K||H)c+=" label-is-floating";return c},
_valueChanged:function(){this.$.input&&this.$.input.textContent!==this.value&&(this.$.input.textContent=this.value);this._setHasContent(!!this.value);this.hasContent||(this.$.input.textContent="\u00a0")}});var Idd;var raS;_.zn({is:"tp-yt-paper-icon-button",_template:function(){if(raS!==void 0)return raS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_button.tp.yt.paper.icon.button.css.js--\x3e<tp-yt-iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]" class="style-scope tp-yt-paper-icon-button"></tp-yt-iron-icon>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;Idd===void 0&&(Idd=document.createElement("template"));var c=Idd;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return raS=d},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.g8S],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(d,H){var K=this.getAttribute("aria-label");K&&H!=K||this.setAttribute("aria-label",d)}});var WpM;var B5g;_.Dv=[abg,_.LN,{hostAttributes:{role:"option",tabindex:"0"}}];_.zn({_template:function(){if(B5g!==void 0)return B5g;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_item.tp.yt.paper.icon.item.css.js--\x3e<div id="contentIcon" class="content-icon style-scope tp-yt-paper-icon-item">\n  <slot name="item-icon" class="style-scope tp-yt-paper-icon-item"></slot>\n</div>\n<slot class="style-scope tp-yt-paper-icon-item"></slot>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;WpM===void 0&&(WpM=document.createElement("template"));var c=WpM;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return B5g=d},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.Dv]});var zJ3;var XwS;var JaN={attached:function(){this.fire("addon-attached")},
update:function(){}};var so3=1,Fp7=1,Zyg=1,T5l=[_.LN,_.hQ,{properties:{label:{type:String},value:{notify:!0,type:String},disabled:{type:Boolean,value:!1},invalid:{type:Boolean,value:!1,notify:!0},allowedPattern:{type:String},type:{type:String},list:{type:String},pattern:{type:String},required:{type:Boolean,value:!1},errorMessage:{type:String},charCounter:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},autoValidate:{type:Boolean,value:!1},validator:{type:String},autocomplete:{type:String,
value:"off"},autofocus:{type:Boolean,observer:"_autofocusChanged"},inputmode:{type:String},minlength:{type:Number},maxlength:{type:Number},min:{type:String},max:{type:String},step:{type:String},name:{type:String},placeholder:{type:String,value:""},readonly:{type:Boolean,value:!1},size:{type:Number},autocapitalize:{type:String,value:"none"},autocorrect:{type:String,value:"off"},autosave:{type:String},results:{type:Number},accept:{type:String},multiple:{type:Boolean},inputDir:{type:String},_typesThatHaveText:{type:Array},
_ariaDescribedBy:{type:String,value:""},_ariaLabelledBy:{type:String,value:""},_inputId:{type:String,value:""}},listeners:{"addon-attached":"_onAddonAttached"},keyBindings:{"shift+tab:keydown":"_onShiftTabDown"},hostAttributes:{tabindex:0},get inputElement(){this.$||(this.$={});this.$.input||(this._generateInputId(),this.$.input=this.$$("#"+this._inputId));return this.$.input},get _focusableElement(){return this.inputElement},created:function(){this._typesThatHaveText="date datetime datetime-local month time week file".split(" ")},
attached:function(){this._updateAriaLabelledBy();!da&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(d,H){d?d=d+" "+H:d=H;return d},
_onAddonAttached:function(d){d=_.Iu(d).rootTarget;if(d.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,d.id);else{var H="paper-input-add-on-"+Fp7++;d.id=H;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,H)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(d){_.LN._focusBlurHandler.call(this,d);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var d=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",d);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(d){try{var H=this.inputElement.selectionStart;this.value=d;this.inputElement.selectionStart=H;this.inputElement.selectionEnd=H}catch(K){this.value=d}},
_computeAlwaysFloatLabel:function(d,H){return H||d},
_updateAriaLabelledBy:function(){var d=_.Iu(this.root).querySelector("label");if(d){if(d.id)var H=d.id;else H="paper-input-label-"+so3++,d.id=H;this._ariaLabelledBy=H}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+Zyg++)},
_onChange:function(d){this.shadowRoot&&this.fire(d.type,{sourceEvent:d},{node:this,bubbles:d.bubbles,cancelable:d.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var d=document.activeElement;d instanceof HTMLElement&&d!==document.body&&d!==document.documentElement||this._focusableElement.focus()}}}];var Qo6;var tfU;_.zn({_template:function(){if(tfU!==void 0)return tfU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-char-counter--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_char_counter.tp.yt.paper.input.char.counter.css.js--\x3e<span class="style-scope tp-yt-paper-input-char-counter">[[_charCounterStr]]</span>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;Qo6===void 0&&(Qo6=document.createElement("template"));var c=Qo6;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return tfU=d},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[JaN],properties:{_charCounterStr:{type:String,value:"0"}},update:function(d){if(d.inputElement){d.value=d.value||"";var H=d.value.toString().length.toString();d.inputElement.hasAttribute("maxlength")&&(H+="/"+d.inputElement.getAttribute("maxlength"));this._charCounterStr=H}}});var Yil;var OyB;_.zn({_template:function(){if(OyB!==void 0)return OyB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_container.tp.yt.paper.input.container.css.js--\x3e<div class="floated-label-placeholder style-scope tp-yt-paper-input-container" aria-hidden="true" hidden="[[noLabelFloat]]">\n  \u00a0\n</div>\n\n<div class="input-wrapper style-scope tp-yt-paper-input-container">\n  <span class="prefix style-scope tp-yt-paper-input-container"><slot name="prefix" class="style-scope tp-yt-paper-input-container"></slot></span>\n\n  <div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]] style-scope tp-yt-paper-input-container" id="labelAndInputContainer">\n    <slot name="label" class="style-scope tp-yt-paper-input-container"></slot>\n    <slot name="input" on-slotchange="onInputSlotChanged" class="style-scope tp-yt-paper-input-container"></slot><slot name="after-input" class="style-scope tp-yt-paper-input-container"></slot>\n  </div>\n\n  <span class="suffix style-scope tp-yt-paper-input-container"><slot name="suffix" class="style-scope tp-yt-paper-input-container"></slot></span>\n</div>\n\n<div class$="[[_computeUnderlineClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <div class="unfocused-line style-scope tp-yt-paper-input-container"></div>\n  <div class="focused-line style-scope tp-yt-paper-input-container"></div>\n</div>\n\n<div class$="[[_computeAddOnContentClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <slot name="add-on" class="style-scope tp-yt-paper-input-container"></slot>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;Yil===void 0&&(Yil=document.createElement("template"));var c=Yil;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return OyB=d},
is:"tp-yt-paper-input-container",hostAttributes:{"style-target":"host"},properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},noUnfloatedLabelError:{type:Boolean,value:!1},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,tp-yt-iron-input,textarea,.paper-input-input"},
_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},
_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},
_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},
_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},
listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return q8(this.attrForValue)},get _inputElement(){return _.Iu(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus,
!0);this.addEventListener("blur",this._boundOnBlur,!0)},
attached:function(){this.attrForValue||this.addEventListener("input",this._onInput);this.initializeInput()},
onInputSlotChanged:function(){this._addons||(this._addons=[]);this.attrForValue&&this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged);this.initializeInput()},
initializeInput:function(){this._inputElement&&(this._inputElementValue&&this._inputElementValue!=""?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement))},
_onAddonAttached:function(d){this._addons||(this._addons=[]);d=d.target;this._addons.indexOf(d)===-1&&(this._addons.push(d),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(d){this._handleValueAndAutoValidate(d.target)},
_onValueChanged:function(d){var H=d.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,H.value===void 0||H.value===""))return;this._handleValueAndAutoValidate(d.target)},
_handleValue:function(d){var H=this._inputElementValue;H||H===0||d.type==="number"&&!d.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:d,value:H,invalid:this.invalid})},
_handleValueAndAutoValidate:function(d){this.autoValidate&&d&&(this.invalid=!(d.validate?d.validate(this._inputElementValue):d.checkValidity()));this._handleValue(d)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(d){if(this._addons)for(var H,K=0;H=this._addons[K];K++)H.update(d)},
_computeInputContentClass:function(d,H,K,c,p){var g="input-content";d?(p&&(g+=" label-is-hidden"),c&&!this.noUnfloatedLabelError&&(g+=" is-invalid")):(d=this.querySelector("label"),H||p?(g+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",c?g+=" is-invalid":K&&(g+=" label-is-highlighted")):(d&&(this.$.labelAndInputContainer.style.position="relative"),c&&!this.noUnfloatedLabelError&&(g+=" is-invalid")));K&&(g+=" focused");return g},
_computeUnderlineClass:function(d,H){var K="underline";H?K+=" is-invalid":d&&(K+=" is-highlighted");return K},
_computeAddOnContentClass:function(d,H){var K="add-on-content";H?K+=" is-invalid":d&&(K+=" is-highlighted");return K}});var Si7;var E83;_.zn({_template:function(){if(E83!==void 0)return E83;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-error--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_error.tp.yt.paper.input.error.css.js--\x3e\n<div id="a11yWrapper" class="style-scope tp-yt-paper-input-error">\n  <slot class="style-scope tp-yt-paper-input-error"></slot>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;Si7===void 0&&(Si7=document.createElement("template"));var c=Si7;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return E83=d},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[JaN],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(d){this._setInvalid(d.invalid)}});_.zn({is:"tp-yt-paper-input",_template:function(){if(XwS!==void 0)return XwS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input.tp.yt.paper.input.css.js--\x3e<tp-yt-paper-input-container id="container" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-input">\n  <slot name="prefix" slot="prefix" class="style-scope tp-yt-paper-input"></slot>\n\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-input">[[label]]</label>\n\n  \n  <tp-yt-iron-input bind-value="{{value}}" slot="input" class="input-element style-scope tp-yt-paper-input" id$="[[_inputId]]" maxlength$="[[maxlength]]" allowed-pattern="[[allowedPattern]]" invalid="{{invalid}}" validator="[[validator]]">\n    <input aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]" on-change="_onChange" tabindex$="[[tabIndex]]" autosave$="[[autosave]]" results$="[[results]]" accept$="[[accept]]" multiple$="[[multiple]]" role$="[[inputRole]]" aria-haspopup$="[[inputAriaHaspopup]]" dir$="[[inputDir]]" class="style-scope tp-yt-paper-input">\n  </tp-yt-iron-input>\n\n  <slot name="suffix" slot="suffix" class="style-scope tp-yt-paper-input"></slot>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-input">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-input"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;zJ3===void 0&&(zJ3=document.createElement("template"));var c=zJ3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return XwS=d},
behaviors:[T5l,_.wi],properties:{value:{type:String},noUnfloatedLabelError:{type:Boolean,value:!1},inputRole:{type:String,value:void 0},inputAriaHaspopup:{type:String,value:void 0}},get _focusableElement(){return this.inputElement._inputElement},listeners:{"iron-input-ready":"_onIronInputReady"},_onIronInputReady:function(){this.$.nativeInput||(this.$.nativeInput=this.$$("input"));this.inputElement&&this._typesThatHaveText.indexOf(this.$.nativeInput.type)!==-1&&(this.alwaysFloatLabel=!0);this.inputElement.bindValue&&
this.$.container._handleValueAndAutoValidate(this.inputElement)}});var yal;var byB;_.zn({_template:function(){if(byB!==void 0)return byB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item.tp.yt.paper.item.css.js--\x3e<slot class="style-scope tp-yt-paper-item"></slot>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=
d.content,K=H.insertBefore;yal===void 0&&(yal=document.createElement("template"));var c=yal;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return byB=d},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.Dv]});var N5C;var DOU;_.zn({_template:function(){if(DOU!==void 0)return DOU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item-body--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item_body.tp.yt.paper.item.body.css.js--\x3e<slot class="style-scope tp-yt-paper-item-body"></slot>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
var H=d.content,K=H.insertBefore;N5C===void 0&&(N5C=document.createElement("template"));var c=N5C;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return DOU=d},
is:"tp-yt-paper-item-body"});var fd3;var Aad;var joN=function(){};
_.G=joN.prototype;_.G.indexOf=function(){};
_.G.selectPrevious=function(){};
_.G.selectNext=function(){};
_.G.selectIndex=function(){};
_.G.forceSynchronousItemUpdate=function(){};
_.G._checkFallback=function(){};
_.G._addListener=function(){};
_.G._removeListener=function(){};
_.G._activateEventChanged=function(){};
_.G._updateItems=function(){};
_.G._selectSelected=function(){};
_.G._filterItem=function(){};
_.G._valueToItem=function(){};
_.G._valueToIndex=function(){};
_.G._indexToValue=function(){};
_.G._valueForItem=function(){};
_.G._observeItems=function(){};
_.G._itemActivate=function(){};
_.G.multiChanged=function(){};
_.G._updateAttrForSelected=function(){};
_.G._updateSelected=function(){};
_.G._selectMulti=function(){};
_.G._selectionChange=function(){};
_.G._toggleSelected=function(){};
_.G._valuesToItems=function(){};
_.G.registered=function(){};
_.G.addOwnKeyBinding=function(){};
_.G.removeOwnKeyBindings=function(){};
_.G.keyboardEventMatchesKeys=function(){};
_.G._collectKeyBindings=function(){};
_.G._prepKeyBindings=function(){};
_.G._addKeyBinding=function(){};
_.G._resetKeyEventListeners=function(){};
_.G._listenKeyEventListeners=function(){};
_.G._unlistenKeyEventListeners=function(){};
_.G._onKeyBindingEvent=function(){};
_.G._triggerKeyHandler=function(){};
_.G.select=function(){};
_.G._resetTabindices=function(){};
_.G._updateMultiselectable=function(){};
_.G._focusWithKeyboardEvent=function(){};
_.G._clearSearchText=function(){};
_.G._focusPrevious=function(){};
_.G._focusNext=function(){};
_.G._applySelection=function(){};
_.G._focusedItemChanged=function(){};
_.G._onIronItemsChanged=function(){};
_.G._onShiftTabDown=function(){};
_.G._onFocus=function(){};
_.G._onUpKey=function(){};
_.G._onDownKey=function(){};
_.G._onEscKey=function(){};
_.G._onKeydown=function(){};
_.G._activateHandler=function(){};
_.G._disabledChanged=function(){};
_.G._setSelectedItem=function(){};
_.G._setItems=function(){};
_.G._setSelectedItems=function(){};
_.G._setFocusedItem=function(){};
joN=_.zn({_template:function(){if(Aad!==void 0)return Aad;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-listbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_listbox.tp.yt.paper.listbox.css.js--\x3e<slot class="style-scope tp-yt-paper-listbox"></slot>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
var H=d.content,K=H.insertBefore;fd3===void 0&&(fd3=document.createElement("template"));var c=fd3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return Aad=d},
is:"tp-yt-paper-listbox",behaviors:[Rog],hostAttributes:{role:"listbox"}});var v8B;var dJS;var H1C={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(d,H){return[d||H?"active":"",H?"cooldown":""].join(" ")},
__activeChanged:function(d,H){this.__setAriaHidden(!d);this.__coolingDown=!d&&H},
__altChanged:function(d){this.setAttribute("aria-label",d||"loading")},
__setAriaHidden:function(d){d?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.zn({_template:function(){if(dJS!==void 0)return dJS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner.tp.yt.paper.spinner.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner">\n  <div class="spinner-layer layer-1 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-2 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-3 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-4 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;v8B===void 0&&(v8B=document.createElement("template"));var c=v8B;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return dJS=d},
is:"tp-yt-paper-spinner",behaviors:[H1C]});var $JN;var KtM;_.zn({_template:function(){if(KtM!==void 0)return KtM;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner-lite--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner_lite.tp.yt.paper.spinner.lite.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner-lite">\n  <div class="spinner-layer style-scope tp-yt-paper-spinner-lite">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;$JN===void 0&&($JN=document.createElement("template"));var c=$JN;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return KtM=d},
is:"tp-yt-paper-spinner-lite",behaviors:[H1C]});var cSd;var pG0;_.zn({_template:function(){if(pG0!==void 0)return pG0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tab--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tab.tp.yt.paper.tab.css.js--\x3e<div class="tab-content style-scope tp-yt-paper-tab" style-target="tab-content">\n  <slot class="style-scope tp-yt-paper-tab"></slot>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;cSd===void 0&&(cSd=document.createElement("template"));var c=cSd;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return pG0=d},
is:"tp-yt-paper-tab",behaviors:[_.LN,_.mm.IronButtonState,yX],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0},noBoldOnFocus:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab","style-target":"host"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},
get _parentNoink(){var d=_.Iu(this).parentNode;return!!d&&!!d.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(d){if(this.link){var H=this.queryEffectiveChildren("a");H&&d.target!==H&&H.click()}}});var gV7;var i1N;var GZM=_.y$(['<iron-iconset-svg name="paper-tabs" size="24">\n<svg><defs>\n<g id="chevron-left"><path d="M14.6,18.4L8.3,12l6.4-6.4l0.7,0.7L9.7,12l5.6,5.6L14.6,18.4z"/></g>\n<g id="chevron-right"><path d="M9.4,18.4l-0.7-0.7l5.6-5.6L8.6,6.4l0.7-0.7l6.4,6.4L9.4,18.4z"/></g>\n</defs></svg>\n</iron-iconset-svg>']),oVd=_.nLN(GZM);document.head.appendChild(oVd.content);_.zn({_template:function(){if(i1N!==void 0)return i1N;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tabs--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tabs.tp.yt.paper.tabs.css.js--\x3e<tp-yt-paper-icon-button id="left" icon="paper-tabs:chevron-left" alt="[[altPrevious]]" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1" disabled="[[_leftHidden]]"></tp-yt-paper-icon-button>\n\n<div id="tabsContainer" on-track="_scroll" on-down="_down" class="style-scope tp-yt-paper-tabs">\n  <div id="tabsContent" style-target="content" class$="[[_computeTabsContentClass(scrollable, fitContainer)]] style-scope tp-yt-paper-tabs">\n    <div id="selectionBar" style-target="selection-bar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]] style-scope tp-yt-paper-tabs" on-transitionend="_onBarTransitionEnd"></div>\n    <slot class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</div>\n\n<tp-yt-paper-icon-button id="right" icon="paper-tabs:chevron-right" alt="[[altNext]]" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1" disabled="[[_rightHidden]]"></tp-yt-paper-icon-button>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;gV7===void 0&&(gV7=document.createElement("template"));var c=gV7;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return i1N=d},
is:"tp-yt-paper-tabs",behaviors:[_.WZ,_.UVC],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},removeIdleScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"tp-yt-paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,
value:0},altNext:{type:String,value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this._holdJob=
null;this._pendingActivationTimeout=this._pendingActivationItem=void 0;this._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this);this.addEventListener("blur",this._onBlurCapture.bind(this),!0);this._rightHidden=this._leftHidden=this.hideScrollButtons},
ready:function(){this.setScrollDirection("y",this.$.tabsContainer)},
detached:function(){this._cancelPendingActivation()},
_noinkChanged:function(d){_.Iu(this).querySelectorAll("tp-yt-paper-tab").forEach(d?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(d){d.setAttribute("noink","")},
_removeNoinkAttribute:function(d){d.removeAttribute("noink")},
_computeScrollButtonClass:function(d,H,K,c){return!H||K?"hidden":d?c?"hidden":"not-visible":""},
_computeTabsContentClass:function(d,H){var K="tabs-content";d&&(K+=" scrollable");if(!d||H)K+=" fit-container";return K},
_computeSelectionBarClass:function(d,H){var K="selection-bar";d?K+=" hidden":H&&(K+=" align-bottom");return K},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(d){return""+d},
_onIronSelect:function(d){this._tabChanged(d.detail.item,this._previousTab);this._previousTab=d.detail.item;this.cancelDebouncer("tab-changed")},
_onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)},
_activateHandler:function(){this._cancelPendingActivation();_.ri._activateHandler.apply(this,arguments)},
_scheduleActivation:function(d,H){this._pendingActivationItem=d;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,H)},
_delayedActivationHandler:function(){var d=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;d.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})},
_cancelPendingActivation:function(){this._pendingActivationTimeout!==void 0&&(this.cancelAsync(this._pendingActivationTimeout),this._pendingActivationTimeout=this._pendingActivationItem=void 0)},
_onArrowKeyup:function(){this.autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)},
_onBlurCapture:function(d){d.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(d,H){this.scrollable&&this._affectScroll(H&&-H.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(d){this.$.tabsContainer.scrollLeft+=d;d=this.$.tabsContainer.scrollLeft;this._leftHidden=d===0||this.hideScrollButtons;this._rightHidden=d===this._tabContainerScrollSize||this.hideScrollButtons},
_onLeftScrollButtonDown:function(){this._scrollToLeft();this._holdJob=setInterval(this._scrollToLeft.bind(this),this._holdDelay)},
_onRightScrollButtonDown:function(){this._scrollToRight();this._holdJob=setInterval(this._scrollToRight.bind(this),this._holdDelay)},
_onScrollButtonUp:function(){clearInterval(this._holdJob);this._holdJob=null},
_scrollToLeft:function(){this._affectScroll(-this._step)},
_scrollToRight:function(){this._affectScroll(this._step)},
_tabChanged:function(d,H){if(d){var K=this.$.tabsContent.getBoundingClientRect(),c=K.width,p=d.getBoundingClientRect();K=p.left-K.left;this._pos={width:this._calcPercent(p.width,c),left:this._calcPercent(K,c)};if(this.noSlide||H==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var g=H.getBoundingClientRect();H=this.items.indexOf(H);d=this.items.indexOf(d);this.$.selectionBar.classList.add("expand");
d=H<d;this._isRTL&&(d=!d);d?this._positionBar(this._calcPercent(p.left+p.width-g.left,c)-5,this._left):this._positionBar(this._calcPercent(g.left+g.width-p.left,c)-5,this._calcPercent(K,c)+5);this.scrollable&&this._scrollToSelectedIfNeeded(p.width,K)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(d,H){H-=this.$.tabsContainer.scrollLeft;H<0?this.$.tabsContainer.scrollLeft+=H:(H+=d-this.$.tabsContainer.offsetWidth,H>0&&(this.$.tabsContainer.scrollLeft+=H))},
_calcPercent:function(d,H){return 100*d/H},
_positionBar:function(d,H){d=d||0;H=H||0;this._width=d;this._left=H;this.transform("translateX("+H+"%) scaleX("+d/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var d=this.$.selectionBar.classList;d.contains("expand")?(d.remove("expand"),d.add("contract"),this._positionBar(this._pos.width,this._pos.left)):d.contains("contract")&&d.remove("contract")}});var qul;var arM;_.zn({_template:function(){if(arM!==void 0)return arM;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_textarea.tp.yt.paper.textarea.css.js--\x3e<tp-yt-paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-textarea">\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-textarea">[[label]]</label>\n\n  <tp-yt-iron-autogrow-textarea class="paper-input-input style-scope tp-yt-paper-textarea" slot="input" id$="[[_inputId]]" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" bind-value="{{value}}" invalid="{{invalid}}" validator$="[[validator]]" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" autocapitalize$="[[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRows]]" on-change="_onChange"></tp-yt-iron-autogrow-textarea>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-textarea">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-textarea"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;qul===void 0&&(qul=document.createElement("template"));var c=qul;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return arM=d},
is:"tp-yt-paper-textarea",behaviors:[T5l,_.wi],properties:{_ariaLabelledBy:{observer:"_ariaLabelledByChanged",type:String},_ariaDescribedBy:{observer:"_ariaDescribedByChanged",type:String},value:{type:String},rows:{type:Number,value:1},maxRows:{type:Number,value:0},noUnfloatedLabelError:{type:Boolean,value:!1}},get selectionStart(){return this.$.input.textarea.selectionStart},set selectionStart(d){this.$.input.textarea.selectionStart=d},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(d){this.$.input.textarea.selectionEnd=d},_ariaLabelledByChanged:function(d){this._focusableElement.setAttribute("aria-labelledby",d)},
_ariaDescribedByChanged:function(d){this._focusableElement.setAttribute("aria-describedby",d)},
get _focusableElement(){return this.inputElement.textarea}});var lrd;var efN;/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt SPDX-License-Identifier:
BSD-3-Clause
*/
var kZl=function(){};
_.G=kZl.prototype;_.G.addOwnKeyBinding=function(){};
_.G.removeOwnKeyBindings=function(){};
_.G.keyboardEventMatchesKeys=function(){};
_.G._collectKeyBindings=function(){};
_.G._prepKeyBindings=function(){};
_.G._addKeyBinding=function(){};
_.G._resetKeyEventListeners=function(){};
_.G._listenKeyEventListeners=function(){};
_.G._unlistenKeyEventListeners=function(){};
_.G._onKeyBindingEvent=function(){};
_.G._triggerKeyHandler=function(){};
_.G._tapHandler=function(){};
_.G._focusChanged=function(){};
_.G._detectKeyboardFocus=function(){};
_.G._userActivate=function(){};
_.G._upHandler=function(){};
_.G._spaceKeyDownHandler=function(){};
_.G._spaceKeyUpHandler=function(){};
_.G._asyncClick=function(){};
_.G._pressedChanged=function(){};
_.G._ariaActiveAttributeChanged=function(){};
_.G._activeChanged=function(){};
_.G._controlStateChanged=function(){};
_.G._changedButtonState=function(){};
_.G._focusBlurHandler=function(){};
_.G._disabledChanged=function(){};
_.G._changedControlState=function(){};
_.G._downHandler=function(){};
_.G.ensureRipple=function(){};
_.G.getRipple=function(){};
_.G.hasRipple=function(){};
_.G._noinkChanged=function(){};
_.G._focusedChanged=function(){};
_.G.registered=function(){};
_.G._invalidChanged=function(){};
_.G.hasValidator=function(){};
_.G.validate=function(){};
_.G._getValidity=function(){};
_.G._requiredChanged=function(){};
_.G._valueChanged=function(){};
_.G._checkedChanged=function(){};
_.G._buttonStateChanged=function(){};
_.G._setPressed=function(){};
_.G._setPointerDown=function(){};
_.G._setReceivedFocusFromKeyboard=function(){};
_.G._setFocused=function(){};
kZl=_.zn({is:"tp-yt-paper-toggle-button",_template:function(){if(efN!==void 0)return efN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toggle-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toggle_button.tp.yt.paper.toggle.button.css.js--\x3e<div class="toggle-container style-scope tp-yt-paper-toggle-button">\n  <div id="toggleBar" class="toggle-bar style-scope tp-yt-paper-toggle-button"></div>\n  <div id="toggleButton" class="toggle-button style-scope tp-yt-paper-toggle-button"></div>\n</div>\n\n<div class="toggle-label style-scope tp-yt-paper-toggle-button"><slot class="style-scope tp-yt-paper-toggle-button"></slot></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;lrd===void 0&&(lrd=document.createElement("template"));var c=lrd;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return efN=d},
behaviors:[_.iyU],hostAttributes:{role:"button","aria-pressed":"false",tabindex:0},properties:{ironLabelTarget:{type:Boolean,reflectToAttribute:!0}},listeners:{track:"_ontrack"},__calculateIsRtl:function(){return window.getComputedStyle(this).direction==="rtl"},
attached:function(){this.__calculateIsRtl()&&this.setAttribute("dir","rtl");_.vV(this,function(){_.ZQ(this,"pan-y")})},
_ontrack:function(d){d=d.detail;d.state==="start"?this._trackStart(d):d.state==="track"?this._trackMove(d):d.state==="end"&&this._trackEnd(d)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(d){d=d.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+d:d)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+d:d));this.translate3d(this._x+"px",0,0,this.$.toggleButton);this._isRtl?this._userActivate(this._x<-this._width/2):this._userActivate(this._x>this._width/2)},
_trackEnd:function(){this.$.toggleButton.classList.remove("dragging");this.transform("",this.$.toggleButton)},
_createRipple:function(){this._rippleContainer=this.$.toggleButton;var d=yX._createRipple();d.id="ink";d.setAttribute("recenters","");d.classList.add("circle","toggle-ink");return d}});var xJ3;var nVA;_.zn({_template:function(){if(nVA!==void 0)return nVA;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tooltip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--\x3e<div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">\n  <slot class="style-scope tp-yt-paper-tooltip"></slot>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;xJ3===void 0&&(xJ3=document.createElement("template"));var c=xJ3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return nVA=d},
is:"tp-yt-paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1,"aria-label":"tooltip"},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},alwaysDisplay:{type:Boolean,value:!1},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,
value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},
_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var d=_.Iu(this).parentNode,H=_.Iu(this).getOwnerRoot(),K;this.for?K=_.Iu(H).querySelector("#"+this.for):K=d.nodeType==Node.DOCUMENT_FRAGMENT_NODE?H.host:d;return K},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(d){d==="entry"?this.show():d==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Iu(this).textContent.trim()===""){for(var d=!0,H=_.Iu(this).getEffectiveChildNodes(),K=0;K<H.length;K++)if(H[K].textContent.trim()!==""){d=!1;break}if(d)return}this._showing=!0;this.$.tooltip.classList.remove("hidden");this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.updatePosition();this._animationPlaying=!0;this.$.tooltip.classList.add(this._getAnimationType("entry"))}},
hide:function(){this._showing&&(this._animationPlaying?(this._showing=!1,this._cancelAnimation()):(this._onAnimationFinish(),this._showing=!1,this._animationPlaying=!0))},
updatePosition:function(){if(this._target&&this.offsetParent){var d=this.offset;this.marginTop!=14&&this.offset==14&&(d=this.marginTop);var H=this.offsetParent.getBoundingClientRect(),K=this._target.getBoundingClientRect(),c=this.getBoundingClientRect(),p=(K.width-c.width)/2,g=(K.height-c.height)/2,a=K.left-H.left,e=K.top-H.top;switch(this.position){case "top":var k=a+p;var C=e-c.height-d;break;case "bottom":k=a+p;C=e+K.height+d;break;case "left":k=a-c.width-d;C=e+g;break;case "right":k=a+K.width+
d,C=e+g}this.fitToVisibleBounds?(H.left+k+c.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,k)+"px",this.style.right="auto"),H.top+C+c.height>window.innerHeight?(this.style.bottom=H.height+"px",this.style.top="auto"):(this.style.top=Math.max(-H.top,C)+"px",this.style.bottom="auto")):(this.style.left=k+"px",this.style.top=C+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(d){d!==500&&this.updateStyles({"--paper-tooltip-delay-in":d+"ms"})},
_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},
_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry"));this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.add("hidden")},
_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},
_onAnimationEnd:function(){this._animationPlaying=!1;this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},
_getAnimationType:function(d){if(d==="entry"&&this.animationEntry!=="")return this.animationEntry;if(d==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[d]&&typeof this.animationConfig[d][0].name==="string"){if(this.animationConfig[d][0].timing&&this.animationConfig[d][0].timing.delay&&this.animationConfig[d][0].timing.delay!==0){var H=this.animationConfig[d][0].timing.delay;d==="entry"?this.updateStyles({"--paper-tooltip-delay-in":H+"ms"}):d==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":H+
"ms"})}return this.animationConfig[d][0].name}},
_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});var CvM=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(CvM,_.He);var RfC=_.oK(CvM,[0,_.NJ]);var fN=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(fN,_.He);var V3l=[3,4],UJU=[5,6];var hfC=[0,V3l,UJU,_.Kr3,-1,_.bv,_.cLU,-1,f24,AeF];var Lt3=_.oK(fN,hfC),M3M=_.qN(hfC);var mJ3=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(mJ3,_.He);var wG0=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(wG0,_.He);var Pv6=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Pv6,_.He);var uh7=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(uh7,_.He);var Ir3=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Ir3,_.He);var AQ=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(AQ,_.He);AQ.prototype.getSource=function(){return _.rK(this,1)};
AQ.prototype.getMessage=function(){return _.IB(this,4)};
AQ.prototype.getData=function(){return _.gF(this,Ir3,8)};var rS7=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(rS7,_.He);var j0=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(j0,_.He);var vZ=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(vZ,_.He);var dY=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(dY,_.He);dY.prototype.getUrl=function(){return _.IB(this,1)};
dY.prototype.setUrl=function(d){return _.UY(this,1,d)};
dY.prototype.hasUrl=function(){return _.k0(_.n1(this,1))!=null};var WtA=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(WtA,_.He);var BKC=[3];var zfN=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(zfN,_.He);var H4=function(d){var H=new zfN;return _.G1(H,2,d)};
zfN.prototype.getLanguage=function(){return BG(this,4,$4)};
var XGS=function(d){var H=H4(1);return _.nc(H,6,$4,d)},$4=[3,
4,5,6];var JSA=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(JSA,_.He);var Ka=function(d){var H=new JSA;return _.G1(H,1,d)},c4=function(d,H){return _.nc(d,2,sBM,H)},sBM=[2,
3,4,5];var Ft7=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Ft7,_.He);var pa=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(pa,_.He);var Z1l=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Z1l,_.He);var TK3=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(TK3,_.He);var QBA=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(QBA,_.He);var t3C=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(t3C,_.He);var Yu7=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Yu7,_.He);var gY=function(d){return _.gF(d,vZ,5)};var O1N=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(O1N,_.He);O1N.prototype.getValue=function(){return PG(this,1)};var SuM=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(SuM,_.He);var i$=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(i$,_.He);i$.prototype.getMetadata=function(){return _.zZ(this,QBA,7,Gz)};
i$.prototype.hasMetadata=function(){return _.RB(this,QBA,7,Gz)};
var EV3=_.Zch(i$),Gz=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var oe=function(d){this.JSC$11953_name_=d;this.files_=[];this.directories_=[];this.directoryMap_={}};
oe.prototype.getName=function(){return this.JSC$11953_name_};var ae=function(d,H){this.callback_=H;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new oe("");yS7(this,d,this.rootDirectory_);qq(this)},yS7=function(d,H,K){for(var c=0;c<H.length;c++){var p=H[c];
p.isFile?(d.fileOps_++,p.file((0,_.LA)(d.handleFileSuccess_,d,K),(0,_.LA)(d.handleFileError_,d))):d.unscannedDirectories_.push(new b13(p,K))}},qq=function(d){if(d.unscannedDirectories_.length>0&&d.directoryOps_<5&&!d.hasError_){d.directoryOps_++;
var H=d.unscannedDirectories_.shift(),K=H.entry,c=new oe(K.name);H=H.parent;H.directoryMap_[c.getName()]=c;H.directories_.push(c);K=K.createReader();K.readEntries((0,_.LA)(d.handleDirectorySuccess_,d,K,c),(0,_.LA)(d.handleDirectoryError_,d))}d.directoryOps_!=0||d.fileOps_!=0||d.unscannedDirectories_.length!=0&&!d.hasError_||d.callback_(d.rootDirectory_.files_,d.rootDirectory_.directories_,d.hasError_)};
ae.prototype.handleDirectorySuccess_=function(d,H,K){yS7(this,K,H);K.length==0?(this.directoryOps_--,qq(this)):d.readEntries((0,_.LA)(this.handleDirectorySuccess_,this,d,H),(0,_.LA)(this.handleDirectoryError_,this))};
ae.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;qq(this)};
ae.prototype.handleFileSuccess_=function(d,H){d.files_.push(H);this.fileOps_--;qq(this)};
ae.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;qq(this)};
var b13=function(d,H){this.entry=d;this.parent=H};var l$=function(d){_.Rj.call(this);_.Iq(d,"drop",this.onObjectsDropped_,!1,this);_.Iq(d,"dragenter",this.onFilesDragged_,!1,this);_.Iq(d,"dragover",this.onFilesDragged_,!1,this);_.Iq(d,"dragleave",this.onDragLeave_,!1,this);_.Iq(d,"dragend",this.onDragLeave_,!1,this)};
_.K1(l$,_.Rj);var NKM=function(d,H){_.eo.call(this,"f");this.files=d;this.directories=H};
_.K1(NKM,_.eo);var DJ3=function(){_.eo.call(this,"h")};
_.K1(DJ3,_.eo);var frC=function(){_.eo.call(this,"i")};
_.K1(frC,_.eo);var ASM=function(){_.eo.call(this,"g")};
_.K1(ASM,_.eo);l$.prototype.onObjectsDropped_=function(d){var H=this;d.preventDefault();var K=d.event_.dataTransfer;if((d=K&&K.items)&&d.length>0&&d[0].webkitGetAsEntry){K=[];for(var c=[],p=0;p<d.length;p++){var g=d[p].webkitGetAsEntry();g?K.push(g):c.push(d[p])}new ae(K,function(a,e,k){k?H.dispatchEvent(new ASM("Error occurred while reading from the file system.")):H.dispatchEvent(new NKM(a,e,c))})}else(d=K&&K.files)&&this.dispatchEvent(new NKM(Array.from(d),[]))};
l$.prototype.onFilesDragged_=function(d){d.type==="dragenter"&&this.dispatchEvent(new DJ3);d.preventDefault()};
l$.prototype.onDragLeave_=function(){this.dispatchEvent(new frC)};var jBN=function(d,H){this.JSC$11976_name_=d;this.inputElement_=H};
jBN.prototype.getName=function(){return this.JSC$11976_name_};
jBN.prototype.getInputElement=function(){return this.inputElement_};var eK=function(d,H,K){H=H===void 0?"single_file":H;K=K===void 0?[]:K;_.Rj.call(this);this.overlayTarget_=d;this.parentOverlay_=d!=null?d.parentNode:_.x1("scotty-overlay-parent");this.selectorType_=H;this.acceptTypes_=K;this.overlay_=vVd(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.m(eK,_.Rj);
var vVd=function(d,H,K,c){var p=document.createElement("input");p.setAttribute("type","file");p.setAttribute("name","Filedata");_.Iq(p,"change",d.onFilesSelected_,!1,d);K==="multiple_file"&&(p.multiple="true");K==="single_directory"&&(p.webkitdirectory="true");c.length>0&&p.setAttribute("accept",c.join(","));p.style.position="absolute";p.style.overflow="hidden";p.style.height="0px";p.style.width="0px";p.style.opacity="0";p.setAttribute("aria-hidden","true");p.setAttribute("tabIndex",-1);if(d.overlayTarget_!=
null)return p.style.height=H.offsetHeight+"px",p.style.width=H.offsetWidth+"px",d.parentOverlay_&&(d.parentOverlay_.style.position="relative"),_.rv(p,H),sl(p,new _.Bf(H.offsetLeft,H.offsetTop)),p;d.parentOverlay_.appendChild(p);return p};
eK.prototype.click=function(){this.overlay_.click()};
eK.prototype.onFilesSelected_=function(d){a:{try{var H=(new XMLHttpRequest).upload!==void 0;break a}catch(C){}H=!1}if(H){var K;d=Array.from((K=d.target.files)!=null?K:[]);K=[];if(this.selectorType_==="single_directory"&&(_.oB||AX||_.GZ)){K=new oe("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(H=0;H<d.length;H++)for(var c=d[H],p=c.webkitRelativePath.split("/"),g=K,a=0;a<p.length;a++){var e=p[a];if(a==p.length-1){e!="."&&g.files_.push(c);break}var k=g.directoryMap_[e];k==void 0&&(e=
k=new oe(e),g.directoryMap_[e.getName()]=e,g.directories_.push(e));g=k}K=K.directories_}this.dispatchEvent(new d53(d,K,null))}else d=d.target.value,d.match(/^c:\\fakepath\\/i)&&(d=d.substring(12)),this.dispatchEvent(new d53([],[],new jBN(d,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=vVd(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var d53=function(d,H){_.eo.call(this,"j");this.files=d;this.directories=H};
_.m(d53,_.eo);var HVM=function(d){this.uploadUrl_=d};var $5A=function(){_.Rj.call(this)};
_.K1($5A,_.Rj);var k4=function(d){_.eo.call(this,d)};
_.K1(k4,_.eo);var x4=function(d){_.eo.call(this,d)};
_.K1(x4,_.eo);var Ks3=function(d,H,K,c,p){_.Rj.call(this);K=document.createElement("form");K.setAttribute("method",H);K.setAttribute("enctype","multipart/form-data");K.setAttribute("encoding","multipart/form-data");H=document.createElement("input");H.setAttribute("type","hidden");H.setAttribute("name","metadata");H.setAttribute("value",p);K.appendChild(H);K.appendChild(c);this.JSC$11993_form_=K;d=new _.jM(d);_.Y1(d,"upload_protocol","multipart");this.JSC$11993_url_=d.toString();this.JSC$11993_request_=new HZ;this.state_=
"Ready";this.JSC$11993_errorDescription_=null;this.JSC$11993_eventHandler_=new _.GA(this);_.q_(this,this.JSC$11993_eventHandler_);this.JSC$11993_eventHandler_.listen(this.JSC$11993_request_,"success",this.onTransferSuccess_);this.JSC$11993_eventHandler_.listen(this.JSC$11993_request_,"error",this.onTransferError_)};
_.m(Ks3,$5A);_.G=Ks3.prototype;_.G.run=function(){this.state_="Transferring";var d=this.JSC$11993_request_,H=this.JSC$11993_form_;if(d.JSC$11412_active_)throw Error("me");var K=new _.jM(this.JSC$11993_url_||H.action);d.JSC$11412_form_=H;H=d.JSC$11412_form_;K=_.Fa(K.toString());K!==void 0&&(H.action=K);BgA(d)};
_.G.getResponseCode=function(){return null};
_.G.getResponseText=function(){return this.JSC$11993_request_&&this.JSC$11993_request_.getResponseText()||null};
_.G.JSC$29332_getErrorDescription=function(){return this.JSC$11993_errorDescription_};
_.G.cancel=function(){this.JSC$11993_request_&&this.JSC$11993_request_.abort();this.state_="Cancelled";this.dispatchEvent(new k4("o"))};
_.G.pause=function(){};
_.G.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new k4("l"))};
_.G.onTransferError_=function(){this.JSC$11993_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new k4("n"))};var na=function(){_.P9.call(this)};
_.m(na,_.P9);na.prototype.createXhr=function(){var d=_.P9.prototype.createXhr.call(this);d.upload&&(d.upload.onprogress=(0,_.LA)(this.onProgress_,this));return d};
na.prototype.onProgress_=function(d){this.dispatchEvent(d)};var c96=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},gtl=function(d,H){var K=d.attempt_+1;
if(d.maxAttempts_>0&&K>d.maxAttempts_)return!1;K==0?H():d.delayCallId_=MW(function(){d.delayCallId_=null;H()},prS(d),d);
d.attempt_=K;return!0};
c96.prototype.reset=function(){this.delayCallId_&&_.KF.clearTimeout(this.delayCallId_);this.attempt_=-1};
var prS=function(d){var H=250*Math.pow(2,d.attempt_);d.maxDelayMs_>=0&&(H=Math.min(H,d.maxDelayMs_));return H};var yvi=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var Ca=function(){_.Rj.call(this);this.JSC$12003_request_=this.state_=null;this.JSC$12003_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12003_bytesTransferred_=0;this.retryIterator_=new c96;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12003_errorDescription_=null;this.JSC$12003_eventHandler_=new _.GA(this);_.q_(this,this.JSC$12003_eventHandler_);this.JSC$12003_url_=this.blob_=null;this.JSC$12003_method_=void 0;this.chunkSize_=this.JSC$12003_metadata_=
this.JSC$12003_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12003_responseText_=this.JSC$12003_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.K1(Ca,$5A);_.G=Ca.prototype;_.G.run=function(){Re(this)};
_.G.getResponseCode=function(){return this.JSC$12003_responseCode_};
_.G.getResponseText=function(){return this.JSC$12003_responseText_};
_.G.JSC$29332_getErrorDescription=function(){return this.JSC$12003_errorDescription_};
_.G.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12003_eventHandler_.removeAll();this.JSC$12003_request_&&this.JSC$12003_request_.abort();this.retryIterator_.reset();var d=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(d==="Upload"||d==="Query")d=new na,d.JSC$9767_withCredentials_=this.JSC$12003_withCredentials_,d.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12003_bytesTransferred_=
0;this.dispatchEvent(new k4("o"))}};
_.G.pause=function(){this.pauseRequested_=!0};
var Re=function(d){var H=d.state_;d.pauseRequested_?(d.pauseRequested_=!1,d.stateAfterUnpausing_=H,d.state_="Paused"):gtl(d.retryIterator_,function(){switch(d.state_){case "Start":d.JSC$12003_request_=new na;var K=_.rs.clone(d.JSC$12003_headers_);d.blob_.size!=null&&(K["Content-Length"]=d.blob_.size);K=bGE(K);K["X-Goog-Upload-Protocol"]="resumable";K["X-Goog-Upload-Command"]="start";d.JSC$12003_eventHandler_.removeAll();d.JSC$12003_eventHandler_.listen(d.JSC$12003_request_,"complete",d.onStartComplete_);
d.JSC$12003_request_.JSC$9767_withCredentials_=d.JSC$12003_withCredentials_;d.JSC$12003_request_.send(d.JSC$12003_url_,d.JSC$12003_method_,d.JSC$12003_metadata_,K);d.lastCommandResponseCode_=null;d.dispatchEvent(new x4("q"));break;case "Upload":K=d.transferHandle_.uploadUrl_;var c=d.blob_.size;if(G57()){var p=d.chunkSize_;var g=d.offset_+p>=c;c=in3(d.blob_,d.offset_,g?c:d.offset_+p)}else d.offset_=0,c=d.blob_,g=!0;d.JSC$12003_request_=new na;d.JSC$12003_request_.JSC$9767_withCredentials_=d.JSC$12003_withCredentials_;
d.JSC$12003_eventHandler_.removeAll();d.JSC$12003_eventHandler_.listen(d.JSC$12003_request_,"progress",d.onUploadProgress_);p=(0,_.LA)(d.JSC$12005_onUploadComplete_,d,d.offset_+c.size,g);d.JSC$12003_eventHandler_.listen(d.JSC$12003_request_,"complete",p);d.lastCommandResponseCode_=null;d.dispatchEvent(new x4("q"));g=Object.assign({},d.JSC$12003_headers_||{},{"X-Goog-Upload-Command":"upload"+(g?", finalize":""),"X-Goog-Upload-Offset":d.offset_});d.JSC$12003_request_.send(K,"POST",c,g);break;case "Query":d.JSC$12003_request_=
new na;d.JSC$12003_eventHandler_.removeAll();d.JSC$12003_eventHandler_.listen(d.JSC$12003_request_,"complete",d.onQueryComplete_);K=Object.assign({},d.JSC$12003_headers_||{},{"X-Goog-Upload-Command":"query"});d.JSC$12003_request_.send(d.transferHandle_.uploadUrl_,"POST","",K);d.lastCommandResponseCode_=null;d.dispatchEvent(new x4("q"));break;default:throw Error("bf");}})||Vi(d,"Transfer encountered too many consecutive failures.")},Vi=function(d,H){d.state_="Error";
d.JSC$12003_errorDescription_=H;d.dispatchEvent(new k4("n"))};
Ca.prototype.onStartComplete_=function(d){var H=d.target;this.lastCommandResponseCode_=H.getStatus();this.dispatchEvent(new x4("r"));if(iVd(H))Gj0(this,H);else if(otX(H)){d=ye(d.target.getAllResponseHeaders());for(var K in d)_.gh(K.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new k4("m"));K=W3(d,"X-Goog-Upload-URL");d=(d=W3(d,"X-Goog-Upload-Chunk-Granularity"))?parseInt(d,10):1;K===void 0||isNaN(d)||d<=0?Vi(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
d)*d,this.transferHandle_=new HVM(K),this.dispatchEvent(new k4("p")),this.state_="Upload",this.retryIterator_.reset(),Re(this))}else Re(this)};
Ca.prototype.onUploadProgress_=function(d){this.JSC$12003_bytesTransferred_=this.offset_+d.loaded;this.dispatchEvent(new k4("k"))};
Ca.prototype.JSC$12005_onUploadComplete_=function(d,H,K){var c=this,p,g;return _.l(function(a){switch(a.nextAddress){case 1:p=K.target;c.lastCommandResponseCode_=p.getStatus();c.dispatchEvent(new x4("r"));if(ql7(p)||p.getStatus()==404)return c.JSC$12003_bytesTransferred_=d,Gj0(c,p),a.return();if(otX(p)){a.jumpTo(2);break}if(!(g=c.detectCorruptedBlobEnabled_)){a.jumpTo(3);break}return a.yield(ae7(c),4);case 4:g=a.yieldResult;case 3:if(g)return Vi(c,"Blob has been modified or corrupted."),a.return();
c.requireUploadRequestModification_=p.getStatus()==400;c.state_="Query";Re(c);return a.return();case 2:if(H)return Vi(c,"Got a non-final success response after issuing a finalize command."),a.return();c.JSC$12003_bytesTransferred_=d;c.offset_=d;c.retryIterator_.reset();Re(c);return a.return()}})};
Ca.prototype.onQueryComplete_=function(d){var H=d.target;this.lastCommandResponseCode_=H.getStatus();this.dispatchEvent(new x4("r"));iVd(H)?(H.getStatus()===200&&(this.JSC$12003_bytesTransferred_=this.blob_.size),Gj0(this,H)):otX(H)?(d=ye(d.target.getAllResponseHeaders()),d=parseInt(W3(d,"X-Goog-Upload-Size-Received"),10),isNaN(d)?Vi(this,"Server did not respond with current offset."):d<this.offset_?Vi(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
d+"."):this.requireUploadRequestModification_&&this.offset_===d?Vi(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<d&&this.retryIterator_.reset(),this.offset_=this.JSC$12003_bytesTransferred_=d,this.state_="Upload",Re(this))):Re(this)};
var Gj0=function(d,H){d.JSC$12003_responseCode_=H.getStatus();var K=ye(H.getAllResponseHeaders());NMl(K);d.JSC$12003_responseText_=H.getResponseText();d.state_="Response received";d.dispatchEvent(new k4("l"))},otX=function(d){var H=d.getStatus();
d=ye(d.getAllResponseHeaders());d=W3(d,"X-Goog-Upload-Status");return H===200&&d==="active"},ql7=function(d){d=ye(d.getAllResponseHeaders());
return W3(d,"X-Goog-Upload-Status")==="final"},iVd=function(d){if(ql7(d))return!0;
d=d.getStatus();return d>=400&&d<500},ae7=function(d){var H;
return _.l(function(K){if(K.nextAddress==1){if(!d.blob_||d.originalBlobSize_<=0)return K.return(!1);if(d.blob_.size!==d.originalBlobSize_)return K.return(!0);_.e2(K,2);if(H=in3(d.blob_,0,1)){var c=K.yield,p=new T8,g=NnN(p);p.reader_.readAsBinaryString(H);K=c.call(K,g,4)}else K=K.return(!0);return K}if(K.nextAddress!=2)return K.return(d.blob_.size!==d.originalBlobSize_);_.RV(K);return K.return(!0)})};var leg=function(d,H,K,c,p,g){_.Rj.call(this);this.payload_=c;this.JSC$12006_url_=d;this.JSC$12006_method_=H;this.JSC$12006_headers_=K;this.JSC$12006_metadata_=p;this.encoding_=g||"binary";d=new _.mq;this.boundary_="uploader-"+Ti()+"-"+d.JSC$11261_toIsoString();this.JSC$12006_responseText_=this.JSC$12006_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12006_errorDescription_=null;this.JSC$12006_eventHandler_=new _.GA(this);_.q_(this,this.JSC$12006_eventHandler_)};
_.m(leg,$5A);_.G=leg.prototype;
_.G.run=function(){var d=_.rs.clone(this.JSC$12006_headers_);this.payload_.length!=null&&(d["Content-Length"]=this.payload_.length);d=bGE(d);d["X-Goog-Upload-Protocol"]="multipart";d["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new na;this.JSC$12006_eventHandler_.removeAll();this.JSC$12006_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12006_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12006_url_,this.JSC$12006_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12006_metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",d)};
_.G.getResponseCode=function(){return this.JSC$12006_responseCode_};
_.G.getResponseText=function(){return this.JSC$12006_responseText_};
_.G.JSC$29332_getErrorDescription=function(){return this.JSC$12006_errorDescription_};
_.G.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12006_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new k4("o")))};
_.G.pause=function(){};
_.G.onTransferProgress_=function(){this.dispatchEvent(new k4("k"))};
_.G.onTransferComplete_=function(d){var H=d.target.getStatus();H===void 0||H===-1?(this.JSC$12006_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new k4("n"))):(this.JSC$12006_responseCode_=H,d=d.target,H=ye(d.getAllResponseHeaders()),NMl(H),this.JSC$12006_responseText_=d.getResponseText(),this.state_="Complete",this.dispatchEvent(new k4("l")))};_.eW3=function(d,H,K,c){c=c===void 0?!1:c;if(K instanceof jBN)return new Ks3(d,"POST",H,K.getInputElement(),"");if(typeof K==="string"||K instanceof String)return new leg(d,"POST",H,K,"");var p=new Ca(void 0);p.JSC$12003_url_=d;p.JSC$12003_method_="POST";p.JSC$12003_headers_=H;p.blob_=K;p.originalBlobSize_=K.size;p.JSC$12003_metadata_="";c&&(p.JSC$12003_withCredentials_=c);p.state_="Start";return p};var UV=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(UV,_.He);_.G=UV.prototype;_.G.getEnableSsEngine=function(){return _.wK(this,2)};
_.G.getEnableAwr=function(){return _.wK(this,3)};
_.G.getAlohaAutoGaRollout=function(){return _.wK(this,5)};
_.G.getEnableConfigurator=function(){return _.wK(this,6)};
_.G.getEnableMweb=function(){return _.wK(this,7)};
var x5A=function(){var d=kj6();return _.zA(d,7,!0)};
UV.prototype.getEnableCtlConsentCheckbox=function(){return _.wK(this,8)};
UV.prototype.getEnableIframe=function(){return _.wK(this,9)};
var kj6=function(){var d=new UV;d=_.zA(d,5,!0);d=_.zA(d,2,!0);d=_.zA(d,4,!1);d=_.zA(d,8,!0);return _.zA(d,9,!0)};
UV.prototype.getEnableScreenshotNudge=function(){return _.wK(this,10)};
var ntd=function(){var d=x5A();return _.zA(d,10,!0)};
UV.prototype.getEnableWebStartupConfigEndpoint=function(){return _.wK(this,11)};
UV.prototype.getEnableJunkNudge=function(){return _.wK(this,12)};
var enC=function(){var d=ntd();return _.zA(d,12,!0)};
_.G=UV.prototype;_.G.getEnableConfiguratorLocale=function(){return _.wK(this,13)};
_.G.getEnableTinyNoPointer=function(){return _.wK(this,14)};
_.G.getEnableSupportSessionLogging=function(){return _.wK(this,15)};
_.G.getEnableFileUploadForScreenshot=function(){return _.wK(this,16)};
_.G.getEnableDirectDeflectionForSingleCategory=function(){return _.wK(this,17)};
_.G.getEnableImageSanitization=function(){return _.wK(this,18)};
_.G.getEnableAlohaBinarySplit=function(){return _.wK(this,19)};
_.G.getEnableDbFeedbackIntents=function(){return _.wK(this,20)};
_.G.getEnableMarkMandatoryFieldsWithRequired=function(){return _.wK(this,21)};
_.G.getEnableFeedbackCategoryCustomUi=function(){return _.wK(this,22)};
_.G.getEnableRealtimeCtl=function(){return _.wK(this,23)};var lRE=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(lRE,_.He);var D3D=[/https:\/\/sandbox\.google\.com\/tools\/feedback/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/inapp/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/tools\/feedback/,/https:\/\/.*\.googleusercontent\.com\/inapp/];var Av4="af am ar-EG ar-JO ar-MA ar-SA ar-XB ar az be bg bn bs ca cs cy da de-AT de-CH de el en en-GB en-AU en-CA en-IE en-IN en-NZ en-SG en-XA en-XC en-ZA es es-419 es-AR es-BO es-CL es-CO es-CR es-DO es-EC es-GT es-HN es-MX es-NI es-PA es-PE es-PR es-PY es-SV es-US es-UY es-VE et eu fa fi fil fr-CA fr-CH fr gl gsw gu he hi hr hu hy id in is it iw ja ka kk km kn ko ky ln lo lt lv mk ml mn mo mr ms my nb ne nl no pa pl pt pt-BR pt-PT ro ru si sk sl sq sr-Latn sr sv sw ta te th tl tr uk ur uz vi zh zh-CN zh-HK zh-TW zu".split(" ");var jYD=_.y$(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),v3C=_.y$(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Hbi,c4l,$Y4,pqF;var CBg,RWA;
CBg=function(d,H,K){d.timeOfStartCall=(new Date).getTime();var c=K||_.KF,p=c.document,g=d.nonce||_.yB(c.document);g&&!d.nonce&&(d.nonce=g);if(d.flow=="help"){var a=_.OS("document.location.href",c);!d.helpCenterContext&&a&&(d.helpCenterContext=a.substring(0,1200));a=!0;if(H&&JSON&&JSON.stringify){var e=JSON.stringify(H);(a=e.length<=1200)&&(d.psdJson=e)}a||(H={invalidPsd:!0})}H=[d,H,K];c.GOOGLE_FEEDBACK_START_ARGUMENTS=H;K=d.feedbackServerUri||"//www.google.com/tools/feedback";if(a=c.GOOGLE_FEEDBACK_START)a.apply(c,H);
else{c=K+"/load.js?";for(var k in d)H=d[k],H==null||_.y4(H)||(c+=encodeURIComponent(k)+"="+encodeURIComponent(H)+"&");d=Vy(p).createElement("SCRIPT");g&&d.setAttribute("nonce",g);_.fc(d,_.hL(c));p.body.appendChild(d)}};
RWA=function(d,H,K,c){var p,g;_.l(function(a){p=K||_.KF;var e=d.serverEnvironment==="DEV",k=K||_.KF;k=d.nonce||_.yB(k.document);e={integrationKeys:{productId:d.productId,feedbackBucket:d.bucket,triggerId:d.triggerId},callbacks:{onClose:d.callback,onLoad:d.onLoadCallback},formContent:{locale:d.locale,disableScreenshot:d.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,
defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:d.abuseLink,additionalDataConsent:d.additionalDataConsent},initializationData:{isLocalServer:e,nonce:k,useNightlyRelease:e,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:d.feedbackServerUri,colorScheme:d.colorScheme},extraData:{productVersion:d.productVersion,authUser:d.authuser,configuratorId:d.configuratorId,customZIndex:d.customZIndex,tinyNoPointer:d.tinyNoPointer,
allowNonLoggedInFeedback:d.allowNonLoggedInFeedback,enableAnonymousFeedback:d.enableAnonymousFeedback}};H&&(k=new Map(Object.entries(H)),e.extraData.productSpecificData=k);g=e;return a.yield(oFF(g,c,p),0)})};
_.VRl=function(d,H,K){try{if(d.flow==="help"){var c=d.helpCenterPath.replace(/^\//,"");_.EH(K||window,"https://support.google.com/"+c)}else d.flow==="submit"?CBg(d,H,K):kpf(d.productId,d.feedbackServerUri).then(function(p){p=_.gF(p,UV,1);var g=!CzF||(p==null?void 0:p.getEnableMweb()),a=!d.tinyNoPointer||(p==null?void 0:p.getEnableTinyNoPointer());!p||p.getAlohaAutoGaRollout()&&g&&a?RWA(d,H,K,p):CBg(d,H,K)},function(p){p&&p.name!=="DuplicateFormError"&&CBg(d,H,K)})}catch(p){RWA(d,H,K,null)}};
_.vb("userfeedback.api.startFeedback",_.VRl);var xYL=/https?:\/\/\S+\.\S+/,nFi=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],CJC=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var zVf=function(d){var H=d.split(""),K=[-263237435,15,H,function(c,p,g){var a=p.length;g.forEach(function(e,k,C){this.push(C[k]=p[(p.indexOf(e)-p.indexOf(this[k])+k+a--)%p.length])},c.split(""))},
function(c,p){c=(c%p.length+p.length)%p.length;p.splice(-c).reverse().forEach(function(g){p.unshift(g)})},
"response",function(){for(var c=64,p=[];++c-p.length-32;){switch(c){case 58:c-=14;case 91:case 92:case 93:continue;case 123:c=47;case 94:case 95:case 96:continue;case 46:c=95}p.push(String.fromCharCode(c))}return p},
null,12,1540023973,65941107,null,H,function(c,p){for(c=(c%p.length+p.length)%p.length;c--;)p.unshift(p.pop())},
695603893,function(c){for(var p=c.length;p;)c.push(c.splice(--p,1)[0])},
"'[;'[(",function(c,p){c.push(p)},
null,function(c,p,g,a,e){return p(g,a,e)},
"continuation",H,function(c,p){if(c.length!=0){p=(p%c.length+c.length)%c.length;var g=c[0];c[0]=c[p];c[p]=g}},
function(){for(var c=64,p=[];++c-p.length-32;){switch(c){case 91:c=44;continue;case 123:c=65;break;case 65:c-=18;continue;case 58:c=96;continue;case 46:c=95}p.push(String.fromCharCode(c))}return p},
'"),/]];'];K[7]=K;K[11]=K;K[18]=K;try{(((0,K[15])(K[21]),K[22])(K[11],K[9]),K[22])(K[new Date("1970-01-01T04:30:12.000+04:30")/1E3],K[1]),((0,K[22])(K[11],K[23]),K[4])(K[10],K[18]),(0,K[20])(K[21],K[14])<<(0,K[17])(K[18],K[1]),(0,K[4])(K[8],K[21]),(0,K[19])((0,K[19])((0,K[17])(K[7],K[9]),K[3],K[20],(0,K[6])(),K[2]),K[3],K[5],(0,K[15])(),K[2])}catch(c){return"aTlOUOubTO4AP____8P_"+d}return H.join("")};_.U5B=new _.Dk("runAttestationCommand");var hW3=new _.Dk("verifyCommand");_.hs=new _.Dk("accessibilityContext");var Ls7=new _.Dk("accessibilityData");var MRX=new _.Dk("profileCardCommand");var J3C=new _.Dk("signInEndpoint");var XXM=new _.Dk("signOutEndpoint");var wrg;_.m5l=new _.Dk("accountItemSectionRenderer");wrg=new _.Dk("accountItemRenderer");_.PBg=new _.Dk("saveCommandToSessionStorageAction");var u2B=new _.Dk("crossAccountChannelTransferEndpoint");var rU1=new _.Dk("getAccountMenuEndpoint");_.W$4=new _.Dk("getAccountSwitcherEndpoint");var I1C=new _.Dk("getAccountsListEndpoint");var Ie3=new _.Dk("getAccountsListInnertubeEndpoint");_.La=new _.Dk("addToToastAction");var r9g=new _.Dk("hideEnclosingAction");_.Mq=new _.Dk("replaceEnclosingAction");var Wsg=new _.Dk("buttonRefreshAction");var BvX=new _.Dk("adsControlFlowOpportunityReceivedCommand");var zW0=new _.Dk("openAdAllowlistInstructionCommand");var XrC=new _.Dk("videoMastheadAdPrimaryVideoRenderer");var J93=new _.Dk("displayAdRenderer");var gxF=new _.Dk("instreamVideoAdRenderer");_.spS=new _.Dk("inFeedAdLayoutRenderer");var Fs7=new _.Dk("sequenceItemInPlayerAdLayoutRenderer");_.ZVN=new _.Dk("adSlotRenderer");var TvM=new _.Dk("adAvatarViewModel");var QpS=new _.Dk("adBadgeViewModel");var tR3=new _.Dk("adImageViewModel");var K85=new _.Dk("reelsAdCardButtonedViewModel");var Yl3=new _.Dk("reelsPlayerOverlayLayoutViewModel");var OVM=new _.Dk("showSchedulingPanelCommand");var Sl6=new _.Dk("backstageCommentsRenderer");var Etl=new _.Dk("backstageImageRenderer");var y9X=new _.Dk("backstagePostRenderer");var bVU=new _.Dk("backstageZeroStateRenderer");var Nv0=new _.Dk("postRenderer");var D5S=new _.Dk("sharedPostRenderer");var fe3=new _.Dk("createBackstagePostEndpoint");var A9g=new _.Dk("getPostVideoPreviewEndpoint");var jpN=new _.Dk("updateBackstagePostEndpoint");var vtC=new _.Dk("filterChipTransformCommand");var dW6=new _.Dk("insertRichSectionCommand");var DuM=new _.Dk("talkToRecsDeselectCommand");var Hq7=new _.Dk("talkToRecsNextCommand");var NWM=new _.Dk("talkToRecsSelectCommand");var $W0=new _.Dk("talkToRecsUpdateTextCommand");_.Lm=new _.Dk("browseEndpoint");_.KUC=new _.Dk("confirmDialogEndpoint");var cHl=new _.Dk("expandOnHoverCardRenderer");var p9M=new _.Dk("lumiereShelfDetailsRenderer");var gJ0=new _.Dk("revealBusinessEmailCommand");var iqX=new _.Dk("validateChannelHandleCommand");var GwS=new _.Dk("channelCreationFormEndpoint");var oJS=new _.Dk("aboutChannelViewModel");var qL3=new _.Dk("channelThumbnailWithLinkRenderer");var aS6=new _.Dk("channelCreationServiceEndpoint");var lSN=new _.Dk("updateChannelPageSettingsEndpoint");var m_=function(d){this.delegate=d},wY=function(){m_.apply(this,arguments)};
_.m(wY,m_);_.H3.Object.defineProperties(wY.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(d){this.delegate.entityMetadata=d}}});var ebA=function(){wY.apply(this,arguments)};
_.m(ebA,wY);ebA.prototype.getAssociations=function(){return[]};
ebA.prototype.getTypeName=function(){return"channelHandle"};var YfC=new _.Dk("webThumbnailDetailsExtensionData");var $nL=new _.Dk("commandContext");var kw3=new _.Dk("addVideoLinkAction");var xWU=new _.Dk("banAuthorAction");var nJN=new _.Dk("createCommentAction");var CA3=new _.Dk("createCommentReplyAction");var RbM=new _.Dk("createPollAction");var Vog=new _.Dk("hideIdentityChipAction");var UW7=new _.Dk("openUpdateCommentDialogAction");var hbl=new _.Dk("pinCommentAction");var LUA=new _.Dk("removeCommentAction");var Mo6=new _.Dk("unpinCommentAction");var P4=new _.Dk("updateBackstagePollAction");var mWl=new _.Dk("updateCommentVoteAction");var w9l=new _.Dk("commentThreadRenderer");var PA6=function(){wY.apply(this,arguments)};
_.m(PA6,wY);PA6.prototype.getAssociations=function(){return[]};
PA6.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var uDM=function(){wY.apply(this,arguments)};
_.m(uDM,wY);uDM.prototype.getAssociations=function(){return[]};
uDM.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.ISd=new _.Dk("commentDialogRenderer");var rHN=new _.Dk("reloadCommentsCommand");var WUB=new _.Dk("updateCommentsSettingsEndpoint");var BN3=new _.Dk("commentViewModel");var zbA=new _.Dk("triStateButtonViewModel");var X9S=new _.Dk("voiceReplyContainerViewModel");_.kW=new _.Dk("commandExecutorCommand");var sG=new _.Dk("emoji");var JHA=new _.Dk("updateCreatorChannelInnertubeCommand");_.sjg=new _.Dk("appendContinuationItemsAction");_.FUl=new _.Dk("changeEngagementPanelVisibilityAction");_.YM=new _.Dk("continuationCommand");var Zqg=new _.Dk("hideReportedCommentAction");var TNC=new _.Dk("listMutationCommand");_.u$=new _.Dk("openPopupAction");var QjB=new _.Dk("persistSubscriptionsDisplayPreferencesCommand");var NN3;_.toB=new _.Dk("playlistRemoveVideosAction");_.YLl=new _.Dk("updatePlaylistAction");_.OqM=new _.Dk("addToPlaylistCommand");_.SLl=new _.Dk("endPlaylistCommand");_.EJ6=new _.Dk("recoverPlaylistCommand");_.yHA=new _.Dk("refreshPlaylistCommand");_.bqS=new _.Dk("refreshFormCommand");NN3=new _.Dk("openOnePickAddVideoModalCommand");_.F$1=new _.Dk("reloadContinuationItemsCommand");_.DW3=new _.Dk("scrollToEngagementPanelCommand");var fS0=new _.Dk("selectCountryCommand");var AHg=new _.Dk("showReloadUiCommand");var jjM=new _.Dk("undoFeedbackAction");var vJC=new _.Dk("updateButtonAction");var d3l=new _.Dk("updateSubscribeButtonAction");var HGX=new _.Dk("updateToggleAction");var $3M=new _.Dk("webNativeShareCommand");_.Co=new _.Dk("webCommandMetadata");_.Ie=new _.Dk("webHandleServiceEndpointExtension");var ZYE=new _.Dk("webNavigationEndpointData");var KC0=new _.Dk("backgroundAudioPlaybackCommand");var cv7=new _.Dk("copyLinkCommand");var pQl=new _.Dk("playlistVotingRefreshPopupCommand");var g3S=new _.Dk("selectChipCommand");var iGl=new _.Dk("setCookieCommand");var GQ3=new _.Dk("setLocalStorageCommand");var o33=new _.Dk("setPrefStorageEntryCommand");var e1C;_.qRA=new _.Dk("settingsUpdateCheckboxCommand");_.akA=new _.Dk("settingsUpdateTextCommand");_.lkd=new _.Dk("settingsUpdateOptionsCommand");e1C=new _.Dk("settingsUpdateSwitchCommand");_.kQ3=new _.Dk("settingsUpdateConnectedAppRendererCommand");var x33=new _.Dk("updateTextInputFormFieldRendererCommand");var n3d=new _.Dk("updateToggleButtonStateCommand");var CIB=new _.Dk("updateUrlParamCommand");var R1B=new _.Dk("webSubmitFormCommand");var VJU=new _.Dk("channelSwitcherPageRenderer"),U3X=new _.Dk("updateChannelSwitcherPageAction");_.AE=new _.Dk("continuationItemRenderer");_.rY=new _.Dk("richItemRenderer");var h1M=new _.Dk("richSectionRenderer");_.LC3=new _.Dk("richShelfRenderer");_.MJU=new _.Dk("metadataBadgeRenderer");_.m33=new _.Dk("multiPageMenuNotificationSectionRenderer");_.wQA=new _.Dk("playlistLoopButtonStateRenderer");var PIC=new _.Dk("claimLegacyYoutubeChannelEndpoint");var uE3=new _.Dk("getNotificationMenuEndpoint");var Ikd=new _.Dk("getSearchInVideoCommand");_.rv7=new _.Dk("getTranscriptEndpoint");_.no=new _.Dk("signalServiceEndpoint");var WC0=new _.Dk("verifyAgeEndpoint");var syh=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(syh,_.He);syh.prototype.getPath=function(){return _.IB(this,1)};
syh.prototype.getValue=function(){return _.IB(this,2)};var BMB=[0,_.Eu,-1];var z1X=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(z1X,_.He);var JK4=_.oK(z1X,[0,_.y8,BMB]);var XQM=new _.Dk("dismissalEndpoint");var JvB=new _.Dk("elementsCommand");_.ZX=new _.Dk("innertubeCommand");var sYS=new _.Dk("multipleInlinePlaybackCommand");var hHi=new _.Dk("loggingDirectives");var FCU=new _.Dk("acknowledgeChannelTouStrikeCommand");var ZGB=function(){wY.apply(this,arguments)};
_.m(ZGB,wY);ZGB.prototype.getAssociations=function(){return[]};
ZGB.prototype.getTypeName=function(){return"booleanEntity"};var TMC=function(){wY.apply(this,arguments)};
_.m(TMC,wY);TMC.prototype.getAssociations=function(){return[]};
TMC.prototype.getTypeName=function(){return"stringEntity"};var Au=new _.Dk("entityBatchUpdate");_.QY6=new _.Dk("entityUpdateCommand");var tJg=function(){wY.apply(this,arguments)};
_.m(tJg,wY);tJg.prototype.getAssociations=function(){var d=[];this.delegate.alternateChannel&&d.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&d.push.apply(d,_.ru(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&d.push(this.delegate.oneofChannelEntity);return[].concat(_.ru(new Set(d)))};
tJg.prototype.getTypeName=function(){return"fakeChannel"};var YR3=function(){wY.apply(this,arguments)};
_.m(YR3,wY);YR3.prototype.getAssociations=function(){var d=[];this.delegate.entryCollection&&d.push(this.delegate.entryCollection);return[].concat(_.ru(new Set(d)))};
YR3.prototype.getTypeName=function(){return"fakePlaylist"};
var OGM=function(){wY.apply(this,arguments)};
_.m(OGM,wY);OGM.prototype.getAssociations=function(){var d=[];this.delegate.parentPlaylist&&d.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var H=_.q(this.delegate.entries),K=H.next();!K.done;K=H.next())d.push.apply(d,_.ru((new SRX(K.value)).getAssociations()));return[].concat(_.ru(new Set(d)))};
OGM.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var SRX=function(){m_.apply(this,arguments)};
_.m(SRX,m_);SRX.prototype.getAssociations=function(){var d=[];this.delegate.video&&d.push(this.delegate.video);return[].concat(_.ru(new Set(d)))};var E3X=function(){wY.apply(this,arguments)};
_.m(E3X,wY);E3X.prototype.getAssociations=function(){var d=[];this.delegate.descriptionEntity&&d.push(this.delegate.descriptionEntity);this.delegate.creators&&d.push.apply(d,_.ru(this.delegate.creators));this.delegate.theBiggestFan&&d.push(this.delegate.theBiggestFan);return[].concat(_.ru(new Set(d)))};
E3X.prototype.getTypeName=function(){return"fakeVideo"};
var yvg=function(){wY.apply(this,arguments)};
_.m(yvg,wY);yvg.prototype.getAssociations=function(){return[]};
yvg.prototype.getTypeName=function(){return"fakeVideoDescription"};var bGC=new _.Dk("fantasyRosterViewModel");var NMS=new _.Dk("addFollowUpSurveyCommand");var D30=new _.Dk("getSurveyCommand");var fk3=new _.Dk("ratingSurveyOptionRenderer");_.Ww=new _.Dk("feedbackEndpoint");var Avl=new _.Dk("reportHistoryTableCellRenderer"),jY0=new _.Dk("reportHistoryTableTextCellRenderer"),v3N=new _.Dk("reportHistoryTableReasonCellRenderer");_.dY6=new _.Dk("flagEndpoint");var Hbg=new _.Dk("getFlowCommand");var $Yl=new _.Dk("submitFormWithValidationFlowCommand");var Kad=function(){wY.apply(this,arguments)};
_.m(Kad,wY);Kad.prototype.getAssociations=function(){return[]};
Kad.prototype.getTypeName=function(){return"flowStateEntity"};var c4S=new _.Dk("flowFormState");var pqX=new _.Dk("gameCardRenderer");var gF0=new _.Dk("accountLinkingStateChangedCommand");var ibS=function(){wY.apply(this,arguments)};
_.m(ibS,wY);ibS.prototype.getAssociations=function(){return[]};
ibS.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var Gp3=new _.Dk("changeMiniAppPlayStateCommand");var oFB=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(oFB,_.He);var W4=[1,2,3];var q4A=[0,W4,Eof,_.yeC,Z25];var aRg=_.oK(oFB,q4A),lRC=_.qN(q4A);var enN=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(enN,_.He);var kpU=[0,_.YV,_.Eu];var xY3=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(xY3,_.He);var nFg=[0,_.Eu,_.YV,-1];var B4=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(B4,_.He);var CJN=_.qN([0,1,kpU,_.NJ,nFg]);var RnN=new _.Dk("miniAppScoreChallengeViewModel");var Vq6=new _.Dk("miniGameCardViewModel");var UY7=new _.Dk("teaserCardViewModel");var hnS=function(){wY.apply(this,arguments)};
_.m(hnS,wY);hnS.prototype.getAssociations=function(){return[]};
hnS.prototype.getTypeName=function(){return"logoEntity"};_.LaM=new _.Dk("feedbackItemRenderer");var Mq6=function(){wY.apply(this,arguments)};
_.m(Mq6,wY);Mq6.prototype.getAssociations=function(){return[]};
Mq6.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.mY3=new _.Dk("playerInterstitialRenderer");var wqM=new _.Dk("getKidsBlocklistPickerCommand");_.PJ6=new _.Dk("updateKidsBlacklistEndpoint");_.Za=new _.Dk("likeEndpoint");var u$A,IR0,r4d;u$A=new _.Dk("addChatItemAction");IR0=new _.Dk("removeChatItemAction");r4d=new _.Dk("markChatItemAsDeletedAction");_.Wa3=new _.Dk("setLiveChatCollapsedStateAction");var BpX=function(){wY.apply(this,arguments)};
_.m(BpX,wY);BpX.prototype.getAssociations=function(){return[]};
BpX.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var znX=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(znX,_.He);var Xqd=_.oK(znX,[0,1,_.YV]);var J4A=new _.Dk("liveChatEndpoint");var sGN=new _.Dk("liveChatItemContextMenuEndpoint");var Fa6=new _.Dk("liveChatReplayEndpoint");_.Zb7=new _.Dk("emojiPickerRenderer");var Tp3=new _.Dk("liveChatAuthorBadgeViewModel");var QGB=new _.Dk("deleteLiveChatMessageCommand");var tqX=new _.Dk("liveChatActionEndpoint");var Y4C=new _.Dk("createLiveChatPollEndpoint");var Ob0=new _.Dk("manageLiveChatUserEndpoint");var S4C=new _.Dk("moderateLiveChatEndpoint");_.EF3=new _.Dk("sendLiveChatMessageEndpoint");var y4d=new _.Dk("sendLiveChatVoteEndpoint");var bbB=new _.Dk("clearLocationCommand");var Npl=new _.Dk("resolveLocationCommand");var DYA=new _.Dk("interactionLoggingCommandMetadata");var fRd=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(fRd,_.He);var A4M=function(d,H){return _.gk(d,1,H)};var jGB=[0,_.S3];var vF6=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(vF6,_.He);var dsl=function(d,H){return RJ(d,1,fRd,H)};vF6.prototype.JSC$12100_serializeBinary=FrX([0,_.y8,jGB]);var QGF={SLI_STATUS_UNKNOWN:"SLI_STATUS_UNKNOWN",SLI_STATUS_SUCCESS:"SLI_STATUS_SUCCESS",SLI_STATUS_FAILURE:"SLI_STATUS_FAILURE",SLI_STATUS_TIMEOUT:"SLI_STATUS_TIMEOUT",SLI_STATUS_ABORTED:"SLI_STATUS_ABORTED",SLI_STATUS_CANCELLED:"SLI_STATUS_CANCELLED",SLI_STATUS_REJECTED:"SLI_STATUS_REJECTED"};var HTB={MAIN_APP_WEB_PAGE_TYPE_UNKNOWN:"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN",MAIN_APP_WEB_PAGE_TYPE_BROWSE:"MAIN_APP_WEB_PAGE_TYPE_BROWSE",MAIN_APP_WEB_PAGE_TYPE_SEARCH:"MAIN_APP_WEB_PAGE_TYPE_SEARCH",MAIN_APP_WEB_PAGE_TYPE_WATCH:"MAIN_APP_WEB_PAGE_TYPE_WATCH",MAIN_APP_WEB_PAGE_TYPE_CHANNEL:"MAIN_APP_WEB_PAGE_TYPE_CHANNEL",MAIN_APP_WEB_PAGE_TYPE_PLAYLIST:"MAIN_APP_WEB_PAGE_TYPE_PLAYLIST",MAIN_APP_WEB_PAGE_TYPE_SETTING:"MAIN_APP_WEB_PAGE_TYPE_SETTING",MAIN_APP_WEB_PAGE_TYPE_SHORTS:"MAIN_APP_WEB_PAGE_TYPE_SHORTS"},
$sC={MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN:"MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN",MAIN_APP_WEB_REQUEST_TYPE_NAVIGATE:"MAIN_APP_WEB_REQUEST_TYPE_NAVIGATE",MAIN_APP_WEB_REQUEST_TYPE_LOAD:"MAIN_APP_WEB_REQUEST_TYPE_LOAD"};var NhD={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND"};_.GUD=new _.Dk("logFlowLoggingEventCommand");_.LM=new _.Dk("loggingContext");var KqA=new _.Dk("audioTrackSelectActionCommand");var cg7=new _.Dk("captionLanguageSelectActionCommand");var pUl=new _.Dk("showAudioTrackPickerActionCommand");var gqB=new _.Dk("showCaptionLanguageSelectActionCommand");var iTM=new _.Dk("dismissDialogEndpoint");var G87=new _.Dk("dismissPlayerOverlayCommand");var oq0=new _.Dk("hideItemSectionVideosByIdCommand");var qvC=new _.Dk("showMiniplayerCommand");var ahd=function(){wY.apply(this,arguments)};
_.m(ahd,wY);ahd.prototype.getAssociations=function(){return[]};
ahd.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var lhA=function(){wY.apply(this,arguments)};
_.m(lhA,wY);lhA.prototype.getAssociations=function(){return[]};
lhA.prototype.getTypeName=function(){return"downloadStatusEntity"};var eaS=function(){wY.apply(this,arguments)};
_.m(eaS,wY);eaS.prototype.getAssociations=function(){return[]};
eaS.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var k8U=function(){wY.apply(this,arguments)};
_.m(k8U,wY);k8U.prototype.getAssociations=function(){var d=[];this.delegate.downloadsList&&d.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&d.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&d.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&d.push(this.delegate.refresh);return[].concat(_.ru(new Set(d)))};
k8U.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var xs7=function(){wY.apply(this,arguments)};
_.m(xs7,wY);xs7.prototype.getAssociations=function(){var d=[];this.delegate.refresh&&d.push(this.delegate.refresh);if(this.delegate.downloads)for(var H=_.q(this.delegate.downloads),K=H.next();!K.done;K=H.next())d.push.apply(d,_.ru((new nq6(K.value)).getAssociations()));return[].concat(_.ru(new Set(d)))};
xs7.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var nq6=function(){m_.apply(this,arguments)};
_.m(nq6,m_);nq6.prototype.getAssociations=function(){var d=[];this.delegate.video&&d.push(this.delegate.video);this.delegate.playlist&&d.push(this.delegate.playlist);this.delegate.videoItem&&d.push(this.delegate.videoItem);this.delegate.playlistItem&&d.push(this.delegate.playlistItem);return[].concat(_.ru(new Set(d)))};var CSl=function(){wY.apply(this,arguments)};
_.m(CSl,wY);CSl.prototype.getAssociations=function(){var d=[];this.delegate.localImageEntities&&d.push.apply(d,_.ru(this.delegate.localImageEntities));return[].concat(_.ru(new Set(d)))};
CSl.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var Rag=function(){wY.apply(this,arguments)};
_.m(Rag,wY);Rag.prototype.getAssociations=function(){var d=[];this.delegate.playbackData&&d.push(this.delegate.playbackData);this.delegate.localImageEntities&&d.push.apply(d,_.ru(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&d.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ru(new Set(d)))};
Rag.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var VL6=function(){wY.apply(this,arguments)};
_.m(VL6,wY);VL6.prototype.getAssociations=function(){return[]};
VL6.prototype.getTypeName=function(){return"offlineabilityEntity"};var Usg=function(){wY.apply(this,arguments)};
_.m(Usg,wY);Usg.prototype.getAssociations=function(){var d=[];this.delegate.fakeChildren&&d.push.apply(d,_.ru(this.delegate.fakeChildren));return[].concat(_.ru(new Set(d)))};
Usg.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var ha3=function(){wY.apply(this,arguments)};
_.m(ha3,wY);ha3.prototype.getAssociations=function(){var d=[];this.delegate.video&&d.push(this.delegate.video);this.delegate.playbackData&&d.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&d.push(this.delegate.offlineVideoPolicy);return[].concat(_.ru(new Set(d)))};
ha3.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var LqC=function(){wY.apply(this,arguments)};
_.m(LqC,wY);LqC.prototype.getAssociations=function(){return[]};
LqC.prototype.getTypeName=function(){return"continuationTokenEntity"};var ML3=function(){wY.apply(this,arguments)};
_.m(ML3,wY);ML3.prototype.getAssociations=function(){var d=[];this.delegate.channelOwner&&d.push(this.delegate.channelOwner);this.delegate.videos&&d.push.apply(d,_.ru(this.delegate.videos));this.delegate.collaboratorChannels&&d.push.apply(d,_.ru(this.delegate.collaboratorChannels));this.delegate.downloadState&&d.push(this.delegate.downloadState);this.delegate.refresh&&d.push(this.delegate.refresh);return[].concat(_.ru(new Set(d)))};
ML3.prototype.getTypeName=function(){return"mainPlaylistEntity"};var msB=function(){wY.apply(this,arguments)};
_.m(msB,wY);msB.prototype.getAssociations=function(){var d=[];this.delegate.video&&d.push(this.delegate.video);this.delegate.channelContributor&&d.push(this.delegate.channelContributor);return[].concat(_.ru(new Set(d)))};
msB.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var wU6=function(){m_.apply(this,arguments)};
_.m(wU6,m_);wU6.prototype.getAssociations=function(){var d=[];this.delegate.recommendedVideoMetadata&&d.push.apply(d,_.ru((new PSd(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.ru(new Set(d)))};
var PSd=function(){m_.apply(this,arguments)};
_.m(PSd,m_);PSd.prototype.getAssociations=function(){var d=[];this.delegate.localImageEntities&&d.push.apply(d,_.ru(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&d.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ru(new Set(d)))};var uH6=function(){m_.apply(this,arguments)};
_.m(uH6,m_);uH6.prototype.getAssociations=function(){var d=[];this.delegate.playbackPosition&&d.push(this.delegate.playbackPosition);return[].concat(_.ru(new Set(d)))};var Ihg=function(){wY.apply(this,arguments)};
_.m(Ihg,wY);Ihg.prototype.getAssociations=function(){var d=[];this.delegate.owner&&d.push(this.delegate.owner);this.delegate.downloadState&&d.push(this.delegate.downloadState);this.delegate.userState&&d.push.apply(d,_.ru((new uH6(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&d.push.apply(d,_.ru((new wU6(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.ru(new Set(d)))};
Ihg.prototype.getTypeName=function(){return"mainVideoEntity"};var rgS=function(){wY.apply(this,arguments)};
_.m(rgS,wY);rgS.prototype.getAssociations=function(){var d=[];this.delegate.userChannelDetails&&d.push(this.delegate.userChannelDetails);return[].concat(_.ru(new Set(d)))};
rgS.prototype.getTypeName=function(){return"ytMainChannelEntity"};var WqM=function(){wY.apply(this,arguments)};
_.m(WqM,wY);WqM.prototype.getAssociations=function(){var d=[];this.delegate.channelOwner&&d.push(this.delegate.channelOwner);this.delegate.playbackPosition&&d.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&d.push.apply(d,_.ru(this.delegate.localImageEntities));this.delegate.downloadStatus&&d.push(this.delegate.downloadStatus);return[].concat(_.ru(new Set(d)))};
WqM.prototype.getTypeName=function(){return"ytMainVideoEntity"};var JJD=new _.Dk("downloadsPageSmartDownloadsOptInBannerParams");var TIM=new _.Dk("downloadsPageUpsellBannerParams");var BaU=function(){wY.apply(this,arguments)};
_.m(BaU,wY);BaU.prototype.getAssociations=function(){return[]};
BaU.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var zaN=function(){wY.apply(this,arguments)};
_.m(zaN,wY);zaN.prototype.getAssociations=function(){return[]};
zaN.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var XUg=function(){wY.apply(this,arguments)};
_.m(XUg,wY);XUg.prototype.getAssociations=function(){return[]};
XUg.prototype.getTypeName=function(){return"macroMarkerEntity"};var Jg3=function(){wY.apply(this,arguments)};
_.m(Jg3,wY);Jg3.prototype.getAssociations=function(){return[]};
Jg3.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var sbA=function(){wY.apply(this,arguments)};
_.m(sbA,wY);sbA.prototype.getAssociations=function(){return[]};
sbA.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var Fq6=function(){wY.apply(this,arguments)};
_.m(Fq6,wY);Fq6.prototype.getAssociations=function(){return[]};
Fq6.prototype.getTypeName=function(){return"playerStateEntity"};var ZTS=function(){wY.apply(this,arguments)};
_.m(ZTS,wY);ZTS.prototype.getAssociations=function(){return[]};
ZTS.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var TaM=function(){wY.apply(this,arguments)};
_.m(TaM,wY);TaM.prototype.getAssociations=function(){return[]};
TaM.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var Qb3=function(){wY.apply(this,arguments)};
_.m(Qb3,wY);Qb3.prototype.getAssociations=function(){return[]};
Qb3.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.zz=new _.Dk("dislikeButtonViewModel");_.X5=new _.Dk("likeButtonViewModel");var tLM=new _.Dk("videoSummaryContentViewModel");var YvX=new _.Dk("videoSummaryParagraphViewModel");var OT3=new _.Dk("changeTimelyActionVisibilityCommand");var SvB=new _.Dk("hideEngagementPanelEndpoint");var Eq7=new _.Dk("refreshPanelEndpoint");var yg3=new _.Dk("scrollToSectionEndpoint");var bT3=new _.Dk("seekToVideoTimestampCommand");_.r5=new _.Dk("showEngagementPanelEndpoint");var Na3=new _.Dk("showTransientPlayerScrimOverlayCommand");var Dsl=new _.Dk("toggleEngagementPanelCommand");_.fhB=new _.Dk("createBroadcastCommand");var AgC=new _.Dk("metadataUpdateCommand");var jbd=function(){wY.apply(this,arguments)};
_.m(jbd,wY);jbd.prototype.getAssociations=function(){return[]};
jbd.prototype.getTypeName=function(){return"featuredProductsEntity"};var vqX=function(){wY.apply(this,arguments)};
_.m(vqX,wY);vqX.prototype.getAssociations=function(){return[]};
vqX.prototype.getTypeName=function(){return"pinnedProductEntity"};var dA7=function(){wY.apply(this,arguments)};
_.m(dA7,wY);dA7.prototype.getAssociations=function(){return[]};
dA7.prototype.getTypeName=function(){return"trendingOfferEntity"};_.HNB=new _.Dk("merchandiseShelfRenderer");var $AX=new _.Dk("gridMovieRenderer");_.Km0=new _.Dk("movieRenderer");var cQ7=function(){wY.apply(this,arguments)};
_.m(cQ7,wY);cQ7.prototype.getAssociations=function(){var d=[];this.delegate.trackDownloadMetadatas&&d.push.apply(d,_.ru(this.delegate.trackDownloadMetadatas));return[].concat(_.ru(new Set(d)))};
cQ7.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var pZ3=function(){wY.apply(this,arguments)};
_.m(pZ3,wY);
pZ3.prototype.getAssociations=function(){var d=[];this.delegate.downloadedTracks&&d.push.apply(d,_.ru(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&d.push.apply(d,_.ru(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&d.push.apply(d,_.ru(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&d.push.apply(d,_.ru(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&d.push.apply(d,_.ru(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
d.push.apply(d,_.ru(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&d.push.apply(d,_.ru(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&d.push.apply(d,_.ru(this.delegate.metadataOnlyTracks));return[].concat(_.ru(new Set(d)))};
pZ3.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var gZA=function(){wY.apply(this,arguments)};
_.m(gZA,wY);gZA.prototype.getAssociations=function(){var d=[];this.delegate.trackDownloadMetadatas&&d.push.apply(d,_.ru(this.delegate.trackDownloadMetadatas));return[].concat(_.ru(new Set(d)))};
gZA.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var iNM=function(){wY.apply(this,arguments)};
_.m(iNM,wY);iNM.prototype.getAssociations=function(){var d=[];this.delegate.playbackData&&d.push(this.delegate.playbackData);this.delegate.localImageEntities&&d.push.apply(d,_.ru(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&d.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ru(new Set(d)))};
iNM.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var GS3=function(){wY.apply(this,arguments)};
_.m(GS3,wY);
GS3.prototype.getAssociations=function(){var d=[];this.delegate.musicLibraryStatusEntity&&d.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&d.push.apply(d,_.ru(this.delegate.primaryArtists));this.delegate.details&&d.push(this.delegate.details);this.delegate.userDetails&&d.push(this.delegate.userDetails);this.delegate.tracks&&d.push.apply(d,_.ru(this.delegate.tracks));this.delegate.share&&d.push(this.delegate.share);this.delegate.downloadMetadata&&d.push(this.delegate.downloadMetadata);this.delegate.refresh&&
d.push(this.delegate.refresh);return[].concat(_.ru(new Set(d)))};
GS3.prototype.getTypeName=function(){return"musicAlbumRelease"};
var oZ7=function(){wY.apply(this,arguments)};
_.m(oZ7,wY);oZ7.prototype.getAssociations=function(){var d=[];this.delegate.albumRelease&&d.push(this.delegate.albumRelease);this.delegate.tracks&&d.push.apply(d,_.ru(this.delegate.tracks));return[].concat(_.ru(new Set(d)))};
oZ7.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var qhg=function(){wY.apply(this,arguments)};
_.m(qhg,wY);qhg.prototype.getAssociations=function(){var d=[];this.delegate.albumRelease&&d.push(this.delegate.albumRelease);return[].concat(_.ru(new Set(d)))};
qhg.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var avB=function(){wY.apply(this,arguments)};
_.m(avB,wY);avB.prototype.getAssociations=function(){var d=[];this.delegate.details&&d.push(this.delegate.details);this.delegate.userDetails&&d.push(this.delegate.userDetails);return[].concat(_.ru(new Set(d)))};
avB.prototype.getTypeName=function(){return"musicArtist"};
var lv3=function(){wY.apply(this,arguments)};
_.m(lv3,wY);lv3.prototype.getAssociations=function(){var d=[];this.delegate.parentArtist&&d.push(this.delegate.parentArtist);return[].concat(_.ru(new Set(d)))};
lv3.prototype.getTypeName=function(){return"musicArtistDetail"};
var eeC=function(){wY.apply(this,arguments)};
_.m(eeC,wY);eeC.prototype.getAssociations=function(){var d=[];this.delegate.parentArtist&&d.push(this.delegate.parentArtist);return[].concat(_.ru(new Set(d)))};
eeC.prototype.getTypeName=function(){return"musicArtistUserDetail"};var kSl=function(){wY.apply(this,arguments)};
_.m(kSl,wY);kSl.prototype.getAssociations=function(){return[]};
kSl.prototype.getTypeName=function(){return"musicLibraryEdit"};var xAN=function(){wY.apply(this,arguments)};
_.m(xAN,wY);xAN.prototype.getAssociations=function(){return[]};
xAN.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var nZ7=function(){wY.apply(this,arguments)};
_.m(nZ7,wY);
nZ7.prototype.getAssociations=function(){var d=[];this.delegate.tracks&&d.push.apply(d,_.ru(this.delegate.tracks));this.delegate.refresh&&d.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&d.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&d.push(this.delegate.details);this.delegate.downloadMetadata&&d.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&d.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&d.push(this.delegate.userDetails);this.delegate.entryCollection&&
d.push(this.delegate.entryCollection);this.delegate.share&&d.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&d.push.apply(d,_.ru((new Ch0(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.ru(new Set(d)))};
nZ7.prototype.getTypeName=function(){return"musicPlaylist"};
var Ch0=function(){m_.apply(this,arguments)};
_.m(Ch0,m_);Ch0.prototype.getAssociations=function(){var d=[];this.delegate.creatorEntity&&d.push(this.delegate.creatorEntity);return[].concat(_.ru(new Set(d)))};var Re7=function(){wY.apply(this,arguments)};
_.m(Re7,wY);Re7.prototype.getAssociations=function(){return[]};
Re7.prototype.getTypeName=function(){return"musicShare"};var V0S=function(){wY.apply(this,arguments)};
_.m(V0S,wY);
V0S.prototype.getAssociations=function(){var d=[];this.delegate.musicLibraryStatusEntity&&d.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&d.push.apply(d,_.ru(this.delegate.artists));this.delegate.audioModeVersion&&d.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&d.push(this.delegate.videoModeVersion);this.delegate.userDetails&&d.push(this.delegate.userDetails);this.delegate.details&&d.push(this.delegate.details);this.delegate.albumRelease&&d.push(this.delegate.albumRelease);this.delegate.share&&
d.push(this.delegate.share);this.delegate.libraryEdit&&d.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&d.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&d.push(this.delegate.playbackPosition);this.delegate.lyrics&&d.push(this.delegate.lyrics);return[].concat(_.ru(new Set(d)))};
V0S.prototype.getTypeName=function(){return"musicTrack"};
var UA7=function(){wY.apply(this,arguments)};
_.m(UA7,wY);UA7.prototype.getAssociations=function(){var d=[];this.delegate.parentTrack&&d.push(this.delegate.parentTrack);return[].concat(_.ru(new Set(d)))};
UA7.prototype.getTypeName=function(){return"musicTrackDetail"};
var heC=function(){wY.apply(this,arguments)};
_.m(heC,wY);heC.prototype.getAssociations=function(){var d=[];this.delegate.parentTrack&&d.push(this.delegate.parentTrack);return[].concat(_.ru(new Set(d)))};
heC.prototype.getTypeName=function(){return"musicTrackUserDetail"};var N$=new _.Dk("musicResponsiveListItemRenderer");var tUM=new _.Dk("addToPlaylistEndpoint");var Lm6=new _.Dk("captionPickerEndpoint");var M00=new _.Dk("suggestStats");var mAg=new _.Dk("backstageImageUploadEndpoint");var wZC=new _.Dk("createBackstagePostDialogEndpoint");_.Phl=new _.Dk("createCommentReplyDialogEndpoint");_.usg=new _.Dk("updateCommentDialogEndpoint");_.Iv7=new _.Dk("updateCommentReplyDialogEndpoint");var rQS=new _.Dk("menuEndpoint");var JdL=new _.Dk("modalEndpoint");var Wmg=new _.Dk("playlistEditorEndpoint");var BiA=new _.Dk("copyTextEndpoint");var zeM,XZM;zeM=new _.Dk("shareEndpoint");XZM=new _.Dk("shareEntityEndpoint");_.JQ0=new _.Dk("shareEntityServiceEndpoint");_.rpF=new _.Dk("userFeedbackEndpoint");_.AP=new _.Dk("watchEndpoint");var C3h=new _.Dk("watchPlaylistEndpoint");var shB=new _.Dk("addUpcomingEventReminderEndpoint");_.Js=new _.Dk("getCommentsFromInboxCommand");var Fmg=new _.Dk("notificationOptOutEndpoint");var ZNS=new _.Dk("recordNotificationInteractionsEndpoint");var Tid=new _.Dk("removeUpcomingEventReminderEndpoint");var TGM=new _.Dk("getDownloadActionCommand");_.Qh3=new _.Dk("offlineOrchestrationActionCommand");var t0g=function(){wY.apply(this,arguments)};
_.m(t0g,wY);t0g.prototype.getAssociations=function(){return[]};
t0g.prototype.getTypeName=function(){return"captionTrack"};var YhU=function(){wY.apply(this,arguments)};
_.m(YhU,wY);YhU.prototype.getAssociations=function(){return[]};
YhU.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var ONS=function(){wY.apply(this,arguments)};
_.m(ONS,wY);ONS.prototype.getAssociations=function(){return[]};
ONS.prototype.getTypeName=function(){return"offlineVideoPolicy"};var ShS=function(){wY.apply(this,arguments)};
_.m(ShS,wY);ShS.prototype.getAssociations=function(){return[]};
ShS.prototype.getTypeName=function(){return"offlineVideoStreams"};var EZl=function(){wY.apply(this,arguments)};
_.m(EZl,wY);EZl.prototype.getAssociations=function(){var d=[];this.delegate.transfer&&d.push(this.delegate.transfer);this.delegate.adsPlaybackData&&d.push.apply(d,_.ru(this.delegate.adsPlaybackData));this.delegate.drmLicense&&d.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&d.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&d.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ru(new Set(d)))};
EZl.prototype.getTypeName=function(){return"playbackData"};var yQ0=function(){wY.apply(this,arguments)};
_.m(yQ0,wY);yQ0.prototype.getAssociations=function(){return[]};
yQ0.prototype.getTypeName=function(){return"refresh"};var bNS=function(){wY.apply(this,arguments)};
_.m(bNS,wY);bNS.prototype.getAssociations=function(){var d=[];this.delegate.offlineVideoStreams&&d.push.apply(d,_.ru(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&d.push.apply(d,_.ru(this.delegate.captionTrack));return[].concat(_.ru(new Set(d)))};
bNS.prototype.getTypeName=function(){return"transfer"};var Nig=function(){wY.apply(this,arguments)};
_.m(Nig,wY);Nig.prototype.getAssociations=function(){return[]};
Nig.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var DA0=new _.Dk("showMoreDrawerCommand");var fvN=new _.Dk("updateEngagementPanelContentCommand");var AQN=new _.Dk("getPdgBuyFlowCommand");var jh6=new _.Dk("liveChatPurchaseMessageEndpoint");var vZ6=new _.Dk("openSuperStickerBuyFlowCommand");var dqX=new _.Dk("updatePdgFeatureEnablementCommand");var HaM=function(){wY.apply(this,arguments)};
_.m(HaM,wY);HaM.prototype.getAssociations=function(){return[]};
HaM.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var $qS=function(){wY.apply(this,arguments)};
_.m($qS,wY);$qS.prototype.getAssociations=function(){return[]};
$qS.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.K_d=new _.Dk("pdgCommentChipRenderer");_.csA=new _.Dk("permissionRoleBottomBarRenderer");_.p4N=new _.Dk("updatePermissionRoleCommand");var g4l=new _.Dk("prefetchWatchCommand");var iaA=new _.Dk("updatePlayerErrorMessageCommand");var BGX=new _.Dk("toggleCaptionsVisibilityCommand");_.Gz7=new _.Dk("quickActionsViewModel");var o4g=new _.Dk("playerResponse");var qVB=new _.Dk("playlistRenderer");_.agd=new _.Dk("playlistVideoListRenderer");_.sV=new _.Dk("playlistEditEndpoint");var lg3=new _.Dk("createImagePollCommand");var eSl=new _.Dk("createQuizCommand");var kzN=new _.Dk("quizRenderer");var xqN=new _.Dk("uploadedVideoRenderer");var n4X=new _.Dk("decorateMessageEndpoint");var C$3=new _.Dk("lpOfferCardOptionViewModel");var RSC=new _.Dk("sfvAudioItemPlaybackCommand");var VKA=function(){wY.apply(this,arguments)};
_.m(VKA,wY);VKA.prototype.getAssociations=function(){return[]};
VKA.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.F5=new _.Dk("reelNonVideoContentEndpoint");_.P5=new _.Dk("reelWatchEndpoint");_.Zg=new _.Dk("reelItemRenderer");_.UqN=new _.Dk("reelMetapanelViewModel");_.hS0=new _.Dk("reelNonVideoContentRenderer");_.L_U=new _.Dk("reelPlayerOverlayRenderer");var MKl=new _.Dk("shortsLockupViewModel");var mqd=new _.Dk("sponsorButtonViewModel");var w4A=new _.Dk("reelItemWatchResponse");var P$C=new _.Dk("textBadgeRenderer");_.Tz=new _.Dk("buttonRenderer");_.Qi=new _.Dk("toggleButtonRenderer");var NtX=new _.Dk("switchButtonViewModel");_.u5X=new _.Dk("confirmDialogRenderer");var Ig0;Ig0=new _.Dk("menuRenderer");_.rs3=new _.Dk("menuFlexibleItemRenderer");var W_C=new _.Dk("pollRenderer");_.BYU=new _.Dk("backgroundPromoRenderer");var X4B;_.zSd=new _.Dk("chipCloudRenderer");X4B=new _.Dk("chipCloudChipRenderer");var Jsl=new _.Dk("dropdownRenderer");var se0=new _.Dk("gridVideoRenderer");_.F_S=new _.Dk("itemSectionRenderer");_.ZaA=new _.Dk("messageRenderer");var TYN=new _.Dk("sortFilterHeaderRenderer");_.ts=new _.Dk("videoRenderer");var QeU=new _.Dk("resolveUrlCommandMetadata");var tK6=function(){wY.apply(this,arguments)};
_.m(tK6,wY);tK6.prototype.getAssociations=function(){return[]};
tK6.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.YVg=new _.Dk("getAnswerCommand");_.Mv=new _.Dk("searchEndpoint");var OaX=new _.Dk("genAiRichTextViewModel");var Z9i=new _.Dk("overviewAnswerViewModel");var SV0=new _.Dk("addToPlaylistServiceEndpoint");var E43=new _.Dk("clearSearchHistoryEndpoint");var ysM=new _.Dk("clearWatchHistoryEndpoint");var bag=new _.Dk("webSerializedServiceEndpointExtension");_.NYd=new _.Dk("createCommentEndpoint");var DqC=new _.Dk("createCommentReplyEndpoint");var fgB=new _.Dk("performCommentActionEndpoint");var AsS=new _.Dk("updateCommentEndpoint");var jeM=new _.Dk("updateCommentReplyEndpoint");_.Y4=new _.Dk("createPlaylistServiceEndpoint");var v4M=new _.Dk("deletePlaylistEndpoint");var dwX=new _.Dk("deleteVideoEndpoint");var Qwf=new _.Dk("getReportFormEndpoint");var HUN=new _.Dk("modifyChannelNotificationPreferenceEndpoint");var $1E;_.VY=new _.Dk("offlinePlaylistEndpoint");$1E={ACTION_UNKNOWN:"ACTION_UNKNOWN",ACTION_ADD:"ACTION_ADD",ACTION_REMOVE:"ACTION_REMOVE",ACTION_REMOVE_WITH_PROMPT:"ACTION_REMOVE_WITH_PROMPT",ACTION_PAUSE:"ACTION_PAUSE",ACTION_RETRY:"ACTION_RETRY",ACTION_RESUME:"ACTION_RESUME",ACTION_SYNC:"ACTION_SYNC",ACTION_APPROVE:"ACTION_APPROVE",ACTION_INFER_AUTOMATICALLY:"ACTION_INFER_AUTOMATICALLY",ACTION_TOGGLE_AUTO_DOWNLOAD:"ACTION_TOGGLE_AUTO_DOWNLOAD"};var KnF;_.Cf=new _.Dk("offlineVideoEndpoint");KnF={ACTION_UNKNOWN:"ACTION_UNKNOWN",ACTION_ADD:"ACTION_ADD",ACTION_REMOVE:"ACTION_REMOVE",ACTION_REMOVE_WITH_PROMPT:"ACTION_REMOVE_WITH_PROMPT",ACTION_PAUSE:"ACTION_PAUSE",ACTION_RETRY:"ACTION_RETRY",ACTION_RESUME:"ACTION_RESUME",ACTION_DOWNLOAD_IMMEDIATELY:"ACTION_DOWNLOAD_IMMEDIATELY",ACTION_REDOWNLOAD:"ACTION_REDOWNLOAD",ACTION_RENEW:"ACTION_RENEW",ACTION_RENEW_WITH_PROMPT:"ACTION_RENEW_WITH_PROMPT",ACTION_INFER_AUTOMATICALLY:"ACTION_INFER_AUTOMATICALLY"};var $wl=new _.Dk("pingingEndpoint");_.K2S=new _.Dk("selectActiveIdentityEndpoint");var cJB=new _.Dk("setSettingEndpoint");var fWX=new _.Dk("undoFeedbackEndpoint");var pxU=new _.Dk("unsubscribeEndpoint");_.gR3=new _.Dk("updatedMetadataEndpoint");var iUX=function(){wY.apply(this,arguments)};
_.m(iUX,wY);iUX.prototype.getAssociations=function(){return[]};
iUX.prototype.getTypeName=function(){return"settingEntity"};_.GFC=new _.Dk("updateLocalAppSettingCommand");var oRX=new _.Dk("saveImageToDeviceEndpoint");var qTg=new _.Dk("shareImageCommand");var aE3=new _.Dk("sharingProviderDataCommand");var lE3=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(lE3,_.He);var etd=[0,_.Eu,-1];lE3.prototype.JSC$12301_serializeBinary=FrX(etd);var kF3=_.qN(etd);var xwd=new _.Dk("userMentionSuggestionRenderer");var nRX=new _.Dk("liveChatTunnelCommand");var Cdl=new _.Dk("showSponsorshipsGiftOfferDialogCommand");var Rt7=new _.Dk("sponsorshipsScrollableShelfViewModel");var Vc0=new _.Dk("updateUpcomingEventReminderButtonStateCommand");var Uw3=new _.Dk("upcomingEventReminderButtonStateRenderer");var htN=new _.Dk("subscribeEndpoint");var L26=new _.Dk("registerTasksCommand");var McC=new _.Dk("hideSnackbarCommand");var mwA=new _.Dk("showDialogCommand");_.u8=new _.Dk("showSheetCommand");var wxB=new _.Dk("showSnackbarCommand");var PdB=function(){wY.apply(this,arguments)};
_.m(PdB,wY);PdB.prototype.getAssociations=function(){return[]};
PdB.prototype.getTypeName=function(){return"chipEntity"};var utd=function(){wY.apply(this,arguments)};
_.m(utd,wY);utd.prototype.getAssociations=function(){return[]};
utd.prototype.getTypeName=function(){return"dismissState"};_.tW=new _.Dk("avatarViewModel");var IE6=new _.Dk("badgeViewModel");_.OV=new _.Dk("buttonViewModel");_.SK=new _.Dk("chipViewModel");var guE=new _.Dk("collectionThumbnailViewModel");var rJ3=new _.Dk("contentPreviewImageViewModel");var W23=new _.Dk("decoratedAvatarViewModel");_.AKh=new _.Dk("engagementBarViewModel");_.BIl=new _.Dk("imageBannerViewModel");var ztM=new _.Dk("lockupContentMetadataRowExtension");_.ZsA=new _.Dk("lockupMetadataViewModel");_.Ty3=new _.Dk("lockupViewModel");var Qk3=new _.Dk("avatarStackViewModel");_.t$3=new _.Dk("contentMetadataViewModel");var Ys6=function(){wY.apply(this,arguments)};
_.m(Ys6,wY);Ys6.prototype.getAssociations=function(){return[]};
Ys6.prototype.getTypeName=function(){return"pageHeaderEntity"};_.OsN=new _.Dk("pageHeaderViewModel");var SsB=new _.Dk("snackbarViewModel");var ECM=new _.Dk("thumbnailHoverOverlayToggleActionsViewModel");_.EV=new _.Dk("toggleButtonViewModel");var y$l=function(){wY.apply(this,arguments)};
_.m(y$l,wY);y$l.prototype.getAssociations=function(){return[]};
y$l.prototype.getTypeName=function(){return"votingEntity"};_.jyL=new _.Dk("votingViewModel");var bsX=new _.Dk("sectionHeaderViewModel");var Ny0=new _.Dk("notifyDropdownOptionSelectedCommand");var RGl=new _.Dk("listViewModel");_.ID=new _.Dk("listItemViewModel");var pTM=new _.Dk("toggleableListItemViewModel");var DGg=new _.Dk("dialogHeaderViewModel");var B1Y=new _.Dk("suspenseViewModel");var ffS=function(){wY.apply(this,arguments)};
_.m(ffS,wY);ffS.prototype.getAssociations=function(){return[]};
ffS.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var A$U=function(){wY.apply(this,arguments)};
_.m(A$U,wY);A$U.prototype.getAssociations=function(){return[]};
A$U.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var jk7=function(){wY.apply(this,arguments)};
_.m(jk7,wY);jk7.prototype.getAssociations=function(){return[]};
jk7.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.vCg=new _.Dk("transcriptSubmitCaptionCorrectionCommand");var dZ0=function(){wY.apply(this,arguments)};
_.m(dZ0,wY);dZ0.prototype.getAssociations=function(){return[]};
dZ0.prototype.getTypeName=function(){return"buttonEntity"};var Lzf=new _.Dk("unpluggedStringRunImage");var HdM=new _.Dk("tabViewModel");var $Z6=new _.Dk("tabbedViewModel");var Kul=function(){wY.apply(this,arguments)};
_.m(Kul,wY);Kul.prototype.getAssociations=function(){return[]};
Kul.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.cTd=new _.Dk("updateDescriptionAction");var pC3=new _.Dk("updateToggleButtonTextAction");_.gk6=new _.Dk("autoplaySwitchButtonRenderer");var Xb;_.idX=new _.Dk("multiMarkersPlayerBarRenderer");Xb=new _.Dk("chapterRenderer");var Gml=new _.Dk("heatMarkerRenderer");var iph=new _.Dk("heatmapRenderer");var okd=new _.Dk("smartSkipPlayerScrimOverlayRenderer");var qqB=new _.Dk("timedMarkerDecorationRenderer");var Z05=new _.Dk("postWebToNativeMessageCommand");var Xc=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Xc,_.He);Xc.prototype.getMethodName=function(){return _.IB(this,1)};var aj6=[0,_.Eu,-2];Xc.prototype.JSC$12321_serializeBinary=FrX(aj6);var lj7=_.oK(Xc,aj6);var eq0=new _.Dk("whitelistEditEndpoint");var kml=new _.Dk("clearUrlParamCommand");var xZl=new _.Dk("commerceActionCommand");_.nkA=new _.Dk("getPaymentInstrumentsParamsCommand");var Cq7=new _.Dk("getPaymentsClientTokenCommand");var Rqd=new _.Dk("googlePaymentBillingCommand");var VPS=new _.Dk("googlePaymentPurchaseManagerCommand");_.UZC=new _.Dk("logGtmCommand");var hq7=new _.Dk("updateCardItemOnClickCommand");_.Lu0=new _.Dk("ypcPauseSubscriptionCommand");_.MP3=new _.Dk("ypcResumeSubscriptionCommand");var mZ3=function(){wY.apply(this,arguments)};
_.m(mZ3,wY);mZ3.prototype.getAssociations=function(){return[]};
mZ3.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var wCN=function(){wY.apply(this,arguments)};
_.m(wCN,wY);wCN.prototype.getAssociations=function(){return[]};
wCN.prototype.getTypeName=function(){return"commerceCartListEntity"};var Pq7=function(){wY.apply(this,arguments)};
_.m(Pq7,wY);Pq7.prototype.getAssociations=function(){return[]};
Pq7.prototype.getTypeName=function(){return"iconBadgeEntity"};var uVA=function(){wY.apply(this,arguments)};
_.m(uVA,wY);uVA.prototype.getAssociations=function(){return[]};
uVA.prototype.getTypeName=function(){return"pdpStateEntity"};var IjN=function(){wY.apply(this,arguments)};
_.m(IjN,wY);IjN.prototype.getAssociations=function(){return[]};
IjN.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var rrF=new _.Dk("ypcOffersEndpoint");var rTl=new _.Dk("cardItemRenderer"),WuB=new _.Dk("cardItemTextRenderer");var Bl0=new _.Dk("commerceCartItemQuantityPickerRenderer");var zq3=new _.Dk("linkCardRenderer");var BXF=new _.Dk("quantityIncrementerButtonViewModel");var XCg=new _.Dk("quantityIncrementerViewModel");var JTM=new _.Dk("themedImageViewModel");_.smM=new _.Dk("ypcCancelRecurrenceEndpoint");var Fu6=new _.Dk("ypcCompleteTransactionEndpoint");_.ZdA=new _.Dk("ypcGetCartEndpoint");_.vI=new _.Dk("ypcGetOffersEndpoint");_.yi=new _.Dk("ypcHandleTransactionEndpoint");var TlN=new _.Dk("ypcLogWalletAnalyticDataEndpoint");_.Qm6=new _.Dk("ypcRedeemCodeEndpoint");var tPS=new _.Dk("ypcUpdateFopEndpoint");c4(Ka(1),H4(4));wSl((new MessageChannel).port2);var Yql=function(){this.register=new Map},Y4E=function(d,H,K){d=d+"_"+H;
b$.register.has(d)?K=b$.register.get(d):(K=K(),b$.register.set(d,K));return K},Od0=function(d){d=_.q(d.register.values());
for(var H=d.next();!H.done;H=d.next())_.GH(H.value,"ABORTED")};
Yql.prototype.clear=function(){Od0(this);this.register.clear()};
var b$=new Yql;var hnl=Date.now().toString();var mY5=MqX();var znF={DEFAULT:0,CHAT:1,CONVERSATIONS:2,MINIPLAYER:3,DIALOG:4,VOZ:5,MUSIC_WATCH_TABS:6,SHARE:7,PUSH_NOTIFICATIONS:8,RICH_GRID_WATCH:9,UNPLUGGED_BROWSE:10,PICTURE_IN_PICTURE: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 Sq6,JP;Sq6=1;JP=function(d){this.veData=d};
_.P1=function(d){return new JP({trackingParams:d})};
_.l8=function(d,H,K,c,p,g){var a=Sq6++;return new JP({veType:d,veCounter:a,elementIndex:K,dataElement:H,youtubeData:c,jspbYoutubeData:p,loggingDirectives:g})};
_.G=JP.prototype;
_.G.getAsJson=function(){var d={};this.veData.trackingParams!==void 0?d.trackingParams=this.veData.trackingParams:(d.veType=this.veData.veType,this.veData.veCounter!==void 0&&(d.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(d.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(d.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(d.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(d.isCounterfactual=!0);
return d};
_.G.getAsJspb=function(){var d=new De3;this.veData.trackingParams!==void 0?d.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.Xh(d,2,this.veData.veType),this.veData.veCounter!==void 0&&_.Xh(d,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.Xh(d,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.gk(d,5,!0));if(this.veData.dataElement!==void 0){var H=this.veData.dataElement.getAsJspb();_.eE(d,7,H)}this.veData.youtubeData!==void 0&&_.eE(d,8,this.veData.jspbYoutubeData);
return d};
_.G.toString=function(){return JSON.stringify(this.getAsJson())};
_.G.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.G.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.vb("yt_logging_screen.getRootVeType",r4Y);_.vb("yt_logging_screen.getCurrentCsn",_.Fj);_.vb("yt_logging_screen.getCttAuthInfo",Zc);_.vb("yt_logging_screen.setCurrentScreen",_.TA);var EkX=function(){this.events=new Map},yTd=function(d){var H=[];
d=_.q(d.events.values());for(var K=d.next();!K.done;K=d.next())H.push(K.value);return H};
EkX.prototype.clear=function(){this.events.clear()};var Nl7=function(){this.logTransport=new bdl;this.loggedEventRegister=new EkX;this.unloggedEventRegister=new EkX;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12358_flushTimer=new _.iG(this.flushInterval);this.JSC$12358_flushTimer.listen("tick",this.flush,!1,this)};
Nl7.prototype.flush=function(){if(this.eventsCount){var d={loggedEvents:yTd(this.loggedEventRegister),unloggedEvents:yTd(this.unloggedEventRegister)};if(_.h("export_player_version_to_ytconfig")){var H;(H=_.Fm("PLAYER_CLIENT_VERSION"))?(H=H.split("-")[0].replace(/\./g,""),H=isNaN(Number(H))?"0":H):H="";var K=_.Fm("PLAYER_CLIENT_VERSION");if(K){K=K.split("-");var c="";K.length>1&&(c=K[K.length-1]);K=UYM(c.startsWith("canary_experiment")?"canary":c.startsWith("canary_control")?"control":"none")}else K=
"CLIENT_CANARY_STATE_UNKNOWN";d.dimensions={playerClientVersion:H,playerCanaryState:K}}this.logTransport.flush(d);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12358_flushTimer.enabled&&this.JSC$12358_flushTimer.stop()}};
var DZC=function(d){Nq==null&&(Nq=new Nl7);var H=Nq;var K=H.loggedEventRegister;d.dimensions=d.dimensions||{};d.dimensions.csn=_.Fj()||"";var c=sGC(d.dimensions).join(";");if(d.records!=null)if(K.events.has(c)){var p;(p=K.events.get(c).records)==null||p.push.apply(p,_.ru(d.records))}else K.events.set(c,d);H.JSC$12358_flushTimer.enabled||H.JSC$12358_flushTimer.start();H.eventsCount++;H.eventsCount>=100&&H.flush()};var bdl=function(){};
bdl.prototype.flush=function(d,H){_.h("enable_client_sli_logging")&&_.Wd("sliEventBatch",d,{sendIsolatedPayload:!!H})};var Nq;var ATB;ATB=function(d){var H=fj7;d=d===void 0?{}:d;H=H.name;var K=tqF("SUCCESS");DZC({dimensions:d,records:[{name:H,state:"SLI_STATE_END",status:K}]})};
_.ObD=function(d,H,K,c){this.name=d;this.sliId=H;this.timeoutMs=K;this.statusOnTimeout=c;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.ObD.prototype.getId=function(){return this.sliId};
_.iE=function(d,H){H=H===void 0?{}:H;d.ongoing||(d.ongoing=!0,d.dimensions=H,d.logSliId=rWg(),DZC({dimensions:d.dimensions,records:[{name:d.name,state:"SLI_STATE_START",sliId:d.logSliId}]}),d.timeoutMs>0&&(d.timeoutHandle=setTimeout(function(){_.GH(d,d.statusOnTimeout)},d.timeoutMs)))};
_.GH=function(d,H){d.ongoing&&(d.timeoutMs>0&&clearTimeout(d.timeoutHandle),d.ongoing=!1,H={dimensions:d.dimensions,records:[{name:d.name,status:tqF(H),state:"SLI_STATE_END",sliId:d.logSliId}]},b$.register.delete(d.name+"_"+d.sliId),DZC(H))};var fj7=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var jm7=function(){wY.apply(this,arguments)};
_.m(jm7,wY);jm7.prototype.getAssociations=function(){return[]};
jm7.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var plf=new _.Dk("highlightTextDecoratorColorMapExtension");var KY1=new _.Dk("styleRunColorMapExtension");var fRY=_.y$(["data-"]),vFX={};var HTF={};var Dg=function(d){this.wrappedPromise_=d===void 0?null:d;this.state_=0;this.JSC$12390_value_=null};
Dg.prototype.then=function(d,H,K){return this.wrappedPromise_?this.wrappedPromise_.then(d,H,K):this.state_===1&&d?(d=d.call(K,this.JSC$12390_value_))&&typeof d.then==="function"?d:_.fa(d):this.state_===2&&H?(d=H.call(K,this.JSC$12390_value_))&&typeof d.then==="function"?d:_.vk3(d):this};
Dg.prototype.getValue=function(){return this.JSC$12390_value_};
Dg.prototype.isRejected=function(){return this.state_==2};
OzN(Dg);_.vk3=function(d){var H=new Dg;d=d===void 0?null:d;H.state_=2;H.JSC$12390_value_=d===void 0?null:d;return H};
_.fa=function(d){var H=new Dg;d=d===void 0?null:d;H.state_=1;H.JSC$12390_value_=d===void 0?null:d;return H};var nqX="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var dTM=["load","abort","error"],As=function(d,H,K){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12410_maxAspectRatio_=d;this.disableAnimation_=H===void 0?!1:H;this.disableExifRotation_=K===void 0?!1:K;this.JSC$12410_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12410_reject_=this.resolve_=null};
As.prototype.transform=function(d){var H=this;this.mime_=d.type;So(f8C(d),this.dataUrlRead_,this.readError_,this);So(DvN(d.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(K,c){H.resolve_=K;H.JSC$12410_reject_=c})};
As.prototype.dataUrlRead_=function(d){this.dataUrl_=d;this.angle_!=null&&HeS(this)};
As.prototype.exifRead_=function(d){if(this.disableExifRotation_)this.angle_=0;else{a:if(d=new DataView(d),d.byteLength<2||d.getUint16(0)!==65496)d=-2;else{for(var H=2,K=d.byteLength;H<K;){var c=d.getUint16(H),p=d.getUint16(H+2);if(c===65505){H+=4;c=d.getUint32(H);p=d.getUint16(H+4);if(c!==1165519206||p!==0)break;H+=6;c=d.getUint16(H)===18761;H+=d.getUint32(H+4,c);p=d.getUint16(H,c);H+=2;for(var g=0;g<p;g++){if(d.getUint16(H,c)===274){H+=8;d=d.getUint16(H,c);break a}H+=12}}else if(c>>8!==255)break;
else H+=p+2}d=-1}switch(d){case 8:this.angle_=270;break;case 3:this.angle_=180;break;case 6:this.angle_=90;break;default:this.angle_=0}}this.dataUrl_!=null&&HeS(this)};
As.prototype.readError_=function(){this.JSC$12410_reject_()};
var HeS=function(d){ml(d.JSC$12410_image_,dTM,d.completeTransform_,!1,d);d.JSC$12410_image_.src=_.Xa(d.dataUrl_).toString();d.JSC$12410_image_.src!=zC.toString()&&d.JSC$12410_image_.src.substr(0,11)==="data:image/"||d.JSC$12410_reject_()};
As.prototype.completeTransform_=function(){if(this.JSC$12410_image_.src!=zC.toString()){var d=_.Xa(this.dataUrl_),H=this.JSC$12410_image_.naturalHeight?this.JSC$12410_image_.naturalWidth/this.JSC$12410_image_.naturalHeight:null;this.invalidAspectRatio=H>this.JSC$12410_maxAspectRatio_||H<1/this.JSC$12410_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var K=this.JSC$12410_image_.naturalWidth,c=this.JSC$12410_image_.naturalHeight,p=H=0,g=this.JSC$12410_image_.naturalHeight?this.JSC$12410_image_.naturalWidth/
this.JSC$12410_image_.naturalHeight:null;g>this.JSC$12410_maxAspectRatio_?(K=this.JSC$12410_maxAspectRatio_*c,H=(K-this.JSC$12410_image_.naturalWidth)/2,this.cropped=!0):g<1/this.JSC$12410_maxAspectRatio_?(c=this.JSC$12410_maxAspectRatio_*K,p=(c-this.JSC$12410_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)g=K,K=c,c=g,g=H,H=p,p=g;switch(this.angle_){case 90:p-=K;break;case 180:H-=K;p-=c;break;case 270:H-=
c}this.cropped||this.angle_%360!==0?(d=document.createElement("canvas"),d.width=K||1,d.height=c||1,this.JSC$12410_image_.naturalWidth&&this.JSC$12410_image_.naturalHeight&&(K=d.getContext("2d"),K.rotate(Math.PI/180*this.angle_),K.drawImage(this.JSC$12410_image_,H,p,this.JSC$12410_image_.naturalWidth,this.JSC$12410_image_.naturalHeight)),this.transformedData=_.Xa(d.toDataURL(this.mime_))):this.transformedData=d}else this.transformedData=d;this.resolve_(this)}};var jK=function(d,H){_.eo.call(this,d);this.value=H};
_.m(jK,_.eo);
var v4=function(d,H,K,c,p,g,a){a=a===void 0?!1:a;_.Rj.call(this);var e=this;this.JSC$12415_url_=d;this.channelId_=H;this.maxFileSizeMb_=K;this.JSC$12415_maxAspectRatio_=c;this.dropZoneEl_=p;this.rejectInvalidAspectRatio_=a;this.selectButtonEl_=g;this.JSC$12415_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new l$(this.dropZoneEl_);this.selectOverlay_=new eK(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12415_image_=this.transfer_=null;this.handler_=new _.GA(this);_.q_(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(g,"click",function(){e.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.m(v4,_.Rj);v4.prototype.disposeInternal=function(){for(var d=this.selectButtonEl_.nextSibling;d&&d.parentNode&&d.tagName=="INPUT";)d.parentNode.removeChild(d),d=this.selectButtonEl_.nextSibling;this.cancel();_.Rj.prototype.disposeInternal.call(this)};
v4.prototype.uploadPromise=function(){if(this.JSC$12415_image_==null)return null;this.uploadPromise_||$T3(this);return this.uploadPromise_};
v4.prototype.cancel=function(){K7U(this);this.JSC$12415_image_=null};
var K7U=function(d){d.transfer_&&d.transfer_.cancel();d.transfer_=null;d.uploadPromise_=null;d.resolve_=null;d.JSC$12415_reject_=null},$T3=function(d){K7U(d);
d.transfer_=_.eW3(d.JSC$12415_url_,{"X-YouTube-ChannelId":d.channelId_},d.JSC$12415_image_);d.handler_.listenOnce(d.transfer_,"l",d.JSC$12417_onUploadComplete_);d.handler_.listenOnce(d.transfer_,"n",d.onUploadError_);d.transfer_.run();d.uploadPromise_=new Promise(function(H,K){d.resolve_=H;d.JSC$12415_reject_=K})};
_.G=v4.prototype;_.G.onChange_=function(d){d.files.length&&(this.JSC$12415_image_=d.files[0],this.JSC$12415_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12415_image_=null,this.dispatchEvent(new jK("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):($T3(this),(new As(this.JSC$12415_maxAspectRatio_)).transform(this.JSC$12415_image_).then((0,_.LA)(this.onPreview_,this),(0,_.LA)(this.onPreviewError_,this))))};
_.G.onPreview_=function(d){if(d.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12415_image_=null),this.dispatchEvent(new jK("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;d.cropped&&this.dispatchEvent(new jK("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new jK("yt.comments.ImageUploadOverlay.CHANGE_EVENT",d.transformedData))};
_.G.onPreviewError_=function(){this.JSC$12415_image_=null;this.dispatchEvent(new jK("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.G.onHover_=function(d){d.stopPropagation();d.preventDefault();if(d.type==="dragover")d=!0;else if(d.type==="dragleave")d=!1;else return;this.dispatchEvent(new jK("yt.comments.ImageUploadOverlay.HOVER_EVENT",d))};
_.G.JSC$12417_onUploadComplete_=function(){var d=(0,_.ecl)(this.transfer_.getResponseText());this.resolve_(d.encryptedBlobId)};
_.G.onUploadError_=function(){this.JSC$12415_reject_();K7U(this)};var coB=function(d){d=d||{};var H={},K={};this.url=d.url||"";this.args=d.args||_.rs.clone(H);this.assets=d.assets||{};this.attrs=d.attrs||_.rs.clone(K);this.fallback=d.fallback||null;this.fallbackMessage=d.fallbackMessage||null;this.html5=!!d.html5;this.disable=d.disable||{};this.loaded=!!d.loaded;this.messages=d.messages||{}};
coB.prototype.clone=function(){var d=new coB,H;for(H in this)if(this.hasOwnProperty(H)){var K=this[H];_.SS(K)=="object"?d[H]=_.rs.clone(K):d[H]=K}return d};var pnM,gXS,ieU,bW,oX7,qOU,a4l,l4l,e3A,kbX,xTA,nXC,CFB,R33,Vk3,UT3,h3l,L7N,Mk6,mTC,wnd,PF7,uZ3,I4g,roA,W7S,B2l,z3X,XnC,bLi,Jo0,sxA,F7U,Ze3,T2A,Qx6,tk0,YOM,OeU,SOd,yKE,EX7,yoX,beA,N2g,DTd,f4d,AoX,jxg,vXl,diS,H_S,$iM,KHg,cIl,p66,dI,gxX,i_3,Gr0,ox7,qt3,aTd,lTl,e5C,krB,xi6,nxU,C3A,R5l,V9N,Ui3,h5l,LHA,M93,mi0,SCl,w6X,P30,udB,ITX,rI0,WHg,BjS,z5d,X66,JI3,sL3,FH3,Z_C,TjC,QLN,t97,YtA,O_A,St6,ExN,yIA,b_C,NjX,DiM,fTX;pnM=["account/accounts_list"];gXS=["acknowledge_channel_tou_strike"];ieU=["notification/add_upcoming_event_reminder"];
_.GbN=["att/get"];bW=["browse","music/browse","unplugged/browse"];oX7=["channel/claim_legacy_youtube_channel"];qOU=["history/clear_search_history"];a4l=["history/clear_watch_history"];l4l=["comment/perform_comment_action"];e3A=["comment/get_comment_replies"];kbX=["ypc/commerce_action"];xTA=["backstage/create_post"];nXC=["live/create_broadcast"];CFB=["channel/create_channel"];R33=["comment/create_comment_reply"];Vk3=["comment/create_comment"];UT3=["live_chat/create_poll"];h3l=["playlist/create"];
L7N=["decorate_message"];Mk6=["live_chat/delete_message"];mTC=["playlist/delete"];wnd=["video/delete"];PF7=["like/dislike"];uZ3=["dismissal/dismiss"];I4g=["flag/flag"];roA=["flow"];W7S=["account/account_menu"];B2l=["playlist/get_add_to_playlist"];z3X=["get_answer"];XnC=["channel/get_channel_creation_form"];bLi=["offline/get_download_action"];Jo0=["kids/get_kids_blocklist_picker"];sxA=["live_chat/get_item_context_menu"];F7U=["live_chat/get_live_chat_message_buy_flow"];Ze3=["live_chat/get_live_chat_replay"];
T2A=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];Qx6=["live_chat/get_live_chat_super_sticker_buy_flow"];tk0=["notification/get_notification_menu"];YOM=["playlist/get_settings_editor"];OeU=["backstage/get_post_video_preview"];SOd=["account/get_profile_card"];yKE=["share/get_share_panel"];EX7=["share/get_sharing_provider_data"];yoX=["get_survey"];beA=["notification/get_unseen_count"];N2g=["get_user_mention_suggestions"];DTd=["get_watch"];f4d=["guide"];
AoX=["feedback"];jxg=["kids/update_blacklist"];vXl=["like/like"];diS=["live_chat/live_chat_action"];H_S=["live_chat/manage_user"];$iM=["video_manager/metadata_update"];KHg=["live_chat/moderate"];cIl=["notification/modify_channel_preference"];p66=["notification/opt_out"];dI=["get_panel","get_posts_by_host_panel"];gxX=["player"];i_3=["browse/edit_playlist"];Gr0=["notification/record_interactions"];ox7=["reel/reel_item_watch"];qt3=["reel/reel_watch_sequence"];aTd=["like/removelike"];lTl=["notification/remove_upcoming_event_reminder"];
e5C=["flag/get_form"];krB=["miniapp/report_value"];xi6=["navigation/resolve_url"];nxU=["channel/reveal_business_email"];C3A=["in_video/search"];R5l=["search","sfv/search","unplugged/search"];V9N=["live_chat/send_message"];Ui3=["live_chat/send_live_chat_vote"];h5l=["account/set_setting"];LHA=["submit_caption_correction"];M93=["submit_form"];mi0=["subscription/subscribe"];SCl=["get_transcript"];w6X=["resolve_location","unplugged/resolve_location"];P30=["subscription/unsubscribe"];udB=["backstage/update_post"];
ITX=["channel_edit/update_channel_page_settings"];rI0=["comment/update_comment_reply"];WHg=["comment/update_comment"];BjS=["comment/update_comments_settings"];z5d=["creator/update_creator_channel"];X66=["pdg/update_enablement"];JI3=["updated_metadata"];sL3=["channel_edit/validate_channel_handle"];FH3=["verify_age"];Z_C=["next","unplugged/watch_next"];TjC=["whitelist/edit"];QLN=["ypc/cancel_recurrence"];t97=["ypc/complete_transaction"];YtA=["ypc/get_cart"];O_A=["ypc/get_fix_instrument_params"];
St6=["ypc/get_offers"];ExN=["ypc/get_payment_instruments_params"];yIA=["ypc/handle_transaction"];b_C=["ypc/log_payment_server_analytics"];NjX=["ypc/pause_subscription"];DiM=["ypc/redeem_code"];fTX=["ypc/resume_subscription"];var AI6=[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,271673,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,273646,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,273232,82039];var RF=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.vb("yt.msgs_",RF);var Hx=new _.Av("ACTION_ROUTER_TOKEN");_.$R=function(){this.autonavState_=_.h("kevlar_is_pupi_enabled")?2:Ihi()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.$R.prototype.getState=function(){return this.autonavState_};
_.$R.prototype.pause=function(d){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=d):this.autonavState_==1&&(this.disabledAutonavPauseReason_=d)};
_.$R.prototype.setState=function(d,H,K){H&&(this.autoplayChangedByUser=!0);H=this.autonavState_===3||d===3;this.autonavState_!=d&&(this.autonavState_=d,d!=3&&_.rgl(d==2),d=_.h("kevlar_is_pupi_enabled")?K||H:!0,_.bw.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,d,K))};
_.$R.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.HG(_.$R);var KU=function(){this.hasRun=!1};var cx={},tL1=(cx.auto_search="LATENCY_ACTION_AUTO_SEARCH",cx.ad_to_ad="LATENCY_ACTION_AD_TO_AD",cx.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",cx.app_startup="LATENCY_ACTION_APP_STARTUP",cx.browse="LATENCY_ACTION_BROWSE",cx.cast_splash="LATENCY_ACTION_CAST_SPLASH",cx.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",cx.channels="LATENCY_ACTION_CHANNELS",cx.chips="LATENCY_ACTION_CHIPS",cx.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",cx.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
cx.editor="LATENCY_ACTION_EDITOR",cx.embed="LATENCY_ACTION_EMBED",cx.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",cx.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",cx.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",cx.explore="LATENCY_ACTION_EXPLORE",cx.favorites="LATENCY_ACTION_FAVORITES",cx.home="LATENCY_ACTION_HOME",cx.inboarding="LATENCY_ACTION_INBOARDING",cx.landing="LATENCY_ACTION_LANDING",cx.learning="LATENCY_ACTION_LEARNING",
cx.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",cx.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",cx.library="LATENCY_ACTION_LIBRARY",cx.live="LATENCY_ACTION_LIVE",cx.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",cx.management="LATENCY_ACTION_MANAGEMENT",cx.mini_app="LATENCY_ACTION_MINI_APP_PLAY",cx.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",cx.onboarding="LATENCY_ACTION_ONBOARDING",cx.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
cx.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",cx.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",cx.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",cx.prebuffer="LATENCY_ACTION_PREBUFFER",cx.prefetch="LATENCY_ACTION_PREFETCH",cx.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",cx.profile_switcher="LATENCY_ACTION_LOGIN",cx.projects="LATENCY_ACTION_PROJECTS",cx.reel_watch="LATENCY_ACTION_REEL_WATCH",cx.results="LATENCY_ACTION_RESULTS",cx.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
cx.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",cx.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",cx.review="LATENCY_ACTION_REVIEW",cx.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",cx.search_ui="LATENCY_ACTION_SEARCH_UI",cx.search_suggest="LATENCY_ACTION_SUGGEST",cx.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",cx.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",cx.seek="LATENCY_ACTION_PLAYER_SEEK",cx.settings="LATENCY_ACTION_SETTINGS",cx.store="LATENCY_ACTION_STORE",
cx.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",cx.tenx="LATENCY_ACTION_TENX",cx.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",cx.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",cx.watch="LATENCY_ACTION_WATCH",cx.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",cx["watch,watch7"]="LATENCY_ACTION_WATCH",cx["watch,watch7_html5"]="LATENCY_ACTION_WATCH",cx["watch,watch7ad"]="LATENCY_ACTION_WATCH",cx["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",cx.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
cx.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",cx.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",cx.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",cx.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",cx.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",cx.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",cx.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",cx),$AF=0;var GS5=function(d,H){Lb.call(this,1,arguments);this.timer=H};
_.m(GS5,Lb);var iN1=new aVX("aft-recorded",GS5);var EqM=_.KF.ytLoggingGelSequenceIdObj_||{};_.vb("ytLoggingGelSequenceIdObj_",EqM);var pU=_.KF.ytLoggingLatencyUsageStats_||{};_.vb("ytLoggingLatencyUsageStats_",pU);var gI=function(){this.cleanupJob=0},NaL=function(){gI.instance||(gI.instance=new gI);
return gI.instance};
_.G=gI.prototype;_.G.baseline=function(d,H,K){id(this,"baseline_"+d)||_.Wd("latencyActionBaselined",{clientActionNonce:d},{timestamp:H,cttAuthInfo:K})};
_.G.tick=function(d,H,K,c){id(this,"tick_"+d+"_"+H)||_.Wd("latencyActionTicked",{tickName:d,clientActionNonce:H},{timestamp:K,cttAuthInfo:c})};
_.G.info=function(d,H,K){var c=Object.keys(d).join("");id(this,"info_"+c+"_"+H)||(d=Object.assign({},d),d.clientActionNonce=H,_.Wd("latencyActionInfo",d,{cttAuthInfo:K}))};
_.G.jspbInfo=function(d,H,K){for(var c="",p=0;p<Wv(d).length;p++)Wv(d)[p]!==void 0&&(c=p===0?c.concat(""+p):c.concat("_"+p));id(this,"info_"+c+"_"+H)||(_.UY(d,2,H),H={cttAuthInfo:K},K=_.h("jspb_sparse_encoded_pivot")?new Me([{}]):new Me,_.nc(K,7,qod,d),yg5("latencyActionInfo",K,H))};
_.G.span=function(d,H,K){var c=Object.keys(d).join("");id(this,"span_"+c+"_"+H)||(d.clientActionNonce=H,_.Wd("latencyActionSpan",d,{cttAuthInfo:K}))};
var id=function(d,H){pU[H]=pU[H]||{count:0};var K=pU[H];K.count++;K.time=(0,_.$G)();d.cleanupJob||(d.cleanupJob=_.mf(_.Xp,function(){var c=(0,_.$G)(),p;for(p in pU)pU[p]&&c-pU[p].time>6E4&&delete pU[p];d&&(d.cleanupJob=0)},5E3));
return K.count>5?(K.count===6&&Math.random()*1E5<1&&(K=new _.m1("CSI data exceeded logging limit with key",H.split("_")),H.indexOf("plev")>=0||_.Jf(K)),!0):!1};var jLl,vxM;jLl=window;vxM=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.u5=jLl.performance||jLl.mozPerformance||jLl.msPerformance||jLl.webkitPerformance||new vxM;var gZh=!1,fhF=!1,oZM=(0,_.LA)(_.u5.clearResourceTimings||_.u5.webkitClearResourceTimings||_.u5.mozClearResourceTimings||_.u5.msClearResourceTimings||_.u5.oClearResourceTimings||_.nV,_.u5);var dFl=window;dFl.ytcsi&&(dFl.ytcsi.infoGel=_.Xw,dFl.ytcsi.tick=_.Fw);var UAM=function(d){Lb.call(this,1,arguments);this.csn=d};
_.m(UAM,Lb);var nf1=new aVX("screen-created",UAM),Fmi=[],V0l=shF,ZNl=0,YW=new Map,heE=new Map,LmX=new Map;var Pa1=Symbol("tf"),vy=new WeakMap;var GF=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Mk=function(){GF.instance||(GF.instance=new GF);
return GF.instance};
_.G=GF.prototype;_.G.setClient=function(d){this.client=d};
_.G.JSC$12496_newScreen=function(){this.clear();this.csn=_.Fj()};
_.G.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.G.reportShown=function(d,H,K){var c=this.JSC$12496_getTrackingParams(d),p=d.visualElement?d.visualElement:c;H=this.shownElements.has(p);var g=this.visibleState.get(p);this.shownElements.add(p);this.visibleState.set(p,!0);d.impressionLog&&!H&&d.impressionLog();if(c||d.visualElement)if(K=HJB(this,d,K))if(p=$Fd(this,d),oS(this,d)||p){c=d.visualElement?d.visualElement:_.P1(c);var a=d.interactionLoggingClientData;p||H?oS(this,d)&4?g||Wmi(this.client,K,c,a):oS(this,d)&1&&!H&&usi(this.client,K,c,a):usi(this.client,
K,c,a)}};
_.G.reportHidden=function(d,H,K){var c=this.JSC$12496_getTrackingParams(d),p=d.visualElement?d.visualElement:c;H=this.hiddenElements.has(p);var g=this.visibleState.get(p);this.hiddenElements.add(p);this.visibleState.set(p,!1);if(g===!1)return!0;if(!c&&!d.visualElement)return!1;K=HJB(this,d,K);if(!K||!oS(this,d)&&$Fd(this,d))return!1;c=d.visualElement?d.visualElement:_.P1(c);oS(this,d)&8?Bih(this.client,K,c):oS(this,d)&2&&!H&&(d=this.client,H=tO({cttAuthInfo:Zc(K)||void 0},K),c={csn:K,ve:c.getAsJson(),
eventType:2},K==="UNDEFINED_CSN"?S5("visualElementHidden",H,c):d?IJ("visualElementHidden",c,d,H):_.Wd("visualElementHidden",c,H));return!0};
_.G.JSC$12496_getTrackingParams=function(d){var H=this.getData(d),K,c;if(_.h("il_use_view_model_logging_context")&&(H==null?0:(K=H.context)==null?0:(c=K.loggingContext)==null?0:c.loggingDirectives))return H.context.loggingContext.loggingDirectives.trackingParams||"";var p,g;if(H==null?0:(p=H.rendererContext)==null?0:(g=p.loggingContext)==null?0:g.loggingDirectives)return H.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(H==null?0:H.loggingDirectives)return H.loggingDirectives.trackingParams||
"";var a;return((a=d.veContainer)==null?0:a.trackingParams)?d.veContainer.trackingParams:(H==null?void 0:H.trackingParams)||""};
_.G.JSC$12496_elementShouldLogGesture=function(d,H){d=this.getData(d);return!!((Math.floor(Number(d&&d.loggingDirectives&&d.loggingDirectives.gestures&&d.loggingDirectives.gestures.types||""))||0)&H)};
_.G.JSC$12496_getNearestParentVe=function(d){var H=this.JSC$12496_getTrackingParams(d);return d.visualElement?d.visualElement:H?_.P1(H):d.parentElement?this.JSC$12496_getNearestParentVe(d.parentElement):null};
var HJB=function(d,H,K){var c=_.Fj(K);return d.csn===null||c===d.csn||K?c:(d=new _.m1("VisibilityLogger called before newScreen",{caller:H.tagName,previous_csn:d.csn,current_csn:c}),_.Jf(d),null)};
GF.prototype.getData=function(d){var H,K=d.data||((H=d.props)==null?void 0:H.data);if(!K||d.isWebComponentWrapper){var c;K=(c=vy.get(d))==null?void 0:c[Pa1]}return K};
var $Fd=function(d,H){var K;return!((K=d.getData(H))==null||!K.loggingDirectives)},oS=function(d,H){d=d.getData(H);
return Math.floor(Number(d&&d.loggingDirectives&&d.loggingDirectives.visibility&&d.loggingDirectives.visibility.types||""))||1};var qw;qw=function(){};
_.Vp=function(){qw.instance||(qw.instance=new qw);return qw.instance};
qw.prototype.setClient=function(d){_.Y2(Mk().setClient).bind(Mk())(d)};
_.KLB=function(){_.Vp();_.Y2(Mk().JSC$12496_newScreen).bind(Mk())()};
qw.prototype.clear=function(){_.Y2(Mk().clear).bind(Mk())()};
qw.prototype.reportShown=function(d,H,K){_.Y2(Mk().reportShown).bind(Mk())(d,H,K)};
qw.prototype.reportHidden=function(d,H,K){return _.Y2(Mk().reportHidden).bind(Mk())(d,H,K)};
var cd1=function(d,H){return _.Y2(Mk().JSC$12496_getTrackingParams).bind(Mk())(H)},u6i=function(d,H){return _.Y2(Mk().JSC$12496_getNearestParentVe).bind(Mk())(H)};var aS,cVA;aS=function(){this.graftQueue=[];this.stateChangedQueue=[];this.backHistoryStack=[];this.forwardHistoryStack=[];this.afterNewScreenOneOffJobs=[];this.afterNewScreenRecurringJobs=[];this.cachedVisualElements=new Map;this.cachedRootVisualElements=new Map;this.pendingScreenCreation=new Set;this.recurringGrafts=new Map};
_.hR=function(){aS.instance||(aS.instance=new aS);return aS.instance};
aS.prototype.setClient=function(d){this.client=d};
cVA=function(d,H,K){K=K===void 0?{}:K;_.Y2(function(){var c,p,g,a=((c=_.M(H==null?void 0:H.commandMetadata,_.Co))==null?void 0:c.rootVe)||((p=_.M(H==null?void 0:H.commandMetadata,DYA))==null?void 0:(g=p.screenVisualElement)==null?void 0:g.uiType);if(a){c=_.M(H==null?void 0:H.commandMetadata,QeU);if(c==null?0:c.parentTrackingParams){var e=_.P1(c.parentTrackingParams);if(c.parentCsn)var k=c.parentCsn}else K.clickedVisualElement?e=K.clickedVisualElement:H.clickTrackingParams&&(e=_.P1(H.clickTrackingParams));
a:{c=_.M(H,_.AP);p=_.M(H,C3h);if(c){if(p=Wq1(c,"VIDEO")){c={token:p,videoId:c.videoId};break a}}else if(p&&(c=Wq1(p,"PLAYLIST"))){c={token:c,playlistId:p.playlistId};break a}c=void 0}K=Object.assign({},{cttAuthInfo:c,parentCsn:k},K);if(_.h("expectation_logging")){var C;K.loggingExpectations=((C=_.M(H==null?void 0:H.commandMetadata,DYA))==null?void 0:C.loggingExpectations)||void 0}_.ld(d,a,e,K)}else _.Jf(new _.m1("Error: Trying to create a new screen without a rootVeType",H))})()};
_.ld=function(d,H,K,c){c=c===void 0?{}:c;_.Y2(function(){AI6.includes(H)||(_.Jf(new _.m1("createClientScreen() called with a non-page VE",H)),H=83769);c.isHistoryNavigation||(d.forwardHistoryStack=[],d.backHistoryStack.push({rootVe:H,key:c.key||""}));d.graftQueue=[];d.stateChangedQueue=[];c.dataPromises?p$S(d,H,K,c):gnB(d,H,K,c)})()};
_.iJC=function(d,H,K){K=K===void 0?0:K;_.Y2(function(){H.then(function(c){d.pendingScreenCreation.has(K)&&d.pendingScreenFn&&d.pendingScreenFn();var p=_.Fj(K),g=_.so(K);if(p&&g){var a={automatedLogEventSource:3},e;(c==null?0:(e=c.response)==null?0:e.trackingParams)&&Oa(d.client,p,g,_.P1(c.response.trackingParams),!1,a);var k;(c==null?0:(k=c.playerResponse)==null?0:k.trackingParams)&&Oa(d.client,p,g,_.P1(c.playerResponse.trackingParams),!1,a)}})})()};
aS.prototype.graftServerVe=function(d,H,K){var c=this;return _.Y2(function(){var p=_.P1(d);_.ec(c,p,H,K);return p})()};
_.IWD=function(d,H,K,c){return _.h("enable_client_ve_spec")&&H.clientVeSpec?(H=_.l8(H.clientVeSpec.uiType,void 0,H.clientVeSpec.elementIndex,H.clientVeSpec.clientYoutubeData,void 0,H),_.ec(d,H,K,c)?H:null):H.trackingParams?d.graftServerVe(H.trackingParams,K,c):null};
_.UG=function(d,H,K,c){return _.Y2(function(){if(!H.veType)return _.Xi(new _.m1("Error: Trying to graft a client VE without a veType.")),null;if(H.visibilityTypes){var p=H.visibilityTypes.reduce(function(g,a){return g|a});
p={visibility:{types:String(p)}}}p=_.l8(H.veType,H.visualElement,H.elementIndex,H.clientYouTubeData,void 0,p);return _.ec(d,p,K,c)?p:null})()};
_.ec=function(d,H,K,c){c=c===void 0?0:c;return _.Y2(function(){if(d.pendingScreenCreation.has(c))return d.graftQueue.push([H,K]),!0;var p=_.Fj(c),g=K||_.so(c);if(p&&g){if(_.h("combine_ve_grafts")){var a=d.cachedVisualElements.get(g.toString());a?a.push(H):(d.cachedRootVisualElements.set(g.toString(),g),d.cachedVisualElements.set(g.toString(),[H]));d.attachTimeout||(d.attachTimeout=_.mf(_.Xp,function(){G4g(d,p)},1200))}else Oa(d.client,p,g,H);
return!0}return!1})()};
_.kR=function(d,H,K){K=K===void 0?0:K;var c=d.recurringGrafts.get(K)||new Map;if(_.h("smarter_ve_dedupping"))for(var p=Array.from(c.keys()),g=0;g<p.length;g++){var a=void 0,e=void 0;var k=H;var C=p[g];C.isClientVe()&&k.isClientVe()?(a=k.getAsJson(),e=C.getAsJson(),k=a.veType!==e.veType||a.elementIndex!==e.elementIndex||a.dataElement!==e.dataElement||k.getLoggingDirectives()!==C.getLoggingDirectives()?!1:!0):k=C.veData.trackingParams!==void 0&&k.veData.trackingParams!==void 0?((e=k.veData)==null?void 0:
e.trackingParams)===((a=C.veData)==null?void 0:a.trackingParams):!1;if(k)return}else if(c.has(H))return;c.set(H,void 0);d.recurringGrafts.set(K,c);_.Fj(K)==="UNDEFINED_CSN"||d.pendingScreenCreation.has(K)||_.ec(d,H,void 0,K)};
_.xR=function(d,H,K,c){c=_.Fj(c===void 0?0:c);if(!c)return!1;XZ1(d.client,c,H,K);return!0};
_.nU=function(d,H,K,c){if(!H)return!1;c=_.Fj(c===void 0?0:c);if(!c)return!1;XZ1(d.client,c,_.P1(H),K);return!0};
_.EQ=function(d,H){var K=H.getScreenLayer&&H.getScreenLayer();if(H.visualElement)return _.xR(d,H.visualElement,void 0,K);H=cd1(_.Vp(),H);return _.nU(d,H,void 0,K)};
aS.prototype.clickCommand=function(d,H,K){return _.nU(this,d.clickTrackingParams,H,K===void 0?0:K)};
aS.prototype.stateChanged=function(d,H,K){this.visualElementStateChanged(_.P1(d),H,K===void 0?0:K)};
aS.prototype.visualElementStateChanged=function(d,H,K){K=K===void 0?0:K;K===0&&this.pendingScreenCreation.has(K)?this.stateChangedQueue.push([d,H]):this.logStateChanged(d,H,K)};
aS.prototype.logStateChanged=function(d,H,K){K=K===void 0?0:K;var c=_.Fj(K);d=d||_.so(K);return c&&d?(JQD(this.client,c,d,H),!0):!1};
var p$S=function(d,H,K,c){c=c===void 0?{}:c;d.pendingScreenCreation.add(c.layer||0);d.pendingScreenFn=function(){gnB(d,H,K,c);var a=_.so(c.layer);if(a){for(var e=_.q(d.graftQueue),k=e.next();!k.done;k=e.next())k=k.value,_.ec(d,k[0],k[1]||a,c.layer);a=_.q(d.stateChangedQueue);for(e=a.next();!e.done;e=a.next())e=e.value,d.logStateChanged(e[0],e[1])}};
K||_.Fj(c.layer)||d.pendingScreenFn();if(c.dataPromises)for(var p=_.q(c.dataPromises),g=p.next();!g.done;g=p.next())_.iJC(d,g.value,c.layer);else _.z5(Error("uf"))},gnB=function(d,H,K,c){c=c===void 0?{}:c;
var p=void 0;c.layer||(c.layer=0);p=c.parentLayer!==void 0?c.parentLayer:c.layer;var g=_.Fj(p);p=_.so(p);var a=K||p,e;a&&(c.parentCsn!==void 0?e={clientScreenNonce:c.parentCsn,visualElement:a}:g&&g!=="UNDEFINED_CSN"&&(e={clientScreenNonce:g,visualElement:a}));var k,C=_.Fm("EVENT_ID");g==="UNDEFINED_CSN"&&C&&(k={servletData:{serializedServletEventId:C}});_.h("combine_ve_grafts")&&g&&G4g(d,g);_.h("no_client_ve_attach_unless_shown")&&a&&g&&Ph4(a,g);try{var R=_.M0D(d.client,H,e,c.csnToClone,c.cttAuthInfo,
k,c.implicitGestureType,void 0,c.loggingExpectations)}catch(L){_.sD(L,{rootVeType:H,rootVe:p,parentVisualElement:K,currentCsn:g,parentEl:e,csnToClone:c.csnToClone});_.z5(L);return}_.TA(R,H,c.layer,c.cttAuthInfo);g&&g!=="UNDEFINED_CSN"&&p&&!XqY(g)&&Bih(d.client,g,p,!0);d.backHistoryStack[d.backHistoryStack.length-1]&&!d.backHistoryStack[d.backHistoryStack.length-1].csn&&(d.backHistoryStack[d.backHistoryStack.length-1].csn=R||"");_.Xw({clientScreenNonce:R});_.KLB();var V=_.so(c.layer);g&&g!=="UNDEFINED_CSN"&&
V&&(_.h("web_mark_root_visible")||_.h("music_web_mark_root_visible"))&&_.b5(R,V);d.pendingScreenCreation.delete(c.layer||0);d.pendingScreenFn=void 0;var U;(U=d.recurringGrafts.get(c.layer))==null||U.forEach(function(L,w){L?_.ec(d,w,L,c.layer):V&&_.ec(d,w,V,c.layer)});
onA(d)},onA=function(d){for(var H=0;H<d.afterNewScreenOneOffJobs.length;H++){var K=d.afterNewScreenOneOffJobs[H];
try{K()}catch(c){_.z5(c)}}for(H=d.afterNewScreenOneOffJobs.length=0;H<d.afterNewScreenRecurringJobs.length;H++){K=d.afterNewScreenRecurringJobs[H];try{K()}catch(c){_.z5(c)}}},G4g=function(d,H){if(H===void 0)for(var K=BpF(),c=0;c<K.length;c++)K[c]!==void 0&&G4g(d,K[c]);
else d.cachedVisualElements.forEach(function(p,g){(g=d.cachedRootVisualElements.get(g))&&mAi(d.client,H,g,p)}),d.cachedVisualElements.clear(),d.cachedRootVisualElements.clear(),d.attachTimeout=void 0};var CU=function(d){d=d===void 0?{layer:0}:d;this.hasRun=!1;this.createScreenConfig=d;d={};this.few=(d.response=!1,d.playerResponse=!1,d)};
_.m(CU,KU);CU.prototype.validate=function(d){return!(!d.data||!d.data.response&&!d.data.playerResponse)};
CU.prototype.handle=function(d){var H=_.hR(),K=this.createScreenConfig.layer;d.data.response&&d.data.response.trackingParams&&!this.few.response&&(H.graftServerVe(d.data.response.trackingParams,void 0,K),this.few.response=!0);d.data.playerResponse&&d.data.playerResponse.trackingParams&&!this.few.playerResponse&&(H.graftServerVe(d.data.playerResponse.trackingParams,void 0,K),this.few.playerResponse=!0)};var RS=function(){this.sq=_.DA();this.uc=[];this.d24=0};
RS.prototype.processChunk=function(d){if(d){for(var H=_.q(this.uc),K=H.next();!K.done;K=H.next())K=K.value,K.validate(d)&&(K.handle(d),K.hasRun=!0);_.Fw("np"+this.d24);this.d24++}};var d0;var qg3=function(){var d={traceAllComponents:_.h("web_tracing_all_components"),exportToCsi:_.h("web_tracing_export_to_csi"),exportBreadcrumbs:_.h("web_enable_tracing"),bufferSize:_.iT("web_max_tracing_events"),enabledSpansArray:_.o5("web_tracing_enabled_spans"),exportToDevTools:_.h("web_tracing_export_to_devtools")};this.observers=[];this.value=d};
_.G=qg3.prototype;_.G.subscribe=function(d){var H=this;if(d.idx!=null)throw Error("xf");d.idx=this.observers.length;this.observers.push(d);return function(){var K=H.observers[H.observers.length-1];H.observers[d.idx]=K;K.idx=d.idx;H.observers.pop()}};
_.G.update=function(d){this.value=d(this.value);this.notify()};
_.G.mutate=function(d){d(this.value);this.notify()};
_.G.set=function(d){this.value=d;this.notify()};
_.G.notify=function(){for(var d=_.q(this.observers),H=d.next();!H.done;H=d.next()){H=H.value;try{H(this.value)}catch(K){}}};var A04,aF3,k4d;_.nM=function(d,H,K,c,p,g,a){a=a===void 0?[]:a;this.buildCommandPayload=d;this.navigate=H;this.handleServiceRequest=K;this.sendAction=c;this.JSC$12544_screenManager=p;this.commandResolverMap=g;this.autoLogResolverAllowlist=a;this.pendingCommands=new Set;this.isTracingEnabled=!1;aF3(this)};
A04=function(d,H,K){var c=FdF,p=ZZh,g=_.hR(),a=lFl;K=K===void 0?[]:K;_.nM.instance=new _.nM(d,H,c,p,g,a,K)};
aF3=function(d){if(!d.isTracingEnabled&&Qh5("command")){var H=d.resolveCommand;d.resolveCommand=function(K,c){a:{for(p in K)if(Object.prototype.hasOwnProperty.call(K,p)){var p={commandType:p};break a}p={}}return Shl("command",p,H.bind(this,K,c))};
d.isTracingEnabled=!0}};
k4d=function(d,H,K){if(!d.commandResolverMap)return!1;var c=DAD(H,d.commandResolverMap);return c?((d.autoLogResolverAllowlist.some(function(p){return!!_.M(H,p)})||(K==null?0:K.forceClickLogging))&&emg(d,H,K),c instanceof Promise?c.then(function(p){p.resolve(H,K)}):c.resolve(H,K),!0):!1};
_.nM.prototype.resolveCommand=function(d,H){var K=this,c=xFM(d);if(k4d(this,d,H))return!0;if(c)return nn0(this,d,H);if(!this.buildCommandPayload)return yQD(d,"Unhandled command by buildCommandPayload"),!1;var p=this.buildCommandPayload(d,H);if(H==null?0:H.commandController)p.commandController=H.commandController;if(p.type===0){if(!this.navigate)return bNl(d,"navigate"),!1;if(!CmU(p.command))return yQD(d,"Page requests need to specify a url"),!1;_.h("logging_avoid_blocking_during_navigation")&&_.vMi().transition("application_navigating");
d=this.navigate(p)||[];fKU(d).then(function(){K.pendingCommands.delete(p.command)});
return!0}if(p.type===1){if(!this.handleServiceRequest)return bNl(d,"handleServiceRequest"),!1;(H==null?0:H.forceClickLogging)&&emg(this,p.command,H);d=this.handleServiceRequest(p);fKU(d).then(function(){K.pendingCommands.delete(p.command)});
return!0}if(p.type===2){if(!this.sendAction)return bNl(d,"sendAction"),!1;emg(this,p.command,H);this.sendAction(p);return!0}return!1};
var emg=function(d,H,K){if((K==null||!K.disableClickTracking)&&d.JSC$12544_screenManager)if(H.clickTrackingParams&&_.h("log_click_with_layer_from_element_in_command_handler")){var c;K=K==null?void 0:(c=K.form)==null?void 0:c.element;d.JSC$12544_screenManager.clickCommand(H,null,K&&K.getScreenLayer&&K.getScreenLayer())}else H.clickTrackingParams?d.JSC$12544_screenManager.clickCommand(H):!_.h("disable_clicked_visual_element_in_command_handler")&&(K==null?0:K.clickedVisualElement)&&_.xR(d.JSC$12544_screenManager,
K.clickedVisualElement)},xFM=function(d){var H=!!_.M(d,_.kW),K;
d=((K=_.M(d,_.no))==null?void 0:K.signal)==="CLIENT_SIGNAL";return H||d},nn0=function(d,H,K){var c=_.M(H,_.kW);
if(c)var p=(c==null?void 0:c.commands)||[];else{var g;if(((g=_.M(H,_.no))==null?void 0:g.signal)==="CLIENT_SIGNAL"){var a;p=((a=_.M(H,_.no))==null?void 0:a.actions)||[]}}if(p){H=_.q(p);for(p=H.next();!p.done;p=H.next()){p=p.value;try{d.resolveCommand(p,K)}catch(e){e instanceof Error&&_.z5(e)}}return!0}yQD(H,"Could not handle the meta command");return!1},CmU=function(d){var H;
return!((H=_.M(d==null?void 0:d.commandMetadata,_.Co))==null||!H.url)};var Vq=function(){KU.apply(this,arguments)};
_.m(Vq,KU);Vq.prototype.validate=function(d){var H,K;return!this.hasRun&&!!((H=d.data.response)==null?0:(K=H.onResponseReceivedEndpoints)==null?0:K.length)};
Vq.prototype.handle=function(d){var H=_.nM.instance;d=_.q(d.data.response.onResponseReceivedEndpoints);for(var K=d.next();!K.done;K=d.next())H.resolveCommand(K.value)};var Rml,VWM,UF7;
Rml=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.e5();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.UT=function(){VWM||(VWM=new Rml);return VWM};
UF7=function(){var d=_.UT();d.miniplayerButtonActivation=!1;d.userActivation=!1;d.playlistWatchPageActivation=!1;d.productDetailsPageActivation=!1;d.miniAppPageActivation=!1;d.playablesDestPageActivation=!1;d.lockupActivation=!1;d.showMiniplayerCommandActivation=!1;d.playlistSuggestionsShelfActivation=!1;d.mediaSessionPipActivation=!1;d.watchPipActivation=!1;d.watchWhileActivation=!1;d.shortsPipActivation=!1};
_.hmg=function(){var d=_.UT(),H=d.mediaSessionPipActivation,K=d.watchPipActivation,c=d.watchWhileActivation,p=d.playlistWatchPageActivation,g=d.lockupActivation,a=d.showMiniplayerCommandActivation,e=d.navigatingAwayFromWatchDeletedVideo,k=d.shortsPipActivation,C=d.playlistSuggestionsShelfActivation,R=d.productDetailsPageActivation,V=d.miniAppPageActivation,U=d.playablesDestPageActivation;return!d.miniplayerButtonActivation&&!p&&!C&&!R&&!V&&!U&&!g&&!a&&!H&&!K&&!c&&!k||e};var jgM;_.hJ=_.$L("FEwhat_to_watch","/",3854);_.v7l=_.$L("FEdownloads","/feed/downloads",42352);jgM=_.$L("FEmusic_offline","browse/FEmusic_offline",42352);var vW=function(d,H){H=H===void 0?[]:H;var K=K===void 0?[]:K;H=ebh.apply(null,[kw5.apply(null,_.ru(H))].concat(_.ru(K)));this.store=Rb1(d,void 0,H)};
vW.prototype.getState=function(){return this.store.getState()};
vW.prototype.dispatch=function(d){return this.store.dispatch(d)};
vW.prototype.subscribe=function(d){return this.store.subscribe(d)};
vW.prototype.replaceReducer=function(d){return this.store.replaceReducer(d)};
vW.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.LU=function(d,H,K){var c=H(d.getState());return d.subscribe(function(){var p=H(d.getState());if(p!==c){var g=c;c=p;K(p,g)}})};var Qef;_.PI=function(d,H,K){return _.iZ({type:"REPLACE_ENTITY",payload:{entityPayload:K,entityType:d,key:H}})};
Qef=function(d){return _.iZ({type:"REPLACE_ENTITIES",payload:d})};
_.BK=function(d,H,K,c){return _.iZ({type:"UPDATE_ENTITY",payload:{entityPayload:K,entityType:d,key:H,mergeOption:c}})};var GzM=function(d){var H=this;d=d===void 0?[]:d;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;d.forEach(function(K){H.append(K)})};
_.G=GzM.prototype;_.G.getLength=function(){return this.totalLength};
_.G.append=function(d){var H=this.arrays.length===0?!1:(H=this.arrays[this.arrays.length-1])&&H.buffer===d.buffer&&H.byteOffset+H.length===d.byteOffset;H?(H=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(H.buffer,H.byteOffset,H.length+d.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(d);this.totalLength+=d.length};
_.G.split=function(d){for(var H=new GzM,K=new GzM,c=_.q(this.arrays),p=c.next();!p.done;p=c.next())p=p.value,d>=p.length?(H.append(p),d-=p.length):d?(H.append(new Uint8Array(p.buffer,p.byteOffset,d)),K.append(new Uint8Array(p.buffer,p.byteOffset+d,p.length-d)),d=0):K.append(p);return{headView:H,tailView:K}};
_.G.extract=function(d,H){return this.split(d).tailView.split(H).headView};
_.G.isFocused=function(d){return d>=this.arrayPos&&d<this.arrayPos+this.arrays[this.arrayIdx].length};
_.G.focus=function(d){if(!this.isFocused(d))for(d<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=d&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var LLd=function(d,H){d.focus(H);return d.arrays[d.arrayIdx][H-d.arrayPos]};(function(){var d=function(c){return new Uint8Array(c)},H=function(c){for(var p=new Uint8Array(c.length),g=0;g<c.length;g++)p[g]=c[g];
return p},K=new Uint8Array([1]);
return K.length===1&&K[0]===1?d:H})();
var $ql=Array(1024),Ha1=window.TextDecoder?new TextDecoder:void 0,csh=window.TextEncoder?new TextEncoder:void 0;var iah=function(d){this.arrayView=d;this.pos=0;this.pendingTagAndType=-1},qR=function(d){var H=LLd(d.arrayView,d.pos);
++d.pos;if(H<128)return H;for(var K=H&127,c=1;H>=128;)H=LLd(d.arrayView,d.pos),++d.pos,c*=128,K+=(H&127)*c;return K},o4i=function(d,H){var K=d.pendingTagAndType;
for(d.pendingTagAndType=-1;d.pos+1<=d.arrayView.totalLength;){K<0&&(K=qR(d));var c=K>>3,p=K&7;if(c===H)return!0;if(c>H){d.pendingTagAndType=K;break}K=-1;switch(p){case 0:qR(d);break;case 1:d.pos+=8;break;case 2:c=qR(d);d.pos+=c;break;case 5:d.pos+=4}}return!1};var agY=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=g44(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},eG=function(d,H){H=d.pos+H;
if(!(d.buf.length>=H)){for(var K=d.buf.length*2;K<H;)K*=2;d.buf=g44(K,d.wasm,d.buf.subarray(0,d.pos));d.view=new DataView(d.buf.buffer,d.buf.byteOffset,d.buf.byteLength)}},lZ=function(d,H){if(H>268435455){eG(d,4);
for(var K=H&1073741823,c=0;c<4;c++)d.view.setUint8(d.pos,K&127|128),K>>=7,d.pos+=1;H=Math.floor(H/268435456)}for(eG(d,4);H>127;)d.view.setUint8(d.pos,H&127|128),H>>=7,d.pos+=1;d.view.setUint8(d.pos,H);d.pos+=1};for(var lgL={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},qVF={},MW3=_.q(Object.entries(lgL)),mFA=MW3.next();!mFA.done;mFA=MW3.next()){var w$3=_.q(mFA.value),PmS=w$3.next().value,uk7=w$3.next().value,IF3=PmS,rV3=uk7;rV3&&(qVF[rV3]=IF3)};var kzC=function(d,H){d=d===void 0?{}:d;switch(H.type){case "ENTITY_LOADED":return H.payload.reduce(function(c,p){var g,a=(g=p.options)==null?void 0:g.persistenceOption;if(a&&a!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&a!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return c;if(!p.entityKey)return _.z5(Error("zf")),c;if(p.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!p.payload)return p=new _.m1("REPLACE entity mutation is missing a payload",{entityKey:p.entityKey}),_.z5(p),c;var e=(0,_.rs.getAnyKey)(p.payload);
return n4F(c,e,p.entityKey,p.payload[e])}if(p.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{p=p.entityKey;try{var k=_.a6(p).entityType;e=n4F(c,k,p);break a}catch(V){if(V instanceof Error){p=new _.m1("Failed to deserialize entity key",{entityKey:p,originalMessage:V.message});_.z5(p);e=c;break a}throw V;}e=void 0}return e}if(p.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!p.payload)return p=new _.m1("UPDATE entity mutation is missing a payload",{entityKey:p.entityKey}),_.z5(p),c;e=(0,_.rs.getAnyKey)(p.payload);
var C,R;return C$5(c,e,p.entityKey,p.payload[e],(C=p.fieldMask)==null?void 0:(R=C.mergeOptions)==null?void 0:R.repeatedFieldsMergeOption)}return c},d);
case "REPLACE_ENTITY":var K=H.payload;return n4F(d,K.entityType,K.key,K.entityPayload);case "REPLACE_ENTITIES":return Object.keys(H.payload).reduce(function(c,p){var g=H.payload[p];return Object.keys(g).reduce(function(a,e){return n4F(a,p,e,g[e])},c)},d);
case "UPDATE_ENTITY":return K=H.payload,C$5(d,K.entityType,K.key,K.entityPayload,K.mergeOption);default:return d}};var RSE;var WLA=!1,Mw,m2,wI,Px,ud,Bb7=function(d){_.h_.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!WLA){var H,K=new Uint8Array(256),c=new Uint8Array(256);var p=1;for(H=0;H<256;H++)K[p]=H,c[H]=p,p^=p<<1^(p>>7&&283);Mw=new Uint8Array(256);m2=nH(256);wI=nH(256);Px=nH(256);ud=nH(256);for(var g=0;g<256;g++){p=g?c[255^K[g]]:0;p^=p<<1^p<<2^p<<3^p<<4;p=p&255^p>>>8^99;Mw[g]=p;H=p<<1^(p>>7&&283);var a=H^p;m2[g]=H<<24|p<<16|p<<8|a;wI[g]=a<<24|m2[g]>>>8;Px[g]=p<<24|wI[g]>>>
8;ud[g]=p<<24|Px[g]>>>8}WLA=!0}p=nH(44);for(K=0;K<4;K++)p[K]=d[4*K]<<24|d[4*K+1]<<16|d[4*K+2]<<8|d[4*K+3];for(c=1;K<44;K++)d=p[K-1],K%4||(d=(Mw[d>>16&255]^c)<<24|Mw[d>>8&255]<<16|Mw[d&255]<<8|Mw[d>>>24],c=c<<1^(c>>7&&283)),p[K]=p[K-4]^d;this.key=p};
_.m(Bb7,_.h_);
Bb7.prototype.encrypt=function(d){var H=d.length;d=new Uint8Array(d.buffer.slice(d.byteOffset,d.byteOffset+H));for(var K=this.cipherBlock,c=0;c<H&&this.blockOffset<16;)d[c++]^=K[this.blockOffset++];for(var p=H-(H-c)%16;c<p;)zmA(this),d[c++]^=K[0],d[c++]^=K[1],d[c++]^=K[2],d[c++]^=K[3],d[c++]^=K[4],d[c++]^=K[5],d[c++]^=K[6],d[c++]^=K[7],d[c++]^=K[8],d[c++]^=K[9],d[c++]^=K[10],d[c++]^=K[11],d[c++]^=K[12],d[c++]^=K[13],d[c++]^=K[14],d[c++]^=K[15];if(c<H)for(zmA(this),this.blockOffset=0;c<H;)d[c++]^=
K[this.blockOffset++];return d};
var zmA=function(d){for(var H=d.key,K=d.counter[0]^H[0],c=d.counter[1]^H[1],p=d.counter[2]^H[2],g=d.counter[3]^H[3],a=3;a>=0&&!(d.counter[a]=-~d.counter[a]);a--);for(var e,k,C=4;C<40;)a=m2[K>>>24]^wI[c>>16&255]^Px[p>>8&255]^ud[g&255]^H[C++],e=m2[c>>>24]^wI[p>>16&255]^Px[g>>8&255]^ud[K&255]^H[C++],k=m2[p>>>24]^wI[g>>16&255]^Px[K>>8&255]^ud[c&255]^H[C++],g=m2[g>>>24]^wI[K>>16&255]^Px[c>>8&255]^ud[p&255]^H[C++],K=a,c=e,p=k;d=d.cipherBlock;a=H[40];d[0]=Mw[K>>>24]^a>>>24;d[1]=Mw[c>>16&255]^a>>16&255;d[2]=
Mw[p>>8&255]^a>>8&255;d[3]=Mw[g&255]^a&255;a=H[41];d[4]=Mw[c>>>24]^a>>>24;d[5]=Mw[p>>16&255]^a>>16&255;d[6]=Mw[g>>8&255]^a>>8&255;d[7]=Mw[K&255]^a&255;a=H[42];d[8]=Mw[p>>>24]^a>>>24;d[9]=Mw[g>>16&255]^a>>16&255;d[10]=Mw[K>>8&255]^a>>8&255;d[11]=Mw[c&255]^a&255;a=H[43];d[12]=Mw[g>>>24]^a>>>24;d[13]=Mw[K>>16&255]^a>>16&255;d[14]=Mw[c>>8&255]^a>>8&255;d[15]=Mw[p&255]^a&255};var X$d=!1;(function(){var d=function(c){return new Uint8Array(c)},H=function(c){for(var p=new Uint8Array(c.length),g=0;g<c.length;g++)p[g]=c[g];
return p},K=new Uint8Array([1]);
return K.length===1&&K[0]===1?d:H})();
var IS;var FLS=function(d){a:{if(!X$d&&!AX){if(IS){var H=IS;break a}IS=(H=window.crypto)==null?void 0:H.subtle;var K,c,p;if(((K=IS)==null?0:K.importKey)&&((c=IS)==null?0:c.sign)&&((p=IS)==null?0:p.encrypt)){H=IS;break a}IS=void 0}H=void 0}H&&(this.nativeEncryptor=new JV3(d,H));this.encryptorPolyfill=new saN(d)};
FLS.prototype.encrypt=function(d,H){var K=this,c;return _.l(function(p){switch(p.nextAddress){case 1:if(!K.nativeEncryptor){p.jumpTo(2);break}_.e2(p,3);return p.yield(K.nativeEncryptor.encrypt(d,H),5);case 5:return p.return(p.yieldResult);case 3:c=_.RV(p),_.Jf(c),X$d=!0,K.nativeEncryptor=void 0;case 2:return p.return(K.encryptorPolyfill.encrypt(d,H))}})};
FLS.prototype.decrypt=function(d,H){return this.encrypt(d,H)};
var JV3=function(d,H){this.JSC$12617_aesKey=d;this.subtleCrypto=H};
JV3.prototype.encrypt=function(d,H){var K=this,c;return _.l(function(p){if(p.nextAddress==1)return _.e2(p,2),p.yield(ZJU(K,d,H),4);if(p.nextAddress!=2)return p.return(p.yieldResult);c=_.RV(p);_.Jf(c);X$d=!0;throw c;})};
var ZJU=function(d,H,K){var c,p;return _.l(function(g){switch(g.nextAddress){case 1:if(d.cryptoKey){g.jumpTo(2);break}return g.yield(d.subtleCrypto.importKey("raw",d.JSC$12617_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:d.cryptoKey=g.yieldResult;case 2:return c={name:"AES-CTR",counter:K,length:128},g.yield(d.subtleCrypto.encrypt(c,d.cryptoKey,H),4);case 4:return p=g.yieldResult,g.return(new Uint8Array(p))}})},saN=function(d){this.JSC$12620_aesKey=d};
saN.prototype.encrypt=function(d,H){this.encryptor||(this.encryptor=new Bb7(this.JSC$12620_aesKey));for(var K=this.encryptor,c=0;c<4;c++)K.counter[c]=H[c*4]<<24|H[c*4+1]<<16|H[c*4+2]<<8|H[c*4+3];K.blockOffset=16;return this.encryptor.encrypt(d)};
saN.prototype.decrypt=function(d,H){return this.encrypt(d,H)};var TbU={},hSD=HM("yt-idb-pref-storage",{objectStores:(TbU.prefs={addedAtVersion:1},TbU),shared:!1,upgrade:function(d,H){H(1)&&YG(t5(d,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.rI=function(d){this.token=d};
_.rI.getInstance=function(){return _.l(function(d){return d.return(new Promise(function(H){_.dF().then(function(K){K?(_.rI.instance||(_.rI.instance=new _.rI(K)),H(_.rI.instance)):H(void 0)})}))})};
_.rI.prototype.get=function(d){var H=this,K,c,p;return _.l(function(g){if(g.nextAddress==1)return g.yield(L_f(H.token),2);if(g.nextAddress!=3)return K=g.yieldResult,g.yield(K.get("prefs",d),3);c=g.yieldResult;if(!c)return g.return();p=(0,_.$G)();return c.expirationTimestampMs<=p?g.return():g.return(c.value)})};
_.rI.prototype.set=function(d,H,K){K=K===void 0?31536E3:K;var c=this,p,g,a;return _.l(function(e){if(e.nextAddress==1)return p=(0,_.$G)(),g={key:d,value:H,expirationTimestampMs:p+K*1E3},e.yield(L_f(c.token),2);a=e.yieldResult;return e.yield(a.put("prefs",g),0)})};
_.rI.prototype.remove=function(d){var H=this,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(L_f(H.token),2);K=c.yieldResult;return c.yield(K.delete("prefs",d),0)})};var Wx={},QaM=(Wx.INVALID_ENCODER_VERSION="Invalid encoder version",Wx.KEY_CREATION_FAILED="Failed to create encoder key",Wx.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Wx.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Wx.WRONG_DATA_TYPE="Encoder cannot process the data type",Wx),CH=function(d,H){H=H===void 0?{}:H;_.m1.call(this,QaM[d],Object.assign({},{name:"PESEncoderError",type:d},H));this.type=d;this.level="WARNING";Object.setPrototypeOf(this,CH.prototype)};
_.m(CH,_.m1);var Bx=function(){};
Bx.prototype.encode=function(d,H){try{return this.encodeImpl(d,H)}catch(K){P$E(K,mqY)}};
Bx.prototype.decode=function(d,H){try{return this.decodeImpl(d,H)}catch(K){P$E(K,w4h)}};
var tW3=function(d,H,K){var c;return _.l(function(p){if(p.nextAddress==1)return _.e2(p,2),p.yield(d.decodeAsyncImpl(H,K),4);if(p.nextAddress!=2)return p.return(p.yieldResult);c=_.RV(p);P$E(c,w4h);_.VE(p)})};
Bx.prototype.decodeAsyncImpl=function(d,H){return Promise.resolve(this.decodeImpl(d,H))};var zF=function(d,H){this.aesEncryptor=d;this.aesEncryptorAsync=H};
_.m(zF,Bx);zF.prototype.encodeImpl=function(d,H){H=u5F(H);d=(new TextEncoder).encode(JSON.stringify(d));return this.aesEncryptor.encrypt(d,H)};
zF.prototype.decodeImpl=function(d,H){if(!(d instanceof Uint8Array))throw MK4(1);var K=new TextDecoder;H=u5F(H);d=this.aesEncryptor.decrypt(d,H);return JSON.parse(K.decode(d))};
zF.prototype.decodeAsyncImpl=function(d,H){var K=this,c,p,g;return _.l(function(a){if(a.nextAddress==1){if(!(d instanceof Uint8Array))throw MK4(1);c=new TextDecoder;p=u5F(H);return a.yield(K.aesEncryptorAsync.decrypt(d,p),2)}g=a.yieldResult;return a.return(JSON.parse(c.decode(g)))})};var IgD={accountLinkStatusEntity:ibS,booleanEntity:ZGB,buttonEntity:dZ0,captionTrack:t0g,channelHandle:ebA,chipEntity:PdB,commerceAcquisitionClientPayloadEntity:mZ3,commerceCartListEntity:wCN,contextNoteFeedEntityPayload:PA6,contextNoteUserRatingEntityPayload:uDM,continuationTokenEntity:LqC,downloadQualityPickerEntity:ahd,downloadsPageRefreshTokenEntity:eaS,downloadsPageViewConfigurationEntity:BaU,downloadStatusEntity:lhA,dismissState:utd,sfvAudioItemCurrentlyPlayingEntity:VKA,emojiFountainDataEntity:A$U,
emojiCustomizationSetEntity:ffS,fakeChannel:tJg,fakePlaylist:YR3,fakePlaylistEntryCollection:OGM,fakeVideo:E3X,fakeVideoDescription:yvg,featuredProductsEntity:jbd,flowStateEntity:Kad,iconBadgeEntity:Pq7,interstitialInteractionStateEntity:Mq6,likeButtonAnimationEntity:zaN,liveChatPollStateEntity:BpX,liveViewerLeaderboardChatEntryPointStateEntity:HaM,liveViewerLeaderboardPointsEntity:$qS,liveReactionsDataEntity:jk7,logoEntity:hnS,macroMarkerEntity:XUg,mainDownloadsLibraryEntity:k8U,mainDownloadsListEntity:xs7,
mainPlaylistDownloadStateEntity:CSl,mainPlaylistEntity:ML3,mainPlaylistVideoEntity:msB,mainVideoDownloadStateEntity:Rag,mainVideoEntity:Ihg,markersEngagementPanelSyncEntity:Jg3,markersVisibilityOverrideEntity:sbA,musicAlbumReleaseDetail:oZ7,musicAlbumReleaseDownloadMetadataEntity:cQ7,musicAlbumRelease:GS3,musicAlbumReleaseUserDetail:qhg,musicArtistDetail:lv3,musicArtist:avB,musicArtistUserDetail:eeC,musicDownloadsLibraryEntity:pZ3,musicLibraryEdit:kSl,musicLibraryStatusEntity:xAN,musicPlaylist:nZ7,
musicPlaylistDownloadMetadataEntity:gZA,musicShare:Re7,musicTrackDetail:UA7,musicTrackDownloadMetadataEntity:iNM,musicTrack:V0S,musicTrackUserDetail:heC,offlineOrchestrationActionWrapperEntity:YhU,offlineVideoPolicy:ONS,offlineVideoStreams:ShS,offlineabilityEntity:VL6,orchestrationWebSamplingEntity:Usg,pageHeaderEntity:Ys6,pdpStateEntity:uVA,pinnedProductEntity:vqX,playbackData:EZl,playerStateEntity:Fq6,quantityIncrementerEntity:IjN,refresh:yQ0,saveToPlaylistListEntity:tK6,selectedChipIndexEntityPayload:ZTS,
settingEntity:iUX,stringEntity:TMC,suggestedFeedbackChipStateEntity:TaM,transfer:bNS,trendingOfferEntity:dA7,videoDownloadContextEntity:Nig,videoOverviewAsyncDataEntity:jm7,videoPlaybackPositionEntity:Kul,votingEntity:y$l,ytMainChannelEntity:rgS,youchatPendingResponseEntity:Qb3,ytMainDownloadedVideoEntity:ha3,ytMainVideoEntity:WqM};var Ygl,Sgd,LH,F_l,Zah,bJl,DFM,Nb3,yVX;Ygl=function(d,H){this.JSC$12639_wrapped=d;this.JSC$12639_encoderRegistry=H;this.changedKeys={}};
Sgd=function(d,H){return OJd(d.JSC$12639_encoderRegistry,H.version).decode(H.data,H.key)};
_.End=function(d,H,K){return d.JSC$12639_wrapped.objectStore("EntityStore").get(H).then(function(c){if(c){if(K&&c.entityType!==K)throw Error("Af");return Sgd(d,c)}})};
LH=function(d,H,K){return K?(K=K.map(function(c){return _.End(d,c,H)}),Qm.all(K)):d.JSC$12639_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(H)).then(function(c){return c.map(function(p){return Sgd(d,p)})})};
_.seD=function(d,H,K){var c=eS4(H),p=OJd(d.JSC$12639_encoderRegistry,1),g=Object.assign({},H);return d.JSC$12639_wrapped.objectStore("EntityStore").get(c).then(function(a){if(a){if(a.entityType!==K)throw Error("Af");g.entityMetadata||(a=Sgd(d,a),g.entityMetadata=a.entityMetadata)}}).then(function(){var a={key:c,
entityType:K,data:p.encode(g,c),version:1};return Qm.all([d.JSC$12639_wrapped.objectStore("EntityStore").put(a),yVX(d,g,K)])}).then(function(){bJl(d,c,K);
return c})};
F_l=function(d,H){var K=_.a6(H).entityType;return Qm.all([d.JSC$12639_wrapped.objectStore("EntityStore").delete(H),Nb3(d,H)]).then(function(){bJl(d,H,K)})};
Zah=function(d,H,K,c){var p=OJd(d.JSC$12639_encoderRegistry,1);return _.End(d,H,c).then(function(g){if(g){g=dqF(g,K);var a={key:H,entityType:c,data:p.encode(g,H),version:1};return Qm.all([d.JSC$12639_wrapped.objectStore("EntityStore").put(a),yVX(d,g,c)])}}).then(function(){bJl(d,H,c);
return H})};
bJl=function(d,H,K){var c=d.changedKeys[K];c||(c=new Set,d.changedKeys[K]=c);c.add(H)};
DFM=function(d,H,K){var c=eS4(H);K=rs5(K);if(!K)return Qm.resolve([]);K=new K(H);d=d.JSC$12639_wrapped.objectStore("EntityAssociationStore");H=[];K=_.q(K.getAssociations());for(var p=K.next();!p.done;p=K.next())H.push(d.put({parentEntityKey:c,childEntityKey:p.value}));return Qm.all(H).then(function(g){return g.map(function(a){return a[1]})})};
Nb3=function(d,H){return d.JSC$12639_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(H))};
yVX=function(d,H,K){var c=eS4(H);return Nb3(d,c).then(function(){return DFM(d,H,K)})};var fFU=function(){};
_.m(fFU,Bx);fFU.prototype.encodeImpl=function(d){return d};
fFU.prototype.decodeImpl=function(d){if(d instanceof Uint8Array)throw MK4(0);return d};var zSY=function(){this.cacheMap={};this.cacheMap[0]=new fFU;if(!_.h("aes_pes_encoder_killswitch")){var d=this.cacheMap;try{var H=_.Lj();var K=u5F(H);var c=new zF(new saN(K),new FLS(K))}catch(p){throw d=p instanceof Error?new CH("KEY_CREATION_FAILED",{originalMessage:p.message}):new CH("KEY_CREATION_FAILED"),_.z5(d),d;}d[1]=c}},OJd=function(d,H){H=H===void 0?0:H;
d=d.cacheMap[H];if(!d)throw H=new CH("INVALID_ENCODER_VERSION",{encoderVersion:H}),_.z5(H),H;return d};var VO=function(d,H){_.h_.call(this);this.token=d;this.JSC$12653_encoderRegistry=H;this.observers=[];d=new _.KF.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.Lj());d.onmessage=this.handleMessage.bind(this);this.channel=d};
_.m(VO,_.h_);_.hF=function(d,H,K){var c,p,g,a;return _.l(function(e){if(e.nextAddress==1)return e.yield(UqC(d.token),2);if(e.nextAddress!=3)return c=e.yieldResult,e.yield(_.NQ(c,["EntityStore","EntityAssociationStore"],H,function(k){p=new Ygl(k,d.JSC$12653_encoderRegistry);return K(p)}),3);
g=e.yieldResult;p&&(a=p.changedKeys,Object.keys(a).length>0&&(d.channel.postMessage(a),AV3(d,a)));return e.return(g)})};
VO.prototype.observe=function(d){var H=this;this.observers.push(d);return function(){var K=H.observers.indexOf(d);K>=0&&H.observers.splice(K,1)}};
var GuF=function(d){var H;return _.l(function(K){if(K.nextAddress==1)return K.yield(_.hF(d,{mode:"readonly",enableRetries:!0},function(c){return c.JSC$12639_wrapped.objectStore("EntityStore").getAll()}),2);
H=K.yieldResult;return K.return(Promise.all(H.filter(function(c){return!!c}).map(function(c){var p,g;
return _.l(function(a){if(a.nextAddress==1){p=c.key;g=c.entityType;var e=a.yield;var k=tW3(OJd(d.JSC$12653_encoderRegistry,c.version),c.data,c.key);return e.call(a,k,2)}return a.return({key:p,entityType:g,data:a.yieldResult})})})))})};
VO.prototype.handleMessage=function(d){AV3(this,d.data)};
var AV3=function(d,H){d=_.q(d.observers);for(var K=d.next();!K.done;K=d.next())K=K.value,K(H)};
VO.prototype.disposeInternal=function(){this.channel.close()};
var W_E;var Xt,vn6,K2l;Xt={};_.ja0=(Xt.mainVideoEntity="mainVideoEntityActionMetadata",Xt.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Xt.musicTrack="musicTrackEntityActionMetadata",Xt.musicPlaylist="musicPlaylistEntityActionMetadata",Xt);vn6=new _.Av("DOWNLOADS_ENTITY_TYPE_MAP");_.WW=_.kL("","downloadsPageViewConfigurationEntity");K2l=_.kL("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.F2F=_.kL("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.kL("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.kL("SMART_DOWNLOADS_ENABLED","settingEntity");_.kL("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var OaF=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var fgF=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var mwh={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var JJ,mGF,Mvg,Kyh;JJ=window;_.SG=JJ.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.sk5=JJ.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.fH;mGF=JJ.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||RI;Mvg=JJ.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||Lld;_.dEd=JJ.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.Q13;Kyh=JJ.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||OKX;NR({id:"America/Los_Angeles",names:["PST","PST","PDT","PDT"],std_offset:-480,transitions:[2770,60,7137,0,11506,60,16041,0,20410,60,24777,0,29146,60,33513,0,35194,60,42249,0,45106,60,50985,0,55354,60,59889,0,64090,60,68625,0,72994,60,77361,0,81730,60,86097,0,90466,60,94833,0,99202,60,103569,0,107938,60,112473,0,116674,60,121209,0,125578,60,129945,0,134314,60,138681,0,143050,60,147417,0,151282,60,156153,0,160018,60,165057,0,168754,60,173793,0,177490,60,182529,0,186394,60,191265,0,195130,60,200001,0,
203866,60,208905,0,212602,60,217641,0,221338,60,226377,0,230242,60,235113,0,238978,60,243849,0,247714,60,252585,0,256450,60,261489,0,265186,60,270225,0,273922,60,278961,0,282826,60,287697,0,291562,60,296433,0,300298,60,305337,0,309034,60,314073,0,317770,60,322809,0,326002,60,331713,0,334738,60,340449,0,343474,60,349185,0,352378,60,358089,0,361114,60,366825,0,369850,60,375561,0,378586,60,384297,0,387322,60,393033,0,396058,60,401769,0,404962,60,410673,0,413698,60,419409,0,422434,60,428145,0,431170,
60,436881,0,439906,60,445617,0,448810,60,454521,0,457546,60,463257,0,466282,60,471993,0,475018,60,480729,0,483754,60,489465,0,492490,60,498201,0,501394,60,507105,0,510130,60,515841,0,518866,60,524577,0,527602,60,533313,0,536338,60,542049,0,545242,60,550953,0,553978,60,559689,0,562714,60,568425,0,571450,60,577161,0,580186,60,585897,0,588922,60,594633,0]});var Ty5=wmh(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(d){return d}}}),FTF=wmh(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(d){return d}}}),r$1=new Map;var t$L=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],J$l;var HQ3=function(d){return _.iZ({type:"SET_EPHEMERAL_ACTION",payload:d})};var $EX={ephemeralAction:null};var KD0={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var Yq4={sharedUi:function(d,H){d=d===void 0?KD0:d;switch(H.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},d,{animatedThumbnailEnabled:H.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},d,{inlinePreviewEnabled:H.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},d,{currentPageType:H.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},d,{currentPageSubType:H.payload});default:return d}},
a11y:Ru({ephemeralAction:function(d,H){d=d===void 0?$EX.ephemeralAction:d;switch(H.type){case "SET_EPHEMERAL_ACTION":return H.payload;default:return d}}}),
entities:xqC};var bsF={playlistId:"",inviteLinkURL:""};var cyB={};var XCi=Ru({continuationCommand:function(d,H){d=d===void 0?cyB:d;switch(H.type){case "SET_CONTINUATION_COMMAND":return H.payload.continuationCommand;default:return d}}});var DGi={currentFormId:"",commandsMap:{}};var JT1=Ru({isLeaderTab:function(d,H){d=d===void 0?!0:d;switch(H.type){case "SET_IS_LEADER_TAB":var K,c;return(c=H==null?void 0:(K=H.payload)==null?void 0:K.isLeaderTab)!=null?c:d;default:return d}}});var gAU;_.p2l=function(d){return _.iZ({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:d}})};
gAU=function(d){return _.iZ({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:d}})};var tPl=Ru({isDesktopSmallWidth:function(d,H){switch(H.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return H.payload.isDesktopSmallWidth;default:return d===void 0?!1:d}},
isShortsActive:function(d,H){switch(H.type){case "SET_IS_SHORTS_ACTIVE":return H.payload.isShortsActive;default:return d===void 0?!1:d}},
isWatchWhileMode:function(d,H){switch(H.type){case "SET_IS_WATCH_WHILE_MODE":return H.payload.isWatchWhileMode;default:return d===void 0?!1:d}},
playerState:function(d,H){switch(H.type){case "SET_PLAYER_STATE":return H.payload.playerState;default:return d===void 0?-1:d}},
isFullscreen:function(d,H){switch(H.type){case "SET_IS_FULLSCREEN":return H.payload.isFullscreen;default:return d===void 0?!1:d}},
isSmallScreenSqueezeback:function(d,H){switch(H.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return H.payload.isSmallScreenSqueezeback;default:return d===void 0?!1:d}},
isShortsPipActive:function(d,H){switch(H.type){case "SET_IS_SHORTS_PIP_ACTIVE":return H.payload.isShortsPipActive;default:return d===void 0?!1:d}},
isPlaybackStarted:function(d,H){switch(H.type){case "SET_IS_PLAYBACK_STARTED":return H.payload.isPlaybackStarted;default:return d===void 0?!1:d}}});var uVh={currentMode:"canvas-hidden"};var SqX=function(){return function(d){return function(H){var K=d(H);_.oF(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[H],!0);return K}}};var iQd,NCF;iQd=new _.ki;_.Gx=new _.Av("WATCH_PLAYER_PROMISE_TOKEN");_.GsS=new _.ki;_.oAX=new _.Av("SHORTS_PLAYER_PROMISE_TOKEN");NCF=new _.Av("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var EkF=function(){return function(d){return function(H){H.type==="ENTITY_LOADED"&&_.Kj().resolve(_.Gx).then(function(K){var c;(c=K.dispatchReduxAction)==null||c.call(K,H)});
return d(H)}}};var qx7={};var sm1=Ru({additionalContext:function(d,H){switch(H.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var K;return(K=H.payload)!=null?K:"";default:return d===void 0?"":d}},
impersonatedChannelUrl:function(d,H){switch(H.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var K;return(K=H.payload)!=null?K:"";default:return d===void 0?"":d}},
selectedVideoIds:function(d,H){d=d===void 0?qx7:d;switch(H.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var K={};return Object.assign({},d,(K[H.payload]=!0,K));case "VIDEO_UNSELECTED":return H=H.payload,d=Object.assign({},d),delete d[H],d;default:return d}}});var FuX=Ru({parentClickTrackingParams:function(d,H){switch(H.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return H.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return d===void 0?"":d}}});var aMS=function(d){return _.iZ({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:d})};var lMS={};var Zdh=Ru({stepStates:function(d,H){d=d===void 0?lMS:d;switch(H.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var K=d,c=H.payload,p,g,a;d={};H={selectionStates:Object.assign({},(a=(p=K[c.stepId])==null?void 0:p.selectionStates)!=null?a:{},(d[c.token]={isSelected:c.isSelected},d)),userQuery:(g=K[c.stepId])==null?void 0:g.userQuery};p={};return Object.assign({},K,(p[c.stepId]=H,p));case "TALK_TO_RECS_UPDATE_USER_QUERY":return p=d,g=H.payload,a={selectionStates:Object.assign({},
(c=(K=p[g.stepId])==null?void 0:K.selectionStates)!=null?c:{}),userQuery:{userQuery:g.userQuery,token:g.userQueryToken}},K={},Object.assign({},p,(K[g.stepId]=a,K));default:return d}}});var eUS,ksU,nAM;eUS=function(d){return _.iZ({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:d})};
ksU=function(d){return _.iZ({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:d})};
_.mp=function(d){return _.iZ({type:"SET_CURRENT_PAGE_TYPE",payload:d})};
_.xE3=function(d){return _.iZ({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:d})};
nAM=function(d){return _.iZ({type:"SET_CHIP_BAR_IS_STICKY",payload:d})};var rT4={scrollAtTop:!0,guideIsExpanded:!1,guideIsVisibleButNotPersistent:!1,miniplayerIsActive:!1,singleOptionSurveyIsActive:!1,slimlineSurveyRatingSelectedIndex:-1,miniplayerPlaybackState:-1,richGridMiniMode:!1,richGridItemsPerRow:4,richGridSlimItemsPerRow:8,richGridContainerWidth:void 0,richGridStyle:"RICH_GRID_STYLE_UNKNOWN",currentPageType:"WEB_PAGE_TYPE_UNKNOWN",inlinePreviewIsActive:!1,inlinePreviewIsEnabled:!0,darkModeIsEnabled:!1,tabGesturesIsActive:!1,isOnline:!0,chipBarIsSticky:!1,frostedGlassMode:"none"};_.CNM=function(d){return _.iZ({type:"SET_PLAYER_STATE",payload:{playerState:d}})};var RUN=[],Vw6={width:0,height:0};var TlC=Ru({isTheaterMode:function(d,H){d=d===void 0?_.h("kevlar_disable_theater_mode_persistence")?!1:_.Qx("START_IN_THEATER_MODE"):d;switch(H.type){case "SET_IS_THEATER_MODE":return H.payload.isTheaterMode;default:return d}},
isWatchActive:function(d,H){switch(H.type){case "SET_IS_WATCH_ACTIVE":return H.payload.isWatchActive;default:return d===void 0?!1:d}},
isLearningJourneyActive:function(d,H){switch(H.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return H.payload.isLearningJourneyActive;default:return d===void 0?!1:d}},
isWatchFullscreen:function(d,H){switch(H.type){case "SET_IS_WATCH_FULLSCREEN":return H.payload.isWatchFullscreen;default:return d===void 0?!1:d}},
isWatchNarrowWidth:function(d,H){switch(H.type){case "SET_IS_WATCH_NARROW_WIDTH":return H.payload.isWatchNarrowWidth;default:return d===void 0?!1:d}},
isWatchRetroMode:function(d,H){switch(H.type){case "SET_IS_WATCH_RETRO_MODE":return H.payload.isWatchRetroMode;default:return d===void 0?!1:d}},
isLiveChatCollapsed:function(d,H){switch(H.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return H.payload.isLiveChatCollapsed;default:return d===void 0?!1:d}},
openEngagementPanels:function(d,H){d=d===void 0?RUN:d;var K=[].concat(_.ru(d));switch(H.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return K.push(H.payload.panelToAdd),K;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return K.splice(K.indexOf(H.payload.panelToRemove),1),K;default:return d}},
playerState:function(d,H){switch(H.type){case "SET_PLAYER_STATE":return H.payload.playerState;default:return d===void 0?-1:d}},
watchScrollTop:function(d,H){switch(H.type){case "SET_WATCH_SCROLL_TOP":return H.payload.watchScrollTop;default:return d===void 0?0:d}},
watchWindowSize:function(d,H){d=d===void 0?Vw6:d;switch(H.type){case "SET_WATCH_WINDOW_SIZE":return H.payload.watchWindowSize;default:return d}}});var UE3={feedbackTokens:[]};var QmX=Ru({surveyFeedbackData:function(d,H){d=d===void 0?UE3:d;switch(H.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return H.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},d,H.payload);default:return d}}});var BlD={};var bd4=void 0;_.h("web_enable_redux_store_on_demand")||(bd4=yTY());var hUU=function(d,H,K){var c=this;this.listId=d;this.JSC$12789_updateCallback=H;this.isOfflineVideoCallback=K;_.dn().subscribe(function(){c.handleUpdate()})};
hUU.prototype.getPlaylistData=function(){var d=_.dn().getState().entities;if(this.listId&&this.listId!=="PPSV"){var H=etY(d,this.listId,!0),K=_.kL(this.listId,"mainPlaylistEntity"),c,p;d=d==null?void 0:(c=d.mainPlaylistEntity)==null?void 0:(p=c[K])==null?void 0:p.title;return NlM(H,d,this.listId)}H=_.Asl(OUM(d));d=_.Asl(_.BW(d));d=H.concat(d);return NlM(d)};
hUU.prototype.getPlaylistId=function(){return this.listId};
hUU.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12789_updateCallback(this.listId,this.getPlaylistData(),{})};var sT=function(d,H,K,c){c=c===void 0?[]:c;this.JSC$12792_playlistNetworkManager=d;this.listId=H;this.JSC$12792_updateCallback=K;this.videoIds=c;this.pendingUpdates=[];this.currentIndex=0};
sT.prototype.JSC$12792_setCurrentIndex=function(d){this.currentIndex=d};
sT.prototype.setListId=function(d){this.listId=d};
var LDB=function(d,H){d.currentCreateRequest&&d.currentCreateRequest.cancel(H);d.currentUpdateRequest&&d.currentUpdateRequest.cancel(H);d.currentRefreshRequest&&d.currentRefreshRequest.cancel(H)};
sT.prototype.delete=function(){LDB(this,"PROXY DELETED")};
sT.prototype.addVideos=function(d,H,K){var c=this;K!==void 0?this.videoIds.splice.apply(this.videoIds,[K,0].concat(_.ru(d))):this.videoIds.push.apply(this.videoIds,_.ru(d));this.listId||this.currentCreateRequest?(d.forEach(function(p,g){p={addedVideoId:p,action:"ACTION_ADD_VIDEO"};K&&(p.addedVideoPosition=K+g);c.pendingUpdates.push(p)}),Ft(this)):Mw7(this,H.onCreateListCommand)};
var mE3=function(d,H,K,c,p){WiF(d.videoIds,H,K);H>d.currentIndex&&K<=d.currentIndex?d.JSC$12792_setCurrentIndex(d.currentIndex+1):H===d.currentIndex?d.JSC$12792_setCurrentIndex(K):H<d.currentIndex&&K>=d.currentIndex&&d.JSC$12792_setCurrentIndex(d.currentIndex-1);d.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:c,movedSetVideoIdPredecessor:p});Ft(d)},Mw7=function(d,H){LDB(d,"OBSOLETE");
d.currentCreateRequest=w2d(d.JSC$12792_playlistNetworkManager,H,d.videoIds);_.Lq(d.currentCreateRequest,function(){d.currentCreateRequest=void 0}).then(function(K){d.setListId(K.playlistId);
d.pendingUpdates.length>0?Ft(d):PNS(d)})},Ft=function(d){if(d.pendingUpdates.length!==0&&(d.currentRefreshRequest&&d.currentRefreshRequest.cancel("OBSOLETE"),!d.currentUpdateRequest&&!d.currentCreateRequest)){var H=d.pendingUpdates.splice(0,d.pendingUpdates.length);
d.currentUpdateRequest=d.JSC$12792_playlistNetworkManager.updatePlaylist(d.listId,H);_.Lq(d.currentUpdateRequest,function(){d.currentUpdateRequest=void 0}).then(function(){d.pendingUpdates.length>0?Ft(d):PNS(d)}).thenCatch(function(){d.pendingUpdates.unshift.apply(d.pendingUpdates,_.ru(H))})}},PNS=function(d){d.currentRefreshRequest=_.uYM(d.JSC$12792_playlistNetworkManager,d.listId,d.currentIndex,d.videoIds[d.currentIndex]);
_.Lq(d.currentRefreshRequest,function(){d.currentRefreshRequest=void 0}).then(function(H){d.JSC$12792_updateCallback(H.playlistId,H.playlistPanelRenderer,H.autoplayRenderer)})};
sT.prototype.size=function(){return this.videoIds.length};var IMd=function(d,H,K,c){c=c===void 0?[]:c;sT.call(this,d,H,K,c);this.JSC$12792_playlistNetworkManager=d;this.listId=H;this.JSC$12792_updateCallback=K;this.videoIds=c};
_.m(IMd,sT);_.ZE=function(d,H,K,c,p,g,a){p=p===void 0?[]:p;a=a===void 0?$J:a;sT.call(this,d,H,K,p);this.JSC$12792_playlistNetworkManager=d;this.listId=H;this.JSC$12792_updateCallback=K;this.onAuthChange=c;this.videoIds=p;this.storage=g;this.cookieReader=a;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.lV(_.Xp,this.checkLoggedInStatusChange.bind(this),1E3)};
_.m(_.ZE,sT);_.G=_.ZE.prototype;_.G.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.lV(_.Xp,this.checkLoggedInStatusChange.bind(this),1E3)};
_.G.JSC$12792_setCurrentIndex=function(d){sT.prototype.JSC$12792_setCurrentIndex.call(this,d);this.store()};
_.G.delete=function(){_.Xp.cancelJob(this.queueSapisIdJob);sT.prototype.delete.call(this)};
_.G.setListId=function(d){sT.prototype.setListId.call(this,d);this.store()};
_.G.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var ryC=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],WDC=["playerResponse","videoDetails"],B$M=["response","currentVideoEndpoint","watchEndpoint","videoId"],zU7=["response","currentVideoEndpoint","watchEndpoint","playlistId"],X2A=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],JyU=["response","contents","twoColumnWatchNextResults","playlist","playlist"],sX3=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
FD3=["response","contents","twoColumnWatchNextResults"];var TF={},vk5=(TF.WEB_UNPLUGGED="^unplugged/",TF.WEB_UNPLUGGED_ONBOARDING="^unplugged/",TF.WEB_UNPLUGGED_OPS="^unplugged/",TF.WEB_UNPLUGGED_PUBLIC="^unplugged/",TF.WEB_CREATOR="^creator/",TF.WEB_KIDS="^kids/",TF.WEB_EXPERIMENTS="^experiments/",TF.WEB_MUSIC="^music/",TF.WEB_REMIX="^music/",TF.WEB_MUSIC_EMBEDDED_PLAYER="^music/",TF.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",TF);var sLL,w2d;sLL=function(d,H){this.networkManager=d;this.innertubeTransportService=H};
w2d=function(d,H,K){if(!_.M(H,_.Y4))return _.W1(Error("Ef"));_.M(H,_.Y4).videoIds=K;K={create_playlist_title:_.Vz("QUEUE",void 0,"Queue")};return ATF(_.Nc(d.innertubeTransportService,H,K),DZE)};
_.uYM=function(d,H,K,c){H={videoId:c,playlistId:H,playlistIndex:K};K=_.H5(Z_C);return ATF(_.Qq(d.innertubeTransportService,H,K),jmM)};
sLL.prototype.updatePlaylist=function(d,H){return ATF(_.Nc(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:d,actions:H}}),fjM)};var ZQX=function(d){this.storage=d},T$3;
ZQX.prototype.store=function(d,H){H=H===void 0?0:H;if(this.storage&&d.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",d),this.storage.set("TLPQindex",String(H)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(K){}};
ZQX.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
ZQX.prototype.getPlaylistId=function(){if(!this.storage)return null;var d=null;try{d=this.storage.get("TLPQplaylist")}catch(H){}return d};var K7f=["navigationEndpoint","watchEndpoint","videoId"],$TL=["nextButtonVideo","watchEndpoint","videoId"];_.FL=new _.Av("NETWORK_TOKEN");_.HI=new _.Av("PAGE_TOKEN");_.tJ=new _.Av("PLAYLIST_TOKEN");var QXg;QXg=new _.Av("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Z8=new _.Av("INNERTUBE_TRANSPORT_TOKEN");var tw6,YR,OQC,SxU,yyM,bQU;tw6=new Set(["ci","cr","carml"]);YR=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12839_parkedJobs=new Map;this.parkedProcessors=new Map};
_.OT=function(){YR.instance||(YR.instance=new YR);return YR.instance};
YR.prototype.onAny=function(d){return _.YxA(this,d,2)};
YR.prototype.parkOrScheduleJob=function(d,H,K,c,p){_.Sc(this,K)?_.MO().addJob(d,H,c):(p&&(d=OQC(d),SxU(this,d,H,K,p)),p=this.JSC$12839_parkedJobs.get(K),p||(this.JSC$12839_parkedJobs.set(K,[]),p=this.JSC$12839_parkedJobs.get(K)),p.push({job:d,priority:H,delay:c}))};
YR.prototype.addListener=function(d,H,K){K&&(H=OQC(H),SxU(this,H,0,d,K));K=this.parkedProcessors.get(d);K||(this.parkedProcessors.set(d,[]),K=this.parkedProcessors.get(d));K.push(H)};
YR.prototype.processSignal=function(d){if(!_.Sc(this,d)){this.inProgressSignals.add(d);var H=this.JSC$12839_parkedJobs.get(d);if(H){H=_.q(H);for(var K=H.next();!K.done;K=H.next())K=K.value,_.MO().addJob(K.job,K.priority,K.delay);this.JSC$12839_parkedJobs.delete(d)}if(H=this.parkedProcessors.get(d)){H=_.q(H);for(K=H.next();!K.done;K=H.next())K=K.value,K();this.parkedProcessors.delete(d)}this.signals.push(d);this.inProgressSignals.delete(d)}};
_.Sc=function(d,H){return tw6.has(H)||_.Qx("IS_HOMEPAGE_COLD")||_.Qx("IS_RESULTS_PAGE_COLD")||_.Qx("IS_WATCH_PAGE_COLD")?d.signals.indexOf(H)>=0:!0};
OQC=function(d){var H=!1;return function(){H||(H=!0,d())}};
SxU=function(d,H,K,c,p){if(EAC.has(c))_.MO().addJob(H,K,p);else{var g=d.compoundSignals.get(c);g&&_.MO().addJob(function(){_.Sc(d,c)||(g.isTimeoutConditionSatisfied?_.MO().addJob(H,K):g.timeoutConditionObservers.push(function(){_.MO().addJob(H,K)}))},K,p)}};
_.YxA=function(d,H,K){if(H.length>1){var c=[],p=Object.create(null);H=_.q(H);for(var g=H.next();!g.done;g=H.next())g=g.value,p[g]||(c.push(g),p[g]=!0);H=c}if(H.length===1)return H[0];g=H;c="";p=K===2?"|":"&";g.sort();g=_.q(g);for(var a=g.next();!a.done;a=g.next())c+=a.value+p;if(!d.compoundSignals.get(c)){p=0;g=[];a=_.q(H);for(var e=a.next();!e.done;e=a.next())e=e.value,p++,_.Sc(d,e)||g.push(e);(K=K===2)&&p>g.length||!K&&!g.length?d.signals.push(c):yyM(d,c,K,H,g)}return c};
yyM=function(d,H,K,c,p){var g=p.length,a=function(){K||--g===0?d.processSignal(H):bQU(d,H)};
p=_.q(p);for(var e=p.next();!e.done;e=p.next())d.addListener(e.value,a);d.compoundSignals.set(H,{signals:c,isOnAny:K,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});bQU(d,H)};
bQU=function(d,H){if(!_.Sc(d,H)){var K=d.compoundSignals.get(H);if(K&&!K.isTimeoutConditionSatisfied){for(var c=!1,p=0,g=0,a=_.q(K.signals),e=a.next();!e.done;e=a.next()){var k=e.value;e=!_.Sc(d,k);EAC.has(k)?c=!0:(k=d.compoundSignals.get(k))?e&&!k.isTimeoutConditionSatisfied&&(g++,K.isInitialized||k.timeoutConditionObservers.push(function(){bQU(d,H)})):e&&p++}K.isInitialized=!0;
K.isOnAny?c&&(K.isTimeoutConditionSatisfied=!0):p===0&&g===0&&(K.isTimeoutConditionSatisfied=!0);if(K.isTimeoutConditionSatisfied)for(K=_.q(K.timeoutConditionObservers),c=K.next();!c.done;c=K.next())c=c.value,c()}}};
YR.prototype.processSignal=YR.prototype.processSignal;YR.prototype.parkOrScheduleJob=YR.prototype.parkOrScheduleJob;YR.prototype.onAny=YR.prototype.onAny;_.vb("ytsignals.getInstance",_.OT);YR.prototype.onAny=YR.prototype.onAny;YR.prototype.parkOrScheduleJob=YR.prototype.parkOrScheduleJob;YR.prototype.processSignal=YR.prototype.processSignal;var EAC=new Set(["eop","eocs","dl","pcl"]);_.Fb=new _.Av("MINIPLAYER_SERVICE");var ET,N$3,DEM;ET=function(d,H,K){var c=_.bw.getInstance();if(!T$3){var p=new nLC;var g=void 0,a=_.Fm("ID_TOKEN");a&&p.isAvailable()&&(g=new I5(p,"yt-queue"+a));T$3=new ZQX(g)}p=T$3;g=_.OT();this.JSC$12846_actionRouter=c;this.pageManager=d;this.playlistManager=H;this.JSC$12846_playlistNetworkManager=K;this.storage=p;this.signals=g;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.yq=function(){if(!N$3){var d=_.Kj(),H=d.resolve(_.$p(_.HI)),K=d.resolve(_.$p(_.FL)),c=d.resolve(_.$p(_.tJ));d=d.resolve(_.Z8);N$3=new ET(H,c,new sLL(K,d))}return N$3};
DEM=function(d,H,K){if(K){var c;if(((c=d.responsePlaylistData)==null?void 0:c.playlistId)!==K)return}d.responsePlaylistData&&(K=oXM(H,d.responsePlaylistData),d.responsePlaylistData=(0,_.rs.unsafeClone)(d.responsePlaylistData),a44(d.responsePlaylistData,K));K=d.temporaryItems.findIndex(function(p){return p.videoId===H});
K>-1&&d.temporaryItems.splice(K,1);_.bd(d,_.Nw(d,d.response?d.response.autoplayRenderer:void 0))};
_.fM0=function(d,H){if(d.responsePlaylistData){var K=qOf(H,d.responsePlaylistData);a44(d.responsePlaylistData,K);if(d.queueProxy){var c=d.queueProxy;K<0||(c.videoIds.splice(K,1),K<c.currentIndex&&c.JSC$12792_setCurrentIndex(c.currentIndex-1),c.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:H}),Ft(c))}}_.bd(d,_.Nw(d,d.response?d.response.autoplayRenderer:void 0))};
ET.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.bd(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
ET.prototype.setPlaylistData=function(d,H,K){this.temporaryItems=[];this.listId=d;this.responsePlaylistData=H;_.bd(this,_.Nw(this,K))};
var AyB=function(d){return(d==null?0:d.playlistId)?d.playlistId:"PPSV"},jXC=function(d){return d&&d.playlistId?d.playlistId==="PPSV"?!0:aE5(_.dn().getState().entities,d.playlistId):!1};
ET.prototype.isPlayingOfflineVideo=function(){return this.response?jXC(this.response):!1};
ET.prototype.closeMiniplayer=function(d){var H=this.queueProxy&&this.queueProxy.size()<=1,K=_.Kj().resolve(_.Fb);if(!this.queueProxy||H)this.queueProxy&&this.clearQueue(),K.close(!0);else{K.pipController.getWindow()&&window.focus();H=this.responsePlaylistData;var c=this.temporaryItems.length+(H&&H.contents?H.contents.length:0);H=_.Vz("QUEUE_CLEARED_UNPLURALIZED")||_.Ua("QUEUE_CLEARED",c);H=_.Km(H);K=_.Vz("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");c=_.Vz("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.Ua("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",c);var p=_.Vz("MINIPLAYER_CLOSE",void 0,"Close"),g=_.Vz("CANCEL",void 0,"Cancel");_.zp(this.JSC$12846_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.AF(K),dialogMessages:[_.AF(c)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.AF(p),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
H]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.AF(g)}}}}}}],d)}};
_.Nw=function(d,H){var K={},c=d.response;K.autoplayRenderer=H;if(!d.responsePlaylistData&&!d.temporaryItems.length)return!c||!c.hasRelatedVideoData&&_.h("kevlar_prefetch_data_augments_network_data")||(K.playerData={rvs:c.relatedVideoArgs,endScreenRenderer:c.endScreenRenderer}),K;K.playerData={};if(d.index===void 0)return _.z5(Error("Gf")),K;K.panel=d.responsePlaylistData?(0,_.rs.unsafeClone)(d.responsePlaylistData):{titleText:_.AF(_.Vz("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
H=K.panel;if(H.contents)for(var p=_.q(d.temporaryItems),g=p.next();!g.done;g=p.next())H.contents.push({playlistPanelVideoRenderer:g.value});d.queueProxy&&c&&c.playingVideo&&c.playingVideoId&&!GbC(c.playingVideoId,K.panel)&&(H=c.playingVideo,p=K.panel,g=d.index,p.contents&&p.contents.splice(g===void 0?0:g,0,{playlistPanelVideoRenderer:H}));c&&c.playingVideoId&&(H=d.index,p=K.panel,H=!p.contents||H>=p.contents.length?void 0:p.contents[H].playlistPanelVideoRenderer,H&&H.videoId===c.playingVideoId||(H=
oXM(c.playingVideoId,K.panel),d.index=H!==-1?H:d.index?d.index-1:0));H=ief(d.index+1,K.panel);p=void 0;d.index>0&&(p=ief(d.index-1,K.panel));if(p||H)K.autoplayRenderer=coF(H,p,K.autoplayRenderer);!H&&(c==null?0:c.relatedVideoArgs)&&(K.playerData.rvs=c.relatedVideoArgs);c=c?c.playlistIndexOffset:0;d.queueProxy?kbF(K.panel,d.index,c,gXl,!0,!0,!0):kbF(K.panel,d.index,c);K.playerData.playlistPanelRenderer=K.panel;return K};
ET.prototype.openToast=function(d){_.Kj().resolve(_.Fb).openToast(d,_.Vz("ADDED_TO_QUEUE",void 0,"Added to queue"))};
ET.prototype.isMiniplayerActive=function(){return _.Kj().resolve(_.Fb).isMiniplayerActive()};
_.bd=function(d,H){d.playlistManager.setAutoplayRenderer(H.autoplayRenderer||null);d.playlistManager.setPlaylistData(H.panel||null);H.playerData&&d.playlistManager.setPlayerPlaybackControlData(H.playerData)};var nXE="#";var vAl={},dzN={},HgB={},$zd={},KvM={responseContext:{serviceTrackingParams:[{service:"GFEEDBACK",params:[{key:"kc",value:"66"},{key:"cw",value:"st"},{key:"zb",value:"xz"},{key:"zl",value:"16"},{key:"pf",value:"sy"}]},{service:"bh",params:[{key:"ip",value:"54"},{key:"tb",value:"dv"},{key:"pi",value:"pn"},{key:"fg",value:"35"},{key:"wm",value:"vo"}]},{service:"fp",params:[{key:"hw",value:"91"}]},{service:"rk",params:[{key:"pe",value:"sf"},{key:"rv",value:"jn"},{key:"aw",value:"pw"}]}],maxAgeSeconds:87,
mainAppWebResponseContext:{loggedOut:43,trackingParam:"dd",datasyncId:"xp"},webResponseContextExtensionData:{hasDecorated:75}},playabilityStatus:{status:"by",playableInEmbed:2,miniplayer:{miniplayerRenderer:{playbackMode:"tj"}},offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:"pz",ypcGetOfflineUpsellEndpoint:{params:"xm"}},trackingParams:"pq"}},contextParams:"lu"},streamingData:{expiresInSeconds:"53",formats:[{itag:80,url:"https://rr3---sn-n4v7sns7.googlevideo.com/videoplayback?expire=1697267654&source=youtube&requiressl=yes",
mimeType:'video/webm; codecs="vp9"',bitrate:88,width:96,height:65,lastModified:"1665263132187531",contentLength:"17",quality:"rc",fps:8,qualityLabel:"ab",projectionType:"by",averageBitrate:50,audioQuality:"th",approxDurationMs:"86",audioSampleRate:"88",audioChannels:34},{itag:95,url:"hs",mimeType:"nm",bitrate:56,width:13,height:14,lastModified:"10",quality:"fu",fps:54,qualityLabel:"yj",projectionType:"wu",audioQuality:"tu",approxDurationMs:"51",audioSampleRate:"87",audioChannels:44}],adaptiveFormats:[{itag:50,
url:"fu",mimeType:"uz",bitrate:80,width:80,height:85,initRange:{start:"16",end:"71"},indexRange:{start:"1",end:"26"},lastModified:"70",contentLength:"66",quality:"cx",fps:61,qualityLabel:"xt",projectionType:"pe",averageBitrate:68,approxDurationMs:"1"},{itag:77,url:"rj",mimeType:"lh",bitrate:16,width:17,height:47,initRange:{start:"51",end:"44"},indexRange:{start:"87",end:"61"},lastModified:"13",contentLength:"21",quality:"ie",fps:23,qualityLabel:"ig",projectionType:"bl",averageBitrate:16,colorInfo:{primaries:"et",
transferCharacteristics:"zu",matrixCoefficients:"od"},approxDurationMs:"59"},{itag:7,url:"fc",mimeType:"gr",bitrate:71,width:11,height:3,initRange:{start:"100",end:"7"},indexRange:{start:"36",end:"98"},lastModified:"88",contentLength:"77",quality:"rb",fps:46,qualityLabel:"gq",projectionType:"ld",averageBitrate:99,colorInfo:{primaries:"xd",transferCharacteristics:"uu",matrixCoefficients:"zc"},approxDurationMs:"44"},{itag:10,url:"kl",mimeType:"wb",bitrate:51,width:69,height:3,initRange:{start:"92",
end:"79"},indexRange:{start:"42",end:"72"},lastModified:"99",contentLength:"6",quality:"ee",fps:40,qualityLabel:"em",projectionType:"wz",averageBitrate:48,approxDurationMs:"86"},{itag:44,url:"hp",mimeType:"kq",bitrate:84,width:53,height:22,initRange:{start:"48",end:"51"},indexRange:{start:"54",end:"44"},lastModified:"25",contentLength:"47",quality:"xy",fps:11,qualityLabel:"zl",projectionType:"za",averageBitrate:95,colorInfo:{primaries:"ot",transferCharacteristics:"av",matrixCoefficients:"ow"},approxDurationMs:"85"},
{itag:20,url:"di",mimeType:"nc",bitrate:15,width:19,height:92,initRange:{start:"82",end:"58"},indexRange:{start:"80",end:"37"},lastModified:"46",contentLength:"40",quality:"wo",fps:44,qualityLabel:"pt",projectionType:"bg",averageBitrate:3,colorInfo:{primaries:"wq",transferCharacteristics:"is",matrixCoefficients:"ou"},approxDurationMs:"47"},{itag:44,url:"oe",mimeType:"mh",bitrate:37,width:43,height:24,initRange:{start:"29",end:"91"},indexRange:{start:"97",end:"97"},lastModified:"52",contentLength:"43",
quality:"cr",fps:44,qualityLabel:"hc",projectionType:"cr",averageBitrate:12,approxDurationMs:"97"},{itag:32,url:"gq",mimeType:"sh",bitrate:42,width:32,height:13,initRange:{start:"71",end:"87"},indexRange:{start:"70",end:"4"},lastModified:"67",contentLength:"16",quality:"sb",fps:66,qualityLabel:"mv",projectionType:"kk",averageBitrate:51,colorInfo:{primaries:"pk",transferCharacteristics:"ea",matrixCoefficients:"cq"},approxDurationMs:"70"},{itag:71,url:"zt",mimeType:"bl",bitrate:12,width:68,height:12,
initRange:{start:"63",end:"2"},indexRange:{start:"28",end:"68"},lastModified:"33",contentLength:"0",quality:"dh",fps:6,qualityLabel:"jv",projectionType:"sy",averageBitrate:75,colorInfo:{primaries:"us",transferCharacteristics:"ka",matrixCoefficients:"xw"},approxDurationMs:"16"},{itag:98,url:"vl",mimeType:"lg",bitrate:88,width:23,height:83,initRange:{start:"49",end:"34"},indexRange:{start:"43",end:"90"},lastModified:"84",contentLength:"77",quality:"xu",fps:50,qualityLabel:"jz",projectionType:"om",averageBitrate:16,
highReplication:95,approxDurationMs:"46"},{itag:85,url:"ri",mimeType:"dh",bitrate:77,width:86,height:54,initRange:{start:"40",end:"98"},indexRange:{start:"15",end:"85"},lastModified:"25",contentLength:"53",quality:"rq",fps:62,qualityLabel:"nx",projectionType:"wg",averageBitrate:35,colorInfo:{primaries:"oa",transferCharacteristics:"kb",matrixCoefficients:"kk"},approxDurationMs:"26"},{itag:10,url:"zz",mimeType:"lq",bitrate:55,width:89,height:43,initRange:{start:"94",end:"98"},indexRange:{start:"73",
end:"51"},lastModified:"3",contentLength:"36",quality:"yo",fps:5,qualityLabel:"we",projectionType:"ve",averageBitrate:83,colorInfo:{primaries:"yu",transferCharacteristics:"fu",matrixCoefficients:"ox"},approxDurationMs:"11"},{itag:62,url:"hv",mimeType:"th",bitrate:76,width:28,height:79,initRange:{start:"97",end:"100"},indexRange:{start:"58",end:"63"},lastModified:"53",contentLength:"22",quality:"ou",fps:7,qualityLabel:"cm",projectionType:"xv",averageBitrate:35,approxDurationMs:"98"},{itag:91,url:"vr",
mimeType:"wo",bitrate:41,width:4,height:79,initRange:{start:"80",end:"83"},indexRange:{start:"14",end:"58"},lastModified:"50",contentLength:"38",quality:"ic",fps:64,qualityLabel:"sq",projectionType:"du",averageBitrate:61,colorInfo:{primaries:"ok",transferCharacteristics:"ud",matrixCoefficients:"ob"},approxDurationMs:"73"},{itag:48,url:"lq",mimeType:"zl",bitrate:4,width:16,height:65,initRange:{start:"93",end:"50"},indexRange:{start:"52",end:"44"},lastModified:"74",contentLength:"86",quality:"mi",fps:43,
qualityLabel:"rz",projectionType:"ji",averageBitrate:61,colorInfo:{primaries:"qo",transferCharacteristics:"fk",matrixCoefficients:"jy"},approxDurationMs:"70"},{itag:34,url:"cr",mimeType:"la",bitrate:53,width:29,height:97,initRange:{start:"89",end:"45"},indexRange:{start:"93",end:"45"},lastModified:"52",contentLength:"74",quality:"xn",fps:60,qualityLabel:"xs",projectionType:"lf",averageBitrate:1,approxDurationMs:"18"},{itag:67,url:"mr",mimeType:"cs",bitrate:79,width:9,height:85,initRange:{start:"56",
end:"96"},indexRange:{start:"71",end:"84"},lastModified:"78",contentLength:"80",quality:"ld",fps:2,qualityLabel:"no",projectionType:"uq",averageBitrate:35,colorInfo:{primaries:"mj",transferCharacteristics:"ry",matrixCoefficients:"cc"},approxDurationMs:"43"},{itag:57,url:"fi",mimeType:"to",bitrate:80,width:81,height:29,initRange:{start:"6",end:"96"},indexRange:{start:"73",end:"48"},lastModified:"32",contentLength:"11",quality:"ck",fps:82,qualityLabel:"fo",projectionType:"px",averageBitrate:95,colorInfo:{primaries:"az",
transferCharacteristics:"mq",matrixCoefficients:"oc"},approxDurationMs:"44"},{itag:52,url:"ea",mimeType:"xm",bitrate:18,initRange:{start:"15",end:"16"},indexRange:{start:"4",end:"33"},lastModified:"65",contentLength:"67",quality:"es",projectionType:"mp",averageBitrate:52,highReplication:82,audioQuality:"za",approxDurationMs:"24",audioSampleRate:"1",audioChannels:92,loudnessDb:.9787435365879406},{itag:37,url:"kk",mimeType:"xg",bitrate:78,initRange:{start:"38",end:"94"},indexRange:{start:"27",end:"17"},
lastModified:"61",contentLength:"2",quality:"nh",projectionType:"ar",averageBitrate:69,audioQuality:"la",approxDurationMs:"95",audioSampleRate:"66",audioChannels:50,loudnessDb:.6461265012758731},{itag:45,url:"oc",mimeType:"nm",bitrate:12,initRange:{start:"21",end:"45"},indexRange:{start:"21",end:"13"},lastModified:"45",contentLength:"85",quality:"vs",projectionType:"xp",averageBitrate:32,audioQuality:"tv",approxDurationMs:"1",audioSampleRate:"99",audioChannels:42,loudnessDb:.39295968942278037},{itag:37,
url:"zf",mimeType:"be",bitrate:29,initRange:{start:"27",end:"87"},indexRange:{start:"81",end:"20"},lastModified:"6",contentLength:"33",quality:"pe",projectionType:"pb",averageBitrate:100,audioQuality:"zi",approxDurationMs:"70",audioSampleRate:"32",audioChannels:68,loudnessDb:.2781731101164002}]},playerAds:[{playerLegacyDesktopWatchAdsRenderer:{playerAdParams:{showContentThumbnail:!0,enabledEngageTypes:"3,6,4,5"},gutParams:{tag:"\\4061\\ytpwmpu"},showCompanion:!0,showInstream:!0,useGut:!0}}],playbackTracking:{videostatsPlaybackUrl:{baseUrl:"bj"},
videostatsDelayplayUrl:{baseUrl:"vx"},videostatsWatchtimeUrl:{baseUrl:"px"},ptrackingUrl:{baseUrl:"tg"},qoeUrl:{baseUrl:"wx"},atrUrl:{baseUrl:"xz",elapsedMediaTimeSeconds:45},videostatsScheduledFlushWalltimeSeconds:[99,32,39],videostatsDefaultFlushIntervalSeconds:3,youtubeRemarketingUrl:{baseUrl:"mb",elapsedMediaTimeSeconds:63},googleRemarketingUrl:{baseUrl:"yn",elapsedMediaTimeSeconds:83}},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"ew",name:{simpleText:"ez"},vssId:"fj",languageCode:"wd",
kind:"ez",isTranslatable:21}],audioTracks:[{captionTrackIndices:[87]}],translationLanguages:[{languageCode:"xu",languageName:{simpleText:"fw"}},{languageCode:"zl",languageName:{simpleText:"xc"}},{languageCode:"jr",languageName:{simpleText:"md"}},{languageCode:"sc",languageName:{simpleText:"wf"}},{languageCode:"nj",languageName:{simpleText:"xn"}},{languageCode:"of",languageName:{simpleText:"av"}},{languageCode:"tv",languageName:{simpleText:"ok"}},{languageCode:"nu",languageName:{simpleText:"ry"}},
{languageCode:"zy",languageName:{simpleText:"nb"}},{languageCode:"pt",languageName:{simpleText:"eq"}},{languageCode:"vr",languageName:{simpleText:"cc"}},{languageCode:"wh",languageName:{simpleText:"hd"}},{languageCode:"hp",languageName:{simpleText:"ds"}},{languageCode:"ka",languageName:{simpleText:"up"}},{languageCode:"sw",languageName:{simpleText:"zp"}},{languageCode:"rh",languageName:{simpleText:"eq"}},{languageCode:"bq",languageName:{simpleText:"at"}},{languageCode:"hu",languageName:{simpleText:"fg"}},
{languageCode:"ai",languageName:{simpleText:"iy"}},{languageCode:"rj",languageName:{simpleText:"oz"}},{languageCode:"sq",languageName:{simpleText:"fe"}},{languageCode:"tn",languageName:{simpleText:"vk"}},{languageCode:"jr",languageName:{simpleText:"jg"}},{languageCode:"vc",languageName:{simpleText:"hv"}},{languageCode:"yn",languageName:{simpleText:"ky"}},{languageCode:"pa",languageName:{simpleText:"rw"}},{languageCode:"lr",languageName:{simpleText:"kv"}},{languageCode:"ud",languageName:{simpleText:"fn"}},
{languageCode:"hq",languageName:{simpleText:"io"}},{languageCode:"rp",languageName:{simpleText:"qx"}},{languageCode:"xf",languageName:{simpleText:"sm"}},{languageCode:"fs",languageName:{simpleText:"ty"}},{languageCode:"so",languageName:{simpleText:"xl"}},{languageCode:"fk",languageName:{simpleText:"ff"}},{languageCode:"fw",languageName:{simpleText:"wz"}},{languageCode:"rn",languageName:{simpleText:"zw"}},{languageCode:"wq",languageName:{simpleText:"yt"}},{languageCode:"oh",languageName:{simpleText:"oo"}},
{languageCode:"ts",languageName:{simpleText:"jt"}},{languageCode:"xy",languageName:{simpleText:"ga"}},{languageCode:"jy",languageName:{simpleText:"sx"}},{languageCode:"lw",languageName:{simpleText:"cf"}},{languageCode:"fc",languageName:{simpleText:"qr"}},{languageCode:"ji",languageName:{simpleText:"cc"}},{languageCode:"qs",languageName:{simpleText:"pi"}},{languageCode:"vx",languageName:{simpleText:"hk"}},{languageCode:"jt",languageName:{simpleText:"eh"}},{languageCode:"fb",languageName:{simpleText:"iu"}},
{languageCode:"mf",languageName:{simpleText:"st"}},{languageCode:"en",languageName:{simpleText:"vr"}},{languageCode:"go",languageName:{simpleText:"kp"}},{languageCode:"sc",languageName:{simpleText:"rk"}},{languageCode:"bx",languageName:{simpleText:"ci"}},{languageCode:"pu",languageName:{simpleText:"qj"}},{languageCode:"fa",languageName:{simpleText:"ht"}},{languageCode:"bw",languageName:{simpleText:"af"}},{languageCode:"rr",languageName:{simpleText:"jt"}},{languageCode:"ef",languageName:{simpleText:"yy"}},
{languageCode:"bn",languageName:{simpleText:"wu"}},{languageCode:"ov",languageName:{simpleText:"ae"}},{languageCode:"sm",languageName:{simpleText:"hi"}},{languageCode:"tq",languageName:{simpleText:"ie"}},{languageCode:"fn",languageName:{simpleText:"et"}},{languageCode:"jw",languageName:{simpleText:"bu"}},{languageCode:"iz",languageName:{simpleText:"gc"}},{languageCode:"bk",languageName:{simpleText:"jh"}},{languageCode:"vw",languageName:{simpleText:"fq"}},{languageCode:"xt",languageName:{simpleText:"or"}},
{languageCode:"kq",languageName:{simpleText:"ch"}},{languageCode:"pa",languageName:{simpleText:"cs"}},{languageCode:"ef",languageName:{simpleText:"eq"}},{languageCode:"mk",languageName:{simpleText:"ig"}},{languageCode:"me",languageName:{simpleText:"pv"}},{languageCode:"ll",languageName:{simpleText:"nz"}},{languageCode:"yd",languageName:{simpleText:"pu"}},{languageCode:"dj",languageName:{simpleText:"vx"}},{languageCode:"xc",languageName:{simpleText:"ca"}},{languageCode:"wb",languageName:{simpleText:"il"}},
{languageCode:"ww",languageName:{simpleText:"jf"}},{languageCode:"xi",languageName:{simpleText:"ba"}},{languageCode:"ae",languageName:{simpleText:"hx"}},{languageCode:"uj",languageName:{simpleText:"xu"}},{languageCode:"hq",languageName:{simpleText:"gp"}},{languageCode:"we",languageName:{simpleText:"pk"}},{languageCode:"kt",languageName:{simpleText:"ek"}},{languageCode:"hy",languageName:{simpleText:"ab"}},{languageCode:"hm",languageName:{simpleText:"nu"}},{languageCode:"uw",languageName:{simpleText:"rx"}},
{languageCode:"or",languageName:{simpleText:"nf"}},{languageCode:"dh",languageName:{simpleText:"zn"}},{languageCode:"kb",languageName:{simpleText:"js"}},{languageCode:"vg",languageName:{simpleText:"xe"}},{languageCode:"dl",languageName:{simpleText:"so"}},{languageCode:"lz",languageName:{simpleText:"hb"}},{languageCode:"ny",languageName:{simpleText:"xr"}},{languageCode:"ag",languageName:{simpleText:"us"}},{languageCode:"zr",languageName:{simpleText:"ae"}},{languageCode:"yq",languageName:{simpleText:"yc"}},
{languageCode:"up",languageName:{simpleText:"dc"}},{languageCode:"zn",languageName:{simpleText:"jw"}},{languageCode:"uh",languageName:{simpleText:"ms"}},{languageCode:"mt",languageName:{simpleText:"vf"}},{languageCode:"lt",languageName:{simpleText:"ln"}},{languageCode:"vf",languageName:{simpleText:"rd"}},{languageCode:"my",languageName:{simpleText:"rk"}},{languageCode:"ei",languageName:{simpleText:"ul"}},{languageCode:"dj",languageName:{simpleText:"cz"}},{languageCode:"kb",languageName:{simpleText:"hp"}},
{languageCode:"jj",languageName:{simpleText:"zf"}},{languageCode:"ew",languageName:{simpleText:"ff"}},{languageCode:"jo",languageName:{simpleText:"iz"}},{languageCode:"ja",languageName:{simpleText:"uz"}},{languageCode:"yd",languageName:{simpleText:"or"}},{languageCode:"tl",languageName:{simpleText:"tw"}},{languageCode:"mw",languageName:{simpleText:"th"}},{languageCode:"pq",languageName:{simpleText:"zp"}},{languageCode:"pq",languageName:{simpleText:"pk"}},{languageCode:"ef",languageName:{simpleText:"fj"}},
{languageCode:"qq",languageName:{simpleText:"vu"}},{languageCode:"pj",languageName:{simpleText:"kp"}},{languageCode:"ab",languageName:{simpleText:"xw"}},{languageCode:"re",languageName:{simpleText:"ln"}},{languageCode:"ht",languageName:{simpleText:"wo"}},{languageCode:"ju",languageName:{simpleText:"wb"}},{languageCode:"yq",languageName:{simpleText:"xv"}}],defaultAudioTrackIndex:70}},videoDetails:{videoId:"ux",title:"jb",lengthSeconds:"90",keywords:"th ts yg gy ih iq zj".split(" "),channelId:"pg",
isOwnerViewing:6,shortDescription:"ts",isCrawlable:62,thumbnail:{thumbnails:[{url:"vx",width:8,height:58},{url:"bp",width:44,height:79},{url:"oh",width:47,height:66},{url:"hm",width:34,height:55},{url:"vr",width:0,height:20}]},allowRatings:24,viewCount:"49",author:"xr",isPrivate:70,isUnpluggedCorpus:66,isLiveContent:99},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"96",endTimeMs:"46",watermark:{thumbnails:[{url:"li",width:91,height:28}]},trackingParams:"an",navigationEndpoint:{clickTrackingParams:"mg",
commandMetadata:{webCommandMetadata:{url:"rd",webPageType:"nc",rootVe:69,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:"qg"}},channelName:"ei",subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:"pz"}]},subscribed:44,enabled:33,type:"ue",channelId:"ki",showPreferences:71,subscribedButtonText:{runs:[{text:"lk"}]},unsubscribedButtonText:{runs:[{text:"jn"}]},trackingParams:"oj",unsubscribeButtonText:{runs:[{text:"ad"}]},serviceEndpoints:[{clickTrackingParams:"wm",commandMetadata:{webCommandMetadata:{sendPost:4,
apiUrl:"ky"}},subscribeEndpoint:{channelIds:["zt"],params:"at"}},{clickTrackingParams:"jg",commandMetadata:{webCommandMetadata:{sendPost:28}},signalServiceEndpoint:{signal:"ok",actions:[{clickTrackingParams:"lt",openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:"po",dialogMessages:[{runs:[{text:"ou"},{text:"jt"},{text:"zz"}]}],confirmButton:{buttonRenderer:{style:"mm",size:"oi",isDisabled:43,text:{runs:[{text:"kc"}]},serviceEndpoint:{clickTrackingParams:"gk",commandMetadata:{webCommandMetadata:{sendPost:18,
apiUrl:"kc"}},unsubscribeEndpoint:{channelIds:["cm"],params:"ar"}},accessibility:{label:"iy"},trackingParams:"gs"}},cancelButton:{buttonRenderer:{style:"jb",size:"pe",isDisabled:69,text:{runs:[{text:"uv"}]},accessibility:{label:"qu"},trackingParams:"pe"}},primaryIsCancel:48}},popupType:"ma"}}]}}],subscribeAccessibility:{accessibilityData:{label:"vh"}},unsubscribeAccessibility:{accessibilityData:{label:"lg"}},signInEndpoint:{clickTrackingParams:"eu",commandMetadata:{webCommandMetadata:{url:"na"}}}}}},
allowSwipeDismiss:55,annotationId:"jd"}}],playerConfig:{audioConfig:{loudnessDb:.9620880668073215,perceptualLoudnessDb:.541474004793957,enablePerFormatLoudness:31},streamSelectionConfig:{maxBitrate:"61"},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:100,minReadAheadMediaTimeMs:21,readAheadGrowthRateMs:29}},webPlayerConfig:{useCobaltTvosDash:55,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:"of",commandMetadata:{webCommandMetadata:{sendPost:31,apiUrl:"xl"}},
webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"tr"}},subscribeCommand:{clickTrackingParams:"fs",commandMetadata:{webCommandMetadata:{sendPost:13,apiUrl:"xp"}},subscribeEndpoint:{channelIds:["qs"],params:"oa"}},unsubscribeCommand:{clickTrackingParams:"ls",commandMetadata:{webCommandMetadata:{sendPost:91,apiUrl:"wc"}},unsubscribeEndpoint:{channelIds:["fo"],params:"vt"}},addToWatchLaterCommand:{clickTrackingParams:"ua",commandMetadata:{webCommandMetadata:{sendPost:18,apiUrl:"iu"}},playlistEditEndpoint:{playlistId:"rv",
actions:[{addedVideoId:"iw",action:"rd"}]}},removeFromWatchLaterCommand:{clickTrackingParams:"un",commandMetadata:{webCommandMetadata:{sendPost:20,apiUrl:"bl"}},playlistEditEndpoint:{playlistId:"zg",actions:[{action:"ya",removedVideoId:"dk"}]}}},gatewayExperimentGroup:"vb"}},storyboards:{playerStoryboardSpecRenderer:{spec:"aj",recommendedLevel:87}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"mm",width:57,height:94}]},embed:{iframeUrl:"bd",width:51,height:73},title:{simpleText:"sg"},
description:{simpleText:"yv"},lengthSeconds:"18",ownerProfileUrl:"bg",externalChannelId:"eg",isFamilySafe:88,availableCountries:"hn sd lt tx nw mq iz aj vi xa ec iv rj vb ro po mv mx cn ld tn ay gv bs vf da ss km uo mg wv md lo nc vh li jh lj qq ci ob zy pu bl jm ge tt ov ue vp ka nh uc gb rs gu hm uv nq ga qu hr pj zq rh nn yv or zg ai qj cv vg hr zm al mj fz yx st tt ih vm wq gx wi ys ug vb uh rf ry ba xu ce eq bx he jm ie nb cd qz no yq qe jy wd pm nb hk em im iv ld gz fe ut md gw sf yz yp xr gm uo kg yo wv da wt ry it gz mm ho mf lq tu im lu gm pa ny gu ds yx yh jk qb jv mp bi nr mc bg ym zt sh kd gj dp qw eh no pj nq dy gt cm pg ce jt xv tf ue ke hs xh tc ad yg uh cd zc rj kq sp vv xt bo am kg kx xb fr il qi ap pe tg im cs vy zu cq bu og tf ze zj um vd ot al zl um jv ss md xm nv id es jf as zb ms uv jh xz em uv bk zx wp ay ub pa rf yi zm em pu xs".split(" "),
isUnlisted:24,hasYpcMetadata:38,viewCount:"6",category:"qh",publishDate:"eb",ownerChannelName:"mf",uploadDate:"ax"}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:"ha"},trackingParams:"ra",prominent:9,logVisibilityUpdates:88,onTapCommand:{clickTrackingParams:"dy",changeEngagementPanelVisibilityAction:{targetId:"qc",visibility:"mh"}}}},cueRanges:[{startCardActiveMs:"41",endCardActiveMs:"81",teaserDurationMs:"31",iconAfterTeaserMs:"65"}],
trackingParams:"sn"}}],headerText:{simpleText:"mi"},icon:{infoCardIconRenderer:{trackingParams:"tq"}},closeButton:{infoCardIconRenderer:{trackingParams:"nz"}},trackingParams:"ss",allowTeaserDismiss:55,logIconVisibilityUpdates:49}},trackingParams:"lt",attestation:{playerAttestationRenderer:{challenge:"rg",botguardData:{program:"vk",interpreterSafeUrl:(vAl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",vAl),serverEnvironment:83}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["vs"],
joinLatencySeconds:85,rebufferTimeSeconds:89,watchTimeWindowSeconds:21,refractorySeconds:41},text:{runs:[{text:"it"},{text:"qt",bold:60}]},endpoint:{clickTrackingParams:"lw",commandMetadata:{webCommandMetadata:{url:"ih",webPageType:"xa",rootVe:73}},urlEndpoint:{url:"ms",target:"tj"}},trackingParams:"vd",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:"pp"}]},actionButton:{buttonRenderer:{text:{runs:[{text:"yw"}]},navigationEndpoint:{clickTrackingParams:"sq",commandMetadata:{webCommandMetadata:{url:"wp",
webPageType:"zn",rootVe:21}},urlEndpoint:{url:"ju",target:"dy"}},trackingParams:"zj"}},trackingParams:"nh"}}}},messages:[{mealbarPromoRenderer:{icon:{thumbnails:[{url:"ek",width:71,height:69}]},messageTexts:[{runs:[{text:"ew"}]}],actionButton:{buttonRenderer:{style:"gz",size:"tz",text:{runs:[{text:"ga"}]},trackingParams:"qr",command:{clickTrackingParams:"wk",commandExecutorCommand:{commands:[{clickTrackingParams:"dw",commandMetadata:{webCommandMetadata:{url:"po",webPageType:"fl",rootVe:70,apiUrl:"ot"}},
browseEndpoint:{browseId:"pl",params:"zo"}},{commandMetadata:{webCommandMetadata:{sendPost:10,apiUrl:"rv"}},feedbackEndpoint:{feedbackToken:"xi",uiActions:{hideEnclosingContainer:25}}}]}}}},dismissButton:{buttonRenderer:{style:"ol",size:"og",text:{runs:[{text:"yv"}]},trackingParams:"ch",command:{clickTrackingParams:"uu",commandExecutorCommand:{commands:[{clickTrackingParams:"ig",commandMetadata:{webCommandMetadata:{sendPost:71,apiUrl:"en"}},feedbackEndpoint:{feedbackToken:"wh",uiActions:{hideEnclosingContainer:45}}}]}}}},
triggerCondition:"pb",style:"uq",trackingParams:"rp",impressionEndpoints:[{clickTrackingParams:"xb",commandMetadata:{webCommandMetadata:{sendPost:73,apiUrl:"wl"}},feedbackEndpoint:{feedbackToken:"wf",uiActions:{hideEnclosingContainer:95}}}],isVisible:17,messageTitle:{runs:[{text:"ir"}]},enableSharedFeatureForImpressionHandling:21}}],adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"7",offsetEndMilliseconds:"39"},
hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/AERLXaPKn_U/mqdefault.jpg",width:46,height:25}]},trackingParams:"ye"},trackingParams:"dq",templatedCountdown:{templatedAdText:{text:"ps",isTemplated:82,trackingParams:"cc"}},durationMilliseconds:44}},skippableRenderer:{skipButtonRenderer:{message:{text:"xz",
isTemplated:30,trackingParams:"um"},trackingParams:"ge"}},trackingParams:"zg",skipOffsetMilliseconds:88}},trackingParams:"qd",visitAdvertiserRenderer:{buttonRenderer:{style:"fv",text:{simpleText:"on"},icon:{iconType:"vw"},navigationEndpoint:{clickTrackingParams:"mk",commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C3OQpfbUyZYWKL_Ken8RMFbClwAyRha6dc6fw7oP7EbaQHxABIABgyfb4hsijoBmCARdjYS1wdWItNjIxOTgxMTc0NzA0OTM3MYgBAaAB59zF2gOoAwSqBLMDT9ATfUTpaHDVXptzXB0Bqtu5dBV_jsP-c6MPkZYSL8_SrzCV3_f4sBsAHAi3Utb4zaJFaF_HvQdtBwss4wAA_skHdbFnpl5-EMNyyzlRw-Cndshj8CGQYwd1ZXhxlU46cvUuzxBe4SvQuo5EZgRv_zIYfKVpOj81ol3soC-FTzrjxhngpg6E1SEy8MZ8S5ykzm_m-YEKix3QCVLlSpEedBunRo295OkIwlFwaIQk8cLxsmnYhxdD_0zLFeTvwe5Q5tNO9mqkUZ7rAyzCTey_m5MZVo67-fDtV0elSQR79C9ErFiOQ5SaPsQgzk7zE3jxPNZYzV0zKOQ245eF3ZWxcGIrFA5NPIvvBwOl60ABjpEgQjQ4y2LpZnygmW_9ikThHx_iC4RujeV7iSAG5Fvv28wptAmCq7jMu5tWztpr-nl-Y0Iz7dA2FeeEOcd4ddn596NriGGT8AjZAXhtD7yJ8tRBEO3P48giFZj81WrpYHUvNhfx24PguTj-IBSpw2uQbemku11WDOxo7SI20n_fPtLcaEXB3YUajshnd5LoR4NlONEqC0f_uYwLaHt5X4Fw1hd8oAZUgAeBo7oliAcBkAcCqAf5sbECqAfnnbECqAfonbECqAfqt7ECqAentbMVqAfvtbECqAfwtbECqAeCqrECqAePOgHqNIbqAe2B6gHpJqxAqgHkZ-xAqgHsJuxAqgH36GxAqgHrrGxAqgHpqqxAqgH_bKxAqgHgcYbqAf8r7ECqAerxRuoB5zcG6gH5p2xAqgHyJ-xAqgHt6GxAqgH66WxAqgHyqmxApIIC242UFJubjBtcFpjqAgB0ggcCIAREAIYWjIDgoAEOgeP0ICAgIAESNmg0jVQFPIIH2NhLXl0LWhvc3QtcHViLTE4MDAxMjAxBZAyMzA2NTWaCRtodHRwczovL2xhdW5pdGVjLm5ldC9lY29tYTKxCS-fhg771OyRyAkYyAmPAcgJkAGYCwGhC8vk5LIcunUAugtXCAEQARgFIAEoATABQAFIAWAAaABwAogBAJgBAaIBLwoYIAPauAQSMhA6DgoMKDBIs5vbluYKmBkBEAEYACAAWABgAHAA0AEBqAIFwAIC2AEBgAIBiAIG0AsS2gw8CgoQ8Pj1wrn_sa1tEgIBAxoqCAESGf6BmeYY2b35qxjevPmrGJO89uoDvoSxpgPO7YnF2kwgmtyo08MEmg0BEqoNAlVTuBP___________8BsBQBwBXJgIBA0BUB2BUBkBYBmBYB4hYCCAGAFwGKFxoIAxgBIAEoATABOAFAAUgBUAFYAWACaAFwAaAXAakXG4oLaa1eRvW6FwQoADAA&ase=2&num=1&cid=CAASD-D4c9DOhTCuXm4CeUayPw&ad_cpn=%5BAD_CPN%5D&sig=AOD64_1U5dvH2jbnEq_3j0LlY381EiWpog&ms=[CLICK_MS]&adurl=https://garlo.com/enapa2%3Fgc_id%3D20599670093&label=video_click_to_advertiser_site&ctype=110",
webPageType:"ry",rootVe:62}},urlEndpoint:{url:"lq",target:"wt"}},trackingParams:"mh"}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:"kw",isTemplated:93,trackingParams:"jg"},trackingParams:"at"}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:"rl",isTemplated:73,trackingParams:"le"}},trackingParams:"tr"}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"le",size:"nb",isDisabled:41,serviceEndpoint:{clickTrackingParams:"jt",
openPopupAction:{popup:{aboutThisAdRenderer:{url:(dzN.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",dzN),trackingParams:"vy"}},popupType:"xn"}},icon:{iconType:"vl"},trackingParams:"lm",accessibilityData:{accessibilityData:{label:"qi"}}}},hoverText:{simpleText:"zk"},trackingParams:"qa"}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"pv"}]},trackingParams:"jo"},headline:{text:"qx",isTemplated:10,trackingParams:"um"},description:{text:"mf",trackingParams:"fe"},
actionButton:{buttonRenderer:{text:{simpleText:"kq"},navigationEndpoint:{clickTrackingParams:"cm",commandMetadata:{webCommandMetadata:{url:"wa",webPageType:"nq",rootVe:69}},urlEndpoint:{url:"ln",target:"nd"}},trackingParams:"no"}},startMs:45,trackingParams:"ge"}},adLayoutLoggingData:{serializedAdServingDataEntry:"xd"},elementId:"tc",inPlayerSlotId:"gg",inPlayerLayoutId:"cm"}},trackingParams:"uy",layoutId:"ff",associatedPlayerBytesLayoutId:"dy"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"gv"}]},
trackingParams:"at"},headline:{text:"ow",isTemplated:66,trackingParams:"za"},description:{text:"ds",isTemplated:95,trackingParams:"fc"},actionButton:{buttonRenderer:{style:"ys",text:{simpleText:"aq"},navigationEndpoint:{clickTrackingParams:"vu",commandMetadata:{webCommandMetadata:{url:"zn",webPageType:"jv",rootVe:38}},urlEndpoint:{url:"df",target:"xe"}},trackingParams:"za"}},durationMilliseconds:44,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:"xg"}},navigationEndpoint:{clickTrackingParams:"vg",
loggingUrls:[{baseUrl:"bc"}],commandMetadata:{webCommandMetadata:{url:"sn",webPageType:"vb",rootVe:34}},urlEndpoint:{url:"ex",target:"nb"}},trackingParams:"iw",backgroundImage:{thumbnail:{thumbnails:[{url:"cm"}]},trackingParams:"br"},adRendererCommands:{impressionCommand:{clickTrackingParams:"dj",commandExecutorCommand:{commands:[{clickTrackingParams:"li",loggingUrls:[{baseUrl:"wa"}],pingingEndpoint:{hack:0}}]}}},skipButton:{skipButtonRenderer:{message:{text:"jg",isTemplated:95,trackingParams:"by"},
trackingParams:"kl"}},adLayoutLoggingData:{serializedAdServingDataEntry:"kt"},layoutId:"cv",inPlayerSlotId:"qt",inPlayerLayoutId:"yy",associatedPlayerBytesLayoutId:"dx"}},{instreamVideoAdRenderer:{playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"pz",width:32,height:43}]},trackingParams:"iz"},trackingParams:"yo",templatedCountdown:{templatedAdText:{text:"we",isTemplated:91,trackingParams:"si"}},
durationMilliseconds:10}},skippableRenderer:{skipButtonRenderer:{message:{text:"bp",isTemplated:93,trackingParams:"mo"},trackingParams:"cp"}},trackingParams:"qr",skipOffsetMilliseconds:60}},trackingParams:"zf",visitAdvertiserRenderer:{buttonRenderer:{style:"ya",text:{simpleText:"fv"},icon:{iconType:"bx"},navigationEndpoint:{clickTrackingParams:"bw",commandMetadata:{webCommandMetadata:{url:"ht",webPageType:"gv",rootVe:14}},urlEndpoint:{url:"wi",target:"te"}},trackingParams:"gr"}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:"ox",
isTemplated:66,trackingParams:"td"},trackingParams:"ng"}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:"zu",isTemplated:15,trackingParams:"py"}},trackingParams:"hb"}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"vn",size:"cw",isDisabled:56,serviceEndpoint:{clickTrackingParams:"jh",openPopupAction:{popup:{aboutThisAdRenderer:{url:(HgB.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",HgB),trackingParams:"yl"}},popupType:"tw"}},
icon:{iconType:"ar"},trackingParams:"vi",accessibilityData:{accessibilityData:{label:"hy"}}}},hoverText:{simpleText:"ap"},trackingParams:"pp"}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"ol"}]},trackingParams:"kz"},headline:{text:"wa",isTemplated:43,trackingParams:"yb"},description:{text:"cl",trackingParams:"aq"},actionButton:{buttonRenderer:{text:{simpleText:"xg"},navigationEndpoint:{clickTrackingParams:"wp",commandMetadata:{webCommandMetadata:{url:"uh",webPageType:"bs",
rootVe:44}},urlEndpoint:{url:"xq",target:"fi"}},trackingParams:"fo"}},startMs:5,trackingParams:"kh"}},adLayoutLoggingData:{serializedAdServingDataEntry:"ir"},elementId:"mp",inPlayerSlotId:"fh",inPlayerLayoutId:"bh"}},trackingParams:"ao",layoutId:"gc",associatedPlayerBytesLayoutId:"up"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"wj"}]},trackingParams:"zr"},headline:{text:"rq",isTemplated:82,trackingParams:"gr"},description:{text:"fj",isTemplated:57,trackingParams:"li"},actionButton:{buttonRenderer:{style:"mu",
text:{simpleText:"cg"},navigationEndpoint:{clickTrackingParams:"eb",commandMetadata:{webCommandMetadata:{url:"vn",webPageType:"nw",rootVe:96}},urlEndpoint:{url:"bs",target:"dr"}},trackingParams:"iq"}},durationMilliseconds:39,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:"mt"}},navigationEndpoint:{clickTrackingParams:"uz",loggingUrls:[{baseUrl:"rn"}],commandMetadata:{webCommandMetadata:{url:"cu",webPageType:"qs",rootVe:26}},urlEndpoint:{url:"ty",target:"he"}},trackingParams:"bw",backgroundImage:{thumbnail:{thumbnails:[{url:"pd"}]},
trackingParams:"wm"},adRendererCommands:{impressionCommand:{clickTrackingParams:"io",commandExecutorCommand:{commands:[{clickTrackingParams:"hd",loggingUrls:[{baseUrl:"hz"}],pingingEndpoint:{hack:81}}]}}},skipButton:{skipButtonRenderer:{message:{text:"db",isTemplated:42,trackingParams:"ga"},trackingParams:"pa"}},adLayoutLoggingData:{serializedAdServingDataEntry:"bt"},layoutId:"ec",inPlayerSlotId:"nl",inPlayerLayoutId:"qh",associatedPlayerBytesLayoutId:"qe"}}]}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"rj"}}},
{adPlacementRenderer:{config:{adPlacementConfig:{kind:"zf",adTimeOffset:{offsetStartMilliseconds:"63",offsetEndMilliseconds:"83"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"59",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:"330100",offsetEndMilliseconds:"594666"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"0",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"65",offsetEndMilliseconds:"30"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"51",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"wg"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"56",offsetEndMilliseconds:"86"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"25",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"nh"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:"25",offsetEndMilliseconds:"13"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"32",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"ti"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"47",offsetEndMilliseconds:"84"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"go"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"14",offsetEndMilliseconds:"87"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"79",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"wi"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"34",offsetEndMilliseconds:"12"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"27",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"fp"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"66",offsetEndMilliseconds:"35"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"98",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"cn"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"59",offsetEndMilliseconds:"8"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"26",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"wz"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"84",offsetEndMilliseconds:"90"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"92",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"nl"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"50",offsetEndMilliseconds:"67"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"96",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"ov"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"13",offsetEndMilliseconds:"2"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"52",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"by"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"73",offsetEndMilliseconds:"64"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"67",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"uc"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"10",offsetEndMilliseconds:"zo"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"22",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"en"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:"eg",isTemplated:93,trackingParams:"it"},description:{text:"ux",isTemplated:43,trackingParams:"sj"},actionButton:{buttonRenderer:{text:{simpleText:"de"},navigationEndpoint:{clickTrackingParams:"ex",commandMetadata:{webCommandMetadata:{url:"ue",webPageType:"ow",rootVe:77}},urlEndpoint:{url:"yh",target:"pg"}},
trackingParams:"xf"}},iconImage:{thumbnail:{thumbnails:[{url:"te",width:19,height:23}]},trackingParams:"lv"},bannerImage:{thumbnail:{thumbnails:[{url:"gj",width:38,height:67}]},trackingParams:"ow"},navigationEndpoint:{clickTrackingParams:"um",commandMetadata:{webCommandMetadata:{url:"fq",webPageType:"fd",rootVe:61}},urlEndpoint:{url:"gi",target:"tq"}},trackingParams:"ie",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"ng",size:"xv",isDisabled:53,icon:{iconType:"bq"},navigationEndpoint:{clickTrackingParams:"yl",
openPopupAction:{popup:{aboutThisAdRenderer:{url:($zd.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",$zd),trackingParams:"hi"}},popupType:"sb"}},trackingParams:"ho",accessibilityData:{accessibilityData:{label:"kl"}}}},hoverText:{simpleText:"xd"},trackingParams:"dv"}},adVideoId:"je",impressionPings:[{baseUrl:"xj"}],adLayoutLoggingData:{serializedAdServingDataEntry:"dt"},associatedCompositePlayerBytesLayoutId:"te"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"vs"}}}],adSlots:[{adSlotRenderer:{adSlotMetadata:{slotId:"1234",
slotType:"SLOT_TYPE_PLAYER_BYTES",adSlotLoggingData:{serializedSlotAdServingDataEntry:"ob"},triggerEvent:"SLOT_TRIGGER_EVENT_BEFORE_CONTENT"},fulfillmentContent:{fulfilledLayout:{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"ot",layoutType:"xg",adLayoutLoggingData:{serializedAdServingDataEntry:"yk"}},renderingContent:{playerBytesSequentialLayoutRenderer:{sequentialLayouts:[{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"je",layoutType:"ww",adLayoutLoggingData:{serializedAdServingDataEntry:"ve"}},
renderingContent:{instreamVideoAdRenderer:{skipOffsetMilliseconds:94,pings:{impressionPings:[{baseUrl:"pl"},{baseUrl:"zs"}],errorPings:[{baseUrl:"hh"}],mutePings:[{baseUrl:"qh"}],unmutePings:[{baseUrl:"ey"}],pausePings:[{baseUrl:"pz"}],rewindPings:[{baseUrl:"bh"}],resumePings:[{baseUrl:"mw"}],skipPings:[{baseUrl:"si"}],closePings:[{baseUrl:"oh"}],progressPings:[{baseUrl:"ly",offsetMilliseconds:1},{baseUrl:"ac",offsetMilliseconds:80},{baseUrl:"sy",offsetMilliseconds:72}],fullscreenPings:[{baseUrl:"kw"}],
activeViewViewablePings:[{baseUrl:"oz"}],endFullscreenPings:[{baseUrl:"uc"}],activeViewMeasurablePings:[{baseUrl:"vu"}],abandonPings:[{baseUrl:"sf"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"qg"}],completePings:[{baseUrl:"jv"}],activeViewTracking:{trafficType:"sq"}},clickthroughEndpoint:{clickTrackingParams:"fn",commandMetadata:{webCommandMetadata:{url:"tf",webPageType:"ox",rootVe:73}},urlEndpoint:{url:"ny",target:"uc"}},csiParameters:[{key:"qe",value:"em"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action",
elementId:"bq",trackingParams:"dr",legacyInfoCardVastExtension:"pa",sodarExtensionData:{siub:"mi",bgub:"hc",scs:"cw",bgp:"co"},externalVideoId:"ya",adLayoutLoggingData:{serializedAdServingDataEntry:"jj"},layoutId:"sc"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"nr",layoutType:"kn",adLayoutLoggingData:{serializedAdServingDataEntry:"cf"}},renderingContent:{adActionInterstitialRenderer:{durationMilliseconds:52,trackingParams:"yq",abandonCommands:{commands:[{clickTrackingParams:"wi",
loggingUrls:[{baseUrl:"jb"}],pingingEndpoint:{hack:90}}]},skipPings:[{baseUrl:"av"}],layoutId:"nj"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"nl",layoutType:"wm",adLayoutLoggingData:{serializedAdServingDataEntry:"zw"}},renderingContent:{instreamVideoAdRenderer:{skipOffsetMilliseconds:80,pings:{impressionPings:[{baseUrl:"ji"},{baseUrl:"ao"},{baseUrl:"cc"}],errorPings:[{baseUrl:"jt"}],mutePings:[{baseUrl:"mn"},{baseUrl:"ce"}],unmutePings:[{baseUrl:"rd"},{baseUrl:"lb"}],pausePings:[{baseUrl:"et"},
{baseUrl:"fv"}],rewindPings:[{baseUrl:"ft"}],resumePings:[{baseUrl:"qj"},{baseUrl:"ot"}],skipPings:[{baseUrl:"ky"},{baseUrl:"jb"}],closePings:[{baseUrl:"hw"}],progressPings:[{baseUrl:"vh",offsetMilliseconds:36},{baseUrl:"um",offsetMilliseconds:77},{baseUrl:"sq",offsetMilliseconds:19},{baseUrl:"ui",offsetMilliseconds:15},{baseUrl:"nl",offsetMilliseconds:86}],fullscreenPings:[{baseUrl:"rp"},{baseUrl:"cn"}],activeViewViewablePings:[{baseUrl:"ml"},{baseUrl:"kq"}],endFullscreenPings:[{baseUrl:"ym"}],activeViewMeasurablePings:[{baseUrl:"di"},
{baseUrl:"ol"}],abandonPings:[{baseUrl:"aj"},{baseUrl:"wo"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"ms"},{baseUrl:"uj"}],startPings:[{baseUrl:"gy"}],firstQuartilePings:[{baseUrl:"ly"}],secondQuartilePings:[{baseUrl:"sw"}],thirdQuartilePings:[{baseUrl:"gt"}],completePings:[{baseUrl:"hu"},{baseUrl:"gs"}],activeViewTracking:{trafficType:"mr"}},clickthroughEndpoint:{clickTrackingParams:"yq",commandMetadata:{webCommandMetadata:{url:"dn",webPageType:"ms",rootVe:54}},urlEndpoint:{url:"hs",
target:"jt"}},csiParameters:[{key:"zn",value:"eq"}],playerVars:"bi",elementId:"gr",trackingParams:"qc",legacyInfoCardVastExtension:"xv",sodarExtensionData:{siub:"ul",bgub:"yr",scs:"ui",bgp:"vy"},externalVideoId:"fp",adLayoutLoggingData:{serializedAdServingDataEntry:"gt"},layoutId:"bh"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"xy",layoutType:"bf",adLayoutLoggingData:{serializedAdServingDataEntry:"rj"}},renderingContent:{adActionInterstitialRenderer:{durationMilliseconds:95,trackingParams:"ee",
abandonCommands:{commands:[{clickTrackingParams:"mi",loggingUrls:[{baseUrl:"yi"},{baseUrl:"tm"}],pingingEndpoint:{hack:47}}]},skipPings:[{baseUrl:"uk"},{baseUrl:"yj"}],layoutId:"ft"}}}}]}},layoutExitNormalTriggers:[{id:"hq",onLayoutSelfExitRequestedTrigger:{triggeringLayoutId:"hv"}}],layoutExitSkipTriggers:[{id:"up",skipRequestedTrigger:{triggeringLayoutId:"nm"}},{id:"yl",skipRequestedTrigger:{triggeringLayoutId:"gh"}},{id:"zd",skipRequestedTrigger:{triggeringLayoutId:"mo"}},{id:"bc",skipRequestedTrigger:{triggeringLayoutId:"jj"}}],
layoutExitMuteTriggers:[{id:"ql",skipRequestedTrigger:{triggeringLayoutId:"hr"}},{id:"rc",skipRequestedTrigger:{triggeringLayoutId:"ln"}}]}}},slotEntryTrigger:{id:"lc",beforeContentVideoIdStartedTrigger:{}},slotFulfillmentTriggers:[{id:"xq",slotIdEnteredTrigger:{triggeringSlotId:"da"}}],slotExpirationTriggers:[{id:"vv",slotIdExitedTrigger:{triggeringSlotId:"re"}},{id:"jg",onNewPlaybackAfterContentVideoIdTrigger:{}}]}}],adBreakHeartbeatParams:"mw",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:"pz",
type:"az",payload:{offlineabilityEntity:{key:"ql",command:{innertubeCommand:{clickTrackingParams:"nz",ypcGetOfflineUpsellEndpoint:{params:"pw"}}},addToOfflineButtonState:"os",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:"xp",visibility:{types:"1"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:"19",nanos:12}}}};var jxi=[{jsonRepresentation:'{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true,"playerConfig": {"audioConfig": {}, "streamSelectionConfig": {}, "webPlayerConfig": {"webPlayerActionsPorting": {}}}},"playerConfig": {"audioConfig": {}, "streamSelectionConfig": {}, "webPlayerConfig": {"webPlayerActionsPorting": {}}}}',objectRepresentation:{adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0,playerConfig:{audioConfig:{},streamSelectionConfig:{},
webPlayerConfig:{webPlayerActionsPorting:{}}}},playerConfig:{audioConfig:{},streamSelectionConfig:{},webPlayerConfig:{webPlayerActionsPorting:{}}}}},{jsonRepresentation:'[{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true}}]',objectRepresentation:[{adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0}}]},{jsonRepresentation:'{"responseContext":{"serviceTrackingParams":[{"service":"GFEEDBACK","params":[{"key":"kc","value":"66"},{"key":"cw","value":"st"},{"key":"zb","value":"xz"},{"key":"zl","value":"16"},{"key":"pf","value":"sy"}]},{"service":"bh","params":[{"key":"ip","value":"54"},{"key":"tb","value":"dv"},{"key":"pi","value":"pn"},{"key":"fg","value":"35"},{"key":"wm","value":"vo"}]},{"service":"fp","params":[{"key":"hw","value":"91"}]},{"service":"rk","params":[{"key":"pe","value":"sf"},{"key":"rv","value":"jn"},{"key":"aw","value":"pw"}]}],"maxAgeSeconds":87,"mainAppWebResponseContext":{"loggedOut":43,"trackingParam":"dd","datasyncId":"xp"},"webResponseContextExtensionData":{"hasDecorated":75}},"playabilityStatus":{"status":"by","playableInEmbed":2,"miniplayer":{"miniplayerRenderer":{"playbackMode":"tj"}},"offlineability":{"buttonRenderer":{"serviceEndpoint":{"clickTrackingParams":"pz","ypcGetOfflineUpsellEndpoint":{"params":"xm"}},"trackingParams":"pq"}},"contextParams":"lu"},"streamingData":{"expiresInSeconds":"53","formats":[{"itag":80,"url":"https://rr3---sn-n4v7sns7.googlevideo.com/videoplayback?expire=1697267654&source=youtube&requiressl=yes","mimeType":"video/webm; codecs=\\"vp9\\"","bitrate":88,"width":96,"height":65,"lastModified":"1665263132187531","contentLength":"17","quality":"rc","fps":8,"qualityLabel":"ab","projectionType":"by","averageBitrate":50,"audioQuality":"th","approxDurationMs":"86","audioSampleRate":"88","audioChannels":34},{"itag":95,"url":"hs","mimeType":"nm","bitrate":56,"width":13,"height":14,"lastModified":"10","quality":"fu","fps":54,"qualityLabel":"yj","projectionType":"wu","audioQuality":"tu","approxDurationMs":"51","audioSampleRate":"87","audioChannels":44}],"adaptiveFormats":[{"itag":50,"url":"fu","mimeType":"uz","bitrate":80,"width":80,"height":85,"initRange":{"start":"16","end":"71"},"indexRange":{"start":"1","end":"26"},"lastModified":"70","contentLength":"66","quality":"cx","fps":61,"qualityLabel":"xt","projectionType":"pe","averageBitrate":68,"approxDurationMs":"1"},{"itag":77,"url":"rj","mimeType":"lh","bitrate":16,"width":17,"height":47,"initRange":{"start":"51","end":"44"},"indexRange":{"start":"87","end":"61"},"lastModified":"13","contentLength":"21","quality":"ie","fps":23,"qualityLabel":"ig","projectionType":"bl","averageBitrate":16,"colorInfo":{"primaries":"et","transferCharacteristics":"zu","matrixCoefficients":"od"},"approxDurationMs":"59"},{"itag":7,"url":"fc","mimeType":"gr","bitrate":71,"width":11,"height":3,"initRange":{"start":"100","end":"7"},"indexRange":{"start":"36","end":"98"},"lastModified":"88","contentLength":"77","quality":"rb","fps":46,"qualityLabel":"gq","projectionType":"ld","averageBitrate":99,"colorInfo":{"primaries":"xd","transferCharacteristics":"uu","matrixCoefficients":"zc"},"approxDurationMs":"44"},{"itag":10,"url":"kl","mimeType":"wb","bitrate":51,"width":69,"height":3,"initRange":{"start":"92","end":"79"},"indexRange":{"start":"42","end":"72"},"lastModified":"99","contentLength":"6","quality":"ee","fps":40,"qualityLabel":"em","projectionType":"wz","averageBitrate":48,"approxDurationMs":"86"},{"itag":44,"url":"hp","mimeType":"kq","bitrate":84,"width":53,"height":22,"initRange":{"start":"48","end":"51"},"indexRange":{"start":"54","end":"44"},"lastModified":"25","contentLength":"47","quality":"xy","fps":11,"qualityLabel":"zl","projectionType":"za","averageBitrate":95,"colorInfo":{"primaries":"ot","transferCharacteristics":"av","matrixCoefficients":"ow"},"approxDurationMs":"85"},{"itag":20,"url":"di","mimeType":"nc","bitrate":15,"width":19,"height":92,"initRange":{"start":"82","end":"58"},"indexRange":{"start":"80","end":"37"},"lastModified":"46","contentLength":"40","quality":"wo","fps":44,"qualityLabel":"pt","projectionType":"bg","averageBitrate":3,"colorInfo":{"primaries":"wq","transferCharacteristics":"is","matrixCoefficients":"ou"},"approxDurationMs":"47"},{"itag":44,"url":"oe","mimeType":"mh","bitrate":37,"width":43,"height":24,"initRange":{"start":"29","end":"91"},"indexRange":{"start":"97","end":"97"},"lastModified":"52","contentLength":"43","quality":"cr","fps":44,"qualityLabel":"hc","projectionType":"cr","averageBitrate":12,"approxDurationMs":"97"},{"itag":32,"url":"gq","mimeType":"sh","bitrate":42,"width":32,"height":13,"initRange":{"start":"71","end":"87"},"indexRange":{"start":"70","end":"4"},"lastModified":"67","contentLength":"16","quality":"sb","fps":66,"qualityLabel":"mv","projectionType":"kk","averageBitrate":51,"colorInfo":{"primaries":"pk","transferCharacteristics":"ea","matrixCoefficients":"cq"},"approxDurationMs":"70"},{"itag":71,"url":"zt","mimeType":"bl","bitrate":12,"width":68,"height":12,"initRange":{"start":"63","end":"2"},"indexRange":{"start":"28","end":"68"},"lastModified":"33","contentLength":"0","quality":"dh","fps":6,"qualityLabel":"jv","projectionType":"sy","averageBitrate":75,"colorInfo":{"primaries":"us","transferCharacteristics":"ka","matrixCoefficients":"xw"},"approxDurationMs":"16"},{"itag":98,"url":"vl","mimeType":"lg","bitrate":88,"width":23,"height":83,"initRange":{"start":"49","end":"34"},"indexRange":{"start":"43","end":"90"},"lastModified":"84","contentLength":"77","quality":"xu","fps":50,"qualityLabel":"jz","projectionType":"om","averageBitrate":16,"highReplication":95,"approxDurationMs":"46"},{"itag":85,"url":"ri","mimeType":"dh","bitrate":77,"width":86,"height":54,"initRange":{"start":"40","end":"98"},"indexRange":{"start":"15","end":"85"},"lastModified":"25","contentLength":"53","quality":"rq","fps":62,"qualityLabel":"nx","projectionType":"wg","averageBitrate":35,"colorInfo":{"primaries":"oa","transferCharacteristics":"kb","matrixCoefficients":"kk"},"approxDurationMs":"26"},{"itag":10,"url":"zz","mimeType":"lq","bitrate":55,"width":89,"height":43,"initRange":{"start":"94","end":"98"},"indexRange":{"start":"73","end":"51"},"lastModified":"3","contentLength":"36","quality":"yo","fps":5,"qualityLabel":"we","projectionType":"ve","averageBitrate":83,"colorInfo":{"primaries":"yu","transferCharacteristics":"fu","matrixCoefficients":"ox"},"approxDurationMs":"11"},{"itag":62,"url":"hv","mimeType":"th","bitrate":76,"width":28,"height":79,"initRange":{"start":"97","end":"100"},"indexRange":{"start":"58","end":"63"},"lastModified":"53","contentLength":"22","quality":"ou","fps":7,"qualityLabel":"cm","projectionType":"xv","averageBitrate":35,"approxDurationMs":"98"},{"itag":91,"url":"vr","mimeType":"wo","bitrate":41,"width":4,"height":79,"initRange":{"start":"80","end":"83"},"indexRange":{"start":"14","end":"58"},"lastModified":"50","contentLength":"38","quality":"ic","fps":64,"qualityLabel":"sq","projectionType":"du","averageBitrate":61,"colorInfo":{"primaries":"ok","transferCharacteristics":"ud","matrixCoefficients":"ob"},"approxDurationMs":"73"},{"itag":48,"url":"lq","mimeType":"zl","bitrate":4,"width":16,"height":65,"initRange":{"start":"93","end":"50"},"indexRange":{"start":"52","end":"44"},"lastModified":"74","contentLength":"86","quality":"mi","fps":43,"qualityLabel":"rz","projectionType":"ji","averageBitrate":61,"colorInfo":{"primaries":"qo","transferCharacteristics":"fk","matrixCoefficients":"jy"},"approxDurationMs":"70"},{"itag":34,"url":"cr","mimeType":"la","bitrate":53,"width":29,"height":97,"initRange":{"start":"89","end":"45"},"indexRange":{"start":"93","end":"45"},"lastModified":"52","contentLength":"74","quality":"xn","fps":60,"qualityLabel":"xs","projectionType":"lf","averageBitrate":1,"approxDurationMs":"18"},{"itag":67,"url":"mr","mimeType":"cs","bitrate":79,"width":9,"height":85,"initRange":{"start":"56","end":"96"},"indexRange":{"start":"71","end":"84"},"lastModified":"78","contentLength":"80","quality":"ld","fps":2,"qualityLabel":"no","projectionType":"uq","averageBitrate":35,"colorInfo":{"primaries":"mj","transferCharacteristics":"ry","matrixCoefficients":"cc"},"approxDurationMs":"43"},{"itag":57,"url":"fi","mimeType":"to","bitrate":80,"width":81,"height":29,"initRange":{"start":"6","end":"96"},"indexRange":{"start":"73","end":"48"},"lastModified":"32","contentLength":"11","quality":"ck","fps":82,"qualityLabel":"fo","projectionType":"px","averageBitrate":95,"colorInfo":{"primaries":"az","transferCharacteristics":"mq","matrixCoefficients":"oc"},"approxDurationMs":"44"},{"itag":52,"url":"ea","mimeType":"xm","bitrate":18,"initRange":{"start":"15","end":"16"},"indexRange":{"start":"4","end":"33"},"lastModified":"65","contentLength":"67","quality":"es","projectionType":"mp","averageBitrate":52,"highReplication":82,"audioQuality":"za","approxDurationMs":"24","audioSampleRate":"1","audioChannels":92,"loudnessDb":0.9787435365879406},{"itag":37,"url":"kk","mimeType":"xg","bitrate":78,"initRange":{"start":"38","end":"94"},"indexRange":{"start":"27","end":"17"},"lastModified":"61","contentLength":"2","quality":"nh","projectionType":"ar","averageBitrate":69,"audioQuality":"la","approxDurationMs":"95","audioSampleRate":"66","audioChannels":50,"loudnessDb":0.6461265012758731},{"itag":45,"url":"oc","mimeType":"nm","bitrate":12,"initRange":{"start":"21","end":"45"},"indexRange":{"start":"21","end":"13"},"lastModified":"45","contentLength":"85","quality":"vs","projectionType":"xp","averageBitrate":32,"audioQuality":"tv","approxDurationMs":"1","audioSampleRate":"99","audioChannels":42,"loudnessDb":0.39295968942278037},{"itag":37,"url":"zf","mimeType":"be","bitrate":29,"initRange":{"start":"27","end":"87"},"indexRange":{"start":"81","end":"20"},"lastModified":"6","contentLength":"33","quality":"pe","projectionType":"pb","averageBitrate":100,"audioQuality":"zi","approxDurationMs":"70","audioSampleRate":"32","audioChannels":68,"loudnessDb":0.2781731101164002}]},"playerAds":[{"playerLegacyDesktopWatchAdsRenderer":{"playerAdParams":{"showContentThumbnail":true,"enabledEngageTypes":"3,6,4,5"},"gutParams":{"tag":"\\\\4061\\\\ytpwmpu"},"showCompanion":true,"showInstream":true,"useGut":true}}],"playbackTracking":{"videostatsPlaybackUrl":{"baseUrl":"bj"},"videostatsDelayplayUrl":{"baseUrl":"vx"},"videostatsWatchtimeUrl":{"baseUrl":"px"},"ptrackingUrl":{"baseUrl":"tg"},"qoeUrl":{"baseUrl":"wx"},"atrUrl":{"baseUrl":"xz","elapsedMediaTimeSeconds":45},"videostatsScheduledFlushWalltimeSeconds":[99,32,39],"videostatsDefaultFlushIntervalSeconds":3,"youtubeRemarketingUrl":{"baseUrl":"mb","elapsedMediaTimeSeconds":63},"googleRemarketingUrl":{"baseUrl":"yn","elapsedMediaTimeSeconds":83}},"captions":{"playerCaptionsTracklistRenderer":{"captionTracks":[{"baseUrl":"ew","name":{"simpleText":"ez"},"vssId":"fj","languageCode":"wd","kind":"ez","isTranslatable":21}],"audioTracks":[{"captionTrackIndices":[87]}],"translationLanguages":[{"languageCode":"xu","languageName":{"simpleText":"fw"}},{"languageCode":"zl","languageName":{"simpleText":"xc"}},{"languageCode":"jr","languageName":{"simpleText":"md"}},{"languageCode":"sc","languageName":{"simpleText":"wf"}},{"languageCode":"nj","languageName":{"simpleText":"xn"}},{"languageCode":"of","languageName":{"simpleText":"av"}},{"languageCode":"tv","languageName":{"simpleText":"ok"}},{"languageCode":"nu","languageName":{"simpleText":"ry"}},{"languageCode":"zy","languageName":{"simpleText":"nb"}},{"languageCode":"pt","languageName":{"simpleText":"eq"}},{"languageCode":"vr","languageName":{"simpleText":"cc"}},{"languageCode":"wh","languageName":{"simpleText":"hd"}},{"languageCode":"hp","languageName":{"simpleText":"ds"}},{"languageCode":"ka","languageName":{"simpleText":"up"}},{"languageCode":"sw","languageName":{"simpleText":"zp"}},{"languageCode":"rh","languageName":{"simpleText":"eq"}},{"languageCode":"bq","languageName":{"simpleText":"at"}},{"languageCode":"hu","languageName":{"simpleText":"fg"}},{"languageCode":"ai","languageName":{"simpleText":"iy"}},{"languageCode":"rj","languageName":{"simpleText":"oz"}},{"languageCode":"sq","languageName":{"simpleText":"fe"}},{"languageCode":"tn","languageName":{"simpleText":"vk"}},{"languageCode":"jr","languageName":{"simpleText":"jg"}},{"languageCode":"vc","languageName":{"simpleText":"hv"}},{"languageCode":"yn","languageName":{"simpleText":"ky"}},{"languageCode":"pa","languageName":{"simpleText":"rw"}},{"languageCode":"lr","languageName":{"simpleText":"kv"}},{"languageCode":"ud","languageName":{"simpleText":"fn"}},{"languageCode":"hq","languageName":{"simpleText":"io"}},{"languageCode":"rp","languageName":{"simpleText":"qx"}},{"languageCode":"xf","languageName":{"simpleText":"sm"}},{"languageCode":"fs","languageName":{"simpleText":"ty"}},{"languageCode":"so","languageName":{"simpleText":"xl"}},{"languageCode":"fk","languageName":{"simpleText":"ff"}},{"languageCode":"fw","languageName":{"simpleText":"wz"}},{"languageCode":"rn","languageName":{"simpleText":"zw"}},{"languageCode":"wq","languageName":{"simpleText":"yt"}},{"languageCode":"oh","languageName":{"simpleText":"oo"}},{"languageCode":"ts","languageName":{"simpleText":"jt"}},{"languageCode":"xy","languageName":{"simpleText":"ga"}},{"languageCode":"jy","languageName":{"simpleText":"sx"}},{"languageCode":"lw","languageName":{"simpleText":"cf"}},{"languageCode":"fc","languageName":{"simpleText":"qr"}},{"languageCode":"ji","languageName":{"simpleText":"cc"}},{"languageCode":"qs","languageName":{"simpleText":"pi"}},{"languageCode":"vx","languageName":{"simpleText":"hk"}},{"languageCode":"jt","languageName":{"simpleText":"eh"}},{"languageCode":"fb","languageName":{"simpleText":"iu"}},{"languageCode":"mf","languageName":{"simpleText":"st"}},{"languageCode":"en","languageName":{"simpleText":"vr"}},{"languageCode":"go","languageName":{"simpleText":"kp"}},{"languageCode":"sc","languageName":{"simpleText":"rk"}},{"languageCode":"bx","languageName":{"simpleText":"ci"}},{"languageCode":"pu","languageName":{"simpleText":"qj"}},{"languageCode":"fa","languageName":{"simpleText":"ht"}},{"languageCode":"bw","languageName":{"simpleText":"af"}},{"languageCode":"rr","languageName":{"simpleText":"jt"}},{"languageCode":"ef","languageName":{"simpleText":"yy"}},{"languageCode":"bn","languageName":{"simpleText":"wu"}},{"languageCode":"ov","languageName":{"simpleText":"ae"}},{"languageCode":"sm","languageName":{"simpleText":"hi"}},{"languageCode":"tq","languageName":{"simpleText":"ie"}},{"languageCode":"fn","languageName":{"simpleText":"et"}},{"languageCode":"jw","languageName":{"simpleText":"bu"}},{"languageCode":"iz","languageName":{"simpleText":"gc"}},{"languageCode":"bk","languageName":{"simpleText":"jh"}},{"languageCode":"vw","languageName":{"simpleText":"fq"}},{"languageCode":"xt","languageName":{"simpleText":"or"}},{"languageCode":"kq","languageName":{"simpleText":"ch"}},{"languageCode":"pa","languageName":{"simpleText":"cs"}},{"languageCode":"ef","languageName":{"simpleText":"eq"}},{"languageCode":"mk","languageName":{"simpleText":"ig"}},{"languageCode":"me","languageName":{"simpleText":"pv"}},{"languageCode":"ll","languageName":{"simpleText":"nz"}},{"languageCode":"yd","languageName":{"simpleText":"pu"}},{"languageCode":"dj","languageName":{"simpleText":"vx"}},{"languageCode":"xc","languageName":{"simpleText":"ca"}},{"languageCode":"wb","languageName":{"simpleText":"il"}},{"languageCode":"ww","languageName":{"simpleText":"jf"}},{"languageCode":"xi","languageName":{"simpleText":"ba"}},{"languageCode":"ae","languageName":{"simpleText":"hx"}},{"languageCode":"uj","languageName":{"simpleText":"xu"}},{"languageCode":"hq","languageName":{"simpleText":"gp"}},{"languageCode":"we","languageName":{"simpleText":"pk"}},{"languageCode":"kt","languageName":{"simpleText":"ek"}},{"languageCode":"hy","languageName":{"simpleText":"ab"}},{"languageCode":"hm","languageName":{"simpleText":"nu"}},{"languageCode":"uw","languageName":{"simpleText":"rx"}},{"languageCode":"or","languageName":{"simpleText":"nf"}},{"languageCode":"dh","languageName":{"simpleText":"zn"}},{"languageCode":"kb","languageName":{"simpleText":"js"}},{"languageCode":"vg","languageName":{"simpleText":"xe"}},{"languageCode":"dl","languageName":{"simpleText":"so"}},{"languageCode":"lz","languageName":{"simpleText":"hb"}},{"languageCode":"ny","languageName":{"simpleText":"xr"}},{"languageCode":"ag","languageName":{"simpleText":"us"}},{"languageCode":"zr","languageName":{"simpleText":"ae"}},{"languageCode":"yq","languageName":{"simpleText":"yc"}},{"languageCode":"up","languageName":{"simpleText":"dc"}},{"languageCode":"zn","languageName":{"simpleText":"jw"}},{"languageCode":"uh","languageName":{"simpleText":"ms"}},{"languageCode":"mt","languageName":{"simpleText":"vf"}},{"languageCode":"lt","languageName":{"simpleText":"ln"}},{"languageCode":"vf","languageName":{"simpleText":"rd"}},{"languageCode":"my","languageName":{"simpleText":"rk"}},{"languageCode":"ei","languageName":{"simpleText":"ul"}},{"languageCode":"dj","languageName":{"simpleText":"cz"}},{"languageCode":"kb","languageName":{"simpleText":"hp"}},{"languageCode":"jj","languageName":{"simpleText":"zf"}},{"languageCode":"ew","languageName":{"simpleText":"ff"}},{"languageCode":"jo","languageName":{"simpleText":"iz"}},{"languageCode":"ja","languageName":{"simpleText":"uz"}},{"languageCode":"yd","languageName":{"simpleText":"or"}},{"languageCode":"tl","languageName":{"simpleText":"tw"}},{"languageCode":"mw","languageName":{"simpleText":"th"}},{"languageCode":"pq","languageName":{"simpleText":"zp"}},{"languageCode":"pq","languageName":{"simpleText":"pk"}},{"languageCode":"ef","languageName":{"simpleText":"fj"}},{"languageCode":"qq","languageName":{"simpleText":"vu"}},{"languageCode":"pj","languageName":{"simpleText":"kp"}},{"languageCode":"ab","languageName":{"simpleText":"xw"}},{"languageCode":"re","languageName":{"simpleText":"ln"}},{"languageCode":"ht","languageName":{"simpleText":"wo"}},{"languageCode":"ju","languageName":{"simpleText":"wb"}},{"languageCode":"yq","languageName":{"simpleText":"xv"}}],"defaultAudioTrackIndex":70}},"videoDetails":{"videoId":"ux","title":"jb","lengthSeconds":"90","keywords":["th","ts","yg","gy","ih","iq","zj"],"channelId":"pg","isOwnerViewing":6,"shortDescription":"ts","isCrawlable":62,"thumbnail":{"thumbnails":[{"url":"vx","width":8,"height":58},{"url":"bp","width":44,"height":79},{"url":"oh","width":47,"height":66},{"url":"hm","width":34,"height":55},{"url":"vr","width":0,"height":20}]},"allowRatings":24,"viewCount":"49","author":"xr","isPrivate":70,"isUnpluggedCorpus":66,"isLiveContent":99},"annotations":[{"playerAnnotationsExpandedRenderer":{"featuredChannel":{"startTimeMs":"96","endTimeMs":"46","watermark":{"thumbnails":[{"url":"li","width":91,"height":28}]},"trackingParams":"an","navigationEndpoint":{"clickTrackingParams":"mg","commandMetadata":{"webCommandMetadata":{"url":"rd","webPageType":"nc","rootVe":69,"apiUrl":"/youtubei/v1/browse"}},"browseEndpoint":{"browseId":"qg"}},"channelName":"ei","subscribeButton":{"subscribeButtonRenderer":{"buttonText":{"runs":[{"text":"pz"}]},"subscribed":44,"enabled":33,"type":"ue","channelId":"ki","showPreferences":71,"subscribedButtonText":{"runs":[{"text":"lk"}]},"unsubscribedButtonText":{"runs":[{"text":"jn"}]},"trackingParams":"oj","unsubscribeButtonText":{"runs":[{"text":"ad"}]},"serviceEndpoints":[{"clickTrackingParams":"wm","commandMetadata":{"webCommandMetadata":{"sendPost":4,"apiUrl":"ky"}},"subscribeEndpoint":{"channelIds":["zt"],"params":"at"}},{"clickTrackingParams":"jg","commandMetadata":{"webCommandMetadata":{"sendPost":28}},"signalServiceEndpoint":{"signal":"ok","actions":[{"clickTrackingParams":"lt","openPopupAction":{"popup":{"confirmDialogRenderer":{"trackingParams":"po","dialogMessages":[{"runs":[{"text":"ou"},{"text":"jt"},{"text":"zz"}]}],"confirmButton":{"buttonRenderer":{"style":"mm","size":"oi","isDisabled":43,"text":{"runs":[{"text":"kc"}]},"serviceEndpoint":{"clickTrackingParams":"gk","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"kc"}},"unsubscribeEndpoint":{"channelIds":["cm"],"params":"ar"}},"accessibility":{"label":"iy"},"trackingParams":"gs"}},"cancelButton":{"buttonRenderer":{"style":"jb","size":"pe","isDisabled":69,"text":{"runs":[{"text":"uv"}]},"accessibility":{"label":"qu"},"trackingParams":"pe"}},"primaryIsCancel":48}},"popupType":"ma"}}]}}],"subscribeAccessibility":{"accessibilityData":{"label":"vh"}},"unsubscribeAccessibility":{"accessibilityData":{"label":"lg"}},"signInEndpoint":{"clickTrackingParams":"eu","commandMetadata":{"webCommandMetadata":{"url":"na"}}}}}},"allowSwipeDismiss":55,"annotationId":"jd"}}],"playerConfig":{"audioConfig":{"loudnessDb":0.9620880668073215,"perceptualLoudnessDb":0.541474004793957,"enablePerFormatLoudness":31},"streamSelectionConfig":{"maxBitrate":"61"},"mediaCommonConfig":{"dynamicReadaheadConfig":{"maxReadAheadMediaTimeMs":100,"minReadAheadMediaTimeMs":21,"readAheadGrowthRateMs":29}},"webPlayerConfig":{"useCobaltTvosDash":55,"webPlayerActionsPorting":{"getSharePanelCommand":{"clickTrackingParams":"of","commandMetadata":{"webCommandMetadata":{"sendPost":31,"apiUrl":"xl"}},"webPlayerShareEntityServiceEndpoint":{"serializedShareEntity":"tr"}},"subscribeCommand":{"clickTrackingParams":"fs","commandMetadata":{"webCommandMetadata":{"sendPost":13,"apiUrl":"xp"}},"subscribeEndpoint":{"channelIds":["qs"],"params":"oa"}},"unsubscribeCommand":{"clickTrackingParams":"ls","commandMetadata":{"webCommandMetadata":{"sendPost":91,"apiUrl":"wc"}},"unsubscribeEndpoint":{"channelIds":["fo"],"params":"vt"}},"addToWatchLaterCommand":{"clickTrackingParams":"ua","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"iu"}},"playlistEditEndpoint":{"playlistId":"rv","actions":[{"addedVideoId":"iw","action":"rd"}]}},"removeFromWatchLaterCommand":{"clickTrackingParams":"un","commandMetadata":{"webCommandMetadata":{"sendPost":20,"apiUrl":"bl"}},"playlistEditEndpoint":{"playlistId":"zg","actions":[{"action":"ya","removedVideoId":"dk"}]}}},"gatewayExperimentGroup":"vb"}},"storyboards":{"playerStoryboardSpecRenderer":{"spec":"aj","recommendedLevel":87}},"microformat":{"playerMicroformatRenderer":{"thumbnail":{"thumbnails":[{"url":"mm","width":57,"height":94}]},"embed":{"iframeUrl":"bd","width":51,"height":73},"title":{"simpleText":"sg"},"description":{"simpleText":"yv"},"lengthSeconds":"18","ownerProfileUrl":"bg","externalChannelId":"eg","isFamilySafe":88,"availableCountries":["hn","sd","lt","tx","nw","mq","iz","aj","vi","xa","ec","iv","rj","vb","ro","po","mv","mx","cn","ld","tn","ay","gv","bs","vf","da","ss","km","uo","mg","wv","md","lo","nc","vh","li","jh","lj","qq","ci","ob","zy","pu","bl","jm","ge","tt","ov","ue","vp","ka","nh","uc","gb","rs","gu","hm","uv","nq","ga","qu","hr","pj","zq","rh","nn","yv","or","zg","ai","qj","cv","vg","hr","zm","al","mj","fz","yx","st","tt","ih","vm","wq","gx","wi","ys","ug","vb","uh","rf","ry","ba","xu","ce","eq","bx","he","jm","ie","nb","cd","qz","no","yq","qe","jy","wd","pm","nb","hk","em","im","iv","ld","gz","fe","ut","md","gw","sf","yz","yp","xr","gm","uo","kg","yo","wv","da","wt","ry","it","gz","mm","ho","mf","lq","tu","im","lu","gm","pa","ny","gu","ds","yx","yh","jk","qb","jv","mp","bi","nr","mc","bg","ym","zt","sh","kd","gj","dp","qw","eh","no","pj","nq","dy","gt","cm","pg","ce","jt","xv","tf","ue","ke","hs","xh","tc","ad","yg","uh","cd","zc","rj","kq","sp","vv","xt","bo","am","kg","kx","xb","fr","il","qi","ap","pe","tg","im","cs","vy","zu","cq","bu","og","tf","ze","zj","um","vd","ot","al","zl","um","jv","ss","md","xm","nv","id","es","jf","as","zb","ms","uv","jh","xz","em","uv","bk","zx","wp","ay","ub","pa","rf","yi","zm","em","pu","xs"],"isUnlisted":24,"hasYpcMetadata":38,"viewCount":"6","category":"qh","publishDate":"eb","ownerChannelName":"mf","uploadDate":"ax"}},"cards":{"cardCollectionRenderer":{"cards":[{"cardRenderer":{"teaser":{"simpleCardTeaserRenderer":{"message":{"simpleText":"ha"},"trackingParams":"ra","prominent":9,"logVisibilityUpdates":88,"onTapCommand":{"clickTrackingParams":"dy","changeEngagementPanelVisibilityAction":{"targetId":"qc","visibility":"mh"}}}},"cueRanges":[{"startCardActiveMs":"41","endCardActiveMs":"81","teaserDurationMs":"31","iconAfterTeaserMs":"65"}],"trackingParams":"sn"}}],"headerText":{"simpleText":"mi"},"icon":{"infoCardIconRenderer":{"trackingParams":"tq"}},"closeButton":{"infoCardIconRenderer":{"trackingParams":"nz"}},"trackingParams":"ss","allowTeaserDismiss":55,"logIconVisibilityUpdates":49}},"trackingParams":"lt","attestation":{"playerAttestationRenderer":{"challenge":"rg","botguardData":{"program":"vk","interpreterSafeUrl":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"ap"},"serverEnvironment":83}}},"videoQualityPromoSupportedRenderers":{"videoQualityPromoRenderer":{"triggerCriteria":{"connectionWhitelist":["vs"],"joinLatencySeconds":85,"rebufferTimeSeconds":89,"watchTimeWindowSeconds":21,"refractorySeconds":41},"text":{"runs":[{"text":"it"},{"text":"qt","bold":60}]},"endpoint":{"clickTrackingParams":"lw","commandMetadata":{"webCommandMetadata":{"url":"ih","webPageType":"xa","rootVe":73}},"urlEndpoint":{"url":"ms","target":"tj"}},"trackingParams":"vd","snackbar":{"notificationActionRenderer":{"responseText":{"runs":[{"text":"pp"}]},"actionButton":{"buttonRenderer":{"text":{"runs":[{"text":"yw"}]},"navigationEndpoint":{"clickTrackingParams":"sq","commandMetadata":{"webCommandMetadata":{"url":"wp","webPageType":"zn","rootVe":21}},"urlEndpoint":{"url":"ju","target":"dy"}},"trackingParams":"zj"}},"trackingParams":"nh"}}}},"messages":[{"mealbarPromoRenderer":{"icon":{"thumbnails":[{"url":"ek","width":71,"height":69}]},"messageTexts":[{"runs":[{"text":"ew"}]}],"actionButton":{"buttonRenderer":{"style":"gz","size":"tz","text":{"runs":[{"text":"ga"}]},"trackingParams":"qr","command":{"clickTrackingParams":"wk","commandExecutorCommand":{"commands":[{"clickTrackingParams":"dw","commandMetadata":{"webCommandMetadata":{"url":"po","webPageType":"fl","rootVe":70,"apiUrl":"ot"}},"browseEndpoint":{"browseId":"pl","params":"zo"}},{"commandMetadata":{"webCommandMetadata":{"sendPost":10,"apiUrl":"rv"}},"feedbackEndpoint":{"feedbackToken":"xi","uiActions":{"hideEnclosingContainer":25}}}]}}}},"dismissButton":{"buttonRenderer":{"style":"ol","size":"og","text":{"runs":[{"text":"yv"}]},"trackingParams":"ch","command":{"clickTrackingParams":"uu","commandExecutorCommand":{"commands":[{"clickTrackingParams":"ig","commandMetadata":{"webCommandMetadata":{"sendPost":71,"apiUrl":"en"}},"feedbackEndpoint":{"feedbackToken":"wh","uiActions":{"hideEnclosingContainer":45}}}]}}}},"triggerCondition":"pb","style":"uq","trackingParams":"rp","impressionEndpoints":[{"clickTrackingParams":"xb","commandMetadata":{"webCommandMetadata":{"sendPost":73,"apiUrl":"wl"}},"feedbackEndpoint":{"feedbackToken":"wf","uiActions":{"hideEnclosingContainer":95}}}],"isVisible":17,"messageTitle":{"runs":[{"text":"ir"}]},"enableSharedFeatureForImpressionHandling":21}}],"adPlacements":[{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"7","offsetEndMilliseconds":"39"},"hideCueRangeMarker":true}},"renderer":{"linearAdSequenceRenderer":{"linearAds":[{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"https://i.ytimg.com/vi/AERLXaPKn_U/mqdefault.jpg","width":46,"height":25}]},"trackingParams":"ye"},"trackingParams":"dq","templatedCountdown":{"templatedAdText":{"text":"ps","isTemplated":82,"trackingParams":"cc"}},"durationMilliseconds":44}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"xz","isTemplated":30,"trackingParams":"um"},"trackingParams":"ge"}},"trackingParams":"zg","skipOffsetMilliseconds":88}},"trackingParams":"qd","visitAdvertiserRenderer":{"buttonRenderer":{"style":"fv","text":{"simpleText":"on"},"icon":{"iconType":"vw"},"navigationEndpoint":{"clickTrackingParams":"mk","commandMetadata":{"webCommandMetadata":{"url":"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C3OQpfbUyZYWKL_Ken8RMFbClwAyRha6dc6fw7oP7EbaQHxABIABgyfb4hsijoBmCARdjYS1wdWItNjIxOTgxMTc0NzA0OTM3MYgBAaAB59zF2gOoAwSqBLMDT9ATfUTpaHDVXptzXB0Bqtu5dBV_jsP-c6MPkZYSL8_SrzCV3_f4sBsAHAi3Utb4zaJFaF_HvQdtBwss4wAA_skHdbFnpl5-EMNyyzlRw-Cndshj8CGQYwd1ZXhxlU46cvUuzxBe4SvQuo5EZgRv_zIYfKVpOj81ol3soC-FTzrjxhngpg6E1SEy8MZ8S5ykzm_m-YEKix3QCVLlSpEedBunRo295OkIwlFwaIQk8cLxsmnYhxdD_0zLFeTvwe5Q5tNO9mqkUZ7rAyzCTey_m5MZVo67-fDtV0elSQR79C9ErFiOQ5SaPsQgzk7zE3jxPNZYzV0zKOQ245eF3ZWxcGIrFA5NPIvvBwOl60ABjpEgQjQ4y2LpZnygmW_9ikThHx_iC4RujeV7iSAG5Fvv28wptAmCq7jMu5tWztpr-nl-Y0Iz7dA2FeeEOcd4ddn596NriGGT8AjZAXhtD7yJ8tRBEO3P48giFZj81WrpYHUvNhfx24PguTj-IBSpw2uQbemku11WDOxo7SI20n_fPtLcaEXB3YUajshnd5LoR4NlONEqC0f_uYwLaHt5X4Fw1hd8oAZUgAeBo7oliAcBkAcCqAf5sbECqAfnnbECqAfonbECqAfqt7ECqAentbMVqAfvtbECqAfwtbECqAeCqrECqAePOgHqNIbqAe2B6gHpJqxAqgHkZ-xAqgHsJuxAqgH36GxAqgHrrGxAqgHpqqxAqgH_bKxAqgHgcYbqAf8r7ECqAerxRuoB5zcG6gH5p2xAqgHyJ-xAqgHt6GxAqgH66WxAqgHyqmxApIIC242UFJubjBtcFpjqAgB0ggcCIAREAIYWjIDgoAEOgeP0ICAgIAESNmg0jVQFPIIH2NhLXl0LWhvc3QtcHViLTE4MDAxMjAxBZAyMzA2NTWaCRtodHRwczovL2xhdW5pdGVjLm5ldC9lY29tYTKxCS-fhg771OyRyAkYyAmPAcgJkAGYCwGhC8vk5LIcunUAugtXCAEQARgFIAEoATABQAFIAWAAaABwAogBAJgBAaIBLwoYIAPauAQSMhA6DgoMKDBIs5vbluYKmBkBEAEYACAAWABgAHAA0AEBqAIFwAIC2AEBgAIBiAIG0AsS2gw8CgoQ8Pj1wrn_sa1tEgIBAxoqCAESGf6BmeYY2b35qxjevPmrGJO89uoDvoSxpgPO7YnF2kwgmtyo08MEmg0BEqoNAlVTuBP___________8BsBQBwBXJgIBA0BUB2BUBkBYBmBYB4hYCCAGAFwGKFxoIAxgBIAEoATABOAFAAUgBUAFYAWACaAFwAaAXAakXG4oLaa1eRvW6FwQoADAA&ase=2&num=1&cid=CAASD-D4c9DOhTCuXm4CeUayPw&ad_cpn=%5BAD_CPN%5D&sig=AOD64_1U5dvH2jbnEq_3j0LlY381EiWpog&ms=[CLICK_MS]&adurl=https://garlo.com/enapa2%3Fgc_id%3D20599670093&label=video_click_to_advertiser_site&ctype=110","webPageType":"ry","rootVe":62}},"urlEndpoint":{"url":"lq","target":"wt"}},"trackingParams":"mh"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"kw","isTemplated":93,"trackingParams":"jg"},"trackingParams":"at"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"rl","isTemplated":73,"trackingParams":"le"}},"trackingParams":"tr"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"le","size":"nb","isDisabled":41,"serviceEndpoint":{"clickTrackingParams":"jt","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"as"},"trackingParams":"vy"}},"popupType":"xn"}},"icon":{"iconType":"vl"},"trackingParams":"lm","accessibilityData":{"accessibilityData":{"label":"qi"}}}},"hoverText":{"simpleText":"zk"},"trackingParams":"qa"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"pv"}]},"trackingParams":"jo"},"headline":{"text":"qx","isTemplated":10,"trackingParams":"um"},"description":{"text":"mf","trackingParams":"fe"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"kq"},"navigationEndpoint":{"clickTrackingParams":"cm","commandMetadata":{"webCommandMetadata":{"url":"wa","webPageType":"nq","rootVe":69}},"urlEndpoint":{"url":"ln","target":"nd"}},"trackingParams":"no"}},"startMs":45,"trackingParams":"ge"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"xd"},"elementId":"tc","inPlayerSlotId":"gg","inPlayerLayoutId":"cm"}},"trackingParams":"uy","layoutId":"ff","associatedPlayerBytesLayoutId":"dy"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"gv"}]},"trackingParams":"at"},"headline":{"text":"ow","isTemplated":66,"trackingParams":"za"},"description":{"text":"ds","isTemplated":95,"trackingParams":"fc"},"actionButton":{"buttonRenderer":{"style":"ys","text":{"simpleText":"aq"},"navigationEndpoint":{"clickTrackingParams":"vu","commandMetadata":{"webCommandMetadata":{"url":"zn","webPageType":"jv","rootVe":38}},"urlEndpoint":{"url":"df","target":"xe"}},"trackingParams":"za"}},"durationMilliseconds":44,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"xg"}},"navigationEndpoint":{"clickTrackingParams":"vg","loggingUrls":[{"baseUrl":"bc"}],"commandMetadata":{"webCommandMetadata":{"url":"sn","webPageType":"vb","rootVe":34}},"urlEndpoint":{"url":"ex","target":"nb"}},"trackingParams":"iw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"cm"}]},"trackingParams":"br"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"dj","commandExecutorCommand":{"commands":[{"clickTrackingParams":"li","loggingUrls":[{"baseUrl":"wa"}],"pingingEndpoint":{"hack":0}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"jg","isTemplated":95,"trackingParams":"by"},"trackingParams":"kl"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"kt"},"layoutId":"cv","inPlayerSlotId":"qt","inPlayerLayoutId":"yy","associatedPlayerBytesLayoutId":"dx"}},{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"pz","width":32,"height":43}]},"trackingParams":"iz"},"trackingParams":"yo","templatedCountdown":{"templatedAdText":{"text":"we","isTemplated":91,"trackingParams":"si"}},"durationMilliseconds":10}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"bp","isTemplated":93,"trackingParams":"mo"},"trackingParams":"cp"}},"trackingParams":"qr","skipOffsetMilliseconds":60}},"trackingParams":"zf","visitAdvertiserRenderer":{"buttonRenderer":{"style":"ya","text":{"simpleText":"fv"},"icon":{"iconType":"bx"},"navigationEndpoint":{"clickTrackingParams":"bw","commandMetadata":{"webCommandMetadata":{"url":"ht","webPageType":"gv","rootVe":14}},"urlEndpoint":{"url":"wi","target":"te"}},"trackingParams":"gr"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"ox","isTemplated":66,"trackingParams":"td"},"trackingParams":"ng"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"zu","isTemplated":15,"trackingParams":"py"}},"trackingParams":"hb"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"vn","size":"cw","isDisabled":56,"serviceEndpoint":{"clickTrackingParams":"jh","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"zx"},"trackingParams":"yl"}},"popupType":"tw"}},"icon":{"iconType":"ar"},"trackingParams":"vi","accessibilityData":{"accessibilityData":{"label":"hy"}}}},"hoverText":{"simpleText":"ap"},"trackingParams":"pp"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"ol"}]},"trackingParams":"kz"},"headline":{"text":"wa","isTemplated":43,"trackingParams":"yb"},"description":{"text":"cl","trackingParams":"aq"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"xg"},"navigationEndpoint":{"clickTrackingParams":"wp","commandMetadata":{"webCommandMetadata":{"url":"uh","webPageType":"bs","rootVe":44}},"urlEndpoint":{"url":"xq","target":"fi"}},"trackingParams":"fo"}},"startMs":5,"trackingParams":"kh"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"ir"},"elementId":"mp","inPlayerSlotId":"fh","inPlayerLayoutId":"bh"}},"trackingParams":"ao","layoutId":"gc","associatedPlayerBytesLayoutId":"up"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"wj"}]},"trackingParams":"zr"},"headline":{"text":"rq","isTemplated":82,"trackingParams":"gr"},"description":{"text":"fj","isTemplated":57,"trackingParams":"li"},"actionButton":{"buttonRenderer":{"style":"mu","text":{"simpleText":"cg"},"navigationEndpoint":{"clickTrackingParams":"eb","commandMetadata":{"webCommandMetadata":{"url":"vn","webPageType":"nw","rootVe":96}},"urlEndpoint":{"url":"bs","target":"dr"}},"trackingParams":"iq"}},"durationMilliseconds":39,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"mt"}},"navigationEndpoint":{"clickTrackingParams":"uz","loggingUrls":[{"baseUrl":"rn"}],"commandMetadata":{"webCommandMetadata":{"url":"cu","webPageType":"qs","rootVe":26}},"urlEndpoint":{"url":"ty","target":"he"}},"trackingParams":"bw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"pd"}]},"trackingParams":"wm"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"io","commandExecutorCommand":{"commands":[{"clickTrackingParams":"hd","loggingUrls":[{"baseUrl":"hz"}],"pingingEndpoint":{"hack":81}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"db","isTemplated":42,"trackingParams":"ga"},"trackingParams":"pa"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"bt"},"layoutId":"ec","inPlayerSlotId":"nl","inPlayerLayoutId":"qh","associatedPlayerBytesLayoutId":"qe"}}]}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"rj"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"zf","adTimeOffset":{"offsetStartMilliseconds":"63","offsetEndMilliseconds":"83"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"59","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_START","adTimeOffset":{"offsetStartMilliseconds":"330100","offsetEndMilliseconds":"594666"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"0","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"65","offsetEndMilliseconds":"30"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"51","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wg"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"56","offsetEndMilliseconds":"86"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"25","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nh"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_END","adTimeOffset":{"offsetStartMilliseconds":"25","offsetEndMilliseconds":"13"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"32","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ti"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"47","offsetEndMilliseconds":"84"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"10","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"go"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"14","offsetEndMilliseconds":"87"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"79","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"34","offsetEndMilliseconds":"12"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"27","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"fp"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"66","offsetEndMilliseconds":"35"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"98","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"cn"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"59","offsetEndMilliseconds":"8"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"26","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wz"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"84","offsetEndMilliseconds":"90"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"92","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nl"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"50","offsetEndMilliseconds":"67"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"96","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ov"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"13","offsetEndMilliseconds":"2"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"52","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"by"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"73","offsetEndMilliseconds":"64"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"67","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"uc"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"10","offsetEndMilliseconds":"zo"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"22","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"en"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_SELF_START"}},"renderer":{"actionCompanionAdRenderer":{"headline":{"text":"eg","isTemplated":93,"trackingParams":"it"},"description":{"text":"ux","isTemplated":43,"trackingParams":"sj"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"de"},"navigationEndpoint":{"clickTrackingParams":"ex","commandMetadata":{"webCommandMetadata":{"url":"ue","webPageType":"ow","rootVe":77}},"urlEndpoint":{"url":"yh","target":"pg"}},"trackingParams":"xf"}},"iconImage":{"thumbnail":{"thumbnails":[{"url":"te","width":19,"height":23}]},"trackingParams":"lv"},"bannerImage":{"thumbnail":{"thumbnails":[{"url":"gj","width":38,"height":67}]},"trackingParams":"ow"},"navigationEndpoint":{"clickTrackingParams":"um","commandMetadata":{"webCommandMetadata":{"url":"fq","webPageType":"fd","rootVe":61}},"urlEndpoint":{"url":"gi","target":"tq"}},"trackingParams":"ie","adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"ng","size":"xv","isDisabled":53,"icon":{"iconType":"bq"},"navigationEndpoint":{"clickTrackingParams":"yl","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"po"},"trackingParams":"hi"}},"popupType":"sb"}},"trackingParams":"ho","accessibilityData":{"accessibilityData":{"label":"kl"}}}},"hoverText":{"simpleText":"xd"},"trackingParams":"dv"}},"adVideoId":"je","impressionPings":[{"baseUrl":"xj"}],"adLayoutLoggingData":{"serializedAdServingDataEntry":"dt"},"associatedCompositePlayerBytesLayoutId":"te"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"vs"}}}],"adSlots":[{"adSlotRenderer":{"adSlotMetadata":{"slotId":"1234","slotType":"SLOT_TYPE_PLAYER_BYTES","adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ob"},"triggerEvent":"SLOT_TRIGGER_EVENT_BEFORE_CONTENT"},"fulfillmentContent":{"fulfilledLayout":{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"ot","layoutType":"xg","adLayoutLoggingData":{"serializedAdServingDataEntry":"yk"}},"renderingContent":{"playerBytesSequentialLayoutRenderer":{"sequentialLayouts":[{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"je","layoutType":"ww","adLayoutLoggingData":{"serializedAdServingDataEntry":"ve"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":94,"pings":{"impressionPings":[{"baseUrl":"pl"},{"baseUrl":"zs"}],"errorPings":[{"baseUrl":"hh"}],"mutePings":[{"baseUrl":"qh"}],"unmutePings":[{"baseUrl":"ey"}],"pausePings":[{"baseUrl":"pz"}],"rewindPings":[{"baseUrl":"bh"}],"resumePings":[{"baseUrl":"mw"}],"skipPings":[{"baseUrl":"si"}],"closePings":[{"baseUrl":"oh"}],"progressPings":[{"baseUrl":"ly","offsetMilliseconds":1},{"baseUrl":"ac","offsetMilliseconds":80},{"baseUrl":"sy","offsetMilliseconds":72}],"fullscreenPings":[{"baseUrl":"kw"}],"activeViewViewablePings":[{"baseUrl":"oz"}],"endFullscreenPings":[{"baseUrl":"uc"}],"activeViewMeasurablePings":[{"baseUrl":"vu"}],"abandonPings":[{"baseUrl":"sf"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"qg"}],"completePings":[{"baseUrl":"jv"}],"activeViewTracking":{"trafficType":"sq"}},"clickthroughEndpoint":{"clickTrackingParams":"fn","commandMetadata":{"webCommandMetadata":{"url":"tf","webPageType":"ox","rootVe":73}},"urlEndpoint":{"url":"ny","target":"uc"}},"csiParameters":[{"key":"qe","value":"em"}],"playerVars":"suppress_creator_endscreen=1&is_trueview_action","elementId":"bq","trackingParams":"dr","legacyInfoCardVastExtension":"pa","sodarExtensionData":{"siub":"mi","bgub":"hc","scs":"cw","bgp":"co"},"externalVideoId":"ya","adLayoutLoggingData":{"serializedAdServingDataEntry":"jj"},"layoutId":"sc"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nr","layoutType":"kn","adLayoutLoggingData":{"serializedAdServingDataEntry":"cf"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":52,"trackingParams":"yq","abandonCommands":{"commands":[{"clickTrackingParams":"wi","loggingUrls":[{"baseUrl":"jb"}],"pingingEndpoint":{"hack":90}}]},"skipPings":[{"baseUrl":"av"}],"layoutId":"nj"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nl","layoutType":"wm","adLayoutLoggingData":{"serializedAdServingDataEntry":"zw"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":80,"pings":{"impressionPings":[{"baseUrl":"ji"},{"baseUrl":"ao"},{"baseUrl":"cc"}],"errorPings":[{"baseUrl":"jt"}],"mutePings":[{"baseUrl":"mn"},{"baseUrl":"ce"}],"unmutePings":[{"baseUrl":"rd"},{"baseUrl":"lb"}],"pausePings":[{"baseUrl":"et"},{"baseUrl":"fv"}],"rewindPings":[{"baseUrl":"ft"}],"resumePings":[{"baseUrl":"qj"},{"baseUrl":"ot"}],"skipPings":[{"baseUrl":"ky"},{"baseUrl":"jb"}],"closePings":[{"baseUrl":"hw"}],"progressPings":[{"baseUrl":"vh","offsetMilliseconds":36},{"baseUrl":"um","offsetMilliseconds":77},{"baseUrl":"sq","offsetMilliseconds":19},{"baseUrl":"ui","offsetMilliseconds":15},{"baseUrl":"nl","offsetMilliseconds":86}],"fullscreenPings":[{"baseUrl":"rp"},{"baseUrl":"cn"}],"activeViewViewablePings":[{"baseUrl":"ml"},{"baseUrl":"kq"}],"endFullscreenPings":[{"baseUrl":"ym"}],"activeViewMeasurablePings":[{"baseUrl":"di"},{"baseUrl":"ol"}],"abandonPings":[{"baseUrl":"aj"},{"baseUrl":"wo"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"ms"},{"baseUrl":"uj"}],"startPings":[{"baseUrl":"gy"}],"firstQuartilePings":[{"baseUrl":"ly"}],"secondQuartilePings":[{"baseUrl":"sw"}],"thirdQuartilePings":[{"baseUrl":"gt"}],"completePings":[{"baseUrl":"hu"},{"baseUrl":"gs"}],"activeViewTracking":{"trafficType":"mr"}},"clickthroughEndpoint":{"clickTrackingParams":"yq","commandMetadata":{"webCommandMetadata":{"url":"dn","webPageType":"ms","rootVe":54}},"urlEndpoint":{"url":"hs","target":"jt"}},"csiParameters":[{"key":"zn","value":"eq"}],"playerVars":"bi","elementId":"gr","trackingParams":"qc","legacyInfoCardVastExtension":"xv","sodarExtensionData":{"siub":"ul","bgub":"yr","scs":"ui","bgp":"vy"},"externalVideoId":"fp","adLayoutLoggingData":{"serializedAdServingDataEntry":"gt"},"layoutId":"bh"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"xy","layoutType":"bf","adLayoutLoggingData":{"serializedAdServingDataEntry":"rj"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":95,"trackingParams":"ee","abandonCommands":{"commands":[{"clickTrackingParams":"mi","loggingUrls":[{"baseUrl":"yi"},{"baseUrl":"tm"}],"pingingEndpoint":{"hack":47}}]},"skipPings":[{"baseUrl":"uk"},{"baseUrl":"yj"}],"layoutId":"ft"}}}}]}},"layoutExitNormalTriggers":[{"id":"hq","onLayoutSelfExitRequestedTrigger":{"triggeringLayoutId":"hv"}}],"layoutExitSkipTriggers":[{"id":"up","skipRequestedTrigger":{"triggeringLayoutId":"nm"}},{"id":"yl","skipRequestedTrigger":{"triggeringLayoutId":"gh"}},{"id":"zd","skipRequestedTrigger":{"triggeringLayoutId":"mo"}},{"id":"bc","skipRequestedTrigger":{"triggeringLayoutId":"jj"}}],"layoutExitMuteTriggers":[{"id":"ql","skipRequestedTrigger":{"triggeringLayoutId":"hr"}},{"id":"rc","skipRequestedTrigger":{"triggeringLayoutId":"ln"}}]}}},"slotEntryTrigger":{"id":"lc","beforeContentVideoIdStartedTrigger":{}},"slotFulfillmentTriggers":[{"id":"xq","slotIdEnteredTrigger":{"triggeringSlotId":"da"}}],"slotExpirationTriggers":[{"id":"vv","slotIdExitedTrigger":{"triggeringSlotId":"re"}},{"id":"jg","onNewPlaybackAfterContentVideoIdTrigger":{}}]}}],"adBreakHeartbeatParams":"mw","frameworkUpdates":{"entityBatchUpdate":{"mutations":[{"entityKey":"pz","type":"az","payload":{"offlineabilityEntity":{"key":"ql","command":{"innertubeCommand":{"clickTrackingParams":"nz","ypcGetOfflineUpsellEndpoint":{"params":"pw"}}},"addToOfflineButtonState":"os","contentCheckOk":false,"racyCheckOk":false,"loggingDirectives":{"trackingParams":"xp","visibility":{"types":"1"},"enableDisplayloggerExperiment":true}}}}],"timestamp":{"seconds":"19","nanos":12}}}}',
objectRepresentation:KvM},{jsonRepresentation:'{"playerResponse":{"responseContext":{"serviceTrackingParams":[{"service":"GFEEDBACK","params":[{"key":"kc","value":"66"},{"key":"cw","value":"st"},{"key":"zb","value":"xz"},{"key":"zl","value":"16"},{"key":"pf","value":"sy"}]},{"service":"bh","params":[{"key":"ip","value":"54"},{"key":"tb","value":"dv"},{"key":"pi","value":"pn"},{"key":"fg","value":"35"},{"key":"wm","value":"vo"}]},{"service":"fp","params":[{"key":"hw","value":"91"}]},{"service":"rk","params":[{"key":"pe","value":"sf"},{"key":"rv","value":"jn"},{"key":"aw","value":"pw"}]}],"maxAgeSeconds":87,"mainAppWebResponseContext":{"loggedOut":43,"trackingParam":"dd","datasyncId":"xp"},"webResponseContextExtensionData":{"hasDecorated":75}},"playabilityStatus":{"status":"by","playableInEmbed":2,"miniplayer":{"miniplayerRenderer":{"playbackMode":"tj"}},"offlineability":{"buttonRenderer":{"serviceEndpoint":{"clickTrackingParams":"pz","ypcGetOfflineUpsellEndpoint":{"params":"xm"}},"trackingParams":"pq"}},"contextParams":"lu"},"streamingData":{"expiresInSeconds":"53","formats":[{"itag":80,"url":"https://rr3---sn-n4v7sns7.googlevideo.com/videoplayback?expire=1697267654&source=youtube&requiressl=yes","mimeType":"video/webm; codecs=\\"vp9\\"","bitrate":88,"width":96,"height":65,"lastModified":"1665263132187531","contentLength":"17","quality":"rc","fps":8,"qualityLabel":"ab","projectionType":"by","averageBitrate":50,"audioQuality":"th","approxDurationMs":"86","audioSampleRate":"88","audioChannels":34},{"itag":95,"url":"hs","mimeType":"nm","bitrate":56,"width":13,"height":14,"lastModified":"10","quality":"fu","fps":54,"qualityLabel":"yj","projectionType":"wu","audioQuality":"tu","approxDurationMs":"51","audioSampleRate":"87","audioChannels":44}],"adaptiveFormats":[{"itag":50,"url":"fu","mimeType":"uz","bitrate":80,"width":80,"height":85,"initRange":{"start":"16","end":"71"},"indexRange":{"start":"1","end":"26"},"lastModified":"70","contentLength":"66","quality":"cx","fps":61,"qualityLabel":"xt","projectionType":"pe","averageBitrate":68,"approxDurationMs":"1"},{"itag":77,"url":"rj","mimeType":"lh","bitrate":16,"width":17,"height":47,"initRange":{"start":"51","end":"44"},"indexRange":{"start":"87","end":"61"},"lastModified":"13","contentLength":"21","quality":"ie","fps":23,"qualityLabel":"ig","projectionType":"bl","averageBitrate":16,"colorInfo":{"primaries":"et","transferCharacteristics":"zu","matrixCoefficients":"od"},"approxDurationMs":"59"},{"itag":7,"url":"fc","mimeType":"gr","bitrate":71,"width":11,"height":3,"initRange":{"start":"100","end":"7"},"indexRange":{"start":"36","end":"98"},"lastModified":"88","contentLength":"77","quality":"rb","fps":46,"qualityLabel":"gq","projectionType":"ld","averageBitrate":99,"colorInfo":{"primaries":"xd","transferCharacteristics":"uu","matrixCoefficients":"zc"},"approxDurationMs":"44"},{"itag":10,"url":"kl","mimeType":"wb","bitrate":51,"width":69,"height":3,"initRange":{"start":"92","end":"79"},"indexRange":{"start":"42","end":"72"},"lastModified":"99","contentLength":"6","quality":"ee","fps":40,"qualityLabel":"em","projectionType":"wz","averageBitrate":48,"approxDurationMs":"86"},{"itag":44,"url":"hp","mimeType":"kq","bitrate":84,"width":53,"height":22,"initRange":{"start":"48","end":"51"},"indexRange":{"start":"54","end":"44"},"lastModified":"25","contentLength":"47","quality":"xy","fps":11,"qualityLabel":"zl","projectionType":"za","averageBitrate":95,"colorInfo":{"primaries":"ot","transferCharacteristics":"av","matrixCoefficients":"ow"},"approxDurationMs":"85"},{"itag":20,"url":"di","mimeType":"nc","bitrate":15,"width":19,"height":92,"initRange":{"start":"82","end":"58"},"indexRange":{"start":"80","end":"37"},"lastModified":"46","contentLength":"40","quality":"wo","fps":44,"qualityLabel":"pt","projectionType":"bg","averageBitrate":3,"colorInfo":{"primaries":"wq","transferCharacteristics":"is","matrixCoefficients":"ou"},"approxDurationMs":"47"},{"itag":44,"url":"oe","mimeType":"mh","bitrate":37,"width":43,"height":24,"initRange":{"start":"29","end":"91"},"indexRange":{"start":"97","end":"97"},"lastModified":"52","contentLength":"43","quality":"cr","fps":44,"qualityLabel":"hc","projectionType":"cr","averageBitrate":12,"approxDurationMs":"97"},{"itag":32,"url":"gq","mimeType":"sh","bitrate":42,"width":32,"height":13,"initRange":{"start":"71","end":"87"},"indexRange":{"start":"70","end":"4"},"lastModified":"67","contentLength":"16","quality":"sb","fps":66,"qualityLabel":"mv","projectionType":"kk","averageBitrate":51,"colorInfo":{"primaries":"pk","transferCharacteristics":"ea","matrixCoefficients":"cq"},"approxDurationMs":"70"},{"itag":71,"url":"zt","mimeType":"bl","bitrate":12,"width":68,"height":12,"initRange":{"start":"63","end":"2"},"indexRange":{"start":"28","end":"68"},"lastModified":"33","contentLength":"0","quality":"dh","fps":6,"qualityLabel":"jv","projectionType":"sy","averageBitrate":75,"colorInfo":{"primaries":"us","transferCharacteristics":"ka","matrixCoefficients":"xw"},"approxDurationMs":"16"},{"itag":98,"url":"vl","mimeType":"lg","bitrate":88,"width":23,"height":83,"initRange":{"start":"49","end":"34"},"indexRange":{"start":"43","end":"90"},"lastModified":"84","contentLength":"77","quality":"xu","fps":50,"qualityLabel":"jz","projectionType":"om","averageBitrate":16,"highReplication":95,"approxDurationMs":"46"},{"itag":85,"url":"ri","mimeType":"dh","bitrate":77,"width":86,"height":54,"initRange":{"start":"40","end":"98"},"indexRange":{"start":"15","end":"85"},"lastModified":"25","contentLength":"53","quality":"rq","fps":62,"qualityLabel":"nx","projectionType":"wg","averageBitrate":35,"colorInfo":{"primaries":"oa","transferCharacteristics":"kb","matrixCoefficients":"kk"},"approxDurationMs":"26"},{"itag":10,"url":"zz","mimeType":"lq","bitrate":55,"width":89,"height":43,"initRange":{"start":"94","end":"98"},"indexRange":{"start":"73","end":"51"},"lastModified":"3","contentLength":"36","quality":"yo","fps":5,"qualityLabel":"we","projectionType":"ve","averageBitrate":83,"colorInfo":{"primaries":"yu","transferCharacteristics":"fu","matrixCoefficients":"ox"},"approxDurationMs":"11"},{"itag":62,"url":"hv","mimeType":"th","bitrate":76,"width":28,"height":79,"initRange":{"start":"97","end":"100"},"indexRange":{"start":"58","end":"63"},"lastModified":"53","contentLength":"22","quality":"ou","fps":7,"qualityLabel":"cm","projectionType":"xv","averageBitrate":35,"approxDurationMs":"98"},{"itag":91,"url":"vr","mimeType":"wo","bitrate":41,"width":4,"height":79,"initRange":{"start":"80","end":"83"},"indexRange":{"start":"14","end":"58"},"lastModified":"50","contentLength":"38","quality":"ic","fps":64,"qualityLabel":"sq","projectionType":"du","averageBitrate":61,"colorInfo":{"primaries":"ok","transferCharacteristics":"ud","matrixCoefficients":"ob"},"approxDurationMs":"73"},{"itag":48,"url":"lq","mimeType":"zl","bitrate":4,"width":16,"height":65,"initRange":{"start":"93","end":"50"},"indexRange":{"start":"52","end":"44"},"lastModified":"74","contentLength":"86","quality":"mi","fps":43,"qualityLabel":"rz","projectionType":"ji","averageBitrate":61,"colorInfo":{"primaries":"qo","transferCharacteristics":"fk","matrixCoefficients":"jy"},"approxDurationMs":"70"},{"itag":34,"url":"cr","mimeType":"la","bitrate":53,"width":29,"height":97,"initRange":{"start":"89","end":"45"},"indexRange":{"start":"93","end":"45"},"lastModified":"52","contentLength":"74","quality":"xn","fps":60,"qualityLabel":"xs","projectionType":"lf","averageBitrate":1,"approxDurationMs":"18"},{"itag":67,"url":"mr","mimeType":"cs","bitrate":79,"width":9,"height":85,"initRange":{"start":"56","end":"96"},"indexRange":{"start":"71","end":"84"},"lastModified":"78","contentLength":"80","quality":"ld","fps":2,"qualityLabel":"no","projectionType":"uq","averageBitrate":35,"colorInfo":{"primaries":"mj","transferCharacteristics":"ry","matrixCoefficients":"cc"},"approxDurationMs":"43"},{"itag":57,"url":"fi","mimeType":"to","bitrate":80,"width":81,"height":29,"initRange":{"start":"6","end":"96"},"indexRange":{"start":"73","end":"48"},"lastModified":"32","contentLength":"11","quality":"ck","fps":82,"qualityLabel":"fo","projectionType":"px","averageBitrate":95,"colorInfo":{"primaries":"az","transferCharacteristics":"mq","matrixCoefficients":"oc"},"approxDurationMs":"44"},{"itag":52,"url":"ea","mimeType":"xm","bitrate":18,"initRange":{"start":"15","end":"16"},"indexRange":{"start":"4","end":"33"},"lastModified":"65","contentLength":"67","quality":"es","projectionType":"mp","averageBitrate":52,"highReplication":82,"audioQuality":"za","approxDurationMs":"24","audioSampleRate":"1","audioChannels":92,"loudnessDb":0.9787435365879406},{"itag":37,"url":"kk","mimeType":"xg","bitrate":78,"initRange":{"start":"38","end":"94"},"indexRange":{"start":"27","end":"17"},"lastModified":"61","contentLength":"2","quality":"nh","projectionType":"ar","averageBitrate":69,"audioQuality":"la","approxDurationMs":"95","audioSampleRate":"66","audioChannels":50,"loudnessDb":0.6461265012758731},{"itag":45,"url":"oc","mimeType":"nm","bitrate":12,"initRange":{"start":"21","end":"45"},"indexRange":{"start":"21","end":"13"},"lastModified":"45","contentLength":"85","quality":"vs","projectionType":"xp","averageBitrate":32,"audioQuality":"tv","approxDurationMs":"1","audioSampleRate":"99","audioChannels":42,"loudnessDb":0.39295968942278037},{"itag":37,"url":"zf","mimeType":"be","bitrate":29,"initRange":{"start":"27","end":"87"},"indexRange":{"start":"81","end":"20"},"lastModified":"6","contentLength":"33","quality":"pe","projectionType":"pb","averageBitrate":100,"audioQuality":"zi","approxDurationMs":"70","audioSampleRate":"32","audioChannels":68,"loudnessDb":0.2781731101164002}]},"playerAds":[{"playerLegacyDesktopWatchAdsRenderer":{"playerAdParams":{"showContentThumbnail":true,"enabledEngageTypes":"3,6,4,5"},"gutParams":{"tag":"\\\\4061\\\\ytpwmpu"},"showCompanion":true,"showInstream":true,"useGut":true}}],"playbackTracking":{"videostatsPlaybackUrl":{"baseUrl":"bj"},"videostatsDelayplayUrl":{"baseUrl":"vx"},"videostatsWatchtimeUrl":{"baseUrl":"px"},"ptrackingUrl":{"baseUrl":"tg"},"qoeUrl":{"baseUrl":"wx"},"atrUrl":{"baseUrl":"xz","elapsedMediaTimeSeconds":45},"videostatsScheduledFlushWalltimeSeconds":[99,32,39],"videostatsDefaultFlushIntervalSeconds":3,"youtubeRemarketingUrl":{"baseUrl":"mb","elapsedMediaTimeSeconds":63},"googleRemarketingUrl":{"baseUrl":"yn","elapsedMediaTimeSeconds":83}},"captions":{"playerCaptionsTracklistRenderer":{"captionTracks":[{"baseUrl":"ew","name":{"simpleText":"ez"},"vssId":"fj","languageCode":"wd","kind":"ez","isTranslatable":21}],"audioTracks":[{"captionTrackIndices":[87]}],"translationLanguages":[{"languageCode":"xu","languageName":{"simpleText":"fw"}},{"languageCode":"zl","languageName":{"simpleText":"xc"}},{"languageCode":"jr","languageName":{"simpleText":"md"}},{"languageCode":"sc","languageName":{"simpleText":"wf"}},{"languageCode":"nj","languageName":{"simpleText":"xn"}},{"languageCode":"of","languageName":{"simpleText":"av"}},{"languageCode":"tv","languageName":{"simpleText":"ok"}},{"languageCode":"nu","languageName":{"simpleText":"ry"}},{"languageCode":"zy","languageName":{"simpleText":"nb"}},{"languageCode":"pt","languageName":{"simpleText":"eq"}},{"languageCode":"vr","languageName":{"simpleText":"cc"}},{"languageCode":"wh","languageName":{"simpleText":"hd"}},{"languageCode":"hp","languageName":{"simpleText":"ds"}},{"languageCode":"ka","languageName":{"simpleText":"up"}},{"languageCode":"sw","languageName":{"simpleText":"zp"}},{"languageCode":"rh","languageName":{"simpleText":"eq"}},{"languageCode":"bq","languageName":{"simpleText":"at"}},{"languageCode":"hu","languageName":{"simpleText":"fg"}},{"languageCode":"ai","languageName":{"simpleText":"iy"}},{"languageCode":"rj","languageName":{"simpleText":"oz"}},{"languageCode":"sq","languageName":{"simpleText":"fe"}},{"languageCode":"tn","languageName":{"simpleText":"vk"}},{"languageCode":"jr","languageName":{"simpleText":"jg"}},{"languageCode":"vc","languageName":{"simpleText":"hv"}},{"languageCode":"yn","languageName":{"simpleText":"ky"}},{"languageCode":"pa","languageName":{"simpleText":"rw"}},{"languageCode":"lr","languageName":{"simpleText":"kv"}},{"languageCode":"ud","languageName":{"simpleText":"fn"}},{"languageCode":"hq","languageName":{"simpleText":"io"}},{"languageCode":"rp","languageName":{"simpleText":"qx"}},{"languageCode":"xf","languageName":{"simpleText":"sm"}},{"languageCode":"fs","languageName":{"simpleText":"ty"}},{"languageCode":"so","languageName":{"simpleText":"xl"}},{"languageCode":"fk","languageName":{"simpleText":"ff"}},{"languageCode":"fw","languageName":{"simpleText":"wz"}},{"languageCode":"rn","languageName":{"simpleText":"zw"}},{"languageCode":"wq","languageName":{"simpleText":"yt"}},{"languageCode":"oh","languageName":{"simpleText":"oo"}},{"languageCode":"ts","languageName":{"simpleText":"jt"}},{"languageCode":"xy","languageName":{"simpleText":"ga"}},{"languageCode":"jy","languageName":{"simpleText":"sx"}},{"languageCode":"lw","languageName":{"simpleText":"cf"}},{"languageCode":"fc","languageName":{"simpleText":"qr"}},{"languageCode":"ji","languageName":{"simpleText":"cc"}},{"languageCode":"qs","languageName":{"simpleText":"pi"}},{"languageCode":"vx","languageName":{"simpleText":"hk"}},{"languageCode":"jt","languageName":{"simpleText":"eh"}},{"languageCode":"fb","languageName":{"simpleText":"iu"}},{"languageCode":"mf","languageName":{"simpleText":"st"}},{"languageCode":"en","languageName":{"simpleText":"vr"}},{"languageCode":"go","languageName":{"simpleText":"kp"}},{"languageCode":"sc","languageName":{"simpleText":"rk"}},{"languageCode":"bx","languageName":{"simpleText":"ci"}},{"languageCode":"pu","languageName":{"simpleText":"qj"}},{"languageCode":"fa","languageName":{"simpleText":"ht"}},{"languageCode":"bw","languageName":{"simpleText":"af"}},{"languageCode":"rr","languageName":{"simpleText":"jt"}},{"languageCode":"ef","languageName":{"simpleText":"yy"}},{"languageCode":"bn","languageName":{"simpleText":"wu"}},{"languageCode":"ov","languageName":{"simpleText":"ae"}},{"languageCode":"sm","languageName":{"simpleText":"hi"}},{"languageCode":"tq","languageName":{"simpleText":"ie"}},{"languageCode":"fn","languageName":{"simpleText":"et"}},{"languageCode":"jw","languageName":{"simpleText":"bu"}},{"languageCode":"iz","languageName":{"simpleText":"gc"}},{"languageCode":"bk","languageName":{"simpleText":"jh"}},{"languageCode":"vw","languageName":{"simpleText":"fq"}},{"languageCode":"xt","languageName":{"simpleText":"or"}},{"languageCode":"kq","languageName":{"simpleText":"ch"}},{"languageCode":"pa","languageName":{"simpleText":"cs"}},{"languageCode":"ef","languageName":{"simpleText":"eq"}},{"languageCode":"mk","languageName":{"simpleText":"ig"}},{"languageCode":"me","languageName":{"simpleText":"pv"}},{"languageCode":"ll","languageName":{"simpleText":"nz"}},{"languageCode":"yd","languageName":{"simpleText":"pu"}},{"languageCode":"dj","languageName":{"simpleText":"vx"}},{"languageCode":"xc","languageName":{"simpleText":"ca"}},{"languageCode":"wb","languageName":{"simpleText":"il"}},{"languageCode":"ww","languageName":{"simpleText":"jf"}},{"languageCode":"xi","languageName":{"simpleText":"ba"}},{"languageCode":"ae","languageName":{"simpleText":"hx"}},{"languageCode":"uj","languageName":{"simpleText":"xu"}},{"languageCode":"hq","languageName":{"simpleText":"gp"}},{"languageCode":"we","languageName":{"simpleText":"pk"}},{"languageCode":"kt","languageName":{"simpleText":"ek"}},{"languageCode":"hy","languageName":{"simpleText":"ab"}},{"languageCode":"hm","languageName":{"simpleText":"nu"}},{"languageCode":"uw","languageName":{"simpleText":"rx"}},{"languageCode":"or","languageName":{"simpleText":"nf"}},{"languageCode":"dh","languageName":{"simpleText":"zn"}},{"languageCode":"kb","languageName":{"simpleText":"js"}},{"languageCode":"vg","languageName":{"simpleText":"xe"}},{"languageCode":"dl","languageName":{"simpleText":"so"}},{"languageCode":"lz","languageName":{"simpleText":"hb"}},{"languageCode":"ny","languageName":{"simpleText":"xr"}},{"languageCode":"ag","languageName":{"simpleText":"us"}},{"languageCode":"zr","languageName":{"simpleText":"ae"}},{"languageCode":"yq","languageName":{"simpleText":"yc"}},{"languageCode":"up","languageName":{"simpleText":"dc"}},{"languageCode":"zn","languageName":{"simpleText":"jw"}},{"languageCode":"uh","languageName":{"simpleText":"ms"}},{"languageCode":"mt","languageName":{"simpleText":"vf"}},{"languageCode":"lt","languageName":{"simpleText":"ln"}},{"languageCode":"vf","languageName":{"simpleText":"rd"}},{"languageCode":"my","languageName":{"simpleText":"rk"}},{"languageCode":"ei","languageName":{"simpleText":"ul"}},{"languageCode":"dj","languageName":{"simpleText":"cz"}},{"languageCode":"kb","languageName":{"simpleText":"hp"}},{"languageCode":"jj","languageName":{"simpleText":"zf"}},{"languageCode":"ew","languageName":{"simpleText":"ff"}},{"languageCode":"jo","languageName":{"simpleText":"iz"}},{"languageCode":"ja","languageName":{"simpleText":"uz"}},{"languageCode":"yd","languageName":{"simpleText":"or"}},{"languageCode":"tl","languageName":{"simpleText":"tw"}},{"languageCode":"mw","languageName":{"simpleText":"th"}},{"languageCode":"pq","languageName":{"simpleText":"zp"}},{"languageCode":"pq","languageName":{"simpleText":"pk"}},{"languageCode":"ef","languageName":{"simpleText":"fj"}},{"languageCode":"qq","languageName":{"simpleText":"vu"}},{"languageCode":"pj","languageName":{"simpleText":"kp"}},{"languageCode":"ab","languageName":{"simpleText":"xw"}},{"languageCode":"re","languageName":{"simpleText":"ln"}},{"languageCode":"ht","languageName":{"simpleText":"wo"}},{"languageCode":"ju","languageName":{"simpleText":"wb"}},{"languageCode":"yq","languageName":{"simpleText":"xv"}}],"defaultAudioTrackIndex":70}},"videoDetails":{"videoId":"ux","title":"jb","lengthSeconds":"90","keywords":["th","ts","yg","gy","ih","iq","zj"],"channelId":"pg","isOwnerViewing":6,"shortDescription":"ts","isCrawlable":62,"thumbnail":{"thumbnails":[{"url":"vx","width":8,"height":58},{"url":"bp","width":44,"height":79},{"url":"oh","width":47,"height":66},{"url":"hm","width":34,"height":55},{"url":"vr","width":0,"height":20}]},"allowRatings":24,"viewCount":"49","author":"xr","isPrivate":70,"isUnpluggedCorpus":66,"isLiveContent":99},"annotations":[{"playerAnnotationsExpandedRenderer":{"featuredChannel":{"startTimeMs":"96","endTimeMs":"46","watermark":{"thumbnails":[{"url":"li","width":91,"height":28}]},"trackingParams":"an","navigationEndpoint":{"clickTrackingParams":"mg","commandMetadata":{"webCommandMetadata":{"url":"rd","webPageType":"nc","rootVe":69,"apiUrl":"/youtubei/v1/browse"}},"browseEndpoint":{"browseId":"qg"}},"channelName":"ei","subscribeButton":{"subscribeButtonRenderer":{"buttonText":{"runs":[{"text":"pz"}]},"subscribed":44,"enabled":33,"type":"ue","channelId":"ki","showPreferences":71,"subscribedButtonText":{"runs":[{"text":"lk"}]},"unsubscribedButtonText":{"runs":[{"text":"jn"}]},"trackingParams":"oj","unsubscribeButtonText":{"runs":[{"text":"ad"}]},"serviceEndpoints":[{"clickTrackingParams":"wm","commandMetadata":{"webCommandMetadata":{"sendPost":4,"apiUrl":"ky"}},"subscribeEndpoint":{"channelIds":["zt"],"params":"at"}},{"clickTrackingParams":"jg","commandMetadata":{"webCommandMetadata":{"sendPost":28}},"signalServiceEndpoint":{"signal":"ok","actions":[{"clickTrackingParams":"lt","openPopupAction":{"popup":{"confirmDialogRenderer":{"trackingParams":"po","dialogMessages":[{"runs":[{"text":"ou"},{"text":"jt"},{"text":"zz"}]}],"confirmButton":{"buttonRenderer":{"style":"mm","size":"oi","isDisabled":43,"text":{"runs":[{"text":"kc"}]},"serviceEndpoint":{"clickTrackingParams":"gk","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"kc"}},"unsubscribeEndpoint":{"channelIds":["cm"],"params":"ar"}},"accessibility":{"label":"iy"},"trackingParams":"gs"}},"cancelButton":{"buttonRenderer":{"style":"jb","size":"pe","isDisabled":69,"text":{"runs":[{"text":"uv"}]},"accessibility":{"label":"qu"},"trackingParams":"pe"}},"primaryIsCancel":48}},"popupType":"ma"}}]}}],"subscribeAccessibility":{"accessibilityData":{"label":"vh"}},"unsubscribeAccessibility":{"accessibilityData":{"label":"lg"}},"signInEndpoint":{"clickTrackingParams":"eu","commandMetadata":{"webCommandMetadata":{"url":"na"}}}}}},"allowSwipeDismiss":55,"annotationId":"jd"}}],"playerConfig":{"audioConfig":{"loudnessDb":0.9620880668073215,"perceptualLoudnessDb":0.541474004793957,"enablePerFormatLoudness":31},"streamSelectionConfig":{"maxBitrate":"61"},"mediaCommonConfig":{"dynamicReadaheadConfig":{"maxReadAheadMediaTimeMs":100,"minReadAheadMediaTimeMs":21,"readAheadGrowthRateMs":29}},"webPlayerConfig":{"useCobaltTvosDash":55,"webPlayerActionsPorting":{"getSharePanelCommand":{"clickTrackingParams":"of","commandMetadata":{"webCommandMetadata":{"sendPost":31,"apiUrl":"xl"}},"webPlayerShareEntityServiceEndpoint":{"serializedShareEntity":"tr"}},"subscribeCommand":{"clickTrackingParams":"fs","commandMetadata":{"webCommandMetadata":{"sendPost":13,"apiUrl":"xp"}},"subscribeEndpoint":{"channelIds":["qs"],"params":"oa"}},"unsubscribeCommand":{"clickTrackingParams":"ls","commandMetadata":{"webCommandMetadata":{"sendPost":91,"apiUrl":"wc"}},"unsubscribeEndpoint":{"channelIds":["fo"],"params":"vt"}},"addToWatchLaterCommand":{"clickTrackingParams":"ua","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"iu"}},"playlistEditEndpoint":{"playlistId":"rv","actions":[{"addedVideoId":"iw","action":"rd"}]}},"removeFromWatchLaterCommand":{"clickTrackingParams":"un","commandMetadata":{"webCommandMetadata":{"sendPost":20,"apiUrl":"bl"}},"playlistEditEndpoint":{"playlistId":"zg","actions":[{"action":"ya","removedVideoId":"dk"}]}}},"gatewayExperimentGroup":"vb"}},"storyboards":{"playerStoryboardSpecRenderer":{"spec":"aj","recommendedLevel":87}},"microformat":{"playerMicroformatRenderer":{"thumbnail":{"thumbnails":[{"url":"mm","width":57,"height":94}]},"embed":{"iframeUrl":"bd","width":51,"height":73},"title":{"simpleText":"sg"},"description":{"simpleText":"yv"},"lengthSeconds":"18","ownerProfileUrl":"bg","externalChannelId":"eg","isFamilySafe":88,"availableCountries":["hn","sd","lt","tx","nw","mq","iz","aj","vi","xa","ec","iv","rj","vb","ro","po","mv","mx","cn","ld","tn","ay","gv","bs","vf","da","ss","km","uo","mg","wv","md","lo","nc","vh","li","jh","lj","qq","ci","ob","zy","pu","bl","jm","ge","tt","ov","ue","vp","ka","nh","uc","gb","rs","gu","hm","uv","nq","ga","qu","hr","pj","zq","rh","nn","yv","or","zg","ai","qj","cv","vg","hr","zm","al","mj","fz","yx","st","tt","ih","vm","wq","gx","wi","ys","ug","vb","uh","rf","ry","ba","xu","ce","eq","bx","he","jm","ie","nb","cd","qz","no","yq","qe","jy","wd","pm","nb","hk","em","im","iv","ld","gz","fe","ut","md","gw","sf","yz","yp","xr","gm","uo","kg","yo","wv","da","wt","ry","it","gz","mm","ho","mf","lq","tu","im","lu","gm","pa","ny","gu","ds","yx","yh","jk","qb","jv","mp","bi","nr","mc","bg","ym","zt","sh","kd","gj","dp","qw","eh","no","pj","nq","dy","gt","cm","pg","ce","jt","xv","tf","ue","ke","hs","xh","tc","ad","yg","uh","cd","zc","rj","kq","sp","vv","xt","bo","am","kg","kx","xb","fr","il","qi","ap","pe","tg","im","cs","vy","zu","cq","bu","og","tf","ze","zj","um","vd","ot","al","zl","um","jv","ss","md","xm","nv","id","es","jf","as","zb","ms","uv","jh","xz","em","uv","bk","zx","wp","ay","ub","pa","rf","yi","zm","em","pu","xs"],"isUnlisted":24,"hasYpcMetadata":38,"viewCount":"6","category":"qh","publishDate":"eb","ownerChannelName":"mf","uploadDate":"ax"}},"cards":{"cardCollectionRenderer":{"cards":[{"cardRenderer":{"teaser":{"simpleCardTeaserRenderer":{"message":{"simpleText":"ha"},"trackingParams":"ra","prominent":9,"logVisibilityUpdates":88,"onTapCommand":{"clickTrackingParams":"dy","changeEngagementPanelVisibilityAction":{"targetId":"qc","visibility":"mh"}}}},"cueRanges":[{"startCardActiveMs":"41","endCardActiveMs":"81","teaserDurationMs":"31","iconAfterTeaserMs":"65"}],"trackingParams":"sn"}}],"headerText":{"simpleText":"mi"},"icon":{"infoCardIconRenderer":{"trackingParams":"tq"}},"closeButton":{"infoCardIconRenderer":{"trackingParams":"nz"}},"trackingParams":"ss","allowTeaserDismiss":55,"logIconVisibilityUpdates":49}},"trackingParams":"lt","attestation":{"playerAttestationRenderer":{"challenge":"rg","botguardData":{"program":"vk","interpreterSafeUrl":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"ap"},"serverEnvironment":83}}},"videoQualityPromoSupportedRenderers":{"videoQualityPromoRenderer":{"triggerCriteria":{"connectionWhitelist":["vs"],"joinLatencySeconds":85,"rebufferTimeSeconds":89,"watchTimeWindowSeconds":21,"refractorySeconds":41},"text":{"runs":[{"text":"it"},{"text":"qt","bold":60}]},"endpoint":{"clickTrackingParams":"lw","commandMetadata":{"webCommandMetadata":{"url":"ih","webPageType":"xa","rootVe":73}},"urlEndpoint":{"url":"ms","target":"tj"}},"trackingParams":"vd","snackbar":{"notificationActionRenderer":{"responseText":{"runs":[{"text":"pp"}]},"actionButton":{"buttonRenderer":{"text":{"runs":[{"text":"yw"}]},"navigationEndpoint":{"clickTrackingParams":"sq","commandMetadata":{"webCommandMetadata":{"url":"wp","webPageType":"zn","rootVe":21}},"urlEndpoint":{"url":"ju","target":"dy"}},"trackingParams":"zj"}},"trackingParams":"nh"}}}},"messages":[{"mealbarPromoRenderer":{"icon":{"thumbnails":[{"url":"ek","width":71,"height":69}]},"messageTexts":[{"runs":[{"text":"ew"}]}],"actionButton":{"buttonRenderer":{"style":"gz","size":"tz","text":{"runs":[{"text":"ga"}]},"trackingParams":"qr","command":{"clickTrackingParams":"wk","commandExecutorCommand":{"commands":[{"clickTrackingParams":"dw","commandMetadata":{"webCommandMetadata":{"url":"po","webPageType":"fl","rootVe":70,"apiUrl":"ot"}},"browseEndpoint":{"browseId":"pl","params":"zo"}},{"commandMetadata":{"webCommandMetadata":{"sendPost":10,"apiUrl":"rv"}},"feedbackEndpoint":{"feedbackToken":"xi","uiActions":{"hideEnclosingContainer":25}}}]}}}},"dismissButton":{"buttonRenderer":{"style":"ol","size":"og","text":{"runs":[{"text":"yv"}]},"trackingParams":"ch","command":{"clickTrackingParams":"uu","commandExecutorCommand":{"commands":[{"clickTrackingParams":"ig","commandMetadata":{"webCommandMetadata":{"sendPost":71,"apiUrl":"en"}},"feedbackEndpoint":{"feedbackToken":"wh","uiActions":{"hideEnclosingContainer":45}}}]}}}},"triggerCondition":"pb","style":"uq","trackingParams":"rp","impressionEndpoints":[{"clickTrackingParams":"xb","commandMetadata":{"webCommandMetadata":{"sendPost":73,"apiUrl":"wl"}},"feedbackEndpoint":{"feedbackToken":"wf","uiActions":{"hideEnclosingContainer":95}}}],"isVisible":17,"messageTitle":{"runs":[{"text":"ir"}]},"enableSharedFeatureForImpressionHandling":21}}],"adPlacements":[{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"7","offsetEndMilliseconds":"39"},"hideCueRangeMarker":true}},"renderer":{"linearAdSequenceRenderer":{"linearAds":[{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"https://i.ytimg.com/vi/AERLXaPKn_U/mqdefault.jpg","width":46,"height":25}]},"trackingParams":"ye"},"trackingParams":"dq","templatedCountdown":{"templatedAdText":{"text":"ps","isTemplated":82,"trackingParams":"cc"}},"durationMilliseconds":44}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"xz","isTemplated":30,"trackingParams":"um"},"trackingParams":"ge"}},"trackingParams":"zg","skipOffsetMilliseconds":88}},"trackingParams":"qd","visitAdvertiserRenderer":{"buttonRenderer":{"style":"fv","text":{"simpleText":"on"},"icon":{"iconType":"vw"},"navigationEndpoint":{"clickTrackingParams":"mk","commandMetadata":{"webCommandMetadata":{"url":"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C3OQpfbUyZYWKL_Ken8RMFbClwAyRha6dc6fw7oP7EbaQHxABIABgyfb4hsijoBmCARdjYS1wdWItNjIxOTgxMTc0NzA0OTM3MYgBAaAB59zF2gOoAwSqBLMDT9ATfUTpaHDVXptzXB0Bqtu5dBV_jsP-c6MPkZYSL8_SrzCV3_f4sBsAHAi3Utb4zaJFaF_HvQdtBwss4wAA_skHdbFnpl5-EMNyyzlRw-Cndshj8CGQYwd1ZXhxlU46cvUuzxBe4SvQuo5EZgRv_zIYfKVpOj81ol3soC-FTzrjxhngpg6E1SEy8MZ8S5ykzm_m-YEKix3QCVLlSpEedBunRo295OkIwlFwaIQk8cLxsmnYhxdD_0zLFeTvwe5Q5tNO9mqkUZ7rAyzCTey_m5MZVo67-fDtV0elSQR79C9ErFiOQ5SaPsQgzk7zE3jxPNZYzV0zKOQ245eF3ZWxcGIrFA5NPIvvBwOl60ABjpEgQjQ4y2LpZnygmW_9ikThHx_iC4RujeV7iSAG5Fvv28wptAmCq7jMu5tWztpr-nl-Y0Iz7dA2FeeEOcd4ddn596NriGGT8AjZAXhtD7yJ8tRBEO3P48giFZj81WrpYHUvNhfx24PguTj-IBSpw2uQbemku11WDOxo7SI20n_fPtLcaEXB3YUajshnd5LoR4NlONEqC0f_uYwLaHt5X4Fw1hd8oAZUgAeBo7oliAcBkAcCqAf5sbECqAfnnbECqAfonbECqAfqt7ECqAentbMVqAfvtbECqAfwtbECqAeCqrECqAePOgHqNIbqAe2B6gHpJqxAqgHkZ-xAqgHsJuxAqgH36GxAqgHrrGxAqgHpqqxAqgH_bKxAqgHgcYbqAf8r7ECqAerxRuoB5zcG6gH5p2xAqgHyJ-xAqgHt6GxAqgH66WxAqgHyqmxApIIC242UFJubjBtcFpjqAgB0ggcCIAREAIYWjIDgoAEOgeP0ICAgIAESNmg0jVQFPIIH2NhLXl0LWhvc3QtcHViLTE4MDAxMjAxBZAyMzA2NTWaCRtodHRwczovL2xhdW5pdGVjLm5ldC9lY29tYTKxCS-fhg771OyRyAkYyAmPAcgJkAGYCwGhC8vk5LIcunUAugtXCAEQARgFIAEoATABQAFIAWAAaABwAogBAJgBAaIBLwoYIAPauAQSMhA6DgoMKDBIs5vbluYKmBkBEAEYACAAWABgAHAA0AEBqAIFwAIC2AEBgAIBiAIG0AsS2gw8CgoQ8Pj1wrn_sa1tEgIBAxoqCAESGf6BmeYY2b35qxjevPmrGJO89uoDvoSxpgPO7YnF2kwgmtyo08MEmg0BEqoNAlVTuBP___________8BsBQBwBXJgIBA0BUB2BUBkBYBmBYB4hYCCAGAFwGKFxoIAxgBIAEoATABOAFAAUgBUAFYAWACaAFwAaAXAakXG4oLaa1eRvW6FwQoADAA&ase=2&num=1&cid=CAASD-D4c9DOhTCuXm4CeUayPw&ad_cpn=%5BAD_CPN%5D&sig=AOD64_1U5dvH2jbnEq_3j0LlY381EiWpog&ms=[CLICK_MS]&adurl=https://garlo.com/enapa2%3Fgc_id%3D20599670093&label=video_click_to_advertiser_site&ctype=110","webPageType":"ry","rootVe":62}},"urlEndpoint":{"url":"lq","target":"wt"}},"trackingParams":"mh"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"kw","isTemplated":93,"trackingParams":"jg"},"trackingParams":"at"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"rl","isTemplated":73,"trackingParams":"le"}},"trackingParams":"tr"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"le","size":"nb","isDisabled":41,"serviceEndpoint":{"clickTrackingParams":"jt","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"as"},"trackingParams":"vy"}},"popupType":"xn"}},"icon":{"iconType":"vl"},"trackingParams":"lm","accessibilityData":{"accessibilityData":{"label":"qi"}}}},"hoverText":{"simpleText":"zk"},"trackingParams":"qa"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"pv"}]},"trackingParams":"jo"},"headline":{"text":"qx","isTemplated":10,"trackingParams":"um"},"description":{"text":"mf","trackingParams":"fe"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"kq"},"navigationEndpoint":{"clickTrackingParams":"cm","commandMetadata":{"webCommandMetadata":{"url":"wa","webPageType":"nq","rootVe":69}},"urlEndpoint":{"url":"ln","target":"nd"}},"trackingParams":"no"}},"startMs":45,"trackingParams":"ge"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"xd"},"elementId":"tc","inPlayerSlotId":"gg","inPlayerLayoutId":"cm"}},"trackingParams":"uy","layoutId":"ff","associatedPlayerBytesLayoutId":"dy"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"gv"}]},"trackingParams":"at"},"headline":{"text":"ow","isTemplated":66,"trackingParams":"za"},"description":{"text":"ds","isTemplated":95,"trackingParams":"fc"},"actionButton":{"buttonRenderer":{"style":"ys","text":{"simpleText":"aq"},"navigationEndpoint":{"clickTrackingParams":"vu","commandMetadata":{"webCommandMetadata":{"url":"zn","webPageType":"jv","rootVe":38}},"urlEndpoint":{"url":"df","target":"xe"}},"trackingParams":"za"}},"durationMilliseconds":44,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"xg"}},"navigationEndpoint":{"clickTrackingParams":"vg","loggingUrls":[{"baseUrl":"bc"}],"commandMetadata":{"webCommandMetadata":{"url":"sn","webPageType":"vb","rootVe":34}},"urlEndpoint":{"url":"ex","target":"nb"}},"trackingParams":"iw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"cm"}]},"trackingParams":"br"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"dj","commandExecutorCommand":{"commands":[{"clickTrackingParams":"li","loggingUrls":[{"baseUrl":"wa"}],"pingingEndpoint":{"hack":0}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"jg","isTemplated":95,"trackingParams":"by"},"trackingParams":"kl"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"kt"},"layoutId":"cv","inPlayerSlotId":"qt","inPlayerLayoutId":"yy","associatedPlayerBytesLayoutId":"dx"}},{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"pz","width":32,"height":43}]},"trackingParams":"iz"},"trackingParams":"yo","templatedCountdown":{"templatedAdText":{"text":"we","isTemplated":91,"trackingParams":"si"}},"durationMilliseconds":10}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"bp","isTemplated":93,"trackingParams":"mo"},"trackingParams":"cp"}},"trackingParams":"qr","skipOffsetMilliseconds":60}},"trackingParams":"zf","visitAdvertiserRenderer":{"buttonRenderer":{"style":"ya","text":{"simpleText":"fv"},"icon":{"iconType":"bx"},"navigationEndpoint":{"clickTrackingParams":"bw","commandMetadata":{"webCommandMetadata":{"url":"ht","webPageType":"gv","rootVe":14}},"urlEndpoint":{"url":"wi","target":"te"}},"trackingParams":"gr"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"ox","isTemplated":66,"trackingParams":"td"},"trackingParams":"ng"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"zu","isTemplated":15,"trackingParams":"py"}},"trackingParams":"hb"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"vn","size":"cw","isDisabled":56,"serviceEndpoint":{"clickTrackingParams":"jh","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"zx"},"trackingParams":"yl"}},"popupType":"tw"}},"icon":{"iconType":"ar"},"trackingParams":"vi","accessibilityData":{"accessibilityData":{"label":"hy"}}}},"hoverText":{"simpleText":"ap"},"trackingParams":"pp"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"ol"}]},"trackingParams":"kz"},"headline":{"text":"wa","isTemplated":43,"trackingParams":"yb"},"description":{"text":"cl","trackingParams":"aq"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"xg"},"navigationEndpoint":{"clickTrackingParams":"wp","commandMetadata":{"webCommandMetadata":{"url":"uh","webPageType":"bs","rootVe":44}},"urlEndpoint":{"url":"xq","target":"fi"}},"trackingParams":"fo"}},"startMs":5,"trackingParams":"kh"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"ir"},"elementId":"mp","inPlayerSlotId":"fh","inPlayerLayoutId":"bh"}},"trackingParams":"ao","layoutId":"gc","associatedPlayerBytesLayoutId":"up"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"wj"}]},"trackingParams":"zr"},"headline":{"text":"rq","isTemplated":82,"trackingParams":"gr"},"description":{"text":"fj","isTemplated":57,"trackingParams":"li"},"actionButton":{"buttonRenderer":{"style":"mu","text":{"simpleText":"cg"},"navigationEndpoint":{"clickTrackingParams":"eb","commandMetadata":{"webCommandMetadata":{"url":"vn","webPageType":"nw","rootVe":96}},"urlEndpoint":{"url":"bs","target":"dr"}},"trackingParams":"iq"}},"durationMilliseconds":39,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"mt"}},"navigationEndpoint":{"clickTrackingParams":"uz","loggingUrls":[{"baseUrl":"rn"}],"commandMetadata":{"webCommandMetadata":{"url":"cu","webPageType":"qs","rootVe":26}},"urlEndpoint":{"url":"ty","target":"he"}},"trackingParams":"bw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"pd"}]},"trackingParams":"wm"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"io","commandExecutorCommand":{"commands":[{"clickTrackingParams":"hd","loggingUrls":[{"baseUrl":"hz"}],"pingingEndpoint":{"hack":81}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"db","isTemplated":42,"trackingParams":"ga"},"trackingParams":"pa"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"bt"},"layoutId":"ec","inPlayerSlotId":"nl","inPlayerLayoutId":"qh","associatedPlayerBytesLayoutId":"qe"}}]}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"rj"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"zf","adTimeOffset":{"offsetStartMilliseconds":"63","offsetEndMilliseconds":"83"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"59","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_START","adTimeOffset":{"offsetStartMilliseconds":"330100","offsetEndMilliseconds":"594666"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"0","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"65","offsetEndMilliseconds":"30"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"51","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wg"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"56","offsetEndMilliseconds":"86"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"25","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nh"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_END","adTimeOffset":{"offsetStartMilliseconds":"25","offsetEndMilliseconds":"13"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"32","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ti"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"47","offsetEndMilliseconds":"84"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"10","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"go"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"14","offsetEndMilliseconds":"87"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"79","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"34","offsetEndMilliseconds":"12"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"27","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"fp"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"66","offsetEndMilliseconds":"35"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"98","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"cn"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"59","offsetEndMilliseconds":"8"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"26","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wz"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"84","offsetEndMilliseconds":"90"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"92","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nl"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"50","offsetEndMilliseconds":"67"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"96","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ov"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"13","offsetEndMilliseconds":"2"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"52","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"by"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"73","offsetEndMilliseconds":"64"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"67","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"uc"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"10","offsetEndMilliseconds":"zo"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"22","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"en"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_SELF_START"}},"renderer":{"actionCompanionAdRenderer":{"headline":{"text":"eg","isTemplated":93,"trackingParams":"it"},"description":{"text":"ux","isTemplated":43,"trackingParams":"sj"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"de"},"navigationEndpoint":{"clickTrackingParams":"ex","commandMetadata":{"webCommandMetadata":{"url":"ue","webPageType":"ow","rootVe":77}},"urlEndpoint":{"url":"yh","target":"pg"}},"trackingParams":"xf"}},"iconImage":{"thumbnail":{"thumbnails":[{"url":"te","width":19,"height":23}]},"trackingParams":"lv"},"bannerImage":{"thumbnail":{"thumbnails":[{"url":"gj","width":38,"height":67}]},"trackingParams":"ow"},"navigationEndpoint":{"clickTrackingParams":"um","commandMetadata":{"webCommandMetadata":{"url":"fq","webPageType":"fd","rootVe":61}},"urlEndpoint":{"url":"gi","target":"tq"}},"trackingParams":"ie","adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"ng","size":"xv","isDisabled":53,"icon":{"iconType":"bq"},"navigationEndpoint":{"clickTrackingParams":"yl","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"po"},"trackingParams":"hi"}},"popupType":"sb"}},"trackingParams":"ho","accessibilityData":{"accessibilityData":{"label":"kl"}}}},"hoverText":{"simpleText":"xd"},"trackingParams":"dv"}},"adVideoId":"je","impressionPings":[{"baseUrl":"xj"}],"adLayoutLoggingData":{"serializedAdServingDataEntry":"dt"},"associatedCompositePlayerBytesLayoutId":"te"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"vs"}}}],"adSlots":[{"adSlotRenderer":{"adSlotMetadata":{"slotId":"1234","slotType":"SLOT_TYPE_PLAYER_BYTES","adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ob"},"triggerEvent":"SLOT_TRIGGER_EVENT_BEFORE_CONTENT"},"fulfillmentContent":{"fulfilledLayout":{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"ot","layoutType":"xg","adLayoutLoggingData":{"serializedAdServingDataEntry":"yk"}},"renderingContent":{"playerBytesSequentialLayoutRenderer":{"sequentialLayouts":[{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"je","layoutType":"ww","adLayoutLoggingData":{"serializedAdServingDataEntry":"ve"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":94,"pings":{"impressionPings":[{"baseUrl":"pl"},{"baseUrl":"zs"}],"errorPings":[{"baseUrl":"hh"}],"mutePings":[{"baseUrl":"qh"}],"unmutePings":[{"baseUrl":"ey"}],"pausePings":[{"baseUrl":"pz"}],"rewindPings":[{"baseUrl":"bh"}],"resumePings":[{"baseUrl":"mw"}],"skipPings":[{"baseUrl":"si"}],"closePings":[{"baseUrl":"oh"}],"progressPings":[{"baseUrl":"ly","offsetMilliseconds":1},{"baseUrl":"ac","offsetMilliseconds":80},{"baseUrl":"sy","offsetMilliseconds":72}],"fullscreenPings":[{"baseUrl":"kw"}],"activeViewViewablePings":[{"baseUrl":"oz"}],"endFullscreenPings":[{"baseUrl":"uc"}],"activeViewMeasurablePings":[{"baseUrl":"vu"}],"abandonPings":[{"baseUrl":"sf"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"qg"}],"completePings":[{"baseUrl":"jv"}],"activeViewTracking":{"trafficType":"sq"}},"clickthroughEndpoint":{"clickTrackingParams":"fn","commandMetadata":{"webCommandMetadata":{"url":"tf","webPageType":"ox","rootVe":73}},"urlEndpoint":{"url":"ny","target":"uc"}},"csiParameters":[{"key":"qe","value":"em"}],"playerVars":"suppress_creator_endscreen=1&is_trueview_action","elementId":"bq","trackingParams":"dr","legacyInfoCardVastExtension":"pa","sodarExtensionData":{"siub":"mi","bgub":"hc","scs":"cw","bgp":"co"},"externalVideoId":"ya","adLayoutLoggingData":{"serializedAdServingDataEntry":"jj"},"layoutId":"sc"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nr","layoutType":"kn","adLayoutLoggingData":{"serializedAdServingDataEntry":"cf"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":52,"trackingParams":"yq","abandonCommands":{"commands":[{"clickTrackingParams":"wi","loggingUrls":[{"baseUrl":"jb"}],"pingingEndpoint":{"hack":90}}]},"skipPings":[{"baseUrl":"av"}],"layoutId":"nj"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nl","layoutType":"wm","adLayoutLoggingData":{"serializedAdServingDataEntry":"zw"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":80,"pings":{"impressionPings":[{"baseUrl":"ji"},{"baseUrl":"ao"},{"baseUrl":"cc"}],"errorPings":[{"baseUrl":"jt"}],"mutePings":[{"baseUrl":"mn"},{"baseUrl":"ce"}],"unmutePings":[{"baseUrl":"rd"},{"baseUrl":"lb"}],"pausePings":[{"baseUrl":"et"},{"baseUrl":"fv"}],"rewindPings":[{"baseUrl":"ft"}],"resumePings":[{"baseUrl":"qj"},{"baseUrl":"ot"}],"skipPings":[{"baseUrl":"ky"},{"baseUrl":"jb"}],"closePings":[{"baseUrl":"hw"}],"progressPings":[{"baseUrl":"vh","offsetMilliseconds":36},{"baseUrl":"um","offsetMilliseconds":77},{"baseUrl":"sq","offsetMilliseconds":19},{"baseUrl":"ui","offsetMilliseconds":15},{"baseUrl":"nl","offsetMilliseconds":86}],"fullscreenPings":[{"baseUrl":"rp"},{"baseUrl":"cn"}],"activeViewViewablePings":[{"baseUrl":"ml"},{"baseUrl":"kq"}],"endFullscreenPings":[{"baseUrl":"ym"}],"activeViewMeasurablePings":[{"baseUrl":"di"},{"baseUrl":"ol"}],"abandonPings":[{"baseUrl":"aj"},{"baseUrl":"wo"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"ms"},{"baseUrl":"uj"}],"startPings":[{"baseUrl":"gy"}],"firstQuartilePings":[{"baseUrl":"ly"}],"secondQuartilePings":[{"baseUrl":"sw"}],"thirdQuartilePings":[{"baseUrl":"gt"}],"completePings":[{"baseUrl":"hu"},{"baseUrl":"gs"}],"activeViewTracking":{"trafficType":"mr"}},"clickthroughEndpoint":{"clickTrackingParams":"yq","commandMetadata":{"webCommandMetadata":{"url":"dn","webPageType":"ms","rootVe":54}},"urlEndpoint":{"url":"hs","target":"jt"}},"csiParameters":[{"key":"zn","value":"eq"}],"playerVars":"bi","elementId":"gr","trackingParams":"qc","legacyInfoCardVastExtension":"xv","sodarExtensionData":{"siub":"ul","bgub":"yr","scs":"ui","bgp":"vy"},"externalVideoId":"fp","adLayoutLoggingData":{"serializedAdServingDataEntry":"gt"},"layoutId":"bh"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"xy","layoutType":"bf","adLayoutLoggingData":{"serializedAdServingDataEntry":"rj"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":95,"trackingParams":"ee","abandonCommands":{"commands":[{"clickTrackingParams":"mi","loggingUrls":[{"baseUrl":"yi"},{"baseUrl":"tm"}],"pingingEndpoint":{"hack":47}}]},"skipPings":[{"baseUrl":"uk"},{"baseUrl":"yj"}],"layoutId":"ft"}}}}]}},"layoutExitNormalTriggers":[{"id":"hq","onLayoutSelfExitRequestedTrigger":{"triggeringLayoutId":"hv"}}],"layoutExitSkipTriggers":[{"id":"up","skipRequestedTrigger":{"triggeringLayoutId":"nm"}},{"id":"yl","skipRequestedTrigger":{"triggeringLayoutId":"gh"}},{"id":"zd","skipRequestedTrigger":{"triggeringLayoutId":"mo"}},{"id":"bc","skipRequestedTrigger":{"triggeringLayoutId":"jj"}}],"layoutExitMuteTriggers":[{"id":"ql","skipRequestedTrigger":{"triggeringLayoutId":"hr"}},{"id":"rc","skipRequestedTrigger":{"triggeringLayoutId":"ln"}}]}}},"slotEntryTrigger":{"id":"lc","beforeContentVideoIdStartedTrigger":{}},"slotFulfillmentTriggers":[{"id":"xq","slotIdEnteredTrigger":{"triggeringSlotId":"da"}}],"slotExpirationTriggers":[{"id":"vv","slotIdExitedTrigger":{"triggeringSlotId":"re"}},{"id":"jg","onNewPlaybackAfterContentVideoIdTrigger":{}}]}}],"adBreakHeartbeatParams":"mw","frameworkUpdates":{"entityBatchUpdate":{"mutations":[{"entityKey":"pz","type":"az","payload":{"offlineabilityEntity":{"key":"ql","command":{"innertubeCommand":{"clickTrackingParams":"nz","ypcGetOfflineUpsellEndpoint":{"params":"pw"}}},"addToOfflineButtonState":"os","contentCheckOk":false,"racyCheckOk":false,"loggingDirectives":{"trackingParams":"xp","visibility":{"types":"1"},"enableDisplayloggerExperiment":true}}}}],"timestamp":{"seconds":"19","nanos":12}}}}}',
objectRepresentation:{playerResponse:KvM}}];var YO1;_.eh=[[["dTN1bjVlc3U1YXJ1a2luZCM=","Y2pyZ2lwd2VnM3ZhbHVlI29s"],"dzlqd3YybGY3b0FEX1BMQUNFTUVOVF9LSU5EX1NUQVJUI3Fw"]];
YO1=[[["MW9obHV3cHJpbWFyeSNyZjBqZWQ=",null,null],[null,["dHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciNjdHZma3dhcXF6Z3l0ZC0=","eWxlLXNjb3BlI2lkOXJrNTJ4dzlzNXN0"],null],["c3RoZWFkLWFkI3Rxb3J1NGs2b2EwZ21h",["dnl0NWsycGxobjB5dGQtcmljaC1ncmlkLXJlbmRlcmVyI3g="],null],[null,["NjlpZ3F1cjBiN3F5dGQtcmljaC1ncmlkLXJlbmRlcmVyI3k=","eWxlLXNjb3BlIzNieWs2MGR5MDB2MXN0"],null],[null,["dTVldmdoM2R5dGQtYmFubmVyLXByb21vLXJlbmRlcmVyI2d5YnI=","eWxlLXNjb3BlIzkyczE2ajVmZDRvaHN0"],null],[null,["I2I4cnNtNGV2eTMxZHl0ZC1hZC1zbG90LXJlbmRlcmVy"],
null]],[["cGxheWVyLWFkcyNqZWE2ZDdhM2Fmbmk=",null,null]]];_.lO=["bGxiYWNrcyNvcjFmOXY4d3p1emdsb2JhbENh","YnF6NzZpZHZ2OXhvb25BYm5vcm1hbGl0eURldGVjdGVkIw==","cm40Zm9uQWRTa2lwI3ljNHZha2lm","ZSNhN213MGhpYWt2eDRyYXdfcGxheWVyX3Jlc3BvbnM=","ZWpyNWNrYWRTbG90cyN2bXpjMWo="];_.DE="bGxiYWNrcyNvcjFmOXY4d3p1emdsb2JhbENh YnF6NzZpZHZ2OXhvb25BYm5vcm1hbGl0eURldGVjdGVkIw== cm40Zm9uQWRTa2lwI3ljNHZha2lm ZSNhN213MGhpYWt2eDRyYXdfcGxheWVyX3Jlc3BvbnM= X3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI3FrZ2s0ZXl4ZHRzdndlYg== M2llM2FiX3NhX2VmI2hoeWtyNWlv ZWpyNWNrYWRTbG90cyN2bXpjMWo=".split(" ");var fU;fU=function(d,H,K){this.s0n=d;this.isAsync=H;this.qIc=K};
_.qtL=[new fU("b.f_",!1,0),new fU("j.s_",!1,2),new fU("r.s_",!1,4),new fU("e.h_",!1,6),new fU("i.s_",!0,8),new fU("s.t_",!1,10),new fU("p.h_",!1,12),new fU("s.i_",!1,14),new fU("f.i_",!1,16),new fU("a.b_",!1,18),new fU("a.o_",!1),new fU("g.o_",!1,22),new fU("p.i_",!1,24),new fU("p.m_",!1),new fU("n.k_",!0,20),new fU("i.f_",!1),new fU("a.s_",!0),new fU("m.c_",!1),new fU("n.h_",!1,26),new fU("o.p_",!1),new fU("m.p_",!0,28),new fU("o.a_",!1),new fU("d.p_",!1),new fU("e.i_",!1)].reduce(function(d,H){d[H.s0n]=
H;return d},{});var cYU=function(){};
cYU.prototype.flush=function(d,H){d=d===void 0?[]:d;H=H===void 0?!1:H;if(_.h("enable_client_streamz_web")){d=_.q(d);for(var K=d.next();!K.done;K=d.next())K=QKM(K.value),this.rootSpec&&_.eE(K,2,this.rootSpec),K={serializedIncrementBatch:_.mb(K.JSC$9578_serializeBinary())},_.Wd("streamzIncremented",K,{sendIsolatedPayload:H})}};
var UT5=function(){};
_.m(UT5,cYU);var phX=function(d){var H=new z_X;var K=new rL3;K=_.UY(K,1,"botguard");d=_.UY(K,2,d);this.rootSpec=_.nc(H,1,Xel,d)};
_.m(phX,cYU);var o3,gQ3=new Map;var yoF,L7C,B24,wnY,I4i,QxX,N2i,Ze5;yoF=2;L7C=2;B24=2;wnY=2;I4i=2;QxX=2;N2i=2;Ze5=new Xz7;var GXS,oQd,qdC;GXS=function(){this.ongoingFlowNonces=new Map};
_.R3=function(){oQd||(oQd=new GXS);return oQd};
_.nm=function(d,H,K){return{eventType:{flowEventNamespace:d,flowEventType:H},metadata:K,statusCode:void 0,csn:void 0,can:void 0}};
_.lT4=function(d,H){var K=_.R3(),c=qdC(K,H,!0);_.Cm(K,d,H,c)};
_.Cm=function(d,H,K,c){d={flowNonce:c||qdC(d,K),flowType:K,flowEventType:H.eventType};H.metadata&&(d.flowMetadata=H.metadata);H.statusCode!==void 0&&(d.flowEventStatus=H.statusCode);H.csn&&(d.csn=H.csn);H.can&&(d.can=H.can);_.Wd("flowEvent",d,void 0)};
qdC=function(d,H,K){K=K===void 0?!1:K;var c=d.ongoingFlowNonces.get(H);if(!c||K)c=Xj(16),d.ongoingFlowNonces.set(H,c);return c};_.asB=new zzN;var nxf={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var AJ=function(d,H,K,c,p,g,a){K=K===void 0?!1:K;c=c===void 0?!1:c;g=g===void 0?_.yq():g;this.hasRun=!1;this.jWT=d;this.iOT=H;this.zNP=K;this.fromHistory=c;this.previousVideoId=p;this.p2Z=g;this.tempData=a;this.qDv=new _.J_d};
_.m(AJ,KU);AJ.prototype.validate=function(d){return!(!d.data.playerResponse||d.data.page!=="watch"&&d.data.page!=="learning_journey_watch"&&d.data.page!=="shorts"||this.hasRun)};
AJ.prototype.handle=function(d){var H=this,K=_.M(d.endpoint,_.AP),c=_.M(d.endpoint,_.P5);if(_.h("kevlar_continue_playback_without_player_response")&&(K==null?0:K.videoId)&&this.previousVideoId&&(K==null?void 0:K.videoId)===this.previousVideoId&&(K==null?0:K.continuePlayback)&&!this.fromHistory)this.jWT.resolve();else{var p={};K?p.watch_endpoint=K:c&&(p.watch_endpoint=c,c.endTimeSeconds&&(p.end=c.endTimeSeconds));d.data.page==="watch"?(d.data.filler||this.zNP||(_.Zi("cfg"),_.bw.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(p,lsX(this,d.endpoint)),_.h("enable_masthead_quartile_ping_fix")&&Object.assign(p,ePU(this)),Object.assign(p,void 0),d.data.forceExternalPlaylist&&(p.external_list=!0)):d.data.page==="shorts"?_.bw.getInstance().triggerAction("yt-start-loading-shorts"):d.data.page==="learning_journey_watch"&&_.bw.getInstance().triggerAction("yt-start-loading-learning-journey");if(K=this.iOT()){try{K.loadVideoWithPlayerResponse(d.data.playerResponse,p),K.getPlayerPromise().then(this.jWT.resolve)}catch(g){_.z5(g),
this.jWT.resolve()}this.hasRun=!0;K.getPlayerPromise().then(function(g){g.addEventListener("onAbnormalityDetected",function(){var a=d.data.playerResponse,e=g.getVideoData().cpn;N2i=0;_.igX=e;if(e=oxM(a))H.qDv.increment("IN_PLAYER"),_.VS(5),_.h("ab_st_vid_ks")?g.pauseVideo(!0):g.stopVideo(),a.playabilityStatus=Object.assign({},a.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:e}}),a.videoDetails=void 0,_.bw.getInstance().triggerOptionalAction("yt-updated-playability-status",
a.playabilityStatus)})})}else _.Jf(Error("Jf"))}};
var lsX=function(d,H){var K=_.M(H,_.AP);if(H&&K&&K.playlistId&&K.videoId&&(d=d.p2Z,d.queueProxy?(d=d.queueProxy,K=d.listId===K.playlistId?d.attributionData.get(K.videoId):void 0):K=void 0,K))return{queue_info:K}},ePU=function(d){var H;
if((H=d.tempData)==null?0:H.adpings)return{adpings:d.tempData.adpings}};var jc=function(d,H,K){this.hasRun=!1;this.bpg=d;this.nR6=H;this.vJr=K};
_.m(jc,KU);jc.prototype.validate=function(d){return!!_.rs.getValueByKeys.apply(null,[d.data].concat(_.ru(FD3)))};
jc.prototype.handle=function(d){var H=this;this.bpg.promise.then(function(){var K=d.data;var c=_.rs.getValueByKeys.apply(null,[K].concat(_.ru(ryC))),p=_.rs.getValueByKeys.apply(null,[K].concat(_.ru(JyU))),g=_.rs.getValueByKeys.apply(null,[K].concat(_.ru(B$M)));var a=(a=_.rs.getValueByKeys.apply(null,[K].concat(_.ru(WDC))))?{videoId:a.videoId,thumbnail:a.thumbnail,title:a.title?_.AF(a.title):void 0,shortBylineText:a.author?_.AF(a.author):void 0}:void 0;var e=void 0;_.h("web_get_playlist_id_from_current_endpoint_ks")||
(e=_.rs.getValueByKeys.apply(null,[K].concat(_.ru(zU7))));var k=_.rs.getValueByKeys.apply(null,[K].concat(_.ru(sX3))),C=_.rs.getValueByKeys.apply(null,[K].concat(_.ru(X2A))),R=!!k||!!C&&!!C.results&&C.results.length>0,V=0;p&&p.currentIndex&&p.localCurrentIndex&&(V=p.currentIndex-p.localCurrentIndex);p&&p.playlistId&&(e=p.playlistId);K={rawResponse:K,autoplayRenderer:c,hasRelatedVideoData:R,playingVideo:a,playingVideoId:g,playlistPanelRenderer:p,playlistId:e,playlistIndex:p&&p.currentIndex,relatedVideoArgs:k,
endScreenRenderer:C,playlistIndexOffset:V};a:{c=H.vJr;p=H.nR6;c.response=K;if(jXC(K))c.downloadPlaylistProxy&&c.downloadPlaylistProxy.getPlaylistId()===AyB(K)||(c.downloadPlaylistProxy=new hUU(AyB(K),c.setPlaylistData.bind(c),c.isPlayingOfflineVideo.bind(c))),c.responsePlaylistData=c.downloadPlaylistProxy.getPlaylistData(),c.listId=AyB(K),c.index=0;else if(K.playlistPanelRenderer&&K.playlistId&&K.autoplayRenderer)K.playlistId.startsWith("TLPQ")?c.queueProxy?c.listId===K.playlistId?(c.index=K.playlistIndex,
c.responsePlaylistData=K.playlistPanelRenderer,c.queueProxy.JSC$12792_setCurrentIndex(c.index)):K.playingVideoId&&c.index!==void 0&&p.clientParams.autoSaveToQueue&&(c.index+=1,c.queueProxy.JSC$12792_setCurrentIndex(c.index),c.queueProxy.addVideos([K.playingVideoId],{},c.index)):(c.queueProxy=new _.ZE(c.JSC$12846_playlistNetworkManager,K.playlistId,c.setPlaylistData.bind(c),c.clearQueue.bind(c),_.l44(K.playlistPanelRenderer),c.storage),c.responsePlaylistData=K.playlistPanelRenderer,c.listId=K.playlistId,
c.index=K.playlistIndex):(c.index=K.playlistIndex,c.listId!==K.playlistId&&c.clearQueue(),c.responsePlaylistData=K.playlistPanelRenderer,c.listId=K.playlistId,c.playlistProxy=new IMd(c.JSC$12846_playlistNetworkManager,K.playlistId,c.setPlaylistData.bind(c),_.l44(K.playlistPanelRenderer)));else if(!c.queueProxy)c.responsePlaylistData=void 0;else if(K.playingVideoId&&p.clientParams.autoSaveToQueue){if(c.index===void 0){_.z5(Error("Ff"));c.clearQueue();break a}c.queueProxy.videoIds.includes(K.playingVideoId)||
(c.index+=1,c.queueProxy.JSC$12792_setCurrentIndex(c.index),c.queueProxy.addVideos([K.playingVideoId],{},c.index))}_.bd(c,_.Nw(c,c.response.autoplayRenderer))}})};var kXB=function(d,H){H=H===void 0?_.yq():H;RS.call(this);this.uc.push(new jc(this.sq,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},H));this.uc.push(new AJ(this.sq,d,!1,!1));_.h("web_response_commands_chunk_processor")&&this.uc.push(new Vq)};
_.m(kXB,RS);kXB.prototype.processChunk=function(d){d&&d.data.player===void 0&&this.sq.resolve();RS.prototype.processChunk.call(this,d)};var vx=function(d,H){d=d===void 0?{layer:0}:d;this.hasRun=!1;this.createScreenConfig=d;this.aZ0=H};
_.m(vx,KU);vx.prototype.validate=function(d){return!(this.hasRun||!d.endpoint)};
vx.prototype.handle=function(d){var H=_.hR(),K,c,p=(c=_.M((K=d.endpoint)==null?void 0:K.commandMetadata,_.Co))==null?void 0:c.rootVe;this.aZ0&&p?_.ld(H,p,this.aZ0,this.createScreenConfig):cVA(H,d.endpoint,this.createScreenConfig);this.hasRun=!0};var dy=function(d,H){this.hasRun=!1;this.w2f=d;this.previousVideoId=H};
_.m(dy,KU);dy.prototype.validate=function(d){return _.h("kevlar_continue_playback_without_player_response")&&(d=_.M(d.endpoint,_.AP),(d==null?0:d.videoId)&&this.previousVideoId&&(d==null?void 0:d.videoId)===this.previousVideoId&&(d==null?0:d.continuePlayback))?!1:this.w2f.d24===0};
dy.prototype.handle=function(d){_.bw.getInstance().triggerAction("yt-stop-old-player",d.data,!0)};var xzA=function(d){d=d===void 0?{layer:0}:d;RS.call(this);this.uc.push(new dy(this));this.uc.push(new vx(d));this.uc.push(new CU(d))};
_.m(xzA,RS);var nQ3=function(){this.hasRun=this.hasRun=!1};
_.m(nQ3,KU);nQ3.prototype.validate=function(d){return!this.hasRun&&!(!d.data.csn||!d.data.rootVe)};
nQ3.prototype.handle=function(d){this.hasRun=!0;_.TA(d.data.csn,d.data.rootVe,3)};var Cl0=function(){KU.apply(this,arguments)};
_.m(Cl0,KU);Cl0.prototype.validate=function(d){return!!d.data.preconnect};
Cl0.prototype.handle=function(d){_.Fw("bc");d=_.q(d.data.preconnect);for(var H=d.next();!H.done;H=d.next())H=H.value,(new Image).src=H};var RPN=function(d,H,K){K=K===void 0?{layer:0}:K;RS.call(this);this.uc.push(new AJ(this.sq,d));this.uc.push(new vx(K));this.uc.push(new CU(K))};
_.m(RPN,RS);var V6A=function(d,H,K,c,p){K=K===void 0?{layer:0}:K;c=c===void 0?_.yq():c;RS.call(this);var g=!!H&&!!H.clientParams&&!!H.clientParams.miniplayer;g&&this.uc.push(new nQ3);this.uc.push(new jc(this.sq,H,c));this.uc.push(new Cl0);var a,e;this.uc.push(new AJ(this.sq,d,g,!((a=H.clientParams)==null||!a.fromHistory),(e=H.clientParams)==null?void 0:e.previousVideoId,c,H.tempData));var k;this.uc.push(new dy(this,(k=H.clientParams)==null?void 0:k.previousVideoId));var C;(C=H.clientParams)!=null&&C.fromHistory||
(K.layer||(K=Object.assign({},K,{layer:g?3:0})),this.uc.push(new vx(K,p)),this.uc.push(new CU(K)));_.h("web_response_commands_chunk_processor")&&this.uc.push(new Vq)};
_.m(V6A,RS);var Hm,Lv6;Hm={};
_.UzM=(Hm["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Hm["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Hm["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Hm["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Hm["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Hm["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Hm["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Hm);_.$C=new _.T1("yt-edu");_.hPl=function(){this.JSC$12947_eduDisplayedThisLoad_={}};
Lv6=function(d){var H=_.hPl.getInstance();var K=_.iT("kevlar_tooltip_impression_cap");H=K&&parseInt(_.$C.get(d+"-impression")||0,10)>=K||_.$C.get(d+"-dismissed")?!1:(K=_.UzM[d])&&!H.JSC$12947_eduDisplayedThisLoad_[K.setKey||d]&&(K.titleText&&_.Vz(K.titleText)||K.bodyText&&_.Vz(K.bodyText))?!0:!1;if(!H)return null;H=_.UzM[d];if(!H)return null;K=H.bodyText?_.Vz(H.bodyText):void 0;var c=H.titleText?_.Vz(H.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:H.position,popup:{bubbleHintRenderer:{text:c?
_.AF(c):void 0,detailsText:K?_.AF(K):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.AF(_.Vz("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:d}}]}}}}}}}},{eduImpressionAction:{key:d}}]};
_.HG(_.hPl);var e5E=!1;for(var M6S="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),mz3=[],Ks=6;Ks>=1;Ks--)mz3.push({columnCount:Ks,query:Ks==1?0:Ks*2*107-4+32,className:"grid-"+Ks+"-columns",width:Ks*2*107+"px"});_.Pl3=function(d){this.actionRouter_=d=d===void 0?_.bw.getInstance():d;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.whS(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.whS=function(d){var H=d.miniGuideVisible_?72:0,K=d.documentWidth_-(d.guidePersistentAndVisible_?240:H);return mz3.find(function(c){return K>c.query})};
_.HG(_.Pl3);var IsA=function(){var d=this;this.JSC$12959_keyboardInUse=!1;document.addEventListener("keydown",function(){d.onKeydown()});
document.addEventListener("mousedown",function(){d.JSC$12959_keyboardInUse=!1})},rYA;
IsA.prototype.isKeyBoardInUse=function(){return this.JSC$12959_keyboardInUse};
IsA.prototype.onKeydown=function(){this.JSC$12959_keyboardInUse=!0};var WvA,gy;_.cm=new _.T1("yt-mentions");_.ps=function(){};
WvA=function(d,H){return gy(H,"drag-to-reorder-edu-displayed")};
gy=function(d,H,K,c,p,g){K=K===void 0?"OPEN_POPUP_POSITION_TOP":K;if(H){if(_.cm.get(H))return;_.cm.set(H,!0,c)}if(p&&g!==void 0){H=Number(_.cm.get(p)||0);if(H>=g)return;_.cm.set(p,H+1)}return[{openPopupAction:{popupType:"HINT",position:K,popup:{bubbleHintRenderer:{detailsText:d,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.HG(_.ps);var BwC,zPS,Xhg;BwC=function(d,H,K,c){this.JSC$12969_taskManager_=d;this.onFulfilled_=typeof H==="function"?H:null;this.onRejected_=typeof K==="function"?K:null;this.JSC$12969_context_=c};
zPS=function(d,H){d.onFulfilled_&&_.rB(d.JSC$12969_taskManager_,function(){d.onFulfilled_.call(d.JSC$12969_context_,H)})};
Xhg=function(d,H){d.onRejected_&&_.rB(d.JSC$12969_taskManager_,function(){d.onRejected_.call(d.JSC$12969_context_,H)})};
_.i9=function(d){this.JSC$12972_taskManager_=d;this.callbacks_=[]};
_.i9.prototype.then=function(d,H,K){this.callbacks_.push(new BwC(this.JSC$12972_taskManager_,d,H,K));return this};
_.i9.prototype.onSuccess=function(d){this.callbacks_.forEach(function(H){zPS(H,d)})};
_.i9.prototype.onFailure=function(d){this.callbacks_.forEach(function(H){Xhg(H,d)})};
_.i9.prototype.cancel=function(){this.callbacks_.length=0};
OzN(_.i9);_.R54=null;_.uV=new _.Av("ACTIVITY_TOKEN");var Gt=function(d,H){this.serviceId=new YS3(d,H)};
Gt.prototype.toString=function(){return this.serviceId.toString()};var JY3=function(){this.internalMap={}};
_.G=JY3.prototype;_.G.contains=function(d){return Object.prototype.hasOwnProperty.call(this.internalMap,d)};
_.G.get=function(d){if(this.contains(d))return this.internalMap[d]};
_.G.set=function(d,H){this.internalMap[d]=H};
_.G.getKeys=function(){return Object.keys(this.internalMap)};
_.G.remove=function(d){delete this.internalMap[d]};var ok=function(){this.mappings=new JY3;this.errorCallbacks=new Set};
ok.prototype.getModuleId=function(d){return d.serviceId.getModuleId()};
ok.prototype.get=function(d){var H=this.mappings.get(d.toString());return sMd(this,H,d)};
ok.prototype.getMultipleAsync=function(){var d=_.sH.apply(0,arguments),H=this,K=d.map(function(k){return H.getModuleId(k)}),c=d.map(function(k){return H.mappings.get(k.toString())}).filter(function(k){return k});
if(c.length===d.length)return _.e5(c.map(function(k,C){return sMd(H,k,d[C])}));
var p=ur().loadMultiple(K);c=_.hH(K.map(function(k){return p[k]}));
var g=document.hidden,a=-1,e=_.iT("get_async_timeout_ms",-1);e>-1&&(a=setTimeout(function(){_.Jf(new _.m1("Module timeout.",K,g,document.hidden))},e));
return _.Lq(c.then(function(){return d.map(function(k){return sMd(H,H.mappings.get(k.toString()),k)})}).thenCatch(function(k){for(var C=_.q(H.errorCallbacks),R=C.next();!R.done;R=C.next())R=R.value,R(k);
throw k;}),function(){clearTimeout(a)})};
ok.prototype.registerService=function(d,H){this.mappings.set(d.toString(),{type:"mapping",value:H});return d};
var sMd=function(d,H,K){switch(H.type){case "mapping":return H.value;case "factory":return H=H.value(),d.mappings.set(K.toString(),{type:"mapping",value:H}),H;default:return _.tN(H)}};
ok.prototype.onLoadError=function(d){var H=this;this.errorCallbacks.add(d);return function(){H.errorCallbacks.delete(d)}};
_.qG=new ok;var M9L=/^[a-zA-Z0-9_\-]{11}$/;var miD=_.CV(function(){var d,H;return(H=(d=window).matchMedia)==null?void 0:H.call(d,"(prefers-reduced-motion: reduce)").matches});var FvM=_.CV(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');var d=_.OS("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");d||(d=_.x1("VIDEO"),_.vb("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
d));return!!(d&&d.canPlayType&&d.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var WHi=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var ak;ak=function(){this.tokenJars={};if(this.cookiesEnabled=_.hX()){var d=_.Vm.get("CONSISTENCY",void 0);d&&Zg6(this,{encryptedTokenJarContents:d})}};
_.z5Y=function(){ak.instance||(ak.instance=new ak);return ak.instance};
ak.prototype.handleResponse=function(d,H){if(!H)throw Error("Pf");var K,c;H=((K=H.innerTubeRequest.context)==null?void 0:(c=K.request)==null?void 0:c.consistencyTokenJars)||[];var p;(d=(p=d.responseContext)==null?void 0:p.consistencyTokenJar)&&this.replace(H,d)};
ak.prototype.replace=function(d,H){d=_.q(d);for(var K=d.next();!K.done;K=d.next())delete this.tokenJars[K.value.encryptedTokenJarContents];Zg6(this,H)};
var Zg6=function(d,H){if(H.encryptedTokenJarContents&&(d.tokenJars[H.encryptedTokenJarContents]=H,typeof H.expirationSeconds==="string")){var K=Number(H.expirationSeconds);setTimeout(function(){delete d.tokenJars[H.encryptedTokenJarContents]},K*1E3);
d.cookiesEnabled&&_.Um("CONSISTENCY",H.encryptedTokenJarContents,K,void 0,!0)}};var TwU,l9;TwU=window.location.hostname.split(".").slice(-2).join(".");_.Jc=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var d=_.Fm("LOCATION_PLAYABILITY_TOKEN");_.Fm("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=QMS(this))&&(d=this.localStorage.get("yt-location-playability-token"));d&&(this.locationPlayabilityToken=d,this.mostRecentPosition=void 0)};
_.Jc.getInstance=function(){l9=_.OS("yt.clientLocationService.instance");l9||(l9=new _.Jc,_.vb("yt.clientLocationService.instance",l9));return l9};
_.Jc.prototype.setLocationOnInnerTubeContext=function(d){d.client||(d.client={});if(this.mostRecentPosition)d.client.locationInfo||(d.client.locationInfo={}),d.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),d.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),d.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),d.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)d.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Jc.prototype.handleResponse=function(d){var H;d=(H=d.responseContext)==null?void 0:H.locationPlayabilityToken;d!==void 0&&(this.locationPlayabilityToken=d,this.mostRecentPosition=void 0,_.Fm("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=QMS(this))&&this.localStorage.set("yt-location-playability-token",d,15552E3):_.Um("YT_CL",JSON.stringify({loctok:d}),15552E3,TwU,!0))};
var QMS=function(d){return d.localStorage===void 0?new _.T1("yt-client-location"):d.localStorage};
_.Jc.prototype.clearLocationPlayabilityToken=function(d){d==="TVHTML5"?(this.localStorage=QMS(this))&&this.localStorage.remove("yt-location-playability-token"):_.GRE("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Jc.prototype.getCurrentPositionFromGeolocation=function(){var d=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Qf"));var H=!1,K=1E4;_.Fm("INNERTUBE_CLIENT_NAME")==="MWEB"&&(H=!0,K=15E3);return new Promise(function(c,p){navigator.geolocation.getCurrentPosition(function(g){d.mostRecentPosition=g;c(g)},function(g){p(g)},{enableHighAccuracy:H,
maximumAge:0,timeout:K})})};
_.Jc.prototype.createUnpluggedLocationInfo=function(d){var H={};d=d.coords;if(d==null?0:d.latitude)H.latitudeE7=Math.floor(d.latitude*1E7);if(d==null?0:d.longitude)H.longitudeE7=Math.floor(d.longitude*1E7);if(d==null?0:d.accuracy)H.locationRadiusMeters=Math.round(d.accuracy);return H};
_.Jc.prototype.createLocationInfo=function(d){var H={};d=d.coords;if(d==null?0:d.latitude)H.latitudeE7=Math.floor(d.latitude*1E7);if(d==null?0:d.longitude)H.longitudeE7=Math.floor(d.longitude*1E7);return H};var t6C=function(){};
_.G=t6C.prototype;
_.G.JSC$13039_getRequest=function(d,H,K){H=H===void 0?{}:H;K=K===void 0?fzC:K;var c=H;if(this.isNavigationCommand()){var p,g=(p=_.M(d==null?void 0:d.commandMetadata,_.Co))==null?void 0:p.url;c=_.X6X(d.clickTrackingParams,!0,!1,g,this.JSC$13039_getClientScreen(c))}else c=_.X6X(d.clickTrackingParams,!1,this.includeCsn);c={context:c};if(p=this.getExtension(d))return this.JSC$13039_buildRequest(c,p,H),p=this.getApiUrl(d),g=Object.assign({},{command:d},this.getRequestConfig(d,H)),c={input:p,requestShell:Dc(p),
innerTubeRequest:c,config:g},c.config.authStrategy?c.config.authStrategy.identity=K:c.config.authStrategy={identity:K},(d=this.JSC$13039_getRequestKey(d,H))&&!c.config.requestKey&&(c.config.requestKey=d),c;d=new _.m1("Error: Failed to create Request from Command.",d);_.z5(d)};
_.G.getApiUrl=function(d){var H=_.H5(this.getApiPaths(d)),K;(d=(K=_.M(d.commandMetadata,_.Co))==null?void 0:K.apiUrl)&&(H=d);return gqF(pU4(H))};
_.G.isNavigationCommand=function(){return!1};
_.G.JSC$13039_getClientScreen=function(){};
_.G.JSC$13039_getRequestKey=function(){};
_.G.getRequestConfig=function(){};
_.H3.Object.defineProperties(t6C.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var e$=function(){};
_.m(e$,t6C);e$.prototype.JSC$13046_getStoreKey=function(){};
e$.prototype.JSC$13039_getRequestKey=function(d,H){H=H===void 0?{}:H;return this.JSC$13046_getStoreKey(d,H)};var Ogd;_.kC=function(d,H,K){var c=K&&K>0?K:0;K=c?Date.now()+c*1E3:0;if((c=c?(0,_.Yd3)():Ogd())&&window.JSON){typeof H!=="string"&&(H=JSON.stringify(H,void 0));try{c.set(d,H,K)}catch(p){c.remove(d)}}};
_.xC=function(d){var H=Ogd(),K=(0,_.Yd3)();if(!H&&!K||!window.JSON)return null;try{var c=H.get(d)}catch(p){}if(typeof c!=="string")try{c=K.get(d)}catch(p){}if(typeof c!=="string")return null;try{c=JSON.parse(c,void 0)}catch(p){}return c};
_.ns=function(d){try{var H=Ogd(),K=(0,_.Yd3)();H&&H.remove(d);K&&K.remove(d)}catch(c){}};
_.Yd3=_.CV(function(){try{var d=new xRi;var H=d.isAvailable()?d:null}catch(K){return null}return H?new _.qC(H):null});
Ogd=_.CV(function(){var d=new nLC;return d.isAvailable()?new _.qC(d):null});var $8=new _.Av("ENTITY_STATE_TOKEN"),Cs=new _.Av("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var SdA=XMLHttpRequest.prototype.fetch,EQ6=SdA&&SdA.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!AX?!0:!1;var Rk=function(d){this.JSC$13051_storeWithEntities=d};
_.m(Rk,e$);_.G=Rk.prototype;_.G.getApiPaths=function(){return gxX};
_.G.getExtension=function(d){return _.M(d,_.AP)||_.M(d,_.P5)||_.M(d,g4l)};
_.G.isNavigationCommand=function(){return!0};
_.G.JSC$13046_getStoreKey=function(d){if((_.h("kevlar_cache_on_ttl_player")||_.h("mweb_enable_shorts_innertube_player_prefetch")||_.h("mweb_use_new_history_manager")||_.h("web_shorts_prefetch_service_enabled"))&&(d=this.getExtension(d))&&d.videoId){var H={videoId:d.videoId};d.playlistId&&(H.playlistId=d.playlistId);d.playerParams&&(H.params=d.playerParams);return _.fO("player",H)}};
_.G.JSC$13039_getClientScreen=function(d){var H;return((H=d.contentPlaybackContext)==null?void 0:H.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.G.JSC$13039_buildRequest=function(d,H,K){if(_.h("enable_interstitial_entity_check")){var c=this.JSC$13051_storeWithEntities;if(H.videoId)for(var p=_.q(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),g=p.next();!g.done;g=p.next()){g=g.value;var a;var e=void 0,k=void 0,C=H.videoId,R=g;(a=c)?(C=_.kL(C+R,"interstitialInteractionStateEntity"),a=(e=(k=_.xL(a.getState().entities,"interstitialInteractionStateEntity",C))==null?void 0:k.primaryButtonClicked)!=null?e:!1):a=!1;if(a)switch(g){case "CONTENT_CHECK_REQUIRED":H.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":H.racyCheckOk=!0}}}H.videoId&&(d.videoId=H.videoId);H.playlistId&&(d.playlistId=H.playlistId);H.index!==void 0&&(d.playlistIndex=H.index+1);H.playerParams&&(d.params=H.playerParams);"startTimeSeconds"in H&&H.startTimeSeconds&&(_.h("enable_player_request_builder_start_time_floor")?d.startTimeSecs=Math.floor(H.startTimeSeconds):d.startTimeSecs=H.startTimeSeconds);K.contentPlaybackContext&&(d.playbackContext={contentPlaybackContext:K.contentPlaybackContext});K.prefetchPlaybackContext&&
(d.playbackContext=Object.assign({},d.playbackContext,{prefetchPlaybackContext:K.prefetchPlaybackContext}),d.context.request||(d.context.request={}),d.context.request.isPrefetch=!0);d.playbackContext||(d.playbackContext={});c=FvM();d.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!c,supportXhr:EQ6};K.overrideMutedAtStart&&(d.overrideMutedAtStart=K.overrideMutedAtStart);d.racyCheckOk=!!H.racyCheckOk;d.contentCheckOk=!!H.contentCheckOk;!_.h("captions_prefs_killswitch")&&(K=(K=_.xC("yt-player-caption-language-preferences"))?
K:[],K==null?0:K.length)&&(d.captionParams={viewerSelectedCaptionLangs:K})};
_.G.getRequestConfig=function(d){d=this.JSC$13046_getStoreKey(d);var H;d&&(H={storeStrategy:{storeKey:d}});_.h("web_log_player_watch_next_ticks")&&(H=H||{},H.requestTick="ps_s",H.responseTick="ps_r");return H};
Rk[fG]=[$8];var V_=function(){};
_.m(V_,e$);_.G=V_.prototype;_.G.getApiPaths=function(){return Z_C};
_.G.getExtension=function(d){return _.M(d,_.AP)};
_.G.isNavigationCommand=function(){return!0};
_.G.JSC$13046_getStoreKey=function(d){if((d=this.getExtension(d))&&d.videoId){var H={videoId:d.videoId};d.playlistId&&(H.playlistId=d.playlistId);d.index&&(H.index=d.index);d.params&&(H.params=d.params);return _.fO("next",H)}};
_.G.JSC$13039_getClientScreen=function(d){var H;return((H=d.contentPlaybackContext)==null?void 0:H.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.G.JSC$13039_buildRequest=function(d,H,K){H.videoId&&(d.videoId=H.videoId);H.playlistId&&(d.playlistId=H.playlistId);H.params&&(d.params=H.params);H.index!==void 0&&(d.playlistIndex=H.index);d.racyCheckOk=!(!K.racyCheckOk&&!H.racyCheckOk);d.contentCheckOk=!!H.contentCheckOk;K.contentPlaybackContext&&(d.autonavState=K.contentPlaybackContext.autonavState,d.playbackContext={vis:K.contentPlaybackContext.vis,lactMilliseconds:K.contentPlaybackContext.lactMilliseconds});K.prefetchPlaybackContext&&(d.context.request||
(d.context.request={}),d.context.request.isPrefetch=!0);_.h("captions_hats_killswitch")||(H=_.Lo().getFlag(65),H=H!=null?!H:!1,K=!!_.xC("yt-player-sticky-caption"),d.captionsRequested=H&&K)};
_.G.getRequestConfig=function(d){d=this.JSC$13046_getStoreKey(d);var H;d&&(H={storeStrategy:{storeKey:d}});_.h("web_log_player_watch_next_ticks")&&(H=H||{},H.requestTick="wn_s",H.responseTick="wn_r");return H};
var Us=function(){};
_.m(Us,e$);Us.prototype.getApiPaths=function(){return Z_C};
Us.prototype.getExtension=function(d){return _.M(d,_.YM)};
Us.prototype.JSC$13039_buildRequest=function(d,H){H.token&&(d.continuation=H.token)};var h$=function(d,H){this.playerRequestBuilder=d;this.watchNextRequestBuilder=H};
_.m(h$,e$);h$.prototype.getApiPaths=function(){return DTd};
h$.prototype.getExtension=function(d){return _.M(d,_.AP)};
h$.prototype.isNavigationCommand=function(){return!0};
h$.prototype.JSC$13039_buildRequest=function(d,H,K){d.playerRequest={};this.playerRequestBuilder.JSC$13039_buildRequest(d.playerRequest,H,K);_.h("web_streaming_watch")&&(d.watchNextRequest={},this.watchNextRequestBuilder.JSC$13039_buildRequest(d.watchNextRequest,H,K))};
h$[fG]=[Rk,V_];var yY0;_.Ls=new _.Av("SHORTS_CONTROLLER_TOKEN");yY0=new _.Av("SHORTS_STATE_STORE_TOKEN");var MG=function(d,H){var K=_.sH.apply(2,arguments);d=d===void 0?0:d;_.m1.call(this,H,K);this.errorType=d;Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(MG,_.m1);var bgU,Nwl,fs3,tpL,Q$,pP4,dHl,vQC,gad,K3S,$HX;bgU=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(d){return d+"="}).join("|"));
Nwl=RegExp(".*\\?.*playnext=1.*");_.m9=function(d,H,K,c){this.watchEndpointMap=d;this.reelWatchEndpointMap=H;this.innerTubeTransportService=K;this.fetchPbj=c};
fs3=function(d,H,K){var c=_.Kj().resolve(_.$p(Dz0));_.m9.instance=new _.m9(d,H,K,c)};
_.AYM=function(d,H){var K=_.iT("web_pbj_log_warning_rate",0);K=K>0&&Math.random()<K;var c;if((c=_.M(H.commandMetadata,_.Co))==null||!c.rootVe)return K&&_.Jf(Error("Sf")),!1;var p;c=(p=_.M(H.commandMetadata,_.Co))==null?void 0:p.url;if(!c)return K&&_.Jf(Error("Tf")),!1;if(Nwl.test(c))return!0;if(bgU.test(c))return K&&_.Jf(Error("Uf`"+c)),!1;if(_.M(H,_.AP)){if(!(d.watchEndpointMap.watchNext&&d.watchEndpointMap.player||_.h("kevlar_fetch_initial_data_op_watch_client")))return K&&_.Jf(Error("Lf")),!1;
d=_.iT("web_pbj_log_warning_rate",0);d=d>0&&Math.random()<d;_.M(H,_.AP)?h54(H)?H=!0:(d&&_.Jf(Error("Mf")),H=!1):(d&&_.Jf(Error("Lf")),H=!1);return H}if(_.M(H,_.P5))return LHh(H);if(_.M(H,_.F5))return!0;d=_.bV(d.innerTubeTransportService,H);!d&&K&&_.z5(Error("Vf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(H)});return d};
tpL=function(d,H,K,c,p,g){H={url:H};if(K==null?0:K.itct)H.parentTrackingParams=K.itct;var a=_.H5(xi6);return _.Qq(d.innerTubeTransportService,H,a).then(function(e){(e=e.endpoint)||(e=_.hJ);(K==null?0:K.itct)&&e&&!e.trackingParams&&(e.trackingParams=K.itct);var k=mZ(e);return Q$(d,e,K,c,k,p,g)})};
Q$=function(d,H,K,c,p,g,a,e){e=e===void 0?{}:e;if(d.fetchPbj&&!_.AYM(d,H)&&!_.h("force_one_platform")){e=d.fetchPbj(H);var k=_.e5(e.then(function(E){if(!E)throw Error("Wf");a(k)||g(H,E);return E}));
return k}var C,R,V={rootVe:(C=_.M(H.commandMetadata,_.Co))==null?void 0:C.rootVe,url:(R=_.M(H.commandMetadata,_.Co))==null?void 0:R.url,endpoint:H,page:p};if(_.M(H,_.AP)){var U,L={contentPlaybackContext:_.rn(K,(U=_.M(H.commandMetadata,_.Co))==null?void 0:U.url,c)},w=_.DA();_.h("web_streaming_watch")&&window.TextDecoderStream?(e=jM7(d.innerTubeTransportService,H,L,function(E){!V.response&&E.content&&(V.response=E.content);!V.playerResponse&&E.player&&(V.playerResponse=E.player);g(H,V)}),C=iT1(H),C.length&&
(V.preconnect=C,g(H,V)),vQC(e,w,V).catch(function(E){E instanceof MG&&E.errorType===2&&dHl(d,H,L,V,g,a,w)})):dHl(d,H,L,V,g,a,w);
return w.promise}if(_.M(H,_.P5)){var W;if(((W=_.M(H,_.P5))==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var J=_.DA();_.HkC(_.Kj().resolve(_.Ls),H).then(function(E){$HX(d,K,c,p,g,J,E)});
return J.promise}e=_.e5();var F;C={contentPlaybackContext:_.rn(K,(F=_.M(H.commandMetadata,_.Co))==null?void 0:F.url,c)};(F=d.reelWatchEndpointMap.player)&&(F=F().JSC$13039_getRequest(H,C))&&(e=_.Qq(d.innerTubeTransportService,F.innerTubeRequest,F.input,H.clickTrackingParams,F.config));F=_.e5();(R=d.reelWatchEndpointMap.reelItemWatch)&&(R=R().JSC$13039_getRequest(H))&&(F=_.Qq(d.innerTubeTransportService,R.innerTubeRequest,R.input,H.clickTrackingParams,R.config));R=_.e5();_.h("web_enable_delay_shorts_sequence_call_new")||
(U=d.reelWatchEndpointMap.reelWatchSequence)&&_.M(H,_.P5).sequenceParams&&(C=U().JSC$13039_getRequest(H,C))&&(R=_.Qq(d.innerTubeTransportService,C.innerTubeRequest,C.input,H.clickTrackingParams,C.config));C=_.e5(V);U=_.DA();K3S(H,C,e,F,R,g,a,U);return U.promise}var Y;if(_.M(H,C3h)&&((Y=_.M(H.commandMetadata,_.Co))==null?0:Y.url))return e=Bjl(_.Qe(zo().location.href),_.Qe(_.M(H.commandMetadata,_.Co).url)).toString(),tpL(d,e,K,c,g,function(){return!1});
if(_.M(H,_.F5))return g(H,V),_.e5(V);if(_.bV(d.innerTubeTransportService,H)){e=Object.assign({},{tempData:K,disableCache:K.disableCache},e);var A=_.Nc(d.innerTubeTransportService,H,e).then(function(E){V.response=E;a(A)||g(H,V);return V});
return A}return _.e5(V)};
_.pAX=function(d,H,K,c){if(_.M(H,_.AP)||_.M(H,_.P5)&&(_.h("mweb_enable_shorts_innertube_player_prefetch")||_.h("kevlar_enable_shorts_prefetch_in_sequence"))||_.M(H,g4l)&&_.h("web_enable_prefetching_videos_on_home")){var p,g={contentPlaybackContext:_.rn(K,(p=_.M(H.commandMetadata,_.Co))==null?void 0:p.url,c),prefetchPlaybackContext:P3D(K)},a,e,k;if(((a=_.M(H,_.AP))==null?void 0:(e=a.watchEndpointSupportedPrefetchConfig)==null?void 0:(k=e.prefetchHintConfig)==null?void 0:k.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(K=
d.watchEndpointMap.watchNext)if(g=K().JSC$13039_getRequest(H,g))return Promise.resolve(_.Qq(d.innerTubeTransportService,g.innerTubeRequest,g.input,void 0,g.config).then(function(V){return V}))}else if(K=d.watchEndpointMap.player)if(g=K().JSC$13039_getRequest(H,g))return Promise.resolve(_.Qq(d.innerTubeTransportService,g.innerTubeRequest,g.input,void 0,g.config).then(function(V){return V}))}else if(_.bV(d.innerTubeTransportService,H)){var C={tempData:K},R=cqM(d.innerTubeTransportService,H);
return R?new Promise(function(V,U){var L,w;return _.l(function(W){if(W.nextAddress==1)return W.yield(R,2);if(W.nextAddress!=4)return L=W.yieldResult,L.JSC$13046_getStoreKey(H,C)?W.yield(_.Nc(d.innerTubeTransportService,H,C),4):(U(new _.m1("Prefetching request builder with no store key.",H)),W.jumpTo(0));w=W.yieldResult;V(w);_.VE(W)})}):Promise.reject(new _.m1("Prefetching unregistered request builder.",H))}return Promise.reject(new _.m1("No request builder available to prefetch endpoint.",H))};
pP4=function(d,H){var K,c,p;if(_.M(H,_.AP)){var g=d.watchEndpointMap.watchNext;g&&(K=g());(d=d.watchEndpointMap.player)&&(c=d())}else if(_.M(H,_.P5))(g=d.reelWatchEndpointMap.reelItemWatch)&&(K=g()),(g=d.reelWatchEndpointMap.player)&&(c=g()),(d=d.reelWatchEndpointMap.reelWatchSequence)&&(p=d());else{a:{d=CHM(H,d.innerTubeTransportService.endpointMap);if(d!==void 0)if(typeof d.then==="function")_.z5(new _.m1("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",H));else break a;
d=void 0}d&&(K=d)}var a,e,k;return{content:(a=K)==null?void 0:a.JSC$13046_getStoreKey(H),player:(e=c)==null?void 0:e.JSC$13046_getStoreKey(H),reelSequence:(k=p)==null?void 0:k.JSC$13046_getStoreKey(H)}};
dHl=function(d,H,K,c,p,g,a){var e=_.e5(),k=d.watchEndpointMap.player;_.h("web_streaming_player")&&(k=I3(h$));k&&(k=k().JSC$13039_getRequest(H,K))&&(e=_.Qq(d.innerTubeTransportService,k.innerTubeRequest,k.input,H.clickTrackingParams,k.config));k=_.e5();var C=d.watchEndpointMap.watchNext;C&&(K=C().JSC$13039_getRequest(H,K))&&(k=_.Qq(d.innerTubeTransportService,K.innerTubeRequest,K.input,H.clickTrackingParams,K.config));d=_.e5(c);gad(H,d,e,k,p,g,a)};
vQC=function(d,H,K){return _.l(function(c){if(c.nextAddress==1)return c.yield(d,2);H.resolve(K);_.VE(c)})};
gad=function(d,H,K,c,p,g,a){var e,k,C,R,V;_.l(function(U){switch(U.nextAddress){case 1:return U.yield(H,2);case 2:e=U.yieldResult;if(g(a.promise))return a.resolve(e),U.return();p(d,e);k=iT1(d);if(!k.length){U.jumpTo(3);break}return U.yield(H,4);case 4:e.preconnect=k,p(d,e);case 3:return _.e2(U,5),U.yield(K,7);case 7:C=U.yieldResult;_.Em(U,6);break;case 5:return R=_.RV(U),a.reject(R),U.return();case 6:if(C===void 0)return e.reload=!0,p(d,e),a.resolve(e),U.return();if(g(a.promise))return a.resolve(e),
U.return();e.playerResponse=C;p(d,e);_.e2(U,8);return U.yield(c,10);case 10:V=U.yieldResult;_.Em(U,9);break;case 8:_.RV(U);case 9:if(V===void 0)return e.response={responseContext:{}},a.resolve(e),U.return();if(g(a.promise))return a.resolve(e),U.return();e.response=V;p(d,e);a.resolve(e);_.VE(U)}})};
K3S=function(d,H,K,c,p,g,a,e){var k,C,R,V,U,L;_.l(function(w){switch(w.nextAddress){case 1:return w.yield(H,2);case 2:k=w.yieldResult;if(a(e.promise))return e.resolve(k),w.return();g(d,k);C=iT1(d);if(!C.length){w.jumpTo(3);break}return w.yield(H,4);case 4:k.preconnect=C,g(d,k);case 3:return _.e2(w,5),w.yield(K,7);case 7:R=w.yieldResult;_.Em(w,6);break;case 5:return V=_.RV(w),e.reject(V),w.return();case 6:if(R===void 0)return k.reload=!0,g(d,k),e.resolve(k),w.return();if(a(e.promise))return e.resolve(k),
w.return();k.playerResponse=R;g(d,k);_.e2(w,8);return w.yield(c,10);case 10:U=w.yieldResult;_.Em(w,9);break;case 8:_.RV(w);case 9:if(U===void 0)return k.response={responseContext:{}},e.resolve(k),w.return();if(a(e.promise))return e.resolve(k),w.return();k.response=U;g(d,k);_.e2(w,11);return w.yield(p,13);case 13:L=w.yieldResult;_.Em(w,12);break;case 11:_.RV(w);case 12:if(a(e.promise))return e.resolve(k),w.return();L&&(k.reelWatchSequenceResponse=L);g(d,k);e.resolve(k);_.VE(w)}})};
$HX=function(d,H,K,c,p,g,a){var e,k,C,R,V,U;_.l(function(L){if((e=a)==null||!e.replacementEndpoint)return g.reject(),L.return();k=a.replacementEndpoint;(C=_.M(k,_.P5))?(a.sequenceContinuation&&(C.sequenceParams=a.sequenceContinuation),R=_.Kj().resolve(_.Ls),V=C.sequenceParams,ikB(R,k)&&delete C.sequenceParams,U=Q$(d,k,H,K,c,p,function(){return!1}),U.then(function(w){return _.l(function(W){if(W.nextAddress==1)return GY0(R,{reelWatchEndpoint:{sequenceParams:V}},w),W.yield(0,2);
g.resolve(w);_.VE(W)})})):g.reject();
_.VE(L)})};_.oaX=function(d){if(d.validatedFragments_.length==0)return null;if(!d.mergedPrefetchedData_){for(var H=[],K=_.q(d.validatedFragments_),c=K.next();!c.done;c=K.next()){c=_.q(d.fragmentConfiguration_[c.value].graftedKeys);for(var p=c.next();!p.done;p=c.next())(p=d.prefetchedData_[p.value].trackingParams)&&H.push(p)}d.mergedPrefetchedData_={};Object.assign(d.mergedPrefetchedData_,d.prefetchedData_,{clientSideGrafts:H})}return d.mergedPrefetchedData_};var qnN;_.wy=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
qnN=function(d,H,K){if(_.V9C(H))return d.prefetchCache_.get(_.Ui5(H,K))};_.Pm=new _.Av("NAVIGATION_TOKEN");var anU=function(d){var H=this;var K=K===void 0?FH5():K;var c=c===void 0?_.Kj().resolve(_.Pm):c;this.onePickCommand=d;this.JSC$13149_playlistNetworkManager=K;this.navigationManager=c;this.videoPickerBuilder=_.JIL("yt-addtoplaylist");_.GJU(HnA($eS(deM(this.videoPickerBuilder.setTitle(d.modalTitle).setSize(1E3).addView(cXC()).addView(K1S())).addView("youtube"),d.selectButtonLabel)),function(p){H.handleAction(p)})};
anU.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
anU.prototype.handleAction=function(d){var H=this;if(d&&this.onePickCommand.listId&&d.action==="picked"&&d.docs){var K=[];d.docs.forEach(function(c){K.push({addedVideoId:c.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13149_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,K).then(function(){_.h("playlist_add_video_hard_reload_killswitch")?H.navigationManager.reload():lnX(H.navigationManager)})}};var eMA=function(){if(this.constructor===eMA)throw new TypeError("Xf");};
_.G=eMA.prototype;_.G.dispose=function(){};
_.G.disconnect=function(){};
_.G.reconnect=function(){};
_.G.observe=function(d,H,K){return{element:d,option:K}};
_.G.unobserveByKey=function(){};var Z_E=function(d,H){H=H===void 0?0:H;eMA.call(this);this.viewroot=d;this.defaultPrescanHeight=H;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),d?{root:d,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.m(Z_E,eMA);_.G=Z_E.prototype;_.G.dispose=function(){this.disconnect();this.handlers.clear()};
_.G.disconnect=function(d){this.isConnected=!1;this.pauseObservingUntilReconnect=d===void 0?!1:d;this.observer.disconnect();d=_.q(this.prescanObservers.values());for(var H=d.next();!H.done;H=d.next())H.value.disconnect()};
_.G.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var d=_.q(this.handlers),H=d.next();!H.done;H=d.next()){var K=_.q(H.value);H=K.next().value;var c=K.next().value;K=!1;c=_.q(c.keys());for(var p=c.next();!p.done;p=c.next())if((p=p.value)&&p.state==="prescan"){K=!0;break}K&&kYl(this,H).observe(H);this.observer.observe(H)}}};
_.G.handleObserveEvent=function(d){d=_.q(d);for(var H=d.next();!H.done;H=d.next()){H=H.value;var K=this.handlers.get(H.target);if(K){var c=H.isIntersecting;K=_.q(K);for(var p=K.next();!p.done;p=K.next()){var g=_.q(p.value);p=g.next().value;g=g.next().value;p&&(p.state==="visible"&&c||p.state==="hidden"&&!c)&&(g(H.target,p.state),p.calledOnce&&this.unobserveByKey({element:H.target,option:p}))}}}};
_.G.handlePrescanEvent=function(d){d=_.q(d);for(var H=d.next();!H.done;H=d.next()){H=H.value;var K=this.handlers.get(H.target);if(K&&H.isIntersecting){K=_.q(K);for(var c=K.next();!c.done;c=K.next()){var p=_.q(c.value);c=p.next().value;p=p.next().value;c&&c.state==="prescan"&&(p(H.target,c.state),c.calledOnce&&this.unobserveByKey({element:H.target,option:c}))}}}};
_.G.observe=function(d,H,K){var c=(c=this.handlers.get(d))&&c.has(K)?{element:d,option:K}:void 0;if(c)return c;c={element:d,option:K};this.handlers.has(d)||this.handlers.set(d,new Map);var p=this.handlers.get(d);p&&!p.has(K)&&p.set(K,H);this.pauseObservingUntilReconnect||(K.state==="prescan"&&kYl(this,d).observe(d),this.observer.observe(d));return c};
_.G.unobserveByKey=function(d){var H=this.handlers.get(d.element);if(H&&H.has(d.option)){H.delete(d.option);if(d&&d.option.state==="prescan")for(var K=_.q(this.prescanObservers.values()),c=K.next();!c.done;c=K.next())c.value.unobserve(d.element);H.size===0&&(this.handlers.delete(d.element),this.observer.unobserve(d.element))}};
var kYl=function(d,H){var K=d.defaultPrescanHeight;H.hasAttribute("prescan-height")&&(H=Number(H.getAttribute("prescan-height")),isNaN(H)||(K=H));if(d.prescanObservers.has(K))return d.prescanObservers.get(K);H="-0.1px -0.1px "+K+"px -0.1px";H=new IntersectionObserver(d.handlePrescanEvent.bind(d),d.viewroot?{root:d.viewroot,rootMargin:H}:{rootMargin:H});d.prescanObservers.set(K,H);return H};var xH6=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],nal=function(){var d,H=this;this.JSC$13166_actionRouter=d=d===void 0?_.bw.getInstance():d;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return H.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return H.visibilityObservedElementHandlerKeys}}},CRN,Vx3,L3M;
nal.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.h("kevlar_use_vimio_behavior")&&_.Fm("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=TjE())};
nal.prototype.dispose=function(){this.visibilityMonitor&&_.Cq(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
nal.prototype.handleVisibilityRefreshed=function(){for(var d=_.q(this.targetMap.entries()),H=d.next();!H.done;H=d.next()){var K=_.q(H.value);H=K.next().value;K=K.next().value;_.RM3(this,H,K)}};
_.hMU=function(d,H,K){Vx3(d,K);var c=_.UH6(d,H);c.element=K;d.targetedElements.set(K,H);_.RM3(d,H,c)};
Vx3=function(d,H){var K=d.targetedElements.get(H);if(K){var c=d.targetMap.get(K);c&&(delete c.element,d.targetMap.set(K,c));d.targetedElements.delete(H);d.visibilityObserver&&d.visibilityObservedElementHandlerKeys&&(K=d.visibilityObservedElementHandlerKeys.get(H))&&(d.visibilityObserver.unobserveByKey(K),d.visibilityObservedElementHandlerKeys.delete(H))}};
_.RM3=function(d,H,K){var c=K.action,p=K.element;p&&c&&(xH6.includes(H)||_.Fm("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||d.visibilityMonitor&&d.visibilityMonitor.isNodeVisible(p)?L3M(d,H,K):d.visibilityObserver&&(d.visibilityObservedElementHandlerKeys||(d.visibilityObservedElementHandlerKeys=new WeakMap),c=d.visibilityObserver.observe(p,function(){L3M(d,H,K);d.visibilityObservedElementHandlerKeys.delete(p)},{calledOnce:!0,
state:"visible"}),d.visibilityObservedElementHandlerKeys.set(p,c)))};
L3M=function(d,H,K){var c=K.action;(K=K.element)&&c&&(_.zp(d.JSC$13166_actionRouter,[c],K),d.targetMap.delete(H),d.targetedElements.delete(K),d.triggeredTargets.add(H))};
_.UH6=function(d,H){var K=d.targetMap.get(H);K||(K={},d.targetMap.set(H,K));return K};
_.u9=function(){CRN||(CRN=new nal);return CRN};var Mxg=document.createElement("div");Mxg.style.touchAction="pan-down";var QLC=Mxg.style.touchAction==="pan-down";var mH0,wAU;mH0=function(){this.hammerFn=pId();this.JSC$13174_screenManager=_.hR();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.l8(83615);_.kR(this.JSC$13174_screenManager,this.ve);t9M()};
_.Ik=function(){wAU||(wAU=new mH0);return wAU};
mH0.prototype.registerTouchEvents=function(d,H,K){var c=_.sH.apply(3,arguments),p=this.hammerFn(d,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});K&&p.set({touchAction:K});this.nodeManagerMapping.set(d,p);var g=
Yth(H);c=_.q(c);for(var a=c.next();!a.done;a=c.next()){a=a.value;if(a.includes("swipe")||a.includes("pinch")||a.includes("pan"))a.includes("swipe")?p.get("swipe").set({enable:!0,direction:g,velocity:.2}):a.includes("pinch")?p.get("pinch").set({enable:!0}):a.includes("pan")&&(p.get("pan").set({enable:!0,direction:g}),p.get("swipe").set({enable:!0,direction:g,velocity:.2}),p.get("swipe").recognizeWith("pan"));PR3(this,d,p,a)}};
var PR3=function(d,H,K,c){K.on(c,function(p){if(c.includes("pinch"))d.lastPinchTime=Date.now();else if(c.includes("swipe")&&Date.now()-d.lastPinchTime<400)return;p.pointerType!=="mouse"&&(p=c==="doubletap"?{coordinates:p.center}:c.includes("pan")?p:c.includes("swipe")?{target:p.target}:{},H.dispatchEvent(new CustomEvent(c,{bubbles:!0,composed:!0,detail:p})))})};
mH0.prototype.unregisterTouchEvents=function(d){var H=_.sH.apply(1,arguments),K=this.nodeManagerMapping.get(d);if(K){H=_.q(H);for(var c=H.next();!c.done;c=H.next())K.off(c.value);this.nodeManagerMapping.delete(d);d.style.touchAction="unset"}};var uWA=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var O_h=null;var InC=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},iJE=function(){InC.instance||(InC.instance=new InC);
return InC.instance},G4i=function(d){var H=d.networkEvents;
d.networkEvents=[];return _.h("enable_network_monitoring")?H:[]};var rqB;rqB={};_.W3B=HM("yt-serviceworker-metadata",{objectStores:(rqB.auth={addedAtVersion:1},rqB["resource-manifest-assets"]={addedAtVersion:2},rqB),shared:!0,upgrade:function(d,H){H(1)&&t5(d,"resource-manifest-assets");H(2)&&t5(d,"auth")},
version:2});var Di1=self.location.origin+"/";fTF([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//,/\/music_integrations\/_\/js\//,/\/music_integrations\/_\/ss\//]);fTF([/purge_shell=1/]);var BOA=void 0;BOA=BOA===void 0?[]:BOA;for(var zMd=[],XA6=_.q(OnX),JqB=XA6.next();!JqB.done;JqB=XA6.next())zMd.push({key:JqB.value});for(var s_d=_.q(BOA),F33=s_d.next();!F33.done;F33=s_d.next())zMd.push(F33.value);var Zk3,Te=_.KF==null?void 0:(Zk3=_.KF.performance)==null?void 0:Zk3.memory,vx1=!1,onh={},$FY={},QS={},tc=navigator;var ry=function(d){this.JSC$13218_expiringStorage=new Pb(d)};
ry.prototype.set=function(d,H,K){K=K!==void 0?Date.now()+K:void 0;this.JSC$13218_expiringStorage.set(d,H,K)};
ry.prototype.get=function(d){return this.JSC$13218_expiringStorage.get(d)};
ry.prototype.remove=function(d){this.JSC$13218_expiringStorage.remove(d)};var Cmf=_.y$(["https://www.youtube.com/",""]),Rm4=_.y$(["https://studio.youtube.com/",""]),MW5="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",UFM=null,IF5;var TO3=_.y$(["https://www.youtube.com/iframe_api"]),Wm=function(){this.playerResolver_=_.DA();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.nV;this.playbackDurationSeconds_=0},Q_0=function(d){var H=function(){return window.YT&&typeof window.YT.ready==="function"};
if(H())return _.e5(window.YT);var K=_.DA(),c=_.x1("SCRIPT");c.onload=c.onreadystatechange=function(){c.readyState&&c.readyState!="loaded"&&c.readyState!="complete"||(c.onload=_.nV,c.onreadystatechange=_.nV,c.onerror=_.nV,H()?K.resolve(window.YT):K.reject(new _.m1("Failed to load the iframe player library","script.onload",c.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
c.onerror=function(p){c.onload=_.nV;c.onreadystatechange=_.nV;c.onerror=_.nV;K.reject(new _.m1("Failed to load the iframe player library","script.onerror",p&&p.target&&p.target.src))};
_.fc(c,_.pB(TO3));d.insertBefore(c,d.firstChild);return K.promise},txl=function(d,H,K){var c,p;
_.l(function(g){switch(g.nextAddress){case 1:return d.playbackEndedCallback_=K,_.e2(g,2),g.yield(Q_0(H.parentElement||null),4);case 4:c=g.yieldResult;_.Em(g,3);break;case 2:return p=_.RV(g),p instanceof _.m1&&p.args&&p.args[0]=="script.onerror"?_.Jf(p):_.z5(p),g.return();case 3:c.ready(function(){return new c.Player(H,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:d.onPlayerReady_.bind(d),onStateChange:d.onPlayerStateChange_.bind(d),
onCueRangeExit:d.onCueRangeExit_.bind(d)}})}),_.VE(g)}})};
_.G=Wm.prototype;_.G.getPlayerPromise=function(){return this.playerPromise_};
_.G.onPlayerReady_=function(d){this.playerResolver_.resolve(d.target)};
_.G.onPlayerStateChange_=function(d){if(d.data==YT.PlayerState.PLAYING){d=d.target;var H=d.getCurrentTime();d.addCueRange("playback",H,H+this.playbackDurationSeconds_)}};
_.G.onCueRangeExit_=function(d){d.data=="playback"&&(d.target.stopVideo(),this.playbackEndedCallback_())};
_.G.stopVideo=function(){this.playerPromise_.then(function(d){d.stopVideo()})};
var Yn6=function(d){d.playerVars_&&d.playerPromise_.then(function(H){typeof H.cueVideoByPlayerVars!="function"?_.Jf(new _.m1("vmh: player API not ready","cueVideoByPlayerVars",typeof H.cueVideoByPlayerVars)):H.cueVideoByPlayerVars(d.playerVars_)})};
Wm.prototype.playVideo=function(){var d=this;this.playerVars_&&this.playerPromise_.then(function(H){typeof H.loadVideoByPlayerVars!="function"?(H=new _.m1("vmh: player API not ready","loadVideoByPlayerVars",typeof H.loadVideoByPlayerVars),_.z5(H)):H.loadVideoByPlayerVars(d.playerVars_)})};
var OkS=function(d,H,K,c,p){H&&(K===void 0&&(K=0),c===void 0&&(c=0),d.playbackDurationSeconds_=c/1E3,d.playerVars_={adformat:"17_8",videoId:H,suggestedQuality:"hd720",startSeconds:K/1E3,player_params:p})};
Wm.prototype.mute=function(){this.playerPromise_.then(function(d){d.mute()})};
Wm.prototype.unMute=function(){this.playerPromise_.then(function(d){d.unMute()})};var Snl=function(d,H){var K=Oo();d||(d="unknown");H||(H="unknown");d="MAIN_APP_WEB_PAGE_TYPE_"+d.toUpperCase();d in HTB||(d="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");H="MAIN_APP_WEB_REQUEST_TYPE_"+H.toUpperCase();H in $sC||(H="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.iE(K,{mainAppWeb:{pageType:d,requestType:H,isShellLoad:_.Qx("IS_SHELL_LOAD",!1)}})},EaX={start:function(){_.iE(EFL(),{mainAppWeb:_.Nv()})},
success:function(){_.GH(EFL(),"SUCCESS")},
failure:function(){_.GH(EFL(),"FAILURE")},
cancelled:function(){_.GH(EFL(),"CANCELLED")}};var yq0,bkN,FLl;yq0=_.y$(["/sw.js"]);bkN=_.y$(["/sw.js?0"]);_.NOd=_.pB(yq0);FLl=_.pB(bkN);var DHX=function(){var d=Error.apply(this,arguments);this.message=d.message;"stack"in d&&(this.stack=d.stack)};
_.m(DHX,Error);_.Ac.prototype.load=function(d){this.megabloxUrl_=_.Fm("YPC_MB_URL");_.SM(this.megabloxUrl_,(0,_.LA)(function(){d&&d()},this))};
_.s8h=function(d,H,K,c,p,g,a,e,k,C,R){_.Tbf(k);d.load((0,_.LA)(function(){try{var V=g?g:_.Fm("HL"),U=_.Fm("SESSION_INDEX");_.MLL("client",function(){bAC("59",{helpCenterPath:"/youtube",locale:V,window:window}).JSC$9946_loadChatSupport({authuser:String(U)})})}catch(L){throw D8(10,R,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),p&&p(L),_.z5(L),L;
}fnl(this,H,K,c,p,g,a,e,k,C,R)},d))};
_.Ac.prototype.openFixFlowDialog=function(d,H,K,c){this.load((0,_.LA)(function(){try{Aq0(this,_.OS("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(d).withIntegratorCallback(H).load(K,c)}catch(p){throw _.z5(p),p;}},this))};
var Aq0=function(d,H,K,c){var p=H.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.h("enable_window_constrained_buy_flow_dialog")&&(p=p.usingPopupStyle(_.OS("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));c&&(p=p.usingCloseCallback(c));H.bootstrap.fromPaymentsUrl(d.megabloxUrl_);d=H.bootstrap.asMashupMode(p);K=K?K:_.Fm("HL");d.usingGaiaIndex(_.Fm("SESSION_INDEX")).usingLocale(K).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.h("enable_google_payments_buyflow_material2_style_web")?
d.usingStyle(":m2;pc=#444;ac=#065fd4"):d.usingStyle(":md;pc=#444;ac=#065fd4");return d},fnl=function(d,H,K,c,p,g,a,e,k,C,R){try{var V=_.OS("payments.business.integration");
if(!V)throw new DHX("payments.business.integration is undefined");var U=V.standaloneContextAuthId.forUserId(),L=Aq0(d,V,g,function(){tW5(!1);e&&e()});
a&&L.usingServerAnalyticsEventHandler(a);var w=L.inStandaloneContext(U).buyFlow(function(W){if(W&&(!W.integratorData||W.integratorData===""||W.error))if(W.error!=null)if(String(W.error)==="-1")_.Qa1(k);else{var J=String(W.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";D8(10,R,J,W.debugCode);_.fm(J,k,W.debugCode);J=new _.m1("PAYMENT_ERROR_MESSAGE::"+W.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+W.internalErrorDetails);
_.z5(J)}else D8(10,R,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.fm("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",k,"EMPTY_INTEGRATOR_DATA"),_.z5(Error("bg"));K&&(tW5(!1),K(W))}).withEncryptedParameters(H);
C&&w.withClientParameters(DyC(_.XYM(C)));w.load(function(){D8(24,R);_.TT("ttc",void 0,"commerce_transaction");JO("commerce_transaction");c&&(c(),tW5(!0))},function(W){if(W==null?0:W.debugCode)var J=W==null?void 0:W.debugCode;
else if(!W||(W==null?0:W.debugCode))J="EMPTY_LOAD_FAILURE_ERROR",_.z5(Error(J));else{J="EMPTY_LOAD_FAILURE_DEBUG_CODE";var F=new _.m1("LOAD_FAILURE:"+W.message," DEBUG_CODE:"+J);_.z5(F)}D8(10,R,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",J);_.fm("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",k,J);_.z5(W);p&&p(W)})}catch(W){throw W instanceof DHX&&(D8(10,R,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),p&&p(W)),_.z5(W),W;
}};var j_S;j_S=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.z2X=function(d,H){H=H===void 0?!1:H;d=j_S.test(d)?_.hL(d):null;!H&&window.payments||!d?(d=_.DA(),H=d.promise,d.resolve()):H=_.zdS(d,{attributes:{"data-payments-main":"",id:"payment-lib"}});return H};var vad;vad=_.y$(["//www.googletagmanager.com/gtm.js?id=",""]);_.Bm=function(d,H){_.pf(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:H}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Fm("GL")}),H=_.x1("SCRIPT"),H.async=!0,_.fc(H,_.pB(vad,d)),H.id="gtm",d=document.getElementsByTagName("script"),d.length==0?document.head.appendChild(H):(d=d[0],d.parentNode.insertBefore(H,d)))};
_.zt=function(d){if(d=JSON.parse(d))window.dataLayer=window.dataLayer||[],window.dataLayer.push(d)};var dxU,HWX;dxU=_.y$(["https://clients2.google.com/gr/gr_sync.js"]);_.WQD=function(){};
_.WQD.prototype.init=function(){if(HWX()){var d=_.DA();d.resolve();return d.promise}return _.zdS(_.pB(dxU)).then(function(){if(!HWX())throw Error("cg");},function(){throw Error("dg");
})};
_.B6M=function(){if(!HWX())return"";var d=window.google.gr;d.init({async:{schedule:"sync"},merchantId:"youtube"});d.start();d=d.finish();return d==null?"":d};
HWX=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.B=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.m(_.B,PolymerFakeBaseClassWithoutHtml);_.hB=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.m(_.hB,PolymerFakeBaseClassWithoutHtml);var Yg4=window.ShadyDOM;var LDF,UE5,mE5,w2Y,uY1,IMY,XT,is;LDF=_.h("enable_shadydom_free_scoped_query_methods");UE5=_.h("enable_shadydom_free_scoped_node_methods");mE5=_.h("enable_shadydom_free_scoped_readonly_properties_batch_one");w2Y=_.h("enable_shadydom_free_parent_node");uY1=_.h("enable_shadydom_free_children");IMY=_.h("enable_shadydom_free_last_child");XT=window.ShadyDOM;_.ls=XT&&XT.noPatch&&XT.wrap?XT.wrap:XT?function(d){return XT.patch(d)}:function(d){return d};
is=function(d){if(d instanceof ShadowRoot)this.host=(0,_.ls)(d.host),this.root=d;else if(d.$$){this.host=(0,_.ls)(d);var H;this.root=(H=d.root)!=null?H:this.host}else if(d.polymerController){this.host=(0,_.ls)(d);var K;this.root=(K=this.host.shadowRoot)!=null?K:this.host}else this.root=this.host=(0,_.ls)(d)};
hUf();MwM();ryE();WDE();PNl();var $x7={querySelector:function(d,H){H=SgY(H,Hj(d));d=_.$f(d);return KK(d).prototype.querySelector.call(d,H)},
querySelectorAll:function(d,H){H=SgY(H,Hj(d));d=_.$f(d);return KK(d).prototype.querySelectorAll.call(d,H)}},KP3={appendChild:function(d,H){var K=Hj(d),c=_.d4(H);
return _.RUC(_.$f(d),K?_.pK(H,K,c):H)},
cloneNode:function(d,H){var K=_.d4(d);d=_.$f(d);H=KK(d).prototype.cloneNode.call(d,H);return K?g4(H,K):H},
contains:function(d,H){var K=Hj(d),c=_.d4(H);return K!==c?!1:VwX(d,H)},
insertBefore:function(d,H,K){var c=Hj(d),p=_.d4(H);d=_.$f(d);H=c?_.pK(H,c,p):H;return KK(d).prototype.insertBefore.call(d,H,K)},
removeChild:function(d,H){var K=Hj(d);d=_.$f(d);H=K?g4(H,K):H;return KK(d).prototype.removeChild.call(d,H)},
replaceChild:function(d,H,K){var c=Hj(d),p=_.d4(H);H=c?_.pK(H,c,p):p?g4(H,p):H;K=c?g4(K,c):K;d=_.$f(d);return KK(d).prototype.replaceChild.call(d,H,K)},
getRootNode:function(d,H){H=H===void 0?{composed:!0}:H;var K;if(((K=H)!=null?K:{}).composed)d=HQ5(d);else{H=d;for(d=yVF(d);d;)H=d,d=NbL(d);d=H}return d}},zUM=mE5?{firstChild:lMl,
nextSibling:oAF,previousSibling:aMl,firstElementChild:eUl,lastElementChild:xE5,nextElementSibling:Gsl,previousElementSibling:qxM,childNodes:nA1}:{};w2Y&&(zUM.parentNode=iQY);uY1&&(zUM.children=CN1);IMY&&(zUM.lastChild=ksf);LDF&&B$1($x7);UE5&&B$1(KP3);X2h();var Jyf=function(d){this.node=d instanceof ShadowRoot?d.host:d};
sX5();FDL();var QXi=new WeakMap;var Yxh=Symbol("ud");var bQf=new Set(["tap","track","down","up"]),N$5=_.h("pbcm_fi_query_decorators");var J$=function(){return _.hB.apply(this,arguments)||this};
_.m(J$,_.hB);_.G=J$.prototype;_.G.getState=function(){return this.store.getState()};
_.G.dispatch=function(d){this.store.dispatch(d)};
_.G.beforeRegister=function(){if(this&&typeof this==="object"){var d;var H=!!this.useSignals||!((d=this.polymerController)==null||!d.useSignals)}else H=!1;if(!H&&this.properties)for(H=_.q(Object.keys(this.properties)),d=H.next();!d.done;d=H.next()){var K=d.value;d=this.properties[K];if(d.selector){if(d.computed)throw Error("jg");K=["reduxPropertiesRecomputeTrigger",'"'+K+'"'].concat(_.ru(d.selectorArgs||[])).join(",");d.computed="recomputeReduxSelector("+K+")"}}};
_.G.attached=function(){var d=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){d.reduxPropertiesRecomputeTrigger++}));
_.h("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.G.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.G.recomputeReduxSelector=function(d,H){var K=_.sH.apply(2,arguments),c=this.properties[H].selector;if(!c)throw Error("hg`"+H);return c.apply(null,[this.store.getState()].concat(_.ru(K)))};
_.G.select=function(d){var H=_.sH.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return d.apply(null,[this.store.getState()].concat(_.ru(H)))};
_.H3.Object.defineProperties(J$.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ig");}}});
J$.prototype.recomputeReduxSelector=J$.prototype.recomputeReduxSelector;_.t([_.r(),_.O("design:type",Number)],J$.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.t([_.LK()],J$);var ss=[],jXE={},FQ=function(){return KO.apply(this,arguments)||this};
_.m(FQ,KO);FQ.prototype._addPropertyEffect=function(d,H,K){if(H==="__observeEffects"&&K){var c,p=(c=K.info.method)!=null?c:K.info.methodName;if(p){var g=this[p];this[p]=function(){ss.push(p);try{g==null||g.apply(this,arguments)}finally{ss.pop()}}}}_.Ms._addPropertyEffect.apply(this,[d,
H,K])};
FQ.prototype._setPendingProperty=function(d,H,K){if(ss.length){var c=ss[ss.length-1],p;(p=jXE[this.is])!=null&&p.has(c)||(vA4(this.is,c),_.Wd("polymerPropertyChangedInObserver",{componentName:this.is,observerName:c}))}return _.Ms._setPendingProperty.apply(this,[d,H,K])};
_.t([wri()],FQ);var dzC=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),$zY,w4={};_.h("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=w4);var Wj=function(){return _.hB.apply(this,arguments)||this};
_.m(Wj,_.hB);Wj.prototype._setUnmanagedPropertyToNode=function(d,H,K){d.loggingStatus&&(d.loggingStatus.isDeclarativeExternal=!0);if(K!==d[H]||typeof K==="object")d[H]=K;d.is&&d.polymerController&&d.polymerController!==d&&Pj(d.is,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");d.loggingStatus&&(d.loggingStatus.isDeclarativeExternal=!1)};
_.t([_.LK()],Wj);HgF()&&(O_.prototype._setUnmanagedPropertyToNode=(new Wj)._setUnmanagedPropertyToNode);_.nQ5={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(d){},set polymerController(d){}}]};var sI=function(){var d=KO.apply(this,arguments)||this;d.json=function(){};
return d};
_.m(sI,KO);sI.prototype.equals=function(d,H){return d===H};
sI.prototype.isEmpty=function(d){var H;(H=!d)||(H=_.O5(d)&&d.length===0);return H};
_.t([wri()],sI);var c7A=function(d){d=LC5(d);Zv.call(this,d)};
_.m(c7A,Zv);c7A.prototype.addProvider=function(d){d=d.key?d:LC5([d])[0];var H=this.keyIdToIndex.get(d.key.id);if(H){if(igF(d,this.providers[H]))throw Error("kg`"+d.key.displayName);}else Zv.prototype.addProvider.call(this,d)};
var pOU=new c7A([]);var gg0=!1;var ePf={};gg0||(lsF(),gg0=!0);
ePf.InjectBehavior={initializeInjection:function(){var d=this.provide;try{if((d=d!=null?d:[])&&d.length>0)for(var H=LC5(d),K=_.q(H),c=K.next();!c.done;c=K.next())pOU.addProvider(c.value);var p=new Set;GXl(this.behaviors||[],p);H={};for(var g=_.q(p),a=g.next();!a.done;a=g.next()){var e=a.value;e.inject&&Object.assign(H,e.inject)}this.inject&&Object.assign(H,this.inject);for(var k=_.q(Object.keys(H)),C=k.next();!C.done;C=k.next()){var R=C.value,V=H[R];try{this[R]=pOU.resolve(V)}catch(U){throw U;}}}catch(U){throw Error(U.message);
}}};var xzh;var ClD=/\bclass\b/.test(function(){}.toString()),Uz1=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var iWg=function(d){this.wasDefined=!0;Array.isArray(d)||d instanceof Array?(this.JSC$13347_getImpl=d[0],this.JSC$13347_setImpl=d[1]):this.JSC$13347_getImpl=d};
_.G=iWg.prototype;_.G.getWithPath=function(d){return M6l(this.JSC$13347_getImpl(),d)};
_.G.setWithPath=function(d,H){var K=this;if(d.length)throw Error("lg");if(!this.JSC$13347_setImpl)throw Error("mg");km(function(){K.JSC$13347_setImpl(H)})};
_.G.notifyPath=function(){throw Error("ng");};
_.G.notifySplices=function(){throw Error("og");};
_.G.getChangeRecordSignal=function(d,H){var K=this;if(d.length)throw Error("pg");return function(){var c=K.getWithPath(d);return{path:H!=null?H:"",base:c,value:c}}};
_.G.getSplicesSignal=function(){throw Error("qg");};
_.G.getPathMutationSignal=function(){throw Error("rg");};
_.G.pop=function(){throw Error("sg");};
_.G.push=function(){throw Error("tg");};
_.G.splice=function(){throw Error("ug");};
_.G.unshift=function(){throw Error("vg");};var FT=function(d){var H=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(d)||d instanceof Array?(this.JSC$13352_getImpl=d[0],this.JSC$13352_setImpl=d[1]):this.JSC$13352_getImpl=d;this.wasDefined=!1;ij(function(){H.wasDefined=H.JSC$13352_getImpl()!==void 0})};
FT.prototype.getWithPath=function(d){return M6l(this.JSC$13352_getImpl(),d)};
FT.prototype.setWithPath=function(d,H){var K=this;if(d[d.length-1]!=="*"&&d[d.length-1]!=="splices"){var c=ij(function(){return K.getWithPath([])});
if(d.length===0){if(!this.JSC$13352_setImpl)throw Error("wg");if(c===H)return;this.wasDefined||(this.wasDefined=H!==void 0);km(function(){K.JSC$13352_setImpl(H)})}else{for(var p=0;p<d.length-1;p++){if(!c)return;
c=c[d[p]]}p=d[d.length-1];c&&(c[p]=H);this.wasDefined||(this.wasDefined=d.length>1||H!==void 0)}GMX(this,d,{pathComponents:d,value:H})}};
FT.prototype.notifyPath=function(d,H){d.length===0?H&&this.setWithPath(d,H.value):GMX(this,d,{pathComponents:d,value:H==null?void 0:H.value,fallbackWhenUndefined:H==null?void 0:H.value})};
var GMX=function(d,H,K,c){if(d.setMutationSignal){var p=++d.mutationIndex,g=[d.observedPath],a=d.observedPath,e;H.length===0&&(e=a);for(var k=0;k<H.length;k++){var C=a.subPaths[H[k]];if(!C)break;g.push(C);a=C;k===H.length-1&&(e=C)}for(H=!1;g.length;)a=g.shift(),a.data={index:p,mutation:K,spliceMutationIndex:c},H||(H=a===e),H&&g.push.apply(g,_.ru(Object.values(a.subPaths)));km(function(){d.setMutationSignal(p)})}};
FT.prototype.notifySplices=function(d,H){var K=this,c=ij(function(){return K.getWithPath(d)}),p=[].concat(_.ru(d),["splices"]);
GMX(this,p,{pathComponents:p,value:{indexSplices:H}});if(c==null?0:c.length)H=this.mutationIndex,p=[].concat(_.ru(d),["length"]),GMX(this,p,{pathComponents:p,value:c.length},H)};
var ogd=function(d,H,K,c,p,g){d.notifySplices(K,[{index:c,addedCount:p,removed:g,object:H,type:"splice"}])},qwX=function(d,H){d=d.observedPath;
for(var K=0;K<H.length;K++){var c=H[K],p=d.subPaths[c];p||(p={pathComponents:H.slice(0,K+1),subPaths:{}},d.subPaths[c]=p);d=p}},l_B=function(d,H,K){qwX(d,H);
if(!d.getMutationSignal){var c=_.q(_.GO(d.mutationIndex,void 0,"sNBMCd"));d.getMutationSignal=c.next().value;d.setMutationSignal=c.next().value}var p=d.getMutationSignal;return _.ey(function(){p();return K(a_l(d,H))},void 0,"zvsXEd")};
FT.prototype.getChangeRecordSignal=function(d,H){var K=this,c=this.mutationIndex,p;return l_B(this,d,function(g){if(g&&g.index>c){var a=g.mutation;c=g.index;p=void 0}g=ij(function(){return K.getWithPath(d)});
if(a){var e=a.pathComponents[a.pathComponents.length-1],k=[].concat(_.ru(a.pathComponents));if(e==="splices"||e==="length")return{base:g,path:(H?[H].concat(_.ru(k)):k).join("."),value:a.value};var C=d.length>k.length?d:k,R;return{base:g!=null?g:a.fallbackWhenUndefined,path:(H?[H].concat(_.ru(C)):C).join("."),value:(R=ij(function(){return K.getWithPath(C)}))!=null?R:a.fallbackWhenUndefined}}p||(p={base:g,
path:(H?[H].concat(_.ru(d)):d).join("."),value:g});return p})};
FT.prototype.getSplicesSignal=function(d){var H=this.mutationIndex,K;return l_B(this,d,function(c){if(c&&c.index>H&&c.spliceMutationIndex!==H){var p=c.mutation;H=c.index;K=void 0}return p&&p.pathComponents[p.pathComponents.length-1]==="splices"?K=c=p.value:K})};
FT.prototype.getPathMutationSignal=function(d){var H=this;qwX(this,d);if(!this.getMutationSignal){var K=_.q(_.GO(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=K.next().value;this.setMutationSignal=K.next().value}var c=this.getMutationSignal,p=this.mutationIndex,g;return _.ey(function(){c();var a=a_l(H,d);if(a&&a.index>p&&a.mutation&&mzL(a.mutation.pathComponents,d)){var e=a.mutation;p=a.index}if(!g||p!==g.index){var k,C;a=(C=ij(function(){return H.getWithPath(d)}))!=null?C:(k=e)==null?
void 0:k.fallbackWhenUndefined;
g={index:p,value:a}}return g},void 0,"RXYC9b")};
var a_l=function(d,H){d=d.observedPath;H=_.q(H);for(var K=H.next();!K.done;K=H.next())d=d.subPaths[K.value];return d.data};
FT.prototype.pop=function(d){var H=this,K=ij(function(){return H.getWithPath(d)});
if(!(K instanceof Array))throw Error("xg");var c=K.length>0,p=K.pop();c&&ogd(this,K,d,K.length,0,[p]);return p};
FT.prototype.push=function(d){var H=_.sH.apply(1,arguments),K=this,c=ij(function(){return K.getWithPath(d)});
if(!(c instanceof Array))throw Error("yg");var p=c.length,g=c.push.apply(c,_.ru(H));H.length&&ogd(this,c,d,p,H.length,[]);return g};
FT.prototype.splice=function(d,H,K){var c=_.sH.apply(3,arguments),p=this,g=ij(function(){return p.getWithPath(d)});
if(!(g instanceof Array))throw Error("zg");H<0?H=g.length-Math.floor(-H):H&&(H=Math.floor(H));var a=g.splice.apply(g,[H,K].concat(_.ru(c)));(c.length||a.length)&&ogd(this,g,d,H,c.length,a);return a};
FT.prototype.unshift=function(d){var H=_.sH.apply(1,arguments),K=this,c=ij(function(){return K.getWithPath(d)});
if(!(c instanceof Array))throw Error("Ag");var p=c.unshift.apply(c,_.ru(H));H.length&&ogd(this,c,d,0,H.length,[]);return p};var Zf=function(d,H,K){this.model=d;this.unknownSignalResolver=H;this.options=K;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];H=_.q(Xhi());d=H.next().value;H=H.next().value;this.owner=d;this.disposeImpl=H};
Zf.prototype.dispose=function(){if(!this.isDisposed){for(var d=_.q(this.childSignalProxies),H=d.next();!H.done;H=d.next())H.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var e83=function(d,H){d=_.N_(d.owner);try{H()}finally{_.N_(d)}};
Zf.prototype.effect=function(d){e83(this,function(){_.rc(d)})};
var kM6=function(d,H){d.options!=null||(d.options={});var K;(K=d.options).immutableProps!=null||(K.immutableProps=new Set);d.options.immutableProps.add(H)},pAF=function(d,H){H=""+H;
xxl(d,H);var K,c;if((K=d.options)==null?0:(c=K.immutableProps)==null?0:c.has(H))return!0;var p;if((p=d.model.__signalCache)==null?0:p.has(H))K=d.model.__signalCache.get(H),Array.isArray(K)&&kM6(d,H);var g,a,e;return(e=(g=d.options)==null?void 0:(a=g.immutableProps)==null?void 0:a.has(H))!=null?e:!1},ng7=function(d,H){var K;
d.unknownSignalResolver&&(K=d.unknownSignalResolver(H));var c,p;((c=d.options)==null?0:(p=c.immutableProps)==null?0:p.has(H))?K!=null||(K=new iWg(_.GO(d.model[H],void 0,"By5iP"))):K!=null||(K=new FT(_.GO(d.model[H],void 0,"CXghNc")));var g=d.model.hostElement;Object.defineProperty(d.model,H,{get:function(){cYf(g,H);return K.getWithPath([])},
set:function(a){r4(g,H);d.setWithPath([H],a)},
configurable:!0});return K},xxl=function(d,H){var K,c,p;
((K=d.model.__signalCache)==null||!K.has(H))&&((c=d.options)==null?0:(p=c.externalSignalProps)==null?0:p.has(H))&&d.model[H]},tB=function(d,H){H=""+H;
var K=d.signalCache[H];if(K!==void 0)return K;K=!1;xxl(d,H);var c;if((c=d.model.__signalCache)==null?0:c.has(H))if(K=d.model.__signalCache.get(H),Array.isArray(K))K=!0,kM6(d,H);else return d.signalCache[H]=d.model.__signalCache.get(H).signal,d.signalCache[H];var p,g;c=(g=(p=d.options)==null?void 0:p.reactivityMode)!=null?g:0;var a,e;if(!((a=d.options)==null?0:(e=a.reactiveProps)==null?0:e.has(H))&&!K&&c===1)throw Error("Bg`"+H);p=K?C0M(d,H):ng7(d,H);return d.signalCache[H]=p},C0M=function(d,H){var K=
Object.getOwnPropertyDescriptor(d.model.constructor.prototype,H),c=function(){return d.model[H]};
return new iWg(K&&K.get&&!K.set?c:[c,function(p){d.model[H]=p}])};
Zf.prototype.getWithPath=function(d){var H=_.q(d);d=H.next().value;H=E8(H);cYf(this.model.hostElement,""+d);return tB(this,d).getWithPath(H)};
Zf.prototype.setWithPath=function(d,H){if(d.length){r4(this.model.hostElement,d.join("."));var K=_.q(d);d=K.next().value;K=E8(K);tB(this,d).setWithPath(K,H)}};
Zf.prototype.getPathMutationSignal=function(d){var H=_.q(d);d=H.next().value;H=E8(H);return tB(this,d).getPathMutationSignal(H)};
Zf.prototype.notifyPath=function(d,H){var K=_.q(d);d=K.next().value;K=E8(K);tB(this,d).notifyPath(K,H)};
var R8C=function(d,H){if(H.type==="literal")return function(){return{rootWasDefined:!0,value:H.value}};
var K=Tn(H.path),c=_.q(K),p=c.next().value;c=E8(c);var g,a;if(H.type==="path"&&(K.length===1||((g=d.options)==null?0:(a=g.immutableProps)==null?0:a.has(p))))return function(){var V=d.getWithPath(K.slice(0,1));V=M6l(V,K.slice(1));return{rootWasDefined:tB(d,K[0]).wasDefined,value:V}};
var e=tB(d,p);if(H.type==="path"){var k=e.getPathMutationSignal(c);return function(){var V,U=(V=k())==null?void 0:V.value;return{rootWasDefined:e.wasDefined,value:U}}}if(H.type==="splices"){var C=e.getSplicesSignal(c);
return function(){var V=C();return{rootWasDefined:e.wasDefined,value:V}}}var R=e.getChangeRecordSignal(c,""+p);
return function(){var V=R();return{rootWasDefined:e.wasDefined,value:V}}},Wvh=function(d,H,K){var c=K.map(function(e){return R8C(d,e)}),p=K.length===0,g=[],a=K.length!==1||K[0].type!=="path"?!1:!0;
d.effect(function(){for(var e=c.length,k=[],C=!!g.length,R=0;R<e;R++){var V=c[R](),U=V.rootWasDefined;V=V.value;p||(p=U);k[R]=V;a&&(k[R+e]=C?g[R]:k[R],g[R]=V)}p&&Wk(d.owner,function(){return void H.apply(null,_.ru(k))})})},whl=function(d,H,K,c,p){var g=tB(d,H);
p!==void 0&&g.setWithPath([],p);Wvh(d,function(){var a=_.sH.apply(0,arguments);r4(d.model.hostElement,H,!0);g.setWithPath([],K.apply(null,_.ru(a)))},c)};
Zf.prototype.arrayPush=function(d){var H=_.sH.apply(1,arguments),K=_.q(d),c=K.next().value;K=E8(K);c=tB(this,c);return c.push.apply(c,[K].concat(_.ru(H)))};
Zf.prototype.arraySplice=function(d,H,K){var c=_.sH.apply(3,arguments),p=_.q(d),g=p.next().value;p=E8(p);g=tB(this,g);return g.splice.apply(g,[p,H,K].concat(_.ru(c)))};
Zf.prototype.arrayUnshift=function(d){var H=_.sH.apply(1,arguments),K=_.q(d),c=K.next().value;K=E8(K);c=tB(this,c);return c.unshift.apply(c,[K].concat(_.ru(H)))};
Zf.prototype.notifySplices=function(d,H){var K=_.q(d);d=K.next().value;K=E8(K);tB(this,d).notifySplices(K,H)};var V4U=!0,Uxl=!1,ggD=!1,h86=!1,LPB=0;h86=!1;LPB=0;V4U=!0;Uxl=ggD=!1;var QMl=/([^\s]+?)\(([\s\S]*)\)/,Fv1=/\.([^.]+)$/,Yd5=/\\,/g,JYL=/&comma;/g,sMY=/\\(.)/g,t6E=[],ZgX={"*":"wildcard",splices:"splices"};var jMM=RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g"),Nw4=/[A-Z]/,M4g=["class","hidden","id","on-dom-change"],dH4=new Set([].concat(_.ru(M4g),
["if","notify-dom-change","restamp"])),HkE=new Set([].concat(_.ru(M4g),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),$HF=new Set(["restamp"]);var $2C=new Set(["className","id"]);var ikF=Symbol(),kY4=window;var L31=window;var rqF=0,wAf=0,Yf=[],InE=0,mHD=!1,uWh=document.createTextNode("");(new window.MutationObserver(PRL)).observe(uWh,{characterData:!0});var SO=new Map,OI=0,mxl=function(d){this.mappedHandleId=d},BOh=function(d,H,K,c){this.mappedHandleId=d;
var p=this;this.mappedHandleId=d;this.callback=H;this.waitTime=K;this.schedulerPriority=c;this.handleId=_.Xp.addJob(function(){p.callback();SO.delete(p.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.m(BOh,mxl);BOh.prototype.cancel=function(){_.Xp.cancelJob(this.handleId);SO.delete(this.mappedHandleId)};
var zMY=function(d,H){this.mappedHandleId=d;var K=this;this.mappedHandleId=d;this.callback=H;this.handleId=W3F(function(){K.callback();SO.delete(K.mappedHandleId)})};
_.m(zMY,mxl);zMY.prototype.cancel=function(){var d=this.handleId-wAf;d<0||Yf.length<=d||(Yf[d]=null);SO.delete(this.mappedHandleId)};var F3L=function(){};
F3L.prototype.cancel=function(){this.jobHandle!==void 0&&(XAX(this.jobHandle),this.jobHandle=void 0)};
F3L.prototype.run=function(d,H,K){var c=this;this.cancel();this.callback=d;this.jobHandle=_.EI(function(){d();c.callback=void 0},H,K)};
F3L.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var JqF=new WeakMap;var wOB=fb(function(d){for(var H=d,K=0;K<3;K++)H=Object.getPrototypeOf(H);delete H.prototype.connectedCallback;var c=function(){return d.apply(this,arguments)||this};
_.m(c,d);c.prototype._attachDom=function(p){if(!p)return null;var g=(0,_.ls)(this.hostElement);g.attachShadow({mode:"open",shadyUpgradeFragment:p});g.shadowRoot.appendChild(p);return g.shadowRoot};
c.prototype._takeAttributes=function(){for(var p=this.hostElement.attributes,g=0;g<p.length;g++){var a=p[g],e=void 0,k=void 0;(k=(e=this).__attributeReaction)==null||k.call(e,a.name,null,a.value)}};
c.prototype._readyClients=function(){d.prototype._readyClients.call(this);this.root=this};
c.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);d.prototype.connectedCallback.call(this)};
_.H3.Object.defineProperties(c,{template:{configurable:!0,enumerable:!0,get:function(){return c.prototype._template}}});
return c}),P0X=fb(function(d){var H=function(){return d.apply(this,arguments)||this};
_.m(H,d);H.prototype.created=function(){if(this.__notifyEffects)for(var K=_.q(Object.values(this.__notifyEffects)),c=K.next();!c.done;c=K.next()){c=_.q(c.value);for(var p=c.next();!p.done;p=c.next())p.value.fn=tx4}if(this.__reflectEffects)for(K=_.q(Object.values(this.__reflectEffects)),c=K.next();!c.done;c=K.next())for(c=_.q(c.value),p=c.next();!p.done;p=c.next())p.value.fn=YnX};
H.prototype._addEventListenerToNode=function(K,c,p){K=bs(K);s_(K,c,p)||d.prototype._addEventListenerToNode.call(this,K,c,p)};
H.prototype._removeEventListenerFromNode=function(K,c,p){K=bs(K);Fx(K,c,p)||d.prototype._removeEventListenerFromNode.call(this,K,c,p)};
H.prototype._propertiesChanged=function(K,c,p){if(this.__dataToNotify&&this.__notifyEffects)for(var g=_.q(Object.keys(this.__dataToNotify)),a=g.next();!a.done;a=g.next()){a=a.value;var e=Q_D(a);this.__notifyEffects[e]||delete this.__dataToNotify[a]}else this.__dataToNotify=null;d.prototype._propertiesChanged.call(this,K,c,p)};
H.prototype.fire=function(K,c,p){c=c===void 0?{}:c;var g;return _.GT(bs((g=p==null?void 0:p.node)!=null?g:this),K,c,p)};
H.prototype._ensureAttribute=function(K,c){var p=bs(this);p.hasAttribute(K)||QP(p,c,K)};
H.prototype.isLightDescendant=function(K){var c=bs(this);return bs(c)!==K&&_.Gn(c).contains(K)&&_.Gn(c).getRootNode()===_.Gn(K).getRootNode()};
return H});
_.LN.ready=function(){var d;((d=this.hostElement)!=null?d:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var H;((H=this.hostElement)!=null?H:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.WZ._subscribeIronResize=function(d){var H;((H=d.hostElement)!=null?H:d).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.WZ._unsubscribeIronResize=function(d){var H;((H=d.hostElement)!=null?H:d).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var EaF=[Array,Boolean,Date,Number,Object,String],DV=function(d,H,K,c){this.polySiInfo=d;this.polySiParams=H;this.polySiContext=K;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;c||this instanceof HTMLElement&&(c=this);if(!c)throw Error("Ig");this.allowedProps=H.allowedProps;this.hostElement=c;this.is=d.is;this.upgradeDisabled=!!H.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");d=new Set(H.reactiveSchemas.filter(function(p){return p.type!==
"observe"}).map(function(p){return p.propertyKey}));
this.signalProxy=new Zf(this,void 0,{reactiveProps:d,reactivityMode:H.reactivityMode});this.__dataHasAccessor={};H=_.q(H.reactiveSchemas);for(d=H.next();!d.done;d=H.next())d=d.value,d.type==="signal"&&(this.__dataHasAccessor[d.propertyKey]=!0);this.upgradeDisabled||ulC(this)};
DV.prototype.getExtraMethodsToForward=function(){return[]};
var ulC=function(d){d.polySiContext.didRegister||(d.registered(),d.polySiContext.didRegister=!0);d.polySiContext.finalizedTemplate||(d.polySiContext.finalizedTemplate={},d.polySiParams.templateGetter&&(d.polySiContext.finalizedTemplate.processedTemplate=Mxi(d.polySiParams.templateGetter,d.polySiParams.is)));I_3(d);var H=d.hostElement;H.loggingStatus!=null||(H.loggingStatus={});H.loggingStatus.isInitializing=!0;ij(function(){return void d.created()});
H.loggingStatus.isInitializing=!1;d.isPolySiElementConnected&&r77(d)},r77=function(d){d.didCallReady||(ij(function(){return void d.ready()}),d.didCallReady=!0);
d.isAttached=!0;d.attached()};
_.G=DV.prototype;_.G.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||r77(this)};
_.G.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.G.attributeChangedCallback=function(d,H,K){if(this.upgradeDisabled)d==="disable-upgrade"&&K===null&&(this.upgradeDisabled=!1,ulC(this));else if(H!==K){var c=_.hP(d),p=this.polySiContext.typesForSignals[c];if(p&&(!this.reflecting||_.h("polysi_attribute_changed_serializing_killswitch"))){switch(p){case Object:try{var g=JSON.parse(K)}catch(e){g=K}break;case Array:try{g=JSON.parse(K)}catch(e){g=null}break;case Date:g=isNaN(K)?String(K):Number(K);g=new Date(g);break;case Boolean:g=K!==null;break;case Number:g=
Number(K);break;default:g=K}this[c]=g}c=_.q(this.polySiParams.behaviors);for(p=c.next();!p.done;p=c.next())g=void 0,(g=p.value.attributeChanged)==null||g.call(this,d,H,K);var a;(a=this.attributeChanged)==null||a.call(this,d,H,K)}};
_.G.attributeChangedCallbackWrapper=function(d,H,K){this.attributeChangedCallback(d,H,K)};
_.G.setPropertiesFromInitialAttributeValues=function(){for(var d=0;d<this.hostElement.attributes.length;d++){var H=this.hostElement.attributes[d];(H.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(H.name))&&this.attributeChangedCallback(H.name,null,H.value)}};
_.G.created=function(){this.provide=this.polySiParams.provide;var d;(d=this.initializeInjection)==null||d.call(this);d=_.q(this.polySiParams.reactiveSchemas);for(var H=d.next();!H.done;H=d.next())H=H.value,H.type==="signal"&&(this.mutablePropNames.add(H.propertyKey),tB(this.signalProxy,H.propertyKey));Sn4(this,this.polySiInfo,this.polySiParams.behaviors);d=_.q(this.polySiParams.reactiveSchemas);for(H=d.next();!H.done;H=d.next())H=H.value,H.type==="signal"&&H.value!==void 0&&(this.signalProxy.model[H.propertyKey]=
typeof H.value==="function"?H.value.call(this):H.value);if(this.polySiParams.signalProperties)for(d=_.q(this.polySiParams.signalProperties),H=d.next();!H.done;H=d.next()){H=H.value;var K=void 0;((K=this.__signalCache)==null?0:K.has(H))||(this.signalProxy.model[H]=void 0)}h86||WPC(this);Okl(this);d=_.q(this.polySiParams.behaviors);for(H=d.next();!H.done;H=d.next())K=void 0,(K=H.value.created)==null||K.call(this);var c;(c=this.polySiInfo.created)==null||c.call(this)};
_.G.registered=function(){var d=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var H=Object.getPrototypeOf(this);H.addReactiveSchema=function(e){d.polySiParams.reactiveSchemas.push(e)};
for(var K=_.q(this.polySiParams.behaviors),c=K.next();!c.done;c=K.next()){var p=void 0;(p=c.value.beforeRegister)==null||p.call(H)}var g;(g=this.polySiInfo.beforeRegister)==null||g.call(H);H.addReactiveSchema=bkC;K=_.q(this.polySiParams.behaviors);for(c=K.next();!c.done;c=K.next())p=void 0,(p=c.value.registered)==null||p.call(H);var a;(a=this.polySiInfo.registered)==null||a.call(H)};
_.G.ready=function(){var d;(d=this.beforeReady)==null||d.call(this);h86&&WPC(this);var H;if(d=(H=this.polySiContext.finalizedTemplate)==null?void 0:H.processedTemplate){d=hMf(d.template,d.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:d.hasInsertionPoint,thisCtx:this});H=d.nodesById;d=d.root;var K=this.hostElement;var c=c===void 0?!1:c;K=(0,_.ls)(K);if(!K.attachShadow)throw Error("Ad");if(!K.shadowRoot||c)K.attachShadow({mode:"open",shadyUpgradeFragment:d}),K.shadowRoot.appendChild(d);
this.root=K.shadowRoot;this.$=H}BoX(this);c=_.q(this.polySiParams.behaviors);for(H=c.next();!H.done;H=c.next())d=void 0,(d=H.value.ready)==null||d.call(this);var p;(p=this.polySiInfo.ready)==null||p.call(this)};
_.G.attached=function(){for(var d=_.q(this.polySiParams.behaviors),H=d.next();!H.done;H=d.next()){var K=void 0;(K=H.value.attached)==null||K.call(this)}var c;(c=this.polySiInfo.attached)==null||c.call(this)};
_.G.detached=function(){for(var d=_.q(this.polySiParams.behaviors),H=d.next();!H.done;H=d.next()){var K=void 0;(K=H.value.detached)==null||K.call(this)}var c;(c=this.polySiInfo.detached)==null||c.call(this)};
var I_3=function(d){for(var H=_.q(d.polySiParams.behaviors),K=H.next();!K.done;K=H.next())if(K=K.value,K.listeners)for(var c in K.listeners)UHX(d,d.hostElement,c,K.listeners[c]);if(d.polySiInfo.listeners)for(var p in d.polySiInfo.listeners)UHX(d,d.hostElement,p,d.polySiInfo.listeners[p])},UHX=function(d,H,K,c,p){d=LvX(d,c,p);
s_(H,K,d)||H.addEventListener(K,d);return d},WPC=function(d){for(var H=_.q(d.polySiParams.reactiveSchemas),K=H.next();!K.done;K=H.next())K=K.value,K.type==="compute"||K.type==="computeWithMethod"?PlL(d.signalProxy,K,d):K.type==="redux"?rYh(d.signalProxy,K,d.store):K.type==="signal"&&K.readOnly&&Ish(d.signalProxy,K)},BoX=function(d){for(var H=_.q(d.polySiParams.reactiveSchemas),K=H.next(),c={};!K.done;c={schema$jscomp$12:void 0},K=H.next())c.schema$jscomp$12=K.value,c.schema$jscomp$12.type==="notify"?
BwE(d.signalProxy,c.schema$jscomp$12,d.hostElement):c.schema$jscomp$12.type==="observe"?zPl(d.signalProxy,c.schema$jscomp$12,d):c.schema$jscomp$12.type==="reflect"&&d.signalProxy.effect(function(g){return function(){var a=d.signalProxy.getWithPath([g.schema$jscomp$12.propertyKey]);
d.reflecting=!0;Sdh(d.hostElement,g.schema$jscomp$12.propertyKey,a,!0);d.reflecting=!1}}(c));
if(d.reflectedAttributes)for(H=_.q(Object.entries(d.reflectedAttributes)),c=H.next(),K={};!c.done;K={key$jscomp$917:void 0,value$jscomp$9168:void 0},c=H.next()){var p=_.q(c.value);c=p.next().value;p=p.next().value;K.key$jscomp$917=c;K.value$jscomp$9168=p;d.signalProxy.effect(function(g){return function(){d.reflecting=!0;Sdh(d.hostElement,g.key$jscomp$917,(0,g.value$jscomp$9168)(),!0);d.reflecting=!1}}(K))}};
_.G=DV.prototype;_.G._setPendingProperty=function(d,H){this.set(d,H);return!1};
_.G._enableProperties=function(){};
_.G._setPendingPropertyOrPath=function(d,H){this.notifyPath(d,H);return!1};
_.G._addPropertyEffect=function(){};
_.G._stampTemplate=function(){throw Error("Jg");};
_.G.fire=function(d,H,K){H=H===void 0?{}:H;K=K===void 0?{}:K;var c,p,g={bubbles:(c=K.bubbles)!=null?c:!0,cancelable:!!K.cancelable,composed:(p=K.composed)!=null?p:!0},a;return _.GT(NOY((a=K.node)!=null?a:this.hostElement),d,H,g)};
_.G.get=function(d,H){var K=Tn(d);return H?M6l(H,K):d==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(K)};
_.G.linkPaths=function(){};
_.G.listen=function(d,H,K){d=NOY(d);this.boundListeners!=null||(this.boundListeners=new WeakMap);var c=this.boundListeners.get(d);c||(c={},this.boundListeners.set(d,c));var p=H+K;c[p]||(c[p]=UHX(this,d,H,K))};
_.G.notifyPath=function(d,H){this.signalProxy.notifyPath(Tn(d),arguments.length===2?{value:H}:void 0)};
_.G.canNotifyPath=function(d){return this.mutablePropNames.has(d)&&!pAF(this.signalProxy,d)};
_.G.notifySplices=function(d,H){this.signalProxy.notifySplices(Tn(d),H)};
_.G.pop=function(d){var H=this.signalProxy;d=Tn(d);var K=_.q(d);d=K.next().value;K=E8(K);return tB(H,d).pop(K)};
_.G.push=function(d){var H=_.sH.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Tn(d)].concat(_.ru(H)))};
_.G.set=function(d,H,K){if(K)throw Error("Kg");d==="hidden"?this.hostElement.hidden=!!H:this.signalProxy.setWithPath(Tn(d),H)};
_.G.setProperties=function(d){d=_.q(Object.entries(d));for(var H=d.next();!H.done;H=d.next()){var K=_.q(H.value);H=K.next().value;K=K.next().value;this[H]=K}};
_.G.splice=function(d,H,K){var c=_.sH.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Tn(d),H,K].concat(_.ru(c)))};
_.G.unlinkPaths=function(){};
_.G.unlisten=function(d,H,K){d=NOY(d);if(this.boundListeners){var c=this.boundListeners.get(d);if(c){K=H+K;var p=c[K];p&&(Fx(d,H,p)||d.removeEventListener(H,p),delete c[K])}}};
_.G.unshift=function(d){var H=_.sH.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Tn(d)].concat(_.ru(H)))};
_.H3.Object.defineProperties(DV.prototype,{useSignals:{configurable:!0,enumerable:!0,get:function(){return!0}},
disableEnforceFastDefaultValuesCheck:{configurable:!0,enumerable:!0,get:function(){return!0}},
__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!0}},
observers:{configurable:!0,enumerable:!0,get:function(){return[]},
set:function(){}},
properties:{configurable:!0,enumerable:!0,get:function(){return{}},
set:function(){}}});var pOf=[Array,Boolean,Date,Number,Object,String];var GMF=!1;var Tt=function(){var d=HTMLElement.apply(this,arguments)||this;d.restamp=!1;d.notifyDomChange=!1;d.JSC$13460_didCallConnected=!1;d.JSC$13460_renderDebouncer=null;d.disableTemplateUpdateSignalImpl=fK()?void 0:_.GO(!1,void 0,"Ofhkwb");var H;d.getDisableTemplateUpdate=(H=d.disableTemplateUpdateSignalImpl)==null?void 0:H[0];var K;d.setDisableTemplateUpdate=(K=d.disableTemplateUpdateSignalImpl)==null?void 0:K[1];return d};
_.m(Tt,HTMLElement);var z8d=function(d){d.conditionSignalImpl!=null||(d.conditionSignalImpl=new FT(_.GO(!1,void 0,"gE52Fb")));return d.conditionSignalImpl};
_.G=Tt.prototype;_.G.showHideChildren=function(d){XO3(this,d,this.if)};
_.G.attributeChangedCallback=function(d,H,K){if(this.JSC$13460_didCallConnected)throw Error("Og`"+d);d==="notify-dom-change"?this.notifyDomChange=K!==null:d==="restamp"&&(this.restamp=K!==null)};
_.G.debounceRender=function(){this.JSC$13460_renderDebouncer=_.G8(this.JSC$13460_renderDebouncer,TN,this.JSC$13460_renderImpl.bind(this));_.ob(this.JSC$13460_renderDebouncer)};
_.G.disconnectedCallback=function(){var d=(0,_.ls)(this).parentNode;(!d||d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in d&&!d.host)&&J7U(this)};
_.G.connectedCallback=function(){var d=this;this.JSC$13460_didCallConnected=!0;V4U?ogY():this.style.display="none";this.parentSignalProxy.effect(function(){z8d(d).getWithPath([]);d.debounceRender()})};
_.G.render=function(){_.eL()};
_.G.JSC$13460_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var d=this.if,H=!1;if(d){this.hasInstance()||(snC(this),H=!0);a:{var K=(0,_.ls)(this).parentNode;if(this.hasInstance()){var c=this.instance.children;if((c==null?0:c.length)&&(0,_.ls)(this).previousSibling!==c[c.length-1])for(var p=0;p<c.length;p++)(0,_.ls)(K).insertBefore(c[p],this)}else{if(!K){K=!1;break a}FPB(this,K)}K=!0}if(!K)return}else this.restamp&&J7U(this);XO3(this,!1,d);d&&!H&&snC(this);Uxl&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.G.hasInstance=function(){return!!this.instance};
var FPB=function(d,H){var K=d.parentSignalProxy;if(fK()){var c=_.q(_.GO(!0,void 0,"yf4Yhf"));var p=c.next().value;c=c.next().value;K=d.parentSignalProxy}else{var g;var a=new Zf((g=ZWg(d))!=null?g:{},function(k){var C=tB(d.parentSignalProxy,k).getChangeRecordSignal([]);k=_.GO(void 0,void 0,"oT9mkc");var R=new FT(k);a.effect(function(){if(d.getDisableTemplateUpdate&&!d.getDisableTemplateUpdate()){var V=C();R.notifyPath(Tn(V.path),{value:V.value})}});
return R});
d.parentSignalProxy.childSignalProxies.push(a);var e=K=a}K=hMf(d.templateInfo,d.templateInfo.nodeInfoList,K,{eventListenerHost:d.eventListenerHost,hasInsertionPoint:d.templateInfo.hasInsertionPoint,thisCtx:d.eventListenerHost,enabledSignal:fK()?p:void 0,getModel:function(){return ZWg(d)}}).root;
d.instance={root:K,children:[],hidden:!1,signalProxy:e,getTemplateUpdatesEnabled:p,setTemplateUpdatesEnabled:c};e=_.q(K.childNodes);for(p=e.next();!p.done;p=e.next())d.instance.children.push(p.value);(0,_.ls)(H).insertBefore(d.instance.root,d)},ZWg=function(d){if((d=d.parentSignalProxy.model)&&!d.hostElement){var H={},K;
for(K in d)d.hasOwnProperty(K)&&(H[K]=d[K]);return H}},J7U=function(d){if(d.instance){var H=d.instance.children;
if(H.length){var K=(0,_.ls)(H[0]).parentNode;if(K){K=(0,_.ls)(K);for(var c=0;c<H.length;c++)K.removeChild(H[c])}}fK()?d.instance.setTemplateUpdatesEnabled(!1):d.instance.signalProxy.dispose();d.instance=void 0}},XO3=function(d,H,K){H=H||!K;
d.instance&&d.instance.hidden!==H&&(d.instance.hidden=H,iWi(H,d.instance.children))},snC=function(d){if(fK()){var H=d.instance;
H&&Wk(d.parentSignalProxy.owner,function(){return!H.getTemplateUpdatesEnabled()})&&H.setTemplateUpdatesEnabled(!0)}else d.setDisableTemplateUpdate(!1)};
_.H3.Object.defineProperties(Tt.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var d=this;return Wk(this.parentSignalProxy.owner,function(){return z8d(d).getWithPath([])})},
set:function(d){d||(fK()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));z8d(this).setWithPath([],!!d)}}});
_.H3.Object.defineProperties(Tt,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Tt);var ToN=[],Q_=function(){var d=HTMLElement.apply(this,arguments)||this;d.as="item";d.indexAs="index";d.itemsIndexAs="itemsIndex";d.targetFramerate=20;d.notifyDomChange=!1;d.isDetached=!1;d.JSC$13467_renderDebouncer=null;d.instances=[];d.chunkingId=null;d.chunkCount=null;d.shouldMeasureChunk=!1;d.shouldContinueChunking=!1;d.renderStartTime=null;d.JSC$13467_didCallConnected=!1;return d};
_.m(Q_,HTMLElement);var Qn7=function(d){d.itemSignalImpl!=null||(d.itemSignalImpl=new FT(_.GO(ToN,void 0,"YBrqgf")));return d.itemSignalImpl},t46=function(d,H){Array.isArray(H)||(H=ToN);
Qn7(d).setWithPath([],H)};
_.G=Q_.prototype;_.G.showHideChildren=function(d){for(var H=_.q(this.instances),K=H.next();!K.done;K=H.next())iWi(d,K.value.children)};
_.G.notifyPath=function(d,H){d=Tn(d);d[0]==="items"&&(d.length===1?t46(this,H):Qn7(this).setWithPath(d.slice(1),H))};
_.G.canNotifyPath=function(d){return d==="items"};
_.G.attributeChangedCallback=function(d,H,K){if(this.JSC$13467_didCallConnected)throw Error("Pg`"+d);d==="as"?this.as=K:d==="index-as"?this.indexAs=K:d==="items-index-as"?this.itemsIndexAs=K:d==="initial-count"?this.initialCount=Number(K):d==="notify-dom-change"?this.notifyDomChange=K!==null:d==="target-framerate"&&(this.targetFramerate=Number(K))};
_.G.disconnectedCallback=function(){this.isDetached=!0;for(var d=0;d<this.instances.length;d++)YwU(this,d);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.G.connectedCallback=function(){var d=this,H=Qn7(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var p=H(),g=Tn(p.path);if(g[0]===void 0||g[0]==="splices"||g[0]==="length")d.debounceRender();else{var a=g[0];if(a=d.instances[typeof a==="string"?Math.floor(Number(a)):a])g=[d.as].concat(_.ru(g.slice(1))),a.signalProxy.notifyPath(g,p)}});
this.JSC$13467_didCallConnected=!0;V4U?ogY():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var K=(0,_.ls)((0,_.ls)(this).parentNode),c=0;c<this.instances.length;c++)K.insertBefore(this.instances[c].root,this);this.chunkingId&&this.render()}};
_.G.debounceRender=function(){this.JSC$13467_renderDebouncer=_.G8(this.JSC$13467_renderDebouncer,TN,this.JSC$13467_renderImpl.bind(this));_.ob(this.JSC$13467_renderDebouncer)};
_.G.render=function(){this.debounceRender();_.eL()};
_.G.JSC$13467_renderImpl=function(){var d=this;if(!this.parentSignalProxy.isDisposed){var H=this.items,K=OWX(this,H.length);Sw7(this,H,K);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){d.chunkingId=null;if(d.shouldMeasureChunk){var c=performance.now()-d.renderStartTime;d.chunkCount=Math.round(Math.ceil(1E3/d.targetFramerate)/c*d.chunkCount)||1}d.shouldContinueChunking&&d.debounceRender()}));
Uxl&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var OWX=function(d,H){var K=H,c=d.instances.length;if(d.initialCount){if(d.chunkCount){var p=Math.min(Math.max(H-c,0),d.chunkCount);K=Math.min(c+p,H)}else K=Math.min(H,d.initialCount),p=Math.max(K-c,0),d.chunkCount=p||1;d.shouldMeasureChunk=p===d.chunkCount;d.shouldContinueChunking=K<H;d.renderStartTime=performance.now()}return K},Sw7=function(d,H,K){for(var c=0;c<K;c++){var p=d.instances[c],g=H[c];
p?(p.signalProxy.setWithPath([d.as],g),p.signalProxy.setWithPath([d.indexAs],c)):Eg3(d,g,c)}for(H=d.instances.length-1;H>=c;H--)K=d,p=H,YwU(K,p),_.q(K.instances.splice(p,1)).next().value.signalProxy.dispose()},YwU=function(d,H){d=d.instances[H];
H=(0,_.ls)(d.root);for(var K=0;K<d.children.length;K++)H.appendChild(d.children[K])},Eg3=function(d,H,K){var c={};
H=Object.assign({},y7N(d),(c[d.as]=H,c[d.indexAs]=K,c[d.itemsIndexAs]=K,c));var p=new Zf(H,function(a){if(a!==d.as&&a!==d.indexAs){if(a===d.itemsIndexAs)return tB(p,d.indexAs);var e=tB(d.parentSignalProxy,a).getChangeRecordSignal([]);a=_.GO(void 0,void 0,"T21Pqc");var k=new FT(a);p.effect(function(){var C=e();k.notifyPath(Tn(C.path),{value:C.value})});
return k}});
d.parentSignalProxy.childSignalProxies.push(p);c=hMf(d.templateInfo,d.templateInfo.nodeInfoList,p,{eventListenerHost:d.eventListenerHost,getModel:function(){var a={};return Object.assign({},y7N(d),(a[d.as]=p.model[d.as],a[d.indexAs]=p.model[d.indexAs],a[d.itemsIndexAs]=p.model[d.indexAs],a))},
hasInsertionPoint:d.templateInfo.hasInsertionPoint,thisCtx:d.eventListenerHost,methodInvocationRequirement:LPB,enabledSignal:d.stampingEnabled}).root;H={root:c,children:[],signalProxy:p};c=_.q(c.childNodes);for(var g=c.next();!g.done;g=c.next())H.children.push(g.value);c=(c=d.instances[K+1])?c.children[0]:d;(0,_.ls)((0,_.ls)(d).parentNode).insertBefore(H.root,c);d.instances[K]=H},y7N=function(d){if((d=d.parentSignalProxy.model)&&!d.hostElement){var H={},K;
for(K in d)d.hasOwnProperty(K)&&(H[K]=d[K]);return H}};
Q_.prototype.itemForElement=function(d){var H=this,K=this.instances.find(function(c){return c.children.includes(d)});
if(K)return Wk(this.parentSignalProxy.owner,function(){return K.signalProxy.getWithPath([H.as])})};
Q_.prototype.indexForElement=function(d){var H=this.instances.findIndex(function(K){return K.children.includes(d)});
return H>=0?H:void 0};
_.H3.Object.defineProperties(Q_.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var d=this;return Wk(this.parentSignalProxy.owner,function(){return Qn7(d).getWithPath([])})},
set:function(d){t46(this,d)}},
delay:{configurable:!0,enumerable:!0,set:function(){}},
filter:{configurable:!0,enumerable:!0,set:function(){}},
observe:{configurable:!0,enumerable:!0,set:function(){}},
sort:{configurable:!0,enumerable:!0,set:function(){}},
__instances:{configurable:!0,enumerable:!0,get:function(){return this.instances}}});
_.H3.Object.defineProperties(Q_,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return"as index-as initial-count items-index-as notify-dom-change target-framerate".split(" ")}}});
customElements.define("ps-dom-repeat",Q_);var bWB,NoC;_.t$=new _.Av("STATE_STORE_TOKEN");bWB=new _.Av("SELECT_TOKEN");NoC=new _.Av("DISPATCH_TOKEN");var xx4={getSelectFn:function(){var d;return(d=_.Kj().resolve(_.$p(bWB)))!=null?d:qwF},
getDispatchFn:function(){var d;return(d=_.Kj().resolve(_.$p(NoC)))!=null?d:_.AB().dispatch.bind(_.AB())},
getAppStore:function(){return _.Kj().resolve(_.t$)}},a_4,kMX=!1;var V4f=new qg3;var mx4=function(){};var h8X=void 0;var Dxg=function(){};
Dxg.prototype.hasAttribute=function(d){if(d==="dir")return!1;if(d==="disable-upgrade"){var H,K;return(K=(H=this.hostElement)==null?void 0:H.hasAttribute("disable-upgrade"))!=null?K:!1}throw Error("Qg`"+d);};
Dxg.prototype.attributeChangedCallbackWrapper=function(d,H,K){if(d==="disable-upgrade"&&this.__isUpgradeDisabled&&K===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var c;((c=this.hostElement)!=null?c:this).isConnected&&this.connectedCallback()}else H===K||this.__isReflecting||this.attributeChangedCallback(d,H,K)};
Dxg.prototype.getExtraMethodsToForward=function(){for(var d=this,H=[],K=_.q(f_M),c=K.next(),p={};!c.done;p={tagName$jscomp$54:void 0,name$jscomp$574:void 0},c=K.next())p.name$jscomp$574=c.value,c=void 0,p.name$jscomp$574==="_setPendingProperty"?(p.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),c=function(g){return function(a,e,k){Pj(g.tagName$jscomp$54,a,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return d._setPendingProperty(a,e,k)}}(p)):c=function(g){return function(){return d[g.name$jscomp$574].apply(d,
_.ru(_.sH.apply(0,arguments)))}}(p),H.push([p.name$jscomp$574,
c]);return H};
for(var ulE=P0X(wOB((0,_.LT)(Dxg))),BoF=["disabled","disable-upgrade"],A7M=(0,_.LT)(function(){}),jnA=new Set(Object.getOwnPropertyNames(A7M.prototype)),FPF=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.ru(jnA))),XOL=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),f_M=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),vg3=new Set([].concat(_.ru(XOL),_.ru(f_M),_.ru(jnA))),d27=_.q(vg3),HIg=d27.next();!HIg.done;HIg=d27.next())dzC.add(HIg.value);var snE={created:function(){Okl(this);this.initializeInjection()}};var y7C=!1,pM=window.ShadyDOM,d2M=["appendChild","insertBefore","removeChild","replaceChild"],vg5=[Node];pM&&vg5.push(pM.Wrapper);var gwl,iIF,q$Y={};_.iD=new Set;_.g7="";_.lml="";var gg,G6=new Set;var Vtf=new Set("context didCallReady is info params signalProxy".split(" ")),hI1="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),LOl="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var $2N=Ru({entities:xqC}),KOB=new vW($2N);var c6B=function(){return _.hB.apply(this,arguments)||this};
_.m(c6B,_.hB);_.H3.Object.defineProperties(c6B.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return KOB}}});
_.t([_.LK()],c6B);_.YC=[J$.prototype,c6B.prototype];_.Os={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var d=this,H={};setTimeout(function(){var K;return _.GT((K=d.hostElement)!=null?K:d,"yt-live-chat-add-tooltip-target",H)},0);
this.handler_=H.handler},
detached:function(){if(this.handler_){var d;this.handler_.removeElementFromSupportingTooltips((d=this.hostElement)!=null?d:this)}this.handler_=null}}};_.xv=new _.Av("ICON_MANAGER_TOKEN");var ptd=[48,20,18,16,15,13,12],EwL=new Map,TDD=new Set,st1=new Set,ZIF=new Set,J6h=new Set,FOF=new Set,tt5=new Promise(function(d){var H=!1,K=!1,c=!1,p=[],g=function(a){if("detail"in a)if(a=a.detail,a.name==="yt-icons")QtL(a),H=!0;else if(a.name==="yt-sys-icons")QtL(a),K=!0;else{var e;((e=a.name)==null?0:e.includes("yt-sys-icons"))&&a.size!==24&&(QtL(a,!0),p.push(a.size),p.length===ptd.length&&(c=!0))}H&&K&&c&&(window.removeEventListener("iron-iconset-added",g),d())};
window.addEventListener("iron-iconset-added",g)}),OI4=new Map([["access_time",
"watch_later"],["add_friend","people"],["add_to_playlist","add"],["add_to_remote_queue","add_to_queue"],["answer_neither_satisfied_nor_dissatisfied","meh"],["answer_somewhat_dissatisfied","sad"],["answer_somewhat_satisfied","happy"],["answer_very_dissatisfied","very_sad"],["answer_very_satisfied","very_happy"],["arrow-back","arrow_back"],["arrow-drop-down","arrow_drop_down"],["arrow-forward","arrow_forward"],["arrow_solid_down","arrow_solid_down-filled"],["arrow_solid_up","arrow_solid_up-filled"],
["audiotrack","music"],["auto-awesome","auto_awesome"],["avatar_anonymous","account_circle"],["avatar_logged_out","account_circle"],["back","arrow_back"],["bar_horizontal","bar_horizontal"],["block","slash_circle_left"],["bookmark_border","bookmark"],["channel_notification_preference_off","notifications"],["channel_notification_preference_on","notifications_active"],["check_circle","check_circle_thick"],["check_circle_filled","check_circle_thick-filled"],["cloud_upload","cloud_arrow_up"],["contact_support",
"help"],["content_cut","scissors"],["creation_live","live"],["creation_upload","my_videos"],["creation_upload_red","upload"],["delete_sweep","delete"],["dismissal","close"],["draft","paper_corner_folded"],["email","mail"],["emoji","very_happy"],["emoji_flags","flag"],["emoji_objects","course"],["emoji_people","very_happy"],["emoji_recent","watch_later"],["exit_app","exit_to_app"],["expand-less","collapse"],["expand-more","expand"],["expand_less","collapse"],["expand_more","expand"],["external_link",
"open_in_new"],["face_filled_happy","face_happy_v2-filled"],["face_filled_meh","face_meh_v2-filled"],["face_filled_sad","face_sad_v2-filled"],["face_filled_unhappy","face_unhappy_v2-filled"],["face_filled_very_happy","face_very_happy_v2-filled"],["face_outlined_happy","face_happy_v2"],["face_outlined_meh","face_meh_v2"],["face_outlined_sad","face_sad_v2"],["face_outlined_unhappy","face_unhappy_v2"],["face_outlined_very_happy","face_very_happy_v2"],["guide_close","chevron_left"],["help_outline","help"],
["home","tab_home"],["info_outline","info"],["insert_chart","poll"],["insert_photo","image"],["launch","open_in_new"],["likes_playlist","like"],["live","radar_live"],["live_unlisted","link"],["local_offer","purchases"],["members_only_mode_off","message"],["money_fill_jpy","yen_sign_container"],["more_chevron","expand"],["more_horiz","more"],["music_note","music"],["music_repeat_all","loop"],["music_repeat_one","loop_one"],["music_shuffle","shuffle"],["my_channel","account_circle"],["notifications_done_checkmark",
"check"],["notifications_none","notifications"],["official_artist_badge","music"],["outline_arrow_solid_down","arrow_solid_down"],["paid","creator_metadata_monetization"],["play_all","play_arrow"],["privacy_private","lock"],["privacy_unlisted","link"],["question_answer","forum"],["remove-circle-outline","remove_circle"],["report","error"],["report_problem","warning"],["schedule","watch_later"],["settings_application","settings"],["settings_material","settings"],["share_arrow","share"],["slow_mode_off",
"message"],["sticker_emoticon","happy"],["subscription_manager","settings"],["supervisor_account","people"],["tab_account","person"],["tab_explore","explore"],["tab_subscriptions","subscriptions"],["tab_trending","fire"],["timer","stopwatch"],["trending","fire"],["unlimited","subscribe"],["vertical_align_bottom","offline_download"],["video_library_white","uploads"],["video_youtube","subscribe"],["wallpaper","image"],["watch_related_mix","mix"],["what_to_watch","tab_home"]]);_.S$={};_.S$.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.jG,computeHref_:function(d,H){H=H===void 0?!1:H;if(!d||d.commandExecutorCommand)return null;var K=QDi(d,H);return H||K!==null?K?_.h("enable_polymer_resin")?_.Xa(K).toString():K:null:(_.Jf(new _.m1("computeHref was null",this.is,d)),null)},
computeOptionalHref_:function(d){return this.computeHref_(d,!0)},
computeNofollow_:function(d){return d?WR1(d)?"nofollow":null:null},
computeIcon_:function(d){return d&&d.iconType?_.kv(d.iconType):""},
resolveCommand:function(d,H,K){H=H===void 0?{}:H;return _.CM(d,this.hostElement,H,K===void 0?!1:K)}};var iIX,Es;_.gwS={};iIX=null;
Es={isVisibilityRoot:!1,properties:{observeVisibleOption:{type:String,value:null},observeHiddenOption:{type:String,value:null},observePrescanOption:{type:String,value:null},viewroot:Object,visibilityMonitorKeys:{type:Array,value:void 0},visibilityObserver:Object},created:function(){this.visibilityObserverForChild_=this.localVisibilityObserver_=null;this.visibilityOptionVisible_=this.observeVisibleOption?{calledOnce:this.observeVisibleOption=="observe_once",state:"visible"}:null;this.visibilityOptionHidden_=
this.observeHiddenOption?{calledOnce:this.observeHiddenOption=="observe_once",state:"hidden"}:null;this.visibilityOptionPrescan_=this.observePrescanOption?{calledOnce:this.observePrescanOption=="observe_once",state:"prescan"}:null},
attached:function(){this.isVisibilityRoot&&(this.visibilityObserverForChild_=TjE(this.viewroot));_.EI(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var d=this;this.unobserve_();if(_.h("kevlar_vimio_use_shared_monitor"))fm1(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var H=[];this.visibilityOptionVisible_&&H.push(this.visibilityObserver.observe(this.hostElement,function(){return d.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&H.push(this.visibilityObserver.observe(this.hostElement,function(){return d.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&H.push(this.visibilityObserver.observe(this.hostElement,function(){return d.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=H}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){y6F(this,this.visibilityObserver)},
markDirtyVisibilityObserver:function(){this.localVisibilityObserver_&&this.configureVisibilityObserver_()},
getVisibilityObserverForChild:function(){return this.visibilityObserverForChild_?this.visibilityObserverForChild_:this.localVisibilityObserver_},
get visibilityObserver(){if(this.localVisibilityObserver_)return this.localVisibilityObserver_;var d=_.sY(this.parentNode,function(K){var c,p=(c=K.polymerController)!=null?c:K;return!!p.getVisibilityObserverForChild&&p.getVisibilityObserverForChild()},!0);
if(d){var H;this.localVisibilityObserver_=((H=d.polymerController)!=null?H:d).getVisibilityObserverForChild()}else iIX||(iIX=TjE()),this.localVisibilityObserver_=iIX;return this.localVisibilityObserver_},visibilityCallback:function(d){d?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.h("kevlar_use_vimio_behavior")||(Es={});Es&&!_.h("kevlar_use_vimio_behavior")&&(delete Es.attached,delete Es.detached);_.gwS.YtVisibilityObserverBehavior=[Es];var GcC={};GcC.YtVisualElementBehavior=[_.gwS.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.h("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.h("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var d=this.getScreenLayer&&this.getScreenLayer(),H=this.getVisibilityLogger();H&&H.reportShown(this,void 0,d)}},
onHidden:function(){if(_.h("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.h("kevlar_vimio_use_shared_monitor")){var d=this.getScreenLayer&&this.getScreenLayer(),H=this.getVisibilityLogger();H&&H.reportHidden(this,void 0,d)}},
getVisibilityLogger:function(){return _.h("kevlar_use_vimio_behavior")?_.Vp():null},
shouldSkipLogging:function(){if(_.Fm("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var d=this.getParentRenderer&&this.getParentRenderer();if(!d)return!1;var H,K=(H=d.polymerController)!=null?H:d;if(!K.data)return!1;d=this.data.trackingParams;d=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:d;var c;H=(c=K.data)==null?void 0:c.trackingParams;var p,g;H=((p=K.data)==null?0:p.loggingDirectives)?(g=K.data)==null?void 0:g.loggingDirectives.trackingParams:H;return d&&H&&d===
H}}];var vwX=new Map,uD;var wRX=function(d){this.layer=d},oo=function(d){return d.layer!==void 0?d.layer:d.parent?oo(d.parent):d.layer=0};var pJL;_.b={};pJL=0;_.b.YtRendererBehavior=[_.S$.YtComponentBehavior,GcC.YtVisualElementBehavior,{_noAccessors:!0,properties:{data:Object},observers:["ytRendererBehaviorDataObserver_(data)","ytRendererBehaviorTargetIdObserver_(data.targetId)"],childCache_:null,parentComponent:null,wasVisible:!1,wasPrescan:!1,lastHandledScroll_:0,isRenderer_:!0,screenLayer:null,veFromLoggingDirective_:!1,useVimio_:_.h("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var d,H;(H=(d=this.monitorScrollElement)!=null?d:this.hostElement)==null||H.removeEventListener("scroll",_.xf(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();A64(this.hostElement);Vx3(_.u9(),this.hostElement);vy.delete(this.hostElement)},
registerRenderer:function(d){var H;((H=d.polymerController)!=null?H:d).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(d),this.markDirty())},
unregisterRenderer_:function(d){this.useVimio_||(this.childCache_.delete(d),this.markDirty())},
attached:function(){var d=this,H=this.getParentRenderer();if(H){var K,c,p;(c=(K=(p=H.polymerController)!=null?p:H).registerRenderer)==null||c.call(K,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var g,a;(a=(g=this.monitorScrollElement)!=null?g:this.hostElement)==null||a.addEventListener("scroll",_.xf(this,this.onScroll))}_.Xp.addJob(function(){dbi(d.hostElement)},8);
K=new wRX(this.screenLayer||void 0);(H=vy.get(H))&&H.layerNode&&(K.parent=H.layerNode);H={};TiY(this.hostElement,(H.isRenderer=!0,H.layerNode=K,H[Pa1]=this.data,H))},
getParentRenderer:function(){for(var d=this.hostElement.parentNode,H,K;d&&((H=vy.get(d))==null||!H.isRenderer)&&!((K=d.polymerController)!=null?K:d).isRenderer_;)d=d.parentNode||d.host;return d},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.h("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Qx("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.h("debug_web_ve_data")&&this.data.trackingParams){var d="";try{d=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(K){_.z5(K)}if(d){var H=cFF(d,1);H!==void 0&&(this.hostElement.dataset.veIndex=String(H));d=cFF(d,2);
d!==void 0&&(this.hostElement.dataset.ve=String(d))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.h("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.P1(this.data.loggingDirectives.trackingParams)),this.visualElement=_.UG(_.hR(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var d=this.data.targetId;_.hMU(_.u9(),d,this.hostElement)}else Vx3(_.u9(),this.hostElement)},
onScroll:function(){var d=Date.now();d-this.lastHandledScroll_<50||(this.lastHandledScroll_=d,this.markDirty())},
markDirty:function(){_.h("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():geM(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var d=this.getParentRenderer();if(d&&(d=vy.get(d))&&d.layerNode)return oo(d.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.ru(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var d=0;d<this.data.impressionEndpoints.length;d++)this.sendImpression(this.data.impressionEndpoints[d]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(d){d.clickTrackingParams&&delete d.clickTrackingParams;var H,K;(d==null?0:(H=d.commandMetadata)==null?0:(K=H.webCommandMetadata)==null?0:K.sendPost)?_.aF(this.hostElement,[d,{impression:!0}]):_.l5(this.hostElement,[d],this.hostElement)},
logExplicitClick:function(d){var H=_.Fj(this.getScreenLayer());if(H){var K,c=(K=d.polymerController)!=null?K:d;d=c.visualElement;c=c.trackingParams||c.clickTrackingParams;!d&&c&&(d=_.P1(c));d&&_.fo(H,d)}}}];var owl={},y_=function(){return _.hB.apply(this,arguments)||this};
_.m(y_,_.hB);y_.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
y_.prototype.onPdgItemBehaviorClick=y_.prototype.onPdgItemBehaviorClick;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],y_.prototype,"data",void 0);_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],y_.prototype,"onPdgItemBehaviorClick",null);_.t([_.LK()],y_);owl.YtPdgLiveChatItemBehavior=[y_.prototype,_.b.YtRendererBehavior];var q$d;var amA;_.b9={};_.b9.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var NG=function(){var d=KO.apply(this,arguments)||this;d.switchTemplateAtRegistration=!1;return d};
_.m(NG,KO);NG.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||qr5(this),_.ZkL(this,"doRender"),this.doRender())};
NG.prototype.debounceRender=function(){this.templatingFn&&_.yP(this,"doRender",this.doRender)};
NG.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.z5(Error("$g"))};
NG.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.t([wri()],NG);var lmS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Df={},kUC=(Df[1]={filterString:null,isUnwrappable:null,unwrap:null},Df[2]={filterString:function(d,H,K){return aD(K)},
isUnwrappable:function(d){return d instanceof QB},
unwrap:function(d){return YO(d)}},Df[3]={filterString:function(d,H,K){return lmS.test(K)?K:zC.toString()},
isUnwrappable:function(d){return u_(d)},
unwrap:function(d){return _.IK(d)}},Df[4]={filterString:function(){return zC.toString()},
isUnwrappable:function(d){return d instanceof UH},
unwrap:function(d){return _.Lc(d).toString()}},Df[5]={filterString:function(d,H,K){return K},
isUnwrappable:function(d){return typeof d==="string"},
unwrap:function(d){return d.toString()}},Df[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(d){return d instanceof _.b_},
unwrap:function(d){return piF(d)}},Df[8]={filterString:function(d,H,K){K=String(K).toLowerCase();
return glM(d,H,K)?K:"zClosurez"},
isUnwrappable:null,unwrap:null},Df[10]={filterString:null,isUnwrappable:null,unwrap:null},Df);HV[Fq["default"]]=nei;var C6l=[];(function(){var d=Dp;Dp=function(H){d==null||d(H);B1(function(){for(var K=0;K<H.length;K++)RHC(H[K])})}})();var eIX=function(){var d=_.hB.apply(this,arguments)||this;d.hasUnmounted=!1;return d};
_.m(eIX,_.hB);_.G=eIX.prototype;_.G.beforeRegister=function(){var d=this.doIdomRender;this.templatingFn?_.z5(Error("Zg")):(this.templatingFn=d,this.switchTemplateAtRegistration=!0,eHM(this))};
_.G.attached=function(){};
_.G.detached=function(){RHC(this.hostElement)};
_.G.renderIdom=function(){throw Error("bh");};
_.G.doIdomRender=function(){var d=this;jDY(this.hostElement,function(){d.renderIdom()})};
_.t([_.LK()],eIX);var kc7=[NG.prototype,eIX.prototype];var x23,nwA=function(){return x23!==void 0?x23:x23=document.createElement("template")};
document.head.appendChild(nwA().content);var CoN;var RI6,VtU=function(){return RI6!==void 0?RI6:RI6=document.createElement("template")};
document.head.appendChild(VtU().content);var U2U;var hIM=document.head,LOS=hIM.appendChild,Mt0;if(U2U===void 0){var m2U=document.createElement("template");_.P(m2U,"\x3c!--css-build:shady--\x3e");m2U.content.insertBefore(VtU().content.cloneNode(!0),m2U.content.firstChild);U2U=m2U}Mt0=U2U;LOS.call(hIM,Mt0.content);var wt3,Po7=function(){return wt3!==void 0?wt3:wt3=document.createElement("template")};
document.head.appendChild(Po7().content);var u1A;var ImU=document.head,r63=ImU.appendChild,WO6;if(u1A===void 0){var BDl=document.createElement("template");_.P(BDl,"\x3c!--css-build:shady--\x3e");BDl.content.insertBefore(Po7().content.cloneNode(!0),BDl.content.firstChild);u1A=BDl}WO6=u1A;r63.call(ImU,WO6.content);var zIU=document.head,XtS=zIU.appendChild,J6A;if(CoN===void 0){var stM=document.createElement("template");_.P(stM,"\x3c!--css-build:shady--\x3e");stM.content.insertBefore(nwA().content.cloneNode(!0),stM.content.firstChild);CoN=stM}J6A=CoN;XtS.call(zIU,J6A.content);var FOX,ZIB=function(){return FOX!==void 0?FOX:FOX=document.createElement("template")};
document.head.appendChild(ZIB().content);var TD0;_.fM=new _.Av("DARK_THEME_TOKEN");var iSC=new _.Dk("accessibilityProperties");var gjD=new _.Dk("layoutProperties");var G$4=new _.Dk("imageType");var Qt3={};if("ytAttributedStringLinkHoverColor"in Qt3)throw Error("eh`ytAttributedStringLinkHoverColor");(function(d,H){Qt3[d]="value"in H&&"unit"in H?mbX(d,H):function(K){try{return H(K)}catch(c){throw Error("ch`"+d+"`"+c.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var tt3=function(d){var H=this;this.holdTime=d===void 0?500:d;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(K){var c=new CustomEvent("LONG_PRESS"),p;(p=K.changedTouches[0].target)==null||p.dispatchEvent(c)};
this.ontouchstart=function(K){H.longPressTimeout=_.mR(_.Xp,function(){H.onlongpress(K);H.longPressOccurred=!0},H.holdTime)};
this.ontouchmove=function(){_.Xp.cancelJob(H.longPressTimeout);H.longPressTimeout=NaN;H.longPressOccurred=!1;H.moveOccurred=!0};
this.ontouchend=function(K){if(H.longPressTimeout&&!H.longPressOccurred&&!H.moveOccurred){var c;(c=K.changedTouches[0].target)==null||c.dispatchEvent(new Event("click"))}_.Xp.cancelJob(H.longPressTimeout);H.longPressTimeout=NaN;H.longPressOccurred=!1;H.moveOccurred=!1}};var OY4=function(d,H){tt3.call(this,H);var K=this;this.callback=d;this.onlongpress=function(c){var p;(p=K.callback)==null||p.call(K,c)}};
_.m(OY4,tt3);var Sri=function(d,H){var K=Object.assign({},H);d=_.q(new Map([["ontouchstart",d.ontouchstart],["ontouchend",d.ontouchend],["ontouchmove",d.ontouchmove]]));for(var c=d.next(),p={};!c.done;p={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},c=d.next()){var g=_.q(c.value);c=g.next().value;g=g.next().value;p.eventName$jscomp$101=c;p.eventHandler$jscomp$1=g;H[p.eventName$jscomp$101]=function(a){return function(e){var k;(k=K[a.eventName$jscomp$101])==null||k.call(K,e);(0,a.eventHandler$jscomp$1)(e)}}(p)}};_.cb=new _.Av("COMMAND_HANDLER_TOKEN");var P6i=new _.Dk("parallelCommand");var rdh=new _.Dk("performOnceCommand");var Iq4=new _.Dk("serialCommand");var WzL=void 0;var Y$C=function(){this.data=[];this.consumer=null};
Y$C.prototype.push=function(d){this.consumer?this.consumer(d):this.data.push(d)};var jA={};_.GO(jA,void 0,"sgPmTd");_.GO(null,void 0,"jypsq");_.GO(null,void 0,"mWiOof");var JlE=new Y$C;var TJL=[kLC,xfg,nYC,RXA,C1B,eXB,VlS,UfB];var cil=new _.Dk("bracketTextDecorator");var Nk=new _.Dk("highlightTextDecorator");_.jv=new _.Av("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var vef=function(){},OIl;
(OIl=window.requestIdleCallback)==null||OIl.bind(window);var HSE={calledOnce:!1,state:"visible"},d0L={calledOnce:!1,state:"hidden"};var S$7=new _.Av("ICON_WIZ_COMPONENT_TOKEN");_.hu=_.H1(function(d){var H=d.icon;var K=d.active;var c=d.className;var p=d.style;var g=d.dataSelected;var a=d.dataDisabled;var e=d.role;var k=d.animateIcon;var C=d.themeOverride;var R=d.ariaHidden;var V=d.ariaExpanded;var U=d.ariaLabel;var L=d.tabindex;var w=d.id;var W=d.size;var J=d.iconFilter;var F=d.onKeydown;return _.x(_.n,{cond:H,then:function(){var Y=_.Kj().resolve(S$7);return _.x(Y,{icon:H,dataSelected:g,dataDisabled:a,animateIcon:k,themeOverride:C,ariaExpanded:V,tabindex:L,id:w,active:K,
size:W,role:e,className:c,ariaHidden:R,ariaLabel:U,style:function(){return p!=null&&p()||W==null||!W()?p==null?void 0:p():"width: "+(W==null?void 0:W())+"px;height: "+((W==null?void 0:W())+"px;")},
iconFilter:J,onKeydown:F})}})},"b");
_.hu.idomCompat={callbacks:{onKeydown:!0}};var m0X=window.devicePixelRatio||1;var I9Y=new Map([["yt_outline_bag_black_24","bag"]]);var A$=function(d){var H=this;this.margin=.1;this.whenInViewportWithMargin=d;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){H.requestScan()});
window.addEventListener("touchend",function(){H.requestScan()});
window.addEventListener("updateui",function(){H.requestScan()});
var K=new _.NV((0,_.LA)(this.requestScan,this),100);window.addEventListener("scroll",function(){K.fire()},!0);
window.addEventListener("resize",(0,_.LA)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){H.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.LA)(this.requestScan,this))};
A$.prototype.observe=function(d){this.observationTargets.includes(d)||this.observationTargets.push(d)};
A$.prototype.unobserve=function(d){this.observationTargets=this.observationTargets.filter(function(H){return H!==d})};
A$.prototype.requestScan=function(){var d=this;this.scanRequested||(B1(function(){Ew3(d)}),this.scanRequested=!0)};
var Ew3=function(d){var H=(1+d.margin)*(document.documentElement.clientHeight||window.innerHeight);d.observationTargets=d.observationTargets.filter(function(K){var c=K.getBoundingClientRect();(c=H>c.top&&!!c.height)&&d.whenInViewportWithMargin(K);return!c&&K.parentNode});
d.scanRequested=!1};
A$.prototype.disconnect=function(){this.observationTargets=[]};var y6B,NDg;y6B=_.q(_.GO(Xl5(),void 0,"O3X2wd"));_.bIS=y6B.next().value;NDg=y6B.next().value;window.addEventListener("resize",function(){NDg(Xl5())});var D2B={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},fmM=void 0,A6l=window.innerWidth,jtU=window.innerHeight;window.addEventListener("resize",function(){fmM=void 0});var vw6;if("IntersectionObserver"in window)vw6=FYE();else{if(fmM===void 0){var dbg;dbg="matchMedia"in window?window.matchMedia(D2B.landscape+","+D2B.portrait).matches:void 0;fmM=dbg!==void 0?dbg:A6l>=930&&jtU>=550||A6l>=550&&jtU>=930}vw6=fmM?{observe:function(d){B1(function(){var H;(H=d.onViewportEntered)==null||H.call(d)})},
unobserve:function(){}}:new A$(function(d){B1(function(){var H;
(H=d.onViewportEntered)==null||H.call(d)})})}var JiF=vw6;var HYM=_.H1(function(d){var H=!1,K=_.Af("img",function(c){_.Pk(function(){H=!0;c.onload=null})});
_.wc(function(){var c,p=(c=d.data)==null?void 0:c.call(d),g,a=(g=d.getSrc)==null?void 0:g.call(d).cb,e;c=(e=d.config)==null?void 0:e.call(d);if(e=K.value)if(g=function(C,R){if(!H)return a?a(C,R):C},QTM(e,c),_.h("web_image_dont_reload_same_src")&&TTh(e,p,g))_.h("web_image_dont_reload_same_src_simulate_load")&&e.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var k;ZSL(e,p||null,g,c,(k=d.lazy)==null?void 0:k.call(d))}},"v0I2p");
return _.x("img",{el:K})},"c");
HYM.idomCompat=!0;_.d7=_.H1(function(d){var H=function(){var K,c=d.data(),p,g,a,e,k,C,R,V,U,L,w,W,J,F,Y,A,E,N,y,v,el,l1,V4,Mf,LF,YY,FM,gA,JN;var eS={contentMode:(p=d.contentMode)==null?void 0:p.call(d),loadedClass:(g=d.loadedClass)==null?void 0:g.call(d),isPreloaded:(a=d.isPreloaded)==null?void 0:a.call(d),notifyOnLoaded:(e=d.notifyOnLoaded)==null?void 0:e.call(d),notifyOnUnloaded:(k=d.notifyOnUnloaded)==null?void 0:k.call(d),preferredThumbnail:(C=d.preferredThumbnail)==null?void 0:C.call(d),preserveHeight:(R=d.preserveHeight)==
null?void 0:R.call(d),preserveWidth:(V=d.preserveWidth)==null?void 0:V.call(d),objectPosition:(U=d.objectPosition)==null?void 0:U.call(d),targetWidth:(L=d.targetWidth)==null?void 0:L.call(d),targetHeight:(w=d.targetHeight)==null?void 0:w.call(d),shouldShowPlaceholder:(W=d.shouldShowPlaceholder)==null?void 0:W.call(d),useWidth:(J=d.useWidth)==null?void 0:J.call(d),isToggled:(F=d.isToggled)==null?void 0:F.call(d),alt:(Y=d.alt)==null?void 0:Y.call(d),className:(A=d.className)==null?void 0:A.call(d),
onerror:d.onerror,onload:d.onload,style$:((E=d.style$)==null?void 0:E.call(d))||((N=d.style)==null?void 0:N.call(d)),color:(y=d.color)==null?void 0:y.call(d),width:(v=d.width)==null?void 0:v.call(d),height:(el=d.height)==null?void 0:el.call(d),"aria-hidden$":(gA=(l1=d["aria-hidden$"])==null?void 0:l1.call(d))!=null?gA:(V4=d.ariaHidden)==null?void 0:V4.call(d),draggable:(Mf=d.draggable)==null?void 0:Mf.call(d),"data-disabled$":(JN=(LF=d["data-disabled$"])==null?void 0:LF.call(d))!=null?JN:(YY=d.dataDisabled)==
null?void 0:YY.call(d),size:(FM=d.size)==null?void 0:FM.call(d)};return OS5(c,eS,(K=d.hideOn404)==null?void 0:K.call(d))};
return _.x(_.w9,null,_.x(_.MM,{when:function(){var K;return((K=H())==null?void 0:K.type)==="image"}},function(){return _.x(HYM,{data:function(){return H().image},
getSrc:{cb:function(K,c){var p=H().image.sources,g=H().config.isPreloaded,a=H().config.useWidth,e=H().config.targetWidth,k=H().config.targetHeight,C=H().config.preferredThumbnail;return _.wlX(c,p,g,a,e,k,C)||""}},
config:function(){var K=H().config,c;for(c in K)K[c]===void 0&&delete K[c];return K},
lazy:d.renderLazy})}),_.x(_.MM,{when:function(){var K;
return((K=H())==null?void 0:K.type)==="icon"}},function(){return _.x(_.hu,{icon:function(){return H().iconName},
role:function(){return H().config.role},
className:function(){return H().config.className},
style:function(){return H().config.style$+";width: "+(H().config.width+"px;height: ")+(H().config.height+"px;color: ")+(H().config.color+";")},
ariaLabel:function(){return H().config["aria-label$"]},
ariaHidden:function(){return H().config["aria-hidden$"]},
dataDisabled:function(){return H().config["data-disabled$"]},
active:function(){return H().config.isToggled},
size:function(){return H().config.size}})}))},"d");
_.d7.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var $bB=function(d){return function(H){return _.x(x$F,null,function(){var K=H.data(),c=_.IH(H.config);return _.x(vd,null,function(){return void d(K,c)})})}}(NTF),yiF=_.H1(function(d){var H=function(c){var p,g=_.$M(function(U){p=uj(function(){for(var L=_.q(R()),w=L.next();!w.done;w=L.next()){w=D0h(w.value);
w=typeof w==="string"?document.createTextNode(w):w;if(!(w instanceof Node)){L=new _.m1("Part is not a node",w,typeof w);_.z5(L);break}U.appendChild(w)}})}),a=K7(function(){return qfi(c())},{isEqual:EjF}),e=_.vj(d.config),k=function(){var U,L=a();
return!((U=e())==null||!U.ariaLabel)||!(L.commandRuns&&L.commandRuns.length!==0||L.paragraphStyleRuns&&L.paragraphStyleRuns.length!==0)},C=K7(e,{isEqual:Aih}),R=function(){var U=oj5(a(),C());
l9f(U,C());return a().content?RBL(a().content,U).parts:[]},V=!0;
_.wc(function(){a();C();if(V)V=!1;else{var U=R();Promise.resolve().then(function(){var L=g.value;if(L){L.innerText="";var w;(w=p)==null||w();p=_.uU(L,function(){return _.x(f9C,{parts:U})})}})}},"YJG4lf");
return _.x("span",{el:g,class:function(){return a()&&Db4(a(),e())},
dir:function(){var U;return((U=e())==null?0:U.userInput)?"auto":void 0},
"aria-label":function(){var U;return k()?(U=e())==null?void 0:U.ariaLabel:void 0},
role:function(){return k()?"text":void 0}})},K;
return((K=d.config)==null?0:K.renderedFromFormattedString)?H(d.text):_.x(_.n,{cond:d.text,then:H})},"e");
yiF.idomCompat=!0;_.j$=_.H1(function(d){var H=_.vj(d.text),K=jTi(d);d.renderedFromFormattedString!==void 0&&(K.renderedFromFormattedString=!0);return _.h("attr_string_reactive")?_.x(yiF,{text:H,config:K}):_.x(_.n,{cond:function(){var c;return H()&&((c=qfi(H()))==null?void 0:c.content)},
then:function(){return _.x($bB,{data:d.text,config:K})},
debugInstance:"Apcuac"})},"f");
_.j$.idomCompat=!0;var dLC=function(d,H,K){H=H===void 0?"unknown":H;K=K===void 0?{}:K;_.m1.call(this,d+" ("+H+")",Object.assign({},{name:"YtWcwError",tagName:H},K));Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(dLC,_.m1);_.gzX=new WeakMap;_.pof=!1;var cD5,iDi,KAf;_.dl=Symbol("gh");_.p7=Symbol("hh");cD5=Symbol("ih");iDi=new Set(Object.getOwnPropertyNames(Element.prototype));KAf=Symbol("jh");var KzC=_.H1(function(d){return _.x("yt-attributed-string",{"aria-label":d.ariaLabel,hidden:d.hidden,id:d.id,class:d.className,"force-default-style":d.forceDefaultStyle},_.x(_.j$,{text:d.data,ariaLabel:d.ariaLabel,ellipsisTruncate:d.ellipsisTruncate,isOverlay:d.isOverlay,linkInheritColor:d.linkInheritColor,noPreWrap:d.noPreWrap,noWrap:d.noWrap,userInput:d.userInput,noEndpoints:d.noEndpoints,headerRuns:d.headerRuns,isHeadline:d.isHeadline}))},"g");
_.h("web_wiz_attributed_string")&&_.iV(KzC,"yt-attributed-string",{props:{ariaHidden:_.dl,ariaLabel:_.dl,className:_.dl,ellipsisTruncate:_.dl,isOverlay:_.dl,linkInheritColor:_.dl,noEndpoints:_.dl,noStyleRuns:_.dl,noLinkColor:_.dl,noPreWrap:_.dl,noWrap:_.dl,skipOnClick:_.dl,userInput:_.dl,headerRuns:_.dl,isHeadline:_.dl,id:_.dl,data:_.dl,hidden:_.dl,forceDefaultStyle:_.dl,text:_.p7,stopPropagation:_.p7,disableUpgrade:_.p7,disable:_.p7,slot:_.p7}});var HC=function(){return _.B.apply(this,arguments)||this};
_.m(HC,_.B);HC.prototype.renderIdom=function(){this.data&&!this.disable&&(this.config={ariaLabel:this.hostElement.ariaLabel,ellipsisTruncate:this.ellipsisTruncate,isOverlay:this.isOverlay,linkInheritColor:this.linkInheritColor,noPreWrap:this.noPreWrap,noWrap:this.noWrap,userInput:this.userInput,noEndpoints:this.noEndpoints,headerRuns:this.headerRuns},NTF(this.data,this.config))};
_.t([_.u(kc7),_.O("design:type",Object)],HC.prototype,"ytIdomTemplatingBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],HC.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],HC.prototype,"ariaLabel",void 0);_.t([_.r(),_.O("design:type",Boolean)],HC.prototype,"disable",void 0);_.t([_.r(),_.O("design:type",Boolean)],HC.prototype,"ellipsisTruncate",void 0);_.t([_.r(),_.O("design:type",Boolean)],HC.prototype,"isOverlay",void 0);
_.t([_.r(),_.O("design:type",Boolean)],HC.prototype,"linkInheritColor",void 0);_.t([_.r(),_.O("design:type",Boolean)],HC.prototype,"noPreWrap",void 0);_.t([_.r(),_.O("design:type",Boolean)],HC.prototype,"noWrap",void 0);_.t([_.r(),_.O("design:type",Boolean)],HC.prototype,"userInput",void 0);_.t([_.r(),_.O("design:type",Boolean)],HC.prototype,"noEndpoints",void 0);_.t([_.r(),_.O("design:type",Array)],HC.prototype,"headerRuns",void 0);
_.t([_.ZV({is:"yt-attributed-string",disableElementRegistration:!0})],HC);
_.h("web_wiz_attributed_string")||_.T(HC,"yt-attributed-string",function(){if(TD0===void 0){var d=document.createElement("template");_.P(d,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-attributed-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_attributed_string.yt.attributed.string.css.js--\x3e");d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
d.content.insertBefore(ZIB().content.cloneNode(!0),d.content.firstChild);TD0=d}d=TD0;return d},{mode:2});var cdM,pJ3,kaC;cdM=function(){this.firstThumbnailLoaded=!1};
_.ge7=function(){pJ3||(pJ3=new cdM);return pJ3};
kaC=function(d){var H=_.ge7();H.firstThumbnailLoaded||(H.firstThumbnailLoaded=!0,_.Fw("ftl",d))};
cdM.prototype.reset=function(){this.firstThumbnailLoaded=!1};var ozX=0,epF=new WeakMap,aC4=0,qc=new Set;var iYB,GU0=function(){return iYB!==void 0?iYB:iYB=document.createElement("template")};
document.head.appendChild(GU0().content);var oeX;var Rpl,ULY,$k;_.e8=_.KF.caches;$k=function(){};
$k.prototype.open=function(d){return _.e8.open(qr3(d))};
$k.prototype.has=function(d){return _.e8.has(qr3(d))};
$k.prototype.delete=function(d){return _.e8.delete(qr3(d))};
$k.prototype.match=function(d,H){var K=this,c,p,g,a,e,k;return _.l(function(C){switch(C.nextAddress){case 1:return C.yield(K.keys(),2);case 2:c=C.yieldResult,p=_.q(c),g=p.next();case 3:if(g.done){C.jumpTo(5);break}a=g.value;return C.yield(K.open(a),6);case 6:return e=C.yieldResult,C.yield(e.match(d,H),7);case 7:if(k=C.yieldResult)return C.return(k);g=p.next();C.jumpTo(3);break;case 5:return C.return()}})};
var hpi=function(){};
_.m(hpi,$k);var qr3=function(d){if(d.includes(":"))throw Error("mh`"+d);return d+":"+_.Lj("CacheStorage get")};
hpi.prototype.keys=function(){var d,H,K,c,p,g,a,e,k;return _.l(function(C){if(C.nextAddress==1)return d=[],H=_.Lj("CacheStorage keys"),C.yield(_.e8.keys(),2);K=C.yieldResult;c=_.q(K);for(p=c.next();!p.done;p=c.next())g=p.value,a=_.CP5(g),e=a.originalName,k=a.datasyncId,k===H&&d.push(e);return C.return(d)})};var Kd=function(){var d=_.B.apply(this,arguments)||this;d.objectURL=null;d.loadTime=Infinity;return d};
_.m(Kd,_.B);_.G=Kd.prototype;_.G.renderIdom=function(){nzL(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("ph");this.setConfig();this.config&&teF(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.G.objectFitToContentMode=function(d){switch(d){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.G.logThumbnailFailureVe=function(){var d=_.l8(197497);_.ec(_.hR(),d);var H=_.Fj();H&&d&&H&&_.No(H,[d])};
_.G.loadImageFromCacheIfExists=function(d){var H=this,K=d.target;(K==null?0:K.src)&&Md4(K.src).then(function(c){H.objectURL=_.JL(c).toString();H.setSrc(K,H.objectURL)}).catch(function(){})};
_.G.onError=function(d){var H=this;if(_.h("web_use_cache_for_image_fallback")){var K=d.target;K&&Md4(K.src).then(function(c){H.objectURL=_.JL(c).toString();H.setSrc(K,H.objectURL)}).catch(function(){_.h("kevlar_woffle_log_thumbnail_failure_ve")&&H.logThumbnailFailureVe();
_.h("kevlar_woffle_fallback_image")&&H.setSrc(K,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.G.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.G.setConfig=function(){var d=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(H){d.loadImageFromCacheIfExists(H);d.revokeObjectURL();xLF(d.hostElement)},
onerror:function(H){d.onError(H)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.h("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.G.setSrc=function(d,H){H&&(d.src=H)};
_.t([_.u(kc7),_.O("design:type",Object)],Kd.prototype,"ytIdomTemplatingBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Kd.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],Kd.prototype,"alt",void 0);_.t([_.r(),_.O("design:type",Boolean)],Kd.prototype,"ftlEligible",void 0);_.t([_.r(),_.O("design:type",Number)],Kd.prototype,"height",void 0);_.t([_.r(),_.O("design:type",Boolean)],Kd.prototype,"notifyOnLoaded",void 0);
_.t([_.r(),_.O("design:type",Boolean)],Kd.prototype,"notifyOnUnloaded",void 0);_.t([_.r(),_.O("design:type",String)],Kd.prototype,"objectFit",void 0);_.t([_.r(),_.O("design:type",String)],Kd.prototype,"objectPosition",void 0);_.t([_.r(),_.O("design:type",String)],Kd.prototype,"preferredThumbnail",void 0);_.t([_.r(),_.O("design:type",Boolean)],Kd.prototype,"preserveHeight",void 0);_.t([_.r(),_.O("design:type",Boolean)],Kd.prototype,"preserveWidth",void 0);
_.t([_.r({value:!0}),_.O("design:type",Boolean)],Kd.prototype,"useWidth",void 0);_.t([_.r({value:function(){return!_.Qx("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.O("design:type",Boolean)],Kd.prototype,"shouldRenderLazy",void 0);_.t([_.r(),_.O("design:type",Number)],Kd.prototype,"width",void 0);_.t([_.ZV({is:"yt-image",disableElementRegistration:!0})],Kd);
_.T(Kd,"yt-image",function(){if(oeX===void 0){var d=document.createElement("template");_.P(d,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_image.yt.image.css.js--\x3e");d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);d.content.insertBefore(GU0().content.cloneNode(!0),d.content.firstChild);
oeX=d}d=oeX;return d},{mode:2});var cC=function(){return _.B.apply(this,arguments)||this};
_.m(cC,_.B);cC.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var d=_.T6(this.data.onVisibleCommand);d&&this.ytComponentBehavior.resolveCommand(d)}};
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],cC.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.b9.YtVisibilityBehavior),_.O("design:type",Object)],cC.prototype,"ytVisibilityBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],cC.prototype,"data",void 0);_.t([_.ZV({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],cC);
_.T(cC,"yt-bumper-user-edu-content-view-model",function(){if(amA===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bumper-user-edu-content-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_bumper_user_edu_content_view_model.yt.bumper.user.edu.content.view.model.css.js--\x3e<div id="bumper-content" class="style-scope yt-bumper-user-edu-content-view-model">\n  <yt-image id="icon" data="[[data.image]]" height="16" class="style-scope yt-bumper-user-edu-content-view-model"></yt-image>\n  <div id="message-block" class="style-scope yt-bumper-user-edu-content-view-model">\n    <yt-attributed-string id="message" data="[[data.text]]" class="style-scope yt-bumper-user-edu-content-view-model"></yt-attributed-string>\n  </div>\n</div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;q$d===void 0&&(q$d=document.createElement("template"));var c=q$d;K.call(H,c.content.cloneNode(!0),d.content.firstChild);amA=d}d=amA;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var aqd;var lqX,eH7=function(){if(lqX!==void 0)return lqX;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;aqd===void 0&&(aqd=document.createElement("template"));var c=aqd;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return lqX=d};var kUN;_.pd={};kUN=new Set(["ytd-section-list-renderer","yt-horizontal-list-renderer","ytd-item-section-renderer","ytd-watch-next-secondary-results-renderer","ytd-video-primary-info-renderer"]);_.pd.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var d=this.getContext_();return d?d.getTaskManager():_.Xp},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var d=_.GT(this.hostElement,"yt-get-context-provider",{});d.detail&&d.detail.contextProvider?this.cachedProviderNode_=d.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return kUN.has(this.hostElement.localName)},
getNetworkManager:function(){var d=this.getContext_();if(d)return d.getNetworkManager()}};var rDF,xbl,C6S,neg;_.gl=function(d){var H=xbl.get(d);if(H&&(H=H.pop()))return neg++,H;C6S++;try{var K=document.createElement(d)}catch(c){throw new _.m1("ElementPool failed to create element",d,c.message);}return K};
rDF=function(d){var H=d.is;if(H){var K=xbl.get(H);K||(K=[],xbl.set(H,K));var c=_.Fm("ELEMENT_POOL_CONFIG")||{};K.length>=(c[H]!==void 0?c[H]:_.Fm("ELEMENT_POOL_DEFAULT_CAP",0))||K.push(d)}else _.Jf(new _.m1("Element pool should only handle custom elements:",d.nodeName))};
xbl=new Map;C6S=0;neg=0;var kM=new WeakMap,ICM=new WeakMap;var VIl;_.iq=function(d,H,K){K=K===void 0?_.MO():K;this.JSC$13733_defaultPriority=d;this.signal=H;this.scheduler=K;this.nextJobDescriptor=0;this.JSC$13733_parkedJobs=[];this.scheduledJobs=new Map};
_.Gm=function(d,H){if(H){var K=_.OT();d.signal&&!_.Sc(K,d.signal)?(K.addListener(d.signal,function(){d.processSignal()}),d.JSC$13733_parkedJobs.push({job:H,
priority:void 0})):RHN(d,H)}};
VIl=function(d,H){if(H!==d.JSC$13733_defaultPriority){d.JSC$13733_defaultPriority=H;for(var K=_.q(d.scheduledJobs.values()),c=K.next();!c.done;c=K.next())c=c.value,d.scheduler.cancelJob(c.jobId),c.jobId=d.scheduler.addJob(c.jobWrapper,H)}};
_.iq.prototype.flushJobs=function(){VIl(this,10);this.processSignal()};
_.iq.prototype.cancel=function(){for(var d=_.q(this.scheduledJobs),H=d.next();!H.done;H=d.next()){var K=_.q(H.value);H=K.next().value;K=K.next().value;this.scheduler.cancelJob(K.jobId);this.scheduledJobs.delete(H)}this.JSC$13733_parkedJobs=[]};
_.iq.prototype.processSignal=function(){for(var d=_.q(this.JSC$13733_parkedJobs),H=d.next();!H.done;H=d.next())H=H.value,RHN(this,H.job,H.priority);this.JSC$13733_parkedJobs=[]};
var RHN=function(d,H,K){K=K||d.JSC$13733_defaultPriority;if(K===10)ad(H);else{var c=d.nextJobDescriptor++,p=function(){H();d.scheduledJobs.delete(c)},g=d.scheduler.addJob(p,K);
d.scheduledJobs.set(c,{jobWrapper:p,jobId:g,priority:K})}};_.p5(_.XoL);CGL({beforeVisit:function(d){if(_.iD.has(d.type)){var H;(H=d.props).idomKey!=null||(H.idomKey=d.type)}else d.type.TAG_NAME&&(_.g7=d.type.TAG_NAME)},
afterRender:function(d,H){var K;_.g7=(K=H==null?void 0:H.type)!=null?K:""},
didPatch:function(){_.g7=""}});var Ubg;_.om={};Ubg={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.om.YtRendererstamperBehavior=[_.pd.YtTaskEmitterBehavior,{mappings:null,stampDom:null,rendererStamperLogger_:null,beforeRegister:function(){this.configureRendererStamper&&typeof this.configureRendererStamper==="function"&&(this.stampDom?this.stampDom=Object.assign({},this.stampDom,this.configureRendererStamper()):this.stampDom=this.configureRendererStamper());this.stampDom&&this.addStampDomObservers_()},
created:function(){this.deferredBindingTasks_=[];this.renderJobsMap_=Object.create(null);this.hasDataPath_=Object.create(null);this.stampDom&&this.addStampDomObserverFns_();this.telemetry_={};this.resetTelemetry_()},
resetTelemetry_:function(){this.telemetry_.create=0;this.telemetry_.reuse=0},
addStampDomObservers_:function(){if(this.useSignals)for(var d in this.stampDom){var H=this.stampDom[d];H&&H.id&&this.addReactiveSchema({type:"observe",method:{methodName:woh(H.id),args:[{type:"wildcard",path:d}]}})}else{(d=(this.constructor.generatedFrom||this).observers)||(d=[]);for(H in this.stampDom){var K=this.stampDom[H];K&&K.id&&d.push(woh(K.id)+"("+H+".*)")}this.constructor.generatedFrom.observers=d}},
addStampDomObserverFns_:function(){for(var d in this.stampDom){var H=this.stampDom[d];H.id?(this[woh(H.id)]=this.rendererStamperObserver_.bind(this,d,H.id),this.hasDataPath_[d]=!1):(H=new _.m1("Bad rendererstamper config",this.is+":"+d),_.z5(H))}},
rendererStamperObserver_:function(d,H,K){if(K.path==d){if(K.value===void 0&&!this.hasDataPath_[d])return;this.hasDataPath_[d]=K.value!==void 0}this.rendererStamperApplyChangeRecord_(d,H,K)},
rendererStamperApplyChangeRecord_:function(d,H,K){var c=this.renderJobsMap_[H],p=null;d==K.path?(K=K.value,_.O5(K)||(K=K===void 0||K===null?[]:[K]),d=this.stampDom[d],d.mapping&&(p=this.stampDomArray_.bind(this,K,H,d.mapping,d.reuseComponents,d.events,d.stamperStableList)),c&&c.cancel(),K=d.usePageScheduler?this.getTaskManager():void 0,c||d.initialRenderPriority==void 0)?d.renderPriority==void 0||c||(c=new _.iq(d.renderPriority,d.waitForSignal,K),this.renderJobsMap_[H]=c):(c=new _.iq(d.initialRenderPriority,
d.waitForSignal,K),this.renderJobsMap_[H]=c,p=function(g,a){g();VIl(a,10)}.bind(this,p,c)):p=d+".splices"==K.path?this.stampDomArraySplices_.bind(this,d,H,K.value):this.forwardRendererStamperChanges_.bind(this,d,H,K);
c?_.Gm(c,p):p()},
forwardRendererStamperChanges_:function(d,H,K){var c=K.path.slice(d.length+1),p=this.getStampContainer_(H),g=c.indexOf("."),a=c.substring(0,g),e=!1,k=0,C=parseInt(a,0);if(a[0]=="#"){e=parseInt(a.substring(1),0);C=this.get(d);var R=this.get([d,a]);C[e]==R?k=e:k=C.indexOf(R);e=!0}else isNaN(C)||(k=C,e=!0);e&&(c=c.substring(a.length+1),g=c.indexOf("."));a=_.Iu(p).children[k];var V;if(p=(V=a==null?void 0:a.polymerController)!=null?V:a)c="data"+c.slice(g),typeof p.notifyPath!=="function"?_.Jf(new _.m1("notifyPath missing",
this.is+": "+d+", "+H)):K.value?p.notifyPath(c,K.value):p.notifyPath(c)},
stampDomArraySplices_:function(d,H,K){if(K&&K.indexSplices){var c=this.getStampContainer_(H);if(c){for(var p=_.Iu(c),g=uAF(this.stampDom[d].reuseComponents),a=K.indexSplices.length,e=0;e<a;e++){for(var k=K.indexSplices[e],C=p.children[k.index],R=k.removed.length;R>0;R--)C&&C.parentElement&&(_.Iu(C.parentElement).removeChild(C),g&&rDF(C),C=p.children[k.index]);R=this.stampDom[d].mapping;for(var V=k.index+k.addedCount,U=document.createDocumentFragment(),L=g,w=k.index;w<V;w++){var W=k.object[w],J=mLY(R,
W);if(J){var F=R[J];W=W[J];J=this.getComponentName_(F,W);var Y=C?kM.has(C):!1;L&&C&&C.is==J&&Y?(J=C,this.telemetry_.reuse++,C=C.nextElementSibling):L&&C&&Y?(J=this.createComponent_(F,W,g),Y=_.Iu(C).nextElementSibling,p.insertBefore(J,Y),BZM(this.is,p,C,g),C=Y):(L=!1,J=this.createComponent_(F,W,g),U.appendChild(J));this.deferRenderStamperBinding_(J,F,W)}else F=new _.m1("Unimplemented type",d,H,c.tagName,Object.keys(W)[0]),_.z5(F)}p.insertBefore(U,C)}this.flushRenderStamperComponentBindings_();this.stampDom[d].events&&
_.GT(this.hostElement,"yt-rendererstamper-finished",{container:c})}else d=new _.m1("Container object not found",H,this.hostElement?this.hostElement.is:""),_.z5(d)}},
stampDomArray_:function(d,H,K,c,p,g){var a=this.getStampContainer_(H);if(a)if(H=_.Iu(a),c=uAF(c),d){var e=0,k=0,C;if(g=g===void 0?_.Qx("STAMPER_STABLE_LIST",!1):g||!1)for(C=H.firstElementChild;C&&!kM.has(C)&&d.length>k;){g=d[k];var R=mLY(K,g);if(R){if(this.getComponentName_(K[R],g[R])!=C.is){var V=this.createComponent_(K[R],g[R],c),U=_.Iu(C).nextElementSibling;U?H.insertBefore(V,U):H.appendChild(V);BZM(this.is,H,C,c);C=V}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(C,K[R],g[R]);e++;
k++;C=_.Iu(C).nextElementSibling}else k++}zpC(this.is,H,e,c);e=C;if(d.length>k){g=document.createDocumentFragment();for(R=d.length;k<R;k++)if(V=d[k],U=mLY(K,V))C=this.createComponent_(K[U],V[U],c),this.deferRenderStamperBinding_(C,K[U],V[U]),g.appendChild(C);e&&_.Iu(e).parentNode&&C&&!kM.has(C)?H.insertBefore(g,e):H.appendChild(g)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();p&&_.GT(this.hostElement,"yt-rendererstamper-finished",{container:a})}else zpC(this.is,H,0,
c);else d=new _.m1("Container object not found",H,this.hostElement?this.hostElement.is:""),_.z5(d)},
getStampContainer_:function(d){return this.$&&this.$[d]||_.Gn(this.hostElement).querySelector("#"+d)},
getComponentName_:function(d,H){return typeof d==="string"?d:d.matcher?d.matcher.call(this,H):d.component},
createComponent_:function(d,H,K){d=this.getComponentName_(d,H);try{var c=G6.has(d)||_.iD.has(d);if(K&&!c){var p=_.gl(d);try{_.eO(p)}catch(g){K="Failed to clear styles for "+d+".",g.message&&(K+=" Original error: "+g.message),_.Jf(new _.m1(K))}}else p=document.createElement(d)}catch(g){return p="YtRendererStamperBehavior failed to create "+d+".",g.message&&(p+=" Original description: "+g.message),g.message="YtRendererStamperBehavior failed to create element",_.sD(g,p),Ubg.hasOwnProperty(d)?_.Jf(g):
_.z5(g),document.createElement("SPAN")}this.telemetry_.create++;return p},
deferRenderStamperBinding_:function(d,H,K){this.deferredBindingTasks_.push({component:d,typeOrConfig:H,data:K})},
flushRenderStamperComponentBindings_:function(){for(var d=0,H=this.deferredBindingTasks_.length;d<H;d++){var K=this.deferredBindingTasks_[d];if(!K)break;var c=void 0,p=void 0,g=void 0,a=void 0,e=K.component,k=K.typeOrConfig;K=K.data;var C=(a=e.polymerController)!=null?a:e;a=e.loggingStatus;try{a&&(a.isRendererStamper=!0);if(typeof k!=="string"){for(g in k.attributes)k.attributes[g]===!0?e.setAttribute(g,""):k.attributes[g]===!1?e.removeAttribute(g):e.setAttribute(g,k.attributes[g]);for(p in k.params)C[p]=
k.params[p],e!==C&&Pj(e.localName,p,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(c in k.properties){var R=k.properties[c];if(R){var V=PPD(R);C[c]=this.get(V);e!==C&&Pj(e.localName,c,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(c==="on-tap"||c==="on-click"){var U=this.get(V);e.addEventListener("click",U);ICM.set(e,{property:c,listener:{type:"element",eventName:"click",handler:U}})}}else{var L=new _.m1("Undefined property binding",c);_.z5(L)}}}if(k.classListBinding){var w=PPD(k.classListBinding),
W=w?this[w]:null;if(W)for(c=0;c<W.length;c++)_.qr(e,W[c],!0)}C.data=K}finally{a&&(a.isRendererStamper=!1)}if(c=kM.get(e))e.hidden=!1,kM.delete(e),_.Xp.cancelJob(c)}this.deferredBindingTasks_.length=0}}];_.iV(_.H1(function(d){function H(){K().seconds&&g(V$4({seconds:Number(K().seconds)-Date.now()/1E3}))}
var K=d.targetTimestamp;d=d.className;var c=_.q(_.GO("",void 0,"U1Q8Ae")),p=c.next().value,g=c.next().value;_.Is(function(){H();var a=setInterval(function(){H()},1E3);
_.Pk(function(){clearInterval(a)})});
return _.x("yt-countdown",{class:_.xM("ytCountDownHost",d)},_.x("div",null,p))},"h"),"yt-countdown",{props:{targetTimestamp:_.dl,
className:_.p7}});_.qZ=new _.Av("KEY_MANAGER_TOKEN");var JDl={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.Oj=_.H1(function(d){var H=_.Af("a",d.ref),K=d.aTagConfig?d.aTagConfig:_.ey(function(){var c,p,g,a,e;var k=(e=_.T6((g=d.command)==null?void 0:g.call(d)))!=null?e:(a=d.command)==null?void 0:a.call(d);return _.OG({innertubeCommand:k,skipOnClick:(c=d.skipOnClick)==null?void 0:c.call(d),defaultTarget:(p=d.target)==null?void 0:p.call(d)})||{}},void 0,"I5WLmc");
_.wc(function(){H.value._data=K()._data;H.value.params=K().params},"STb8Se");
return _.x("a",{el:H,href:function(){return K().href$},
rel:function(){return K().rel$},
class:function(){var c,p;return(p=K().className)!=null?p:(c=d.className)==null?void 0:c.call(d)},
style:function(){var c;if((c=d.style)==null?0:c.call(d))return d.style();var p;return((p=d.disabled)==null?0:p.call(d))?"pointer-events:none":""},
"aria-haspopup":function(){return!!K()["aria-haspopup$"]},
"force-new-state":C7(function(){return K()["force-new-state$"]}),
title:C7(function(){var c,p;return(p=K().title$)!=null?p:(c=d.title)==null?void 0:c.call(d)}),
role:C7(function(){var c;return((c=d.role)==null?void 0:c.call(d))||K().role$}),
target:C7(function(){return K().target$}),
dir:C7(function(){var c;return((c=d.dir)==null?void 0:c.call(d))||K().dir}),
tabindex:function(){var c;return K().tabindex$?Number(K().tabindex$):(c=d.tabIndex)==null?void 0:c.call(d)},
"aria-hidden":function(){var c,p;return(p=K()["aria-hidden$"])!=null?p:(c=d.ariaHidden)==null?void 0:c.call(d)},
"aria-label":function(){var c,p;return(p=K()["aria-label$"])!=null?p:(c=d.ariaLabel)==null?void 0:c.call(d)},
"aria-current":d.ariaCurrent,"aria-disabled":d.disabled,"aria-labelledby":d.ariaLabelledby,"aria-describedby":d.ariaDescribedby,"aria-selected":d.ariaSelected,"tab-identifier":d.tabIdentifier,"on:pointerdown":_.n7(function(c){var p,g;return void((g=(p=K()).onpointerdown)==null?void 0:g.call(p,c))}),
"on:click":_.n7(function(c){var p,g;(g=(p=K()).onclick)==null||g.call(p,c);var a;(a=d.onClick)==null||a.call(d,c)}),
"on:focusin":_.n7(function(c){var p;(p=d.onFocusin)==null||p.call(d,c)}),
"on:focusout":_.n7(function(c){var p;(p=d.onFocusout)==null||p.call(d,c)})},d.children)},"i");var OD1={duration:1E3,easing:"ease",fill:"forwards"};_.p5(Y0l);var EzC={duration:1E3,easing:"ease",fill:"forwards"},MIM=_.H1(function(d){var H=_.Af("animated-rolling-character"),K=void 0,c=function(){var p,g;return v3((p=d.character)==null?void 0:p.call(d))||v3((g=d.previousCharacter)==null?void 0:g.call(d))};
_.wc(function(){if(d.marginMultiplier()){var p;(p=K)==null||p.cancel();if(c()){var g;p=((g=d.previousCharacter)==null?0:g.call(d))?Number(d.previousCharacter())+10:d.rollUp()?0:30;var a;if((a=d.shouldAnimate)==null||!a.call(d)){var e,k;p-=S05((e=d.character)==null?void 0:e.call(d),(k=d.previousCharacter)==null?void 0:k.call(d),d.rollUp(),p)}}else{p=d.rollUp()?0:2;var C;(C=d.shouldAnimate)!=null&&C.call(d)||(g=p,a=d.rollUp()?-1:1,p=g-a)}H.value.style.marginTop="-"+p*d.marginMultiplier()+"px";var R;
if((R=d.shouldAnimate)==null?0:R.call(d)){var V,U;K=yDF(H.value,(V=d.character)==null?void 0:V.call(d),(U=d.previousCharacter)==null?void 0:U.call(d),d.rollUp(),p,c(),d.marginMultiplier())}else{var L;H.value.style.display=((L=d.character)==null?0:L.call(d))?"":"none"}}},"EgLkAe");
return _.x("animated-rolling-character",{el:H,class:"animatedRollingCharacterHost"},_.x(_.n,{cond:c,then:function(){return _.x(hHg,null)},
else:function(){return _.x(LzU,{character:d.character})}}))},"j");
MIM.idomCompat=!0;var bDE=_.h("web_enable_sink_animated_rolling_character_and_number")?MIM:Y0l,mb6=_.h("web_enable_sink_animated_rolling_character_and_number")?MIM:_.Rd(Y0l),hHg=_.H1(function(){for(var d=[],H=1;H<30;H++)d.push(_.x("div",null,H%10));return _.x(_.HE,null,_.x("div",null,"\u00a0"),d,_.x("div",null,"\u00a0"))},"k"),LzU=_.H1(function(d){var H=d.character;
return _.x(_.HE,null,_.x("div",null,"\u00a0"),_.x(_.n,{cond:function(){return!(H==null?0:H())||_.oE(H==null?void 0:H())},
then:function(){return _.x("div",null,"\u00a0")},
else:function(){return _.x("div",null,H)}}),_.x("div",null,"\u00a0"))},"l");_.p5(NZC);var wJM=_.H1(function(d){var H=void 0,K=void 0,c=function(){var g;return((g=d.fontSizeMultiplier)==null?0:g.call(d))?d.heightPx()*d.fontSizeMultiplier():d.heightPx()},p=_.ey(function(){if(!d.numberText())return[];
var g,a,e=((g=d.forceRollUp)==null?void 0:g.call(d))||!K||!((a=d.numberValue)==null?0:a.call(d))||K<d.numberValue(),k,C=d.numberText();g=c();a=!((k=d.shouldAnimate)==null||!k.call(d));k=[];var R=0,V=0,U=(H?H.replace(/\D/g,"").length:0)-(C?C.replace(/\D/g,"").length:0),L=H?H.split(/(\d)/).filter(Boolean):[];for(C=C.split(/(\d)/).filter(Boolean);U<0;){var w=C[V];k.push({character:w,rollUp:e,marginMultiplier:g,shouldAnimate:a});V++;v3(w)&&U++}for(;R<U;)w=L[R],k.push({previousCharacter:w,rollUp:e,marginMultiplier:g,
shouldAnimate:a}),R++,v3(w)||U++;for(;V<C.length;)U=C[V],w=L[R],v3(U)===v3(w)?(V++,R++):v3(U)?(R++,U=void 0):v3(w)&&(V++,w=void 0),k.push({character:U,previousCharacter:w,rollUp:e,marginMultiplier:g,shouldAnimate:a});H=d.numberText();var W;K=(W=d.numberValue)==null?void 0:W.call(d);return k},void 0,"kWiBv");
return _.x("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return d.numberText()?["height: "+c()+"px;","line-height: "+d.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.x(_.L6,{each:p,keyBy:"INDEX"},function(g){return _.x(mb6,{character:function(){return g().character},
previousCharacter:function(){return g().previousCharacter},
marginMultiplier:function(){return g().marginMultiplier},
rollUp:function(){return g().rollUp},
shouldAnimate:function(){return g().shouldAnimate}})}))},"m");
wJM.idomCompat=!0;_.P6g=_.h("web_enable_sink_animated_rolling_character_and_number")?wJM:NZC;_.uzM=_.h("web_enable_sink_animated_rolling_character_and_number")?wJM:_.Rd(NZC);var Iql=function(d,H){this.fillAnimation=new Animation(DLL(d),document.timeline);this.strokeAnimation=new Animation(fC5(H),document.timeline)};
Iql.prototype.play=function(){var d,H;(H=(d=this.fillAnimation).play)==null||H.call(d);var K,c;(c=(K=this.strokeAnimation).play)==null||c.call(K)};
Iql.prototype.cancel=function(){var d,H;(H=(d=this.fillAnimation).cancel)==null||H.call(d);var K,c;(c=(K=this.strokeAnimation).cancel)==null||c.call(K)};_.am=_.H1(function(d){var H=d.model;var K=d.pointerDownEvent;var c=d.pointerUpEvent;var p=d.pointerLeaveEvent;d=_.Af("div");var g=_.UQ({"border-radius":function(){return H().borderRadius}}),a=_.Af("div"),e=_.Af("div"),k=_.q(_.V2(function(){return(c==null?0:c())||(p==null?0:p())?!1:!(K==null||!K())||!1})),C=k.next().value,R=k.next().value,V=void 0,U=function(){!V&&e.value&&a.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(V=new Iql(e.value,a.value));
var Y;(Y=V)==null||Y.play()},L=function(){var Y;
(Y=V)==null||Y.cancel()},w=function(){var Y;
(Y=V)==null||Y.cancel()};
_.wc(function(){(c==null?0:c())&&U()},"YjVIpd");
_.wc(function(){(K==null?0:K())&&L()},"UrXvqb");
_.wc(function(){(p==null?0:p())&&w()},"QK6L8b");
k=_.n7(function(){U();R(!1)});
var W=_.n7(function(){L();R(!0)}),J=_.n7(function(){w();
R(!1)});
_.Pk(function(){if(V){var Y;(Y=V)==null||Y.cancel();V=void 0}});
var F={};C=_.xM("yt-spec-touch-feedback-shape",function(){return ADE(H().color)},(F["yt-spec-touch-feedback-shape--focused"]=function(){return!!H().focused&&!H().disabled},F["yt-spec-touch-feedback-shape--circular"]=function(){return!!H().circular},F["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!H().isExtended},F["yt-spec-touch-feedback-shape--down"]=C,F["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!H().triggerEvents},F));
return _.x("yt-touch-feedback-shape",{style:_.UQ({"border-radius":"inherit"})},_.x("div",{el:d,class:C,style:_.UQ({"margin-top":function(){return H().customTopExtend?"-"+H().customTopExtend+"px":void 0}}),
"on:mousedown":W,"on:mouseup":k,"on:pointerleave":J,"on:touchstart":W,"on:touchend":k,"aria-hidden":!0},_.x("div",{class:"yt-spec-touch-feedback-shape__stroke",style:g,el:a}),_.x("div",{class:"yt-spec-touch-feedback-shape__fill",style:g,el:e})))},"n");
_.am.idomCompat=!0;var rdA={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};var lq=_.nF();lq=lq.toLowerCase();if(_.qf(lq,"android")){var Wz3=lq.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);Wz3&&parseFloat(Wz3[1])<100||lq.match("("+Object.keys(rdA).join("|")+")")};var BJX=_.H1(function(d){return _.x(_.n,{cond:d.aTagConfig,then:function(H){return _.x(_.Oj,{aTagConfig:H,disabled:d.disabled,className:d.className,style:d.style,title:d.title,ariaLabel:d.ariaLabel,ariaCurrent:function(){var K,c;return((K=d.toggleable)==null?void 0:K.call(d))&&((c=d.toggled)==null?void 0:c.call(d))},
ref:d.ref},d.children)},
else:function(){return _.x("button",{el:_.$M(d.ref),"on:click":_.n7(function(H){var K;return(K=d.onClick)==null?void 0:K.call(d,H)}),
class:d.className,title:d.title,style:d.style,disabled:d.disabled,"aria-pressed":function(){var H,K;return((H=d.toggleable)==null?0:H.call(d))?!((K=d.toggled)==null||!K.call(d)):void 0},
"aria-label":d.ariaLabel,"aria-disabled":d.visiblyDisabled,"aria-hidden":d.ariaHidden,tabindex:d.tabIndex},d.children)}})},"o"),XJN=_.H1(function(d){var H=d.data;
var K=d.hasIconLeading;var c=d.hasIconLeadingTrailing;var p=d.hasIconTrailing;var g=d.iconButton;var a=d.iconClassName;var e=d.secondaryIconClassName;var k=d.icon;var C=d.secondaryIcon;var R=d.textContentClassName;return _.x(eP,{className:"",style:"display: inherit; justify-content: center"},_.x(_.n,{debugInstance:"V4z1Uc",cond:function(){return k&&(K()||c()||(g==null?void 0:g()))},
then:function(){return _.x(eP,null,_.x("div",{class:a,"aria-hidden":"true"},k==null?void 0:k()))}}),_.x(_.n,{debugInstance:"ok3btb",
cond:function(){return(H().buttonText||H().animatedTextProps||H().formattedButtonText)&&!(g==null?0:g())},
then:function(){return _.x(eP,null,_.x(zHN,{className:R,iconPosition:function(){return H().iconPosition},
text:function(){return H().buttonText},
oneOffCustomTextWrap:function(){return H().oneOffCustomTextWrap},
formattedButtonText:function(){return H().formattedButtonText},
animatedTextProps:function(){return H().animatedTextProps}}))}}),_.x(_.n,{debugInstance:"DO5Rz",
cond:p,then:function(){return _.x(eP,null,_.x("div",{class:a},k==null?void 0:k()))}}),_.x(_.n,{debugInstance:"bnojSc",
cond:c,then:function(){return _.x(eP,null,_.x("div",{class:e},C==null?void 0:C()))}}),_.x(_.n,{debugInstance:"HN3kad",
cond:function(){return!H().disabled&&!0},
then:function(){return _.x(_.am,{model:function(){var V=H();return{color:V.style==="overlay-dark"?4:V.style==="overlay"?V.type==="filled"?4:3:V.type==="filled"||V.style==="call-to-action-inverse"||V.style==="mono-inverse"?2:1}}})}}))},"p"),zHN=_.H1(function(d){var H=function(){var K,c;
return((K=d.iconPosition)==null?void 0:K.call(d))==="icon-with-label"||((c=d.oneOffCustomTextWrap)==null?void 0:c.call(d))};
return _.x("div",{class:d.className,"aria-hidden":function(){var K,c,p;return((K=d.ariaHidden)==null?void 0:K.call(d))&&(!((c=d.animatedTextProps)==null||!c.call(d))||!((p=d.formattedButtonText)==null||!p.call(d)))}},_.x(_.w9,null,_.x(_.MM,{when:function(){var K;
return(K=d.animatedTextProps)==null?void 0:K.call(d)}},function(){return _.x(_.uzM,{numberText:function(){return d.animatedTextProps().numberText},
numberValue:function(){return d.animatedTextProps().numberValue},
heightPx:function(){return d.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return d.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return d.animatedTextProps().shouldAnimate},
forceRollUp:function(){return d.animatedTextProps().forceRollUp}})}),_.x(_.MM,{when:function(){var K;
return(K=d.formattedButtonText)==null?void 0:K.call(d)}},function(){return _.x(_.j$,{text:function(){return Object.assign({},d.formattedButtonText(),{lineBreakMode:H()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":d.formattedButtonText().lineBreakMode,
alignment:H()?"TEXT_ALIGNMENT_CENTER":d.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!H()}})}),_.x(_.MM,{when:function(){var K,c;
return((K=d.iconPosition)==null?void 0:K.call(d))==="icon-with-label"&&((c=d.text)==null?void 0:c.call(d))}},function(){return _.x(_.j$,{text:function(){return{content:d.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.x(_.mS,null,function(){return d.text})))},"q"),Jd3=_.H1(function(d){return _.x(_.n,{debugInstance:"kM7Sgc",
cond:d.hasLabel,then:function(){var H;return _.x("label",{class:d.className},d.children,(H=d.textContent)==null?void 0:H.call(d))},
else:function(){return d.children}})},"r"),eP=_.H1(function(d){return d.children},"s");var sUg=_.H1(function(d){var H=_.$M(),K=_.q(_.GO(void 0,void 0,"Z7xOte")),c=K.next().value,p=K.next().value;K=_.q(_.GO(void 0,void 0,"ppqp2e"));var g=K.next().value,a=K.next().value;K=_.q(_.GO(0,void 0,"bD1Mhe"));var e=K.next().value,k=K.next().value;K=_.n7(function(){switch(e()){case 1:k(2);break;case 3:var R,V;(V=(R=H.value).hidePopover)==null||V.call(R);k(0);p(void 0);a(void 0)}});
_.wc(function(){if(d.show()){var R;p((R=d.children)==null?void 0:R.call(d));var V;a((V=d.location)==null?void 0:V.call(d));switch(e()){case 0:var U,L;(L=(U=H.value).showPopover)==null||L.call(U);k(1);break;case 3:k(1);var w,W;(W=(w=H.value).hidePopover)==null||W.call(w);var J,F;(F=(J=H.value).showPopover)==null||F.call(J)}}else switch(e()){case 2:k(3);break;case 1:var Y,A;(A=(Y=H.value).hidePopover)==null||A.call(Y);p(void 0);a(void 0);k(0)}},"vFJRcd");
_.WE(function(){});
var C={};return _.x("yt-popover",{popover:"manual",el:H,style:_.UQ({left:function(){var R;return(R=g())==null?void 0:R.left},
top:function(){var R;return(R=g())==null?void 0:R.top},
bottom:function(){var R;return(R=g())==null?void 0:R.bottom},
right:function(){var R;return(R=g())==null?void 0:R.right}}),
class:_.xM("ytPopoverComponentHost",d.classNames,(C.ytPopoverComponentHostClosing=function(){return e()===3},C.ytPopoverComponentHostSeeThrough=function(){var R;
return((R=d.seeThrough)==null?void 0:R.call(d))===!0},C)),
"on:animationend":K},c)},"t");var FzA={left:"0px",right:"auto",top:"0px",bottom:"auto"},ZYC=function(){var d=this;this.registerTooltipElement=function(K){var c;d.tooltipElement=(c=K.querySelector("yt-popover"))!=null?c:void 0};
var H=_.q(_.GO(void 0,void 0,"z4iHWd"));this.state=H.next().value;this.setState=H.next().value;H=_.q(_.GO(void 0,void 0,"uKDcaf"));this.schedulerJobID=H.next().value;this.setSchedulerJobID=H.next().value},gUh=function(d,H){var K=Mc,c=_.Xp.addJob(function(){var p=TJ3(K,d,H);
K.setState({text:H.text,location:p,anchor:d,offset:H.offset})},4,H.delay);
K.setSchedulerJobID(c)},irl=function(){var d=Mc,H=d.schedulerJobID();
H&&(_.Xp.cancelJob(H),d.setSchedulerJobID(void 0));d.setState(void 0)};
ZYC.prototype.notify=function(d,H){var K;((K=this.state())==null?void 0:K.anchor)===d&&(K=TJ3(this,d,H),this.setState({text:H.text,location:K,anchor:d,offset:H.offset}))};
var TJ3=function(d,H,K){var c=H.getBoundingClientRect();H=window.innerWidth;var p=window.innerHeight,g=K.location,a=K.offset;K=K.text;if(d=d.tooltipElement){var e=getComputedStyle(d);d=e.font;var k=L7(e.lineHeight),C=L7(e.paddingLeft),R=L7(e.paddingRight),V=L7(e.paddingTop);e=L7(e.paddingBottom);var U=document.createElement("canvas").getContext("2d");U.font=d;K={width:U.measureText(K).width+C+R,height:k+V+e}}else K=void 0;d=K;if(!d)return FzA;K=d.width;d=d.height;C=a+d;V=a+K;k=c.top>=C;C=p-c.bottom>=
C;R=c.left>=V;V=H-c.right>=V;e=g;switch(g){case "top":!k&&C&&(e="bottom");break;case "bottom":!C&&k&&(e="top");break;case "left":!R&&V&&(e="right");break;case "right":!V&&R&&(e="left")}switch(e){case "top":g=c.left+c.width/2-K/2;c=c.top-d-a;break;case "bottom":g=c.left+c.width/2-K/2;c=c.bottom+a;break;case "left":g=c.left-K-a;c=c.top+c.height/2-d/2;break;case "right":g=c.right+a;c=c.top+c.height/2-d/2;break;default:g=c.left+c.width/2-K/2,c=c.bottom+a}a=Object.assign({},FzA);g+K>H?(a.right="0px",a.left=
"auto"):(a.left=Math.round(Math.max(0,g)+window.scrollX)+"px",a.right="auto");c+d>p?(a.bottom="0px",a.top="auto"):(a.top=Math.round(Math.max(0,c)+window.scrollY)+"px",a.bottom="auto");return a};var Mc;Mc=new ZYC;_.QUB=_.H1(function(){var d=_.ey(function(){var K;return(K=Mc.state())==null?void 0:K.text},void 0,"KoaMVc"),H=_.ey(function(){var K;
return(K=Mc.state())==null?void 0:K.location},void 0,"R6s5tc");
return _.x("yt-tooltip",{class:"ytTooltipContainerHost",el:_.$M(Mc.registerTooltipElement),"aria-hidden":"true"},_.x(sUg,{classNames:"ytTooltipContainerContent",location:H,show:function(){return!!d()},
seeThrough:!0},d))},"u");var q7L=fA("stamper-context");_.kk=_.H1(function(d){var H=d.data;var K=d.icon;var c=d.iconName;var p=d.animateIcon;var g=d.secondaryIcon;var a=d.secondaryIconName;var e=d.focusedOverride;var k=d.clientOnlyWizTooltipsEnabled;_.me();var C=jN4(H),R=C.size,V=C.style;d=C.disabled;var U=C.onTap,L=C.alignByText,w=C.aTagConfig,W=C.customColors,J=C.segmentedPosition,F=C.toggled,Y=C.toggleable,A=C.accessibilityLabel,E=C.onToggle,N=C.iconPosition,y=C.oneOffCustomTextWrap,v=C.disableTextEllipsis,el=C.disableBackdropFilter,l1=C.tooltipText,
V4=C.ariaHidden,Mf=C.tabIndex,LF=C.buttonText,YY=C.formattedButtonText,FM=C.animatedTextProps,gA=$IX(H,K,g,c,a,e,p),JN=gA.type;K=gA.shouldFocus;c=gA.hasIconLeading;p=gA.hasIconTrailing;var eS=gA.hasIconLeadingTrailing,vF=gA.hasIconOnly;g=gA.hasIconOnly40;var CX=gA.hasIconWithLabel;a=gA.iconButton;var kd=gA.visiblyDisabled;e=gA.overrideSmallSizeIcon;C=gA.iconToRender;gA=gA.secondaryIconToRender;var BB=_.q(G2D(l1)).next().value,ug={},fX={};return _.x(Jd3,{className:_.xM("yt-spec-button-shape-with-label",
(ug["yt-spec-button-shape-with-label--is-overlay"]=function(){return V()==="overlay"||V()==="overlay-dark"},ug)),
hasLabel:CX,textContent:function(){return _.x(zHN,{text:LF,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:y,iconPosition:N,formattedButtonText:YY,animatedTextProps:FM})}},_.x(BJX,{aTagConfig:w,
className:_.xM("yt-spec-button-shape-next",function(){return Kol(JN())},function(){return kd()?void 0:cpF(V())},function(){return p85(R())},(fX["yt-spec-button-shape-next--disabled"]=kd,fX["yt-spec-button-shape-next--focused"]=K,fX["yt-spec-button-shape-next--icon-trailing"]=p,fX["yt-spec-button-shape-next--icon-leading"]=c,fX["yt-spec-button-shape-next--icon-leading-trailing"]=eS,fX["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return eS()&&!(LF()||YY())},fX["yt-spec-button-shape-next--icon-button"]=
function(){return vF()||CX()},fX["yt-spec-button-shape-next--icon-only-default"]=g,fX["yt-spec-button-shape-next--align-by-text"]=L,fX["yt-spec-button-shape-next--segmented-start"]=function(){return J()==="start"},fX["yt-spec-button-shape-next--segmented-end"]=function(){return J()==="end"},fX["yt-spec-button-shape-next--override-small-size-icon"]=e,fX["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=y,fX["yt-spec-button-shape-next--disable-text-ellipsis"]=v,fX["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!el()&&!_.h("web_disable_backdrop_filter")},fX)),
style:function(){var pF=W();if(pF){var dA=pF.color;var U3=pF.backgroundColor;pF=pF.borderColor;var lg="";dA&&(lg+="color: "+dA+";");U3&&(lg+="background-color: "+U3+";");pF&&(lg+="border-color: "+pF+";");dA={style:lg}}else dA={};return dA.style},
onClick:function(pF){U==null||U(pF);Y()&&(E==null||E(pF))},
disabled:d,ariaLabel:A,toggleable:Y,toggled:F,title:function(){return(k==null?0:k())||!l1()?"":l1()},
visiblyDisabled:kd,ariaHidden:V4,tabIndex:Mf,ref:function(pF){(k==null?0:k())&&BB(pF)}},_.x(XJN,{data:H,
hasIconLeading:c,hasIconLeadingTrailing:eS,hasIconTrailing:p,iconButton:a,icon:C,textContentClassName:"yt-spec-button-shape-next__button-text-content",iconClassName:"yt-spec-button-shape-next__icon",secondaryIconClassName:"yt-spec-button-shape-next__secondary-icon",secondaryIcon:gA})))},"v");
_.kk.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.xk=_.H1(function(d){var H=d.data;var K=d.className;var c=d.style;var p=d.useOutlinedIcon;var g=d.buttonOverrides;var a=d.animatedTextProps;var e=d.onClick;var k=d.target;var C=_.Af("button-view-model",function(Y){Y.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var A=H().targetId;A&&_.hMU(_.u9(),A,Y);return function(){Vx3(_.u9(),Y)}}),R=function(){return H().iconName},V,U=(V=_.Kj().resolve(_.$p(_.fM)))==null?void 0:V(),L=function(){var Y=H();
var A=g==null?void 0:g(),E=a==null?void 0:a(),N=k==null?void 0:k();if(Y){var y=xIF(Y.type);var v=!!Y.title||!!Y.titleFormatted;var el=!(!Y.iconName&&!Y.iconImage);v=el&&!v?"icon-only":el?Y.iconTrailing||Y.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;v==="icon-only-40"&&(y="text");var l1,V4=(l1=A==null?void 0:A.disabled)!=null?l1:Y.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||Y.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";E=E&&E.numberText&&!isNaN(Number(E.numberValue))?
E:void 0;l1=Object;el=l1.assign;var Mf=Y.title,LF=Y.titleFormatted,YY=Y.accessibilityText,FM=k25(Y.style),gA=nU5(Y.state),JN=C2D(Y.buttonSize);N=e45(Y,C,V4,e,N);V4=V4&&!Y.onDisabledTap;var eS=al1(Y,C),vF=Y.customFontColor,CX=Y.customBackgroundColor;var kd=Y.customBorderColor;var BB=Y.customDarkThemeFontColor,ug=Y.customDarkThemeBackgroundColor,fX=Y.customDarkThemeBorderColor;vF=U&&BB?BB:vF;CX=U&&ug?ug:CX;kd=U&&fX?fX:kd;kd={color:vF?_.Ob(vF):void 0,backgroundColor:CX?_.Ob(CX):void 0,borderColor:kd?
_.Ob(kd):void 0};Y=el.call(l1,{},{buttonText:Mf,formattedButtonText:LF,animatedTextProps:E,accessibilityLabel:YY,style:FM,type:y,state:gA,size:JN,iconPosition:v,onTap:N,disabled:V4,aTagConfig:eS,customColors:kd,tooltipText:Y.tooltip},A)}else Y={style:"mono",type:"text",state:"active",size:"M"};Y.focused=J();return Y},w=function(){return dI1(L(),!!H().iconName)};
d=_.q(_.GO(!1,void 0,"bl7g4"));V=d.next().value;var W=d.next().value,J=V;d=_.n7(function(){var Y=_.Kj().resolve(_.$p(_.qZ));Y&&W(Y.isKeyBoardInUse());return!1});
V=_.n7(function(){W(!1);return!1});
_.wc(function(){var Y,A=_.M(H==null?void 0:(Y=H())==null?void 0:Y.onVisible,_.ZX);A&&_.Yv(A,{disableClickTracking:!0})},"MLqBF");
var F=_.h("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.x("button-view-model",{el:C,class:_.xM("yt-spec-button-view-model",K),"on:focusin":d,"on:focusout":V},_.x(_.n,{cond:function(){var Y;return(H==null?0:(Y=H())==null?0:Y.iconImage)?{sources:[H().iconImage]}:void 0},
then:function(Y){return _.x(_.kk,{data:L,icon:function(){return _.x(_.d7,{data:Y,alt:"",targetWidth:w,targetHeight:w,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:F})},
else:function(){return _.x(_.kk,{data:L,icon:function(){return _.x(_.hu,{icon:R,active:function(){return(p==null?0:p())?!1:L().toggled},
animateIcon:function(){var Y;return!!(c==null?0:(Y=c())==null?0:Y.animateIcon)},
size:w})},
clientOnlyWizTooltipsEnabled:F})}}))},"w");
_.xk.idomCompat={callbacks:{onClick:!0}};_.iV(_.H1(function(d){return _.x("yt-button-view-model",{id:d.id,class:_.xM(d.scopingClassName,d.classes),icon:function(){var H;return(H=d.icon)==null?void 0:H.call(d)},
"dialog-dismiss":function(){var H;return((H=d.dialogDismiss)==null?0:H.call(d))?"":void 0}},_.x(_.xk,{data:function(){var H;
return(H=d.data)==null?void 0:H.call(d)},
className:function(){var H;return(H=d.className)==null?void 0:H.call(d)},
style:function(){var H;return(H=d.style)==null?void 0:H.call(d)},
useOutlinedIcon:function(){var H;return(H=d.useOutlinedIcon)==null?void 0:H.call(d)},
buttonOverrides:function(){var H;return(H=d.buttonOverrides)==null?void 0:H.call(d)},
animatedTextProps:function(){var H;return(H=d.animatedTextProps)==null?void 0:H.call(d)},
onClick:function(H){var K;return(K=d.onClick)==null?void 0:K.call(d,H)}}))},"x"),"yt-button-view-model",{props:{data:_.dl,
className:_.dl,style:_.dl,useOutlinedIcon:_.dl,buttonOverrides:_.dl,animatedTextProps:_.dl,onClick:_.p7,scopingClassName:_.dl,id:_.dl,icon:_.dl,dialogDismiss:_.dl,classes:_.dl,target:_.p7}});_.iV(_.H1(function(d){var H=d.data;var K=d.id;var c=d.className;var p=d.iconName;var g=d.animateIcon;var a=d.secondaryIconName;d=_.q(_.GO(!1,void 0,"x6aL5"));var e=d.next().value,k=d.next().value,C=function(){var V=_.Kj().resolve(_.$p(_.qZ));V&&k(V.isKeyBoardInUse())},R=function(){k(!1)};
d=_.Af("yt-button-shape",function(V){if(_.Kj().resolve(_.$p(_.qZ)))return V.addEventListener("focusin",C),V.addEventListener("focusout",R),function(){V.removeEventListener("focusin",C);V.removeEventListener("focusout",R)}});
return _.x("yt-button-shape",{el:d,id:K,class:c},_.x(_.n,{cond:H,then:function(){return _.x(_.kk,{data:H,iconName:p,secondaryIconName:a,focusedOverride:e,animateIcon:g})}}))},"y"),"yt-button-shape",{props:{data:_.dl,
id:_.dl,className:_.dl,iconName:_.dl,animateIcon:_.dl,secondaryIconName:_.dl,clientOnlyWizTooltipsEnabled:_.dl,disableUpgrade:_.dl},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var nd=function(){var d=_.B.apply(this,arguments)||this;d.isGoalActive=!0;return d};
_.m(nd,_.B);nd.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
nd.prototype.progressBarChanged=function(){var d=_.Gn(this.hostElement).querySelector("#progress-bar-progress"),H,K,c,p=(c=Number((H=this.creatorGoalState)==null?void 0:H.currentGoalCount)/Number((K=this.creatorGoalState)==null?void 0:K.totalGoalCount)*100)!=null?c:0,g;d.style.width=((g=Math.min(p,100))!=null?g:0)+"%"};
nd.prototype.goalStateChanged=function(){var d;this.isGoalActive=((d=this.creatorGoalState)==null?void 0:d.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var H;d={"--yt-progress-bar-color":iYF((H=this.creatorGoalState)==null?void 0:H.progressBarColor)};_.eO(this.hostElement,d)};
nd.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.H3.Object.defineProperties(nd.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var d;return this.isGoalActive&&!((d=this.creatorGoalState)==null||!d.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.creatorGoalState)==null?0:d.endTimestampMs){var H;d=Number((H=this.creatorGoalState)==null?void 0:H.endTimestampMs)/1E3;return{seconds:String(d)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.creatorGoalState)==null?0:d.themedTargetImage){var H;d=_.M((H=this.creatorGoalState)==null?void 0:H.themedTargetImage,JTM);return this.isAppDarkTheme()?d==null?void 0:d.imageDark:d==null?void 0:d.imageLight}}}});
_.H3.Object.defineProperties(nd,{template:{configurable:!0,enumerable:!0,get:function(){return eH7()}}});
nd.prototype.goalStateChanged=nd.prototype.goalStateChanged;nd.prototype.progressBarChanged=nd.prototype.progressBarChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],nd.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.YC),_.O("design:type",Object)],nd.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],nd.prototype,"ytRendererBehavior",void 0);
_.t([_.r({selectorArgs:["data.creatorGoalEntityKey"],selector:function(d,H){return _.xL(d.entities,"creatorGoalEntity",H)}}),
_.O("design:type",Object)],nd.prototype,"creatorGoalState",void 0);_.t([_.r(),_.O("design:type",Object)],nd.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],nd.prototype,"isGoalActive",void 0);_.t([_.I("creatorGoalState","isGoalActive"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],nd.prototype,"shouldShowCountdown",null);_.t([_.I("creatorGoalState"),_.O("design:type",Object),_.O("design:paramtypes",[])],nd.prototype,"endTimestamp",null);
_.t([_.I("creatorGoalState"),_.O("design:type",Object),_.O("design:paramtypes",[])],nd.prototype,"targetIconThemedImage",null);_.t([_.CK("creatorGoalState.currentGoalCount"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nd.prototype,"progressBarChanged",null);_.t([_.CK("creatorGoalState.creatorGoalState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nd.prototype,"goalStateChanged",null);
_.t([_.ZV({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],nd);_.T(nd,"yt-creator-goal-progress-flow-view-model",function(){return eH7()},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var tIX;var YrA;var Cd=function(){return _.B.apply(this,arguments)||this};
_.m(Cd,_.B);Cd.prototype.attached=function(){var d,H,K;if(this==null?0:(d=this.data)==null?0:(H=d.pdgPurchasedBumperLoggingDirectives)==null?0:(K=H.loggingDirectives)==null?0:K.trackingParams){var c,p,g;UIF(this==null?void 0:(c=this.data)==null?void 0:(p=c.pdgPurchasedBumperLoggingDirectives)==null?void 0:(g=p.loggingDirectives)==null?void 0:g.trackingParams)}};
Cd.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Cd.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Cd.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Cd.prototype,"data",void 0);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Cd);
_.T(Cd,"yt-live-chat-item-bumper-view-model",function(){if(YrA===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-bumper-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_item_bumper_view_model.yt.live.chat.item.bumper.view.model.css.js--\x3e<div id="bumper" class="style-scope yt-live-chat-item-bumper-view-model">\n  <div id="content" class="style-scope yt-live-chat-item-bumper-view-model"></div>\n</div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;tIX===void 0&&(tIX=document.createElement("template"));var c=tIX;K.call(H,c.content.cloneNode(!0),d.content.firstChild);YrA=d}d=YrA;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var OYl;var Srg;_.j8=function(d,H){this.data=d;this.actions=H;this.data=d;this.actions=H};
_.S8=function(){};_.Rm={};_.Rm.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(d,H){h44(this.hostElement,d,H)},
getNavigationEndpointPopupAction:function(d){return Loi(d,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(d,H){MjF(this.hostElement,d,H,this.openPopupConfig)}};var X8Y=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.VV={};
_.VV.YtEndpointBehavior=[_.Rm.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Fm("openPopupConfig");(this.useClickHandler=_.Qx("useClickHandler",!1))?this.hostElement.addEventListener("click",kf(this,this.onEndpointClick_)):(s_(this.hostElement,"tap",kf(this,this.onEndpointTap_)),s_(this.hostElement,"touchend",kf(this,this.onEndpointTouchEnd_)));s_(this.hostElement,"touchstart",kf(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
kf(this,this.onEndpointTapStart_))},
onEndpointClick_:function(d){P2F(this.hostElement,d,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(d){var H=this.hostElement,K=this.openPopupConfig,c=this.disableCommandHandlerOverride;c=c===void 0?!1:c;var p=mIL(d);if(p){p.href&&yS(p.href);var g=d.detail;var a=g.sourceEvent;g=g.preventer;a=a.button!==void 0?a.button===0&&!Pg(a):g?!Pg(g):!0;p.data&&a&&w8E(H,p,d,K,c)}},
onEndpointTouchEnd_:function(d){Pg(d)||mIL(d)&&d.preventDefault()},
onEndpointTapStart_:function(d){BRf(d)}}];_.Uq={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(d){for(var H=_.bw.getInstance(),K=_.q(Object.keys(d)),c=K.next();!c.done;c=K.next()){var p=c.value;c=d[p];if(this&&this[c]){var g=H.actionRoutingMap.get(p);g||(g=new Map,H.actionRoutingMap.set(p,g));H.registerActionHandler(this,p,this[c].bind(this),g)}else p=Error("gd"),p.params=c,_.tm(p)}},
unregisterActionMap:function(d){_.Dz(_.bw.getInstance(),d,this)}}]};var r7=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_"+(_.h("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.h("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.h("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.h("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.h("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.h("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var Id;var Wg=new Map;var brX=window.matchMedia("(forced-colors: active)").matches;var EeN;var yd3;var bYA=new _.Av("LOTTIE_LOADER_TOKEN");_.hT=_.H1(function(d){var H=d.data;var K=d.className;var c=d.animationName;var p=d.animationRef;var g=d.elRefForInterop;var a=_.jV("lottie-component"),e;_.Pk(function(){var C;return void((C=e)==null?void 0:C.destroy())});
var k;_.wc(function(){var C=_.IH(c);if(C!==k){k=C;var R=Object.assign({},{animationName:C,animationRef:_.IH(p)},_.IH(H));try{_.Kj().resolve(bYA)().then(function(L){var w;(w=e)==null||w.destroy();var W,J;w=(J=g==null?void 0:(W=g())==null?void 0:W.value)!=null?J:a.value;W=R.animationRef;J=R.listeners;L=L.loadAnimation(Object.assign({},{container:w},R.animationConfig));W&&(W.lottieEl=L);if(J)for(w=_.q(Object.entries(J)),W=w.next();!W.done;W=w.next())J=_.q(W.value),W=J.next().value,(J=J.next().value)&&
L.addEventListener(W,J);e=L})}catch(L){C=L;
var V="LottieComponent error.";C.message&&(V+=" Original description: "+C.message);_.sD(C,V);_.Jf(C);var U;((U=R.listeners)==null?0:U.error)&&R.listeners.error(C)}}},"lbhvPc");
return _.x(Tr5,{cond:function(){return!(g==null?0:g())},
then:function(){return _.x("lottie-component",{class:_.xM("ytLottieComponentHost",K),el:a})}})},"z");_.iV(_.H1(function(d){return _.x("ytd-lottie-player",{id:d.id,hidden:d.hidden,class:d.className,"aria-label":d.ariaLabel,style:"display: block;"},_.x(_.hT,{data:d.data,animationName:function(){var H;return((H=d.data().animationConfig)==null?void 0:H.name)||""},
animationRef:function(){return d.data().animationRef}}))},"A"),"ytd-lottie-player",{props:{data:_.dl,
id:_.dl,hidden:_.dl,className:_.dl,ariaLabel:_.dl}});var Ld=function(){var d=_.B.apply(this,arguments)||this;d.animationRef={};d.delhiIconsEnabled=_.h("enable_web_delhi_icons");return d};
_.m(Ld,_.B);_.G=Ld.prototype;
_.G.handlePropertyChange=function(){var d=this.animatedIcon,H=this.active,K=this.isDarkTheme;if(d){var c=this.previousActive!==H;this.previousActive=H;this.animationRef.lottieEl?c&&this.toggleAnimation(H,d.totalFrames):H?this.initializeAnimationAsToggled(d.lottiePlayerProps,d.totalFrames):this.initializeAnimationAsUntoggled(d.lottiePlayerProps);d.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=d.type;this.lottiePlayerProps=this.computeLottiePlayerProps(d,K)}};
_.G.computeLottiePlayerProps=function(d,H){var K=this.deepCloneLottiePlayerProps(d);H?(H=d.nameDarkTheme,d=d.pathDarkTheme):(H=d.name,d=d.path);K.animationConfig.name=H;(H=Wg.get(d))?K.animationConfig.animationData=H:K.animationConfig.path=d;return K};
_.G.initializeAnimationAsToggled=function(d,H){d.animationConfig.initialSegment=[H-1,H]};
_.G.initializeAnimationAsUntoggled=function(d){d.animationConfig.initialSegment=void 0};
_.G.toggleAnimation=function(d,H){if(d){var K;(K=this.animationRef.lottieEl)==null||K.playSegments([0,H],!0)}else{var c;(c=this.animationRef.lottieEl)==null||c.playSegments([0,1],!0)}};
_.G.deepCloneLottiePlayerProps=function(d){var H=Object.assign({},d.lottiePlayerProps.animationConfig);d=Object.assign({},d.lottiePlayerProps);d.animationConfig=H;return d};
Ld.prototype.handlePropertyChange=Ld.prototype.handlePropertyChange;_.t([_.r(),_.O("design:type",Object)],Ld.prototype,"animatedIcon",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],Ld.prototype,"active",void 0);_.t([_.r(),_.O("design:type",Boolean)],Ld.prototype,"isDarkTheme",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],Ld.prototype,"animatedIconType",void 0);_.t([_.r(),_.O("design:type",Boolean)],Ld.prototype,"previousActive",void 0);
_.t([_.r(),_.O("design:type",Object)],Ld.prototype,"lottiePlayerProps",void 0);_.t([_.r(),_.O("design:type",Object)],Ld.prototype,"animationRef",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ld.prototype,"delhiIconsEnabled",void 0);_.t([_.CK("animatedIcon","active","isDarkTheme"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ld.prototype,"handlePropertyChange",null);_.t([_.ZV({is:"yt-animated-icon",disableElementRegistration:!0})],Ld);
_.T(Ld,"yt-animated-icon",function(){if(yd3===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;EeN===void 0&&(EeN=document.createElement("template"));var c=EeN;K.call(H,c.content.cloneNode(!0),d.content.firstChild);yd3=d}d=yd3;return d},{mode:2});var NJN;var Dbl;var vUD=_.H1(function(d){var H=_.jV("span"),K=BE(function(){return{value:null}});
_.Pk(function(){var p;(p=K.value)==null||p.cancel()});
var c=_.ey(d.data,{equals:function(p,g){return p.iconName===g.iconName&&p.iconStyle===g.iconStyle&&p.iconSize===g.iconSize&&p.iconSetName===g.iconSetName&&p.iconSelected===g.iconSelected}},"VprOQb");
_.wc(function(){var p,g=(p=d.options)==null?void 0:p.call(d);jOC(H,K,c(),g)},"Ybsape");
return _.x("span",{class:"yt-icon-shape",el:H})},"B");
vUD.idomCompat=!0;var HwL=["youtube_fill","youtube_outline"];var fq3=new _.PZ({type:"iconset",value:void 0}),MZ=function(){var d=_.B.apply(this,arguments)||this;d.isDarkTheme=document.documentElement.hasAttribute("dark");d.iconName="";d.iconsetName="yt-icons";d.iconset=null;d.missingIconSet=!1;d.iconType=null;d.iconShapeDataSignal=_.GO(void 0,void 0,"b0v7Ac");d.renderingOptionsSignal=_.GO({iconWidth:"100%",iconHeight:"100%",iconFilter:d.iconFilter},void 0,"Ls6l3e");d.wizHasRendered=!1;d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return d};
_.m(MZ,_.B);MZ.prototype.onDarkModeToggledAction=function(d){d!==this.isDarkTheme&&(this.isDarkTheme=d)};
MZ.prototype.handlePropertyChange=function(){var d=this,H,K,c,p,g,a,e,k,C,R,V,U,L,w,W,J,F;return _.l(function(Y){switch(Y.nextAddress){case 1:if(H=!d.icon&&!d.iconName||!d.isAttached)return Y.return();K=d;c=K.icon;p=K.size;g=K.defaultToFilled;a=K.active;e=K.targetContainer;d.toggleContainerClass(e);_.h("kevlar_use_wil_icons")&&c&&(k=Xtl(c),d.iconType=k.length?k[1]:null);if(c){Y.jumpTo(2);break}d.iconsetName="";d.iconName="";return Y.yield(d.renderIcon(e,c),3);case 3:return Y.return();case 2:C=AdS(c);
R=Xtl(C);R.length&&(d.iconsetName=R[0],d.iconName=R[1]);if(!_.h("kevlar_use_wil_icons")){Y.jumpTo(4);break}V=MZ;U=jUS;L=d.iconType;w=d.active;W=d.defaultToFilled;J=d.size;F=d.iconsetName;return Y.yield(veU(),6);case 6:return Y.yield(U.call(V,L,w,W,J,F,Y.yieldResult),5);case 5:d.iconShapeData=Y.yieldResult;case 4:if(d.shouldRenderIconShape(e)){Y.jumpTo(7);break}return Y.yield(d.determineIconSet(C,a,g,p,e),7);case 7:return Y.yield(d.renderIcon(e,c),0)}})};
MZ.prototype.toggleContainerClass=function(d){d?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var AdS=function(d){return!_.h("default_to_innertube_icon")||d.indexOf(":")>0?d:_.kv(d)};
_.G=MZ.prototype;_.G.determineIconSet=function(d,H,K,c){var p=this;return _.l(function(g){return g.nextAddress==1?_.h("kevlar_system_icons")||_.Fm("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Fm("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?g.yield(p.switchToYtSysIconset(d,H,K,c),3):g.jumpTo(2):g.nextAddress!=2?g.return():g.yield(p.useYtSysIconsetForMissingIcons(d,H,K,c),0)})};
_.G.switchToYtSysIconset=function(d,H,K,c){var p=this,g,a,e,k,C,R,V;return _.l(function(U){switch(U.nextAddress){case 1:if(!d||p.iconsetName!=="yt-icons"&&p.iconsetName!=="yt-sys-icons"){U.jumpTo(0);break}g=Xtl(d);a=g[1];a=_.S$M(a);_.h("enable_polymer_icons_replace_underscores_dash")&&a.includes("_filled")&&(a=a.replace(/_filled/g,"-filled"));return U.yield(ev(a,!0),3);case 3:return e=U.yieldResult,U.yield(ev(a,!1),4);case 4:if((k=U.yieldResult)||H&&e)p.iconsetName="yt-sys-icons";p.iconName=p.getIconName(a,
H,K,k,e);if(c===24){U.jumpTo(0);break}C="yt-sys-icons"+c+":"+p.iconName;return U.yield(ev(C,!1,!0),6);case 6:return R=U.yieldResult,U.yield(ev(C,!0,!0),7);case 7:V=U.yieldResult;p.iconName=p.getIconName(a,H,K,R,V);if(!H&&R||H&&V)p.iconsetName="yt-sys-icons"+c;_.VE(U)}})};
_.G.getIconName=function(d,H,K,c,p){d.includes("-filled")&&(d=d.replace("-filled",""));return p&&(H||K)?d+"-filled":d};
_.G.useYtSysIconsetForMissingIcons=function(d,H,K,c){var p=this,g,a;return _.l(function(e){if(e.nextAddress==1)return p.iconsetName!=="yt-icons"?e.jumpTo(0):e.yield(ev(p.iconName,!1,!1,!0),3);if(e.nextAddress!=4)return g=e.yieldResult,e.yield(ev(p.iconName,!1),4);a=e.yieldResult;if(g||!a)return e.jumpTo(0);p.iconsetName="yt-sys-icons";return e.yield(p.switchToYtSysIconset(d,H,K,c),0)})};
_.G.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var veU=function(){return _.l(function(d){try{return d.return(_.Kj().resolve(_.xv))}catch(H){return d.return(new Promise(function(K){_.OT().parkOrScheduleJob(function(){K(_.Kj().resolve(_.xv))},2,"ci")}))}})},jUS=function(d,H,K,c,p,g){c=c===void 0?24:c;
if(d){d=d.toLowerCase();var a=d.endsWith("_filled")||d.endsWith("-filled");H={iconName:d,iconStyle:(H===void 0?0:H)||(K===void 0?0:K)||a?"youtube_fill":"youtube_outline",iconSize:c,iconSetName:p===void 0?"yt-icons":p};K=!!g.resolveIcon(H);K||(H.iconSize=void 0,K=!!g.resolveIcon(H));!K&&a&&(H.iconName=d.substring(0,d.length-7),H.iconSize=c,K=!!g.resolveIcon(H),K||(H.iconSize=void 0,K=!!g.resolveIcon(H)));K||(H.iconStyle=void 0,K=!!g.resolveIcon(H));K||_.Jf(new _.m1("Icon not supported",{iconName:H.iconName,
iconStyle:H.iconStyle,iconSize:H.iconSize,iconType:d}));return K?H:void 0}};
_.G=MZ.prototype;_.G.shouldRenderIconShape=function(d){if(!_.h("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;d=this.getContainer(d);return!NRD(d,this.icon)};
_.G.renderIcon=function(d,H){var K=this,c,p,g,a,e,k,C,R;return _.l(function(V){switch(V.nextAddress){case 1:if(H&&K.icon!==H)return V.return();c=K.getContainer(d);p=NRD(c,K.icon);if(K.shouldRenderIconShape(d)&&K.iconType)return K.applyIconShape(p,c),V.return();K.removeIconShape();if(!c)return V.return();K.iconName===""&&K.iconset&&c&&(K.removeStaticIcon(K.iconset,c),p&&K.removeAnimatedIcon(c));if(K.iconName===""&&K.iconset||!K.iconsetName||!fq3)return V.return();K.iconset=fq3.byKey(K.iconsetName);
if(!K.iconset)return K.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.xf(K,K.onIconsetAdded)),V.return();K.missingIconSet&&(K.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.xf(K,K.onIconsetAdded)));a=(g=p||K.isAnimatedIcon?EUi(K.icon):void 0)&&!g.lazyLoad;k=g&&((e=g)==null?void 0:e.lazyLoad)&&(g.lottiePlayerProps.animationConfig.animationData?!0:Wg.get(K.isDarkTheme?g.pathDarkTheme:g.path)?!0:!1);if(a||k)return K.applyAnimatedIcon(c,g,K.iconset),V.return();if(k||
(C=g)==null||!C.lazyLoad){V.jumpTo(2);break}R=fl4(g,K.isDarkTheme);K.applyStaticIcon(K.iconset,c,K.iconName,d,p);return V.yield(R,3);case 3:return V.yield(K.renderIcon(K.targetContainer,K.icon),4);case 4:return V.return();case 2:K.applyStaticIcon(K.iconset,c,K.iconName,d,p),_.VE(V)}})};
_.G.getContainer=function(d){var H,K=(H=HQ5(this.hostElement))==null?void 0:H.host;H=!!K&&!!K.polymerController;if(!d||H)return d?this.getTargetContainer(d,K):this.hostElement};
_.G.getTargetContainer=function(d,H){var K=_.Gn(H).querySelector("#"+d);K||(d=new _.m1("yt-icon container missing",H.is,d),_.z5(d));return K};
_.G.applyStaticIcon=function(d,H,K,c,p){p&&this.removeAnimatedIcon(H);this.removeIconShape();p=p&&!!this.iconType&&!!this.iconShapeData&&_.h("kevlar_use_wil_icons");try{p?this.applyIconShape(!1,H):d.applyIcon(H,K)}catch(g){this.handleError(g,c,H)}};
_.G.applyIconShape=function(d,H){this.iconset&&H&&(this.removeStaticIcon(this.iconset,H),d&&this.removeAnimatedIcon(H));d={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var K=_.q(this.iconShapeDataSignal);H=K.next().value;K=K.next().value;var c=_.q(this.renderingOptionsSignal),p=c.next().value;c=c.next().value;K(this.iconShapeData);c(d);if(!this.wizHasRendered)for(this.wizHasRendered=!0,d=_.q(dhF(H,p)).next().value;d.firstChild;)_.Gn(this.hostElement).appendChild(d.firstChild)};
_.G.removeIconShape=function(){if(_.h("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.G.removeStaticIcon=function(d,H){d.removeIcon(H)};
_.G.applyAnimatedIcon=function(d,H,K){this.removeStaticIcon(K,d);this.removeIconShape();var c;K=this.animatedIconElement&&((c=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:c.type)===H.type;if(this.animatedIconElement&&K){this.animatedIconElement.polymerController.animatedIcon=H;var p;((p=this.animatedIconElement)==null?void 0:p.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(d),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=H,this.animatedIconElement.polymerController.active=this.active,_.h("delhi_modern_web_player_icons")?(H=ypL(d,this.icon)&&d.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=H?H.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.h("kevlar_use_wil_icons")?
d.insertBefore(this.animatedIconElement,d.childNodes[0]):(d=_.Gn(d),d.insertBefore(this.animatedIconElement,d.childNodes[0]))};
_.G.removeAnimatedIcon=function(d){_.h("kevlar_use_wil_icons")?this.animatedIconElement&&d.contains(this.animatedIconElement)&&d.removeChild(this.animatedIconElement):(d=_.Gn(d),this.animatedIconElement&&d.contains(this.animatedIconElement)&&d.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.G.handleError=function(d,H,K){_.sD(d,this.iconName,H,K);H=NRD(K,this.icon);var c=!1;window.location.href.includes("JpymaW6Lh2w")?c=!0:K._svgIcon&&(K=(K=K._svgIcon.parentNode)?K.tagName:"unknown",_.sD(d,K),K==="YT-ICON"&&d.name==="NotFoundError"?c=!0:d.name==="NotFoundError"&&H&&(c=!0));c?_.Jf(d):_.z5(d)};
_.H3.Object.defineProperties(MZ,{template:{configurable:!0,enumerable:!0,get:function(){if(Dbl===void 0){var d=document.createElement("template");_.P(d,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--\x3e");d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;
NJN===void 0&&(NJN=document.createElement("template"));var c=NJN;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Dbl=d}d=Dbl;return d}}});
MZ.prototype.handlePropertyChange=MZ.prototype.handlePropertyChange;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],MZ.prototype,"actionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",String)],MZ.prototype,"icon",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],MZ.prototype,"active",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],MZ.prototype,"defaultToFilled",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],MZ.prototype,"isAnimatedIcon",void 0);
_.t([_.r({value:24}),_.O("design:type",Number)],MZ.prototype,"size",void 0);_.t([_.r({value:""}),_.O("design:type",String)],MZ.prototype,"targetContainer",void 0);_.t([_.r(),_.O("design:type",Object)],MZ.prototype,"animatedIconElement",void 0);_.t([_.r(),_.O("design:type",Object)],MZ.prototype,"isDarkTheme",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],MZ.prototype,"ariaHidden",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],MZ.prototype,"ariaLabel",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],MZ.prototype,"role",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],MZ.prototype,"tabindex",void 0);_.t([_.r(),_.O("design:type",String)],MZ.prototype,"style",void 0);_.t([_.r(),_.O("design:type",String)],MZ.prototype,"iconFilter",void 0);
_.t([_.CK("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],MZ.prototype,"handlePropertyChange",null);_.t([_.ZV({is:"yt-icon",noInjection:!0})],MZ);var H9E="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),K$4=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var d03={};d03.YtPlaintextBehavior=[_.hQ,{properties:{plaintextOnly:{type:Boolean,value:!1}},detached:function(){this.plaintextOnly&&(this.hostElement.removeEventListener("paste",this.onPaste_),this.removeOwnKeyBindings())},
attached:function(){this.plaintextOnly&&(this.hostElement.addEventListener("paste",this.onPaste_),this.addOwnKeyBinding("ctrl+b meta+b ctrl+i meta+i","preventRichTextFormatting_"))},
onPaste_:function(d){d.preventDefault();d=d.clipboardData.getData("text/plain");document.execCommand("insertText",!1,d)},
preventRichTextFormatting_:function(d){_.lv&&(d=d.detail.keyboardEvent,d.stopImmediatePropagation(),d.preventDefault())}}];var HSC;var $03;var mu=function(){var d=_.B.apply(this,arguments)||this;d.ignoreShadyDom=!1;d.hasChange_=!1;d.hasSetTitle_=!1;d.useIOObserverForVisibilityLogging_=_.h("kevlar_use_vimio_behavior")&&_.Fm("INNERTUBE_CLIENT_NAME")==="WEB";d.ytFormattedStringObserverHandlerKeys_=void 0;return d};
_.m(mu,_.B);_.G=mu.prototype;_.G.created=function(){this.useIOObserverForVisibilityLogging_=_.h("kevlar_use_vimio_behavior")&&_.Fm("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.G.ready=function(){_.Fm("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()};
_.G.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.G.detached=function(){this.unobserveIOObservers_()};
_.G.clearContents_=function(){for(var d=this.getRoot(),H=d.lastChild;H&&H.tagName!=="STYLE";){try{d.removeChild(H)}catch(K){break}H=d.lastChild}};
_.G.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var d=_.q(this.ytFormattedStringObserverHandlerKeys_),H=d.next();!H.done;H=d.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(H.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.G.resetForAttributedString=function(){var d=this.getRoot();!d.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),d.appendChild(this.ytAttributedStringElementRef))};
_.G.resetForFormattedString=function(){var d=this.getRoot(),H=d.querySelector("yt-attributed-string");H&&(this.ytAttributedStringElementRef=d.removeChild(H))};
_.G.textChanged=function(){this.textChanged_(this.text)};
_.G.textChanged_=function(d){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!d||!d.runs&&!d.simpleText;if(_.h("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var H=this.hostElement.firstChild;H&&H.nodeName==="FONT";){var K=H;H=H.nextSibling;this.hostElement.removeChild(K)}H=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
K=d.simpleText;var c;!K&&((c=d.runs)==null?void 0:c.length)===1&&this.isSimpleString_(d.runs[0])&&(K=d.runs[0].text);K!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Fm("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(K!==void 0){try{H.textContent=K}catch(p){}H.textContent||(this.isEmpty=!0)}else d=d.runs,K!==void 0&&(d=[{text:K}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),d&&this.updateText_(d),
H.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.G.ellipsisTruncateChanged_=function(){!this.ellipsisTruncate||this.hostElement.title&&!this.hasSetTitle_?this.hasSetTitle_&&(this.hostElement.removeAttribute("title"),this.hasSetTitle_=!1):(this.hostElement.title=this.getRawText(),this.hasSetTitle_=!0)};
_.G.computeAriaLabel_=function(d){return d};
_.G.computeEllipsisTruncateStyling=function(d,H){return d&&!H};
_.G.computeUseAttributedString=function(d){return _.h("web_replace_formatted_with_attributed_string")&&MI1(d)&&!this.disableAttributedString&&!this.enableContentEditable};
_.G.setNodeStyle_=function(d,H){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.h("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?H.removeAttribute("dir"):H.setAttribute("dir","auto");H.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");H.style.color="";var K=null;this.noStyles||(d.bold&&(H.classList.add("bold"),K="bold"),d.deemphasize&&(H.classList.add("deemphasize"),K="deemphasize"),d.italics&&H.classList.add("italic"),
d.strikethrough&&H.classList.add("strikethrough"),d.errorUnderline&&(H.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),d.bracket&&H.classList.add("bracket"),d.textColor&&(H.style.color=_.Yi(d.textColor)));K!==H.getAttribute("style-target")&&(K?H.setAttribute("style-target",K):H.removeAttribute("style-target"))};
_.G.setUpVisibilityLogging_=function(d,H){var K=this;this.setNodeTrackingParams_(d,H);var c;((c=H.data)==null?0:c.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(d=this.ytRendererBehavior.visibilityObserver.observe(H,function(p){var g=K.ytRendererBehavior.getVisibilityLogger();g&&g.reportShown(p)},this.ytRendererBehavior.visibilityOptionVisible_),H=this.ytRendererBehavior.visibilityObserver.observe(H,function(p){var g=K.ytRendererBehavior.getVisibilityLogger();
g&&g.reportHidden(p)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(d),this.ytFormattedStringObserverHandlerKeys_.push(H))};
_.G.setNodeTrackingParams_=function(d,H){H.data||(H.data={});if((d=d.loggingDirectives?d.loggingDirectives.trackingParams:null)||H.data.trackingParams)H.data.trackingParams=d};
_.G.computeHasLinkOnly_=function(d){return!(!d||d.length!==1||this.noEndpoints||!d[0].navigationEndpoint)};
_.G.getRoot=function(){var d=this.buildScopeDomOptions();return this.enableContentEditable?_.Gn(_.Gn(this.hostElement,d).querySelector("[contenteditable]")):_.Gn(this.hostElement,d)};
_.G.fixContenteditableScope=function(){var d=function(H){H&&(H.nodeType===1&&H.classList&&(H.classList.add("style-scope"),H.classList.add("yt-formatted-string")),H.childNodes&&H.childNodes.forEach(function(K){d(K)}))};
d(this.getRoot())};
_.G.updateText_=function(d){for(var H=d.length,K=this.getRoot(),c=K.firstChild;c&&c.nodeName==="STYLE";)c=c.nextSibling;for(var p=0;p<H&&c;){var g=d[p],a=_.h("remove_cr_char")&&g.text?g.text.replace("\r",""):g.text;if(this.isSimpleString_(g)&&!this.useMixedDirectionFormattedStrings)if(c.nodeName==="#text"){c.textContent!=a&&(c.textContent=a);p++;c=c.nextSibling;continue}else break;if(_.M(g,sG))break;else if(!this.noEndpoints&&g.navigationEndpoint){if(c.nodeName!=="A")break;this.setDataOnAnchor_(c,
g.navigationEndpoint)}else if(c.nodeName!=="SPAN")break;this.setNodeStyle_(g,c);this.setUpVisibilityLogging_(g,c);c.textContent!=a&&(c.textContent=a);p++;c=c.nextSibling}if(c)for(g=K.lastChild,c=p?c.previousSibling:null;g&&g!=c;){try{K.removeChild(g)}catch(e){break}g=K.lastChild}p!==H&&this.addTextNodes_(d,p)};
_.G.addTextNodes_=function(d,H){for(var K=document.createDocumentFragment(),c=d.length;H<c;H++){var p=d[H],g=_.h("remove_cr_char")&&p.text?p.text.replace("\r",""):p.text;if(this.isSimpleString_(p)&&!this.useMixedDirectionFormattedStrings)K.appendChild(document.createTextNode(g));else{var a=_.M(p,sG);if(a){if(a.image){var e=document.createElement("img");a.isCustomEmoji||e.classList.add("small-emoji");e.classList.add("emoji");a.isCustomEmoji&&(e.dataset.emojiId=a.emojiId);e.src=_.Gv(a.image.thumbnails,
this.emojiSize);(p=this.get("image.accessibility.accessibilityData.label",a))?e.alt=p:a.shortcuts&&a.shortcuts.length>0?e.alt=a.shortcuts[0]:a.emojiId&&(e.alt=a.emojiId);K.appendChild(e);this.hasEmoji=!0}}else!this.noEndpoints&&p.navigationEndpoint?(e=document.createElement("a"),e.classList.add("yt-simple-endpoint"),e.setAttribute("spellcheck","false"),this.setDataOnAnchor_(e,p.navigationEndpoint)):e=document.createElement("span"),this.setNodeStyle_(p,e),this.setUpVisibilityLogging_(p,e),e.appendChild(document.createTextNode(g)),
K.appendChild(e)}}this.getRoot().appendChild(K)};
_.G.isSimpleString_=function(d){return(this.noEndpoints||!d.navigationEndpoint)&&!_.M(d,sG)&&(this.noStyles||!(d.bold||d.deemphasize||d.italics||d.strikethrough||d.errorUnderline||d.bracket||d.textColor))&&!d.loggingDirectives};
_.G.getRawText=function(){return _.jG(this.text)};
_.G.getFirstRunText=function(){var d;if(((d=this.text)==null?0:d.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.G.setFirstRunText=function(d){var H;((H=this.text)==null?0:H.runs)&&this.text.runs[0]&&(this.text.runs[0].text=d,this.textChanged_(this.text))};
_.G.setDataOnAnchor_=function(d,H){var K=this;!_.h("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(H)||this.isSignalServiceEndpoint_(H)?(d.onclick=this.serviceEndpointHandler_(H),_.TC(d,"#")):IbF({text:this.text,command:H},function(){tAE(d,H,K.target)})};
_.G.isServiceEndpoint_=function(d){var H;return!((H=_.M(d==null?void 0:d.commandMetadata,_.Co))==null||!H.sendPost)};
_.G.isSignalServiceEndpoint_=function(d){return!!_.M(d,_.no)};
_.G.serviceEndpointHandler_=function(d){var H=this;return function(K){_.aF(H.hostElement,[d]);K.preventDefault()}};
_.G.overrideAriaLabelChanged_=function(){var d=this.getRoot();this.enableContentEditable&&d&&d.setAttribute("aria-label",this.overrideAriaLabel)};
_.G.enableContentEditableChanged_=function(){var d=this,H=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),H=_.Gn(this.hostElement,H),!H.lastChild||H.lastChild instanceof HTMLElement&&H.lastChild.id!=="contenteditable-root"){var K=document.createElement("div");K.id="contenteditable-root";K.setAttribute("contenteditable","true");K.setAttribute("dir","auto");K.onfocus=function(){d.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
H.appendChild(K);this.overrideAriaLabel&&K.setAttribute("aria-label",this.overrideAriaLabel)}}else K=_.o1(this.hostElement).firstChild,K instanceof HTMLElement&&K.id==="contenteditable-root"&&_.Gn(this.hostElement,H).removeChild(K)};
_.G.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.G.getNodesForVisibilityLogging_=function(){return _.p1(this.getRoot().childNodes,function(d){var H;return!((H=d.data)==null||!H.trackingParams)})};
_.G.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.G.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var d=this.ytRendererBehavior.getVisibilityLogger();d&&this.getNodesForVisibilityLogging_().forEach(function(H){d.reportShown(H)})}};
_.G.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var d=this.ytRendererBehavior.getVisibilityLogger();d&&this.getNodesForVisibilityLogging_().forEach(function(H){d.reportHidden(H)})}};
_.H3.Object.defineProperties(mu.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.h("enable_mixed_direction_formatted_strings")}}});
mu.prototype.enableContentEditableChanged_=mu.prototype.enableContentEditableChanged_;mu.prototype.overrideAriaLabelChanged_=mu.prototype.overrideAriaLabelChanged_;mu.prototype.ellipsisTruncateChanged_=mu.prototype.ellipsisTruncateChanged_;mu.prototype.textChanged=mu.prototype.textChanged;_.t([_.u(d03.YtPlaintextBehavior),_.O("design:type",Object)],mu.prototype,"ytPlaintextBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],mu.prototype,"ytComponentBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],mu.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],mu.prototype,"text",void 0);_.t([_.r(),_.O("design:type",Boolean)],mu.prototype,"noEndpoints",void 0);_.t([_.r(),_.O("design:type",Boolean)],mu.prototype,"noStyles",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],mu.prototype,"isDarkTheme",void 0);
_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],mu.prototype,"splitLines",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],mu.prototype,"forceDefaultStyle",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],mu.prototype,"ellipsisTruncate",void 0);_.t([_.r(),_.O("design:type",Object)],mu.prototype,"ignoreShadyDom",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.O("design:type",Boolean)],mu.prototype,"ellipsisTruncateStyling",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.O("design:type",String)],mu.prototype,"ariaLabel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],mu.prototype,"isEmpty",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.O("design:type",Boolean)],mu.prototype,"hasLinkOnly_",void 0);_.t([_.r(),_.O("design:type",Boolean)],mu.prototype,"hasEmoji",void 0);_.t([_.r(),_.O("design:type",Boolean)],mu.prototype,"disableAttributedString",void 0);_.t([_.r(),_.O("design:type",Boolean)],mu.prototype,"isOverlay",void 0);_.t([_.r(),_.O("design:type",Boolean)],mu.prototype,"linkInheritColor",void 0);
_.t([_.r(),_.O("design:type",Boolean)],mu.prototype,"noPreWrap",void 0);_.t([_.r(),_.O("design:type",Boolean)],mu.prototype,"userInput",void 0);_.t([_.r({value:16}),_.O("design:type",Number)],mu.prototype,"emojiSize",void 0);_.t([_.r(),_.O("design:type",String)],mu.prototype,"target",void 0);_.t([_.r(),_.O("design:type",Boolean)],mu.prototype,"enableContentEditable",void 0);_.t([_.r(),_.O("design:type",String)],mu.prototype,"overrideAriaLabel",void 0);
_.t([_.r(),_.O("design:type",Boolean)],mu.prototype,"respectHtmlDir",void 0);_.t([_.r(),_.O("design:type",Boolean)],mu.prototype,"respectLangDir",void 0);_.t([_.I("plaintextOnly"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],mu.prototype,"useMixedDirectionFormattedStrings",null);_.t([_.r({computed:"computeUseAttributedString(text)"}),_.O("design:type",Boolean)],mu.prototype,"useYtAttributedString",void 0);
_.t([_.CK("text"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mu.prototype,"textChanged",null);_.t([_.CK("ellipsisTruncate"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mu.prototype,"ellipsisTruncateChanged_",null);_.t([_.CK("overrideAriaLabel"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mu.prototype,"overrideAriaLabelChanged_",null);
_.t([_.CK("enableContentEditable"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mu.prototype,"enableContentEditableChanged_",null);_.t([_.ZV({is:"yt-formatted-string",disableElementRegistration:!0})],mu);
_.T(mu,"yt-formatted-string",function(){if($03===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_formatted_string.yt.formatted.string.css.js--\x3e<yt-attributed-string data="[[text]]" disable="[[!useYtAttributedString]]" disable-upgrade="[[!useYtAttributedString]]" ellipsis-truncate="[[ellipsisTruncate]]" hidden="[[!useYtAttributedString]]" is-overlay="[[isOverlay]]" link-inherit-color="[[linkInheritColor]]" no-pre-wrap="[[!splitLines]]" user-input="[[userInput]]" class="style-scope yt-formatted-string"></yt-attributed-string>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;HSC===void 0&&(HSC=document.createElement("template"));var c=HSC;K.call(H,c.content.cloneNode(!0),d.content.firstChild);$03=d}d=$03;return d});var KYM;var ciS;var plU;var gj0;var wl=function(){var d=_.B.apply(this,arguments)||this;d.focused=!1;d.disabled=!1;d.isOverlay=!1;return d};
_.m(wl,_.B);wl.prototype.triggerDown=function(){if(!this.disabled){_.qr(this.hostElement,"down",!0);var d;(d=this.currentAnimation)==null||d.cancel()}};
wl.prototype.triggerUp=function(){if(!this.disabled){_.qr(this.hostElement,"down",!1);var d=this.fillElement;var H=this.strokeElement;typeof GroupEffect==="function"?(d=new GroupEffect([DLL(d),fC5(H)]),d=new Animation(d,document.timeline)):d=new Iql(d,H);this.currentAnimation=d;var K;(K=this.currentAnimation)==null||K.play()}};
_.t([_.VP(".stroke"),_.O("design:type",HTMLElement)],wl.prototype,"strokeElement",void 0);_.t([_.VP(".fill"),_.O("design:type",HTMLElement)],wl.prototype,"fillElement",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],wl.prototype,"focused",void 0);_.t([_.r(),_.O("design:type",Object)],wl.prototype,"disabled",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],wl.prototype,"isOverlay",void 0);_.t([_.ZV({is:"yt-interaction",disableElementRegistration:!0})],wl);
_.T(wl,"yt-interaction",function(){if(gj0===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-interaction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--\x3e<div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;plU===void 0&&(plU=document.createElement("template"));var c=plU;K.call(H,c.content.cloneNode(!0),d.content.firstChild);gj0=d}d=gj0;return d},{mode:2});var PC=function(){return _.B.apply(this,arguments)||this};
_.m(PC,_.B);_.G=PC.prototype;_.G.ready=function(){var d=this,H=_.Gn(this.hostElement).querySelector("#button");H.addEventListener("focus",function(){rYA||(rYA=new IsA);d.keyboardFocused=rYA.isKeyBoardInUse()});
H.addEventListener("blur",function(){d.keyboardFocused=!1;d.rippleUp_()})};
_.G.computeTabIndex_=function(d){return d?-1:0};
_.G.computeButtonAriaPressed_=function(d){if(this.toggleable)return d?"true":"false"};
_.G.rippleDown_=function(){_.Gn(this.hostElement).querySelector("#interaction").triggerDown()};
_.G.rippleUp_=function(){_.Gn(this.hostElement).querySelector("#interaction").triggerUp()};
_.G.onPressedChanged_=function(){var d=_.o1(_.Gn(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.o1(_.Gn(this.hostElement).querySelector("#button")).children[0];d&&(d.active=this.pressed)};
PC.prototype.onPressedChanged_=PC.prototype.onPressedChanged_;PC.prototype.rippleUp_=PC.prototype.rippleUp_;PC.prototype.rippleDown_=PC.prototype.rippleDown_;_.t([_.r(),_.O("design:type",String)],PC.prototype,"label",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],PC.prototype,"disabled",void 0);_.t([_.r(),_.O("design:type",Boolean)],PC.prototype,"pressed",void 0);_.t([_.r(),_.O("design:type",Object)],PC.prototype,"toggleable",void 0);
_.t([_.r(),_.O("design:type",Boolean)],PC.prototype,"untabbable",void 0);_.t([_.r(),_.O("design:type",Boolean)],PC.prototype,"keyboardFocused",void 0);_.t([_.nK("down"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PC.prototype,"rippleDown_",null);_.t([_.nK("up"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PC.prototype,"rippleUp_",null);
_.t([_.CK("pressed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PC.prototype,"onPressedChanged_",null);_.t([_.ZV({is:"yt-icon-button",disableElementRegistration:!0})],PC);
_.T(PC,"yt-icon-button",function(){if(ciS===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--\x3e<button id="button" aria-label$="[[label]]" aria-pressed$="[[computeButtonAriaPressed_(pressed)]]" disabled$="[[disabled]]" tabindex$="[[computeTabIndex_(untabbable)]]" class="style-scope yt-icon-button"><slot class="style-scope yt-icon-button"></slot></button><yt-interaction id="interaction" class="circular style-scope yt-icon-button" focused="[[keyboardFocused]]"></yt-interaction>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;KYM===void 0&&(KYM=document.createElement("template"));var c=KYM;K.call(H,c.content.cloneNode(!0),d.content.firstChild);ciS=d}d=ciS;return d},{mode:2});var iSN;var G$l=function(){var d=document.body,H=d.appendChild;if(iSN===void 0){var K=document.createElement("template");_.P(K,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><mask id="artwork__b" fill="#fff"><path d="M.24.24v70.2h10.43c0 33 26.76 59.77 59.77 59.77 33 0 59.77-26.7 59.77-59.7h9.7V.3H.3z"></path></mask><mask id="artwork__d" fill="#fff"><path d="M17.3.23C-2.2-.13.26 14.73.26 14.73s-.1 25.85 14.83 28.3c3.9.06 5.2-5.33 5.2-5.33l-2.2 13.24-4.6 31.26s17.9 5.3 33.4 1.02c.1-12.1 4-43.73 3.9-49.96 3.2 3.7 9 24.97 11 51.1 5.8 1.27 9.3 0 9.3 0S70.9 43.12 54.9 21c-4.7-6.87-16.7-6.87-16.7-6.87-7-.98-8.9-.8-16 .18-7.1 1-6.6 9.5-6.6 9.5s1 5.5-1.4 10.2c-8.1-5-7.1-20.5-7.1-20.5s.5-5.6 8.1-6.8c2.3-1.3 3.9-4.7 2-6.3z"></path></mask><mask id="artwork__f" fill="#fff"><path d="M15.65 12.32L2.2 10.67C1.06 10.54.26 9.5.4 8.4L1.18 2C1.32.88 2.35.07 3.48.2l13.45 1.66c1.12.13 1.92 1.16 1.8 2.28l-.8 6.4c-.13 1.1-1.16 1.92-2.28 1.78z"></path></mask><mask id="artwork__h" fill="#fff"><path id="artwork__g" d="M2.97.2l12.6 1.55-.3 11.72-15.03-2.1z"></path></mask><mask id="artwork__j" fill="#fff"><path d="M.2.24c10.98 3.92 12.35 11.63 12.35 11.63l-.44.8S3.3 10.34.2.25z"></path></mask><mask id="artwork__l" fill="#fff"><path d="M.17.27S7.42.9 5.7 4.77l-.7.98C1 8.05.16.27.16.27z"></path></mask><mask id="artwork__n" fill="#fff"><path d="M.24.24H6.4S7.14 4.8 3.32 4.8C-.5 4.8.24.24.24.24z" id="artwork__m"></path></mask><mask id="artwork__p" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__r" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__t" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__v" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__x" fill="#fff"><path d="M.55.4l9.95.24s1.64 9.34-2.4 9.6C-1.47 10.54.54.4.54.4z"></path></mask><mask id="artwork__z" fill="#fff"><circle cx="59.77" cy="59.77" r="59.77"></circle></mask><clipPath id="hashtag_landing_page_empty__a"><path class="hashtag_landing_page_empty__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_empty_dark_mode__a"><path class="hashtag_landing_page_empty_dark_mode__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_error__a"><path class="hashtag_landing_page_error__cls-1" d="M-79.58-79.58h459.2v459.2h-459.2z"></path></clipPath><clipPath id="hashtag_landing_page_error__c"><path class="hashtag_landing_page_error__cls-1" d="M189.2 50.73c-44.7 0-83.94 30.59-90.33 67.34-7.88 45.31 26.77 92.29 78 101.2s101.3-23.34 109.2-68.65-28.76-89.53-80.04-98.45a97.63 97.63 0 00-16.75-1.45"></path></clipPath><clipPath id="hashtag_landing_page_error__b"><path class="hashtag_landing_page_error__cls-1" d="M1.49 219.9L124.8 212l-60.67-41.9z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__a"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M-78.75-78.75h457.5v457.5h-457.5z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__c"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M99.07 118.2c-7.85 45.15 26.68 92 77.76 100.8s100.9-23.25 108.8-68.39-28.69-89.21-79.78-98.1a98.36 98.36 0 00-16.72-1.44c-44.54 0-83.64 30.48-90 67.09"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__b"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M2.03 219.7l122.87-7.9L64.45 170z"></path></clipPath><mask id="offline_no_content__b" fill="#fff"><use xlink:href="#offline_no_content__a"></use></mask><mask id="offline_no_content__d" fill="#fff"><use xlink:href="#offline_no_content__c"></use></mask><path id="offline_no_content__a" d="M0 194.555V.675h191.961v193.88z"></path><path d="M.668 18.586C8.545 12.047 15.125 3.19 25.082.49v20.673H.668v-2.577z" id="offline_no_content__c"></path><clipPath id="empty_search__clip-path"><path d="M3.43 126.34H227a29.17 29.17 0 0 0-5.06-24c-4.42-6.11-10-12.51-9.71-28.73s-.4-59.23-20.9-67.3c-28.87-11.37-53.18 18.05-71.57 19s-32.31-9.34-45.87-4.5-11.63 16.68-18.17 19.83-20.58.73-25.18 13.8S34.06 77.8 25 83.73c-8.82 5.75-27.62 9.32-21.57 42.61z" fill="none"></path></clipPath><clipPath id="chrome_icon__b"><use overflow="visible" xlink:href="#chrome_icon__a"></use></clipPath><clipPath id="chrome_icon__f"><use overflow="visible" xlink:href="#chrome_icon__e"></use></clipPath><clipPath id="chrome_icon__j"><use overflow="visible" xlink:href="#chrome_icon__i"></use></clipPath><clipPath id="chrome_icon__n"><use overflow="visible" xlink:href="#chrome_icon__m"></use></clipPath><linearGradient id="chrome_icon__c" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__d" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__g" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__h" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__k" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__l" cx="668.176" cy="55.948" r="84.078" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><linearGradient id="chrome_icon__o" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__p" cx="597.875" cy="48.52" r="78.044" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__q" cx="671.844" cy="96.138" r="87.87" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#263238" stop-opacity=".2"></stop><stop offset="1" stop-color="#263238" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__r" cx="34.286" cy="32.014" r="176.746" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" stop-opacity=".1"></stop><stop offset="1" stop-color="#fff" stop-opacity="0"></stop></radialGradient><circle id="chrome_icon__a" cx="96" cy="96" r="88"></circle><path id="chrome_icon__e" d="M8 184h83.77l38.88-38.88V116H61.36L8 24.48z"></path><path id="chrome_icon__i" d="M96 56l34.65 60-38.88 68H184V56z"></path><path id="chrome_icon__m" d="M21.97 8v40.34L61.36 116 96 56h88V8z"></path><circle id="ring__dot" cx="4" cy="4" r="2"></circle><linearGradient id="premium_standalone_cairo__paint0_linear_6125_21625" x1="2" y1="22" x2="22" y2="2" gradientUnits="userSpaceOnUse"><stop offset="0.3" stop-color="#E1002D"></stop><stop offset="0.9" stop-color="#E01378"></stop></linearGradient></defs></svg><iron-iconset-svg name="backstage"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="hashtag-landing-page"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="live-chat-badges" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="miniplayer" size="24"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="offline-no-content"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="promo-full-height"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="rotten-tomatoes" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="settings"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="shorts" size="32"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="spinners" size="22"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-logos"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons12" rtl-mirroring="" size="12"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons13" rtl-mirroring="" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons15" rtl-mirroring="" size="15"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons16" rtl-mirroring="" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons18" rtl-mirroring="" size="18"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons20" rtl-mirroring="" size="20"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons36" rtl-mirroring="" size="36"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons48" rtl-mirroring="" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="ytcp-icons" size="24"><svg><defs></defs></svg></iron-iconset-svg>');
iSN=K}K=iSN;H.call(d,K.content)};
document.body?G$l():window.addEventListener("DOMContentLoaded",G$l);var oj3=_.y$(["aria-"]),uq={};uq.YtRenderButtonBehavior=[_.b.YtRendererBehavior,_.VV.YtEndpointBehavior,{properties:{alignByText:{type:Boolean,value:!1,reflectToAttribute:!0},iconAlignByText:{type:Boolean,value:!1,reflectToAttribute:!0},disableTextTransform:{type:Boolean,reflectToAttribute:!0},useKeyboardFocused:{type:Boolean,value:function(){return!!_.Kj().resolve(_.$p(_.qZ))&&_.h("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var d=this.computeHref_(this.endpoint,!0);d?_.TC(this.elements_.endpoint,d):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){d=this.buttonClass.split(" ");d=_.q(d);for(var H=d.next();!H.done;H=d.next())H=H.value,_.qr(this.hostElement,H,!0),this.elements_.button&&_.qr(this.elements_.button,H,!0),this.elements_.text&&_.qr(this.elements_.text,H,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(d=null,this.buttonAccessibility&&(d=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=d:d?_.jE([_.KB(oj3)],this.elements_.button,"aria-label",d):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var d=_.Kj().resolve(_.$p(_.qZ));d&&(this.keyboardFocused=d.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.gl("tp-yt-paper-tooltip"):document.createElement("tp-yt-paper-tooltip"),this.elements_.tooltip.position=this.buttonTooltipPosition,this.elements_.tooltip.offset=8,this.elements_.tooltip.fitToVisibleBounds=!0,_.Iu(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Iu(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(d,H){if(H)for(d=H.split(" "),d=_.q(d),H=d.next();!H.done;H=d.next())H=H.value,_.qr(this.hostElement,H,!1),this.elements_.button&&_.qr(this.elements_.button,H,!1),this.elements_.text&&_.qr(this.elements_.text,H,!1)},
buttonIconChanged_:function(d){this.elements_.icon?d?(this.elements_.icon.icon=d,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Iu(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.a1(this.hostElement,"is-paper-button-with-icon",!1)):d&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()},
addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&_.Iu(this.elements_.button).appendChild(this.elements_.icon):_.Iu(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.a1(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(d){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,d){var H=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(d){case "yt_icon_button_with_label":H=!0;_.qr(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();d=_.Iu(this.elements_.button).firstElementChild;
this.elements_.icon=d;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Iu(this.elements_.endpoint).appendChild(this.elements_.button);_.Iu(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.gl("tp-yt-paper-button"):document.createElement("tp-yt-paper-button");this.elements_.text=this.getFormattedString_();
this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;this.elements_.button.raised=this.buttonRaised;_.Iu(this.elements_.button).appendChild(this.elements_.text);_.Iu(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":H=!0,this.elements_.button=this.getYtIconButton_(),d=_.Iu(this.elements_.button).firstElementChild,this.elements_.icon=d,this.setIconActive_(this.elements_.icon),
_.Iu(this.elements_.endpoint).appendChild(this.elements_.button)}_.a1(this.hostElement,"is-icon-button",H);_.a1(this.hostElement,"is-paper-button",!H);_.a1(this.hostElement,"has-no-text",!this.elements_.text);this.elements_.button.id="button";this.elements_.button.noink=this.noink;this.elements_.button.disabled=this.disabled;var K;_.Gn((K=this.container.hostElement)!=null?K:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Iu(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(d){if(d!=void 0||this.disabled)this.disabled=d,this.elements_.button&&(this.elements_.button.disabled=d)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(d){_.h("kevlar_system_icons")&&d&&this.data&&(this.data.isSelected!==void 0?d.active=this.data.isSelected:this.data.isToggled!==void 0&&(d.active=this.data.isToggled))},
observeBasicPalette_:function(d){_.Bg(this.hostElement,d)},
disabledChanged_:function(d){this.data&&this.set("data.isDisabled",d)},
onYtButtonTap_:function(d){if(this.disabled)d.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.aF(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(d=this.disableCommandHandlerOverride,!this.data||!this.data.command||d||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.h("handle_service_request_actions")||_.aF(this.hostElement,[this.serviceEndpoint]),
_.GT(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.h("handle_service_request_actions")?(d=[],this.serviceEndpoint&&d.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&d.push(this.data.command),d.length&&_.l5(this.hostElement,d,this.hostElement)):this.data&&this.data.command&&(d=this.data.command,d.accountUnlinkCommand||d.accountLinkCommand||d.insertAdCommand||d.insertHighlightMarkerCommand||
d.createLivestreamHighlightClipCommand||d.getVideoUploadFeedbackCommand||d.musicDeletePrivatelyOwnedEntityCommand||d.ypcCancelRecurrenceEndpoint||d.getMultiSelectCommandEndpoint?_.aF(this.hostElement,[d]):_.l5(this.hostElement,[d],this.hostElement))}},
computeStampType_:function(){return this.forceIconButton&&this.buttonText&&this.buttonIcon?"yt_icon_button_with_label":this.buttonText?"paper_button":this.buttonIcon?"yt-icon-button":null},
emptyContainer_:function(){for(var d,H=_.Gn((d=this.container.hostElement)!=null?d:this.container);H.lastChild&&H.lastChild.tagName!="STYLE";)try{H.removeChild(H.lastChild)}catch(K){break}},
getYtIconButton_:function(){var d=this.reuseEnabled_()?_.gl("yt-icon-button"):document.createElement("yt-icon-button"),H=_.Iu(d).firstElementChild;if(H&&H.is!="yt-icon"){for(H=_.Iu(d);H.lastChild;)H.removeChild(H.lastChild);H=null}H||(H=this.getIcon_(),this.setIconActive_(H),_.Iu(d).appendChild(H));return d},
reuseEnabled_:function(){return _.h("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.gl("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.gl("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.qfg={};
_.qfg.YtButtonBehavior=[uq.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var d=this.data;d&&(this._setEndpoint(this.computeEndpoint_(d)),this._setServiceEndpoint(this.computeServiceEndpoint_(d)),this._setCommand(this.computeCommand_(d)),this._setButtonIcon(this.computeButtonIcon_(d)),this._setButtonText(this.computeButtonText_(d,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(d)),this._setButtonTooltip(this.computeTooltip_(d)),this._setButtonClass(this.computeButtonClass_(d)),this._setIconPositionType(this.computeIconPositionType_(d)),this.updateRenderedElements())},
setPressedState:function(d){var H;if((H=this.elements_)==null?0:H.button)this.elements_.button.pressed=!!d},
computeIconPositionType_:function(d){return d&&d.iconPosition||null},
computeEndpoint_:function(d){var H=d&&d.navigationEndpoint,K=this.get("data.command.commandMetadata.webCommandMetadata.url"),c=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return H?H:d&&d.command&&d.command.modalEndpoint?d.command:K&&!c&&d.command?d.command:null},
computeServiceEndpoint_:function(d){var H=d&&d.serviceEndpoint,K=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return H?H:K&&d.command?d.command:null},
computeCommand_:function(d){return d&&d.command||null},
computeButtonIcon_:function(d){return d&&d.icon&&d.icon.iconType?_.kv(d.icon.iconType):null},
computeButtonText_:function(d,H){return!H&&d&&d.text||null},
computeAccessibility_:function(d){return this.get("accessibilityData.accessibilityData",d)||d&&d.accessibility||(d&&d.text?{label:this.getSimpleString(d.text)}:null)},
computeTooltip_:function(d){return d?d.isDisabled&&d.disabledTooltip||d.tooltip||null:null},
computeButtonClass_:function(d){var H=d&&d.style?d.style.toLowerCase().replace(/_/g,"-")+" ":"";H+=d&&d.size?d.size.toLowerCase().replace(/_/g,"-")+" ":"";d.colorData&&d.colorData.basicColorPaletteData&&d.colorData.basicColorPaletteData.borderColor&&(H+="palette-with-border");return H.trim()}}];var zv={};var a9A;var l9U;var eBX,k$3=function(){return eBX!==void 0?eBX:eBX=document.createElement("template")};
document.head.appendChild(k$3().content);var x0C;var nj0,CnU=function(){return nj0!==void 0?nj0:nj0=document.createElement("template")};
document.head.appendChild(CnU().content);var RB3;var Ve3,U0B=function(){return Ve3!==void 0?Ve3:Ve3=document.createElement("template")};
document.head.appendChild(U0B().content);var hBg;var LYd=document.head,MeS=LYd.appendChild,m06;if(hBg===void 0){var wl6=document.createElement("template");_.P(wl6,"\x3c!--css-build:shady--\x3e");wl6.content.insertBefore(U0B().content.cloneNode(!0),wl6.content.firstChild);hBg=wl6}m06=hBg;MeS.call(LYd,m06.content);var Pn0=document.head,ueC=Pn0.appendChild,I9d;if(RB3===void 0){var ri3=document.createElement("template");_.P(ri3,"\x3c!--css-build:shady--\x3e");ri3.content.insertBefore(CnU().content.cloneNode(!0),ri3.content.firstChild);RB3=ri3}I9d=RB3;ueC.call(Pn0,I9d.content);var WY7=document.head,BTX=WY7.appendChild,zBX;if(x0C===void 0){var Xl3=document.createElement("template");_.P(Xl3,"\x3c!--css-build:shady--\x3e");Xl3.content.insertBefore(k$3().content.cloneNode(!0),Xl3.content.firstChild);x0C=Xl3}zBX=x0C;BTX.call(WY7,zBX.content);var JiB;_.XX("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");JiB=_.h("web_button_rework")&&_.Qx("BUTTON_REWORK")||_.h("web_button_rework_with_live");_.Im=function(){return _.B.apply(this,arguments)||this};
_.m(_.Im,_.B);_.Im.prototype.created=function(){this.openPopupConfig=_.Fm("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Im.prototype.onYtNavigate_=function(d){var H=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(d.detail.endpoint);H&&(this.ytOpenPopupBehavior.openPopup(H),d.stopPropagation(),d.preventDefault())};
_.H3.Object.defineProperties(_.Im,{template:{configurable:!0,enumerable:!0,get:function(){if(l9U===void 0){var d=document.createElement("template");_.P(d,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_button_renderer.yt.button.renderer.css.js--\x3e");d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
var H=d.content,K=H.insertBefore;a9A===void 0&&(a9A=document.createElement("template"));var c=a9A;K.call(H,c.content.cloneNode(!0),d.content.firstChild);l9U=d}d=l9U;return d}}});
_.Im.prototype.onYtNavigate_=_.Im.prototype.onYtNavigate_;_.t([_.u(_.Rm.YtOpenPopupBehavior),_.O("design:type",Object)],_.Im.prototype,"ytOpenPopupBehavior",void 0);_.t([_.u(_.qfg.YtButtonBehavior),_.O("design:type",Object)],_.Im.prototype,"ytButtonBehavior",void 0);_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],_.Im.prototype,"onYtNavigate_",null);
_.t([_.ZV({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:JiB})],_.Im);var sT3;var FYC=_.h("web_button_rework")&&_.Qx("BUTTON_REWORK")||_.h("web_button_rework_with_live"),rl=function(){var d=_.B.apply(this,arguments)||this;d.isPressed=!1;d.forceIconButton=!1;d.forceIconOnly=!1;d.forceModernIconButton=!1;d.skipCommandHandling=!1;d.alignByText=!1;d.fitToVisibleBounds=!0;d.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};d.onTap=function(H){_.GT(d.hostElement,"yt-service-request-sent-button-renderer",H)};
return d};
_.m(rl,_.B);_.G=rl.prototype;_.G.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.G.onClick=function(d){var H,K=this.disabled||((H=this.data)==null?void 0:H.isDisabled);H=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");K&&H&&d.stopPropagation()};
_.G.computeIcon=function(){var d,H,K=(d=this.data)==null?void 0:(H=d.icon)==null?void 0:H.iconType;if(K)return _.kv(K)};
_.G.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.G.handleUpdateButtonAction=function(d){d=_.M(d,vJC);var H=_.M(d==null?void 0:d.updatedButton,_.Tz);if(this.data&&d&&H){var K=this.data;K.targetId&&d.targetId&&K.targetId===d.targetId&&(this.data=H)}};
_.H3.Object.defineProperties(rl.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var d=this;if(this.data){var H=o$l({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.GT(d.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.GT(d.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});H.alignByText=this.alignByText;return H}}}});
_.H3.Object.defineProperties(rl,{template:{configurable:!0,enumerable:!0,get:function(){if(sT3===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computeIcon(data)]]"></yt-button-shape><tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>');sT3=d}d=sT3;return d}}});
rl.prototype.onClick=rl.prototype.onClick;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],rl.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],rl.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],rl.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],rl.prototype,"isPressed",void 0);
_.t([_.r(),_.O("design:type",Object)],rl.prototype,"forceIconButton",void 0);_.t([_.r(),_.O("design:type",Object)],rl.prototype,"forceIconOnly",void 0);_.t([_.r(),_.O("design:type",Object)],rl.prototype,"forceModernIconButton",void 0);_.t([_.r(),_.O("design:type",Object)],rl.prototype,"skipCommandHandling",void 0);_.t([_.r(),_.O("design:type",Object)],rl.prototype,"alignByText",void 0);_.t([_.r(),_.O("design:type",Object)],rl.prototype,"buttonTooltipPosition",void 0);
_.t([_.r(),_.O("design:type",Object)],rl.prototype,"fitToVisibleBounds",void 0);_.t([_.r({computed:"computeTooltip(data)"}),_.O("design:type",Object)],rl.prototype,"tooltip",void 0);_.t([_.r(),_.O("design:type",Object)],rl.prototype,"overrides",void 0);_.t([_.r(),_.O("design:type",Boolean)],rl.prototype,"disabled",void 0);_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],rl.prototype,"onClick",null);
_.t([_.I("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.O("design:type",Object),_.O("design:paramtypes",[])],rl.prototype,"computedButtonShape",null);_.t([_.ZV({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!FYC,cssBuildOptOut:!0}),_.ZV({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!FYC,cssBuildOptOut:!0})],rl);var ZS3;var TTA;var WC=function(){var d=_.B.apply(this,arguments)||this;d.empty_=!0;d.loadTime=Infinity;d.pendingPaint=!1;d.hasChange_=!1;d.oldThumbnail_=null;d.oldDelayedSrc_="";d.objectURL_=null;return d};
_.m(WC,_.B);_.G=WC.prototype;_.G.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.G.ready=function(){var d=this.shouldShowPlaceholder_();_.qr(this.hostElement,"no-transition",!0);d&&this.hostElement.classList.add("with-placeholder")};
_.G.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.G.isThumbPreloaded_=function(d){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",d)};
_.G.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||QT7};
_.G.computeThumbnailSrc_=function(d){return d&&d.thumbnails?_.Gv(d.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.G.computeAlt_=function(){var d=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&d||""};
_.G.thumbnailChanged_=function(){var d=_.q([this.thumbnail,this.oldThumbnail_]),H=d.next().value;d=d.next().value;this.oldThumbnail_=H;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(d=this.computeThumbnailSrc_(d),this.computeThumbnailSrc_(H)===d))return;_.h("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(H)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):H&&_.Qx("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.vV(this,this.onReload_):_.vV(this,this.onShow_):this.resetImage_();H&&(this.hostElement.style.opacity=""+H.opacity)}};
_.G.delayedSrcChanged_=function(){var d=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===d||this.resetImage_()};
_.G.setSrc_=function(d){d?(_.Gn(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Gn(this.hostElement).querySelector("#img").src=d):(_.Gn(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.G.resetImage_=function(){nzL(this.hostElement);this.empty_=!0;this.setSrc_(QT7);this.ytRendererBehavior.invalidate(!1)};
_.G.observePlaceholderColor_=function(){var d=this.thumbnail&&this.thumbnail.placeholderColor;d?this.hostElement.style.backgroundColor=_.Yi(d):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.G.onLoad_=function(){_.Gn(this.hostElement).querySelector("#img").src&&_.Gn(this.hostElement).querySelector("#img").src!==QT7&&(xLF(this.hostElement),this.notifyOnLoaded&&_.GT(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.G.onError_=function(){var d=this;if(_.h("web_use_cache_for_image_fallback"))Md4(_.Gn(this.hostElement).querySelector("#img").src).then(function(H){d.objectURL_=_.JL(H).toString();d.setSrc_(d.objectURL_)}).catch(function(){_.h("kevlar_woffle_fallback_image")&&d.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.G.onPrescanVisible=function(){this.onShow_()};
_.G.onVisible=function(){if(_.h("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.G.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var d=this.computeSrc_();d!==_.Gn(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(d))}};
_.G.onReload_=function(){this.empty_=!1;var d=this.computeSrc_();d!==_.Gn(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(d))};
_.G.shouldShowPlaceholder_=function(){return _.h("kevlar_thumbnail_bg")};
WC.prototype.observePlaceholderColor_=WC.prototype.observePlaceholderColor_;WC.prototype.delayedSrcChanged_=WC.prototype.delayedSrcChanged_;WC.prototype.thumbnailChanged_=WC.prototype.thumbnailChanged_;_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],WC.prototype,"alt",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],WC.prototype,"ariaHidden",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],WC.prototype,"ariaLabel",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],WC.prototype,"hidden",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],WC.prototype,"id",void 0);_.t([_.u(_.b9.YtVisibilityBehavior),_.O("design:type",Object)],WC.prototype,"ytVisibilityBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",String)],WC.prototype,"delayedSrc",void 0);
_.t([_.r(),_.O("design:type",Object)],WC.prototype,"thumbnail",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],WC.prototype,"loaded",void 0);_.t([_.r(),_.O("design:type",Boolean)],WC.prototype,"notifyOnLoaded",void 0);_.t([_.r(),_.O("design:type",Number)],WC.prototype,"height",void 0);_.t([_.r(),_.O("design:type",Number)],WC.prototype,"width",void 0);_.t([_.r({value:function(){return"width"}}),
_.O("design:type",String)],WC.prototype,"dimension",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],WC.prototype,"fit",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],WC.prototype,"fitHeight",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],WC.prototype,"fitWidth",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],WC.prototype,"objectFit",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],WC.prototype,"objectPosition",void 0);_.t([_.r(),_.O("design:type",String)],WC.prototype,"preferredThumbnail",void 0);_.t([_.r({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.O("design:type",String)],WC.prototype,"alt_",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],WC.prototype,"sharedTooltipText",void 0);
_.t([_.r(),_.O("design:type",Boolean)],WC.prototype,"ftlEligible",void 0);_.t([_.r({value:void 0}),_.O("design:type",String)],WC.prototype,"observeHiddenOption",void 0);_.t([_.r({value:"observe_once"}),_.O("design:type",String)],WC.prototype,"observePrescanOption",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],WC.prototype,"roundedContainer",void 0);
_.t([_.Mr("thumbnail"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WC.prototype,"thumbnailChanged_",null);_.t([_.Mr("delayedSrc"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WC.prototype,"delayedSrcChanged_",null);_.t([_.CK("thumbnail.placeholderColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WC.prototype,"observePlaceholderColor_",null);
_.t([_.ZV({is:"yt-img-shadow",disableElementRegistration:!0})],WC);var QT7=_.Qx("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.oq()(WC,"yt-img-shadow",function(){if(TTA===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-shadow--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_shadow.yt.img.shadow.css.js--\x3e<img id="img" rounded-container="[[roundedContainer]]" alt$="[[alt_]]" height="[[height]]" width="[[width]]" on-load="onLoad_" on-error="onError_" draggable="false" class="style-scope yt-img-shadow">');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;ZS3===void 0&&(ZS3=document.createElement("template"));var c=ZS3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);TTA=d}d=TTA;return d},{callbackProps:["onTap"],
allowedProps:"alt ariaHidden ariaLabel delayedSrc dimension fit fitHeight fitWidth height hidden id loaded notifyOnLoaded objectFit objectPosition preferredThumbnail roundedContainer sharedTooltipText thumbnail width".split(" "),mode:2});var OZ4;_.BC=new _.Av("SCREEN_MANAGER_TOKEN");OZ4=new _.Av("LOG_INITIAL_SCREEN_TOKEN");var teB=function(d){return Object.fromEntries(Object.keys(d).map(function(H){return[H,H]}))}({entities:{}});var YfN=function(d){return function(H,K){return a1l(d,H,K)}}(teB)(teB.entities,{selectSfvAudioItemPlaybackState:function(d,H){var K,c;
d=(c=_.xL(d,"sfvAudioItemCurrentlyPlayingEntity",H))!=null?c:void 0;return(K=d==null?void 0:d.sfvAudioItemPlaybackState)!=null?K:void 0},
playlistLoopStateEntitySelector:function(d,H){var K;return(K=_.xL(d,"playlistLoopStateEntity",H))!=null?K:void 0}});_.zm=_.H1(function(d){function H(v){return _.M(v,_.OV)}
function K(){var v=c().isTogglingDisabled||W()&&c().toggledIsTogglingDisabled,el=v||U()?W():!W();J(el);Y(!1);if(!v){var l1;(l1=a)==null||l1(!!el)}var V4;((V4=g)==null?0:V4())||_.nU(_.Kj().resolve(_.BC),c().trackingParams);var Mf;if(!el||!H(c().defaultButtonViewModel)||(Mf=g)!=null&&Mf()){var LF;!H(c().toggledButtonViewModel)||((LF=g)==null?0:LF())||_.nU(_.Kj().resolve(_.BC),H(c().toggledButtonViewModel).trackingParams)}else _.nU(_.Kj().resolve(_.BC),H(c().defaultButtonViewModel).trackingParams)}
var c=d.data,p=d.buttonShapeOverrides,g=d.disableExplicitClickLogging,a=d.onToggle,e=d.style,k=d.useOutlinedIcon,C=d.className,R=function(){var v,el;return W()?(v=d.animatedTextPropsToggled)==null?void 0:v.call(d):(el=d.animatedTextPropsDefault)==null?void 0:el.call(d)},V=_.ey(function(){return R()?Object.assign({},R(),{shouldAnimate:F()}):void 0},void 0,"ZKEa0b"),U=function(){var v;
return((v=N())==null?void 0:v.isToggled)!==void 0},L=_.q(_.V2(function(){var v,el,l1;
return U()?(v=N())==null?void 0:v.isToggled:(l1=p==null?void 0:(el=p())==null?void 0:el.toggled)!=null?l1:c().isToggled})),w=L.next().value;
L=L.next().value;var W=w,J=L;L=_.q(_.V2(function(){var v,el;return(v=d.animatedTextPropsToggled)==null?void 0:(el=v.call(d))==null?void 0:el.shouldAnimate}));
w=L.next().value;L=L.next().value;var F=w,Y=L;w=_.q(_.GO(!1,void 0,"S11hid"));var A=w.next().value,E=w.next().value,N=_.Tv(function(v){a:{var el=c().entityKey,l1=c().toggledStateEntitySelectorType;if(l1)switch(l1){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!el)break;v=YfN.selectSfvAudioItemPlaybackState(v,el);if(v==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){v={isToggled:!0};break a}if(v){v={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":v={isToggled:_.erD(v).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":v={isToggled:_.erD(v).includes("engagement-panel-live-chat-item-section")};break a;default:_.Jf(new _.m1("Error: entitySelectorType defined but not matched in selector.",v,l1))}v=void 0}return v}),y=function(){return Object.assign({},p==null?void 0:p(),{onToggle:K,
toggleable:!0,toggled:W(),focused:A()})};
return _.x("toggle-button-view-model",{"on:focusin":_.n7(function(){var v=_.Kj().resolve(_.$p(_.qZ));v&&E(v.isKeyBoardInUse());return!1}),
"on:focusout":_.n7(function(){E(!1);return!1})},_.x(_.n,{cond:function(){return W()?H(c().toggledButtonViewModel):H(c().defaultButtonViewModel)},
then:function(v){return _.x(_.xk,{data:v,className:C,style:e,useOutlinedIcon:k,buttonOverrides:y,animatedTextProps:V})}}))},"C");
_.zm.idomCompat={callbacks:{onToggle:!0}};_.iV(_.H1(function(d){return _.x("yt-toggle-button-view-model",{class:function(){var H;return(H=d.scopingClassName)==null?void 0:H.call(d)}},_.x(_.zm,{data:function(){var H;
return(H=d.data)==null?void 0:H.call(d)},
buttonShapeOverrides:function(){var H;return(H=d.overrides)==null?void 0:H.call(d)},
animatedTextPropsDefault:function(){var H;return(H=d.animatedTextPropsDefault)==null?void 0:H.call(d)},
animatedTextPropsToggled:function(){var H;return(H=d.animatedTextPropsToggled)==null?void 0:H.call(d)},
disableExplicitClickLogging:function(){var H;return(H=d.disableExplicitClickLogging)==null?void 0:H.call(d)},
onToggle:function(H){var K;return(K=d.onToggle)==null?void 0:K.call(d,H)},
style:function(){var H;return(H=d.style)==null?void 0:H.call(d)},
useOutlinedIcon:function(){var H;return(H=d.useOutlinedIcon)==null?void 0:H.call(d)},
className:function(){var H;return(H=d.className)==null?void 0:H.call(d)}}))},"D"),"yt-toggle-button-view-model",{props:{data:_.dl,
buttonShapeOverrides:_.dl,overrides:_.dl,animatedTextPropsDefault:_.dl,animatedTextPropsToggled:_.dl,disableExplicitClickLogging:_.dl,onToggle:_.p7,style:_.dl,useOutlinedIcon:_.dl,className:_.dl,scopingClassName:_.dl}});var XV=function(){return _.B.apply(this,arguments)||this};
_.m(XV,_.B);XV.prototype.onTap=function(d){d.stopPropagation();d=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.BK("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:d})):this.ytLiveChatReduxBehavior.dispatch(_.PI("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:d}))};
_.H3.Object.defineProperties(XV.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.engagementState)==null?void 0:d.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var d=_.M(this.data.toggleButton,_.EV),H;if(Number(((H=this.likeCountState)==null?void 0:H.likeCountIfIndifferentNumber)||"0")===0){var K;H=((K=this.data.likeCountPlaceholder)==null?void 0:K.content)||""}else{var c,p,g;H=((c=this.likeCountState)==null?void 0:(p=c.likeCountIfIndifferent)==null?void 0:p.content)||((g=this.data.likeCountPlaceholder)==null?void 0:g.content)||""}var a,e;K=((a=this.likeCountState)==null?void 0:(e=
a.likeCountIfLiked)==null?void 0:e.content)||"1";a=_.M(d.toggledButtonViewModel,_.OV);return Object.assign({},d,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.M(d.defaultButtonViewModel,_.OV),{title:H})},toggledButtonViewModel:{buttonViewModel:Object.assign({},a,{title:K})}})}}}});
XV.prototype.onTap=XV.prototype.onTap;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],XV.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.YC),_.O("design:type",Object)],XV.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],XV.prototype,"data",void 0);
_.t([_.r({selectorArgs:["data.likeCountEntityKey"],selector:k7h}),_.O("design:type",Object)],XV.prototype,"likeCountState",void 0);_.t([_.r({selectorArgs:["data.engagementStateKey"],selector:R4f}),_.O("design:type",Object)],XV.prototype,"engagementState",void 0);_.t([_.I("data","engagementState"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],XV.prototype,"isLiked",null);
_.t([_.I("data","likeCountState","isLiked"),_.O("design:type",Object),_.O("design:paramtypes",[])],XV.prototype,"toggleButton",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],XV.prototype,"onTap",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],XV);
_.T(XV,"yt-live-chat-like-button-view-model",function(){if(Srg===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-like-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_like_button_view_model.yt.live.chat.like.button.view.model.css.js--\x3e<yt-toggle-button-view-model data="[[toggleButton]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-like-button-view-model">\n</yt-toggle-button-view-model>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;OYl===void 0&&(OYl=document.createElement("template"));var c=OYl;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Srg=d}d=Srg;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var OS3;var Sfl;var FV=function(){return _.B.apply(this,arguments)||this};
_.m(FV,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],FV.prototype,"data",void 0);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],FV);
_.T(FV,"yt-live-chat-paid-message-footer-renderer",function(){if(Sfl===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_footer_renderer.yt.live.chat.paid.message.footer.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-paid-message-footer-renderer">\n  <div id="icon" hidden$="[[!data.icon]]" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-icon>\n  </div>\n  <div id="text" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-formatted-string>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;OS3===void 0&&(OS3=document.createElement("template"));var c=OS3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Sfl=d}d=Sfl;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var EjB;var yiX;var bSg;var NTX,D0A=function(){if(NTX!==void 0)return NTX;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-reply-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_reply_button_view_model.yt.live.chat.reply.button.view.model.css.js--\x3e<yt-button-view-model data="[[buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-reply-button-view-model">\n</yt-button-view-model>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;bSg===void 0&&(bSg=document.createElement("template"));var c=bSg;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return NTX=d};var Zj=function(){return _.B.apply(this,arguments)||this};
_.m(Zj,_.B);Zj.prototype.onTap=function(d){d.stopPropagation()};
_.H3.Object.defineProperties(Zj.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var d=_.M(this.data.replyButton,_.OV),H,K,c,p,g,a,e,k=Number(((H=this.replyCountState)==null?void 0:H.replyCountNumber)||"0")===0?(K=this.data)==null?void 0:(c=K.replyCountPlaceholder)==null?void 0:c.content:((p=this.replyCountState)==null?void 0:(g=p.replyCount)==null?void 0:g.content)||((a=this.data)==null?void 0:(e=a.replyCountPlaceholder)==null?void 0:e.content)||"",C;return Object.assign({},
d,{title:k,accessibilityText:(C=this.replyCountState)==null?void 0:C.replyButtonAccessibilityText})}}}});
_.H3.Object.defineProperties(Zj,{template:{configurable:!0,enumerable:!0,get:function(){return D0A()}}});
Zj.prototype.onTap=Zj.prototype.onTap;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Zj.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.YC),_.O("design:type",Object)],Zj.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Zj.prototype,"data",void 0);
_.t([_.r({selectorArgs:["data.replyCountEntityKey"],selector:function(d,H){return _.xL(d.entities,"replyCountEntity",H)}}),
_.O("design:type",Object)],Zj.prototype,"replyCountState",void 0);_.t([_.I("data","replyCountState"),_.O("design:type",Object),_.O("design:paramtypes",[])],Zj.prototype,"buttonViewModel",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],Zj.prototype,"onTap",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],Zj);
_.T(Zj,"yt-live-chat-reply-button-view-model",function(){return D0A()},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var f9N;var AiA;var Tm=function(){var d=_.B.apply(this,arguments)||this;d.ariaLabel="";return d};
_.m(Tm,_.B);
Tm.prototype.dataChanged=function(){for(var d=(0,_.ls)(_.Gn(this.hostElement).querySelector("#image"));d.firstChild;)d.removeChild(d.firstChild);if(this.data)if(this.data.icon){var H=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(H.polymerController.icon="yt-sys-icons:shield-filled",H.polymerController.defaultToFilled=!0):H.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();d.appendChild(H)}else if(this.data.customThumbnail){H=document.createElement("img");
var K=_.Gal(this.data.customThumbnail.thumbnails,16);K?(H.src=K,d.appendChild(H),H.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Jf(new _.m1("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Tm.prototype.identity=function(d){return d};
Tm.prototype.computeType=function(d){return aq(d||void 0)};
Tm.prototype.dataChanged=Tm.prototype.dataChanged;_.t([_.r(),_.O("design:type",Object)],Tm.prototype,"data",void 0);_.t([_.r({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.O("design:type",Object)],Tm.prototype,"ariaLabel",void 0);_.t([_.r({computed:"computeType(data)",reflectToAttribute:!0}),_.O("design:type",String)],Tm.prototype,"type",void 0);
_.t([_.r({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.O("design:type",String)],Tm.prototype,"sharedTooltipText",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.h("live_chat_enable_new_moderator_badge")}}),
_.O("design:type",Boolean)],Tm.prototype,"enableNewModeratorBadge",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Tm.prototype,"dataChanged",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Tm);
_.T(Tm,"yt-live-chat-author-badge-renderer",function(){if(AiA===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_badge_renderer.yt.live.chat.author.badge.renderer.css.js--\x3e<div id="image" class="style-scope yt-live-chat-author-badge-renderer"></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;f9N===void 0&&(f9N=document.createElement("template"));var c=f9N;K.call(H,c.content.cloneNode(!0),d.content.firstChild);AiA=d}d=AiA;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var jTg;var vj3;var QV=function(){return _.B.apply(this,arguments)||this};
_.m(QV,_.B);_.G=QV.prototype;_.G.configureRendererStamper=function(){return{badgesBeforeChip:{id:"prepend-chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesOutsideChip:{id:"chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesInsideChip:{id:"chip-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}}}};
_.G.computeBadgesInsideChip=function(d){return d?d.filter(function(H){return aq(H.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.G.computeBadgesOutsideChip=function(d){return this.prependChatBadges||!d?[]:d.filter(function(H){H=aq(H.liveChatAuthorBadgeRenderer);return H!=="verified"&&H!=="owner"})};
_.G.computeBadgesBeforeChip=function(d){return this.prependChatBadges&&d?d.filter(function(H){H=aq(H.liveChatAuthorBadgeRenderer);return H!=="verified"&&H!=="owner"}):[]};
_.G.computeIsHighlighted=function(d,H){var K=!!wtL(d,"owner"),c=!!wtL(d,"verified");d=!!wtL(d,"moderator");return(K||c&&!d)&&!H};
_.G.computeAuthorType=function(d){return m2f(d)};
_.G.computeAuthorClass=function(d,H){return H?(d?d+" ":"")+"single-line":d};
_.G.onSeedColorChanged=function(){_.h("live_chat_author_name_color_usernames")||_.h("live_chat_seed_color_usernames")||_.h("live_chat_colored_usernames")?!this.authorNameColor||this.authorType||this.isHighlighted||this.hostElement.classList.contains("yt-live-chat-paid-message-renderer")||this.hostElement.classList.contains("yt-live-chat-paid-sticker-renderer")||(this.username.style.color=this.authorNameColor):_.h("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
QV.prototype.onSeedColorChanged=QV.prototype.onSeedColorChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],QV.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],QV.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],QV.prototype,"authorName",void 0);_.t([_.r(),_.O("design:type",Array)],QV.prototype,"authorBadges",void 0);
_.t([_.r({computed:"computeAuthorType(authorBadges)"}),_.O("design:type",String)],QV.prototype,"authorType",void 0);_.t([_.r({computed:"computeAuthorClass(authorType, singleLine)"}),_.O("design:type",String)],QV.prototype,"authorClass",void 0);_.t([_.r({computed:"computeBadgesInsideChip(authorBadges)"}),_.O("design:type",Array)],QV.prototype,"badgesInsideChip",void 0);_.t([_.r({computed:"computeBadgesOutsideChip(authorBadges)"}),_.O("design:type",Array)],QV.prototype,"badgesOutsideChip",void 0);
_.t([_.r({computed:"computeBadgesBeforeChip(authorBadges)"}),_.O("design:type",Array)],QV.prototype,"badgesBeforeChip",void 0);_.t([_.r({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.O("design:type",Boolean)],QV.prototype,"isHighlighted",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],QV.prototype,"singleLine",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],QV.prototype,"disableHighlighting",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],QV.prototype,"dashboardMoneyFeed",void 0);_.t([_.r({value:_.h("live_chat_prepend_badges"),reflectToAttribute:!0}),_.O("design:type",Boolean)],QV.prototype,"prependChatBadges",void 0);_.t([_.r(),_.O("design:type",String)],QV.prototype,"authorNameColor",void 0);_.t([_.VP("#author-name"),_.O("design:type",HTMLDivElement)],QV.prototype,"username",void 0);
_.t([_.CK("authorNameColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],QV.prototype,"onSeedColorChanged",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],QV);
_.T(QV,"yt-live-chat-author-chip",function(){if(vj3===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-chip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_chip.yt.live.chat.author.chip.css.js--\x3e<span id="prepend-chat-badges" class="style-scope yt-live-chat-author-chip"></span><span id="author-name" dir="auto" class$="[[authorClass]] style-scope yt-live-chat-author-chip">[[getSimpleString(authorName)]]<span id="chip-badges" class="style-scope yt-live-chat-author-chip"></span></span><span id="chat-badges" class="style-scope yt-live-chat-author-chip"></span>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;jTg===void 0&&(jTg=document.createElement("template"));var c=jTg;K.call(H,c.content.cloneNode(!0),d.content.firstChild);vj3=d}d=vj3;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var dLN;var HD7;var tT=function(){var d=_.B.apply(this,arguments)||this;d.debounceCommand=_.Rp(function(H){d.ytComponentBehavior.resolveCommand(H)},1500);
return d};
_.m(tT,_.B);tT.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var d=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",H,K,c=this.isHearted?(H=this.data)==null?void 0:H.unheartCommand:(K=this.data)==null?void 0:K.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.BK("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:d}));(d=_.T6(c))&&this.debounceCommand(d)}};
_.H3.Object.defineProperties(tT.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var d,H;if(!((d=this.data)==null?0:(H=d.creatorThumbnail)==null?0:H.sources))return{};d={thumbnails:[]};H={};H.url=this.data.creatorThumbnail.sources[0].url;d.thumbnails.push(H);return d}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.engagementState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.engagementState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.engagementState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return((d=this.engagementState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((K=this.engagementState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED"}},
label:{configurable:!0,enumerable:!0,get:function(){return this.data?(this.isHearted?this.data.heartedAccessibilityLabel:this.data.unheartedAccessibilityLabel)||"":""}},
heartHoverText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.isHearted?this.data.heartedHoverText:this.data.unheartedHoverText}}});
tT.prototype.onTap=tT.prototype.onTap;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],tT.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.YC),_.O("design:type",Object)],tT.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],tT.prototype,"data",void 0);
_.t([_.r({selectorArgs:["data.engagementStateKey"],selector:R4f}),_.O("design:type",Object)],tT.prototype,"engagementState",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],tT.prototype,"thumbnailDetails",null);_.t([_.I("data","engagementState"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],tT.prototype,"isHearted",null);_.t([_.I("data","engagementState"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],tT.prototype,"isEditable",null);
_.t([_.I("data","engagementState"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],tT.prototype,"showCreatorView",null);_.t([_.I("data","engagementState"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],tT.prototype,"showButton",null);_.t([_.I("data","isHearted"),_.O("design:type",String),_.O("design:paramtypes",[])],tT.prototype,"label",null);_.t([_.I("data","isHearted"),_.O("design:type",Object),_.O("design:paramtypes",[])],tT.prototype,"heartHoverText",null);
_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tT.prototype,"onTap",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],tT);
_.T(tT,"yt-live-chat-creator-heart-view-model",function(){if(HD7===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-creator-heart-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_creator_heart_view_model.yt.live.chat.creator.heart.view.model.css.js--\x3e<yt-icon-button id="creator-heart-button" hidden="[[!showButton]]" label="[[label]]" title="[[heartHoverText]]" class="style-scope yt-live-chat-creator-heart-view-model">\n  <template is="dom-if" if="[[showCreatorView]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-image id="unhearted" data="[[data.unheartedIcon]]" height="24" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n  <template is="dom-if" if="[[isHearted]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-img-shadow id="creator-thumbnail" thumbnail="[[thumbnailDetails]]" class="style-scope yt-live-chat-creator-heart-view-model"></yt-img-shadow>\n    <yt-image id="hearted-border" data="[[data.heartedIcon]]" height="16" preserve-height="true" width="16" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n    <yt-image id="hearted" data="[[data.heartedIcon]]" height="14" preserve-height="true" width="14" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n</yt-icon-button>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;dLN===void 0&&(dLN=document.createElement("template"));var c=dLN;K.call(H,c.content.cloneNode(!0),d.content.firstChild);HD7=d}d=HD7;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var Yk=function(){};
_.m(Yk,e$);Yk.prototype.JSC$13039_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:Dc("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Yk.prototype.getApiPaths=function(){return[]};
Yk.prototype.getExtension=function(){};
Yk.prototype.JSC$13039_buildRequest=function(){};var $LC={},KAU=($LC.GET_DATASYNC_IDS=uO(Yk),$LC);var cD3,poU,gz6,jM7,Oq,oz6,cqM,GaS,iDg;cD3="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");poU=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.y2=function(d,H,K,c,p,g,a,e,k){this.endpointMap=d;this.networkManager=H;this.authService=K;this.responseProcessorMap=c;this.innertubeResponseStore=p;this.contextProcessors=g;this.asyncContextProcessors=a;this.localInnertubeRouter=e;this.requestSequencer=k;this.inflightRequests=new Map;d.signalEndpointMap||(d.signalEndpointMap={});d.signalEndpointMap=Object.assign({},KAU,d.signalEndpointMap)};
gz6=function(d,H,K,c,p,g,a,e,k){if(_.y2.instance!==void 0){if(c=_.y2.instance,d=[d!==c.endpointMap,H!==c.networkManager,K!==c.authService,p!==c.innertubeResponseStore,g!==c.contextProcessors,a!==c.asyncContextProcessors,e!==c.localInnertubeRouter],d.some(function(C){return C}))throw new _.m1("InnerTubeTransportService is already initialized",d);
}else _.y2.instance=new _.y2(d,H,K,c,p,g,a,e,k)};
_.Nc=function(d,H,K){var c=c===void 0?fzC:c;var p=cqM(d,H);return p?new _.kr(function(g,a){var e,k,C,R,V;return _.l(function(U){switch(U.nextAddress){case 1:return U.yield(p,2);case 2:e=U.yieldResult;k=e.JSC$13039_getRequest(H,K,c);if(!k){a(new _.m1("Error: Failed to build request for command.",H));U.jumpTo(0);break}yS(k.input);R=((C=k.requestShell)==null?void 0:C.mode)==="cors"?"cors":void 0;if(d.authService.syncHeaders){V=iDg(k.config,R);U.jumpTo(4);break}return U.yield(GaS(k.config,R),5);case 5:V=
U.yieldResult;case 4:g(oz6(d,k,V)),_.VE(U)}})}):_.W1(new _.m1("Error: No request builder found for command.",H))};
jM7=function(d,H,K,c){var p=p===void 0?fzC:p;var g,a,e,k,C,R,V,U,L,w,W,J,F,Y,A,E,N,y;return _.l(function(v){switch(v.nextAddress){case 1:g=n$X(H,d.endpointMap);if(!g)throw new _.m1("Error: No streaming request builder found for command",H);a=g.JSC$13039_getRequest(H,K,p);if(!a)throw new _.m1("Failed to build YtRequest for streaming Command",H);if((e=d.localInnertubeRouter)==null||!e.shouldPreferLocalResponse(a.input,a.innerTubeRequest)){v.jumpTo(2);break}return v.yield(d.localInnertubeRouter.localInnertubeResponse(a.input,
a.innerTubeRequest),3);case 3:return k=v.yieldResult,C={},k.playerResponse&&(Oq(d,k.playerResponse,a),C.player=k.playerResponse,(R=c)==null||R(C,k)),k.watchNextResponse&&(Oq(d,k.watchNextResponse,a),C.content=k.watchNextResponse,(V=c)==null||V(C,k)),v.return(C);case 2:L=((U=a.requestShell)==null?void 0:U.mode)==="cors"?"cors":void 0;if(d.authService.syncHeaders){w=iDg(a.config,L);v.jumpTo(4);break}return v.yield(GaS(a.config,L),5);case 5:w=v.yieldResult;case 4:return F=(J=(W=a.requestShell)==null?
void 0:W.headers)!=null?J:{},a.requestShell=Object.assign({},a.requestShell,{headers:Object.assign({},F,w)}),Y=Object.assign({},a.requestShell),A=JSON.stringify(a.innerTubeRequest),a.requestShell.method==="POST"&&(Y=Object.assign({},Y,{body:A})),E=function(el,l1){Oq(d,l1.playerResponse||l1.watchNextResponse||l1.reelItemWatchResponse||l1.reelWatchSequenceResponse,a);c==null||c(el,l1)},N={},v.yield(q03(d.networkManager,a.input,Y,E),6);
case 6:return N=v.yieldResult,((y=a.config)==null?0:y.responseTick)&&_.Fw(a.config.responseTick),v.return(N)}})};
_.Qq=function(d,H,K,c,p){p=p===void 0?{authStrategy:{identity:fzC}}:p;var g=g===void 0?!0:g;var a=function(){};
a=ReM(nZM(K));H.context||(H.context=_.X6X(c,g));return new _.kr(function(e){var k,C,R,V,U;return _.l(function(L){if(L.nextAddress==1)return k=pU4(K),C=_.NC(k),d.authService.syncHeaders?(R=iDg(p,C),L.jumpTo(2)):L.yield(GaS(p,C),3);L.nextAddress!=2&&(R=L.yieldResult);V=gqF(pU4(K));U={input:V,requestShell:Dc(V),innerTubeRequest:H,config:p};e(oz6(d,U,R,a));_.VE(L)})})};
Oq=function(d,H,K){var c;if(H&&!(H==null?0:(c=H.sequenceMetaData)==null?0:c.skipProcessing)&&d.responseProcessorMap){c=_.q(cD3);for(var p=c.next();!p.done;p=c.next())p=p.value,d.responseProcessorMap[p]&&d.responseProcessorMap[p].handleResponse(H,K)}};
oz6=function(d,H,K,c){c=c===void 0?function(){}:c;
var p,g,a,e,k,C,R,V,U,L,w,W,J,F,Y,A,E,N,y,v,el,l1,V4,Mf,LF,YY,FM,gA,JN,eS,vF,CX,kd,BB,ug,fX,pF,dA,U3,lg;return _.l(function(hN){switch(hN.nextAddress){case 1:a=(p=H.config)==null?void 0:(g=p.storeStrategy)==null?void 0:g.storeKey;if(!(a&&d.innertubeResponseStore&&d.innertubeResponseStore.has(a))||((e=H.config)==null?0:(k=e.storeStrategy)==null?0:k.disableCache)){hN.jumpTo(2);break}return hN.yield(d.innertubeResponseStore.get(a),3);case 3:if((C=hN.yieldResult)&&!C.isExpired())return hN.return(Promise.resolve(_.d5(C)));
case 2:if(!((R=H)==null?0:(V=R.innerTubeRequest)==null?0:V.context)){hN.jumpTo(4);break}U=H.innerTubeRequest.context;if(!(d.asyncContextProcessors&&d.asyncContextProcessors.length>0)){hN.jumpTo(5);break}L=[];w=_.q(d.asyncContextProcessors);for(W=w.next();!W.done;W=w.next())J=W.value,F=J.processContext(H),F.wrappedPromise_&&L.push(F.wrappedPromise_);if(!(L.length>0)){hN.jumpTo(5);break}return hN.yield(Promise.all(L),5);case 5:Y=_.q(d.contextProcessors||[]),A=Y.next();case 8:if(A.done){hN.jumpTo(4);
break}E=A.value;return hN.yield(E.processContext(U),9);case 9:A=Y.next();hN.jumpTo(8);break;case 4:if((N=d.localInnertubeRouter)==null||!N.shouldPreferLocalResponse(H.input,H.innerTubeRequest)){hN.jumpTo(12);break}return hN.yield(d.localInnertubeRouter.localInnertubeResponse(H.input,H.innerTubeRequest),13);case 13:return y=hN.yieldResult,Oq(d,y,H),hN.return(y);case 12:return(l1=(el=H.config)==null?void 0:el.requestKey)&&d.inflightRequests.has(l1)?v=d.inflightRequests.get(l1):(V4=JSON.stringify(H.innerTubeRequest),
YY=(LF=(Mf=H.requestShell)==null?void 0:Mf.headers)!=null?LF:{},H.requestShell=Object.assign({},H.requestShell,{headers:Object.assign({},YY,K)}),FM=Object.assign({},H.requestShell),H.requestShell.method==="POST"&&(FM=Object.assign({},FM,{body:V4})),((gA=H.config)==null?0:gA.requestTick)&&_.Fw(H.config.requestTick),JN=function(){return d.networkManager.fetch(H.input,FM,H.config)},v=d.requestSequencer?aCl(d.requestSequencer,H,JN):JN(),l1&&d.inflightRequests.set(l1,v)),hN.yield(v,14);
case 14:(eS=hN.yieldResult)&&_.h("web_streaming_player")&&Array.isArray(eS)&&(eS=eS[0].playerResponse);if(eS&&"error"in eS&&((vF=eS)==null?0:(CX=vF.error)==null?0:CX.details))for(kd=eS.error.details,BB=_.q(kd),ug=BB.next();!ug.done;ug=BB.next())fX=ug.value,(pF=fX["@type"])&&poU.indexOf(pF)>-1&&(delete fX["@type"],eS=fX);l1&&d.inflightRequests.has(l1)&&d.inflightRequests.delete(l1);((dA=H.config)==null?0:dA.responseTick)&&_.Fw(H.config.responseTick);if(eS||(U3=d.localInnertubeRouter)==null||!U3.canProvideFallbackResponse(H.input,
H.innerTubeRequest)){hN.jumpTo(15);break}return hN.yield(d.localInnertubeRouter.localFallbackInnertubeResponse(H.input,H.innerTubeRequest),16);case 16:eS=hN.yieldResult;case 15:return Oq(d,eS,H),((lg=H.config)==null?0:lg.processorTick)&&_.Fw(H.config.processorTick),c(),hN.return(eS||void 0)}})};
_.bV=function(d,H){return xhL(H,d.endpointMap)};
cqM=function(d,H){d=CHM(H,d.endpointMap);if(d!==void 0)return Promise.resolve(d)};
GaS=function(d,H){var K,c,p,g;return _.l(function(a){if(a.nextAddress==1){p=(K=d)==null?void 0:(c=K.authStrategy)==null?void 0:c.sessionIndex;var e=a.yield;var k=_.e5(LZL({sessionIndex:p}));return e.call(a,k,2)}g=a.yieldResult;return a.return(Promise.resolve(Object.assign({},RrC(H),g)))})};
iDg=function(d,H){var K;d=d==null?void 0:(K=d.authStrategy)==null?void 0:K.sessionIndex;K=LZL({sessionIndex:d});return Object.assign({},RrC(H),K)};var lCS,epB,kaN,xLX,nz3,CP3,ULd,hpg,yV,LAB,Mdl,VdX,mLd;lCS=0;epB=/tone[1-5]/;kaN=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");xLX="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
nz3=Number.MAX_SAFE_INTEGER;CP3=RegExp("\ufe0f","g");_.SP=function(d){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;d&&_.RpS(this,d)};
_.RpS=function(d,H){try{_.xp(H,{context:d,onSuccess:function(c,p){Array.isArray(p)?d.load(p):(c=new _.m1("Emoji manager JSON response was not an array!",{response:p}),_.z5(c))},
onError:function(c){c=new _.m1("Failed to retrieve emoji manager initial JSON data!",{url:H,statusCode:_.qQ(c).toString()});_.Jf(c)}})}catch(c){var K=new _.m1("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:H});
_.Jf(K)}};
_.SP.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.SP.prototype.load=function(d,H){if(H)if(d.length)d=d.concat(H.emojis);else{this.emojis=H.emojis;this.emojiMap=H.emojiMap;this.emojiShortcutMap=H.emojiShortcutMap;this.emojiShortcutCharMap=VdX(H);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=H.emojiRegex;return}this.emojis=[].concat(_.ru(new Set(this.emojis.concat(d))));this.hasInitializedShortcutCharMap=!1;d=Array(this.emojis.length);for(H=0;H<this.emojis.length;H++){var K=this.emojis[H];if(K.emojiId){this.emojiMap[K.emojiId]=K;this.emojiMap[K.emojiId].index=
H;for(var c=0;K.shortcuts&&c<K.shortcuts.length;c++)this.emojiShortcutMap[K.shortcuts[c].toLocaleLowerCase()]=K;d[H]=K.isCustomEmoji&&K.shortcuts?K.shortcuts[0]:K.emojiId}}d.sort(function(p,g){return g.length-p.length});
if(d.length)try{this.emojiRegex=new RegExp(d.join("|").replace("*","\\*"),"gi")}catch(p){this.emojiRegex=/$./}else this.emojiRegex=/$./};
ULd=function(d,H){H=_.q(H);for(var K=H.next();!K.done;K=H.next()){var c=K.value;if(c.emojiId&&d.emojiMap[c.emojiId]){K=Object.assign({},d.emojiMap[c.emojiId],c);d.emojiMap[c.emojiId]=K;var p=void 0;K.index&&((p=d.emojis[K.index])==null?void 0:p.emojiId)===c.emojiId&&(d.emojis[K.index]=K);c=void 0;if((c=K.shortcuts)==null?0:c.length)for(d.hasInitializedShortcutCharMap=!1,c=_.q(K.shortcuts),p=c.next();!p.done;p=c.next())d.emojiShortcutMap[p.value.toLocaleLowerCase()]=K}}};
hpg=function(d){var H,K;_.l(function(c){if(c.nextAddress==1)return c.yield(_.rI.getInstance(),2);if(c.nextAddress!=3)return(H=c.yieldResult)?c.yield(H.get("ytlc-emoji-pref"),3):c.return();(K=c.yieldResult)&&ULd(d,Object.keys(K).map(function(p){return{emojiId:p,stickyPrefId:K[p]}}).filter(function(p){return!!p.emojiId&&!!p.stickyPrefId}));
_.VE(c)})};
_.Eq=function(d,H,K){return(d=d.emojiMap[H])&&(!d.isLocked||K!==void 0&&K)?d:void 0};
yV=function(d,H,K){K=_.Eq(d,H,K===void 0?!1:K);var c=H.match("\u200d");K&&d.skinTone!==0&&(d=(c==null?void 0:c.length)===1?_.Eq(d,H.replace("\u200d",kaN[d.skinTone]+"\u200d")):_.Eq(d,H+kaN[d.skinTone]))&&(K=d);return K};
LAB=function(d,H){var K=d.emojiMap[H];return(K==null?0:K.stickyPrefId)?d.emojiMap[K.stickyPrefId]:yV(d,H)};
_.aI=function(d,H){d=d.emojiShortcutMap[H.toLocaleLowerCase()];return!d||d.isLocked?null:d};
Mdl=function(d,H,K){return VdX(d,K===void 0?!1:K)[H]||{}};
VdX=function(d,H){H=H===void 0?!1:H;if(!d.hasInitializedShortcutCharMap){d.hasInitializedShortcutCharMap=!0;for(var K=0;K<d.emojis.length;K++){var c=d.emojis[K];if(!(c.isLocked||H&&c.isCustomEmoji&&c.emojiId&&!d.pickerCustomEmojiIds.includes(c.emojiId)))for(var p=0;c.shortcuts&&p<c.shortcuts.length;p++){var g=c.shortcuts[p];g.startsWith(":_")&&c.isCustomEmoji&&(d.emojiShortcutCharMap[":_"]==null&&(d.emojiShortcutCharMap[":_"]=Object.create(null)),d.emojiShortcutCharMap[":_"][g]=c);if(!(g.length<3||
!c.isCustomEmoji&&epB.test(g))){var a=g.substr(0,3).toLocaleLowerCase();d.emojiShortcutCharMap[a]==null&&(d.emojiShortcutCharMap[a]=Object.create(null));d.emojiShortcutCharMap[a][g]=c}}}}return d.emojiShortcutCharMap};
_.SP.prototype.createEmoji=function(d,H){H=H===void 0?!0:H;var K=document.createElement("img");d.isCustomEmoji||K.classList.add("small-emoji");K.classList.add("emoji");K.classList.add("yt-formatted-string");K.src=d.image?_.Gv(d.image.thumbnails,this.emojiSize)||"":"";var c=void 0;d.image&&d.image.accessibility&&d.image.accessibility.accessibilityData&&(c=d.image.accessibility.accessibilityData.label);K.alt=c?c:(d.isCustomEmoji&&d.shortcuts?d.shortcuts[0]:d.emojiId)||"";d.isCustomEmoji&&(K.dataset.emojiId=
d.emojiId);_.iv&&(K.setAttribute("contenteditable","false"),K.setAttribute("unselectable","on"));H&&(d.shortcuts&&d.shortcuts.length&&K.setAttribute("shared-tooltip-text",d.shortcuts[0]),K.id="emoji-"+lCS++);return K};
_.SP.prototype.createDocumentFragment=function(d,H,K,c){H=H===void 0?!1:H;K=K===void 0?!0:K;c=c===void 0?!1:c;d=d.replace(CP3,"");for(var p=document.createDocumentFragment(),g=0,a,e=0;(a=this.emojiRegex.exec(d))!=null;){var k=_.Eq(this,a[0])||_.aI(this,a[0]);!k||k.isCustomEmoji&&!H||(k=this.createEmoji(k,K),g!==a.index&&p.appendChild(document.createTextNode(d.substring(g,a.index))),p.appendChild(k),g=a.index+a[0].length,e++)}if(!c||e)return p.appendChild(document.createTextNode(d.substr(g))),p};
mLd=function(d,H,K){var c,p,g,a,e,k,C,R,V;return _.l(function(U){if(U.nextAddress==1){if(!H.emojiId||!d.emojiMap[H.emojiId])return U.return();c=Object.assign({},d.emojiMap[H.emojiId],{stickyPrefId:K});d.emojiMap[H.emojiId]=c;H.index&&((p=d.emojis[H.index])==null?void 0:p.emojiId)===H.emojiId&&(d.emojis[H.index]=c);if((g=H.shortcuts)==null?0:g.length)for(d.hasInitializedShortcutCharMap=!1,a=_.q(H.shortcuts),e=a.next();!e.done;e=a.next())k=e.value,d.emojiShortcutMap[k.toLocaleLowerCase()]=c;return U.yield(_.rI.getInstance(),
2)}if(U.nextAddress!=4)return(C=U.yieldResult)?U.yield(C.get("ytlc-emoji-pref"),4):U.jumpTo(0);V=(R=U.yieldResult)!=null?R:{};V[H.emojiId]=K;return U.yield(C.set("ytlc-emoji-pref",V,nz3),0)})};
_.bq=new _.SP;var uAX;_.NZ={};
uAX={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.h("web_context_menu_a11y_opacity_visibility"),reflectToAttribute:!0},timestampString:{type:String,computed:"computeTimestampString(data)"},popupPositionTarget:{type:Object,computed:"identity(menuButton)"},menuButton:Object,menuVisible:{type:Boolean,
computed:"computeMenuVisible_(menuOpen, menuFocused)",reflectToAttribute:!0},menuOpen:{type:Boolean,value:!1},menuFocused:{type:Boolean,value:!1},emojiManager:Object,participantsManager:Object,isDeleted:{type:Boolean,value:!1,computed:"truthy(data.deletedStateMessage)",reflectToAttribute:!0},hasOriginalContent:{type:Boolean,value:!1,computed:"truthy(data.showOriginalContentMessage)"},hasInlineActionButtons:{type:Boolean,computed:"computeHasInlineActionButtons(data)",reflectToAttribute:!0},modern:{type:Boolean,
reflectToAttribute:!0,value:_.h("web_button_rework_with_live")},filledButtonOverrides:{type:Object,value:{type:"filled",style:"overlay"}}},supportsInlineActionButtons:!1,listeners:{"yt-popup-opened":"onYtPopupOpened_","yt-popup-closed":"onYtPopupClosedOrCanceled_","yt-popup-canceled":"onYtPopupClosedOrCanceled_",tap:"onItemTap"},TIME_FORMATTER:new DL(7),shouldSupportInlineActionButtons:function(){return!1},
shouldSupportWholeItemClick:function(){return!1},
beforeRegister:function(){if(this.supportsInlineActionButtons||this.shouldSupportInlineActionButtons())this.stampDom||(this.stampDom={}),this.stampDom["data.inlineActionButtons"]={id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}}},
ready:function(){var d=_.Gn(this.hostElement||this).querySelector("#inline-action-button-container");d&&d.setAttribute("aria-hidden","true");this.menuButton=_.Gn(this.hostElement).querySelector("#menu-button")},
attached:function(){var d=this.menuButton;d&&(d.addEventListener("focusin",_.xf(this,this.onMenuButtonFocus_)),d.addEventListener("focusout",_.xf(this,this.onMenuButtonBlur_)))},
detached:function(){var d=this.menuButton;d&&(d.removeEventListener("focusin",_.xf(this,this.onMenuButtonFocus_)),d.removeEventListener("focusout",_.xf(this,this.onMenuButtonBlur_)))},
identity:_.JC,truthy:function(d){return!!d},
computeTimestampString:function(d){return d?d.timestampText?this.getSimpleString(d.timestampText):this.TIME_FORMATTER.format(new Date(d.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(d){return d},
computeMenuVisible_:function(d,H){return d||H},
computeHasInlineActionButtons:function(d){if(!d)return!1;var H,K;return!((H=d.inlineActionButtons)==null||!H.length)||!((K=d.additionalInlineActionButtons)==null||!K.length)},
createDocumentFragmentFromString:function(d){var H=_.bq.createDocumentFragment.bind(_.bq),K;if((K=this.participantsManager)==null||!K.viewerRegex)return H(d);K=document.createDocumentFragment();for(var c=0,p;(p=this.participantsManager.viewerRegex.exec(d))!=null;){if(p.index>0){var g=":"+p[0]+":";if((_.Eq(_.bq,g)||_.aI(_.bq,g))&&d.indexOf(g)===p.index-1)continue}K.appendChild(H(d.substring(c,p.index)));c=document.createElement("span");c.appendChild(H(p[0]));c.classList.add("mention");K.appendChild(c);
c=p.index+p[0].length}K.appendChild(H(d.substring(c)));return K},
createDocumentFragment:function(d){var H=document.createDocumentFragment();if(d.simpleText)return H.appendChild(this.createDocumentFragmentFromString(d.simpleText)),H;if(!d.runs)return H;for(var K=0;K<d.runs.length;K++){var c=d.runs[K];if(c.emoji)H.appendChild(_.bq.createEmoji(c.emoji));else if(c.text)if(c.navigationEndpoint){var p=document.createElement("a");p.classList.add("yt-simple-endpoint");tAE(p,c.navigationEndpoint);_.Gn(p).appendChild(this.createDocumentFragmentFromString(c.text));H.appendChild(p)}else H.appendChild(this.createDocumentFragmentFromString(c.text))}return H},
hasModerationOverlayVisible:function(){var d;return((d=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:d.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(d){d.composedPath().some(function(H){return(H=H instanceof Element?H:null)?H.tagName&&(H.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||H.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.h("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(d)},
colorFromDecimal:function(d){return iYF(d)},
markAsDeleted:function(d,H){this.set("data.deletedStateMessage",d);this.set("data.showOriginalContentMessage",H)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(d){if(this.data.contextMenuEndpoint){var H=_.Kj().resolve(_.FL),K=this.data.contextMenuEndpoint,c;(c=_.y2.instance)&&_.bV(c,K)?(H=woA(H,K),c=_.Qq(c,{},H)):c=_.PP0(H,K);c.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);d&&d.stopPropagation()}},
handleGetContextMenuResponse_:function(d){var H=_.y2.instance;H&&_.bV(H,{liveChatEndpoint:{}})||(d=d.response);d.liveChatItemContextMenuSupportedRenderers&&d.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(d.liveChatItemContextMenuSupportedRenderers.menuRenderer);d.actions&&_.oF(this.hostElement,"yt-live-chat-actions",[d.actions])},
handleGetContextMenuError:function(d){if(d instanceof Error||d instanceof Object||d instanceof String)var H=d;_.z5(new _.m1("Error encountered calling GetLiveChatItemContextMenu",H))},
showContextMenu_:function(d){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:d}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.GT(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.GT(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.NZ.YtLiveChatItemBehavior=[uAX,_.S$.YtComponentBehavior,_.Rm.YtOpenPopupBehavior];_.Dj=function(){};var IC7;var rDB;var WA3;var BZ7;var fd=function(){var d=_.B.apply(this,arguments)||this;d.active=!1;d.identity=_.JC;return d};
_.m(fd,_.B);fd.prototype.dataChanged=function(){this.active=!1};
fd.prototype.onClick=function(){_.GT(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
fd.prototype.dataChanged=fd.prototype.dataChanged;_.t([_.r(),_.O("design:type",Object)],fd.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],fd.prototype,"active",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fd.prototype,"dataChanged",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],fd);
_.T(fd,"yt-live-chat-text-input-field-suggestion",function(){if(BZ7===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_suggestion.yt.live.chat.text.input.field.suggestion.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-click="onClick" class="style-scope yt-live-chat-text-input-field-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[data.image.thumbnails.0.url]]" author$="[[data.author]]" class="style-scope yt-live-chat-text-input-field-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;WA3===void 0&&(WA3=document.createElement("template"));var c=WA3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);BZ7=d}d=BZ7;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});_.AT=function(d,H,K){return CustomEvent.call(this,d,{detail:{value:H,path:K}})||this};
_.m(_.AT,CustomEvent);_.jP=function(){var d=_.B.apply(this,arguments)||this;d.viewerName=null;d.actionMap={"yt-live-chat-actions":"onChatMessage_"};d.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];d.PARTICIPANT_TIME_USEC_=3E8;return d};
_.m(_.jP,_.B);_.G=_.jP.prototype;_.G.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.G.addParticipant=function(d){var H=_.IDM(this.participants,d,function(c,p){c=c[Object.keys(c)[0]];p=p[Object.keys(p)[0]];c=String(_.jG(c.authorName)).toLowerCase();p=String(_.jG(p.authorName)).toLowerCase();return c<p?-1:c==p?0:1}.bind(this));
if(H>=0){var K=this.participants[H];K[Object.keys(K)[0]].timestampUsec&&this.splice("participants",H,1,d)}else this.splice("participants",-H-1,0,d);d=d[Object.keys(d)[0]];H=_.jG(d.authorName).toLocaleLowerCase();K=H.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(K)||(this.allParticipantsCharMap_[K]={});this.allParticipantsCharMap_[K][H]=d};
_.G.getAuthorsFromPrefix=function(d){return this.allParticipantsCharMap_.hasOwnProperty(d)?this.allParticipantsCharMap_[d]:null};
_.G.computeViewerRegex_=function(d){if(!d)return null;d=d.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var H=d.indexOf("@")===0&&_.h("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(H+d.replace(/ /g,"\\s*")+"|^"+d.replace(/ /g,"\\s*")+"$|^"+d.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+d.replace(/ /g,"\\s*")+"$|(?<=\\s)"+d.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.G.checkForStaleParticipants_=function(){var d=this;this.trimOldParticipants_();this.asyncHandle_&&XAX(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.EI(function(){d.checkForStaleParticipants_()},3E4))};
_.G.onChatMessage_=function(d){var H=this,K=Date.now()*1E3;d.forEach(function(c){if(c=_.M(c,u$A)){c=c.item;var p=Object.keys(c)[0];H.SUPPORTED_ITEM_TYPES_.indexOf(p)!=-1&&c[p].timestampUsec>=K-H.PARTICIPANT_TIME_USEC_&&H.addParticipant(c)}},this);
this.checkForStaleParticipants_()};
_.G.trimOldParticipants_=function(){for(var d=Date.now()*1E3,H=this.participants.length-1;H>=0;H--){var K=this.participants[H];K=K[Object.keys(K)[0]];K.timestampUsec&&K.timestampUsec<d-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",H,1)}};
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],_.jP.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],_.jP.prototype,"viewerName",void 0);_.t([_.r({computed:"computeViewerRegex_(viewerName)"}),_.O("design:type",Object)],_.jP.prototype,"viewerRegex",void 0);_.t([_.r({value:function(){return[]},
notify:!0}),_.O("design:type",Array)],_.jP.prototype,"participants",void 0);_.t([_.ZV({is:"yt-live-chat-participants-manager",noInjection:!0})],_.jP);var zpN=/.*([:@#].*?)$/,vC=/\u00a0/g,Xo3=String.fromCharCode(160),JDS={placeholderTextColor:"--yt-live-chat-text-input-field-placeholder-color",activeUnderlineColor:"--yt-live-chat-text-input-field-active-underline-color",inactiveUnderlineColor:"--yt-live-chat-text-input-field-inactive-underline-color"},d2=function(){var d=_.B.apply(this,arguments)||this;d.disabled=!1;d.liveChatRichMessageInput=null;d.messageInput=null;d.isValidWithNoInputText=!1;d.suggestions=[];d.emojiManager=_.bq;d.inputMethodEditorActive=
!1;d.suggestionIndex=-1;d.JSC$14044_lastSuggestionRange=null;return d};
_.m(d2,_.B);_.G=d2.prototype;_.G.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.G.attached=function(){_.GZ&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.G.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.G.dataChanged=function(){if(!this.ignoreColorMapping){var d=!1,H={},K;for(K in JDS)this.data&&this.data.hasOwnProperty(K)&&(H[JDS[K]]=this.colorFromDecimal(this.data[K]),d=!0);d&&_.eO(this.hostElement,H)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.G.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.G.colorFromDecimal=function(d){d=Math.floor(Number(d));return"rgba("+[d>>16&255,d>>8&255,d&255,(d>>24&255)/255].join()+")"};
_.G.preventDrag=function(d){d.dataTransfer&&(d.dataTransfer.dropEffect="none");d.preventDefault()};
_.G.preventResize=function(d){d.returnValue=!1};
_.G.onInputChange=function(){var d=this.characterCount,H=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&H&&H.remove();if(!H&&this.characterCount>this.maxCharacterLimit){var K=window.getSelection();if(K){var c=K.getRangeAt(0);K.removeAllRanges();K.addRange(c)}}if(K=this.getCurrentRange())c=this.calculateTextBeforeRange(K),this.completeEmojisInRange(K,c,!0)||this.updateSuggestions(K,c);c=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(c);
_.GT(this.hostElement,"yt-live-chat-message-input-change",c);H&&this.characterCount===0&&H.remove();K&&K.commonAncestorContainer.parentElement.id==="input"&&K.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>d):K&&!K.collapsed&&K.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(d=this.input.childNodes.length-1;d>=0;d--)this.input.childNodes[d].nodeName==="BR"&&this.input.childNodes[d].remove()};
_.G.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.G.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var d=this.getCurrentRange();d&&d.commonAncestorContainer.parentElement.id==="input"&&d.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.G.mergeOverflowText=function(d){if(d){var H=document.createRange();H.selectNodeContents(d);H=H.extractContents();this.input.insertBefore(H,d)}};
_.G.checkRangeAtEndOfInput=function(){var d=this.getCurrentRange();if(d){var H=_.Gn(this.hostElement).querySelector("#overflow-text"),K=document.createRange();H&&H.previousSibling?H.previousSibling instanceof HTMLImageElement?K.selectNode(H.previousSibling):K.selectNodeContents(H.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?K.selectNode(this.input.lastChild):K.selectNodeContents(this.input.lastChild));K.collapse(!1);return K.isPointInRange(d.startContainer,
d.startOffset)}return!1};
_.G.handleOverflowText=function(d){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var H=_.Gn(this.hostElement).querySelector("#overflow-text"),K=this.getCurrentRange();this.input.normalize();d=this.checkRangeAtEndOfInput()&&d;this.mergeOverflowText(H);for(var c,p=0,g=0,a,e=this.input.childNodes,k=0;k<e.length;k++){var C=e[k];C instanceof Text?(g+=C.textContent.length,g>this.maxCharacterLimit&&(c=C,p=this.maxCharacterLimit+C.textContent.length-g)):C instanceof HTMLImageElement&&
(c=void 0,g=C.dataset.emojiId&&((c=this.data)==null?0:c.emojiCharacterCount)?g+this.data.emojiCharacterCount:g+C.alt.length,c=this.input,p=k);if(g>this.maxCharacterLimit&&c){a=document.createRange();a.collapse(!1);H?(g=this.input.lastChild.previousSibling,g instanceof Text?a.setEnd(this.input.lastChild.previousSibling,g.textContent.length):g instanceof HTMLImageElement&&a.setEnd(this.input,this.input.childNodes.length-1)):a.selectNodeContents(this.input);a.setStart(c,p);break}}a&&(c=!1,K&&(d=a.isPointInRange(K.startContainer,
K.startOffset-1)),H||(H=document.createElement("span"),H.id="overflow-text",H.textContent="",H.setAttribute("contenteditable","true"),_.Gn(_.Gn(this.hostElement).querySelector("#input")).appendChild(H),c=!0),H&&(K=a.extractContents(),H.insertBefore(K,H.firstChild),d&&H.firstChild&&(K=document.createRange(),c?K.setStartAfter(H.lastChild):K.setStartAfter(H.firstChild),K.collapse(!0),H=window.getSelection(),H.removeAllRanges(),H.addRange(K))))}};
_.G.checkForDuplicateSpans=function(){for(var d=0;d<this.input.childNodes.length;d++){var H=this.input.childNodes[d];if(H.nodeName==="SPAN"){var K=document.createRange();K.selectNodeContents(H);K=K.extractContents();this.input.insertBefore(K,H);H.remove()}}this.handleOverflowText(!0)};
_.G.getCurrentRange=function(){var d=window.getSelection();return d&&d.rangeCount?d.getRangeAt(0).cloneRange():null};
_.G.getInputRange=function(){var d=this.getCurrentRange();if(d){for(var H=d.commonAncestorContainer,K=!1,c=_.Gn(this.hostElement).querySelector("#input");H;){if(H===c){K=!0;break}H=H.parentNode}K||(d=null)}d||(d=this.getRangeAtEnd());return d};
_.G.getRangeAtEnd=function(){var d=document.createRange(),H=_.Gn(this.hostElement).querySelector("#input").lastChild;!H||H.nodeName!=="#text"&&H.nodeName!=="SPAN"?(d.selectNodeContents(_.Gn(this.hostElement).querySelector("#input")),d.collapse(!1)):H.nodeName==="#text"?d.setStart(H,H.textContent.length):d.setStart(H,H.childNodes.length);return d};
_.G.getChatParticipantSuggestions=function(d,H,K,c){var p=_.h("live_chat_enable_handles_web_text_input_update");if(H)for(var g in H)if(g.indexOf(d)===0||p&&g.indexOf(K+d)===0){var a=H[g],e=_.jG(a.authorName);c.push({suggestion:{author:!0,authorType:K,image:a.authorPhoto,alt:e,text:e}});if(c.length>=64)break}};
_.G.getSuggestions=function(d){var H=[],K=d.substring(0,3),c=Mdl(_.bq,K,!0);if(c)for(var p in c)if(p.toLocaleLowerCase().indexOf(d)===0){var g=c[p];if(g&&g.emojiId){if(g=LAB(_.bq,g.emojiId)){var a=void 0,e=void 0,k=void 0,C=void 0,R=((a=g.image)==null?0:(e=a.accessibility)==null?0:(k=e.accessibilityData)==null?0:k.label)||g.isCustomEmoji?(C=g.shortcuts)==null?void 0:C[0]:g.emojiId;H.push({suggestion:{emoji:!0,image:g.image,alt:R,text:p,textToInsertWhenSelected:g.isCustomEmoji?p:R}})}if(H.length>=
64)break}}if(!this.participantsManager)return null;if(K.indexOf("@")===0||K.indexOf("#")===0)c=K.charAt(0),d=d.substring(1),p=_.h("live_chat_enable_handles_web_text_input_update"),K.indexOf("@")===0&&p&&(p=this.participantsManager.getAuthorsFromPrefix(K.substring(0,2)),this.getChatParticipantSuggestions(d,p,c,H)),K=K.substring(1),K=this.participantsManager.getAuthorsFromPrefix(K),this.getChatParticipantSuggestions(d,K,c,H);return H?H.sort(function(V,U){return U.suggestion.text<V.suggestion.text?-1:
U.suggestion.text===V.suggestion.text?0:1}):null};
_.G.insertSuggestion=function(d){var H=_.h("live_chat_enable_handles_web_text_input_update"),K=d.authorType;H=d.text.indexOf(K)===0&&H?d.text+Xo3:K+d.text+Xo3;d.emoji?this.insertTextAtRange(this.JSC$14044_lastSuggestionRange,d.textToInsertWhenSelected||""):d.author&&this.insertTextAtRange(this.JSC$14044_lastSuggestionRange,H)};
_.G.updateSuggestionsAtCaret=function(){var d=this.getCurrentRange();d&&this.updateSuggestions(d,this.calculateTextBeforeRange(d))};
_.G.offsetStartOfRangeBy=function(d,H){for(;H>0;)if(d.startOffset-H>=0){d.setStart(d.startContainer,d.startOffset-H);break}else{H=d.startContainer instanceof HTMLImageElement?H-d.startContainer.alt.length:H-d.startOffset;var K=d.startContainer.previousSibling;if(!K){d.setStart(d.startContainer,0);break}if(_.h("live_chat_require_space_for_autocomplete_emoji")){var c=void 0,p=void 0;d.setStart(K,((c=K)==null?void 0:(p=c.textContent)==null?void 0:p.length)||0)}else d.setStart(K,K.childNodes.length||
0)}};
_.G.updateSuggestions=function(d,H){var K=this;this.JSC$14044_lastSuggestionRange&&(this.JSC$14044_lastSuggestionRange.detach(),this.JSC$14044_lastSuggestionRange=null);if((H=zpN.exec(H))&&H.length&&(H=H[H.length-1].toLocaleLowerCase(),H.length>2&&(this.offsetStartOfRangeBy(d,H.length),this.JSC$14044_lastSuggestionRange=d,(d=this.getSuggestions(H))&&d.length))){this.suggestions=d;_.vV(this,function(){_.Gn(K.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(d.length-1);return}this.dropdown.opened=!1};
_.G.completeEmojisInRange=function(d,H,K){var c=H.replace(/[\s\xa0]+$/,"");H=H.length-c.length;c=c.split(" ");c=c[c.length-1].trim().toLocaleLowerCase();var p=c.lastIndexOf(":");if(K&&!H&&p!==c.length-1)return!1;p!==-1&&(K=c.lastIndexOf(":",p-1),K!==-1&&(c=c.substring(K)));if((K=_.aI(_.bq,c))&&K.emojiId){K=LAB(_.bq,K.emojiId)||null;this.offsetStartOfRangeBy(d,c.length+H);var g,a,e,k;c=(((g=K)==null?0:g.isCustomEmoji)?(a=K)==null?void 0:(e=a.shortcuts)==null?void 0:e[0]:(k=K)==null?void 0:k.emojiId)||
"";H&&(c+=Xo3);this.insertTextAtRange(d,c);this.dropdown.opened=!1;return!0}return!1};
_.G.onSuggestion=function(d){this.insertSuggestion(d.detail);this.dropdown.opened=!1};
_.G.onKeyPress=function(d){d.keyCode===13&&(d.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.GT(this.hostElement,"yt-live-chat-send-message"))};
_.G.completeEmojis=function(){var d=document.createRange(),H=_.Gn(this.hostElement).querySelector("#input").lastChild;H?d.setStart(H,H.childNodes.length):(d.selectNodeContents(_.Gn(this.hostElement).querySelector("#input")),d.collapse(!1));this.completeEmojisInRange(d,this.calculateTextBeforeRange(d),_.h("live_chat_require_space_for_autocomplete_emoji"))};
_.G.maybePreventTextFormatting=function(d){!_.lv||!d.ctrlKey&&!d.metaKey||d.keyCode!==66&&d.keyCode!==73||(d.stopImmediatePropagation(),d.preventDefault())};
_.G.onKeyDown=function(d){this.maybePreventTextFormatting(d);if(this.dropdown.opened)switch(d.keyCode){case 27:this.dropdown.opened=!1;d.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;d.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);d.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),d.preventDefault()}};
_.G.onKeyUp=function(d){switch(d.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.iv)this.onInputChange()};
_.G.changeSuggestionIndex=function(d){if(this.dropdown.opened){var H=_.Gn(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<H.children.length&&(H.children[this.suggestionIndex].active=!1);var K=this.suggestions.length;this.suggestionIndex=(d+K)%K;d=H.children[this.suggestionIndex];d.active=!0;H.scrollTop=d.offsetTop}};
_.G.onInputPaste=function(d){d.preventDefault();(d=d.clipboardData)&&d.types&&(d=d.getData("text/plain")||"",d=d.replace(/\n/g,""),this.insertText(d));(d=this.getCurrentRange())&&d.commonAncestorContainer.parentElement.id==="input"&&d.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.G.onFocus=function(){this._setFocused(!0)};
_.G.onBlur=function(){this._setFocused(!1)};
_.G.insertText=function(d){this.insertTextAtRange(this.getInputRange(),d)};
_.G.insertTextAtRange=function(d,H){if(d&&(d.collapsed||d.deleteContents(),H=_.bq.createDocumentFragment(H,!0,!1))){for(var K=_.q((H==null?void 0:H.childNodes)||[]),c=K.next();!c.done;c=K.next()){c=c.value;var p=void 0,g=void 0,a=void 0,e=void 0,k=void 0;(a=(p=window)==null?void 0:(g=p.ShadyCSS)==null?void 0:g.ScopingShim)==null||(k=(e=a).scopeNode)==null||k.call(e,c,this.hostElement.localName)}K=H.lastChild;d.insertNode(H);this.focused||this.input.focus();if(this.focused){d=d.cloneRange();d.selectNodeContents(K);
d.collapse(!1);if(H=window.getSelection())H.removeAllRanges(),H.addRange(d);d.commonAncestorContainer.parentElement.id==="input"&&d.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}d=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(d);_.GT(this.hostElement,"yt-live-chat-message-input-change",d)}};
_.G.setLiveChatRichMessageInput=function(d){_.Gn(_.Gn(this.hostElement).querySelector("#input")).textContent="";if(d&&d.textSegments){for(var H=0;H<d.textSegments.length;H++){var K=d.textSegments[H];K.text?_.Gn(_.Gn(this.hostElement).querySelector("#input")).appendChild(_.bq.createDocumentFragment(K.text,!0,!1)):K.emojiId&&(K=_.Eq(_.bq,K.emojiId))&&_.Gn(_.Gn(this.hostElement).querySelector("#input")).appendChild(_.bq.createEmoji(K,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.G.setText=function(d){this.setLiveChatRichMessageInput(d?{textSegments:[{text:d}]}:null)};
_.G.calculateTextBeforeRange=function(d){var H="",K=d.startContainer;if(K&&K instanceof Text){var c;H=((c=K.textContent)==null?void 0:c.substring(0,d.startOffset))||"";K=K.previousSibling}for(;K&&K instanceof Text;)H=K.textContent+H,K=K.previousSibling;return H.replace(vC," ")};
_.G.calculateLiveChatRichMessageInput=function(){for(var d=[],H="",K=_.Gn(_.Gn(this.hostElement).querySelector("#input")).childNodes,c=0;c<K.length;c++){var p=K[c];p instanceof Text?H+=p.textContent:p instanceof HTMLImageElement&&(p.dataset.emojiId?(H&&(d.push({text:H.replace(vC," ")}),H=""),d.push({emojiId:p.dataset.emojiId})):H+=p.alt)}H&&d.push({text:H.replace(vC," ")});if(K=_.Gn(this.hostElement).querySelector("#overflow-text")){H="";K=K.childNodes;for(c=0;c<K.length;c++)p=K[c],p instanceof Text?
H+=p.textContent:p instanceof HTMLImageElement&&(p.dataset.emojiId?(H&&(d.push({text:H.replace(vC," ")}),H=""),d.push({emojiId:p.dataset.emojiId})):H+=p.alt);H&&d.push({text:H.replace(vC," ")})}return{textSegments:d}};
_.G.computeCharacterCount=function(d){if(!d||!d.textSegments)return 0;for(var H=0,K=0;K<d.textSegments.length;K++){var c=d.textSegments[K];if(c.text)H+=c.text.length;else if(c.emojiId){var p=void 0;if((p=this.data)==null?0:p.emojiCharacterCount)H+=this.data.emojiCharacterCount;else{var g=p=void 0,a=void 0;H+=((g=_.Eq(_.bq,(p=c)==null?void 0:p.emojiId))==null?void 0:(a=g.shortcuts)==null?void 0:a[0].length)||0}}}return H};
_.G.characterCountChanged=function(){_.GT(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.G.focusedChanged=function(){this.hostElement.dispatchEvent(new _.AT("focused-changed",this.focused))};
_.G.focus=function(){this.setFocus(!1)};
_.G.focusAtEnd=function(){this.setFocus(!0)};
_.G.setFocus=function(d){d=d?this.getRangeAtEnd():this.getInputRange();_.Gn(this.hostElement).querySelector("#input").focus();var H=window.getSelection();H&&(H.removeAllRanges(),H.addRange(d))};
_.G.insertEmoji=function(d){var H,K=((d==null?0:d.isCustomEmoji)?(H=d.shortcuts)==null?void 0:H[0]:d==null?void 0:d.emojiId)||"";this.insertText(K)};
_.G.computeText=function(d){if(!d||!d.textSegments)return"";for(var H="",K=0;K<d.textSegments.length;K++){var c=d.textSegments[K];if(c.text)H+=c.text;else if(c.emojiId){var p=void 0,g=void 0,a=void 0;H+=((g=_.Eq(_.bq,(p=c)==null?void 0:p.emojiId))==null?void 0:(a=g.shortcuts)==null?void 0:a[0])||""}}return H};
_.G.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.H3.Object.defineProperties(d2.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
d2.prototype.focusedChanged=d2.prototype.focusedChanged;d2.prototype.characterCountChanged=d2.prototype.characterCountChanged;d2.prototype.onSuggestion=d2.prototype.onSuggestion;d2.prototype.onMessageSet=d2.prototype.onMessageSet;d2.prototype.dataChanged=d2.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],d2.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],d2.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],d2.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],d2.prototype,"disabled",void 0);_.t([_.I("disabled"),_.O("design:type",Number),_.O("design:paramtypes",[])],d2.prototype,"inputTabIndex",null);_.t([_.I("data.maxCharacterLimit"),_.r({readOnly:!0,notify:!0}),_.O("design:type",Number),_.O("design:paramtypes",[])],d2.prototype,"maxCharacterLimit",null);
_.t([_.I("liveChatRichMessageInput"),_.r({readOnly:!0,notify:!0}),_.O("design:type",Number),_.O("design:paramtypes",[])],d2.prototype,"characterCount",null);_.t([_.I("maxCharacterLimit, characterCount"),_.r({readOnly:!0,notify:!0}),_.O("design:type",Number),_.O("design:paramtypes",[])],d2.prototype,"remainingCharacterCount",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],d2.prototype,"isChatMessageInput",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],d2.prototype,"inputExpanded",void 0);_.t([_.r({readOnly:!0,notify:!0}),_.O("design:type",Object)],d2.prototype,"liveChatRichMessageInput",void 0);_.t([_.r(),_.O("design:type",Object)],d2.prototype,"messageInput",void 0);_.t([_.r(),_.O("design:type",Boolean)],d2.prototype,"ignoreColorMapping",void 0);_.t([_.I("characterCount"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],d2.prototype,"hasText",null);
_.t([_.r(),_.O("design:type",Object)],d2.prototype,"isValidWithNoInputText",void 0);_.t([_.I("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.r(),_.O("design:type",Boolean),_.O("design:paramtypes",[])],d2.prototype,"isInputValid",null);_.t([_.r({readOnly:!0,value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],d2.prototype,"focused",void 0);_.t([_.r(),_.O("design:type",Array)],d2.prototype,"suggestions",void 0);
_.t([_.r(),_.O("design:type",_.SP)],d2.prototype,"emojiManager",void 0);_.t([_.r(),_.O("design:type",_.jP)],d2.prototype,"participantsManager",void 0);_.t([_.r(),_.O("design:type",Boolean)],d2.prototype,"noUnderline",void 0);_.t([_.r(),_.O("design:type",Object)],d2.prototype,"inputMethodEditorActive",void 0);_.t([_.VP("#dropdown"),_.O("design:type",Object)],d2.prototype,"dropdown",void 0);_.t([_.VP("#input"),_.O("design:type",HTMLElement)],d2.prototype,"input",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],d2.prototype,"dataChanged",null);_.t([_.CK("messageInput"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],d2.prototype,"onMessageSet",null);_.t([_.nK("yt-live-chat-select-suggestion"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],d2.prototype,"onSuggestion",null);
_.t([_.CK("characterCount"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],d2.prototype,"characterCountChanged",null);_.t([_.CK("focused"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],d2.prototype,"focusedChanged",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],d2);
_.sNB=_.T(d2,"yt-live-chat-text-input-field-renderer",function(){if(rDB===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_renderer.yt.live.chat.text.input.field.renderer.css.js--\x3e<label id="label" class="style-scope yt-live-chat-text-input-field-renderer">[[getSimpleString(data.placeholder)]]</label>\n<div id="input" aria-label$="[[getSimpleString(data.placeholder)]]" aria-invalid$="[[!isInputValid]]" contenteditable="" tabindex$="[[inputTabIndex]]" on-blur="onBlur" on-dragenter="preventDrag" on-dragleave="preventDrag" on-dragover="preventDrag" on-drop="preventDrag" on-focus="onFocus" on-input="onInputChange" on-keydown="onKeyDown" on-keypress="onKeyPress" on-keyup="onKeyUp" on-paste="onInputPaste" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n<div id="underline" hidden$="[[noUnderline]]" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="unfocused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n  <div id="focused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n</div>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="24" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="dropdown-content" class="dropdown-content style-scope yt-live-chat-text-input-field-renderer" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;IC7===void 0&&(IC7=document.createElement("template"));var c=IC7;K.call(H,c.content.cloneNode(!0),d.content.firstChild);rDB=d}d=rDB;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var Hn=function(){var d=_.B.apply(this,arguments)||this;d.buttonOverrides={style:"overlay",type:"filled"};d.allowAnimations=!1;d.modern=_.h("web_button_rework_with_live");d.noPadding=!1;return d};
_.m(Hn,_.B);_.G=Hn.prototype;_.G.shouldSupportInlineActionButtons=function(){return!0};
_.G.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{liveChatPaidMessageFooterRenderer:"yt-live-chat-paid-message-footer-renderer"}},"data.buyButton":{id:"lower-buy-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.buyFlowButton":{id:"buy-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}},
"data.pdgLikeButton":{id:"like-button",mapping:{pdgLikeViewModel:{component:"yt-live-chat-like-button-view-model"}}},"data.replyButton":{id:"reply-button",mapping:{pdgReplyButtonViewModel:{component:"yt-live-chat-reply-button-view-model"}}},"data.leaderboardBadge":{id:"leaderboard-badge",mapping:{buttonViewModel:{component:"yt-button-view-model"}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}}}};
_.G.ready=function(){var d=document.querySelector("yt-live-chat-app");d&&d.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.G.attached=function(){this.allowAnimations=!1};
_.G.dataChanged=function(){if(this.data){var d={"--yt-live-chat-paid-message-primary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyBackgroundColor),"--yt-live-chat-paid-message-secondary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerBackgroundColor),"--yt-live-chat-paid-message-header-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerTextColor),"--yt-live-chat-paid-message-timestamp-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.timestampColor),
"--yt-live-chat-paid-message-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyTextColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.authorNameTextColor),"--yt-live-chat-text-input-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.textInputBackgroundColor)};_.eO(this.hostElement,d);this.allowAnimations=!0}};
_.G.messageChanged=function(){var d,H=(d=this.data)==null?void 0:d.message;d=_.Gn(_.Gn(this.hostElement).querySelector("#message"));d.textContent="";H&&d.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(H))};
_.G.computeShowOnlyHeader=function(d,H){return!d||d.pdgLikeButton||d.replyButton||d.buyFlowButton?!1:this.isEmpty(d,H)&&!d.footer};
_.G.computeShowFooterDivider=function(d,H,K){return d?!!d.footer&&!this.isEmpty(d,H)&&!K:!1};
_.G.computeIsUserEditable=function(d){return!!d.inputField};
_.G.computeHasHeartButton=function(d){return(d==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(d==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(d==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.G.computeNoveltyImage=function(d){if(d.headerOverlayImage&&d.headerOverlayImage.thumbnails.length){var H=d.headerOverlayImage.thumbnails[0],K,c;if((K=d.pdgPurchasedNoveltyLoggingDirectives)==null?0:(c=K.loggingDirectives)==null?0:c.trackingParams){var p,g;UIF((p=d.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(g=p.loggingDirectives)==null?void 0:g.trackingParams)}return H.width||0}return 0};
_.G.computeAuthorPhotoSize=function(d){return(d==null?0:d.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.G.inputFocus=function(){var d=_.Gn(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");d&&d.focus()};
_.G.inputInsertEmoji=function(d){var H=_.Gn(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");H&&H.insertEmoji(d)};
_.G.inputMessage=function(){var d=_.Gn(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),H;return d&&((H=this.data)==null?0:H.inputField)?(d.completeEmojis(),_.OQ(d.liveChatRichMessageInput)):null};
_.G.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.G.isEmpty=function(d,H){return d?d.empty||!(d.message||d.inputField||H):!0};
_.G.onLowerBuyButtonClick=function(){var d,H=_.M((d=this.data)==null?void 0:d.buyButton,_.Tz);H&&H.trackingParams&&!oeF(H.command)&&(d=_.P1(H.trackingParams))&&(H=_.Fj())&&_.fo(H,d)};
_.G.shouldSupportWholeItemClick=function(){return!0};
_.H3.Object.defineProperties(Hn.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?0:d.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Hn.prototype.isDeletedChanged=Hn.prototype.isDeletedChanged;Hn.prototype.messageChanged=Hn.prototype.messageChanged;Hn.prototype.dataChanged=Hn.prototype.dataChanged;_.t([_.u(owl.YtPdgLiveChatItemBehavior),_.O("design:type",Object)],Hn.prototype,"ytPdgLiveChatItemBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.YC),_.O("design:type",Object)],Hn.prototype,"ytLiveChatReduxBehavior",void 0);
_.t([_.u(_.NZ.YtLiveChatItemBehavior),_.O("design:type",_.Dj)],Hn.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Hn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Hn.prototype,"data",void 0);_.t([_.r({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:R4f}),_.O("design:type",Object)],Hn.prototype,"engagementState",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.O("design:type",Boolean)],Hn.prototype,"isUserEditable",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.O("design:type",Boolean)],Hn.prototype,"hasHeartButton",void 0);_.t([_.r({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Hn.prototype,"showOnlyHeader",void 0);
_.t([_.r({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Hn.prototype,"showFooterDivider",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Object)],Hn.prototype,"allowAnimations",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Hn.prototype,"dashboardMoneyFeed",void 0);_.t([_.r({computed:"computeNoveltyImage(data)"}),_.O("design:type",Number)],Hn.prototype,"noveltyWidth",void 0);
_.t([_.r({computed:"computeAuthorPhotoSize(data)"}),_.O("design:type",Number)],Hn.prototype,"authorPhotoSize",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Hn.prototype,"modern",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Hn.prototype,"noPadding",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Hn.prototype,"dataChanged",null);
_.t([_.CK("data.message"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Hn.prototype,"messageChanged",null);_.t([_.I("data","dashboardMoneyFeed"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Hn.prototype,"hideLowerBumper",null);_.t([_.CK("isDeleted"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Hn.prototype,"isDeletedChanged",null);
_.t([_.Z({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],Hn);
_.T(Hn,"yt-live-chat-paid-message-renderer",function(){if(yiX===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_renderer.yt.live.chat.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="header" class="style-scope yt-live-chat-paid-message-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="author-photo" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n    </template>\n    <template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-message-renderer">\n      </yt-img-shadow>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="single-line" class="style-scope yt-live-chat-paid-message-renderer">\n          <div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-live-chat-author-chip>\n          </div>\n          <div id="leaderboard-badge" class="leaderboard-badge style-scope yt-live-chat-paid-message-renderer"></div>\n          <div id="purchase-amount-column" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-img-shadow id="currency-img" height="16" hidden$="[[!data.currencyImage.thumbnailDetails]]" thumbnail="[[data.currencyImage.thumbnailDetails]]" width="16" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-img-shadow>\n            <div id="purchase-amount" class="style-scope yt-live-chat-paid-message-renderer">\n              <yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n            </div>\n          </div>\n        </div>\n      </div>\n      <span id="timestamp" class="style-scope yt-live-chat-paid-message-renderer">[[timestampString]]</span>\n      <div id="gradient-container" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="gradient" class="style-scope yt-live-chat-paid-message-renderer"></div>\n      </div>\n      <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-message-renderer">\n          <yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="creator-heart-button" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-paid-message-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-paid-message-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" message-input="[[messageInput]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-paid-message-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n    <div id="footer" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="action-buttons" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="like-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="reply-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="buy-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="lower-buy-button" hidden$="[[!data.buyButton]]" on-click="onLowerBuyButtonClick" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-paid-message-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;EjB===void 0&&(EjB=document.createElement("template"));var c=EjB;K.call(H,c.content.cloneNode(!0),d.content.firstChild);yiX=d}d=yiX;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var FA3;var ZD6;var $X=function(){var d=_.hB.apply(this,arguments)||this;d._noAccessors=!0;return d};
_.m($X,_.hB);$X.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Fm("openPopupConfig")};
_.t([_.u(_.Rm.YtOpenPopupBehavior),_.O("design:type",Object)],$X.prototype,"ytOpenPopupBehavior",void 0);_.t([_.LK()],$X);_.Ke=[_.Rm.YtOpenPopupBehavior,$X.prototype];var TZl;var f7=[_.Lm,GwS,_.sV,_.Mv,_.AP,_.rv7,_.P5,_.YVg,_.Ww,TGM];_.h("web_watch_get_updated_metadata_response_processing")&&f7.push(_.gR3);_.h("web_continuation_response_processing")&&f7.push(_.YM);var aPC=new _.Av("RESPONSE_RECEIVED_COMMANDS"),JUX=new _.Av("RESPONSE_RECEIVED_COMMANDS");var uoF="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),PH4=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],w7h=["GET_UNSEEN_NOTIFICATION_COUNT"];var cn=function(){var d=_.hB.apply(this,arguments)||this;d._noAccessors=!0;d.serviceEndpointHandlers=[];return d};
_.m(cn,_.hB);cn.prototype.created=function(){var d=this;this.endpointHandlerActionMap={"yt-service-request":function(H,K,c,p){var g;return mh5(d.hostElement,H,K,c,p,d.serviceEndpointHandlers,(g=d.onEntitiesUpdated)==null?void 0:g.bind(d))}}};
cn.prototype.attached=function(){_.Ne(_.bw.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
cn.prototype.detached=function(){_.Dz(_.bw.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.t([_.LK()],cn);_.QNC=[cn.prototype];var tdl,Y0S=function(){return tdl!==void 0?tdl:tdl=document.createElement("template")};
document.head.appendChild(Y0S().content);var ODM;var S03=document.head,EzN=S03.appendChild,yDX;if(ODM===void 0){var bDC=document.createElement("template");_.P(bDC,"\x3c!--css-build:shady--\x3e");bDC.content.insertBefore(Y0S().content.cloneNode(!0),bDC.content.firstChild);ODM=bDC}yDX=ODM;EzN.call(S03,yDX.content);var NZN,DL3=function(){return NZN!==void 0?NZN:NZN=document.createElement("template")};
document.head.appendChild(DL3().content);var fC3;var ADC=document.head,jNl=ADC.appendChild,vzM;if(fC3===void 0){var dIM=document.createElement("template");_.P(dIM,"\x3c!--css-build:shady--\x3e");dIM.content.insertBefore(DL3().content.cloneNode(!0),dIM.content.firstChild);fC3=dIM}vzM=fC3;jNl.call(ADC,vzM.content);var Hrl;_.XX("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.XX("sharingRendererButtons","buttonRenderer","ytd-button-renderer");Hrl=_.h("web_button_rework")&&_.Qx("BUTTON_REWORK")||_.h("web_button_rework_with_live");_.pe=function(){var d=_.B.apply(this,arguments)||this;d.isPressed=!1;d.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return d};
_.m(_.pe,_.B);_.G=_.pe.prototype;_.G.created=function(){this.showTooltips=!0};
_.G.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.G.onHintIdChanged=function(){var d=this,H,K,c=(H=this.ytButtonBehavior.data)==null?void 0:(K=H.hint)==null?void 0:K.hintRenderer;if(c&&c.hintId){H=_.qo(this.hostElement,"yt-get-opened-popups-action");H=(H&&H.length===1?H[0]:[]).length>0;var p=null;c.hintId!=="sponsor-pre-purchase"||H?c.hintId.startsWith("sponsor-post-purchase")&&!H?p=Lv6("membership-manage"):c.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!H&&(p=Lv6("membership-freebie-join")):p=Lv6("membership-join");p&&_.Xp.addLowPriorityJob(function(){for(var g=
_.q(p),a=g.next();!a.done;a=g.next())d.ytComponentBehavior.resolveCommand(a.value)})}};
_.G.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.G.onYtNavigate=function(d){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(d.detail.endpoint);H&&(d.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(H))};
_.G.onYtServiceRequestSent=function(d,H){this.handleServiceRequestActions(H);_.GT(this.hostElement,"yt-service-request-sent-button-renderer")};
_.G.onServiceRequestCompleted=function(d,H){this.handleServiceRequestActions(H);_.GT(this.hostElement,"yt-service-request-completed-button-renderer")};
_.G.updateButton=function(d){var H;if(d=(H=_.M(d,vJC))==null?void 0:H.updatedButton)this.ytButtonBehavior.data=_.M(d,_.Tz)};
_.G.handleUpdateButtonAction=function(d){var H=this.ytButtonBehavior.data;H.targetId&&d.updateButtonAction.targetId&&H.targetId===d.updateButtonAction.targetId&&this.updateButton(d)};
_.G.handleServiceRequestActions=function(d){if(d=d.actions)for(var H=0;H<d.length;H++)this.updateButton(d[H])};
_.H3.Object.defineProperties(_.pe,{template:{configurable:!0,enumerable:!0,get:function(){if(TZl===void 0){var d=document.createElement("template");_.P(d,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);TZl=d}d=TZl;return d}}});
_.pe.prototype.onServiceRequestCompleted=_.pe.prototype.onServiceRequestCompleted;_.pe.prototype.onYtServiceRequestSent=_.pe.prototype.onYtServiceRequestSent;_.pe.prototype.onYtNavigate=_.pe.prototype.onYtNavigate;_.pe.prototype.onPressedStateChanged=_.pe.prototype.onPressedStateChanged;_.pe.prototype.onHintIdChanged=_.pe.prototype.onHintIdChanged;_.t([_.r(),_.O("design:type",Object)],_.pe.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],_.pe.prototype,"isPressed",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],_.pe.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.qfg.YtButtonBehavior),_.O("design:type",Object)],_.pe.prototype,"ytButtonBehavior",void 0);_.t([_.u(_.Ke),_.O("design:type",Object)],_.pe.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],_.pe.prototype,"ytComponentBehavior",void 0);
_.t([_.u(uq.YtRenderButtonBehavior),_.O("design:type",Object)],_.pe.prototype,"ytRenderButtonBehavior",void 0);_.t([_.CK("data.hint.hintRenderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],_.pe.prototype,"onHintIdChanged",null);_.t([_.CK("isPressed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],_.pe.prototype,"onPressedStateChanged",null);
_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],_.pe.prototype,"onYtNavigate",null);_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],_.pe.prototype,"onYtServiceRequestSent",null);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],_.pe.prototype,"onServiceRequestCompleted",null);_.t([_.Z({is:"ytd-button-renderer",disableElementRegistration:Hrl})],_.pe);var g2=function(){var d=_.B.apply(this,arguments)||this;d.modern=_.h("web_button_rework_with_live");d.buttonOverrides={style:"overlay",type:"filled"};return d};
_.m(g2,_.B);_.G=g2.prototype;_.G.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-flow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}}}};
_.G.ready=function(){var d=document.querySelector("yt-live-chat-app");d&&d.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.G.dataChanged=function(){if(this.data&&this.data.sticker){var d=_.Gv(this.data.sticker.thumbnails,this.stickerWidth);d||_.YFl(d).thenCatch(function(){_.Jf(new _.m1("Failed to load Super Sticker with url",d))})}};
_.G.computeAuthorPhotoSize=function(d){return(d==null?0:d.isV2Style)?32:40};
_.G.computeIsV2Style=function(d){return(d==null?0:d.isV2Style)?!0:!1};
_.G.onStickerLoaded=function(d){var H,K,c;(H=_.v5(d))==null||(K=H.parentNode)==null||(c=K.classList)==null||c.add("sticker-loaded")};
_.G.computeNoveltyImageWidth=function(d){var H,K;if(d==null?0:(H=d.headerOverlayImage)==null?0:(K=H.thumbnails)==null?0:K.length){H=d.headerOverlayImage.thumbnails[0];var c,p;if((c=d.pdgPurchasedNoveltyLoggingDirectives)==null?0:(p=c.loggingDirectives)==null?0:p.trackingParams){var g,a;UIF((g=d.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(a=g.loggingDirectives)==null?void 0:a.trackingParams)}return H.width||0}return 0};
_.G.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.G.updateStickerStyles=function(){var d=this.data;d&&(d={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(d.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(d.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(d.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(d.authorNameTextColor)},
_.eO(this.hostElement,d))};
_.G.onBuyButtonClick=function(){var d,H=_.M((d=this.data)==null?void 0:d.buyButton,_.Tz);H&&!oeF(H.command)&&this.ytRendererBehavior.logExplicitClick(H)};
_.G.shouldSupportWholeItemClick=function(){return!0};
_.H3.Object.defineProperties(g2.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}},
hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?0:d.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
g2.prototype.updateStickerStyles=g2.prototype.updateStickerStyles;g2.prototype.isDeletedChanged=g2.prototype.isDeletedChanged;g2.prototype.onStickerLoaded=g2.prototype.onStickerLoaded;g2.prototype.dataChanged=g2.prototype.dataChanged;_.t([_.u(owl.YtPdgLiveChatItemBehavior),_.O("design:type",Object)],g2.prototype,"ytPdgLiveChatItemBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],g2.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],g2.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.NZ.YtLiveChatItemBehavior),_.O("design:type",_.Dj)],g2.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],g2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],g2.prototype,"data",void 0);
_.t([_.r({computed:"computeAuthorPhotoSize(data)"}),_.O("design:type",Number)],g2.prototype,"authorPhotoSize",void 0);_.t([_.r(),_.O("design:type",Boolean)],g2.prototype,"isDeleted",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],g2.prototype,"dashboardMoneyFeed",void 0);_.t([_.r({computed:"computeNoveltyImageWidth(data)"}),_.O("design:type",Number)],g2.prototype,"noveltyWidth",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],g2.prototype,"modern",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.O("design:type",Boolean)],g2.prototype,"isV2Style",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],g2.prototype,"dataChanged",null);_.t([_.nK("yt-img-shadow-loaded"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],g2.prototype,"onStickerLoaded",null);
_.t([_.I("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],g2.prototype,"stickerWidth",null);_.t([_.I("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],g2.prototype,"stickerHeight",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],g2.prototype,"hasHeartButton",null);_.t([_.I("data","dashboardMoneyFeed"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],g2.prototype,"hideLowerBumper",null);
_.t([_.CK("isDeleted"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],g2.prototype,"isDeletedChanged",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],g2.prototype,"updateStickerStyles",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],g2);
_.T(g2,"yt-live-chat-paid-sticker-renderer",function(){if(ZD6===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-sticker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_sticker_renderer.yt.live.chat.paid.sticker.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-info" tabindex="0" class="style-scope yt-live-chat-paid-sticker-renderer"><template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-paid-sticker-renderer" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]"></yt-img-shadow></template><template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></template><template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></template><div id="content" class="style-scope yt-live-chat-paid-sticker-renderer"><span id="timestamp" hidden$="[[!data.timestampUsec]]" class="style-scope yt-live-chat-paid-sticker-renderer">[[timestampString]]</span><div id="content-primary-column" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-live-chat-author-chip></div><span id="price-column" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-formatted-string id="purchase-amount-chip" text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string></span></div></div></div><div id="sticker-container" hidden$="[[!data.sticker]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="sticker" height="[[stickerHeight]]" hidden$="[[!data.sticker]]" notify-on-loaded="" tabindex="0" thumbnail="[[data.sticker]]" width="[[stickerWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></div><yt-formatted-string id="dashboard-deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></yt-icon-button></div><div id="gradient-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="gradient" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="creator-heart-button" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="buy-flow-button" hidden$="[[!data.buyButton]]" on-click="onBuyButtonClick" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="inline-action-button-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;FA3===void 0&&(FA3=document.createElement("template"));var c=FA3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);ZD6=d}d=ZD6;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var $I6;var KoS;var cpX,p83=function(){return cpX!==void 0?cpX:cpX=document.createElement("template")};
document.head.appendChild(p83().content);var gUA,irS=function(){return gUA!==void 0?gUA:gUA=document.createElement("template")};
document.head.appendChild(irS().content);var G20;var oUl,qBN=function(){return oUl!==void 0?oUl:oUl=document.createElement("template")};
document.head.appendChild(qBN().content);var alM;var llA=document.head,e43=llA.appendChild,k23;if(alM===void 0){var xIB=document.createElement("template");_.P(xIB,"\x3c!--css-build:shady--\x3e");xIB.content.insertBefore(qBN().content.cloneNode(!0),xIB.content.firstChild);alM=xIB}k23=alM;e43.call(llA,k23.content);var nU3=document.head,C20=nU3.appendChild,R4U;if(G20===void 0){var iF=document.createElement("template");_.P(iF,"\x3c!--css-build:shady--\x3e");iF.content.insertBefore(irS().content.cloneNode(!0),iF.content.firstChild);iF.content.insertBefore(p83().content.cloneNode(!0),iF.content.firstChild);G20=iF}R4U=G20;C20.call(nU3,R4U.content);var Gb=function(){var d=_.hB.apply(this,arguments)||this;d.focusedIndex=0;d.verticalOffset=0;d.verticalAlign="top";d.dynamicAlign=!0;return d};
_.m(Gb,_.hB);Gb.prototype.emojiUrl=function(d){d=_.Eq(this.emojiManager,d);if(!d)return"";var H;d=(H=d.image)==null?void 0:H.thumbnails;return _.Gv(d,24)||""};
var VjX=function(d){var H;d.emojiVariants&&(H=d.data)!=null&&H.target&&_.vV(d,function(){d.set("verticalOffset",-1*d.hostElement.clientHeight);var K=_.Gn(d.hostElement).querySelector("img");K&&K.focus()})};
_.G=Gb.prototype;_.G.onKeyboardEnter=function(){};
_.G.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.G.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.G.onKeyDown=function(d){switch(d.keyCode){case 13:this.onKeyboardEnter();d.preventDefault();break;case 40:this.changeFocus(1);d.preventDefault();break;case 38:this.changeFocus(-1);d.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.G.onYtEmojiSelect=function(d){var H=this,K,c,p,g,a,e,k,C;return _.l(function(R){if(R.nextAddress==1)return c=(K=H.data)==null?void 0:K.emoji,a=((p=c)==null?void 0:p.stickyPrefId)||((g=c)==null?void 0:g.emojiId),k=(e=d.detail)==null?void 0:e.emojiId,a&&k&&a!==k?R.yield((C=H.emojiManager)==null?void 0:mLd(C,c,k),2):R.return();_.oF(H.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[c,k]);_.VE(R)})};
_.G.changeFocus=function(d){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+d+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(d=_.Gn(this.hostElement).querySelector("#variants"))&&d.children[this.focusedIndex].focus())};
_.H3.Object.defineProperties(Gb.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Gb.prototype.onYtEmojiSelect=Gb.prototype.onYtEmojiSelect;Gb.prototype.onKeyDown=Gb.prototype.onKeyDown;Gb.prototype.onEmojiVariantsChanged=Gb.prototype.onEmojiVariantsChanged;Gb.prototype.onVerticalOffsetOrPositionTargetChanged=Gb.prototype.onVerticalOffsetOrPositionTargetChanged;_.t([_.u(_.Eh),_.O("design:type",Object)],Gb.prototype,"ironOverlayBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Gb.prototype,"data",void 0);_.t([_.r(),_.O("design:type",_.SP)],Gb.prototype,"emojiManager",void 0);
_.t([_.r(),_.O("design:type",Object)],Gb.prototype,"emojiVariants",void 0);_.t([_.r(),_.O("design:type",Object)],Gb.prototype,"focusedIndex",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Gb.prototype,"positionTarget",null);_.t([_.r({reflectToAttribute:!0}),_.I("verticalOffset","data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Gb.prototype,"isPositioned",null);_.t([_.r(),_.O("design:type",Object)],Gb.prototype,"verticalOffset",void 0);
_.t([_.r(),_.O("design:type",Object)],Gb.prototype,"verticalAlign",void 0);_.t([_.r(),_.O("design:type",Object)],Gb.prototype,"dynamicAlign",void 0);_.t([_.CK("verticalOffset","positionTarget"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Gb.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.t([_.CK("emojiVariants"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Gb.prototype,"onEmojiVariantsChanged",null);
_.t([_.nK("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[KeyboardEvent]),_.O("design:returntype")],Gb.prototype,"onKeyDown",null);_.t([_.nK("yt-emoji-select"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype",Promise)],Gb.prototype,"onYtEmojiSelect",null);_.t([_.LK()],Gb);var UIB=[Gb.prototype];var h4l;var Log;var MjB=/medium-light|medium-dark|light|medium|dark/,mI3=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,w8C=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),ox=function(){var d=_.B.apply(this,arguments)||this;d.userSelection={left:null,right:null};d.scrollAction="lock";d.isEmojiDraftInProgress=!1;return d};
_.m(ox,_.B);_.G=ox.prototype;_.G.onClick=function(d){d=_.v5(d);d instanceof HTMLImageElement&&this.selectOrUpdateEmoji(d)};
_.G.selectOrUpdateEmoji=function(d){var H=d.getAttribute("selection");H&&(H==="default"?_.GT(this.hostElement,"yt-emoji-select",_.Eq(this.emojiManager,d.id)):H==="left"?this.userSelection=Object.assign({},this.userSelection,{left:d.src}):H==="right"?this.userSelection=Object.assign({},this.userSelection,{right:d.src}):H==="user"&&this.userSelection.left&&this.userSelection.right&&_.GT(this.hostElement,"yt-emoji-select",_.Eq(this.emojiManager,d.id)))};
_.G.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.G.onMultiSelectorThumbnailRowChanged=function(){var d,H,K;((d=this.data)==null?0:(H=d.emoji)==null?0:(K=H.multiSelectorThumbnailRow)==null?0:K.length)&&this.openSelector()};
_.G.getThumbnailFromEmojiRow=function(d){var H,K;return(d==null?void 0:(H=d.thumbnails)==null?void 0:(K=H[0])==null?void 0:K.url)||""};
_.G.getEmojiAltTextForPartialSelector=function(d){var H;return((H=this.getThumbnailFromEmojiRow(d).match(mI3))==null?void 0:H[0])||""};
_.G.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.G.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.G.getRowSelection=function(d){return["left","right"][d]};
_.G.getIdFromComposedEmoji=function(d){return(d==null?void 0:d.emojiId)||""};
_.G.getEmojiFromPartialSelections=function(d,H){if(!d&&!H)return null;var K,c,p=(K=this.data)==null?void 0:(c=K.emoji)==null?void 0:c.variantIds;if(!p||!p.length)return null;var g;d=(g=d.match(MjB))==null?void 0:g[0];var a;H=(a=H.match(MjB))==null?void 0:a[0];if(!d||!H)return null;var e=w8C.get(d);a=w8C.get(H);if(e===a){a=Array.from(w8C.values()).filter(function(C){return C!==e}).join("|");
var k=new RegExp("^((?!("+a+")).)*"+e+"$")}else k=new RegExp(e+".*"+a);return(p=p.find(function(C){return k.test(C)}))&&_.Eq(this.emojiManager,p)||null};
_.G.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var d,H=this.ytEmojiSelectorBehavior.emojiUrl(((d=this.data.emoji)==null?void 0:d.emojiId)||"");_.Gn(this.hostElement).querySelector('[selection="user"]').src.includes(H)||(this.isEmojiDraftInProgress=!0)}};
_.G.onDomChange=function(){VjX(this.ytEmojiSelectorBehavior)};
_.G.getFocusableElements=function(){return _.Gn(this.hostElement).querySelectorAll("img").filter(function(d){return d.getAttribute("role")==="option"})};
_.G.changeFocus=function(d){var H=this.getFocusableElements();H!=null&&H.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+d+H.length)%H.length,this.ytEmojiSelectorBehavior.focusedIndex<H.length&&(d=H[this.ytEmojiSelectorBehavior.focusedIndex])&&d.focus())};
_.G.onKeyboardEnter=function(){var d=this.getFocusableElements();d!=null&&d.length&&(d=d[this.ytEmojiSelectorBehavior.focusedIndex])&&d instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(d),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.H3.Object.defineProperties(ox.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var d=this,H,K,c;return this.emojiManager&&((H=this.data)==null?0:(K=H.emoji)==null?0:(c=K.variantIds)==null?0:c.length)?this.data.emoji.variantIds.map(function(p){return!!p&&_.Eq(d.emojiManager,p)}).filter(function(p){return!!p}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var d,H=(d=this.userSelection)==null?void 0:d.left,K;d=(K=this.userSelection)==null?void 0:K.right;return H&&d?this.getEmojiFromPartialSelections(H,d):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.composedEmojiSelection)==null?0:d.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var H;d=(H=this.userSelection)==null?void 0:H.left;var K;H=(K=this.userSelection)==null?void 0:K.right;if(!d&&!H){var c;return this.ytEmojiSelectorBehavior.emojiUrl(((c=this.data.emoji)==null?void 0:c.emojiId)||"")}return d&&!H?d:!d&&H?H:""}}});
ox.prototype.onMultiSelectorThumbnailRowChanged=ox.prototype.onMultiSelectorThumbnailRowChanged;ox.prototype.onClick=ox.prototype.onClick;_.t([_.u(_.Eh),_.O("design:type",Object)],ox.prototype,"ironOverlayBehavior",void 0);_.t([_.u(UIB),_.O("design:type",Object)],ox.prototype,"ytEmojiSelectorBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ox.prototype,"data",void 0);_.t([_.r(),_.O("design:type",_.SP)],ox.prototype,"emojiManager",void 0);
_.t([_.r(),_.O("design:type",Object)],ox.prototype,"userSelection",void 0);_.t([_.r(),_.O("design:type",Object)],ox.prototype,"scrollAction",void 0);_.t([_.r(),_.O("design:type",Object)],ox.prototype,"isEmojiDraftInProgress",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],ox.prototype,"emojiVariants",null);_.t([_.I("data","userSelection"),_.O("design:type",Object),_.O("design:paramtypes",[])],ox.prototype,"composedEmojiSelection",null);
_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[MouseEvent]),_.O("design:returntype")],ox.prototype,"onClick",null);_.t([_.CK("data.emoji.multiSelectorThumbnailRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ox.prototype,"onMultiSelectorThumbnailRowChanged",null);_.t([_.I("data","userSelection","composedEmojiSelection"),_.O("design:type",String),_.O("design:paramtypes",[])],ox.prototype,"draftEmojiUrl",null);
_.t([_.ZV({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],ox);
_.T(ox,"yt-emoji-multi-person-selector",function(){if(Log===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-multi-person-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_multi_person_selector.yt.emoji.multi.person.selector.css.js--\x3e<div id="options" class="style-scope yt-emoji-multi-person-selector">\n  <template is="dom-repeat" id="repeat" items="[[data.emoji.multiSelectorThumbnailRow]]" notify-dom-change="" as="row" index-as="rowIndex" on-dom-change="onDomChange" class="style-scope yt-emoji-multi-person-selector">\n    <div class="variant-thumbnail-row style-scope yt-emoji-multi-person-selector">\n      <template is="dom-repeat" id="thumbnail-row-repeat" items="[[row.thumbnails]]" as="thumbnail" class="style-scope yt-emoji-multi-person-selector">\n        \n        <img height="24" role="option" alt="[[getEmojiAltTextForPartialSelector(thumbnail)]]" src$="[[getThumbnailFromEmojiRow(thumbnail)]]" tabindex="-1" width="24" selection$="[[getRowSelection(rowIndex)]]" class="style-scope yt-emoji-multi-person-selector">\n      </template>\n    </div>\n  </template>\n</div>\n<div id="selections" class="style-scope yt-emoji-multi-person-selector">\n\n  <img id="[[data.emoji.emojiId]]" class="default-selection style-scope yt-emoji-multi-person-selector" alt="[[data.emoji.emojiId]]" height="36" role="option" src$="[[emojiUrl(data.emoji.emojiId)]]" tabindex="-1" width="36" selection="default">\n  <img id$="[[getIdFromComposedEmoji(composedEmojiSelection)]]" class="user-selection style-scope yt-emoji-multi-person-selector" is-draft$="[[isEmojiDraftInProgress]]" alt="[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]" height="36" role$="[[getDraftEmojiAriaRole(composedEmojiSelection)]]" src$="[[draftEmojiUrl]]" selection="user" tabindex="-1" width="36" on-load="onUserSelectionSrcLoad">\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;h4l===void 0&&(h4l=document.createElement("template"));var c=h4l;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Log=d}d=Log;return d},{mode:2});var P2X;var uf6;var qT=function(){var d=_.B.apply(this,arguments)||this;d.tooltip_=null;return d};
_.m(qT,_.B);_.G=qT.prototype;_.G.dataChanged_=function(){var d;if((d=this.data)==null?0:d.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Gn(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.ls)(this.tooltip_).textContent=this.data.tooltip};
_.G.computeTargetId=function(){var d;return((d=this.data)==null?void 0:d.targetId)||""};
_.G.computeId_=function(d){return d};
_.G.computeIcon_=function(d){return _.kv(d)};
_.G.onTap_=function(){this.active=!this.active;_.GT(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.G.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("active-changed",this.active))};
_.H3.Object.defineProperties(qT.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var d,H;if((d=this.data)==null?0:(H=d.icon)==null?0:H.iconType)return this.data.icon.iconType==="SUPER_STICKER";var K,c;return((K=this.data)==null?void 0:(c=K.icon)==null?void 0:c.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
qT.prototype.activeChangedForBinding=qT.prototype.activeChangedForBinding;qT.prototype.dataChanged_=qT.prototype.dataChanged_;_.t([_.u(_.Os.YtLiveChatTooltipTargetingBehavior),_.O("design:type",Object)],qT.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],qT.prototype,"data",void 0);_.t([_.r({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.O("design:type",String)],qT.prototype,"id",void 0);
_.t([_.r({computed:"computeTargetId(data.targetId)"}),_.O("design:type",String)],qT.prototype,"targetId",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],qT.prototype,"active",void 0);_.t([_.r({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.O("design:type",String)],qT.prototype,"icon",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qT.prototype,"dataChanged_",null);
_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],qT.prototype,"iconFilled",null);_.t([_.CK("active"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qT.prototype,"activeChangedForBinding",null);_.t([_.ZV({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],qT);
_.T(qT,"yt-emoji-picker-category-button-renderer",function(){if(uf6===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_button_renderer.yt.emoji.picker.category.button.renderer.css.js--\x3e<yt-icon-button id="button" label="[[data.accessibility.accessibilityData.label]]" on-tap="onTap_" class="style-scope yt-emoji-picker-category-button-renderer">\n  <yt-icon default-to-filled="[[iconFilled]]" icon="[[icon]]" class="style-scope yt-emoji-picker-category-button-renderer"></yt-icon>\n</yt-icon-button>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;P2X===void 0&&(P2X=document.createElement("template"));var c=P2X;K.call(H,c.content.cloneNode(!0),d.content.firstChild);uf6=d}d=uf6;return d},{mode:2});var Ill;var rpX;var ax=function(){var d=_.B.apply(this,arguments)||this;d.ariaLabel=null;d.ariaActivedescendant=null;d.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};d.JSC$14109_ignoreNextFocus_=!1;d.longPressTimeoutId=-1;return d};
_.m(ax,_.B);_.G=ax.prototype;_.G.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.G.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.G.emojiChanged_=function(){this.changeFocus_(0,!1);for(var d=_.hR(),H=0;H<this.emoji.length;H++){var K={veType:88013,elementIndex:H},c=this.emoji[H];c.isCustomEmoji&&(c=document.querySelector(("#"+c.emojiId).replace("/","\\/")))&&(K=_.UG(d,K))&&(c.visualElement=K)}};
_.G.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.G.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.G.emojiSkinToneChanged_=function(d){this.skinTone=d};
_.G.dataChanged=function(){this.data&&this.data.emojiData&&ULd(this.emojiManager,this.data.emojiData)};
_.G.emojiUrl=function(d){d=this.getEmoji(d);if(!d)return"";var H;d=(H=d.image)==null?void 0:H.thumbnails;return _.Gv(d,24)||""};
_.G.emojiAlt=function(d){var H=this.get("image.accessibility.accessibilityData.label",d);return H?H:d.isCustomEmoji?d.shortcuts[0]:d.emojiId};
_.G.emojiAriaLabel=function(d){return d.shortcuts?d.shortcuts[0]:""};
_.G.emojiAriaSelected=function(d,H,K){return d&&K==H?"true":"false"};
_.G.getEmoji=function(d){if(this.emojiManager)return this.shouldUseStickyPreferences?LAB(this.emojiManager,d):yV(this.emojiManager,d)};
_.G.computeId_=function(d){return d.categoryId||""};
_.G.computeEmoji=function(d){var H=this;return this.emojiManager?d.emojiIds?d.emojiIds.map(function(K){return K?_.Eq(H.emojiManager,K):null}).filter(O94):d.emojiData?d.emojiData.map(function(K){var c=!!K.emojiId&&_.Eq(H.emojiManager,K.emojiId);
return c?Object.assign({},c,K):null}).filter(O94):[]:[]};
_.G.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.G.computeAriaLabel_=function(d){return _.jG(d)};
_.G.computeAriaActivedescendant_=function(d,H){return d&&d[H]?d[H].emojiId||"":""};
_.G.handleLongPressEmojiWithVariants=function(d,H){this.changeFocusToEmoji(d.emojiId,!1);this.openVariantSelector(d,H)};
_.G.onMouseDown=function(d){var H=this;this.hostElement!==document.activeElement&&(this.JSC$14109_ignoreNextFocus_=!0);if(d.button===0){var K=_.v5(d);if(K instanceof HTMLImageElement){var c=_.Gn(this.hostElement).querySelector("#repeat").itemForElement(K);this.emojiContainsVariants(c)&&(this.longPressTimeoutId=setTimeout(function(){H.handleLongPressEmojiWithVariants(c,K)},500))}}};
_.G.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.G.onFocus=function(){this.JSC$14109_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14109_ignoreNextFocus_=!1};
_.G.onBlur_=function(){this.showFocus=!1};
_.G.emojiContainsVariants=function(d){return!!(d&&d.variantIds&&d.variantIds.length)};
_.G.onClick=function(d){clearTimeout(this.longPressTimeoutId);d=_.v5(d);if(d instanceof HTMLImageElement){var H=d.id;this.changeFocusToEmoji(H,!1);var K=this.getEmoji(H),c;if(c=this.shouldUseStickyPreferences&&this.emojiContainsVariants(K)){var p;c=!((p=this.emojiManager.emojiMap[H])!=null&&p.stickyPrefId)}c?(p=_.Gn(this.hostElement).querySelector("#repeat").itemForElement(d),this.openVariantSelector(p,d)):_.GT(this.hostElement,"yt-emoji-select",K)}};
_.G.isActiveEmojiWithVariants=function(d,H){return d&&H?H.stickyPrefId?d===H.stickyPrefId:d===H.emojiId:!1};
_.G.onCloseEmojiVariantSelector=function(d){this.activeEmojiWithVariantsId===d&&(this.activeEmojiWithVariantsId="")};
_.G.onMouseOver_=function(d){d=_.v5(d);d instanceof HTMLImageElement&&_.GT(this.hostElement,"yt-emoji-hover",_.Eq(this.emojiManager,d.id))};
_.G.changeFocus_=function(d,H){this.focusedIndex=(this.focusedIndex+d+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(d=this.emoji[this.focusedIndex],H&&(this.showFocus=!0,_.Gn(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.GT(this.hostElement,"yt-emoji-hover",d)))};
_.G.changeFocusToEmoji=function(d,H){if(d){var K=this.emoji.findIndex(function(c){return c.emojiId===d});
K!==-1&&this.changeFocus_(K-this.focusedIndex,H)}};
_.G.onKeyDown_=function(d){switch(d.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var H=this.emoji[this.focusedIndex];if(H&&H.emojiId){if(this.emojiContainsVariants(H)){var K=_.Gn(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(H,K)}else _.GT(this.hostElement,"yt-emoji-select",yV(this.emojiManager,H.emojiId)),this.hostElement.focus();d.preventDefault()}}break;case 40:this.changeFocus_(1,!0);d.preventDefault();break;case 38:this.changeFocus_(-1,!0),
d.preventDefault()}};
_.G.onEmojiStickyPreferenceChanged=function(d,H){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&d.emojiId&&d.variantIds&&d.variantIds.includes(H)&&this.activeEmojiWithVariantsId!==H&&this.setStickyEmojiPreference(d.emojiId,H)};
_.G.openVariantSelector=function(d,H){this.activeEmojiWithVariantsId=d.stickyPrefId||d.emojiId||"";_.GT(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:d,target:H})};
_.G.setStickyEmojiPreference=function(d,H){if(this.data){var K=this.emoji.findIndex(function(p){return p.emojiId===d});
if(K!==-1){var c=this.emoji[K];c.stickyPrefId=H;this.set("emoji."+K,Object.assign({},c));this.activeEmojiWithVariantsId=H}}};
ax.prototype.onKeyDown_=ax.prototype.onKeyDown_;ax.prototype.onMouseOver_=ax.prototype.onMouseOver_;ax.prototype.onClick=ax.prototype.onClick;ax.prototype.onBlur_=ax.prototype.onBlur_;ax.prototype.onFocus=ax.prototype.onFocus;ax.prototype.onMouseUp=ax.prototype.onMouseUp;ax.prototype.onMouseDown=ax.prototype.onMouseDown;ax.prototype.dataChanged=ax.prototype.dataChanged;ax.prototype.disableIncrementalLoadingChanged_=ax.prototype.disableIncrementalLoadingChanged_;ax.prototype.emojiManagerChanged_=ax.prototype.emojiManagerChanged_;
ax.prototype.emojiChanged_=ax.prototype.emojiChanged_;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],ax.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ax.prototype,"data",void 0);_.t([_.r({computed:"computeId_(data)"}),_.O("design:type",String)],ax.prototype,"id",void 0);_.t([_.r({computed:"computeEmoji(data)"}),_.O("design:type",Array)],ax.prototype,"emoji",void 0);_.t([_.r(),_.O("design:type",Number)],ax.prototype,"skinTone",void 0);
_.t([_.r(),_.O("design:type",_.SP)],ax.prototype,"emojiManager",void 0);_.t([_.r(),_.O("design:type",Boolean)],ax.prototype,"disableIncrementalLoading",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],ax.prototype,"focusedIndex",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],ax.prototype,"showFocus",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.O("design:type",Object)],ax.prototype,"ariaLabel",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.O("design:type",Object)],ax.prototype,"ariaActivedescendant",void 0);_.t([_.r({value:60}),_.O("design:type",Number)],ax.prototype,"domRepeatTargetFramerate",void 0);_.t([_.r({value:1}),_.O("design:type",Number)],ax.prototype,"domRepeatInitialCount",void 0);_.t([_.r({value:""}),_.O("design:type",String)],ax.prototype,"activeEmojiWithVariantsId",void 0);
_.t([_.r({value:!1}),_.O("design:type",Boolean)],ax.prototype,"shouldUseStickyPreferences",void 0);_.t([_.CK("emoji"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ax.prototype,"emojiChanged_",null);_.t([_.CK("emojiManager"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ax.prototype,"emojiManagerChanged_",null);
_.t([_.CK("disableIncrementalLoading"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ax.prototype,"disableIncrementalLoadingChanged_",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ax.prototype,"dataChanged",null);_.t([_.nK("mousedown"),_.O("design:type",Function),_.O("design:paramtypes",[Object]),_.O("design:returntype")],ax.prototype,"onMouseDown",null);
_.t([_.nK("mouseup"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ax.prototype,"onMouseUp",null);_.t([_.nK("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ax.prototype,"onFocus",null);_.t([_.nK("blur"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ax.prototype,"onBlur_",null);
_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],ax.prototype,"onClick",null);_.t([_.nK("mouseover"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],ax.prototype,"onMouseOver_",null);_.t([_.nK("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],ax.prototype,"onKeyDown_",null);
_.t([_.ZV({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],ax);
_.T(ax,"yt-emoji-picker-category-renderer",function(){if(rpX===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_renderer.yt.emoji.picker.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-category-renderer"></yt-formatted-string><div class$="[[data.categoryType]] style-scope yt-emoji-picker-category-renderer" id="emoji" role="listbox" aria-label="[[computeAriaLabel_(data.title)]]"><template is="dom-repeat" id="repeat" items="[[emoji]]" initial-count="[[domRepeatInitialCount]]" target-framerate="[[domRepeatTargetFramerate]]" class="style-scope yt-emoji-picker-category-renderer"><img id="[[item.emojiId]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" contains-variants$="[[emojiContainsVariants(item)]]" height="24" is-active-emoji-with-variants$="[[isActiveEmojiWithVariants(activeEmojiWithVariantsId, item)]]" loading$="[[emojiLoading()]]" role="option" src$="[[emojiUrl(item.emojiId, skinTone)]]" width="24" class="style-scope yt-emoji-picker-category-renderer"></template></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;Ill===void 0&&(Ill=document.createElement("template"));var c=Ill;K.call(H,c.content.cloneNode(!0),d.content.firstChild);rpX=d}d=rpX;return d},{mode:2});var Wo7;var BRU;var z43;var X8d;var lF=function(){var d=_.B.apply(this,arguments)||this;d.ariaLabel=null;d.ariaActivedescendant=null;d.getFormattedStringRawText=_.jG;d.JSC$14115_ignoreNextFocus_=!1;return d};
_.m(lF,_.B);_.G=lF.prototype;_.G.attached=function(){this.hostElement.hasAttribute("aria-live")||this.hostElement.setAttribute("aria-live","polite");this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.G.emojiUrl=function(d){var H,K;d=(H=yV(this.emojiManager,d,!0))==null?void 0:(K=H.image)==null?void 0:K.thumbnails;return _.Gv(d,24)||""};
_.G.emojiAlt=function(d){var H=this.get("image.accessibility.accessibilityData.label",d);return H?H:d.isCustomEmoji?d.shortcuts[0]:d.emojiId};
_.G.emojiId=function(d){return"emoji"+d};
_.G.computeId_=function(d){return d.categoryId||""};
_.G.computeAriaActivedescendant_=function(d){return this.emoji&&d<this.emoji.length?this.emojiId(d):""};
_.G.emojiChanged_=function(){this.changeFocus_(0,!1);for(var d=_.hR(),H=0;H<this.emoji.length;H++){var K={veType:88013,elementIndex:H},c=this.emoji[H];c.isCustomEmoji&&(c=document.querySelector(("#"+c.emojiId).replace("/","\\/")))&&(K=_.UG(d,K))&&(c.visualElement=K)}};
_.G.computeEmoji_=function(d){var H=this;return this.emojiManager?d.emojiIds.map(function(K){return _.Eq(H.emojiManager,K,!0)}).filter(SFD):[]};
_.G.titleOffsetChanged_=function(){var d=this.hostElement.getBoundingClientRect(),H=_.Gn(this.hostElement).querySelector("#title").getBoundingClientRect();d=Math.max(0,Math.min(this.titleOffset,d.height-H.height));_.Gn(this.hostElement).querySelector("#title").style.top=d+"px"};
_.G.onEmojiMouseOver_=function(d){_.GT(this.hostElement,"yt-emoji-hover",d.model.item)};
_.G.onEmojiTap_=function(d){this.data.command&&(d=Il4(_.Kj().resolve(_.$p(ED)),this.data.command,d),_.GT(this.hostElement,"yt-navigate",d))};
_.G.emojiAriaLabel=function(d){return d.shortcuts[0]};
_.G.emojiAriaSelected=function(d,H,K){return d&&K==H?"true":"false"};
_.G.changeFocus_=function(d,H){var K=this.emoji.length;this.focusedIndex=(this.focusedIndex+d+K)%K;d=this.emoji[this.focusedIndex];if(H){var c;(c=_.Gn(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||c.scrollIntoView(!1);_.GT(this.hostElement,"yt-emoji-hover",d)}};
_.G.onMouseDown_=function(){this.JSC$14115_ignoreNextFocus_=!0};
_.G.onFocus_=function(){this.JSC$14115_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14115_ignoreNextFocus_=!1};
_.G.onBlur_=function(){this.showFocus=!1};
_.G.onKeyDown_=function(d){switch(d.keyCode){case 13:this.onEmojiTap_(d);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);d.preventDefault();break;case 38:this.changeFocus_(-1,!0),d.preventDefault()}};
lF.prototype.onKeyDown_=lF.prototype.onKeyDown_;lF.prototype.onBlur_=lF.prototype.onBlur_;lF.prototype.onFocus_=lF.prototype.onFocus_;lF.prototype.onMouseDown_=lF.prototype.onMouseDown_;lF.prototype.onEmojiTap_=lF.prototype.onEmojiTap_;lF.prototype.titleOffsetChanged_=lF.prototype.titleOffsetChanged_;lF.prototype.emojiChanged_=lF.prototype.emojiChanged_;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],lF.prototype,"ytComponentBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],lF.prototype,"data",void 0);_.t([_.r({computed:"computeId_(data)"}),_.O("design:type",String)],lF.prototype,"id",void 0);_.t([_.r({computed:"computeEmoji_(data)"}),_.O("design:type",Array)],lF.prototype,"emoji",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],lF.prototype,"titleOffset",void 0);_.t([_.r({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.O("design:type",Object)],lF.prototype,"ariaLabel",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.O("design:type",Object)],lF.prototype,"ariaActivedescendant",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],lF.prototype,"showFocus",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],lF.prototype,"focusedIndex",void 0);_.t([_.r(),_.O("design:type",_.SP)],lF.prototype,"emojiManager",void 0);
_.t([_.CK("emoji"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lF.prototype,"emojiChanged_",null);_.t([_.CK("titleOffset"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lF.prototype,"titleOffsetChanged_",null);_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],lF.prototype,"onEmojiTap_",null);
_.t([_.nK("mousedown"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lF.prototype,"onMouseDown_",null);_.t([_.nK("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lF.prototype,"onFocus_",null);_.t([_.nK("blur"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lF.prototype,"onBlur_",null);
_.t([_.nK("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],lF.prototype,"onKeyDown_",null);_.t([_.ZV({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],lF);
_.T(lF,"yt-emoji-picker-upsell-category-renderer",function(){if(X8d===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-upsell-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_upsell_category_renderer.yt.emoji.picker.upsell.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-upsell-category-renderer"></yt-formatted-string><div id="emoji" class="style-scope yt-emoji-picker-upsell-category-renderer"><template is="dom-repeat" id="repeat" items="[[emoji]]" class="style-scope yt-emoji-picker-upsell-category-renderer"><div class="style-scope yt-emoji-picker-upsell-category-renderer"><img id="[[emojiId(index)]]" on-mouseover="onEmojiMouseOver_" shared-tooltip-text$="[[data.emojiTooltip]]" src$="[[emojiUrl(item.emojiId)]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" role="option" class="style-scope yt-emoji-picker-upsell-category-renderer"><svg viewBox="0 0 24 24" class="style-scope yt-emoji-picker-upsell-category-renderer"><path id="lock-border" d="M18.3809524 6.80952784c1.6455246.45922361 2.8571428 1.97242785 2.8571428 3.76190076v9.5238095C21.2380952 22.2474266 19.4855219 24 17.3333333 24H5.9047619C3.75257336 24 2 22.2474266 2 20.0952381v-9.5238095c0-1.78947291 1.21161828-3.30267715 2.85714286-3.76190076v-.04762308C4.85714286 3.02876383 7.88590669 0 11.6190476 0c3.7331409 0 6.7619048 3.02876383 6.7619048 6.76190476v.04762308z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path><path d="M17.3333333 8.66666667c1.0476191 0 1.9047619.85714285 1.9047619 1.90476193v9.5238095c0 1.047619-.8571428 1.9047619-1.9047619 1.9047619H5.9047619C4.85714286 22 4 21.1428571 4 20.0952381v-9.5238095c0-1.04761908.85714286-1.90476193 1.9047619-1.90476193h.95238096V6.76190476C6.85714286 4.13333333 8.99047619 2 11.6190476 2c2.6285714 0 4.7619048 2.13333333 4.7619048 4.76190476v1.90476191h.9523809zm-5.7142857 8.57142853c1.0476191 0 1.9047619-.8571428 1.9047619-1.9047619 0-1.047619-.8571428-1.9047619-1.9047619-1.9047619-1.047619 0-1.90476189.8571429-1.90476189 1.9047619 0 1.0476191.85714289 1.9047619 1.90476189 1.9047619zm2.952381-8.57142853V6.76190476c0-1.62857143-1.3238096-2.95238095-2.952381-2.95238095-1.62857141 0-2.95238093 1.32380952-2.95238093 2.95238095v1.90476191h5.90476193z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path></svg></div></template></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;z43===void 0&&(z43=document.createElement("template"));var c=z43;K.call(H,c.content.cloneNode(!0),d.content.firstChild);X8d=d}d=X8d;return d},{mode:2});var JpS;var sO6;var ek=function(){var d=_.B.apply(this,arguments)||this;d.scrollAction="lock";d.verticalAlign="top";return d};
_.m(ek,_.B);_.G=ek.prototype;_.G.onClick=function(d){d=_.v5(d);d instanceof HTMLImageElement&&_.GT(this.hostElement,"yt-emoji-select",_.Eq(this.emojiManager,d.id))};
_.G.openSelector=function(){this.ironOverlayBehavior.open()};
_.G.onDomChange=function(){VjX(this.ytEmojiSelectorBehavior)};
_.G.computeIsFamilySelector=function(d){var H;return(d==null?void 0:(H=d.emoji)==null?void 0:H.emojiId)==="\ud83d\udc6a"};
_.G.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var d=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];d&&d.emojiId&&(_.GT(this.hostElement,"yt-emoji-select",_.Eq(this.emojiManager,d.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.H3.Object.defineProperties(ek.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var d=this,H,K,c;return this.emojiManager&&((H=this.data)==null?0:(K=H.emoji)==null?0:(c=K.variantIds)==null?0:c.length)?this.data.emoji.variantIds.map(function(p){return!!p&&_.Eq(d.emojiManager,p)}).filter(function(p){return!!p}):[]}}});
ek.prototype.onClick=ek.prototype.onClick;_.t([_.u(_.Eh),_.O("design:type",Object)],ek.prototype,"ironOverlayBehavior",void 0);_.t([_.u(UIB),_.O("design:type",Object)],ek.prototype,"ytEmojiSelectorBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ek.prototype,"data",void 0);_.t([_.r(),_.O("design:type",_.SP)],ek.prototype,"emojiManager",void 0);_.t([_.r(),_.O("design:type",Object)],ek.prototype,"scrollAction",void 0);_.t([_.r(),_.O("design:type",Object)],ek.prototype,"verticalAlign",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.O("design:type",Boolean)],ek.prototype,"isFamilySelector",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],ek.prototype,"emojiVariants",null);_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[MouseEvent]),_.O("design:returntype")],ek.prototype,"onClick",null);_.t([_.ZV({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],ek);
_.T(ek,"yt-emoji-variant-selector",function(){if(sO6===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-variant-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_variant_selector.yt.emoji.variant.selector.css.js--\x3e<div role="listbox" id="variants" class="style-scope yt-emoji-variant-selector">\n    <template is="dom-repeat" id="repeat" items="[[emojiVariants]]" notify-dom-change="" on-dom-change="onDomChange" class="style-scope yt-emoji-variant-selector">\n      \n      <img id="[[item.emojiId]]" alt="[[item.emojiId]]" height="24" role="option" tabindex="-1" src$="[[emojiUrl(item.emojiId)]]" width="24" class="style-scope yt-emoji-variant-selector">\n    </template>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;JpS===void 0&&(JpS=document.createElement("template"));var c=JpS;K.call(H,c.content.cloneNode(!0),d.content.firstChild);sO6=d}d=sO6;return d},{mode:2});var FoM=/:/g,Zrg=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],kX=function(){var d=_.B.apply(this,arguments)||this;d.emojiVariantSelector=null;d.emojiMultiPersonSelector=null;d.identity=_.JC;d.lastAnimationTime_=0;d.animationStart_=null;d.animationEnd_=null;return d};
_.m(kX,_.B);_.G=kX.prototype;
_.G.configureRendererStamper=function(){return{categories:{id:"categories",mapping:{emojiPickerCategoryRenderer:{component:"yt-emoji-picker-category-renderer",properties:{disableIncrementalLoading:"[[disableIncrementalLoading]]",emojiManager:"[[emojiManager]]",shouldUseStickyPreferences:"[[shouldUseStickyPreferences]]"}},emojiPickerUpsellCategoryRenderer:{component:"yt-emoji-picker-upsell-category-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},categoryButtons:{id:"category-buttons",mapping:{emojiPickerCategoryButtonRenderer:"yt-emoji-picker-category-button-renderer"}},
emojiVariantSelector:{id:"emoji-variant-selector",mapping:{ytEmojiVariantSelector:{component:"yt-emoji-variant-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1},emojiMultiPersonSelector:{id:"emoji-multi-person-selector",mapping:{ytEmojiMultiPersonSelector:{component:"yt-emoji-multi-person-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1}}};
_.G.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.bq)};
_.G.attached=function(){_.iv&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&hpg(this.emojiManager)};
_.G.dataChanged=function(){var d;if((d=this.data)==null?0:d.categories){d=this.emojiManager;var H=this.getCustomEmojiIds();d.pickerCustomEmojiIds=[].concat(_.ru(xLX),_.ru(H))}};
_.G.getCustomEmojiIds=function(){var d,H=(d=this.data.categories)==null?void 0:d.find(function(g){var a;return((a=g.emojiPickerCategoryRenderer)==null?void 0:a.categoryId)&&Zrg.includes(g.emojiPickerCategoryRenderer.categoryId)}),K;
d=(K=this.data.categories)==null?void 0:K.find(function(g){return g.emojiPickerUpsellCategoryRenderer});
var c,p;return[H==null?void 0:(c=H.emojiPickerCategoryRenderer)==null?void 0:c.emojiIds,d==null?void 0:(p=d.emojiPickerUpsellCategoryRenderer)==null?void 0:p.emojiIds].flat().filter(function(g){return!!g})};
_.G.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.G.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.G.updateCategoriesAndPlaceholderInternal=function(d,H){var K=this;d&&H&&(this.categories=d.categories||[],this.categoryButtons=d.categoryButtons||[],this.resetPlaceholder(),this.search="",_.EI(function(){K.updateButtons_()}))};
_.G.computeId_=function(d){return d.id||""};
_.G.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(d){return d.emojiPickerCategoryRenderer&&d.emojiPickerCategoryRenderer.emojiData}):!1};
_.G.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.G.onShowEmojiVariantSelector=function(d){var H=d.detail.emojiData;H.variantIds&&H.variantIds.length&&(H.multiSelectorThumbnailRow&&H.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:H,target:d.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:H,target:d.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.G.onIronOverlayClosed=function(d){var H=LAB(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");H&&d.composedPath&&(d.composedPath().includes(_.Gn(this.hostElement).querySelector("#emoji-variant-selector"))||d.composedPath().includes(_.Gn(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.oF(this.hostElement,"yt-close-emoji-variant-selector",[H.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.G.onEmojiVariantSelectorMouseup=function(d){var H=d.target.firstChild;this.variantSelectorOpened&&H&&_.EI(function(){H.noCancelOnOutsideClick=!1},100)};
_.G.onEmojiVariantSelectorMousedown=function(d){d=d.target.firstChild;this.variantSelectorOpened&&d&&(d.noCancelOnOutsideClick=!1)};
_.G.onSelectCategory_=function(d){var H=this.search!="";this.search="";for(var K=_.Gn(this.hostElement).querySelector("#categories").children,c=0;c<K.length;c++){var p=K[c];if(p.id==d.detail.categoryId){H?(_.Gn(this.hostElement).querySelector("#categories").scrollTop=p.offsetTop,this.updateButtons_()):(this.animationStart_=_.Gn(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=p.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.G.onEmojiHover_=function(d){this.placeholder=d.detail.shortcuts?d.detail.shortcuts[0]:""};
_.G.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.G.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.G.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.G.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.G.computeSearchCategory_=function(d){d=d.replace(FoM,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();d=d.split(" ");for(var H=[],K=this.emojiManager.emojis,c=0;c<K.length;c++){var p=K[c];if(p.searchTerms)for(var g=0;g<p.searchTerms.length;g++){for(var a=p.searchTerms[g].toLocaleLowerCase(),e=!1,k=0;k<d.length;k++)if(a.indexOf(d[k])!=-1){e=!0;break}if(e&&(!p.isCustomEmoji||!p.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(p.emojiId))){H.push(p.emojiId);
break}}}return{categoryId:-1,emojiIds:H}};
_.G.computeSearchEmptyMessage_=function(d,H){return d&&H&&H.emojiIds&&H.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.G.computeSearching_=function(d){return this.emojiManager&&d.replace(FoM,"").length>1};
_.G.computeSkinToneHidden=function(){var d;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((d=this.data)==null||!d.hideSkinTonePicker)};
_.G.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.G.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.G.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.G.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.G.selectSkinTone_=function(d){d=Number(d.target.getAttribute("tone"));this.set("emojiManager.skinTone",d);_.oF(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[d]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.G.skinToneChanged_=function(){_.Gn(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var d=_.Gn(this.hostElement).querySelector("#dropdown-content").children,H=0;H<d.length;H++)H===this.skinTone?d[H].setAttribute("selected",""):d[H].removeAttribute("selected")};
_.G.animateScroll_=function(d){this.lastAnimationTime_||(this.lastAnimationTime_=d);d-=this.lastAnimationTime_;d<200?(_.Gn(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*d/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Gn(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.G.searchChanged_=function(){this.updateButtons_()};
_.G.updateButtons_=function(){var d=null;if(!this.search)for(var H=_.Gn(this.hostElement).querySelector("#categories").scrollTop,K=_.Gn(this.hostElement).querySelector("#categories").children,c=0;c<K.length;c++){var p=K[c];p.offsetTop<=H&&(d=p.id)}H=_.Gn(this.hostElement).querySelector("#category-buttons").children;for(K=0;K<H.length;K++)c=H[K],c.active=c.id===d};
kX.prototype.searchChanged_=kX.prototype.searchChanged_;kX.prototype.skinToneChanged_=kX.prototype.skinToneChanged_;kX.prototype.onEmojiHover_=kX.prototype.onEmojiHover_;kX.prototype.onSelectCategory_=kX.prototype.onSelectCategory_;kX.prototype.onShowEmojiVariantSelector=kX.prototype.onShowEmojiVariantSelector;kX.prototype.updateCategoriesAndPlaceholder_=kX.prototype.updateCategoriesAndPlaceholder_;kX.prototype.dataChanged=kX.prototype.dataChanged;
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],kX.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],kX.prototype,"data",void 0);_.t([_.r({value:function(){return[]}}),
_.O("design:type",Array)],kX.prototype,"categories",void 0);_.t([_.r({value:function(){return[]}}),
_.O("design:type",Array)],kX.prototype,"categoryButtons",void 0);_.t([_.r({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.O("design:type",Boolean)],kX.prototype,"disableScroll",void 0);_.t([_.r({computed:"computeId_(data)",reflectToAttribute:!0}),_.O("design:type",String)],kX.prototype,"id",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],kX.prototype,"selected",void 0);
_.t([_.r({value:!1}),_.O("design:type",Boolean)],kX.prototype,"disableIncrementalLoading",void 0);_.t([_.r(),_.O("design:type",String)],kX.prototype,"placeholder",void 0);_.t([_.r({value:""}),_.O("design:type",String)],kX.prototype,"search",void 0);_.t([_.r({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.O("design:type",Boolean)],kX.prototype,"searching",void 0);_.t([_.r({computed:"computeSearchCategory_(search)"}),_.O("design:type",Object)],kX.prototype,"searchCategory",void 0);
_.t([_.r({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.O("design:type",Object)],kX.prototype,"searchEmptyMessage",void 0);_.t([_.r({computed:"identity(emojiManager.skinTone)"}),_.O("design:type",Number)],kX.prototype,"skinTone",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],kX.prototype,"skinToneOpened",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],kX.prototype,"variantSelectorOpened",void 0);
_.t([_.r({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.O("design:type",Boolean)],kX.prototype,"skinToneHidden",void 0);_.t([_.r(),_.O("design:type",_.SP)],kX.prototype,"emojiManager",void 0);_.t([_.r(),_.O("design:type",Object)],kX.prototype,"emojiVariantSelector",void 0);_.t([_.r(),_.O("design:type",Object)],kX.prototype,"emojiMultiPersonSelector",void 0);
_.t([_.r({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.O("design:type",Boolean)],kX.prototype,"shouldUseStickyPreferences",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kX.prototype,"dataChanged",null);_.t([_.CK("data","selected"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kX.prototype,"updateCategoriesAndPlaceholder_",null);
_.t([_.nK("yt-show-emoji-variant-selector"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],kX.prototype,"onShowEmojiVariantSelector",null);_.t([_.nK("yt-emoji-picker-select-category"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],kX.prototype,"onSelectCategory_",null);_.t([_.nK("yt-emoji-hover"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],kX.prototype,"onEmojiHover_",null);
_.t([_.CK("skinTone"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kX.prototype,"skinToneChanged_",null);_.t([_.CK("search"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kX.prototype,"searchChanged_",null);_.t([_.ZV({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],kX);
_.T(kX,"yt-emoji-picker-renderer",function(){if(BRU===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_renderer.yt.emoji.picker.renderer.css.js--\x3e<div id="search-panel" class="style-scope yt-emoji-picker-renderer"><tp-yt-paper-input id="search" no-label-float="" placeholder="[[placeholder]]" use-v2-underline="" value="{{search}}" on-blur="onSearchBoxBlur_" on-focus="onSearchBoxFocused_" class="style-scope yt-emoji-picker-renderer"></tp-yt-paper-input><yt-icon-button id="clear-search" hidden="[[!search]]" label="[[data.clearSearchLabel]]" on-tap="clearSearch" class="style-scope yt-emoji-picker-renderer"><yt-icon icon="close" class="style-scope yt-emoji-picker-renderer"></yt-icon></yt-icon-button><button id="skin-tone" aria-label$="[[getSimpleString(data.pickSkinToneText)]]" hidden="[[skinToneHidden]]" on-mouseout="resetPlaceholder" on-mouseover="showSkinTonePlaceholder" on-tap="openSkinToneSelector" selected="" class="style-scope yt-emoji-picker-renderer"></button><tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" horizontal-align="right" horizontal-offset="8" no-auto-focus="" opened="{{skinToneOpened}}" vertical-align="top" vertical-offset="8" class="style-scope yt-emoji-picker-renderer"><div id="dropdown-content" class="dropdown-content style-scope yt-emoji-picker-renderer" slot="dropdown-content"><button aria-label$="[[data.skinToneGenericLabel]]" on-tap="selectSkinTone_" tone="0" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneLightLabel]]" on-tap="selectSkinTone_" tone="1" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLightLabel]]" on-tap="selectSkinTone_" tone="2" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLabel]]" on-tap="selectSkinTone_" tone="3" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumDarkLabel]]" on-tap="selectSkinTone_" tone="4" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneDarkLabel]]" on-tap="selectSkinTone_" tone="5" class="style-scope yt-emoji-picker-renderer"></button></div></tp-yt-iron-dropdown></div><div id="category-buttons" class="style-scope yt-emoji-picker-renderer"></div><yt-emoji-picker-category-renderer id="search-category" data="[[searchCategory]]" emoji-manager="[[emojiManager]]" should-use-sticky-preferences="[[shouldUseStickyPreferences]]" skin-tone="[[skinTone]]" class="style-scope yt-emoji-picker-renderer"></yt-emoji-picker-category-renderer><yt-formatted-string id="search-empty" hidden="[[!searchEmptyMessage]]" text="[[searchEmptyMessage]]" class="style-scope yt-emoji-picker-renderer"></yt-formatted-string><div id="categories-wrapper" class="style-scope yt-emoji-picker-renderer"><div id="categories" on-mouseout="onMouseoutCategories" on-scroll="onScroll_" class="style-scope yt-emoji-picker-renderer"></div></div><div id="emoji-variant-selector" hidden="[[!emojiVariantSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div><div id="emoji-multi-person-selector" hidden="[[!emojiMultiPersonSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;Wo7===void 0&&(Wo7=document.createElement("template"));var c=Wo7;K.call(H,c.content.cloneNode(!0),d.content.firstChild);BRU=d}d=BRU;return d},{mode:2});var xX=function(){var d=_.B.apply(this,arguments)||this;d.emojiManager=_.bq;d.isDarkTheme=document.documentElement.hasAttribute("dark");d.selectedIndex=1;d.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return d};
_.m(xX,_.B);_.G=xX.prototype;_.G.handleEmojiCustomizationVisible=function(d){this.emojiPickerRenderer.selected=d;this.selectedIndex=1;d?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.G.emojiCustomizationSetChanged=function(){var d;(d=this.data)!=null&&d.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.DD(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.G.updateSaveButtonState=function(d){var H;(H=this.data)!=null&&H.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.PI("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:d}))};
_.G.emojiUrl=function(d){d=_.Eq(this.emojiManager,d);if(!d)return"";var H;d=(H=d.image)==null?void 0:H.thumbnails;return _.Gv(d,24)||""};
_.G.emojiAlt=function(d){var H=_.Eq(this.emojiManager,d);if(!H)return d;var K,c,p,g=(H==null?void 0:(K=H.image)==null?void 0:(c=K.accessibility)==null?void 0:(p=c.accessibilityData)==null?void 0:p.label)||"";return g?g:H.isCustomEmoji?H.shortcuts[0]:H.emojiId||d};
_.G.emojiAriaLabel=function(d){var H,K;return((H=_.Eq(this.emojiManager,d))==null?void 0:(K=H.shortcuts)==null?void 0:K[0])||d};
_.G.onEmojiClick=function(d){d.model.index!==0&&(this.selectedIndex=d.model.index)};
_.G.onEmojiSelect=function(d){d=d.detail;var H,K;((H=this.data)==null?0:H.emojiCustomizationSetEntityKey)&&((K=this.emojiCustomizationSet)==null?0:K.emojiId)&&d.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,d.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.PI("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,d.emojiId,this.selectedIndex)}))};
_.G.canEditEmoji=function(d,H,K){d=d.indexOf(H);return d===K||d===0||K===0?!1:!0};
_.G.getUpdatedEmojiIdList=function(d,H,K){var c=d.indexOf(H);d=[].concat(_.ru(d));c>=0&&(d[c]=d[K]);d[K]=H;return d};
_.H3.Object.defineProperties(xX,{template:{configurable:!0,enumerable:!0,get:function(){if(KoS===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-customization-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_customization_panel_view_model.yt.emoji.customization.panel.view.model.css.js--\x3e<yt-attributed-string id="description-text" data="[[data.descriptionText]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-attributed-string>\n<div id="fab-container" class="style-scope yt-emoji-customization-panel-view-model">\n  <div id="expanded-buttons" class="style-scope yt-emoji-customization-panel-view-model">\n    <template is="dom-repeat" id="repeat" items="[[emojiCustomizationSet.emojiId]]" class="style-scope yt-emoji-customization-panel-view-model">\n      <button class="reaction-button style-scope yt-emoji-customization-panel-view-model" emoji-selected$="[[equals(selectedIndex, index)]]" on-click="onEmojiClick" disabled$="[[equals(index, 0)]]">\n        <img id="[[index]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" height="24" role="option" src$="[[emojiUrl(item)]]" width="24" class="style-scope yt-emoji-customization-panel-view-model">\n      </button>\n    </template>\n  </div>\n</div>\n<yt-button-view-model data="[[data.resetButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-emoji-customization-panel-view-model">\n</yt-button-view-model>\n<yt-emoji-picker-renderer data="[[data.emojiPicker.emojiPickerRenderer]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-emoji-picker-renderer>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;$I6===void 0&&($I6=document.createElement("template"));var c=$I6;K.call(H,c.content.cloneNode(!0),d.content.firstChild);KoS=d}d=KoS;return d}}});
xX.prototype.onEmojiSelect=xX.prototype.onEmojiSelect;_.t([_.u(_.YC),_.O("design:type",Object)],xX.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],xX.prototype,"ytActionHandlerBehavior",void 0);_.t([_.VP("yt-emoji-picker-renderer"),_.O("design:type",Object)],xX.prototype,"emojiPickerRenderer",void 0);
_.t([_.r({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(d,H){return _.xL(d.entities,"emojiCustomizationSetEntity",H)},
observer:"emojiCustomizationSetChanged"}),_.O("design:type",Object)],xX.prototype,"emojiCustomizationSet",void 0);_.t([_.r(),_.O("design:type",Object)],xX.prototype,"originalEmojiSet",void 0);_.t([_.r(),_.O("design:type",_.SP)],xX.prototype,"emojiManager",void 0);_.t([_.r(),_.O("design:type",Object)],xX.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],xX.prototype,"isDarkTheme",void 0);_.t([_.r(),_.O("design:type",Object)],xX.prototype,"selectedIndex",void 0);
_.t([_.nK("yt-emoji-select"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],xX.prototype,"onEmojiSelect",null);_.t([_.ZV({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],xX);var TRX;var QOM;var tjS;var YBU;var ne=function(){var d=_.B.apply(this,arguments)||this;d.authorBadges=[];return d};
_.m(ne,_.B);_.G=ne.prototype;_.G.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.G.configureRendererStamper=function(){return{"data.inlineActionButtons":{id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}},"data.beforeContentButtons":{id:"before-content-buttons",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.G.dataChanged=function(){var d=m2f(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",d)};
_.G.updateMessage=function(){var d=this.data.message,H=_.Gn(_.Gn(this.hostElement).querySelector("#message"));H.textContent="";d&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(d))};
_.G.shouldSupportWholeItemClick=function(){return!0};
_.G.onShowOriginalClick=function(d){d.preventDefault();this.showOriginal=!0};
_.G.computeShowBar=function(d,H,K){return d&&H||K};
_.G.computeAuthorBadges=function(d){return d.authorBadges||[]};
_.G.computeAuthorIsOwner=function(d){return!!wtL(d.authorBadges,"owner")};
_.G.computeAuthorNameColor=function(d){var H;if(_.h("live_chat_author_name_color_usernames")&&(d==null?0:(H=d.authorName)==null?0:H.simpleText))return _.BD4(_.zIf(d.authorName.simpleText));if(_.h("live_chat_seed_color_usernames")&&(d==null?0:d.authorSeedColorArgb))return _.BD4(_.lD(d.authorSeedColorArgb));if(_.h("live_chat_colored_usernames"))return"#cc0000";var K;return _.h("live_chat_simple_color_usernames")&&(d==null?0:(K=d.authorName)==null?0:K.simpleText)&&(d==null?0:d.authorUsernameColorLight)&&
(d==null?0:d.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.lD(d.authorUsernameColorDark):_.lD(d.authorUsernameColorLight):""};
ne.prototype.updateMessage=ne.prototype.updateMessage;ne.prototype.dataChanged=ne.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.NZ.YtLiveChatItemBehavior),_.O("design:type",_.Dj)],ne.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ne.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ne.prototype,"data",void 0);
_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],ne.prototype,"showOriginal",void 0);_.t([_.r({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.O("design:type",Boolean)],ne.prototype,"isDimmed",void 0);_.t([_.r({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.O("design:type",Boolean)],ne.prototype,"showBar",void 0);
_.t([_.r({computed:"computeAuthorBadges(data)"}),_.O("design:type",Array)],ne.prototype,"authorBadges",void 0);_.t([_.r({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],ne.prototype,"authorIsOwner",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],ne.prototype,"inCollapsedBanner",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],ne.prototype,"inBanner",void 0);
_.t([_.r({value:_.h("live_chat_hide_avatars"),reflectToAttribute:!0}),_.O("design:type",Boolean)],ne.prototype,"avatarHidden",void 0);_.t([_.r({computed:"computeAuthorNameColor(data)"}),_.O("design:type",String)],ne.prototype,"authorNameColor",void 0);_.t([_.r(),_.O("design:type",_.jP)],ne.prototype,"participantsManager",void 0);_.t([_.r({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.O("design:type",Object)],ne.prototype,"filledButtonOverrides",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ne.prototype,"dataChanged",null);_.t([_.CK("data.message"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ne.prototype,"updateMessage",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],ne);
_.T(ne,"yt-live-chat-text-message-renderer",function(){if(YBU===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_message_renderer.yt.live.chat.text.message.renderer.css.js--\x3e<yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-text-message-renderer" height="24" thumbnail="[[data.authorPhoto]]" width="24"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-text-message-renderer"><span id="timestamp" class="style-scope yt-live-chat-text-message-renderer">[[timestampString]]</span><yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" class="style-scope yt-live-chat-text-message-renderer"></yt-live-chat-author-chip>\u200b<div id="before-content-buttons" class="style-scope yt-live-chat-text-message-renderer"></div>\u200b<span id="message" dir="auto" class="style-scope yt-live-chat-text-message-renderer"></span><span id="deleted-state" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.deletedStateMessage)]]</span><a id="show-original" href="#" on-click="onShowOriginalClick" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.showOriginalContentMessage)]]</a></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-text-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-text-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-text-message-renderer"></yt-icon></yt-icon-button></div><div id="inline-action-button-container" class="style-scope yt-live-chat-text-message-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-text-message-renderer"></div></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;tjS===void 0&&(tjS=document.createElement("template"));var c=tjS;K.call(H,c.content.cloneNode(!0),d.content.firstChild);YBU=d}d=YBU;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var Ce=function(){var d=_.B.apply(this,arguments)||this;d.tonalButtonOverrides={type:"tonal",style:"overlay"};return d};
_.m(Ce,_.B);
Ce.prototype.configureRendererStamper=function(){return{"data.infoDialogButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.autoModeratedItem":{id:"auto-moderated-item",mapping:{liveChatTextMessageRenderer:{component:"yt-live-chat-text-message-renderer",properties:{participantsManager:"[[participantsManager]]"},attributes:{"hide-inline-action-buttons":!0,"no-hover-effect":!0}}}},"data.moderationButtons":{id:"moderation-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.additionalInlineActionButtons":{id:"additional-inline-action-buttons",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[tonalButtonOverrides]]"}}}}}};
Ce.prototype.shouldSupportInlineActionButtons=function(){return!0};
Ce.prototype.shouldSupportWholeItemClick=function(){return!0};
_.H3.Object.defineProperties(Ce.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.NZ.YtLiveChatItemBehavior),_.O("design:type",_.Dj)],Ce.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Ce.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ce.prototype,"data",void 0);_.t([_.r(),_.O("design:type",_.jP)],Ce.prototype,"participantsManager",void 0);
_.t([_.r(),_.O("design:type",Object)],Ce.prototype,"tonalButtonOverrides",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data.infoDialogButton"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ce.prototype,"hasInfoDialogButton",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],Ce);
_.T(Ce,"yt-live-chat-auto-mod-message-renderer",function(){if(QOM===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-auto-mod-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_auto_mod_message_renderer.yt.live.chat.auto.mod.message.renderer.css.js--\x3e<div id="explanation" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <yt-icon id="warning-icon" hidden$="[[hasInfoDialogButton]]" icon="warning" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-icon>\n  <div id="button" hidden$="[[!hasInfoDialogButton]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <yt-formatted-string text="[[data.headerText]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-formatted-string>\n</div>\n<div id="auto-moderated-item" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="moderation-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <div id="additional-inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;TRX===void 0&&(TRX=document.createElement("template"));var c=TRX;K.call(H,c.content.cloneNode(!0),d.content.firstChild);QOM=d}d=QOM;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var OrM;var SBd;var EUg;var yp3=function(){return _.B.apply(this,arguments)||this};
_.m(yp3,_.B);_.t([_.r(),_.O("design:type",Object)],yp3.prototype,"data",void 0);_.t([_.Z({is:"ytd-factoid-renderer",disableElementRegistration:!0})],yp3);
_.T(yp3,"ytd-factoid-renderer",function(){if(EUg!==void 0)return EUg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-factoid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="factoid style-scope ytd-factoid-renderer" role="text" aria-label="[[data.accessibilityText]]">\n  <yt-formatted-string class="factoid-value style-scope ytd-factoid-renderer" text="[[data.value]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="factoid-label style-scope ytd-factoid-renderer" text="[[data.label]]">\n  </yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return EUg=d},{mode:1});var Rx=function(){return _.B.apply(this,arguments)||this};
_.m(Rx,_.B);Rx.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.t([_.r(),_.O("design:type",Object)],Rx.prototype,"data",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Rx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Rx);
_.T(Rx,"yt-live-chat-channel-activity-reputation-renderer",function(){if(SBd===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-channel-activity-reputation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_channel_activity_reputation_renderer.yt.live.chat.channel.activity.reputation.renderer.css.js--\x3e<div id="factoids" class="style-scope yt-live-chat-channel-activity-reputation-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;OrM===void 0&&(OrM=document.createElement("template"));var c=OrM;K.call(H,c.content.cloneNode(!0),d.content.firstChild);SBd=d}d=SBd;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var br6;var NR0;var V6=function(){return _.B.apply(this,arguments)||this};
_.m(V6,_.B);V6.prototype.ready=function(){var d=document.querySelector("yt-live-chat-app");d&&d.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Boolean)],V6.prototype,"menuFocused",void 0);_.t([_.r(),_.O("design:type",Object)],V6.prototype,"data",void 0);_.t([_.u(_.NZ.YtLiveChatItemBehavior),_.O("design:type",_.Dj)],V6.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],V6);
_.T(V6,"yt-live-chat-donation-announcement-renderer",function(){if(NR0===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-donation-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_donation_announcement_renderer.yt.live.chat.donation.announcement.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="content-header" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="author-name" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.authorName)]]</div><div id="text" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.text)]]</div></div><div id="timestamp" class="style-scope yt-live-chat-donation-announcement-renderer">[[timestampString]]</div><yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-formatted-string></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-icon></yt-icon-button></div></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;br6===void 0&&(br6=document.createElement("template"));var c=br6;K.call(H,c.content.cloneNode(!0),d.content.firstChild);NR0=d}d=NR0;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var DI0;var fll,Apl=function(){if(fll!==void 0)return fll;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-empty-feed-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_empty_feed_view_model.yt.live.chat.empty.feed.view.model.css.js--\x3e<yt-image id="image" alt="empty_feed_image" data="[[data.emptyFeedImage]]" height="100" preserve-height="" preserve-width="" width="178" class="style-scope yt-live-chat-empty-feed-view-model">\n</yt-image>\n<yt-attributed-string id="message" data="[[data.message]]" class="style-scope yt-live-chat-empty-feed-view-model"></yt-attributed-string>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;DI0===void 0&&(DI0=document.createElement("template"));var c=DI0;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return fll=d};var UO=function(){return _.B.apply(this,arguments)||this};
_.m(UO,_.B);_.H3.Object.defineProperties(UO,{template:{configurable:!0,enumerable:!0,get:function(){return Apl()}}});
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],UO.prototype,"data",void 0);_.t([_.ZV({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],UO);_.T(UO,"yt-live-chat-empty-feed-view-model",function(){return Apl()},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var jON;var vU0;var ho=function(){return _.B.apply(this,arguments)||this};
_.m(ho,_.B);ho.prototype.configureRendererStamper=function(){return{"data.channelAvatar.avatarViewModel":{id:"avatar",mapping:{image:{component:"yt-image",attributes:{height:"36",width:"36","preserve-height":"true","preserve-width":"true"}}}}}};
_.H3.Object.defineProperties(ho.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var d,H;return{runs:[{text:(d=this.data)==null?void 0:(H=d.channelName)==null?void 0:H.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var d=[],H;if((H=this.data)==null||!H.channelBadges)return d;var K;H=_.q((K=this.data)==null?void 0:K.channelBadges);for(K=H.next();!K.done;K=H.next()){K=_.M(K.value,Tp3);var c=void 0,p=void 0;if((c=K)==null?0:(p=c.badgeImage)==null?0:p.sources)c=void 0,p={liveChatAuthorBadgeRenderer:{tooltip:K.tooltip,accessibility:{accessibilityData:{label:(c=_.M(K.rendererContext,_.hs))==null?void 0:c.label}}}},K.badgeImage.sources[0].clientResource?p.liveChatAuthorBadgeRenderer.icon=
{iconType:K.badgeImage.sources[0].clientResource.imageName}:p.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:K.badgeImage.sources},d.push(p)}return d}}});
_.t([_.r(),_.O("design:type",Object)],ho.prototype,"data",void 0);_.t([_.I("data.channelName"),_.O("design:type",Object),_.O("design:paramtypes",[])],ho.prototype,"channelName",null);_.t([_.I("data.channelBadges"),_.O("design:type",Array),_.O("design:paramtypes",[])],ho.prototype,"channelBadges",null);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ho.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],ho);
_.T(ho,"yt-live-chat-identity-view-model",function(){if(vU0===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-identity-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_identity_view_model.yt.live.chat.identity.view.model.css.js--\x3e<div id="avatar" class="style-scope yt-live-chat-identity-view-model"></div>\n<div id="channel_info" class="style-scope yt-live-chat-identity-view-model">\n  <yt-live-chat-author-chip id="channel_name" author-badges="[[channelBadges]]" author-name="[[channelName]]" class="style-scope yt-live-chat-identity-view-model">\n  </yt-live-chat-author-chip>\n  <div id="channel_metadata" class="style-scope yt-live-chat-identity-view-model">\n    <yt-attributed-string id="create_time" data="[[data.channelCreateTime]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n    <yt-attributed-string id="subscriber_count" data="[[data.channelSubscriberCount]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n  </div>\n</div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;jON===void 0&&(jON=document.createElement("template"));var c=jON;K.call(H,c.content.cloneNode(!0),d.content.firstChild);vU0=d}d=vU0;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var dhB;var H9C;var $h7;var K$l;var Le=function(){var d=_.B.apply(this,arguments)||this;d.hidden=!1;d.supportsInlineActionButtons=!0;return d};
_.m(Le,_.B);Le.prototype.ready=function(){var d;((d=document.querySelector("yt-live-chat-app"))==null?0:d.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Le.prototype.dataChanged=function(d){var H=(0,_.ls)(_.Gn(this.hostElement).querySelector("#detail-text"));H.textContent="";(d==null?0:d.detailText)&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(d.detailText))};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.NZ.YtLiveChatItemBehavior),_.O("design:type",_.Dj)],Le.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Le.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r({observer:"dataChanged"}),_.O("design:type",Object)],Le.prototype,"data",void 0);
_.t([_.r({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.O("design:type",Object)],Le.prototype,"hidden",void 0);_.t([_.Z({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Le);
_.T(Le,"yt-live-chat-legacy-paid-message-renderer",function(){if(K$l===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-legacy-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_legacy_paid_message_renderer.yt.live.chat.legacy.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-img-shadow>\n  <div id="content" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <div id="content-primary-column" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <div id="author-name" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.authorName)]]</div>\n      <div id="event-text" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.eventText)]]</div>\n      <div id="detail-text" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n    </div>\n    <div id="timestamp" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[timestampString]]</div>\n  </div>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <yt-icon icon="more_vert" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;$h7===void 0&&($h7=document.createElement("template"));var c=$h7;K.call(H,c.content.cloneNode(!0),d.content.firstChild);K$l=d}d=K$l;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var cU3;var p7d;var g$g={},MT=function(){return _.hB.apply(this,arguments)||this};
_.m(MT,_.hB);MT.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
MT.prototype.onLiveChatMembershipItemBehaviorClick=MT.prototype.onLiveChatMembershipItemBehaviorClick;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],MT.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],MT.prototype,"data",void 0);_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],MT.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.t([_.LK()],MT);
g$g.YtLiveChatMembershipItemBehavior=[MT.prototype,_.b.YtRendererBehavior];var m7=function(){var d=_.B.apply(this,arguments)||this;d.supportsInlineActionButtons=!0;d.hasPrimaryHeaderText=!1;d.showOnlyHeader=!1;d.authorBadges=[];d.modern=_.h("web_button_rework_with_live");d.buttonOverrides={style:"overlay",type:"filled"};return d};
_.m(m7,_.B);_.G=m7.prototype;_.G.shouldSupportInlineActionButtons=function(){return!0};
_.G.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.G.ready=function(){var d=document.querySelector("yt-live-chat-app");d&&d.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.G.messageChanged=function(){var d=this.data.message,H=(0,_.ls)(_.Gn(this.hostElement).querySelector("#message"));H.textContent="";d&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(d))};
_.G.computeHasPrimaryHeaderText=function(d){return!(!d||!d.headerPrimaryText)};
_.G.computeShowOnlyHeader=function(d,H){return this.isMessageEmpty(d,H)};
_.G.computeAuthorBadges=function(d){return d.authorBadges||[]};
_.G.isMessageEmpty=function(d,H){return!d||d.empty?!0:!d.message&&!d.inputField&&!H};
_.G.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.G.getInputElement=function(){return _.Gn(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.G.inputFocus=function(){var d=this.getInputElement();d&&d.focus()};
_.G.inputInsertEmoji=function(d){var H=this.getInputElement();H&&H.insertEmoji(d)};
_.G.inputMessage=function(){var d=this.getInputElement();return d&&this.data.inputField?(d.completeEmojis(),_.OQ(d.liveChatRichMessageInput)):null};
_.G.onFooterButtonClick=function(){this.data.footerButton&&_.GT(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.G.shouldSupportWholeItemClick=function(){return!0};
m7.prototype.isDeletedChanged=m7.prototype.isDeletedChanged;m7.prototype.messageChanged=m7.prototype.messageChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],m7.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.NZ.YtLiveChatItemBehavior),_.O("design:type",_.Dj)],m7.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.u(g$g.YtLiveChatMembershipItemBehavior),_.O("design:type",Object)],m7.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],m7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],m7.prototype,"data",void 0);_.t([_.r({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.O("design:type",Object)],m7.prototype,"hasPrimaryHeaderText",void 0);_.t([_.r({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.O("design:type",Object)],m7.prototype,"showOnlyHeader",void 0);
_.t([_.r({computed:"computeAuthorBadges(data)"}),_.O("design:type",Array)],m7.prototype,"authorBadges",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],m7.prototype,"modern",void 0);_.t([_.CK("data.message"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],m7.prototype,"messageChanged",null);_.t([_.CK("isDeleted"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],m7.prototype,"isDeletedChanged",null);
_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],m7);
_.T(m7,"yt-live-chat-membership-item-renderer",function(){if(p7d===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-membership-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_membership_item_renderer.yt.live.chat.membership.item.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="header" class="style-scope yt-live-chat-membership-item-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-membership-item-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-membership-item-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-membership-item-renderer">\n        <div id="header-content-inner-column" class="style-scope yt-live-chat-membership-item-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n            <yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" class="style-scope yt-live-chat-membership-item-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="header-primary-text" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerPrimaryText)]]</div>\n        </div>\n        <div id="header-subtext" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerSubtext)]]</div>\n      </div>\n      <div id="timestamp" class="style-scope yt-live-chat-membership-item-renderer">[[timestampString]]</div>\n    </div>\n    <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-icon icon="more_vert" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-membership-item-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-membership-item-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-membership-item-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-membership-item-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-membership-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div id="footer-button" hidden$="[[!data.footerButton]]" on-click="onFooterButtonClick" class="style-scope yt-live-chat-membership-item-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-membership-item-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;cU3===void 0&&(cU3=document.createElement("template"));var c=cU3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);p7d=d}d=p7d;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var i9M;var G7S;var w2=function(){return _.B.apply(this,arguments)||this};
_.m(w2,_.B);w2.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],w2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],w2.prototype,"data",void 0);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],w2);
_.T(w2,"yt-live-chat-mode-change-message-renderer",function(){if(G7S===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-mode-change-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_mode_change_message_renderer.yt.live.chat.mode.change.message.renderer.css.js--\x3e<div id="contents" class="style-scope yt-live-chat-mode-change-message-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-icon>\n  <div id="text-container" class="style-scope yt-live-chat-mode-change-message-renderer">\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-mode-change-message-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;i9M===void 0&&(i9M=document.createElement("template"));var c=i9M;K.call(H,c.content.cloneNode(!0),d.content.firstChild);G7S=d}d=G7S;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var o$S;var qFU;var Pn=function(){return _.B.apply(this,arguments)||this};
_.m(Pn,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.NZ.YtLiveChatItemBehavior),_.O("design:type",_.Dj)],Pn.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Pn.prototype,"data",void 0);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Pn);
_.T(Pn,"yt-live-chat-moderation-message-renderer",function(){if(qFU===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-moderation-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_moderation_message_renderer.yt.live.chat.moderation.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-moderation-message-renderer">\n  <span id="timestamp" class="style-scope yt-live-chat-moderation-message-renderer">[[timestampString]]</span>\n  <yt-formatted-string id="message" text="[[data.message]]" class="style-scope yt-live-chat-moderation-message-renderer"></yt-formatted-string>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;o$S===void 0&&(o$S=document.createElement("template"));var c=o$S;K.call(H,c.content.cloneNode(!0),d.content.firstChild);qFU=d}d=qFU;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var a1S;var l1d;var uF=function(){var d=_.B.apply(this,arguments)||this;d.modern=_.h("web_button_rework");return d};
_.m(uF,_.B);uF.prototype.onClick=function(){var d;if((d=this.data)!=null&&d.onClickCommand){var H;_.nM.instance.resolveCommand((H=this.data)==null?void 0:H.onClickCommand)}};
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],uF.prototype,"modern",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.YC),_.O("design:type",Object)],uF.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.u(_.NZ.YtLiveChatItemBehavior),_.O("design:type",_.Dj)],uF.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],uF.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],uF.prototype,"data",void 0);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],uF);
_.T(uF,"yt-live-chat-offer-click-count-message-renderer",function(){if(l1d===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-offer-click-count-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_offer_click_count_message_renderer.yt.live.chat.offer.click.count.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n  <div id="icon-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="icon" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-icon icon="yt-icons:trending_up" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="metadata-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="message-title" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-formatted-string>\n    </div>\n    <div id="product-title-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">[[data.productTitle]]</div>\n    <div id="cta-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <a id="cta-endpoint" href$="[[computeHref_(data.onClickCommand)]]" on-click="onClick" data="[[data.onClickCommand]]" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n        [[data.ctaTitle]]\n        <yt-icon class="hover-icon style-scope yt-live-chat-offer-click-count-message-renderer" icon="open_in_new"></yt-icon>\n      </a>\n    </div>\n  </div>\n</div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;a1S===void 0&&(a1S=document.createElement("template"));var c=a1S;K.call(H,c.content.cloneNode(!0),d.content.firstChild);l1d=d}d=l1d;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var er0;var k7A=function(){return _.B.apply(this,arguments)||this};
_.m(k7A,_.B);_.t([_.r(),_.O("design:type",Object)],k7A.prototype,"data",void 0);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],k7A);
_.T(k7A,"yt-live-chat-placeholder-item-renderer",function(){if(er0===void 0){var d=document.createElement("template");_.P(d,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-placeholder-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);er0=d}d=er0;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var xh3;var n$6;var CH7=new DL(7),Ix=function(){var d=_.B.apply(this,arguments)||this;d.data={};return d};
_.m(Ix,_.B);Ix.prototype.dataChanged=function(){var d;((d=this.data)==null?0:d.class)&&_.qr(this.hostElement,this.data.class,!0);var H;((H=this.oldData)==null?0:H.class)&&_.qr(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Ix.prototype.computeTimestampString=function(d){return CH7.format(new Date(d/1E3))};
Ix.prototype.dataChanged=Ix.prototype.dataChanged;_.t([_.r(),_.O("design:type",Object)],Ix.prototype,"data",void 0);_.t([_.r({computed:"computeTimestampString(data.timestampUsec)"}),_.O("design:type",String)],Ix.prototype,"timestampString",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ix.prototype,"dataChanged",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Ix);
_.T(Ix,"yt-live-chat-server-error-message",function(){if(n$6===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-server-error-message--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_server_error_message.yt.live.chat.server.error.message.css.js--\x3e<span id="timestamp" class="style-scope yt-live-chat-server-error-message">[[timestampString]]</span>\n<span id="message" class="style-scope yt-live-chat-server-error-message">[[data.message]]</span>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;xh3===void 0&&(xh3=document.createElement("template"));var c=xh3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);n$6=d}d=n$6;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var RrN;var VUg;var r2=function(){var d=_.B.apply(this,arguments)||this;d.defaultToFilledIcon=!1;return d};
_.m(r2,_.B);r2.prototype.computeHasPrimaryColorIcon=function(d){return d==="SPARK"||d==="SPONSORSHIP_STAR"};
r2.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],r2.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.NZ.YtLiveChatItemBehavior),_.O("design:type",_.Dj)],r2.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],r2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],r2.prototype,"defaultToFilledIcon",void 0);_.t([_.r(),_.O("design:type",Object)],r2.prototype,"data",void 0);
_.t([_.r({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.O("design:type",Boolean)],r2.prototype,"hasPrimaryColorIcon",void 0);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],r2);
_.T(r2,"yt-live-chat-viewer-engagement-message-renderer",function(){if(VUg===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-viewer-engagement-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_viewer_engagement_message_renderer.yt.live.chat.viewer.engagement.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon id="icon" default-to-filled="[[defaultToFilledIcon]]" icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon><div id="content" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><div id="message-container" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string></div><div id="action-button" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></div></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon></yt-icon-button></div></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;RrN===void 0&&(RrN=document.createElement("template"));var c=RrN;K.call(H,c.content.cloneNode(!0),d.content.firstChild);VUg=d}d=VUg;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var Uhl;var Wn=function(){var d=_.B.apply(this,arguments)||this;d.modernUpdate=!1;d.buttonStyle="overlay";d.buttonType="filled";return d};
_.m(Wn,_.B);Wn.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
Wn.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Wn.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Wn.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Wn.prototype,"modernUpdate",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],Wn.prototype,"buttonStyle",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],Wn.prototype,"buttonType",void 0);
_.t([_.Z({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],Wn);
_.T(Wn,"ytd-ad-hover-text-button-renderer",function(){if(Uhl!==void 0)return Uhl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-hover-text-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="info-button" data="[[data.button.buttonRenderer]]" hidden="[[!data.button]]" overrides="[[computeButtonOverride(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n</ytd-button-renderer>\n<tp-yt-paper-tooltip id="ad-info-tooltip" for="info-button" hidden="[[!data.hoverText]]" position="[[computeTooltipPosition(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n  [[getSimpleString(data.hoverText)]]\n</tp-yt-paper-tooltip>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Uhl=d},{mode:1});var hrd;var Bn=function(){var d=_.B.apply(this,arguments)||this;d.buttonOverrides={size:"XS"};d.modern=_.h("web_button_rework");return d};
_.m(Bn,_.B);Bn.prototype.onHelpTap=function(d){this.data&&this.data.informationDialog&&(_.GT(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),d.preventDefault(),d.stopPropagation())};
_.t([_.r(),_.O("design:type",Object)],Bn.prototype,"buttonOverrides",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Bn.prototype,"modern",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Bn.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Bn.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Bn);
_.T(Bn,"ytd-live-chat-purchased-product-message-renderer",function(){if(hrd!==void 0)return hrd;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-purchased-product-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div id="container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n  <a id="product-container" class="yt-simple-endpoint style-scope ytd-live-chat-purchased-product-message-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" data-offer-version-id$="[[data.debugOfferVersionId]]">\n    <div id="product-image" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <yt-img-shadow class="no-transition style-scope ytd-live-chat-purchased-product-message-renderer" thumbnail="[[data.thumbnail]]"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <div id="purchased-message" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <yt-formatted-string text="[[data.purchasedMessage]]" class="style-scope ytd-live-chat-purchased-product-message-renderer"></yt-formatted-string>\n      </div>\n      <div id="product-title-container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <div id="product-title" show-icon$="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">[[data.productTitle]]\n          <template is="dom-if" if="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n            <yt-icon class="hover-icon style-scope ytd-live-chat-purchased-product-message-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </div>\n    </div>\n  </a>\n  <div id="information-icon" on-tap="onHelpTap" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    <ytd-button-renderer id="info-button" data="[[data.informationButton.buttonRenderer]]" hidden="[[!data.informationButton]]" overrides="[[buttonOverrides]]" role="tooltip" tab-index="1" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return hrd=d},{mode:1});var L$d;var MUU;var zb=function(){var d=_.B.apply(this,arguments)||this;d.isContainerDeleted=!1;return d};
_.m(zb,_.B);zb.prototype.onContextMenuClick=function(d){this.ytLiveChatItemBehavior.showContextMenu(d)};
zb.prototype.isContainerDeletedChanged=function(){this.isContainerDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.primaryText",null),this.set("data.secondaryText",null),this.set("data.image",null))};
zb.prototype.isContainerDeletedChanged=zb.prototype.isContainerDeletedChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.NZ.YtLiveChatItemBehavior),_.O("design:type",_.Dj)],zb.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],zb.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],zb.prototype,"isContainerDeleted",void 0);
_.t([_.r(),_.O("design:type",String)],zb.prototype,"deletedStateMessage",void 0);_.t([_.CK("isContainerDeleted"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zb.prototype,"isContainerDeletedChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],zb);
_.T(zb,"ytd-sponsorships-live-chat-header-renderer",function(){if(MUU!==void 0)return MUU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <div id="header-content-primary-column" hidden$="[[isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="header-content-inner-column" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" single-line="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.primaryText)]]</div>\n        </div>\n        <div id="secondary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.secondaryText)]]</div>\n      </div>\n      <div id="header-content-deleted-state" hidden$="[[!isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="deleted-primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[deletedStateMessage]]</div>\n      </div>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.image]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-img-shadow class="rhs-image style-scope ytd-sponsorships-live-chat-header-renderer" height="104" thumbnail="[[data.image]]" width="104">\n    </yt-img-shadow>\n  </template>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return MUU=d},{mode:1});var XZ=function(){var d=_.B.apply(this,arguments)||this;d.modern=_.h("web_button_rework_with_live");d.buttonOverrides={style:"overlay",type:"filled"};return d};
_.m(XZ,_.B);XZ.prototype.configureRendererStamper=function(){return{"data.optInPrompt":{id:"opt-in-prompt",mapping:{liveChatViewerEngagementMessageRenderer:{component:"yt-live-chat-viewer-engagement-message-renderer",params:{defaultToFilledIcon:!0}},buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
XZ.prototype.onCtaButtonClick=function(){var d,H=_.M((d=this.data)==null?void 0:d.optInPrompt,_.Tz);if(d=this.maybeGetButtonCommand(H)){var K;(K=_.hR())==null||K.clickCommand(d)}};
XZ.prototype.maybeGetButtonCommand=function(d){return!d||!d.command||_.M(d.command,Cdl)===void 0&&_.M(d.command,nRX)===void 0?null:d.command};
XZ.prototype.shouldHideOptinPrompt=function(d,H){return!d||H};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],XZ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.NZ.YtLiveChatItemBehavior),_.O("design:type",_.Dj)],XZ.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],XZ.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],XZ.prototype,"modern",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],XZ);
_.T(XZ,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(L$d!==void 0)return L$d;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-purchase-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-sponsorships-live-chat-header-renderer id="header" data="[[data.header.liveChatSponsorshipsHeaderRenderer]]" deleted-state-message="[[getSimpleString(data.deletedStateMessage)]]" is-container-deleted="[[isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer">\n</ytd-sponsorships-live-chat-header-renderer>\n<div id="opt-in-prompt" on-click="onCtaButtonClick" hidden="[[shouldHideOptinPrompt(data.optInPrompt, isDeleted)]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return L$d=d},{mode:1});var mh3;var Jo=function(){return _.B.apply(this,arguments)||this};
_.m(Jo,_.B);Jo.prototype.onContextMenuClick=function(d){this.ytLiveChatItemBehavior.showContextMenu(d)};
Jo.prototype.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
Jo.prototype.isDeletedChanged=Jo.prototype.isDeletedChanged;_.t([_.u(_.NZ.YtLiveChatItemBehavior),_.O("design:type",_.Dj)],Jo.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Jo.prototype,"data",void 0);_.t([_.CK("isDeleted"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Jo.prototype,"isDeletedChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Jo);
_.T(Jo,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(mh3!==void 0)return mh3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return mh3=d},{mode:1});var sO=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return d};
_.m(sO,_.B);_.G=sO.prototype;
_.G.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatAutoModMessageRenderer:"yt-live-chat-auto-mod-message-renderer",liveChatPaidMessageRenderer:"yt-live-chat-paid-message-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-legacy-paid-message-renderer",liveChatMembershipItemRenderer:"yt-live-chat-membership-item-renderer",liveChatTextMessageRenderer:"yt-live-chat-text-message-renderer",liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer",
liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",
liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"}}}};
_.G.handleLiveChatAction=function(d){_.M(d,r4d)?this.handleMarkChatItemAsDeletedAction(_.M(d,r4d)):_.M(d,IR0)&&this.handleRemoveChatItemAction(_.M(d,IR0))};
_.G.handleLiveChatActions=function(d){d.forEach(this.handleLiveChatAction,this)};
_.G.handleMarkChatItemAsDeletedAction=function(d){var H=this,K;((K=this.data)==null?0:K.items)&&this.data.items.forEach(function(c,p){var g=Object.keys(c)[0];Object.values(c)[0].id===d.targetItemId&&H.markAsDeleted("data.items",p,g,d.deletedStateMessage,d.showOriginalContentMessage)})};
_.G.handleRemoveChatItemAction=function(d){var H=this,K;((K=this.data)==null?0:K.items)&&this.data.items.forEach(function(c,p){Object.values(c)[0].id===d.targetItemId&&H.splice("data.items",p,1)})};
_.G.markAsDeleted=function(d,H,K,c,p){d=[d,H,K].join(".");this.set(d+".deletedStateMessage",c);this.set(d+".showOriginalContentMessage",p)};
_.t([_.r(),_.O("design:type",Object)],sO.prototype,"data",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],sO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],sO.prototype,"ytActionHandlerBehavior",void 0);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],sO);
_.T(sO,"yt-live-chat-item-display-list-renderer",function(){if(H9C===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_list_renderer.yt.live.chat.item.display.list.renderer.css.js--\x3e<div id="items" class="style-scope yt-live-chat-item-display-list-renderer"></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;dhB===void 0&&(dhB=document.createElement("template"));var c=dhB;K.call(H,c.content.cloneNode(!0),d.content.firstChild);H9C=d}d=H9C;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var w7A;var PHl,uoB=function(){if(PHl!==void 0)return PHl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_renderer.yt.live.chat.item.display.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-item-display-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;w7A===void 0&&(w7A=document.createElement("template"));var c=w7A;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return PHl=d};var FZ=function(){var d=_.B.apply(this,arguments)||this;d.isHeader=!1;return d};
_.m(FZ,_.B);FZ.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.H3.Object.defineProperties(FZ,{template:{configurable:!0,enumerable:!0,get:function(){return uoB()}}});
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],FZ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],FZ.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],FZ.prototype,"isHeader",void 0);_.t([_.ZV({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],FZ);_.T(FZ,"yt-live-chat-item-display-renderer",function(){return uoB()},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var I1N,rUM,JU6,X7g;
I1N={home:{"ytd-thumbnail":1,"ytd-topbar-menu-button-renderer":1,"ytd-item-section-renderer":5,"ytd-shelf-renderer":5,"yt-horizontal-list-renderer":5,"ytd-grid-video-renderer":30,"ytd-button-renderer":11,"tp-yt-paper-icon-button":7,"tp-yt-paper-button":5,"yt-formatted-string":5,"tp-yt-paper-tooltip":2,"yt-next-continuation":1,"~ytd-guide-entry-renderer":17,"~ytd-guide-signin-promo-renderer":1,"~ytd-browse":{count:1,signals:["yt-app-context","aa"]}},search:{"yt-next-continuation":1,"ytd-button-renderer":2,
"ytd-channel-renderer":2,"ytd-item-section-renderer":1,"ytd-video-renderer":20,"ytd-promoted-video-renderer":1,"ytd-search-pyv-renderer":1,"ytd-thumbnail":1,"ytd-thumbnail-overlay-time-status-renderer":20,"ytd-thumbnail-overlay-toggle-button-renderer":0,"ytd-shelf-renderer":1,"ytd-vertical-list-renderer":1,"ytd-thumbnail-overlay-hover-text-renderer":2,"ytd-thumbnail-overlay-side-panel-renderer":2,"yt-formatted-string":3,"iron-icon":1,"tp-yt-iron-icon":1,"tp-yt-paper-button":3,"tp-yt-paper-tooltip":33,
"yt-icon":1,"ytd-playlist-renderer":1,"ytd-playlist-video-thumbnail-renderer":1,"ytd-subscribe-button-renderer":1,"~ytd-search":{count:1,signals:["yt-app-context","aa"]}},watch:{"yt-next-continuation":2,"ytd-video-view-count-renderer":1,"ytd-button-renderer":3,"ytd-toggle-button-renderer":2,"ytd-menu-renderer":1,"ytd-compact-video-renderer":19,"ytd-compact-promoted-video-renderer":1,"ytd-compact-playlist-renderer":1,"ytd-compact-radio-renderer":1,"ytd-thumbnail":1,"ytd-thumbnail-overlay-time-status-renderer":20,
"ytd-thumbnail-overlay-toggle-button-renderer":0,"ytd-player-legacy-desktop-watch-ads-renderer":1,"tp-yt-paper-button":20,"tp-yt-paper-icon-button":20,"tp-yt-paper-tooltip":30,"yt-formatted-string":5}};rUM={home:"eohps",search:"eosps",watch:"eowps"};_.W$l=["watch","search","home"];
_.Z4=function(){this.JSC$14226_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14226_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Fm("PRECONSTRUCTION_DELAY",0);this.signals_=_.OT();this.targetPage_=""};
_.Z4.prototype.init=function(d,H){d=d===void 0?"":d;H=H===void 0?null:H;if(this.JSC$14226_isInitialized_)this.abort();else if(this.JSC$14226_isInitialized_=!0,d&&_.BG6(this,d),H){var K=_.Sc(this.signals_,"pcl")?0:10,c=function(){for(var p=0,g;g=_.W$l[p++];)g!=d&&g!=H&&this.pendingPages_.push(g);_.zr7(this)}.bind(this);
this.signals_.parkOrScheduleJob(c,K,"pcl")}};
_.Z4.prototype.abort=function(){this.fragmentJobId_&&(_.Xp.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);X7g(this)};
_.BG6=function(d,H){d.JSC$14226_isInitialized_&&!d.targetPage_&&(d.targetPage_=H,JU6(d,H),d.isInitialPass_=!1,JU6(d,H),d.signals_.processSignal(rUM[d.targetPage_]),X7g(d),_.zr7(d))};
_.zr7=function(d){d.pendingPages_.length&&!d.pagePreparerJobId_&&(d.pagePreparerJobId_=_.mf(_.Xp,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.BG6(this,this.pendingPages_.shift())}.bind(d),d.DEFAULT_DELAY_))};
JU6=function(d,H){if(H=I1N[H])for(var K in H){var c=!1,p=K;K.charAt(0)=="~"&&(c=!0,p=K.substring(1));var g=H[K];g=typeof g=="object"?g:{count:g};H[K]=g;g.componentName=p;g.count>0&&(d.isInitialPass_?c||d.isSeenDuringInitialPass_[p]||(d.JSC$14226_queue_.push({componentName:p,count:1,signals:g.signals}),d.isSeenDuringInitialPass_[p]=!0,g.count--):d.JSC$14226_queue_.push(g))}};
X7g=function(d){d.JSC$14226_queue_.length=0;d.targetPage_="";d.isInitialPass_=!0;d.signals_.processSignal("eop")};
_.Z4.getInstance=function(){return _.jn(_.Z4)};var swU=function(){this.signals=_.OT();this.init()};
swU.prototype.startPreconstruction=function(){_.Z4.getInstance().init(_.Qx("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
swU.prototype.init=function(){F$M(this);window.Polymer&&Jf3&&krF();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var d=_.KF.ytcsi;if(d&&d.gt&&(d=d.gt())&&d.tick&&(d.tick.aft>0||d.tick.pbs>0)&&(_.Qx("IS_HOMEPAGE_COLD")||_.Qx("IS_RESULTS_PAGE_COLD")||_.Qx("IS_WATCH_PAGE_COLD"))){Z9g(this);break a}knh(iN1,this.onNotifications,this)}};
var F$M=function(d){var H=function(){d.signals.processSignal("dl")};
document.readyState==="complete"?(_.SD(Error("sh"),"WARNING"),H()):_.SGD(window,"load",H)};
swU.prototype.onNotifications=function(d){d.timer||(_.Qx("IS_HOMEPAGE_COLD")||_.Qx("IS_RESULTS_PAGE_COLD")||_.Qx("IS_WATCH_PAGE_COLD"))&&Z9g(this)};
var Z9g=function(d){d.signals.parkOrScheduleJob(function(){d.signals.processSignal("eocs")},10,"eor")};
new swU;var Tb,TG7=function(){return _.hB.apply(this,arguments)||this};
_.m(TG7,_.hB);_.G=TG7.prototype;_.G.enableActiveViewMeasurement=function(d){if(this.isActiveViewEnabled(d)){var H=this.getUrlPrefixesFromCommand(d.viewableCommands);d=this.getUrlPrefixesFromCommand(d.endOfSessionCommands);if(!Tb){var K=_.iT("custom_active_view_tos_timeout_ms");Tb=K>0&&K!==36E5?new bu4(this.getVersion(),K):new bu4(this.getVersion())}D95(Tb,this.hostElement);f35(Tb,this.hostElement,H,d)}};
_.G.stopActiveViewMeasurement=function(){Tb&&D95(Tb,this.hostElement)};
_.G.isActiveViewEnabled=function(d){return!!d&&(this.hasAtLeastOneUrl(d.viewableCommands)||this.hasAtLeastOneUrl(d.endOfSessionCommands))};
_.G.hasAtLeastOneUrl=function(d){return!!d&&d.length>0&&d[0].loggingUrls!=null&&d[0].loggingUrls.length>0};
_.G.getVersion=function(){var d=_.Fm("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(d==null?void 0:d.length)===2?d[1]:null};
_.G.getUrlPrefixesFromCommand=function(d){if(!d)return[];var H=[];d=_.q(d);for(var K=d.next();!K.done;K=d.next())if(K=K.value,K.loggingUrls){K=_.q(K.loggingUrls);for(var c=K.next();!c.done;c=K.next())c=c.value,c.baseUrl&&H.push(c.baseUrl)}return H};
_.t([_.LK()],TG7);var Q6=[TG7.prototype];var QwU=function(){return _.hB.apply(this,arguments)||this};
_.m(QwU,_.hB);_.H3.Object.defineProperties(QwU.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_entity_store_from_dependency_injection")?_.AB():_.dn()}}});
_.t([_.LK()],QwU);_.to=[J$.prototype,QwU.prototype];var tU7=["ytd-rich-shelf-renderer"],YX=function(){var d=_.hB.apply(this,arguments)||this;d._noAccessors=!0;d.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";d.followUpDialogPromise=null;d.followUpDialogPromiseResolve=null;d.followUpDialogPromiseReject=null;return d};
_.m(YX,_.hB);_.G=YX.prototype;_.G.dismissibleItemIsDismissedChanged_=function(d){_.h("kevlar_fluid_dismiss")&&(d?_.GT(this.hostElement,"yt-dismissible-item-dismissed"):_.GT(this.hostElement,"yt-dismissible-item-undismissed"))};
_.G.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.G.dismissibleItemReset_=function(){var d=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject());
this.followUpDialogPromise=new _.kr(function(H,K){d.followUpDialogPromiseResolve=H;d.followUpDialogPromiseReject=K});
_.GT(this.hostElement,"yt-enable-lockup-interaction")};
_.G.dismissibleItemOnYtServiceRequestSent_=function(d,H){H.actions&&this.dismissibleItemProcessActions(H.actions,d)};
_.G.dismissibleItemOnRequestSent=function(d){if(_.h("web_button_rework"))for(var H=_.q(d.detail),K=H.next();!K.done;K=H.next()){var c=void 0;(K=(c=_.M(K.value,_.no))==null?void 0:c.actions)&&this.dismissibleItemProcessActions(K,d)}};
_.G.dismissibleItemOnCommandSent=function(d,H){H&&this.dismissibleItemProcessActions(H,d)};
_.G.setAndGetDismissedContentId=function(d){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+d};
_.G.replayDismissAction=function(d){this.dismissibleItemProcessActions([d])};
_.G.dismissibleItemProcessActions=function(d,H){for(var K=0;K<d.length;K++){var c=d[K],p=void 0;((p=_.M(c,_.kW))==null?0:p.commands)&&this.dismissibleItemProcessActions(_.M(c,_.kW).commands,H);if(_.M(c,_.Mq)){if(p=_.M(c,_.Mq),!p.replaceParentSection||tU7.includes(this.hostElement.nodeName.toLowerCase()))p.groupDismissal&&E$X(this,p.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(p),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.PI("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:c})),c=void 0,(c=H)==null||c.stopPropagation()}else if(_.M(c,r9g))this.dismissibleItemHandleHideEnclosingAction_(),c=void 0,(c=H)==null||c.stopPropagation();else if(_.M(c,jjM))c=_.M(c,jjM),p=void 0,((p=c)==null?0:p.targetGroupId)&&E$X(this,{targetGroupId:c.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.PI("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
c=void 0,(c=H)==null||c.stopPropagation();else if(_.M(c,_.no))(c=_.M(c,_.no).actions)&&_.l5(this.hostElement,c,this.hostElement),c=void 0,(c=H)==null||c.stopPropagation();else{var g=p=void 0;((p=_.M(c,_.Yr))==null?void 0:p.signal)!=="TELL_US_WHY"||((g=_.M(c,_.Yr))==null?0:g.targetId)&&_.h("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),c=void 0,(c=H)==null||c.stopPropagation())}}};
_.G.dismissibleItemOnYtServiceRequestCompleted_=function(d,H){var K=this.get("feedbackResponses.0.followUpDialog",H.data);K?this.followUpDialogPromiseResolve(K):H.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(H.actions,d)};
_.G.dismissibleItemHandleReplaceEnclosingAction_=function(d){this.dismissedRenderer=d.item;this.isDismissed=!0;var H=null;(H=_.Gn(this.hostElement).querySelector("#dismissed"))&&_.vV(this,function(){_.f4(H)});
_.GT(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.G.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.G.dismissibleItemHandleUndoFeedbackAction_=function(){_.GT(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.G.dismissibleItemHandleTellUsWhySignalAction_=function(){var d=this;this.followUpDialogPromise.then(function(H){d.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:H}})})};
YX.prototype.dismissibleItemOnYtServiceRequestCompleted_=YX.prototype.dismissibleItemOnYtServiceRequestCompleted_;YX.prototype.dismissibleItemOnCommandSent=YX.prototype.dismissibleItemOnCommandSent;YX.prototype.dismissibleItemOnRequestSent=YX.prototype.dismissibleItemOnRequestSent;YX.prototype.dismissibleItemOnYtServiceRequestSent_=YX.prototype.dismissibleItemOnYtServiceRequestSent_;YX.prototype.dismissibleItemDataChanged_=YX.prototype.dismissibleItemDataChanged_;
YX.prototype.dismissibleItemIsDismissedChanged_=YX.prototype.dismissibleItemIsDismissedChanged_;_.t([_.u(_.Ke),_.O("design:type",Object)],YX.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],YX.prototype,"ytdReduxBehavior",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],YX.prototype,"isDismissed",void 0);_.t([_.r(),_.O("design:type",Object)],YX.prototype,"dismissedRenderer",void 0);
_.t([_.CK("isDismissed"),_.O("design:type",Function),_.O("design:paramtypes",[Boolean]),_.O("design:returntype")],YX.prototype,"dismissibleItemIsDismissedChanged_",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],YX.prototype,"dismissibleItemDataChanged_",null);
_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],YX.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.t([_.nK("yt-service-request-sent-button-renderer"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],YX.prototype,"dismissibleItemOnRequestSent",null);
_.t([_.nK("yt-dismissible-item-action"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Array]),_.O("design:returntype")],YX.prototype,"dismissibleItemOnCommandSent",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],YX.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.t([_.LK()],YX);_.OO=[_.Ke,_.to,YX.prototype];var Sk=function(){var d=_.hB.apply(this,arguments)||this;d.disableGridStateAware=!1;d.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};d.currentGridClass="";return d};
_.m(Sk,_.hB);Sk.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.vV(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var d=this.gridStateAwareGetElement();_.qr(d,"grid",!0)}};
Sk.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Sk.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Gn(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Sk.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var d="grid-disabled";else{d=_.Pl3.getInstance();var H=this.get("pageSubtype");d=H&&M6S.includes(H)?"grid-disabled":d.currentSnapState_?d.currentSnapState_.className:null}(H=this.gridStateAwareGetElement())&&d!==this.currentGridClass&&(d&&_.qr(H,d,!0),this.currentGridClass&&_.qr(H,this.currentGridClass,!1),this.currentGridClass=d)};
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Sk.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",String)],Sk.prototype,"gridStateAwareSizingElementSelector",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Sk.prototype,"disableGridStateAware",void 0);_.t([_.LK()],Sk);_.EO=[Sk.prototype,_.Uq.YtActionHandlerBehavior];_.y6=new _.Av("GUIDE_TOKEN");var NT;_.bF={};NT=function(){var d=_.hB.apply(this,arguments)||this;d.guideStateActionMap={"ytd-update-guide-state-action":"handleGuideStateAction","ytd-update-mini-guide-state-action":"handleMiniGuideStateAction","ytd-update-guide-opened-action":"handleGuideOpenedAction","ytd-update-active-endpoint-action":"handleActiveEndpointAction"};return d};
_.m(NT,_.hB);_.G=NT.prototype;_.G.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.G.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var d=_.Kj().resolve(_.$p(_.y6));d&&(this.guidePersistentAndVisible=d.getGuidePersistentAndVisible(),this.activeEndpoint=d.getActiveEndpoint(),this.guideOpened=d.getGuideOpened(),this.miniGuideVisible=d.getMiniGuideVisible())};
_.G.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.G.handleGuideStateAction=function(d){this.guidePersistentAndVisible=d};
_.G.handleMiniGuideStateAction=function(d){this.miniGuideVisible=d};
_.G.handleGuideOpenedAction=function(d){this.guideOpened=d};
_.G.handleActiveEndpointAction=function(d){this.activeEndpoint=d};
NT.prototype.onActiveEndpointChange=NT.prototype.onActiveEndpointChange;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],NT.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],NT.prototype,"guidePersistentAndVisible",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],NT.prototype,"miniGuideVisible",void 0);_.t([_.r(),_.O("design:type",Object)],NT.prototype,"activeEndpoint",void 0);
_.t([_.CK("activeEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],NT.prototype,"onActiveEndpointChange",null);_.t([_.r(),_.O("design:type",Boolean)],NT.prototype,"guideOpened",void 0);_.t([_.LK()],NT);_.bF.YtdGuideStateAwareBehavior=[];_.bF.YtdGuideStateAwareBehavior.push(NT.prototype,_.Uq.YtActionHandlerBehavior);var YFS=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],D4=function(){var d=_.hB.apply(this,arguments)||this;d.hoverJobId=0;d.JSC$14257_touched=!1;return d};
_.m(D4,_.hB);_.G=D4.prototype;_.G.created=function(){this.useExpandableTooltip=!YFS.includes(this.is)};
_.G.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.G.detached=function(){this.useExpandableTooltip=!1};
_.G.lockupOnDown=function(d){this.interactionElement&&!_.vg(_.jh(d),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.G.lockupOnUp=function(d){this.interactionElement&&!_.vg(_.jh(d),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.G.onTouchStart=function(){this.JSC$14257_touched=!0};
_.G.lockupOnMouseEnter=function(){var d=this,H=_.iT("kevlar_lockup_hover_delay",-1);this.JSC$14257_touched&&H>=0?(_.Xp.cancelJob(this.hoverJobId),this.hoverJobId=_.Xp.addJob(function(){d.lockupIsHovered=!0},8,H),this.JSC$14257_touched=!1):this.lockupIsHovered=!0};
_.G.lockupOnMouseLeave=function(){this.hoverJobId&&(_.Xp.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.G.lockupOnPopupClosed=function(d,H){var K;((K=H.popupRenderer)==null?void 0:K.is)==="ytd-menu-popup-renderer"&&(d=H.popupRenderer.veData,H=_.Fj(),d&&H&&_.Di(H,[d]))};
_.G.lockupOnLockupRequested=function(d){var H=d.detail.videoIds[0],K;d.detail&&H===((K=this.data)==null?void 0:K.videoId)&&(d.detail.returnValue=[this.data])};
_.G.lockupOnYtServiceRequestSent=function(d,H){if(d=H.actions)for(var K=0;K<d.length;K++){var c=d[K];if(c.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&H.ajaxPromise){var p=void 0,g=(p=_.M(H.endpoint,_.sV))==null?void 0:p.playlistId;p=void 0;c=(p=c.removedVideoId)!=null?p:"";DEM(_.yq(),c,g)}else c.action==="ACTION_REMOVE_VIDEO"&&H.ajaxPromise&&(g=void 0,c=(g=c.setVideoId)!=null?g:"",_.fM0(_.yq(),c))}};
_.G.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.G.lockupOnLockupEnabled=function(){if(!this.$){var d=_.Kj().resolve(_.HI).getCurrentPage(),H=this.getParentRenderer?this.getParentRenderer():void 0;_.Jf(new _.m1("component not ready",this.is,this.isAttached,d==null?void 0:d.is,H==null?void 0:H.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
D4.prototype.lockupOnLockupEnabled=D4.prototype.lockupOnLockupEnabled;D4.prototype.lockupOnLockupDisabled=D4.prototype.lockupOnLockupDisabled;D4.prototype.lockupOnYtServiceRequestSent=D4.prototype.lockupOnYtServiceRequestSent;D4.prototype.lockupOnLockupRequested=D4.prototype.lockupOnLockupRequested;D4.prototype.lockupOnPopupClosed=D4.prototype.lockupOnPopupClosed;D4.prototype.lockupOnMouseLeave=D4.prototype.lockupOnMouseLeave;D4.prototype.lockupOnMouseEnter=D4.prototype.lockupOnMouseEnter;
D4.prototype.onTouchStart=D4.prototype.onTouchStart;D4.prototype.lockupOnUp=D4.prototype.lockupOnUp;D4.prototype.lockupOnDown=D4.prototype.lockupOnDown;_.t([_.r(),_.O("design:type",Object)],D4.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],D4.prototype,"lockupIsHovered",void 0);_.t([_.r(),_.O("design:type",Boolean)],D4.prototype,"lockupTouchTriggered",void 0);_.t([_.r(),_.O("design:type",Boolean)],D4.prototype,"useExpandableTooltip",void 0);
_.t([_.VP("#interaction"),_.O("design:type",Object)],D4.prototype,"interactionElement",void 0);_.t([_.nK("down"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],D4.prototype,"lockupOnDown",null);_.t([_.nK("up"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],D4.prototype,"lockupOnUp",null);
_.t([_.nK("touchstart"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],D4.prototype,"onTouchStart",null);_.t([_.nK("mouseenter"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],D4.prototype,"lockupOnMouseEnter",null);_.t([_.nK("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],D4.prototype,"lockupOnMouseLeave",null);
_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],D4.prototype,"lockupOnPopupClosed",null);_.t([_.nK("yt-lockup-requested"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],D4.prototype,"lockupOnLockupRequested",null);
_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],D4.prototype,"lockupOnYtServiceRequestSent",null);_.t([_.nK("yt-disable-lockup-interaction"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],D4.prototype,"lockupOnLockupDisabled",null);
_.t([_.nK("yt-enable-lockup-interaction"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],D4.prototype,"lockupOnLockupEnabled",null);_.t([_.LK()],D4);_.fe=[D4.prototype];_.O9l={YtdReduxBehavior:[]};_.O9l.YtdReduxBehavior.push.apply(_.O9l.YtdReduxBehavior,_.to);var Ao=function(){var d=_.hB.apply(this,arguments)||this;d._noAccessors=!0;d.disableNowPlaying=!1;d.disableTooltips=!1;d.useHoveredProperty=!1;d.hovered=!1;d.isThumbnailHovered_=!1;d.addBackground=_.h("kevlar_thumbnail_bg");d.nowPlaying=!1;d.disableRounding=!1;d.size="small";return d};
_.m(Ao,_.hB);_.G=Ao.prototype;_.G.computeThumbnailOverlaySidePanelWidth_=function(d,H){return d-H};
_.G.computeSize=function(d,H){if(!this.disableRounding){if(!d&&!H)return"small";d=Math.max(d||0,H||0);return d>=256?"large":d>=96?"medium":"small"}};
_.G.computeFinalHoveredState_=function(d,H,K){return this.nowPlaying?!1:_.h("kevlar_thumbnail_fluid")&&d?H:K};
_.G.computeHoverOverlays_=function(d,H){return d&&H?H:void 0};
_.G.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.G.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.G.checkMiniplayer_=function(){var d;if(((d=this.data)==null?0:d.playlistSetVideoId)&&_.h("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{d=_.UT();var H=d.currentEndpoint;!this.disableNowPlaying&&H&&_.M(H,_.AP)&&this.data?(H=_.M(H,_.AP),this.nowPlaying=this.data.playlistId?H.playlistId===this.data.playlistId:H.videoId===this.data.videoId,this.isVideoPlaying=d==null?void 0:d.isVideoPlaying):this.nowPlaying=!1}};
Ao.prototype.checkMiniplayer_=Ao.prototype.checkMiniplayer_;Ao.prototype.onMouseLeave_=Ao.prototype.onMouseLeave_;Ao.prototype.onMouseEnter_=Ao.prototype.onMouseEnter_;Ao.prototype.computeHoverOverlays_=Ao.prototype.computeHoverOverlays_;Ao.prototype.computeFinalHoveredState_=Ao.prototype.computeFinalHoveredState_;Ao.prototype.computeSize=Ao.prototype.computeSize;Ao.prototype.computeThumbnailOverlaySidePanelWidth_=Ao.prototype.computeThumbnailOverlaySidePanelWidth_;
_.t([_.u(_.to),_.O("design:type",Object)],Ao.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ao.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Number)],Ao.prototype,"height",void 0);_.t([_.r(),_.O("design:type",Boolean)],Ao.prototype,"bottomSidePanel",void 0);_.t([_.r(),_.O("design:type",Number)],Ao.prototype,"width",void 0);_.t([_.r(),_.O("design:type",Object)],Ao.prototype,"disableNowPlaying",void 0);
_.t([_.r({selector:_.Fv}),_.O("design:type",Boolean)],Ao.prototype,"miniplayerIsActive",void 0);_.t([_.r(),_.O("design:type",Object)],Ao.prototype,"disableTooltips",void 0);_.t([_.r(),_.O("design:type",Object)],Ao.prototype,"useHoveredProperty",void 0);_.t([_.r(),_.O("design:type",Object)],Ao.prototype,"hovered",void 0);_.t([_.r(),_.O("design:type",Object)],Ao.prototype,"isThumbnailHovered_",void 0);
_.t([_.r({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.O("design:type",Boolean)],Ao.prototype,"finalHoveredState_",void 0);_.t([_.r({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.O("design:type",Number)],Ao.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ao.prototype,"addBackground",void 0);
_.t([_.r({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.O("design:type",Object)],Ao.prototype,"hoverOverlays_",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ao.prototype,"nowPlaying",void 0);_.t([_.r(),_.O("design:type",Boolean)],Ao.prototype,"isVideoPlaying",void 0);_.t([_.r(),_.O("design:type",Object)],Ao.prototype,"disableRounding",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.O("design:type",Object)],Ao.prototype,"size",void 0);_.t([_.nK("mouseenter"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ao.prototype,"onMouseEnter_",null);_.t([_.nK("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ao.prototype,"onMouseLeave_",null);
_.t([_.CK("data","disableNowPlaying","miniplayerIsActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ao.prototype,"checkMiniplayer_",null);_.t([_.LK()],Ao);var SF0=[Ao.prototype];_.jk={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(d,H){return d+":"+_.b1(H)},
getPlayerListener_:function(d,H,K){d=this.getPlayerListenerKey_(d,H);H=this.playerListeners_.get(d);K&&this.playerListeners_.delete(d);return H},
savePlayerListener_:function(d,H){var K=H.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(d,H),K);return K},
listenToPlayerEvent:function(d,H,K){K=this.savePlayerListener_(H,K);d.addEventListener(H,K)},
listenToPlayerEvents:function(d,H){H.forEach(function(K,c){this.listenToPlayerEvent(d,c,K)}.bind(this))},
unlistenFromPlayerEvent:function(d,H,K){K=this.getPlayerListener_(H,K,!0);d.removeEventListener(H,K)},
unlistenFromPlayerEvents:function(d,H){H.forEach(function(K,c){this.unlistenFromPlayerEvent(d,c,K)}.bind(this))}}};
_.vn=function(){};_.E$6=new _.Av("PLAYER_API_TOKEN");var jw4=!1,$gE,dg5=!1,c3M;var gB=function(d,H,K,c,p){_.h_.call(this);var g=this;this.playerId=H;this.webPlayerContextConfig=c;this.y7d=p;this.ma6=!1;this.api={};this.isV=this.uQ4=null;this.mlb=new _.Cj;this.kd={};this.xfT=this.jg4=this.elementId=this.caf=this.config=null;this.aOt=!1;this.eE=this.nXt=null;this.djU={};this.bCD=["onReady"];this.lastError=null;this.rXr=NaN;this.th3={};this.aBT=0;this.iu=this.targetElement=d;_.q_(this,this.mlb);yU3(this);K?this.aBT=setTimeout(function(){g.loadNewVideoConfig(K)},0):c&&(b9d(this),
NG3(this))};
_.m(gB,_.h_);gB.prototype.getId=function(){return this.playerId};
gB.prototype.loadNewVideoConfig=function(d){if(!this.isDisposed()){this.aBT&&(clearTimeout(this.aBT),this.aBT=0);var H=d||{};H instanceof coB||(H=new coB(H));this.config=H;this.setConfig(d);NG3(this);this.isReady()&&DhM(this)}};
var b9d=function(d){var H;d.webPlayerContextConfig?H=d.webPlayerContextConfig.rootElementId:H=d.config.attrs.id;d.elementId=H||d.elementId;d.elementId==="video-player"&&(d.elementId=d.playerId,d.webPlayerContextConfig?d.webPlayerContextConfig.rootElementId=d.playerId:d.config.attrs.id=d.playerId);var K;((K=d.iu)==null?void 0:K.id)===d.elementId&&(d.elementId+="-player",d.webPlayerContextConfig?d.webPlayerContextConfig.rootElementId=d.elementId:d.config.attrs.id=d.elementId)};
gB.prototype.setConfig=function(d){this.caf=d;this.config=f1g(d);b9d(this);if(!this.jg4){var H;this.jg4=AUd(this,((H=this.config.args)==null?void 0:H.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var K;if((K=this.config)==null?0:K.attrs)d=this.config.attrs,(H=d.width)&&this.iu&&(this.iu.style.width=J9(Number(H)||H,!0)),(d=d.height)&&this.iu&&(this.iu.style.height=J9(Number(d)||d,!0))};
var DhM=function(d){if(d.config&&d.config.loaded!==!0)if(d.config.loaded=!0,!d.config.args||d.config.args.autoplay!=="0"&&d.config.args.autoplay!==0&&d.config.args.autoplay!==!1){var H;d.api.loadVideoByPlayerVars((H=d.config.args)!=null?H:null)}else d.api.cueVideoByPlayerVars(d.config.args)},v$7=function(d){var H=!0,K=d.getPlayerElement();
K&&d.config&&(H=K.dataset.version===jwl(d));return H&&!!_.OS("yt.player.Application.create")},NG3=function(d){if(!d.isDisposed()&&!d.aOt){var H=v$7(d);
if(H&&(d.getPlayerElement()?"html5":null)==="html5")d.xfT="html5",d.isReady()||dg3(d);else if(HEl(d),d.xfT="html5",H&&d.eE&&d.targetElement)d.targetElement.appendChild(d.eE),dg3(d);else{d.config&&(d.config.loaded=!0);var K=!1;d.nXt=function(){K=!0;var c=$gC(d,"player_bootstrap_method")?_.OS("yt.player.Application.createAlternate")||_.OS("yt.player.Application.create"):_.OS("yt.player.Application.create");var p=d.config?f1g(d.config):void 0;c&&c(d.targetElement,p,d.webPlayerContextConfig,d.y7d);dg3(d)};
d.aOt=!0;H?d.nXt():(_.SM(jwl(d),d.nXt),(H=Khd(d))&&uHX(H||""),c37(d)&&!K&&_.vb("yt.player.Application.create",null))}}};
gB.prototype.getPlayerElement=function(){var d=_.pf(document,this.elementId);!d&&this.iu&&this.iu.querySelector&&(d=this.iu.querySelector("#"+this.elementId));return d};
var dg3=function(d){if(!d.isDisposed()){var H=d.getPlayerElement(),K=!1;H&&H.getApiInterface&&H.getApiInterface()&&(K=!0);if(K){d.aOt=!1;if(!$gC(d,"html5_remove_not_servable_check_killswitch")){var c;if((H==null?0:H.isNotServable)&&d.config&&(H==null?0:H.isNotServable((c=d.config.args)==null?void 0:c.video_id)))return}pXA(d)}else d.rXr=setTimeout(function(){dg3(d)},50)}},pXA=function(d){yU3(d);
d.ma6=!0;var H=d.getPlayerElement();if(H){d.uQ4=gPM(d,H,"addEventListener");d.isV=gPM(d,H,"removeEventListener");var K=H.getApiInterface();K=K.concat(H.getInternalApiInterface());for(var c=d.api,p=0;p<K.length;p++){var g=K[p];c[g]||(c[g]=gPM(d,H,g))}}for(var a in d.kd)d.kd.hasOwnProperty(a)&&d.uQ4&&d.uQ4(a,d.kd[a]);DhM(d);d.jg4&&d.jg4(d.api);d.mlb.publish("onReady",d.api)},gPM=function(d,H,K){var c=H[K];
return function(){var p=_.sH.apply(0,arguments);try{return d.lastError=null,c.apply(H,p)}catch(g){if(K!=="sendAbandonmentPing")throw g.params=K,d.lastError=g,p=new _.m1("PlayerProxy error in method call",{error:g,method:K,playerId:d.playerId}),p.level="WARNING",p;}}},yU3=function(d){d.ma6=!1;
if(d.isV)for(var H in d.kd)d.kd.hasOwnProperty(H)&&d.isV(H,d.kd[H]);for(var K in d.th3)d.th3.hasOwnProperty(K)&&clearTimeout(Number(K));d.th3={};d.uQ4=null;d.isV=null;H=d.api;for(var c in H)H.hasOwnProperty(c)&&(H[c]=null);H.addEventListener=function(p,g){d.addEventListener(p,g)};
H.removeEventListener=function(p,g){d.removeEventListener(p,g)};
H.destroy=function(){d.dispose()};
H.getLastError=function(){return d.getLastError()};
H.getPlayerType=function(){return d.getPlayerType()};
H.getCurrentVideoConfig=function(){return d.caf};
H.loadNewVideoConfig=function(p){d.loadNewVideoConfig(p)};
H.isReady=function(){return d.isReady()}};
gB.prototype.isReady=function(){return this.ma6};
gB.prototype.addEventListener=function(d,H){var K=this;this.isDisposed();var c=AUd(this,H);c&&(_.TL(this.bCD,d)||this.kd[d]||(H=iEC(this,d),this.uQ4&&this.uQ4(d,H)),this.mlb.subscribe(d,c),d==="onReady"&&this.isReady()&&setTimeout(function(){c(K.api)},0))};
gB.prototype.removeEventListener=function(d,H){this.isDisposed()||(H=AUd(this,H))&&this.mlb.unsubscribe(d,H)};
var AUd=function(d,H){var K=H;if(typeof H==="string"){if(d.djU[H])return d.djU[H];K=function(){var c=_.sH.apply(0,arguments),p=_.OS(H);if(p)try{p.apply(_.KF,c)}catch(g){throw c=new _.m1("PlayerProxy error when executing callback",{error:g}),c.level="ERROR",c;}};
d.djU[H]=K}return K?K:null},iEC=function(d,H){var K=function(c){var p=function(){d.isDisposed();
if(!d.isDisposed())try{d.mlb.publish(H,c!=null?c:void 0)}catch(e){var a=new _.m1("PlayerProxy error when creating global callback",{error:e.message,event:H,playerId:d.playerId,data:c,originalStack:e.stack,componentStack:e.componentStack});a.level="WARNING";throw a;}};
if($gC(d,"web_player_publish_events_immediately"))p();else{var g=setTimeout(function(){p();_.rs.remove(d.th3,String(g))},0);
_.rs.add(d.th3,String(g),!0)}};
return d.kd[H]=K};
gB.prototype.getPlayerType=function(){return this.xfT||(this.getPlayerElement()?"html5":null)};
gB.prototype.getLastError=function(){return this.lastError};
var HEl=function(d){d.cancel();yU3(d);d.xfT=null;d.config&&(d.config.loaded=!1);var H=d.getPlayerElement();H&&(v$7(d)||!c37(d)?d.eE=H:(H&&H.destroy&&H.destroy(),d.eE=null));d.targetElement&&_.uB(d.targetElement)};
gB.prototype.cancel=function(){this.nXt&&_.$sE(jwl(this),this.nXt);clearTimeout(this.rXr);this.aOt=!1};
gB.prototype.disposeInternal=function(){HEl(this);if(this.eE&&this.config&&this.eE.destroy)try{this.eE.destroy()}catch(H){var d=new _.m1("PlayerProxy error during disposal",{error:H});d.level="ERROR";throw d;}this.djU=null;for(d in this.kd)this.kd.hasOwnProperty(d)&&delete this.kd[d];this.caf=this.config=this.api=null;delete this.targetElement;delete this.iu;_.h_.prototype.disposeInternal.call(this)};
var c37=function(d){var H,K;d=(H=d.config)==null?void 0:(K=H.args)==null?void 0:K.fflags;return!!d&&d.indexOf("player_destroy_old_version=true")!==-1},jwl=function(d){return d.webPlayerContextConfig?d.webPlayerContextConfig.jsUrl:(d=d.config.assets)?d.js:""},Khd=function(d){return d.webPlayerContextConfig?d.webPlayerContextConfig.cssUrl:(d=d.config.assets)?d.css:""},$gC=function(d,H){if(d.webPlayerContextConfig)var K=d.webPlayerContextConfig.serializedExperimentFlags;
else{var c;if((c=d.config)==null?0:c.args)K=d.config.args.fflags}return(K||"").split("&").includes(H+"=true")},f1g=function(d){for(var H={},K=_.q(Object.keys(d)),c=K.next();!c.done;c=K.next()){c=c.value;
var p=d[c];H[c]=typeof p==="object"?_.rs.clone(p):p}return H};var oP4={},GEY="player_uid_"+(Math.random()*1E9>>>0);var dj=function(d,H,K,c,p,g){H=H===void 0?document.createElement("div"):H;this.webPlayerContextConfig=d;this.container=H;this.commandResolver=K;this.apiResolver=lN1();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.ki;c||g?GEd(this):oPl(this);this.pendingPlayerResponse=c;this.pendingWatchNextResponse=p;this.pendingPlayerVars=g;qyl(this)};
dj.prototype.loadVideoWithPlayerResponse=function(d,H,K){this.loadVideo(d,H,K)};
dj.prototype.loadVideoWithPlayerVars=function(d){return this.loadVideo(void 0,void 0,d)};
dj.prototype.destroy=function(d){if(d=_.pf(document,d))d=GEY+"_"+_.b1(d),(d=oP4[d])&&d.dispose()};
var lNM=function(d,H){var K;_.l(function(c){if(c.nextAddress==1)return d.pendingWatchNextResponse=H,d.synchronousApi?(K=d.synchronousApi,c.jumpTo(2)):c.yield(d.api,3);c.nextAddress!=2&&(K=c.yieldResult);if(!aNB(d,K))return c.return();d.pendingWatchNextResponse&&(K.updateVideoData({raw_watch_next_response:d.pendingWatchNextResponse}),d.pendingWatchNextResponse=void 0);_.VE(c)})},aNB=function(d,H){var K;
if(!(H==null?0:(K=H.isReady)==null?0:K.call(H))){var c;_.Jf(new _.m1("playerApi is falsey",{synchronousApi:d.synchronousApi,apiResolved:d.apiResolver.resolved,playerApiUndefined:H===void 0,playerApiNull:H===null,playerApiReady:(H==null?void 0:(c=H.isReady)==null?void 0:c.call(H))===!0,playerApiMethods:H?Object.keys(H):[]}));return!1}return!0},e$M=function(d,H){if(typeof d[H]==="function")return d[H]()},kEN=function(d){var H=window,K,c=(K=H.ytplayer)==null?void 0:K.bootstrapPlayerContainer;
if((K=c==null?void 0:c.firstElementChild)&&_.Tw(K,"html5-video-player")){var p,g,a=(p=H.ytplayer)==null?void 0:(g=p.bootstrapWebPlayerContextConfig)==null?void 0:g.contextId;p=d.webPlayerContextConfig.contextId;if(a&&a===p){c!==d.container&&(c=!1,e$M(K,"getPlayerState")===2&&(c=!0),d.container.appendChild(K),c||e$M(K,"playVideo"));var e;if((e=H.ytplayer)==null?0:e.bootstrapPlayerResponse)d.bootstrapPlayerResponse=H.ytplayer.bootstrapPlayerResponse}}},qyl=function(d){var H,K,c,p,g;
_.l(function(a){if(a.nextAddress==1)return d.pageReadyOrDataAvailable?a.jumpTo(2):a.yield(d.pageReadyOrDataAvailableResolver.promise,2);if(a.nextAddress!=4)return!_.h("kevlar_player_unified_player_loading")||v$M()&&HE4()?a.jumpTo(4):a.yield(gP1(),4);kEN(d);if(d.pendingPlayerResponse||d.pendingPlayerVars)H=iEE(d.pendingPlayerResponse,d.pendingWatchNextResponse,d.pendingPlayerVars),d.pendingPlayerResponse&&d.pendingPlayerResponse===d.bootstrapPlayerResponse&&(H.loaded=!0),d.bootstrapPlayerResponse=
void 0;K=aNF(d.container,H,d.webPlayerContextConfig);((c=H)==null?0:c.loaded)&&d.pendingWatchNextResponse?(lNM(d,d.pendingWatchNextResponse),d.pendingPlayerResponse=void 0,d.pendingPlayerVars=void 0):xgB(d);p=function(e){K.removeEventListener("onReady",p);d.synchronousApi=e;d.apiResolver.resolve(e)};
K.addEventListener("onReady",p);d.commandResolver!==void 0&&(g=d.commandResolver,K.addEventListener("innertubeCommand",function(e){g(e)}));
_.VE(a)})};
dj.prototype.loadVideo=function(d,H,K){var c=this,p,g,a,e,k,C,R,V,U;return _.l(function(L){if(L.nextAddress==1)return c.pendingPlayerResponse=d,c.pendingWatchNextResponse=H,c.pendingPlayerVars=K,GEd(c),c.synchronousApi?(p=c.synchronousApi,L.jumpTo(2)):L.yield(c.api,3);L.nextAddress!=2&&(p=L.yieldResult);if(!aNB(c,p))return L.return(new Promise(function(){}));
a=new Promise(function(w){g=w});
e=function(){var w=p.getPlayerResponse();w&&(p.removeEventListener("onVideoDataChange",e),g(w))};
p.addEventListener("onVideoDataChange",e);if(c.pendingPlayerResponse||c.pendingPlayerVars)c.pendingPlayerResponse&&c.pendingPlayerResponse===c.bootstrapPlayerResponse?(g(c.pendingPlayerResponse),c.pendingWatchNextResponse&&lNM(c,c.pendingWatchNextResponse)):(k=iEE(c.pendingPlayerResponse,c.pendingWatchNextResponse,c.pendingPlayerVars),(U=(C=c.pendingPlayerResponse)==null?void 0:(R=C.playerConfig)==null?void 0:(V=R.playbackStartConfig)==null?void 0:V.startPaused)?p.cueVideoByPlayerVars(k.args):p.loadVideoByPlayerVars(k.args)),
xgB(c),c.bootstrapPlayerResponse=void 0;return L.return(a)})};
var oPl=function(d){if(document.readyState==="complete"||document.readyState==="interactive")GEd(d);else{var H=function(){document.removeEventListener("DOMContentLoaded",H);GEd(d)};
document.addEventListener("DOMContentLoaded",H)}},GEd=function(d){d.pageReadyOrDataAvailable=!0;
d.pageReadyOrDataAvailableResolver.resolve()},xgB=function(d){d.pendingPlayerResponse=void 0;
d.pendingWatchNextResponse=void 0;d.pendingPlayerVars=void 0};
_.H3.Object.defineProperties(dj.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var H6=function(d){Wq.call(this,d===void 0?"document_active":d);var H=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(K){H.transition("document_disposed",{event:K})});
window.addEventListener("beforeunload",function(K){H.transition("document_disposed_preventable",{event:K})});
window.addEventListener("unload",function(K){H.transition("document_disposed",{event:K});H.hasRun=new Map})};
_.m(H6,Wq);
H6.prototype.runPreventableDispose=function(d,H){if(!this.hasRun.get("document_disposed_preventable")){d(H==null?void 0:H.event);var K,c;if((H==null?0:(K=H.event)==null?0:K.defaultPrevented)||(H==null?0:(c=H.event)==null?0:c.returnValue)){H.event.returnValue||(H.event.returnValue=!0);H.event.defaultPrevented||H.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
H6.prototype.runDispose=function(d,H){this.hasRun.get("document_disposed")?this.transition("document_active"):(d(H==null?void 0:H.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
H6.prototype.runFlush=function(d,H){d(H==null?void 0:H.event);this.transition("document_active")};
H6.prototype.runActive=function(){};var $x=function(d){Wq.call(this,d===void 0?"document_visibility_unknown":d);var H=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(K){document.visibilityState==="visible"?H.transition("document_visible",{event:K}):H.transition("document_hidden",
{event:K})});
_.h("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(K){H.transition("document_backgrounded",{event:K})}),window.addEventListener("focus",function(K){H.transition("document_foregrounded",{event:K})}))};
_.m($x,Wq);$x.prototype.runVisible=function(d,H){d(H==null?void 0:H.event);_.h("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
$x.prototype.runHidden=function(d,H){d(H==null?void 0:H.event);_.h("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
$x.prototype.runBackgrounded=function(d,H){d(H==null?void 0:H.event)};
$x.prototype.runForegrounded=function(d,H){d(H==null?void 0:H.event)};var K_=function(){this.teardownLifecycle=new H6;this.visibilityLifecycle=new $x};
K_.prototype.install=function(){var d=_.sH.apply(0,arguments),H=this;d.forEach(function(K){H.teardownLifecycle.install(K)});
d.forEach(function(K){H.visibilityLifecycle.install(K)})};var c6=function(){K_.call(this);var d={};this.install((d.document_disposed={callback:this.abortSlisAndFlush},d));_.h("combine_ve_grafts")&&(d={},this.install((d.document_disposed={callback:this.flushInteractionLoggingAttachVes},d)));d={};this.install((d.flush_logs={callback:this.logFinalPayload},d));_.h("web_log_cfg_cee_ks")||_.mf(_.Xp,nPS)};
_.m(c6,K_);var e$1=function(){c6.loggingInstance||(c6.loggingInstance=new c6);return c6.loggingInstance};
c6.prototype.logFinalPayload=function(){if(_.h("web_fp_via_jspb")){var d=new oKU,H=_.Fj();H&&_.UY(d,1,H);H=_.h("jspb_sparse_encoded_pivot")?new Me([{}]):new Me;_.nc(H,380,qod,d);yg5("finalPayload",H);_.h("web_fp_via_jspb_and_json")&&_.Wd("finalPayload",{csn:_.Fj()})}else _.Wd("finalPayload",{csn:_.Fj()})};
c6.prototype.abortSlisAndFlush=function(){Od0(b$);Nq!=null&&Nq.flush()};
c6.prototype.flushInteractionLoggingAttachVes=function(){G4g(_.hR())};
var nPS=function(){var d=_.Fm("CLIENT_EXPERIMENT_EVENTS");if(d){var H=Dfi();d=_.q(d);for(var K=d.next();!K.done;K=d.next())K=K.value,H(K)&&_.Wd("genericClientExperimentEvent",{eventType:K});delete _.Jm.CLIENT_EXPERIMENT_EVENTS}};var CKS={};
CKS.YtPlayerBehavior=[_.jk.YtPlayerListenerBehavior,{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var d=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.ki;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;kEC(function(){d.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.ZQ(this,"pan-down"),_.h("kevlar_pinch_fullscreen")&&_.Ik().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.h("kevlar_pinch_fullscreen")&&_.Ik().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(d,H,K){var c=this;i8(this.useUnifiedPlayer_());if(this.mainAppPlayer_)i8(!1,"MainAppPlayer already created.");else{var p=_.h("kevlar_player_container_query_killswitch")?this.$.container:_.Gn(this.hostElement).querySelector("#container");this.mainAppPlayer_=new dj(this.getWebPlayerContextConfig_(),p,function(g){return _.CM(g,c.hostElement)},d,H,K);
this.mainAppPlayer_.api.then(function(g){c.player_=g;c.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&iQd.resolve(g)})}},
loadVideoWithPlayerResponse:function(d,H){var K=this;if(this.useUnifiedPlayer_()){var c=this.watchNextData,p,g=(p=d.videoDetails)==null?void 0:p.videoId,a,e,k;(p=(a=this.watchNextData)==null?void 0:(e=a.currentVideoEndpoint)==null?void 0:(k=e.watchEndpoint)==null?void 0:k.videoId)&&g!=p&&(c=void 0,_.h("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(d,c,H):this.createMainAppPlayer_(d,c,H);this.mainAppPlayer_.api.then(function(){_.GT(K.hostElement,
"yt-player-updated")})}else this.update(Dh1(d,H))},
loadVideoWithPlayerVars:function(d){var H=this;this.useUnifiedPlayer_()?(_.h("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(d):this.createMainAppPlayer_(void 0,void 0,d),this.mainAppPlayer_.api.then(function(){_.GT(H.hostElement,"yt-player-updated")})):this.update({args:d})},
update:function(d){var H=this;if(this.useUnifiedPlayer_())i8(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(d);var K=ahY(d.args);K&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==K&&Object.assign(d.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(d).then(function(c){_.GT(H.hostElement,"yt-player-updated",_.h("kevlar_player_updated_obsolete_player_killswitch")?
c:void 0)})}_.Xi(new _.m1("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(d){var H=this,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(H.getPlayerPromise(),2);K=c.yieldResult;if(!K)throw Error("uh");d&&H.updatePlayerPlaylist_(d);_.VE(c)})},
acquireApi_:function(d){var H=this;if(this.useUnifiedPlayer_())i8(!1,"Invalid method call in kevlar_unified_player.");else return _.Xp.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(i8(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(K){H.shouldAutoplay_(d)?K.loadVideoByPlayerVars(d.args):K.cueVideoByPlayerVars(d.args)})):this.initPlayerPromise_=this.initPlayerContainer_(d),this.initPlayerPromise_},
initPlayerContainer_:function(d){var H=this;if(this.useUnifiedPlayer_())i8(!1,"Invalid method call in kevlar_unified_player.");else return i8(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Jf(Error("vh")),i8(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.h("kevlar_player_container_query_killswitch")?this.$.container:_.Gn(this.hostElement).querySelector("#container"),gP1().then(function(){var K=H.initPlayer_(d);H.playerResolver_.resolve(K);
return K})},
onPlayerReady_:function(d,H){this.useUnifiedPlayer_()?i8(!1,"Invalid method call in kevlar_unified_player."):(d.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&iQd.resolve(d),H(d))},
maybeCallApiMethodOnElement_:function(d,H){if(typeof d[H]==="function")return d[H]()},
maybeAdoptBootstrapPlayer_:function(){var d=window,H,K=(H=d.ytplayer)==null?void 0:H.bootstrapPlayerContainer;if((H=K==null?void 0:K.firstElementChild)&&H.classList.contains("html5-video-player")){var c,p,g=(c=d.ytplayer)==null?void 0:(p=c.bootstrapWebPlayerContextConfig)==null?void 0:p.contextId;c=this.getWebPlayerContextConfig_().contextId;if(g&&g===c){K!==this.playerContainer_&&(K=!1,this.maybeCallApiMethodOnElement_(H,"getPlayerState")===2&&(K=!0),this.playerContainer_.appendChild(H),K||this.maybeCallApiMethodOnElement_(H,
"playVideo"));var a;if((a=d.ytplayer)==null?0:a.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=d.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(d){var H=this;if(this.useUnifiedPlayer_())i8(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(K){H.maybeAdoptBootstrapPlayer_();var c=d?f1i(d):void 0;c&&c==H.bootstrapPlayerResponse_&&(d.loaded=!0);c=H.playerContainer_;var p=H.getWebPlayerContextConfig_();c=aNF(c,d,p);H.player_=c;H.onPlayerReadyEvent_=H.onPlayerReady_.bind(H,H.player_,K);H.player_.addEventListener("onReady",H.onPlayerReadyEvent_);H.player_.addEventListener("innertubeCommand",
H.onPlayerInnerTubeCommand_.bind(H))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(d){d.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(d){d.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var d=_.Kj().resolve(_.HI).getCurrentPage();d&&d.getScrollTop()<=0?_.ZQ(this,"pan-down"):_.ZQ(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(d){d.isFullscreen()||d.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(d){d.isFullscreen()&&d.toggleFullscreen()})},
updatePlayerPlaylist_:function(d){var H=this,K,c,p;return _.l(function(g){if(g.nextAddress==1)return K=_.Kj().resolve(_.$p(_.tJ)),c=!!(K&&K.playlistComponent&&K.playlistComponent.loopOn),g.yield(H.getPlayerPromise(),2);var a=p=g.yieldResult,e=a.updatePlaylist,k=[];if(_.h("kevlar_player_playlist_use_local_index")){var C,R;var V=(R=(C=d.localCurrentIndex)!=null?C:d.currentIndex)!=null?R:0}else{var U;V=(U=d.currentIndex)!=null?U:0}if(d.contents)for(C=0;C<d.contents.length;C++)if((R=d.contents[C])&&R.playlistPanelVideoRenderer)if(pn1(R)){R=
R.playlistPanelVideoRenderer;U="";R.shortBylineText&&(U=_.jG(R.shortBylineText));var L="";R.title?L=_.jG(R.title):R.unplayableText&&(L=_.jG(R.unplayableText));k.push({author:U,title:L,encrypted_id:R.videoId})}else C<V&&--V;e.call(a,{index:V,list:d.playlistId?d.playlistId:"",loop:c,playlist_title:d.title,playlist_length:k.length,video:k,fetch:0,external_list:"1",title:d.title?d.title:"",playlist_author:d.ownerName?_.jG(d.ownerName):void 0});_.VE(g)})},
focusOnPlayer:function(){_.vV(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var d=this.playerContainer_.querySelector(".html5-video-player");d&&(_.p_(_.Kj().resolve(_.uV)),d.focus())}})},
preparePlayer:function(){var d=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(H){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")H();else{var K=function(){document.removeEventListener("DOMContentLoaded",K);H()};
document.addEventListener("DOMContentLoaded",K)}})).then(function(){return gP1()}).then(function(){d.initPlayerPromise_||d.preparePlayerJobId_||(d.preparePlayerJobId_=_.mf(_.Xp,function(){d.initPlayerPromise_||(d.initPlayerPromise_=d.initPlayerContainer_())}))}):_.Xi(new _.m1("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(d){this.useUnifiedPlayer_()?i8(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(d)||(d.args.autoplay="0")},
shouldAutoplay_:function(d){if(this.useUnifiedPlayer_())i8(!1,"Invalid method call in kevlar_unified_player.");else{var H=this.get("args.el",d);return H&&H!="detailpage"&&this.isMiniplayerActive_()||H&&(H=="sponsorshipsoffer"||H=="handlesclaiming")&&this.get("args.autoplay",d)=="0"?!1:(d=f1i(d))&&this.get("playerConfig.playbackStartConfig.startPaused",d)?!1:!0}},
isMiniplayerActive_:function(){return _.Kj().resolve(_.Fb).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var d=this.getPlayer();if(d){var H=d.getPlayerState();_.h("kevlar_player_check_ad_state_on_stop")&&(H=d.getPlayerState(d.getPresentingPlayerType()));H!=5&&d.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(d,H,K){K=K===void 0?!1:K;var c=this,p,g,a,e;return _.l(function(k){if(k.nextAddress==1)return H||(H=c.hostElement),p=c.useUnifiedPlayer_()?!!c.mainAppPlayer_:!!c.initPlayerPromise_,p?k.yield(c.getPlayerPromise(),2):(K?d.insertBefore(H,d.firstChild):d.appendChild(H),k.return());g=k.yieldResult;a=g.getPlayerState(g.getPresentingPlayerType());e=!1;if(a==-1||a==1||a==3)e=!0;K?d.insertBefore(H,d.firstChild):d.appendChild(H);e&&g.playVideo();g.setSize(NaN,NaN);_.VE(k)})},
watchNextDataChanged_:function(d){var H=this;d&&(this.useUnifiedPlayer_()&&_.h("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&lNM(this.mainAppPlayer_,d):this.getPlayerPromise().then(function(K){K.updateVideoData(H.computeWatchNextPlayerVars_(d))}))},
computeWatchNextPlayerVars_:function(d){if(this.useUnifiedPlayer_()&&_.h("kevlar_unified_player_update_watch_next_killswitch"))i8(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:d}},
maybeSendAbandonmentPing_:function(){var d=this.getPlayer();d&&d.getPlayerState()!=5&&d.getPlayerState()!=0&&d.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var d=_.Fm("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(d=Object.assign({},d),d.rootElementId=this.playerId);d.serializedExperimentIds&&d.serializedExperimentFlags||_.Jf(Error("wh"));return d},
hasWebPlayerContextConfig_:function(){return!!_.Fm("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(d){this.useUnifiedPlayer_()?i8(!1,"Invalid method call in kevlar_unified_player."):_.CM(d,this.hostElement)},
useUnifiedPlayer_:function(){var d=_.h("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.h("kevlar_unified_player")||d}}];var R$C={};R$C.YtPlaylistPanelBehavior=[_.b.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(d){d=d.detail;if(d.actions.loop!=void 0||d.actions["yt-icons:loop"]!=void 0)this.loopOn=d.actions.loop||d.actions["yt-icons:loop"];if(d.actions.shuffle!=void 0||d.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=d.actions.shuffle||d.actions["yt-icons:shuffle"]},
setMenuData_:function(d){if(!d||!d.playlistButtons||d.isInfinite)return null;for(var H=d.playlistButtons.menuRenderer.topLevelButtons,K=H.length,c=0;c<K;c++)if(H[c].toggleButtonRenderer){var p=H[c].toggleButtonRenderer;p.defaultIcon.iconType=="LOOP"&&this.loopOn?p.isToggled=this.loopOn:p.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(p.isToggled=this.shuffleOn)}return d.playlistButtons}}];var Vrg=function(d){ou.call(this,d,132);this.isDocument=d===document.documentElement};
_.m(Vrg,ou);Vrg.prototype.calculateScrollDelta=function(d,H,K){var c=0;d<H?c=d<H-100?-48:-8:d>H+K&&(c=d>H+K+100?48:8);return c};
Vrg.prototype.JSC$11326_onMouseMove=function(d){this.isDocument||(d.clientX=d.event_.pageX,d.clientY=d.event_.pageY);ou.prototype.JSC$11326_onMouseMove.call(this,d)};var gj=function(){var d=_.hB.apply(this,arguments)||this;d._noAccessors=!0;d.scrollElement=document.documentElement;d.JSC$14316_dragListGroup=null;d.dragScrollSupport=null;d.onDraggerCreated=function(H){var K=H.JSC$11322_dragger;K.scrollTarget_=d.scrollElement;H=H.draggerEl;K&&H.menuOpened&&K.setEnabled(!1)};
d.onDragStart=function(H){var K=H.draggerEl;H=H.currDragItem;var c=Object.assign({},H==null?void 0:H.data);c.trackingParams=void 0;K.data=c;K.style.position="absolute";K.style.width=(H==null?void 0:H.clientWidth)+"px";K.style.zIndex="2030";K.onDrag&&K.onDrag();_.h("web_owner_document_fallback_killswitch")?(H=document.querySelector("ytd-app"))&&_.Gn(H).appendChild(K):(H=_.XF(K),(c=H.querySelector("ytd-app"))?_.Gn(c).appendChild(K):H.body.appendChild(K));d.dragScrollSupport=new Vrg(d.scrollElement);
d.dragScrollSupport.horizontalScrolling_=!1;K=d.dragScrollSupport;K.constrainScroll_=!!K.margin_&&!1};
d.onDrop=function(H){d.handleDrop(H);d.dragScrollSupport&&(_.AA(d.dragScrollSupport),d.dragScrollSupport=null)};
d.onReorderableScroll=function(){if(d.JSC$14316_dragListGroup){var H=d.JSC$14316_dragListGroup;Gn3(H,H.currDragItem_)}};
return d};
_.m(gj,_.hB);gj.prototype.detached=function(){_.Ugd(this)};
_.Ugd=function(d){d.JSC$14316_dragListGroup&&(_.Cq(d.JSC$14316_dragListGroup,viA,d.onDragStart),_.Cq(d.JSC$14316_dragListGroup,KJM,d.onDragStart),d.JSC$14316_dragListGroup.dispose(),d.JSC$14316_dragListGroup=null);d.dragScrollSupport&&(_.AA(d.dragScrollSupport),d.dragScrollSupport=null);d.scrollElement.removeEventListener("scroll",d.onReorderableScroll)};
_.h$g=function(d,H,K,c){c=c===void 0?"":c;_.Ugd(d);K&&(d.scrollElement=K);d.JSC$14316_dragListGroup=new Qc;d.JSC$14316_dragListGroup.hysteresisDistance_=2;pjB(d.JSC$14316_dragListGroup,H);d.JSC$14316_dragListGroup.draggerElClasses_=kY("dragging").split(" ");c&&gfB(d.JSC$14316_dragListGroup,function(p){var g=p||document,a=null;g.getElementsByClassName?a=g.getElementsByClassName(c)[0]:a=JNM("*",c,p);return a||p});
_.Iq(d.JSC$14316_dragListGroup,AcB,d.onDraggerCreated);_.Iq(d.JSC$14316_dragListGroup,viA,d.onDragStart);_.Iq(d.JSC$14316_dragListGroup,KJM,d.onDrop);d.JSC$14316_dragListGroup.init();d.scrollElement.addEventListener("scroll",d.onReorderableScroll,{passive:!0})};
gj.prototype.handleDrop=function(){};
_.H3.Object.defineProperties(gj.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.t([_.r({value:100}),_.O("design:type",Number)],gj.prototype,"scrollMargin",void 0);_.t([_.LK()],gj);_.LhX=[gj.prototype];_.i3={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(d,H,K){var c=this.getClickTarget_(H);if(c&&this.isClickAllowed_(c)){H.preventDefault();d=(0,_.rs.unsafeClone)(d);var p=this.getContainerBoundingRect();H=this.getRelativeClickXy_(H,p);this.expandEndpointUrlMacros_(d,{NX:H[0],NY:H[1],NB:c.code});K&&this.truncateWebCommendMetadataUrl_(d);_.GT(this.hostElement,"yt-navigate",{endpoint:d})}},
getClickTarget_:function(d){if(!this.clickTargetMap)return null;d=_.jh(d)||[];d=_.q(d);for(var H=d.next();!H.done;H=d.next()){H=H.value;if(H===_.Gn(this.hostElement).querySelector("#menu"))break;if(H=this.clickTargetMap.get(H.id))return H}return null},
getRelativeClickXy_:function(d,H){var K=d.detail.x,c=d.detail.y;_.h("use_on_click_for_desktop_display_ad")&&d.clientX!=null&&d.clientY!=null&&(K=d.clientX,c=d.clientY);d=Math.round(K-H.left);H=Math.round(c-H.top);return d<0||H<0?[null,null]:[d,H]},
getContainerBoundingRect:function(){return _.Gn(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(d,H){for(var K=_.q(d.loggingUrls||[]),c=K.next();!c.done;c=K.next())c=c.value,c.baseUrl&&(c.baseUrl=A_h(c.baseUrl,H));d.urlEndpoint&&d.urlEndpoint.url&&(d.urlEndpoint.url=A_h(d.urlEndpoint.url,H));d.commandMetadata&&d.commandMetadata.webCommandMetadata&&d.commandMetadata.webCommandMetadata.url&&(d.commandMetadata.webCommandMetadata.url=A_h(d.commandMetadata.webCommandMetadata.url,H))},
truncateWebCommendMetadataUrl_:function(d){if(d.commandMetadata&&d.commandMetadata.webCommandMetadata&&d.commandMetadata.webCommandMetadata.url){var H=d.commandMetadata.webCommandMetadata.url,K=H.indexOf("&pp=");if(K>0){var c=H.indexOf("&",K+1);d.commandMetadata.webCommandMetadata.url=c>K&&c<H.length?H.slice(0,K)+H.slice(c):H.slice(0,K)}}},
configureClickTargets:function(d,H,K){this.containerId=d;this.clickTargetMap=new Map;d=_.q(H);for(H=d.next();!H.done;H=d.next())if(H=H.value,H.location){var c=K.get(H.location);c&&(_.qr(_.Gn(this.hostElement).querySelector("#"+c),"yt-simple-endpoint",this.isClickAllowed_(H)),this.clickTargetMap.set(c,H))}},
isClickAllowed_:function(d){return d.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||d.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||d.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||d.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.Gr={};
_.Gr.YtLazyListBehavior=[_.pd.YtTaskEmitterBehavior,{_noAccessors:!0,properties:{initialCount:{type:Number,value:4},targetFramerate:{type:Number,value:20},minChunkSize:{type:Number,value:1},autoFill:{type:Boolean,value:!1},disableAutoFill:{type:Boolean,value:!1},shownItems:Array,shownCount:{type:Number,value:0},canShowMore:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"onCanShowMoreUpdated_"},renderDelay:Number,targetFrameTime_:{type:Number,computed:"computeFrameTime_(targetFramerate)"},canScheduleJobs:{type:Boolean,
value:!0,observer:"canScheduleJobsChanged_"}},itemsPath:"data.items",beforeRegister:function(){if(this.itemsPath)if(this.getItemsPath&&this.getItemsPath instanceof Function&&(this.itemsPath=this.getItemsPath()),this.useSignals)this.addReactiveSchema({type:"observe",method:{methodName:"deepLazyListObserver_",args:[{type:"wildcard",path:this.itemsPath}]}});else{var d=(this.constructor.generatedFrom||this).observers;d||(d=[]);d.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
d}},
created:function(){this.boundRenderChunk_=this.renderChunk_.bind(this);this.items_=null;this.lazyListRenderJobId_=this.chunkCount_=this.lastChunkTime_=this.length_=0;this.nonDeferredItemCount=-1;this.renderElementsOutsideVisibleArea_=null;this.partiallyRenderedItems_=new WeakSet},
fillRemainingListItems:function(){this.fillRange_(this.shownCount,this.length_)},
renderDeferredElements:function(){var d=this.renderElementsOutsideVisibleArea_;d&&(VIl(d,4),d.processSignal())},
deepLazyListObserver_:function(d){var H=this;if(d){var K=d.value||[];if(this.itemsPath==d.path){var c=this.nonDeferredItemCount;d=0;c>-1&&K.length>c&&(d=_.Fm("REMAINING_DOVA_DEFERRED_CHUNKS",-1));d>0?(c>0&&(c=K.slice(0,c),this.setInitialItemsOnDataChanged(c)),(c=this.renderElementsOutsideVisibleArea_)?c.cancel():(c=this.renderElementsOutsideVisibleArea_=new _.iq(2,"eocs"),_.SGD(window,"scroll",function(){return H.renderDeferredElements()})),_.Gm(c,function(){H.setInitialItemsOnDataChanged(K)}),_.sS("REMAINING_DOVA_DEFERRED_CHUNKS",
d-1)):this.setInitialItemsOnDataChanged(K)}else if(this.itemsPath+".splices"==d.path)this.onItemsUpdated_(K);
else c="shownItems"+d.path.substr(this.itemsPath.length),this.useSignals&&c==="shownItems.length"||this.notifyPath(c,d.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(d){d&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(d),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(d){d=d.indexSplices;for(var H=0,K=d.length;H<K;H++){var c=d[H];if(c.index<this.shownCount&&(c.removed&&this.splice("shownItems",c.index,c.removed.length),c.addedCount)){var p=c.object.slice(c.index,c.index+c.addedCount);c=["shownItems",c.index,0];c.push.apply(c,p);this.splice.apply(this,c)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(d){this.cancelPendingTasks_();d||(d=[]);this.items_=d;this.length_=this.items_.length;this.shownItems=this.items_.slice(0,this.initialCount);this.shownCount=this.shownItems.length;this.canShowMore=this.shownCount<this.length_;this.autoFill&&(_.Qx("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.vV(this,this.tryRenderChunk_)))},
fillRange_:function(d,H){this.canShowMore&&this.items_&&(d=this.items_.slice(d,H),d.unshift("shownItems"),this.push.apply(this,d),this.shownCount=H,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var d=this;this.canShowMore&&_.yP(this,"renderChunk",function(){d.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Qx("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.rB(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var d=this.renderElementsOutsideVisibleArea_;d&&(d.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var d=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(d-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=d;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(d){return Math.ceil(1E3/d)},
onCanShowMoreUpdated_:function(d){this.data&&this.items_!==null&&(d?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(d){!this.shouldUseTaskManager()&&this.data&&(!d&&this.canShowMore?(_.ZkL(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):d&&this.partiallyRenderedItems_.has(this.items_)&&(_.h("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var aL;_.oL={};
aL=function(){var d=_.hB.apply(this,arguments)||this;d.atStart=!0;d.atEnd=!0;d.startIndex=0;d.endIndex=0;d.scrollCount=0;d.initialStartIndex=0;d.disableScrollEventListener=!1;d.useFloorScrolling=!1;d.isSearch=!1;d.dragging=!1;d.dragMouseStart=0;d.dragOffsetStart=0;d.disableWheelScroll=!1;d.centerListItems=!1;d.offset=0;d.minComponentWidth=0;d.marginWidthRight=0;d.marginWidthLeft=0;d.setButtonsStateRequested=!1;d.itemsVisibilityObserver=null;d.fullyVisibleItemsIndices=[];d.JSC$14327_onWheelScroll=function(H){if(d.isSearch&&
!d.disableWheelScroll&&_.h("desktop_enable_dmpanel_wheel_scroll")){var K=H.shiftKey?Math.abs(H.deltaY)>Math.abs(H.deltaX)?H.deltaY:H.deltaX:H.deltaX;K!==0&&(H.preventDefault(),d.ytLazyListBehavior.fillRemainingListItems(),d.offset+=K,qi(d),d.reposition_())}};
d.onPointerDown=function(H){MrU(d)&&(d.dragMouseStart=H.clientX,d.dragOffsetStart=d.offset,d.dragging=!0)};
d.onPointerMove=function(H){MrU(d)&&d.dragging&&(d.ytLazyListBehavior.fillRemainingListItems(),d.offset=d.dragOffsetStart-(H.clientX-d.dragMouseStart),qi(d),d.reposition_())};
d.onPointerUp=function(){MrU(d)&&(d.dragging=!1)};
return d};
_.m(aL,_.hB);var mg7=function(d){var H=_.Gn(d.hostElement).querySelector("#items").children;if(!H)return 0;var K=0;d=_.q(d.fullyVisibleItemsIndices);for(var c=d.next();!c.done;c=d.next())K+=H[c.value].clientWidth;return K},MrU=function(d){return d.isSearch&&_.h("desktop_enable_dmpanel_click_drag_scroll")};
aL.prototype.created=function(){this.cachedViewportWidth=_.Fm("initialInnerWidth")||window.innerWidth;this.JSC$14327_cachedViewportHeight=_.Fm("initialInnerHeight")||window.innerHeight;_.Fm("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.sS("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
aL.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.h("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();wX6(this)};
aL.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.h("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var d;(d=this.itemsVisibilityObserver)==null||d.disconnect();this.itemsVisibilityObserver=null;var H;(H=this.itemsObserver)==null||H.disconnect()};
var wX6=function(d){var H=_.Gn(d.hostElement).querySelector("#scroll-container");if(H){if(!d.itemsVisibilityObserver){var K=window.getComputedStyle(H).marginRight;d.itemsVisibilityObserver=new IntersectionObserver(function(c){PKd(d,c)},{root:H,
rootMargin:K,threshold:.98})}if(H=_.Gn(d.hostElement).querySelector("#items"))d.itemsObserver=new Q6g(H,function(c){u3M(d,c)})}},u3M=function(d,H){INg(d)&&(Array.from(H.addedNodes).filter(function(K){return K.nodeType===Node.ELEMENT_NODE}).forEach(function(K){d.itemsVisibilityObserver&&d.itemsVisibilityObserver.observe(K)}),Array.from(H.removedNodes).filter(function(K){return K.nodeType===Node.ELEMENT_NODE}).forEach(function(K){d.itemsVisibilityObserver&&d.itemsVisibilityObserver.unobserve(K)}))},
PKd=function(d,H){var K=new Set(d.fullyVisibleItemsIndices);
H=_.q(H);for(var c=H.next();!c.done;c=H.next()){c=c.value;var p=c.target.parentElement;p?(p=Array.from(p.children).indexOf(c.target),c.isIntersecting?K.add(p):K.has(p)&&K.delete(p)):_.Jf(new _.m1("Parent element not found",c.target.nodeName))}d.fullyVisibleItemsIndices=Array.from(K).sort(function(g,a){return g-a});
K.size===0?_.Jf(new _.m1("No visible entries in horizontal list")):(d.startIndex=d.fullyVisibleItemsIndices[0],d.endIndex=d.fullyVisibleItemsIndices[d.fullyVisibleItemsIndices.length-1])},INg=function(d){d.data?d=(d=d.data)&&d.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===d.itemSizeConstraint:!1:d=!1;
return d};
_.G=aL.prototype;_.G.addScrollEventListeners=function(){var d=_.Gn(this.hostElement).querySelector("#scroll-container");d.style.touchAction="pan-y";d.addEventListener("wheel",this.JSC$14327_onWheelScroll);d.addEventListener("pointerdown",this.onPointerDown);d.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.G.removeScrollEventListeners=function(){var d=_.Gn(this.hostElement).querySelector("#scroll-container");d.removeEventListener("wheel",this.JSC$14327_onWheelScroll);d.removeEventListener("pointerdown",this.onPointerDown);d.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.G.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.vV(this,this.setStartIndex,[this.initialStartIndex])};
_.G.reposition_=function(){var d=_.Fm("HTML_DIR")=="rtl"?"":"-",H=_.Gn(this.hostElement).querySelector("#items");H&&(H.style.transform="translateX("+d+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.G.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.vV(this,this.setButtonsState_))};
_.G.setButtonsState_=function(){this.setButtonsStateRequested=!1;var d=_.Gn(this.hostElement).querySelector("#items").firstElementChild;if(d){this.minComponentWidth||(this.minComponentWidth=r3B(this,d));d=_.Gn(this.hostElement).querySelector("#scroll-container").clientWidth;var H=_.Gn(this.hostElement).querySelector("#items");H=_.h("kevlar_horizontal_list_scroll_width_killswitch")?H.clientWidth:H.scrollWidth;var K=this.get(this.ytLazyListBehavior.itemsPath,this);if(K){var c=Math.round(d/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+c,K.length)-1)}this.ytLazyListBehavior.canShowMore?H+this.minComponentWidth>=this.offset+d&&(this.atEnd=!1):this.atEnd=this.offset+d>=H-20?!0:!1;this.atStart=this.offset<=20}};
_.G.setStartIndex=function(d){if(!this.minComponentWidth){var H=_.Gn(this.hostElement).querySelector("#items").firstElementChild;if(!H)return;this.minComponentWidth=r3B(this,H)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*d;qi(this);this.reposition_()};
_.G.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.eL();var d=_.Gn(this.hostElement).querySelector("#scroll-container").clientWidth;_.h("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=r3B(this,_.Gn(this.hostElement).querySelector("#items").firstElementChild));d=this.useFloorScrolling?Math.floor(d/this.minComponentWidth)||1:Math.round(d/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&WhB(this);this.offset+=INg(this)?
mg7(this):d*this.minComponentWidth;qi(this);this.reposition_();this.scrollCount++};
_.G.prevClick_=function(){var d=_.Gn(this.hostElement).querySelector("#scroll-container").clientWidth;d=this.useFloorScrolling?Math.floor(d/this.minComponentWidth)||1:Math.round(d/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=INg(this)?mg7(this):this.minComponentWidth*this.scrollCount-1):this.offset-=INg(this)?mg7(this):d*this.minComponentWidth;this.centerListItems&&WhB(this);qi(this);this.reposition_()};
_.G.onIronResize_=function(){this.resizeSupportEnabled&&_.vV(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.G.onItemsTransitionEnd_=function(d){_.v5(d)===_.Gn(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.G.onChildElementFocus_=function(d){d=d.target.closest("#items > *");var H=_.Gn(this.hostElement).querySelector("#scroll-container");if(H.contains(d)){if(_.h("web_horizontal_list_behavior_focus_killswitch"))if(d.offsetLeft<this.offset)this.offset=Math.abs(d.offsetLeft)<d.clientWidth?0:d.offsetLeft;else if(d.offsetLeft+d.clientWidth>this.offset+H.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.eL(),this.offset=d.offsetLeft+d.clientWidth-H.clientWidth;else return;else{var K=_.Gn(this.hostElement).querySelector("#items"),
c=_.Fm("HTML_DIR")==="rtl",p=c?K.clientWidth-d.offsetLeft:d.offsetLeft;K=c?K.clientWidth-(d.offsetLeft+d.clientWidth):d.offsetLeft+d.clientWidth;var g=c?p>this.offset+H.clientWidth:p<this.offset,a=c?K<this.offset:K>this.offset+H.clientWidth,e=c?g:a;if(c?a:g)H=c?K:p,this.offset=Math.abs(H)<d.clientWidth?0:H;else if(e)this.ytLazyListBehavior.fillRemainingListItems(),_.eL(),this.offset=(c?p:K)-H.clientWidth;else return}qi(this);this.reposition_()}};
_.G.observeShownItems_=function(){this.reset()};
_.G.checkComponentWidthResize=function(){var d=_.Gn(this.hostElement).querySelector("#items").firstElementChild;d&&(d=r3B(this,d),this.centerListItems||d!==this.minComponentWidth)&&(this.minComponentWidth=d,this.offset=d*this.scrollCount,this.centerListItems&&WhB(this),qi(this),this.reposition_())};
var r3B=function(d,H){var K=window.getComputedStyle(H).marginRight;K=Math.floor(Number(K.replace("px","")));var c=window.getComputedStyle(H).marginLeft;c=Math.floor(Number(c.replace("px","")));d.centerListItems&&!d.marginWidthRight&&(d.marginWidthRight=K,d.marginWidthLeft=c);return d.resizeSupportEnabled?H.getBoundingClientRect().width+K:H.offsetWidth+K},qi=function(d){var H=_.Gn(d.hostElement).querySelector("#scroll-container").clientWidth,K=_.Gn(d.hostElement).querySelector("#items").clientWidth;
d.offset<0?d.offset=0:d.offset+H>=K&&(d.offset=K-H)},WhB=function(d){d.offset-=(_.Gn(d.hostElement).querySelector("#scroll-container").clientWidth+d.marginWidthRight-d.minComponentWidth)/2-d.marginWidthLeft};
_.H3.Object.defineProperties(aL.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var d=_.Fm("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(d==-1)d=this.JSC$14327_cachedViewportHeight,d=d>1320?5:d>1020?4:d>730?3:d>430?2:1;else if(d==0)return 0;_.sS("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",d-1);d=_.Fm("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(d>-1)return d;d=this.cachedViewportWidth;d=d>1600?6:d>1400?5:d>1300?4:d>1090?5:d>870?4:d>660?3:2;_.sS("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
d);return d},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.h("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
aL.prototype.observeShownItems_=aL.prototype.observeShownItems_;aL.prototype.onChildElementFocus_=aL.prototype.onChildElementFocus_;aL.prototype.onItemsTransitionEnd_=aL.prototype.onItemsTransitionEnd_;aL.prototype.onIronResize_=aL.prototype.onIronResize_;aL.prototype.prevClick_=aL.prototype.prevClick_;aL.prototype.nextClick_=aL.prototype.nextClick_;aL.prototype.setButtonsState_=aL.prototype.setButtonsState_;aL.prototype.requestButtonsStateUpdate_=aL.prototype.requestButtonsStateUpdate_;
aL.prototype.reposition_=aL.prototype.reposition_;aL.prototype.reset=aL.prototype.reset;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Gr.YtLazyListBehavior),_.O("design:type",Object)],aL.prototype,"ytLazyListBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],aL.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],aL.prototype,"atStart",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],aL.prototype,"atEnd",void 0);_.t([_.r(),_.O("design:type",Object)],aL.prototype,"startIndex",void 0);_.t([_.r(),_.O("design:type",Object)],aL.prototype,"endIndex",void 0);_.t([_.r({value:6}),_.O("design:type",Number)],aL.prototype,"initialCount",void 0);_.t([_.r(),_.O("design:type",Object)],aL.prototype,"scrollCount",void 0);_.t([_.r(),_.O("design:type",Object)],aL.prototype,"initialStartIndex",void 0);
_.t([_.r(),_.O("design:type",Object)],aL.prototype,"disableScrollEventListener",void 0);_.t([_.r(),_.O("design:type",Object)],aL.prototype,"supportComponentResize",void 0);_.t([_.r({value:function(){var d=this;return function(){return d.prevClick_()}}}),
_.O("design:type",Function)],aL.prototype,"boundPrevClick",void 0);_.t([_.r({value:function(){var d=this;return function(){return d.nextClick_()}}}),
_.O("design:type",Function)],aL.prototype,"boundNextClick",void 0);_.t([_.r(),_.O("design:type",Object)],aL.prototype,"useFloorScrolling",void 0);_.t([_.r(),_.O("design:type",Object)],aL.prototype,"isSearch",void 0);_.t([_.r(),_.O("design:type",Object)],aL.prototype,"dragging",void 0);_.t([_.r(),_.O("design:type",Object)],aL.prototype,"dragMouseStart",void 0);_.t([_.r(),_.O("design:type",Object)],aL.prototype,"dragOffsetStart",void 0);
_.t([_.r(),_.O("design:type",Object)],aL.prototype,"disableWheelScroll",void 0);_.t([_.r(),_.O("design:type",Object)],aL.prototype,"centerListItems",void 0);_.t([_.nK("iron-resize"),_.CK("guideOpened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],aL.prototype,"onIronResize_",null);_.t([_.nK("transitionend"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],aL.prototype,"onItemsTransitionEnd_",null);
_.t([_.nK("focusin"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],aL.prototype,"onChildElementFocus_",null);_.t([_.CK("shownItems"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],aL.prototype,"observeShownItems_",null);_.t([_.LK()],aL);_.oL.YtdHorizontalListBehavior=[];_.oL.YtdHorizontalListBehavior.push(_.WZ,_.b.YtRendererBehavior,_.Gr.YtLazyListBehavior,_.bF.YtdGuideStateAwareBehavior,aL.prototype);var nPl=["APP_STATE","PI"];var BC0=_.y$(["about:blank"]),z$g={pushState:window.history.pushState,replaceState:window.history.replaceState};var l3=function(d){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=d;this.internalPushState=d.pushState.bind(d);this.internalReplaceState=d.replaceState.bind(d)};
l3.prototype.init=function(){this.initialized=!0};
l3.prototype.pushState=function(d,H){this.initialized||this.init();this.internalPushState&&this.internalPushState(d,"",H)};
l3.prototype.replaceState=function(d,H){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(d,"",H)};
l3.prototype.getState=function(){return this.history&&this.history.state};var XX7=function(d){var H=function(){var K=d.apply(this,arguments)||this;K.boundHistoryPushState=!1;K.boundHistoryReplaceState=!1;K.debugInfo={};return K};
_.m(H,d);H.prototype.init=function(){var K=_.x1("IFRAME");_.OH(K,_.pB(BC0));K.sandbox="allow-same-origin";K.style.display="none";this.iframe=K;document.body.appendChild(K);this.bindHistoryStateFunctions();d.prototype.init.call(this)};
H.prototype.bindHistoryStateFunctions=function(){var K=this,c=[],p;this.iframe&&((p=this.iframe.contentWindow)==null?0:p.history)&&(p=this.iframe.contentWindow.history)&&(c.push(p),Object.getPrototypeOf(p)&&c.push(Object.getPrototypeOf(p)));window.history&&c.push(window.history);p=window.history;Object.getPrototypeOf(p)&&c.push(Object.getPrototypeOf(p));c.push(z$g);p=function(a){for(var e=null,k=0;k<c.length;k++){var C=c[k][a];if(typeof C==="function"){e=C.bind(window.history);K.debugInfo[a]=k;break}}return e};
if(!this.boundHistoryReplaceState){var g=p("replaceState");g&&(this.internalReplaceState=g,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(p=p("pushState"))&&(this.internalPushState=p,this.boundHistoryPushState=!0)};
return H}(l3),J3N=function(){return XX7.call(this,window.history)||this};
_.m(J3N,XX7);J3N.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var e9=function(d){this.browserHistory=d;this.initialized=!1};
e9.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
e9.prototype.pushState=function(d,H){this.initialized||this.init();this.browserHistory.pushState(d,H)};
e9.prototype.replaceState=function(d,H){this.initialized||this.init();this.browserHistory.replaceState(d,H)};
e9.prototype.handlePopstate=function(d){return d.state};_.s7A=function(d,H,K,c,p){this.endpoint=d;this.forward=H;this.historyEntry=K;this.JSC$30038_savedComponentState=c;this.legacyBorder=p===void 0?!1:p};var FhU=function(d,H){this.rootData=d;this.scrollTop=H};var Ui=new _.Av("PAGE_REQUEST_TOKEN"),Dz0=new _.Av("FETCH_PBJ_TOKEN");_.kx=new _.Av("EPHEMERAL_STORE_TOKEN");_.xx=function(d){this.data=Object.assign({},d);var H;(H=this.data.innertubeResponse)==null||delete H.frameworkUpdates};
_.xx.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.$G)()};
_.d5=function(d){return Object.assign({},d.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var ZE0=function(){this.maxSize=100;this.timeToDataCache=new Map};
ZE0.prototype.get=function(d){var H=this.timeToDataCache.get(d);H&&(this.timeToDataCache.delete(d),this.timeToDataCache.set(d,H));if(H&&H.rootData&&(_.h("web_use_response_store_for_history_cache")||_.h("mweb_use_new_history_manager"))){var K=_.Kj().resolve(_.kx),c=TCA(H),p=!!c;if(c){if(c.content){var g=n_(K,c.content);p&&g?H.rootData.response=_.d5(g):p=!1}c.player&&(g=n_(K,c.player),p&&g?H.rootData.playerResponse=_.d5(g):p=!1);c.reelSequence&&(K=n_(K,c.reelSequence),p&&K?H.rootData.reelWatchSequenceResponse=
_.d5(K):p=!1)}p||(this.timeToDataCache.delete(d),H=void 0)}return H};
ZE0.prototype.set=function(d,H){if(H.rootData&&(_.h("web_use_response_store_for_history_cache")||_.h("mweb_use_new_history_manager"))){var K=TCA(H),c=Object.assign({},H.rootData);K&&(K.content&&H.rootData.response&&(Q7d(this,K.content,H.rootData.response),c.response=null),K.player&&H.rootData.playerResponse&&(Q7d(this,K.player,H.rootData.playerResponse),c.playerResponse=null),K.reelSequence&&H.rootData.reelWatchSequenceResponse&&(Q7d(this,K.reelSequence,H.rootData.reelWatchSequenceResponse),c.reelWatchSequenceResponse=
null));H=new FhU(c,H.scrollTop)}this.timeToDataCache.has(d)?this.timeToDataCache.delete(d):this.timeToDataCache.size>=this.maxSize&&(K=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(K.value));this.maxSize!==0&&this.timeToDataCache.set(d,H)};
ZE0.prototype.clear=function(){this.timeToDataCache.clear()};
var TCA=function(d){var H=_.Kj().resolve(_.$p(Ui)),K;if((K=d.rootData)==null?0:K.endpoint)return H==null?void 0:pP4(H,d.rootData.endpoint);var c;_.Jf(new _.m1("History snapshot response data does not contain endpoint",(c=d.rootData)==null?void 0:c.url));return null},Q7d=function(d,H,K){if(d.maxSize>0){var c;
(d=(c=K.responseContext)==null?void 0:c.maxAgeSeconds)&&Number(d)>0&&(c=_.Kj().resolve(_.kx),K=qV(K,d),c.put(H,new _.xx(K)))}};var trC=function(d,H,K){this.endpoint=H;this.JSC$30043_savedComponentState=K===void 0?null:K;this.entryTime=d};var LhF=1;var C_=function(d){var H=function(){var K=d.apply(this,[].concat(_.ru(_.sH.apply(0,arguments))))||this;K.historyEntryTime=0;K.historySnapshotCache=K.createHistoryCache();return K};
_.m(H,d);H.prototype.createHistoryCache=function(){return new ZE0};
H.prototype.saveAndReplace=function(K,c,p){var g=window.location.href;var a=a===void 0?{}:a;var e=(e=this.browserHistory.getState())&&e.entryTime?e.entryTime:Mrf();K=this.createNewHistoryEntry(K,a,e);this.saveSnapshot(e,c,p);this.replaceState(K,g||window.location.href)};
H.prototype.saveAndPush=function(K,c,p,g,a){a=a===void 0?{}:a;this.saveSnapshot(this.historyEntryTime,p,g);p=this.historySnapshotCache;g=this.historyEntryTime;var e=p.timeToDataCache.keys();e=_.q(e);for(var k=e.next();!k.done;k=e.next())k=k.value,k>g&&p.timeToDataCache.delete(k);c=this.createNewHistoryEntry(c,a);this.pushState(c,K)};
H.prototype.saveSnapshot=function(K,c,p){this.historySnapshotCache.set(K,new FhU(c,p))};
H.prototype.createNewHistoryEntry=function(K,c,p){p=p===void 0?Mrf():p;return new trC(p,K,c)};
H.prototype.handlePopstate=function(K){var c=d.prototype.handlePopstate.call(this,K),p=null,g=null,a=!1,e=null;c&&c.entryTime&&(e=this.historySnapshotCache.get(c.entryTime)||null,a=c.entryTime>this.historyEntryTime,this.historyEntryTime=c.entryTime,p=c.endpoint,g=c.JSC$30043_savedComponentState);this.handleHistoryCacheLoad(new _.s7A(p,a,e,g),K);return c};
H.prototype.pushState=function(K,c){Number(K==null?void 0:K.entryTime)>=0&&(this.historyEntryTime=K.entryTime);d.prototype.pushState.call(this,K,c)};
H.prototype.replaceState=function(K,c){Number(K==null?void 0:K.entryTime)>=0&&(this.historyEntryTime=K.entryTime);d.prototype.replaceState.call(this,K,c)};
H.prototype.handleHistoryCacheLoad=function(){};
return H}(e9),YyU=function(){var d=C_.call(this,new J3N)||this;
d.dispatchElement=null;d.entryIndex=0;return d};
_.m(YyU,C_);_.G=YyU.prototype;_.G.init=function(d){d=d===void 0?!0:d;C_.prototype.init.call(this);this.initialized||(d||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.G.handlePopstate=function(d){var H=null;d.state||(H="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return C_.prototype.handlePopstate.call(this,d);var K=new CustomEvent("yt-history-pop",{cancelable:!0});_.oF(this.dispatchElement,"yt-history-pop",[K,{errorMsg:H}]);_.qo(this.dispatchElement,"yt-close-all-popups-action");if(!K.defaultPrevented){K=_.Kj().resolve(_.HI);H=K.getCurrentData();var c=K.getCurrentPage();K=0;c?(c=_.oF(this.dispatchElement,"yt-get-page-offset",
[c]),c.length>0&&(K=c[0])):_.Jf(new _.m1("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:H?H.page:"undefined"}));H&&(H.csn=_.Fj());this.saveSnapshot(this.historyEntryTime,H,K)}return C_.prototype.handlePopstate.call(this,d)};
_.G.handleHistoryCacheLoad=function(d,H){d.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.q(_.qo(this.dispatchElement,"yt-history-will-navigate",[H])).next().value||_.oF(this.dispatchElement,"yt-history-load",[H,d]))};
_.G.pushState=function(d,H){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var K=new _.m1("history.pushState is not a function",this.getDebugString());_.z5(K)}C_.prototype.pushState.call(this,d,H)};
_.G.replaceState=function(d,H){if(!this.browserHistory.boundHistoryReplaceState){var K=new _.m1("history.replaceState is not a function",this.getDebugString());_.z5(K)}C_.prototype.replaceState.call(this,d,H)};
_.G.saveAndPush=function(d,H,K,c,p){p=p===void 0?{}:p;K&&(K.csn=_.Fj());C_.prototype.saveAndPush.call(this,d,H,K,c,p)};
_.G.getDebugString=function(){var d=[];this.initialized&&d.push("i");this.browserHistory.boundHistoryReplaceState&&d.push("bhr");this.browserHistory.boundHistoryPushState&&d.push("bhs");"replaceState"in this.browserHistory.debugInfo&&d.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&d.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&d.push("ei:"+String(this.entryIndex));return d.join(",")};
_.RL=function(d,H){d.init(!0);var K=d.browserHistory.getState();d.replaceState(K,oD(H))};
YyU.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Vr=new _.Av("DESKTOP_HISTORY_MANAGER_TOKEN");var OEA=[10,20,30,40,50,60],Ut=function(){this.currentPartitionIndex=0},SyA=function(d){ATB({mainAppWeb:_.Nv(),
survivalSli:{partitionMinute:d,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},EPC=function(d){ATB({mainAppWeb:_.Nv(),
survivalSli:{partitionMinute:d,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},y3A=function(d){return d.currentPartitionIndex>=0&&d.currentPartitionIndex<OEA.length?OEA[d.currentPartitionIndex]:-1},bE0=function(d){return d.currentPartitionIndex>0&&d.currentPartitionIndex-1<OEA.length?OEA[d.currentPartitionIndex-1]:-1};
Ut.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var d=bE0(this);d>0&&EPC(d);d=y3A(this);d>0&&SyA(d);NCX(this)}};
var NCX=function(d){var H=y3A(d);if(H>0){var K=bE0(d);K<0&&(K=0);d.intervalId=_.Xp.addJob(function(){var c=bE0(d);c>0&&EPC(c);c=y3A(d);c>0&&SyA(c);NCX(d)},3,(H-K)*6E4);
d.currentPartitionIndex+=1}else d.currentPartitionIndex=-1};var DgC=function(){this.skipNextNavigation=!1},fNd=function(d,H,K){if(!H)return!1;
if(d.skipNextNavigation)return d.skipNextNavigation=!1;if(_.M(K,_.yj))return!1;var c,p,g;if((c=_.M(K,_.Lm))==null?0:(p=c.browseEndpointContextSupportedConfigs)==null?0:(g=p.browseEndpointContextMainConfig)==null?0:g.skipConfirmation)return!1;var a;return((a=_.M(H.commandMetadata,_.Co))==null?void 0:a.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
DgC.prototype.showConfirmationDialog=function(d,H){this.navigateParams=H;this.customConfirmationCommand?_.Kj().resolve(_.cb).resolveCommand(this.customConfirmationCommand):(H={openPopupAction:{popup:{confirmDialogRenderer:{title:_.AF(_.Vz("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.AF(_.Vz("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.AF(_.Vz("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.AF(_.Vz("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.bw.getInstance().triggerAction("yt-open-popup-action",H,d))};
DgC.prototype.cancelPendingNavigation=function(){var d;((d=this.navigateParams)==null?void 0:d.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var A3l=function(){},vPl=function(d,H,K,c,p,g,a){K=K===void 0?{}:K;
a=a===void 0?{}:a;var e=_.m9.instance,k,C=(k=_.M(H,_.yj))==null?void 0:k.url;return C?tpL(e,C,K,window.location.href,function(R,V){j7l(d,R,V,!1,!0,K,g,c)},function(){return!1}):Q$(e,H,K,window.location.href,mZ(H),function(R,V){j7l(d,R,V,!1,!0,K,g,c)},p,a)},j7l=function(d,H,K,c,p,g,a,e){if(!d.JSC$14385_chunkHandler)if(K.page==="watch"||K.page==="learning_journey_watch")if(p||c){if(_.h("kevlar_continue_playback_without_player_response")){var k;
var C=(k=_.M(e,_.AP))==null?void 0:k.videoId}d.JSC$14385_chunkHandler=new V6A(_.Kf,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:c,previousVideoId:C},tempData:g},a)}else d.JSC$14385_chunkHandler=new kXB(_.Kf);else K.page==="shorts"&&p&&!c?d.JSC$14385_chunkHandler=new RPN(_.Kf,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:g},a):d.JSC$14385_chunkHandler=new xzA(a);d.JSC$14385_chunkHandler.processChunk({endpoint:H,data:K});return d.JSC$14385_chunkHandler.sq.promise},
d1d=function(d,H,K,c,p){(K=_.oaX(K))&&j7l(d,H,K,!1,!0,c,void 0,p)};var HCd=function(){this.pendingNavigationPromise=null};
_.G=HCd.prototype;_.G.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.G.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.G.addEventListener=function(){throw Error("xh");};
_.G.dispatchEvent=function(){throw Error("xh");};
_.G.removeEventListener=function(){throw Error("xh");};var $1C=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],hI=function(){_.Rj.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];KnX(this)};
_.m(hI,_.Rj);hI.prototype.verifyUser=function(){var d=KnX(this),H=d.logout;if(!d.sessionChange)return!0;this.dispatchEvent("ytsessionchange");H&&this.dispatchEvent("ytuserinvalid");return!1};
var KnX=function(d){var H=$1C.map(function(p){var g;return(g=_.Vm.get(p))!=null?g:""}),K=H.some(function(p,g){return d.sessionCookies&&d.sessionCookies[g]!==""&&p===""}),c=H.some(function(p,g){return d.sessionCookies&&d.sessionCookies[g]!==p});
d.sessionCookies=H;return{logout:K,sessionChange:c}};
hI.prototype.clearTimeout=function(){this.scheduledJobId&&(_.Xp.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var INi=new _.Av("POSTMESSAGE_TUNNEL_TOKEN");var wXX=["/parent_tools","/file_download","/artist_roster"],BCD=[kLC,xfg,nYC,RXA,C1B,eXB,VlS,UfB];var c2S=new _.Av("APP_ROOT");var L_=new _.Av("NAVIGATION_CONFIRMATION_SERVICE");var pHA="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),gBA=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
Mi=function(d,H){this.pendingNavigationPromise=null;this.JSC$14403_clientRoot=d;this.historyManager=H;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new A3l;this.debugString=d.is;d={"yt-signal-action-history-back":this.handleSignalActionHistoryBack,"yt-signal-action-reload-page":this.handleSignalActionReloadPage.bind(this),
"yt-signal-action-soft-reload-page":this.handleSignalActionSoftReloadPage.bind(this),"yt-signal-action-reset-warm-loads":this.handleSignalActionResetWarmLoads.bind(this),"yt-signal-action-close-window":this.handleSignalActionCloseWindow};_.Ne(_.bw.getInstance(),d,this.JSC$14403_clientRoot)},aHS,lH7,e9X,khg,qkA;
_.m(Mi,HCd);Mi.prototype.reload=function(){_.bO(window.location.href)};
var lnX=function(d){d.currentEndpoint&&_.M(d.currentEndpoint,_.P5)?d.reload():d.currentEndpoint&&d.navigate(d.currentEndpoint,!0,void 0,{disableCache:!0})};
Mi.prototype.navigate=function(d,H,K,c,p,g,a,e){H=H===void 0?!1:H;K=K===void 0?{}:K;c=c===void 0?{}:c;var k=_.Kj().resolve(L_),C;if(!a&&fNd(k,(C=this.currentEndpoint)!=null?C:void 0,d))return k.showConfirmationDialog(this.JSC$14403_clientRoot.parentElement,{endpoint:d,reload:H,params:K,tempData:c,requestType:p,createScreenConfig:g}),!1;var R=_.OT();_.Sc(R,"eocs")||R.parkOrScheduleJob(function(){R.processSignal("eocs")},10,"eor");
a=mZ(d);k=c.autonav==="1";C=_.Fj();hI.instance||(hI.instance=new hI);var V=hI.instance.verifyUser(),U;if(_.h("enable_dark_theme_only_on_shorts")){var L=document.documentElement.hasAttribute("dark"),w=_.B5(!0)==="USER_INTERFACE_THEME_DARK";if(a==="shorts"){if(!L)if(_.h("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var W;_.bO((W=_.M(d==null?void 0:d.commandMetadata,_.Co))==null?void 0:W.url,void 0,void 0,window.top)}}else{var J;_.bO(_.DY((J=_.M(d==null?
void 0:d.commandMetadata,_.Co))==null?void 0:J.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.h("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!L){var F;_.bO(_.DY((F=_.M(d==null?void 0:d.commandMetadata,_.Co))==null?void 0:F.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(w!==L){var Y;_.bO(_.DY((Y=_.M(d==null?void 0:d.commandMetadata,_.Co))==null?void 0:Y.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(a==="watch"){if(iCA(_.Kj().resolve(_.Fb),
d)&&(V||_.h("fix_miniplayer_navigation_killswitch")))return!1;_.h("block_all_player_prefetch_requests")||(U=qnN(_.jn(_.wy),d,k))}else{var A,E=(A=_.M(this.currentEndpoint,_.AP))==null?void 0:A.videoId;E&&_.rI.getInstance().then(function(Mf){Mf&&Mf.set("yt-miniplayer-shown-video-id",E)})}U&&(K.frags=U.missingFragments_.join(","));
W=null;var N;J=(N=_.M(d==null?void 0:d.commandMetadata,_.Co))==null?void 0:N.ignoreNavigation;if(!J)if(_.h("kevlar_command_url")){var y;W=(y=_.M(d==null?void 0:d.commandMetadata,_.Co))==null?void 0:y.url}else W=_.rWi(d,K);if(W&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&W==this.lastNavigationUrl)return _.Xw({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.GH(Oo(),"CANCELLED")}W&&(this.lastNavigationUrl=W);aTY();_.sS("IS_HOMEPAGE_COLD",
!1);_.sS("IS_RESULTS_PAGE_COLD",!1);_.sS("IS_WATCH_PAGE_COLD",!1);d.loggingUrls&&d.loggingUrls.forEach(function(Mf){Mf.baseUrl&&_.S7(Mf.baseUrl)});
_.s7h(d,g?g.layer:0)&&_.h("kevlar_flush_logs_on_away_navigation")&&_.Bd();if(z$i(d))return!1;Snl(a,p);if(!W)return J||_.Jf(new _.m1("Can't construct url for endpoint",d)),_.GH(Oo(),"FAILURE"),!1;_.mgM();N=d&&_.M(d,_.Lm)&&_.M(d,_.Lm).browseId.startsWith("UC");K=(y=_.h("enable_dark_theme_only_on_shorts")&&a==="shorts"?!1:_.ze()&&document.documentElement.hasAttribute("dark")!==_.W5())?{themeRefresh:1}:{};y&&!_.hX()&&_.B5()==="USER_INTERFACE_THEME_DARK"&&(K.theme="dark");N=y||GhU(W)&&!N&&!_.h("kevlar_disable_url_allowlist");
V||(N=!0);if(N||_.Fm("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var v;var el=(v=window.top)==null?void 0:v.location.href}catch(Mf){var l1;el=(l1=Mf)==null?void 0:l1.message}_.Jf(new _.m1("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:el}))}d=_.h("kevlar_redirect_on_window_killswitch")?window.top:window;yS(W);_.bO(_.DY(W,K),void 0,void 0,d);_.GH(Oo(),"ABORTED");return!1}_.h("kevlar_early_popup_close")&&_.oF(this.JSC$14403_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14385_chunkHandler=void 0;var V4;el=mZ((V4=this.currentEndpoint)!=null?V4:void 0);(V4=a==="shorts"&&el==="shorts")||_.avF();_.Y2(AgE)("nr",void 0);k&&_.Xw({webInfo:{navigationReason:"an"}});d.clickTrackingParams&&(c.itct=d.clickTrackingParams,c.csn=C);LLY(c);c.endpoint=JSON.stringify(d);_.h("enable_unknown_lact_fix_on_html5")&&(_.Kj().resolve(_.uV),c.lact=_.cd());_.rs.isEmpty(c)||_.Hy(W,c);!_.h("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(g=Object.assign({},{layer:0},g,{parentLayer:3}));this.pendingNavigationPromise=g=vPl(this.pageFetcher,d,c,this.currentEndpoint,this.JSC$14403_isNetworkPromiseStale.bind(this),g,e);g=g.then(this.handleNavigateSuccess.bind(this,g,d,U,c),this.handleNavigateFail.bind(this,g,d));_.UT().navigationFinishPromise=g;H={endpoint:d,pageType:a,url:oD(W),reload:!!H,noProgressBar:V4};p&&(H.type=p);this.fireEvent("yt-navigate-start",H);U&&d1d(this.pageFetcher,d,U,c,this.currentEndpoint);return!0};
Mi.prototype.JSC$14403_isNetworkPromiseStale=function(d){return d!=this.pendingNavigationPromise};
var oBA=function(d,H,K,c,p){var g=mZ(H);H={endpoint:H,pageType:g};p&&(H.errorMessage=p);_.Jf(K);H.navigationDoneMs=_.Fw("nd");H.navigationErrorReason=c;d.fireEvent("yt-navigate-error",H)};
Mi.prototype.handleNavigateFail=function(d,H,K){var c=void 0;K instanceof _.T_&&(c=K,uNL(K));if(this.JSC$14403_isNetworkPromiseStale(d))return _.W1(c);_.GH(Oo(),"FAILURE");oBA(this,H,K,"101");return _.W1(K)};
Mi.prototype.handleNavigateSuccess=function(d,H,K,c,p){if(this.JSC$14403_isNetworkPromiseStale(d))return _.e5();this.pendingNavigationPromise=null;if(!p)return H=new _.m1("Missing data in response for navigation endpoint",H),_.W1(H);if(p.reload)return window.location.reload(!0),_.e5();K&&(d={},_.rs.extend(d,_.oaX(K),p),p=d);var g,a;K=(g=p)==null?void 0:(a=g.timing)==null?void 0:a.responseStart;K!=null&&_.Fw("srt",K);_.Fw("pdc");var e,k;g=(e=p)==null?void 0:(k=e.timing)==null?void 0:k.info;g!=null&&
(e=_.Y2(_.HNF)(g),_.Xw(e));_.GH(Oo(),"SUCCESS");qkA(this,H,p,1,c);return _.e5()};
var GhU=function(d){var H=d;_.h("kevlar_no_redirect_to_classic_2_ks")||(H=(new _.jM(d)).getPath());if(H==="/"||H==="/red")return!1;var K=!0;pHA.forEach(function(c){d.indexOf(c)===0&&(K=!1)});
gBA.forEach(function(c){var p=c.url;_.h(c.expFlag)&&d.indexOf(p)===0&&(K=!1)});
return K};
Mi.prototype.publishPageData=function(d){this.fireEvent("yt-page-data-fetched",{pageData:d})};
aHS=function(d,H,K,c,p,g){var a=null;H.page!=="watch"&&H.page!=="learning_journey_watch"||c?H.filler||_.oF(d.JSC$14403_clientRoot,"yt-stop-old-player",[H]):a=j7l(d.pageFetcher,p,H,K,!1,g,void 0,d.currentEndpoint);if(a)return a.then(d.publishPageData.bind(d,H));d.publishPageData(H);return _.e5()};
lH7=function(d,H,K){var c=null;if(!K)return c=new _.m1("Empty data",d.debugString,H);var p=K.response;if(!p)return c;var g={endpointType:mZ(H)||"unknown"};p.responseContext?(p=p.responseContext.errors)&&(c=new _.m1("Errors in response context",d.debugString,H,p,g)):c=p.error||p.errorMetadata?new _.m1("Errors in response",d.debugString,H,p.error,p.errorMetadata,g):new _.m1("responseContext missing",d.debugString,H,Object.keys(p).sort().join(","),g);var a,e,k,C;if(d=K==null?void 0:(a=K.response)==null?
void 0:(e=a.responseContext)==null?void 0:(k=e.webResponseContextExtensionData)==null?void 0:(C=k.webResponseContextDebugData)==null?void 0:C.debugErrorMessages)for(a=0;a<d.length;a++);return c};
e9X=function(d){var H,K,c,p;return d==null?void 0:(H=d.response)==null?void 0:(K=H.responseContext)==null?void 0:(c=K.errors)==null?void 0:(p=c.error)==null?void 0:p["0"]};
khg=function(d,H){var K;if(K=H.url&&!H.url.startsWith("/clip"))K=H.url,K=!_.h("webfe_parse_debug_param_in_resolveurl_service")&&d.searchDebugUrlMatcher.test(K)||FWF(K)?!0:!1;if(K)FWF(H.url)&&_.NM(window.location.href).themeRefresh?(H=_.$W(H.url,"themeRefresh"),_.RL(d.historyManager,H)):H.url&&!UgY(H.url)&&_.RL(d.historyManager,H.url);else if(H.endpoint){var c,p,g;(K=(c=H.endpoint)==null?void 0:(p=c.commandMetadata)==null?void 0:(g=p.webCommandMetadata)==null?void 0:g.url)&&!UgY(K)&&_.RL(d.historyManager,
K);K&&H.url&&K!=H.url&&!H.url.match("playnext=1")&&new _.m1("Response url mismatch in response data",d.debugString,K,H.url)}};
_.x1S=function(d,H,K,c,p,g,a,e){g=g===void 0?!1:g;var k=_.Kj().resolve(L_),C;if(!e&&fNd(k,(C=d.currentEndpoint)!=null?C:void 0,H))return k.showConfirmationDialog(d.JSC$14403_clientRoot.parentElement,{endpoint:H,data:K,navigationType:c,tempData:p,isMiniplayer:g,isForwardHistoryNavigation:a==null?void 0:a.forward}),_.e5();d.pageFetcher.JSC$14385_chunkHandler=void 0;return qkA(d,H,K,c,p,g)};
qkA=function(d,H,K,c,p,g){g=g===void 0?!1:g;d.isMiniplayerExpansion=g;var a=c===2;d.currentEndpoint=H;d.numNavigations++;d.numNavigations&&(onh.navigationCount=d.numNavigations);_.sS("NUM_NAV",d.numNavigations);var e=lH7(d,H,K);if(e)return oBA(d,H,e,"102",e9X(K)),_.W1(e);var k,C,R,V;e=K.rootVe||(K==null?void 0:(k=K.response)==null?void 0:(C=k.responseContext)==null?void 0:(R=C.webResponseContextExtensionData)==null?void 0:(V=R.ytConfigData)==null?void 0:V.rootVisualElementType);!a&&K&&khg(d,K);var U,
L;k=K==null?void 0:(U=K.response)==null?void 0:(L=U.responseContext)==null?void 0:L.maxAgeSeconds;if(!a&&!isNaN(k)){var w;_.h("kevlar_use_response_ttl_to_invalidate_cache")?w=(0,_.$G)()+1E3*k:_.h("kevlar_always_invalidate_cache")&&(w=0);isNaN(w)||(K.expirationTime=w)}_.jn(_.wy).prefetchCache_.clear();a||K.page!=="watch"||K.type!=="reduced"&&c!==1?c=aHS(d,K,a,!!g,H,p):(d.publishPageData(K),c=_.e5());p=c.then(function(){var W=mZ(H);W={endpoint:H,pageType:W,fromHistory:a,response:K};W.navigationDoneMs=
_.Fw("nd");d.fireEvent("yt-navigate-finish",W)});
K.csn&&e&&K.clientSideGrafts&&c.then(d.attachClientSideGrafts.bind(d,K,_.so()));return p};
_.G=Mi.prototype;_.G.attachClientSideGrafts=function(d,H){d.clientSideGrafts&&H&&d.clientSideGrafts.forEach(function(K){if(H&&K){var c=_.P1(K);_.h("combine_ve_grafts")?_.hR().graftServerVe(K,H):_.Ea(d.csn,H,c)}})};
_.G.handleSignalActionHistoryBack=function(){window.history.back()};
_.G.handleSignalActionCloseWindow=function(){window.close()};
_.G.handleSignalActionReloadPage=function(){this.reload()};
_.G.handleSignalActionSoftReloadPage=function(){lnX(this)};
_.G.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.G.fireEvent=function(d,H){d=new CustomEvent(d,{bubbles:!0,cancelable:!1,composed:!0,detail:H});this.dispatchEvent(d)};
_.G.addEventListener=function(d,H){this.JSC$14403_clientRoot.addEventListener(d,H)};
_.G.dispatchEvent=function(d){return this.JSC$14403_clientRoot.dispatchEvent(d)};
_.G.removeEventListener=function(d,H){this.JSC$14403_clientRoot.removeEventListener(d,H)};
Mi[fG]=[c2S,_.Vr];_.S2L=new Gt("browse","h8y2qb");_.EN1=new Gt("search","JzFVk");_.yMi=new Gt("shorts","xwEKAe");_.bpX=new Gt("watchFixie","nmfa2d");_.NeY=new Gt("watchFlexy","CF909");_.DmE=new Gt("watchGrid","Tm0L3c");_.fJl=new Gt("watchLearningJourney","L3n37");var nBC;var C43=function(){return _.B.apply(this,arguments)||this};
_.m(C43,_.B);_.H3.Object.defineProperties(C43,{template:{configurable:!0,enumerable:!0,get:function(){if(nBC===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-player">\n  \n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);nBC=d}d=nBC;return d}}});
_.t([_.u(CKS.YtPlayerBehavior),_.O("design:type",Object)],C43.prototype,"ytPlayerBehavior",void 0);_.t([_.Z({is:"ytd-player"})],C43);var R9X;var VaM;var U1U;var mH=function(){var d=_.B.apply(this,arguments)||this;d.forceModernIconButton=!1;d.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return d};
_.m(mH,_.B);mH.prototype.configureRendererStamper=function(){return{button:{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0,styleActionButton:!0},properties:{overrides:"[[overrides]]",forceModernIconButton:"[[forceModernIconButton]]",disableTextTransform:"[[disableTextTransform]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",forceIconButton:"[[forceIconButton]]"}}}}}};
mH.prototype.handleAccountLinkingStateChangedCommand=function(d){if(d=_.M(d,gF0)){var H,K=(H=this.data)==null?void 0:H.providerKey;H=d.providerKey;K&&H&&K.id===H.id&&K.subject===H.subject&&(d=d.linked,d!==void 0&&(this.set("data.linked",d),this.notifyPath("data.linked"),_.h("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(d)))}};
mH.prototype.setPlayerAccountLinkState=function(d){var H=new vF6;dsl(H,A4M(new fRd,d));var K=_.Kf();K&&K.getPlayerPromise().then(function(c){c.setAccountLinkState(_.mb(H.JSC$12100_serializeBinary(),4));c.updateAccountLinkingConfig(d)})};
mH.prototype.handleShowAccountLinkDialog=function(){var d=this.get("button.buttonRenderer.command");d&&_.xW([d],this.hostElement)};
_.H3.Object.defineProperties(mH.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],mH.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.t([_.u([_.Uq.YtActionHandlerBehavior]),_.O("design:type",Object)],mH.prototype,"actionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],mH.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],mH.prototype,"overrides",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],mH.prototype,"forceModernIconButton",void 0);_.t([_.r({value:"bottom"}),_.O("design:type",String)],mH.prototype,"buttonTooltipPosition",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],mH.prototype,"forceIconButton",void 0);_.t([_.r(),_.O("design:type",Boolean)],mH.prototype,"disableTextTransform",void 0);
_.t([_.I("data","data.linked","data.isWarning"),_.O("design:type",Object),_.O("design:paramtypes",[])],mH.prototype,"button",null);_.t([_.Z({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],mH);
_.T(mH,"ytd-account-link-button-renderer",function(){if(U1U!==void 0)return U1U;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-link-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-account-link-button-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return U1U=d},{mode:1});var h9d;var LnU=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],wj=function(){return _.B.apply(this,arguments)||this};
_.m(wj,_.B);wj.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
wj.prototype.updateButtonActiveState=function(){var d=this,H=!!LnU.find(function(K){return d.currentState===K});
this.button&&(this.button.isPressed=H)};
_.H3.Object.defineProperties(wj.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.playlistLoopStateEntity)==null?void 0:d.state)||((H=this.data)==null?void 0:H.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var d=void 0,H;if(this.currentState&&((H=this.data)==null?0:H.states)){H=_.q(this.data.states);for(var K=H.next();!K.done;K=H.next()){K=_.M(K.value,_.wQA);var c=void 0;if(((c=K)==null?void 0:c.state)===this.currentState){d=K;break}}}return d}}});
wj.prototype.updateButtonActiveState=wj.prototype.updateButtonActiveState;_.t([_.u(_.to),_.O("design:type",Object)],wj.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.r({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.OEh}),_.O("design:type",Object)],wj.prototype,"playlistLoopStateEntity",void 0);_.t([_.r(),_.O("design:type",Object)],wj.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],wj.prototype,"forceIconOnly",void 0);_.t([_.VP("ytd-button-renderer"),_.O("design:type",_.pe)],wj.prototype,"button",void 0);
_.t([_.I("data","playlistLoopStateEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],wj.prototype,"currentState",null);_.t([_.CK("currentButtonStateRenderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],wj.prototype,"updateButtonActiveState",null);_.t([_.I("currentState"),_.O("design:type",Object),_.O("design:paramtypes",[])],wj.prototype,"currentButtonStateRenderer",null);
_.t([_.Z({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],wj);
_.T(wj,"ytd-playlist-loop-button-renderer",function(){if(h9d!==void 0)return h9d;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-loop-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-playlist-loop-button-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return h9d=d},
{mode:1});var Ma3;var m1S=_.Vz("DOWNLOAD",{},"Download"),wHC=_.Vz("DOWNLOADING",{},"Downloading"),P46=_.Vz("DOWNLOADED",{},"Downloaded"),u0X=_.Vz("RETRY",{},"Retry"),P6=function(){var d=_.B.apply(this,arguments)||this;d.forceIconButton=!1;d.forceIconOnly=!1;d.overrides=!1;d.buttonTooltipPosition=!1;d.styleActionButton=!1;d.disableTextTransform=!1;d.downloadProgress=0;d.isDownloadComplete=!1;d.isHidden=!0;d.transferState="TRANSFER_STATE_UNKNOWN";d.isVideoDeletedByUser=!1;d.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return d};
_.m(P6,_.B);_.G=P6.prototype;_.G.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.G.dataChanged=function(){var d;(d=this.data)!=null&&d.text||(d=_.QO(_.dn().getState(),this.videoId),this.updateButtonState(d))};
_.G.computeVideoId=function(d){return d};
_.G.showHideButton=function(){this.updateButtonVisibility()};
_.G.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.G.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.G.updateButtonState=function(d){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==wHC||!_.mE(d))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(d){case "TRANSFER_STATE_UNKNOWN":d=m1S;var H="OFFLINE_DOWNLOAD";var K="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":d=u0X;H="OFFLINE_DOWNLOAD";K="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":d=P46;H="OFFLINE_PIN";K="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":d=
wHC;H="OFFLINE_DOWNLOADING_ZERO";K="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":d=u0X;H="OFFLINE_DOWNLOAD";K="ACTION_RETRY";break;default:d=m1S,H="OFFLINE_DOWNLOAD",K="ACTION_ADD"}this.isVideoDeletedByUser&&(d=m1S,H="OFFLINE_DOWNLOAD",K="ACTION_ADD");var c=Object.assign({},this.data);c.text=_.AF(d);c.tooltip=d;c.icon={iconType:H};c.size="SIZE_DEFAULT";c.style="STYLE_DEFAULT";_.M(c.command,_.Cf)&&(_.M(c.command,_.Cf).action=K);this.set("data",c)}};
_.G.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var d="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?d="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?d="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?d="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?d="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?d="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(d="OFFLINE_PIN",this.isDownloadComplete=!0);var H;d!==((H=this.data.icon)==null?void 0:H.iconType)&&(H=Object.assign({},this.data),H.text=_.AF(wHC),H.tooltip=wHC,H.icon={iconType:d},_.M(H.command,_.Cf)&&(_.M(H.command,_.Cf).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",H))}};
P6.prototype.updateProgress=P6.prototype.updateProgress;P6.prototype.onTransferStateChanged=P6.prototype.onTransferStateChanged;P6.prototype.showHideButton=P6.prototype.showHideButton;P6.prototype.dataChanged=P6.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],P6.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],P6.prototype,"forceIconButton",void 0);
_.t([_.r(),_.O("design:type",Object)],P6.prototype,"forceIconOnly",void 0);_.t([_.r(),_.O("design:type",Object)],P6.prototype,"overrides",void 0);_.t([_.r(),_.O("design:type",Object)],P6.prototype,"buttonTooltipPosition",void 0);_.t([_.r(),_.O("design:type",Object)],P6.prototype,"styleActionButton",void 0);_.t([_.r(),_.O("design:type",Object)],P6.prototype,"disableTextTransform",void 0);
_.t([_.r({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.O("design:type",String)],P6.prototype,"videoId",void 0);_.t([_.r(),_.O("design:type",Object)],P6.prototype,"data",void 0);_.t([_.r({selector:YL,selectorArgs:["videoId"]}),_.O("design:type",Object)],P6.prototype,"downloadProgress",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],P6.prototype,"isDownloadComplete",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],P6.prototype,"isHidden",void 0);_.t([_.r({selector:_.QO,selectorArgs:["videoId"]}),_.O("design:type",String)],P6.prototype,"transferState",void 0);_.t([_.r({selector:_.ktl,selectorArgs:["videoId"]}),_.O("design:type",Object)],P6.prototype,"isVideoDeletedByUser",void 0);_.t([_.r({selector:Gtf,selectorArgs:["videoId"]}),_.O("design:type",Object)],P6.prototype,"offlineabilityState",void 0);
_.t([_.r({value:!0}),_.O("design:type",Boolean)],P6.prototype,"showTooltips",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],P6.prototype,"sendCommandWhenDisabled",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],P6.prototype,"disabled",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],P6.prototype,"dataChanged",null);
_.t([_.Mr("offlineabilityState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],P6.prototype,"showHideButton",null);_.t([_.Mr("transferState","isVideoDeletedByUser"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],P6.prototype,"onTransferStateChanged",null);_.t([_.Mr("downloadProgress"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],P6.prototype,"updateProgress",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],P6);
_.T(P6,"ytd-download-button-renderer",function(){if(Ma3!==void 0)return Ma3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-button-renderer"></ytd-button-renderer>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Ma3=d},{mode:2});var IHN;var r2M,Wn3=function(){if(r2M!==void 0)return r2M;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]">\n</yt-button-shape>\n<tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>\n');return r2M=d};var BPg=_.h("web_button_rework")&&_.Qx("BUTTON_REWORK")||_.h("web_button_rework_with_live"),z97=_.iT("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,u3=function(){var d=_.B.apply(this,arguments)||this;d.isPressed=!1;d.forceIconButton=!1;d.forceIconOnly=!1;d.forceModernIconButton=!1;d.alignByText=!1;d.isShorts=!1;d.animatedText=!1;d.shouldAnimate=!1;d.JSC$14440_browserSupportsAnimation=_.h("web_supports_animations_api");d.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};d.onTap=function(){var H;if((H=d.data)==null||!H.defaultNavigationEndpoint){var K;H=!((K=d.data)==null?0:K.isToggled);var c;if((c=d.data)==null||!c.preventAutoToggle){d.shouldAnimate=!1;d.disableTextUpdateJobId&&_.Xp.cancelJob(d.disableTextUpdateJobId);d.disableTextUpdateJobId=_.Xp.addLowPriorityJob(function(){d.disableTextUpdateJobId=void 0},z97);
var p;d.set("data.isToggled",!((p=d.data)==null?0:p.isToggled));K=d.getInnertubeIcon();c={toggled:H,actions:{}};K&&(c.actions[K.toLowerCase()]=H);_.GT(d.hostElement,"yt-toggle-button",c)}}};
return d};
_.m(u3,_.B);_.G=u3.prototype;_.G.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.Xp.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.G.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.G.toggle=function(d){var H;this.set("data.isToggled",d!==void 0?d:!((H=this.data)==null?0:H.isToggled))};
_.G.handleUpdateToggleButtonStateCommand=function(d){if(this.data){d=_.M(d,n3d);var H,K,c,p=(H=this.data)==null?void 0:(K=H.toggleButtonSupportedData)==null?void 0:(c=K.toggleButtonIdData)==null?void 0:c.id;p&&d&&p===(d==null?void 0:d.buttonId)&&this.set("data.isToggled",d.toggled)}};
_.G.handleUpdateToggleButtonTextAction=function(d){if(this.data){d=_.M(d,pC3);var H,K,c,p=(H=this.data)==null?void 0:(K=H.toggleButtonSupportedData)==null?void 0:(c=K.toggleButtonIdData)==null?void 0:c.id;p&&d&&p===(d==null?void 0:d.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=d.defaultNumericalValue,this.set("data.defaultText",d.defaultText),this.set("data.toggledText",d.toggledText),this.shouldAnimate=!1)}};
_.G.getInnertubeIcon=function(){var d=this.data;if(d){var H,K,c=((H=d.defaultIcon)==null?0:H.iconType)?(K=d.defaultIcon)==null?void 0:K.iconType:null,p,g;H=((p=d.toggledIcon)==null?0:p.iconType)?(g=d.toggledIcon)==null?void 0:g.iconType:c;return d.isToggled?H:c}};
_.G.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.H3.Object.defineProperties(u3.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var d={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.JSC$14440_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var H=d.renderer;var K=d.element;var c=d.toggled;var p=d.onTapCallback;var g=d.commandClientArgs;var a=d.overrides;var e=d.forceIcon;var k=d.forceModernIconButton;var C=d.forceDisabled;var R=d.useAnimatedText;var V=d.animatedTextProps;d=bED(H,c);e=!H.defaultIcon||!e&&H.defaultText?H.defaultIcon?"leading":void 0:k?"icon-only":"icon-only-40";e==="icon-only-40"&&(d.type="text");var U;k=Object;var L=k.assign,w;a:switch((w=
H.style)==null?void 0:w.styleType){case "STYLE_COMPACT_GRAY":w={size:"S"};break a;default:w={size:"M"}}var W=!!c;var J=(J=c&&H.toggledText||H.defaultText)?_.JR(J):void 0;R?(R=_.jG(c&&H.toggledText||H.defaultText))&&V&&!isNaN(Number(V.numberValue))?(V.numberText=R,c&&(V.numberValue+=1),R=V):R=void 0:R=void 0;var F,Y,A,E;var N=(V=((Y=c?H.toggledAccessibilityData||((N=H.toggledText)==null?void 0:N.accessibility):H.accessibilityData||((F=H.defaultText)==null?void 0:F.accessibility))==null?void 0:(A=Y.accessibilityData)==
null?void 0:A.label)||((E=H.accessibility)==null?void 0:E.label))?V:_.jG(c&&H.toggledText||H.defaultText);C=C===void 0?H.isDisabled:C;K=y3h(H,c,p,K,g);c=EPE(H,c);c!=null&&c.length?(c=_.OG({innertubeCommand:Fzh(c),forceNewState:!0}),c=Sv(c)?c:void 0):c=void 0;H=L.call(k,{},d,w,{iconPosition:e},a,{focused:!1,toggled:W,toggleable:!0,formattedButtonText:J,animatedTextProps:R,accessibilityLabel:N,disabled:C,onTap:K,aTagConfig:c},cUL((U=H.colorData)==null?void 0:U.basicColorPaletteData));H.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(H.type="filled");return H}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var d=this.getInnertubeIcon();if(d)return _.kv(d)}}});
u3.prototype.resetAnimation=u3.prototype.resetAnimation;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],u3.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],u3.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],u3.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Object)],u3.prototype,"isPressed",void 0);_.t([_.r(),_.O("design:type",Object)],u3.prototype,"forceIconButton",void 0);_.t([_.r(),_.O("design:type",Object)],u3.prototype,"forceIconOnly",void 0);_.t([_.r(),_.O("design:type",Object)],u3.prototype,"forceModernIconButton",void 0);_.t([_.r(),_.O("design:type",Object)],u3.prototype,"alignByText",void 0);_.t([_.r(),_.O("design:type",Object)],u3.prototype,"overrides",void 0);
_.t([_.r(),_.O("design:type",Boolean)],u3.prototype,"disabled",void 0);_.t([_.r(),_.O("design:type",Object)],u3.prototype,"isShorts",void 0);_.t([_.r(),_.O("design:type",Object)],u3.prototype,"buttonTooltipPosition",void 0);_.t([_.r(),_.O("design:type",Object)],u3.prototype,"animatedText",void 0);_.t([_.r(),_.O("design:type",String)],u3.prototype,"textNumberValue",void 0);_.t([_.r({computed:"computeTooltip(data, data.isToggled)"}),_.O("design:type",Object)],u3.prototype,"tooltip",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],u3.prototype,"resetAnimation",null);_.t([_.I("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.O("design:type",Object),_.O("design:paramtypes",[])],u3.prototype,"computedButtonShape",null);_.t([_.I("data.*"),_.O("design:type",Object),_.O("design:paramtypes",[])],u3.prototype,"computedIcon",null);
_.t([_.Z({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],u3);BPg&&_.T(u3,"ytd-toggle-button-renderer",Wn3,{mode:_.qk("kevlar_poly_si_batch_j081")?1:2});var XH3=_.H1(function(d){function H(C){var R;return _.l(function(V){if(V.nextAddress==1)return(R=!DgE(C,e())||!e().enabled)?V.jumpTo(2):V.yield(d1Y(),3);V.nextAddress!=2&&(R=V.yieldResult);if(R)return V.return();K();setTimeout(function(){a(!1)},1500);
_.VE(V)})}
function K(){setTimeout(function(){a(!0);var C;(C=c.lottieEl)==null||C.goToAndPlay(0)},150)}
var c=_.x6(),p=_.q(_.GO(!1,void 0,"JJXzp")),g=p.next().value,a=p.next().value,e=_.vj(d.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.WE(function(){var C,R;((C=d.settings)==null?void 0:(R=C.call(d))==null?void 0:R.uniqueId)==="this is not intended behavior"&&_.Jf(new _.m1("Smartimation Settings is undefined"))});
_.wc(function(){e().experimentEnabled&&(e().enabled?fNY(H):(a(!1),A34(H)),_.Pk(function(){A34(H)}))},"FRiAUe");
_.wc(function(){e().timings.join("");e().experimentEnabled&&(j74(e()),_.Pk(function(){vP4(e())}))},"VKiJOe");
var k=_.ey(function(){var C=c,R=e().uniqueId+"-border",V,U;var L="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((U=(V=_.Kj().resolve(_.$p(_.fM)))==null?void 0:V())!=null&&U?"dark":"light")+"_v2.json";return{animationRef:C,animationConfig:{name:R,autoplay:!1,loop:!1,path:L}}},void 0,"tgykab");
p={};return _.x("yt-smartimation",{class:_.xM(d.className,"smartimation",(p["smartimation--experiment-enabled"]=function(){return e().experimentEnabled},p["smartimation--active-border"]=g,p["smartimation--enable-masking"]=HCY(),p))},_.x(_.n,{cond:function(){return e().experimentEnabled},
then:function(){return _.x("div",{class:"smartimation__border"},_.x(_.hT,{className:"smartimation__border-gradient",data:k,animationName:function(){return k().animationConfig.name}}))}}),_.x("div",{class:"smartimation__content"},d.children))},"E");
XH3.idomCompat=!0;_.iV(XH3,"yt-smartimation",{props:{className:_.dl,settings:_.dl}});var IL=function(){var d=_.B.apply(this,arguments)||this;d.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};d.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};d.shouldEnableSmartimation=!1;return d};
_.m(IL,_.B);IL.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
IL.prototype.onDataChanged=function(){var d,H;this.shouldEnableSmartimation=(((d=this.data)==null?void 0:(H=d.timedAnimationData)==null?void 0:H.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
IL.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var d=_.M(this.data.likeButton,_.Qi),H=_.M(this.data.dislikeButton,_.Qi);return!!((d==null?0:d.isToggled)||(H==null?0:H.isToggled))};
IL.prototype.configureRendererStamper=function(){return{"data.likeButton":{id:"segmented-like-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[likeButtonOverride]]"}},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[likeButtonOverride]]",animatedText:"[[true]]",textNumberValue:"[[data.likeCount]]"}}}},"data.dislikeButton":{id:"segmented-dislike-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dislikeButtonOverride]]"}},
toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[dislikeButtonOverride]]"}}}}}};
_.H3.Object.defineProperties(IL.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var d,H,K=((d=this.data)==null?void 0:(H=d.timedAnimationData)==null?void 0:H.animationTiming)||[];return{uniqueId:"like-dislike",timings:K,enabled:this.shouldEnableSmartimation,experimentEnabled:K.length>0}}}});
IL.prototype.onDataChanged=IL.prototype.onDataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],IL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],IL.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],IL.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],IL.prototype,"likeButtonOverride",void 0);_.t([_.r(),_.O("design:type",Object)],IL.prototype,"dislikeButtonOverride",void 0);
_.t([_.I("shouldEnableSmartimation"),_.O("design:type",Object),_.O("design:paramtypes",[])],IL.prototype,"smartimationSettings",null);_.t([_.CK("data"),_.nK("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],IL.prototype,"onDataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],IL);
_.T(IL,"ytd-segmented-like-dislike-button-renderer",function(){if(IHN!==void 0)return IHN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-segmented-like-dislike-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-buttons-wrapper" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-like-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div><div id="segmented-dislike-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div></div></yt-smartimation>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return IHN=d},{mode:1});var J23;var sPd;(sPd=document.body)==null||sPd.setAttribute("rounded-container","");var FnB={};FnB.YtToggleButtonBehavior=[_.Uq.YtActionHandlerBehavior,uq.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}},
attached:function(){this.registerActionMap(this.toggleButtonActionMap_)},
detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)},
onYtToggleButtonTapHandler:function(){},
onYtButtonTapHandler:function(){var d=this.data.isToggled;if(!this.isModal_(d)){if(!this.data.preventAutoToggle){this.toggle();var H={toggled:this.data.isToggled,actions:{}};H.actions[this.buttonIcon]=this.data.isToggled;_.GT(this.hostElement,"yt-toggle-button",H)}H=this.data.defaultServiceEndpoint||null;var K=this.data.toggledServiceEndpoint||null;if(H&&K||H&&this.data.preventAutoToggle)d=d?K:H,H=this.disableCommandHandlerOverride,_.h("killswitch_toggle_button_behavior_resolve_command")||H?_.aF(this.hostElement,
[d]):_.CM(d,this.hostElement),_.GT(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:d})}},
stateChanged_:function(){var d=this.data;if(d){var H=d.isToggled;this._setEndpoint(this.computeEndpoint_(d));this._setServiceEndpoint(this.computeServiceEndpoint_(d));this._setButtonIcon(this.computeButtonIcon_(d,H));this._setButtonText(this.computeButtonText_(d,H));this._setButtonAccessibility(this.computeAccessibility_(d,H));this._setButtonTooltip(this.computeTooltip_(d,H));this._setButtonClass(this.computeButtonClass_(d,H));this._setIconPositionType(this.computeIconPositionType_(d));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=H):this.elements_.button.setAttribute("aria-pressed",H));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=H)}},
shouldSetIconActiveState_:function(){return _.h("kevlar_system_icons")},
toggle:function(d){this.set("data.isToggled",d!==void 0?d:!this.data.isToggled);_.h("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(d){if(d){var H,K;return!!((H=this.data)==null?0:(K=H.toggledServiceEndpoint)==null?0:K.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(d){return d&&d.defaultNavigationEndpoint||null},
computeButtonIcon_:function(d,H){var K=d&&d.defaultIcon?_.kv(d.defaultIcon.iconType):null;d=d&&d.toggledIcon?_.kv(d.toggledIcon.iconType):K;return H?d:K},
handleUpdateToggleButtonStateCommand_:function(d){d=d.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==d.buttonId&&this.toggle(d.toggled)},
computeButtonText_:function(d,H){return d?H&&d.toggledText||d.defaultText||null:null},
computeAccessibility_:function(d,H){return d?(H?this.get("toggledAccessibilityData.accessibilityData",d):this.get("accessibilityData.accessibilityData",d))||d.accessibility||null:null},
computeTooltip_:function(d,H){return d?H&&d.toggledTooltip||d.defaultTooltip||null:null},
computeButtonClass_:function(d,H){if(!d)return"";var K="",c=d.toggledStyle||d.style;if(H=H?c:d.style){H.styleType&&(H=H.styleType);try{K+=H.toLowerCase().replace(/_/g,"-")+" "}catch(p){_.sD(p,H,typeof H),_.Jf(p)}}if(d=d.size){d.sizeType&&(d=d.sizeType);try{K+=d.toLowerCase().replace(/_/g,"-")+" "}catch(p){_.sD(p,d,typeof d),_.Jf(p)}}return K.trim()},
computeIconPositionType_:function(d){return d&&d.iconPosition||null},
computeServiceEndpoint_:function(d){var H=d&&d.serviceEndpoint,K=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return H?H:K&&d.command?d.command:null},
handleUpdateToggleButtonTextAction_:function(d){d=d.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==d.buttonId&&(this.set("data.defaultText",d.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",d.toggledText),this.notifyPath("data.toggledText"))}}];_.XX("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var ZC3=_.h("web_button_rework")&&_.Qx("BUTTON_REWORK")||_.h("web_button_rework_with_live"),rj=function(){var d=_.B.apply(this,arguments)||this;d.systemIcons=_.h("kevlar_system_icons");d.roundedContainer=!0;return d};
_.m(rj,_.B);rj.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
rj.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var d=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var H={toggled:!!this.data.isToggled,actions:{}};H.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var K,c;H.actions.playlistId=(K=this.data.defaultServiceEndpoint)==null?void 0:(c=K.playlistEditEndpoint)==null?void 0:c.playlistId;_.GT(this.hostElement,"yt-toggle-button",H)}(d=d?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(d)}};
rj.prototype.onYtNavigate=function(d){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(d.detail.endpoint);H&&(d.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(H))};
_.H3.Object.defineProperties(rj,{template:{configurable:!0,enumerable:!0,get:function(){if(J23===void 0){var d=document.createElement("template");_.P(d,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);J23=d}d=J23;return d}}});
rj.prototype.onYtNavigate=rj.prototype.onYtNavigate;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],rj.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],rj.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Ke),_.O("design:type",Object)],rj.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(FnB.YtToggleButtonBehavior),_.O("design:type",Object)],rj.prototype,"ytToggleButtonBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],rj.prototype,"data",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],rj.prototype,"showTooltips",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],rj.prototype,"systemIcons",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],rj.prototype,"roundedContainer",void 0);_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],rj.prototype,"onYtNavigate",null);
_.t([_.Z({is:"ytd-toggle-button-renderer",disableElementRegistration:ZC3})],rj);var TPS;_.W6=new _.Av("PANEL_CONTROLLER_TOKEN");_.B6=new _.Av("SHEET_CONTROLLER_TOKEN");_.zr=new _.Av("DIALOG_CONTROLLER_TOKEN");TPS=new _.Av("DIALOG_CONTAINER_TOKEN");var qkh=_.Vz("DOWNLOAD",{},"Download"),aHl=_.Vz("DOWNLOADING",{},"Downloading"),lHM=_.Vz("DOWNLOADED",{},"Downloaded"),e9F=_.Vz("RETRY",{},"Retry");var x1l=[],nBE=!1;var QPg=_.H1(function(d){var H=Ma5,K=function(){return""},c=Va1(d.data),p=U1f(d.data),g=h9Y(d.data),a=Lnf(d.data);
H=function(){var e=d.data(),k=Ghf(e,c(),p(),g(),a()),C=!!e.videoId,R=k.text;return{title:C?R:void 0,tooltip:C?void 0:R,accessibilityText:R,onTap:k.onTap,iconName:k.iconType,style:e.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:k.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:e.buttonSize}};
K={};K=_.xM("ytDownloadButtonViewModelHost",(K.ytDownloadButtonViewModelIsHidden=function(){var e=d.data(),k=a();return e.playlistId||k()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||k()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},K));
return _.x("download-button-view-model",{class:K},_.x(_.xk,{data:H}))},"F");
QPg.idomCompat=!0;var XH5=new _.Av("SUBMIT_API_SERVICE_TOKEN");var r21,Wn5,J25={submitAction:"SUBMIT_ACTION_SUBMISSION"};var D1F=new _.Av("RENDERER_LOGGER_TOKEN");var sPY=new _.Av("RENDERER_STAMPER_OPTIONS_TOKEN");var MV;_.Lf=new TgN;MV=new Map;var y2L="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),NPY=["notificationTextRenderer","notificationMultiActionRenderer"],
bCf="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),EBE=FnF(function(d){return _.IH(d==null?void 0:d.targetId)}).useUpdatableData;var SkF=0;_.wB.debugName="EjJbCe";var taC=_.H1(function(d){var H=d.data;d=d.className;_.Is(function(){H().formId||_.z5(Error("zh"))});
var K=_.IHC(function(){return H().formId},function(){return H().beforeSubmitCommand},function(){return H().afterSubmitCommand}),c=K.submitForm,p=K.isValid,g=K.isSubmitting,a=function(){return{state:H().isDisabled||!p()||g()?"disabled":"active"}};
return _.x("yt-submit-button-view-model",{class:_.xM("ytSubmitButtonViewModelHost",d)},_.x(_.wB,{data:function(){return H().button}},{buttonViewModel:function(e){return _.x(_.xk,{data:e.data,
buttonOverrides:a,onClick:c})}}))},"G");var OC6=_.H1(function(d){var H=d.backgroundLottieRef;var K=d.foregroundLottieRef;var c=d.children;var p=d.wrapperClass;var g=d.disableAnimation;d=function(){return(_.h("web_animated_actions")||_.h("web_animated_actions_v2"))&&!(g==null?0:g())};
return _.x("yt-animated-action",{class:_.xM("ytAnimatedActionHost",p)},_.x("div",{class:"ytAnimatedActionContentWithBackground"},_.x(_.n,{cond:d,then:function(){return _.x(Ykg,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:H==null?void 0:H(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(fHL()?"dark":"light")+"_v5.json"}}}})}}),c),_.x(_.n,{cond:d,
then:function(){return _.x(Ykg,{lottiePlayerProps:function(){return{animationRef:K==null?void 0:K(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(fHL()?"dark":"light")+"_v4.json"}}}})}}))},"H");
OC6.idomCompat=!0;var Ykg=_.H1(function(d){var H=d.wrapperClass;var K=d.lottieClass;var c=d.lottiePlayerProps;return _.x("div",{class:_.xM("ytAnimatedActionLottie",H),"aria-hidden":"true"},_.x(_.hT,{className:K,data:c,animationName:function(){return c().animationConfig.name}}))},"I");var A2h={isOpen:!1};var vBY={isAllowed:!1};var HRh={errorMessage:"",title:"",privacy:"",isDisabled:!0};var KTf={isOpen:!1};var p0L={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var SkX={response:void 0};var iRF=function(d,H){d=d===void 0?SkX:d;switch(H.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},d,{response:H.payload});default:return d}};var EBC={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var GIE=function(d,H){d=d===void 0?EBC:d;switch(H.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},d,{nextDisabled:H.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},d,{nextCommand:H.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},d,{footerSubmissionData:H.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},d,{isImpersonationValid:H.payload});default:return d}};var y23={reportFormData:void 0,reportDetailsFormData:void 0};var oHF=function(d,H){d=d===void 0?y23:d;switch(H.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},d,{reportFormData:H.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},d,{reportDetailsFormData:H.payload});default:return d}};var bCU=void 0;_.h("mweb_enable_redux_store_on_demand")||(bCU=new vW(qK5()));var Xd=_.h("enable_web_delhi_icons");var NPd=_.H1(function(d){d=_.dg(d,{themeOverride:void 0,animationRef:{}});var H=d.animatedIconType,K=d.active,c=d.themeOverride,p=d.animationRef;d=d.staticIconFn;var g=_.q(_.GO(void 0,void 0,"P5a72b")),a=g.next().value,e=g.next().value,k=function(){a:{var J=H();var F=c==null?void 0:c();var Y;F=(F==null?void 0:F.useDarkTheme)||((Y=_.Kj().resolve(_.$p(_.fM)))==null?void 0:Y());switch(J){case "LIKE":bCU||(bCU=new vW(qK5()));J=(J=tjl(bCU.getState()))&&J.animationLightUrl&&J.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:F?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:F?J.animationDarkUrl:J.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(J){F=J;break a}F="animated_like_icon_"+(F?"dark":"light")+"_"+(Xd?"v5":"v4");F={lottiePlayerProps:{animationConfig:{name:F,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+F+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(Xd?" animated-like-icon-delhi":"")}}},totalFrames:Xd?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":F={lottiePlayerProps:{animationConfig:{name:F?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(F?"dark":"light")+(Xd?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(Xd?" animated-subscribe-icon-delhi":"")}}},totalFrames:Xd?120:79,lazyLoad:!1};break a}F=
void 0}return F},C=function(){var J,F;
return(F=(J=k())==null?void 0:J.lottiePlayerProps.animationConfig.name)!=null?F:""},R=function(){if(k()){var J=k().lottiePlayerProps.animationConfig.path;
return Wg.get(J)||a()}};
g=_.q(_.GO(!1,void 0,"h6xR3c"));var V=g.next().value;g=g.next().value;var U=lG5(g),L=function(){var J=k(),F,Y,A;return(A=J==null?void 0:(F=J.lottiePlayerProps.animationConfig)==null?void 0:(Y=F.rendererSettings)==null?void 0:Y.className)!=null?A:""},w=void 0,W=void 0;
_.wc(function(){var J=k(),F=C(),Y=R(),A=V(),E=K();if(J&&(W!==F&&(W=F,w=E,F=p(),U.animationConfig=J.lottiePlayerProps.animationConfig,U.animationRef=F,Y&&(U.animationConfig.animationData=Y,U.animationConfig.path=void 0),F=J.lottiePlayerProps.animationConfig.path,!Wg.get(F)&&J.lazyLoad&&F&&aGD(F,e)),!(A||J.lazyLoad&&!Y))){if(Y=!p().lottieEl)E?(A=J.totalFrames,U.animationConfig.initialSegment=[A-1,A]):U.animationConfig.initialSegment=void 0;if(w!==E&&!Y)if(Y=p(),E){var N;(N=Y.lottieEl)==null||N.playSegments([0,
J.totalFrames],!0)}else{var y;(y=Y.lottieEl)==null||y.playSegments([0,1],!0)}w=E}},"YCYOCe");
return _.x("animated-icon",{class:"ytAnimatedIconHost"},_.x(_.n,{cond:function(){var J,F;return!((J=k())==null||!J.lottiePlayerProps.animationConfig.path||((F=k())==null?0:F.lazyLoad)&&!R()||V())},
then:function(){return _.x(_.hT,{data:U,animationName:C,className:L,animationRef:p})},
else:d}))},"J");_.JI=_.H1(function(d){var H=_.Af("yt-subscribe-button-view-model"),K=_.Af("div"),c=_.Af("div"),p=_.x6(),g=_.x6(),a=_.x6(),e=_.Uj(Fhf,function(){return d.data().stateEntityStoreKey}),k=_.Uj(ZED,function(){var vF,CX;
return(CX=(vF=d.data().notificationStateEntityStoreKeys)==null?void 0:vF.subsNotificationStateKey)!=null?CX:""}),C=function(){return!d.data().enableSubscribeButtonPostClickAnimation},R=_.q(_.GO(0,void 0,"eTsWvc")),V=R.next().value,U=R.next().value;
R=_.q(_.GO(0,void 0,"dniDQ"));var L=R.next().value,w=R.next().value;R=_.q(_.GO(!1,void 0,"EluPic"));var W=R.next().value,J=R.next().value;R=_.q(_.GO(!1,void 0,"r0jnre"));var F=R.next().value,Y=R.next().value;R=_.q(_.GO(!1,void 0,"KMvoQe"));var A=R.next().value,E=R.next().value,N;R=_.q(_.GO(!1,void 0,"aSENce"));var y=R.next().value,v=R.next().value,el=function(){Y(!0);_.rB(_.Xp,function(){Y(!1)},1500)};
_.wc(function(){var vF=F();ij(function(){vF&&!C()&&e()&&LTL(p,g,a)})},"LgmX6c");
_.wc(function(){var vF=e();ij(function(){if(!C()&&vF){var CX;((CX=d.animateWidth)==null?0:CX.call(d))&&hG5(H.value,!!vF.subscribed,V(),L());var kd,BB;((kd=N)==null?0:kd.subscribed)||!vF.subscribed||vF.key!==((BB=N)==null?void 0:BB.key)||el();N=vF}})},"iZzoUb");
R=_.ey(function(){var vF,CX,kd,BB=d.data(),ug=!((vF=e())==null||!vF.subscribed);vF=!((CX=d.isOverlay)==null||!CX.call(d));CX=W()?H:void 0;var fX=(kd=k())==null?void 0:kd.state;kd=y();UdE(BB,fX);return xdM({model:BB,subscribed:ug,isOverlay:vF,element:CX,notificationState:fX,disableTextEllipsis:!0,focused:kd})},void 0,"yGQGue");
var l1=function(){var vF;if(!C()&&((vF=d.animateWidth)==null?0:vF.call(d))&&(K==null?0:K.value)&&(c==null?0:c.value)&&!A()){vF=e();var CX=_.q((vF==null?0:vF.subscribed)?[K,c]:[c,K]),kd=CX.next().value;CX=CX.next().value;kd=Math.ceil(kd.value.getBoundingClientRect().width);CX=Math.ceil(CX.value.getBoundingClientRect().width);U(kd);w(CX);hG5(H.value,!(vF==null||!vF.subscribed),kd,CX);E(!0)}},V4=_.n7(function(vF){l1();
var CX=e();CX&&(vF.detail.endpoint.subscribeEndpoint||vF.detail.endpoint.unsubscribeEndpoint)&&Cu5(H.value,!CX.subscribed,CX)}),Mf=function(){var vF=_.Kj().resolve(_.$p(_.qZ));
vF&&v(vF.isKeyBoardInUse())},LF=function(){v(!1)};
_.fn("yt-player-subscribe",function(vF){var CX=e();CX&&vF===d.data().channelId&&Cu5(H.value,!0,CX)});
_.fn("yt-player-unsubscribe",function(vF){var CX=e();CX&&vF===d.data().channelId&&Cu5(H.value,!1,CX)});
_.fn("yt-update-subscribe-button-action",function(vF){vF=_.M(vF,d3l);var CX=e();CX&&vF&&vF.channelId===d.data().channelId&&Cu5(H.value,!!vF.subscribed,CX)});
_.WE(function(){H.value&&(H.value.addEventListener("focusin",Mf),H.value.addEventListener("focusout",LF));var vF=_.mf(_.Xp,function(){l1()});
J(!0);_.Pk(function(){_.Xp.cancelJob(vF);H.value&&(H.value.removeEventListener("focusin",Mf),H.value.removeEventListener("focusout",LF))})});
var YY=function(){var vF,CX,kd;if(kd=!((vF=e())==null||!vF.subscribed))vF=!!d.data().disableNotificationBell,kd=(CX=k())==null?void 0:CX.state,kd=!vF&&!!kd;return kd},FM=function(){var vF;
return!((vF=e())==null?0:vF.subscribed)},gA=function(){var vF,CX;
if(CX=FM()){CX=!!d.data().disableNotificationBell;var kd=(vF=k())==null?void 0:vF.state;CX=!CX&&!!kd}return CX},JN={},eS={};
return _.x("yt-subscribe-button-view-model",{class:_.xM(d.className,"yt-subscribe-button-view-model-wiz",(JN["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var vF,CX;return!((vF=e())==null||!vF.subscribed)&&((CX=d.animateWidth)==null?void 0:CX.call(d))&&F()},JN["yt-subscribe-button-view-model-wiz--hidden"]=function(){var vF;
return!((vF=e())==null?0:vF.subscribed)&&d.data().hideWhenUnsubscribed},JN)),
el:H,"on:yt-service-request-sent":V4},_.x(OC6,{backgroundLottieRef:p,foregroundLottieRef:g,wrapperClass:_.xM("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(eS["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var vF;return((vF=d.animateWidth)==null?void 0:vF.call(d))&&F()},eS["yt-subscribe-button-view-model-wiz__static-width"]=function(){var vF;
return!((vF=d.animateWidth)==null?0:vF.call(d))},eS)),
disableAnimation:C},_.x("div",{el:K,class:"yt-subscribe-button-view-model-wiz__container"},_.x(_.kk,{data:R,icon:function(){return _.x(_.n,{cond:YY,then:function(){var vF=function(){var CX;return nH1((CX=k())==null?void 0:CX.state)};
return _.x(_.n,{cond:function(){return C()||vF()!=="NOTIFICATIONS_NONE"},
then:function(){return _.x(_.hu,{icon:vF})},
else:function(){return _.x(NPd,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:a})}})}})},
secondaryIconName:function(){return YY()?"EXPAND":void 0}}))),_.x("div",{el:c,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.x(_.n,{cond:function(){var vF;return((vF=d.animateWidth)==null?void 0:vF.call(d))&&!C()&&!A()},
then:function(){return _.x(_.kk,{data:_.ey(function(){var vF;return xdM({model:d.data(),subscribed:FM(),isOverlay:!((vF=d.isOverlay)==null||!vF.call(d)),element:H,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var vF;return gA()?nH1((vF=k())==null?void 0:vF.state):void 0},
secondaryIconName:function(){return gA()?"EXPAND":void 0}})}})))},"K");
_.JI.idomCompat=!0;var D1X=_.H1(function(d){var H=d.data;var K=_.Uj(Fhf,function(){return H().subscriptionStateEntityKey});
return _.x(_.n,{cond:function(){var c=H(),p=K();return!c.hideWhenUnsubscribed||(p==null?0:p.subscribed)?_.M(H().button,_.OV):void 0},
then:function(c){return _.x("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.x(_.xk,{data:c,buttonOverrides:function(){return{toggled:!0}}}))}})},"L");
D1X.idomCompat=!0;var fH3,st;fH3=_.H1(function(d){return _.x(_.wB,{data:function(){return d.actionRow().actions}},{buttonViewModel:function(H){var K=H.data;
return _.x(st,{isRow:d.isRow,isIconOnlyButton:function(){return MCL(K())},
useIntrinsicWidth:d.useIntrinsicWidth},_.x(_.xk,{data:K}))},
subscribeButtonViewModel:function(H){return _.x(st,{isRow:d.isRow},_.x(_.JI,{data:H.data,isOverlay:!1,animateWidth:function(){return!d.isRow()}}))},
downloadButtonViewModel:function(H){var K=H.data;return _.x(st,{isRow:d.isRow,isIconOnlyButton:function(){return!!K().playlistId}},_.x(QPg,{data:K}))},
submitButtonViewModel:function(H){var K=H.data;return _.x(st,{isRow:d.isRow,isIconOnlyButton:function(){var c=K();return MCL(_.M(c==null?void 0:c.button,_.OV))}},_.x(taC,{data:K}))},
toggleButtonViewModel:function(H){var K=H.data;return _.x(st,{isRow:d.isRow,isIconOnlyButton:function(){var c=K();return MCL(_.M(c.isToggled?c.toggledButtonViewModel:c.defaultButtonViewModel,_.OV))}},_.x(_.zm,{data:K}))},
subscribePlusButtonViewModel:function(H){return _.x(st,{isRow:d.isRow},_.x(D1X,{data:H.data}))}})},"M");
st=_.H1(function(d){var H={};return _.x("div",{class:_.xM("yt-flexible-actions-view-model-wiz__action",(H["yt-flexible-actions-view-model-wiz__action--row-action"]=d.isRow,H["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=d.useIntrinsicWidth,H["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,H["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=d.isIconOnlyButton,H))},d.children)},"N");
_.Fd=_.H1(function(d){var H=function(){var c;return((c=d.layout)==null?void 0:c.call(d))===1},K={};
return _.x("yt-flexible-actions-view-model",{class:_.xM("yt-flexible-actions-view-model-wiz",d.className,(K["yt-flexible-actions-view-model-wiz--inline"]=function(){return!H()},K["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return d.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},K))},_.x(_.L6,{each:function(){return d.data().actionsRows||[]}},function(c){return _.x(_.n,{cond:H,
then:function(){return _.x("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.x(fH3,{actionRow:c,isRow:H,useIntrinsicWidth:function(){return!!d.data().respectActionIntrinsicWidth}}))},
else:function(){return _.x(fH3,{actionRow:c,isRow:H})}})}))},"O");_.iV(_.Fd,"yt-flexible-actions-view-model",{props:{data:_.dl,layout:_.dl,justifyContentOverride:_.dl,className:_.dl}});_.ZT=_.H1(function(d){var H=_.Uj(Q2,function(){var p;return(p=d.data().dislikeEntityKey)!=null?p:""}),K=_.ey(function(){var p=H();
return p?p.likeStatus==="DISLIKE":_.M(d.data().toggleButtonViewModel,_.EV).isToggled},void 0,"B2tgKf"),c=_.ey(function(){return Object.assign({},_.M(d.data().toggleButtonViewModel,_.EV),{isToggled:K()})},void 0,"otfIbf");
return _.x("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.x(_.zm,{data:c,buttonShapeOverrides:d.buttonShapeOverrideables,onToggle:function(p){var g=H();g&&p!==(g.likeStatus==="DISLIKE")&&g.key&&_.jO(_.BK("likeStatusEntity",g.key,{likeStatus:p?"DISLIKE":"INDIFFERENT",hadUserInteraction:p}))}}))},"P");
_.ZT.idomCompat=!0;_.Tr=_.H1(function(d){var H=_.h("web_supports_animations_api"),K=K7(function(U){var L=C();if(!U){var w,W;return{numberText:(W=L==null?void 0:(w=L.likeCountIfIndifferent)==null?void 0:w.content)!=null?W:"",numberValue:Number(L==null?void 0:L.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var J;w=(L==null?void 0:(J=L.likeCountIfIndifferent)==null?void 0:J.content)!==U.numberText;if(e()||!w)return U;var F;return{numberText:(L==null?void 0:(F=L.likeCountIfIndifferent)==null?void 0:F.content)||
"",numberValue:Number(L==null?void 0:L.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!L}}),c=K7(function(U){var L=C();
if(!U){var w,W;return{numberText:(W=L==null?void 0:(w=L.likeCountIfLiked)==null?void 0:w.content)!=null?W:"",numberValue:Number(L==null?void 0:L.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var J;w=(L==null?void 0:(J=L.likeCountIfIndifferent)==null?void 0:J.content)!==U.numberText;if(e()||!w)return U;var F;return{numberText:(L==null?void 0:(F=L.likeCountIfLiked)==null?void 0:F.content)||"",numberValue:Number(L==null?void 0:L.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!L}}),p=_.q(_.GO(void 0,
void 0,"xYSlUe")),g=p.next().value,a=p.next().value,e=g,k=_.Uj(Q2,function(){var U,L;
return(L=(U=d.data())==null?void 0:U.likeStatusEntityKey)!=null?L:""}),C=_.Uj(k7h,function(){var U,L;
return((U=d.likeCountEntity)==null?void 0:(L=U.call(d))==null?void 0:L.key)||""}),R=_.ey(function(){var U;
return((U=k())==null?void 0:U.likeStatus)==="LIKE"},void 0,"DG5Osd"),V=function(){var U;
return H&&!((U=d.likeCountEntity)==null||!U.call(d))};
return _.x("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.x(_.zm,{data:function(){var U=Object,L=U.assign,w;var W=_.M((w=d.data())==null?void 0:w.toggleButtonViewModel,_.EV);return L.call(U,{},W||{},{isToggled:R()})},
buttonShapeOverrides:d.buttonShapeOverrideables,animatedTextPropsDefault:function(){return V()?K():void 0},
animatedTextPropsToggled:function(){return V()?c():void 0},
onToggle:function(U){md5(U,k(),e(),a)},
style:function(){var U;return((U=d.disableIconAnimation)==null?0:U.call(d))?void 0:{animateIcon:"true"}}}))},"Q");
_.Tr.idomCompat=!0;var A2A=_.H1(function(d){var H=function(){return _.M(d.data().likeButtonViewModel,_.X5)},K=function(){var p;
return((p=H())==null?void 0:p.likeStatusEntityKey)||""},c=_.ey(function(){var p,g;
var a=(g=_.Uj(Q2,K)())!=null?g:(p=H())==null?void 0:p.likeStatusEntity;p=d.data();var e;p=(p==null?void 0:(e=p.timedAnimationData)==null?void 0:e.animationTiming)||[];return{uniqueId:"like-dislike",timings:p,enabled:(a==null?void 0:a.likeStatus)==="INDIFFERENT"&&p.length>0,experimentEnabled:p.length>0}},void 0,"hGh9Td");
return _.x("segmented-like-dislike-button-view-model",{class:_.xM("ytSegmentedLikeDislikeButtonViewModelHost",d.className),"button-renderer":!0},_.x(XH3,{settings:c},_.x("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.x(_.n,{cond:H,then:function(p){return _.x(_.Tr,{data:p,likeCountEntity:function(){return d.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.x(_.n,{cond:function(){return _.M(d.data().dislikeButtonViewModel,_.zz)},
then:function(p){return _.x(_.ZT,{data:p,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"R");
A2A.idomCompat=!0;_.iV(A2A,"segmented-like-dislike-button-view-model",{props:{data:_.dl,className:_.dl}});var jPC=_.H1(function(d){var H=d.data;var K=d.className;var c=d.setMinWidth;var p=d.forceIconOnly;var g=_.Af("account-link-button-view-model"),a=_.Uj(_.w0L,function(){var U;return(U=H().accountLinkStatusEntityKey)!=null?U:""}),e=_.Uj(_.w0L,function(){var U;
return(U=H().accountLinkStatusSecondaryEntityKey)!=null?U:""}),k=function(){if(!_.h("web_account_link_secondary_killswitch")){var U,L;
return((U=a())==null?void 0:U.linked)||((L=e())==null?void 0:L.linked)}var w;return(w=a())==null?void 0:w.linked};
_.wc(function(){var U=a();if(U){var L=dsl(new vF6,A4M(new fRd,!!U.linked));_.eA().then(function(w){w&&(w.setAccountLinkState(_.mb(L.JSC$12100_serializeBinary(),4)),w.updateAccountLinkingConfig(!!U.linked))})}},"b9pSsf");
var C=function(){return _.M(H().toggleButtonViewModel,_.EV)};
_.fn("yt-signal-action-show-account-link-dialog",function(){if(C()){var U=k()?C().toggledButtonViewModel:C().defaultButtonViewModel;U=_.M(U,_.OV);var L;if((L=a())==null?0:L.isWarning){L=_.M(H().warningButtonViewModel,_.OV);if(!L){_.SD(Error("Ah"));return}U=L}var w;(L=_.T6((w=U)==null?void 0:w.onTap))&&_.xW([L],g.value)}else _.SD(Error("Bh"))});
var R=function(){var U=C();return Object.assign({},U,{isToggled:k()})},V=function(){return(p==null?0:p())?{iconPosition:"icon-only"}:{}};
return _.x("account-link-button-view-model",{class:_.xM("ytwAccountLinkButtonViewModelHost",K,function(){return(c==null?0:c())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:g,"button-renderer":!0},_.x("div",null,_.x(_.n,{cond:function(){var U;if((U=a())==null?0:U.isWarning)return(U=_.M(H().warningButtonViewModel,_.OV))||_.SD(Error("Ah")),U},
then:function(U){return _.x(_.xk,{data:U,buttonOverrides:V})},
else:function(){return _.x(_.zm,{data:R,buttonShapeOverrides:V})}})))},"S");_.iV(jPC,"account-link-button-view-model",{props:{data:_.dl,className:_.p7,setMinWidth:_.p7,forceIconOnly:_.p7}});_.XX("menuRenderer","menuRenderer","ytd-menu-renderer");
var vBd={buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",forceIconButton:"[[forceIconButton]]",forceModernIconButton:"[[tonalOverride]]",styleActionButton:"[[styleActionButton]]",disableTextTransform:"[[disableTextTransformOnButtons]]",forceIconOnly:"[[topLevelIconsOnly]]"}},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[buttonOverride]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",
forceIconButton:"[[forceIconButton]]",forceModernIconButton:"[[tonalOverride]]",styleActionButton:"[[styleActionButton]]",disableTextTransform:"[[disableTextTransformOnButtons]]",forceIconOnly:"[[topLevelIconsOnly]]"}},segmentedLikeDislikeButtonRenderer:{component:"ytd-segmented-like-dislike-button-renderer"},segmentedLikeDislikeButtonViewModel:{component:"segmented-like-dislike-button-view-model"},accountLinkButtonRenderer:{component:"ytd-account-link-button-renderer",properties:{overrides:"[[buttonOverride]]",
forceModernIconButton:"[[tonalOverride]]",disableTextTransform:"[[disableTextTransformOnButtons]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",forceIconButton:"[[forceIconButton]]",forceIconOnly:"[[topLevelIconsOnly]]"}},accountLinkButtonViewModel:{component:"account-link-button-view-model",params:{className:"ytd-menu-renderer"},properties:{forceIconOnly:"[[topLevelIconsOnly]]"}},downloadButtonRenderer:{component:"ytd-download-button-renderer",properties:{overrides:"[[buttonOverride]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",
forceIconButton:"[[forceIconButton]]",styleActionButton:"[[styleActionButton]]",disableTextTransform:"[[disableTextTransformOnButtons]]",forceIconOnly:"[[topLevelIconsOnly]]"}},playlistLoopButtonRenderer:{component:"ytd-playlist-loop-button-renderer",properties:{forceIconOnly:"[[topLevelIconsOnly]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{buttonOverrides:"[[buttonOverrides]]",scopingClassName:"[[is]]"}},flexibleActionsViewModel:{component:"yt-flexible-actions-view-model"}},
ddg=_.h("web_fix_missing_action_buttons")?100:200,Qr=function(){var d=_.B.apply(this,arguments)||this;d.safeArea=!_.h("kevlar_flex_menu_safe_area_killswitch");d.tonalOverride=!1;d.threeDotSize="M";d.isOverlay=!1;d.useOverlayDark=!1;d.topLevelIconsOnly=!1;d.JSC$14571_lastWidth=0;d.maybeUpdateFlexibleMenu=function(){_.h("web_fix_missing_action_buttons")?requestAnimationFrame(d.maybeUpdateFlexibleMenuImpl):d.maybeUpdateFlexibleMenuImpl()};
d.maybeUpdateFlexibleMenuImpl=function(){var H;if((H=d.data)!=null&&H.flexibleItems){d.maybeFlushDebouncer();H=d.hostElement.clientWidth;var K=H>d.JSC$14571_lastWidth,c,p=((c=d.topLevelButtonsContainer)==null?void 0:c.scrollHeight)||0,g;c=((g=d.flexibleItemButtonsContainer)==null?void 0:g.scrollHeight)||0;g=d.hostElement.scrollHeight>Math.max(p,c)+8;K?(d.resetFlexibleItems(),d.JSC$14571_lastWidth=d.hostElement.clientWidth,d.maybeUpdateFlexibleMenu()):g&&(d.shrinkFlexibleMenu(),d.JSC$14571_lastWidth=
H)}};
d.computeThreeDotButtonShape=function(){if(d.tonalOverride)return Object.assign({},{onTap:function(){d.onOverflowTap()},
iconPosition:"icon-only",style:d.isOverlay?d.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:d.threeDotSize,state:"active",accessibilityLabel:d.computeAccessibilityLabel(d.data)},d.threeDotButtonOverride)};
d.onOverflowTap=function(){if(d.data.fetchMenuCommand)_.Kj().resolve(_.cb).resolveCommand(d.data.fetchMenuCommand,{form:{element:d.hostElement}});else if(d.data.isDisabled&&d.data.disabledCommand)_.CM(d.data.disabledCommand,d.hostElement);else{var H=d.createMenuRendererVe(),K={items:d.items};d.data.menuPopupAccessibility&&(K.menuPopupAccessibility=d.data.menuPopupAccessibility);d.data.footer&&(K.footer=d.data.footer);H={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:K},veData:H}};
_.Kj().resolve(_.B6).openSheet({openPopupActionCommand:H},d.hostElement)}};
return d};
_.m(Qr,_.B);_.G=Qr.prototype;_.G.updateButtonOverrides=function(){if(!_.h("menu_renderer_label_update_upkillswitch")){var d=_.Gn(this.hostElement).querySelector("yt-button-view-model");d&&(d.buttonOverrides=this.buttonOverrides)}};
_.G.computeHasItems=function(){var d;return((d=this.topLevelButtonData)==null?void 0:d.length)||this.hasFlexibleItems};
_.G.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.G.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.eO(this.hostElement,{"--ytd-menu-renderer-button-color":_.Yi(this.data.iconColor)}))};
_.G.onStamperFinished=function(){this.JSC$14571_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.G.setupFlexibleMenu=function(){var d=this,H;(H=this.data)!=null&&H.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.NV(this.maybeUpdateFlexibleMenu,ddg,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){d.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.G.maybeFlushDebouncer=function(){if(_.h("web_replace_formatted_with_attributed_string")){var d;(d=this.topLevelButtons)==null||d.forEach(function(K){var c;(K=(c=K.getElementsByTagName("yt-attributed-string"))==null?void 0:c[0])&&TO5(K)});
var H;(H=this.flexibleItemButtons)==null||H.forEach(function(K){var c;(K=(c=K.getElementsByTagName("yt-attributed-string"))==null?void 0:c[0])&&TO5(K)})}};
_.G.resetFlexibleItems=function(){var d;if((d=this.data)!=null&&d.flexibleItems){_.h("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var H;this.flexAsTopLevelButtons=(H=this.data.flexibleItems)==null?void 0:H.map(function(K){return _.M(K,_.rs3).topLevelButton});
_.h("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.G.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.G.shrinkFlexibleMenu=function(){var d;(d=this.flexAsTopLevelButtons)!=null&&d.length&&(this.flexAsTopLevelButtons=[].concat(_.ru(this.flexAsTopLevelButtons.slice(0,-1))))};
_.G.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:vBd,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:vBd,events:!0}}};
_.G.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.G.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.G.detached=function(){this.icon="MORE_VERT"};
_.G.computeTopLevelButtonData=function(d){if(!d)return[];var H;d=(H=d==null?void 0:d.topLevelButtons)!=null?H:[];return _.rs.unsafeClone([].concat(_.ru(d)))};
_.G.computeItems=function(d,H){if(!d)return[];var K=[];if(H){var c=(d.flexibleItems||[]).map(function(a){return _.M(a,_.rs3)});
c=_.q(c);for(var p=c.next();!p.done;p=c.next())p=p.value,H.includes(p.topLevelButton)||(p=p.menuItem)&&K.push(p)}var g;d=(g=d==null?void 0:d.items)!=null?g:[];return[].concat(_.ru(K),_.ru(d))};
_.G.computeMenuActive=function(d,H){return d||H};
_.G.onPopupOpened=function(){this.overlayOpen=!0;_.GT(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.G.onPopupClosed=function(){this.overlayOpen=!1;_.GT(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.G.onPopupCanceled=function(){this.overlayOpen=!1;_.GT(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.G.computeAccessibilityLabel=function(d){return this.get("accessibility.accessibilityData.label",d)};
_.G.isHidden=function(d,H){return this.tonalOverride||!d?!0:d.fetchMenuCommand||d.isDisabled&&d.disabledCommand?!1:!(H==null?0:H.length)};
_.G.isModernOverflowHidden=function(d,H){return this.tonalOverride&&d?d.fetchMenuCommand?!1:!(H==null?0:H.length):!0};
_.G.createMenuRendererVe=function(){var d=this.data.trackingParams,H=_.Fj(),K=_.so();return d&&H&&K?(d=_.P1(d),K=_.l8(7591),_.h("combine_ve_grafts")?_.ec(_.hR(),K,d):_.Ea(H,d,K),K):null};
_.H3.Object.defineProperties(Qr.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.flexAsTopLevelButtons)==null||!d.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Qr.prototype.onPopupCanceled=Qr.prototype.onPopupCanceled;Qr.prototype.onPopupClosed=Qr.prototype.onPopupClosed;Qr.prototype.onPopupOpened=Qr.prototype.onPopupOpened;Qr.prototype.tonalOverrideChanged=Qr.prototype.tonalOverrideChanged;Qr.prototype.resetFlexibleItems=Qr.prototype.resetFlexibleItems;Qr.prototype.setupFlexibleMenu=Qr.prototype.setupFlexibleMenu;Qr.prototype.iconButtonColorChanged=Qr.prototype.iconButtonColorChanged;Qr.prototype.updateButtonOverrides=Qr.prototype.updateButtonOverrides;
_.t([_.u(_.Ke),_.O("design:type",Object)],Qr.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Qr.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Qr.prototype,"ytRendererstamperBehavior",void 0);_.t([_.VP("#button-shape"),_.O("design:type",HTMLElement)],Qr.prototype,"buttonShape",void 0);_.t([_.VP("#button"),_.O("design:type",Object)],Qr.prototype,"button",void 0);
_.t([_.r(),_.O("design:type",Object)],Qr.prototype,"data",void 0);_.t([_.r({computed:"computeTopLevelButtonData(data)"}),_.O("design:type",Array)],Qr.prototype,"topLevelButtonData",void 0);_.t([_.r(),_.O("design:type",Array)],Qr.prototype,"flexAsTopLevelButtons",void 0);_.t([_.r({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.O("design:type",Array)],Qr.prototype,"items",void 0);_.t([_.r({value:"MORE_VERT"}),_.O("design:type",String)],Qr.prototype,"icon",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Qr.prototype,"safeArea",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.O("design:type",Boolean)],Qr.prototype,"menuActive",void 0);_.t([_.r(),_.O("design:type",Boolean)],Qr.prototype,"menuFocused",void 0);_.t([_.r({value:"bottom"}),_.O("design:type",String)],Qr.prototype,"buttonTooltipPosition",void 0);_.t([_.r(),_.O("design:type",Boolean)],Qr.prototype,"overlayOpen",void 0);
_.t([_.r({value:!0}),_.O("design:type",Boolean)],Qr.prototype,"forceIconButton",void 0);_.t([_.r(),_.O("design:type",Boolean)],Qr.prototype,"styleActionButton",void 0);_.t([_.r(),_.O("design:type",Boolean)],Qr.prototype,"disableTextTransformOnButtons",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Qr.prototype,"tonalOverride",void 0);_.t([_.r(),_.O("design:type",Object)],Qr.prototype,"threeDotSize",void 0);
_.t([_.r(),_.O("design:type",Object)],Qr.prototype,"threeDotButtonOverride",void 0);_.t([_.r(),_.O("design:type",Object)],Qr.prototype,"isOverlay",void 0);_.t([_.r(),_.O("design:type",Object)],Qr.prototype,"useOverlayDark",void 0);_.t([_.r({computed:"computeButtonOverride(tonalOverride)"}),_.O("design:type",Object)],Qr.prototype,"buttonOverride",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Qr.prototype,"hasCustomIconColor",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("flexAsTopLevelButtons"),_.O("design:type",Object),_.O("design:paramtypes",[])],Qr.prototype,"hasFlexibleItems",null);_.t([_.r({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.O("design:type",Boolean)],Qr.prototype,"hasItems",void 0);_.t([_.r(),_.O("design:type",Object)],Qr.prototype,"topLevelIconsOnly",void 0);
_.t([_.CK("topLevelIconsOnly"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qr.prototype,"updateButtonOverrides",null);_.t([_.I("topLevelIconsOnly"),_.O("design:type",Object),_.O("design:paramtypes",[])],Qr.prototype,"buttonOverrides",null);_.t([_.VP("#top-level-buttons-computed"),_.O("design:type",HTMLElement)],Qr.prototype,"topLevelButtonsContainer",void 0);_.t([_.UI(".top-level-buttons > *"),_.O("design:type",Array)],Qr.prototype,"topLevelButtons",void 0);
_.t([_.VP("#flexible-item-buttons"),_.O("design:type",HTMLElement)],Qr.prototype,"flexibleItemButtonsContainer",void 0);_.t([_.UI("#flexible-item-buttons > *"),_.O("design:type",Array)],Qr.prototype,"flexibleItemButtons",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qr.prototype,"iconButtonColorChanged",null);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qr.prototype,"setupFlexibleMenu",null);_.t([_.Mr("topLevelIconsOnly"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qr.prototype,"resetFlexibleItems",null);_.t([_.CK("tonalOverride"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qr.prototype,"tonalOverrideChanged",null);
_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qr.prototype,"onPopupOpened",null);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qr.prototype,"onPopupClosed",null);_.t([_.nK("yt-popup-canceled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qr.prototype,"onPopupCanceled",null);
_.T(Qr,"ytd-menu-renderer",function(){if(VaM===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden$="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);VaM=d}d=VaM;return d},{mode:2});var HRA;var $dd;_.tI=_.H1(function(d){var H=d.data;var K=function(){if(H().icon)a:{var c={iconName:H().icon};for(var p=_.Kj().resolve(_.xv),g=_.q([12,24]),a=g.next();!a.done;a=g.next()){var e=a.value;a=Object.assign({},c,{iconStyle:"youtube_fill",iconSize:e});e=Object.assign({},c,{iconStyle:"youtube_outline",iconSize:e});if(p.resolveIcon(a)){c=a;break a}if(p.resolveIcon(e)){c=e;break a}}c=void 0}else c=void 0;return c};
d={};return _.x("badge-shape",{class:_.xM("badge-shape-wiz",function(){return B_E(H().type)},(d["badge-shape-wiz--overlay"]=function(){return H().isOverlay},d["badge-shape-wiz--ads-include-dot"]=function(){return H().adsIncludeDot},d["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(H().type){case 17:case 18:case 19:var c=!0;
break a;default:c=!1}return c},d["badge-shape-wiz--status-badge"]=function(){a:switch(H().type){case 12:case 13:case 14:case 15:case 16:var c=!0;
break a;default:c=!1}return c},d["badge-shape-wiz--no-text"]=function(){return!H().text},d["badge-shape-wiz--modern"]=function(){return H().modern||_.h("web_modern_badge_shape")},d)),
style:_.UQ({"background-color":function(){var c;return(c=H().customColors)==null?void 0:c.backgroundColor}}),
role:function(){return H().accessibilityText?"img":void 0},
"aria-label":function(){return H().accessibilityText}},_.x(_.n,{cond:function(){return H().animation},
then:function(c){return _.x(_.hT,{className:"badge-shape-wiz__icon",data:c,animationName:function(){return c().animationConfig.name||""}})}}),_.x(_.n,{cond:function(){var c;
return K()&&!((c=H())==null?0:c.animation)},
then:function(){return _.x("div",{class:"badge-shape-wiz__icon"},_.x(vUD,{data:function(){return K()}}))}}),_.x("div",{class:"badge-shape-wiz__text"},function(){var c;
return(c=H())==null?void 0:c.text}))},"T");
_.tI.idomCompat=!0;_.iV(_.tI,"badge-shape",{props:{data:_.dl}});var Yx=function(){var d=_.B.apply(this,arguments)||this;d.systemIcons=_.h("kevlar_system_icons");d.animated=_.h("animated_live_badge_icon");d.useBadgeShape=_.h("web_badge_shape_defrag");return d};
_.m(Yx,_.B);_.G=Yx.prototype;_.G.addTooltips=function(){for(var d=_.Gn(this.hostElement).querySelectorAll(".badge"),H=0,K;K=d[H++];){var c=this.repeatElement.itemForElement(K);K=_.Gn(K);K.lastChild&&K.lastChild.is==="tp-yt-paper-tooltip"&&K.removeChild(K.lastChild);if(c=c.metadataBadgeRenderer&&c.metadataBadgeRenderer.tooltip){var p=_.gl("tp-yt-paper-tooltip");(0,_.ls)(p).textContent=c;p.setAttribute("position","top");p.setAttribute("aria-hidden","true");K.appendChild(p)}}};
_.G.badgesChanged=function(){var d=this;_.OT().parkOrScheduleJob(function(){d.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.G.standaloneRoundedBadgeChanged=function(){var d=this.useRoundedBadge?this.useRoundedBadge:void 0;d&&(this.useRoundedBadge=d)};
_.G.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.G.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.G.computeStyle=function(d){_.h("enable_html5_teal_ad_badge")&&d==="BADGE_STYLE_TYPE_AD"&&(d="badge-style-type-ad-alternate");_.h("kevlar_ytb_live_badges")&&d==="BADGE_STYLE_TYPE_LIVE_NOW"&&(d="badge-style-type-live-now-alternate");return d?d.toLowerCase().replace(/_/g,"-"):""};
_.G.computeRole=function(d){return this.computeAriaLabel(d)?"img":"status"};
_.G.computeAriaLabel=function(d){var H;return(d==null?void 0:(H=d.accessibilityData)==null?void 0:H.label)||(d==null?void 0:d.label)};
_.G.computeBadgeShape=function(d){var H;if(d){var K,c=rbf(d.style),p=WTM(d.style),g=d.label,a=((K=d.accessibilityData)==null?void 0:K.label)||d.label;a:switch(d.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":K=!0;break a;default:K=!1}d=(H=d.icon)==null?void 0:H.iconType;H={type:c,brNzRatingBadgeType:p,text:g,accessibilityText:a,isOverlay:K,icon:d!=="PREMIUM"?d:void 0,modern:_.h("web_modern_badge_view_model")}}else H={};return H};
_.G.updateComputedBadges=function(d,H,K){var c=this;(H=H?[H]:K?[K]:void 0)?this.computedBadges=H:this.computedBadges=d==null?void 0:d.filter(function(p){var g;if((g=p.metadataBadgeRenderer)==null?0:g.groups){g=!1;p=_.q(p.metadataBadgeRenderer.groups);for(var a=p.next();!a.done;a=p.next()){a=a.value;var e=void 0;g=g||((e=c.hiddenBadgeGroups)==null?void 0:e.includes(a))}return!g}return!0})};
_.G.useFilledIcons=function(d){return _.h("kevlar_system_icons")&&(d==="AUDIO_BADGE"||d==="CHECK_CIRCLE_THICK"||d==="OFFICIAL_ARTIST_BADGE"||d==="SPONSORSHIP_STAR"||d==="PERSON_RADAR_FILLED"||d==="PERSON_RADAR")};
_.G.computeBadgeShapeStyle=function(d){return this.useBadgeShape?d==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||d==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.G.computeIcon=function(d){var H,K;d=d==null?void 0:(H=d.metadataBadgeRenderer)==null?void 0:(K=H.icon)==null?void 0:K.iconType;if(d!=="PREMIUM"&&d)return _.kv(d)};
_.G.computeStandaloneBadge=function(d){var H;d=d==null?void 0:(H=d.icon)==null?void 0:H.iconType;return d==="PREMIUM_STANDALONE"||d==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Yx.prototype.hiddenBadgeGroupsChanged=Yx.prototype.hiddenBadgeGroupsChanged;Yx.prototype.standaloneBadgeChanged=Yx.prototype.standaloneBadgeChanged;Yx.prototype.standaloneRoundedBadgeChanged=Yx.prototype.standaloneRoundedBadgeChanged;Yx.prototype.badgesChanged=Yx.prototype.badgesChanged;_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Yx.prototype,"hidden",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Yx.prototype,"componentBehavior",void 0);
_.t([_.r(),_.O("design:type",Array)],Yx.prototype,"badges",void 0);_.t([_.r(),_.O("design:type",Object)],Yx.prototype,"topStandaloneBadge",void 0);_.t([_.r(),_.O("design:type",Object)],Yx.prototype,"bottomStandaloneBadge",void 0);_.t([_.r(),_.O("design:type",Object)],Yx.prototype,"computedBadges",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Yx.prototype,"mediumFontAdBadge",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Yx.prototype,"useRoundedBadge",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Yx.prototype,"largeFontAdBadge",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Yx.prototype,"overlayAd",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Yx.prototype,"overlayPremium",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Yx.prototype,"noDotAdBadge",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Yx.prototype,"collectionTruncate",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Yx.prototype,"isThumbnailBadge",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Yx.prototype,"wrapBadges",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Yx.prototype,"systemIcons",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Yx.prototype,"animated",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Yx.prototype,"useBadgeShape",void 0);_.t([_.r({value:[]}),_.O("design:type",Array)],Yx.prototype,"hiddenBadgeGroups",void 0);_.t([_.VP("#repeat"),_.O("design:type",XQ)],Yx.prototype,"repeatElement",void 0);_.t([_.Mr("badges"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Yx.prototype,"badgesChanged",null);
_.t([_.Mr("useRoundedBadge"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Yx.prototype,"standaloneRoundedBadgeChanged",null);_.t([_.Mr("topStandaloneBadge","bottomStandaloneBadge"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Yx.prototype,"standaloneBadgeChanged",null);_.t([_.Mr("hiddenBadgeGroups"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Yx.prototype,"hiddenBadgeGroupsChanged",null);
_.t([_.Z({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Yx);
var KTU=_.oq()(Yx,"ytd-badge-supported-renderer",function(){if($dd===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);$dd=d}d=$dd;return d},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.qk("kevlar_poly_si_batch_j053")?1:2});var Ot=function(){var d=_.B.apply(this,arguments)||this;d.iconType="STAR";d.standardizeIconSize=_.h("kevlar_system_icons");d.mediaHoverOverlayInitialVisibility=_.h("enable_top_landscape_image_button_command_web");d.noBottomMargin=!1;d.thumbnailObjectFit="CONTAIN";d.thumbnailFitHeight=!0;d.actionMap={"yt-mute-ad-action":"handleMuteAd"};return d};
_.m(Ot,_.B);_.G=Ot.prototype;
_.G.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"},params:{mediumFontAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.image":{id:"media",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.image.thumbnail]]",width:"[[mediaThumbnailWidth]]",fitHeight:"[[thumbnailFitHeight]]",objectFit:"[[thumbnailObjectFit]]"}}}},
"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",
notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.G.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",Ot.JSC$14583_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ot.JSC$14583_CLICK_LOCATION_ID_MAP))};
_.G.onTap=function(d){if(!_.h("use_on_click_for_desktop_display_ad"))this.onTapOrClick(d)};
_.G.onClick=function(d){if(_.h("use_on_click_for_desktop_display_ad"))this.onTapOrClick(d)};
_.G.onTapOrClick=function(d){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,d,!1)};
_.G.updateMediaBackgroundImage=function(){var d=this.get("data.image.thumbnail.thumbnails");d&&(d=_.Gv(d,0))&&_.eO(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+d+")"})};
_.G.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var d=0;d<this.data.impressionEndpoints.length;d++){var H=this.data.impressionEndpoints[d];H.clickTrackingParams&&delete H.clickTrackingParams;_.Kj().resolve(_.cb).resolveCommand(H,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var K;((K=this.data)==null?0:K.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.G.handleMuteAd=function(){};
_.G.attached=function(){var d=this;_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&d.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.G.detached=function(){_.h("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.H3.Object.defineProperties(Ot.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.data)==null||!d.titleText)return"";var H;return _.Vz("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((H=this.data)==null?void 0:H.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?0:d.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?0:d.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?0:d.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?0:d.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?0:d.fifthLine)?this.data.fifthLine:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
computePriceHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getPrice}},
computeThirdLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getThirdLine}},
computeFourthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFourthLine}},
computeFifthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFifthLine}},
hasEnergyIcon:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
Ot.prototype.onClick=Ot.prototype.onClick;Ot.prototype.onTap=Ot.prototype.onTap;Ot.prototype.dataChanged=Ot.prototype.dataChanged;
Ot.JSC$14583_CLICK_LOCATION_ID_MAP=_.h("enable_web_home_top_landscape_image_layout_click_location")?new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","body-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","secondary-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","media-hover-overlay"],["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",
"media"],["PROMOTED_SPARKLES_CLICK_LOCATION_BORDER","media-background"]]):new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"]]);
Ot.JSC$14583_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.h("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Ot.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.OO),_.O("design:type",Object)],Ot.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Ot.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.i3.YtSparklesClickLocationBehavior),_.O("design:type",Object)],Ot.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.u(Q6),_.O("design:type",Object)],Ot.prototype,"ytdActiveViewBehavior",void 0);_.t([_.u([_.Uq.YtActionHandlerBehavior]),_.O("design:type",Object)],Ot.prototype,"actionHandlerBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],Ot.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Ot.prototype,"clickCommand",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.JF}),_.O("design:type",Boolean)],Ot.prototype,"miniMode",void 0);_.t([_.r(),_.O("design:type",String)],Ot.prototype,"iconType",void 0);_.t([_.I("data.titleText"),_.O("design:type",String),_.O("design:paramtypes",[])],Ot.prototype,"titleAriaLabel",null);
_.t([_.I("data.rating"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ot.prototype,"getRating",null);_.t([_.I("data.price"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ot.prototype,"getPrice",null);_.t([_.I("data.thirdLine"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ot.prototype,"getThirdLine",null);_.t([_.I("data.fourthLine"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ot.prototype,"getFourthLine",null);
_.t([_.I("data.fifthLine"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ot.prototype,"getFifthLine",null);_.t([_.I("getRating"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ot.prototype,"computeRatingHidden",null);_.t([_.I("getPrice"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ot.prototype,"computePriceHidden",null);_.t([_.I("getThirdLine"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ot.prototype,"computeThirdLineHidden",null);
_.t([_.I("getFourthLine"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ot.prototype,"computeFourthLineHidden",null);_.t([_.I("getFifthLine"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ot.prototype,"computeFifthLineHidden",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.energyIcon"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ot.prototype,"hasEnergyIcon",null);
_.t([_.I("computePriceHidden","computeRatingHidden"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ot.prototype,"computeSecondaryTextHidden",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ot.prototype,"standardizeIconSize",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ot.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ot.prototype,"noBottomMargin",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("data.layout"),_.O("design:type",String),_.O("design:paramtypes",[])],Ot.prototype,"layout",null);_.t([_.I("data.layout"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ot.prototype,"mediaThumbnailWidth",null);_.t([_.I("layout"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ot.prototype,"useRoundedBadge",null);_.t([_.r(),_.O("design:type",String)],Ot.prototype,"thumbnailObjectFit",void 0);
_.t([_.r(),_.O("design:type",Object)],Ot.prototype,"thumbnailFitHeight",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ot.prototype,"dataChanged",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Ot.prototype,"onTap",null);_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Ot.prototype,"onClick",null);
_.t([_.Z({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Ot);
_.T(Ot,"ytd-display-ad-renderer",function(){if(HRA!==void 0)return HRA;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-display-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-display-ad-renderer">\n  <div id="root" class="style-scope ytd-display-ad-renderer">\n    <div id="media-container" aria-hidden="true" class="style-scope ytd-display-ad-renderer">\n      <div id="media-background" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-badge" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-hover-overlay" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div class="title style-scope ytd-display-ad-renderer">\n      <a class="yt-display-ad-renderer-endpoint title-link style-scope ytd-display-ad-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(clickCommand)]]">\n        <yt-formatted-string class="title-text style-scope ytd-display-ad-renderer" text="[[data.titleText]]" title="[[getSimpleString(data.titleText)]]">\n        </yt-formatted-string>\n      </a>\n      <div id="menu" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" title="[[getSimpleString(data.bodyText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <div id="badge" class="badge style-scope ytd-display-ad-renderer"></div>\n      <yt-formatted-string id="secondary-text" hidden="[[computeSecondaryTextHidden]]" text="[[data.secondaryText]]" title="[[getSimpleString(data.secondaryText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-display-ad-renderer">[[getRating]]</span>\n      <yt-icon id="icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-display-ad-renderer"></yt-icon>\n      <yt-formatted-string id="price" hidden="[[computePriceHidden]]" text="[[getPrice]]" class="style-scope ytd-display-ad-renderer"></yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="third-line" hidden="[[computeThirdLineHidden]]" text="[[data.thirdLine]]" title="[[getSimpleString(data.thirdLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fourth-line" hidden="[[computeFourthLineHidden]]" text="[[data.fourthLine]]" title="[[getSimpleString(data.fourthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fifth-line" hidden="[[computeFifthLineHidden]]" text="[[data.fifthLine]]" title="[[getSimpleString(data.fifthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <yt-img-shadow id="energy-icon" height="14" hidden="[[!data.energyIcon]]" thumbnail="[[data.energyIcon]]" class="style-scope ytd-display-ad-renderer"></yt-img-shadow>\n    </div>\n    <div id="call-to-action" class="style-scope ytd-display-ad-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-display-ad-renderer">\n  <div id="dismissed-content" class="style-scope ytd-display-ad-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return HRA=d},{mode:1});var cbB;var p03;var gHX;var zGF=new Map;var iRB=!1;var S9=function(){var d=_.B.apply(this,arguments)||this;d.DEFAULT_TOOLTIP_OFFSET="10";d.TOOLTIP_OFFSET_NO_BANNER="-8";d.badges=null;d.noEndpoints=!1;d.wrapText=!1;d.forceVerified=!1;d.tooltipPosition="top";d.compactStyle=!1;d.height=0;d.lineHeight=0;return d};
_.m(S9,_.B);_.G=S9.prototype;_.G.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.G.attached=function(){var d=this;this.observer=new MutationObserver(function(H,K){d.handleResized();K.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.G.detached=function(){this.observer&&this.observer.disconnect()};
_.G.logTooltipEvent=function(){_.h("kevlar_wiz_tooltip_event_killswitch")||iRB||(_.X0F("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),iRB=!0)};
_.G.handleWindowResized=function(){this.handleResized()};
_.G.onChannelNameChanged=function(){this.verified?this.handleResized():(this.textEl&&this.textEl.style.removeProperty("width"),this.textContainerEl&&(this.textContainerEl.style.removeProperty("padding"),this.textContainerEl.style.removeProperty("margin-right"),this.textContainerEl.style.removeProperty("margin-left")))};
_.G.onHeightChanged=function(){if(this.verified){var d=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Fm("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=d:this.textContainerEl.style.marginRight=d}};
_.G.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Fm("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.G.handleResized=function(){var d=this;this.verified&&_.Xp.addLowPriorityJob(function(){d.fitBackgroundToText();var H=getComputedStyle(d.hostElement).lineHeight;H&&(H=H.match(/\d+/))&&H.length&&(d.lineHeight=Number(H[0]));d.height=d.lineHeight&&!d.wrapText?d.lineHeight:d.textEl.offsetHeight})};
_.G.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var d=document.createRange(),H=_.Gn(this.textEl).children;H.length>0?d.selectNodeContents(H[0]):d.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(d.getBoundingClientRect().width)+"px"}};
_.G.computeChannelBadgeStyle=function(d){var H;if((d==null?0:(H=d.runs)==null?0:H.length)&&d.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Yi(d.runs[0].textColor)+";"};
_.H3.Object.defineProperties(S9.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!(!this.forceVerified&&this.get("badges.0.metadataBadgeRenderer.style")!=="BADGE_STYLE_TYPE_UNIFIED_VERIFIED")}},
hideBadges:{configurable:!0,enumerable:!0,get:function(){return this.verified||!this.badges||this.badges.length===0}},
formattedName:{configurable:!0,enumerable:!0,get:function(){return typeof this.channelName==="string"?_.AF(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var d=this.get("badges.0.metadataBadgeRenderer.tooltip");if(d)return d}return _.jG(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
S9.prototype.onLineHeightChanged=S9.prototype.onLineHeightChanged;S9.prototype.onHeightChanged=S9.prototype.onHeightChanged;S9.prototype.onChannelNameChanged=S9.prototype.onChannelNameChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],S9.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],S9.prototype,"badges",void 0);_.t([_.r(),_.O("design:type",Object)],S9.prototype,"channelName",void 0);
_.t([_.r(),_.O("design:type",Object)],S9.prototype,"noEndpoints",void 0);_.t([_.r(),_.O("design:type",Object)],S9.prototype,"wrapText",void 0);_.t([_.r(),_.O("design:type",Object)],S9.prototype,"forceVerified",void 0);_.t([_.r(),_.O("design:type",Object)],S9.prototype,"tooltipPosition",void 0);_.t([_.r(),_.O("design:type",String)],S9.prototype,"tooltip",void 0);_.t([_.r(),_.O("design:type",Boolean)],S9.prototype,"hasChannelArt",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],S9.prototype,"compactStyle",void 0);_.t([_.VP("#text-container"),_.O("design:type",HTMLElement)],S9.prototype,"textContainerEl",void 0);_.t([_.VP("#text"),_.O("design:type",Object)],S9.prototype,"textEl",void 0);_.t([_.VP("#verified-tooltip"),_.O("design:type",HTMLElement)],S9.prototype,"verifiedTooltip",void 0);_.t([_.r(),_.O("design:type",Object)],S9.prototype,"height",void 0);
_.t([_.r(),_.O("design:type",Object)],S9.prototype,"lineHeight",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("badges","forceVerified"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],S9.prototype,"verified",null);_.t([_.I("badges","verified"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],S9.prototype,"hideBadges",null);_.t([_.I("channelName"),_.O("design:type",Object),_.O("design:paramtypes",[])],S9.prototype,"formattedName",null);
_.t([_.I("badges","verified","formattedName"),_.O("design:type",String),_.O("design:paramtypes",[])],S9.prototype,"tooltipText",null);_.t([_.I("hasChannelArt"),_.O("design:type",String),_.O("design:paramtypes",[])],S9.prototype,"tooltipOffset",null);_.t([_.CK("channelName"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],S9.prototype,"onChannelNameChanged",null);
_.t([_.CK("height"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],S9.prototype,"onHeightChanged",null);_.t([_.CK("lineHeight","height"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],S9.prototype,"onLineHeightChanged",null);_.t([_.Z({is:"ytd-channel-name",disableElementRegistration:!0})],S9);
_.T(S9,"ytd-channel-name",function(){if(gHX!==void 0)return gHX;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return gHX=d},{mode:_.qk("kevlar_poly_si_batch_j036")?1:2});var Et=function(){var d=_.B.apply(this,arguments)||this;d.standardizeIconSize=_.h("kevlar_system_icons");return d};
_.m(Et,_.B);Et.prototype.basicPaletteChanged=function(){var d;(d=this.data.color)!=null&&d.basicColorPaletteData&&_.Bg(this.hostElement,this.data.color.basicColorPaletteData)};
Et.prototype.useFilledIcons=function(d){return _.h("kevlar_system_icons")&&(d==="CHECK_CIRCLE_THICK"||d==="OFFICIAL_ARTIST_BADGE")};
_.H3.Object.defineProperties(Et.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return this.data.authorCreator||((d=this.data)==null?void 0:(H=d.color)==null?void 0:(K=H.basicColorPaletteData)==null?void 0:K.backgroundColor)}}});
Et.prototype.basicPaletteChanged=Et.prototype.basicPaletteChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Et.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Et.prototype,"standardizeIconSize",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data.authorUnifiedVerified"),_.O("design:type",Object),_.O("design:paramtypes",[])],Et.prototype,"verified",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Et.prototype,"creator",null);_.t([_.CK("data.color.basicColorPaletteData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Et.prototype,"basicPaletteChanged",null);_.t([_.Z({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Et);
_.T(Et,"ytd-author-comment-badge-renderer",function(){if(p03!==void 0)return p03;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-author-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="name" class="yt-simple-endpoint style-scope ytd-author-comment-badge-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n  <ytd-channel-name id="channel-name" channel-name="[[data.authorText]]" force-verified="[[verified]]" tooltip="[[data.iconTooltip]]" class="style-scope ytd-author-comment-badge-renderer">\n  </ytd-channel-name>\n</a>\n<yt-icon id="icon" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" size="12" class="style-scope ytd-author-comment-badge-renderer">\n</yt-icon>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return p03=d},{mode:1});var GIC;var yr=function(){return _.B.apply(this,arguments)||this};
_.m(yr,_.B);yr.prototype.computeThumbnailWidth=function(d){if(d==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],yr.prototype,"data",void 0);_.t([_.r({computed:"computeIcon_(data.icon)"}),_.O("design:type",String)],yr.prototype,"icon",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],yr.prototype,"surface",void 0);
_.t([_.r({reflectToAttribute:!0,value:_.h("enable_shrink_image_size_on_web_posts_singleton")}),_.O("design:type",Boolean)],yr.prototype,"searchSxsUx",void 0);_.t([_.Z({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],yr);
_.T(yr,"ytd-backstage-image-renderer",function(){if(GIC!==void 0)return GIC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[data.command]]" class="style-scope ytd-backstage-image-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-backstage-image-renderer" href$="[[computeHref_(data.command)]]" data="[[data.commmand]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.command]]" class="style-scope ytd-backstage-image-renderer">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="generated-image-identifier" class="generated-image-identifier style-scope ytd-backstage-image-renderer" hidden="[[!data.generatedImageMetadata]]">\n        <yt-icon class="generated-image-icon style-scope ytd-backstage-image-renderer" icon="[[computeIcon_(data.generatedImageMetadata.icon)]]"></yt-icon>\n        <span class="generated-image-label style-scope ytd-backstage-image-renderer">[[data.generatedImageMetadata.label]]</span>\n      </div>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return GIC=d},{mode:1});var oHB;var b3=function(){var d=_.B.apply(this,arguments)||this;d.isLoading=!1;d.selectedItemIndex=-1;return d};
_.m(b3,_.B);_.G=b3.prototype;_.G.computeIsChannelOwner=function(d){if(!d)return!0;d=d[0];return!(d&&(d.signinEndpoint||d.selectServiceEndpoint))};
_.G.computeIsImagePoll=function(d){return(d==null?void 0:d.type)==="POLL_TYPE_IMAGE"};
_.G.computeIsTotalVotesDisabled=function(d){return!(d==null?0:d.totalVotes)};
_.G.thumbnailSrc=function(d){var H,K,c,p;return(d==null?0:(H=d.thumbnails)==null?0:(K=H[0])==null?0:K.url)?_.Xa((c=d.thumbnails)==null?void 0:(p=c[0])==null?void 0:p.url):void 0};
_.G.progressWidth=function(d){return"width:"+(d?d*100:0)+"%;"};
_.G.textAreaWidth=function(d){return this.isImagePoll?null:"width:"+(d?d*100:0)+"%;"};
_.G.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.G.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var d=this.data.choices,H=0;H<d.length;H++)if(d[H].selected){this.selectedItemIndex=H;break}};
_.G.onPopupClosed=function(d,H){d=Number(this.pollVotes.selected);H.confirmed&&(this.selectChoice(d,!1),_.oF(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.G.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.G.onYtCommentPollRevert=function(d,H){H&&(this.selectChoice(H.selectedChoiceIndex,!0),this.set("data.totalVotes",H.totalVotes))};
_.G.onYtServiceRequestSent=function(d,H){if(H.actions)for(d=0;d<H.actions.length;d++){var K=H.actions[d];_.M(K,P4)&&this.set("data.totalVotes",_.M(K,P4).totalVotes)}};
_.G.onYtServiceRequestCompleted=function(d){var H=this.get("detail.data.actionResults.0.feedback",d);d=this.get("detail.data.actionResults.0.status",d);if(H==="FEEDBACK_DESELECT"||H==="FEEDBACK_SELECT")this.isLoading=!1,d==="STATUS_FAILED"?_.GT(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.G.getEndpoint=function(d,H){return H===d?this.data.choices[H].deselectServiceEndpoint||null:this.data.choices[d].selectServiceEndpoint||null};
_.G.selectChoice=function(d,H){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var K=0;K<this.data.choices.length;K++){var c;if(d===this.selectedItemIndex){var p=!1;var g=c=null}else c=(p=K===d)?this.data.choices[K].voteRatioIfSelected:this.data.choices[K].voteRatioIfNotSelected,g=p?this.data.choices[K].votePercentageIfSelected:this.data.choices[K].votePercentageIfNotSelected;this.set("data.choices."+K+".voteRatio",c);
this.set("data.choices."+K+".votePercentage",g);this.set("data.choices."+K+".selected",p)}H||(this.isLoading=!0,(H=this.getEndpoint(d,this.selectedItemIndex))&&_.Kj().resolve(_.cb).resolveCommand(H,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===d?-1:d};
_.H3.Object.defineProperties(b3.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
b3.prototype.onYtServiceRequestCompleted=b3.prototype.onYtServiceRequestCompleted;b3.prototype.onYtServiceRequestSent=b3.prototype.onYtServiceRequestSent;b3.prototype.onYtCommentPollRevert=b3.prototype.onYtCommentPollRevert;b3.prototype.onPopupClosed=b3.prototype.onPopupClosed;b3.prototype.dataChanged=b3.prototype.dataChanged;_.t([_.u(_.Dv),_.O("design:type",Object)],b3.prototype,"paperItemBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Ke),_.O("design:type",Object)],b3.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],b3.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],b3.prototype,"isLoading",void 0);_.t([_.r({computed:"computeIsChannelOwner(data.choices)"}),_.O("design:type",Boolean)],b3.prototype,"isChannelOwner",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.O("design:type",Boolean)],b3.prototype,"isImagePoll",void 0);_.t([_.r({computed:"computeIsTotalVotesDisabled(data)"}),_.O("design:type",Boolean)],b3.prototype,"isTotalVotesDisabled",void 0);_.t([_.r(),_.O("design:type",Object)],b3.prototype,"previousPollInfo",void 0);_.t([_.r(),_.O("design:type",Object)],b3.prototype,"selectedItemIndex",void 0);_.t([_.VP("#poll-votes"),_.O("design:type",Object)],b3.prototype,"pollVotes",void 0);
_.t([_.I("isChannelOwner"),_.O("design:type",Object),_.O("design:paramtypes",[])],b3.prototype,"endpointStyle",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],b3.prototype,"dataChanged",null);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],b3.prototype,"onPopupClosed",null);
_.t([_.nK("yt-comment-poll-revert"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],b3.prototype,"onYtCommentPollRevert",null);_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],b3.prototype,"onYtServiceRequestSent",null);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],b3.prototype,"onYtServiceRequestCompleted",null);_.t([_.Z({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],b3);
_.T(b3,"ytd-backstage-poll-renderer",function(){if(oHB!==void 0)return oHB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return oHB=d},{mode:2});var qK3;var aG0={autoplay:!1,loop:!1},lG3={simpleText:""},Ni=function(){var d=_.B.apply(this,arguments)||this;d.isLoading=!1;d.usesPanelLockup=!1;d.selectedItemIndex=-1;d.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},aG0,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});d.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},aG0,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});d.correctnessAnimationProps=[];d.correctnessAnimationRefs=[];return d};
_.m(Ni,_.B);_.G=Ni.prototype;_.G.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.G.computeIsChannelOwner=function(d){if(!d)return!0;d=d[0];return!(d&&(d.signinEndpoint||d.selectServiceEndpoint))};
_.G.computeIsTotalVotesDisabled=function(d){return!(d==null?0:d.totalVotes)};
_.G.computeIsImageQuiz=function(d){return(d==null?void 0:d.type)==="POLL_TYPE_IMAGE"};
_.G.onExplanationChanged=function(){this.expander.reset()};
_.G.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var d=this.data.choices;if(d){this.maybeInitializeQuizLotties(d);for(var H=0;H<d.length;H++)if(d[H].isSelected||this.isChannelOwner&&d[H].isCorrect){this.selectedItemIndex=H;return}this.selectedItemIndex=-1}}};
_.G.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var d=this.selectedItemIndex,H=Number(this.quizVotes.selected);this.selectChoice(H);this.sendVoteAction(H,d);this.quizVotes.selected=-1;var K;d=!((K=this.data)==null?0:K.enableAnimation);this.maybePlayAnswerAnimations(d)}};
_.G.onYtCommentPollRevert=function(d,H){H&&(this.selectChoice(H.selectedChoiceIndex),this.set("data.totalVotes",H.totalVotes))};
_.G.onYtServiceRequestSent=function(d,H){if(H.actions)for(d=_.q(H.actions),H=d.next();!H.done;H=d.next())(H=_.M(H.value,P4))&&this.set("data.totalVotes",H.totalVotes)};
_.G.onYtServiceRequestCompleted=function(d){var H=this.get("detail.data.actionResults.0.feedback",d);d=this.get("detail.data.actionResults.0.status",d);if(H==="FEEDBACK_DESELECT"||H==="FEEDBACK_SELECT")this.isLoading=!1,d==="STATUS_FAILED"?_.GT(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.G.getAnimationPropsForChoiceIndex=function(d,H){return H[d]};
_.G.maybePlayAnswerAnimations=function(d){d=d===void 0?!1:d;var H;if((H=this.data)!=null&&H.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){H=_.q(this.correctnessAnimationRefs);for(var K=H.next();!K.done;K=H.next()){var c=void 0,p=void 0;(c=K.value)==null||(p=c.lottieEl)==null||p.stop()}if(!(this.selectedItemIndex<0)){H=0;d&&(H=this.isCorrect?37:25);var g,a;(g=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(a=g.lottieEl)==null||a.goToAndPlay(d?H:0,!0);if(!(this.isCorrect||
(g=this.data.choices.findIndex(function(R){return R.isCorrect}),g<0))){var e,k;
(k=(e=this.correctnessAnimationRefs[g])==null?void 0:e.lottieEl)==null||k.goToAndPlay(37,!0);var C;e=(C=this.fadeContainers)==null?void 0:C.item(g);!d&&e&&this.fadeIn(e)}}}};
_.G.thumbnailSrc=function(d){var H,K,c,p;return(d==null?0:(H=d.thumbnails)==null?0:(K=H[0])==null?0:K.url)?_.Xa((c=d.thumbnails)==null?void 0:(p=c[0])==null?void 0:p.url):void 0};
_.G.a11yVotedText=function(d,H){var K,c,p=((K=this.data)==null?void 0:(c=K.correctVotedText)==null?void 0:c.simpleText)||"",g,a;K=((g=this.data)==null?void 0:(a=g.votedText)==null?void 0:a.simpleText)||"";if(!H)return"";var e,k;if((e=this.data)==null?0:(k=e.choices)==null?0:k[d].isCorrect)return p;var C,R;return((C=this.data)==null?0:(R=C.choices)==null?0:R[d].isSelected)?K:""};
_.G.getEndpoint=function(d,H){return H===d?this.data.choices[d].deselectServiceEndpoint||null:this.data.choices[d].selectServiceEndpoint||null};
_.G.sendVoteAction=function(d,H){if(d=this.getEndpoint(d,H))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(d)};
_.G.selectChoice=function(d){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var H=0;H<this.data.choices.length;H++)this.set("data.choices."+H+".isSelected",d===this.selectedItemIndex?!1:H===d);this.selectedItemIndex=this.selectedItemIndex===d?-1:d};
_.G.maybeInitializeQuizLotties=function(d){var H=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=d.map(function(K){return{animationConfig:K.isCorrect?H.baseCorrectLottiePlayerAnimationConfig:H.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){H.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(K){return K.animationRef||{}})};
_.G.fadeIn=function(d){d.classList.add("fade-in");_.lV(_.Xp,function(){d.classList.remove("fade-in")},900)};
_.H3.Object.defineProperties(Ni.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.jG(this.explanation).length>0&&this.showCorrectAnswer}},
showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}},
isAttempted:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?void 0:(H=d.choices)==null?void 0:H.some(function(K){return K.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null||!d.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?lG3:this.data.choices[this.selectedItemIndex].explanation||lG3}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null||!d.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
Ni.prototype.onYtServiceRequestCompleted=Ni.prototype.onYtServiceRequestCompleted;Ni.prototype.onYtServiceRequestSent=Ni.prototype.onYtServiceRequestSent;Ni.prototype.onYtCommentPollRevert=Ni.prototype.onYtCommentPollRevert;Ni.prototype.dataChanged=Ni.prototype.dataChanged;Ni.prototype.onExplanationChanged=Ni.prototype.onExplanationChanged;_.t([_.u(_.Dv),_.O("design:type",Object)],Ni.prototype,"paperItemBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Ni.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.pd.YtTaskEmitterBehavior),_.O("design:type",Object)],Ni.prototype,"ytTaskEmitterBehavior",void 0);_.t([_.u(_.Ke),_.O("design:type",Object)],Ni.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ni.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Object)],Ni.prototype,"isLoading",void 0);_.t([_.r(),_.O("design:type",Object)],Ni.prototype,"usesPanelLockup",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.O("design:type",Boolean)],Ni.prototype,"isChannelOwner",void 0);_.t([_.r({computed:"computeIsTotalVotesDisabled(data)"}),_.O("design:type",Boolean)],Ni.prototype,"isTotalVotesDisabled",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.O("design:type",Boolean)],Ni.prototype,"isImageQuiz",void 0);_.t([_.r(),_.O("design:type",Object)],Ni.prototype,"previousQuizInfo",void 0);_.t([_.r(),_.O("design:type",Object)],Ni.prototype,"selectedItemIndex",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data","usesPanelLockup"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ni.prototype,"shouldUseModernUi",null);
_.t([_.UI(".fade-container"),_.O("design:type",Object)],Ni.prototype,"fadeContainers",void 0);_.t([_.r(),_.O("design:type",Array)],Ni.prototype,"correctnessAnimationProps",void 0);_.t([_.I("explanation","showCorrectAnswer"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ni.prototype,"showExplanation",null);_.t([_.I("isChannelOwner","isAttempted"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ni.prototype,"showCorrectAnswer",null);
_.t([_.I("isChannelOwner","isAttempted","data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ni.prototype,"isQuizAnsweringDisabled",null);_.t([_.I("isQuizAnsweringDisabled"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ni.prototype,"endpointStyle",null);_.t([_.I("data","selectedItemIndex"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ni.prototype,"isAttempted",null);
_.t([_.I("data","selectedItemIndex"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ni.prototype,"explanation",null);_.t([_.I("data","selectedItemIndex"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ni.prototype,"isCorrect",null);_.t([_.VP("ytd-expander"),_.O("design:type",Object)],Ni.prototype,"expander",void 0);_.t([_.VP("#quiz-votes"),_.O("design:type",Object)],Ni.prototype,"quizVotes",void 0);
_.t([_.CK("explanation"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ni.prototype,"onExplanationChanged",null);_.t([_.CK("data","isChannelOwner"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ni.prototype,"dataChanged",null);_.t([_.nK("yt-comment-quiz-revert"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],Ni.prototype,"onYtCommentPollRevert",null);
_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],Ni.prototype,"onYtServiceRequestSent",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Ni.prototype,"onYtServiceRequestCompleted",null);_.t([_.Z({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Ni);
_.T(Ni,"ytd-backstage-quiz-renderer",function(){if(qK3!==void 0)return qK3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return qK3=d},{mode:1});var eGM;var DT=function(){return _.B.apply(this,arguments)||this};
_.m(DT,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],DT.prototype,"data",void 0);_.t([_.Z({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],DT);
_.T(DT,"ytd-post-uploaded-video-renderer",function(){if(eGM!==void 0)return eGM;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-uploaded-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-post-uploaded-video-renderer">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-post-uploaded-video-renderer">\n  </yt-img-shadow>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return eGM=d},{mode:1});var kIX;var f_=function(){return _.B.apply(this,arguments)||this};
_.m(f_,_.B);f_.prototype.useFilledIcons=function(d){return d==="SPONSORSHIP_STAR"};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],f_.prototype,"data",void 0);_.t([_.Z({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],f_);
var xd7=_.oq()(f_,"ytd-sponsors-only-badge-renderer",function(){if(kIX===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsors-only-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" class="style-scope ytd-sponsors-only-badge-renderer">\n</yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer">\n  <tp-yt-paper-tooltip for="label" class="style-scope ytd-sponsors-only-badge-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n  </tp-yt-paper-tooltip>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);kIX=d}d=kIX;return d},{allowedProps:["data"],
mode:1});var nHM;var AI=function(){return _.B.apply(this,arguments)||this};
_.m(AI,_.B);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],AI.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],AI.prototype,"data",void 0);_.t([_.Z({is:"ytd-child-video-renderer",disableElementRegistration:!0})],AI);
_.T(AI,"ytd-child-video-renderer",function(){if(nHM!==void 0)return nHM;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-child-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-child-video-renderer" id="title" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"><yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-child-video-renderer"></yt-formatted-string><div id="length" class="style-scope ytd-child-video-renderer">[[getSimpleString(data.lengthText)]]</div></a>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return nHM=d},{mode:1});var Cu3;var RGS;var j9=function(){var d=_.B.apply(this,arguments)||this;d.size=0;d.enableWebModernCollectionsV2=_.h("web_modern_collections_v2");d.fallbackImageSize={height:void 0,width:9999};d.webModernCollections=!1;return d};
_.m(j9,_.B);_.G=j9.prototype;_.G.computeBlurredImageSize=function(d){return d?{height:d*2,width:d*2}:this.fallbackImageSize};
_.G.computeImageSize=function(d){return d?{height:d,width:d}:this.fallbackImageSize};
_.G.computeObjectFit=function(d){return d?"FILL":"CONTAIN"};
_.G.computePreserve=function(d){return d?!0:!1};
_.G.setBackground=function(){var d,H;_.h("web_modern_collections_v2")&&((d=this.data)==null?0:(H=d.thumbnail)==null?0:H.sampledThumbnailColor)&&(d=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+d.red+","+d.green+","+d.blue+",1)")};
j9.prototype.setBackground=j9.prototype.setBackground;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],j9.prototype,"watchFeedThumbnail",void 0);_.t([_.r(),_.O("design:type",Object)],j9.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],j9.prototype,"size",void 0);
_.t([_.r({computed:"computeBlurredImageSize(size)"}),_.O("design:type",Object)],j9.prototype,"blurredImageSize",void 0);_.t([_.r({computed:"computeImageSize(size)"}),_.O("design:type",Object)],j9.prototype,"imageSize",void 0);_.t([_.r({computed:"computePreserve(size)"}),_.O("design:type",String)],j9.prototype,"preserve",void 0);_.t([_.r({computed:"computeObjectFit(size)"}),_.O("design:type",String)],j9.prototype,"objectFit",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],j9.prototype,"enableWebModernCollectionsV2",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],j9.prototype,"webModernCollections",void 0);_.t([_.CK("data.thumbnail.sampledThumbnailColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],j9.prototype,"setBackground",null);_.t([_.Z({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],j9);
_.T(j9,"ytd-playlist-custom-thumbnail-renderer",function(){if(RGS!==void 0)return RGS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[webModernCollections]]" class="style-scope ytd-playlist-custom-thumbnail-renderer">\n    <div class="blurred-image-wrapper style-scope ytd-playlist-custom-thumbnail-renderer" style$="[[backgroundStyle]]">\n        <yt-image class="blurred-image style-scope ytd-playlist-custom-thumbnail-renderer" alt="hidden" aria-hidden="true" data="[[data.thumbnail]]" ftl-eligible="" height="[[blurredImageSize.height]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[blurredImageSize.width]]">\n        </yt-image>\n    </div>\n</template>\n<yt-image class="custom-thumbnail style-scope ytd-playlist-custom-thumbnail-renderer" alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[imageSize.height]]" object-fit="[[objectFit]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[imageSize.width]]">\n</yt-image>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return RGS=d},{mode:1});var VCd;var v6=function(){return _.B.apply(this,arguments)||this};
_.m(v6,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],v6.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Number)],v6.prototype,"width",void 0);_.t([_.Z({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],v6);
_.T(v6,"ytd-playlist-video-thumbnail-renderer",function(){if(VCd!==void 0)return VCd;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" width="[[width]]" class="style-scope ytd-playlist-video-thumbnail-renderer">\n</yt-image>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return VCd=d},{mode:1});var UdC;var db=function(){return _.B.apply(this,arguments)||this};
_.m(db,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],db.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Number)],db.prototype,"width",void 0);_.t([_.Z({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],db);
_.T(db,"ytd-show-custom-thumbnail-renderer",function(){if(UdC!==void 0)return UdC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" width="[[width]]" class="style-scope ytd-show-custom-thumbnail-renderer">\n</yt-image>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return UdC=d},{mode:1});var hG3;var H$=function(){return _.B.apply(this,arguments)||this};
_.m(H$,_.B);H$.prototype.useFilledIcons=function(d){return d==="MUSIC"||d==="COURSE"};
H$.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Sh(this.overlayColor,"0.8");else if(this.overlayColor){var d=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+d.red+","+d.green+","+d.blue+",0.8)"}};
_.H3.Object.defineProperties(H$.prototype,{overlayStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||!this.data.icon)}},
overlayTextStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||this.data.icon)}}});
H$.prototype.overlayColorChanged=H$.prototype.overlayColorChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],H$.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],H$.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],H$.prototype,"overlayColor",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data.icon","data.text"),_.O("design:type",Object),_.O("design:paramtypes",[])],H$.prototype,"overlayStyle",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data.icon","data.text"),_.O("design:type",Object),_.O("design:paramtypes",[])],H$.prototype,"overlayTextStyle",null);_.t([_.CK("overlayColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],H$.prototype,"overlayColorChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],H$);
_.T(H$,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(hG3!==void 0)return hG3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-bottom-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-icon>\n<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-formatted-string>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return hG3=d},{mode:1});var LT3;var $n=function(){var d=_.B.apply(this,arguments)||this;d.active=!1;return d};
_.m($n,_.B);$n.prototype.computeIsSpinnerHidden=function(d){return(d==null?void 0:d.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
$n.prototype.computeOverlayIcon=function(d){return(d==null?void 0:d.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(d==null?void 0:d.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],$n.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],$n.prototype,"active",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],$n);
_.T($n,"ytd-thumbnail-overlay-downloading-renderer",function(){if(LT3!==void 0)return LT3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-downloading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[computeOverlayIcon(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[active]]" hidden="[[computeIsSpinnerHidden(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></tp-yt-paper-spinner-lite>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return LT3=d},{mode:1});var MC3;var KJ=function(){return _.B.apply(this,arguments)||this};
_.m(KJ,_.B);_.H3.Object.defineProperties(KJ.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],KJ.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],KJ.prototype,"data",void 0);_.t([_.I("data.text"),_.O("design:type",Object),_.O("design:paramtypes",[])],KJ.prototype,"text",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],KJ);
_.T(KJ,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(MC3!==void 0)return MC3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-hover-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-hover-text-renderer"></yt-icon>\n<span class="style-scope ytd-thumbnail-overlay-hover-text-renderer">[[text]]</span>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return MC3=d},{mode:1});var md3,w03=function(){if(md3!==void 0)return md3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-equalizer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg xmlns="http://www.w3.org/2000/svg" id="equalizer" viewBox="0 0 55 95" class="style-scope ytd-thumbnail-overlay-equalizer">\n  <g class="style-scope ytd-thumbnail-overlay-equalizer">\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="0"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="20"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="40"></rect>\n  </g>\n</svg>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return md3=d};var c$=function(){return _.B.apply(this,arguments)||this};
_.m(c$,_.B);_.H3.Object.defineProperties(c$,{template:{configurable:!0,enumerable:!0,get:function(){return w03()}}});
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],c$.prototype,"animateEqualizer",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],c$);_.oq()(c$,"ytd-thumbnail-overlay-equalizer",function(){return w03()},{allowedProps:["animateEqualizer"],
mode:1});var PuC;var pJ=function(){var d=_.B.apply(this,arguments)||this;d.nowPlayingBadge=_.h("web_now_playing_badge");d.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return d};
_.m(pJ,_.B);pJ.prototype.activeChanged=function(){var d=this;_.h("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.vV(this,function(){_.GT(d.hostElement,"yt-playlist-lockup-now-playing-active",d)})};
pJ.prototype.onMiniplayerPlayStateChanged=function(d){var H,K=(H=_.M(_.UT().currentEndpoint,_.AP))==null?void 0:H.videoId;this.isVideoPlaying=d&&(_.h("web_limit_now_playing_animation_killswitch")||this.videoId===K)};
pJ.prototype.activeChanged=pJ.prototype.activeChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],pJ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],pJ.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],pJ.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],pJ.prototype,"isVideoPlaying",void 0);_.t([_.r(),_.O("design:type",String)],pJ.prototype,"videoId",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],pJ.prototype,"equalizerOnly",void 0);_.t([_.r(),_.O("design:type",Boolean)],pJ.prototype,"isActive",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],pJ.prototype,"nowPlayingBadge",void 0);_.t([_.CK("isActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pJ.prototype,"activeChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],pJ);
_.T(pJ,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(PuC!==void 0)return PuC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-now-playing-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="overlay-text" hidden="[[equalizerOnly]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">[[getSimpleString(data.text)]]</span>\n<ytd-thumbnail-overlay-equalizer animate-equalizer="[[isVideoPlaying]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">\n</ytd-thumbnail-overlay-equalizer>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return PuC=d},{mode:1});var uRA;var gb=function(){return _.B.apply(this,arguments)||this};
_.m(gb,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],gb.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],gb);
_.T(gb,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(uRA!==void 0)return uRA;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-playback-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.texts]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"></yt-formatted-string></template>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return uRA=d},{mode:_.qk("kevlar_poly_si_batch_j025")?1:2});var IG3;var im=function(){return _.B.apply(this,arguments)||this};
_.m(im,_.B);im.prototype.onDurationChanged=function(){var d,H;_.Gn(this.hostElement).querySelector("#progress").style.width=((H=(d=this.data)==null?void 0:d.percentDurationWatched)!=null?H:0)+"%"};
im.prototype.onDurationChanged=im.prototype.onDurationChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],im.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],im.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],im.prototype,"isLive",void 0);_.t([_.CK("data.percentDurationWatched"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],im.prototype,"onDurationChanged",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],im);
_.T(im,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(IG3!==void 0)return IG3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-resume-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress" class="style-scope ytd-thumbnail-overlay-resume-playback-renderer"></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return IG3=d},{mode:1});var rbU;var G4=function(){var d=_.B.apply(this,arguments)||this;d.bottomPanel=!1;d.richGridOverlay=!1;d.watchFeedOverlay=!1;d.isCompact=!1;return d};
_.m(G4,_.B);G4.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.H3.Object.defineProperties(G4.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?void 0:(H=d.icon)==null?void 0:H.iconType)==="PLAY_ALL"&&_.h("kevlar_system_icons")}}});
G4.prototype.widthChanged=G4.prototype.widthChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],G4.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Number)],G4.prototype,"width",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],G4.prototype,"bottomPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],G4.prototype,"richGridOverlay",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],G4.prototype,"watchFeedOverlay",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],G4.prototype,"isCompact",void 0);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],G4.prototype,"isIconFilled",null);_.t([_.CK("width","watchFeedOverlay"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],G4.prototype,"widthChanged",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],G4);
_.T(G4,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(rbU!==void 0)return rbU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-side-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-formatted-string>\n<yt-icon default-to-filled="[[isIconFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-icon>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return rbU=d},{mode:1});var WT7;var B_C=["CLIP","SHORTS"],oa=function(){var d=_.B.apply(this,arguments)||this;d.animated=_.h("animated_live_badge_icon");d.hasIcon=!1;d.updateTimerIntervalId=0;d.timeSinceLive=0;return d};
_.m(oa,_.B);_.G=oa.prototype;_.G.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.G.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.G.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.G.hasIconOrText=function(){var d,H;return!!(((d=this.data)==null?0:d.icon)||((H=this.data)==null?0:H.text))};
_.G.initializeLiveBadgeTimer=function(){var d=this,H,K=(H=this.liveBadgeData)==null?void 0:H.startTimestampSec;if(K&&this.canShowLiveBadgeTimer()){var c;H=Number((c=this.liveBadgeData)==null?void 0:c.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(K);this.updateTimerIntervalId=_.lT(function(){d.canShowLiveBadgeTimer()?d.timeSinceLive++:(d.timeSinceLive=0,window.clearInterval(d.updateTimerIntervalId))},H)}else this.timeSinceLive=0};
_.G.canShowLiveBadgeTimer=function(){var d=Date.now(),H,K;return d<(Number((H=this.liveBadgeData)==null?void 0:H.endTimestampSec)-1)*1E3&&d>Number((K=this.liveBadgeData)==null?void 0:K.startTimestampSec)*1E3};
_.H3.Object.defineProperties(oa.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var d=this.data;var H=this.timeSinceLive;var K,c,p,g;a:{var a=d.style;if(a===void 0)a=17;else switch(a){case "LIVE":a=18;break a;default:a=17}}H={type:a,text:H?V$4({seconds:H}):_.jG(d.text),accessibilityText:(K=d.text)==null?void 0:(c=K.accessibility)==null?void 0:(p=c.accessibilityData)==null?void 0:p.label,icon:(g=d.icon)==null?void 0:g.iconType}}else H={};return H}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.liveBadgeData}},
overlayType:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.type)return this.data.type.replace("THUMBNAIL_OVERLAY_TIME_STATUS_TYPE_","")}},
useFilledIcon:{configurable:!0,enumerable:!0,get:function(){return B_C.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
oa.prototype.initializeLiveBadgeTimer=oa.prototype.initializeLiveBadgeTimer;oa.prototype.dataChanged=oa.prototype.dataChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],oa.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],oa.prototype,"data",void 0);_.t([_.r({computed:"computeIcon_(data.icon)"}),_.O("design:type",String)],oa.prototype,"icon",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],oa.prototype,"animated",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.O("design:type",Boolean)],oa.prototype,"hideTimeStatus",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],oa.prototype,"hasIcon",void 0);_.t([_.r(),_.O("design:type",Object)],oa.prototype,"timeSinceLive",void 0);_.t([_.I("data","timeSinceLive"),_.O("design:type",Object),_.O("design:paramtypes",[])],oa.prototype,"badgeShapeData",null);
_.t([_.I("data","overlayType"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],oa.prototype,"hideBadgeShape",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oa.prototype,"dataChanged",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.style"),_.O("design:type",Object),_.O("design:paramtypes",[])],oa.prototype,"overlayStyle",null);
_.t([_.I("data.liveBadgeData"),_.O("design:type",Object),_.O("design:paramtypes",[])],oa.prototype,"liveBadgeData",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.type"),_.O("design:type",Object),_.O("design:paramtypes",[])],oa.prototype,"overlayType",null);_.t([_.I("overlayType","overlayStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],oa.prototype,"useFilledIcon",null);
_.t([_.Mr("liveBadgeData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oa.prototype,"initializeLiveBadgeTimer",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],oa);
_.T(oa,"ytd-thumbnail-overlay-time-status-renderer",function(){if(WT7!==void 0)return WT7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-time-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer badges="[[data.badges]]" is-thumbnail-badge="" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></ytd-badge-supported-renderer><div class="thumbnail-overlay-badge-shape style-scope ytd-thumbnail-overlay-time-status-renderer" hidden="[[hideBadgeShape]]"><badge-shape data="[[badgeShapeData]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></badge-shape></div><div id="time-status" hidden="[[hideTimeStatus]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"><yt-icon active="[[useFilledIcon]]" disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" size="16" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></yt-icon><span id="text" aria-label$="[[data.text.accessibility.accessibilityData.label]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer">\n    [[getSimpleString(data.text)]]\n  </span></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return WT7=d},{mode:_.qk("kevlar_poly_si_batch_j035")?1:2});var zGB;var qF=function(){return _.B.apply(this,arguments)||this};
_.m(qF,_.B);qF.prototype.configureRendererStamper=function(){return{"data.primaryActionButton":{id:"primary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
qF.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(d){if(this.hasPlaybackProgressBar)return{percentDurationWatched:d.percentDurationWatched}};
qF.prototype.computeHasPlaybackProgressBar=function(d){return!!d.percentDurationWatched&&d.percentDurationWatched>0};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],qF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],qF.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.O("design:type",Boolean)],qF.prototype,"hasPlaybackProgressBar",void 0);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],qF);
_.T(qF,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(zGB!==void 0)return zGB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-show-watch-forward-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n  <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <div id="button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n    <div id="primary-action-button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      <div id="primary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n      <ytd-thumbnail-overlay-resume-playback-renderer id="playback-progress" data="[[computeThumbnailOverlayResumePlaybackRenderer(data)]]" hidden$="[[!hasPlaybackProgressBar]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      </ytd-thumbnail-overlay-resume-playback-renderer>\n    </div>\n    <div id="secondary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return zGB=d},{mode:1});var X0X;var JbM=_.H1(function(d){var H=d.data;var K=d.children;var c=function(){return!!H().doubleStack},p=function(){return!!H().includeStackHeight};
return _.x("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!H().experimentEnabled}},_.x(_.n,{cond:H,
then:function(){var g={};return _.x(_.HE,null,_.x(_.n,{cond:p,then:function(){var a={};return _.x("div",{class:_.xM("collections-stack-wiz__spacer",(a["collections-stack-wiz__spacer--double-stack"]=c,a))})}}),_.x("div",{class:_.xM((g["collections-stack-wiz__relative-stack"]=p,g))},_.x(_.n,{cond:c,
then:function(){var a={};return _.x("div",{class:_.xM("collections-stack-wiz__collection-stack2",function(){return H().customClassName2ndStack},(a["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return H().enableResponsiveMode},a)),
style:_.UQ({"background-color":function(){return sc4(H())}})})}}),_.x("div",{class:_.xM("collections-stack-wiz__collection-stack1",function(){return H().customClassName1stStack},function(){return Jb1(H().thumbnailSize?H().thumbnailSize:"medium")}),
style:_.UQ({"background-color":function(){return sc4(H())}})}),K))}}))},"U");_.iV(JbM,"yt-collections-stack",{props:{data:_.dl}});var aa=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};d.webModernCollections=!1;d.isSearch=!1;d.isDoubleStack=!1;d.thumbnailSize="medium";d.enableWebModernCollectionsV2=_.h("web_modern_collections_v2");return d};
_.m(aa,_.B);_.G=aa.prototype;
_.G.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:"ytd-thumbnail-overlay-now-playing-renderer",tvfilmShowWatchForwardOverlayRenderer:"ytd-tvfilm-show-watch-forward-overlay-renderer"}},hoverOverlays_:{id:"hover-overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer"}},
"data.thumbnailRenderer":{id:"playlist-thumbnails",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",properties:{width:"[[width]]"}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",properties:{size:"[[customThumbnailSize]]",watchFeedThumbnail:"[[watchFeedThumbnail]]",webModernCollections:"[[webModernCollections]]"}},showCustomThumbnailRenderer:{component:"ytd-show-custom-thumbnail-renderer",properties:{width:"[[width]]"}}}}}};
_.G.getThumbnailDetails=function(d){if(d!=null&&d.thumbnailRenderer){var H=d.thumbnailRenderer,K;if((K=H.playlistVideoThumbnailRenderer)==null?0:K.thumbnail)return H.playlistVideoThumbnailRenderer.thumbnail;var c;if((c=H.playlistCustomThumbnailRenderer)==null?0:c.thumbnail)return H.playlistCustomThumbnailRenderer.thumbnail;d=d.thumbnailRenderer;var p;if((p=d.showCustomThumbnailRenderer)==null?0:p.thumbnail)return d.showCustomThumbnailRenderer.thumbnail}};
_.G.computeOverlayColor=function(d){var H,K;if((H=this.getThumbnailDetails(d))==null?0:(K=H.darkColorPalette)==null?0:K.section2Color)return this.getThumbnailDetails(d).darkColorPalette.section2Color;var c;return(c=this.getThumbnailDetails(d))==null?void 0:c.sampledThumbnailColor};
_.G.computeWebModernCollections=function(d){if(d==null||!d.thumbnailOverlays)return!1;d=_.q(d.thumbnailOverlays);for(var H=d.next();!H.done;H=d.next()){var K=void 0;if((K=H.value)==null?0:K.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.G.computeNavigationEndpoint=function(d){return jhX(d==null?void 0:d.navigationEndpoint)};
_.H3.Object.defineProperties(aa.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var d=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:d==null?void 0:d.sampledThumbnailColor,vibrantColorPalette:d==null?void 0:d.vibrantColorPalette,darkColorPalette:d==null?void 0:d.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],aa.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],aa.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(SF0),_.O("design:type",Object)],aa.prototype,"ytdThumbnailBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],aa.prototype,"componentBehavior",void 0);
_.t([_.r({value:!1}),_.O("design:type",Boolean)],aa.prototype,"watchFeedThumbnail",void 0);_.t([_.r(),_.O("design:type",Number)],aa.prototype,"customThumbnailSize",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],aa.prototype,"hideAria",void 0);_.t([_.r(),_.O("design:type",Object)],aa.prototype,"data",void 0);_.t([_.r({computed:"computeOverlayColor(data)"}),_.O("design:type",Object)],aa.prototype,"overlayColor",void 0);
_.t([_.r({computed:"computeWebModernCollections(data)"}),_.O("design:type",Object)],aa.prototype,"webModernCollections",void 0);_.t([_.r({computed:"computeNavigationEndpoint(data)"}),_.O("design:type",Object)],aa.prototype,"computedNavigationEndpoint",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],aa.prototype,"isSearch",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],aa.prototype,"isDoubleStack",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],aa.prototype,"thumbnailSize",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],aa.prototype,"enableWebModernCollectionsV2",void 0);_.t([_.I("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.O("design:type",Object),_.O("design:paramtypes",[])],aa.prototype,"collectionStack",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],aa);
_.T(aa,"ytd-playlist-thumbnail",function(){if(X0X!==void 0)return X0X;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-playlist-thumbnail"></yt-collections-stack>\n<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-playlist-thumbnail" aria-hidden="[[hideAria]]" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" tabindex="-1">\n  <div id="playlist-thumbnails" class="style-scope ytd-playlist-thumbnail"></div>\n  <yt-formatted-string id="length" hidden="[[!data.lengthText]]" text="[[data.lengthText]]" class="style-scope ytd-playlist-thumbnail">\n  </yt-formatted-string>\n  <div id="overlays" class="style-scope ytd-playlist-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-playlist-thumbnail"></div>\n</a>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return X0X=d},{mode:_.qk("kevlar_poly_si_batch_j025")?1:2});var scl;var lm=function(){var d=_.B.apply(this,arguments)||this;d.noEndpoints=!1;d.amsterdamPostMvp=_.h("web_amsterdam_post_mvp_playlists");d.badges=[];d.transferState="TRANSFER_STATE_UNKNOWN";return d};
_.m(lm,_.B);_.G=lm.prototype;_.G.getMetadata=function(d){if(!d)return[];var H=[],K=d.shortViewCountText||d.viewCountText;K&&H.push(_.jG(K));d.publishedTimeText&&H.push(_.jG(d.publishedTimeText));d.upcomingEventData&&d.upcomingEventData.upcomingEventText&&H.push(_.WI(_.jG(d.upcomingEventData.upcomingEventText),Number(d.upcomingEventData.startTime)));return H};
_.G.observeDataForBylineSeparator=function(){this.data&&_.qr(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.G.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Yi(this.metadataColor)};
_.G.getSimpleString=function(d){return _.jG(d)};
_.G.isBylineHidden=function(d){return this.noByline||!((d==null?0:d.longBylineText)||(d==null?0:d.shortBylineText))};
_.G.isMetadataHidden=function(d){var H;return((H=this.getMetadata(d))==null?void 0:H.length)===0};
_.G.isBylineMetadataSeparatorHidden=function(d){return this.isMetadataHidden(d)||!this.shouldShowVideoInfo};
_.G.isLongByline=function(d,H){return H&&!(d==null||!d.longBylineText)};
_.H3.Object.defineProperties(lm.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var d;return this.amsterdamPostMvp&&!((d=this.data)==null||!d.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
lm.prototype.metadataColorChanged=lm.prototype.metadataColorChanged;lm.prototype.observeDataForBylineSeparator=lm.prototype.observeDataForBylineSeparator;_.t([_.u(_.to),_.O("design:type",Object)],lm.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],lm.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],lm.prototype,"noEndpoints",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],lm.prototype,"isSlimShort",void 0);
_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],lm.prototype,"radioMeta",void 0);_.t([_.r({selector:_.ZA}),_.O("design:type",Object)],lm.prototype,"isGridViewEnabled",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],lm.prototype,"richMeta",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lm.prototype,"amsterdamPostMvp",void 0);_.t([_.r(),_.O("design:type",Boolean)],lm.prototype,"noByline",void 0);
_.t([_.r({computed:"isLongByline(data, radioMeta)"}),_.O("design:type",Boolean)],lm.prototype,"longByline",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],lm.prototype,"truncateMetadataLine",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],lm.prototype,"miniMode",void 0);_.t([_.r(),_.O("design:type",Number)],lm.prototype,"metadataColor",void 0);_.t([_.r(),_.O("design:type",Array)],lm.prototype,"badges",void 0);
_.t([_.r({selector:_.QO,selectorArgs:["data.videoId"]}),_.O("design:type",String)],lm.prototype,"transferState",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],lm.prototype,"isDownloading",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],lm.prototype,"typographyBump",void 0);_.t([_.VP("#metadata-line"),_.O("design:type",HTMLElement)],lm.prototype,"metadataLine",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lm.prototype,"observeDataForBylineSeparator",null);_.t([_.CK("metadataColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lm.prototype,"metadataColorChanged",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],lm.prototype,"shouldShowVideoInfo",null);
_.t([_.I("badges"),_.O("design:type",String),_.O("design:paramtypes",[])],lm.prototype,"inlineBadgeClass",null);_.t([_.I("longByline"),_.O("design:type",String),_.O("design:paramtypes",[])],lm.prototype,"longBylineClass",null);_.t([_.I("data","longByline"),_.O("design:type",Object),_.O("design:paramtypes",[])],lm.prototype,"bylineText",null);_.t([_.I("isGridViewEnabled","data"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],lm.prototype,"watchFeedBigThumbs",null);
_.t([_.Z({is:"ytd-video-meta-block",disableElementRegistration:!0})],lm);
_.T(lm,"ytd-video-meta-block",function(){if(scl!==void 0)return scl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return scl=d},{mode:_.qk("kevlar_poly_si_batch_j080")?1:2});_.XX("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var eW=function(){var d=_.B.apply(this,arguments)||this;d.displayItemCount=2;d.isBackstagePlaylist=!1;d.isPostCompactPlaylist=!1;d.shouldShowChannelThumbnail=!1;d.useModernCollectionsV2=_.h("web_modern_collections_v2");return d};
_.m(eW,_.B);_.G=eW.prototype;_.G.computeFirstVideos=function(d,H){return d===void 0||H===void 0?[]:d.slice(0,H)};
_.G.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var d=this.data.thumbnailRenderer;d.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",d.playlistVideoThumbnailRenderer.thumbnail);d.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",d.playlistCustomThumbnailRenderer.thumbnail)}};
_.G.computeThumbnailHeight=function(d,H,K,c,p){return c?p==="BIG"?280:p==="MASSIVE"?337:234:K?240:H?72:d?118:138};
_.G.computeThumbnailWidth=function(d,H,K,c,p){return c?p==="MEDIUM"?450:p==="BIG"?500:p==="MASSIVE"?600:420:K?360:H?128:d?210:246};
_.G.computeUseBiggerThumbs=function(d){return d&&_.h("enable_desktop_search_bigger_thumbs")};
_.G.computeShouldShowChannelThumbnail=function(d,H){return d&&!(H==null||!H.channelThumbnail)};
_.H3.Object.defineProperties(eW.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
eW.prototype.dataChanged=eW.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.fe),_.O("design:type",Object)],eW.prototype,"ytdLockupBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],eW.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],eW.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],eW.prototype,"displayItemCount",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],eW.prototype,"isBackstagePlaylist",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],eW.prototype,"isPostCompactPlaylist",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],eW.prototype,"isSearch",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.O("design:type",Boolean)],eW.prototype,"useBiggerThumbs",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.GJ("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],eW.prototype,"biggerThumbsStyle",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],eW.prototype,"isDownloads",void 0);_.t([_.r({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.O("design:type",Object)],eW.prototype,"shouldShowChannelThumbnail",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],eW.prototype,"useModernCollectionsV2",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],eW.prototype,"dataChanged",null);_.t([_.I("isSearch"),_.O("design:type",String),_.O("design:paramtypes",[])],eW.prototype,"stackThumbnailSize",null);_.t([_.Z({is:"ytd-playlist-renderer",disableElementRegistration:!0})],eW);
_.T(eW,"ytd-playlist-renderer",function(){if(Cu3===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch)]]" data="[[data]]" height="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" hovered="[[lockupIsHovered]]" is-double-stack="[[isSearch]]" thumbnail-size="[[stackThumbnailSize]]" use-hovered-property="" width="[[computeThumbnailWidth(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-playlist-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-playlist-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <template is="dom-if" if="[[shouldShowChannelThumbnail]]" restamp="" class="style-scope ytd-playlist-renderer">\n      <div id="channel-info" class="style-scope ytd-playlist-renderer">\n        <a id="channel-thumbnail" hidden="[[!data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnail.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-playlist-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-playlist-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-playlist-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </template>\n    <ytd-video-meta-block id="meta" data="[[data]]" hidden="[[shouldShowChannelThumbnail]]" class="style-scope ytd-playlist-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="allowlisted-metadata-badges style-scope ytd-playlist-renderer" badges="[[data.allowlistedMetadataBadges]]" hidden="[[!data.allowlistedMetadataBadges]]">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="description-text" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ul id="list" hidden="[[isPostCompactPlaylist]]" class="style-scope ytd-playlist-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-playlist-renderer">\n      <li class="style-scope ytd-playlist-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-playlist-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n  <yt-formatted-string id="view-more" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-playlist-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-playlist-renderer"></yt-interaction>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);Cu3=d}d=Cu3;return d},{mode:1});var FTX;var ZRM;var kn=function(){var d=_.B.apply(this,arguments)||this;d.collections=!!_.h("web_modern_collections_v2");d.startX=0;return d};
_.m(kn,_.B);kn.prototype.onEndpointMouseDown=function(d){this.startX=d.clientX};
kn.prototype.onEndpointClick=function(d){this.startX!==d.clientX&&(d.preventDefault(),d.stopPropagation())};
kn.prototype.computeObjectFit=function(d){return d==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||d==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||d==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
kn.prototype.computeCardStyle=function(d){return d?d.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.H3.Object.defineProperties(kn.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var d,H;return this.collections&&((d=this.data)==null?void 0:(H=d.searchRefinementCardRendererStyle)==null?void 0:H.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],kn.prototype,"data",void 0);_.t([_.r({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.O("design:type",Number)],kn.prototype,"objectFit",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.O("design:type",String)],kn.prototype,"cardStyle",void 0);
_.t([_.r({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],kn.prototype,"roundContainer",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],kn.prototype,"collections",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],kn.prototype,"isAlbumCard",null);_.t([_.I("data","collections","isAlbumCard"),_.O("design:type",Object),_.O("design:paramtypes",[])],kn.prototype,"collectionStack",null);
_.t([_.Z({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],kn);
_.T(kn,"ytd-search-refinement-card-renderer",function(){if(ZRM!==void 0)return ZRM;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-refinement-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-search-refinement-card-renderer" data="[[data.searchEndpoint]]" href$="[[computeHref_(data.searchEndpoint)]]" on-mousedown="onEndpointMouseDown" on-click="onEndpointClick" draggable="false">\n  <div id="card-thumbnail" class="style-scope ytd-search-refinement-card-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-search-refinement-card-renderer"></yt-collections-stack>\n    <yt-img-shadow object-fit="[[objectFit]]" rounded-container="[[isAlbumCard]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-search-refinement-card-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="card-title" class="style-scope ytd-search-refinement-card-renderer">\n    <div class="style-scope ytd-search-refinement-card-renderer">[[getSimpleString(data.query)]]</div>\n  </div>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ZRM=d},{mode:1});var T_C;var xn=function(){var d=_.B.apply(this,arguments)||this;d.isRichGrid=!1;return d};
_.m(xn,_.B);_.t([_.r(),_.O("design:type",Object)],xn.prototype,"data",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],xn.prototype,"componentBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],xn.prototype,"ytdReduxBehavior",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],xn.prototype,"isRichGrid",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.JF}),_.O("design:type",Boolean)],xn.prototype,"miniMode",void 0);
_.t([_.Z({is:"ytd-game-details-renderer",disableElementRegistration:!0})],xn);
_.T(xn,"ytd-game-details-renderer",function(){if(T_C!==void 0)return T_C;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint focus-on-expand style-scope ytd-game-details-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n  <yt-img-shadow height="290" object-fit="COVER" thumbnail="[[data.boxArt]]" width="210" class="style-scope ytd-game-details-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="auto-generated" hidden="[[!data.autoGenerated]]" text="[[data.autoGenerated]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="live-viewers-count" hidden="[[!data.liveViewersText]]" text="[[data.liveViewersText]]" class="style-scope ytd-game-details-renderer">\n  </yt-formatted-string>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return T_C=d},{mode:1});var Qc3;var tC7;var nJ=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return d};
_.m(nJ,_.B);_.G=nJ.prototype;_.G.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.G.currentStateData=function(d){var H=d||this.data;return H&&H.states&&H.currentStateId!=null?H.states.find(function(K){return K.stateId===H.currentStateId})||null:null};
_.G.currentStateRendererData=function(d){return(d=this.currentStateData(d))&&d.state&&d.state.buttonRenderer?d.state.buttonRenderer:null};
_.G.stateChanged=function(){this&&this.data&&(this.ytRenderButtonBehavior._setEndpoint(null),this.ytRenderButtonBehavior._setServiceEndpoint(this.computeServiceEndpoint(this.data)),this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data)),this.ytRenderButtonBehavior._setButtonText(null),this.ytRenderButtonBehavior._setButtonAccessibility(this.computeAccessibility(this.data)),this.ytRenderButtonBehavior._setButtonClass(this.computeButtonClass(this.data)),this.ytRenderButtonBehavior.updateRenderedElements())};
_.G.computeButtonIcon=function(d){d=this.currentStateRendererData(d);var H;return(d==null?0:(H=d.icon)==null?0:H.iconType)?d.icon.iconType.toLowerCase():null};
_.G.computeAccessibility=function(d){return(d=this.currentStateRendererData(d))&&d.accessibilityData?d.accessibilityData.accessibilityData||null:null};
_.G.computeButtonClass=function(d){var H=this.currentStateRendererData(d);if(!H)return"";d="";var K=H.style;K&&(d+=K.toLowerCase().replace(/_/g,"-")+" ");(H=H.size)&&(d+=H.toLowerCase().replace(/_/g,"-")+" ");return d.trim()};
_.G.computeServiceEndpoint=function(d){if(!d)return null;var H=d&&d.serviceEndpoint,K=this.get("command.commandMetadata.webCommandMetadata.sendPost",d);return H?H:K&&d.command?d.command:null};
_.G.computeBellMenuItemParams=function(d){var H;d=(H=_.M(d==null?void 0:d.command,_.kW))==null?void 0:H.commands;if(!d||d.length===0)return null;H=_.M(d[0],_.u$);var K,c;return(H==null?0:(K=H.popup)==null?0:(c=K.menuPopupRenderer)==null?0:c.items)?H.popup.menuPopupRenderer.items.map(function(p){return p.menuServiceItemRenderer.trackingParams}):null};
_.G.handleBellMenuOpenSelectedAction=function(d){var H=d.trackingParams,K=this.computeBellMenuItemParams(this.data);this.data&&H&&K&&K.includes(H)&&this.ytRenderButtonBehavior._setButtonIcon(d.icon.iconType.toLowerCase())};
_.G.onYtServiceRequestCompleted=function(d,H){(d=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",H))&&this.set("data",d)};
_.G.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.G.resetState=function(){this.set("data.currentStateId",3)};
_.G.onYtButtonTapHandler=function(){if(this.data){var d=this.currentStateRendererData(this.data);d&&this.ytRendererBehavior.logExplicitClick(d)}};
nJ.prototype.onYtServiceRequestError=nJ.prototype.onYtServiceRequestError;nJ.prototype.onYtServiceRequestCompleted=nJ.prototype.onYtServiceRequestCompleted;nJ.prototype.stateChanged=nJ.prototype.stateChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],nJ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],nJ.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(uq.YtRenderButtonBehavior),_.O("design:type",Object)],nJ.prototype,"ytRenderButtonBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],nJ.prototype,"data",void 0);_.t([_.Mr("data","data.currentStateId"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nJ.prototype,"stateChanged",null);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],nJ.prototype,"onYtServiceRequestCompleted",null);_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],nJ.prototype,"onYtServiceRequestError",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],nJ);
_.T(nJ,"ytd-subscription-notification-toggle-button-renderer",function(){if(tC7!==void 0)return tC7;var d=document.createElement("template");_.P(d,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return tC7=d},{mode:1});var YKl;var CJ=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};d.tapHandler=function(){if(d.data){var H=d.currentStateRendererData();H&&d.ytRendererBehavior.logExplicitClick(H)}};
return d};
_.m(CJ,_.B);_.G=CJ.prototype;_.G.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.G.currentStateData=function(){var d=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(H){return H.stateId===d.data.currentStateId})||null:null};
_.G.currentStateRendererData=function(){var d=this.currentStateData();return d&&d.state&&d.state.buttonRenderer?d.state.buttonRenderer:null};
_.G.computeAccessibilityLabel=function(){var d,H,K;return(d=this.currentStateRendererData())==null?void 0:(H=d.accessibilityData)==null?void 0:(K=H.accessibilityData)==null?void 0:K.label};
_.G.computeBellMenuItemParams=function(){var d,H,K=(H=_.M((d=this.data)==null?void 0:d.command,_.kW))==null?void 0:H.commands;if(!K||K.length===0)return null;d=_.M(K[0],_.u$);var c,p;return(d==null?0:(c=d.popup)==null?0:(p=c.menuPopupRenderer)==null?0:p.items)?d.popup.menuPopupRenderer.items.map(function(g){return g.menuServiceItemRenderer.trackingParams}):null};
_.G.handleBellMenuOpenSelectedAction=function(d){var H=d.trackingParams,K=this.computeBellMenuItemParams();if(this.data&&H&&K&&K.includes(H)&&(d==null||!d.isDisabled)){var c;((c=_.M(d.serviceEndpoint,_.no))==null?void 0:c.signal)!=="CLIENT_SIGNAL"&&(this.icon=d.icon.iconType)}};
_.G.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.G.onYtServiceRequestCompleted=function(d,H){if(d=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",H))this.icon=void 0,this.set("data",d)};
_.G.onYtServiceRequestError=function(){this.icon=void 0};
_.H3.Object.defineProperties(CJ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var d=this.data,H=this.textLabel,K=this.hostElement,c=this.computeAccessibilityLabel(),p=this.tapHandler,g=this.isOverlay?"overlay":"mono",a=(d==null?0:d.disableButton)?"disabled":"active";H=H?_.JR(H):void 0;return{style:g,type:"tonal",state:a,size:"M",focused:!1,formattedButtonText:H,iconPosition:"leading-trailing",onTap:ZR1(d,p,K),accessibilityLabel:c}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var d=this.currentStateRendererData(),H,K,c=(K=this.icon)!=null?K:d==null?void 0:(H=d.icon)==null?void 0:H.iconType;if(c)return _.kv(c)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var d,H,K=(d=this.data)==null?void 0:(H=d.secondaryIcon)==null?void 0:H.iconType;if(K)return _.kv(K)}}});
CJ.prototype.onYtServiceRequestError=CJ.prototype.onYtServiceRequestError;CJ.prototype.onYtServiceRequestCompleted=CJ.prototype.onYtServiceRequestCompleted;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],CJ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],CJ.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],CJ.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],CJ.prototype,"textLabel",void 0);
_.t([_.r(),_.O("design:type",String)],CJ.prototype,"icon",void 0);_.t([_.r(),_.O("design:type",Boolean)],CJ.prototype,"isOverlay",void 0);_.t([_.I("data.*","textLabel"),_.O("design:type",Object),_.O("design:paramtypes",[])],CJ.prototype,"computedButtonShape",null);_.t([_.I("data.*","icon"),_.O("design:type",Object),_.O("design:paramtypes",[])],CJ.prototype,"computedIcon",null);_.t([_.I("computedIcon"),_.O("design:type",Object),_.O("design:paramtypes",[])],CJ.prototype,"computedAnimateIcon",null);
_.t([_.I("data.*"),_.O("design:type",Object),_.O("design:paramtypes",[])],CJ.prototype,"computedSecondaryIcon",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],CJ.prototype,"onYtServiceRequestCompleted",null);_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],CJ.prototype,"onYtServiceRequestError",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],CJ);
_.T(CJ,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(YKl!==void 0)return YKl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return YKl=d},{mode:_.qk("kevlar_poly_si_batch_j081")?1:2});var ORS;_.iV(OC6,"yt-animated-action",{props:{backgroundLottieRef:_.dl,foregroundLottieRef:_.dl,wrapperClass:_.dl,disableAnimation:_.dl},unsafeExternallySettableAttributes:new Set(["key"])});var Ra=function(){var d=_.B.apply(this,arguments)||this;d.animatedActionEnabled=_.h("web_animated_actions");d.foregroundLottieRef={};d.backgroundLottieRef={};d.forceIconOnly=!1;d.showTextWhileAnimating=!1;d.keyboardFocused=!1;d.isAnimating=!1;d.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return d};
_.m(Ra,_.B);_.G=Ra.prototype;_.G.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.G.configureRendererStamper=function(){return{"data.notificationPreferenceToggleButton":{id:"notification-preference-toggle-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{forceIconOnly:"[[forceIconOnly]]"}}}},"data.notificationPreferenceButton":{id:"notification-preference-button",mapping:{subscriptionNotificationToggleButtonRenderer:{component:"ytd-subscription-notification-toggle-button-renderer-next",properties:{textLabel:"[[subscribedButtonText]]",
forceIconOnly:"[[forceIconOnly]]",isOverlay:"[[overlayButton]]"}}}}}};
_.G.attached=function(){this.keyboardFocused=!1};
_.G.onYtServiceRequestSent=function(d,H){(this.get("endpoint.subscribeEndpoint",H)||this.get("endpoint.unsubscribeEndpoint",H))&&this.updateSubscriptionState(!this.subscribed)};
_.G.onYtServiceRequestCompleted=function(d,H){(d=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",H.data))&&this.bellButton&&(this.bellButton.data=d)};
_.G.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.eO(this.hostElement)};
_.G.onPlayerSubscribe=function(d){this.isCompactRed()||d!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.G.onPlayerUnsubscribe=function(d){this.isCompactRed()||d!==this.data.channelId||this.updateSubscriptionState(!1)};
_.G.handleUpdateSubscribeButtonAction=function(d){d=_.M(d,d3l);var H;d&&d.channelId===((H=this.data)==null?void 0:H.channelId)&&this.updateSubscriptionState(!!d.subscribed)};
_.G.computeButtonStyle=function(d){return this.get("style.styleType",d)||null};
_.G.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.G.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.G.updateSubscriptionState=function(d){if(d!==this.subscribed){this.set("data.subscribed",d);var H,K=(H=this.data)==null?void 0:H.subscribedEntityKey;K&&this.ytdReduxBehavior.dispatch(_.PI("subscriptionStateEntity",K,{key:K,subscribed:d}));this.isCompactRed()||_.GT(this.hostElement,"yt-subscription-changed",d);d||(_.oF(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!d),d&&this.hasBellButton&&this.startAnimation())}};
_.G.startAnimation=function(){var d=this;if(!this.isAnimating){var H=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var K;(K=this.backgroundLottieRef.lottieEl)==null||K.goToAndPlay(0);var c;(c=this.foregroundLottieRef.lottieEl)==null||c.goToAndPlay(0);_.Xp.addJob(function(){d.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.Xp.addJob(function(){d.updateContainerToFitContent(!!d.subscribed,!0)},2,1500);
_.Xp.addJob(function(){d.isAnimating=!1},2,H)}};
_.G.maybeAnimateBellIcon=function(){var d=_.o1(this.hostElement).querySelector("yt-animated-icon");if(d){var H;(H=d.animationRef.lottieEl)==null||H.goToAndPlay(0)}};
_.G.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.G.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.G.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var d;this.unsubscribedWidth=(d=this.subscribeButtonShape)==null?void 0:d.getBoundingClientRect().width}var H;this.subscribedWidth=(H=this.bellButton)==null?void 0:H.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.G.updateContainerToFitContent=function(d,H){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(d?(d=this.subscribedWidth,H=this.isAnimating&&!H,this.subscribedIconOnlyWidth===void 0||H||(d=this.subscribedIconOnlyWidth),this.hostElement.style.width=d+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.G.clearContainerSize=function(){this.hostElement.style.width=""};
_.G.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.G.maybeSetSubscribedButtonIconOnlyWidth=function(){var d=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var H;d.subscribedIconOnlyWidth=(H=d.bellButton)==null?void 0:H.getBoundingClientRect().width;requestAnimationFrame(function(){if(d.bellButton){var K;d.bellButton.textLabel=
(K=d.data)==null?void 0:K.subscribedButtonText}})})))};
_.H3.Object.defineProperties(Ra.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}},
subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){if(this.showTextWhileAnimating&&(this.isAnimating||!this.subscribed)){var d;return(d=this.data)==null?void 0:d.subscribedButtonText}var H;return this.forceIconOnly?void 0:(H=this.data)==null?void 0:H.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var d,H,K=((d=this.data)==null?void 0:(H=d.timedAnimationData)==null?void 0:H.animationTiming)||[];return{uniqueId:"subscribe",timings:K,enabled:K.length>0&&!this.subscribed,experimentEnabled:K.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var d;return!this.subscribed&&((d=this.data)==null?void 0:d.hideWhenUnsubscribed)||!this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
subscribeButtonInvisible:{configurable:!0,enumerable:!0,get:function(){return this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
unsubscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){return!this.animatedActionEnabled&&!this.subscribed}},
buttonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var d={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var H=d.renderer;var K=d.element;var c=d.subscribed;var p=d.commandController;var g=d.isOverlay;d=d.stopPropagation;var a=YK4(H,c);g&&(a.style="overlay");g=Object;var e=g.assign,k;a:switch((k=H.style)==null?void 0:k.styleType){case "COMPACT_GRAY":case "COMPACT_RED":k={size:"S"};break a;default:k={size:"M"}}var C=tCM(H,
c);var R=(R=c?H.subscribedButtonText:H.unsubscribedButtonText)?_.JR(R):void 0;return e.call(g,{},a,k,{focused:!1,toggled:c,accessibilityLabel:C,formattedButtonText:R,onTap:QcL(H,c,K,p,d)})}}}});
Ra.prototype.onMouseDown=Ra.prototype.onMouseDown;Ra.prototype.onDataChanged=Ra.prototype.onDataChanged;Ra.prototype.observedSubscribed=Ra.prototype.observedSubscribed;Ra.prototype.onYtServiceRequestCompleted=Ra.prototype.onYtServiceRequestCompleted;Ra.prototype.onYtServiceRequestSent=Ra.prototype.onYtServiceRequestSent;Ra.prototype.maybeUpdateBellButtonText=Ra.prototype.maybeUpdateBellButtonText;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Ra.prototype,"ytComponentBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Ra.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Ra.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Ra.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ra.prototype,"data",void 0);
_.t([_.r({selectorArgs:["data.subscribedEntityKey"],selector:Fhf}),_.O("design:type",Object)],Ra.prototype,"subscriptionStateEntity",void 0);_.t([_.r({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Ra.prototype,"subscribed",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ra.prototype,"branded",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ra.prototype,"animatedActionEnabled",void 0);
_.t([_.r(),_.O("design:type",Object)],Ra.prototype,"foregroundLottieRef",void 0);_.t([_.r(),_.O("design:type",Object)],Ra.prototype,"backgroundLottieRef",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ra.prototype,"overlayButton",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.O("design:type",Object)],Ra.prototype,"buttonStyle",void 0);_.t([_.r(),_.O("design:type",Object)],Ra.prototype,"forceIconOnly",void 0);
_.t([_.r(),_.O("design:type",Object)],Ra.prototype,"showTextWhileAnimating",void 0);_.t([_.r({value:function(){return!!_.Kj().resolve(_.$p(_.qZ))&&_.h("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.O("design:type",Boolean)],Ra.prototype,"useKeyboardFocused",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ra.prototype,"keyboardFocused",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ra.prototype,"isAnimating",void 0);_.t([_.I("data.notificationPreferenceButton.*"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ra.prototype,"hasBellButton",null);
_.t([_.CK("subscribedButtonText"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ra.prototype,"maybeUpdateBellButtonText",null);_.t([_.I("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ra.prototype,"subscribedButtonText",null);_.t([_.I("data.timedAnimationData.animationTiming","subscribed"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ra.prototype,"smartimationSettings",null);
_.t([_.r({reflectToAttribute:!0}),_.I("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ra.prototype,"subscribeButtonHidden",null);_.t([_.r({reflectToAttribute:!0}),_.I("subscribed","hasBellButton"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ra.prototype,"subscribeButtonInvisible",null);
_.t([_.r({reflectToAttribute:!0}),_.I("subscribed"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ra.prototype,"unsubscribeButtonHidden",null);_.t([_.VP("ytd-subscription-notification-toggle-button-renderer-next"),_.O("design:type",Object)],Ra.prototype,"bellButton",void 0);_.t([_.VP("#subscribe-button-shape"),_.O("design:type",HTMLElement)],Ra.prototype,"subscribeButtonShape",void 0);
_.t([_.I("overlayButton","subscribed","data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ra.prototype,"buttonShape",null);_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],Ra.prototype,"onYtServiceRequestSent",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],Ra.prototype,"onYtServiceRequestCompleted",null);
_.t([_.CK("subscribed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ra.prototype,"observedSubscribed",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ra.prototype,"onDataChanged",null);_.t([_.nK("mousedown"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Ra.prototype,"onMouseDown",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Ra);
_.T(Ra,"ytd-subscribe-button-renderer",function(){if(ORS!==void 0)return ORS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscribe-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-subscribe-button-renderer">\n  <yt-button-shape id="subscribe-button-shape" data="[[buttonShape]]" hidden$="[[subscribeButtonHidden]]" invisible$="[[subscribeButtonInvisible]]" class="style-scope ytd-subscribe-button-renderer">\n  </yt-button-shape>\n  <div id="notification-preference-toggle-button" hidden="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  <yt-animated-action background-lottie-ref="[[backgroundLottieRef]]" foreground-lottie-ref="[[foregroundLottieRef]]" key="yt-animated-action" class="style-scope ytd-subscribe-button-renderer">\n    <div id="notification-preference-button" hidden="[[unsubscribeButtonHidden]]" invisible$="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  </yt-animated-action>\n</yt-smartimation>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ORS=d},{mode:1});var VJ=function(){var d=_.B.apply(this,arguments)||this;d.isRichGrid=!1;return d};
_.m(VJ,_.B);VJ.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],VJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],VJ.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],VJ.prototype,"isRichGrid",void 0);_.t([_.Z({is:"ytd-game-card-renderer",disableElementRegistration:!0})],VJ);
_.T(VJ,"ytd-game-card-renderer",function(){if(Qc3!==void 0)return Qc3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="game" class="style-scope ytd-game-card-renderer"></div>\n<div id="subscribe-button" class="style-scope ytd-game-card-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Qc3=d},{mode:1});var Ug={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.h("defer_menus")&&!uWA?0:void 0,waitForSignal:"eocs"};var SKC;var EH7;var hV=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return d};
_.m(hV,_.B);_.G=hV.prototype;_.G.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.G.onSeriesReminderStateEntityChange=function(){var d,H,K;((d=this.eventReminderStateEntity)==null?0:d.key)&&((H=this.seriesReminderStateEntity)==null?void 0:H.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((K=this.eventReminderStateEntity)==null?void 0:K.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.PI("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.G.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.G.onYtServiceRequestError=function(){var d;this.updateReminderStateEntitiesFromButtonState((d=this.data)==null?void 0:d.currentState)};
_.G.handleUpdateUpcomingEventReminderButtonStateCommand=function(d){if(d=_.M(d,Vc0)){var H,K=(H=this.data)==null?void 0:H.targetId;K&&d.targetId===K&&_.EI(this.updateReminderStateEntitiesFromButtonState.bind(this,d.state))}};
_.G.getButtonStateFromReminderState=function(){var d;if(((d=this.seriesReminderStateEntity)==null?void 0:d.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var H;if(((H=this.eventReminderStateEntity)==null?void 0:H.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var K,c;if(((K=this.seriesReminderStateEntity)==null?void 0:K.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((c=this.eventReminderStateEntity)==
null?void 0:c.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var p;return(p=this.data)==null?void 0:p.currentState};
_.G.updateReminderStateEntitiesFromButtonState=function(d){if(d){switch(d){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":d="UPCOMING_EVENT_REMINDER_STATE_NONE";var H="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":d="UPCOMING_EVENT_REMINDER_STATE_SINGLE";H="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":d="UPCOMING_EVENT_REMINDER_STATE_NONE";H="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var K;
((K=this.eventReminderStateEntity)==null?0:K.key)&&this.ytdReduxBehavior.dispatch(_.PI("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:d})));var c;((c=this.seriesReminderStateEntity)==null?0:c.key)&&this.ytdReduxBehavior.dispatch(_.PI("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:H})))}};
_.H3.Object.defineProperties(hV.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var d=this.getButtonStateFromReminderState(),H,K;if(d&&((H=this.data)==null?0:(K=H.states)==null?0:K.length))for(H=_.q(this.data.states),K=H.next();!K.done;K=H.next()){K=K.value;var c=void 0;if(((c=_.M(K,Uw3))==null?void 0:c.state)===d)return _.M(K,Uw3)}}}});
hV.prototype.onYtServiceRequestError=hV.prototype.onYtServiceRequestError;hV.prototype.onYtServiceRequestCompleted=hV.prototype.onYtServiceRequestCompleted;hV.prototype.onSeriesReminderStateEntityChange=hV.prototype.onSeriesReminderStateEntityChange;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],hV.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],hV.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],hV.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],hV.prototype,"data",void 0);_.t([_.r({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:TCh}),_.O("design:type",Object)],hV.prototype,"eventReminderStateEntity",void 0);
_.t([_.r({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(d,H){return _.xL(d.entities,"sportsSeriesReminderStateEntity",H)}}),
_.O("design:type",Object)],hV.prototype,"seriesReminderStateEntity",void 0);_.t([_.I("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],hV.prototype,"currentButtonStateRenderer",null);_.t([_.CK("seriesReminderStateEntity"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hV.prototype,"onSeriesReminderStateEntityChange",null);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hV.prototype,"onYtServiceRequestCompleted",null);_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hV.prototype,"onYtServiceRequestError",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],hV);
_.T(hV,"ytd-upcoming-event-reminder-button-renderer",function(){if(EH7!==void 0)return EH7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-upcoming-event-reminder-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-upcoming-event-reminder-button-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
return EH7=d},{mode:1});var yb3;var LJ=function(){return _.B.apply(this,arguments)||this};
_.m(LJ,_.B);LJ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.H3.Object.defineProperties(LJ.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}},
textAriaLabel:{configurable:!0,enumerable:!0,get:function(){if(_.h("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],LJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],LJ.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],LJ.prototype,"shelfDismissal",void 0);_.t([_.I("data.responseText"),_.O("design:type",Object),_.O("design:paramtypes",[])],LJ.prototype,"text",null);
_.t([_.I("data.responseText"),_.O("design:type",Object),_.O("design:paramtypes",[])],LJ.prototype,"textAriaLabel",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],LJ);
_.T(LJ,"ytd-notification-multi-action-renderer",function(){if(yb3!==void 0)return yb3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-multi-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="text" aria-label$="[[textAriaLabel]]" class="style-scope ytd-notification-multi-action-renderer">[[text]]</span>\n<div id="buttons" class="style-scope ytd-notification-multi-action-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return yb3=d},{mode:1});var bR3;var MF=function(){return _.B.apply(this,arguments)||this};
_.m(MF,_.B);MF.prototype.ready=function(){var d=this;_.Gn(this.hostElement).querySelector("#undo").addEventListener("tap",function(){d.onUndoTap()})};
MF.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.Kj().resolve(_.cb).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],MF.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],MF.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],MF);
_.T(MF,"ytd-notification-text-renderer",function(){if(bR3!==void 0)return bR3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.successResponseText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n<yt-formatted-string id="undo" text="[[data.undoText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return bR3=d},{mode:1});var N_7;var mL=function(){var d=_.B.apply(this,arguments)||this;d.mouseOverDelayJobId=0;d.fadeInImageDelayJobId=0;d.startTimeMs=-1;d.loadingStartTimeMs=-1;d.loadingEndTimeMs=-1;d.hasVideoPreview=!1;return d};
_.m(mL,_.B);_.G=mL.prototype;_.G.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.G.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.G.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.G.showThumbnail=function(){var d=this;this.csn=_.Fj();_.Zi("fmth");_.Xp.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.lV(_.Xp,function(){d.loadingStartTimeMs=(0,_.$G)();var H=_.Gn(d.hostElement).querySelector("#thumbnail");H.complete?d.displayMouseOverImage():H.addEventListener("load",_.xf(d,d.displayMouseOverImage))},150):_.qr(_.Gn(this.hostElement).querySelector("#play"),"show",!0)};
_.G.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.G.onTap=function(){this.removeVideoPreview()};
_.G.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var d=this.videoId,H=this.csn,K=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,c=this.startTimeMs,p=this.hasVideoPreview,g=_.P1(this.trackingParams),a={isMovingThumbnail:p};p&&c>0&&(K>0&&(a.movingThumbnailLoadingDurationMs=Math.round(K)),a.durationHoveredMs=Math.round((0,_.$G)()-c));d&&(a.videoId=d);_.AO(H,g,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:a});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.G.removeVideoPreview=function(){_.Xp.cancelJob(this.mouseOverDelayJobId);_.Xp.cancelJob(this.fadeInImageDelayJobId);var d=_.Gn(this.hostElement).querySelector("#thumbnail");_.qr(d,"fade-in",!1);d.removeEventListener("load",_.xf(this,this.displayMouseOverImage));d=_.Gn(this.hostElement).querySelector("#play");_.qr(d,"fade-in",!1);_.qr(d,"show",!1)};
_.G.displayMouseOverImage=function(){var d=_.Gn(this.hostElement).querySelector("#thumbnail"),H=_.Gn(this.hostElement).querySelector("#play");this.isImageAvailable(d)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.$G)(),this.startTimeMs=(0,_.$G)(),this.fadeInImageDelayJobId=_.lV(_.Xp,function(){_.qr(d,"fade-in",!0)},50)):_.qr(H,"fade-in",!0)};
_.G.computeThumbnail=function(d,H){var K;d&&d.movingThumbnailDetails&&d.movingThumbnailDetails.thumbnails&&H?K=_.Gv(d.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):K=H?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(K)return _.Xa(K)};
_.G.isImageAvailable=function(d){return!(!d.src||d.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||d.naturalWidth===120)};
mL.prototype.onTap=mL.prototype.onTap;mL.prototype.dataChanged=mL.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],mL.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],mL.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],mL.prototype,"csn",void 0);_.t([_.r(),_.O("design:type",Object)],mL.prototype,"trackingParams",void 0);
_.t([_.r(),_.O("design:type",String)],mL.prototype,"videoId",void 0);_.t([_.r(),_.O("design:type",Boolean)],mL.prototype,"isAttachedAndDataSet",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mL.prototype,"dataChanged",null);_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mL.prototype,"onTap",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],mL);
_.T(mL,"ytd-moving-thumbnail-renderer",function(){if(N_7!==void 0)return N_7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-moving-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img id="thumbnail" alt="" src$="[[computeThumbnail(data, isAttachedAndDataSet)]]" class="style-scope ytd-moving-thumbnail-renderer">\n<yt-icon id="play" icon="play_all" class="style-scope ytd-moving-thumbnail-renderer"></yt-icon>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return N_7=d},{mode:1});var Ddg;_.cw=function(d){this.hostElement=d;this.eventSink=null;this.eventList=[]};
_.cw.prototype.shouldForward=function(){var d,H;return(H=(d=this.eventSink)==null?void 0:d.isConnected)!=null?H:document.body.contains(this.eventSink)};
_.cw.prototype.start=function(d,H){this.eventSink&&this.stop();for(var K=0;K<d.length;K++)this.hostElement.addEventListener(d[K],_.xf(this,this.forwardEvent));var c;this.eventSink=(c=H.hostElement)!=null?c:H;this.eventList=d};
_.cw.prototype.stop=function(){for(var d=0;d<this.eventList.length;d++)this.hostElement.removeEventListener(this.eventList[d],_.xf(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.cw.prototype.forwardEvent=function(d,H){this.shouldForward()&&(d.stopPropagation(),this.eventSink instanceof Element?_.GT(this.eventSink,d.type,H):_.Jf(new _.m1("eventSink is not an element")))};_.wb={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.cw(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(d,H){this.forwarder_.start(d,H)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var P$=function(){return _.B.apply(this,arguments)||this};
_.m(P$,_.B);_.G=P$.prototype;_.G.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=_.Fm("HTML_DIR")==="rtl"?"right":"left"};
_.G.dataChanged=function(){this.popupOpen=!1};
_.G.computeAriaLabel=function(d){return _.M(d,Ls7).label};
_.G.onTap=function(d){d.stopPropagation();d.preventDefault();this.data.command&&_.Kj().resolve(_.cb).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.G.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.G.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
P$.prototype.onPopupClosed=P$.prototype.onPopupClosed;P$.prototype.onPopupOpened=P$.prototype.onPopupOpened;P$.prototype.onTap=P$.prototype.onTap;P$.prototype.dataChanged=P$.prototype.dataChanged;_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],P$.prototype,"eventForwardingBehavior",void 0);_.t([_.u(_.zS),_.O("design:type",Object)],P$.prototype,"ironButtonState",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],P$.prototype,"componentBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],P$.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,value:-1}),_.O("design:type",Number)],P$.prototype,"tabindex",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.O("design:type",Object)],P$.prototype,"ariaLabel",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],P$.prototype,"disableTooltips",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],P$.prototype,"popupOpen",void 0);
_.t([_.r(),_.O("design:type",Element)],P$.prototype,"eventSink",void 0);_.t([_.VP("#tooltip"),_.O("design:type",Object)],P$.prototype,"tooltip",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],P$.prototype,"dataChanged",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],P$.prototype,"onTap",null);
_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],P$.prototype,"onPopupOpened",null);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],P$.prototype,"onPopupClosed",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],P$);
_.T(P$,"ytd-thumbnail-overlay-button-renderer",function(){if(Ddg!==void 0)return Ddg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Ddg=d},{mode:1});var fGg;var um=function(){return _.B.apply(this,arguments)||this};
_.m(um,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],um.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],um.prototype,"disableAnimation",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],um.prototype,"rounded",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],um.prototype,"transparentBackground",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],um.prototype,"noPadding",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],um);
_.T(um,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(fGg!==void 0)return fGg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-endorsement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="inner-background" class="style-scope ytd-thumbnail-overlay-endorsement-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></yt-formatted-string>\n  <span id="bottom-right-corner" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></span>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return fGg=d},{mode:1});var Abg;var Ia=function(){return _.B.apply(this,arguments)||this};
_.m(Ia,_.B);Ia.prototype.computeIconPosition=function(d){return this.get("iconPosition",d)||null};
Ia.prototype.computeIconStyle=function(d){return this.get("iconStyle",d)||null};
Ia.prototype.computeIsIconStyleFilled=function(d){if(!d)return!1;var H;return d.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((H=d.icon)==null?void 0:H.iconType)==="ERROR_BLACK"};
_.t([_.r(),_.O("design:type",Object)],Ia.prototype,"data",void 0);_.t([_.r({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.O("design:type",Object)],Ia.prototype,"iconPosition",void 0);_.t([_.r({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.O("design:type",Object)],Ia.prototype,"iconStyle",void 0);_.t([_.r({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Ia.prototype,"iconStyleFilled",void 0);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],Ia);
_.T(Ia,"ytd-thumbnail-overlay-icon-renderer",function(){if(Abg!==void 0)return Abg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-icon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[iconStyleFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-icon-renderer"></yt-icon>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Abg=d},{mode:1});var jcN;var rb=function(){return _.B.apply(this,arguments)||this};
_.m(rb,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],rb.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],rb);
_.T(rb,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(jcN!==void 0)return jcN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-inline-unplayable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-inline-unplayable-renderer"></yt-icon>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return jcN=d},{mode:1});var vH3;var W$=function(){var d=_.B.apply(this,arguments)||this;d.isPreviewLoading=!1;return d};
_.m(W$,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],W$.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],W$.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],W$.prototype,"isPreviewLoading",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],W$);
_.T(W$,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(vH3!==void 0)return vH3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-loading-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="style-scope ytd-thumbnail-overlay-loading-preview-renderer">[[getSimpleString(data.text)]]</span>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return vH3=d},{mode:1});var dng;var B$=function(){return _.B.apply(this,arguments)||this};
_.m(B$,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],B$.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],B$);
_.T(B$,"ytd-thumbnail-overlay-pinking-renderer",function(){if(dng!==void 0)return dng;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-pinking-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg class="pinking-left style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="left-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="0,0 1,0 5,4 1,8 0,8"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#left-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n<svg class="pinking-right style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="right-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="4,0 0,4 4,8 5,8 5,0"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#right-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return dng=d},{mode:1});var HxA;var z4=function(){var d=_.B.apply(this,arguments)||this;d.disableTooltips=!1;d.isLoading=!1;d.useExpandableTooltip=!1;d.toggled=!1;d.hovered=!1;d.mouseoverDelayJobId=0;d.toggleDelayJobId=0;d.expandAnimationDelayJobId=0;return d};
_.m(z4,_.B);_.G=z4.prototype;_.G.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.Gn(this.hostElement).querySelector("#tooltip").position=_.Fm("HTML_DIR")==="rtl"?"right":"left"};
_.G.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.Xp.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.Xp.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.Xp.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.G.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.Xp.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.Xp.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.Xp.cancelJob(this.expandAnimationDelayJobId)};
_.G.computeIcon=function(d,H,K){return(d=K?H:d)&&d.iconType?_.kv(d.iconType):void 0};
_.G.computeAriaLabel=function(d,H,K){return _.M(K?H:d,Ls7).label};
_.G.computeTooltip=function(d,H,K){return K?H:d};
_.G.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.G.computeIconOnHover=function(d,H){if((d==null?0:d.iconType)&&!H)return _.kv(d.iconType)};
_.G.onTap=function(d){var H=this;d.stopPropagation();d.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(d=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(d),this.useExpandableTooltip&&(this.toggleDelayJobId=_.lV(_.Xp,function(){H.hovered=!1;H.data&&!H.data.toggledServiceEndpoint&&(H.expandAnimationDelayJobId=_.lV(_.Xp,function(){H.set("data.isToggled",
!1)},200))},2E3))};
_.G.onMouseenter=function(){var d=this;this.mouseoverDelayJobId=_.lV(_.Xp,function(){d.hovered=!0},300)};
_.G.onMouseleave=function(){_.Xp.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.G.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.G.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.G.onServiceRequestCompleted=function(d,H){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(H)||this.set("data.isToggled",!this.data.isToggled)};
_.G.serviceRequestWasSuccessful=function(d){return _.M(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.sV)?d.data.status==="STATUS_SUCCEEDED":!0};
z4.prototype.onServiceRequestCompleted=z4.prototype.onServiceRequestCompleted;z4.prototype.onPopupClosed=z4.prototype.onPopupClosed;z4.prototype.onPopupOpened=z4.prototype.onPopupOpened;z4.prototype.onMouseleave=z4.prototype.onMouseleave;z4.prototype.dataChanged=z4.prototype.dataChanged;_.t([_.u(_.zS),_.O("design:type",Object)],z4.prototype,"ironButtonState",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],z4.prototype,"ytComponentBehavior",void 0);
_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],z4.prototype,"ytEventForwardingBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],z4.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.O("design:type",Object)],z4.prototype,"ariaLabel",void 0);_.t([_.r(),_.O("design:type",Object)],z4.prototype,"disableTooltips",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],z4.prototype,"popupOpen",void 0);_.t([_.r(),_.O("design:type",Object)],z4.prototype,"isLoading",void 0);_.t([_.r(),_.O("design:type",Element)],z4.prototype,"eventSink",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],z4.prototype,"useExpandableTooltip",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.O("design:type",Object)],z4.prototype,"toggled",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],z4.prototype,"hovered",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.O("design:type",Object)],z4.prototype,"iconOnHover",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],z4.prototype,"dataChanged",null);
_.t([_.nK("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],z4.prototype,"onMouseleave",null);_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],z4.prototype,"onPopupOpened",null);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],z4.prototype,"onPopupClosed",null);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],z4.prototype,"onServiceRequestCompleted",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],z4);
_.T(z4,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(HxA!==void 0)return HxA;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"><div id="label" on-click="onTap" hidden="[[disableTooltips]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n    [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n  </div></div><yt-icon id="icon-on-hover-element" icon="[[iconOnHover]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><yt-icon id="icon" icon="[[computeIcon(data.untoggledIcon, data.toggledIcon, data.isToggled)]]" on-click="onTap" on-mouseenter="onMouseenter" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n  [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n</tp-yt-paper-tooltip>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return HxA=d},{mode:_.qk("kevlar_poly_si_batch_j053")?1:2});var $n3;var KXB=_.H1(function(d){var H=d.data;var K=d.thumbnailSize;var c=function(){return H().enableSegmentView};
return _.x("yt-thumbnail-overlay-progress-bar-view-model",{class:_.xM("ytThumbnailOverlayProgressBarHost",function(){return ORl(K==null?void 0:K())})},_.x(_.n,{cond:c,
then:function(){return _.x("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.x("div",{class:_.zx("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+H().startPercent+"%"}}),_.x("div",{class:_.zx("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+H().segmentDurationPercent+"%"}},_.x("div",{class:_.zx("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.x("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.x("div",null," ",function(){return H().segmentLabel})),_.x("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.x("div",{class:_.zx("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.x(_.n,{cond:function(){return!c()&&H().startPercent},
then:function(){var p={};return _.x("div",{class:_.zx("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(p.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.h("web_enable_modern_progress_bar_overlay"),p))},_.x("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+H().startPercent+"%"}}))}}))},"V");
KXB.idomCompat=!0;var cG6=_.H1(function(d){var H=_.x6(),K=_.Tv(function(p){var g,a,e;a:{var k=(g=d.data())==null?void 0:g.animationActivationTargetId;g=((a=d.data())==null?void 0:a.animationActivationEntityKey)||"";a=(e=d.data())==null?void 0:e.animationActivationEntitySelectorType;if(g&&k)switch(a){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":p=_.xL(p.entities,"playerStateEntity",g);e=_.Kj().resolve(_.$p(_.Fb));k=!!(p&&p.videoId===k&&(e==null?0:e.isMiniplayerActive()));k={activated:k,playAnimation:k&&
p.playerState==="PLAYER_STATE_PLAYING"};break a}k=void 0}return k});
_.wc(function(){var p;if((p=K())==null?0:p.activated){var g;if((g=K())==null?0:g.playAnimation){var a;(a=H.lottieEl)==null||a.goToAndPlay(0)}else{var e;(e=H.lottieEl)==null||e.goToAndStop(0)}}},"MDTl2e");
var c=function(){var p,g=!((p=K())==null||!p.activated);if(d.data()){p=d.data();var a=void 0;p.icon&&(a=_.LYY(p.icon),a=riL(a));var e=void 0,k;if((k=p.backgroundColor)==null?0:k.lightTheme){var C;e={backgroundColor:Sh((C=p.backgroundColor)==null?void 0:C.lightTheme,"0.8")}}if(p.text||a||g){if(g&&p.lottieData&&H){C=p.lottieData;var R,V,U;k={animationConfig:{name:C.url,path:C.url,autoplay:(R=C.settings)==null?void 0:R.autoplay,loop:(U=(V=C.settings)==null?void 0:V.loop)!=null?U:!0},animationRef:H}}else k=
void 0;if(g)R=17;else b:switch(p.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":R=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":R=19;break b;default:R=17}g={type:R,text:g&&p.animatedText?p.animatedText:p.text,icon:a,customColors:e,animation:k}}else g=void 0}else g=void 0;return g};
return _.x("yt-thumbnail-badge-view-model",{class:_.xM("yt-thumbnail-badge-view-model-wiz",d.class)},_.x(_.n,{cond:c,then:function(){return _.x(_.tI,{data:function(){return c()}})}}))},"W");var psA=_.H1(function(d){var H={},K={};return _.x("yt-thumbnail-bottom-overlay-view-model",{class:_.xM("ytThumbnailBottomOverlayViewModelHost",(H.ytThumbnailBottomOverlayViewModelHostBackground=function(){return d.data().enableGradientBackground},H))},_.x(_.wB,{data:function(){return d.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(c){return _.x(KXB,{data:c.data,
thumbnailSize:d.thumbnailSize})}}),_.x("div",{class:_.xM("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var c;
return SKE((c=d.thumbnailSize)==null?void 0:c.call(d))},(K.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var c;
return(c=d.isClip)==null?void 0:c.call(d)},K.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var c;
return!_.h("web_enable_modern_progress_bar_overlay")&&((c=d.thumbnailSize)==null?void 0:c.call(d))==="small"},K))},_.x(_.wB,{data:function(){return d.data().badge}},{thumbnailBadgeViewModel:function(c){return _.x(cG6,{data:c.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.x(_.wB,{data:function(){return d.data().badges}},{thumbnailBadgeViewModel:function(c){return _.x(cG6,{data:c.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"X");
psA.idomCompat=!0;_.iV(psA,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.p7,thumbnailSize:_.p7,isClip:_.p7}});var vHL={calledOnce:!1,state:"visible"},dni={calledOnce:!1,state:"hidden"};var Xk=_.H1(function(d){var H=d.data;var K=d.className;d=d.alwaysShow;var c=_.yb5(),p={};return _.x("thumbnail-hover-overlay-view-model",{el:_.$M(_.Tx(function(){return H().rendererContext})),
class:_.xM("ytThumbnailHoverOverlayViewModelHost",K,(p.ytThumbnailHoverOverlayViewModelHostForceHover=d,p)),"aria-label":function(){var g;return(g=_.M(H().rendererContext,_.hs))==null?void 0:g.label},
role:function(){return _.FN(H().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.FN(H().rendererContext)!==void 0?0:void 0},
"on:keypress":c},_.x("div",{class:_.xM("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(H().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var g="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:g="ytThumbnailHoverOverlayViewModelStyleCover"}return g})},_.x(_.n,{cond:function(){return H().icon},
then:function(g){return _.x(_.d7,{data:g,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.x(_.n,{cond:function(){return H().text},
then:function(g){return _.x(_.j$,{text:g,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Y");
Xk.idomCompat=!0;var gy0=_.H1(function(d){var H=d.data;return _.x(_.wB,{data:function(){return H==null?void 0:H().overlays}},{thumbnailHoverOverlayViewModel:Xk})},"Z");
gy0.idomCompat=!0;var ixA={};var GlX=_.H1(function(d){var H=d.data;var K=d.image;var c=d.state;var p=d.iconType;var g=d.overlays;var a=d.isOverlay;var e=_.jV("div");d=_.q(_.GO(!0,void 0,"sUzEZ"));var k=d.next().value,C=d.next().value,R=function(){return!!H().onTap},V=_.vj(p,"LIVE");
_.wc(function(){var L=H();requestAnimationFrame(function(){if(e.value===null)var w=!0;else{var W=e.value;w=L.badgeText;var J=KXF(L.size);w in ixA?W=ixA[w]:(W=W.clientWidth,ixA[w]=W);(w=W>J)?e.value.style.display="none":e.value.style.visibility="visible"}C(w)})},"SpVcNb");
var U=function(){var L={};return L["yt-spec-avatar-shape__image"]=!0,L["yt-spec-avatar-shape__image--ads-app"]=H().type===1,L};
return _.x("yt-avatar-shape",null,_.x("div",{el:_.$M(psh(R,{keydown:function(L){if(L.key==="Enter"){var w;(w=L.currentTarget)==null||w.click()}},
click:function(L){var w,W;return void((W=(w=H()).onTap)==null?void 0:W.call(w,L))}})),
class:function(){var L={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},w=H();L=(L[w.clusterLayoutConfig?GlF(w.clusterLayoutConfig):oyM(w.size)]=!0,L["yt-spec-avatar-shape__button--tappable"]=R(),L);(w=H().avatarButtonCustomClassName)&&(L[w]=!0);return _.zx(L)},
"aria-label":function(){return R()?H().accessibilityText:""},
role:function(){return R()?"button":void 0},
tabindex:function(){return R()?0:void 0}},_.x("div",{class:function(){var L,w=H(),W=c==null?void 0:c(),J=a==null?void 0:a(),F=!((L=w.decorations)==null||!L.includes(2)||w.size!=="medium"&&w.size!=="large"),Y=w.size==="tiny"||w.size==="extra-small",A,E,N,y,v={};
L=(v["yt-spec-avatar-shape--live-ring"]=!!(((A=w.decorations)==null?0:A.includes(0))&&ayF(w.size)),v["yt-spec-avatar-shape--stories-watched"]=F&&!(W==null||!W.storiesWatched),v["yt-spec-avatar-shape--stories-unwatched"]=F&&!(W==null?0:W.storiesWatched),v["yt-spec-avatar-shape--background-border"]=lyY(w.decorations)&&!Y,v["yt-spec-avatar-shape--background-border-thin"]=lyY(w.decorations)&&Y,v["yt-spec-avatar-shape__on-select-border"]=!((E=w.decorations)==null||!E.includes(4)),v["yt-spec-avatar-shape__white-border"]=
!((N=w.decorations)==null||!N.includes(5)),v["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((y=w.decorations)==null?0:y.includes(5))&&Y),v["yt-spec-avatar-shape--is-overlay"]=!!J,v);return _.zx(L)},
style:function(){a:{var L=H().clusterLayoutConfig;if(L){b:{var w=L.numAvatarsInCluster;var W=L.avatarIndex;if(W!==w-1){switch(L.clusterSize){case "small":L="32";break;case "medium":L="36";break;case "40":L="40";break;default:w=void 0;break b}w="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+L+"x"+L+"_avatars_"+w+"_index_"+W+".svg"}else w=void 0}if(w){w=_.UQ({"-webkit-mask-image":"url("+w+")","mask-image":"url("+w+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}w=void 0}return w}},_.x("div",{class:function(){var L={};
var w=H();L=(L[w.clusterLayoutConfig?gyD(w.clusterLayoutConfig):ixh(w.size)]=!0,L["yt-spec-avatar-shape--no-margin"]=lyY(H().decorations),L);return _.zx(L)}},_.x(_.d7,{data:K,
alt:function(){return!R()&&H().accessibilityText?H().accessibilityText:""},
targetWidth:function(){return qNF(H().size)},
targetHeight:function(){return qNF(H().size)},
className:function(){return _.zx(U())}}),_.x(_.n,{cond:function(){var L;
return((L=H().decorations)==null?void 0:L.includes(0))&&ayF(H().size)},
then:function(){return _.x("div",{class:function(){var L={};L=(L["yt-spec-avatar-shape__live-badge"]=!0,L["yt-spec-avatar-shape__live-badge--badge-small"]=H().size==="small",L["yt-spec-avatar-shape__live-badge--badge-medium"]=H().size==="medium"||H().size==="48",L["yt-spec-avatar-shape__live-badge--badge-large"]=H().size==="large",L["yt-spec-avatar-shape__live-badge--badge-extra-large"]=H().size==="extra-large"||H().size==="extra-extra-large"||H().size==="giant",L);return _.zx(L)}},_.x(_.n,{cond:function(){return H().badgeText},
then:function(L){return _.x("div",{class:"yt-spec-avatar-shape__badge-text",el:e},L)}}),_.x(_.n,{cond:k,
then:function(){return _.x("div",{class:"yt-spec-avatar-shape__badge-icon"},_.x(_.hu,{icon:V,size:function(){a:switch(H().size){case "extra-large":var L=16;break a;default:L=13}return L}}))}}))}}),_.x(_.n,{cond:function(){var L,w;
return((L=H().decorations)==null?void 0:L.includes(1))||((w=H().decorations)==null?void 0:w.includes(0))&&!ayF(H().size)},
then:function(){return _.x("div",{class:function(){var L=H(),w,W,J={};var F=(J["yt-spec-avatar-shape__live-dot"]=!((w=L.decorations)==null||!w.includes(0)||ayF(L.size)),J["yt-spec-avatar-shape__new-content"]=!((W=L.decorations)==null||!W.includes(1)),J);return _.zx(F)}})}}),_.x(_.n,{cond:function(){return!!g},
then:function(){return _.x("div",{class:function(){var L={};L=Object.assign((L["yt-spec-avatar-shape__image-overlays"]=!0,L),U());return _.zx(L)}},g==null?void 0:g())}})))))},"$");
GlX.idomCompat={callbacks:{overlays:!0}};_.JV=_.H1(function(d){function H(){K().endpoint&&_.EG(K().endpoint)}
var K=d.data;var c=d.decorations;var p=d.avatarButtonCustomClassName;var g=d.isOverlay;var a=d.clusterLayoutConfig;return _.x("avatar-view-model",null,_.x(_.n,{cond:function(){return K().image},
then:function(e){return _.x(GlX,{data:function(){return klL({data:K(),onTap:K().endpoint?H:void 0,decorations:c==null?void 0:c(),badgeText:void 0,accessibilityText:K().accessibilityText,avatarButtonCustomClassName:p==null?void 0:p(),clusterLayoutConfig:a==null?void 0:a()})},
image:e,iconType:"RADAR_LIVE",overlays:function(){return _.x(gy0,{data:K})},
isOverlay:g})}}))},"aa");
_.JV.idomCompat=!0;_.sg=_.H1(function(d){var H=d.data;d=d.className;var K=_.jV("yt-decorated-avatar-view-model"),c=function(){return _.M(H().avatar,_.tW)},p=_.ey(function(){var g,a=H(),e=c(),k=_.FN(H().rendererContext),C=(g=K.value)!=null?g:void 0,R;
if(e){C={data:a,avatar:e,onTap:k,element:C};g=C.data;a=C.avatar;e=C.onTap;k=C.element;C=C.commandController;e=e?RFX(e,k,C):void 0;k=[];g.liveData&&k.push(0);var V;C=(V=g.liveData)==null?void 0:V.liveBadgeText;V=(R=_.M(g.rendererContext,_.hs))==null?void 0:R.label;R=klL({data:a,onTap:e,decorations:k,badgeText:C,accessibilityText:V?V:g.a11yLabel})}else R={size:"medium"};return R},void 0,"H8tk9d");
return _.x("yt-decorated-avatar-view-model",{class:_.xM("yt-decorated-avatar-view-model-wiz",d),el:K},_.x(_.n,{cond:function(){var g;return(g=c())==null?void 0:g.image},
then:function(g){return _.x(GlX,{data:p,image:g,iconType:"RADAR_LIVE",overlays:function(){return _.x(gy0,{data:c})}})}}))},"ba");
_.sg.idomCompat=!0;_.Fk=_.H1(function(d){var H=function(){var e;return Object.assign({},d.data(),(e=d.overrides)==null?void 0:e.call(d))},K=function(){return _.Zb(H().rendererContext)},c=function(){var e=H().avatars,k,C;
return(C=(k=(e==null?0:e[0])?_.M(e[0],_.tW):void 0)==null?void 0:k.avatarImageSize)!=null?C:"AVATAR_SIZE_UNKNOWN"},p=function(){return CxX(H())},g=function(){if(H().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var e=void 0;
else if((e=d.decorations)==null?0:e.call(d))e=d.decorations();else{e=H();var k=0;e.avatars&&(k+=e.avatars.length);e.decoratedText&&(k+=1);e=k>1?[3]:[]}return e},a={};
return _.x("yt-avatar-stack-view-model",{el:_.$M(_.Tx(function(){return H().rendererContext})),
class:_.xM("yt-avatar-stack-view-model-wiz",d.className,(a["yt-avatar-stack-view-model-wiz--tappable"]=K,a["yt-avatar-stack-view-model-wiz--is-overlay"]=d.isOverlay,a["yt-avatar-stack-view-model-wiz--medium-text"]=d.useMediumText,a)),tabindex:function(){return K()?0:void 0},
role:function(){return K()?"link":void 0},
"aria-label":function(){var e,k;return(k=(e=_.M(H().rendererContext,_.hs))==null?void 0:e.label)!=null?k:""}},_.x(_.n,{cond:function(){var e;
return H().avatars&&!((e=d.hideAvatar)==null?0:e.call(d))},
then:function(){return _.x("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.x(_.n,{cond:function(){return H().decoratedText},
then:function(e){var k={};return _.x("div",{class:_.xM("yt-avatar-stack-view-model-wiz__text-container",(k["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return c()==="AVATAR_SIZE_XXS"||c()==="AVATAR_SIZE_XS"},k["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var C;
return((C=d.isOverlay)==null?void 0:C.call(d))&&(c()==="AVATAR_SIZE_XXS"||c()==="AVATAR_SIZE_XS")},k)),
style:_.UQ({width:function(){return p().avatarSizeInPx+"px"},
height:function(){return p().avatarSizeInPx+"px"}})},_.x(_.j$,{text:e,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.x("div",{style:function(){return _.UQ(p().avatarStackStyle)()},
class:function(){return p().avatarStackClass}},_.x(_.wB,{data:function(){return p().avatars.reverse()}},{avatarViewModel:function(e,k){return _.x("div",{style:function(){var C,R;
return _.UQ((R=(C=p()).avatarStyle)==null?void 0:R.call(C,k()))()},
class:function(){return p().avatarClass}},_.x(_.JV,{data:e.data,
decorations:g,avatarButtonCustomClassName:function(){return p().avatarButtonCustomClassName},
isOverlay:d.isOverlay,clusterLayoutConfig:function(){var C,R;return(R=(C=p()).clusterLayoutConfig)==null?void 0:R.call(C,k())}}))},
decoratedAvatarViewModel:function(e,k){return _.x("div",{style:function(){var C,R;return _.UQ((R=(C=p()).avatarStyle)==null?void 0:R.call(C,k()))()},
class:function(){return p().avatarClass}},_.x(_.sg,{data:e.data}))}})))}}),_.x(_.n,{cond:function(){return H().text},
then:function(e){return _.x(_.j$,{text:e,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"ca");
_.Fk.idomCompat=!0;_.iV(_.H1(function(d){var H=d.data;var K=d.thumbnailSize;return _.x("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.x("div",{class:_.xM("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return VNF(K==null?void 0:K())})},_.x(_.wB,{data:function(){return H().avatarStack}},{avatarStackViewModel:function(c){return _.x(_.Fk,{data:c.data,
decorations:[5]})}})))},"da"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.dl,
thumbnailSize:_.dl}});var oy7=_.H1(function(d){d=_.dg(d,{hidden:!1});var H=d.data;return _.x("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:d.hidden},_.x(_.j$,{text:function(){return H().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.x(_.n,{cond:function(){return H().subtitle},
then:function(){return _.x(_.j$,{text:function(){return H().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"ea");
oy7.idomCompat=!0;_.iV(oy7,"yt-thumbnail-overlay-title-view-model",{props:{data:_.dl,hidden:_.dl}});var qNB=_.H1(function(d){d=_.dg(d,{isClip:!1});var H=d.data,K=d.thumbnailSize,c={};return _.x("yt-thumbnail-overlay-badge-view-model",{class:_.xM("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(H().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var p="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:p="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return p},function(){return UnM(K==null?void 0:K())},(c["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
d.isClip,c))},_.x(_.wB,{data:function(){return H().thumbnailBadges}},{thumbnailBadgeViewModel:function(p){return _.x(cG6,{data:p.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"fa");
qNB.idomCompat=!0;_.iV(qNB,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.dl,thumbnailSize:_.dl,isClip:_.dl}});var ayB=_.H1(function(d){var H=d.data;d=d.hidden;var K=_.ey(function(){return H().indicatorCount||0},void 0,"RYwqDc"),c={};
return _.x("yt-page-indicator-view-model",{class:_.xM("yt-page-indicator-view-model",(c["yt-page-indicator-view-model__indicator--hidden"]=function(){return!H().indicatorCount},c)),
hidden:d},_.x(_.L6,{each:function(){return Array(K())}},function(p,g){var a={};
return _.x("div",{class:_.xM("yt-page-indicator-view-model__indicator",(a["yt-page-indicator-view-model__indicator--selected"]=function(){return H().selectedIndex===g()},a))})}))},"ga");
ayB.idomCompat=!0;_.iV(ayB,"yt-page-indicator-view-model",{props:{data:_.dl,hidden:_.dl}});var ZF=function(){var d=_.B.apply(this,arguments)||this;d.eventSink=function(){return d};
d.disableInteraction=!1;d.noRoundedCorners=!1;d.isPreviewLoading=!1;d.isOriginalAspectRatio=!1;d.computedObjectFit=!1;d.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return d};
_.m(ZF,_.B);_.G=ZF.prototype;
_.G.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.h("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.G.onImageLoaded=function(){this.loaded=!0};
_.G.onImageUnloaded=function(){this.loaded=!1};
_.G.computeRichThumbnail=function(d,H,K,c){if(d&&H&&!c&&!_.h("disable_moving_thumbs_handling")&&!K)return H};
_.G.computeImageWidth=function(d,H){return H||9999};
_.G.computeIsOriginalAspectRatio=function(d){return d};
_.G.computeIsLive=function(d){if(d==null?0:d.badges)for(var H=0;H<d.badges.length;H++){var K=d.badges[H];if(K.metadataBadgeRenderer&&K.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(d==null?0:d.thumbnailOverlays)for(H=0;H<d.thumbnailOverlays.length;H++)if(K=d.thumbnailOverlays[H],K.thumbnailOverlayTimeStatusRenderer&&K.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.G.computeObjectFit=function(d,H){return H||(d?"CONTAIN":"")};
_.G.computeNavigationEndpoint=function(d,H,K){return d?H:K};
_.G.computeHasClip=function(d){d=_.q(d||[]);for(var H=d.next();!H.done;H=d.next())if(H.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.G.computeOverlayColor=function(d){var H;return(d==null?0:(H=d.darkColorPalette)==null?0:H.section2Color)?d.darkColorPalette.section2Color:d==null?void 0:d.sampledThumbnailColor};
_.H3.Object.defineProperties(ZF.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return b9Y(this.width)}}});
ZF.prototype.onImageUnloaded=ZF.prototype.onImageUnloaded;ZF.prototype.onImageLoaded=ZF.prototype.onImageLoaded;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],ZF.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ZF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(SF0),_.O("design:type",Object)],ZF.prototype,"ytdThumbnailBehavior",void 0);
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],ZF.prototype,"componentBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],ZF.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ZF.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],ZF.prototype,"circular",void 0);
_.t([_.r({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.O("design:type",Object)],ZF.prototype,"richThumbnail",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.O("design:type",Boolean)],ZF.prototype,"hasClip",void 0);_.t([_.r(),_.O("design:type",Object)],ZF.prototype,"eventSink",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],ZF.prototype,"queued",void 0);
_.t([_.r({value:!1}),_.O("design:type",Boolean)],ZF.prototype,"richGridThumbnail",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],ZF.prototype,"useExpandableTooltip",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],ZF.prototype,"useUntranslatedNavigationEndpoint",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ZF.prototype,"disableInteraction",void 0);
_.t([_.r({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.O("design:type",Object)],ZF.prototype,"computedNavigationEndpoint",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],ZF.prototype,"nowPlayingEqualizerOnly",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],ZF.prototype,"hidePlaybackStatus",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],ZF.prototype,"objectFit",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ZF.prototype,"noRoundedCorners",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],ZF.prototype,"watchFeedThumbnail",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ZF.prototype,"isPreviewLoading",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.O("design:type",Object)],ZF.prototype,"isOriginalAspectRatio",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.O("design:type",Object)],ZF.prototype,"computedObjectFit",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.O("design:type",Boolean)],ZF.prototype,"isLiveVideo",void 0);
_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],ZF.prototype,"loaded",void 0);_.t([_.r({computed:"computeOverlayColor(data.thumbnail)"}),_.O("design:type",Object)],ZF.prototype,"overlayColor",void 0);_.t([_.r({selector:_.AJC}),_.O("design:type",Boolean)],ZF.prototype,"inlinePreviewIsEnabled",void 0);_.t([_.r(),_.O("design:type",Number)],ZF.prototype,"width",void 0);
_.t([_.I("inlinePreviewIsEnabled"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ZF.prototype,"isPreviewDisabled",null);_.t([_.I("width"),_.O("design:type",String),_.O("design:paramtypes",[])],ZF.prototype,"thumbnailSize",null);_.t([_.nK("image-loaded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ZF.prototype,"onImageLoaded",null);
_.t([_.nK("image-unloaded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ZF.prototype,"onImageUnloaded",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-thumbnail"})],ZF);
var lyd=_.oq()(ZF,"ytd-thumbnail",function(){if($n3===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint inline-block style-scope ytd-thumbnail" aria-hidden="true" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" rel="[[computeNofollow_(computedNavigationEndpoint)]]" tabindex="-1">\n  <yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[height]]" notify-on-loaded="" notify-on-unloaded="" object-fit="[[computedObjectFit]]" width="[[computeImageWidth(data, width)]]" class="style-scope ytd-thumbnail">\n  </yt-image>\n  \n  <div id="overlays" class="style-scope ytd-thumbnail"></div>\n  <div id="mouseover-overlay" class="style-scope ytd-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-thumbnail"></div>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);$n3=d}d=$n3;return d},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var MNf=function(d){var H=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14844_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14844_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(K){eFS(H,K)};
this.onLockupMouseLeaveFn=function(K){K=K.relatedTarget;var c,p;((c=document.getElementsByTagName("ytd-video-preview"))==null?0:(p=c.item(0))==null?0:p.contains(K))||(H.terminateVideoPreview(),T4(H))};
this.onThumbnailMouseDownFn=function(){H.terminateVideoPreview();T4(H)};
this.onTouchStart=function(){H.JSC$14844_touched=!0};
this.mediaRenderer=d.mediaRenderer;this.thumbnailElement=d.thumbnailElement;this.lockupElement=d.lockupElement;this.videoPreviewOptsInput=d.videoPreviewOpts;kl3(this);QJ(this)?this.thumbnailElement?this.lockupElement?(this.lockupElement.addEventListener("mouseenter",this.onMouseMoveFn),this.lockupElement.addEventListener("mouseleave",this.onLockupMouseLeaveFn),this.lockupElement.addEventListener("touchstart",this.onTouchStart),this.thumbnailElement.addEventListener("mousedown",this.onThumbnailMouseDownFn)):
_.Jf(Error("Ch")):_.Jf(Error("Dh")):xnl(this)},f8=function(d){xnl(d);
var H;(H=d.lockupElement)==null||H.removeEventListener("mouseenter",d.onMouseMoveFn);var K;(K=d.lockupElement)==null||K.removeEventListener("mouseleave",d.onLockupMouseLeaveFn);var c;(c=d.lockupElement)==null||c.removeEventListener("touchstart",d.onTouchStart);var p;(p=d.thumbnailElement)==null||p.removeEventListener("mousedown",d.onThumbnailMouseDownFn);T4(d)},kl3=function(d){d.inlinePreviewIsEnabledForUser=_.dn().getState().ui.inlinePreviewIsEnabled;
d.unsubscribeFromInlinePreviewIsEnabled=_.LU(_.dn(),_.AJC,function(H){(d.inlinePreviewIsEnabledForUser=H)||T4(d)});
d.JSC$14844_unsubscribeFromInlinePreviewIsActive=_.LU(_.dn(),_.fEi,function(H){(d.inlinePreviewIsActive=H)||T4(d)})},xnl=function(d){d.unsubscribeFromInlinePreviewIsEnabled();
d.unsubscribeFromInlinePreviewIsEnabled=function(){};
d.JSC$14844_unsubscribeFromInlinePreviewIsActive();d.JSC$14844_unsubscribeFromInlinePreviewIsActive=function(){}},eFS=function(d,H){H.buttons>0||(H=_.iT("kevlar_lockup_hover_delay",-1),d.JSC$14844_touched&&H>=0?(_.Xp.cancelJob(d.videoPreviewJobId),d.videoPreviewJobId=_.lV(_.Xp,function(){ny3(d)},H),d.JSC$14844_touched=!1):ny3(d))},GgX=function(d){d.videoPreviewJobId=_.lV(_.Xp,function(){return _.l(function(H){return H.yield(Cx6(d,{isAutoplay:!0}),0)})})},ny3=function(d){!d.previewTriggered&&QJ(d)&&
(d.inlinePreviewIsActive&&d.terminateVideoPreview(),d.previewTriggered=!0,d.mediaRenderer.isInlinePreviewTriggered=!0,_.Xp.cancelJob(d.videoPreviewJobId),d.videoPreviewJobId=_.lV(_.Xp,function(){return _.l(function(H){return H.yield(Cx6(d),0)})}))},Cx6=function(d,H){H=H===void 0?{}:H;
var K=H.isAutoplay===void 0?!1:H.isAutoplay;var c,p,g,a;return _.l(function(e){if(e.nextAddress==1){if(!QJ(d))return e.return();c=d.getVideoPreviewOpts();if(!c)return e.return();K&&(c.isAutoplay=!0);return(g=(p=_.qo(d.mediaRenderer.hostElement,"yt-open-video-preview-action",[c]))&&p[0])?e.yield(p[0],3):e.jumpTo(2)}e.nextAddress!=2&&(g=e.yieldResult===1);if(g){var k=(a=d.mediaRenderer)==null?void 0:a.data;k&&(LXh(k)?delete k.inlinePlayerData:"inlinePlaybackEndpoint"in k&&delete k.inlinePlaybackEndpoint)}_.VE(e)})};
MNf.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var d,H;if((H=(d=this.videoPreviewOptsInput)==null?void 0:d.videoPreviewData)!=null)d=H;else if(d=this.mediaRenderer.data)if(LXh(d))d={inlinePlaybackEndpoint:_.T6(d.inlinePlayerData.onVisible),navigationEndpoint:_.T6(d.onTap),thumbnail:"image"in d?d.image:d.thumbnail,thumbnailOverlays:void 0,accessibilityText:hF4(d)};else if("multipleInlinePlaybackEndpoint"in d){var K=_.M(_.M(d.multipleInlinePlaybackEndpoint,JvB),sYS);if(K!=
null&&K.playerDescriptors){H=[];K=_.q(K.playerDescriptors);for(var c=K.next();!c.done;c=K.next())c=c.value,H.push({inlinePlaybackEndpoint:c.inlinePlaybackEndpoint,navigationEndpoint:c.navigationEndpoint,thumbnail:c.thumbnail,thumbnailOverlays:c.thumbnailOverlays,accessibilityText:hF4(d)});d=H}else d=void 0}else d={inlinePlaybackEndpoint:d.inlinePlaybackEndpoint,navigationEndpoint:d.navigationEndpoint,thumbnail:d.thumbnail,thumbnailOverlays:d.thumbnailOverlays,accessibilityText:hF4(d)};else d=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:d,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var QJ=function(d){var H;if(H=d.inlinePreviewIsEnabledForUser)H=(d=d.mediaRenderer.data)?"inlinePlaybackEndpoint"in d&&d.inlinePlaybackEndpoint||LXh(d)&&d.inlinePlayerData||"multipleInlinePlaybackEndpoint"in d&&d.multipleInlinePlaybackEndpoint?!0:!1:!1;return H};
MNf.prototype.terminateVideoPreview=function(){_.oF(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var T4=function(d){_.Xp.cancelJob(d.videoPreviewJobId);d.inlinePreviewIsActive=!1;d.previewTriggered=!1;d.mediaRenderer.isInlinePreviewTriggered=!1};var RF6=_.y$(["#"]),tV=function(){var d=_.B.apply(this,arguments)||this;d.isDisabled=!1;return d};
_.m(tV,_.B);_.G=tV.prototype;_.G.configureRendererStamper=function(){return{"data.menu":Ug,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.G.attached=function(){this.updateInlinePreviewHoverListeners()};
_.G.detached=function(){this.clearInlinePreviewHoverListeners()};
_.G.getMetadata=function(d){var H=[];if(d.metadataText&&Object.keys(d.metadataText).length>0){var K=this.ytRendererBehavior.getSimpleString(d.metadataText);d.upcomingEventData&&d.upcomingEventData.upcomingEventText&&(K=_.WI(K,Number(d.upcomingEventData.startTime)));H.push(K)}else d.shortViewCountText&&H.push(this.ytRendererBehavior.getSimpleString(d.shortViewCountText)),d.publishedTimeText&&H.push(this.ytRendererBehavior.getSimpleString(d.publishedTimeText)),d.upcomingEventData&&d.upcomingEventData.upcomingEventText&&
(K=this.ytRendererBehavior.getSimpleString(d.upcomingEventData.upcomingEventText),H.push(_.WI(K,Number(d.upcomingEventData.startTime))));return H};
_.G.calculateBylineText=function(d){return d.shortBylineText?d.shortBylineText:d.bylineText?d.bylineText:null};
_.G.calculateIsDisabled=function(d){return!!d.isDisabled};
_.G.computeHrefWithDefault=function(d){return this.ytComponentBehavior.computeHref_(d)||_.jKD(RF6)};
_.G.onDetailsTap=function(d){var H=this.data&&this.data.navigationEndpoint;H&&!_.vg(_.jh(d)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.h("kevlar_grid_video_renderer_killswitch")?_.GT(this.hostElement,"yt-navigate",{endpoint:H}):this.ytComponentBehavior.resolveCommand(H))};
_.G.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.G.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14851_inlinePreviewHoverListener=Y6({mediaRenderer:this,lockupElement:_.Gn(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Gn(this.hostElement).querySelector("ytd-thumbnail")})};
_.G.clearInlinePreviewHoverListeners=function(){var d;(d=this.JSC$14851_inlinePreviewHoverListener)==null||f8(d)};
_.G.computeThumbnailWidth=function(d,H){return H&&H>0?H:d?360:210};
_.G.computeShowChannelThumbnail=function(d,H){var K;return H&&!!(d==null?0:(K=d.channelThumbnailSupportedRenderers)==null?0:K.channelThumbnailWithLinkRenderer)};
_.H3.Object.defineProperties(tV.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.JSC$14851_inlinePreviewHoverListener)==null?0:QJ(d))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
tV.prototype.dataChanged=tV.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],tV.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],tV.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],tV.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.u(_.fe),_.O("design:type",Object)],tV.prototype,"ytdLockupBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],tV.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],tV.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],tV.prototype,"noEndpoints",void 0);_.t([_.r({computed:"calculateBylineText(data)"}),_.O("design:type",Object)],tV.prototype,"bylineText",void 0);
_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],tV.prototype,"isSearch",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],tV.prototype,"isDownloading",void 0);_.t([_.r({reflectToAttribute:!0,value:0}),_.O("design:type",Number)],tV.prototype,"width",void 0);_.t([_.r({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.O("design:type",Object)],tV.prototype,"isDisabled",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tV.prototype,"dataChanged",null);_.t([_.I("lockupIsHovered"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],tV.prototype,"isHovered",null);_.t([_.Z({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],tV);
_.T(tV,"ytd-grid-video-renderer",function(){if(SKC!==void 0)return SKC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return SKC=d},{mode:_.qk("kevlar_poly_si_batch_j047")?1:2});var VNB;var Yn=function(){var d=_.B.apply(this,arguments)||this;d.roundedContainer=!0;d.skipRoundingTop=!1;d.disableTopPadding=!1;d.amsterdamEnabled=_.h("enable_desktop_amsterdam_info_panels");return d};
_.m(Yn,_.B);Yn.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Yn.prototype.onClick=function(d){var H,K=(H=this.data)==null?void 0:H.sourceEndpoint;!_.vg(_.jh(d),this.hostElement,["A".toString()])&&K&&_.GT(this.hostElement,"yt-navigate",{endpoint:K})};
_.H3.Object.defineProperties(Yn.prototype,{showMetadataAtTop:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!!this.data.sourceAtTop}},
showMetadataBelowTitle:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!this.data.sourceAtTop}},
hasMenu:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var d,H;return(H=(d=this.data)==null?void 0:d.paragraphMaxLines)!=null?H:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Yn.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Yn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Yn.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Yn.prototype,"showVerticalDividers",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Yn.prototype,"roundedContainer",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Yn.prototype,"skipRoundingTop",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Yn.prototype,"disableTopPadding",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Yn.prototype,"amsterdamEnabled",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Yn.prototype,"showMetadataAtTop",null);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Yn.prototype,"showMetadataBelowTitle",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.menu"),_.O("design:type",Object),_.O("design:paramtypes",[])],Yn.prototype,"hasMenu",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.truncateParagraphs"),_.O("design:type",Object),_.O("design:paramtypes",[])],Yn.prototype,"truncateParagraphs",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data.paragraphMaxLines"),_.O("design:type",Number),_.O("design:paramtypes",[])],Yn.prototype,"paragraphMaxLines",null);_.t([_.r({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.I("data.background"),_.O("design:type",Object),_.O("design:paramtypes",[])],Yn.prototype,"background",null);_.t([_.Z({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Yn);
_.T(Yn,"ytd-info-panel-content-renderer",function(){if(VNB!==void 0)return VNB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-info-panel-content-renderer" on-click="onClick">\n  <yt-icon class="inline-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <div class="text-content style-scope ytd-info-panel-content-renderer">\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataAtTop]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <a class="yt-simple-endpoint title-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.title]]" href$="[[computeHref_(data.sourceEndpoint)]]" data="[[data.sourceEndpoint]]">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-info-panel-content-renderer"></yt-formatted-string>\n      <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n      </yt-icon>\n    </a>\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataBelowTitle]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div class="paragraphs style-scope ytd-info-panel-content-renderer">\n      <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.runs]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-formatted-string class="paragraph style-scope ytd-info-panel-content-renderer" text="[[item]]">\n          </yt-formatted-string>\n          <div class="inline-source style-scope ytd-info-panel-content-renderer" hidden="[[!data.inlineSource]]">\n            <yt-formatted-string force-default-style="" text="[[data.inlineSource]]" class="style-scope ytd-info-panel-content-renderer">\n            </yt-formatted-string>\n            <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n            </yt-icon>\n          </div>\n        </div>\n      </template>\n      <template is="dom-repeat" items="[[data.attributedParagraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.content]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-attributed-string id="paragraph" class="attributed-paragraph style-scope ytd-info-panel-content-renderer" data="[[item]]">\n          </yt-attributed-string>\n        </div>\n      </template>\n      <div class="disclaimer-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.disclaimer]]">\n        <a class="yt-simple-endpoint style-scope ytd-info-panel-content-renderer" href$="[[computeHref_(data.sourceEndpoint)]]" target="_blank" data="[[data.sourceEndpoint]]">\n          <yt-formatted-string class="disclaimer style-scope ytd-info-panel-content-renderer" text="[[data.disclaimer]]">\n          </yt-formatted-string>\n          <yt-icon class="inline-link-icon inline-disclaimer-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineDisclaimerIcon.iconType]]" hidden="[[!data.inlineDisclaimerIcon]]" icon="[[data.inlineDisclaimerIcon.iconType]]">\n          </yt-icon>\n        </a>\n      </div>\n    </div>\n  </div>\n  <yt-img-shadow class="thumbnail style-scope ytd-info-panel-content-renderer" hidden="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n</div>\n<div id="menu" class="style-scope ytd-info-panel-content-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return VNB=d},{mode:_.qk("kevlar_poly_si_batch_j076")?1:2});var Un7;var hFl;var LXA;var MNU;var Og=function(){return _.B.apply(this,arguments)||this};
_.m(Og,_.B);Og.prototype.computeStyle=function(d){return d};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Og.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Og.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.O("design:type",String)],Og.prototype,"style_",void 0);_.t([_.ZV({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Og);
_.T(Og,"yt-channel-thumbnail-with-link-renderer",function(){if(MNU===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-channel-thumbnail-with-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_channel_thumbnail_with_link_renderer.yt.channel.thumbnail.with.link.renderer.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" title="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  </yt-img-shadow>\n</a>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;LXA===void 0&&(LXA=document.createElement("template"));var c=LXA;K.call(H,c.content.cloneNode(!0),d.content.firstChild);MNU=d}d=MNU;return d},{mode:2});var SW=function(){var d=_.B.apply(this,arguments)||this;d.modernTypography=_.h("web_modern_typography");return d};
_.m(SW,_.B);SW.prototype.configureRendererStamper=function(){return{"data.channelThumbnail":{id:"avatar",mapping:{channelThumbnailWithLinkRenderer:"yt-channel-thumbnail-with-link-renderer"}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
SW.prototype.computeTitleStyle=function(d){return d||null};
SW.prototype.computeAvatarStyle=function(d){return d||null};
SW.prototype.computeShowNavigationButton=function(d,H){return!(d==null||!d.navigationButton||H)};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],SW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],SW.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.O("design:type",String)],SW.prototype,"titleStyle",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.O("design:type",String)],SW.prototype,"avatarStyle",void 0);_.t([_.r(),_.O("design:type",Boolean)],SW.prototype,"hideNavigationButton",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],SW.prototype,"isModernSd",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],SW.prototype,"modernTypography",void 0);
_.t([_.Z({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],SW);
_.T(SW,"ytd-rich-list-header-renderer",function(){if(hFl!==void 0)return hFl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="title-row style-scope ytd-rich-list-header-renderer">\n  <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n  <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-rich-list-header-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n      </yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-rich-list-header-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <div id="image-container" class="style-scope ytd-rich-list-header-renderer">\n        <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n        <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n          <span id="title" class="style-scope ytd-rich-list-header-renderer">[[getSimpleString(data.title)]]</span>\n          <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </a>\n  </template>\n  <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-list-header-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="title-annotation" hidden="[[!data.titleAnnotation]]" text="[[data.titleAnnotation]]" class="style-scope ytd-rich-list-header-renderer">\n  </yt-formatted-string>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-list-header-renderer"></div>\n  <div id="navigation-button" hidden="[[!computeShowNavigationButton(data, hideNavigationButton)]]" class="style-scope ytd-rich-list-header-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return hFl=d},{mode:_.qk("kevlar_poly_si_batch_j058")?1:2});var Eg=function(){return _.B.apply(this,arguments)||this};
_.m(Eg,_.B);Eg.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Eg.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Eg.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],Eg.prototype,"isSearch",void 0);_.t([_.Z({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Eg);
_.T(Eg,"ytd-preview-card-renderer",function(){if(Un7!==void 0)return Un7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-preview-card-renderer"></div>\n<div id="contents" class="style-scope ytd-preview-card-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Un7=d},{mode:1});var mn7;var yJ=function(){return _.B.apply(this,arguments)||this};
_.m(yJ,_.B);yJ.prototype.configureRendererStamper=function(){return{"data.menu":Ug}};
yJ.prototype.dataChanged=function(){var d=this.get("colorExtractionPalette.section1Color",this.data);d=_.Yi(d);_.eO(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":d})};
yJ.prototype.computeCardStyle=function(d){return this.get("style.value",d)||null};
yJ.prototype.dataChanged=yJ.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],yJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],yJ.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],yJ.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.O("design:type",String)],yJ.prototype,"cardStyle",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yJ.prototype,"dataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],yJ);
_.T(yJ,"ytd-compact-channel-recommendation-card-renderer",function(){if(mn7!==void 0)return mn7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-channel-recommendation-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="card-body" class="yt-simple-endpoint style-scope ytd-compact-channel-recommendation-card-renderer" href$="[[computeHref_(data.channelEndpoint)]]" title$="[[getSimpleString(data.channelTitle)]]" aria-label$="[[getSimpleString(data.channelTitle)]]" data="[[data.channelEndpoint]]">\n  <div id="banner" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <yt-img-shadow id="channel-art" object-fit="COVER" thumbnail="[[data.backgroundImage]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n    <svg id="avatar-protection" viewBox="0 0 210 56" preserveAspectRatio="none" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n      <path id="lower-overlay" d="M 0 -12 L 126 56 L 0 56 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n      <path id="upper-overlay" d="M 0 -12 L 74 28 L 0 68 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n    </svg>\n    <yt-img-shadow id="avatar" thumbnail="[[data.channelAvatar]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n  </div>\n  <div id="channel-info" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <span id="title" class="style-scope ytd-compact-channel-recommendation-card-renderer">[[getSimpleString(data.channelTitle)]]</span>\n  </div>\n</a>\n<div id="subscribe-container" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  <ytd-subscribe-button-renderer id="subscribe" data="[[data.subscribeButton.subscribeButtonRenderer]]" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  </ytd-subscribe-button-renderer>\n</div>\n<div id="menu" class="style-scope ytd-compact-channel-recommendation-card-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return mn7=d},{mode:1});var wsN;var Pxg;var bm=function(){var d=_.B.apply(this,arguments)||this;d.alignAuto=!1;d.collapsed=!0;d.isToggled=!1;d.alwaysCollapsed=!1;d.canToggle=!0;d.collapsedHeight=80;d.disableToggle=!1;d.alwaysToggleable=!1;d.reversed=!1;d.shouldUseNumberOfLines=!1;d.recomputeOnResize=!1;d.canToggleJobId=0;d.lastReversed=!1;return d};
_.m(bm,_.B);_.G=bm.prototype;_.G.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.G.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.G.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var d=_.Gn(this.hostElement),H=d.childNodes,K=document.createDocumentFragment(),c=d.childNodes.length-1;c>=0;c--)_.Gn(K).appendChild(H[c]);_.h("enable_shadydom_free_scoped_node_methods")?_.o1(this.hostElement).appendChild(K):d.appendChild(K)}};
_.G.ready=function(){var d=this;_.EI(function(){d.initChildrenObserver()},1)};
_.G.attached=function(){var d;(d=this.resizeObserver)==null||d.observe(this.content)};
_.G.detached=function(){this.detachObserver()};
_.G.toggle=function(d,H){this.canToggle&&(this.isToggled=H,_.GT(this.hostElement,"yt-refit"),d&&d.stopPropagation())};
_.G.reset=function(){this.childrenChanged()};
_.G.onIronResize=function(){this.recomputeOnResize&&!_.h("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.G.computeIsMoreVisible=function(d,H){return d&&!H};
_.G.computeShouldUseNumberOfLines=function(d){try{return!!d&&window.CSS.supports("-webkit-line-clamp","1")}catch(H){}return!1};
_.G.computeIsLessVisible=function(d,H){return d&&H};
_.G.observeCollapsedHeightAndMaxLines=function(){var d=this.collapsedHeight,H=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.eO(this.hostElement,{"--ytd-expander-max-lines":""+H,"--ytd-expander-collapsed-height":""}):_.eO(this.hostElement,{"--ytd-expander-collapsed-height":d+"px","--ytd-expander-max-lines":""})};
_.G.handleMoreTap=function(d){this.disableToggle||(_.GT(this.hostElement,"yt-expander-more-tapped"),this.toggle(d,!0))};
_.G.handleLessTap=function(d){_.GT(this.hostElement,"yt-expander-less-tapped");this.toggle(d,!1)};
_.G.initChildrenObserver=function(){var d=this;this.observer=new MutationObserver(function(){d.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.h("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.NV(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var H;(H=d.resizeThrottle)==null||H.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.G.childrenChanged=function(){var d=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){ad(function(){d.canToggleJobId=0;d.calculateCanCollapse()})}))};
_.G.calculateCanCollapse=function(){this.canToggle=this.shouldUseNumberOfLines?this.alwaysToggleable||this.isToggled||this.content&&this.content.offsetHeight<this.content.scrollHeight:this.alwaysToggleable||this.isToggled||this.content&&this.content.scrollHeight>this.collapsedHeight};
_.G.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.G.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("collapsed-changed",this.collapsed))};
_.G.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("is-toggled-changed",this.isToggled))};
_.G.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("can-toggle-changed",this.canToggle))};
_.H3.Object.defineProperties(bm.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
bm.prototype.canToggleChangedForBinding=bm.prototype.canToggleChangedForBinding;bm.prototype.isToggledChangedForBinding=bm.prototype.isToggledChangedForBinding;bm.prototype.collapsedChangedForBinding=bm.prototype.collapsedChangedForBinding;bm.prototype.observeCollapsedHeightAndMaxLines=bm.prototype.observeCollapsedHeightAndMaxLines;bm.prototype.onIronResize=bm.prototype.onIronResize;bm.prototype.reversedChanged=bm.prototype.reversedChanged;bm.prototype.toggledChanged=bm.prototype.toggledChanged;
bm.prototype.alwaysToggleableChanged=bm.prototype.alwaysToggleableChanged;_.t([_.u(_.WZ),_.O("design:type",Object)],bm.prototype,"ironResizableBehavior",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],bm.prototype,"alignAuto",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],bm.prototype,"collapsed",void 0);_.t([_.r(),_.O("design:type",Object)],bm.prototype,"isToggled",void 0);_.t([_.r(),_.O("design:type",Object)],bm.prototype,"alwaysCollapsed",void 0);
_.t([_.r(),_.O("design:type",Object)],bm.prototype,"canToggle",void 0);_.t([_.r(),_.O("design:type",Object)],bm.prototype,"collapsedHeight",void 0);_.t([_.r(),_.O("design:type",Object)],bm.prototype,"disableToggle",void 0);_.t([_.r(),_.O("design:type",Object)],bm.prototype,"alwaysToggleable",void 0);_.t([_.r(),_.O("design:type",Object)],bm.prototype,"reversed",void 0);_.t([_.r(),_.O("design:type",Number)],bm.prototype,"maxNumberOfLines",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.O("design:type",Object)],bm.prototype,"shouldUseNumberOfLines",void 0);_.t([_.r(),_.O("design:type",Object)],bm.prototype,"recomputeOnResize",void 0);_.t([_.VP("#content"),_.O("design:type",HTMLDivElement)],bm.prototype,"content",void 0);_.t([_.Mr("alwaysToggleable"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bm.prototype,"alwaysToggleableChanged",null);
_.t([_.Mr("isToggled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bm.prototype,"toggledChanged",null);_.t([_.I("canToggleJobId"),_.O("design:type",Object),_.O("design:paramtypes",[])],bm.prototype,"isResetting",null);_.t([_.CK("reversed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bm.prototype,"reversedChanged",null);
_.t([_.nK("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bm.prototype,"onIronResize",null);_.t([_.CK("maxNumberOfLines","collapsedHeight"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bm.prototype,"observeCollapsedHeightAndMaxLines",null);_.t([_.CK("collapsed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bm.prototype,"collapsedChangedForBinding",null);
_.t([_.CK("isToggled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bm.prototype,"isToggledChangedForBinding",null);_.t([_.CK("canToggle"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bm.prototype,"canToggleChangedForBinding",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-expander"})],bm);
_.T(bm,"ytd-expander",function(){if(Pxg!==void 0)return Pxg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-expander">\n  \n  <slot id="container" name="content" class="style-scope ytd-expander"></slot>\n</div>\n<slot name="sticky" class="style-scope ytd-expander"></slot>\n<tp-yt-paper-button id="less" aria-expanded="true" hidden="[[!computeIsLessVisible(canToggle, isToggled)]]" noink="" on-tap="handleLessTap" class="style-scope ytd-expander">\n  <slot name="less-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<tp-yt-paper-button id="more" aria-expanded="false" hidden="[[!computeIsMoreVisible(canToggle, isToggled)]]" noink="" on-tap="handleMoreTap" class="style-scope ytd-expander">\n  <slot name="more-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<slot name="sticky-secondary" class="style-scope ytd-expander"></slot>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Pxg=d},{mode:1});var NF=function(){return _.B.apply(this,arguments)||this};
_.m(NF,_.B);NF.prototype.computeIsCarousel=function(d){return!!d.isCarousel};
NF.prototype.observeLightsourcePalette=function(){var d,H=(d=this.data)==null?void 0:d.vibrantsourceColorPaletteData;H&&_.Bg(this.hostElement,H)};
NF.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
NF.prototype.observeLightsourcePalette=NF.prototype.observeLightsourcePalette;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],NF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],NF.prototype,"data",void 0);_.t([_.r({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],NF.prototype,"isCarousel",void 0);
_.t([_.CK("data.vibrantsourceColorPaletteData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],NF.prototype,"observeLightsourcePalette",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],NF);
_.T(NF,"ytd-media-upsell-renderer",function(){if(wsN!==void 0)return wsN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return wsN=d},{mode:2});var uCg;var DF=function(){var d=_.B.apply(this,arguments)||this;d.JSC$14879_playerEvents=new Map;d.listeningToPlayer=!1;d.startX=0;d.active=!1;d.shouldShowButtons=_.h("web_buttons_hidden_killswitch");d.isHighlighted=!1;d.useHighlightStyling=_.h("web_enable_deeper_metadata_highlight_styling");d.modern=_.h("kevlar_modern_sd");d.enableProblemWalkthrough=_.h("problem_walkthrough_sd");return d};
_.m(DF,_.B);_.G=DF.prototype;
_.G.configureRendererStamper=function(){return{"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.repeatButton":{id:"repeat-button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.thumbnailOverlay":{id:"overlay",mapping:{thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",params:{isVideoPlaying:!0}}}}}};
_.G.created=function(){this.JSC$14879_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.G.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.xf(this,this.onRepeatButtonToggle));_.h("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.xf(this,this.onActiveUpdate))};
_.G.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.xf(this,this.onRepeatButtonToggle));_.h("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.xf(this,this.onActiveUpdate))};
_.G.onDataChanged=function(){this.removePlayerListeners()};
_.G.onColorPaletteChange=function(){var d={},H;if(_.B5()==="USER_INTERFACE_THEME_DARK"&&((H=this.data)==null?0:H.darkColorPalette)){var K=this.data.darkColorPalette;d["--ytd-macro-markers-list-item-background-color"]=_.Ob(this.get("section2Color",K))}else{var c;_.B5()==="USER_INTERFACE_THEME_LIGHT"&&((c=this.data)==null?0:c.lightColorPalette)&&(K=this.data.lightColorPalette,d["--ytd-macro-markers-list-item-background-color"]=_.Ob(this.get("section3Color",K)))}K?(d["--ytd-macro-markers-list-item-title-color"]=
_.Ob(this.get("primaryTitleColor",K)),d["--ytd-macro-markers-list-item-secondary-color"]=_.Ob(this.get("secondaryTitleColor",K)),d["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Ob(this.get("section1Color",K)),this.customButtonProperties={customColors:{color:_.Ob(this.get("primaryTitleColor",K))}},this.useColorSampling=!0):(d["--ytd-macro-markers-list-item-background-color"]="initial",d["--ytd-macro-markers-list-item-title-color"]="initial",d["--ytd-macro-markers-list-item-secondary-color"]=
"initial",d["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.eO(this.hostElement,d)};
_.G.onEndpointMouseDown=function(d){this.startX=d.clientX};
_.G.onEndpointClick=function(d){var H=this,K,c,p;return _.l(function(g){if(g.nextAddress==1){if(H.startX!==d.clientX)return d.preventDefault(),g.return();H.data&&H.ytRendererBehavior.logExplicitClick(H.data);if(!H.seekWithAnimationOnClick)return g.jumpTo(0);if(d.button!==0||d.shiftKey||d.altKey||d.metaKey||d.ctrlKey||_.vg(_.jh(d),H.hostElement,["BUTTON".toString()]))return g.return();d.stopPropagation();d.preventDefault();return H.data?g.yield(_.cI().getPlayerPromise(),3):g.return()}K=g.yieldResult;
p=(c=_.M(H.data.onTap,_.AP))==null?void 0:c.startTimeSeconds;p!==void 0&&K.seekToTimeWithAnimation(p*1E3,_.jG(H.data.title));_.VE(g)})};
_.G.computeLayout=function(d){return d};
_.G.computeIsHighlighted=function(d){return!!d};
_.G.computeCarouselType=function(d){return d};
_.G.hideModernCarousel=function(d){return this.modern&&this.hideThumbnail(d)};
_.G.hideThumbnail=function(d){return this.enableProblemWalkthrough&&d!==null&&d==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.G.onRepeatButtonToggle=function(d){var H=this;d.detail.toggled&&_.cI().getPlayerPromise().then(function(K){H.ytPlayerListenerBehavior.listenToPlayerEvents(K,H.JSC$14879_playerEvents);H.listeningToPlayer=!0})};
_.G.onLoopRangeChange=function(d){var H=_.Gn(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(H){var K=H.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",H.polymerController.data);if(K){var c=Number(K.endTimeMs);if(Number(K.startTimeMs)!==(d==null?void 0:d.startTimeMs)||c!==(d==null?void 0:d.endTimeMs))H.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.G.removePlayerListeners=function(){var d=this;this.listeningToPlayer&&_.cI().getPlayerPromise().then(function(H){d.ytPlayerListenerBehavior.unlistenFromPlayerEvents(H,d.JSC$14879_playerEvents);d.listeningToPlayer=!1})};
_.G.onActiveUpdate=function(d){this.active=d.detail.active};
DF.prototype.onColorPaletteChange=DF.prototype.onColorPaletteChange;DF.prototype.onDataChanged=DF.prototype.onDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],DF.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],DF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.jk.YtPlayerListenerBehavior),_.O("design:type",_.vn)],DF.prototype,"ytPlayerListenerBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],DF.prototype,"data",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],DF.prototype,"useCustomColors",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],DF.prototype,"active",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],DF.prototype,"shouldShowButtons",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.O("design:type",String)],DF.prototype,"layout",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.O("design:type",Object)],DF.prototype,"isHighlighted",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],DF.prototype,"useHighlightStyling",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],DF.prototype,"modern",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],DF.prototype,"enableProblemWalkthrough",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.O("design:type",String)],DF.prototype,"carouselType",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],DF.prototype,"useColorSampling",void 0);_.t([_.r(),_.O("design:type",Boolean)],DF.prototype,"seekWithAnimationOnClick",void 0);_.t([_.r(),_.O("design:type",Object)],DF.prototype,"customButtonProperties",void 0);
_.t([_.VP("#repeat-button"),_.O("design:type",HTMLElement)],DF.prototype,"repeatButton",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],DF.prototype,"onDataChanged",null);_.t([_.CK("data.lightColorPalette","data.darkColorPalette"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],DF.prototype,"onColorPaletteChange",null);_.t([_.Z({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],DF);
_.T(DF,"ytd-macro-markers-list-item-renderer",function(){if(uCg!==void 0)return uCg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return uCg=d},{mode:1});var Iy3;var rGd;var fJ=function(){var d=_.B.apply(this,arguments)||this;d.modernTypography=_.h("web_modern_typography");return d};
_.m(fJ,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],fJ.prototype,"ytRendererBehavior",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],fJ.prototype,"modernTypography",void 0);_.t([_.r(),_.O("design:type",Object)],fJ.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],fJ);
_.T(fJ,"ytd-title-and-button-list-header-renderer",function(){if(rGd!==void 0)return rGd;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-title-and-button-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-title-and-button-list-header-renderer"></yt-formatted-string>\n\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return rGd=d},{mode:1});var WX7;var B8U=new _.Av("BUTTON_RENDERER_WIZ_TOKEN"),zFN=new _.Av("BUTTON_RENDERER_TOKEN");_.AV=_.H1(function(d){var H=_.Kj().resolve(_.$p(B8U));if(H)return _.x(H,Object.assign({},d));var K=_.Kj().resolve(zFN);return K?_.x(x$F,null,function(){return _.x(vd,null,function(){var c,p,g,a,e,k,C,R,V,U,L,w;return void K(d.data(),{onButtonClickCallback:d.onButtonClickCallback,shouldShowIcons:(c=d.shouldShowIcons)==null?void 0:c.call(d),icon:(p=d.icon)==null?void 0:p.call(d),processAllEndpoints:(g=d.processAllEndpoints)==null?void 0:g.call(d),preventDefault:(a=d.preventDefault)==null?void 0:a.call(d),
stopPropagation:(e=d.stopPropagation)==null?void 0:e.call(d),disableButtonRendererClickHandling:(k=d.disableButtonRendererClickHandling)==null?void 0:k.call(d),className:(C=d.className)==null?void 0:C.call(d),buttonOverrides:(R=d.buttonOverrides)==null?void 0:R.call(d),forceModernIconButton:(V=d.forceModernIconButton)==null?void 0:V.call(d),isSubscribe:(U=d.isSubscribe)==null?void 0:U.call(d),alignByText:(L=d.alignByText)==null?void 0:L.call(d),forceDisabled:(w=d.forceDisabled)==null?void 0:w.call(d)})})}):
_.x(_.HE,null)},"ha");
_.AV.idomCompat=!0;var XsU=_.H1(function(d){var H=d.data,K=_.vj(d.useSquareAspectRatio,!1);return _.x("dismissed-mini-game-card-view-model",null,_.x(_.n,{cond:function(){var c,p;return(c=H().responseText)==null?void 0:(p=c.runs)==null?void 0:p.length},
then:function(){var c={};return _.x("div",{class:_.xM("yt-mini-game-card-view-model__dismissed-card",(c["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!K()},c["yt-mini-game-card-view-model--dismissed-square-card"]=K,c))},_.x("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.x(_.n,{cond:function(){return H().responseText.runs[0].text},
then:function(p){return _.x("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:p},p)}}),_.x(_.wB,{data:function(){return H().buttons}},{buttonRenderer:_.AV,
buttonViewModel:_.xk})))}}))},"ia");var tNl=_.H1(function(d){d=_.dg(d,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var H=d.data,K=d.useFullWidth,c=d.isDesktopWeb,p=d.addSearchResultTopMargin,g=function(){return H().layout},a=function(){return H().title},e=function(){return H().metadataText?H().metadataText:H().genre},k=function(){return H().channelName},C=function(){return H().image},R=function(){return H().colorPalette},V=function(){return H().actionButton},U=function(){return H().overflowButton},
L=function(){return H().avatar},w=function(){var Y={};
Y=_.xM("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(Y["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return c()},Y));
return _.x("div",{class:Y},_.x(JGM,{imageData:C,colorPalette:R}),_.x(s23,{onTap:function(){return H().onTap},
imageData:C,accessibilityText:function(){return H().accessibilityText},
overlayBadgeText:function(){return H().overlayBadgeText},
iconName:function(){return H().iconName},
unplayableInlinePlaybackIconName:function(){return H().unplayableInlinePlaybackIconName},
isDesktopWeb:c}),_.x(_.n,{cond:function(){return!c()},
then:function(){return _.x(_.HE,null,_.x(FXd,{layout:g,colorPalette:R,isDesktopWeb:c,overflowButton:U,avatar:L,onTap:function(){return H().onTap},
genre:e,title:a,channelName:k}),_.x(Zxl,{actionButton:V}))}}))},W=function(){var Y={};
Y=_.xM((Y["yt-mini-game-card-view-model--search-result-desktop"]=function(){return c()},Y["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!c()},Y["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return p()},Y));
return _.x("div",{class:Y},w(),_.x(T87,{description:function(){return H().description},
isDesktopWeb:c,title:a,genre:e,onTap:function(){return H().onTap},
actionButton:V,overflowButton:U,avatar:L,channelName:k}))},J=function(){var Y={};
Y=_.xM("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(Y["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return c()},Y["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return c()&&H().width===135},Y["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return c()},Y["yt-mini-game-card-view-model--big-metadata-font"]=function(){return H().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},Y["yt-mini-game-card-view-model--use-full-width"]=
function(){return K()},Y["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!V()},Y));
return _.x("div",{class:Y},_.x(Q2N,{colorPalette:R,isDesktopWeb:c,onTap:function(){return H().onTap},
accessibilityText:function(){return H().accessibilityText},
overlayBadgeText:function(){return H().overlayBadgeText},
iconName:function(){return H().iconName},
unplayableInlinePlaybackIconName:function(){return H().unplayableInlinePlaybackIconName},
actionButton:V,imageData:C}),_.x(FXd,{layout:g,colorPalette:R,isDesktopWeb:c,overflowButton:U,avatar:L,onTap:function(){return H().onTap},
genre:e,title:a,channelName:k}))},F=function(){var Y={};
Y=_.xM("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(Y["yt-mini-game-card-view-model--square-card-desktop"]=function(){return c()},Y["yt-mini-game-card-view-model--use-full-width"]=function(){return K()},Y));
return _.x("div",{class:Y},_.x(s23,{onTap:function(){return H().onTap},
imageData:C,accessibilityText:function(){return H().accessibilityText},
overlayBadgeText:function(){return H().overlayBadgeText},
iconName:function(){return H().iconName},
unplayableInlinePlaybackIconName:function(){return H().unplayableInlinePlaybackIconName},
isDesktopWeb:c}),_.x(FXd,{layout:g,colorPalette:R,isDesktopWeb:c,overflowButton:U,avatar:L,onTap:function(){return H().onTap},
genre:e,title:a,channelName:k}))};
return _.x("mini-game-card-view-model",{class:d.className},_.x(_.w9,null,_.x(_.MM,{when:function(){return g()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return J()}),_.x(_.MM,{when:function(){return g()==="MINI_APP_LAYOUT_SQUARE"}},function(){return F()}),_.x(_.MM,{when:function(){return g()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return W()})))},"ja");
tNl.idomCompat=!0;var Zxl=_.H1(function(d){var H=_.vj(d.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.x(_.wB,{data:d.actionButton},{buttonViewModel:function(K){return _.x("div",{class:H},_.x(_.xk,{data:K.data}))}})},"ka"),s23=_.H1(function(d){var H=d.onTap;
var K=d.imageData;var c=d.accessibilityText;var p=d.overlayBadgeText;var g=d.iconName;var a=d.unplayableInlinePlaybackIconName;d=d.isDesktopWeb;return _.x(_.Oj,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:H},_.x(_.d7,{data:K,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(c==null?void 0:c())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.x(YNB,{overlayBadgeText:p,iconName:g,unplayableInlinePlaybackIconName:a,isDesktopWeb:d}))},"la"),YNB=_.H1(function(d){var H=d.overlayBadgeText;
var K=d.iconName;var c=d.unplayableInlinePlaybackIconName;var p=d.isDesktopWeb;return _.x("div",{class:"yt-mini-game-card-view-model__badge-container"},_.x(_.n,{cond:K,then:function(g){return _.x("div",{class:"yt-mini-game-card-view-model__badge"},_.x("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.x(_.hu,{icon:g,className:"yt-mini-game-card-view-model__icon",size:12}),_.x("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},H)))}}),_.x(_.n,{cond:function(){return!K()&&
H()},
then:function(){return _.x("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},H)}}),_.x(_.n,{cond:function(){return c()&&p()},
then:function(){return _.x("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.x(_.hu,{icon:c,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ma"),JGM=_.H1(function(d){var H=d.colorPalette;
var K=d.imageData;var c=function(){return H().vibrantColorPalette?H().vibrantColorPalette.section2Color:H().sectionTwoColor};
return _.x(_.HE,null,_.x("div",{class:"yt-mini-game-card-view-model__background-base",style:_.UQ({"background-color":function(){return Sh(c(),"1")}})}),_.x("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.UQ({"background-image":function(){return"url("+K().sources[0].url+")"}})}),_.x("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.UQ({background:function(){return"linear-gradient(180deg,\n    "+Sh(c(),".8")+" 0%,\n    "+Sh(c(),".4")+" 25%,\n    "+Sh(H().vibrantColorPalette?H().vibrantColorPalette.section4Color:H().sectionFourColor,".8")+" 100%)"}})}))},"na"),FXd=_.H1(function(d){var H=d.layout;
var K=d.colorPalette;var c=d.overflowButton;var p=d.avatar;var g=d.onTap;var a=d.title;var e=d.channelName;var k=d.genre;var C=function(){var R;return H()!=="MINI_APP_LAYOUT_SQUARE"&&((R=K())==null?0:R.textPrimaryColor)?"color: "+Sh(K().textPrimaryColor,".7"):""};
return _.x("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.x(_.n,{cond:p,then:function(){return _.x("div",{class:"yt-mini-game-card-view-model__avatar"},_.x(_.wB,{data:p},{avatarViewModel:_.JV}))}}),_.x(_.Oj,{command:g,
className:"yt-mini-game-card-view-model__metadata-details"},_.x("h3",{class:"yt-mini-game-card-view-model__title",title:a},a),_.x(_.n,{cond:p,then:function(){return _.x("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.x("span",{class:"yt-mini-game-card-view-model__genre",title:e,style:C},e),_.x("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:C},k))},
else:function(){return _.x("span",{class:"yt-mini-game-card-view-model__genre",title:k},k)}})),_.x("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.x(_.wB,{data:c},{buttonViewModel:function(R){var V=R.data;
return _.x(_.xk,{data:function(){return Object.assign({},V(),{customFontColor:H()==="MINI_APP_LAYOUT_SINGLETON"?V().customFontColor:void 0})}})}})))},"oa"),Q2N=_.H1(function(d){var H=d.colorPalette;
var K=d.isDesktopWeb;var c=d.onTap;var p=d.accessibilityText;var g=d.overlayBadgeText;var a=d.iconName;var e=d.unplayableInlinePlaybackIconName;var k=d.actionButton;d=d.imageData;return _.x("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.x(JGM,{imageData:d,colorPalette:H}),_.x(s23,{onTap:c,imageData:d,accessibilityText:p,overlayBadgeText:g,iconName:a,unplayableInlinePlaybackIconName:e,isDesktopWeb:K}),_.x(_.n,{cond:function(){return k==null?void 0:k()},
then:function(){return _.x(Zxl,{actionButton:k})}}))},"pa"),T87=_.H1(function(d){var H=d.description;
var K=d.isDesktopWeb;var c=d.title;var p=d.genre;var g=d.onTap;var a=d.actionButton;var e=d.overflowButton;var k=d.avatar;d=d.channelName;var C={};C=_.xM("yt-mini-game-card-view-model--search-result-metadata-wrapper",(C["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=K,C["yt-mini-game-card-view-model--show-unplayable-on-hover"]=K,C["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!K()},C));
var R={};R=_.xM("yt-mini-game-card-view-model__search-result-info-row",(R["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!K()},R));
return _.x("div",{class:C},_.x("div",{class:R},_.x(_.Oj,{command:g,className:"yt-mini-game-card-view-model__metadata-details"},_.x("h3",{class:"yt-mini-game-card-view-model__title",title:c},c),_.x("span",{class:"yt-mini-game-card-view-model__genre",title:p},p)),_.x(Zxl,{actionButton:a,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.x("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.x(_.wB,{data:e},{buttonViewModel:_.xk}))),_.x("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.x("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.x("div",{class:"yt-mini-game-card-view-model__avatar"},_.x(_.wB,{data:k},{avatarViewModel:function(V){var U=V.data;return _.x(_.JV,{data:function(){return Object.assign({},U(),{avatarImageSize:K()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.x(_.Oj,{command:g,
className:"yt-mini-game-card-view-model__description"},_.x("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},d)),_.x(_.Oj,{command:g,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.x("div",null)))),_.x(_.n,{cond:K,then:function(){return _.x(_.Oj,{command:g,className:"yt-mini-game-card-view-model__description"},H)}}))},"qa");_.iV(tNl,"mini-game-card-view-model",{props:{data:_.dl,className:_.dl,useFullWidth:_.dl,isDesktopWeb:_.dl,addSearchResultTopMargin:_.dl}});_.iV(XsU,"dismissed-mini-game-card-view-model",{props:{data:_.dl,useSquareAspectRatio:_.dl}});var jW=function(){var d=_.B.apply(this,arguments)||this;d.isSearch=!1;d.isRichGrid=!1;return d};
_.m(jW,_.B);_.G=jW.prototype;_.G.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.G.dismissibleItemOnYtServiceRequestSent=function(d,H){H.actions&&this.dismissibleItemProcessActions(d,H.actions)};
_.G.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.G.dataChanged=function(){this.dismissibleItemReset()};
_.G.dismissibleItemProcessActions=function(d,H){for(var K=0;K<H.length;K++){var c=H[K];_.M(c,_.Mq)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.M(c,_.Mq)),d.stopPropagation())}};
_.G.dismissibleItemHandleReplaceEnclosingAction=function(d){this.dismissedRenderer=d.item;this.isDismissed=!0};
_.H3.Object.defineProperties(jW.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var d;return!!this.data&&!((d=this.dismissedRenderer)==null?0:d.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.dismissedRenderer)==null||!d.notificationMultiActionRenderer)}}});
jW.prototype.dataChanged=jW.prototype.dataChanged;jW.prototype.dismissibleItemOnRequestSent=jW.prototype.dismissibleItemOnRequestSent;jW.prototype.dismissibleItemOnYtServiceRequestSent=jW.prototype.dismissibleItemOnYtServiceRequestSent;_.t([_.r(),_.O("design:type",Object)],jW.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],jW.prototype,"isSearch",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],jW.prototype,"isDismissed",void 0);
_.t([_.r(),_.O("design:type",Object)],jW.prototype,"dismissedRenderer",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],jW.prototype,"isRichGrid",void 0);_.t([_.I("data.layout"),_.O("design:type",Object),_.O("design:paramtypes",[])],jW.prototype,"useSquareAspectRatio",null);_.t([_.I("data","dismissedRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],jW.prototype,"showCard",null);
_.t([_.I("data","dismissedRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],jW.prototype,"showDismissed",null);_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],jW.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.t([_.nK("yt-service-request-sent-button-renderer"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],jW.prototype,"dismissibleItemOnRequestSent",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jW.prototype,"dataChanged",null);_.t([_.ZV({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],jW);
_.T(jW,"ytd-mini-game-card-view-model",function(){if(WX7!==void 0)return WX7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return WX7=d},{mode:_.qk("kevlar_poly_si_batch_j081")?1:2});var Ox3;var SNM;var v$=function(){return _.$K.apply(this,arguments)||this};
_.m(v$,_.$K);v$.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
v$.prototype.getContinuationUrl=function(d){var H={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(H.itct=this.data.clickTrackingParams);return _.f6(d,H)};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],v$.prototype,"data",void 0);_.t([_.ZV({is:"yt-reload-continuation",noInjection:!0})],v$);var Eyd;var yGC;var d$=function(){var d=_.B.apply(this,arguments)||this;d.notificationData={};return d};
_.m(d$,_.B);_.G=d$.prototype;_.G.isMenuExpanded=function(d){return d&&d.length<=1?"undefined":"false"};
_.G.dataChanged_=function(){this.selected=void 0;var d=this.computeSelectedIndex_(this.data);d>=0&&(this.selected=d);d=this.data&&this.data.length>1;_.qr(this.hostElement,"has-items",d);_.Gn(this.hostElement).querySelector("#label").tabIndex=d?0:-1};
_.G.onDropdownOpen=function(){var d=_.Fj();if(this.parentTrackingParams&&this.data){var H=_.P1(this.parentTrackingParams);this.data.forEach(function(K){d&&H&&K.trackingParams&&(K=_.P1(K.trackingParams),_.Ea(d,H,K),_.No(d,[K]))})}else this.parentTrackingParams||_.Jf(new _.m1("No parent tracking params passed in for yt-dropdown-menu."))};
_.G.hasNotification=function(d){var H;if(d.targetId&&((H=this.notificationData)==null?0:H.targetId)){var K;return d.targetId===((K=this.notificationData)==null?void 0:K.targetId)}};
_.G.computeSelectedIndex_=function(d){if(d)for(var H=0,K=d.length;H<K;H++)if(d[H].selected)return H;return-1};
_.G.computeLabel_=function(d){return this.data&&d!=void 0?this.data[d].title:""};
_.G.computeShowIcon_=function(d,H){return!H&&!!d};
_.G.computeVerticalOffset_=function(d){return d?36:0};
_.G.computeEndpoint_=function(d){return d.endpoint||d.navigationEndpoint};
_.G.onLabelClick_=function(d){this.data&&this.data.length<=1?d.stopPropagation():this.menuExpanded="true"};
_.G.onIronActivate_=function(d){d=d.detail.item;var H=_.Gn(this.hostElement).querySelector("#repeat").itemForElement(d);if(H&&H.trackingParams){var K=_.Fj(),c=_.P1(H.trackingParams);K&&_.fo(K,c)}if(H&&H.serviceEndpoint)_.h("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(H.serviceEndpoint):_.aF(this.hostElement,[H.serviceEndpoint]),_.GT(this.hostElement,"yt-playlist-reloading");else a:{if((H=d.querySelector("yt-supported-renderers"))&&
(H=H.rendererElement)&&H.is=="yt-reload-continuation"){H.trigger();break a}(d=d.querySelector("yt-reload-continuation"))&&d.trigger()}};
_.G.onTap_=function(d){d.preventDefault()};
_.G.onItemTap_=function(d){this.ytEndpointBehavior.onEndpointTap_(d)};
_.G.onLinkFocus_=function(d){try{var H=d.target}catch(c){}if(H){var K=H.querySelector("tp-yt-paper-item");K&&_.yP(this,"focus",function(){K.focus()})}};
_.G.onMenuClose_=function(){this.menuExpanded="false"};
_.G.isLabelIconActive_=function(d){return d==="true"};
_.G.computeHasSubtitle_=function(d){return!!d};
_.G.computeHrefForItem_=function(d){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(d))};
_.G.updateSelectedFromBinding=function(d){this.selected=d.detail.value};
_.H3.Object.defineProperties(d$.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
d$.prototype.onMenuClose_=d$.prototype.onMenuClose_;d$.prototype.onTap_=d$.prototype.onTap_;d$.prototype.onIronActivate_=d$.prototype.onIronActivate_;d$.prototype.onDropdownOpen=d$.prototype.onDropdownOpen;d$.prototype.dataChanged_=d$.prototype.dataChanged_;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],d$.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.VV.YtEndpointBehavior),_.O("design:type",Object)],d$.prototype,"ytEndpointBehavior",void 0);
_.t([_.r(),_.O("design:type",Array)],d$.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],d$.prototype,"parentTrackingParams",void 0);_.t([_.r(),_.O("design:type",Object)],d$.prototype,"selected",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],d$.prototype,"useLabel",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],d$.prototype,"useComputedAriaLabel",void 0);_.t([_.r(),_.O("design:type",String)],d$.prototype,"icon",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],d$.prototype,"iconLabel",void 0);_.t([_.r(),_.O("design:type",String)],d$.prototype,"ariaLabel",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],d$.prototype,"disabled",void 0);_.t([_.r({computed:"isMenuExpanded(data)"}),_.O("design:type",String)],d$.prototype,"menuExpanded",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],d$.prototype,"closeOnActivate",void 0);
_.t([_.r({reflectToAttribute:!0,value:_.h("web_modern_buttons")}),_.O("design:type",Boolean)],d$.prototype,"modernButtons",void 0);_.t([_.r(),_.O("design:type",Object)],d$.prototype,"notificationData",void 0);_.t([_.I("ariaLabel, selected"),_.r(),_.O("design:type",String),_.O("design:paramtypes",[])],d$.prototype,"computedAriaLabel",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],d$.prototype,"dataChanged_",null);
_.t([_.nK("paper-dropdown-open"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],d$.prototype,"onDropdownOpen",null);_.t([_.nK("iron-activate"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],d$.prototype,"onIronActivate_",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],d$.prototype,"onTap_",null);
_.t([_.nK("iron-overlay-closed"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],d$.prototype,"onMenuClose_",null);_.t([_.ZV({is:"yt-dropdown-menu",disableElementRegistration:!0})],d$);
_.T(d$,"yt-dropdown-menu",function(){if(yGC===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;Eyd===void 0&&(Eyd=document.createElement("template"));var c=Eyd;K.call(H,c.content.cloneNode(!0),d.content.firstChild);yGC=d}d=yGC;return d},{mode:2});var H2=function(){var d=_.B.apply(this,arguments)||this;d.hasNotification=!1;return d};
_.m(H2,_.B);H2.prototype.computeId=function(d){return d};
H2.prototype.computeHorizontalAlign=function(d){return d?"right":"left"};
H2.prototype.computeAccessibilityLabel=function(d){var H,K;return((H=d.accessibility)==null?void 0:(K=H.accessibilityData)==null?void 0:K.label)||null};
H2.prototype.notificationDataChanged=function(){var d;this.hasNotification=!!this.notificationData&&!((d=this.data)==null?0:d.icon)};
H2.prototype.notificationDataChanged=H2.prototype.notificationDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],H2.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Os.YtLiveChatTooltipTargetingBehavior),_.O("design:type",Object)],H2.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],H2.prototype,"data",void 0);_.t([_.r({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.O("design:type",String)],H2.prototype,"id",void 0);
_.t([_.r({value:!1}),_.O("design:type",Boolean)],H2.prototype,"isRightAligned",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],H2.prototype,"disabled",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],H2.prototype,"closeOnActivate",void 0);_.t([_.r(),_.O("design:type",Object)],H2.prototype,"notificationData",void 0);_.t([_.r(),_.O("design:type",Object)],H2.prototype,"hasNotification",void 0);
_.t([_.r({value:!1}),_.O("design:type",Boolean)],H2.prototype,"useComputedAriaLabel",void 0);_.t([_.CK("notificationData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],H2.prototype,"notificationDataChanged",null);_.t([_.ZV({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],H2);
_.T(H2,"yt-sort-filter-sub-menu-renderer",function(){if(SNM===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;Ox3===void 0&&(Ox3=document.createElement("template"));var c=Ox3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);SNM=d}d=SNM;return d},{mode:2});_.p5(mnM);var bxg=_.H1(function(d){var H=d.data;var K=_.n7(function(){var g=H().onTap;(g=_.M(g,_.ZX))&&_.Kj().resolve(_.cb).resolveCommand(g);return!1}),c=function(){return{sources:[{url:H().thumbnailUrl,
width:120,height:90}]}},p=function(){return H().rating&&H().ratingA11yLabel&&H().reviewsCount&&H().reviewsCountA11yLabel};
return _.x("place-data-view-model",null,_.x(_.n,{cond:function(){return H().placeName&&H().placeCategory},
then:function(){return _.x("div",{class:"yt-spec-place-data-view-model-shape","on:click":K},_.x(_.d7,{data:c,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.x(_.Oj,{className:"yt-spec-place-data-view-model-shape__place-link",command:function(){return H().onTap}},_.x("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:function(){return H().placeName}},function(){return H().placeName})),_.x("div",{class:"yt-spec-place-data-view-model-shape__metadata"},_.x(_.n,{cond:p,
then:function(){return _.x("div",{class:_.xM("yt-spec-place-data-view-model-shape__metadata-row","yt-spec-place-data-view-model-shape__metadata-row-ratings")},_.x("span",{class:"score",title:function(){return H().ratingA11yLabel}},function(){return H().rating}),_.x("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.x(_.hu,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.x("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:function(){return H().reviewsCountA11yLabel}},function(){return H().reviewsCount}))},
else:function(){return _.x("div",{class:_.xM("yt-spec-place-data-view-model-shape__metadata-row","yt-spec-place-data-view-model-shape__metadata-row-ratings")})}}),_.x("div",{class:_.xM("yt-spec-place-data-view-model-shape__metadata-row","yt-spec-place-data-view-model-shape__metadata-row-categories")},_.x("span",{class:"category",
title:function(){return H().placeCategory}},function(){return H().placeCategory}))))}}))},"ra"),N8B=_.h("web_enable_sink_place_data_view_model_ks")?_.Rd(mnM):bxg;
bxg.idomCompat=!0;_.iV(N8B,"place-data-view-model",{props:{data:_.dl}});var Dn6=new _.Av("INLINE_PLAYBACK_HOOK_TOKEN");var fyS=function(d){this.setActiveSlideIndex=d;this.jobIds=[];this.isSlideshowPlaying=!1},vy6=function(d,H){d.isSlideshowPlaying||(d.isSlideshowPlaying=!0,AG7(d),j2B(d,H,0))},AG7=function(d){_.lV(_.Xp,function(){d.setActiveSlideIndex(0)},1)},j2B=function(d,H,K){d.jobIds.push(_.lV(_.Xp,function(){var c=K<H-1?K+1:0;
d.setActiveSlideIndex(c);j2B(d,H,c)},1800))};var d9X=new _.Av("IMAGE_ON_LOAD_HANDLER_TOKEN");var Hu3=_.H1(function(d){return _.x("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.x(_.n,{cond:function(){var H;return(H=d.data())==null?void 0:H.thumbnail},
then:function(H){return _.x(_.d7,{data:H,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"sa");_.$9l=_.H1(function(d){var H=d.data;var K=d.lockupExperiments;d={};return _.x("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.x("div",{class:_.xM("ytThumbnailOverlayButtonViewModelButton",(d.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var c;return K&&((c=K())==null?void 0:c.useLegacySizedIconButton)},d))},_.x(_.wB,{data:function(){return H().overlayButton}},{buttonViewModel:function(c){return _.x(_.xk,{data:c.data,
buttonOverrides:function(){var p;return K&&((p=K())==null?0:p.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"ta");
_.$9l.idomCompat=!0;var K0A=_.H1(function(d){return _.x("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.n7(function(H){H.preventDefault();return!1})},_.x(_.wB,{data:function(){return d.data().buttons}},{toggleButtonViewModel:function(H){return _.x("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.x(_.zm,{data:H.data}))}}))},"ua");
K0A.idomCompat=!0;var cr7=_.H1(function(d){var H=function(){var K;return((K=_.M(d.data().rendererContext,_.hs))==null?void 0:K.label)||""};
return _.x("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.x(_.n,{cond:function(){return d.data().image},
then:function(){return _.x("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.x(_.d7,{data:function(){return d.data().image},
alt:H}))}}),_.x(_.n,{cond:function(){return d.data().text},
then:function(){return _.x("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return d.data().text})}}))},"va");_.$A=_.H1(function(d){var H=[],K=function(){var U,L;return b9Y((U=d.width)==null?void 0:U.call(d),(L=d.height)==null?void 0:L.call(d))},c=_.Kj().resolve(_.$p(d9X)),p=_.Af("yt-thumbnail-view-model",function(){H.push("elRef.value set");
var U;(U=d.playbackRef)==null||U.call(d,{thumbnailElRef:p,thumbnail:d.data().image,thumbnailOverlays:d.data().overlays,thumbnailSize:K()})});
_.WE(function(){H.push("onInit");_.Pk(function(){H.push("onCleanup")})});
var g=_.Tv(Pxi),a=function(){var U,L;return(L=(U=d.aspectRatio)==null?void 0:U.call(d))!=null?L:0},e=function(){return(d.data().image?_.hBi(d.data().image):a())<=1&&a()===0},k=function(){return e()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},C=function(){p.value||_.Jf(new _.m1("Thumbnail elRef.value is null",H.join("\n")));
c&&p.value&&c(p.value)},R=function(){var U,L;
return((U=d.hovered)==null?void 0:U.call(d))&&K()!=="large"&&((L=d.data().overlays)==null?void 0:L.some(function(w){return _.M(w,ECM)}))},V={};
return _.x("yt-thumbnail-view-model",{class:_.xM("yt-thumbnail-view-model",d.className,function(){return rGY(a())},function(){var U,L;
a:{var w=K(),W=(U=d.disableRounding)==null?void 0:U.call(d);U=(L=d.isClip)==null?void 0:L.call(d);if(!W&&!U)switch(w){case "large":L="yt-thumbnail-view-model--large";break a;case "small":L="yt-thumbnail-view-model--small";break a;default:L="yt-thumbnail-view-model--medium";break a}L=void 0}return L},(V["yt-thumbnail-view-model--cinematic"]=e,V)),
style:_.UQ({"background-color":function(){var U,L=e()?(U=d.data().backgroundColor)==null?void 0:U.lightTheme:void 0;return L?Sh(L,"1"):void 0}}),
el:p},_.x(_.n,{cond:e,then:function(){return _.x("div",{class:"yt-thumbnail-view-model__blurred-image"},_.x(_.d7,{data:function(){return d.data().image},
alt:"",contentMode:k,targetWidth:d.width,onload:C}))}}),_.x("div",{class:"yt-thumbnail-view-model__image"},_.x(_.d7,{data:function(){return d.data().image},
alt:"",contentMode:k,targetWidth:d.width,onload:C}),null),_.x(_.wB,{data:function(){return R()?void 0:d.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:oy7,thumbnailOverlayBadgeViewModel:function(U){return _.x(qNB,{data:U.data,thumbnailSize:K,isClip:d.isClip})},
thumbnailBottomOverlayViewModel:function(U){return _.x(psA,{data:U.data,thumbnailSize:K,isClip:d.isClip})},
thumbnailOverlayFullViewModel:cr7,thumbnailOverlayButtonViewModel:function(U){return _.x(_.$9l,{data:U.data,lockupExperiments:d.lockupExperiments})}}),_.x(_.wB,{data:function(){var U;
return((U=d.hovered)==null?0:U.call(d))?d.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(U){return _.x(Xk,{data:U.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:K0A}),_.x(_.wB,{data:function(){var U;return((U=d.hovered)==null?0:U.call(d))&&g()?d.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:Hu3}),_.x(_.n,{cond:d.isClip,then:function(){return _.x("div",{class:"yt-pinking"},_.x("svg",{class:"yt-pinking__pinking-left"},_.x("defs",null,_.x("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.x("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.x("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.x("svg",{class:"yt-pinking__pinking-right"},_.x("defs",null,_.x("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.x("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.x("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"wa");
_.$A.idomCompat={callbacks:{playbackRef:!0}};var pcA=_.H1(function(d){var H=_.q(_.GO(-1,void 0,"IOLZ0b")),K=H.next().value,c=H.next().value;_.WE(function(){var p=new fyS(c);vy6(p,d.data().thumbnails.length);_.Pk(function(){if(p.isSlideshowPlaying){p.isSlideshowPlaying=!1;for(var g=p.jobIds,a=0,e=g.length;a<e;a++)_.Xp.cancelJob(g[a]);p.jobIds.length=0}})});
return _.x("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.x(_.wB,{data:function(){return d.data().thumbnails}},{thumbnailViewModel:function(p,g){return _.x("div",{class:function(){var a=!d.data().primaryThumbnail,e=g(),k=K(),C=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
a&&e===0&&C.push("yt-collection-thumbnail-slideshow--first-slide");e<=k&&C.push("yt-collection-thumbnail-slideshow--show-slide");return C.join(" ")}},_.x(_.$A,{data:p.data,
disableRounding:d.disableRounding}))}}))},"xa");
pcA.idomCompat=!0;var WXM=new _.Av("DWELL_DETECTOR_REGISTRY_TOKEN");var iu3=_.H1(function(d){var H=B8f(d.triggeringElement),K=function(){return!!d.data().primaryThumbnail},c=function(){var g,a=(g=d.data())==null?void 0:g.maxHeight,e;
g=(e=d.maxHeight)==null?void 0:e.call(d);return a!=null&&g!=null?Math.min(a,g):g!=null?g:a},p=function(){var g=c();
if(g){var a;if(K()&&(a=d.includeStackHeight)!=null&&a.call(d)){var e;a=((e=d.doubleStack)==null?0:e.call(d))?8:4}else a=0;g=g-a-1;if(!(g<0)){e=Math;a=e.ceil;var k,C;var R=yUL((C=(k=d.aspectRatio)==null?void 0:k.call(d))!=null?C:0);return a.call(e,g*R)}}};
return _.x("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true",style:_.UQ({height:function(){return c()?c()+"px":void 0},
width:function(){return p()?p()+"px":void 0}})},_.x(g9N,{stackEnabled:K,
thumbnailSize:function(){var g,a;return b9Y((g=d.width)==null?void 0:g.call(d),(a=d.height)==null?void 0:a.call(d))},
doubleStack:d.doubleStack,stackColor:function(){return d.data().stackColor},
includeStackHeight:d.includeStackHeight},_.x(_.wB,{data:function(){return d.data().primaryThumbnail}},{thumbnailViewModel:function(g){var a={};
return _.x(_.$A,{data:g.data,width:d.width,height:d.height,aspectRatio:d.aspectRatio,disableRounding:d.disableRounding,className:_.xM((a["yt-collection-thumbnail-view-model--has-stacks"]=K,a)),hovered:d.hovered,playbackRef:d.playbackRef})}}),_.x(_.n,{cond:function(){var g;
return H()&&((g=d.data().thumbnails)==null?void 0:g.length)},
then:function(){return _.x("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.x(pcA,{data:d.data,disableRounding:function(){return!K()}}))}})))},"ya");
iu3.idomCompat={callbacks:{playbackRef:!0}};
var g9N=_.H1(function(d){var H=d.children;var K=d.stackEnabled;var c=d.thumbnailSize;var p=d.doubleStack;var g=d.stackColor;var a=d.includeStackHeight;var e,k=(e=_.Kj().resolve(_.$p(_.fM)))==null?void 0:e();return _.x(_.n,{cond:K,then:function(){return _.x(JbM,{data:function(){var C,R;return{experimentEnabled:!0,thumbnailSize:c(),doubleStack:p==null?void 0:p(),color:k?g==null?void 0:(C=g())==null?void 0:C.darkTheme:g==null?void 0:(R=g())==null?void 0:R.lightTheme,enableResponsiveMode:!1,includeStackHeight:a==
null?void 0:a()}}},H)},
else:function(){return H}})},"za");var GyX=new _.Av("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var c2;_.KQ={calledOnce:!0,state:"visible"};c2={calledOnce:!0,state:"hidden"};_.pQ=_.H1(function(d){var H=d.data;var K=d.customCommandResolver;var c=d.className;var p=d.delayedClassName;var g=d.animationEntityKey;var a=d.isCompactWidth;d=_.q(_.GO(!1,void 0,"aSkCmb"));var e=d.next().value,k=d.next().value,C=_.vj(g,""),R=_.Uj(TRF,C),V=function(){var V4,Mf;return(Mf=(V4=R())==null?void 0:V4.value)!=null?Mf:!1},U=function(){_.jO(_.PI("booleanEntity",C(),{key:C(),
value:!0}));E=void 0};
g=_.q(_.V2(V));var L=g.next().value,w=g.next().value;g=_.q(_.V2(V));var W=g.next().value,J=g.next().value;g=_.q(_.V2(function(){var V4;return V()?(V4=H().styleTransitionConfig)==null?void 0:V4.destinationStyle:void 0}));
var F=g.next().value,Y=g.next().value,A=function(){var V4=Object.assign({},H(),F()&&{style:F()});var Mf,LF,YY=V4.label,FM=(Mf=V4.interaction)==null?void 0:(LF=Mf.accessibility)==null?void 0:LF.label;Mf=V4.iconImage?V4.label&&V4.label.content?V4.iconLeading?"leading":"trailing":"icon-only":void 0;V4={formattedButtonText:YY,accessibilityLabel:FM,style:s25(V4.style),type:FXY(V4.style),state:"active",size:JG1(V4.size),iconPosition:Mf,disabled:!1,aTagConfig:Xsf(V4,K)};_.h("enable_desktop_vdcbg_components")&&
(V4.focused=e());return V4},E;
g=_.cV({visibilityCallback:function(V4){var Mf,LF=(Mf=H().interaction)==null?void 0:Mf.onFirstVisible;V4&&LF&&_.EG(LF)},
showOption:_.KQ});var N=function(){return dI1(A(),!!H().iconImage)};
d={};c=_.xM(function(){return"ytwAdButtonViewModelHost"},function(){return H().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var V4=!!H().delayedAppearanceConfig,Mf=L();
return V4?Mf?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var V4=!!H().delayedAppearanceConfig,Mf=W();
return V4?Mf?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!H().delayedAppearanceConfig||L()?p==null?void 0:p():""},(d.ytwAdButtonViewModelHostCompactWidth=function(){return a==null?void 0:a()},d),c!=null?c:"");
var y=function(){var V4,Mf=(V4=H().delayedAppearanceConfig)==null?void 0:V4.delayedInvisibleSeconds;Mf&&(E=_.rB(_.Xp,function(){w(!0);v()},Mf*1E3))},v=function(){var V4,Mf=(V4=H().delayedAppearanceConfig)==null?void 0:V4.delayedVisibleSeconds;
Mf&&(E=_.rB(_.Xp,function(){J(!0);el()},Mf*1E3))},el=function(){var V4,Mf=(V4=H().styleTransitionConfig)==null?void 0:V4.styleTransitionSeconds,LF,YY=(LF=H().styleTransitionConfig)==null?void 0:LF.destinationStyle;
Mf&&YY?E=_.rB(_.Xp,function(){Y(YY);U()},Mf*1E3):U()},l1=function(){var V4;
return(V4=H().delayedAppearanceConfig)==null?void 0:V4.transitionDurationSeconds};
_.WE(function(){y()});
_.Pk(function(){E&&_.Xp.cancelJob(E)});
return _.x("ad-button-view-model",{"on:focusin":_.n7(_.h("enable_desktop_vdcbg_components")?function(){var V4=_.Kj().resolve(_.$p(_.qZ));V4&&k(V4.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.n7(_.h("enable_desktop_vdcbg_components")?function(){k(!1);return!1}:void 0),
class:c,el:_.$M(g),style:_.UQ({"transition-duration":function(){return l1()?l1()+"s":void 0}})},_.x(_.n,{cond:A,
then:function(){return _.x(_.kk,{data:A,icon:function(){return _.x(_.n,{cond:function(){return H().iconImage},
then:function(V4){return _.x(_.d7,{data:V4,alt:"",targetWidth:N,targetHeight:N,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Aa");var o9l=_.H1(function(d){var H=d.data;d=function(){return H().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var K=_.cV({visibilityCallback:function(g){var a,e=(a=H().interaction)==null?void 0:a.onFirstVisible;g&&e&&_.EG(e)},
showOption:_.KQ}),c={},p={};return _.x("ad-button-group-view-model",{class:_.xM("ytwAdButtonGroupViewModelHost",(c.ytwAdButtonGroupViewModelHostCompactWidth=d,c)),el:_.$M(K)},_.x("div",{class:_.xM("ytwAdButtonGroupViewModelHostSecondaryButton",(p.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=d,p))},_.x(_.wB,{data:function(){return H().secondaryAdButton}},{adButtonViewModel:function(g){return _.x(_.pQ,{data:g.data})}})),_.x("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.x(_.wB,
{data:function(){return H().primaryAdButton}},{adButtonViewModel:function(g){return _.x(_.pQ,{data:g.data})}})))},"Ba");var qWS=_.H1(function(d){var H=function(){var K;return((K=d.data())==null?void 0:K.answers)||[]};
return _.x("yt-survey-icons",{class:"ytSurveyIconsHost"},_.x("div",{class:"ytSurveyIconsHeader"},_.x("div",{class:"ytSurveyIconsTitle"},function(){var K;return(K=d.data())==null?void 0:K.text}),_.x("div",null,_.x(_.kk,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var K;(K=d.onDismiss)==null||K.call(d)}}},
iconName:"DISMISSAL"}))),_.x("div",null,_.x("div",{class:"ytSurveyIconsAnswers"},_.x(_.L6,{each:function(){return H()},
keyBy:"INDEX"},function(K,c){return _.x("div",null,_.x(_.kk,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var p;(p=d.onSelect)==null||p.call(d,K(),c)}}},
icon:function(){return _.x(_.hu,{icon:function(){var p,g;return(p=K())==null?void 0:(g=p.icon)==null?void 0:g.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.x("div",{class:"ytSurveyIconsAnswersText"},_.x("div",null,function(){return H().length?H()[0].text:""}),_.x("div",null,function(){return H().length?H()[H().length-1].text:""}))))},"Ca");var a33=_.H1(function(d){var H=_.$M(_.Tx(function(){var k;return(k=d.data())==null?void 0:k.rendererContext},void 0,void 0,void 0,!0)),K=_.q(_.GO(!1,void 0,"YxWRNc")),c=K.next().value,p=K.next().value,g=_.Uj(PuE,function(){var k;
return(k=d.data().keys)==null?void 0:k.surveyEntityKey}),a=_.Uj(uRh,function(){var k;
return(k=d.data().keys)==null?void 0:k.surveyStateEntityKey});
_.fn("ytd-slimline-survey-show-action",function(){p(!1)});
var e=function(){var k,C;var R=(k=a())==null?void 0:(C=k.questionStack)==null?void 0:C[0];if(R!==void 0){var V,U;return(V=g())==null?void 0:(U=V.questions)==null?void 0:U[R]}};
K={};return _.x("yt-slimline-survey-view-model",{el:H,class:_.xM("ytSlimlineSurveyViewModelHost",(K.ytSlimlineSurveyViewModelCollapsed=function(){return c()},K))},_.x("div",{class:"ytSlimlineSurveyViewModelContainer"},_.x(_.n,{cond:function(){var k;
return((k=e())==null?void 0:k.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.x(qWS,{data:function(){return e()},
onSelect:function(k,C){var R,V;return _.l(function(U){p(!0);if(V=(R=d.data())==null?void 0:R.onSelectRating)_.EG(V),_.jO(eUS(C));_.VE(U)})},
onDismiss:function(){p(!0);var k;var C=(k=g())==null?void 0:k.dismissalFeedbackToken;k=C?{feedbackEndpoint:{feedbackToken:C}}:void 0;k&&_.Yv(k,{form:{element:H.value}})}})}})))},"Da");var l3d=_.H1(function(d){return _.x("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.x(_.wB,{data:function(){var H;return(H=d.data())==null?void 0:H.attachments}},{flexibleActionsViewModel:function(H){return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.x(_.Fd,{data:H.data,
layout:function(){var K;return((K=d.lockupStyle())==null?void 0:K.arrangement)===1?0:1},
justifyContentOverride:function(){var K;return((K=d.lockupStyle())==null?void 0:K.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(H){return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.x(a33,{data:H.data}))},
expandableMetadataViewModel:function(H){H=H.data;var K;return _.x("div",{class:_.xM("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(K=_.Kj().resolve(_.$p(GyX)))==null?void 0:K({data:H}))},
adButtonGroupViewModel:function(H){return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.x(o9l,{data:H.data}))},
adButtonViewModel:function(H){return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.x(_.pQ,{data:H.data,isCompactWidth:!0}))}}))},"Ea");var OxL=_.iT("rich_grid_min_item_width",310),tN4=_.iT("rich_grid_max_item_width",500);var esl=_.H1(function(d){var H=d.data;return _.x("br-nz-badge-shape",{class:_.xM(function(){return AGM(H().brNzRatingBadgeType)}),
role:function(){return H().accessibilityText?"img":void 0},
"aria-label":function(){return H().accessibilityText}},function(){var K;
return(K=H())==null?void 0:K.text})},"Fa");_.g$=_.H1(function(d){var H=function(){var K=d.data(),c,p;if(K){var g=!((c=d.workaroundShortsIsThumbnailBadge)==null||!c.call(d));c=(p=d.modern)==null?void 0:p.call(d);var a;a:switch(K.badgeStyle){case "BADGE_OVERLAY":p=!0;break a;default:p=!1}K={type:g?17:j2F(K.badgeStyle),brNzRatingBadgeType:vyX(K.badgeStyle),text:K.badgeText,icon:K.iconName,isOverlay:p,modern:c||_.h("web_modern_badge_view_model"),accessibilityText:K.accessibilityLabel||((a=_.M(K.rendererContext,_.hs))==null?void 0:a.label)}}else K=
void 0;return K};
return _.x("yt-badge-view-model",{class:_.xM("yt-badge-view-model-wiz",d.class)},_.x(_.w9,null,_.x(_.MM,{when:function(){var K;return!((K=H())==null||!K.brNzRatingBadgeType)}},function(){return _.x(esl,{data:function(){return H()}})}),_.x(_.MM,{when:function(){return!!H()&&!H().brNzRatingBadgeType}},function(){return _.x(_.tI,{data:function(){return H()}})})))},"Ga");
_.g$.idomCompat=!0;var HuL,d9F;HuL=16/9;d9F=2/3;_.iN=_.H1(function(d){var H=d.data;var K=d.className;var c=d.imageSizeConfig;var p=d.notifyOnLoaded;var g=function(){return H().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},a=function(){var U;
return _.Zb((U=H())==null?void 0:U.rendererContext)};
d={};d=(d["yt-content-preview-image-view-model-wiz"]=!0,d["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return g()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},d["yt-content-preview-image-view-model-wiz--tappable"]=function(){return a()},d);
var e=function(){var U,L;return(L=(U=_.M(H().rendererContext,_.hs))==null?void 0:U.label)!=null?L:""},k=function(){return K0h(H())},C=function(){var U=$94(g(),H().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",c==null?void 0:c(),crM(k()),H().layoutWidth,H().layoutHeight),L=Object.assign({},U);
U.width&&(L.width=Math.round(U.width));U.height&&(L.height=Math.round(U.height));U.maxWidth&&(L.maxWidth=Math.round(U.maxWidth));U.maxHeight&&(L.maxHeight=Math.round(U.maxHeight));return L},R=_.ey(function(){return C().height},void 0,"Cn10Ce"),V=_.ey(function(){return C().width},void 0,"laoove");
return _.x("yt-content-preview-image-view-model",{el:_.$M(_.Tx(function(){var U;return(U=H())==null?void 0:U.rendererContext})),
role:function(){return a()?"link":void 0},
tabindex:function(){return a()?0:void 0},
class:_.xM(K,d,function(){var U=g();var L=c==null?void 0:c();U=U==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||U==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||U==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||U==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(L==null?void 0:L.size)!=null&&L.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(L==null?void 0:L.size)!=null&&L.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return U}),
style:function(){var U=C(),L=[];U.width&&L.push("width: "+U.width+"px");U.height&&L.push("height: "+U.height+"px");U.maxWidth&&L.push("max-width: "+U.maxWidth+"px");U.maxHeight&&L.push("max-height: "+U.maxHeight+"px");U.fullWidth&&L.push("width: 100%");return L.join(";")}},_.x(_.n,{cond:k,
then:function(U){return _.x(_.d7,{data:U,alt:e,"data-disabled$":function(){return!e()},
notifyOnLoaded:p,targetWidth:V,targetHeight:R,preserveWidth:function(){return!!V()},
preserveHeight:function(){return!!R()}})}}),_.x(_.wB,{data:function(){var U;
return(U=H())==null?void 0:U.overlays}},{thumbnailHoverOverlayViewModel:Xk,
thumbnailOverlayButtonViewModel:_.$9l}))},"Ha");
_.iN.idomCompat=!0;var x9l=_.H1(function(d){var H=d.data;var K=d.className;var c=d.useSmallLayout;d=d.useMediumText;var p={};d=(p["yt-attribution-view-model-wiz"]=!0,p["yt-attribution-view-model-wiz--medium-text"]=d,p);return _.x("yt-attribution-view-model",{el:_.$M(_.Tx(function(){var g;return(g=H())==null?void 0:g.rendererContext})),
class:_.xM(K,d)},_.x(_.n,{cond:function(){return _.Zb(H().rendererContext)},
then:function(){return _.x("button",{class:"yt-attribution-view-model-wiz--tappable"},_.x(kyS,{data:H,useSmallLayout:c}))},
else:function(){return _.x(kyS,{data:H,useSmallLayout:c})}}))},"Ia"),kyS=_.H1(function(d){var H=d.data;
var K=d.useSmallLayout;var c=function(){return{size:(K==null?0:K())?16:24}};
return _.x(_.HE,null,_.x(_.wB,{data:function(){return H().contentPreviewImage}},{contentPreviewImageViewModel:function(p){return _.x(_.iN,{data:p.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:c})}}),_.x(_.wB,{data:function(){return H().badge}},{badgeViewModel:function(p){return _.x(_.g$,{data:p.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.x(_.n,{cond:function(){return H().text},
then:function(){return _.x(_.j$,{text:function(){return H().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.x(_.n,{cond:function(){return H().suffix},
then:function(){return _.x(_.j$,{text:function(){return H().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Ja");
x9l.idomCompat=!0;var n93,CLU,RsM,VgU,U9g;n93=_.H1(function(d){var H=d.delimiter;var K=d.max;var c=d.index;var p=d.isStandalone;return _.x(_.n,{cond:function(){return K()-1>c()},
then:function(){var g={};return _.x("span",{class:_.xM("yt-content-metadata-view-model-wiz__delimiter",(g["yt-content-metadata-view-model-wiz__delimiter--standalone"]=p,g)),"aria-hidden":!0},H)}})},"Ka");
CLU=_.H1(function(d){var H=d.metadataPart;var K=d.maxLines;return _.x(_.j$,{text:function(){return H().text},
linkInheritColor:!0,className:function(){return pch(K())},
userInput:!0})},"La");
RsM=_.H1(function(d){var H=d.metadataPart;var K=d.maxLines;return _.x(_.n,{cond:function(){return H().tooltip},
then:function(c){return _.x("span",{title:c,role:"tooltip"},_.x(CLU,{metadataPart:H,maxLines:K}))},
else:function(){return _.x(CLU,{metadataPart:H,maxLines:K})}})},"Ma");
VgU=_.H1(function(d){var H=d.metadataPart;var K=d.isOverlay;var c=d.useMediumText;var p=d.hideAvatar;var g=function(){return H().maxLines!==void 0?H().maxLines:1};
return _.x(_.HE,null,_.x(_.wB,{data:function(){return H().avatarStack}},{avatarStackViewModel:function(a){return _.x(_.Fk,{data:a.data,
isOverlay:K,useMediumText:c,hideAvatar:p})},
badgeViewModel:_.g$}),_.x(_.n,{cond:function(){return H().leadingIcon},
then:function(a){return _.x(_.hu,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return a().name},
size:function(){return a().width}})}}),_.x(_.n,{cond:function(){return H().text},
then:function(){return _.x(RsM,{metadataPart:H,maxLines:g})}}),_.x(_.n,{cond:function(){return H().icon},
then:function(a){return _.x(_.hu,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return a().name},
size:function(){return a().width}})}}))},"Na");
U9g=_.H1(function(d){var H=d.metadataRow;var K=d.isInline;var c=d.delimiter;var p=d.isOverlay;var g=d.useMediumText;var a=d.extensions;var e=function(){var C,R=a==null?void 0:(C=a())==null?void 0:C.lockupMetadata;C=H();var V,U;return!!((R==null?0:(V=R.byline)==null?0:V.hideAvatar)&&((U=_.M(C,ztM))==null?void 0:U.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},k=function(){return H().metadataParts||[]};
d={};return _.x("div",{class:_.xM("yt-content-metadata-view-model-wiz__metadata-row",(d["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=K,d["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var C,R=a==null?void 0:(C=a())==null?void 0:C.lockupMetadata;C=H();var V,U;return!!((R==null?0:(V=R.byline)==null?0:V.addPadding)&&((U=_.M(C,ztM))==null?void 0:U.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},d["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var C;
return!!(a==null?0:(C=a())==null?0:C.lockupMetadata)&&H().badges&&!H().metadataParts},d))},_.x(_.wB,{data:function(){return H().badges}},{badgeViewModel:function(C){return _.x("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.x(_.g$,{data:C.data}))}}),_.x(_.L6,{each:k},function(C,R){return _.x(_.HE,null,_.x(VgU,{metadataPart:C,
isOverlay:p,useMediumText:g,hideAvatar:e}),_.x(n93,{delimiter:c,max:function(){return k().length},
index:R,isStandalone:!1}))}),_.x(_.n,{cond:function(){return H().isSpacerRow&&!K()},
then:function(){return _.x("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Oa");
_.Gs=_.H1(function(d){d=_.dg(d,{layout:0,isOverlay:!1});var H=d.data,K=d.layout,c=d.isOverlay,p=d.useMediumText,g=d.extensions,a=function(){return K()===0},e=function(){var C;
return((C=H().metadataRows)==null?void 0:C.filter(function(R){var V,U=g==null?void 0:(V=g())==null?void 0:V.lockupMetadata,L,w;V=!!((U==null?0:(L=U.description)==null?0:L.hideDescription)&&((w=_.M(R,ztM))==null?void 0:w.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var W,J;return!((U==null?0:(W=U.spacer)==null?0:W.hideSpacer)&&((J=_.M(R,ztM))==null?void 0:J.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||V)}))||[]},k={};
return _.x("yt-content-metadata-view-model",{class:_.xM(d.className,"yt-content-metadata-view-model-wiz",(k["yt-content-metadata-view-model-wiz--inline"]=a,k["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.Zb(H().rendererContext)},k["yt-content-metadata-view-model-wiz--medium-text"]=p,k)),
el:_.$M(_.Tx(function(){return H().rendererContext}))},_.x(_.L6,{each:e},function(C,R){return _.x(_.HE,null,_.x(U9g,{metadataRow:C,
isInline:a,delimiter:function(){return H().delimiter},
isOverlay:c,useMediumText:p,extensions:g}),_.x(_.n,{cond:function(){return a()&&!C.isSpacerRow},
then:function(){return _.x(n93,{delimiter:function(){return H().delimiter},
max:function(){return e().length},
index:R,isStandalone:!0})}}))}))},"Pa");
_.Gs.idomCompat=!0;var hs3=_.H1(function(d){var H={};return _.x("yt-lockup-metadata-view-model",{class:_.xM("yt-lockup-metadata-view-model-wiz",function(){a:{var K=d.lockupStyle();if(K==null?0:K.isOverlay)K="yt-lockup-metadata-view-model-wiz--overlay";else switch(K==null?void 0:K.arrangement){case 1:K="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:K="yt-lockup-metadata-view-model-wiz--vertical"}}return K},function(){a:{var K=d.lockupStyle();
if(K==null?0:K.isTiny)K="yt-lockup-metadata-view-model-wiz--tiny";else switch(K==null?void 0:K.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":K="yt-lockup-metadata-view-model-wiz--compact";break a;default:K="yt-lockup-metadata-view-model-wiz--standard"}}return K},(H["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var K;
return(K=d.lockupStyle())==null?void 0:K.isOverlay},H["yt-lockup-metadata-view-model-wiz--card"]=function(){var K;
return(K=d.lockupStyle())==null?void 0:K.isCard},H["yt-lockup-metadata-view-model-wiz--centered"]=function(){var K;
return(K=d.lockupStyle())==null?void 0:K.isCentered},H["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var K;
return(K=d.lockupStyle())==null?void 0:K.typographyBump},H["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var K;
return(K=d.lockupStyle())==null?void 0:K.useLegacyTypography},H["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var K;
return(K=d.lockupStyle())==null?void 0:K.useRichGridLegacyTypography},H))},_.x(_.wB,{data:function(){return d.data().image}},{avatarStackViewModel:function(K){return _.x("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.x(_.Fk,{data:K.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(K){return _.x("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.x(_.JV,{data:K.data}))},
decoratedAvatarViewModel:function(K){return _.x("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.x(_.sg,{data:K.data}))}}),_.x("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.x("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var K;return(K=d.data().title)==null?void 0:K.content}},_.x(_.n,{cond:function(){return d.data().title},
then:function(K){return _.x(_.Oj,{command:d.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:d.lockupAccessibilityLabel},_.x(_.j$,{text:K,userInput:!0}))}})),_.x("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.x(_.wB,{data:function(){return d.data().metadata}},{contentMetadataViewModel:function(K){return _.x(_.Gs,{data:K.data,
layout:1,useMediumText:function(){var c,p;return((c=d.lockupStyle())==null?void 0:c.typographyBump)||((p=d.lockupStyle())==null?void 0:p.useRichGridLegacyTypography)},
extensions:function(){var c,p,g,a;return{lockupMetadata:{byline:{hideAvatar:((c=d.lockupStyle())==null?void 0:c.arrangement)===0,addPadding:((p=d.lockupStyle())==null?void 0:p.arrangement)===1},description:{hideDescription:!((g=d.lockupStyle())==null||!g.compactMetadata)},spacer:{hideSpacer:!((a=d.lockupStyle())==null||!a.compactMetadata)}}}}})}})),_.x(_.wB,{data:function(){return d.data().attribution}},{attributionViewModel:function(K){return _.x("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.x(x9l,{data:K.data,
useSmallLayout:!0}))}})),_.x("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.x(_.wB,{data:function(){return d.data().menuButton}},{buttonViewModel:function(K){return _.x(_.xk,{data:K.data,
buttonOverrides:function(){var c;return((c=d.lockupStyle())==null?0:c.isOverlay)?{style:"overlay"}:void 0}})}})))},"Qa");
hs3.idomCompat=!0;var L0N=_.H1(function(d){var H=_.Af("notification-multi-action-renderer");_.Is(function(){requestAnimationFrame(function(){_.f4(H.value)})});
var K={},c={},p={};return _.x("notification-multi-action-renderer",{class:_.xM("ytNotificationMultiActionRendererHost",(K.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var g;return(g=d.useLegacyShelfStyle)==null?void 0:g.call(d)},K)),
el:H},_.x("span",{"aria-live":"polite",class:_.xM("ytNotificationMultiActionRendererTextContainer",(c.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var g;return(g=d.useLegacyShelfStyle)==null?void 0:g.call(d)},c))},_.x(_.j$,{text:function(){return d.data().responseText}})),_.x("div",{class:_.xM("ytNotificationMultiActionRendererButtonContainer",(p.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var g;
return(g=d.useLegacyShelfStyle)==null?void 0:g.call(d)},p))},_.x(_.wB,{data:function(){var g;
return(g=d.data().buttons)==null?void 0:g.map(function(a){if(a=a.buttonRenderer){var e,k=Object,C=k.assign,R=(e=a.icon)==null?void 0:e.iconType;e=(e=a.command||a.serviceEndpoint||a.navigationEndpoint)?{innertubeCommand:e}:void 0;a={buttonViewModel:C.call(k,{},{iconName:R,onTap:e,trackingParams:a.trackingParams,titleFormatted:a.text?_.JR(a.text):void 0},iuL(a))}}else a=void 0;return a}).filter(function(a){return!!a})}},{buttonViewModel:function(g,a){return _.x("div",null,_.x(_.xk,{data:g.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var e;return((e=d.useModernStyles)==null?0:e.call(d))?{type:a()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ra");var Mg6=_.H1(function(d){var H=_.Af("notification-text-renderer");_.Is(function(){requestAnimationFrame(function(){_.f4(H.value)})});
return _.x("notification-text-renderer",{el:H,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.x(_.j$,{text:function(){return d.data().successResponseText}}))},"Sa");_.oX=_.H1(function(d){var H=_.Uj(Syh,function(){var c;return GyF((c=d.contentId)==null?void 0:c.call(d))}),K=function(){var c;
return _.M((c=H())==null?void 0:c.command,_.Mq)};
return _.x(_.n,{cond:function(){var c;if(!(c=K())){var p;c=_.M((p=H())==null?void 0:p.command,r9g)}return c},
then:function(){return _.x(_.n,{cond:K,then:function(){var c={};return _.x("div",{class:_.xM("ytDismissibleItemReplacedContent",function(){var p;return o94((p=d.aspectRatio)==null?void 0:p.call(d))})},_.x("div",{class:_.xM((c.ytDismissibleItemAspectRatioContainer=function(){var p;
return((p=d.aspectRatio)==null?void 0:p.call(d))!==void 0},c))},_.x(_.wB,{data:function(){var p;
return(p=K())==null?void 0:p.item}},{notificationMultiActionRenderer:function(p){return _.x(L0N,{data:p.data,
useModernStyles:d.useModernStyle,useLegacyShelfStyle:d.useLegacyShelfStyle})},
notificationTextRenderer:Mg6})))}})},
else:d.children})},"Ta");_.m9M=_.H1(function(d){var H=d.data;var K=d.customCommandResolver;d=_.$M(_.cV({visibilityCallback:function(g){var a,e=(a=H().interaction)==null?void 0:a.onFirstVisible;g&&e&&_.EG(e)},
showOption:_.KQ}));var c=function(){var g;return((g=H().interaction)==null?0:g.onTap)?function(a){var e;zFC(a,(e=H().interaction)==null?void 0:e.onTap,K)}:void 0},p=function(){var g,a=H(),e=c(),k=(g=_.M(H().rendererContext,_.hs))==null?void 0:g.label;
a:switch(a.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":g=1;break a;default:g=0}return{size:l3Y(a.size),type:g,onTap:e,accessibilityText:k}};
return _.x("ad-avatar-view-model",{class:function(){var g;return((g=H().interaction)==null?0:g.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:d},_.x(_.n,{cond:function(){return H().image},
then:function(g){return _.x(GlX,{data:p,image:g})}}))},"Ua");_.qE=_.H1(function(d){var H=_.dg(d,{hasDot:!1});d=Object.assign({},H);var K=H.data,c=H.hasDot;H=H.customCommandResolver;var p=(delete d.data,delete d.hasDot,delete d.customCommandResolver,d);d=function(){return K().style};
d!==void 0&&d!==null||_.SD(Error("Eh"));d=_.Ej(function(){return K().interaction},H);
return _.x("ad-badge-view-model",{class:_.xM(function(){var g;return((g=K().interaction)==null?0:g.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var g=p.adRenderingContextType();
K();return g==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.$M(d)},_.x(_.tI,{data:function(){var g;K();return{type:2,text:(g=K().label)==null?void 0:g.content,adsIncludeDot:c(),isOverlay:K().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Va");var wcC;_.aX=_.H1(function(d){var H=d.data;var K=d.customCommandResolver;var c=d.adRenderingContextType;return _.x("ad-details-line-view-model",{class:function(){var p;return((p=H().interaction)==null?0:p.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.$M(_.cV({visibilityCallback:function(p){var g,a=(g=H().interaction)==null?void 0:g.onFirstVisible;p&&a&&_.EG(a)},
showOption:_.KQ}),_.Ej(function(){return H().interaction},K))},_.x(_.n,{cond:function(){return H().style},
then:function(p){return _.x(_.L6,{each:function(){var g;return((g=H())==null?void 0:g.attributes)||[]},
keyBy:"INDEX"},function(g){return _.x(wcC,{attribute:g,style:p,adRenderingContextType:function(){return c()}})})}}))},"Wa");
wcC=_.H1(function(d){var H=d.attribute;var K=d.style;var c=d.adRenderingContextType;return _.x(_.n,{cond:function(){return H().text},
then:function(p){return _.x(_.j$,{text:p,className:function(){var g=c();K();return g==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Xa");var PLA=_.H1(function(d){var H=d.data;var K=d.typographyBump;var c=function(){return H().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
d={};return _.x(_.HE,null,_.x("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.x(_.j$,{text:function(){return H().headline},
className:_.xM("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(d.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return c==null?void 0:c()},d.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(K==null?void 0:K())&&!(c==null?0:c())},d)),
linkInheritColor:!0}),_.x(_.n,{cond:function(){return H().description},
then:function(p){var g={};return _.x(_.j$,{text:p,className:_.xM("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(g.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return c==null?void 0:c()},g.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(K==null?void 0:K())&&!(c==null?0:c())},g)),
linkInheritColor:!0})}}),_.x(_.n,{cond:function(){return H().secondaryDescription},
then:function(p){var g={};return _.x(_.j$,{text:p,className:_.xM("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(g.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return K==null?void 0:K()},g)),
linkInheritColor:!0})}}),_.x("div",{class:function(){return c()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.x(_.n,{cond:function(){return H().adAvatar},
then:function(){return _.x("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.x(_.wB,{data:function(){return H().adAvatar}},{adAvatarViewModel:_.m9M}))}}),_.x(_.wB,{data:function(){return H().adBadge}},{adBadgeViewModel:function(p){return _.x(_.qE,{data:p.data,
hasDot:function(){return!!H().adDetailsLine},
adRenderingContextType:function(){return H().adRenderingContextType}})}}),_.x(_.wB,{data:function(){return H().adDetailsLine}},{adDetailsLineViewModel:function(p){return _.x(_.aX,{data:p.data,
adRenderingContextType:function(){return H().adRenderingContextType}})}}))),_.x("div",{class:function(){return c()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.x(_.wB,{data:function(){return H().menu}},{buttonViewModel:function(p){return _.x(_.xk,{data:p.data,
buttonOverrides:function(){a:switch(H().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var g="S";break a;default:g="M"}return{size:g}}})}})))},"Ya"),unS=_.H1(function(d){var H=d.data;
var K=d.noBottomMargin;var c=d.useVideoLockupTopPadding;var p=d.typographyBump;d={};d=_.xM("ytwFeedAdMetadataViewModelHostMetadata",(d.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return K==null?void 0:K()},d.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return c==null?void 0:c()},d));
var g=function(){return H().adBadge};
g!==void 0&&g!==null||_.SD(Error("Fh"));g={};var a={};return _.x(_.HE,null,_.x(_.n,{cond:function(){return H().adAvatar},
then:function(){return _.x("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.x(_.wB,{data:function(){return H().adAvatar}},{adAvatarViewModel:function(e){return _.x(_.m9M,{data:e.data})}}))}}),_.x("div",{class:d},_.x("div",{class:_.xM("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(g.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return p==null?void 0:p()},g.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(p==
null?void 0:p())&&_.h("web_enable_typography_bump_v2")},g))},_.x(_.j$,{text:function(){return H().headline},
linkInheritColor:!0})),_.x(_.n,{cond:function(){return H().description},
then:function(e){return _.x(_.j$,{text:e,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.x("div",{class:function(){return H().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.h("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.x(_.wB,{data:function(){return H().adBadge}},
{adBadgeViewModel:function(e){return _.x(_.qE,{data:e.data,
hasDot:function(){return!!H().adDetailsLine},
adRenderingContextType:function(){return H().adRenderingContextType}})}}),_.x(_.wB,{data:function(){return H().adDetailsLine}},{adDetailsLineViewModel:function(e){return _.x(_.aX,{data:e.data,
adRenderingContextType:function(){return H().adRenderingContextType}})}})),_.x(_.n,{cond:function(){return H().secondaryDescription},
then:function(e){return _.x(_.j$,{text:e,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.x("div",{class:_.xM("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(a.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return c==null?void 0:c()},a))},_.x(_.wB,{data:function(){return H().menu}},{buttonViewModel:_.xk})))},"Za"),I3A=_.H1(function(d){var H=d.data;
var K=d.noBottomMargin;var c=d.listenToTapEvent;var p=d.setTouchEndHandler;var g=d.useVideoLockupTopPadding;var a=d.typographyBump;d=_.cV({visibilityCallback:function(V){var U,L=(U=H().interaction)==null?void 0:U.onFirstVisible;V&&L&&_.EG(L)},
showOption:_.KQ});var e=_.Ej(function(){return H().interaction},void 0,function(){return c==null?void 0:c()}),k=_.q(_.GO(!1,void 0,"p7Js8e")),C=k.next().value,R=k.next().value;
k=_.n7(function(V){(p==null?0:p())&&!C()&&(V.currentTarget.click(),R(!0),setTimeout(function(){R(!1)},100));
return!1});
return _.x("feed-ad-metadata-view-model",{class:function(){var V;return((V=H().interaction)==null?0:V.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.$M(d,e),"on:touchend":k},_.x(_.w9,null,_.x(_.MM,{when:function(){return H().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.x(PLA,{data:H,
typographyBump:a})}),_.x(_.MM,{when:function(){return H().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.x(unS,{data:H,
noBottomMargin:K,useVideoLockupTopPadding:g,typographyBump:a})})))},"$a");var rrB;_.lN=_.H1(function(d){return _.x("yt-lockup-view-model",{class:_.xM(d.className)},_.x(_.oX,{contentId:function(){return d.data().contentId},
useModernStyle:!0,aspectRatio:function(){var H,K;return((H=d.containerType)==null?void 0:H.call(d))!==3?DnX(d.data().contentType,(K=d.force16By9ThumbnailAspectRatio)==null?void 0:K.call(d)):void 0}},function(){return _.x(rrB,Object.assign({},d))}))},"ab");
rrB=_.H1(function(d){d=_.dg(d,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var H=d.data,K=d.containerLayoutConfig,c=d.containerType,p=d.sizing,g=d.protectBackground,a=d.typographyBump,e=d.force16By9ThumbnailAspectRatio,k=d.thumbnailFixedWidth,C=d.thumbnailTargetWidth,R=d.lockupExperiments,V=d.elementsPerRow;
d=_.$M(_.Tx(function(){var LF;return(LF=H())==null?void 0:LF.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var U=_.Tv(uCi),L=_.Kj().resolve(_.$p(Dn6)),w=L?{}:void 0,W=function(){var LF,YY,FM;return(FM=(YY=_.M((LF=H())==null?void 0:LF.rendererContext,_.hs))==null?void 0:YY.label)!=null?FM:void 0},J=function(){var LF=K==null?void 0:K(),YY;
if(LF==null?0:LF.containerType){var FM=(YY=H())==null?void 0:YY.contentType;YY=R();var gA=a(),JN=C(),eS=g();LF=Object.assign({},fyl(yGE(LF),SN1(LF.responsiveSize),gA,FM,LF.force16By9ThumbnailAspectRatio,JN,eS,YY),{thumbnailFixedWidth:LF.contentPreviewWidth})}else LF=fyl(c(),p(),a(),(FM=H())==null?void 0:FM.contentType,e(),C(),g(),R());return LF};
L&&w&&L({enabled:function(){return U()},
itemPlaybackModel:function(){return H().itemPlayback},
thumbnailElRef:function(){return w.thumbnailElRef},
containerElRef:d,options:function(){var LF,YY=(LF=_.M(H().metadata,_.ZsA))==null?void 0:LF.endorsement;LF=w.thumbnailOverlays||[];YY&&LF.push(YY);var FM,gA;return{thumbnail:w.thumbnail,thumbnailOverlays:LF,accessibilityText:W(),thumbnailSize:w.thumbnailSize,enableRounding:J().isCollection,containPlayerWithinThumbnail:J().isCollection,trackingParams:(FM=_.M(H().rendererContext,_.LM))==null?void 0:(gA=FM.loggingDirectives)==null?void 0:gA.trackingParams}}});
var F=0;L=_.q(_.GO(!1,void 0,"HzAs3"));var Y=L.next().value,A=L.next().value;L=_.q(_.GO(!1,void 0,"ujOXud"));var E=L.next().value,N=L.next().value;L=_.n7(function(){var LF=U()&&H().itemPlayback;E()?(_.Xp.cancelJob(F),F=_.Xp.addJob(function(){A(!LF)},8,32)):A(!LF);
return!0});
var y=_.n7(function(){F&&(_.Xp.cancelJob(F),F=0);A(!1)});
_.Pk(function(){F&&(_.Xp.cancelJob(F),F=0)});
var v=a35(function(){N(!0)}),el=v.touchFeedbackEvents,l1=v.touchFeedbackOnPointerUp,V4=v.touchFeedbackOnPointerDown;
v=v.touchFeedbackOnPointerLeave;var Mf={};return _.x("div",{el:d,class:_.xM("yt-lockup-view-model-wiz",function(){a:{var LF=J();if(LF.isOverlay)LF="yt-lockup-view-model-wiz--overlay";else switch(LF.arrangement){case 1:LF="yt-lockup-view-model-wiz--horizontal";break a;default:LF="yt-lockup-view-model-wiz--vertical"}}return LF},function(){a:{var LF=J();
if(LF.isOverlay)LF="yt-lockup-view-model-wiz--overlay";else{switch(LF.collectionStackNumber){case 1:LF="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:LF="yt-lockup-view-model-wiz--collection-stack-2";break a}LF=void 0}}return LF},function(){var LF;
return _.g9C((LF=H())==null?void 0:LF.contentId)},(Mf["yt-lockup-view-model-wiz--card"]=function(){return J().isCard},Mf["yt-lockup-view-model-wiz--compact"]=function(){return J().isTiny||J().sizing!=="STANDARD"},Mf["yt-lockup-view-model-wiz--protect-background"]=g,Mf["yt-lockup-view-model-wiz--add-margins"]=function(){return J().addMarginForFullbleed},Mf["yt-lockup-view-model-wiz--centered"]=function(){return J().isCentered},Mf["yt-lockup-view-model-wiz--fullbleed"]=function(){return J().fullbleed},
Mf["yt-lockup-view-model-wiz--single-column-grid"]=function(){return V()===1&&c()===2},Mf["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var LF;
return(LF=R())==null?void 0:LF.useRichGridLegacyMargin},Mf)),
"on:mousedown":V4,"on:mouseleave":y,"on:mouseup":l1,"on:mouseover":L,"on:touchstart":V4,"on:touchend":l1,"on:pointerleave":v},_.x(_.Oj,{command:function(){var LF;return _.FN((LF=H())==null?void 0:LF.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return k()&&J().arrangement===1?"width: "+k():""}},_.x(_.wB,{data:function(){var LF;
return(LF=H())==null?void 0:LF.contentImage}},{thumbnailViewModel:function(LF){return _.x(_.$A,{data:LF.data,
aspectRatio:function(){return J().aspectRatio},
disableRounding:function(){return J().disableRounding},
width:C,hovered:Y,isClip:function(){var YY;return((YY=H())==null?void 0:YY.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:wsC(w),lockupExperiments:function(){return R()}})},
collectionThumbnailViewModel:function(LF){return _.x(iu3,{data:LF.data,aspectRatio:function(){return J().aspectRatio},
disableRounding:function(){return J().disableRounding},
width:C,doubleStack:function(){return J().collectionStackNumber===2},
hovered:Y,playbackRef:wsC(w)})},
decoratedAvatarViewModel:_.sg})),_.x("div",{class:"yt-lockup-view-model-wiz__metadata"},_.x(_.wB,{data:function(){var LF;return(LF=H())==null?void 0:LF.metadata}},{lockupMetadataViewModel:function(LF){return _.x(hs3,{data:LF.data,
lockupStyle:J,lockupCommand:function(){var YY;return _.FN((YY=H())==null?void 0:YY.rendererContext)},
lockupAccessibilityLabel:function(){return W()}})},
feedAdMetadataViewModel:function(LF){return _.x(I3A,{data:LF.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:a})}}),_.x(_.wB,{data:function(){var LF;
return(LF=H())==null?void 0:LF.attachmentSlot}},{lockupAttachmentsViewModel:function(LF){return _.x(l3d,{data:LF.data,
lockupStyle:J})}})),_.x(_.am,{model:function(){a:{switch(J().collectionStackNumber){case 1:var LF=8;
break a;case 2:LF=12;break a}LF=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:LF}},
pointerDownEvent:el.pointerDownEvent,pointerUpEvent:el.pointerUpEvent,pointerLeaveEvent:el.pointerLeaveEvent}))},"bb");
_.lN.idomCompat=!0;_.iV(_.lN,"yt-lockup-view-model",{props:{data:_.dl,containerLayoutConfig:_.dl,containerType:_.dl,sizing:_.dl,protectBackground:_.dl,typographyBump:_.dl,thumbnailFixedWidth:_.dl,thumbnailTargetWidth:_.dl,force16By9ThumbnailAspectRatio:_.dl,className:_.dl,lockupExperiments:_.dl,elementsPerRow:_.dl}});var n95,W00=_.H1(function(d){var H=_.dg(d,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),K=H.text,c=H.alwaysShowTruncationText;d=H.truncationText;var p=H.onTextClick,g=H.maxLines,a=H.disableTextMask,e=H.textStyle,k=H.accessibilityLabel,C=H.textSize,R=H.alwaysTruncateAtMaxLines,V=H.expandOnClick;H=_.q(_.GO(!1,void 0,"lWDnae"));var U=H.next().value,L=H.next().value;H=_.n7(function(){V()&&L(!U());p==null||p()});
var w=function(){a:switch(C()){case "medium":var y=2;break a;case "large":y=2.2;break a;default:y=1.8}return y},W=Vgf(K,function(){return U()?Infinity:g()},w,a,R,U),J=W.isTruncated;
K=W.displayText;R=W.contentRef;var F=W.hiddenRef,Y=W.placeholderTruncationTextRef,A=W.hiddenTruncationTextRef;W=W.truncationTextRef;var E={},N={};return _.x("truncated-text",{class:_.xM((E["truncated-text-wiz"]=!0,E["truncated-text-wiz--overlay"]=function(){return e()==="overlay"},E["truncated-text-wiz--medium-text"]=function(){return C()==="medium"},E["truncated-text-wiz--large-text"]=function(){return C()==="large"},E["truncated-text-wiz--primary-text"]=function(){return e()==="primary-text"},E)),
"on:click":H,style:function(){return"line-height: "+w()+"rem;"}},_.x("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:R,style:function(){return U()?"":"max-height: "+g()*w()+"rem;"}},_.x(_.j$,{text:K}),_.x("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:Y,style:function(){return"line-height: "+w()+"rem;"}},_.x(_.j$,{text:d}))),_.x("truncated-text-content",{class:_.xM("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:F,style:function(){return U()?"":"max-height: "+g()*w()+"rem;"},
"aria-hidden":"true"},_.x(_.j$,{text:K}),_.x("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:A,style:function(){return"line-height: "+w()+"rem;"}},_.x(_.j$,{text:d}))),_.x("button",{"aria-label":k,
class:_.xM((N["truncated-text-wiz__absolute-button"]=function(){return!a()},N["truncated-text-wiz__bottom-button"]=function(){return a()},N["truncated-text-wiz--hidden"]=function(){return!(!U()&&(c!=null&&c()||J()))},N)),
el:W,style:function(){return"line-height: "+w()+"rem;"}},_.x(_.j$,{text:d})))},"cb");
W00.idomCompat={callbacks:{onTextClick:!0}};var Xc6=_.H1(function(d){var H=d.data;d=d.className;var K=_.ey(function(){return hs5(H())},void 0,"sR58pd");
return _.x("yt-video-attribute-view-model",{class:d},_.x("div",{class:function(){var c=H();a:switch(c.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var p="yt-video-attribute-view-model--vertical";break a;default:p="yt-video-attribute-view-model--horizontal"}a:switch(c.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var g="yt-video-attribute-view-model--image-small";break a;default:g="yt-video-attribute-view-model--image-large"}a:switch(c.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var a=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":a="yt-video-attribute-view-model--image-avatar";break a;default:a=""}a:switch(c.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var e="yt-video-attribute-view-model--metadata-header";break a;default:e=""}a:switch(c.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var k="yt-video-attribute-view-model--container-card";break a;default:k=""}return["yt-video-attribute-view-model",p,g,
a,e,k,hs5(c)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.UQ({"background-color":function(){var c=H();if(c.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var p="";else{p=c.lightColorPalette;c=c.darkColorPalette;var g,a=((g=_.Kj().resolve(_.$p(_.fM)))==null?0:g())&&c?c:p;p=(p=a==null?void 0:a.section2Color)?_.Ob(p):""}return p}})},_.x(_.n,{cond:function(){return K()||!_.h("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.x(_.Oj,{className:"yt-video-attribute-view-model__content-container",command:K,role:"group",ariaLabel:function(){return H().title}},_.x(_.n,{cond:function(){return H().heroText||H().image},
then:function(){return _.x(B1d,{data:H})}}),_.x(zs0,{data:H,
sizeSmall:function(){return H().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.x("div",{class:"yt-video-attribute-view-model__content-container"},_.x(_.n,{cond:function(){return H().heroText||H().image},
then:function(){return _.x(B1d,{data:H})}}),_.x(zs0,{data:H,
sizeSmall:function(){return H().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"db");
Xc6.idomCompat=!0;var B1d=_.H1(function(d){var H=d.data;var K,c=(K=_.Kj().resolve(_.$p(_.fM)))==null?void 0:K(),p=function(){return c&&H().darkThemeImage?H().darkThemeImage:H().image},g=_.ey(function(){return L0C(H())},void 0,"zGDeMe");
return _.x("div",{class:"yt-video-attribute-view-model__hero-section"},_.x(_.w9,null,_.x(_.MM,{when:p},function(){return _.x(_.d7,{data:function(){return p()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.x(_.MM,{when:function(){return H().heroText}},function(){return _.x("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.x("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return H().heroText}))})),_.x(_.n,{cond:function(){return H().overflowMenuOnTap},
then:function(){return _.x("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.x(_.kk,{data:g,iconName:"MORE_VERT"}))}}))},"eb");
B1d.idomCompat=!0;var zs0=_.H1(function(d){var H=d.data;d=d.sizeSmall;var K=function(){return H().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},c=_.ey(function(){return Sv(_.OG({innertubeCommand:hs5(H())}))?"link":"group"},void 0,"kGuRzd"),p={};
return _.x("div",{class:_.xM("yt-video-attribute-view-model__metadata",(p["yt-video-attribute-view-model--small-font"]=d,p)),role:c},_.x("h1",{class:"yt-video-attribute-view-model__title"},function(){return H().title}),_.x(_.n,{cond:function(){return H().subtitle},
then:function(){return _.x("h4",{class:"yt-video-attribute-view-model__subtitle"},_.x(_.n,{cond:K,then:function(){return _.x(W00,{text:function(){return U9i(H().subtitle)},
truncationText:function(){return U9i(H().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.x("span",null,function(){return H().subtitle})}}))}}),_.x(_.n,{cond:function(){return H().secondarySubtitle},
then:function(g){return _.x("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.x(_.j$,{text:function(){var a=g();if(a!=null&&a.attachmentRuns){for(var e=[],k=_.q(a.attachmentRuns),C=k.next();!C.done;C=k.next())C=C.value,C.element&&e.push(Object.assign({},C,{element:Object.assign({},C.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));a=Object.assign({},a,{attachmentRuns:e})}return a}}))}}),_.x(_.wB,
{data:function(){return H().buttonViewModel}},{buttonViewModel:function(g){return _.x(_.xk,{data:g.data,
className:"yt-video-attribute-view-model__button"})}}))},"fb");
zs0.idomCompat=!0;_.iV(Xc6,"yt-video-attribute-view-model",{props:{data:_.dl,className:_.dl}});var ew=function(){var d=_.B.apply(this,arguments)||this;d.useHighlightStyling=_.h("web_enable_deeper_metadata_highlight_styling");d.isSearch=!1;d.JSC$15081_lastScrollContainerWidth=NaN;d.pageLoadingFromNavigation=!1;d.currentIndex=0;d.supportComponentResize=!1;return d};
_.m(ew,_.B);_.G=ew.prototype;
_.G.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-horizontal-card-list-renderer lockup",containerType:4,sizing:"COMPACT"}},searchRefinementCardRenderer:"ytd-search-refinement-card-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",videoCardRenderer:"ytd-grid-video-renderer",gameCardRenderer:"ytd-game-card-renderer",miniGameCardViewModel:"ytd-mini-game-card-view-model",mediaUpsellRenderer:"ytd-media-upsell-renderer",
infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",params:{showVerticalDividers:!0}},previewCardRenderer:{component:"ytd-preview-card-renderer",properties:{isSearch:"[[isSearch]]"}},macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"}},placeDataViewModel:"place-data-view-model",videoAttributeViewModel:{component:"yt-video-attribute-view-model",properties:{className:"[[is]]"}}}},"data.header":{id:"header",
mapping:{titleAndButtonListHeaderRenderer:"ytd-title-and-button-list-header-renderer",richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",properties:{hideNavigationButton:"[[hideNavigationButton]]",isModernSd:"[[modernChapters]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.button":{id:"header-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.previousButton":{id:"left-arrow-button",
mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},attributes:{arrow:!0}}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},attributes:{arrow:!0}}}},"data.footerButton":{id:"footer-section",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},dismissedRenderer:{id:"dismissed",
mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.G.attached=function(){document.addEventListener("yt-page-type-changed",_.xf(this,this.onPageChange))};
_.G.detached=function(){document.removeEventListener("yt-page-type-changed",_.xf(this,this.onPageChange))};
_.G.getItemsPath=function(){return"data.cards"};
_.G.onIronResize=function(){this.updateListStyles()};
_.G.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var d;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(d=this.data)==null?void 0:d.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.h("problem_walkthrough_sd")&&!!this.centerItems};
_.G.computeCardListStyle=function(d){return d||null};
_.G.computeEmpty=function(d){return!this.get("cards.length",d)};
_.G.computeThumbnailStyle=function(d){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",d)||null};
_.G.computeHasSubtitle=function(d){return!!this.get("header.richListHeaderRenderer.subtitle",d)};
_.G.computeInitialCountNumber=function(d){return this.hasSquareMiniApp&&d==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&d==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:d==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:d==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:d==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&d==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.G.computeUseFloorScrolling=function(d){return d==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.G.computeHasGameCard=function(d){return(d=this.get("cards",d))?d.some(function(H){return H.gameCardRenderer}):!1};
_.G.computeCenterHeaderTitle=function(d){return!(d==null||!d.centerHeaderTitle)};
_.G.computeHasPortraitMiniApp=function(d){return(d=d==null?void 0:d.cards)?d.some(function(H){return H.miniGameCardViewModel&&H.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.G.computeHasSquareMiniApp=function(d){return(d=d==null?void 0:d.cards)?d.some(function(H){return H.miniGameCardViewModel&&H.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.G.computeHasSkinnyWidthPortraitMiniApp=function(d){return(d=d==null?void 0:d.cards)?d.some(function(H){return H.miniGameCardViewModel&&H.miniGameCardViewModel.width===135}):!1};
_.G.computeCenterItems=function(d){return!!d};
_.G.computeHasInfoPanel=function(d){var H;return d==null?void 0:(H=d.cards)==null?void 0:H.some(function(K){return K.infoPanelContentRenderer})};
_.G.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.G.getItemByIndex=function(d){var H=this.items.children;return H&&H.length>d?H[d]:void 0};
_.G.onPageChange=function(){var d=this;this.pageLoadingFromNavigation=!0;_.Xp.addJob(function(){d.pageLoadingFromNavigation=!1;_.qo(d.hostElement,"yt-terminate-video-preview-action")},8)};
_.G.updateListStyles=function(){if(_.h("problem_walkthrough_sd")&&this.JSC$15081_scrollContainer!==void 0){var d=this.JSC$15081_scrollContainer.clientWidth;d!==this.JSC$15081_lastScrollContainerWidth&&(this.JSC$15081_lastScrollContainerWidth=d,_.eO(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(d*.8,415)+"px"}),_.GT(this.hostElement,"iron-resize"))}};
_.H3.Object.defineProperties(ew.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.h("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return!!((d=this.data)==null?0:(H=d.cards)==null?0:(K=H[0])==null?0:K.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return!!((d=this.data)==null?0:(H=d.cards)==null?0:(K=H[0])==null?0:K.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return _.h("enable_desktop_amsterdam_info_panels")&&!!((d=this.data)==null?0:(H=d.cards)==null?0:(K=H[0])==null?0:K.infoPanelContentRenderer)}}});
ew.prototype.dataChanged=ew.prototype.dataChanged;ew.prototype.onIronResize=ew.prototype.onIronResize;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ew.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.oL.YtdHorizontalListBehavior),_.O("design:type",Object)],ew.prototype,"ytdHorizontalListBehavior",void 0);
_.t([_.u(_.OO),_.O("design:type",Object)],ew.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ew.prototype,"data",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],ew.prototype,"useCustomColors",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ew.prototype,"useHighlightStyling",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.O("design:type",Object)],ew.prototype,"cardListStyle",void 0);_.t([_.r({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.O("design:type",Boolean)],ew.prototype,"empty",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.O("design:type",Boolean)],ew.prototype,"hasSubtitle",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.O("design:type",Boolean)],ew.prototype,"thumbnailStyle",void 0);_.t([_.r({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.O("design:type",Boolean)],ew.prototype,"hasGameCard",void 0);_.t([_.r({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.O("design:type",Boolean)],ew.prototype,"centerHeaderTitle",void 0);
_.t([_.r({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.O("design:type",Boolean)],ew.prototype,"hasPortraitMiniApp",void 0);_.t([_.r({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.O("design:type",Boolean)],ew.prototype,"hasSquareMiniApp",void 0);_.t([_.r({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.O("design:type",Boolean)],ew.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.t([_.r({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.O("design:type",Boolean)],ew.prototype,"hasInfoPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ew.prototype,"isSearch",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],ew.prototype,"inlineStructuredDescription",void 0);_.t([_.VP("#scroll-container"),_.O("design:type",HTMLDivElement)],ew.prototype,"JSC$15081_scrollContainer",void 0);
_.t([_.r({computed:"computeInitialCountNumber(data.style.type)"}),_.O("design:type",Number)],ew.prototype,"initialCount",void 0);_.t([_.r({computed:"computeUseFloorScrolling(data.style.type)"}),_.O("design:type",Boolean)],ew.prototype,"useFloorScrolling",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.O("design:type",Boolean)],ew.prototype,"centerItems",void 0);_.t([_.r(),_.O("design:type",Object)],ew.prototype,"pageLoadingFromNavigation",void 0);
_.t([_.r(),_.O("design:type",Object)],ew.prototype,"currentIndex",void 0);_.t([_.r(),_.O("design:type",Number)],ew.prototype,"scrollCount",void 0);_.t([_.r(),_.O("design:type",Object)],ew.prototype,"supportComponentResize",void 0);_.t([_.VP("#items"),_.O("design:type",HTMLDivElement)],ew.prototype,"items",void 0);_.t([_.nK("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ew.prototype,"onIronResize",null);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ew.prototype,"dataChanged",null);_.t([_.r({reflectToAttribute:!0}),_.I("inlineStructuredDescription"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ew.prototype,"hideNavigationButton",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ew.prototype,"modernChapters",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ew.prototype,"hasVideoAttributeViewModels",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ew.prototype,"modernInfoPanels",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],ew);
_.T(ew,"ytd-horizontal-card-list-renderer",function(){if(Iy3!==void 0)return Iy3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-horizontal-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-horizontal-card-list-renderer">\n<div id="header-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <h2 id="header" hidden$="[[!data.header]]" class="style-scope ytd-horizontal-card-list-renderer"></h2>\n  <div id="sort-filter" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  <div id="header-button" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="shelf-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atStart]]">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="prevClick_" hidden="[[data.previousButton]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="left-arrow-button" hidden="[[!data.previousButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown" class="style-scope ytd-horizontal-card-list-renderer">\n    <div id="items" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atEnd]]">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="nextClick_" hidden="[[data.nextButton]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="right-arrow-button" hidden="[[!data.nextButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n</div>\n<div id="footer-section" hidden="[[!data.footerButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-horizontal-card-list-renderer"></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Iy3=d},{mode:_.qk("kevlar_poly_si_batch_j072")?1:2});var Jr3=_.H1(function(d){var H=d.data;var K={};return _.x("video-summary-content-view-model",{class:_.xM("video-summary-content-view-model-wiz",d.className,(K["video-summary-content-view-model-wiz--is-search"]=d.isSearch,K))},_.x(_.L6,{each:function(){var c=[],p=H().paragraphs;if(p==null||!p.length)return[];for(var g=0;g<p.length;g++){var a=_.M(p[g],YvX),e=void 0;g>0&&(e=_.M(p[g-1],YvX));e&&!!e.marker===!!a.marker?c[c.length-1].paragraphs.push(a):c.push({isList:!!a.marker,paragraphs:[a]})}return c},
keyBy:"INDEX"},function(c){return _.x(_.n,{cond:function(){return c().isList},
then:function(){return _.x("ul",{class:"video-summary-content-view-model-wiz__list"},_.x(_.L6,{each:function(){return c().paragraphs},
keyBy:"INDEX"},function(p){return _.x("li",{class:"video-summary-content-view-model-wiz__list-item"},_.x(_.j$,{text:function(){return p().text}}))}))},
else:function(){return _.x(_.L6,{each:function(){return c().paragraphs},
keyBy:"INDEX"},function(p){return _.x("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.x(_.j$,{text:function(){return p().text}}))})}})}),_.x(_.n,{cond:function(){return!!_.M(H().likeButtonViewModel,_.X5)&&!!_.M(H().dislikeButtonViewModel,_.zz)},
then:function(){return _.x("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.x("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.x(_.Tr,{data:function(){return _.M(H().likeButtonViewModel,_.X5)},
disableIconAnimation:!0})),_.x(_.ZT,{data:function(){return _.M(H().dislikeButtonViewModel,_.zz)}}))}}))},"gb");
Jr3.idomCompat=!0;_.iV(Jr3,"video-summary-content-view-model",{props:{data:_.dl,isSearch:_.dl,className:_.dl}});var kA=function(){var d=_.B.apply(this,arguments)||this;var H,K;d.isExpanded=(K=(H=d.data)==null?void 0:H.isExpanded)!=null?K:!1;d.disableExpand=!1;d.showProminentLabel=!1;d.showRightSideLabel=!0;d.toggleExpandableContent=function(c){d.disableExpand||(c.stopPropagation(),_.dB(_.jh(c),d.hostElement,["info","expanded-subtitle"])||(d.isExpanded=!d.isExpanded,d.ytRendererBehavior.logExplicitClick(d.data),d.JSC$15092_cardList&&!_.h("expandable_metadata_a11y_fix_ks")&&_.vV(d,function(){_.D7(d.hostElement)})))};
d.useSquareThumbnail=!1;d.contentHiddenWithDisplayNone=_.h("web_expandable_metadata_content_hidden_with_display_none");d.startX=0;return d};
_.m(kA,_.B);_.G=kA.prototype;_.G.computeUseSquareThumbnail=function(){var d;return(d=this.data)==null?void 0:d.useSquareThumbnail};
_.G.configureRendererStamper=function(){return{"data.expandedContent":{id:"content",mapping:{horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]",useCustomColors:"[[useCustomColors]]"}},horizontalListRenderer:{component:"yt-horizontal-list-renderer",properties:{isSearch:"[[isSearch]]"},params:{isExpandableContent:!0}},videoSummaryContentViewModel:{component:"video-summary-content-view-model",params:{isExpandableContent:!0},properties:{isSearch:"[[isSearch]]"}},
lockupViewModel:{component:"yt-lockup-view-model",params:{isExpandableContent:!0,className:"ytd-expandable-metadata-renderer lockup",thumbnailFixedWidth:"168px",containerType:3,sizing:"COMPACT"}}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.infoButton":{id:"info",
mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.expandedMenuFooter":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}}}};
_.G.dataChanged=function(){if(this.data){var d,H;this.isExpanded=(H=(d=this.data)==null?void 0:d.isExpanded)!=null?H:!1;var K,c,p,g;if(d=this.isDarkTheme()?(K=this.data)==null?void 0:(c=K.colorData)==null?void 0:c.darkColorPalette:(p=this.data)==null?void 0:(g=p.colorData)==null?void 0:g.lightColorPalette){var a,e;if((a=this.data)==null?0:(e=a.colorData)==null?0:e.vibrantColorPalette)d.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Bg(this.hostElement,d)}}};
_.G.isExpandedChanged=function(){this.isExpanded&&this.JSC$15092_cardList&&_.GT(this.JSC$15092_cardList,"iron-resize")};
_.G.computeIsExpanded=function(d){return!!d.isExpanded};
_.G.computeShowProminentLabel=function(d,H){var K;return!!(d==null?0:(K=d.header)==null?0:K.showLeadingCollapsedLabel)&&!H};
_.G.computeShowRightSideLabel=function(d,H){var K;return!(d==null?0:(K=d.header)==null?0:K.showLeadingCollapsedLabel)&&!H};
_.G.captureContentClick=function(d){if(!this.disableExpand)if(_.h("expandable_metadata_fix_killswitch")){var H=d.target;_.pvU(H,"ytd-macro-markers-list-item-renderer")||d.stopPropagation();(H==null?void 0:H.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.dB(_.jh(d),this.hostElement,["items"])||_.vg(_.jh(d),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.G.timestampClick=function(d){d.stopPropagation();var H,K;(d=(H=this.data)==null?void 0:(K=H.header)==null?void 0:K.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(d)};
_.G.onDown=function(d){d.stopPropagation();this.startX=d.detail?d.detail.x:0};
_.G.onUp=function(d){this.skipKeyInteraction(d)&&d.stopPropagation()};
_.G.skipKeyInteraction=function(d){var H=d.target;if((H==null?void 0:H.id)==="scroll-container"||(H==null?void 0:H.id)==="items"||d.detail&&d.detail.x!==this.startX)return!0;d=_.jh(d);d=_.q(d);for(H=d.next();!H.done;H=d.next()){H=H.value;if(H===this.hostElement)break;if(H.hasAttribute&&H.hasAttribute("skip-key-interaction"))return!0}return!1};
_.G.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.H3.Object.defineProperties(kA.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var d;return!!_.M((d=this.data)==null?void 0:d.expandedContent,tLM)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var d;return!!_.M((d=this.data)==null?void 0:d.expandedContent,_.Ty3)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var d,H;return!((d=this.data)==null||!d.useCustomColors)&&!((H=this.data)==null||!H.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var d,H;return!!((d=this.data)==null?0:(H=d.header)==null?0:H.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var d,H;return!!((d=this.data)==null?0:(H=d.header)==null?0:H.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var d,H;return!!((d=this.data)==null?0:(H=d.header)==null?0:H.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.h("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
kA.prototype.onUp=kA.prototype.onUp;kA.prototype.onDown=kA.prototype.onDown;kA.prototype.isExpandedChanged=kA.prototype.isExpandedChanged;kA.prototype.dataChanged=kA.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],kA.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],kA.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],kA.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],kA.prototype,"isExpanded",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],kA.prototype,"disableExpand",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],kA.prototype,"isSearch",void 0);
_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],kA.prototype,"isWatch",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.O("design:type",Object)],kA.prototype,"showProminentLabel",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.O("design:type",Object)],kA.prototype,"showRightSideLabel",void 0);
_.t([_.r({value:!1,reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],kA.prototype,"hasVideoSummary",null);_.t([_.r({value:!1,reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],kA.prototype,"hasLockupViewModel",null);_.t([_.r({reflectToAttribute:!0}),_.I("data","isWatch"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],kA.prototype,"useCustomColors",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data","isExpanded"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],kA.prototype,"showInfoButton",null);_.t([_.I("data","isExpanded"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],kA.prototype,"showTimestamp",null);_.t([_.I("data","isExpanded"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],kA.prototype,"showExpandedSubtitle",null);
_.t([_.I("data","isExpanded"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],kA.prototype,"showThumbnail",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],kA.prototype,"useVppShoppingDestinationStyle",null);_.t([_.r(),_.O("design:type",Object)],kA.prototype,"toggleExpandableContent",void 0);_.t([_.VP("ytd-horizontal-card-list-renderer"),_.O("design:type",Object)],kA.prototype,"JSC$15092_cardList",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.O("design:type",Object)],kA.prototype,"useSquareThumbnail",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],kA.prototype,"contentHiddenWithDisplayNone",void 0);_.t([_.I("isExpanded"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],kA.prototype,"contentHidden",null);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kA.prototype,"dataChanged",null);_.t([_.CK("isExpanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kA.prototype,"isExpandedChanged",null);_.t([_.nK("down"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],kA.prototype,"onDown",null);
_.t([_.nK("up"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],kA.prototype,"onUp",null);_.t([_.Z({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],kA);
_.T(kA,"ytd-expandable-metadata-renderer",function(){if(FTX!==void 0)return FTX;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[contentHidden]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return FTX=d},{mode:1});var sW3,F06=function(){if(sW3!==void 0)return sW3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return sW3=d};_.iV(_.Fk,"yt-avatar-stack-view-model",{props:{className:_.dl,data:_.dl,overrides:_.dl,isOverlay:_.dl,useMediumText:_.dl,decorations:_.dl,hideAvatar:_.dl}});_.XX("itemSectionRenderer","videoRenderer","ytd-video-renderer");var xA=function(){var d=_.B.apply(this,arguments)||this;d.disableExpand=!1;d.shouldShowChannelInfo=!1;d.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return d};
_.m(xA,_.B);_.G=xA.prototype;_.G.computeUseSearchUi=function(){var d,H;return this.isSearch||((d=this.data)==null?void 0:(H=d.style)==null?void 0:H.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.G.computeUseThreeLineTitle=function(){var d;return((d=this.data)==null?void 0:d.maxTitleLines)===3};
_.G.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.h("polymer_video_renderer_defer_menu")&&!uWA?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}}}};
_.G.attached=function(){_.qr(this.hostElement,"blue-links",_.h("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.G.detached=function(){this.clearInlinePreviewHoverListeners()};
_.G.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.a1(_.Gn(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var d=this.get("data.buttons.buttonRenderer.serviceEndpoint"),H;d&&((H=_.M(d.commandMetadata,_.Ie))==null?0:H.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(d);this.updateInlinePreviewHoverListeners()};
_.G.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15097_inlinePreviewHoverListener=Y6({mediaRenderer:this,lockupElement:this.JSC$15097_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.G.clearInlinePreviewHoverListeners=function(){var d;(d=this.JSC$15097_inlinePreviewHoverListener)==null||f8(d)};
_.G.onTextWrapperClick=function(d){var H,K,c=this.hideTranslation?(H=this.data)==null?void 0:H.untranslatedNavigationEndpoint:(K=this.data)==null?void 0:K.navigationEndpoint;H=_.dB(_.jh(d),this.hostElement,["expandable-metadata"]);!c||H&&!_.h("expandable_metadata_fix_killswitch")||_.vg(_.jh(d),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.GT(this.hostElement,"yt-navigate",{endpoint:c})};
_.G.computeThumbnailWidth=function(d,H,K,c,p){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:c?p==="MASSIVE"?600:p==="BIG"?500:p==="MEDIUM"?450:420:K?360:H?128:d?210:246};
_.G.computeUseBiggerThumbs=function(d){return d&&_.h("enable_desktop_search_bigger_thumbs")};
_.G.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.G.computeVideoStyle=function(){if(_.h("enable_video_style")){var d,H;return(d=this.data)==null?void 0:(H=d.style)==null?void 0:H.value}};
_.G.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.G.handleHideItemSectionVideosByIdCommand=function(d){var H;d=(H=_.M(d,oq0))==null?void 0:H.videoId;this.data&&this.data.videoId===d&&(this.isHidden=!0)};
_.G.getMetadataSnippetContainerClass=function(d){return d?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.G.computeTitleText=function(d,H,K){return d?K:H};
_.G.computeDescriptionSnippet=function(d,H,K){return d?K:H};
_.G.computeSnippetText=function(d,H,K){return d?K:H};
_.G.computeNavigationEndpoint=function(d,H){return d?H==null?void 0:H.untranslatedNavigationEndpoint:H==null?void 0:H.navigationEndpoint};
_.G.hideInlineTitleIcon=function(d,H){return d||!H};
_.H3.Object.defineProperties(xA.prototype,{hideTranslation:{configurable:!0,enumerable:!0,get:function(){return this.searchVideoResultEntity?!!this.searchVideoResultEntity.hasOptedOutTranslation:!1}},
hiddenBadgeGroups:{configurable:!0,enumerable:!0,get:function(){if(this.searchVideoResultEntity){var d;return(d=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?d:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return!!(this==null?0:(d=this.data)==null?0:(H=d.channelThumbnailSupportedRenderers)==null?0:(K=H.channelThumbnailWithLinkRenderer)==null?0:K.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var d;return!!_.M((d=this.data)==null?void 0:d.avatar,Qk3)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.JSC$15097_inlinePreviewHoverListener)==null?0:QJ(d))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.H3.Object.defineProperties(xA,{template:{configurable:!0,enumerable:!0,get:function(){return F06()}}});
xA.prototype.dataChanged=xA.prototype.dataChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],xA.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],xA.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],xA.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.u(_.fe),_.O("design:type",Object)],xA.prototype,"ytdLockupBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],xA.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],xA.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],xA.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],xA.prototype,"isBackstageVideo",void 0);
_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],xA.prototype,"isPostCompactVideo",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],xA.prototype,"isHistory",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],xA.prototype,"isRichGridVideoPost",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],xA.prototype,"isHidden",void 0);
_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],xA.prototype,"isSearch",void 0);_.t([_.r({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.O("design:type",Boolean)],xA.prototype,"useSearchUi",void 0);_.t([_.r({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.O("design:type",Boolean)],xA.prototype,"useThreeLineTitle",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.O("design:type",Boolean)],xA.prototype,"useBiggerThumbs",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.O("design:type",Object)],xA.prototype,"videoStyle",void 0);_.t([_.r({computed:"computeDisableExpand(videoStyle)"}),_.O("design:type",Object)],xA.prototype,"disableExpand",void 0);
_.t([_.r({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.O("design:type",Object)],xA.prototype,"shouldShowChannelInfo",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.GJ("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],xA.prototype,"biggerThumbsStyle",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.O("design:type",String)],xA.prototype,"inlineTitleIcon",void 0);_.t([_.r({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.O("design:type",Object)],xA.prototype,"computedNavigationEndpoint",void 0);_.t([_.r({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(d,H){return _.xL(d.entities,"searchVideoResultEntity",H)}}),
_.O("design:type",Object)],xA.prototype,"searchVideoResultEntity",void 0);_.t([_.VP("ytd-thumbnail"),_.O("design:type",HTMLElement)],xA.prototype,"thumbnail",void 0);_.t([_.VP("#dismissible"),_.O("design:type",HTMLElement)],xA.prototype,"JSC$15097_dismissibleMedia",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xA.prototype,"dataChanged",null);
_.t([_.I("searchVideoResultEntity"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xA.prototype,"hideTranslation",null);_.t([_.I("searchVideoResultEntity"),_.O("design:type",Array),_.O("design:paramtypes",[])],xA.prototype,"hiddenBadgeGroups",null);_.t([_.I("data","useAvatar"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xA.prototype,"shouldShowChannelThumbnail",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xA.prototype,"useAvatar",null);
_.t([_.I("lockupIsHovered"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xA.prototype,"isHovered",null);_.t([_.Z({is:"ytd-video-renderer",disableElementRegistration:!0})],xA);_.T(xA,"ytd-video-renderer",function(){return F06()},{mode:_.qk("kevlar_poly_si_batch_j047")?1:2});var nQ=function(){var d=_.B.apply(this,arguments)||this;d.editDialog=null;d.roundedContainer=!0;d.isLoading=!1;d.isRichGrid=!1;d.isRichGridRepost=!1;d.reduceSidePaddings=_.h("reduce_side_paddings_in_shelf");d.JSC$15104_spinnerEl=null;return d};
_.m(nQ,_.B);_.G=nQ.prototype;
_.G.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",properties:{isPostCompactVideo:"[[usesCompactLockup]]",
isRichGridVideoPost:"[[isRichGrid]]"}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isPostCompactPlaylist:"[[usesCompactLockup]]"}},uploadedVideoRenderer:{component:"ytd-post-uploaded-video-renderer"}}},"data.voteButton":{id:"vote-button",mapping:{buttonRenderer:"ytd-button-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},
dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.G.contentTextChanged=function(){this.expander.reset()};
_.G.dataChanged=function(){var d=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var H=0,K=this.data.actions&&this.data.actions.length;H<K;H++)this.openEditDialog(_.M(this.data.actions[H],UW7));if((H=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(H=this.get("buttonRenderer.hint.hintRenderer.hintId",H))&&H.startsWith("share-post-hint")){var c=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(c){_.ps.getInstance();var p=gy(_.AF(_.Vz("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.Xp.addLowPriorityJob(function(){_.l5(d.hostElement,p,c)})}}}};
_.G.updatePoll=function(d){d>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.G.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15104_spinnerEl||(this.JSC$15104_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Gn(this.hostElement).appendChild(this.JSC$15104_spinnerEl));this.JSC$15104_spinnerEl&&(this.JSC$15104_spinnerEl.active=this.isLoading)};
_.G.onYtNavigate=function(d){var H=this.get("updateCommentDialogEndpoint",d.detail.endpoint);H&&(this.openEditDialog(H),d.stopPropagation())};
_.G.onYtCommentboxDismiss=function(){this.editDialog=null};
_.G.onYtCommentPollRevert=function(d,H){H&&this.updatePoll(H.selectedChoiceIndex)};
_.G.onYtServiceRequestSent=function(d,H){var K;H.endpoint&&(_.M(H.endpoint,AsS)||_.M(H.endpoint,fgB)&&((K=_.M(H.endpoint,fgB))==null||!K.clientActions))&&(this.isLoading=!0);if(H.actions)for(d=0;d<H.actions.length;d++)K=H.actions[d],_.M(K,P4)&&(K=this.get("updateBackstagePollAction.selectedChoiceIndex",K),K==void 0&&(K=-1),this.updatePoll(K))};
_.G.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.G.openEditDialog=function(d){d&&d.dialog&&(this.editDialog=d.dialog,d=this.editDialogEl.firstElementChild)&&(d.focus(),d.openDialog&&d.openDialog())};
_.G.computeIsPostHidden=function(d,H){return!!d||H};
_.G.computeSurfaceType=function(d){return d?d.toLowerCase().replace(/_/g,"-"):""};
_.G.computeUsesCompactLockup=function(d){return d==="BACKSTAGE_SURFACE_TYPE_HOME"||d==="BACKSTAGE_SURFACE_TYPE_SEARCH"||d==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||d==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||d==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||d==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.G.computeShowWithoutToolbar=function(d){return!d.actionButtons&&!d.actionMenu};
_.G.computePostAttachment=function(d){if(d.backstageAttachment){if(_.M(d.backstageAttachment,W_C))return"poll";if(_.M(d.backstageAttachment,kzN))return"quiz";if(_.M(d.backstageAttachment,_.ts))return"video";if(_.M(d.backstageAttachment,xqN))return"uploaded-videos";if(_.M(d.backstageAttachment,Etl))return d.contentText?"image":"image-only";if(_.M(d.backstageAttachment,qVB))return"playlist"}return"none"};
_.G.computePostTabIndex=function(d){return d?0:-1};
_.G.computeButtonTooltipPosition=function(d){return this.computeUsesCompactLockup(d)?"top":"bottom"};
_.G.computeHasText=function(d){return!(d==null||!d.contentText)};
_.G.onTap=function(d){var H,K;if(((H=this.data)==null?0:H.navigationEndpoint)&&((K=this.data)==null?void 0:K.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var c;((c=this.data)==null?0:c.navigationEndpoint)&&!_.vg(_.jh(d)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.GT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.H3.Object.defineProperties(nQ.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.voteCount)||_.AF("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.M(this.data.backstageAttachment,W_C))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.M(this.data.backstageAttachment,xqN))}}});
nQ.prototype.onYtServiceRequestCompleted=nQ.prototype.onYtServiceRequestCompleted;nQ.prototype.onYtServiceRequestSent=nQ.prototype.onYtServiceRequestSent;nQ.prototype.onYtCommentPollRevert=nQ.prototype.onYtCommentPollRevert;nQ.prototype.onYtCommentboxDismiss=nQ.prototype.onYtCommentboxDismiss;nQ.prototype.onYtNavigate=nQ.prototype.onYtNavigate;nQ.prototype.isLoadingChanged=nQ.prototype.isLoadingChanged;nQ.prototype.dataChanged=nQ.prototype.dataChanged;nQ.prototype.contentTextChanged=nQ.prototype.contentTextChanged;
_.t([_.u(_.OO),_.O("design:type",Object)],nQ.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],nQ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],nQ.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],nQ.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Object)],nQ.prototype,"editDialog",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],nQ.prototype,"roundedContainer",void 0);_.t([_.r(),_.O("design:type",Object)],nQ.prototype,"isLoading",void 0);_.t([_.r({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.O("design:type",String)],nQ.prototype,"surface",void 0);
_.t([_.r({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.O("design:type",Boolean)],nQ.prototype,"usesCompactLockup",void 0);_.t([_.r({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],nQ.prototype,"showWithoutToolbar",void 0);_.t([_.r({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.O("design:type",String)],nQ.prototype,"attachment",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],nQ.prototype,"isRichGrid",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],nQ.prototype,"isRichGridRepost",void 0);_.t([_.r({reflectToAttribute:!0,value:_.h("use_better_post_dismissals")}),_.O("design:type",Boolean)],nQ.prototype,"useBetterPostDismissals",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],nQ.prototype,"reduceSidePaddings",void 0);
_.t([_.r({computed:"computeHasText(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],nQ.prototype,"hasText",void 0);_.t([_.VP("#expander"),_.O("design:type",Object)],nQ.prototype,"expander",void 0);_.t([_.VP("#action-buttons"),_.O("design:type",Object)],nQ.prototype,"actionButtons",void 0);_.t([_.VP("#edit-dialog"),_.O("design:type",HTMLElement)],nQ.prototype,"editDialogEl",void 0);
_.t([_.CK("data.contentText"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nQ.prototype,"contentTextChanged",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nQ.prototype,"dataChanged",null);_.t([_.CK("isLoading"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nQ.prototype,"isLoadingChanged",null);
_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],nQ.prototype,"onYtNavigate",null);_.t([_.nK("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nQ.prototype,"onYtCommentboxDismiss",null);_.t([_.nK("yt-comment-poll-revert"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],nQ.prototype,"onYtCommentPollRevert",null);
_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],nQ.prototype,"onYtServiceRequestSent",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],nQ.prototype,"onYtServiceRequestCompleted",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],nQ.prototype,"voteCount",null);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],nQ.prototype,"commentCount",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],nQ.prototype,"hasPoll",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],nQ.prototype,"hasUploadedVideo",null);_.t([_.Z({is:"ytd-post-renderer",disableElementRegistration:!0})],nQ);
_.T(nQ,"ytd-post-renderer",function(){if(cbB!==void 0)return cbB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" role="link" hidden="[[computeIsPostHidden(editDialog, isLoading)]]" tabindex="[[computePostTabIndex(data.navigationEndpoint)]]" on-tap="onTap" class="style-scope ytd-post-renderer">\n  <div id="header" class="style-scope ytd-post-renderer">\n    <div id="author-thumbnail" class="style-scope ytd-post-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" tabindex="-1">\n        <yt-img-shadow fit="" height="32" thumbnail="[[data.authorThumbnail]]" width="32" class="style-scope ytd-post-renderer">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="author" class="style-scope ytd-post-renderer">\n      <a id="author-text" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n        <span class="style-scope ytd-post-renderer">[[getSimpleString(data.authorText)]]</span>\n      </a>\n      <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-post-renderer"></span>\n    </div>\n    <span id="author-divider" class="style-scope ytd-post-renderer">\u2022</span>\n    <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-post-renderer">\n    </yt-formatted-string>\n    <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-post-renderer"></span>\n  </div>\n  <div id="body" class="style-scope ytd-post-renderer">\n    <div id="post-text" class="style-scope ytd-post-renderer">\n\n      \n      <ytd-expander id="expander" hidden="[[usesCompactLockup]]" class="style-scope ytd-post-renderer">\n        <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n        <span class="more-button style-scope ytd-post-renderer" slot="more-button">\n          [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n        </span>\n        <span class="less-button style-scope ytd-post-renderer" slot="less-button">\n          [[getSimpleString(data.collapseButton.buttonRenderer.text)]]\n        </span>\n      </ytd-expander>\n      <yt-formatted-string id="home-content-text" slot="content" hidden="[[!usesCompactLockup]]" split-lines="[[!usesCompactLockup]]" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n    </div>\n    <div id="attachments" class="style-scope ytd-post-renderer">\n      <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-post-renderer"></div>\n      \n      <div id="answer-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.quizRenderer.totalVotes)]]\n      </div>\n      <div id="vote-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.pollRenderer.totalVotes)]]\n      </div>\n      <div id="vote-button" class="style-scope ytd-post-renderer"></div>\n      <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" role="group" class="style-scope ytd-post-renderer">\n      </ytd-backstage-poll-renderer>\n    </div>\n  </div>\n  <div id="toolbar" hidden="[[showWithoutToolbar]]" class="style-scope ytd-post-renderer">\n    <ytd-comment-action-buttons-renderer id="action-buttons" button-tooltip-position="[[computeButtonTooltipPosition(data.surface)]]" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply_]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" use-comment-icon="" vote-count="[[voteCount]]" class="style-scope ytd-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n    <div id="action-menu" class="style-scope ytd-post-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-post-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return cbB=d},{mode:1});var ZuX;var T1B;var CQ=function(){return _.B.apply(this,arguments)||this};
_.m(CQ,_.B);CQ.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],CQ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.oL.YtdHorizontalListBehavior),_.O("design:type",Object)],CQ.prototype,"ytdHorizontalListBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],CQ.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],CQ.prototype,"data",void 0);
_.t([_.r({value:"$.items.children"}),_.O("design:type",String)],CQ.prototype,"itemsPath",void 0);_.t([_.r({value:1}),_.O("design:type",Number)],CQ.prototype,"initialCount",void 0);_.t([_.r(),_.O("design:type",String)],CQ.prototype,"surface",void 0);_.t([_.Z({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],CQ);
_.T(CQ,"ytd-post-multi-image-renderer",function(){if(T1B!==void 0)return T1B;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-multi-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shelf-container" class="style-scope ytd-post-multi-image-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="prevClick_" hidden="[[atStart]]">\n         <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n      </div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown_" class="style-scope ytd-post-multi-image-renderer">\n    <div id="items" class="style-scope ytd-post-multi-image-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return T1B=d},{mode:_.qk("kevlar_poly_si_batch_j079")?1:2});var QW6={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},RX=function(){var d=_.B.apply(this,arguments)||this;d.hasInlineCommentSection=!1;d.editDialog=null;d.isLoading=!1;d.shouldHideAuthor=!1;d.shouldShowVideoTime=!1;
d.isInEngagementPanel=!1;d.hideBorder=!1;d.usesFullLockup=!1;d.shouldShowMenuInCompactView=!1;d.JSC$15120_spinnerEl=null;d.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return d};
_.m(RX,_.B);_.G=RX.prototype;_.G.configureRendererStamper=function(){return QW6};
_.G.computeIsPollHeaderEnabled=function(d){return(d==null?void 0:d.pollMetadataIcon)!=null};
_.G.getPublishTimeStampString=function(d,H){H=new Date((Number(H)-60*((new Date).getTimezoneOffset()-(new Date(Number(H)*1E3)).getTimezoneOffset()))*1E3);H=(new DL(10)).format(H);if(d&&d.runs&&d.runs.length)for(var K=0;K<d.runs.length;K++)d.runs[K].text&&(d.runs[K].text=d.runs[K].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",H));return d};
_.G.created=function(){this.JSC$15120_spinnerEl=null};
_.G.contentTextChanged=function(){this.expander.reset()};
_.G.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var d;if((d=this.data)==null?0:d.actions){d=_.q(this.data.actions);for(var H=d.next();!H.done;H=d.next())this.openEditDialog(_.M(H.value,UW7))}};
_.G.handleSignalActionOpenPostCommentDialogAction=function(){_.Gn(this.hostElement).querySelector("#action-buttons").reply()};
_.G.updatePoll=function(d,H){H&&this.set("data.pollMetadataVoteCountText",H);this.hasInlineCommentSection&&(d=d>=0,H=_.Gn(this.hostElement).querySelector("#action-buttons"),d?H.reply():H.hideReplyDialog())};
_.G.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15120_spinnerEl||(this.JSC$15120_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Gn(this.hostElement).appendChild(this.JSC$15120_spinnerEl));this.JSC$15120_spinnerEl&&(this.JSC$15120_spinnerEl.active=this.isLoading)};
_.G.onYtNavigate=function(d){var H=this.get("updateCommentDialogEndpoint",d.detail.endpoint);H&&(this.openEditDialog(H),d.stopPropagation())};
_.G.onYtCommentboxDismiss=function(){this.editDialog=null};
_.G.onYtCommentPollRevert=function(d,H){H&&this.updatePoll(H.selectedChoiceIndex,H.totalVotes)};
_.G.onYtServiceRequestSent=function(d,H){d.stopPropagation();d=_.M(H.endpoint,fgB);if(_.M(H.endpoint,AsS)||d&&!d.clientActions)this.isLoading=!0;if(H.actions)for(d=0;d<H.actions.length;d++){var K=H.actions[d],c=_.M(K,P4);c&&(K=this.get("updateBackstagePollAction.selectedChoiceIndex",K),K===void 0&&(K=-1),this.updatePoll(K,c.totalVotes))}};
_.G.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.G.openEditDialog=function(d){d&&d.dialog&&(this.editDialog=d.dialog,d=this.editDialogElement.firstElementChild)&&(d.focus(),d.openDialog&&d.openDialog())};
_.G.computeIsBodyHidden=function(d,H){return!!d||H};
_.H3.Object.defineProperties(RX.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var d,H;if((d=this.data)==null?0:(H=d.pollMetadataIcon)==null?0:H.iconType)return _.kv(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.voteCount)||_.AF("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.M(this.data.backstageAttachment,W_C))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.M(this.data.backstageAttachment,kzN))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.M(this.data.backstageAttachment,xqN))}}});
RX.prototype.onYtServiceRequestCompleted=RX.prototype.onYtServiceRequestCompleted;RX.prototype.onYtServiceRequestSent=RX.prototype.onYtServiceRequestSent;RX.prototype.onYtCommentPollRevert=RX.prototype.onYtCommentPollRevert;RX.prototype.onYtCommentboxDismiss=RX.prototype.onYtCommentboxDismiss;RX.prototype.onYtNavigate=RX.prototype.onYtNavigate;RX.prototype.isLoadingChanged=RX.prototype.isLoadingChanged;RX.prototype.dataChanged=RX.prototype.dataChanged;RX.prototype.contentTextChanged=RX.prototype.contentTextChanged;
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],RX.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],RX.prototype,"rendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],RX.prototype,"rendererstamperBehavior",void 0);_.t([_.VP("#contentTextExpander"),_.O("design:type",Object)],RX.prototype,"expander",void 0);
_.t([_.VP("#edit-dialog"),_.O("design:type",Element)],RX.prototype,"editDialogElement",void 0);_.t([_.r(),_.O("design:type",Object)],RX.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],RX.prototype,"hasInlineCommentSection",void 0);_.t([_.r(),_.O("design:type",Object)],RX.prototype,"editDialog",void 0);_.t([_.r(),_.O("design:type",Object)],RX.prototype,"isLoading",void 0);
_.t([_.r({computed:"computeIsPollHeaderEnabled(data)"}),_.O("design:type",Boolean)],RX.prototype,"isPollHeaderEnabled",void 0);_.t([_.r(),_.O("design:type",Object)],RX.prototype,"shouldHideAuthor",void 0);_.t([_.r(),_.O("design:type",Object)],RX.prototype,"shouldShowVideoTime",void 0);_.t([_.r(),_.O("design:type",Object)],RX.prototype,"isInEngagementPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],RX.prototype,"hideBorder",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],RX.prototype,"usesFullLockup",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],RX.prototype,"shouldShowMenuInCompactView",void 0);_.t([_.I("isInEngagementPanel"),_.O("design:type",Number),_.O("design:paramtypes",[])],RX.prototype,"postTextMaxLines",null);_.t([_.I("data.icon.iconType"),_.O("design:type",Object),_.O("design:paramtypes",[])],RX.prototype,"pollIcon",null);
_.t([_.CK("data.contentText"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],RX.prototype,"contentTextChanged",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],RX.prototype,"dataChanged",null);_.t([_.CK("isLoading"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],RX.prototype,"isLoadingChanged",null);
_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],RX.prototype,"onYtNavigate",null);_.t([_.nK("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],RX.prototype,"onYtCommentboxDismiss",null);_.t([_.nK("yt-comment-poll-revert"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],RX.prototype,"onYtCommentPollRevert",null);
_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],RX.prototype,"onYtServiceRequestSent",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],RX.prototype,"onYtServiceRequestCompleted",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],RX.prototype,"voteCount",null);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],RX.prototype,"commentCount",null);_.t([_.I("data.backstageAttachment"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],RX.prototype,"hasPoll",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],RX.prototype,"hasQuiz",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],RX.prototype,"hasUploadedVideo",null);
_.t([_.Z({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],RX);
_.T(RX,"ytd-backstage-post-renderer",function(){if(ZuX!==void 0)return ZuX;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ZuX=d},{mode:1});var tg7;var VH=function(){var d=_.B.apply(this,arguments)||this;d.editDialog=null;d.showExpandButton=!1;d.isRichGrid=!1;d.usesFullLockup=!1;return d};
_.m(VH,_.B);_.G=VH.prototype;_.G.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.originalPost":{id:"original-post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}},postRenderer:{component:"ytd-post-renderer",properties:{isRichGridRepost:"[[isRichGrid]]"}}}},editDialog:{id:"repost-edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}}};
_.G.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.G.computeShowExpandButton=function(d){return this.usesCompactLockup||d&&d.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.G.computeUsesCompactLockup=function(d){return!!d.condensedContent};
_.G.computeShowFullContentText=function(d){return!d};
_.G.onYtNavigate=function(d){d=this.get("updateCommentDialogEndpoint",d.detail.endpoint);this.openEditDialog(d)};
_.G.onYtCommentboxDismiss=function(){this.editDialog=null};
_.G.openEditDialog=function(d){d&&d.dialog&&(this.editDialog=d.dialog,d=this.repostEditDialogEl.firstElementChild)&&(d.focus(),d.openDialog&&d.openDialog())};
_.G.onTap=function(d){if(this.data){var H=null;this.usesCompactLockup&&!_.vg(_.jh(d)||[],this.hostElement,["YT-IMG-SHADOW"])?H=this.get("navigationEndpoint",this.data):d.target===this.moreButtonEl&&(H=this.get("navigationEndpoint",d.target.data));H&&_.GT(this.hostElement,"yt-navigate",{endpoint:H})}};
VH.prototype.onYtCommentboxDismiss=VH.prototype.onYtCommentboxDismiss;VH.prototype.onYtNavigate=VH.prototype.onYtNavigate;VH.prototype.dataChanged=VH.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],VH.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Object)],VH.prototype,"editDialog",void 0);_.t([_.r({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],VH.prototype,"usesCompactLockup",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],VH.prototype,"showExpandButton",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],VH.prototype,"isRichGrid",void 0);
_.t([_.r({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.O("design:type",Boolean)],VH.prototype,"showFullContentText",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],VH.prototype,"usesFullLockup",void 0);_.t([_.VP("#more"),_.O("design:type",Object)],VH.prototype,"moreButtonEl",void 0);_.t([_.VP("#repost-content-text"),_.O("design:type",HTMLElement)],VH.prototype,"repostContentTextEl",void 0);
_.t([_.VP("#repost-edit-dialog"),_.O("design:type",HTMLElement)],VH.prototype,"repostEditDialogEl",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],VH.prototype,"dataChanged",null);_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],VH.prototype,"onYtNavigate",null);
_.t([_.nK("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],VH.prototype,"onYtCommentboxDismiss",null);_.t([_.Z({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],VH);
_.T(VH,"ytd-shared-post-renderer",function(){if(tg7!==void 0)return tg7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shared-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="repost-context" hidden="[[editDialog]]" on-tap="onTap" class="style-scope ytd-shared-post-renderer">\n  <div id="repost-author-thumbnail" class="style-scope ytd-shared-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-shared-post-renderer"></yt-img-shadow>\n    </a>\n  </div>\n  <div id="repost-main" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <div id="repost-header" class="style-scope ytd-shared-post-renderer">\n      <div id="repost-header-author" class="style-scope ytd-shared-post-renderer">\n        <a id="repost-author-text" class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n          <span class="style-scope ytd-shared-post-renderer">[[getSimpleString(data.displayName)]]</span>\n        </a>\n        <yt-formatted-string id="repost-published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-shared-post-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <yt-formatted-string id="repost-content-text" force-default-style="" split-lines="[[!showFullContentText]]" text="[[data.content]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n    <tp-yt-paper-button id="more" data="[[data.expandButton.buttonRenderer]]" hidden="[[!showExpandButton]]" noink="" class="style-scope ytd-shared-post-renderer">\n      [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n    </tp-yt-paper-button>\n  </div>\n  <div id="repost-main-compact" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <yt-formatted-string id="condensed-repost-content-text" ellipsis-truncate="" force-default-style="" text="[[data.condensedContent]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="divider-line-container" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n  <div id="divider-line" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="repost-edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post" hidden="[[data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post-deleted-message" hidden="[[!data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer">\n  [[data.originalPostDeletedMessage]]\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return tg7=d},{mode:1});var YWC;var OuA;var Ux=function(){return _.B.apply(this,arguments)||this};
_.m(Ux,_.B);Ux.prototype.attached=function(){var d=this;this.networkStatusManager||(this.networkStatusManager=new _.yQ,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){d.onlineHandler()}))};
Ux.prototype.detached=function(){var d=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){d.onlineHandler()}),delete this.networkStatusManager)};
Ux.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Ux.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ux.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Ux);
_.T(Ux,"ytd-reload-page-button-renderer",function(){if(OuA!==void 0)return OuA;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reload-page-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer data="[[data]]" class="style-scope ytd-reload-page-button-renderer"></ytd-button-renderer>');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
return OuA=d},{mode:1});var SW7={EMPTY_SEARCH:"promo-full-height",HASHTAG_LANDING_PAGE_EMPTY:"hashtag-landing-page",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"hashtag-landing-page",HASHTAG_LANDING_PAGE_ERROR:"hashtag-landing-page",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"hashtag-landing-page",OFFLINE_NO_CONTENT:"offline-no-content"},hy=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return d};
_.m(hy,_.B);_.G=hy.prototype;_.G.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.G.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.G.computeHasBodyText=function(d){return!!d.bodyText};
_.G.computeButtons=function(d){var H=[];d.ctaButton&&H.push(d.ctaButton);d.secondaryButton&&H.push(d.secondaryButton);return H};
_.G.computeRendererStyle=function(d){return d.style?d.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():d.icon?"":"no-icon"};
_.G.getIconName=function(d,H){H=H===void 0?!1:H;if(d===void 0)return"";d=this.get("icon.iconType",d);var K;_.h("enable_hlp_client_icon_pick")?K=this.getThemedIcon(d,H):K=d;(H=SW7[K])||(H="yt-icons");return[H,K].join(":")};
_.G.getThemedIcon=function(d,H){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(d)?H?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(d)?H?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":d};
_.G.isThumbnail=function(d){return!!d.thumbnail};
_.G.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.G.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],hy.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],hy.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],hy.prototype,"data",void 0);
_.t([_.r({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.O("design:type",String)],hy.prototype,"rendererStyle",void 0);_.t([_.r({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.O("design:type",String)],hy.prototype,"iconName",void 0);_.t([_.r({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],hy.prototype,"thumbnail",void 0);_.t([_.r({computed:"computeButtons(data)"}),_.O("design:type",Array)],hy.prototype,"buttons",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],hy.prototype,"isDarkTheme",void 0);_.t([_.r({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],hy.prototype,"hasBodyText",void 0);_.t([_.Z({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],hy);
_.T(hy,"ytd-background-promo-renderer",function(){if(YWC!==void 0)return YWC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-background-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="image style-scope ytd-background-promo-renderer" hidden="[[!data.icon]]" icon="[[iconName]]"></yt-icon>\n<yt-img-shadow class="image style-scope ytd-background-promo-renderer" height="[[data.thumbnail.thumbnails.height]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnail.thumbnails.width]]">\n</yt-img-shadow>\n<div class="promo-message style-scope ytd-background-promo-renderer">\n  <div class="promo-title style-scope ytd-background-promo-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string class="promo-body-text style-scope ytd-background-promo-renderer" split-lines="" text="[[data.bodyText]]">\n  </yt-formatted-string>\n</div>\n<div id="buttons" hidden="[[!data.ctaButton]]" class="style-scope ytd-background-promo-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return YWC=d},{mode:1});var E93;var LQ=function(){var d=_.B.apply(this,arguments)||this;d.collections=_.h("web_modern_collections_v2");return d};
_.m(LQ,_.B);_.H3.Object.defineProperties(LQ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c,p,g;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(d=this.data)==null?void 0:(H=d.thumbnail)==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:(K=this.data)==null?void 0:(c=K.thumbnail)==null?void 0:c.vibrantColorPalette,darkColorPalette:(p=this.data)==null?void 0:(g=p.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],LQ.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],LQ.prototype,"collections",void 0);_.t([_.I("data","collections"),_.O("design:type",Object),_.O("design:paramtypes",[])],LQ.prototype,"collectionStack",null);_.t([_.Z({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],LQ);
_.T(LQ,"ytd-compact-station-renderer",function(){if(E93!==void 0)return E93;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-station-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="flex-container style-scope ytd-compact-station-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-station-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-station-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" width="118" class="style-scope ytd-compact-station-renderer"></ytd-thumbnail>\n  </div>\n  <a class="yt-simple-endpoint style-scope ytd-compact-station-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.title)]]\n    </h3>\n    <div id="flex-item" class="style-scope ytd-compact-station-renderer">\n      <p id="description" title$="[[getSimpleString(data.description)]]" class="style-scope ytd-compact-station-renderer">\n        [[getSimpleString(data.description)]]\n      </p>\n    </div>\n    <p id="video-count-text" class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.videoCountText)]]\n    </p>\n  </a>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return E93=d},{mode:1});var yr7;var ME=function(){var d=_.B.apply(this,arguments)||this;d.isRichGrid=!1;return d};
_.m(ME,_.B);ME.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ME.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ME.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ME.prototype,"isRichGrid",void 0);_.t([_.Z({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],ME);
_.T(ME,"ytd-grid-channel-renderer",function(){if(yr7!==void 0)return yr7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel" class="style-scope ytd-grid-channel-renderer">\n  <a id="channel-info" class="yt-simple-endpoint style-scope ytd-grid-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow height="103" thumbnail="[[data.thumbnail]]" width="103" class="style-scope ytd-grid-channel-renderer"> </yt-img-shadow>\n    <span id="title" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="thumbnail-attribution" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.subscriberCountText)]]</span>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-channel-renderer">\n    </ytd-badge-supported-renderer>\n  </a>\n  <div id="subscribe" hidden="[[!data.subscribeButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n  <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return yr7=d},{mode:1});var bul;var mD=function(){return _.B.apply(this,arguments)||this};
_.m(mD,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],mD.prototype,"data",void 0);_.t([_.Z({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],mD);
_.T(mD,"ytd-grid-movie-playlist-renderer",function(){if(bul!==void 0)return bul;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail width="210" data="[[data]]" bottom-side-panel="" class="style-scope ytd-grid-movie-playlist-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-playlist-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-playlist-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-playlist-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer id="badges" badges="[[data.ownerBadges]]" hidden="[[!data.ownerBadges]]" class="style-scope ytd-grid-movie-playlist-renderer">\n</ytd-badge-supported-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return bul=d},{mode:1});var N13;var w$=function(){var d=_.B.apply(this,arguments)||this;d.downloadProgress=0;d.transferState="TRANSFER_STATE_UNKNOWN";d.modernButtons=_.h("web_modern_buttons");d.useModernCollectionsV2=_.h("web_modern_collections_v2");return d};
_.m(w$,_.B);w$.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
w$.prototype.configureRendererStamper=function(){return{"data.menu":Ug}};
w$.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
w$.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.h("woffle_playlist_renderer_killswitch")){var d,H=EC1(this.entityInfo,this.transferState,this.downloadProgress,(d=this.data)==null?void 0:d.playlistId,this.isOnline);d=H.viewPlaylistText;var K=H.badges;H=H.thumbnailOverlays;this.isDownloads=!!d||!!K;this.set("data.viewPlaylistText",d);K&&K.length>0&&this.set("data.badges",K);H&&H.length>0&&this.set("data.thumbnailOverlays",
H)}};
_.H3.Object.defineProperties(w$.prototype,{downloadState:{configurable:!0,enumerable:!0,get:function(){return this.transferState&&this.transferState!=="TRANSFER_STATE_UNKNOWN"?this.transferState==="TRANSFER_STATE_COMPLETE"?"DOWNLOADED":"DOWNLOADING":""}},
menuHidden:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null?0:d.menu)}}});
w$.prototype.transferStateChanged=w$.prototype.transferStateChanged;w$.prototype.dataChanged=w$.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.fe),_.O("design:type",Object)],w$.prototype,"ytdLockupBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],w$.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.r({selector:_.pmM,selectorArgs:["data.playlistId"]}),_.O("design:type",Object)],w$.prototype,"downloadProgress",void 0);_.t([_.r({selector:_.tF,selectorArgs:["data.playlistId"]}),_.O("design:type",Object)],w$.prototype,"transferState",void 0);_.t([_.r({selector:c$F,selectorArgs:["data.playlistId"]}),_.O("design:type",Object)],w$.prototype,"entityInfo",void 0);_.t([_.r({selector:_.TR}),_.O("design:type",Boolean)],w$.prototype,"isOnline",void 0);
_.t([_.r(),_.O("design:type",Object)],w$.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],w$.prototype,"downloadRenderData",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],w$.prototype,"modernButtons",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],w$.prototype,"isDownloads",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],w$.prototype,"useModernCollectionsV2",void 0);
_.t([_.I("transferState"),_.r({reflectToAttribute:!0}),_.O("design:type",String),_.O("design:paramtypes",[])],w$.prototype,"downloadState",null);_.t([_.I("data"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],w$.prototype,"menuHidden",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],w$.prototype,"dataChanged",null);
_.t([_.Mr("transferState","downloadProgress","isOnline"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],w$.prototype,"transferStateChanged",null);_.t([_.Z({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],w$);
_.T(w$,"ytd-grid-playlist-renderer",function(){if(N13!==void 0)return N13;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="118" data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-playlist-renderer">\n  <h3 class="style-scope ytd-grid-playlist-renderer">\n    <a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-playlist-renderer">\n  </ytd-badge-supported-renderer>\n  <div id="menu" class="style-scope ytd-grid-playlist-renderer"></div>\n  <yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-grid-playlist-renderer">\n  </yt-formatted-string>\n  <yt-interaction id="interaction" class="extended style-scope ytd-grid-playlist-renderer"></yt-interaction>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return N13=d},{mode:1});var D93;var P2=function(){var d=_.B.apply(this,arguments)||this;d.collections=_.h("web_modern_collections_v2");return d};
_.m(P2,_.B);P2.prototype.configureRendererStamper=function(){return{"data.menu":Ug,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.H3.Object.defineProperties(P2.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c,p,g;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(d=this.data)==null?void 0:(H=d.thumbnail)==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:(K=this.data)==null?void 0:(c=K.thumbnail)==null?void 0:c.vibrantColorPalette,darkColorPalette:(p=this.data)==null?void 0:(g=p.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],P2.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],P2.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(_.fe),_.O("design:type",Object)],P2.prototype,"ytdLockupBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],P2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],P2.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],P2.prototype,"collections",void 0);_.t([_.I("data","collections"),_.O("design:type",Object),_.O("design:paramtypes",[])],P2.prototype,"collectionStack",null);_.t([_.Z({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],P2);
_.T(P2,"ytd-grid-radio-renderer",function(){if(D93!==void 0)return D93;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-grid-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-grid-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div id="details" class="style-scope ytd-grid-radio-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-grid-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-grid-radio-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-radio-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-radio-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <ytd-video-meta-block class="grid style-scope ytd-grid-radio-renderer" data="[[data]]" radio-meta=""></ytd-video-meta-block>\n    </a>\n    <div id="menu" class="style-scope ytd-grid-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-grid-radio-renderer">\n  <div id="dismissed-content" class="style-scope ytd-grid-radio-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-radio-renderer"></yt-interaction>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return D93=d},{mode:1});var f33;var uN=function(){var d=_.B.apply(this,arguments)||this;d.useModernCollectionsV2=_.h("web_modern_collections_v2");return d};
_.m(uN,_.B);uN.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
uN.prototype.computeNavigationEndpoint=function(d){return jhX(d==null?void 0:d.navigationEndpoint)};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],uN.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],uN.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.fe),_.O("design:type",Object)],uN.prototype,"ytdLockupBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],uN.prototype,"data",void 0);_.t([_.r({computed:"computeNavigationEndpoint(data)"}),_.O("design:type",Object)],uN.prototype,"computedNavigationEndpoint",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],uN.prototype,"useModernCollectionsV2",void 0);_.t([_.Z({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],uN);
_.T(uN,"ytd-grid-show-renderer",function(){if(f33!==void 0)return f33;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="210" class="style-scope ytd-grid-show-renderer"></ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-show-renderer">\n  <a id="title" class="yt-simple-endpoint style-scope ytd-grid-show-renderer" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]">\n    <h3 class="style-scope ytd-grid-show-renderer">\n      <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="grid style-scope ytd-grid-show-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n  </ytd-badge-supported-renderer>\n  <div id="offer-button" class="style-scope ytd-grid-show-renderer"></div>\n  <div id="menu" class="style-scope ytd-grid-show-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-show-renderer"></yt-interaction>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return f33=d},{mode:1});var Ar3;_.IX=function(d){this.playerClient=d};
_.jWg=function(d,H,K){K=K===void 0?{}:K;return d.playerClient.setOption("ad",H,K)};
_.IX.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.IX.prototype.executeCommand=function(d,H){this.getOptions().includes("executeCommand")?_.jWg(this,"executeCommand",{command:d,layoutId:H}):_.Db("Calling executeCommand when adModule is not loaded")};var r$=function(){return _.B.apply(this,arguments)||this};
_.m(r$,_.B);r$.prototype.getLayoutId=function(){var d=_.OS("yt.www.ads.eventcache.getLastCompanionData");return d?(d=d())&&d.layoutId:null};
r$.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var d=_.Kf(),H=this.getLayoutId(),K=this.data.clickthroughEndpoint;d&&H&&_.h("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?d.getPlayerPromise().then(function(c){(new _.IX(c)).executeCommand(K,H)}):_.GT(this.hostElement,"yt-navigate",{endpoint:K})}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],r$.prototype,"data",void 0);_.t([_.Z({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],r$);
_.T(r$,"ytd-shopping-companion-item-renderer",function(){if(Ar3!==void 0)return Ar3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shopping-companion-item-container" on-tap="onTap" class="style-scope ytd-shopping-companion-item-renderer">\n  <div id="card" class="style-scope ytd-shopping-companion-item-renderer">\n    <yt-img-shadow id="image" thumbnail="[[data.image]]" class="style-scope ytd-shopping-companion-item-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-shopping-companion-item-renderer">\n      <span id="headline" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.headline)]]</span>\n      <span id="price" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.priceText)]]</span>\n    </div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Ar3=d},{mode:1});var v9d;var W2=function(){var d=_.B.apply(this,arguments)||this;d.isExpandableContent=!1;return d};
_.m(W2,_.B);_.H3.Object.defineProperties(W2.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return((d=this.data)==null?void 0:d.price)||((H=this.data)==null?void 0:(K=H.dealsData)==null?void 0:K.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var d,H;if((d=this.data)!=null&&d.dealsData&&((H=this.data)==null||!H.priceReplacementText)){d=this.data.dealsData;var K,c,p;return((K=d.salesData)==null?void 0:K.originalPrice)||((c=d.priceDropData)==null?void 0:c.referencePrice)||((p=d.promotionData)==null?void 0:p.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var d,H;return(d=this.data)==null?void 0:(H=d.dealsData)==null?void 0:H.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],W2.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],W2.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],W2.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],W2.prototype,"isExpandableContent",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],W2.prototype,"showCta",null);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],W2.prototype,"ctaText",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],W2.prototype,"hasPriceTopPosition",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],W2.prototype,"hasPriceBottomPosition",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],W2.prototype,"useNewStyle",null);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],W2.prototype,"showPriceReplacementText",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],W2.prototype,"priceValue",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],W2.prototype,"showDeal",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],W2.prototype,"showAffiliateDisclaimer",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],W2.prototype,"useSaleStyle",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],W2.prototype,"useFromBrandCtaStyle",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],W2.prototype,"useFromVendorCtaStyle",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],W2.prototype,"useShoppingCollectionCtaStyle",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],W2);
_.T(W2,"ytd-vertical-product-card-renderer",function(){if(v9d!==void 0)return v9d;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-product-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a id="product-card-renderer-container" class="yt-simple-endpoint style-scope ytd-vertical-product-card-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]" aria-label="[[data.accessibilityTitle]]">\n  <div id="card-with-protection" data-offer-version-id$="[[data.debugOfferVersionId]]" class="style-scope ytd-vertical-product-card-renderer">\n    <div id="product-image" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n      <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-vertical-product-card-renderer"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-vertical-product-card-renderer">\n      <div id="product-name" class="product-info-row style-scope ytd-vertical-product-card-renderer">[[data.title]]</div>\n\n      <template is="dom-if" restamp="" if="[[hasPriceTopPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <div id="variants-description" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n        [[data.variantsDescription]]\n      </div>\n\n      <template is="dom-if" restamp="" if="[[showCta]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <yt-formatted-string class="cta-row style-scope ytd-vertical-product-card-renderer" text="[[ctaText]]">\n          </yt-formatted-string>\n          <template is="dom-if" restamp="" if="[[data.showOpenInNewIcon]]" class="style-scope ytd-vertical-product-card-renderer">\n            <yt-icon class="cta-row hover-icon style-scope ytd-vertical-product-card-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[hasPriceBottomPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[showAffiliateDisclaimer]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <div id="affiliate-disclaimer" class="style-scope ytd-vertical-product-card-renderer">[[data.affiliateDisclaimer]]</div>\n        </div>\n      </template>\n    </div>\n  </div>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return v9d=d},{mode:1});var dPM;var B2=function(){return _.B.apply(this,arguments)||this};
_.m(B2,_.B);B2.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],B2.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],B2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.fe),_.O("design:type",Object)],B2.prototype,"ytdLockupBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],B2.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],B2);
_.T(B2,"ytd-grid-movie-renderer",function(){if(dPM!==void 0)return dPM;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-movie-renderer">\n</ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <span class="grid-movie-renderer-metadata style-scope ytd-grid-movie-renderer" hidden="[[!data.metadata]]">\n    [[getSimpleString(data.metadata)]]\n  </span>\n  \n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer class="badges style-scope ytd-grid-movie-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n</ytd-badge-supported-renderer>\n<div id="offer-button" class="style-scope ytd-grid-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-movie-renderer"></yt-interaction>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return dPM=d},{mode:1});var Hv0;var zs=function(){var d=_.B.apply(this,arguments)||this;d.rounded=!0;d.itemStyle="small-item";return d};
_.m(zs,_.B);zs.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var d,H,K,c,p=(H=_.M((d=this.data)==null?void 0:d.buttonCommand,_.La))==null?void 0:(K=H.item)==null?void 0:(c=K.notificationTextRenderer)==null?void 0:c.successResponseText;p&&_.MgX(this.hostElement,p)}};
_.H3.Object.defineProperties(zs.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?void 0:d.isProductPlaceholder)!==void 0&&((H=this.data)==null?void 0:H.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],zs.prototype,"ytRendererBehavior",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],zs.prototype,"rounded",void 0);_.t([_.r(),_.O("design:type",Object)],zs.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],zs.prototype,"itemStyle",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],zs.prototype,"hasPrice",null);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],zs.prototype,"hasPriceReplacementText",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],zs.prototype,"hasAdditionalFeesText",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],zs.prototype,"hasAffiliateDisclaimer",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],zs.prototype,"isProductPlaceholder",null);
_.t([_.r(),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],zs.prototype,"hideOpenInNewIcon",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],zs.prototype,"ariaLabel",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],zs);
_.T(zs,"ytd-merch-shelf-item-renderer",function(){if(Hv0!==void 0)return Hv0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a class="yt-simple-endpoint style-scope ytd-merch-shelf-item-renderer" href$="[[computeHref_(data.buttonCommand)]]" data="[[data.buttonCommand]]" aria-label$="[[ariaLabel]]" data-offer-version-id$="[[data.debugOfferVersionId]]" on-click="showSnackbarIfPlaceholder">\n  <div class="product-item style-scope ytd-merch-shelf-item-renderer">\n    <yt-img-shadow class="product-item-image style-scope ytd-merch-shelf-item-renderer" height="90" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="90"></yt-img-shadow>\n    <template is="dom-if" restamp="" if="[[isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper product-placeholder-item-info-center style-scope ytd-merch-shelf-item-renderer">\n          <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[!isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-info-wrapper-row-1 style-scope ytd-merch-shelf-item-renderer">\n            <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n            <template is="dom-if" restamp="" if="[[hasPrice]]" class="style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-price-wrapper style-scope ytd-merch-shelf-item-renderer">\n                <template is="dom-if" restamp="" if="[[hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.priceReplacementText]]</div>\n                </template>\n                <template is="dom-if" restamp="" if="[[!hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.price]]</div>\n                  <div class="product-item-additional-fees-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAdditionalFeesText]]">\n                    [[data.additionalFeesText]]\n                  </div>\n                </template>\n              </div>\n            </template>\n            <div no-price$="[[!hasPrice]]" class="cta-item-hide link-item-hide product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">\n                [[data.vendorName]]\n                <yt-icon class="product-item-merchant-icon product-item-merchant-icon--inline style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n              </div>\n              \n              <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n            </div>\n          </div>\n          <div class="small-item-hide large-item-hide product-item-info-wrapper-row-2 style-scope ytd-merch-shelf-item-renderer">\n            <div class="affiliate-disclaimer-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAffiliateDisclaimer]]">\n              [[data.affiliateDisclaimer]]\n            </div>\n            <div class="product-item-description style-scope ytd-merch-shelf-item-renderer">[[data.description]]</div>\n          </div>\n        </div>\n      </div>\n      <div class="small-item-hide large-item-hide link-item-hide product-item-button-wrapper style-scope ytd-merch-shelf-item-renderer" hidden="[[isProductPlaceholder]]">\n        <div class="product-item-button style-scope ytd-merch-shelf-item-renderer">[[data.buttonText]]</div>\n        <div class="product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">[[data.vendorName]]</div>\n          <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n        </div>\n      </div>\n    </template>\n  </div>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Hv0=d},{mode:1});var $PA=_.H1(function(d){return _.x("button-card-view-model",{el:_.$M(_.Tx(function(){return d.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return d.data().title},
role:"button"},_.x(_.am,{model:{}}),_.x("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.x("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.x(_.n,{cond:function(){return d.data().image},
then:function(H){return _.x(_.d7,{data:H,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.x("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return d.data().title})))},"hb");_.h("web_button_view_model_wcw_registration_killswitch")||_.iV($PA,"button-card-view-model",{props:{data:_.dl}});_.iV(_.H1(function(d){d=_.dg(d,{className:void 0});var H=d.data;d=d.className;var K=_.ey(function(){return H().onTapCommand},void 0,"NprDr");
return _.x("ytd-shopping-item-card",{class:_.xM("ytdShoppingItemCardHost",d)},_.x(_.Oj,{command:K,className:"ytdShoppingItemCardHostLink"},_.x("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.x(_.wB,{data:function(){return H().thumbnailViewModel}},{thumbnailViewModel:function(c){return _.x(_.$A,{data:c.data,
aspectRatio:3})}})),_.x("div",null,_.x("p",{class:"ytdShoppingItemCardHostItemTitle"},_.x(_.j$,{text:function(){return H().itemTitle}})),_.x("p",{class:"ytdShoppingItemCardHostPrice"},_.x(_.j$,{text:function(){return H().priceOrStatus}})))))},"ib"),"ytd-shopping-item-card",{props:{data:_.dl,
className:_.dl}});var K83={isAdsVideo:!0},cjM={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},p_A={showPlayerControls:!1,videoPreviewDurationMs:15E3},g7M={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var AW=null,m91={};var unl="WEB_PAGE_TYPE_ACCOUNTS WEB_PAGE_TYPE_WELCOME WEB_PAGE_TYPE_ACCOUNT_SELECTOR WEB_PAGE_TYPE_SIGN_IN_IDENTIFIER_ENTRY WEB_PAGE_TYPE_SIGN_IN_PASSWORD_ENTRY WEB_PAGE_TYPE_SIGN_IN_DEVICE_PROMPT_CHALLENGE WEB_PAGE_TYPE_UNKNOWN".split(" "),XY={},I3h=(XY.FEwhat_to_watch="home",XY.FEhashtag="hashtag",XY.FEtrending="trending",XY.FEhistory="history",XY.SPunlimited="premium",XY.FEmemberships_and_purchases="paid_memberships",XY.SPredeem_code="redeem",XY.SPverify_location="locate",XY.SPminor_moment="minor_moment",
XY.FEmini_app_container="mini_app",XY.FEnews_destination="news",XY.SPopen_in_app="open_in_app",XY.FEexplore="explore",XY.FEsubscriptions="subscriptions",XY.FEsfv_audio_pivot="sfv_audio_pivot",XY.FEplaylist_aggregation="playlist_aggregation",XY);document.getElementById("theme-meta");document.getElementById("app");document.getElementById("player");document.getElementById("player-container-id");document.getElementById("player-control-container");document.getElementById("player-endscreen-container");document.getElementById("player-shorts-container");document.getElementById("player-cinematics-container");document.getElementById("full-screen-content-id");_.e5("init");var iv0=function(){},aZM=_.H1(function(d){var H=d.data;
var K=d.inlineMetadata;var c=d.aspectRatio;var p=d.scrimStyle;var g=d.className;var a=d.useDefaultStyle;var e=new iv0,k=_.h("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",C=_.ey(function(){return(a==null?0:a())?k==="SHORTS_LOCKUP_STYLE_SLIM":H().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ibyPNe"),R=_.ey(function(){return _.IH(K)||C()||!1},void 0,"F6KaVc"),V=function(){return(p==null?void 0:p())!==void 0?p==null?void 0:p():1},U=_.ey(function(){return H().belowThumbnailMetadata||
!R()},void 0,"t2xwLe");
d=_.cV({visibilityCallback:function(v){var el=H().onFirstVisible;v&&el&&_.EG(el)},
showOption:{calledOnce:!0,state:"visible"}});var L=_.$M(),w={},W=_.xM(function(){return C(),"shortsLockupViewModelHostThumbnailContainer"},(w.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.IH(c)===1},w.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.IH(c)===2},w.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.h("web_shorts_2_by_3_lockups_study")&&!_.h("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
w)),J=_.ey(function(){if(_.IH(c)===1)return 1;
_.IH(c);return 2},void 0,"LG7swb"),F,Y=function(){if(e){var v;
(v=F)==null||f8(v);var el;if(e.hostElement&&((el=e.data)==null?0:el.inlinePlayerData)){v=Object.assign({},g7M);var l1,V4;((l1=e.data)==null?void 0:(V4=l1.inlinePlayerData)==null?void 0:V4.maxPlaybackLengthSec)!==void 0&&(v.videoPreviewDurationMs=e.data.inlinePlayerData.maxPlaybackLengthSec*1E3);F=Y6({mediaRenderer:e,lockupElement:e.hostElement,thumbnailElement:L.value,videoPreviewOpts:v})}}};
_.wc(function(){e&&(e.data=H(),Y())},"adXpp");
var A=_.ey(function(){return H().thumbnail},void 0,"cFasFe");
w=_.ey(function(){return H().badge},void 0,"a2oavc");
var E=_.ey(function(){return H().onTap},void 0,"jb0oIf"),N={},y={};
return _.x("ytm-shorts-lockup-view-model",{el:_.$M(function(v){e&&(e.hostElement=v)},Y,d),
class:_.xM("shortsLockupViewModelHost",g)},_.x(_.HE,null,_.x(_.Oj,{command:E,className:_.xM("shortsLockupViewModelHostEndpoint",(N.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!U()},N),"reel-item-endpoint",""),
ariaHidden:function(){return!R()},
tabIndex:function(){return R()?0:-1}},_.x("div",{el:L,
class:_.xM("shortsLockupViewModelHostThumbnailParentContainer",(y.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!C()},y))},_.x(_.n,{cond:A,
then:function(){return _.x("div",{class:W},_.x(_.d7,{data:function(){var v;return(v=A==null?void 0:A())!=null?v:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.x(_.wB,{data:function(){return H().thumbnailViewModel}},{thumbnailViewModel:function(v){return _.x(_.$A,{data:v.data,
aspectRatio:function(){return J()},
disableRounding:function(){return C()}})}}),null),_.x(_.n,{cond:R,
then:function(){return _.x(GP6,{data:H,scrimStyle:V,useDefaultStyle:a})}}),_.x(_.wB,{data:w},{badgeViewModel:function(v){return _.x(_.g$,{data:v.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.x(_.n,{cond:function(){return R()&&H().menuOnTap},
then:function(){return _.x(o77,{data:H,inlineMetadata:!0})}}),_.x(_.n,{cond:U,
then:function(){return _.x(qJd,{data:H,useDefaultStyle:a,inlineMetadata:R})}})))},"jb"),GP6=_.H1(function(d){var H=d.data;
var K=d.scrimStyle;var c=d.useDefaultStyle;var p=_.h("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",g=c&&_.h("web_hide_primary_text_for_pivot_panel"),a=_.ey(function(){return(c==null?0:c())?p==="SHORTS_LOCKUP_STYLE_SLIM":H().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"o1uIvc");
d={};d=_.xM("shortsLockupViewModelHostInlineMetadata",(d.shortsLockupViewModelHostMetadataRounded=function(){return!a()},d.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(K==null?void 0:K())===3&&!_.h("enable_shorts_lockup_new_scrim")},d.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(K==null?void 0:K())===3&&_.h("enable_shorts_lockup_new_scrim")},d.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(K==null?void 0:K())===2||(K==null?void 0:
K())===4},d.shortsLockupViewModelHostShowOverPlayer=function(){return!0},d),"image-overlay-text");
var e={};return _.x("div",{class:d},_.x("h3",{class:_.xM("shortsLockupViewModelHostMetadataTitle",(e.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(K==null?void 0:K())===4},e.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return H().belowThumbnailMetadata},e)),
"aria-label":function(){return H().accessibilityText}},_.x(_.n,{cond:function(){var k;
return!((k=H().overlayMetadata)==null||!k.primaryText)&&!g},
then:function(){return _.x(_.j$,{text:function(){var k;return(k=H().overlayMetadata)==null?void 0:k.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.x(_.n,{cond:function(){var k;
return(k=H().overlayMetadata)==null?void 0:k.secondaryText},
then:function(){return _.x(lZN,{data:H,scrimStyle:K,className:void 0})}}))},"kb"),qJd=_.H1(function(d){var H=d.data;
var K=d.useDefaultStyle;var c=d.inlineMetadata;var p=_.h("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",g=_.ey(function(){return(K==null?0:K())?p==="SHORTS_LOCKUP_STYLE_SLIM":H().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c4LgDb"),a=_.$M(),e;
d=_.n7(function(L){if(_.sj(_.JW(L),a.value,["AVATAR-VIEW-MODEL"]))return!1;var w;(w=e)==null||w.click();return!1});
var k=_.ey(function(){return H().belowThumbnailMetadata||H().overlayMetadata},void 0,"YLe6Mc"),C=function(){return H().menuOnTap&&!c()},R=function(){var L;
return(L=k())==null?void 0:L.avatar},V={},U={};
return _.x("div",{class:_.xM(function(){return g()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(V.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!R()},V.shortsLockupViewModelHostOutsideMetadataHasMenu=C,V)),
"on:click":d,el:a,role:"presentation"},_.x(_.wB,{data:R},{avatarViewModel:function(L){return _.x("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.x(_.JV,{data:L.data}))}}),_.x("div",null,_.x("h3",{class:_.xM("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(U.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var L,w;
return!((L=k())==null?0:(w=L.primaryText)==null?0:w.content)},U.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=c,U)),
role:"presentation"},_.x(_.Oj,{ref:function(L){return void(e=L)},
command:function(){return H().onTap},
className:_.xM("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var L,w;return(L=k())==null?void 0:(w=L.primaryText)==null?void 0:w.content},
"aria-label":function(){return H().accessibilityText}},_.x(_.n,{cond:function(){var L;
return(L=k())==null?void 0:L.primaryText},
then:function(L){return _.x(_.j$,{text:L,noEndpoints:!0,noStyleRuns:!0})}}))),_.x(_.n,{cond:function(){var L;
return(L=k())==null?void 0:L.secondaryText},
then:function(L){return _.x("div",{class:_.xM("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.x(_.j$,{text:L,noStyleRuns:!0}))}})),_.x(_.n,{cond:C,
then:function(){return _.x(o77,{data:H,inlineMetadata:!1})}}))},"lb"),lZN=_.H1(function(d){var H=d.data;
var K=d.scrimStyle;d=d.className;var c={};return _.x("div",{class:_.xM((c.shortsLockupViewModelHostMetadataSubhead=function(){return(K==null?void 0:K())!==4},c.shortsLockupViewModelHostMetadataSubheadNew=_.h("enable_shorts_lockup_new_scrim"),c.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(K==null?void 0:K())===4},c),d),
"aria-hidden":"true"},_.x(_.j$,{text:function(){var p;return(p=H().overlayMetadata)==null?void 0:p.secondaryText},
noStyleRuns:!0}))},"mb"),o77=_.H1(function(d){var H=d.data;
var K=d.inlineMetadata;d={};d=_.xM((d.shortsLockupViewModelHostInlineMetadataMenu=function(){return K()},d.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!K()},d.shortsLockupViewModelHostShowOverPlayer=function(){return!0},d),"image-overlay-text");
return _.x("div",{class:d},_.x(_.kk,{data:function(){return{style:K()?"overlay":"mono",accessibilityLabel:H().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(c){c.preventDefault();c.stopPropagation();var p=_.OG({elementsCommand:H().menuOnTap,forceNewState:!0});if(p==null?0:p.onclick)p.onclick(c)}}},
iconName:"MORE_VERT"}))},"nb");var eEU=_.H1(function(d){var H=d.data;var K=d.inlineMetadata;var c=d.aspectRatio;var p=d.scrimStyle;var g=d.className;var a=d.useDefaultStyle;d=_.ey(function(){var e=H().entityId;return e?e.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.x("ytm-shorts-lockup-view-model-v2",{class:_.xM("shortsLockupViewModelHost",g)},_.x(_.oX,{contentId:d,aspectRatio:function(){return(c==null?void 0:c())===1?1:(c==null?void 0:c())===2?2:4}},function(){return _.x(aZM,{data:H,
inlineMetadata:K,aspectRatio:c,scrimStyle:p,className:g,useDefaultStyle:a})}))},"ob");_.iV(eEU,"ytm-shorts-lockup-view-model-v2",{props:{data:_.p7,inlineMetadata:_.p7,aspectRatio:_.p7,scrimStyle:_.p7,className:_.p7,useDefaultStyle:_.p7}});var kPA=16/9*210,Jy=function(){var d=_.B.apply(this,arguments)||this;d.isExpandableContent=!1;d.hideShelfHeader=!1;d.engagementPanel=!1;d.buttonClasses=["arrow"];d.isSearch=!1;d.disableScrollEventListener=!1;d.containsLockup=!1;d.overrideArrowPositionForProductCard=!1;d.overrideArrowPositionForShoppingItemCard=!1;d.overrideArrowPositionForReelItems=!1;d.overrideArrowPositionForGridMovie=!1;d.overrideArrowPositionToCenter=!1;d.isSearchPostShelf=!1;d.overrideArrowPositionForMixedShelf=!1;d.overrideArrowPositionForMixedShelfShortsOnly=
!1;d.hasBigThumbsReelItems=!1;d.shouldUseMixedListHeight=!1;d.shouldUseShortsListHeight=!1;d.gridVideoWidth=0;d.isSearchVodShelf=!1;d.disableWheelScroll=!1;d.sizing="COMPACT";d.shortsLockupAspectRatio=0;return d};
_.m(Jy,_.B);_.G=Jy.prototype;
_.G.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",params:{className:"yt-horizontal-list-renderer"},properties:{aspectRatio:"[[shortsLockupAspectRatio]]"}},sharedPostRenderer:"ytd-shared-post-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",
properties:{isExpandableContent:"[[isExpandableContent]]"}},buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonCardViewModel:{component:"button-card-view-model"}}},"data.previousButton":{id:"left-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},classListBinding:"[[buttonClasses]]"}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"},classListBinding:"[[buttonClasses]]"}}}}};
_.G.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.h("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.G.computeInitialCountNumber=function(d){if(!d)return 6;var H=d.items.some(function(g){return!!g.topicRecommendationsChipRenderer}),K=d.items.some(function(g){return!!g.displayAdRenderer}),c=this.computeShouldListItemsHaveEqualHeight(d),p=d.items.some(function(g){return!!g.gridPlaylistRenderer});
d=d.items.some(function(g){return!!g.shoppingItemCardViewModel});
return H?9:K?8:p||c?10:d?7:6};
_.G.computeContainsPost=function(d){return!!d&&!!d.items&&d.items.some(function(H){return!!H.postRenderer})};
_.G.computeContainsLockup=function(){if(_.h("web_horizontal_list_lockup_arrow_killswitch"))return!1;var d,H;return(d=this.data)==null?void 0:(H=d.items)==null?void 0:H.some(function(K){return!!K.lockupViewModel})};
_.G.maybeUpdateLockupAspectRatio=function(){var d,H;if(this.computeContainsLockup()&&((d=this.data)==null?0:(H=d.items)==null?0:H.length)){var K;d=DnX((K=this.data.items[0].lockupViewModel)==null?void 0:K.contentType,this.data.force16By9ThumbnailAspectRatio);K=NG5(d);K=this.computeLockupWidth()/K;_.eO(this.hostElement,{"--yt-horizontal-list-content-height":K+"px"})}};
_.G.computeOverrideArrowPositionForProductCard=function(d){if(this.isExpandableContent)return!1;var H;return!!(d==null?0:(H=d.items)==null?0:H.some(function(K){return!!K.verticalProductCardRenderer}))};
_.G.computeOverrideArrowPositionForShoppingItemCard=function(d){var H;return!!(d==null?0:(H=d.items)==null?0:H.some(function(K){return!!K.shoppingItemCardViewModel}))};
_.G.computeOverrideArrowPositionForReelItemRenderer=function(d){return this.containsReelItemRenderer(d)};
_.G.computeHasBigThumbsReelItems=function(d,H){return d&&this.containsReelItemRenderer(H)};
_.G.computeShouldListItemsHaveEqualHeight=function(d){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(d==null?void 0:d.itemSizeConstraint)};
_.G.computeShouldListItemsHaveShortsHeight=function(d){return this.computeShouldListItemsHaveEqualHeight(d)&&!this.containsGridVideoRenderer(d)};
_.G.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.G.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.G.containsReelItemRenderer=function(d){var H;return!!(d==null?0:(H=d.items)==null?0:H.some(function(K){return!(!K.reelItemRenderer&&!K.shortsLockupViewModel)}))};
_.G.containsGridVideoRenderer=function(d){var H;return!!(d==null?0:(H=d.items)==null?0:H.some(function(K){return!!K.gridVideoRenderer||!!K.lockupViewModel}))};
_.G.computeContainsGridMovieRenderer=function(d){var H;return!!(d==null?0:(H=d.items)==null?0:H.some(function(K){return!!K.gridMovieRenderer}))};
_.G.computeOverrideArrowPositionToCenter=function(d){return this.computeIsSearchPostShelf(d)};
_.G.computeIsSearchPostShelf=function(d){var H;return!!(d==null?0:(H=d.items)==null?0:H.some(function(K){var c,p;return((p=(c=K.postRenderer)==null?void 0:c.surface)!=null?p:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.G.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(d){var H;return!!(d==null?0:(H=d.items)==null?0:H.some(function(K){var c,p,g;return((g=(c=K.backgroundPromoRenderer)==null?void 0:(p=c.style)==null?void 0:p.value)!=null?g:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.G.computeIsSearchVodShelf=function(d,H){return d&&this.containsGridVideoRenderer(H)};
_.G.computeDisableWheelScroll=function(d,H){return this.computeIsSearchVodShelf(d,H)};
_.G.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.G.computeShortsLockupAspectRatio=function(){return 1};
_.G.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.eO(this.hostElement,{"--ytd-reel-item-thumbnail-height":kPA+"px"})};
Jy.prototype.dataChanged=Jy.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Jy.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Jy.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.oL.YtdHorizontalListBehavior),_.O("design:type",Object)],Jy.prototype,"ytdHorizontalListBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Jy.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Object)],Jy.prototype,"isExpandableContent",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"hideShelfHeader",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"engagementPanel",void 0);_.t([_.r(),_.O("design:type",Array)],Jy.prototype,"buttonClasses",void 0);_.t([_.r(),_.O("design:type",Object)],Jy.prototype,"isSearch",void 0);
_.t([_.r(),_.O("design:type",Object)],Jy.prototype,"disableScrollEventListener",void 0);_.t([_.r({computed:"computeInitialCountNumber(data)"}),_.O("design:type",Number)],Jy.prototype,"initialCount",void 0);_.t([_.r({computed:"computeContainsPost(data)"}),_.O("design:type",Boolean)],Jy.prototype,"supportComponentResize",void 0);_.t([_.r({computed:"computeContainsPost(data)"}),_.O("design:type",Boolean)],Jy.prototype,"containsPost",void 0);
_.t([_.r({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"containsLockup",void 0);_.t([_.r({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Jy.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.t([_.r({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"overrideArrowPositionForProductCard",void 0);_.t([_.r({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.t([_.r({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"overrideArrowPositionForReelItems",void 0);_.t([_.r({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"overrideArrowPositionForGridMovie",void 0);
_.t([_.r({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"overrideArrowPositionToCenter",void 0);_.t([_.r({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"isSearchPostShelf",void 0);_.t([_.r({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.t([_.r({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.t([_.r({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"hasBigThumbsReelItems",void 0);
_.t([_.r({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"shouldUseMixedListHeight",void 0);_.t([_.r({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"shouldUseShortsListHeight",void 0);_.t([_.r({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"gridVideoWidth",void 0);
_.t([_.r({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"isSearchVodShelf",void 0);_.t([_.r({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.O("design:type",Object)],Jy.prototype,"disableWheelScroll",void 0);_.t([_.r({computed:"computeSizing(isSearch)"}),_.O("design:type",Object)],Jy.prototype,"sizing",void 0);
_.t([_.r({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.O("design:type",Object)],Jy.prototype,"shortsLockupAspectRatio",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Jy.prototype,"dataChanged",null);
_.T(Jy,"yt-horizontal-list-renderer",function(){if(R9X===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-horizontal-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n<div id="scroll-outer-container" class="style-scope yt-horizontal-list-renderer">\n  <div id="scroll-container" class="style-scope yt-horizontal-list-renderer">\n    <div id="items" class="style-scope yt-horizontal-list-renderer"></div>\n  </div>\n</div>\n<div id="right-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);R9X=d}d=R9X;return d},{mode:1});var xPd;var n7g=[10,12,14,16,18,20,24,28,32,36],CeS=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],sx=function(){var d=_.B.apply(this,arguments)||this;d.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";d.hideOverflow=!1;d.useRoboto=!1;d.fontClass="";d.overflown=!1;d.actionMap={"yt-window-resized":"resize"};return d};
_.m(sx,_.B);_.G=sx.prototype;
_.G.attached=function(){var d=this;switch(this.fontFamily){case "PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto=
!1,this.fontWeight=700}this.setParentConstraints();_.vV(this,function(){d.resize()});
if(!_.iv){var H,K,c;(H=document)==null||(K=H.fonts)==null||(c=K.ready)==null||c.then(function(){d.resize()})}};
_.G.dataChanged=function(){this.resize()};
_.G.guideIsExpandedChanged=function(){this.resize()};
_.G.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var d=this.getMaxNumLines(),H=this.getMinFont(),K=this.getMaxFont(),c=this.useRoboto?n7g:CeS;for(c=c.filter(function(g){return g<=K&&g>=H});c.length>1;){var p=Math.floor(c.length/2);
this.updateFontSize(c[p]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=d)c=c.slice(p,c.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>d)c=c.slice(0,p);else break}this.updateFontSize(c[c.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(d)}};
_.G.handleOverflow=function(d){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>d&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",d.toString()))};
_.G.updateFontSize=function(d){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+d;this.textNode.classList.add(this.fontClass)};
_.G.getMaxFont=function(){var d=this.useRoboto?n7g:CeS;d=d[d.length-1];return this.maxFontSize&&this.maxFontSize<=d?this.maxFontSize:d};
_.G.getMinFont=function(){var d=(this.useRoboto?n7g:CeS)[0];return this.minFontSize&&this.minFontSize>=d?this.minFontSize:d};
_.G.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.G.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.G.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.jG(this.text).split("\n").length-1:Infinity};
_.G.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Gh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
sx.prototype.guideIsExpandedChanged=sx.prototype.guideIsExpandedChanged;sx.prototype.dataChanged=sx.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],sx.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],sx.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],sx.prototype,"actionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],sx.prototype,"text",void 0);
_.t([_.r(),_.O("design:type",String)],sx.prototype,"fontFamily",void 0);_.t([_.r(),_.O("design:type",Number)],sx.prototype,"maxWidth",void 0);_.t([_.r(),_.O("design:type",Number)],sx.prototype,"maxHeight",void 0);_.t([_.r(),_.O("design:type",Number)],sx.prototype,"maxFontSize",void 0);_.t([_.r(),_.O("design:type",Number)],sx.prototype,"minFontSize",void 0);_.t([_.r(),_.O("design:type",Number)],sx.prototype,"maxLines",void 0);_.t([_.r(),_.O("design:type",Object)],sx.prototype,"hideOverflow",void 0);
_.t([_.r({selector:_.yJi}),_.O("design:type",Boolean)],sx.prototype,"guideIsExpanded",void 0);_.t([_.VP("#container"),_.O("design:type",HTMLElement)],sx.prototype,"containerNode",void 0);_.t([_.VP("#text"),_.O("design:type",HTMLElement)],sx.prototype,"textNode",void 0);_.t([_.Mr("text"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sx.prototype,"dataChanged",null);
_.t([_.Mr("guideIsExpanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sx.prototype,"guideIsExpandedChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],sx);
_.T(sx,"yt-dynamic-sizing-formatted-string",function(){if(xPd!==void 0)return xPd;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dynamic-sizing-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="dynamic-text-container style-scope yt-dynamic-sizing-formatted-string">\n  <yt-formatted-string id="text" disable-attributed-string="" text="[[text]]" class="style-scope yt-dynamic-sizing-formatted-string"></yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return xPd=d},{mode:1});var REN;_.VmX=function(d){_.dh.call(this,d)};
_.m(_.VmX,_.dh);var UPB=function(d){_.dh.call(this,d)};
_.m(UPB,_.VmX);var FY=function(){return _.B.apply(this,arguments)||this};
_.m(FY,_.B);FY.prototype.onTapSuspendedChannel=function(){var d;if((d=this.data)!=null&&d.serviceEndpoint){var H,K;(d=(K=_.M((H=this.data)==null?void 0:H.serviceEndpoint,_.yj))==null?void 0:K.url)?_.bO(d,void 0,void 0,window.top):(H=new UPB("Did not handle suspended account tap. No appealUrl."),_.z5(H))}else H=new UPB("Did not handle suspended account tap. No serviceEndpoint."),_.z5(H)};
FY.prototype.onTap=function(){var d=this,H=_.hR(),K,c=(K=_.UG(H,{veType:7116}))!=null?K:void 0;_.EQ(H,{visualElement:c});_.Eb();this.saveRoleText();var p;if((p=this.data)==null?0:p.youtubeSuspended)this.onTapSuspendedChannel();else{var g=!1,a,e;(H=(e=_.M((a=this.data)==null?void 0:a.serviceEndpoint,_.K2S))==null?void 0:e.supportedTokens)&&H.forEach(function(k){if(k.accountSigninToken)if(g=!0,d.onAccountItemTap)d.onAccountItemTap(k.accountSigninToken.signinUrl);else _.bO(k.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!g){if(a=this.get("serviceEndpoint",this.data))g=!0,this.ytComponentBehavior.resolveCommand(a);g||_.Xi(new UPB("Did not handle account switch tap. No token."))}}};
FY.prototype.saveRoleText=function(){if(this.data){var d=this.data,H=d.channelDelegationRole;if(H){var K,c=(K=_.M(d==null?void 0:d.serviceEndpoint,_.K2S))==null?void 0:K.supportedTokens;if(!c){var p,g,a,e;c=(p=_.M(d==null?void 0:d.serviceEndpoint,_.u$))==null?void 0:(g=p.popup)==null?void 0:(a=g.confirmDialogRenderer)==null?void 0:(e=a.confirmButton)==null?void 0:e.buttonRenderer;var k;c=(k=_.M(c==null?void 0:c.command,_.kW))==null?void 0:k.commands;if(!c)return;var C;c=(C=_.M(c[1],_.K2S))==null?
void 0:C.supportedTokens}if(c){k=void 0;C=_.q(c);for(c=C.next();!c.done;c=C.next())if(c=c.value,c.datasyncIdToken){k=c.datasyncIdToken.datasyncIdToken;break}if(k){var R;a:{if(_.xF1()&&(C=_.CZM(k+"::pom"))){C=new ry(C);break a}C=void 0}(R=C)==null||R.set("role_text",H);if((IF5?IF5:window.location).href.indexOf("studio")!==-1&&(R=nnD())){C=R.src?(new URL(R.src)).origin:"*";var V;(V=R.contentWindow)==null||V.postMessage({action:"save_pom_role",datasyncId:k,roleText:H},C)}}}}}};
_.H3.Object.defineProperties(FY.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var d,H,K=(d=this.data)==null?void 0:(H=d.accountPhoto)==null?void 0:H.thumbnails;return K&&K.length>0&&(K[0].height===36||K[0].height===48)?K[0].height:40}}});
FY.prototype.onTap=FY.prototype.onTap;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],FY.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],FY.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!1}),_.O("design:type",Function)],FY.prototype,"onAccountItemTap",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],FY.prototype,"enableRingForActiveAccount",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],FY.prototype,"thumbnailSize",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],FY.prototype,"onTap",null);_.t([_.Z({is:"ytd-account-item-renderer",disableElementRegistration:!0})],FY);
_.T(FY,"ytd-account-item-renderer",function(){if(REN!==void 0)return REN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-icon-item class="style-scope ytd-account-item-renderer">\n  <yt-img-shadow slot="item-icon" height="[[thumbnailSize]]" item-icon="" thumbnail="[[data.accountPhoto]]" width="[[thumbnailSize]]" class="style-scope ytd-account-item-renderer">\n  </yt-img-shadow>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-account-item-renderer">\n    <yt-formatted-string id="channel-title" text="[[data.accountName]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string respect-lang-dir="" secondary="" text="[[data.channelHandle]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string secondary="" text="[[data.accountByline]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item-body>\n  <yt-icon id="selected" hidden="[[!data.isSelected]]" icon="yt-icons:check" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <yt-icon id="studio-redirect" aria-label$="[[getSimpleString(data.studioRedirectVisualHint)]]" hidden="[[!data.isRedirectToStudio]]" icon="yt-icons:open_in_new" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-tooltip for="studio-redirect" hidden="[[!data.isRedirectToStudio]]" position="left" class="style-scope ytd-account-item-renderer">\n    [[getSimpleString(data.studioRedirectVisualHint)]]\n  </tp-yt-paper-tooltip>\n</tp-yt-paper-icon-item>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return REN=d},{mode:1});var hEg;var ZM=function(){return _.B.apply(this,arguments)||this};
_.m(ZM,_.B);ZM.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.Kj().resolve(_.cb).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ZM.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ZM.prototype,"data",void 0);_.t([_.Z({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],ZM);
_.T(ZM,"ytd-identity-chip-renderer",function(){if(hEg!==void 0)return hEg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-identity-chip-renderer">\n  <h3 id="header-text" class="style-scope ytd-identity-chip-renderer">[[data.headerText]]</h3>\n</div>\n<div id="content-row" class="style-scope ytd-identity-chip-renderer">\n  <div id="info-div" class="style-scope ytd-identity-chip-renderer">\n    <img id="avatar-image" alt="" src$="[[data.avatarUrl]]" class="style-scope ytd-identity-chip-renderer">\n    <div id="name-handle-div" class="style-scope ytd-identity-chip-renderer">\n      <p id="name" class="style-scope ytd-identity-chip-renderer">[[data.name]]</p>\n      <p id="handle" hidden="[[!data.handle]]" dir="auto" class="style-scope ytd-identity-chip-renderer"><span class="style-scope ytd-identity-chip-renderer">@</span>[[data.handle]]</p>\n    </div>\n  </div>\n  <div id="edit-icon" class="style-scope ytd-identity-chip-renderer">\n    <yt-icon-button id="edit-icon-button" aria-label$="[[data.onTapLabel]]" on-click="onClickEditIcon" class="style-scope ytd-identity-chip-renderer">\n      <yt-icon id="edit-icon" icon="yt-icons:edit" class="style-scope ytd-identity-chip-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return hEg=d},{mode:1});var L8d;var MmC;var mPd;var w_6;var Ts=function(){var d=_.B.apply(this,arguments)||this;d.richItemMinWidth=_.iT("wn_grid_min_item_width",310);d.isShorts=!1;d.isWatchNext=!1;d.isExploreHub=!1;return d};
_.m(Ts,_.B);_.H3.Object.defineProperties(Ts.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var d=[],H=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.eO(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var K;if(((K=this.data)==null?0:K.rows)&&H)for(H*=this.data.rows,K=0;K<H;K++)d.push({});return d}}});
_.t([_.u(_.to),_.O("design:type",Object)],Ts.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ts.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.sc,value:3}),_.O("design:type",Number)],Ts.prototype,"itemsPerRow",void 0);_.t([_.r({selector:_.ERi,value:6}),_.O("design:type",Number)],Ts.prototype,"slimItemsPerRow",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Number)],Ts.prototype,"richItemMinWidth",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.JF}),_.O("design:type",Boolean)],Ts.prototype,"miniMode",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ts.prototype,"isShorts",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ts.prototype,"isWatchNext",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ts.prototype,"isExploreHub",void 0);
_.t([_.I("isExploreHub"),_.r({reflectToAttribute:!0}),_.O("design:type",Object),_.O("design:paramtypes",[])],Ts.prototype,"shimmerAnimation",null);_.t([_.I("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.O("design:type",Array),_.O("design:paramtypes",[])],Ts.prototype,"cardItems",null);_.t([_.Z({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Ts);
_.Pe6=_.oq()(Ts,"ytd-ghost-grid-renderer",function(){if(w_6===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-grid style-scope ytd-ghost-grid-renderer">\n  <template is="dom-repeat" items="[[cardItems]]" class="style-scope ytd-ghost-grid-renderer">\n    <div class="ghost-card style-scope ytd-ghost-grid-renderer">\n      <div class="rich-thumbnail skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n      <div class="details style-scope ytd-ghost-grid-renderer">\n        <div class="channel-avatar skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        <div class="details-text-shell style-scope ytd-ghost-grid-renderer">\n          <div class="rich-video-title text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n          <div class="video-meta rich-video-meta text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </template>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);w_6=d}d=w_6;return d},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.iV(_.H1(function(d){var H=_.dg(d,{numberOfComments:3}).numberOfComments,K=_.dg(d,{isInitialLoad:!1}).isInitialLoad,c=_.dg(d,{engagementPanel:!1}).engagementPanel,p=function(){return Math.min(Number(H==null?void 0:H())||20,20)};
return _.x("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.x(_.n,{cond:function(){return!(c==null?0:c())&&(K==null?void 0:K())},
then:function(){return _.x("div",{class:"ytGhostCommentsComments"},_.x("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.x("div",{class:_.xM("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.x("div",{class:_.xM("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.x("div",{class:"ytGhostCommentsGhostCard"},_.x("div",{class:"ytGhostCommentsAvatar"},_.x("div",{class:"ytGhostCommentsCircle"})),_.x("div",{class:"ytGhostCommentsComments"},_.x("div",{class:"ytGhostCommentsMeta"},
_.x("div",{class:_.xM("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.x("div",{class:_.xM("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.x("div",{class:"ytGhostCommentsComments"},_.x(_.L6,{each:function(){return Array((p==null?void 0:p())||3)}},function(){return _.x("div",{class:"ytGhostCommentsGhostCard"},_.x("div",{class:"ytGhostCommentsAvatar"},_.x("div",{class:"ytGhostCommentsCircle"})),_.x("div",{class:"ytGhostCommentsHost"},_.x("div",{class:"ytGhostCommentsMeta"},
_.x("div",{class:_.xM("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.x("div",{class:_.xM("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.x("div",{class:_.xM("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.x("div",{class:"ytGhostCommentsGhostLikeDislike"},_.x("div",{class:_.xM("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.x("div",{class:_.xM("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"pb"),"yt-ghost-comments",{props:{numberOfComments:_.dl,
isInitialLoad:_.dl,engagementPanel:_.dl}});_.XX("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var QH=function(){var d=_.B.apply(this,arguments)||this;d.isOverridable=!1;d.spinnerActive=!1;d.showButton=!1;d.isCommentsSection=!1;d.engagementPanel=!0;d.isShortsGrid=!1;d.isShortsPage=!1;d.isWatchPage=!1;d.ghostCardExperimentEnabled=_.h("show_ghost_comments_shorts_watch")||_.h("show_ghost_comments_desktop_watch");d.originalShowButton=!1;d.endOfList=!1;return d};
_.m(QH,_.B);_.G=QH.prototype;_.G.resetIntersectionObserver=function(){var d;(d=this.observer)==null||d.disconnect();this.observer=void 0};
_.G.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var d,H;((d=this.data)==null?void 0:d.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((H=this.data)==null?0:H.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.G.initializeIntersectionObserver=function(){var d=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(H){H=_.q(H);for(var K=H.next();!K.done;K=H.next())K.value.isIntersecting&&(d.triggerContinuation(),d.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.G.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.G.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var d;((d=this.data)==null?0:d.continuationEndpoint)&&(d=_.M(this.data.continuationEndpoint,_.YM))&&this.ytdReduxBehavior.dispatch(_.iZ({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:d}}))};
_.G.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.G.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.G.onServiceRequestCompleted=function(d,H){if(!_.h("kevlar_hide_spinner_on_empty_continuation_killswitch")){var K;(K=H.actions)!=null&&K.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.G.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.G.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.G.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.G.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var d=3;if(this.engagementPanel){var H,K,c;d=Math.floor(((((H=this.hostElement)==null?void 0:(K=H.parentElement)==null?void 0:(c=K.parentElement)==null?void 0:c.scrollHeight)||108)-108)/108);d=this.isInitialLoad?Math.max(d,3):3}H=[].concat(_.ru(this.hostElement.querySelectorAll("yt-ghost-comments")));H=_.q(H);for(K=H.next();!K.done;K=H.next())K=K.value,K.numberOfComments=d,K.isInitialLoad=this.isInitialLoad,K.engagementPanel=
this.engagementPanel}};
_.G.detached=function(){this.resetIntersectionObserver()};
_.H3.Object.defineProperties(QH.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.h("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.h("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
QH.prototype.numberOfGhostCommentsChanged=QH.prototype.numberOfGhostCommentsChanged;QH.prototype.continuationTriggerOffsetChanged=QH.prototype.continuationTriggerOffsetChanged;QH.prototype.showButtonChanged=QH.prototype.showButtonChanged;QH.prototype.onYtServiceRequestCompletedForButtonRenderer=QH.prototype.onYtServiceRequestCompletedForButtonRenderer;QH.prototype.onServiceRequestCompleted=QH.prototype.onServiceRequestCompleted;QH.prototype.onYtServiceRequestSentForButtonRenderer=QH.prototype.onYtServiceRequestSentForButtonRenderer;
QH.prototype.observeData=QH.prototype.observeData;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],QH.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.b9.YtVisibilityBehavior),_.O("design:type",Object)],QH.prototype,"ytVisibilityBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],QH.prototype,"ytComponentBehavior",void 0);
_.t([_.u(_.to),_.O("design:type",Object)],QH.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],QH.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],QH.prototype,"isOverridable",void 0);_.t([_.r(),_.O("design:type",Object)],QH.prototype,"spinnerActive",void 0);_.t([_.r(),_.O("design:type",Object)],QH.prototype,"showButton",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],QH.prototype,"isCommentsSection",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],QH.prototype,"engagementPanel",void 0);_.t([_.r(),_.O("design:type",Object)],QH.prototype,"isShortsGrid",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.Dwl}),_.O("design:type",Object)],QH.prototype,"isShortsPage",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.NI4}),_.O("design:type",Object)],QH.prototype,"isWatchPage",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],QH.prototype,"ghostCardExperimentEnabled",void 0);
_.t([_.r(),_.O("design:type",Number)],QH.prototype,"continuationTriggerOffset",void 0);_.t([_.r(),_.O("design:type",Object)],QH.prototype,"endOfList",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],QH.prototype,"isInitialLoad",void 0);_.t([_.VP("ytd-button-renderer"),_.O("design:type",_.pe)],QH.prototype,"buttonRenderer",void 0);_.t([_.r(),_.O("design:type",Object)],QH.prototype,"buttonOverrides",void 0);
_.t([_.r(),_.I("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.O("design:type",Object),_.O("design:paramtypes",[])],QH.prototype,"isShortsCommentsSection",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],QH.prototype,"observeData",null);
_.t([_.nK("yt-service-request-sent-button-renderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],QH.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],QH.prototype,"onServiceRequestCompleted",null);
_.t([_.nK("yt-service-request-completed-button-renderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],QH.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.t([_.Mr("showButton"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],QH.prototype,"showButtonChanged",null);
_.t([_.Mr("continuationTriggerOffset"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],QH.prototype,"continuationTriggerOffsetChanged",null);_.t([_.CK("isInitialLoad","engagementPanel"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],QH.prototype,"numberOfGhostCommentsChanged",null);_.t([_.Z({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],QH);
_.T(QH,"ytd-continuation-item-renderer",function(){if(mPd!==void 0)return mPd;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-continuation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ghost-cards" class="style-scope ytd-continuation-item-renderer"></div>\n<div id="ghost-comment-section" class="style-scope ytd-continuation-item-renderer"></div>\n<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" hidden="[[showButton]]" class="style-scope ytd-continuation-item-renderer">\n</tp-yt-paper-spinner>\n<div id="button" hidden="[[!showButton]]" class="style-scope ytd-continuation-item-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return mPd=d},{mode:1});var uG3;var ty=function(){var d=_.B.apply(this,arguments)||this;d.downloadProgress=0;d.transferState="TRANSFER_STATE_UNKNOWN";d.downloadState="DOWNLOAD_STATE_UNKNOWN";d.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";d.offlineVideoPolicyExpirationTimestamp=0;d.downloadedVideoPlaybackPosition=0;return d};
_.m(ty,_.B);ty.prototype.dataChanged=function(){var d;this.videoData=_.M((d=this.data)==null?void 0:d.renderer,se0);this.transferStateChanged()};
ty.prototype.downloadProgressChanged=function(){if(this.entityInfo){var d=Object.assign({},this.videoData),H=y$4(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),K=H.publishedTimeText,c=H.badges;d.shortViewCountText=H.shortViewCountText;d.publishedTimeText=K;d.badges=c;this.set("videoData",d)}};
ty.prototype.transferStateChanged=function(){if(this.entityInfo){var d=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",H=_.mE(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!MR(this.entityInfo.policyEntity),K=Object.assign({},this.videoData),c=y$4(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),p=c.publishedTimeText,g=c.badges;K.shortViewCountText=
c.shortViewCountText;K.publishedTimeText=p;K.badges=g;K.isDisabled=H;K.isWatched=this.downloadedVideoPlaybackPosition>0;K.navigationEndpoint=H?void 0:fvC(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var a;d&&((a=this.videoData)==null?0:a.videoId)&&!_.h("dl_resume_click_killswitch")&&(K.isDisabled=!1,K.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});K.thumbnailOverlays=SsF(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",K)}};
ty.prototype.transferStateChanged=ty.prototype.transferStateChanged;ty.prototype.downloadProgressChanged=ty.prototype.downloadProgressChanged;ty.prototype.dataChanged=ty.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ty.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],ty.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ty.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Object)],ty.prototype,"videoData",void 0);_.t([_.r({selector:YL,selectorArgs:["videoData.videoId"]}),_.O("design:type",Object)],ty.prototype,"downloadProgress",void 0);_.t([_.r(),_.O("design:type",Number)],ty.prototype,"relativeDateReference",void 0);_.t([_.r({selector:_.QO,selectorArgs:["videoData.videoId"]}),_.O("design:type",Object)],ty.prototype,"transferState",void 0);
_.t([_.r({selector:xG4,selectorArgs:["videoData.videoId"]}),_.O("design:type",Object)],ty.prototype,"downloadState",void 0);_.t([_.r({selector:dGF,selectorArgs:["videoData.videoId"]}),_.O("design:type",Object)],ty.prototype,"offlinePolicyAction",void 0);_.t([_.r({selector:HsM,selectorArgs:["videoData.videoId"]}),_.O("design:type",Object)],ty.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.t([_.r({selector:Oc,selectorArgs:["videoData.videoId"]}),_.O("design:type",Object)],ty.prototype,"downloadedVideoPlaybackPosition",void 0);_.t([_.r({selector:K9h,selectorArgs:["videoData.videoId"]}),_.O("design:type",Object)],ty.prototype,"entityInfo",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],ty.prototype,"isDownloading",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ty.prototype,"dataChanged",null);
_.t([_.Mr("downloadProgress"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ty.prototype,"downloadProgressChanged",null);_.t([_.Mr("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ty.prototype,"transferStateChanged",null);
_.t([_.Z({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],ty);
_.T(ty,"ytd-downloaded-video-grid-video-renderer",function(){if(uG3!==void 0)return uG3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-downloaded-video-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-grid-video-renderer id="video" data="[[videoData]]" is-downloading="[[isDownloading]]" class="style-scope ytd-downloaded-video-grid-video-renderer"></ytd-grid-video-renderer>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return uG3=d},{mode:_.qk("kevlar_poly_si_batch_j025")?1:2});var IZ3;var YA=function(){};
YA.prototype.resolve=function(d,H){var K=this;return _.l(function(c){return c.yield(K.resolveCommand(d,H),0)})};var rjl,Ox;rjl=FnF(function(d){return d.targetId},{shouldPersist:!1});
Ox=rjl.updateData;_.W8A=rjl.useUpdatableData;var BxS,zE3;BxS=FnF(function(d){return d.targetId});
zE3=BxS.updateData;_.X_g=BxS.useUpdatableData;var Jjd=zsD.bind(null,Ox),sg3=zsD.bind(null,zE3);(function(d,H,K){var c=_.M(K==null?void 0:K.updatedRenderer,_.agd);return c?d({targetId:H},function(){return c}):!1}).bind(null,Ox);var Sw=function(){};
_.m(Sw,YA);Sw.prototype.resolveCommand=function(d){var H;return _.l(function(K){H=_.M(d,_.F$1);if(!H)return K.return();Jjd(H.targetId,H);_.VE(K)})};var Ex=function(){var d=_.hB.apply(this,arguments)||this;d.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return d};
_.m(Ex,_.hB);_.G=Ex.prototype;_.G.configureContinuationPathMap=function(){return{}};
_.G.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.G.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.G.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.G.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.G.handleAppendContinuationItemsAction=function(d){var H=_.M(d,_.sjg);if(this.data&&this.data.targetId&&H&&this.continuationPathMap&&H.targetId===this.data.targetId){var K=XIF(d),c=K&&this.continuationPathMap[K];if(c&&K)if(d=this.get(c,this.data)){a:{for(K=0;K<d.length;K++){var p=d[K],g=void 0,a=!!_.M((g=_.M(p,h1M))==null?void 0:g.content,_.BYU);if(_.M(p,_.AE)||a)break a}K=d.length}c="data."+c;H.continuationItems?K===d.length-1?(this.pop(c),this.push.apply(this,[c].concat(_.ru(H.continuationItems)))):
K===d.length?this.push.apply(this,[c].concat(_.ru(H.continuationItems))):this.splice.apply(this,[c,K,1].concat(_.ru(H.continuationItems))):this.splice(c,K,1);(_.h("web_enable_voting_animation")||_.h("enable_music_web_cairo_voting_animation"))&&_.GT(this.hostElement,"yt-append-continuation-items-action-finished");_.GT(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Jf(new _.m1("append continuation items does not exist",K));else _.Jf(new _.m1("append continuation path does not exist",
K))}};
_.G.handleReloadContinuationItemsCommand=function(d){var H=_.M(d,_.F$1);if(this.data&&H){if(_.h("web_client_explore_hub")||_.h("web_explore_hub_on_hover")||_.h("web_client_explore_hub_on_hover"))try{_.Kj().resolve(Sw).resolveCommand(d)}catch(g){}if(this.data.targetId&&this.continuationPathMap&&H.targetId===this.data.targetId&&(!_.h("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||H.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var K,c=(K=H.slot)==null?void 0:
K.replace("RELOAD_CONTINUATION_SLOT_","");K=(d=XIF(d)+"-"+(c==null?void 0:c.toLowerCase()))&&this.continuationPathMap[d];if(!K||!d||!c)_.Jf(new _.m1("reload continuation path does not exist",d));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(H)){if(H.replaceWithFirstItem){var p;this.set("data."+K,((p=H.continuationItems)==null?0:p.length)?H.continuationItems[0]:{})}else this.set("data."+K,H.continuationItems?H.continuationItems:[]);this.continuationIsReloading=
!1;_.GT(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.G.handleShowReloadUiCommand=function(d){d=_.M(d,AHg);var H;((H=this.data)==null?0:H.targetId)&&(d==null?0:d.targetId)&&d.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
Ex.prototype.observeData=Ex.prototype.observeData;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Ex.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Ex.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ex.prototype,"data",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Ex.prototype,"continuationIsReloading",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ex.prototype,"observeData",null);_.t([_.LK()],Ex);_.yH=[_.S$.YtComponentBehavior,_.Uq.YtActionHandlerBehavior,Ex.prototype];_.bN={};_.bN.YtNextContinuationBehavior=[_.pd.YtTaskEmitterBehavior,{_noAccessors:!0,listeners:{"yt-load-next-continuation":"onLoadNextContinuation_"},nextContinuation:void 0,pendingContinuationRequest_:void 0,listeningForNavigate_:!1,created:function(){},
detached:function(){this.stopListeningForNavigate_()},
canUseContextualNetworkManager_:function(){return this.shouldUseTaskManager()&&!!this.getNetworkManager()},
startListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||this.listeningForNavigate_||(document.addEventListener("yt-navigate-start",_.xf(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.xf(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(d,H){d.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,H,{}):(d={locationRetrieved:function(K){this.makeNextContinuationRequest_(K,H,{})}.bind(this)},_.GT(this.hostElement,"yt-retrieve-location",d))},
makeNextContinuationRequest_:function(d,H,K){_.Zi("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();d=H(d);var c;this.canUseContextualNetworkManager_()&&(c=this.getNetworkManager());c||(c=_.Kj().resolve(_.FL));H=_.y2.instance;if(_.Fm("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&H){c=_.H5([d.startsWith("/")?d.substr(1):d]);var p,g;K=_.Qq(H,{},c,K==null?void 0:(p=K.context)==null?void 0:(g=p.clickTracking)==null?void 0:g.clickTrackingParams).then(function(a){return{response:a}})}else K=
this.nextContinuation.usePost?c.postData(d,K):c.fetchData(d);
K.then(this.updateNextContinuationData_.bind(this,d));this.pendingContinuationRequest_=K;this.startListeningForNavigate_()},
updateNextContinuationData_:function(d,H){var K=this;_.Zi("ncl");this.pendingContinuationRequest_=void 0;if(H){var c={};this.nextContinuation&&(c=this.nextContinuation);if(H.response&&H.response.continuationContents&&H.response.continuationContents[c.continuationType]){d=H.response.continuationContents[c.continuationType];var p=c.header||"data.header",g=d[c.responseHeaderKey||"header"];g&&this.set(p,g);p=c.contentsArray||"data.contents";g=this.getContents_(d,c.responseContentsKey||"contents")||[];
this.pathExists_(p)?(g.unshift(p),this.push.apply(this,g)):this.set(p,g);g&&(XcX(_.hR(),H.response,this.hostElement,function(a){_.oF(K.hostElement,"yt-store-grafted-ve-action",[a])}),_.GT(this.hostElement,"yt-next-continuation-data-updated",{continuationData:H,
page:this,contentsArray:p}));this.set(c.continuationsArray||"data.continuations",d[c.responseContinuationsKey||"continuations"]||[])}else H.reload?_.Jf(new _.m1("Reloading from continuation is unsupported")):H.responseContext&&H.responseContext.errors||(delete H.xsrf_token,delete H.timing,delete H.endpoint,delete H.csn,H.responseContext&&delete H.responseContext.serviceTrackingParams,p={request:_.DY(d,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(H).sort()},H.response&&(p.responseContentKeys=
Object.keys(H.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(p.continuationType=this.nextContinuation.continuationType.substr(0,256)),H=new _.m1("Malformed continuation",p),d.indexOf("/comment_service_ajax")==0?_.Jf(H):_.z5(H)),this.set(c.continuationsArray||"data.continuations",[])}else _.Xi(new _.m1("Missing continuation response",d))},
getContents_:function(d,H){H=H.split(".");return _.rs.getValueByKeys(d,H)},
pathExists_:function(d){var H=this;d=d.toString().split(".");for(var K=0;K<d.length;K++)if(H=H[d[K]],H===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var F8S;var Zv7;var NE=function(){var d=_.B.apply(this,arguments)||this;d.triggered_=!1;return d};
_.m(NE,_.B);_.G=NE.prototype;_.G.attached=function(){this.maybeTriggerAutoload()};
_.G.detached=function(){this.hasBeenTriggered_=!1};
_.G.onPrescanVisible=function(){this.onShow()};
_.G.onShow=function(){this.showButton||this.trigger()};
_.G.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.GT(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.G.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.G.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.G.computeLabel_=function(d,H){return d===void 0?null:d.label||!H?d.label:this.showMoreText_};
_.G.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.G.getContinuationUrl=function(d){var H={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(H.itct=this.data.clickTrackingParams);return _.f6(d,H)};
_.G.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
NE.prototype.showButtonChanged_=NE.prototype.showButtonChanged_;NE.prototype.observeData_=NE.prototype.observeData_;_.t([_.u(_.b9.YtVisibilityBehavior),_.O("design:type",Object)],NE.prototype,"ytVisibilityBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],NE.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],NE.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],NE.prototype,"showButton",void 0);
_.t([_.r({value:!1}),_.O("design:type",Boolean)],NE.prototype,"showIcon",void 0);_.t([_.r({computed:"computeLabel_(data, showButton)"}),_.O("design:type",Object)],NE.prototype,"label",void 0);_.t([_.r({value:_.AF(_.Vz("SHOW_MORE",void 0,"Show More"))}),_.O("design:type",Object)],NE.prototype,"showMoreText_",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],NE.prototype,"spinnerActive_",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],NE.prototype,"hasBeenTriggered_",void 0);
_.t([_.r({value:void 0}),_.O("design:type",String)],NE.prototype,"observeVisibleOption",void 0);_.t([_.r({value:void 0}),_.O("design:type",String)],NE.prototype,"observeHiddenOption",void 0);_.t([_.r({value:"observe_once"}),_.O("design:type",Object)],NE.prototype,"observePrescanOption",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],NE.prototype,"observeData_",null);
_.t([_.CK("showButton"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],NE.prototype,"showButtonChanged_",null);_.t([_.ZV({is:"yt-next-continuation",disableElementRegistration:!0})],NE);
_.T(NE,"yt-next-continuation",function(){if(Zv7===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-next-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.continuations.yt_next_continuation.yt.next.continuation.css.js--\x3e\n<template is="dom-if" if="[[!showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-spinner id="spinner" active="[[spinnerActive_]]" class="style-scope yt-next-continuation"></tp-yt-paper-spinner>\n</template>\n<template is="dom-if" if="[[showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-button on-tap="trigger" class="style-scope yt-next-continuation">\n    <yt-icon hidden$="[[!showIcon]]" icon="subdirectory_arrow_right" class="style-scope yt-next-continuation"></yt-icon>\n    <yt-formatted-string text="[[label]]" class="style-scope yt-next-continuation"></yt-formatted-string>\n  </tp-yt-paper-button>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;F8S===void 0&&(F8S=document.createElement("template"));var c=F8S;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Zv7=d}d=Zv7;return d},{mode:2});var TxX;var QgU;var DM=function(){return _.B.apply(this,arguments)||this};
_.m(DM,_.B);DM.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],DM.prototype,"data",void 0);_.t([_.ZV({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],DM);
_.T(DM,"yt-music-pass-small-feature-info-renderer",function(){if(QgU===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-small-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_small_feature_info_renderer.yt.music.pass.small.feature.info.renderer.css.js--\x3e<yt-img-shadow thumbnail="[[data.icon]]" width="84" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-img-shadow>\n<yt-formatted-string id="header" respect-html-dir="" text="[[data.header]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" respect-html-dir="" text="[[data.description]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;TxX===void 0&&(TxX=document.createElement("template"));var c=TxX;K.call(H,c.content.cloneNode(!0),d.content.firstChild);QgU=d}d=QgU;return d},{mode:2});_.XX("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var fQ=function(){var d=_.B.apply(this,arguments)||this;d.isCollapsible=!1;d.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return d};
_.m(fQ,_.B);_.G=fQ.prototype;_.G.computeIsCollapsible=function(d){return!!(((d==null?0:d.showMoreText)||(d==null?0:d.visibleRowCount))&&(d==null?0:d.isCollapsible))};
_.G.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-grid-renderer lockup",containerType:2,sizing:"COMPACT",force16By9ThumbnailAspectRatio:!0}},continuationItemRenderer:"ytd-continuation-item-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",
playlistRenderer:"ytd-playlist-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:"ytd-grid-video-renderer",downloadedVideoGridVideoRenderer:"ytd-downloaded-video-grid-video-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",musicPassSmallFeatureInfoRenderer:"yt-music-pass-small-feature-info-renderer",gameCardRenderer:"ytd-game-card-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",noInjection:!0}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:"yt-next-continuation"}}}};
_.G.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.G.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.G.onIronResize=function(){var d=this;_.yP(this,"updateGridInitItems",function(){d.maybeUpdateInitialItemsDisplayed()})};
_.G.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var d=this.getVisibleWidth();d!==0&&(d=Math.floor(d/214)*(this.data.visibleRowCount||2),d!==this.initialCount&&(this.initialCount=d,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.G.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.G.computeExpandVisible=function(d,H,K,c){return d&&H&&K&&!!c&&!!c.showMoreText};
_.G.computeShowMoreButton=function(d){return{text:d,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.G.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.G.initCollapsed=function(){var d=this;this.ytLazyListBehavior.canShowMore=!1;var H;(this.collapsed=!((H=this.data)==null||!H.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.vV(this,function(){_.qo(d.hostElement,"yt-refit-popups-action")})};
_.G.fillRestIfNotCollapsible=function(){var d=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!d||this.ytLazyListBehavior.fillRemainingListItems()};
_.G.computeViewAllHidden=function(d,H){return d||!H.viewAllEndpoint};
fQ.prototype.fillRestIfNotCollapsible=fQ.prototype.fillRestIfNotCollapsible;fQ.prototype.initCollapsed=fQ.prototype.initCollapsed;fQ.prototype.onIronResize=fQ.prototype.onIronResize;fQ.prototype.persistentGuideChanged=fQ.prototype.persistentGuideChanged;_.t([_.u(_.WZ),_.O("design:type",Object)],fQ.prototype,"ironResizableBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],fQ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Gr.YtLazyListBehavior),_.O("design:type",Object)],fQ.prototype,"ytLazyListBehavior",void 0);_.t([_.u(_.bN.YtNextContinuationBehavior),_.O("design:type",Object)],fQ.prototype,"ytNextContinuationBehavior",void 0);_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],fQ.prototype,"ytdGuideStateAwareBehavior",void 0);
_.t([_.u(_.yH),_.O("design:type",Object)],fQ.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],fQ.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],fQ.prototype,"collapsed",void 0);_.t([_.r(),_.O("design:type",Number)],fQ.prototype,"initialCount",void 0);_.t([_.r({computed:"computeShowMoreButton(data.showMoreText)"}),_.O("design:type",Object)],fQ.prototype,"showMoreButton",void 0);
_.t([_.r({computed:"computeIsCollapsible(data)"}),_.O("design:type",Object)],fQ.prototype,"isCollapsible",void 0);_.t([_.VP("#items"),_.O("design:type",HTMLElement)],fQ.prototype,"items",void 0);_.t([_.Mr("guidePersistentAndVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fQ.prototype,"persistentGuideChanged",null);_.t([_.nK("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fQ.prototype,"onIronResize",null);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fQ.prototype,"initCollapsed",null);_.t([_.Mr("canShowMore"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fQ.prototype,"fillRestIfNotCollapsible",null);_.t([_.Z({is:"ytd-grid-renderer",disableElementRegistration:!0})],fQ);
_.T(fQ,"ytd-grid-renderer",function(){if(IZ3!==void 0)return IZ3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.title]]" class="style-scope ytd-grid-renderer">\n  <h3 class="channel-link style-scope ytd-grid-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-grid-renderer"></yt-formatted-string>\n  </h3>\n</template>\n<div id="items" class="style-scope ytd-grid-renderer"></div>\n<ytd-button-renderer id="show-more-button" align-by-text="" data="[[showMoreButton]]" hidden="[[!computeExpandVisible(isCollapsible, collapsed, canShowMore, data)]]" on-tap="onExpandTap" class="style-scope ytd-grid-renderer">\n</ytd-button-renderer>\n<yt-formatted-string id="view-all" hidden="[[computeViewAllHidden(canShowMore, data)]]" text="[[data.viewAllText]]" class="style-scope ytd-grid-renderer">\n</yt-formatted-string>\n<div id="continuations" class="style-scope ytd-grid-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return IZ3=d},{mode:_.qk("kevlar_poly_si_batch_j025")?1:2});var Ay=function(){return _.B.apply(this,arguments)||this};
_.m(Ay,_.B);
Ay.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Ay.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ay.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ay.prototype,"data",void 0);_.t([_.Z({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Ay);
_.T(Ay,"ytd-carousel-ad-renderer",function(){if(MmC!==void 0)return MmC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-carousel-ad-renderer">\n  <div id="badge" class="style-scope ytd-carousel-ad-renderer"></div>\n  <h3 id="title-text" class="style-scope ytd-carousel-ad-renderer">\n    <yt-formatted-string text="[[data.adMetadata.displayAdRenderer.titleText]]" class="style-scope ytd-carousel-ad-renderer">\n    </yt-formatted-string>\n  </h3>\n  <div id="menu" class="style-scope ytd-carousel-ad-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-carousel-ad-renderer"></div>\n<div id="footer" class="style-scope ytd-carousel-ad-renderer">\n  <yt-formatted-string id="footer-string" text="[[data.adMetadata.displayAdRenderer.footerString]]" title="[[getSimpleString(data.adMetadata.displayAdRenderer.footerString)]]" class="style-scope ytd-carousel-ad-renderer">\n  </yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return MmC=d},{mode:1});var tm6;var jw=function(){return _.B.apply(this,arguments)||this};
_.m(jw,_.B);_.G=jw.prototype;_.G.configureRendererStamper=function(){return{"data.content.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.content.adBadge]]"}}}},"data.content.closeButton":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,jw.JSC$15296_CLICK_LOCATION_ID_MAP))};
_.G.onSitelinkTap=function(d){d.stopPropagation();var H,K,c=d==null?void 0:(H=d.model)==null?void 0:(K=H.item)==null?void 0:K.onTap;c&&this.ytSparklesClickLocationBehavior.handleClick(c,d,!1)};
_.G.onTap=function(d){var H=this.data&&this.data.content&&this.data.content.navigationEndpoint;H&&this.ytSparklesClickLocationBehavior.handleClick(H,d,!1)};
_.G.sendImpression=function(){if(this.data&&this.data.content)for(var d=_.q(this.data.content.impressionEndpoints||[]),H=d.next();!H.done;H=d.next()){H=_.q(H.value.loggingUrls||[]);for(var K=H.next();!K.done;K=H.next())K=K.value,K.baseUrl&&EX(K.baseUrl,K.attributionSrcMode)}};
jw.prototype.onTap=jw.prototype.onTap;jw.prototype.dataChanged=jw.prototype.dataChanged;jw.JSC$15296_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],jw.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.i3.YtSparklesClickLocationBehavior),_.O("design:type",Object)],jw.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],jw.prototype,"data",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jw.prototype,"dataChanged",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],jw.prototype,"onTap",null);_.t([_.Z({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],jw);
_.T(jw,"ytd-promoted-sparkles-text-search-renderer",function(){if(tm6!==void 0)return tm6;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-text-search-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n  <div id="main-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <h3 id="title" aria-label$="[[data.content.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.content.title)]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-img-shadow id="favicon" hidden="[[!data.content.favicon]]" thumbnail="[[data.content.favicon]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-img-shadow>\n        [[getSimpleString(data.content.title)]]\n    </h3>\n    <yt-formatted-string id="description" no-endpoints="[[noEndpoints]]" text="[[data.content.descriptionText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    </yt-formatted-string>\n    <div id="sitelinks-table" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <template id="sitelinks-dom-repeat" is="dom-repeat" items="[[data.content.sitelinks]]" as="item" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-formatted-string id="sitelinks" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" role="link" text="[[item.title]]" on-click="onSitelinkTap" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="format-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <div id="ad-badge" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n      <yt-formatted-string id="display-url" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" text="[[data.content.websiteText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="right-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <div id="menu" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n    <div id="call-to-action" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return tm6=d},{mode:1});var YJ3;var v2=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-mute-ad-action":"handleMuteAd"};return d};
_.m(v2,_.B);_.G=v2.prototype;
_.G.configureRendererStamper=function(){return{"data.menu":{id:_.h("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.G.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.G.computeHasAdBadge=function(d){return!(d==null||!d.adBadge)};
_.G.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",v2.JSC$15305_DEFAULT_AD_BADGE_RENDERER),_.qr(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,v2.JSC$15305_CLICK_LOCATION_ID_MAP))};
_.G.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var d;(((d=this.data)==null?void 0:d.impressionCommands)||[]).forEach(function(H){H=_.q(H.loggingUrls||[]);for(var K=H.next();!K.done;K=H.next())K=K.value,K.baseUrl&&EX(K.baseUrl,K.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.G.onTap=function(d){var H,K=(H=this.data)==null?void 0:H.navigationEndpoint,c;(H=(c=this.data)==null?void 0:c.thumbnailNavigationEndpoint)&&_.dB(_.jh(d),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(H,d,!1):K&&this.ytSparklesClickLocationBehavior.handleClick(K,d,!1)};
_.G.handleMuteAd=function(){this.collapsed=!0};
_.G.attached=function(){var d=this;_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&d.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.G.detached=function(){_.h("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.H3.Object.defineProperties(v2.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var d;return!(((d=this.data)==null?void 0:d.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var d;return!(((d=this.data)==null?void 0:d.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
v2.prototype.dataChanged=v2.prototype.dataChanged;
v2.JSC$15305_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","action-button"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","sparkles-container"]]);
v2.JSC$15305_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Vz("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],v2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);_.t([_.u(Q6),_.O("design:type",Object)],v2.prototype,"ytdActiveViewBehavior",void 0);
_.t([_.u([_.Uq.YtActionHandlerBehavior]),_.O("design:type",Object)],v2.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.i3.YtSparklesClickLocationBehavior),_.O("design:type",Object)],v2.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],v2.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],v2.prototype,"collapsed",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.O("design:type",Boolean)],v2.prototype,"useBiggerThumbs",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.GJ("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],v2.prototype,"biggerThumbsStyle",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.h("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.O("design:type",Boolean)],v2.prototype,"fixAlignmentSmallScreens",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs_square")}}),
_.O("design:type",Boolean)],v2.prototype,"useBiggerThumbsSquare",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data.mediaHoverOverlay"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],v2.prototype,"hideHoverOverlay",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.promotedSparklesWebStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],v2.prototype,"webSearchLayout",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],v2.prototype,"webSearchLayoutLandscape",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],v2.prototype,"webSearchLayoutSquare",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data.promotedSparklesWebStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],v2.prototype,"sparklesCtaNoBackground",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.actionButton"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],v2.prototype,"hideActionButton",null);_.t([_.r({computed:"computeButtonOverride(uiUpdate)"}),_.O("design:type",Object)],v2.prototype,"buttonOverride",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.O("design:type",Boolean)],v2.prototype,"hasNewAdBadge",void 0);_.t([_.I("data.promotedSparklesWebStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],v2.prototype,"useRoundedBadge",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],v2.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],v2);
_.T(v2,"ytd-promoted-sparkles-web-renderer",function(){if(YJ3!==void 0)return YJ3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-web-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sparkles-container" on-tap="onTap" class="style-scope ytd-promoted-sparkles-web-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="thumbnail-hover-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <div id="thumbnail-deep-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <yt-img-shadow id="thumbnail" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n        </yt-img-shadow>\n        <div id="media-badge-search" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n      </div>\n      <div id="media-hover-overlay" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n  </div>\n  <div id="sparkles-body-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="sparkles-body" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <h3 id="title" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.title)]]\n      </h3>\n      <div id="description" class="style-scope ytd-promoted-sparkles-web-renderer">\n        [[getSimpleString(data.description)]]\n      </div>\n      <div id="website-text-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <span id="ad-badge-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          </ytd-badge-supported-renderer>\n          <div id="ad-badge-new" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n        </span>\n        <div id="website-text" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.websiteText)]]\n        </div>\n      </div>\n      <div id="action-button" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n  </div>\n</div>\n<div id="old-menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return YJ3=d},{mode:1});var Ovl;var dw=function(){var d=_.B.apply(this,arguments)||this;d.isInlinePreviewTriggered=!1;d.enableMonoStyle=_.h("enable_default_mono_cta_migration_web_client");return d};
_.m(dw,_.B);_.G=dw.prototype;_.G.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.ctaRenderer":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.G.computeShowCta=function(d){return!(d==null||!d.ctaRenderer)};
_.G.onCtaClick=function(){var d,H,K,c=(d=this.data)==null?void 0:(H=d.ctaRenderer)==null?void 0:(K=H.buttonRenderer)==null?void 0:K.command;c&&this.ytComponentBehavior.resolveCommand(c)};
_.G.onWatchButtonClick=function(){var d,H,K,c=(d=this.data)==null?void 0:(H=d.watchButtonRenderer)==null?void 0:(K=H.buttonRenderer)==null?void 0:K.command;c&&this.ytComponentBehavior.resolveCommand(c)};
_.G.onTap=function(){};
_.G.dataChanged=function(){if(this.data){var d;_.h("enable_inline_muted_playback_on_web_search")&&((d=this.data)==null?0:d.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",dw.JSC$15309_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",dw.JSC$15309_DEFAULT_CLICK_LOCATION_BEHAVIOR,dw.JSC$15309_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(d=this.thumbnail.getElementsByTagName("a"),d.length>0&&(d=d.namedItem("thumbnail"))&&d.removeAttribute("href"))}};
_.G.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var d=_.q(this.data.impressionUrls),H=d.next();!H.done;H=d.next())H=H.value,RuF(H,Ukh(H));this.data.impressionsFired=!0}};
_.G.maybeComputeHref=function(){return null};
_.G.computeIsShortDR=function(d){return!(d==null||!d.watchButtonRenderer)&&!(d==null||!d.ctaRenderer)&&!!this.enableShortDR};
_.G.computeIsNewUiOrShortDr=function(d){return!!this.enableUiUpdate||this.computeIsShortDR(d)};
_.G.computeIsNewUiAndNotShortDr=function(d){return!!this.enableUiUpdate&&!this.computeIsShortDR(d)};
_.G.computeHideAvatar=function(d){return!((d==null?0:d.channelThumbnail)&&this.computeIsNewUiOrShortDr(d))};
_.G.onClick=function(d){var H,K=(H=this.data)==null?void 0:H.navigationEndpoint;if(this.enableShortDR&&K&&(_.M(K,_.AP)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(K,d,!!_.M(K,_.AP)),d.stopPropagation();else if(K&&_.M(K,_.AP))this.ytSparklesClickLocationBehavior.handleClick(K,d,!0),d.stopPropagation();else if(K){var c,p;((c=this.data)==null?0:c.navigationEndpoint)&&((p=this.data)==null?0:p.adPlaybackContextParams)&&(H=this.data.navigationEndpoint,d=this.data.adPlaybackContextParams,
H.commandMetadata&&_.M(H.commandMetadata,_.Co)&&_.M(H.commandMetadata,_.Co).url&&(H=_.NM(_.M(H.commandMetadata,_.Co).url).adurl)&&_.Uof(H)&&_.Hy(_.yK(H),{encoded_ad_playback_context:d}));this.ytComponentBehavior.resolveCommand(K)}};
_.G.computeButtonOverride=function(d){if(this.computeIsNewUiOrShortDr(d))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.G.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.G.onThumbnailContainerClick=function(d){this.onClick(d)};
_.G.computeThumbnailWidth=function(d,H){return d?H==="MASSIVE"?600:H==="BIG"?500:H==="MEDIUM"?450:420:360};
_.G.attached=function(){var d=this,H;_.h("enable_inline_muted_playback_on_web_search")&&((H=this.data)==null?0:H.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&d.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.G.detached=function(){var d;_.h("enable_inline_muted_playback_on_web_search")&&((d=this.data)==null?0:d.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.h("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.G.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15310_inlinePreviewHoverListener=Y6({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:K83})};
_.G.clearInlinePreviewHoverListeners=function(){var d;(d=this.JSC$15310_inlinePreviewHoverListener)==null||f8(d)};
dw.prototype.dataChanged=dw.prototype.dataChanged;dw.prototype.onTap=dw.prototype.onTap;dw.JSC$15309_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Vz("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};dw.JSC$15309_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
dw.JSC$15309_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],dw.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);_.t([_.u(Q6),_.O("design:type",Object)],dw.prototype,"ytdActiveViewBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],dw.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.i3.YtSparklesClickLocationBehavior),_.O("design:type",Object)],dw.prototype,"ytSparklesClickLocationBehavior",void 0);
_.t([_.VP("#main-container"),_.O("design:type",HTMLElement)],dw.prototype,"mainContainer",void 0);_.t([_.r(),_.O("design:type",Object)],dw.prototype,"isInlinePreviewTriggered",void 0);_.t([_.r(),_.O("design:type",Object)],dw.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.O("design:type",Boolean)],dw.prototype,"useBiggerThumbs",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.h("enable_video_display_compact_button_group_for_desktop_search")}}),
_.O("design:type",Boolean)],dw.prototype,"enableShortDR",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.h("enable_vac_ui_update_for_desktop_search")}}),
_.O("design:type",Boolean)],dw.prototype,"enableUiUpdate",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.GJ("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],dw.prototype,"biggerThumbsStyle",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.O("design:type",Boolean)],dw.prototype,"showCta",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.O("design:type",Boolean)],dw.prototype,"isShortDr",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.O("design:type",Boolean)],dw.prototype,"isShortDrOrNewUi",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.O("design:type",Boolean)],dw.prototype,"isNewUiAndNotShortDr",void 0);_.t([_.r({computed:"computeButtonOverride(data)"}),_.O("design:type",Object)],dw.prototype,"buttonOverride",void 0);_.t([_.r({computed:"computeSecondaryButtonOverride(data)"}),_.O("design:type",Object)],dw.prototype,"secondaryButtonOverride",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],dw.prototype,"enableMonoStyle",void 0);
_.t([_.VP("ytd-thumbnail"),_.O("design:type",HTMLElement)],dw.prototype,"thumbnail",void 0);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dw.prototype,"onTap",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dw.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],dw);
_.T(dw,"ytd-promoted-video-renderer",function(){if(Ovl!==void 0)return Ovl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" on-click="onThumbnailContainerClick" class="style-scope ytd-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div id="metadata-container" class="style-scope ytd-promoted-video-renderer">\n    <div id="text-container" class="style-scope ytd-promoted-video-renderer">\n      <a id="endpoint" class="yt-simple-endpoint style-scope ytd-promoted-video-renderer" data="[[data.navigationEndpoint]]" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick">\n        <div id="meta" class="style-scope ytd-promoted-video-renderer">\n          <div id="title-wrapper" class="style-scope ytd-promoted-video-renderer">\n            \n            <h3 id="video-title" aria-label$="[[data.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-video-renderer">\n              [[getSimpleString(data.title)]]\n            </h3>\n          </div>\n          \n          <span id="description-text" hidden="[[!computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n          <div id="byline" class="style-scope ytd-promoted-video-renderer">\n            <div id="channel-thumbnail-container" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" hidden="[[computeHideAvatar(data)]]" class="style-scope ytd-promoted-video-renderer">\n                <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" class="style-scope ytd-promoted-video-renderer">\n                </yt-img-shadow>\n            </div>\n            <div id="ad-badge-container" hidden="[[!data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              <ytd-badge-supported-renderer top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <ytd-video-meta-block id="ad-badge-metablock" data="[[data]]" class="style-scope ytd-promoted-video-renderer"></ytd-video-meta-block>\n          </div>\n        </div>\n        <span id="description-text" hidden="[[computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n        <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n      </a>\n      <div id="button-container" class="style-scope ytd-promoted-video-renderer">\n        <template is="dom-if" if="[[computeIsShortDR(data)]]" class="style-scope ytd-promoted-video-renderer">\n          <ytd-button-renderer id="secondary-button" data="[[data.watchButtonRenderer.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data)]]" on-click="onWatchButtonClick" class="style-scope ytd-promoted-video-renderer">\n          </ytd-button-renderer>\n        </template>\n        <div id="call-to-action" on-click="onCtaClick" class="style-scope ytd-promoted-video-renderer"></div>\n      </div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-video-renderer"></div>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Ovl=d},{mode:1});var SJB;var Hh=function(){var d=_.B.apply(this,arguments)||this;d.useRoundedBadge=!0;d.sitelinkIds=[];return d};
_.m(Hh,_.B);_.G=Hh.prototype;
_.G.configureRendererStamper=function(){return{"data.menu":{id:_.h("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.G.dataChanged=function(){var d;(d=this.data)!=null&&d.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Hh.JSC$15315_CLICK_LOCATION_ID_MAP)};
_.G.onTap=function(d){var H,K=(H=this.data)==null?void 0:H.navigationCommand;K&&!_.dB(_.jh(d),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(K,d,!1)};
_.G.onSitelinkTap=function(d){var H,K,c=d==null?void 0:(H=d.model)==null?void 0:(K=H.item)==null?void 0:K.onTap;c&&this.ytSparklesClickLocationBehavior.handleClick(c,d,!1)};
_.G.configureSitelinkClickTargets=function(){var d=this,H,K,c=(H=this.data)==null?void 0:(K=H.clickLocationTargets)==null?void 0:K.find(function(p){return p.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
c&&_.Gn(this.hostElement).querySelectorAll(".sitelink").forEach(function(p){_.qr(p,"yt-simple-endpoint",!0);d.sitelinkIds.push(p.id);var g,a;(g=d.ytSparklesClickLocationBehavior)==null||(a=g.clickTargetMap)==null||a.set(p.id,c)})};
_.G.sendImpression=function(){var d,H,K=((d=this.data)==null?void 0:(H=d.impressionCommand)==null?void 0:H.loggingUrls)||[];d=_.q(K);for(H=d.next();!H.done;H=d.next())H=H.value,H.baseUrl&&EX(H.baseUrl,H.attributionSrcMode)};
_.G.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.H3.Object.defineProperties(Hh.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
Hh.prototype.onTap=Hh.prototype.onTap;Hh.prototype.dataChanged=Hh.prototype.dataChanged;Hh.JSC$15315_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.i3.YtSparklesClickLocationBehavior),_.O("design:type",Object)],Hh.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Hh.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Hh.prototype,"showFavicon",null);_.t([_.r({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.O("design:type",Boolean)],Hh.prototype,"useBiggerThumbs",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.GJ("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],Hh.prototype,"biggerThumbsStyle",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.h("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.O("design:type",Boolean)],Hh.prototype,"enableThumbnailScalingFix",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Hh.prototype,"dataChanged",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Hh.prototype,"onTap",null);_.t([_.Z({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Hh);
_.T(Hh,"ytd-text-image-no-button-layout-renderer",function(){if(SJB!==void 0)return SJB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-image-no-button-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n  <div id="text-image-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="media-hover-overlay" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n    <div id="text-image" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-img-shadow id="text-image-favicon" hidden="[[!showFavicon]]" thumbnail="[[data.favicon]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-img-shadow>\n      <h3 id="text-image-title" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.title)]]</h3>\n    </div>\n    <div id="media-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="metadata-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="metadata-body" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-formatted-string id="headline" ellipsis-truncate="" no-endpoints="" text="[[data.headline]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <yt-formatted-string id="description" ellipsis-truncate="" no-endpoints="" text="[[data.description]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <div id="details-line" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <div id="ad-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n        <div id="website-text" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.websiteText)]]</div>\n      </div>\n      <div id="sitelinks-carousel" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <template is="dom-repeat" items="[[data.sitelinks]]" as="item" on-dom-change="configureSitelinkClickTargets" class="style-scope ytd-text-image-no-button-layout-renderer">\n          <div class="sitelink-container style-scope ytd-text-image-no-button-layout-renderer">\n            <yt-formatted-string id="sitelink-[[index]]" class="sitelink style-scope ytd-text-image-no-button-layout-renderer" ellipsis-truncate="" no-endpoints="" role="link" text="[[item.title]]" on-click="onSitelinkTap"></yt-formatted-string>\n          </div>\n        </template>\n      </div>\n    </div>\n    <div id="new-menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return SJB=d},{mode:_.qk("kevlar_poly_si_batch_j028")?1:2});var E7C;var $Q=function(){var d=_.B.apply(this,arguments)||this;d.isInlinePlaybackState=!1;d.uiUpdate=_.h("web_modern_buttons");d.hideCta=_.h("hide_cta_for_home_web_video_ads");d.noBottomMargin=!1;d.animateInTimeStamp=_.iT("hide_cta_for_home_web_video_ads_animate_in_time");d.animateInCta=!1;d.isHovered=!1;d.enableMonoStyle=_.h("enable_default_mono_cta_migration_web_client");d.player=null;d.JSC$15322_playerEvents=new Map;d.JSC$15322_preventProgressSaveTimer=null;d.delayedCtaJobId=null;return d};
_.m($Q,_.B);_.G=$Q.prototype;_.G.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.adCtaButton":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.G.attached=function(){this.JSC$15322_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15322_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.h("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.G.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15322_playerEvents)};
_.G.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",$Q.JSC$15321_DEFAULT_CLICK_LOCATION_BEHAVIOR,$Q.JSC$15321_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.G.hoverChanged=function(){var d=this;this.delayedCtaJobId&&(_.Xp.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.h("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.rB(_.Xp,function(){d.buttonContainer.classList.add("show-delayed-buttons")},_.iT("delayed_cta_on_web_delay_milliseconds")))};
_.G.setPlayer=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1)return(H=_.qo(d.hostElement,"yt-get-inline-preview-player-action"))&&H[0]?K.yield(H[0].getPlayerPromise(),3):K.jumpTo(0);d.player=K.yieldResult;d.ytPlayerListenerBehavior.listenToPlayerEvents(d.player,d.JSC$15322_playerEvents);_.VE(K)})};
_.G.onPlaybackStart=function(){var d=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15322_preventProgressSaveTimer=_.lV(_.Xp,function(){d.JSC$15322_preventProgressSaveTimer=null},1E4))};
_.G.onVideoProgress=function(d){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&d>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.G.resetPreventProgressSaveTimer=function(){_.Xp.cancelJob(this.JSC$15322_preventProgressSaveTimer);this.JSC$15322_preventProgressSaveTimer=null};
_.G.getSimpleString=function(d){return _.jG(d)};
_.G.onClick=function(d){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var H,K=(H=this.data)==null?void 0:H.navigationEndpoint,c;H=(c=this.data)==null?void 0:c.channelEndpoint;var p,g;(c=(g=_.M((p=this.data)==null?void 0:p.adCtaButton,_.Tz))==null?void 0:g.command)&&_.dB(_.jh(d),this.hostElement,["call-to-action"])?_.h("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(c,d,!1):H&&_.dB(_.jh(d),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(H,d,!1):!_.dB(_.jh(d),this.hostElement,["secondary-button"])&&K&&(_.h("enable_short_dr_for_desktop_launchable")?(p=!!_.M(K,_.AP),this.isInlinePlaybackState&&p&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(K,d,p)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(K,d,!0)))}};
_.G.updateWatchEndpointStartTime=function(){var d,H;this.player&&((d=this.data)==null?0:d.inlinePlaybackEndpoint)&&((H=this.data)==null?0:H.navigationEndpoint)&&!this.JSC$15322_preventProgressSaveTimer&&(d=Math.floor(this.player.getCurrentTime()),_.M(this.data.navigationEndpoint,_.AP).startTimeSeconds=d,_.M(this.data.inlinePlaybackEndpoint,_.AP).startTimeSeconds=d)};
_.G.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.G.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.H3.Object.defineProperties($Q.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.h("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var d,H;return!((d=this.data)==null||!d.watchButton)&&!((H=this.data)==null||!H.adCtaButton)}}});
$Q.prototype.hoverChanged=$Q.prototype.hoverChanged;$Q.prototype.dataChanged=$Q.prototype.dataChanged;
$Q.JSC$15321_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","channel-thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","short-byline-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","call-to-action"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","ad-inline-playback-metadata"]]);
$Q.JSC$15321_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",
code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],$Q.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.i3.YtSparklesClickLocationBehavior),_.O("design:type",Object)],$Q.prototype,"ytSparklesClickLocationBehavior",void 0);
_.t([_.u(_.jk.YtPlayerListenerBehavior),_.O("design:type",_.vn)],$Q.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],$Q.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],$Q.prototype,"isInlinePlaybackState",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],$Q.prototype,"miniMode",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],$Q.prototype,"uiUpdate",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],$Q.prototype,"hideCta",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],$Q.prototype,"noBottomMargin",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],$Q.prototype,"animateInCta",void 0);_.t([_.r({computed:"computeButtonOverride(uiUpdate)"}),_.O("design:type",Object)],$Q.prototype,"buttonOverride",void 0);
_.t([_.r({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.O("design:type",Object)],$Q.prototype,"secondaryButtonOverride",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],$Q.prototype,"isHovered",void 0);_.t([_.VP("#button-container"),_.O("design:type",HTMLElement)],$Q.prototype,"buttonContainer",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],$Q.prototype,"typographyBump",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("typographyBump"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],$Q.prototype,"typographyBumpV2",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],$Q.prototype,"enableMonoStyle",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$Q.prototype,"dataChanged",null);
_.t([_.CK("isHovered"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$Q.prototype,"hoverChanged",null);_.t([_.I("data"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],$Q.prototype,"isButtonGroup",null);_.t([_.Z({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],$Q);
_.T($Q,"ytd-ad-inline-playback-meta-block",function(){if(E7C!==void 0)return E7C;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-inline-playback-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ad-inline-playback-metadata" on-click="onClick" class="style-scope ytd-ad-inline-playback-meta-block">\n  <div id="meta-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <div id="channel-thumbnail-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <a id="avatar-link" class="yt-simple-endpoint style-scope ytd-ad-inline-playback-meta-block" hidden="[[!data.channelThumbnail]]" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" tabindex="-1">\n        <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" width="48" class="style-scope ytd-ad-inline-playback-meta-block">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="info-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <div id="title-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="video-title" text="[[data.title]]" title="[[getSimpleString(data.title)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="menu" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n      <div id="description-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="description" text="[[data.description]]" title="[[getSimpleString(data.description)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="byline-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <div id="badge" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n        <ytd-channel-name id="short-byline-text" channel-name="[[data.shortBylineText]]" no-endpoints="true" wrap-text="true" class="style-scope ytd-ad-inline-playback-meta-block"></ytd-channel-name>\n      </div>\n      <div id="secondary-description-container" aria-hidden="true" hidden="[[!data.secondaryDescription]]" "="" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="secondary-description" text="[[data.secondaryDescription]]" title="[[getSimpleString(data.secondaryDescription)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n    </div>\n  </div>\n  <div id="button-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <template is="dom-if" if="[[data.watchButton.buttonRenderer]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      <ytd-button-renderer id="secondary-button" data="[[data.watchButton.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data.watchButton.buttonRenderer)]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      </ytd-button-renderer>\n    </template>\n    <div id="call-to-action" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return E7C=d},{mode:_.qk("kevlar_poly_si_batch_j065")?1:2});var yjl;var Kg=function(){var d=_.B.apply(this,arguments)||this;d.noBottomMargin=!1;d.isInlinePreviewTriggered=!1;d.JSC$15327_activeViewMeasurementDataResolver=_.DA();return d};
_.m(Kg,_.B);_.G=Kg.prototype;_.G.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.G.attached=function(){var d=this;this.updateInlinePreviewHoverListeners();this.JSC$15327_activeViewMeasurementDataResolver.promise.then(function(H){d.ytdActiveViewBehavior.enableActiveViewMeasurement(H,15)});
_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&d.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.G.detached=function(){this.clearInlinePreviewHoverListeners();_.h("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.G.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15327_inlinePreviewHoverListener=Y6({mediaRenderer:this,lockupElement:this.JSC$15327_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:K83})};
_.G.clearInlinePreviewHoverListeners=function(){var d;(d=this.JSC$15327_inlinePreviewHoverListener)==null||f8(d)};
_.G.onDataChanged=function(){var d;((d=this.data)==null?0:d.activeView)&&this.JSC$15327_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Kg.JSC$15326_DEFAULT_CLICK_LOCATION_BEHAVIOR,Kg.JSC$15326_CLICK_LOCATION_ID_MAP);this.thumbnail&&(d=this.thumbnail.getElementsByTagName("a"),d.length>0&&(d=d.namedItem("thumbnail"))&&d.removeAttribute("href"));var H;if((H=this.data)==
null?0:H.forceImpAutoplay){var K;(K=this.JSC$15327_inlinePreviewHoverListener)==null||GgX(K)}};
_.G.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.G.onThumbnailContainerClick=function(d){if(this.data&&this.data.navigationEndpoint){var H,K=(H=this.data)==null?void 0:H.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(K,d,!!_.M(K,_.AP));d.stopPropagation()}};
_.G.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.G.impressionLog=function(){var d=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var H,K,c=(K=_.M((H=this.data)==null?void 0:H.onImpression,_.kW))==null?void 0:K.commands;c&&(c.forEach(function(p){p.clickTrackingParams&&delete p.clickTrackingParams;d.ytComponentBehavior.resolveCommand(p)}),this.data.impressionsFired=!0)}};
_.H3.Object.defineProperties(Kg.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.JSC$15327_inlinePreviewHoverListener)==null?0:QJ(d))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Kg.prototype.onTypographyBumpChanged=Kg.prototype.onTypographyBumpChanged;Kg.prototype.onDataChanged=Kg.prototype.onDataChanged;Kg.JSC$15326_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Kg.JSC$15326_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Kg.prototype,"ytComponentBehavior",void 0);_.t([_.u(Q6),_.O("design:type",Object)],Kg.prototype,"ytdActiveViewBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Kg.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Kg.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],Kg.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.u(_.fe),_.O("design:type",Object)],Kg.prototype,"ytdLockupBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Kg.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.i3.YtSparklesClickLocationBehavior),_.O("design:type",Object)],Kg.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Kg.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Kg.prototype,"noBottomMargin",void 0);
_.t([_.r(),_.O("design:type",Object)],Kg.prototype,"isInlinePreviewTriggered",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.JF}),_.O("design:type",Boolean)],Kg.prototype,"miniMode",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],Kg.prototype,"typographyBump",void 0);_.t([_.VP("ytd-thumbnail"),_.O("design:type",HTMLElement)],Kg.prototype,"thumbnail",void 0);_.t([_.VP("#dismissible"),_.O("design:type",HTMLElement)],Kg.prototype,"JSC$15327_dismissibleMedia",void 0);
_.t([_.VP("ytd-ad-inline-playback-meta-block"),_.O("design:type",HTMLElement)],Kg.prototype,"adInlinePlaybackMetaBlock",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kg.prototype,"onDataChanged",null);_.t([_.Mr("typographyBump"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kg.prototype,"onTypographyBumpChanged",null);
_.t([_.I("lockupIsHovered"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Kg.prototype,"isHovered",null);_.t([_.Z({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Kg);
_.T(Kg,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(yjl!==void 0)return yjl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return yjl=d},{mode:1});var bvl;var ch=function(){var d=_.B.apply(this,arguments)||this;d.isInlinePreviewTriggered=!1;d.JSC$15330_activeViewMeasurementDataResolver=_.DA();return d};
_.m(ch,_.B);_.G=ch.prototype;_.G.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.G.attached=function(){var d=this;this.updateInlinePreviewHoverListeners();this.JSC$15330_activeViewMeasurementDataResolver.promise.then(function(H){d.ytdActiveViewBehavior.enableActiveViewMeasurement(H,15)})};
_.G.detached=function(){this.clearInlinePreviewHoverListeners()};
_.G.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15330_inlinePreviewHoverListener=Y6({mediaRenderer:this,lockupElement:this.JSC$15330_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:K83})};
_.G.clearInlinePreviewHoverListeners=function(){var d;(d=this.JSC$15330_inlinePreviewHoverListener)==null||f8(d)};
_.G.onDataChanged=function(){var d;((d=this.data)==null?0:d.activeView)&&this.JSC$15330_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",ch.JSC$15329_DEFAULT_CLICK_LOCATION_BEHAVIOR,ch.JSC$15329_CLICK_LOCATION_ID_MAP);this.thumbnail&&(d=this.thumbnail.getElementsByTagName("a"),d.length>0&&(d=d.namedItem("thumbnail"))&&d.removeAttribute("href"))};
_.G.onThumbnailContainerClick=function(d){if(this.data&&this.data.navigationEndpoint){var H,K=(H=this.data)==null?void 0:H.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(K,d,!0);d.stopPropagation()}};
_.G.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.G.impressionLog=function(){var d=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var H,K,c=(K=_.M((H=this.data)==null?void 0:H.onImpression,_.kW))==null?void 0:K.commands;c&&(c.forEach(function(p){p.clickTrackingParams&&delete p.clickTrackingParams;_.Kj().resolve(_.cb).resolveCommand(p,{form:{element:d.hostElement}})}),this.data.impressionsFired=!0)}};
_.H3.Object.defineProperties(ch.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.JSC$15330_inlinePreviewHoverListener)==null?0:QJ(d))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ch.prototype.onDataChanged=ch.prototype.onDataChanged;ch.JSC$15329_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);ch.JSC$15329_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.t([_.u(Q6),_.O("design:type",Object)],ch.prototype,"ytdActiveViewBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ch.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],ch.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(_.fe),_.O("design:type",Object)],ch.prototype,"ytdLockupBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],ch.prototype,"ytdReduxBehavior",void 0);
_.t([_.u(_.i3.YtSparklesClickLocationBehavior),_.O("design:type",Object)],ch.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ch.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],ch.prototype,"isInlinePreviewTriggered",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.JF}),_.O("design:type",Boolean)],ch.prototype,"miniMode",void 0);_.t([_.VP("ytd-thumbnail"),_.O("design:type",HTMLElement)],ch.prototype,"thumbnail",void 0);
_.t([_.VP("#dismissible"),_.O("design:type",HTMLElement)],ch.prototype,"JSC$15330_dismissibleMedia",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ch.prototype,"onDataChanged",null);_.t([_.I("lockupIsHovered"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ch.prototype,"isHovered",null);_.t([_.Z({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],ch);
_.T(ch,"ytd-video-display-full-buttoned-renderer",function(){if(bvl!==void 0)return bvl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" class="style-scope ytd-video-display-full-buttoned-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return bvl=d},{mode:1});var cK=function(d,H,K,c){c=c===void 0?!1:c;_.dh.call(this,d);this.adsClientErrorMessage=K;this.aggressivelySample=c;this.args=[];H&&this.args.push(H)};
_.m(cK,_.dh);var $E=function(d,H,K,c){c=c===void 0?!1:c;_.dh.call(this,d);this.adsClientErrorMessage=K;this.aggressivelySample=c;this.args=[];H&&this.args.push(H)};
_.m($E,_.dh);var NxM=function(d){_.h_.call(this);var H=this;this.initializationFunction=d;this.instance=null;this.addOnDisposeCallback(function(){_.AA(H.instance);H.instance=null})};
_.m(NxM,_.h_);NxM.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.Db("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var YWE=function(){var d=new Map;[].forEach(function(H){d.set(H.JSC$30340_getType(),H)});
this.getters=d};new Promise(function(){});var F0X=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"]]),Jr5=new Map([["normal",{requestEvent:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{requestEvent:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{requestEvent:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{requestEvent:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{requestEvent:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{requestEvent:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",
successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],["error",{requestEvent:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]),DP0=function(d){this.experimentApiProvider=d;d=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=d<.1};var pg=function(d,H,K,c){_.h_.call(this);this.adsControlFlowEventListeners=H;this.adEventLogger=K;this.experimentApiProvider=c;this.adsControlFlowManagerHelper=d(this,this,this,this,this);_.q_(this,this.adsControlFlowManagerHelper);d=_.q(H);for(H=d.next();!H.done;H=d.next())_.q_(this,H.value)};
_.m(pg,_.h_);var fZ3=function(d,H,K,c){gw(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",H,K,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,c);d=_.q(d.adsControlFlowEventListeners);for(c=d.next();!c.done;c=d.next())fZ3(c.value,H,K)};
_.G=pg.prototype;_.G.onOpportunityProcessedExternallyManaged=function(d,H,K,c){gw(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",d,K,H,void 0,void 0,void 0,void 0,void 0,void 0,void 0,c)};
_.G.onSlotReceivedExternallyManaged=function(d,H){il(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",d,H)};
_.G.onSlotEntered=function(d){if(GX(this.adsControlFlowManagerHelper,d)!=null){il(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",d);this.adsControlFlowManagerHelper.onSlotEntered(d);for(var H=_.q(this.adsControlFlowEventListeners),K=H.next();!K.done;K=H.next())K.value.onSlotEntered(d);if(GX(this.adsControlFlowManagerHelper,d)!=null&&GX(this.adsControlFlowManagerHelper,d).isOccupyingSlotType()&&oM(this.adsControlFlowManagerHelper,d)&&!Aj6(this.adsControlFlowManagerHelper,d)){var c;qz(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",d,(c=oM(this.adsControlFlowManagerHelper,d))!=null?c:void 0);d=GX(this.adsControlFlowManagerHelper,d);d.slotLifecycleStage!=="entered"&&aM(d.slot,d.slotLifecycleStage,"enterLayoutForSlot");d.slotLifecycleStage="rendering";d.registeredLayoutRenderingAdapter.startRendering(d.layout)}}};
_.G.onSlotExited=function(d){if(GX(this.adsControlFlowManagerHelper,d)!=null){il(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",d);this.adsControlFlowManagerHelper.onSlotExited(d);for(var H=_.q(this.adsControlFlowEventListeners),K=H.next();!K.done;K=H.next())K.value.onSlotExited(d);GX(this.adsControlFlowManagerHelper,d)!=null&&GX(this.adsControlFlowManagerHelper,d).markedForUnscheduleAfterOutboundAdapterRequests&&jg7(this,d)}};
_.G.onLayoutReceivedExternallyManaged=function(d,H,K){d.managerLayer!=="core"&&qz(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",d,H,K)};
var v7S=function(d,H,K){if(GX(d.adsControlFlowManagerHelper,H)!=null){qz(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",H,K);d=_.q(d.adsControlFlowEventListeners);for(var c=d.next();!c.done;c=d.next())v7S(c.value,H,K)}};
pg.prototype.onLayoutExited=function(d,H,K){if(GX(this.adsControlFlowManagerHelper,d)!=null){qz(this.adEventLogger,sWL(K),d,H);this.adsControlFlowManagerHelper.onLayoutExited(d,H);for(var c=_.q(this.adsControlFlowEventListeners),p=c.next();!p.done;p=c.next())p.value.onLayoutExited(d,H,K);(K=oM(this.adsControlFlowManagerHelper,d))&&H.layoutId===K.layoutId&&dB7(this,d)}};
pg.prototype.disposeInternal=function(){var d=Hh3(this.adsControlFlowManagerHelper);d=_.q(d);for(var H=d.next();!H.done;H=d.next())jg7(this,H.value);_.h_.prototype.disposeInternal.call(this)};
var jg7=function(d,H){if(GX(d.adsControlFlowManagerHelper,H)!=null)if(GX(d.adsControlFlowManagerHelper,H).JSC$30370_isSlotExitRequested()||GX(d.adsControlFlowManagerHelper,H).JSC$30370_isLayoutExitRequested())GX(d.adsControlFlowManagerHelper,H).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(GX(d.adsControlFlowManagerHelper,H).isOccupyingSlotType())GX(d.adsControlFlowManagerHelper,H).markedForUnscheduleAfterOutboundAdapterRequests=!0,dB7(d,H);else if(GX(d.adsControlFlowManagerHelper,H).JSC$30370_isSlotFillRequested())GX(d.adsControlFlowManagerHelper,
H).markedForUnscheduleAfterOutboundAdapterRequests=!0,GX(d.adsControlFlowManagerHelper,H)!=null&&(il(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",H),H=GX(d.adsControlFlowManagerHelper,H),H.fulfillmentLifecycleStage="fill_cancel_requested",H.registeredFulfillmentAdapter.cancelSlotFilling());else{var K=oM(d.adsControlFlowManagerHelper,H),c;d.experimentApiProvider.get();(c=_.h("h5_enable_layout_unscheduling_events"))&&(K?$BN(d,H,K):_.Db(Error("Ih"),H,K,void 0,!1));il(d.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",H);var p=GX(d.adsControlFlowManagerHelper,H),g=H.slotEntryTrigger,a=p.registeredSlotEntryTriggerAdapters.get(g.triggerId);a&&(a.unregisterTrigger(g),p.registeredSlotEntryTriggerAdapters.delete(g.triggerId));g=_.q(H.slotFulfillmentTriggers);for(a=g.next();!a.done;a=g.next()){a=a.value;var e=p.registeredFulfillmentTriggerAdapters.get(a.triggerId);e&&(e.unregisterTrigger(a),p.registeredFulfillmentTriggerAdapters.delete(a.triggerId))}g=_.q(H.slotExpirationTriggers);
for(a=g.next();!a.done;a=g.next())if(a=a.value,e=p.registeredExpirationTriggerAdapters.get(a.triggerId))e.unregisterTrigger(a),p.registeredExpirationTriggerAdapters.delete(a.triggerId);p.hasLayout()&&(g=p.layout,ll(p,g.layoutExitNormalTriggers),ll(p,g.layoutExitSkipTriggers),ll(p,g.layoutExitMuteTriggers),ll(p,g.layoutExitUserInputSubmittedTriggers),ll(p,g.layoutExitUserCancelledTriggers));p.registeredFulfillmentAdapter=void 0;p.registeredSlotAdapter!=null&&(p.registeredSlotAdapter.release(),p.registeredSlotAdapter=
void 0);p.registeredLayoutRenderingAdapter!=null&&(p.registeredLayoutRenderingAdapter.release(),p.registeredLayoutRenderingAdapter=void 0);p=d.adsControlFlowManagerHelper;GX(p,H)&&(p=KxS(p,H.slotType+"_"+H.slotPhysicalPosition))&&p.delete(H.slotId);il(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",H);d=_.q(d.adsControlFlowEventListeners);for(p=d.next();!p.done;p=d.next())p=p.value,p.onSlotUnscheduled(H),K&&!c&&$BN(p,H,K)}},$BN=function(d,H,K){qz(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
H,K);
qz(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",H,K);d=_.q(d.adsControlFlowEventListeners);for(var c=d.next();!c.done;c=d.next())c=c.value,K&&$BN(c,H,K)},dB7=function(d,H){if(GX(d.adsControlFlowManagerHelper,H)!=null&&GX(d.adsControlFlowManagerHelper,H).isOccupyingSlotType()){var K=oM(d.adsControlFlowManagerHelper,H);
if(K&&Aj6(d.adsControlFlowManagerHelper,H)){if(GX(d.adsControlFlowManagerHelper,H)!=null){var c=d.adEventLogger,p;var g=((p=Jr5.get("abandoned"))==null?void 0:p.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";qz(c,g,H,K);d=GX(d.adsControlFlowManagerHelper,H);d.slotLifecycleStage!=="rendering"&&aM(d.slot,d.slotLifecycleStage,"exitLayout");d.slotLifecycleStage="rendering_stop_requested";d.registeredLayoutRenderingAdapter.stopRendering(K,"abandoned")}}else{il(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
H);try{c=GX(d.adsControlFlowManagerHelper,H);if(!c)throw new $E("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");c.slotLifecycleStage!=="enter_requested"&&c.slotLifecycleStage!=="entered"&&c.slotLifecycleStage!=="rendering"&&aM(c.slot,c.slotLifecycleStage,"exitSlot");c.slotLifecycleStage="exit_requested";if(c.registeredSlotAdapter===void 0)throw c.slotLifecycleStage="scheduled",new $E("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
c.registeredSlotAdapter.exit()}catch(a){a instanceof $E&&a.adsClientErrorMessage?(cnd(d.adEventLogger,a.adsClientErrorMessage,H),_.Db(a,H,void 0,void 0,a.aggressivelySample)):(cnd(d.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",H),_.Db(a,H))}}}};var e6=function(d,H,K,c,p,g){_.h_.call(this);this.registry=d;this.experimentApiProvider=g;this.slotMap=new Map};
_.m(e6,_.h_);var KxS=function(d,H){return(d=d.slotMap.get(H))?d:new Map},GX=function(d,H){return KxS(d,H.slotType+"_"+H.slotPhysicalPosition).get(H.slotId)},Hh3=function(d){var H=[];
d.slotMap.forEach(function(K){K=_.q(K.values());for(var c=K.next();!c.done;c=K.next())H.push(c.value.slot)});
return H};
e6.prototype.onSlotEntered=function(d){d=GX(this,d);d.slotLifecycleStage!=="enter_requested"&&aM(d.slot,d.slotLifecycleStage,"onSlotEntered");d.slotLifecycleStage="entered"};
var Aj6=function(d,H){d=GX(d,H);return d.hasLayout()&&d.isRendering()},oM=function(d,H){(d=GX(d,H))?d.hasLayout()&&!d.layout&&_.Db("Unexpected empty layout",H):_.Db("Unexpected undefined slotState",H);
return(d==null?void 0:d.layout)||null};
e6.prototype.onSlotExited=function(d){d=GX(this,d);d.slotLifecycleStage!=="exit_requested"&&aM(d.slot,d.slotLifecycleStage,"onSlotExited");d.slotLifecycleStage="scheduled"};
e6.prototype.onLayoutExited=function(d,H){d=GX(this,d);d.isPrimaryLayout(H)&&(d.slotLifecycleStage!=="rendering_stop_requested"&&aM(d.slot,d.slotLifecycleStage,"onLayoutExited"),d.slotLifecycleStage="entered")};
var ll=function(d,H){H=_.q(H);for(var K=H.next();!K.done;K=H.next()){K=K.value;var c=d.registeredLayoutExitTriggerAdapters.get(K.triggerId);c&&(c.unregisterTrigger(K),d.registeredLayoutExitTriggerAdapters.delete(K.triggerId))}},aM=function(d,H,K){_.Db("Slot stage was "+H+" when calling method "+K,d)};var ghB=function(d){_.h_.call(this);this.deps=d;this.JSC$15380_adsControlFlowManager=pul(this)};
_.m(ghB,_.h_);var pul=function(d){var H=new pg(function(K,c,p,g){return new e6(d.deps.registry,K,c,p,g,d.deps.experimentApiProvider)},new Set(tgM(d.deps.registry).concat(d.deps.listeners)),d.deps.adEventLogger,d.deps.experimentApiProvider);
_.q_(d,H);return H};var wyM=function(){};var ihC=function(d,H){_.h_.call(this);this.experimentApiProvider=d;this.eventLoggingSettingsProvider=H;this.eventCount=0;this.premiumAdSeenEventLogger=P51()()};
_.m(ihC,_.h_);ihC.prototype.logEvent=function(d){gw(this,d)};
var il=function(d,H,K,c){gw(d,H,void 0,void 0,void 0,K,void 0,void 0,void 0,K.adSlotLoggingData,void 0,void 0,c)},qz=function(d,H,K,c,p){gw(d,H,void 0,void 0,void 0,K,c?c:void 0,void 0,void 0,K.adSlotLoggingData,c?c.adLayoutLoggingData:void 0,void 0,p);
K=_.Kj().resolve(_.$p(wz))==null?void 0:Pd();H=K==null?void 0:K.adsSeenHotConfig;K=K==null?void 0:K.adsHotConfig;(H==null?0:H.logOnAdsSeen)&&(K==null?0:K.webEnablePremiumAdsSeenLogging)&&G0l(d,c?c:void 0,p)},cnd=function(d,H,K){gw(d,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,K,void 0,void 0,void 0,K.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:H})},gw=function(d,H,K,c,p,g,a,e,k,C,R,V,U){U=U===void 0?0:U;
oh3(d.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+H,"slot:",g,"layout:",a,"ping:",e,"Opportunity:",{opportunityType:K,associatedSlotId:c,slotsFromOpportunity:p,triggerBundle:k,adSlotLoggingData:C,adLayoutLoggingData:R});try{var L=function(){d.experimentApiProvider.get();if(H!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){H||_.Db("Empty PACF event type",g,a);var w=d.eventLoggingSettingsProvider.get();var W;(W=w.alwaysIncludeDebugData)||(w.experimentApiProvider.get(),W=
!1);w=W;W={eventType:H,eventOrder:++d.eventCount};var J={};g&&(J.slotData=T1F(w,g));if(a){var F={type:a.layoutType,controlFlowManagerLayer:F0X.get(a.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};w&&(F.debugData={layoutId:a.layoutId});J.layoutData=F}e&&(J.pingData={pingDispatchStatus:e.dispatchStatus,serializedAdPingMetadata:e.ping.serializedAdPingMetadata,pingIndex:e.index});k&&(J.triggerData=ZuF(k.trigger,k.category));K&&(J.opportunityData=QWX(w,K,c,p));W.adClientData=J;C&&(W.serializedSlotAdServingData=
C.serializedSlotAdServingDataEntry);R&&(W.serializedAdServingData=R.serializedAdServingDataEntry);V&&(W.errorInfo=V);_.Wd("adsClientStateChange",{adsClientEvent:W})}};
U&&U>0?_.mf(_.MO(),function(){return L()},U):L()}catch(w){oh3(d.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.mf(_.MO(),function(){_.Db(w instanceof Error?w:String(w),g,a,{pacf_message:"exception during pacf logging"})})}},G0l=function(d,H,K){if(H){var c=H.adLayoutLoggingData;
_.mf(_.MO(),function(){d.premiumAdSeenEventLogger!=null&&c&&_.Wd("adsSeenClientLogging",{serializedAdServingDataEntry:c.serializedAdServingDataEntry})},K!=null?K:0)}};var q90=function(d,H){ihC.call(this,d,H)};
_.m(q90,ihC);var axl=function(){},oh3=function(d,H){return _.h(H)};var eOA=function(){var d=new lxl;this.JSC$15405_adsControlFlowManager=(new ghB(d)).JSC$15380_adsControlFlowManager},lxl=function(){_.h_.call(this);
var d=this;this.experimentApiProvider=new NxM(function(){return new axl});
var H=new NxM(function(){return new DP0(d.experimentApiProvider)});
this.adEventLogger=new q90(this.experimentApiProvider,H);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.m(lxl,_.h_);var k0l=function(){},xB7,kQ=function(){xB7||(xB7=new k0l);
return xB7},xQ=function(d){if(!d.JSC$15416_externallyManagedSlotAdapterCallback){var H=(new eOA).JSC$15405_adsControlFlowManager;
d.JSC$15416_externallyManagedSlotAdapterCallback=H}return d.JSC$15416_externallyManagedSlotAdapterCallback},nhS=function(d,H,K){var c=H.opportunityType,p=Error("Jh");
if(c!==void 0){var g=xQ(d);fZ3(g,c,void 0,K)}else _.Db(p,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});g=[];if(H.adSlotAndLayoutMetadata!==void 0){H=_.q(H.adSlotAndLayoutMetadata);for(var a=H.next();!a.done;a=H.next()){var e=a.value;if(a=e.adSlotMetadata)if(g.push(a),d.onSlotReceivedExternallyManaged(a,K),e.adLayoutMetadata){e=_.q(e.adLayoutMetadata);for(var k=e.next();!k.done;k=e.next())d.onLayoutReceivedExternallyManaged(a,k.value,K)}else K>0&&_.Db("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
c,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else K>0&&_.Db("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+c,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else K>0&&_.Db("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+c,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(c!==void 0)d.onOpportunityProcessedExternallyManaged(c,g,void 0,K);else _.Db(p,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
k0l.prototype.onSlotReceivedExternallyManaged=function(d,H){d=K8(d);if(d instanceof $E)_.Db(d,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else xQ(this).onSlotReceivedExternallyManaged(d,H)};
k0l.prototype.onLayoutReceivedExternallyManaged=function(d,H,K){d=K8(d);H=Ouh(H);if(d instanceof $E)_.Db(d,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(H instanceof cK)_.Db(H,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else xQ(this).onLayoutReceivedExternallyManaged(d,H,K)};
k0l.prototype.onOpportunityProcessedExternallyManaged=function(d,H,K,c){var p=[];H=_.q(H);for(var g=H.next();!g.done;g=H.next())g=K8(g.value),g instanceof $E?_.Db(g,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):p.push(g);xQ(this).onOpportunityProcessedExternallyManaged(d,p,K,c)};
var Cc7=function(d,H){H=K8(H);if(H instanceof $E)_.Db(H,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var K=xQ(d);il(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",H);K=_.q(K.adsControlFlowEventListeners);for(var c=K.next();!c.done;c=K.next())c=GX(c.value,H),c.slotLifecycleStage!=="not_scheduled"&&aM(c.slot,c.slotLifecycleStage,"onSlotScheduled"),c.slotLifecycleStage="scheduled";d=xQ(d);il(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",H);d=_.q(d.adsControlFlowEventListeners);
for(K=d.next();!K.done;K=d.next())K.value.onSlotEntered(H)}},RO0=function(d,H){H=K8(H);
if(H instanceof $E)_.Db(H,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var K=xQ(d);il(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",H);K=_.q(K.adsControlFlowEventListeners);for(var c=K.next();!c.done;c=K.next())c.value.onSlotExited(H);d=xQ(d);il(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",H);d=_.q(d.adsControlFlowEventListeners);for(K=d.next();!K.done;K=d.next())K.value.onSlotUnscheduled(H)}},VHM=function(d,H,K){H=K8(H);
K=Ouh(K);if(H instanceof $E)_.Db(H,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(K instanceof cK)_.Db(K,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var c=xQ(d);qz(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",H,K);c=_.q(c.adsControlFlowEventListeners);for(var p=c.next();!p.done;p=c.next())p.value.onLayoutScheduled(H,K);d=xQ(d);qz(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",H,K);d=_.q(d.adsControlFlowEventListeners);
for(c=d.next();!c.done;c=d.next())v7S(c.value,H,K)}},Cg=function(d,H,K){H=K8(H);
K=Ouh(K);if(H instanceof $E)_.Db(H,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(K instanceof cK)_.Db(K,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var c=xQ(d);qz(c.adEventLogger,sWL("normal"),H,K);c=_.q(c.adsControlFlowEventListeners);for(var p=c.next();!p.done;p=c.next())p.value.onLayoutExited(H,K,"normal");d=xQ(d);d=_.q(d.adsControlFlowEventListeners);for(c=d.next();!c.done;c=d.next())$BN(c.value,H,K)}};_.RM=_.H1(function(d){var H=_.dg(d,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});d=Object.assign({},H);var K=H.data;H=H.customCommandResolver;var c=(delete d.data,delete d.customCommandResolver,d);d=_.cV({visibilityCallback:function(e,k){var C,R=(C=K().interaction)==null?void 0:C.onFirstVisible;e&&(R&&_.EG(R),c.setOnErrorHandler()&&SWM(k))},
showOption:_.KQ});H=_.Ej(function(){return K().interaction},H,function(){var e;
return(e=c.listenToTapEvent)==null?void 0:e.call(c)});
var p=_.q(_.GO(!1,void 0,"nqIeMd")),g=p.next().value,a=p.next().value;p=_.n7(function(e){var k;((k=c.setTouchEndHandler)==null?0:k.call(c))&&!g()&&(e.currentTarget.click(),a(!0),setTimeout(function(){a(!1)},100));
return!1});
return _.x("ad-image-view-model",{class:function(){var e,k=[((e=K().interaction)==null?0:e.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],C;((C=c.isGridViewEnabled)==null?0:C.call(c))&&k.push("ytwAdImageViewModelHostInGridView");return k.join(" ")},
el:_.$M(d,H),"on:touchend":p},_.x("div",{class:"ytwAdImageViewModelHostImageContainer"},_.x(_.d7,{data:function(){var e;return{sources:K().imageSources,contentMode:(e=K().imageProperties)==null?void 0:e.contentMode}},
alt:function(){var e,k;return((e=K().interaction)==null?void 0:(k=e.accessibility)==null?void 0:k.label)||""},
targetHeight:c.targetHeight,targetWidth:c.targetWidth,preserveHeight:c.preserveHeight,preserveWidth:c.preserveWidth,useWidth:c.useWidth,style:function(){var e,k;return"vertical-align: bottom;"+(((e=K().background)==null?0:e.color)?"background-color:"+_.Yi((k=K().background)==null?void 0:k.color)+";":"")},
className:function(){return c.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var e,k;return(k=(e=c.setDraggable)==null?void 0:e.call(c))!=null?k:void 0}})))},"qb");var UB3=_.H1(function(d){var H=d.data,K=d.listenToTapEvent,c=function(){};
return _.x("ad-button-hover-overlay-view-model",{"on:click":_.n7(function(p){if(_.h("enable_web_home_top_landscape_image_layout_legacy_click_command")){var g,a=(g=H().interaction)==null?void 0:g.onTap;a&&_.GT(p.currentTarget,"yt-navigate",{endpoint:_.T6(a)})}}),
class:function(){var p;return((p=H().interaction)==null?0:p.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.$M(_.cV({visibilityCallback:function(p){var g,a=(g=H().interaction)==null?void 0:g.onFirstVisible;p&&a&&_.EG(a)},
showOption:_.KQ}),_.Ej(function(){return H().interaction},void 0,function(){return!_.h("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(K==null?void 0:K())}))},function(){return _.h("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.x(_.wB,{data:function(){return H().button}},{adButtonViewModel:function(p){return _.x(_.pQ,{data:p.data,
customCommandResolver:c})}}):_.x(_.wB,{data:function(){return H().button}},{adButtonViewModel:_.pQ})}())},"rb");var p8;_.iV(_.H1(function(d){var H=d.data;d=_.cV({visibilityCallback:function(e,k){if(e){var C;(e=(C=H().interaction)==null?void 0:C.onFirstVisible)&&_.EG(e);var R;if(C=(R=H().adLayoutData)==null?void 0:R.activeViewData)gE(k,C),_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&iW(k)})}else _.h("stop_av_measurement_on_detach")&&iW(k)},
showOption:_.KQ,hideOption:c2});var K=_.Ej(function(){return H().interaction},void 0,function(){return!0}),c=_.q(_.GO(!1,void 0,"K1MNM")),p=c.next().value,g=c.next().value;
c=_.n7(function(){g(!0)});
var a=_.n7(function(){g(!1)});
return _.x("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.$M(d,ArL,K),"on:mouseenter":c,"on:mouseleave":a},_.x("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.UQ({"max-width":function(){return _.h("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.x("div",{class:function(){var e;
a:{var k;switch((e=_.M(H().thumbnailImage,tR3))==null?void 0:(k=e.imageProperties)==null?void 0:k.renderingAspect){case "RENDERING_ASPECT_SQUARE":e="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":e="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}e=void 0}return e}},_.x(_.wB,{data:function(){return H().thumbnailImage}},{adImageViewModel:function(e){return _.x(_.RM,
{data:e.data,
listenToTapEvent:!0,setTouchEndHandler:_.h("enable_top_landscape_image_experiment_dom_id_web")})}})),_.x("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.x(_.n,{cond:function(){var e,k,C;
return(e=_.M(H().thumbnailImage,tR3))==null?void 0:(k=e.imageProperties)==null?void 0:(C=k.overlayIcon)==null?void 0:C.iconImage},
then:function(e){return _.x(_.d7,{data:e,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.x("div",{class:function(){return p()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.x(_.wB,{data:function(){return H().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(e){return _.x(UB3,
{data:e.data,
listenToTapEvent:!0})}}))),_.x("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.x(_.wB,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:function(e){return _.x(I3A,{data:e.data,
listenToTapEvent:!0,setTouchEndHandler:_.h("enable_top_landscape_image_experiment_dom_id_web")})}})))},"sb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.dl}});_.iV(_.H1(function(d){var H=d.data;d=_.cV({visibilityCallback:function(e,k){if(e){var C;(e=(C=H().interaction)==null?void 0:C.onFirstVisible)&&_.EG(e);var R;if(C=(R=H().adLayoutData)==null?void 0:R.activeViewData)gE(k,C),_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&iW(k)})}else _.h("stop_av_measurement_on_detach")&&iW(k)},
showOption:_.KQ,hideOption:c2});var K=_.Tv(_.ZA),c=_.Ej(function(){return H().interaction}),p={},g={},a={};
return _.x("square-image-layout-view-model",{class:_.xM("ytwSquareImageLayoutViewModelHost",(p.ytwSquareImageLayoutViewModelHostColumn=K,p)),el:_.$M(d,jWi,c)},_.x("div",{class:_.xM("ytwSquareImageLayoutViewModelHostImage",(g.ytwSquareImageLayoutViewModelHostColumnImage=K,g))},function(){return _.x(_.wB,{data:function(){return H().adImage}},{adImageViewModel:function(e){return _.x(_.RM,{data:e.data,
isGridViewEnabled:K,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.x("div",{class:_.xM("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(a.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=K,a))},_.x(_.wB,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:I3A}),function(){return _.x(_.wB,{data:function(){return H().adButton}},{adButtonViewModel:function(e){var k={};
return _.x(_.pQ,{data:e.data,className:_.xM((k.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,k.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=K,k))})}})}()))},"tb"),"square-image-layout-view-model",{props:{data:_.dl}});_.iV(_.H1(function(d){var H=d.data;var K=d.noBottomMargin;var c=d.typographyBump;d=_.cV({visibilityCallback:function(V,U){if(V){var L;(V=(L=H().interaction)==null?void 0:L.onFirstVisible)&&_.EG(V);var w;if(L=(w=H().adLayoutData)==null?void 0:w.activeViewData)gE(U,L),_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&iW(U)})}else _.h("stop_av_measurement_on_detach")&&iW(U)},
showOption:_.KQ,hideOption:c2});var p=_.Ej(function(){return H().interaction},void 0,function(){return _.h("enable_web_home_top_landscape_image_layout_level_click")}),g=function(){return H().interaction};
g!==void 0&&g!==null||_.SD(Error("Kh"));var a=function(){var V,U,L;return(V=_.M(H().thumbnailImage,tR3))==null?void 0:(U=V.background)==null?void 0:(L=U.backgroundImageSource)==null?void 0:L.imageSources};
g=_.q(_.GO(!1,void 0,"pZPLOd"));var e=g.next().value,k=g.next().value;g=_.n7(function(){k(!0)});
var C=_.n7(function(){k(!1)}),R=function(){return e()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.x("top-landscape-image-layout-view-model",{class:function(){var V;return((V=H().interaction)==null?0:V.onTap)&&_.h("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.$M(d,v9Y,p),"on:mouseenter":g,"on:mouseleave":C},_.x("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.x(_.n,{cond:function(){return a()&&a().length>0},
then:function(){return _.x("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.UQ({top:"0","background-image":function(){return"url("+String(a()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.x(_.n,{cond:function(){return!!H().adButtonHoverOverlay},
then:function(){return _.x("div",{class:R},_.x(_.wB,{data:function(){return H().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:UB3}))}}),_.x("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.x(_.wB,{data:function(){return H().thumbnailImage}},{adImageViewModel:function(V){return _.x(_.RM,{data:V.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.h("enable_web_home_top_landscape_image_layout_level_click")})}})),_.x("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.x(_.d7,{data:{sources:[{clientResource:{imageName:_.h("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.x("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.x(_.wB,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:function(V){return _.x(I3A,{data:V.data,
noBottomMargin:function(){return K==null?void 0:K()},
listenToTapEvent:function(){return _.h("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return c==null?void 0:c()}})}})))},"ub"),"top-landscape-image-layout-view-model",{props:{data:_.dl,
noBottomMargin:_.dl,typographyBump:_.dl}});_.iV(_.H1(function(d){var H=d.data;var K=d.typographyBump;return _.x("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.$M(_.cV({visibilityCallback:function(c,p){if(c){var g;(c=(g=H().interaction)==null?void 0:g.onFirstVisible)&&_.EG(c);var a;(g=(a=H().adLayoutData)==null?void 0:a.activeViewData)&&gE(p,g)}},
showOption:_.KQ,hideOption:c2}))},_.x("div",null,_.x(_.wB,{data:function(){return H().videoLockup}},{lockupViewModel:function(c){return _.x(_.lN,{data:c.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:K})}})))},"vb"),"video-display-button-group-layout-view-model",{props:{data:_.dl,
noBottomMargin:_.dl,typographyBump:_.dl}});_.iV(_.H1(function(d){var H=d.data;var K=d.className;var c=d.typographyBump;return _.x("video-display-compact-button-group-layout-view-model",{el:_.$M(_.cV({visibilityCallback:function(p,g){if(p){var a;(p=(a=H().interaction)==null?void 0:a.onFirstVisible)&&_.EG(p);var e;(a=(e=H().adLayoutData)==null?void 0:e.activeViewData)&&gE(g,a)}},
showOption:_.KQ})),class:_.xM("videoDisplayCompactButtonGroupLayoutViewModelHost",K)},_.x(_.wB,{data:function(){return H().videoLockup}},{lockupViewModel:function(p){return _.x(_.lN,{data:p.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:c})}}))},"wb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.dl,
className:_.dl,typographyBump:_.dl}});_.iV(_.H1(function(d){var H=d.data;var K=d.className;var c=d.typographyBump;return _.x("video-display-compact-buttoned-layout-view-model",{el:_.$M(_.cV({visibilityCallback:function(p,g){if(p){var a;(p=(a=H().interaction)==null?void 0:a.onFirstVisible)&&_.EG(p);var e;(a=(e=H().adLayoutData)==null?void 0:e.activeViewData)&&gE(g,a)}},
showOption:_.KQ})),class:_.xM("videoDisplayCompactButtonedLayoutViewModelHost",K)},_.x(_.wB,{data:function(){return H().videoLockup}},{lockupViewModel:function(p){return _.x(_.lN,{data:p.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:c})}}))},"xb"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.dl,
className:_.dl,typographyBump:_.dl}});_.iV(_.H1(function(d){var H=d.data;var K=d.className;var c=d.typographyBump;var p=function(){return H().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},g=_.Tv(_.ZA);
d=_.cV({visibilityCallback:function(C,R){if(C){var V=H();C=V.adLayoutData;var U;(V=(U=V.interaction)==null?void 0:U.onFirstVisible)&&_.EG(V);(U=C==null?void 0:C.activeViewData)&&gE(R,U)}},
showOption:_.KQ});var a=_.ey(function(){return{containerType:p()&&g()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"BXJVJ"),e=_.ey(function(){return p()&&g()?"":p()?"168px":"50%"},void 0,"ikSkm"),k=_.ey(function(){return p()&&g()?9999:void 0},void 0,"M8rucc");
return _.x("video-display-compact-layout-view-model",{el:_.$M(d),class:_.xM("videoDisplayCompactLayoutViewModelHost",K)},_.x(_.wB,{data:function(){return H().videoLockup}},{lockupViewModel:function(C){return _.x(_.lN,{data:C.data,
containerLayoutConfig:a,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:e,thumbnailTargetWidth:k,typographyBump:c})}}))},"yb"),"video-display-compact-layout-view-model",{props:{data:_.dl,
className:_.dl,typographyBump:_.dl}});_.iV(_.H1(function(d){var H=d.data;var K=d.typographyBump;return _.x("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.$M(_.cV({visibilityCallback:function(c,p){if(c){var g;(c=(g=H().interaction)==null?void 0:g.onFirstVisible)&&_.EG(c);var a;(g=(a=H().adLayoutData)==null?void 0:a.activeViewData)&&gE(p,g)}},
showOption:_.KQ,hideOption:c2}))},_.x("div",null,_.x(_.wB,{data:function(){return H().videoLockup}},{lockupViewModel:function(c){return _.x(_.lN,{data:c.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:K})}})))},"zb"),"video-display-full-layout-view-model",{props:{data:_.dl,
noBottomMargin:_.dl,typographyBump:_.dl}});_.hOX=_.H1(function(d){var H=d.data;d=_.Af("ad-card-badge-view-model");return _.x("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:d},_.x(_.n,{cond:function(){return H().imageBadge},
then:function(K){return _.x(_.d7,{data:K,alt:""})}}))},"Ab");var LxU=_.H1(function(d){var H=d.data;var K=d.customCommandResolver;return _.x("carousel-ad-card-image-view-model",{class:function(){var c;return((c=H().interaction)==null?0:c.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.$M(_.cV({visibilityCallback:function(c){var p,g=(p=H().interaction)==null?void 0:p.onFirstVisible;c&&g&&_.EG(g)},
showOption:_.KQ}),_.Ej(function(){return H().interaction},K)),
"aria-label":function(){var c,p;return(c=H().interaction)==null?void 0:(p=c.accessibility)==null?void 0:p.label}},_.x(_.wB,{data:function(){return H().adImage}},{adImageViewModel:function(c){return _.x(_.RM,{data:c.data,
customCommandResolver:K})}}),_.x("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.x(_.wB,{data:function(){return H().badge}},{adCardBadgeViewModel:_.hOX})),_.x(_.am,{model:{color:4}}))},"Bb");var MHB=_.H1(function(d){var H=_.q(_.GO(0,void 0,"o9Bzd")),K=H.next().value;H.next();var c=H.next().value,p=_.q(_.GO(!1,void 0,"KLdzYe"));H=p.next().value;var g=p.next().value,a;_.Pk(function(){clearTimeout(a)});
p=_.n7(function(){var C;((C=d.animate)==null?0:C.call(d))?(g(!0),a=setTimeout(function(){g(!1);e()},200)):e();
return!1});
var e=function(){c(function(C){return(C+d.numShownItems())%d.data().length})},k={};
return _.x("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.x("div",{class:_.xM("ytwHorizontalCarouselCarouselWrapper")},_.x("div",{class:_.xM("ytwHorizontalCarouselCarouselInnerWrapper",(k.ytwHorizontalCarouselAnimating=H,k))},_.x(_.L6,{each:d.data,keyBy:"INDEX"},function(C,R){return _.x("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.UQ({"flex-basis":function(){return"calc((100% - (8px * "+(d.numShownItems()-1)+")) / "+d.numShownItems()+")"},
order:function(){var V=R-K();V<0&&(V+=d.data().length);return V}})},d.children(C,R))}))),_.x("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":p},d.nextButton()))},"Cb");var mB3=_.H1(function(d){var H=d.data;var K=d.customCommandResolver;var c=d.expansive;return _.x("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.$M(_.cV({visibilityCallback:function(p){var g,a=(g=H().interaction)==null?void 0:g.onFirstVisible;p&&a&&_.EG(a)},
showOption:_.KQ}))},_.x(MHB,{data:function(){var p;return((p=H())==null?void 0:p.carouselAdCards)||[]},
nextButton:function(){return _.x(_.wB,{data:function(){return H().nextButton}},{buttonViewModel:function(p){var g=p.data;
return _.x(_.xk,{data:function(){return(c==null?0:c())?Object.assign({},g(),{style:"mono"}):g()},
className:_.h("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(p){return _.x(_.wB,{data:p},{carouselAdCardImageViewModel:function(g){return _.x(LxU,{data:g.data,customCommandResolver:K})}})}))},"Db");var wuM=_.H1(function(d){var H=d.data;var K=d.customCommandResolver;var c=d.className;var p=d.buttonClassName;var g=d.animationEntityKey;var a=d.expansive;return _.x("carousel-button-view-model",{class:_.xM("ytwCarouselButtonViewModelHost",c)},_.x(_.wB,{data:function(){return H().carousel}},{carouselAdCardCollectionViewModel:function(e){return _.x(mB3,{data:e.data,
customCommandResolver:K,expansive:a})}}),_.x(_.wB,{data:function(){return H().button}},{adButtonViewModel:function(e){var k=e.data;
return _.x(_.pQ,{data:function(){return(a==null?0:a())?Object.assign({},k(),{style:"AD_BUTTON_STYLE_TONAL"}):k()},
className:p,customCommandResolver:K,animationEntityKey:g})}}))},"Eb");_.PcA=_.H1(function(d){var H=d.data;d=d.className;var K=_.Af("pivot-button-view-model");_.WE(function(){var c;((c=H())==null?0:c.backgroundColor)&&K.value.setAttribute("data-background-color",String(H().backgroundColor))});
return _.x("pivot-button-view-model",{el:K,class:_.xM("ytwPivotButtonViewModelHost",d)},_.x(_.Oj,{command:function(){var c=H();c=c.onClickCommand?_.T6(c.onClickCommand):c.contentDescription?_.Km(c.contentDescription):void 0;return c},
ariaLabel:function(){return H().contentDescription}},_.x(_.n,{cond:function(){return H().thumbnail},
then:function(c){return _.x(_.d7,{data:c,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.x(_.n,{cond:function(){return H().icon},
then:function(c){return _.x(_.hu,{icon:function(){return c().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Fb");_.ug6=_.H1(function(d){var H=d.data;var K=d.buttonShapeOverrideables;return _.x("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.x(_.wB,{data:function(){return H().buttonViewModels}},{buttonViewModel:function(c){return _.x(_.xk,{data:c.data,
buttonOverrides:K})},
likeButtonViewModel:function(c){return _.x(_.Tr,{data:c.data,buttonShapeOverrideables:K})},
dislikeButtonViewModel:function(c){return _.x(_.ZT,{data:c.data,buttonShapeOverrideables:K})},
toggleButtonViewModel:function(c){return _.x(_.zm,{data:c.data,buttonShapeOverrides:K})}}))},"Gb");var Ixd=_.H1(function(d){var H=d.avatar;var K=d.headline;var c=d.badge;var p=d.description;var g=d.expansive;d={};return _.x("yt-ad-metadata-shape",{class:_.xM("ytAdMetadataShapeHost",(d.ytAdMetadataShapeHostLarge=g,d))},_.x("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.x(_.n,{cond:H,then:function(a){return _.x(_.m9M,{data:function(){return(g==null?0:g())?Object.assign({},a(),{size:"AD_AVATAR_SIZE_MPLUS"}):a()}})}}),_.x("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.x(_.j$,{text:K,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.x(_.n,{cond:c,then:function(a){return _.x(_.qE,{data:function(){return(g==null?0:g())?Object.assign({},a(),{style:"AD_BADGE_STYLE_STARK"}):a()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.x("h2",{class:"ytAdMetadataShapeHostDescription"},_.x(_.j$,{text:p,
linkInheritColor:!0})))},"Hb");var rn3=_.H1(function(d){var H=d.data;var K=d.onShow;var c=d.expansive;d=_.Ej(function(){return H().interaction});
_.WE(function(){var g,a=(g=H().animatedRenderingConfig)==null?void 0:g.delayedSecondsToVisible;if(a){var e=setTimeout(K,a*1E3);_.Pk(function(){clearTimeout(e)})}});
var p={};return _.x("reels-ad-card-buttoned-view-model",{class:_.xM(function(){var g;return((g=H().interaction)==null?0:g.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(p.ytwReelsAdCardButtonedViewModelHostExpansive=c,p)),
el:_.$M(d)},_.x(Ixd,{avatar:function(){return _.M(H().avatar,TvM)},
headline:function(){return H().headline},
badge:function(){return _.M(H().adBadge,QpS)},
description:function(){return H().description},
expansive:c}),_.x(_.wB,{data:function(){return H().ctaButton}},{adButtonViewModel:function(g){var a=g.data;
return _.x(_.pQ,{data:function(){return(c==null?0:c())?Object.assign({},a(),{style:"AD_BUTTON_STYLE_FILLED"}):a()}})}}))},"Ib");var Wx7=_.H1(function(d){var H=d.data;d=d.expansive;var K=_.h("web_ad_metadata_clickable")?_.Ej(function(){return H().interaction},void 0,function(){return _.h("web_ad_metadata_clickable")}):void 0,c={};
c=_.zx("ytwReelsAdMetadataViewModelHost",(c.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.h("web_ad_metadata_clickable"),c));return _.x("reels-ad-metadata-view-model",{class:c,el:_.$M(K)},_.x(Ixd,{avatar:function(){return _.M(H().avatar,TvM)},
headline:function(){return H().headline},
badge:function(){return _.M(H().adBadge,QpS)},
description:function(){return H().description},
expansive:d}))},"Jb");var BtU={iconPosition:"icon-with-label",size:"L"},zO3=_.H1(function(d){var H=d.data;var K=d.overlayDensity;d=_.Af("reels-player-overlay-layout-view-model");var c=_.vj(K,0),p=function(){var V;return(V=H().reelsAdCardButtonedEntityKey)!=null?V:""},g=function(){return p()+"/ad_button"},a=_.Uj(TRF,p),e=function(){var V,U;
return(U=(V=a())==null?void 0:V.value)!=null?U:!1},k=_.Tv(dP1),C=function(){return Object.assign({},BtU,(k()||c()===2)&&{style:"overlay-dark"})};
K={};var R={};return _.x("reels-player-overlay-layout-view-model",{class:_.xM("ytwReelsPlayerOverlayLayoutViewModelHost",(K.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!H().extension},K.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},K)),
"overlay-density":function(){return String(c())},
el:d},_.x("div",{class:_.xM("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(R.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},R))},_.x("div",{"aria-hidden":function(){return e()},
class:_.xM("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return e()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.UQ({"transition-duration":function(){return cj1(H())}})},_.x(_.wB,{data:function(){return H().adMetadata}},{reelsAdMetadataViewModel:function(V){return _.x(Wx7,{data:V.data,
expansive:function(){return c()===1}})}}),_.x(_.n,{cond:function(){return H().extension},
then:function(V){return _.x("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.x(_.wB,{data:V},{adButtonViewModel:function(U){return _.x(_.pQ,{data:U.data,animationEntityKey:g,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(U){return _.x(wuM,{data:U.data,animationEntityKey:g,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return c()===1}})}}))}})),_.x("div",{"aria-hidden":function(){return!e()},
class:_.xM("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return e()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.UQ({"transition-duration":function(){return cj1(H())}})},_.x(_.wB,{data:function(){return H().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(V){return _.x(rn3,{data:V.data,
onShow:function(){_.jO(_.PI("booleanEntity",p(),{key:p(),value:!0}))},
expansive:function(){return c()===1}})}}))),_.x("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.x(_.wB,{data:function(){return H().actions}},{reelActionBarViewModel:function(V){return _.x(_.ug6,{data:V.data,
buttonShapeOverrideables:C})}}),_.x(_.wB,{data:function(){return H().menu}},{buttonViewModel:function(V){return _.x(_.xk,{data:V.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},C(),{type:"tonal"})}})}}),_.x(_.wB,{data:function(){return H().pivotButton}},{pivotButtonViewModel:function(V){return _.x(_.PcA,{data:V.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Kb");_.iV(zO3,"reels-player-overlay-layout-view-model",{props:{data:_.dl,overlayDensity:_.dl}});var VR=function(){var d=_.B.apply(this,arguments)||this;d.noBottomMargin=!1;d.overlayDensity=0;return d};
_.m(VR,_.B);_.G=VR.prototype;
_.G.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.h("enable_short_dr_for_desktop_launchable")?
{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",
properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.G.ready=function(){var d=this;kEC(function(){d.isAttached&&dE(d.JSC$15460_storedAdSlotMetadata,d.JSC$15460_storedAdLayoutMetadata,d.adSlotMetadata,d.adLayoutMetadata)&&Cg(kQ(),d.JSC$15460_storedAdSlotMetadata,d.JSC$15460_storedAdLayoutMetadata)})};
_.G.attached=function(){dE(this.JSC$15460_storedAdSlotMetadata,this.JSC$15460_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&VHM(kQ(),this.JSC$15460_storedAdSlotMetadata,this.JSC$15460_storedAdLayoutMetadata)};
_.G.detached=function(){dE(this.JSC$15460_storedAdSlotMetadata,this.JSC$15460_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Cg(kQ(),this.JSC$15460_storedAdSlotMetadata,this.JSC$15460_storedAdLayoutMetadata)};
_.G.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.G.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15460_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15460_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15460_storedAdLayoutMetadata!==void 0&&this.JSC$15460_storedAdSlotMetadata!==void 0&&Cg(kQ(),this.JSC$15460_storedAdSlotMetadata,this.JSC$15460_storedAdLayoutMetadata),VHM(kQ(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15460_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15460_storedAdSlotMetadata=this.adSlotMetadata)};
_.H3.Object.defineProperties(VR.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.adLayoutMetadata}}});
VR.prototype.onAdMetadataChanged=VR.prototype.onAdMetadataChanged;VR.prototype.onTypographyBumpChanged=VR.prototype.onTypographyBumpChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],VR.prototype,"rendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],VR.prototype,"ytComponentBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],VR.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],VR.prototype,"noBottomMargin",void 0);_.t([_.r(),_.O("design:type",Object)],VR.prototype,"overlayDensity",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],VR.prototype,"typographyBump",void 0);_.t([_.I("data.adLayoutMetadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],VR.prototype,"adLayoutMetadata",null);_.t([_.r(),_.O("design:type",Object)],VR.prototype,"adSlotMetadata",void 0);
_.t([_.VP("ytd-video-display-full-buttoned-and-button-group-renderer"),_.O("design:type",HTMLElement)],VR.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.t([_.CK("typographyBump"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],VR.prototype,"onTypographyBumpChanged",null);_.t([_.CK("adLayoutMetadata","adSlotMetadata"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],VR.prototype,"onAdMetadataChanged",null);
_.t([_.Z({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],VR);
_.T(VR,"ytd-in-feed-ad-layout-renderer",function(){if(L8d!==void 0)return L8d;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-in-feed-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-in-feed-ad-layout-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return L8d=d},
{mode:_.qk("kevlar_poly_si_batch_j028")?1:2});var Xul;var Jng;_.iV(_.qE,"ad-badge-view-model",{props:{data:_.dl,hasDot:_.dl,customCommandResolver:_.p7,adRenderingContextType:_.p7}});_.iV(_.pQ,"ad-button-view-model",{props:{data:_.dl,customCommandResolver:_.p7,className:_.p7,delayedClassName:_.p7,animationEntityKey:_.p7,isCompactWidth:_.p7}});var Ud=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return d};
_.m(Ud,_.B);_.G=Ud.prototype;_.G.computeHasLiveDescription=function(d){return!(d==null||!d.liveDescription)};
_.G.computeHasByline=function(d){return!(d==null||!d.byline)};
_.G.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isCompactWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.G.onYtToggleButton=function(d){var H,K=(H=this.data)==null?void 0:H.videoReminderEntityKey;K&&this.ytdReduxBehavior.dispatch(_.PI("upcomingEventReminderStateEntity",K,{key:K,state:d.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.G.attached=function(){this.updateChannelBanner()};
_.G.dataChanged=function(){this.updateChannelBanner()};
_.G.videoReminderStateChanged=function(){var d;this.videoReminderState&&_.M((d=this.data)==null?void 0:d.cta,_.Qi)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.G.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var d=_.Gv(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);d&&(d.startsWith("//")&&(d="https:"+d),this.hostElement.classList.add("channel-banner"),_.eO(this.hostElement,{"--ytvmh-channel-banner":"url("+d+")"}))}else _.h("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.G.onPlayerReady=function(){this.onIronResize()};
_.G.maybeFlushDebouncer=function(){_.h("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(d){var H;d=(H=d.getElementsByTagName("yt-attributed-string"))==null?void 0:H[0];TO5(d==null?void 0:d.polymerController)})};
_.G.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var d=_.Gn(this.hostElement).querySelector("#live-description"),H;d&&((H=this.data)==null?0:H.shortLiveDescription)&&d.clientWidth<d.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
Ud.prototype.onIronResize=Ud.prototype.onIronResize;Ud.prototype.videoReminderStateChanged=Ud.prototype.videoReminderStateChanged;Ud.prototype.dataChanged=Ud.prototype.dataChanged;Ud.prototype.onYtToggleButton=Ud.prototype.onYtToggleButton;_.t([_.u(_.WZ),_.O("design:type",Object)],Ud.prototype,"ironResizableBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Ud.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ud.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Ud.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Ud.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ud.prototype,"data",void 0);_.t([_.r({selectorArgs:["data.videoReminderEntityKey"],selector:TCh}),_.O("design:type",Object)],Ud.prototype,"videoReminderState",void 0);
_.t([_.r({reflectToAttribute:!0,value:_.h("web_modern_buttons")}),_.O("design:type",Boolean)],Ud.prototype,"rounded",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.O("design:type",Boolean)],Ud.prototype,"hasLiveDescription",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.O("design:type",Boolean)],Ud.prototype,"hasByline",void 0);
_.t([_.r({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.O("design:type",String)],Ud.prototype,"adRenderingContextType",void 0);_.t([_.r({reflectToAttribute:!0,value:_.h("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.O("design:type",Boolean)],Ud.prototype,"resizableAdBannerSafariFix",void 0);_.t([_.r({reflectToAttribute:!0,value:_.h("align_three_dot_menu_with_title_description")}),_.O("design:type",Boolean)],Ud.prototype,"menuFix",void 0);
_.t([_.UI("yt-formatted-string"),_.O("design:type",Array)],Ud.prototype,"formattedStrings",void 0);_.t([_.VP("#cta-button"),_.O("design:type",HTMLElement)],Ud.prototype,"ctaButton",void 0);_.t([_.nK("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Ud.prototype,"onYtToggleButton",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ud.prototype,"dataChanged",null);
_.t([_.CK("videoReminderState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ud.prototype,"videoReminderStateChanged",null);_.t([_.nK("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ud.prototype,"onIronResize",null);_.t([_.Z({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],Ud);
_.T(Ud,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(Jng!==void 0)return Jng;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Jng=d},{mode:1});var sfd;var hY=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};d.isLocked=!1;return d};
_.m(hY,_.B);_.G=hY.prototype;_.G.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.G.onExpandedChanged=function(){this.expanded&&_.qo(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.G.onMouseOver=function(){this.maybeExpand()};
_.G.onTap=function(){this.maybeExpand()};
_.G.onExpandableTileExpanding=function(d){d!==this&&(this.expanded=!1)};
_.G.onExpandableTileLockAndCollapse=function(d){this.isLocked=!0;d!==this&&(this.expanded=!1)};
_.G.onExpandableTileUnlock=function(){this.isLocked=!1};
hY.prototype.onTap=hY.prototype.onTap;hY.prototype.onMouseOver=hY.prototype.onMouseOver;hY.prototype.onExpandedChanged=hY.prototype.onExpandedChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],hY.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],hY.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],hY.prototype,"expanded",void 0);_.t([_.Mr("expanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hY.prototype,"onExpandedChanged",null);_.t([_.nK("mouseover"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hY.prototype,"onMouseOver",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hY.prototype,"onTap",null);
_.t([_.Z({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],hY);
_.T(hY,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(sfd!==void 0)return sfd;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-thumbnail-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" data="[[data.navigationEndpoint]]" aria-hidden="true" tabindex="-1" id="endpoint">\n <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n   <div id="play-button" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n     \n     <svg width="100%" height="100%" viewBox="0 0 68 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n       <path id="play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,0.13,34,0,34,0S12.21,0.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" class="ytp-large-play-button-bg style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" fill="#212121" fill-opacity="0.8"></path>\n       <path d="M 45,24 27,14 27,34" fill="#FFFFFF" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer"></path>\n     </svg>\n   </div>\n </div>\n <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="424" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n </yt-img-shadow>\n    </a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return sfd=d},{mode:1});var Fx0;var Lg=function(){var d=_.B.apply(this,arguments)||this;d.buttonOverrides={style:"overlay"};d.useYtdPlayer=_.h("use_ytd_player_for_desktop_masthead");d.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};d.playbackFinished=!1;d.JSC$15474_playerManager=null;d.JSC$15474_mastheadCounter=new WcA;return d};
_.m(Lg,_.B);_.G=Lg.prototype;_.G.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.G.created=function(){this.JSC$15474_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15474_playerManager=new Wm)};
_.G.ready=function(){var d=this;this.JSC$15474_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var H=_.Gn(this.hostElement).querySelector("#player");this.useYtdPlayer?H.style.display="none":(this.ytdPlayer.style.display="none",txl(this.JSC$15474_playerManager,H,function(){d.onPlaybackEnded()}),_.Gn(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var K;
((K=d.data)==null?0:K.navigationEndpoint)&&_.GT(d.hostElement,"yt-navigate",{endpoint:d.data.navigationEndpoint})}))};
_.G.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15474_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.G.attached=function(){var d=this;_.EI(function(){d.maybePlayVideo()})};
_.G.maybePlayVideo=function(){var d=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$15474_playerManager.playVideo(),this.getPlayerPromise().then(function(){d.JSC$15474_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.G.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15474_playerManager.stopVideo()};
_.G.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var d,H={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((d=this.data.playbackStartMs)!=null?d:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(H);this.setupYtdPlayer()}else OkS(this.JSC$15474_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(Yn6(this.JSC$15474_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.G.getPlayerPromise=function(){return this.JSC$15474_playerManager.getPlayerPromise()};
_.G.onYtToggleButton=function(d){this.useYtdPlayer?this.toggleMute(d.detail.toggled):d.detail.toggled?this.JSC$15474_playerManager.mute():this.JSC$15474_playerManager.unMute()};
_.G.onYtNavigate=function(d){var H=BbM(d.detail.endpoint),K=zmh(this.data.clickthroughReportingData);H&&K&&(d.detail.endpoint.watchEndpoint?d.detail.tempData=K:_.Hy(H,K,30))};
_.G.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.G.onExpandedChanged=function(){this.expanded?(_.qo(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.G.onMouseOver=function(){this.maybeExpand()};
_.G.onTap=function(){this.maybeExpand()};
_.G.onExpandableTileExpanding=function(d){d!==this&&(this.stopVideo(),this.expanded=!1)};
_.G.onExpandableTileLockAndCollapse=function(d){d!==this&&(this.isLocked=!0,this.expanded=!1)};
_.G.onExpandableTileUnlock=function(){this.isLocked=!1};
_.G.lockAndCollapseExpandableTiles=function(){_.oF(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.G.unlockExpandableTiles=function(){_.oF(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.G.setupYtdPlayer=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1)return K.yield(d.ytdPlayer.getPlayerPromise(),2);H=K.yieldResult;H.addEventListener("onStateChange",function(c){d.onPlayerStateChange(c)});
H.addEventListener("onCueRangeExit",function(c){d.onCueRangeExit(c)});
_.VE(K)})};
_.G.onPlayerStateChange=function(d){if(d===1&&(d=this.ytdPlayer.getPlayer())){var H=d.getCurrentTime(),K,c,p=H+((c=(K=this.data)==null?void 0:K.playbackDurationMs)!=null?c:0)/1E3;d.addCueRange("playback",H,p);this.JSC$15474_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.G.onCueRangeExit=function(d){d==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.G.toggleMute=function(d){var H=this,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(H.ytdPlayer.getPlayerPromise(),2);K=c.yieldResult;d?K.mute():K.unMute();_.VE(c)})};
Lg.prototype.onTap=Lg.prototype.onTap;Lg.prototype.onMouseOver=Lg.prototype.onMouseOver;Lg.prototype.onExpandedChanged=Lg.prototype.onExpandedChanged;Lg.prototype.onYtNavigate=Lg.prototype.onYtNavigate;Lg.prototype.onYtToggleButton=Lg.prototype.onYtToggleButton;Lg.prototype.dataChanged=Lg.prototype.dataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Lg.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Lg.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Lg.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Lg.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Lg.prototype,"expanded",void 0);_.t([_.r(),_.O("design:type",Object)],Lg.prototype,"buttonOverrides",void 0);
_.t([_.r(),_.O("design:type",Object)],Lg.prototype,"useYtdPlayer",void 0);_.t([_.VP("#ytd-player"),_.O("design:type",Object)],Lg.prototype,"ytdPlayer",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lg.prototype,"dataChanged",null);_.t([_.nK("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Lg.prototype,"onYtToggleButton",null);
_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Lg.prototype,"onYtNavigate",null);_.t([_.Mr("expanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lg.prototype,"onExpandedChanged",null);_.t([_.nK("mouseover"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lg.prototype,"onMouseOver",null);
_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lg.prototype,"onTap",null);_.t([_.Z({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Lg);
_.T(Lg,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(Fx0!==void 0)return Fx0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-video-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n  <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <div id="mute-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="replay-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="player-container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-video-tile-renderer" data="[[data.navigationEndpoint]]"></a>\n    <div id="player" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    </ytd-player>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Fx0=d},{mode:1});var ZhX;var Mz=function(){return _.B.apply(this,arguments)||this};
_.m(Mz,_.B);Mz.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Mz.prototype.onShow=function(){var d=_.Gn(this.hostElement).querySelector("#live-description"),H;d&&((H=this.data)==null?0:H.shortLiveDescription)&&d.clientWidth<d.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Mz.prototype.onYtToggleButton=function(d){var H,K=(H=this.data)==null?void 0:H.videoReminderEntityKey;K&&this.ytdReduxBehavior.dispatch(_.PI("upcomingEventReminderStateEntity",K,{key:K,state:d.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Mz.prototype.videoReminderStateChanged=function(){var d;this.videoReminderState&&_.M((d=this.data)==null?void 0:d.cta,_.Qi)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Mz.prototype.videoReminderStateChanged=Mz.prototype.videoReminderStateChanged;Mz.prototype.onYtToggleButton=Mz.prototype.onYtToggleButton;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Mz.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Mz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Mz.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Mz.prototype,"data",void 0);
_.t([_.r({selectorArgs:["data.videoReminderEntityKey"],selector:TCh}),_.O("design:type",Object)],Mz.prototype,"videoReminderState",void 0);_.t([_.nK("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Mz.prototype,"onYtToggleButton",null);_.t([_.CK("videoReminderState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Mz.prototype,"videoReminderStateChanged",null);
_.t([_.Z({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Mz);
_.T(Mz,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(ZhX!==void 0)return ZhX;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="advertiser-info" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  </yt-formatted-string>\n  <div id="byline-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" overlay-ad="true" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-badge-supported-renderer>\n    <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n      <div id="live-description-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="cta-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-toggle-button-renderer>\n  </div>\n</div>\n<div id="menu" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ZhX=d},{mode:_.qk("kevlar_poly_si_batch_j065")?1:2});var TtN;var mv=function(){var d=_.B.apply(this,arguments)||this;d.useYtdPlayer=_.h("use_ytd_player_for_desktop_masthead");d.buttonOverrides={style:"overlay"};d.JSC$15482_playerManager=null;d.JSC$15482_mastheadCounter=new WcA;d.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return d};
_.m(mv,_.B);_.G=mv.prototype;_.G.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.G.created=function(){this.JSC$15482_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15482_playerManager=new Wm)};
_.G.ready=function(){var d=this;this.JSC$15482_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var H;(H=this.embeddedPlayer)==null||H.remove()}else{var K;(K=this.ytdPlayer)==null||K.remove();txl(this.JSC$15482_playerManager,this.embeddedPlayer,function(){d.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){d.data&&d.data.navigationEndpoint&&_.GT(d.hostElement,"yt-navigate",{endpoint:d.data.navigationEndpoint})})}};
_.G.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15482_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.G.dataChanged=function(){var d=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var H=!this.data.disableAutoPlayback,K,c={autoplay:H,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((K=this.data.playbackStartMs)!=null?K:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(H?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(c);this.setupYtdPlayer()}else OkS(this.JSC$15482_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(Yn6(this.JSC$15482_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15482_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.oF(d.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");d.JSC$15482_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.G.getPlayerPromise=function(){return this.JSC$15482_playerManager.getPlayerPromise()};
_.G.onYtToggleButton=function(d){this.useYtdPlayer?this.toggleMute(d.detail.toggled):d.detail.toggled?this.JSC$15482_playerManager.mute():this.JSC$15482_playerManager.unMute()};
_.G.onYtNavigate=function(d){var H=BbM(d.detail.endpoint),K=zmh(this.data.clickthroughReportingData);H&&K&&(d.detail.endpoint.watchEndpoint?d.detail.tempData=K:_.Hy(H,K,30))};
_.G.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15482_playerManager.stopVideo()};
_.G.setupYtdPlayer=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1)return K.yield(d.ytdPlayer.getPlayerPromise(),2);H=K.yieldResult;H.addEventListener("onStateChange",function(c){d.onPlayerStateChange(c)});
H.addEventListener("onCueRangeExit",function(c){d.onCueRangeExit(c)});
_.VE(K)})};
_.G.onPlayerStateChange=function(d){if(d===1&&(d=this.ytdPlayer.getPlayer())){var H=d.getCurrentTime(),K,c,p=H+((c=(K=this.data)==null?void 0:K.playbackDurationMs)!=null?c:0)/1E3;d.addCueRange("playback",H,p);_.oF(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15482_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.G.onCueRangeExit=function(d){d==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.G.toggleMute=function(d){var H=this,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(H.ytdPlayer.getPlayerPromise(),2);K=c.yieldResult;d?K.mute():K.unMute();_.VE(c)})};
_.H3.Object.defineProperties(mv.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var d,H;if(!((d=this.data)==null?0:(H=d.accessibilityData)==null?0:H.label))return"Ad primary link";var K,c;return _.Vz("AD_TITLE",{title:(K=this.data)==null?void 0:(c=K.accessibilityData)==null?void 0:c.label})}}});
mv.prototype.onYtMastheadHidden=mv.prototype.onYtMastheadHidden;mv.prototype.onYtNavigate=mv.prototype.onYtNavigate;mv.prototype.onYtToggleButton=mv.prototype.onYtToggleButton;mv.prototype.dataChanged=mv.prototype.dataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],mv.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],mv.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],mv.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],mv.prototype,"useYtdPlayer",void 0);_.t([_.VP("ytd-toggle-button-renderer"),_.O("design:type",Object)],mv.prototype,"muteButton",void 0);_.t([_.r(),_.O("design:type",Object)],mv.prototype,"buttonOverrides",void 0);
_.t([_.I("data.accessibilityData.label"),_.O("design:type",String),_.O("design:paramtypes",[])],mv.prototype,"titleAriaLabel",null);_.t([_.VP("#replay-button"),_.O("design:type",Object)],mv.prototype,"replayButton",void 0);_.t([_.VP("#player-container"),_.O("design:type",Object)],mv.prototype,"playerContainer",void 0);_.t([_.VP("#player"),_.O("design:type",Object)],mv.prototype,"embeddedPlayer",void 0);_.t([_.VP("#ytd-player"),_.O("design:type",Object)],mv.prototype,"ytdPlayer",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mv.prototype,"dataChanged",null);_.t([_.nK("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],mv.prototype,"onYtToggleButton",null);_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],mv.prototype,"onYtNavigate",null);
_.t([_.nK("yt-masthead-hidden"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mv.prototype,"onYtMastheadHidden",null);_.t([_.Z({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],mv);
_.T(mv,"ytd-video-masthead-ad-primary-video-renderer",function(){if(TtN!==void 0)return TtN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="overlay" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <div id="mute-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="replay-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<div id="player-container" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-primary-video-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"></a>\n  <div id="player" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  </ytd-player>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return TtN=d},{mode:2});var Qf0;var ww=function(){var d=_.B.apply(this,arguments)||this;d.collapsed=!1;d.impressionResolver=_.DA();d.JSC$15486_activeViewMeasurementDataResolver=_.DA();d.actionMap={"yt-mute-ad-action":"handleMuteAd"};return d};
_.m(ww,_.B);_.G=ww.prototype;_.G.configureRendererStamper=function(){return{"data.expandableTiles":{id:"expandable-tile-container",mapping:{videoMastheadAdExpandableThumbnailTileRenderer:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",videoMastheadAdExpandableVideoTileRenderer:"ytd-video-masthead-ad-expandable-video-tile-renderer"}},"data.showAdRenderer":{id:"show-ad",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G.ready=function(){var d=this;_.Gn(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){d.expandAd()});
this.hostElement.addEventListener("yt-action",function(H){if(H.detail.actionName==="yt-service-request"){var K=H.detail.args[1];K.videoMastheadAdMuteCommand&&(d.collapseAd(K.videoMastheadAdMuteCommand.encryptedMastheadId),H.stopPropagation())}})};
_.G.attached=function(){var d=this;_.EI(function(){d.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(H){if(!d.collapsed){H=_.q(H);for(var K=H.next();!K.done;K=H.next())K=K.value,EX(K.baseUrl,K.attributionSrcMode);d.data.impressionCommand=void 0}});
this.JSC$15486_activeViewMeasurementDataResolver.promise.then(function(H){d.ytdActiveViewBehavior.enableActiveViewMeasurement(H,15)});
_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&d.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.G.dataChanged=function(){var d;((d=this.data.impressionCommand)==null?0:d.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var H;((H=this.data)==null?0:H.activeView)&&this.JSC$15486_activeViewMeasurementDataResolver.resolve(this.data.activeView);(d=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(d.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.G.computeWidescreen=function(d){var H;return!!(d&&((H=_.M(d,XrC))==null?0:H.isWidescreen))};
_.G.computeExpandable=function(d){return!!(d&&d.length>0)};
_.G.onIronResize=function(){if(this.expandable){var d=_.Gn(this.hostElement).querySelector("#expandable-tile-container :first-child");d&&!d.expanded&&(d.expanded=!0)}};
_.G.handleMuteAd=function(){this.collapseAd(null)};
_.G.restoreCollapsedState=function(d){this.collapsed=_.Lo().get("HIDDEN_MASTHEAD_ID")===d};
_.G.collapseAd=function(d){if(d){var H=_.Lo();H.set("HIDDEN_MASTHEAD_ID",d);H.save()}(d=_.Gn(this.hostElement).querySelector("#video"))&&_.GT(d,"yt-masthead-hidden");this.collapsed=!0};
_.G.expandAd=function(){var d=_.Lo();d.set("HIDDEN_MASTHEAD_ID",!1);d.save();location.reload()};
_.G.detached=function(){_.h("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
ww.prototype.onIronResize=ww.prototype.onIronResize;ww.prototype.dataChanged=ww.prototype.dataChanged;_.t([_.u(_.WZ),_.O("design:type",Object)],ww.prototype,"ironResizableBehavior",void 0);_.t([_.u(Q6),_.O("design:type",Object)],ww.prototype,"ytdActiveViewBehavior",void 0);_.t([_.u(_.EO),_.O("design:type",Object)],ww.prototype,"ytdGridStateAwareBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],ww.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ww.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ww.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ww.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.O("design:type",Boolean)],ww.prototype,"widescreen",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.O("design:type",Boolean)],ww.prototype,"expandable",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ww.prototype,"collapsed",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ww.prototype,"dataChanged",null);
_.t([_.nK("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ww.prototype,"onIronResize",null);_.t([_.Z({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],ww);
_.T(ww,"ytd-video-masthead-ad-v3-renderer",function(){if(Qf0!==void 0)return Qf0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-v3-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n  <div id="video-overlay" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-primary-video-overlay-renderer data="[[data.primaryVideoOverlay.videoMastheadAdPrimaryVideoOverlayRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-primary-video-overlay-renderer>\n  </div>\n  <template is="dom-if" if="[[data.primaryVideo]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <div id="video-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <ytd-video-masthead-ad-primary-video-renderer id="video" data="[[data.primaryVideo.videoMastheadAdPrimaryVideoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      </ytd-video-masthead-ad-primary-video-renderer>\n    </div>\n  </template>\n  <div id="expandable-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-advertiser-info-renderer data="[[data.advertiserInfo.videoMastheadAdAdvertiserInfoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-advertiser-info-renderer>\n    <div id="compact-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <template is="dom-repeat" items="[[data.compactVideoTiles]]" as="tile" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        <ytd-thumbnail data="[[tile.videoMastheadAdCompactVideoTileRenderer]]" width="210" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        </ytd-thumbnail>\n      </template>\n    </div>\n  </div>\n  <div id="show-ad" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Qf0=d},{mode:2});var Ph=function(){return _.B.apply(this,arguments)||this};
_.m(Ph,_.B);_.G=Ph.prototype;_.G.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.G.ready=function(){var d=this;kEC(function(){d.isAttached&&dE(d.JSC$15491_storedAdSlotMetadata,d.JSC$15491_storedAdLayoutMetadata,d.adSlotMetadata,d.adLayoutMetadata)&&Cg(kQ(),d.JSC$15491_storedAdSlotMetadata,d.JSC$15491_storedAdLayoutMetadata)})};
_.G.attached=function(){dE(this.JSC$15491_storedAdSlotMetadata,this.JSC$15491_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&VHM(kQ(),this.JSC$15491_storedAdSlotMetadata,this.JSC$15491_storedAdLayoutMetadata)};
_.G.detached=function(){dE(this.JSC$15491_storedAdSlotMetadata,this.JSC$15491_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Cg(kQ(),this.JSC$15491_storedAdSlotMetadata,this.JSC$15491_storedAdLayoutMetadata)};
_.G.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15491_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15491_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15491_storedAdLayoutMetadata!==void 0&&this.JSC$15491_storedAdSlotMetadata!==void 0&&Cg(kQ(),this.JSC$15491_storedAdSlotMetadata,this.JSC$15491_storedAdLayoutMetadata),VHM(kQ(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15491_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15491_storedAdSlotMetadata=this.adSlotMetadata)};
_.H3.Object.defineProperties(Ph.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.adLayoutMetadata}}});
Ph.prototype.onAdMetadataChanged=Ph.prototype.onAdMetadataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Ph.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Ph.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ph.prototype,"data",void 0);_.t([_.I("data.adLayoutMetadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ph.prototype,"adLayoutMetadata",null);
_.t([_.r(),_.O("design:type",Object)],Ph.prototype,"adSlotMetadata",void 0);_.t([_.CK("adLayoutMetadata","adSlotMetadata"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ph.prototype,"onAdMetadataChanged",null);_.t([_.Z({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Ph);
_.T(Ph,"ytd-page-top-ad-layout-renderer",function(){if(Xul!==void 0)return Xul;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-top-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-page-top-ad-layout-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Xul=
d},{mode:_.qk("kevlar_poly_si_batch_j070")?1:2});var tH7;var ul=function(){var d=_.B.apply(this,arguments)||this;d.noBottomMargin=!1;d.overlayDensity=0;d.typographyBump=!1;return d};
_.m(ul,_.B);_.G=ul.prototype;
_.G.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.G.ready=function(){var d=this;kEC(function(){d.isAttached&&d.adSlotMetadata&&RO0(kQ(),d.adSlotMetadata)})};
_.G.attached=function(){if(this.adSlotMetadata){var d;if(this.adSlotMetadata===((d=this.data)==null?void 0:d.adSlotMetadata))Cc7(kQ(),this.adSlotMetadata);else{var H;_.Jf(Error("Lh`"+this.adSlotMetadata+"`"+((H=this.data)==null?void 0:H.adSlotMetadata)))}}};
_.G.detached=function(){this.adSlotMetadata&&RO0(kQ(),this.adSlotMetadata)};
_.G.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.G.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&RO0(kQ(),this.adSlotMetadata),Cc7(kQ(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.H3.Object.defineProperties(ul.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var d,H,K=_.M((d=this.data)==null?void 0:(H=d.fulfillmentContent)==null?void 0:H.fulfilledLayout,_.spS),c;return(d=(c=_.M(K==null?void 0:K.renderingContent,J93))==null?void 0:c.layout)?d.toLowerCase().replace(/_/g,"-"):""}}});
ul.prototype.onAdSlotMetadataChanged=ul.prototype.onAdSlotMetadataChanged;ul.prototype.onTypographyBumpChanged=ul.prototype.onTypographyBumpChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ul.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],ul.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ul.prototype,"rendererBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],ul.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],ul.prototype,"noBottomMargin",void 0);_.t([_.r(),_.O("design:type",Object)],ul.prototype,"overlayDensity",void 0);_.t([_.r(),_.O("design:type",Object)],ul.prototype,"typographyBump",void 0);_.t([_.VP("ytd-in-feed-ad-layout-renderer"),_.O("design:type",HTMLElement)],ul.prototype,"inFeedAdLayoutRenderer",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",String),_.O("design:paramtypes",[])],ul.prototype,"layout",null);_.t([_.CK("typographyBump"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ul.prototype,"onTypographyBumpChanged",null);_.t([_.CK("data.adSlotMetadata"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ul.prototype,"onAdSlotMetadataChanged",null);
_.t([_.Z({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],ul);
_.T(ul,"ytd-ad-slot-renderer",function(){if(tH7!==void 0)return tH7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="fulfilled-layout" class="style-scope ytd-ad-slot-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return tH7=d},{mode:_.qk("kevlar_poly_si_batch_j077")?
1:2});var Y9g;var Xr=function(){return _.B.apply(this,arguments)||this};
_.m(Xr,_.B);_.G=Xr.prototype;_.G.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"},params:{noDotAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.G.maybeComputeHref=function(){return null};
_.G.onTap=function(){};
_.G.onThumbnailContainerClick=function(d){this.onClick(d)};
_.G.onClick=function(d){var H,K=(H=this.data)==null?void 0:H.navigationEndpoint;K&&_.M(K,_.AP)&&(this.ytSparklesClickLocationBehavior.handleClick(K,d,!1),d.stopPropagation())};
_.G.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var d=_.q(this.data.impressionUrls),H=d.next();!H.done;H=d.next())H=H.value,RuF(H,Ukh(H));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Xr.JSC$15499_DEFAULT_CLICK_LOCATION_BEHAVIOR,Xr.JSC$15499_CLICK_LOCATION_ID_MAP);this.thumbnail&&(d=this.thumbnail.getElementsByTagName("a"),d.length>0&&(d=d.namedItem("thumbnail"))&&
d.removeAttribute("href"))}};
_.G.attached=function(){var d=this;_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&d.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.G.detached=function(){_.h("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.H3.Object.defineProperties(Xr.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Xr.prototype.dataChanged=Xr.prototype.dataChanged;Xr.prototype.onTap=Xr.prototype.onTap;Xr.JSC$15499_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Xr.JSC$15499_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Xr.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.t([_.u(Q6),_.O("design:type",Object)],Xr.prototype,"ytdActiveViewBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Xr.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Xr.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.i3.YtSparklesClickLocationBehavior),_.O("design:type",Object)],Xr.prototype,"ytSparklesClickLocationBehavior",void 0);
_.t([_.r({selector:_.ZA}),_.O("design:type",Object)],Xr.prototype,"isGridViewEnabled",void 0);_.t([_.I("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Xr.prototype,"watchFeedBigThumbs",null);_.t([_.I("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.O("design:type",String),_.O("design:paramtypes",[])],Xr.prototype,"thumbnailWidth",null);_.t([_.r(),_.O("design:type",Object)],Xr.prototype,"data",void 0);
_.t([_.VP("ytd-thumbnail"),_.O("design:type",HTMLElement)],Xr.prototype,"thumbnail",void 0);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Xr.prototype,"onTap",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Xr.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Xr);
_.T(Xr,"ytd-compact-promoted-video-renderer",function(){if(Y9g!==void 0)return Y9g;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Y9g=d},{mode:1});var OhA;_.XX("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var JY=function(){return _.B.apply(this,arguments)||this};
_.m(JY,_.B);JY.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],JY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],JY.prototype,"data",void 0);_.t([_.Z({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],JY);
_.T(JY,"ytd-search-pyv-renderer",function(){if(OhA!==void 0)return OhA;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-pyv-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-search-pyv-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return OhA=d},{mode:1});var S93;_.XX("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var sd=function(){var d=_.B.apply(this,arguments)||this;d.roundedContainer=!0;d.JSC$15507_handleOpenPostCommentDialogActionAfterStamp=!1;d.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return d};
_.m(sd,_.B);_.G=sd.prototype;
_.G.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}}}},
"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.G.onStampFinished=function(){this.JSC$15507_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.G.handleSignalActionOpenPostCommentDialogAction=function(){var d=_.Gn(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");d?d.openDialog():this.JSC$15507_handleOpenPostCommentDialogActionAfterStamp=!0};
_.G.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.G.computeHideBorder=function(){return this.isInEngagementPanel};
_.G.computeIsCompact=function(){return this.isInEngagementPanel};
_.G.computeUsesCompactLockup=function(d){return d==="BACKSTAGE_SURFACE_TYPE_HOME"||d==="BACKSTAGE_SURFACE_TYPE_SEARCH"||d==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||d==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||d==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||d==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.G.computeUsesFullLockup=function(){var d,H=(d=this.data)==null?void 0:d.post,K;d=(K=_.M(H,y9X))==null?void 0:K.surface;var c;K=(c=_.M(H,D5S))==null?void 0:c.originalPost;var p;if(c=d||((p=_.M(K,y9X))==null?void 0:p.surface))return!this.computeUsesCompactLockup(c)&&this.useUpdatedRepostUi;var g;return((g=_.M(H,D5S))==null?void 0:g.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.H3.Object.defineProperties(sd.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var d,H;return((H=_.M((d=this.data)==null?void 0:d.post,y9X))==null?void 0:H.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.useUpdatedRepostUi}}});
sd.prototype.onYtCommentModerationPanelEmpty=sd.prototype.onYtCommentModerationPanelEmpty;sd.prototype.onStampFinished=sd.prototype.onStampFinished;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],sd.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],sd.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],sd.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],sd.prototype,"roundedContainer",void 0);_.t([_.r({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.O("design:type",Boolean)],sd.prototype,"hideBorder",void 0);_.t([_.r({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.O("design:type",Boolean)],sd.prototype,"isCompact",void 0);
_.t([_.r({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.O("design:type",Boolean)],sd.prototype,"usesFullLockup",void 0);_.t([_.nK("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sd.prototype,"onStampFinished",null);
_.t([_.nK("ytd-comment-moderation-panel-empty"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],sd.prototype,"onYtCommentModerationPanelEmpty",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],sd.prototype,"isInEngagementPanel",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],sd.prototype,"useUpdatedRepostUi",null);
_.t([_.Z({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],sd);
_.T(sd,"ytd-backstage-post-thread-renderer",function(){if(S93!==void 0)return S93;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return S93=d},{mode:1});var Eh6;var Fr=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return d};
_.m(Fr,_.B);Fr.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
Fr.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var d=this.data.thumbnail.thumbnails;this.isDarkTheme&&(d=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(d=_.Gv(d,24,void 0,"height"))?d:void 0}};
Fr.prototype.onDarkModeToggledAction=function(d){this.isDarkTheme=d};
Fr.prototype.computeHasText=function(){var d;return!((d=this.data)==null||!d.text)};
_.H3.Object.defineProperties(Fr.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Xa(this.bannerImageUrl))+'");'}}});
Fr.prototype.computeHasText=Fr.prototype.computeHasText;Fr.prototype.computeBannerImageUrl=Fr.prototype.computeBannerImageUrl;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Fr.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Fr.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],Fr.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],Fr.prototype,"isDarkTheme",void 0);_.t([_.r(),_.O("design:type",String)],Fr.prototype,"bannerImageUrl",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.O("design:type",Boolean)],Fr.prototype,"hasText",void 0);_.t([_.CK("data","isDarkTheme"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fr.prototype,"computeBannerImageUrl",null);
_.t([_.CK("data.text"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fr.prototype,"computeHasText",null);_.t([_.I("bannerImageUrl"),_.O("design:type",Object),_.O("design:paramtypes",[])],Fr.prototype,"bannerStyle",null);_.t([_.Z({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],Fr);
_.T(Fr,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(Eh6!==void 0)return Eh6;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-prefilled-post-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" hidden="[[!bannerImageUrl]]" style$="[[bannerStyle]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n</div>\n<div id="message" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n  <p id="title" hidden="[[!getSimpleString(data.title)]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.title)]]</p>\n  <p id="text" hidden="[[!hasText]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.text)]]</p>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Eh6=d},{mode:1});var ynA;var Zs=function(){return _.B.apply(this,arguments)||this};
_.m(Zs,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Zs.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Zs.prototype,"data",void 0);_.t([_.Z({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],Zs);
_.T(Zs,"ytd-backstage-zero-state-renderer",function(){if(ynA!==void 0)return ynA;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="backstage:artwork" class="style-scope ytd-backstage-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<span id="text" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.text)]]</span>\n<yt-formatted-string id="link" force-default-style="" text="[[data.link]]" class="style-scope ytd-backstage-zero-state-renderer"></yt-formatted-string>\n<span id="footer" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.footer)]]</span>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ynA=d},{mode:1});var bh0;var TX=function(){return _.B.apply(this,arguments)||this};
_.m(TX,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],TX.prototype,"data",void 0);_.t([_.r({computed:"computeIcon_(data.icon)"}),_.O("design:type",String)],TX.prototype,"icon",void 0);_.t([_.Z({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],TX);
_.T(TX,"ytd-post-filter-zero-state-renderer",function(){if(bh0!==void 0)return bh0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-filter-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-container" class="style-scope ytd-post-filter-zero-state-renderer"><yt-icon id="icon" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-filter-zero-state-renderer"></yt-icon></div>\n<div id="title" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.subtitle)]]</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return bh0=d},{mode:1});var Nt6;var DBU={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},QR=function(){return _.B.apply(this,arguments)||this};
_.m(QR,_.B);QR.prototype.configureRendererStamper=function(){return DBU};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],QR.prototype,"rendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],QR.prototype,"data",void 0);_.t([_.r({computed:"computeIcon_(data.icon)"}),_.O("design:type",String)],QR.prototype,"icon",void 0);_.t([_.Z({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],QR);
_.T(QR,"ytd-post-scheduling-zero-state-renderer",function(){if(Nt6!==void 0)return Nt6;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-scheduling-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-scheduling-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-post-scheduling-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<div id="schedule-button" class="style-scope ytd-post-scheduling-zero-state-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Nt6=d},{mode:1});var fx7;var tY=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return d};
_.m(tY,_.B);tY.prototype.onTabsActivate=function(d){this.data&&this.data.tabs&&_.GT(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[d.detail.selected].navigationEndpoint})};
tY.prototype.shouldShowTotalCount=function(d){return d&&d.totalCount!==void 0};
tY.prototype.handleUpdatePostsTotalCountAction=function(d){var H=this.get(["data.tabs",1,"totalCount"]),K=this.get("updatePostsTotalCountAction.updateType",d);d=this.get("updatePostsTotalCountAction.number",d);H!==void 0&&K!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&d&&(K==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(H)+d):K==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(H)-d))};
_.H3.Object.defineProperties(tY.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var d=0,H=this.data.tabs.length;d<H;d++)if(this.data.tabs[d].selected)return d;return 0}}});
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],tY.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],tY.prototype,"rendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],tY.prototype,"data",void 0);_.t([_.I("data.tabs"),_.O("design:type",Number),_.O("design:paramtypes",[])],tY.prototype,"selected",null);_.t([_.Z({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],tY);
_.T(tY,"ytd-post-stream-filter-renderer",function(){if(fx7!==void 0)return fx7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-stream-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-container" class="style-scope ytd-post-stream-filter-renderer">\n  <tp-yt-paper-tabs selected="[[selected]]" on-iron-activate="onTabsActivate" class="style-scope ytd-post-stream-filter-renderer">\n    <template is="dom-repeat" items="[[data.tabs]]" class="style-scope ytd-post-stream-filter-renderer">\n      <tp-yt-paper-tab class="style-scope ytd-post-stream-filter-renderer">\n        [[getSimpleString(item.title)]]\n        <template is="dom-if" if="[[shouldShowTotalCount(item)]]" class="style-scope ytd-post-stream-filter-renderer">\n          <span class="posts-count style-scope ytd-post-stream-filter-renderer">[[item.totalCount]]</span>\n        </template>\n      </tp-yt-paper-tab>\n    </template>\n  </tp-yt-paper-tabs>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return fx7=d},{mode:1});var Anl;var YQ=function(){return _.B.apply(this,arguments)||this};
_.m(YQ,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],YQ.prototype,"kevlarBehaviors",void 0);_.t([_.r(),_.O("design:type",Object)],YQ.prototype,"data",void 0);_.t([_.Z({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],YQ);
_.T(YQ,"ytd-channel-age-gate-renderer",function(){if(Anl!==void 0)return Anl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-age-gate-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-age-gate-renderer">\n  <div id="channel-container" class="style-scope ytd-channel-age-gate-renderer">\n    <div id="channel" class="style-scope ytd-channel-age-gate-renderer">[[data.channelTitle]]</div>\n    <yt-img-shadow thumbnail="[[data.avatar]]" width="144" class="style-scope ytd-channel-age-gate-renderer"></yt-img-shadow>\n  </div>\n  <div id="info" class="style-scope ytd-channel-age-gate-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <yt-formatted-string text="[[data.mainText]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <ytd-button-renderer align-by-text="" data="[[data.signInButton.buttonRenderer]]" class="style-scope ytd-channel-age-gate-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string text="[[data.secondaryText]]" class="style-scope ytd-channel-age-gate-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Anl=d},{mode:1});var jf3;_.XX("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var Od=function(){var d=_.B.apply(this,arguments)||this;d.data=null;return d};
_.m(Od,_.B);Od.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H3.Object.defineProperties(Od.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return((d=this.data)==null?0:(H=d.title)==null?0:(K=H.runs)==null?0:K.length)?147:160}}});
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Od.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Od.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],Od.prototype,"imageSizePx",null);_.t([_.Z({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],Od);
_.T(Od,"ytd-channel-owner-empty-state-renderer",function(){if(jf3!==void 0)return jf3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-owner-empty-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container ytd-channel-owner-empty-state-renderer style-scope ytd-channel-owner-empty-state-renderer">\n  <div class="illustration style-scope ytd-channel-owner-empty-state-renderer">\n    <yt-img-shadow height="[[imageSizePx]]" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-owner-empty-state-renderer">\n    <div class="header style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.title]]">\n      <h2 class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string id="title" class="header-title style-scope ytd-channel-owner-empty-state-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="description style-scope ytd-channel-owner-empty-state-renderer">\n      <yt-formatted-string id="description" class="description-text style-scope ytd-channel-owner-empty-state-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n      <div class="button-layer style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.uploadVideoButton]]">\n        <span id="upload-video-button" class="style-scope ytd-channel-owner-empty-state-renderer"></span>\n      </div>\n    <div class="learn-more style-scope ytd-channel-owner-empty-state-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-owner-empty-state-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return jf3=d},{mode:1});var vh3;var dD3;var S6=function(){var d=_.B.apply(this,arguments)||this;d.boundSubmitSearch=function(){d.submitSearch()};
d.boundClearSearch=function(){d.clearSearch()};
return d};
_.m(S6,_.B);_.G=S6.prototype;_.G.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmitSearch]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundClearSearch]]"}}}}}};
_.G.toggleClearButton=function(){this.hideClearButton=nD4||!this.input.value};
_.G.submitOnEnterKeyUp=function(d){d.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.G.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.G.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.G.submit=function(){_.GT(this.hostElement,"search-query-changed",this.input.value)};
S6.prototype.toggleClearButton=S6.prototype.toggleClearButton;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],S6.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],S6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],S6.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],S6.prototype,"hideClearButton",void 0);_.t([_.r(),_.O("design:type",Object)],S6.prototype,"boundSubmitSearch",void 0);_.t([_.r(),_.O("design:type",Object)],S6.prototype,"boundClearSearch",void 0);_.t([_.VP("#input"),_.O("design:type",Object)],S6.prototype,"input",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],S6.prototype,"toggleClearButton",null);
_.t([_.Z({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],S6);
_.T(S6,"ytd-channel-switcher-search-box-renderer",function(){if(dD3!==void 0)return dD3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="input" auto-validate="true" autocomplete="off" error-message="[[getSimpleString(data.invalidQueryErrorMessage)]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="100" minlength="3" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-channel-switcher-search-box-renderer">\n  <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n  <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n</tp-yt-paper-input>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return dD3=d},{mode:1});var H0N;var Ed=function(){var d=_.B.apply(this,arguments)||this;d.boundSubmit=function(){d.submit()};
return d};
_.m(Ed,_.B);_.G=Ed.prototype;_.G.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmit]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.G.ready=function(){var d=this;this.form.addEventListener("submit",function(H){return d.onSubmit(H)})};
_.G.onSubmit=function(d){d.preventDefault();return!1};
_.G.toggleClearButton=function(){this.hideClearButton=nD4||!this.input.value};
_.G.submitOnEnterKeyUp=function(d){d.keyCode===13&&this.submit()};
_.G.submit=function(){var d=this.data.endpoint,H=(0,_.rs.unsafeClone)(d);_.M(H,_.Lm)?_.M(H,_.Lm).query=this.input.value:_.M(H,_.Mv)&&(_.M(H,_.Mv).query=this.input.value);var K=_.M(H.commandMetadata,_.Co);(K==null?0:K.url)?(K.url=_.Qj(K.url,"query",this.input.value),_.GT(this.hostElement,"yt-navigate",{endpoint:H})):_.M(H,Ie3)?(_.M(H,Ie3).channelSwitcherQuery=this.input.value,_.Kj().resolve(_.cb).resolveCommand(H,{form:{element:this.hostElement}})):(d=Error("Mh`"+JSON.stringify(d)),_.z5(d))};
_.G.getUrl=function(d){return this.get("commandMetadata.webCommandMetadata.url",d)};
Ed.prototype.toggleClearButton=Ed.prototype.toggleClearButton;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Ed.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ed.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ed.prototype,"hideClearButton",void 0);
_.t([_.r(),_.O("design:type",Object)],Ed.prototype,"boundSubmit",void 0);_.t([_.VP("#form"),_.O("design:type",HTMLFormElement)],Ed.prototype,"form",void 0);_.t([_.VP("#input"),_.O("design:type",Object)],Ed.prototype,"input",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ed.prototype,"toggleClearButton",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Ed);
_.T(Ed,"ytd-search-box-renderer",function(){if(H0N!==void 0)return H0N;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return H0N=d},{mode:2});var yR=function(){var d=_.B.apply(this,arguments)||this;d.showSearchBox=!0;return d};
_.m(yR,_.B);yR.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],yR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],yR.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],yR.prototype,"showSearchBox",void 0);_.t([_.Z({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],yR);
_.T(yR,"ytd-channel-switcher-header-renderer",function(){if(vh3!==void 0)return vh3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-channel-switcher-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-channel-switcher-header-renderer"></yt-formatted-string>\n</h2>\n<div id="search-box" hidden="[[!showSearchBox]]" class="style-scope ytd-channel-switcher-header-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return vh3=d},{mode:1});var $D0;var KjU;var bl=function(){var d=_.B.apply(this,arguments)||this;d.isDisplayed=!0;return d};
_.m(bl,_.B);_.G=bl.prototype;_.G.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G.dataChanged=function(){this.isDisplayed=!0};
_.G.computeType=function(d){return d||"UNKNOWN"};
_.G.onYtServiceRequestCompleted=function(d){d.stopPropagation();this.isDisplayed=!1};
_.G.onClose=function(){this.isDisplayed=!1};
bl.prototype.onYtServiceRequestCompleted=bl.prototype.onYtServiceRequestCompleted;bl.prototype.dataChanged=bl.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],bl.prototype,"data",void 0);
_.t([_.r({computed:"computeType(data.type)",reflectToAttribute:!0}),_.O("design:type",String)],bl.prototype,"type",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],bl.prototype,"isDisplayed",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bl.prototype,"dataChanged",null);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],bl.prototype,"onYtServiceRequestCompleted",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],bl);
_.T(bl,"ytd-alert-with-button-renderer",function(){if(KjU!==void 0)return KjU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-alert-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-alert-with-button-renderer"></yt-formatted-string>\n<div id="buttons" class="style-scope ytd-alert-with-button-renderer">\n  <div id="button" class="style-scope ytd-alert-with-button-renderer"></div>\n  <div id="dismiss-button" on-click="onClose" class="style-scope ytd-alert-with-button-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return KjU=d},{mode:1});var Nz=function(){var d=_.B.apply(this,arguments)||this;d.noResult=!1;d.enableAlertBanner=!1;d.dismissedAlertBanner=!1;d.hideCreateChannelButton=!1;d.boundDismissAlertBanner=function(){d.dismissAlertBanner()};
d.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return d};
_.m(Nz,_.B);_.G=Nz.prototype;_.G.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.G.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.G.updateChannelSwitcherAction=function(d){var H;d=(H=_.M(d,U3X))==null?void 0:H.page;_.M(d,VJU)!==void 0&&(this.data=_.M(d,VJU))};
_.G.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{channelSwitcherHeaderRenderer:"ytd-channel-switcher-header-renderer"}},"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}},accountItemRenderer:"ytd-account-item-renderer",continuationItemRenderer:"ytd-continuation-item-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundDismissAlertBanner]]"}}}}}};
_.G.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.G.searchQueryChanged=function(d,H){if(this.data&&this.data.contents&&this.data.contents.length){d=[];var K=[];this.hideCreateChannelButton=this.noResult=!1;for(var c=document.querySelectorAll("ytd-account-item-renderer"),p=_.q(c),g=p.next();!g.done;g=p.next())g=g.value,K.push(g),g.style.display="block";this.resetRightBorder(K);if(H){this.hideCreateChannelButton=!0;for(K=1;K<this.data.contents.length;K++)if(g=this.data.contents[K],_.M(g,wrg)){var a=void 0,e=void 0;p=(a=_.M(g,wrg))==null?void 0:(e=
a.accountName)==null?void 0:e.simpleText;e=a=void 0;g=(a=_.M(g,wrg))==null?void 0:(e=a.channelHandle)==null?void 0:e.simpleText;(a=c[K-1])&&p&&_.aE(p,H)?d.push(a):_.h("enable_handle_search_on_channel_switcher")&&a&&g&&_.aE(g.toString(),H.toString())?d.push(a):a.style.display="none"}d.length===0&&(this.noResult=!0);this.resetRightBorder(d)}}};
_.G.resetRightBorder=function(d){for(var H=0;H<d.length;H++)d[H].style.borderRight=!this.hideCreateChannelButton&&(H+2)%3===0||this.hideCreateChannelButton&&(H+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.G.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.G.setShowSearchBox=function(d){if(d&&d.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var H=0;H<d.contents.length;H++)_.M(d.contents[H],_.AE)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.G.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.H3.Object.defineProperties(Nz.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null?0:d.contents)}}});
Nz.prototype.onContinuationItemsUpdated=Nz.prototype.onContinuationItemsUpdated;Nz.prototype.searchQueryChanged=Nz.prototype.searchQueryChanged;Nz.prototype.onDataChanged=Nz.prototype.onDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Nz.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Nz.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Nz.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.yH),_.O("design:type",Object)],Nz.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Nz.prototype,"data",void 0);_.t([_.VP("ytd-channel-switcher-header-renderer"),_.O("design:type",Object)],Nz.prototype,"channelSwitcherHeaderRenderer",void 0);_.t([_.r(),_.O("design:type",Object)],Nz.prototype,"noResult",void 0);
_.t([_.r(),_.O("design:type",Object)],Nz.prototype,"enableAlertBanner",void 0);_.t([_.r(),_.O("design:type",Object)],Nz.prototype,"dismissedAlertBanner",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Nz.prototype,"hideCreateChannelButton",void 0);_.t([_.I("data.contents"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Nz.prototype,"isLoading",null);_.t([_.r(),_.O("design:type",Object)],Nz.prototype,"boundDismissAlertBanner",void 0);
_.t([_.r({computed:"computeButtonOverride()"}),_.O("design:type",Object)],Nz.prototype,"buttonOverride",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Nz.prototype,"onDataChanged",null);_.t([_.nK("search-query-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,String]),_.O("design:returntype")],Nz.prototype,"searchQueryChanged",null);
_.t([_.nK("yt-next-continuation-data-updated"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Nz.prototype,"onContinuationItemsUpdated",null);_.t([_.Z({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Nz);
_.T(Nz,"ytd-channel-switcher-page-renderer",function(){if($D0!==void 0)return $D0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-page-renderer"></div>\n<div id="body" class="style-scope ytd-channel-switcher-page-renderer">\n  <div class="spinner-container style-scope ytd-channel-switcher-page-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-switcher-page-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n  <div id="alert" hidden="[[!enableAlertBanner]]" class="style-scope ytd-channel-switcher-page-renderer">\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-channel-switcher-page-renderer"></yt-formatted-string>\n      <div id="dismiss-button" class="style-scope ytd-channel-switcher-page-renderer"></div>\n  </div>\n  <div id="contents" class="style-scope ytd-channel-switcher-page-renderer"></div>\n</div>\n<yt-formatted-string id="no-result" hidden="[[!noResult]]" text="[[data.noResult]]" class="style-scope ytd-channel-switcher-page-renderer">\n</yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return $D0=d},{mode:1});var cll;var pT7;var Ds=function(){var d=_.B.apply(this,arguments)||this;d.images=[];d.selectedImageIndex=0;return d};
_.m(Ds,_.B);_.G=Ds.prototype;
_.G.ready=function(){_.Iq(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Iq(this.JSC$15552_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Iq(this.JSC$15552_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Iq(this.JSC$15552_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.G.onThumbnailClick=function(d){if(d=d.event_.detail)this.selectedImageIndex=this.images.indexOf(d)};
_.G.updateImageThumbnails=function(d){d=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:d.event_.detail});this.images.splice(this.selectedImageIndex,1,d);this.images=[].concat(_.ru(this.images))};
_.G.cancelImageRepositions=function(){this.selectedImageIndex=0;_.GT(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.G.saveImageRepositions=function(){this.selectedImageIndex=0;_.GT(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.H3.Object.defineProperties(Ds.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var d=this;return(this.images||[]).map(function(H,K){return{image:H,selected:K===d.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Ds.prototype,"ytRendererstamperBehavior",void 0);_.t([_.VP("ytd-backstage-image-preview-renderer"),_.O("design:type",Object)],Ds.prototype,"JSC$15552_imagePreviewContainer",void 0);_.t([_.VP(".thumbnail-images-container"),_.O("design:type",HTMLElement)],Ds.prototype,"thumbnailImagesContainer",void 0);_.t([_.r(),_.O("design:type",Array)],Ds.prototype,"images",void 0);
_.t([_.r(),_.O("design:type",Object)],Ds.prototype,"repositionInstructions",void 0);_.t([_.r(),_.O("design:type",Object)],Ds.prototype,"selectedImageIndex",void 0);_.t([_.I("images","selectedImageIndex"),_.O("design:type",Array),_.O("design:paramtypes",[])],Ds.prototype,"thumbnailRendererDatas",null);_.t([_.I("images","selectedImageIndex"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ds.prototype,"selectedImageData",null);
_.t([_.Z({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Ds);
_.T(Ds,"ytd-backstage-multi-image-reposition-renderer",function(){if(pT7!==void 0)return pT7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-reposition-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="image-reposition-container style-scope ytd-backstage-multi-image-reposition-renderer">\n  <div class="thumbnail-images-container style-scope ytd-backstage-multi-image-reposition-renderer">\n    <template is="dom-repeat" items="[[thumbnailRendererDatas]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n      <div class="image-thumbnail style-scope ytd-backstage-multi-image-reposition-renderer">\n        <ytd-backstage-multi-image-thumbnail-renderer id="thumbnail-renderer" data="[[item]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n        </ytd-backstage-multi-image-thumbnail-renderer>\n      </div>\n    </template>\n  </div>\n  <div class="image-reposition style-scope ytd-backstage-multi-image-reposition-renderer">\n    <ytd-backstage-image-preview-renderer edit-only-mode="" image-data="[[selectedImageData]]" instruction="[[repositionInstructions]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return pT7=d},{mode:1});var fg=function(d,H){_.Rj.call(this);this.uploadUrl=d;this.channelId=H;this.imagesUploadData=[]};
_.m(fg,_.Rj);fg.prototype.getAllUploadStatuses=function(){var d=this,H,K,c;return _.l(function(p){if(p.nextAddress==1)return p.yield(guC(d),2);H=p.yieldResult;K=H.get("succeed");c=H.get("failed");return p.return(K.concat(c))})};
var GD3=function(d){var H,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(guC(d),2);H=c.yieldResult;K=H.get("failed");K.length>0&&i03(d,K);return c.return(d.getAllUploadStatuses())})},guC=function(d){var H,K,c,p,g,a,e;
return _.l(function(k){if(k.nextAddress==1)return H=new Map,k.yield(Promise.allSettled(d.imagesUploadData.map(function(C){return C.uploadPromise})),2);
K=k.yieldResult;c=[];p=_.q(K);for(g=p.next();!g.done;g=p.next())a=g.value,a.status==="fulfilled"&&c.push(a.value);e=d.imagesUploadData.map(function(C){return C.image}).filter(function(C){return c.every(function(R){return R.id!==C.id})});
H.set("succeed",c);H.set("failed",e);return k.return(H)})},i03=function(d,H){H=_.q(H);
for(var K=H.next();!K.done;K=H.next()){var c=d;K=K.value;oud(c,K.id)>=0&&c.cancel(K.id);var p=new qM6(K),g=_.eW3(c.uploadUrl,{"X-YouTube-ChannelId":c.channelId},K.imageBlob);p.transfer=g;p.uploadPromise=aU6(g,K);c.imagesUploadData.push(p);g.run()}};
fg.prototype.cancel=function(d){var H=oud(this,d);H!==-1&&((H=this.imagesUploadData[H].transfer)&&H.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(K){return K.image.id!==d}))};
var oud=function(d,H){return d.imagesUploadData.findIndex(function(K){return K.image.id===H})},aU6=function(d,H){return new Promise(function(K,c){d.listen("l",function(){var p=d.getResponseText();
p?(p=JSON.parse(p).encryptedBlobId,H.encryptedBlobId=p,K(H)):c("upload failed")});
d.listen("n",function(){c("upload failed")})})},qM6=function(d){this.image=d};var p_h=function(d,H,K,c,p){this.id=d;this.imageBlob=H;this.localImageSrc=K;this.naturalWidth=c;this.naturalHeight=p;this.previewCoordinates=this.naturalHeight>this.naturalWidth?{top:(this.naturalHeight-this.naturalWidth)/2/this.naturalHeight,right:1,bottom:(this.naturalHeight+this.naturalWidth)/2/this.naturalHeight,left:0}:{top:0,right:(this.naturalWidth+this.naturalHeight)/2/this.naturalWidth,bottom:1,left:(this.naturalWidth-this.naturalHeight)/2/this.naturalWidth}};var lUA=[".jpeg",".jpg",".png"],AY=function(){var d=_.B.apply(this,arguments)||this;d.showImagesPreview=!1;d.pollOptions=[];d.errorMessage="";d.optionPlaceholderText="";d.optionDefaultText="";d.JSC$15563_imageId=0;d.maxFileSizeMb=0;d.maxAspectRatio=0;d.invalidFileSizeError="";d.invalidAspectRatioError="";d.invalidFileTypeError="";d.imageSelector=new eK(null,"single_file",lUA);return d};
_.m(AY,_.B);_.G=AY.prototype;_.G.ready=function(){_.Iq(this.imageSelector,"j",this.onImageSelect,!1,this);_.Iq(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Iq(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.G.dataChanged=function(){var d,H,K=_.M((d=this.data)==null?void 0:(H=d.cellTemplate)==null?void 0:H.onEmptyCellTap,mAg);if(K&&K.uploadUrl&&K.channelId){var c;this.maxFileSizeMb=((c=K.imageValidationInfo)==null?void 0:c.maxFileSizeMb)||0;var p;this.maxAspectRatio=((p=K.imageValidationInfo)==null?void 0:p.allowedMaxAspectRatio)||0;var g;this.invalidFileSizeError=this.getSimpleString((g=this.data)==null?void 0:g.invalidFileSizeError);var a;this.invalidAspectRatioError=this.getSimpleString((a=this.data)==
null?void 0:a.invalidAspectRatioError);var e;this.invalidFileTypeError=this.getSimpleString((e=this.data)==null?void 0:e.invalidFileTypeError);this.uploadManager=new fg(K.uploadUrl,K.channelId)}};
_.G.onEditorInfoChange=function(){this.optionPlaceholderText=_.jG(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.jG(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.G.observeAddImageError=function(){this.errorMessage!==""&&_.GT(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.G.onPollOptionsChange=function(){for(var d=!1,H=[],K=0;K<this.pollOptions.length;K++){var c=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(K+1);this.pollOptions[K].placeholderText!==c?(d=!0,H.push(Object.assign({},this.pollOptions[K],{placeholderText:c}))):H.push(this.pollOptions[K])}d&&(this.pollOptions=H);this.isValid()?_.GT(this.hostElement,"yt-commentbox-post-enable"):_.GT(this.hostElement,"yt-commentbox-post-disable")};
_.G.createPollOptions=function(d){var H=[],K;d=(K=d==null?void 0:d.minPollOptions)!=null?K:0;for(K=0;K<d;K++)H.push(this.createPollOption());return H};
_.G.onImageSelect=function(d){var H=this,K,c,p,g,a,e;return _.l(function(k){if(k.nextAddress==1){if(H.selectedImageIndex===void 0)return k.jumpTo(0);K=d.files[0];H.errorMessage="";c=H.validateImage(K);if(c!=="")return H.errorMessage=c,k.return();p=new As(H.maxAspectRatio,!1,!0);return k.yield(p.transform(K),3)}if(k.nextAddress!=4)return g=k.yieldResult,g.transformedData?g.invalidAspectRatio?(H.errorMessage=H.invalidAspectRatioError,k.return()):k.yield(g71(H.JSC$15563_imageId,d.files[0],g.transformedData),
4):(H.errorMessage=H.invalidFileTypeError,k.return());a=k.yieldResult;H.JSC$15563_imageId++;i03(H.uploadManager,[a]);e=Object.assign({},H.pollOptions[H.selectedImageIndex],{image:a});H.pollOptions.splice(H.selectedImageIndex,1,e);H.refreshPollOptions();_.GT(H.hostElement,"yt-backstage-poll-image-select");_.VE(k)})};
_.G.validateImage=function(d){return d.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.G.refreshPollOptions=function(){this.pollOptions=[].concat(_.ru(this.pollOptions))};
_.G.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.ru(this.pollOptions),[this.createPollOption()]))};
_.G.onRemovePollOption=function(d){var H=this.pollOptions[d.model.index];H&&H.image&&this.uploadManager.cancel(H.image.id);this.pollOptions.splice(d.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.GT(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.G.onTextInput=function(){this.refreshPollOptions()};
_.G.onImageButtonClick=function(d){this.selectedImageIndex=d.model.index;this.imageSelector.click()};
_.G.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.G.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.G.saveImageRepositions=function(d){d=d.event_.detail;for(var H=0,K=[],c=_.q(this.pollOptions),p=c.next();!p.done;p=c.next())p=p.value,p.image!==void 0?(p=Object.assign({},p,{image:d[H]}),K.push(p),H++):K.push(p);this.showImagesPreview=!1;this.pollOptions=[].concat(_.ru(K))};
_.G.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var d=0,H=_.q(this.pollOptions),K=H.next();!K.done;K=H.next())if(K=K.value,K.optionText.trim()!==""||K.image!==void 0){if(!K.image||this.hasCustomOptionText&&K.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;d++}return d>=Number(this.editorInfo.minPollOptions)};
_.G.getAllUploadStatuses=function(){var d=this,H,K,c,p;return _.l(function(g){if(g.nextAddress==1)return g.yield(d.uploadManager.getAllUploadStatuses(),2);H=g.yieldResult;K=_.q(H);for(c=K.next();!c.done;c=K.next())if(p=c.value,p.encryptedBlobId===void 0)return g.return(GD3(d.uploadManager));return g.return(H)})};
_.G.getPostCreateOptions=function(){for(var d=[],H=_.q(this.pollOptions),K=H.next();!K.done;K=H.next())K=K.value,K.image!==void 0&&d.push({text:this.hasCustomOptionText?K.optionText:K.placeholderText,image:K.image});return d};
_.G.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.G.createButtonRenderer=function(d,H){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:d,accessibilityData:{accessibilityData:{label:this.getSimpleString(d)}},isDisabled:H}};
_.G.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.G.computeThumbnailRendererData=function(d){return d?{image:d,selected:!1}:void 0};
_.G.getSimpleString=function(d){return _.jG(d)};
_.G.updateOptionTextFromBinding=function(d){if(d.target){var H=Array.from(_.Gn(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(d.target);if(H>=0){var K;this.pollOptions[H].optionText=(K=d.detail.value)!=null?K:""}}};
_.H3.Object.defineProperties(AY.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var d,H;return this.pollOptions.length<((H=(d=this.editorInfo)==null?void 0:d.maxPollOptions)!=null?H:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(d){return d.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(d){return d.image}).map(function(d){return d.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(d){return d.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var d,H=(d=this.data)==null?void 0:d.addOptionButtonText;return H?this.createButtonRenderer(H,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var d,H=(d=this.data)==null?void 0:d.repositionImagesButtonLabel;return H?this.createButtonRenderer(H,!this.hasImages):void 0}}});
AY.prototype.onPollOptionsChange=AY.prototype.onPollOptionsChange;AY.prototype.observeAddImageError=AY.prototype.observeAddImageError;AY.prototype.onEditorInfoChange=AY.prototype.onEditorInfoChange;AY.prototype.dataChanged=AY.prototype.dataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],AY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.VP("ytd-backstage-multi-image-reposition-renderer"),_.O("design:type",Object)],AY.prototype,"imageRepositionContainer",void 0);
_.t([_.r(),_.O("design:type",Object)],AY.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],AY.prototype,"editorInfo",void 0);_.t([_.r(),_.O("design:type",fg)],AY.prototype,"uploadManager",void 0);_.t([_.r(),_.O("design:type",Object)],AY.prototype,"showImagesPreview",void 0);_.t([_.r(),_.O("design:type",Array)],AY.prototype,"pollOptions",void 0);_.t([_.r(),_.O("design:type",Object)],AY.prototype,"errorMessage",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],AY.prototype,"dataChanged",null);_.t([_.Mr("editorInfo"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],AY.prototype,"onEditorInfoChange",null);_.t([_.CK("errorMessage"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],AY.prototype,"observeAddImageError",null);
_.t([_.Mr("pollOptions"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],AY.prototype,"onPollOptionsChange",null);_.t([_.I("pollOptions","editorInfo"),_.O("design:type",Object),_.O("design:paramtypes",[])],AY.prototype,"isAllowedToAddOption",null);_.t([_.I("pollOptions"),_.O("design:type",Object),_.O("design:paramtypes",[])],AY.prototype,"hasImages",null);
_.t([_.I("pollOptions"),_.O("design:type",Object),_.O("design:paramtypes",[])],AY.prototype,"imagesToReposition",null);_.t([_.I("pollOptions"),_.O("design:type",Object),_.O("design:paramtypes",[])],AY.prototype,"hasCustomOptionText",null);_.t([_.I("data","isAllowedToAddOption"),_.O("design:type",Object),_.O("design:paramtypes",[])],AY.prototype,"addOptionButton",null);_.t([_.I("data","hasImages"),_.O("design:type",Object),_.O("design:paramtypes",[])],AY.prototype,"repositionImagesButton",null);
_.t([_.Z({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],AY);
_.T(AY,"ytd-backstage-image-poll-editor-renderer",function(){if(cll!==void 0)return cll;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-poll-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[showImagesPreview]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  <template is="dom-repeat" items="[[pollOptions]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n    <div class="poll-option style-scope ytd-backstage-image-poll-editor-renderer">\n      <div class="image-thumbnail-container style-scope ytd-backstage-image-poll-editor-renderer">\n        <div class="image-thumbnail style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!item.image]]">\n          <ytd-backstage-multi-image-thumbnail-renderer data="[[computeThumbnailRendererData(item.image)]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n          </ytd-backstage-multi-image-thumbnail-renderer>\n        </div>\n        <div class="image-select-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[item.image]]">\n          <yt-icon-button class="add-image-icon-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onImageButtonClick">\n            <yt-icon class="add-image-icon style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:image"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <tp-yt-paper-input-container class="poll-option-input style-scope ytd-backstage-image-poll-editor-renderer" no-label-float="">\n        <tp-yt-iron-autogrow-textarea class="paper-input-input poll-option-input-text style-scope ytd-backstage-image-poll-editor-renderer" slot="input" maxlength$="[[editorInfo.maxPollOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onTextInput" on-value-changed="updateOptionTextFromBinding">\n        </tp-yt-iron-autogrow-textarea>\n        <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-backstage-image-poll-editor-renderer"></tp-yt-paper-input-char-counter>\n      </tp-yt-paper-input-container>\n      <yt-icon-button class="remove-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:delete"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </template>\n  <div class="button-container style-scope ytd-backstage-image-poll-editor-renderer">\n    <yt-button-renderer class="add-option style-scope ytd-backstage-image-poll-editor-renderer" data="[[addOptionButton]]" on-click="onAddPollOption">\n    </yt-button-renderer>\n    <yt-button-renderer class="reposition-images style-scope ytd-backstage-image-poll-editor-renderer" data="[[repositionImagesButton]]" on-click="onRepositionImages">\n    </yt-button-renderer>\n  </div>\n</div>\n\n\n<div class="image-reposition-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!showImagesPreview]]">\n  <ytd-backstage-multi-image-reposition-renderer images="[[imagesToReposition]]" reposition-instructions="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  </ytd-backstage-multi-image-reposition-renderer>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return cll=d},{mode:2});var eyl={imageHorizontalPosition:"IMAGE_HORIZONTAL_POSITION_LABEL",imageVerticalPosition:"IMAGE_VERTICAL_POSITION_LABEL",horizontalRepositionInstruction:"REPOSITION_IMAGE_HORIZONTALLY_LABEL",verticalRepositionInstruction:"REPOSITION_IMAGE_VERTICALLY_LABEL",reachTopOfImage:"REACH_TOP_OF_IMAGE_TEXT",reachBottomOfImage:"REACH_BOTTOM_OF_IMAGE_TEXT",reachLeftOfImage:"REACH_LEFT_OF_IMAGE_TEXT",reachRightOfImage:"REACH_RIGHT_OF_IMAGE_TEXT"};var kDU;var j6=function(){var d=_.B.apply(this,arguments)||this;d.a11yConfig=eyl;d.imageDisplayOffsetTop=0;d.imageDisplayOffsetLeft=0;d.pickerDisplayOffsetTop=0;d.pickerDisplayOffsetLeft=0;d.showPreviewContainer=!0;d.startPicker=!1;d.repositionOptional=!1;d.editOnlyMode=!1;d.savedImageDisplayOffsetTop=0;d.savedImageDisplayOffsetLeft=0;return d};
_.m(j6,_.B);_.G=j6.prototype;_.G.created=function(){_.QX.requestAvailability()};
_.G.ready=function(){};
_.G.onArrowKeysDown=function(d){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){d.detail.keyboardEvent.preventDefault();var H=0,K=0,c="";switch(d.detail.keyboardEvent.key){case "ArrowUp":ivD(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?c=this.a11yConfig.reachBottomOfImage:H=this.imageHeight*.05*-1;break;case "ArrowDown":ivD(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?c=this.a11yConfig.reachTopOfImage:
H=this.imageHeight*.05;break;case "ArrowLeft":ivD(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?c=this.a11yConfig.reachRightOfImage:K=this.imageWidth*.05*-1;break;case "ArrowRight":ivD(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?c=this.a11yConfig.reachLeftOfImage:K=this.imageWidth*.05}c&&_.Vz(c)&&_.GT(this.hostElement,"iron-announce",{text:_.Vz(c)});if(K||H)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+H)),d=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),d=_.Vz(this.a11yConfig.imageVerticalPosition,{x_percent:""+d,y_percent:""+(100-d)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+K)),d=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),d=_.Vz(this.a11yConfig.imageHorizontalPosition,{x_percent:""+d,y_percent:""+(100-d)})),d&&_.GT(this.hostElement,"iron-announce",{text:d})}};
_.G.getPreviewPosition=function(d,H,K,c){return Math.round(100*(d+H*.5-K)/c)};
_.G.calculateDisplayPosition=function(){var d=this.imageData.naturalWidth,H=this.imageData.naturalHeight;this.displayScale=Math.max(200/d,200/H);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var K=d*this.displayScale*this.imageData.previewCoordinates.left,c=H*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=H>d?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-K;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=d>H?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-c;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=d*this.displayScale;this.imageHeight=H*this.displayScale};
_.G.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.G.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.G.getSignedPosition=function(d,H,K){return H==="X"&&_.Fm("HTML_DIR")==="rtl"?K==="-"?d+"px":d*-1+"px":K==="-"?d*-1+"px":d+"px"};
_.G.pickerMove=function(d){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var H=this.pickerOffsetX-d.clientX,K=this.pickerOffsetY-d.clientY;this.pickerOffsetX=d.clientX;this.pickerOffsetY=d.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
K)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-H))}};
_.G.pickerMoveStart=function(d){this.startPicker=!0;this.pickerOffsetX=d.clientX;this.pickerOffsetY=d.clientY};
_.G.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var d=this.generateCropPreview();d&&_.GT(this.hostElement,"ytd-backstage-image-preview-coordinates-update",d)};
_.G.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.GT(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.G.deleteImage=function(){_.GT(this.hostElement,"ytd-backstage-image-preview-delete")};
_.G.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.G.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var d=this.generateCropPreview();d&&_.GT(this.hostElement,"ytd-backstage-image-preview-coordinates-save",d)};
_.G.getPreviewOffset=function(d,H,K){return H&&d?(K==="X"&&_.Fm("HTML_DIR")==="rtl"?300/H*d:300/H*d*-1)+"px":"0px"};
_.G.getSimpleText=function(d){return d?_.jG(d):""};
_.G.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize)return{top:this.cropOffsetTop/this.imageHeight,right:(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,bottom:(this.cropOffsetTop+this.pickerSize)/this.imageHeight,left:this.cropOffsetLeft/this.imageWidth}};
_.H3.Object.defineProperties(j6.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var d=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Vz(this.a11yConfig.imageVerticalPosition,{x_percent:""+d,y_percent:""+(100-d)})+"\n"+_.Vz(this.a11yConfig.verticalRepositionInstruction)}d=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Vz(this.a11yConfig.imageHorizontalPosition,{x_percent:""+d,y_percent:""+(100-d)})+"\n"+_.Vz(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){var d,H,K=(d=this.instruction)==null?void 0:(H=d.previewInstruction)==null?void 0:H.editButtonLabel;return K?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:K,accessibilityData:{accessibilityData:{label:this.getSimpleText(K)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c,p=this.editOnlyMode?(d=this.instruction)==null?void 0:(H=d.editInstruction)==null?void 0:H.saveImagesButtonLabel:(K=this.instruction)==null?void 0:(c=K.editInstruction)==null?void 0:c.saveButtonLabel;return p?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:p,accessibilityData:{accessibilityData:{label:this.getSimpleText(p)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var d,H,K=(d=this.instruction)==null?void 0:(H=d.previewInstruction)==null?void 0:H.deleteButtonLabel;return K?{size:"SIZE_SMALL",text:K,accessibilityData:{accessibilityData:{label:this.getSimpleText(K)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var d,H,K=(d=this.instruction)==null?void 0:(H=d.editInstruction)==null?void 0:H.cancelButtonLabel;d=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return K?{style:d,size:"SIZE_SMALL",text:K,accessibilityData:{accessibilityData:{label:this.getSimpleText(K)}}}:void 0}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.showPreviewContainer?"preview":"edit"}}});
j6.prototype.onEditOnlyModeUpdate=j6.prototype.onEditOnlyModeUpdate;j6.prototype.onImageChange=j6.prototype.onImageChange;_.t([_.r(),_.O("design:type",p_h)],j6.prototype,"imageData",void 0);_.t([_.r(),_.O("design:type",Object)],j6.prototype,"instruction",void 0);_.t([_.r(),_.O("design:type",Object)],j6.prototype,"a11yConfig",void 0);_.t([_.r(),_.O("design:type",Number)],j6.prototype,"imageWidth",void 0);_.t([_.r(),_.O("design:type",Number)],j6.prototype,"imageHeight",void 0);
_.t([_.r(),_.O("design:type",Number)],j6.prototype,"displayScale",void 0);_.t([_.r(),_.O("design:type",Object)],j6.prototype,"imageDisplayOffsetTop",void 0);_.t([_.r(),_.O("design:type",Object)],j6.prototype,"imageDisplayOffsetLeft",void 0);_.t([_.r(),_.O("design:type",Object)],j6.prototype,"pickerDisplayOffsetTop",void 0);_.t([_.r(),_.O("design:type",Object)],j6.prototype,"pickerDisplayOffsetLeft",void 0);_.t([_.r(),_.O("design:type",Object)],j6.prototype,"showPreviewContainer",void 0);
_.t([_.r(),_.O("design:type",Object)],j6.prototype,"startPicker",void 0);_.t([_.r(),_.O("design:type",Number)],j6.prototype,"pickerOffsetX",void 0);_.t([_.r(),_.O("design:type",Number)],j6.prototype,"pickerOffsetY",void 0);_.t([_.r(),_.O("design:type",Object)],j6.prototype,"repositionOptional",void 0);_.t([_.r(),_.O("design:type",Object)],j6.prototype,"editOnlyMode",void 0);_.t([_.VP("#picker-container"),_.O("design:type",HTMLElement)],j6.prototype,"JSC$15576_pickerContainer",void 0);
_.t([_.VP("#picker"),_.O("design:type",HTMLElement)],j6.prototype,"picker",void 0);_.t([_.VP("#preview-clipper"),_.O("design:type",HTMLElement)],j6.prototype,"previewClipper",void 0);_.t([_.VP("#image-in-picker-background"),_.O("design:type",HTMLImageElement)],j6.prototype,"JSC$15576_imageInBackground",void 0);_.t([_.VP("#image-in-picker"),_.O("design:type",HTMLImageElement)],j6.prototype,"JSC$15576_imageInPicker",void 0);
_.t([_.VP("#image-in-preview-clipper"),_.O("design:type",HTMLImageElement)],j6.prototype,"JSC$15576_imageInPreviewClipper",void 0);_.t([_.I("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.O("design:type",String),_.O("design:paramtypes",[])],j6.prototype,"altLabelForImage",null);_.t([_.I("imageHeight","imageWidth"),_.O("design:type",Number),_.O("design:paramtypes",[])],j6.prototype,"pickerSize",null);
_.t([_.I("imageHeight","imageWidth"),_.O("design:type",Object),_.O("design:paramtypes",[])],j6.prototype,"imageOrientationStyle",null);_.t([_.I("instruction"),_.O("design:type",Object),_.O("design:paramtypes",[])],j6.prototype,"editButton",null);_.t([_.I("instruction","editOnlyMode"),_.O("design:type",Object),_.O("design:paramtypes",[])],j6.prototype,"saveButton",null);_.t([_.I("instruction"),_.O("design:type",Object),_.O("design:paramtypes",[])],j6.prototype,"deleteButton",null);
_.t([_.I("instruction","editOnlyMode"),_.O("design:type",Object),_.O("design:paramtypes",[])],j6.prototype,"cancelButton",null);_.t([_.I("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.O("design:type",Number),_.O("design:paramtypes",[])],j6.prototype,"cropOffsetTop",null);_.t([_.I("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.O("design:type",Number),_.O("design:paramtypes",[])],j6.prototype,"cropOffsetLeft",null);
_.t([_.I("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.O("design:type",String),_.O("design:paramtypes",[])],j6.prototype,"pickerBackgroundStyle",null);_.t([_.I("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.O("design:type",String),_.O("design:paramtypes",[])],j6.prototype,"pickerDisplayStyle",null);_.t([_.I("cropOffsetLeft","cropOffsetTop"),_.O("design:type",String),_.O("design:paramtypes",[])],j6.prototype,"imageInPickerStyle",null);
_.t([_.I("cropOffsetLeft","cropOffsetTop","pickerSize"),_.O("design:type",String),_.O("design:paramtypes",[])],j6.prototype,"previewClipperStyle",null);_.t([_.Mr("imageData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],j6.prototype,"onImageChange",null);_.t([_.Mr("editOnlyMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],j6.prototype,"onEditOnlyModeUpdate",null);
_.t([_.I("showPreviewContainer"),_.O("design:type",String),_.O("design:paramtypes",[])],j6.prototype,"pickerModeStyle",null);_.t([_.Z({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],j6);
_.T(j6,"ytd-backstage-image-preview-renderer",function(){if(kDU!==void 0)return kDU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[pickerModeStyle]] style-scope ytd-backstage-image-preview-renderer">\n  <div id="preview-container" hidden="[[!showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="preview-clipper" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" style$="[[previewClipperStyle]]">\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="delete-button" data="[[deleteButton]]" on-click="deleteImage" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="edit-button" data="[[editButton]]" on-click="editCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n  <div id="edit-container" hidden="[[showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="picker-container" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" alt="[[altLabelForImage]]">\n      <div id="overlay" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope ytd-backstage-image-preview-renderer">\n      </div>\n      <div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope ytd-backstage-image-preview-renderer">\n        <img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt="">\n      </div>\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="cancel-button" data="[[cancelButton]]" on-click="cancelReposition" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="save-button" data="[[saveButton]]" on-click="saveCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope ytd-backstage-image-preview-renderer">\n</iron-a11y-keys>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return kDU=d},{mode:1});var xDB;var nu0={imageHorizontalPosition:"IMAGE_HORIZONTAL_POSITION_LABEL",imageVerticalPosition:"IMAGE_VERTICAL_POSITION_LABEL",horizontalRepositionInstruction:"REPOSITION_IMAGE_HORIZONTALLY_LABEL",verticalRepositionInstruction:"REPOSITION_IMAGE_VERTICALLY_LABEL",reachTopOfImage:"REACH_TOP_OF_IMAGE_TEXT",reachBottomOfImage:"REACH_BOTTOM_OF_IMAGE_TEXT",reachLeftOfImage:"REACH_LEFT_OF_IMAGE_TEXT",reachRightOfImage:"REACH_RIGHT_OF_IMAGE_TEXT"};var CYN;var RyN;var vh=function(){var d=_.B.apply(this,arguments)||this;d.a11yConfig=nu0;d.imageDisplayOffsetTop=0;d.imageDisplayOffsetLeft=0;d.pickerDisplayOffsetTop=0;d.pickerDisplayOffsetLeft=0;d.cropCoordinatesSaved=!1;d.previewSize=0;d.startPicker=!1;d.repositionOptional=!1;return d};
_.m(vh,_.B);_.G=vh.prototype;_.G.created=function(){_.QX.requestAvailability()};
_.G.ready=function(){};
_.G.onArrowKeysDown=function(d){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){d.detail.keyboardEvent.preventDefault();var H=0,K=0,c="";switch(d.detail.keyboardEvent.key){case "ArrowUp":GPX(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?c=this.a11yConfig.reachBottomOfImage:H=this.imageHeight*.05*-1;break;case "ArrowDown":GPX(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?c=this.a11yConfig.reachTopOfImage:
H=this.imageHeight*.05;break;case "ArrowLeft":GPX(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?c=this.a11yConfig.reachRightOfImage:K=this.imageWidth*.05*-1;break;case "ArrowRight":GPX(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?c=this.a11yConfig.reachLeftOfImage:K=this.imageWidth*.05}c&&_.Vz(c)&&_.GT(this.hostElement,"iron-announce",{text:_.Vz(c)});if(K||H)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+H)),d=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),d=_.Vz(this.a11yConfig.imageVerticalPosition,{x_percent:""+d,y_percent:""+(100-d)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+K)),d=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),d=_.Vz(this.a11yConfig.imageHorizontalPosition,{x_percent:""+d,y_percent:""+(100-d)})),d&&_.GT(this.hostElement,"iron-announce",{text:d})}};
_.G.getPreviewPosition=function(d,H,K,c){return Math.round(100*(d+H*.5-K)/c)};
_.G.displayImage=function(){var d=this.JSC$15587_pickerContainer.getBoundingClientRect().width,H=this.JSC$15587_pickerContainer.getBoundingClientRect().height,K=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),c=this.JSC$15587_imageInBackground.naturalWidth,p=this.JSC$15587_imageInBackground.naturalHeight;this.displayScale=Math.max(K/c,K/p);this.imageWidth=c*this.displayScale;this.imageHeight=p*this.displayScale;this.pickerDisplayOffsetLeft=(d-K)/2;this.pickerDisplayOffsetTop=
(H-K)/2;this.imageDisplayOffsetLeft=p>c?this.pickerDisplayOffsetLeft:(d-this.imageWidth)/2;this.imageDisplayOffsetTop=c>p?this.pickerDisplayOffsetTop:(H-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.G.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15587_imageInBackground.src=this.imageData.toString(),this.JSC$15587_imageInPicker.src=this.imageData.toString(),this.JSC$15587_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.G.getSignedPosition=function(d,H,K){return H==="X"&&_.Fm("HTML_DIR")==="rtl"?K==="-"?d+"px":d*-1+"px":K==="-"?d*-1+"px":d+"px"};
_.G.pickerMove=function(d){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var H=this.pickerOffsetX-d.clientX,K=this.pickerOffsetY-d.clientY;this.pickerOffsetX=d.clientX;this.pickerOffsetY=d.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
K)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-H))}};
_.G.pickerMoveStart=function(d){this.startPicker=!0;this.pickerOffsetX=d.clientX;this.pickerOffsetY=d.clientY};
_.G.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.G.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.GT(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.G.getPreviewOffset=function(d,H,K,c){return H&&d&&K?(c==="X"&&_.Fm("HTML_DIR")==="rtl"?K/H*d:K/H*d*-1)+"px":"0px"};
_.G.getSimpleText=function(d){return d?_.jG(d):""};
_.G.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var d=this.cropOffsetTop/this.imageHeight,H=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,K=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,c=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Gn(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.GT(this.hostElement,"yt-img-crop-coordinates-update",{top:d,right:H,bottom:K,left:c})}};
_.H3.Object.defineProperties(vh.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var d=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Vz(this.a11yConfig.imageVerticalPosition,{x_percent:""+d,y_percent:""+(100-d)})+"\n"+_.Vz(this.a11yConfig.verticalRepositionInstruction)}d=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Vz(this.a11yConfig.imageHorizontalPosition,{x_percent:""+d,y_percent:""+(100-d)})+"\n"+_.Vz(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.previewInstruction&&this.instruction.previewInstruction.editButtonLabel)return{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:this.instruction.previewInstruction.editButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.previewInstruction.editButtonLabel)}}}}},
saveButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction&&this.instruction.editInstruction.saveButtonLabel)return{style:"STYLE_PRIMARY",size:"SIZE_SMALL",text:this.instruction.editInstruction.saveButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.editInstruction.saveButtonLabel)}}}}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,this.previewSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,this.previewSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.cropCoordinatesSaved?"preview":"edit"}},
learnMore:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction)return this.instruction.editInstruction.learnMore}},
learnMoreUrl:{configurable:!0,enumerable:!0,get:function(){if(this.learnMore&&this.learnMore.runs&&this.learnMore.runs[0]){var d,H=(d=this.learnMore.runs[0])==null?void 0:d.navigationEndpoint,K;return((K=_.M(H,_.yj))==null?void 0:K.url)||void 0}}}});
vh.prototype.onImageDataChange=vh.prototype.onImageDataChange;_.t([_.r(),_.O("design:type",Object)],vh.prototype,"imageData",void 0);_.t([_.r(),_.O("design:type",Object)],vh.prototype,"instruction",void 0);_.t([_.r(),_.O("design:type",Object)],vh.prototype,"a11yConfig",void 0);_.t([_.r(),_.O("design:type",Number)],vh.prototype,"imageWidth",void 0);_.t([_.r(),_.O("design:type",Number)],vh.prototype,"imageHeight",void 0);_.t([_.r(),_.O("design:type",Number)],vh.prototype,"displayScale",void 0);
_.t([_.r(),_.O("design:type",Object)],vh.prototype,"imageDisplayOffsetTop",void 0);_.t([_.r(),_.O("design:type",Object)],vh.prototype,"imageDisplayOffsetLeft",void 0);_.t([_.r(),_.O("design:type",Object)],vh.prototype,"pickerDisplayOffsetTop",void 0);_.t([_.r(),_.O("design:type",Object)],vh.prototype,"pickerDisplayOffsetLeft",void 0);_.t([_.r(),_.O("design:type",Object)],vh.prototype,"cropCoordinatesSaved",void 0);_.t([_.r(),_.O("design:type",Object)],vh.prototype,"previewSize",void 0);
_.t([_.r(),_.O("design:type",Object)],vh.prototype,"startPicker",void 0);_.t([_.r(),_.O("design:type",Number)],vh.prototype,"pickerOffsetX",void 0);_.t([_.r(),_.O("design:type",Number)],vh.prototype,"pickerOffsetY",void 0);_.t([_.r(),_.O("design:type",Object)],vh.prototype,"repositionOptional",void 0);_.t([_.VP("#picker-container"),_.O("design:type",HTMLElement)],vh.prototype,"JSC$15587_pickerContainer",void 0);_.t([_.VP("#picker"),_.O("design:type",HTMLElement)],vh.prototype,"picker",void 0);
_.t([_.VP("#image-in-picker-background"),_.O("design:type",HTMLImageElement)],vh.prototype,"JSC$15587_imageInBackground",void 0);_.t([_.VP("#image-in-picker"),_.O("design:type",HTMLImageElement)],vh.prototype,"JSC$15587_imageInPicker",void 0);_.t([_.VP("#image-in-preview-clipper"),_.O("design:type",HTMLImageElement)],vh.prototype,"JSC$15587_imageInPreviewClipper",void 0);_.t([_.VP("#full-image-as-preview"),_.O("design:type",HTMLImageElement)],vh.prototype,"imageAsPreview",void 0);
_.t([_.I("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.O("design:type",String),_.O("design:paramtypes",[])],vh.prototype,"altLabelForImage",null);_.t([_.I("imageHeight","imageWidth"),_.O("design:type",Number),_.O("design:paramtypes",[])],vh.prototype,"pickerSize",null);_.t([_.I("imageHeight","imageWidth"),_.O("design:type",Object),_.O("design:paramtypes",[])],vh.prototype,"imageOrientationStyle",null);
_.t([_.I("instruction.previewInstruction.editButtonLabel"),_.O("design:type",Object),_.O("design:paramtypes",[])],vh.prototype,"editButton",null);_.t([_.I("instruction.editInstruction.saveButtonLabel"),_.O("design:type",Object),_.O("design:paramtypes",[])],vh.prototype,"saveButton",null);_.t([_.I("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.O("design:type",Number),_.O("design:paramtypes",[])],vh.prototype,"cropOffsetTop",null);
_.t([_.I("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.O("design:type",Number),_.O("design:paramtypes",[])],vh.prototype,"cropOffsetLeft",null);_.t([_.I("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.O("design:type",String),_.O("design:paramtypes",[])],vh.prototype,"pickerBackgroundStyle",null);_.t([_.I("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.O("design:type",String),_.O("design:paramtypes",[])],vh.prototype,"pickerDisplayStyle",null);
_.t([_.I("cropOffsetLeft","cropOffsetTop"),_.O("design:type",String),_.O("design:paramtypes",[])],vh.prototype,"imageInPickerStyle",null);_.t([_.I("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.O("design:type",String),_.O("design:paramtypes",[])],vh.prototype,"previewClipperStyle",null);_.t([_.CK("imageData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],vh.prototype,"onImageDataChange",null);
_.t([_.I("cropCoordinatesSaved"),_.O("design:type",String),_.O("design:paramtypes",[])],vh.prototype,"pickerModeStyle",null);_.t([_.I("instruction.editInstruction.learnMore"),_.O("design:type",Object),_.O("design:paramtypes",[])],vh.prototype,"learnMore",null);_.t([_.I("learnMore"),_.O("design:type",Object),_.O("design:paramtypes",[])],vh.prototype,"learnMoreUrl",null);_.t([_.ZV({is:"yt-img-crop-picker",disableElementRegistration:!0})],vh);
_.T(vh,"yt-img-crop-picker",function(){if(RyN===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-crop-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_crop_picker.yt.img.crop.picker.css.js--\x3e<div id="left-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="picker-container" class="style-scope yt-img-crop-picker"><img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" on-load="displayImage" tabindex="0" alt="[[altLabelForImage]]"><div id="overlay" hidden="[[cropCoordinatesSaved]]" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope yt-img-crop-picker"></div><div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope yt-img-crop-picker"><img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt=""></div></div><div id="preview-container" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewDetails]]"></yt-formatted-string><div id="preview-clipper" class="style-scope yt-img-crop-picker"><img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" style$="[[previewClipperStyle]]" alt="[[getSimpleText(instruction.previewInstruction.previewHeader)]]"></div><yt-button-renderer id="edit-button" data="[[editButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div></div><div id="right-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="edit-instruction" hidden="[[cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.editInstruction.header]]"></yt-formatted-string><div class="details style-scope yt-img-crop-picker"><yt-formatted-string text="[[instruction.editInstruction.details]]" class="style-scope yt-img-crop-picker"></yt-formatted-string></div><div class="details style-scope yt-img-crop-picker" id="learnmore-text"><a class="yt-simple-endpoint style-scope yt-img-crop-picker" target="_blank" href$="[[learnMoreUrl]]"><span class="style-scope yt-img-crop-picker">[[getSimpleText(learnMore)]]</span><yt-icon id="open-in-new" icon="yt-icons:open_in_new" class="style-scope yt-img-crop-picker"></yt-icon></a></div></div><yt-button-renderer id="save-button" data="[[saveButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div><div id="preview-instruction" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageDetails]]"></yt-formatted-string></div><div id="full-image-container" class="style-scope yt-img-crop-picker"><img id="full-image-as-preview" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" alt="[[getSimpleText(instruction.previewInstruction.fullImageHeader)]]"></div></div></div><iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope yt-img-crop-picker"></iron-a11y-keys>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;CYN===void 0&&(CYN=document.createElement("template"));var c=CYN;K.call(H,c.content.cloneNode(!0),d.content.firstChild);RyN=d}d=RyN;return d},{mode:2});var dO=function(){var d=_.B.apply(this,arguments)||this;d.errorMessage="";d.hasPreview=!1;d.isBackstagePost=!1;d.dismissButtonOverrides={size:"XS"};return d};
_.m(dO,_.B);_.G=dO.prototype;_.G.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},"data.selectButton":{id:"select",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G.detached=function(){this.removeOverlay()};
_.G.setPreview=function(d){_.Gn(this.hostElement).querySelector("#preview-picker").imageData=d;this.hasPreview=!0;_.GT(this.hostElement,"yt-backstage-image-select-preview")};
_.G.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var d=_.Gn(this.hostElement).querySelector("#dropzone");d.classList.remove("dragover");d.classList.remove("error");_.GT(this.hostElement,"yt-backstage-image-select-cancel")};
_.G.setupOverlay=function(){var d=this.imageUploadEndpoint;this.removeOverlay();if(d&&d.imageValidationInfo){var H=_.Gn(this.hostElement).querySelector("#dropzone"),K=_.Gn(this.hostElement).querySelector("#select");this.overlay=new v4(d.uploadUrl,d.channelId,d.imageValidationInfo.maxFileSizeMb,d.imageValidationInfo.allowedMaxAspectRatio,H,K,!0);_.Iq(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Iq(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Iq(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Iq(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Iq(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.G.removeOverlay=function(){this.overlay&&(_.Cq(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Cq(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Cq(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Cq(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Cq(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.G.onDragOver=function(d){var H=_.Gn(this.hostElement).querySelector("#dropzone");_.qr(H,"dragover",d.value)};
_.G.onPreview=function(d){this.setPreview(d.value)};
_.G.onImageError=function(d){if(d.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var H;d=(H=this.data)==null?void 0:H.fileSizeError}else if(d.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var K;d=(K=this.data)==null?void 0:K.invalidError}else if(d.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var c;d=(c=this.data)==null?void 0:c.invalidAspectRatioError}else return;this.errorMessage=_.jG(d);_.Gn(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.G.onImageAlert=function(d){this.onImageError(d)};
_.G.uploadPromise=function(){var d=this,H=this.overlay&&this.overlay.uploadPromise();if(H)return H.catch(function(){throw Error(d.data?_.jG(d.data.uploadFailureError):"");})};
_.H3.Object.defineProperties(dO.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var d,H;if((d=this.data)==null?0:(H=d.icon)==null?0:H.iconType)return _.kv(this.data.icon.iconType)}}});
dO.prototype.setupOverlay=dO.prototype.setupOverlay;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],dO.prototype,"rendererStamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],dO.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],dO.prototype,"imageUploadEndpoint",void 0);_.t([_.r(),_.O("design:type",Object)],dO.prototype,"errorMessage",void 0);
_.t([_.r(),_.O("design:type",v4)],dO.prototype,"overlay",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],dO.prototype,"hasPreview",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],dO.prototype,"isBackstagePost",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],dO.prototype,"selectionCancel",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],dO.prototype,"previewCancel",null);
_.t([_.I("data.icon.iconType"),_.O("design:type",Object),_.O("design:paramtypes",[])],dO.prototype,"icon",null);_.t([_.r(),_.O("design:type",Object)],dO.prototype,"dismissButtonOverrides",void 0);_.t([_.CK("imageUploadEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dO.prototype,"setupOverlay",null);_.t([_.Z({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],dO);
_.T(dO,"ytd-backstage-image-select-renderer",function(){if(xDB!==void 0)return xDB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dropzone" hidden="[[hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-icon id="drop-icon" icon="[[icon]]" class="style-scope ytd-backstage-image-select-renderer"></yt-icon>\n  <span id="prompt" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <div id="select" class="style-scope ytd-backstage-image-select-renderer"></div>\n  <div class="messages style-scope ytd-backstage-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-image-select-renderer">\n      [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n<div id="image-preview" hidden="[[!hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-img-crop-picker id="preview-picker" instruction="[[data.imagePreviewSelectMetadata]]" reposition-optional="true" class="style-scope ytd-backstage-image-select-renderer">\n  </yt-img-crop-picker>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return xDB=d},{mode:1});var VsC;var UDd;var HA=function(){var d=_.B.apply(this,arguments)||this;d.selected=!1;return d};
_.m(HA,_.B);_.G=HA.prototype;_.G.computeSelected=function(d){return d==null?void 0:d.selected};
_.G.computeTransform=function(d,H,K){var c,p,g=(p=(c=this.imageContainer)==null?void 0:c.getBoundingClientRect())!=null?p:{width:0,height:0};c=Math.max(g.width/H,g.height/K);K=K*c*d.top;return"translateX("+this.getSignedPosition(H*c*d.left,"X","-")+") translateY("+this.getSignedPosition(K,"Y","-")+")"};
_.G.getSignedPosition=function(d,H,K){return H==="X"&&_.Fm("HTML_DIR")==="rtl"?K==="-"?d+"px":d*-1+"px":K==="-"?d*-1+"px":d+"px"};
_.G.onClick=function(){var d;_.GT(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(d=this.data)==null?void 0:d.image)};
_.G.onKeyPress=function(d){if(d.keyCode===13)this.onClick()};
_.H3.Object.defineProperties(HA.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?void 0:(H=d.image)==null?void 0:H.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.data)!=null&&d.image){var H;d=(H=this.data)==null?void 0:H.image;return d.previewCoordinates.top!==0||d.previewCoordinates.left!==0?(H=this.computeTransform(d.previewCoordinates,d.naturalWidth,d.naturalHeight),d.naturalHeight>=d.naturalWidth?"width:inherit;transform:"+H+";":"height:inherit;transform:"+H+";"):d.naturalHeight>=d.naturalWidth?"width:inherit;":"height:inherit;"}}}});
HA.prototype.onKeyPress=HA.prototype.onKeyPress;_.t([_.VP(".image-container"),_.O("design:type",HTMLElement)],HA.prototype,"imageContainer",void 0);_.t([_.r(),_.O("design:type",Object)],HA.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.O("design:type",Object)],HA.prototype,"selected",void 0);_.t([_.I("data.image"),_.O("design:type",Object),_.O("design:paramtypes",[])],HA.prototype,"thumbnailUrl",null);
_.t([_.I("data.image","data.image.previewCoordinates"),_.O("design:type",Object),_.O("design:paramtypes",[])],HA.prototype,"thumbnailStyle",null);_.t([_.nK("keypress"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],HA.prototype,"onKeyPress",null);_.t([_.Z({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],HA);
_.T(HA,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(UDd!==void 0)return UDd;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-backstage-multi-image-thumbnail-renderer">\n  <div class="image-container style-scope ytd-backstage-multi-image-thumbnail-renderer" role="button" tabindex="0" on-click="onClick">\n    <img class="thumbnail-image style-scope ytd-backstage-multi-image-thumbnail-renderer" style$="[[thumbnailStyle]]" src$="[[thumbnailUrl]]" alt="">\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return UDd=d},{mode:2});var $a=function(d,H,K){K=K===void 0?!1:K;_.Rj.call(this);var c=this;this.dropZoneOverlay=new l$(d);this.selectOverlay=K?new eK(H,"multiple_file",["image/*"]):new eK(H,"single_file",["image/*"]);this.handler=new _.GA(this);_.q_(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(H,"click",function(){c.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.m($a,_.Rj);$a.prototype.onChange=function(d){var H;(H=d.files)!=null&&H.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:d.files}))};var Kk=function(){var d=_.B.apply(this,arguments)||this;d.addImageErrorMessage="";d.errorMessage="";d.images=[];d.selectedImageIndex=0;d.modern=_.h("web_modern_buttons");d.maxNumImagesPerPost=_.iT("max_num_images_per_post_web_ui");d.JSC$15602_imageId=0;return d};
_.m(Kk,_.B);_.G=Kk.prototype;_.G.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.GT(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.G.observeDragToReorder=function(){var d=this;if(this.showImagesPreview){var H,K=WvA(_.ps.getInstance(),(H=this.data)==null?void 0:H.dragToReorderTooltip);_.Xp.addLowPriorityJob(function(){_.l5(d.hostElement,K,d.thumbnailDragDropArea)})}};
_.G.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dataForAddImageButton:{id:"add-image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},thumbnailRenderers:{id:"thumbnail-drag-drop-area",mapping:{renderer:"ytd-backstage-multi-image-thumbnail-renderer"},events:!0,reuseComponents:!0,stamperStableList:!0}}};
_.G.computeThumbnail=function(d){return(d==null?void 0:d.localImageSrc)||void 0};
_.G.onRendererstamperFinished=function(){_.h$g(this.ytReorderableBehavior,_.Gn(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Gn(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.G.handleDrop=function(d){var H=d.currDragItem;if(H!=null&&H.data){d=this.images[this.selectedImageIndex];var K=H.data.image,c=this.images.indexOf(K)||0;H=_.s5(H.parentNode.children,H);this.images.splice(c,1);this.images.splice(H,0,K);this.images=[].concat(_.ru(this.images));this.selectedImageIndex=this.images.indexOf(d)}};
_.G.setUpImagePicker=function(){var d=this.imageUploadEndpoint;d&&d.imageValidationInfo&&(this.uploadManager=new fg(d.uploadUrl,d.channelId),this.initialPicker||(this.initialPicker=new $a(this.dropzone,this.selectLink,!0),_.Iq(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new $a(this.addImageButtonContainer,this.addImageSelectButton),_.Iq(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Iq(this.JSC$15602_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Iq(this.JSC$15602_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Iq(_.Gn(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.G.detached=function(){this.initialPicker&&(_.Cq(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Cq(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.G.onInitialSelectImages=function(d){var H=this;return _.l(function(K){return K.yield(H.onSelectImages(d,!1),0)})};
_.G.onAddImage=function(d){var H=this;return _.l(function(K){return K.yield(H.onSelectImages(d,!0),0)})};
_.G.onSelectImages=function(d,H){var K=this,c,p,g,a,e,k,C,R,V,U,L,w,W,J,F,Y,A,E,N,y;return _.l(function(v){switch(v.nextAddress){case 1:H?K.addImageErrorMessage="":(K.images=[],K.errorMessage="");c=d.detail;p=K.validateImages([].concat(_.ru(c)));if(p!=="")return H?K.addImageErrorMessage=p:K.errorMessage=p,v.return();g=[].concat(_.ru(c)).map(function(el){return(new As(K.maxAspectRatio,!1,!0)).transform(el)});
return v.yield(Promise.allSettled(g),2);case 2:a=v.yieldResult,e=_.q(a.entries()),k=e.next();case 3:if(k.done){v.jumpTo(5);break}C=k.value;R=_.q(C);V=R.next().value;U=R.next().value;L=V;w=U;if(w.status!=="fulfilled"){F=J=W=void 0;H?K.addImageErrorMessage=_.jG((W=K.data)==null?void 0:W.invalidError):K.errorMessage=K.errorMessage===""?_.jG((J=K.data)==null?void 0:J.invalidError):_.jG((F=K.data)==null?void 0:F.multiFileError);v.jumpTo(4);break}Y=w.value;Y.cropped&&_.GT(K.hostElement,"yt-backstage-multi-image-cropped");
if(Y.invalidAspectRatio){N=E=A=void 0;H?K.addImageErrorMessage=_.jG((A=K.data)==null?void 0:A.invalidAspectRatioError):K.errorMessage=K.errorMessage===""?_.jG((E=K.data)==null?void 0:E.invalidAspectRatioError):_.jG((N=K.data)==null?void 0:N.multiFileError);v.jumpTo(4);break}return v.yield(g71(K.JSC$15602_imageId,d.detail[L],Y.transformedData),8);case 8:y=v.yieldResult,K.images.push(y),K.JSC$15602_imageId++;case 4:k=e.next();v.jumpTo(3);break;case 5:if(K.errorMessage!==""||K.addImageErrorMessage!==
"")return v.return();H?i03(K.uploadManager,[K.images[K.images.length-1]]):i03(K.uploadManager,K.images);K.images=[].concat(_.ru(K.images));K.selectedImageIndex=H?Math.max(K.images.length-1,0):0;_.GT(K.hostElement,"yt-backstage-multi-image-select");_.VE(v)}})};
_.G.onThumbnailClick=function(d){if(d=d.event_.detail)this.selectedImageIndex=this.images.indexOf(d)};
_.G.validateImages=function(d){if(d.length>this.maxNumImagesPerPost){var H;return _.jG((H=this.data)==null?void 0:H.multiImageExceedMaxImageCountError)}var K=1048576*this.maxFileSizeMb;d=d.filter(function(g){return g.size>K}).length;
if(d===0)return"";var c,p;d=d>1?(c=this.data)==null?void 0:c.multiFileError:(p=this.data)==null?void 0:p.fileSizeError;return _.jG(d)};
_.G.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.ru(this.images));this.selectedImageIndex=0};
_.G.repositionImage=function(d){this.images[this.selectedImageIndex].previewCoordinates=d.event_.detail;this.images=[].concat(_.ru(this.images))};
_.G.getAllUploadStatuses=function(){var d=this,H,K,c,p;return _.l(function(g){if(g.nextAddress==1)return g.yield(d.uploadManager.getAllUploadStatuses(),2);H=g.yieldResult;K=_.q(H);for(c=K.next();!c.done;c=K.next())if(p=c.value,p.encryptedBlobId===void 0)return g.return(GD3(d.uploadManager));return g.return(H)})};
_.G.hasImages=function(){return this.images.length>0};
_.G.cancel=function(){for(var d=this.uploadManager,H=_.q(d.imagesUploadData),K=H.next();!K.done;K=H.next())d.cancel(K.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.GT(this.hostElement,"yt-backstage-multi-image-cancel")};
_.H3.Object.defineProperties(Kk.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.imageUploadEndpoint)==null?void 0:(H=d.imageValidationInfo)==null?void 0:H.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.imageUploadEndpoint)==null?void 0:(H=d.imageValidationInfo)==null?void 0:H.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var d,H;if((d=this.data)==null?0:(H=d.icon)==null?0:H.iconType)return _.kv(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.addImageButton}},
dropzoneClass:{configurable:!0,enumerable:!0,get:function(){return this.errorMessage===""?"":"error"}},
showImagesPreview:{configurable:!0,enumerable:!0,get:function(){return this.images.length>0&&this.errorMessage===""}},
containMaxImages:{configurable:!0,enumerable:!0,get:function(){return this.images.length>=this.maxNumImagesPerPost}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var d=this;return(this.images||[]).map(function(H,K){return{renderer:{image:H,selected:K===d.selectedImageIndex}}})}}});
Kk.prototype.setUpImagePicker=Kk.prototype.setUpImagePicker;Kk.prototype.onRendererstamperFinished=Kk.prototype.onRendererstamperFinished;Kk.prototype.observeDragToReorder=Kk.prototype.observeDragToReorder;Kk.prototype.observeAddImageError=Kk.prototype.observeAddImageError;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Kk.prototype,"rendererStamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.LhX),_.O("design:type",Object)],Kk.prototype,"ytReorderableBehavior",void 0);_.t([_.VP("#dropzone"),_.O("design:type",HTMLElement)],Kk.prototype,"dropzone",void 0);_.t([_.VP("#select-link"),_.O("design:type",HTMLElement)],Kk.prototype,"selectLink",void 0);_.t([_.VP("#thumbnail-drag-drop-area"),_.O("design:type",HTMLElement)],Kk.prototype,"thumbnailDragDropArea",void 0);_.t([_.VP("#add-image-button-container"),_.O("design:type",HTMLElement)],Kk.prototype,"addImageButtonContainer",void 0);
_.t([_.VP("#add-image-button"),_.O("design:type",HTMLElement)],Kk.prototype,"addImageSelectButton",void 0);_.t([_.VP("#image-preview-container"),_.O("design:type",Object)],Kk.prototype,"JSC$15602_imagePreviewContainer",void 0);_.t([_.r(),_.O("design:type",Object)],Kk.prototype,"addImageErrorMessage",void 0);_.t([_.r(),_.O("design:type",Object)],Kk.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Kk.prototype,"errorMessage",void 0);
_.t([_.r(),_.O("design:type",Object)],Kk.prototype,"imageUploadEndpoint",void 0);_.t([_.r(),_.O("design:type",Array)],Kk.prototype,"images",void 0);_.t([_.r(),_.O("design:type",$a)],Kk.prototype,"initialPicker",void 0);_.t([_.r(),_.O("design:type",$a)],Kk.prototype,"addImagePicker",void 0);_.t([_.r(),_.O("design:type",fg)],Kk.prototype,"uploadManager",void 0);_.t([_.r(),_.O("design:type",Object)],Kk.prototype,"selectedImageIndex",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Kk.prototype,"modern",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Kk.prototype,"maxNumImagesPerPost",void 0);_.t([_.I("imageUploadEndpoint"),_.O("design:type",Number),_.O("design:paramtypes",[])],Kk.prototype,"maxAspectRatio",null);_.t([_.I("imageUploadEndpoint"),_.O("design:type",Number),_.O("design:paramtypes",[])],Kk.prototype,"maxFileSizeMb",null);
_.t([_.I("data.icon.iconType"),_.O("design:type",Object),_.O("design:paramtypes",[])],Kk.prototype,"dropIcon",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Kk.prototype,"selectionCancel",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Kk.prototype,"previewCancel",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Kk.prototype,"dataForAddImageButton",null);
_.t([_.I("errorMessage"),_.O("design:type",String),_.O("design:paramtypes",[])],Kk.prototype,"dropzoneClass",null);_.t([_.I("images"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Kk.prototype,"showImagesPreview",null);_.t([_.I("images"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Kk.prototype,"containMaxImages",null);_.t([_.CK("addImageErrorMessage"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kk.prototype,"observeAddImageError",null);
_.t([_.CK("showImagesPreview"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kk.prototype,"observeDragToReorder",null);_.t([_.I("images","selectedImageIndex"),_.O("design:type",Object),_.O("design:paramtypes",[])],Kk.prototype,"selectedImageData",null);_.t([_.I("images","selectedImageIndex"),_.O("design:type",Array),_.O("design:paramtypes",[])],Kk.prototype,"thumbnailRenderers",null);
_.t([_.nK("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kk.prototype,"onRendererstamperFinished",null);_.t([_.CK("imageUploadEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kk.prototype,"setUpImagePicker",null);_.t([_.Z({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Kk);
_.T(Kk,"ytd-backstage-multi-image-select-renderer",function(){if(VsC!==void 0)return VsC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="dropzone" class$="[[dropzoneClass]] style-scope ytd-backstage-multi-image-select-renderer" hidden="[[showImagesPreview]]">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="drop-icon-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <yt-icon id="drop-icon" icon="[[dropIcon]]" class="style-scope ytd-backstage-multi-image-select-renderer"></yt-icon>\n  </div>\n  <span id="prompt" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <a id="select-link" class="style-scope ytd-backstage-multi-image-select-renderer">\n     [[getSimpleString(data.selectButton)]]\n  </a>\n  <div class="messages style-scope ytd-backstage-multi-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-multi-image-select-renderer">\n       [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-multi-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n\n\n<div id="multi-image-container" hidden="[[!showImagesPreview]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="thumbnail-images-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <div id="thumbnail-drag-drop-area" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    <div id="add-image-button-container" hidden="[[containMaxImages]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n       <div id="add-image-button" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    </div>\n  </div>\n  <div id="preview" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <ytd-backstage-image-preview-renderer id="image-preview-container" image-data="[[selectedImageData]]" instruction="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return VsC=d},{mode:1});var hyN;var LjS;var MsC;var cA=function(){var d=_.B.apply(this,arguments)||this;d.boundCaptureFocus=function(H){d.onCaptureFocus(H)};
return d};
_.m(cA,_.B);_.G=cA.prototype;_.G.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.G.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.G.onCaptureFocus=function(d){_.jh(d).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.G.getIconType=function(d){return d?"yt-icons:"+d.toLowerCase():null};
_.G.onSelect=function(){var d;if((d=this.data)==null?0:d.onSelectCommand)if(_.h("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var H;((H=_.M(this.data.onSelectCommand.commandMetadata,_.Co))==null?0:H.url)?_.GT(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.Kj().resolve(_.cb).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.H3.Object.defineProperties(cA.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.jG(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],cA.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],cA.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],cA.prototype,"data",void 0);_.t([_.VP("#item"),_.O("design:type",HTMLElement)],cA.prototype,"item",void 0);_.t([_.I("data.label"),_.O("design:type",String),_.O("design:paramtypes",[])],cA.prototype,"label",null);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],cA.prototype,"value",null);_.t([_.Z({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],cA);
_.T(cA,"ytd-privacy-dropdown-item-renderer",function(){if(MsC!==void 0)return MsC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-privacy-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" on-click="onSelect" class="style-scope ytd-privacy-dropdown-item-renderer">\n  <yt-icon id="dropdown-icon" hidden="[[!data.icon.iconType]]" icon="[[getIconType(data.icon.iconType)]]" class="style-scope ytd-privacy-dropdown-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-privacy-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item-body>\n</tp-yt-paper-item>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return MsC=d},{mode:1});var pk=function(){var d=_.B.apply(this,arguments)||this;d.value="";d.label="";d.disabled=!1;return d};
_.m(pk,_.B);_.G=pk.prototype;_.G.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.G.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.G.dataChanged=function(){this.reset()};
_.G.valueChanged=function(){var d;if(this.value&&(d=this.data)!=null&&d.entries){d=_.q(this.data.entries);for(var H=d.next();!H.done;H=d.next())if((H=this.getRendererForEntry(H.value))&&this.getItemRendererValue(H)===this.value){this.label=this.ytComponentBehavior.getSimpleString(H.label);break}}};
_.G.setInitialLabel=function(){if(this.data&&this.data.entries)for(var d=_.q(this.data.entries),H=d.next();!H.done;H=d.next())if(H=this.getRendererForEntry(H.value)){if(H.isSelected){this.label=this.ytComponentBehavior.getSimpleString(H.label);break}this.data.label&&(this.label=this.data.label)}};
_.G.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var d=_.q(this.data.entries),H=d.next();!H.done;H=d.next()){H=this.getRendererForEntry(H.value);var K=void 0;if((K=H)==null?0:K.isSelected)return this.getItemRendererValue(H)||-1}return-1};
_.G.getItemRendererValue=function(d){return"stringValue"in d||"int32Value"in d?d.stringValue||d.int32Value||null:null};
_.G.getRendererForEntry=function(d){return d.dropdownItemRenderer||d.privacyDropdownItemRenderer||d.navigationDropdownItemRenderer||null};
_.G.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("value-changed",this.value))};
_.G.updateValueFromBinding=function(d){this.value=d.detail.value};
pk.prototype.valueChangedForBinding=pk.prototype.valueChangedForBinding;pk.prototype.valueChanged=pk.prototype.valueChanged;pk.prototype.dataChanged=pk.prototype.dataChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],pk.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],pk.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],pk.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],pk.prototype,"value",void 0);_.t([_.r(),_.O("design:type",Object)],pk.prototype,"label",void 0);_.t([_.VP("#entries"),_.O("design:type",Object)],pk.prototype,"entries",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],pk.prototype,"disabled",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pk.prototype,"dataChanged",null);
_.t([_.Mr("value"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pk.prototype,"valueChanged",null);_.t([_.CK("value"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pk.prototype,"valueChangedForBinding",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],pk);
_.T(pk,"ytd-flat-dropdown-renderer",function(){if(LjS!==void 0)return LjS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return LjS=d},{mode:1});var mD7;var gO=function(){var d=_.B.apply(this,arguments)||this;d.quizOptions=[];d.explanationPlaceholderText="";d.optionPlaceholderText="";d.correctAnswerIndex=-1;d.isMarkAnswerTooltipShown=!1;d.timer=0;return d};
_.m(gO,_.B);_.G=gO.prototype;_.G.dataChanged=function(){this.optionPlaceholderText=_.jG(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.jG(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.G.onMarkCorrectAnswer=function(d){var H,K=((H=this.quizOptions[this.correctAnswerIndex])==null?void 0:H.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[d.model.index]=Object.assign({},this.quizOptions[d.model.index],{explanationText:K,isCorrect:!0});this.correctAnswerIndex=d.model.index;this.quizOptions=[].concat(_.ru(this.quizOptions))};
_.G.updatePlaceholderTexts=function(){for(var d=!1,H=[],K=0;K<this.quizOptions.length;K++){var c=this.optionPlaceholderText+" "+(K+1),p=void 0;((p=this.quizOptions[K])==null?void 0:p.placeholderText)!==c?(d=!0,H.push(Object.assign({},this.quizOptions[K],{placeholderText:c}))):H.push(this.quizOptions[K])}d&&(this.quizOptions=H);this.isValid()?_.GT(this.hostElement,"yt-commentbox-post-enable"):_.GT(this.hostElement,"yt-commentbox-post-disable")};
_.G.getSimpleString=function(d){return _.jG(d)};
_.G.createQuizOptions=function(d){var H=[],K;d=(K=d==null?void 0:d.minQuizOptions)!=null?K:0;for(K=0;K<d;K++)H.push(this.createQuizOption());return H};
_.G.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.ru(this.quizOptions),[this.createQuizOption()]))};
_.G.onInput=function(){this.quizOptions=[].concat(_.ru(this.quizOptions))};
_.G.onExplanationInput=function(){_.GT(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.G.onRemoveQuizOption=function(d){this.quizOptions.splice(d.model.index,1);d.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:d.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.ru(this.quizOptions));this.quizOptions.length===0&&_.GT(this.hostElement,"yt-quiz-attachment-dismiss")};
_.G.updateHintRenderer=function(){var d=this;clearTimeout(this.timer);this.timer=setTimeout(function(){d.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.G.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var d=0,H=0,K=_.q(this.quizOptions),c=K.next();!c.done;c=K.next()){c=c.value;var p=void 0;if(((p=c.optionText)==null?void 0:p.trim())!==""||c.isCorrect){c.isCorrect&&H++;p=void 0;if(this.hasCustomOptionText&&((p=c.optionText)==null?void 0:p.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;d++}}return d>=
Number(this.editorInfo.minQuizOptions)&&H===1};
_.G.getPostCreateOptions=function(){for(var d=[],H=_.q(this.quizOptions),K=H.next();!K.done;K=H.next()){K=K.value;var c=void 0;((c=K.optionText)==null?void 0:c.trim())!==""&&d.push({pollOption:{text:K.optionText,explanation:K.explanationText},isCorrect:K.isCorrect})}return d};
_.G.getExplanationText=function(){var d;return((d=this.quizOptions[this.correctAnswerIndex])==null?void 0:d.explanationText)||""};
_.G.maybeDisplayMarkAnswerEduToolTip=function(){var d,H,K,c,p,g,a;this.shouldShowMarkAnswerTooltip()&&((d=this.editorInfo)==null?0:(H=d.markAnswerButton)==null?0:(K=H.buttonRenderer)==null?0:(c=K.hint)==null?0:(p=c.hintRenderer)==null?0:(g=p.content)==null?0:(a=g.bubbleHintRenderer)==null?0:a.text)&&(_.ps.getInstance(),d=gy(this.editorInfo.markAnswerButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,void 0,"OPEN_POPUP_POSITION_TOP",void 0,"mark-answer-button-edu-displayed-impression"),
this.isMarkAnswerTooltipShown=!0,(d==null?void 0:d.length)>0&&this.optionSelectors&&_.CM(d[0],this.optionSelectors[0]))};
_.G.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var d=0,H=_.q(this.quizOptions),K=H.next();!K.done;K=H.next()){K=K.value;var c=void 0;((c=K.optionText)==null?void 0:c.trim())!==""&&d++;if(K.isCorrect)return!1}return d<2?!1:!0};
_.G.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.G.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.G.updateOptionTextFromBinding=function(d){if(d.target){var H=Array.from(_.Gn(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(d.target);if(H>=0){var K;this.quizOptions[H].optionText=(K=d.detail.value)!=null?K:""}}};
_.H3.Object.defineProperties(gO.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var d,H,K=(d=this.editorInfo)==null?void 0:(H=d.addOptionButton)==null?void 0:H.buttonRenderer;K&&(K.style="STYLE_SUGGESTIVE",K.size="SIZE_SMALL",K.isDisabled=!this.isAllowedToAddOption);return(K==null?0:K.text)?K:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var d,H;return this.quizOptions.length<((H=(d=this.editorInfo)==null?void 0:d.maxQuizOptions)!=null?H:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(d){var H;return(H=d.optionText)==null?void 0:H.trim()})}}});
gO.prototype.updatePlaceholderTexts=gO.prototype.updatePlaceholderTexts;gO.prototype.dataChanged=gO.prototype.dataChanged;_.t([_.r(),_.O("design:type",Object)],gO.prototype,"editorInfo",void 0);_.t([_.r(),_.O("design:type",Array)],gO.prototype,"quizOptions",void 0);_.t([_.r(),_.O("design:type",Object)],gO.prototype,"explanationPlaceholderText",void 0);_.t([_.UI(".option-selector-button"),_.O("design:type",Array)],gO.prototype,"optionSelectors",void 0);
_.t([_.Mr("editorInfo"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gO.prototype,"dataChanged",null);_.t([_.I("editorInfo","isAllowedToAddOption","quizOptions"),_.O("design:type",Object),_.O("design:paramtypes",[])],gO.prototype,"addAnswerButton",null);_.t([_.I("editorInfo","quizOptions"),_.O("design:type",Object),_.O("design:paramtypes",[])],gO.prototype,"isAllowedToAddOption",null);
_.t([_.Mr("quizOptions"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gO.prototype,"updatePlaceholderTexts",null);_.t([_.I("quizOptions"),_.O("design:type",Object),_.O("design:paramtypes",[])],gO.prototype,"hasCustomOptionText",null);_.t([_.Z({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],gO);
_.T(gO,"ytd-backstage-quiz-editor-renderer",function(){if(mD7!==void 0)return mD7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return mD7=d},{mode:2});var wTM;var PYS=(RI.FIRSTDAYOFWEEK+1)%7;var u83;var IU3=[],rld=0,WjB=0;rld=0;WjB=24;if(.25*(WjB-rld)<0)u83=[];else{for(var BXX=rld;BXX<WjB;BXX+=.25)IU3.push(BXX);u83=IU3}var zy0=u83.map(function(d){d=d*60*60;return{secondsSinceMidnight:d,text:(new DL(7)).format(new Date(0,0,0,0,0,d))}});var XTd;var iR=function(){var d=_.B.apply(this,arguments)||this;d.skipNextOpenDialog=!1;d.errorMessage="";d.previousMonthLabel=_.Vz("PREVIOUS_MONTH_LABEL");d.nextMonthLabel=_.Vz("NEXT_MONTH_LABEL");return d};
_.m(iR,_.B);_.G=iR.prototype;_.G.attached=function(){var d=this,H=new MutationObserver(function(){d.JSC$15645_calendarMain.scrollHeight>0&&(H.disconnect(),d.calendarConfig&&d.calendarConfig.selectedDate&&d.scrollToDate())});
H.observe(this.JSC$15645_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){H.disconnect()},1E3)};
_.G.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.G.onDateTextChange=function(){if(this.calendarConfig){var d=this.validateDateText();d.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(d.details)):this.textbox.setAttribute("invalid","")}};
_.G.handleDayClick=function(d){d.model.day.date&&(this.commitDate(d.model.day.date),this.dialog.close())};
_.G.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var d=Cel(this.calendarConfig.selectedDate,this.renderData);d!==void 0&&this.JSC$15645_calendarMain.scrollToIndex(d)}};
_.G.scrollToNextMonth=function(){this.JSC$15645_calendarMain.scrollToIndex(this.JSC$15645_calendarMain.firstVisibleIndex+1)};
_.G.scrollToPrevMonth=function(){this.JSC$15645_calendarMain.firstVisibleIndex===0&&this.JSC$15645_calendarMain.scrollTo(0,0);this.JSC$15645_calendarMain.scrollToIndex(this.JSC$15645_calendarMain.firstVisibleIndex-1)};
_.G.onFormSubmit=function(d){d.preventDefault();this.calendarConfig&&(d=this.validateDateText(),d.isValid&&(this.commitDate(d.details),this.dialog.close()))};
_.G.onEscOrClickingOutside=function(d){d=d.detail.path&&!!d.detail.path.length&&d.detail.path[0];if(d.classList.contains("ytd-calendar-date-picker")){d===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var H=0;H<this.dropdownButton.children.length;H++)this.dropdownButton.children[H]===d&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}d=this.textbox.value!==this.dateText;H=this.validateDateText();d&&H.isValid&&this.commitDate(H.details);this.dialog.close();this.textbox.value=
this.dateText};
_.G.commitDate=function(d){this.calendarConfig&&(this.set("calendarConfig.selectedDate",d),_.GT(this.hostElement,"ytd-calendar-date-selected",d))};
_.G.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var d=this.textbox.value;var H=new Date;d=(new F8l(2)).parse(d,H,{validate:!0})===d.length?xPY(H):void 0;if(!d)return this.errorMessage=_.Vz("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};H=this.calendarConfig.start;var K=this.calendarConfig.end;if(qJY(d,H))return this.errorMessage=_.Vz("ENTER_DATE_OR_LATER",{allowed_date:kPh(H)}),{isValid:!1,details:void 0};if(qJY(K,d))return this.errorMessage=
_.Vz("ENTER_DATE_OR_EARLIER",{allowed_date:kPh(K)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:d}};
_.H3.Object.defineProperties(iR.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?kPh(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var d=this.calendarConfig,H=[],K=0;K<7;K++)H.push(RI.NARROWWEEKDAYS[(K+PYS)%7]);K=[];for(var c=new Date(d.start.year,d.start.month);c.getFullYear()<d.end.year||c.getFullYear()===d.end.year&&c.getMonth()<=d.end.month;){var p=K,g=p.push,a=c.getFullYear(),e=c.getMonth(),k=d,C=void 0,R=[],V=Object.freeze({extraCssClass:"invisible",debugClass:""}),U=new Date(a,e),L=xPY(U);U=U.getDay();for(var w=xPY(new Date);L.month===
e;){U!==PYS&&C||(C=Array.from({length:7}).fill(V),R.push(C));var W={date:{year:a,month:e,day:L.day},extraCssClass:"",debugClass:""};k.selectedDate&&W.date&&o7M(W.date,k.selectedDate)&&(W.extraCssClass+=" selected");if(qJY(L,k.start)||qJY(k.end,L))W.extraCssClass+=" disabled";o7M(L,w)&&(W.extraCssClass+=" today");W.extraCssClass=W.extraCssClass.trim();C[(U-PYS+7)%7]=W;L=lZC(L);U=(U+1)%7}g.call(p,{weeks:R,monthLabel:RI.SHORTMONTHS[e]+" "+a,year:a,month:e,monthLabelExtraCssClass:R[0][2]===V?"shift-down-label":
""});c.setMonth(c.getMonth()+1)}return{months:K,daysOfWeekLabel:H}}}}});
iR.prototype.onEscOrClickingOutside=iR.prototype.onEscOrClickingOutside;iR.prototype.scrollToDate=iR.prototype.scrollToDate;_.t([_.r(),_.O("design:type",Object)],iR.prototype,"calendarConfig",void 0);_.t([_.r(),_.O("design:type",Object)],iR.prototype,"skipNextOpenDialog",void 0);_.t([_.r(),_.O("design:type",Object)],iR.prototype,"errorMessage",void 0);_.t([_.r(),_.O("design:type",Object)],iR.prototype,"previousMonthLabel",void 0);
_.t([_.r(),_.O("design:type",Object)],iR.prototype,"nextMonthLabel",void 0);_.t([_.VP("#textbox"),_.O("design:type",HTMLInputElement)],iR.prototype,"textbox",void 0);_.t([_.VP("#calendar-dialog"),_.O("design:type",Object)],iR.prototype,"dialog",void 0);_.t([_.VP("#calendar-main"),_.O("design:type",Object)],iR.prototype,"JSC$15645_calendarMain",void 0);_.t([_.VP("#date-picker"),_.O("design:type",HTMLElement)],iR.prototype,"dropdownButton",void 0);
_.t([_.I("calendarConfig.selectedDate"),_.O("design:type",String),_.O("design:paramtypes",[])],iR.prototype,"dateText",null);_.t([_.I("calendarConfig","calendarConfig.selectedDate"),_.O("design:type",Object),_.O("design:paramtypes",[])],iR.prototype,"renderData",null);_.t([_.CK("renderData","calendarConfig.selectedDate"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iR.prototype,"scrollToDate",null);
_.t([_.nK("iron-overlay-canceled"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],iR.prototype,"onEscOrClickingOutside",null);_.t([_.ZV({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],iR);
_.T(iR,"ytd-calendar-date-picker",function(){if(XTd!==void 0)return XTd;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return XTd=d},{mode:2});var JlC=_.Vz("UTC_OFFSET_FORMAT",{utc_offset:(new DL("Z")).format(new Date)}),siA=(new Date).getTimezoneOffset()*-60,Fjl=new Date,Z03,TX6=NR(Fjl.getTimezoneOffset());Z03=VOA(hZA(TX6,Fjl));var Qid=_.Vz("LOCAL_TIME_GMT_LABEL",{gmt_text:Z03.replace("+0","+").replace("-0","-").replace(":00","")}),GY=function(){var d=_.B.apply(this,arguments)||this;d.selectedTimeIndex=0;d.selectedTimezoneIndex=0;d.timeOfDayOptions=zy0;return d};
_.m(GY,_.B);_.G=GY.prototype;_.G.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var d=eEf();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=d,this.selectedTimeIndex=0;else{var H=n7i(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},d,{selectedDate:H.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(K){return K.secondsSinceMidnight===H.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.G.onDatePicked=function(d){this.selectedDate=d.detail};
_.G.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.GT(this.hostElement,"ytd-date-time-selection-cancelled")};
_.G.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var d=this.selectedDate;d=new Date(d.year,d.month,d.day);_.GT(this.hostElement,"ytd-date-time-selection-update",Math.floor(d.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+d.getTimezoneOffset()*60))}};
_.G.getTimezoneFormat=function(d){return d.localizedDisplayText?d.localizedDisplayText:_.Vz("TIMEZONE_FORMAT",{utc_offset_text:""+d.localizedUtcOffset,city_name:""+d.localizedName})};
_.G.updateSelectedTimeIndexFromBinding=function(d){this.selectedTimeIndex=d.detail.value};
_.G.updateSelectedTimezoneIndexFromBinding=function(d){this.selectedTimezoneIndex=d.detail.value};
_.H3.Object.defineProperties(GY.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var d=this.data.timezoneOptions;var H={name:"Etc/Unknown",localizedName:_.Vz("LOCAL_TIME_LABEL"),localizedUtcOffset:JlC,utcOffsetSec:""+siA,localizedDisplayText:Qid};d?d.length&&d[0].name!==H.name&&(d[0].localizedDisplayText||(H.localizedDisplayText=""),d.unshift(H)):d=[H];return d}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
GY.prototype.onDateTimeTimezoneChange=GY.prototype.onDateTimeTimezoneChange;GY.prototype.onDatePicked=GY.prototype.onDatePicked;GY.prototype.updateDefaultSelectedValue=GY.prototype.updateDefaultSelectedValue;_.t([_.r(),_.O("design:type",Object)],GY.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],GY.prototype,"calendarConfig",void 0);_.t([_.r(),_.O("design:type",Object)],GY.prototype,"selectedDate",void 0);_.t([_.r(),_.O("design:type",Object)],GY.prototype,"selectedTimeIndex",void 0);
_.t([_.r(),_.O("design:type",Object)],GY.prototype,"selectedTimezoneIndex",void 0);_.t([_.VP("#time-listbox"),_.O("design:type",Object)],GY.prototype,"timeListBox",void 0);_.t([_.VP("#timezone-listbox"),_.O("design:type",Object)],GY.prototype,"timezoneListBox",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],GY.prototype,"rendererStamperBehavior",void 0);_.t([_.I("data.timezoneOptions"),_.O("design:type",Object),_.O("design:paramtypes",[])],GY.prototype,"timeZones",null);
_.t([_.Mr("data","timeZones"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GY.prototype,"updateDefaultSelectedValue",null);_.t([_.I("selectedTimezoneIndex","timeZones"),_.O("design:type",Object),_.O("design:paramtypes",[])],GY.prototype,"selectedTimezone",null);_.t([_.I("selectedTimeIndex"),_.O("design:type",Object),_.O("design:paramtypes",[])],GY.prototype,"selectedTime",null);
_.t([_.nK("ytd-calendar-date-selected"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],GY.prototype,"onDatePicked",null);_.t([_.CK("selectedTimezone","selectedTime","selectedDate"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GY.prototype,"onDateTimeTimezoneChange",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],GY);
_.T(GY,"ytd-date-time-picker-renderer",function(){if(wTM!==void 0)return wTM;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return wTM=d},{mode:1});var ts6;var o_=function(){var d=_.B.apply(this,arguments)||this;d.boundOnTapDismissButton=function(){d.dismissTapHandler()};
d.dismissButtonOverrides={size:"XS"};return d};
_.m(o_,_.B);o_.prototype.configureRendererStamper=function(){return{attachmentPreview:{id:"attachment-preview",mapping:{backstageImageRenderer:"ytd-backstage-image-renderer",videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},dismissButton:{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]","on-tap":"[[boundOnTapDismissButton]]"},params:{forceModernIconButton:!0}}}}}};
o_.prototype.dismissTapHandler=function(){_.GT(this.hostElement,"yt-backstage-attachment-dismissed")};
o_.prototype.computeAttachmentType=function(d){return d?d.backstageImageRenderer?"image":d.videoRenderer?"video":"none":"none"};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],o_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],o_.prototype,"attachmentPreview",void 0);_.t([_.r(),_.O("design:type",Object)],o_.prototype,"dismissButton",void 0);_.t([_.r(),_.O("design:type",Object)],o_.prototype,"boundOnTapDismissButton",void 0);
_.t([_.r(),_.O("design:type",Object)],o_.prototype,"dismissButtonOverrides",void 0);_.t([_.r({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.O("design:type",String)],o_.prototype,"attachmentType",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],o_);
_.T(o_,"ytd-backstage-dismissable-attachment",function(){if(ts6!==void 0)return ts6;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-dismissable-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="attachment-preview-container" class="style-scope ytd-backstage-dismissable-attachment">\n  <div id="attachment-preview" class="style-scope ytd-backstage-dismissable-attachment"></div>\n  <div id="dismiss-button" class="style-scope ytd-backstage-dismissable-attachment"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ts6=d},{mode:1});var YMM;var qH=function(){var d=_.B.apply(this,arguments)||this;d.selectedVideoId=void 0;d.picker=void 0;d.dismissButtonOverrides={size:"XS"};d.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return d};
_.m(qH,_.B);_.G=qH.prototype;_.G.onServiceRequestCompleted=function(d){d.stopPropagation()};
_.G.handleAddVideoPreviewAction=function(d){d=this.get("addVideoPreviewAction",d);this.onGetVideoPreviewSuccess(d)};
_.G.configureRendererStamper=function(){return{videoPreview:{id:"video-preview",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},cancelButton:{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}}}};
_.G.onLaunchVideoPicker=function(d){var H=this,K=_.jG(this.get("addVideoLinkAction.title",d)),c=this.get("addVideoLinkAction.onePickHostId",d);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",d);c&&(this.picker||(K=_.GJU(_.JIL(c).setTitle(K).addView(cXC()).addView(K1S()),function(p){H.onPickVideo(p)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",d)||K.addView("youtube"),this.picker=K.build()),this.picker.setVisible(!0))};
_.G.onPickVideo=function(d){if(d)if(d.action==="cancel")_.GT(this.hostElement,"yt-video-link-button-cancel");else if(d.action==="picked"){d=d.docs;if(!d||d.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(d=(d==null?0:d.length)?d[0]:void 0)?d.id:void 0;this.setVideoPreview()}};
_.G.setVideoPreview=function(){var d=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){d.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.G.onGetVideoPreviewSuccess=function(d){if(d&&d.videoPreview&&d.cancelButton)this.videoPreview=d.videoPreview,this.cancelButton=d.cancelButton,_.GT(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.G.onGetVideoPreviewError=function(){this.cancel()};
_.G.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.GT(this.hostElement,"yt-video-link-cancel")};
_.G.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
qH.prototype.onServiceRequestCompleted=qH.prototype.onServiceRequestCompleted;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],qH.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],qH.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],qH.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],qH.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],qH.prototype,"videoPreview",void 0);_.t([_.r(),_.O("design:type",Object)],qH.prototype,"cancelButton",void 0);_.t([_.r(),_.O("design:type",Object)],qH.prototype,"getVideoPreviewCommand",void 0);_.t([_.r(),_.O("design:type",Object)],qH.prototype,"dismissButtonOverrides",void 0);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],qH.prototype,"onServiceRequestCompleted",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],qH);
_.T(qH,"ytd-backstage-video-link-attachment",function(){if(YMM!==void 0)return YMM;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-video-link-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview" class="style-scope ytd-backstage-video-link-attachment"></div>\n<div id="cancel-button" on-tap="cancel" class="style-scope ytd-backstage-video-link-attachment"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return YMM=d},{mode:1});var O0N;var SMg;var EuX;var a_=function(){return _.B.apply(this,arguments)||this};
_.m(a_,_.B);a_.prototype.dataChanged=function(){this.active=!1};
a_.prototype.onTap=function(){_.GT(this.hostElement,"yt-select-emoji-suggestion",this.data)};
a_.prototype.identity=function(d){return d};
_.H3.Object.defineProperties(a_.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c;if((d=this.data)==null?0:(H=d.image)==null?0:(K=H.thumbnails)==null?0:(c=K[0])==null?0:c.url)return d=this.data.image.thumbnails[0].url,d.startsWith("data:image/svg+xml")?Pe(d):_.Xa(d)}}});
a_.prototype.dataChanged=a_.prototype.dataChanged;_.t([_.r(),_.O("design:type",Object)],a_.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],a_.prototype,"active",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],a_.prototype,"dataChanged",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],a_.prototype,"imageSrc",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],a_);
_.T(a_,"ytd-emoji-suggestion",function(){if(EuX!==void 0)return EuX;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-tap="onTap" class="style-scope ytd-emoji-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[imageSrc]]" author$="[[data.author]]" class="style-scope ytd-emoji-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return EuX=d},{mode:1});var ylN=/.*([:@#].*?)$/,lR=function(){var d=_.B.apply(this,arguments)||this;d.suggestions=[];d.suggestionIndex=-1;d.JSC$15673_lastSuggestionRange=null;return d};
_.m(lR,_.B);_.G=lR.prototype;_.G.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.G.getSuggestions=function(d){var H=[],K=Mdl(this.emojiManager,d.substr(0,3));if(K)for(var c in K)if(c.toLocaleLowerCase().indexOf(d)===0){var p=K[c];if(p&&p.emojiId){p=yV(this.emojiManager,p.emojiId);var g=void 0,a=void 0,e=void 0,k=void 0,C=((g=p)==null?0:g.isCustomEmoji)?(a=p)==null?void 0:(e=a.shortcuts)==null?void 0:e[0]:(k=p)==null?void 0:k.emojiId;g=void 0;H.push({suggestion:{image:(g=p)==null?void 0:g.image,alt:C,text:c}});if(H.length>=64)break}}return H?H.sort(function(R,V){return V.suggestion.text<
R.suggestion.text?-1:V.suggestion.text===R.suggestion.text?0:1}):null};
_.G.insertSuggestion=function(d){_.GT(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15673_lastSuggestionRange,text:d.alt});this.dropdown.opened=!1};
_.G.updateSuggestionsAtCaret=function(d){this.updateSuggestions(d,this.retrieveTextBeforeRange(d))};
_.G.offsetStartOfRangeBy=function(d,H){d.startOffset>=H&&d.setStart(d.startContainer,d.startOffset-H)};
_.G.updateSuggestions=function(d,H){var K=this;this.JSC$15673_lastSuggestionRange&&(this.JSC$15673_lastSuggestionRange.detach(),this.JSC$15673_lastSuggestionRange=null);if((H=ylN.exec(H))&&H.length&&(H=H[H.length-1].toLocaleLowerCase(),H.length>2||H===":_")&&(this.offsetStartOfRangeBy(d,H.length),this.JSC$15673_lastSuggestionRange=d,(d=this.getSuggestions(H))&&d.length)){this.suggestions=d;_.vV(this,function(){K.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(d.length-1);return}this.dropdown.opened=!1};
_.G.onKeyDown=function(d){if(this.dropdown.opened)switch(d.key){case "Escape":this.dropdown.opened=!1;d.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);d.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);d.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),d.preventDefault()}};
_.G.onKeyUp=function(d,H){switch(d.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(H);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(H)}};
_.G.onKeyPress=function(d){d.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),d.preventDefault())};
_.G.changeSuggestionIndex=function(d){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(d+this.suggestions.length)%this.suggestions.length,d=this.dropdownContent.children[this.suggestionIndex],d.active=!0,this.dropdownContent.scrollTop=d.offsetTop)};
_.G.retrieveTextBeforeRange=function(d){var H=d.startContainer;return H&&H.nodeType===Node.TEXT_NODE?H.textContent.substr(0,d.startOffset):""};
lR.prototype.onKeyPress=lR.prototype.onKeyPress;lR.prototype.onKeyUp=lR.prototype.onKeyUp;lR.prototype.onKeyDown=lR.prototype.onKeyDown;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],lR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Array)],lR.prototype,"suggestions",void 0);_.t([_.r(),_.O("design:type",_.SP)],lR.prototype,"emojiManager",void 0);_.t([_.r(),_.O("design:type",Number)],lR.prototype,"verticalSuggestionsOffset",void 0);
_.t([_.VP("#dropdown"),_.O("design:type",Object)],lR.prototype,"dropdown",void 0);_.t([_.VP("#dropdown-content"),_.O("design:type",HTMLDivElement)],lR.prototype,"dropdownContent",void 0);_.t([_.nK("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[KeyboardEvent]),_.O("design:returntype")],lR.prototype,"onKeyDown",null);_.t([_.nK("keyup"),_.O("design:type",Function),_.O("design:paramtypes",[KeyboardEvent,Range]),_.O("design:returntype")],lR.prototype,"onKeyUp",null);
_.t([_.nK("keypress"),_.O("design:type",Function),_.O("design:paramtypes",[KeyboardEvent]),_.O("design:returntype")],lR.prototype,"onKeyPress",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-emoji-input"})],lR);
_.T(lR,"ytd-emoji-input",function(){if(SMg!==void 0)return SMg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<slot name="input" class="style-scope ytd-emoji-input"></slot>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-emoji-input">\n  <div id="dropdown-content" class="dropdown-content style-scope ytd-emoji-input" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return SMg=d},{mode:2});var b0M;var ex=function(){var d=_.B.apply(this,arguments)||this;d.hasMaxOptions=!1;return d};
_.m(ex,_.B);_.G=ex.prototype;_.G.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.G.setPrefilledChoices=function(d){var H=this;this.set("pollOptions",[]);var K;for(K=0;K<Math.min(d.length,this.data.maxPollOptions);K++)this.push("pollOptions",d[K].substring(0,this.data.maxPollOptionChars));for(;K<this.data.minPollOptions;K++)this.push("pollOptions","");this.hasMaxOptions=K>=this.data.maxPollOptions;_.vV(this,function(){for(var c=H.pollOptions,p=_.Gn(H.hostElement).querySelectorAll(".poll-option-input"),g=0;g<p.length;g++)p[g].value=c[g]})};
_.G.focusChanged=function(){_.eO(this.hostElement)};
_.G.onInput=function(){var d=this;_.yP(this,"onInput",function(){d.isValid()?_.GT(d.hostElement,"yt-commentbox-post-enable"):_.GT(d.hostElement,"yt-commentbox-post-disable")},300)};
_.G.setPollOptions=function(){var d=[],H,K=((H=this.data)==null?0:H.minPollOptions)?this.data.minPollOptions:0;for(H=0;H<K;H++)d.push("");return d};
_.G.addPollOption=function(){var d=this;_.GT(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.Xp.addLowPriorityJob(function(){var H;(H=_.Gn(d.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||H.focus()})};
_.G.onRemovePollOption=function(d){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.GT(this.hostElement,"yt-poll-attachment-dismiss")):(d=this.repeat.indexForElement(d.target.parentNode),d!==null&&(this.splice("pollOptions",d,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.GT(this.hostElement,"yt-commentbox-post-enable"))))};
_.G.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.G.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var d=0,H=this.pollOptions.length;d<H;d++)if(this.pollOptions[d].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.G.getPollOptions=function(){return this.pollOptions};
_.G.setPollOptionsFromInputs=function(){for(var d=_.Gn(this.hostElement).querySelectorAll(".poll-option-input"),H=0;H<d.length;H++)this.pollOptions[H]=d[H].value.trim()};
_.G.clearPollOptions=function(){var d=_.Gn(this.hostElement).querySelectorAll(".poll-option-input");d=_.q(d);for(var H=d.next();!H.done;H=d.next())H.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.G.getSimpleString=function(d){return _.jG(d)};
_.G.updateValueFromBinding=function(d){if(d.target&&this.pollOptions){var H=Array.from(_.Gn(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(d.target);if(H>=0){var K;this.pollOptions[H]=(K=d.detail.value)!=null?K:"";this.notifyPath("pollOptions."+H)}}};
ex.prototype.dataChanged=ex.prototype.dataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ex.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ex.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Array)],ex.prototype,"pollOptions",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ex.prototype,"hasMaxOptions",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],ex.prototype,"enableCreationBox",void 0);
_.t([_.VP("#repeat"),_.O("design:type",XQ)],ex.prototype,"repeat",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ex.prototype,"dataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-poll-attachment"})],ex);
_.T(ex,"ytd-poll-attachment",function(){if(b0M!==void 0)return b0M;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-poll-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="poll-options" class="style-scope ytd-poll-attachment">\n  <template is="dom-repeat" id="repeat" items="[[pollOptions]]" class="style-scope ytd-poll-attachment">\n    <div class="poll-option style-scope ytd-poll-attachment">\n      <yt-icon-button class="remove-button style-scope ytd-poll-attachment" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-poll-attachment" icon="yt-icons:close"></yt-icon>\n      </yt-icon-button>\n      <tp-yt-paper-input class="poll-option-input style-scope ytd-poll-attachment" char-counter="" maxlength$="[[data.maxPollOptionChars]]" no-label-float="" placeholder="[[getSimpleString(data.optionPlaceholderText)]]" use-v2-underline="" value="[[item]]" on-focused-changed="focusChanged" on-input="onInput" on-value-changed="updateValueFromBinding">\n      </tp-yt-paper-input>\n    </div>\n  </template>\n</div>\n<div id="add-option" hidden="[[hasMaxOptions]]" on-click="addPollOption" class="style-scope ytd-poll-attachment"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return b0M=d},{mode:2});var NX7;var DDB;var fU3;var AlB;var ka=function(){return _.B.apply(this,arguments)||this};
_.m(ka,_.B);_.H3.Object.defineProperties(ka.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ka.prototype,"rendererBehaviors",void 0);_.t([_.r(),_.O("design:type",Object)],ka.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],ka.prototype,"focused",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("focused"),_.O("design:type",Object),_.O("design:paramtypes",[])],ka.prototype,"ariaSelected",null);_.t([_.ZV({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],ka);
_.T(ka,"yt-user-mention-suggestion-renderer",function(){if(AlB===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestion_renderer.yt.user.mention.suggestion.renderer.css.js--\x3e<yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-user-mention-suggestion-renderer">\n</yt-img-shadow>\n<div id="info" class="style-scope yt-user-mention-suggestion-renderer">\n  <div id="display-name" aria-label="[[data.displayName]]" class="style-scope yt-user-mention-suggestion-renderer">[[data.displayName]]</div>\n  <yt-formatted-string id="channel-info" text="[[data.details]]" class="style-scope yt-user-mention-suggestion-renderer">\n  </yt-formatted-string>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;fU3===void 0&&(fU3=document.createElement("template"));var c=fU3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);AlB=d}d=AlB;return d},{mode:2});var jiS;var vu6;var xa=function(){var d=_.B.apply(this,arguments)||this;d.focusedSuggestionIndex=-1;return d};
_.m(xa,_.B);_.G=xa.prototype;_.G.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.G.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.G.setFocusedSuggestionIndex=function(d){!this.data||!this.data.suggestions||d<0||d>=this.data.suggestions.length||(this.focusedSuggestionIndex=d,d=this.getSuggestionId(d),this._setFocusedSuggestionId(d))};
_.G.advanceSuggestion=function(d){this.focusedSuggestionIndex===-1||d!==-1&&d!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+d),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.G.ensureSuggestionVisible=function(d){d=this.getSuggestionId(d);d=_.Gn(this.hostElement).querySelector("[id="+d+"]");d!=null&&(d.offsetTop<this.hostElement.scrollTop?d.scrollIntoView(!0):d.offsetTop+d.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&d.scrollIntoView(!1))};
_.G.getSuggestionId=function(d){return"user-mention-suggestion-"+d};
_.G.onSuggestionTap=function(d){var H=_.M(d.model.item,xwd);this.ytRendererBehavior.logExplicitClick(H);_.GT(this.hostElement,"yt-user-mention-suggestion-selected",{data:H,index:d.model.index})};
_.G.onSuggestionMouseMove=function(d){d.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(d.model.index)};
_.G.isSuggestionFocused=function(d,H){return d===H};
_.G.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.G.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("focused-suggestion-id-changed",this.focusedSuggestionId))};
xa.prototype.focusedSuggestionIdChangedForBinding=xa.prototype.focusedSuggestionIdChangedForBinding;xa.prototype.onDomChange=xa.prototype.onDomChange;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],xa.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],xa.prototype,"focusedSuggestionIndex",void 0);_.t([_.r({readOnly:!0}),_.O("design:type",String)],xa.prototype,"focusedSuggestionId",void 0);
_.t([_.nK("dom-change"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],xa.prototype,"onDomChange",null);_.t([_.CK("focusedSuggestionId"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xa.prototype,"focusedSuggestionIdChangedForBinding",null);_.t([_.ZV({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],xa);
_.T(xa,"yt-user-mention-suggestions-dropdown",function(){if(vu6===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestions-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestions_dropdown.yt.user.mention.suggestions.dropdown.css.js--\x3e\n<template is="dom-repeat" items="[[data.suggestions]]" index-as="index" notify-dom-change="" class="style-scope yt-user-mention-suggestions-dropdown">\n  <yt-user-mention-suggestion-renderer data="[[item.userMentionSuggestionRenderer]]" focused="[[isSuggestionFocused(index, focusedSuggestionIndex)]]" id$="[[getSuggestionId(index)]]" role="option" on-mousemove="onSuggestionMouseMove" on-tap="onSuggestionTap" class="style-scope yt-user-mention-suggestions-dropdown">\n  </yt-user-mention-suggestion-renderer>\n</template>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;jiS===void 0&&(jiS=document.createElement("template"));var c=jiS;K.call(H,c.content.cloneNode(!0),d.content.firstChild);vu6=d}d=vu6;return d},{mode:2});var nk=function(){var d=_.B.apply(this,arguments)||this;d.suggestionsResponse=null;d.activeMention=null;d.selectionChangeListener=d.onSelectionChange.bind(d);d.handlesEnabled=_.h("enable_handles_in_mention_suggest_posts");d.handlesInMentionSuggestionsEnabled=_.h("handles_in_mention_suggest_posts");d.zeroPrefixMentionSuggestionEnabled=_.h("enable_zero_prefix_mention_suggestion_web");d.pendingQuery=null;d.flowNonce=null;return d};
_.m(nk,_.B);_.G=nk.prototype;_.G.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.G.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.G.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.G.hasSuggestions=function(d){return!!(d&&d.suggestions&&d.suggestions.length>0)};
_.G.onInput=function(){var d=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var H=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),K=this.activeMention.JSC$11278_getText().slice(-1)===" ",c=this.activeMention.JSC$11278_getText().slice(-2,-1)===" ",p="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11278_getText().slice(-2,
-1))>=0;p=this.zeroPrefixMentionSuggestionEnabled&&p;if(this.activeMention.isCollapsed()||(H||c||p)&&K)this.cancelActiveMention();else{var g=this.activeMention.JSC$11278_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.yP(this,"requestSuggestions",function(){d.requestSuggestions(g)},100)}}}};
_.G.onServiceRequestSent=function(d){d.stopPropagation()};
_.G.onServiceRequestCompleted=function(d){d.stopPropagation();d=d.detail.data;d.query&&(!this.pendingQuery||this.pendingQuery!==d.query)||!this.zeroPrefixMentionSuggestionEnabled&&d.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=d,this.hasSuggestions(d)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.G.onServiceRequestError=function(d){d.stopPropagation()};
_.G.onUserMentionSuggestionSelected=function(d){this.selectSuggestion(d.detail.data,d.detail.index)};
_.G.onSelectionChange=function(){if(this.activeMention){var d=_.en(),H=this.activeMention.JSC$11278_containsRange(d);d=d&&this.containsHelper(this.dropdown,d.getContainer());H||d||this.cancelActiveMention()}};
_.G.containsHelper=function(d,H){var K;if(((K=window.ShadyDOM)==null?void 0:K.noPatch)===!0)return d.contains(H);for(;H;){if(H===d)return!0;H=H instanceof ShadowRoot?H.host:H.parentNode}return!1};
_.G.maybeStartSuggest=function(){var d=_.en();if(d&&d.isCollapsed()){var H=d.JSC$11278_getStartNode(),K=d.JSC$11278_getStartOffset();if(H instanceof Text&&!(K<1)){var c=H.textContent;!(c=c&&c.charAt(K-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(c)<0||(this.activeMention=_.Zh(H,K-1,d.JSC$11278_getEndNode(),d.JSC$11278_getEndOffset()),this.flowNonce=Xj(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.G.updateActiveMention=function(){if(this.activeMention){var d=_.en();d&&d.isCollapsed()&&(this.activeMention=_.Zh(this.activeMention.JSC$11278_getStartNode(),this.activeMention.JSC$11278_getStartOffset(),d.JSC$11278_getEndNode(),d.JSC$11278_getEndOffset()))}};
_.G.requestSuggestions=function(d){if(this.activeMention){var H={suggestions_query:d};this.pendingQuery=d;_.aF(this.hostElement,[this.suggestionsEndpoint,H])}};
_.G.cancelActiveMention=function(){this.activeMention&&this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STOPPED");this.suggestionsResponse=this.pendingQuery=this.activeMention=null;this.dropdown.clearFocusedSuggestion()};
_.G.focusPreviousSuggestion=function(d){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),d.preventDefault())};
_.G.focusNextSuggestion=function(d){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),d.preventDefault())};
_.G.selectFocusedSuggestion=function(d){if(this.hasSuggestions(this.suggestionsResponse)){var H=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.M(H,xwd)&&(this.selectSuggestion(_.M(H,xwd),this.dropdown.focusedSuggestionIndex),d.preventDefault())}};
_.G.selectSuggestion=function(d,H){if(d){var K=this.activeMention;if(K){var c=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&d.handle?_.Br(c,"\u00a0\u2068@"+d.handle+"\u2069\u00a0"):this.handlesEnabled?_.Br(c,"\u00a0"+d.displayName+"\u00a0"):_.Br(c,"\u00a0@"+d.displayName+"\u00a0");_.TC(c,"/channel/"+d.channelId);c.classList.add("yt-formatted-string","yt-simple-endpoint");c.setAttribute("spellcheck","false");K.isCollapsed()||K.JSC$11278_removeContents();K.insertNode(c,!0);d=
document.createTextNode(" ");c.parentNode.insertBefore(d,c.nextSibling);window.getSelection().collapse(d,1);H={suggestionSelected:{suggestionIndex:H}};if(this.zeroPrefixMentionSuggestionEnabled){var p;H.suggestionSelected.isZeroPrefix=((p=this.suggestionsResponse)==null?void 0:p.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",H);this.cancelActiveMention();_.GT(this.hostElement,"yt-mention-inserted")}}};
_.G.getPositionTarget=function(d){return d&&d.getBrowserRangeObject()};
_.G.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.G.onFocusedSuggestionIdChanged=function(d){var H=_.T$L(this.hostElement)[0];H&&(d.detail.value?H.setAttribute("aria-activedescendant",d.detail.value):H.removeAttribute("aria-activedescendant"))};
_.G.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.G.logGELEvent=function(d,H){d={eventType:d,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};H&&(d=Object.assign(d,H));_.Wd("userMentionAutoCompleteBoxEvent",d)};
nk.prototype.onDomChange=nk.prototype.onDomChange;nk.prototype.onUserMentionSuggestionSelected=nk.prototype.onUserMentionSuggestionSelected;nk.prototype.onServiceRequestError=nk.prototype.onServiceRequestError;nk.prototype.onServiceRequestCompleted=nk.prototype.onServiceRequestCompleted;nk.prototype.onServiceRequestSent=nk.prototype.onServiceRequestSent;nk.prototype.onInput=nk.prototype.onInput;_.t([_.u(_.hQ),_.O("design:type",Object)],nk.prototype,"ironA11yKeysBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],nk.prototype,"suggestionsEndpoint",void 0);_.t([_.r(),_.O("design:type",Object)],nk.prototype,"suggestionsResponse",void 0);_.t([_.r(),_.O("design:type",Object)],nk.prototype,"activeMention",void 0);_.t([_.VP("#dropdown"),_.O("design:type",Object)],nk.prototype,"dropdown",void 0);_.t([_.VP("#iron-dropdown"),_.O("design:type",Object)],nk.prototype,"ironDropdown",void 0);
_.t([_.nK("input"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],nk.prototype,"onInput",null);_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],nk.prototype,"onServiceRequestSent",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],nk.prototype,"onServiceRequestCompleted",null);
_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],nk.prototype,"onServiceRequestError",null);_.t([_.nK("yt-user-mention-suggestion-selected"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],nk.prototype,"onUserMentionSuggestionSelected",null);
_.t([_.nK("dom-change"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],nk.prototype,"onDomChange",null);_.t([_.ZV({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],nk);
_.T(nk,"yt-user-mention-autosuggest-input",function(){if(DDB===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-autosuggest-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_autosuggest_input.yt.user.mention.autosuggest.input.css.js--\x3e<slot name="input" class="style-scope yt-user-mention-autosuggest-input"></slot>\n<tp-yt-iron-dropdown id="iron-dropdown" horizontal-align="auto" no-auto-focus="" no-overlap="true" opened="[[hasSuggestions(suggestionsResponse)]]" position-target="[[getPositionTarget(activeMention)]]" on-iron-overlay-opened="onDropdownOpened" class="style-scope yt-user-mention-autosuggest-input">\n  <yt-user-mention-suggestions-dropdown id="dropdown" class="dropdown-content style-scope yt-user-mention-autosuggest-input" slot="dropdown-content" data="[[suggestionsResponse]]" role="listbox" on-focused-suggestion-id-changed="onFocusedSuggestionIdChanged">\n  </yt-user-mention-suggestions-dropdown>\n</tp-yt-iron-dropdown>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;NX7===void 0&&(NX7=document.createElement("template"));var c=NX7;K.call(H,c.content.cloneNode(!0),d.content.firstChild);DDB=d}d=DDB;return d},{mode:2});var Ck=null;
_.zn({is:"ytd-commentbox",_template:function(){if(O0N!==void 0)return O0N;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return O0N=d},
behaviors:[_.nQ5.YtHostElementBehavior,_.hQ,_.Uq.YtActionHandlerBehavior,_.S$.YtComponentBehavior,_.om.YtRendererstamperBehavior,_.O9l.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+enter meta+enter":"submitIfNotBackstagePost_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{data:{type:Object,observer:"dataChanged_"},
placeholderFormattedText_:{type:Object,computed:"computePlaceholderText_(data, addedAttachment, prefilledAttachment_)"},aadcGuidelinesState_:{type:Object,selectorArgs:["data.aadcGuidelinesStateEntityKey"],selector:function(d,H){return _.xL(d.entities,"aadcGuidelinesStateEntityPayload",H)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(d,H){return _.xL(d.entities,"commentboxStateEntity",H)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.bq}},
isEmojiButtonDisplayed:{type:Boolean,computed:"computeIsEmojiButtonDisplayed_(data)",value:!1},isEmojiPickerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},hasExternalLinksAccess_:{type:Boolean,computed:"computeHasExternalLinksAccess_(data)",value:!0},isExternalLinksBannerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},emojiInput:Object,verticalSuggestionsOffset:{type:Number,value:30},isPostCreationDialogV2:{type:Boolean,reflectToAttribute:!0,value:!1},accessRestriction:{type:String},
charCount_:{type:Number,value:0},charLimit_:{type:Number,computed:"computeCharLimit_(data)"},aboveCharLimit_:{type:Boolean,reflectToAttribute:!0,value:!1},inputEventSupported_:{type:Boolean,value:!1},textRequiresScrolling:{type:Boolean,reflectToAttribute:!0,value:!1},localStorage:Object,modern:{type:Boolean,reflectToAttribute:!0,value:_.h("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.h("kevlar_watch_grid")}},observers:["observePrefilledImage_(data.purpose, data.prefilledImageData, data.backstageAttachment)",
"observePrefilledVideo_(data.purpose, data.backstageAttachment)","observePrefilledPoll_(data.prefilledAttachment)"],listeners:{"yt-service-request-completed":"onYtServiceRequestCompleted_","yt-service-request-error":"onYtServiceRequestError_","yt-service-request-sent":"onYtServiceRequestSent_","yt-backstage-image-select-cancel":"onAttachmentDismiss_","yt-backstage-multi-image-cancel":"onAttachmentDismiss_","yt-backstage-image-select-alert":"onImageAlert_","yt-backstage-image-select-preview":"onImageSelected_",
"yt-backstage-multi-image-select":"onImagesSelected_","yt-backstage-poll-image-select":"onImagesSelected_","yt-img-crop-coordinates-update":"onImagePreviewCoordinatesUpdated_","yt-img-crop-reposition":"onImagePreviewReposition_","yt-poll-attachment-dismiss":"onAttachmentDismiss_","yt-image-poll-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-explanation-update":"onQuizExplanationUpdated_","yt-navigate":"onYtNavigate_","yt-video-link-selected":"onVideoLinkSelected_",
"yt-backstage-add-image-error":"onAddImageError_","yt-video-link-cancel":"onAttachmentDismiss_","yt-video-link-button-cancel":"onVideoLinkButtonCancel_","yt-commentbox-post-enable":"onSubmitButtonEnable_","yt-commentbox-post-disable":"onSubmitButtonDisable_","yt-backstage-attachment-dismissed":"onPrefilledContentDismissed_","yt-emoji-select":"onEmojiSelect_","yt-insert-suggestion":"onSuggestionInsert_","yt-select-emoji-suggestion":"onEmojiSuggestionClick_","ytd-date-time-selection-update":"onDateTimeSelectionUpdate_",
"ytd-date-time-selection-cancelled":"onDateTimeSelectionCancelled_","yt-mention-inserted":"onInsertMention_"},actionMap:{"yt-signal-action-ack-post-aadc-notice":"onAadcNoticeConfirm_","yt-hide-identity-chip-action":"onHideIdentityChip"},stampDom:{editAttachment_:{id:"attachment-preview",mapping:{backstageImageRenderer:"ytd-backstage-image-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isBackstageVideo:"[[isBackstagePost]]"}},playlistRenderer:{component:"ytd-playlist-renderer",
properties:{isBackstagePlaylist:"[[isBackstagePost]]"}},postMultiImageRenderer:"ytd-post-multi-image-renderer"}},"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:"ytd-flat-dropdown-renderer"}},"data.backstageAttachment":{id:"poll-preview",mapping:{pollRenderer:"ytd-backstage-poll-renderer",quizRenderer:"ytd-backstage-quiz-renderer"}},"imageUploadEndpoint_.imageEditor":{id:"image-select",mapping:{backstageImageSelectRenderer:{component:"ytd-backstage-image-select-renderer",
properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]",isBackstagePost:"[[isBackstagePost]]"}},backstageMultiImageSelectRenderer:{component:"ytd-backstage-multi-image-select-renderer",properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]"}}}},"data.emojiButton":{id:"emoji-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.emojiPicker":{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},dropdownSchedulePanel_:{id:"scheduling-panel",
mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},inlineSchedulePanel_:{id:"inline-scheduling-panel",mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},"zeroStepChannelCreationRenderer.identityChipRenderer":{id:"identity-chip",mapping:{identityChipRenderer:"ytd-identity-chip-renderer"}}},ready:function(){document.addEventListener("tap",_.xf(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(d){this.fire(d?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(d){this.set("submitButtonDisabled",void 0);this.clear();d&&this.computeIsEmojiButtonDisplayed_(d)&&(d=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&d.updateEmojiCategories()},
observePrefilledImage_:function(d,H,K){this.isValidPrefilledImage_(d,H,K)&&(this.prefilledAttachment_="image",this.prefilledImageData_=H,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(d,H){this.isValidPrefilledVideo_(d,H)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(d){d&&d.pollData&&d.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(d.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.eL();this.focus()},
detached:function(){document.removeEventListener("tap",_.xf(this,this.onTap_))},
created:function(){this.scheduledPublishTimeSec_=this.prefilledImageData_=this.imagePreviewCoordinates_=this.taggedVideoId_=this.selectedVideoId_=void 0;document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1;this.TEST_ONLY=void 0},
onEmojiButtonTap_:function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.$$("#emoji-picker > yt-emoji-picker-renderer").selected=!this.$$("#emoji-picker > yt-emoji-picker-renderer").selected},
onEmojiSelect_:function(d){d=d.detail;d=d.isCustomEmoji?d.shortcuts[0]:d.emojiId;var H=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(H,d);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var d=_.en();if(d){d=d.getBrowserRangeObject();for(var H=d.commonAncestorContainer;H;){if(H===this.getEditableTextArea_())return d;H=H.parentNode}}d=this.getEditableTextArea_();d=_.FH(d,d.childNodes.length);d.select();return d.getBrowserRangeObject()},
insertTextWithEmojis_:function(d,H,K){(H=this.emojiManager.createDocumentFragment(H,!0,!1,K===void 0?!0:K))&&H.childNodes.length!==0&&(d.collapsed||d.deleteContents(),K=H.lastChild,d.insertNode(H),_.th6(K).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var d=_.en();if(d){var H=d.JSC$11278_getStartNode(),K=d.JSC$11278_getEndNode();if(REC(H)&&REC(K)){var c=d.JSC$11278_getStartOffset(),p;if(_.aB&&H.nodeType===Node.ELEMENT_NODE&&(p=_.sC7(H)))_.FH(p,0).select();else{p=q$(H)?H:_.sY(H,q$);var g=q$(K)?K:_.sY(K,q$);if(p||g)if(d.isCollapsed()){if(H.nodeType===Node.TEXT_NODE){d=!0;c===H.length&&(d=!1);if(Ck==="end"||Ck==="right")d=!1;H=H.parentNode;d=[].concat(_.ru(H.parentNode.childNodes)).indexOf(H)+(d?0:1);_.FH(H.parentNode,
d).select()}}else p?p.previousSibling&&p.previousSibling.length>0?_.Zh(K,d.JSC$11278_getEndOffset(),p.previousSibling,p.previousSibling.length-1).select():(H=document.createTextNode("\u200b"),p.parentNode.insertBefore(H,p),_.Zh(K,d.JSC$11278_getEndOffset(),H,0).select()):g&&(g.nextSibling&&g.nextSibling.length>0?_.Zh(H,d.JSC$11278_getStartOffset(),g.nextSibling,1).select():(K=document.createTextNode("\u200b"),g.parentNode.insertBefore(K,g.nextSibling),_.Zh(H,d.JSC$11278_getStartOffset(),K,K.length).select()));
Ck=null}}else Ck=null}else Ck=null},
leftKeyPressed_:function(){Ck="left"},
rightKeyPressed_:function(){Ck="right"},
endKeyPressed_:function(){Ck="end"},
maybeDeleteChip_:function(){var d=mPY(!0);if(d){var H=_.en(),K=H.JSC$11278_getStartNode();H=H.JSC$11278_getStartOffset();_.BU(K,H,d,d.childNodes.length).select()}},
maybeBackspaceChip_:function(){var d=mPY(!1);if(d){var H=_.en(),K=H.JSC$11278_getStartNode();H=H.JSC$11278_getStartOffset();_.BU(K,H,d,0).select()}},
maybeBackspaceChipWordMode_:function(d){var H=_.en();if(H.isCollapsed()){var K=H.JSC$11278_getStartNode();H=H.JSC$11278_getStartOffset();var c=w_X(K,H,!0);c&&(_.BU(K,H,c,0).select(),document.execCommand("delete"),d.preventDefault(),d.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(d){var H=_.en();if(H.isCollapsed()){var K=H.JSC$11278_getStartNode();H=H.JSC$11278_getStartOffset();var c=w_X(K,H,!1);c&&(_.BU(K,H,c,c.childNodes.length).select(),document.execCommand("delete"),d.preventDefault(),d.stopImmediatePropagation())}},
onTap_:function(d){if(!d.defaultPrevented&&(d.currentTarget.tagName==="YTD-COMMENTBOX"&&q$(d.target)&&d.preventDefault(),this.isEmojiPickerDisplayed)){var H=this.$$("#emojis"),K=this.$$("#emoji-button"),c=this.getEditableTextArea_();if((d=d.path?d.path:d.composedPath&&d.composedPath())&&!d.includes(H)&&!d.includes(c)&&!d.includes(K))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(d,H,K){return d==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&H!==void 0&&H.encryptedBlobId!==null&&H.sourceExternalVideoId!==null&&K!==void 0&&K.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(d,H){return d==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!H&&!!H.videoRenderer&&!!H.videoRenderer.videoId},
isValidPrefilledAttachment_:function(d,H,K){return this.isValidPrefilledImage_(d,H,K)||this.isValidPrefilledVideo_(d,K)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.h("enable_multi_image_post_creation")){var d=this.$$("ytd-backstage-multi-image-select-renderer");d&&d.hasImages()&&d.cancel()}else(d=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&d.cancel();(d=this.$["poll-attachment"])&&this.hasPoll_&&d.clearPollOptions();(d=this.$["image-poll-attachment"])&&this.hasImagePoll_&&d.resetPollOptions();(d=this.$["quiz-attachment"])&&this.hasQuiz_&&d.resetQuizOptions();
(d=this.$["video-link-attachment"])&&this.hasVideo_&&d.cancel();(d=this.$["access-restrictions-selector"].firstElementChild)&&d.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.Gn(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Gn(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(d,H){d=UPF(d,this.emojiManager,H).cloneNode(!0);for(H=d.firstChild;H;)if(H.nodeType!==1)H=H.nextSibling;else switch(H.tagName){case "BR":var K=_.wv();_.S30(K,H);H=K.nextSibling;break;case "DIV":(K=H.lastChild)&&H.nextSibling&&_.rv(_.wv(),K);H.previousSibling&&(H.previousSibling.nodeType===1||H.previousSibling.nodeType===3&&!H.previousSibling.textContent.endsWith("\n"))&&_.Ip(_.wv(),H);K&&K.nodeName==="BR"&&_.nA(K);K=H;H.hasChildNodes()?(H=H.firstChild,
_.EdN(K)):(H=H.nextSibling,_.nA(K));break;default:H=H.nextSibling}return PeX(d)},
onAddImageError_:function(d){d.stopPropagation();this.errorMessage_=_.AF(d.detail)},
setTextAreaValue_:function(d){d||(d="");var H=this.getEditableFormattedString_();H.text="";this.getEditableTextArea_().innerText="";typeof d==="string"&&(d={runs:[{text:d}]});H.text=d},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Ck=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var d=this.getEditableTextArea_();d&&(_.FH(d,d.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Fm("HTML_DIR")==="rtl"){var d=this.getEditableTextArea_(),H=this.getTextAreaValue()!==""?"auto":"rtl";d.setAttribute("dir",H)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var d;return RnC((d=this.$["quiz-attachment"])==null?void 0:d.getExplanationText())||RnC(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var d=null;if(this.isEmojiButtonDisplayed){var H=this.getInputRange_();H&&(d=this.emojiInput.retrieveTextBeforeRange(H))}this.insertText_(d,!0);this.updateCharCount_();this.setSubmitButton_();d=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=d.scrollHeight>d.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var d=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:d})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount_=this.getTextLength();this.aboveCharLimit_=!!this.charLimit_&&this.charCount_>this.charLimit_},
onPaste_:function(d){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(d)},
onPasteEmoji_:function(d){d.preventDefault();d.stopImmediatePropagation();d=d.clipboardData.getData("text/plain");this.insertText_(d,!1,!1)},
insertText_:function(d,H,K){H=H===void 0?!1:H;K=K===void 0?!0:K;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&d){var c=this.getInputRange_().cloneRange();this.emojiManager&&c&&(H&&this.emojiInput.offsetStartOfRangeBy(c,d.length),this.insertTextWithEmojis_(c,d,K),VmF(this.getEditableTextArea_().lastChild)||(c=this.getInputRange_().cloneRange()),c&&(this.emojiInput.updateSuggestions(c,d),this.updateSuggestionOffset_(c)))}},
setSubmitButton_:function(){if(this.data){var d=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",H=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(d||H){var K=this.getTextAreaValue().trim();H=K===this.previousText_;K=!K||this.aboveCharLimit_;d&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(K=this.aboveCharLimit_);this.submitButtonDisabled=
H||K||!this.getTextLength();d&&_.h("enable_post_scheduling")&&(this.submitButtonDisabled=H&&!this.scheduledPublishTimeSec_||K)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.jG,computeCreationBoxClass_:function(d){return d?"focused":"not-focused"},
computeFooterMessageClass_:function(d,H){return H?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(d,H){return H?H:d},
computeFooterMessageHidden_:function(d,H){return!H&&!d},
computePlaceholderText_:function(d,H,K){return(K==="video"||K==="image")&&(d==null?0:d.prefilledPlaceholderText)?d==null?void 0:d.prefilledPlaceholderText:H==="poll"||H==="image-poll"?d==null?void 0:d.pollPostPlaceholderText:H==="quiz"?d==null?void 0:d.quizPostPlaceholderText:H==="image"?d==null?void 0:d.imagePostPlaceholderText:d==null?void 0:d.placeholderText},
computeHideAttachmentButtons_:function(d,H,K,c){return d===void 0?!1:c&&this.getSimpleString(c)===this.getSimpleString(d.rateLimitErrorMessage)?!0:H!=="none"||K!=="none"||!d.videoLinkButton&&!d.pollButton&&!d.imagePollButton&&!d.quizButton&&!d.imageButton},
computeHideDismissableAttachment_:function(d){return d!=="image"&&d!=="video"},
computeHasVideo_:function(d){return d==="video"},
computeHasImage_:function(d){return d==="image"},
computeHasPoll_:function(d){return d==="poll"},
computeHasImagePoll_:function(d){return d==="image-poll"},
computeHasQuiz_:function(d){return d==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(d){return d&&d.backstageAttachment?d.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!d.backstageAttachment.quizRenderer&&!d.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(d){if(this.isValidPrefilledAttachment_(d.purpose,d.prefilledImageData,d.backstageAttachment))return d.backstageAttachment},
computeEditAttachment_:function(d){if(this.computePrefilledContent_(d)===void 0)return d.backstageAttachment},
computeAuthorThumbnailDimension_:function(d,H){return d&&!H?24:40},
computeImageUploadEndpoint_:function(d){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",d)},
computeRateLimitErrorCommands_:function(d){var H,K;return d==null?void 0:(H=d.advancedTierFeatures)==null?void 0:(K=H.rateLimit)==null?void 0:K.rateLimitCommands},
computeIsBackstageComment_:function(d){return!(!d||d!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(d){return this.get("submitButton.buttonRenderer.serviceEndpoint",d)||this.get("replyButton.buttonRenderer.serviceEndpoint",d)||this.get("postButton.buttonRenderer.serviceEndpoint",d)},
computeSubmitButtonOverride:function(){if(_.h("web_modern_buttons")){var d,H;return{segmentedPosition:this.dropdownSchedulePanel_||!((d=this.data)==null?0:(H=d.postOptionsMenu)==null?0:H.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.h("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(d,H){d=this.get("submitButton.buttonRenderer",d)||this.get("replyButton.buttonRenderer",d)||this.get("postButton.buttonRenderer",d);H&&(d=H);d&&(d=Object.assign({},d),d.serviceEndpoint=void 0,d.isDisabled=this.submitButtonDisabled);return d},
computeHasExternalLinksAccess_:function(d){if(_.h("enable_rfa_external_links")){var H,K,c;return(c=d==null?void 0:(H=d.advancedTierFeatures)==null?void 0:(K=H.externalLinks)==null?void 0:K.allowExternalLinks)!=null?c:!0}return!0},
computeIsEmojiButtonDisplayed_:function(d){return d.emojiButton&&d.emojiPicker&&d.emojiPicker.emojiPickerRenderer&&d.emojiPicker.emojiPickerRenderer.categories?d.emojiPicker.emojiPickerRenderer.categories.find(function(H){return H.emojiPickerCategoryRenderer?H.emojiPickerCategoryRenderer.emojiIds&&H.emojiPickerCategoryRenderer.emojiIds.length>0:H.emojiPickerUpsellCategoryRenderer?H.emojiPickerUpsellCategoryRenderer.emojis&&H.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(d){return d.charLimit?d.charLimit:null},
computeDropdownSchedulingPanel_:function(d,H){if(d==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&H)return H},
computeInlineSchedulingPanel_:function(d,H){if(d==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&H)return H},
computeHideAuthorThumbnail_:function(d,H){return d||this.computeUseIdentityChip_(H)},
computeHideIdentityChipRenderer_:function(d,H){return d||!this.computeUseIdentityChip_(H)},
computeUseIdentityChip_:function(d){return!!d&&!!d.identityChipRenderer},
getSharedPostId_:function(){return this.data.backstageAttachment&&this.data.backstageAttachment.postRenderer&&this.data.backstageAttachment.postRenderer.postId?this.data.backstageAttachment.postRenderer.postId:void 0},
onYtNavigate_:function(d){var H,K,c,p;(d==null?0:(H=d.detail)==null?0:(K=H.endpoint)==null?0:K.ypcGetOffersEndpoint)||(d==null?0:(c=d.detail)==null?0:(p=c.endpoint)==null?0:p.ypcOffersEndpoint)?(d.stopPropagation(),_.aF(this,[d.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",d)&&(d.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(d){this.addedAttachment="video";this.selectedVideoId_=d.detail.videoId},
commentboxStateEntityChanged_:function(d){var H=this;(d==null?void 0:d.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(d==null?void 0:d.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){H.focus()})},
onYtServiceRequestSent_:function(d,H){if(H.actions)for(d=_.q(H.actions),H=d.next();!H.done;H=d.next())H.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(d){this.isLoading=!1;var H=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",d),K,c,p,g=d==null?void 0:(K=d.detail)==null?void 0:(c=K.data)==null?void 0:(p=c.actionResult)==null?void 0:p.commentboxStateEntityKey;if(H)this.errorMessage_=H;else if(g){var a;this.dismissData_=d==null?void 0:(a=d.detail)==null?void 0:a.data;this.commentboxStateKey_=g}else{this.clear();var e;this.fire("yt-commentbox-dismiss",d==null?void 0:(e=d.detail)==
null?void 0:e.data)}},
onYtServiceRequestError_:function(d){d.stopPropagation();this.isLoading=!1;var H,K;if(((H=this.data)==null?void 0:H.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((K=this.data)==null?void 0:K.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(H=this.get("detail.error.args",d)||[],H.length>1&&H[1].message){this.handlePostsServiceRequestError_(H[1].message);return}(d=this.get("detail.error.message",d))?this.errorMessage_=this.data.errorMessage||_.AF(d):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(d){if(_.h("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var H=_.q(this.rateLimitErrorCommands),K=H.next();!K.done;K=H.next())if(K=K.value,K.errorLabel===d){_.CM(K.command,this.hostElement);return}this.errorMessage_=_.AF(d)},
submitIfNotBackstagePost_:function(d){if(!this.isBackstagePost)this.onSubmit_(d)},
onSubmit_:function(d){var H=this,K,c,p,g,a,e,k,C,R,V,U,L,w,W,J;return _.l(function(F){switch(F.nextAddress){case 1:d.stopPropagation();if(!H.serviceEndpoint||!H.isValidInput_())return F.return();if(H.shouldShowPostAadcNotice_())return H.showPostAadcNotice_(),F.return();if(H.shouldShowCommentAadcNotice_())return H.showCommentAadcNotice_(),F.return();if(!(H.$$("ytd-backstage-multi-image-select-renderer")&&H.hasImage_&&_.h("enable_multi_image_post_creation"))){F.jumpTo(2);break}K=H.$$("ytd-backstage-multi-image-select-renderer");
return F.yield(K.getAllUploadStatuses(),3);case 3:c=F.yieldResult;if(!c)return F.return();p=_.q(c);for(g=p.next();!g.done;g=p.next())if(a=g.value,a.encryptedBlobId===void 0)return H.isLoading=!1,k=e=void 0,H.errorMessage_=(k=(e=H.imageUploadEndpoint_)==null?void 0:e.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?k:null,F.return();return F.return(H.submitForm_(void 0,void 0,void 0,void 0,K.images,H.taggedVideoId_));case 2:if(!H.hasImagePoll_||!H.$["image-poll-attachment"]){F.jumpTo(4);
break}return F.yield(H.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:C=F.yieldResult;if(!C)return F.return();R=_.q(C);for(V=R.next();!V.done;V=R.next())if(U=V.value,!U.encryptedBlobId)return H.isLoading=!1,L=void 0,H.errorMessage_=(L=H.data.errorMessage)!=null?L:null,F.return();case 4:W=(w=H.$$("ytd-backstage-image-select-renderer"))&&w.uploadPromise(),J=H.getSharedPostId_(),W?W.then(function(){H.submitForm_.apply(H,_.ru(_.sH.apply(0,arguments)))}).catch(function(Y){H.isLoading=!1;
H.errorMessage_=_.AF(Y.message)}):H.selectedVideoId_?H.submitForm_(void 0,H.selectedVideoId_):H.prefilledAttachment_==="image"?H.submitForm_(H.prefilledImageData_.encryptedBlobId,void 0,void 0,H.prefilledImageData_.sourceExternalVideoId,void 0,H.taggedVideoId_):H.prefilledAttachment_==="video"?H.submitForm_(void 0,H.data.backstageAttachment.videoRenderer.videoId):J?H.submitForm_(void 0,void 0,J):H.taggedVideoId_!==void 0?H.submitForm_(void 0,void 0,void 0,void 0,void 0,H.taggedVideoId_):H.submitForm_(),
_.VE(F)}})},
openSchedulingPanel:function(d){d&&d.scheduleButton&&d.scheduleButton.buttonRenderer&&(this.scheduleButton_=d.scheduleButton.buttonRenderer);d&&d.dateTimePicker&&this.set("data.schedulingDateTimePicker",d.dateTimePicker)},
openImagePollComponent:function(){this.addedAttachment="image-poll";this.$["image-poll-attachment"]&&this.$["image-poll-attachment"].resetPollOptions()},
openQuizComponent:function(){this.addedAttachment="quiz";this.$["quiz-attachment"]&&this.$["quiz-attachment"].resetQuizOptions()},
onCancel_:function(d){d.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(d){d.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(d){d.stopPropagation();d.detail.alertMessage&&(this.alertMessage_=d.detail.alertMessage)},
onImageSelected_:function(d){d.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(d){d.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(d){d.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(d.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(d){d.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(d){var H=this.$["video-link-attachment"];H&&H.onLaunchVideoPicker(d)},
onAttachmentDismiss_:function(d){d.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.h("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.h("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var d;if(this.addedAttachment==="image-poll"&&((d=this.$["image-poll-attachment"])==null||!d.isValid()))return!1;var H;if(this.addedAttachment==="quiz"&&((H=this.$["quiz-attachment"])==null||!H.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;d=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(d=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")d=!0;return d||!!this.getTextAreaValue().trim()},
submitForm_:function(d,H,K,c,p,g){var a=this.getTextAreaValue().trim(),e={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&a===this.previousText_&&(a=void 0);a!==void 0&&(e.comment_text=a);this.isLoading=!0;g!=void 0&&(e.tagged_video_id=g);d?(e.image_blob_id=d,this.imagePreviewCoordinates_&&(e.image_preview_coordinates=this.imagePreviewCoordinates_)):H?e.attached_video_id=H:K?e.shared_post_id=K:p&&p.length>0&&(e.images_data=p.map(function(k){return{encryptedBlobId:k.encryptedBlobId,
previewCoordinates:k.previewCoordinates}}));
c&&(e.source_video_id=c);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(e.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(e.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(e.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.h("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(e.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.h("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(e.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.aF(this,[this.serviceEndpoint,e])},
onIsInputFocusChanged_:function(d,H){d?this.fire("yt-autonav-pause-focus"):H!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(d){var H=this.getEditableTextArea_();[].concat(_.ru(d.dataTransfer.items)).forEach(function(K){K.kind==="string"&&K.type.match("^text/plain")&&K.getAsString(function(c){H.appendChild(document.createTextNode(c))})});
d.preventDefault()},
preventDefault_:function(d){d.preventDefault()},
onSuggestionInsert_:function(d){this.insertTextWithEmojis_(d.detail.range,d.detail.text)},
onEmojiSuggestionClick_:function(d){this.emojiInput.insertSuggestion(d.detail)},
computeSubmitButtonClass_:function(d,H){return!H||d?"":"with-options"},
updateSuggestionOffset_:function(d){if(this.emojiInput&&_.Gn(this.emojiInput).querySelector("#dropdown")){var H=this.getEditableTextArea_().getBoundingClientRect().bottom,K=d.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(H-K)+5;H=this.getEditableTextArea_().getBoundingClientRect().left;d=d.getBoundingClientRect().left-H;_.Gn(this.emojiInput).querySelector("#dropdown").style.marginLeft=d+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(d){if(_.h("enable_post_scheduling")&&this.data&&this.data.purpose){d=d.detail;if(Math.floor(Date.now()/1E3)>=d)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var H=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(H)||H!==d?this.scheduledPublishTimeSec_=d:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=d;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var d=["image-button","image-poll-button","poll-button"];_.h("enable_quiz_creation")&&d.push("quiz-button");_.h("auto_convert_posts_video_tag")||d.push("video-link-button");return d},
getButtonRenderer:function(d,H){if(d)switch(H){case "video-link-button":var K;return((K=d.videoLinkButton)==null?void 0:K.buttonRenderer)||void 0;case "image-button":var c;return((c=d.imageButton)==null?void 0:c.buttonRenderer)||void 0;case "poll-button":var p;return((p=d.pollButton)==null?void 0:p.buttonRenderer)||void 0;case "image-poll-button":var g;return((g=d.imagePollButton)==null?void 0:g.buttonRenderer)||void 0;case "quiz-button":var a;return((a=d.quizButton)==null?void 0:a.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var d;return(d=this.data)==null||!d.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var d,H;return!((d=this.data)==null||!d.openAadcDialog)&&!((H=this.aadcGuidelinesState_)==null||!H.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Fm("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var d;((d=this.data)==null?0:d.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.T1("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(d){d.clickTrackingParams&&_.hR().clickCommand(d);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.oF(this,"yt-close-popup-action")},
onHideIdentityChip:function(d){var H;this.set("data.placeholderText",(H=d.hideIdentityChipAction)==null?void 0:H.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var R_=function(){var d=_.B.apply(this,arguments)||this;d.isOpen=!1;d.modern=_.h("web_modern_buttons");d.roundedContainer=!0;d.dropdownButtonOverride=_.h("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;d.inPopupContainer=!1;d.isCommentboxLoading=!1;var H=["image-button","image-poll-button","poll-button"];_.h("enable_quiz_creation")&&H.push("quiz-button");_.h("auto_convert_posts_video_tag")||H.push("video-link-button");d.attachmentButtonIds=H;d.actionMap={"yt-create-comment-action":"onCreateCommentAction",
"yt-create-poll-action":"onCreatePollAction","yt-add-video-link-action":"onAddVideoLinkAction","yt-show-scheduling-panel-command":"onShowSchedulingPanelCommand","yt-create-image-poll-command":"onCreateImagePollCommand","yt-create-quiz-command":"onCreateQuizCommand"};return d};
_.m(R_,_.B);_.G=R_.prototype;_.G.computeButtonOverride=function(){var d;return((d=this.data)==null?0:d.postOptionsMenu)&&_.h("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.G.configureRendererStamper=function(){var d={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.h("auto_convert_posts_video_tag")||(d["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return d};
_.G.ready=function(){var d=this,H=_.Gn(this.hostElement).querySelector("#placeholder-area"),K=function(c){d.onOpen(c)};
H.addEventListener("tap",K);H.addEventListener("keypress",K)};
_.G.showButtonEduTooltip=function(){var d,H,K,c,p,g,a;if(_.h("enable_quiz_creation")&&((d=this.data)==null?0:(H=d.quizButton)==null?0:(K=H.buttonRenderer)==null?0:(c=K.hint)==null?0:(p=c.hintRenderer)==null?0:(g=p.content)==null?0:(a=g.bubbleHintRenderer)==null?0:a.text)&&(_.ps.getInstance(),d=gy(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(d==null?void 0:
d.length)>0)){this.ytComponentBehavior.resolveCommand(d[0],{form:{element:this.quizButton}});return}var e;if((e=this.data)==null?0:e.imagePollButtonTooltip)if(_.ps.getInstance(),e=gy(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(e==null?void 0:e.length)>0){this.ytComponentBehavior.resolveCommand(e[0],{form:{element:this.imagePollButton}});return}var k;_.h("enable_multi_image_post_creation")&&
((k=this.data)==null?0:k.multiImageButtonTooltip)&&(_.ps.getInstance(),k=gy(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(k==null?void 0:k.length)>0&&this.ytComponentBehavior.resolveCommand(k[0],{form:{element:this.imageButton}}))};
_.G.onCreatePollAction=function(d){_.M(d,RbM)&&(this.JSC$15728_commentbox.addedAttachment="poll",this.openDialog())};
_.G.onAddVideoLinkAction=function(d){if(_.M(d,kw3))this.JSC$15728_commentbox.onAddVideoLink(d)};
_.G.onShowSchedulingPanelCommand=function(d){(d=_.M(d,OVM))&&this.openSchedulingPanel(d)};
_.G.onCreateImagePollCommand=function(d){_.M(d,lg3)&&(this.JSC$15728_commentbox.openImagePollComponent(),this.openDialog())};
_.G.onCreateQuizCommand=function(d){_.M(d,eSl)&&(this.JSC$15728_commentbox.openQuizComponent(),this.openDialog())};
_.G.openSchedulingPanel=function(d){_.h("enable_post_scheduling")&&(this.openDialog(),this.JSC$15728_commentbox.openSchedulingPanel(d))};
_.G.onCreateCommentAction=function(d){this.get("createCommentAction.contents",d)&&(this.JSC$15728_commentbox.clear(),this.closeDialog())};
_.G.onOpen=function(d){d instanceof KeyboardEvent&&d.type==="keypress"&&d.keyCode!==13&&d.keyCode!==32||(this.data.prepareAccountEndpoint?_.GT(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.G.onYtCommentboxDismiss=function(){this.closeDialog()};
_.G.onYtCommentboxLoadingStart=function(d){d.stopPropagation();this.isCommentboxLoading=!0};
_.G.onYtCommentboxLoadingEnd=function(d){d.stopPropagation();this.isCommentboxLoading=!1};
_.G.onYtVideoLinkButtonCancel=function(d){d.stopPropagation();this.onOpen(d)};
_.G.onYtVideoLinkSelected=function(d){d.stopPropagation();this.onOpen(d)};
_.G.onIronSelect=function(d){d.stopPropagation();d.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=d.detail.item.value&&(this.accessRestriction?(this.accessRestriction=d.detail.item.value,this.onOpen(d)):this.accessRestriction=d.detail.item.value)};
_.G.onYtNavigate=function(d){this.get("detail.endpoint.backstageImageUploadEndpoint",d)&&(this.JSC$15728_commentbox.addedAttachment="image",this.JSC$15728_commentbox.submitButtonDisabled=!0,this.onOpen(d))};
_.G.onRequestSent=function(d){if(_.h("web_button_rework"))for(var H=_.q(d.detail),K=H.next();!K.done;K=H.next())_.M(K.value,mAg)&&(this.JSC$15728_commentbox.addedAttachment="image",this.JSC$15728_commentbox.submitButtonDisabled=!0,this.onOpen(d))};
_.G.openDialog=function(){this.JSC$15728_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15728_commentbox.focus()};
_.G.onPopupClosed=function(){_.ps.getInstance()};
_.G.computeCreationDisabled=function(d){return!!d};
_.G.computeIsCreationDialog=function(d){return!!d&&d==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.G.computeDisabledPostButton=function(d){if(!d)return null;d.isDisabled=!0;return d};
_.G.computeIsCreationDialogWithHeader=function(d){return!this.inPopupContainer&&!!d&&!!d.authorText&&d.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.G.computeIsHeaderHidden=function(d,H){return!d||H};
_.G.computeDropdownRendererClasses=function(d){return d?["text-secondary-style"]:[]};
_.G.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var d=_.Gn(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;d&&d.reset()};
R_.prototype.onPopupClosed=R_.prototype.onPopupClosed;R_.prototype.onRequestSent=R_.prototype.onRequestSent;R_.prototype.onYtNavigate=R_.prototype.onYtNavigate;R_.prototype.onIronSelect=R_.prototype.onIronSelect;R_.prototype.onYtVideoLinkSelected=R_.prototype.onYtVideoLinkSelected;R_.prototype.onYtVideoLinkButtonCancel=R_.prototype.onYtVideoLinkButtonCancel;R_.prototype.onYtCommentboxLoadingEnd=R_.prototype.onYtCommentboxLoadingEnd;R_.prototype.onYtCommentboxLoadingStart=R_.prototype.onYtCommentboxLoadingStart;
R_.prototype.onYtCommentboxDismiss=R_.prototype.onYtCommentboxDismiss;R_.prototype.showButtonEduTooltip=R_.prototype.showButtonEduTooltip;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],R_.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],R_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],R_.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],R_.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],R_.prototype,"isOpen",void 0);_.t([_.r({computed:"computeButtonOverride(data)"}),_.O("design:type",Object)],R_.prototype,"buttonOverride",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],R_.prototype,"modern",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],R_.prototype,"roundedContainer",void 0);_.t([_.r(),_.O("design:type",Object)],R_.prototype,"dropdownButtonOverride",void 0);_.t([_.r({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.O("design:type",Boolean)],R_.prototype,"creationDisabled",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],R_.prototype,"enableCreationBox",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.O("design:type",Boolean)],R_.prototype,"isCreationDialog",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],R_.prototype,"inPopupContainer",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.O("design:type",Boolean)],R_.prototype,"isCreationDialogWithHeader",void 0);_.t([_.r(),_.O("design:type",Object)],R_.prototype,"accessRestriction",void 0);
_.t([_.r({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.O("design:type",Array)],R_.prototype,"dropdownRendererClasses",void 0);_.t([_.r(),_.O("design:type",Object)],R_.prototype,"isCommentboxLoading",void 0);_.t([_.r(),_.O("design:type",Array)],R_.prototype,"attachmentButtonIds",void 0);_.t([_.VP("#image-button"),_.O("design:type",HTMLElement)],R_.prototype,"imageButton",void 0);
_.t([_.VP("#image-poll-button"),_.O("design:type",HTMLElement)],R_.prototype,"imagePollButton",void 0);_.t([_.VP("#quiz-button"),_.O("design:type",HTMLElement)],R_.prototype,"quizButton",void 0);_.t([_.VP("#commentbox"),_.O("design:type",Object)],R_.prototype,"JSC$15728_commentbox",void 0);_.t([_.CK("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],R_.prototype,"showButtonEduTooltip",null);
_.t([_.nK("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],R_.prototype,"onYtCommentboxDismiss",null);_.t([_.nK("yt-commentbox-loading-start"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],R_.prototype,"onYtCommentboxLoadingStart",null);
_.t([_.nK("yt-commentbox-loading-end"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],R_.prototype,"onYtCommentboxLoadingEnd",null);_.t([_.nK("yt-video-link-button-cancel"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],R_.prototype,"onYtVideoLinkButtonCancel",null);
_.t([_.nK("yt-video-link-selected"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],R_.prototype,"onYtVideoLinkSelected",null);_.t([_.nK("iron-select"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],R_.prototype,"onIronSelect",null);_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],R_.prototype,"onYtNavigate",null);
_.t([_.nK("yt-service-request-sent-button-renderer"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],R_.prototype,"onRequestSent",null);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],R_.prototype,"onPopupClosed",null);_.t([_.Z({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],R_);
_.T(R_,"ytd-backstage-post-dialog-renderer",function(){if(hyN!==void 0)return hyN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return hyN=d},{mode:1});var d47;var HL3;var VW=function(){return _.B.apply(this,arguments)||this};
_.m(VW,_.B);_.G=VW.prototype;_.G.computeHeartButtonStyle=function(d){return(d==null?0:d.styleType)?d.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.G.onYtButtonTap=function(){if(this.data.isEnabled){var d=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(d=this.getEndpoint(d))&&_.Kj().resolve(_.cb).resolveCommand(d,{form:{element:this.hostElement}})}else(d=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(d)};
_.G.toggle=function(d){this.set("data.isHearted",d!==void 0?d:!this.data.isHearted)};
_.G.getEndpoint=function(d){var H,K=(H=this.data)==null?void 0:H.heartEndpoint,c;H=(c=this.data)==null?void 0:c.unheartEndpoint;if(K&&H)return d?H:K};
_.G.computeButtonAccessibility=function(d,H){var K,c,p=d==null?void 0:(K=d.heartedAccessibility)==null?void 0:(c=K.accessibilityData)==null?void 0:c.label,g,a;d=d==null?void 0:(g=d.unheartedAccessibility)==null?void 0:(a=g.accessibilityData)==null?void 0:a.label;return H?p:d};
_.H3.Object.defineProperties(VW.prototype,{heartTooltip:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.data.isHearted?this.data.heartedTooltip:this.data.unheartedTooltip}},
iconFilled:{configurable:!0,enumerable:!0,get:function(){var d;return _.h("kevlar_system_icons")&&!((d=this.data)==null||!d.isHearted)}}});
VW.prototype.onYtButtonTap=VW.prototype.onYtButtonTap;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Ke),_.O("design:type",Object)],VW.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],VW.prototype,"data",void 0);_.t([_.I("data.isHearted"),_.O("design:type",Object),_.O("design:paramtypes",[])],VW.prototype,"heartTooltip",null);
_.t([_.I("data.isHearted"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],VW.prototype,"iconFilled",null);_.t([_.r({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.O("design:type",String)],VW.prototype,"buttonAccessibility",void 0);_.t([_.r({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.O("design:type",String)],VW.prototype,"heartButtonStyle",void 0);
_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],VW.prototype,"onYtButtonTap",null);_.t([_.Z({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],VW);
_.T(VW,"ytd-creator-heart-renderer",function(){if(HL3!==void 0)return HL3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-creator-heart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="creator-heart-button" disabled="[[!data.isEnabled]]" label="[[buttonAccessibility]]" class="style-scope ytd-creator-heart-renderer">\n  <template is="dom-if" if="[[data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-img-shadow id="hearted-thumbnail" thumbnail="[[data.creatorThumbnail]]" class="style-scope ytd-creator-heart-renderer"></yt-img-shadow>\n    <yt-icon id="hearted-border" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n    <yt-icon id="hearted" default-to-filled="[[iconFilled]]" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n  <template is="dom-if" if="[[!data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-icon id="unhearted" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-creator-heart-renderer">[[heartTooltip]]</tp-yt-paper-tooltip>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return HL3=d},{mode:1});var Un=function(){var d=_.B.apply(this,arguments)||this;d.hasCreatorReply=!1;d.buttonOverrides={size:"S",iconPosition:"icon-only"};d.replyButtonOverrides={size:"S",type:"text"};d.forceIconButton=!_.h("web_modern_buttons");d.modern=_.h("web_modern_buttons");d.buttonTooltipPosition="bottom";d.systemIcons=_.h("kevlar_system_icons");d.replyDialog=null;return d};
_.m(Un,_.B);_.G=Un.prototype;
_.G.configureRendererStamper=function(){return{"data.creatorHeart":{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}},replyButtonBeginning:{id:"reply-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}},replyButtonEnd:{id:"reply-button-end",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0},properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]",overrides:"[[replyButtonOverrides]]",forceIconButton:"[[forceIconButton]]"}}}},
"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]"}}}}}};
_.G.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.G.dataChange=function(){this.replyDialog&&_.Gn(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var d,H,K;this.isLiked=this.systemIcons&&!!((d=this.data)==null?0:(H=d.likeButton)==null?0:(K=H.toggleButtonRenderer)==null?0:K.isToggled)};
_.G.computeShowVoteCountBeginning=function(d,H){return d===void 0||H===void 0?!0:d.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!H&&this.ytRendererBehavior.getSimpleString(H)!=="0"};
_.G.computeShowVoteCountEnd=function(d,H){return d===void 0||H===void 0?!0:d.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!H&&this.ytRendererBehavior.getSimpleString(H)!=="0"};
_.G.computeShowCommentCount=function(d,H){return d===void 0||H===void 0?!0:d.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!H&&this.ytRendererBehavior.getSimpleString(H)!=="0"};
_.G.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.G.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.G.showReplyDialog=function(d){d&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Gn(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=d,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.G.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.G.onRequestSent=function(d){if(_.h("web_button_rework")){d=_.q(d.detail);for(var H=d.next();!H.done;H=d.next())(H=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",H.value))&&this.showReplyDialog(H)}};
_.G.onYtNavigate=function(d){var H,K;(d=(H=_.M(d.detail.endpoint,_.Phl))==null?void 0:(K=H.dialog)==null?void 0:K.commentReplyDialogRenderer)&&this.showReplyDialog(d)};
_.G.onYtServiceRequestSent=function(d,H){d.stopPropagation();if(H.actions)for(d=0;d<H.actions.length;d++){var K=_.M(H.actions[d],mWl);K&&this.handleUpdateCommentVoteAction(K)}};
_.G.handleUpdateCommentVoteAction=function(d){this.voteCount=d.voteCount||_.AF("0");d.voteStatus==="LIKE"?this.JSC$15739_ytdDislikeToggleButtonRenderer.toggle(!1):d.voteStatus==="DISLIKE"?this.JSC$15739_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15739_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15739_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.G.computeReplyButtonHidden=function(d){return d};
_.G.computeReplyButtonBeginning=function(d){return(d==null?0:d.replyButton)&&d.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?d.replyButton:void 0};
_.G.computeReplyButtonEnd=function(d){return(d==null?0:d.replyButton)&&d.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?d.replyButton:void 0};
_.G.computeActionButtonStyle=function(d){return(d==null?0:d.style)?d.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.G.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.G.onYtToggleButton=function(d){var H,K;this.isLiked=this.systemIcons&&!!((H=d.detail)==null?0:(K=H.actions)==null?0:K.like)};
Un.prototype.onYtToggleButton=Un.prototype.onYtToggleButton;Un.prototype.onButtonTooltipPositionChanged=Un.prototype.onButtonTooltipPositionChanged;Un.prototype.onYtServiceRequestSent=Un.prototype.onYtServiceRequestSent;Un.prototype.onYtNavigate=Un.prototype.onYtNavigate;Un.prototype.onRequestSent=Un.prototype.onRequestSent;Un.prototype.onYtCommentboxDismiss=Un.prototype.onYtCommentboxDismiss;Un.prototype.dataChange=Un.prototype.dataChange;
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Un.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Un.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Un.prototype,"voteCount",void 0);_.t([_.r(),_.O("design:type",Object)],Un.prototype,"commentCount",void 0);_.t([_.r(),_.O("design:type",Object)],Un.prototype,"replyThumbnail",void 0);
_.t([_.r(),_.O("design:type",Object)],Un.prototype,"hasCreatorReply",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Un.prototype,"enableCreationBox",void 0);_.t([_.r({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.O("design:type",String)],Un.prototype,"actionButtonsStyle",void 0);_.t([_.r({computed:"computeReplyButtonBeginning(data)"}),_.O("design:type",Object)],Un.prototype,"replyButtonBeginning",void 0);
_.t([_.r({computed:"computeReplyButtonEnd(data)"}),_.O("design:type",Object)],Un.prototype,"replyButtonEnd",void 0);_.t([_.r(),_.O("design:type",Object)],Un.prototype,"buttonOverrides",void 0);_.t([_.r(),_.O("design:type",Object)],Un.prototype,"replyButtonOverrides",void 0);_.t([_.r(),_.O("design:type",Object)],Un.prototype,"forceIconButton",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Un.prototype,"useCommentIcon",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Un.prototype,"modern",void 0);_.t([_.r(),_.O("design:type",Object)],Un.prototype,"buttonTooltipPosition",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Un.prototype,"systemIcons",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Un.prototype,"isLiked",void 0);_.t([_.VP("ytd-button-renderer"),_.O("design:type",Object)],Un.prototype,"ytdReplyButtonRenderer",void 0);
_.t([_.VP("#like-button"),_.O("design:type",Object)],Un.prototype,"JSC$15739_ytdLikeToggleButtonRenderer",void 0);_.t([_.VP("#dislike-button"),_.O("design:type",Object)],Un.prototype,"JSC$15739_ytdDislikeToggleButtonRenderer",void 0);_.t([_.VP("#reply-dialog"),_.O("design:type",HTMLElement)],Un.prototype,"replyDialogElement",void 0);_.t([_.VP("#reply-button"),_.O("design:type",HTMLElement)],Un.prototype,"replyButtonElement",void 0);
_.t([_.VP("#reply-button-end"),_.O("design:type",HTMLElement)],Un.prototype,"replyButtonEndElement",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Un.prototype,"dataChange",null);_.t([_.nK("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Un.prototype,"onYtCommentboxDismiss",null);
_.t([_.nK("yt-service-request-sent-button-renderer"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Un.prototype,"onRequestSent",null);_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Un.prototype,"onYtNavigate",null);
_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],Un.prototype,"onYtServiceRequestSent",null);_.t([_.CK("buttonTooltipPosition"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Un.prototype,"onButtonTooltipPositionChanged",null);
_.t([_.nK("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Un.prototype,"onYtToggleButton",null);_.t([_.Z({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],Un);
_.T(Un,"ytd-comment-action-buttons-renderer",function(){if(d47!==void 0)return d47;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-action-buttons-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-action-buttons-renderer">\n  <div id="reply-button" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <span id="vote-count-left" hidden="[[!computeShowVoteCountBeginning(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.likeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!computeShowVoteCountEnd(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.dislikeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <div id="creator-heart" class="style-scope ytd-comment-action-buttons-renderer"></div>\n  <div id="share-button" hidden="[[!data.shareButton]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <div id="reply-button-end" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  \n  <span id="comment-count" hidden="[[!computeShowCommentCount(data, commentCount)]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(commentCount)]]\n  </span>\n</div>\n<div id="reply-dialog" class="style-scope ytd-comment-action-buttons-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return d47=d},{mode:1});var $4U;var hq=function(){return _.B.apply(this,arguments)||this};
_.m(hq,_.B);hq.prototype.focus=function(){_.Gn(this.hostElement).querySelector("#commentbox").focus()};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],hq.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],hq.prototype,"zeroStepChannelCreationRenderer",void 0);_.t([_.Z({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],hq);
_.T(hq,"ytd-comment-dialog-renderer",function(){if($4U!==void 0)return $4U;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" zero-step-channel-creation-renderer="[[zeroStepChannelCreationRenderer]]" class="style-scope ytd-comment-dialog-renderer">\n</ytd-commentbox>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return $4U=d},{mode:1});var KyA;var Lk=function(){var d=_.B.apply(this,arguments)||this;d.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.h("enable_web_delhi_icons")};d.replyButtonOverrides={size:"S",type:"text"};return d};
_.m(Lk,_.B);_.G=Lk.prototype;_.G.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.G.detached=function(){this.replyBox&&this.replyBox.remove()};
_.G.showReplyDialog=function(d){if(d){var H=this.replyBox;H||(H=document.createElement("ytd-comment-reply-dialog-renderer"),H.id="replybox",_.Gn(this.replyDialogDiv).appendChild(H));H.data=d;this.replyDialogDiv.hidden=!1;H.openDialog()}};
_.G.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.G.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var d,H=_.M((d=this.toolbarSurface)==null?void 0:d.subscribersOnlyDisclaimerSnackbarCommand,_.ZX);H&&_.GT(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:H})}};
_.G.onYtServiceRequestSent=function(d,H){d.stopPropagation();if(H.actions)for(var K=0;K<H.actions.length;K++){var c=_.M(H.actions[K],mWl);c?this.handleUpdateCommentVoteAction(c):d.target===this.heartButton&&this.toggleHeartState()}};
_.G.handleUpdateCommentVoteAction=function(d){var H;(H=this.toolbarState)!=null&&H.key&&this.ytdReduxBehavior.dispatch(_.BK("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:d.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":d.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.G.toggleHeartState=function(){var d;(d=this.toolbarState)!=null&&d.key&&this.ytdReduxBehavior.dispatch(_.BK("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.H3.Object.defineProperties(Lk.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return(((d=this.toolbarState)==null?void 0:d.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(H=this.toolbarData)==null?void 0:H.likeCountLiked:(K=this.toolbarData)==null?void 0:K.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.toolbarSurface)==null?void 0:d.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.toolbarSurface)==null?void 0:d.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.toolbarSurface)==null?void 0:d.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.toolbarSurface)==null?void 0:d.prepareAccountCommand)!==void 0&&!_.h("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var d,H=_.M((d=this.toolbarSurface)==null?void 0:d.prepareAccountCommand,_.ZX),K,c,p,g,a,e,k,C,R;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((K=this.toolbarSharedData)==null||!K.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((c=this.toolbarState)==null?void 0:c.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:H!=null?H:_.M((p=this.toolbarSurface)==null?void 0:p.likeCommand,_.ZX),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:H!=null?H:_.M((g=this.toolbarSurface)==null?void 0:g.unlikeCommand,_.ZX),defaultCommand:this.isVisiblyDisabled?_.M((a=this.toolbarSurface)==null?void 0:a.commentDisabledActionCommand,_.ZX):void 0,defaultTooltip:(e=this.toolbarData)==null?void 0:e.likeInactiveTooltip,toggledTooltip:(k=this.toolbarData)==null?void 0:k.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(C=this.toolbarData)==null?void 0:C.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(R=this.toolbarSharedData)==null?void 0:R.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var d,H=_.M((d=this.toolbarSurface)==null?void 0:d.prepareAccountCommand,_.ZX),K,c,p,g,a,e,k,C,R,V;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((K=this.toolbarSharedData)==null||!K.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((c=this.toolbarState)==null?void 0:c.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:H!=null?H:_.M((p=this.toolbarSurface)==null?void 0:p.dislikeCommand,_.ZX),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:H!=null?H:_.M((g=this.toolbarSurface)==null?void 0:g.undislikeCommand,_.ZX),defaultCommand:this.isVisiblyDisabled?_.M((a=this.toolbarSurface)==null?void 0:a.commentDisabledActionCommand,_.ZX):void 0,defaultTooltip:(e=this.toolbarData)==null?void 0:e.dislikeInactiveTooltip,toggledTooltip:(k=this.toolbarData)==null?void 0:
k.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(C=this.toolbarSharedData)==null?void 0:C.dislikeReplyButtonA11y:(R=this.toolbarSharedData)==null?void 0:R.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(V=this.toolbarSharedData)==null?void 0:V.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var d,H,K;if(((d=this.toolbarState)==null?void 0:d.heartState)!==void 0&&((H=this.toolbarState)==null?void 0:H.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((K=this.toolbarState)==null?void 0:K.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var c,p,g,a,e,k,C,R,V,U,L,w,W,J;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(c=this.toolbarData)==null?void 0:c.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((p=this.toolbarState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((g=this.toolbarState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((a=this.toolbarState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((e=this.toolbarState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.M((k=this.toolbarSurface)==null?void 0:k.heartCommand,
_.ZX),unheartEndpoint:this.isVisiblyDisabled?void 0:_.M((C=this.toolbarSurface)==null?void 0:C.unheartCommand,_.ZX),disabledEndpoint:this.isVisiblyDisabled?_.M((R=this.toolbarSurface)==null?void 0:R.commentDisabledActionCommand,_.ZX):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(V=this.toolbarData)==null?void 0:V.heartActiveTooltip,unheartedTooltip:(U=this.toolbarData)==null?void 0:U.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((L=
this.toolbarState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(w=this.toolbarSharedData)==null?void 0:w.unheartButtonA11y:(W=this.toolbarSharedData)==null?void 0:W.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(J=this.toolbarSharedData)==null?void 0:J.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.toolbarSurface)==null||!d.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(d=this.commentStrings)==null?void 0:d.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.M((H=this.toolbarSurface)==null?void 0:H.replyCommand,_.ZX),command:this.isVisiblyDisabled?_.M((K=this.toolbarSurface)==null?
void 0:K.commentDisabledActionCommand,_.ZX):this.isSubsOnlyCommentsIneligibleUser?_.M((c=this.toolbarSurface)==null?void 0:c.subscribersOnlySnackbarCommand,_.ZX):void 0}}}});
Lk.prototype.onYtServiceRequestSent=Lk.prototype.onYtServiceRequestSent;Lk.prototype.hideReplyDialogDiv=Lk.prototype.hideReplyDialogDiv;_.t([_.r(),_.O("design:type",Object)],Lk.prototype,"commentStrings",void 0);_.t([_.r(),_.O("design:type",Boolean)],Lk.prototype,"isReply",void 0);_.t([_.r(),_.O("design:type",Object)],Lk.prototype,"toolbarData",void 0);_.t([_.r(),_.O("design:type",Object)],Lk.prototype,"toolbarSharedData",void 0);
_.t([_.r(),_.O("design:type",String)],Lk.prototype,"toolbarStateKey",void 0);_.t([_.r(),_.O("design:type",String)],Lk.prototype,"toolbarSurfaceKey",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Lk.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Lk.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Lk.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.Ke),_.O("design:type",Object)],Lk.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.VP("#reply-dialog"),_.O("design:type",HTMLElement)],Lk.prototype,"replyDialogDiv",void 0);_.t([_.VP("#replybox"),_.O("design:type",Object)],Lk.prototype,"replyBox",void 0);_.t([_.VP("ytd-creator-heart-renderer"),_.O("design:type",Object)],Lk.prototype,"heartButton",void 0);_.t([_.r({selector:function(d,H){return _.xL(d.entities,"engagementToolbarStateEntityPayload",H)},
selectorArgs:["toolbarStateKey"]}),_.O("design:type",Object)],Lk.prototype,"toolbarState",void 0);_.t([_.r({selector:Q7Y,selectorArgs:["toolbarSurfaceKey"]}),_.O("design:type",Object)],Lk.prototype,"toolbarSurface",void 0);_.t([_.r(),_.O("design:type",Object)],Lk.prototype,"buttonOverrides",void 0);_.t([_.nK("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lk.prototype,"hideReplyDialogDiv",null);
_.t([_.I("toolbarData","toolbarState"),_.O("design:type",String),_.O("design:paramtypes",[])],Lk.prototype,"likeCount",null);_.t([_.I("likeCount"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lk.prototype,"showLikeCount",null);_.t([_.I("toolbarSurface"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lk.prototype,"isVisiblyDisabled",null);_.t([_.I("toolbarSurface"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lk.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.t([_.I("toolbarSurface"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lk.prototype,"isSubsOnlyCommentsEligibleUser",null);_.t([_.I("toolbarSurface"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lk.prototype,"hasPrepareAccountCommand",null);_.t([_.I("toolbarData","toolbarState","toolbarSurface"),_.O("design:type",Object),_.O("design:paramtypes",[])],Lk.prototype,"likeToggleButtonRenderer",null);
_.t([_.I("isReply","toolbarData","toolbarState","toolbarSurface"),_.O("design:type",Object),_.O("design:paramtypes",[])],Lk.prototype,"dislikeToggleButtonRenderer",null);_.t([_.I("toolbarData","toolbarState","toolbarSurface"),_.O("design:type",Object),_.O("design:paramtypes",[])],Lk.prototype,"creatorHeartSupportedRenderer",null);_.t([_.I("toolbarSurface"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lk.prototype,"hasReplyCommand",null);
_.t([_.I("toolbarSurface","commentStrings","isVisiblyDisabled"),_.O("design:type",Object),_.O("design:paramtypes",[])],Lk.prototype,"replyButtonRenderer",null);_.t([_.r(),_.O("design:type",Object)],Lk.prototype,"replyButtonOverrides",void 0);_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],Lk.prototype,"onYtServiceRequestSent",null);_.t([_.Z({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Lk);
_.T(Lk,"ytd-comment-engagement-bar",function(){if(KyA!==void 0)return KyA;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return KyA=d},{mode:1});var cK6;var MH=function(){return _.B.apply(this,arguments)||this};
_.m(MH,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],MH.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],MH.prototype,"data",void 0);_.t([_.Z({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],MH);
_.T(MH,"ytd-comment-inline-thumbnail-renderer",function(){if(cK6!==void 0)return cK6;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-inline-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-comment-inline-thumbnail-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumbnail-container style-scope ytd-comment-inline-thumbnail-renderer" hidden="[[!data.thumbnail]]">\n    <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]" class="style-scope ytd-comment-inline-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</a>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return cK6=d},{mode:1});var pYB;var m3=function(){return _.B.apply(this,arguments)||this};
_.m(m3,_.B);m3.prototype.onMessageTap=function(){if(this.onTapCommand){var d=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);d&&this.ytdOpenPopupBehavior.openPopup(d)}};
_.H3.Object.defineProperties(m3.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return(d=this.data)==null?void 0:(H=d.button)==null?void 0:(K=H.buttonRenderer)==null?void 0:K.command}}});
_.t([_.u(_.Ke),_.O("design:type",Object)],m3.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],m3.prototype,"data",void 0);_.t([_.I("data.button.buttonRenderer.command"),_.O("design:type",Object),_.O("design:paramtypes",[])],m3.prototype,"onTapCommand",null);_.t([_.Z({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],m3);
_.T(m3,"ytd-comment-pause-composer-renderer",function(){if(pYB!==void 0)return pYB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return pYB=d},{mode:1});var g_7;var iLM;var wO=function(){var d=_.B.apply(this,arguments)||this;d.isOpen=!1;return d};
_.m(wO,_.B);_.G=wO.prototype;_.G.dataChanged=function(){this.isOpen=!1};
_.G.onTap=function(){this.data&&(this.data.navigationEndpoint?_.GT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.G.focus=function(){this.JSC$15769_commentbox.focus()};
_.G.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.G.openDialog=function(){this.isOpen=!0;this.JSC$15769_commentbox.focus();this.JSC$15769_commentbox.maybeHeightChanged()};
wO.prototype.onYtCommentboxDismiss=wO.prototype.onYtCommentboxDismiss;wO.prototype.dataChanged=wO.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],wO.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],wO.prototype,"isOpen",void 0);_.t([_.VP("#commentbox"),_.O("design:type",Object)],wO.prototype,"JSC$15769_commentbox",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],wO.prototype,"dataChanged",null);_.t([_.nK("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],wO.prototype,"onYtCommentboxDismiss",null);_.t([_.Z({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],wO);
_.T(wO,"ytd-comment-reply-dialog-renderer",function(){if(iLM!==void 0)return iLM;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-reply-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-reply="" class="style-scope ytd-comment-reply-dialog-renderer">\n</ytd-commentbox>\n<div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-comment-reply-dialog-renderer">\n  <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-reply-dialog-renderer">\n  </yt-img-shadow>\n  <div id="placeholder-area" on-tap="onTap" on-keydown="onTap" class="style-scope ytd-comment-reply-dialog-renderer">\n    <yt-formatted-string id="placeholder-text" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-reply-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return iLM=d},{mode:1});var GfS;var PA=function(){return _.B.apply(this,arguments)||this};
_.m(PA,_.B);_.H3.Object.defineProperties(PA.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var d,H,K=(d=this.data)==null?void 0:(H=d.icon)==null?void 0:H.iconType;return K?"yt-icons:"+K.toLowerCase():null}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],PA.prototype,"data",void 0);_.t([_.r(),_.I("data.icon"),_.O("design:type",Object),_.O("design:paramtypes",[])],PA.prototype,"icon",null);_.t([_.Z({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],PA);
_.T(PA,"ytd-pinned-comment-badge-renderer",function(){if(GfS!==void 0)return GfS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pinned-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon hidden="[[!icon]]" icon="[[icon]]" size="12" class="style-scope ytd-pinned-comment-badge-renderer"></yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-pinned-comment-badge-renderer"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return GfS=d},{mode:1});var o_7;var qCA={},a63={input:!0,meta:!0,br:!0,link:!0,img:!0},uR=null;qCA.YtSharedTooltipBehavior={properties:{sharedTooltipPosition:{type:String,value:"bottom"},sharedTooltipAnimationDelay:{type:Number,value:500}},attached:function(){this.hostElement.addEventListener("mouseover",this.onMouseOver_,!0)},
detached:function(){this.hostElement.removeEventListener("mouseover",this.onMouseOver_,!0)},
createTooltipIfRequired_:function(){uR==null&&(uR=document.createElement("tp-yt-paper-tooltip"),uR.offset=8,uR.fitToVisibleBounds=!0)},
onMouseOver_:function(d){if(d=_.sY(d.target,function(p){return p==this||p.getAttribute&&p.getAttribute("shared-tooltip-text")}.bind(this),!0)){var H=d.getAttribute("shared-tooltip-text");
if(H){var K=this,c=null;d!=this&&(d.tagName.toLowerCase()in a63?K=d.parentElement:K=d,d.id&&(c=d.id));this.polymerController.createTooltipIfRequired_();if(uR.parentElement!=K||uR.for!=c)(0,_.ls)(uR).textContent=H,_.Gn(K).appendChild(uR),uR.for=c,uR.animationDelay=this.polymerController.sharedTooltipAnimationDelay,uR.position=this.polymerController.sharedTooltipPosition}}}};var I_=function(){return _.B.apply(this,arguments)||this};
_.m(I_,_.B);I_.prototype.configureRendererStamper=function(){return{"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]",sharedTooltipText:"[[data.tooltip]]"}}}},data:{id:"custom-badge",mapping:{customBadge:{component:"yt-img-shadow",properties:{thumbnail:"[[data.customBadge]]",sharedTooltipText:"[[data.tooltip]]"}}}}}};
I_.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var d;((d=this.data)==null?0:d.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
I_.prototype.colorChanged=function(){var d,H,K,c=(d=this.data)==null?void 0:(H=d.color)==null?void 0:(K=H.basicColorPaletteData)==null?void 0:K.foregroundBodyColor;c&&(this.rgbBadgeColor=_.Yi(c));_.Gn(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
I_.prototype.tooltipChanged=function(){var d;((d=this.data)==null?0:d.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
I_.prototype.tooltipChanged=I_.prototype.tooltipChanged;I_.prototype.colorChanged=I_.prototype.colorChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],I_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(qCA.YtSharedTooltipBehavior),_.O("design:type",Object)],I_.prototype,"ytSharedTooltipBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],I_.prototype,"data",void 0);
_.t([_.r({value:"#4285F4"}),_.O("design:type",String)],I_.prototype,"rgbBadgeColor",void 0);_.t([_.CK("data.color"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],I_.prototype,"colorChanged",null);_.t([_.CK("data.tooltip"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],I_.prototype,"tooltipChanged",null);_.t([_.Z({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],I_);
_.T(I_,"ytd-sponsor-comment-badge-renderer",function(){if(o_7!==void 0)return o_7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsor-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n<div id="custom-badge" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return o_7=d},{mode:1});var l6C;var eVS;var rO=function(){return _.B.apply(this,arguments)||this};
_.m(rO,_.B);rO.prototype.computeState=function(d){switch(d==null?void 0:d.stateIdentifier){case "TRI_STATE_IDENTIFIER_UNTOGGLED_STATE":return"untoggled";case "TRI_STATE_IDENTIFIER_TOGGLING_STATE":return"toggling";case "TRI_STATE_IDENTIFIER_TOGGLED_STATE":return"toggled";default:return"unknown"}};
rO.prototype.updateStateIdentifier=function(d){if(this.viewModel.triStateKey){var H=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.BK("triStateButtonStateEntityPayload",H,{key:H,stateIdentifier:d}))}};
rO.prototype.onClick=function(){var d=this;if(this.data)switch(this.ytRendererBehavior.logExplicitClick(this.data),this.state){case "toggled":this.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE");break;case "untoggled":this.viewModel.transitionCommand?(this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLING_STATE"),this.ytComponentBehavior.resolveCommand(this.viewModel.transitionCommand,{commandController:{onSuccess:function(){d.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){d.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.H3.Object.defineProperties(rO.prototype,{data:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case "untoggled":return this.viewModel.untoggledStateData;case "toggling":return this.viewModel.togglingStateData;case "toggled":return this.viewModel.toggledStateData}}},
buttonText:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.buttonText)||""}}});
_.t([_.r(),_.O("design:type",Object)],rO.prototype,"viewModel",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],rO.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],rO.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],rO.prototype,"ytRendererBehavior",void 0);_.t([_.r({selector:trE,selectorArgs:["viewModel.triStateKey"]}),_.O("design:type",Object)],rO.prototype,"triStateButtonStateEntity",void 0);
_.t([_.r({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.O("design:type",String)],rO.prototype,"state",void 0);_.t([_.I("viewModel","state"),_.O("design:type",Object),_.O("design:paramtypes",[])],rO.prototype,"data",null);_.t([_.I("data"),_.O("design:type",String),_.O("design:paramtypes",[])],rO.prototype,"buttonText",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],rO);
_.T(rO,"ytd-tri-state-button-view-model",function(){if(eVS!==void 0)return eVS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tri-state-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button noink="" on-click="onClick" class="style-scope ytd-tri-state-button-view-model">\n  [[buttonText]]\n</tp-yt-paper-button>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return eVS=d},{mode:1});var kf3;var x4l;var WA=function(){var d=_.B.apply(this,arguments)||this;d.defaultIconToFilled=!_.h("kevlar_fill_comment_chip_icon_killswitch");return d};
_.m(WA,_.B);WA.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
WA.prototype.dataChanged=function(){if(this.data){var d,H;((d=this.data.chipColorPalette)==null?0:d.backgroundColor)&&((H=this.data.chipColorPalette)==null?0:H.foregroundTitleColor)&&_.eO(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Ob(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Ob(this.data.chipColorPalette.foregroundTitleColor)});var K;((K=this.data)==null?0:K.command)?(_.eO(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.eO(this.hostElement,{"--yt-pdg-comment-chip-cursor":"initial"}),this.hostElement.removeAttribute("role"),this.hostElement.removeAttribute("tabindex"));this.basePriceText=this.data.chipText;this.chipIcon=this.data.chipIcon}};
WA.prototype.onTap=function(){var d;if(this.data&&(d=this.data)!=null&&d.command){var H;this.ytComponentBehavior.resolveCommand((H=this.data)==null?void 0:H.command)}};
WA.prototype.getIconSize=function(){return _.h("kevlar_fill_comment_chip_icon_killswitch")?24:12};
WA.prototype.onTap=WA.prototype.onTap;WA.prototype.dataChanged=WA.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],WA.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],WA.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.hQ),_.O("design:type",Object)],WA.prototype,"ironA11yKeysBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],WA.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Object)],WA.prototype,"basePriceText",void 0);_.t([_.r(),_.O("design:type",Object)],WA.prototype,"chipIcon",void 0);_.t([_.r(),_.O("design:type",Object)],WA.prototype,"defaultIconToFilled",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WA.prototype,"dataChanged",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WA.prototype,"onTap",null);
_.t([_.ZV({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],WA);
_.T(WA,"yt-pdg-comment-chip-renderer",function(){if(x4l===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-comment-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.pdg.yt_pdg_comment_chip_renderer.yt.pdg.comment.chip.renderer.css.js--\x3e<div id="comment-chip-container" class="style-scope yt-pdg-comment-chip-renderer"><yt-icon default-to-filled="[[defaultIconToFilled]]" icon="[[chipIcon.iconType]]" size="[[getIconSize()]]" class="style-scope yt-pdg-comment-chip-renderer"></yt-icon><span id="comment-chip-price" class="style-scope yt-pdg-comment-chip-renderer"> [[getSimpleString(basePriceText)]] </span></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;kf3===void 0&&(kf3=document.createElement("template"));var c=kf3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);x4l=d}d=x4l;return d},{mode:2});var BA=function(){var d=_.B.apply(this,arguments)||this;d.useSmallAvatars=_.h("small_avatars_for_comments");d.webWatchCompactComments=_.h("web_watch_compact_comments");d.editDialog=null;return d};
_.m(BA,_.B);_.G=BA.prototype;_.G.onShow=function(){_.Zi("cmv",void 0,"wn_comments")};
_.G.configureRendererStamper=function(){return{authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},linkedCommentBadge:{id:"linked-comment-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[linkedCommentBadge]]"}}}},pinnedCommentBadge:{id:"pinned-comment-badge",mapping:{renderer:"ytd-pinned-comment-badge-renderer"}},sponsorCommentBadge:{id:"sponsor-comment-badge",mapping:{renderer:"ytd-sponsor-comment-badge-renderer"}},
editDialog:{id:"edit-dialog",mapping:{commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.G.detached=function(){this.editDialog=null;this.expander.reset()};
_.G.updateBackgroundColor=function(){if(this.backgroundColor){var d={"--ytd-comment-paid-background-color":_.Ob(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.eO(this.hostElement,d)}else _.eO(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.G.resetExpander=function(){var d;(d=this.expander)==null||d.reset()};
_.G.openEditDialog=function(d){d.dialog&&(this.editDialog=d.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.G.onYtNavigate=function(d){var H=d.detail.endpoint;if(H=_.M(H,_.usg)||_.M(H,_.Iv7))d.stopPropagation(),this.openEditDialog(H)};
_.G.onYtCommentboxDismiss=function(){this.editDialog=null;_.eO(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.G.onAuthorThumbnailClicked=function(){_.h("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.G.onYtCommentboxResize=function(d){var H;(d==null?0:(H=d.detail)==null?0:H.height)&&_.eO(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":d.detail.height+"px"})};
_.H3.Object.defineProperties(BA.prototype,{linked:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.linkedCommentText}},
linkedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.linked?{metadataBadgeRenderer:{label:this.viewModel.linkedCommentText,style:"BADGE_STYLE_TYPE_SIMPLE"}}:null}},
pinned:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.pinnedText}},
pinnedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.pinned?{renderer:{icon:{iconType:"KEEP"},label:{runs:[{text:this.viewModel.pinnedText}]}}}:null}},
authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var d,H=(d=this.commentEntity)==null?void 0:d.author;return H&&(H.isCreator||H.isVerified||H.isArtist)?{renderer:{authorEndpoint:H.channelPageEndpoint?_.M(H.channelPageEndpoint,_.ZX):_.M(H.channelCommand,_.ZX),authorText:{runs:[{text:H.displayName}]},color:H.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:H.isArtist?{iconType:"AUDIO_BADGE"}:
H.isVerified?{iconType:H.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:H.isArtist||H.isVerified?H.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var d,H=(d=this.commentEntity)==null?void 0:d.author;return H!=null&&H.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:H.sponsorBadgeUrl}]},tooltip:H.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var d;return _.M((d=this.commentSurfaceEntity)==null?void 0:d.pdgCommentChip,_.K_d)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var d;return this.voiceReplyContainerViewModel&&((d=this.voiceReplyContainerViewModel)==null?void 0:d.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var d;return _.M((d=this.commentSurfaceEntity)==null?void 0:d.voiceReplyContainerViewModel,X9S)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var d;return this.voiceReplyContainerViewModel&&(d=this.voiceReplyContainerViewModel)!=null&&d.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var d,H;return(H=(d=this.commentSurfaceEntity)==null?void 0:d.commentBackgroundColor)!=null?H:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.h("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var d,H;return(((d=this.commentEntity)==null?void 0:(H=d.properties)==null?void 0:H.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var d,H;if(_.h("enable_profile_cards_on_comments")&&((d=this.commentEntity)==null?0:(H=d.author)==null?0:H.profileCardEndpoint)&&this.viewModel.allowProfileCard){var K,c;return _.M((K=this.commentEntity)==null?void 0:(c=K.author)==null?void 0:c.profileCardEndpoint,_.ZX)}var p,g;return _.M((p=this.commentEntity)==null?void 0:(g=p.avatar)==null?void 0:g.endpoint,_.ZX)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var d,H;if(_.h("enable_profile_cards_on_comments")&&((d=this.commentEntity)==null?0:(H=d.author)==null?0:H.channelPageEndpoint)){var K,c;return _.M((K=this.commentEntity)==null?void 0:(c=K.author)==null?void 0:c.channelPageEndpoint,_.ZX)}var p,g;return _.M((p=this.commentEntity)==null?void 0:(g=p.avatar)==null?void 0:g.endpoint,_.ZX)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c,p=(d=this.commentEntity)==null?void 0:(H=d.avatar)==null?void 0:(K=H.image)==null?void 0:(c=K.sources)==null?void 0:c[0];return p?{thumbnails:[{url:p.url,width:p.width,height:p.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.commentEntity)==null?0:(H=d.author)==null?0:H.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.commentEntity)==null?void 0:(H=d.author)==null?void 0:H.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.commentEntity)==null?void 0:(H=d.properties)==null?void 0:H.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var d;return _.M((d=this.commentSurfaceEntity)==null?void 0:d.publishedTimeCommand,_.ZX)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var d,H;if(((d=this.commentEntity)==null?0:d.translatedContent)&&((H=this.translateButtonState)==null?void 0:H.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var K;if((K=this.voiceReplyContainerViewModel)==null?0:K.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var c,p;return((c=this.commentEntity)==null?void 0:(p=c.properties)==null?void 0:p.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.commentSharedEntity)==null?void 0:(H=d.strings)==null?void 0:H.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.commentSharedEntity)==null?void 0:(H=d.strings)==null?void 0:H.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.commentEntity)==null||!d.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var d,H,K=(H=_.M((d=this.viewModel)==null?void 0:d.translateButton,zbA))!=null?H:{},c,p,g,a,e,k,C,R,V,U,L;return Object.assign({},K,{untoggledStateData:Object.assign({},K.untoggledStateData,{buttonText:(c=this.commentEntity)==null?void 0:(p=c.translateData)==null?void 0:p.text}),togglingStateData:Object.assign({},K.togglingStateData,{buttonText:(g=this.commentSharedEntity)==null?
void 0:(a=g.strings)==null?void 0:a.translatingText}),toggledStateData:Object.assign({},K.toggledStateData,{buttonText:(e=this.commentSharedEntity)==null?void 0:(k=e.strings)==null?void 0:k.seeOriginalText}),transitionCommand:((C=this.commentEntity)==null?0:C.translatedContent)?void 0:_.M((R=this.commentEntity)==null?void 0:(V=R.translateData)==null?void 0:V.translateComment,_.ZX),triStateKey:(U=this.commentEntity)==null?void 0:(L=U.properties)==null?void 0:L.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return((H=_.M(_.M((d=this.toolbarSurface)==null?void 0:d.menuCommand,_.ZX),rQS))==null?void 0:(K=H.menu)==null?void 0:K.menuRenderer)||null}}});
BA.prototype.onYtCommentboxResize=BA.prototype.onYtCommentboxResize;BA.prototype.onYtCommentboxDismiss=BA.prototype.onYtCommentboxDismiss;BA.prototype.onYtNavigate=BA.prototype.onYtNavigate;BA.prototype.resetExpander=BA.prototype.resetExpander;BA.prototype.updateBackgroundColor=BA.prototype.updateBackgroundColor;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],BA.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],BA.prototype,"ytdReduxBehavior",void 0);
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],BA.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],BA.prototype,"ytRendererstamperBehavior",void 0);_.t([_.VP("#author-thumbnail > button"),_.O("design:type",HTMLElement)],BA.prototype,"authorThumbnailAnchor",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("viewModel"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],BA.prototype,"linked",null);
_.t([_.I("viewModel","linked"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"linkedCommentBadge",null);_.t([_.r({reflectToAttribute:!0}),_.I("viewModel"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],BA.prototype,"pinned",null);_.t([_.I("viewModel","pinned"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"pinnedCommentBadge",null);
_.t([_.I("commentEntity","commentSharedEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"authorCommentBadge",null);_.t([_.r({reflectToAttribute:!0}),_.I("authorCommentBadge"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"hasAuthorBadge",null);_.t([_.I("commentEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"sponsorCommentBadge",null);
_.t([_.r({reflectToAttribute:!0}),_.I("sponsorCommentBadge"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"hasSponsorBadge",null);_.t([_.I("commentSurfaceEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"pdgCommentChipRenderer",null);_.t([_.r({reflectToAttribute:!0}),_.I("voiceReplyContainerViewModel"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"hasVoiceReply",null);
_.t([_.I("commentSurfaceEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"voiceReplyContainerViewModel",null);_.t([_.I("voiceReplyContainerViewModel"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"voiceReplyUnavailableText",null);_.t([_.r(),_.O("design:type",Object)],BA.prototype,"data",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"viewModel",null);
_.t([_.r({selector:function(d,H){return _.xL(d.entities,"commentSharedEntityPayload",H)},
selectorArgs:["viewModel.sharedKey"]}),_.O("design:type",Object)],BA.prototype,"commentSharedEntity",void 0);_.t([_.r({selector:function(d,H){return _.xL(d.entities,"commentEntityPayload",H)},
selectorArgs:["viewModel.commentKey"]}),_.O("design:type",Object)],BA.prototype,"commentEntity",void 0);_.t([_.r({selector:function(d,H){return _.xL(d.entities,"commentSurfaceEntityPayload",H)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.O("design:type",Object)],BA.prototype,"commentSurfaceEntity",void 0);_.t([_.r({selector:Q7Y,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.O("design:type",Object)],BA.prototype,"toolbarSurface",void 0);_.t([_.r({selector:trE,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.O("design:type",Object)],BA.prototype,"translateButtonState",void 0);
_.t([_.I("commentSurfaceEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"backgroundColor",null);_.t([_.r({reflectToAttribute:!0}),_.I("viewModel"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],BA.prototype,"optimalReadingWidthComments",null);_.t([_.VP("ytd-expander"),_.O("design:type",Object)],BA.prototype,"expander",void 0);
_.t([_.CK("backgroundColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],BA.prototype,"updateBackgroundColor",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],BA.prototype,"useSmallAvatars",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],BA.prototype,"webWatchCompactComments",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("commentEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"isReply",null);
_.t([_.I("commentEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"authorThumbnailEndpoint",null);_.t([_.I("commentEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"authorNameEndpoint",null);_.t([_.I("commentEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"authorThumbnail",null);_.t([_.I("commentEntity"),_.O("design:type",String),_.O("design:paramtypes",[])],BA.prototype,"authorTextClass",null);
_.t([_.I("commentEntity"),_.O("design:type",String),_.O("design:paramtypes",[])],BA.prototype,"authorChannelName",null);_.t([_.I("commentEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"publishedTime",null);_.t([_.I("commentSurfaceEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"publishedTimeCommand",null);
_.t([_.I("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"contentText",null);_.t([_.CK("contentText"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],BA.prototype,"resetExpander",null);_.t([_.I("commentEntity"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],BA.prototype,"shouldShowReadMoreInitially",null);
_.t([_.I("commentSharedEntity"),_.O("design:type",String),_.O("design:paramtypes",[])],BA.prototype,"expandText",null);_.t([_.I("commentSharedEntity"),_.O("design:type",String),_.O("design:paramtypes",[])],BA.prototype,"collapseText",null);_.t([_.I("commentEntity"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],BA.prototype,"shouldShowTranslateButton",null);
_.t([_.I("commentEntity","commentSharedEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"translateButton",null);_.t([_.I("toolbarSurface"),_.O("design:type",Object),_.O("design:paramtypes",[])],BA.prototype,"overflowMenuRenderer",null);_.t([_.r(),_.O("design:type",Object)],BA.prototype,"editDialog",void 0);_.t([_.VP("ytd-comment-dialog-renderer"),_.O("design:type",Object)],BA.prototype,"editCommentDialogContainer",void 0);
_.t([_.VP("ytd-comment-reply-dialog-renderer"),_.O("design:type",Object)],BA.prototype,"editReplyDialogContainer",void 0);_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],BA.prototype,"onYtNavigate",null);_.t([_.nK("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],BA.prototype,"onYtCommentboxDismiss",null);
_.t([_.nK("yt-commentbox-resize"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],BA.prototype,"onYtCommentboxResize",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-comment-view-model"})],BA);
_.T(BA,"ytd-comment-view-model",function(){if(l6C!==void 0)return l6C;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return l6C=d},{mode:_.qk("kevlar_poly_si_batch_j025")?1:2});var zY=function(){var d=_.B.apply(this,arguments)||this;d.modern=_.h("web_modern_buttons");d.commentThreadingEnabled=_.h("web_delhi_comment_threads");d.isWatchGrid=_.h("kevlar_watch_grid");d.buttonOverrides=d.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};d.JSC$15815_spinnerEl=null;return d};
_.m(zY,_.B);_.G=zY.prototype;_.G.configureContinuationPathMap=function(){return _.h("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.G.shouldShowExpandedThreads=function(d,H){return this.commentThreadingEnabled&&!H&&(d==null?void 0:d.length)>0};
_.G.shouldShowCollapsedThreads=function(d,H){return this.commentThreadingEnabled&&H&&d};
_.G.computeThreadRenderer=function(d){return _.M(d,w9l)};
_.G.computeIsContinuationItem=function(d){return!!this.computeContinuationItemRenderer(d)};
_.G.computeButtonRenderer=function(d){return _.M(d,_.Tz)};
_.G.computeContinuationItemRenderer=function(d){return _.M(d,_.AE)};
_.G.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.G.attached=function(){this.isShowRepliesVisible=!0};
_.G.dataChanged=function(){var d=this.expanderContents;d&&(d.hidden=!0);this.isLoading=!1};
_.G.endsInContinuation=function(d){return!!d&&d.length>0&&!!this.computeContinuationItemRenderer(d[d.length-1])};
_.G.computeShouldShowHideRepliesButton=function(d,H){return!d&&H};
_.G.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.G.isLoadingChanged=function(){this.isLoading&&!this.JSC$15815_spinnerEl&&(this.JSC$15815_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Gn(this.expanderContents).appendChild(this.JSC$15815_spinnerEl));this.JSC$15815_spinnerEl&&(this.JSC$15815_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var d;(d=this.contents)==null||d.classList.remove("reloading")}};
_.G.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var d=_.M(this.data.viewReplies,_.Tz);d&&this.ytRendererBehavior.logExplicitClick(d);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.G.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var d=_.M(this.data.hideReplies,_.Tz);d&&this.ytRendererBehavior.logExplicitClick(d);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.G.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var d=_.Gn(this.hostElement).querySelector("#expander-contents");d&&(d.hidden=this.isShowRepliesVisible)}};
_.G.computeAlign=function(){if(this.modern){var d;return!((d=this.data)==null?0:d.viewRepliesCreatorThumbnail)}};
_.H3.Object.defineProperties(zY.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var d,H;return this.endsInContinuation((d=this.data)==null?void 0:d.contents)||this.commentThreadingEnabled&&this.endsInContinuation((H=this.data)==null?void 0:H.subThreads)}}});
zY.prototype.isShowMoreChanged=zY.prototype.isShowMoreChanged;zY.prototype.isLoadingChanged=zY.prototype.isLoadingChanged;zY.prototype.triggerFirstContinuation=zY.prototype.triggerFirstContinuation;zY.prototype.dataChanged=zY.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],zY.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],zY.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.yH),_.O("design:type",Object)],zY.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],zY.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],zY.prototype,"modern",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],zY.prototype,"commentThreadingEnabled",void 0);_.t([_.r(),_.O("design:type",Boolean)],zY.prototype,"collapsed",void 0);
_.t([_.r(),_.O("design:type",Function)],zY.prototype,"toggleCollapsed",void 0);_.t([_.r(),_.O("design:type",Boolean)],zY.prototype,"isLoading",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],zY.prototype,"isShowRepliesVisible",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],zY.prototype,"useNewFormatting",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],zY.prototype,"isWatchGrid",void 0);_.t([_.r(),_.O("design:type",Object)],zY.prototype,"buttonOverrides",void 0);
_.t([_.VP("#expander-contents"),_.O("design:type",HTMLElement)],zY.prototype,"expanderContents",void 0);_.t([_.VP("ytd-continuation-item-renderer"),_.O("design:type",Object)],zY.prototype,"continuationItemRenderer",void 0);_.t([_.VP("#contents"),_.O("design:type",HTMLElement)],zY.prototype,"contents",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zY.prototype,"dataChanged",null);
_.t([_.I("data.contents","data.subThreads.*"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],zY.prototype,"hasContinuation",null);_.t([_.nK("yt-expander-more-tapped"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zY.prototype,"triggerFirstContinuation",null);_.t([_.CK("isLoading"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zY.prototype,"isLoadingChanged",null);
_.t([_.CK("isShowRepliesVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zY.prototype,"isShowMoreChanged",null);_.t([_.Z({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],zY);
_.T(zY,"ytd-comment-replies-renderer",function(){if(g_7!==void 0)return g_7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n    <div class="threadline style-scope ytd-comment-replies-renderer">\n      <div class="connection style-scope ytd-comment-replies-renderer"></div>\n      <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n    </div>\n    <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-comment-thread-renderer>\n        </template>\n        <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </template>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return g_7=d},{mode:1});var n_l;var XW=function(){var d=_.B.apply(this,arguments)||this;d.isOpen=!1;d.commentDialog=null;d.useSmallAvatars=_.h("small_avatars_for_comments");d.useSmallAvatarsEngagementPanelOnly=_.h("small_avatars_for_comments_ep");d.placeholderFocusListener=null;d.hasOpenedDialog=!1;d.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return d};
_.m(XW,_.B);_.G=XW.prototype;_.G.configureRendererStamper=function(){return{"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},commentDialog:{id:"comment-dialog",mapping:{commentDialogRenderer:{component:"ytd-comment-dialog-renderer",properties:{zeroStepChannelCreationRenderer:"[[data.zeroStep.zeroStepChannelCreationRenderer]]"}}}}}};
_.G.ready=function(){var d=this,H=_.Gn(this.hostElement).querySelector("#placeholder-area"),K=_.Gn(this.hostElement).querySelector("#simplebox-placeholder"),c=function(p){p.stopPropagation();p instanceof KeyboardEvent&&p.type==="keypress"&&p.keyCode!==13&&p.keyCode!==32||d.openDialog()};
this.placeholderFocusListener=c;K.addEventListener("focus",this.placeholderFocusListener);H.addEventListener("tap",c);H.addEventListener("keypress",c)};
_.G.maybeRemoveFocusEventListener=function(){var d;(d=this.data)!=null&&d.prepareAccountEndpoint&&!_.h("web_comments_simplebox_modal_focus_on_tap_ks")&&(d=_.Gn(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(d.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.G.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.G.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.h("web_comment_simplebox_resolve_polymer_command_ks")?_.nM.instance.resolveCommand(this.data.prepareAccountEndpoint):_.CM(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var d=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);d&&this.ytdOpenPopupBehavior.openPopup(d);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.Gn(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.G.onYtCommentboxDismiss=function(d){d.stopPropagation();this.isOpen=!1};
_.G.onCreateCommentAction=function(d){this.get("createCommentAction.contents",d)&&(this.isOpen=!1)};
_.G.computeCommentDialog=function(d){return{placeholderText:d.placeholderText,authorThumbnail:d.authorThumbnail,submitButton:d.submitButton,imageButton:d.imageButton,cancelButton:d.cancelButton,emojiButton:d.emojiButton,emojis:d.emojis,emojiPicker:d.emojiPicker,aadcGuidelinesStateEntityKey:d.aadcGuidelinesStateEntityKey,openAadcDialog:d.openAadcDialog,unicodeEmojisUrl:d.unicodeEmojisUrl}};
_.G.onHideIdentityChip=function(d){_.M(d,Vog)&&this.set("data.placeholderText",_.M(d,Vog).placeholderText)};
XW.prototype.onYtCommentboxDismiss=XW.prototype.onYtCommentboxDismiss;XW.prototype.dataChanged=XW.prototype.dataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],XW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Ke),_.O("design:type",Object)],XW.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],XW.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],XW.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],XW.prototype,"isOpen",void 0);_.t([_.r(),_.O("design:type",Object)],XW.prototype,"commentDialog",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],XW.prototype,"engagementPanel",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],XW.prototype,"useSmallAvatars",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],XW.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],XW.prototype,"enableCreationBox",void 0);_.t([_.r(),_.O("design:type",Boolean)],XW.prototype,"showCreateDialog",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],XW.prototype,"dataChanged",null);_.t([_.nK("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],XW.prototype,"onYtCommentboxDismiss",null);_.t([_.Z({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],XW);
_.T(XW,"ytd-comment-simplebox-renderer",function(){if(n_l!==void 0)return n_l;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="author-thumbnail" fit="" height="40" hidden="[[isOpen]]" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-simplebox-renderer">\n</yt-img-shadow>\n<div id="placeholder-area" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <yt-formatted-string id="simplebox-placeholder" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-simplebox-renderer">\n  </yt-formatted-string>\n</div>\n<div id="attachments" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <div id="image-button" class="style-scope ytd-comment-simplebox-renderer"></div>\n</div>\n<div id="comment-dialog" hidden="[[!isOpen]]" class="style-scope ytd-comment-simplebox-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return n_l=d},{mode:1});var CQC;_.XX("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var Jq=function(){var d=_.B.apply(this,arguments)||this;d.addHoverEffect=_.h("swatcheroo_comments_hover_effect");d.useSmallAvatars=_.h("small_avatars_for_comments");d.threadHovered=!1;d.collapsed=!1;d.removed=!1;d.actionMap=d.configureActionMap();d.toggleCollapsed=function(){d.collapsed=!d.collapsed;d.collapsed&&_.h("web_comment_threading_scroll_on_collapse")&&_.oF(d.hostElement,"yt-scroll-to-watch-element",[d.commentElement])};
return d};
_.m(Jq,_.B);_.G=Jq.prototype;_.G.configureActionMap=function(){return _.h("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.G.createCommentReplyAction=function(d){d=_.M(d,CA3);if(d!=null&&d.contents){var H=d.replyToCommentId,K=d.parentCommentId,c,p=(c=this.commentViewModel)==null?void 0:c.commentId;(p===H||p===K&&!H)&&this.attachReply(d.contents)}};
_.G.attachReply=function(d){var H;((H=this.data)==null?0:H.replies)?(H=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+H+".continuationItemRenderer")?this.splice("data.replies.commentRepliesRenderer.subThreads",H,0,d):this.push("data.replies.commentRepliesRenderer.subThreads",d)):this.set("data.replies",{commentRepliesRenderer:{subThreads:[d]}})};
_.G.removeCommentAction=function(d){d=_.M(d,LUA);var H=d==null?void 0:d.commentId,K;H&&((K=this.commentViewModel)==null?void 0:K.commentId)===H&&this.maybeRemoveComment(d.actionResult)};
_.G.banAuthorAction=function(d){d=_.M(d,xWU);var H=d==null?void 0:d.commentId,K;H&&((K=this.commentViewModel)==null?void 0:K.commentId)===H&&this.maybeRemoveComment(d.actionResult)};
_.G.hideReportedCommentAction=function(d){d=_.M(d,Zqg);var H=d==null?void 0:d.commentId,K;H&&((K=this.commentViewModel)==null?void 0:K.commentId)===H&&this.maybeRemoveComment(d.actionResult)};
_.G.maybeRemoveComment=function(d){d&&d.status==="STATUS_SUCCEEDED"&&(this.feedbackText=d.feedbackText||_.cW("Comment removed"),this.removed=!0)};
_.G.onTap=function(d){if(this.addHoverEffect&&!this.engagementPanel&&!_.vg(_.jh(d)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;((H=window.getSelection())==null?0:H.toString().length)||_.CM({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.G.attached=function(){var d=this,H;(H=this.commentThreadHitbox)==null||H.addEventListener("mouseover",function(){d.threadHovered=!0});
var K;(K=this.commentThreadHitbox)==null||K.addEventListener("mouseout",function(){d.threadHovered=!1});
var c;(c=this.commentThreadHitbox)==null||c.addEventListener("click",function(){d.maybeToggleCollapsed()})};
_.G.maybeToggleCollapsed=function(){var d,H,K,c=(d=this.data)==null?void 0:(H=d.replies)==null?void 0:(K=H.commentRepliesRenderer)==null?void 0:K.subThreads;c&&(c.length===1&&_.M(c[0],_.AE)||this.toggleCollapsed())};
_.H3.Object.defineProperties(Jq.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.data)!=null&&d.commentViewModel)return _.M(this.data.commentViewModel,BN3)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return _.h("web_delhi_comment_threads")&&!!((d=this.data)==null?0:(H=d.replies)==null?0:(K=H.commentRepliesRenderer)==null?0:K.subThreads)}}});
Jq.prototype.onTap=Jq.prototype.onTap;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Jq.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Jq.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Jq.prototype,"addHoverEffect",void 0);
_.t([_.r(),_.O("design:type",Object)],Jq.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Jq.prototype,"useSmallAvatars",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Jq.prototype,"isSubThread",void 0);_.t([_.VP(".thread-hitbox"),_.O("design:type",HTMLElement)],Jq.prototype,"commentThreadHitbox",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Jq.prototype,"threadHovered",void 0);
_.t([_.VP("#comment"),_.O("design:type",HTMLElement)],Jq.prototype,"commentElement",void 0);_.t([_.r(),_.O("design:type",Object)],Jq.prototype,"collapsed",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Jq.prototype,"removed",void 0);_.t([_.r(),_.O("design:type",Object)],Jq.prototype,"feedbackText",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Jq.prototype,"commentViewModel",null);
_.t([_.I("data.replies"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Jq.prototype,"hasSubThreading",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Jq.prototype,"engagementPanel",void 0);_.t([_.nK("tap"),_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],Jq.prototype,"onTap",null);_.t([_.Z({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Jq);
_.T(Jq,"ytd-comment-thread-renderer",function(){if(CQC!==void 0)return CQC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer collapsed="[[collapsed]]" data="[[data.replies.commentRepliesRenderer]]" toggle-collapsed="[[toggleCollapsed]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return CQC=d},{mode:_.qk("kevlar_poly_si_batch_j025")?1:2});var RVg;var sn=function(){var d=_.B.apply(this,arguments)||this;d.modernTypography=_.h("web_modern_typography");d.compactHeader=_.h("web_watch_compact_comments_header");d.hidePanelButton=!1;d.isPostSchedulingEnabled=_.h("enable_post_scheduling");d.hasFinishedStamping=!1;d.JSC$15838_handleOpenPostCommentDialogActionAfterStamp=!1;d.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return d};
_.m(sn,_.B);_.G=sn.prototype;
_.G.configureRendererStamper=function(){return{"data.createRenderer":{id:"simple-box",mapping:{commentSimpleboxRenderer:{component:"ytd-comment-simplebox-renderer",properties:{engagementPanel:"[[engagementPanel]]",showCreateDialog:"[[data.showCreateDialog]]"}}}},"data.pausedCommentsMessage":{id:"paused-comments-message",mapping:{messageRenderer:"ytd-comment-pause-composer-renderer"}},backstagePostDialog:{id:"backstage-post-dialog",mapping:{backstagePostDialogRenderer:{component:"ytd-backstage-post-dialog-renderer"}},events:!0},
"data.sortMenu":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.alerts":{id:"alert",mapping:{alertWithButtonRenderer:"ytd-alert-with-button-renderer"},renderPriority:0,waitForSignal:"eocs"},"data.zeroStateMessage":{id:"zero-state-message",mapping:{backstageZeroStateRenderer:"ytd-backstage-zero-state-renderer",postFilterZeroStateRenderer:"ytd-post-filter-zero-state-renderer"}},"data.prefilledCreateDialogHeaderMessage":{id:"prefilled-dialog-header",mapping:{backstagePrefilledPostDialogHeaderRenderer:"ytd-backstage-prefilled-post-dialog-header-renderer"}},
"data.postStreamFilter":{id:"post-stream-filter",mapping:{postStreamFilterRenderer:"ytd-post-stream-filter-renderer"}},"data.schedulingZeroStateMessage":{id:"scheduling-zero-state-message",mapping:{postSchedulingZeroStateRenderer:"ytd-post-scheduling-zero-state-renderer"}}}};
_.G.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.G.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15838_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.G.onYtServiceRequestSent=function(d,H){if(!_.h("kevlar_command_handler")&&H.actions)for(d=0;d<H.actions.length;d++){var K=H.actions[d];_.M(K,OVM)&&_.Gn(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.M(K,OVM))}};
_.G.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var d;if(this.getPrefilledBackstagePostDialog((d=this.data)==null?void 0:d.actions)){_.Gn(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var H=_.Gn(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;H&&_.vV(this,function(){H.focus();H.openDialog&&H.openDialog()})}}else this.hasActionsChange=!0};
_.G.computeIsBackstage=function(d){return d};
_.G.onYtCommentboxDismiss=function(){_.Gn(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.G.removePrefilledDialog=function(d){if(d==null?0:d.actions){for(var H=d.actions.length-1;H>=0;H--){var K=void 0;((K=_.M(d.actions[H],wZC))==null?0:K.dialog)&&delete d.actions[H]}this.set("data",void 0);this.set("data",d)}};
_.G.getPrefilledBackstagePostDialog=function(d){if(d)for(var H=0;H<d.length;H++){var K=d[H],c=void 0;if((c=_.M(K,wZC))==null?0:c.dialog)return _.M(K,wZC).dialog}return null};
_.G.computeBackstagePostDialog=function(d){return d&&(this.getPrefilledBackstagePostDialog(d.actions)||d.createRenderer)};
_.G.dataChanged=function(){if(this.data){var d=this.data.customEmojis,H=this.data.unicodeEmojisUrl;_.bq.clear();H&&_.RpS(_.bq,H);d&&_.bq.load(d)}};
_.G.handleSignalActionOpenPostCommentDialogAction=function(){var d=_.Gn(this.hostElement).querySelector("ytd-comment-simplebox-renderer");d?d.openDialog():this.JSC$15838_handleOpenPostCommentDialogActionAfterStamp=!0};
_.H3.Object.defineProperties(sn.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.h("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c,p,g,a;return!this.hidePanelButton&&_.h("kevlar_watch_comments_panel_button")&&((a=_.M((d=this.data)==null?void 0:(H=d.sortMenu)==null?void 0:(K=H.sortFilterSubMenuRenderer)==null?void 0:(c=K.subMenuItems)==null?void 0:(p=c[0])==null?void 0:(g=p.serviceEndpoint)==null?void 0:g.commandMetadata,_.Co))==null?void 0:a.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Vz("MINIPLAYER_EXPAND_LABEL"),text:_.AF(_.Vz("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
sn.prototype.dataChanged=sn.prototype.dataChanged;sn.prototype.onYtCommentboxDismiss=sn.prototype.onYtCommentboxDismiss;sn.prototype.observePrefilledBackstagePostDialog=sn.prototype.observePrefilledBackstagePostDialog;sn.prototype.onYtServiceRequestSent=sn.prototype.onYtServiceRequestSent;sn.prototype.onStampFinished=sn.prototype.onStampFinished;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],sn.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],sn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],sn.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],sn.prototype,"modernTypography",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],sn.prototype,"compactHeader",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],sn.prototype,"engagementPanel",void 0);_.t([_.r(),_.O("design:type",Object)],sn.prototype,"hidePanelButton",void 0);_.t([_.r({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.O("design:type",Boolean)],sn.prototype,"isBackstage",void 0);_.t([_.r({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.O("design:type",Object)],sn.prototype,"backstagePostDialog",void 0);
_.t([_.r(),_.O("design:type",Object)],sn.prototype,"isPostSchedulingEnabled",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data","showCommentsPanelButton"),_.O("design:type",Object),_.O("design:paramtypes",[])],sn.prototype,"useSpaceBetween",null);_.t([_.r({reflectToAttribute:!0}),_.I("data","hidePanelButton"),_.O("design:type",Object),_.O("design:paramtypes",[])],sn.prototype,"showCommentsPanelButton",null);
_.t([_.I("data","showCommentsPanelButton"),_.O("design:type",Object),_.O("design:paramtypes",[])],sn.prototype,"commentsPanelButtonData",null);_.t([_.nK("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sn.prototype,"onStampFinished",null);_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],sn.prototype,"onYtServiceRequestSent",null);
_.t([_.CK("data.actions"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sn.prototype,"observePrefilledBackstagePostDialog",null);_.t([_.nK("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],sn.prototype,"onYtCommentboxDismiss",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sn.prototype,"dataChanged",null);
_.t([_.Z({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],sn);
_.T(sn,"ytd-comments-header-renderer",function(){if(RVg!==void 0)return RVg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return RVg=d},{mode:1});var VQB;var FW=function(){return _.B.apply(this,arguments)||this};
_.m(FW,_.B);_.t([_.r(),_.O("design:type",Object)],FW.prototype,"data",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.t([_.Z({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],FW);
_.T(FW,"ytd-destination-button-renderer",function(){if(VQB!==void 0)return VQB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="destination-content-root" class="yt-simple-endpoint style-scope ytd-destination-button-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n  <yt-img-shadow id="destination-icon" height="32" thumbnail="[[data.iconImage]]" width="32" class="style-scope ytd-destination-button-renderer"></yt-img-shadow>\n  <div id="destination-label-wrapper" class="style-scope ytd-destination-button-renderer">\n     <yt-formatted-string id="destination-label" text="[[data.label]]" class="style-scope ytd-destination-button-renderer"></yt-formatted-string>\n  </div>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return VQB=d},{mode:1});var U4M;var Zn=function(){var d=_.B.apply(this,arguments)||this;d.isRichGrid=!1;d.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};d.modernTypography=_.h("web_modern_typography");return d};
_.m(Zn,_.B);_.G=Zn.prototype;_.G.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.G.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.G.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.G.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var d;if((d=this.data)==null||!d.isExpanded){d=this.hostElement.clientWidth;var H;if(d&&(H=this.data)!=null&&H.destinationButtons){H=Math.floor((d+4)/214);d=this.data.destinationButtons.length;var K=Math.ceil(d/H);this.fullyVisibleRows=d%H===1&&K===2?1:Math.min(K,2);this.isShowMoreVisible=this.fullyVisibleRows<K}}}};
_.G.updateRichGridDestinationButtonsVisibility=function(){var d,H;if(this.isRichGrid&&((d=this.data)==null||!d.isExpanded)&&(H=this.data)!=null&&H.destinationButtons){d=this.richGridItemsPerRow+1;H=this.data.destinationButtons.length;var K=Math.ceil(H/d);this.fullyVisibleRows=H%d===1&&K===2?1:Math.min(K,2);this.isShowMoreVisible=this.fullyVisibleRows<K}};
_.G.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Zn.prototype.updateRichGridDestinationButtonsVisibility=Zn.prototype.updateRichGridDestinationButtonsVisibility;_.t([_.r(),_.O("design:type",Object)],Zn.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Number)],Zn.prototype,"fullyVisibleRows",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Zn.prototype,"isShowMoreVisible",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Zn.prototype,"isRichGrid",void 0);
_.t([_.r({selector:_.sc,value:0}),_.O("design:type",Number)],Zn.prototype,"richGridItemsPerRow",void 0);_.t([_.r(),_.O("design:type",Object)],Zn.prototype,"gridStateActionMap",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Zn.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Zn.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Zn.prototype,"ytdReduxBehavior",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Zn.prototype,"modernTypography",void 0);_.t([_.CK("data","richGridItemsPerRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Zn.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.t([_.Z({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Zn);
_.T(Zn,"ytd-destination-shelf-renderer",function(){if(U4M!==void 0)return U4M;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-destination-shelf-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="destination-buttons" class="style-scope ytd-destination-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-destination-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-destination-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return U4M=d},{mode:1});var hVC;var TY=function(){return _.B.apply(this,arguments)||this};
_.m(TY,_.B);TY.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],TY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],TY.prototype,"data",void 0);_.t([_.Z({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],TY);
_.T(TY,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(hVC!==void 0)return hVC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-cta-shelf-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="cta-renderer style-scope ytd-brandconnect-cta-shelf-card-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-brandconnect-cta-shelf-card-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-brandconnect-cta-shelf-card-renderer">\n    <p id="header-line" hidden="[[!data.headline]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.headline)]]\n    </p>\n    <p id="brand-name" hidden="[[!data.brandName]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.brandName)]]\n    </p>\n    <p id="description" hidden="[[!data.description]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.description)]]\n    </p>\n    <div id="action-button" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n  </div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return hVC=d},{mode:1});var LyN;var QW=function(){var d=_.B.apply(this,arguments)||this;d.disableAnimation=!1;d.isSlimlineSurvey=!1;d.isSlimlineSurveyFollowUp=!1;d.isShortsStyle=!1;return d};
_.m(QW,_.B);QW.prototype.onTap=function(d){d.preventDefault();this.data&&_.GT(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.H3.Object.defineProperties(QW.prototype,{isAnimatedIcon:{configurable:!0,enumerable:!0,get:function(){return!this.disableAnimation&&(this.isSlimlineSurveyFollowUp||this.isShortsStyle)}},
iconSize:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle?36:24}},
isDarkTheme:{configurable:!0,enumerable:!0,get:function(){return this.isShortsStyle||document.documentElement.hasAttribute("dark")}},
icon:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c,p;return((d=this.data)==null?0:d.checked)?(H=this.data)==null?void 0:(K=H.onStateIcon)==null?void 0:K.iconType:(c=this.data)==null?void 0:(p=c.defaultStateIcon)==null?void 0:p.iconType}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],QW.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],QW.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],QW.prototype,"disableAnimation",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],QW.prototype,"isSlimlineSurvey",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],QW.prototype,"isSlimlineSurveyFollowUp",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],QW.prototype,"isShortsStyle",void 0);_.t([_.I("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],QW.prototype,"isAnimatedIcon",null);
_.t([_.I("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.O("design:type",Number),_.O("design:paramtypes",[])],QW.prototype,"iconSize",null);_.t([_.I("isShortsStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],QW.prototype,"isDarkTheme",null);_.t([_.I("data.checked"),_.O("design:type",Object),_.O("design:paramtypes",[])],QW.prototype,"icon",null);_.t([_.Z({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],QW);
_.T(QW,"ytd-rating-survey-option-renderer",function(){if(LyN!==void 0)return LyN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="rating-survey-button" label="[[getSimpleString(data.responseText)]]" pressed="[[data.checked]]" toggleable="" on-tap="onTap" class="style-scope ytd-rating-survey-option-renderer">\n    <yt-icon icon="[[icon]]" is-animated-icon="[[isAnimatedIcon]]" is-dark-theme="[[isDarkTheme]]" size="[[iconSize]]" class="style-scope ytd-rating-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return LyN=d},{mode:2});var MQ3;var tq=function(){var d=_.B.apply(this,arguments)||this;d.firstResponseText=null;d.lastResponseText=null;d.selectedNonStarOption=null;d.hideOptions=!1;d.hideUndoButton=!0;d.disableAnimation=!1;d.showResponseRangeText=!1;d.selectedRatingIndex=-1;d.isSlimlineSurvey=!1;d.isSlimlineSurveyFollowUp=!1;d.isShortsStyle=!1;d.slimlineSurveyRatingSelectedIndex=-1;return d};
_.m(tq,_.B);_.G=tq.prototype;_.G.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.G.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.G.onOptionChange=function(d,H){var K=this;d=H.onStateIcon&&H.defaultStateIcon&&H.onStateIcon.iconType===H.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(a,e){a.responseText===H.responseText?K.isSlimlineSurvey?(K.selectedRatingIndex=e,K.ytdReduxBehavior.dispatch(eUS(e))):(K.setSurveyOptionValue(e,!0,"checked"),K.setSurveyOptionValue(e,!0,"selected")):(K.setSurveyOptionValue(e,!1,"checked"),K.setSurveyOptionValue(e,
!1,"selected"))});
else if(d)this.selectedNonStarOption=H,this.hideOptions=!0;else{var c=this.ytRendererBehavior.getSimpleString(H.responseText),p=!0;this.getOptionRenderers().forEach(function(a,e){K.setSurveyOptionValue(e,p,"checked");K.setSurveyOptionValue(e,!1,"selected");K.ytRendererBehavior.getSimpleString(a.responseText)===c&&(p=!1,K.setSurveyOptionValue(e,!0,"selected"))})}d=H.responseEndpoint;
var g;H.followUpCommand&&(g=_.M(H.followUpCommand,NMS));this.isSlimlineSurvey?(this.resetComponent(),_.oF(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.oF(this.hostElement,"ytd-inline-survey-rating-select-action",[d,g])};
_.G.showSelectedOption=function(){var d=this;_.Xp.addJob(function(){var H=d.getOptionRenderers()[d.slimlineSurveyRatingSelectedIndex];d.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),H)},8,100)};
_.G.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(d){var H;return(H=_.M(d,fk3))!=null?H:{}}):[]};
_.G.onUndoClick=function(){this.resetComponent();_.oF(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.G.setSurveyOptionValue=function(d,H,K){this.notifyPath("data.ratings."+d+".ratingSurveyOptionRenderer."+K);this.set("data.ratings."+d+".ratingSurveyOptionRenderer."+K,H)};
_.G.resetComponent=function(){var d=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var H=this.getOptionRenderers(),K,c;this.firstResponseText=(c=(K=H[0])==null?void 0:K.responseText)!=null?c:null;var p,g;this.lastResponseText=(g=(p=H[H.length-1])==null?void 0:p.responseText)!=null?g:null;H.forEach(function(a,e){d.setSurveyOptionValue(e,!1,"checked");d.setSurveyOptionValue(e,!1,"selected")})};
_.H3.Object.defineProperties(tq.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
tq.prototype.onOptionChange=tq.prototype.onOptionChange;tq.prototype.dataChanged=tq.prototype.dataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],tq.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],tq.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],tq.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Object)],tq.prototype,"firstResponseText",void 0);_.t([_.r(),_.O("design:type",Object)],tq.prototype,"lastResponseText",void 0);_.t([_.r(),_.O("design:type",Object)],tq.prototype,"selectedNonStarOption",void 0);_.t([_.r(),_.O("design:type",Object)],tq.prototype,"hideOptions",void 0);_.t([_.r(),_.O("design:type",Object)],tq.prototype,"hideUndoButton",void 0);_.t([_.r(),_.O("design:type",Object)],tq.prototype,"disableAnimation",void 0);
_.t([_.r(),_.O("design:type",Object)],tq.prototype,"showResponseRangeText",void 0);_.t([_.r(),_.O("design:type",Object)],tq.prototype,"selectedRatingIndex",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],tq.prototype,"isSlimlineSurvey",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],tq.prototype,"isSlimlineSurveyFollowUp",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],tq.prototype,"isShortsStyle",void 0);_.t([_.r({selector:function(d){return d.ui.slimlineSurveyRatingSelectedIndex}}),
_.O("design:type",Object)],tq.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.t([_.I("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],tq.prototype,"isSingleSelect",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tq.prototype,"dataChanged",null);
_.t([_.nK("ytd-rating-survey-option-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],tq.prototype,"onOptionChange",null);_.t([_.Z({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],tq);
_.T(tq,"ytd-rating-survey-renderer",function(){if(MQ3!==void 0)return MQ3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selection-panel" class="style-scope ytd-rating-survey-renderer">\n  <div id="options" class="style-scope ytd-rating-survey-renderer">\n    <div id="ratings" hidden="[[hideOptions]]" class="style-scope ytd-rating-survey-renderer"></div>\n  </div>\n  <div id="selected-response-icon" hidden="[[!selectedNonStarOption]]" class="style-scope ytd-rating-survey-renderer">\n    <yt-icon icon="[[selectedNonStarOption.onStateIcon.iconType]]" class="style-scope ytd-rating-survey-renderer"></yt-icon>\n  </div>\n  <div id="bottom-text-container" hidden="[[!showResponseRangeText]]" class="style-scope ytd-rating-survey-renderer">\n    <div id="first-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[firstResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n    <div id="last-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[lastResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n  </div>\n</div>\n<ytd-button-renderer id="undo-button" data="[[data.undoButton.buttonRenderer]]" hidden="[[hideUndoButton]]" on-click="onUndoClick" class="style-scope ytd-rating-survey-renderer">\n</ytd-button-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return MQ3=d},{mode:1});var m4B;var wYB;var PQA;var X_i=(RI.FIRSTDAYOFWEEK+1)%7,uyU=function(d,H,K,c){var p="";if(c.selection&&rj4(c.selection))xE(d,c.selection)&&(p+=" selected");else if(c.selection&&W8h(c.selection)){var g=c.selection.selectionState||"START_DATE";xE(d,c.selection.start)&&(p+=" period-start ",g==="START_DATE"&&(p+="selected"));xE(d,c.selection.end)&&(p+=" period-end ",g==="END_DATE"&&(p+="selected"));n8(d,c.selection.start)||n8(c.selection.end,d)||(p+=" highlighted")}if(n8(H,c.start)||n8(c.end,H))p+=" disabled";c.circleToday&&
xE(H,K)&&(p+=" today");return p};var Ya=function(){return _.B.apply(this,arguments)||this};
_.m(Ya,_.B);_.G=Ya.prototype;_.G.attached=function(){var d=this;_.vV(this,function(){d.JSC$15872_calendarMain.scrollHeight>0&&(d.calendarConfig.selection?d.scrollToDate(Bxl(d.calendarConfig.selection)):d.scrollToDate(d.calendarConfig.end))})};
_.G.updateSelection=function(d){d=JjY(Object.assign({},this.calendarConfig,{selection:d}),uyU);this.splice.apply(this,["renderData.months",0,d.length].concat(_.ru(d)))};
_.G.scrollToDate=function(d){this.renderData&&(d=sg5(d,this.renderData),d!==void 0&&this.JSC$15872_calendarMain.scrollToIndex(d))};
_.G.scrollToNextMonth=function(){this.JSC$15872_calendarMain.scrollToIndex(this.JSC$15872_calendarMain.firstVisibleIndex+1)};
_.G.scrollToPrevMonth=function(){this.JSC$15872_calendarMain.firstVisibleIndex===0&&this.JSC$15872_calendarMain.scrollTo(0,0);this.JSC$15872_calendarMain.scrollToIndex(this.JSC$15872_calendarMain.firstVisibleIndex-1)};
_.G.handleDayClick=function(d){_.oF(this.hostElement,"ytd-calendar-date-clicked",[d.model.day.date])};
_.G.handleDayMouseDown=function(d){d.preventDefault();_.oF(this.hostElement,"ytd-calendar-date-mousedown",[d.model.day.date])};
_.G.handleDayMouseUp=function(d){_.oF(this.hostElement,"ytd-calendar-date-mouseup",[d.model.day.date])};
_.G.handleDayMouseEnter=function(d){d.preventDefault();_.oF(this.hostElement,"ytd-calendar-date-mouseenter",[d.model.day.date])};
_.G.handleDayMouseLeave=function(d){_.oF(this.hostElement,"ytd-calendar-date-mouseleave",[d.model.day.date])};
_.H3.Object.defineProperties(Ya.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var d=this.calendarConfig,H=uyU;H=H===void 0?uyU:H;for(var K=[],c=0;c<7;c++)K.push(RI.NARROWWEEKDAYS[(c+X_i)%7]);return{months:JjY(d,H),daysOfWeekLabel:K}}}});
_.t([_.r(),_.O("design:type",Object)],Ya.prototype,"calendarConfig",void 0);_.t([_.VP("#calendar-main"),_.O("design:type",Object)],Ya.prototype,"JSC$15872_calendarMain",void 0);_.t([_.I("calendarConfig"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ya.prototype,"renderData",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],Ya);
_.T(Ya,"ytd-scrollable-calendar",function(){if(PQA!==void 0)return PQA;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-scrollable-calendar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="calendar-container style-scope ytd-scrollable-calendar">\n  <div class="calendar-header style-scope ytd-scrollable-calendar">\n    <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-scrollable-calendar">\n      <span class="calendar-header-day style-scope ytd-scrollable-calendar">[[dayLabel]]</span>\n    </template>\n  </div>\n\n  <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-scrollable-calendar">\n    <template class="style-scope ytd-scrollable-calendar">\n      <div class="calendar-month style-scope ytd-scrollable-calendar">\n        <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-scrollable-calendar">\n          [[month.monthLabel]]\n        </div>\n        <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-scrollable-calendar">\n          <div class="calendar-week style-scope ytd-scrollable-calendar">\n            <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-scrollable-calendar">\n              <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-scrollable-calendar" on-tap="handleDayClick" on-mouseenter="handleDayMouseEnter" on-mouseleave="handleDayMouseLeave" on-mousedown="handleDayMouseDown" on-mouseup="handleDayMouseUp">\n                [[day.date.day]]\n              </span>\n            </template> \n          </div>\n        </template> \n      </div>\n    </template>\n  </tp-yt-iron-list> \n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return PQA=d},{mode:2});var I6B;var rKA;var On=function(){var d=_.B.apply(this,arguments)||this;d.hideCharCounter=!1;d.hideLabel=!1;d.noLabelFloat=!1;d.autoValidate=!0;d.invalid=!1;d.disabled=!1;d.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return d};
_.m(On,_.B);_.G=On.prototype;_.G.reset=function(d){this.value=d&&this.data?this.data.value=d:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.G.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.G.focusTextInput=function(){this.input.focus()};
_.G.validate=function(){if(!this.autoValidate)return!this.invalid;if(!this.input)return!1;if(this.isMultiline&&this.data&&this.value!=null&&this.data.validValueRegexp&&!RegExp("^"+this.data.validValueRegexp+"$").test(this.input.value))return this.input.autoValidate=!1,this.invalid=!0,!1;this.input.autoValidate=!0;return this.input.validate()};
_.G.valueChanged=function(){var d,H;if(((d=this.data)==null?0:d.value)||((H=this.data)==null?void 0:H.value)==="")this.value=this.data.value;else{var K;((K=this.data)==null?void 0:K.value)!==void 0||this.value||(this.value="")}};
_.G.computeLabel=function(d,H){return H?"":_.jG(d)};
_.G.computeAriaLabel=function(d,H){return H?_.jG(d):""};
_.G.computeErrorMessage=function(d,H,K,c){!d&&H?d=K||this.strings.REQUIRED_LABEL:(d=_.jG(c),d=_.qf(d,"&")?"document"in _.KF?uMB(d):ID7(d):d);return d};
_.G.computeType=function(d){return d==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.G.onTextValueChanged=function(d){this.value=d.detail.value;var H;(H=this.onValueChanged)==null||H.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.G.handleUpdateTextInputFormFieldRendererCommand=function(d){(d=_.M(d,x33))&&this.data&&this.data.id===d.id&&(d.invalid!==void 0&&(this.invalid=d.invalid),d.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",d.invalidValueErrorMessage))};
_.G.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("value-changed",this.value))};
_.G.updateInvalidFromBinding=function(d){this.invalid=d.detail.value};
_.H3.Object.defineProperties(On.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var d;return!((d=this.data)==null||!d.isMultiline)}}});
On.prototype.valueChangedForBinding=On.prototype.valueChangedForBinding;On.prototype.valueChanged=On.prototype.valueChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],On.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],On.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],On.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],On.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],On.prototype,"value",void 0);_.t([_.r(),_.O("design:type",String)],On.prototype,"pattern",void 0);_.t([_.r(),_.O("design:type",String)],On.prototype,"errorMessage",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],On.prototype,"componentStyle",void 0);_.t([_.r(),_.O("design:type",Object)],On.prototype,"hideCharCounter",void 0);
_.t([_.r(),_.O("design:type",Object)],On.prototype,"hideLabel",void 0);_.t([_.r(),_.O("design:type",Object)],On.prototype,"noLabelFloat",void 0);_.t([_.r(),_.O("design:type",Function)],On.prototype,"onValueChanged",void 0);_.t([_.r(),_.O("design:type",Boolean)],On.prototype,"isMultilineOverride",void 0);_.t([_.r(),_.O("design:type",Object)],On.prototype,"autoValidate",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],On.prototype,"invalid",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],On.prototype,"disabled",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],On.prototype,"enableOverlayTheme",void 0);_.t([_.r({value:{REQUIRED_LABEL:_.Vz("REQUIRED_LABEL",void 0,"Required")}}),_.O("design:type",Object)],On.prototype,"strings",void 0);_.t([_.VP("#input"),_.O("design:type",Object)],On.prototype,"input",void 0);
_.t([_.I("data","isMultilineOverride"),_.O("design:type",Object),_.O("design:paramtypes",[])],On.prototype,"isMultiline",null);_.t([_.Mr("data.value"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],On.prototype,"valueChanged",null);_.t([_.CK("value"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],On.prototype,"valueChangedForBinding",null);_.t([_.ZV({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],On);
_.T(On,"yt-text-input-form-field-renderer",function(){if(rKA===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;I6B===void 0&&(I6B=document.createElement("template"));var c=I6B;K.call(H,c.content.cloneNode(!0),d.content.firstChild);rKA=d}d=rKA;return d},{mode:2});var Sx=function(){var d=_.B.apply(this,arguments)||this;d.data=void 0;d.selectionState="START_DATE";d.isStartDateInvalid=!1;d.isEndDateInvalid=!1;d.autoapply=!1;d.actionMap={"ytd-calendar-date-clicked":"handleCalendarDateClicked","ytd-calendar-date-mousedown":"handleCalendarDateMouseDown","ytd-calendar-date-mouseup":"handleCalendarDateMouseUp","ytd-calendar-date-mouseenter":"handleCalendarDateMouseEnter","ytd-calendar-date-mouseleave":"handleCalendarDateMouseLeave","yt-signal-action-submit-form":"handleCalendarSubmitDateRange"};
return d};
_.m(Sx,_.B);_.G=Sx.prototype;_.G.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.applyButton":{id:"apply-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.G.focus=function(){this.startDateInput.focus()};
_.G.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:C8(this.data.selection.start),end:C8(this.data.selection.end)})};
_.G.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.G.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.tN(this.selectionState)}};
_.G.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.G.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.G.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.G.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var d=this.calendar.calendarConfig,H=d.end;d=ZvM({start:d.start,end:this.endDate||H},this.startDateInput.value||"");this.isStartDateInvalid=!d.isValid;d.isValid&&(d=d.value,this.selection=this.endDate?{start:d,end:this.endDate}:d,this.calendar.scrollToDate(d));this.updateInvalidState()}};
_.G.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var d=this.calendar.calendarConfig,H=d.start;d=ZvM({start:this.startDate||H,end:d.end},this.endDateInput.value||"");this.isEndDateInvalid=!d.isValid;d.isValid&&(d=d.value,this.selection={start:this.startDate,end:d},this.calendar.scrollToDate(d));this.updateInvalidState()}};
_.G.handleCalendarDateClicked=function(d){var H=this.selection&&Bxl(this.selection),K=this.selection&&zEL(this.selection);H&&!n8(d,H)&&this.selectionState==="END_DATE"?(this.selection={start:H,end:d},this.selectionState="START_DATE"):(K&&!n8(K,d)?this.selection={start:d,end:K}:this.selection=d,this.selectionState="END_DATE")};
_.G.handleCalendarDateMouseDown=function(d){this.selection&&!rj4(this.selection)&&(this.dragPivot=xE(d,this.selection.start)?this.selection.end:xE(d,this.selection.end)?this.selection.start:d)};
_.G.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.G.handleCalendarDateMouseEnter=function(d){this.dragPivot&&(this.selection={start:function(H,K){return n8(H,K)?H:K}(this.dragPivot,d),
end:function(H,K){return n8(H,K)?K:H}(this.dragPivot,d)},this.dragPivot||(this.selectionState="START_DATE"))};
_.G.handleCalendarDateMouseLeave=function(){};
_.G.handleCalendarSubmitDateRange=function(){this.selection&&!rj4(this.selection)&&_.oF(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.G.updateInvalidState=function(){var d=function(H,K){K?H.setAttribute("invalid",""):H.removeAttribute("invalid")};
d(this.startDateInput,this.isStartDateInvalid);d(this.endDateInput,this.isEndDateInvalid)};
_.G.updateDateStrings=function(){this.selection&&(rj4(this.selection)?IZL(this.selection):(IZL(this.selection.start),IZL(this.selection.end)))};
_.G.updateCalendarSelection=function(d){this.calendar.updateSelection(Object.assign({},d,{selectionState:this.selectionState}))};
_.G.updateIsStartDateInvalidFromBinding=function(d){this.isStartDateInvalid=d.detail.value};
_.G.updateIsEndDateInvalidFromBinding=function(d){this.isEndDateInvalid=d.detail.value};
_.G.updateStartDateStringFromBinding=function(){};
_.G.updateEndDateStringFromBinding=function(){};
_.H3.Object.defineProperties(Sx.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:C8(this.data.dateRangeStart),end:C8(this.data.dateRangeEnd),selection:{start:C8(this.data.selection.start),end:C8(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Bxl(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&zEL(this.selection)}}});
Sx.prototype.resetTextboxes=Sx.prototype.resetTextboxes;Sx.prototype.observeSelection=Sx.prototype.observeSelection;Sx.prototype.dataChanged=Sx.prototype.dataChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Sx.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Sx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.VP("#calendar"),_.O("design:type",Object)],Sx.prototype,"calendar",void 0);
_.t([_.VP("#start-date"),_.O("design:type",Object)],Sx.prototype,"startDateInput",void 0);_.t([_.VP("#end-date"),_.O("design:type",Object)],Sx.prototype,"endDateInput",void 0);_.t([_.r(),_.O("design:type",Object)],Sx.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Sx.prototype,"selection",void 0);_.t([_.r(),_.O("design:type",String)],Sx.prototype,"selectionState",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Sx.prototype,"calendarConfig",null);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Sx.prototype,"errorMessage",null);_.t([_.I("selection"),_.O("design:type",Object),_.O("design:paramtypes",[])],Sx.prototype,"startDate",null);_.t([_.I("selection"),_.O("design:type",Object),_.O("design:paramtypes",[])],Sx.prototype,"endDate",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Sx.prototype,"dataChanged",null);
_.t([_.CK("selection","selectionState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Sx.prototype,"observeSelection",null);_.t([_.CK("selectionState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Sx.prototype,"resetTextboxes",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Sx);
_.T(Sx,"ytd-date-period-picker-renderer",function(){if(wYB!==void 0)return wYB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-period-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="control-area" class="style-scope ytd-date-period-picker-renderer">\n  <form id="form" class="style-scope ytd-date-period-picker-renderer">\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="start-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.startDateField.textInputFormFieldRenderer]]" invalid="[[isStartDateInvalid]]" value="[[startDateString]]" on-blur="onDateInputBlur" on-focusin="onStartDateTapOrFocus" on-input="onStartDateTextChange" on-invalid-changed="updateIsStartDateInvalidFromBinding" on-tap="onStartDateTapOrFocus" on-value-changed="updateStartDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isStartDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="separator" class="style-scope ytd-date-period-picker-renderer">\u2013</div>\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="end-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.endDateField.textInputFormFieldRenderer]]" invalid="[[isEndDateInvalid]]" value="[[endDateString]]" on-blur="onDateInputBlur" on-focusin="onEndDateTapOrFocus" on-input="onEndDateTextChange" on-invalid-changed="updateIsEndDateInvalidFromBinding" on-tap="onEndDateTapOrFocus" on-value-changed="updateEndDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isEndDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n  </form>\n</div>\n\n<ytd-scrollable-calendar id="calendar" calendar-config="[[calendarConfig]]" class="style-scope ytd-date-period-picker-renderer">\n</ytd-scrollable-calendar>\n\n<div id="buttons" class="style-scope ytd-date-period-picker-renderer">\n  <div id="cancel-button" class="style-scope ytd-date-period-picker-renderer"></div>\n  <div id="apply-button" class="style-scope ytd-date-period-picker-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return wYB=d},{mode:1});var En=function(){var d=_.B.apply(this,arguments)||this;var H={};d.actionMap=(H["ytd-date-period-picker-apply"]="handleDateRangeUpdated",H);return d};
_.m(En,_.B);En.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
En.prototype.handleDateRangeUpdated=function(){};
_.t([_.r(),_.O("design:type",Object)],En.prototype,"data",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],En.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],En.prototype,"rendererstamperBehavior",void 0);_.t([_.Z({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],En);
_.T(En,"ytd-report-history-section-header-renderer",function(){if(m4B!==void 0)return m4B;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="header-content style-scope ytd-report-history-section-header-renderer">\n  <div id="time-range-dropdown" class="filter style-scope ytd-report-history-section-header-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return m4B=d},{mode:1});var Wyl;var Bml;var zVU;var yW=function(){return _.B.apply(this,arguments)||this};
_.m(yW,_.B);_.H3.Object.defineProperties(yW.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?0:(H=d.icon)==null?0:H.iconType)?_.kv(this.data.icon.iconType):""}}});
_.t([_.r(),_.O("design:type",Object)],yW.prototype,"data",void 0);_.t([_.I("data"),_.O("design:type",String),_.O("design:paramtypes",[])],yW.prototype,"icon",null);_.t([_.Z({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],yW);
_.T(yW,"ytd-report-history-table-text-cell-renderer",function(){if(zVU!==void 0)return zVU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-text-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="icon-wrapper style-scope ytd-report-history-table-text-cell-renderer" hidden="[[!icon]]">\n  <yt-icon icon="[[icon]]" class="style-scope ytd-report-history-table-text-cell-renderer"></yt-icon>\n</div>\n<div class="text style-scope ytd-report-history-table-text-cell-renderer">\n  <yt-formatted-string class="main-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.text]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="sub-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.shortByLineText]]">\n  </yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return zVU=d},{mode:1});var bR=function(){return _.B.apply(this,arguments)||this};
_.m(bR,_.B);bR.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],bR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],bR.prototype,"data",void 0);_.t([_.Z({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],bR);
_.T(bR,"ytd-report-history-table-reason-cell-renderer",function(){if(Bml!==void 0)return Bml;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-reason-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="latest-reason" class="style-scope ytd-report-history-table-reason-cell-renderer"></div>\n<div id="show-all-reasons" hidden="[[!data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer">\n  <yt-formatted-string text="[[data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer"></yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Bml=d},{mode:1});var NH=function(){return _.B.apply(this,arguments)||this};
_.m(NH,_.B);NH.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],NH.prototype,"rendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],NH.prototype,"data",void 0);_.t([_.Z({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],NH);
_.T(NH,"ytd-report-history-table-cell-renderer",function(){if(Wyl!==void 0)return Wyl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cell-container" class="style-scope ytd-report-history-table-cell-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
return Wyl=d},{mode:1});var XY7;var Dn=function(){var d=_.B.apply(this,arguments)||this;d.columnType={type:"REPORT_HISTORY_COLUMN_TYPE",content:"REPORT_HISTORY_COLUMN_CONTENT",reason:"REPORT_HISTORY_COLUMN_REASON",status:"REPORT_HISTORY_COLUMN_STATUS",date:"REPORT_HISTORY_COLUMN_DATE"};return d};
_.m(Dn,_.B);Dn.prototype.onDataChanged=function(){var d;if((d=this.data)==null?0:d.style)this.componentStyle=this.getStyleName(this.data.style)};
Dn.prototype.getCellForColumn=function(d){return this.cells.find(function(H){var K;return((K=_.M(H==null?void 0:H.cell,v3N)||_.M(H==null?void 0:H.cell,jY0))==null?void 0:K.columnId)===d.type})};
Dn.prototype.getClassForColumn=function(d){switch(d){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Dn.prototype.getStyleName=function(d){switch(d){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.H3.Object.defineProperties(Dn.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var d;return(((d=this.data)==null?void 0:d.cells)||[]).map(function(H){return _.M(H,Avl)})}}});
Dn.prototype.onDataChanged=Dn.prototype.onDataChanged;_.t([_.r(),_.O("design:type",Object)],Dn.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Array)],Dn.prototype,"columnRenderData",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],Dn.prototype,"componentStyle",void 0);_.t([_.I("data"),_.O("design:type",Array),_.O("design:paramtypes",[])],Dn.prototype,"cells",null);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dn.prototype,"onDataChanged",null);_.t([_.Z({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Dn);
_.T(Dn,"ytd-report-history-table-row-renderer",function(){if(XY7!==void 0)return XY7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="row-container" class="style-scope ytd-report-history-table-row-renderer">\n  <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-report-history-table-row-renderer">\n    <div class$="[[column.classes]] cell-body style-scope ytd-report-history-table-row-renderer" role="cell" style$="[[column.style]]">\n      <ytd-report-history-table-cell-renderer class$="[[getClassForColumn(column.type)]] style-scope ytd-report-history-table-row-renderer" data="[[getCellForColumn(column)]]"></ytd-report-history-table-cell-renderer>\n    </div>\n  </template>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return XY7=d},{mode:1});var JKl;var syA;var TxF={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},Qgf={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var fk=function(){return _.B.apply(this,arguments)||this};
_.m(fk,_.B);fk.prototype.configureRendererStamper=function(){return{"data.rows":{id:"table-body",mapping:{reportHistoryTableRowRenderer:{component:"ytd-report-history-table-row-renderer",properties:{columnRenderData:"[[columnRenderData]]"},attributes:{role:"row"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",attributes:{role:"row"}}}}}};
fk.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.H3.Object.defineProperties(fk.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?0:d.columns)?E7E(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Ov4(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var d=this.tableSpec,H=TxF;H=H===void 0?Qgf:H;H=SJF(d.columnDimensions,d.columnsToShow||[],H);d=0;H=_.q(H);for(var K=H.next();!K.done;K=H.next())K=K.value,d+=K.minWidth+K.paddingLeft+K.paddingRight;return d}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.t([_.u(_.yH),_.O("design:type",Object)],fk.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],fk.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],fk.prototype,"data",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],fk.prototype,"tableSpec",null);_.t([_.I("tableSpec"),_.O("design:type",Array),_.O("design:paramtypes",[])],fk.prototype,"columnRenderData",null);
_.t([_.I("tableSpec"),_.O("design:type",Number),_.O("design:paramtypes",[])],fk.prototype,"totalMinWidth",null);_.t([_.I("totalMinWidth"),_.O("design:type",String),_.O("design:paramtypes",[])],fk.prototype,"tableWidthStyle",null);_.t([_.Z({is:"ytd-table-renderer",disableElementRegistration:!0})],fk);
_.T(fk,"ytd-table-renderer",function(){if(syA!==void 0)return syA;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-table-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="table-content" role="table" style$="[[tableWidthStyle]]" class="style-scope ytd-table-renderer">\n  <div id="table-header" role="row" class="style-scope ytd-table-renderer">\n    <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-table-renderer">\n      <div class$="[[column.classes]] cell-header style-scope ytd-table-renderer" style$="[[column.style]]" role="columnheader">\n        <h4 id="[[column.type]]-header-name" class="header-name style-scope ytd-table-renderer">\n          <span class="style-scope ytd-table-renderer">[[column.headerName]]</span>\n        </h4>\n        <div class="cell-header-icon style-scope ytd-table-renderer" hidden="[[!column.headerIcon]]">\n          <yt-icon icon="[[column.headerIcon]]" class="style-scope ytd-table-renderer"></yt-icon>\n        </div>\n      </div>\n    </template> \n  </div>\n  <div id="table-body" class="style-scope ytd-table-renderer">\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return syA=d},{mode:1});var Aq=function(){return _.B.apply(this,arguments)||this};
_.m(Aq,_.B);Aq.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Aq.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Aq.prototype,"data",void 0);_.t([_.Z({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Aq);
_.T(Aq,"ytd-report-reason-history-modal-renderer",function(){if(JKl!==void 0)return JKl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-reason-history-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="report-history-modal-body" class="style-scope ytd-report-reason-history-modal-renderer">\n  <h4 class="title style-scope ytd-report-reason-history-modal-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-report-reason-history-modal-renderer"></yt-formatted-string>\n  </h4>\n  <div id="content-info" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-report-reason-history-modal-renderer">\n    <div id="reasons-table" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div id="report-history-modal-footer" class="style-scope ytd-report-reason-history-modal-renderer">\n  <div id="done-button" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return JKl=d},{mode:1});var Fy7;var ZLA;var TmA;var jx=function(){return _.B.apply(this,arguments)||this};
_.m(jx,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],jx.prototype,"data",void 0);_.t([_.Z({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],jx);
_.T(jx,"ytd-profile-column-stats-entry-renderer",function(){if(TmA!==void 0)return TmA;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.label)]]</div>\n<div id="value" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.value)]]</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return TmA=d},{mode:1});var QyS;var vA=function(){return _.B.apply(this,arguments)||this};
_.m(vA,_.B);vA.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],vA.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],vA.prototype,"data",void 0);_.t([_.Z({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],vA);
_.T(vA,"ytd-profile-column-stats-renderer",function(){if(QyS!==void 0)return QyS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-stats-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return QyS=d},{mode:1});var tQN;var HO=function(){return _.B.apply(this,arguments)||this};
_.m(HO,_.B);_.H3.Object.defineProperties(HO.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.data)==null||!d.useThumbnailSize)return 80;var H,K;d=(H=this.data)==null?void 0:(K=H.thumbnail)==null?void 0:K.thumbnails;var c;return d&&((c=d[0])==null?void 0:c.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.data)==null||!d.useThumbnailSize)return 80;var H,K;d=(H=this.data)==null?void 0:(K=H.thumbnail)==null?void 0:K.thumbnails;var c;return d&&((c=d[0])==null?void 0:c.height)||80}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],HO.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],HO.prototype,"componentStyle",void 0);_.t([_.I("data.useThumbnailSize"),_.O("design:type",Object),_.O("design:paramtypes",[])],HO.prototype,"thumbnailWidth",null);
_.t([_.I("data.useThumbnailSize"),_.O("design:type",Object),_.O("design:paramtypes",[])],HO.prototype,"thumbnailHeight",null);_.t([_.Z({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],HO);
_.T(HO,"ytd-profile-column-user-info-renderer",function(){if(tQN!==void 0)return tQN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-user-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="thumbnail" height="[[thumbnailHeight]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-profile-column-user-info-renderer">\n</yt-img-shadow>\n<div id="title" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.subtitle)]]</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return tQN=d},{mode:1});var $g=function(){return _.B.apply(this,arguments)||this};
_.m($g,_.B);$g.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],$g.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],$g.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],$g.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],$g.prototype,"componentStyle",void 0);_.t([_.Z({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],$g);
_.T($g,"ytd-profile-column-renderer",function(){if(ZLA!==void 0)return ZLA;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return ZLA=d},{mode:1});var KW=function(){var d=_.B.apply(this,arguments)||this;d.componentStyle="NON_CENTERED_PROFILE";return d};
_.m(KW,_.B);KW.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
KW.prototype.getIcon=function(d){return d?"settings:"+d.toLowerCase():null};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],KW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],KW.prototype,"data",void 0);_.t([_.Z({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],KW);
_.T(KW,"ytd-page-introduction-renderer",function(){if(Fy7!==void 0)return Fy7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-introduction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-content" class="style-scope ytd-page-introduction-renderer">\n  <div id="introduction-text" class="style-scope ytd-page-introduction-renderer">\n    <div id="name" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.pageTitle)]]</div>\n    <div id="title" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.headerText)]]</div>\n    <yt-formatted-string id="text" split-lines="" text="[[data.bodyText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n    <ul class="introduction-bullet-items style-scope ytd-page-introduction-renderer" hidden="[[!data.bulletMessages]]">\n      <template is="dom-repeat" items="[[data.bulletMessages]]" as="bullet" class="style-scope ytd-page-introduction-renderer">\n        <li class="style-scope ytd-page-introduction-renderer">\n          <yt-formatted-string id="text" text="[[bullet]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string>\n        </li>\n      </template>\n    </ul>\n    <div class="introduction-additional-lines style-scope ytd-page-introduction-renderer" hidden="[[!data.additionalLines]]">\n      <template is="dom-repeat" items="[[data.additionalLines]]" as="line" class="style-scope ytd-page-introduction-renderer">\n        <p class="style-scope ytd-page-introduction-renderer"> <yt-formatted-string id="text" text="[[line]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string> </p>\n      </template>\n    </div>\n    <yt-formatted-string id="text" force-default-style="" text="[[data.footerText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n  </div>\n  <yt-icon hidden="[[!data.headerIcon]]" icon="[[getIcon(data.headerIcon.iconType)]]" class="style-scope ytd-page-introduction-renderer"></yt-icon>\n  <yt-img-shadow height="160" hidden="[[!data.headerImage]]" thumbnail="[[data.headerImage]]" class="style-scope ytd-page-introduction-renderer">\n  </yt-img-shadow>\n</div>\n<div id="report-stats" hidden="[[!data.reportStats]]" class="style-scope ytd-page-introduction-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Fy7=d},{mode:1});var YC3;var cO=function(){return _.B.apply(this,arguments)||this};
_.m(cO,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],cO.prototype,"data",void 0);_.t([_.Z({is:"ytd-report-description-renderer",disableElementRegistration:!0})],cO);
_.T(cO,"ytd-report-description-renderer",function(){if(YC3!==void 0)return YC3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-description-vertical-line style-scope ytd-report-description-renderer"></div>\n<div class="report-description style-scope ytd-report-description-renderer">\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-upper-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-receipt style-scope ytd-report-description-renderer" text="[[data.receipt]]">\n    </yt-formatted-string>\n  </div>\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-lower-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-state style-scope ytd-report-description-renderer" text="[[data.state]]">\n    </yt-formatted-string>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return YC3=d},{mode:1});var OLX;var SCS;var pW=function(){return _.B.apply(this,arguments)||this};
_.m(pW,_.B);pW.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],pW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],pW.prototype,"data",void 0);_.t([_.Z({is:"ytd-video-report-renderer",disableElementRegistration:!0})],pW);
_.T(pW,"ytd-video-report-renderer",function(){if(SCS!==void 0)return SCS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-report-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-thumbnail style-scope ytd-video-report-renderer"></div>\n<div class="report-info style-scope ytd-video-report-renderer">\n  <yt-formatted-string class="report-title style-scope ytd-video-report-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="report-subtitle style-scope ytd-video-report-renderer" text="[[data.shortBylineText]]">\n  </yt-formatted-string>\n</div>\n<div id="description" class="style-scope ytd-video-report-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return SCS=d},{mode:1});var E_S;_.XX("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.XX("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var go=function(){return _.B.apply(this,arguments)||this};
_.m(go,_.B);go.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
go.prototype.computeMessageStyle=function(d){return d};
go.prototype.computeButtonOverride=function(d){var H;if((d==null?0:(H=d.style)==null?0:H.value)&&d.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],go.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],go.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],go.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],go.prototype,"shelf",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],go.prototype,"panel",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.O("design:type",Boolean)],go.prototype,"componentStyle",void 0);_.t([_.r({computed:"computeButtonOverride(data)"}),_.O("design:type",Object)],go.prototype,"buttonOverride",void 0);_.t([_.Z({is:"ytd-message-renderer",disableElementRegistration:!0})],go);
_.T(go,"ytd-message-renderer",function(){if(E_S!==void 0)return E_S;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return E_S=d},{mode:1});var i0=function(){return _.B.apply(this,arguments)||this};
_.m(i0,_.B);i0.prototype.configureRendererStamper=function(){return{"data.reportHistorySectionRenderers":{id:"items",mapping:{videoReportRenderer:"ytd-video-report-renderer"}},"data.header":{id:"header",mapping:{reportHistorySectionHeaderRenderer:"ytd-report-history-section-header-renderer"}},"data.table":{id:"history-table",mapping:{tableRenderer:"ytd-table-renderer",messageRenderer:"ytd-message-renderer"}}}};
i0.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
i0.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.H3.Object.defineProperties(i0.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var d,H;return!!(((d=this.data)==null?0:d.header)&&((H=this.data)==null?0:H.table))}}});
i0.prototype.onRequestError=i0.prototype.onRequestError;_.t([_.u(_.yH),_.O("design:type",Object)],i0.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],i0.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],i0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],i0.prototype,"data",void 0);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],i0.prototype,"isUnifiedReportHistory",null);_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],i0.prototype,"onRequestError",null);_.t([_.Z({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],i0);
_.T(i0,"ytd-report-history-section-renderer",function(){if(OLX!==void 0)return OLX;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" hidden="[[isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer"></div>\n\n\n<div id="unified-report-history" hidden="[[!isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer">\n  <div id="header" class="style-scope ytd-report-history-section-renderer"></div>\n  <div class="table-container style-scope ytd-report-history-section-renderer">\n    <div id="history-table" class="style-scope ytd-report-history-section-renderer"></div>\n    <div class="spinner-container style-scope ytd-report-history-section-renderer" hidden="[[!continuationIsReloading]]">\n      <tp-yt-paper-spinner active="" class="style-scope ytd-report-history-section-renderer"></tp-yt-paper-spinner>\n    </div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return OLX=d},{mode:1});var yKC;var GM=function(){var d=_.B.apply(this,arguments)||this;d.answerExpanded=!1;return d};
_.m(GM,_.B);GM.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],GM.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],GM.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],GM.prototype,"answerExpanded",void 0);_.t([_.Z({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],GM);
_.T(GM,"ytd-handles-claiming-faq-renderer",function(){if(yKC!==void 0)return yKC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="head style-scope ytd-handles-claiming-faq-renderer" on-click="toggleAnswer">\n  <span class="question style-scope ytd-handles-claiming-faq-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope ytd-handles-claiming-faq-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope ytd-handles-claiming-faq-renderer">\n    <yt-formatted-string class="answer style-scope ytd-handles-claiming-faq-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return yKC=d},{mode:1});var bLg;var NmX=function(){return _.B.apply(this,arguments)||this};
_.m(NmX,_.B);_.t([_.r(),_.O("design:type",Object)],NmX.prototype,"data",void 0);_.t([_.Z({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],NmX);
_.T(NmX,"ytd-handles-claiming-faq-section-renderer",function(){if(bLg!==void 0)return bLg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-faq-section-renderer">\n  <yt-formatted-string id="title" text="[[data.header]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.faqs]]" class="style-scope ytd-handles-claiming-faq-section-renderer">\n    <ytd-handles-claiming-faq-renderer data="[[item]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></ytd-handles-claiming-faq-renderer>\n  </template>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return bLg=d},{mode:1});var D4N;var on=function(){var d=_.B.apply(this,arguments)||this;d.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";d.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";d.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";d.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";d.leftSquiggly=d.leftSquigglyLight;d.rightSquiggly=d.rightSquigglyLight;
d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};d.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return d};
_.m(on,_.B);_.G=on.prototype;_.G.updateLeftSquigglyStyle=function(){_.eO(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.G.updateRightSquigglyStyle=function(){_.eO(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.G.ready=function(){var d=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(d)};
_.G.onDarkModeToggledAction=function(d){d!==this.isDarkTheme&&(this.set("isDarkTheme",d),d?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.G.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
on.prototype.updateRightSquigglyStyle=on.prototype.updateRightSquigglyStyle;on.prototype.updateLeftSquigglyStyle=on.prototype.updateLeftSquigglyStyle;_.t([_.r(),_.O("design:type",Object)],on.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],on.prototype,"isDarkTheme",void 0);_.t([_.r(),_.O("design:type",String)],on.prototype,"leftSquiggly",void 0);_.t([_.r(),_.O("design:type",String)],on.prototype,"rightSquiggly",void 0);
_.t([_.CK("leftSquiggly"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],on.prototype,"updateLeftSquigglyStyle",null);_.t([_.CK("rightSquiggly"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],on.prototype,"updateRightSquigglyStyle",null);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],on.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],on.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],on.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],on.prototype,"actionButtonOverride",void 0);_.t([_.Z({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],on);
_.T(on,"ytd-handles-claiming-header-renderer",function(){if(D4N!==void 0)return D4N;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="left-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n<div id="outer-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <yt-img-shadow id="profile-picture" height="150" thumbnail="[[data.profilePicture]]" width="150" class="style-scope ytd-handles-claiming-header-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <div id="action-button" class="style-scope ytd-handles-claiming-header-renderer">\n  </div>\n</div>\n<div id="right-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="right-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return D4N=d},{mode:1});var f67;var qx=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};d.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";d.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";d.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";d.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
d.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";d.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";d.image0SquigglyBackground=d.image0LightSquigglyBackground;d.image1SquigglyBackground=d.image1LightSquigglyBackground;d.image3SquigglyBackground=d.image3LightSquigglyBackground;return d};
_.m(qx,_.B);_.G=qx.prototype;_.G.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.G.onDataChanged=function(){this.updateTitleAndImages()};
_.G.onThemeChanged=function(){this.updateTitleAndImages()};
_.G.onDarkModeToggledAction=function(d){d!==this.isDarkTheme&&(this.isDarkTheme=d)};
_.G.updateImage0SquigglyBackground=function(){_.eO(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.G.updateImage1SquigglyBackground=function(){_.eO(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.G.updateImage3SquigglyBackground=function(){_.eO(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.G.updateTitleAndImages=function(){var d,H;((d=this.data)==null?void 0:(H=d.titleImages)==null?void 0:H.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
qx.prototype.updateImage3SquigglyBackground=qx.prototype.updateImage3SquigglyBackground;qx.prototype.updateImage1SquigglyBackground=qx.prototype.updateImage1SquigglyBackground;qx.prototype.updateImage0SquigglyBackground=qx.prototype.updateImage0SquigglyBackground;qx.prototype.onThemeChanged=qx.prototype.onThemeChanged;qx.prototype.onDataChanged=qx.prototype.onDataChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],qx.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],qx.prototype,"isDarkTheme",void 0);_.t([_.r(),_.O("design:type",Object)],qx.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],qx.prototype,"title0",void 0);_.t([_.r(),_.O("design:type",Object)],qx.prototype,"title1",void 0);_.t([_.r(),_.O("design:type",Object)],qx.prototype,"title2",void 0);_.t([_.r(),_.O("design:type",Object)],qx.prototype,"title3",void 0);
_.t([_.r(),_.O("design:type",Object)],qx.prototype,"title4",void 0);_.t([_.r(),_.O("design:type",Object)],qx.prototype,"image0",void 0);_.t([_.r(),_.O("design:type",Object)],qx.prototype,"image1",void 0);_.t([_.r(),_.O("design:type",Object)],qx.prototype,"image2",void 0);_.t([_.r(),_.O("design:type",Object)],qx.prototype,"image3",void 0);_.t([_.r(),_.O("design:type",Object)],qx.prototype,"image4",void 0);_.t([_.r(),_.O("design:type",String)],qx.prototype,"image0SquigglyBackground",void 0);
_.t([_.r(),_.O("design:type",String)],qx.prototype,"image1SquigglyBackground",void 0);_.t([_.r(),_.O("design:type",String)],qx.prototype,"image3SquigglyBackground",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qx.prototype,"onDataChanged",null);_.t([_.CK("isDarkTheme"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qx.prototype,"onThemeChanged",null);
_.t([_.CK("image0SquigglyBackground"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qx.prototype,"updateImage0SquigglyBackground",null);_.t([_.CK("image1SquigglyBackground"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qx.prototype,"updateImage1SquigglyBackground",null);
_.t([_.CK("image3SquigglyBackground"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qx.prototype,"updateImage3SquigglyBackground",null);_.t([_.Z({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],qx);
_.T(qx,"ytd-handles-claiming-title-images-section-renderer",function(){if(f67!==void 0)return f67;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-title-images-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-title-images-section-renderer"></yt-formatted-string>\n<div id="image-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n  <div id="left-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image0" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <div id="background-image1" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title0" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title0]]"></yt-formatted-string>\n    <yt-img-shadow id="image0" height="802.21" thumbnail="[[image0]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title1" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title1]]"></yt-formatted-string>\n    <yt-img-shadow id="image1" height="436.87" thumbnail="[[image1]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="right-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image3" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title2" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title2]]"></yt-formatted-string>\n    <yt-img-shadow id="image2" height="439.5" thumbnail="[[image2]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title3" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title3]]"></yt-formatted-string>\n    <yt-img-shadow id="image3" height="334.9" thumbnail="[[image3]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title4" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title4]]"></yt-formatted-string>\n    <yt-img-shadow id="image4" height="334.9" thumbnail="[[image4]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return f67=d},{mode:1});var AKA;var an=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return d};
_.m(an,_.B);an.prototype.ready=function(){var d=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(d)};
an.prototype.onDarkModeToggledAction=function(d){d!==this.isDarkTheme&&this.set("isDarkTheme",d)};
an.prototype.onCopyButtonClick=function(){var d=this,H,K,c;return _.l(function(p){return(H=d.data)!=null&&H.primaryChannelUrl?p.yield(navigator.clipboard.writeText(((K=d.data)==null?0:K.encodedChannelUrl)?d.data.encodedChannelUrl:"https://"+_.jG((c=d.data)==null?void 0:c.primaryChannelUrl)),0):p.jumpTo(0)})};
_.t([_.r(),_.O("design:type",Object)],an.prototype,"data",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],an.prototype,"ytComponentBehavior",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],an.prototype,"isDarkTheme",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],an.prototype,"ytActionHandlerBehavior",void 0);_.t([_.Z({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],an);
_.T(an,"ytd-handles-claiming-update-social-renderer",function(){if(AKA!==void 0)return AKA;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-update-social-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-update-social-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <yt-formatted-string id="channel-info" text="[[data.primaryChannelInfoText]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="primary-url" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <yt-formatted-string id="primary-channel-url" text="[[data.primaryChannelUrl]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n    <yt-icon-button id="copy-icon-button" label="[[data.copyText]]" on-click="onCopyButtonClick" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <yt-icon id="copy-icon" icon="yt-icons:copy" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <yt-formatted-string id="social-title" text="[[data.socialTitle]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="socials-container" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <template is="dom-repeat" items="[[data.socialIcons]]" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <a id="social-icon" class="yt-simple-endpoint style-scope ytd-handles-claiming-update-social-renderer" href$="[[computeHref_(item.onTap)]]" data="[[item.onTap]]" tabindex="-1">\n        <yt-img-shadow height="48" thumbnail="[[item.icon]]" width="48" class="style-scope ytd-handles-claiming-update-social-renderer">\n        </yt-img-shadow>\n      </a>\n    </template>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return AKA=d},{mode:1});var jy3;var l0=function(){var d=_.B.apply(this,arguments)||this;d.JSC$15966_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";d.JSC$15966_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};d.squigglyBackground=d.JSC$15966_squigglyBackgroundLight;return d};
_.m(l0,_.B);l0.prototype.updateSquigglyBackgroundStyle=function(){_.eO(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
l0.prototype.ready=function(){var d=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",d);this.squigglyBackground=d?this.JSC$15966_squigglyBackgroundDark:this.JSC$15966_squigglyBackgroundLight};
l0.prototype.onDarkModeToggledAction=function(d){d!==this.isDarkTheme&&(this.set("isDarkTheme",d),this.squigglyBackground=d?this.JSC$15966_squigglyBackgroundDark:this.JSC$15966_squigglyBackgroundLight)};
l0.prototype.updateSquigglyBackgroundStyle=l0.prototype.updateSquigglyBackgroundStyle;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],l0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],l0.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],l0.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],l0.prototype,"isDarkTheme",void 0);_.t([_.r(),_.O("design:type",String)],l0.prototype,"squigglyBackground",void 0);_.t([_.CK("squigglyBackground"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],l0.prototype,"updateSquigglyBackgroundStyle",null);_.t([_.Z({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],l0);
_.T(l0,"ytd-handles-claiming-vanity-info-renderer",function(){if(jy3!==void 0)return jy3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-vanity-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer"></div>\n    <div id="text-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="info-title" text="[[data.infoTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="vanity-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="vanity-title" text="[[data.vanityTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <div id="vanities" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n        <template is="dom-repeat" items="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n          <yt-formatted-string class="vanity style-scope ytd-handles-claiming-vanity-info-renderer" force-default-style="" link-inherit-color="" split-lines="" text="[[item]]"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return jy3=d},{mode:1});var v_0;var e4=function(){var d=_.B.apply(this,arguments)||this;d.JSC$15969_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";d.JSC$15969_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";d.squigglyBackground=d.JSC$15969_squigglyBackgroundLight;d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return d};
_.m(e4,_.B);_.G=e4.prototype;_.G.ready=function(){var d=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(d)};
_.G.onDarkModeToggledAction=function(d){d!==this.isDarkTheme&&(this.set("isDarkTheme",d),this.squigglyBackground=d?this.JSC$15969_squigglyBackgroundDark:this.JSC$15969_squigglyBackgroundLight)};
_.G.updateSquigglyBackgroundStyle=function(){_.eO(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.G.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.G.detached=function(){this.stop()};
_.G.stop=function(){this.playerElement.stop()};
_.G.setupVideoPlayer=function(){var d=this,H,K;return _.l(function(c){H=d.data.videoId;K="http://i1.ytimg.com/vi/"+H+"/maxresdefault.jpg";d.playerElement.loadVideoWithPlayerVars({video_id:H,iurlhq:K});_.VE(c)})};
e4.prototype.onDataChanged=e4.prototype.onDataChanged;e4.prototype.updateSquigglyBackgroundStyle=e4.prototype.updateSquigglyBackgroundStyle;_.t([_.r({value:!1}),_.O("design:type",Boolean)],e4.prototype,"isDarkTheme",void 0);_.t([_.r(),_.O("design:type",String)],e4.prototype,"squigglyBackground",void 0);_.t([_.VP("#player"),_.O("design:type",Object)],e4.prototype,"playerElement",void 0);_.t([_.r(),_.O("design:type",Object)],e4.prototype,"data",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],e4.prototype,"ytActionHandlerBehavior",void 0);_.t([_.CK("squigglyBackground"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],e4.prototype,"updateSquigglyBackgroundStyle",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],e4.prototype,"onDataChanged",null);
_.t([_.Z({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],e4);
_.T(e4,"ytd-handles-claiming-video-item-renderer",function(){if(v_0!==void 0)return v_0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-video-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-video-item-renderer">\n  <div id="player-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_HANDLES_CLAIMING" player-id="handlesclaiming" class="style-scope ytd-handles-claiming-video-item-renderer">\n    </ytd-player>\n  </div>\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <div id="text-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n    </div>\n    <div id="pic-container" class="style-scope ytd-handles-claiming-video-item-renderer"></div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return v_0=d},{mode:1});var dpl;var xg=function(){var d=_.hB.apply(this,arguments)||this;d.dragging=!1;d.dragMouseStart=0;d.dragOffsetStart=0;d.containerWidthDiff=0;d.boundPrevClick=function(){d.set("offset",kg(d,d.offset-(d.scrollDistance||320)))};
d.boundNextClick=function(){d.set("offset",kg(d,d.offset+(d.scrollDistance||320)))};
d.boundScrollContainerMouseDown=function(H){d.dragMouseStart=H.clientX;d.dragOffsetStart=d.offset;d.dragging=!0};
d.boundScrollContainerDrag=function(H){d.dragging&&d.set("offset",kg(d,d.dragOffsetStart-(H.clientX-d.dragMouseStart)))};
d.boundMouseUp=function(){d.onMouseUp()};
d.boundWheelScroll=function(H){var K=0;Math.abs(H.deltaX)>=Math.abs(H.deltaY)?K=H.deltaX:H.shiftKey&&(K=H.deltaY);K!==0&&(d.offset+=K,H.stopPropagation(),H.preventDefault())};
d.boundChipCloudChipScrollIntoView=function(H){(H=H.detail)&&d.scrollChipIntoView(H)};
return d};
_.m(xg,_.hB);xg.prototype.attached=function(){var d=_.Gn(this.hostElement).querySelector("#scroll-container");d.addEventListener("wheel",this.boundWheelScroll);d.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);d.style.touchAction="pan-y";d.addEventListener("pointerdown",this.boundScrollContainerMouseDown);d.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
xg.prototype.detached=function(){var d=_.Gn(this.hostElement).querySelector("#scroll-container");d.removeEventListener("wheel",this.boundWheelScroll);d.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);d.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);d.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
xg.prototype.reset=function(){this.set("offset",0);_.vV(this,this.setContainerWidthDiff);nW(this)};
var kg=function(d,H){return Math.min(Math.max(H,0),d.containerWidthDiff)};
xg.prototype.onMouseUp=function(){this.dragging=!1};
xg.prototype.transformContainer=function(){this.offset=kg(this,this.offset);var d=_.Fm("HTML_DIR")==="rtl"?"":"-";_.Gn(this.hostElement).querySelector("#chips").style.transform="translateX("+d+this.offset+"px)";nW(this)};
var nW=function(d){_.vV(d,d.setButtonsState)};
xg.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=kg(this,this.offset));this.atStart=this.offset<=0};
xg.prototype.setContainerWidthDiff=function(){var d=_.Gn(this.hostElement).querySelector("#scroll-container"),H=_.Gn(this.hostElement).querySelector("#chips");d&&H&&(this.containerWidthDiff=H.clientWidth-d.clientWidth)};
xg.prototype.scrollChipIntoView=function(d){var H=_.Gn(this.hostElement).querySelector("#scroll-container");if(H){var K=this.atStart?0:106,c=this.atEnd?0:106;d.offsetLeft<this.offset+K?this.offset=kg(this,d.offsetLeft-K):d.offsetLeft+d.clientWidth>this.offset+H.clientWidth-c&&(this.offset=kg(this,d.offsetLeft+d.clientWidth+c-H.clientWidth))}};
xg.prototype.transformContainer=xg.prototype.transformContainer;_.t([_.r({value:0}),_.O("design:type",Number)],xg.prototype,"offset",void 0);_.t([_.r({value:!0,reflectToAttribute:!0}),_.O("design:type",Boolean)],xg.prototype,"atStart",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],xg.prototype,"atEnd",void 0);_.t([_.r(),_.O("design:type",Number)],xg.prototype,"scrollDistance",void 0);
_.t([_.CK("offset"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xg.prototype,"transformContainer",null);_.t([_.LK()],xg);var Hw3;var $pM;var pNX=_.H1(function(d){var H=d.data;d=_.q(_.GO(!1,void 0,"HDMMr"));var K=d.next().value,c=d.next().value;d={};d=_.xM("ytChipShapeChip",function(){a:switch(H==null?void 0:H().state){case 0:var g="ytChipShapeActive";break a;case 1:g="ytChipShapeDisabled";break a;default:g="ytChipShapeInactive"}return g},function(){var g=H().type===1||H().type===2,a=H();
return g||a!=null&&a.startIcon?a==null||!a.startIcon||a!=null&&a.text?g?"ytChipShapeEndIconPadding":(a==null?0:a.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(d.ytChipShapeFocused=function(){var g;
return K()&&((g=H())==null?void 0:g.state)!==1},d));
var p=function(g){if((H==null?void 0:H().state)!==1){var a,e;(e=(a=H()).onTap)==null||e.call(a,g)}};
return _.x("chip-shape",{class:"ytChipShapeHost","on:focusin":_.n7(function(){var g=_.Kj().resolve(_.$p(_.qZ));if(g){c(g.isKeyBoardInUse());var a,e;(e=(a=H()).onFocusIn)==null||e.call(a)}return!1}),
"on:focusout":_.n7(function(){c(!1);return!1})},_.x(KQd,{shouldWrapInButton:function(){return H().type!==2},
selected:function(){return H().state===0},
onClick:p,isDropdown:function(){return H().type===1},
accessibilityLabel:function(){return H().accessibilityLabel}},_.x("div",{class:d},_.x(_.n,{cond:function(){return H().startIcon},
then:function(){return _.x(_.hu,{icon:function(){var g;return(g=H())==null?void 0:g.startIcon},
className:function(){return H().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return H().text},_.x(czM,{shape:H,
onClick:p}),_.x(_.am,{model:{borderRadius:"8px"}}))))},"Lb");
pNX.idomCompat=!0;var KQd=_.H1(function(d){var H=_.n7(function(K){d.onClick(K);return!1});
return _.x(_.n,{cond:d.shouldWrapInButton,then:function(){return _.x("button",{class:"ytChipShapeButtonReset","on:click":H,role:function(){return d.isDropdown()?"combobox":"tab"},
"aria-label":d.accessibilityLabel,"aria-selected":d.selected},d.children)},
else:function(){return d.children}})},"Mb"),czM=_.H1(function(d){var H=d.shape;
var K=d.onClick;var c=_.n7(function(p){K(p);return!1});
return _.x(_.w9,null,_.x(_.MM,{when:function(){return H().type===1}},function(){return _.x(_.hu,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.x(_.MM,{when:function(){return H().type===2}},function(){return _.x("button",{class:"ytChipShapeButtonReset",
"on:click":c},_.x(_.hu,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.x(_.MM,{when:function(){return H().type===0}},function(){return _.x(_.HE,null)}))},"Nb");_.iV(pNX,"chip-shape",{props:{data:_.dl}});var CW=function(){var d=_.B.apply(this,arguments)||this;d.disableDeselectEvent=!1;d.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return d};
_.m(CW,_.B);_.G=CW.prototype;_.G.onSelectChipCommand=function(d){if(!this.selected&&this.data&&(d=_.M(d,g3S),d.targetId&&d.targetId===this.data.targetId))this.onTap()};
_.G.onFilterChipTransformCommand=function(d){if(!this.selected&&this.data){var H;(d=(H=_.M(d,vtC))==null?void 0:H.chipUniqueId)&&d===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.G.dataChanged=function(){var d=this;_.vV(this,function(){d.data&&d.data.isSelected&&!d.selected&&(d.scrollChipIntoView(),d.onTap())})};
_.G.computeChipStyle=function(d){return d!=null?d:"STYLE_DEFAULT"};
_.G.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.oF(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.oF(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.G.onFocus=function(){var d=_.Kj().resolve(_.$p(_.qZ));d&&d.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.G.scrollChipIntoView=function(){_.GT(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.H3.Object.defineProperties(CW.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return AjX({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
CW.prototype.onFocus=CW.prototype.onFocus;CW.prototype.onTap=CW.prototype.onTap;CW.prototype.dataChanged=CW.prototype.dataChanged;_.t([_.u(_.mm),_.O("design:type",Object)],CW.prototype,"ironButtonState",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],CW.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],CW.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.hQ),_.O("design:type",Object)],CW.prototype,"ironA11yKeysBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],CW.prototype,"disableDeselectEvent",void 0);_.t([_.r(),_.O("design:type",Object)],CW.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data.icon"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],CW.prototype,"hasIcon",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data.uniqueId"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],CW.prototype,"isGnomeChip",null);_.t([_.r({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.O("design:type",String)],CW.prototype,"chipStyle",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],CW.prototype,"selected",void 0);
_.t([_.I("data","selected"),_.O("design:type",Object),_.O("design:paramtypes",[])],CW.prototype,"chipShapeData",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],CW.prototype,"dataChanged",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],CW.prototype,"onTap",null);
_.t([_.nK("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],CW.prototype,"onFocus",null);_.t([_.ZV({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],CW);
_.T(CW,"yt-chip-cloud-chip-renderer",function(){if($pM===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;Hw3===void 0&&(Hw3=document.createElement("template"));var c=Hw3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);$pM=d}d=$pM;return d},{mode:2});var Rn=function(){var d=_.B.apply(this,arguments)||this;d.isDarkTheme=!1;d.notSticky=!1;d.transparentBackground=!1;d.shouldHide=!1;d.disableSticky=!1;d.fluidWidth=!1;d.isClipList=!1;d.defaultChipIndex=0;d.isPlaylist=!1;d.playlistVotingAnimationEnabled=_.h("web_enable_voting_animation");d.toolbarHeight=0;d.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return d};
_.m(Rn,_.B);_.G=Rn.prototype;
_.G.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.G.attached=function(){var d=this;document.addEventListener("scroll",_.xf(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var H;this.toolbarHeight=((H=document.querySelector("ytd-masthead"))==null?void 0:H.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(K){d.handleIntersect(K)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){d.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.G.detached=function(){var d;(d=this.intersectionObserver)==null||d.disconnect();var H;(H=this.resizeObserver)==null||H.disconnect();document.removeEventListener("scroll",_.xf(this,this.updateChipBarWidthAndTop))};
_.G.dataChanged=function(){var d=this,H,K,c;((c=_.M((H=this.data)==null?void 0:(K=H.contents)==null?void 0:K[0],X4B))==null?void 0:c.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var p=this.findSelectedChipIndex();this.selectedIndex!==p&&(this.selectedIndex=-1);_.vV(this,function(){d.selectedIndex=p;d.updating=!1;d.ytScrollableChipCloudBehavior.reset()})};
_.G.findSelectedChipIndex=function(){var d;if((d=this.data)==null||!d.contents)return 0;d=this.data.contents;for(var H=0;H<d.length;H++){var K=void 0;if((K=_.M(d[H],X4B))==null?0:K.isSelected)return H}return 0};
_.G.computeStyle=function(d){return d};
_.G.handleChipCloudChipSelectAction=function(d){d=this.JSC$15990_chipsSelector.indexOf(d);d>-1&&this.JSC$15990_chipsSelector.selectIndex(d)};
_.G.handleChipCloudChipDeselectAction=function(){if(_.h("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var d,H,K,c=(K=_.M((d=this.data)==null?void 0:(H=d.contents)==null?void 0:H[0],X4B))==null?void 0:K.navigationEndpoint;c&&_.oF(this.hostElement,"yt-browse-section-list-reload-endpoint",[c]);this.JSC$15990_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.G.onGuideIsExpandedChanged=function(){var d=this.ytScrollableChipCloudBehavior;_.vV(d,d.setContainerWidthDiff);nW(this.ytScrollableChipCloudBehavior)};
_.G.onResize=function(){var d=this.ytScrollableChipCloudBehavior;_.vV(d,d.setContainerWidthDiff);nW(this.ytScrollableChipCloudBehavior)};
_.G.onDarkModeToggledAction=function(d){this.isDarkTheme=d};
_.G.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.G.handleIntersect=function(d){this.notSticky=this.isChannelPageGrid||this.disableSticky||d[0].intersectionRatio===1};
_.G.updateDimensions=function(){var d=this.ytRendererBehavior.parentComponent;if(d){var H,K=(H=d.headerElement)!=null?H:d;_.eO(this.hostElement,{"--ytd-rich-grid-chips-bar-width":K.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.G.updateSelectedIndexFromBinding=function(d){this.selectedIndex=d.detail.value};
_.G.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var d;(d=this.sortFilterHeaderRendererElement)==null||d.setAttribute("is-playlist-page-with-filters","")}};
_.G.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(nAM(!this.notSticky))};
_.H3.Object.defineProperties(Rn.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}},
isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}},
isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}},
isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}},
sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var d,H,K=(d=this.data)==null?void 0:(H=d.contents)==null?void 0:H.find(function(c){return _.M(c,TYN)});
return{sortFilterHeaderRenderer:_.M(K,TYN)}}}});
Rn.prototype.dispatchChipBarIsSticky=Rn.prototype.dispatchChipBarIsSticky;Rn.prototype.isPlaylistPageChanged=Rn.prototype.isPlaylistPageChanged;Rn.prototype.updateChipBarWidthAndTop=Rn.prototype.updateChipBarWidthAndTop;Rn.prototype.onResize=Rn.prototype.onResize;Rn.prototype.onGuideIsExpandedChanged=Rn.prototype.onGuideIsExpandedChanged;Rn.prototype.dataChanged=Rn.prototype.dataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Rn.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Rn.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Rn.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.WZ),_.O("design:type",Object)],Rn.prototype,"ironResizableBehavior",void 0);_.t([_.u(),_.O("design:type",xg)],Rn.prototype,"ytScrollableChipCloudBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Rn.prototype,"ytdReduxBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],Rn.prototype,"data",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],Rn.prototype,"selectedIndex",void 0);_.t([_.r({value:320}),_.O("design:type",Number)],Rn.prototype,"scrollDistance",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Rn.prototype,"isDarkTheme",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Rn.prototype,"notSticky",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Rn.prototype,"transparentBackground",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.O("design:type",String)],Rn.prototype,"componentStyle",void 0);_.t([_.r({selector:_.yJi}),_.O("design:type",Boolean)],Rn.prototype,"guideIsExpanded",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Rn.prototype,"shouldHide",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Rn.prototype,"disableSticky",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Rn.prototype,"fluidWidth",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Rn.prototype,"isClipList",void 0);_.t([_.r(),_.O("design:type",Object)],Rn.prototype,"defaultChipIndex",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Rn.prototype,"isPlaylist",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Rn.prototype,"playlistVotingAnimationEnabled",void 0);_.t([_.VP("#chips"),_.O("design:type",Object)],Rn.prototype,"JSC$15990_chipsSelector",void 0);_.t([_.VP("ytd-sort-filter-header-renderer"),_.O("design:type",HTMLElement)],Rn.prototype,"sortFilterHeaderRendererElement",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Rn.prototype,"updating",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Rn.prototype,"dataChanged",null);_.t([_.CK("guideIsExpanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Rn.prototype,"onGuideIsExpandedChanged",null);_.t([_.nK("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Rn.prototype,"onResize",null);
_.t([_.Mr("isChannelPageGrid","disableSticky","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Rn.prototype,"updateChipBarWidthAndTop",null);_.t([_.I("componentStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Rn.prototype,"isChannelPageGrid",null);_.t([_.I("componentStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Rn.prototype,"isHashtagLandingPage",null);
_.t([_.CK("isPlaylistPage"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Rn.prototype,"isPlaylistPageChanged",null);_.t([_.I("componentStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Rn.prototype,"isPlaylistPage",null);_.t([_.I("componentStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Rn.prototype,"isDisableDeselectEvent",null);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Rn.prototype,"sortFilterHeaderRendererData",null);_.t([_.r({reflectToAttribute:!0,selector:_.vR5}),_.O("design:type",String)],Rn.prototype,"frostedGlassMode",void 0);_.t([_.CK("notSticky"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Rn.prototype,"dispatchChipBarIsSticky",null);_.t([_.Z({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Rn);
_.T(Rn,"ytd-feed-filter-chip-bar-renderer",function(){if(dpl!==void 0)return dpl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return dpl=d},{mode:1});var gcX;var iwg=_.H1(function(d){var H=d.data;var K=d.buttonIndex;var c=d.selectedIndex;var p=d.onSelect;var g=function(){return K()===c()},a=function(){var e,k;
return(k=(e=H().text)==null?void 0:e.content)!=null?k:""};
d=_.XN();return _.x("yt-toggleable-image-button-view-model",{class:function(){var e={};e=(e["toggleable-image-button-view-model-wiz"]=!0,e[""]=!0,e["toggleable-image-button-view-model-wiz__semi-transparent"]=c()!==-1&&!g(),e);return _.zx(e)},
tabindex:0,"aria-label":a,"aria-pressed":g,role:"button","on:keydown":d,"on:click":_.n7(function(){p(H().onSubmitCommand);return!1})},_.x(_.n,{cond:function(){return H().logo},
then:function(e){return _.x(_.d7,{data:e,className:function(){var k={};k=(k["toggleable-image-button-view-model-wiz__image"]=!0,k["toggleable-image-button-view-model-wiz__circular-radius"]=!(!H().backgroundColor||!H().backgroundColorDarkMode),k["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(g()&&H().backgroundColor&&H().backgroundColorDarkMode),k);return _.zx(k)},
alt:a,useWidth:!1,style:function(){if(g()&&H().backgroundColor&&H().backgroundColorDarkMode){var k=Sh(Number(H().backgroundColorDarkMode),"1");var C=Sh(Number(H().backgroundColor),"1");k="background: linear-gradient(180deg,"+k+","+C+") border-box;"}else k="";return k}})}}),_.x(_.am,{model:{borderRadius:"16px"}}),_.x("p",{class:function(){var e={};
e=(e["toggleable-image-button-view-model-wiz__label"]=!0,e["toggleable-image-button-view-model-wiz__bold-text"]=g(),e);return _.zx(e)}},_.x(_.j$,{text:function(){return H().text}})))},"Ob");
iwg.idomCompat=!0;var ocS=_.H1(function(d){var H=d.data;d=_.q(_.GO({index:-1,command:{}},void 0,"Zcqtsb"));var K=d.next().value,c=d.next().value;return _.x("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.x("div",{class:"nudge-form-view-model-wiz__form-options"},_.x(_.wB,{data:function(){return H().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(p,g){return _.x(iwg,{data:p.data,buttonIndex:g,selectedIndex:function(){return K().index},
onSelect:function(a){c({index:g(),command:a})}})}})),_.x(_.j$,{text:function(){return H().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.x("div",{class:"nudge-form-view-model-wiz__submit"},_.x(_.wB,{data:function(){return H().submitButton}},{buttonViewModel:function(p){return _.x(Gg6,{data:p.data,
isDisabled:function(){return K().index===-1},
onClick:function(){_.EG(K().command)}})}})))},"Pb");
ocS.idomCompat=!0;var Gg6=_.H1(function(d){var H=_.ey(function(){return Object.assign({},d.data(),{state:d.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.x(_.xk,{data:H,onClick:d.onClick})},"Qb");_.iV(ocS,"yt-nudge-form-view-model",{props:{data:_.dl}});var VL=function(){var d=_.B.apply(this,arguments)||this;d.roundedContainer=!0;d.buttonUpdate=_.h("web_modern_buttons");d.isDarkMode=!1;d.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return d};
_.m(VL,_.B);_.G=VL.prototype;_.G.computeNudgeStyle=function(d){return d?"modernized-nudge":""};
_.G.handleDarkModeToggledAction=function(d){this.isDarkMode=d};
_.G.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.G.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{chipCloudChipRenderer:"yt-chip-cloud-chip-renderer",nudgeFormViewModel:"yt-nudge-form-view-model"}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.G.computeIsHorizontalButtons=function(d){return d?!!d.applyModernizedStyle&&!!d.enableHorizontalButtons&&!!d.secondaryButton:!1};
_.H3.Object.defineProperties(VL.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var d,H;return(H=(d=this.data)==null?void 0:d.backgroundStyle)!=null?H:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var d,H;return(H=(d=this.data)==null?void 0:d.contentsLocation)!=null?H:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null?0:d.lightIconImage)}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],VL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],VL.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],VL.prototype,"actionHandlerBehavior",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("isHideEnclosingAction"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],VL.prototype,"isHidden",null);_.t([_.r(),_.O("design:type",Object)],VL.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],VL.prototype,"roundedContainer",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],VL.prototype,"buttonUpdate",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.O("design:type",String)],VL.prototype,"nudgeStyle",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data.trimStyle"),_.O("design:type",String),_.O("design:paramtypes",[])],VL.prototype,"trimStyle",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.backgroundStyle"),_.O("design:type",String),_.O("design:paramtypes",[])],VL.prototype,"backgroundStyle",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data.contentsLocation"),_.O("design:type",String),_.O("design:paramtypes",[])],VL.prototype,"contentsLocation",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.disableDropShadow"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],VL.prototype,"noShadow",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.lightIconImage"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],VL.prototype,"noIcon",null);
_.t([_.r({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.O("design:type",Boolean)],VL.prototype,"isHorizontalButtons",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Object)],VL.prototype,"isDarkMode",void 0);_.t([_.Z({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],VL);
_.T(VL,"ytd-feed-nudge-renderer",function(){if(gcX!==void 0)return gcX;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-nudge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismiss-button" class="style-scope ytd-feed-nudge-renderer"></div>\n  <div id="content-wrapper" class="style-scope ytd-feed-nudge-renderer">\n    <div id="header-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="image-container" hidden="[[!data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        <yt-img-shadow id="nudge-image" height="32" thumbnail="[[data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="text-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="title-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n      <div id="subtitle-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="subtitle" split-lines="" text="[[data.subtitle]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="contents" hidden="[[!data.contents]]" class="style-scope ytd-feed-nudge-renderer"></div>\n    <div id="button-container" hidden="[[!data.primaryButton]]" class="style-scope ytd-feed-nudge-renderer">\n      <div id="primary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n      <div id="secondary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismissed-content" class="style-scope ytd-feed-nudge-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return gcX=d},{mode:_.qk("kevlar_poly_si_batch_j028")?1:2});var q6M;var auS;var Uw=function(){var d=_.B.apply(this,arguments)||this;d.collapsed=!1;d.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return d};
_.m(Uw,_.B);Uw.prototype.configureRendererStamper=function(){return{"data.content":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",params:{isSlimlineSurvey:!0,showResponseRangeText:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Uw.prototype.handleRatingSelect=function(){var d;((d=this.data)==null?0:d.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Uw.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Uw.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Uw.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Uw.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.OO),_.O("design:type",Object)],Uw.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Uw.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Uw.prototype,"collapsed",void 0);_.t([_.Z({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Uw);
_.T(Uw,"ytd-slimline-survey-renderer",function(){if(auS!==void 0)return auS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slimline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-slimline-survey-renderer">\n  <div id="content-wrapper" class="style-scope ytd-slimline-survey-renderer">\n    <div id="header-container" class="style-scope ytd-slimline-survey-renderer">\n      <div id="title-container" class="style-scope ytd-slimline-survey-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-slimline-survey-renderer"></yt-formatted-string>\n      </div>\n      <div id="dismiss-button" class="style-scope ytd-slimline-survey-renderer"></div>\n    </div>\n    <div id="rating-survey" class="style-scope ytd-slimline-survey-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-slimline-survey-renderer">\n  <div id="dismissed-content" class="style-scope ytd-slimline-survey-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return auS=d},{mode:1});var lu0;var h7=function(){return _.B.apply(this,arguments)||this};
_.m(h7,_.B);h7.prototype.maybeGetBackgroundColor=function(d){return this.isDarkMode?d.section2Color:d.section3Color};
h7.prototype.colorPaletteChanged=function(){var d=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;d&&(d==null?0:d.secondaryTitleColor)&&this.maybeGetBackgroundColor(d)?(this.hostElement.style.backgroundColor=_.Yi(this.maybeGetBackgroundColor(d)),this.hostElement.style.color=_.Yi(d.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
h7.prototype.colorPaletteChanged=h7.prototype.colorPaletteChanged;_.t([_.u(_.to),_.O("design:type",Object)],h7.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],h7.prototype,"data",void 0);_.t([_.r({selector:function(d){return d.ui.darkModeIsEnabled}}),
_.O("design:type",Boolean)],h7.prototype,"isDarkMode",void 0);_.t([_.r(),_.O("design:type",Object)],h7.prototype,"lightColorPalette",void 0);_.t([_.r(),_.O("design:type",Object)],h7.prototype,"darkColorPalette",void 0);_.t([_.CK("darkColorPalette","lightColorPalette","data","isDarkMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],h7.prototype,"colorPaletteChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],h7);
_.T(h7,"ytd-endorsement-header-renderer",function(){if(lu0!==void 0)return lu0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-endorsement-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-endorsement-header-renderer"></yt-icon>\n<yt-formatted-string id="text" text="[[data.title]]" class="style-scope ytd-endorsement-header-renderer"></yt-formatted-string>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return lu0=d},{mode:1});_.iV(_.sg,"yt-decorated-avatar-view-model",{props:{data:_.dl,className:_.dl}});_.LW=new _.Av("VIEW_TRANSITION_MANAGER_TOKEN");var Mx=function(){var d=_.B.apply(this,arguments)||this;d.fullHeight=_.h("web_rich_grid_media_full_height");d.showChannelAvatar=!0;d.hasPlaylistThumbnail=!1;d.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};d.registerThumbnailForPageTransition=function(){_.h("web_thumbnail_to_watch_transition")&&_.e2M(_.Kj().resolve(_.LW),d.thumbnail)};
return d};
_.m(Mx,_.B);_.G=Mx.prototype;
_.G.configureRendererStamper=function(){return{lazyLoadMenu:Ug,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.G.attached=function(){this.updateInlinePreviewHoverListeners()};
_.G.detached=function(){this.clearInlinePreviewHoverListeners()};
_.G.shouldLazyLoadMenu=function(){var d=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.h("kevlar_modern_downloads_page")||!d};
_.G.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16015_inlinePreviewHoverListener=Y6({mediaRenderer:this,lockupElement:this.JSC$16015_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.G.getVideoPreviewOpts=function(){var d={},H;if((H=this.data)==null?0:H.multipleInlinePlaybackEndpoint)d=p_A;this.isRadio&&(d=cjM);return d};
_.G.clearInlinePreviewHoverListeners=function(){var d;(d=this.JSC$16015_inlinePreviewHoverListener)==null||f8(d)};
_.G.getOwner=function(){var d,H,K;return((d=this.data)==null?void 0:(H=d.channelThumbnailSupportedRenderers)==null?void 0:H.channelThumbnailWithLinkRenderer)||_.M((K=this.data)==null?void 0:K.showProviderChannelThumbnail,qL3)};
_.G.updateLockupSize=function(){var d;((d=this.getOwner())==null?0:d.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.G.getFeedbackEndpoint=function(d){if(_.M(d,_.Ww))return d;var H,K;d=(K=(H=_.M(d,_.kW))==null?void 0:H.commands)!=null?K:[];H=_.q(d);for(K=H.next();!K.done;K=H.next())if(K=this.getFeedbackEndpoint(K.value))return K;return null};
_.G.computeNavigationEndpoint=function(d){return jhX(d==null?void 0:d.navigationEndpoint)};
_.G.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var d=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(d)!==JSON.stringify(this.data)&&this.set("data",d)}};
_.G.onDataChanged=function(){var d=this,H=this.getOwner();if(H){this.set("data.owner",H);var K,c,p,g,a,e=((K=this.data)==null?void 0:(c=K.shortBylineText)==null?void 0:(p=c.runs)==null?void 0:(g=p[0])==null?void 0:g.text)||((a=H.name)==null?void 0:a.simpleText);this.set("data.owner.title",e)}var k,C,R,V,U,L;H=((k=this.data)==null?void 0:(C=k.thumbnailRenderer)==null?void 0:C.playlistVideoThumbnailRenderer)||((R=this.data)==null?void 0:(V=R.thumbnailRenderer)==null?void 0:V.playlistCustomThumbnailRenderer)||
((U=this.data)==null?void 0:(L=U.thumbnailRenderer)==null?void 0:L.showCustomThumbnailRenderer);var w;((w=this.data)==null?0:w.thumbnail)||!H||this.set("data.thumbnail",H.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){d.updateLockupSize()});
var W;if(k=((W=this.data)==null?void 0:W.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(k);var J;((J=this.dismissActionToReplayEntity)==null?0:J.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.G.onHiddenChanged=function(){this.updateLockupSize()};
_.G.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.oF(this.hostElement,"yt-terminate-video-preview-action");else{var d;(d=this.videoTitleLink)==null||d.focus()}};
_.G.metadataColorChanged=function(){var d;if(this.metadataColor&&((d=this.videoTitle)==null?0:d.style))this.videoTitle.style.color=_.Yi(this.metadataColor);else{var H,K;!this.metadataColor&&((H=this.videoTitle)==null?0:(K=H.style)==null?0:K.color)&&(this.videoTitle.style.color="")}};
_.G.onDetailsClick=function(d){var H=this.computedNavigationEndpoint;H&&(_.vg(_.jh(d),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.GT(this.hostElement,"yt-navigate",{endpoint:H}))};
_.G.onRendererTap=function(){this.registerThumbnailForPageTransition();var d,H,K=((d=this.data)==null?void 0:d.serviceEndpoint)||this.getFeedbackEndpoint((H=this.data)==null?void 0:H.navigationEndpoint);K&&_.M(K,_.Ww)&&this.ytComponentBehavior.resolveCommand(K)};
_.G.onMouseDown=function(d){var H=d.target,K=this.computedNavigationEndpoint,c;d=H.href||((c=_.M(K==null?void 0:K.commandMetadata,_.Co))==null?void 0:c.url);c=H.data||K;d&&c&&z45(d,c)};
_.G.computeVideoTitleText=function(){var d;if((d=this.data)==null?0:d.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.G.computeHasPlaylistThumbnail=function(d){var H,K,c,p,g;if((((H=d.thumbnailRenderer)==null?0:H.playlistVideoThumbnailRenderer)||((K=d.thumbnailRenderer)==null?0:K.playlistCustomThumbnailRenderer)||((c=d.thumbnailRenderer)==null?0:c.showCustomThumbnailRenderer)||((p=d.thumbnailRenderer)==null?0:p.playlistVideoThumbnailRenderer)||((g=d.thumbnailRenderer)==null?0:g.playlistCustomThumbnailRenderer))&&d.thumbnailOverlays)for(H=0;H<d.thumbnailOverlays.length;H++)if(K=void 0,(K=d.thumbnailOverlays[H])==
null?0:K.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.H3.Object.defineProperties(Mx.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.h("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var d;return(d=this.data)==null?void 0:d.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var d;return(d=this.data)==null?void 0:d.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.JSC$16015_inlinePreviewHoverListener)==null?0:QJ(d))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Ub(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?void 0:d.videoId)||((H=this.data)==null?void 0:H.playlistId)||""}}});
Mx.prototype.onMouseDown=Mx.prototype.onMouseDown;Mx.prototype.metadataColorChanged=Mx.prototype.metadataColorChanged;Mx.prototype.onIsDismissedChanged=Mx.prototype.onIsDismissedChanged;Mx.prototype.onHiddenChanged=Mx.prototype.onHiddenChanged;Mx.prototype.onDataChanged=Mx.prototype.onDataChanged;Mx.prototype.handleReloadDownloadsInfo=Mx.prototype.handleReloadDownloadsInfo;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Mx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Mx.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],Mx.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(_.fe),_.O("design:type",Object)],Mx.prototype,"ytdLockupBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Mx.prototype,"ytdReduxBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],Mx.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],Mx.prototype,"entitySelectorType",void 0);_.t([_.r(),_.O("design:type",Boolean)],Mx.prototype,"noEndpoints",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],Mx.prototype,"isRadio",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.JF}),_.O("design:type",Boolean)],Mx.prototype,"miniMode",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Mx.prototype,"fullHeight",void 0);
_.t([_.r(),_.O("design:type",Boolean)],Mx.prototype,"showDarkVideoMetadata",void 0);_.t([_.r(),_.O("design:type",Boolean)],Mx.prototype,"showLightVideoMetadata",void 0);_.t([_.r(),_.O("design:type",Number)],Mx.prototype,"metadataColor",void 0);_.t([_.r(),_.O("design:type",Object)],Mx.prototype,"showChannelAvatar",void 0);_.t([_.r(),_.O("design:type",Boolean)],Mx.prototype,"hidden",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],Mx.prototype,"showYtInteraction",void 0);
_.t([_.r(),_.O("design:type",String)],Mx.prototype,"dismissedContentId",void 0);_.t([_.r({selectorArgs:["dismissedContentId"],selector:Syh}),_.O("design:type",Object)],Mx.prototype,"dismissActionToReplayEntity",void 0);
_.t([_.r({selectorArgs:["entitySelectorType","mediaId"],selector:function(d,H,K){if(_.h("kevlar_modern_downloads_page")&&K&&H&&H!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(H){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var c=K9h(d,K);if(c){H=_.QO(d,K);var p=YL(d,K),g=xG4(d,K);d=Oc(d,K);var a=y$4(c,H,p,g);p=a.shortViewCountText;var e=a.publishedTimeText;a=a.badges;var k=d>0;g=SsF(c,H,g,d);c=_.mE(H)||H==="TRANSFER_STATE_FAILED"||H==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!MR(c.policyEntity)?
void 0:fvC(K,d,c.videoEntity.lengthSeconds);H==="TRANSFER_STATE_PAUSED_BY_USER"&&K&&!_.h("dl_resume_click_killswitch")&&(c={offlineVideoEndpoint:{videoId:K,action:"ACTION_RESUME"}});K={shortViewCountText:p,publishedTimeText:e,badges:a,isWatched:k,navigationEndpoint:c,thumbnailOverlays:g}}else K=void 0;return K;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(H=c$F(d,K))if(c=_.tF(d,K),g=_.pmM(d,K),c!=="TRANSFER_STATE_UNKNOWN"){K=EC1(H,c,g,K,_.TR(d));break a}K=void 0}return K;default:_.Jf(new _.m1("Error: entitySelectorType defined but not matched in selector.",
d,H))}}}),
_.O("design:type",Object)],Mx.prototype,"entityDrivenState",void 0);_.t([_.r({computed:"computeVideoTitleText(data)"}),_.O("design:type",Object)],Mx.prototype,"videoTitleText",void 0);_.t([_.r({computed:"computeHasPlaylistThumbnail(data)"}),_.O("design:type",Object)],Mx.prototype,"hasPlaylistThumbnail",void 0);_.t([_.r({computed:"computeNavigationEndpoint(data)"}),_.O("design:type",Object)],Mx.prototype,"computedNavigationEndpoint",void 0);
_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Mx.prototype,"typographyBump",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("typographyBump"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Mx.prototype,"typographyBumpV2",null);_.t([_.VP("#video-title"),_.O("design:type",HTMLElement)],Mx.prototype,"videoTitle",void 0);_.t([_.VP("#video-title-link"),_.O("design:type",HTMLElement)],Mx.prototype,"videoTitleLink",void 0);
_.t([_.VP("#thumbnail"),_.O("design:type",HTMLElement)],Mx.prototype,"thumbnail",void 0);_.t([_.VP("#dismissible"),_.O("design:type",HTMLElement)],Mx.prototype,"JSC$16015_dismissibleMedia",void 0);_.t([_.I("data.menu"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mx.prototype,"lazyLoadMenu",null);_.t([_.I("data.menu"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mx.prototype,"immediateLoadMenu",null);
_.t([_.Mr("entityDrivenState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Mx.prototype,"handleReloadDownloadsInfo",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Mx.prototype,"onDataChanged",null);_.t([_.Mr("hidden"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Mx.prototype,"onHiddenChanged",null);
_.t([_.CK("isDismissed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Mx.prototype,"onIsDismissedChanged",null);_.t([_.CK("metadataColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Mx.prototype,"metadataColorChanged",null);_.t([_.nK("mousedown"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Mx.prototype,"onMouseDown",null);
_.t([_.I("lockupIsHovered"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Mx.prototype,"isHovered",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Mx.prototype,"useAvatar",null);_.t([_.I("data","entitySelectorType"),_.O("design:type",String),_.O("design:paramtypes",[])],Mx.prototype,"mediaId",null);_.t([_.Z({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Mx);
var kg3=_.oq()(Mx,"ytd-rich-grid-media",function(){if(q6M!==void 0)return q6M;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return q6M=d},{mode:_.qk("kevlar_poly_si_batch_j072")?1:2});var xp3;var mP=function(){var d=_.B.apply(this,arguments)||this;d.removeMaxWidth=!0;d.insetMetadata=!1;return d};
_.m(mP,_.B);_.G=mP.prototype;_.G.configureRendererStamper=function(){return{innerMenu:Ug,outerMenu:Object.assign({},Ug,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.G.onDataChanged=function(){var d,H=((d=this.data)==null?void 0:d.trackingParams)||"";H&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(H));var K;((K=this.dismissActionToReplayEntity)==null?0:K.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.G.attached=function(){this.updateInlinePreviewHoverListeners()};
_.G.detached=function(){this.clearInlinePreviewHoverListeners()};
_.G.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16020_inlinePreviewHoverListener=Y6({mediaRenderer:this,lockupElement:this.JSC$16020_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:g7M})};
_.G.clearInlinePreviewHoverListeners=function(){var d;(d=this.JSC$16020_inlinePreviewHoverListener)==null||f8(d)};
_.G.onRendererTap=function(){var d,H,K=(d=this.data)==null?void 0:(H=d.serviceEndpoints)==null?void 0:H[0];_.M(K,_.Ww)&&this.componentBehavior.resolveCommand(K)};
_.G.onDetailsClick=function(d){var H,K=(H=this.data)==null?void 0:H.navigationEndpoint;K&&(_.vg(_.jh(d),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(K))};
_.G.onShow=function(){var d=this.data;d.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(d.onFirstVisibleCommand),delete d.onFirstVisibleCommand)};
_.H3.Object.defineProperties(mP.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var d;return this.insetMetadata?void 0:(d=this.data)==null?void 0:d.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var d;return this.insetMetadata?(d=this.data)==null?void 0:d.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var d=this.data;if(d!=null&&d.badge&&(d=_.M(d.badge,P$C))){var H,K,c;return[{metadataBadgeRenderer:{label:((H=d.label)==null?void 0:(K=H.runs)==null?void 0:K[0].text)||((c=d.label)==null?void 0:c.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var d=this.data;return Object.assign({},d.headline,{accessibility:d.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return this.isSlimShort?(d=this.computedTitle)==null?void 0:(H=d.accessibility)==null?void 0:(K=H.accessibilityData)==null?void 0:K.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.h("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.JSC$16020_inlinePreviewHoverListener)==null?0:QJ(d))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
mP.prototype.onDataChanged=mP.prototype.onDataChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],mP.prototype,"componentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.fe),_.O("design:type",Object)],mP.prototype,"ytdLockupBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],mP.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.OO),_.O("design:type",Object)],mP.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],mP.prototype,"ytdReduxBehavior",void 0);_.t([_.VP("ytd-thumbnail"),_.O("design:type",HTMLElement)],mP.prototype,"thumbnail",void 0);_.t([_.VP("#dismissible"),_.O("design:type",HTMLElement)],mP.prototype,"JSC$16020_dismissibleMedia",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],mP.prototype,"removeMaxWidth",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],mP.prototype,"insetMetadata",void 0);_.t([_.r(),_.O("design:type",String)],mP.prototype,"dismissedContentId",void 0);_.t([_.r({selectorArgs:["dismissedContentId"],selector:Syh}),_.O("design:type",Object)],mP.prototype,"dismissActionToReplayEntity",void 0);_.t([_.I("insetMetadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],mP.prototype,"thumbnailObjectFit",null);
_.t([_.I("data","insetMetadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],mP.prototype,"innerMenu",null);_.t([_.I("data","insetMetadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],mP.prototype,"outerMenu",null);_.t([_.r(),_.O("design:type",Object)],mP.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.JF}),_.O("design:type",Boolean)],mP.prototype,"miniMode",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mP.prototype,"onDataChanged",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],mP.prototype,"shortsBadges",null);_.t([_.I("data"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],mP.prototype,"isShort",null);
_.t([_.I("data"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],mP.prototype,"isSlimShort",null);_.t([_.I("data","isShort"),_.O("design:type",Object),_.O("design:paramtypes",[])],mP.prototype,"computedTitle",null);_.t([_.I("isSlimShort","computedTitle"),_.O("design:type",Object),_.O("design:paramtypes",[])],mP.prototype,"computedAccessibilityLabel",null);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],mP.prototype,"shouldForce2By3",null);_.t([_.I("lockupIsHovered"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],mP.prototype,"isHovered",null);_.t([_.Z({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],mP);
_.T(mP,"ytd-rich-grid-slim-media",function(){if(xp3!==void 0)return xp3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-slim-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-click="onRendererTap" class="style-scope ytd-rich-grid-slim-media">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" no-rounded-corners="[[isSlimShort]]" object-fit="[[thumbnailObjectFit]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-slim-media">\n  </ytd-thumbnail>\n  <div id="details" on-click="onDetailsClick" role="heading" aria-label$="[[computedAccessibilityLabel]]" class="style-scope ytd-rich-grid-slim-media">\n    <h3 class="style-scope ytd-rich-grid-slim-media">\n      <a class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-slim-media" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(computedTitle)]]" aria-label$="[[computedTitle.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">\n        <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-rich-grid-slim-media">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" class="style-scope ytd-rich-grid-slim-media">[[getSimpleString(computedTitle)]]</span>\n      </a>\n    </h3>\n    <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-rich-grid-slim-media"> [[getSimpleString(data.metadata)]] </span>\n    <ytd-video-meta-block class="grid style-scope ytd-rich-grid-slim-media" data="[[data]]" is-slim-short="[[isSlimShort]]" rich-meta="">\n    </ytd-video-meta-block>\n    <div id="menu" class="style-scope ytd-rich-grid-slim-media"></div>\n  </div>\n  <div id="menu-outer" class="style-scope ytd-rich-grid-slim-media"></div>\n  \n  <template is="dom-if" if="[[!isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[data.badges]]" hidden="[[!data.badges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n  <template is="dom-if" if="[[isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[shortsBadges]]" hidden="[[!shortsBadges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-grid-slim-media">\n  <div id="dismissed-content" class="style-scope ytd-rich-grid-slim-media"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-slim-media"></yt-interaction>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return xp3=d},{mode:_.qk("kevlar_poly_si_batch_j063")?1:2});var ncl;var Ci3;var wo=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");return d};
_.m(wo,_.B);wo.prototype.computeIcon=function(d){return d&&d.iconType?"yt-sys-icons:"+d.iconType.toLowerCase():""};
wo.prototype.onMouseEnter=function(){this.isHovered=!0};
wo.prototype.onMouseLeave=function(){this.isHovered=!1};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],wo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],wo.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],wo.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],wo.prototype,"isHovered",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],wo.prototype,"darkerDarkTheme",void 0);_.t([_.Z({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],wo);
_.T(wo,"ytd-expand-on-hover-card-renderer",function(){if(Ci3!==void 0)return Ci3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expand-on-hover-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="card" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline" on-mouseenter="onMouseEnter"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string></div></div><div id="overlay" hidden="[[!isHovered]]" on-mouseleave="onMouseLeave" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string><yt-formatted-string class="details style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.details]]" text="[[data.details]]"></yt-formatted-string></div></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Ci3=d},{mode:1});var R23,Vi3=function(){if(R23!==void 0)return R23;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="channel-user-state" hidden="[[!data.channelUserStateDescription]]" text="[[data.channelUserStateDescription]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><div id="content-section" class="style-scope ytd-channel-renderer"><div id="avatar-section" class="style-scope ytd-channel-renderer"><a class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="avatar" class="style-scope ytd-channel-renderer"><yt-img-shadow height="[[computeIconSize(compactStyle)]]" thumbnail="[[data.thumbnail]]" width="[[computeIconSize(compactStyle)]]" class="style-scope ytd-channel-renderer"></yt-img-shadow></div></a></div><div id="info-section" class="style-scope ytd-channel-renderer"><a id="main-link" class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="info" class="style-scope ytd-channel-renderer"><ytd-channel-name id="channel-title" badges="[[data.ownerBadges]]" channel-name="[[getSimpleString(data.title)]]" compact-style="[[compactStyle]]" wrap-text="" class="style-scope ytd-channel-renderer"></ytd-channel-name><div id="metadata" class="style-scope ytd-channel-renderer"><yt-formatted-string id="subscribers" respect-lang-dir="" text="[[data.subscriberCountText]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><span id="dot" hidden="[[computeHideDot(data)]]" class="style-scope ytd-channel-renderer">\u2022</span><span id="video-count" class="style-scope ytd-channel-renderer">[[getSimpleString(data.videoCountText)]]</span></div><yt-formatted-string id="description" hidden="[[compactStyle]]" text="[[data.descriptionSnippet]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-channel-renderer"></ytd-badge-supported-renderer></div><div id="navigation-icon" hidden="[[!data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"><yt-icon disable-upgrade$="[[!data.navigationIcon.iconType]]" icon="[[data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"></yt-icon></div></a><div id="buttons" class="style-scope ytd-channel-renderer"><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-channel-renderer"></div><div id="subscribe-button" hidden="[[!data.subscribeButton]]" class="style-scope ytd-channel-renderer"></div></div><div id="channel-memberships-button" hidden="[[!data.channelMembershipsButton]]" class="style-scope ytd-channel-renderer"></div></div></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return R23=d};_.XX("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var PO=function(){var d=_.B.apply(this,arguments)||this;d.compactStyle=!1;d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return d};
_.m(PO,_.B);_.G=PO.prototype;_.G.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.G.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.channelMembershipsButton":{id:"channel-memberships-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G.computeHideDot=function(d){return!(d&&d.subscriberCountText&&d.videoCountText)||this.compactStyle};
_.G.hasDualButtons=function(d){return d&&d.purchaseButton&&d.subscribeButton};
_.G.backgroundColorChanged=function(){if(this.data!==void 0){var d=this.data.backgroundColor;this.isDarkTheme&&(d=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=d!=null?_.Yi(d):"transparent"}};
_.G.onDarkModeToggledAction=function(d){this.isDarkTheme=d};
_.G.onTap=function(d){var H,K,c=((H=this.data)==null?void 0:H.navigationEndpoint)||((K=this.data)==null?void 0:K.serviceEndpoint);_.M(c,_.vI)&&(c&&_.Kj().resolve(_.cb).resolveCommand(c,{form:{element:this.hostElement}}),d.preventDefault())};
_.G.computeChannelEndpoint=function(d){return _.M(d,_.vI)?null:d};
_.G.computeHrefEndpoint=function(d){return _.M(d,_.vI)?null:this.componentBehavior.computeHref_(d)};
_.G.computeChannelRendererStyle=function(d){return d};
_.G.computeIconSize=function(d){return d?108:136};
_.H3.Object.defineProperties(PO,{template:{configurable:!0,enumerable:!0,get:function(){return Vi3()}}});
PO.prototype.backgroundColorChanged=PO.prototype.backgroundColorChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],PO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Ke),_.O("design:type",Object)],PO.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],PO.prototype,"componentBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],PO.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],PO.prototype,"isDarkTheme",void 0);_.t([_.r({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.O("design:type",String)],PO.prototype,"channelRendererStyle",void 0);_.t([_.r({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],PO.prototype,"dualButtons",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.O("design:type",Boolean)],PO.prototype,"useBiggerThumbs",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.GJ("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],PO.prototype,"biggerThumbStyle",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PO.prototype,"compactStyle",void 0);_.t([_.CK("data","isDarkTheme"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PO.prototype,"backgroundColorChanged",null);_.t([_.Z({is:"ytd-channel-renderer",disableElementRegistration:!0})],PO);_.T(PO,"ytd-channel-renderer",function(){return Vi3()},{mode:1});var UpB;var h2g;_.XX("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var u0=function(){var d=_.B.apply(this,arguments)||this;d.displayItemCount=2;d.collections=_.h("web_modern_collections_v2");d.hasPlaylistThumbnail=!1;d.stackThumbnailSize="large";return d};
_.m(u0,_.B);_.G=u0.prototype;_.G.attached=function(){this.updateInlinePreviewHoverListeners()};
_.G.detached=function(){this.clearInlinePreviewHoverListeners()};
_.G.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.G.computeFirstVideos=function(d,H){return d&&H?d.slice(0,H):[]};
_.G.computeThumbnailWidth=function(d,H){return d?H==="BIG"?500:H==="MASSIVE"?600:H==="MEDIUM"?450:420:360};
_.G.computeThumbnailHeight=function(d,H){return d?H==="BIG"?280:H==="MASSIVE"?337:234:202};
_.G.clearInlinePreviewHoverListeners=function(){var d;(d=this.JSC$16033_inlinePreviewHoverListener)==null||f8(d)};
_.G.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16033_inlinePreviewHoverListener=Y6({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:p_A,thumbnailElement:this.thumbnail})};
_.G.computeHasPlaylistThumbnail=function(d){var H,K;if((((H=d.thumbnailRenderer)==null?0:H.playlistVideoThumbnailRenderer)||((K=d.thumbnailRenderer)==null?0:K.playlistCustomThumbnailRenderer))&&d.thumbnailOverlays)for(H=0;H<d.thumbnailOverlays.length;H++)if(K=void 0,(K=d.thumbnailOverlays[H])==null?0:K.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.H3.Object.defineProperties(u0.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.JSC$16033_inlinePreviewHoverListener)==null?0:QJ(d))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
u0.prototype.dataChanged=u0.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.fe),_.O("design:type",Object)],u0.prototype,"ytdLockupBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],u0.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],u0.prototype,"displayItemCount",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.O("design:type",Boolean)],u0.prototype,"useBiggerThumbs",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.GJ("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],u0.prototype,"biggerThumbsStyle",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],u0.prototype,"collections",void 0);_.t([_.r({computed:"computeHasPlaylistThumbnail(data)"}),_.O("design:type",Object)],u0.prototype,"hasPlaylistThumbnail",void 0);_.t([_.r(),_.O("design:type",String)],u0.prototype,"stackThumbnailSize",void 0);_.t([_.VP("ytd-thumbnail"),_.O("design:type",HTMLElement)],u0.prototype,"thumbnail",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],u0.prototype,"dataChanged",null);_.t([_.I("lockupIsHovered"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],u0.prototype,"isHovered",null);_.t([_.Z({is:"ytd-radio-renderer",disableElementRegistration:!0})],u0);
_.T(u0,"ytd-radio-renderer",function(){if(h2g!==void 0)return h2g;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-thumbnail>\n<ytd-playlist-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="true" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-radio-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-radio-renderer" href="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-radio-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-radio-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-radio-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block id="meta" data="[[data]]" radio-meta="" class="style-scope ytd-radio-renderer"></ytd-video-meta-block>\n  </a>\n  <ul id="list" class="style-scope ytd-radio-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-radio-renderer">\n      <li class="style-scope ytd-radio-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-radio-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-radio-renderer"></yt-interaction>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return h2g=d},{mode:_.qk("kevlar_poly_si_batch_j058")?1:2});var LQd;_.XX("itemSectionRenderer","showRenderer","ytd-show-renderer");var In=function(){return _.B.apply(this,arguments)||this};
_.m(In,_.B);In.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
In.prototype.computeThumbnailWidth=function(d){return d?360:246};
In.prototype.computeUseProminentThumbs=function(d){return d};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],In.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],In.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],In.prototype,"isSearch",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.O("design:type",Boolean)],In.prototype,"useProminentThumbs",void 0);_.t([_.Z({is:"ytd-show-renderer",disableElementRegistration:!0})],In);
_.T(In,"ytd-show-renderer",function(){if(LQd!==void 0)return LQd;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="[[computeThumbnailWidth(useProminentThumbs)]]" class="style-scope ytd-show-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-show-renderer">\n<a id="logo-container" class="yt-simple-endpoint style-scope ytd-show-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-show-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-show-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block data="[[data]]" class="style-scope ytd-show-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer id="bottom-standalone-badge" bottom-standalone-badge="[[data.bottomStandaloneBadge]]" hidden="[[!data.bottomStandaloneBadge]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<div id="menu" class="style-scope ytd-show-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return LQd=d},{mode:1});_.XX("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var ro=function(){var d=_.B.apply(this,arguments)||this;d.isRichGrid=!1;return d};
_.m(ro,_.B);ro.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ro.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ro.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ro.prototype,"isRichGrid",void 0);_.t([_.Z({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],ro);
_.T(ro,"ytd-feed-entry-renderer",function(){if(UpB!==void 0)return UpB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[isRichGrid]]" thumbnail="[[data.ownerThumbnail]]" width="48" class="style-scope ytd-feed-entry-renderer"></yt-img-shadow>\n<div class="info style-scope ytd-feed-entry-renderer">\n  <div id="title-container" hidden="[[isRichGrid]]" class="style-scope ytd-feed-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="post" text="[[data.postText]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  <div id="contents" class="style-scope ytd-feed-entry-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return UpB=d},{mode:1});var MiU;var WO=function(){return _.B.apply(this,arguments)||this};
_.m(WO,_.B);WO.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.t([_.u(_.to),_.O("design:type",Object)],WO.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],WO.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],WO.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.sc,value:3}),_.O("design:type",Number)],WO.prototype,"itemsPerRow",void 0);
_.t([_.Z({is:"ytd-link-card-renderer",disableElementRegistration:!0})],WO);
_.T(WO,"ytd-link-card-renderer",function(){if(MiU!==void 0)return MiU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-link-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-link-card-renderer">\n  <a id="card-link" class="yt-simple-endpoint style-scope ytd-link-card-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n    <yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-link-card-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-link-card-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon id="chevron" hidden="[[!showChevronIcon(itemsPerRow)]]" icon="chevron_right" class="style-scope ytd-link-card-renderer">\n    </yt-icon>\n  </a>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return MiU=d},{mode:1});var mpl;var BO=function(){return _.B.apply(this,arguments)||this};
_.m(BO,_.B);_.G=BO.prototype;_.G.configureRendererStamper=function(){return{"data.menu":Ug,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.G.onRendererTap=function(d){if(!this.ytdDismissibleItemBehavior.isDismissed){var H,K=(H=this.data)==null?void 0:H.navigationEndpoint;K&&!_.vg(_.jh(d),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(K)?_.vg(_.jh(d),this.hostElement,["A"])||_.GT(this.hostElement,"yt-navigate",{endpoint:K}):this.ytComponentBehavior.resolveCommand(K,{}))}};
_.G.maybeComputeHref=function(d){return this.ytComponentBehavior.computeHref_(d,!0)};
_.G.getNavigationCommand=function(d){return this.isNavigationCommand(d)?d:null};
_.G.isNavigationCommand=function(d){return d?_.M(d,_.Lm)||_.M(d,_.AP)||_.M(d,_.yj)?!0:!1:!1};
BO.prototype.onRendererTap=BO.prototype.onRendererTap;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],BO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],BO.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],BO.prototype,"ytComponentBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],BO.prototype,"data",void 0);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],BO.prototype,"onRendererTap",null);_.t([_.Z({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],BO);
_.T(BO,"ytd-lumiere-promo-item-image-renderer",function(){if(mpl!==void 0)return mpl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-promo-item-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="thumbnail-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-img-shadow></a><div id="metadata" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="item-details" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="title" class="style-scope ytd-lumiere-promo-item-image-renderer"><h3 class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="title-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string><yt-icon class="hover-icon style-scope ytd-lumiere-promo-item-image-renderer" hidden="[[!data.showLauncherIcon]]" icon="open_in_new"></yt-icon></a></h3></div><yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string></div><div id="menu" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div></div><div id="dismissed" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="dismissed-content" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return mpl=d},{mode:1});var wNd;var zM=function(){return _.B.apply(this,arguments)||this};
_.m(zM,_.B);zM.prototype.computeLandscapeThumbnail=function(){var d;return((d=this.data)==null?void 0:d.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],zM.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],zM.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],zM.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.JF}),_.O("design:type",Boolean)],zM.prototype,"miniMode",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.sc}),_.O("design:type",Number)],zM.prototype,"itemsPerRow",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.O("design:type",Boolean)],zM.prototype,"landscapeThumbnail",void 0);_.t([_.Z({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],zM);
_.T(zM,"ytd-lumiere-shelf-details-renderer",function(){if(wNd!==void 0)return wNd;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-shelf-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-lumiere-shelf-details-renderer">\n  <div id="lumiere-shelf-details" class="style-scope ytd-lumiere-shelf-details-renderer">\n    <div id="title" class="style-scope ytd-lumiere-shelf-details-renderer">\n       <yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-shelf-details-renderer"></yt-formatted-string>\n    </div>\n    <div id="subtitle" class="style-scope ytd-lumiere-shelf-details-renderer">\n      <yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-badge-supported-renderer id="badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return wNd=d},{mode:_.qk("kevlar_poly_si_batch_j076")?1:2});var Pi0;var Xl=function(){return _.B.apply(this,arguments)||this};
_.m(Xl,_.B);Xl.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Xl.prototype,"data",void 0);_.t([_.Z({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Xl);
_.T(Xl,"ytd-primetime-promo-details-renderer",function(){if(Pi0!==void 0)return Pi0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" hidden="[[!data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><div id="centered-container" class="style-scope ytd-primetime-promo-details-renderer"><yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><div id="action-button" class="style-scope ytd-primetime-promo-details-renderer"></div></div></div><div id="header" hidden="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Pi0=d},{mode:1});var uKN;var J7=function(){return _.B.apply(this,arguments)||this};
_.m(J7,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],J7.prototype,"data",void 0);_.t([_.Z({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],J7);
_.T(J7,"ytd-panel-show-style-metadata-renderer",function(){if(uKN!==void 0)return uKN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-panel-show-style-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-panel-show-style-metadata-renderer"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return uKN=d},{mode:1});var IuC;var sw=function(){return _.B.apply(this,arguments)||this};
_.m(sw,_.B);_.G=sw.prototype;_.G.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.G.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.G.computeThumbnail=function(d){if(d)return d.smallFormFactorBackgroundThumbnail||d.largeFormFactorBackgroundThumbnail};
_.G.maybeComputeHref=function(d){return this.ytComponentBehavior.computeHref_(d,!0)};
_.G.isNavigationCommand=function(d){return d?_.M(d,_.Lm)||_.M(d,_.AP)||_.M(d,_.yj)?!0:!1:!1};
_.G.getNavigationCommand=function(d){return this.isNavigationCommand(d)?d:null};
sw.prototype.onPanelTap=sw.prototype.onPanelTap;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],sw.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],sw.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],sw.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],sw.prototype,"roundedContainer",void 0);_.t([_.r({reflectToAttribute:!0,value:_.h("web_modern_buttons")}),_.O("design:type",Boolean)],sw.prototype,"modernButtons",void 0);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sw.prototype,"onPanelTap",null);_.t([_.Z({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],sw);
_.T(sw,"ytd-primetime-promo-panel-renderer",function(){if(IuC!==void 0)return IuC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-primetime-promo-panel-renderer" href$="[[maybeComputeHref(data.command)]]" data="[[getNavigationCommand(data.command)]]" rel="[[computeNofollow_(data.command)]]"><yt-img-shadow thumbnail="[[computeThumbnail(data)]]" width="420" class="style-scope ytd-primetime-promo-panel-renderer"></yt-img-shadow><div id="action-button" class="style-scope ytd-primetime-promo-panel-renderer"><yt-formatted-string text="[[data.buttonText]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-formatted-string><yt-icon icon="[[data.contentIcon.iconType]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-icon></div></a><div id="panel-metadata" class="style-scope ytd-primetime-promo-panel-renderer"></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return IuC=d},{mode:1});_.iV(_.H1(function(d){d=_.dg(d,{data:{},useFullWidth:!1});var H=d.data,K=d.useFullWidth;d={};return _.x("teaser-card-view-model",{class:_.xM("ytTeaserCardViewModelHost",(d.ytTeaserCardViewModelUseFullWidth=function(){return K()},d))},_.x(_.n,{cond:function(){return H().onTap},
then:function(c){return _.x(_.Oj,{className:"ytTeaserCardViewModelLink",command:c},_.x("div",{class:"ytTeaserCardViewModelImageContainer"},_.x(_.n,{cond:function(){return H().image},
then:function(p){return _.x(_.d7,{data:p,className:"ytTeaserCardViewModelImage",alt:""})}})),_.x("p",{class:"ytTeaserCardViewModelCaption"},function(){return H().caption}))}}))},"Rb"),"teaser-card-view-model",{props:{data:_.dl,
useFullWidth:_.dl}});var rz3=new _.Av("RICH_GRID_VIDEO_RENDERER_TOKEN");_.iV(_.H1(function(d){var H=d.data;var K=d.showYtInteractionInContent;var c=function(){return!!H().selectableFeedback};
d=_.q(_.GO(!1,void 0,"nblDw"));var p=d.next().value,g=d.next().value;_.WE(function(){var U=_.M(H().primaryButton,_.EV);(U==null?0:U.isToggled)&&g(U.isToggled)});
d=_.n7(function(U){if(!c())return!1;if(p()){var L;var w=(L=H().selectableFeedback)==null?void 0:L.onDeselect}else{var W;w=(W=H().selectableFeedback)==null?void 0:W.onSelect}w&&_.EG(w,{form:{element:U.target}});g(!p());if(U=_.M(H().primaryButton,_.EV))U.isToggled=p();return!1});
var a=function(){if(!c()){var U,L=(U=H().loggingDirectives)==null?void 0:U.trackingParams;L&&_.nU(_.Kj().resolve(_.BC),L)}},e=_.yb5(),k=function(){var U;
return c()?(U=H().selectableFeedback)==null?void 0:U.a11yLabel:void 0},C=function(){return c()?{toggled:p()}:{}},R=_.Kj().resolve(_.$p(rz3)),V={};
return _.x("yt-feedback-item-renderer",{class:_.xM("ytFeedbackItemRendererHost",(V.ytFeedbackItemRendererSelectableFeedback=c,V)),"on:click":d,"on:keydown":e,title:k,"aria-label":k,"aria-pressed":function(){return c()?p():void 0},
tabindex:function(){return c()?0:void 0},
role:function(){return c()?"button":void 0}},_.x("div",{class:"ytFeedbackItemRendererContentContainer"},_.x(_.wB,{data:function(){return H().content}},{videoRenderer:function(U){return _.x(R,{data:U.data,
showYtInteraction:K})},
lockupViewModel:function(U){return _.x(_.lN,{data:U.data,containerType:2})}})),_.x("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.x(_.wB,{data:function(){return H().primaryButton}},{toggleButtonViewModel:function(U){return _.x(_.zm,{data:U.data,
buttonShapeOverrides:C,disableExplicitClickLogging:!0,onToggle:a})}})))},"Sb"),"yt-feedback-item-renderer",{props:{data:_.dl,
showYtInteractionInContent:_.dl}});var Fl=function(){var d=_.B.apply(this,arguments)||this;d.isShortsGrid=!1;d.isCompactGrid=!1;d.isShortsPanelGrid=!1;d.renderedFromRichGrid=!1;d.isInFirstColumn=!1;d.noGutterMargins=!1;d.isInlineGroupItem=!1;d.insetMetadata=!1;d.noBottomMarginInAds=!0;d.force16By9ThumbnailAspectRatio=!1;d.useCompactList=!1;d.containerType=2;d.thumbnailTargetWidth=9999;d.isResponsiveGrid=!1;d.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};d.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};
d.hoverListener=d.hover.bind(d);d.leaveListener=d.leave.bind(d);d.highlighted=!1;d.JSC$16068_unsubscribeFromInlinePreviewIsActive=function(){};
return d};
_.m(Fl,_.B);_.G=Fl.prototype;_.G.computeContainerType=function(){return this.useCompactList?3:2};
_.G.computeThumbnailTargetWidth=function(){var d;return(d=this.itemWidth)!=null?d:9999};
_.G.updateIsInFirstColumn=function(){var d;this.isInFirstColumn=((d=this.data)==null?void 0:d.colIndex)===0};
_.G.observerContainerType=function(){if(this.lockup){var d=this.lockup;d.containerType=this.containerType;d.sizing=this.sizing;d.typographyBump=this.typographyBump;d.itemWidth=this.itemWidth}this.richGridMedia&&_.h("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.h("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.G.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.G.leave=function(d){d=d.relatedTarget;var H=document.querySelector("ytd-video-preview");d&&H&&_.o1(H).contains(d)||this.removeAndCleanupHighlight()};
_.G.hover=function(){var d;if(!this.highlighted&&(!_.h("web_enable_rich_item_on_focus_effect")||(d=this.data)!=null&&d.onFocusEffect)){var H,K;((H=this.data)==null?void 0:(K=H.onFocusEffect)==null?void 0:K.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(d=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:d,boxShadow:"0 0 0 10px "+d}));var c,p;((c=this.data)==null?void 0:(p=c.onFocusEffect)==null?void 0:
p.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.G.removeAndCleanupHighlight=function(){this.hostElement.classList.remove("ytd-rich-item-renderer-highlight");this.hostElement.classList.remove("ytd-rich-item-renderer-highlight-border");Object.assign(this.hostElement.style,{backgroundColor:"",boxShadow:""});this.highlighted=!1};
_.G.registerHoverHighlightListeners=function(){var d=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16068_unsubscribeFromInlinePreviewIsActive=_.LU(_.dn(),_.fEi,function(H){d.highlighted&&!H&&d.removeAndCleanupHighlight()})};
_.G.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16068_unsubscribeFromInlinePreviewIsActive()};
_.G.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.G.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.G.getBackgroundColor=function(){var d,H,K=(d=this.data)==null?void 0:(H=d.onFocusEffect)==null?void 0:H.onFocusColor;if(K){if(document.documentElement.hasAttribute("dark")&&(K==null?0:K.darkTheme))return _.Yi(K==null?void 0:K.darkTheme);if(K==null?0:K.lightTheme)return _.Yi(K==null?void 0:K.lightTheme)}};
_.G.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var d=_.Fj(),H,K,c;d&&((H=this.data)==null?0:H.trackingParams)&&((K=this.data)==null?void 0:K.colIndex)!=null&&((c=this.data)==null?void 0:c.rowIndex)!=null&&_.j5(d,_.P1(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.G.isSlimMediaRenderer=function(d){return!!_.M(d==null?void 0:d.content,_.Km0)||!!_.M(d==null?void 0:d.content,$AX)||!!_.M(d==null?void 0:d.content,_.Zg)||!!_.M(d==null?void 0:d.content,MKl)};
_.G.isPostRenderer=function(){var d,H;return!!_.M((d=this.data)==null?void 0:d.content,Nv0)||!!_.M((H=this.data)==null?void 0:H.content,D5S)};
_.G.computeIsGameCardShelf=function(){var d;return!!_.M((d=this.data)==null?void 0:d.content,pqX)};
_.G.computeIsMiniGameCardShelf=function(){var d,H;return!!_.M((d=this.data)==null?void 0:d.content,Vq6)||!!_.M((H=this.data)==null?void 0:H.content,UY7)};
_.G.computeIsTeaserCard=function(){var d;return!!_.M((d=this.data)==null?void 0:d.content,UY7)};
_.G.computeIsSelectableFeedbackItem=function(){var d,H;return!((H=_.M((d=this.data)==null?void 0:d.content,_.LaM))==null||!H.selectableFeedback)};
_.G.computeContainsLumierePosters=function(){var d,H;return((H=_.M((d=this.data)==null?void 0:d.content,p9M))==null?void 0:H.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.G.computeIsExpandOnHoverCardShelf=function(){var d;return!!_.M((d=this.data)==null?void 0:d.content,cHl)};
_.G.computeIsLinkCardShelf=function(){var d;return!!_.M((d=this.data)==null?void 0:d.content,zq3)};
_.G.computeIsReelItemStyleAvatarCircle=function(d){var H;return((H=_.M(d==null?void 0:d.content,_.Zg))==null?void 0:H.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.G.computeIsLinkCardFullWidth=function(d,H){var K;return((K=_.M(d==null?void 0:d.content,zq3))==null?void 0:K.useFullWidth)||H<=2};
_.H3.Object.defineProperties(Fl.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.h("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.h("web_enable_rich_item_on_focus_effect")||_.h("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
Fl.prototype.richGridHoverHighlightChanged=Fl.prototype.richGridHoverHighlightChanged;Fl.prototype.observerContainerType=Fl.prototype.observerContainerType;Fl.prototype.updateIsInFirstColumn=Fl.prototype.updateIsInFirstColumn;_.t([_.u(_.to),_.O("design:type",Object)],Fl.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Fl.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.fe),_.O("design:type",Object)],Fl.prototype,"ytdLockupBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Fl.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.O("design:type",Boolean)],Fl.prototype,"isPost",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.O("design:type",Boolean)],Fl.prototype,"containsLumierePosters",void 0);_.t([_.r({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.O("design:type",Boolean)],Fl.prototype,"isSlimMedia",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.O("design:type",Boolean)],Fl.prototype,"isGameCardShelf",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.O("design:type",Boolean)],Fl.prototype,"isMiniGameCardShelf",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.O("design:type",Boolean)],Fl.prototype,"isTeaserCard",void 0);_.t([_.r({computed:"computeIsSelectableFeedbackItem(data)"}),_.O("design:type",Boolean)],Fl.prototype,"isSelectableFeedbackItem",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Fl.prototype,"isShortsGrid",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Fl.prototype,"isSlimGrid",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Fl.prototype,"isCompactGrid",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Fl.prototype,"isShortsPanelGrid",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.O("design:type",Boolean)],Fl.prototype,"isExpandOnHoverCardShelf",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.O("design:type",Boolean)],Fl.prototype,"isLinkCardShelf",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.sc,value:3}),_.O("design:type",Number)],Fl.prototype,"itemsPerRow",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Fl.prototype,"renderedFromRichGrid",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Fl.prototype,"isInFirstColumn",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Fl.prototype,"noGutterMargins",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Fl.prototype,"isInlineGroupItem",void 0);_.t([_.r(),_.O("design:type",Object)],Fl.prototype,"insetMetadata",void 0);
_.t([_.r(),_.O("design:type",Object)],Fl.prototype,"noBottomMarginInAds",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Fl.prototype,"isShelfItem",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.O("design:type",Boolean)],Fl.prototype,"isReelItemStyleAvatarCircle",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.O("design:type",Boolean)],Fl.prototype,"isLinkCardFullWidth",void 0);
_.t([_.r(),_.O("design:type",Object)],Fl.prototype,"force16By9ThumbnailAspectRatio",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Fl.prototype,"useCompactList",void 0);_.t([_.r(),_.O("design:type",String)],Fl.prototype,"sizing",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],Fl.prototype,"typographyBump",void 0);_.t([_.r(),_.O("design:type",Number)],Fl.prototype,"itemWidth",void 0);_.t([_.r(),_.O("design:type",Boolean)],Fl.prototype,"isHomeShelf",void 0);
_.t([_.r(),_.O("design:type",Boolean)],Fl.prototype,"isHomeGrid",void 0);_.t([_.VP("yt-lockup-view-model"),_.O("design:type",HTMLElement)],Fl.prototype,"lockup",void 0);_.t([_.VP("ytd-rich-grid-media"),_.O("design:type",HTMLElement)],Fl.prototype,"richGridMedia",void 0);_.t([_.VP("ytd-ad-slot-renderer"),_.O("design:type",HTMLElement)],Fl.prototype,"adSlotRenderer",void 0);_.t([_.r({computed:"computeContainerType(useCompactList)"}),_.O("design:type",Object)],Fl.prototype,"containerType",void 0);
_.t([_.r({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.O("design:type",Object)],Fl.prototype,"thumbnailTargetWidth",void 0);_.t([_.I("showYtInteractionOnRichItem"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Fl.prototype,"showYtInteractionOnRichGridMedia",null);_.t([_.I("isSelectableFeedbackItem","richGridHoverHighlight"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Fl.prototype,"showYtInteractionOnRichItem",null);
_.t([_.I("typographyBump","isHomeGrid"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Fl.prototype,"richTypographyBump",null);_.t([_.r({reflectToAttribute:!0}),_.I("isShortsGrid","isCompactGrid"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Fl.prototype,"richGridHoverHighlight",null);_.t([_.I("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.O("design:type",Number),_.O("design:paramtypes",[])],Fl.prototype,"shortsLockupViewModelAspectRatio",null);
_.t([_.I("isInlineGroupItem"),_.O("design:type",Number),_.O("design:paramtypes",[])],Fl.prototype,"shortsLockupViewModelScrimStyle",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fl.prototype,"updateIsInFirstColumn",null);_.t([_.CK("containerType","sizing","typographyBump"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fl.prototype,"observerContainerType",null);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Fl.prototype,"isResponsiveGrid",void 0);_.t([_.r(),_.O("design:type",Object)],Fl.prototype,"lockupExperiments",void 0);_.t([_.CK("richGridHoverHighlight"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fl.prototype,"richGridHoverHighlightChanged",null);_.t([_.Z({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],Fl);
_.WQ0=_.oq()(Fl,"ytd-rich-item-renderer",function(){if(ncl===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-item-renderer"></div>\n<yt-interaction id="interaction" class="extended rounded-large style-scope ytd-rich-item-renderer" hidden="[[!showYtInteractionOnRichItem]]"></yt-interaction>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);ncl=d}d=ncl;return d},{mode:_.qk("kevlar_poly_si_batch_j028")?1:2});var pu4={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var ROD=_.AF(_.Vz("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var ihE={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},ohL={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},q9D={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var B67;var Z_=function(){var d=_.B.apply(this,arguments)||this;d.useResponsiveGrid=!1;d.hidden=!1;d.isShowMoreHidden=!1;d.isShowLessHidden=!0;d.hasExpansionButton=!1;d.isExpanded=!1;d.isInnerShelf=!1;d.allVideosCount=0;d.allPlaylistCount=0;d.haveSmartDownloadsCompleted=!1;d.restrictContentsOverflow=!1;d.firstShownIndex=0;d.horizontalOffset=0;d.atEnd=!0;d.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
d.nextClick=function(){var H;(H=d.data)!=null&&H.contents&&(d.firstShownIndex+=d.currentElementsPerRow,d.updateHorizontalOffset(),d.updateHorizontalItemVisibility())};
d.previousClick=function(){var H;(H=d.data)!=null&&H.contents&&(d.firstShownIndex-=d.currentElementsPerRow,d.updateHorizontalOffset(),d.updateHorizontalItemVisibility())};
return d};
_.m(Z_,_.B);_.G=Z_.prototype;
_.G.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.Fm("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.G.attached=function(){this.requestElementsPerRow()};
_.G.refreshGridLayoutNew=function(){var d;if((d=this.data)!=null&&d.contents&&this.containerWidth){var H;((H=this.data.responsiveContainerConfiguration)==null?0:H.responsiveSize)?(d=_.hOF(this.data.responsiveContainerConfiguration,this.containerWidth),d=_.yY(Object.assign({},d,{standardUnitMinWidth:this.standardUnitMinWidth}))):d=_.yY({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=d.typographyBump;if(this.elementsPerRow!==
d.numItems||this.gutter!==d.gutter)this.elementsPerRow=d.numItems,this.gutter=d.gutter,this.itemWidth=d.itemWidth,_.eO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":d.gutter+"px"})}};
_.G.computeSizing=function(){if(!this.isLumiere){var d=_.EyY(this.data);if(d)return d;if(_.h("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.G.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.G.computeButton=function(d){var H=_.M(d,_.Tz);d=Object.assign({},_.M(d,_.Tz));return H?(d.text||(d.text={simpleText:d.tooltip}),d.style="STYLE_MONO_OUTLINE",d.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",d):H};
_.G.onRowIndexChange=function(){var d=_.Fj(),H,K;((H=this.data)==null?0:H.trackingParams)&&((K=this.data)==null?void 0:K.rowIndex)!=null&&d&&_.j5(d,_.P1(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.G.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var d,H=((d=this.getRichItemRenderers()[0])==null?void 0:d.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*H;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.G.requestElementsPerRow=function(){_.GT(this.hostElement,"yt-request-elements-per-row")};
_.G.onUpdateElementsPerRowAction=function(d,H,K,c,p,g){if(this.containerWidth!==g&&(this.containerWidth=g,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&d&&H&&K&&c&&p&&(this.elementsPerRow!==d||this.postsPerRow!==H||this.slimItemsPerRow!==K||this.gameCardsPerRow!==c||this.miniGameCardsPerRow!==p)&&(this.elementsPerRow=d,this.postsPerRow=H,this.slimItemsPerRow=K,this.gameCardsPerRow=c,this.miniGameCardsPerRow=p,this.updateItemVisibility())};
_.G.getRichItemRenderers=function(){return _.Gn(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.G.updateItemVisibility=function(){var d=this;if(this.data&&this.data.contents){var H=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(c,p){var g;((g=d.data)==null?0:g.isExpanded)?(c.hidden=p>H-1,c.ytRendererBehavior.markDirty()):c.hidden=p>d.currentElementsPerRow-1||p>H-1});
var K=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||K||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||K||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.G.setHeightToSingleRow=function(){var d=this.getRichItemRenderers(),H=Number.parseInt(getComputedStyle(d[0]).marginBottom,10)||0;d=d.slice(0,this.currentElementsPerRow).reduce(function(K,c){return Math.max(K,c.getBoundingClientRect().height+H)},0);
this.contents.style.height=d+"px"};
_.G.focusNextExpandedItem=function(){var d;((d=this.data)==null?0:d.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.G.focusItem=function(d,H){var K=this.getRichItemRenderers();if(K[d]&&(d=K[d].querySelector(".focus-on-expand"))){if(H){var c;(c=K[this.currentElementsPerRow])==null||c.scrollIntoView({behavior:"smooth",block:"center"})}d.focus({preventScroll:!0})}};
_.G.onDataChange=function(){var d=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var H;if((H=this.data)==null?0:H.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.vV(this,function(){d.updateItemVisibility()});
var K;if((K=this.data)==null?0:K.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.eO(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),H=0;H<this.data.contents.length;H++)K=_.M(this.data.contents[H],_.rY)||{},K.colIndex=H,K.rowIndex=this.data.rowIndex};
_.G.handleRerenderDownloadsData=function(){_.h("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.G.blockInlinePreview=function(d){var H=this,K;return _.l(function(c){(K=H.inlinePreviewIsEnabled)&&H.ytdReduxBehavior.dispatch(_.xE3(!1));return c.return(new Promise(function(p){d(function(){K&&H.ytdReduxBehavior.dispatch(_.xE3(!0));p()})}))})};
_.G.expandShelf=function(){var d=this;if(this.data){var H,K=(H=_.M(this.data.showMoreButton,_.Tz))==null?void 0:H.trackingParams;K&&_.nU(_.hR(),K);this.data.isExpanded=!0;this.blockInlinePreview(function(c){d.setHeightToSingleRow();d.updateItemVisibility();d.contents.style.height=d.contents.scrollHeight+"px";_.Xp.addJob(function(){d.contents.style.height="auto";d.focusNextExpandedItem();c()},2,200)})}};
_.G.collapseShelf=function(){var d=this;return _.l(function(H){if(H.nextAddress==1){if(!d.data)return H.return();d.data.isExpanded=!1;return H.yield(d.blockInlinePreview(function(K){d.contents.style.height=d.contents.scrollHeight+"px";d.setHeightToSingleRow();_.Xp.addJob(function(){d.updateItemVisibility();d.contents.style.height="auto";K()},2,200)}),2)}_.GT(d.hostElement,"yt-rich-shelf-renderer-collapse",d.data.trackingParams);
d.focusItem(0,!1);_.VE(H)})};
_.G.updateArrowButtonStatus=function(){var d=this.getRichItemRenderers().length;if(!_.h("web_rich_shelf_renderer_use_data_contents_killswitch")){var H,K;d=((H=this.data)==null?void 0:(K=H.contents)==null?void 0:K.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=d};
_.G.onChildElementFocus=function(d){this.hasChevronButtons&&(d=d.target.closest("#contents > *"),this.contents.contains(d)&&(d.offsetLeft<this.horizontalOffset?this.previousClick():d.offsetLeft+d.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.G.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Fm("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.G.updateHorizontalOffset=function(){var d=this.getRichItemRenderers(),H=d.length;if(!_.h("web_rich_shelf_renderer_use_data_contents_killswitch")){var K,c;H=((K=this.data)==null?void 0:(c=K.contents)==null?void 0:c.length)||0}var p;d=((p=d[0])==null?void 0:p.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>H?this.firstShownIndex=H-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*d};
_.G.isSlimMediaShelfRenderer=function(){var d,H,K,c=(K=_.M((d=this.data)==null?void 0:(H=d.contents)==null?void 0:H[0],_.rY))==null?void 0:K.content;return!!(_.M(c,_.Km0)||_.M(c,$AX)||_.M(c,_.Zg)||_.M(c,MKl))};
_.G.isGameCardShelf=function(){var d,H,K,c=(K=_.M((d=this.data)==null?void 0:(H=d.contents)==null?void 0:H[0],_.rY))==null?void 0:K.content;return!!_.M(c,pqX)};
_.G.isGnomeShelf=function(){var d,H,K,c=(K=_.M((d=this.data)==null?void 0:(H=d.contents)==null?void 0:H[0],_.rY))==null?void 0:K.content;return!!_.M(c,_.LaM)};
_.G.isMiniGameCardShelf=function(){var d,H,K,c=(K=_.M((d=this.data)==null?void 0:(H=d.contents)==null?void 0:H[0],_.rY))==null?void 0:K.content;return!!_.M(c,Vq6)||!!_.M(c,UY7)};
_.G.hasGameBoxArtAvatarStyle=function(){var d;return((d=this.data)==null?void 0:d.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.G.hasRoundedGameBoxArtAvatarStyle=function(){var d;return((d=this.data)==null?void 0:d.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.G.isShortsShelf=function(){var d,H,K,c=(K=_.M((d=this.data)==null?void 0:(H=d.contents)==null?void 0:H[0],_.rY))==null?void 0:K.content;return!!_.M(c,_.Zg)||!!_.M(c,MKl)};
_.G.isPostShelfRenderer=function(){var d,H,K,c=(K=_.M((d=this.data)==null?void 0:(H=d.contents)==null?void 0:H[0],_.rY))==null?void 0:K.content;return!(!_.M(c,Nv0)&&!_.M(c,D5S))};
_.G.isLumiereShelf=function(){var d,H,K=_.M((d=this.data)==null?void 0:(H=d.contents)==null?void 0:H[0],_.rY);return!!_.M(K==null?void 0:K.content,p9M)};
_.G.isLumiereShelfWithPosters=function(){var d,H,K=_.M((d=this.data)==null?void 0:(H=d.contents)==null?void 0:H[0],_.rY),c;return((c=_.M(K==null?void 0:K.content,p9M))==null?void 0:c.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.G.isExpandOnHoverCardShelf=function(){var d,H,K,c=(K=_.M((d=this.data)==null?void 0:(H=d.contents)==null?void 0:H[0],_.rY))==null?void 0:K.content;return!!_.M(c,cHl)};
_.G.computeHasFeaturedBadge=function(){var d,H,K=_.M((d=this.data)==null?void 0:(H=d.badges)==null?void 0:H[0],_.MJU);return K?K.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.G.computeHasPaygatedFeaturedBadge=function(){var d,H,K=_.M((d=this.data)==null?void 0:(H=d.badges)==null?void 0:H[0],_.MJU);return K?(K==null?void 0:K.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.G.computeHeaderHidden=function(){var d,H,K,c,p,g;return!((d=this.data)==null?0:d.icon)&&!((H=this.data)==null?0:H.title)&&!((K=this.data)==null?0:K.subtitle)&&!((c=this.data)==null?0:c.thumbnail)&&!((p=this.data)==null?0:p.badges)&&!((g=this.data)==null?0:g.menu)};
_.G.showCtaButton=function(){var d;return!((d=this.data)==null||!d.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.G.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.G.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.G.computeForce16By9ThumbnailAspectRatio=function(){var d,H;return((d=this.data)==null?void 0:(H=d.responsiveContainerConfiguration)==null?void 0:H.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.G.onSectionReactiveDismissal=function(d,H,K){var c,p;var g=(c=this.data)==null?void 0:(p=c.targetingContext)==null?void 0:p.targetGroupId;this&&g&&H.targetGroupId&&g.includes(H.targetGroupId)?(c=this.rowIndex,d=c===void 0?!1:!(H.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&c<=d)):d=!1;d&&(this.hidden=K)};
_.H3.Object.defineProperties(Z_.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var d=this.elementsPerRow;this.isPostShelfRenderer()?d=this.postsPerRow:this.isSlimMediaShelfRenderer()?d=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?d=this.slimItemsPerRow-1:this.isGameCardShelf()?d=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(d=this.miniGameCardsPerRow);return d}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.h("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null?0:d.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var d,H;return!((d=this.data)==null||!d.previousButton)&&!((H=this.data)==null||!H.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var d;return((d=_.Kj().resolve(_.HI).getCurrentPage())==null?void 0:d.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c;return!((d=this.data)==null?0:(H=d.thumbnail)==null?0:(K=H.accessibility)==null?0:(c=K.accessibilityData)==null?0:c.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Z_.prototype.onChildElementFocus=Z_.prototype.onChildElementFocus;Z_.prototype.handleRerenderDownloadsData=Z_.prototype.handleRerenderDownloadsData;Z_.prototype.onDataChange=Z_.prototype.onDataChange;Z_.prototype.onRowIndexChange=Z_.prototype.onRowIndexChange;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Z_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.OO),_.O("design:type",Object)],Z_.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Z_.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Z_.prototype,"ytdReduxBehavior",void 0);_.t([_.r({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.O("design:type",Object)],Z_.prototype,"useResponsiveGrid",void 0);_.t([_.r(),_.O("design:type",Object)],Z_.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Number)],Z_.prototype,"standardUnitMinWidth",void 0);_.t([_.r({reflectToAttribute:!0,value:3}),_.O("design:type",Number)],Z_.prototype,"elementsPerRow",void 0);_.t([_.r({value:3}),_.O("design:type",Number)],Z_.prototype,"postsPerRow",void 0);_.t([_.r({value:6}),_.O("design:type",Number)],Z_.prototype,"slimItemsPerRow",void 0);_.t([_.r({value:6}),_.O("design:type",Number)],Z_.prototype,"gameCardsPerRow",void 0);
_.t([_.r({value:6}),_.O("design:type",Number)],Z_.prototype,"miniGameCardsPerRow",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Z_.prototype,"hidden",void 0);_.t([_.r(),_.O("design:type",Object)],Z_.prototype,"isShowMoreHidden",void 0);_.t([_.r(),_.O("design:type",Object)],Z_.prototype,"isShowLessHidden",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Z_.prototype,"hasExpansionButton",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Z_.prototype,"isExpanded",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Z_.prototype,"isInnerShelf",void 0);_.t([_.r({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.O("design:type",Boolean)],Z_.prototype,"isShorts",void 0);_.t([_.r({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.O("design:type",Boolean)],Z_.prototype,"isLumiere",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.O("design:type",Boolean)],Z_.prototype,"hasBoxArtThumbnailStyle",void 0);_.t([_.r({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.O("design:type",Boolean)],Z_.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.O("design:type",Boolean)],Z_.prototype,"hasFeaturedBadge",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.O("design:type",Boolean)],Z_.prototype,"hasPaygatedFeaturedBadge",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.O("design:type",Boolean)],Z_.prototype,"isHeaderHidden",void 0);_.t([_.r({selector:_.$GD}),_.O("design:type",Object)],Z_.prototype,"allVideosCount",void 0);_.t([_.r({selector:UBL}),_.O("design:type",Object)],Z_.prototype,"allPlaylistCount",void 0);
_.t([_.r({selector:lfY}),_.O("design:type",Object)],Z_.prototype,"haveSmartDownloadsCompleted",void 0);
_.t([_.r({selectorArgs:["entitySelectorType"],selector:function(d,H){if(_.h("kevlar_modern_downloads_page")&&H&&H!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var K=d.entities;switch(H){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":H=_.BW(K);d=U7(H);var c=_.w0(H);K=_.Xv(K);K=_.cW(lx4(c,K,H.length));return{contents:d,subtitle:K};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return K=_.BW(K),{contents:U7(K)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return K=
_.zR(K),{contents:U7(K)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return K=_.zt1(K),{contents:U7(K)};default:_.Jf(new _.m1("Error: entitySelectorType defined but not matched in selector.",d,H))}}}}),
_.O("design:type",Object)],Z_.prototype,"entityDrivenRichShelfData",void 0);_.t([_.r({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.O("design:type",Boolean)],Z_.prototype,"hasTopCtaButton",void 0);_.t([_.r({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.O("design:type",Boolean)],Z_.prototype,"hasBottomCtaButton",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.O("design:type",Boolean)],Z_.prototype,"force16By9ThumbnailAspectRatio",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Z_.prototype,"restrictContentsOverflow",void 0);_.t([_.r({selector:_.AJC}),_.O("design:type",Boolean)],Z_.prototype,"inlinePreviewIsEnabled",void 0);_.t([_.r({computed:"computeSizing(data)"}),_.O("design:type",String)],Z_.prototype,"sizing",void 0);
_.t([_.r(),_.O("design:type",Boolean)],Z_.prototype,"typographyBump",void 0);_.t([_.r(),_.O("design:type",Number)],Z_.prototype,"itemWidth",void 0);_.t([_.r(),_.O("design:type",Object)],Z_.prototype,"firstShownIndex",void 0);_.t([_.r(),_.O("design:type",Object)],Z_.prototype,"horizontalOffset",void 0);_.t([_.r(),_.O("design:type",Object)],Z_.prototype,"atEnd",void 0);_.t([_.VP("#contents"),_.O("design:type",HTMLElement)],Z_.prototype,"contents",void 0);
_.t([_.CK("data.rowIndex"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Z_.prototype,"onRowIndexChange",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Z_.prototype,"onDataChange",null);_.t([_.CK("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Z_.prototype,"handleRerenderDownloadsData",null);
_.t([_.nK("focusin"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],Z_.prototype,"onChildElementFocus",null);_.t([_.r({reflectToAttribute:!0}),_.I("data","isHomePage"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Z_.prototype,"isTruncated",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Z_.prototype,"showBottomDivider",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Z_.prototype,"hasChevronButtons",null);_.t([_.I("firstShownIndex"),_.O("design:type",Object),_.O("design:paramtypes",[])],Z_.prototype,"previousButtonOverride",null);_.t([_.I("atEnd"),_.O("design:type",Object),_.O("design:paramtypes",[])],Z_.prototype,"nextButtonOverride",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Z_.prototype,"isHomePage",null);
_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Z_.prototype,"thumbnailAriaHidden",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Z_.prototype,"initiallyIsExpanded",null);_.t([_.I("data"),_.O("design:type",String),_.O("design:paramtypes",[])],Z_.prototype,"entitySelectorType",null);_.t([_.Z({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Z_);
_.z26=_.oq()(Z_,"ytd-rich-shelf-renderer",function(){if(B67===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-rich-shelf-renderer">\n  <div id="rich-shelf-header-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="rich-shelf-header" class="style-scope ytd-rich-shelf-renderer">\n      <h2 class="style-scope ytd-rich-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n            <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n              <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n              <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-rich-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" aria-hidden="[[thumbnailAriaHidden]]" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n              </yt-img-shadow>\n            </a>\n            <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n              <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n                <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n                  <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n                </a>\n                <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n              <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n                <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n                <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n              </div>\n            </div>\n          </div>\n        </template>\n      </h2>\n      <div id="menu-container" class="style-scope ytd-rich-shelf-renderer">\n        <div class="cta-button-container style-scope ytd-rich-shelf-renderer" hidden="[[!hasTopCtaButton]]">\n          <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n        <div id="menu" hidden="[[isDismissedButtonHidden]]" class="style-scope ytd-rich-shelf-renderer"></div>\n        <yt-button-view-model id="previous-button" button-overrides="[[previousButtonOverride]]" data="[[data.previousButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="previousClick" class="style-scope ytd-rich-shelf-renderer">\n        </yt-button-view-model>\n        <yt-button-view-model id="next-button" button-overrides="[[nextButtonOverride]]" data="[[data.nextButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="nextClick" class="style-scope ytd-rich-shelf-renderer">\n      </yt-button-view-model>\n      </div>\n    </div>\n    <div id="cta-bottom-button-container" hidden="[[!hasBottomCtaButton]]" class="style-scope ytd-rich-shelf-renderer">\n      <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="contents-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="contents" class="style-scope ytd-rich-shelf-renderer"></div>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowMoreHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showMoreButton)]]" on-click="expandShelf">\n    </ytd-button-renderer>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowLessHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showLessButton)]]" on-click="collapseShelf">\n    </ytd-button-renderer>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-shelf-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);B67=d}d=B67;return d},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.qk("kevlar_poly_si_batch_j028")?1:2});var XNN;_.iV(_.g$,"yt-badge-view-model",{props:{data:_.dl,class:_.dl,workaroundShortsIsThumbnailBadge:_.dl,modern:_.dl}});_.iV(a33,"yt-slimline-survey-view-model",{props:{data:_.dl}});var TM=function(){var d=_.B.apply(this,arguments)||this;d.tileLottieAnimationRef={};d.backgroundLottieAnimationRef={};d.isOnHoverBehaviorForLottieEnabled=!0;d.useBiggerShowcaseImage=_.h("enable_desktop_search_bigger_thumbs");d.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return d};
_.m(TM,_.B);_.G=TM.prototype;_.G.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.G.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.G.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var d=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);d!==this.hasTile&&this.set("hasTile",d);d=this.hasLogo(this.data)||!!this.data.badgeText;d!==this.hasMetadata&&this.set("hasMetadata",d);d=this.data.overflowButton?!1:d;d!==this.showLogoImage&&this.set("showLogoImage",d);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.G.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.G.currentColorChanged=function(){this.updateButtonPalette()};
_.G.computeBackgroundStyle=function(d){if(d&&this.data){var H=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var K=_.od((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);K&&H.push('background-image: url("'+K+'");')}var c;((c=d.basicColorData)==null?void 0:c.backgroundColor)!==void 0&&H.push("background-color: "+_.Ob(d.basicColorData.backgroundColor)+";");return H.join("")}};
_.G.onDarkModeToggledAction=function(d){d!==this.isDarkTheme&&this.set("isDarkTheme",d)};
_.G.getCurrentLogo=function(d,H){if(d)return H?d.darkLogoImage:d.lightLogoImage};
_.G.getCurrentStaticTileImage=function(d,H){if(this.hasStaticTile(d))return d.darkTileImage?H?d.darkTileImage:d.tileImage:d.tileImage};
_.G.computeTitleStyle=function(d){if(this.data&&this.data.title&&d&&d.basicColorData&&d.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Yi(d.basicColorData.foregroundTitleColor)+";"};
_.G.computeSubtitleStyle=function(d){if(this.data&&this.data.subtitle&&d&&d.basicColorData&&d.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Yi(d.basicColorData.foregroundBodyColor)+";"};
_.G.computeSupplementalStyle=function(d){if(this.data&&this.data.supplementalText&&d&&d.supplementalTextColor!==void 0)return d=_.Yi(d.supplementalTextColor),"color:"+d+";--yt-endpoint-color:"+d+";--yt-endpoint-hover-color:"+d+";--yt-endpoint-visited-color:"+d+";--yt-formatted-string-bold-font-weight:700;"};
_.G.computeDismissIconStyle=function(d){var H,K;if((d==null?0:(H=d.dismissButtonColorData)==null?0:H.foregroundTitleColor)&&(d==null?0:(K=d.dismissButtonColorData)==null?0:K.backgroundColor))return"--yt-button-color:"+_.Ob(d.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Ob(d.dismissButtonColorData.backgroundColor)+";"};
_.G.computeOverflowIconStyle=function(d){var H,K;if((d==null?0:(H=d.dismissButtonColorData)==null?0:H.foregroundTitleColor)&&(d==null?0:(K=d.dismissButtonColorData)==null?0:K.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Ob(d.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Ob(d.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Ob(d.dismissButtonColorData.foregroundTitleColor)+";"};
_.G.computeBannerStyle=function(d){return d?d.toLowerCase().replace(/_/g,"-"):""};
_.G.computeLocation=function(d){switch(d==null?void 0:d.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.G.shouldShowTileSection=function(d,H,K){return!this.shouldExpandLogo(d,H,K)&&H};
_.G.shouldShowExpandedLogoSection=function(d,H,K){return this.shouldExpandLogo(d,H,K)&&d!==void 0&&this.hasLogo(d)};
_.G.shouldExpandLogo=function(d,H,K){return d&&H?!1:K>=2};
_.G.hasStaticTile=function(d){return!(d==null||!d.tileImage)};
_.G.hasTileLottie=function(d){var H;return!!(d==null?0:(H=d.tileLottie)==null?0:H.url)};
_.G.hasLogo=function(d){return this.getCurrentLogo(d,this.isDarkTheme)!==void 0};
_.G.getLogoHeight=function(d){return this.logoWithPadding(d)?"26":"20"};
_.G.getExpandedLogoHeight=function(d){return this.logoWithPadding(d)?"31":"24"};
_.G.getLogoImageId=function(d){return this.logoWithPadding(d)?"logo-image-with-padding":"logo-image"};
_.G.getMaxTitleFontSize=function(d){return d.overrideTitleMaxFontSize?String(d.overrideTitleMaxFontSize):"36"};
_.G.hasBackgroundLottie=function(d){var H;return!!(d==null?0:(H=d.backgroundLottie)==null?0:H.url)};
_.G.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var d,H;(d=this.tileLottieAnimationRef)==null||(H=d.lottieEl)==null||H.play();var K,c;(K=this.backgroundLottieAnimationRef)==null||(c=K.lottieEl)==null||c.play()}};
_.G.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var d,H;(d=this.tileLottieAnimationRef)==null||(H=d.lottieEl)==null||H.pause();var K,c;(K=this.backgroundLottieAnimationRef)==null||(c=K.lottieEl)==null||c.pause()}};
_.G.pauseLottie=function(){var d,H;(d=this.tileLottieAnimationRef)==null||(H=d.lottieEl)==null||H.pause();var K,c;(K=this.backgroundLottieAnimationRef)==null||(c=K.lottieEl)==null||c.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.G.performPrimaryButtonAction=function(){var d,H,K;((d=this.data)==null?0:(H=d.primaryButton)==null?0:(K=H.buttonRenderer)==null?0:K.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.G.requestElementsPerRow=function(){_.GT(this.hostElement,"yt-request-elements-per-row")};
_.G.updateButtonPalette=function(){if(this.data&&this.currentColorData){var d;((d=this.data.dismissButton)==null?0:d.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var H;if((H=this.data.primaryButton)==null?0:H.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var K;if((K=this.data.secondaryButton)==
null?0:K.buttonRenderer)this.currentColorData.secondaryButtonColorData?(this.data.secondaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.secondaryButtonColorData},this.data.secondaryButton.buttonRenderer.style=void 0):this.currentColorData.secondaryButtonStyleType&&(this.data.secondaryButton.buttonRenderer.style=this.currentColorData.secondaryButtonStyleType,this.data.secondaryButton.buttonRenderer.colorData=void 0),this.set("secondaryButton",{buttonRenderer:Object.assign({},
this.data.secondaryButton.buttonRenderer)});var c;((c=this.data.primaryButton)==null?0:c.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var p;((p=this.data.secondaryButton)==null?0:p.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var g;((g=this.data.primaryButton)==null?0:g.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.G.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var d=this.getTileLottieDataBasedOnTheme(),H,K;if(d.url!==((H=this.tileLottiePlayerProps)==null?void 0:(K=H.animationConfig)==null?void 0:K.path)){var c,p;(c=this.tileLottieAnimationRef)==null||(p=c.lottieEl)==null||p.destroy();var g;this.isOnHoverBehaviorForLottieEnabled=!((g=d.settings)==null?0:g.autoplay);var a,e;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(e=(a=d.settings)==null?void 0:a.autoplay)!=null?e:!1,loop:this.getLottieLoopValue(d.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof d.url==="string"?this.tileLottiePlayerProps.animationConfig.path=d.url:this.tileLottiePlayerProps.animationConfig.animationData=d.url}}};
_.G.getOverflowButton=function(d){return _.M(d.overflowButton,Ig0)};
_.G.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var d=this.getBackgroundLottieDataBasedOnTheme(),H,K;if(d.url!==((H=this.backgroundLottiePlayerProps)==null?void 0:(K=H.animationConfig)==null?void 0:K.path)){var c,p;(c=this.backgroundLottieAnimationRef)==null||(p=c.lottieEl)==null||p.destroy();var g;this.isOnHoverBehaviorForLottieEnabled=!((g=d.settings)==null?0:g.autoplay);var a,e;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(e=(a=d.settings)==null?void 0:a.autoplay)!=null?e:!1,loop:this.getLottieLoopValue(d.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof d.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=d.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
d.url}}};
_.G.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var d;((d=this.tileLottieAnimationRef)==null?void 0:d.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var H;((H=this.backgroundLottieAnimationRef)==null?void 0:H.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.G.getTileLottieDataBasedOnTheme=function(){var d;if(this.isDarkTheme&&((d=this.data)==null?0:d.darkThemeTileLottie))return this.data.darkThemeTileLottie;var H;return((H=this.data)==null?0:H.tileLottie)?this.data.tileLottie:{}};
_.G.getBackgroundLottieDataBasedOnTheme=function(){var d;if(this.isDarkTheme&&((d=this.data)==null?0:d.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var H;return((H=this.data)==null?0:H.backgroundLottie)?this.data.backgroundLottie:{}};
_.G.onUpdateElementsPerRowAction=function(d){d&&this.elementsPerRow!==d&&(this.elementsPerRow=d)};
_.G.getLottieLoopValue=function(d){return d?d.loop!==void 0?d.loop:d.loopCount?d.loopCount-1:!0:!0};
_.G.logoWithPadding=function(d){var H,K,c;return(d=(H=this.getCurrentLogo(d,this.isDarkTheme))==null?void 0:(K=H.thumbnails)==null?void 0:(c=K[0])==null?void 0:c.height)&&d%31===0?!0:!1};
TM.prototype.currentColorChanged=TM.prototype.currentColorChanged;TM.prototype.themeChanged=TM.prototype.themeChanged;TM.prototype.dataChanged=TM.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],TM.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],TM.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],TM.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],TM.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],TM.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],TM.prototype,"primaryButton",void 0);_.t([_.r(),_.O("design:type",Object)],TM.prototype,"secondaryButton",void 0);
_.t([_.r({reflectToAttribute:!0,value:3}),_.O("design:type",Number)],TM.prototype,"elementsPerRow",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],TM.prototype,"isDarkTheme",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],TM.prototype,"hasTile",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],TM.prototype,"hasMetadata",void 0);
_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],TM.prototype,"showLogoImage",void 0);_.t([_.r(),_.O("design:type",Object)],TM.prototype,"currentColorData",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.O("design:type",String)],TM.prototype,"bannerStyle",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.O("design:type",String)],TM.prototype,"location",void 0);
_.t([_.r(),_.O("design:type",Object)],TM.prototype,"tileLottiePlayerProps",void 0);_.t([_.r(),_.O("design:type",Object)],TM.prototype,"tileLottieAnimationRef",void 0);_.t([_.r(),_.O("design:type",Object)],TM.prototype,"backgroundLottiePlayerProps",void 0);_.t([_.r(),_.O("design:type",Object)],TM.prototype,"backgroundLottieAnimationRef",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],TM.prototype,"useBiggerShowcaseImage",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],TM.prototype,"isHideEnclosingAction",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],TM.prototype,"dataChanged",null);_.t([_.Mr("isDarkTheme"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],TM.prototype,"themeChanged",null);
_.t([_.Mr("currentColorData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],TM.prototype,"currentColorChanged",null);_.t([_.Z({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],TM);
_.T(TM,"ytd-statement-banner-renderer",function(){if(XNN!==void 0)return XNN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return XNN=d},{mode:1});var JzC;var QL=function(){var d=_.B.apply(this,arguments)||this;d.isSearch=!1;d.hideShelfHeader=!1;d.engagementPanel=!1;d.disableMouseScroll=!0;d.useFloorScrolling=!0;d.modernTypography=_.h("web_modern_typography");return d};
_.m(QL,_.B);QL.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Vz("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Vz("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
QL.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
QL.prototype.onDataChanged=QL.prototype.onDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],QL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],QL.prototype,"isSearch",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],QL.prototype,"hideShelfHeader",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],QL.prototype,"engagementPanel",void 0);_.t([_.r(),_.O("design:type",Object)],QL.prototype,"disableMouseScroll",void 0);_.t([_.r(),_.O("design:type",Object)],QL.prototype,"useFloorScrolling",void 0);_.t([_.r(),_.O("design:type",Object)],QL.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],QL.prototype,"modernTypography",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],QL.prototype,"onDataChanged",null);_.t([_.Z({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],QL);
_.T(QL,"ytd-reel-shelf-renderer",function(){if(JzC!==void 0)return JzC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return JzC=d},{mode:_.qk("kevlar_poly_si_batch_j028")?1:2});var s8A;var FQ3;FQ3=_.y$(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.Zw3=_.pB(FQ3);var T60=_.H1(function(d){var H=d.data;d=d.useSmallFont;var K={},c={};return _.x("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.x(_.n,{cond:function(){return H().favicon},
then:function(p){return _.x(_.d7,{data:p,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.x("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.x(_.j$,{text:function(){return H().title},
className:_.xM("yt-channel-external-link-view-model-wiz__title",(K["yt-channel-external-link-view-model-wiz__title--title-small-font"]=d,K)),ellipsisTruncate:!0,userInput:!0}),_.x(_.j$,{text:function(){return H().link},
className:_.xM("yt-channel-external-link-view-model-wiz__link",(c["yt-channel-external-link-view-model-wiz__link--link-small-font"]=d,c)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Tb");
T60.idomCompat=!0;_.iV(T60,"yt-channel-external-link-view-model",{props:{data:_.dl,useSmallFont:_.dl}});_.XX("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var t7=function(){var d=_.B.apply(this,arguments)||this;d.revealButtonClass="button";d.businessEmailDisplayState="HIDE_SECTION";return d};
_.m(t7,_.B);_.G=t7.prototype;_.G.refit=function(){var d=this;_.EI(function(){_.qo(d.hostElement,"yt-refit-popups-action")});
_.vV(this,function(){_.qo(d.hostElement,"yt-refit-popups-action")})};
_.G.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.SM(_.Zw3),this.businessEmailDisplayState="CAPTCHA")};
_.G.businessEmailMetadataChanged=function(){this.revealButton||this.businessEmail||this.metadata.signInForBusinessEmail?this.metadata.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.metadata.businessEmail&&(this.businessEmail=this.metadata.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.G.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.G.configureRendererStamper=function(){return{"data.flaggingButton":{id:"flagging-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.shareChannel":{id:"share-channel",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"metadata.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:"yt-channel-external-link-view-model"}}}};
_.G.computeEmailHref=function(d){return"mailto:"+d};
_.G.computeSafeUrl=function(d){if(d)return _.Xa(d)};
_.G.linkEndpoint=function(d){return _.M(d.onTap,_.ZX)};
_.G.linkEndpointToHref=function(d){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(d))};
_.G.onYtServiceRequestCompleted=function(d){var H;if((H=d.detail.data)==null?0:H.businessEmail)this.businessEmail=d.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var K;if((K=d.detail.data)==null?0:K.errorMessage)this.businessEmailErrorMessage=d.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.G.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var d=this.JSC$16179_captchaTextarea.value;if(d){d={recaptcha_response_token:d,channel_id:this.metadata.channelId};var H=_.M(this.metadata.onBusinessEmailRevealClickCommand,_.ZX);H&&this.ytComponentBehavior.resolveCommand(H,{form:d})}}};
_.G.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.H3.Object.defineProperties(t7.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var d;return _.M((d=this.data)==null?void 0:d.metadata,oJS)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.M(this.metadata.businessEmailRevealButton,_.OV)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var d=new URL(this.metadata.canonicalChannelUrl);return d.host+d.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.M(this.metadata.learnMoreOnTap,_.ZX)}}});
t7.prototype.onYtServiceRequestCompleted=t7.prototype.onYtServiceRequestCompleted;t7.prototype.businessEmailMetadataChanged=t7.prototype.businessEmailMetadataChanged;t7.prototype.refit=t7.prototype.refit;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],t7.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],t7.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],t7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.VP("#g-recaptcha-response"),_.O("design:type",HTMLTextAreaElement)],t7.prototype,"JSC$16179_captchaTextarea",void 0);_.t([_.r(),_.O("design:type",Object)],t7.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],t7.prototype,"revealButtonClass",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],t7.prototype,"metadata",null);
_.t([_.I("metadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],t7.prototype,"revealButton",null);_.t([_.I("metadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],t7.prototype,"channelDisplayUrl",null);_.t([_.Mr("metadata"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],t7.prototype,"refit",null);_.t([_.I("metadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],t7.prototype,"formattedDescription",null);
_.t([_.I("metadata","learnMoreCommand"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],t7.prototype,"shouldRendereVerifiedPhoneStatus",null);_.t([_.I("metadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],t7.prototype,"learnMoreCommand",null);_.t([_.r(),_.O("design:type",String)],t7.prototype,"businessEmailDisplayState",void 0);_.t([_.r(),_.O("design:type",String)],t7.prototype,"businessEmail",void 0);
_.t([_.r(),_.O("design:type",String)],t7.prototype,"businessEmailErrorMessage",void 0);_.t([_.Mr("metadata"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],t7.prototype,"businessEmailMetadataChanged",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],t7.prototype,"onYtServiceRequestCompleted",null);_.t([_.Z({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],t7);
_.T(t7,"ytd-about-channel-renderer",function(){if(s8A!==void 0)return s8A;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return s8A=d},{mode:1});var Q8M;var Yg=function(){return _.B.apply(this,arguments)||this};
_.m(Yg,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Yg.prototype,"data",void 0);_.t([_.Z({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Yg);
_.T(Yg,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(Q8M!==void 0)return Q8M;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-avatar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-list-sub-menu-avatar-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="80" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">[[getSimpleString(data.title)]]</div>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Q8M=d},{mode:1});var tig;var Ow=function(){return _.B.apply(this,arguments)||this};
_.m(Ow,_.B);Ow.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ow.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],Ow.prototype,"aligment",void 0);_.t([_.Z({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],Ow);
_.T(Ow,"ytd-channel-list-sub-menu-renderer",function(){if(tig!==void 0)return tig;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-list-sub-menu-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return tig=
d},{mode:1});var Y6d;var S4=function(){return _.B.apply(this,arguments)||this};
_.m(S4,_.B);S4.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],S4.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],S4.prototype,"data",void 0);_.t([_.Z({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],S4);
_.T(S4,"ytd-channel-sub-menu-renderer",function(){if(Y6d!==void 0)return Y6d;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-items" class="style-scope ytd-channel-sub-menu-renderer">\n  <yt-dropdown-menu class="content-sub-menu style-scope ytd-channel-sub-menu-renderer" data="[[data.contentTypeSubMenuItems]]" parent-tracking-params="[[data.trackingParams]]" use-label="">\n  </yt-dropdown-menu>\n  <div id="play-all" class="style-scope ytd-channel-sub-menu-renderer"></div>\n</div>\n<div id="sort-menu" class="style-scope ytd-channel-sub-menu-renderer"></div>\n<div id="right-buttons" class="style-scope ytd-channel-sub-menu-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Y6d=d},{mode:1});var OwA;var S6S;var Ew=function(){var d=_.B.apply(this,arguments)||this;d.isCompact=!1;return d};
_.m(Ew,_.B);_.H3.Object.defineProperties(Ew.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var d,H;return((H=_.M((d=this.data)==null?void 0:d.endpoint,_.yj))==null?void 0:H.target)==="TARGET_NEW_WINDOW"}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Ew.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ew.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ew.prototype,"isCompact",void 0);_.t([_.I("isCompact"),_.O("design:type",Number),_.O("design:paramtypes",[])],Ew.prototype,"thumbnailWidth",null);
_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ew.prototype,"openNewWindow",null);_.t([_.Z({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Ew);
_.T(Ew,"ytd-media-lockup-renderer",function(){if(S6S!==void 0)return S6S;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-media-lockup-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n  <div id="thumbnail-container" class="style-scope ytd-media-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" fit-width="" thumbnail="[[data.thumbnailDetails]]" width="[[thumbnailWidth]]" class="style-scope ytd-media-lockup-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="description" class="style-scope ytd-media-lockup-renderer">\n    <div id="title" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-media-lockup-renderer">\n      <span id="subtitle-text" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.subtitle)]]</span>\n      \n      <yt-icon class="media-lockup-icon style-scope ytd-media-lockup-renderer" default-to-filled="true" hidden="[[!openNewWindow]]" icon="open_in_new" size="15"></yt-icon>\n    </div>\n  </div>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return S6S=d},{mode:1});var Ec6;var yL=function(){return _.B.apply(this,arguments)||this};
_.m(yL,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],yL.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],yL.prototype,"data",void 0);_.t([_.Z({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],yL);
_.T(yL,"ytd-structured-description-channel-lockup-renderer",function(){if(Ec6!==void 0)return Ec6;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-channel-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  <ytd-thumbnail data="[[data]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  </ytd-thumbnail>\n</div>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-channel-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-channel-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-channel-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subscriber-count" class="style-scope ytd-structured-description-channel-lockup-renderer">\n      [[getSimpleString(data.subscriberCountText)]]\n    </div>\n  </div>\n</a>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Ec6=d},{mode:1});var yz3;var b0=function(){var d=_.B.apply(this,arguments)||this;d.isCompact=!1;d.collections=_.h("web_modern_collections_v2");d.collectionsStackColor=_.h("modernize_structured_description_playlist_lockups_v2");return d};
_.m(b0,_.B);b0.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",params:{isCompact:!0}},thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer"}},initialRenderPriority:_.h("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.H3.Object.defineProperties(b0.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c,p,g;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(d=this.data)==null?void 0:(H=d.thumbnail)==null?void 0:H.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(K=this.data)==null?void 0:(c=K.thumbnail)==null?void 0:c.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(p=this.data)==null?void 0:(g=p.thumbnail)==
null?void 0:g.vibrantColorPalette:void 0}}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],b0.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],b0.prototype,"componentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],b0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],b0.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],b0.prototype,"showSidePanelThumbnailOverlay",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],b0.prototype,"isCompact",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],b0.prototype,"collections",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],b0.prototype,"collectionsStackColor",void 0);_.t([_.I("data"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],b0.prototype,"twoLineTitle",null);
_.t([_.I("data","collections","collectionsStackColor"),_.O("design:type",Object),_.O("design:paramtypes",[])],b0.prototype,"collectionStack",null);_.t([_.Z({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],b0);
_.T(b0,"ytd-structured-description-playlist-lockup-renderer",function(){if(yz3!==void 0)return yz3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return yz3=d},{mode:1});var bwC;var Nx=function(){return _.B.apply(this,arguments)||this};
_.m(Nx,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Nx.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Nx.prototype,"data",void 0);_.t([_.Z({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Nx);
_.T(Nx,"ytd-structured-description-video-lockup-renderer",function(){if(bwC!==void 0)return bwC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-video-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n</ytd-thumbnail>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-video-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-video-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n    <yt-formatted-string id="metadata-details" disable-upgrade$="[[!data.metadataDetails]]" hidden="[[!data.metadataDetails]]" no-endpoints="" text="[[data.metadataDetails]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return bwC=d},{mode:2});var D_=function(){return _.B.apply(this,arguments)||this};
_.m(D_,_.B);
D_.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],D_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],D_.prototype,"data",void 0);_.t([_.Z({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],D_);
_.T(D_,"ytd-compact-infocard-renderer",function(){if(OwA!==void 0)return OwA;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-infocard-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-compact-infocard-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return OwA=d},{mode:1});var N63;var fW=function(){var d=_.B.apply(this,arguments)||this;d.useModernCollectionsV2=_.h("web_modern_collections_v2");return d};
_.m(fW,_.B);fW.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.H3.Object.defineProperties(fW.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],fW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],fW.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],fW.prototype,"ytdReduxBehavior",void 0);_.t([_.r({selector:_.ZA}),_.O("design:type",Object)],fW.prototype,"isGridViewEnabled",void 0);
_.t([_.I("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],fW.prototype,"watchFeedBigThumbs",null);_.t([_.I("isGridViewEnabled","data"),_.r({reflectToAttribute:!0,value:"168"}),_.O("design:type",String),_.O("design:paramtypes",[])],fW.prototype,"thumbnailWidth",null);_.t([_.I("isGridViewEnabled","data"),_.r({reflectToAttribute:!0,value:"94"}),_.O("design:type",String),_.O("design:paramtypes",[])],fW.prototype,"customThumbnailSize",null);
_.t([_.r(),_.O("design:type",Object)],fW.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],fW.prototype,"useModernCollectionsV2",void 0);_.t([_.Z({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],fW);
_.T(fW,"ytd-compact-playlist-renderer",function(){if(N63!==void 0)return N63;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-playlist-renderer">\n  <ytd-playlist-thumbnail custom-thumbnail-size="[[customThumbnailSize]]" data="[[data]]" height="94" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-playlist-renderer">\n  </ytd-playlist-thumbnail>\n  <div class="details style-scope ytd-compact-playlist-renderer">\n    <div class="metadata style-scope ytd-compact-playlist-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-playlist-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-playlist-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-playlist-renderer">\n          <ytd-video-meta-block class="compact style-scope ytd-compact-playlist-renderer" data="[[data]]" no-endpoints="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n          </ytd-video-meta-block>\n          <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-playlist-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-playlist-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return N63=d},{mode:1});var Dp3;var A7=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");d.roundedContainer=!0;d.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return d};
_.m(A7,_.B);_.G=A7.prototype;_.G.attached=function(){this.requestElementsPerRow()};
_.G.configureRendererStamper=function(){return{"data.actionButton":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.G.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.G.computeViewStyle=function(d){return d.style?d.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.G.onUpdateElementsPerRowAction=function(d){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&d===1};
_.G.requestElementsPerRow=function(){_.GT(this.hostElement,"yt-request-elements-per-row")};
A7.prototype.dataChanged=A7.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],A7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],A7.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],A7.prototype,"actionHandlerBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],A7.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],A7.prototype,"hideThumbnail",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.O("design:type",String)],A7.prototype,"viewStyle",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],A7.prototype,"darkerDarkTheme",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],A7.prototype,"roundedContainer",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],A7.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],A7);
_.T(A7,"ytd-compact-promoted-item-renderer",function(){if(Dp3!==void 0)return Dp3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-promoted-item-renderer">\n<ytd-thumbnail data="[[data]]" hidden$="[[hideThumbnail]]" width="100" class="style-scope ytd-compact-promoted-item-renderer"></ytd-thumbnail>\n  <div id="content" class="style-scope ytd-compact-promoted-item-renderer">\n    <div id="info" class="style-scope ytd-compact-promoted-item-renderer">\n      <h3 class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n      </h3>\n      <div id="subtitle-container" class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n        <ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-promoted-item-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n    </div>\n    <div id="button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-promoted-item-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Dp3=d},{mode:1});var fud;var j4=function(){var d=_.B.apply(this,arguments)||this;d.collections=_.h("web_modern_collections_v2");return d};
_.m(j4,_.B);j4.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
j4.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
j4.prototype.onYtNavigate=function(d,H){var K=this;if(H.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",H)){var c=this.get("watchEndpoint.videoId",H.endpoint),p=_.qo(this.hostElement,"yt-get-current-video-id-action")[0];_.h("kevlar_mix_handle_first_endpoint_different")&&c&&p&&c!==p||(d.stopPropagation(),_.cI().getPlayerPromise().then(function(g){if(g.getPlayerState()===0&&K.data.secondaryNavigationEndpoint)var a=K.data.secondaryNavigationEndpoint;else{a=
Object.assign({},H.endpoint);var e=_.M(a.commandMetadata,_.Co);e&&(g=Math.floor(g.getCurrentTime()),e.url=_.f6(e.url,{t:g}),!_.h("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(e=_.M(a,_.AP)))&&(e.startTimeSeconds=g)}_.GT(K.hostElement,"yt-navigate",{endpoint:a})}))}};
_.H3.Object.defineProperties(j4.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c,p,g;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(d=this.data)==null?void 0:(H=d.thumbnail)==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:(K=this.data)==null?void 0:(c=K.thumbnail)==null?void 0:c.vibrantColorPalette,darkColorPalette:(p=this.data)==null?void 0:(g=p.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
j4.prototype.onYtNavigate=j4.prototype.onYtNavigate;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.VV.YtEndpointBehavior),_.O("design:type",Object)],j4.prototype,"ytEndpointBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],j4.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.u(_.fe),_.O("design:type",Object)],j4.prototype,"ytdLockupBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],j4.prototype,"ytdReduxBehavior",void 0);_.t([_.r({selector:_.ZA}),_.O("design:type",Object)],j4.prototype,"isGridViewEnabled",void 0);_.t([_.I("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],j4.prototype,"watchFeedBigThumbs",null);
_.t([_.I("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.O("design:type",String),_.O("design:paramtypes",[])],j4.prototype,"thumbnailWidth",null);_.t([_.r(),_.O("design:type",Object)],j4.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],j4.prototype,"collections",void 0);_.t([_.I("data","collections"),_.O("design:type",Object),_.O("design:paramtypes",[])],j4.prototype,"collectionStack",null);
_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],j4.prototype,"onYtNavigate",null);_.t([_.Z({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],j4);
_.T(j4,"ytd-compact-radio-renderer",function(){if(fud!==void 0)return fud;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="94" hovered="[[lockupIsHovered]]" use-hovered-property="" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div class="details style-scope ytd-compact-radio-renderer">\n    <div class="metadata style-scope ytd-compact-radio-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-radio-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-radio-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-radio-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <ytd-video-meta-block class="compact style-scope ytd-compact-radio-renderer" data="[[data]]" no-endpoints="" radio-meta="">\n        </ytd-video-meta-block>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-radio-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-radio-renderer"></yt-interaction>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return fud=d},{mode:1});var Azg;var vO=function(){return _.B.apply(this,arguments)||this};
_.m(vO,_.B);vO.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
vO.prototype.computeRendererStyle=function(d){return d.style?d.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.t([_.r(),_.O("design:type",Object)],vO.prototype,"data",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],vO.prototype,"rendererBehavior",void 0);_.t([_.r({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.O("design:type",String)],vO.prototype,"rendererStyle",void 0);_.t([_.Z({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],vO);
_.T(vO,"ytd-compact-text-promo-renderer",function(){if(Azg!==void 0)return Azg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-text-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-text-promo-renderer">\n</ytd-badge-supported-renderer>\n<yt-formatted-string class="title style-scope ytd-compact-text-promo-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-compact-text-promo-renderer" force-default-style="" text="[[data.subTitle]]">\n</yt-formatted-string>\n<div id="action-button" class="style-scope ytd-compact-text-promo-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Azg=d},{mode:1});var j8d;var dD=function(){var d=_.B.apply(this,arguments)||this;d.isShortsStyle=!1;return d};
_.m(dD,_.B);_.G=dD.prototype;_.G.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.G.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.GT(this.hostElement,"yt-disable-lockup-interaction"):_.GT(this.hostElement,"yt-enable-lockup-interaction"))};
_.G.isMetaBlockEmpty=function(d){return!d||!d.longBylineText&&!d.shortBylineText&&!d.shortViewCountText&&!d.viewCountText};
_.G.computeHasOneLineTitle=function(d){return this.forceOneLineTitle||!(d==null||!d.buttons)};
_.G.computeDisableInteraction=function(){var d;return!((d=this.data)==null?0:d.navigationEndpoint)};
_.G.hasSingularTopStandaloneBadge=function(){var d;return!((d=this.data)==null||!d.topStandaloneBadge)};
_.H3.Object.defineProperties(dD.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var d;return this.hasSingularTopStandaloneBadge()?[(d=this.data)==null?void 0:d.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var d;return this.shouldShowTopBadges?((d=this.data)==null?void 0:d.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
dD.prototype.disableInteractionChanged=dD.prototype.disableInteractionChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],dD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],dD.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(_.fe),_.O("design:type",Object)],dD.prototype,"ytdLockupBehavior",void 0);
_.t([_.u(_.to),_.O("design:type",Object)],dD.prototype,"ytdReduxBehavior",void 0);_.t([_.r({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.O("design:type",Boolean)],dD.prototype,"metaBlockEmpty",void 0);_.t([_.r({selector:_.ZA}),_.O("design:type",Object)],dD.prototype,"isGridViewEnabled",void 0);_.t([_.I("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],dD.prototype,"watchFeedBigThumbs",null);
_.t([_.I("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.O("design:type",String),_.O("design:paramtypes",[])],dD.prototype,"thumbnailWidth",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],dD.prototype,"isShortsStyle",void 0);_.t([_.r(),_.O("design:type",Object)],dD.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.O("design:type",Boolean)],dD.prototype,"hasOneLineTitle",void 0);
_.t([_.r(),_.O("design:type",Boolean)],dD.prototype,"hideThumbnail",void 0);_.t([_.r(),_.O("design:type",Boolean)],dD.prototype,"forceOneLineTitle",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.O("design:type",Boolean)],dD.prototype,"disableInteraction",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],dD.prototype,"musicMetadataVideoLockup",void 0);
_.t([_.CK("disableInteraction"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dD.prototype,"disableInteractionChanged",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],dD.prototype,"shouldShowTopBadges",null);_.t([_.I("data"),_.O("design:type",Array),_.O("design:paramtypes",[])],dD.prototype,"topBadges",null);
_.t([_.I("shouldShowTopBadges","data"),_.O("design:type",Array),_.O("design:paramtypes",[])],dD.prototype,"inlineMetadataBadges",null);_.t([_.I("shouldShowTopBadges"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],dD.prototype,"shouldShowBadgesBelowMetadata",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],dD.prototype,"compactTitleClass",null);_.t([_.Z({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],dD);
_.T(dD,"ytd-compact-video-renderer",function(){if(j8d!==void 0)return j8d;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" disable-interaction="[[disableInteraction]]" hidden$="[[hideThumbnail]]" hovered="[[lockupIsHovered]]" queued="[[queued]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[thumbnailWidth]]" class="style-scope ytd-compact-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-video-renderer">\n    <div class="metadata style-scope ytd-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]">\n        <h3 class="style-scope ytd-compact-video-renderer">\n          \n          <ytd-badge-supported-renderer class="top-badge style-scope ytd-compact-video-renderer" badges="[[topBadges]]" collection-truncate="" hidden="[[!shouldShowTopBadges]]">\n          </ytd-badge-supported-renderer>\n          <span class$="[[compactTitleClass]] style-scope ytd-compact-video-renderer" id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-video-renderer">\n          \n          <ytd-video-meta-block class="compact style-scope ytd-compact-video-renderer" badges="[[inlineMetadataBadges]]" data="[[data]]" inline-badges="" no-endpoints="" truncate-metadata-line="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]"></ytd-video-meta-block>\n          \n          <ytd-badge-supported-renderer class="badges style-scope ytd-compact-video-renderer" badges="[[data.badges]]" hidden="[[!shouldShowBadgesBelowMetadata]]" wrap-badges="">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n      <div id="buttons" class="style-scope ytd-compact-video-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-video-renderer"></div>\n    <div id="queue-button" class="style-scope ytd-compact-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-video-renderer"></yt-interaction>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return j8d=d},{mode:_.qk("kevlar_poly_si_batch_j067")?1:2});var vcg;_.XX("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Ht=function(){return _.B.apply(this,arguments)||this};
_.m(Ht,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ht.prototype,"data",void 0);_.t([_.Z({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Ht);
_.T(Ht,"ytd-counterfactual-renderer",function(){if(vcg!==void 0)return vcg;var d=document.createElement("template");_.P(d,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-counterfactual-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return vcg=d},{mode:1});var dX6;var $w=function(){var d=_.B.apply(this,arguments)||this;d.hidden=!1;return d};
_.m($w,_.B);$w.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.Kj().resolve(_.cb).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
$w.prototype.computeHidden=function(d){return!!d};
_.H3.Object.defineProperties($w.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],$w.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.O("design:type",Object)],$w.prototype,"hidden",void 0);_.t([_.I("data.label"),_.O("design:type",String),_.O("design:paramtypes",[])],$w.prototype,"label",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],$w.prototype,"value",null);
_.t([_.Z({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],$w);
_.T($w,"ytd-dropdown-item-renderer",function(){if(dX6!==void 0)return dX6;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" aria-label$="[[data.accessibility.label]]" on-tap="onSelect" class="style-scope ytd-dropdown-item-renderer">\n  <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-dropdown-item-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-item>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return dX6=d},{mode:1});var H3C;var $X0;var KI=function(){return _.B.apply(this,arguments)||this};
_.m(KI,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],KI.prototype,"data",void 0);_.t([_.r({computed:"getSimpleString(data.label)"}),_.O("design:type",String)],KI.prototype,"label",void 0);_.t([_.Z({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],KI);
_.T(KI,"ytd-navigation-dropdown-item-renderer",function(){if($X0!==void 0)return $X0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-navigation-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <a class="yt-simple-endpoint style-scope ytd-navigation-dropdown-item-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n  <tp-yt-paper-item id="item" class="style-scope ytd-navigation-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-navigation-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return $X0=d},{mode:1});var ct=function(){var d=_.B.apply(this,arguments)||this;d.disabled=!1;d.value="";d.noLabelFloat=!1;d.noUnderline=!1;d.usePrimaryColor=!1;d.hasBackground=!1;d.verticalAlign="top";d.autosize=!1;d.minAutosizeWidth=100;d.autosizeFont="14px Roboto";return d};
_.m(ct,_.B);_.G=ct.prototype;_.G.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.G.open=function(){this.inputEl.open()};
_.G.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.G.dataChanged=function(){this.reset()};
_.G.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("value-changed",this.value))};
_.G.stopPropagation=function(d){d.stopPropagation()};
_.G.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var d=this.canvas.getContext("2d");d&&(d.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(d.measureText(this.inputEl.value).width)+24)+"px")}};
_.G.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var d=0,H=this.data.entries.length;d<H;d++){var K=this.data.entries[d],c;for(c in K)if(K.hasOwnProperty(c)){var p=K[c];if("isSelected"in p&&p.isSelected)return"stringValue"in p?p.stringValue||"":"int32Value"in p?p.int32Value||0:0}}return null};
_.G.updateValueFromBinding=function(d){this.value=d.detail.value};
_.H3.Object.defineProperties(ct.prototype,{label:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.entries)return null;if(this.data.label)return this.data.label;for(var d=0,H=this.data.entries.length;d<H;d++){var K=this.data.entries[d],c;for(c in K)if(K.hasOwnProperty(c)){var p=K[c];if("isSelected"in p&&p.isSelected&&"label"in p)return this.ytRendererBehavior.getSimpleString(p.label)}}return null}}});
ct.prototype.autoSizeLabel=ct.prototype.autoSizeLabel;ct.prototype.stopPropagation=ct.prototype.stopPropagation;ct.prototype.valueChangedForBinding=ct.prototype.valueChangedForBinding;ct.prototype.dataChanged=ct.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ct.prototype,"ytRendererStamperBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],ct.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ct.prototype,"disabled",void 0);_.t([_.r(),_.O("design:type",Object)],ct.prototype,"value",void 0);_.t([_.r(),_.O("design:type",Object)],ct.prototype,"noLabelFloat",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ct.prototype,"noUnderline",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],ct.prototype,"theme",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ct.prototype,"usePrimaryColor",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ct.prototype,"hasBackground",void 0);_.t([_.r(),_.O("design:type",Object)],ct.prototype,"verticalAlign",void 0);_.t([_.r(),_.O("design:type",Object)],ct.prototype,"autosize",void 0);_.t([_.r(),_.O("design:type",Object)],ct.prototype,"minAutosizeWidth",void 0);_.t([_.r(),_.O("design:type",Object)],ct.prototype,"autosizeFont",void 0);
_.t([_.VP("#entries"),_.O("design:type",Object)],ct.prototype,"entries",void 0);_.t([_.VP("#input"),_.O("design:type",Object)],ct.prototype,"inputEl",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ct.prototype,"dataChanged",null);_.t([_.Mr("value"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ct.prototype,"valueChangedForBinding",null);
_.t([_.nK("iron-overlay-opened"),_.nK("iron-overlay-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],ct.prototype,"stopPropagation",null);_.t([_.nK("iron-select"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ct.prototype,"autoSizeLabel",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],ct.prototype,"label",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],ct);
_.T(ct,"ytd-dropdown-renderer",function(){if(H3C!==void 0)return H3C;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dropdown-menu-light id="input" aria-label$="[[label]]" disabled="[[disabled]]" horizontal-align="left" label="[[label]]" no-label-float="[[noLabelFloat]]" vertical-align="[[verticalAlign]]" class="style-scope ytd-dropdown-renderer">\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-dropdown-menu-light>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return H3C=d},{mode:1});var KNX;var pI=function(){var d=_.B.apply(this,arguments)||this;d.isConstrainedList=!1;return d};
_.m(pI,_.B);pI.prototype.configureRendererStamper=function(){return{shownItems:{id:"grid-container",mapping:{channelRenderer:"ytd-channel-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
pI.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
pI.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
pI.prototype.computeViewAllHidden=function(d,H){return d||!H.viewAllEndpoint};
pI.prototype.fillRestIfNoShowMore=pI.prototype.fillRestIfNoShowMore;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Gr.YtLazyListBehavior),_.O("design:type",Object)],pI.prototype,"ytLazyListBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],pI.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],pI.prototype,"isConstrainedList",void 0);_.t([_.Mr("data","canShowMore"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pI.prototype,"fillRestIfNoShowMore",null);_.t([_.Z({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],pI);
_.T(pI,"ytd-expanded-shelf-contents-renderer",function(){if(KNX!==void 0)return KNX;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expanded-shelf-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="grid-container" class="style-scope ytd-expanded-shelf-contents-renderer"></div>\n<yt-formatted-string aria-role="button" hidden="[[!canShowMore]]" text="[[data.showMoreText]]" on-click="onShowMoreClick" class="style-scope ytd-expanded-shelf-contents-renderer">\n</yt-formatted-string>\n  <a class="yt-simple-endpoint style-scope ytd-expanded-shelf-contents-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[computeViewAllHidden(canShowMore,data)]]">\n  <yt-formatted-string text="[[data.viewAllText]]" class="style-scope ytd-expanded-shelf-contents-renderer"></yt-formatted-string>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return KNX=d},{mode:_.qk("kevlar_poly_si_batch_j025")?1:2});var ckl;var gD=function(){return _.B.apply(this,arguments)||this};
_.m(gD,_.B);gD.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],gD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],gD.prototype,"data",void 0);_.t([_.Z({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],gD);
_.T(gD,"ytd-feed-channel-filter-header-renderer",function(){if(ckl!==void 0)return ckl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-channel-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-feed-channel-filter-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-feed-channel-filter-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow id="avatar" height="56" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="56" class="style-scope ytd-feed-channel-filter-header-renderer">\n    </yt-img-shadow>\n    <div id="channel" class="style-scope ytd-feed-channel-filter-header-renderer">\n      <span id="title" class="style-scope ytd-feed-channel-filter-header-renderer">[[getSimpleString(data.title)]]</span>\n      <div id="view-channel-button" aria-hidden="" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n    </div>\n  </a>\n</h2>\n<div id="buttons" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return ckl=d},{mode:1});var ppg;var gId;var i3B;var io=function(){return _.B.apply(this,arguments)||this};
_.m(io,_.B);_.G=io.prototype;_.G.onClick=function(d){var H,K=(H=this.data)==null?void 0:H.sectionEndpoint;!_.vg(_.jh(d),this.hostElement,["A".toString()])&&K&&_.GT(this.hostElement,"yt-navigate",{endpoint:K})};
_.G.computeHasSectionEndpoint=function(d){return(d==null?void 0:d.sectionEndpoint)!==void 0};
_.G.computeShowHeaderAsLink=function(d){return(d==null?void 0:d.header)!==void 0&&(d==null?void 0:d.sectionEndpoint)!==void 0};
_.G.computeShowSubheaderAsLink=function(d){return(d==null?void 0:d.subheader)!==void 0&&(d==null?void 0:d.sectionEndpoint)!==void 0&&(d==null?void 0:d.header)===void 0};
_.G.getHeaderAsLinkClass=function(d){var H=[],K;(d==null?0:(K=d.headerIcon)==null?0:K.iconType)&&H.push("header-link-active");return H.join(" ")};
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],io.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],io.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],io.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],io.prototype,"data",void 0);
_.t([_.r({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],io.prototype,"hasSectionEndpoint",void 0);_.t([_.r({computed:"computeShowHeaderAsLink(data)"}),_.O("design:type",Boolean)],io.prototype,"showHeaderAsLink",void 0);_.t([_.r({computed:"computeShowSubheaderAsLink(data)"}),_.O("design:type",Boolean)],io.prototype,"showSubheaderAsLink",void 0);_.t([_.Z({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],io);
_.T(io,"ytd-medical-panel-section-renderer",function(){if(i3B!==void 0)return i3B;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" on-click="onClick" class="style-scope ytd-medical-panel-section-renderer">\n  <div id="header" hidden="[[!data.header]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showHeaderAsLink]]" text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    <a id="header-link" class$="yt-simple-endpoint [[getHeaderAsLinkClass(data)]] style-scope ytd-medical-panel-section-renderer" hidden="[[!showHeaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      <yt-icon class="icons style-scope ytd-medical-panel-section-renderer" hidden="[[!data.headerIcon.iconType]]" icon="[[data.headerIcon.iconType]]">\n      </yt-icon>\n    </a>\n  </div>\n\n  <div id="subheader" hidden="[[!data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showSubheaderAsLink]]" text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    </yt-formatted-string>\n    <a id="subheader-link" class="yt-simple-endpoint style-scope ytd-medical-panel-section-renderer" hidden="[[!showSubheaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    </a>\n  </div>\n  <div id="paragraphs" class="style-scope ytd-medical-panel-section-renderer">\n    <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-medical-panel-section-renderer">\n      <div class="paragraph style-scope ytd-medical-panel-section-renderer">\n        <yt-formatted-string split-lines="" text="[[item]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="footer" hidden="[[!data.footer]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string link-inherit-color="" text="[[data.footer]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return i3B=d},{mode:1});var Gc=function(){var d=_.B.apply(this,arguments)||this;d.isExpanded=!1;d.roundedContainer=!0;d.skipRoundingTop=!1;d.toggleExpandableSection=function(){d.isExpanded=!d.isExpanded};
return d};
_.m(Gc,_.B);
Gc.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{medicalPanelSectionRenderer:{component:"ytd-medical-panel-section-renderer"}}},"data.expandableSections":{id:"expandable-sections",mapping:{medicalPanelSectionRenderer:{component:"ytd-medical-panel-section-renderer"}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[toggleExpandableSection]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[toggleExpandableSection]]"}}}}}};
Gc.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Gc.prototype.dataChanged=Gc.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Gc.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Gc.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Gc.prototype,"isExpanded",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Gc.prototype,"roundedContainer",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Gc.prototype,"skipRoundingTop",void 0);_.t([_.r(),_.O("design:type",Object)],Gc.prototype,"toggleExpandableSection",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Gc.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Gc);
_.T(Gc,"ytd-medical-panel-content-renderer",function(){if(gId!==void 0)return gId;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-medical-panel-content-renderer">\n  <div id="sections" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="expand" hidden="[[isExpanded]]"></div>\n  <div id="expandable-sections" hidden="[[!isExpanded]]" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="collapse" hidden="[[!isExpanded]]"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return gId=d},{mode:1});_.XX("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var ot=function(){var d=_.B.apply(this,arguments)||this;d.roundedContainer=!0;d.amsterdamEnabled=_.h("enable_desktop_amsterdam_info_panels");d.hasTitle=!1;d.linkIcon="OPEN_IN_NEW";d.isDismissed=!1;return d};
_.m(ot,_.B);
ot.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
ot.prototype.computeHasTitle=function(d){return!(d==null||!d.title)};
ot.prototype.onClick=function(d){var H,K=(H=this.data)==null?void 0:H.headerEndpoint;!_.vg(_.jh(d),this.hostElement,["BUTTON".toString()])&&K&&this.ytComponentBehavior.resolveCommand(K)};
_.H3.Object.defineProperties(ot.prototype,{background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTAINER_BACKGROUND_",""):""}},
titleStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.titleStyle?this.data.titleStyle.replace("INFO_PANEL_CONTAINER_TITLE_STYLE_",""):""}},
showLinkIcon:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?void 0:d.disableBottomDivider)||!((H=this.data)==null?0:H.title)}}});
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],ot.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ot.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ot.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],ot.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ot.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ot.prototype,"roundedContainer",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],ot.prototype,"amsterdamEnabled",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.O("design:type",Object)],ot.prototype,"hasTitle",void 0);
_.t([_.r({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.I("data.background"),_.O("design:type",Object),_.O("design:paramtypes",[])],ot.prototype,"background",null);_.t([_.r({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.I("data.titleStyle"),_.O("design:type",Object),_.O("design:paramtypes",[])],ot.prototype,"titleStyle",null);
_.t([_.r({type:_.h("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.I("data.titleStyle"),_.O("design:type",Object),_.O("design:paramtypes",[])],ot.prototype,"showLinkIcon",null);_.t([_.r(),_.O("design:type",String)],ot.prototype,"linkIcon",void 0);_.t([_.r({type:_.h("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],ot.prototype,"hideDivider",null);
_.t([_.r({selectorArgs:["data.dismissStateEntityKey"],selector:function(d,H){d=_.xL(d.entities,"dismissState",H);return(d==null?void 0:d.isDismissed)||(d==null?void 0:d.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(d==null?void 0:d.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.O("design:type",Object)],ot.prototype,"isDismissed",void 0);_.t([_.Z({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],ot);
_.T(ot,"ytd-info-panel-container-renderer",function(){if(ppg!==void 0)return ppg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[isDismissed]]" class="style-scope ytd-info-panel-container-renderer">\n  <div class="header style-scope ytd-info-panel-container-renderer" hidden="[[!data.title]]" on-click="onClick">\n    <h2 class="header-left-items style-scope ytd-info-panel-container-renderer">\n      <yt-icon class="header-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n      </yt-icon>\n      <yt-formatted-string class="title style-scope ytd-info-panel-container-renderer" text="[[data.title]]"></yt-formatted-string>\n      <yt-icon class="link-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!linkIcon]]" hidden="[[!showLinkIcon]]" icon="[[linkIcon]]">\n      </yt-icon>\n    </h2>\n    <div id="header-menu" class="style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div class="divider-container style-scope ytd-info-panel-container-renderer" hidden="[[hideDivider]]">\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div id="content" class="style-scope ytd-info-panel-container-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ppg=d},{mode:1});var GuB;_.XX("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var q2=function(){var d=_.B.apply(this,arguments)||this;d.modernTypography=_.h("web_modern_typography");return d};
_.m(q2,_.B);q2.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
q2.prototype.computeStyle=function(d){return d?d:""};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],q2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],q2.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.O("design:type",String)],q2.prototype,"titleStyle",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],q2.prototype,"modernTypography",void 0);_.t([_.Z({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],q2);
_.T(q2,"ytd-item-section-header-renderer",function(){if(GuB!==void 0)return GuB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-item-section-header-renderer">\n  <div id="title" class="style-scope ytd-item-section-header-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-item-section-header-renderer"></yt-formatted-string>\n</div>\n<div id="buttons" class="style-scope ytd-item-section-header-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return GuB=d},{mode:1});var oIM;var qPU,aoS=function(){return qPU!==void 0?qPU:qPU=document.createElement("template")};
document.head.appendChild(aoS().content);var lol;_.at=new _.Av("VOTING_ANIMATION_CONTROLLER_TOKEN");var kuM=_.H1(function(d){var H=d.data;var K=_.Af("div"),c=_.Af("div");d=_.q(_.GO("VOTE_STATUS_NONE",void 0,"FVF7mc"));var p=d.next().value,g=d.next().value,a=_.Uj(Lxf,function(){var U;return(U=H())==null?void 0:U.entityKey}),e=_.h("web_enable_voting_animation")||_.h("enable_music_web_cairo_voting_animation");
_.WE(function(){var U;((U=H().initialState)==null?0:U.status)&&g(H().initialState.status)});
var k=function(){var U,L,w=(L=(U=H().initialState)==null?void 0:U.votes)!=null?L:0,W;U=(W=H().initialState)==null?void 0:W.status;return U==="VOTE_STATUS_UPVOTED"?w-1:U==="VOTE_STATUS_DOWNVOTED"?w+1:w},C=function(){return p()==="VOTE_STATUS_UPVOTED"?k()+1:p()==="VOTE_STATUS_DOWNVOTED"?k()-1:k()},R=function(U){var L=U?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
g(L);var w=C(),W=_.Kj().resolve(_.$p(_.at)),J=a();J&&(U&&(J==null?0:J.upvoteDefaultButtonOnTap)?_.EG(J.upvoteDefaultButtonOnTap,{form:{element:K.value},disableClickTracking:!0}):(J==null?0:J.upvoteToggledButtonOnTap)&&_.EG(J.upvoteToggledButtonOnTap,{form:{element:K.value},disableClickTracking:!0}));var F;U=(F=J==null?void 0:J.enableOptimisticReordering)!=null?F:H().enableOptimisticReordering;e&&W&&H().itemId&&U&&exM(W,H().itemId,w,L)},V=function(U){var L=U?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
g(L);var w=C(),W=_.Kj().resolve(_.$p(_.at)),J=a();J&&(U&&(J==null?0:J.downvoteDefaultButtonOnTap)?_.EG(J.downvoteDefaultButtonOnTap,{form:{element:c.value},disableClickTracking:!0}):(J==null?0:J.downvoteToggledButtonOnTap)&&_.EG(J.downvoteToggledButtonOnTap,{form:{element:c.value},disableClickTracking:!0}));var F;U=(F=J==null?void 0:J.enableOptimisticReordering)!=null?F:H().enableOptimisticReordering;e&&W&&H().itemId&&U&&exM(W,H().itemId,w,L)};
d={};d=_.xM("ytVotingViewModelVoteCount",(d.ytVotingViewModelVoteCountDisabled=function(){return H().isDisabled},d));
return _.x("voting-view-model",{class:"ytVotingViewModelHost"},_.x("div",{el:K},_.x(_.wB,{data:function(){var U=_.M(H().upvoteButton,_.EV);return{toggleButtonViewModel:Object.assign({},U,{isToggled:p()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(U){return _.x(_.zm,{data:U.data,
onToggle:R})}})),_.x("div",{class:d},function(){var U,L,w;
return p()==="VOTE_STATUS_UPVOTED"?(U=H().initialState)==null?void 0:U.compactVotesUpvoted:p()==="VOTE_STATUS_DOWNVOTED"?(L=H().initialState)==null?void 0:L.compactVotesDownvoted:(w=H().initialState)==null?void 0:w.compactVotes}),_.x("div",{el:c},_.x(_.wB,{data:function(){var U=_.M(H().downvoteButton,_.EV);
return{toggleButtonViewModel:Object.assign({},U,{isToggled:p()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(U){return _.x(_.zm,{data:U.data,
onToggle:V})}})))},"Ub");_.iV(_.H1(function(d){var H=d.data;return _.x("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.x("div",{class:_.xM("ytEngagementBarViewModelEngagementBarWrapper",d.className)},_.x(_.wB,{data:function(){return H().actions}},{votingViewModel:kuM})))},"Vb"),"engagement-bar-view-model",{props:{data:_.dl,
className:_.dl}});var lo=function(){var d=_.B.apply(this,arguments)||this;d.playlistVotingAnimationEnabled=_.h("web_enable_voting_animation");d.downloadProgress=0;d.transferState="TRANSFER_STATE_UNKNOWN";d.downloadState="DOWNLOAD_STATE_UNKNOWN";d.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";d.offlineVideoPolicyExpirationTimestamp=0;return d};
_.m(lo,_.B);_.G=lo.prototype;_.G.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.engagementBar":{id:"engagement-bar",mapping:{engagementBarViewModel:"engagement-bar-view-model"}}}};
_.G.canReorderChanged=function(){this.persistentDragHandle=_.h("kevlar_playlist_drag_handles")&&this.canReorder};
_.G.onDrag=function(){if(this.thumbnail){var d=_.Gn(this.thumbnail).querySelector("yt-image");d&&(d.shouldRenderLazy=!1)}};
_.G.onMenuOverlayChanged=function(d,H){this.menuOpened=H};
_.G.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.G.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.G.onContentsTap=function(d){var H,K=(H=this.data)==null?void 0:H.serviceEndpoints;if(K&&K.length===1&&_.M(K[0],rrF)&&!_.vg(_.jh(d),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(K[0]);else{var c;(H=(c=this.data)==null?void 0:c.navigationEndpoint)&&_.h("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?xXC(_.Kj().resolve(_.Fb),H):(_.UT().playlistSuggestionsShelfActivation=
!0,_.nIS(_.Kj().resolve(_.Fb),H)):H&&!_.vg(_.jh(d),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.h("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.GT(this.hostElement,"yt-navigate",{endpoint:H}):this.ytComponentBehavior.resolveCommand(H))}};
_.G.computeStyle=function(d){return d?d.toLowerCase().replace(/_/g,"-"):""};
_.G.computeThumbnailWidth=function(d){return d==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.G.downloadStateChanged=function(){this.isDownloads=!1;if(this.entityInfo||this.downloadRenderData){if(!this.entityInfo&&this.downloadRenderData)this.downloadRenderData={shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};else{if(!this.entityInfo)return;this.downloadRenderData=y$4(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference,!0);this.isDownloads=Object.keys(this.downloadRenderData).length>0}this.set("data",
Object.assign({},this.data,this.downloadRenderData))}};
_.G.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.G.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.G.dataChanged=function(){if(this.data){var d,H,K,c=((d=this.downloadRenderData)==null?void 0:d.badges)&&((H=this.downloadRenderData)==null?void 0:H.badges)!==((K=this.data)==null?void 0:K.badges),p,g,a;d=((p=this.downloadRenderData)==null?void 0:p.thumbnailOverlays)&&((g=this.downloadRenderData)==null?void 0:g.thumbnailOverlays)!==((a=this.data)==null?void 0:a.thumbnailOverlays);(!this.downloadRenderData||c||d)&&this.downloadStateChanged()}};
_.G.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var d,H,K=(d=this.data.menu)==null?void 0:(H=d.menuRenderer)==null?void 0:H.items;if(K)for(d=_.q(K),H=d.next();!H.done;H=d.next())if(H=H.value,K=void 0,_.M((K=H.menuServiceItemRenderer)==null?void 0:K.serviceEndpoint,_.sV)){var c=K=void 0,p=void 0;H=(K=H)==null?void 0:(c=K.menuServiceItemRenderer)==null?void 0:(p=c.serviceEndpoint)==null?void 0:p.playlistEditEndpoint;p=c=void 0;if(K=(c=H)==null?void 0:(p=c.actions)==null?void 0:
p[0])c=void 0,K.setVideoId=(c=this.data)==null?void 0:c.setVideoId;p=c=K=void 0;if(H=(K=H)==null?void 0:(c=K.clientActions)==null?void 0:(p=c[0])==null?void 0:p.playlistRemoveVideosAction)K=void 0,H.setVideoIds=[(K=this.data)==null?void 0:K.setVideoId]}}};
_.H3.Object.defineProperties(lo.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
lo.prototype.setVideoIdChanged=lo.prototype.setVideoIdChanged;lo.prototype.dataChanged=lo.prototype.dataChanged;lo.prototype.downloadStateChanged=lo.prototype.downloadStateChanged;lo.prototype.onMenuOverlayChanged=lo.prototype.onMenuOverlayChanged;lo.prototype.canReorderChanged=lo.prototype.canReorderChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],lo.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],lo.prototype,"ytdReduxBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],lo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.fe),_.O("design:type",Object)],lo.prototype,"ytdLockupBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],lo.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],lo.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],lo.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],lo.prototype,"canReorder",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],lo.prototype,"menuOpened",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],lo.prototype,"handleIsHovered",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],lo.prototype,"persistentDragHandle",void 0);_.t([_.r(),_.O("design:type",Object)],lo.prototype,"downloadRenderData",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.O("design:type",String)],lo.prototype,"styleType",void 0);_.t([_.r({computed:"computeThumbnailWidth(data.style)"}),_.O("design:type",Number)],lo.prototype,"thumbnailWidth",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],lo.prototype,"isDownloads",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],lo.prototype,"playlistVotingAnimationEnabled",void 0);
_.t([_.r({selector:YL,selectorArgs:["data.videoId"]}),_.O("design:type",Object)],lo.prototype,"downloadProgress",void 0);_.t([_.r(),_.O("design:type",Number)],lo.prototype,"relativeDateReference",void 0);_.t([_.r({selector:_.QO,selectorArgs:["data.videoId"]}),_.O("design:type",Object)],lo.prototype,"transferState",void 0);_.t([_.r({selector:xG4,selectorArgs:["data.videoId"]}),_.O("design:type",Object)],lo.prototype,"downloadState",void 0);
_.t([_.r({selector:dGF,selectorArgs:["data.videoId"]}),_.O("design:type",Object)],lo.prototype,"offlinePolicyAction",void 0);_.t([_.r({selector:HsM,selectorArgs:["data.videoId"]}),_.O("design:type",Object)],lo.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.t([_.r({selector:K9h,selectorArgs:["data.videoId"]}),_.O("design:type",Object)],lo.prototype,"entityInfo",void 0);_.t([_.r({selector:_.Fv}),_.O("design:type",Boolean)],lo.prototype,"miniplayerIsActive",void 0);
_.t([_.I("data"),_.O("design:type",String),_.O("design:paramtypes",[])],lo.prototype,"playlistVideoId",null);_.t([_.VP("#thumbnail"),_.O("design:type",Object)],lo.prototype,"thumbnail",void 0);_.t([_.Mr("canReorder"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lo.prototype,"canReorderChanged",null);
_.t([_.nK("yt-menu-overlay-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Boolean]),_.O("design:returntype")],lo.prototype,"onMenuOverlayChanged",null);_.t([_.Mr("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lo.prototype,"downloadStateChanged",null);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lo.prototype,"dataChanged",null);_.t([_.Mr("data.setVideoId"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lo.prototype,"setVideoIdChanged",null);_.t([_.Z({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],lo);
_.T(lo,"ytd-playlist-video-renderer",function(){if(lol!==void 0)return lol;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.main_desktop.ui.renderers.sections.ytd_playlist_video_renderer.ytd.playlist.video.renderer.transition.css.js--\x3e<div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n  <yt-icon id="reorder" icon="yt-icons:drag_handle" class="style-scope ytd-playlist-video-renderer"></yt-icon>\n  <yt-formatted-string id="index" text="[[data.index]]" class="style-scope ytd-playlist-video-renderer"></yt-formatted-string>\n</div>\n<div id="content" on-click="onContentsTap" class="style-scope ytd-playlist-video-renderer">\n  <div id="container" class="style-scope ytd-playlist-video-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" hide-playback-status="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-video-renderer">\n    </ytd-thumbnail>\n    <div id="meta" class="style-scope ytd-playlist-video-renderer">\n      <h3 aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-video-renderer">\n        <ytd-badge-supported-renderer id="top-standalone-badge" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n        </ytd-badge-supported-renderer>\n        <a id="video-title" title$="[[getSimpleString(data.title)]]" class="yt-simple-endpoint style-scope ytd-playlist-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <ytd-video-meta-block class="playlist style-scope ytd-playlist-video-renderer" data="[[data]]" is-downloading="[[isDownloads]]"></ytd-video-meta-block>\n      <ytd-badge-supported-renderer id="bottom-badges" badges="[[data.bottomBadges]]" hidden="[[!data.bottomBadges]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-badge-supported-renderer id="bottom-standalone-badge" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <div id="engagement-bar" class="style-scope ytd-playlist-video-renderer"></div>\n    </div>\n  </div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-video-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="contributor" hidden="[[!data.contributorName]]" link-inherit-color="" text="[[data.contributorName]]" class="style-scope ytd-playlist-video-renderer">\n  </yt-formatted-string>\n  <div id="offer-button" class="style-scope ytd-playlist-video-renderer"></div>\n</div>\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-playlist-video-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);d.content.insertBefore(aoS().content.cloneNode(!0),d.content.firstChild);return lol=d},{mode:1});var CyB;var et=function(){return _.B.apply(this,arguments)||this};
_.m(et,_.B);_.t([_.r(),_.O("design:type",Object)],et.prototype,"data",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],et.prototype,"rendererBehavior",void 0);_.t([_.Z({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],et);
_.T(et,"ytd-premium-browse-footer-renderer",function(){if(CyB!==void 0)return CyB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-premium-browse-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="title style-scope ytd-premium-browse-footer-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-premium-browse-footer-renderer" text="[[data.subtitle]]">\n</yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return CyB=d},{mode:1});var Rxl;var kw=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return d};
_.m(kw,_.B);_.G=kw.prototype;_.G.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.G.handleDarkModeToggledAction=function(d){this.isDarkTheme=d};
_.G.computeHeaderLogoThumbnail=function(d,H){if(d)return H?d.darkLogo:d.lightLogo};
_.G.computeHeaderLogoHeight=function(d,H){var K,c,p;return(d=(K=this.computeHeaderLogoThumbnail(d,H))==null?void 0:(c=K.thumbnails)==null?void 0:(p=c[0])==null?void 0:p.height)&&d%31===0?"31":"24"};
_.G.computeHeaderLogoMarginBottom=function(d,H){return this.computeHeaderLogoHeight(d,H)==="24"?"0":"-7"};
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],kw.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],kw.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],kw.prototype,"isDarkTheme",void 0);_.t([_.r({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.O("design:type",Object)],kw.prototype,"themeLogo",void 0);
_.t([_.r({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.O("design:type",String)],kw.prototype,"logoHeight",void 0);_.t([_.r({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.O("design:type",String)],kw.prototype,"logoMarginBottom",void 0);_.t([_.Z({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],kw);
_.T(kw,"ytd-primetime-promo-header-renderer",function(){if(Rxl!==void 0)return Rxl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="logo" class="style-scope ytd-primetime-promo-header-renderer"><yt-img-shadow dimension="height" height$="[[logoHeight]]" margin-bottom$="[[logoMarginBottom]]" thumbnail="[[themeLogo]]" class="style-scope ytd-primetime-promo-header-renderer"></yt-img-shadow><ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-primetime-promo-header-renderer"></ytd-badge-supported-renderer></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Rxl=d},{mode:1});var Vzg;var hx3=_.H1(function(d){var H=_.n7(function(p){var g;(g=d.onClick)==null||g.call(d,p)}),K={},c={};
return _.x("yt-shelf-header-layout",{class:_.xM("shelf-header-layout-wiz",(K["shelf-header-layout-wiz--disable-horizontal-padding"]=d.disableHorizontalPadding,K["shelf-header-layout-wiz--disable-vertical-padding"]=d.disableVerticalPadding,K["shelf-header-layout-wiz--responsive"]=d.useResponsiveLayout,K["shelf-header-layout-wiz--narrow"]=function(){var p,g;return((p=d.useResponsiveLayout)==null?void 0:p.call(d))&&((g=d.forceSmallLayout)==null?void 0:g.call(d))},K["shelf-header-layout-wiz--is-overlay"]=
d.isOverlay,K["shelf-header-layout-wiz--tappable"]=!!d.onClick,K)),
"on:click":H,tabindex:function(){var p;return((p=d.isInteractive)==null?0:p.call(d))?0:void 0}},_.x(_.n,{cond:d.leadingIcon,
then:function(p){return _.x("div",{class:"shelf-header-layout-wiz__leading-icon"},_.x(_.hu,{icon:p}))},
else:function(){return _.x(_.n,{cond:d.hasLeadingImage,then:function(){var p,g={};return _.x("div",{class:_.xM("shelf-header-layout-wiz__leading-image",(g["shelf-header-layout-wiz__leading-image--circular-image"]=d.circularImage,g))},(p=d.leadingImage)==null?void 0:p.call(d))}})}}),_.x("div",{class:"shelf-header-layout-wiz__label-container"},_.x(_.n,{cond:d.hasSuperlabel,
then:function(){var p;return _.x("div",{class:"shelf-header-layout-wiz__superlabel"},(p=d.superlabel)==null?void 0:p.call(d))}}),_.x("div",{class:"shelf-header-layout-wiz__title-row"},_.x(UXB,{text:d.title,
className:_.xM("shelf-header-layout-wiz__title",(c["shelf-header-layout-wiz__title--small-title"]=d.forceSmallLayout,c)),tagLevel:d.tagLevel}),_.x(_.n,{cond:d.hasDetail,then:function(){var p;return _.x("div",{class:"shelf-header-layout-wiz__detail"},(p=d.detail)==null?void 0:p.call(d))}})),_.x(_.n,{cond:d.hasSublabel,
then:function(){var p;return _.x("div",{class:"shelf-header-layout-wiz__sublabel"},(p=d.sublabel)==null?void 0:p.call(d))}})),_.x(_.n,{cond:d.hasTrailingActions,
then:function(){var p;return _.x("div",{class:"shelf-header-layout-wiz__trailing-actions"},(p=d.trailingActions)==null?void 0:p.call(d))}}))},"Wb");
hx3.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var UXB=_.H1(function(d){var H=d.text;var K=d.className;var c=d.tagLevel;return _.x(_.w9,null,_.x(_.MM,{when:function(){return(c==null?void 0:c())===0}},function(){return _.x("h2",{class:K},H())}),_.x(_.MM,{when:function(){return(c==null?void 0:c())===1}},function(){return _.x("h3",{class:K},H())}),_.x(_.MM,{when:function(){return(c==null?void 0:c())===2}},function(){return _.x("h4",{class:K},H())}),_.x(_.mS,null,function(){return _.x("h2",{class:K},H())}))},"Xb");var mX3,LNC,MzN;_.xw=_.H1(function(d){var H=d.className;var K=d.data;var c=d.disableHorizontalPadding;var p=d.disableVerticalPadding;var g=d.forceSmallLayout;var a=d.useResponsiveLayout;d=d.isOverlay;return _.x("yt-section-header-view-model",{class:_.xM("ytSectionHeaderViewModelHost",H),style:_.UQ({"background-color":function(){return MHF(K().backgroundColor)?_.Ob(MHF(K().backgroundColor)):void 0}})},_.x(hx3,{hasDetail:!1,
title:function(){return _.x(_.j$,{text:function(){return K().headline}})},
hasTitle:!0,sublabel:function(){return _.x(LNC,{data:K})},
hasSublabel:function(){return!!K().sublabel||!!K().bottomBadge},
superlabel:function(){return _.x(MzN,{data:K})},
hasSuperlabel:function(){return!!K().superlabel||!!K().topBadge},
leadingImage:function(){return _.x(mX3,{leadingAccessory:function(){return K().leadingAccessory}})},
hasLeadingImage:function(){return!!K().leadingAccessory},
trailingActions:function(){return _.x(_.wB,{data:function(){return K().trailingActions}},{flexibleActionsViewModel:_.Fd})},
hasTrailingActions:function(){return!!K().trailingActions},
disableHorizontalPadding:c,disableVerticalPadding:p,forceSmallLayout:g,useResponsiveLayout:a,isOverlay:d,isInteractive:function(){return!!_.FN(K().rendererContext)},
onClick:function(e){if(_.Zb(K().rendererContext)){var k=_.FN(K().rendererContext);k&&_.Yv(k,{form:{element:e.target,event:e}})}}}))},"Yb");
mX3=_.H1(function(d){var H=d.leadingAccessory;return _.x(_.HE,null,_.x(_.n,{cond:function(){var K;return(K=H().image)!=null?K:_.b8(H().themedImage)},
then:function(K){return _.x(_.d7,{data:K,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.x(_.n,{cond:function(){return _.M(H().avatar,_.tW)},
then:function(K){return _.x(_.JV,{data:K})}}))},"Zb");
LNC=_.H1(function(d){var H=d.data;return _.x(_.HE,null,_.x(_.n,{cond:function(){return _.M(H().bottomBadge,IE6)},
then:function(K){var c={};return _.x(_.g$,{data:K,class:_.xM((c.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!K()&&!!H().sublabel},c))})}}),_.x(_.n,{cond:function(){return H().sublabel},
then:function(K){return _.x(_.j$,{text:K})}}))},"$b");
MzN=_.H1(function(d){var H=d.data;return _.x(_.HE,null,_.x(_.n,{cond:function(){return _.M(H().topBadge,IE6)},
then:function(K){var c={};return _.x(_.g$,{data:K,class:_.xM((c.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!K()&&!!H().superlabel},c))})}}),_.x(_.n,{cond:function(){return H().superlabel},
then:function(K){return _.x(_.j$,{text:K})}}))},"ac");_.iV(_.xw,"yt-section-header-view-model",{props:{data:_.dl,className:_.dl,disableHorizontalPadding:_.dl,disableVerticalPadding:_.dl,forceSmallLayout:_.dl,useResponsiveLayout:_.dl,isOverlay:_.dl}});_.XX("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var nI=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return d};
_.m(nI,_.B);_.G=nI.prototype;_.G.attached=function(){this.requestElementsPerRow()};
_.G.configureRendererStamper=function(){return{"data.panels":{id:"panels",mapping:{richItemRenderer:"ytd-rich-item-renderer"}},"data.header":{id:"header-contents",mapping:{primetimePromoHeaderRenderer:"ytd-primetime-promo-header-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.sectionHeader":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.details":{id:"details-panel",mapping:{primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer"}}}};
_.G.onDataChange=function(){var d=this;_.vV(this,function(){d.updateItemVisibility()})};
_.G.onUpdateElementsPerRowAction=function(d){d&&this.elementsPerRow!==d&&(this.elementsPerRow=d,this.updateItemVisibility())};
_.G.updateItemVisibility=function(){var d=this;this.data&&this.data.panels&&_.Gn(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(H,K){H.hidden=K>d.elementsPerRow-1})};
_.G.requestElementsPerRow=function(){_.GT(this.hostElement,"yt-request-elements-per-row")};
nI.prototype.onDataChange=nI.prototype.onDataChange;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],nI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],nI.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],nI.prototype,"actionHandlerBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],nI.prototype,"data",void 0);_.t([_.r({value:3}),_.O("design:type",Number)],nI.prototype,"elementsPerRow",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nI.prototype,"onDataChange",null);_.t([_.Z({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],nI);
_.T(nI,"ytd-primetime-promo-renderer",function(){if(Vzg!==void 0)return Vzg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-primetime-promo-renderer">\n  <div id="header" class="style-scope ytd-primetime-promo-renderer">\n    <div id="header-contents" hidden="[[data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="shelf-header-container" hidden="[[!data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer">\n      <div id="section-header-container" class="style-scope ytd-primetime-promo-renderer"></div>\n      <div id="details-panel" hidden="[[!data.details]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n  </div>\n  <div id="panels" class="style-scope ytd-primetime-promo-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-primetime-promo-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Vzg=d},{mode:1});var wp0;var CI=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return d};
_.m(CI,_.B);CI.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
CI.prototype.handleButtonRefreshAction=function(d){if(d=_.M(d,Wsg))this.set("data.button",d.membershipButton),this.notifyPath("data.button")};
_.H3.Object.defineProperties(CI.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?void 0:(H=d.avatars)==null?void 0:H.slice(0,8))||[]}}});
_.t([_.r(),_.O("design:type",Object)],CI.prototype,"data",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],CI.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],CI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],CI.prototype,"rendererBehavior",void 0);_.t([_.I("data"),_.O("design:type",Array),_.O("design:paramtypes",[])],CI.prototype,"avatars",null);
_.t([_.Z({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],CI);
_.T(CI,"ytd-recognition-shelf-renderer",function(){if(wp0!==void 0)return wp0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-recognition-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-recognition-shelf-renderer">\n  <div id="text-container" class="style-scope ytd-recognition-shelf-renderer">\n    <yt-formatted-string class="title style-scope ytd-recognition-shelf-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-recognition-shelf-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n  </div>\n  <div id="avatars-container" class="style-scope ytd-recognition-shelf-renderer">\n    <template is="dom-repeat" items="[[avatars]]" as="avatar" class="style-scope ytd-recognition-shelf-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-recognition-shelf-renderer" thumbnail="[[avatar]]"></yt-img-shadow>\n    </template>\n  </div>\n  <div id="action-button" class="style-scope ytd-recognition-shelf-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return wp0=d},{mode:1});var PyC;var uJA;var Rt=function(){var d=_.B.apply(this,arguments)||this;d.modernButtons=_.h("web_modern_buttons");return d};
_.m(Rt,_.B);_.G=Rt.prototype;
_.G.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.G.dataChanged=function(){this.collapsed=!0};
_.G.computeVisibleItems=function(d,H){return d!==void 0&&d.items?H?d.items.slice(0,this.data.collapsedItemCount):d.items:[]};
_.G.computeHideShowMore=function(d,H,K){return d>=H||!K};
_.G.computeHideShowAll=function(d,H,K){return!(d&&H)||K};
_.G.onMoreClick=function(){this.collapsed=!1};
_.H3.Object.defineProperties(Rt.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.h("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.GJ("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.h("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Rt.prototype.dataChanged=Rt.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Rt.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Rt.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],Rt.prototype,"isSearch",void 0);
_.t([_.r({computed:"computeVisibleItems(data,collapsed)"}),_.O("design:type",Array)],Rt.prototype,"visibleItems",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],Rt.prototype,"collapsed",void 0);_.t([_.r({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.O("design:type",Boolean)],Rt.prototype,"hideShowMore",void 0);
_.t([_.r({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.O("design:type",Boolean)],Rt.prototype,"hideShowAll",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Rt.prototype,"modernButtons",void 0);_.t([_.I("isSearch"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Rt.prototype,"typographyBump",null);
_.t([_.I("isSearch"),_.O("design:type",Object),_.O("design:paramtypes",[])],Rt.prototype,"lockupExperiments",null);_.t([_.I("isSearch"),_.O("design:type",String),_.O("design:paramtypes",[])],Rt.prototype,"thumbnailWidth",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Rt.prototype,"dataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Rt);
_.T(Rt,"ytd-vertical-list-renderer",function(){if(uJA!==void 0)return uJA;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-list-renderer"></div>\n<div id="more" hidden="[[hideShowMore]]" class="style-scope ytd-vertical-list-renderer">\n  <yt-formatted-string text="[[data.collapsedStateButtonText]]" on-tap="onMoreClick" class="style-scope ytd-vertical-list-renderer">\n  </yt-formatted-string>\n</div>\n<div id="all" hidden="[[hideShowAll]]" class="style-scope ytd-vertical-list-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-vertical-list-renderer" href$="[[computeHref_(data.expandedStateButtonEndpoint]]" data="[[data.expandedStateButtonEndpoint]]">\n    <yt-formatted-string text="[[data.expandedStateButtonText]]" class="style-scope ytd-vertical-list-renderer">\n    </yt-formatted-string>\n  </a>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return uJA=d},{mode:1});var Io3=_.y$(["#"]);_.XX("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var VD=function(){var d=_.B.apply(this,arguments)||this;d.isConstrainedList=!1;d.modernTypography=_.h("web_modern_typography");return d};
_.m(VD,_.B);_.G=VD.prototype;
_.G.configureRendererStamper=function(){return{"data.content":{id:"contents",mapping:{gridRenderer:"ytd-grid-renderer",horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:118},properties:{isSearch:"[[isSearch]]"}},horizontalMovieListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:302}},expandedShelfContentsRenderer:{component:"ytd-expanded-shelf-contents-renderer",properties:{isConstrainedList:"[[isConstrainedList]]"}},messageRenderer:{component:"ytd-message-renderer",
params:{shelf:!0}},verticalListRenderer:{component:"ytd-vertical-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.playAllButton":{id:"play-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",attributes:{condensed:!0},properties:{icon:"[[menuIcon]]"}}}},"data.sortFilter":{id:"sort-filter",
mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.G.computeThumbnailStyle=function(d){return d||""};
_.G.computePlaceAnnotationUnderTitle=function(){var d;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((d=this.data)==null?void 0:d.thumbnailStyle)||"")};
_.G.computeHrefWithDefault=function(d){return this.ytComponentBehavior.computeHref_(d)||_.jKD(Io3)};
_.G.computeIsPromoShelf=function(d){var H;return(d=d==null?void 0:(H=d[0])==null?void 0:H.metadataBadgeRenderer)?d.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.G.computePlaceBadgeBesideTitle=function(d){var H;return(d==null?0:(H=d[0])==null?0:H.metadataBadgeRenderer)?!this.computeIsPromoShelf(d):!1};
_.G.computeMenuIcon=function(d){return this.computeIsPromoShelf(d)?"yt-icons:more_vert":"yt-icons:more"};
_.G.onDataChange=function(){var d,H;((d=this.data)==null?0:(H=d.content)==null?0:H.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.G.onLockupRequested=function(d){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&d.detail&&d.detail.videoIds){for(var H=this.data.content.gridRenderer.items,K=new Set,c=_.q(d.detail.videoIds),p=c.next();!p.done;p=c.next())K.add(p.value);d.detail.returnValue=H.filter(function(g){return g.gridVideoRenderer&&g.gridVideoRenderer.videoId&&K.has(g.gridVideoRenderer.videoId)}).map(function(g){return g.gridVideoRenderer})}};
_.G.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
VD.prototype.onLockupRequested=VD.prototype.onLockupRequested;VD.prototype.onDataChange=VD.prototype.onDataChange;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],VD.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],VD.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.WZ),_.O("design:type",Object)],VD.prototype,"ironResizableBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],VD.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],VD.prototype,"isSearch",void 0);_.t([_.r(),_.O("design:type",Object)],VD.prototype,"isConstrainedList",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.h("kevlar_fluid_dismiss")}}),
_.O("design:type",Boolean)],VD.prototype,"enableFluidDismiss",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.O("design:type",String)],VD.prototype,"thumbnailStyle",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],VD.prototype,"modernTypography",void 0);_.t([_.r({computed:"computeMenuIcon(data.badges)"}),_.O("design:type",String)],VD.prototype,"menuIcon",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],VD.prototype,"onDataChange",null);_.t([_.nK("yt-lockup-requested"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],VD.prototype,"onLockupRequested",null);_.t([_.Z({is:"ytd-shelf-renderer",disableElementRegistration:!0})],VD);
_.T(VD,"ytd-shelf-renderer",function(){if(PyC!==void 0)return PyC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return PyC=d},{mode:1});var rkl;var U$=function(){return _.B.apply(this,arguments)||this};
_.m(U$,_.B);U$.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.H3.Object.defineProperties(U$.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],U$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],U$.prototype,"data",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],U$.prototype,"isPlaylist",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],U$.prototype,"isClipList",void 0);
_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],U$.prototype,"isPlaylistPageWithFilters",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],U$.prototype,"hasTitle",null);_.t([_.r(),_.I("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.O("design:type",Object),_.O("design:paramtypes",[])],U$.prototype,"isRightAligned",null);
_.t([_.Z({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],U$);
_.T(U$,"ytd-sort-filter-header-renderer",function(){if(rkl!==void 0)return rkl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sort-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-sort-filter-header-renderer">\n  <div id="headings" hidden="[[!data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="filter-menu" class="style-scope ytd-sort-filter-header-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return rkl=d},{mode:1});var WNS;var h6=function(){var d=_.B.apply(this,arguments)||this;d.enableRightArrowHidden=_.h("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return d};
_.m(h6,_.B);h6.prototype.attached=function(){var d=this;this.enableRightArrowHidden&&(this.JSC$16308_throttledOnResize=new _.NV(function(){var H;(H=d.ytdHorizontalListBehavior)==null||H.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var H;
(H=d.JSC$16308_throttledOnResize)==null||H.fire()}),this.resizeObserver.observe(this.hostElement))};
h6.prototype.detached=function(){if(this.enableRightArrowHidden){var d;(d=this.resizeObserver)==null||d.disconnect();var H;(H=this.JSC$16308_throttledOnResize)==null||H.dispose()}};
h6.prototype.configureRendererStamper=function(){return{"data.creatorVideosButton":{id:"infocard-videos-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.creatorAboutButton":{id:"infocard-channel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.infocards":{id:"infocards-section",mapping:{compactInfocardRenderer:"ytd-compact-infocard-renderer"}},creatorCustomUrlButtons:{id:"items",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"}}}}}};
h6.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.H3.Object.defineProperties(h6.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.h("enable_creator_details_shelf_m2")){var d=[],H;((H=this.data)==null?0:H.creatorVideosButton)&&d.push(this.data.creatorVideosButton);var K;((K=this.data)==null?0:K.creatorAboutButton)&&d.push(this.data.creatorAboutButton);H=_.q(this.data.creatorCustomUrlButtons||[]);for(K=H.next();!K.done;K=H.next())d.push(K.value);return d}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.h("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.oL.YtdHorizontalListBehavior),_.O("design:type",Object)],h6.prototype,"ytdHorizontalListBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],h6.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],h6.prototype,"engagementPanel",void 0);
_.t([_.r(),_.O("design:type",Object)],h6.prototype,"enableRightArrowHidden",void 0);_.t([_.I("enableRightArrowHidden","atEnd"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],h6.prototype,"hideRightArrow",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],h6.prototype,"creatorCustomUrlButtons",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data","creatorCustomUrlButtons"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],h6.prototype,"showCreatorCustomUrlButtons",null);_.t([_.I("showCreatorCustomUrlButtons"),_.O("design:type",Number),_.O("design:paramtypes",[])],h6.prototype,"channelAvatarSize",null);_.t([_.Z({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],h6);
_.T(h6,"ytd-video-description-infocards-section-renderer",function(){if(WNS!==void 0)return WNS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return WNS=d},{mode:_.qk("kevlar_poly_si_batch_j067")?1:2});var BH7;var LI=function(){return _.B.apply(this,arguments)||this};
_.m(LI,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],LI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],LI.prototype,"data",void 0);_.t([_.r({computed:"computeIcon_(data.infoIcon)"}),_.O("design:type",Object)],LI.prototype,"infoIcon",void 0);_.t([_.Z({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],LI);
_.T(LI,"ytd-eom-settings-disclaimer-renderer",function(){if(BH7!==void 0)return BH7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-eom-settings-disclaimer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="app" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  <yt-icon id="info" disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-icon>\n  <yt-formatted-string id="label" text="[[data.disclaimer]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-formatted-string>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return BH7=d},{mode:1});var zxg;var M2=function(){return _.B.apply(this,arguments)||this};
_.m(M2,_.B);_.H3.Object.defineProperties(M2.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.suppressPaddingDisclaimer)}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],M2.prototype,"componentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],M2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],M2.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],M2.prototype,"suppressPaddingDisclaimer",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],M2);
_.T(M2,"ytd-product-list-header-renderer",function(){if(zxg!==void 0)return zxg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-product-list-header-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.title]]" class="style-scope ytd-product-list-header-renderer">\n    </yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return zxg=d},{mode:1});var Xp7;var mO=function(){return _.B.apply(this,arguments)||this};
_.m(mO,_.B);mO.prototype.computeThumbnailStyle=function(d){if(d&&(d=_.Yi(d)))return"background-color:"+d+";"};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],mO.prototype,"rendererBehaviors",void 0);_.t([_.r(),_.O("design:type",Object)],mO.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],mO);
_.T(mO,"ytd-hashtag-tile-renderer",function(){if(Xp7!==void 0)return Xp7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-section" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-section" class="style-scope ytd-hashtag-tile-renderer"><a class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="thumbnail" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-spacing-wrapper" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-color-wrapper" style="[[computeThumbnailStyle(data.hashtagBackgroundColor)]]" class="style-scope ytd-hashtag-tile-renderer"><yt-img-shadow height="64" thumbnail="[[data.hashtagThumbnail]]" width="64" class="style-scope ytd-hashtag-tile-renderer"></yt-img-shadow></div></div></div></a></div><div id="info-section" class="style-scope ytd-hashtag-tile-renderer"><a id="main-link" class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="info" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag" text="[[data.hashtag]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string><div id="metadata" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag-info-text" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string></div></div></a></div></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Xp7=d},{mode:1});var JkC;var wD=function(){return _.B.apply(this,arguments)||this};
_.m(wD,_.B);wD.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],wD.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],wD);
_.T(wD,"ytd-sponsorships-alert-renderer",function(){if(JkC!==void 0)return JkC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-sponsorships-alert-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-sponsorships-alert-renderer">\n  <div id="action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n  <div id="secondary-action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return JkC=d},{mode:1});var s9C;var Pt=function(){return _.B.apply(this,arguments)||this};
_.m(Pt,_.B);Pt.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.H3.Object.defineProperties(Pt.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.t([_.u(_.OO),_.O("design:type",Object)],Pt.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(_.fe),_.O("design:type",Object)],Pt.prototype,"ytdLockupBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Pt.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.t([_.r({selector:_.ZA}),_.O("design:type",Object)],Pt.prototype,"isGridViewEnabled",void 0);
_.t([_.I("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Pt.prototype,"watchFeedBigThumbs",null);_.t([_.I("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.O("design:type",String),_.O("design:paramtypes",[])],Pt.prototype,"thumbnailWidth",null);_.t([_.r(),_.O("design:type",Object)],Pt.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Pt);
_.T(Pt,"ytd-compact-movie-renderer",function(){if(s9C!==void 0)return s9C;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-movie-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-movie-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-compact-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <template is="dom-if" if="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n      <h3 id="movie-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-movie-renderer">\n        [[getSimpleString(data.title)]]\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-movie-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-movie-renderer" data="[[data]]" no-endpoints="">\n        </ytd-video-meta-block>\n        <span class="movie-metadata style-scope ytd-compact-movie-renderer">[[getSimpleString(data.topMetadataItems.0)]]</span>\n      </div>\n      <template is="dom-if" if="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-movie-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-movie-renderer"></yt-interaction>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return s9C=d},{mode:1});var FNM;var Z3N;var TH0=_.Fm("HTML_DIR")==="rtl",uo=function(){var d=_.B.apply(this,arguments)||this;d.engagementPanel=!1;d.maxLines=2;d.expandButtonOffset=0;d.showExpandButton=!1;d.isTruncated=!1;d.isExpanded=!1;d.currentSnippetType=2;d.alwaysShowExpandButton=!1;d.JSC$16325_lastWidth=NaN;d.observer=null;d.left=0;d.right=0;d.mid=0;d.longestSnippetLength=0;d.isFinalSnippet=!1;d.isFirstMutation=!1;d.isResetMutation=!1;d.OVERFLOW_THRESHOLD=5;return d};
_.m(uo,_.B);_.G=uo.prototype;_.G.onClick=function(d){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.vg(_.jh(d)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;if((H=window.getSelection())==null||!H.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.G.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.G.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.G.updateTextOnSnippetTypeChange=function(){_.h("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.G.setUpBinarySearch=function(d){d=d*this.maxLines/8;this.left=0;var H,K;this.right=Math.min(d*2,(K=(H=this.simpleText)==null?void 0:H.length)!=null?K:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.G.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.G.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Jf(new _.m1("AttributedSnippet is empty when the description is not empty",this.text))};
_.G.mutationCallback=function(){if(this.observer!=null){var d=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var H=Math.floor(d*this.maxLines/8);this.setSnippetText(this.text,H);H!==0||this.attributedTextIsEmpty()||_.Jf(new _.m1("Estimated visible character count is 0 for AttributedString description",this.text));this.isFinalSnippet=!0;return}if(this.isResetMutation){this.isResetMutation=!1;this.observer.disconnect();this.attributedTextIsEmpty()?
this.maybeLogWarningForEmptyAttributedSnippet():this.resize(!0);return}}if(this.isFinalSnippet)this.expandButtonOffset=this.computeExpandButtonOffset(),this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else if(this.isFirstMutation)if(this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;d=d*this.maxLines/8;this.left=0;var K;this.right=Math.min(d*2,(K=(H=this.simpleText)==null?void 0:H.length)!=null?K:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.G.mutationObserve=function(d){var H=this;this.observer||(this.observer=new MutationObserver(function(){H.mutationCallback()}));
this.observer.observe(d,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.G.attached=function(){var d=this;_.vV(this,function(){d.resize()})};
_.G.isExpandedChanged=function(){_.GT(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.G.updateSnippetContainerMaxHeight=function(){this.isExpanded?(this.snippetContainer.style.setProperty("overflow",""),this.snippetContainer.style.setProperty("max-height","")):(this.snippetContainer.style.setProperty("overflow","hidden"),this.snippetContainer.style.setProperty("max-height",2*this.maxLines+"rem"));this.resize(!0)};
_.G.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var d="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((TH0?"left":"right")+",\n        #000 0%,\n        #000 "+(this.expandButtonOffset-24)+"px,\n        transparent "+this.expandButtonOffset+"px,\n        transparent 100%)");this.snippetContainer.style.setProperty("-webkit-mask-image",d);this.snippetContainer.style.setProperty("mask-image",
d)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(TH0?"right":"left",this.expandButtonOffset+"px")};
_.G.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.G.setSnippetText=function(d,H){d||(d={});if(_.AR(d)){var K=DX(d,H);K.attachmentRuns||K.commandRuns||K.decorationRuns||K.styleRuns||K.alignment||K.lineBreakMode?this.attributedSnippetTextEl?(_.h("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=DX(d,H),this.attributedSnippetTextEl.headerRuns=jUl(H,this.headerRuns)):this.attributedSnippetText={data:DX(d,H),headerRuns:jUl(H,this.headerRuns)},this.currentSnippetType=0):_.Jf(new _.m1("Tried to set snippet text when HTML element was null",
d)):(this.plainSnippetText.textContent=bD(d.content||"",H),this.currentSnippetType=2)}else{a:{K=mBL(d,H);if(K.runs){K=_.q(K.runs);for(var c=K.next();!c.done;c=K.next())if(c=c.value,c.bold||c.deemphasize||c.italics||c.strikethrough||c.textColor||c.navigationEndpoint||_.M(c,sG)){K=!0;break a}}K=!1}K?this.formattedSnippetText?(this.formattedSnippetText.text=mBL(d,H),this.currentSnippetType=1):_.Jf(new _.m1("Tried to set snippet text when HTML element was null",d)):(this.plainSnippetText.textContent=
bD(_.jG(d),H),this.currentSnippetType=2)}};
_.G.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.G.attributedTextIsEmpty=function(){var d=this.text;if(!_.AR(d))return!0;var H;return((H=d.content)==null?void 0:H.length)===0?!0:!1};
_.G.resize=function(d){if(this.snippetText){if(d===void 0?0:d)this.JSC$16325_lastWidth=NaN;var H=this.hostElement.offsetWidth;if(H!==this.JSC$16325_lastWidth&&!this.isExpanded)if(this.JSC$16325_lastWidth=H,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;d=0;var K,c;H=Math.min(H*this.maxLines/8*2,(c=(K=this.simpleText)==null?void 0:K.length)!=null?c:0)-1;for(K=0;d<=H;)c=Math.floor(d+(H-d)/2),this.setSnippetText(this.text,c),this.isOverflowing()?H=c-1:(d=c+1,K=c);this.setSnippetText(this.text,K);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.G.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.G.onExpandClick=function(){var d=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.h("inline_expander_reset_focus_killswitch")||_.vV(this,function(){var H;((H=_.Kj().resolve(_.$p(_.qZ)))==null?0:H.isKeyBoardInUse())&&_.D7(d.hostElement)});
_.GT(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.G.onCollapseClick=function(){this.collapse();_.GT(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.G.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.G.computeExpandButtonOffset=function(){var d=this.expandSizer;return d?TH0?d.offsetParent?d.offsetParent.offsetWidth-d.offsetWidth-d.offsetLeft:0:d.offsetLeft:0};
_.H3.Object.defineProperties(uo.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.AR(this.text)?this.text.content||"":_.jG(this.text):""}},
expandedText:{configurable:!0,enumerable:!0,get:function(){return this.isExpanded?this.text:void 0}},
expandedHeaderRuns:{configurable:!0,enumerable:!0,get:function(){return this.isExpanded?this.headerRuns:void 0}},
hasAttributedStringText:{configurable:!0,enumerable:!0,get:function(){return _.AR(this.text)?!0:this.text&&_.h("web_replace_formatted_with_attributed_string")&&MI1(this.text)?(this.text=_.JR(this.text),!0):!1}},
showCollapseButton:{configurable:!0,enumerable:!0,get:function(){return!!this.collapseLabel&&this.isExpanded}},
useAttributedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===0}},
useFormattedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===1}},
usePlainSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===2}}});
uo.prototype.onTextChanged=uo.prototype.onTextChanged;uo.prototype.updateMaskAndExpandButtonOffset=uo.prototype.updateMaskAndExpandButtonOffset;uo.prototype.updateSnippetContainerMaxHeight=uo.prototype.updateSnippetContainerMaxHeight;uo.prototype.isExpandedChanged=uo.prototype.isExpandedChanged;uo.prototype.updateTextOnSnippetTypeChange=uo.prototype.updateTextOnSnippetTypeChange;uo.prototype.updateIsFormattedExpanded=uo.prototype.updateIsFormattedExpanded;uo.prototype.updateIsAttributedExpanded=uo.prototype.updateIsAttributedExpanded;
uo.prototype.onClick=uo.prototype.onClick;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],uo.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],uo.prototype,"text",void 0);_.t([_.r(),_.O("design:type",Array)],uo.prototype,"headerRuns",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],uo.prototype,"engagementPanel",void 0);_.t([_.r(),_.O("design:type",Object)],uo.prototype,"maxLines",void 0);
_.t([_.r(),_.O("design:type",String)],uo.prototype,"expandLabel",void 0);_.t([_.r(),_.O("design:type",String)],uo.prototype,"collapseLabel",void 0);_.t([_.r(),_.O("design:type",Object)],uo.prototype,"expandCommand",void 0);_.t([_.r(),_.O("design:type",Object)],uo.prototype,"expandButtonOffset",void 0);_.t([_.I("text"),_.O("design:type",String),_.O("design:paramtypes",[])],uo.prototype,"simpleText",null);
_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],uo.prototype,"onClick",null);_.t([_.I("text","isExpanded"),_.O("design:type",Object),_.O("design:paramtypes",[])],uo.prototype,"expandedText",null);_.t([_.I("headerRuns","isExpanded"),_.O("design:type",Object),_.O("design:paramtypes",[])],uo.prototype,"expandedHeaderRuns",null);
_.t([_.I("text"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],uo.prototype,"hasAttributedStringText",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],uo.prototype,"showExpandButton",void 0);_.t([_.I("collapseLabel","isExpanded"),_.O("design:type",Object),_.O("design:paramtypes",[])],uo.prototype,"showCollapseButton",null);_.t([_.r(),_.O("design:type",Object)],uo.prototype,"isTruncated",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],uo.prototype,"isExpanded",void 0);_.t([_.r(),_.O("design:type",Boolean)],uo.prototype,"isAttributedExpanded",void 0);_.t([_.CK("isExpanded","hasAttributedStringText"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uo.prototype,"updateIsAttributedExpanded",null);_.t([_.r(),_.O("design:type",Boolean)],uo.prototype,"isFormattedExpanded",void 0);
_.t([_.CK("isExpanded","hasAttributedStringText"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uo.prototype,"updateIsFormattedExpanded",null);_.t([_.r(),_.O("design:type",Number)],uo.prototype,"currentSnippetType",void 0);_.t([_.I("currentSnippetType"),_.O("design:type",Object),_.O("design:paramtypes",[])],uo.prototype,"useAttributedSnippet",null);
_.t([_.I("currentSnippetType"),_.O("design:type",Object),_.O("design:paramtypes",[])],uo.prototype,"useFormattedSnippet",null);_.t([_.I("currentSnippetType"),_.O("design:type",Object),_.O("design:paramtypes",[])],uo.prototype,"usePlainSnippet",null);_.t([_.r(),_.O("design:type",Object)],uo.prototype,"alwaysShowExpandButton",void 0);_.t([_.CK("currentSnippetType"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uo.prototype,"updateTextOnSnippetTypeChange",null);
_.t([_.r(),_.O("design:type",Object)],uo.prototype,"attributedSnippetText",void 0);_.t([_.VP("#snippet"),_.O("design:type",HTMLElement)],uo.prototype,"snippetContainer",void 0);_.t([_.VP("#snippet-text"),_.O("design:type",HTMLElement)],uo.prototype,"snippetText",void 0);_.t([_.VP("#plain-snippet-text"),_.O("design:type",HTMLElement)],uo.prototype,"plainSnippetText",void 0);_.t([_.VP("#formatted-snippet-text"),_.O("design:type",Object)],uo.prototype,"formattedSnippetText",void 0);
_.t([_.VP("#attributed-snippet-text"),_.O("design:type",Object)],uo.prototype,"attributedSnippetTextEl",void 0);_.t([_.VP("#expand"),_.O("design:type",HTMLElement)],uo.prototype,"expandButton",void 0);_.t([_.VP("#expand-sizer"),_.O("design:type",HTMLElement)],uo.prototype,"expandSizer",void 0);_.t([_.Mr("isExpanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uo.prototype,"isExpandedChanged",null);
_.t([_.CK("isExpanded","maxLines"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uo.prototype,"updateSnippetContainerMaxHeight",null);_.t([_.CK("isTruncated","showExpandButton","expandButtonOffset"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uo.prototype,"updateMaskAndExpandButtonOffset",null);
_.t([_.Mr("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uo.prototype,"onTextChanged",null);_.t([_.Z({is:"ytd-text-inline-expander",disableElementRegistration:!0})],uo);
_.T(uo,"ytd-text-inline-expander",function(){if(Z3N===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);Z3N=d}d=Z3N;return d},{mode:2});var It=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return d};
_.m(It,_.B);It.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
It.prototype.handleUpdateDescriptionAction=function(d){if(d=_.M(d,_.cTd))if(d.attributedDescription)this.set("data.attributedDescriptionBodyText",d.attributedDescription);else if(d.description){var H;((H=this.data)==null?0:H.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.JR(d.description)):this.set("data.descriptionBodyText",d.description)}};
_.H3.Object.defineProperties(It.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var d,H;return!((d=this.data)==null||!d.attributedDescriptionBodyText)||!((H=this.data)==null||!H.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.data)==null?0:d.collapsedLineCount){var H;return(H=this.data)==null?void 0:H.collapsedLineCount}d=_.iT("web_watch_description_collapsed_default_lines",12);if(_.h("ww_desc_line_page_size_ks"))return d;H=Math.round(_.wn().height*_.iT("web_watch_description_screen_height_percentage",.5)/20);return Math.max(H,d)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return(K=(d=this.data)==null?void 0:d.descriptionBodyText)!=null?K:(H=this.data)==null?void 0:H.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.sourceAttributions}}});
It.prototype.panelContentVisibleChanged=It.prototype.panelContentVisibleChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],It.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],It.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],It.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Boolean)],It.prototype,"panelContentVisible",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],It.prototype,"engagementPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],It.prototype,"shortsPanel",void 0);_.t([_.VP("#inline-expander"),_.O("design:type",Object)],It.prototype,"inlineExpander",void 0);
_.t([_.CK("panelContentVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],It.prototype,"panelContentVisibleChanged",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],It.prototype,"hasDescriptionText",null);_.t([_.I("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],It.prototype,"collapsedLines",null);
_.t([_.I("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.O("design:type",Object),_.O("design:paramtypes",[])],It.prototype,"descriptionText",null);_.t([_.I("data","data.headerRuns"),_.O("design:type",Object),_.O("design:paramtypes",[])],It.prototype,"headerRuns",null);_.t([_.I("data","data.sourceAttributions"),_.O("design:type",Object),_.O("design:paramtypes",[])],It.prototype,"sourceAttributions",null);
_.t([_.Z({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],It);
_.T(It,"ytd-expandable-video-description-body-renderer",function(){if(FNM!==void 0)return FNM;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return FNM=d},{mode:_.qk("kevlar_poly_si_batch_j028")?1:2});var Q93;var tzX=_.H1(function(d){var H=d.data;return _.x("factoid-renderer",{class:"ytwFactoidRendererHost"},_.x("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return H().accessibilityText}},_.x("span",{class:"ytwFactoidRendererValue"},_.x(_.j$,{text:function(){return H().value}})),_.x("span",{class:"ytwFactoidRendererLabel"},_.x(_.j$,{text:function(){return H().label}}))))},"bc");_.iV(tzX,"factoid-renderer",{props:{data:_.dl}});_.iV(_.H1(function(d){var H=d.data;return _.x("upload-time-factoid-renderer",null,_.x(_.wB,{data:function(){return H().factoid}},{factoidRenderer:tzX}))},"cc"),"upload-time-factoid-renderer",{props:{data:_.p7}});_.iV(_.H1(function(d){var H=d.data;return _.x("view-count-factoid-renderer",null,_.x(_.wB,{data:function(){return H().factoid}},{factoidRenderer:tzX}))},"dc"),"view-count-factoid-renderer",{props:{data:_.p7}});var rD=function(){var d=_.B.apply(this,arguments)||this;d.shortsPanel=!1;d.engagementPanel=!1;d.watchWhileSdp=_.h("shorts_desktop_watch_while_sdp");return d};
_.m(rD,_.B);rD.prototype.configureRendererStamper=function(){return{"data.factoid":{id:"factoids",mapping:{factoidRenderer:{component:"factoid-renderer"},viewCountFactoidRenderer:{component:"view-count-factoid-renderer"},uploadTimeFactoidRenderer:{component:"upload-time-factoid-renderer"}}}}};
_.H3.Object.defineProperties(rD.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var d;return(d=this.data)==null?void 0:d.channel}}});
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],rD.prototype,"componentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],rD.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],rD.prototype,"shortsPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],rD.prototype,"engagementPanel",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],rD.prototype,"watchWhileSdp",void 0);_.t([_.I("shortsPanel","engagementPanel","data.channel"),_.O("design:type",Object),_.O("design:paramtypes",[])],rD.prototype,"showChannelInfo",null);_.t([_.Z({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],rD);
_.T(rD,"ytd-video-description-header-renderer",function(){if(Q93!==void 0)return Q93;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.title]]" class="style-scope ytd-video-description-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-video-description-header-renderer"></yt-formatted-string>\n</div>\n<template is="dom-if" if="[[showChannelInfo]]" class="style-scope ytd-video-description-header-renderer">\n    <div id="channel-info" class="style-scope ytd-video-description-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-video-description-header-renderer" href$="[[computeHref_(data.channelNavigationEndpoint)]]" data="[[data.channelNavigationEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="avatar" alt="[[getSimpleString(data.channel)]]" fit="" thumbnail="[[data.channelThumbnail]]" width="36" class="style-scope ytd-video-description-header-renderer">\n      </yt-img-shadow>\n    </a>\n    <ytd-channel-name id="channel-name" channel-name="[[getSimpleString(data.channel)]]" wrap-text="" class="style-scope ytd-video-description-header-renderer">\n    </ytd-channel-name>\n  </div>\n</template>\n\n<div id="factoids" class="style-scope ytd-video-description-header-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Q93=d},{mode:1});var YP6;var Wt=function(){return _.B.apply(this,arguments)||this};
_.m(Wt,_.B);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Wt.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Wt.prototype,"noPadding",void 0);_.t([_.r(),_.O("design:type",Object)],Wt.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Wt);
_.T(Wt,"ytd-list-item-view-model",function(){if(YP6!==void 0)return YP6;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-list-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="list-item" class="style-scope ytd-list-item-view-model">\n  <template is="dom-if" if="[[data.leadingImage]]" class="style-scope ytd-list-item-view-model">\n    <div id="leading-image-container" class="style-scope ytd-list-item-view-model">\n      <yt-image alt="Leading image for [[data.title]]" data="[[data.leadingImage]]" height="24" class="style-scope ytd-list-item-view-model">\n        </yt-image>\n    </div>\n  </template>\n  <div id="content" class="style-scope ytd-list-item-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-list-item-view-model">\n     </yt-attributed-string>\n      <yt-attributed-string id="subtitle" data="[[data.subtitle]]" class="style-scope ytd-list-item-view-model">\n      </yt-attributed-string>\n  </div>\n  <yt-button-view-model data="[[data.iconButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope ytd-list-item-view-model">\n  </yt-button-view-model>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return YP6=d},{mode:1});var O36;var SP6;var EI3;var ykA;var Bt=function(){var d=_.B.apply(this,arguments)||this;d.adaptiveFullWidth=!1;d.modernButtons=_.h("web_modern_buttons");d.buttonOverrides={style:"call-to-action",type:"filled"};d.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return d};
_.m(Bt,_.B);Bt.prototype.handleSetTimestamp_=function(d){this.data&&this.data.shortUrl&&(_.Gn(this.hostElement).querySelector("#share-url").value=d.isSet?_.Qd(this.data.shortUrl,"t",d.timestamp):this.data.shortUrl)};
Bt.prototype.handleSignalActionCopyShareUrl_=function(d,H){(_.h("killswitch_copy_link_target_check")||_.Gn(this.hostElement).querySelector("#copy-button")===H)&&this.copyUrlToClipboard()};
Bt.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Gn(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Bt.prototype.computeStyle_=function(d){return d?d.toLowerCase().replace(/_/g,"-"):""};
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Bt.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Bt.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.O("design:type",String)],Bt.prototype,"rendererStyle",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Bt.prototype,"adaptiveFullWidth",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Bt.prototype,"modernButtons",void 0);_.t([_.r(),_.O("design:type",Object)],Bt.prototype,"buttonOverrides",void 0);_.t([_.ZV({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Bt);
_.T(Bt,"yt-copy-link-renderer",function(){if(ykA===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-copy-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_copy_link_renderer.yt.copy.link.renderer.css.js--\x3e<div id="bar" class="style-scope yt-copy-link-renderer">\n  <input id="share-url" dir="ltr" readonly="" size="45" value="[[data.shortUrl]]" class="style-scope yt-copy-link-renderer">\n  <yt-button-renderer id="copy-button" data="[[data.copyButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope yt-copy-link-renderer"></yt-button-renderer>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;EI3===void 0&&(EI3=document.createElement("template"));var c=EI3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);ykA=d}d=ykA;return d},{mode:2});_.XX("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var zc=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return d};
_.m(zc,_.B);_.G=zc.prototype;_.G.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.G.attached=function(){this.keyboardFocused=!1};
_.G.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var d=_.Kj().resolve(_.$p(_.qZ));d&&(this.keyboardFocused=d.isKeyBoardInUse())}};
_.G.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.G.computeDescription_=function(){if(this.data){if(this.data.toggled&&this.data.toggledDescription)return this.data.toggledDescription;if(!this.data.toggled&&this.data.description)return this.data.description}};
_.G.onChange_=function(){if(this.data){var d=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;d&&this.ytComponentBehavior.resolveCommand(d);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.G.handleUpdateToggleAction_=function(d){(d=_.M(d,HGX))&&this.data&&d.targetId==this.data.targetId&&this.set("data.toggled",d.toggled)};
_.G.toBoolean_=function(d){return!!d};
_.G.reset=function(){};
_.G.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("data-changed",this.data))};
_.G.updateDataToggledFromBinding=function(d){this.set("data.toggled",d.detail.value)};
zc.prototype.dataChangedForBinding=zc.prototype.dataChangedForBinding;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],zc.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],zc.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],zc.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],zc.prototype,"data",void 0);_.t([_.r({computed:"computeDescription_(data.*)"}),_.O("design:type",Object)],zc.prototype,"description_",void 0);_.t([_.r({value:function(){return!!_.Kj().resolve(_.$p(_.qZ))&&_.h("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.O("design:type",Boolean)],zc.prototype,"useKeyboardFocused",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],zc.prototype,"keyboardFocused",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zc.prototype,"dataChangedForBinding",null);_.t([_.ZV({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],zc);
_.T(zc,"yt-toggle-form-field-renderer",function(){if(SP6===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-toggle-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_toggle_form_field_renderer.yt.toggle.form.field.renderer.css.js--\x3e<div id="toggle-container" class="style-scope yt-toggle-form-field-renderer">\n  <div id="caption" class="style-scope yt-toggle-form-field-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button id="input" checked="[[data.toggled]]" disabled="[[toBoolean_(data.isDisabled)]]" noink="" on-change="onChange_" on-checked-changed="updateDataToggledFromBinding" on-focusin="onToggleButtonFocusin_" on-focusout="onToggleButtonFocusout_" class="style-scope yt-toggle-form-field-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<yt-formatted-string id="description" hidden="[[!description_]]" text="[[description_]]" class="style-scope yt-toggle-form-field-renderer">\n</yt-formatted-string>\n<div id="footer-container" class="style-scope yt-toggle-form-field-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;O36===void 0&&(O36=document.createElement("template"));var c=O36;K.call(H,c.content.cloneNode(!0),d.content.firstChild);SP6=d}d=SP6;return d},{mode:2});var b36;var NHC;var X1=function(){var d=_.B.apply(this,arguments)||this;d.isDarkTheme=!1;d.isSearch=!1;d.darkerDarkTheme=_.h("web_darker_dark_theme");d.noTopMargin=_.h("kevlar_watch_no_top_margin");d.maskFade=_.h("web_watch_chips_mask_fade");d.actionMap={"yt-related-chip-command":"handleRelatedChipCommand","yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return d};
_.m(X1,_.B);_.G=X1.prototype;_.G.configureRendererStamper=function(){return{"data.chips":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer"}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.G.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.G.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.G.dataChanged=function(){var d=this.getSelectedIndex();if(d>0)this.selected=d;else{this.selected=0;var H,K;(H=this.ytScrollableChipCloudBehavior)==null||(K=H.reset)==null||K.call(H)}};
_.G.getSelectedIndex=function(){var d;if((d=this.data)==null||!d.chips)return-1;d=-1;for(var H,K=0;K<((H=this.data)==null?void 0:H.chips.length);K++){var c=void 0,p=void 0;if((c=this.data)==null?0:(p=c.chips[K].chipCloudChipRenderer)==null?0:p.isSelected){d=K;break}}return d};
_.G.onResize=function(){var d=this.ytScrollableChipCloudBehavior;_.vV(d,d.setContainerWidthDiff);nW(this.ytScrollableChipCloudBehavior)};
_.G.onDarkModeToggledAction=function(d){this.isDarkTheme=d};
_.G.handleRelatedChipCommand=function(d,H){d=this.JSC$16352_chipsSelector.indexOf(H);d!==-1&&this.JSC$16352_chipsSelector.selectIndex(d)};
_.G.handleChipCloudChipSelectAction=function(d){d=this.JSC$16352_chipsSelector.indexOf(d);d>-1&&this.JSC$16352_chipsSelector.selectIndex(d)};
_.G.handleChipCloudChipDeselectAction=function(){var d=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16352_chipsSelector&&((d==null?0:d.continuationCommand)?_.aF(this.hostElement,[d]):(d==null?0:d.searchEndpoint)?this.ytComponentBehavior.resolveCommand(d):d&&_.l5(this.hostElement,[d],this.hostElement),this.JSC$16352_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.G.updateSelectedFromBinding=function(d){this.selected=d.detail.value};
X1.prototype.onResize=X1.prototype.onResize;X1.prototype.dataChanged=X1.prototype.dataChanged;X1.prototype.isSearchChanged=X1.prototype.isSearchChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],X1.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],X1.prototype,"actionHandlerBehavior",void 0);
_.t([_.u(_.WZ),_.O("design:type",Object)],X1.prototype,"ironResizableBehavior",void 0);_.t([_.u(),_.O("design:type",xg)],X1.prototype,"ytScrollableChipCloudBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],X1.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],X1.prototype,"data",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],X1.prototype,"selected",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],X1.prototype,"isDarkTheme",void 0);_.t([_.r({value:160}),_.O("design:type",Number)],X1.prototype,"scrollDistance",void 0);_.t([_.r(),_.O("design:type",Object)],X1.prototype,"isSearch",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],X1.prototype,"darkerDarkTheme",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],X1.prototype,"noTopMargin",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],X1.prototype,"maskFade",void 0);_.t([_.VP("#chips"),_.O("design:type",Object)],X1.prototype,"JSC$16352_chipsSelector",void 0);_.t([_.CK("isSearch"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],X1.prototype,"isSearchChanged",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],X1.prototype,"dataChanged",null);
_.t([_.nK("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],X1.prototype,"onResize",null);_.t([_.ZV({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],X1);
_.T(X1,"yt-chip-cloud-renderer",function(){if(NHC===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_renderer.yt.chip.cloud.renderer.css.js--\x3e<div id="container" class="style-scope yt-chip-cloud-renderer">\n  <div id="left-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="left-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n  <div id="scroll-container" class="style-scope yt-chip-cloud-renderer">\n    <iron-selector id="chips" activate-event="" role="tablist" selected="[[selected]]" selected-attribute="selected" on-selected-changed="updateSelectedFromBinding" class="style-scope yt-chip-cloud-renderer">\n    </iron-selector>\n  </div>\n  <div id="right-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="right-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;b36===void 0&&(b36=document.createElement("template"));var c=b36;K.call(H,c.content.cloneNode(!0),d.content.firstChild);NHC=d}d=NHC;return d},{mode:2});var DXd,foN=function(){return DXd!==void 0?DXd:DXd=document.createElement("template")};
document.head.appendChild(foN().content);var Ak6;var j9C=document.head,vI3=j9C.appendChild,duM;if(Ak6===void 0){var HZ7=document.createElement("template");_.P(HZ7,"");HZ7.content.insertBefore(foN().content.cloneNode(!0),HZ7.content.firstChild);Ak6=HZ7}duM=Ak6;vI3.call(j9C,duM.content);var $u7=_.H1(function(d){var H=d.data;return _.x("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.x("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.x("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.x(_.n,{cond:function(){return _.b8(H().image)},
then:function(K){return _.x("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.x(_.d7,{data:K,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.x("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.x(_.j$,{text:function(){return H().title}})),_.x("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.x(_.j$,{text:function(){return H().subtitle}})))),_.x(_.n,{cond:function(){var K;
return(K=H())==null?void 0:K.hasBottomDivider},
then:function(){return _.x("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"ec");var Kdd=_.H1(function(d){var H=d.data;return _.x("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.x("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.x(_.wB,{data:function(){var K;return(K=H().offerPlanDetailsItem)!=null?K:[]}},{offerPlanDetailsItemViewModel:function(K){return _.x("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.x($u7,{data:K.data}))}})),_.x("div",null,_.x(_.n,{cond:function(){return H().hasBottomDivider},
then:function(){return _.x("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.x("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.x("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.x("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.x("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"fc");var c03=_.H1(function(d){var H=d.data;d=_.q(_.GO(!1,void 0,"SpEGQd"));var K=d.next().value,c=d.next().value,p=_.n7(function(){c(!K());return!1}),g=function(){var a;
return(a=H().offerPlanDetailsContainer)!=null?a:[]};
return _.x("lp-complex-offer-card-details-view-model",null,_.x("div",null,_.x(_.n,{cond:function(){return K()},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.x("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":p,"aria-expanded":K},_.x(_.j$,{text:function(){return H().expandedTitle}})),_.x("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.x(_.wB,{data:g},{offerPlanDetailsContainerViewModel:function(a){return _.x("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.x(Kdd,{data:a.data}))}})),_.x("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.x(_.j$,{text:function(){return H().legalText}})))},
else:function(){return _.x("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":p,"aria-expanded":K},_.x(_.j$,{text:function(){return H().collapsedTitle}}),_.x("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.x(_.hu,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"gc");var pRX=_.H1(function(d){var H=d.data;return _.x("lp-complex-offer-card-option-view-model",null,_.x("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.x(_.n,{cond:function(){return H().topDividerText},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.x("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.x("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.x("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.x(_.j$,{text:function(){return H().topDividerText}}))))}}),_.x(_.n,{cond:function(){return H().description},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.x(_.j$,{text:function(){return H().description}}))}}),_.x(_.n,{cond:function(){return H().planPricingPrimary},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.x(_.j$,{text:function(){return H().planPricingPrimary}}))}}),_.x(_.n,{cond:function(){return H().planPricingSecondary},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.x(_.j$,{text:function(){return H().planPricingSecondary}}))}}),_.x(_.n,{cond:function(){return H().primaryButton},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.x(_.wB,{data:function(){return H().primaryButton}},{buttonViewModel:function(K){return _.x(_.xk,{data:K.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"hc");var gbS=_.H1(function(d){var H=d.data;var K=function(){var g;return((g=H())==null?void 0:g.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
d={};var c={},p={};return _.x("ytm-lp-complex-offer-card-view-model",null,_.x("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.x("div",{class:_.xM((d.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=K,d),"ytmLpComplexOfferCardViewModelCardContainer")},_.x(_.n,{cond:function(){var g;return(g=H())==null?void 0:g.bannerText},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.x("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.x(_.j$,{text:function(){return H().bannerText}})))}}),_.x(_.n,{cond:function(){return _.b8(H().logo)},
then:function(g){var a={};return _.x("div",{class:_.xM((a.ytmLpComplexOfferCardViewModelLogoAlignLeft=K,a),"ytmLpComplexOfferCardViewModelLogo")},_.x(_.d7,{data:g,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.x("div",{class:_.xM((c.ytmLpComplexOfferCardViewModelTitleAlignLeft=K,c),"ytmLpComplexOfferCardViewModelTitle")},_.x(_.j$,{text:function(){return H().title}})),_.x(_.n,{cond:function(){var g;
return(g=H())==null?void 0:g.subtitle},
then:function(){var g={};return _.x("div",{class:_.xM((g.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=K,g),"ytmLpComplexOfferCardViewModelSubtitle")},_.x(_.j$,{text:function(){return H().subtitle}}))}}),_.x(_.n,{cond:function(){return H().planPricingPrimary},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.x(_.j$,{text:function(){return H().planPricingPrimary}}))}}),_.x(_.n,{cond:function(){return H().planPricingSecondary},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.x(_.j$,{text:function(){return H().planPricingSecondary}}))}}),_.x(_.n,{cond:function(){return H().purchaseButton},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.x(_.wB,{data:function(){return H().purchaseButton}},{buttonViewModel:function(g){return _.x(_.xk,{data:g.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.x(_.n,{cond:function(){var g;
return(g=H())==null?void 0:g.offerOptions},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.x(_.wB,{data:function(){return H().offerOptions}},{lpComplexOfferCardOptionViewModel:pRX}))}}),_.x("div",{class:_.xM((p.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=K,p),"ytmLpComplexOfferCardViewModelLegalText")},_.x(_.j$,{text:function(){return H().legalText}})),_.x(_.n,{cond:function(){var g;
return(g=H())==null?void 0:g.offerCardDetails},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.x(_.wB,{data:function(){return H().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:c03}))}}))))},"ic");var iZM=_.H1(function(d){var H=d.data;var K=function(){var a;return((a=H())==null?void 0:a.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
d={};var c={},p={},g={};return _.x("ytm-lp-complex-offer-card-section-view-model",null,_.x("div",{class:_.xM("ytmLpComplexOfferCardSectionViewModelHost")},_.x("div",{class:_.xM((d.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=K,d),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.x("div",{class:_.xM((c.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=K,c),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.x("h2",{class:_.xM((p.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
K,p),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.x(_.j$,{text:function(){return H().title}}))),_.x(_.n,{cond:function(){var a;
return(a=H())==null?void 0:a.subtitle},
then:function(){var a={},e={};return _.x("div",{class:_.xM((a.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=K,a),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.x("div",{class:_.xM((e.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=K,e),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.x(_.j$,{text:function(){return H().subtitle}})))}}),_.x("div",{class:_.xM((g.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=K,g),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.x(_.wB,{data:function(){var a;
return(a=H().offerPlans)!=null?a:[]}},{lpComplexOfferCardViewModel:function(a){return _.x("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.x(gbS,{data:a.data}))}})))))},"jc");var GdB=_.H1(function(d){return _.x("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.x("div",{class:"ytLpCouponBannerViewModelIcon"},_.x(_.hu,{icon:function(){return"price_tag"}})),_.x("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.x("div",{class:"ytLpCouponBannerViewModelContent"},_.x("div",{class:"ytLpCouponBannerViewModelHeading"},_.x(_.j$,{text:function(){var H;
return(H=d.data())==null?void 0:H.title}})),_.x("div",{class:"ytLpCouponBannerViewModelBody"},_.x(_.j$,{text:function(){var H;
return(H=d.data())==null?void 0:H.subtitle}})))))},"kc");
GdB.idomCompat=!0;_.J6=AXM.getInstance();var obM;obM=_.H1(function(d){return _.x("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":d.shouldAriaHideContent},_.x("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:d.questionId},_.x(_.j$,{text:d.question})))},"lc");
_.qpC=_.H1(function(d){var H=d.data;var K=d.themeOverride;d=_.q(_.GO(!1,void 0,"ljTVPd"));var c=d.next().value,p=d.next().value;d=_.n7(function(){p(!c());return!1});
var g=function(){return c()?"EXPAND_LESS":"EXPAND_MORE"},a=("faq-container"+_.rM(_.J6)).toString(),e="faq-question-and-answers-section-question"+_.rM(_.J6),k={},C={};
return _.x("faq-entry-view-model-c3",null,_.x("div",{class:_.xM("yt-lp-faq-entry-view-model",(k["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return K==null?void 0:K().useDarkTheme},k))},_.x("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":d,role:"button","aria-expanded":c,"aria-labelledby":e.toString(),"tab-index":"0"},_.x(obM,{question:function(){return H().question},
questionId:e,shouldAriaHideContent:!0}),_.x(_.n,{cond:function(){return c()!==void 0},
then:function(){return _.x("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.x(_.hu,{icon:g,ariaHidden:!0}),_.x("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.x("div",{class:_.xM("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(C["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!c()},C))},_.x("div",{id:a},_.x(_.L6,{each:function(){return H().answers||[]}},function(R){return _.x("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.x(_.j$,{text:R}))})))))},"mc");
_.qpC.idomCompat=!0;var aWA=_.H1(function(d){var H=d.data;var K=d.themeOverride;d={};return _.x("lp-faq-section-view-model-c3",null,_.x("div",{class:_.xM("yt-lp-faq-section-view-model",(d["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},d["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(K==null||!K().useDarkTheme)},d))},_.x("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.x(_.n,{cond:function(){return H().header},
then:function(c){return _.x("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.x(_.j$,{text:c}))}}),_.x("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.x(_.wB,{data:function(){return H().faqs}},{faqEntryViewModel:function(c){return _.x(_.qpC,{data:c.data,
themeOverride:K})}})),_.x("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.x(_.L6,{each:function(){return H().footers||[]}},function(c){return _.x(_.j$,{text:c})})),_.x(_.n,{cond:function(){return H().legal},
then:function(c){return _.x("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.x(_.j$,{text:c}))}}))))},"nc");
aWA.idomCompat=!0;var lWX=_.H1(function(d){var H=d.data;var K=d.themeOverride;_.WE(function(){var a=H().gtmId;a&&_.Bm(a,_.Fm("GL",""))});
var c={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var a,e,k;return(k=(a=H().logo)==null?void 0:(e=a.accessibilityData)==null?void 0:e.label)!=null?k:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},p=_.Kj().resolve(_.$p(_.fM)),g=function(){return p&&p()||(K==null?void 0:K().useDarkTheme)};
return _.x("lp-header-section-view-model",null,_.x("div",{class:function(){var a=H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",e=H().marginType==="LP_SECTION_MARGIN_TYPE_TOP",k=K==null?void 0:K().useDarkTheme,C=["lp-header-section-view-model"];a&&C.push("lp-header-section-view-model--ptc-layout-type");e&&C.push("lp-header-section-view-model__lp-header-section-margin");k&&C.push("lp-header-section-view-model--premium-force-dark-mode");return C.join(" ")}},_.x(_.n,{cond:function(){return H().logo},
then:function(){return _.x("div",null,_.x(_.n,{cond:g,then:function(){return _.x(_.n,{cond:function(){var a;return(a=H().logo)==null?void 0:a.imageDark},
then:function(a){return _.x(_.d7,Object.assign({},{data:a},c))}})},
else:function(){return _.x(_.n,{cond:function(){var a;return(a=H().logo)==null?void 0:a.imageLight},
then:function(a){return _.x(_.d7,Object.assign({},{data:a},c))}})}}))}}),_.x(_.n,{cond:function(){return H().title},
then:function(a){return _.x("div",{class:"lp-header-section-view-model__lp-header-title"},_.x(_.j$,{text:a}))}}),_.x("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.x(_.n,{cond:function(){return H().subtitles},
then:function(a){return _.x(_.L6,{each:a},function(e){return _.x("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.x(_.j$,{text:e}))})}})),_.x(_.n,{cond:function(){return H().additionalInfo},
then:function(a){return _.x("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.x(_.j$,{text:a}))}}),_.x("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.x(_.n,{cond:function(){return H().primaryButton},
then:function(a){return _.x("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.x(_.wB,{data:a},{buttonViewModel:_.xk}))}}),_.x(_.n,{cond:function(){return H().secondaryButton},
then:function(a){return _.x("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.x(_.wB,{data:a},{buttonViewModel:_.xk}))}})),_.x(_.n,{cond:function(){return H().otherOffersInfo},
then:function(a){return _.x("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.x(_.j$,{text:a}))}}),_.x("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.x(_.n,{cond:function(){return H().billingInfo},
then:function(a){return _.x(_.L6,{each:a},function(e){return _.x("div",null,_.x(_.j$,{text:e}))})}}))))},"oc");
lWX.idomCompat=!0;var e0C=_.H1(function(d){var H=d.data;var K=_.vj(d.themeOverride,{useDarkTheme:!1});d={};d=_.xM("ytm-lp-headline-section-view-model",(d["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return K().useDarkTheme},d));
return _.x("lp-headline-section-view-model",null,_.x("div",{class:d},_.x("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.x(_.j$,{text:function(){return H().title}})),_.x(_.n,{cond:function(){return H().subtitle},
then:function(c){return _.x("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.x(_.j$,{text:c}))}})))},"pc");var kdS=_.H1(function(d){var H=d.data;var K=d.themeOverride;var c=_.Kj().resolve(_.$p(_.fM)),p=function(){return c&&c()||(K==null?void 0:K().useDarkTheme)},g=function(){var C,R;
var V=p()?(C=H().textBackgroundImage)==null?void 0:C.imageDark:(R=H().textBackgroundImage)==null?void 0:R.imageLight;return U0F((V==null?void 0:V.sources)||[])},a=function(){var C,R;
return p()?(C=H().featureImage)==null?void 0:C.imageDark:(R=H().featureImage)==null?void 0:R.imageLight},e=function(){return H().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},k=function(){var C,R;
return p()?(C=H().logo)==null?void 0:C.imageDark:(R=H().logo)==null?void 0:R.imageLight};
return _.x("ytm-lp-large-feature-section-view-model",null,_.x("div",{class:function(){var C=H().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",R=H().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",V=(H().index||0)%2===1,U=K==null?void 0:K().useDarkTheme,L=["yt-lp-large-feature-section-view-model"];C?L.push("yt-lp-large-feature-section-view-model--music-feature-type"):R?L.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):V||L.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
U&&L.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return L.join(" ")}},_.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.x(_.n,{cond:a,
then:function(){return _.x(_.d7,{data:function(){return a()},
alt:function(){var C,R,V;return(V=(C=H().featureImage)==null?void 0:(R=C.accessibilityData)==null?void 0:R.label)!=null?V:""},
contentMode:e})}})),_.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var C;return((C=g())==null?0:C.url)?"background-image: url("+_.Xa(g().url)+");":""}},_.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.x(_.n,{cond:k,
then:function(){return _.x(_.d7,{data:function(){return k()},
alt:function(){var C,R,V;return(V=(C=H().logo)==null?void 0:(R=C.accessibilityData)==null?void 0:R.label)!=null?V:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.x(_.n,{cond:function(){return H().eyebrowText},
then:function(){return _.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.x(_.j$,{text:function(){return H().eyebrowText}}))}}),_.x(_.n,{cond:function(){return H().title},
then:function(){return _.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.x(_.j$,{text:function(){return H().title}}))}}),_.x(_.n,{cond:function(){return H().subtitles},
then:function(){return _.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.x(_.L6,{each:function(){return H().subtitles||[]}},function(C){return _.x(_.j$,{text:C})}))}})))))},"qc");
kdS.idomCompat=!0;var xuU=_.H1(function(d){return _.x("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.x("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.x(_.hu,{icon:function(){var H;return(H=d.data())==null?void 0:H.iconType},
className:function(){var H;switch((H=d.data())==null?void 0:H.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var H;return((H=d.data())==null?void 0:H.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.x("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.x(_.j$,{text:function(){var H;
return(H=d.data())==null?void 0:H.text},
className:function(){var H;return((H=d.data())==null?void 0:H.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"rc");var nbM=_.H1(function(d){d=_.dg(d,{config:void 0,themeOverride:void 0});var H=d.data,K=d.config,c=d.themeOverride;d={};d=_.xM("ytm-lp-offer-card-option-view-model",(d["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var e;return(e=c())==null?void 0:e.useDarkTheme},d));
var p=_.n7(function(){var e,k;(e=K())==null||(k=e.handleRadioButtonClick)==null||k.call(e,H());return!1}),g=function(){var e;
return(e=K())==null?void 0:e.shouldDisplayRadioButton},a=function(){var e;
return(e=H().featureListItems)!=null?e:[]};
return _.x("ytm-lp-offer-card-option-view-model",null,_.x("div",{class:d,"on:click":_.n7(function(){if(g()){var e,k;(e=K())==null||(k=e.handleRadioButtonClick)==null||k.call(e,H())}return!1})},_.x(_.n,{cond:g,
then:function(){return _.x("div",null,_.x("input",{type:"radio","on:click":p,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var e;return!((e=K())==null||!e.isOptionSelected)}}))}}),_.x("div",null,_.x("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.x(_.j$,{text:function(){return H().eyebrowText}})),_.x("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.x(_.j$,{text:function(){return H().title}})),_.x("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.x(_.j$,{text:function(){return H().subtitle}})),_.x(_.n,{cond:function(){return a().length>0},
then:function(){return _.x("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.x(_.wB,{data:a},{lpFeatureListItemViewModel:xuU}))}}),_.x("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.x(_.j$,{text:function(){return H().description}})))))},"sc");
nbM.idomCompat=!0;var CaS=_.H1(function(d){var H=d.data;var K=d.themeOverride;d=_.q(_.V2(function(){var g,a=(g=H().offerOptions)==null?void 0:g[0];return _.M(a,C$3)||{}}));
var c=d.next().value,p=d.next().value;d={};return _.x("ytm-lp-offer-card-view-model",null,_.x("div",{class:_.xM("ytm-lp-offer-card-view-model",(d["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(K==null||!K().useDarkTheme)},d))},_.x("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.x(_.n,{cond:function(){return H().titleIconType},
then:function(){return _.x("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.x(_.hu,{icon:function(){var g;return((g=H().titleIconType)==null?void 0:g.toString())||""}}))}}),_.x("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.x(_.j$,{text:function(){return H().title}})),_.x(_.wB,{data:function(){return H().titleBadge}},{badgeViewModel:function(g){return _.x("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.x(_.g$,{data:g.data}))}})),_.x("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.x(_.wB,{data:function(){return H().offerOptions}},{lpOfferCardOptionViewModel:function(g){var a=g.data;
return _.x(_.HE,null,_.x("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.x(nbM,{data:a,config:function(){var e;return{shouldDisplayRadioButton:(H().offerOptions||[]).length>1,isOptionSelected:a().id===((e=c())==null?void 0:e.id),handleRadioButtonClick:function(k){return void p(k)}}},
themeOverride:K}))}})),_.x("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.x(_.wB,{data:function(){var g;
return(g=c())==null?void 0:g.purchaseButtonOverride}},{buttonViewModel:_.xk}))))},"tc");
CaS.idomCompat=!0;var R0U=_.H1(function(d){var H=d.data;var K=d.themeOverride;d={};d=_.xM("ytm-lp-offer-card-section-view-model",(d["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var c;return K==null?void 0:(c=K())==null?void 0:c.useDarkTheme},d));
return _.x("ytm-lp-offer-card-section-view-model",null,_.x("div",{class:d},_.x(_.n,{cond:function(){return H().title!==void 0},
then:function(){return _.x("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.x("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.x(_.j$,{text:function(){return H().title}})),_.x(_.n,{cond:function(){return H().subtitle},
then:function(){return _.x("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.x(_.j$,{text:function(){return H().subtitle}}))}}))}}),_.x("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.x(_.wB,{data:function(){return H().offerCards}},{lpOfferCardViewModel:function(c){return _.x("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.x(CaS,{data:c.data,
themeOverride:K}))}})),_.x(_.n,{cond:function(){return H().footer},
then:function(){return _.x("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.x(_.j$,{text:function(){return H().footer}}))}})))},"uc");var VpC=_.H1(function(d){var H=d.data;return _.x("lp-offer-table-cell-content-view-model",null,_.x("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.x(_.w9,null,_.x(_.MM,{when:function(){return H().title}},function(){return _.x(_.j$,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return H().title}})}),_.x(_.MM,{when:function(){return H().subTitle}},function(){return _.x(_.j$,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return H().subTitle}})}),_.x(_.MM,{when:function(){return H().featureDescription}},function(){return _.x(_.j$,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return H().featureDescription}})}),_.x(_.MM,{when:function(){return H().description}},function(){return _.x(_.j$,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return H().description}})}),_.x(_.MM,{when:function(){return H().iconType}},function(){return _.x("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.x(_.hu,{icon:function(){return H().iconType.toString()}}))}),_.x(_.MM,{when:function(){return H().purchaseButton}},function(){return _.x(_.wB,{data:function(){return H().purchaseButton}},{buttonViewModel:function(K){return _.x("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.x(_.xk,{data:K.data}))}})}),_.x(_.MM,{when:function(){return H().note}},function(){return _.x(_.j$,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return H().note}})}),_.x(_.MM,{when:function(){return H().featureDetail}},function(){return _.x(_.j$,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return H().featureDetail}})}),_.x(_.MM,{when:function(){return H().badge}},function(){return _.x(_.wB,{data:function(){return H().badge}},{badgeViewModel:_.g$})}))))},"vc");
VpC.idomCompat=!0;var Uu7=_.H1(function(d){var H=d.data;return _.x("lp-offer-table-cell-view-model",null,_.x("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(H().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.x(_.wB,{data:function(){return H().contents}},{lpOfferTableCellContentViewModel:VpC})))},
"wc");
Uu7.idomCompat=!0;var h0B=_.H1(function(d){var H=d.data;var K=d.lpTableIsFirstRow;var c=d.lpTableIsLastRow;var p=function(){return(K==null?0:K())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},g=function(){return(K==null?0:K())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(c==null?0:c())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.x("ytm-lp-offer-table-row-view-model",null,_.x("div",{class:"yt-lp-offer-table-row-view-model"},_.x(_.wB,{data:function(){return H().rowHeaderCell}},{lpOfferTableCellViewModel:function(a){return _.x("div",{class:p},_.x(Uu7,{data:a.data}))}}),_.x(_.wB,{data:function(){return H().contentCells}},{lpOfferTableCellViewModel:function(a){return _.x("div",{class:g},_.x(Uu7,{data:a.data}))}})))},"xc");
h0B.idomCompat=!0;var LdM=_.H1(function(d){var H=d.data;var K=d.themeOverride;var c=_.Kj().resolve(_.$p(_.fM)),p=function(){return _.M(H().logo,JTM)||{}};
d={};return _.x("ytm-lp-offer-table-section-view-model",null,_.x("div",{class:"yt-lp-offer-table-view-model"},_.x(_.n,{cond:function(){var g,a;return c&&c()||(K==null?0:K().useDarkTheme)?(g=p())==null?void 0:g.imageDark:(a=p())==null?void 0:a.imageLight},
then:function(g){return _.x(_.d7,{data:g,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var a,e,k;return(k=(a=p())==null?void 0:(e=a.accessibilityData)==null?void 0:e.label)!=null?k:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.x("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.x(_.j$,{text:function(){return H().title}})),_.x("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.x(_.j$,{text:function(){return H().subtitle}})),_.x(_.n,{cond:function(){return H().disclaimers},
then:function(g){return _.x("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.x(_.L6,{each:g},function(a){return _.x("div",null,_.x(_.j$,{text:a}))}))}}),_.x("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.x(_.wB,{data:function(){return H().rows}},{lpOfferTableRowViewModel:function(g,a){return _.x(h0B,{data:g.data,
lpTableIsFirstRow:function(){return a()===0},
lpTableIsLastRow:function(){return a()===H().rows.length-1}})}})),_.x("div",{class:_.xM((d["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return H().hasFooterBackground},d))},_.x(_.n,{cond:function(){return H().footer},
then:function(){return _.x("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.x(_.j$,{text:function(){return H().footer}}))}}),_.x(_.n,{cond:function(){return H().footerTitle},
then:function(){return _.x("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.x(_.j$,{text:function(){return H().footerTitle}}))}}),_.x(_.n,{cond:function(){return H().footerDescription},
then:function(){return _.x("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.x(_.j$,{text:function(){return H().footerDescription}}))}}))))},"yc");
LdM.idomCompat=!0;var MpC=_.H1(function(d){var H=d.data;var K=d.themeOverride;var c=_.Kj().resolve(_.$p(_.fM)),p=function(){var e;return K==null?void 0:(e=K())==null?void 0:e.useDarkTheme},g=function(){var e,k;
return c&&c()||p()?(e=H().image)==null?void 0:e.imageDark:(k=H().image)==null?void 0:k.imageLight};
d={};d=_.xM("ytm-lp-small-feature-section-view-model",(d["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=p,d));var a=function(){var e,k,C;return(C=(e=H().image)==null?void 0:(k=e.accessibilityData)==null?void 0:k.label)!=null?C:""};
return _.x("ytm-lp-small-feature-section-view-model",{class:d},_.x(_.n,{cond:function(){return g()&&!x94},
then:function(){return _.x("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.x(_.d7,{data:function(){return g()},
alt:a,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.x("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.x("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.x(_.n,{cond:function(){return H().title},
then:function(e){return _.x(_.j$,{text:e})}})),_.x("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.x(_.j$,{text:function(){return H().description}}))))},"zc");
MpC.idomCompat=!0;var muC=_.H1(function(d){var H=d.data;var K=d.themeOverride;d={};return _.x("ytm-lp-small-feature-section-group-view-model",null,_.x("div",{class:_.xM("ytm-lp-small-feature-section-group-view-model",(d["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(K==null||!K().useDarkTheme)},d))},_.x("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.x(_.wB,{data:function(){return H().smallFeatures}},{lpSmallFeatureSectionViewModel:function(c){return _.x("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.x(MpC,{data:c.data,
themeOverride:K}))}}))))},"Ac");
muC.idomCompat=!0;_.iV(_.H1(function(d){var H=d.data;var K=function(){return H().forcedTheme==="USER_INTERFACE_THEME_DARK"},c=function(){return H().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},p=function(){var a="",e,k;
var C=_.Kj().resolve(_.$p(_.fM));C=K()||(C==null?0:C())?(e=H().themedImageViewModel)==null?void 0:e.imageDark:(k=H().themedImageViewModel)==null?void 0:k.imageLight;(e=U0F((C==null?void 0:C.sources)||[]))&&e.url&&(a=c()?"background-image: linear-gradient(to bottom, transparent, "+(H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.Xa(e.url)+");":"background-image: url("+_.Xa(e.url)+");");return a},g=function(){return{useDarkTheme:K()}};
d={};return _.x("yt-section-group-view-model",null,_.x("div",{class:_.xM("yt-lp-section-group-view-model",(d["yt-lp-section-group-view-model--premium-force-dark-mode"]=K,d["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},d))},_.x(_.n,{cond:function(){return p().length},
then:function(){var a={};return _.x("div",{class:_.xM("yt-lp-section-group-view-model__bg-image",(a["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=c,a)),style:p})}}),_.x("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.x(_.wB,{data:function(){return H().sections}},{lpFaqSectionViewModel:function(a){return _.x(aWA,{data:a.data,
themeOverride:g})},
lpHeaderSectionViewModel:function(a){return _.x(lWX,{data:a.data,themeOverride:g})},
lpHeadlineSectionViewModel:function(a){return _.x(e0C,{data:a.data,themeOverride:g})},
lpLargeFeatureSectionViewModel:function(a){return _.x(kdS,{data:a.data,themeOverride:g})},
lpOfferCardSectionViewModel:function(a){return _.x(R0U,{data:a.data,themeOverride:g})},
lpComplexOfferCardSectionViewModel:function(a){return _.x(iZM,{data:a.data})},
lpOfferTableSectionViewModel:function(a){return _.x(LdM,{data:a.data,themeOverride:g})},
lpSmallFeatureSectionGroupViewModel:function(a){return _.x(muC,{data:a.data,themeOverride:g})},
lpCouponBannerViewModel:function(a){return _.x(GdB,{data:a.data})}}))))},"Bc"),"yt-section-group-view-model",{props:{data:_.dl}});var ugX=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.wR6=_.H1(function(d){function H(){if(ugX.has(d.data().displayType)){var C=!c(),R;if((R=d.disableDeselection)==null||!R.call(d)||C){d.data().selected=C;R=Object.assign({},a(),{selected:C});e(R);var V;(V=d.callback)==null||V.call(d,R,C)}}}
var K=_.Af("chip-view-model"),c=function(){var C,R;return!!(((C=d.selected)==null?void 0:C.call(d))!==void 0?(R=d.selected)==null?0:R.call(d):a().selected)},p=_.q(_.V2(d.data)),g=p.next().value;
p=p.next().value;var a=g,e=p,k=_.Uj(Pch,function(){return d.data().chipEntityKey||""});
return _.x("chip-view-model",{class:"ytChipViewModelHost",el:K},_.x(pNX,{data:function(){var C,R=Object.assign({},a(),{selected:c()}),V=k(),U=(C=d.disableDeselection)==null?void 0:C.call(d);a:switch(R.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":C=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":C=3;break a;default:C=0}return{text:(V==null?void 0:V.text)||R.text,state:R.disabled?1:R.selected?0:2,type:C,onTap:IxY(R,K,H,U),
accessibilityLabel:R.accessibilityLabel||R.text}}}))},"Cc");
_.wR6.idomCompat={callbacks:{callback:!0}};_.PaM=_.H1(function(d){var H=_.Uj(wu1,function(){var a;return(a=d.data())==null?void 0:a.chipBarStateEntityKey}),K=function(){return d.data().disableDeselection},c=_.q(_.V2(function(){var a;
if(((a=H())==null?void 0:a.selectedIndex)!=void 0)return H().selectedIndex;var e,k;a=_.q(((e=d.data())==null?void 0:(k=e.chips)==null?void 0:k.entries())||[]);for(e=a.next();!e.done;e=a.next()){e=_.q(e.value);k=e.next().value;e=e.next().value;var C=void 0;if((C=_.M(e,_.SK))==null?0:C.selected)return k}return-1})),p=c.next().value,g=c.next().value;
return _.x("chip-bar-view-model",{class:_.xM("ytChipBarViewModelHost",d.className),role:"tablist"},_.x(_.wB,{data:function(){return d.data().chips}},{chipViewModel:function(a,e){return _.x("div",{class:"ytChipBarViewModelChipWrapper"},_.x(_.wR6,{data:a.data,
selected:function(){return e()===p()},
callback:function(k,C){k=!!C;C=e();g(k?C:-1);var R,V=(R=d.data())==null?void 0:R.chipBarStateEntityKey;V&&k&&_.jO(_.PI("chipBarStateEntity",V,{key:V,selectedIndex:C}))},
disableDeselection:d.disableDeselection||K}))}}))},"Dc");_.iV(_.PaM,"chip-bar-view-model",{props:{data:_.p7,className:_.p7,disableDeselection:_.p7}});_.u6g=_.H1(function(d){var H=d.data;d={};return _.x("divider-view-model",{class:_.xM("divider-view-model-wiz",(d["divider-view-model-wiz__inset-thin-padding"]=function(){return H().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},d))},_.x("div",{class:_.xM("divider-view-model-wiz__base-divider",function(){return rn5(H().dividerStyle)}),
style:_.UQ({"background-color":function(){return H().backgroundColor?_.Yi(H().backgroundColor):void 0}})}))},"Ec");
_.u6g.idomCompat=!0;_.iV(_.u6g,"divider-view-model",{props:{data:_.dl}});var L8=new Map,hE=new Map,zO5=0,M$;var QfD=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],Ohh={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var IW0,r0d;IW0=function(d){return function(H){return function(){return(H==null?void 0:H())!==void 0?String(H())+d:void 0}}};
_.s$=IW0("px");r0d=IW0("s");var WdN=FnF(function(d){return d.targetGroupId}).useUpdatableData;var z0U=_.H1(function(d){function H(v){return function(){var el=W().numItemsPerGridRow,l1=v()*el;el=l1+el;var V4,Mf;return(Mf=(V4=c().contents)==null?void 0:V4.slice(l1,el))!=null?Mf:[]}}
var K=_.dg(d,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),c=K.data,p=K.layoutContainerWidth,g=K.shouldUseOwnContainerSize,a=K.marginSettings,e=_.me(),k=_.q(WdN(function(){var v,el;return{targetGroupId:(v=c().targetingContext)==null?void 0:(el=v.targetGroupId)==null?void 0:el[0]}})).next().value;
K=_.q(_.GO(!0,void 0,"f25nob"));var C=K.next().value,R=K.next().value,V=function(){var v,el=(v=_.M(c().showMoreButton,_.OV))==null?void 0:v.trackingParams;el&&_.nU(_.hR(),el);R(!1)},U=function(){var v,el=(v=_.M(c().showLessButton,_.OV))==null?void 0:v.trackingParams;
el&&_.nU(_.hR(),el);R(!0)};
K=_.Af("grid-shelf-view-model");var L=_.EhX(K,{canHaveZeroSize:!1}),w=function(){var v;return(v=c().contentAspectRatio)!=null?v:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},W=_.ey(function(){var v=_.yY({containerWidth:g()&&L.width()>0?L.width()||p():p(),
sizing:"EXTRA_COMPACT",marginSettings:a(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:v.maxContainerWidth,numItemsPerGridRow:v.numItems,contentPadding:g()?v.margin:v.contentMargin,itemWidth:v.itemWidth,itemMargin:v.gutter/2}},void 0,"b3gcJf"),J=function(){if(c().enableVerticalExpansion){if(C())return F();
var v,el,l1=(el=(v=c().contents)==null?void 0:v.length)!=null?el:0;return Math.ceil(l1/W().numItemsPerGridRow)}return W().numItemsPerGridRow<=2?2:1},F=function(){var v;
return Math.ceil(((v=c().minCollapsedItemCount)!=null?v:1)/W().numItemsPerGridRow)},Y=function(){return c().enableVerticalExpansion&&c().showLessButton&&!C()&&J()>F()},A=function(){var v,el;
return c().enableVerticalExpansion&&c().showMoreButton&&C()&&((el=(v=c().contents)==null?void 0:v.length)!=null?el:0)>W().numItemsPerGridRow*F()},E=function(){return!Y()},N=function(){return!A()},y={};
return _.x("grid-shelf-view-model",{class:_.xM("ytGridShelfViewModelHost",d.className,(y.ytGridShelfViewModelHostHasBottomButton=function(){return Y()||A()},y.ytGridShelfViewModelHostIsDismissed=function(){var v,el=(v=k())!=null?v:{};
v=el.behavior;var l1=el.isDismissed,V4=el.stamperContextTargetId;el=el.stamperIndex;if(!(_.h("mweb_see_fewer_shorts_group_dismissal")&&l1&&v&&V4))return!1;var Mf;l1=e;for(var LF,YY,FM=((LF=l1)==null?0:LF.targetId)?_.IH((YY=l1)==null?void 0:YY.targetId):void 0;((Mf=l1)==null?0:Mf.parent)&&FM!==V4;)l1=l1.parent,YY=LF=void 0,FM=((LF=l1)==null?0:LF.targetId)?_.IH((YY=l1)==null?void 0:YY.targetId):void 0;Mf=FM===V4?l1:void 0;if(!Mf)return!1;var gA;V4=Mf==null?void 0:(gA=Mf.stamperIndex)==null?void 0:gA.call(Mf);
return v==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||v==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&V4!=null&&el!=null&&V4>el},y)),
el:K,style:_.UQ({"margin-left":(0,_.s$)(function(){return W().contentPadding}),
"margin-right":(0,_.s$)(function(){return W().contentPadding})})},_.x(_.n,{cond:function(){return _.M(c().header,bsX)},
then:function(v){return _.x(_.xw,{data:v,disableHorizontalPadding:!0})}}),_.x("div",null,_.x(_.L6,{each:function(){return Array(J())}},function(v,el){return _.x(BWl,{className:d.className,
items:H(el),responsiveGridShelfLayout:W,contentAspectRatio:w})})),_.x("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.x(_.wB,{data:function(){return c().showMoreButton}},{buttonViewModel:function(v){return _.x("div",{hidden:N},_.x(_.xk,{data:v.data,
onClick:V}))}}),_.x(_.wB,{data:function(){return c().showLessButton}},{buttonViewModel:function(v){return _.x("div",{hidden:E},_.x(_.xk,{data:v.data,
onClick:U}))}})))},"Fc");
z0U.idomCompat=!0;var BWl=_.H1(function(d){var H=d.items;var K=d.responsiveGridShelfLayout;var c=d.contentAspectRatio;d=d.className;var p=_.Af("div");Btf(p,function(){a:{var a=p.value;for(var e=H(),k=[],C=0;C<e.length;C++){var R=_.M(e[C],MKl);if(!R||R==null||!R.inlinePlayerData){a=null;break a}var V=a.children.item(C);if(!V){a=null;break a}k.push({thumbnailElement:V,videoData:R})}a={gridVideoPreviewData:{gridItems:k}}}return a});
var g=(0,_.s$)(function(){return-K().itemMargin});
return _.x("div",{el:p,class:_.xM("ytGridShelfViewModelGridShelfRow",d),style:_.UQ({"margin-left":g,"margin-right":g})},_.x(_.wB,{data:H,replacementWrapper:function(a){return _.x(XRg,{responsiveGridShelfLayout:K},a)}},{shortsLockupViewModel:function(a){return _.x(XRg,{responsiveGridShelfLayout:K},_.x(eEU,{data:a.data,
aspectRatio:function(){return c()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Gc"),XRg=_.H1(function(d){return _.x("div",{style:_.UQ({width:(0,_.s$)(function(){return d.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+d.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},d.children)},"Hc");
z0U.idomCompat=!0;_.iV(z0U,"grid-shelf-view-model",{props:{data:_.dl,layoutContainerWidth:_.dl,shouldUseOwnContainerSize:_.dl,marginSettings:_.dl,className:_.dl}});_.J0C=_.H1(function(d){var H=_.q(_.GO(!1,void 0,"YYtxR")),K=H.next().value,c=H.next().value;H={};return _.x("yt-alert-banner-view-model",{class:_.xM("ytAlertBannerViewModelHost",d.className,function(){var p;a:switch((p=d.data())==null?void 0:p.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":p="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":p="ytAlertBannerViewModelWarning";break a;default:p="ytAlertBannerViewModelInformational"}return p},(H.ytAlertBannerViewModelDismissed=
K,H.ytAlertBannerViewModelFullbleed=d.fullbleed,H.ytAlertBannerViewModelNarrow=d.narrow,H.ytAlertBannerViewModelIsInRichGrid=d.isInRichGrid,H))},_.x(_.n,{cond:function(){var p;
return!((p=d.data())==null?0:p.hideIcon)},
then:function(){return _.x("div",{class:"ytAlertBannerViewModelIcon"},_.x(_.hu,{icon:function(){return"info_circle"}}))}}),_.x("div",{class:"ytAlertBannerViewModelOuterContainer"},_.x("div",{class:"ytAlertBannerViewModelContainer"},_.x("div",{class:"ytAlertBannerViewModelContent"},_.x("div",{class:"ytAlertBannerViewModelHeading"},_.x(_.j$,{text:function(){var p;
return(p=d.data())==null?void 0:p.heading}})),_.x("div",{class:"ytAlertBannerViewModelBody"},_.x(_.j$,{text:function(){var p;
return(p=d.data())==null?void 0:p.body}})))),_.x(_.wB,{data:function(){var p;
return(p=d.data())==null?void 0:p.actionButton}},{buttonViewModel:function(p){return _.x(_.xk,{data:p.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.x(_.wB,{data:function(){var p;
return(p=d.data())==null?void 0:p.dismissButton}},{buttonViewModel:function(p){return _.x(_.xk,{data:p.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var g;((g=d.data())==null?0:g.disableLocalDismissBehavior)||c(!0)}})}}))},"Ic");_.iV(_.J0C,"yt-alert-banner-view-model",{props:{data:_.dl,fullbleed:_.dl,narrow:_.dl,isInRichGrid:_.dl,className:_.dl}});_.F1=_.H1(function(d){var H=d.data;var K=d.callback;var c=d.enableSingleChipSelection;var p=d.disableChipsScrollAnimation;var g=_.jV("div");d=_.q(_.GO(!0,void 0,"SPw5zc"));var a=d.next().value,e=d.next().value;d=_.q(_.GO(!1,void 0,"gLFsSb"));var k=d.next().value,C=d.next().value,R=!1,V=0;_.Is(function(){e(w());C(W())});
d=_.q(_.V2(function(){var v={};return H().autoselectedChipIndex!=null?(v[H().autoselectedChipIndex]=!0,v):{}}));
var U=d.next().value,L=d.next().value,w=function(){var v=g.value;return v==null||v.scrollLeft-1<=0},W=function(){var v=g.value;
return v==null?!1:v.scrollLeft+1>=(v==null?NaN:v.scrollWidth)-(v==null?NaN:v.clientWidth)},J=function(){return H().isHorizontallyScrollable},F=function(v){g.value!=null&&(_.Fm("HTML_DIR")==="rtl"&&(v=-v),g.value.scrollBy({left:v,
behavior:(p==null?0:p())?"instant":"smooth"}))},Y=function(){F(-320)},A=function(){F(320)},E=_.n7(function(v){R=!0;
V=v.clientX}),N=_.n7(function(v){if(R){v=v.clientX;
var el=v-V;V=v;var l1;(l1=g.value)==null||l1.scrollBy({left:-el})}}),y=_.n7(function(){var v=w(),el=W();
v!==a()&&e(v);el!==k()&&C(el)});
$l("pointerup",function(){R&&(R=!1)});
return _.x("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.x(_.oX,{contentId:function(){return H().contentId},
useModernStyle:!0},function(){var v={},el={};return _.x("div",null,_.x(_.n,{cond:function(){return H().title},
then:function(){return _.x("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.x("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return H().title}),_.x(_.wB,{data:function(){return H().overflowButton}},{buttonViewModel:_.xk}))}}),_.x("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.x(_.n,{cond:function(){return H().previousButton},
then:function(){var l1={};return _.x("div",{class:_.xM("ytChipsShelfViewModelLeftArrowContainer",(l1.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return a()},l1))},_.x(_.wB,{data:function(){return H().previousButton}},{buttonViewModel:function(V4){return _.x(_.xk,{data:V4.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:Y})}}))}}),_.x("div",{el:g,
"on:pointerdown":E,"on:pointermove":N,"on:scroll":y,class:_.xM("ytChipsShelfViewModelChipsScrollContainer",(v.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=J,v))},_.x("div",{class:_.xM("ytChipsShelfViewModelChipsContainer",(el.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=J,el.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,el)),role:"tablist"},_.x(_.wB,{data:function(){return H().contents}},{chipViewModel:function(l1,V4){return _.x("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.x(_.wR6,{data:l1.data,
callback:function(Mf,LF){var YY=V4();if(c==null?0:c()){var FM={};L((FM[YY]=LF,FM))}else FM={},L(Object.assign({},U(),(FM[YY]=LF,FM)));K==null||K(Mf,LF,YY)},
disableDeselection:c,selected:function(){return!!U()[V4()]}}))}}))),_.x(_.n,{cond:function(){return H().nextButton},
then:function(){var l1={};return _.x("div",{class:_.xM("ytChipsShelfViewModelRightArrowContainer",(l1.ytChipsShelfViewModelRightArrowContainerIsHidden=k,l1))},_.x(_.wB,{data:function(){return H().nextButton}},{buttonViewModel:function(V4){return _.x(_.xk,{data:V4.data,
className:"ytChipsShelfViewModelRightArrow",onClick:A})}}))}})))}))},"Jc");
_.F1.idomCompat={callbacks:{callback:!0}};_.iV(_.F1,"chips-shelf-view-model",{props:{data:_.dl,callback:_.p7,enableSingleChipSelection:_.dl,disableChipsScrollAnimation:_.dl}});var sQ6=_.H1(function(d){d=_.dg(d,{disabled:!1});var H=d.active,K=d.disabled;d={};d=_.xM("ytSwitchShapeTrack",(d.ytSwitchShapeTrackActive=function(){return H()},d.ytSwitchShapeTrackDisabled=function(){return K()},d));
var c={};c=_.xM("ytSwitchShapeKnob",(c.ytSwitchShapeKnobActive=function(){return H()},c));
return _.x("switch-shape",{class:"ytSwitchShapeHost"},_.x("div",{class:d}),_.x("div",{class:c}))},"Kc");var FdB=_.H1(function(d){var H=_.dg(d,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),K=H.data;d=H.className;var c=H.handleOnTapEventInParent,p=H.parentActive;H=_.q(_.V2(function(){var V;return(V=p())!=null?V:K().switchedOnByDefault||!1}));
var g=H.next().value,a=H.next().value,e=function(){return K().isDisabled},k=_.Af("button");
H=_.n7(function(V){return V.key==="Enter"?(V.preventDefault(),k.value.click(),!1):!0});
var C=_.n7(function(V){if(K().handleOnTapEventInParent||c())return!0;if(e())return!1;bhD(K(),g(),V);a(!g());return!1}),R={};
R=_.xM("ytSwitchButtonViewModelButton",(R.ytSwitchButtonViewModelTappable=function(){return!e()},R));
return _.x("switch-button-view-model",{class:_.xM("ytSwitchButtonViewModelHost",d)},_.x("button",{el:k,class:R,"on:click":C,"on:keydown":H,"aria-label":function(){return g()?K().a11yLabelSwitchedOn:K().a11yLabelSwitchedOff},
"aria-checked":g,"aria-disabled":e,role:"switch"},_.x(sQ6,{active:g,disabled:e})))},"Lc");var ZZA=_.H1(function(d){var H=d.data;var K=d.isLeading;var c=d.hideSelectionTextChevron;var p=d.isToggled;var g=function(){return K()?H().leadingImage:H().trailingImage},a=function(){a:switch(H().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var R="expand_more";
break a;default:R="chevron_right"}return R};
d={};var e=_.xM("yt-list-item-view-model-wiz__image-container",(d["yt-list-item-view-model-wiz__leading"]=K,d["yt-list-item-view-model-wiz__trailing"]=function(){return!K()},d)),k=_.xM("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
d={};var C=_.xM("yt-list-item-view-model-wiz__accessory",(d["yt-list-item-view-model-wiz__leading"]=K,d["yt-list-item-view-model-wiz__trailing"]=function(){return!K()},d));
return _.x(_.n,{cond:function(){var R=H(),V=K();return!!(V&&(R.leadingImage||R.leadingAccessory)||!V&&(R.trailingImage||R.trailingButton||R.trailingButtons||R.selectionText))},
then:function(){return _.x(_.HE,null,_.x(_.n,{cond:g,then:function(R){return _.x("div",{class:e,"aria-hidden":"true"},_.x(_.d7,{data:R,alt:"",preserveWidth:!0,preserveHeight:!0,className:k,isToggled:p}))}}),_.x(_.n,{cond:function(){return K()&&H().leadingAccessory},
then:function(){return _.x("div",{class:e},_.x(_.wB,{data:function(){return H().leadingAccessory}},{avatarViewModel:function(R){return _.x(_.JV,{data:R.data,
avatarButtonCustomClassName:k})},
collectionThumbnailViewModel:function(R){return _.x(iu3,{data:R.data,maxHeight:36,includeStackHeight:!0})}}))}}),_.x(_.n,{cond:function(){return!K()&&H().trailingButton},
then:function(){return _.x("div",{class:"yt-list-item-view-model-wiz__button-container"},_.x(_.wB,{data:function(){return H().trailingButton}},{buttonViewModel:function(R){return _.x(_.xk,{data:R.data,
className:C})}}))}}),_.x(_.n,{cond:function(){var R;
return!K()&&((R=H().trailingButtons)==null?void 0:R.buttons)},
then:function(){return _.x("div",{class:"yt-list-item-view-model-wiz__button-container"},_.x(_.wB,{data:function(){var R;return(R=H().trailingButtons)==null?void 0:R.buttons}},{buttonViewModel:function(R){return _.x(_.xk,{data:R.data,
className:C})},
accountLinkButtonViewModel:function(R){return _.x(jPC,{data:R.data,className:C})},
switchButtonViewModel:function(R){return _.x(FdB,{data:R.data,className:C})},
subscribeButtonViewModel:function(R){return _.x(_.JI,{data:R.data,isOverlay:!1,animateWidth:!1,className:C})},
toggleButtonViewModel:function(R){return _.x(_.zm,{data:R.data,className:C})}}))}}),_.x(_.n,{cond:function(){return!K()&&!!H().selectionText},
then:function(){return _.x(_.HE,null,_.x(_.j$,{text:function(){return H().selectionText},
className:_.xM("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.x(_.n,{cond:function(){return!(c==null?0:c())},
then:function(){return _.x(_.hu,{icon:a,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Mc");var TWd=_.H1(function(d){var H=d.data;return _.x(_.n,{cond:function(){return H().title||H().subtitle},
then:function(){return _.x("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.x(_.n,{cond:function(){return H().title},
then:function(K){return _.x("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.x(_.j$,{text:K,className:"yt-list-item-view-model-wiz__title"}))}}),_.x(_.n,{cond:function(){return H().subtitle},
then:function(K){return _.x(_.j$,{text:K,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Nc");var Zm=_.H1(function(d){var H=d.data;var K=d.hideSelectionTextChevron;var c=d.TrailingAccessory;var p=d.isToggled;var g=d.disabled;var a=d.isSelectItem;var e=d.isCompact;var k=d.inPopup;var C=d.disableHorizontalPadding;d=d.isTappableWithoutSelect;var R={};return _.x("div",{class:_.xM("yt-list-item-view-model-wiz__label",(R["yt-list-item-view-model-wiz__container"]=function(){return!(a==null?0:a())},R["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!H().isDisabled||!(g==null||
!g())},R["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!H().subtitle},R["yt-list-item-view-model-wiz__container--compact"]=e,R["yt-list-item-view-model-wiz__container--tappable"]=d,R["yt-list-item-view-model-wiz__container--in-popup"]=k,R["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(C==null?void 0:C())&&!(a==null?0:a())},R))},_.x(ZZA,{data:H,
isLeading:!0,hideSelectionTextChevron:K,isToggled:p}),_.x(TWd,{data:H}),_.x(_.n,{cond:function(){return!!c},
then:function(){return _.x("div",{class:"yt-list-item-view-model-wiz__trailing"},c&&_.x(c,null))},
else:function(){return _.x(ZZA,{data:H,isLeading:!1,hideSelectionTextChevron:K,isToggled:p})}}))},"Oc");var tp3=_.H1(function(d){var H=_.dg(d,{checked:!1});d=H.name;var K=H.onChange,c=H.onClick,p=H.checked,g=H.labelRenderable,a=H.hasLeadingLabel,e=H.labelClass,k=H.isCompact,C=H.selectElementClass;H=H.disableHorizontalPadding;var R="checkbox"+_.rM(_.J6),V=_.n7(function(w){c==null||c(w);return!1}),U=_.n7(function(w){K==null||K(w);
return!1}),L={};
return _.x("checkbox-shape",null,_.x("label",{class:_.xM("checkbox-shape-wiz",e,(L["checkbox-shape-wiz--compact"]=k,L["checkbox-shape-wiz--disable-horizontal-padding"]=H,L))},_.x("input",{class:"checkbox-shape-wiz__input",id:R,checked:p,name:d,type:"checkbox","prop:checked":p,"on:change":U,"on:click":V}),_.x(_.n,{cond:function(){return!(a==null?0:a())},
then:function(){return _.x(QQN,{isLeading:!0,selectElementClass:C})}}),_.x(_.n,{cond:function(){return!!g},
then:function(){return _.x("div",{class:"checkbox-shape-wiz__label"},g==null?void 0:g())}}),_.x(_.n,{cond:a,
then:function(){return _.x(QQN,{isLeading:!1,selectElementClass:C})}})))},"Pc");
tp3.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var QQN=_.H1(function(d){var H=d.selectElementClass;d={};return _.x("div",{class:_.xM("checkbox-shape-wiz__checkbox",H,(d["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(H==null?0:H())},d)),
"aria-hidden":"true"},_.x(_.hu,{icon:_.h("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.x(_.hu,{icon:_.h("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Qc");_.Tc=_.H1(function(d){var H=d.name;var K=d.onChange;var c=d.onClick;var p=d.checked;var g=d.labelRenderable;var a=d.useCheckIcon;var e=d.hasLeadingLabel;var k=d.labelClass;var C=d.isCompact;var R=d.selectElementClass;var V=d.ariaLabel;d=d.className;var U="radio"+_.rM(_.J6),L=_.Af("input"),w=_.n7(function(y){L.value.checked=!(p==null||!p());K==null||K(y);return!1}),W=_.n7(function(y){c==null||c(y);
return!1}),J=_.n7(function(y){_.h("enable_ios_webview_radio_button_responsiveness")&&(y.preventDefault(),L.value.click())}),F=_.q(_.GO(!1,void 0,"nXiHX")),Y=F.next().value,A=F.next().value;
F=_.n7(function(){var y;((y=_.Kj().resolve(_.$p(_.qZ)))==null?0:y.isKeyBoardInUse())&&A(!0)});
var E=_.n7(function(){A(!1)}),N={};
return _.x("radio-shape",{class:_.xM("radio-shape-wiz",d)},_.x("input",{el:L,class:"radio-shape-wiz__input",id:U,"prop:checked":p,name:H,type:"radio","on:change":w,"on:click":W,"aria-label":V,"on:focusin":F,"on:focusout":E}),_.x("label",{class:_.xM("radio-shape-wiz__label-container",k,(N["radio-shape-wiz--compact"]=C,N["radio-shape-wiz__label-container--keyboard-focused"]=Y,N)),for:U,"on:click":J},_.x(_.n,{cond:function(){return!(e==null?0:e())},
then:function(){return _.x(Yp3,{checked:p,useCheckIcon:a,isLeading:!0,selectElementClass:R})}}),_.x(_.n,{cond:function(){return!!g},
then:function(){return _.x("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(V==null?0:V())?"true":"false"}},g==null?void 0:g())}}),_.x(_.n,{cond:e,
then:function(){return _.x(Yp3,{checked:p,useCheckIcon:a,isLeading:!1,selectElementClass:R})}})))},"Rc");
_.Tc.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Yp3=_.H1(function(d){var H=d.useCheckIcon;var K=d.selectElementClass;d=function(){return(H==null?0:H())?"CHECK":_.h("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var c={};return _.x("div",{class:_.xM("radio-shape-wiz__radio",K,(c["radio-shape-wiz__radio--check-icon"]=H,c["radio-shape-wiz__radio--radio-default-style"]=function(){return!(K==null?0:K())},c)),
"aria-hidden":"true"},_.x(_.hu,{icon:d}),_.x(_.hu,{icon:d,active:function(){return!(H==null?0:H())}}))},"Sc");_.QD=_.H1(function(d){var H=d.data;var K=d.isMenuItem;var c=d.isCompact;var p=d.onTap;var g=d.trailingAccessory;var a=d.hideSelectionTextChevron;var e=d.disabled;var k=d.inPopup;var C=d.disableHorizontalPadding;var R=d.isOverlay;d=d.isToggled;var V=_.Tv(function(el){return fxM(el,H())}),U=function(){return _.h("enable_web_shorts_captions_language_command")?Object.assign({},H(),V()):H()},L=function(){return!(U().isSelected===void 0||!U().selectionStyle||U().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
w=function(){return(_.Zb(U().rendererContext)||p)&&!L()},W={},J=_.xM("yt-list-item-view-model-wiz__container",(W["yt-list-item-view-model-wiz__container--tappable"]=function(){return _.Zb(U().rendererContext)||L()},W["yt-list-item-view-model-wiz__container--compact"]=c,W["yt-list-item-view-model-wiz__container--in-popup"]=k,W["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(C==null?void 0:C())&&L()},W)),F=function(){return U().leadingImage||U().leadingAccessory},
Y=_.xM("yt-list-item-view-model-wiz__image-container",function(){return F()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
W=_.n7(function(el){return void(p==null?void 0:p(el))});
var A=_.XN(),E=_.q(_.GO(!1,void 0,"iQppzc")),N=E.next().value,y=E.next().value,v={data:U,hideSelectionTextChevron:a,TrailingAccessory:g,isToggled:d,disabled:e,isSelectItem:L,isCompact:c,inPopup:k,disableHorizontalPadding:C,isTappableWithoutSelect:w};g={};return _.x("yt-list-item-view-model",{el:_.$M(_.Tx(function(){return U().rendererContext}),psh(function(){return w==null?void 0:w()},{focusin:function(){var el;
((el=_.Kj().resolve(_.$p(_.qZ)))==null?0:el.isKeyBoardInUse())&&y(!0)},
focusout:function(){y(!1)}})),
class:_.xM("yt-list-item-view-model-wiz",(g["yt-list-item-view-model-wiz--is-overlay"]=R,g["yt-list-item-view-model-wiz--keyboard-focused"]=N,g)),role:function(){return(K==null?0:K())?"menuitem":"listitem"},
tabindex:function(){var el=w();return p||el?0:void 0},
"on:keydown":A,"on:click":W},_.x(_.n,{cond:L,then:function(){return _.x(_.w9,null,_.x(_.MM,{when:function(){return U().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.x(tp3,{labelRenderable:function(){return _.x(Zm,Object.assign({},v))},
isCompact:c,checked:function(){return U().isSelected},
hasLeadingLabel:function(){return!!F()},
labelClass:J,selectElementClass:Y,disableHorizontalPadding:C})}),_.x(_.MM,{when:function(){return U().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.x(_.Tc,{labelRenderable:function(){return _.x(Zm,Object.assign({},v))},
isCompact:c,checked:function(){return U().isSelected},
hasLeadingLabel:function(){return!!F()},
labelClass:J,selectElementClass:Y})}),_.x(_.MM,{when:function(){return U().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.x(_.Tc,{labelRenderable:function(){return _.x(Zm,Object.assign({},v))},
isCompact:c,checked:function(){return U().isSelected},
hasLeadingLabel:function(){return!!F()},
labelClass:J,selectElementClass:Y,useCheckIcon:!0})}),_.x(_.mS,null,function(){return _.x(Zm,Object.assign({},v))}))},
else:function(){return _.x(Zm,Object.assign({},v))}}))},"Tc");
_.QD.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.OZl=_.H1(function(d){var H=d.data;var K=d.onTap;var c=d.onSwitch;var p=d.overrideDisabled;d=d.disableHorizontalPadding;var g=_.q(_.V2(function(){var V;return((V=DBf(R()))==null?void 0:V.switchedOnByDefault)||!1})),a=g.next().value,e=g.next().value;
g=_.q(_.GO(!1,void 0,"ZHBkbb"));var k=g.next().value,C=g.next().value,R=function(){var V;if(!(V=H().switchButton)){var U=H();V=p==null?void 0:p();U={switchOnCommand:U.switchOnCommand,switchOffCommand:U.switchOffCommand,switchedOnByDefault:U.switchedOnByDefault,isDisabled:U.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:U.a11yLabelSwitchedOn,a11yLabelSwitchedOff:U.a11yLabelSwitchedOff};V!==void 0&&(U.isDisabled=V);V={switchButtonViewModel:U}}return V};
return _.x("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.x(_.QD,{data:function(){return{title:H().title,subtitle:H().attributedSubtitle,leadingImage:H().leadingImage,leadingAccessory:H().leadingAccessory,isDisabled:H().isDisabled}},
onTap:function(V){var U=DBf(R());!U||U.isDisabled||H().ignoreTapUntilCommandCompletes&&k()||(K==null||K(V),bhD(U,a(),V,H().ignoreTapUntilCommandCompletes,C),e(!a()),c==null||c(a()))},
trailingAccessory:function(){return _.x(_.wB,{data:R},{switchButtonViewModel:function(V){return _.x(FdB,{data:V.data,parentActive:a,handleOnTapEventInParent:!!K})}})},
disableHorizontalPadding:d}))},"Uc");var Spl=_.H1(function(d){var H=_.q(_.V2(function(){var p,g;return!!((p=d.data())==null?0:(g=p.initialState)==null?0:g.isToggled)})),K=H.next().value,c=H.next().value;
H=_.n7(function(){c(!K())});
return _.x("toggleable-list-item-view-model",{el:_.$M(_.Tx(function(){return d.data().rendererContext})),
class:_.xM("toggleableListItemViewModelHost",d.className),"on:click":H},_.x(_.n,{cond:function(){if(K()){var p=d.data().toggledListItem;p=_.M(p,_.ID)}else p=d.data().defaultListItem,p=_.M(p,_.ID);return p},
then:function(p){return _.x(_.QD,{data:p,isToggled:K,ariaLabel:function(){var g=K()?d.data().toggledListItem:d.data().defaultListItem,a;g=(a=_.M(g,_.ID))==null?void 0:a.rendererContext;var e;return(e=_.M(g,_.hs))==null?void 0:e.label},
ariaPressed:function(){return K()}})}}))},"Vc");var Ebd=_.Vz("DOWNLOAD",{},"Download"),y07=_.Vz("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),bZ3=_.Vz("RETRY",{},"Retry"),NW7=_.Vz("PAUSE_DOWNLOADING",{},"Pause downloading"),Du7=_.Vz("RESUME_DOWNLOAD",{},"Resume download"),An4={text:Ebd,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},mB={text:y07,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},dDL={text:bZ3,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
jf5={text:NW7,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},vhL={text:Du7,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var fW6=_.H1(function(d){var H=function(){var e=d.data();e=_.FN(e.rendererContext);var k;return(k=_.M(e,_.Cf))==null?void 0:k.videoId},K=_.Tv(function(e){var k=H(),C=Kjf(d.data());
return k?_.QO(e,k):C?_.tF(e,C):"TRANSFER_STATE_UNKNOWN"}),c=_.Uj(_.ktl,H),p=_.Tv(function(e){return _.isF(e,H(),Kjf(d.data()))}),g=function(){return $DD(K(),c(),_.FN(d.data().rendererContext),!!Kjf(d.data()))},a=function(){return p()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.x("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:a},_.x(_.n,{cond:function(){return!a()},
then:function(){return _.x(_.n,{cond:g,then:function(e){return _.x(_.L6,{each:e},function(k){return _.x(_.QD,{data:k,isCompact:d.isCompact,isMenuItem:d.isMenuItem,inPopup:d.inPopup,disableHorizontalPadding:d.disableHorizontalPadding})})}})}}))},"Wc");
fW6.idomCompat=!0;_.A0l=_.H1(function(d){var H=d.data;var K=d.isCompact;var c=d.hideSelectionTextChevron;var p=d.inPopup;var g=d.isOverlay;var a=d.disableHorizontalPadding;var e=function(){return cl4(H())&&(p==null?void 0:p())};
d={};return _.x("yt-list-view-model",{class:_.xM("yt-list-view-model-wiz",(d["yt-list-view-model-wiz--kaios-spat-nav"]=x94&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",d["yt-list-view-model-wiz__collection-thumbnail-class"]=function(){return i0L(H())},d)),
role:function(){return e()?"menu":"list"},
style:_.UQ({"max-height":function(){var k,C=(k=H())==null?void 0:k.visibleElementCount;if(C)return i0L(H())?(C+.5)*48+"px":(C+.5)*40+"px"}})},_.x(_.wB,{data:function(){return H().listItems}},{listItemViewModel:function(k){return _.x(_.QD,{data:k.data,
isMenuItem:e,isCompact:K,hideSelectionTextChevron:c,inPopup:p,isOverlay:g,disableHorizontalPadding:a})},
toggleableListItemViewModel:function(k){return _.x(Spl,{data:k.data})},
downloadListItemViewModel:function(k){return _.x(fW6,{data:k.data,isMenuItem:e,isCompact:K,inPopup:p,disableHorizontalPadding:a})},
switchListItemViewModel:function(k){return _.x(_.OZl,{data:k.data,disableHorizontalPadding:a})}}))},"Xc");
_.A0l.idomCompat=!0;var jQ3=_.H1(function(d){var H=d.data;var K=d.isOverlay;d={};return _.x("yt-course-perks-view-model",{class:_.xM("ytwCoursePerksViewModelHost",(d.ytwCoursePerksViewModelHostOverlay=K,d))},_.x("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.x(_.j$,{text:function(){return H().title}})),_.x("div",null,_.x(_.n,{cond:function(){return H().perks},
then:function(c){return _.x(_.A0l,{data:function(){return{listItems:c()}},
isCompact:!0,isOverlay:K})}})))},"Yc");_.iV(jQ3,"yt-course-perks-view-model",{props:{data:_.p7,isOverlay:_.p7}});_.iV(_.H1(function(d){var H=d.data;return _.x("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.x("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.x(_.j$,{text:function(){return H().title}})),_.x("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.x(_.j$,{text:function(){return H().progressSummary}})),_.x("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.x("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.UQ({width:function(){return H().progressPercentage*100+"%"}})})))},"Zc"),"yt-course-progress-view-model",{props:{data:_.dl}});var vbN=_.H1(function(d){var H={};return _.x("yt-progress-view-model",{class:_.xM("ytwProgressViewModelHost",(H.ytwProgressViewModelHostOverlay=_.vj(d.isOverlay,!1),H))},_.x(_.n,{cond:function(){return d.data().progressSummary},
then:function(K){return _.x("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.x(_.j$,{text:K}))}}),_.x("div",{class:"ytwProgressViewModelHostProgressContainer"},_.x(_.n,{cond:function(){return d.data().leadingLabel},
then:function(K){return _.x("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.x(_.j$,{text:K}))}}),_.x("div",{class:"ytwProgressViewModelHostProgressBar"},_.x("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(d.data().progressPercentage||0)*100+"%"}}))))},"$c");var t6=_.H1(function(d){var H=d.starNumber;var K=d.data;var c=function(){var p;return((p=K())==null?void 0:p.rating)||0};
return _.x(_.n,{cond:function(){return H()},
then:function(p){return _.x(_.w9,null,_.x(_.MM,{when:function(){return c()>=p()-.25}},function(){return _.x("div",{class:"ytStarRatingViewModelHostStar"},_.x(_.hu,{icon:"STAR_FILLED"}))}),_.x(_.MM,{when:function(){return c()>=p()-.75}},function(){return _.x("div",{class:"ytStarRatingViewModelHostStar"},_.x(_.hu,{icon:"STAR_HALF"}))}),_.x(_.mS,null,function(){return _.x("div",{class:"ytStarRatingViewModelHostStar"},_.x(_.hu,{icon:"STAR_BORDER"}))}))}})},"ad"),dm7=_.H1(function(d){d=d.data;
return _.x("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.x(t6,{starNumber:1,data:d}),_.x(t6,{starNumber:2,data:d}),_.x(t6,{starNumber:3,data:d}),_.x(t6,{starNumber:4,data:d}),_.x(t6,{starNumber:5,data:d}))},"bd");_.iV(_.H1(function(d){var H=_.dg(d,{}).data;return _.x("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.x("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.x(_.j$,{text:function(){var K;return(K=H())==null?void 0:K.title}})),_.x("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.x(_.n,{cond:function(){return H().starProgressViewModels},
then:function(K){return _.x("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.x(_.wB,{data:K},{progressViewModel:vbN}))}}),_.x("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.x("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.x(_.j$,{text:function(){var K;
return(K=H())==null?void 0:K.averageRatingLabel}})),_.x(_.n,{cond:function(){return H().zeroStateText},
then:function(K){return _.x("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.x(_.j$,{text:K}))}}),_.x(_.n,{cond:function(){return H().starRatingViewModel},
then:function(K){return _.x("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.x(_.wB,{data:K},{starRatingViewModel:dm7}))}}),_.x("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.x(_.j$,{text:function(){var K;
return(K=H())==null?void 0:K.totalRatingsCountLabel}})))))},"cd"),"yt-course-ratings-view-model",{props:{data:_.p7}});var HpN;HpN={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.$m0=_.H1(function(d){var H=_.Af("yt-learning-journey-loader-view-model"),K=_.x6();_.Is(function(){requestAnimationFrame(function(){var p;(p=K.lottieEl)==null||p.addEventListener("DOMLoaded",function(){var g;(g=d.onLottieLoaded)==null||g.call(d)})});
var c=d.data().browseEndpoint;c&&_.EG(c)});
return _.x("yt-learning-journey-loader-view-model",{class:_.xM("learningJourneyLoaderViewModelHost",d.className),"data-target-id":function(){var c;return((c=d.data)==null?void 0:c.call(d).targetId)||""},
el:H},_.x(_.hT,{className:_.xM("learningJourneyLoaderViewModelLoader",d.className),animationName:function(){return HpN.animationConfig.name},
data:HpN,animationRef:K}))},"dd");_.iV(_.$m0,"yt-learning-journey-loader-view-model",{props:{data:_.dl,className:_.p7,onLottieLoaded:_.p7}});var ouY=new Set,GDL=null;var cM0=_.H1(function(d){var H=null,K=null,c=function(){return d.data()},p=function(){var W=c();
var J=_.Kj().resolve(_.$p(_.fM));W=J!=null&&J()?W.darkThemeColorPalette:W.lightThemeColorPalette;return{primaryTextColor:PK(W,0),secondaryTextColor:PK(W,1),optionColor:PK(W,2),backgroundColor:PK(W,3),videoBackgroundColor:PK(W,4)}},g=function(){return!!p().optionColor},a=_.q(_.GO(-1,void 0,"Wnp7o")),e=a.next().value,k=a.next().value,C=function(W){return c().correctAnswerIndex===W},R=function(){return e()!==-1};
a=_.q(_.GO("",void 0,"CFFQk"));var V=a.next().value,U=a.next().value,L=function(){var W=R(),J=e()===c().correctAnswerIndex;return W?J?264685:264684:264683},w=function(W){return e()===c().correctAnswerIndex&&C(W)};
return _.x("learning-journey-quiz-view-model",{class:_.xM("learningJourneyQuizViewModelHost",d.className),style:_.UQ({background:function(){return p().backgroundColor}})},_.x("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},V),_.x(_.n,{cond:function(){return!!c().video},
then:function(){return _.x("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.UQ({background:function(){return p().videoBackgroundColor}})},_.x(_.wB,{data:function(){return c().video}},{lockupViewModel:function(W){return _.x(_.lN,{data:W.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.x("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.x("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.x("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.x(_.n,{cond:function(){return!!c().aiGeneratedQuizLabel},
then:function(){return _.x("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.x(_.j$,{text:function(){return c().aiGeneratedQuizLabel}}))}}),_.x("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.UQ({"align-items":function(){return c().overflowMenu?"start":"center"}})},_.x("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.UQ({"min-height":function(){return c().overflowMenu?"48px":"26px"}})},_.x("div",{class:"learningJourneyQuizYoututorText",
el:_.$M(function(W){_.wE(L(),W,H,function(J){H=J})}),
style:_.UQ({color:function(){return p().primaryTextColor}}),
"client-ve-type":L},_.x(_.j$,{text:function(){return c().questionHeaderText}})))),_.x("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.$M(function(W){_.wE(264688,W,K,function(J){K=J})}),
style:_.UQ({color:function(){return p().secondaryTextColor}}),
"client-ve-type":264688},_.x(_.j$,{text:function(){var W=c();return R()?W.explanationText:W.questionSubheaderText}}))),_.x("div",{role:"group",
class:_.xM("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.x(_.L6,{each:function(){return c().optionsData||[]}},function(W,J){var F={};
return _.x("button",{class:_.xM("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(F.learningJourneyQuizViewModelHostQuizHover=function(){return!R()},F.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=g,F.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return R()&&C(J())},F.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var Y;
if(Y=e()!==c().correctAnswerIndex)Y=J(),Y=e()===Y;return Y},F)),
"on:click":_.n7(function(){if(R())return!1;k(J());var Y,A;U(C(J())?((Y=c().successTitle)==null?void 0:Y.content)||"":((A=c().failureTitle)==null?void 0:A.content)||"");return!1}),
style:_.UQ({background:"transparent"}),"aria-description":function(){var Y,A;return R()?C(J())?(Y=c().successTitle)==null?void 0:Y.content:(A=c().failureTitle)==null?void 0:A.content:""},
"aria-disabled":R,"client-ve-type":264686},_.x("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.x(_.j$,{text:W.optionText}),_.x(_.n,{cond:function(){var Y=J(),A;if(A=R())A=e()===Y||C(Y);return A},
then:function(){return _.x(KFA,{isOptionCorrect:C,optionIndex:J,isOptionSelectedAndCorrect:w,colors:p})}})))}),_.x(_.n,{cond:R,
then:function(){return _.x("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.x("div",{class:"learningJourneyQuizYoututorExplanationText"},_.x(_.j$,{text:function(){return c().explanationHeaderText}})),_.x(_.j$,{text:function(){return c().optionsData[e()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"ed"),KFA=_.H1(function(d){var H={};
return _.x("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",class:_.xM("learningJourneyQuizYoututorOptionIconTrailing",(H.learningJourneyQuizViewModelHostQuizPulse=function(){return d.isOptionSelectedAndCorrect(d.optionIndex())},H.learningJourneyQuizYoututorIconIncorrectFill=function(){return!d.isOptionSelectedAndCorrect(d.optionIndex())&&!d.isOptionCorrect(d.optionIndex())},H.learningJourneyQuizYoututorIconCorrectFill=function(){return d.isOptionCorrect(d.optionIndex())},
H))},_.x("path",{d:function(){var K=d.optionIndex();
return d.isOptionCorrect(K)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M12 1.5C18.0751 1.5 23 6.42487 23 12.5C23 18.5751 18.0751 23.5 12 23.5C5.92487 23.5 1 18.5751 1 12.5C1 6.42487 5.92487 1.5 12 1.5ZM16.207 8.29297C15.8165 7.90246 15.1835 7.90246 14.793 8.29297L12 11.0859L9.20703 8.29297C8.81651 7.90247 8.18349 7.90247 7.79297 8.29297C7.40245 8.68349 7.40246 9.31651 7.79297 9.70703L10.5859 12.5L7.79297 15.293C7.40247 15.6835 7.4025 16.3165 7.79297 16.707C8.1835 17.0976 8.81651 17.0976 9.20703 16.707L12 13.9141L14.793 16.707L14.8691 16.7754C15.2619 17.0958 15.8409 17.0731 16.207 16.707C16.5731 16.3409 16.5958 15.7619 16.2754 15.3691L16.207 15.293L13.4141 12.5L16.207 9.70703C16.5975 9.31651 16.5975 8.68349 16.207 8.29297Z"}}))},
"fd");
cM0.idomCompat=!0;var pLl;_.gNA=_.H1(function(d){var H=null,K=null,c=null,p=function(){return d.data()},g=function(){var E=p();
var N=_.Kj().resolve(_.$p(_.fM));E=N!=null&&N()?E.darkThemeColorPalette:E.lightThemeColorPalette;return{primaryTextColor:uW(E,0),secondaryTextColor:uW(E,1),optionColor:uW(E,2),backgroundColor:uW(E,3),videoBackgroundColor:uW(E,4)}},a=function(){return!!g().optionColor},e=_.q(_.GO(-1,void 0,"oGWitb")),k=e.next().value,C=e.next().value,R=function(E){return k()===E},V=function(E){return p().correctAnswerIndex===E},U=function(){return k()!==-1},L=function(){return k()===p().correctAnswerIndex},w=function(){var E=
p(),N=U(),y=L();
return N?y?E.successTitle:E.failureTitle:E.questionHeaderText},W=function(){var E=U(),N=L();
return E?N?264685:264684:264683},J=function(){var E=p();
return U()?E.explanationText:E.questionSubheaderText},F=function(){return!!p().video},Y=function(E){return L()&&V(E)},A=_.n7(function(){C(-1);
return!1});
return _.x(_.n,{cond:function(){return p().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.x(cM0,{data:function(){return p()}})},
else:function(){return _.x("learning-journey-quiz-view-model",{class:_.xM("learningJourneyQuizViewModelHost",d.className),style:_.UQ({background:function(){return g().backgroundColor}})},_.x(_.n,{cond:F,
then:function(){return _.x("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.UQ({background:function(){return g().videoBackgroundColor}})},_.x(_.wB,{data:function(){return p().video}},{lockupViewModel:function(E){return _.x(_.lN,{data:E.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.x("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.x("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.x("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.x(_.n,{cond:function(){return!!p().aiGeneratedQuizLabel},
then:function(){return _.x("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.x(_.j$,{text:function(){return p().aiGeneratedQuizLabel}}))}}),_.x("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.UQ({"align-items":function(){return p().overflowMenu?"start":"center"}})},_.x("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.UQ({"min-height":function(){return p().overflowMenu?"48px":"26px"}})},_.x("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.$M(function(E){_.wE(W(),E,H,function(N){H=N})}),
style:_.UQ({color:function(){return g().primaryTextColor}}),
"client-ve-type":W},_.x(_.j$,{text:w}))),_.x("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.x(_.n,{cond:U,then:function(){return _.x("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.$M(function(E){_.wE(264687,E,K,function(N){K=N})}),
"on:click":A,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.x("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.UQ({fill:function(){return g().primaryTextColor}})},_.x("path",{d:"M440-122q-121-15-200.5-105.5T160-440q0-66 26-126.5T260-672l57 57q-38 34-57.5 79T240-440q0 88 56 155.5T440-202v80zm80 0v-80q87-16 143.5-83T720-440q0-100-70-170t-170-70h-3l44 44-56 56-140-140 140-140 56 56-44 44h3q134 0 227 93t93 227q0 121-79.5 211.5T520-122z"})))}}),
_.x(_.wB,{data:function(){return p().overflowMenu}},{buttonViewModel:function(E){return _.x(_.xk,{data:E.data})}}))),_.x("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.$M(function(E){_.wE(264688,E,c,function(N){c=N})}),
style:_.UQ({color:function(){return g().secondaryTextColor}}),
"client-ve-type":264688},_.x(_.j$,{text:J}))),_.x("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.x(_.L6,{each:function(){return p().optionsData||[]}},function(E,N){var y={};
return _.x("button",{class:_.xM("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(y.learningJourneyQuizViewModelHostQuizHover=function(){return!U()},y.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=a,y.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return Y(N())},y.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!L()&&R(N())},y.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return U()&&
!R(N())},y)),
"on:click":_.n7(function(){if(U())return!1;C(N());return!1}),
style:_.UQ({background:function(){var v=N();return U()&&R(v)?"":a()?g().optionColor:"transparent"}}),
"aria-disabled":U,"client-ve-type":264686},_.x("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.x(_.n,{cond:U,then:function(){return _.x(pLl,{isOptionCorrect:V,optionIndex:N,isOptionSelectedAndCorrect:Y,colors:g})}}),_.x(_.j$,{text:E.optionText})))})))))}})},"gd");
pLl=_.H1(function(d){var H={};return _.x("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var K=d.optionIndex();return d.isOptionCorrect(K)?"0 0 24 24":"0 -960 960 960"},
class:_.xM("learningJourneyQuizViewModelHostQuizOptionIconLeading",(H.learningJourneyQuizViewModelHostQuizPulse=function(){return d.isOptionSelectedAndCorrect(d.optionIndex())},H)),
style:_.UQ({fill:function(){return d.colors().primaryTextColor}})},_.x("path",{d:function(){var K=d.optionIndex();
return d.isOptionCorrect(K)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))},"hd");
_.gNA.idomCompat=!0;_.iV(_.gNA,"learning-journey-quiz-view-model",{props:{data:_.dl,className:_.dl}});var ipA=_.H1(function(d){var H=_.q((0,_.W8A)(function(){var K;return{targetId:(K=d.data().config)==null?void 0:K.suspenseKey,contents:[d.data()]}})).next().value;
return _.x("yt-suspense-view-model",{class:_.xM("ytSuspenseViewModelHost")},_.x(_.wB,{data:function(){if(H().contents.length>0){var K;return(K=H().contents[0].config)==null?void 0:K.contents}}},{lockupViewModel:_.lN}))},"id");var GW3=_.H1(function(d){var H=_.dg(d,{palette:void 0,isLastItem:!1}),K=H.palette,c=H.isLastItem,p=function(){return d.data().isHighlighted},g=function(){var k;
return aUX((k=K())==null?void 0:k.iconDisabledColor)},a=function(){var k;
return aUX((k=K())==null?void 0:k.primaryTitleColor)},e=function(){var k;
return aUX((k=K())==null?void 0:k.secondaryTitleColor)};
H={};return _.x("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.$M(_.Tx(function(){return d.data().rendererContext}))},_.x(_.wB,{data:function(){return d.data().thumbnail}},{thumbnailViewModel:_.$A}),_.x("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.x("div",{class:_.xM("ytMacroMarkerListItemViewModelTimeDescription",(H.ytMacroMarkerListItemViewModelHighlighted=p,H)),
style:_.UQ({"background-color":function(){return p()?a():g()},
color:function(){return p()?"":e()}})},_.x(_.j$,{text:function(){return d.data().timestamp}})),_.x("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.UQ({"background-color":function(){return c()?"transparent":g()}})}),_.x("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(p()?a():e())}},_.x(_.j$,{text:function(){return d.data().title}}))))},"jd");_.Yw=_.H1(function(d){function H(pF){Y("transform:translateX("+(_.Fm("HTML_DIR")==="rtl"?"":"-")+pF+"px)")}
function K(pF){return Math.min(Math.max(pF,0),F()-v())}
function c(){var pF=N()+Mf();return p()?(Math.round(v()/pF)||1)*pF:0}
var p=function(){return d.data().items||[]},g=function(){return d.data().previousButton},a=function(){return d.data().nextButton},e=function(){var pF,dA;
return(dA=(pF=d.disableArrows)==null?void 0:pF.call(d))!=null?dA:!1},k=function(){var pF;
return!((pF=d.forceNarrowLayout)==null||!pF.call(d))},C=_.ey(function(){var pF;
return!((pF=d.centerAlignItems)==null||!pF.call(d))&&F()<=v()},void 0,"DL81uf"),R=_.Af("horizontal-shelf-view-model"),V=_.Af("div"),U=_.q(_.GO(0,void 0,"xZFppf")),L=U.next().value,w=U.next().value;
U=_.q(_.GO(0,void 0,"pH9gvd"));var W=U.next().value,J=U.next().value,F=W;W=_.q(_.GO("",void 0,"oYcWy"));U=W.next().value;var Y=W.next().value;W=_.q(_.GO(0,void 0,"lI6NJb"));var A=W.next().value,E=W.next().value,N=A;W=_.q(_.GO(0,void 0,"yPqhW"));A=W.next().value;var y=W.next().value,v=A;W=_.q(_.GO(!1,void 0,"u4CvOe"));var el=W.next().value,l1=W.next().value;W=_.q(_.GO(0,void 0,"oQOBbe"));A=W.next().value;var V4=W.next().value,Mf=A;W=_.q(_.GO(0,void 0,"fCqgxd"));var LF=W.next().value,YY=W.next().value;
W=_.q(_.GO("50%",void 0,"kjP5ke"));var FM=W.next().value,gA=W.next().value,JN=function(){var pF,dA=(pF=d.data())==null?void 0:pF.responsiveContainerConfiguration,U3,lg;return dA?SN1(dA==null?void 0:dA.responsiveSize):(lg=(U3=d.sizing)==null?void 0:U3.call(d))!=null?lg:"STANDARD"};
W=_.ey(function(){return!e()&&L()>0},void 0,"oVCO3d");
A=_.ey(function(){return!e()&&L()<F()-v()},void 0,"MQ6Gb");
var eS=function(){w(K(L()-c()));H(L())},vF=function(){w(K(L()+c()));
H(L())},CX=function(){R.value!==null&&BB()},kd;
_.WE(function(){BB();window.ResizeObserver?(kd=new ResizeObserver(_.Rp(CX,0)),kd.observe(R.value)):window.addEventListener("resize",CX)});
_.Pk(function(){if(window.ResizeObserver){var pF;(pF=kd)==null||pF.disconnect()}else window.removeEventListener("resize",CX)});
var BB=function(){var pF=R.value.clientWidth,dA=d.includeMargin!==void 0?d.includeMargin():!1,U3;var lg=d.hasPeek!==void 0?d.hasPeek():!((U3=d.data())==null||!U3.hasPeek);pF=_.yY({containerWidth:pF,hasPeek:lg,sizing:JN(),marginSettings:dA?k()?4:1:0});V4(pF.gutter);YY(pF.margin);E(pF.itemWidth);l1(pF.maxContainerWidth<528||k());y(pF.maxContainerWidth);p()&&J((pF.itemWidth+pF.gutter)*p().length-pF.gutter);if(p()){var hN;if(((hN=d.thumbnailAspectRatio)==null?void 0:hN.call(d))!==void 0){var Hv;gA(N()/
yUL((Hv=d.thumbnailAspectRatio)==null?void 0:Hv.call(d))/2+"px")}else gA("50%")}},ug={},fX={};
return _.x("horizontal-shelf-view-model",{class:_.xM("ytwHorizontalShelfViewModelHost",d.className),el:R},_.x(_.n,{cond:function(){var pF;return d.data().header&&!((pF=d.horizontalShelfExperiments)==null?0:pF.call(d).hideHeader)},
then:function(){return _.x("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.UQ({width:function(){return v()+"px"},
padding:function(){return"0 "+LF()+"px"}})},_.x(_.wB,{data:function(){return d.data().header}},{sectionHeaderViewModel:function(pF){return _.x(_.xw,{data:pF.data,
disableHorizontalPadding:!0,forceSmallLayout:el,useResponsiveLayout:!0})}}))}}),_.x("div",{class:_.xM("ytwHorizontalShelfViewModelOuterContainer",(ug.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return C()},ug)),
style:_.UQ({"margin-top":function(){var pF,dA=d.data().header&&!((pF=d.horizontalShelfExperiments)==null?0:pF.call(d).hideHeader),U3;return(((U3=d.ensureMarginTop)==null?0:U3.call(d))&&!dA?12:0)+"px"}})},_.x("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.UQ({width:function(){return v()+"px"},
padding:function(){return"0 "+LF()+"px"},
overflow:function(){return e()?"auto":"hidden"}})},_.x("div",{class:_.xM("ytwHorizontalShelfViewModelItems",(fX.ytwHorizontalShelfViewModelCenterAlignItems=function(){return C()},fX)),
el:V,style:U},_.x(_.wB,{data:p},{macroMarkerListItemViewModel:function(pF,dA){return _.x("div",{style:_.UQ({width:function(){return N()+"px"},
"margin-right":function(){return(dA()===p().length-1?0:Mf())+"px"}})},_.x(GW3,{data:pF.data,
palette:_.vj(d.palette),isLastItem:function(){return dA()===p().length-1}}))},
lockupViewModel:function(pF,dA){var U3=pF.data;return _.x("div",{style:_.UQ({width:function(){return N()+"px"},
"margin-right":function(){return(dA()===p().length-1?0:Mf())+"px"}})},_.x(_.lN,{data:U3,
containerType:4,sizing:JN,protectBackground:d.protectBackground,thumbnailFixedWidth:function(){return lUh(U3())+"px"},
thumbnailTargetWidth:function(){return lUh(U3())}}))},
suspenseViewModel:function(pF,dA){return _.x("div",{style:_.UQ({width:function(){return N()+"px"},
"margin-right":function(){return(dA()===p().length-1?0:Mf())+"px"}})},_.x(ipA,{data:pF.data}))}}))),_.x(_.n,{cond:W,
then:function(){return _.x("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.UQ({top:function(){return FM()}})},_.x(_.wB,{data:g},{buttonViewModel:function(pF){return _.x(_.xk,{data:pF.data,
onClick:eS})}}))}}),_.x(_.n,{cond:A,
then:function(){return _.x("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.UQ({top:function(){return FM()}})},_.x(_.wB,{data:a},{buttonViewModel:function(pF){return _.x(_.xk,{data:pF.data,
onClick:vF})}}))}})))},"kd");
_.Yw.idomCompat=!0;var oNU=_.H1(function(d){var H=function(){return d.data().targetId||""},K=function(){var W;
return((W=d.data())==null?void 0:W.expansionEntityKey)||""},c=_.Uj(_.tu,K),p=!0,g=function(){var W;
return((W=c())==null?void 0:W.value)===H()},a=function(W){_.jO(_.PI("stringEntity",K(),{key:K(),
value:W?H():""}))};
_.Is(function(){p=!1;d.data().isExpanded&&a(!0)});
var e=function(){if(g()){var W=!0;d.onCollapse!==void 0&&(W=d.onCollapse());W&&a(!1)}else a(!0)},k=_.n7(e),C=function(){var W;
return(((W=d.accordionStyle)==null?void 0:W.call(d))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},R=_.Af("div"),V=function(){var W,J;
return(J=(W=_.M(d.data().rendererContext,_.hs))==null?void 0:W.label)!=null?J:""},U=function(){var W,J;
return{disabled:(W=d.hideIfNotExpanded)==null?void 0:W.call(d),ariaHidden:(J=d.hideIfNotExpanded)==null?void 0:J.call(d)}},L={},w={};
return _.x("yt-accordion-item-view-model",{class:_.xM("ytAccordionItemViewModelHost",d.className,(L.ytAccordionItemViewModelExpanded=function(){return g()},L.ytAccordionItemViewModelHidden=function(){var W;
return(W=d.hideIfNotExpanded)==null?void 0:W.call(d)},L.ytAccordionItemViewModelMini=C,L)),
"data-target-id":H},_.x("div",{class:"ytAccordionItemViewModelContainer"},_.x("div",{class:"ytAccordionItemViewModelLeftSection","on:click":k,title:V,"aria-hidden":function(){var W;return(W=d.hideIfNotExpanded)==null?void 0:W.call(d)}},_.x(_.j$,{text:function(){return d.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:V})),_.x("div",{class:"ytAccordionItemViewModelRightSection"},_.x(_.wB,{data:function(){return g()?d.data().expandButton:d.data().collapseButton}},{buttonViewModel:function(W){return _.x(_.xk,{data:W.data,
className:"ytAccordionItemViewModelToggleButton",onClick:e,buttonOverrides:U})}}))),_.x("div",{class:"ytAccordionItemViewModelContainer"},_.x("div",{class:_.xM("ytAccordionItemViewModelContent",(w.ytAccordionItemViewModelExpandedSubtitle=function(){return g()},w)),
el:R,style:_.UQ({"max-height":function(){return p?"auto":g()?R.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!g()}},_.x(_.n,{cond:function(){return!C()},
then:function(){return _.x(_.j$,{text:function(){return d.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.x(_.wB,{data:function(){return d.data().content}},{horizontalShelfViewModel:function(W){return _.x(_.Yw,{data:W.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"ld");_.q2C=_.H1(function(d){var H=_.q((0,_.W8A)(d.data)).next().value,K=function(){return d.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},c=function(){return K()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},p=_.q(_.GO(!0,void 0,"FVec2e")),g=p.next().value,a=p.next().value,e=function(){return c()&&g()},k=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){a(!g())}}},C=_.n7(function(){H().onTitleTap&&_.EG(H().onTitleTap||{})});
p={};return _.x("yt-accordion-view-model",{class:_.xM("ytAccordionViewModelHost",(p.ytAccordionViewModelMinimized=function(){return e()},p)),
"data-target-id":function(){return d.data().targetId||""}},_.x(_.n,{cond:function(){return c()||!!H().title},
then:function(){return _.x("div",{class:"ytAccordionViewModelHeader"},_.x("div",{class:"ytAccordionViewModelTitleSection"},_.x("div",{class:"ytAccordionViewModelTitleWrapper"},_.x(_.n,{cond:function(){return!!d.data().headerIcon},
then:function(){return _.x(_.hu,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var R;return(R=d.data().headerIcon)==null?void 0:R.iconType}})}}),_.x("div",{class:"ytAccordionViewModelTitle",
"on:click":C},_.x(_.j$,{className:"ytAccordionViewModelTitleText",text:function(){return H().title}})))),_.x("div",{class:"ytAccordionViewModelButtonSection"},_.x(_.n,{cond:c,
then:function(){return _.x(_.kk,{data:k,iconName:function(){return e()?"chevron_down":"chevron_collapse"}})}})))}}),_.x("div",{class:"ytAccordionViewModelContent"},_.x(_.wB,{data:function(){return H().contents}},{accordionItemViewModel:function(R){return _.x(oNU,{data:R.data,
className:"ytAccordionViewModelRow",accordionStyle:K,hideIfNotExpanded:e,onCollapse:function(){return c()?(a(!0),!1):!0}})}})),_.x("div",null,_.x(_.n,{cond:function(){return!c()&&(!!H().disclaimerFooter||!!H().footer)},
then:function(){return _.x("div",{class:"ytAccordionViewModelFooter"},_.x(_.j$,{text:function(){return H().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.x(_.wB,{data:function(){return d.data().footer}},{flexibleActionsViewModel:function(R){return _.x(_.Fd,{data:R.data,
layout:0})}}))}})))},"md");_.iV(_.q2C,"yt-accordion-view-model",{props:{data:_.dl}});_.iV(_.H1(function(d){var H=null,K=null,c,p=(c=_.Kj().resolve(_.$p(_.fM)))==null?void 0:c(),g=_.q(_.GO(!1,void 0,"EVXQGb"));c=g.next().value;var a=g.next().value;g=_.q(_.GO(!0,void 0,"W9FIJf"));var e=g.next().value,k=g.next().value,C=_.Af("textarea",function(J){_.wE(264503,J,H,function(F){H=F})}),R=function(J){a(!0);
J={learningJourneyFormData:{query:J}};_.EG(d.data().searchEndpoint||{},{form:{formData:J}});return!1},V=_.n7(function(J){J.target.closest("button-view-model")&&a(!0)});
g=_.n7(function(){k(C.value.value.length===0)});
var U=_.n7(function(J){if(J.key==="Enter"&&!J.shiftKey&&!e()){var F=J.target;J.preventDefault();R(F.value)}}),L={},w={},W={};
return _.x("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.x("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.x(_.d7,{data:function(){return d.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.x("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.x("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.x("div",{class:_.xM("ytLearningJourneyZeroStateSearchBar",(L.ytLearningJourneyZeroStateSearchBarDark=p,L))},_.x("textarea",{class:_.xM("ytLearningJourneyZeroStateTextInput",(w.ytLearningJourneyZeroStateTextInputDark=p,w)),el:C,"on:keyup":g,"on:keydown":U,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.x("div",{class:_.xM("ytLearningJourneyZeroStateSearchButtonContainer",(W.ytLearningJourneyZeroStateSearchButtonContainerDark=p,W))},_.x(_.xk,{data:function(){return _.M(d.data().searchButton,_.OV)},
className:"search-button",onClick:function(){return R(C.value.value)},
buttonOverrides:function(){return{disabled:e(),style:p?"mono-inverse":"mono",size:"XL"}}}))),_.x(_.n,{cond:function(){return!!d.data().errorBanner},
then:function(){return _.x("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.$M(function(J){_.wE(264617,J,K,function(F){K=F})})},_.x(_.wB,{data:function(){return d.data().errorBanner}},{alertBannerViewModel:function(J){return _.x(_.J0C,{data:J.data,
"client-ve-type":264617})}}))}})),_.x(_.n,{cond:c,
then:function(){return _.x("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.x(_.wB,{data:function(){return d.data().loader}},{learningJourneyLoaderViewModel:function(J){return _.x(_.$m0,{data:J.data})}}))},
else:function(){return _.x("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.x(_.n,{cond:function(){return!!d.data().learningJourneyShelf},
then:function(){return _.x("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.x("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return d.data().learningJourneySectionTitle}),_.x(_.wB,{data:function(){return d.data().learningJourneyShelf}},{horizontalShelfViewModel:function(J){return _.x(_.Yw,{data:J.data,
centerAlignItems:!0})}}))}}),_.x("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.x("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return d.data().suggestedJourneySectionTitle}),_.x("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":V},_.x(_.wB,{data:function(){return d.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(J){return _.x(_.Fd,{data:J.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"nd"),"yt-learning-journey-zero-state",{props:{data:_.dl}});var aJ3=_.H1(function(d){var H=d.data;return _.x("ytvl-live-leaderboard-item-action-content-view-model",{class:_.xM("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.x(_.j$,{text:function(){var K;return(K=H())==null?void 0:K.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.x(_.wB,{data:function(){return H().actionButton}},{buttonViewModel:function(K){return _.x(_.xk,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:K.data})}}))},"od");var lJd=_.H1(function(d){var H=d.data;return _.x("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.xM("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.x(_.j$,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var K;return(K=H())==null?void 0:K.displayName},
ellipsisTruncate:!0}),_.x(_.wB,{data:function(){return H().badge}},{buttonViewModel:function(K){return _.x(_.xk,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:K.data})}}))},"pd");_.iV(_.H1(function(d){var H=d.data;return _.x("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.x("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.x(_.j$,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var K;return(K=H())==null?void 0:K.rank}})),_.x("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.x(_.wB,{data:function(){return H().avatar}},{avatarViewModel:_.JV})),_.x("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.x(_.wB,{data:function(){return H().content}},{liveLeaderboardItemChannelContentViewModel:lJd,
liveLeaderboardItemActionContentViewModel:aJ3})),_.x(_.j$,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var K;return(K=H())==null?void 0:K.points}}))},"qd"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.dl}});_.iV(_.H1(function(d){var H=d.data;return _.x("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.x(_.j$,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var K,c;return(K=H())==null?void 0:(c=K.ranking)==null?void 0:c.rank}}),_.x("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.x(_.wB,{data:function(){return H().avatar}},{avatarViewModel:_.JV})),_.x(_.j$,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var K,c;return(K=H())==null?void 0:(c=K.channelContent)==null?void 0:c.channelName}}),_.x(_.j$,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var K;return(K=H())==null?void 0:K.points}}))},"rd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.dl}});var evX=_.H1(function(d){d=_.dg(d,{wrapper:!1}).wrapper;return _.x(_.n,{cond:d,then:function(){return _.x("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.x("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.x("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"sd");
evX.idomCompat=!0;var kW0=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],xmd=_.H1(function(d){var H=d.data;var K=_.$M(),c=_.ey(function(){return H().command},void 0,"o6t5Yb");
_.wc(function(){c()&&_.Yv(c(),{form:{element:K.value}})},"qIHWLc");
return _.x("div",{el:K,class:"YtQrCodeRendererHostContainer"},_.x(_.n,{cond:function(){return H().qrCodeImage},
then:function(p){return _.x(_.d7,{data:p,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.x(_.n,{cond:function(){return H().spinner},
then:function(){return _.x(evX,null)}})}}),_.x(_.n,{cond:function(){return H().label},
then:function(p){return _.x(_.j$,{text:p,className:"YtQrCodeRendererHostLabel"})}}),_.x(_.n,{cond:function(){return H().labels},
then:function(p){return _.x("div",{class:"YtQrCodeRendererHostLabels"},_.x(_.L6,{each:p},function(g){return _.x(_.j$,{text:g})}))}}))},"ud");_.iV(_.H1(function(d){var H=d.data;var K=_.ey(function(){return H().qrEntityKey},void 0,"joYCxd"),c=_.ey(function(){return H().deleteEntityOnDismiss},void 0,"x3yAde"),p=_.ey(function(){return H().command},void 0,"dJe1Re"),g=_.Uj(QO1,K);
d=_.ey(function(){return H().qrCodeImage},void 0,"qM5dZe");
var a=_.ey(function(){return H().style&&kW0.includes(H().style)},void 0,"CaNEkf"),e=_.cV({visibilityCallback:function(k){k&&p()&&_.Yv(p())},
showOption:{calledOnce:!0,state:"visible"}});_.WE(function(){_.Pk(function(){c()&&K()&&_.AB().dispatch(_.PI("qrCodeEntity",K()))})});
return _.x("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.$M(e)},_.x(_.n,{cond:a,then:function(){return _.x(_.n,{cond:g,then:function(k){return _.x(xmd,{data:k})}})}}),_.x(_.n,{cond:d,
then:function(k){return _.x(_.d7,{data:k,alt:""})}}))},"td"),"yt-qr-code-renderer",{props:{data:_.dl}});_.nNd=_.H1(function(d){var H=d.data;var K=d.topbarOffset;var c,p=((c=_.Kj().resolve(_.$p(_.fM)))==null?void 0:c())||!1;return _.x("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var g=H();var a,e,k=p?(a=g.config)==null?void 0:a.darkThemeBackgroundColor:(e=g.config)==null?void 0:e.lightThemeBackgroundColor;g=k?_.Yi(k):void 0;g="background-color: "+g+";";K!==void 0&&(g+="top: -"+K()+"px;");return g},
"aria-hidden":!0},_.x(_.n,{cond:function(){var g,a,e;return!!((g=H().backgroundImageConfig)==null?0:(a=g.image)==null?0:(e=a.sources)==null?0:e.length)},
then:function(){return _.x(_.d7,{data:function(){var g;return(g=H().backgroundImageConfig)==null?void 0:g.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.x("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+ey4(p,H().gradientColorConfig)+";"}}))},"vd");
_.nNd.idomCompat=!0;var O$=_.H1(function(d){var H=d.className;var K=d.data;var c=d.isOverlay;var p=d.maxLinesOverride;var g=d.useMediumText;var a=function(){return K().alwaysShowTruncationText},e=function(){return K().truncationText},k=function(){return g!==void 0&&g()?"medium":"small"},C=function(){return c!==void 0&&c()?"overlay":"default"},R=function(){var w,W;
return(W=(w=_.M(K().rendererContext,_.hs))==null?void 0:w.label)!=null?W:""};
d=_.q(_.GO(!1,void 0,"xVwzHf"));var V=d.next().value,U=d.next().value;d=_.n7(function(){K().expandOnTap&&U(!V());return!1});
var L={};return _.x("yt-description-preview-view-model",{el:_.$M(_.Tx(function(){return K().rendererContext})),
class:_.xM("yt-description-preview-view-model-wiz",H,(L["yt-description-preview-view-model-wiz--clickable"]=function(){var w;return!((w=_.M(K().rendererContext,$nL))==null||!w.onTap)},L["yt-description-preview-view-model-wiz--is-overlay"]=c,L)),
"on:click":d},_.x(_.n,{cond:function(){return K().description},
then:function(w){return _.x(_.n,{cond:V,then:function(){var W={};return _.x("div",{class:_.xM("yt-description-preview-view-model-wiz__description",(W["yt-description-preview-view-model-wiz__description--medium-text"]=g,W))},_.x(_.j$,{text:w}))},
else:function(){return _.x(W00,{text:w,alwaysShowTruncationText:a,truncationText:e,maxLines:function(){var W;return(W=p==null?void 0:p())!=null?W:K().maxLines},
textStyle:C,accessibilityLabel:R,textSize:k})}})}}))},"wd");
O$.idomCompat=!0;var CbX=_.H1(function(d){var H=d.data;var K=d.isOverlay;return _.x("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.x("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.x(_.wB,{data:function(){return H().header}},{sectionHeaderViewModel:function(c){return _.x(_.xw,{data:c.data,
isOverlay:K})}})),_.x("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.x(_.wB,{data:function(){return H().channelInfoButtons}},{flexibleActionsViewModel:_.Fd})),_.x("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.x(_.wB,{data:function(){return H().description}},{descriptionPreviewViewModel:function(c){return _.x(O$,{data:c.data,
isOverlay:K})}})))},"xd");
CbX.idomCompat=!0;var RvB=_.H1(function(d){var H=d.data;var K={};return _.x("factoid-view-model",{class:_.xM("ytwFactoidViewModelHost",(K.ytwFactoidViewModelHostOverlay=d.isOverlay,K))},_.x(_.j$,{text:function(){return H().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.x(_.j$,{text:function(){return H().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"yd");
RvB.idomCompat=!0;var VZN=_.H1(function(d){var H=d.data;var K=d.isOverlay;return _.x("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.x(_.wB,{data:function(){return H().factoids}},{factoidViewModel:function(c){return _.x(RvB,{data:c.data,
isOverlay:K})}}))},"zd");
VZN.idomCompat=!0;_.UmM=_.H1(function(d){var H=d.data;var K=d.isOverlay;return _.x("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.x(_.wB,{data:function(){return H().items}},{channelInfoViewModel:function(c){return _.x("div",{class:"ytwCourseMetadataViewModelHostItem"},_.x(CbX,{data:c.data,
isOverlay:K}))},
coursePerksViewModel:function(c){return _.x("div",{class:"ytwCourseMetadataViewModelHostItem"},_.x(jQ3,{data:c.data,isOverlay:K}))},
descriptionPreviewViewModel:function(c){return _.x("div",{class:"ytwCourseMetadataViewModelHostItem"},_.x(O$,{data:c.data,isOverlay:K}))},
factoidsRowViewModel:function(c){return _.x("div",{class:"ytwCourseMetadataViewModelHostItem"},_.x(VZN,{data:c.data,isOverlay:K}))},
progressViewModel:function(c){return _.x("div",{class:"ytwCourseMetadataViewModelHostItem"},_.x(vbN,{data:c.data,isOverlay:K}))}}))},"Ad");var hvA=_.H1(function(d){return _.x("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.x(_.wB,{data:function(){return d.data().content}},{courseMetadataViewModel:function(H){return _.x(_.UmM,{data:H.data,
isOverlay:d.isOverlay})},
progressViewModel:function(H){return _.x(vbN,{data:H.data})}}))},"Bd");var LFU=_.H1(function(d){var H=d.data;d=d.className;var K=function(){var p;return _.Zb((p=H())==null?void 0:p.rendererContext)},c={};
c=(c["dynamic-text-view-model-wiz"]=!0,c["dynamic-text-view-model-wiz--tappable"]=function(){return K()},c);
return _.x("yt-dynamic-text-view-model",{el:_.$M(_.Tx(function(){var p;return(p=H())==null?void 0:p.rendererContext})),
role:function(){return K()?"link":void 0},
tabindex:function(){return K()?0:void 0},
class:_.xM(d,c)},_.x("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var p,g,a;return(a=(g=_.M((p=H())==null?void 0:p.rendererContext,_.hs))==null?void 0:g.label)!=null?a:""}},_.x(_.j$,{text:function(){return H().text},
userInput:!0})))},"Cd");
LFU.idomCompat=!0;_.St=_.H1(function(d){var H=d.data;var K=d.isPositionRelative;var c=_.xDF("(max-width: 527.9px)"),p=function(){var g,a;return(a=(g=H())==null?void 0:g.style)!=null?a:"IMAGE_BANNER_STYLE_FULL_BLEED"};
d={};return _.x("yt-image-banner-view-model",{el:_.$M(_.Tx(function(){var g;return(g=H())==null?void 0:g.rendererContext})),
class:_.xM((d["yt-image-banner-view-model-wiz"]=!0,d["yt-image-banner-view-model-wiz--inset"]=function(){return nuD(p())},d["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.IH(!0)&&!(K==null?0:K())},d["yt-image-banner-view-model-wiz--small-inset"]=function(){return nuD(p())&&c()},d["yt-image-banner-view-model-wiz--tappable"]=function(){var g;
return _.Zb((g=H())==null?void 0:g.rendererContext)},d))},_.x(_.n,{cond:function(){var g;
return(g=H())==null?void 0:g.image},
then:function(){return _.x(_.d7,{data:function(){return H().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.x(_.wB,{data:function(){var g;
return(g=H())==null?void 0:g.overlays}},{thumbnailHoverOverlayViewModel:Xk}))},"Dd");
_.St.idomCompat=!0;var MZ0;MZ0=_.H1(function(d){var H=d.condition;var K=d.content;return _.x(_.n,{cond:H,then:function(){return _.x("div",{class:"page-header-view-model-wiz__scroll-container"},K())},
else:function(){return K()}})},"Ed");
_.mmS=_.H1(function(d){var H=d.data;var K=d.noPadding;var c=d.enableBanner;var p=d.cinematicContainerTopbarOffset;var g=d.allowCinematicContainerOverflow;var a=d.displayAsSidebar;var e=d.displayAsPanel;var k=d.alwaysUseMediumTextDescription;var C=CYC(),R=function(){return!!H().image||!!H().animatedImage},V=function(){return!!H().background},U=function(){return(a==null?0:a())||(e==null?0:e())?1:C()},L=function(){return U()===1},w=function(){return L()||U()===2},W=function(){return U()===4},J=function(){var LF=
H();
var YY=!!H().heroImage;var FM=U(),gA=RyC(H()),JN=a==null?void 0:a(),eS=!LF.metadata,vF;if(vF=YY?_.M(LF.heroImage,rJ3):_.M(LF.animatedImage||LF.image,rJ3)){LF=vF.style;var CX=vF.layoutMode;if(CX!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(vF=crM(K0h(vF)),YY)YY=kDf(FM,LF,CX,vF,JN);else b:if(eS)YY=FM===1?{size:48}:{size:72};else switch(FM){case 1:YY={size:72};break b;case 2:YY={size:120};break b;default:YY=gA<4?{size:120}:{size:160}}else YY=void 0}else YY={size:0};return YY};
d={};d=_.xM((d["page-header-view-model-wiz"]=!0,d["page-header-view-model-wiz--no-padding"]=function(){return!(K==null||!K())},d["page-header-view-model-wiz--small-top-padding"]=function(){return L()&&!H().actions&&!(e==null?0:e())||U()===2&&!(R()||H().heroImage)},d["page-header-view-model-wiz--small-bottom-padding"]=function(){return w()&&!H().actions&&!(e==null?0:e())},d["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(g==null?0:g())},d["page-header-view-model-wiz--display-as-sidebar"]=
a,d));
var F={},Y=_.xM((F["page-header-view-model-wiz__page-header-headline"]=!0,F["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var LF;return(LF=J())==null?void 0:LF.allowFullWidth},F)),A=function(){var LF;
return w()&&!((LF=J())==null?0:LF.allowFullWidth)},E=function(){return L()&&(!!H().heroImage||R())&&RyC(H())>0},N=function(){return E()&&(e==null?void 0:e())};
F={};var y=_.xM((F["page-header-view-model-wiz__page-header-title"]=!0,F["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!E()},F["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return E()&&!N()},F["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=N,F["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=V,F));
F={};var v=_.xM((F["page-header-view-model-wiz__page-header-headline-image"]=!0,F["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!H().heroImage&&w()},F));
F={};var el=_.xM((F["page-header-view-model-wiz__page-header-banner-container"]=c,F["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var LF;return(c==null?void 0:c())&&((LF=_.M(H().banner,_.BIl))==null?void 0:LF.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},F));
F={};var l1=_.xM((F["page-header-view-model-wiz__page-header-content-metadata"]=!0,F["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=V,F));F={};var V4=_.xM((F["page-header-view-model-wiz__page-header-flexible-actions"]=!0,F["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!H().metadata||w()},F["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!w()},F));
F={};var Mf=_.xM((F["page-header-view-model-wiz__page-header-attribution"]=!0,F["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=V,F));return _.x("yt-page-header-view-model",{class:d},_.x(_.n,{cond:V,then:function(){return _.x("div",{class:"page-header-view-model-wiz__page-header-background"},_.x(_.wB,{data:function(){return H().background}},{cinematicContainerViewModel:function(LF){return _.x(_.nNd,{data:LF.data,
topbarOffset:p})}}))}}),_.x(MZ0,{condition:function(){return!(a==null||!a())},
content:function(){return _.x("div",{class:"page-header-view-model-wiz__page-header-content"},_.x(_.n,{cond:function(){return(c==null?void 0:c())&&H().banner},
then:function(){return _.x("div",{class:el},_.x(_.wB,{data:function(){return H().banner}},{imageBannerViewModel:_.St}))}}),_.x("div",{class:Y},_.x(_.n,{cond:R,
then:function(){return _.x(_.wB,{data:function(){var LF;if(!(LF=H().animatedImage)){LF=H();if(R()){var YY=LF=Object.assign({},LF),FM=U(),gA=RyC(H()),JN=YY.image,eS=_.M(JN,W23),vF=eS==null?void 0:eS.avatar,CX=_.M(vF,_.tW);if(JN&&vF&&CX){switch(FM){case 1:CX.avatarImageSize="AVATAR_SIZE_XL";break;case 2:CX.avatarImageSize="AVATAR_SIZE_XXL";break;default:gA<4?CX.avatarImageSize="AVATAR_SIZE_XXL":CX.avatarImageSize="AVATAR_SIZE_XXXL"}_.X4(vF,_.tW,Object.assign({},CX));eS.avatar=Object.assign({},vF);_.X4(JN,
W23,Object.assign({},eS));YY.image=Object.assign({},JN)}}LF=LF.image}return LF}},{contentPreviewImageViewModel:function(LF){return _.x(_.iN,{data:LF.data,
className:v,imageSizeConfig:J})},
decoratedAvatarViewModel:function(LF){return _.x(_.sg,{data:LF.data,className:v})}})}}),_.x(_.n,{cond:function(){return!!H().heroImage&&!A()},
then:function(){return _.x(_.wB,{data:function(){return H().heroImage}},{contentPreviewImageViewModel:function(LF){return _.x(_.iN,{data:LF.data,
className:v,imageSizeConfig:J})}})}}),_.x("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.x(_.n,{cond:function(){return!!H().heroImage&&A()},
then:function(){return _.x("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.x(_.wB,{data:function(){return H().heroImage}},{contentPreviewImageViewModel:function(LF){return _.x(_.iN,{data:LF.data,
className:v,imageSizeConfig:J})}}))}}),_.x(_.wB,{data:function(){return H().title}},{dynamicTextViewModel:function(LF){return _.x(LFU,{data:LF.data,
className:y})}}),_.x(_.wB,{data:function(){return H().metadata}},{contentMetadataViewModel:function(LF){return _.x(_.Gs,{data:LF.data,
layout:function(){return L()?1:0},
className:l1,isOverlay:V,useMediumText:W})}}),_.x(_.n,{cond:function(){return H().description&&!L()},
then:function(){return _.x(_.wB,{data:function(){return H().description}},{descriptionPreviewViewModel:function(LF){return _.x(O$,{data:LF.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:V,maxLinesOverride:function(){return L()?void 0:1},
useMediumText:function(){return(k==null?void 0:k())||W()}})}})}}),_.x(_.n,{cond:function(){return H().attribution&&!w()},
then:function(){return _.x(_.wB,{data:function(){return H().attribution}},{attributionViewModel:function(LF){return _.x(x9l,{data:LF.data,
className:Mf,useMediumText:W})}})}}),_.x(_.n,{cond:function(){return H().actions&&!w()},
then:function(){return _.x(_.wB,{data:function(){return H().actions}},{flexibleActionsViewModel:function(LF){return _.x(_.Fd,{data:LF.data,
layout:function(){return VsE(U())},
className:V4})}})}}))),_.x("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.x(_.n,{cond:function(){return H().description&&L()},
then:function(){return _.x(_.wB,{data:function(){return H().description}},{descriptionPreviewViewModel:function(LF){return _.x(O$,{data:LF.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:V,maxLinesOverride:function(){return L()?void 0:1},
useMediumText:function(){return(k==null?void 0:k())||W()}})}})}}),_.x(_.n,{cond:function(){return H().attribution&&w()},
then:function(){return _.x(_.wB,{data:function(){return H().attribution}},{attributionViewModel:function(LF){return _.x(x9l,{data:LF.data,
className:Mf,useMediumText:W})}})}}),_.x(_.n,{cond:function(){return H().actions&&w()},
then:function(){return _.x(_.wB,{data:function(){return H().actions}},{flexibleActionsViewModel:function(LF){return _.x(_.Fd,{data:LF.data,
layout:function(){return VsE(U())},
className:V4})}})}})),_.x("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.x(_.wB,{data:function(){return H().bottomMetadataFlexibleContainer}},{flexibleContainer:function(LF){return _.x(hvA,{data:LF.data,
isOverlay:V})}})))}}))},"Fd");
_.mmS.idomCompat=!0;_.iV(_.H1(function(d){var H=_.q(_.GO(!1,void 0,"j5qbkc")),K=H.next().value,c=H.next().value;return _.x("yt-official-card-view-model",{class:_.xM("ytOfficialCardViewModelHost",d.className),style:_.UQ({"background-color":function(){var p,g=MHF((p=d.data())==null?void 0:p.backgroundColor);return g?_.Ob(g):void 0}})},_.x(_.wB,{data:function(){return d.data().header}},{pageHeaderViewModel:function(p){return _.x(_.mmS,{data:p.data,
noPadding:!0})}}),_.x(_.wB,{data:function(){return d.data().contents}},{horizontalShelfViewModel:function(p){return _.x(_.Yw,{data:p.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.x(_.n,{cond:K,
then:function(){return _.x("div",{class:"ytOfficialCardViewModelExpandedContent"},_.x(_.wB,{data:function(){return d.data().expandedContents}},{horizontalShelfViewModel:function(p){return _.x(_.Yw,{data:p.data,
sizing:"MINI"})}}),_.x("div",{class:"ytOfficialCardViewModelCollapseButton"},_.x(_.wB,{data:function(){return d.data().collapseButton}},{buttonViewModel:function(p){return _.x(_.xk,{data:p.data,
onClick:function(){c(!K())}})}})))},
else:function(){return _.x("div",{class:"ytOfficialCardViewModelExpandButton"},_.x(_.wB,{data:function(){return d.data().expandButton}},{buttonViewModel:function(p){return _.x(_.xk,{data:p.data,
onClick:function(){c(!K())}})}}))}}))},"Gd"),"yt-official-card-view-model",{props:{data:_.dl,
className:_.dl}});var wLS=_.H1(function(d){var H,K=(H=_.Kj().resolve(_.$p(_.fM)))==null?void 0:H();return _.x("ytw-search-friction-view-model",{class:_.xM("ytwSearchFrictionViewModelHost",d.className)},_.x("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.x("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.x(_.n,{cond:function(){return K&&d.data().darkThemeImage?d.data().darkThemeImage:d.data().image},
then:function(c){return _.x(_.d7,{data:c,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.x(_.wB,{data:function(){return d.data().overflowMenuButton}},{buttonViewModel:function(c){return _.x(_.xk,{data:c.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.x(_.j$,{text:function(){return d.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.x(_.L6,{each:function(){return d.data().bodyText||[]}},function(c){return _.x(_.j$,{text:c,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.x(_.wB,{data:function(){return d.data().actions}},{buttonViewModel:function(c){return _.x(_.xk,{data:c.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.x(_.j$,{text:function(){return d.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.x(_.j$,{text:function(){return d.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Hd");
wLS.idomCompat=!0;_.iV(wLS,"ytw-search-friction-view-model",{props:{data:_.dl,className:_.dl}});_.E$=_.H1(function(d){var H=_.Af("markdown-div"),K,c=(K=_.Kj().resolve(_.$p(_.fM)))==null?void 0:K();_.wc(function(){var p=H.value;var g=new mU3,a=new Map(g.JSC$9272_sanitizerTable.globalAttributePolicies);a.set("style",{policyAction:4});g.JSC$9272_sanitizerTable=new Vd(g.JSC$9272_sanitizerTable.allowedElements,g.JSC$9272_sanitizerTable.elementPolicies,g.JSC$9272_sanitizerTable.allowedGlobalAttributes,a,g.JSC$9272_sanitizerTable.globallyAllowedAttributePrefixes);var e=["data-time"];if(e===void 0)a=
new Set(g.JSC$9272_sanitizerTable.globallyAllowedAttributePrefixes),a.add("data-"),g.JSC$9272_sanitizerTable=new Vd(g.JSC$9272_sanitizerTable.allowedElements,g.JSC$9272_sanitizerTable.elementPolicies,g.JSC$9272_sanitizerTable.allowedGlobalAttributes,g.JSC$9272_sanitizerTable.globalAttributePolicies,a);else{a=new Set(g.JSC$9272_sanitizerTable.allowedGlobalAttributes);e=_.q(e);for(var k=e.next();!k.done;k=e.next()){k=k.value;if(k.indexOf("data-")!==0)throw Error("ma`"+k);a.add(k)}g.JSC$9272_sanitizerTable=
new Vd(g.JSC$9272_sanitizerTable.allowedElements,g.JSC$9272_sanitizerTable.elementPolicies,a,g.JSC$9272_sanitizerTable.globalAttributePolicies,g.JSC$9272_sanitizerTable.globallyAllowedAttributePrefixes)}a=new Set(g.JSC$9272_sanitizerTable.allowedGlobalAttributes);a.add("class");g.JSC$9272_sanitizerTable=new Vd(g.JSC$9272_sanitizerTable.allowedElements,g.JSC$9272_sanitizerTable.elementPolicies,a,g.JSC$9272_sanitizerTable.globalAttributePolicies,g.JSC$9272_sanitizerTable.globallyAllowedAttributePrefixes);
_.AL(p,_.VS7(g.build(),hyC(d.text())));Ljl(H.value)},"nk5Hce");
K={};return _.x("div",null,_.x("markdown-div",{class:_.xM("ytwMarkdownDivHost",(K.ytwMarkdownDivDark=c,K.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var p;return((p=d.isSmallText)==null?void 0:p.call(d))||!1},K.ytwMarkdownDivHostWrapCodeBlocks=function(){var p;
return((p=d.wrapCodeBlocks)==null?void 0:p.call(d))||!1},K.ytwMarkdownDivHostEnableDefaultStyling=function(){var p;
return!((p=d.disableDefaultStyling)==null?0:p.call(d))},K)),
el:H}))},"Id");
_.E$.idomCompat=!0;var PbS=_.H1(function(d){var H=d.imageData;var K=_.vj(d.isInList,!1),c=function(){return K()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.x("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.x(_.n,{cond:function(){return H().image},
then:function(p){return _.x(_.d7,{data:p,alt:function(){return c().alt},
contentMode:function(){return c().contentMode},
targetWidth:function(){return c().targetWidth},
targetHeight:function(){return c().targetHeight},
className:function(){return c().className}})}}),_.x("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.x("div",{class:_.xM("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.x(_.j$,{text:function(){return H().title}})),_.x(_.L6,{each:function(){var p;
return(p=H().description)!=null?p:[]}},function(p){return _.x("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.x(yD,{content:p}))})))},"Jd"),u_X=_.H1(function(d){var H=d.list;
var K=function(){var c;return(c=H().items)!=null?c:[]};
return _.x("div",{class:"ytwGenAiRichTextViewModelListContent"},_.x(_.n,{cond:function(){return H().title},
then:function(c){return _.x("div",{class:_.xM("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.x(_.j$,{text:c}))}}),_.x(_.n,{cond:function(){return H().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.x("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.x(_.L6,{each:K},function(c){return _.x("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.x(yD,{content:c,isInList:!0}))}))}}),_.x(_.n,{cond:function(){return H().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.x("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.x(_.L6,{each:K},function(c){return _.x("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.x(yD,{content:c,isInList:!0}))}))}}),_.x(_.n,{cond:function(){return H().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.x("div",{class:"ytwGenAiRichTextViewModelImageList"},_.x(_.L6,{each:K},function(c){return _.x("div",{class:"ytwGenAiRichTextViewModelListItem"},_.x(yD,{content:c,isInList:!0}))}))}}))},"Kd"),IJS=_.H1(function(d){var H=d.table;
return _.x("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.x("thead",null,_.x("tr",null,_.x(_.L6,{each:function(){var K,c;return(c=(K=H().header)==null?void 0:K.cells)!=null?c:[]}},function(K){return _.x("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.x(_.L6,{each:function(){return K.contents}},function(c){return _.x(yD,{content:c})}))}))),_.x("tbody",null,_.x(_.L6,{each:function(){var K;
return(K=H().rows)!=null?K:[]}},function(K){return _.x("tr",null,_.x(_.L6,{each:function(){return K.cells}},function(c){return _.x("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.x(_.L6,{each:function(){return c.contents}},function(p){return _.x(yD,{content:p})}))}))})))},"Ld"),yD=_.H1(function(d){var H=d.content;
var K=_.vj(d.isInList,!1),c=function(){var p,g;return(g=(p=H().contentBlock)==null?void 0:p.contents)!=null?g:[]};
return _.x("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.x(_.n,{cond:function(){return H().text},
then:function(p){return _.x(_.j$,{className:"ytwGenAiRichTextViewModelText",text:p})}}),_.x(_.n,{cond:function(){return H().image},
then:function(p){return _.x(PbS,{imageData:p,isInList:K})}}),_.x(_.n,{cond:function(){return H().list},
then:function(p){return _.x(u_X,{list:p})}}),_.x(_.n,{cond:function(){return H().contentBlock},
then:function(){return _.x("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.x(_.L6,{each:c},function(p){return _.x(yD,{content:p,isInList:!1})}))}}),_.x(_.n,{cond:function(){return H().table},
then:function(p){return _.x(IJS,{table:p})}}))},"Md"),rM0=_.H1(function(d){var H={};
H=_.zx("ytwGenAiRichTextViewModelHost",(H.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.GJ("search_overview_link_style")),H));return _.x("gen-ai-rich-text-view-model",{class:H},_.x(yD,{content:function(){return d.data().content}}))},"Nd");_.WFg=_.H1(function(d){var H=d.data;var K=function(){var W;return((W=H().loadingUi)!=null?W:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},c=function(){return H().isLoading&&(K()==="UNSPECIFIED"||K()==="GHOST_CARD")},p=function(){return!H().isLoading},g=function(){return!!H().content&&!H().contents},a=function(){return!!H().contents},e=function(){return!!H().nextQueryButtons},k=function(){return H().isLoading&&K()==="INVISIBLE"},C=function(){var W,J;
return(J=(W=H().headerIcon)==null?void 0:W.iconType)!=null?J:""},R=function(){var W;
return(W=H().content)!=null?W:""},V=function(){return!!H().sourcesSection},U,L=!((U=_.Kj().resolve(_.$p(_.fM)))==null||!U()),w=_.ey(function(){var W=[],J=H().contents;
if(J)for(var F=0;F<J.length;F++){var Y=_.M(J&&J[F],OaX);Y&&W.push(Y)}return W},void 0,"ycU97e");
_.WE(function(){H().isLoading||_.Fw("so_re",void 0,"search_overview_answer")});
return _.x("ytd-overview-answer-view-model",{class:function(){var W={};W=(W.ytdOverviewAnswerViewModelHost=!0,W.ytdOverviewAnswerViewModelDarkBackground=L&&!k(),W.ytdOverviewAnswerViewModelLightBackground=!L&&!k(),W);return _.zx(W)}},_.x(_.n,{cond:function(){return!k()},
then:function(){return _.x(_.HE,null,_.x("h2",null,_.x("div",{class:"ytdOverviewAnswerViewModelHeader"},_.x(_.n,{cond:C,then:function(W){return _.x("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.x(_.hu,{icon:W}))}}),_.x("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.x("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return H().headerText}),_.x("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.x(_.j$,{text:function(){return H().headerSubtext}}))))),_.x(_.n,{cond:c,
then:function(){return _.x(MsE,null)}}),_.x(_.n,{cond:p,
then:function(){return _.x(_.HE,null,_.x(_.n,{cond:g,then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelText"},_.x(_.E$,{text:R,isSmallText:!0}))}}),_.x(_.n,{cond:a,
then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelRichText"},_.x(_.L6,{each:w},function(W){return _.x(rM0,{data:W})}))}}),_.x(_.n,{cond:e,
then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.x(_.wB,{data:function(){return H().nextQueryButtons}},{buttonViewModel:function(W){return _.x(_.xk,{data:W.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.Yw}))}}),_.x("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.x("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.x(_.n,{cond:function(){return!!_.M(H().likeButtonViewModel,_.X5)&&!!_.M(H().dislikeButtonViewModel,_.zz)},
then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.x(_.Tr,{data:function(){return _.M(H().likeButtonViewModel,_.X5)},
disableIconAnimation:!0}),_.x(_.ZT,{data:function(){return _.M(H().dislikeButtonViewModel,_.zz)}}))}})),_.x(_.n,{cond:function(){var W;
return(W=H().sourcesSection)==null?void 0:W.headerText},
then:function(W){return _.x("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.x(_.j$,{text:W}))}})),_.x(_.n,{cond:V,
then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelSources"},_.x(_.wB,{data:function(){var W;return(W=H().sourcesSection)==null?void 0:W.sourcesShelf}},{buttonViewModel:_.xk,
horizontalShelfViewModel:function(W){return _.x(_.Yw,{data:W.data,includeMargin:!0,hasPeek:!0})}}))}}),_.x(_.n,{cond:function(){return H().disclaimerText},
then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.x(_.j$,{text:function(){return H().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Od");var Beg=_.H1(function(d){var H=d.data;var K=d.active;var c=_.Af("transcript-segment-view-model");_.wc(function(){var p,g,a,e=((p=_.Kj().resolve(_.$p(_.fM)))==null?0:p())?(g=H())==null?void 0:g.darkThemeColorPalette:(a=H())==null?void 0:a.lightThemeColorPalette;e&&(e.additiveBackground&&c.value.style.setProperty("--timestamp-active-background-color",_.Ob(e.additiveBackground)),e.textSecondary&&c.value.style.setProperty("--timestamp-active-color",_.Yi(e.textSecondary)))},"KHcbwb");
d={};return _.x("transcript-segment-view-model",{class:_.xM("ytwTranscriptSegmentViewModelHost",(d.ytwTranscriptSegmentViewModelHostActive=K,d.ytwTranscriptSegmentViewModelHostModern=_.h("enable_timeline_view_modern_transcript")||_.h("enable_timeline_view_modern_transcript_fe"),d)),el:c},_.x(_.n,{cond:function(){var p;return(p=H())==null?void 0:p.timestamp},
then:function(p){var g={};return _.x("div",{class:_.xM("ytwTranscriptSegmentViewModelTimestamp",(g.ytwTranscriptSegmentViewModelTimestampActive=K,g))},p)}}),_.x(_.j$,{text:function(){var p,g,a;
return(a=(p=H())==null?void 0:p.attributedText)!=null?a:{content:(g=H())==null?void 0:g.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Pd");var zvd=_.H1(function(d){var H=d.data;return _.x("div",{class:"yt-video-attributes-section-view-model__header"},_.x("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return H().headerTitle}),_.x(_.n,{cond:function(){return H().headerSubtitle},
then:function(){return _.x("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return H().headerSubtitle})}}))},"Qd"),XLg=_.H1(function(d){function H(W){return Math.max(Math.min(W,0),C()-e())}
var K=d.data;var c;d=_.Af("div",function(W){var J=function(){R(W.clientWidth)};
J();window.ResizeObserver&&(c=new ResizeObserver(J),c.observe(W))});
var p=_.Af("div",function(W){k(W.scrollWidth)}),g=_.q(_.GO(0,void 0,"Y8rd0c")),a=g.next().value;
g=g.next().value;var e=a,k=g;g=_.q(_.GO(0,void 0,"kDvR6b"));a=g.next().value;g=g.next().value;var C=a,R=g;a=_.q(_.GO(0,void 0,"Kit3De"));var V=a.next().value,U=a.next().value;_.Pk(function(){var W;(W=c)==null||W.disconnect()});
var L=function(){U(H(V()+C()))},w=function(){U(H(V()-C()))};
return _.x("yt-video-attributes-section-view-model",null,_.x("div",{class:"yt-video-attributes-section-view-model"},_.x(_.n,{cond:function(){return K().headerTitle},
then:function(){return _.x(zvd,{data:K})}}),_.x("div",{class:_.xM("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:d},_.x("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.UQ({transform:function(){var W=V();_.Fm("HTML_DIR")==="rtl"&&(W*=-1);return"translateX("+W+"px)"}}),
el:p},_.x(_.wB,{data:function(){return K().videoAttributeViewModels}},{videoAttributeViewModel:Xc6}))),_.x(_.wB,{data:function(){return K().footerButton}},{buttonViewModel:function(W){return _.x(_.xk,{data:W.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.x(_.n,{cond:function(){return V()<0&&K().previousButton},
then:function(){return _.x("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.x(_.wB,{data:function(){return K().previousButton}},{buttonViewModel:function(W){return _.x(_.xk,{data:W.data,
onClick:L})}}))}}),_.x(_.n,{cond:function(){return V()>C()-e()&&K().nextButton},
then:function(){return _.x("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.x(_.wB,{data:function(){return K().nextButton}},{buttonViewModel:function(W){return _.x(_.xk,{data:W.data,
onClick:w})}}))}})))},"Rd");
XLg.idomCompat=!0;var JMd=_.H1(function(d){var H=d.data;var K=d.active;var c={},p={};return _.x("timeline-item-view-model",{class:_.xM("ytwTimelineItemViewModelHost",(c.ytwTimelineItemViewModelHostChapterChild=d.chapterChild,c.ytwTimelineItemViewModelModern=_.h("enable_timeline_view_modern_transcript")||_.h("enable_timeline_view_modern_transcript_fe"),c))},_.x("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.x("div",{class:_.xM("ytwTimelineItemViewModelTimestamp",(p.ytwTimelineItemViewModelTimestampActive=
K,p))},function(){return H().timestamp})),_.x("div",{class:"ytwTimelineItemViewModelContentItems"},_.x(_.wB,{data:function(){return H().contentItems}},{transcriptSegmentViewModel:function(g){return _.x(Beg,{data:g.data,
active:K})},
videoAttributesSectionViewModel:XLg})))},"Sd");var sld=_.H1(function(d){var H=d.data;d={};return _.x("timeline-chapter-view-model",{class:_.xM("ytwTimelineChapterViewModelHost")},_.x("div",{class:_.xM("ytwTimelineChapterViewModelTitle",(d.ytwTimelineChapterViewModelModern=_.h("enable_timeline_view_modern_transcript")||_.h("enable_timeline_view_modern_transcript_fe"),d))},function(){return H().title}),_.x(_.wB,{data:function(){return H().contents}},{timelineItemViewModel:function(K){return _.x(JMd,{data:K.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(K){return _.x(XLg,{data:K.data})}}))},"Td");var FFU=_.H1(function(d){var H=d.data;var K=_.Af("macro-markers-panel-item-view-model"),c=_.Uj(_.Jpl,function(){var g;return(g=H().markersEngagementPanelSyncEntityKey)!=null?g:""}),p=function(){var g;
return((g=c())==null?void 0:g.activeItemIndex)===H().index};
d=_.n7(function(g){var a,e,k,C,R;return _.l(function(V){if(V.nextAddress==1)return g.stopPropagation(),_.sj(_.JW(g),K.value,["A".toString(),"BUTTON".toString()])?V.return():(a=_.T6(H().onTap))?V.yield(_.eA(),2):V.return();e=V.yieldResult;C=(k=_.M(a,_.AP))==null?void 0:k.startTimeSeconds;C===void 0||(R=e)!=null&&R.seekTo(C,!0);_.VE(V)})});
return _.x("macro-markers-panel-item-view-model",{class:_.xM("ytwMacroMarkersPanelItemViewModelHost",{"is-active":p}),el:K,"on:click":d,tabindex:0},_.x(_.wB,{data:function(){var g;return(g=H())==null?void 0:g.item}},{timelineChapterViewModel:function(g){return _.x(sld,{data:g.data,
active:p})},
timelineItemViewModel:function(g){return _.x(JMd,{data:g.data,active:p})},
videoAttributeViewModel:Xc6}))},"Ud");
FFU.idomCompat=!0;_.iV(FFU,"macro-markers-panel-item-view-model",{props:{data:_.dl}});_.iV(XLg,"yt-video-attributes-section-view-model",{props:{data:_.dl}});var ZpX=_.H1(function(d){var H=function(){var K,c,p;return(p=(K=d.data().leadingLogoAccessibility)==null?void 0:(c=K.accessibilityData)==null?void 0:c.label)!=null?p:""};
return _.x("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.x(_.n,{cond:function(){return d.data().leadingLogo},
then:function(K){return _.x(_.d7,{className:"ytwFantasySectionHeaderViewModelLogo",data:K,alt:H})}}),_.x("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.x(_.j$,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return d.data().title}}),_.x(_.j$,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return d.data().subtitle}})),_.x(_.wB,{data:function(){return d.data().trailingButton}},{buttonViewModel:function(K){return _.x(_.xk,{data:K.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Vd");var Te3=_.H1(function(d){var H={};H=_.xM("ytwFantasyTeamViewModelHost",(H.ytwFantasyTeamViewModelCompact=function(){var p;return!((p=d.compact)==null||!p.call(d))},H.ytwFantasyTeamViewModelUser=function(){return d.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},H.ytwFantasyTeamViewModelOpponent=function(){return d.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},H));
var K=function(){var p,g,a;return(a=(p=d.data().teamLogoAccessibility)==null?void 0:(g=p.accessibilityData)==null?void 0:g.label)!=null?a:""},c=_.Uj(Fo1,function(){return d.data().teamEntityKey});
return _.x("ytw-fantasy-team-view-model",{class:H},_.x(_.n,{cond:function(){return d.data().teamLogo},
then:function(p){return _.x(_.d7,{className:"ytwFantasyTeamViewModelLogo",data:p,alt:K})}}),_.x("div",{class:"ytwFantasyTeamViewModelMetadata"},_.x("div",{class:"ytwFantasyTeamViewModelHeader"},_.x(_.j$,{className:"ytwFantasyTeamViewModelScore",
text:function(){var p;return(p=c())==null?void 0:p.score}}),_.x(_.hu,{icon:function(){var p;
return(p=c())==null?void 0:p.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.x(_.j$,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var p;return(p=c())==null?void 0:p.projectedScore}})),_.x(_.j$,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return d.data().primaryText}}),_.x(_.j$,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return d.data().secondaryText}}),_.x(_.j$,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return d.data().tertiaryText}})),_.x(_.j$,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var p;return(p=c())==null?void 0:p.score}}))},"Wd");_.iV(_.H1(function(d){return _.x("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.x("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.x(_.wB,{data:function(){return d.data().summaryHeader}},{fantasySectionHeaderViewModel:ZpX})),_.x(_.wB,{data:function(){return d.data().userTeam}},{fantasyTeamViewModel:Te3}),_.x(_.wB,{data:function(){return d.data().opponentTeam}},{fantasyTeamViewModel:Te3}))},"Xd"),"fantasy-league-summary-view-model",{props:{data:_.dl}});var Ql3=_.H1(function(d){var H=_.dg(d,{shape:{},useCustomTabRenderable:!1}),K=H.shape;H=H.useCustomTabRenderable;var c=d.customTabRenderable,p=function(){return K().disabled},g=function(){return K().selected},a=function(){return K().title},e=function(){return K().icon},k=_.Af("yt-tab-shape");
d=_.n7(function(V){var U;if(!p()&&((U=K().aTagConfig)==null?0:U.onclick))K().aTagConfig.onclick(V);return!1});
var C=_.n7(function(V){if(V.key==="Enter"||V.key==="ArrowUp"||V.key==="ArrowDown")V.preventDefault(),k.value.click();return!1}),R={};
return _.x("yt-tab-shape",{class:_.xM("yt-tab-shape-wiz",function(){return K().className},(R["yt-tab-shape-wiz__tab--last-tab"]=function(){return K().isLastTab},R["yt-tab-shape-wiz--host-disabled"]=p,R["yt-tab-shape-wiz--host-clickable"]=!c,R)),
role:c?void 0:"tab","aria-selected":g!=null?g:!1,"aria-disabled":p,tabindex:c?void 0:0,"on:click":d,"on:keydown":C,el:k,"tab-identifier":function(){return K().identifier},
"tab-title":a},_.x(_.n,{cond:H,then:function(){return c()},
else:function(){var V={},U={};return _.x(_.HE,null,_.x("div",{class:_.xM("yt-tab-shape-wiz__tab",(V["yt-tab-shape-wiz__tab--tab-selected"]=g,V))},_.x(_.n,{cond:e,then:function(L){return _.x(_.hu,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return L().iconType}})}}),a),_.x("div",{class:_.xM("yt-tab-shape-wiz__tab-bar",(U["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=g,U))}))}}))},"Yd");
Ql3.idomCompat={callbacks:{customTabRenderable:!0}};_.Y2g=_.H1(function(d){var H=d.shape;d=_.q(_.GO(48,void 0,"r9IBlb"));var K=d.next().value,c=d.next().value;d=_.q(_.GO(0,void 0,"Bd7rmd"));var p=d.next().value,g=d.next().value,a=function(){return H().tabs},e=_.Af("yt-tab-group-shape"),k=function(){var C,R;
return(R=(C=a())==null?void 0:C.findIndex(function(V){return V.selected}))!=null?R:-1};
_.WE(function(){var C=e.value.querySelectorAll("yt-tab-shape"),R=k()>-1?C[k()]:void 0;_.Xp.addJob(function(){c((R==null?void 0:R.getBoundingClientRect().width)||0)},8,0)});
_.wc(function(){var C=k(),R=_.Xp.addJob(function(){var V,U=((V=e.value)==null?void 0:V.querySelectorAll("yt-tab-shape"))||[],L;c(((L=C>-1?U[C]:void 0)==null?void 0:L.getBoundingClientRect().width)||0);for(L=V=0;L<C;L++)V+=U[L].offsetWidth+24;_.Fm("HTML_DIR")==="rtl"&&(V=-V);g(V)},8,0);
_.Pk(function(){_.Xp.cancelJob(R)})},"EHixkc");
d={};return _.x("yt-tab-group-shape",{class:_.xM("yt-tab-group-shape-wiz",(d["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return H().isOverflowHidden},d)),
el:e},_.x(_.n,{cond:a,then:function(C){return _.x(_.HE,null,_.x("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.x(_.L6,{each:C},function(R,V){return _.x(Ql3,{shape:function(){return Object.assign({},R,{isLastTab:V()===C().length-1})},
customTabRenderable:R.customTabRenderable,useCustomTabRenderable:!!R.customTabRenderable})})),_.x(tZ6,{width:K,
sliderOffset:p}))}}))},"Zd");
_.Y2g.idomCompat=!0;var tZ6=_.H1(function(d){var H=_.vj(d.sliderOffset,0),K=d.width;return _.x("div",{class:"yt-tab-group-shape-wiz__slider",style:_.UQ({width:function(){return K()+"px"},
transform:function(){return"translateX("+H()+"px)"}})})},"$d");var OpU=_.H1(function(d){var H=function(){var g,a,e;return(e=(g=d.data().playerLogoAccessibility)==null?void 0:(a=g.accessibilityData)==null?void 0:a.label)!=null?e:""},K=_.Uj(Zri,function(){return d.data().playerEntityKey}),c={};
c=_.xM("ytwFantasyPlayerViewModelHost",(c.ytwFantasyPlayerViewModelPlaying=function(){var g;return!((g=K())==null||!g.isPlayerPlaying)},c.ytwFantasyPlayerViewModelOnField=function(){var g;
return((g=K())==null?void 0:g.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},c.ytwFantasyPlayerViewModelRedZone=function(){var g;
return((g=K())==null?void 0:g.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},c));
var p=function(){var g,a,e,k=((g=_.Kj().resolve(_.$p(_.fM)))==null?0:g())?(a=d.data().playerLogoBackgroundColor)==null?void 0:a.darkTheme:(e=d.data().playerLogoBackgroundColor)==null?void 0:e.lightTheme;return k===void 0?"":_.Ob(k)};
return _.x("ytw-fantasy-player-view-model",{class:c},_.x(_.n,{cond:function(){return d.data().playerLogo},
then:function(g){return _.x("div",{class:"ytwFantasyPlayerViewModelLogo"},_.x("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.x(_.d7,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.UQ({"background-color":p}),data:g,alt:H})),_.x("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.x(_.hu,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.x("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.x("div",{class:"ytwFantasyPlayerViewModelHeader"},_.x(_.j$,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var g;return(g=d.data())==null?void 0:g.playerNameText}}),_.x(_.j$,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var g;return(g=d.data())==null?void 0:g.playerDescriptionText}})),_.x("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.x(_.j$,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=K())==null?void 0:g.gamePeriodText}}),_.x(_.j$,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=d.data())==null?void 0:g.opponentTeamText}}),_.x(_.j$,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=K())==null?void 0:g.gameStatusText}}),_.x(_.j$,{className:_.xM("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var g;return(g=K())==null?void 0:g.playerStatusText}})),_.x("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.x(_.j$,{text:function(){var g;
return(g=K())==null?void 0:g.playerStatsText}}))),_.x(_.j$,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var g;return(g=K())==null?void 0:g.fantasyScore}}))},"ae");var S23=_.H1(function(d){return _.x("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.x(_.n,{cond:function(){return d.data().players},
then:function(H){return _.x(_.wB,{data:H},{fantasyPlayerViewModel:OpU})}}))},"be");var ENM=_.H1(function(d){var H=_.q(_.V2(function(){var p;return(p=d.data().selectedTabIdentifierKey)!=null?p:""})),K=H.next().value,c=H.next().value;
_.Is(function(){var p;(p=d.setSelectedTabSignal)==null||p.call(d,K)});
return _.x("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.x("div",{class:"ytTabbedViewModelTabGroup"},_.x(_.Y2g,{shape:function(){var p=d.data(),g=[],a={tabs:g};if(!p.tabs)return a;p=_.q(p.tabs);for(var e=p.next(),k={};!e.done;k={tabViewModel:void 0},e=p.next())if(k.tabViewModel=_.M(e.value,HdM),k.tabViewModel){var C=e=void 0;g.push({aTagConfig:{onclick:function(R){return function(){var V;c((V=R.tabViewModel.tabIdentifier)!=null?V:"")}}(k)},
identifier:k.tabViewModel.tabIdentifier,selected:K()===k.tabViewModel.tabIdentifier,title:(C=(e=k.tabViewModel.title)==null?void 0:e.content)!=null?C:""})}return a}})),_.x(_.wB,{data:function(){var p,g=_.q((p=d.data().tabs)!=null?p:[]);
for(p=g.next();!p.done;p=g.next())if((p=_.M(p.value,HdM))&&p.tabIdentifier===K())return p.content}},{fantasyRosterViewModel:S23}))},"ce");_.iV(_.H1(function(d){var H=_.q(mDM()),K=H.next().value,c=H.next().value;return _.x("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.x(_.j$,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return d.data().title}}),_.x(_.n,{cond:function(){return d.data().tabbedViewModel},
then:function(p){return _.x(_.wB,{data:p},{tabbedViewModel:function(g){return _.x(ENM,{data:g.data,setSelectedTabSignal:c})}})}}),_.x(_.n,{cond:function(){var p,g=(p=_.M(d.data().tabbedViewModel,$Z6))==null?void 0:p.tabs;
p=_.M(g==null?void 0:g[0],HdM);g=_.M(g==null?void 0:g[1],HdM);var a=p==null?void 0:p.tabIdentifier;if(K()===a){var e,k;if(!((e=_.M(p==null?void 0:p.content,bGC))==null?0:(k=e.players)==null?0:k.length))return d.data().noUserTeamPlayersText}else{var C,R;if(!((C=_.M(g==null?void 0:g.content,bGC))==null?0:(R=C.players)==null?0:R.length))return d.data().noOpponentTeamPlayersText}},
then:function(p){return _.x(_.j$,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:p})}}))},"de"),"ytw-fantasy-matchup-view-model",{props:{data:_.dl}});_.iV(_.H1(function(d){return _.x("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.x(_.j$,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return d.data().title}}),_.x(_.n,{cond:function(){return d.data().matchupTeamPairs},
then:function(H){return _.x(_.L6,{each:H,keyBy:"INDEX"},function(K){return _.x("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.x(_.wB,{data:function(){return[K().firstTeam,K().secondTeam]}},{fantasyTeamViewModel:function(c){return _.x(Te3,{data:c.data,
compact:!0})}}))})}}))},"ee"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.dl}});_.iV(_.H1(function(d){var H=function(){var p,g,a;return(a=(p=d.data().userLogoAccessibility)==null?void 0:(g=p.accessibilityData)==null?void 0:g.label)!=null?a:""},K=function(){var p,g,a;
return(a=(p=d.data().opponentLogoAccessibility)==null?void 0:(g=p.accessibilityData)==null?void 0:g.label)!=null?a:""},c=_.Uj(sOX,function(){return d.data().entityKey});
return _.x("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.x("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.x(_.n,{cond:function(){return d.data().userLogo},
then:function(p){return _.x(_.d7,{className:"ytwFantasyWinProbabilityViewModelLogo",data:p,alt:H})}}),_.x("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.x(_.j$,{text:function(){return d.data().title}})),_.x(_.n,{cond:function(){return d.data().opponentLogo},
then:function(p){return _.x(_.d7,{className:"ytwFantasyWinProbabilityViewModelLogo",data:p,alt:K})}})),_.x("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.x("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.x(_.j$,{text:function(){var p;
return(p=c())==null?void 0:p.userWinNumberLabel}})),_.x("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.x("div",{class:_.xM("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.UQ({flex:function(){var p,g;return(g=(p=c())==null?void 0:p.userWinNumber)!=null?g:50}})}),_.x("div",{class:_.xM("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.UQ({flex:function(){var p,g;return(g=(p=c())==null?void 0:p.opponentWinNumber)!=null?g:50}})})),_.x("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.x(_.j$,{text:function(){var p;
return(p=c())==null?void 0:p.opponentWinNumberLabel}}))))},"fe"),"fantasy-win-probability-view-model",{props:{data:_.dl}});var yMg={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},bp6=_.H1(function(d){return _.x(_.wB,{data:d.button},{buttonViewModel:function(H){return _.x(_.xk,{data:H.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"ge"),Ned=_.H1(function(d){return _.x("ytd-backstage-locked-post-view-model",{class:_.xM("ytdBackstageLockedPostViewModelHost",d.className)},_.x("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.x("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.x(_.wB,
{data:function(){return d.data().authorAvatar}},{decoratedAvatarViewModel:_.sg})),_.x("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.x("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.x(_.j$,{text:function(){return d.data().authorText}})),_.x("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.x(_.j$,{text:function(){return d.data().publishedTimeText}}),_.x(_.wB,{data:function(){return d.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(H){return _.x(xd7,
{data:H.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.x("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.x(_.j$,{text:function(){return d.data().contentText}})),_.x(_.w9,null,_.x(_.MM,{when:function(){return d.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.x("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.x(_.d7,{data:yMg,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.x(_.j$,{text:function(){return d.data().lockedText}}))}),_.x(_.MM,{when:function(){return d.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.x("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.x("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.x(_.d7,{data:yMg,
alt:""})),_.x(_.j$,{text:function(){return d.data().lockedText}}))})),_.x("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.x(bp6,{button:function(){return d.data().likeButton}}),_.x("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return d.data().voteCountA11y}},_.x(_.j$,{text:function(){return d.data().voteCount}})),_.x(bp6,{button:function(){return d.data().dislikeButton}}),_.x(bp6,{button:function(){return d.data().commentButton}}),_.x("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return d.data().commentCountA11y}},_.x(_.j$,{text:function(){return d.data().commentCount}}))))},"he");
Ned.idomCompat=!0;_.iV(Ned,"ytd-backstage-locked-post-view-model",{props:{data:_.dl,className:_.dl}});_.XX("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var bo=function(){var d=_.B.apply(this,arguments)||this;d.darkerPanels=_.h("web_watch_darker_panels");d.commentsHidePanelButton=!1;d.isWatchGrid=!1;d.continuationShowButton=!1;d.isSearch=!1;d.isConstrainedList=!1;d.isWatch=!1;d.eligibleToSwitchToGrid=!1;d.useBigThumbs=!1;d.notSticky=!1;d.epRestyle=!1;d.isCarouselInFeed=!0;d.topSpacingZero=!1;d.continuationIsInitialLoad=!0;d.enableSqueezebackPanels=_.h("web_shorts_enable_squeezeback_panels");d.enableAnchoredPanel=_.h("desktop_shorts_v2_anchored_panel");
d.mastheadHeight=0;d.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};d.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return d};
_.m(bo,_.B);_.G=bo.prototype;_.G.updateLockupContainerTypes=function(d){if(this.eligibleToSwitchToGrid){var H;(H=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||H.forEach(function(K){K.containerType=d})}};
_.G.getItemsPath=function(){return"data.contents"};
_.G.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.G.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",
compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",
fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",
handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",
horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",
messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",
offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",
premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",
redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",
searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",
showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",
unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",
primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",
listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.h("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.h("kevlar_low_priority_continuation")}}};
_.G.created=function(){};
_.G.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.G.handleIntersect=function(d){this.notSticky=d[0].intersectionRatio===1};
_.G.attached=function(){var d=this,H=_.h("web_item_section_sticky_header_use_scroll_as_fallback");H||document.addEventListener("scroll",_.xf(this,this.updateHeaderState));var K;this.mastheadHeight=((K=document.querySelector("ytd-masthead"))==null?void 0:K.clientHeight)||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(c){d.handleIntersect(c)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):H&&document.addEventListener("scroll",_.xf(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){d.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.G.detached=function(){document.removeEventListener("scroll",_.xf(this,this.updateHeaderState));var d;(d=this.intersectionObserver)==null||d.disconnect();var H;(H=this.resizeObserver)==null||H.disconnect()};
_.G.updated=function(d){d.has("data")&&this.updateHeaderState()};
_.G.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(nAM(!this.notSticky))};
_.G.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var d=_.Gn(this.hostElement).querySelector("ytd-comments-header-renderer");d&&(d.hidePanelButton=this.commentsHidePanelButton)}};
_.G.onRetrieveLocation=function(d,H){this.containsComments()&&(this.firstCommentsLoaded=H.hasComments=!0)};
_.G.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.G.onLoadReloadContinuation=function(d,H){var K=this;d.stopPropagation();this.isReloading=!0;_.GT(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(c){var p=_.Kj().resolve(_.FL);c=H(c);p.postData(c).then(function(g){K.onReloadContinuationData(g)})}})};
_.G.onReloadContinuationData=function(d){if(d=this.get("response.continuationContents.itemSectionContinuation",d)||this.get("response.contents.itemSectionRenderer",d)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",d)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",d))this.set("data.contents",d.contents||d.results),d.header&&this.set("data.header",d.header),this.set("data.continuations",
d.continuations||[]);this.isReloading=!1};
_.G.computeContentsClass=function(d){return d?"reloading":""};
_.G.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.G.computeSectionIdentifier=function(d){return d==null?void 0:d.sectionIdentifier};
_.G.computeFitContainer=function(d){return(d==null?void 0:d.sectionIdentifier)==="youchat-item-section"};
_.G.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.h("kevlar_disable_comments_auto_load")};
_.G.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.G.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.G.computeHasDestinationShelfRenderer=function(d){var H,K;return!!(d==null?0:(H=d.contents)==null?0:(K=H[0])==null?0:K.destinationShelfRenderer)};
_.G.computeHasSectionGroupViewModel=function(d){var H,K;return!!(d==null?0:(H=d.contents)==null?0:(K=H[0])==null?0:K.sectionGroupViewModel)};
_.G.computeHasQrCodeRenderer=function(d){var H,K;return!!(d==null?0:(H=d.contents)==null?0:(K=H[0])==null?0:K.qrCodeRenderer)};
_.G.computeStaticCommentsHeader=function(d){return d&&this.containsComments()};
_.G.computeEpRestyle=function(d){return _.h("web_ep_restyling")&&d&&this.containsComments()};
_.G.computeIsContinuationCommentSection=function(d){return(d==null?void 0:d.targetId)==="shorts-engagement-panel-comments-section"||(d==null?void 0:d.targetId)==="comments-section"||(d==null?void 0:d.targetId)==="engagement-panel-comments-section"};
_.G.computeSuppressPaddingDisclaimer=function(){var d,H,K,c;return!!((d=this.data)==null?0:(H=d.contents)==null?0:(K=H[0])==null?0:(c=K.productListHeaderRenderer)==null?0:c.suppressPaddingDisclaimer)};
_.G.computeHeaderStyle=function(d){switch(d==null?void 0:d.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.G.dataChanged=function(){this.firstCommentsLoaded=!1};
_.G.observeDataContentsLength=function(){var d,H;((d=this.data)==null?0:(H=d.contents)==null?0:H.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.G.onYtDismissibleItemDismissedChange=function(d){this._setItemDismissed(d.type==="yt-dismissible-item-dismissed")};
_.G.triggerContinuations=function(){for(var d=_.Gn(this.hostElement).querySelector("#continuations").children,H=0;H<d.length;H++)d[H].trigger()};
_.G.triggerInitialContinuations=function(){for(var d=_.Gn(this.hostElement).querySelector("#continuations").children,H=0;H<d.length;H++)d[H].triggerIfNotPreviouslyTriggered()};
_.G.handleYtItemSectionContinuation=function(d,H){var K;H&&((K=this.data)==null?void 0:K.sectionIdentifier)!==H||(this.set("data.continuations",[d]),this.triggerContinuations())};
_.G.handleYtItemSectionReplace=function(d,H){var K;H&&((K=this.data)==null?void 0:K.sectionIdentifier)!==H||(this.set("data.contents",d),this.set("data.continuations",[]))};
_.G.computeUseHeightHack=function(d){return d&&!_.h("kevlar_disable_height_hack")};
_.G.computeTopSpacingZero=function(d){return d};
_.G.continuationShowButtonChanged=function(){var d=_.Gn(this.hostElement).querySelector("ytd-continuation-item-renderer");d&&(d.showButton=this.continuationShowButton)};
_.G.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("data-changed",this.data))};
_.H3.Object.defineProperties(bo.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.h("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return!!((d=this.data)==null?0:(H=d.contents)==null?0:(K=H[0])==null?0:K.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c,p,g,a;return!!((d=this.data)==null?0:(H=d.contents)==null?0:(K=H[0])==null?0:(c=K.shelfRenderer)==null?0:(p=c.content)==null?0:(g=p.gridRenderer)==null?0:(a=g.targetId)==null?0:a.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return!!((d=this.data)==null?0:(H=d.contents)==null?0:(K=H[0])==null?0:K.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return!!((d=this.data)==null?0:(H=d.contents)==null?0:(K=H[0])==null?0:K.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.GJ("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.h("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.h("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
bo.prototype.dataChangedForBinding=bo.prototype.dataChangedForBinding;bo.prototype.continuationShowButtonChanged=bo.prototype.continuationShowButtonChanged;bo.prototype.onYtDismissibleItemDismissedChange=bo.prototype.onYtDismissibleItemDismissedChange;bo.prototype.observeDataContentsLength=bo.prototype.observeDataContentsLength;bo.prototype.dataChanged=bo.prototype.dataChanged;bo.prototype.onServiceRequestCompleted=bo.prototype.onServiceRequestCompleted;bo.prototype.onLoadReloadContinuation=bo.prototype.onLoadReloadContinuation;
bo.prototype.onRetrieveLocation=bo.prototype.onRetrieveLocation;bo.prototype.commentsHidePanelButtonChanged=bo.prototype.commentsHidePanelButtonChanged;bo.prototype.dispatchChipBarIsSticky=bo.prototype.dispatchChipBarIsSticky;bo.prototype.updateLockupContainerTypes=bo.prototype.updateLockupContainerTypes;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],bo.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],bo.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],bo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Gr.YtLazyListBehavior),_.O("design:type",Object)],bo.prototype,"ytLazyListBehavior",void 0);_.t([_.u(_.bN.YtNextContinuationBehavior),_.O("design:type",Object)],bo.prototype,"ytNextContinuationBehavior",void 0);
_.t([_.u(_.yH),_.O("design:type",Object)],bo.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],bo.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],bo.prototype,"ytdReduxBehavior",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],bo.prototype,"darkerPanels",void 0);_.t([_.r(),_.O("design:type",Object)],bo.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Boolean)],bo.prototype,"engagementPanel",void 0);_.t([_.r(),_.O("design:type",Object)],bo.prototype,"commentsHidePanelButton",void 0);_.t([_.r(),_.O("design:type",Object)],bo.prototype,"isWatchGrid",void 0);_.t([_.r(),_.O("design:type",Object)],bo.prototype,"continuationShowButton",void 0);_.t([_.r({computed:"computeIsContinuationCommentSection(data)"}),_.O("design:type",Boolean)],bo.prototype,"continuationIsCommentsSection",void 0);
_.t([_.r({value:!0}),_.O("design:type",Boolean)],bo.prototype,"autoFill",void 0);_.t([_.r(),_.O("design:type",Boolean)],bo.prototype,"continuationDisablePrescanVisibility",void 0);_.t([_.r(),_.O("design:type",Boolean)],bo.prototype,"isReloading",void 0);_.t([_.r(),_.O("design:type",Object)],bo.prototype,"isSearch",void 0);_.t([_.r(),_.O("design:type",Object)],bo.prototype,"isConstrainedList",void 0);_.t([_.r(),_.O("design:type",Object)],bo.prototype,"isWatch",void 0);
_.t([_.r(),_.O("design:type",Object)],bo.prototype,"eligibleToSwitchToGrid",void 0);_.t([_.r(),_.O("design:type",Object)],bo.prototype,"useBigThumbs",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],bo.prototype,"notSticky",void 0);_.t([_.r({selector:_.ZA}),_.O("design:type",Object)],bo.prototype,"isGridViewEnabled",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.O("design:type",Object)],bo.prototype,"epRestyle",void 0);_.t([_.I("isWatch"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],bo.prototype,"hideShortsShelfHeader",null);_.t([_.I("isSearch","isWatch"),_.O("design:type",String),_.O("design:paramtypes",[])],bo.prototype,"thumbnailWidth",null);
_.t([_.I("isSearch","containerWidth"),_.O("design:type",Object),_.O("design:paramtypes",[])],bo.prototype,"thumbnailTargetWidth",null);_.t([_.I("isSearch","isWatch"),_.O("design:type",String),_.O("design:paramtypes",[])],bo.prototype,"sizing",null);_.t([_.I("isWatch","isGridViewEnabled","useBigThumbs","data"),_.r({reflectToAttribute:!0}),_.O("design:type",Number),_.O("design:paramtypes",[])],bo.prototype,"lockupContainerType",null);
_.t([_.CK("lockupContainerType","data"),_.O("design:type",Function),_.O("design:paramtypes",[Number]),_.O("design:returntype")],bo.prototype,"updateLockupContainerTypes",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],bo.prototype,"pageSubtype",void 0);_.t([_.r({computed:"computeContainerWidth()"}),_.O("design:type",Number)],bo.prototype,"containerWidth",void 0);_.t([_.r(),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],bo.prototype,"isPlaylist",null);
_.t([_.r(),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],bo.prototype,"isClipList",null);_.t([_.r(),_.O("design:type",Object)],bo.prototype,"isCarouselInFeed",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],bo.prototype,"isPlaylistVideoContainer",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],bo.prototype,"isSearchFrictionPage",null);
_.t([_.r({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.O("design:type",Boolean)],bo.prototype,"useHeightHack",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.O("design:type",Object)],bo.prototype,"topSpacingZero",void 0);_.t([_.r({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.O("design:type",Boolean)],bo.prototype,"showButton",void 0);
_.t([_.r(),_.O("design:type",Boolean)],bo.prototype,"firstCommentsLoaded",void 0);_.t([_.r(),_.O("design:type",Object)],bo.prototype,"continuationIsInitialLoad",void 0);_.t([_.r({reflectToAttribute:!0,readOnly:!0}),_.O("design:type",Boolean)],bo.prototype,"itemDismissed",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.O("design:type",String)],bo.prototype,"sectionIdentifier",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.O("design:type",String)],bo.prototype,"fitContainer",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.O("design:type",Boolean)],bo.prototype,"hasDestinationShelfRenderer",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.O("design:type",Boolean)],bo.prototype,"staticCommentsHeader",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],bo.prototype,"enableSqueezebackPanels",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],bo.prototype,"enableAnchoredPanel",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.O("design:type",Boolean)],bo.prototype,"hasSectionGroupViewModel",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.O("design:type",Boolean)],bo.prototype,"hasQrCodeRenderer",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.O("design:type",Boolean)],bo.prototype,"suppressDisclaimerSeparator",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.O("design:type",String)],bo.prototype,"headerStyle",void 0);
_.t([_.I("isSearch"),_.O("design:type",Object),_.O("design:paramtypes",[])],bo.prototype,"lockupExperiments",null);_.t([_.I("isSearch"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],bo.prototype,"typographyBump",null);_.t([_.VP("#header"),_.O("design:type",HTMLElement)],bo.prototype,"header",void 0);_.t([_.CK("notSticky"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bo.prototype,"dispatchChipBarIsSticky",null);
_.t([_.CK("commentsHidePanelButton"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bo.prototype,"commentsHidePanelButtonChanged",null);_.t([_.nK("yt-retrieve-location"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],bo.prototype,"onRetrieveLocation",null);
_.t([_.nK("yt-load-reload-continuation"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Function]),_.O("design:returntype")],bo.prototype,"onLoadReloadContinuation",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bo.prototype,"onServiceRequestCompleted",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bo.prototype,"dataChanged",null);
_.t([_.Mr("data.contents.length"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bo.prototype,"observeDataContentsLength",null);_.t([_.nK("yt-dismissible-item-dismissed"),_.nK("yt-dismissible-item-undismissed"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],bo.prototype,"onYtDismissibleItemDismissedChange",null);
_.t([_.CK("continuationShowButton"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bo.prototype,"continuationShowButtonChanged",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bo.prototype,"dataChangedForBinding",null);_.t([_.Z({is:"ytd-item-section-renderer",disableElementRegistration:!0})],bo);
_.T(bo,"ytd-item-section-renderer",function(){if(oIM!==void 0)return oIM;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-item-section-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading(isReloading, continuationIsReloading)]]" class="style-scope ytd-item-section-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="continuations" class="style-scope ytd-item-section-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return oIM=d},{mode:1});var DmC;var u8L=_.AF(_.Vz("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var fJS={},PYl=(fJS[0]={title:_.cW(_.Vz("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.cW(_.Vz("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.$L("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},fJS[1]={title:_.cW(_.Vz("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.$L("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},fJS);_.XX("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var N2=function(){var d=_.B.apply(this,arguments)||this;d.allVideosCount=0;d.allPlaylistCount=0;d.isOnline=!1;d.shouldRenderDownloadsBanner=!1;d.shouldRenderDownloadsBannerUpsell=!1;d.hasOptedIntoSmartDownloads=!1;d.areAllSmartDownloadsDeleted=!1;d.smartDownloadsCompleted=!1;return d};
_.m(N2,_.B);N2.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
N2.prototype.attached=function(){this.downloadsToRenderChanged()};
N2.prototype.detached=function(){this.set("renderableData",{})};
N2.prototype.downloadsToRenderChanged=function(){var d=_.dn().getState().entities,H=_.BW(d),K=_.h("kevlar_playlist_dl_page_killswitch")?OUM(d):_.zR(d),c=_.sS5(d),p=_.QS1(d),g=_.w0(H);d=_.Xv(d);this.set("renderableData",rlY(K,H,c,p,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,g,d))};
N2.prototype.downloadsToRenderChanged=N2.prototype.downloadsToRenderChanged;_.t([_.u(_.to),_.O("design:type",Object)],N2.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],N2.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],N2.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],N2.prototype,"renderableData",void 0);_.t([_.r({selector:_.$GD}),_.O("design:type",Object)],N2.prototype,"allVideosCount",void 0);_.t([_.r({selector:UBL}),_.O("design:type",Object)],N2.prototype,"allPlaylistCount",void 0);_.t([_.r({selector:_.TR}),_.O("design:type",Object)],N2.prototype,"isOnline",void 0);_.t([_.r({selector:_.oCY}),_.O("design:type",Object)],N2.prototype,"shouldRenderDownloadsBanner",void 0);
_.t([_.r({selector:_.el4}),_.O("design:type",Object)],N2.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.t([_.r({selector:_.qsl}),_.O("design:type",Object)],N2.prototype,"hasOptedIntoSmartDownloads",void 0);_.t([_.r({selector:_.afF}),_.O("design:type",Object)],N2.prototype,"areAllSmartDownloadsDeleted",void 0);_.t([_.r({selector:lfY}),_.O("design:type",Object)],N2.prototype,"smartDownloadsCompleted",void 0);
_.t([_.Mr("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],N2.prototype,"downloadsToRenderChanged",null);_.t([_.Z({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],N2);
_.T(N2,"ytd-offline-item-section-renderer",function(){if(DmC!==void 0)return DmC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-offline-item-section-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return DmC=d},
{mode:1});var AMM;var jlX;var Dm=function(){return _.B.apply(this,arguments)||this};
_.m(Dm,_.B);
Dm.prototype.onDataChanged=function(){if(this.JSC$16593_lastData){var d=this.getFilterClass(this.JSC$16593_lastData.status);d&&this.hostElement.classList.remove(d)}var H;(d=this.getFilterClass((H=this.data)==null?void 0:H.status))&&this.hostElement.classList.add(d);d==="selected"?_.Gn(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Gn(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");d==="disabled"?_.Gn(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Gn(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16593_lastData=this.data};
Dm.prototype.getFilterClass=function(d){switch(d){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
Dm.prototype.onDataChanged=Dm.prototype.onDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Dm.prototype,"data",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dm.prototype,"onDataChanged",null);_.t([_.Z({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],Dm);
_.T(Dm,"ytd-search-filter-renderer",function(){if(jlX!==void 0)return jlX;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-search-filter-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<div id="label" title="[[data.tooltip]]" class="style-scope ytd-search-filter-renderer">\n    <yt-formatted-string text="[[data.label]]" class="style-scope ytd-search-filter-renderer"></yt-formatted-string>\n    <yt-icon id="dismiss-x" hidden="[[!data.navigationEndpoint]]" icon="yt-icons:dismissal" class="style-scope ytd-search-filter-renderer">\n    </yt-icon>\n  </div>\n</a>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return jlX=d},{mode:_.qk("kevlar_poly_si_batch_j075")?1:2});var fI=function(){return _.B.apply(this,arguments)||this};
_.m(fI,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],fI.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],fI.prototype,"data",void 0);_.t([_.Z({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],fI);
_.T(fI,"ytd-search-filter-group-renderer",function(){if(AMM!==void 0)return AMM;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="filter-group-name" class="style-scope ytd-search-filter-group-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-search-filter-group-renderer"></yt-formatted-string>\n</h4>\n<template is="dom-repeat" items="[[data.filters]]" class="style-scope ytd-search-filter-group-renderer">\n  <template is="dom-if" if="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    <ytd-search-filter-renderer data="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    </ytd-search-filter-renderer>\n  </template>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return AMM=d},{mode:_.qk("kevlar_poly_si_batch_j075")?1:2});var vNX;var A6=function(){return _.B.apply(this,arguments)||this};
_.m(A6,_.B);A6.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.eL());this.isCollapsed=!this.isCollapsed};
A6.prototype.navigateToAboutTheseResultsPage=function(){var d=_.Be("https://www.youtube.com/howyoutubeworks/product-features/search/");d?_.EH(window,d,"_blank"):_.tm(Error("Rh"))};
A6.prototype.dataChanged=function(){this.isCollapsed=!0};
A6.prototype.computeShowBottomBorder=function(){var d,H,K;return!!((d=this.data)==null?0:(H=d.button)==null?0:H.toggleButtonRenderer)||!((K=this.data)==null||!K.aboutTheseResultsButton)};
A6.prototype.dataChanged=A6.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],A6.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.O("design:type",Boolean)],A6.prototype,"showBottomBorder",void 0);_.t([_.r(),_.O("design:type",Boolean)],A6.prototype,"renderCollapsibleMenu",void 0);
_.t([_.r(),_.O("design:type",Boolean)],A6.prototype,"isCollapsed",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],A6.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],A6);
_.T(A6,"ytd-search-sub-menu-renderer",function(){if(vNX!==void 0)return vNX;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-menu" class="style-scope ytd-search-sub-menu-renderer">\n  <div id="container" class="style-scope ytd-search-sub-menu-renderer">\n    <ytd-toggle-button-renderer align-by-text="" data="[[data.button.toggleButtonRenderer]]" on-click="toggleFilters" class="style-scope ytd-search-sub-menu-renderer">\n    </ytd-toggle-button-renderer>\n    <template is="dom-if" if="[[data.aboutTheseResultsButton]]" class="style-scope ytd-search-sub-menu-renderer">\n      <ytd-button-renderer align-by-text="" data="[[data.aboutTheseResultsButton.buttonRenderer]]" on-click="navigateToAboutTheseResultsPage" class="style-scope ytd-search-sub-menu-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <template is="dom-if" if="[[renderCollapsibleMenu]]" class="style-scope ytd-search-sub-menu-renderer">\n    <tp-yt-iron-collapse id="collapse" opened="[[!isCollapsed]]" class="style-scope ytd-search-sub-menu-renderer">\n      <div id="collapse-content" class="style-scope ytd-search-sub-menu-renderer">\n        <template is="dom-repeat" items="[[data.groups]]" class="style-scope ytd-search-sub-menu-renderer">\n          <ytd-search-filter-group-renderer data="[[item.searchFilterGroupRenderer]]" class="style-scope ytd-search-sub-menu-renderer">\n          </ytd-search-filter-group-renderer>\n        </template>\n      </div>\n    </tp-yt-iron-collapse>\n  </template>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return vNX=d},{mode:1});var dyU;var H$7=new _.Av("SECTION_LIST_RENDERER_TOKEN");var $yg;var jt=function(){return _.B.apply(this,arguments)||this};
_.m(jt,_.B);jt.prototype.computeStyle=function(d){return d?d.toLowerCase().replace(/_/g,"-"):""};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],jt.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.O("design:type",String)],jt.prototype,"headerStyle",void 0);_.t([_.Z({is:"ytd-text-header-renderer",disableElementRegistration:!0})],jt);
_.T(jt,"ytd-text-header-renderer",function(){if($yg!==void 0)return $yg;var d=document.createElement("template");_.P(d,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e[[getSimpleString(data.title)]]\n");d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return $yg=d},{mode:1});var K4N;var vt=function(){return _.B.apply(this,arguments)||this};
_.m(vt,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],vt.prototype,"data",void 0);_.t([_.Z({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],vt);
_.T(vt,"ytd-minor-moment-header-renderer",function(){if(K4N!==void 0)return K4N;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img src$="[[data.imageUrl]]" alt="" class="minormoment-header-img style-scope ytd-minor-moment-header-renderer">\n<yt-formatted-string id="title" respect-html-dir="" text="[[data.title]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n<yt-formatted-string id="caption" respect-html-dir="" text="[[data.caption]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return K4N=d},{mode:1});var cx6;var dJ=function(){return _.B.apply(this,arguments)||this};
_.m(dJ,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],dJ.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],dJ.prototype,"data",void 0);_.t([_.Z({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],dJ);
_.T(dJ,"ytd-minor-moment-setting-alert-renderer",function(){if(cx6!==void 0)return cx6;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.details]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n  <yt-formatted-string class="detail-text style-scope ytd-minor-moment-setting-alert-renderer" text="[[item]]">\n  </yt-formatted-string>\n</template>\n<yt-formatted-string id="link" text="[[data.link]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return cx6=d},{mode:1});var pPl;var gTC;var HJ=function(){var d=_.B.apply(this,arguments)||this;d.booleanSettingById=!1;d.smartDownloadsEnabledVE=_.l8(128287);d.smartDownloadsDisabledVE=_.l8(128286);d.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return d};
_.m(HJ,_.B);_.G=HJ.prototype;_.G.attachSmartDownloadsSettingVes=function(){var d;this.activeVeForLogging||((d=this.data)==null?void 0:d.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.ec(_.hR(),this.smartDownloadsEnabledVE),_.ec(_.hR(),this.smartDownloadsDisabledVE))};
_.G.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.GT(this.hostElement,"yt-settings-switch-ready")};
_.G.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.G.onSwitchChange=function(d){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(d=_.v5(d).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.h("kevlar_settings_switch_resolve_command_killswitch")?_.Kj().resolve(_.cb).resolveCommand(d,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(d)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.G.handleUpdateSettingsSwitch=function(d){(d=_.M(d,e1C))&&this.data&&this.data.id===d.id&&this.set("data.enabled",!!d.enabled)};
_.G.onToggleSettingsSwitch=function(d,H){this.data&&this.data.id===d&&this.set("data.enabled",H!=null?H:!this.data.enabled)};
_.G.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.$R.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.G.maybeLogSmartDownloadsSettingVisibility=function(){var d=_.Fj(),H;d&&((H=this.data)==null?void 0:H.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.No(d,[this.smartDownloadsEnabledVE]),_.Di(d,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.No(d,[this.smartDownloadsDisabledVE]),_.Di(d,[this.smartDownloadsEnabledVE])))};
_.G.maybeLogSmartDownloadsSettingClick=function(){var d;((d=this.data)==null?void 0:d.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.xR(_.hR(),this.activeVeForLogging)};
_.G.updateDataEnabledFromBinding=function(d){this.set("data.enabled",d.detail.value)};
_.H3.Object.defineProperties(HJ.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var d=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!d&&(d=this.ytRendererBehavior.getSimpleString(this.data.title));return d}}});
HJ.prototype.dataChanged=HJ.prototype.dataChanged;_.t([_.u(_.to),_.O("design:type",Object)],HJ.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],HJ.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],HJ.prototype,"ytComponentBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],HJ.prototype,"data",void 0);_.t([_.r({selector:function(d,H){if(Object.keys(d==null?void 0:d.entities).length)switch(H){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return STh(d.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.O("design:type",Object)],HJ.prototype,"booleanSettingById",void 0);_.t([_.r(),_.O("design:type",JP)],HJ.prototype,"activeVeForLogging",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],HJ.prototype,"toggleAriaLabel",null);_.t([_.Mr("data"),_.Mr("booleanSettingById"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],HJ.prototype,"dataChanged",null);
_.t([_.Z({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],HJ);
_.T(HJ,"ytd-settings-switch-renderer",function(){if(gTC!==void 0)return gTC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-switch-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-toggle-button id="toggle" aria-label$="[[toggleAriaLabel]]" checked="[[data.enabled]]" noink="" on-change="onSwitchChange" on-checked-changed="updateDataEnabledFromBinding" class="style-scope ytd-settings-switch-renderer">\n  <div id="toggle-container" class="style-scope ytd-settings-switch-renderer"></div>\n</tp-yt-paper-toggle-button>\n<div class="style-scope ytd-settings-switch-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  <div id="icon" hidden="[[!data.thumbnail]]" class="style-scope ytd-settings-switch-renderer">\n    <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-settings-switch-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return gTC=d},{mode:1});var $e=function(){return _.B.apply(this,arguments)||this};
_.m($e,_.B);$e.prototype.configureRendererStamper=function(){return{"data.settings":{id:"settings",mapping:{settingsSwitchRenderer:{component:"ytd-settings-switch-renderer",noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{minorMomentSettingAlertRenderer:{component:"ytd-minor-moment-setting-alert-renderer",noInjection:!0}}}}};
_.H3.Object.defineProperties($e.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var d=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(d+=" remove-left-margin");this.data.extraBottomSpace&&(d+=" extra-bottom-space");return d}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],$e.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],$e.prototype,"data",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],$e.prototype,"contentsClassName",null);_.t([_.Z({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],$e);
_.T($e,"ytd-minor-moment-setting-section-renderer",function(){if(pPl!==void 0)return pPl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class$="[[contentsClassName]] style-scope ytd-minor-moment-setting-section-renderer">\n  <div id="title" hidden="[[!data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="header" hidden="[[!data.header]]" text="[[data.header]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="summary" hidden="[[!data.summary]]" text="[[data.summary]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <div id="settings" hidden="[[!data.settings]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n  <div id="alerts" hidden="[[!data.alerts]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return pPl=d},{mode:1});var i$g;var KY=function(){return _.B.apply(this,arguments)||this};
_.m(KY,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],KY.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],KY.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],KY);
_.T(KY,"ytd-empty-product-details-renderer",function(){if(i$g!==void 0)return i$g;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-empty-product-details-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-empty-product-details-renderer"></yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return i$g=d},{mode:1});var Gq6;var oTl;var cJ=function(){var d=_.B.apply(this,arguments)||this;d.expanded=!0;return d};
_.m(cJ,_.B);cJ.prototype.getBadgeRowClass=function(d,H,K){for(var c=_.q(this.hostElement.querySelectorAll("yt-img-shadow")),p=c.next();!p.done;p=c.next())p.value.onShow();d=d.selected;return K?d!==-1?d===H?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(d!==void 0?d:0)===H?"badge-line":"badge-hidden"};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],cJ.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],cJ.prototype,"expanded",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],cJ);
_.T(cJ,"ytd-sponsorships-loyalty-badges-renderer",function(){if(oTl!==void 0)return oTl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-loyalty-badges-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="description-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <yt-formatted-string class="description style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div class="badge-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <template is="dom-repeat" items="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-loyalty-badges-renderer">\n    <div class$="[[getBadgeRowClass(data, index, expanded)]] style-scope ytd-sponsorships-loyalty-badges-renderer">\n      <div class="badge-title-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-formatted-string class="badge-title style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[item.sponsorshipsLoyaltyBadgeRenderer.title]]">\n        </yt-formatted-string>\n      </div>\n      <div class="icon-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-img-shadow class="badge-icon style-scope ytd-sponsorships-loyalty-badges-renderer" thumbnail="[[item.sponsorshipsLoyaltyBadgeRenderer.icon]]">\n        </yt-img-shadow>\n      </div>\n    </div>\n  </template>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return oTl=d},{mode:1});var q1S;var pY=function(){var d=_.B.apply(this,arguments)||this;d.expanded=!0;return d};
_.m(pY,_.B);pY.prototype.getContainerClasses=function(d,H){d=d?"expanded":"collapsed";H&&(d+=" item");return d};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],pY.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],pY.prototype,"expanded",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],pY);
_.T(pY,"ytd-sponsorships-perk-renderer",function(){if(q1S!==void 0)return q1S;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perk-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[getContainerClasses(expanded, data.title)]] style-scope ytd-sponsorships-perk-renderer">\n  <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n  <div id="expandable" hidden$="[[!expanded]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <template is="dom-if" if="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n    <template is="dom-if" if="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div id="fulfillment-instructions" class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string split-lines="1" text="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n  </div>\n  <template is="dom-if" if="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <ytd-sponsorships-loyalty-badges-renderer data="[[data.loyaltyBadges.sponsorshipsLoyaltyBadgesRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></ytd-sponsorships-loyalty-badges-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <div id="images-line" class="style-scope ytd-sponsorships-perk-renderer">\n      <yt-formatted-string id="image-description" text="[[data.imageDescription]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string>\n      <template is="dom-if" if="[[data.images]]" class="style-scope ytd-sponsorships-perk-renderer">\n        <template is="dom-repeat" items="[[data.images]]" as="image" class="style-scope ytd-sponsorships-perk-renderer">\n          <yt-img-shadow class="images style-scope ytd-sponsorships-perk-renderer" thumbnail="[[image]]"></yt-img-shadow>\n        </template>\n      </template>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.loyaltyMessage]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <yt-live-chat-membership-item-renderer data="[[data.loyaltyMessage.liveChatMembershipItemRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-live-chat-membership-item-renderer>\n  </template>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return q1S=d},{mode:1});var aPN;var gJ=function(){var d=_.B.apply(this,arguments)||this;d.expanded=!0;return d};
_.m(gJ,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],gJ.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],gJ.prototype,"expanded",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],gJ);
_.T(gJ,"ytd-sponsorships-perks-renderer",function(){if(aPN!==void 0)return aPN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="perks-title" hidden="[[!data.perksTitle]]" text="[[data.perksTitle]]" class="style-scope ytd-sponsorships-perks-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.perks]]" class="style-scope ytd-sponsorships-perks-renderer">\n  <div class="item style-scope ytd-sponsorships-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perks-renderer">\n    </ytd-sponsorships-perk-renderer>\n  </div>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return aPN=d},{mode:1});var i6=function(){var d=_.B.apply(this,arguments)||this;d.isCollapsed=!1;return d};
_.m(i6,_.B);i6.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
i6.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
i6.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var d;this.expandCollapseButton=_.M((d=this.data)==null?void 0:d.expandButton,_.Tz)}else{var H;this.expandCollapseButton=_.M((H=this.data)==null?void 0:H.collapseButton,_.Tz)}};
i6.prototype.updateExpandCollapseButton=i6.prototype.updateExpandCollapseButton;i6.prototype.onDataChanged=i6.prototype.onDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],i6.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],i6.prototype,"isCollapsed",void 0);_.t([_.r(),_.O("design:type",Object)],i6.prototype,"expandCollapseButton",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],i6.prototype,"onDataChanged",null);_.t([_.Mr("data","isCollapsed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],i6.prototype,"updateExpandCollapseButton",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],i6);
_.T(i6,"ytd-sponsorships-expandable-perks-renderer",function(){if(Gq6!==void 0)return Gq6;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="badged-title style-scope ytd-sponsorships-expandable-perks-renderer">\n  <yt-img-shadow thumbnail="[[data.badge]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-img-shadow>\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string class="subtitle style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n<hr class="style-scope ytd-sponsorships-expandable-perks-renderer">\n<yt-formatted-string class="expandable-heading style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.expandableHeader]]"></yt-formatted-string>\n<ytd-button-renderer class="end-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.endButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="bottom-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.bottomButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="expand-collapse-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[expandCollapseButton]]" noink="" on-click="onExpandCollapse"></ytd-button-renderer>\n\n<div class="expandable-content style-scope ytd-sponsorships-expandable-perks-renderer">\n  <template is="dom-repeat" items="[[data.expandableItems]]" as="item" class="style-scope ytd-sponsorships-expandable-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></ytd-sponsorships-perk-renderer>\n  </template>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Gq6=d},{mode:1});var lPC;var GU=function(){return _.B.apply(this,arguments)||this};
_.m(GU,_.B);GU.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],GU.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],GU.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],GU);
_.T(GU,"ytd-sponsorships-actionable-message-renderer",function(){if(lPC!==void 0)return lPC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-actionable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<button on-click="handleAction" class="style-scope ytd-sponsorships-actionable-message-renderer">\n  <yt-img-shadow id="icon" height="24" thumbnail="[[data.icon]]" width="24" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-formatted-string>\n</button>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return lPC=d},{mode:1});var eNX;var oU=function(){return _.B.apply(this,arguments)||this};
_.m(oU,_.B);_.G=oU.prototype;_.G.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.G.getExpansionIcon=function(d){return d?"COLLAPSE":"EXPAND"};
_.G.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.G.computeMessageContainerStyle=function(d){var H=d.expandableItems?" style-clickable":"";return d.messageContainerStyle?d.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+H:"style-unspecified"+H};
_.G.isSinglePerk=function(d){return!!d.messageContainerStyle&&(d.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||d.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.G.onExpandedChanged=function(){var d=this;if(this.expanded)for(var H=_.q(this.hostElement.querySelectorAll("yt-img-shadow")),K=H.next();!K.done;K=H.next())K.value.onShow();_.vV(this,function(){_.GT(d.hostElement,"yt-refit")})};
_.G.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
oU.prototype.onDataChanged=oU.prototype.onDataChanged;oU.prototype.onExpandedChanged=oU.prototype.onExpandedChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],oU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],oU.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],oU.prototype,"expanded",void 0);
_.t([_.CK("expanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oU.prototype,"onExpandedChanged",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oU.prototype,"onDataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],oU);
_.T(oU,"ytd-sponsorships-expandable-message-renderer",function(){if(eNX!==void 0)return eNX;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class$="[[computeMessageContainerStyle(data)]] style-scope ytd-sponsorships-expandable-message-renderer">\n  <button id="message-container" on-tap="onToggleExpand" class="style-scope ytd-sponsorships-expandable-message-renderer">\n    <template is="dom-if" if="[[isSinglePerk(data)]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="check-icon" icon="yt-icons:check" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n    <yt-formatted-string class="text style-scope ytd-sponsorships-expandable-message-renderer" text="[[data.text]]"></yt-formatted-string>\n    <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="expand-icon" icon="[[getExpansionIcon(expanded)]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n  </button>\n  <div id="content-container" hidden="[[!expanded]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return eNX=d},{mode:_.qk("kevlar_poly_si_batch_j028")?1:2});var kq6;var qb=function(){return _.B.apply(this,arguments)||this};
_.m(qb,_.B);qb.prototype.configureRendererStamper=function(){return{"data.endButton":{id:"end-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.bottomButton":{id:"bottom-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
qb.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.M(this.data.endButton,_.Tz).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
qb.prototype.onDataChanged=qb.prototype.onDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],qb.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],qb.prototype,"data",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qb.prototype,"onDataChanged",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],qb);
_.T(qb,"ytd-sponsorships-heading-renderer",function(){if(kq6!==void 0)return kq6;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-heading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-heading-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  <div id="subtitle-content" hidden="[[!data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer">\n    <yt-img-shadow id="subtitle-icon" hidden="[[!data.subtitleIcon]]" thumbnail="[[data.subtitleIcon]]" class="style-scope ytd-sponsorships-heading-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  </div>\n  <div id="bottom-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n</div>\n<div id="end-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return kq6=d},{mode:1});var xyC;var aU=function(){return _.B.apply(this,arguments)||this};
_.m(aU,_.B);_.t([_.r(),_.O("design:type",Object)],aU.prototype,"data",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],aU);
_.T(aU,"ytd-sponsorships-links-renderer",function(){if(xyC!==void 0)return xyC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-links-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-sponsorships-links-renderer">\n  <yt-formatted-string class="link style-scope ytd-sponsorships-links-renderer" link-inherit-color="" text="[[item]]">\n</yt-formatted-string></template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return xyC=d},{mode:1});var nT3;var l6=function(){return _.B.apply(this,arguments)||this};
_.m(l6,_.B);_.G=l6.prototype;_.G.onDataChanged=function(){if(this.data&&this.data.expandableItems){var d;(d=_.Gn(this.hostElement).querySelector("tp-yt-paper-button"))==null||d.setAttribute("role","button")}else{var H;(H=_.Gn(this.hostElement).querySelector("tp-yt-paper-button"))==null||H.removeAttribute("role")}};
_.G.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.G.getExpansionIcon=function(d){return d?"COLLAPSE":"EXPAND"};
_.G.getTileClasses=function(d){return d?"tile expandable-tile":"tile"};
_.G.getButtonDisabled=function(d){return d?void 0:""};
l6.prototype.onDataChanged=l6.prototype.onDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],l6.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],l6.prototype,"expanded",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],l6.prototype,"onDataChanged",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],l6);
_.T(l6,"ytd-sponsorships-list-tile-renderer",function(){if(nT3!==void 0)return nT3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-list-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="tile" class="tile style-scope ytd-sponsorships-list-tile-renderer" class$="[[getTileClasses(data.expandableItems)]]" disabled$="[[getButtonDisabled(data.expandableItems)]]" noink="" on-tap="onToggleExpand">\n  <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[data.icon]]"></yt-img-shadow>\n  <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n    <yt-formatted-string class="detail style-scope ytd-sponsorships-list-tile-renderer" text="[[data.detail]]"></yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-list-tile-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </template>\n</tp-yt-paper-button>\n\n<template is="dom-if" if="[[expanded]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n  <div class="tiles-container style-scope ytd-sponsorships-list-tile-renderer">\n    <template is="dom-repeat" items="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n      <template is="dom-if" if="[[item.sponsorshipsLoyaltyBadgesRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <ytd-sponsorships-loyalty-badges-renderer class="sponsorships-loyalty-badges-renderer style-scope ytd-sponsorships-list-tile-renderer" data="[[item.sponsorshipsLoyaltyBadgesRenderer]]"></ytd-sponsorships-loyalty-badges-renderer>\n      </template>\n      <template is="dom-if" if="[[item.sponsorshipsListTileRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <div class="tile style-scope ytd-sponsorships-list-tile-renderer">\n          <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[item.sponsorshipsListTileRenderer.icon]]">\n          </yt-img-shadow>\n          <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.subtitle]]">\n            </yt-formatted-string>\n          </div>\n        </div>\n      </template>\n    </template>\n  </div>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return nT3=d},{mode:1});var Cp6;var RN3;var eI=function(){return _.B.apply(this,arguments)||this};
_.m(eI,_.B);eI.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],eI.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],eI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],eI.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],eI);
_.T(eI,"ytd-sponsorships-promotion-renderer",function(){if(RN3!==void 0)return RN3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-promotion-renderer">\n  <div id="above-button" class="style-scope ytd-sponsorships-promotion-renderer">\n    <yt-formatted-string class="above-redeem-button-text style-scope ytd-sponsorships-promotion-renderer" text="[[data.aboveRedeemButtonText]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-promotion-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n  <div id="redeem-button" class="style-scope ytd-sponsorships-promotion-renderer"></div>\n  <yt-formatted-string class="redeem-disclaimer style-scope ytd-sponsorships-promotion-renderer" split-lines="true" text="[[data.redeemDisclaimer]]"></yt-formatted-string>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return RN3=d},{mode:1});var V_d;var ke=function(){return _.B.apply(this,arguments)||this};
_.m(ke,_.B);ke.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ke.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],ke);
_.T(ke,"ytd-sponsorships-purchase-option-renderer",function(){if(V_d!==void 0)return V_d;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-purchase-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-purchase-option-renderer">\n  <div id="purchase-info" class="style-scope ytd-sponsorships-purchase-option-renderer">\n    <div id="header" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      <yt-formatted-string class="purchase-text style-scope ytd-sponsorships-purchase-option-renderer" text="[[data.text]]"></yt-formatted-string>\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-purchase-option-renderer" split-lines="true" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div id="purchase-button" class="style-scope ytd-sponsorships-purchase-option-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return V_d=d},{mode:1});var Uy3;var hNX;var L4B=function(){return _.B.apply(this,arguments)||this};
_.m(L4B,_.B);_.t([_.r(),_.O("design:type",Object)],L4B.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],L4B);
_.T(L4B,"ytd-ypc-offer-promo-renderer",function(){if(hNX!==void 0)return hNX;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offer-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ypc-offer-promo-renderer">\n  <yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-ypc-offer-promo-renderer"></yt-icon>\n  <div id="benefit-info" class="style-scope ytd-ypc-offer-promo-renderer">\n    <div id="header" class="style-scope ytd-ypc-offer-promo-renderer">\n      <yt-formatted-string class="title style-scope ytd-ypc-offer-promo-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </div>\n    <div id="badge-section" class="style-scope ytd-ypc-offer-promo-renderer">\n      <ytd-badge-supported-renderer id="badge" top-standalone-badge="[[data.badge]]" class="style-scope ytd-ypc-offer-promo-renderer">\n        </ytd-badge-supported-renderer>\n    <yt-formatted-string class="subtitle style-scope ytd-ypc-offer-promo-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n    </div>\n  </div>\n</div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return hNX=d},{mode:1});var xe=function(){return _.B.apply(this,arguments)||this};
_.m(xe,_.B);_.G=xe.prototype;
_.G.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.expandableMessage":{id:"expandable-message",mapping:{sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.purchaseOption":{id:"purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},"data.alternativePurchaseOption":{id:"alternative-purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},
"data.offerPromoCard":{id:"offer-promo",mapping:{ypcOfferPromoRenderer:{component:"ytd-ypc-offer-promo-renderer"}}}}};
_.G.expansionCTA=function(d,H){return d&&(H?d.collapseCallToAction:d.expansionCallToAction)};
_.G.getExpansionIcon=function(d){return d?"COLLAPSE":"EXPAND"};
_.G.expansionCallToActionTap=function(){var d=this;this.expanded=!this.expanded;_.vV(this,function(){_.GT(d.hostElement,"yt-refit")})};
_.G.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var d,H=(d=this.data)==null?void 0:d.onVisible;H&&this.ytComponentBehavior.resolveCommand(H)};
_.G.computeDisplayTitle=function(d){return!(!d||this.titledisplaystatus!=="show")};
_.G.computeDisplaySeparator=function(){return!1};
_.G.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
xe.prototype.onDataChanged=xe.prototype.onDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],xe.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],xe.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],xe.prototype,"data",void 0);
_.t([_.r({value:!1}),_.O("design:type",Boolean)],xe.prototype,"expanded",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],xe.prototype,"purchaseButtonClicked",void 0);_.t([_.r({reflectToAttribute:!0,value:"show"}),_.O("design:type",String)],xe.prototype,"titledisplaystatus",void 0);_.t([_.r({computed:"computeDisplayTitle(data.title)"}),_.O("design:type",Boolean)],xe.prototype,"displayTitle",void 0);
_.t([_.r({computed:"computeDisplaySeparator(data)"}),_.O("design:type",Boolean)],xe.prototype,"displaySeparator",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xe.prototype,"onDataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],xe);
_.T(xe,"ytd-sponsorships-tier-renderer",function(){if(Uy3!==void 0)return Uy3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-tier-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="title" hidden="[[!displayTitle]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n</div>\n<div id="offer-promo" hidden="[[!data.offerPromoCard]]" class="style-scope ytd-sponsorships-tier-renderer">\n</div>\n<div id="purchase-with-options" hidden="[[!data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!data.alternativePurchaseOption]]"></div>\n  <div id="alternative-purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n</div>\n<div id="default-purchase-view" hidden="[[data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="above-purchase-button" hidden="[[!data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string id="above-purchase-button-text" text="[[data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-formatted-string id="above-purchase-button-text-subtitle" class="subtitle style-scope ytd-sponsorships-tier-renderer" text="[[data.abovePurchaseButtonTextSubtitle]]"></yt-formatted-string>\n  </div>\n  <div id="premium-freebie-promo" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n  <div id="header" class="style-scope ytd-sponsorships-tier-renderer">\n    <div id="purchase-button" on-tap="onPurchaseButtonTap" class="style-scope ytd-sponsorships-tier-renderer"></div>\n    \n    <yt-formatted-string id="purchase-text" force-default-style="" hidden="[[!data.purchaseText]]" text="[[data.purchaseText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.disclaimer]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n<div id="expandable-message" class="style-scope ytd-sponsorships-tier-renderer"></div>\n<div id="content" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="perks_section" class="style-scope ytd-sponsorships-tier-renderer">\n    <ytd-sponsorships-perks-renderer id="perks" data="[[data.perks.sponsorshipsPerksRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-tier-renderer"></ytd-sponsorships-perks-renderer>\n  </div>\n  <button id="expansion_call_to_action" on-tap="expansionCallToActionTap" hidden="[[!data.expansionCallToAction]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string text="[[expansionCTA(data, expanded)]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-tier-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </button>\n</div>\n<div id="footer" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string id="bottom-disclaimer" class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.bottomDisclaimer]]">\n  </yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Uy3=d},{mode:2});var nY=function(){return _.B.apply(this,arguments)||this};
_.m(nY,_.B);
nY.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],nY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],nY.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],nY);
_.T(nY,"ytd-sponsorships-management-renderer",function(){if(Cp6!==void 0)return Cp6;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-management-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-renderer" class="style-scope ytd-sponsorships-management-renderer"></div>\n<div id="main-section" class="style-scope ytd-sponsorships-management-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-management-renderer"></div>\n  <div id="sidebar" class="style-scope ytd-sponsorships-management-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Cp6=d},{mode:1});var M_3;var CY=function(){return _.B.apply(this,arguments)||this};
_.m(CY,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],CY.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],CY);
_.T(CY,"ytd-open-in-native-app-view-model",function(){if(M_3!==void 0)return M_3;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-open-in-native-app-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-image id="image" data="[[data.image]]" ftl-eligible="" height="162" width="200" class="style-scope ytd-open-in-native-app-view-model">\n</yt-image>\n<yt-attributed-string id="text" data="[[data.detailsText]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-attributed-string id="link" data="[[data.learnMoreLink]]" force-default-style="" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return M_3=d},{mode:_.qk("kevlar_poly_si_batch_j028")?1:2});var my6;var wP0;var Pp0=_.y$(["top-"]),uSX=_.y$(["bottom-"]),IPd=_.y$(["left-"]),rxd=_.y$(["right-"]),W4S={},B3M=function(d,H,K){d.removeAttribute("top-"+K);d.removeAttribute("bottom-"+K);d.removeAttribute("left-"+K);d.removeAttribute("right-"+K);H&&(H.top&&_.jE([_.KB(Pp0)],d,"top-"+K,H.top),H.bottom&&_.jE([_.KB(uSX)],d,"bottom-"+K,H.bottom),H.left&&_.jE([_.KB(IPd)],d,"left-"+K,H.left),H.right&&_.jE([_.KB(rxd)],d,"right-"+K,H.right))};
W4S.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(d){var H,K=_.Gn((H=this.hostElement)!=null?H:this),c;H=this.cardItemBoxBehaviorMarginTargetId&&K?K.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(c=this.hostElement)!=null?c:this;B3M(H,d,"margin")},
cardItemContainerPaddingChanged_:function(d){var H,K=_.Gn((H=this.hostElement)!=null?H:this),c;H=this.cardItemBoxBehaviorPaddingTargetId&&K?K.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(c=this.hostElement)!=null?c:this;B3M(H,d,"padding")}}];var RU={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-brand-icon-active)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-brand-icon-inactive)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var zN3;var XPN;var Vf=function(){return _.B.apply(this,arguments)||this};
_.m(Vf,_.B);Vf.prototype.textColorChanged_=function(){this.hostElement.style.color=RU[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Vf.prototype.textColorChanged_=Vf.prototype.textColorChanged_;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Vf.prototype,"ytRendererBehavior",void 0);_.t([_.u(W4S.YtCardItemBoxBehavior),_.O("design:type",Object)],Vf.prototype,"ytCardItemBoxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Vf.prototype,"data",void 0);_.t([_.CK("data.textColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vf.prototype,"textColorChanged_",null);
_.t([_.ZV({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Vf);
_.T(Vf,"yt-card-item-text-renderer",function(){if(XPN===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_renderer.yt.card.item.text.renderer.css.js--\x3e<yt-formatted-string id="card-text" force-default-style="" split-lines="1" text="[[data.text]]" text-style$="[[data.style]]" class="style-scope yt-card-item-text-renderer">\n</yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;zN3===void 0&&(zN3=document.createElement("template"));var c=zN3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);XPN=d}d=XPN;return d},{mode:2});var Jx3;var s0A;var Ur=function(){return _.B.apply(this,arguments)||this};
_.m(Ur,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ur.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ur.prototype,"data",void 0);_.t([_.ZV({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Ur);
_.T(Ur,"yt-card-item-badge-renderer",function(){if(s0A===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_badge_renderer.yt.card.item.badge.renderer.css.js--\x3e<div id="card-block" class="style-scope yt-card-item-badge-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden$="[[!data.badges]]" class="style-scope yt-card-item-badge-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" split-lines="1" text="[[data.text]]" class="style-scope yt-card-item-badge-renderer">\n  </yt-formatted-string>\n</div>\n\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;Jx3===void 0&&(Jx3=document.createElement("template"));var c=Jx3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);s0A=d}d=s0A;return d},{mode:2});var F43;var Z$N;var hd=function(){return _.B.apply(this,arguments)||this};
_.m(hd,_.B);hd.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],hd.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],hd.prototype,"data",void 0);_.t([_.ZV({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],hd);
_.T(hd,"yt-card-item-text-collection-renderer",function(){if(Z$N===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-collection-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_collection_renderer.yt.card.item.text.collection.renderer.css.js--\x3e<div id="text-renderers" text-alignment$="[[data.textAlignment]]" class="style-scope yt-card-item-text-collection-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;F43===void 0&&(F43=document.createElement("template"));var c=F43;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Z$N=d}d=Z$N;return d},{mode:2});var T37;var Q0g;var LY=function(){return _.B.apply(this,arguments)||this};
_.m(LY,_.B);LY.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],LY.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],LY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],LY.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Number)],LY.prototype,"iconSize",void 0);_.t([_.ZV({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],LY);
_.T(LY,"yt-card-item-text-with-button-renderer",function(){if(Q0g===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_button_renderer.yt.card.item.text.with.button.renderer.css.js--\x3e<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-button-renderer"></div>\n<div id="primary-button" aria-hidden="true" class="style-scope yt-card-item-text-with-button-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;T37===void 0&&(T37=document.createElement("template"));var c=T37;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Q0g=d}d=Q0g;return d},{mode:2});var Mb=function(){return _.B.apply(this,arguments)||this};
_.m(Mb,_.B);Mb.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Mb.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Mb.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],Mb);
_.T(Mb,"ytd-commerce-cart-summary-line-item-renderer",function(){if(wP0!==void 0)return wP0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-line-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="summary-content" class="style-scope ytd-commerce-cart-summary-line-item-renderer">\n  <div id="summary-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n  <div id="additional-metadata-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n</div>\n<div id="price" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return wP0=d},{mode:1});_.XX("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var mz=function(){var d=_.B.apply(this,arguments)||this;d.hidden=!1;return d};
_.m(mz,_.B);_.G=mz.prototype;_.G.configureRendererStamper=function(){return{"data.estimatedTotalLineItem":{id:"estimated-total-line-item",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.cartButton":{id:"cart-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.G.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.G.updateSummary=function(){var d=this.commerceCartCheckoutButtonEntity,H;if(((H=this.data)==null?0:H.cartButton)&&d.checkoutSummaryText){var K,c=rE((K=this.data)==null?void 0:K.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+c+".cardItemTextRenderer.text",WK(d.checkoutSummaryText));if(d.checkoutDetailText){var p;K=rE((p=this.data)==null?void 0:p.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+K+".cardItemTextRenderer.text",WK(d.checkoutDetailText))}if(d.checkoutAdditionalMetadataText){var g;
p=rE((g=this.data)==null?void 0:g.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+p+".cardItemTextRenderer.text",WK(d.checkoutAdditionalMetadataText))}}else d.estimatedTotalPrice&&(g=rE((c=this.data)==null?void 0:c.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+g+".cardItemTextRenderer.text",WK(d.estimatedTotalPrice)))};
_.G.updateIsHidden=function(){var d,H=(d=this.commerceCartCheckoutButtonEntity)==null?void 0:d.isHidden;H!==void 0&&(this.hidden=H)};
_.G.updateCheckoutButton=function(){var d,H=(d=this.commerceCartCheckoutButtonEntity)==null?void 0:d.isDisabled;H!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",H);var K;d=(K=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:K.innertubeCommand;d!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",d);var c;K=(c=this.commerceCartCheckoutButtonEntity)==null?void 0:c.checkoutButtonText;K!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:K})};
mz.prototype.entityChanged=mz.prototype.entityChanged;_.t([_.u(_.to),_.O("design:type",Object)],mz.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],mz.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],mz.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],mz.prototype,"fullWidth",void 0);_.t([_.r(),_.O("design:type",Object)],mz.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],mz.prototype,"compact",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],mz.prototype,"hidden",void 0);
_.t([_.r({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Yyf}),_.O("design:type",Object)],mz.prototype,"commerceCartCheckoutButtonEntity",void 0);_.t([_.CK("commerceCartCheckoutButtonEntity","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mz.prototype,"entityChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],mz);
_.T(mz,"ytd-commerce-cart-checkout-button-renderer",function(){if(my6!==void 0)return my6;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-checkout-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="estimated-total-line-item" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="cart-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return my6=d},{mode:2});var t_7;_.Y1S={};
_.Y1S.YtTappableItemBehavior=[{properties:{tappableItemBehaviorTapEnabled:{type:Boolean,value:!1,observer:"tappableItemBehaviorOnTapEnabledChanged_"}},observers:["tappableItemBehaviorOnTapChanged_(data.onTap)"],listeners:{"yt-commerce-action-init-done":"tappableItemBehaviorOnServiceRequestFinished_","yt-service-request-error":"tappableItemBehaviorOnServiceRequestFinished_","yt-commerce-action-done":"tappableItemBehaviorOnServiceRequestFinished_"},created:function(){this.tappableItemBehaviorTargetId="";
this.tappableItemBehaviorBoundOnTappableItemKeyDown_=this.tappableItemBehaviorOnTappableItemKeyDown_.bind(this);this.tappableItemBehaviorBoundOnTappableItemTap_=this.tappableItemBehaviorOnTappableItemTap_.bind(this)},
attached:function(){this.tappableItemBehaviorGetTappableTarget_().addEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().addEventListener("click",_.xf(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.xf(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(d){!this.tappableItemBehaviorTapEnabled||d.keyCode!==13&&d.keyCode!==32||d.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var d=this.data.onTap;d.ypcGetCartEndpoint?(_.aF(this.hostElement,[d]),this.tappableItemBehaviorTapEnabled=!1):d.ypcOffersEndpoint?_.aF(this.hostElement,[d]):_.l5(this.hostElement,[d],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(d){this.tappableItemBehaviorTapEnabled=!!d},
tappableItemBehaviorOnTapEnabledChanged_:function(){var d=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(d.setAttribute("tabIndex",0),d.setAttribute("role","button")):(d.removeAttribute("tabIndex"),d.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(d){d.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var O$U;var S16;var wJ=function(){return _.B.apply(this,arguments)||this};
_.m(wJ,_.B);wJ.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Ju("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Ju("sharingToggleButtonAndDefaultButton")}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],wJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],wJ.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],wJ.prototype,"data",void 0);_.t([_.ZV({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],wJ);
_.T(wJ,"yt-card-item-actions-renderer",function(){if(S16===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_actions_renderer.yt.card.item.actions.renderer.css.js--\x3e<div id="secondary-button-renderer" hidden$="[[!data.secondaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n<div id="primary-button-renderer" hidden$="[[!data.primaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;O$U===void 0&&(O$U=document.createElement("template"));var c=O$U;K.call(H,c.content.cloneNode(!0),d.content.firstChild);S16=d}d=S16;return d},{mode:2});var ETl;var yx7;var b$C;var N3C;var DyN;var fP6;var PJ=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return d};
_.m(PJ,_.B);PJ.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
PJ.prototype.handleDarkModeToggledAction_=function(d){this.isDarkTheme_=d};
PJ.prototype.computeThemeImage_=function(d,H){if(!d||!d.imageLight)return!1;this.isCircular_=d.isCircular;d.imageWidth&&(this.hostElement.style.width=d.imageWidth+"px");d.imageHeight&&(this.hostElement.style.height=d.imageHeight+"px");d.borderWidth&&(this.image.style.borderWidth=d.borderWidth+"px",this.image.style.borderStyle="solid");d.borderColor&&(this.image.style.borderColor=_.Ob(d.borderColor));return H&&d.imageDark?d.imageDark:d.imageLight};
PJ.prototype.computeThemeIcon_=function(d){var H,K;if(!(d==null?0:(H=d.themedIcon)==null?0:(K=H.icon)==null?0:K.iconType))return!1;this.icon.style.color=RU[d.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(d.imageWidth||18)+"px";this.icon.style.height=(d.imageHeight||18)+"px";return _.kv(d.themedIcon.icon.iconType)};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],PJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(W4S.YtCardItemBoxBehavior),_.O("design:type",Object)],PJ.prototype,"ytCardItemBoxBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],PJ.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],PJ.prototype,"data",void 0);
_.t([_.r({value:!1}),_.O("design:type",Boolean)],PJ.prototype,"fit",void 0);_.t([_.r(),_.O("design:type",Boolean)],PJ.prototype,"isDarkTheme_",void 0);_.t([_.r({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.O("design:type",Object)],PJ.prototype,"themeImage_",void 0);_.t([_.r({computed:"computeThemeIcon_(data)"}),_.O("design:type",Object)],PJ.prototype,"themeIcon_",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Object)],PJ.prototype,"isCircular_",void 0);
_.t([_.VP("#image"),_.O("design:type",Object)],PJ.prototype,"image",void 0);_.t([_.VP("#icon"),_.O("design:type",Object)],PJ.prototype,"icon",void 0);_.t([_.ZV({is:"yt-themed-image-renderer",disableElementRegistration:!0})],PJ);
_.T(PJ,"yt-themed-image-renderer",function(){if(fP6===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-themed-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_themed_image_renderer.yt.themed.image.renderer.css.js--\x3e<yt-img-shadow id="image" fit="[[fit]]" height="[[data.imageHeight]]" hidden="[[!themeImage_]]" thumbnail="[[themeImage_]]" width="[[data.imageWidth]]" class="style-scope yt-themed-image-renderer">\n</yt-img-shadow>\n<yt-icon id="icon" hidden="[[!themeIcon_]]" icon="[[themeIcon_]]" class="style-scope yt-themed-image-renderer">\n</yt-icon>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;DyN===void 0&&(DyN=document.createElement("template"));var c=DyN;K.call(H,c.content.cloneNode(!0),d.content.firstChild);fP6=d}d=fP6;return d},{mode:2});var u6=function(){return _.B.apply(this,arguments)||this};
_.m(u6,_.B);u6.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"themed-image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}},"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
u6.prototype.computeImagePlacement_=function(d){return d||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],u6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],u6.prototype,"data",void 0);_.t([_.r({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.O("design:type",String)],u6.prototype,"imagePlacement",void 0);
_.t([_.ZV({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],u6);
_.T(u6,"yt-card-item-text-with-image-renderer",function(){if(N3C===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_image_renderer.yt.card.item.text.with.image.renderer.css.js--\x3e<div id="themed-image-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;b$C===void 0&&(b$C=document.createElement("template"));var c=b$C;K.call(H,c.content.cloneNode(!0),d.content.firstChild);N3C=d}d=N3C;return d},{mode:2});var IU=function(){return _.B.apply(this,arguments)||this};
_.m(IU,_.B);IU.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],IU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],IU.prototype,"data",void 0);_.t([_.ZV({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],IU);
_.T(IU,"yt-card-item-error-renderer",function(){if(yx7===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-error-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_error_renderer.yt.card.item.error.renderer.css.js--\x3e<div id="triangle-up-container" class="style-scope yt-card-item-error-renderer">\n  <div id="triangle-up" class="style-scope yt-card-item-error-renderer"></div>\n</div>\n<div id="error-text-renderer" class="style-scope yt-card-item-error-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;ETl===void 0&&(ETl=document.createElement("template"));var c=ETl;K.call(H,c.content.cloneNode(!0),d.content.firstChild);yx7=d}d=yx7;return d},{mode:2});var AxS;var j0M;_.XX("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var rJ=function(){return _.B.apply(this,arguments)||this};
_.m(rJ,_.B);_.G=rJ.prototype;
_.G.configureRendererStamper=function(){return{"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",
mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"},cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},themedImageRenderer:{component:"yt-themed-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}},"data.errorRenderer":{id:"error-renderer",mapping:{cardItemErrorRenderer:{component:"yt-card-item-error-renderer"}}},"data.headerPromoRenderer":{id:"header-promo-renderer",
mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.footerRenderer":{id:"footer-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.G.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.G.backgroundColorChanged_=function(){var d,H=(d=this.data)==null?void 0:d.backgroundColor;d=RU[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Gn(this.hostElement).querySelector("#main-content").style.backgroundColor=d};
_.G.headerPromoBackgroundColorChanged_=function(){var d,H=(d=this.data)==null?void 0:d.headerPromoBackgroundColor;d=RU[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Gn(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=d};
_.G.errorRendererVisibilityChanged_=function(){var d=this.isExpanded_,H;this.isErrorRendererVisible_=!((H=this.data)==null||!H.errorRenderer)&&!d};
_.G.onYtToggleButton_=function(d,H){this.isExpanded_=H.toggled};
rJ.prototype.onYtToggleButton_=rJ.prototype.onYtToggleButton_;rJ.prototype.errorRendererVisibilityChanged_=rJ.prototype.errorRendererVisibilityChanged_;rJ.prototype.headerPromoBackgroundColorChanged_=rJ.prototype.headerPromoBackgroundColorChanged_;rJ.prototype.backgroundColorChanged_=rJ.prototype.backgroundColorChanged_;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],rJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(W4S.YtCardItemBoxBehavior),_.O("design:type",Object)],rJ.prototype,"ytCardItemBoxBehavior",void 0);_.t([_.u(_.Y1S.YtTappableItemBehavior),_.O("design:type",Object)],rJ.prototype,"ytTappableItemBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],rJ.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],rJ.prototype,"isExpanded_",void 0);
_.t([_.r({value:!1}),_.O("design:type",Boolean)],rJ.prototype,"isErrorRendererVisible_",void 0);_.t([_.CK("data.backgroundColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],rJ.prototype,"backgroundColorChanged_",null);_.t([_.CK("data.headerPromoBackgroundColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],rJ.prototype,"headerPromoBackgroundColorChanged_",null);
_.t([_.CK("data.errorRenderer","isExpanded_"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],rJ.prototype,"errorRendererVisibilityChanged_",null);_.t([_.nK("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[Event,Object]),_.O("design:returntype")],rJ.prototype,"onYtToggleButton_",null);_.t([_.ZV({is:"yt-card-item-renderer",disableElementRegistration:!0})],rJ);
_.T(rJ,"yt-card-item-renderer",function(){if(j0M===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_renderer.yt.card.item.renderer.css.js--\x3e<div id="main-content" primary-container-placement$="[[data.primaryContainerPlacement]]" box-style$="[[data.cardItemBoxStyle]]" aria-label="[[data.accessibilityData.label]]" class="style-scope yt-card-item-renderer">\n  <div id="main-content-negative-margin-wrapper" content-placement$="[[data.contentPlacement]]" class="style-scope yt-card-item-renderer">\n    <div id="heading-description-container" class="style-scope yt-card-item-renderer">\n       <div id="header-promo-container" class="style-scope yt-card-item-renderer">\n          <div id="heading-renderer" hidden$="[[!data.headingRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n          <div id="header-promo-renderer" hidden$="[[!data.headerPromoRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n      </div>\n      <div id="description-renderer" hidden$="[[!data.descriptionRenderer]]" class="style-scope yt-card-item-renderer">\n      </div>\n    </div>\n    <div id="additional-info-renderer" additional-info-placement$="[[data.additionalInfoPlacement]]" hidden$="[[!data.additionalInfoRenderer]]" class="style-scope yt-card-item-renderer">\n    </div>\n    <div id="footer-renderer" hidden$="[[!data.footerRenderer]]" class="style-scope yt-card-item-renderer"></div>\n  </div>\n</div>\n<div id="error-renderer" hidden$="[[!isErrorRendererVisible_]]" class="style-scope yt-card-item-renderer"></div>\n<div id="divider" divider-style$="[[data.dividerStyle]]" hidden$="[[!data.dividerStyle]]" class="style-scope yt-card-item-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;AxS===void 0&&(AxS=document.createElement("template"));var c=AxS;K.call(H,c.content.cloneNode(!0),d.content.firstChild);j0M=d}d=j0M;return d},{mode:2});_.XX("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var WJ=function(){var d=_.B.apply(this,arguments)||this;d.hidden=!1;return d};
_.m(WJ,_.B);_.G=WJ.prototype;_.G.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.G.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.G.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var d,H=(d=this.commerceCartHeaderEntity)==null?void 0:d.isHidden;H!==void 0&&(this.hidden=H)}};
_.G.updateTitle=function(){var d=this.commerceCartHeaderEntity.isDisabled,H,K,c=(K=_.M((H=this.data)==null?void 0:H.item,rTl))==null?void 0:K.headingRenderer;c&&(H=rE(c,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+H+".0.cardItemTextRenderer.textColor",d?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.G.updateSummaryText=function(){var d=this.commerceCartHeaderEntity;if(this.compact){var H,K,c=(K=_.M((H=this.data)==null?void 0:H.item,rTl))==null?void 0:K.headingRenderer;c&&(H=rE(c,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+H+".1.cardItemTextRenderer.text",d.shortHeaderSummaryText?WK(d.shortHeaderSummaryText):d.headerSummaryText?WK(d.headerSummaryText):""))}else{var p;if(H=(p=_.M((c=this.data)==null?void 0:c.item,rTl))==null?void 0:p.additionalInfoRenderer)H=rE(H,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+H+".text",d.headerSummaryText?WK(d.headerSummaryText):"")}};
_.G.updateCheckoutButton=function(){var d=this.commerceCartHeaderEntity,H,K,c=(K=_.M((H=this.data)==null?void 0:H.item,rTl))==null?void 0:K.additionalInfoRenderer;H=rE(c,"buttonRenderer");var p;K=(p=this.commerceCartHeaderEntity)==null?void 0:p.isButtonDisabled;var g;p=(g=this.commerceCartHeaderEntity)==null?void 0:g.isButtonHidden;K!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+H+".buttonRenderer.isDisabled",K);p!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
p);var a;d=(a=d.checkoutButtonCommand)==null?void 0:a.innertubeCommand;d!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+H+".buttonRenderer.command",d)};
WJ.prototype.entityChanged=WJ.prototype.entityChanged;_.t([_.u(_.to),_.O("design:type",Object)],WJ.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],WJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],WJ.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],WJ.prototype,"compact",void 0);_.t([_.r({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(d,H){return _.xL(d.entities,"commerceCartHeaderEntity",H)}}),
_.O("design:type",Object)],WJ.prototype,"commerceCartHeaderEntity",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],WJ.prototype,"hidden",void 0);_.t([_.CK("commerceCartHeaderEntity","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WJ.prototype,"entityChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],WJ);
_.T(WJ,"ytd-commerce-cart-header-renderer",function(){if(t_7!==void 0)return t_7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="item" class="style-scope ytd-commerce-cart-header-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return t_7=d},{mode:1});var vTB;var dK3=_.Rp(function(d,H){var K;return(K=d.onChangeCallback)==null?void 0:K.call(d,H)},1E3),Hi3=_.H1(function(d){var H=d.data;
var K=d.iconMinus;d=d.iconPlus;var c=function(){return!!H().disabled},p=_.q(_.GO(0,void 0,"r56zNb")),g=p.next().value,a=p.next().value;
p={};p=_.xM("yt-spec-quantity-incrementer-shape__icon",(p["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return c()||g()===(H().onRemoveCommand?0:1)},p));
var e={};e=_.xM("yt-spec-quantity-incrementer-shape__icon",(e["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return g()>=H().maxValue||c()},e));
var k={};k=_.xM("yt-spec-quantity-incrementer-shape__text",(k["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return g()>H().maxValue},k["yt-spec-quantity-incrementer-shape__text--text-disabled"]=c,k));
var C=_.n7(function(){if(g()===1){var V,U;(U=(V=H()).onRemoveCommand)==null||U.call(V)}V=g()>H().maxValue?H().maxValue:g()-1;a(V);dK3(H(),V);return!1}),R=_.n7(function(){if(g()===H().maxValue)return!1;
var V=g()+1;a(V);dK3(H(),V);return!1});
_.Is(function(){a(H().value)});
return _.x("quantity-incrementer-shape",null,_.x("div",{class:"yt-spec-quantity-incrementer-shape"},_.x("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return g()===(H().onRemoveCommand?0:1)||c()},
"aria-label":function(){return g()!==1?H().minusLabel:H().minimumReachedLabel},
"on:click":C},_.x(_.am,{model:{circular:!0}}),_.x("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.x("div",{class:p},K()))),_.x("div",{class:k},g),_.x("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return g()>=H().maxValue||c()},
"aria-label":function(){return g()!==H().maxValue?H().plusLabel:H().maximumReachedLabel},
"on:click":R},_.x(_.am,{model:{circular:!0}}),_.x("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.x("div",{class:e},d())))))},"ie");_.iV(_.H1(function(d){function H(){K().onRemoveCommand&&_.EG(K().onRemoveCommand)}
var K=d.data;var c=_.Uj(IG5,function(){return K().quantityIncrementerEntityKey});
return _.x("yt-quantity-incrementer-view-model",null,_.x(Hi3,{data:function(){var p=K(),g;var a=c()?!((g=c())==null||!g.disabled):!1;var e;g=c()?(e=c())==null?void 0:e.quantity:K().quantity;return zyD(p,a,H,g)},
iconMinus:function(){return _.x(_.hu,{icon:"BAR_HORIZONTAL",className:_.zx("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.x(_.hu,{icon:"ADD",className:_.zx("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"je"),"yt-quantity-incrementer-view-model",{props:{data:_.dl}});var BJ=function(){var d=_.B.apply(this,arguments)||this;d.compact=!1;d.hasQuantityIncrementer=!1;return d};
_.m(BJ,_.B);BJ.prototype.configureRendererStamper=function(){return{"data.picker":{id:"picker",mapping:{quantityIncrementerViewModel:"yt-quantity-incrementer-view-model",dropdownRenderer:{component:"ytd-dropdown-renderer",params:{autosize:!0,minAutosizeWidth:0,noUnderline:!0,noLabelFloat:!0,usePrimaryColor:!0}}}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
BJ.prototype.computeHasQuantityIncrementer=function(){var d;return!!_.M((d=this.data)==null?void 0:d.picker,XCg)};
BJ.prototype.onLabelClick=function(){var d;(d=this.dropdownEl)==null||d.open()};
_.t([_.VP("ytd-dropdown-renderer"),_.O("design:type",Object)],BJ.prototype,"dropdownEl",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],BJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],BJ.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],BJ.prototype,"quantityColor",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],BJ.prototype,"compact",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.O("design:type",Object)],BJ.prototype,"hasQuantityIncrementer",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],BJ);
_.T(BJ,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(vTB!==void 0)return vTB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-quantity-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="picker-label" on-click="onLabelClick" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer">[[getSimpleString(data.pickerLabel)]]</div>\n<div id="picker" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n<div id="price" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return vTB=d},{mode:1});var $Kd;var KI0;var zU=function(){return _.B.apply(this,arguments)||this};
_.m(zU,_.B);zU.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
zU.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
zU.prototype.updateTitle=function(){var d=this.disabledCartItemEntity;d.disableActionName&&this.set("data.title",WK(d.disableActionName))};
zU.prototype.updateButton=function(){var d,H=(d=this.disabledCartItemEntity.undoCommand)==null?void 0:d.innertubeCommand;H!==void 0&&(this.set("data.actionButton.buttonRenderer.command",H),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
zU.prototype.entityChanged=zU.prototype.entityChanged;_.t([_.u(_.to),_.O("design:type",Object)],zU.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],zU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(d,H){return _.xL(d.entities,"disabledCartItemEntity",H)}}),
_.O("design:type",Object)],zU.prototype,"disabledCartItemEntity",void 0);_.t([_.r(),_.O("design:type",Object)],zU.prototype,"data",void 0);_.t([_.CK("disabledCartItemEntity","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zU.prototype,"entityChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],zU);
_.T(zU,"ytd-disabled-cart-item-renderer",function(){if(KI0!==void 0)return KI0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-disabled-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope ytd-disabled-cart-item-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n  <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n</div>\n<div id="action-button" class="style-scope ytd-disabled-cart-item-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return KI0=d},{mode:1});_.XX("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Xz=function(){var d=_.B.apply(this,arguments)||this;d.compact=!1;d.hidden=!1;d.errorHidden=!1;d.noOnTap=!1;return d};
_.m(Xz,_.B);_.G=Xz.prototype;
_.G.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.textMetadata":{id:"text-metadata",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.merchantUpdateText":{id:"merchant-update-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.cartItemNotification":{id:"cart-item-notification",mapping:{cardItemTextWithImageRenderer:"yt-card-item-text-with-image-renderer"}},"data.cardItemActions":{id:"cart-item-actions",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{disableTextTransform:"[[compact]]"}}},events:!0},"data.quantityPicker":{id:"quantity-picker",mapping:{commerceCartItemQuantityPickerRenderer:{component:"ytd-commerce-cart-item-quantity-picker-renderer",properties:{compact:"[[compact]]",quantityColor:"[[commerceCartItemEntity.quantityColor]]"}}}},"data.disabledCartItem":{id:"disabled-cart-item",mapping:{disabledCartItemRenderer:"ytd-disabled-cart-item-renderer"}}}};
_.G.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.G.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var d=this.firstButtonElement;d.alignByText=!0;d.iconAlignByText=!0}};
_.G.computeNoOnTap=function(d){return!d};
_.G.updateQuantityColor=function(){if(this.pickerElement){var d,H=(d=this.commerceCartItemEntity)==null?void 0:d.quantityColor;this.pickerElement.quantityColor=H}};
_.G.updateTotalPriceColor=function(){var d,H=(d=this.commerceCartItemEntity)==null?void 0:d.totalPriceColor;if(H){var K;d=_.M((K=this.data)==null?void 0:K.quantityPicker,Bl0);if(K=_.M(d==null?void 0:d.price,WuB))K.textColor=H}};
_.G.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var d,H=(d=this.commerceCartItemEntity)==null?void 0:d.isHidden;H!==void 0&&(this.hidden=H)}};
_.G.updateHideErrorMessage=function(){var d,H=(d=this.commerceCartItemEntity)==null?void 0:d.hideErrorMessage;H!==void 0&&(this.errorHidden=H)};
_.G.updateQuantity=function(){var d=this,H,K=(H=this.commerceCartItemEntity)==null?void 0:H.quantity,c;H=(c=this.commerceCartItemEntity)==null?void 0:c.totalPrice;if(K){this.updateTotalPriceColor();this.updateQuantityColor();var p;c=_.M((p=this.data)==null?void 0:p.quantityPicker,Bl0);if(p=_.M(c==null?void 0:c.price,WuB))p.text=H?{simpleText:H.content}:void 0;if(H=_.M(c==null?void 0:c.picker,XCg))H.quantity=K;var g;if(p=(g=_.M(c==null?void 0:c.picker,Jsl))==null?void 0:g.entries){g=!1;H=void 0;p=
_.q(p);for(c=p.next();!c.done;c=p.next())c=c.value,c.dropdownItemRenderer&&(H||(H=c.dropdownItemRenderer),c.dropdownItemRenderer.isSelected=!1,K===c.dropdownItemRenderer.int32Value&&(g=!0,c.dropdownItemRenderer.isSelected=!0));!g&&H&&(H.isSelected=!0)}_.vV(this,function(){var a;d.set("data.quantityPicker",_.rs.unsafeClone((a=d.data)==null?void 0:a.quantityPicker))})}};
Xz.prototype.onYtRendererstamperFinished=Xz.prototype.onYtRendererstamperFinished;Xz.prototype.entityChanged=Xz.prototype.entityChanged;_.t([_.r(),_.O("design:type",Object)],Xz.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Xz.prototype,"compact",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Xz.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Xz.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Xz.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Xz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(d,H){return _.xL(d.entities,"commerceCartItemEntity",H)}}),
_.O("design:type",Object)],Xz.prototype,"commerceCartItemEntity",void 0);_.t([_.r(),_.O("design:type",Object)],Xz.prototype,"quantityPicker",void 0);_.t([_.r(),_.O("design:type",Object)],Xz.prototype,"compactQuantityPicker",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Xz.prototype,"hidden",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Xz.prototype,"errorHidden",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.O("design:type",Object)],Xz.prototype,"noOnTap",void 0);_.t([_.VP("ytd-commerce-cart-item-quantity-picker-renderer"),_.O("design:type",Object)],Xz.prototype,"pickerElement",void 0);_.t([_.VP("yt-button-renderer"),_.O("design:type",Element)],Xz.prototype,"firstButtonElement",void 0);
_.t([_.CK("commerceCartItemEntity","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Xz.prototype,"entityChanged",null);_.t([_.nK("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Xz.prototype,"onYtRendererstamperFinished",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],Xz);
_.T(Xz,"ytd-commerce-cart-item-renderer",function(){if($Kd!==void 0)return $Kd;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" hidden="[[commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer">\n  <a id="img-container" class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]" tabindex="-1">\n    <yt-img-shadow id="image" object-fit="CONTAIN" thumbnail="[[data.cartItemImage]]" width="200" class="style-scope ytd-commerce-cart-item-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="content" class="style-scope ytd-commerce-cart-item-renderer">\n    <div id="item" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="info" class="style-scope ytd-commerce-cart-item-renderer">\n        <div id="cart-item-notification" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <h3 class="style-scope ytd-commerce-cart-item-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n              <div id="title" class="style-scope ytd-commerce-cart-item-renderer"></div>\n            </a>\n        </h3>\n        <div id="text-metadata" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <div id="merchant-update-text" class="style-scope ytd-commerce-cart-item-renderer"></div>\n      </div>\n      <div id="quantity-picker" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n    <div id="actions" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="cart-item-actions" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="disabled-cart-item" hidden="[[!commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return $Kd=d},{mode:_.qk("kevlar_poly_si_batch_j028")?1:2});var chN;var pDl;var Jd=function(){return _.B.apply(this,arguments)||this};
_.m(Jd,_.B);Jd.prototype.configureRendererStamper=function(){return{"data.summaryLineItems":{id:"summary-line-items",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}}}}}};
Jd.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
Jd.prototype.updateCheckoutLineItems=function(){var d,H=(d=this.commerceCartCheckoutButtonEntity)==null?void 0:d.checkoutLineItems;H&&(d=H.map(function(K){a:{var c=K.price,p=K.description;switch(K.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":K={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:WK(p),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",
left:"CARD_ITEM_UX_SPACE_4"}}},price:{cardItemTextRenderer:{text:WK(c),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:K={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:WK(p),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",
right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},price:{cardItemTextRenderer:{text:WK(c),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return K}),this.set("data.summaryLineItems",d))};
Jd.prototype.updateIsHidden=function(){var d,H=(d=this.commerceCartCheckoutButtonEntity)==null?void 0:d.isHidden;H!==void 0&&(this.hostElement.hidden=H)};
Jd.prototype.entityChanged=Jd.prototype.entityChanged;_.t([_.u(_.to),_.O("design:type",Object)],Jd.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Jd.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Jd.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],Jd.prototype,"data",void 0);_.t([_.r({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Yyf}),_.O("design:type",Object)],Jd.prototype,"commerceCartCheckoutButtonEntity",void 0);_.t([_.CK("commerceCartCheckoutButtonEntity","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Jd.prototype,"entityChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],Jd);
_.T(Jd,"ytd-commerce-cart-summary-renderer",function(){if(pDl!==void 0)return pDl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-commerce-cart-summary-renderer">[[getSimpleString(data.title)]]</div>\n<div id="summary-line-items" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return pDl=d},{mode:1});var gDM={};gDM.InjectBehavior=[ePf.InjectBehavior];var iiM;var GB3;var sr=function(){return _.B.apply(this,arguments)||this};
_.m(sr,_.B);
sr.prototype.configureRendererStamper=function(){return{"data.sectionHeading":{id:"section-heading",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.image":{id:"image",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}},"data.title":{id:"title",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.subtitle":{id:"subtitle",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.additionalMetadata":{id:"additional-metadata",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},
"data.activityMetadata":{id:"activity-metadata",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.menu":{id:"menu",mapping:_.Ju("menuRenderer")}}};
sr.prototype.onMenuTap=function(d){d.stopPropagation()};
_.H3.Object.defineProperties(sr.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityData&&this.data.accessibilityData.label?this.data.accessibilityData.label:""}},
sectionHeadingVisible:{configurable:!0,enumerable:!0,get:function(){var d,H;return!(((d=this.data)==null||!d.sectionHeading)&&((H=this.data)==null?void 0:H.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var d,H;return!(((d=this.data)==null||!d.image)&&((H=this.data)==null?void 0:H.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var d,H;return!(((d=this.data)==null||!d.menu)&&((H=this.data)==null?void 0:H.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],sr.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],sr.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Y1S.YtTappableItemBehavior),_.O("design:type",Object)],sr.prototype,"ytTappableItemBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],sr.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("data.accessibilityData"),_.O("design:type",String),_.O("design:paramtypes",[])],sr.prototype,"ariaLabel",null);_.t([_.I("data.sectionHeading","data.layout"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],sr.prototype,"sectionHeadingVisible",null);_.t([_.I("data.image","data.layout"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],sr.prototype,"imageVisible",null);
_.t([_.I("data.menu","data.layout"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],sr.prototype,"menuVisible",null);_.t([_.ZV({is:"yt-activity-item-renderer",disableElementRegistration:!0})],sr);
_.T(sr,"yt-activity-item-renderer",function(){if(GB3===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-activity-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_activity_item_renderer.yt.activity.item.renderer.css.js--\x3e<div class="activity-item-contents style-scope yt-activity-item-renderer">\n  <div id="section-heading" tabindex="-1" aria-hidden="[[!sectionHeadingVisible]]" hidden="[[!sectionHeadingVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  <div id="section-contents" class="style-scope yt-activity-item-renderer">\n    <div id="image" hidden="[[!imageVisible]]" class="style-scope yt-activity-item-renderer"></div>\n    <div id="content-activity-container" tabindex="-1" divider-style$="[[data.dividerStyle]]" class="style-scope yt-activity-item-renderer">\n      <div id="content" class="style-scope yt-activity-item-renderer">\n        <div id="title" class="style-scope yt-activity-item-renderer"></div>\n        <div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-activity-item-renderer"></div>\n        <div id="additional-metadata" hidden="[[!data.additionalMetadata]]" class="style-scope yt-activity-item-renderer"></div>\n      </div>\n      <div id="activity-metadata" class="style-scope yt-activity-item-renderer"></div>\n    </div>\n    <div id="menu" on-click="onMenuTap" tabindex="0" hidden="[[!menuVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  </div>\n</div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;iiM===void 0&&(iiM=document.createElement("template"));var c=iiM;K.call(H,c.content.cloneNode(!0),d.content.firstChild);GB3=d}d=GB3;return d},{mode:2});var oD3;var qZX;var aIB;var lI3;var Fz=function(){return _.B.apply(this,arguments)||this};
_.m(Fz,_.B);
Fz.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.priceRenderer":{id:"price-renderer",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},
"data.actionsRenderer":{id:"actions-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
Fz.prototype.backgroundColorChanged_=function(){var d,H=(d=this.data)==null?void 0:d.backgroundColor;this.hostElement.style.backgroundColor=RU[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Fz.prototype.backgroundColorChanged_=Fz.prototype.backgroundColorChanged_;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Fz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Fz.prototype,"data",void 0);
_.t([_.CK("data.backgroundColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fz.prototype,"backgroundColorChanged_",null);_.t([_.ZV({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Fz);
_.T(Fz,"yt-offer-item-upsell-renderer",function(){if(lI3===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_upsell_renderer.yt.offer.item.upsell.renderer.css.js--\x3e<div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-offer-item-upsell-renderer"></div>\n<div id="heading-price-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="heading-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="price-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n<div id="description-actions-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="description-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="actions-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;aIB===void 0&&(aIB=document.createElement("template"));var c=aIB;K.call(H,c.content.cloneNode(!0),d.content.firstChild);lI3=d}d=lI3;return d},{mode:2});_.XX("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Zq=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};d.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return d};
_.m(Zq,_.B);_.G=Zq.prototype;
_.G.configureRendererStamper=function(){return{"data.baseRenderer":{id:"base",mapping:{cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0}}},"data.contents":{id:"contents",mapping:{commerceCartHeaderRenderer:{component:"ytd-commerce-cart-header-renderer",properties:{compact:"[[compact]]"},noInjection:!0},commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{fullWidth:"[[compact]]"}},commerceCartItemRenderer:{component:"ytd-commerce-cart-item-renderer",noInjection:!0,
properties:{compact:"[[compact]]"}},cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0},offerItemUpsellRenderer:{component:"yt-offer-item-upsell-renderer",noInjection:!0},activityItemRenderer:{component:"yt-activity-item-renderer",noInjection:!0}}},"data.continuationSection":{id:"continuation-section",mapping:_.Ju("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.G.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.G.computeContainerStyle_=function(d){return d};
_.G.computeContainerIsHidden_=function(d){return d&&!!d.isHidden};
_.G.computeShowSpinner_=function(d,H){return d&&H==="in-progress"};
_.G.computeShowMoreContentsButton_=function(d,H,K,c,p){return!(!(c&&c.length||p&&p.length&&K)||!d||H)};
_.G.onToggleButton_=function(d){var H=this;d.stopPropagation();this.isExpanded_=d.detail&&d.detail.toggled;var K,c;this.isExpanded_&&!this.data.continuationSection.length&&((K=this.data)==null?0:(c=K.continuation)==null?0:c.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.GT(this.hostElement,"yt-load-next-continuation",function(p){return H.getContinuationUrl_(H.data.continuation.onClickContinuationData,p)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.aF(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.G.onShowMoreContentsButtonClicked_=function(d){var H=this;d.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.GT(this.hostElement,"yt-load-next-continuation",function(K){return H.getContinuationUrl_(H.data.continuations[0].nextContinuationData,K)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.aF(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.G.getContinuationUrl_=function(d,H){var K=d.continuation;d=d.clickTrackingParams;var c=_.Fj();d&&c&&_.fo(c,_.P1(d));return _.f6(H,{continuation:K})};
_.G.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var d=_.Gn(this.hostElement).querySelector("#continuation-section");d&&(d=d.querySelectorAll("ytmusic-item-section-renderer"))&&d.forEach(function(H){return H.classList.add("memberships-and-purchases")})};
_.G.dataChanged_=function(){var d;this.isExpanded_=!((d=this.data)==null||!d.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.G.updateCardOnClickCommand_=function(d){d=_.M(d,hq7);var H,K;this.data&&((H=this.data)==null?0:H.targetId)&&d&&d.targetId===((K=this.data)==null?void 0:K.targetId)&&d.onClickCommand&&(this.data.onClickCommand=d.onClickCommand,this.isOnClickCommand_=!0)};
_.G.backgroundColorChanged_=function(){var d,H=(d=this.data)==null?void 0:d.backgroundColor;this.hostElement.style.backgroundColor=RU[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Zq.prototype.backgroundColorChanged_=Zq.prototype.backgroundColorChanged_;Zq.prototype.dataChanged_=Zq.prototype.dataChanged_;Zq.prototype.nextContinuationDataUpdated_=Zq.prototype.nextContinuationDataUpdated_;Zq.prototype.onToggleButton_=Zq.prototype.onToggleButton_;_.t([_.u(_.yH),_.O("design:type",Object)],Zq.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Zq.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Zq.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.bN.YtNextContinuationBehavior),_.O("design:type",Object)],Zq.prototype,"ytNextContinuationBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Zq.prototype,"ytRendererBehavior",void 0);_.t([_.u(gDM.InjectBehavior),_.O("design:type",Object)],Zq.prototype,"injectBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Zq.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Zq.prototype,"compact",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Zq.prototype,"isExpanded_",void 0);_.t([_.r({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.O("design:type",String)],Zq.prototype,"containerStyle_",void 0);_.t([_.r({value:"not-started"}),_.O("design:type",String)],Zq.prototype,"continuationStatus_",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.O("design:type",Boolean)],Zq.prototype,"showSpinner_",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],Zq.prototype,"isOnClickCommand_",void 0);_.t([_.r({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.O("design:type",Boolean)],Zq.prototype,"showMoreContentsButton_",void 0);
_.t([_.r({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(d,H){return!H||d.entities?null:_.xL(d.entities,"cardItemContainerEntity",H)}}),
_.O("design:type",Object)],Zq.prototype,"cardItemContainerEntity_",void 0);_.t([_.nK("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Zq.prototype,"onToggleButton_",null);_.t([_.nK("yt-next-continuation-data-updated"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Zq.prototype,"nextContinuationDataUpdated_",null);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Zq.prototype,"dataChanged_",null);_.t([_.CK("data.backgroundColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Zq.prototype,"backgroundColorChanged_",null);_.t([_.ZV({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Zq);
_.T(Zq,"yt-card-item-container-renderer",function(){if(qZX===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_container_renderer.yt.card.item.container.renderer.css.js--\x3e<div id="container" hidden="[[computeContainerIsHidden_(cardItemContainerEntity_)]]" class="style-scope yt-card-item-container-renderer">\n  <div id="base" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="divider" hidden="[[!isExpanded_]]" container-style_$="[[containerStyle_]]" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="contents-section" hidden="[[!isExpanded_]]" class="style-scope yt-card-item-container-renderer">\n    <div id="contents" class="style-scope yt-card-item-container-renderer"></div>\n    <div id="continuation-section" class="style-scope yt-card-item-container-renderer"></div>\n    <tp-yt-paper-spinner id="spinner" active="[[showSpinner_]]" class="style-scope yt-card-item-container-renderer"></tp-yt-paper-spinner>\n    <div id="more-contents-button" hidden="[[!showMoreContentsButton_]]" on-click="onShowMoreContentsButtonClicked_" class="style-scope yt-card-item-container-renderer"></div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;oD3===void 0&&(oD3=document.createElement("template"));var c=oD3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);qZX=d}d=qZX;return d},{mode:2});var TU=function(){return _.B.apply(this,arguments)||this};
_.m(TU,_.B);TU.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{cardItemContainerRenderer:{component:"yt-card-item-container-renderer",params:{compact:!1}},commerceCartCheckoutButtonRenderer:"ytd-commerce-cart-checkout-button-renderer",commerceCartHeaderRenderer:"ytd-commerce-cart-header-renderer",cardItemRenderer:"yt-card-item-renderer"}},"data.cartSummary":{id:"cart-summary",mapping:{commerceCartSummaryRenderer:"ytd-commerce-cart-summary-renderer"}}}};
TU.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
TU.prototype.computeLoadingHidden=function(){var d;return!((d=this.commerceCartPageStateEntity)==null?0:d.cartActionInProgress)};
TU.prototype.updateNotification=function(){var d,H=(d=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:d.summaryText;H&&this.set("data.cartNotification",WK(H))};
TU.prototype.notificationEntityChanged=TU.prototype.notificationEntityChanged;_.t([_.u(_.to),_.O("design:type",Object)],TU.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],TU.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],TU.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],TU.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],TU.prototype,"data",void 0);_.t([_.r({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(d,H){return _.xL(d.entities,"commerceCartExpandableNotificationEntity",H)}}),
_.O("design:type",Object)],TU.prototype,"commerceCartExpandableNotificationEntity",void 0);_.t([_.r({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(d,H){return _.xL(d.entities,"commerceCartPageStateEntity",H)}}),
_.O("design:type",Object)],TU.prototype,"commerceCartPageStateEntity",void 0);_.t([_.VP("#spinner"),_.O("design:type",HTMLElement)],TU.prototype,"spinner",void 0);_.t([_.CK("commerceCartExpandableNotificationEntity","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],TU.prototype,"notificationEntityChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],TU);
_.T(TU,"ytd-commerce-cart-renderer",function(){if(chN!==void 0)return chN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-commerce-cart-renderer">\n  <div id="title" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="notification" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.cartNotification)]]</div>\n</div>\n<div id="body" class="style-scope ytd-commerce-cart-renderer">\n  <div id="primary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="items" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n  <div id="secondary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="cart-summary" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n</div>\n<div id="loading-overlay" hidden="[[computeLoadingHidden(data, commerceCartPageStateEntity)]]" class="style-scope ytd-commerce-cart-renderer">\n  <div id="positioning-container" class="style-scope ytd-commerce-cart-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="[[commerceCartPageStateEntity.cartActionInProgress]]" class="style-scope ytd-commerce-cart-renderer">\n    </tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return chN=d},{mode:1});var eCS;var Qf=function(){var d=_.B.apply(this,arguments)||this;d.bigImage=!1;return d};
_.m(Qf,_.B);_.H3.Object.defineProperties(Qf.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.placeholderImageUrl}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Qf.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Qf.prototype,"bigImage",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Qf.prototype,"placeholderImageUrl",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Qf);
_.T(Qf,"ytd-empty-product-shelf-renderer",function(){if(eCS!==void 0)return eCS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-empty-product-shelf-renderer">\n  <template is="dom-if" if="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n    <img id="placeholder-image" alt="icon" src$="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n  </template>\n  <yt-formatted-string id="image-text" text="[[data.imageText]]" class="style-scope ytd-empty-product-shelf-renderer"></yt-formatted-string>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return eCS=d},{mode:1});var kB7;var td=function(){var d=_.B.apply(this,arguments)||this;d.itemStyle="link-item";d.watchMetadataRefresh=!1;d.skinnyMode=!1;d.metaPanel=!1;d.inStructuredDescription=!1;d.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};d.updateOnResizeDebouncer=null;return d};
_.m(td,_.B);_.G=td.prototype;_.G.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.G.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{iconSize:16}},menuRenderer:"ytd-menu-renderer"}},"data.emptyProductShelf":{id:"empty-product",mapping:{emptyProductShelfRenderer:{component:"ytd-empty-product-shelf-renderer"}}}}};
_.G.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.G.attachVEs=function(d){d.trackingParams&&_.hR().graftServerVe(d.trackingParams)};
_.G.handleUpdateMerchShelfAction=function(d){var H=this,K=_.M(d.updateMerchandiseShelfAction.merchandiseShelf,_.HNB);K&&(K.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){H.attachVEs(K);H.data=K},Number(K.renderDelayMs))):(this.attachVEs(K),this.data=K))};
_.G.updateOnResize=function(){if(this.JSC$16761_scrollContainer!==void 0&&this.JSC$16761_scrollContainer.clientWidth!==0&&this.items!==void 0){var d=this.JSC$16761_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-d));this.ytdHorizontalListBehavior.reposition_();var H;switch((H=this.data)==null?void 0:H.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var K,
c;((K=this.data)==null?void 0:(c=K.items)==null?void 0:c.length)===1?this.itemStyle="cta-item":this.itemStyle=d>=740?"large-item":"small-item"}}};
_.G.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.G8(this.updateOnResizeDebouncer,_.DR.after(100),this.updateOnResize)};
td.prototype.debouncedUpdateOnResize=td.prototype.debouncedUpdateOnResize;td.prototype.dataChanged=td.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],td.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.oL.YtdHorizontalListBehavior),_.O("design:type",Object)],td.prototype,"ytdHorizontalListBehavior",void 0);
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],td.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],td.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],td.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],td.prototype,"itemStyle",void 0);_.t([_.r({value:6}),_.O("design:type",Number)],td.prototype,"initialCount",void 0);
_.t([_.r({value:"data.items"}),_.O("design:type",String)],td.prototype,"itemsPath",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],td.prototype,"watchMetadataRefresh",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],td.prototype,"skinnyMode",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],td.prototype,"metaPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],td.prototype,"inStructuredDescription",void 0);
_.t([_.VP("#items"),_.O("design:type",HTMLDivElement)],td.prototype,"items",void 0);_.t([_.VP("#scroll-container"),_.O("design:type",HTMLDivElement)],td.prototype,"JSC$16761_scrollContainer",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],td.prototype,"dataChanged",null);_.t([_.nK("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],td.prototype,"debouncedUpdateOnResize",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],td);
_.T(td,"ytd-merch-shelf-renderer",function(){if(kB7!==void 0)return kB7;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-merch-shelf-renderer">\n  <div id="banner" class="style-scope ytd-merch-shelf-renderer">\n    <div id="title" hidden="[[!data.title]]" role="heading" class="style-scope ytd-merch-shelf-renderer">[[data.title]]</div>\n    <yt-formatted-string id="title" hidden="[[!data.titleFormatted]]" role="heading" text="[[data.titleFormatted]]" class="style-scope ytd-merch-shelf-renderer">\n    </yt-formatted-string>\n    <div id="action-button" class="style-scope ytd-merch-shelf-renderer"></div>\n  </div>\n  <div id="empty-product" class="style-scope ytd-merch-shelf-renderer"></div>\n  <div id="item-list" class="style-scope ytd-merch-shelf-renderer">\n    <div id="left-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="prevClick_" hidden="[[atStart]]">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n    <div id="scroll-container" class="style-scope ytd-merch-shelf-renderer">\n      <div id="items" item-style$="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n        \n        <template is="dom-repeat" items="[[shownItems]]" class="style-scope ytd-merch-shelf-renderer">\n          <ytd-merch-shelf-item-renderer data="[[item.merchandiseItemRenderer]]" item-style="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n          </ytd-merch-shelf-item-renderer>\n        </template>\n      </div>\n    </div>\n    <div id="right-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="right-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return kB7=d},{mode:2});var xK0;var Ye=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-add-backstage-comment-action":"addBackstageCommentAction","yt-add-backstage-post-action":"addBackstagePostAction","yt-add-backstage-reply-action":"addBackstageReplyAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-replace-backstage-comment-action":"replaceBackstageCommentAction","yt-replace-backstage-post-action":"replaceBackstagePostAction",
"yt-replace-backstage-reply-action":"replaceBackstageReplyAction"};return d};
_.m(Ye,_.B);_.G=Ye.prototype;
_.G.addBackstagePostAction=function(d){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(d=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",d))&&(this.get("header.commentsHeaderRenderer.zeroStateMessage.backstageZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{}),this.get("header.commentsHeaderRenderer.schedulingZeroStateMessage.postSchedulingZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.schedulingZeroStateMessage",
{}),this.get("data.contents")?this.splice("data.contents",0,0,{backstagePostThreadRenderer:d}):this.set("data.contents",[{backstagePostThreadRenderer:d}]))};
_.G.addBackstageCommentAction=function(d){var H=this.get("addBackstageCommentAction.parentId",d);d=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",d);if(H&&d){H=this.postIdToIndices(H);for(var K=0;K<H.length;K++){var c=H[K];if(c<0)break;c="data.contents."+c+".backstagePostThreadRenderer.comments";this.get(c)&&(this.get(c+".backstageCommentsRenderer.contents")&&this.push(c+".backstageCommentsRenderer.contents",{commentThreadRenderer:d}),this.get(c+".backstageCommentsRenderer.teaserContents")?
this.push(c+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:d}):this.set(c+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:d}]))}}};
_.G.addBackstageReplyAction=function(d){var H=this.get("addBackstageReplyAction.parentId",d);d=this.get("addBackstageReplyAction.renderer.commentRenderer",d);H&&d&&this.setCreatorReply(H,d)};
_.G.banAuthorAction=function(d){var H=this.get("banAuthorAction.commentId",d);H&&(d=this.get("banAuthorAction.parentCommentId",d)||this.getParentPostId(H),this.removeFromStream(H,d))};
_.G.hideReportedCommentAction=function(d){var H=this.get("hideReportedCommentAction.commentId",d);H&&((d=this.get("hideReportedCommentAction.parentCommentId",d))||(d=this.getParentPostId(H)),this.removeFromStream(H,d))};
_.G.replaceBackstageCommentAction=function(d){var H=this.get("replaceBackstageCommentAction.commentId",d),K=this.get("replaceBackstageCommentAction.parentId",d);d=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",d);if(H&&K&&d){K=this.postIdToIndices(K);for(var c=0;c<K.length;c++){var p=K[c];if(p<0)break;var g=this.commentIdToIndex(H,p,!1);if(g>=0){var a=this.get("data.contents."+p+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+g+".commentThreadRenderer.replies.commentRepliesRenderer");
a&&(d.replies={commentRepliesRenderer:a});this.splice("data.contents."+p+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",g,1,{commentThreadRenderer:d})}g=this.commentIdToIndex(H,p,!0);if(g>=0){if(a=this.get("data.contents."+p+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(g+".commentThreadRenderer.replies.commentRepliesRenderer")))d.replies={commentRepliesRenderer:a};this.splice("data.contents."+p+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
g,1,{commentThreadRenderer:d})}}}};
_.G.replaceBackstagePostAction=function(d){var H=this.get("replaceBackstagePostAction.itemId",d);if(H){H=this.postIdToIndices(H);for(var K=0;K<H.length;K++){var c=H[K];if(c<0)break;var p=this.getPostRendererType(c),g=this.get("replaceBackstagePostAction.renderer."+p,d);if(!g&&p!=="sharedPostRenderer")break;var a=!1;g||(a=!0,g=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",d));if(!g)break;var e={};a?(_.X4(e,y9X,g),this.set("data.contents."+c+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
e)):(_.X4(e,new _.Dk(p),g),this.set("data.contents."+c+".backstagePostThreadRenderer.post",e))}}};
_.G.replaceBackstageReplyAction=function(d){var H=this.get("replaceBackstageReplyAction.replyId",d),K=this.get("replaceBackstageReplyAction.parentId",d);d=this.get("replaceBackstageReplyAction.renderer.commentRenderer",d);H&&d&&K&&this.setCreatorReply(K,d)};
_.G.removeCommentAction=function(d){var H=this.get("removeCommentAction.commentId",d);if(H){var K=this.get("removeCommentAction.parentCommentId",d);K&&this.get("removeCommentAction.isCreatorReply",d)?this.setCreatorReply(K,void 0):(K||(K=this.getParentPostId(H)),this.removeFromStream(H,K))}};
_.G.setCreatorReply=function(d,H){var K=this.getParentPostId(d);if(K){K=this.postIdToIndices(K);for(var c=0;c<K.length;c++){var p=K[c];if(p<0)break;var g=this.commentIdToIndex(d,p,!1);if(g>=0){var a="data.contents."+p+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+g;g=a+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";a+=".commentThreadRenderer.replies";H==void 0?(this.set(a,{}),this.set(g,!1)):(this.set(a,{commentRepliesRenderer:{teaserContents:[{commentRenderer:H}]}}),
this.set(a+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(g,!0))}g=this.commentIdToIndex(d,p,!0);g>=0&&(g="data.contents."+p+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+g,p=g+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",g+=".commentThreadRenderer.replies",H==void 0?(this.set(g,{}),this.set(p,!1)):(this.set(g,{commentRepliesRenderer:{teaserContents:[{commentRenderer:H}]}}),this.set(p,!0)))}}};
_.G.removeFromStream=function(d,H){if(H){H=this.postIdToIndices(H);for(var K=0;K<H.length;K++){var c=H[K];if(c<0)break;var p=this.commentIdToIndex(d,c,!1);p>=0&&this.splice("data.contents."+c+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",p,1);p=this.commentIdToIndex(d,c,!0);p>=0&&this.splice("data.contents."+c+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",p,1);c="data.contents."+c+".backstagePostThreadRenderer.post.backstagePostRenderer";
p=c+".backstageAttachment.pollRenderer.votedCommentId";this.get(p)===d&&(this.set(p,null),this.set(c+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(H=this.postIdToIndices(d).reverse(),K=0;K<H.length;K++){c=H[K];if(c<0)break;p=this.getPostRendererType(c);var g=this.get("backstagePostThreadRenderer.post."+p,this.data.contents[c]);g.postId===d?this.splice("data.contents",c,1):p==="sharedPostRenderer"&&this.set("data.contents."+c+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);g.scheduledPublishTimeSec&&_.oF(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.G.postIdToIndices=function(d){for(var H=[],K=0;K<this.data.contents.length;K++){var c=this.getPostRendererType(K);this.get("backstagePostThreadRenderer.post."+c+".postId",this.data.contents[K])===d&&H.push(K);if(c==="sharedPostRenderer"){var p=this.get("backstagePostThreadRenderer.post."+c+".originalPost.backstagePostRenderer.postId",this.data.contents[K]);c=this.get("backstagePostThreadRenderer.post."+c+".originalPost.postRenderer.postId",this.data.contents[K]);p!==d&&c!==d||H.push(K)}}return H};
_.G.commentIdToIndex=function(d,H,K){if(H<0)return-1;var c,p,g,a,e=_.M((c=this.data)==null?void 0:(p=c.contents)==null?void 0:(g=p[H])==null?void 0:(a=g.backstagePostThreadRenderer)==null?void 0:a.comments,Sl6);return(H=K?e==null?void 0:e.teaserContents:e==null?void 0:e.contents)&&H.length?H.findIndex(function(k){return _.M(k,w9l).comment.commentRenderer.commentId===d}):-1};
_.G.getParentPostId=function(d){d=d.split(".");if(d[1])return d[0]};
_.G.getPostRendererType=function(d){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[d])?"sharedPostRenderer":"backstagePostRenderer"};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Ye.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ye.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-backstage-items"})],Ye);
_.T(Ye,"ytd-backstage-items",function(){if(xK0!==void 0)return xK0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer data="[[data]]" class="style-scope ytd-backstage-items"></ytd-item-section-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return xK0=
d},{mode:1});var nDl;var CzB={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},Or=function(){var d=_.B.apply(this,arguments)||this;d.disablePrescanVisibility=!0;d.canScheduleJobs=!0;d.engagementPanel=!1;d.hidePanelButton=!1;d.isWatchGrid=!1;d.hasShownSubscribersOnlyDisclaimer=!1;d.actionMap=
{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};return d};
_.m(Or,_.B);_.G=Or.prototype;_.G.created=function(){this.initCommentsCsi_();_.h("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_")};
_.G.contentsChanged_=function(){var d;(d=this.data)!=null&&d.contents&&this.tickForCommentsTimer_("cml")};
_.G.headerChanged_=function(){var d;(d=this.data)!=null&&d.header&&this.tickForCommentsTimer_("cmhl")};
_.G.initCommentsCsi_=function(){_.sa("wn_comments");var d=_.Fj();d&&_.Xw({clientScreenNonce:d},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.G.createCommentAction_=function(d){d=_.rs.unsafeClone(d);var H,K;if(d=(H=_.M(d,nJN))==null?void 0:(K=H.contents)==null?void 0:K.commentThreadRenderer){var c,p,g,a,e,k;!this.isBackstage&&((c=this.data)==null?0:(p=c.header)==null?0:(g=p.commentsHeaderRenderer)==null?0:(a=g.createRenderer)==null?0:(e=a.commentSimpleboxRenderer)==null?0:(k=e.zeroStep)==null?0:k.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var C,
R,V;this.isBackstage&&_.M((C=this.data)==null?void 0:(R=C.header)==null?void 0:(V=R.commentsHeaderRenderer)==null?void 0:V.zeroStateMessage,bVU)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(d)}};
_.G.doReplyInsert_=function(d,H,K,c){c?this.splice(d,c,0,H):this.push(d,H)};
_.G.getRepliesPath_=function(d){return"data.contents."+d+".commentThreadRenderer.replies"};
_.G.getRepliesContentsPath_=function(d,H){d=this.getRepliesPath_(d);return H?d+".commentRepliesRenderer.teaserContents":d+".commentRepliesRenderer.contents"};
_.G.showSubscribersOnlyDisclaimer_=function(d){(d=d.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(d=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(d))&&(_.oF(this.hostElement,"yt-open-popup-action",[d,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.G.createCommentReplyAction_=function(d){d=_.rs.unsafeClone(d);var H=_.M(d,CA3);if(d=H==null?void 0:H.contents){var K=this.commentIdToIndex_(H==null?void 0:H.parentCommentId);if(!(K<0)){var c=this.getRepliesPath_(K);if(this.get(c)){H=H.replyToCommentId;c=this.getRepliesContentsPath_(K,!1);if(this.get(c)){var p=this.get(c).length,g=c+"."+(p-1)+".continuationItemRenderer";this.get(g+".button")?(g=this.replyIdToIndex_(H,K,!1),this.doReplyInsert_(c,d,g,p-1)):this.get(g)||(p=this.replyIdToIndex_(H,K,
!1),this.doReplyInsert_(c,d,p,null))}c=this.getRepliesContentsPath_(K,!0);this.get(c)?(K=this.replyIdToIndex_(H,K,!0),(!H||K>=0)&&this.doReplyInsert_(c,d,K,null)):this.set(c,[d])}else this.set(c,{commentRepliesRenderer:{teaserContents:[d]}})}}};
_.G.hideReportedCommentAction_=function(d){var H=_.M(d,Zqg);if(d=H==null?void 0:H.commentId)(H=this.get("parentCommentId",H))||(H=this.getParentCommentId_(d)),this.remove_(d,H)};
_.G.getParentCommentId_=function(d){d=d.split(".");if(d[1])return d[0]};
_.G.removeCommentAction_=function(d){var H=_.M(d,LUA);if(d=H==null?void 0:H.commentId)H=(H==null?void 0:H.parentCommentId)||this.getParentCommentId_(d),this.remove_(d,H)};
_.G.pinCommentAction_=function(d){d=_.rs.unsafeClone(d);var H=_.M(d,hbl);H!=null&&H.commentId&&(d=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",d))&&(this.remove_(H.commentId),this.insert_(d,!0))};
_.G.unpinCommentAction_=function(d){d=_.rs.unsafeClone(d);d=_.M(d,Mo6);if(d!=null&&d.commentId){var H,K,c=(H=d.actionResult)==null?void 0:(K=H.update)==null?void 0:K.commentThreadRenderer;c&&(this.remove_(d.commentId),this.insert_(c))}};
_.G.banAuthorAction_=function(d){var H=_.M(d,xWU);H!=null&&H.commentId&&(d=H.commentId,H=H.parentCommentId||this.getParentCommentId_(d),this.remove_(d,H))};
_.G.commentIdToIndex_=function(d){var H;return d&&(H=this.data)!=null&&H.contents?this.data.contents.findIndex(function(K){K=K.commentThreadRenderer;var c;return d===((K==null?void 0:K.commentViewModel)&&((c=_.M(K.commentViewModel,BN3))==null?void 0:c.commentId))}):-1};
_.G.insert_=function(d,H){H=H===void 0?!1:H;var K,c;if((K=this.data)==null?0:(c=K.contents)==null?0:c.some(function(g){return!!g.commentThreadRenderer}))for(K=0,c=this.data.contents.length;K<c;K++){var p=this.data.contents[K].commentThreadRenderer;
if(CzB[d.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=CzB[p.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){H&&CzB[d.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===CzB[p.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",K,1,{commentThreadRenderer:d}):this.splice("data.contents",K,0,{commentThreadRenderer:d});break}}else this.set("data.contents",[{commentThreadRenderer:d}])};
_.G.doReplyRemove_=function(d,H,K){d=this.replyIdToIndex_(d,H,K);d<0||(H=this.getRepliesContentsPath_(H,K),this.splice(H,d,1))};
_.G.remove_=function(d,H){H=this.commentIdToIndex_(H);H<0?(H=this.commentIdToIndex_(d),H<0||this.splice("data.contents",H,1)):_.h("web_delhi_comment_threads")||(this.doReplyRemove_(d,H,!1),this.doReplyRemove_(d,H,!0))};
_.G.replyIdToIndex_=function(d,H,K){if(H<0)return-1;H=this.getRepliesContentsPath_(H,K);H=this.get(H);if(!H||!H.length)return-1;K=0;for(var c=H.length;K<c;K++){var p=void 0,g=void 0;if(((p=H[K])==null?void 0:(g=p.commentViewModel)==null?void 0:g.commentId)===d)return K}return-1};
_.G.tickForCommentsTimer_=function(d){_.Zi(d,void 0,"wn_comments")};
_.G.reloadComments_=function(d){d=_.M(d,rHN);_.M(d==null?void 0:d.command,_.YM)&&_.aF(this.hostElement,[d==null?void 0:d.command])};
_.H3.Object.defineProperties(Or.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return!!((d=this.data)==null?0:(H=d.header)==null?0:(K=H.commentsHeaderRenderer)==null?0:K.isBackstageContent)}}});
_.H3.Object.defineProperties(Or,{template:{configurable:!0,enumerable:!0,get:function(){if(nDl===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);nDl=d}d=nDl;return d}}});
Or.prototype.showSubscribersOnlyDisclaimer_=Or.prototype.showSubscribersOnlyDisclaimer_;Or.prototype.headerChanged_=Or.prototype.headerChanged_;Or.prototype.contentsChanged_=Or.prototype.contentsChanged_;_.t([_.u(_.Ke),_.O("design:type",Object)],Or.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(_.nQ5.YtHostElementBehavior),_.O("design:type",Object)],Or.prototype,"ytHostElementBehavior",void 0);
_.t([_.u(_.jk.YtPlayerListenerBehavior),_.O("design:type",Function)],Or.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Or.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Or.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Or.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("data.header.commentsHeaderRenderer.isBackstageContent"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Or.prototype,"isBackstage",null);_.t([_.r(),_.O("design:type",Object)],Or.prototype,"disablePrescanVisibility",void 0);_.t([_.r(),_.O("design:type",Object)],Or.prototype,"canScheduleJobs",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Or.prototype,"engagementPanel",void 0);
_.t([_.r(),_.O("design:type",Object)],Or.prototype,"hidePanelButton",void 0);_.t([_.r(),_.O("design:type",Object)],Or.prototype,"isWatchGrid",void 0);_.t([_.r(),_.O("design:type",Object)],Or.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.t([_.CK("data.contents"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Or.prototype,"contentsChanged_",null);
_.t([_.CK("data.header"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Or.prototype,"headerChanged_",null);_.t([_.nK("yt-show-subscribers-only-disclaimer"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Or.prototype,"showSubscribersOnlyDisclaimer_",null);_.t([_.Z({is:"ytd-comments"})],Or);var SI=function(){return _.hB.apply(this,arguments)||this};
_.m(SI,_.hB);_.G=SI.prototype;_.G.bindIf=function(d,H,K){return d?H:K};
_.G.bindIfDefined=function(d,H){return d!==void 0?d:H};
_.G.booleanString=function(d){return(!!d).toString()};
_.G.equals=function(){for(var d=_.sH.apply(0,arguments),H=d[0],K=1;K<d.length;K++)if(H!=d[K])return!1;return!0};
_.G.isGreaterThan=function(d,H){return d>H};
_.G.isLessThan=function(d,H){return d<H};
_.G.logicalAND=function(){for(var d=_.sH.apply(0,arguments),H=!!d[0],K=1;K<d.length;K++)H=H&&!!d[K];return H};
_.G.logicalOR=function(){for(var d=_.sH.apply(0,arguments),H=!!d[0],K=1;K<d.length;K++)H=H||!!d[K];return H};
_.G.toBool=function(d){return!!d};
SI.prototype.toBool=SI.prototype.toBool;SI.prototype.logicalOR=SI.prototype.logicalOR;SI.prototype.logicalAND=SI.prototype.logicalAND;SI.prototype.isLessThan=SI.prototype.isLessThan;SI.prototype.isGreaterThan=SI.prototype.isGreaterThan;SI.prototype.equals=SI.prototype.equals;SI.prototype.booleanString=SI.prototype.booleanString;SI.prototype.bindIfDefined=SI.prototype.bindIfDefined;SI.prototype.bindIf=SI.prototype.bindIf;_.t([_.LK()],SI);_.RCS=[SI.prototype];var VFg;var UKM;var Er=function(){return _.B.apply(this,arguments)||this};
_.m(Er,_.B);Er.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Er.prototype.onBackIconTap_=function(){window.history.back()};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Er.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Er.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Er.prototype,"data",void 0);_.t([_.ZV({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Er);
_.T(Er,"yt-header-with-back-renderer",function(){if(UKM===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-header-with-back-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_header_with_back_renderer.yt.header.with.back.renderer.css.js--\x3e<div id="header-wrapper" class="style-scope yt-header-with-back-renderer">\n  <yt-icon-button id="back-button" label="Back" on-tap="onBackIconTap_" class="style-scope yt-header-with-back-renderer">\n    <yt-icon icon="yt-icons:arrow-back" class="style-scope yt-header-with-back-renderer"></yt-icon>\n  </yt-icon-button>\n  <div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-header-with-back-renderer"></div>\n  <div id="header-container" class="style-scope yt-header-with-back-renderer">\n    <yt-formatted-string id="header-title" text="[[data.title]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n    <yt-formatted-string id="header-subtitle" text="[[data.subtitle]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;VFg===void 0&&(VFg=document.createElement("template"));var c=VFg;K.call(H,c.content.cloneNode(!0),d.content.firstChild);UKM=d}d=UKM;return d},{mode:2});var hCM;var LIC;var yf=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return d};
_.m(yf,_.B);_.G=yf.prototype;_.G.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.G.onDarkModeToggledAction=function(d){d!==this.isDarkTheme&&(this.isDarkTheme=d,this.setUrl())};
_.G.dataChanged=function(){var d=this;if(this.data){var H=this.setUrl();H&&_.AS({destination:window,iframe:this.iframe,origin:_.rZ7(H.toString()),channelName:"yt-iframe",onMessage:function(K){(K=d.getCommunicationCommand(K.data))&&d.ytComponentBehavior.resolveCommand(K)},
onEstablished:function(){}})}};
_.G.setUrl=function(){if(this.data&&this.data.iframeUrl){var d=_.J5(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(d)return _.OH(this.iframe,d),d}};
_.G.getCommunicationCommand=function(d){var H;if((H=this.data)!=null&&H.onCommunicationCommandsMap){H=this.data.onCommunicationCommandsMap.find(function(p){return p.key===d});
if(H==null?0:H.value)return H==null?void 0:H.value;try{var K=lj7(_.fF(d)),c=this.data.onCommunicationCommandsMap.find(function(p){return p.key===(K==null?void 0:K.getMethodName())});
if(c==null?0:c.value)return c==null?void 0:c.value}catch(p){}}};
yf.prototype.dataChanged=yf.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],yf.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],yf.prototype,"actionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],yf.prototype,"data",void 0);
_.t([_.r({value:!1}),_.O("design:type",Boolean)],yf.prototype,"isDarkTheme",void 0);_.t([_.VP("#iframe"),_.O("design:type",HTMLIFrameElement)],yf.prototype,"iframe",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yf.prototype,"dataChanged",null);_.t([_.ZV({is:"yt-iframe-renderer",disableElementRegistration:!0})],yf);
_.T(yf,"yt-iframe-renderer",function(){if(LIC===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-iframe-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_iframe_renderer.yt.iframe.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-iframe-renderer"></iframe>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;hCM===void 0&&(hCM=document.createElement("template"));var c=hCM;K.call(H,c.content.cloneNode(!0),d.content.firstChild);LIC=d}d=LIC;return d},{mode:2});_.b6=function(d){_.h_.call(this);this.callback=d;this.bezier=new w1g(0,0,.4,0,.2,1,1,1);this.delay=new _.c3(this.next,window,this);this.JSC$16800_animating=!1;_.q_(this,this.delay)};
_.m(_.b6,_.h_);_.b6.prototype.isAnimating=function(){return this.JSC$16800_animating};
_.b6.prototype.start=function(d,H,K){this.config={from:d,to:H,duration:K,startTime:(0,_.$G)()};this.JSC$16800_animating=!0;this.next()};
_.b6.prototype.stop=function(){this.delay.stop();this.JSC$16800_animating=!1;this.config=void 0};
_.b6.prototype.next=function(){if(this.config){var d=this.config,H=d.from,K=d.to,c=d.duration;d=d.startTime;var p=(0,_.$G)()-d;d=this.bezier;c=u43(d,p/c);if(c==0)d=d.y0;else if(c==1)d=d.y3;else{p=Ul(d.y0,d.y1,c);var g=Ul(d.y1,d.y2,c);d=Ul(d.y2,d.y3,c);p=Ul(p,g,c);g=Ul(g,d,c);d=Ul(p,g,c)}d=_.zH(d,0,1);this.callback(H+(K-H)*d);d<1?this.delay.start():this.JSC$16800_animating=!1}};_.Nb=new _.Av("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var MFM={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},wDU=function(d,H,K,c){_.h_.call(this);this.JSC$16811_miniAppId=d;this.localReleaseId=H;this.derivedDeviceInterface=K;this.isForeground=c;this.JSC$16811_playNonceResolver=new _.ki;this.playPingTimerId=NaN;this.playPingIntervalMs=_.iT("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.iT("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.h("enable_displaying_ppn");this.JSC$16811_miniAppClientDataProvider=_.Kj().resolve(_.Nb);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;mK6(this);var p=setTimeout(function(){_.Jf(new _.m1("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16811_playNonceResolver.promise.then(function(){clearTimeout(p)})};
_.m(wDU,_.h_);var uPA=function(d,H){d.JSC$16811_playNonceResolver.resolve(H!=null?H:Xj(8));d.enableDisplayingPpn&&Pzg(d).then(function(K){d.JSC$16811_miniAppClientDataProvider.clientData.set("post_play_nonce",K)})},Pzg=function(d){return _.l(function(H){return H.nextAddress==1?H.yield(d.JSC$16811_playNonceResolver.promise,2):H.return(H.yieldResult)})},mK6=function(d){var H,K;
_.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$16811_playNonceResolver.promise,2);H=c.yieldResult;K={miniAppInfo:{externalPostId:d.JSC$16811_miniAppId,localReleaseId:d.localReleaseId,postPlayNonce:H,derivedDeviceInterface:d.derivedDeviceInterface}};_.Xw(K);_.VE(c)})},rh6=function(d){d.state!==0?_.Jf(new _.m1("[MiniAppPlayLogger] recordPlayStart failed with state "+MFM[d.state])):(d.state=1,Dq(d,"ma_cl"),fY(d,"PLAY_EVENT_TYPE_PLAY_START"),II3(d))},WI6=function(d){d.isForeground=!1;
fY(d,"PLAY_EVENT_TYPE_PLAY_PAUSE")},BLB=function(d){d.state!==1&&d.state!==2?_.Jf(new _.m1("[MiniAppPlayLogger] recordPlayEnd failed with state "+MFM[d.state])):(d.state=3,window.clearInterval(d.playPingTimerId),d.playPingTimerId=NaN,lv5(),fY(d,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},zC3=function(d,H){d.state===2&&d.gameReady&&(d.firstClickRecorded?Date.now()-d.clickRecordedMs<d.playClickIntervalMs||(d.clickRecordedMs=Date.now(),fY(d,"PLAY_EVENT_TYPE_PLAY_CLICK")):H&&(Dq(d,"ma_fua"),fY(d,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),d.firstClickRecorded=!0,d.clickRecordedMs=Date.now()))};
wDU.prototype.logError=function(d){var H=this,K;_.l(function(c){if(c.nextAddress==1)return d.metadata.externalPostId=H.JSC$16811_miniAppId,K=d.metadata,c.yield(Promise.race([H.JSC$16811_playNonceResolver.promise,new Promise(function(p){setTimeout(function(){p("")},3E4)})]),2);
K.postPlayNonce=c.yieldResult;d.metadata.localReleaseId=H.localReleaseId;d.loggingError.level="WARNING";_.z5(d.loggingError,d.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:d.metadata});_.VE(c)})};
var XDU=function(d,H,K,c){var p,g,a,e,k,C;_.l(function(R){if(R.nextAddress==1)return R.yield(d.JSC$16811_playNonceResolver.promise,2);p=R.yieldResult;g={externalPostId:d.JSC$16811_miniAppId,localReleaseId:d.localReleaseId,postPlayNonce:p,sdkVersion:K,api:H};c!==void 0&&(g.networkRequestsMeasurement={networkRequests:_.$1(c,1),cachedRequests:_.$1(c,2),transferredBytes:_.$1(c,3)},(a=c)==null?0:_.C1(a,j0,6))&&(g.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((e=_.gF(c,
j0,6))==null?void 0:WG(e,1))||"0",cacheHits:((k=_.gF(c,j0,6))==null?void 0:WG(k,2))||"0",cachedBytes:((C=_.gF(c,j0,6))==null?void 0:WG(C,3))||"0"});_.Wd("miniAppSdkUsage",g);_.VE(R)})},szg=function(d,H,K){var c,p,g,a,e,k,C,R,V,U,L,w,W,J,F,Y;
_.l(function(A){if(A.nextAddress==1)return A.yield(d.JSC$16811_playNonceResolver.promise,2);c=A.yieldResult;p={externalPostId:d.JSC$16811_miniAppId,localReleaseId:d.localReleaseId,postPlayNonce:c,sdkVersion:K,measurementWindow:{startTimestampMs:String(PG(H,1)),endTimestampMs:String(PG(H,2))},frameRate:{averageFrameTimeDeltaMs:uv(H,3),averageFrameIdleTimeMs:uv(H,4)}};_.C1(H,vZ,5)&&(p.networkRequests={networkRequests:(g=gY(H))==null?void 0:_.$1(g,1),cachedRequests:(a=gY(H))==null?void 0:_.$1(a,2),transferredBytes:(e=
gY(H))==null?void 0:_.$1(e,3),sameOriginStatusCodeToCounts:JhA((k=gY(H))==null?void 0:uOY(k,4)),crossOriginStatusCodeToCounts:JhA((C=gY(H))==null?void 0:uOY(C,5))},(R=gY(H))==null?0:_.C1(R,j0,6))&&(p.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((V=gY(H))==null?void 0:(U=_.gF(V,j0,6))==null?void 0:WG(U,1))||"0",cacheHits:((L=gY(H))==null?void 0:(w=_.gF(L,j0,6))==null?void 0:WG(w,2))||"0",cachedBytes:((W=gY(H))==null?void 0:(J=_.gF(W,j0,6))==null?void 0:WG(J,3))||"0"});_.C1(H,
t3C,7)&&(p.gameCapture={averageFrameTimeDeltaMs:(F=_.gF(H,t3C,7))==null?void 0:uv(F,1),averageFrameIdleTimeMs:(Y=_.gF(H,t3C,7))==null?void 0:uv(Y,2)});_.Wd("miniAppPerformanceMetrics",p);_.VE(A)})},FI0=function(d,H){var K,c;
return _.l(function(p){if(p.nextAddress==1)return p.yield(d.JSC$16811_playNonceResolver.promise,2);K=p.yieldResult;c={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:d.JSC$16811_miniAppId,postPlayNonce:K,miniAppReleaseId:d.localReleaseId},derivedDeviceInterface:d.derivedDeviceInterface,adTriggerType:H,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.Wd("miniAppAdEvent",c);_.VE(p)})};
wDU.prototype.disposeInternal=function(){_.h_.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var fY=function(d,H,K,c){K=K===void 0?{}:K;c=c===void 0?!1:c;var p,g,a,e;_.l(function(k){if(k.nextAddress==1)return p=d.isForeground,g=d.beforeReady,k.yield(d.JSC$16811_playNonceResolver.promise,2);a=k.yieldResult;e={externalPostId:d.JSC$16811_miniAppId,localReleaseId:d.localReleaseId,derivedDeviceInterface:d.derivedDeviceInterface,postPlayNonce:a,type:H};K.sequenceGroup=a;e.playState=g?"PLAY_STATE_NOT_READY":p?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Wd("miniAppPlayEvent",e,
K);c&&_.Bd();_.VE(k)})},Dq=function(d,H){var K;
_.l(function(c){if(c.nextAddress==1)return K=(0,_.$G)(),c.yield(d.JSC$16811_playNonceResolver.promise,2);_.Fw(H,K);_.VE(c)})},II3=function(d){isNaN(d.playPingTimerId)&&(d.playPingTimerId=_.lT(function(){d.state!==1&&d.state!==2?_.Jf(new _.m1("[MiniAppPlayLogger] reportPlayPing failed with state "+MFM[d.state])):fY(d,"PLAY_EVENT_TYPE_PLAY_PING")},d.playPingIntervalMs))},JhA=function(d){return Array.from(d.entries()).map(function(H){var K=_.q(H);
H=K.next().value;K=K.next().value;return{key:H,value:K}})};var ZiM=function(){},TL3=function(d,H){d.showMiniAppAdCommand=H.showMiniAppAdCommand;
d.isEmbeddedInWebview=H.isEmbeddedInWebview;d.playLogger=H.playLogger},tFM=function(d,H){var K;
return _.l(function(c){if(c.nextAddress==1){if(!d.showMiniAppAdCommand||!d.isEmbeddedInWebview)return c.return(Qz0(d,H));d.adResolver=new _.ki;var p=new B4;K=_.G1(p,3,H);JE(d.showMiniAppAdCommand,CJN(K));return c.yield(d.adResolver.promise,2)}return c.return(c.yieldResult)})};
ZiM.prototype.onAdFinished=function(d){d=RfC(d);var H;(H=this.adResolver)==null||H.resolve(d)};
var Qz0=function(d,H){var K;return _.l(function(c){if(c.nextAddress==1)c=c.yield((K=d.playLogger)==null?void 0:FI0(K,QiY(H)),2);else{var p=c.return;var g=new CvM;g=_.G1(g,1,2);c=p.call(c,g)}return c})};var YZ0=new _.Av("INNERTUBE_MANAGER_TOKEN");var OiM=function(){this.callbacks={}};
OiM.prototype.initialize=function(d){var H=this;this.callbacks=d;window.youtubewebview?window.youtubewebview.onmessage=function(K){SZ3(H,K)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(K){SZ3(H,K)})};
var SZ3=function(d,H){if(H.data)try{var K=lj7(H.data);if(_.k0(_.n1(K,1))!=null){var c=aRg(_.IB(K,2));switch(K.getMethodName()){case "yt-mini-app-load-audio-state":var p,g;(g=(p=d.callbacks).onAudioStateLoaded)==null||g.call(p,_.wK(c,UD(c,W4,1)));break;case "yt-mute-mini-app":var a,e;(e=(a=d.callbacks).onMuteMiniApp)==null||e.call(a);break;case "yt-unmute-mini-app":var k,C;(C=(k=d.callbacks).onUnmuteMiniApp)==null||C.call(k);break;case "yt-playable-exit":var R,V;(V=(R=d.callbacks).onExit)==null||V.call(R);
break;case "yt-post-play-nonce":var U,L;(L=(U=d.callbacks).onPostPlayNonceReceived)==null||L.call(U,BG(c,2,W4));break;case "yt-confirm-exit-mini-app":var w,W;(W=(w=d.callbacks).confirmExitMiniApp)==null||W.call(w);break;case "yt-confirm-exit-mini-app-edu":var J,F;(F=(J=d.callbacks).confirmExitMiniAppEdu)==null||F.call(J);break;case "yt-benchmarking-response":var Y,A;(A=(Y=d.callbacks).onNativeBenchmarkingMessageReceived)==null||A.call(Y,BG(c,2,W4));break;case "yt-mini-app-load-3p-consent-state":var E,
N;(N=(E=d.callbacks).multiplayer3pAckStateLoaded)==null||N.call(E,_.wK(c,UD(c,W4,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var y,v;(v=(y=d.callbacks).exitMiniAppSeenStateLoaded)==null||v.call(y,_.wK(c,UD(c,W4,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var el,l1;(l1=(el=d.callbacks).onNavigateToNewMiniApp)==null||l1.call(el);break;case "yt-game-data-available":var V4,Mf;(Mf=(V4=d.callbacks).onGameDataAvailable)==null||Mf.call(V4,BG(c,2,W4));break;case "yt-pause-mini-app":var LF,
YY;(YY=(LF=d.callbacks).onPauseMiniApp)==null||YY.call(LF);break;case "yt-resume-mini-app":var FM,gA;(gA=(FM=d.callbacks).onResumeMiniApp)==null||gA.call(FM);break;case "yt-playable-ad-finished":var JN,eS;(eS=(JN=d.callbacks).onAdFinished)==null||eS.call(JN,BG(c,2,W4))}}else _.Jf(Error("Sh"))}catch(vF){_.z5(Error("Th"))}else _.Jf(Error("Uh"))};var YM1=function(d){this.rpcErrorCode=d};var Ad=function(d,H,K){this.intervalMs=d;this.apiFunc=H;this.type=K;this.schedulerReady=!0};
Ad.prototype.call=function(d){var H=this,K;return _.l(function(c){if(c.nextAddress==1){if(H.type!==1&&d===H.cachedValue)return c.return();H.pendingApiRequestResolver||(H.pendingApiRequestResolver=new _.ki);K=H.pendingApiRequestResolver.promise;H.cachedValue=d;return c.yield(EDl(H),2)}return c.return(K)})};
Ad.prototype.flush=function(d){d=d===void 0?!1:d;var H=this;return _.l(function(K){return H.cachedValue===void 0?K.return():K.yield(H.apiFunc(H.cachedValue,d),0)})};
var EDl=function(d){var H,K,c;return _.l(function(p){switch(p.nextAddress){case 1:if(!d.schedulerReady||!d.pendingApiRequestResolver)return p.return();d.schedulerReady=!1;H=d.pendingApiRequestResolver;d.pendingApiRequestResolver=void 0;_.e2(p,2);if(d.cachedValue===void 0){p.jumpTo(4);break}return p.yield(d.apiFunc(d.cachedValue),5);case 5:K=p.yieldResult,H.resolve(K);case 4:_.Em(p,3);break;case 2:c=_.RV(p),H.reject(c);case 3:setTimeout(function(){return _.l(function(g){d.schedulerReady=!0;return g.yield(EDl(d),
0)})},d.intervalMs),_.VE(p)}})};var EuF=window.location.origin+"/miniapp_cloudsaves",O0C=[400,401],yhN=_.iT("cloud_save_game_data_rate_limit_ms",3E3),DKl=function(d){var H=this;this.JSC$16855_miniAppId=d;this.loadAttempts=0;this.cloudSaveIntervalMs=yhN;this.initialDownloadDataSucceeded=!1;this.JSC$16855_playNonceResolver=new _.ki;this.scottyUploadRateLimiter=new Ad(this.cloudSaveIntervalMs,function(K,c){return biS(H,K,c)},2);
this.downloadDataPromise=NLX(this);this.downloadDataPromise.then(function(){H.initialDownloadDataSucceeded=!0}).catch(function(){})},fIX=function(d,H){H.then(function(K){return d.JSC$16855_playNonceResolver.resolve(K)})},Ahl=function(d){return _.l(function(H){return d.cachedData===void 0?H.return(d.downloadDataPromise):H.return(d.cachedData)})},jzB=function(d,H){return _.l(function(K){d.cachedData=H;
if(!d.initialDownloadDataSucceeded)throw Error("Vh");return K.yield(d.scottyUploadRateLimiter.call(H),0)})},vD0=function(){return new Promise(function(d){setTimeout(d,1E3,"")})},daX=function(d,H){var K,c;
return _.l(function(p){if(p.nextAddress==1)return K=d.JSC$16855_miniAppId,p.yield(Promise.race([d.JSC$16855_playNonceResolver.promise,vD0()]),2);c={"X-YouTube-MiniAppId":K,"X-YouTube-PostPlayNonce":p.yieldResult};"DELEGATED_SESSION_ID"in _.Jm&&TVM(H,c);return p.return(c)})},biS=function(d,H,K){K=K===void 0?!1:K;
return _.l(function(c){return tsX()?_.h("enable_cloud_save_error_popup_after_retry")?c.return(new Promise(function(p,g){var a,e,k,C,R;return _.l(function(V){switch(V.nextAddress){case 1:a=0,e=!0,C=k=null;case 2:if(!(e&&a++<2)){V.jumpTo(4);break}_.e2(V,5);return V.yield(H2A(d,H,K),7);case 7:k=V.yieldResult;e=k.ok?!1:!O0C.includes(k.status);_.Em(V,2);break;case 5:C=R=_.RV(V);e=SMi(C);V.jumpTo(2);break;case 4:k?k.ok?(jI(d,yhN),p()):(jI(d,d.cloudSaveIntervalMs*2),g(Error("Wh`"+String(k.status),{cause:{rpcErrorCode:k.status}}))):
(jI(d,d.cloudSaveIntervalMs*2),g(C||Error("Xh"))),_.VE(V)}})})):c.return(new Promise(function(p,g){var a,e;
return _.l(function(k){if(k.nextAddress==1){if(d.JSC$16855_miniAppId==="")return g(Error("Yh")),k.return();_.e2(k,2);return k.yield(H2A(d,H,K),4)}if(k.nextAddress!=2)return a=k.yieldResult,a.ok?(jI(d,yhN),p()):(jI(d,d.cloudSaveIntervalMs*2),g(Error("Wh`"+String(a.status),{cause:{rpcErrorCode:a.status}}))),_.Em(k,0);e=_.RV(k);jI(d,d.cloudSaveIntervalMs*2);g(e);_.VE(k)})})):c.return()})},H2A=function(d,H,K){K=K===void 0?!1:K;
var c,p,g;return _.l(function(a){if(a.nextAddress==1)return c=_.mb((new TextEncoder).encode(H)),p=ylC(),a.yield(daX(d,p),2);g=a.yieldResult;return a.return(fetch(p,{method:"POST",body:new Blob([c]),headers:g,keepalive:K}))})},NLX=function(d){var H,K;
return _.l(function(c){if(c.nextAddress==1){if(!tsX())return c.return("");if(d.JSC$16855_miniAppId==="")throw Error("Yh");if(d.loadAttempts>2)return c.return(d.downloadDataPromise);_.e2(c,2);return c.yield($aA(d),4)}if(c.nextAddress!=2)return H=c.yieldResult,c.return(H);K=_.RV(c);if(SMi(K)&&++d.loadAttempts<2)return c.return(NLX(d));throw K;})},$aA=function(d){var H,K,c,p,g;
return _.l(function(a){switch(a.nextAddress){case 1:return _.e2(a,2),H=ylC(),a.yield(daX(d,H),4);case 4:return K=a.yieldResult,a.yield(fetch(H,{method:"GET",headers:K}),5);case 5:return c=a.yieldResult,c.ok?a.yield(c.text(),6):a.return(Promise.reject(Error("Zh`"+String(c.status),{cause:new YM1(c.status)})));case 6:return p=a.yieldResult,a.return((new TextDecoder).decode(_.fF(p)));case 2:return g=_.RV(a),a.return(Promise.reject(g))}})},jI=function(d,H){d.cloudSaveIntervalMs=H;
d.scottyUploadRateLimiter.intervalMs=d.cloudSaveIntervalMs};
DKl.prototype.flush=function(){var d=this;return _.l(function(H){return d.initialDownloadDataSucceeded?H.yield(d.scottyUploadRateLimiter.flush(!0),0):H.return()})};var KkN=c4(Ka(1),H4(1)),ce3=c4(Ka(1),H4(3)),vJ=function(d){this.callbacks=d};
_.G=vJ.prototype;_.G.onAudioToggled=function(d,H){(H===void 0||H)&&_.kC("yt-mini-app-is-audio-enabled",d,2592E3)};
_.G.onPause=function(){this.onAudioToggled(!1,!1)};
_.G.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.G.returnNativeBenchmarkingMessage=function(){};
_.G.sendGameData=function(){};
_.G.sendStartGameFrameCapture=function(){};
var b01=function(d,H,K){this.callbacks=d;var c=this;this.sdkVersion=new _.ki;this.channel=new XSM(_.AS({destination:window,iframe:H,origin:(new URL(K.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var p=dT;var g=Ka(5);var a=new uh7;a=_.Xh(a,1,1E4);g=_.nc(g,4,sBM,a);p(c,g);c.onAudioToggled(c.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){c.sdkVersion.resolve("")},1E4)};
_.m(b01,vJ);_.G=b01.prototype;_.G.onAudioToggled=function(d,H){vJ.prototype.onAudioToggled.call(this,d,H===void 0?!0:H);H=dT;var K=Ka(2),c=new wG0;d=_.gk(c,1,d);d=_.nc(K,3,sBM,d);H(this,d)};
_.G.onPause=function(){vJ.prototype.onPause.call(this);dT(this,Ka(3))};
_.G.onResume=function(){vJ.prototype.onResume.call(this);dT(this,Ka(4))};
_.G.returnNativeBenchmarkingMessage=function(d){var H=dT,K=Ka(6);var c=H4(_.C1(d,SR,1)?1:2);d=_.C1(d,SR,1)?d:null;c=_.nc(c,5,$4,d);H(this,c4(K,c))};
_.G.sendGameData=function(d){var H=dT,K=Ka(7);d=_.nc(K,5,sBM,d);H(this,d)};
_.G.sendStartGameFrameCapture=function(){dT(this,Ka(9))};
var Hl=function(d,H,K){var c,p,g;return _.l(function(a){if(a.nextAddress==1)return c=d.callbacks,p=c.onSdkCalled,g=H,a.yield(d.sdkVersion.promise,2);p.call(c,g,a.yieldResult,K);_.VE(a)})};
b01.prototype.onMessage=function(){var d=this;return FM5(i$,function(H){var K,c,p,g,a,e,k,C,R,V,U,L,w,W,J,F,Y,A,E,N,y,v,el,l1,V4,Mf,LF,YY,FM,gA,JN,eS,vF,CX,kd,BB,ug,fX,pF,dA,U3,lg,hN,Hv,$s,dq;return _.l(function(oC){switch(oC.nextAddress){case 1:if(!EV3(H.data))return _.Jf(Error("$h")),oC.return();K=_.rK(H.data,1);_.h("enable_iframe_message_get_type_via_fields")&&(c=H.data,K=p=_.rK(c,1));switch(K){case 8:if(H.data.hasMetadata()){var NU=d.sdkVersion,RZ=NU.resolve;var uM=H.data.getMetadata();uM=_.IB(uM,
1);RZ.call(NU,uM);clearTimeout(d.sdkVersionTimeoutId)}break;case 6:return oC.jumpTo(2);case 16:if(!_.RB(H.data,TK3,14,Gz))return oC.return();g=_.zZ(H.data,TK3,14,Gz);(e=(a=d.callbacks).onGameFrameReceived)==null||e.call(a,g);return oC.return();case 17:if(!_.RB(H.data,Z1l,15,Gz))return oC.return();(C=(k=d.callbacks).onGameAudioReceived)==null||C.call(k,_.zZ(H.data,Z1l,15,Gz));return oC.return();case 1:if(NU=_.zZ(H.data,WtA,2,Gz))switch(_.rK(NU,1)){case 1:d.callbacks.onFirstFrameReady();if(_.h("enable_network_request_logging_on_game_events")&&
_.C1(NU,vZ,4)){Hl(d,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.gF(NU,vZ,4));break}Hl(d,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(uM=(RZ=d.callbacks).onGameReady)==null||uM.call(RZ);if(_.h("enable_network_request_logging_on_game_events")&&_.C1(NU,vZ,4)){Hl(d,"MINI_APP_SDK_API_GAME_READY",_.gF(NU,vZ,4));break}Hl(d,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.RB(NU,dY,3,BKC))d.callbacks.onResourceLoaded(_.zZ(NU,dY,3,BKC))}return oC.return();case 3:return oC.jumpTo(3);case 4:return oC.jumpTo(4);
case 2:return oC.jumpTo(5);case 9:return oC.jumpTo(6);case 10:return d.callbacks.onClick(),oC.return();case 5:return oC.jumpTo(7);case 11:if(!_.RB(H.data,fN,9,Gz))return oC.return();R=_.zZ(H.data,fN,9,Gz);(U=(V=d.callbacks).onBenchmarkingMessageReceived)==null||U.call(V,R);NU=H.reply;RZ=Ka(1);uM=H4(1);var IC=new fN;var Lt=new Uint8Array(ceL(R,UD(R,UJU,6))|0);IC=xr(IC,5,UJU,_.PB(Lt,!1));uM=_.nc(uM,5,$4,IC);NU.call(H,c4(RZ,uM));return oC.return();case 12:return oC.jumpTo(8);case 13:return oC.jumpTo(9);
case 15:if(!_.h("enable_open_yt_content"))return H.reply(ce3),oC.return();if(!_.RB(H.data,Ft7,12,Gz))return H.reply(c4(Ka(1),H4(2))),oC.return();NU=_.zZ(H.data,Ft7,12,Gz);L=_.IB(NU,1);d.callbacks.onOpenYTContent(L);H.reply(KkN);return oC.return();case 14:return oC.jumpTo(10);default:return oC.return()}oC.jumpTo(0);break;case 2:if(!_.RB(H.data,pa,5,Gz))return oC.return();RZ=H.data;NU=UD(RZ,Gz,5);RZ=RZ.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;w=zjD(RZ,RZ[_.pX]|0,pa,NU)||pa[JN1]||(pa[JN1]=
sCM(pa));NU=_.dk(w,AQ,1,_.Hz());W=_.q(NU);J=W.next();case 12:if(J.done){oC.jumpTo(14);break}F=J.value;Y=new _.m1;Y.level=_.rK(F,2)===1?"WARNING":"ERROR";A=DDF(F.getSource());return oC.yield(d.sdkVersion.promise,15);case 15:E={source:A,sdkVersion:oC.yieldResult};_.AN(_.n1(F,6))!=null?(Y.message=F.getMessage(),Y.stack=_.IB(F,5),E.sdkErrorType=fUL(_.rK(F,6)),_.AN(_.n1(F,7))!=null&&(E.sdkApi=AlF(_.rK(F,7)))):Y.stack=void 0;y=N=void 0;(y=(N=d.callbacks).onError)==null||y.call(N,{loggingError:Y,metadata:E});
J=W.next();oC.jumpTo(12);break;case 14:return oC.return();case 3:return _.e2(oC,16),NU=oC.yield,RZ=d.callbacks,uM=RZ.onSave,IC=_.zZ(H.data,Pv6,4,Gz),IC=_.IB(IC,1),NU.call(oC,uM.call(RZ,IC),18);case 18:H.reply(KkN);_.Em(oC,17);break;case 16:return v=_.RV(oC),el=s7,l1=v,V4=d.callbacks,Mf="MINI_APP_SDK_API_SAVE_DATA",oC.yield(d.sdkVersion.promise,19);case 19:el(l1,V4,Mf,oC.yieldResult),H.reply(ce3);case 17:return oC.yield(Hl(d,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return oC.return();case 4:return _.e2(oC,
21),oC.yield(d.callbacks.onLoad(),23);case 23:LF=oC.yieldResult;NU=H.reply;RZ=Ka(1);uM=H4(1);IC=new Pv6;IC=_.UY(IC,1,LF);uM=_.nc(uM,3,$4,IC);NU.call(H,c4(RZ,uM));_.Em(oC,22);break;case 21:return YY=_.RV(oC),FM=s7,gA=YY,JN=d.callbacks,eS="MINI_APP_SDK_API_LOAD_DATA",oC.yield(d.sdkVersion.promise,24);case 24:FM(gA,JN,eS,oC.yieldResult),H.reply(ce3);case 22:return oC.yield(Hl(d,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return oC.return();case 5:_.e2(oC,26);d.callbacks.onSendHighScore(Wz(_.zZ(H.data,
O1N,3,Gz).getValue()));H.reply(c4(Ka(1),H4(1)));_.Em(oC,27);break;case 26:return vF=_.RV(oC),CX=s7,kd=vF,BB=d.callbacks,ug="MINI_APP_SDK_API_SEND_SCORE",oC.yield(d.sdkVersion.promise,28);case 28:CX(kd,BB,ug,oC.yieldResult),H.reply(ce3);case 27:return oC.yield(Hl(d,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return oC.return();case 6:if(!_.RB(H.data,SuM,8,Gz)){oC.jumpTo(30);break}NU=oC.yield;RZ=_.zZ(H.data,SuM,8,Gz);RZ=_.rK(RZ,1);return NU.call(oC,Hl(d,AlF(RZ)),30);case 30:return oC.return();case 7:return NU=
H.reply,RZ=Ka(1),uM=H4(1),IC=d.callbacks.getLanguage(),uM=xr(uM,4,$4,aZ(IC)),NU.call(H,c4(RZ,uM)),oC.yield(Hl(d,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return oC.return();case 8:if(!_.RB(H.data,Yu7,10,Gz))return oC.return();fX=_.zZ(H.data,Yu7,10,Gz);pF=d.callbacks;dA=pF.onSdkPerformanceUpdate;return oC.yield(d.sdkVersion.promise,33);case 33:return dA.call(pF,fX,oC.yieldResult),oC.return();case 9:NU=H.data;RZ=UD(NU,Gz,11);if(_.k0(_.n1(NU,RZ))==null)return H.reply(c4(Ka(1),H4(2))),oC.return();
U3=BG(H.data,11,Gz);d.callbacks.onShareInviteCode(U3);H.reply(KkN);return oC.yield(Hl(d,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return oC.return();case 10:if(_.RB(H.data,mJ3,13,Gz)){oC.jumpTo(35);break}return oC.yield(d.callbacks.onShowMiniAppAd(2),36);case 36:return lg=oC.yieldResult,H.reply(c4(Ka(1),XGS(lg))),oC.yield(Hl(d,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return oC.return();case 35:NU=_.zZ(H.data,mJ3,13,Gz);a:switch(_.rK(NU,1)){case 1:NU={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:NU={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:NU={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}hN=NU;Hv=hN.adType;$s=hN.sdkApi;NU=oC.yield;RZ=d.callbacks;uM=RZ.onShowMiniAppAd;IC=_.zZ(H.data,mJ3,13,Gz);IC=_.IB(IC,2);return NU.call(oC,uM.call(RZ,Hv,IC||void 0),38);case 38:return dq=oC.yieldResult,H.reply(c4(Ka(1),XGS(dq))),oC.yield(Hl(d,$s),39);case 39:return oC.return()}})})};
var dT=function(d,H){_.l(function(K){d.channel.send(H);_.VE(K)})},Fc=function(d,H,K){this.callbacks=d;
var c=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;d=OcL(H,(new URL(K.toString())).origin);this.gameSnacks=new ftF(d);this.gameSnacks.page.onReady(function(){c.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){c.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var p,g;(g=(p=c.callbacks).onGameReady)==null||g.call(p)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(p,g){try{c.callbacks.onSendHighScore(g)}catch(a){s7(a,c.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(p,g){var a;return _.l(function(e){if(e.nextAddress==1)return _.e2(e,2),e.yield(c.callbacks.onSave(c.decoder.decode(g)),4);if(e.nextAddress!=2)return _.Em(e,0);a=_.RV(e);s7(a,c.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return e.return()})});
this.gameSnacks.storage.onLoad(function(){var p,g;return _.l(function(a){if(a.nextAddress==1)return _.e2(a,2),a.yield(c.callbacks.onLoad(),4);if(a.nextAddress!=2)return p=a.yieldResult,a.return(c.encoder.encode(p));g=_.RV(a);s7(g,c.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return a.return(c.encoder.encode(""))})});
this.gameSnacks.init()};
_.m(Fc,vJ);Fc.prototype.onAudioToggled=function(d,H){vJ.prototype.onAudioToggled.call(this,d,H===void 0?!0:H);var K;(K=this.gameSnacks)==null||K.audio.update(d)};
Fc.prototype.onPause=function(){vJ.prototype.onPause.call(this);var d;(d=this.gameSnacks)==null||d.game.pause()};
Fc.prototype.onResume=function(){vJ.prototype.onResume.call(this);var d;(d=this.gameSnacks)==null||d.game.resume()};var pa6=jil,go7=_.H1(function(d){var H=d.data;var K=d.loadingProgress;var c=d.forPaused;d=_.q(_.GO("",void 0,"H20Jvc"));var p=d.next().value,g=d.next().value;d=_.q(_.GO(!1,void 0,"wB49T"));var a=d.next().value,e=d.next().value,k=[],C=function(){return"transform: scaleX("+(_.IH(K)||0)+")"},R=null,V=function(){return H()&&R!==null&&R!==void 0?R:R=H().showAnniversaryAnimation?6:pa6()};
_.wc(function(){var W;if(H().timeOutMessages&&((W=H().timeOutMessages)==null?0:W.length)){R=null;W=_.q(k);for(var J=W.next();!J.done;J=W.next())clearTimeout(J.value);k.length=0;vuX(H().timeOutMessages,k,g,e)}},"BsN3G");
var U=function(){return!!H().persistentErrorMessageTitle},L=function(){return K!==void 0},w=function(){return H().title};
return _.x("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.x("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.x("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.x("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var W,J=(W=H().backgroundImage)==null?void 0:W.sources,F;return(J==null?0:J.length)?"background-image: url("+((F=J[0])==null?void 0:F.url)+")":
""}}),_.x("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.x(_.n,{cond:function(){return!U()&&!(c==null?0:c())},
then:function(){var W={};return _.x("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.x("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.x(_.hT,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+V()},
data:function(){var J="loading_animation_"+V();return{animationConfig:{name:J,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+J+".json",loop:!0,autoplay:!0}}}})),_.x("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.x(_.n,{cond:w,
then:function(){return _.x("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},w)}}),_.x("p",{class:_.xM("mini-app-splash-screen-view-model-wiz__timeout-message",(W["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return a()},W)),
"aria-live":"polite"},p),_.x(_.n,{cond:L,then:function(){return _.x("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.x("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:C}))}})))}}),_.x(_.n,{cond:U,
then:function(){return _.x("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.x("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return H().persistentErrorMessageTitle}),_.x(_.n,{cond:function(){return!!H().persistentErrorMessageDescription},
then:function(){return _.x("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return H().persistentErrorMessageDescription})}}))}}),_.x(_.n,{cond:c,
then:function(){return _.x("div",{class:"mini-app-splash-screen-view-model-wiz__pause-content"},_.x("img",{class:"mini-app-splash-screen-view-model-wiz__pause-icon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.x("h3",{class:"mini-app-splash-screen-view-model-wiz__pause-message"},w))}})))},"ke");var i27=new _.Av("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var GKX=Dp;Dp=function(d){function H(K){if(K){var c,p;(c=K.__spec)==null||(p=c.didUnmount)==null||p.call(c);for(c=0;c<K.childNodes.length;c++)H(K.childNodes[c])}}
GKX==null||GKX(d);B1(function(){for(var K=0;K<d.length;K++)H(d[K])})};var ooM=_.H1(function(d){var H=d.data;var K=d.score;var c=d.formattedScore;var p=d.onScoreChanged;var g=d.isEmbeddedInWebview;var a=_.jV("yt-mini-app-score-button-view-model"),e=function(){var L;return _.M(H==null?void 0:(L=H())==null?void 0:L.buttonViewModel,_.OV)},k=function(){var L;
return(K==null?void 0:K())||Number(H==null?void 0:(L=H())==null?void 0:L.lastScore)||0},C=function(){var L;
return(c==null?void 0:c())||((L=e())==null?void 0:L.title)||""},R,V=1;
if(d=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))d=Number(d),V=isNaN(d)?1:d/100;_.wc(function(){p==null||p(k());var L;var w=_.T6((L=e())==null?void 0:L.onTap);if(w){L=_.M(w,mwA);var W,J,F;L=_.M(L==null?void 0:(W=L.panelLoadingStrategy)==null?void 0:(J=W.inlineContent)==null?void 0:(F=J.dialogViewModel)==null?void 0:F.customContent,RnN)}else L=void 0;if(W=L)W.score=C()},"KZFi5e");
d=_.n7(function(){var L,w,W=H==null?void 0:(L=H())==null?void 0:(w=L.loggingDirectives)==null?void 0:w.trackingParams;W&&_.nU(_.Kj().resolve(_.BC),W);return!1});
_.WE(function(){if(a.value){var L=a.value.querySelector("button"),w=e();L&&w&&d4M(L,w);$l("yt-share-playable-with-high-score",function(){var W=k().toString(),J=H==null?void 0:H().onShareHighScoreCommand,F=H==null?void 0:H().highScoreShareClientParamIdentifier,Y=g==null?void 0:g();J&&(Y?(F=new lE3,W=_.UY(F,2,W),JE(J,W.JSC$12301_serializeBinary())):F&&(_.Kj().resolve(i27).clientParams.set(F,{miniAppClientParams:{highScore:W}}),sih(J,!1)))})}});
var U=function(){var L=e();L&&(K==null?0:K())&&L.accessibilityText&&(L.accessibilityText=L.accessibilityText.replace(R,C()));R=C();return{numberValue:k(),numberText:C(),heightPx:36,fontSizeMultiplier:V,shouldAnimate:!(K==null||!K())&&!0}};
return _.x("yt-mini-app-score-button-view-model",{class:function(){var L={};return _.zx("mini-app-score-button-view-model-wiz",(L["mini-app-score-button-view-model-wiz--is-visible"]=k()!==0,L))},
el:a,"on:click":d},Ct4(!1,function(){return _.x("span",{style:"display:none;"},k)}),_.x(_.wB,{data:function(){var L;
return H==null?void 0:(L=H())==null?void 0:L.buttonViewModel}},{buttonViewModel:function(L){return _.x(_.xk,{data:L.data,
animatedTextProps:U})}}))},"le");var kKM=_.H1(function(d){var H,K=(H=_.xC("yt-mini-app-is-theater-mode-enabled"))!=null?H:!1,c=_.h("enable_playable_container_save_button"),p=_.h("enable_play_next_destination_page_in_toolbar");H={};return _.x("ytm-mini-app-top-bar-view-model",null,_.x("div",{class:_.xM("yt-mini-app-top-bar-view-model",(H["yt-mini-app-top-bar-view-model--mobile"]=!1,H["yt-mini-app-top-bar-view-model--desktop"]=!0,H))},_.x("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.x(_.n,{cond:function(){var g;
return!!d.data().backButtonEdu&&!((g=d.isExitMiniAppSeen)==null?0:g.call(d))},
then:function(){return _.x(_.wB,{data:function(){return d.data().backButtonEdu}},{buttonViewModel:_.xk})},
else:function(){return _.x(_.wB,{data:function(){return d.data().backButton}},{buttonViewModel:_.xk})}}),_.x(_.n,{cond:function(){return d.data().viewAllButton&&!0},
then:function(){return _.x(_.wB,{data:function(){return d.data().viewAllButton}},{buttonViewModel:_.xk})}}),_.x(_.n,{cond:function(){return d.data().title&&!0},
then:function(){return _.x("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return d.data().title})}})),_.x("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.x(_.n,{cond:function(){var g;
return(g=d.isDesktopPlayPage)==null?void 0:g.call(d)},
then:function(){return _.x(_.HE,null,_.x(qz7,{highScoreButton:function(){return d.data().highScoreButton},
score:d.score,formattedScore:d.formattedScore,onScoreChanged:d.onScoreChanged,isEmbeddedInWebview:d.isEmbeddedInWebview}),_.x(a2d,{enableSaveButton:function(){return _.IH(c)},
saveButton:function(){return d.data().saveButton},
isSaved:d.isSaved,onSaveToggled:function(){return d.onSaveToggled}}),_.x(l2l,{menuButton:function(){return d.data().menuButton}}))},
else:function(){return _.x(_.n,{cond:function(){return!1},
then:function(){return _.x(_.wB,{data:function(){return d.data().playPageButton}},{buttonViewModel:function(g){return _.x(_.xk,{data:g.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.x(qz7,{highScoreButton:function(){return d.data().highScoreButton},
score:d.score,formattedScore:d.formattedScore,onScoreChanged:d.onScoreChanged,isEmbeddedInWebview:d.isEmbeddedInWebview})}})}})),_.x("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.x(_.wB,{data:function(){return d.data().muteButton}},{toggleButtonViewModel:function(g){var a=g.data;
return _.x(_.zm,{data:function(){var e,k;return Object.assign({},a(),{isToggled:(k=(e=d.isAudioEnabled)==null?void 0:e.call(d))!=null?k:!0})},
onToggle:d.onAudioToggled,useOutlinedIcon:!0})}}),_.x(_.wB,{data:function(){return d.data().theatreModeButton}},{toggleButtonViewModel:function(g){var a=g.data;
return _.x("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.x(_.zm,{data:function(){return Object.assign({},a(),{isToggled:K})},
useOutlinedIcon:!0}))}}),_.x(eg0,{fullscreenButton:function(){return d.data().fullscreenButton}}),_.x(_.n,{cond:function(){return _.IH(p)&&d.data().viewAllButton&&!1},
then:function(){return _.x(_.wB,{data:function(){return d.data().viewAllButton}},{buttonViewModel:_.xk})}}),_.x(_.n,{cond:function(){var g;
return!((g=d.isDesktopPlayPage)==null?0:g.call(d))},
then:function(){return _.x(_.HE,null,_.x(a2d,{enableSaveButton:function(){return _.IH(c)},
saveButton:function(){return d.data().saveButton},
isSaved:d.isSaved,onSaveToggled:function(){return d.onSaveToggled}}),_.x(l2l,{menuButton:function(){return d.data().menuButton}}))}}))))},"me");
kKM.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var l2l=_.H1(function(d){return _.x(_.wB,{data:d.menuButton},{buttonViewModel:_.xk})},"ne"),a2d=_.H1(function(d){var H=d.enableSaveButton;
var K=d.saveButton;var c=d.isSaved;var p=d.onSaveToggled;return _.x(_.n,{cond:function(){return H()&&!(K==null||!K())},
then:function(){return _.x(_.wB,{data:function(){var g=_.M(K==null?void 0:K(),_.EV),a;return{toggleButtonViewModel:Object.assign({},g,{isToggled:(a=c==null?void 0:c())!=null?a:!(g==null||!g.isToggled)})}}},{toggleButtonViewModel:function(g){return _.x(_.zm,{data:g.data,
onToggle:p})}})}})},"oe"),qz7=_.H1(function(d){var H=d.highScoreButton;
var K=d.score;var c=d.formattedScore;var p=d.onScoreChanged;var g=d.isEmbeddedInWebview;return _.x(_.wB,{data:H},{miniAppScoreButtonViewModel:function(a){return _.x(ooM,{data:a.data,score:K,formattedScore:c,onScoreChanged:p,isEmbeddedInWebview:g})}})},"pe"),eg0=_.H1(function(d){d=d.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.x(_.HE,null):_.x(_.wB,{data:d},{buttonViewModel:_.xk})},"qe");_.xaN=new _.Av("DESKTOP_CURRENT_PAGE");var hgg=_.H1(function(d){var H=d.data;var K=_.h("force_active_time_logging_webview"),c=!1,p=new OiM,g=void 0,a=void 0,e=_.Kj().resolve(YZ0),k=new ZiM,C=void 0,R=void 0,V=[],U=void 0,L=void 0,w=!1,W=!1,J=!1,F=!1,Y=new _.ki,A=_.Kj().resolve(i27),E=_.Kj().resolve(_.Nb),N=_.Kj().resolve(_.$p(L_)),y,v=(y=_.Kj().resolve(_.$p(_.xaN)))==null?void 0:y.getCurrentPage(),el=!1,l1=0,V4=function(Nf){Nf.preventDefault();return Nf.returnValue=""},Mf;
d=_.q(_.GO(!((Mf=_.xC("yt-mini-app-is-audio-enabled"))!=null&&!Mf),void 0,"cGaEvf"));var LF=d.next().value,YY=d.next().value,FM;Mf=_.q(_.GO(!((FM=_.xC("exit-mini-app-seen-state"))==null||!FM),void 0,"DctXGe"));var gA=Mf.next().value,JN=Mf.next().value;FM=_.q(_.GO(!1,void 0,"pU1jdd"));var eS=FM.next().value,vF=FM.next().value;FM=_.q(_.GO(void 0,void 0,"ldLqDf"));var CX=FM.next().value,kd=FM.next().value;FM=_.q(_.GO(void 0,void 0,"mdofE"));var BB=FM.next().value,ug=FM.next().value;FM=_.q(_.GO(!0,void 0,
"T1gxCf"));var fX=FM.next().value,pF=FM.next().value;FM=_.q(_.GO(!1,void 0,"Dp92Vb"));var dA=FM.next().value,U3=FM.next().value;FM=_.q(_.GO(!1,void 0,"AsJEvf"));var lg=FM.next().value,hN=FM.next().value;FM=_.q(_.GO(void 0,void 0,"c55ogf"));var Hv=FM.next().value,$s=FM.next().value;FM=_.q(_.GO(0,void 0,"UuaLqf"));var dq=FM.next().value,oC=FM.next().value,NU=_.Af("mini-app-container-view-model"),RZ=function(){return H().isEmbeddedInWebview},uM=function(){return H().hasPlayNextShelf};
$l("yt-page-type-changed",function(Nf){if(_.h("enable_is_mini_app_page_active_bugfix"))Nf.detail.newPageSubtype==="mini_app"&&Nf.detail.newPageType==="ytd-browse"||!fX()||qj();else if(Nf=_.W0D()==="mini_app",Nf!==fX())if(pF(Nf),Nf){var V1;Nf=(V1=H().playableId)==null?void 0:V1.toString();Nf!==void 0&&window.location.href.includes(Nf)&&!W&&(F=!0,IC(),kO.value&&hA(kO.value))}else Nf||qj()});
$l("yt-action",function(Nf){Nf.detail.actionName==="yt-engagement-panel-visible-changed"&&Nf.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Nf.detail.args[2]==="PAmini_app_panel"&&qj();_.h("enable_is_mini_app_page_active_bugfix")?Nf.detail.actionName==="yt-history-load"&&!fX()&&(v==null?0:v.active)?(pF(!0),IC(),kO.value&&hA(kO.value)):Nf.detail.actionName==="yt-history-load"&&fX()&&!H().isEmbeddedInWebview&&Yd():fX()&&Nf.detail.actionName==="yt-history-load"&&(F?F=!1:H().isEmbeddedInWebview||
Yd())});
_.Pk(function(){Lt()});
_.wc(function(){IC()},"gpydpe");
var IC=function(){var Nf=H().playableId,V1=H().localReleaseId,sU=H().derivedDeviceInterface;if(W)_.Jf(new _.m1("[MiniAppContainerViewModel] onEnter was called more than once"));else{W=!0;g=new wDU(Nf,V1,sU,document.visibilityState==="visible");rh6(g);a=new DKl(Nf);noA(e,Nf);TL3(k,{showMiniAppAdCommand:H().showMiniAppAdCommand,isEmbeddedInWebview:H().isEmbeddedInWebview,playLogger:g});mRh()&&(L=document.body.style.backgroundColor,_.X2(document.body,"background-color","black"));Zz();XO();Y=new _.ki;
if(H().isEmbeddedInWebview){if(Nf=(new URLSearchParams(window.location.search)).get("postPlayNonce"))uPA(g,Nf),el=!0;p.initialize({onAudioStateLoaded:function(ig){L5(ig)},
onMuteMiniApp:function(){L5(!1)},
onUnmuteMiniApp:function(){L5(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(ig){el||(uPA(g,ig),el=!0)},
confirmExitMiniApp:function(){var ig,or,Su;return _.l(function(XB){if(XB.nextAddress==1)return H().confirmExitMiniAppCommand?XB.yield(Promise.race([Y.promise,Promise.resolve(!1)]),2):XB.return();(ig=XB.yieldResult)?!H().confirmExitMiniAppCommandEdu||(Su=(or=gA)==null?void 0:or())!=null&&Su?LB(H().confirmExitMiniAppCommand):(LB(H().confirmExitMiniAppCommandEdu),_.kC("exit-mini-app-seen-state","true",2592E6)):LB(H().closeMiniAppCommand);_.VE(XB)})},
onNativeBenchmarkingMessageReceived:function(ig){ig=Lt3(_.XYM(ig));if(_.RB(ig,_.z_,3,V3l)){var or=_.zZ(ig,_.z_,3,V3l),Su=Fj4();var XB=Wz(Su.getSeconds())-Wz(or.getSeconds());or=_.$1(Su,2)-_.$1(or,2);XB<0&&or>0?(XB+=1,or-=1E9):XB>0&&or<0&&(--XB,or+=1E9);XB=(new SR).setSeconds(XB);XB=_.D5(XB,2,_.jS(or),0);_.eE(ig,1,XB)}var tR;(tR=R)==null||tR.returnNativeBenchmarkingMessage(ig)},
multiplayer3pAckStateLoaded:function(ig){Yd(ig)},
exitMiniAppSeenStateLoaded:function(ig){H().confirmExitMiniAppCommandEdu&&JN(ig)},
onNavigateToNewMiniApp:function(){LB(H().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(ig){ig=new URLSearchParams(ig);var or=void 0;ig.has("invite_code")&&(or=new rS7,ig=ig.get("invite_code"),or=_.UY(or,1,ig));if(ig=or){var Su;(Su=R)==null||Su.sendGameData(ig)}},
onPauseMiniApp:function(){c=!0;nt()},
onResumeMiniApp:function(){c=!0;uk()},
onAdFinished:function(ig){k.onAdFinished(ig)}});
H().showMultiplayer3pConsentDialogCommand||Y.resolve(!0);LB(H().onContainerReadyCommand)}else uPA(g),Y.resolve(!0);fIX(a,Pzg(g));Pzg(g).then(function(ig){ig={miniAppPlayData:{postPlayNonce:ig}};var or,Su=(or=H().loggingDirectives)==null?void 0:or.trackingParams;Su&&_.hR().stateChanged(Su,ig)});
Nf=H().showSignInDialogCommand;!tsX()&&Nf&&(_.kC("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),LB(Nf));H().confirmExitMiniAppCommand&&N&&(Nf=XTY(H().confirmExitMiniAppCommand))&&(N.customConfirmationCommand=Nf)}},Lt=function(){L&&_.X2(document.body,"background-color",L);
w=!1;U&&U.release();a.flush().catch(function(Nf){_.Jf(Nf)});
e.flush().catch(function(Nf){_.Jf(Nf)});
BLB(g);Qp();R=void 0;C76(A)},qj=function(){pF(!1);
Lt();vF(!1);$s(void 0);kd(void 0);ug(void 0);l1=0;oC(0);W=!1},nt=function(){var Nf;
(Nf=R)==null||Nf.onPause();U&&U.release();a.flush().catch(function(V1){_.Jf(V1)});
e.flush().catch(function(V1){_.Jf(V1)});
WI6(g);U3(!0)},uk=function(){var Nf;
(Nf=R)==null||Nf.onResume();XO();Nf=g;Nf.isForeground=!0;fY(Nf,"PLAY_EVENT_TYPE_PLAY_RESUME");U3(!1)},L5=function(Nf){var V1;
(V1=R)==null||V1.onAudioToggled(Nf);YY(Nf)},Yd=function(Nf){H().showMultiplayer3pConsentDialogCommand&&(H().isEmbeddedInWebview&&Nf!==void 0&&Y.resolve(Nf),!Nf&&_.W0D()==="mini_app"&&LB(H().showMultiplayer3pConsentDialogCommand))},FO=function(){var Nf,V1,sU,ig;
return _.l(function(or){if(or.nextAddress==1){!H().isLivestream||H().disableVideoCapture||(Nf=R)!=null&&Nf.sendStartGameFrameCapture();V1=(new URL(window.location.href)).searchParams;if(V1.has("invite_code")){var Su=new rS7,XB=V1.get("invite_code");sU=_.UY(Su,1,XB);(ig=R)==null||ig.sendGameData(sU)}eS()||(vF(!0),Su=g,Su.state!==1?_.Jf(new _.m1("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+MFM[Su.state])):(_.o5("mini_app_ids_without_game_ready").includes(Su.JSC$16811_miniAppId)&&(Su.gameReady=
!0),Su.state=2,Su.beforeReady=!1,Dq(Su,"ma_ffr"),fY(Su,"PLAY_EVENT_TYPE_PLAY_READY")));return or.yield(Y.promise,2)}LB(H().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();H().isEmbeddedInWebview||Yd();_.VE(or)})},EU=function(){var Nf=g;
Nf.gameReady=!0;Dq(Nf,"ma_gr")},mr=function(Nf){var V1;
return _.l(function(sU){if(sU.nextAddress==1)return _.e2(sU,2),sU.yield(jzB(a,Nf),4);if(sU.nextAddress!=2)return _.Em(sU,0);V1=_.RV(sU);LB(H().showSavingErrorPopupCommand);throw V1;})},p6=function(){var Nf,V1;
return _.l(function(sU){if(sU.nextAddress==1)return _.e2(sU,2),sU.yield(Ahl(a),4);if(sU.nextAddress!=2)return Nf=sU.yieldResult,sU.return(Nf);V1=_.RV(sU);LB(H().showLoadingErrorDialogCommand);throw V1;})},Lz=function(Nf){g.logError(Nf)},p4=function(Nf,V1,sU){XDU(g,Nf,V1,sU)},Xq=function(Nf,V1){szg(g,Nf,V1)},ds=function(){!K&&H().isEmbeddedInWebview||_.Kn();
zC3(g,!0);w||(window.addEventListener("beforeunload",V4,{capture:!0}),w=!0)},Fi=function(Nf){var V1,sU,ig,or,Su,XB,tR;
return _.l(function(RD){if(RD.nextAddress==1)return e&&(!C||C<Nf)&&Nf>0?RD.yield(RgS(e,Nf),3):RD.jumpTo(0);V1=RD.yieldResult;sU=_.q(V1);ig=sU.next().value;or=sU.next().value;Su=ig;XB=or;((tR=Su)==null?0:tR.displayString)&&XB&&(kd(XB),ug(Su.displayString));_.VE(RD)})},u1=function(Nf){var V1=H().onBenchmarkingMessageReceivedCommand;
if(V1){var sU=Fj4();_.nc(Nf,3,V3l,sU);JE(V1,M3M(Nf))}},ZD=function(Nf){var V1=H().onGameFrameReceivedCommand;
if(V1){var sU=new B4;var ig=new enN;var or=PG(Nf,1);ig=_.Ln(ig,1,or);Nf=_.IB(Nf,2);Nf=_.UY(ig,2,Nf);sU=_.eE(sU,2,Nf);JE(V1,CJN(sU))}},E5=function(Nf){var V1=H().onGameAudioDataReceivedCommand;
if(V1){var sU=new B4;var ig=new xY3;Nf=_.IB(Nf,1);ig=_.UY(ig,1,Nf);sU=_.eE(sU,4,ig);JE(V1,CJN(sU))}},RC=function(){var Nf=new URLSearchParams(window.location.search);
if(H().isEmbeddedInWebview&&Nf&&Nf.get("override_hl")==="true"&&Nf.get("hl"))return Nf.get("hl");Nf=document.documentElement.lang;return Nf!==""?Nf:_.SG},eT=function(Nf){var V1=H().onShareInviteCodeCommand;
if(V1)if(H().isEmbeddedInWebview){var sU=new lE3;Nf=_.UY(sU,1,Nf);JE(V1,kF3(Nf))}else sU=H().inviteCodeShareClientParamIdentifier,A.clientParams.set(sU,{miniAppClientParams:{inviteCode:Nf}}),LB(V1)},We=function(Nf){var V1,sU,ig;
return _.l(function(or){if(or.nextAddress==1)return V1=H().onMiniAppOpenYtContentRequested,e&&_.h("enable_open_yt_content")&&V1?or.yield(VYM(e,Nf),3):or.jumpTo(0);sU=or.yieldResult;if(sU==="OK")if(H().isEmbeddedInWebview){var Su=new oFB;ig=xr(Su,2,W4,aZ(Nf));JE(V1,lRC(ig))}else E.clientData.set("video_id",Nf),LB(V1);_.VE(or)})},wq=function(Nf){l1+=_.$1(Nf,3);
Nf=Math.min(Math.log(1+l1/15E6*9)/Math.log(10),.99);oC(Nf);MU(Nf)},MU=_.Rp(function(Nf){var V1=H().updateLoadingProgressCommand;
if(V1){var sU=new oFB;Nf=xr(sU,3,W4,_.O3(Nf));JE(V1,lRC(Nf))}},100),LX=function(Nf){return tFM(k,Nf)},XO=function(){var Nf,V1;
((Nf=_.ex1())==null?void 0:(V1=Nf.wakeLock)==null?void 0:V1.request)!=null&&_.ex1().wakeLock.request("screen").then(function(sU){U=sU}).catch(function(){})},kO=_.jV("iframe");
_.wc(function(){H().isSupportedCountry&&(tsX()||_.h("enable_sign_in_promo")||!H().showSignInDialogCommand?kO.value&&hA(kO.value):LB(H().onMiniAppReadyCommand))},"HPyXid");
var nX=function(){return _.x("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return eS()?0:-1},
el:kO})},hA=function(Nf,V1){V1=V1===void 0?!1:V1;
var sU=VM();sU&&(V1||sU.toString()!==Nf.getAttribute("src"))&&(R=NXM(H().source,{isAudioEnabled:LF,onFirstFrameReady:FO,onGameReady:EU,onSave:mr,onLoad:p6,onError:Lz,onSdkCalled:p4,onSdkPerformanceUpdate:Xq,onClick:ds,onSendHighScore:Fi,onBenchmarkingMessageReceived:u1,getLanguage:RC,onShareInviteCode:eT,onResourceLoaded:wq,onOpenYTContent:We,onShowMiniAppAd:LX,onGameFrameReceived:ZD,onGameAudioReceived:E5},Nf,sU),ml(Nf,"load",function(){Dq(g,"ma_il");ml(Nf,"load",function(){hA(Nf,!0)})}),_.OH(Nf,
sU))},VM=function(){var Nf=H().url;
if(Nf&&(Nf=_.J5(Nf),Nf!==null)){if(H().source&&H().source==="MINI_APP_SOURCE_GAMESNACKS")Nf=_.gs(Nf,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.h("enable_origin_query_parameter_bugfix")){var V1=_.Ly(_.h$i(Nf.toString()));V1=new URLSearchParams(V1||"");V1.set("origin",window.location.origin);V1=V1.toString();Nf=_.Lc(Nf).toString();Nf=_.hL(wBM.exec(Nf)[0]+(V1.trim()?"#"+V1:""))}return Nf}},Zw=function(){var Nf={};
Nf=_.xM("yt-mini-app-container-view-model__loading-screen",(Nf["yt-mini-app-container-view-model__loading-screen--fade-out"]=eS,Nf));var V1=function(){return eS()?1:dq()};
return _.x("div",{class:Nf},_.x(_.wB,{data:function(){return H().splashScreen}},{miniAppSplashScreenViewModel:function(sU){return _.x(go7,{data:sU.data,
loadingProgress:V1})}}))},Jt=function(){var Nf={};
return _.x("div",{class:_.xM("yt-mini-app-container-view-model__pause-interstitial",(Nf["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!dA()},Nf["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=dA,Nf))},_.x(_.wB,{data:function(){return H().splashScreen}},{miniAppSplashScreenViewModel:function(V1){return _.x(go7,{data:V1.data,
forPaused:!0})}}))},Zz=function(){V=[];
V.push(_.Iq(window,"visibilitychange",function(){J||c&&RZ()||(document.visibilityState==="visible"?uk():nt())}));
V.push(_.Iq(window,"pagehide",function(){Lt()}));
V.push(_.Iq(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&NU.value.dispatchEvent(new Event("tap"))},0)}));
V.push(_.Iq(NU.value,"pointerdown",function(){zC3(g,!1)},!0));
V.push(_.Iq(NU.value,"pause",function(){J=!0;nt()}));
V.push(_.Iq(NU.value,"play",function(){J=!1;uk()}));
V.push(_.Iq(NU.value,"exit",function(){Lt()}));
var Nf=navigator.keyboard,V1=Nf&&Nf.lock;V.push(_.Iq(window,Sb0,function(){hN(ycd());ycd()?(H().hasPlayNextShelf&&D9("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),ao("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),V1&&Nf.lock(["Escape"])):(H().hasPlayNextShelf&&ao("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),D9("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),V1&&Nf.unlock())}));
H().showMultiplayer3pConsentDialogCommand&&V.push(_.Iq(window,"yt-playables-ack-3p-data-usage",function(){Ua7(e)}));
H().confirmExitMiniAppCommandEdu&&V.push(_.Iq(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.kC("exit-mini-app-seen-state","true",2592E6)}));
H().onGameAudioDataReceivedCommand&&V.push(_.Iq(window,"message",function(sU){sU=sU.event_;var ig,or=(ig=kO.value)==null?void 0:ig.src;if(or&&sU.origin===(new URL(or)).origin&&sU.data&&sU.data.type==="GAME_AUDIO"&&sU.data.audio&&sU.data.audio.length>0)if(_.h("enable_sending_unwrapped_game_audio_as_serialized_metadata"))TXX(H().onGameAudioDataReceivedCommand,sU.data.audio);else{var Su=new FileReader;Su.onload=function(){var XB=new B4;var tR=new xY3;tR=_.UY(tR,1,Su.result);XB=_.eE(XB,4,tR);JE(H().onGameAudioDataReceivedCommand,
CJN(XB))};
Su.readAsDataURL(new Blob([sU.data.audio]))}}))},Qp=function(){V.forEach(function(Nf){wg(Nf)});
window.removeEventListener("beforeunload",V4,{capture:!0})},LB=function(Nf){Nf&&sih(Nf,H().isEmbeddedInWebview||!1)},ao=function(Nf,V1){Nf=_.q(NU.value.getElementsByClassName(Nf));
for(var sU=Nf.next();!sU.done;sU=Nf.next())sU.value.classList.add(V1)},D9=function(Nf,V1){Nf=_.q(NU.value.getElementsByClassName(Nf));
for(var sU=Nf.next();!sU.done;sU=Nf.next())sU.value.classList.remove(V1)};
return function(){var Nf={};Nf=_.xM("yt-mini-app-container-view-model",(Nf["yt-mini-app-container-view-model--desktop"]=!0,Nf["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return H().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Nf["yt-mini-app-container-view-model--ios-web-view"]=mRh(),Nf["yt-mini-app-container-view-model--no-top-bar"]=function(){return!H().topBar},Nf["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return H().hasPlayNextShelf},Nf["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return H().hasPlayNextShelf},Nf["yt-mini-app-container-view-model--show-peek-below"]=function(){return!lg()&&H().hasPlayNextShelf},Nf));
var V1={};V1=_.xM("yt-mini-app-container-view-model__content",(V1["yt-mini-app-container-view-model__content--desktop-content"]=!0,V1["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return H().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},V1["yt-mini-app-container-view-model--desktop-play-page"]=function(){return H().hasPlayNextShelf},V1));
return _.x("mini-app-container-view-model",{el:NU},_.x("div",{class:Nf},_.x(_.n,{cond:function(){return H().topBar&&!lg()},
then:function(){return _.x(_.wB,{data:function(){return H().topBar}},{miniAppTopBarViewModel:function(sU){return _.x(kKM,{data:sU.data,
isAudioEnabled:LF,onAudioToggled:function(ig){L5(ig)},
score:CX,formattedScore:BB,onScoreChanged:function(ig){C=ig},
isEmbeddedInWebview:RZ,isSaved:Hv,onSaveToggled:function(ig){$s(ig)},
isExitMiniAppSeen:gA,isDesktopPlayPage:uM})}})}}),_.x("div",{class:V1},_.x(_.n,{cond:fX,
then:function(){return nX()}}),_.x(_.n,{cond:function(){return H().isLivestream},
then:function(){return Jt()}}),_.x(_.n,{cond:function(){return!H().isEmbeddedInWebview},
then:function(){return Zw()}}))))}()},"re");
hgg.idomCompat=!0;_.iV(hgg,"mini-app-container-view-model",{props:{data:_.dl}});var LkC=_.H1(function(d){var H=d.data;return _.x("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.x("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.n7(function(){var K=H().onTap;K&&_.EG(K)})},_.x(_.n,{cond:function(){return H().icon},
then:function(K){return _.x(_.hu,{icon:function(){return K().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.x("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return H().title})))},"se");
LkC.idomCompat=!0;var MY6=_.H1(function(d){var H=_.Af("div"),K=_.q(_.GO(void 0,void 0,"dg3xff")),c=K.next().value,p=K.next().value;K=_.q(_.GO(void 0,void 0,"AgHNfc"));var g=K.next().value,a=K.next().value;K=_.q(_.GO(void 0,void 0,"fuTKCc"));var e=K.next().value,k=K.next().value,C=function(){var F=c();return F!==void 0?Math.abs(F):void 0},R=function(){var F=C();
return F===void 0||F<=3},V=function(){var F=C();
var Y=g(),A=e();F=F!==void 0&&Y!==void 0&&A!==void 0?Y-A-F:void 0;return F===void 0||F<=3},U=function(F){H.value&&H.value.scrollBy({top:0,
left:(_.Fm("HTML_DIR")==="rtl"?-1:1)*F*H.value.clientWidth,behavior:"smooth"})},L=function(){var F;
p((F=H.value)==null?void 0:F.scrollLeft);var Y;a((Y=H.value)==null?void 0:Y.scrollWidth);var A;k((A=H.value)==null?void 0:A.clientWidth)},w=function(){U(-.5)},W=function(){U(.5)};
K=_.n7(function(){L()});
_.Is(function(){L();if(H.value&&window.ResizeObserver){var F=new ResizeObserver(L);F.observe(H.value);_.Pk(function(){F.disconnect()})}});
var J={};return _.x("yt-sponsorships-scrollable-shelf",{class:_.xM("ytdSponsorshipsScrollableShelfHost",d.className)},_.x("div",{class:_.xM("ytdSponsorshipsScrollableShelfContent",(J.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return d.data().previousButton&&d.data().nextButton&&!R()&&!V()},J.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return d.data().previousButton&&!R()&&V()},J.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return d.data().nextButton&&
R()&&!V()},J)),
el:H,"on:scroll":K},d.children),_.x(_.n,{cond:function(){return!R()},
then:function(){return _.x(_.wB,{data:function(){return d.data().previousButton}},{buttonViewModel:function(F){return _.x(_.xk,{data:F.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:w})}})}}),_.x(_.n,{cond:function(){return!V()},
then:function(){return _.x(_.wB,{data:function(){return d.data().nextButton}},{buttonViewModel:function(F){return _.x(_.xk,{data:F.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:W})}})}}))},"te");
MY6.idomCompat=!0;var wag=_.H1(function(d){var H=d.data;d={};return _.x("yt-sponsorships-hub",{class:_.xM("ytdSponsorshipsHubHost",(d.ytdSponsorshipsHubHostIndented=function(){return H().indented},d))},_.x("div",{class:"ytdSponsorshipsHubHeader"},_.x("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.x("div",{class:"ytdSponsorshipsHubAvatar"},_.x(_.wB,{data:function(){return H().avatar}},{avatarViewModel:_.JV})),_.x(_.n,{cond:function(){return H().badgeImage},
then:function(K){return _.x("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.x("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.x("div",{class:"ytdSponsorshipsHubBadge"},_.x(_.d7,{data:K,targetWidth:24,targetHeight:24,alt:""}))))}})),_.x("div",{class:"ytdSponsorshipsHubDetails"},_.x("div",{class:"ytdSponsorshipsHubTierName"},function(){return H().tierName}),_.x("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return H().membershipType}),_.x("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return H().membershipDurationOrExpiry})),_.x("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.x(_.wB,{data:function(){return H().manageButton}},{buttonViewModel:function(K){return _.x(_.xk,{data:K.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.x(_.wB,{data:function(){return H().actionMenuButton}},{buttonViewModel:function(K){return _.x(_.xk,{data:K.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.x("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return H().perksTitle}),_.x(MY6,{data:function(){return{previousButton:H().previousPerkButton,
nextButton:H().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.x("div",{class:"ytdSponsorshipsHubPerkCards"},_.x(_.wB,{data:function(){return H().perkCards}},{sponsorshipsHubPerkCardViewModel:LkC}),_.x(_.n,{cond:function(){return H().viewAllPerksButton},
then:function(K){return _.x(maS,{data:K})}}))))},"ue");
wag.idomCompat=!0;var maS=_.H1(function(d){var H=d.data;return _.x("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.x(_.wB,{data:function(){return H().button}},{buttonViewModel:_.xk}),_.x("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.x("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return H().title}),_.x("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return H().subtitle})))},"ve");
maS.idomCompat=!0;_.iV(wag,"yt-sponsorships-hub",{props:{data:_.dl}});_.P73=_.H1(function(d){var H=d.data;return _.x("yt-dual-avatar-view-model",{class:_.xM("ytDualAvatarViewModelHost",d.className),style:_.UQ({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var K;return((K=H().badgeCutoutRadius)!=null?K:14)+"px"}})},_.x("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.x(_.wB,{data:function(){return H().startAvatar}},{avatarViewModel:_.JV}),_.x(_.wB,{data:function(){return H().endAvatar}},{avatarViewModel:_.JV})),_.x(_.wB,{data:function(){return H().badge}},
{contentPreviewImageViewModel:function(K){return _.x("div",{class:"ytDualAvatarViewModelBadge"},_.x(_.iN,{data:K.data}))}}))},"we");
_.P73.idomCompat=!0;var I2B=_.H1(function(d){var H=d.data;var K,c=!((K=_.Kj().resolve(_.$p(_.fM)))==null||!K());d=_.ey(function(){var R,V,U=c?(R=H().header)==null?void 0:R.backgroundColorDarkMode:(V=H().header)==null?void 0:V.backgroundColorLightMode;if(U!==void 0)return _.Ob(U)},void 0,"TDdh7d");
K=_.ey(function(){var R,V;return c?(R=H().header)==null?void 0:R.backgroundImagePart1Dark:(V=H().header)==null?void 0:V.backgroundImagePart1Light},void 0,"X0peMe");
var p=_.ey(function(){var R,V;return c?(R=H().header)==null?void 0:R.backgroundImagePart2Dark:(V=H().header)==null?void 0:V.backgroundImagePart2Light},void 0,"an0Hzd"),g=_.ey(function(){return _.Fm("HTML_DIR")==="rtl"},void 0,"BltEgb"),a=_.Af("yt-sponsorships-perks-list"),e=!1,k=function(){var R=a.value;
if(R&&!e){var V,U=(V=R.parentElement)==null?void 0:V.parentElement;if(U)for(R=R.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),V=0;V<R.length;++V){var L=R[V];if(L instanceof HTMLElement){U.scrollTo({top:L.offsetTop+L.clientHeight/2-U.clientHeight/2,behavior:"smooth"});e=!0;break}}}};
_.WE(function(){var R=a.value;if(R&&window.ResizeObserver){var V=new ResizeObserver(k);V.observe(R);_.Pk(function(){V.disconnect()})}});
var C={};return _.x("yt-sponsorships-perks-list",{el:a,class:_.xM("ytdSponsorshipsPerksListHost",(C.ytdSponsorshipsPerksListHorizontalPadding=function(){return H().horizontalPaddingEnabled},C))},_.x("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.x("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.UQ({"background-color":d})},_.x("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.x(_.n,{cond:K,then:function(R){var V={};return _.x("div",{class:_.xM((V.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=c,V.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!c,V.ytdSponsorshipsPerksListFlipped=g,V))},_.x(_.d7,{data:R,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.x("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.x(_.n,{cond:p,
then:function(R){var V={};return _.x("div",{class:_.xM((V.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=c,V.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!c,V.ytdSponsorshipsPerksListFlipped=g,V))},_.x(_.d7,{data:R,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.x("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.x(_.wB,{data:function(){var R;
return(R=H().header)==null?void 0:R.dualAvatar}},{dualAvatarViewModel:_.P73})))),_.x("div",{class:"ytdSponsorshipsPerksListBody"},_.x("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return H().title}),_.x(_.n,{cond:function(){return H().perks},
then:function(R){return _.x(_.L6,{each:R},function(V,U){var L={};return _.x("div",{class:_.xM("ytdSponsorshipsPerksListPerkContainer",(L.ytdSponsorshipsPerksListSelectedPerk=function(){var w=U(),W=H().selectedPerkIndex;return w===W},L))},_.x(_.n,{cond:function(){return U()>0},
then:function(){return _.x("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.x("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.x(_.n,{cond:function(){return V.icon},
then:function(w){return _.x(_.hu,{icon:function(){return w().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.x("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.x("div",{class:"ytdSponsorshipsPerksListPerkTitle"},V.title),_.x("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.x(_.j$,{text:V.description})),_.x(_.n,{cond:function(){return V.instructions},
then:function(){var w,W;return _.x("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.x("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(w=V.instructions)==null?void 0:w.title),_.x("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.x(_.j$,{text:(W=V.instructions)==null?void 0:W.text})))}}))),_.x(_.n,{cond:function(){return V.emoji},
then:function(w){return _.x("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.x(_.L6,{each:function(){return w()}},function(W){return _.x(_.d7,{data:W,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.x(u9S,{data:V}))})}})))},"xe");
I2B.idomCompat=!0;var u9S=_.H1(function(d){var H=d.data;var K=function(a,e){return a===e},c=function(){var a=H();
a=_.M(a==null?void 0:a.badgesShelf,Rt7);return a!==void 0&&a!==null?a:{previousButton:{},nextButton:{}}},p=_.jV("div"),g=function(){var a=p.value;
if(a){var e=a.parentElement;if(e){a=a.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var k=0;k<a.length;++k){var C=a[k];if(C instanceof HTMLElement){e.scrollTo({left:C.offsetLeft+C.clientWidth/2-e.clientWidth/2,behavior:"instant"});break}}}}};
_.WE(function(){var a=p.value;if(a){var e=new ResizeObserver(g);e.observe(a);_.Pk(function(){e.disconnect()})}});
return _.x("div",null,_.x(_.n,{cond:function(){return H().badges},
then:function(a){return _.x(MY6,{data:c},_.x("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:p},_.x(_.L6,{each:function(){return a()}},function(e,k){var C={},R={},V={};
return _.x("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.x(_.n,{cond:function(){return k()>0},
then:function(){return _.x("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.x("div",{class:_.xM("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(C.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return K(k(),H().currentBadgeIndex)},C.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!K(k(),H().currentBadgeIndex)},C))},_.x("div",{class:_.xM("ytdSponsorshipsPerksListLoyaltyBadge",(R.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return K(k(),
H().currentBadgeIndex)},R.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!K(k(),H().currentBadgeIndex)},R))},_.x(_.n,{cond:function(){return e.image},
then:function(U){var L={};return _.x("div",{class:_.xM((L.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return K(k(),H().currentBadgeIndex)},L.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!K(k(),H().currentBadgeIndex)},L))},_.x(_.d7,{data:U,
alt:""}))}})),_.x("div",{class:_.xM("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(V.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return K(k(),H().currentBadgeIndex)},V))},e.title)))})))}}))},"ye");
u9S.idomCompat=!0;_.iV(I2B,"yt-sponsorships-perks-list",{props:{data:_.dl}});_.iV(_.H1(function(d){return _.x("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.x(_.n,{cond:function(){return d.data().image},
then:function(H){return _.x(_.d7,{className:"ytwFantasyEmptyStateViewModelImage",data:H,ariaHidden:!0,alt:""})}}),_.x(_.j$,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return d.data().title}}),_.x(_.j$,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return d.data().subtitle}}),_.x(_.wB,{data:function(){return d.data().primaryButton}},{buttonViewModel:function(H){return _.x(_.xk,{data:H.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ze"),"ytw-fantasy-empty-state-view-model",{props:{data:_.dl}});var reg;var WkX=_.H1(function(d){var H=d.data;var K=d.uniqueId;var c=d.overrides;d=_.ey(function(){var p,g=((p=H().timedAnimationData)==null?void 0:p.animationTiming)||[];return{uniqueId:K(),timings:g,experimentEnabled:g.length>0,enabled:g.length>0}},void 0,"hiuXI");
return _.x("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.x(XH3,{settings:d},_.x(_.wB,{data:function(){return H().buttonRenderer}},{buttonRenderer:function(p){return _.x(_.AV,{data:p.data,
buttonOverrides:c})}})))},"Ae");
WkX.idomCompat=!0;_.iV(WkX,"timed-animation-button-renderer",{props:{data:_.dl,uniqueId:_.dl,overrides:_.dl}});var KS=function(){var d=_.B.apply(this,arguments)||this;d.hideJoinButtonBeforeSubscribed=_.h("hide_join_button_before_subscribed");d.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return d};
_.m(KS,_.B);_.G=KS.prototype;_.G.hasShowDialogCommand=function(d){return!!_.M(d,mwA)};
_.G.configureRendererStamper=function(){return{"data.avatarStack":{id:"avatar-stack",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model"}}},"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G.updateJoinButtonOverrides=function(){var d,H;(d=_.Gn(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(H=d.polymerController)==null||H.set("overrides",this.joinButtonOverrides);if(d=_.Gn(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))d.overrides=this.joinButtonOverrides};
_.G.handleButtonRefreshAction=function(d){if(d=_.M(d,Wsg))this.set("data.membershipButton",d.membershipButton),this.notifyPath("data.membershipButton")};
_.G.onYtServiceRequestError=function(d){_.ff(this.hostElement,d.detail.error.message)};
_.G.onKeydown=function(d){if(d.key==="Enter"){var H;(H=this.data)!=null&&H.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.G.handleUnsubscribeAction=function(){var d,H,K;((d=this.data)==null?void 0:(H=d.membershipButton)==null?void 0:(K=H.buttonRenderer)==null?void 0:K.style)==="STYLE_PRIMARY"&&_.Gn(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.H3.Object.defineProperties(KS.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.subscriptionStateEntity)==null||!d.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var d,H=(d=this.data)==null?void 0:d.membershipButton,K;d=(H==null?void 0:H.buttonRenderer)||_.M(H==null?void 0:(K=H.timedAnimationButtonRenderer)==null?void 0:K.buttonRenderer,_.Tz);return(d==null?void 0:d.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(d==null?void 0:d.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(d==null?void 0:d.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var d;if(this.hasShowDialogCommand((d=this.data)==null?void 0:d.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var d;if(this.hasShowDialogCommand((d=this.data)==null?void 0:d.navigationEndpoint))return"button"}}});
KS.prototype.onYtServiceRequestError=KS.prototype.onYtServiceRequestError;KS.prototype.updateJoinButtonOverrides=KS.prototype.updateJoinButtonOverrides;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],KS.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],KS.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.to),_.O("design:type",Object)],KS.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],KS.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.zS),_.O("design:type",Object)],KS.prototype,"ironButtonState",void 0);_.t([_.r(),_.O("design:type",Object)],KS.prototype,"data",void 0);_.t([_.I("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.O("design:type",Object),_.O("design:paramtypes",[])],KS.prototype,"hideJoin",null);
_.t([_.r(),_.O("design:type",String)],KS.prototype,"subscribeKey",void 0);_.t([_.r({selectorArgs:["subscribeKey"],selector:Fhf}),_.O("design:type",Object)],KS.prototype,"subscriptionStateEntity",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],KS.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.t([_.I("subscriptionStateEntity"),_.r({reflectToAttribute:!0}),_.O("design:type",Object),_.O("design:paramtypes",[])],KS.prototype,"subscribed",null);
_.t([_.I("subscribed","data.membershipButton"),_.O("design:type",Object),_.O("design:paramtypes",[])],KS.prototype,"joinButtonOverrides",null);_.t([_.I("data.navigationEndpoint"),_.O("design:type",Object),_.O("design:paramtypes",[])],KS.prototype,"channelNameTabIndex",null);_.t([_.I("data.navigationEndpoint"),_.O("design:type",Object),_.O("design:paramtypes",[])],KS.prototype,"channelNameRole",null);
_.t([_.CK("joinButtonOverrides"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],KS.prototype,"updateJoinButtonOverrides",null);_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],KS.prototype,"onYtServiceRequestError",null);_.t([_.Z({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],KS);
var BUA=_.oq()(KS,"ytd-video-owner-renderer",function(){if(reg===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);reg=d}d=reg;return d},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.iV(_.H1(function(d){var H=d.data;var K;d=_.q(_.GO(!((K=_.xC("yt-mini-app-is-theater-mode-enabled"))==null||!K),void 0,"CtFFDf"));var c=d.next().value,p=d.next().value;K=_.q(_.GO(!1,void 0,"pRgDfb"));var g=K.next().value,a=K.next().value;_.WE(function(){var C=_.Iq(window,Sb0,function(){a(ycd())});
_.Pk(function(){wg(C)})});
var e;K=(e=_.Kj().resolve(_.$p(H$7)))!=null?e:function(){return _.x("div",null)};
_.fn("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){p(!0);_.kC("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.fn("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){p(!1);_.kC("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
e={};d={};var k={};return _.x("mini-app-play-page-renderer",{class:_.xM("miniAppPlayPageRendererHost",(e.miniAppPlayPageRendererHostDetailsView=function(){return!c()},e))},_.x("div",{class:_.xM("miniAppPlayPageRendererGameContainer",(d.miniAppPlayPageRendererGameContainerDetailsView=function(){return!c()},d))},_.x(_.wB,{data:function(){return H().containerViewModel}},{miniAppContainerViewModel:hgg}),_.x(_.n,{cond:function(){return H().channel&&H().subscribeButton},
then:function(){var C={};return _.x("div",{class:_.xM("miniAppPlayPageRendererChannelContainer",(C.miniAppPlayPageRendererHideVisibility=function(){return g()},C))},_.x(_.wB,{data:function(){return H().channel}},{videoOwnerRenderer:function(R){return _.x(BUA,{data:R.data})}}),_.x(_.wB,{data:function(){return H().subscribeButton}},{subscribeButtonViewModel:function(R){return _.x(_.JI,{data:R.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.x(_.n,{cond:function(){return!c()&&H().description},
then:function(){var C={};return _.x("div",{class:_.xM("miniAppPlayPageRendererMiniAppDescriptionWrapper",(C.miniAppPlayPageRendererHideVisibility=function(){return g()},C))},_.x("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return H().description}))}})),_.x("div",{class:_.xM("miniAppPlayPageRendererPlayNextContainer",(k.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!c()},k.miniAppPlayPageRendererHideVisibility=function(){return g()},k))},_.x(_.wB,{data:function(){return H().sectionList}},
{sectionListRenderer:K})))},"Be"),"mini-app-play-page-renderer",{props:{data:_.dl}});var cl=function(){var d=_.B.apply(this,arguments)||this;d.isSearch=!1;d.isConstrainedList=!1;d.hasChipsBar=!1;d.inReplyPanel=!1;d.scrollUpButtonData={buttonViewModel:{iconName:"UP_ARROW",style:"BUTTON_VIEW_MODEL_STYLE_UNKNOWN",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_COMPACT"}};d.monitorScroll=!0;d.SCROLL_ANIMATION_DURATION_MS=300;d.nextContinuation={continuationType:"sectionListContinuation"};return d};
_.m(cl,_.B);_.G=cl.prototype;
_.G.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(d){switch(d.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.h("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.h("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.G.created=function(){var d=this;this.JSC$16951_scrollAnimation=new _.b6(function(H){d.hostElement.scrollTop=H})};
_.G.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.G.getItemsPath=function(){return"data.contents"};
_.G.replacePrimaryContent=function(d){this.set("data.contents",d)};
_.G.computeHasSortFilter=function(d){return!!d&&!!d.sortFilterSubMenuRenderer};
_.G.computeShouldScrollInPanel=function(d){var H;return!!(d==null?0:(H=d.scrollPaneStyle)==null?0:H.scrollable)};
_.G.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.qr(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.G.scrollToTop=function(){this.hostElement.scrollTop=0};
_.G.scrollToItemSection=function(d){if(d=this.getItemByIdentifier(d))d=this.getScrollPositionForItem(d),this.hostElement.scrollTop!==d&&this.JSC$16951_scrollAnimation.start(this.hostElement.scrollTop,d,this.SCROLL_ANIMATION_DURATION_MS)};
_.G.getItemByIdentifier=function(d){var H=this.contents.querySelectorAll("ytd-item-section-renderer");if(H&&H.length!==0){var K=Array.from(H).findIndex(function(c){return c.sectionIdentifier===d});
return H[K===-1?0:K]}};
_.G.getScrollPositionForItem=function(d){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===d)return 0;d=_.JA(d).y+this.hostElement.scrollTop-_.JA(this.hostElement).y;return Math.min(d,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.H3.Object.defineProperties(cl.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.targetId)==="browse-feedFEclips"}}});
cl.prototype.onScroll=cl.prototype.onScroll;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],cl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Gr.YtLazyListBehavior),_.O("design:type",Object)],cl.prototype,"ytLazyListBehavior",void 0);_.t([_.u(_.bN.YtNextContinuationBehavior),_.O("design:type",Object)],cl.prototype,"ytNextContinuationBehavior",void 0);
_.t([_.u(_.RCS),_.O("design:type",Object)],cl.prototype,"ytBooleanLogicBehavior",void 0);_.t([_.u(_.yH),_.O("design:type",Object)],cl.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],cl.prototype,"data",void 0);_.t([_.r({value:2}),_.O("design:type",Number)],cl.prototype,"initialCount",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],cl.prototype,"autoFill",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.O("design:type",Boolean)],cl.prototype,"hasSortFilter",void 0);_.t([_.r({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.O("design:type",Boolean)],cl.prototype,"hideBottomSeparator",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.O("design:type",Boolean)],cl.prototype,"shouldScrollInPanel",void 0);
_.t([_.r(),_.O("design:type",Object)],cl.prototype,"isSearch",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],cl.prototype,"isConstrainedList",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],cl.prototype,"responsiveSizing",void 0);_.t([_.r(),_.O("design:type",Object)],cl.prototype,"hasChipsBar",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],cl.prototype,"pageSubtype",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],cl.prototype,"engagementPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],cl.prototype,"liveChatEngagementPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],cl.prototype,"inReplyPanel",void 0);_.t([_.VP("#action-button"),_.O("design:type",HTMLElement)],cl.prototype,"actionButton",void 0);_.t([_.r(),_.O("design:type",Object)],cl.prototype,"scrollUpButtonData",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],cl.prototype,"engagementPanelDropdown",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],cl.prototype,"engagementPanelDialog",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],cl.prototype,"isClipList",null);_.t([_.VP("#contents"),_.O("design:type",HTMLElement)],cl.prototype,"monitorScrollElement",void 0);_.t([_.VP("#contents"),_.O("design:type",HTMLElement)],cl.prototype,"contents",void 0);
_.t([_.nK("scroll"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cl.prototype,"onScroll",null);_.t([_.Z({is:"ytd-section-list-renderer",disableElementRegistration:!0})],cl);
var zgd=_.oq()(cl,"ytd-section-list-renderer",function(){if(dyU===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-section-list-renderer">\n  <div id="header" class="style-scope ytd-section-list-renderer"></div>\n  <div id="sub-menu" class="style-scope ytd-section-list-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-section-list-renderer"></div>\n<div id="action-button" on-click="scrollToTop" class="style-scope ytd-section-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-section-list-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);dyU=d}d=dyU;return d},{mode:1});var Xag;var Je0;var sA0;var Fkl;var pS=function(){return _.B.apply(this,arguments)||this};
_.m(pS,_.B);pS.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
pS.prototype.onLikeButtonClick=function(d){d.stopPropagation();d.preventDefault()};
_.H3.Object.defineProperties(pS.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.data)!=null&&d.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],pS.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],pS.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],pS.prototype,"ytRendererStamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],pS.prototype,"data",void 0);
_.t([_.r({selectorArgs:["data.likeStatusEntityKey"],selector:Q2}),_.O("design:type",Object)],pS.prototype,"likeStatusEntity",void 0);_.t([_.I("data","likeStatusEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],pS.prototype,"likeButtonRenderer",null);_.t([_.Z({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],pS);
_.T(pS,"ytd-slim-metadata-toggle-button-renderer",function(){if(Fkl!==void 0)return Fkl;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slim-metadata-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-slim-metadata-toggle-button-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
return Fkl=d},{mode:1});var gT=function(){var d=_.B.apply(this,arguments)||this;d.minimizePipBreakages=_.h("web_pip_minimize_breakages");d.showEqualizer=_.h("web_enable_playlist_video_lockup_equalizer");d.watchColorUpdate=_.h("kevlar_watch_color_update");d.actionMap={};return d};
_.m(gT,_.B);_.G=gT.prototype;_.G.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.G.computeEditableClass=function(d){return d&&d.menu?"editable":""};
_.G.computeSelected=function(d){return!(d==null||!d.selected)};
_.G.computeUseColorPalette=function(d){return!!((d==null?0:d.lightColorPalette)&&(d==null?0:d.darkColorPalette))};
_.G.computeLargerPlaylistThumbs=function(d,H){return _.h("web_enable_playlist_bigger_thumbnails")&&!H};
_.G.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.G.onYtServiceRequestSent=function(d,H){H.endpoint&&this.isHideEnclosingAction(H.endpoint)&&!this.selected&&DEM(_.yq(),this.data.videoId)};
_.G.isHideEnclosingAction=function(d){var H=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",d);d=this.get("likeEndpoint.status",d)==="INDIFFERENT";return H||d};
_.G.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.G.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.H3.Object.defineProperties(gT.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var d;return!!(this.withinMiniplayer&&((d=this.data)==null?0:d.actionButtons))}}});
gT.prototype.onYtServiceRequestSent=gT.prototype.onYtServiceRequestSent;gT.prototype.canReorderChanged=gT.prototype.canReorderChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],gT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],gT.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.fe),_.O("design:type",Object)],gT.prototype,"ytdLockupBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],gT.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],gT.prototype,"withinMiniplayer",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],gT.prototype,"minimizePipBreakages",void 0);_.t([_.r({computed:"computeSelected(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],gT.prototype,"selected",void 0);
_.t([_.r({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],gT.prototype,"useColorPalette",void 0);_.t([_.r({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.O("design:type",Boolean)],gT.prototype,"largerPlaylistThumbs",void 0);_.t([_.r(),_.O("design:type",Object)],gT.prototype,"showEqualizer",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],gT.prototype,"canReorder",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],gT.prototype,"touchPersistentDragHandle",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],gT.prototype,"handleIsHovered",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],gT.prototype,"watchColorUpdate",void 0);_.t([_.r(),_.O("design:type",String),_.O("design:paramtypes",[])],gT.prototype,"reorderIcon",null);
_.t([_.I("largerPlaylistThumbs"),_.O("design:type",Number),_.O("design:paramtypes",[])],gT.prototype,"thumbnailWidth",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],gT.prototype,"showActionButtons",null);_.t([_.Mr("canReorder"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gT.prototype,"canReorderChanged",null);
_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],gT.prototype,"onYtServiceRequestSent",null);_.t([_.Z({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],gT);
_.T(gT,"ytd-playlist-panel-video-renderer",function(){if(sA0!==void 0)return sA0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return sA0=d},{mode:2});var G$=function(){return _.B.apply(this,arguments)||this};
_.m(G$,_.B);G$.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],G$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],G$.prototype,"data",void 0);_.t([_.Z({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],G$);
_.T(G$,"ytd-playlist-panel-supported-items",function(){if(Je0!==void 0)return Je0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-supported-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-playlist-panel-supported-items"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Je0=
d},{mode:1});Ef3=!0;i8S("\\P{N}");var HL5;var Z23=_.Vz("END_OF_PLAYLIST",void 0,"End of playlist"),TUS=_.Vz("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),oT=function(){var d=_.B.apply(this,arguments)||this;d.minimizePipBreakages=_.h("web_pip_minimize_breakages");d.updatedCoursePanel=_.h("move_three_dot_menu_to_playlist_panel_header_for_courses");d.hideHeaderText=!1;d.useColorPalette=!1;d.collapsed=!1;d.collapsedPreServerOverride="not_tracked";d.isHovered=!1;d.modernPanels=_.h("kevlar_watch_modern_panels");
d.expandLabel=_.Vz("MINIPLAYER_EXPAND_LABEL");d.collapseLabel=_.Vz("MINIPLAYER_COLLAPSE_LABEL");d.isFloating=!1;d.metaPanel=!1;d.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};d.currentIndex=void 0;return d};
_.m(oT,_.B);_.G=oT.prototype;
_.G.configureRendererStamper=function(){return{menuRendererData:{id:"playlist-action-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{forceIconButton:!1}}}},overflowMenuDataTopRow:{id:"overflow-menu-top-row",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},overflowMenuData:{id:"overflow-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.contentHeader":{id:"content-header",mapping:{messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.contents":{id:"items",
events:!0,mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",attributes:{id:"playlist-items"},properties:{canReorder:"[[canReorder]]",withinMiniplayer:"[[withinMiniplayer]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.saveButton":{id:"save-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.topRowButtons":{id:"top-row-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G.created=function(){this.scrollThrottle=new _.NV(this.onThrottledScroll,1E3,this)};
_.G.onMouseEnter=function(){this.isHovered=!0};
_.G.onMouseLeave=function(){this.isHovered=!1};
_.G.computeOverflowMenuData=function(d){return d&&d.menu?d.menu:null};
_.G.computeCollapsible=function(d){return!d};
_.G.computeHasPlaylistButtons=function(d){return!(!d||!d.playlistButtons)};
_.G.computeHasSeparateSaveButton=function(d){return!(!d||!d.saveButton)};
_.G.computeHasToolbarButton=function(d,H){return!(!d||!(H||d.saveButton||d.menu))};
_.G.computePlaylistType=function(d){if(d&&d.playlistId)return d.playlistId.substring(0,4)};
_.G.computeCanReorder=function(d){return d?d.playlistId&&d.playlistId.startsWith("TLPQ")?!0:!!d.isEditable&&!d.isInfinite:!1};
_.G.attached=function(){var d=this;try{_.Kj().resolve(_.tJ).setPlaylistComponent(this.hostElement)}catch(H){if(_.h("kevlar_park_on_playlist_token_killswitch"))throw H;_.OT().parkOrScheduleJob(function(){_.Kj().resolve(_.tJ).setPlaylistComponent(d.hostElement)},2,"ci")}_.gV(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.G.detached=function(){_.i5(this.hostElement)};
_.G.computeTrailingIcon=function(d,H,K){return K?H?"yt-icons:collapse":"yt-icons:close":H?"yt-icons:expand":_.h("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.G.computeIndexMessage=function(d,H){return cKX(d+1)+" / "+cKX(H)};
_.G.onRenderStamperFinished=function(){if(this.scrollForStampDom){var d=!0;this.isHovered&&(d=!1);if(this.collapsed||this.hidden)d=!1;d&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.G.collapseChanged=function(){var d=this;this.collapsed||(_.mR(this.ytTaskEmitterBehavior.getTaskManager(),function(){d.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.G.hiddenChanged=function(){var d=this;this.hidden||_.mR(this.ytTaskEmitterBehavior.getTaskManager(),function(){d.scrollToCurrentVideo()})};
_.G.setupReordering=function(){var d=_.Gn(this.hostElement).querySelector("#items");uWA?_.h$g(this.ytReorderableBehavior,d,d,"playlist-drag-handle"):_.h$g(this.ytReorderableBehavior,d,d)};
_.G.scrollToCurrentVideo=function(){var d=this;_.Xp.addJob(function(){var H=_.Gn(d.hostElement).querySelector("#items");if(H){H.style.setProperty("padding-bottom","");var K=_.Gn(d.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(K){H=K.parentElement||_.M5(document);var c=H||_.M5(document);var p=_.JA(K),g=_.JA(c),a=_.n0M(c);if(c==_.M5(document)){var e=p.x-c.scrollLeft;p=p.y-c.scrollTop}else e=p.x-g.x-a.left,p=p.y-g.y-a.top;K=l5S(K);g=c.clientHeight-
K.height;a=c.scrollLeft;var k=c.scrollTop;a+=e-(c.clientWidth-K.width)/2;c=new _.Bf(a,k+(p-g/2));H.scrollLeft=c.x;H.scrollTop=c.y}}},8)};
_.G.dataChanged=function(){var d=this;_.Ugd(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.vV(this,function(){_.mf(d.ytTaskEmitterBehavior.getTaskManager(),function(){d.ytRendererBehavior.markDirty();d.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.G.onFullBleedPlayerChanged=function(){_.h("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.G.onFullscreenChanged=function(){_.h("web_watch_imax_theater_mode")||_.h("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.G.updateNowPlayingOverlay=function(){_.h("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.G.onPlaylistLockupNowPlaying=function(d,H){H&&(this.activeNowPlayingRenderer=H);this.updateNowPlayingOverlay()};
_.G.onScroll=function(){this.scrollThrottle.fire()};
_.G.onThrottledScroll=function(){var d=this;_.mf(this.ytTaskEmitterBehavior.getTaskManager(),function(){d.ytRendererBehavior.markDirty()})};
_.G.onToggleExpanded=function(d){!this.collapsible||d&&(_.v5(d).tagName==="A"||_.vg(_.jh(d),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.G.setCollapsed=function(d){this.collapsible&&(this.collapsed=d,_.qo(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.G.handleCollapsedFromData=function(d){if(d){var H=d.playlistPanelCollapseState;H==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||H==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),H=H==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==H&&this.setCollapsed(H)):this.currentPlaylistId!==d.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(H=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==H&&this.setCollapsed(H),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=d.playlistId}};
_.G.handleDrop=function(d){var H=d.currDragItem;d=H.data.playlistSetVideoId;var K=_.s5(H.parentNode.childNodes,H),c=void 0;K>0&&(c=H.parentNode.childNodes[K-1].data.playlistSetVideoId);H=_.yq();if(H.responsePlaylistData&&H.responsePlaylistData.contents){var p=qOf(d,H.responsePlaylistData);H.responsePlaylistData=(0,_.rs.unsafeClone)(H.responsePlaylistData);WiF(H.responsePlaylistData.contents,p,K);H.queueProxy?mE3(H.queueProxy,p,K,d,c):H.playlistProxy&&mE3(H.playlistProxy,p,K,d,c);_.bd(H,_.Nw(H,H.response?
H.response.autoplayRenderer:void 0))}};
_.G.handleDarkModeChange=function(d){d!==this.isDarkTheme&&(this.isDarkTheme=d)};
_.G.colorPaletteChanged=function(){var d,H=((d=this.data)==null?void 0:d.contents)||[],K;d=_.q(H);for(H=d.next();!H.done;H=d.next()){H=H.value;var c=void 0;if((c=H.playlistPanelVideoRenderer)==null?0:c.selected){d=H.playlistPanelVideoRenderer;c=H=void 0;(K=this.isDarkTheme?(H=d)==null?void 0:H.darkColorPalette:(c=d)==null?void 0:c.lightColorPalette)&&_.Bg(this.hostElement,K);break}}this.useColorPalette=!!K};
_.H3.Object.defineProperties(oT.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var d,H;return!((d=this.data)==null||!d.playlistId)&&!((H=this.data)==null||!H.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var d=_.Kj().resolve(_.$p(_.tJ)),H;if(((H=this.data)==null?0:H.contents)&&(d==null?0:d.hasAutoplayData())){var K;if(((K=this.playlistLoopStateEntity)==null?void 0:K.state)==="PLAYLIST_LOOP_STATE_ONE"){if(d=this.data.currentIndex,d!==void 0){var c,p;var g=(c=this.data.contents[d])==null?void 0:(p=c.playlistPanelVideoRenderer)==null?void 0:p.title}}else{var a,e=(a=_.M(d.getAutoplayEndpoint(),_.AP))==null?void 0:a.videoId,k,C;g=(k=this.data.contents.find(function(R){var V;
return((V=R.playlistPanelVideoRenderer)==null?void 0:V.videoId)===e}))==null?void 0:(C=k.playlistPanelVideoRenderer)==null?void 0:C.title}return g}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)!=null&&d.nextVideoLabel?this.nextVideoTitle?_.jG(this.data.nextVideoLabel)+":":Z23:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var d;if(((d=this.data)==null?0:d.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.h("web_mix_long_byline_from_data"))return _.AF(TUS);var H;return(H=this.data)==null?void 0:H.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c=(d=this.data)==null?void 0:(H=d.playlistButtons)==null?void 0:(K=H.menuRenderer)==null?void 0:K.topLevelButtons;if(c)for(d=_.q(c),H=d.next();!H.done;H=d.next())if(H=H.value,H.playlistLoopButtonRenderer)return H.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var d;return!!(this.collapsed&&((d=this.data)==null?0:d.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.h("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
oT.prototype.colorPaletteChanged=oT.prototype.colorPaletteChanged;oT.prototype.onPlaylistLockupNowPlaying=oT.prototype.onPlaylistLockupNowPlaying;oT.prototype.updateNowPlayingOverlay=oT.prototype.updateNowPlayingOverlay;oT.prototype.onFullscreenChanged=oT.prototype.onFullscreenChanged;oT.prototype.onFullBleedPlayerChanged=oT.prototype.onFullBleedPlayerChanged;oT.prototype.dataChanged=oT.prototype.dataChanged;oT.prototype.hiddenChanged=oT.prototype.hiddenChanged;oT.prototype.collapseChanged=oT.prototype.collapseChanged;
oT.prototype.onRenderStamperFinished=oT.prototype.onRenderStamperFinished;oT.prototype.onMouseLeave=oT.prototype.onMouseLeave;oT.prototype.onMouseEnter=oT.prototype.onMouseEnter;_.t([_.u(_.WZ),_.O("design:type",Object)],oT.prototype,"ironResizableBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],oT.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(R$C.YtPlaylistPanelBehavior),_.O("design:type",Object)],oT.prototype,"ytPlaylistPanelBehavior",void 0);_.t([_.u(_.pd.YtTaskEmitterBehavior),_.O("design:type",Object)],oT.prototype,"ytTaskEmitterBehavior",void 0);_.t([_.u(_.LhX),_.O("design:type",Object)],oT.prototype,"ytReorderableBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],oT.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],oT.prototype,"ytdReduxBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],oT.prototype,"actionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],oT.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],oT.prototype,"autoplayData",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],oT.prototype,"withinMiniplayer",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],oT.prototype,"minimizePipBreakages",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],oT.prototype,"updatedCoursePanel",void 0);_.t([_.r({computed:"setMenuData_(data)"}),_.O("design:type",Object)],oT.prototype,"menuRendererData",void 0);_.t([_.r({computed:"computeOverflowMenuData(data)"}),_.O("design:type",Object)],oT.prototype,"overflowMenuDataTopRow",void 0);_.t([_.r({computed:"computeOverflowMenuData(data)"}),_.O("design:type",Object)],oT.prototype,"overflowMenuData",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],oT.prototype,"hideHeaderText",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],oT.prototype,"useColorPalette",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.O("design:type",Boolean)],oT.prototype,"collapsible",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],oT.prototype,"collapsed",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],oT.prototype,"hidden",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.O("design:type",Boolean)],oT.prototype,"hasPlaylistButtons",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.O("design:type",Boolean)],oT.prototype,"hasSeparateSaveButton",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.O("design:type",Boolean)],oT.prototype,"hasToolbar",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.O("design:type",String)],oT.prototype,"playlistType",void 0);_.t([_.r(),_.O("design:type",Object)],oT.prototype,"isHovered",void 0);_.t([_.r({selectorArgs:["playlistLoopStateEntityKey"],selector:_.OEh}),_.O("design:type",Object)],oT.prototype,"playlistLoopStateEntity",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],oT.prototype,"modernPanels",void 0);_.t([_.r({value:56}),_.O("design:type",Number)],oT.prototype,"scrollMargin",void 0);_.t([_.r({computed:"computeCanReorder(data)"}),_.O("design:type",Boolean)],oT.prototype,"canReorder",void 0);_.t([_.r(),_.O("design:type",Object)],oT.prototype,"expandLabel",void 0);_.t([_.r(),_.O("design:type",Object)],oT.prototype,"collapseLabel",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],oT.prototype,"isFloating",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],oT.prototype,"metaPanel",void 0);_.t([_.r({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.O("design:type",String)],oT.prototype,"trailingIcon",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],oT.prototype,"isDarkTheme",void 0);
_.t([_.r({selector:_.Fv}),_.O("design:type",Boolean)],oT.prototype,"miniplayerIsActive",void 0);_.t([_.r({selector:function(d){return d.watch.playerState}}),
_.O("design:type",Number)],oT.prototype,"playerState",void 0);_.t([_.r({selector:_.FX}),_.O("design:type",Boolean)],oT.prototype,"isFullscreen",void 0);_.t([_.r({selector:_.sQ}),_.O("design:type",Boolean)],oT.prototype,"isTheaterMode",void 0);_.t([_.r(),_.O("design:type",Object)],oT.prototype,"activeNowPlayingRenderer",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],oT.prototype,"moveThreeDotMenuToTopRow",null);
_.t([_.I("data","autoplayData","playlistLoopStateEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],oT.prototype,"nextVideoTitle",null);_.t([_.I("data","nextVideoTitle"),_.O("design:type",String),_.O("design:paramtypes",[])],oT.prototype,"nextVideoLabel",null);_.t([_.I("collapsed"),_.O("design:type",String),_.O("design:paramtypes",[])],oT.prototype,"buttonAriaLabel",null);
_.t([_.I("data","playlistId","longBylineText"),_.O("design:type",Object),_.O("design:paramtypes",[])],oT.prototype,"mixLongByLine",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],oT.prototype,"playlistLoopStateEntityKey",null);_.t([_.nK("mouseenter"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oT.prototype,"onMouseEnter",null);
_.t([_.nK("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oT.prototype,"onMouseLeave",null);_.t([_.r({reflectToAttribute:!0}),_.I("data","collapsed"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],oT.prototype,"showNextVideoHeader",null);_.t([_.nK("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oT.prototype,"onRenderStamperFinished",null);
_.t([_.CK("collapsed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oT.prototype,"collapseChanged",null);_.t([_.CK("hidden"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oT.prototype,"hiddenChanged",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oT.prototype,"dataChanged",null);
_.t([_.I("isTheaterMode","isFullscreen"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],oT.prototype,"isFullBleedPlayer",null);_.t([_.CK("isTheaterMode","isFullscreen"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oT.prototype,"onFullBleedPlayerChanged",null);_.t([_.CK("isFullscreen"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oT.prototype,"onFullscreenChanged",null);
_.t([_.CK("playerState","miniplayerIsActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oT.prototype,"updateNowPlayingOverlay",null);_.t([_.nK("yt-playlist-lockup-now-playing-active"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],oT.prototype,"onPlaylistLockupNowPlaying",null);
_.t([_.CK("data","isDarkTheme"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oT.prototype,"colorPaletteChanged",null);_.t([_.Z({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],oT);
_.QAS=_.oq()(oT,"ytd-playlist-panel-renderer",function(){if(Xag===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" data-collapsed="[[collapsed]]" class="style-scope ytd-playlist-panel-renderer"><div class="header style-scope ytd-playlist-panel-renderer" on-tap="onToggleExpanded"><div id="header-contents" class="style-scope ytd-playlist-panel-renderer"><div id="header-top-row" class="style-scope ytd-playlist-panel-renderer"><div id="header-description" class="style-scope ytd-playlist-panel-renderer"><h3 hidden="[[showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[data.titleText]]"></yt-formatted-string></h3><h3 id="next-video-title" hidden="[[!showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><span id="next-label" class="style-scope ytd-playlist-panel-renderer">[[nextVideoLabel]]</span><yt-formatted-string ellipsis-truncate="" text="[[nextVideoTitle]]" class="style-scope ytd-playlist-panel-renderer"></yt-formatted-string></h3><div id="publisher-container" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="byline-title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" hidden="[[!showNextVideoHeader]]" text="[[data.titleText]]"></yt-formatted-string><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-panel-renderer"></ytd-badge-supported-renderer><yt-formatted-string class="publisher style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[mixLongByLine]]"></yt-formatted-string><div class="index-message-wrapper style-scope ytd-playlist-panel-renderer" hidden="[[data.isInfinite]]"><span class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[data.videoCountText]]">[[computeIndexMessage(data.currentIndex,\n                data.totalVideos)]]</span><yt-formatted-string class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[!data.videoCountText]]" respecthtmldir="" text="[[data.videoCountText]]"></yt-formatted-string></div></div></div><div id="end-actions-in-header" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu-top-row" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="top-row-buttons" class="style-scope ytd-playlist-panel-renderer"></div><yt-icon-button id="trailing-button" label="[[buttonAriaLabel]]" pressed="[[!collapsed]]" toggleable="" class="style-scope ytd-playlist-panel-renderer"><yt-icon id="trailing-icon" icon="[[trailingIcon]]" class="style-scope ytd-playlist-panel-renderer"></yt-icon></yt-icon-button></div><div id="playlist-actions" class="style-scope ytd-playlist-panel-renderer"><div id="start-actions" class="style-scope ytd-playlist-panel-renderer"><div id="playlist-action-menu" class="style-scope ytd-playlist-panel-renderer"></div><div id="save-button" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="end-actions" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu" class="style-scope ytd-playlist-panel-renderer"></div></div></div></div></div><div id="content-header" hidden="[[!data.contentHeader]]" class="style-scope ytd-playlist-panel-renderer"></div><div id="items" class="playlist-items style-scope ytd-playlist-panel-renderer" on-scroll="onScroll"></div></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);Xag=d}d=Xag;return d},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var tYN;var q0=function(){var d=_.B.apply(this,arguments)||this;d.modern=_.h("web_button_rework");return d};
_.m(q0,_.B);q0.prototype.computeShouldButtonBeVertical=function(d,H){return d||H};
q0.prototype.onYtServiceRequestSent=function(d,H){(d=_.M(H.endpoint,_.Za))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.PI("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:d.status})):this.handleLikeEndpoint(d))};
q0.prototype.computelikeStatusEntityKey=function(d){return d==null?void 0:d.likeStatusEntityKey};
q0.prototype.handleLikeEndpoint=function(d){d.status==="LIKE"?this.JSC$16976_ytdDislikeToggleButtonRenderer.toggle(!1):d.status==="DISLIKE"?this.JSC$16976_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16976_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16976_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.H3.Object.defineProperties(q0.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var d;return Gfl(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(d=this.likeStatusEntity)==null?void 0:d.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var d;if(this.data&&((d=this.data)==null||!d.hideDislikeButton)){var H;return Gfl(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(H=this.likeStatusEntity)==null?void 0:H.likeStatus)}}}});
q0.prototype.onYtServiceRequestSent=q0.prototype.onYtServiceRequestSent;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],q0.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],q0.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],q0.prototype,"vertical",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],q0.prototype,"textTransform",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],q0.prototype,"useShortsIcon",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],q0.prototype,"underIconLabel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],q0.prototype,"modern",void 0);_.t([_.r({value:"left"}),_.O("design:type",String)],q0.prototype,"buttonTooltipPosition",void 0);
_.t([_.r(),_.O("design:type",Object)],q0.prototype,"overrides",void 0);_.t([_.VP("#like-button"),_.O("design:type",Object)],q0.prototype,"JSC$16976_ytdLikeToggleButtonRenderer",void 0);_.t([_.VP("#dislike-button"),_.O("design:type",Object)],q0.prototype,"JSC$16976_ytdDislikeToggleButtonRenderer",void 0);_.t([_.I("data","likeStatusEntity.likeStatus","useShortsIcon"),_.O("design:type",Object),_.O("design:paramtypes",[])],q0.prototype,"likeButton",null);
_.t([_.I("data","likeStatusEntity.likeStatus","useShortsIcon"),_.O("design:type",Object),_.O("design:paramtypes",[])],q0.prototype,"dislikeButton",null);_.t([_.r({computed:"computelikeStatusEntityKey(data)"}),_.O("design:type",String)],q0.prototype,"likeStatusEntityKey",void 0);_.t([_.r({selectorArgs:["likeStatusEntityKey"],selector:Q2}),_.O("design:type",Object)],q0.prototype,"likeStatusEntity",void 0);
_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],q0.prototype,"onYtServiceRequestSent",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],q0);
var YzU=_.oq()(q0,"ytd-like-button-renderer",function(){if(tYN===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);tYN=d}d=tYN;return d},{mode:1});_.O2X={};
_.O2X.YtConditionalRendererBehavior=[_.b.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(d,H){var K=this,c,p;return _.l(function(g){switch(g.nextAddress){case 1:if(!H)return K.hidden=!0,K.showSpinner=!1,g.return();if((c=d)==null?0:(p=c.visibilityCondition)==null?0:p.mode)switch(d.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return g.jumpTo(5);default:return g.jumpTo(6)}K.showSpinner=
!1;K.hidden=!0;return g.yield(K.shouldShow_(d),4);case 4:K.hidden=!g.yieldResult;g.jumpTo(0);break;case 5:return g.yield(K.shouldShow_(d),8);case 8:K.showSpinner=g.yieldResult;K.hidden=!1;g.jumpTo(0);break;case 6:return K.showSpinner=!1,g.yield(K.shouldShow_(d),9);case 9:K.hidden=!g.yieldResult,_.VE(g)}})},
shouldShow_:function(d){return d&&d.supportedDatas&&d.supportedDatas.rendererVisibilityConditionData&&d.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(d.supportedDatas.rendererVisibilityConditionData.showIf):d&&d.visibilityCondition&&d.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(d.visibilityCondition.showIf):d&&d.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(d.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(d){switch(d){case "VISIBILITY_CONDITION_TYPE_MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_MDX_DISCONNECTED":return Promise.resolve(!this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_LOCATION_PERMISSION_GRANTED":return this.isLocationPermissionGranted_();default:return Promise.resolve(!1)}},
isLegacyVisibilityConditionSatisfied_:function(d){switch(d){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var d=_.oF(this.hostElement,"yt-get-mdx-status");return d.length==1&&d[0].connected},
isLocationPermissionGranted_:function(){var d;return _.l(function(H){return H.nextAddress==1?navigator.permissions?H.yield(navigator.permissions.query({name:"geolocation"}),3):H.jumpTo(2):H.nextAddress!=2?(d=H.yieldResult,H.return(Promise.resolve(d.state==="granted"))):H.return(Promise.resolve(!1))})}}];var Sz6=function(d,H){H=H===void 0?{}:H;var K=function(c){var p=document.createElement(d),g;var a=(g=p.polymerController)!=null?g:p;ptY(p,a,c,H);return p};
K.debugName=d+" (CoW wrapped)";return K}("yt-icon",{callbackProps:["onKeydown"]}),EoU=_.h("kevlar_use_wil_icons")?_.H1(function(d){var H=d.icon;
var K=d.active;var c=d.className;var p=d.style;var g=d.dataSelected;var a=d.dataDisabled;var e=d.role;var k=d.themeOverride;var C=d.animateIcon;var R=d.ariaHidden;var V=d.ariaExpanded;var U=d.ariaLabel;var L=d.tabindex;var w=d.id;var W=d.iconFilter;var J=d.onKeydown;var F=function(){var E=H==null?void 0:H(),N=null,y=void 0;E&&(E=AdS(E),E=Xtl(E),E.length&&(N=E[1],y=E[0]));return{iconName:N,iconSetName:y}},Y=function(){return jUS(F().iconName,K==null?void 0:K(),void 0,void 0,F().iconSetName,_.Kj().resolve(_.xv))},
A=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:W==null?void 0:W()}};
return _.x(_.n,{cond:C,then:function(){return _.x(Sz6,{icon:H,active:K,className:c,style:p,dataSelected:g,dataDisabled:a,role:e,themeOverride:k,ariaHidden:R,ariaExpanded:V,ariaLabel:U,tabindex:L,id:w,iconFilter:W,onKeydown:J})},
else:function(){return _.x(_.n,{cond:Y,then:function(E){return _.x("span",{class:_.xM("ytIconWrapperHost",c),role:e,"aria-label":U,"aria-hidden":R,tabindex:function(){return isNaN(Number(L==null?void 0:L()))?void 0:Number(L==null?void 0:L())},
id:w,style:p,"on:keydown":_.n7(function(N){return void(J==null?void 0:J(N))})},_.x(vUD,{data:E,
options:A}))}})}})},"Ce"):Sz6;var yeN=function(d){var H=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];yRD();_.vb("ytglobal.ytUtilActivityCallback_",function(){_.qo(d,"yt-user-activity")});
new Hd(function(){return H.JSC$16992_onMouseMove});
document.addEventListener("scroll",function(){return H.onScroll});
window.addEventListener("resize",function(){return H.onResize})},b2N=function(d,H,K){H in d.eventJobIds||(K=_.MO().addLowPriorityJob(function(){_.Kn();
delete d.eventJobIds[H]},K),d.eventJobIds[H]=K)};
yeN.prototype.onScroll=function(d){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):d.target===document&&b2N(this,"scroll",200)};
yeN.prototype.onResize=function(){b2N(this,"resize",200)};
yeN.prototype.JSC$16992_onMouseMove=function(){b2N(this,"mousemove",100)};
_.p_=function(d){d.scrollEventsToIgnore+=1;d.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){d.scrollEventsToIgnore--},500))};var NUS=function(d){this.element=d;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
NUS.prototype.showFeedbackDialog=function(d,H,K,c){var p=DaA();if(!p)return!1;var g=VQF();g.productId=p;H&&(g.flow="submit",g.report={description:H});K&&(DaA()==="59"?g.callback=_.Y2(function(){_.Wd("userFeedbackEvent",{});K()}):g.callback=_.Y2(K));
g.bucket=c||_.Fm("GOOGLE_FEEDBACK_BUCKET","Other");f2l(g);d=AeX(this,"GFEEDBACK",d);try{_.VRl(g,d)}catch(a){return _.tm(a),!1}return!0};
NUS.prototype.showHelpDialog=function(d,H,K){var c=this,p=DaA();if(!p)return!1;var g={helpCenterPath:"/youtube",productData:AeX(this,"GUIDED_HELP",K)};f2l(g);var a=VQF();a.context=d||g.productData.context||"default";a.defaultHelpArticleId=H;a.enableSendFeedback=!0;(_.OS("gapi.load")||function(e,k){return k()})("client",function(){try{var e=bAC(p,g);
if(_.h("web_always_load_chat_support")&&!c.chatSupportLoaded)try{e.JSC$9946_loadChatSupport(a),c.chatSupportLoaded=!0}catch(k){}e.startHelp(a)}catch(k){_.tm(k)}})};
var DaA=function(){var d=_.Fm("GOOGLE_FEEDBACK_PRODUCT_ID");d||_.tm(Error("di"));return d},f2l=function(d){d&&(d.locale=_.h("kevlar_help_use_locale")?_.Fm("INNERTUBE_CONTEXT_HL","en"):_.Fm("HTML_LANG","en"))},AeX=function(d,H,K){var c=d.productData;
delete c.origin;c.device=_.nF();var p;a:{if(p=document.createElement("canvas")){var g=p.getContext("experimental-webgl",{stencil:!0});if(g){var a=g.getExtension("WEBGL_debug_renderer_info");if(a){p=g.getParameter(a.UNMASKED_RENDERER_WEBGL);break a}}if(g=p.getContext("webgl")){p=g.getParameter(g.RENDERER);break a}}p=null}c.gpu=p;c.isSDC=!!_.Fm("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(p=_.Fm("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.rs.extend(c,p);_.CQE(H,c);_.RVi(c);(d=_.qo(d.element,"yt-get-autonav-pause-debug-state"))&&
d.length&&(c.autonav_pause_state=d[0]);d=_.CB();c.browser_resolution=d.width+"\u00d7"+d.height+"@"+(window.devicePixelRatio||1)+"x";K&&_.rs.extend(c,K);return c};
NUS.prototype.resetProductData=function(){this.productData={}};var jAg=function(d){this.feedbackManager=new NUS(d)};
jAg.prototype.showFeedbackDialog=function(d,H,K,c){return this.feedbackManager.showFeedbackDialog(d,H,K,c)};
jAg.prototype.showHelpDialog=function(d,H,K){return this.feedbackManager.showHelpDialog(d,H,K)};var vol=function(){this.baseUrl="";this.aTag=document.createElement("a")},woA=function(d,H,K){K=K===void 0?{}:K;
K.pbj||(K.pbj=1);K=_.rWi(H,K);d.baseUrl&&K&&!_.Am(K)[1]&&!_.jD(K)&&(H=d.baseUrl,i1(H,"/")&&(H=H.slice(0,-1)),_.gh(K,"/")&&(K=K.slice(1)),K=H+"/"+K);_.TC(d.aTag,_.Be(K||""));return d.aTag.href};
vol.prototype.fetchData=function(d){return _.a65(d)};
vol.prototype.postData=function(d,H){var K={method:"POST"};if(H){for(var c=_.q(Object.keys(H)),p=c.next();!p.done;p=c.next()){p=p.value;var g=H[p];_.y4(g)&&(H[p]=JSON.stringify(g))}K.postParams=H}return _.a65(d,K)};
_.PP0=function(d,H,K,c,p){d=woA(d,H,K);if(!d)throw c=Error("ei"),Object.assign(c,{params:H}),c;return _.a65(d,p,c)};
vol.prototype.requestDataForServiceEndpoint=function(d,H){if(_.M(d,_.W$4))return this.fetchData("/getAccountSwitcherEndpoint");H=H||{};var K=_.M(d,bag);K?H.se=K.base64EncodedServiceEndpoint:H.sej=JSON.stringify(d);(K=_.Fj())&&_.h("enable_service_ajax_csn")&&(H.csn=K);H.theme=_.B5();_.M(d,I1C)&&_.Fm("DELEGATION_CONTEXT")&&(H.delegation_context=JSON.stringify(_.Fm("DELEGATION_CONTEXT")));K=null;for(var c in d)if(i1(c,"Endpoint")||i1(c,"Command")){K=c;break}if(!K){var p=Error("fi");Object.assign(p,{params:d});
_.P85(p,"WARNING");return new _.kr(function(a,e){e(p)})}c={name:K};
var g;(K=(g=_.M(d,_.no))==null?void 0:g.signal)&&(c.signal=K);(g=_.NM(window.location.href))&&g.internalcountrycode&&(c.internalcountrycode=g.internalcountrycode);g="/service_ajax";_.h("debug_forward_web_query_parameters")&&(g=_.OoE(g,window.location.search));g=_.f6(g,c);d.clickTrackingParams&&_.Hy(g,{itct:d.clickTrackingParams});return this.postData(g,H)};_.d7M=new _.Av("GFEEDBACK_TOKEN");var HP3;var $7U;var KM3;var c8g;var aT=function(){var d=_.B.apply(this,arguments)||this;d.compact=!1;return d};
_.m(aT,_.B);aT.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
aT.prototype.computeHasIcon_=function(d){return!!d};
aT.prototype.isSignInIcon_=function(d){return d=="yt-icons:prompted_sign_in"};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],aT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],aT.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.O2X.YtConditionalRendererBehavior),_.O("design:type",Object)],aT.prototype,"ytConditionalRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],aT.prototype,"data",void 0);
_.t([_.r({computed:"computeIcon_(data.icon)"}),_.O("design:type",Object)],aT.prototype,"icon_",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.O("design:type",Boolean)],aT.prototype,"hasIcon_",void 0);_.t([_.r({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.O("design:type",Boolean)],aT.prototype,"signInIcon_",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],aT.prototype,"compact",void 0);
_.t([_.ZV({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],aT);
_.T(aT,"yt-player-error-message-renderer",function(){if(c8g===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;KM3===void 0&&(KM3=document.createElement("template"));var c=KM3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);c8g=d}d=c8g;return d},{mode:2});var pSg;var gS3;var ln=function(){return _.B.apply(this,arguments)||this};
_.m(ln,_.B);ln.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
ln.prototype.computeIcon_=function(d){return d?"yt-icons:"+d.iconType.toLowerCase():"error_outline"};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ln.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ln.prototype,"data",void 0);_.t([_.r({computed:"computeIcon_(data.icon)"}),_.O("design:type",Object)],ln.prototype,"icon_",void 0);_.t([_.ZV({is:"yt-player-kav-renderer",disableElementRegistration:!0})],ln);
_.T(ln,"yt-player-kav-renderer",function(){if(gS3===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-kav-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_kav_renderer.yt.player.kav.renderer.css.js--\x3e<yt-icon icon="[[icon_]]" class="style-scope yt-player-kav-renderer"></yt-icon>\n<div id="info" class="style-scope yt-player-kav-renderer">\n  <div class="reason style-scope yt-player-kav-renderer">[[getSimpleString(data.reason)]]</div>\n  <div class="subreason style-scope yt-player-kav-renderer">[[getSimpleString(data.subreason)]]</div>\n  <yt-formatted-string class="more style-scope yt-player-kav-renderer" text="[[data.learnMore]]"></yt-formatted-string>\n  <div id="button" class="style-scope yt-player-kav-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;pSg===void 0&&(pSg=document.createElement("template"));var c=pSg;K.call(H,c.content.cloneNode(!0),d.content.firstChild);gS3=d}d=gS3;return d},{mode:2});var LyC=_.y$(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.iV(_.H1(function(d){var H=_.Af("div"),K=_.q(_.GO(0,void 0,"yt0wE")),c=K.next().value,p=K.next().value;K=_.q(_.GO(null,void 0,"CnFp5"));var g=K.next().value,a=K.next().value;_.WE(function(){MQ5(H.value,p,a);H.value.scrollIntoView()});
K=m4F.bind(null,d.data,c);$l("resize",function(){var e=g();if(c()===1&&e!==null){var k;(k=window.grecaptcha)==null||k.reset(e)}});
return _.x("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.x("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.x("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var e,k;return(e=d.data().accessibility)==null?void 0:(k=e.accessibilityData)==null?void 0:k.label}),_.x(_.j$,{text:K,
className:_.xM("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.x("div",{el:H,class:"ytwPlayerCaptchaViewModelGridItem"})))},"De"),"yt-player-captcha-view-model",{props:{data:_.p7}});var wYF=!1;_.iPg=_.H1(function(d){var H=d.data;return _.x("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.x(_.n,{cond:function(){return H().icon},
then:function(K){return _.x("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.x(_.d7,{data:K,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.x(_.n,{cond:function(){return H().title},
then:function(K){return _.x("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.x(_.j$,{text:K}))}}),_.x(_.n,{cond:function(){return H().description},
then:function(K){return _.x("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.x(_.j$,{text:K}))}}),_.x(_.wB,{data:function(){return H().primaryButton}},{buttonViewModel:function(K){return _.x(_.xk,{data:K.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.x(_.wB,{data:function(){return H().secondaryButton}},{buttonViewModel:function(K){return _.x(_.xk,{data:K.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"Ee");
_.iPg.idomCompat=!0;var GkU=_.H1(function(d){var H=d.data;_.YE();return _.x("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.x("div",{class:"player-interstitial-renderer-wiz__scrim"},_.x(_.wB,{data:function(){return H().content}},{interstitialViewModel:_.iPg})))},"Fe");
GkU.idomCompat=!0;_.iV(GkU,"yt-player-interstitial-renderer",{props:{data:_.dl}});var ee=function(){var d=_.B.apply(this,arguments)||this;d.noBackground=!1;d.compact=!1;d.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return d};
_.m(ee,_.B);ee.prototype.configureRendererStamper=function(){return{data:{id:"container",mapping:{playerErrorMessageRenderer:{component:"yt-player-error-message-renderer",properties:{compact:"[[compact]]"}},playerCaptchaViewModel:"yt-player-captcha-view-model",playerInterstitialRenderer:"yt-player-interstitial-renderer",playerKavRenderer:"yt-player-kav-renderer",enforcementMessageViewModel:"ytd-enforcement-message-view-model"}}}};
ee.prototype.onUpdatePlayerErrorMessageCommand_=function(d){if(_.M(d,iaA)){var H;if(d=(H=_.M(d,iaA))==null?void 0:H.newPlayerErrorMessageRenderer)this.data=d}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ee.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],ee.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ee.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],ee.prototype,"status",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ee.prototype,"noBackground",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ee.prototype,"compact",void 0);_.t([_.ZV({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],ee);
var oS7=_.oq()(ee,"yt-playability-error-supported-renderers",function(){if($7U===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-playability-error-supported-renderers--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_playability_error_supported_renderers.yt.playability.error.supported.renderers.css.js--\x3e<div id="container" class="style-scope yt-playability-error-supported-renderers"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;HP3===void 0&&(HP3=document.createElement("template"));var c=HP3;K.call(H,c.content.cloneNode(!0),d.content.firstChild);$7U=d}d=$7U;return d},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var PQh=void 0,I6F=void 0;var Bm4=new Bk3;var qAX=function(d){this.store=d;this.bV4=new _.J_d},oT4=function(d,H,K){var c,p;
if(!(p=((c=H.playabilityStatus)==null?void 0:c.status)!=="OK")){d=d.store;var g;p=H.offlineState&&((g=H.videoDetails)==null?0:g.videoId)?_.h("enable_pl_r_c_cd")?gRL(d.getState().entities,H.videoDetails.videoId):!!XxF(d.getState().entities,H.videoDetails.videoId):!1}if(p)return!0;p=FyM(H);if(p===1){if(_.h("ab_v_vid_sig")){var a,e=(a=H.videoDetails)==null?void 0:a.videoId;if(!e||!K||e!==K){var k;H=new _.m1("282054944_vid",{lQr:K,euA:(k=H.videoDetails)==null?void 0:k.videoId});_.z5(H)}}return!0}yoF=
0;var C,R;k=(e=H.auxiliaryUi)==null?void 0:(C=e.messageRenderers)==null?void 0:(R=C.bkaEnforcementMessageViewModel)==null?void 0:R.displayType;if(p!==3&&(k==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||k==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;k={reason:_.cW(_.Vz("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.h("ks_something_wrong_learn_more")?Hh5("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.cW(_.Vz("LEARN_MORE",void 0,"Learn more")),navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"//support.google.com/youtube/?p=player_error1#zippy=%2Cupdate-your-browser",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"//support.google.com/youtube/?p=player_error1#zippy=%2Cupdate-your-browser"}}}},subreason:_.cW("282054944")};atX(H,{playerErrorMessageRenderer:k});return!1},q1l=function(d,H){if(oxM(H)){_.VS(1,!0);
var K=(K=oxM(H))&&_.uyf()?K:void 0;K?(atX(H,{enforcementMessageViewModel:K}),d.bV4.increment("IN_PLAYER"),_.VS(5)):(d.bV4.increment("SKIP_DISPLAY"),_.VS(2))}},atX=function(d,H){d.playabilityStatus=Object.assign({},d.playabilityStatus,{status:"ERROR",
errorScreen:H});d.videoDetails=void 0};
qAX.prototype.handleResponse=function(d,H){if(d.playabilityStatus){var K,c,p,g=(H==null?void 0:(K=H.innerTubeRequest)==null?void 0:K.videoId)||(H==null?void 0:(c=H.innerTubeRequest)==null?void 0:(p=c.playerRequest)==null?void 0:p.videoId);oT4(this,d,g)&&q1l(this,d)}};
qAX[fG]=[$8];var i$i=new _.Av("ADBLOCK_DETECTION_SERVICE_TOKEN");var yv=function(d){this.xnt=d};
yv.prototype.bindInnertubeChallengeFetcher=function(d){this.xnt.bicf(d)};
yv.prototype.registerChallengeFetchedCallback=function(d){this.xnt.bcr(d)};
yv.prototype.getLatestChallengeResponse=function(){return this.xnt.blc()};var lt3;lt3=_.y$(["https://static.doubleclick.net/instream/ad_status.js"]);_.ewX=_.pB(lt3);var Cf0;_.kj=function(d,H,K){var c=this;this.network=d;this.options=H;this.networkStatusManager=K;this.gS=null;if(H.useBotguardEverywhere){var p=new _.ki;this.gS=p.promise;_.KF.ytAtRC&&_.rB(_.Xp,function(){var g,a;return _.l(function(e){if(e.nextAddress==1){if(!_.KF.ytAtRC)return e.return();g=kk3(null);return e.yield(c.es(g),2)}a=e.yieldResult;_.KF.ytAtRC&&_.KF.ytAtRC(JSON.stringify(a));_.VE(e)})});
YC5().then(function(g){var a,e,k,C;return _.l(function(R){if(R.nextAddress==1)return g.bindInnertubeChallengeFetcher(function(V){return c.es(kk3(V))}),R.yield(IYC(),2);
a=R.yieldResult;e=g.getLatestChallengeResponse();k=e.challenge;if(!k)throw Error("gi");C={challenge:k,nh:E7(k),vm:a,bgChallenge:new O7};p.resolve(C);g.registerChallengeFetchedCallback(function(V){V=V.challenge;if(!V)throw Error("hi");V={challenge:V,nh:E7(V),vm:a,bgChallenge:new O7};c.gS=Promise.resolve(V)});
_.VE(R)})})}else H.preload&&x7X(this,new Promise(function(g){_.mf(_.Xp,function(){g(nSA(c))},0)}))};
Cf0=function(d){var H={preload:!0,useBotguardEverywhere:!0},K=!1;if(typeof H==="boolean")var c={preload:H};else typeof H==="undefined"?c={preload:!0}:(c=H,K=!!H.wtu);H=K?void 0:new _.yQ;_.kj.instance=new _.kj(d,c,H);return _.kj.instance};
_.kj.prototype.rbD=function(){var d=this;return _.l(function(H){return H.nextAddress==1?H.yield(Promise.race([d.gS,null]),2):H.return(!!H.yieldResult)})};
_.kj.prototype.ryt=function(d,H,K){var c=this,p,g,a;return _.l(function(e){c.gS===null&&x7X(c,nSA(c));p=!1;g={};a=function(){var k,C,R;return _.l(function(V){switch(V.nextAddress){case 1:return V.yield(c.gS,2);case 2:k=V.yieldResult;g.challenge=k.challenge;if(!k.vm){"c1a"in k.nh&&(g.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");V.jumpTo(3);break}C=Object.assign({},{c:k.challenge,e:d},H);_.e2(V,4);p=!0;return V.yield(k.vm.snapshot({wF:C}),6);case 6:(R=V.yieldResult)?g.webResponse=R:g.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.Em(V,3);break;case 4:_.RV(V),g.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(d==="ENGAGEMENT_TYPE_PLAYBACK"){var U=k.nh,L={};if(U.c6a){var w=Number(_.Fm("DCLKSTAT",0));L.reportingStatus=String(Number(U.c)^(isNaN(w)?0:w))}U.c6b&&(L.broadSpectrumDetectionResult=String(Number(U.c)^Number(_.Fm("CATSTAT",0))));g.adblockReporting=L}return V.return(g)}})};
return e.return(Promise.race([a(),RwU(K,function(){var k=Object.assign({},g);p&&(k.error="ATTESTATION_ERROR_VM_TIMEOUT");return k})]))})};
var kk3=function(d){var H={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};d&&(H.interpreterHash=d);return H},nSA=function(d,H){H=H===void 0?0:H;
var K,c,p,g,a,e,k,C,R,V,U,L;return _.l(function(w){switch(w.nextAddress){case 1:K=kk3(srd().dqf);if(_.h("att_fet_ks"))return _.e2(w,7),w.yield(d.es(K),9);_.e2(w,4);return w.yield(VBl(d,K),6);case 6:a=w.yieldResult;p=a.aMB;g=a.t1B;c=a;_.Em(w,3);break;case 4:return _.RV(w),_.Jf(Error("ii`"+H)),U7g(d,864E5),w.return({challenge:"",nh:{},vm:void 0,bgChallenge:void 0});case 9:c=w.yieldResult;if(!c)throw Error("ji");if(!c.challenge)throw Error("ki");p=c.challenge;g=E7(p);if("c1a"in g&&(!c.bgChallenge||!c.bgChallenge.program))throw Error("li");
_.Em(w,3);break;case 7:e=_.RV(w);_.Jf(e);H++;if(H>=5)return _.Jf(Error("ii`"+H)),U7g(d,864E5),w.return({challenge:"",nh:{},vm:void 0,bgChallenge:void 0});k=1E3*Math.pow(2,H-1)+Math.random()*1E3;return w.return(new Promise(function(W){_.mf(_.Xp,function(){W(nSA(d,H))},k)}));
case 3:C=tQC(g);U7g(d,C*1E3);R=void 0;if(!("c1a"in g&&c.bgChallenge)){w.jumpTo(10);break}V=Qyl(c.bgChallenge);_.e2(w,11);return w.yield(ZBl(srd(),V),13);case 13:_.Em(w,12);break;case 11:return U=_.RV(w),_.Jf(U),w.return({challenge:p,nh:g,vm:R,bgChallenge:V});case 12:return _.e2(w,14),R=new _.W9({challenge:V,toV:{pS:"aGIf"}}),w.yield(R.nAF,16);case 16:_.Em(w,10);break;case 14:L=_.RV(w),_.Jf(L),R=void 0;case 10:return w.return({challenge:p,nh:g,vm:R,bgChallenge:V})}})};
_.kj.prototype.es=function(d){var H=this,K;return _.l(function(c){K=H.networkStatusManager;if(!K||K.isNetworkAvailable())return c.return(H.network.es(d));_.TT("att_pna",void 0,"attestation_challenge_fetch");return c.return(new Promise(function(p){K.listenOnce("publicytnetworkstatus-online",function(){H.network.es(d).then(p)})}))})};
var hw3=function(d){if(!d)throw Error("ji");if(!d.challenge)throw Error("ki");var H=d.challenge,K=E7(H);if("c1a"in K&&(!d.bgChallenge||!d.bgChallenge.program))throw Error("li");return Object.assign({},d,{aMB:H,t1B:K})},VBl=function(d,H){var K,c,p,g,a;
return _.l(function(e){switch(e.nextAddress){case 1:K=void 0,c=0,p={};case 2:if(!(c<5)){e.jumpTo(4);break}if(!(c>0)){e.jumpTo(5);break}p.zFx=1E3*Math.pow(2,c-1)+Math.random()*1E3;return e.yield(new Promise(function(k){return function(C){_.mf(_.Xp,function(){C(void 0)},k.zFx)}}(p)),5);
case 5:return _.e2(e,7),e.yield(d.es(H),9);case 9:return g=e.yieldResult,e.return(hw3(g));case 7:K=a=_.RV(e),a instanceof Error&&_.Jf(a);case 8:c++;p={zFx:void 0};e.jumpTo(2);break;case 4:throw K;}})},x7X=function(d,H){d.gS=H},LM3=function(d){var H,K,c;
return _.l(function(p){if(p.nextAddress==1)return p.yield(Promise.race([d.gS,null]),2);H=p.yieldResult;var g=nSA(d);d.gS=g;(K=H)==null||(c=K.vm)==null||c.dispose();_.VE(p)})},U7g=function(d,H){var K=Date.now()+H,c=function(){var p;
return _.l(function(g){p=K-Date.now();return p<1E3?g.yield(LM3(d),0):(_.mf(_.Xp,c,Math.min(p,6E4)),g.jumpTo(0))})};
c()},RwU=function(d,H){return new Promise(function(K){_.mf(_.Xp,function(){K(H())},d)})};var MB3=function(){};
MB3.prototype.processContext=function(d){var H=_.kj.instance;if(!H)return _.fa();var K=NmF(d);return K?new Dg(H.ryt(K,E_l(d),500).then(function(c){var p;(d==null?0:(p=d.innerTubeRequest)==null?0:p.context)||(d.innerTubeRequest.context={});p=d.innerTubeRequest.context;p.request||(p.request={});p.request.attestationResponseData=c})):_.fa()};var m7C=function(d){this.innertubeTransportService=d};
m7C.prototype.es=function(d){_.TT("att_fsr",void 0,"attestation_challenge_fetch");return _.Qq(this.innertubeTransportService,d,_.H5(_.GbN)).then(function(H){_.TT("att_frr",void 0,"attestation_challenge_fetch");return H})};_.wSS=function(d){this.innertubeTransportService=d};var Pfd=new _.Av("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var uu3=function(){},r8X=function(d,H,K,c,p){var g=_.Fm("YPC_MB_URL");
_.z2X(g).then(function(){ItU(g,d,H,K,c,p)})},ItU=function(d,H,K,c,p,g){try{var a=payments.business.integration,e=payments.business.integration.Style.create().withMaterialDesignStyle(),k=a.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.h("enable_window_constrained_buy_flow_dialog")&&(k=k.usingPopupStyle("windowConstrained"));g&&(k=k.usingCloseCallback(g));var C=K?K:_.Fm("YPC_GB_LANGUAGE"),R=_.Fm("SESSION_INDEX");a.bootstrap.fromPaymentsUrl(d);a.bootstrap.asMashupMode(k).usingGaiaIndex(R).usingLocale(C).usingStyle(e).usingDefaultActivityStatusChangeHandler().inStandaloneContext(a.standaloneContextAuthId.forGaia()).purchaseManager(H,function(V){c&&c(V)}).load(void 0,p)}catch(V){throw p&&p(V),_.z5(V),V;
}};var WMB=new _.Av("PURCHASE_MANAGER_TOKEN");var BdX=function(){var d=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return d.videos},
getContinuationsPresent:function(){return d.continuationsPresent},
setVideos:function(H){d.videos=H},
getRecommendedVideos:function(){return d.recommendedVideos},
setRecommendedVideos:function(H){d.recommendedVideos=H}}};
BdX.prototype.addVideos=function(d){d&&(this.videos=d.filter(function(H){return!!_.f6M(H)}).map(function(H){var K=_.f6M(H);
a:{var c;if(H.playlistVideoRenderer&&((c=H.playlistVideoRenderer)==null?0:c.voteSortTiebreaker))var p=H.playlistVideoRenderer.voteSortTiebreaker;else{if(_.M(H,N$)){var g;if(c=(p=_.M(H,N$))==null?void 0:(g=p.playlistItemData)==null?void 0:g.voteSortTiebreaker){p=c;break a}}p=""}}return{itemId:K,videoId:_.v_D(H),voteCount:_.dp4(H),voteSortTiebreaker:p}}),this.continuationsPresent=!!_.M(d[d.length-1],_.AE))};
var zw6=function(d,H){return d.videos.findIndex(function(K){return K.itemId===H})},XS7=function(d,H){return d.recommendedVideos.findIndex(function(K){return K.itemId===H})},J8l=function(d){d={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:d}}}}};_.Kj().resolve(_.cb).resolveCommand(d)};var sRS=function(){BdX.apply(this,arguments)};
_.m(sRS,BdX);
var exM=function(d,H,K,c){if(!d.parentElem)throw Error("qi");var p=zw6(d,H);p===-1&&(p=XS7(d,H),p=p!==-1?p+d.videos.length:-1);if(p===-1)throw Error("ri");var g=p>=d.videos.length?d.recommendedVideos[p-d.videos.length]:d.videos[p];g.voteCount=K;g.voteSortTiebreaker=Date.now().toString();p>=d.videos.length?d.recommendedVideos.splice(p-d.videos.length,1):d.videos.splice(p,1);var a=d.videos;for(var e=0,k=a.length-1;e<=k;){var C=Math.floor((e+k)/2);if(a[C].voteCount<g.voteCount)k=C-1;else if(a[C].voteCount>g.voteCount)e=
C+1;else{a:{var R=g.voteSortTiebreaker;var V=a[C].voteSortTiebreaker;if(R.length!==V.length)R=R.length>V.length;else{for(var U=0;U<R.length;U++){var L=R.charCodeAt(U),w=V.charCodeAt(U);if(L>w){R=!0;break a}if(L<w)break}R=!1}}R?k=C-1:e=C+1}}a=e;if(a===-1)throw Error("si");d.videos.splice(a,0,g);p!==a&&FM3(d,p,a,H,K,c)},FM3=function(d,H,K,c,p,g){var a,e=(a=d.parentElem)==null?void 0:a.children,k=Math.min(H,K),C=Math.max(H,K);
if(e)for(a=k;a<=C;a++)e[a].style.viewTransitionName="item-"+String(a);document.startViewTransition(function(){if(d.parentElem){var R=d.parentElem.children;if(!(!R||H<0||H>=R.length||K<0||K>=R.length)){var V=R[H];if(V){V.remove();d.showRefreshPill=K>=d.videos.length-1&&d.continuationsPresent;if(!d.showRefreshPill){R=R[K]||null;var U;(U=d.parentElem)==null||U.insertBefore(V,R)}_.GT(d.parentElem,"yt-update-video-data-voting-animation",{toIdx:K,itemId:c,newVoteCount:p,voteStatus:g,hideItem:d.showRefreshPill})}}}}).finished.then(function(){if(e)for(var R=
k;R<=C;R++)e[R].style.viewTransitionName="";
if(d.showRefreshPill)J8l(_.Vz("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var V;if(V=R=(V=d.parentElem)==null?void 0:V.children[K])V=R.getBoundingClientRect(),R=V.bottom,V=!(V.top>=0&&R<=d.clientHeight);V&&(V=_.Ua(H>K?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(H-K)),J8l(V))}})};var QR6=function(d,H){var K=this;d?this.innertubeTransportServicePromise=Promise.resolve(d):H&&(this.innertubeTransportServicePromise=H(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Ad(3E3,function(c){return ZPl(K,c)},0);
this.validateMiniAppVideoIdRateLimiter=new Ad(3E3,function(c){return Tdl(K,c)},1)},noA=function(d,H){d.JSC$17104_miniAppId=H;
d.reportMiniAppValueRateLimiter=new Ad(3E3,function(K){return ZPl(d,K)},0);
d.validateMiniAppVideoIdRateLimiter=new Ad(3E3,function(K){return Tdl(d,K)},1)},RgS=function(d,H){var K;
return _.l(function(c){if(c.nextAddress==1)return c.yield(d.reportMiniAppValueRateLimiter.call(H),2);K=c.yieldResult;return c.return([K,H])})},ZPl=function(d,H){var K,c,p,g,a,e,k;
return _.l(function(C){switch(C.nextAddress){case 1:return C.yield(d.innertubeTransportServicePromise,2);case 2:return K=C.yieldResult,c=_.H5(krB),p=Date.now(),g={externalPostId:d.JSC$17104_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(p/1E3),nanos:Math.round(p%1E3*1E6)},intValue:""+H}},_.e2(C,3),C.yield(_.Qq(K,g,c),5);case 5:a=C.yieldResult;_.Em(C,4);break;case 3:throw e=_.RV(C),e;case 4:if(a){if("error"in a&&a.error)throw a.error;if(a.errorMetadata)throw Error("ti`"+
a.errorMetadata.status);if(k=a.userStatResult)return C.return(k);throw Error("ui");}throw Error("vi");}})},Ua7=function(d){var H,K,c,p,g;
_.l(function(a){switch(a.nextAddress){case 1:return a.yield(d.innertubeTransportServicePromise,2);case 2:return H=a.yieldResult,K=_.H5(krB),c={externalPostId:d.JSC$17104_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.e2(a,3),a.yield(_.Qq(H,c,K),5);case 5:p=a.yieldResult;_.Em(a,4);break;case 3:throw g=_.RV(a),g;case 4:if(p==null)throw Error("vi");if("error"in p&&p.error)throw p.error;if(p.errorMetadata)throw Error("ti`"+p.errorMetadata.status);_.VE(a)}})};
QR6.prototype.flush=function(){var d=this;return _.l(function(H){return H.nextAddress==1?H.yield(d.reportMiniAppValueRateLimiter.flush(),2):H.yield(d.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var VYM=function(d,H){return _.l(function(K){return K.nextAddress==1?K.yield(d.validateMiniAppVideoIdRateLimiter.call(H),2):K.return(K.yieldResult)})},Tdl=function(d,H){var K,c,p,g,a,e;
return _.l(function(k){switch(k.nextAddress){case 1:return k.yield(d.innertubeTransportServicePromise,2);case 2:return K=k.yieldResult,c=_.H5(gxX),p={videoId:H},_.e2(k,3),k.yield(_.Qq(K,p,c),5);case 5:g=k.yieldResult;_.Em(k,4);break;case 3:throw a=_.RV(k),a;case 4:if(g){if("error"in g&&g.error)throw g.error;if(g.errorMetadata)throw Error("ti`"+g.errorMetadata.status);if(e=g.playabilityStatus)return k.return(e.status);throw Error("wi");}throw Error("vi");}})};
QR6[fG]=[_.$p(_.Z8),_.$p(QXg)];var tBA=function(){this.clientData=new Map};
tBA.prototype.getData=function(d){return this.clientData.get(d)};var YA0=function(d){this.store=d};
YA0.prototype.handleResponse=function(d){(d=_.M(d.frameworkUpdates,Au))&&_.Uc(d,this.store)};
YA0[fG]=[_.t$];var OPd=new _.Av("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var SA0={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var ESl=new _.Av("ICON_SET_TOKEN"),y83=new _.Av("ICON_URL_PROVIDER_TOKEN"),bPg=new _.Av("PREFETCH_ICONS_TOKEN"),Ndg=new _.Av("ICON_MAP_FN_TOKEN");var xj={},D7U=(xj.ACCESS_TIME="clock",xj.ACCOUNT_BOX="person_account",xj.ACCOUNT_BOX_CAIRO="person_account_cairo",xj.ACCOUNT_CIRCLE="person_circle",xj.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",xj.ACCOUNT_LINKED="account_link_success",xj.ACCOUNT_UNLINKED="account_link",xj.ADD_FRIEND="people",xj.ADD_MODERATOR="shield_add",xj.ADD_TO_LIBRARY="bookmark",xj.ADD_TO_PLAYLIST="add",xj.ADD_TO_QUEUE_TAIL="list_queue",xj.ADD_TO_REMOTE_QUEUE="list_music",xj.ADD_TO_WATCH_LATER="clock",xj.ADD_VIDEO_LINK="film_strip_add",
xj.ALERT_WARN_RED="alert_triangle",xj.ARROW_BACK="arrow_left",xj.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",xj.ARROW_DROP_DOWN="chevron_down",xj.ARROW_DROP_UP="chevron_up",xj.ARROW_FORWARD="arrow_right",xj.AUDIOTRACK="audio",xj.AUTO_AWESOME="sparkle",xj.AVATAR_ANONYMOUS="person_circle",xj.AVATAR_LOGGED_OUT="person_circle",xj.BACK="arrow_left",xj.BAR_CHART="bar_graph",xj.BLOCK="slash_circle_left",xj.BLOCK_USER="slash_circle_left",xj.BOOKMARK_BORDER="bookmark",xj.BREAKING_NEWS_ALT_1="article_alert",
xj.BROADCAST_CAIRO="podcast_cairo",xj.BUG_REPORT="bug",xj.CAMERA_ALT="camera",xj.CAMPAIGN="megaphone",xj.CANCEL="x_circle",xj.CAPTIONS="closed_caption",xj.CAST_OUTLINE="chromecast",xj.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",xj.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",xj.CHAT="message_bubble_left",xj.CHAT_BUBBLE="message_bubble_empty",xj.CHAT_SPARK="spark_message_bubble_left",xj.CHECK_BOX_OUTLINE_BLANK="box_empty",xj.CHECK_CIRCLE_OUTLINE="check_circle",xj.CHECK_CIRCLE_THICK="check_circle",xj.CLARIFY=
"article_clarify",xj.CLOSED_CAPTION_SELECTED="closed_caption",xj.CLOSE="x_mark",xj.CLOUD_UPLOAD="cloud_arrow_up",xj.COLLAPSE="chevron_up",xj.COLLAPSE_CAIRO="chevron_up_cairo",xj.COLLECTION="layers",xj.COLOR_LENS="palette",xj.COMMENT="message_bubble_right",xj.CONSENT_SHIELD="person_shield",xj.CONTENT_CUT="scissors",xj.CONTENT_CUT_CAIRO="scissors_cairo",xj.COURSE=_.h("web_enable_course_icon_update")?"creator_academy":"lightbulb",xj.COURSE_CAIRO=_.h("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",xj.CREATION_LIVE="radar_live",xj.CREATION_POST="box_pencil",xj.CREATION_UPLOAD="my_videos",xj.CREATION_UPLOAD_RED="upload",xj.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",xj.CREATOR_STUDIO="youtube_studio",xj.DASHBOARD="grid_asymmetrical",xj.DELETE="trash_can",xj.DELETE_SWEEP="trash_can",xj.DESKTOP="laptop",xj.DISLIKE="thumb_down",xj.DISLIKE_SELECTED="thumb_down",xj.DISMISSAL="x_mark",xj.DISMISS_QUEUE="list_remove",xj.DONE_ALL="check_double",xj.DOWN_ARROW="arrow_down",xj.DO_NOT_DISTURB=
"slash_circle_left",xj.DRAFT="paper_corner_folded",xj.DRAG_HANDLE="bars_2",xj.EDIT="pencil",xj.EMOJI="face_very_happy",xj.EMOJI_FLAGS="flag",xj.EMOJI_OBJECTS="lightbulb",xj.EMOJI_PEOPLE="face_very_happy",xj.EMOJI_RECENT="clock",xj.EMPTY_HEART="heart",xj.EMPTY_LIKE="thumb_up",xj.ERROR_BLACK="alert_circle",xj.ERROR_OUTLINE="alert_circle",xj.EXIT_APP="arrow_in",xj.EXIT_TO_APP="arrow_in",xj.EXPAND="chevron_down",xj.EXPAND_ALL="chevron_expand",xj.EXPAND_CAIRO="chevron_down_cairo",xj.EXPAND_LESS="chevron_up",
xj.EXPAND_MORE="chevron_down",xj.EXPLORE="compass",xj.EXPLORE_DESTINATION="compass",xj.EXTERNAL_LINK="open_new",xj.FAB_UPLOAD="upload",xj.FACE_HAPPY_OUTLINE="face_happy",xj.FACT_CHECK="article_check",xj.FASHION_LOGO="fashion",xj.FASHION_LOGO_CAIRO="fashion_cairo",xj.FAVORITE="heart",xj.FEEDBACK="message_bubble_alert",xj.FEEDBACK_CAIRO="message_bubble_alert_cairo",xj.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",xj.FILL_ARROW_SOLID_UP_16="arrow_solid_up",xj.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
xj.FILTER="menu_filter",xj.FIRST_PAGE="chevron_first",xj.FLAG="flag",xj.FULL_HEART="heart",xj.GAME_CONSOLE_DPAD="game_console_dpad",xj.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",xj.GAMING_LOGO="gaming",xj.GAMING_LOGO_CAIRO="gaming_cairo",xj.GO_TO_PAGE="arrow_right",xj.GROUPS="people_group",xj.HAPPY="face_happy",xj.HEALTH_AND_SAFETY="shield_plus",xj.HELP="question_circle",xj.HELP_CAIRO="question_circle_cairo",xj.HELP_OUTLINE="question_circle",xj.HIDE="slash_circle_left",xj.IMAGE="image",
xj.INFINITY_ICON="infinity",xj.INFO="info_circle",xj.INFO_OUTLINE="info_circle",xj.INSERT_CHART="bar_graph_box_vertical",xj.INSERT_CHART_OUTLINED="bar_graph_box_vertical",xj.INSERT_PHOTO="image",xj.KEEP="pin",xj.KEEP_OFF="pin_off",xj.KEYBOARD="keyboard",xj.KEYBOARD_ARROW_DOWN="chevron_down",xj.KEYBOARD_ARROW_UP="chevron_up",xj.KIDS_BLOCK="slash_circle_left",xj.LANGUAGE="globe",xj.LAST_PAGE="chevron_last",xj.LAUNCH="open_new",xj.LEARNING="lightbulb",xj.LEARNING_CAIRO="lightbulb_cairo",xj.LIBRARY_ADD=
cz1("library_add"),xj.LIBRARY_OUTLINE="library",xj.LIBRARY_REMOVE=cz1(),xj.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",xj.LIKES_PLAYLIST="thumb_up",xj.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",xj.LIKE="thumb_up",xj.LIKE_SELECTED="thumb_up",xj.LIVE="radar_live",xj.LIVE_CAIRO="radar_live_cairo",xj.LIVE_UNLISTED="link",xj.LOCATION_ON="location_point",xj.LOCATION_PIN="location_point",xj.LOOP="arrow_repeat",xj.LOOP_ACTIVE="arrow_repeat",xj.LOOP_ONE="arrow_repeat_1",xj.LOOP_ONE_ACTIVE="arrow_repeat_1",xj.MEH=
"face_meh",xj.MEMBERS_ONLY_MODE_OFF="message_bubble_left",xj.MESSAGE="message_bubble_left",xj.MICROPHONE_ON="mic",xj.MIX="youtube_mix",xj.MONETIZATION_ON="dollar_sign_circle",xj.MONEY_FILL="dollar_sign_container",xj.MONEY_FILL_JPY="yen_sign_container",xj.MONEY_HEART="dollar_sign_heart",xj.MORE_HORIZ="overflow_horizontal",xj.MORE_VERT="overflow_vertical",xj.MUSIC="audio",xj.MUSIC_CAIRO="audio_cairo",xj.MUSIC_NOTE_SYMBOL="music",xj.MUSIC_SHUFFLE="arrow_shuffle",xj.MY_CHANNEL="person_circle",xj.MY_LOCATION=
"location_point",xj.NEWS_STORY="news",xj.NEXT="chevron_right",xj.NOTIFICATIONS="bell",xj.NOTIFICATIONS_ACTIVE="bell_on",xj.NOTIFICATIONS_CAIRO="bell_cairo",xj.NOTIFICATIONS_DONE_CHECKMARK="check",xj.NOTIFICATIONS_INBOX="bell",xj.NOTIFICATIONS_NONE="bell",xj.NOTIFICATIONS_OFF="bell_off",xj.NOT_INTERESTED="slash_circle_left",xj.OFFICIAL_ARTIST_BADGE="audio",xj.OFFLINE_CLOUD="cloud_off",xj.OFFLINE_DOWNLOAD="download",xj.OFFLINE_DOWNLOAD_CAIRO="download_cairo",xj.OFFLINE_PAUSE="pause",xj.OPEN_IN_NEW=
"open_new",xj.OUTLINE_ADJUST="adjust",xj.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",xj.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",xj.OUTLINE_BAG="bag",xj.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",xj.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",xj.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",xj.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",xj.PAID="dollar_sign",xj.PAUSE_OUTLINED="pause",xj.PAYMENT="credit_card",xj.PERSON_RADAR_FILLED="person_radar",xj.PHONE_DOWNLOAD="mobile_download",
xj.PLAYABLES_LOGO="tic_tac_toe",xj.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",xj.PLAYLISTS="list_play_arrow",xj.PLAYLISTS_CAIRO="list_play_arrow_cairo",xj.PLAYLIST_ADD=cz1("list_add"),xj.PLAYLIST_ADD_CHECK=cz1("list_check"),xj.PLAYLIST_PLAY="list_play_arrow",xj.PLAY_ALL="play_arrow",xj.PLAY_CIRCLE="play_arrow_circle",xj.PLAY_OUTLINED="play_arrow_circle",xj.PRIVACY_INFO="shield",xj.PRIVACY_PRIVATE="lock",xj.PRIVACY_PUBLIC="earth",xj.PRIVACY_UNLISTED="link",xj.PROMOTE="megaphone",xj.PURCHASES="price_tag",
xj.PURCHASE_SUPER_CHAT="super_chat",xj.PURCHASE_SUPER_STICKER="super_sticker",xj.QUESTION_ANSWER="message_bubble_question",xj.QUEUE_PLAY_LAST="list_queue_last",xj.QUEUE_PLAY_NEXT="list_play_arrow",xj.REMIX_FILLED="youtube_shorts_remix",xj.REMOVE="bar_circle",xj.REMOVE_CIRCLE="bar_circle",xj.REMOVE_CIRCLE_OUTLINE="bar_circle",xj.REMOVE_DONE="check_double_off",xj.REMOVE_FROM_HISTORY="bar_circle",xj.REMOVE_FROM_PLAYLIST="bar_circle",xj.REMOVE_MODERATOR="shield_off",xj.REPLAY="arrow_circle",xj.REPLAY_10=
"skip_back_10",xj.REPORT_PROBLEM="alert_triangle",xj.SAD="face_sad",xj.SAVE_PLAYLIST="bookmark",xj.SCHEDULE="clock",xj.SCHOOL="creator_academy",xj.SCREEN_FULLSCREEN="screen_full",xj.SEARCH_HISTORY="arrow_time",xj.SELL="price_tag",xj.SETTINGS="gear",xj.SETTINGS_CAIRO="gear_cairo",xj.SETTINGS_LIGHT="gear",xj.SETTINGS_MATERIAL="gear",xj.SHARE_ARROW="share",xj.SHIELD_WITH_AVATAR="person_shield",xj.SHOPPING_BAG="bag",xj.SHOPPING_BAG_CAIRO="bag_cairo",xj.SHOPPING_CART="cart",xj.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
xj.SHORTS_DISLIKE="youtube_shorts_thumb_down",xj.SHORTS_LIKE="youtube_shorts_thumb_up",xj.SHORTS_SHARE="youtube_shorts_share",xj.SHUFFLE="arrow_shuffle",xj.SLOW_MODE_OFF="message_bubble_left",xj.SOCIAL="people",xj.SORT="menu_sort",xj.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",xj.SPEED_1X="1x",xj.SPEED_1_POINT_2X="1_point_2x",xj.SPEED_1_POINT_5X="1_point_5x",xj.SPEED_1_POINT_8X="1_point_8x",xj.SPEED_2X="2x",xj.SPEED_POINT_2X="point_2x",xj.SPEED_POINT_8X="point_8x",xj.SPONSORSHIP_STAR="star_circle",
xj.STAFF_PICK="spotlight",xj.START_DVR="add",xj.STAR_BORDER="star",xj.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",xj.STICKER_EMOTICON="face_happy",xj.STOP_DVR="stop",xj.SUBSCRIBE="youtube_logo_icon",xj.SUBSCRIBE_PLUS="add_cairo",xj.SUBSCRIPTION_MANAGER="gear",xj.SUPERVISOR_ACCOUNT="people",xj.SUPER_CHAT_FOR_GOOD="hands_heart",xj.SWAP_HORIZ="arrow_swap_horizontal",xj.SWITCH_ACCOUNTS="person_account",xj.TAB_ACCOUNT="person",xj.TAB_ACTIVITY="bell",xj.TAB_BOOKMARK="bookmark",xj.TAB_EXPLORE="compass",
xj.TAB_HOME="home",xj.TAB_HOME_CAIRO="home_cairo",xj.TAB_INBOX="mail",xj.TAB_LIKED="thumb_up",xj.TAB_MUSIC_PREMIUM="youtube_music",xj.TAB_SHORTS="youtube_shorts",xj.TAB_SHORTS_CAIRO="youtube_shorts_cairo",xj.TAB_SUBSCRIPTIONS="subscriptions",xj.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",xj.TAB_TRENDING="fire",xj.TIMER="stopwatch",xj.TRAILER="youtube_originals",xj.TRENDING="fire",xj.TRENDING_CAIRO="fire_cairo",xj.TRENDING_UP="rating_up",xj.TROPHY="trophy",xj.TROPHY_CELEBRATIONS="fireworks",xj.TUNE=
"adjust",xj.UNBLOCK_USER="bar_circle",xj.UNLIMITED="youtube_logo_icon",xj.UNPLUGGED_LIVE_GUIDE="radar_live",xj.UNPLUGGED_SPORTS="eye_off",xj.UPLOADS="library",xj.UP_ARROW="arrow_up",xj.VERTICAL_ALIGN_BOTTOM="download",xj.VERY_HAPPY="face_very_happy",xj.VERY_SAD="face_very_sad",xj.VIDEOGAME_ASSET="gaming",xj.VIDEOS="play_arrow_circle",xj.VIDEO_CALL="video_camera_add",xj.VIDEO_LIBRARY_WHITE="library",xj.VIDEO_YOUTUBE="youtube_logo_icon",xj.VIEW_LIST="list_view",xj.VIEW_LIST_CAIRO="list_view_cairo",
xj.VISIBILITY="eye",xj.VISIBILITY_OFF="eye_off",xj.VOLUME_MUTE="volume_off",xj.VOLUME_UP="volume_on",xj.WALLPAPER="image",xj.WARNING="alert_triangle",xj.WATCH_HISTORY="arrow_time",xj.WATCH_HISTORY_CAIRO="arrow_time_cairo",xj.WATCH_LATER="clock",xj.WATCH_LATER_CAIRO="clock_cairo",xj.WATCH_RELATED_MIX="youtube_mix",xj.WHAT_TO_WATCH="home",xj.YOUTUBE_MUSIC_MONOCHROME="youtube_music",xj.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",xj.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
xj.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",xj.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",xj.YT_OUTLINE_MUSIC_24="music",xj);var nS={},ftB=(nS.ACCESS_TIME="clock",nS.ACCOUNT_BOX="person_square",nS.ACCOUNT_BOX_CAIRO="person_square",nS.ACCOUNT_CIRCLE="person_circle",nS.ACCOUNT_CIRCLE_CAIRO="person_circle",nS.ACCOUNT_LINKED="account_link",nS.ACCOUNT_UNLINKED="account_link",nS.ADD_CIRCLE="add_circle",nS.ADD_CIRCLE_OUTLINE="add_circle",nS.ADD_FRIEND="person_child",nS.ADD_MODERATOR="shield_add",nS.ADD_TO_LIBRARY="bookmark",nS.ADD_TO_PLAYLIST="add",nS.ADD_TO_QUEUE_TAIL="queue",nS.ADD_TO_REMOTE_QUEUE="playlist_audio",nS.ADD_TO_WATCH_LATER=
"clock",nS.ADD_VIDEO_LINK="film_strip_add",nS.ADMIN_PANEL_SETTINGS="person_gear",nS.ALERT_WARN_RED="alert_triangle",nS.ALIGN_LEFT="text_align_left",nS.ARROWS_ALERT="arrow_split_alert",nS.ARROW_BACK="arrow_left",nS.ARROW_CIRCLE="arrow_counterclockwise",nS.ARROW_CIRCLE_PLAY="replay",nS.ARROW_CIRCLE_RIGHT="arrow_clockwise",nS.ARROW_DIAGONAL="arrow_up_left",nS.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",nS.ARROW_DROP_DOWN="triangle_down",nS.ARROW_DROP_UP="triangle_up",nS.ARROW_FORWARD="arrow_right",nS.ARROW_PAUSE=
"pause_history",nS.ARROW_UNDO="undo",nS.ARTICLE="text_page",nS.ARTICLE_ALERT="text_page_alert",nS.ARTICLE_CHECK="text_page_check",nS.ARTICLE_CLARIFY="text_page_info",nS.AUDIOTRACK="audio",nS.AUDIO_BADGE="audio_badge",nS.AUDIO_SURROUND="surround_sound",nS.AUTO_AWESOME="sparkles",nS.AVATAR_ANONYMOUS="person_circle",nS.AVATAR_LOGGED_OUT="person_circle",nS.BACK="arrow_left",nS.BAR_CHART="chart_bar",nS.BAR_CIRCLE="minus_circle",nS.BAR_HORIZONTAL="minus",nS.BLOCK="circle_slash",nS.BLOCK_USER="circle_slash",
nS.BOOKMARK_BORDER="bookmark",nS.BOX_OPEN_CHECK="quiz",nS.BOX_PENCIL="square_pencil",nS.BOX_STACK_3="square3_stack",nS.BREAKING_NEWS_ALT_1="text_page_alert",nS.BROADCAST="podcast",nS.BROADCAST_CAIRO="podcast",nS.BUG_REPORT="bug",nS.CAMERA_ALT="camera",nS.CAMPAIGN="megaphone",nS.CANCEL="x_circle",nS.CAPTIONS="closed_captions",nS.CAST_ICON="chromecast",nS.CAST_OUTLINE="chromecast",nS.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",nS.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",nS.CHAT="text_bubble",
nS.CHAT_BUBBLE="bubble",nS.CHECK_BOX="check_square",nS.CHECK_BOX_OUTLINE_BLANK="square",nS.CHECK_CIRCLE_FILLED="check_circle",nS.CHECK_CIRCLE_OUTLINE="check_circle",nS.CHECK_CIRCLE_THICK="check_circle",nS.CHECK_DOUBLE="check_done",nS.CHECK_DOUBLE_OFF="check_done_slash",nS.CHEVRON_LEFT="chevron_left",nS.CHEVRON_RIGHT="chevron_right",nS.CHEVRON_RIGHT_CAIRO="chevron_right",nS.CIRCLES_OVERLAP="account_link",nS.CLAPPERBOARD_CAIRO="clapperboard",nS.CLARIFY="text_page_info",nS.CLOCK_ARROWS="clock_split",
nS.CLOCK_ARROWS_ALERT="clock_split_alert",nS.CLOSED_CAPTION="closed_captions",nS.CLOSED_CAPTION_SELECTED="closed_captions",nS.CLOSE="x",nS.CLOUD_UPLOAD="cloud_arrow_up",nS.COLLAPSE="chevron_up",nS.COLLAPSE_CAIRO="chevron_up",nS.COLLECTION="square3d_stack",nS.COLOR_LENS="paint_palette",nS.COMMENT="text_bubble",nS.CONSENT_SHIELD="person_shield",nS.CONTENT_CUT="scissors",nS.CONTENT_CUT_CAIRO="scissors",nS.COURSE="graduation_cap",nS.COURSE_CAIRO="graduation_cap",nS.CREATION_LIVE="live",nS.CREATION_POST=
"square_pencil",nS.CREATION_UPLOAD="video",nS.CREATION_UPLOAD_RED="upload",nS.CREATOR_ACADEMY="graduation_cap",nS.CREATOR_STUDIO="youtube_studio",nS.DARK_THEME="theme",nS.DELETE="trash_can",nS.DELETE_SWEEP="trash_can",nS.DESKTOP="laptop",nS.DISLIKE="thumb_down",nS.DISLIKE_SELECTED="thumb_down",nS.DISMISSAL="x",nS.DISMISS_QUEUE="playlist_x",nS.DOGFOOD="pawprint",nS.DOLLAR_SIGN="dollar_sign_circle",nS.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",nS.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",nS.DOWN_ARROW=
"arrow_down",nS.DO_NOT_DISTURB="circle_slash",nS.DRAFT="document",nS.DRAG_HANDLE="equal",nS.EARTH="globe",nS.EDIT="pencil",nS.EMOJI="face_very_happy",nS.EMOJI_FLAGS="flag",nS.EMOJI_OBJECTS="lightbulb",nS.EMOJI_PEOPLE="face_very_happy",nS.EMOJI_RECENT="clock",nS.EMPTY_HEART="heart",nS.EMPTY_LIKE="thumb_up",nS.ERROR_BLACK="alert_circle",nS.ERROR_OUTLINE="alert_circle",nS.ERROR_WHITE="alert_circle",nS.EXIT_APP="arrow_in",nS.EXIT_TO_APP="arrow_in",nS.EXPAND="chevron_down",nS.EXPAND_ALL="chevron_expand",
nS.EXPAND_CAIRO="chevron_down",nS.EXPAND_LESS="chevron_up",nS.EXPAND_MORE="chevron_down",nS.EXPLORE="compass",nS.EXPLORE_DESTINATION="compass",nS.EXTERNAL_LINK="arrow_up_right",nS.EYE_OFF="eye_slash",nS.FAB_UPLOAD="upload",nS.FACE_HAPPY_OUTLINE="face_happy",nS.FACE_MEH="face_neutral",nS.FACT_CHECK="text_page_check",nS.FASHION_LOGO="fashion",nS.FASHION_LOGO_CAIRO="fashion",nS.FAVORITE="thumb_up",nS.FEEDBACK="alert_bubble",nS.FEEDBACK_CAIRO="alert_bubble",nS.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
nS.FILL_ARROW_SOLID_UP_16="arrow_solid_up",nS.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",nS.FLAG_CAIRO="flag",nS.FLASH_OFF="flash_slash",nS.FLASH_ON="flash",nS.FULL_HEART="heart",nS.GAMING_LOGO="gaming",nS.GAMING_LOGO_CAIRO="gaming",nS.GO_TO_PAGE="arrow_right",nS.GROUPS="person3",nS.HAND_SWIPE_LEFT="gesture_swipe_left",nS.HAND_SWIPE_RIGHT="gesture_swipe_right",nS.HAPPY="face_happy",nS.HEALTH_AND_SAFETY="shield_health",nS.HEART_BOX="heart_cube",nS.HELP="help_circle",nS.HELP_CAIRO="help_circle",
nS.HELP_OUTLINE="help_circle",nS.HIDE="circle_slash",nS.INCOGNITO_CAIRO="incognito",nS.INFINITY_ICON="infinity",nS.INFO="info_circle",nS.INFO_OUTLINE="info_circle",nS.INSERT_CHART="chart_bar_square",nS.INSERT_CHART_OUTLINED="chart_bar_square",nS.INSERT_PHOTO="image",nS.KEEP="pin",nS.KEEP_OFF="pin_slash",nS.KEYBOARD="keyboard",nS.KEYBOARD_ARROW_DOWN="chevron_down",nS.KEYBOARD_ARROW_UP="chevron_up",nS.KIDS_BLOCK="circle_slash",nS.LANGUAGE="globe",nS.LAUNCH="arrow_up_right",nS.LEARNING="lightbulb",nS.LEARNING_CAIRO=
"lightbulb",nS.LIBRARY_ADD="bookmark",nS.LIBRARY_IMAGE="image_stack",nS.LIBRARY_MUSIC="audio_square_stack",nS.LIBRARY_OUTLINE="play_square_stack",nS.LIBRARY_REMOVE="bookmark",nS.LIBRARY_SAVED="check_square_stack",nS.LIKES_PLAYLIST="thumb_up",nS.LIKES_PLAYLIST_CAIRO="thumb_up",nS.LIKE="thumb_up",nS.LIKE_SELECTED="thumb_up",nS.LIST_QUEUE="queue",nS.LIVE_CAIRO="live",nS.LIVE_UNLISTED="link",nS.LOCATION_ON="location_pin",nS.LOCATION_PIN="location_pin",nS.LOCATION_POINT="location_pin",nS.LOOP="repeat",
nS.LOOP_ACTIVE="repeat",nS.LOOP_ONE="repeat1",nS.LOOP_ONE_ACTIVE="repeat1",nS.MEET="google_meet",nS.MEH="face_neutral",nS.MEMBERSHIPS="memberships",nS.MEMBERS_ONLY_MODE_OFF="text_bubble",nS.MENU_FILTER="filter",nS.MESSAGE="text_bubble",nS.MESSAGE_BUBBLE_GEAR="bubble_gear",nS.MESSAGE_BUBBLE_LEFT="text_bubble",nS.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",nS.MESSAGE_BUBBLE_OVERLAP="bubble_stack",nS.MESSAGE_BUBBLE_QUESTION="help_bubble",nS.MICROPHONE_ON="mic",nS.MONETIZATION_ON="dollar_sign_circle",
nS.MONEY_FILL="dollar_sign_rectangle",nS.MONEY_FILL_JPY="yen_sign_rectangle",nS.MONEY_HAND="dollar_sign_circle_hand",nS.MONEY_HEART="dollar_sign_heart",nS.MOON_Z="sleep_timer",nS.MORE_HORIZ="overflow_horizontal",nS.MORE_VERT="overflow_vertical",nS.MUSIC="audio",nS.MUSIC_CAIRO="audio",nS.MUSIC_EXPLICIT_BADGE="explicit",nS.MUSIC_NEW_RELEASE="audio_badge",nS.MUSIC_NOTE_SYMBOL="audio",nS.MUSIC_SCISSORS="audio_scissors",nS.MUSIC_SHUFFLE="shuffle",nS.MY_CHANNEL="person_circle",nS.MY_LOCATION="location_pin",
nS.MY_VIDEOS="video",nS.MY_VIDEOS_CAIRO="video",nS.NEWS_CAIRO="news",nS.NEWS_STORY="news",nS.NEXT="chevron_right",nS.NOTE_ADD="bubble_pencil",nS.NOTIFICATIONS="bell",nS.NOTIFICATIONS_ACTIVE="bell_waves",nS.NOTIFICATIONS_CAIRO="bell",nS.NOTIFICATIONS_DONE_CHECKMARK="check",nS.NOTIFICATIONS_INBOX="bell",nS.NOTIFICATIONS_NONE="bell",nS.NOTIFICATIONS_OFF="bell_slash",nS.NOT_INTERESTED="circle_slash",nS.OFFICIAL_ARTIST_BADGE="audio",nS.OFFLINE_CLOUD="cloud_slash",nS.OFFLINE_DOWNLOAD="download",nS.OFFLINE_DOWNLOAD_CAIRO=
"download",nS.OFFLINE_PAUSE="pause",nS.OPEN_IN_NEW="arrow_up_right",nS.OUTLINE_ADJUST="adjust",nS.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",nS.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",nS.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",nS.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",nS.OUTLINE_BAG="bag",nS.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",nS.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",nS.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",nS.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",nS.PAID=
"dollar_sign_circle",nS.PAUSE_OUTLINED="pause",nS.PAYMENT="credit_card",nS.PEOPLE="person_child",nS.PEOPLE_2="person2_rectangle",nS.PEOPLE_GROUP="person3",nS.PEOPLE_NOTE="bubble_asterisk",nS.PERSON_2="person2",nS.PERSON_ACCOUNT="person_square_stack",nS.PERSON_MINUS="person_x",nS.PERSON_MUSIC="person_audio",nS.PERSON_RADAR="person_waves",nS.PERSON_RADAR_FILLED="person_waves",nS.PERSON_SETTING="person_gear",nS.PHONE="phone",nS.PHONE_DOWNLOAD="mobile_arrow_down",nS.PICTURE_IN_PICTURE="picture_in_picture",
nS.PLAYABLES_LOGO="playables",nS.PLAYABLES_LOGO_CAIRO="playables",nS.PLAYLISTS="playlist",nS.PLAYLISTS_CAIRO="playlist",nS.PLAYLIST_ADD_CHECK="bookmark",nS.PLAY_ALL="play",nS.PLAY_ARROW="play",nS.PLAY_ARROW_CIRCLE="play_circle",nS.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",nS.PLAY_CIRCLE="play_circle",nS.PLAY_OUTLINED="play_circle",nS.PODCAST_ADD="podcast_add",nS.PODCAST_CHECK="podcast_check",nS.PRIVACY_INFO="shield_x",nS.PRIVACY_PRIVATE="lock",nS.PRIVACY_PUBLIC="globe",nS.PRIVACY_UNLISTED=
"link",nS.PROMOTE="megaphone",nS.PURCHASES="price_tag",nS.PURCHASE_SUPER_CHAT="super_chat",nS.PURCHASE_SUPER_STICKER="super_sticker",nS.QUESTION_ANSWER="help_bubble",nS.QUESTION_CIRCLE="help_circle",nS.QUEUE_PLAY_LAST="queue_last",nS.QUEUE_PLAY_NEXT="playlist",nS.QUOTATION_MARK="quote",nS.RADAR_LIVE="live",nS.REMOVE="minus_circle",nS.REMOVE_CIRCLE="minus_circle",nS.REMOVE_CIRCLE_OUTLINE="minus_circle",nS.REMOVE_FROM_HISTORY="minus_circle",nS.REMOVE_FROM_PLAYLIST="minus_circle",nS.REMOVE_MODERATOR=
"shield_slash",nS.REPLAY="arrow_counterclockwise",nS.REPLAY_10="skip10_back",nS.REPLAY_ARROW="replay",nS.REPORT_PROBLEM="alert_triangle",nS.RSS_OFF="rss_slash",nS.SAD="face_sad",nS.SAVE_PLAYLIST="bookmark",nS.SCHEDULE="clock",nS.SCHOOL="graduation_cap",nS.SCREEN_DEFAULT="player_default",nS.SCREEN_FULLSCREEN="player_full_enter",nS.SCREEN_LIGHT="ambient_mode",nS.SCREEN_ROTATION="rotate_portrait",nS.SCREEN_SWITCH="player_switch",nS.SCREEN_THEATRE="player_theater",nS.SEARCH_CAIRO="search",nS.SEARCH_HISTORY=
"history",nS.SELL="price_tag",nS.SETTINGS="gear",nS.SETTINGS_CAIRO="gear",nS.SETTINGS_LIGHT="gear",nS.SETTINGS_MATERIAL="gear",nS.SETTINGS_REMOTE="remote_waves",nS.SHARE="share",nS.SHARE_ARROW="share",nS.SHARE_CAIRO="share",nS.SHIELD="shield_x",nS.SHIELD_OFF="shield_slash",nS.SHIELD_WITH_AVATAR="person_shield",nS.SHOPPING_BAG="bag",nS.SHOPPING_BAG_CAIRO="bag",nS.SHOPPING_CART="cart",nS.SHORTS_COMMENT="text_bubble",nS.SHORTS_DISLIKE="thumb_down",nS.SHORTS_LIKE="thumb_up",nS.SHORTS_SHARE="share",nS.SKIP_FORWARD_30=
"skip30_forward",nS.SLASH_CIRCLE_RIGHT="circle_slash",nS.SLOW_MODE="bubble_slow",nS.SLOW_MODE_OFF="text_bubble",nS.SOCIAL="person_child",nS.SPARKLE="sparkles",nS.SPARK_IMAGE="image_spark",nS.SPARK_RADAR="spark_waves",nS.SPARK_VIDEO="video_spark",nS.SPEAKER_GROUP="speaker_stack",nS.SPEAKER_OFF="speaker_slash",nS.SPEED_1X="n1x",nS.SPEED_1_POINT_2X="n1point2x",nS.SPEED_1_POINT_5X="n1point5x",nS.SPEED_1_POINT_8X="n1point8x",nS.SPEED_2X="n2x",nS.SPONSORSHIP_STAR="star_circle",nS.SPORTS="basketball",nS.SPOTLIGHT=
"spotlight",nS.STAFF_PICK="spotlight",nS.START_DVR="add",nS.STAR_BORDER="star",nS.STAR_CIRCLE_RIBBON="memberships_gift",nS.STAR_HALF="star_half_filled",nS.STAR_SHOOTING="hype",nS.STICKER="sticker",nS.STICKER_EMOTICON="face_happy",nS.STOP_DVR="stop",nS.SUBSCRIBE="youtube",nS.SUBSCRIBE_PLUS="add",nS.SUBSCRIPTION_MANAGER="gear",nS.SUPERSTAR="super_star",nS.SUPERVISOR_ACCOUNT="person_child",nS.SUPER_CHAT_FOR_GOOD="hands_heart",nS.SWAP_HORIZ="arrow_swap_horizontal",nS.SWITCH_ACCOUNTS="person_square_stack",
nS.TAB_ACCOUNT="person",nS.TAB_ACTIVITY="bell",nS.TAB_BOOKMARK="bookmark",nS.TAB_EXPLORE="compass",nS.TAB_HOME="home",nS.TAB_HOME_CAIRO="home",nS.TAB_INBOX="mail",nS.TAB_LIKED="thumb_up",nS.TAB_MUSIC_PREMIUM="youtube_music",nS.TAB_SHORTS="shorts",nS.TAB_SHORTS_CAIRO="shorts",nS.TAB_SUBSCRIPTIONS="subscriptions",nS.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",nS.TAB_TRENDING="trending",nS.TARGET="target",nS.TARGET_ADD="target_add",nS.TEMPLATE_ADD="template_add",nS.TEXT="font",nS.TIMER="stopwatch",nS.TRENDING_CAIRO=
"trending",nS.TRENDING_UP="arrow_trend_up",nS.TROPHY_CAIRO="trophy",nS.TROPHY_CELEBRATIONS="fireworks",nS.TROPHY_STAR="star_trophy",nS.TUNE="adjust",nS.TV_OFF="tv_slash",nS.UNBLOCK_USER="minus_circle",nS.UNFAVORITE="thumb_down",nS.UNLIMITED="youtube",nS.UNPLUGGED_LIVE_GUIDE="live",nS.UNPLUGGED_SPORTS="eye_slash",nS.UPLOADS="play_square_stack",nS.UP_ARROW="arrow_up",nS.VERTICAL_ALIGN_BOTTOM="chevron_down_end",nS.VERTICAL_ALIGN_TOP="chevron_up_end",nS.VERY_HAPPY="face_very_happy",nS.VERY_SAD="face_very_sad",
nS.VIDEOS="play_circle",nS.VIDEO_CALL="video_camera_add",nS.VIDEO_LIBRARY_WHITE="play_square_stack",nS.VIDEO_QUALITY_4K="n4k",nS.VIDEO_QUALITY_8K="n8k",nS.VIDEO_YOUTUBE="youtube",nS.VIEW_LIST_CAIRO="view_list",nS.VIEW_MODULE="view_column3_row2",nS.VISIBILITY="eye",nS.VISIBILITY_OFF="eye_slash",nS.VOLUME_DOWN="volume_min",nS.VOLUME_MUTE="volume_mute",nS.VOLUME_OFF="volume_mute",nS.VOLUME_STABLE="stable_volume",nS.VOLUME_UP="volume_max",nS.WALLPAPER="image",nS.WARNING="alert_triangle",nS.WATCH_HISTORY=
"history",nS.WATCH_HISTORY_CAIRO="history",nS.WATCH_LATER="clock",nS.WATCH_LATER_CAIRO="clock",nS.WATCH_RELATED_MIX="mix",nS.WHAT_TO_WATCH="home",nS.YOUTUBE_LINKED_TV="tv_mobile",nS.YOUTUBE_MUSIC_MONOCHROME="youtube_music",nS.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",nS.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",nS.YOUTUBE_SHORTS_ARROW_UP="arrow_up",nS.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",nS.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",nS.YOUTUBE_SHORTS_OUTLINE_24="shorts",
nS);var A8S={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,7,24],[1,7,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,
3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,
6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,13,24],[1,13,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,
1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,
1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,8,18],[1,8,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,
1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,
24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,
1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,
2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,
48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,13,24],[1,13,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],
shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[0,11,32,!0],[1,11,16,!0],[1,11,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,5,12],[0,5,16],[0,5,18],[0,5,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,
2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],
[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,
1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],
[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[1,8,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,
1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,
5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var jRB={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,7,24],[1,7,24],[1,7,48]],alert_bubble:[[1,1,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,2,24],[1,2,24]],
alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,
3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,2,18],[1,2,24],[1,2,36]],
audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,
1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,
48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,
1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],
[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,
36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],
cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],
csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],
face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,
24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,
1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,
24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],
hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],
image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,
1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,
13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,13,18],[0,13,24],[0,13,48],[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,2,24],[1,
2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],
n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,2,24],[1,2,24],[1,2,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],
person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,3,24],[0,3,36],[0,3,48],[1,3,24]],play_circle:[[0,
2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],
player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,3,12],[1,3,24],[1,3,48]],playlist_add:[[1,1,24]],playlist_audio:[[0,2,24],[1,2,24],[1,2,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,1,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],
[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,
24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,13,24],[1,13,24],[1,13,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,
1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[1,11,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,2,24],[1,2,24]],
skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,
24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,
1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,5,18],[0,5,24],[0,5,36],[1,5,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,
2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,
2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,
1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,
5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],
volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,8,24],[1,8,18],[1,8,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,
24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var vSX={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},CS=function(d){this.iconUrlProvider=d};
CS.prototype.resolveIcon=function(d,H){var K=vSX[d.iconName.toUpperCase()];K&&(d.iconName=K);var c=d.iconName;c=c.replace(/-/g,"_");d=Object.assign({},d,{iconName:this.mapIconTypeToStandardName(c,!!K)||c.toLowerCase()});if(_.h("enable_web_delhi_icons")||K){var p;return $p1(jRB,d,((p=this.iconUrlProvider)==null?void 0:p.getYtStandardUrl)||gcF,H)}var g;return $p1(A8S,d,((g=this.iconUrlProvider)==null?void 0:g.getYtStandardUrl)||pNF,H)};
CS.prototype.mapIconTypeToStandardName=function(d,H){return _.h("enable_web_delhi_icons")||H?ftB[d.toUpperCase()]:D7U[d.toUpperCase()]};
CS[fG]=[_.$p(y83)];var df0=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),HFv=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),$fZ=function(d){this.urlProvider=this.iconUrlProvider=d};
_.m($fZ,CS);
$fZ.prototype.resolveIcon=function(d,H){d.iconName==="youtube_logo"&&(d.iconName="yt-logo-updated");if(d.iconName==="youtube_premium_logo"||d.iconName==="youtube_red_logo")d.iconName="yt-logo-red-updated";var K=Object.assign({},d);d.iconName==="menu"&&(_.h("enable_web_delhi_icons")||(K.iconName="bars_3"),K.iconStyle="youtube_outline");d.iconSetName==="socialNetworksRound"&&(d.iconName==="mail"&&(K.iconName="email"),d.iconName==="embed"&&(K.iconSize=60));d.iconName==="more"&&(K.iconName="overflow_horizontal");
d.iconName==="fullscreen"&&(K.iconName="screen_full");d.iconName==="premium_standalone"&&(K.iconName="premium_standalone_cairo");_.h("enable_connect_icon_update_web")&&d.iconName==="account_linked"&&(K.iconName="circles_overlap_check",K.iconStyle="youtube_fill");_.h("enable_connect_icon_update_web")&&d.iconName==="account_unlinked"&&(K.iconName="circles_overlap",K.iconStyle="youtube_outline");df0.has(d.iconName)&&(K.iconStyle="youtube_fill");_.h("enable_web_delhi_icons")&&(d.iconName==="playlist_add"&&
(K.iconName="bookmark"),d.iconName==="offline_pin"&&(K.iconName="arrow_down_circle",K.iconStyle="youtube_fill"),HFv.has(d.iconName)&&(K.iconName+="_updated"));d=Object.assign({},K,{iconName:(CS.prototype.mapIconTypeToStandardName.call(this,K.iconName)||K.iconName).toLowerCase()});var c;return(d=$p1(SA0,d,((c=this.urlProvider)==null?void 0:c.getUrl)||iwi,H))?d:CS.prototype.resolveIcon.call(this,K,H)};
$fZ[fG]=[_.$p(y83)];_.Ki1=1;var RT=function(d,H){this.JSC$17135_commandHandler=d;this.innertubeTransportService=H};
_.m(RT,YA);RT.prototype.resolveCommand=function(d,H){var K=this,c,p,g;return _.l(function(a){return(c=_.M(d,MRX))?a.return(cCb(K,c,(p=H)==null?void 0:(g=p.form)==null?void 0:g.element)):a.return()})};
var cCb=function(d,H,K){H={profileCardContext:H.profileCardContext,profileOwnerExternalChannelId:H.profileOwnerExternalChannelId};var c=_.H5(SOd);return _.Qq(d.innertubeTransportService,H,c).then(function(p){if(!p)throw new _.m1("GetProfileCard failed");if(p=p.popupCommand){d.JSC$17135_commandHandler.resolveCommand(p,{form:{element:K}});_.ld(_.hR(),66557);p=p==null?void 0:p.clickTrackingParams;var g=_.so();p&&g&&_.hR().graftServerVe(p,g)}})};
RT[fG]=[_.cb,_.Z8];var Vu=function(){};
_.m(Vu,YA);Vu.prototype.resolveCommand=function(d){var H,K;return _.l(function(c){H=_.M(d,BvX);if(!H)return c.return();K=Number(H.enableDelayedPacfLoggingTvMs);if(isNaN(K)){var p=kQ();nhS(p,H,0)}else nhS(kQ(),H,K);_.VE(c)})};_.Uf=function(){};
_.m(_.Uf,YA);
_.Uf.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a,e,k,C;return _.l(function(R){c=_.M(d,zW0);g=(p=H.form)==null?void 0:p.element;e=(a=g)==null?void 0:a.closest("ytd-enforcement-message-view-model");if(!c||!e)return R.return();K.allowAdsAction||(k=c.fundingChoiceInstructionPageUrl,K.allowAdsAction=new fpN(window,_.J5(k)));var V=K.allowAdsAction;V.wallElement=e;V.allowAdsPopup.style.setProperty("display","flex","important");var U=V.scrollManager;U.originalBodyOverflow=U.JSC$9970_domHelper.JSC$9297_document_.body.style.overflow;U.JSC$9970_domHelper.JSC$9297_document_.body.style.overflow=
"hidden";V.wallElement.style.setProperty("display","none","important");ilN(V.accessibilityManager,V.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((C=K.allowAdsAction.allowAdsPopup)&&C instanceof HTMLElement)for(V=_.q(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),U=V.next();!U.done;U=V.next()){var L=_.q(U.value);U=L.next().value;L=L.next().value;C.style.setProperty(U,L)}_.VE(R)})};
_.Uf.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var hi=function(){};
_.m(hi,YA);hi.prototype.resolveCommand=function(d){var H;return _.l(function(K){H=_.M(d,$wl);if(!H)return K.return();_.tIF(d);_.VE(K)})};var LS=function(d){this.JSC$17150_commandHandler=d};
_.m(LS,YA);
LS.prototype.resolveCommand=function(d){var H=this,K,c,p,g,a,e,k,C;return _.l(function(R){if(R.nextAddress==1){K=_.M(d,BiA);if((c=K)==null||!c.text||!navigator.clipboard)return R.return();_.e2(R,2);return R.yield(navigator.clipboard.writeText(K.text),4)}if(R.nextAddress!=2){if(!K.successActions||K.successActions.length===0)return R.return();p=_.q(K.successActions);for(g=p.next();!g.done;g=p.next())a=g.value,H.JSC$17150_commandHandler.resolveCommand(a);return _.Em(R,0)}_.RV(R);if(!K.failureActions||K.failureActions.length===
0)return R.return();e=_.q(K.failureActions);for(k=e.next();!k.done;k=e.next())C=k.value,H.JSC$17150_commandHandler.resolveCommand(C);_.VE(R)})};
LS[fG]=[_.cb];var M0=function(d){this.JSC$17154_commandHandler=d};
_.m(M0,YA);
M0.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a,e,k,C,R,V,U;return _.l(function(L){switch(L.nextAddress){case 1:c=_.M(d,oRX);if(!c)return L.return();_.e2(L,2);if(!c.imageBytes&&!c.imageUrl)throw Error("xi");if(!c.imageUrl){if(c.imageBytes){g=c.imageBytes;a=g.replace(/-/g,"+").replace(/_/g,"/");var w=q61(a);p=_.JL(w)}L.jumpTo(4);break}return L.yield(fetch(c.imageUrl),5);case 5:return e=L.yieldResult,L.yield(e.blob(),6);case 6:k=L.yieldResult,p=_.JL(k);case 4:V=(C=H)==null?void 0:(R=C.form)==
null?void 0:R.element;U=document.createElement("a");_.TC(U,p);V.appendChild(U);U.download="";U.click();V.removeChild(U);URL.revokeObjectURL(_.IK(p));c.successCommand&&K.JSC$17154_commandHandler.resolveCommand(c.successCommand);_.Em(L,0);break;case 2:_.RV(L),c.errorCommand&&K.JSC$17154_commandHandler.resolveCommand(c.errorCommand),_.VE(L)}})};
M0[fG]=[_.cb];var mY=function(d){this.store=d};
_.m(mY,YA);mY.prototype.resolveCommand=function(d){var H=this,K,c,p;return _.l(function(g){c=(K=_.M(d,_.QY6))==null?void 0:K.entityBatchUpdate;if(!c)return g.jumpTo(0);p=Object.assign({},c,{mutations:[].concat(_.ru(c.mutations||[]))});return g.yield(_.Uc(p,H.store),0)})};var pFZ=function(d){this.JSC$17161_commandHandler=d;this.feedbackDialogMap=new Map};
pFZ.prototype.openDialog=function(d,H){(d=this.feedbackDialogMap.get(d))&&this.JSC$17161_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:d}},H)};
pFZ[fG]=[_.cb];var wT=new _.Av("FEEDBACK_CONTROLLER_TOKEN");var Pl=new _.Av("APP_STORE_TOKEN");var un=function(d,H){this.store=d;this.controller=H};
_.m(un,YA);un.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a,e,k,C,R,V,U,L,w,W,J,F,Y,A,E;return _.l(function(N){if(N.nextAddress==1){c=_.M(d,_.Ww);if(g=(p=c)==null?void 0:p.contentId)for(e=_.q(((a=c)==null?void 0:a.actions)||[]),k=e.next();!k.done;k=e.next())C=k.value,gYv(K,C,g);U=(R=H)==null?void 0:(V=R.form)==null?void 0:V.element;return N.yield(_.aF(U,[d,{impression:(L=H)==null?void 0:L.disableClickTracking}]).catch(function(){}),2)}w=N.yieldResult;
((W=w)==null?0:(J=W.data)==null?0:(F=J.feedbackResponses)==null?0:F.length)&&(A=(Y=w.data.feedbackResponses[0])==null?void 0:Y.followUpDialog)&&g&&(E=K.controller)!=null&&E.feedbackDialogMap.set(g,A);_.VE(N)})};
var gYv=function(d,H,K){var c=_.M(H,_.kW);if(c){c=_.q(c.commands||[]);for(var p=c.next();!p.done;p=c.next())gYv(d,p.value,K)}_.M(H,_.Mq)&&d.store.dispatch(_.PI("commandEntity",GyF(K),{key:K,command:H}));_.M(H,r9g)&&d.store.dispatch(_.PI("commandEntity",GyF(K),{key:K,command:H}))};
un[fG]=[Pl,wT];var IT=function(d){this.controller=d};
_.m(IT,YA);IT.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a;return _.l(function(e){c=_.M(d,_.Yr);g=(p=c)==null?void 0:p.targetId;if(((a=c)==null?void 0:a.signal)!=="TELL_US_WHY"||!g)return e.return();K.controller.openDialog(g,H);_.VE(e)})};
IT[fG]=[wT];var rT=function(d){this.store=d};
_.m(rT,YA);rT.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a,e,k,C;return _.l(function(R){c=_.M(d,fWX);g=(p=c)==null?void 0:p.contentId;k=(a=H)==null?void 0:(e=a.form)==null?void 0:e.element;C=_.aF(k,[d]);g&&K.undo(g);return R.yield(C,0)})};
rT.prototype.undo=function(d){this.store.dispatch(_.PI("commandEntity",GyF(d),{key:d,command:void 0}))};
rT[fG]=[Pl];var Wl=function(d){this.JSC$17176_commandHandler=d};
_.m(Wl,YA);Wl.prototype.resolveCommand=function(d){var H=this,K,c,p,g,a,e,k,C;return _.l(function(R){K=_.M(d,$Yl);c=K.flowStateKey;p=K.validationFailureCommand;g=K.submitValidFormCommand;a=ngM(_.Da,[c||""]);e=_.M(a,c4S);((k=e)==null?0:k.isValid)&&g&&H.JSC$17176_commandHandler.resolveCommand(g);((C=e)==null?0:C.isValid)||!p||H.JSC$17176_commandHandler.resolveCommand(p);_.VE(R)})};
Wl[fG]=[_.cb];var Bl=function(d){this.innertubeTransportService=d};
_.m(Bl,YA);Bl.prototype.resolveCommand=function(d,H){var K=this,c;return _.l(function(p){return p.yield(_.Nc(K.innertubeTransportService,d,(c=H)==null?void 0:c.form).then(function(g){var a,e;H==null||(a=H.commandController)==null||(e=a.onSuccess)==null||e.call(a,d,g)},function(g){var a,e;
H==null||(a=H.commandController)==null||(e=a.onServerError)==null||e.call(a,d,g)}),0)})};
Bl[fG]=[_.Z8];var z$=function(){};
_.m(z$,YA);z$.prototype.resolveCommand=function(d){var H,K,c,p;return _.l(function(g){if(H=_.M(d,_.UZC)){if(K=H.gtmId)c=_.Fm("GL",""),_.Bm(K,c);(p=H.gtmData)&&_.zt(p)}_.VE(g)})};var Xe=function(d,H){this.innertubeTransportService=d;this.JSC$17187_actionRouter=H};
_.m(Xe,YA);Xe.prototype.resolveCommand=function(d){var H=this,K,c;return _.l(function(p){K=_.M(d,dW6);if(!K)return p.return();c=K.command;if(!c)return p.return();H.JSC$17187_actionRouter.triggerAction("yt-insert-rich-section-action",K);return p.yield(_.Nc(H.innertubeTransportService,c,{disableCache:!0}),0)})};
Xe[fG]=[_.Z8,Hx];luD.bind(null,Ox);var iFT=luD.bind(null,zE3);kgL.bind(null,Ox);var GLt=kgL.bind(null,zE3);nc4.bind(null,Ox);var oYj=nc4.bind(null,zE3);var Ji=function(){};
_.m(Ji,YA);
Ji.prototype.resolveCommand=function(d){var H,K,c,p,g,a,e,k,C,R;return _.l(function(V){H=_.M(d,TNC);if(!H)return V.return();c=((K=H.operations)==null?void 0:K.operations)||[];p=_.q(c);for(g=p.next();!g.done;g=p.next())if(a=g.value,a.insertItemSectionContent){var U=a.insertItemSectionContent,L=U.contents||[];U.insertByPositionInSection?iFT(U.insertByPositionInSection.sectionTargetId,L,U.insertByPositionInSection.position):U.insertByRelativePositionInSection&&U.insertByRelativePositionInSection.sectionTargetId&&U.insertByRelativePositionInSection.itemTargetId&&
GLt(U.insertByRelativePositionInSection.sectionTargetId,U.insertByRelativePositionInSection.itemTargetId,L,U.insertByRelativePositionInSection.relativePosition)}else a.replaceSection?(U=a.replaceSection,L={},U.replaceByTargetId?L=U.replaceByTargetId:U.replaceByGroupId&&(L={targetId:U.replaceByGroupId.groupId,newContent:U.replaceByGroupId.newContent,undoKey:""}),L.newContent&&sg3(L.targetId,{continuationItems:[L.newContent]})):a.removeItem?(U=a.removeItem,U.removeByTargetId&&U.sectionTargetId&&oYj(U.sectionTargetId,
U.removeByTargetId.targetIds||[])):a.removeSection&&(a.removeSection.removeByTargetId?(e=void 0,q55(((e=a.removeSection)==null?void 0:e.removeByTargetId.targetIds)||[])):a.removeSection.removeByGroupId&&(k=void 0,q55(((k=a.removeSection)==null?void 0:k.removeByGroupId.groupIds)||[])));R=((C=H.operations)==null?void 0:C.scrollConfig)||{};aDT(R);_.VE(V)})};
var q55=function(d){d=_.q(d);for(var H=d.next();!H.done;H=d.next())sg3(H.value,{continuationItems:[]})},aDT=function(d){if(d.scrollToItem){var H=d.scrollToItem.item||{},K=H.itemTargetId;
H=H.sectionTargetId;if(K&&H){var c=document.querySelector("[data-target-id="+H+"]"),p=c==null?void 0:c.querySelector("[data-target-id="+K+"]");c&&p&&setTimeout(function(){var g=p.offsetTop-c.offsetTop,a;if(((a=d.scrollToItem)==null?void 0:a.scrollPosition)==="SCROLL_POSITION_CENTER")g-=c.offsetHeight/2,g+=p.offsetHeight/2;else{var e;((e=d.scrollToItem)==null?void 0:e.scrollPosition)==="SCROLL_POSITION_END"&&(g-=c.offsetHeight,g+=p.offsetHeight)}c.scroll({top:g,behavior:"smooth"})},100)}}};var sf=new _.Av("CLIENT_NAME_TOKEN");var lDg=new _.Av("DEFAULT_STORE_EXPIRATION_TOKEN");var GqX=new _.Av("CLIENT_LOCATION_SERVICE_TOKEN");var Fe=function(d,H,K){this.clientName=d||_.Fm("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=H||_.Jc.getInstance();this.JSC$17215_commandHandler=K||_.nM.instance};
_.m(Fe,YA);Fe.prototype.resolveCommand=function(d){var H=this,K,c;return _.l(function(p){c=(K=_.M(d,bbB))==null?void 0:K.onComplete;H.clientLocationService.clearLocationPlayabilityToken(H.clientName);c&&H.JSC$17215_commandHandler.resolveCommand(c);_.VE(p)})};
Fe[fG]=[sf,GqX,_.cb];var Z9=function(d){this.innertubeTransportService=d};
_.m(Z9,YA);Z9.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a;return _.l(function(e){g=(c=H)==null?void 0:(p=c.form)==null?void 0:p.element;return e.yield(_.Nc(K.innertubeTransportService,d,(a=H)==null?void 0:a.form).then(function(k){MjF(g,new CustomEvent("yt-service-request-completed"),{data:k},_.Fm("openPopupConfig"))}),0)})};
Z9[fG]=[_.Z8];var T$=function(){};
_.m(T$,YA);T$.prototype.resolveCommand=function(d){var H,K;return _.l(function(c){H=_.M(d,Gp3);K=document.querySelector("mini-app-container-view-model");if(!H||!K)return c.return();H.isPlaying?K.dispatchEvent(new Event("play")):K.dispatchEvent(new Event("pause"));_.VE(c)})};var Qu=function(){};
_.m(Qu,YA);Qu.prototype.resolveCommand=function(d){var H,K,c,p,g,a,e;return _.l(function(k){H=_.M(d,kml);if((K=H)==null||!K.paramKeys)return k.return();c=H.paramKeys;p=_.Qe(window.location.href);g=_.q(c);for(a=g.next();!a.done;a=g.next())e=a.value,p.JSC$10002_queryData_.remove(e);window.history.replaceState(window.history.state,document.title,p.toString());_.VE(k)})};var eXv=function(){this.dropdownMap=new Map};_.kLZ=new _.Av("DROPDOWN_CONTROLLER_TOKEN");var ti=function(d){this.controller=d};
_.m(ti,YA);ti.prototype.resolveCommand=function(d){var H=this,K,c,p,g;return _.l(function(a){K=_.M(d,Ny0);if(!K)return a.return();c=K;p=c.dropdownId;g=c.selectedOptionIndex;if(p===void 0||g===void 0)return a.return();var e=H.controller.dropdownMap.get(p);e&&e(g);_.VE(a)})};
ti[fG]=[_.kLZ];var Yj=function(d){this.controller=d};
_.m(Yj,YA);Yj.prototype.resolveCommand=function(d){var H=this,K;return _.l(function(c){return(K=_.M(d,iTM))?c.yield(H.controller.closeDialog(),0):c.return()})};
Yj[fG]=[_.zr];var Of=function(d){this.controller=d};
_.m(Of,YA);Of.prototype.resolveCommand=function(d){var H=this,K,c;return _.l(function(p){K=_.M(d,SvB);if(!K)return p.return();var g,a=K.panelIdentifier||((g=K.identifier)==null?void 0:g.tag);if(!a)throw Error("yi");return(c=a)?p.yield(H.controller.hidePanel(c),0):p.jumpTo(0)})};
Of[fG]=[_.W6];var Se=function(d,H){this.innertubeTransportService=d;this.controller=H};
_.m(Se,YA);Se.prototype.resolveCommand=function(d){var H=this,K,c,p,g;return _.l(function(a){if(a.nextAddress==1)return K=_.M(d,Eq7),(c=K)!=null&&c.panelId?a.yield(H.controller.getReloadContinuation(K.panelId),2):a.return();if(a.nextAddress!=3)return(p=a.yieldResult)?a.yield(_.Nc(H.innertubeTransportService,d,{continuation:p}),3):a.return();g=a.yieldResult;return a.yield(H.controller.updatePanel(K.panelId,g.content,!1),0)})};
Se[fG]=[_.Z8,_.W6];var Ef=function(d,H,K){this.innertubeTransportService=d;this.JSC$17251_screenManager=H;this.JSC$17251_commandHandler=K};
_.m(Ef,YA);
Ef.prototype.resolveCommand=function(d){var H=this,K,c,p,g,a,e;return _.l(function(k){if(k.nextAddress==1){K=_.M(d,_.JQ0);if(!K)return k.return();if(K.commands)for(c=_.q(K.commands),p=c.next();!p.done;p=c.next())g=p.value,H.JSC$17251_commandHandler.resolveCommand(g,{disableClickTracking:!0});a=_.P1(d.clickTrackingParams);_.ld(H.JSC$17251_screenManager,21760,a,{layer:7,parentLayer:0});return k.yield(_.Nc(H.innertubeTransportService,d),2)}e=k.yieldResult;if(!e)return k.return();H.JSC$17251_screenManager.graftServerVe(e.trackingParams,a,
7);_.VE(k)})};
Ef[fG]=[_.Z8,_.BC,_.cb];var yu=new _.Av("PANEL_LOADING_STRATEGY_TOKEN");var bn=function(d,H){this.controller=d;this.panelLoadingStrategy=H};
_.m(bn,YA);
bn.prototype.resolveCommand=function(d,H){var K=this,c,p,g;return _.l(function(a){c=_.M(d,mwA);if((p=c)==null||!p.panelLoadingStrategy)return a.return();g=function(e){var k,C,R,V,U,L,w,W,J,F;return _.l(function(Y){C=_.M((k=e.dialogViewModel)==null?void 0:k.header,DGg);R={viewModel:e.dialogViewModel};V={};if(w=_.h("web_enable_dialog_header_label")?(U=C)==null?void 0:(L=U.headline)==null?void 0:L.content:void 0)V.ariaLabel=w;c.dismissOnBackgroundTap===!1&&(V.isModal=!0);return e.dialogViewModel?Y.yield(K.controller.openDialog(R,
(F=(W=H)==null?void 0:(J=W.form)==null?void 0:J.element)!=null?F:document.body,V),0):Y.return()})};
return a.yield(K.panelLoadingStrategy.execute({command:d,data:c.panelLoadingStrategy,renderFn:g,createScreenConfig:{layer:4}}),0)})};
bn[fG]=[_.zr,yu];var N0=function(d,H,K){this.innertubeTransportService=d;this.controller=H;this.JSC$17271_screenManager=K};
_.m(N0,YA);
N0.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a,e,k,C,R,V,U,L,w;return _.l(function(W){switch(W.nextAddress){case 1:c=_.M(d,_.r5);if(!c)return W.return();var J,F=c.panelIdentifier||((J=c.identifier)==null?void 0:J.tag);if(!F)throw Error("yi");p=F;return W.yield(K.controller.isVisible(p,!0),2);case 2:if((g=W.yieldResult)&&c.blockIfPanelOpen)return W.return();k=(e=(a=K.controller).getPanelContent)==null?void 0:e.call(a,p);if(!(J=k))if(c){var Y;J=((Y=c.globalConfiguration)==null?void 0:
Y.initialState)||c.engagementPanel;if(Y=!J)Y=!!(c==null?0:(F=c.engagementPanelPresentationConfigs)==null?0:F.engagementPanelPopupPresentationConfig);Y&&(J=_.CiL(c.panelIdentifier,c.identifier))}else J=void 0;C=J;R=c.engagementPanelPresentationConfigs;V=c.engagementPanelExtras;return W.yield(K.controller.showPanel(p,C,R,V,(U=H)==null?void 0:(L=U.form)==null?void 0:L.element),3);case 3:if(!c.globalConfiguration){W.jumpTo(0);break}_.ld(K.JSC$17271_screenManager,32633);return W.yield(_.Nc(K.innertubeTransportService,
d),5);case 5:return w=W.yieldResult,K.JSC$17271_screenManager.graftServerVe(w.trackingParams),W.yield(K.controller.updatePanel(p,w.content,!0,V,void 0,w.updatePanelContinuationData),0)}})};
N0[fG]=[_.Z8,_.W6,_.BC];var fS=function(d,H){this.controller=d;this.panelLoadingStrategy=H};
_.m(fS,YA);fS.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a,e,k;return _.l(function(C){c=_.M(d,_.u8);if((p=c)==null||!p.panelLoadingStrategy)return C.return();e=xfb(K.controller,(g=H)==null?void 0:(a=g.form)==null?void 0:a.element);k=function(R){return _.l(function(V){return R.sheetViewModel?V.yield(K.controller.openSheet({viewModel:R.sheetViewModel},e),0):V.return()})};
return C.yield(K.panelLoadingStrategy.execute({command:d,data:c.panelLoadingStrategy,renderFn:k,createScreenConfig:{layer:0}}),0)})};
fS[fG]=[_.B6,yu];var Ai=function(d,H){this.controller=d;this.JSC$17279_commandHandler=H};
_.m(Ai,YA);Ai.prototype.resolveCommand=function(d,H){var K=this,c,p,g;return _.l(function(a){if(a.nextAddress==1){c=_.M(d,Dsl);var e=_.M(c.showCommand,_.r5),k,C,R=(C=e==null?void 0:e.panelIdentifier)!=null?C:e==null?void 0:(k=e.identifier)==null?void 0:k.tag;if(!R)throw Error("zi");p=R;return a.yield(K.controller.isVisible(p),2)}return(g=a.yieldResult)?a.yield(K.controller.hidePanel(p),0):a.yield(K.JSC$17279_commandHandler.resolveCommand(c.showCommand,H),0)})};
Ai[fG]=[_.W6,_.cb];var je=function(d,H,K){this.innertubeTransportService=d;this.controller=H;this.JSC$17282_screenManager=K};
_.m(je,YA);
je.prototype.resolveCommand=function(d){var H=this,K,c,p,g,a,e,k,C,R,V,U,L,w,W,J,F,Y,A,E,N,y,v;return _.l(function(el){switch(el.nextAddress){case 1:return c=K=_.M(d,fvN),p=c.targetPanelIdentifier,g=c.contentSourcePanelIdentifier,a=c.globalConfiguration,((e=p)==null?0:e.tag)&&((k=g)==null?0:k.tag)?a?el.yield(H.controller.showPanel(p.tag,_.CiL(p.tag,p),void 0,void 0,void 0),5):el.yield((U=(V=H.controller).getPanel)==null?void 0:U.call(V,g.tag),4):el.return();case 4:L=el.yieldResult;C=(w=L)==null?void 0:
(J=(W=w).getPanelContent)==null?void 0:J.call(W);el.jumpTo(3);break;case 5:return el.yield(_.Nc(H.innertubeTransportService,d),6);case 6:F=el.yieldResult,((Y=F)==null?0:Y.trackingParams)&&H.JSC$17282_screenManager.graftServerVe(F.trackingParams),C=(A=F)==null?void 0:A.content,R=(E=F)==null?void 0:E.updatePanelContinuationData;case 3:if(y=(N=C)==null?void 0:N.engagementPanelSectionListRenderer)return el.yield(H.controller.showPanel(p.tag,void 0,void 0,void 0,void 0,{content:y.content,secondaryHeaderContent:(v=
y.header)!=null?v:{},targetId:y.targetId},R),0);el.jumpTo(0)}})};
je[fG]=[_.Z8,_.W6,_.BC];var nYZ=function(){};
_.m(nYZ,YA);nYZ.prototype.resolveCommand=function(d){var H,K,c;return _.l(function(p){if(p.nextAddress==1)return(H=_.M(d,KqA))?p.yield(_.eA(),2):p.return();K=p.yieldResult;if(!K)return p.return();var g=K,a=(c=H)==null?void 0:c.languageCode,e;(g==null?0:(e=g.isReady)==null?0:e.call(g))&&(a=R25(g,a))&&g.setAudioTrack(a);_.VE(p)})};var vl=function(){};
_.m(vl,YA);var C1v=function(d){var H;return _.l(function(K){H=_.Fm("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;d.JSC$17293_mainAppPlayer=new dj(H);document.addEventListener("yt-page-data-updated",d.JSC$17293_pauseOnNavigation.bind(d));_.VE(K)})};
vl.prototype.JSC$17293_pauseOnNavigation=function(){var d=this,H,K;return _.l(function(c){if(c.nextAddress==1)return H=d.JSC$17293_mainAppPlayer,c.yield(H.api,2);K=c.yieldResult;K.pauseVideo();_.VE(c)})};
var RXq=function(d,H,K){var c;return _.l(function(p){c=d.JSC$17293_mainAppPlayer;return p.yield(c.loadVideoWithPlayerVars({videoId:H,audio_only:"1",player_params:K}),0)})};
vl.prototype.pauseVideo=function(){var d=this,H,K;return _.l(function(c){if(c.nextAddress==1)return H=d.JSC$17293_mainAppPlayer,c.yield(H.api,2);K=c.yieldResult;K.pauseVideo();_.VE(c)})};
vl.prototype.playVideo=function(){var d=this,H,K;return _.l(function(c){if(c.nextAddress==1)return H=d.JSC$17293_mainAppPlayer,c.yield(H.api,2);K=c.yieldResult;K.playVideo();_.VE(c)})};
var VlT=function(d){var H,K;return _.l(function(c){if(c.nextAddress==1)return H=d.JSC$17293_mainAppPlayer,c.yield(H.api,2);K=c.yieldResult;K.mute();_.VE(c)})},Ufv=function(d){var H,K;
return _.l(function(c){if(c.nextAddress==1)return H=d.JSC$17293_mainAppPlayer,c.yield(H.api,2);K=c.yieldResult;K.unMute();_.VE(c)})},hXU=function(d,H){return _.l(function(K){switch(K.nextAddress){case 1:switch(H){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return K.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return K.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return K.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return K.jumpTo(5)}K.jumpTo(0);break;case 2:return K.yield(d.playVideo(),7);case 7:K.jumpTo(0);break;case 3:return K.yield(d.pauseVideo(),8);case 8:K.jumpTo(0);break;case 4:return K.yield(VlT(d),9);case 9:K.jumpTo(0);break;case 5:return K.yield(Ufv(d),10);case 10:K.jumpTo(0)}})};
vl.prototype.resolveCommand=function(d){var H=this,K,c,p,g,a,e,k,C,R,V,U;return _.l(function(L){return L.nextAddress==1?(K=_.M(d,KC0),((c=K)==null?0:c.newPlaybackParams)||((p=K)==null?0:p.controlAction)?H.JSC$17293_mainAppPlayer?L.jumpTo(2):L.yield(C1v(H),2):L.return()):((g=K)==null?0:g.newPlaybackParams)?(k=(a=K)==null?void 0:(e=a.newPlaybackParams)==null?void 0:e.externalVideoId,U=(V=(C=K)==null?void 0:(R=C.newPlaybackParams)==null?void 0:R.playerParams)!=null?V:"",k?L.yield(RXq(H,k,U),0):L.return()):
L.yield(hXU(H,K.controlAction),0)})};var dZ=function(d){this.JSC$17300_commandHandler=d};
_.m(dZ,YA);
dZ.prototype.resolveCommand=function(d){var H=this,K,c,p,g,a,e;return _.l(function(k){if(k.nextAddress==1)return(K=_.M(d,cg7))?k.yield(_.eA(),2):k.return();c=k.yieldResult;if(!c)return k.return();var C=c,R=(p=K)==null?void 0:p.languageCode,V=(g=K)==null?void 0:g.isAutoTranslated;C.getVideoData&&_.UpF(C).length&&((R=LQY(C,R,V))?C.setOption("captions","track",R):(C.setOption("captions","stickyLoading",{}),C.setOption("captions","track",{})));a=c.isSubtitlesOn()?_.Vz("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.Vz("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");e=_.Km(a);H.JSC$17300_commandHandler.resolveCommand(e);_.VE(k)})};
dZ[fG]=[_.cb];var Ho=function(d,H){this.shortsPlayerPromise=d;this.JSC$17304_commandHandler=H};
_.m(Ho,YA);
Ho.prototype.resolveCommand=function(d){var H=this,K,c,p,g,a,e,k,C;return _.l(function(R){if(R.nextAddress==1)return(K=_.M(d,Lm6))?R.yield(H.shortsPlayerPromise,2):R.return();c=R.yieldResult;var V=Mif(c);V!=null&&V.length||(c.loadModule("captions"),V=Mif(c));p=V;if((g=p)==null||!g.length)return a=_.Vz("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),e=_.Km(a),H.JSC$17304_commandHandler.resolveCommand(e),R.return();c.toggleSubtitles();k=c.isSubtitlesOn()?_.Vz("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Vz("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");C=_.Km(k);H.JSC$17304_commandHandler.resolveCommand(C);_.VE(R)})};
Ho[fG]=[_.oAX,_.cb];var $z=function(d){this.JSC$17307_actionRouter=d;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(H,K){H.triggerAction("yt-dismiss-shopping-timely-shelf-action",K)}]])};
_.m($z,YA);$z.prototype.resolveCommand=function(d){var H=this,K,c,p;return _.l(function(g){K=_.M(d,G87);if((c=K)==null||!c.overlayId)return g.return();p=H.dismissPlayerOverlayActions.get(K.overlayId);if(!p)throw Error("Ai`"+K.overlayId);p(H.JSC$17307_actionRouter,K);_.VE(g)})};
$z[fG]=[Hx];var KD=function(d){this.JSC$17311_playerPromise=d};
_.m(KD,YA);KD.prototype.resolveCommand=function(d){var H=this,K,c,p,g;return _.l(function(a){if(a.nextAddress==1)return(K=_.M(d,bT3))?a.yield(H.JSC$17311_playerPromise,2):a.return();c=a.yieldResult;p=c.getVideoData().video_id;K.videoId===p&&(g=Number(K.offsetFromVideoStartMilliseconds),g>=0&&c.seekTo(g/1E3));_.VE(a)})};
KD[fG]=[_.Gx];var LiT=_.kL("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),co=function(d){this.store=d};
_.m(co,YA);
var MlO=function(d){var H,K,c,p;return _.l(function(g){if(g.nextAddress==1)return H=_.Fm("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,K=_.Fm("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,c=H||K,d.JSC$17315_mainAppPlayer=new dj(c),g.yield(d.JSC$17315_mainAppPlayer.api,2);p=g.yieldResult;p.addEventListener("onStateChange",d.JSC$17315_playerStateChangeListener.bind(d));document.addEventListener("yt-page-data-updated",d.JSC$17315_pauseOnNavigation.bind(d));window.addEventListener("state-navigatestart",
d.JSC$17315_pauseOnNavigation.bind(d));_.VE(g)})};
co.prototype.JSC$17315_playerStateChangeListener=function(d){switch(d){case 0:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_STOPPED";break;case 1:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING";break;case 2:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PAUSED";break;case 3:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";break;default:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_UNKNOWN"}mfb(this)};
var mfb=function(d){d.store.dispatch(_.PI("sfvAudioItemCurrentlyPlayingEntity",LiT,{key:LiT,externalVideoId:d.externalVideoId,sfvAudioItemPlaybackState:d.playbackState,nowPlayingEntityValue:d.nowPlayingEntityValue}))};
co.prototype.JSC$17315_pauseOnNavigation=function(){var d=this,H,K,c,p;return _.l(function(g){if(g.nextAddress==1){if(!d.JSC$17315_mainAppPlayer){var a=new _.m1("Error: mainAppPlayer is unavailable",d.JSC$17315_mainAppPlayer);_.z5(a);return g.return()}return g.yield(d.JSC$17315_mainAppPlayer.api,2)}H=g.yieldResult;c=(K=H)==null?void 0:K.getPlayerState();c!==1||(p=H)!=null&&p.pauseVideo();_.VE(g)})};
co.prototype.playVideo=function(d,H,K){var c=this,p,g;return _.l(function(a){if(a.nextAddress==1)return a.yield((p=c.JSC$17315_mainAppPlayer)==null?void 0:p.api,2);g=a.yieldResult;if(!c.JSC$17315_mainAppPlayer||!g){var e=new _.m1("Error: mainAppPlayer is unavailable",c.JSC$17315_mainAppPlayer);_.z5(e);return a.return()}return a.yield(c.JSC$17315_mainAppPlayer.loadVideoWithPlayerVars({videoId:c.externalVideoId,audio_only:"1",start:d/1E3,end:d/1E3+H,player_params:K}),0)})};
co.prototype.pauseVideo=function(){var d=this,H,K;return _.l(function(c){if(c.nextAddress==1){if(!d.JSC$17315_mainAppPlayer){var p=new _.m1("Error: mainAppPlayer is unavailable",d.JSC$17315_mainAppPlayer);_.z5(p);return c.return()}return c.yield(d.JSC$17315_mainAppPlayer.api,2)}H=c.yieldResult;(K=H)==null||K.pauseVideo();_.VE(c)})};
co.prototype.resolveCommand=function(d){var H=this,K,c,p,g,a,e,k,C,R,V,U,L,w,W,J,F,Y,A,E;return _.l(function(N){if(N.nextAddress==1)return K=_.M(d,RSC),p=(c=K)==null?void 0:c.nowPlayingEntityValue,a=(g=K)==null?void 0:g.externalVideoId,V=Number((R=(e=K)==null?void 0:(k=e.defaultStartPoints)==null?void 0:(C=k[0])==null?void 0:C.offsetMs)!=null?R:"0"),F=Number((J=(U=K)==null?void 0:(L=U.defaultStartPoints)==null?void 0:(w=L[0])==null?void 0:(W=w.duration)==null?void 0:W.seconds)!=null?J:"15"),E=(A=
(Y=K)==null?void 0:Y.playerParams)!=null?A:"",p&&a?H.JSC$17315_mainAppPlayer?N.jumpTo(2):N.yield(MlO(H),2):N.return();if(N.nextAddress!=6){if(H.nowPlayingEntityValue&&p===H.nowPlayingEntityValue)return H.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?N.yield(H.pauseVideo(),0):N.yield(H.playVideo(V,F,E),0);H.externalVideoId=a;H.nowPlayingEntityValue=p;H.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return N.yield(H.playVideo(V,F,E),6)}mfb(H);return N.jumpTo(0)})};
co[fG]=[$8];var wFv=function(d){this.JSC$17333_commandHandler=d};
_.m(wFv,YA);wFv.prototype.resolveCommand=function(d,H){var K=this,c,p,g;return _.l(function(a){if(a.nextAddress==1)return(c=_.M(d,pUl))?a.yield(_.eA(),2):a.return();p=a.yieldResult;if(!p)return a.return();(g=mp4(p))&&K.JSC$17333_commandHandler.resolveCommand(g,H);_.VE(a)})};
wFv[fG]=[_.cb];var pD=function(d){this.JSC$17339_commandHandler=d};
_.m(pD,YA);pD.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a,e;return _.l(function(k){if(k.nextAddress==1)return(c=_.M(d,gqB))?k.yield(_.eA(),2):k.return();p=k.yieldResult;if(!p)return k.return();(g=rz5(p))?K.JSC$17339_commandHandler.resolveCommand(g,H):(a=_.Vz("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),e=_.Km(a),K.JSC$17339_commandHandler.resolveCommand(e));_.VE(k)})};
pD[fG]=[_.cb];var gZ=function(d){this.JSC$17342_playerPromise=d};
_.m(gZ,YA);gZ.prototype.resolveCommand=function(d){var H=this,K,c,p,g,a;return _.l(function(e){if(e.nextAddress==1){K=_.M(d,Na3);if(!K)return e.return();c=K.overlayRenderer;return c?(p=_.M(c,okd))?e.yield(H.JSC$17342_playerPromise,3):e.jumpTo(0):e.return()}g=e.yieldResult;g.renderChapterSeekingAnimation(1,_.jG(p.text),(a=p.icon)==null?void 0:a.iconType);_.VE(e)})};
gZ[fG]=[_.Gx];var iP=function(d){this.store=d};
_.m(iP,YA);
iP.prototype.resolveCommand=function(d){var H=this,K,c,p;return _.l(function(g){if(g.nextAddress==1){K=_.M(d,cv7);if(!K)return g.return();c="";(p=H.store.getState().collabInviteLink)&&K.id===p.playlistId?c=p.inviteLinkURL:K.shortUrl&&(c=K.shortUrl);return c?g.yield(navigator.clipboard.writeText(c),3):g.jumpTo(0)}var a={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Vz("COPY_LINK_SUCCESS_TOAST")}}}}};_.Kj().resolve(_.cb).resolveCommand(a);_.VE(g)})};
iP[fG]=[Pl];var Ga=function(d,H){this.innertubeTransportService=d;this.JSC$17352_commandHandler=H};
_.m(Ga,YA);Ga.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a,e,k,C,R,V,U;return _.l(function(L){if(L.nextAddress==1)return(c=_.M(d,_.Y4))?L.yield(_.Nc(K.innertubeTransportService,d,(p=H)==null?void 0:p.form),2):L.return();(g=L.yieldResult)&&g.errorMetadata&&(a=g,e=_.Km(a.error.message),K.JSC$17352_commandHandler.resolveCommand(e));k=g;if((C=k)==null?0:C.actions)for(R=_.q(k.actions),V=R.next();!V.done;V=R.next())U=V.value,K.JSC$17352_commandHandler.resolveCommand(U);_.VE(L)})};
Ga[fG]=[_.Z8,_.cb];var oN=function(){};
_.m(oN,YA);oN.prototype.resolveCommand=function(d){var H;return _.l(function(K){H=_.M(d,NN3);if(!H)return K.return();(new anU(H)).show();_.VE(K)})};_.qL=new _.Av("PLAYLIST_EDIT_CONTROLLER_TOKEN");var aN=function(d,H,K,c){this.store=d;this.innertubeTransportService=H;this.controller=K;this.JSC$17360_commandHandler=c};
_.m(aN,YA);
aN.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a,e,k,C,R,V,U,L,w,W,J,F,Y,A,E,N,y,v,el,l1,V4,Mf,LF;return _.l(function(YY){if(YY.nextAddress==1){c=_.M(d,_.sV);if(!c)return YY.return();if(c.clientActions){p=_.q(c.clientActions);for(g=p.next();!g.done;g=p.next())a=g.value,K.JSC$17360_commandHandler.resolveCommand(a);var FM,gA=H==null?void 0:(FM=H.form)==null?void 0:FM.element;gA&&_.GT(gA,"yt-dismissible-item-action",c.clientActions)}return YY.yield(_.Nc(K.innertubeTransportService,d,(e=H)==
null?void 0:e.form),2)}if(k=YY.yieldResult)k.errorMetadata?(C=k,R=_.Km(C.error.message),K.JSC$17360_commandHandler.resolveCommand(R),"error"in k&&((V=H)==null?0:(U=V.commandController)==null?0:U.onServerError)&&((L=H)==null||(w=L.commandController)==null||w.onServerError(d,k))):(W=H)==null||(J=W.commandController)==null||(Y=(F=J).onSuccess)==null||Y.call(F,d,k);A=k;((E=A)==null?0:E.collaborationInviteLink)&&c.playlistId&&(_.h("web_enable_invite_collaborators_link")||_.h("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
K.store.dispatch(_.iZ({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:c.playlistId,inviteLinkUrl:A.collaborationInviteLink}}));((N=A)==null?0:N.redirectEndpoint)&&K.JSC$17360_commandHandler.resolveCommand(A.redirectEndpoint);((y=A)==null?0:(v=y.newHeader)==null?0:v.playlistHeaderRenderer)?P1g(K.controller,A.newHeader.playlistHeaderRenderer):((el=A)==null?0:(l1=el.newHeader)==null?0:l1.musicEditablePlaylistDetailHeaderRenderer)&&P1g(K.controller,A.newHeader.musicEditablePlaylistDetailHeaderRenderer);
K.controller.playlistVideoListElement&&((V4=A)==null?0:(Mf=V4.playlistEditResults)==null?0:(LF=Mf[0])==null?0:LF.playlistEditVideoAddedResultData)&&((gA=K.controller.playlistVideoListElement)==null||gA.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:A.playlistEditResults[0].playlistEditVideoAddedResultData})));_.VE(YY)})};
aN[fG]=[Pl,_.Z8,_.qL,_.cb];var lP=function(d,H){this.controller=d;this.JSC$17370_commandHandler=H};
_.m(lP,YA);lP.prototype.resolveCommand=function(d,H){var K=this,c,p,g;return _.l(function(a){c=_.M(d,pQl);K.controller.showRefreshPill&&((p=c)==null?0:p.command)&&(K.JSC$17370_commandHandler.resolveCommand((g=c)==null?void 0:g.command,H),K.controller.showRefreshPill=!1);_.VE(a)})};
lP[fG]=[_.at,_.cb];var ed=function(d,H){this.store=d;this.JSC$17374_commandHandler=H||_.nM.instance};
_.m(ed,YA);ed.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a,e,k,C,R,V,U;return _.l(function(L){c=_.M(d,R1B);p=K.store.getState().radioButtonGroup;if((g=c)==null?0:g.command)K.JSC$17374_commandHandler.resolveCommand((a=c)==null?void 0:a.command,H);else if(p&&((e=c)==null?void 0:e.formId)===p.currentFormId)for(k=Object.values(p.commandsMap),C=_.q(k),R=C.next();!R.done;R=C.next())V=R.value,(U=_.T6(V))&&K.JSC$17374_commandHandler.resolveCommand(U,H);_.VE(L)})};
ed[fG]=[_.t$];var kz=new _.Av("USER_PREFS");var xz=function(d){this.JSC$17379_prefCookie=d};
_.m(xz,YA);xz.prototype.resolveCommand=function(d){var H=this,K;return _.l(function(c){(K=_.M(d,QjB))&&typeof K.useListView==="boolean"&&(_.Mo(0,155,K.useListView),H.JSC$17379_prefCookie.save());_.VE(c)})};
xz[fG]=[kz];var nD=function(d){this.JSC$17383_prefCookie=d};
_.m(nD,YA);nD.prototype.resolveCommand=function(d){var H=this,K,c,p,g,a;return _.l(function(e){K=_.M(d,fS0);if((c=K)==null||!c.gl)return e.return();p=K.gl;g={persist_gl:"1",gl:p};H.JSC$17383_prefCookie.set("gl",p);H.JSC$17383_prefCookie.save();a=Fb3(g);_.bO(a);_.VE(e)})};
nD[fG]=[kz];var CD=function(d){this.JSC$17387_prefCookie=d};
_.m(CD,YA);CD.prototype.resolveCommand=function(d){var H=this,K,c;return _.l(function(p){K=_.M(d,iGl);if(!K)return p.return();c=!1;K.flagNum&&typeof K.value==="boolean"?(_.Mo(0,K.flagNum,K.value),c=!0):K.key&&typeof K.stringValue==="string"&&(H.JSC$17387_prefCookie.set(K.key,K.stringValue),c=!0);c&&H.JSC$17387_prefCookie.save();_.VE(p)})};
CD[fG]=[kz];var RN=new _.Av("PREF_STORAGE_PROMISE_TOKEN");var Vb=function(d){this.JSC$17391_prefStoragePromise=d};
_.m(Vb,YA);Vb.prototype.resolveCommand=function(d){var H=this,K,c;return _.l(function(p){if(p.nextAddress==1)return(K=_.M(d,o33))?p.yield(H.JSC$17391_prefStoragePromise,2):p.return();c=p.yieldResult;return c===void 0||K.key===void 0||K.value===void 0?p.return():p.yield(c.set(K.key,K.value),0)})};
Vb[fG]=[RN];var uMv=function(d){this.innertubeTransportService=d};
_.m(uMv,YA);uMv.prototype.resolveCommand=function(d,H){var K=this,c,p;return _.l(function(g){(c=_.M(d,_.YVg))&&c&&c.isFirstRequest&&(_.sa("search_overview_answer"),_.Fw("so_rq",void 0,"search_overview_answer"));return g.yield(_.Nc(K.innertubeTransportService,d,(p=H)==null?void 0:p.form),0)})};
uMv[fG]=[_.Z8];var IDO=function(){};
_.m(IDO,YA);
IDO.prototype.resolveCommand=function(d){var H,K,c,p,g,a,e,k,C;return _.l(function(R){H=_.M(d,yg3);if((K=H)==null?0:K.sectionIdentifier){if(H.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(p=(c=document.getElementsByTagName(H.sectionIdentifier))==null?void 0:c.item(0))p.scrollIntoView({behavior:"smooth"}),(g=ZM4(p))&&g.focus({preventScroll:!0});return R.return()}a=document.querySelector("[section-identifier="+H.sectionIdentifier+"]");e=document.querySelector("[section-identifier="+H.referenceSectionIdentifier+
"]");if(!a)return R.return();k=H.verticalScrollOffsetDp?H.verticalScrollOffsetDp:0;e&&(k-=e.offsetTop);window.scrollTo({top:a.offsetTop+k,behavior:"smooth"});(C=ZM4(a))&&C.focus({preventScroll:!0})}_.VE(R)})};var U0=function(d){this.JSC$17403_commandHandler=d};
_.m(U0,YA);
U0.prototype.resolveCommand=function(d){var H=this,K,c,p,g,a,e,k;return _.l(function(C){if(C.nextAddress==1){K=_.M(d,qTg);if(!K||!K.imageBytes||!navigator.clipboard)return C.return();if(K.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.z5(Error("Ci")),C.return();_.e2(C,2);p=(c=K)==null?void 0:c.imageBytes;g=p.replace(/-/g,"+").replace(/_/g,"/");a=q61(g);e={};k=[new ClipboardItem((e[a.type]=a,e))];return C.yield(navigator.clipboard.write(k),4)}if(C.nextAddress!=2)return K.successCommand&&
H.JSC$17403_commandHandler.resolveCommand(K.successCommand),_.Em(C,0);_.RV(C);K.errorCommand&&H.JSC$17403_commandHandler.resolveCommand(K.errorCommand);_.VE(C)})};
U0[fG]=[_.cb];var hD=function(d,H){this.innertubeTransportService=d;this.JSC$17407_commandHandler=H};
_.m(hD,YA);hD.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a,e;return _.l(function(k){if(k.nextAddress==1)return(c=_.M(d,aE3))?k.yield(_.Nc(K.innertubeTransportService,d,(p=H)==null?void 0:p.form),2):k.return();(g=k.yieldResult)&&g.errorMetadata&&c.onFailureCommand&&K.JSC$17407_commandHandler.resolveCommand(c.onFailureCommand);a=g;((e=a)==null?0:e.shareCommand)&&K.JSC$17407_commandHandler.resolveCommand(a.shareCommand,H);_.VE(k)})};
hD[fG]=[_.Z8,_.cb];var LD=function(){};
_.m(LD,YA);LD.prototype.resolveCommand=function(d){var H,K;return _.l(function(c){H=_.M(d,$3M);if(!H||!navigator.share)return c.return();K={url:H.url};try{return c.return(navigator.share(K))}catch(p){}_.VE(c)})};var ML=function(){};
_.m(ML,YA);ML.prototype.resolveCommand=function(){return _.l(function(d){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.VE(d)})};var mA=function(d){this.JSC$17417_navigationConfirmationService=d};
_.m(mA,YA);mA.prototype.resolveCommand=function(){var d=this;return _.l(function(H){d.JSC$17417_navigationConfirmationService.cancelPendingNavigation();_.VE(H)})};
mA[fG]=[L_];var wZ=function(d){this.JSC$17420_screenManager=d};
_.m(wZ,YA);wZ.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a,e,k,C;return _.l(function(R){p=(c=H.form)==null?void 0:c.event;a=(g=H.form)==null?void 0:g.element;if(!p)throw new _.m1("Event not passed in when resolving command");e=_.q(p.composedPath());for(k=e.next();!k.done;k=e.next())if(C=k.value,C.tagName==="YT-COPY-LINK-RENDERER")return C.copyUrlToClipboard(),a&&_.EQ(K.JSC$17420_screenManager,a),R.return();_.VE(R)})};
wZ[fG]=[_.BC];var Po=function(){this.JSC$17424_miniAppClientDataProvider=_.Kj().resolve(_.Nb)};
_.m(Po,YA);Po.prototype.resolveCommand=function(){var d=this,H,K;return _.l(function(c){if(d.JSC$17424_miniAppClientDataProvider.clientData.has("video_id")){var p=d.JSC$17424_miniAppClientDataProvider,g=p.clientData.get("video_id");g&&p.clientData.delete("video_id");H="https://youtube.com/watch?v="+g;K=_.Be(H);if(K===void 0)throw Error("Di`"+H);_.EH(window,K)}_.VE(c)})};var uP=function(){};
_.m(uP,YA);uP.prototype.resolveCommand=function(){return _.l(function(d){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.VE(d)})};var IN=function(){};
_.m(IN,YA);IN.prototype.resolveCommand=function(){var d;return _.l(function(H){if(H.nextAddress==1)return H.yield(_.CS4(window.document.documentElement),2);(d=document.querySelector("mini-app-container-view-model iframe"))&&d.focus();_.VE(H)})};var rZ=function(d){this.JSC$17431_navigationConfirmationService=d};
_.m(rZ,YA);
rZ.prototype.resolveCommand=function(){var d=this;return _.l(function(H){var K=d.JSC$17431_navigationConfirmationService,c=_.Kj().resolve(_.Pm),p;if(((p=K.navigateParams)==null?void 0:p.data)!==void 0){var g;_.x1S(c,K.navigateParams.endpoint,K.navigateParams.data,(g=K.navigateParams.navigationType)!=null?g:1,K.navigateParams.tempData,K.navigateParams.isMiniplayer,void 0,!0);K.navigateParams=void 0;K.customConfirmationCommand=void 0}else K.navigateParams&&(c.navigate(K.navigateParams.endpoint,K.navigateParams.reload,
K.navigateParams.params,K.navigateParams.tempData,K.navigateParams.requestType,K.navigateParams.createScreenConfig,!0),K.navigateParams=void 0,K.customConfirmationCommand=void 0);_.VE(H)})};
rZ[fG]=[L_];var Wo=function(){};
_.m(Wo,YA);Wo.prototype.resolveCommand=function(){return _.l(function(d){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.VE(d)})};var Bo=function(d){this.JSC$17436_prefStorage=d};
_.m(Bo,YA);Bo.prototype.resolveCommand=function(){var d=this,H,K;return _.l(function(c){switch(c.nextAddress){case 1:return c.yield(d.JSC$17436_prefStorage,2);case 2:return(H=c.yieldResult)?c.yield(H.set("sfvle",!1),3):c.return();case 3:return c.yield(H.set("sfvles",!0),4);case 4:K=_.Lo(),_.Mo(0,203,!1),_.Mo(0,204,!0),K.save(),_.VE(c)}})};
Bo[fG]=[RN];var za=function(d){this.JSC$17439_prefStorage=d};
_.m(za,YA);za.prototype.resolveCommand=function(){var d=this,H,K;return _.l(function(c){switch(c.nextAddress){case 1:return c.yield(d.JSC$17439_prefStorage,2);case 2:return(H=c.yieldResult)?c.yield(H.set("sfvle",!0),3):c.return();case 3:return c.yield(H.set("sfvles",!0),4);case 4:K=_.Lo(),_.Mo(0,203,!0),_.Mo(0,204,!0),K.save(),_.VE(c)}})};
za[fG]=[RN];_.rCb=new _.Av("SNACKBAR_CONTROLLER_TOKEN");_.Wiv=new _.Av("SHOULD_SHOW_PIVOT_BAR_TOKEN");var XA=function(d){this.controller=d};
_.m(XA,YA);XA.prototype.resolveCommand=function(d){var H=this,K;return _.l(function(c){K=_.M(d,McC);if(!K)return c.return();var p=H.controller;p.closeSnackbarFn&&p.closeSnackbarFn();_.VE(c)})};
XA[fG]=[_.rCb];var JD=function(d,H){this.controller=d;this.sheetController=H};
_.m(JD,YA);JD.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a,e,k;return _.l(function(C){c=_.M(d,wxB);if(!c)return C.return();a=xfb(K.sheetController,(p=H)==null?void 0:(g=p.form)==null?void 0:g.element);e=_.M(c.content,SsB);if(!e)return C.return();var R=K.controller,V=e,U=(k=c.animationStyle)!=null?k:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(R.showSnackbarFn)R.showSnackbarFn({snackbarViewModel:V,animationStyle:U,durationMs:c.durationSeconds*1E3,target:a});else throw Error("nj");_.VE(C)})};
JD[fG]=[_.rCb,_.B6];var s0=function(){};
_.m(s0,YA);s0.prototype.resolveCommand=function(d){var H;return _.l(function(K){H=_.M(d,GQ3);if(!H||typeof H.key!=="string"||typeof H.value!=="string")return K.return();window.localStorage.setItem(H.key,H.value);_.VE(K)})};var FA=function(d){this.store=d};
_.m(FA,YA);FA.prototype.resolveCommand=function(d){var H=this,K;return _.l(function(c){K=_.M(d,DuM);if(!K||!K.stepId||!K.token)return c.return();H.store.dispatch(aMS({stepId:K.stepId,token:K.token,isSelected:!1}));_.VE(c)})};
FA[fG]=[Pl];var ZC=function(d,H,K){this.innertubeTransportService=d;this.store=H;this.JSC$17458_screenManager=K};
_.m(ZC,YA);
ZC.prototype.resolveCommand=function(d){var H=this,K,c,p,g,a,e,k,C,R,V,U,L,w,W,J,F,Y,A,E,N,y,v,el;return _.l(function(l1){K=_.M(d,Hq7);if(!K||(c=K.stepIds)==null||!c.length)return l1.return();p=H.store.getState().talkToRecs;g=[];a=[];e=_.q(K.stepIds);for(k=e.next();!k.done;k=e.next())for(C=k.value,R=void 0,(V=(R=p.stepStates[C])==null?void 0:R.userQuery)&&a.push({userQuery:V.userQuery,userQueryToken:V.token}),U=void 0,L=(U=p.stepStates[C])==null?void 0:U.selectionStates,w=_.q(Object.entries(L)),W=
w.next();!W.done;W=w.next())J=W.value,F=_.q(J),Y=F.next().value,A=F.next().value,E=Y,N=A,N.isSelected&&g.push(E);y={selectedChipTokens:g,userQueries:a,submittedStepIds:K.stepIds};v={browseTalk2recsFormData:y};K.browseEndpoint?(el=d,_.X4(el,_.Lm,K.browseEndpoint)):K.command&&(el=K.command);return el?l1.yield(_.Nc(H.innertubeTransportService,el,{formData:v,disableCache:!0}).then(function(V4){(V4==null?0:V4.trackingParams)&&H.JSC$17458_screenManager.graftServerVe(V4==null?void 0:V4.trackingParams)}),
0):l1.return()})};
ZC[fG]=[_.Z8,Pl,_.BC];var Ta=function(d){this.store=d};
_.m(Ta,YA);Ta.prototype.resolveCommand=function(d){var H=this,K;return _.l(function(c){K=_.M(d,NWM);if(!K||!K.stepId||!K.token)return c.return();H.store.dispatch(aMS({stepId:K.stepId,token:K.token,isSelected:!0}));_.VE(c)})};
Ta[fG]=[Pl];var Qb=function(d){this.store=d};
_.m(Qb,YA);Qb.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a,e;return _.l(function(k){c=_.M(d,$W0);if(!c||!c.stepId||!c.userQueryToken)return k.return();e=(a=(p=H)==null?void 0:(g=p.form)==null?void 0:g.userQuery)!=null?a:"";K.store.dispatch(_.iZ({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:c.stepId,userQueryToken:c.userQueryToken,userQuery:e}}));_.VE(k)})};
Qb[fG]=[Pl];_.BhO=new _.Av("TIMELY_ACTIONS_CONTROLLER_TOKEN");var tD=function(d){this.controller=d};
_.m(tD,YA);tD.prototype.resolveCommand=function(d){var H=this,K,c,p,g;return _.l(function(a){K=_.M(d,OT3);if(!K)return a.return();c=K;p=c.id;g=c.isVisible;if(p===void 0||g===void 0)return a.return();var e;(e=H.controller.timelyActionsMap.get(p))==null||e(p,g);_.VE(a)})};
tD[fG]=[_.BhO];var zXO=function(){this.timelyActionsMap=new Map};var Yz=function(d){this.JSC$17485_commandHandler=d};
_.m(Yz,YA);Yz.prototype.resolveCommand=function(d){var H=this,K,c,p,g,a;return _.l(function(e){K=_.M(d,_.La);if(!K)return e.return();g=(c=K.item)==null?void 0:(p=c.notificationTextRenderer)==null?void 0:p.successResponseText;if(!g)return e.return();a=_.$i(g);H.JSC$17485_commandHandler.resolveCommand(a);_.VE(e)})};
Yz[fG]=[_.cb];var O0=function(d,H){this.innertubeTransportService=d;this.JSC$17490_playerApiPromise=H};
_.m(O0,YA);
O0.prototype.resolveCommand=function(d){var H=this,K,c,p,g,a,e,k,C,R;return _.l(function(V){if(V.nextAddress==1)return V.yield(H.JSC$17490_playerApiPromise,2);K=V.yieldResult;c=K.getOption("captions","track");p=Object.assign({},_.M(d,_.rv7));(a=(g=K.getVideoData())==null?void 0:g.video_id)?p.externalVideoId=a:_.SD(Error("Ei"));if((e=c)==null?0:e.languageCode)p.languageCode=c.languageCode;if((k=c)==null?0:k.kind)p.kind=c.kind;if((C=c)==null?0:C.name)p.name=c.name;R=Object.assign({},d,{getTranscriptEndpoint:p});return V.yield(_.Nc(H.innertubeTransportService,
R),0)})};
O0[fG]=[_.Z8,_.Gx];var Sd=function(){};
_.m(Sd,YA);Sd.prototype.resolveCommand=function(d){var H,K,c,p,g,a,e,k;return _.l(function(C){H=_.M(d,CIB);if((K=H)==null||!K.paramKeyValuePairs)return C.return();c=window.location.href;p=_.q(H.paramKeyValuePairs);for(g=p.next();!g.done;g=p.next())a=g.value,a.key&&a.value&&(e={},c=_.DY(c,(e[a.key]=a.value,e)));k=_.Kj().resolve(_.Vr);_.RL(k,c);_.VE(C)})};var E0=function(d,H){this.JSC$17497_commandHandler=d;this.innertubeTransportService=H};
_.m(E0,YA);
E0.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a,e,k,C,R,V,U,L,w,W,J,F,Y,A;return _.l(function(E){switch(E.nextAddress){case 1:return(g=(c=H)==null?void 0:(p=c.form)==null?void 0:p.element)&&_.Qv(g),a=_.Lo().get("hl"),e="",_.e2(E,2),E.yield(XNC(a),4);case 4:e=E.yieldResult;_.Em(E,3);break;case 2:return _.RV(E),g&&_.tE(g),_.z5(Error("Gi"),"ERROR"),E.return();case 3:k=_.M(d,Cq7);if(!k)return g&&_.tE(g),E.return();(V=(C=k.commerceActionConfig)==null?void 0:(R=C.commandLifeCycleConfig)==null?
void 0:R.onStartCommand)&&K.JSC$17497_commandHandler.resolveCommand(V);return E.yield(_.Nc(K.innertubeTransportService,d,{client_data:{paymentsClientToken:{token:e}}}),5);case 5:(U=E.yieldResult)?(g&&_.tE(g),((J=U)==null?0:J.command)&&K.JSC$17497_commandHandler.resolveCommand(U.command),(A=(F=k.commerceActionConfig)==null?void 0:(Y=F.commandLifeCycleConfig)==null?void 0:Y.onSuccessCommand)&&K.JSC$17497_commandHandler.resolveCommand(A)):(g&&_.tE(g),_.z5(Error("Hi")),(W=(L=k.commerceActionConfig)==
null?void 0:(w=L.commandLifeCycleConfig)==null?void 0:w.onFailureCommand)&&K.JSC$17497_commandHandler.resolveCommand(W)),_.VE(E)}})};
E0[fG]=[_.cb,_.Z8];var yb=function(d,H,K){this.store=d;this.JSC$17513_commandHandler=H;this.innertubeTransportService=K};
_.m(yb,YA);
yb.prototype.resolveCommand=function(d,H){var K=this,c,p,g,a,e,k,C,R,V;return _.l(function(U){c=_.M(d,Rqd);p=c.googlePaymentPayload;c.onStartCommand&&K.JSC$17513_commandHandler.resolveCommand(c.onStartCommand);g=p.encryptedPurchaseParams;a=p.ypcLogWalletAnalyticDataEndpoint;e=c.serializedTransactionFlowLoggingParams;k=p.serializedPaymentsClientParams;C=c.ypcCujContext;V=FQL(K.innertubeTransportService,(R=H)==null?void 0:R.form,g,a,e,k,C);return U.return(V.then(function(L){JzE(H==null?void 0:H.form,
!1);var w=K.store,W=K.JSC$17513_commandHandler,J=L.integratorData;J==null||J===""||L.error!=null?(String(L.error)==="-1"&&c.onDismissCommand?W.resolveCommand(c.onDismissCommand):String(L.error)!=="-1"&&c.onFailureCommand&&W.resolveCommand(c.onFailureCommand),String(L.error)!=="-1"&&String(L.error)!=="132"&&_.z5(Error("Ii"),"ERROR")):(c.googlePaymentEntityKey&&w.dispatch(_.PI("commerceAcquisitionClientPayloadEntity",c.googlePaymentEntityKey,{key:c.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:J,
fundsGuaranteeCallbackClientData:L.integratorClientCallbackData}}})),c.onSuccessCommand&&W.resolveCommand(c.onSuccessCommand));_.e5()},function(L){JzE(H==null?void 0:H.form,!1);
_.z5(L,"ERROR");c.onFailureCommand&&K.JSC$17513_commandHandler.resolveCommand(c.onFailureCommand)}))})};
yb[fG]=[$8,_.cb,_.Z8];var bP=function(d,H){this.JSC$17517_commandHandler=d;this.purchaseManager=H};
_.m(bP,YA);
bP.prototype.resolveCommand=function(d){var H=this,K,c,p,g,a,e,k,C,R;return _.l(function(V){K=_.M(d,VPS);((c=K)==null?0:(p=c.commandLifeCycleConfig)==null?0:p.onStartCommand)&&H.JSC$17517_commandHandler.resolveCommand(K.commandLifeCycleConfig.onStartCommand);if(!((g=K)==null?0:(a=g.googlePaymentPurchaseManagerPayload)==null?0:a.securePayloadBytes))return _.z5(Error("Ji"),"ERROR"),V.return();e=RRA(_.fF(K.googlePaymentPurchaseManagerPayload.securePayloadBytes));k=_.Lo().get("hl");C=_.DA();r8X(e.serialize(),
k,function(U){C.resolve(U)},function(U){C.reject(U)},C.resolve);
R=C.promise;return V.return(R.then(function(U){if(U)if(U==null?0:U.errorCode){_.z5(Error("Ki`"+U.errorCode),"ERROR");var L,w;((L=K)==null?0:(w=L.commandLifeCycleConfig)==null?0:w.onFailureCommand)&&H.JSC$17517_commandHandler.resolveCommand(K.commandLifeCycleConfig.onFailureCommand)}else if(U==null?0:U.isCancelled){var W,J;((W=K)==null?0:(J=W.commandLifeCycleConfig)==null?0:J.onCancelCommand)&&H.JSC$17517_commandHandler.resolveCommand(K.commandLifeCycleConfig.onCancelCommand)}else{var F,Y;((F=K)==
null?0:(Y=F.commandLifeCycleConfig)==null?0:Y.onSuccessCommand)&&H.JSC$17517_commandHandler.resolveCommand(K.commandLifeCycleConfig.onSuccessCommand)}},function(U){_.z5(U,"ERROR");
var L,w;((L=K)==null?0:(w=L.commandLifeCycleConfig)==null?0:w.onFailureCommand)&&H.JSC$17517_commandHandler.resolveCommand(K.commandLifeCycleConfig.onFailureCommand)}))})};
bP[fG]=[_.cb,WMB];var XFt=function(d,H){this.JSC$17525_commandHandler=d;this.commandAllowlistOverride=H;var K;this.commandAllowlist=(K=this.commandAllowlistOverride)!=null?K:f7};
XFt.prototype.handleResponse=function(d,H,K){var c,p=H==null?void 0:(c=H.config)==null?void 0:c.command;if(!p||this.commandAllowlist.some(function(g){return!!_.M(p,g)})){H=void 0;
K!==void 0&&(H={form:{element:K}});d.onResponseReceivedCommand&&this.JSC$17525_commandHandler.resolveCommand(d.onResponseReceivedCommand,H);d.onResponseReceivedAction&&this.JSC$17525_commandHandler.resolveCommand(d.onResponseReceivedAction,H);d.onResponseReceivedEndpoint&&this.JSC$17525_commandHandler.resolveCommand(d.onResponseReceivedEndpoint,H);d.command&&this.JSC$17525_commandHandler.resolveCommand(d.command,H);if(d.onResponseReceivedCommands)for(K=_.q(d.onResponseReceivedCommands),c=K.next();!c.done;c=
K.next())this.JSC$17525_commandHandler.resolveCommand(c.value,H);if(d.onResponseReceivedActions)for(K=_.q(d.onResponseReceivedActions),c=K.next();!c.done;c=K.next())this.JSC$17525_commandHandler.resolveCommand(c.value,H);if(d.onResponseReceivedEndpoints)for(K=_.q(d.onResponseReceivedEndpoints),c=K.next();!c.done;c=K.next())this.JSC$17525_commandHandler.resolveCommand(c.value,H);if(d.actions)for(d=_.q(d.actions),K=d.next();!K.done;K=d.next())this.JSC$17525_commandHandler.resolveCommand(K.value,H)}};
XFt[fG]=[_.cb,_.$p(JUX)];var JCO=new _.Av("INNERTUBE_TOKEN_SERVICE");var sEv=new _.Av("SCHEDULER_TOKEN");var Fi1=function(d){this.scheduler=d;d={};this.tokenMap=(d.app={},d.user={},d)};
Fi1.prototype.handleResponse=function(d,H){if(!H)throw Error("Li");var K;if(d=(K=d.responseContext)==null?void 0:K.innertubeTokenJar){if(d.appTokens){var c,p,g;K=(c=H.innerTubeRequest.context)==null?void 0:(p=c.request)==null?void 0:(g=p.innertubeTokenJar)==null?void 0:g.appTokens;ZFt(this,d.appTokens,this.tokenMap.app,K)}if(d.userTokens){var a,e,k;H=(a=H.innerTubeRequest.context)==null?void 0:(e=a.request)==null?void 0:(k=e.innertubeTokenJar)==null?void 0:k.userTokens;ZFt(this,d.userTokens,this.tokenMap.user,
H)}}};
Fi1.prototype.processContext=function(d){d.request||(d.request={});var H=Object.keys(this.tokenMap.app).length,K=Object.keys(this.tokenMap.user).length;if(H||K)d.request.innertubeTokenJar={},H&&(d.request.innertubeTokenJar.appTokens=[].concat(_.ru(Object.values(this.tokenMap.app).flat()))),K&&(d.request.innertubeTokenJar.userTokens=[].concat(_.ru(Object.values(this.tokenMap.user).flat())))};
var ZFt=function(d,H,K,c){H=_.q(H);for(var p=H.next(),g={};!p.done;g={token$jscomp$138:void 0},p=H.next()){g.token$jscomp$138=p.value;if(g.token$jscomp$138.type===void 0)throw new _.m1("InnerTube token has no type",g.token$jscomp$138);if(g.token$jscomp$138.clearTokens)K[g.token$jscomp$138.type]=[];else if(g.token$jscomp$138.value!==void 0){K[g.token$jscomp$138.type]||(K[g.token$jscomp$138.type]=[]);if(c!==void 0&&c.length){p=_.q(c);for(var a=p.next(),e={};!a.done;e={requestToken:void 0},a=p.next())e.requestToken=
a.value,a=K[g.token$jscomp$138.type].findIndex(function(k){return function(C){return C===k.requestToken||(0,_.rs.equals)(C,k.requestToken)}}(e)),a>-1&&K[g.token$jscomp$138.type].splice(a,1)}K[g.token$jscomp$138.type].push(g.token$jscomp$138);
g.token$jscomp$138.maxAgeSeconds&&Number(g.token$jscomp$138.maxAgeSeconds)>0&&d.scheduler.addLowPriorityJob(function(k){return function(){var C=K[k.token$jscomp$138.type].indexOf(k.token$jscomp$138);C>-1&&K[k.token$jscomp$138.type].splice(C,1)}}(g),Number(g.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.m1("InnerTube token has no value",g.token$jscomp$138);
}};
Fi1[fG]=[sEv];var ThZ=new _.Av("LOCAL_INNERTUBE_ROUTER_TOKEN"),QEU=new _.Av("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var NL=function(d){this.serviceMap=d};
NL.prototype.shouldPreferLocalResponse=function(d,H){return(d=tl5(this,d))?d.shouldPreferLocalResponse(H):!1};
NL.prototype.localInnertubeResponse=function(d,H){var K=this,c;return _.l(function(p){return(c=tl5(K,d))?p.return(c.localInnertubeResponse(H)):p.return(Promise.reject(Error("Mi")))})};
NL.prototype.canProvideFallbackResponse=function(d,H){return(d=tl5(this,d))?d.canProvideFallbackResponse(H):!1};
NL.prototype.localFallbackInnertubeResponse=function(d,H){var K=this,c;return _.l(function(p){return(c=tl5(K,d))?p.return(c.localFallbackInnertubeResponse(H)):p.return(Promise.reject(Error("Mi")))})};
var tl5=function(d,H){H=_.kp(H);return H?(d=d.serviceMap[H])?d:null:null};
NL[fG]=[QEU];var Ro=function(){};
Ro.prototype.shouldPreferLocalResponse=function(){return!1};
Ro.prototype.localInnertubeResponse=function(){return _.l(function(d){return d.return(Promise.reject(Error("Ni")))})};
Ro.prototype.canProvideFallbackResponse=function(){return!0};
Ro.prototype.localFallbackInnertubeResponse=function(){var d,H,K;return _.l(function(c){d=Vv("CLOSE_POPUP");H={openPopupAction:T6D()};K={actions:[d,H]};return c.return(K)})};var TWY=function(d,H){this.JSC$17575_upliftPromise=d;this.store=H};
_.G=TWY.prototype;_.G.shouldPreferLocalResponse=function(d){var H=d.videoId,K;if(K=H)K=gRL(this.store.getState().entities,d.videoId);return K&&iUF(this.store.getState().entities,H)?tii(this.store.getState().entities,d.playlistId):!1};
_.G.localInnertubeResponse=function(d){var H=this,K;return _.l(function(c){return(K=H.getPlayerResponse(d))?c.return(Promise.resolve(K)):c.return(Promise.reject(Error("Oi")))})};
_.G.canProvideFallbackResponse=function(d){return!!d.videoId};
_.G.localFallbackInnertubeResponse=function(d){var H=this,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(H.JSC$17575_upliftPromise,2);K=H.getPlayerResponse(d);var p;K?p=c.return(Promise.resolve(K)):p=uZ(H.store.getState().entities,d.videoId)?c.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.cW(_.Vz("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:$BC()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
c.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.cW(_.Vz("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:Hh5()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return p})};
_.G.getPlayerResponse=function(d){return XxF(this.store.getState().entities,d.videoId)};var Cy=function(d,H){this.localPlayerService=d;this.localWatchNextService=H};
Cy.prototype.shouldPreferLocalResponse=function(d){var H=d.playerRequest;d=d.watchNextRequest;return!!(H&&this.localPlayerService.shouldPreferLocalResponse(H)&&d&&this.localWatchNextService.shouldPreferLocalResponse(d))};
Cy.prototype.localInnertubeResponse=function(d){var H=this,K,c,p,g;return _.l(function(a){if(a.nextAddress==1){K=d.playerRequest;c=d.watchNextRequest;if(!K||!c)throw new _.m1("Missing streaming request",d);return a.yield(H.localPlayerService.localInnertubeResponse(K),2)}if(a.nextAddress!=3)return p=a.yieldResult,a.yield(H.localWatchNextService.localInnertubeResponse(c),3);g=a.yieldResult;return a.return({playerResponse:p,watchNextResponse:g})})};
Cy.prototype.canProvideFallbackResponse=function(d){var H=d.playerRequest;d=d.watchNextRequest;return!!(H&&this.localPlayerService.canProvideFallbackResponse(H)&&d&&this.localWatchNextService.canProvideFallbackResponse(d))};
Cy.prototype.localFallbackInnertubeResponse=function(d){var H=this,K,c,p,g;return _.l(function(a){if(a.nextAddress==1)return K=d.playerRequest,c=d.watchNextRequest,K&&c?a.yield(H.localPlayerService.localFallbackInnertubeResponse(K),2):a.return(Promise.reject(new _.m1("Missing streaming request",d)));if(a.nextAddress!=3)return p=a.yieldResult,a.yield(H.localWatchNextService.localFallbackInnertubeResponse(c),3);g=a.yieldResult;return a.return({playerResponse:p,watchNextResponse:g})})};var k8=function(d){this.JSC$17585_persistentStorePromiseAccessor=d};
k8.prototype.shouldPreferLocalResponse=function(){return!1};
k8.prototype.localInnertubeResponse=function(){return _.l(function(d){return d.return(Promise.reject(Error("Pi")))})};
k8.prototype.canProvideFallbackResponse=function(){return!0};
k8.prototype.localFallbackInnertubeResponse=function(){var d=this,H,K;return _.l(function(c){return c.nextAddress==1?c.yield(d.JSC$17585_persistentStorePromiseAccessor(),2):c.nextAddress!=3?(H=c.yieldResult)?c.yield(H.get("service:guide:fallback"),3):c.return(Promise.reject(Error("Qi"))):(K=c.yieldResult)&&_.d5(K)?c.return(Y6Y(_.d5(K))):c.return(Promise.reject(Error("Ri")))})};var V$=function(){};
V$.prototype.shouldPreferLocalResponse=function(){return!1};
V$.prototype.localInnertubeResponse=function(){return _.l(function(d){return d.return(Promise.reject(Error("Si")))})};
V$.prototype.canProvideFallbackResponse=function(){return!0};
V$.prototype.localFallbackInnertubeResponse=function(){var d,H,K;return _.l(function(c){d=Vv("CLOSE_POPUP");H={openPopupAction:T6D()};K={actions:[d,H]};return c.return(K)})};var ef=function(){this.urlMap=Y5v;this.fallbackCommand=_.hJ};
ef.prototype.shouldPreferLocalResponse=function(d){return(d=d.url)?!!OFZ(this,d):!1};
ef.prototype.localInnertubeResponse=function(d){var H=this,K;return _.l(function(c){return(K=d.url)?c.return(S50(d,OFZ(H,K))):c.return(Promise.reject(Error("Ti")))})};
ef.prototype.canProvideFallbackResponse=function(){return!0};
ef.prototype.localFallbackInnertubeResponse=function(d){var H=this,K,c,p,g,a,e,k;return _.l(function(C){K=d.url;if(!K)return C.return(S50(d,H.fallbackCommand));if(c=OFZ(H,K))return C.return(S50(d,c));p=void 0;g=_.kp(K);g==="/watch"&&(a=_.ZB(K,"v"))&&(k=(e=_.ZB(K,"list"))!=null?e:void 0,p=_.KH(a,k));p||(p=H.fallbackCommand);return C.return(S50(d,p))})};
var OFZ=function(d,H){if(H)return d.urlMap[_.yK(H)]},S50=function(d,H){H&&d.parentTrackingParams&&(H.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:d.parentTrackingParams}},H.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:H})};var x8=function(d,H,K){this.JSC$17595_upliftPromise=d;this.store=H;this.JSC$17595_persistentStorePromiseAccessor=K};
x8.prototype.shouldPreferLocalResponse=function(){return!1};
x8.prototype.localInnertubeResponse=function(){return _.l(function(d){return d.return(Promise.reject(Error("Ui")))})};
x8.prototype.canProvideFallbackResponse=function(){return!0};
x8.prototype.localFallbackInnertubeResponse=function(){var d=this;return _.l(function(H){return H.return(EY5(d))})};
var EY5=function(d){var H,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(vK(d.JSC$17595_upliftPromise,d.store),2);H=c.yieldResult;K={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[Q81(H)]}}}};return c.return(yCO(d,K))})},yCO=function(d,H){var K,c;
return _.l(function(p){if(p.nextAddress==1)return p.yield(d.JSC$17595_persistentStorePromiseAccessor(),2);if(p.nextAddress!=3)return K=p.yieldResult,p.yield(Hw(K),3);c=p.yieldResult;return p.return({responseContext:{},contents:H,topbar:c})})};var qO=function(d,H,K){this.JSC$17602_upliftPromise=d;this.store=H;this.JSC$17602_persistentStorePromiseAccessor=K};
qO.prototype.shouldPreferLocalResponse=function(d){var H=d.videoId;return H&&gRL(this.store.getState().entities,H)&&iUF(this.store.getState().entities,H)?tii(this.store.getState().entities,d.playlistId):!1};
qO.prototype.localInnertubeResponse=function(d){var H=this,K,c;return _.l(function(p){if(p.nextAddress==1)return(K=d.videoId)?p.yield(H.JSC$17602_upliftPromise,2):p.return(Promise.reject(Error("Vi")));if(p.nextAddress!=3)return p.yield(bF1(H,d,K),3);c=p.yieldResult;return p.return(Nh5(H,c,K))})};
qO.prototype.canProvideFallbackResponse=function(d){return d.videoId?!0:!1};
qO.prototype.localFallbackInnertubeResponse=function(d){var H=this,K,c,p,g;return _.l(function(a){switch(a.nextAddress){case 1:return(K=d.videoId)?a.yield(H.JSC$17602_upliftPromise,2):a.return(Promise.reject(Error("Vi")));case 2:return a.yield(bF1(H,d,K),3);case 3:c=a.yieldResult;if(uZ(H.store.getState().entities,K)){a.jumpTo(4);break}return a.yield(vK(H.JSC$17602_upliftPromise,H.store),5);case 5:return p=a.yieldResult,a.return(Dfb(c,p));case 4:return gRL(H.store.getState().entities,K)&&iUF(H.store.getState().entities,
K)?a.return(Nh5(H,c,K)):(g={title:_.cW(_.Vz("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:$BC()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},a.return(Dfb(c,g)))}})};
var bF1=function(d,H,K){var c,p,g,a,e;return _.l(function(k){if(k.nextAddress==1)return c=H.playlistId,p=_.KH(K,c),k.yield(d.JSC$17602_persistentStorePromiseAccessor(),2);if(k.nextAddress!=3)return g=k.yieldResult,k.yield(Hw(g),3);a=k.yieldResult;e={responseContext:{},currentVideoEndpoint:p,topbar:a};return k.return(e)})},Nh5=function(d,H,K){if(d=uZ(d.store.getState().entities,K)){var c;
K=d.videoEntity;var p,g={title:pH(K.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.g0((c=K.localizedStrings)==null?void 0:c.viewCount),viewCount:_.g0((p=K.localizedStrings)==null?void 0:p.viewCount)}}};K.publishedTimestampMillis&&(g.dateText=_.g0(M$F(new Date(Number(K.publishedTimestampMillis)))));c={videoPrimaryInfoRenderer:g};p=d.videoEntity;d=d.channelEntity;d={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:pH(_.Vz("SHOW_MORE",void 0,"Show more")),
showLessText:pH(_.Vz("SHOW_LESS",void 0,"Show less")),description:p.formattedDescription,owner:{videoOwnerRenderer:{title:pH(d.title),thumbnail:d.avatar}}}};H.contents={twoColumnWatchNextResults:{results:{results:{contents:[c,d]}}}}}return H},Dfb=function(d,H){d.contents={singleColumnWatchNextResults:{results:{results:{contents:[Q81(H)]}}}};
return d};var ny=function(d,H,K){this.JSC$17607_upliftPromise=d;this.store=H;this.JSC$17607_persistentStorePromiseAccessor=K};
ny.prototype.shouldPreferLocalResponse=function(){return!1};
ny.prototype.localInnertubeResponse=function(){return _.l(function(d){return d.return(Promise.reject(Error("Wi")))})};
ny.prototype.canProvideFallbackResponse=function(){return!0};
ny.prototype.localFallbackInnertubeResponse=function(){var d=this,H,K,c,p;return _.l(function(g){switch(g.nextAddress){case 1:return g.yield(d.JSC$17607_persistentStorePromiseAccessor(),2);case 2:return H=g.yieldResult,g.yield(Hw(H),3);case 3:return K=g.yieldResult,c={responseContext:{},topbar:K},g.yield(d.JSC$17607_upliftPromise,4);case 4:return g.yield(vK(d.JSC$17607_upliftPromise,d.store),5);case 5:return p=g.yieldResult,c.watchStatus={backgroundPromoRenderer:p},g.return(c)}})};_.fDU=new _.Av("ENDPOINT_MAP");var ACT=function(){var d=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return d.sequenceMap}}},aCl=function(d,H,K){var c,p=(c=H.config)==null?void 0:c.sequenceStrategy;
if(!p)return K();d.sequenceMap.has(p.sequenceKey)||d.sequenceMap.set(p.sequenceKey,[]);d=d.sequenceMap.get(p.sequenceKey);switch(p.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return jEt(d,H,K);case "REQUEST_SEQUENCE_TYPE_REPLACE":return vY1(d,H,K);default:throw new _.m1("Request could not be sequenced",H);}},jEt=function(d,H,K){var c,p,g;
return _.l(function(a){d.length>0?(p=d[d.length-1],c=p.responsePromise.then(function(){return K()})):c=K();
g={request:H,responsePromise:c};d.push(g);dUq(d,g);return a.return(g.responsePromise)})},vY1=function(d,H,K){K=K();
if(d.length>0)for(var c=_.q(d),p=c.next();!p.done;p=c.next())p.value.responsePromise=K;var g={request:H,responsePromise:K};d.push(g);dUq(d,g);return Promise.resolve().then(function(){return d.indexOf(g)>0?g.responsePromise.then(function(a){return Object.assign({},a,{sequenceMetaData:{skipProcessing:!0}})}):g.responsePromise})},dUq=function(d,H){H.responsePromise.then(function(){var K=d.indexOf(H);
K>-1&&d.splice(K,1)})};var HX0=new _.Av("REQUEST_SEQUENCING");var DC=function(){};
_.m(DC,e$);DC.prototype.getApiPaths=function(){return[]};
DC.prototype.getExtension=function(d){return _.M(d,hW3)};
DC.prototype.JSC$13039_buildRequest=function(d,H){d.recaptchaToken=H.recaptchaToken};
DC.prototype.getApiUrl=function(){return"/das_captcha"};var fD=function(){};
_.m(fD,e$);fD.prototype.getApiPaths=function(){return xTA};
fD.prototype.getExtension=function(d){return _.M(d,fe3)};
fD.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;H.createBackstagePostParams&&(d.createBackstagePostParams=H.createBackstagePostParams);K.comment_text&&(d.commentText=K.comment_text);if(K.attached_video_id)d.videoAttachment={videoId:K.attached_video_id};else if(K.image_poll_options)d.pollAttachmentData={options:K.image_poll_options};else if(K.poll_options)d.pollAttachment={choices:K.poll_options};else if(K.quiz_options)d.quizAttachmentData={options:K.quiz_options};else if(K.image_blob_id)d.imageAttachment=
{encryptedBlobId:K.image_blob_id},K.source_video_id&&(d.imageAttachment.sourceExternalVideoId=K.source_video_id),K.image_preview_coordinates&&(d.imageAttachment.previewCoordinates=JSON.parse(K.image_preview_coordinates));else if(K.images_data)d.imagesAttachment={imagesData:K.images_data};else if(K.clip_external_video_id!==void 0||K.clip_offset_ms!==void 0||K.clip_duration_ms!==void 0){var c,p,g,a,e;d.clipAttachment={externalVideoId:(g=K.clip_external_video_id)!=null?g:"",offsetMs:(a=(c=K.clip_offset_ms)==
null?void 0:c.toString())!=null?a:"",durationMs:(e=(p=K.clip_duration_ms)==null?void 0:p.toString())!=null?e:""}}else K.shared_post_id&&(d.sharedPostAttachment={postId:K.shared_post_id});K.tagged_video_id&&(d.postCreationData={taggedVideoId:K.tagged_video_id});K.access_restrictions&&(typeof K.access_restrictions==="number"&&(H=K.access_restrictions,d.accessRestrictions={restriction:H!==1&&H===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof K.access_restrictions==="string"&&
(d.accessRestrictionsParams=K.access_restrictions));K.scheduled_publish_time_sec&&(d.scheduledPublishTimeSec=K.scheduled_publish_time_sec.toString())};var AD=function(){};
_.m(AD,e$);AD.prototype.getApiPaths=function(){return L7N};
AD.prototype.getExtension=function(d){return _.M(d,n4X)};
AD.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;H.decorateMessageParams&&(d.params=H.decorateMessageParams);K.text&&(d.text=K.text)};var jd=function(){};
_.m(jd,e$);jd.prototype.getApiPaths=function(){return OeU};
jd.prototype.getExtension=function(d){return _.M(d,A9g)};
jd.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;K.video_id&&(d.videoId=K.video_id)};var vo=function(){};
_.m(vo,e$);vo.prototype.getApiPaths=function(){return N2g};
vo.prototype.getExtension=function(d){return _.M(d,_.no)};
vo.prototype.JSC$13039_buildRequest=function(d,H,K){K.suggestions_query&&(d.input=K.suggestions_query)};var dR=function(){};
_.m(dR,e$);dR.prototype.getApiPaths=function(){return udB};
dR.prototype.getExtension=function(d){return _.M(d,jpN)};
dR.prototype.JSC$13039_buildRequest=function(d,H,K){K.comment_text!==void 0&&(d.commentText=K.comment_text);K.scheduled_publish_time_sec&&(d.scheduledPublishTimeSec=K.scheduled_publish_time_sec.toString());d.updateBackstagePostParams=H.updateBackstagePostParams};var H8=function(){};
_.m(H8,e$);H8.prototype.getApiPaths=function(){return bW};
H8.prototype.getExtension=function(d){return _.M(d,_.YM)};
H8.prototype.JSC$13039_buildRequest=function(d,H,K){K.formData&&(d.formData=K.formData);H.token?d.continuation=H.token:H.continuationTokenKey&&(K=_.dn().getState(),H=_.xL(K.entities,"continuationTokenEntity",H.continuationTokenKey))&&(d.continuation=String(H.continuationToken))};
var $Uj=function(){};
_.m($Uj,e$);_.G=$Uj.prototype;_.G.getApiPaths=function(){return bW};
_.G.getExtension=function(d){return _.M(d,_.Lm)};
_.G.isNavigationCommand=function(){return!0};
_.G.JSC$13046_getStoreKey=function(d){if((d=this.getExtension(d))&&d.browseId){var H={browseId:d.browseId};d.browseEndpointContextSupportedConfigs&&(H.browseEndpointContextSupportedConfigs=JSON.stringify(d.browseEndpointContextSupportedConfigs));d.params&&(H.params=d.params);d.query&&(H.query=d.query);return _.fO("browse",H)}};
_.G.JSC$13039_buildRequest=function(d,H,K){H.browseId&&(d.browseId=H.browseId);H.params&&(d.params=H.params);H.query&&(d.query=H.query);K.formData?d.formData=K.formData:H.formData&&(d.formData=H.formData);H.browseId==="FEsubscriptions"&&_.Lo().getFlag(155)&&(d.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");H.browseId==="SPaccount_playback"&&(K=_.Lo(),d.formData||(d.formData={}),d.formData.accountSettingsFormData={flagCaptionsDefaultOff:K.getFlag(65),flagAutoCaptionsDefaultOn:K.getFlag(66),
flagDisableInlinePreview:K.getFlag(186),flagAudioDescriptionDefaultOn:K.getFlag(198)});if(H.browseId==="FEwhat_to_watch"){K=_.Lo();var c=K.getFlag(196);K.getFlag(197)&&(d.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:c}}})}H.browseId==="FEwhat_to_watch"&&(H=_.Lo().getFlag(186),d.inlineSettingStatus=H?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.G.getRequestConfig=function(d,H){H=H===void 0?{}:H;var K={};if(d=this.JSC$13046_getStoreKey(d,H))K.storeStrategy={storeKey:d,disableCache:H.disableCache};_.h("web_log_browse_ticks_ks")||(K.requestTick="br_s",K.responseTick="br_r");return K};var $U=function(){};
_.m($U,e$);$U.prototype.getApiPaths=function(){return oX7};
$U.prototype.getExtension=function(d){return _.M(d,PIC)};
$U.prototype.JSC$13039_buildRequest=function(d,H,K){d.legacyYoutubeChannelUsername=K.legacyYouTubeChannelUsername||"";d.legacyYoutubeChannelPassword=K.legacyYouTubeChannelPassword||""};var Kr=function(){};
_.m(Kr,e$);Kr.prototype.getApiPaths=function(){return nxU};
Kr.prototype.getExtension=function(d){return _.M(d,gJ0)};
Kr.prototype.JSC$13039_buildRequest=function(d,H,K){K.recaptcha_response_token&&(d.recaptchaResponseToken=K.recaptcha_response_token);K.channel_id&&(d.channelId=K.channel_id)};var c8=function(){};
_.m(c8,e$);c8.prototype.getApiPaths=function(){return ITX};
c8.prototype.getExtension=function(d){return _.M(d,lSN)};
c8.prototype.JSC$13039_buildRequest=function(d,H,K){H.externalChannelId&&(d.externalChannelId=H.externalChannelId);K.handle&&(d.handleUpdate={handle:K.handle},H.handleEditSource&&(d.handleUpdate.handleEditSource=H.handleEditSource))};var pr=function(){};
_.m(pr,e$);pr.prototype.getApiPaths=function(){return z5d};
pr.prototype.getExtension=function(d){return _.M(d,JHA)};
pr.prototype.JSC$13039_buildRequest=function(d,H,K){H.request&&(d.channelId=H.request.channelId);var c;if(K==null?0:(c=K.uploadDefaults)==null?0:c.emojiReactionSet)d.uploadDefaultsRequest||(d.uploadDefaultsRequest={}),d.uploadDefaultsRequest.emojiReactionSet=K.uploadDefaults.emojiReactionSet};var gR=function(){};
_.m(gR,e$);gR.prototype.getApiPaths=function(){return sL3};
gR.prototype.getExtension=function(d){return _.M(d,iqX)};
gR.prototype.JSC$13039_buildRequest=function(d,H,K){H.externalChannelId&&(d.externalChannelId=H.externalChannelId);H.channelHandleEntityKey&&(d.channelHandleEntityKey=H.channelHandleEntityKey);H.handleEditSource&&(d.handleEditSource=H.handleEditSource);K.handle?d.handle=K.handle:K.name&&(d.name=K.name)};var i2=function(){};
_.m(i2,e$);i2.prototype.getApiPaths=function(){return l4l};
i2.prototype.getExtension=function(d){return _.M(d,fgB)};
i2.prototype.JSC$13039_buildRequest=function(d,H){H.actions?d.actions=H.actions:H.action&&(d.actions=[H.action])};var G2=function(){};
_.m(G2,e$);G2.prototype.getApiPaths=function(){return e3A};
G2.prototype.getExtension=function(d){return _.M(d,_.YM)};
G2.prototype.JSC$13039_buildRequest=function(d,H){H.token&&(d.continuation=H.token)};var oO=function(){};
_.m(oO,e$);oO.prototype.getApiPaths=function(){return tk0};
oO.prototype.getExtension=function(d){return _.M(d,_.YM)};
oO.prototype.JSC$13039_buildRequest=function(d,H){d.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";H.token&&(d.fetchCommentsParams={continuation:H.token})};var qI=function(){};
_.m(qI,e$);qI.prototype.getApiPaths=function(){return R33};
qI.prototype.getExtension=function(d){return _.M(d,DqC)};
qI.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;H.createReplyParams&&(d.createReplyParams=H.createReplyParams);H.commentText&&(d.commentText=_.jG(H.commentText));K.comment_text&&(d.commentText=K.comment_text);K.image_blob_id&&(d.imageAttachment={encryptedBlobId:K.image_blob_id});K.botguard_response&&(d.botguardResponse=K.botguard_response)};
_.H3.Object.defineProperties(qI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aO=function(){};
_.m(aO,e$);aO.prototype.getApiPaths=function(){return Vk3};
aO.prototype.getExtension=function(d){return _.M(d,_.NYd)};
aO.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;H.createCommentParams&&(d.createCommentParams=H.createCommentParams);H.commentText&&(d.commentText=_.jG(H.commentText));H.videoPositionMention&&(d.videoPositionMention=H.videoPositionMention);H.sources&&(d.sources=H.sources);K.comment_text&&(d.commentText=K.comment_text);K.attached_video_id?d.videoAttachment={videoId:K.attached_video_id}:K.poll_options?d.pollAttachment={choices:K.poll_options}:K.image_blob_id?d.imageAttachment=
{encryptedBlobId:K.image_blob_id}:K.shared_post_id&&(d.sharedPostAttachment={postId:K.shared_post_id});K.access_restrictions&&typeof K.access_restrictions==="number"&&(H=K.access_restrictions,d.accessRestrictions={restriction:H!==1&&H===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});K.botguard_response&&(d.botguardResponse=K.botguard_response)};
_.H3.Object.defineProperties(aO.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var l2=function(){};
_.m(l2,e$);l2.prototype.getApiPaths=function(){return rI0};
l2.prototype.getExtension=function(d){return _.M(d,jeM)};
l2.prototype.JSC$13039_buildRequest=function(d,H,K){H.commentText&&(d.replyText=_.jG(H.commentText));K.comment_text&&(d.replyText=K.comment_text);d.updateReplyParams=H.updateReplyParams};
_.H3.Object.defineProperties(l2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ej=function(){};
_.m(ej,e$);ej.prototype.getApiPaths=function(){return WHg};
ej.prototype.getExtension=function(d){return _.M(d,AsS)};
ej.prototype.JSC$13039_buildRequest=function(d,H,K){H.commentText&&(d.commentText=_.jG(H.commentText));K.comment_text&&(d.commentText=K.comment_text);d.updateCommentParams=H.updateCommentParams};
_.H3.Object.defineProperties(ej.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kU=function(){};
_.m(kU,e$);kU.prototype.getApiPaths=function(){return BjS};
kU.prototype.getExtension=function(d){return _.M(d,WUB)};
kU.prototype.JSC$13039_buildRequest=function(d,H){H.settings&&(d.settings=H.settings)};var xU=function(){};
_.m(xU,e$);xU.prototype.getApiPaths=function(){return XnC};
xU.prototype.getExtension=function(d){return _.M(d,GwS)};
xU.prototype.JSC$13039_buildRequest=function(d,H){H.channelCreationToken&&(d.channelCreationToken=H.channelCreationToken);H.source&&(d.source=H.source)};var nr=function(){};
_.m(nr,e$);nr.prototype.getApiPaths=function(){return CFB};
nr.prototype.getExtension=function(d){return _.M(d,aS6)};
nr.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;if(K.name&&(K.given_name||K.family_name))d=new _.m1("channel creation cannot set both GAIA and YouTube names",H),_.z5(d);else{if(H.zeroStepChannelCreationParams){if(!K.comment_text){d=new _.m1("zero_step_create_comment_params but no zero_step_texts",H);_.z5(d);return}d.zeroStepChannelCreationParams=H.zeroStepChannelCreationParams;d.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(d.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
K.comment_text,K.botguard_response&&(d.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=K.botguard_response))}d.channelCreationToken=H.channelCreationToken;K.given_name&&(d.givenName=K.given_name);K.family_name&&(d.familyName=K.family_name);H.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(d.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(K.name||K.handle||K.avatar_url||K.encryptedBlobId||K.isNameChanged!==void 0||K.isHandleChanged!==void 0||K.isDefaultProfilePhoto!==
void 0||K.obakeImageSource)d.overrideChannelCreationParams={},K.name&&(d.overrideChannelCreationParams.name=K.name),K.handle&&(d.overrideChannelCreationParams.handle=K.handle),K.avatar_url&&(d.overrideChannelCreationParams.avatarUrl=K.avatar_url),K.encryptedBlobId&&(d.overrideChannelCreationParams.blobEncryptionId=K.encryptedBlobId),K.enableIdentityForAllChannelCreationDialog&&(K.encryptedBlobId?d.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
K.isDefaultProfilePhoto!==void 0&&(d.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=K.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),K.isNameChanged!==void 0&&(d.overrideChannelCreationParams.identityForAllChannelCreationNameTag=K.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),K.isHandleChanged!==
void 0&&(d.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=K.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),K.obakeImageSource&&(d.overrideChannelCreationParams.obakeImageSourceType=K.obakeImageSource))}};var Cr=function(){};
_.m(Cr,e$);Cr.prototype.getApiPaths=function(d){return(d=this.getExtension(d))&&d.status==="DISLIKE"?PF7:d&&d.status==="INDIFFERENT"?aTd:vXl};
Cr.prototype.getExtension=function(d){return _.M(d,_.Za)};
Cr.prototype.JSC$13039_buildRequest=function(d,H){H.target&&(d.target=H.target);if(H=this.getParams(H))d.params=H};
Cr.prototype.getParams=function(d){switch(d==null?void 0:d.status){case "DISLIKE":return d.dislikeParams;case "INDIFFERENT":return d.removeLikeParams;default:return d==null?void 0:d.likeParams}};var RO=function(){};
_.m(RO,e$);RO.prototype.getApiPaths=function(){return h5l};
RO.prototype.getExtension=function(d){return _.M(d,cJB)};
RO.prototype.JSC$13039_buildRequest=function(d,H){H.settingItemId&&(d.settingItemId=H.settingItemId);H.stringValue!=null&&H.stringValue!==void 0?d.newValue={stringValue:H.stringValue}:H.intValue?d.newValue={intValue:H.intValue}:H.boolValue!==null&&H.boolValue!==void 0?d.newValue={boolValue:H.boolValue}:(d=new _.m1("Unknown value type for SetSettingEndpoint.",H),_.z5(d))};var V3=function(){};
_.m(V3,e$);V3.prototype.getApiPaths=function(){return mi0};
V3.prototype.getExtension=function(d){return _.M(d,htN)||void 0};
V3.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;H.channelIds&&(d.channelIds=H.channelIds);H.siloName&&(d.siloName=H.siloName);H.params&&(d.params=H.params);K.botguardResponse&&(d.botguardResponse=K.botguardResponse);K.feature&&(d.clientFeature=K.feature)};
_.H3.Object.defineProperties(V3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var UB=function(){};
_.m(UB,e$);UB.prototype.getApiPaths=function(){return P30};
UB.prototype.getExtension=function(d){return _.M(d,pxU)||void 0};
UB.prototype.JSC$13039_buildRequest=function(d,H){H.channelIds&&(d.channelIds=H.channelIds);H.siloName&&(d.siloName=H.siloName);H.params&&(d.params=H.params)};
_.H3.Object.defineProperties(UB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hp=function(d){this.shareClientParamsProvider=d};
_.m(hp,e$);hp.prototype.getApiPaths=function(){return yKE};
hp.prototype.getExtension=function(d){return _.M(d,XZM)||_.M(d,_.JQ0)||_.M(d,zeM)};
hp.prototype.JSC$13039_buildRequest=function(d,H){H.serializedShareEntity&&(d.serializedSharedEntity=H.serializedShareEntity);if(H.clientParamIdentifier){var K;if((K=this.shareClientParamsProvider)==null?0:K.clientParams.has(H.clientParamIdentifier)){K=this.shareClientParamsProvider;H=H.clientParamIdentifier;var c=K.clientParams.get(H);c&&K.clientParams.delete(H);d.clientParams=c}}};
hp[fG]=[i27];var Lr=function(){};
_.m(Lr,e$);Lr.prototype.getApiPaths=function(){return gXS};
Lr.prototype.getExtension=function(d){return _.M(d,FCU)};
Lr.prototype.JSC$13039_buildRequest=function(d,H){H.params&&(d.params=H.params)};var MI=function(){};
_.m(MI,e$);MI.prototype.getApiPaths=function(){return uZ3};
MI.prototype.getExtension=function(d){return _.M(d,XQM)};
MI.prototype.JSC$13039_buildRequest=function(d,H){H.dismissal&&(d.items=[H.dismissal])};
_.H3.Object.defineProperties(MI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mo=function(){};
_.m(mo,e$);mo.prototype.getApiPaths=function(){return AoX};
mo.prototype.getExtension=function(d){return _.M(d,_.Ww)||void 0};
mo.prototype.JSC$13039_buildRequest=function(d,H,K){d.feedbackTokens=[];H.feedbackToken&&d.feedbackTokens.push(H.feedbackToken);if(H=H.cpn||K.cpn)d.feedbackContext={cpn:H};d.isFeedbackTokenUnencrypted=!!K.is_feedback_token_unencrypted;d.shouldMerge=!1;K.extra_feedback_tokens&&(d.shouldMerge=!0,d.feedbackTokens=d.feedbackTokens.concat(K.extra_feedback_tokens))};
_.H3.Object.defineProperties(mo.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var wR=function(){};
_.m(wR,e$);wR.prototype.getApiPaths=function(){return AoX};
wR.prototype.getExtension=function(d){return _.M(d,_.no)};
wR.prototype.JSC$13039_buildRequest=function(d,H,K){K.feedback_tokens&&(d.feedbackTokens=K.feedback_tokens,d.shouldMerge=!0)};
_.H3.Object.defineProperties(wR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var P8=function(){};
_.m(P8,e$);P8.prototype.getApiPaths=function(){return AoX};
P8.prototype.getExtension=function(d){return _.M(d,fWX)};
P8.prototype.JSC$13039_buildRequest=function(d,H){H.undoToken&&(d.feedbackTokens=[H.undoToken]);H.isUndoTokenUnencrypted&&(d.isFeedbackTokenUnencrypted=H.isUndoTokenUnencrypted)};
_.H3.Object.defineProperties(P8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var u2=function(){};
_.m(u2,e$);u2.prototype.getApiPaths=function(){return FH3};
u2.prototype.getExtension=function(d){return _.M(d,WC0)};
u2.prototype.JSC$13039_buildRequest=function(d,H){H.nextEndpoint&&_.M(H.nextEndpoint,_.yj)?d.nextEndpoint={urlEndpoint:_.M(H.nextEndpoint,_.yj)}:H.nextEndpoint&&_.M(H.nextEndpoint,_.AP)&&(d.nextEndpoint={watchEndpoint:_.M(H.nextEndpoint,_.AP)});H.setRacy&&(d.setRacy=H.setRacy);H.setControvercy&&(d.setControvercy=H.setControvercy)};var IO=function(d){this.JSC$17788_storeWithEntities=d};
_.m(IO,e$);IO.prototype.getApiPaths=function(){return roA};
IO.prototype.getExtension=function(d){return _.M(d,Hbg)};
IO.prototype.JSC$13039_buildRequest=function(d,H){H.flowId&&(d.flowId=H.flowId);H.targetId&&(d.targetId=H.targetId);H.continuation&&(d.continuation=H.continuation);var K=H.flowStateEntityKey;if(H.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&K&&this.JSC$17788_storeWithEntities){var c;if(H=(c=this.JSC$17788_storeWithEntities.getState())==null?void 0:c.entities)if(c=_.a6(K).entityType,c=_.xL(H,c,K))d.flowState=c,d.flowStateEntityKey=K}};
_.H3.Object.defineProperties(IO.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
IO[fG]=[$8];var Kgg=function(){};
_.m(Kgg,e$);_.G=Kgg.prototype;_.G.getApiPaths=function(){return f4d};
_.G.JSC$13046_getStoreKey=function(){return _.fO("guide")};
_.G.getRequestConfig=function(){var d=this.JSC$13046_getStoreKey(),H;d&&(H={storeStrategy:{storeKey:d}});return H};
_.G.isNavigationCommand=function(){return!0};
_.G.getExtension=function(d){return _.M(d,_.no)};
_.G.JSC$13039_buildRequest=function(d){d.fetchLiveState=!0};var rR=function(){};
_.m(rR,e$);rR.prototype.getApiPaths=function(){return qOU};
rR.prototype.getExtension=function(d){return _.M(d,E43)};
rR.prototype.JSC$13039_buildRequest=function(){};var W8=function(){};
_.m(W8,e$);W8.prototype.getApiPaths=function(){return a4l};
W8.prototype.getExtension=function(d){return _.M(d,ysM)};
W8.prototype.JSC$13039_buildRequest=function(){};var B8=function(){};
_.m(B8,e$);B8.prototype.getApiPaths=function(){return pnM};
B8.prototype.getExtension=function(d){return _.M(d,_.YM)};
B8.prototype.JSC$13039_buildRequest=function(d,H){H.token&&(d.continuation=H.token);var K,c;d==null||(K=d.context)==null||(c=K.user)==null||delete c.onBehalfOfUser};
B8.prototype.getRequestConfig=function(d){var H={},K;if(((K=this.getExtension(d))==null?void 0:K.sessionIndex)!==void 0){var c;H={authStrategy:{sessionIndex:(c=this.getExtension(d))==null?void 0:c.sessionIndex}}}return H};var z2=function(){};
_.m(z2,e$);z2.prototype.JSC$13039_getRequest=function(d){var H=this.getExtension(d),K=d="";if(H==null?0:H.popup)d="true";if(H==null?0:H.disableSignout)K="true";H={};return{input:"/getAccountSwitcherEndpoint",requestShell:Dc("/getAccountSwitcherEndpoint","GET",(H["X-YouTube-Delegation-Context"]=_.Fm("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),H["X-YouTube-Account-Switcher-Popup"]=d,H["X-YouTube-Account-Switcher-Disable-Signout"]=K,H)),innerTubeRequest:{}}};
z2.prototype.getApiPaths=function(){return[]};
z2.prototype.getExtension=function(d){return _.M(d,_.W$4)};
z2.prototype.JSC$13039_buildRequest=function(){};var Xf=function(){};
_.m(Xf,e$);Xf.prototype.JSC$13039_getRequest=function(d){var H="/cross_account_channel_transfer";(d=this.getExtension(d))&&(H=RTM(H,{target_session:d.targetSessionIndex,source_rapt:d.sourceRapt,rapt:d.targetRapt}));return{input:H,requestShell:Dc(H,"GET"),innerTubeRequest:{}}};
Xf.prototype.getApiPaths=function(){return[]};
Xf.prototype.getExtension=function(d){return _.M(d,u2B)};
Xf.prototype.JSC$13039_buildRequest=function(){};var Jp=function(){};
_.m(Jp,e$);Jp.prototype.getApiPaths=function(){return W7S};
Jp.prototype.isNavigationCommand=function(){return!0};
Jp.prototype.getExtension=function(d){return _.M(d,_.no)};
Jp.prototype.JSC$13039_buildRequest=function(d){var H=_.Lo().get("gsml","");H&&(d.safetyModeLockerObfuscatedGaiaId=H);d.userInterfaceTheme=_.B5(!0);_.ze()?d.deviceTheme="DEVICE_THEME_SELECTED":_.ITF()?d.deviceTheme="DEVICE_THEME_SUPPORTED":d.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var sB=function(){};
_.m(sB,e$);sB.prototype.getApiPaths=function(){return pnM};
sB.prototype.getExtension=function(d){return _.M(d,Ie3)};
sB.prototype.JSC$13039_buildRequest=function(d,H){if(H&&H.requestType&&(d.requestType=H.requestType,H.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||H.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var K=H.nextUrl;K&&(_.Uof(K)||df(K))&&(d.nextNavendpoint={urlEndpoint:{url:K}})}H&&H.channelSwitcherQuery&&(d.channelSwitcherQuery=H.channelSwitcherQuery);H&&H.triggerChannelCreation&&(d.triggerChannelCreation=H.triggerChannelCreation);var c;if(H==null?0:(c=H.contentOwnerConfig)==
null?0:c.externalContentOwnerId)d.contentOwnerConfig=H.contentOwnerConfig;d.callCircumstance=H&&H.requestType&&H.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var p,g;H=d==null?void 0:(p=d.context)==null?void 0:(g=p.user)==null?void 0:g.onBehalfOfUser;if(H!==void 0){d.obfuscatedSelectedGaiaId=H;var a,e;d==null||(a=d.context)==null||(e=a.user)==null||delete e.onBehalfOfUser}var k,C;if(p=d==null?void 0:(k=d.context)==null?void 0:(C=k.user)==null?
void 0:C.serializedDelegationContext)d.selectedSerializedDelegationContext=p};var Ff=function(){};
_.m(Ff,e$);Ff.prototype.getApiPaths=function(){return ieU};
Ff.prototype.getExtension=function(d){return _.M(d,shB)};
Ff.prototype.JSC$13039_buildRequest=function(d,H){H.params&&(d.params=H.params)};var Zl=function(){};
_.m(Zl,e$);Zl.prototype.getApiPaths=function(){return nXC};
Zl.prototype.getExtension=function(d){return _.M(d,_.fhB)};
Zl.prototype.JSC$13039_buildRequest=function(d,H){if(H=H.createBroadcastRequest)d.useMasks=H.useMasks,d.broadcastType=H.broadcastType,d.broadcastSource=H.broadcastSource,d.broadcastMetadata=H.broadcastMetadata,d.broadcastMetadataMask=H.broadcastMetadataMask,d.videoMetadata=H.videoMetadata,d.videoMetadataMask=H.videoMetadataMask,d.liveChatSettingsUpdate=H.liveChatSettingsUpdate,d.liveChatSettingsUpdateMask=H.liveChatSettingsUpdateMask,d.cloneVideoId=H.cloneVideoId,d.cloneWithOverrides=H.cloneWithOverrides,
d.targetEntity=H.targetEntity,d.scheduledRedirectMetadata=H.scheduledRedirectMetadata};var T2=function(){};
_.m(T2,e$);T2.prototype.getApiPaths=function(){return UT3};
T2.prototype.getExtension=function(d){return _.M(d,Y4C)};
T2.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;H.params&&(d.params=H.params);K.questionText&&(d.questionText=K.questionText);K.optionText&&K.optionText.length>0&&(d.optionText=K.optionText)};var Q3=function(){};
_.m(Q3,e$);Q3.prototype.getApiPaths=function(){return Mk6};
Q3.prototype.getExtension=function(d){return _.M(d,QGB)};
Q3.prototype.JSC$13039_buildRequest=function(d,H){H.params&&(d.params=H.params)};var tp=function(){};
_.m(tp,e$);tp.prototype.getApiPaths=function(){return sxA};
tp.prototype.getExtension=function(d){return _.M(d,sGN)};
tp.prototype.JSC$13039_buildRequest=function(d,H){H.params&&(d.params=H.params)};var YU=function(){};
_.m(YU,e$);YU.prototype.getApiPaths=function(){return Ze3};
YU.prototype.getExtension=function(d){return _.M(d,Fa6)};
YU.prototype.JSC$13039_buildRequest=function(d,H,K){H.params&&(d.params=H.params);H.continuation&&(d.continuation=H.continuation);K.currentPlayerState&&K.currentPlayerState.playerOffsetMs&&(d.currentPlayerState={playerOffsetMs:K.currentPlayerState.playerOffsetMs.toString()})};var OB=function(){};
_.m(OB,e$);OB.prototype.getApiPaths=function(){return T2A};
OB.prototype.getExtension=function(d){return _.M(d,J4A)};
OB.prototype.JSC$13039_buildRequest=function(d,H,K){H.params&&(d.params=H.params);K.continuation&&(d.continuation=K.continuation);"hidden"in K&&(d.webClientInfo={isDocumentHidden:K.hidden});K.isInvalidationTimeoutRequest&&(d.isInvalidationTimeoutRequest=K.isInvalidationTimeoutRequest);K.invalidationPayload&&(H=Xqd(_.fF(Hb(K.invalidationPayload))),d.invalidationPayloadLastPublishAtUsec=WG(H,2));K.reloadActionPanel&&(d.reloadActionPanel=K.reloadActionPanel);K.fullReload&&(d.fullReload=K.fullReload);
K.currentPlayerState&&(d.currentPlayerState=K.currentPlayerState)};var Sj=function(){};
_.m(Sj,e$);Sj.prototype.getApiPaths=function(){return diS};
Sj.prototype.getExtension=function(d){return _.M(d,tqX)};
Sj.prototype.JSC$13039_buildRequest=function(d,H){d.params=H.params};var EB=function(){};
_.m(EB,e$);EB.prototype.getApiPaths=function(){return F7U};
EB.prototype.getExtension=function(d){return _.M(d,jh6)};
EB.prototype.JSC$13039_buildRequest=function(d,H){H.params&&(d.params=H.params)};var y3=function(){};
_.m(y3,e$);y3.prototype.getApiPaths=function(){return Qx6};
y3.prototype.getExtension=function(d){return _.M(d,vZ6)};
y3.prototype.JSC$13039_buildRequest=function(d,H){H.params&&(d.params=H.params)};var b2=function(){};
_.m(b2,e$);b2.prototype.getApiPaths=function(){return H_S};
b2.prototype.getExtension=function(d){return _.M(d,Ob0)};
b2.prototype.JSC$13039_buildRequest=function(d,H){H.params&&(d.params=H.params)};var NI=function(){};
_.m(NI,e$);NI.prototype.getApiPaths=function(){return KHg};
NI.prototype.getExtension=function(d){return _.M(d,S4C)};
NI.prototype.JSC$13039_buildRequest=function(d,H){H.params&&(d.params=H.params)};var Dl=function(){};
_.m(Dl,e$);Dl.prototype.getApiPaths=function(){return lTl};
Dl.prototype.getExtension=function(d){return _.M(d,Tid)};
Dl.prototype.JSC$13039_buildRequest=function(d,H){H.params&&(d.params=H.params)};var c7=function(){};
_.m(c7,e$);c7.prototype.getApiPaths=function(){return V9N};
c7.prototype.getExtension=function(d){return _.M(d,_.EF3)};
c7.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;H.params&&(d.params=H.params);K.client_message_id&&(d.clientMessageId=K.client_message_id);K.recaptcha_token&&(d.recaptchaToken=K.recaptcha_token);K.rich_message&&K.rich_message.text_segments?(H=K.rich_message.text_segments.map(function(c){var p={};c.text&&(p.text=c.text);c.emoji_id&&(p.emojiId=c.emoji_id);return p}),d.richMessage={textSegments:H}):K.message&&(d.message=K.message);
K.currentPlayerState&&(d.currentPlayerState=K.currentPlayerState)};var p9=function(){};
_.m(p9,e$);p9.prototype.getApiPaths=function(){return Ui3};
p9.prototype.getExtension=function(d){return _.M(d,y4d)};
p9.prototype.JSC$13039_buildRequest=function(d,H){H.params&&(d.params=H.params)};var gG=function(){};
_.m(gG,e$);gG.prototype.getApiPaths=function(){return w6X};
gG.prototype.getExtension=function(d){return _.M(d,Npl)};
gG.prototype.JSC$13039_buildRequest=function(d,H,K){H.isUserInitiated&&(d.isUserInitiated=H.isUserInitiated);H.initiationSource&&(d.initiationSource=H.initiationSource);K.locationInfo&&(d.context.client.locationInfo=K.locationInfo)};var iH=function(){};
_.m(iH,e$);iH.prototype.getApiPaths=function(){return $iM};
iH.prototype.getExtension=function(d){return _.M(d,AgC)};
iH.prototype.JSC$13039_buildRequest=function(d,H,K){H.metadataUpdateRequest&&(H=H.metadataUpdateRequest,d.encryptedVideoId=H.encryptedVideoId,H.liveChat&&(H=H.liveChat,d.liveChat||(d.liveChat={}),H.performAsExternalChannelId&&(d.liveChat.performAsExternalChannelId=H.performAsExternalChannelId),H.source&&(d.liveChat.source=H.source)));var c;if(K==null?0:(c=K.liveChat)==null?0:c.liveChatSettings)d.liveChat||(d.liveChat={}),K=K.liveChat.liveChatSettings,d.liveChat.newLiveChatSettings=K,d.liveChat.newLiveChatSettingsMask||
(d.liveChat.newLiveChatSettingsMask={}),K.emojiReactionSet&&(d.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var G7=function(){};
_.m(G7,e$);G7.prototype.getApiPaths=function(){return JI3};
G7.prototype.getExtension=function(d){return _.M(d,_.gR3)};
G7.prototype.JSC$13039_buildRequest=function(d,H,K){K.continuation?d.continuation=K.continuation:H.videoId&&(d.videoId=H.videoId);K.clientParams&&(d.clientParams=K.clientParams)};var ow=function(){};
_.m(ow,e$);ow.prototype.getApiPaths=function(){return tk0};
ow.prototype.getExtension=function(d){return _.M(d,_.Js)};
ow.prototype.JSC$13039_buildRequest=function(d,H){d.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";d.fetchCommentsParams={};H.videoId&&(d.fetchCommentsParams.encryptedVideoId=H.videoId);H.postId&&(d.fetchCommentsParams.postId=H.postId);H.externalChannelId&&(d.fetchCommentsParams.externalChannelId=H.externalChannelId);H.linkedCommentId&&(d.fetchCommentsParams.linkedCommentId=H.linkedCommentId);(0,_.rs.isEmpty)(d.fetchCommentsParams)&&delete d.fetchCommentsParams};var qh=function(){};
_.m(qh,e$);qh.prototype.getApiPaths=function(){return bW};
qh.prototype.JSC$13039_buildRequest=function(d){d.browseId="FEnotifications_inbox"};
qh.prototype.getExtension=function(d){return _.M(d,_.no)};var aw=function(){};
_.m(aw,e$);aw.prototype.getApiPaths=function(){return tk0};
aw.prototype.JSC$13039_buildRequest=function(d,H){H.signal==="GET_NOTIFICATIONS_MENU"&&(d.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");H.ctoken&&(d.ctoken=H.ctoken)};
var cNG=function(){};
_.m(cNG,aw);cNG.prototype.getExtension=function(d){return _.M(d,_.no)};
var pBg=function(){};
_.m(pBg,aw);pBg.prototype.getExtension=function(d){return _.M(d,uE3)};var lH=function(){};
_.m(lH,e$);lH.prototype.getApiPaths=function(){return beA};
lH.prototype.getExtension=function(d){return _.M(d,_.no)};
lH.prototype.JSC$13039_buildRequest=function(){};var eU=function(){};
_.m(eU,e$);eU.prototype.getApiPaths=function(){return cIl};
eU.prototype.getExtension=function(d){return _.M(d,HUN)||void 0};
eU.prototype.JSC$13039_buildRequest=function(d,H){H.params&&(d.params=H.params);H.secondaryParams&&(d.secondaryParams=H.secondaryParams)};var k$=function(){};
_.m(k$,e$);k$.prototype.getApiPaths=function(){return p66};
k$.prototype.getExtension=function(d){return _.M(d,Fmg)};
k$.prototype.JSC$13039_buildRequest=function(d,H){H.undo&&(d.undo=H.undo);H.serializedOptOut&&(d.serializedOptOut=H.serializedOptOut);H.serializedRecordInteractionsRequest&&(d.serializedRecordInteractionsRequest=H.serializedRecordInteractionsRequest)};var x$=function(){};
_.m(x$,e$);x$.prototype.getApiPaths=function(){return Gr0};
x$.prototype.getExtension=function(d){return _.M(d,ZNS)};
x$.prototype.JSC$13039_buildRequest=function(d,H){H.serializedInteractionsRequest&&(d.serializedRecordNotificationInteractionsRequest=H.serializedInteractionsRequest)};var n9=function(){};
_.m(n9,e$);n9.prototype.getApiPaths=function(){return bLi};
n9.prototype.getExtension=function(d){return _.M(d,TGM)};
n9.prototype.JSC$13039_buildRequest=function(d,H,K){H=H===void 0?{}:H;K=K===void 0?{}:K;H.videoId?d.videoId=H.videoId:H.playlistId&&(d.playlistId=H.playlistId);var c,p=(c=H.offlineWebClientEligibility)!=null?c:K.offlineWebClientEligibility;p&&(d.offlineWebClientEligibility=p);var g;if(c=(g=H.preferredFormatType)!=null?g:K.preferredFormatType)d.preferredFormatType=c;var a;if(g=(a=H.lastOfflineQualitySettingsSavedMs)!=null?a:K.lastOfflineQualitySettingsSavedMs)d.lastOfflineQualitySettingsSavedMs=g;
H.params&&(d.params=H.params)};var C9=function(){};
_.m(C9,e$);C9.prototype.getApiPaths=function(){return dI};
C9.prototype.getExtension=function(d){return _.M(d,_.YM)};
C9.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;H.token&&(d.continuation=H.token);K.formData&&(d.formData=K.formData)};var Rw=function(){};
_.m(Rw,e$);Rw.prototype.getApiPaths=function(){return dI};
Rw.prototype.getExtension=function(d){return _.M(d,Eq7)};
Rw.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;d.continuation=K.continuation};var Vs=function(){};
_.m(Vs,e$);Vs.prototype.getApiPaths=function(){return dI};
Vs.prototype.getExtension=function(d){return _.M(d,_.r5)};
Vs.prototype.JSC$13039_buildRequest=function(d,H){var K,c=H.panelIdentifier||((K=H.identifier)==null?void 0:K.tag);c&&(d.panelId=c);var p;if((p=H.globalConfiguration)==null?0:p.params){var g;d.params=(g=H.globalConfiguration)==null?void 0:g.params}};
_.H3.Object.defineProperties(Vs.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var UF=function(){};
_.m(UF,e$);UF.prototype.getApiPaths=function(){return dI};
UF.prototype.getExtension=function(d){return _.M(d,mwA)};
UF.prototype.JSC$13039_buildRequest=function(d,H){H.panelLoadingStrategy&&yzL(d,H.panelLoadingStrategy)};var hU=function(){};
_.m(hU,e$);hU.prototype.getApiPaths=function(){return dI};
hU.prototype.getExtension=function(d){return _.M(d,DA0)};
hU.prototype.JSC$13039_buildRequest=function(d,H){H.loadingStrategy&&yzL(d,H.loadingStrategy)};var L9=function(){};
_.m(L9,e$);L9.prototype.getApiPaths=function(){return dI};
L9.prototype.getExtension=function(d){return _.M(d,_.u8)};
L9.prototype.JSC$13039_buildRequest=function(d,H){H.panelLoadingStrategy&&yzL(d,H.panelLoadingStrategy)};var Mh=function(){};
_.m(Mh,e$);Mh.prototype.getApiPaths=function(){return dI};
Mh.prototype.getExtension=function(d){return _.M(d,fvN)};
Mh.prototype.JSC$13039_buildRequest=function(d,H){var K,c=(K=H.contentSourcePanelIdentifier)==null?void 0:K.tag;c&&(d.panelId=c);var p;if((p=H.globalConfiguration)==null?0:p.params){var g;d.params=(g=H.globalConfiguration)==null?void 0:g.params}};var m$=function(){};
_.m(m$,e$);m$.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
m$.prototype.getExtension=function(d){return _.M(d,AQN)};
m$.prototype.JSC$13039_buildRequest=function(d,H){H.params&&(d.params=H.params)};var wG=function(){};
_.m(wG,e$);wG.prototype.getApiPaths=function(){return X66};
wG.prototype.getExtension=function(d){return _.M(d,dqX)};
wG.prototype.JSC$13039_buildRequest=function(d,H){H.externalChannelId&&(d.externalChannelId=H.externalChannelId);H.superChatAction&&(d.superChatAction=H.superChatAction);H.superStickersAction&&(d.superStickersAction=H.superStickersAction)};var P7=function(){};
_.m(P7,e$);P7.prototype.getApiPaths=function(){return B2l};
P7.prototype.getExtension=function(d){return _.M(d,SV0)||_.M(d,tUM)};
P7.prototype.JSC$13039_buildRequest=function(d,H){H.videoIds?d.videoIds=H.videoIds:H.videoId&&(d.videoIds=[H.videoId]);H.playlistId&&(d.playlistId=H.playlistId);H.params&&(d.params=H.params);d.excludeWatchLater=!1};var uH=function(){};
_.m(uH,e$);uH.prototype.getApiPaths=function(){return h3l};
uH.prototype.getExtension=function(d){return _.M(d,_.Y4)};
uH.prototype.JSC$13039_buildRequest=function(d,H,K){K.create_playlist_title?d.title=K.create_playlist_title:H.title&&(d.title=H.title);if(K.create_playlist_privacy_status&&typeof K.create_playlist_privacy_status==="number"){a:{var c=K.create_playlist_privacy_status;if(c!==0){if(c===1){c="PUBLIC";break a}if(c===2){c="UNLISTED";break a}}c="PRIVATE"}d.privacyStatus=c}else H.privacyStatus&&(d.privacyStatus=H.privacyStatus);K.create_playlist_description&&(d.description=K.create_playlist_description);H.videoIds&&
(d.videoIds=H.videoIds);H.params&&(d.params=H.params);H.sourcePlaylistId&&(d.sourcePlaylistId=H.sourcePlaylistId)};var Iw=function(){};
_.m(Iw,e$);Iw.prototype.getApiPaths=function(){return mTC};
Iw.prototype.getExtension=function(d){return _.M(d,v4M)};
Iw.prototype.JSC$13039_buildRequest=function(d,H){d.playlistId=H.playlistId};var rG=function(){};
_.m(rG,e$);rG.prototype.getApiPaths=function(){return YOM};
rG.prototype.getExtension=function(d){return _.M(d,Wmg)};
rG.prototype.JSC$13039_buildRequest=function(d,H){H.playlistId&&(d.playlistId=H.playlistId);H.params&&(d.params=H.params)};var W7=function(){};
_.m(W7,e$);W7.prototype.getApiPaths=function(){return i_3};
W7.prototype.getExtension=function(d){return _.M(d,_.sV)||void 0};
W7.prototype.JSC$13039_buildRequest=function(d,H){H.actions&&(d.actions=H.actions);H.params&&(d.params=H.params);H.playlistId&&(d.playlistId=H.playlistId)};var B7=function(){};
_.m(B7,e$);_.G=B7.prototype;_.G.getApiPaths=function(){return ox7};
_.G.getExtension=function(d){return _.M(d,_.P5)};
_.G.JSC$13039_buildRequest=function(d,H){H.videoId&&(d.playerRequest={videoId:H.videoId},H.playerParams&&(d.playerRequest.params=H.playerParams),H.racyCheckOk&&(d.playerRequest.racyCheckOk=!!H.racyCheckOk),H.contentCheckOk&&(d.playerRequest.contentCheckOk=!!H.contentCheckOk));H.params&&(d.params=H.params);H.inputType&&(d.inputType=H.inputType);d.disablePlayerResponse=!0};
_.G.getRequestConfig=function(d){var H;(d=this.JSC$13046_getStoreKey(d))&&(H={storeStrategy:{storeKey:d}});_.h("web_log_reels_ticks")&&(H=H||{},H.requestTick="r_wrs",H.responseTick="r_wrr");return H};
_.G.JSC$13046_getStoreKey=function(d){d=this.getExtension(d);if(_.h("shorts_controller_retrieve_seedless_sequence_v2")){if((d==null?void 0:d.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.fO("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.h("web_shorts_prefetch_service_enabled")&&d!=null&&d.videoId){var H={videoId:d.videoId};d.params&&(H.params=d.params);return _.fO("reel_item_watch",H)}};var z7=function(){};
_.m(z7,e$);_.G=z7.prototype;_.G.getApiPaths=function(){return qt3};
_.G.getExtension=function(d){return _.M(d,_.P5)};
_.G.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;d.sequenceParams=H.sequenceParams;var c;((c=K)==null?0:c.contentPlaybackContext)&&_.h("web_shorts_prefetch_service_enabled")&&(d.playbackContext={contentPlaybackContext:K.contentPlaybackContext})};
_.G.JSC$13046_getStoreKey=function(d){if(_.h("web_enable_delay_shorts_sequence_call")||_.h("shorts_controller_retrieve_seedless_sequence_v2"))if(d=this.getExtension(d),d==null?0:d.sequenceParams)return _.fO("reel_watch_sequence",{sequenceParams:d.sequenceParams})};
_.G.getRequestConfig=function(d){d=this.JSC$13046_getStoreKey(d);var H;d&&(H={storeStrategy:{storeKey:d}});_.h("reel_watch_sequence_request_log_ticks")&&(H=H||{},H.requestTick="r_wsrs",H.responseTick="r_wsrr",H.processorTick="r_wsrp");return H};
var Xo=function(){};
_.m(Xo,e$);Xo.prototype.getApiPaths=function(){return qt3};
Xo.prototype.getExtension=function(d){return _.M(d,_.YM)};
Xo.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;H.token&&(d.continuation=H.token);var c;((c=K)==null?0:c.contentPlaybackContext)&&_.h("web_shorts_prefetch_service_enabled")&&(d.playbackContext={contentPlaybackContext:K.contentPlaybackContext})};
Xo.prototype.getRequestConfig=function(d){d=this.JSC$13046_getStoreKey(d);var H;d&&(H={storeStrategy:{storeKey:d}});_.h("reel_watch_sequence_request_log_ticks")&&(H=H||{},H.requestTick="r_wsrs",H.responseTick="r_wsrr",H.processorTick="r_wsrp");return H};var JU=function(){};
_.m(JU,e$);JU.prototype.getApiPaths=function(){return I4g};
JU.prototype.getExtension=function(d){return _.M(d,_.dY6)};
JU.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;H.flagAction&&(d.action=H.flagAction);H.flagRequestType&&(d.flagRequestType=H.flagRequestType);H.additionalDetailCheckboxChecked&&(d.additionalDetailCheckboxChecked=H.additionalDetailCheckboxChecked);H.legalCheckboxChecked&&(d.legalCheckboxChecked=H.legalCheckboxChecked);H={};K.flag_issue_type!==void 0&&(H.issue=K.flag_issue_type);K.flag_affiliation!==void 0&&(H.affiliation=K.flag_affiliation);K.flag_full_name&&(H.fullName=K.flag_full_name);
Object.keys(H).length&&(d.legalReportDetails=H);if(K.flag_description||K.text)d.userComments=K.flag_description||K.text;H={};K.minutes!==void 0&&K.seconds!==void 0&&(H.minutes=K.minutes,H.seconds=K.seconds);K.vss_id&&(H.vssId=K.vss_id);Object.keys(H).length&&(d.videoReportDetails=H);H={};K.video_ids&&(H.videoIds=K.video_ids);K.impersonated_channel_url&&(H.impersonatedChannelUrl=K.impersonated_channel_url);Object.keys(H).length&&(d.channelAbuseReportDetails=H)};
_.H3.Object.defineProperties(JU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var sF=function(){};
_.m(sF,e$);sF.prototype.getApiPaths=function(){return Jo0};
sF.prototype.getExtension=function(d){return _.M(d,wqM)};
sF.prototype.JSC$13039_buildRequest=function(d,H){H.blockedForKidsContent&&(d.blockedForKidsContent=H.blockedForKidsContent)};var Fo=function(){};
_.m(Fo,e$);Fo.prototype.getApiPaths=function(){return e5C};
Fo.prototype.getExtension=function(d){return _.M(d,Qwf)};
Fo.prototype.JSC$13039_buildRequest=function(d,H,K){d.params=H.params;K.impersonated_channel_url&&(d.impersonatedChannelUrl=K.impersonated_channel_url)};var Z1=function(){};
_.m(Z1,e$);Z1.prototype.getApiPaths=function(){return jxg};
Z1.prototype.getExtension=function(d){return _.M(d,_.PJ6)};
Z1.prototype.JSC$13039_buildRequest=function(d,H){H.items&&(d.items=H.items);H.kidGaiaId&&(d.kidGaiaId=H.kidGaiaId)};var T7=function(){};
_.m(T7,e$);T7.prototype.getApiPaths=function(){return z3X};
T7.prototype.getExtension=function(d){return _.M(d,_.YVg)};
T7.prototype.JSC$13039_buildRequest=function(d,H){H.params&&(d.params=H.params);H.targetId&&(d.targetId=H.targetId)};var Qs=function(){};
_.m(Qs,e$);Qs.prototype.getApiPaths=function(){return C3A};
Qs.prototype.getExtension=function(d){return _.M(d,Ikd)};
Qs.prototype.JSC$13039_buildRequest=function(d,H){H.externalVideoId&&(d.externalVideoId=H.externalVideoId);H.query&&(d.query=H.query);H.sourceTimelines&&(d.sourceTimelines=H.sourceTimelines)};var tU=function(){};
_.m(tU,e$);tU.prototype.getApiPaths=function(){return R5l};
tU.prototype.getExtension=function(d){return _.M(d,_.YM)||void 0};
tU.prototype.JSC$13039_buildRequest=function(d,H){H.token&&(d.continuation=H.token)};
_.gdt=function(){};
_.m(_.gdt,e$);_.G=_.gdt.prototype;_.G.getApiPaths=function(){return R5l};
_.G.getExtension=function(d){return _.M(d,_.Mv)||void 0};
_.G.isNavigationCommand=function(){return!0};
_.G.JSC$13046_getStoreKey=function(d,H){H=H===void 0?{}:H;if(!H.disableCache&&(d=this.getExtension(d))&&d.query)return H={query:d.query},d.params&&(H.params=d.params),_.fO("search",H)};
_.G.JSC$13039_buildRequest=function(d,H,K){H.query&&(d.query=H.query);H.params&&(d.params=H.params);if(!_.h("web_forward_suggest_stats_killswitch")){var c=_.M(H,M00);c&&(d.suggestStats=c)}var p;!_.h("kevlar_searchbox_stats_killswitch")&&((p=K.tempData)==null?0:p.gs_l)&&!_.M(H,M00)&&(d.webSearchboxStatsUrl="/search?oq="+(K.tempData.oq||"")+"&gs_l="+K.tempData.gs_l);var g;if((g=K.tempData)==null?0:g.entityMid)H=d.suggestionSearchParams||{},H.entityMid=K.tempData.entityMid,d.suggestionSearchParams=H;
if(_.h("enable_desktop_vdcbg_components")||_.h("enable_inline_muted_playback_on_web_search"))K=_.Lo().getFlag(186),d.inlineSettingStatus=K?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.G.getRequestConfig=function(d,H){H=H===void 0?{}:H;d=this.JSC$13046_getStoreKey(d,H);var K;d&&(K={storeStrategy:{storeKey:d}});_.h("web_log_search_ticks_ks")||(K=K||{},K.requestTick="sr_s",K.responseTick="sr_r");return K};var Y$=function(){};
_.m(Y$,e$);Y$.prototype.getApiPaths=function(){return EX7};
Y$.prototype.getExtension=function(d){return _.M(d,aE3)};
Y$.prototype.JSC$13039_buildRequest=function(d,H){H.serializedGetSharingProviderDataParams&&(d.serializedGetSharingProviderDataParams=H.serializedGetSharingProviderDataParams)};var OF=function(){};
_.m(OF,e$);OF.prototype.getApiPaths=function(){return yoX};
OF.prototype.getExtension=function(d){return _.M(d,D30)};
OF.prototype.JSC$13039_buildRequest=function(d,H){H.endpoint&&(d.endpoint=H.endpoint);H.action&&(d.action=H.action)};var SU=function(){};
_.m(SU,e$);SU.prototype.getApiPaths=function(){return wnd};
SU.prototype.getExtension=function(d){return _.M(d,dwX)};
SU.prototype.JSC$13039_buildRequest=function(d,H){d.videoId=H.videoId;H.scheduledRedirectMetadataSourceVideoId&&(d.scheduledRedirectMetadata={sourceVideoId:H.scheduledRedirectMetadataSourceVideoId})};var EF=function(){};
_.m(EF,e$);EF.prototype.getApiPaths=function(){return LHA};
EF.prototype.getExtension=function(d){return _.M(d,_.vCg)};
EF.prototype.JSC$13039_buildRequest=function(d,H){d.params=H.params;d.correctionText=H.correctionText};var ys=function(){};
_.m(ys,e$);ys.prototype.getApiPaths=function(){return SCl};
ys.prototype.getExtension=function(d){return _.M(d,_.rv7)};
ys.prototype.JSC$13039_buildRequest=function(d,H){H.params&&(d.params=H.params);d.searchQuery=H.searchQuery;d.languageCode=H.languageCode;d.kind=H.kind;d.name=H.name;d.externalVideoId=H.externalVideoId};var bH=function(){};
_.m(bH,e$);bH.prototype.getApiPaths=function(){return TjC};
bH.prototype.getExtension=function(d){return _.M(d,eq0)};
bH.prototype.JSC$13039_buildRequest=function(d,H){H.params&&(d.params=H.params)};var Nh=function(d){this.JSC$18059_storeWithEntities=d};
_.m(Nh,e$);Nh.prototype.getApiPaths=function(){return kbX};
Nh.prototype.getExtension=function(d){return _.M(d,xZl)||_.M(d,Cq7)};
Nh.prototype.JSC$13039_buildRequest=function(d,H,K){K.client_data&&(d.clientData=K.client_data);if(H.commerceActionConfig){var c=H.commerceActionConfig;H=c.actionId;c=c.commerceActionParams;H&&(d.actionId=H);c&&(d.commerceActionParams=c)}else{var p=H.actionId,g=H.commerceActionParams;K=H.entityKeys;p&&(d.actionId=p);g&&(d.commerceActionParams=g);var a;H=(c=this.JSC$18059_storeWithEntities)==null?void 0:(a=c.getState())==null?void 0:a.entities;if(K&&H){c=[];a=_.q(K);for(K=a.next();!K.done;K=a.next())if(p=
K.value,K=_.a6(p).entityType,p=_.xL(H,K,p))g={},c.push((g[K]=p,g));d.entityMutationPayloads=c}}};
Nh.prototype.getRequestConfig=function(d){var H,K=(H=_.M(d,xZl))==null?void 0:H.requestSequenceType;if(K&&d.clickTrackingParams&&K!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:d.clickTrackingParams,sequenceType:K}}};
Nh[fG]=[$8];var D1=function(){};
_.m(D1,e$);D1.prototype.getApiPaths=function(){return QLN};
D1.prototype.getExtension=function(d){return _.M(d,_.smM)};
D1.prototype.JSC$13039_buildRequest=function(d,H){H.feedbackData&&(d.feedbackData=H.feedbackData);H.params&&(d.itemParams=H.params)};
_.H3.Object.defineProperties(D1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var f9=function(){};
_.m(f9,e$);f9.prototype.getApiPaths=function(){return t97};
f9.prototype.getExtension=function(d){return _.M(d,Fu6)};
f9.prototype.JSC$13039_buildRequest=function(d,H,K){K.payments_payload&&(d.paymentsPayload=K.payments_payload);K.offer_params&&(d.offerParams=K.offer_params);H.transactionParams&&(d.transactionParams=H.transactionParams)};var AU=function(){};
_.m(AU,e$);AU.prototype.getApiPaths=function(){return YtA};
AU.prototype.getExtension=function(d){return _.M(d,_.ZdA)};
AU.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;H.buybucketParams&&(d.buybucketData={params:H.buybucketParams},H.stickerParams?d.buybucketData.stickerParams=H.stickerParams:(K.rich_chat_message?d.buybucketData.richChatMessage=K.rich_chat_message:K.chat_message_text&&(d.buybucketData.chatMessageText=K.chat_message_text),K.purchase_price_micros&&(d.buybucketData.purchasePriceMicros=K.purchase_price_micros.toString())));H.donationAmountMicros&&(d.tipAmountMicros=H.donationAmountMicros,
H.tipParams&&(d.tipParams=H.tipParams));H.offerParams&&(d.offerParams=H.offerParams);H.productData&&(d.productData=H.productData);H.transactionParams&&(d.transactionParams=H.transactionParams)};var jU=function(){};
_.m(jU,e$);jU.prototype.getApiPaths=function(){return O_A};
jU.prototype.getExtension=function(d){return _.M(d,tPS)};
jU.prototype.JSC$13039_buildRequest=function(d,H){H.updateFopParams&&(d.updateFopParams=H.updateFopParams)};var v7=function(){};
_.m(v7,e$);v7.prototype.getApiPaths=function(){return St6};
v7.prototype.getExtension=function(d){return _.M(d,_.vI)};
v7.prototype.JSC$13039_buildRequest=function(d,H){H.couponCode&&(d.couponCode=H.couponCode);H.params&&(d.itemParams=H.params)};var dC=function(){};
_.m(dC,e$);dC.prototype.getApiPaths=function(){return ExN};
dC.prototype.getExtension=function(d){return _.M(d,_.nkA)};
dC.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;H.params&&(d.params=H.params);K.ctk&&(d.clientToken=K.ctk)};var HX=function(d){this.JSC$18094_storeWithEntities=d};
_.m(HX,e$);HX.prototype.getApiPaths=function(){return yIA};
HX.prototype.getExtension=function(d){return _.M(d,_.yi)};
HX.prototype.JSC$13039_buildRequest=function(d,H,K){K.purchase_price_micros&&(d.productData={pdgData:{purchasePriceMicros:K.purchase_price_micros.toString()}},K.rich_chat_message&&(d.productData.pdgData.richChatMessage=K.rich_chat_message),K.currency_code&&(d.productData.pdgData.currencyCode=K.currency_code));H.transactionParams&&(d.transactionParams=H.transactionParams);H.clientLocationContext&&(d.clientLocationContext=H.clientLocationContext);K.payments_payload&&(d.paymentsPayload=K.payments_payload);
K.funds_guarantee_callback_client_data&&(d.fundsGuaranteeCallbackClientData=K.funds_guarantee_callback_client_data);var c,p;K=(c=this.JSC$18094_storeWithEntities)==null?void 0:(p=c.getState())==null?void 0:p.entities;if(H.entityKeys&&K){c=[];H=_.q(H.entityKeys);for(p=H.next();!p.done;p=H.next()){var g=p.value;p=_.a6(g).entityType;if(g=_.xL(K,p,g)){var a={};c.push((a[p]=g,a))}}d.entityMutationPayloads=c}};
HX[fG]=[$8];var $P=function(){};
_.m($P,e$);$P.prototype.getApiPaths=function(){return b_C};
$P.prototype.getExtension=function(d){return _.M(d,TlN)};
$P.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;K.backend_analytics&&(d.serializedBackendAnalyticsEvent=K.backend_analytics);H.offerParams&&(d.offerParams=H.offerParams)};var KE=function(){};
_.m(KE,e$);KE.prototype.getApiPaths=function(){return St6};
KE.prototype.getExtension=function(d){return _.M(d,rrF)};
KE.prototype.JSC$13039_buildRequest=function(d,H){H.params&&(d.itemParams=H.params)};var cX=function(){};
_.m(cX,e$);cX.prototype.getApiPaths=function(){return NjX};
cX.prototype.getExtension=function(d){return _.M(d,_.Lu0)};
cX.prototype.JSC$13039_buildRequest=function(d,H,K){K.resume_time_ms&&(d.resumeTimeMs=K.resume_time_ms);H.pauseParams&&(d.pauseParams=H.pauseParams)};var pE=function(){};
_.m(pE,e$);pE.prototype.getApiPaths=function(){return DiM};
pE.prototype.getExtension=function(d){return _.M(d,_.Qm6)};
pE.prototype.JSC$13039_buildRequest=function(d,H,K){K=K===void 0?{}:K;K.c&&(d.redeemCode=K.c);K.rd&&(d.riskData=K.rd);K.ctk&&(d.clientToken=K.ctk)};var gC=function(){};
_.m(gC,e$);gC.prototype.getApiPaths=function(){return fTX};
gC.prototype.getExtension=function(d){return _.M(d,_.MP3)};
gC.prototype.JSC$13039_buildRequest=function(d,H){H.resumeParams&&(d.resumeParams=H.resumeParams)};var iK=function(d,H){this.clientName=d;this.defaultExpirationDelayMs=H};
iK.prototype.put=function(d,H){var K=this,c;return _.l(function(p){c=Object.assign({},H.data);c.key=d;c.clientName=K.clientName;c.expireTimestampMs===void 0&&(c.expireTimestampMs=(Math.round((0,_.$G)())+K.defaultExpirationDelayMs).toString());return p.return(K.putInternal(d,c))})};
iK[fG]=[sf,lDg];var iXb=function(){iK.apply(this,arguments);this.JSC$18124_responseStore=new Map};
_.m(iXb,iK);_.G=iXb.prototype;_.G.get=function(d){var H=this;return _.l(function(K){return K.return(n_(H,d))})};
_.G.putInternal=function(d,H){var K=this,c,p,g;return _.l(function(a){c=K.defaultExpirationDelayMs;H.expireTimestampMs&&(c=Number(H.expireTimestampMs)-Math.round((0,_.$G)()),p=_.iT("mweb_override_response_store_expiration_ms"),p>0&&p<c&&(c=p));g=setTimeout(function(){K.remove(d)},c);
K.JSC$18124_responseStore.set(d,{entryData:H,timer:g});_.VE(a)})};
_.G.remove=function(d){var H=this;return _.l(function(K){G3Z(H,d);_.VE(K)})};
_.G.removeAll=function(){var d=this;return _.l(function(H){d.JSC$18124_responseStore.forEach(function(K){clearTimeout(K.timer)});
d.JSC$18124_responseStore.clear();_.VE(H)})};
_.G.has=function(d){return!!this.JSC$18124_responseStore.get(d)};
_.G.getKeys=function(){return this.JSC$18124_responseStore.keys()};
var n_=function(d,H){if(d=d.JSC$18124_responseStore.get(H))return new _.xx(d.entryData)},G3Z=function(d,H){var K=d.JSC$18124_responseStore.get(H);
K&&(clearTimeout(K.timer),d.JSC$18124_responseStore.delete(H))};var bwE;var fuY=function(d,H,K){iK.call(this,d,H);this.token=K};
_.m(fuY,iK);_.G=fuY.prototype;_.G.get=function(d){var H=this,K,c;return _.l(function(p){return p.nextAddress==1?p.yield(DpL(H.token),2):p.nextAddress!=3?(K=p.yieldResult,p.yield(K.get("ResponseStore",[d,H.clientName]),3)):(c=p.yieldResult)?p.return(new _.xx(c)):p.return(void 0)})};
_.G.putInternal=function(d,H){var K=this,c;return _.l(function(p){if(p.nextAddress==1)return p.yield(DpL(K.token),2);c=p.yieldResult;return p.yield(c.put("ResponseStore",H),0)})};
_.G.remove=function(d){var H=this,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(DpL(H.token),2);K=c.yieldResult;return c.return(K.delete("ResponseStore",[d,H.clientName]))})};
_.G.removeAll=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1)return K.yield(DpL(d.token),2);H=K.yieldResult;return K.yield(kNl(H,IDBKeyRange.only(d.clientName)),0)})};
_.G.has=function(){throw Error("Xi");};_.GE=new _.Av("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var odv=function(d){var H;this.stateTagsData=(H=d.responseContext)==null?void 0:H.stateTags},q3v=function(d){var H;
return((H=d.stateTagsData)==null?void 0:H.stateTagsModified)||[]};var a0U;a0U=function(d){this.JSC$18137_responseStore=d};
_.ta=function(d,H,K){if(!_.h("state_tags_killswitch")){var c=new odv(H);if(q3v(c).length>0){var p=d.JSC$18137_responseStore.getKeys();p=_.q(p);for(var g=p.next();!g.done;g=p.next()){g=g.value;var a=n_(d.JSC$18137_responseStore,g);if(a){var e=_.d5(a);a:{var k=void 0;a=q3v(c);e=((k=(new odv(e)).stateTagsData)==null?void 0:k.relevantStateTags)||[];k=_.q(e);for(e=k.next();!e.done;e=k.next())if(e=e.value,e.stateTag!=null&&a.includes(e.stateTag)&&e.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){a=
!0;break a}a=!1}a&&G3Z(d.JSC$18137_responseStore,g)}}}}var C;c=(C=H.responseContext)==null?void 0:C.maxAgeSeconds;K&&c&&Number(c)>0&&(H=qV(H,c),d.JSC$18137_responseStore.put(K,new _.xx(H)))};
a0U.prototype.handleResponse=function(d,H){if(!H)throw Error("Yi");var K,c;H=(K=H.config)==null?void 0:(c=K.storeStrategy)==null?void 0:c.storeKey;_.ta(this,d,H)};
a0U[fG]=[_.kx];_.cxX=new _.Av("STORE_RESPONSE_PROCESSOR_TOKEN");var l0O=function(d){this.JSC$18140_responseStore=d};
l0O.prototype.handleResponse=function(d,H){if(H.input.match(_.H5(qt3))){var K;if(d==null?0:(K=d.entries)==null?0:K.length)for(d=_.q(d.entries),H=d.next();!H.done;H=d.next()){K=H.value.command;var c=void 0;H=(c=_.M(K,_.P5))==null?void 0:c.unserializedPrefetchData;if(!K||!H)break;c=(new B7).JSC$13046_getStoreKey(K);var p=_.M(H,w4A),g=void 0,a=void 0,e=void 0,k=_.iT("web_shorts_prefetch_service_ttl_seconds")>0?_.iT("web_shorts_prefetch_service_ttl_seconds"):Number((e=(g=p)==null?void 0:(a=g.responseContext)==
null?void 0:a.maxAgeSeconds)!=null?e:3600);c&&k>0&&(p=qV(p,k),this.JSC$18140_responseStore.put(c,new _.xx(p)));K=(new Rk).JSC$13046_getStoreKey(K);H=_.M(H,o4g);g=p=c=void 0;a=_.iT("web_shorts_prefetch_service_ttl_seconds")>0?_.iT("web_shorts_prefetch_service_ttl_seconds"):Number((g=(c=H)==null?void 0:(p=c.responseContext)==null?void 0:p.maxAgeSeconds)!=null?g:3600);K&&a>0&&(H=qV(H,a),this.JSC$18140_responseStore.put(K,new _.xx(H)))}}};
l0O[fG]=[_.kx];var e6S=function(d){this.innertubeTransportService=d};
e6S.prototype.submitForm=function(d,H,K,c,p){var g=this,a,e,k;return _.l(function(C){a={submitId:d,formData:H,submitBehavior:K,params:c};e=_.H5(M93);k=_.Qq(g.innertubeTransportService,a,e,p);return C.return(k)})};
e6S[fG]=[_.Z8];var o7=function(){this.scheduler=_.MO()},k3q;
o7.prototype.pause=function(){throw Error("Zi");};
o7.prototype.resume=function(){throw Error("Zi");};
o7.prototype.queue=function(d){var H=this,K=_.DA(),c=_.mf(this.scheduler,function(){try{var p;if(_.nM.instance)var g=_.nM.instance;else{var a=new _.m1("Error: Unexpected uninitialized CommandHandler.");_.z5(a);g=void 0}(p=g)==null||p.resolveCommand(d.command);K.resolve()}catch(e){K.reject(e)}});
K.promise.thenCatch(function(p){p instanceof _.T_&&H.scheduler.cancelJob(c)});
return K.promise};
o7.prototype.queueAll=function(d){var H=new Map;d=_.q(d);for(var K=d.next();!K.done;K=d.next())K=K.value,H.set(K.id,this.queue(K));return H};var ndj=function(d,H){var K=this;this.taskModel=d;this.onTaskCancelledCallback=H;this.resolver=_.DA();d=d.proto.prefetchConfig;if(!d)throw Error("$i");if(!d.prefetchAction)throw Error("aj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(c){c instanceof _.T_&&(xU1(K,K.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),K.onTaskCancelledCallback(K.taskModel.id,K.jobId),K.tick("pcc"));
throw c;});
this.timerName=this.taskModel.id;_.sa(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
ndj.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var xU1=function(d,H){_.Xw({prefetchInfo:{cancellationReason:H}},d.timerName)};
ndj.prototype.tick=function(d){_.Fw(d,void 0,this.timerName)};var a7=function(){var d=this;this.scheduler=_.MO();this.maxInflightTasks=_.iT("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.iT("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new YGd;this.onTaskCancelled=function(H,K){K&&d.scheduler.cancelJob(K);CMg(d,H);qg(d,3)}},R6g=function(){a7.instance||(a7.instance=new a7);
return a7.instance};
a7.prototype.pause=function(){this.prefetchCoordinatorState=0};
a7.prototype.resume=function(){qg(this,0)};
a7.prototype.queue=function(d){d=VSO(this,d);qg(this,1);return d};
a7.prototype.queueAll=function(d){var H=new Map;d=_.q(d);for(var K=d.next();!K.done;K=d.next())K=K.value,H.set(K.id,VSO(this,K));qg(this,1);return H};
var VSO=function(d,H){var K=d.allPrefetchTasks.get(H.id);if(K)return K.cancellablePromise;try{var c=new ndj(H,d.onTaskCancelled)}catch(g){return _.W1(g)}K=c;K.tick("pcq");var p={prefetchInfo:{taskId:K.taskModel.id,isPrefetch:!0,fetchAction:K.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:K.taskModel.command.clickTrackingParams}};K.taskModel.csn&&(p.clientScreenNonce=K.taskModel.csn);_.Xw(p,K.timerName);d.allPrefetchTasks.set(H.id,c);d.drainingHeap.insert(-c.getPriority(),c);return c.cancellablePromise},
qg=function(d,H){d.prefetchCoordinatorState===H&&(d.prefetchCoordinatorState=2,UUG(d))},UUG=function(d){for(var H={};d.prefetchCoordinatorState!==0;H={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(d.inflightPrefetchTasks.size>=d.maxInflightTasks){d.prefetchCoordinatorState=3;break}H.prefetchTask$jscomp$1=d.drainingHeap.remove();if(!H.prefetchTask$jscomp$1){d.prefetchCoordinatorState=1;break}H.taskId$jscomp$3=H.prefetchTask$jscomp$1.taskModel.id;if(d.allPrefetchTasks.has(H.taskId$jscomp$3)){var K=-1;d.coordinatorTimeoutMs>0&&(K=_.mf(d.scheduler,function(c){return function(){lK(d,c.taskId$jscomp$3,Error("bj"))}}(H),d.coordinatorTimeoutMs));
d.inflightPrefetchTasks.set(H.taskId$jscomp$3,K);if(!d.JSC$18160_commandHandler){if(!_.nM.instance){lK(d,H.taskId$jscomp$3,Error("cj"));continue}d.JSC$18160_commandHandler=_.nM.instance}a:switch(H.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":K=1;break a;default:K=0}H.prefetchTask$jscomp$1.jobId=d.scheduler.addJob(function(c){return function(){c.prefetchTask$jscomp$1.tick("pcr");try{d.JSC$18160_commandHandler.resolveCommand(c.prefetchTask$jscomp$1.taskModel.command)||
lK(d,c.taskId$jscomp$3,Error("dj"))}catch(p){lK(d,c.taskId$jscomp$3,p)}}}(H),K,0)}}},h6g=function(d,H){(H=CMg(d,H))!=null&&(H.resolver.resolve(),H.tick("pce"));
qg(d,3)},lK=function(d,H,K){(H=CMg(d,H,K))!=null&&(H.resolver.reject(K),H.tick("pcc"),xU1(H,"CANCELLATION_REASON_ERROR"),Math.random()<=_.iT("prefetch_coordinator_error_logging_sampling_rate")&&(K=new _.m1("Prefetch Command failed.",H.taskModel.id,K.message),_.z5(K)));
qg(d,3)},CMg=function(d,H,K){var c=d.allPrefetchTasks.get(H);
c?((K=d.inflightPrefetchTasks.get(H))&&K!==-1&&d.scheduler.cancelJob(K),d.inflightPrefetchTasks.delete(H),d.allPrefetchTasks.delete(H)):_.Jf(new _.m1("Unexpected missing prefetch task when deleting task.",H,K==null?void 0:K.message));return c};var LgU=function(d,H,K,c,p){this.id=d;this.triggerOn=H;this.cancelOn=K;this.command=c;this.proto=p};
_.H3.Object.defineProperties(LgU.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var MSj=function(){this.JSC$18165_prefetchCoordinator=R6g();k3q||(k3q=new o7);this.defaultCoordinator=k3q},mUU;
MSj.getInstance=function(){mUU||(mUU=new MSj);return mUU};
MSj.prototype.get=function(d){switch(d){case 0:return this.JSC$18165_prefetchCoordinator;default:return this.defaultCoordinator}};var er=function(){this.coordinatorSupplier=MSj.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},u7t=function(d){var H=_.Fj()||void 0,K=Object.keys(wBg)[0];
if(K){var c=d.taskIdByTriggerId.get(K);if(c!=null){d.taskIdByTriggerId.delete(K);K=[];c=_.q(c);for(var p=c.next();!p.done;p=c.next())if(p=d.tasks.get(p.value))H!=="UNDEFINED_CSN"&&(p.csn=H),K.push(p);K=vci(K);H=[];K=_.q(K);for(c=K.next();!c.done;c=K.next()){p=_.q(c.value);c=p.next().value;p=p.next().value;c=d.coordinatorSupplier.get(c).queueAll(p);c=_.q(c);var g=c.next();for(p={};!g.done;p={taskId$jscomp$9:void 0},g=c.next()){var a=_.q(g.value);g=a.next().value;a=a.next().value;p.taskId$jscomp$9=
g;g=a;H.push(p.taskId$jscomp$9);d.queuedPromisesByTask.set(p.taskId$jscomp$9,_.Lq(g,function(e){return function(){PM1(d,e.taskId$jscomp$9)}}(p)))}}}}else _.Jf(new _.m1("Unexpected malformed TriggerEvent."))};
er.prototype.trigger=function(d,H){var K=this,c=this.tasks.get(d);if(!c||this.queuedPromisesByTask.has(d))return!1;I0T(this,d,c.triggerOn);H!=="UNDEFINED_CSN"&&(c.csn=H);H=this.coordinatorSupplier.get(c.taskType).queue(c);this.queuedPromisesByTask.set(d,_.Lq(H,function(){PM1(K,d)}));
return!0};
er.prototype.cancel=function(d){var H=this.queuedPromisesByTask.get(d);if(H)H.cancel();else return PM1(this,d)};
var PM1=function(d,H){d.queuedPromisesByTask.delete(H);var K=d.tasks.get(H);if(!K)return!1;d.tasks.delete(H);I0T(d,H,K.triggerOn);(K=j8Y(K.cancelOn))&&(d=d.taskIdByCancelId.get(K))&&d.delete(H);return!0},I0T=function(d,H,K){(K=Object.keys(K)[0])&&(d=d.taskIdByTriggerId.get(K))&&d.delete(H)};var wBg={taskRegistered:{}},kP=function(){er.instance||(er.instance=new er);this.JSC$18174_taskManager=er.instance};
_.m(kP,YA);
kP.prototype.resolveCommand=function(d){var H=this,K,c;return _.l(function(p){K=_.M(d,L26);if((c=K)==null||!c.tasks){var g=new _.m1("RegisterTasksCommand is missing tasks.");_.z5(g);return p.return()}g=H.JSC$18174_taskManager;for(var a=_.q(K.tasks),e=a.next();!e.done;e=a.next())if(e=e.value,e=e.id&&e.triggerOn&&e.cancelOn&&e.command?new LgU(e.id,e.triggerOn,e.cancelOn,e.command,e):void 0,e){var k=Object.keys(e.triggerOn)[0];if(k){var C=j8Y(e.cancelOn);C?(g.tasks.set(e.id,e),g.taskIdByTriggerId.has(k)||g.taskIdByTriggerId.set(k,
new Set),g.taskIdByTriggerId.get(k).add(e.id),g.taskIdByCancelId.has(C)||g.taskIdByCancelId.set(C,new Set),g.taskIdByCancelId.get(C).add(e.id)):_.Jf(new _.m1("Unexpected malformed cancelOn field."))}else _.Jf(new _.m1("Unexpected malformed triggerOn field."))}else _.Jf(new _.m1("Unexpected malformed Task proto."));u7t(H.JSC$18174_taskManager);_.VE(p)})};var rNg={},Wg0=(rNg.rendered={priority:_.h("web_adaptive_early_init")?8:0,callback:function(){var d={};d.numCpu=navigator.hardwareConcurrency;var H={};H.ramGb=_.KF.navigator.deviceMemory;var K={staticContext:{}};H.ramGb&&dXX(H.ramGb)&&(K.staticContext.memoryTotalKbytes=(H.ramGb*1048576).toString());d.numCpu&&dXX(d.numCpu)&&(K.staticContext.cpuCores=d.numCpu);if(_.h("web_enable_adaptive_appl_signal")){d={};H=_.Qz("rses_dpj");var c=_.Qz("rsef_dpj");H&&H>0&&c&&c>0&&(H=Math.ceil(c-H),H>0&&(d.loadLatency=
H));d.loadLatency&&dXX(d.loadLatency)&&(K.appL=d.loadLatency.toString())}_.Wd("applicationStarted",K)}},rNg);var BAT=new _.Av("WINDOW_ON_ERROR"),z6U=new _.Av("ERROR_WEIGHT_MAPS"),XBU=new _.Av("INIT_ERROR");var JNg={},sCO=(JNg.initialized={priority:10,callback:function(d){d.injector.resolve(XBU)()}},JNg);var FgG=function(){},ZXO=function(){var d=_.OS("meta_logger_impl");
d||(d=new FgG,_.vb("meta_logger_impl",d));return d},TA5=function(){ZXO().csiSubscriptionKey=knh("meta_logging_csi_event",function(d){var H=d.timerName;
if(d=d.timelineData){_.sa(H,{startTime:d.startTime},H);d.infos&&_.Xw(d.infos,H);for(var K=_.q(Object.keys(d.ticks)),c=K.next();!c.done;c=K.next())c=c.value,_.Fw(c,d.ticks[c],H)}})};
FgG.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&CsE(this.csiSubscriptionKey)};var QCS={},tS0=(QCS.initialized={priority:10,callback:function(){TA5()}},QCS);var Y3Z=function(d,H){this.innertubeClientName=d;this.JSC$18190_prefCookie=H};
Y3Z.prototype.record=function(){if(_.h("web_li_record_binary_eval_tick")){var d=_.Qz("rsef_dpj");var H=_.Qz("rses_dpj");d=d!==void 0&&H!==void 0?Math.round(d-H):void 0;if(d!==void 0&&d>0){H=_.xC(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var K=this.poolSize;if(!(H.valuesSeen>=1E9)){if(H.valuesSample.length<K)H.valuesSample.push(d);else{var c=Math.floor(Math.random()*(H.valuesSeen+1));c<K&&(H.valuesSample[c]=d)}H.valuesSeen+=1}_.kC(this.storagePrefix+"-"+this.innertubeClientName,
H,2592E3);d=H.valuesSample;H=H3E(d);d=d.length<this.poolSize?void 0:H<400?1:H<1700?2:3;d!==void 0&&(this.JSC$18190_prefCookie.set(this.cookiePrefix+this.innertubeClientName,d),this.JSC$18190_prefCookie.save())}}else _.ns(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18190_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18190_prefCookie.save()};
Y3Z[fG]=[sf,kz];var OX0=function(){Y3Z.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.m(OX0,Y3Z);var S35=new _.Av("PAGE_LOAD_TIME_TOKEN");var EdZ=function(d){this.signal=d;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;d.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.mf(_.Xp,this.disableLoggingAndSendPayload,1E4)};
EdZ.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.Xp.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),yNT(this))};
var yNT=function(d){var H=_.so();if(H){var K={webClientComponentsData:{components:Array.from(d.ids,function(c){return{id:c}})}};
d.ids.clear();_.hR().visualElementStateChanged(H,K)}};var bXt=new _.Av("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var xP=function(d,H){this.JSC$18218_storeWithEntities=d;this.JSC$18218_commandHandler=H;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
xP.prototype.start=function(){this.JSC$18218_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
xP.prototype.observeDownloadingEntities=function(){var d=_.HUC(this.JSC$18218_storeWithEntities.getState().entities).map(function(c){return $w4(c)});
if(d.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var H={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:Kxl()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.cW(_.Vz("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18218_commandHandler.resolveCommand(H)}this.downloadingEntities=d}else if(this.downloadingEntities.length){var K=dwF(this.JSC$18218_storeWithEntities.getState().entities).map(function(c){return $w4(c)});
this.downloadingEntities.filter(function(c){return K.includes(c)}).length&&(d={openPopupAction:ZwL()},this.JSC$18218_commandHandler.resolveCommand(d));
this.downloadingEntities=[]}};
xP[fG]=[$8,_.cb];var NA0;_.nE=function(d,H,K,c,p,g,a,e){this.JSC$18221_playerApiPromise=d;this.JSC$18221_commandHandler=H;this.JSC$18221_screenManager=K;this.offlineWebClientEligibility=c;this.JSC$18221_prefStorage=p;this.JSC$18221_actionRouter=g;this.entityTypeMap=a;this.JSC$18221_persistentStorePromiseAccessor=e;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
NA0=function(){var d=_.Kj().resolve(_.nE),H;_.l(function(K){if(K.nextAddress==1)return d.downloadFailureListenerBound?K.return():K.yield(d.JSC$18221_playerApiPromise,2);H=K.yieldResult;H.addEventListener("onOfflineOperationFailure",function(c){if(c.failureReason&&c.entityKey&&c.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(c.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var p=_.a6(c.entityKey).entityId;p&&d.JSC$18221_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
p)}else if(_.h("kevlar_woffle")){p=d.JSC$18221_commandHandler;var g=p.resolveCommand;c=c.failureReason;var a=_.Vz("TRANSFER_FAILED",void 0,"Download failed");c==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(a=_.Vz("STORAGE_FULL",void 0,"Storage full"));g.call(p,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.cW(a),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
d.downloadFailureListenerBound=!0;_.VE(K)})};
_.nE.prototype.deleteVideo=function(d,H){var K=this,c,p,g;return _.l(function(a){if(a.nextAddress==1)return a.yield(K.JSC$18221_playerApiPromise,2);c=a.yieldResult;g={offlineLoggingData:{offlineDeleteReason:(p=H)!=null?p:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return a.yield(c.queueOfflineAction(d,K.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",g),0)})};
_.nE.prototype.pauseVideoDownload=function(d){var H=this,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(H.JSC$18221_playerApiPromise,2);K=c.yieldResult;K.pauseVideoDownload(d);_.VE(c)})};
_.nE.prototype.resumeVideoDownload=function(d){var H=this,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(H.JSC$18221_playerApiPromise,2);K=c.yieldResult;return c.yield(K.resumeVideoDownload(d),0)})};
_.nE[fG]=[_.Gx,_.cb,_.BC,bXt,RN,Hx,vn6,Cs];var DUZ=new _.Av("DOWNLOAD_STATE_STORE_TOKEN");var f0j=function(d,H){this.JSC$18241_persistentStorePromiseAccessor=d;this.store=H;this.upliftCompletionResolver=new _.ki},vdG=function(){var d=_.Kj().resolve(ANZ),H;
_.l(function(K){switch(K.nextAddress){case 1:if(d.upliftImplPromise)return K.return(d.upliftImplPromise);_.e2(K,2);d.upliftImplPromise=jCO(d);return K.yield(d.upliftImplPromise,4);case 4:d.upliftCompletionResolver.resolve();_.Em(K,3);break;case 2:throw H=_.RV(K),d.upliftCompletionResolver.reject(H),H;case 3:return K.return(d.upliftImplPromise)}})},jCO=function(d){var H,K,c;
return _.l(function(p){switch(p.nextAddress){case 1:return _.Qx("LOGGED_IN")?p.yield(d.JSC$18241_persistentStorePromiseAccessor(),2):p.return();case 2:H=p.yieldResult;if(!H)return _.Fw("vdeur"),p.return();_.Fw("vdeus");_.e2(p,3);return p.yield(dSt(H),5);case 5:K=p.yieldResult;d.store.dispatch(Qef(K));H.observe(function(g){tKX(d.store,g)});
_.Em(p,4);break;case 3:throw c=_.RV(p),_.Fw("vdeur"),c;case 4:_.Fw("vdeuc"),_.VE(p)}})},dSt=function(d){var H;
return _.l(function(K){if(K.nextAddress==1)return K.yield(GuF(d),2);H=K.yieldResult;return K.return(H.reduce(function(c,p){if(!p.data||!p.key||!p.entityType)return c;c[p.entityType]||(c[p.entityType]={});c[p.entityType][p.key]=p.data;return c},{}))})};
f0j[fG]=[Cs,_.t$];var ANZ;ANZ=new _.Av("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.CE=new _.Av("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var R7=function(d,H){this.JSC$18244_persistentStorePromiseAccessor=d;this.transportService=H};
R7.prototype.refresh=function(){var d=this,H,K,c,p;return _.l(function(g){if(g.nextAddress==1)return _.Qx("LOGGED_IN")?g.yield(d.JSC$18244_persistentStorePromiseAccessor(),2):g.return();if(g.nextAddress!=3)return(H=g.yieldResult)?g.yield(S6l(H),3):g.return();if((K=g.yieldResult)&&!(Number(K.data.refreshTimestampMs||0)<(0,_.$G)()))return g.return();c={browseId:"SPaccount_downloads"};p=_.H5(bW);_.Qq(d.transportService,c,p).then(function(a){var e;if(H&&(a==null?void 0:(e=a.responseContext)==null?void 0:
e.maxAgeSeconds)!==0){var k;e=(a==null?void 0:(k=a.responseContext)==null?void 0:k.maxAgeSeconds)||604800;k=String(Math.floor((0,_.$G)())+e*1E3);H.put("service:downloads_settings:fallback",new _.xx({innertubeResponse:a,refreshTimestampMs:k}))}});
_.VE(g)})};
R7[fG]=[_.GE,_.Z8];var VA=function(d,H){this.JSC$18248_playerPromise=d;this.store=H;this.started=!1};
VA.prototype.start=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1)return d.started?K.return():K.yield(d.JSC$18248_playerPromise,2);H=K.yieldResult;H.addEventListener("onOrchestrationBecameLeader",d.updateIsLeader.bind(d,!0));H.addEventListener("onOrchestrationLostLeader",d.updateIsLeader.bind(d,!1));if(H.isOrchestrationLeader)d.updateIsLeader(H.isOrchestrationLeader());else{var c=new _.m1("Function isOrchestrationLeader is undefined",{"player.isReady":H.isReady(),"player.playVideo":H.playVideo?
"defined":"undefined"});_.z5(c);d.updateIsLeader(!1)}d.started=!0;_.VE(K)})};
VA.prototype.updateIsLeader=function(d){this.store.dispatch(_.iZ({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:d}}))};
VA[fG]=[_.Gx,_.t$];var HtT=function(d,H){this.networkStatusManager=d;this.JSC$18251_prefStoragePromise=H;this.redirectsToPreload=["https://youtube.com"]},$SZ=function(){var d=_.Kj().resolve(HtT),H,K,c,p,g,a;
_.l(function(e){switch(e.nextAddress){case 1:return e.yield(d.JSC$18251_prefStoragePromise,2);case 2:H=e.yieldResult;if(!(K=H)){e.jumpTo(3);break}return e.yield(H.get("yt-redirect-prefetch-id"),4);case 4:K=e.yieldResult;case 3:if(K||!d.networkStatusManager.isNetworkAvailable())return e.return();c={cache:"reload",redirect:"manual"};p=_.q(d.redirectsToPreload);g=p.next();case 5:if(g.done){if(!H){e.jumpTo(0);break}return e.yield(H.set("yt-redirect-prefetch-id",!0,86400),0)}a=g.value;_.e2(e,8);return e.yield(_.KF.fetch(a,
c),10);case 10:_.Em(e,6);break;case 8:_.RV(e);case 6:g=p.next(),e.jumpTo(5)}})};var Uy=function(d){d?(this.container=d,this.containerWasInjected=!0):this.containerWasInjected=!1};
Uy.prototype.openDialog=function(d,H,K){var c=this,p;return _.l(function(g){(p=c.container)==null||p.openDialog(d,H,K);_.VE(g)})};
Uy.prototype.closeDialog=function(){var d=this,H;return _.l(function(K){(H=d.container)==null||H.closeDialog();_.VE(K)})};
Uy.prototype.isDialogOpen=function(){var d=this,H,K;return _.l(function(c){return c.return((K=(H=d.container)==null?void 0:H.isDialogOpen())!=null?K:!1)})};
Uy[fG]=[_.$p(TPS)];_.KbU=new _.Av("POPUP_CONTROLLER_TOKEN");var cZb=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
cZb.prototype.registerPanel=function(d,H){if(d){this.panelMap.set(d,H);var K=this.pendingPanelResolvers.get(d);K&&(K.resolve(H),this.pendingPanelResolvers.delete(d))}};
cZb.prototype.getPanel=function(d){var H=this,K;return _.l(function(c){return(K=H.panelMap.get(d))?c.return(K):c.return(pvS(H,d))})};
var pvS=function(d,H){var K,c;return _.l(function(p){if(K=d.pendingPanelResolvers.get(H))return p.return(K.promise);c=new _.ki;d.pendingPanelResolvers.set(H,c);return p.return(c.promise)})},g0O=function(d){cZb.call(this);
var H=this;this.popupController=d;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return H.panelMap.size}}};
_.m(g0O,cZb);_.G=g0O.prototype;_.G.getReloadContinuation=function(d){var H=this,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(H.getPanel(d),2);K=c.yieldResult;return c.return(K.getReloadContinuation())})};
_.G.showPanel=function(d,H,K,c,p,g,a){var e=this,k,C,R,V;return _.l(function(U){if(U.nextAddress==1){a&&e.updatePanelContinuationDatas.set(d,a);if((k=K)==null?0:(C=k.engagementPanelPopupPresentationConfig)==null?0:C.popupType){R=K.engagementPanelPopupPresentationConfig.popupType;p===void 0&&(p=document.body);var L=U.return,w=e.popupController,W=w.openPopup;a:switch(R){case "PANEL_POPUP_TYPE_DIALOG":var J="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":J="DROPDOWN";break a;default:throw Error("fj`"+
R);}return L.call(U,W.call(w,d,H,J,p))}return U.yield(e.getPanel(d),2)}V=U.yieldResult;(H||g)&&V.updatePanel(H,!1,c,g);V.showPanel(c);_.VE(U)})};
_.G.hidePanel=function(d){var H=this,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(H.getPanel(d),2);K=c.yieldResult;K.hidePanel();H.popupController.closePopup(d);_.VE(c)})};
_.G.isVisible=function(d,H){var K=this,c;return _.l(function(p){if(p.nextAddress==1)return H&&!K.panelMap.has(d)?p.return(!1):p.yield(K.getPanel(d),2);c=p.yieldResult;return p.return(c.isVisible())})};
_.G.updatePanel=function(d,H,K,c,p,g){K=K===void 0?!1:K;var a=this,e;return _.l(function(k){if(k.nextAddress==1){if(!H&&!p)return k.return();g&&a.updatePanelContinuationDatas.set(d,g);return k.yield(a.getPanel(d),2)}e=k.yieldResult;e.updatePanel(H,K,c,p);_.VE(k)})};
_.G.registerPanelContent=function(d,H){d&&this.panelContentMap.set(d,H)};
_.G.unregisterPanelContent=function(d){this.panelContentMap.delete(d)};
_.G.getPanelContent=function(d){return this.panelContentMap.get(d)};
_.G.getUpdatePanelContinuationData=function(d){return this.updatePanelContinuationDatas.get(d)};
g0O[fG]=[_.KbU];var h3=function(d,H){this.innertubeTransportService=d;this.JSC$18267_screenManager=H},itg=function(d){var H;
return!((H=d.panelLoadingStrategy)==null||!H.requestTemplate)};
h3.prototype.makeRequest=function(d){var H=this,K,c;return _.l(function(p){switch(p.nextAddress){case 1:if(!itg(H)){p.jumpTo(2);break}_.e2(p,3);return p.yield(_.Nc(H.innertubeTransportService,d),5);case 5:return K=p.yieldResult,K?p.return(K.content):(_.z5(Error("gj")),p.return(void 0));case 3:c=_.RV(p),_.z5(c);case 2:return p.return(void 0)}})};
h3.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
h3.prototype.execute=function(d){var H=this,K,c,p,g,a,e,k,C,R,V;return _.l(function(U){if(U.nextAddress==1){K=d;c=K.data;p=K.fallbackVe;g=K.parentVe;a=K.createScreenConfig;e=K.renderFn;k=K.command;H.panelLoadingStrategy=c;var L,w,W=((L=H.panelLoadingStrategy)==null?0:L.screenVe)?(w=H.panelLoadingStrategy)==null?void 0:w.screenVe:p;W&&_.ld(H.JSC$18267_screenManager,W,g,a);return(C=H.getContent())?U.yield(e(C),2):U.jumpTo(2)}return U.nextAddress!=4?itg(H)?U.yield(H.makeRequest(k),4):U.return():(V=R=
U.yieldResult)?U.yield(e(V),0):U.return()})};
h3[fG]=[_.Z8,_.BC];var LE=function(){};
LE.prototype.getContainer=function(){return _.Ko()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
LE.prototype.openSheet=function(d,H){var K=this,c,p,g,a,e,k;return _.l(function(C){switch(C.nextAddress){case 1:return c={stack:[],error:void 0,hasError:!1},_.e2(C,2,3),p=br,C.yield(K.isSheetOpen(),5);case 5:g=C.yieldResult;O$f(c,M7F(p));if(g){if(H&&K.currentTarget===H)return(a=K.getContainer())==null||a.closeSheet(),C.return();K.pendingData={data:d,target:xfb(K,H)};return C.return()}d.viewModel&&(d={viewModel:d.viewModel});(e=K.getContainer())==null||e.openSheet(d,H);K.currentTarget=H;case 3:_.xs(C);
S1X(c);_.Cz(C,0);break;case 2:k=_.RV(C),c.error=k,c.hasError=!0,C.jumpTo(3)}})};
LE.prototype.closeSheet=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1)return K.yield((H=d.getContainer())==null?void 0:H.closeSheet(),2);if(K.nextAddress!=4)return d.currentTarget=void 0,d.pendingData?K.yield(d.openSheet(d.pendingData.data,d.pendingData.target),4):K.jumpTo(0);d.pendingData=void 0;_.VE(K)})};
LE.prototype.isSheetOpen=function(){var d=this,H,K;return _.l(function(c){return c.return((K=(H=d.getContainer())==null?void 0:H.isSheetOpen())!=null?K:!1)})};
var xfb=function(d,H){if(!_.h("web_parent_target_for_sheets"))return H;var K,c;return(c=(K=d.getContainer())==null?void 0:K.getParentTarget(H))!=null?c:H};var Ky=window.documentPictureInPicture;var UXF=_.y$(["dark"]),hx5=_.y$(["system-icons"]),LNE=_.y$(["typography"]),MzC=_.y$(["lang"]),mXL=_.y$(["style"]),nIl=_.y$(["dir"]),CyF=_.y$(["rounded-container"]),Rx4=_.y$(["style"]),PyE=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Mg=function(d){this.JSC$18279_clientRoot=d;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Mg.prototype.openWindow=function(d){var H=this,K,c;return _.l(function(p){if(p.nextAddress==1)return window.documentPictureInPicture&&_.IE()&&!H.currentPipWindow?p.yield((K=Ky?Ky:null)==null?void 0:K.requestWindow(d),2):p.return(!1);if(p.nextAddress!=3){c=p.yieldResult;if(!c)return p.return(!1);c.addEventListener("pagehide",function(){GGg(H)});
c.addEventListener("resize",H.handlePipWindowResize);H.pipWindowResizeDelay=new _.c3(function(){H.currentPipWindow&&_.oF(H.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.nB(H.currentPipWindow.innerWidth,H.currentPipWindow.innerHeight)])},c);
wpD(c);IoL(c);return p.yield(xXE(c),3)}if(!lo4())return p.return(!1);H.currentPipWindow=c;H.JSC$18279_eventForwarder=uJh(c,H.JSC$18279_clientRoot);H.pipWindowResizeDelay.start();return p.return(!0)})};
Mg.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var GGg=function(d){if(d.currentPipWindow){var H,K;(H=Ky?Ky:null)==null||(K=H.window)==null||K.close();d.currentPipWindow.removeEventListener("resize",d.handlePipWindowResize);var c;(c=d.pipWindowResizeDelay)==null||c.dispose();d.pipWindowResizeDelay=void 0;var p;(p=d.JSC$18279_eventForwarder)==null||p.stop();d.JSC$18279_eventForwarder=void 0;H=_.q(d.onCloseCallbacks);for(K=H.next();!K.done;K=H.next())K=K.value,K();d.onCloseCallbacks=[];d.currentPipWindow=null}};
Mg.prototype.getWindow=function(){return this.currentPipWindow};
var o0Z=function(d,H){var K;(K=d.onCloseCallbacks)==null||K.push(H)};
Mg.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.IE()};
_.H3.Object.defineProperties(Mg.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Mg[fG]=[c2S];var qUg=new _.Av("PICTURE_IN_PICTURE_CONTROLLER");var rk4=function(d,H){this.lengthY=this.lengthX=0;this.lengthX=H.x-d.x;this.lengthY=H.y-d.y};var a5q=function(){},P1g=function(d,H){var K;
(K=d.headerElement)==null||K.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:H}))};var l5T=function(){};
l5T.prototype.openPopup=function(d,H,K,c){var p=this,g;return _.l(function(a){if(!p.container)return a.return();g={openPopupAction:{popup:H,popupType:K,uniqueId:d}};return a.return(p.container.handleOpenPopupAction(g,c))})};
l5T.prototype.closePopup=function(d){this.container&&this.container.closePopup(d)};var ejU=function(){this.openTunnels=new Map},u31=function(d,H,K){if(s9E(K)){var c=_.ZB(K,"gclid");
K={handleEvent:function(e){H&&!H.closed&&typeof H.postMessage==="function"&&e&&e.origin&&e.source===H&&e.data&&e.data.action==="gcl_setup"&&H.postMessage(Object.assign({},{action:"gcl_transfer"},c&&{gclid:c},{gadSource:2}),e.origin)}};
for(var p=_.q(d.openTunnels),g=p.next();!g.done;g=p.next()){var a=_.q(g.value);g=a.next().value;a=a.next().value;if(g.closed)try{window.removeEventListener("message",a),d.openTunnels.delete(g)}catch(e){_.z5(e)}}H&&d.openTunnels.size<15&&(d.openTunnels.set(H,K),window.addEventListener("message",K))}};var kGO=function(){this.clientParams=new Map},C76=function(d){for(var H=_.q(d.clientParams.keys()),K=H.next();!K.done;K=H.next())K=K.value,K.startsWith("yt-mini-app-share")&&d.clientParams.delete(K)};var n0g=function(d){_.h_.call(this);this.JSC$18301_shortsController=d;xST(this);this.addOnDisposeCallback(this.removeCaptionTrackEventListener.bind(this))};
_.m(n0g,_.h_);var xST=function(d){d.JSC$18301_shortsController.playerApi.then(function(H){H&&(H.addEventListener("captionschanged",function(){Cgt(d,H)}),Cgt(d,H))})};
n0g.prototype.removeCaptionTrackEventListener=function(){var d=this;this.JSC$18301_shortsController.playerApi.then(function(H){H&&H.removeEventListener("captionschanged",function(){Cgt(d,H)})})};
var Cgt=function(d,H){H=H==null?void 0:H.getOption("captions","track");d=d.JSC$18301_shortsController;var K=_.kL("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(H){var c,p=(c=_.Uj(_.tu,K)())==null?void 0:c.value,g;c=typeof(H==null?void 0:H.translationLanguage)==="object"&&((g=H.translationLanguage)==null?void 0:g.languageName)||H.displayName||"";p!==c&&d.store.dispatch(_.PI("stringEntity",K,{key:K,value:c.toString()}))}else d.store.dispatch(_.PI("stringEntity",K,{key:K,value:"CAPTIONS_UNAVAILABLE"}))};var RjT=function(d,H){_.h_.call(this);var K=this;this.JSC$18304_shortsController=d;this.storeWithShorts=H;d=_.LU(this.storeWithShorts,_.$Ph,function(c){if(c){var p,g=(p=K.JSC$18304_shortsController.getRoot())==null?void 0:p.getPlayer(),a;(p=(a=K.JSC$18304_shortsController.alternativePlayerContainerElement)==null?void 0:a.getPlayerContainer())&&(g==null||g.appendTo(p))}else{var e;a=(e=K.JSC$18304_shortsController.alternativePlayerContainerElement)==null?void 0:e.getPlayerContainer().querySelector("#player");
p=K.JSC$18304_shortsController.activeIndex;(e=(g=K.JSC$18304_shortsController.getRoot())==null?void 0:g.querySelector('ytd-reel-video-renderer[id="'+p+'"] #player-container'))&&(a==null||a.appendTo(e,void 0,!0))}});
this.addOnDisposeCallback(d)};
_.m(RjT,_.h_);var mh=function(d,H,K,c,p){var g=this;this.storeWithShorts=d;this.ephemeralResponseStore=H;this.store=K;this.innertubeTransportService=c;this.innertubeTransportLoader=p;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Tv(_.G_);this.isShortsPipActive=_.Tv(_.oI);this.nextReelVe=_.l8(56921);this.prevReelVe=_.l8(56922);this.backButtonVe=_.l8(22156);this.TEST_ONLY={getActiveModules:function(){return g.activeModules}}},VTZ=function(d){d.unsubscribeFromStore=
_.LU(d.storeWithShorts,_.HvD,function(H){d.initOrDisposeActiveModules(H);
!H&&d.storeWithShorts.getState().shorts.isFullscreen&&(_.cy(document.documentElement),d.storeWithShorts.dispatch(_.p2l(!1)))});
d.initOrDisposeActiveModules(_.HvD(d.storeWithShorts.getState()))},ikB,GY0,USO;
mh.prototype.initOrDisposeActiveModules=function(d){d?this.activeModules.push.apply(this.activeModules,[new RjT(this,this.storeWithShorts)].concat(_.ru(_.h("enable_web_shorts_captions_language_command")?[new n0g(this)]:[]))):(_.ju(this.activeModules),this.activeModules.length=0)};
mh.prototype.registerRootElement=function(d){this.rootElement=d;VTZ(this)};
mh.prototype.getRoot=function(){return this.rootElement};
mh.prototype.setActiveIndex=function(d){this.activeIndex=d};
_.HkC=function(d,H){var K,c,p,g,a,e,k;return _.l(function(C){switch(C.nextAddress){case 1:return K=new B7,(c=K.JSC$13046_getStoreKey(H))&&d.ephemeralResponseStore.has(c)?C.yield(d.ephemeralResponseStore.get(c),7):C.yield(USO(d,H),4);case 4:p=C.yieldResult;if(!c){C.jumpTo(3);break}g=qV(p,3600);return C.yield(d.ephemeralResponseStore.put(c,new _.xx(g)),3);case 7:p=(a=C.yieldResult)==null?void 0:_.d5(a);case 3:return((e=p)==null?0:e.replacementEndpoint)&&(k=_.M(p.replacementEndpoint,_.P5))&&p.sequenceContinuation&&
(k.sequenceParams=p.sequenceContinuation),C.return(p)}})};
ikB=function(d,H){H=(new z7).JSC$13046_getStoreKey(H);return!!H&&d.ephemeralResponseStore.has(H)};
GY0=function(d,H,K){var c,p,g,a,e;_.l(function(k){if(k.nextAddress==1){c=new z7;p=c.JSC$13046_getStoreKey(H);if(!p)return k.return();if(K.reelWatchSequenceResponse)return g=qV(K.reelWatchSequenceResponse,3600),d.ephemeralResponseStore.put(p,new _.xx(g)),k.jumpTo(0);if(!d.ephemeralResponseStore.has(p))return k.jumpTo(0);e=K;return k.yield(d.ephemeralResponseStore.get(p),4)}e.reelWatchSequenceResponse=(a=k.yieldResult)==null?void 0:_.d5(a);_.VE(k)})};
USO=function(d,H){var K=K===void 0?{}:K;var c,p,g;return _.l(function(a){switch(a.nextAddress){case 1:if(d.innertubeTransportService){c=d.innertubeTransportService;a.jumpTo(2);break}if(!d.innertubeTransportLoader){_.tm(Error("ij"));a.jumpTo(2);break}return a.yield(d.innertubeTransportLoader(),4);case 4:c=a.yieldResult;case 2:return a.yield((p=c)==null?void 0:_.Nc(p,H,K),5);case 5:return g=a.yieldResult,a.return(g)}})};
_.H3.Object.defineProperties(mh.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
mh[fG]=[yY0,_.kx,$8,_.$p(_.Z8),_.$p(QXg)];_.hjt=new _.Av("STORAGE_MANAGER_TOKEN");var SPX=["touchmove","scroll"];var LbU=!1;var EI5={onSpanEnd:function(d){d.parent==null&&(LbU||(Q9L(),setInterval(Q9L,6E5),LbU=!0),tzF(d,"web_tracing_action"))}};var MTg=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},mSS;
MTg.prototype.enqueue=function(d,H){H===1?this.currentPersistentToast=d:this.queue.push(d);this.openToast()};
MTg.prototype.openToast=function(){var d;(d=this.currentToast)!=null&&d.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.wC=new _.Av("TOAST_MANAGER_TOKEN");var wvO=new _.Av("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var Pgg=new _.Av("VIEW_TRANSITION_COORDINATOR_TOKEN");var uO0=function(d){this.config=d;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;d=_.q(d.transitionConfigs);for(var H=d.next();!H.done;H=d.next())H=_.q(H.value).next().value,this.transitionTasksMap.set(H,[])};
uO0.prototype.registerElement=function(d,H,K){K=K===void 0?!1:K;for(var c=_.q(Object.keys(H)),p=c.next(),g={};!p.done;g={viewTransitionName:void 0},p=c.next()){p=p.value;g.viewTransitionName=H[p];var a=this.elementTasksMap.get(d),e=void 0;if((e=a)==null?0:e.has(p)){_.Xi(new _.m1("Element already registered for transition",d.tagName,p));break}a=a||new Map;a.set(p,{beforeTransition:function(k){return function(){d.style.viewTransitionName=k.viewTransitionName}}(g),
afterTransition:function(){d.style.viewTransitionName&&(d.style.viewTransitionName="")},
runOnce:K});this.elementTasksMap.set(d,a)}};
_.SA=function(d,H){var K=d.elementTasksMap.get(H);K&&(K.clear(),K.size===0&&d.elementTasksMap.delete(H))};
uO0[fG]=[wvO];var I50;_.rZO=_.H1(function(d){return _.x("basic-content-view-model",{class:_.xM("ytBasicContentViewModelHost",_.vj(d.className))},_.x(_.n,{cond:function(){return d.data().headline},
then:function(H){return _.x("div",{class:"ytBasicContentViewModelHeadline"},_.x(_.j$,{text:H}))}}),_.x(_.L6,{each:function(){return d.data().paragraphs||[]},
keyBy:"INDEX"},function(H){return _.x("div",{class:"ytBasicContentViewModelParagraph"},_.x(_.n,{cond:function(){var K=H();return!!(K.header||K.customHeader||K.headline)},
then:function(){return _.x(I50,{paragraph:H})}}),_.x(_.n,{cond:function(){return H().asset||H().text},
then:function(){return _.x("div",{class:"ytBasicContentViewModelParagraphContent"},_.x(_.n,{cond:function(){return H().asset},
then:function(K){return _.x("div",{class:"ytBasicContentViewModelParagraphAsset"},_.x(_.wB,{data:K},{contentPreviewImageViewModel:_.iN}))}}),_.x(_.n,{cond:function(){return H().text},
then:function(K){return _.x("div",{class:"ytBasicContentViewModelParagraphText"},_.x(_.j$,{text:K}))}}))}}))}))},"Ge");
I50=_.H1(function(d){var H=d.paragraph;return _.x(_.HE,null,_.x(_.n,{cond:function(){return H().headline},
then:function(K){return _.x(_.j$,{text:K,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.x(_.wB,{data:function(){return H().header||H().customHeader}},{sectionHeaderViewModel:function(K){return _.x(_.xw,{data:K.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"He");var Bqq=_.H1(function(d){var H=_.Af("yt-expandable-metadata-header-view-model"),K=_.n7(function(c){if(!_.sj(_.JW(c),H.value,["A".toString(),"BUTTON".toString()])){var p;(p=d.expandedCallback)==null||p.call(d,!1)}});
return _.x("yt-expandable-metadata-header-view-model",{el:H,class:"ytExpandableMetadataHeaderViewModelHost"},_.x(_.n,{cond:function(){return d.expanded()},
then:function(){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":K},_.x("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.x(_.n,{cond:function(){return d.data().expandedTitleImage},
then:function(c){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.x(_.d7,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:c}))}}),_.x("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.x("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.x(_.j$,{text:function(){return d.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.x(_.j$,{text:function(){return d.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.x(_.j$,{text:function(){return d.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.x("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.x(_.wB,{data:function(){return d.data().infoButton}},{buttonViewModel:_.xk}),_.x(_.wB,{data:function(){return d.data().collapseButton}},{buttonViewModel:function(c){return _.x(_.xk,{data:c.data,
onClick:function(){var p;(p=d.expandedCallback)==null||p.call(d,!1)}})}})))},
else:function(){return _.x(Wbj,Object.assign({},d))}}))},"Ie"),zj5=_.H1(function(d){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.x(_.n,{cond:function(){return d.data().collapsedLabelImage},
then:function(H){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.x(_.d7,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:H,alt:""}))}}),_.x(_.j$,{text:function(){return d.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Je"),Wbj=_.H1(function(d){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.n7(function(){var H;return void((H=d.expandedCallback)==null?void 0:H.call(d,!0))})},_.x("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.x(_.n,{cond:function(){return d.data().collapsedImage},
then:function(H){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.x(_.d7,{width:16,height:16,data:H,alt:""}))}}),_.x(_.n,{cond:function(){return d.data().showLeadingCollapsedLabel},
then:function(){return _.x(zj5,Object.assign({},d))}}),_.x("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.x(_.j$,{text:function(){return d.data().collapsedTitle}}))),_.x("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.x(_.n,{cond:function(){return!d.data().showLeadingCollapsedLabel},
then:function(){return _.x(zj5,Object.assign({},d))}}),_.x(_.wB,{data:function(){return d.data().infoButton}},{buttonViewModel:_.xk}),_.x(_.wB,{data:function(){return d.data().expandButton}},{buttonViewModel:function(H){return _.x(_.xk,{data:H.data,
onClick:function(){var K;(K=d.expandedCallback)==null||K.call(d,!0)}})}})))},"Ke");_.Xvj=_.H1(function(d){var H=_.q(_.V2(function(){return d.data().initiallyExpanded})),K=H.next().value,c=H.next().value,p,g=(p=_.Kj().resolve(_.$p(_.fM)))==null?void 0:p(),a=function(){var e=d.data().colorData;
if(e)return g?e==null?void 0:e.darkColorPalette:e==null?void 0:e.lightColorPalette};
return _.x("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.UQ({"background-color":function(){var e=a();return(e==null?0:e.section2Color)?_.Ob(e.section2Color):""}})},_.x(_.wB,{data:function(){return d.data().header}},{expandableMetadataHeaderViewModel:function(e){return _.x(Bqq,{data:e.data,
expanded:function(){return!!K()},
expandedCallback:function(k){c(k)}})}}),_.x(_.n,{cond:function(){return K()},
then:function(){return _.x("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.x(_.wB,{data:function(){return d.data().expandedContent}},{horizontalShelfViewModel:function(e){return _.x(_.Yw,{data:e.data,
includeMargin:!0,forceNarrowLayout:!0,palette:a})},
videoSummaryContentViewModel:function(e){return _.x(Jr3,{data:e.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(e){return _.x(_.lN,{data:e.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(e){return _.x(_.rZO,{data:e.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.x(_.wB,{data:function(){return d.data().expandedBottomButtons}},{buttonViewModel:function(e){return _.x("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.x(_.xk,{data:e.data}))}}))}}))},"Le");var JZq=_.H1(function(d){var H=d.text;var K=d.marqueeSpacing;var c=d.scrollDelay;var p=d.scrollDuration;var g=d.enableMarqueeScroll;d=d.large;var a=_.q(_.GO(!1,void 0,"kfNqfd")),e=a.next().value,k=a.next().value,C=_.q(_.GO(0,void 0,"bYgZbf"));a=C.next().value;var R=C.next().value,V=_.Af("marquee-scroll");C=_.Af("div");var U=_.Af("span"),L=_.Kj().resolve(_.jv);_.wc(function(){if(g()){var J=U.value.getBoundingClientRect().width,F=V.value.getBoundingClientRect().width;if(J>F){var Y=(L==="ltr"?-1:1)*
(J+(K?K():16));Promise.resolve().then(function(){k(!0);R(Y)})}}},"giRlme");
var w={},W={};return _.x("marquee-scroll",{class:_.xM("ytMarqueeScrollHost",(w.ytMarqueeScrollHostLarge=d,w)),el:V},_.x("div",{id:"marquee-scroll-inner-container",class:_.xM("ytMarqueeScrollInnerContainer",(W.ytMarqueeScrollAnimationEnabled=function(){return e()},W)),
el:C,style:_.UQ({gap:K?(0,_.s$)(K):"16px","animation-duration":p?r0d(p):"16s","animation-delay":c?r0d(c):"3s","--marquee-translate":(0,_.s$)(a)})},_.x("span",{el:U,dir:"auto"},_.x(_.j$,{text:H,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.x(_.n,{cond:e,then:function(){return _.x("span",{"aria-hidden":"true",dir:"auto"},_.x(_.j$,{text:H,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Me");_.sZg=_.H1(function(d){var H=d.data;var K=d.overlayDensity;d=_.n7(function(){H().onTapCommand&&_.EG(H().onTapCommand);return!1});
var c=_.XN(),p=function(){return(K==null?void 0:K())===1?22:16},g={};
return _.x("reel-sound-metadata-view-model",{class:_.xM("ytReelSoundMetadataViewModelHost",(g.ytReelSoundMetadataViewModelHostLarge=function(){return(K==null?void 0:K())===1},g)),
"on:click":d,tabindex:0,role:"button","on:keydown":c},_.x("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.x(_.n,{cond:function(){return H().musicIcon},
then:function(a){return _.x(_.d7,{data:a,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:p})}}),_.x("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.x(JZq,{text:function(){return H().soundMetadata},
enableMarqueeScroll:function(){return!!H().enableMarqueeScroll},
large:function(){return(K==null?void 0:K())===1}}))))},"Ne");var FbG,Ztv,PX,YU1,SUZ,tTU,btb,yZO;FbG=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];Ztv=_.iT("wil_icon_max_concurrent_fetches",Infinity);
PX=function(d,H,K){var c=this;this.iconSet=d;this.appDirection=H;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.KF.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.h("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.h("wil_icon_network_first");this.renderWhenIdle=_.h("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.h("wil_icon_load_immediately");this.isPurging=!1;d=function(){c.cacheStorageAvailable&&(c.cacheStorageAsync=_.KF.caches.open("yt-icons").then(function(g){return c.cacheStorageSync=g}).catch(function(){c.cacheStorageAvailable=!1}))};
K=(K==null?void 0:K())||{};K=_.q(Object.entries(K));for(H=K.next();!H.done;H=K.next()){var p=_.q(H.value);H=p.next().value;p=p.next().value;p=n6(p);Tqv(p);this.iconCache[H]=p.cloneNode(!0)}this.isPurging=QZO(this);this.isPurging instanceof Promise?this.isPurging.then(d):d()};
_.Ap4=function(d,H){var K=d.resolveIcon(H);return K?d.renderingMode===1?tTU(d,K,d.renderingMode):(H=d.iconCache[K.url])?(H=H.cloneNode(!0),YU1(d,H),tTU(d,K,d.renderingMode,H)):_.OtS(d,K).then(function(c){var p=c?0:1;YU1(d,c);return tTU(d,K,p,c)}):(_.Xi(new _.m1("Icon not found",{iconShape:H})),function(){})};
YU1=function(d,H){if(H){d.counter+=1;d="_yt"+d.counter;H=[H].concat(_.ru(H.getElementsByTagName("*")));H=_.q(H);for(var K=H.next();!K.done;K=H.next())if(K=K.value,K.tagName==="style"&&K.textContent)K.textContent=SUZ(K.textContent,d,!0);else for(var c=_.q(K.attributes),p=c.next();!p.done;p=c.next()){p=p.value;p.name==="id"&&(p.value+=d);["mask","fill","clip-path"].includes(p.name)&&(p.value=SUZ(p.value,d));if(p.name==="style"){var g=K.style;try{g.cssText=SUZ(g.cssText,d,!0)}catch(R){var a=void 0,e=
void 0,k=void 0,C=void 0;uK({error:((a=R)==null?void 0:(k=(e=a).toString)==null?void 0:k.call(e))||"",el:K.outerHTML,style:!!g,cssText:(C=g)==null?void 0:C.cssText})}}p.name==="xlink:href"&&(p.value=p.value.replace(/#(.*)/,"#$1"+d))}}};
SUZ=function(d,H,K){var c=/url\(["']?#(.*?)["']?\)/;(K===void 0?0:K)&&(c=/url\(["']?#(.*?)["']?\)/g);return d.replace(c,"url(#$1"+H+")")};
tTU=function(d,H,K,c){return function(p,g){var a=Object.assign({},{iconColor:"currentcolor",iconWidth:H.size+"px",iconHeight:H.size+"px",iconDisplay:"block"},g);g=_.x1("DIV");var e=a.iconColor,k=a.iconFilter;a="width: "+a.iconWidth+"; height: "+a.iconHeight+"; display: "+a.iconDisplay+";";k&&(a+=" filter: "+k+";");K===0&&(a+=" fill: "+e+";");K===1&&(k=H.url,a+=" -webkit-mask: url("+k+") no-repeat center / cover; mask: url("+(k+") no-repeat center / cover; background-color: ")+e);H.allowMirroring&&
d.appDirection==="rtl"&&(a+=" transform: scale(-1, 1); transform-origin: center center;");g.setAttribute("style",a);K===0&&c&&g.appendChild(c);p.appendChild(g)}};
_.OtS=function(d,H){var K,c,p;return _.l(function(g){K=function(a){return tL(a)};
c=H.url;if(!E0O(c))throw Error("lj");p=yZO(d,c);return g.return(p.then(function(a){return a.clone().text()}).then(function(a){var e=K(a);
a=H.size;var k=_.x1("DIV");_.AL(k,e);e=_.nA(k.firstElementChild!==void 0?k.firstElementChild:_.yNS(k.firstChild,!0));a=Tqv(e,a);d.iconCache[c]=a.cloneNode(!0);delete d.responsePromises[c];return a}).catch(function(){}))})};
btb=function(d){var H,K=(H=d.requestAninmationFrameResolver)==null?void 0:H.promise;K||(d.requestAninmationFrameResolver=new _.ki,K=d.requestAninmationFrameResolver.promise,_.KF.requestAnimationFrame(function(){var c;(c=d.requestAninmationFrameResolver)==null||c.resolve();d.requestAninmationFrameResolver=null}));
return K};
yZO=function(d,H){var K,c;return _.l(function(p){if(p.nextAddress==1)return d.waitForAnimationFrame?p.yield(btb(d),2):p.jumpTo(2);K=d.responsePromises[H];K||(c=function(){var g,a,e;return _.l(function(k){switch(k.nextAddress){case 1:if(!d.cacheStorageAvailable){g=void 0;k.jumpTo(2);break}if(a=d.cacheStorageSync){k.jumpTo(3);break}return k.yield(d.cacheStorageAsync,4);case 4:a=k.yieldResult;case 3:g=a;case 2:return e=g,d.isNetworkFirstStrategy?k.return(d.fetchAndUpdateCache(H,e).catch(d.getCacheStorageResponse.bind(d,
H,e))):k.return(d.getCacheStorageResponse(H,e).catch(d.fetchAndUpdateCache.bind(d,H,e)))}})},K=d.renderWhenIdle?new Promise(function(g,a){_.mf(_.Xp,function(){c().then(g).catch(a)},10)}):c(),d.responsePromises[H]=K);
return p.return(K.catch(function(g){delete d.responsePromises[H];uK({error:(g==null?0:g.toString)?g.toString():"",url:H});throw g;}))})};
PX.prototype.fetchAndUpdateCache=function(d,H){var K=this;return _.l(function(c){return c.return(NqZ(K,d).then(function(p){DSS(K,d,p,H);return p}))})};
var NqZ=function(d,H){var K;return _.l(function(c){if(d.numFetches<Ztv)return d.numFetches+=1,c.return(f5g(d,H).finally(function(){--d.numFetches;if(Object.keys(d.queuedResponseResolvers).length){var p=Object.keys(d.queuedResponseResolvers)[0],g=d.queuedResponseResolvers[p];delete d.queuedResponseResolvers[p];g.resolve(NqZ(d,p))}}));
K=new _.ki;d.queuedResponseResolvers[H]=K;return c.return(K.promise)})},f5g=function(d,H,K){K=K===void 0?2:K;
var c;return _.l(function(p){c={credentials:"same-origin",priority:"low"};return p.return(_.KF.fetch(H,c).then(function(g){return g.ok?g:Promise.reject(Error("mj`"+g.status+"`"+g.statusText))}).catch(function(g){if(K>0)return f5g(d,H,K-1);
throw g;}))})},DSS=function(d,H,K,c){_.l(function(p){return c?p.return(new Promise(function(g){_.mf(_.Xp,function(){var a,e;
return _.l(function(k){switch(k.nextAddress){case 1:if(!d.isNetworkFirstStrategy){a=void 0;k.jumpTo(2);break}return k.yield(c.match(H).catch(function(){}),3);
case 3:a=k.yieldResult;case 2:if(e=a){k.jumpTo(4);break}return k.yield(c.put(H,K.clone()).catch(function(C){uK({error:(C==null?0:C.toString)?C.toString():"",url:H})}),4);
case 4:g(),_.VE(k)}})},50)})):p.return()})};
PX.prototype.getCacheStorageResponse=function(d,H){return _.l(function(K){return H?K.return(H.match(d).then(function(c){return c&&c.ok?c:Promise.reject()})):K.return(Promise.reject())})};
var Tqv=function(d,H){H===void 0||d.getAttribute("viewBox")||d.setAttribute("viewBox","0 0 "+H+" "+H);d.setAttribute("focusable","false");d.setAttribute("aria-hidden","true");try{d.style.pointerEvents="none",d.style.display="inherit",d.style.width="100%",d.style.height="100%"}catch(p){var K;uK({error:((K=p)==null?0:K.toString)?p.toString():""});try{d.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(g){var c;uK({error:((c=g)==null?0:c.toString)?g.toString():
""})}}return d},E0O=function(d){for(var H=_.q(FbG),K=H.next();!K.done;K=H.next())if(d.startsWith(K.value)&&d.endsWith(".svg"))return!0;
return!1};
PX.prototype.resolveIcon=function(d){return this.iconSet.resolveIcon(d)};
var uK=function(d){_.Jf(new _.m1("Error in IconManager",d))},QZO=function(d){if(_.h("wil_icons_cache_purge_killswitch"))return!1;
try{var H=_.KF.localStorage}catch(g){return!1}if(!H||!d.cacheStorageAvailable)return!1;var K=function(g){try{var a;(a=H)==null||a.setItem("yt-icons-last-purged",g.toString())}catch(k){var e;uK({error:((e=k)==null?0:e.toString)?k.toString():""})}},c=Number(H.getItem("yt-icons-last-purged"));
if(!c)return c=new Date,c=c.setDate(c.getDate()-Math.floor(Math.random()*90+1)),K(c),!1;if(function(g,a){g=new Date(g);a=new Date(a);return a.getMonth()-g.getMonth()+12*(a.getFullYear()-g.getFullYear())}(c,Date.now())<3)return!1;
try{return _.KF.caches.delete("yt-icons").then(function(g){g&&K(Date.now());return g}).catch(function(){return!1}).finally(function(){d.isPurging=!1})}catch(g){var p;
uK({error:((p=g)==null?0:p.toString)?g.toString():""});return!1}};
PX[fG]=[ESl,_.jv,_.$p(Ndg)];_.I7=function(d,H){this.iconManager=d;this.iconsToFetch=H};
_.I7[fG]=[_.xv,_.$p(bPg)];var AZv=function(){};var jZ1=function(d,H,K){this.requestKey=d;this.oKD=H;this.sp6=K;this.n8A=function(){return new XMLHttpRequest};
this.bv7=void 0;this.oQf=[]};
jZ1.prototype.getLatestChallengeResponse=function(){return this.sp6};
var AAg=function(d,H,K){var c,p,g,a;return _.l(function(e){if(e.nextAddress==1){_.sa("attestation_challenge_fetch");_.Fw("att_fs",void 0,"attestation_challenge_fetch");if(!d.bv7)throw new _.mU(9,"Missing fetcher");return e.yield(d.bv7(H,K),2)}c=e.yieldResult;g=(p=c)==null?void 0:p.bgChallenge;if(!g)throw new _.mU(15,"Missing field");d.sp6=c;d.oQf.forEach(function(k){k(c)});
a=Qyl(g);_.Fw("att_fc",void 0,"attestation_challenge_fetch");JO("attestation_challenge_fetch");return e.return(a)})},VXd=function(d,H){var K,c,p,g,a;
return _.l(function(e){switch(e.nextAddress){case 1:K=new ir(100,3E5,.25,2),c=void 0;case 2:if(!(K.currBackoffCount_<10)){e.jumpTo(4);break}_.e2(e,5);if(!(K.currBackoffCount_>0)){e.jumpTo(7);break}return e.yield(b3X(K.getValue()),7);case 7:return e.yield(v05(d,H),9);case 9:return p=e.yieldResult,e.return(p);case 5:g=_.RV(e);g instanceof _.mU?c=g:(a=g instanceof Error?g.message:"Unknown",c=new _.mU(9,a));izg(K);e.jumpTo(2);break;case 4:if(c)throw c;throw new _.mU(9,"Unknown error");}})},v05=function(d,
H){H=Qr7(tu0(new TsX,H),d.requestKey);
var K=new _.ki,c=d.n8A();c.open("POST",d.oKD);c.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");c.setRequestHeader("Content-Type","application/json+protobuf");c.onload=function(){if(_.JO5(c)){var p=D_3(c.responseText);K.resolve(p)}else K.reject(new _.mU(_.DMh(_.qQ(c)),c.statusText))};
c.onerror=function(){K.reject(new _.mU(_.DMh(_.qQ(c)),c.statusText))};
c.send(H.serialize());return K.promise};var Hct=function(d){this.networkStatusManager=d;this.isDownloaded=EcX===void 0?function(){return!1}:EcX;
this.isReady=!1;this.g8B=dNO(this)},dNO=function(d){var H;
return _.l(function(K){if(K.nextAddress==1)return K.yield(IYC(),2);if(K.nextAddress!=3)return H=K.yieldResult,K.yield(qH0(H),3);d.iK=K.yieldResult;DXY(d.iK).then(function(){d.isReady=!0});
return K.return(d.iK)})},$N1=function(d,H,K){d.iK?(d=d.iK.ijt({wF:K,
iEY:!0,mx7:!0}),H.serviceIntegrityDimensions={poToken:d}):_.z5(Error("oj"))};
Hct.prototype.processContext=function(d){var H=this;if(!d.input.match(_.H5(gxX)))return _.fa();var K=d.innerTubeRequest,c=K.videoId;return!c||this.isDownloaded(K)||this.networkStatusManager&&!this.iK&&!this.networkStatusManager.isNetworkAvailable()?_.fa():this.iK?this.isReady?($N1(this,K,c),_.fa()):new Dg(DXY(this.iK).then(function(){$N1(H,K,c)})):new Dg(this.g8B.then(function(p){return _.l(function(g){if(g.nextAddress==1)return g.yield(DXY(p),2);
$N1(H,K,c);_.VE(g)})}))};var KrG=new _.Av("WEB_PO_CONTEXT_PROCESSOR");var cLS=function(d,H){var K=this;this.kR3=0;var c;this.m5t=(c=H==null?void 0:H.m5t)!=null?c:window;this.networkStatusManagerPromise=H==null?void 0:H.networkStatusManagerPromise;var p;this.requestKey=(p=H==null?void 0:H.requestKey)!=null?p:_.GJ("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var g;this.hzZ=(g=H==null?void 0:H.hzZ)!=null?g:function(k){return new B9(k)};
var a;c=(a=H==null?void 0:H.auB)!=null?a:function(k,C,R){return new jZ1(k,C,R)};
this.bgChallenge=Qyl(d.bgChallenge);this.ttlSeconds=tQC(E7(d.challenge||""));this.dJ=c(this.requestKey,_.h("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.KF.location.hostname)?"/api/jnn/v1/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",d);NHE(this.dJ);var e;this.qXv=(e=H==null?void 0:H.qXv)!=null?e:function(k){_.Iq(K.m5t.document,"visibilitychange",function(){K.m5t.document.visibilityState===
"visible"&&k()})}},gOZ=function(d){if(!d.vm){var H={maxAttempts:5,
yLZ:d.ttlSeconds*1E3};foC(d.m5t);d.vm=d.hzZ({dJ:d.dJ,toV:{disable:_.h("html5_web_po_disable_remote_logging"),pS:"aGIf",gbD:rOM("html5_web_po_experiment_ids"),qYv:_.h("wpo_dis_lfdms")?0:1E3,cjF:function(c){var p=gQ3.get(c);p||(p=new phX(c),p=new a4(p),gQ3.set(c,p));return p}},
s3j:H,lLQ:d.bgChallenge,at6:AkX});d.kR3=Date.now();yA0(d.vm,function(){d.kR3=Date.now()});
zhC(d.vm,function(){return _.l(function(c){return c.return(peT(d))})});
var K=d.fvd.bind(d);d.networkStatusManagerPromise&&d.ttlSeconds>0&&d.networkStatusManagerPromise.then(function(c){c.listen("publicytnetworkstatus-online",K)});
d.qXv(K)}};
cLS.prototype.fvd=function(){if(Date.now()>this.kR3+this.ttlSeconds*1E3){var d;(d=this.vm)==null||E5S(d)}};
var peT=function(d){if(d.wCx)return d.wCx;if(!d.vm)throw Error("pj");d.wCx=new sL({vm:d.vm,dJ:d.dJ,uzk:!0,onError:AkX});return d.wCx},vIL=function(d,H){d=new cLS(d,H);
gOZ(d);peT(d)};var rC=function(d,H){this.store=d;this.queue=[];H==null||H.addEventListener("yt-navigate-start",this.reset.bind(this))};
rC.prototype.enqueue=function(d){var H=d.command,K=d.durationMs,c=d.elementToFocus;var p=d.label;var g=d.elementToFocus;d.command?p=_.Vz("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:p,shortcut:_.Vz("SHIFT_PLUS_ENTER")}):g&&(d=p+". "+_.Vz("SHIFT_PLUS_ENTER")+" for more information.",p=_.Vz("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:p,shortcut:_.Vz("SHIFT_PLUS_ENTER")},d));K={announcement:p,durationMs:K!=null?K:8E3};H?K.command=H:c&&(c.classList.add("ephemeral-action-focusable-element"),K.selector=c.tagName+
".ephemeral-action-focusable-element");this.queue.push(K);icq(this)};
rC.prototype.activate=function(d){var H=_.ppi(this.store.getState());if(H){if(H==null?0:H.command)_.Yv(H.command),this.store.dispatch(HQ3(null));if(H==null?0:H.selector)H=document.querySelector(H.selector),_.NfC(H);d.preventDefault()}};
var icq=function(d){if(!_.ppi(d.store.getState())&&d.queue.length){var H=d.queue.shift();H&&(d.previousAnnouncement===H.announcement&&(H.announcement+="\u00a0"),d.store.dispatch(HQ3(H)),d.previousAnnouncement=H.announcement,d.timeoutId=setTimeout(function(){if(H.selector){var K;(K=document.querySelector(H.selector))==null||K.classList.remove("ephemeral-action-focusable-element")}d.store.dispatch(HQ3(null));icq(d)},H.durationMs))}};
rC.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(HQ3(null));this.queue.length=0;this.timeoutId=void 0};
rC[fG]=[_.t$,_.$p(_.Pm)];_.WX=new _.Av("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var GC0=window.AbortController||CWC;var oOg=new _.Av("AUTH_SERVICE_TOKEN");var $uM=_.y$(["about:blank"]),HZM;var BX=new _.Av("API_IFRAME_TOKEN"),qH5=new _.Av("FETCH_FN_TOKEN"),awb=new _.Av("PARSE_FN_TOKEN"),lwv=new _.Av("WINDOW_REQUEST_TOKEN"),e_U=new _.Av("TEXT_DECODER_TOKEN");var A_A;A_A=new _.Av("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.kCg=new _.Av("MISC_UI_SHARED_FLAGS_TOKEN");var xNt=function(){};
xNt.prototype.getFlag=function(d){if(d.configType!==2)throw Error("qj");return nOj(d)};
var nOj=function(d){switch(d.flagType){case "bool":return _.h(d.flagName);case "int":return _.X7(_.iT(d.flagName));case "double":return _.iT(d.flagName);case "string":return _.GJ(d.flagName);case "int32_list":return rOM(d.flagName);case "int64_list":return rOM(d.flagName).map(function(H){return _.X7(H)});
case "string_list":return _.o5(d.flagName);default:throw Error("rj");}};var zE=function(d,H,K){H=H===void 0?{}:H;Wq.call(this,K===void 0?"uninitialized":K);this.env=d;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];H.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=H.shouldWaitOnAsyncImmediate)};
_.m(zE,Wq);zE.prototype.init=function(d){var H=this,K;return _.l(function(c){if(c.nextAddress==1)return H.processPluginOptions.shouldWaitOnAsyncImmediate?c.yield(d(H.env),2):(d(H.env),c.jumpTo(2));if(c.nextAddress!=4)return H.jobSet?c.yield(H.jobSet.completedResolver.promise,4):c.jumpTo(4);K=_.OT();K.parkOrScheduleJob(function(){H.transition("rendering")},10,"ci");
_.VE(c)})};
zE.prototype.initialRender=function(d){var H=this,K;return _.l(function(c){if(c.nextAddress==1)return H.processPluginOptions.shouldWaitOnAsyncImmediate?c.yield(d(H.env),2):(d(H.env),c.jumpTo(2));if(c.nextAddress!=4)return H.jobSet?c.yield(H.jobSet.completedResolver.promise,4):c.jumpTo(4);K=_.OT();K.parkOrScheduleJob(function(){H.transition("rendered")},10,"cr");
_.VE(c)})};
zE.prototype.afterRenderImmediate=function(d){var H=this,K;return _.l(function(c){if(c.nextAddress==1)return H.processPluginOptions.shouldWaitOnAsyncImmediate?c.yield(d(H.env),2):(d(H.env),c.jumpTo(2));if(c.nextAddress!=4)return H.jobSet?c.yield(H.jobSet.completedResolver.promise,4):c.jumpTo(4);K=_.OT();K.parkOrScheduleJob(function(){H.transition("after-render-deferred")},10,"carml");
_.VE(c)})};
zE.prototype.afterRenderDeferred=function(d){var H=this;return _.l(function(K){d(H.env);_.VE(K)})};var C_5;_.sS("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});C_5={};_.R_j=(C_5.CSI=ob1(),C_5.ECATCHER=GdF(),C_5);var VE0={},UNO=(VE0.rendered={priority:0,callback:function(d){JwU(d.injector.resolve(wz))}},VE0);var dyf=new _.Av("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),h_g=new _.Av("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var Lr5=function(d){this.callbackFnMap=d;this.configMap={}};
Lr5.prototype.handleResponse=function(d){var H;if(d=(H=d.responseContext)==null?void 0:H.serviceTrackingParams)for(H=_.q(d),d=H.next();!d.done;d=H.next()){d=d.value;var K=d.params,c=d.service;if(K&&c){this.configMap[c]||(this.configMap[c]=new JY3);d=this.configMap[c];var p=void 0,g=(p=this.callbackFnMap)==null?void 0:p[c];K=_.q(K);for(c=K.next();!c.done;c=K.next())p=c.value,c=p.key,p=p.value,c&&p&&(d.set(c,p),g&&g(c,p))}}};
Lr5[fG]=[_.$p(h_g)];var MEU=!1,kdl=0,qpE=null,e0E=null;var mNq=new _.Av("NETWORK_SLI_TOKEN");var weT=function(d,H,K,c,p){this.networkSli=d;this.fetchFn=H;this.parseFn=K;this.requestFn=c;this.JSC$18411_textDecoder=p};
weT.prototype.fetch=function(d,H,K){var c=this,p,g,a;return _.l(function(e){p=P_Z(c,d,H);a=(g=c.fetchFn)!=null?g:fetch;return e.return(a(p).then(function(k){return c.handleResponse(k,K)}).catch(function(k){_.Jf(k);
if((K==null?0:K.expectJsonStrict)&&k instanceof MG&&k.errorType===1)return Promise.reject(k)}))})};
var q03=function(d,H,K,c){var p,g,a,e,k,C,R;return _.l(function(V){switch(V.nextAddress){case 1:return p=P_Z(d,H,K),_.e2(V,2),V.yield(fetch(p),4);case 4:g=V.yieldResult;_.Em(V,3);break;case 2:throw _.RV(V),new MG(2,"Failed to parse streaming response",p.url);case 3:if(!g.redirected&&!g.ok)throw(a=d.networkSli)==null||a.failure(),new _.m1("Streaming fetch request not ok",p.url);if(!g.body)throw new _.m1("No response body in streaming response",p.url);e={};if(_.h("web_streaming_fast"))return k=g.body.getReader(),
V.return(uaT(d,k,e,c));C=g.body.pipeThrough(new TextDecoderStream).getReader();R=new _.gi;return V.return(Iwg(d,C,R,VUi,e,c))}})},P_Z=function(d,H,K){if(d.networkSli){var c=_.kp(_.$W(H,"key"))||"/UNKNOWN_PATH";
d.networkSli.start(c)}c=K;_.h("wug_networking_gzip_request")&&(c=YID(K));var p;return new ((p=d.requestFn)!=null?p:window.Request)(H,c)},uaT=function(d,H,K,c){var p,g,a,e,k,C,R,V,U,L,w;
return _.l(function(W){switch(W.nextAddress){case 1:p=d.JSC$18411_textDecoder?new d.JSC$18411_textDecoder("utf-8"):new TextDecoder("utf-8"),g="",a=function(J){J=J.trim();J.length!==0&&J!=="]"&&J!=="["?(J.startsWith("[")&&(J=J.substring(1)),J.endsWith("]")&&(J=J.slice(0,-1)),J.endsWith(",")&&(J=J.slice(0,-1)),J=J.trim()):J=void 0;if(J)try{var F=JSON.parse(J);VUi(K,F);c==null||c(K,F)}catch(Y){throw new MG(1,"Failed to parse streaming response",J);}},_.e2(W,2,3);
case 5:return W.yield(H.read(),8);case 8:e=W.yieldResult;k=e.value;if(C=e.done)return g.length>0&&a(g),R=void 0,(R=d.networkSli)==null||R.success(),W.return(K);g+=p.decode(k,{stream:!0});V=g.split("\n");g=V.pop()||"";U=_.q(V);for(L=U.next();!L.done;L=U.next())w=L.value,a(w);W.jumpTo(5);break;case 3:_.xs(W);H.releaseLock();_.Cz(W,0);break;case 2:throw _.RV(W),new MG(1,"Failed to parse streaming response");}})},Iwg=function(d,H,K,c,p,g){var a,e,k,C,R,V,U,L,w;
return _.l(function(W){if(W.nextAddress==1)return W.yield(H.read(),2);a=W.yieldResult;e=a.value;if(k=a.done)return(C=d.networkSli)==null||C.success(),W.return(p);try{R=K.parse(e)}catch(J){throw new MG(1,"Failed to parse streaming response",e);}if(R!=null)for(V=_.q(R),U=V.next();!U.done;U=V.next())L=U.value,c(p,L),w=void 0,(w=g)==null||w(p,L);return W.return(Iwg(d,H,K,c,p,g))})};
weT.prototype.handleResponse=function(d,H){var K,c=(K=this.parseFn)!=null?K:JSON.parse;K=d.text().then(function(p){if((H==null?0:H.jspbResponseCtor)&&d.ok)return TS5(H.jspbResponseCtor,p);p=p.replace(")]}'","");if((H==null?0:H.expectJsonStrict)&&p)try{var g=c(p)}catch(e){throw new MG(1,"JSON parsing failed after fetch");}var a;return(a=g)!=null?a:c(p)});
d.redirected||d.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),K=K.then(function(p){_.Jf(new _.m1("Error: API fetch failed",d.status,d.url,p));return Object.assign({},p,{errorMetadata:{status:d.status}})}));
return K};
weT[fG]=[_.$p(mNq),_.$p(qH5),_.$p(awb),_.$p(lwv),_.$p(e_U)];var rLU=new _.Av("NETWORK_MANAGER_TOKEN");var WrO=[1,2,4,8,16,30],z_t=function(d){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=d.maxTimeMs;this.maxFrameCount=d.maxFrameCount===void 0?Math.ceil(60*d.maxTimeMs/1E3):d.maxFrameCount;d=_.q(WrO);for(var H=d.next();!H.done;H=d.next())this.brokenFrameSummarizers.push(new BS5(H.value/60*1E3))},Xe1=function(d){var H=d.frameCountInternal>=d.maxFrameCount;
return d.elapsedTimeMs>=d.maxTimeMs||H};
z_t.prototype.summarize=function(){for(var d=[],H=_.q(this.brokenFrameSummarizers),K=H.next();!K.done;K=H.next())K=K.value,K=K.brokenFrameCount!==0?{severityMs:Math.round(K.targetFrameTimeMs),eventCount:K.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(K.averageDurationBetweenEventsMs)}:void 0,K&&d.push(K);return{summaries:d,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.H3.Object.defineProperties(z_t.prototype,{elapsedTimeMs:{configurable:!0,enumerable:!0,get:function(){return this.startTime===void 0||this.prevTime===void 0?0:this.prevTime-this.startTime}},
frameCount:{configurable:!0,enumerable:!0,get:function(){return this.frameCountInternal}}});
var BS5=function(d){this.targetFrameTimeMs=d;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.H3.Object.defineProperties(BS5.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var JLU=function(){};
JLU.prototype.start=function(d,H){var K=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var c=new z_t({maxTimeMs:d});this.monitor=c;this.lastSummaryInternal=void 0;this.metadataToLog=H;return new Promise(function(p){var g=function(a){if(a===void 0)K.stop(),p(void 0);else if(K.monitor!==c)a=Object.assign({},c.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),p(a);else{var e=K.monitor;if(!Xe1(e)){e.frameCountInternal++;if(e.prevTime===
void 0)e.startTime=a;else for(var k=a-e.prevTime,C=_.q(e.brokenFrameSummarizers),R=C.next();!R.done;R=C.next()){R=R.value;var V=R.currTimeMs;R.currTimeMs+=k;k>R.targetFrameTimeMs+2&&(R.brokenFrameCount++,R.timeOfFirstBrokenFrameMs===void 0&&(R.timeOfFirstBrokenFrameMs=V),R.timeOfLastBrokenFrameMs=V)}e.prevTime=a}Xe1(K.monitor)?p(K.stop()):_.Xp.addJob(g,5,0)}};
_.Xp.addJob(g,5,0)})};
JLU.prototype.stop=function(d){if(!this.monitor)return this.lastSummaryInternal;var H=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(H.monitoringDurationMs){d=d!=null?d:this.metadataToLog;var K={droppedFramesSummary:H,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};d&&(K[d.type]=d.data);_.Wd("manualSmoothnessMeasurement",K)}this.monitor=void 0;this.lastSummaryInternal=H;this.metadataToLog=void 0;return H};_.sKZ=new _.Av("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var Frj;Frj=function(d){this.JSC$18434_expiringStorage=new Pb(d)};
_.Zcq=function(d){if(_.xuf()&&(d=_.RkF(_.Lj()+"::"+d)))return new Frj(d)};
Frj.prototype.set=function(d,H,K){K=K!==void 0?Date.now()+K:void 0;this.JSC$18434_expiringStorage.set(d,H,K)};
Frj.prototype.get=function(d){return this.JSC$18434_expiringStorage.get(d)};
Frj.prototype.remove=function(d){this.JSC$18434_expiringStorage.remove(d)};var TSU=new _.Av("SESSION_STORAGE");_.X3=function(){};
_.X3.getInstance=function(){var d=_.OS("ytglobal.storage_");d||(d=new _.X3,_.vb("ytglobal.storage_",d));return d};
_.X3.prototype.estimate=function(){var d,H,K;return _.l(function(c){d=navigator;return((H=d.storage)==null?0:H.estimate)?c.return(d.storage.estimate()):((K=d.webkitTemporaryStorage)==null?0:K.queryUsageAndQuota)?c.return(nb1()):c.return()})};
_.vb("ytglobal.storageClass_",_.X3);var MpE=0;var WdC=!1;var QKg=_.y$(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),tEg=_.y$(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Y5v={"/":_.hJ,"/?feature=ytca":_.hJ,"/feed/downloads":_.v7l};var lE=function(d,H,K){this.JSC$18450_upliftPromise=d;this.store=H;this.JSC$18450_persistentStorePromiseAccessor=K};
lE.prototype.shouldPreferLocalResponse=function(d){return d.browseId==="FEdownloads"||d.browseId==="FEsmart_downloads"&&_.h("kevlar_modern_downloads_page")?!0:!1};
lE.prototype.localInnertubeResponse=function(d){var H=this;return _.l(function(K){return d.browseId==="FEdownloads"?_.h("kevlar_modern_downloads_page")?K.return(YHS(H)):K.return(OcG(H)):d.browseId==="FEsmart_downloads"&&_.h("kevlar_modern_downloads_page")?K.return(SHS(H)):K.return(Promise.reject(Error("tj")))})};
lE.prototype.canProvideFallbackResponse=function(){return!0};
lE.prototype.localFallbackInnertubeResponse=function(d){var H=this,K,c,p;return _.l(function(g){switch(g.nextAddress){case 1:return g.yield(H.JSC$18450_persistentStorePromiseAccessor(),2);case 2:K=g.yieldResult;if(d.browseId!=="SPaccount_downloads"||!K){g.jumpTo(3);break}return g.yield(S6l(K),4);case 4:if(c=g.yieldResult)return g.return(_.d5(c));case 3:return d.browseId==="FEwhat_to_watch"?g.return(EOO(H)):(p=_.h("web_offline_continuation_automatic_retry")||_.h("web_offline_continuation_retry_button"))&&
d.continuation?g.return(yL5(H)):g.return(bcb(H))}})};
var EOO=function(d){var H;return _.l(function(K){if(K.nextAddress==1)return K.yield(d.JSC$18450_upliftPromise,2);H=_.zt1(d.store.getState().entities);return H.length?K.return(NSj(d,H)):K.return(bcb(d))})},OcG=function(d){var H,K;
return _.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$18450_upliftPromise,2);if(c.nextAddress!=3)return H=DN5([{offlineItemSectionRenderer:{}}]),c.yield(fw1(d,H),3);K=c.yieldResult;K.onResponseReceivedActions=[Vv("REFRESH_DOWNLOADS")];return c.return(K)})},YHS=function(d){var H,K,c,p,g,a,e,k,C,R,V,U,L,w,W,J;
return _.l(function(F){if(F.nextAddress==1)return F.yield(d.JSC$18450_upliftPromise,2);if(F.nextAddress!=3)return H=d.store.getState(),K=H.entities,c=_.BW(K),p=_.zR(K),g=_.qsl(H),a=_.oCY(H),e=_.afF(H),k=_.sS5(K),C=_.w0(c),R=_.Xv(K),V=_.QS1(K),U=_.el4(H),L=_.TR(H),w={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.k04(c,p,k,V,g,a,C,R,e,U,L),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},W="",_.h("kevlar_modern_downloads_skip_downloads_title")||
(W=_.Vz("DOWNLOADS",void 0,"Downloads")),F.yield(ALZ(d,w,W),3);J=F.yieldResult;J.onResponseReceivedActions=[Vv("REFRESH_DOWNLOADS")];return F.return(J)})},SHS=function(d){var H,K,c,p,g,a,e,k,C;
return _.l(function(R){if(R.nextAddress==1)return R.yield(d.JSC$18450_upliftPromise,2);if(R.nextAddress!=3)return H=d.store.getState(),K=H.entities,c=_.BW(K),p=_.w0(c),g=_.Xv(K),a={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.nhl(c),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},e=_.Vz("SMART_DOWNLOADS",void 0,"Smart downloads"),k=lx4(p,g),R.yield(ALZ(d,a,e,k),3);C=R.yieldResult;C.onResponseReceivedActions=
[Vv("REFRESH_DOWNLOADS")];return R.return(C)})},bcb=function(d){var H,K;
return _.l(function(c){if(c.nextAddress==1)return c.yield(vK(d.JSC$18450_upliftPromise,d.store),2);H=c.yieldResult;K=DN5([Q81(H)]);return c.return(fw1(d,K))})},yL5=function(d){var H,K,c,p;
return _.l(function(g){if(g.nextAddress==1)return H={},K=d.store.getState().continuation.continuationCommand,_.X4(H,_.YM,K),g.yield(vK(d.JSC$18450_upliftPromise,d.store,H,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);c=g.yieldResult;p={};_.X4(p,_.sjg,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:c}}}],targetId:"browse-feedFEwhat_to_watch"});return g.return({responseContext:{},onResponseReceivedActions:[p]})})},DN5=function(d){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:d}}}}]}}},NSj=function(d,H){var K,c;
return _.l(function(p){var g={contents:U7(H)};K=g&&g.contents?g:{};_.h("kevlar_modern_downloads_page")&&(K=Object.assign({},_.CcM(H),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));c={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:K}}}]}};return p.return(fw1(d,c))})},fw1=function(d,H){var K,c;
return _.l(function(p){if(p.nextAddress==1)return p.yield(d.JSC$18450_persistentStorePromiseAccessor(),2);if(p.nextAddress!=3)return K=p.yieldResult,p.yield(Hw(K),3);c=p.yieldResult;return p.return({responseContext:{},contents:H,topbar:c})})},ALZ=function(d,H,K,c){var p,g;
return _.l(function(a){if(a.nextAddress==1)return a.yield(d.JSC$18450_persistentStorePromiseAccessor(),2);if(a.nextAddress!=3)return p=a.yieldResult,a.yield(Hw(p),3);g=a.yieldResult;var e=a.return;var k=K;var C=c;k=k===void 0?"":k;C=C===void 0?"":C;k={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:k}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Vz("SETTINGS",void 0,"Settings"),accessibilityText:_.Vz("SETTINGS",void 0,"Settings"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",isFullWidth:!0,iconName:"SETTINGS",onTap:{innertubeCommand:_.$L("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:C}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:k};
return e.call(a,{responseContext:{},contents:H,topbar:g,header:{pageHeaderRenderer:k}})})};var jK5=function(){this.moduleRegistry={};this.fetchCount=0};
jK5.prototype.isFetching=function(){return this.fetchCount>0};
var Zd=function(d,H){d.moduleRegistry[H.toString()]={asyncId:H,isFetching:!1};return d};
jK5.prototype.JSC$18461_loadModules=function(){for(var d=this,H=new Map,K=[],c=_.q(_.sH.apply(0,arguments)),p=c.next();!p.done;p=c.next()){p=p.value;var g=this.moduleRegistry[p];g?g.resolver?H.set(p,g.resolver):(g.resolver=new _.ki,H.set(p,g.resolver),K.push(g.asyncId),g.isFetching=!0):(g=new _.ki,H.set(p,g),g.resolve(void 0))}K.length&&(this.fetchCount+=1,_.Lq(_.qG.getMultipleAsync.apply(_.qG,_.ru(K)).then(function(a){for(var e=0;e<K.length;e++){var k=a[e],C=d.moduleRegistry[K[e].toString()];C.isFetching=
!1;C.resolver.resolve(k)}}).catch(function(a){for(var e=_.q(K),k=e.next();!k.done;k=e.next()){k=k.value;
var C=d.moduleRegistry[k.toString()];C.resolver=void 0;C.isFetching=!1;H.get(k.toString()).reject(a)}}),function(){--d.fetchCount}));
return Promise.all([].concat(_.ru(H.values())).map(function(a){return a.promise}))};_.TH=new _.Av("MODULE_REGISTRY_TOKEN");var vO0={},djq=(vO0.rendered={priority:0,callback:function(d){a:{var H=void 0;try{var K;b:{if(_.xF1()){var c=_.CZM(_.Lj()+"::pom");if(c){var p=new ry(c);break b}}p=void 0}var g=(K=p)==null?void 0:K.get("role_text");if(!g)break a;H={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:g}]}}}}}}catch(k){}H&&d.injector.resolve(_.cb).resolveCommand(H)}try{var a=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(a){var e=JSON.parse(a);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
e&&d.injector.resolve(_.cb).resolveCommand(e)}}catch(k){}}},vO0);var HzZ,$jv={},K6O=($jv.initialized={priority:10,callback:function(){HzZ=ha()}},$jv.rendering={callback:function(d){var H;
return _.l(function(K){if(K.nextAddress==1)return K.yield(HzZ,2);H=K.yieldResult;if(!H.endpoint)throw Error("vj`"+_.KF.location.href);Io(d,H);_.VE(K)})}},$jv);var c1Z={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.ru(_.h("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(d){var H=d.stack;if(H.includes("chrome://")||H.includes("chrome-extension://")||d.message.includes("chrome-extension://")||H.includes("moz-extension://")||H.includes("local.adguard.org")||H.includes("auctioneer3.50million.club")||H.includes("youtubedownloader")||H.includes("youtube_home_page")||H.includes("is_youtube_video_no_longer_available")||
H.includes("switchScreenSizeHack")||H.includes("yt_main_big_banner.js")||H.includes("YouTubeCenter.js")||H.includes("/mytube.js")||H.includes("JSON.parseWrapper")||H.includes("/inj_js/common.js")||H.includes("firebug-lite")||H.includes(".repl.co/")||H.includes("linkfix")||H.includes("playAfterAd")||d.message.includes("Access is denied for this document")&&H.includes("<anonymous>")||d.fileName==="user-script"||d.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
H.includes("<anonymous>"))return!0;if(H.includes("https://www.youtube.com"))return!1;d=H.split("\n");if(!d.length)return!1;if(d.length<=3&&H.includes("s.onloadeddata"))return!0;H=0;for(var K=_.q(d),c=K.next();!c.done;c=K.next())c=c.value,(c.includes("https://")||c.includes("http://"))&&H++;return H/d.length>.95},
weight:0},{callback:function(d){return d.message==="Unknown Error"&&d.name.indexOf("NS_")===0},
weight:100},{callback:function(d){if(!_.iv)return!1;var H=d.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||d.message.includes("available to complete this operation"),K=d.stack.includes("webcomponents")&&d.message==="Object doesn't support this action";d=d.message.includes("object that does not implement interface Element");return H||K||d},
weight:0},{callback:function(d){return d.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(d){return d.message==="Operation is not supported"&&(d.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(d){return d.stack.includes("eval code (eval (code:1:1)")||d.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(d){return d.message.includes("Permission denied")&&d.stack.includes("this.domHandler")?!0:d.name.includes("TypeError")&&d.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(d){if(!d.stack)return!1;var H=d.stack.trim().split("\n");H.length&&H[0].endsWith("Error: "+d.message)&&H.shift();H.length&&H[H.length-1].includes("at window.onerror (")&&H.pop();if(!H.length)return!0;if(d.message==="Script error.")return H[0].includes("www.youtube.com")||H.length>=2&&H[0].startsWith("at new")&&H[1].startsWith("at window.onerror");if(d.message==="Unexpected token")return!0;d=_.q(H);for(H=d.next();!H.done;H=d.next())if(H=H.value,!(H.includes("<anonymous>")||
H.startsWith("load@")||H.startsWith("global code@")||H.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(d){return d.message==="Cannot read property 'experiments'"&&d.stack.includes("/s/player/")},
weight:500},{callback:function(d){return d.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(d){return d.stack.includes("/embed.js")?(d.params&&d.params&&(d.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.h("use_error_suppression"))var d=_.Fm("SUPPRESS_CLIENT_ERRORS",!1);else{if(d=_.lv)d=/Chrome\/(\d+)/.exec(_.nF()),d=(d?parseFloat(d[1]):NaN)>=66;d=!(d||_.aB&&_.qJ(65)||_.ZO&&_.qJ(12.1)||AX&&_.qJ(79))}return d},
weight:500}]};var piv={},gsb=(piv.initialized={priority:10,callback:function(d){d.injector.addProvider({provide:c2S,useValue:d.root});d.injector.addProvider({provide:BAT,useValue:lbi});d.injector.addProvider({provide:z6U,useValue:c1Z});var H={};d.injector.addProvider((H.provide=XBU,H.useFactory=function(K,c){return function(){ck4(K,c)}},H[fG]=[BAT,
z6U],H));d.injector.addProvider({provide:Ut,useClass:Ut})}},piv);var izb={},GVS=(izb.initialized={priority:3,callback:function(){var d;if(d=qcl()){d=d.replace("/",".");var H=_.Lo();H.set("tz",d);H.save();d=!0}else d=!1;d||(d=_.Lo(),d.set("utco",-Math.floor((new Date).getTimezoneOffset())),d.save())}},izb);var osZ={},qEg=(osZ.initialized={priority:10,callback:function(d){d.injector.resolve(Ut).start();d=_.Nv();var H=_.Qx("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Qx("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Qx("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Qx("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.iE(_.S4E(),{mainAppWeb:Object.assign({},d,{pageType:H})});_.iE(y4Y(),{mainAppWeb:Object.assign({},d,{pageType:H})});
_.iE(bbF(),{mainAppWeb:d});_.iE(Np4(),{mainAppWeb:d});bnd(function(){_.GH(bbF(),"FAILURE");_.GH(Np4(),"FAILURE")});
y0M();bZ5();p$l()}},osZ);var aKT={},lKq=(aKT.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Fw("dl"),_.OT().processSignal("pcl");else{var d=function(){_.Fw("dl");_.OT().processSignal("pcl");window.removeEventListener("load",d)};
window.addEventListener("load",d)}}},aKT);var e7G={},kVO=(e7G.rendering={priority:0,callback:function(){var d=_.OT();d.parkOrScheduleJob(function(){d.processSignal("eocs")},10,"eor",5E3)}},e7G);var xj1=function(){};
_.m(xj1,YA);
xj1.prototype.resolveCommand=function(d,H){var K,c,p,g,a,e,k,C;return _.l(function(R){p=(K=_.M(d,_.Phl))==null?void 0:(c=K.dialog)==null?void 0:c.commentReplyDialogRenderer;if(!p)throw new _.m1("No dialog in createCommentReplyDialogEndpoint");a=(g=H.form)==null?void 0:g.event;if(!a)throw new _.m1("Event not passed in when resolving command");e=_.q(a.composedPath());for(k=e.next();!k.done;k=e.next())if(C=k.value,C.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||C.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return C.showReplyDialog(p),R.return();
_.VE(R)})};var J3=function(d){this.pageRequestService=d;this.JSC$18476_prefetchCoordinator=R6g()};
_.m(J3,YA);J3.prototype.resolveCommand=function(d){var H=this,K,c,p,g;return _.l(function(a){if(a.nextAddress==1){K=_.M(d,g4l);if((c=K)==null||!c.taskId)throw Error("wj");p=K.taskId;_.e2(a,2);return a.yield(_.pAX(H.pageRequestService,d,{},"").then(function(e){if(!e)throw Error("xj");},function(e){throw Error("yj`"+e);
}),4)}if(a.nextAddress!=2)return h6g(H.JSC$18476_prefetchCoordinator,p),_.Em(a,0);
g=_.RV(a);lK(H.JSC$18476_prefetchCoordinator,p,g);_.VE(a)})};
J3[fG]=[Ui];var sy=function(d){this.innertubeTransportService=d};
_.m(sy,YA);sy.prototype.resolveCommand=function(d){var H=this,K,c;return _.l(function(p){K=_.M(d,cJB);if(K.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||K.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")c=K.boolValue?2:1,_.$R.getInstance().setState(c,!0,!0);return p.yield(_.Nc(H.innertubeTransportService,d),0)})};
sy[fG]=[_.Z8];var F3={},nsG=(F3.addToPlaylistEndpoint=HW(Z9),F3.addToToastAction=HW(Yz),F3.adsControlFlowOpportunityReceivedCommand=HW(Vu),F3.audioTrackSelectActionCommand=HW(nYZ),F3.backgroundAudioPlaybackCommand=HW(vl),F3.captionLanguageSelectActionCommand=HW(dZ),F3.captionPickerEndpoint=HW(Ho),F3.changeMiniAppPlayStateCommand=HW(T$),F3.changeTimelyActionVisibilityCommand=HW(tD),F3.channelCreationFormEndpoint=HW(Bl),F3.clearLocationCommand=HW(Fe),F3.clearUrlParamCommand=HW(Qu),F3.copyLinkCommand=HW(iP),F3.copyTextEndpoint=
HW(LS),F3.createCommentReplyDialogEndpoint=Nii(xj1),F3.createPlaylistServiceEndpoint=HW(Ga),F3.dismissDialogEndpoint=HW(Yj),F3.dismissPlayerOverlayCommand=HW($z),F3.entityUpdateCommand=HW(mY),F3.feedbackEndpoint=HW(un),F3.getAnswerCommand=HW(uMv),F3.getPaymentsClientTokenCommand=HW(E0),F3.getTranscriptEndpoint=HW(O0),F3.googlePaymentBillingCommand=HW(yb),F3.googlePaymentPurchaseManagerCommand=HW(bP),F3.hideEngagementPanelEndpoint=HW(Of),F3.hideSnackbarCommand=HW(XA),F3.insertRichSectionCommand=HW(Xe),
F3.listMutationCommand=HW(Ji),F3.logGtmCommand=HW(z$),F3.notifyDropdownOptionSelectedCommand=HW(ti),F3.openAdAllowlistInstructionCommand=HW(_.Uf),F3.openOnePickAddVideoModalCommand=HW(oN),F3.persistSubscriptionsDisplayPreferencesCommand=HW(xz),F3.pingingEndpoint=HW(hi),F3.playlistEditEndpoint=HW(aN),F3.playlistVotingRefreshPopupCommand=HW(lP),F3.profileCardCommand=HW(RT),F3.refreshPanelEndpoint=HW(Se),F3.saveImageToDeviceEndpoint=HW(M0),F3.scrollToSectionEndpoint=Nii(IDO),F3.seekToVideoTimestampCommand=
HW(KD),F3.selectCountryCommand=HW(nD),F3.setCookieCommand=HW(CD),F3.setLocalStorageCommand=HW(s0),F3.setPrefStorageEntryCommand=HW(Vb),F3.setSettingEndpoint=HW(sy),F3.sfvAudioItemPlaybackCommand=HW(co),F3.shareImageCommand=HW(U0),F3.sharingProviderDataCommand=HW(hD),F3.showAudioTrackPickerActionCommand=HW(wFv),F3.showCaptionLanguageSelectActionCommand=HW(pD),F3.showDialogCommand=HW(bn),F3.showEngagementPanelEndpoint=HW(N0),F3.showSheetCommand=HW(fS),F3.showSnackbarCommand=HW(JD),F3.showTransientPlayerScrimOverlayCommand=
HW(gZ),F3.submitFormWithValidationFlowCommand=HW(Wl),F3.talkToRecsDeselectCommand=HW(FA),F3.talkToRecsNextCommand=HW(ZC),F3.talkToRecsSelectCommand=HW(Ta),F3.talkToRecsUpdateTextCommand=HW(Qb),F3.toggleEngagementPanelCommand=HW(Ai),F3.undoFeedbackEndpoint=HW(rT),F3.updateEngagementPanelContentCommand=HW(je),F3.updateUrlParamCommand=HW(Sd),F3.verifyCommand=HW(Bl),F3.webNativeShareCommand=HW(LD),F3.webSubmitFormCommand=HW(ed),F3.ACK_PLAYABLES_3P_DATA_CONSENT=HW(ML),F3.CANCEL_NAVIGATION=HW(mA),F3.COPY_SHARE_URL=
HW(wZ),F3.MINI_APP_EXIT_DIALOG_SEEN=HW(uP),F3.MINI_APP_OPEN_URL=HW(Po),F3.REQUEST_MINI_APP_FULLSCREEN=HW(IN),F3.RESUME_NAVIGATION=HW(rZ),F3.SHARE_PLAYABLE_WITH_HIGH_SCORE=HW(Wo),F3.TELL_US_WHY=HW(IT),F3);_.h("web_enable_prefetching_videos_on_home")&&(nsG.prefetchWatchCommand=HW(J3),nsG.registerTasksCommand=HW(kP));_.h("enable_share_panel_navigation_logging_fix_on_web")&&(nsG.shareEntityServiceEndpoint=HW(Ef));var lFl=Object.assign({},nsG);var CXO={},R7T=(CXO.initialized={priority:10,callback:jQL},CXO);var V2g={},UjU=(V2g.initialized={callback:function(d){var H={},K={};e$1().install((H.document_disposed={callback:function(){_.h("finalize_all_timelines")?lv5():zT();aWh("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.mgM();var c=d.injector.resolve(Ut);c.intervalId!==void 0&&(c.intervalId&&_.Xp.cancelJob(c.intervalId),c.intervalId=void 0,--c.currentPartitionIndex,c=y3A(c),c>0&&ATB({mainAppWeb:_.Nv(),survivalSli:{partitionMinute:c,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));Od0(b$);Nq!=null&&
Nq.flush();o3&&o3.snapshotAndFlush();c=_.q(gQ3.values());for(var p=c.next();!p.done;p=c.next())p.value.snapshotAndFlush()}},H),(K.flush_logs={callback:function(){_.Bd()}},K))}},V2g);var h70={},L6j=(h70.rendered={priority:0,callback:function(){var d=new r_l;d.increment("STARTED");if(_.Fm("LOGGED_IN")&&!_.Fm("IS_DBSC",!1)&&_.Fm("SERVER_VERSION")!=="test"&&_.Fm("SERVER_VERSION")!=="dev"&&!G3C()&&!iXg()){d.increment("EXECUTING");var H=document.createElement("iframe");H.style.display="none";_.c1E(H,2,_.Xa("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Fm("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(H);d.increment("DONE")}}},
h70);var M2b={},mjt=(M2b.rendered={callback:function(){R6g().resume()}},M2b);var wi0={acknowledgeChannelTouStrikeCommand:uO(Lr),addToPlaylistServiceEndpoint:uO(P7),addToPlaylistEndpoint:uO(P7),addUpcomingEventReminderEndpoint:uO(Ff),browseEndpoint:uO($Uj),channelCreationFormEndpoint:uO(xU),channelCreationServiceEndpoint:uO(nr),claimLegacyYoutubeChannelEndpoint:uO($U),clearSearchHistoryEndpoint:uO(rR),clearWatchHistoryEndpoint:uO(W8),commerceActionCommand:I3(Nh),createBackstagePostEndpoint:uO(fD),createBroadcastCommand:uO(Zl),createCommentEndpoint:uO(aO),createCommentReplyEndpoint:uO(qI),
createLiveChatPollEndpoint:uO(T2),createPlaylistServiceEndpoint:uO(uH),crossAccountChannelTransferEndpoint:uO(Xf),deleteLiveChatMessageCommand:uO(Q3),deletePlaylistEndpoint:uO(Iw),deleteVideoEndpoint:uO(SU),dismissalEndpoint:uO(MI),feedbackEndpoint:uO(mo),flagEndpoint:uO(JU),getAccountSwitcherEndpoint:uO(z2),verifyCommand:uO(DC),getAccountsListInnertubeEndpoint:uO(sB),getCommentsFromInboxCommand:uO(ow),getDownloadActionCommand:uO(n9),getFlowCommand:I3(IO),getKidsBlocklistPickerCommand:uO(sF),getNotificationMenuEndpoint:uO(pBg),
getPaymentInstrumentsParamsCommand:uO(dC),getPaymentsClientTokenCommand:I3(Nh),getPdgBuyFlowCommand:uO(m$),getReportFormEndpoint:uO(Fo),getSearchInVideoCommand:uO(Qs),getAnswerCommand:uO(T7),getSurveyCommand:uO(OF),getTranscriptEndpoint:uO(ys),getPostVideoPreviewEndpoint:uO(jd),decorateMessageEndpoint:uO(AD),likeEndpoint:uO(Cr),liveChatActionEndpoint:uO(Sj),liveChatEndpoint:uO(OB),liveChatItemContextMenuEndpoint:uO(tp),liveChatPurchaseMessageEndpoint:uO(EB),liveChatReplayEndpoint:uO(YU),manageLiveChatUserEndpoint:uO(b2),
metadataUpdateCommand:uO(iH),moderateLiveChatEndpoint:uO(NI),modifyChannelNotificationPreferenceEndpoint:uO(eU),notificationOptOutEndpoint:uO(k$),openSuperStickerBuyFlowCommand:uO(y3),performCommentActionEndpoint:uO(i2),playlistEditEndpoint:uO(W7),playlistEditorEndpoint:uO(rG),recordNotificationInteractionsEndpoint:uO(x$),reelWatchEndpoint:uO(B7),refreshPanelEndpoint:uO(Rw),removeUpcomingEventReminderEndpoint:uO(Dl),resolveLocationCommand:uO(gG),revealBusinessEmailCommand:uO(Kr),searchEndpoint:uO(_.gdt),
sendLiveChatMessageEndpoint:uO(c7),sendLiveChatVoteEndpoint:uO(p9),setSettingEndpoint:uO(RO),shareEntityServiceEndpoint:I3(hp),sharingProviderDataCommand:uO(Y$),showEngagementPanelEndpoint:uO(Vs),showMoreDrawerCommand:uO(hU),showSheetCommand:uO(L9),showDialogCommand:uO(UF),subscribeEndpoint:uO(V3),transcriptSubmitCaptionCorrectionCommand:uO(EF),undoFeedbackEndpoint:uO(P8),unsubscribeEndpoint:uO(UB),updateBackstagePostEndpoint:uO(dR),updateCommentEndpoint:uO(ej),updateCommentReplyEndpoint:uO(l2),updateCommentsSettingsEndpoint:uO(kU),
updateCreatorChannelInnertubeCommand:uO(pr),updateKidsBlacklistEndpoint:uO(Z1),updateEngagementPanelContentCommand:uO(Mh),updatePdgFeatureEnablementCommand:uO(wG),updatedMetadataEndpoint:uO(G7),validateChannelHandleCommand:uO(gR),updateChannelPageSettingsEndpoint:uO(c8),verifyAgeEndpoint:uO(u2),watchEndpoint:I3(Rk),whitelistEditEndpoint:uO(bH),ypcCancelRecurrenceEndpoint:uO(D1),ypcCompleteTransactionEndpoint:uO(f9),ypcFixInstrumentEndpoint:uO(jU),ypcGetCartEndpoint:uO(AU),ypcGetOffersEndpoint:uO(v7),
ypcHandleTransactionEndpoint:I3(HX),ypcLogWalletAnalyticDataEndpoint:uO($P),ypcOffersEndpoint:uO(KE),ypcPauseSubscriptionCommand:uO(cX),ypcRedeemCodeEndpoint:uO(pE),ypcResumeSubscriptionCommand:uO(gC),ypcUpdateFopEndpoint:uO(jU)},ZN={},PXU=(ZN.GET_ACCOUNT_MENU=uO(Jp),ZN.GET_NOTIFICATIONS_MENU=uO(cNG),ZN.GET_NOTIFICATIONS_INBOX=uO(qh),ZN.GET_UNSEEN_NOTIFICATION_COUNT=uO(lH),ZN.GET_USER_MENTION_SUGGESTIONS=uO(vo),ZN.LOAD_GUIDE=uO(Kgg),ZN.SUBMIT_FEEDBACK=uO(wR),ZN),TE={},uUS=(TE.CONTINUATION_REQUEST_TYPE_BROWSE=
uO(H8),TE.CONTINUATION_REQUEST_TYPE_SEARCH=uO(tU),TE.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=uO(Us),TE.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=uO(B8),TE.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=uO(oO),TE.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=uO(G2),TE.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=uO(Xo),TE.CONTINUATION_REQUEST_TYPE_GET_PANEL=uO(C9),TE),IK0={player:I3(Rk),watchNext:uO(V_)},r1q={player:I3(Rk),reelItemWatch:uO(B7),reelWatchSequence:uO(z7)},W6t={watchEndpoint:I3(h$)},Bu1=
{commandEndpointMap:wi0,signalEndpointMap:PXU,continuationEndpointMap:uUS,watchEndpointMap:IK0,reelWatchEndpointMap:r1q,streamingEndpointMap:W6t};var z7T,XiZ,J1v;_.sVv=((XiZ=(z7T=window).matchMedia)==null?void 0:(J1v=XiZ.call(z7T,"(prefers-reduced-motion: reduce)"))==null?void 0:J1v.matches)||!document.startViewTransition;var F6O={},ZzS={disableAllTransitions:_.sVv,ignoredErrors:(F6O.DOCUMENT_HIDDEN=!0,F6O.WINDOW_SIZE_CHANGED=!0,F6O.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,F6O),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var Tu5=_.y$("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n          }\n      ".split(",")),QVO=function(d){this.viewTransitionCoordinator=d;this.isBrowseTransitionEnabled=_.GJ("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.h("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.h("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.h("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){d=_.iT("web_page_transition_exit_ms");var H=_.iT("web_page_transition_wait_ms"),
K=_.iT("web_page_transition_enter_ms"),c=_.iT("web_page_transition_watch_exit_ms"),p=_.iT("web_page_transition_watch_wait_ms"),g=_.iT("web_page_transition_watch_enter_ms");if(!isNaN(d)||!isNaN(H)||!isNaN(K))if(d=WVh(Tu5,d,H,K,c,p,g))H=document.createElement("style"),H.textContent=osC(d),document.head.appendChild(H)}};
QVO.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var d={};this.viewTransitionCoordinator.registerElement(document.documentElement,(d.slide="root-slide",d["lockup-to-watch"]="root-lockup-to-watch",d["learning-journey"]="root-learning-journey",d))}};
_.e2M=function(d,H){d.isLockupToWatchTransitionEnabled&&d.isLockupThumbnailRegistrationEnabled&&(d.registeredLockupThumbnail?d.lockupThumbnailRegisteredFromWatchEndpoint?_.Jf(new _.m1("Lockup thumbnail registration order is incorrect.")):_.Jf(new _.m1("Lockup thumbnail already registered.")):(d.registeredLockupThumbnail=H,_.t2O(d,H)))};
_.t2O=function(d,H){var K={};d.viewTransitionCoordinator.registerElement(H,(K["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",K),!0)};
QVO[fG]=[Pgg];var vbC={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var HpC=["videoPrimaryInfoRenderer","title"],$mD=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var YE1;YE1=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.OzZ=_.H1(function(d){d=_.dg(d,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var H=d.data,K=d.playlistData,c=d.expanded,p=d.onExpandClick,g=d.isReadyToResume,a=function(){var R;return!((R=K())==null||!R.contents)},e=function(){var R=K();
return R&&R.totalVideos&&R.currentIndex!==void 0?R.currentIndex+1+" / "+R.totalVideos:""};
d=_.n7(function(){_.QA(_.Kj().resolve(_.Fb));return!1});
var k=_.n7(function(){a()&&p&&p()}),C={};
return _.x("ytd-miniplayer-info-bar",{class:_.xM("ytdMiniplayerInfoBarHost",(C.ytdMiniplayerInfoBarHasPlaylistData=a,C)),"on:click":k},_.x("div",{class:"ytdMiniplayerInfoBarContent"},_.x("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":d},_.x(_.j$,{text:function(){var R=H();var V=K();if(V==null?0:V.contents){var U;R=(U=_.e3h(V))==null?void 0:U.title}else R=R==null?void 0:R.miniplayerTitle;return KFh(R)},
noEndpoints:!0,ellipsisTruncate:!0})),_.x("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.x(_.n,{cond:g,then:function(){return _.x(KTU,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:YE1})}}),_.x("h1",null,_.x(_.j$,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var R=H();var V=K();R=g()?{simpleText:_.Vz("CONTINUE_WATCHING",void 0,"Continue watching")}:(V==null?0:V.contents)?V.titleText:R==null?void 0:R.miniplayerSubtitle;return KFh(R)},
noEndpoints:!0,ellipsisTruncate:!0})),_.x(_.n,{cond:function(){return!!e()&&!g()},
then:function(){return _.x("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.x("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.x("span",null,e))}}))),_.x(_.n,{cond:a,
then:function(){return _.x("div",{class:"ytdMiniplayerInfoBarExpand"},_.x(_.kk,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(R){p&&(p(),R.stopPropagation())}}},
iconName:function(){return c()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Oe");var SEU;SEU=_.H1(function(d){return _.x("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.x(_.kk,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:d.onTap}},
iconName:"yt-icons:close"}))},"Pe");
_.Esv=_.H1(function(d){d=_.dg(d,{playabilityStatus:void 0,isDisabled:!1});var H=d.size,K=d.playabilityStatus,c=d.isDisabled,p=_.Af("div");d=_.q(_.GO(void 0,void 0,"bJr0Se"));var g=d.next().value,a=d.next().value;d=_.Tv(_.oI);var e=!1,k=function(){return H().height<=0};
_.wc(function(){var U=H(),L=k(),w=g();w&&!L&&w.setInternalSize(U.width,U.height)},"OUOyKb");
_.Is(function(){var U,L,w;return _.l(function(W){if(W.nextAddress==1){U=_.Kj().resolve(_.Fb);L=U.getPlayerElement();if(!U.isMiniplayerActive()||!L||!p.value)return W.return();L.appendTo(p.value);return W.yield(L.getPlayerPromise(),2)}w=W.yieldResult;w.setSizeStyle(!1,!0);a(w);_.VE(W)})});
_.Pk(function(){C()});
_.wc(function(){var U=g();if(U)if(c()){var L=U.getPlayerState();(e=L===-1||L===1||L===3)&&U.pauseVideo()}else C()},"KKHe5");
var C=function(){if(e){e=!1;var U;(U=g())==null||U.playVideo()}},R=_.n7(function(){_.QA(_.Kj().resolve(_.Fb))}),V={};
return _.x("ytd-miniplayer-player-container",{class:_.xM("ytdMiniplayerPlayerContainerHost",(V.ytdMiniplayerPlayerContainerHidden=k,V.ytdMiniplayerPlayerContainerHostShortsPip=d,V)),style:_.UQ({width:function(){return H().width+"px"},
height:function(){return H().height+"px"}})},_.x("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:p}),_.x(_.n,{cond:function(){return!!K()&&!_.zxi(K())},
then:function(){return _.x(oS7,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var U;return((U=K())==null?void 0:U.errorScreen)||null},
status:function(){var U;return((U=K())==null?void 0:U.status)||null}})}}),_.x(_.n,{cond:c,
then:function(){return _.x("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":R},_.x(SEU,{onTap:function(){_.Kj().resolve(_.Fb).close()}}))}}))},"Qe");_.y1O=_.H1(function(d){var H=d.toastData;var K=_.Af("ytd-miniplayer-toast");d=_.q(_.V2(function(){return!!H()}));
var c=d.next().value,p=d.next().value;d=_.q(_.GO(!1,void 0,"xkrBze"));var g=d.next().value,a=d.next().value,e=function(){var R;return _.jG((R=H())==null?void 0:R.data.title)};
_.WE(function(){_.QX.requestAvailability();H()&&p(!1)});
var k,C;_.wc(function(){c()&&(_.GT(K.value,"iron-announce",{text:H().label+" "+e()}),k&&_.Xp.cancelJob(k),k=_.Xp.addLowPriorityJob(function(){a(!0)},2500))},"OTdL1e");
_.wc(function(){g()&&(C&&_.Xp.cancelJob(C),C=_.Xp.addLowPriorityJob(function(){p(!1);a(!1)},300))},"yybqib");
d={};return _.x("ytd-miniplayer-toast",{el:K,class:_.xM("ytdMiniplayerToastHost",(d.ytdMiniplayerToastOpening=function(){return c()},d.ytdMiniplayerToastClosing=function(){return g()},d))},_.x(_.n,{cond:function(){var R;
return(R=H())==null?void 0:R.data},
then:function(R){return _.x(lyd,{className:"ytdMiniplayerToastThumbnail",data:R,width:78})}}),_.x("div",{class:"ytdMiniplayerToastInfo"},_.x("div",{class:"ytdMiniplayerToastLabel"},function(){var R;
return(R=H())==null?void 0:R.label}),_.x("div",{class:"ytdMiniplayerToastTitle"},e)))},"Re");var evF;var nNY=null;var NuZ=_.H1(function(d){var H=d.progressState;var K=d.multiMarkersPlayerBarRenderer;var c=d.progressBarWidth;var p=function(){return Um1(K())},g=function(){return MZD(H())},a=function(){return c()*(H().playedTime/H().videoDuration)};
return _.x("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.x(_.L6,{each:p},function(e,k){return _.x(bzt,{modifiedProps:g,chapters:p,index:k,playedProgressWidth:a,backgroundGradientPosition:function(){var C=g(),R=p(),V=k(),U=a();return(C.playedTime-Ja(_.M(R[V],Xb)))/C.playedTime*U}})}))},"Se"),bzt=_.H1(function(d){var H=d.modifiedProps;
var K=d.chapters;var c=d.index;var p=d.playedProgressWidth;var g=d.backgroundGradientPosition;d={};d=_.xM("ytChapteredProgressBarChapteredPlayerBarChapter",(d.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return a().isScrubbing},d.ytChapteredProgressBarHoveredMacroMarker=function(){return a().scrubberHovering},d.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return a().videoPosition==="seen"},d));
var a=function(){return mml(H(),K(),c())},e=function(){var k=H();
var C=K(),R=c();if(mml(k,C,R).videoPosition!=="active")k=0;else{var V=Ja(_.M(C[R],Xb));k=(k.playedTime-V)/((Ja(_.M(C[R+1],Xb))||k.videoDuration)-V)}return k};
return _.x("div",{class:d,style:_.UQ({width:function(){var k=H(),C=K(),R=c(),V=_.M(C[R],Xb);C=_.M(C[R+1],Xb);return(C?Ja(C)-Ja(V):k.videoDuration-Ja(V))/k.videoDuration*100+"%"},
"background-color":function(){a:{var k=a();switch(k.videoPosition){case "pending":k=k.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":k=k.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:k=""}}return k},
"background-size":function(){return(wLl(a())?p():"")+"px"},
"background-position-x":function(){return(wLl(a())?g():"")+"px"}})},_.x("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var k=H(),C=K(),R=c();if(mml(k,C,R).videoPosition==="seen")var V=0;else V=Ja(_.M(C[R],Xb)),C=Ja(_.M(C[R+1],Xb))||k.videoDuration,k=k.videoDuration*k.percentLoaded,V=C<=k?1:V>=k?0:(k-V)/(C-V);return"width: "+V*100+"%"}}),_.x("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.UQ({width:function(){return e()*100+"%"},
"background-size":function(){return(wLl(a(),e())?p():"")+"px"},
"background-position-x":function(){return(wLl(a(),e())?g():"")+"px"}})}))},"Te");var Dj0=function(d,H){H=H===void 0?g6S:H;var K,c=[],p,g=!1;return function(){var a=_.sH.apply(0,arguments);if(g&&K===this&&H(a,c))return p;p=d.apply(this,a);g=!0;K=this;c=a;return p}}(function(d){var H=d.heatMarkers,K=d.minHeightDp===void 0?0:d.minHeightDp,c=d.maxHeightDp===void 0?60:d.maxHeightDp;
var p=p===void 0?!1:p;var g=1E3/H.length;d=[];d.push({x:0,y:100});for(var a=0;a<H.length;a++){var e=void 0,k=((e=_.M(H[a],Gml))==null?void 0:e.heatMarkerIntensityScoreNormalized)||0;e=(a+.5)*g;k=100-_.zH(k*100,K/321*100,c/321*100);a!==0||p||d.push({x:0,y:k});d.push({x:e,y:k});a===H.length-1&&d.push({x:1E3,y:k})}d.push({x:1E3,y:100});H="";for(K=0;K<d.length;K++)p=d[K],K===0?p="M "+p.x.toFixed(1)+","+p.y.toFixed(1):(c=WNl(d[K-1],d[K-2],p),g=WNl(p,d[K-1],d[K+1],!0),p=" C "+(c.x.toFixed(1)+","+c.y.toFixed(1)+
" "+g.x.toFixed(1)+","+g.y.toFixed(1)+" "+p.x.toFixed(1)+","+p.y.toFixed(1))),H+=p;return H});var fKS=_.H1(function(d){var H=d.progressBarProps;var K=d.config;var c={};d=_.xM("ytHeatSeekerHost",(c.ytHeatSeekerHighContrast=d.highContrast,c));var p=function(){return GWL(K().chapterData)};
return _.x("yt-progress-bar-heatseeker",{class:d,style:function(){var g;return"height: 320px; display: "+(H().isDragging&&((g=p())==null?0:g.heatMarkers)?"block":"none")}},_.x(_.n,{cond:p,
then:function(g){return _.x(_.n,{cond:function(){return g().heatMarkers},
then:function(){return _.x("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.x("path",{d:function(){return Dj0(g())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ue");var A15=_.H1(function(d){var H=d.progressBarProps;var K=d.config;d={};d=_.xM("ytProgressBarLineProgressBarLine",(d.ytProgressBarLineProgressBarLineRounded=function(){return K().rounded},d.ytProgressBarLineProgressBarLineBottomInset=function(){return K().position===2},d));
return _.x("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.x("div",{class:d},_.x("div",{class:"ytProgressBarLineProgressBarBackground"}),_.x("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+H().percentLoaded*100+"%"}}),_.x("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var c=H();return"width: "+(c.videoDuration?_.zH(c.hoveredTime/c.videoDuration,0,1):0)*100+"%"}}),_.x("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+pL4(H())*100+"%"}})))},"Ve");
A15.idomCompat=!0;var jV5=_.H1(function(d){var H=d.progressBarProps;var K=d.playheadData;var c=d.interpolateDotPosition;var p=d.hidePlayhead;d={};var g=_.xM("ytProgressBarPlayheadProgressBarPlayheadDot",(d.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return H().isDragging},d.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!H().isDragging&&p()},d));
return _.x("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.UQ({"margin-left":function(){return gNh(H())*100+"%"},
transform:function(){return"translateX(-"+(c()?gNh(H())*12:6)+"px)"}})},_.x(_.n,{cond:function(){var a;
return(a=_.vj(K)())==null?void 0:a.playheadImage},
then:function(a){var e={};return _.x("div",{class:_.xM("ytProgressBarPlayheadProgressBarPlayheadCustom",(e.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return H().isDragging},e.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!H().isDragging&&p()},e)),
style:_.UQ({"transform-origin":function(){return(c()?gNh(H())*20:10)+"px center"}})},_.x(_.d7,{data:a,
alt:"","aria-hidden":"true"}))},
else:function(){return _.x("div",{class:g,style:_.UQ({"transform-origin":function(){return(c()?gNh(H())*12:6)+"px center"}})})}}))},"We");
jV5.idomCompat=!0;var t3=function(d,H,K,c,p,g){this.getProgressBarRect=d;this.updateProgressBarRect=H;this.getFilmstripYPosition=K;this.setFineScrubbingDraggedTime=c;this.updateFilmStripDraggedYDistance=p;this.resetFilmStripYOffset=g;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.NV(this.onThrottledSeek,100,this)},vs1=function(d,H,K){return function(c){d.handleClick(c,H(),K())}},$6O=function(d,H){return function(K){d6q(d,
K,HBU(K),H())}},KV1=function(d,H){return function(K){d6q(d,K,{x:K.clientX,
y:K.clientY},H())}},pfZ=function(d,H,K){return function(c){var p=H(),g=K();
cAT(d,c,HBU(c),p,g,!0);if(g.onTouchMove)g.onTouchMove(p)}},iBb=function(d,H,K){return function(c){g5O(d,c,H(),K())}},Goj=function(d,H){return function(){d.handleMouseLeave(H())}},o5U=function(d,H,K){return function(){var c=H(),p=K();
YP(d,c,p);if(p.onTouchEnd)p.onTouchEnd(c)}},qYb=function(d,H,K){return function(){var c=H(),p=K();
YP(d,c,p);if(p.onTouchEnd)p.onTouchEnd(c)}},a$S=function(d,H,K){return function(){YP(d,H(),K())}},l$T=function(d){return function(H){if(H.keyCode===39||H.keyCode===38){var K,c;
(K=d())==null||(c=K.playerApi)==null||c.seekBy(5,void 0,void 0,72)}else if(H.keyCode===37||H.keyCode===40){var p,g;(p=d())==null||(g=p.playerApi)==null||g.seekBy(-5,void 0,void 0,71)}}},ec1=function(d,H,K){return function(c){!K().disableScrubbing&&d.startPosition&&g5O(d,c,H(),K())}},koq=function(d,H,K){return function(){if(!K().disableScrubbing)if(d.startPosition){var c=H(),p=K();
YP(d,H(),K());if(p.onTouchEnd)p.onTouchEnd(c)}else H().setState({isDragging:!1})}},HBU=function(d){d=d.touches[0];
return{x:d.clientX,y:d.clientY}},g5O=function(d,H,K,c){if(H.buttons!==1){if(H.movementX||H.movementY)H.preventDefault(),H.stopPropagation(),d=x6U(d,K,H.clientX),K.setState({isHovering:!0,
hoveredTime:d*K.videoDuration})}else n51(K),cAT(d,H,{x:H.clientX,y:H.clientY},K,c,!1)};
t3.prototype.handleMouseLeave=function(d){n51(d)};
var n51=function(d){d.isHovering&&d.setState({isHovering:!1,hoveredTime:0})},d6q=function(d,H,K,c){d.startPosition||(d.startPosition=K,d.updateProgressBarRect(),d.controlsWereVisibleBeforeDragging=c.controlsVisible,H.stopPropagation(),_.h("medium_progress_bar_modification")||H.preventDefault())},cAT=function(d,H,K,c,p,g){if(d.startPosition)if(g&&p.isInlinePlayback&&d.startPosition&&!d.hasDraggedTheMinimumDistance&&Math.abs(K.y-d.startPosition.y)>Math.abs(K.x-d.startPosition.x))YP(d,c,p);
else if(H.preventDefault(),H.stopPropagation(),c.videoDuration&&(d.startPosition&&!d.hasDraggedTheMinimumDistance&&(d.hasDraggedTheMinimumDistance=Math.abs(K.x-d.startPosition.x)>=1),p.enableFineScrubbing&&(d.startPosition&&(d.isDraggedForFineScrubbing=-(K.y-d.startPosition.y)>=60),!d.startPosition||K.y>=d.startPosition.y||(c.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:Pbl(c.draggedTime,c,p.chapterData)}),d.setFineScrubbingDraggedTime(c.draggedTime),d.updateFilmStripDraggedYDistance(d.startPosition.y,
K.y,c))),d.hasDraggedTheMinimumDistance)){H=x6U(d,c,K.x);if(d.isDraggedForFineScrubbing){var a;(a=c.playerApi)==null||a.pauseVideo();c.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:c.draggedTime,filmStripXDistance:Pbl(H*c.videoDuration,c,p.chapterData)})}p.enableFineScrubbing&&(!p.enableFineScrubbing||d.getFilmstripYPosition(c)<68)||c.setState({draggedTime:H*c.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:d.controlsWereVisibleBeforeDragging});var e;(e=
p.cancelAutohideControlsFn)==null||e.call(p)}},YP=function(d,H,K){var c=K.enableFineScrubbing&&H.fineScrubbingActiveState!=="off";
if(H.isDragging||c){c={isDragging:!1,playedTime:H.draggedTime,controlsVisible:d.controlsWereVisibleBeforeDragging};K.enableFineScrubbing&&H.fineScrubbingActiveState!=="on"&&(d.resetFilmStripYOffset(),c.fineScrubbingActiveState="off");var p=p===void 0?nNY:p;var g=_.Fj(0);if(g&&p){var a=Math.round(H.playedTime*1E3),e=Math.round(H.draggedTime*1E3);a>2147483647||e>2147483647||_.AO(g,p,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(a),endMediaTimeMs:String(e),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}H.setState(c);
d.seekThrottle.fire(H.draggedTime,H,7);_.h("mweb_new_progress_bar_play_on_seek")&&d.resumeVideo(H);K.unmuteOnSeek&&(K=H.playerApi,H.volumeMuted&&(K==null||K.unMute()))}else H.setState({controlsVisible:!H.controlsVisible}),(g=K.triggerAutohideControlsAfterDelayFn)==null||g.call(K);d.startPosition=null;d.hasDraggedTheMinimumDistance=!1;d.isDraggedForFineScrubbing=!1;d.controlsWereVisibleBeforeDragging=!1};
t3.prototype.handleClick=function(d,H,K){this.updateProgressBarRect();d.stopPropagation();d=x6U(this,H,d.clientX)*H.videoDuration;H.setState({playedTime:d});if(H.playerState!==2){var c;(c=K.triggerAutohideControlsAfterDelayFn)==null||c.call(K)}this.seekThrottle.fire(d,H,7)};
var x6U=function(d,H,K){d=d.getProgressBarRect(H);return _.zH(0,(K-d.left)/d.width,1)};
t3.prototype.resumeVideo=function(d){if(d.draggedTime<d.videoDuration){var H;(H=d.playerApi)==null||H.playVideo()}};
t3.prototype.onThrottledSeek=function(d,H,K){if(H=H.playerApi){var c;if((c=H.getVideoData())==null?0:c.isLive)c=this.getProgressState(H),d+=(c==null?void 0:c.seekableStart)||0;H.seekTo(d,void 0,void 0,void 0,K)}};
t3.prototype.getProgressState=function(d){var H=d==null?void 0:d.getPresentingPlayerType();return d==null?void 0:d.getProgressState(H)};var VuG,RcZ,U6Z,LVO,Ckg,MuZ,m6U,wf0,PkZ;VuG=_.H1(function(d){var H=d.progressBarProps;var K=d.config;var c=d.progressBarWidthPx;var p=d.chapterData;var g=Bei(H,function(){return K().isShortsPage}),a=function(){return!H().isHovering&&!K().isShortsPage};
d={};var e=_.xM("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(d.ytPlayerStoryboardHostMwebShorts=function(){return K().isShortsPage&&!1},d));
return _.x("yt-player-storyboard",null,_.x(_.n,{cond:function(){return H().isDragging||H().isHovering},
then:function(){return _.x(_.n,{cond:g,then:function(k){return _.x(_.n,{cond:a,then:function(){return _.x("div",{class:e,"aria-hidden":"true"},_.x(Ckg,{props:H,config:K,isBigboard:!0,chapterData:p}))},
else:function(){return _.x(RcZ,{props:H,frame:k,config:K,progressBarWidthPx:c,chapterData:p})}})}})}}))},"Xe");
_.hcG=_.H1(function(d){var H=d.progressBarProps;var K=Bei(H,d.isShortsPage);return _.x("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.x(_.n,{cond:function(){return H().isDragging||H().isHovering},
then:function(){return _.x(_.n,{cond:K,then:function(c){return _.x(U6Z,{frame:c,props:H,isBigboard:!0})}})}}))},"Ye");
RcZ=_.H1(function(d){var H=d.props;var K=d.frame;var c=d.config;var p=d.progressBarWidthPx;d=d.chapterData;var g={};g=_.xM("ytPlayerStoryboardHost",(g.ytPlayerStoryboardHostMwebShorts=function(){return c().isShortsPage&&!1},g.ytPlayerStoryboardHostInlinePlayer=function(){return c().isInlinePlayer},g.ytPlayerStoryboardHostFadeIn=function(){return c().useFadeInAnimation},g));
return _.x("div",{class:g,"aria-hidden":"true",style:function(){var a=H(),e=u_F(K()),k=p();a=IJl(a)/a.videoDuration;var C=k*a,R=e/2+6;e=k-(e/2+6);return"left: "+(C<=R?R/k*100:C>=e?e/k*100:a*100)+"%"}},_.x(_.n,{cond:function(){var a=H();
return!(c().isShortsPage&&a.videoDuration<15)},
then:function(){return _.x(U6Z,{frame:K,props:H,isBigboard:!1})}}),_.x(Ckg,{props:H,
config:c,isBigboard:!1,chapterData:d}))},"Ze");
U6Z=_.H1(function(d){var H=d.frame;var K=d.props;var c=d.isBigboard;var p=function(){var e,k;return(k=(e=K().playerApi)==null?void 0:e.getVideoContentRect())!=null?k:{width:0,height:0}},g=function(){return u_F(H())},a=function(){var e=H();
return e?e.height/e.rows:0};
d={};d=_.xM((d.ytPlayerStoryboardBigboardImageWrapper=c,d.ytPlayerStoryboardStoryboardImageWrapper=function(){return!c()},d));
return _.x("div",{class:d,style:function(){return"width: "+(c()?p().width:g())+"px; height: "+(c()?p().height:a())+"px;"}},_.x(LVO,{frame:H,
storyboardWidth:g,storyboardHeight:a,storyboardScale:function(){return(c()?p().width:g())/g()}}))},"$e");
LVO=_.H1(function(d){var H=d.frame;var K=d.storyboardWidth;var c=d.storyboardHeight;var p=d.storyboardScale;var g=function(){var a=H().row,e=H().column,k=K(),C=c(),R=p();return{left:-e*k*R,top:-a*C*R}};
return _.x("img",{src:function(){return H().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+g().left+"px; top: "+g().top+"px; width: "+H().width*p()+"px; height: "+H().height*p()+"px;"}})},"af");
Ckg=_.H1(function(d){var H=d.props;var K=d.config;var c=d.isBigboard;var p=d.chapterData;d={};d=_.xM("ytPlayerStoryboardMetadata",(d.ytPlayerStoryboardMetadataBigboard=c,d));return _.x("div",{class:d},_.x(_.n,{cond:c,then:function(){return _.x(_.HE,null,_.x(MuZ,{props:H,config:K}),_.x(_.n,{cond:function(){a:{var g=H();var a=K(),e=p(),k;if((a==null?0:a.activeChapter)&&((k=_.M(a==null?void 0:a.activeChapter,Xb))==null?0:k.title))g=!0;else{a=_.q(oNf(e));for(a=a.next();!a.done;a=a.next()){g=(a=_.M(a.value,
qqB))&&rMD(g,a);break a}g=!1}}return g},
then:function(){return _.x(m6U,{props:H,config:K,isBigboard:!0,chapterData:p})}}))},
else:function(){return _.x(_.HE,null,_.x(m6U,{props:H,config:K,isBigboard:!0,chapterData:p}),_.x(MuZ,{props:H,config:K}))}}))},"bf");
MuZ=_.H1(function(d){var H=d.props;var K=d.config;d={};d=_.xM("ytPlayerStoryboardTimestamp",(d.ytPlayerStoryboardTimestampShorts=function(){return K().isShortsPage},d.ytPlayerStoryboardTimestampIsHovering=function(){return H().isHovering||K().isShortsPage&&!0},d));
return _.x("div",{class:d},_.x(_.HE,null,function(){return _.WFi(IJl(H()))}))},"cf");
m6U=_.H1(function(d){var H=d.props;var K=d.config;var c=d.isBigboard;var p=d.chapterData;d={};c=_.xM("ytPlayerStoryboardTitle",(d.ytPlayerStoryboardTitleBigboard=c,d));return _.x("div",{class:c},_.x(_.n,{cond:function(){return!K().isShortsPage},
then:function(){return _.x(wf0,{props:H,activeChapter:function(){return K().activeChapter},
chapterData:p})}}))},"df");
wf0=_.H1(function(d){var H=d.props;var K=d.activeChapter;var c=d.chapterData;return _.x(_.HE,null,_.x(_.L6,{each:function(){return oNf(c())},
keyBy:"INDEX"},function(p){return _.x(_.HE,null,_.x(_.n,{cond:function(){return _.M(p(),qqB)&&rMD(H(),_.M(p(),qqB))},
then:function(){return _.x(PkZ,{timedMarker:function(){return _.M(p(),qqB)}})}}))}),_.x(_.n,{cond:function(){var p;
return K()&&((p=_.M(K(),Xb))==null?void 0:p.title)},
then:function(p){return _.x(_.j$,{text:p,noPreWrap:!0})}}))},"ef");
PkZ=_.H1(function(d){var H=d.timedMarker;return _.x(_.HE,null,_.x("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.x(_.hu,{icon:function(){return H().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.x(_.j$,{text:function(){return H().label},
noPreWrap:!0}))},"ff");_.uF0=_.H1(function(d){var H=d.progressBarProps;var K=d.playheadData;var c=d.config;d=_.Af("yt-progress-bar");var p=_.Af("div"),g=_.Af("div"),a=_.q(_.GO({width:0,left:0},void 0,"NcXsUb")),e=a.next().value,k=a.next().value,C=function(){g.value&&k(g.value.getBoundingClientRect())},R=function(){e().width<=0&&C();
return e()};
$l("resize",C);var V=new t3(R,function(){},function(){return 0},function(){},function(){},function(){}),U=function(){return H()};
a=_.q(_.GO(!1,void 0,"ZsF6Xc"));var L=a.next().value,w=a.next().value;a=_.n7(function(){w(!0);c().position===2?setTimeout(function(){C()},100):C()});
var W=_.n7(function(){w(!1);Goj(V,U)()}),J=_.n7(function(FM){c().doSeekOnClick&&vs1(V,U,c)(FM);
return!1}),F=_.n7(function(FM){$6O(V,U)(FM);
return!1}),Y=_.n7(function(FM){KV1(V,U)(FM);
return!1}),A=_.n7(function(FM){pfZ(V,U,c)(FM);
return!1}),E=_.n7(function(FM){iBb(V,U,c)(FM);
return!1}),N=_.n7(function(){o5U(V,U,c)();
return!1}),y=_.n7(function(){qYb(V,U,c)();
return!1}),v=_.n7(function(){a$S(V,U,c)();
return!1}),el=_.n7(function(FM){l$T(U)(FM);
return!1});
$l("mousemove",ec1(V,U,c));$l("mouseup",koq(V,U,c));_.WE(function(){CbF(p.value);w(!1);C();koq(V,U,c)()});
var l1={};l1=_.xM("ytPlayerProgressBarHost",function(){return c().className},(l1.ytPlayerProgressBarHostReadOnly=function(){return c().disableScrubbing},l1.ytPlayerProgressBarHostHidden=function(){return c().hideProgressBar&&!L()},l1.ytPlayerProgressBarHostLowerPlayer=function(){return c().position===0},l1.ytPlayerProgressBarHostBottomEdge=function(){return c().position===1},l1.ytPlayerProgressBarHostBottomInset=function(){return c().position===2},l1.ytPlayerProgressBarHostCustom=function(){return c().position===
3},l1));
var V4={},Mf=_.xM("ytPlayerProgressBarBackground",(V4.ytPlayerProgressBarBackgroundHide=function(){return c().position===2&&!L()&&!H().isDragging},V4));
V4={};V4=_.xM("ytPlayerProgressBarDragContainer",(V4.ytPlayerProgressBarDragContainerBottomEdge=function(){return c().position===1},V4));
var LF={};LF=_.xM("ytPlayerProgressBarProgressBar",(LF.ytPlayerProgressBarProgressBarInset=function(){return c().position===2},LF.ytPlayerProgressBarProgressBarInsetMinimized=function(){return c().position===2&&!L()&&!H().isDragging},LF));
var YY=function(){return Math.floor(pL4(H())*100)};
return _.x("yt-progress-bar",{el:d,class:l1},_.x(_.n,{cond:function(){return c().position===2},
then:function(){return _.x("div",{class:Mf})}}),_.x("div",{el:p,
"on:click":J,"on:touchstart":F,"on:touchmove":A,"on:mouseenter":a,"on:mousedown":Y,"on:mouseleave":W,"on:mousemove":E,"on:mouseup":y,"on:touchend":N,"on:touchcancel":v,"on:keydown":el,class:V4,role:"slider","aria-valuenow":YY,"aria-valuetext":function(){return YY()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return H().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.Vz("SEEK_SLIDER")},_.x("div",{el:g,class:LF},_.x(fKS,{progressBarProps:H,config:c,highContrast:function(){return!!c().isInlinePlayback}}),_.x(_.n,{cond:function(){return c().chapterData&&q2E(c().chapterData)},
then:function(){return _.x(NuZ,{progressState:H,multiMarkersPlayerBarRenderer:function(){return c().chapterData},
progressBarWidth:function(){return e().width}})},
else:function(){return _.x(A15,{progressBarProps:H,config:c})}}),_.x(jV5,{progressBarProps:H,
playheadData:K,interpolateDotPosition:function(){return c().position!==2},
hidePlayhead:function(){return c().playheadDotBehavior===1&&!L()}}))),_.x(VuG,{progressBarProps:H,
config:function(){return{activeChapter:LFf(H(),c().chapterData),getProgressBarWidthPx:function(){return R().width},
isShortsPage:!!c().isShortsPage,isInlinePlayer:!!c().isInlinePlayback,useFadeInAnimation:!!c().isInlinePlayback}},
progressBarWidthPx:function(){return e().width},
chapterData:function(){return c().chapterData}}))},"gf");
_.uF0.idomCompat=!0;Object.assign({},_.aJ5(),{setState:function(){},
domMeasurements:{},appApi:_.cMD(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var I$U;
_.rAG=_.H1(function(){var d,H=(d=_.si(zvY().playerApi))!=null?d:void 0;d=_.q(_.GO(!1,void 0,"HLFBmb"));var K=d.next().value,c=d.next().value;d=_.q(_.GO(!1,void 0,"lHH9bc"));var p=d.next().value,g=d.next().value;d=_.q(_.GO(!1,void 0,"zsY7yd"));var a=d.next().value,e=d.next().value;d=_.q(_.GO(!1,void 0,"KeHQgc"));var k=d.next().value,C=d.next().value;d=_.q(_.GO(0,void 0,"gLLCj"));var R=d.next().value,V=d.next().value;d=_.q(_.GO(0,void 0,"s3RYkf"));var U=d.next().value,L=d.next().value;d=_.q(_.GO(!1,void 0,
"Dn608e"));var w=d.next().value,W=d.next().value;d=_.q(_.GO(0,void 0,"AnkH1b"));var J=d.next().value,F=d.next().value;d=_.q(_.GO(0,void 0,"QYNL0b"));var Y=d.next().value,A=d.next().value;d=_.q(_.GO("",void 0,"Yzw45d"));var E=d.next().value,N=d.next().value;d=_.q(_.GO(-1,void 0,"iiVI0c"));var y=d.next().value,v=d.next().value,el=_.ey(function(){var l1={controlsVisible:K(),isOverlayHidden:p(),shouldWaitToHideControls:a(),isDragging:k(),isHovering:w(),videoDuration:J(),playedTime:Y(),videoId:E(),draggedTime:U(),
hoveredTime:R(),playerState:y()};return Object.assign({},_.aJ5(),l1,{domMeasurements:{},setState:function(V4){V4.controlsVisible!==void 0&&c(V4.controlsVisible);V4.isOverlayHidden!==void 0&&g(V4.isOverlayHidden);V4.shouldWaitToHideControls!==void 0&&e(V4.shouldWaitToHideControls);V4.isDragging!==void 0&&C(V4.isDragging);V4.isHovering!==void 0&&W(V4.isHovering);V4.draggedTime!==void 0&&L(V4.draggedTime);V4.hoveredTime!==void 0&&V(V4.hoveredTime);V4.videoDuration!==void 0&&F(V4.videoDuration);V4.playedTime!==
void 0&&A(V4.playedTime);V4.videoId!==void 0&&N(V4.videoId);V4.playerState!==void 0&&v(V4.playerState)},
appApi:_.cMD(),playerApi:H})},void 0,"ZW7y9");
_.Is(function(){H==null||H.addEventListener("onVideoProgress",xmY(el));H==null||H.addEventListener("onVideoDataChange",kWD(el));H==null||H.addEventListener("onStateChange",lJY(el))});
_.Pk(function(){if(H==null?0:H.isReady())H==null||H.removeEventListener("onVideoProgress",xmY(el)),H==null||H.removeEventListener("onVideoDataChange",kWD(el)),H==null||H.removeEventListener("onStateChange",lJY(el))});
return _.x("desktop-shorts-player-controls",null,_.x(I$U,{playerControlsProps:el}))},"hf");
I$U=_.H1(function(d){var H=d.playerControlsProps;return _.x("div",{class:"desktopShortsPlayerControlsWizHost"},_.x(_.uF0,{progressBarProps:H,config:function(){return{isShortsPage:!0,hideProgressBar:H().videoDuration<30&&H().playerState!==2&&!H().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"jf");_.WVq=_.H1(function(d){function H(l1){l1!==0||V()?l1>50&&(V()||!L())?(U(!1),w(!0)):l1<=50&&(V()||L())&&(U(!1),w(!1)):U(!0)}
function K(l1,V4){var Mf;return _.l(function(LF){if(LF.nextAddress==1)return LF.yield(_.eA(),2);Mf=LF.yieldResult;V4&&Mf?(Mf.unMute(!0),l1&&(JMY(l1,Mf.getVolume()),J(Mf.getVolume()))):Mf&&(Mf.mute(!0),l1&&JMY(l1,0));_.VE(LF)})}
function c(l1){var V4,Mf;return _.l(function(LF){if(LF.nextAddress==1)return LF.yield(_.eA(),2);V4=LF.yieldResult;Mf=50;V4&&(Mf=V4.getVolume(),V4.isMuted()?JMY(l1,0):JMY(l1,Mf));J(Mf);_.VE(LF)})}
var p=d.orientation;d=_.Af("desktop-shorts-volume-controls");var g=_.Af("button"),a=_.jV("input"),e=_.q(_.GO(!1,void 0,"F6vt0d")),k=e.next().value,C=e.next().value,R=_.q(_.GO(!1,void 0,"S5PCqb"));e=R.next().value;R=R.next().value;var V=e,U=R;R=_.q(_.GO(!0,void 0,"Tgy4e"));e=R.next().value;R=R.next().value;var L=e,w=R;e=_.q(_.GO(50,void 0,"Dq3efd"));var W=e.next().value,J=e.next().value;e=_.ey(function(){var l1=V();return _.h("web_shorts_keyboard_enable_mute_shortcut")?l1?_.Vz("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.Vz("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):l1?_.Vz("UNMUTE_VOLUME",void 0,"Unmute"):_.Vz("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
R=_.ey(function(){var l1=V(),V4=L();return{sources:[{clientResource:{imageName:l1?_.h("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":V4?_.h("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.h("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var F=_.ey(function(){var l1=W();return V()?l1+"% volume muted":l1+"% volume"},void 0,"kvkmyc"),Y=_.ey(function(){return p()==="vertical_down"},void 0,"zaNsZ");
_.WE(function(){function l1(){C(!0)}
function V4(){C(!1)}
a&&a.value&&(a.value.addEventListener("focus",l1),a.value.addEventListener("focusout",V4),c(a.value).then(function(){H(Number(slY(a.value)))}));
g&&g.value&&(g.value.addEventListener("focus",l1),g.value.addEventListener("focusout",V4));_.Pk(function(){var Mf;a==null||(Mf=a.value)==null||Mf.removeEventListener("focus",l1);var LF;a==null||(LF=a.value)==null||LF.removeEventListener("focusout",V4);var YY;g==null||(YY=g.value)==null||YY.removeEventListener("focus",l1);var FM;g==null||(FM=g.value)==null||FM.removeEventListener("focusout",V4)})});
var A=_.n7(function(){if(a&&a.value){var l1=Number(slY(a.value));XLi(l1);J(l1);a.value.style.setProperty("--gradient-percent",l1+"%");H(l1)}return!1}),E=_.n7(function(){C(!0)}),N=_.n7(function(){a&&a.value&&(K(a.value,V()),U(!V()));
return!1}),y={},v={},el={};
return _.x("desktop-shorts-volume-controls",{"on:pointerleave":_.n7(function(){C(!1)}),
class:_.xM("ytdDesktopShortsVolumeControlsHost",(y.ytdDesktopShortsVolumeControlsHostVertical=Y,y.ytdDesktopShortsVolumeControlsHostExpanded=k,y)),el:d},_.x(_.n,{cond:function(){return!Y()},
then:function(){var l1={};return _.x("div",{class:_.xM("ytdDesktopShortsVolumeControlsBackgroundScrim",(l1.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=k,l1))})}}),_.x("div",{class:_.xM((v.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=Y,v))},_.x("button",{"aria-label":e,
title:e,el:g,"on:click":N,"on:pointerenter":E,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},R?_.x(_.d7,{data:R,alt:e,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.x("div",{class:_.xM("ytdDesktopShortsVolumeControlsSliderContainer",(el.ytdDesktopShortsVolumeControlsSliderContainerExpanded=k,el.ytdDesktopShortsVolumeControlsSliderContainerVertical=Y,el.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=Y,el.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return k()&&Y()},el))},_.x("input",{"aria-label":_.Vz("VOLUME"),
title:_.Vz("VOLUME"),el:a,"on:input":A,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":W,"aria-valuetext":F,"aria-valuemin":0,"aria-valuemax":100})))},"kf");_.Bst=_.H1(function(d){var H=d.data;return _.x("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.x(_.Oj,{command:function(){return H().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.x(_.n,{cond:function(){return H().iconName},
then:function(K){return _.x(_.hu,{icon:K})}}),_.x("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return H().text}),_.x(_.n,{cond:function(){return H().showEndChevron},
then:function(){return _.x(_.hu,{icon:"CHEVRON_RIGHT"})}})))},"lf");var zcj=_.H1(function(d){var H=d.data;var K=d.overlayDensity;d={};return _.x("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.x(_.wB,{data:function(){return H().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(c){var p=c.data;
return _.x(_.sg,{data:function(){return(K==null?void 0:K())===1?Object.assign({},p(),{avatar:{avatarViewModel:Object.assign({},_.M(p().avatar,_.tW),{avatarImageSize:"AVATAR_SIZE_48"})}}):p()}})}}),_.x(_.wB,{data:function(){return H().avatarStackViewModel}},{avatarStackViewModel:function(c){return _.x(_.Fk,{data:c.data})}}),_.x(_.j$,{className:_.xM("ytReelChannelBarViewModelChannelName",(d.ytReelChannelBarViewModelChannelNameLarge=function(){return(K==null?void 0:K())===1},d)),
text:function(){return H().channelName},
linkInheritColor:!0,userInput:!0}),_.x("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.x(_.wB,{data:function(){return H().subscribeButtonViewModel}},{subscribeButtonViewModel:function(c){var p=c.data;
return _.x(_.JI,{data:function(){return(K==null?void 0:K())===1?Object.assign({},p(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},p().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):p()},
isOverlay:!1})},
buttonViewModel:_.xk})),_.x("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.x(_.wB,{data:function(){var c,p;return(p=_.M((c=H())==null?void 0:c.sponsorButtonViewModel,mqd))==null?void 0:p.sponsorButton}},{buttonViewModel:function(c){return _.x(_.xk,{data:c.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"mf");var Xfb=_.H1(function(d){var H=function(){var c;return(d==null?void 0:(c=d.overlayDensity)==null?void 0:c.call(d))===1?22:16},K={};
return _.x("yt-reel-multi-format-link-view-model",{class:_.xM("ytReelMultiFormatLinkViewModelHost",(K.ytReelMultiFormatLinkViewModelHostTall=!0,K.ytReelMultiFormatLinkViewModelHostLarge=function(){var c;return((c=d.overlayDensity)==null?void 0:c.call(d))===1},K))},_.x(_.Oj,{ariaLabel:function(){return d.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return d.data().command}},_.x("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.x(_.n,{cond:function(){return d.data().icon},
then:function(c){return _.x(_.d7,{data:c,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:H})}}),_.x(_.j$,{text:function(){return d.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"nf");
Xfb.idomCompat=!0;var JAU=_.H1(function(d){var H=d.data;var K=d.overlayDensity;var c=_.Af("yt-shorts-suggested-action-view-model");d=_.q(_.GO(!1,void 0,"xDqzhe"));var p=d.next().value,g=d.next().value;d=_.q(_.GO(!1,void 0,"LI9CFd"));var a=d.next().value,e=d.next().value,k=function(){return H().isMultiLineSa},C=_.Uj(TRF,function(){var E,N;
return(N=(E=H().toggleableContent)==null?void 0:E.entityKey)!=null?N:""}),R=function(){var E,N,y;
return(y=H().toggleableContent)!=null&&y.entityKey?(N=(E=C())==null?void 0:E.value)!=null?N:!1:!1},V=function(){var E,N,y,v,el,l1,V4,Mf,LF,YY,FM;
return H().toggleableContent?R()?(E=H().toggleableContent)==null?void 0:E.toggledData:(N=H().toggleableContent)==null?void 0:N.untoggledData:{primaryText:(Mf=(y=H().defaultContent)==null?void 0:y.primaryText)!=null?Mf:H().text,secondaryText:(v=H().defaultContent)==null?void 0:v.secondaryText,onTapCommand:(LF=(el=H().defaultContent)==null?void 0:el.onTapCommand)!=null?LF:H().onTapCommand,icon:(YY=(l1=H().defaultContent)==null?void 0:l1.icon)!=null?YY:H().icon,image:(FM=(V4=H().defaultContent)==null?
void 0:V4.image)!=null?FM:H().image}},U=function(){return k()?H().trailingTapTarget:void 0},L=function(E,N){return function(){return p()?N:E}},w=function(){return{leadingSection:L("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(K==null?void 0:K())===1?L("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):L("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:L("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:L("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
d={};d=_.xM((d.ytShortsSuggestedActionViewModelStaticHost=function(){return!k()},d.ytShortsSuggestedActionViewModelDynamicHost=k,d.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return k()&&a()},d.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return k()&&!a()},d));
_.WE(function(){if(k()){var E=0,N;if((N=H().animationParams)==null?0:N.shouldExpand){var y,v;E=((v=(y=H().animationParams)==null?void 0:y.expansionDelaySecs)!=null?v:0)*1E3}var el,l1=((el=H().animationParams)==null?0:el.shouldExpand)?setTimeout(function(){g(!0)},E):void 0,V4,Mf;
E=((V4=H().animationParams)==null?0:V4.visibilityDelaySecs)?((Mf=H().animationParams)==null?NaN:Mf.visibilityDelaySecs)*1E3:0;var LF=setTimeout(function(){e(!0)},E);
_.Pk(function(){l1&&clearTimeout(l1);clearTimeout(LF)})}});
var W=function(E){_.EG(E,Object.assign({},{form:{element:c.value}}))},J=_.n7(function(){var E,N=(E=V())==null?void 0:E.onTapCommand;
N&&W(N)}),F=_.n7(function(){var E,N;
if(E=(N=U())==null?void 0:N.onTapCommand)return W(E),!1}),Y=_.UQ({"vertical-align":"bottom",
"border-radius":function(){var E;return k()?((E=H().defaultContent)==null?0:E.isCircleImage)?"50%":"4px":"0px"},
width:function(){var E,N,y;return k()&&((E=H().defaultContent)==null?0:E.imageSize)?((y=(N=H().defaultContent)==null?void 0:N.imageSize)!=null?y:24)+"px":null},
height:function(){var E,N,y;return k()&&((E=H().defaultContent)==null?0:E.imageSize)?((y=(N=H().defaultContent)==null?void 0:N.imageSize)!=null?y:24)+"px":null}}),A={};
return _.x("yt-shorts-suggested-action-view-model",{class:d,el:c},_.x("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.x("button",{class:_.xM(function(){return k()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var E;
return(E=H().useFullRoundedBorder)!=null&&E?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!U()&&k()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":k()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var E;
return(E=H().disableFixedHeight)!=null&&E?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(A.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(K==null?void 0:K())===1},A)),
"on:click":J},_.x(_.am,{model:{color:4}}),_.x("div",{class:_.xM(function(){return k()?w().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.x(_.n,{cond:function(){var E;
return(E=V())==null?void 0:E.image},
then:function(E){return _.x(_.d7,{data:E,alt:"",className:function(){return k()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:Y})}}),_.x(_.n,{cond:function(){var E,N;
return(E=V())==null?void 0:(N=E.icon)==null?void 0:N.iconType},
then:function(E){return _.x(_.hu,{icon:E,active:R,className:function(){return k()?p()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.x("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.x(_.n,{cond:function(){var E;
return(E=V())==null?void 0:E.primaryText},
then:function(E){return _.x("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.x(_.j$,{text:E}))}}),_.x(_.n,{cond:function(){var E;
return(E=V())==null?void 0:E.secondaryText},
then:function(E){return _.x("div",{class:function(){return w().secondaryText()}},_.x(_.j$,{text:E}))}}))),_.x(_.n,{cond:U,
then:function(E){return _.x("div",{class:function(){return w().trailingSection()},
"aria-label":function(){var N;return(N=E().a11yLabel)!=null?N:""},
"on:click":F,role:"button",tabindex:0},_.x(_.am,{model:{color:4}}),_.x(_.hu,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"of");var sr0=_.H1(function(d){var H=d.data;var K=d.overlayDensity;var c=_.Af("yt-shorts-video-title-view-model");d=_.n7(function(a){if(_.sj(_.JW(a),c.value,["A".toString()]))return!1;(a=H().truncatedTextOnTapCommand)&&_.EG(a);return!1});
var p={},g={};return _.x("yt-shorts-video-title-view-model",{el:c,class:_.xM("ytShortsVideoTitleViewModelHost",(p.ytShortsVideoTitleViewModelHostClickable=function(){return!!H().truncatedTextOnTapCommand},p)),
"on:click":d},_.x("h2",{class:_.xM("ytShortsVideoTitleViewModelShortsVideoTitle",(g.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(K==null?void 0:K())===1},g))},_.x(_.j$,{text:function(){return H().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"pf");_.FVT=_.H1(function(d){var H=d.data;var K=d.overlayDensity;return _.x("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.x(_.wB,{data:function(){return H().metadataItems}},{badgeViewModel:function(c){return _.x("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.x(_.g$,{data:c.data}))},
playerDisclosureViewModel:function(c){return _.x("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.x(_.Bst,{data:c.data}))},
shortsSuggestedActionViewModel:function(c){return _.x("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.x(JAU,{data:c.data,overlayDensity:K}))},
reelChannelBarViewModel:function(c){return _.x("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.x(zcj,{data:c.data,overlayDensity:K}))},
reelMultiFormatLinkViewModel:function(c){return _.x("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.x(Xfb,{data:c.data,overlayDensity:K}))},
shortsVideoTitleViewModel:function(c){return _.x("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.x(sr0,{data:c.data,overlayDensity:K}))},
reelSoundMetadataViewModel:function(c){return _.x("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.x(_.sZg,{data:c.data,overlayDensity:K}))},
toggleButtonViewModel:function(c){return _.x("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.x(_.zm,{data:c.data}))}}))},"qf");var ZB1=_.H1(function(d){var H=_.dg(d,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),K=H.size,c=H.onTap,p=H.disabled,g=H.tooltipText;return _.x("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.x(_.kk,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:K(),disabled:p(),tooltipText:g(),onTap:c}},
iconName:d.iconType}))},"rf"),Tst=_.H1(function(d){function H(R){R.stopPropagation();
R.code==="ArrowUp"?(R.preventDefault(),TeL(e.value)):R.code==="ArrowDown"?(R.preventDefault(),Ql5(e.value)):R.code==="KeyM"?FFf():(R.code==="KeyK"||R.code==="Space")&&ZpF(k())}
var K=_.dg(d,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});d=K.previousButtonDisabled;var c=K.nextButtonDisabled,p=K.data,g=K.playabilityStatus,a=K.previewThumbnail,e=_.Af("ytd-shorts-miniplayer-overlay"),k=_.Tv(_.jSF),C;_.Is(function(){(C=_.XF(e.value))&&C.addEventListener("keydown",H)});
_.Pk(function(){var R;(R=C)==null||R.removeEventListener("keydown",H)});
K=function(){var R,V,U;return(R=p())==null?void 0:(V=R.reelPlayerOverlayRenderer)==null?void 0:(U=V.likeButton)==null?void 0:U.likeButtonRenderer};
return _.x("ytd-shorts-miniplayer-overlay",{el:e,class:"ytdShortsMiniplayerOverlayHost"},_.x("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.UQ({"background-image":function(){var R=a();return R?'url("'+_.od(R.thumbnails)+'")':""}})}),_.x("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.x("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.x(ZB1,{iconType:function(){var R=k();
return R===2||R===-1||R===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){ZpF(k())},
tooltipText:function(){var R=k();return R===1||R===3?_.Vz("PLAYER_LABEL_PAUSE"):_.Vz("PLAYER_LABEL_PLAY")}}),_.x(_.WVq,{orientation:"horizontal_right"})),_.x("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.x(ZB1,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:d,onTap:function(){TeL(e.value)},
tooltipText:_.Vz("PREVIOUS_VIDEO_LABEL")}),_.x(ZB1,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:c,onTap:function(){Ql5(e.value)},
tooltipText:_.Vz("NEXT_VIDEO_LABEL")}),_.h("web_shorts_pip_like_button")?_.x("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.x(YzU,{buttonTooltipPosition:"left",data:K,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.x("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.x(_.n,{cond:function(){var R,V;return _.M((R=p())==null?void 0:(V=R.reelPlayerOverlayRenderer)==null?void 0:V.metapanel,
_.UqN)},
then:function(R){return _.x("div",{class:_.xM("ytdShortsMiniplayerOverlayInteractive")},_.x(_.FVT,{data:R}))}})),_.x("div",{class:_.xM("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var R;return!((R=p())==null||!R.adsOverlay)||g()&&!BHM(g())}},_.x("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.x(_.rAG,null)))),_.x(_.n,{cond:function(){var R=p(),V,U;
R=_.M(R==null?void 0:(V=R.adsOverlay)==null?void 0:(U=V.fulfillmentContent)==null?void 0:U.fulfilledLayout,Fs7);return _.M(R==null?void 0:R.renderingContent,Yl3)},
then:function(R){return _.x("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.x(zO3,{data:R}))}}))},"sf");var tZX=_.H1(function(){var d=_.q(_.GO(new _.nB(NaN,NaN),void 0,"HSMFk")),H=d.next().value,K=d.next().value;d=_.q(_.GO(!1,void 0,"uaAxwf"));var c=d.next().value,p=d.next().value,g=_.q(_.GO(!1,void 0,"nVSwef"));d=g.next().value;var a=g.next().value,e=_.Kj().resolve(_.Fb).miniplayerPropSignalMap[0],k=e.data,C=e.shortsData,R=e.nextButtonDisabled,V=e.shortsPreviewThumbnail,U=e.previousButtonDisabled,L=e.externalPlaylistData;g=e.toastData;var w=e.playabilityStatus,W=e.isDisabled,J=e.playerVe,F=e.closeVe;
e=_.Tv(_.oI);_.fn("yt-pip-window-resized",function(N){K(N)});
_.fn("yt-activate-pip-miniplayer",function(){return _.l(function(N){a(!0);_.VE(N)})});
var Y=function(){var N;return!((N=L())==null||!N.contents)&&c()},A=function(){var N=H(),y=!!k(),v=Y();
N=N.clone();y&&(N.height-=76);v&&(N.height-=285);return N},E=function(){p(!c())};
_.wc(function(){var N=J(),y=_.Fj(11),v=_.so(11);y&&v&&N&&(_.Ea(y,v,N),v=F())&&(_.yz(y,N,[v]),_.No(y,[v]))},"HPkp0c");
return _.x("ytd-pip-container",{class:"ytdPipContainerHost"},_.x(_.n,{cond:d,then:function(){return _.x(_.Esv,{isDisabled:W,playabilityStatus:w,size:A})}}),_.x(_.n,{cond:k,
then:function(){return _.x(_.OzZ,{data:k,expanded:c,onExpandClick:E,playlistData:L})}}),_.x(_.n,{cond:Y,
then:function(){return _.x("div",{class:"ytdPipContainerPlaylistPanel"},_.x(_.QAS,{data:L,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.x(_.n,{cond:e,
then:function(){return _.x(Tst,{data:C,nextButtonDisabled:R,previousButtonDisabled:U,playabilityStatus:w,previewThumbnail:V})}}),_.x("div",{class:"ytdPipContainerToast"},_.x(_.y1O,{toastData:g})))},"tf");var Oy=function(d,H){var K=this;this.pipController=d;this.JSC$18612_clientRoot=H;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=dmM();this.watchPipEnabled=_.h("web_watch_pip");this.shortsPipEnabled=_.h("web_shorts_pip");this.JSC$18612_watchWhileEnabled=_.h("kevlar_watch_while_v2");this.miniplayerServiceActionMap={"yt-downloaded-video-deleted":this.onDownloadedVideoDeleted.bind(this),"yt-show-miniplayer-command":this.onShowMiniplayerCommand.bind(this)};
this.watchPipMode=this.shortsPipMode=this.watchWhileMode=this.miniplayerToPipMode=this.userDeactivatedWatchWhile=this.isReadyToResume=this.hasPlaylistData=this.isSingleOptionSurveyActive=!1;_.LU(_.dn(),bUl,function(c){K.isSingleOptionSurveyActive=c});
this.JSC$18612_onPlayerPlayVideo=this.JSC$18612_onPlayerPlayVideo.bind(this);this.onPlayerCloseMiniplayer=this.onPlayerCloseMiniplayer.bind(this);this.onPlayerExpandMiniplayer=this.onPlayerExpandMiniplayer.bind(this);this.onPlayerStateChange=this.onPlayerStateChange.bind(this);this.handleMediaSessionPipActivation=this.handleMediaSessionPipActivation.bind(this);_.Ne(_.bw.getInstance(),this.miniplayerServiceActionMap,this.JSC$18612_clientRoot);d.pictureInPictureSupported()&&_.Wd("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},iCA,D6g,E5T,f$q,AAb,xXC;
Oy.prototype.handleMediaSessionPipActivation=function(){var d=this,H;return _.l(function(K){_.UT().mediaSessionPipActivation=!0;H=_.Kj().resolve(_.HI);return H.isOnWatch()&&d.watchPipEnabled?(_.UT().watchPipActivation=!0,_.QrO(d,H.data),K.jumpTo(0)):H.isOnShorts()&&d.shortsPipEnabled?(_.UT().shortsPipActivation=!0,_.tu5(d),K.jumpTo(0)):d.isMiniplayerActive()&&d.watchPipEnabled&&!d.watchWhileMode?K.yield(YYq(d),0):K.jumpTo(0)})};
var YYq=function(d){var H,K,c,p;return _.l(function(g){if(g.nextAddress==1)return H=!d.miniplayerToPipMode,K=d.playerElement,c=d.miniplayerData,p=d.watchResponse,g.yield(d.deactivate(),2);if(g.nextAddress!=3)return H?(_.UT().mediaSessionPipActivation=!0,_.UT().watchPipActivation=!0):_.UT().miniplayerButtonActivation=!0,g.yield(d.activate(K,c,p),3);d.miniplayerToPipMode=H;_.VE(g)})};
Oy.prototype.onDownloadedVideoDeleted=function(d){var H,K=_.M((H=this.miniplayerData)==null?void 0:H.watchEndpoint,_.AP),c,p;K&&((c=this.watchResponse)==null?void 0:(p=c.playerResponse)==null?void 0:p.offlineState)!==void 0&&(H=K.videoId)&&d&&H===d&&this.close()};
Oy.prototype.onShowMiniplayerCommand=function(d){var H=this,K,c,p,g,a,e,k,C,R,V,U;return _.l(function(L){switch(L.nextAddress){case 1:return K=_.M(d,qvC),p=(c=K)==null?void 0:c.miniplayerCommand,g=_.M(p,_.AP),p&&g&&!H.active?L.yield(_.rI.getInstance(),2):L.return();case 2:return a=L.yieldResult,L.yield((e=a)==null?void 0:e.get("yt-miniplayer-shown-video-id"),3);case 3:k=L.yieldResult;C=g.videoId;if(!C||k===C)return L.return();R=_.Kj().resolve(_.HI);if(R.isOnWatch())return _.Jf(Error("Hj")),L.return();
V={channelItem:{externalId:btoa(C)}};H.readyToResumeVe=_.l8(121253,void 0,void 0,V);_.UT().showMiniplayerCommandActivation=!0;return L.yield(_.nIS(H,p,!0),4);case 4:return H.active&&(_.Sr(H,{readyToResumeVe:H.readyToResumeVe,isReadyToResume:!0}),H.isReadyToResume=!0),L.yield((U=a)==null?void 0:U.set("yt-miniplayer-shown-video-id",g.videoId),5);case 5:H.readyToResumeVe=void 0,_.VE(L)}})};
Oy.prototype.init=function(d){this.miniplayerEl?_.Jf(new _.m1("MiniplayerService already initialized.")):this.miniplayerEl=d};
Oy.prototype.isInitialized=function(){var d=!!this.miniplayerEl;d||_.Jf(new _.m1("MiniplayerService used before initialized."));return d};
_.QrO=function(d,H){if(d.isInitialized()){var K=_.Bw(H.response,!1,H.playerResponse),c=_.Kj().resolve(_.HI).getPlayerFromWatch();_.UT().currentEndpoint=K.watchEndpoint||null;d.activate(c,K,H)}};
_.tu5=function(d){if(d.isInitialized()){var H=_.Kj().resolve(_.HI).getPlayerFromShorts();d.activate(H)}};
iCA=function(d,H){var K;(K=!d.isInitialized())||(K=_.Kj().resolve(_.HI).isOnWatch()&&d.watchPipMode,K=!(d.isMiniplayerActive()&&(_.UT().userActivation||_.UT().lockupActivation||K)));if(K)return!1;OBj(d,H)?_.QA(d):xXC(d,H);return d.watchPipMode?!_.Kj().resolve(_.HI).isOnWatch():!0};
Oy.prototype.isMiniplayerActive=function(){return this.active};
var OBj=function(d,H){var K;H=(K=_.M(H,_.AP))==null?void 0:K.videoId;var c,p;d=(p=_.M((c=d.miniplayerData)==null?void 0:c.watchEndpoint,_.AP))==null?void 0:p.videoId;return H!=null&&H===d};
Oy.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.GT(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.oF(this.miniplayerEl,"yt-navigate-home-action"))};
_.nIS=function(d,H,K,c){K=K===void 0?!1:K;var p,g,a;return _.l(function(e){switch(e.nextAddress){case 1:if(d.active){e.jumpTo(2);break}p=_.Kj().resolve(_.HI);if(a=(g=d.playerElement)!=null?g:p.getPlayerFromWatch()){e.jumpTo(3);break}return e.yield(_.Kj().resolve(_.Gx),4);case 4:a=p.getPlayerFromWatch();case 3:if(!a){_.Jf(Error("Jj"));e.jumpTo(2);break}return e.yield(d.activate(a,c),2);case 2:return d.active?e.yield(xXC(d,H,K),0):e.return()}})};
Oy.prototype.activate=function(d,H,K){var c=this,p,g,a,e,k,C,R,V,U;return _.l(function(L){switch(L.nextAddress){case 1:if(!c.isInitialized())return L.return();if(!d)return _.Jf(Error("Jj")),L.return();if(_.hmg()||c.isMiniplayerActive())var w=!0;else w=_.UT().watchPipActivation||_.UT().watchWhileActivation,_.Kj().resolve(_.HI).isOnWatch()&&!w?(_.Jf(new _.m1("miniplayer activated on watch page")),w=!0):w=_.UT().watchWhileActivation?c.userDeactivatedWatchWhile||!!document.pictureInPictureElement||lo4():
!1;if(w)return UF7(),L.return();p=_.UT().mediaSessionPipActivation;g=_.UT().shortsPipActivation;a=_.UT().watchPipActivation;k=(e=_.UT().watchWhileActivation)||a;C=a||g;if(!c.pictureInPictureEnabled()||!C){L.jumpTo(2);break}return L.yield(SYU(c,p),3);case 3:if(!L.yieldResult)return _.Jf(Error("Ij")),UF7(),L.return();case 2:return c.setActive(!0),c.watchResponse=K,c.playerElement=d,c.updateMiniplayerData(H),L.yield(E5T(c,d),4);case 4:if(!c.active)return _.Jf(new _.m1("miniplayer deactivated during activation")),
c.removePlayerListeners(),L.return();w=_.Kj().resolve(_.tJ);w.addEventListener("yt-navigate",_.xf(c,c.onPlaylistNavigate));w.addEventListener("yt-playlist-data-updated",_.xf(c,c.JSC$18612_onPlaylistDataUpdated));c.JSC$18612_onPlaylistDataUpdated();UF7();c.JSC$18612_watchWhileEnabled&&_.yA5(c,e);c.pictureInPictureEnabled()&&c.shortsPipEnabled&&(c.shortsPipMode=g,_.dn().dispatch(gAU(c.shortsPipMode)));c.pictureInPictureEnabled()&&c.watchPipEnabled&&(c.watchPipMode=a,_.ku1(c.handleMediaSessionPipActivation));
c.player&&(R=c.player.getPlayerState(),V=R===1,_.dn().dispatch(ksU(R)),_.qo(c.miniplayerEl,"yt-miniplayer-play-state-changed",[V]),_.UT().isVideoPlaying=V);_.qo(c.miniplayerEl,"yt-miniplayer-endpoint-changed");bBg(c);_.NsG(c);if(c.shortsPipMode||c.watchPipMode)L=L.yield(_.oF(c.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{w=L.yield;var W=_.oF(c.miniplayerEl,"yt-activate-miniplayer",[k])[0];L=w.call(L,W,6)}return L;case 6:if(c.watchResponse&&!_.h("miniplayer_copy_screen_on_activation_killswitch")){w=
c.getScreenLayer();W=_.Fj(0);var J=r4Y(0);W&&J&&(_.TA(W,J,w),w===0&&u$h(void 0,0))}D6g(c);f$q(c,!0);(U=c.getPlayerElement())==null||U.focusOnPlayer();_.VE(L)}})};
Oy.prototype.updateMiniplayerData=function(d){this.miniplayerData=d;_.Sr(this,{data:d})};
_.NsG=function(d){var H,K,c=((H=d.miniplayerData)==null?void 0:(K=H.miniplayerRenderer)==null?void 0:K.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";H=d.watchWhileMode||d.watchPipMode?c&&!_.Kj().resolve(_.HI).isOnWatch():c;_.Sr(d,{isDisabled:H});var p,g;K=_.M((p=d.miniplayerData)==null?void 0:(g=p.miniplayerRenderer)==null?void 0:g.minimizedEndpoint,_.u$);H&&K&&_.Kj().resolve(_.B6).openSheet({openPopupActionCommand:{openPopupAction:K}},d.miniplayerEl)};
D6g=function(d){if(d.watchResponse&&!AAb(d)){var H,K=(H=d.watchResponse.playerResponse)==null?void 0:H.trackingParams;K&&(_.Sr(d,{expandVe:_.l8(35989),closeVe:_.l8(34699),readyToResumeCloseVe:_.l8(131070),repositionVe:_.l8(226204),resizeVe:_.l8(226205)}),_.Sr(d,{playerVe:_.P1(K)}))}};
E5T=function(d,H){return _.l(function(K){if(K.nextAddress==1)return H.preparePlayer(),K.yield(H.getPlayerPromise(),2);d.player=K.yieldResult;d.player&&(d.player.addEventListener("onPlayVideo",d.JSC$18612_onPlayerPlayVideo),d.player.addEventListener("onCloseMiniplayer",d.onPlayerCloseMiniplayer),d.player.addEventListener("onExpandMiniplayer",d.onPlayerExpandMiniplayer),d.player.addEventListener("onStateChange",d.onPlayerStateChange));_.VE(K)})};
_.G=Oy.prototype;_.G.JSC$18612_onPlayerPlayVideo=function(d){var H=d.sessionData&&"autonav"in d.sessionData,K;d.sessionData&&d.sessionData.itct&&(K=d.sessionData.itct);var c=d.watchEndpoint;H=c&&H?_.AUY(c,K):_.KH(d.videoId,d.listId||void 0,K);d.sessionData&&_.Hy(_.M(H.commandMetadata,_.Co).url,d.sessionData);xXC(this,H)};
_.G.onPlayerExpandMiniplayer=function(){_.QA(this)};
_.G.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.G.onPlayerStateChange=function(){if(this.player){var d=this.player.getPlayerState(),H=d===1;_.dn().dispatch(ksU(d));_.dn().dispatch(_.CNM(d));_.qo(this.miniplayerEl,"yt-miniplayer-play-state-changed",[H]);_.UT().isVideoPlaying=H;if(d===0){H=!_.$R.getInstance().isAutoplaySetExplicitly();var K,c,p,g,a,e,k=(K=this.watchResponse.response)==null?void 0:(c=K.contents)==null?void 0:(p=c.twoColumnWatchNextResults)==null?void 0:(g=p.autoplay)==null?void 0:(a=g.autoplay)==null?void 0:(e=a.autoplayExplicitChoiceDialogRenderer)==
null?void 0:e.confirmDialogRenderer;H&&k&&this.player.setAutonavState(1)}d===0&&this.watchWhileMode&&this.deactivate()}};
_.G.onPlaylistNavigate=function(d,H){var K=this,c,p,g,a,e,k,C;return _.l(function(R){if(R.nextAddress==1){if(!_.M(H.endpoint,_.AP))return R.return();_.UT().currentEndpoint=H.endpoint;_.qo(K.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.Kj().resolve(_.HI).isOnWatch()&&(K.watchWhileMode||K.watchPipMode))return R.return();d.stopPropagation();(g=(p=_.M((c=H.endpoint)==null?void 0:c.commandMetadata,_.Co))==null?void 0:p.url)&&H.tempData&&!_.rs.isEmpty(H.tempData)&&_.Hy(g,H.tempData);a={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};e=new V6A(function(){return K.getPlayerElement()},a,{layer:K.getScreenLayer()});
k=function(V){e.processChunk({endpoint:H.endpoint,data:V})};
jr0(K);K.miniplayerFetchRequest=v5S(K,H.endpoint,k);_.e2(R,2);return R.yield(K.miniplayerFetchRequest,4)}if(R.nextAddress!=2)return C=R.yieldResult,d_j(K,C),_.Em(R,0);_.RV(R);_.VE(R)})};
_.G.JSC$18612_onPlaylistDataUpdated=function(){var d=_.Kj().resolve(_.tJ).getPlaylistData();this.hasPlaylistData=!!d;_.Sr(this,{externalPlaylistData:d||{}})};
_.G.close=function(d){if(this.isInitialized())if(d){if(!((this.watchWhileMode||this.watchPipMode)&&_.Kj().resolve(_.HI).isOnWatch()||this.shortsPipMode)){var H;(H=this.getPlayerElement())==null||H.stop()}this.deactivate()}else _.yq().closeMiniplayer(this.miniplayerEl)};
_.G.deactivate=function(d){var H=this,K,c,p,g;return _.l(function(a){if(a.nextAddress==1){if(!H.isInitialized()||!H.active)return a.return();H.setActive(!1);jr0(H);(K=!!d&&OBj(H,d))&&H.isSingleOptionSurveyActive&&_.oF(H.miniplayerEl,"yt-show-watch-page-survey",[H.isSingleOptionSurveyActive]);return a.yield(HAt(H),2)}if(a.nextAddress!=3){f$q(H,!1);H.isReadyToResume=!1;H.watchResponse=void 0;H.updateMiniplayerData(void 0);H.shortsPipMode&&(H.shortsPipMode=!1,_.dn().dispatch(gAU(H.shortsPipMode)),GGg(H.pipController),
(c=H.player)==null||c.setInternalSize(NaN,NaN));H.watchPipMode&&(H.watchPipMode=!1,GGg(H.pipController));(p=H.watchWhileMode)&&_.yA5(H,!1);H.removePlayerListeners();var e=_.Kj().resolve(_.tJ);e.removeEventListener("yt-navigate",_.xf(H,H.onPlaylistNavigate));e.removeEventListener("yt-playlist-data-updated",_.xf(H,H.JSC$18612_onPlaylistDataUpdated));_.UT().currentEndpoint=null;_.qo(H.miniplayerEl,"yt-miniplayer-endpoint-changed");H.playerElement=null;UF7();if(H.shortsPipMode||H.watchPipMode)a=a.jumpTo(3);
else{e=a.yield;var k=_.oF(H.miniplayerEl,"yt-deactivate-miniplayer",[K,p])[0];a=e.call(a,k,3)}return a}(g=H.player)==null||g.setInternalSize(NaN,NaN);H.player=null;_.VE(a)})};
var HAt=function(d){var H;return _.l(function(K){H=_.Kj().resolve(_.HI);return d.shortsPipMode?K.yield(H.movePlayerToShorts(d.playerElement),0):K.yield(H.movePlayerToWatch(d.playerElement),0)})};
Oy.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18612_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
Oy.prototype.setActive=function(d){this.active=d;this.isSingleOptionSurveyActive?_.oF(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.oF(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.dn().dispatch(_.iZ({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.yA5=function(d,H){d.watchWhileMode=H;_.Sr(d,{watchWhile:H})};
f$q=function(d,H){if(!AAb(d))if(d.shortsPipMode||d.watchPipMode){var K;(K=d.player)==null||K.setDocumentPictureInPicture(H)}else{var c;(c=d.player)==null||c.setMinimized(H)}};
AAb=function(d){return d.watchWhileMode&&_.h("kevlar_watch_while_counterfactual")};
_.QA=function(d){var H;return _.l(function(K){switch(K.nextAddress){case 1:if(!d.isInitialized())return K.return();_.e2(K,2);return K.yield(d.miniplayerFetchRequest,4);case 4:_.Em(K,3);break;case 2:_.RV(K);case 3:d.watchResponse&&d.miniplayerData&&d.miniplayerData.watchEndpoint?(H={url:d.watchResponse.url,endpoint:d.miniplayerData.watchEndpoint,data:d.watchResponse,miniplayer:!0},_.GT(d.miniplayerEl,"yt-navigate-cache",H)):d.miniplayerData&&d.miniplayerData.watchEndpoint&&_.GT(d.miniplayerEl,"yt-navigate",
{endpoint:d.miniplayerData.watchEndpoint}),_.VE(K)}})};
xXC=function(d,H,K){var c,p,g,a;return _.l(function(e){if(e.nextAddress==1){if(OBj(d,H))return e.return();_.UT().currentEndpoint=H;_.qo(d.miniplayerEl,"yt-miniplayer-endpoint-changed");_.qo(d.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.UT().isVideoPlaying=!1;c={clientParams:{miniplayer:!0,autoSaveToQueue:!K}};p=new V6A(function(){return d.getPlayerElement()},c,{layer:d.getScreenLayer(),
parentLayer:0},void 0,d.readyToResumeVe);g=function(k){var C,R,V=Object.assign({},(C=k.playerResponse)==null?void 0:(R=C.playerConfig)==null?void 0:R.playbackStartConfig,{startPaused:!0}),U;K&&((U=k.playerResponse)==null?0:U.playerConfig)&&(k.playerResponse.playerConfig.playbackStartConfig=V);p.processChunk({endpoint:H,data:k})};
jr0(d);d.miniplayerFetchRequest=v5S(d,H,g);_.e2(e,2);return e.yield(d.miniplayerFetchRequest,4)}if(e.nextAddress!=2)return a=e.yieldResult,d_j(d,a),_.Em(e,0);_.RV(e);_.VE(e)})};
Oy.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var jr0=function(d){d.miniplayerFetchRequest&&(d.miniplayerFetchRequest.cancel&&d.miniplayerFetchRequest.cancel("Active request obsolete"),d.miniplayerFetchRequest=null)},v5S=function(d,H,K){var c=_.m9.instance,p,g=(p=_.M(H.commandMetadata,_.Co))==null?void 0:p.url,a;
p=!g||_.h("disable_miniplayer_tempdata")?{}:(a=xsM(g))!=null?a:{};return Q$(c,H,p,window.location.href,"watch",function(e,k){K(k)},function(e){return e!==d.miniplayerFetchRequest})},d_j=function(d,H){var K;
_.l(function(c){if(!H)return c.return();d.watchResponse=H;D6g(d);bBg(d);K=_.Bw(H.response,!1,H.playerResponse);if(d.isMiniplayerActive()){H.response&&(d.playerElement.watchNextData=H.response);var p=_.rs.getValueByKeys.apply(_.rs,[H].concat(_.ru(ryC)));_.rs.getValueByKeys.apply(_.rs,[H].concat(_.ru(JyU)))&&p&&_.Kj().resolve(_.tJ).setAutoplayRenderer(p);if(p)if(_.h("kevlar_is_pupi_enabled")){var g,a,e,k,C,R=((g=H.response)==null?0:(a=g.playerOverlays)==null?0:(e=a.playerOverlayRenderer)==null?0:(k=
e.autonavToggle)==null?0:(C=k.autoplaySwitchButtonRenderer)==null?0:C.enabled)?2:1;_.$R.getInstance().setState(R,!1,!1)}else g=Ihi()?2:1,(R=d.player)==null||R.setAutonavState(g);d.updateMiniplayerData(K);_.NsG(d)}_.VE(c)})},bBg=function(d){var H,K,c=(H=d.watchResponse)==null?void 0:(K=H.playerResponse)==null?void 0:K.playabilityStatus,p;
H=c==null?void 0:(p=c.miniplayer)==null?void 0:p.miniplayerRenderer;(H==null?void 0:H.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&H.minimizedEndpoint&&_.aF(d.miniplayerEl,[H.minimizedEndpoint]);_.Sr(d,{playabilityStatus:c})};
Oy.prototype.openToast=function(d,H){_.Sr(this,{toastData:{data:d,label:H}})};
_.Sr=function(d,H){(0,d.miniplayerPropSignalMap[1])(H)};
Oy.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var d;return this.playerElement?this.playerElement:(d=_.Gn(this.miniplayerEl).querySelector("#player-container"))==null?void 0:d.firstElementChild};
Oy.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var SYU=function(d,H){H=H===void 0?!1:H;var K,c,p,g,a,e,k;return _.l(function(C){if(C.nextAddress==1){K=navigator.userActivation.isActive||H;if(!K||!d.pictureInPictureSupported())return C.return(!1);c=$_j(d);p=c.width;g=c.height;return C.yield(d.pipController.openWindow({width:p,height:g}),2)}a=C.yieldResult;e=d.pipController.getWindow();if(!e||!a)return C.return(!1);e.document.body.style.overflow="hidden";k=Y2i(e);o0Z(d.pipController,function(){KcO(d);k()});
return C.return(!0)})},$_j=function(d){var H=_.UT().shortsPipActivation,K,c;
d=H?.5625:(c=(K=d.player)==null?void 0:K.getVideoAspectRatio())!=null?c:16/9;K=Math.min(window.innerWidth,window.innerHeight)/2;H=H?0:76;return d>1?new _.nB(K,H+K/d):new _.nB(K*d,H+K)},KcO=function(d){var H;
_.l(function(K){H=_.Kj().resolve(_.HI);return H.isOnWatch()&&d.watchPipMode||H.isOnShorts()&&d.shortsPipMode?K.yield(d.deactivate(),0):d.miniplayerToPipMode?K.yield(YYq(d),0):d.watchPipMode?K.yield(_.QA(d),0):K.jumpTo(0)})};
Oy.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.H3.Object.defineProperties(Oy.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Oy[fG]=[qUg,c2S];var c_v="add_circle arrow_time audio bag bars_3 bell broadcast clapperboard clock copy creator_studio_red_logo download fashion fire flag gaming gear home library lightbulb list_play_arrow message_bubble_alert mic my_videos news offline_download offline_no_content overflow_horizontal overflow_vertical question_circle radar_live search subscriptions thumb_up trash_can trophy unplugged_logo video_camera_add x_mark youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),
pzO="add_circle alert_bubble audio bag bell clapperboard clock copy creator_studio_red_logo download download fashion flag gaming gear help_circle history home lightbulb live menu mic news offline_no_content overflow_horizontal overflow_vertical play_square_stack playlist podcast search subscriptions thumb_up trash_can trending trophy unplugged_logo video video_camera_add x youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),g15="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
iAU="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var Gij=null;var o11={},q8Z=(o11.initialized={priority:10,callback:function(d){var H=_.Kj();H.addProvider({provide:A_A,useClass:xNt});H.addProvider({provide:_.kCg,useFactory:function(){return new j4B}});
H.addProvider({provide:sf,useValue:_.Fm("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});H.addProvider({provide:lDg,useValue:5184E6});H.addProvider({provide:sEv,useValue:_.MO()});H.addProvider({provide:S35,useClass:cdM});H.addProvider({provide:Sw,useClass:Sw});H.addProvider({provide:_.Gx,useFactory:function(){return iQd.promise}});
H.addProvider({provide:_.oAX,useFactory:function(){return _.GsS.promise}});
H.addProvider({provide:NCF,useValue:function(){var k;return((k=_.Kf())==null?void 0:k.getPlayer())||null}});
var K={};H.addProvider((K.provide=_.GE,K.useFactory=function(k,C){return function(){return Azi(k,C)}},K[fG]=[sf,
lDg],K));K={};H.addProvider((K.provide=_.kx,K.useClass=iXb,K[fG]=[sf,lDg],K));K={};H.addProvider((K.provide=_.cxX,K.useClass=a0U,K[fG]=[_.kx],K));H.addProvider({provide:Pl,useFactory:_.dn});H.addProvider({provide:$8,useFactory:_.dn});H.addProvider({provide:DUZ,useFactory:_.dn});H.addProvider({provide:yY0,useFactory:_.dn});H.addProvider({provide:_.t$,useFactory:_.dn});H.addProvider({provide:Cs,useValue:_.R6});H.addProvider({provide:oOg,useClass:hR4});H.addProvider({provide:OPd,useClass:YA0});H.addProvider({provide:Nh,
useClass:Nh});H.addProvider({provide:Rk,useClass:Rk});H.addProvider({provide:V_,useClass:V_});H.addProvider({provide:h$,useClass:h$});H.addProvider({provide:HX,useClass:HX});H.addProvider({provide:IO,useClass:IO});H.addProvider({provide:hp,useClass:hp});H.addProvider({provide:_.fDU,useValue:Bu1});H.addProvider({provide:_.BC,useFactory:_.hR});H.addProvider({provide:kz,useFactory:_.Lo});K={};H.addProvider((K.provide=OZ4,K.useFactory=function(k){return function(C){var R=R===void 0?{}:R;var V,U,L=(U=
_.M((V=C.endpoint)==null?void 0:V.commandMetadata,_.Co))==null?void 0:U.rootVe;if(L){var w,W;if(V=C.previousCsn||((W=_.M((w=C.endpoint)==null?void 0:w.commandMetadata,QeU))==null?void 0:W.parentCsn)){var J=J===void 0?{}:J;if(V!==_.Fj(J.layer)||L!==r4Y(J.layer))J4h(V,J.cttAuthInfo,J.layer||0),u$h(V,J.layer||0),w=J.layer||0,_.sS(IRD(w===void 0?0:w),L);R.parentCsn=V}C.endpoint&&V?cVA(k,C.endpoint,R):_.ld(k,L,void 0,R);var F;((F=C.response)==null?0:F.trackingParams)&&k.graftServerVe(C.response.trackingParams);
var Y;((Y=C.playerResponse)==null?0:Y.trackingParams)&&k.graftServerVe(C.playerResponse.trackingParams);var A;((A=C.reelWatchSequenceResponse)==null?0:A.trackingParams)&&k.graftServerVe(C.reelWatchSequenceResponse.trackingParams)}}},K[fG]=[_.BC],K));
K={};H.addProvider((K.provide=ANZ,K.useClass=f0j,K[fG]=[Cs,_.t$],K));K={};H.addProvider((K.provide=VA,K.useClass=VA,K[fG]=[_.Gx,_.t$],K));K={};H.addProvider((K.provide=xP,K.useClass=xP,K[fG]=[$8,_.cb],K));H.addProvider({provide:_.KbU,useClass:l5T});K={};H.addProvider((K.provide=_.W6,K.useClass=g0O,K[fG]=[_.KbU],K));H.addProvider({provide:_.B6,useClass:LE});H.addProvider({provide:_.rCb,useClass:AZv});H.addProvider({provide:_.zr,useClass:Uy});K={};H.addProvider((K.provide=_.qL,K.useClass=a5q,K[fG]=
[_.qL],K));H.addProvider({provide:_.at,useClass:sRS});H.addProvider({provide:Bl,useClass:Bl});H.addProvider({provide:vl,useClass:vl});H.addProvider({provide:Z9,useClass:Z9});K={};H.addProvider((K.provide=RT,K.useClass=RT,K[fG]=[_.cb,_.Z8],K));H.addProvider({provide:yu,useClass:h3});K={};H.addProvider((K.provide=fS,K.useClass=fS,K[fG]=[_.B6,yu],K));_.h("web_enable_feedback_endpoint_resolver")&&(K={},H.addProvider((K.provide=un,K.useClass=un,K[fG]=[Pl,wT],K)),H.addProvider({provide:wT,useClass:pFZ}));
_.h("web_enable_feedback_endpoint_resolver_batch_2")&&(K={},H.addProvider((K.provide=rT,K.useClass=rT,K[fG]=[Pl],K)),K={},H.addProvider((K.provide=IT,K.useClass=IT,K[fG]=[wT],K)));K={};H.addProvider((K.provide=bn,K.useClass=bn,K[fG]=[_.zr,yu],K));K={};H.addProvider((K.provide=Yj,K.useClass=Yj,K[fG]=[_.zr],K));K={};H.addProvider((K.provide=N0,K.useClass=N0,K[fG]=[_.Z8,_.W6],K));K={};H.addProvider((K.provide=Ef,K.useClass=Ef,K[fG]=[_.Z8,_.BC],K));H.addProvider({provide:U0,useClass:U0});K={};H.addProvider((K.provide=
ed,K.useClass=ed,K[fG]=[Pl],K));H.addProvider({provide:JD,useClass:JD});H.addProvider({provide:XA,useClass:XA});K={};H.addProvider((K.provide=FA,K.useClass=FA,K[fG]=[Pl],K));K={};H.addProvider((K.provide=ZC,K.useClass=ZC,K[fG]=[_.Z8,Pl],K));K={};H.addProvider((K.provide=Ta,K.useClass=Ta,K[fG]=[Pl],K));K={};H.addProvider((K.provide=Qb,K.useClass=Qb,K[fG]=[Pl],K));K={};H.addProvider((K.provide=Of,K.useClass=Of,K[fG]=[_.W6],K));K={};H.addProvider((K.provide=wZ,K.useClass=wZ,K[fG]=[_.BC],K));K={};H.addProvider((K.provide=
Bo,K.useClass=Bo,K[fG]=[RN],K));K={};H.addProvider((K.provide=za,K.useClass=za,K[fG]=[RN],K));H.addProvider({provide:IN,useClass:IN});H.addProvider({provide:rZ,useClass:rZ});H.addProvider({provide:mA,useClass:mA});K={};H.addProvider((K.provide=Ai,K.useClass=Ai,K[fG]=[_.W6,_.cb],K));H.addProvider({provide:Ji,useClass:Ji});K={};H.addProvider((K.provide=Se,K.useClass=Se,K[fG]=[_.Z8,_.W6],K));H.addProvider({provide:T$,useClass:T$});K={};H.addProvider((K.provide=aN,K.useClass=aN,K[fG]=[Pl,_.Z8,_.qL],K));
K={};H.addProvider((K.provide=Ga,K.useClass=Ga,K[fG]=[_.Z8,_.cb],K));H.addProvider({provide:Dn6,useValue:ocl});H.addProvider({provide:d9X,useValue:xLF});H.addProvider({provide:oN,useClass:oN});K={};H.addProvider((K.provide=iP,K.useClass=iP,K[fG]=[Pl],K));K={};H.addProvider((K.provide=lP,K.useClass=lP,K[fG]=[_.at,_.cb],K));K={};H.addProvider((K.provide=Wl,K.useClass=Wl,K[fG]=[_.cb],K));H.addProvider({provide:mY,useFactory:function(){return new mY(_.dn())}});
H.addProvider({provide:GqX,useFactory:_.Jc.getInstance});K={};H.addProvider((K.provide=Fe,K.useClass=Fe,K[fG]=[sf,GqX,_.cb],K));H.addProvider({provide:z$,useClass:z$});H.addProvider({provide:Vu,useClass:Vu});H.addProvider({provide:hi,useClass:hi});H.addProvider({provide:_.Uf,useClass:_.Uf});H.addProvider({provide:O0,useClass:O0});K={};H.addProvider((K.provide=co,K.useClass=co,K[fG]=[$8],K));K={};H.addProvider((K.provide=pD,K.useClass=pD,K[fG]=[_.cb],K));_.h("web_enable_prefetching_videos_on_home")&&
(H.addProvider({provide:kP,useClass:kP}),H.addProvider({provide:J3,useClass:J3}));K={};H.addProvider((K.provide=Yz,K.useClass=Yz,K[fG]=[_.cb],K));H.addProvider({provide:LS,useClass:LS});K={};H.addProvider((K.provide=hD,K.useClass=hD,K[fG]=[_.Z8,_.cb],K));K={};H.addProvider((K.provide=M0,K.useClass=M0,K[fG]=[_.cb],K));H.addProvider({provide:sy,useClass:sy});H.addProvider({provide:Ho,useClass:Ho});K={};H.addProvider((K.provide=dZ,K.useClass=dZ,K[fG]=[$8,_.cb],K));H.addProvider({provide:$z,useClass:$z});
K={};H.addProvider((K.provide=yb,K.useClass=yb,K[fG]=[$8,_.cb,_.Z8],K));K={};H.addProvider((K.provide=bP,K.useClass=bP,K[fG]=[_.cb],K));K={};H.addProvider((K.provide=E0,K.useClass=E0,K[fG]=[_.cb,_.Z8],K));K={};H.addProvider((K.provide=gZ,K.useClass=gZ,K[fG]=[_.Gx],K));K={};H.addProvider((K.provide=KD,K.useClass=KD,K[fG]=[_.Gx],K));H.addProvider({provide:CD,useClass:CD});H.addProvider({provide:Vb,useClass:Vb});H.addProvider({provide:s0,useClass:s0});H.addProvider({provide:LD,useClass:LD});H.addProvider({provide:nD,
useClass:nD});H.addProvider({provide:Qu,useClass:Qu});H.addProvider({provide:xz,useClass:xz});_.h("kevlar_enable_mss_lazy_load")&&H.addProvider({provide:_.TH,useClass:jK5});H.addProvider({provide:_.Ls,useClass:mh});H.addProvider({provide:Hx,useFactory:function(){return _.bw.getInstance()}});
H.addProvider({provide:bXt,useFactory:aol});H.addProvider({provide:RN,useFactory:function(){return _.rI.getInstance()}});
H.addProvider({provide:vn6,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});K={};H.addProvider((K.provide=_.nE,K.useClass=_.nE,K[fG]=[_.Gx,_.cb,_.BC,bXt,RN,Hx,vn6,Cs],K));H.addProvider({provide:_.Vr,useClass:YyU});H.addProvider({provide:_.kLZ,useClass:eXv});K={};H.addProvider((K.provide=ti,K.useClass=ti,K[fG]=[_.kLZ],K));K={};H.addProvider((K.provide=_.CE,K.useFactory=function(k){return k.upliftCompletionResolver.promise},K[fG]=[ANZ],K));
K=_.Qx("IS_SHELL_LOAD")?"aa":"eocs";var c=_.Qx("IS_SHELL_LOAD")?3:2;_.OT().parkOrScheduleJob(function(){vdG()},c,K);
_.OT().parkOrScheduleJob(function(){_.Kj().resolve(VA).start()},2,"eocs");
_.OT().parkOrScheduleJob(function(){NA0()},2,"eocs");
_.OT().parkOrScheduleJob(function(){_.Kj().resolve(xP).start()},2,"eocs");
_.h("kevlar_debug_data_app_registration_ks")||Vri();H.addProvider({provide:_.uV,useValue:new yeN(d.root)});H.addProvider({provide:ED,useValue:new TB1});H.addProvider({provide:_.d7M,useValue:new jAg(d.root)});H.addProvider({provide:_.FL,useValue:new vol});H.addProvider({provide:_.Pm,useClass:Mi});H.addProvider({provide:qUg,useClass:Mg});_.h("kevlar_network_sli_killswitch")||H.addProvider({provide:mNq,useValue:EaX});H.addProvider({provide:BX,useFactory:KdY});_.h("web_bind_fetch")&&(K={},H.addProvider((K.provide=
qH5,K.useFactory=c0L,K[fG]=[_.$p(BX)],K)));_.h("web_bind_parse")&&(K={},H.addProvider((K.provide=awb,K.useFactory=pRF,K[fG]=[_.$p(BX)],K)));_.h("web_bind_window_request")&&(K={},H.addProvider((K.provide=lwv,K.useFactory=gbl,K[fG]=[_.$p(BX)],K)));_.h("web_bind_text_decoder")&&(K={},H.addProvider((K.provide=e_U,K.useFactory=iZ1,K[fG]=[_.$p(BX)],K)));K={};H.addProvider((K.provide=QEU,K.useFactory=QQC,K[fG]=[_.CE,Pl,_.GE],K));K={};H.addProvider((K.provide=ThZ,K.useClass=NL,K[fG]=[QEU],K));H.addProvider({provide:HX0,
useClass:ACT});H.addProvider({provide:JCO,useClass:Fi1});K=[].concat(_.ru(f7));_.h("web_continuation_response_processing")&&K.push(_.YM);K.push(xZl);_.h("enable_share_panel_navigation_logging_fix_on_web")&&K.push(_.JQ0);H.addProvider({provide:JUX,useValue:K});H.addProvider({provide:aPC,useClass:XFt});H.addProvider({provide:rLU,useClass:weT});K={};H.addProvider((K.provide=i$i,K.useClass=qAX,K[fG]=[$8],K));_.Xp.addLowPriorityJob(function(){Wy4()});
K={};H.addProvider((K.provide=Dz0,K.useFactory=function(k){return function(C){var R,V=(R=_.M(C.commandMetadata,_.Co))==null?void 0:R.url;if(!V)throw new _.m1("No URL for PBJ Command",C);V=RTM(V,{pbj:"1"});R=TVM(V,{})||{};R=Object.assign({},R,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Fm("STS").toString()});C=_.nj({command:JSON.stringify(C),session_token:_.Fm("XSRF_TOKEN")});return k.fetch(V,{method:"POST",headers:R,body:C})}},K[fG]=[rLU],K));
K=[];K.push(H.resolve(JCO));c={};c=(c.client_location=_.Jc.getInstance(),c.consistency=_.z5Y(),c.entities=H.resolve(OPd),c.response_received_commands=H.resolve(aPC),c.store=H.resolve(_.cxX),c.tokens=H.resolve(JCO),c);_.h("web_service_params_response_processor")&&(H.addProvider({provide:h_g,useFactory:function(){var k={};return k.CSI=ob1(),k.ECATCHER=GdF(),k}}),H.addProvider({provide:dyf,
useClass:Lr5}),c.service_params=H.resolve(dyf));if(_.h("web_shorts_prefetch_service_enabled")){var p=new l0O(H.resolve(_.kx));c.shorts_prefetch=p}c.adblock_detection=H.resolve(i$i);H.addProvider({provide:_.yQ,useClass:_.yQ});p=H.resolve(_.fDU);var g=[];_.h("PremiumClientSharedConfig__enable_att_context_processor")&&(H.addProvider({provide:Pfd,useClass:MB3}),g.push(H.resolve(Pfd)));if(_.h("owl_pl_await")){var a={};H.addProvider((a.provide=KrG,a.useFactory=function(k){return new Hct(k)},a[fG]=[_.yQ],
a));
g.push(H.resolve(KrG))}gz6(p,H.resolve(rLU),H.resolve(oOg),c,H.resolve(_.kx),K,g,H.resolve(ThZ),H.resolve(HX0));H.addProvider({provide:_.Z8,useValue:_.y2.instance});_.h("start_client_gcf")&&H.addProvider({provide:wz,useValue:BQ3()});H.addProvider({provide:HtT,useFactory:function(){return new HtT(_.Kj().resolve(_.yQ),_.rI.getInstance())}});
_.OT().parkOrScheduleJob(function(){$SZ()},1,"eocs");
K={};H.addProvider((K.provide=R7,K.useClass=R7,K[fG]=[_.GE,_.Z8],K));H.addProvider({provide:_.hjt,useFactory:_.X3.getInstance});_.OT().parkOrScheduleJob(function(){_.Kj().resolve(R7).refresh()},0,"eocs");
fs3(Bu1.watchEndpointMap||{},p.reelWatchEndpointMap||{},d.injector.resolve(_.Z8));H.addProvider({provide:Ui,useValue:_.m9.instance});_.h("kevlar_signal_collection_killswitch")||(K={},H.addProvider((K.provide=OX0,K.useClass=OX0,K[fG]=[sf,kz],K)),_.OT().parkOrScheduleJob(function(){_.Kj().resolve(OX0).record()},1,"eocs"));
_.h("web_debug_handler_registration_killswitch")||_.OT().parkOrScheduleJob(function(){CKl("DOWNLOAD_PES",qPf);_.h("offline_client_state_export_ks")||CKl("OFFLINE_CLIENT_STATE",i3F)},0,"eocs");
_.h("kevlar_prevent_polymer_dynamic_font_load")&&_.OT().parkOrScheduleJob(function(){var k=[_.pB(QKg),_.pB(tEg)];k=_.q(k);for(var C=k.next();!C.done;C=k.next()){C=C.value;var R=document.createElement("link");_.ve(R,C,"stylesheet");document.head.appendChild(R)}},1,"eocs");
K=d.injector.resolve(_.Z8);_.wSS.instance=new _.wSS(K);OLF(Cf0(new m7C(K)));K={};d.injector.addProvider((K.provide=K5,K.useFactory=function(k){(k=k==null?void 0:k.getCurrentPage())?k=k.visibilityObserver:(Gij||(Gij=TjE()),k=Gij);return k},K[fG]=[_.$p(_.HI)],K.skipCache=!0,K));
H.addProvider({provide:_.Fb,useClass:Oy});H.addProvider({provide:L_,useClass:DgC});d.injector.addProvider({provide:S$7,useValue:EoU});H.addProvider({provide:zFN,useValue:pYF});H.addProvider({provide:_.fM,useValue:n_4});d=H.addProvider;mSS||(mSS=new MTg);d.call(H,{provide:_.wC,useValue:mSS});H.addProvider({provide:_.jv,useValue:_.Fm("HTML_DIR")==="rtl"?"rtl":"ltr"});H.addProvider({provide:ESl,useClass:$fZ});H.addProvider({provide:_.xv,useClass:PX});_.Kj().addProvider({provide:bPg,useValue:_.h("enable_web_delhi_icons")?
pzO.concat(iAU):c_v.concat(g15)});H.addProvider({provide:_.I7,useClass:_.I7});H.addProvider({provide:_.sKZ,useValue:new JLU});H.addProvider({provide:YZ0,useClass:QR6});H.addProvider({provide:ML,useClass:ML});H.addProvider({provide:Po,useClass:Po});d={};H.addProvider((d.provide=je,d.useClass=je,d[fG]=[_.Z8,_.W6],d));H.addProvider({provide:Sd,useClass:Sd});H.addProvider({provide:i27,useClass:kGO});H.addProvider({provide:Wo,useClass:Wo});H.addProvider({provide:rz3,useValue:kg3});H.addProvider({provide:_.Nb,
useClass:tBA});_.h("enable_payments_purchase_manager")&&H.addProvider({provide:WMB,useClass:uu3});H.addProvider({provide:TSU,useFactory:function(){return function(k){return _.Zcq(k)}}});
H.addProvider({provide:_.BhO,useClass:zXO});d={};H.addProvider((d.provide=tD,d.useClass=tD,d[fG]=[_.BhO],d));H.addProvider({provide:uP,useClass:uP});H.addProvider({provide:H$7,useValue:zgd});H.addProvider({provide:GyX,useValue:_.Xvj});H.addProvider({provide:INi,useClass:ejU});H.addProvider({provide:wvO,useValue:ZzS});d={};H.addProvider((d.provide=Pgg,d.useClass=uO0,d[fG]=[wvO],d));d={};H.addProvider((d.provide=_.LW,d.useClass=QVO,d[fG]=[Pgg],d));d={};H.addProvider((d.provide=_.WX,d.useClass=rC,d[fG]=
[_.t$,_.Pm],d));if(_.h("web_explore_hub_on_hover")||_.h("web_client_explore_hub_on_hover"))d={},H.addProvider((d.provide=Xe,d.useClass=Xe,d[fG]=[_.Z8,Hx],d));if(_.h("web_enable_renderer_logger")){var e=new GC0;Usi(function(){e.abort()});
H.addProvider({provide:D1F,useValue:new EdZ(e.signal)})}H.addProvider({provide:bYA,useValue:Or1});d={};H.addProvider((d.provide=XH5,d.useClass=e6S,d[fG]=[_.Z8],d))}},o11);var aBb={},lBq=(aBb.initialized={priority:10,callback:function(){if(!MEU){yRD();aWh("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.lT(_.hO(aWh,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.h("log_heartbeat_with_lifecycles")){var d={};K_.instance||(K_.instance=new K_);K_.instance.install((d.document_visible={callback:lWF,priority:10},d.document_hidden={callback:lWF,priority:10},d))}else _.dz(document,"visibilitychange",lWF);MEU=!0}(d=_.Fj())&&d!=="UNDEFINED_CSN"&&wq1(d)}},aBb);var ezU={},kiU=(ezU.initialized={callback:function(d){var H=_.l8(232091),K=d.injector.resolve(_.BC);_.ec(K,H);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?Opf()&&_.xR(K,H):(d=d.injector.resolve(TSU)("refresh_detector"))&&(d.get("first_tab_load")?_.xR(K,H):d.set("first_tab_load","1"))}},ezU);var x_Z={},n1v=(x_Z.initialized={priority:10,callback:AM1},x_Z);var CrG={},RzU=(CrG.initialized={priority:0,callback:function(){var d=new IBU,H="other";_.lv?H="chrome":_.aB?H="firefox":_.ZO?H="safari":AX&&(H="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(K){d.increment(_.hX(),K,H)}).catch(function(){d.increment(_.hX(),!1,H)}):d.increment(_.hX(),!1,H)}},CrG);var VX0={},U_g=(VX0.rendering={priority:8,callback:jlF},VX0);var hz1={},Lct=(hz1.rendering={priority:10,callback:eNF},hz1.rendered={callback:lPE},hz1),MXb={},m_Z=(MXb.rendering={callback:eNF},MXb.rendered={callback:lPE},MXb);var wzq=!1,PrZ={},uBZ=(PrZ.initialized={priority:10,callback:function(){wzq||(CGL({didPatch:function(d){d.el&&Ld1(d.el,d.props)},
didUnmount:function(d){UuM(d.el)}}),wzq=!0)}},PrZ);var IBS=/^\/shorts\/?$/;_.sS("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.h("kevlar_enable_mss")){_.AX1(new hTg);var r_1=!0,Wcq,Ey;r_1=r_1===void 0?!1:r_1;Wcq=Wcq===void 0?!1:Wcq;Ey=Ey===void 0?{}:Ey;var BkU=Ey.cssRowKey||"",zzZ=Ey.combinedSignature||"";!BkU&&window&&window._F_cssRowKey&&(BkU=window._F_cssRowKey,!zzZ&&window._F_combinedSignature&&(zzZ=window._F_combinedSignature));if(BkU&&typeof window._F_installCss!=="function")throw Error("td");var XzO=Ey.loaderClass||_.QT,yA=Z41("base-js"),J_0,s4t=QvC("",yA);J_0=_.hL(s4t);var bK=new XzO(J_0,BkU,zzZ,r_1,Wcq),FcG=
Ey.useCors||yA&&yA.hasAttribute("crossorigin"),ZAO=Ey.corsMode||yA&&yA.getAttribute("crossorigin");FcG&&(bK.useCors_=FcG);ZAO&&(bK.corsMode_=ZAO);Ey.urlMaxLength&&(bK.urlMaxLength=Ey.urlMaxLength);Ey.fetchPriority&&(bK.fetchPriority=Ey.fetchPriority);var TkU=ur();TkU.JSC$10024_loader_=bK;TkU.setBatchModeEnabled(!0)}
(function(){var d=document.querySelector("ytd-app");if(!d)throw Error("Kj");d=new zE({root:d,injector:_.Kj()});d.install(lBq);var H={};d.install((H.initialized={priority:10,callback:rV5},H));_.h("wp_lat_b")&&(H={},d.install((H.initialized={priority:10,callback:function(){du1()}},H)));
H={};d.install((H.rendered={priority:0,callback:Pml},H));H={};d.install((H.rendered={priority:0,callback:function(){_.Xp.addLowPriorityJob(function(){_.Ki1>1&&(VW1(),mFh())},4E4)}},H));
d.install(lKq);d.install(kiU);d.install(uBZ);J0E();d.install(UjU);d.install(gsb);d.install(qEg);d.install(sCO);d.install(tS0);d.install(R7T);d.install(q8Z);_.h("kevlar_enable_mss_lazy_load")&&d.install(n1v);d.install(GVS);d.install(RzU);if(!_.Qx("IS_SHELL_LOAD")||_.h("kevlar_fetch_initial_data_promise_client")||_.h("sw_nav_preload_pbj")){var K=_.kp(window.location.href);H=K&&K==="/watch";K=K&&K.match(IBS);H?d.install(m_Z):K?d.install(U_g):d.install(Lct)}else d.install(K6O);d.install(kVO);_.h("web_enable_prefetching_videos_on_home")&&
d.install(mjt);_.h("start_client_gcf")&&d.install(UNO);d.install(Wg0);(new r_l).increment("INSTALLED");d.install(L6j);d.install(djq);d.transition("initialized");ykh()})();
_.eh=[[["dTN1bjVlc3U1YXJ1a2luZCM=","Y2pyZ2lwd2VnM3ZhbHVlI29s"],"N3NydHA1NGFscEFEX1BMQUNFTUVOVF9LSU5EX1BBVVNFI3g2"]];_.lO=["bGxiYWNrcyNvcjFmOXY4d3p1emdsb2JhbENh","YnF6NzZpZHZ2OXhvb25BYm5vcm1hbGl0eURldGVjdGVkIw==","cm40Zm9uQWRTa2lwI3ljNHZha2lm","ZSNhN213MGhpYWt2eDRyYXdfcGxheWVyX3Jlc3BvbnM=","dGVudCMxazFhYWdxZnEyc3ByZW5kZXJpbmdDb24="];_.DE="bGxiYWNrcyNvcjFmOXY4d3p1emdsb2JhbENh YnF6NzZpZHZ2OXhvb25BYm5vcm1hbGl0eURldGVjdGVkIw== cm40Zm9uQWRTa2lwI3ljNHZha2lm ZSNhN213MGhpYWt2eDRyYXdfcGxheWVyX3Jlc3BvbnM= X3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI3FrZ2s0ZXl4ZHRzdndlYg== M2llM2FiX3NhX2VmI2hoeWtyNWlv dGVudCMxazFhYWdxZnEyc3ByZW5kZXJpbmdDb24=".split(" ");
_._ModuleManager_initialize=function(d,H){if(!_.wk){if(!_.Pz)return;_.AX1(_.Pz())}_.wk.setAllModuleInfoString(d,H)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc:5,a,d/sye:e/syf/syg:6/syh/h8y2qb:4,f,g,h,i/syi/JzFVk:d,h,i,k/syj:8/xwEKAe:3,9,g,i,m/syk:e/syl:1,b,e,g,k,m/sym:p/nmfa2d:i,o,q/syn:7,p/syo:h,i,q,s/CF909:o,t/Tm0L3c:t/L3n37:f,h,i,o,s/iuT5Oc',['sy2','sy3','sy8','syd','sya','sy5','syj','syi','syf','syc','syb','sy1','syl','sy7','sy6','syn','sym','syh','syg','syk','sye','syo','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.A3=function(d,H,K,c,p){var g={};H&&(g[H]=K);c?g.errorType=c:p&&(g.errorReason=p);_.Wd(d,g);_.Bd()};
_.jr=function(d){var H=_.OT();return _.YxA(H,d,1)};
_.zn({is:"iron-media-query",_template:null,properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},
_mq:{value:null}},attached:function(){this.style.display="none";this.queryChanged()},
detached:function(){this._remove()},
_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},
_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler);this._mq=null},
queryChanged:function(){this._remove();var d=this.query;d&&(this.full||d[0]==="("||(d="("+d+")"),this._mq=window.matchMedia(d),this._add(),this.queryHandler(this._mq))},
queryHandler:function(d){this._setQueryMatches(d.matches)}});var v1b;var dt5;var HlZ=function(){};
_.G=HlZ.prototype;_.G.addOwnKeyBinding=function(){};
_.G.removeOwnKeyBindings=function(){};
_.G.keyboardEventMatchesKeys=function(){};
_.G._collectKeyBindings=function(){};
_.G._prepKeyBindings=function(){};
_.G._addKeyBinding=function(){};
_.G._resetKeyEventListeners=function(){};
_.G._listenKeyEventListeners=function(){};
_.G._unlistenKeyEventListeners=function(){};
_.G._onKeyBindingEvent=function(){};
_.G._triggerKeyHandler=function(){};
_.G._tapHandler=function(){};
_.G._focusChanged=function(){};
_.G._detectKeyboardFocus=function(){};
_.G._userActivate=function(){};
_.G._upHandler=function(){};
_.G._spaceKeyDownHandler=function(){};
_.G._spaceKeyUpHandler=function(){};
_.G._asyncClick=function(){};
_.G._pressedChanged=function(){};
_.G._ariaActiveAttributeChanged=function(){};
_.G._activeChanged=function(){};
_.G._controlStateChanged=function(){};
_.G._changedButtonState=function(){};
_.G._focusBlurHandler=function(){};
_.G._disabledChanged=function(){};
_.G._changedControlState=function(){};
_.G._downHandler=function(){};
_.G.ensureRipple=function(){};
_.G.getRipple=function(){};
_.G.hasRipple=function(){};
_.G._noinkChanged=function(){};
_.G._focusedChanged=function(){};
_.G._createRipple=function(){};
_.G.registered=function(){};
_.G._invalidChanged=function(){};
_.G.hasValidator=function(){};
_.G.validate=function(){};
_.G._getValidity=function(){};
_.G._requiredChanged=function(){};
_.G._valueChanged=function(){};
_.G._checkedChanged=function(){};
_.G._buttonStateChanged=function(){};
_.G._setPressed=function(){};
_.G._setPointerDown=function(){};
_.G._setReceivedFocusFromKeyboard=function(){};
_.G._setFocused=function(){};
HlZ=_.zn({is:"tp-yt-paper-radio-button",_template:function(){if(dt5!==void 0)return dt5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_button.tp.yt.paper.radio.button.css.js--\x3e<div id="radioContainer" style-target="container" class="style-scope tp-yt-paper-radio-button">\n  <div id="offRadio" class="style-scope tp-yt-paper-radio-button"></div>\n  <div id="onRadio" class="style-scope tp-yt-paper-radio-button"></div>\n</div><div id="radioLabel" style-target="label" class="style-scope tp-yt-paper-radio-button"><slot class="style-scope tp-yt-paper-radio-button"></slot></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;v1b===void 0&&(v1b=document.createElement("template"));var c=v1b;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return dt5=d},
behaviors:[_.iyU],hostAttributes:{role:"radio","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"},name:{type:String,reflectToAttribute:!0}},ready:function(){this._rippleContainer=this.$.radioContainer},
attached:function(){_.vV(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var d=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),H=Math.floor(3*d);H%2!==d%2&&H++;this.updateStyles({"--paper-radio-button-ink-size":H+"px"})}})}});var $tj;var K5T;_.zn({_template:function(){if(K5T!==void 0)return K5T;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-group--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_group.tp.yt.paper.radio.group.css.js--\x3e<slot class="style-scope tp-yt-paper-radio-group"></slot>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;$tj===void 0&&($tj=document.createElement("template"));var c=$tj;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return K5T=d},
is:"tp-yt-paper-radio-group",behaviors:[_.UVC],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"tp-yt-paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(d){var H=this._valueToItem(d);if(!H||!H.hasAttribute("disabled")){if(this.selected){H=this._valueToItem(this.selected);if(this.selected==d)if(this.allowEmptySelection)d="";else{H&&(H.checked=!0);return}H&&
(H.checked=!1)}_.Nr.select.apply(this,[d]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(d){this._focusPrevious();d.preventDefault();this._activateFocusedItem()},
_onDownKey:function(d){this._focusNext();d.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(d){_.VAg._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(d){_.VAg._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Nr._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.ri._resetTabindices.apply(this,arguments);this.items.forEach(function(d){d.removeAttribute("aria-selected")},this)}});var ctv;_.XX("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var vX=function(){return _.B.apply(this,arguments)||this};
_.m(vX,_.B);_.G=vX.prototype;_.G.computeHasPrimaryIcon=function(d){return!(!d.icon&&!d.thumbnail)};
_.G.computeHasSecondary=function(d){return!(!d.secondaryIcon&&!d.secondaryNotificationText)};
_.G.computeHideSecondaryString=function(d){return!_.h("disable_hide_empty_secondary_string")&&!d.secondaryNotificationText};
_.G.computeCompactLinkStyle=function(d){return d?d.toLowerCase().replace(/_/g,"-"):""};
_.G.computeHasFitHeight=function(d){return d==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.G.isActiveEndpoint=function(d){return(d=this.get("commandMetadata.webCommandMetadata.url",d))?_.kp(window.location.href)!=="/account_transfer_channel"&&_.kp(window.location.href)!=="/gaia_link"&&_.kp(window.location.href)!=="/channel_switcher"||d!=="/account"?_.kp(window.location.href)===d:!0:!1};
_.G.onTap=function(){var d;((d=this.data)==null?0:d.serviceEndpoint)&&_.aF(this.hostElement,[this.data.serviceEndpoint])};
vX.prototype.onTap=vX.prototype.onTap;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],vX.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.O("design:type",Boolean)],vX.prototype,"active",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.O("design:type",String)],vX.prototype,"compactLinkStyle",void 0);
_.t([_.r({computed:"computeIcon_(data.icon)"}),_.O("design:type",Object)],vX.prototype,"icon",void 0);_.t([_.r({computed:"computeIcon_(data.secondaryIcon)"}),_.O("design:type",Object)],vX.prototype,"secondaryIcon",void 0);_.t([_.r({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],vX.prototype,"hasSecondary",void 0);_.t([_.r({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],vX.prototype,"hideSecondaryString",void 0);
_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],vX.prototype,"onTap",null);_.t([_.Z({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],vX);
_.T(vX,"ytd-compact-link-renderer",function(){if(ctv!==void 0)return ctv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-link-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" role="link" tabindex="-1">\n  \n  <tp-yt-paper-item role="none" class="style-scope ytd-compact-link-renderer">\n    <div id="content-icon" hidden="[[!computeHasPrimaryIcon(data)]]" class="style-scope ytd-compact-link-renderer">\n      <yt-img-shadow fit-height="[[computeHasFitHeight(data.style)]]" height="40" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-compact-link-renderer">\n      </yt-img-shadow>\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-compact-link-renderer">\n      </yt-icon>\n    </div>\n    <div id="primary-text-container" class="style-scope ytd-compact-link-renderer">\n      <yt-formatted-string id="label" text="[[data.title]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="right-icon" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]" class="style-scope ytd-compact-link-renderer">\n    </yt-icon>\n    <yt-formatted-string id="secondary-text" hidden="[[hideSecondaryString]]" text="[[data.secondaryNotificationText]]" class="style-scope ytd-compact-link-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ctv=d},{mode:1});var pkO;_.XX("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var dP=function(){var d=_.B.apply(this,arguments)||this;d.role="link";d.tabindex="0";d.actionMap=_.h("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return d};
_.m(dP,_.B);_.G=dP.prototype;_.G.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.B5()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.G.getCurrentTheme=function(){return _.ze()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.B5()};
_.G.onThemeSelected=function(d,H){var K=d||H?d:_.W5(),c=(K&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!K&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.rID(_.kp(window.location.href));_.Mo(0,165,d);_.Mo(0,174,H);this.prefs.save();c&&_.oF(this.hostElement,"yt-dark-mode-toggled-action",[K]);_.oF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.G.onTap=function(){this.data.serviceEndpoint&&_.aF(this.hostElement,[this.data.serviceEndpoint])};
_.G.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.G.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.G.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
dP.prototype.onTap=dP.prototype.onTap;dP.prototype.dataChanged=dP.prototype.dataChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],dP.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Dv),_.O("design:type",Object)],dP.prototype,"paperItemBehaviors",void 0);_.t([_.r(),_.O("design:type",Object)],dP.prototype,"data",void 0);_.t([_.r({value:function(){return _.Lo()}}),
_.O("design:type",_.vQ)],dP.prototype,"prefs",void 0);_.t([_.r(),_.O("design:type",Object)],dP.prototype,"label",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],dP.prototype,"role",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],dP.prototype,"tabindex",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dP.prototype,"dataChanged",null);
_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dP.prototype,"onTap",null);_.t([_.Z({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],dP);
_.oq()(dP,"ytd-toggle-theme-compact-link-renderer",function(){if(pkO===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-theme-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content-icon style-scope ytd-toggle-theme-compact-link-renderer">\n  <yt-icon id="primary-icon" disable-upgrade$="[[!data.primaryIcon.iconType]]" hidden="[[!data.primaryIcon.iconType]]" icon="[[data.primaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n  </yt-icon>\n</div>\n<div id="label" class="style-scope ytd-toggle-theme-compact-link-renderer">[[getSimpleString(label)]]</div>\n<yt-icon id="secondary-icon" disable-upgrade$="[[!data.secondaryIcon.iconType]]" hidden="[[!data.secondaryIcon.iconType]]" icon="[[data.secondaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n</yt-icon>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);pkO=d}d=pkO;return d},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var ilZ,GOG;_.HH=function(d){return!!d.getOptions("captions")};
_.gm0=function(d){return(d=d.getOption("captions","track"))?!!d.displayName:!1};
_.$B=function(d,H){_.wE(H,d,function(){return ilZ[H]},function(K){ilZ[H]=K;
if(!_.h("mweb_player_ve_show_ks")){var c=_.Fj(0);c&&K&&_.b5(c,K)}})};
_.KC=function(d){(d=ilZ[d])&&_.xR(_.hR(),d)};
ilZ={};var omj;/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
_.zn({_template:function(){if(omj!==void 0)return omj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-checkbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_checkbox.tp.yt.paper.checkbox.css.js--\x3e<div id="checkboxContainer" class="style-scope tp-yt-paper-checkbox">\n  <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]] style-scope tp-yt-paper-checkbox">\n    <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]] style-scope tp-yt-paper-checkbox"></div>\n  </div>\n</div><div id="checkboxLabel" style-target="label" class="style-scope tp-yt-paper-checkbox"><slot class="style-scope tp-yt-paper-checkbox"></slot></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;GOG===void 0&&(GOG=document.createElement("template"));var c=GOG;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return omj=d},
is:"tp-yt-paper-checkbox",behaviors:[_.iyU],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.vV(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var d=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),H="px",K=d.match(/[A-Za-z]+$/);K!==null&&(H=K[0]);d=parseFloat(d);K=8/3*d;H==="px"&&(K=Math.floor(K),K%2!==d%2&&K++);this.updateStyles({"--paper-checkbox-ink-size":K+
H})}})},
_computeCheckboxClass:function(d,H){var K="";d&&(K+="checked ");H&&(K+="invalid");return K},
_computeCheckmarkClass:function(d){return d?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.pwC._createRipple.call(this)}});var qeS=new _.Dk("radioButtonSurveyOptionRenderer"),apg=new _.Dk("checkboxSurveyOptionRenderer");var lp0;var eKj;var kOS=0,cH=function(){var d=_.B.call(this)||this;d.selected=!1;d.isOverlay=!1;d.inputId="toggle-option-"+kOS;kOS++;return d};
_.m(cH,_.B);cH.prototype.onTap=function(){_.GT(this.hostElement,"ytd-toggle-option-clicked")};
_.t([_.r(),_.O("design:type",String)],cH.prototype,"label",void 0);_.t([_.r(),_.O("design:type",String)],cH.prototype,"inputId",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],cH.prototype,"selected",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],cH.prototype,"isOverlay",void 0);_.t([_.Z({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.O("design:paramtypes",[])],cH);
_.T(cH,"ytd-toggle-option-renderer",function(){if(eKj!==void 0)return eKj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<input type="checkbox" id$="[[inputId]]" checked="[[selected]]" on-click="onTap" class="style-scope ytd-toggle-option-renderer">\n<label for$="[[inputId]]" class="style-scope ytd-toggle-option-renderer">[[label]]</label>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return eKj=d},{mode:1});var pC=function(){var d=_.B.apply(this,arguments)||this;d.isToggleOption=!1;d.isOverlay=!1;return d};
_.m(pC,_.B);pC.prototype.onTap=function(d){d.preventDefault();this.data&&(d=!this.data.checked,this.set("data.checked",d),_.GT(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:d,value:this.data.value}))};
_.H3.Object.defineProperties(pC.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
pC.prototype.onTap=pC.prototype.onTap;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],pC.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],pC.prototype,"isToggleOption",void 0);_.t([_.r(),_.O("design:type",Object)],pC.prototype,"isOverlay",void 0);_.t([_.I("data.responseText"),_.O("design:type",String),_.O("design:paramtypes",[])],pC.prototype,"label",null);
_.t([_.nK("ytd-toggle-option-clicked"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],pC.prototype,"onTap",null);_.t([_.Z({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],pC);
_.T(pC,"ytd-checkbox-survey-option-renderer",function(){if(lp0!==void 0)return lp0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <tp-yt-paper-checkbox checked="[[data.checked]]" on-tap="onTap" class="style-scope ytd-checkbox-survey-option-renderer">\n    [[label]]\n  </tp-yt-paper-checkbox>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <ytd-toggle-option-renderer is-overlay="[[isOverlay]]" label="[[label]]" selected="[[data.checked]]" class="style-scope ytd-checkbox-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return lp0=d},{mode:1});var xtj;var nmO;var gP=function(){var d=_.B.apply(this,arguments)||this;d.checked=!1;d.isToggleOption=!1;return d};
_.m(gP,_.B);gP.prototype.onTap=function(){this.data&&(this.checked?_.oF(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.oF(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
gP.prototype.onTap=gP.prototype.onTap;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],gP.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],gP.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],gP.prototype,"checked",void 0);_.t([_.r(),_.O("design:type",Object)],gP.prototype,"isToggleOption",void 0);_.t([_.nK("ytd-toggle-option-clicked"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],gP.prototype,"onTap",null);
_.t([_.Z({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],gP);
_.T(gP,"ytd-radio-button-survey-option-renderer",function(){if(nmO!==void 0)return nmO;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-button-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <tp-yt-paper-radio-button id="radio" checked="[[checked]]" on-click="onTap" class="style-scope ytd-radio-button-survey-option-renderer">\n    [[getSimpleString(data.option)]]\n  </tp-yt-paper-radio-button>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <ytd-toggle-option-renderer label="[[getSimpleString(data.option)]]" selected="[[checked]]" class="style-scope ytd-radio-button-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return nmO=d},{mode:1});var i4=function(){var d=_.B.apply(this,arguments)||this;d.disableAnimation=!1;d.isToggleOption=!0;d.followUpSurveyCommand=null;d.selectedRatingEndpoint=null;d.isSlimlineSurveyFollowUp=!1;d.isShortsStyle=!1;d.styleOverrideAttribute=!0;d.isDarkMode=!1;d.isSubmitted=!1;d.roundedContainer=!0;d.improveShortsResponseRate=_.h("web_improve_shorts_response_rate");d.actionMap={"ytd-inline-survey-rating-select-action":"handleInlineSurveyRatingSelect","ytd-inline-survey-option-select-action":"handleInlineSurveyOptionSelect",
"ytd-inline-survey-option-deselect-action":"handleInlineSurveyOptionDeselect","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return d};
_.m(i4,_.B);_.G=i4.prototype;
_.G.configureRendererStamper=function(){return{"data.inlineContent":{id:"inline-survey-compact-video-renderer",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",properties:{isShortsStyle:"[[isShortsStyle]]"}}}},"data.response.expandableSurveyResponseRenderer.options":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]",
showResponseRangeText:"[[isShortsStyle]]"}}}},"followUpSurveyCommand.followUpOptions":{id:"follow-up-survey-options",mapping:{checkboxSurveyOptionRenderer:{component:"ytd-checkbox-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]",isOverlay:"[[isShortsStyle]]"}},radioButtonSurveyOptionRenderer:{component:"ytd-radio-button-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]"}}}},"data.response.expandableSurveyResponseRenderer.skipButton":{id:"skip-btn-footer",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.response.expandableSurveyResponseRenderer.continueButton":{id:"continue-btn-footer",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"post-submit-message",mapping:{messageRenderer:{component:"ytd-message-renderer"}}}}};
_.G.attached=function(){var d=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(K){var c;if((c=K[0])!=null&&c.isIntersecting){_.Vp().reportShown(d.hostElement);var p;(p=d.intersectionObserver)==null||p.unobserve(d.hostElement)}},{rootMargin:"0px",
threshold:.6});var H;(H=this.intersectionObserver)==null||H.observe(this.hostElement)};
_.G.onDarkModeToggledAction=function(d){this.isDarkMode=d};
_.G.dataChanged=function(){var d;if(((d=this.data)==null?void 0:d.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var H;((H=this.data)==null?void 0:H.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var K,c,p,g;this.darkColorPalette=(K=this.data)==null?void 0:(c=K.inlineContent)==null?void 0:(p=c.compactVideoRenderer)==null?void 0:(g=p.thumbnail)==null?
void 0:g.darkColorPalette;var a,e,k,C;this.lightColorPalette=(a=this.data)==null?void 0:(e=a.inlineContent)==null?void 0:(k=e.compactVideoRenderer)==null?void 0:(C=k.thumbnail)==null?void 0:C.lightColorPalette;var R,V;if(((R=this.data)==null?0:(V=R.inlineContent)==null?0:V.compactVideoRenderer)&&this.isShortsStyle){var U,L,w,W;d=_.od((U=this.data)==null?void 0:(L=U.inlineContent)==null?void 0:(w=L.compactVideoRenderer)==null?void 0:(W=w.thumbnail)==null?void 0:W.thumbnails);_.eO(this.hostElement,
{"--yt-background-url":"url("+d+")"})}};
_.G.handleRequestCompletion=function(){this.hostElement.hidden&&_.GT(this.hostElement,"yt-dismissible-item-dismissed")};
_.G.onPopupClosed=function(d){var H;((H=d.detail)==null?void 0:H.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.oF(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.G.handleInlineSurveyRatingSelect=function(d,H){var K=this;this.selectedRatingEndpoint=d;this.followUpSurveyCommand=H;this.expanded=!!d;this.getOptionRenderers().forEach(function(c,p){K.notifyPath("followUpSurveyCommand.followUpOptions."+p+".checkboxSurveyOptionRenderer.checked");K.set("followUpSurveyCommand.followUpOptions."+p+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),d=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.oF(this.hostElement,"yt-reel-non-video-content-dismissal-command",[d]))};
_.G.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.oF(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var d,H=(d=this.data)==null?void 0:d.dismissalEndpoint;H&&this.ytComponentBehavior.resolveCommand(H)}};
_.G.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.oF(this.hostElement,"yt-close-popup-action"))};
_.G.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var d=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{d=this.getOptionRenderers().filter(function(c){return c.checked});
if(d.length===0)return;d=d.map(function(c){return c.responseEndpoint})}var H=[];
d.forEach(function(c,p){p!==0&&(c=_.M(c,_.Ww))&&c.feedbackToken&&H.push(c.feedbackToken)});
if(d=d[0]){var K={};H.length>0&&(K.extra_feedback_tokens=H);this.ytComponentBehavior.resolveCommand(d,{form:K})}}};
_.G.getOptionRenderers=function(){var d=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(H){d.isSingleSelect=!!_.M(H,qeS);return d.isSingleSelect?_.M(H,qeS):_.M(H,apg)}):[]};
_.G.handleInlineSurveyOptionSelect=function(d){d=this.optionSelector.indexOf(d);d!==-1&&this.optionSelector.selectIndex(d)};
_.G.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.G.maybeGetBackgroundColor=function(d){return this.isDarkMode?d.section2Color:d.section3Color};
_.G.colorPaletteChanged=function(){var d=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;d=d&&this.maybeGetBackgroundColor(d);this.dismissibleEl.style.backgroundColor=!d||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Yi(d)};
_.H3.Object.defineProperties(i4.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
i4.prototype.colorPaletteChanged=i4.prototype.colorPaletteChanged;i4.prototype.onPopupClosed=i4.prototype.onPopupClosed;i4.prototype.handleRequestCompletion=i4.prototype.handleRequestCompletion;i4.prototype.dataChanged=i4.prototype.dataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],i4.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],i4.prototype,"actionHandlerBehavior",void 0);
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],i4.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],i4.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.VP("#follow-up-survey-options"),_.O("design:type",Object)],i4.prototype,"optionSelector",void 0);_.t([_.r(),_.O("design:type",Object)],i4.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Object)],i4.prototype,"disableAnimation",void 0);_.t([_.r(),_.O("design:type",Object)],i4.prototype,"isToggleOption",void 0);_.t([_.r(),_.O("design:type",Object)],i4.prototype,"followUpSurveyCommand",void 0);_.t([_.r(),_.O("design:type",Object)],i4.prototype,"selectedRatingEndpoint",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],i4.prototype,"expanded",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],i4.prototype,"isSlimlineSurveyFollowUp",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],i4.prototype,"isShortsStyle",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],i4.prototype,"styleOverrideAttribute",void 0);_.t([_.r(),_.O("design:type",Boolean)],i4.prototype,"isSingleSelect",void 0);_.t([_.r(),_.O("design:type",Object)],i4.prototype,"isDarkMode",void 0);
_.t([_.r(),_.O("design:type",Object)],i4.prototype,"lightColorPalette",void 0);_.t([_.r(),_.O("design:type",Object)],i4.prototype,"darkColorPalette",void 0);_.t([_.I("selectedRatingEndpoint","isShortsStyle"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],i4.prototype,"isOptionSelected",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],i4.prototype,"roundedContainer",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],i4.prototype,"improveShortsResponseRate",void 0);_.t([_.VP("#dismissible"),_.O("design:type",HTMLElement)],i4.prototype,"dismissibleEl",void 0);_.t([_.VP("#dismiss-button yt-icon-button"),_.O("design:type",HTMLElement)],i4.prototype,"dismissButtonEl",void 0);_.t([_.VP("#inline-survey-header yt-icon-button"),_.O("design:type",HTMLElement)],i4.prototype,"inlineHeaderDismissButtonEl",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],i4.prototype,"dataChanged",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],i4.prototype,"handleRequestCompletion",null);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],i4.prototype,"onPopupClosed",null);
_.t([_.CK("darkColorPalette","lightColorPalette","isDarkMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],i4.prototype,"colorPaletteChanged",null);_.t([_.Z({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],i4);
_.T(i4,"ytd-inline-survey-renderer",function(){if(xtj!==void 0)return xtj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-inline-survey-renderer">\n  <div class="survey-wrapper style-scope ytd-inline-survey-renderer">\n    <div id="star-survey" class="style-scope ytd-inline-survey-renderer">\n      <div id="inline-survey-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="title" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.title)]]</span>\n          <span id="subtitle" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.subtitle)]]</span>\n        </h2>\n        <yt-icon-button hidden="[[expanded]]" label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="inline-survey-compact-video-renderer" class="style-scope ytd-inline-survey-renderer"></div>\n      <div id="rating-survey" class="style-scope ytd-inline-survey-renderer"></div>\n    </div>\n    <div id="follow-up-survey" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n      <div id="follow-up-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="follow-up-title" class="style-scope ytd-inline-survey-renderer">\n            [[getSimpleString(followUpSurveyCommand.followUpText)]]\n          </span>\n        </h2>\n      </div>\n      <iron-selector id="follow-up-survey-options" activate-event="" selected-attribute="checked" class="style-scope ytd-inline-survey-renderer">\n      </iron-selector>\n      <div id="submit-btn-footer" class="style-scope ytd-inline-survey-renderer">\n        <ytd-button-renderer id="submit-button" data="[[data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-inline-survey-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="skip-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="dismiss-button" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n    <yt-icon-button label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-inline-survey-renderer">\n  <div id="post-submit-message" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="continue-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return xtj=d},{mode:1});var Cj0=["en-CA","en","es-MX","fr-CA"];_.RKU=_.H1(function(d){var H=_.dg(d,{isOverlay:!1,isModern:!1}),K=H.captionIconType,c=H.onClick;d=H.ariaLabel;var p=H.ariaPressed,g=H.isOverlay,a=H.isModern;H=_.Af("button",function(C){_.$B(C,127299)});
var e=_.n7(function(C){_.KC(127299);c==null||c(C);return!1}),k={};
return _.x("ytm-closed-captioning-button",{class:_.xM("ytmClosedCaptioningButtonHost",(k.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return K()===-1&&g()},k.ytmClosedCaptioningButtonIconDisabled=function(){return K()===-1&&!g()},k))},_.x("button",{el:H,
class:"ytmClosedCaptioningButtonButton",title:d,"aria-label":d,"aria-pressed":p,"on:click":e},_.x(_.hu,{icon:function(){var C="",R=a();var V=R?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";R=R?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var U=_.Lo().get("hl");V=!U||Cj0.includes(U)?V:R;R=K();switch(R){case -1:case 0:C=V;break;case 1:C=V+"_FILLED";break;default:_.tN(R)}return C}})))},"uf");
_.RKU.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.kH=function(d){return function(H,K){var c=d||K.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(H,K,{get:function(){var p;return this.$?this.$[c]:(p=_.R1(this))==null?void 0:p.querySelector("#"+c)},
enumerable:!0,configurable:!0})}};_.xH=function(d){d=d===void 0?!1:d;_.h_.call(this);this.pubSub_=new _.Cj(d);_.q_(this,this.pubSub_)};
_.K1(_.xH,_.h_);_.xH.prototype.subscribe=function(d,H,K){return this.isDisposed()?0:this.pubSub_.subscribe(d,H,K)};
_.xH.prototype.unsubscribe=function(d,H,K){return this.isDisposed()?!1:this.pubSub_.unsubscribe(d,H,K)};
_.xH.prototype.unsubscribeByKey=function(d){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(d)};
_.xH.prototype.publish=function(d,H){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var z0S=function(){_.A3("ypcRedeemFlowStarted")},kb=function(d){_.A3("ypcRedeemFlowFailed",void 0,void 0,void 0,d)},XRb=function(d,H,K){H&&K&&(d.videos.forEach(function(c){c.videoId===H&&(c.itemId=K)}),d.recommendedVideos.forEach(function(c){c.videoId===H&&(c.itemId=K)}))};var J0Z;var sQj;/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
_.zn({_template:function(){if(sQj!==void 0)return sQj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_image.tp.yt.iron.image.css.js--\x3e<a id="baseURIAnchor" href="#" class="style-scope tp-yt-iron-image"></a>\n<div id="sizedImgDiv" role="img" hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]" class="style-scope tp-yt-iron-image"></div>\n<img id="img" alt$="[[alt]]" hidden$="[[_computeImgHidden(sizing)]]" crossorigin$="[[crossorigin]]" on-load="_imgOnLoad" on-error="_imgOnError" class="style-scope tp-yt-iron-image">\n<div id="placeholder" hidden$="[[_computePlaceholderHidden(preload, fade, loading, loaded)]]" class$="[[_computePlaceholderClassName(preload, fade, loading, loaded)]] style-scope tp-yt-iron-image"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;J0Z===void 0&&(J0Z=document.createElement("template"));var c=J0Z;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return sQj=d},
is:"tp-yt-iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1},error:{notify:!0,
readOnly:!0,type:Boolean,value:!1},width:{observer:"_widthChanged",type:Number,value:null},height:{observer:"_heightChanged",type:Number,value:null}},observers:["_transformChanged(sizing, position)","_loadStateObserver(src, preventLoad)"],created:function(){this._resolvedSrc=""},
_imgOnLoad:function(){this.$.img.src===this._resolveSrc(this.src)&&(this._setLoading(!1),this._setLoaded(!0),this._setError(!1))},
_imgOnError:function(){this.$.img.src===this._resolveSrc(this.src)&&(this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",this._setLoading(!1),this._setLoaded(!1),this._setError(!0))},
_computePlaceholderHidden:function(){return!this.preload||!this.fade&&!this.loading&&this.loaded},
_computePlaceholderClassName:function(){return this.preload&&this.fade&&!this.loading&&this.loaded?"faded-out":""},
_computeImgDivHidden:function(){return!this.sizing},
_computeImgDivARIAHidden:function(){return this.alt===""?"true":void 0},
_computeImgDivARIALabel:function(){return this.alt!==null?this.alt:this.src===""?"":this._resolveSrc(this.src).replace(/[?|#].*/g,"").split("/").pop()},
_computeImgHidden:function(){return!!this.sizing},
_widthChanged:function(){this.style.width=isNaN(this.width)?this.width:this.width+"px"},
_heightChanged:function(){this.style.height=isNaN(this.height)?this.height:this.height+"px"},
_loadStateObserver:function(d,H){var K=this._resolveSrc(d);K!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",d===""||H?this._setLoading(!1):(this._resolvedSrc=K,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var d=this.$.sizedImgDiv.style,H=this.$.placeholder.style;d.backgroundSize=H.backgroundSize=this.sizing;d.backgroundPosition=H.backgroundPosition=this.sizing?this.position:"";d.backgroundRepeat=H.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(d){d=_.GN(d,this.$.baseURIAnchor.href);d.length>=2&&d[0]==="/"&&d[1]!=="/"&&(d=(location.origin||location.protocol+"//"+location.host)+d);return d}});var Fdv;var ZZq;_.zn({_template:function(){if(ZZq!==void 0)return ZZq;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-card--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_card.tp.yt.paper.card.css.js--\x3e<div class="header style-scope tp-yt-paper-card">\n  <tp-yt-iron-image hidden$="[[!image]]" aria-hidden$="[[_isHidden(image)]]" src="[[image]]" alt="[[alt]]" placeholder="[[placeholderImage]]" preload="[[preloadImage]]" fade="[[fadeImage]]" class="style-scope tp-yt-paper-card"></tp-yt-iron-image>\n  <div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]] style-scope tp-yt-paper-card">\n    [[heading]]\n  </div>\n</div>\n\n<slot class="style-scope tp-yt-paper-card"></slot>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;Fdv===void 0&&(Fdv=document.createElement("template"));var c=Fdv;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return ZZq=d},
is:"tp-yt-paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(d){return d?"false":"true"},
_headingChanged:function(d){var H=this.getAttribute("heading"),K=this.getAttribute("aria-label");typeof K==="string"&&K!==H||this.setAttribute("aria-label",d)},
_computeHeadingClass:function(d){return d?" over-image":""},
_computeAnimated:function(d){return d}});var TW0=new _.Dk("addRendererToItemSectionAction");var QQZ;var xb=function(){return _.B.apply(this,arguments)||this};
_.m(xb,_.B);xb.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],xb.prototype,"rendererBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],xb.prototype,"dismissibleItemBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],xb.prototype,"rendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],xb.prototype,"data",void 0);_.t([_.Z({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],xb);
_.T(xb,"ytd-comment-history-entry-renderer",function(){if(QQZ!==void 0)return QQZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-comment-history-entry-renderer">\n  <yt-formatted-string class="summary style-scope ytd-comment-history-entry-renderer" link-inherit-color="" text="[[data.summary]]"></yt-formatted-string>\n  <ytd-expander class="content-expander style-scope ytd-comment-history-entry-renderer" hidden="[[!data.content]]" max-number-of-lines="4">\n    <yt-formatted-string class="content style-scope ytd-comment-history-entry-renderer" slot="content" force-default-style="" split-lines="" text="[[data.content]]">\n    </yt-formatted-string>\n    <span class="more-button style-scope ytd-comment-history-entry-renderer" slot="more-button">[[getSimpleString(data.readMoreText)]]</span>\n    <span class="less-button style-scope ytd-comment-history-entry-renderer" slot="less-button">[[getSimpleString(data.showLessText)]]</span>\n  </ytd-expander>\n  <yt-formatted-string class="timestamp style-scope ytd-comment-history-entry-renderer" text="[[data.timestamp]]"></yt-formatted-string>\n</div>\n<div id="menu" class="style-scope ytd-comment-history-entry-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return QQZ=d},{mode:1});var tpG;_.XX("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.XX("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var nZ=function(){return _.B.apply(this,arguments)||this};
_.m(nZ,_.B);_.G=nZ.prototype;_.G.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G.onKeyUp=function(d){if(d.keyCode===13)this.onTap()};
_.G.onTap=function(){this.data.recordClickEndpoint&&_.Kj().resolve(_.cb).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var d=this.data.navigationEndpoint;d&&_.M(d,_.Js)&&_.Kj().resolve(_.cb).resolveCommand(d,{form:{element:this.hostElement}})};
_.G.readChanged=function(){var d;_.qr(this.hostElement,"unread",!((d=this.data)==null?0:d.read))};
_.G.dataChanged=function(){this.data&&_.qr(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.G.computeThumbnailSize=function(){var d;return((d=this.data)==null?0:d.highPriorityNotification)?32:48};
_.G.getEndpointURL=function(d){return d&&!_.M(d,_.Js)?this.componentBehavior.computeHref_(d):null};
_.G.getEndpointData=function(d){return d&&!_.M(d,_.Js)?d:null};
nZ.prototype.computeThumbnailSize=nZ.prototype.computeThumbnailSize;nZ.prototype.dataChanged=nZ.prototype.dataChanged;nZ.prototype.readChanged=nZ.prototype.readChanged;nZ.prototype.onKeyUp=nZ.prototype.onKeyUp;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],nZ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],nZ.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],nZ.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],nZ.prototype,"data",void 0);_.t([_.r({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.O("design:type",Number)],nZ.prototype,"thumbnailSize",void 0);_.t([_.nK("keyup"),_.O("design:type",Function),_.O("design:paramtypes",[KeyboardEvent]),_.O("design:returntype")],nZ.prototype,"onKeyUp",null);
_.t([_.CK("data.read"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nZ.prototype,"readChanged",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nZ.prototype,"dataChanged",null);_.t([_.CK("data.highPriorityNotification"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nZ.prototype,"computeThumbnailSize",null);
_.t([_.Z({is:"ytd-notification-renderer",disableElementRegistration:!0})],nZ);
_.T(nZ,"ytd-notification-renderer",function(){if(tpG!==void 0)return tpG;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-notification-renderer" href$="[[getEndpointURL(data.navigationEndpoint)]]" data="[[getEndpointData(data.navigationEndpoint)]]" on-tap="onTap" tabindex="0" role="link">\n  <div id="new" class="style-scope ytd-notification-renderer"></div>\n  <yt-img-shadow id="avatar" class="thumbnail  style-scope ytd-notification-renderer" height="[[thumbnailSize]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailSize]]">\n  </yt-img-shadow>\n  <div class="text style-scope ytd-notification-renderer">\n    <yt-formatted-string class="message style-scope ytd-notification-renderer" text="[[data.shortMessage]]"></yt-formatted-string>\n    <div id="call-to-action" hidden="[[!data.highPriorityNotificationActionButton]]" class="style-scope ytd-notification-renderer"></div>\n    <div class="metadata style-scope ytd-notification-renderer">\n      <yt-formatted-string text="[[data.footer]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n      <yt-formatted-string text="[[data.sentTimeText]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" if="[[data.videoThumbnail]]" class="style-scope ytd-notification-renderer">\n    <div class="thumbnail-container style-scope ytd-notification-renderer">\n      <yt-img-shadow thumbnail="[[data.videoThumbnail]]" width="86" class="style-scope ytd-notification-renderer"></yt-img-shadow>\n    </div>\n  </template>\n</a>\n<div id="menu" class="style-scope ytd-notification-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return tpG=d},{mode:1});var YpU;var CZ=function(){return _.B.apply(this,arguments)||this};
_.m(CZ,_.B);CZ.prototype.configureRendererStamper=function(){return{"data.collection":{id:"dropdown",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer"}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
CZ.prototype.computeActionButtonClass=function(d){return!d.actionButtons||d.actionButtons.length<=1?"single-button":d.description?"vertical-buttons":"horizontal-buttons"};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],CZ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],CZ.prototype,"data",void 0);_.t([_.Z({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],CZ);
_.T(CZ,"ytd-playlist-show-metadata-renderer",function(){if(YpU!==void 0)return YpU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-show-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-desc" class="style-scope ytd-playlist-show-metadata-renderer">\n  <div id="dropdown" class="style-scope ytd-playlist-show-metadata-renderer"></div>\n  <ytd-expander class="description style-scope ytd-playlist-show-metadata-renderer" max-number-of-lines="2">\n    <yt-formatted-string id="description" class="content style-scope ytd-playlist-show-metadata-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-playlist-show-metadata-renderer" slot="more-button" role="button" text="[[data.showMoreText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="less-button style-scope ytd-playlist-show-metadata-renderer" slot="less-button" role="button" text="[[data.showLessText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n<div id="action-buttons" class$="[[computeActionButtonClass(data)]] style-scope ytd-playlist-show-metadata-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return YpU=d},{mode:1});var OZ1;_.XX("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var RQ=function(){return _.B.apply(this,arguments)||this};
_.m(RQ,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],RQ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],RQ.prototype,"data",void 0);_.t([_.Z({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],RQ);
_.T(RQ,"ytd-purchase-item-renderer",function(){if(OZ1!==void 0)return OZ1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint purchase-endpoint style-scope ytd-purchase-item-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumb-container style-scope ytd-purchase-item-renderer">\n    <yt-img-shadow fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-purchase-item-renderer"></yt-img-shadow>\n  </div>\n  <div class="details style-scope ytd-purchase-item-renderer">\n    <yt-formatted-string class="title style-scope ytd-purchase-item-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="price-text style-scope ytd-purchase-item-renderer" no-endpoints="" text="[[data.priceText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="manage-subscription-text style-scope ytd-purchase-item-renderer" force-default-style="" text="[[data.manageSubscriptionText]]">\n    </yt-formatted-string>\n  </div>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return OZ1=d},{mode:1});var Sp1;var Eb0={};Eb0.YtSimpleTextSectionBehavior={properties:{data:Object,layoutStyle:{type:String,computed:"computeLayoutStyle_(data.layoutStyle)",reflectToAttribute:!0},role:{type:String,computed:"computeRole_(data.layoutStyle)",reflectToAttribute:!0}},created:function(){this.LAYOUT_STYLE_PREFIX_="SIMPLE_TEXT_LAYOUT_STYLE_"},
computeLayoutStyle_:function(d){if(d)return d.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(d){if(d==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.XX("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var Vo=function(){return _.B.apply(this,arguments)||this};
_.m(Vo,_.B);Vo.prototype.onYtNavigate=function(d){var H=this.openPopupBehavior.getNavigationEndpointPopupAction(d.detail.endpoint);H&&(d.stopPropagation(),this.openPopupBehavior.openPopup(H))};
Vo.prototype.onYtNavigate=Vo.prototype.onYtNavigate;_.t([_.u(Eb0.YtSimpleTextSectionBehavior),_.O("design:type",Object)],Vo.prototype,"ytSimpleTextSectionBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Vo.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Ke),_.O("design:type",Object)],Vo.prototype,"openPopupBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Vo.prototype,"data",void 0);
_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Vo.prototype,"onYtNavigate",null);_.t([_.Z({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],Vo);
_.T(Vo,"ytd-simple-text-section-renderer",function(){if(Sp1!==void 0)return Sp1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-text-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.lines]]" class="style-scope ytd-simple-text-section-renderer">\n  <yt-formatted-string class="text style-scope ytd-simple-text-section-renderer" text="[[item]]"></yt-formatted-string>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Sp1=d},{mode:1});var y0O;_.XX("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var Up=function(){return _.B.apply(this,arguments)||this};
_.m(Up,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Up.prototype,"data",void 0);_.t([_.Z({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],Up);
_.T(Up,"ytd-unlimited-page-feature-info-renderer",function(){if(y0O!==void 0)return y0O;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-page-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-unlimited-page-feature-info-renderer">\n  <yt-formatted-string class="info-head style-scope ytd-unlimited-page-feature-info-renderer" text="[[data.title]]"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-unlimited-page-feature-info-renderer">\n    <yt-formatted-string class="info-desc style-scope ytd-unlimited-page-feature-info-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</div>\n<yt-img-shadow class="icon-thumbnail style-scope ytd-unlimited-page-feature-info-renderer" height="194" thumbnail="[[data.iconThumbnail]]" width="390">\n</yt-img-shadow>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return y0O=d},{mode:1});var bZU;var NWO;var h0=function(){return _.B.apply(this,arguments)||this};
_.m(h0,_.B);h0.prototype.dataChanged=function(){if(this.data){var d=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);d&&(d=_.Gv(d,screen.width),this.hostElement.style.backgroundImage="url("+d+")")}};
h0.prototype.dataChanged=h0.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],h0.prototype,"data",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],h0.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],h0);
_.T(h0,"ytd-post-redemption-section-renderer",function(){if(NWO!==void 0)return NWO;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-redemption-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="img-container style-scope ytd-post-redemption-section-renderer">\n  <yt-img-shadow id="logo" height="25" thumbnail="[[data.logoImage.thumbnailLandscapePortraitRenderer.portrait]]" class="style-scope ytd-post-redemption-section-renderer">\n  </yt-img-shadow>\n</div>\n<div class="container style-scope ytd-post-redemption-section-renderer">\n  <div class="title style-scope ytd-post-redemption-section-renderer">[[getSimpleString(data.title)]]</div>\n  <ytd-button-renderer id="redeem-button" data="[[data.button.buttonRenderer]]" class="style-scope ytd-post-redemption-section-renderer">\n  </ytd-button-renderer>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return NWO=d},{mode:1});var DuO;var LZ=function(){return _.B.apply(this,arguments)||this};
_.m(LZ,_.B);LZ.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],LZ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],LZ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],LZ.prototype,"data",void 0);_.t([_.Z({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],LZ);
_.T(LZ,"ytd-ypc-post-redemption-renderer",function(){if(DuO!==void 0)return DuO;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-post-redemption-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="store-value-balance" class="style-scope ytd-ypc-post-redemption-renderer">[[getSimpleString(data.storeValueBalance)]]</div>\n<div id="contents" class="style-scope ytd-ypc-post-redemption-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return DuO=d},{mode:1});_.XX("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Mu=function(){var d=_.B.apply(this,arguments)||this;d.MIN_CODE_LENGTH=12;d.MAX_CODE_LENGTH=24;return d};
_.m(Mu,_.B);_.G=Mu.prototype;_.G.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.G.created=function(){this.riskService=new _.WQD;this.loadPaymentThenable=_.z2X(_.Fm("YPC_MB_URL"))};
_.G.ready=function(){var d=this;this.code.addEventListener("keypress",function(H){d.onCodeInputKeypress(H)})};
_.G.dataChanged=function(){var d=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(H){H=_.q(H);for(var K=H.next();!K.done;K=H.next())K=K.value,K.type==="attributes"&&K.attributeName==="dark"&&d.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.G.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var d=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+d+")")}};
_.G.computeRedeemButton=function(d){(d=this.get("redeemButton.buttonRenderer",d))&&(d=Object.assign({},d,{serviceEndpoint:void 0}));return d};
_.G.onRedeemButtonTap=function(d){d.stopPropagation();z0S();this.redeemCode()};
_.G.redeemCode=function(){var d=this;this.isLoading=!0;var H=this.riskService.init();_.hH([H,this.loadPaymentThenable]).then(function(){var K=d.data.redeemButton.buttonRenderer.serviceEndpoint,c=_.B6M(),p=payments.business.integration.ClientTokenFactory.createClientToken(_.M(K,_.Qm6).countryCode,c);c={c:d.code.value.trim(),rd:window.btoa(c),ctk:p};K&&_.Kj().resolve(_.cb).resolveCommand(K,{form:Object.assign({},c,{element:d.hostElement})})},function(){d.showGenericError();
kb("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.tm(Error("oo"))})};
_.G.onYtServiceRequestCompleted=function(d){d.stopPropagation();this.isLoading=!1;var H,K;this.errorMessage=(H=d.detail)==null?void 0:(K=H.data)==null?void 0:K.errorMessage;var c,p;this.postRedemptionRenderer=(c=d.detail)==null?void 0:(p=c.data)==null?void 0:p.renderer;var g,a;if(d=(g=d.detail)==null?void 0:(a=g.data)==null?void 0:a.redirectEndpoint)this.isLoading=!0,_.GT(this.hostElement,"yt-navigate",{endpoint:d});this.errorMessage?kb("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
d)&&_.A3("ypcRedeemFlowSucceeded")};
_.G.onYtServiceRequestError=function(d){d.stopPropagation();this.isLoading=!1;if(d=this.get("detail.error.message",d))this.errorMessage=_.AF(d);kb("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.G.onInvokeInstrumentManagerActionCompleted=function(d){d.stopPropagation();this.redeemCode()};
_.G.onInvokeInstrumentManagerActionError=function(d){d.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",d)){case "instrumentManagerLoadError":this.showGenericError();kb("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();kb("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.A3("ypcRedeemFlowCancelled")}};
_.G.onInput=function(){var d=this;_.yP(this,"onInput",function(){var H=d.code.value.trim();d.redeemButtonDisabled=H.length<d.MIN_CODE_LENGTH||H.length>d.MAX_CODE_LENGTH},200)};
_.G.onCodeInputKeypress=function(d){d.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(z0S(),this.redeemCode())};
_.G.computeImageUrl=function(d){return d?_.Gv(d.thumbnails,600):null};
_.G.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Mu.prototype.onInvokeInstrumentManagerActionError=Mu.prototype.onInvokeInstrumentManagerActionError;Mu.prototype.onInvokeInstrumentManagerActionCompleted=Mu.prototype.onInvokeInstrumentManagerActionCompleted;Mu.prototype.onYtServiceRequestError=Mu.prototype.onYtServiceRequestError;Mu.prototype.onYtServiceRequestCompleted=Mu.prototype.onYtServiceRequestCompleted;Mu.prototype.dataChanged=Mu.prototype.dataChanged;
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Mu.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Mu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Mu.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Mu.prototype,"isLoading",void 0);_.t([_.r(),_.O("design:type",Boolean)],Mu.prototype,"redeemButtonDisabled",void 0);
_.t([_.r(),_.O("design:type",Object)],Mu.prototype,"errorMessage",void 0);_.t([_.r(),_.O("design:type",Object)],Mu.prototype,"postRedemptionRenderer",void 0);_.t([_.r(),_.O("design:type",Object)],Mu.prototype,"observer",void 0);_.t([_.VP("#code"),_.O("design:type",HTMLInputElement)],Mu.prototype,"code",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Mu.prototype,"dataChanged",null);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Mu.prototype,"onYtServiceRequestCompleted",null);_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Mu.prototype,"onYtServiceRequestError",null);
_.t([_.nK("yt-invoke-instrument-manager-action-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Mu.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.t([_.nK("yt-invoke-instrument-manager-action-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Mu.prototype,"onInvokeInstrumentManagerActionError",null);_.t([_.Z({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Mu);
_.T(Mu,"ytd-redeem-code-renderer",function(){if(bZU!==void 0)return bZU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-redeem-code-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" hidden="[[postRedemptionRenderer]]" class="style-scope ytd-redeem-code-renderer">\n  <div class="title style-scope ytd-redeem-code-renderer">[[getSimpleString(data.title)]]</div>\n  <div class="subtitle style-scope ytd-redeem-code-renderer">[[getSimpleString(data.subTitle)]]</div>\n  <input id="code" type="text" autocomplete="off" maxlength="24" on-input="onInput" size="24" placeholder="[[getSimpleString(data.placeholderText)]]" slot="input" class="style-scope ytd-redeem-code-renderer">\n  <yt-formatted-string id="error-message" hidden="[[!errorMessage]]" text="[[errorMessage]]" class="style-scope ytd-redeem-code-renderer">\n      </yt-formatted-string>\n  <yt-formatted-string id="terms" text="[[data.termsConditions]]" class="style-scope ytd-redeem-code-renderer"></yt-formatted-string>\n  \n  <ytd-button-renderer id="redeem-button" data="[[computeRedeemButton(data)]]" disabled="[[redeemButtonDisabled]]" on-tap="onRedeemButtonTap" class="style-scope ytd-redeem-code-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="success-page" class="style-scope ytd-redeem-code-renderer"></div>\n<tp-yt-paper-spinner-lite id="loading" active="[[isLoading]]" class="style-scope ytd-redeem-code-renderer">\n</tp-yt-paper-spinner-lite>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return bZU=d},{mode:1});var fWj;_.XX("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var md=function(){var d=_.B.apply(this,arguments)||this;d.businessEmailDisplayState="HIDE_SECTION";return d};
_.m(md,_.B);_.G=md.prototype;_.G.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:{component:"yt-channel-external-link-view-model",params:{useSmallFont:!0}}}}}};
_.G.dataChanged=function(){this.data&&(this.data.businessEmailButton||this.data.signInForBusinessEmail)?this.data.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.data.businessEmail&&(this.businessEmail=this.data.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.G.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.G.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.SM(_.Zw3),this.businessEmailDisplayState="CAPTCHA"))};
_.G.onYtServiceRequestCompleted=function(d){var H;if((H=d.detail.data)==null?0:H.businessEmail)this.businessEmail=d.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var K;if((K=d.detail.data)==null?0:K.errorMessage)this.businessEmailErrorMessage=d.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.G.computeEmailHref=function(d){return"mailto:"+d};
_.G.computeSafeUrl=function(d){if(d)return _.Xa(d)};
_.G.onBusinessEmailCaptchaSubmit=function(){var d;(d=this.data)!=null&&d.onBusinessEmailRevealClickCommand&&(d=this.JSC$21609_captchaTextarea.value)&&(d={recaptcha_response_token:d,channel_id:this.data.channelId},_.Kj().resolve(_.cb).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},d,{element:this.hostElement})}))};
_.G.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.H3.Object.defineProperties(md.prototype,{hideDetailsSection:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.country&&!this.data.businessEmailButton}},
shouldShowNewLinks:{configurable:!0,enumerable:!0,get:function(){var d,H;return!((d=this.data)==null||!d.primaryLinks)&&!((H=this.data)==null?0:H.links)&&this.data.primaryLinks.every(function(K){return K.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var d,H;return!((d=this.data)==null||!d.primaryLinks)&&!((H=this.data)==null?0:H.links)&&!this.shouldShowNewLinks}}});
md.prototype.onYtServiceRequestCompleted=md.prototype.onYtServiceRequestCompleted;md.prototype.dataChanged=md.prototype.dataChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],md.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],md.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.VP("#g-recaptcha-response"),_.O("design:type",HTMLTextAreaElement)],md.prototype,"JSC$21609_captchaTextarea",void 0);_.t([_.r(),_.O("design:type",Object)],md.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],md.prototype,"businessEmailDisplayState",void 0);_.t([_.r(),_.O("design:type",String)],md.prototype,"businessEmail",void 0);_.t([_.r(),_.O("design:type",String)],md.prototype,"businessEmailErrorMessage",void 0);
_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],md.prototype,"hideDetailsSection",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],md.prototype,"dataChanged",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],md.prototype,"shouldShowNewLinks",null);_.t([_.I("data","shouldShowLinks"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],md.prototype,"shouldShowLegacyLinks",null);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],md.prototype,"onYtServiceRequestCompleted",null);_.t([_.Z({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],md);
_.T(md,"ytd-channel-about-metadata-renderer",function(){if(fWj!==void 0)return fWj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-about-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <div id="description-container" hidden="[[!data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.descriptionLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="bio-container" hidden="[[!data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistBioLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="bio" split-lines="" text="[[data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="photos-container" hidden="[[!data.artistGalleryPhotos]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistGalleryLabel]]">\n    </yt-formatted-string>\n    <div id="photos" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.artistGalleryPhotos]]" strip-whitespace="" class="style-scope ytd-channel-about-metadata-renderer">\n        <a href="[[computeSafeUrl(item.originalPhotoUrl)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">\n          <img src$="[[computeSafeUrl(item.thumbnailUrl)]]" alt="" class="style-scope ytd-channel-about-metadata-renderer">\n        </a>\n      </template>\n    </div>\n  </div>\n  <div id="details-container" hidden="[[hideDetailsSection]]" class="style-scope ytd-channel-about-metadata-renderer">\n     <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.detailsLabel]]">\n    </yt-formatted-string>\n    <table class="style-scope ytd-channel-about-metadata-renderer">\n      <tbody class="style-scope ytd-channel-about-metadata-renderer"><tr hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.businessEmailLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.signInForBusinessEmail]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <ytd-button-renderer align-by-text="" data="[[data.businessEmailButton.buttonRenderer]]" on-click="onBusinessEmailClick" class="style-scope ytd-channel-about-metadata-renderer">\n          </ytd-button-renderer>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-channel-about-metadata-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-channel-about-metadata-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-channel-about-metadata-renderer">\n              <yt-formatted-string text="[[data.businessEmailRevealSubmitButtonLabel]]" class="style-scope ytd-channel-about-metadata-renderer">\n              </yt-formatted-string>\n            </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <a id="email" href$="[[computeEmailHref(businessEmail)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">[[businessEmail]]</a>\n        </td>\n      </tr>\n      <tr hidden="[[!data.country]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.countryLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n        <td class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.country]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="links-container" hidden="[[!data.links]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n    </div>\n  </div>\n  <div id="new-links-container" hidden="[[!shouldShowNewLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="custom-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <div class="custom-link style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string class="custom-link-title style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n          <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n            [[link.displayUrl]]\n          </a>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div id="legacy-links-container" hidden="[[!shouldShowLegacyLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="legacy-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n          <yt-formatted-string class="info-text style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n        </a>\n      </template>\n    </div>\n  </div>\n</div>\n<div id="right-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.statsLabel]]">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.joinedDateText]]" text="[[data.joinedDateText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.viewCountText]]" no-styles="" text="[[data.viewCountText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.phoneVerifiedText]]" text="[[data.phoneVerifiedText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <div id="action-buttons" class="style-scope ytd-channel-about-metadata-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return fWj=d},{mode:1});var A01;_.XX("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var wW=function(){return _.B.apply(this,arguments)||this};
_.m(wW,_.B);wW.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],wW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],wW.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Number)],wW.prototype,"lockupContainerType",void 0);_.t([_.r(),_.O("design:type",String)],wW.prototype,"thumbnailFixedWidth",void 0);
_.t([_.Z({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],wW);
_.T(wW,"ytd-channel-featured-content-renderer",function(){if(A01!==void 0)return A01;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-featured-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-featured-content-renderer">\n  <h3 class="style-scope ytd-channel-featured-content-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n  </h3>\n  <yt-formatted-string id="subtitle" text="[[data.subTitle]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n</div>\n<div id="contents" class="style-scope ytd-channel-featured-content-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return A01=d},{mode:1});var jQG;_.XX("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var PR=function(){var d=_.B.apply(this,arguments)||this;d.roundContainer=!0;d.amsterdamEnabled=_.h("enable_desktop_amsterdam_info_panels");return d};
_.m(PR,_.B);_.G=PR.prototype;_.G.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.G.dataChanged=function(){this.imageWidth=this.imageHeight=24;var d=this.data;d.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!d.style&&d.image&&d.image.thumbnails.length&&(d=d.image.thumbnails[0],this.imageWidth=d.width||0,this.imageHeight=d.height||0)};
_.G.computeSource=function(d){return d.secondarySource?_.jG(d.secondarySource):_.jG(d.source)};
_.G.computeClarifyStyle=function(d){return d?d.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.G.isLargeStyle=function(d){return d==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.G.computeBackgroundStyle=function(d){return d?d.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.G.computeHasActionButton=function(d){return!!d.actionButton};
_.G.computeHasBottomSection=function(d){return!!d.ctaHasBottomSection};
_.G.computeIsSourceMissing=function(d){return d.ctaHasBottomSection===!1?!0:d&&this.computeSource(d)?!1:!0};
_.G.computeSecondaryEndpoint=function(d){return d.secondaryEndpoint||d.endpoint};
PR.prototype.dataChanged=PR.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],PR.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],PR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],PR.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Number)],PR.prototype,"imageWidth",void 0);_.t([_.r(),_.O("design:type",Number)],PR.prototype,"imageHeight",void 0);
_.t([_.r({computed:"computeSecondaryEndpoint(data)"}),_.O("design:type",Object)],PR.prototype,"secondaryEndpoint",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.O("design:type",Boolean)],PR.prototype,"hasActionButton",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.O("design:type",Boolean)],PR.prototype,"hasBottomSection",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.O("design:type",Boolean)],PR.prototype,"missingSource",void 0);_.t([_.r({computed:"computeIcon_(data.icon)"}),_.O("design:type",String)],PR.prototype,"icon",void 0);_.t([_.r({computed:"computeIcon_(data.secondaryIcon)"}),_.O("design:type",String)],PR.prototype,"secondaryIcon",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.O("design:type",String)],PR.prototype,"clarifyStyle",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.O("design:type",String)],PR.prototype,"backgroundStyle",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PR.prototype,"roundContainer",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],PR.prototype,"amsterdamEnabled",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PR.prototype,"dataChanged",null);
_.t([_.Z({is:"ytd-clarification-renderer",disableElementRegistration:!0})],PR);
_.T(PR,"ytd-clarification-renderer",function(){if(jQG!==void 0)return jQG;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clarification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-clarification-renderer">\n  \n  <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n    <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer"></yt-icon>\n    <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n    </yt-img-shadow>\n  </a>\n  <div class="text style-scope ytd-clarification-renderer">\n    \n    <a id="section-header" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer">\n      </yt-icon>\n      <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string class="section-title style-scope ytd-clarification-renderer" text="[[data.sectionTitle]]">\n      </yt-formatted-string>\n    </a>\n    <div class="content style-scope ytd-clarification-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n        <div class="content-title style-scope ytd-clarification-renderer">\n          [[getSimpleString(data.contentTitle)]]\n          <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </div>\n        <yt-formatted-string class="description style-scope ytd-clarification-renderer" text="[[data.text]]">\n        </yt-formatted-string>\n      </a>\n      <div id="action-button" class="style-scope ytd-clarification-renderer"></div>\n      <div id="menu" class="style-scope ytd-clarification-renderer"></div>\n    </div>\n    <a id="source-link" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(secondaryEndpoint)]]" data="[[secondaryEndpoint]]">\n      <div class="source style-scope ytd-clarification-renderer">\n        <yt-icon class="secondary-icon style-scope ytd-clarification-renderer" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]">\n        </yt-icon>\n        [[computeSource(data)]]\n        <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" hidden="[[secondaryIcon]]" icon="yt-icons:open_in_new" size="16"></yt-icon>\n      </div>\n    </a>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return jQG=d},{mode:1});var vbZ;var dmO;var ua=function(){var d=_.B.apply(this,arguments)||this;d.amsterdamEnabled=_.h("enable_desktop_amsterdam_info_panels");return d};
_.m(ua,_.B);_.G=ua.prototype;_.G.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.G.computeIcon=function(d){return d?"yt-icons:"+d.toLowerCase():null};
_.G.computeUseContacts=function(d){return!!d.contacts&&d.contacts.length>0};
_.G.computePhoneContact=function(d){var H,K;return(H=d.contacts)==null?void 0:(K=H.find(function(c){var p;return(c==null?void 0:(p=c.icon)==null?void 0:p.iconType)==="PHONE"}))==null?void 0:K.actionText};
_.G.computeSmsContact=function(d){var H,K;return(H=d.contacts)==null?void 0:(K=H.find(function(c){var p;return(c==null?void 0:(p=c.icon)==null?void 0:p.iconType)==="SMS"}))==null?void 0:K.actionText};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ua.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ua.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ua.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],ua.prototype,"amsterdamEnabled",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.O("design:type",Boolean)],ua.prototype,"useContacts",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.O("design:type",String)],ua.prototype,"phoneContact",void 0);_.t([_.Z({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],ua);
_.T(ua,"ytd-single-action-emergency-support-renderer",function(){if(dmO!==void 0)return dmO;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-action-emergency-support-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-single-action-emergency-support-renderer">\n  <div id="text-content" class="style-scope ytd-single-action-emergency-support-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    <a class="yt-simple-endpoint style-scope ytd-single-action-emergency-support-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-formatted-string id="navigation-text" text="[[data.navigationText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      <yt-icon id="nav-icon" icon="[[computeIcon(data.navigationIcon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n    </a>\n    <yt-formatted-string id="details-text" text="[[data.detailsText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n  </div>\n  <div id="action-container" class="style-scope ytd-single-action-emergency-support-renderer">\n    <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n    <div id="contacts" hidden="[[!data.contacts]]" class="style-scope ytd-single-action-emergency-support-renderer">\n      <div id="phone-contact" hidden="[[!computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'PHONE\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n        <yt-formatted-string id="contact-text" text="[[computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n        <div id="sms-contact" hidden="[[!computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'SMS\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string id="contact-text" text="[[computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="action-text" class="action-text style-scope ytd-single-action-emergency-support-renderer" hidden="[[!data.actionText]]">\n      <yt-icon icon="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.actionText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    </div>\n    <div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return dmO=d},{mode:1});_.XX("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var IQ=function(){var d=_.B.apply(this,arguments)||this;d.roundedContainer=!0;d.amsterdamEnabled=_.h("enable_desktop_amsterdam_info_panels");return d};
_.m(IQ,_.B);IQ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],IQ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],IQ.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],IQ.prototype,"roundedContainer",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],IQ.prototype,"amsterdamEnabled",void 0);
_.t([_.Z({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],IQ);
_.T(IQ,"ytd-emergency-onebox-renderer",function(){if(vbZ!==void 0)return vbZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emergency-onebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-emergency-onebox-renderer">\n  <yt-formatted-string id="header" text="[[data.title]]" class="style-scope ytd-emergency-onebox-renderer"></yt-formatted-string>\n  <div id="options" class="style-scope ytd-emergency-onebox-renderer">\n    <div id="first-option" class="option style-scope ytd-emergency-onebox-renderer"></div>\n    <div id="second-option" class="option style-scope ytd-emergency-onebox-renderer" hidden="[[!data.secondOption]]"></div>\n  </div>\n</div>\n\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-emergency-onebox-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return vbZ=d},{mode:1});var HpZ;_.XX("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var rW=function(){return _.B.apply(this,arguments)||this};
_.m(rW,_.B);rW.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],rW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],rW.prototype,"data",void 0);_.t([_.Z({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],rW);
_.T(rW,"ytd-exploratory-results-renderer",function(){if(HpZ!==void 0)return HpZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-exploratory-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-exploratory-results-renderer"></yt-formatted-string>\n<div id="contents" class="style-scope ytd-exploratory-results-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return HpZ=d},{mode:1});var $m5;_.XX("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var WR=function(){var d=_.B.apply(this,arguments)||this;d.messageData=null;return d};
_.m(WR,_.B);_.G=WR.prototype;_.G.onServiceRequestCompleted=function(d,H){d=H.actions||[];H=0;for(var K=d.length;H<K;H++){var c=d[H],p=void 0,g=void 0;if((p=_.M(c,_.Mq))==null?0:(g=p.item)==null?0:g.messageRenderer)this.messageData=_.M(c,_.Mq).item.messageRenderer}};
_.G.dataChanged=function(){var d=this.data;this.hostElement.hidden=!1;_.qr(this.hostElement,"is-channel",d&&!d.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.G.computeThumbnailWidth=function(d){return d?126:56};
_.G.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.G.onSubmitTap=function(){var d=this.data,H=this.selectedResponseIndex;d!==void 0&&H!==void 0&&(d=d.responses[H],d.responseData&&_.Kj().resolve(_.cb).resolveCommand(d.responseData,{form:{element:this.hostElement}}))};
_.G.onDismissTap=function(){this.hostElement.hidden=!0;var d=this.data;d!==void 0&&d.dismissalEndpoint&&_.Kj().resolve(_.cb).resolveCommand(d.dismissalEndpoint,{form:{element:this.hostElement}})};
_.G.updateSelectedResponseIndexFromBinding=function(d){this.selectedResponseIndex=d.detail.value};
WR.prototype.onSelectedResponseIndexChange=WR.prototype.onSelectedResponseIndexChange;WR.prototype.dataChanged=WR.prototype.dataChanged;WR.prototype.onServiceRequestCompleted=WR.prototype.onServiceRequestCompleted;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],WR.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],WR.prototype,"messageData",void 0);
_.t([_.r(),_.O("design:type",Number)],WR.prototype,"selectedResponseIndex",void 0);_.t([_.VP("#submit-button"),_.O("design:type",HTMLButtonElement)],WR.prototype,"submitButton",void 0);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],WR.prototype,"onServiceRequestCompleted",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WR.prototype,"dataChanged",null);
_.t([_.CK("selectedResponseIndex"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WR.prototype,"onSelectedResponseIndexChange",null);_.t([_.Z({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],WR);
_.T(WR,"ytd-feedback-elicitation-single-question-renderer",function(){if($m5!==void 0)return $m5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-elicitation-single-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="dismissible" hidden="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <div id="header" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <yt-formatted-string id="question" text="[[data.question]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n    <yt-icon-button on-tap="onDismissTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <template is="dom-if" if="[[data.channelTitle]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-feedback-elicitation-single-question-renderer" href$="[[computeHref(data.channelEndpoint)]]" data="[[data.channelEndpoint]]">\n      <yt-img-shadow thumbnail="[[data.channelAvatar]]" width="[[computeThumbnailWidth(data.avatarIs169)]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      </yt-img-shadow>\n      <div id="item-title" class="style-scope ytd-feedback-elicitation-single-question-renderer">[[getSimpleString(data.channelTitle)]]</div>\n    </a>\n  </template>\n  <template is="dom-if" if="[[!data.canSelectMultiple]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <template is="dom-repeat" items="[[data.responses]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n        <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n          <yt-formatted-string text="[[item.responseText]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n  </template>\n  <ytd-button-renderer id="submit-button" data="[[data.submitButton.buttonRenderer]]" on-tap="onSubmitTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  </ytd-button-renderer>\n</span>\n<span hidden="[[!messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <ytd-message-renderer data="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></ytd-message-renderer>\n</span>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return $m5=d},{mode:1});var KFq;var BR=function(){return _.B.apply(this,arguments)||this};
_.m(BR,_.B);BR.prototype.computeThumbnailWidth=function(d){return d?602:428};
BR.prototype.updateWideFromBinding=function(d){this.wide=d.detail.value};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],BR.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],BR.prototype,"wide",void 0);_.t([_.Z({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],BR);
_.T(BR,"ytd-newspaper-hero-video-renderer",function(){if(KFq!==void 0)return KFq;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="(min-width: 662px)" query-matches="[[wide]]" on-query-matches-changed="updateWideFromBinding" class="style-scope ytd-newspaper-hero-video-renderer">\n</iron-media-query>\n<ytd-thumbnail data="[[data]]" width="[[computeThumbnailWidth(wide)]]" class="style-scope ytd-newspaper-hero-video-renderer"></ytd-thumbnail>\n<div id="contents" class="style-scope ytd-newspaper-hero-video-renderer">\n  <a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-newspaper-hero-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-hero-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-hero-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="title style-scope ytd-newspaper-hero-video-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n</div>\n<div class="content style-scope ytd-newspaper-hero-video-renderer">\n  <slot class="style-scope ytd-newspaper-hero-video-renderer"></slot>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return KFq=d},{mode:1});var cM5;var zd=function(){return _.B.apply(this,arguments)||this};
_.m(zd,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],zd.prototype,"rendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],zd.prototype,"data",void 0);_.t([_.Z({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],zd);
_.T(zd,"ytd-newspaper-mini-video-renderer",function(){if(cM5!==void 0)return cM5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-mini-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="210" class="style-scope ytd-newspaper-mini-video-renderer"></ytd-thumbnail>\n<a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-mini-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-newspaper-mini-video-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-mini-video-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-mini-video-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-newspaper-mini-video-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return cM5=d},{mode:1});var pL1;_.XX("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var X6=function(){return _.B.apply(this,arguments)||this};
_.m(X6,_.B);X6.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],X6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],X6.prototype,"data",void 0);_.t([_.Z({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],X6);
_.T(X6,"ytd-newspaper-renderer",function(){if(pL1!==void 0)return pL1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-contents" class="style-scope ytd-newspaper-renderer"></div>\n<div id="secondary-contents" class="style-scope ytd-newspaper-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return pL1=d},{mode:1});var gNq;_.XX("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var J0=function(){var d=_.B.apply(this,arguments)||this;d.isSegment=!1;d.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};d.nextContinuation={continuationType:"playlistVideoListContinuation"};return d};
_.m(J0,_.B);_.G=J0.prototype;_.G.attached=function(){_.Kj();var d;(d=_.Kj().resolve(_.$p(_.qL)))!=null&&(d.playlistVideoListElement=this.hostElement)};
_.G.detached=function(){var d;(d=_.Kj().resolve(_.$p(_.qL)))!=null&&(d.playlistVideoListElement=void 0);d=_.Kj().resolve(_.$p(_.at));_.h("web_enable_voting_animation")&&d&&(d.parentElem=void 0,d.videos=[],d.continuationsPresent=!1,d.showRefreshPill=!1)};
_.G.configureRendererStamper=function(){return{"data.contents":{id:"contents",reuseComponents:!1,mapping:{playlistVideoRenderer:{component:"ytd-playlist-video-renderer",properties:{canReorder:"[[canReorder]]"}},continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.continuations":{id:"continuations",mapping:{nextContinuationData:"yt-next-continuation"}},"data.sortFilterMenu":{id:"sort-filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",
params:{closeOnActivate:"true"}}}}}};
_.G.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.G.dataChanged=function(){var d=_.Kj().resolve(_.$p(_.at));if(_.h("web_enable_voting_animation")&&this.data&&d){var H=_.Gn(this.hostElement).querySelector("#contents");H&&(d.parentElem=H);d.addVideos(this.data.contents)}_.Ugd(this.ytReorderableBehavior)};
_.G.onRendererstamperFinished=function(){this.canReorder&&_.h$g(this.ytReorderableBehavior,_.Gn(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.G.onPlaylistReloading=function(){this.isReloading=!0};
_.G.onUpdateSetVideoId=function(d){if(d.detail&&this.data&&this.data.contents){var H=d.detail;d=this.data.contents.findIndex(function(p){var g;return((g=p.playlistVideoRenderer)==null?void 0:g.videoId)===H.videoId});
if(!(d<0)&&H.setVideoId&&(this.set("data.contents."+d+".playlistVideoRenderer.setVideoId",H.setVideoId),_.h("web_enable_voting_animation"))){var K;if(d=_.M((K=this.data.contents[d].playlistVideoRenderer)==null?void 0:K.engagementBar,_.AKh)){var c;(c=d.actions)==null||c.forEach(function(p){if(p=_.M(p,_.jyL))p.itemId=H.setVideoId})}(K=_.Kj().resolve(_.$p(_.at)))&&XRb(K,H.videoId,H.setVideoId)}}};
_.G.computeContentsClass=function(d){return d?"reloading":""};
_.G.computeIsSortable=function(d,H){return d&&H>0&&!this.isSegment&&!_.h("shorts_in_playlists_web")};
_.G.computeIsEditable=function(d){return d};
_.G.computeCanReorder=function(d){return d};
_.G.handlePlaylistRemoveVideosAction=function(d){if(this.get("playlistRemoveVideosAction.setVideoIds",d)&&this.data&&this.data.contents){d=_.M(d,_.toB).setVideoIds;for(var H=this.data.contents.length-1;H>=0;){var K=this.data.contents[H].playlistVideoRenderer;K&&K.setVideoId&&d.includes(K.setVideoId)&&this.splice("data.contents",H,1);H--}_.oF(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.G.updateIndices=function(){if(this.data&&this.data.contents)for(var d=0;d<this.data.contents.length;d++)this.set("data.contents."+d+".playlistVideoRenderer.index",_.AF(String(d+1)))};
_.G.handleDrop=function(d){d=d.currDragItem;var H=_.s5(d.parentNode.childNodes,d),K=this.data.contents.splice(Number(_.jG(d.data.index))-1,1)[0];this.data.contents.splice(H,0,K);H=H?this.get("contents."+(H-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();d=this.buildReorderServiceEndpoint(d.data.setVideoId,H);this.ytComponentBehavior.resolveCommand(d)};
_.G.buildReorderServiceEndpoint=function(d,H){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",d),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",H),this.data.onReorderEndpoint):null};
_.G.handleUpdatePlaylistAction=function(d){var H;(d=_.M((H=_.M(d,_.YLl))==null?void 0:H.updatedRenderer,_.agd))&&this.canReorder!==d.canReorder&&this.set("data.canReorder",d.canReorder);d&&d.contents&&(this.set("data.contents",d.contents),this.isReloading=!1);d&&d.continuations&&this.set("data.continuations",d.continuations)};
_.G.handleAddRendererToItemSectionAction=function(d){var H,K=(H=_.M(d,TW0))==null?void 0:H.renderer,c;K&&((c=_.M(d,TW0))==null?void 0:c.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,K),d=_.Kj().resolve(_.$p(_.at)),_.h("web_enable_voting_animation")&&d&&(K&&(H=_.f6M(K))&&d.recommendedVideos.push({itemId:H,videoId:_.v_D(K),voteCount:_.dp4(K),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.G.isVotingEnabledOnPlaylist=function(d){if(!d)return!1;d=_.q(d);for(d=d.next();!d.done;d=d.next()){var H=void 0;return!!_.M((H=d.value.playlistVideoRenderer)==null?void 0:H.engagementBar,_.AKh)}return!1};
_.G.onAppendContinuationItemsActionFinished=function(){var d;this.isVotingEnabledOnPlaylist((d=this.data)==null?void 0:d.contents)&&(this.updateIndices(),d=_.Kj().resolve(_.$p(_.at)),_.h("web_enable_voting_animation")&&d&&this.data&&d.addVideos(this.data.contents))};
_.G.updateVideoData=function(d){if(d.detail&&this.data&&this.data.contents){var H=d.detail;d=H.toIdx;var K=H.itemId,c=H.newVoteCount,p=H.voteStatus;H=H.hideItem;var g,a,e=(g=this.data)==null?void 0:(a=g.contents)==null?void 0:a.findIndex(function(V){return _.f6M(V)===K});
if(!(e<0)){g=this.data.contents[e];var k;if((k=g.playlistVideoRenderer)==null?0:k.voteCount)g.playlistVideoRenderer.voteCount=c;var C;if(k=_.M((C=g.playlistVideoRenderer)==null?void 0:C.engagementBar,_.AKh)){var R;(R=k.actions)==null||R.forEach(function(V){(V=_.M(V,_.jyL))&&V.initialState&&(V.initialState.votes=c,V.initialState.status=p)})}this.data.contents.splice(e,1);
H||this.data.contents.splice(d,0,g);this.updateIndices()}}};
J0.prototype.updateVideoData=J0.prototype.updateVideoData;J0.prototype.onAppendContinuationItemsActionFinished=J0.prototype.onAppendContinuationItemsActionFinished;J0.prototype.onUpdateSetVideoId=J0.prototype.onUpdateSetVideoId;J0.prototype.onPlaylistReloading=J0.prototype.onPlaylistReloading;J0.prototype.onRendererstamperFinished=J0.prototype.onRendererstamperFinished;J0.prototype.dataChanged=J0.prototype.dataChanged;
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],J0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],J0.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.bN.YtNextContinuationBehavior),_.O("design:type",Object)],J0.prototype,"ytNextContinuationBehavior",void 0);
_.t([_.u(_.LhX),_.O("design:type",Object)],J0.prototype,"ytReorderableBehavior",void 0);_.t([_.u(_.yH),_.O("design:type",Object)],J0.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],J0.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],J0.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],J0.prototype,"isReloading",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],J0.prototype,"isSegment",void 0);_.t([_.r({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.O("design:type",Boolean)],J0.prototype,"isSortable",void 0);_.t([_.r({computed:"computeIsEditable(data.isEditable)"}),_.O("design:type",Boolean)],J0.prototype,"isEditable",void 0);_.t([_.r({computed:"computeCanReorder(data.canReorder)"}),_.O("design:type",Boolean)],J0.prototype,"canReorder",void 0);
_.t([_.r({value:101}),_.O("design:type",Number)],J0.prototype,"scrollMargin",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],J0.prototype,"dataChanged",null);_.t([_.nK("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],J0.prototype,"onRendererstamperFinished",null);
_.t([_.nK("yt-playlist-reloading"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],J0.prototype,"onPlaylistReloading",null);_.t([_.nK("yt-update-set-video-id"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],J0.prototype,"onUpdateSetVideoId",null);
_.t([_.nK("yt-append-continuation-items-action-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],J0.prototype,"onAppendContinuationItemsActionFinished",null);_.t([_.nK("yt-update-video-data-voting-animation"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],J0.prototype,"updateVideoData",null);_.t([_.Z({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],J0);
_.T(J0,"ytd-playlist-video-list-renderer",function(){if(gNq!==void 0)return gNq;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sort-filter-menu" hidden="[[!isSortable]]" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-playlist-video-list-renderer">\n  <tp-yt-paper-spinner-lite active="[[isReloading]]" class="style-scope ytd-playlist-video-list-renderer"></tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-playlist-video-list-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return gNq=d},{mode:_.qk("kevlar_poly_si_batch_j047")?1:2});var ipq;var sp=function(){return _.B.apply(this,arguments)||this};
_.m(sp,_.B);sp.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}},"data.exploreButton":{id:"explore-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0},noInjection:!0}}},"data.offerButtons":{id:"offer-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
sp.prototype.onTextWrapperTap=function(d){var H=this.data&&this.data.navigationEndpoint;H&&!_.vg(_.jh(d),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.GT(this.hostElement,"yt-navigate",{endpoint:H})};
sp.prototype.dataChanged=function(){var d=this.get("data.offerButton.buttonRenderer.serviceEndpoint");d&&d.commandMetadata&&_.M(d.commandMetadata,_.Ie)&&_.M(d.commandMetadata,_.Ie).fireAutomatically&&_.Kj().resolve(_.cb).resolveCommand(d,{form:{element:this.hostElement}})};
sp.prototype.dataChanged=sp.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],sp.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.fe),_.O("design:type",Object)],sp.prototype,"ytdLockupBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],sp.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.O("design:type",Boolean)],sp.prototype,"useBiggerThumbs",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.GJ("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],sp.prototype,"biggerThumbsStyle",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],sp.prototype,"leftAligned",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sp.prototype,"dataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-movie-renderer"})],sp);
_.T(sp,"ytd-movie-renderer",function(){if(ipq!==void 0)return ipq;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="thumbnail-container style-scope ytd-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="246" class="style-scope ytd-movie-renderer">\n  </ytd-thumbnail>\n</div>\n<div class="text-wrapper style-scope ytd-movie-renderer" on-tap="onTextWrapperTap">\n  <div class="top-container style-scope ytd-movie-renderer">\n    <div class="top-left-container style-scope ytd-movie-renderer">\n      <h3 class="style-scope ytd-movie-renderer">\n         <a id="video-title" class="yt-simple-endpoint style-scope ytd-movie-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <div id="channel-info" class="style-scope ytd-movie-renderer">\n        <a hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" id="channel-thumbnail" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-movie-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-movie-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-movie-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </div>\n    <div class="top-right-container style-scope ytd-movie-renderer">\n      <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-renderer">\n      </ytd-button-renderer>\n      <div id="offer-buttons" class="style-scope ytd-movie-renderer"></div>\n      <div id="menu" class="style-scope ytd-movie-renderer"></div>\n    </div>\n  </div>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.topMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-movie-renderer"></ytd-badge-supported-renderer>\n\n  <yt-formatted-string id="description-text" text="[[data.descriptionSnippet]]" class="style-scope ytd-movie-renderer">\n  </yt-formatted-string>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.bottomMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <div id="explore-button" class="style-scope ytd-movie-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-movie-renderer"></yt-interaction>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ipq=d},{mode:1});var GWG;var F6=function(){var d=_.B.apply(this,arguments)||this;d.rounded=!0;d.pageAttachedTo=void 0;d.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return d};
_.m(F6,_.B);F6.prototype.attached=function(){this.pageAttachedTo=_.Kj().resolve(_.HI).getCurrentPage();_.GT(this.hostElement,"yt-player-attached",this.player)};
F6.prototype.detached=function(){var d;if((d=this.pageAttachedTo)==null?0:d.hostElement)_.GT(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
F6.prototype.dataChanged=function(){var d;if((d=this.data)==null?0:d.videoId)d={video_id:this.data.videoId,autoplay:!0},!_.h("miniplayer_stop_channel_video_autoplay_killswitch")&&_.Kj().resolve(_.Fb).isMiniplayerActive()&&(d.pause_at_start=!0,d.autoplay=!1),this.player.loadVideoWithPlayerVars(d)};
F6.prototype.handleSignalActionPausePlayer=function(){_.cI().pause()};
F6.prototype.dataChanged=F6.prototype.dataChanged;_.t([_.r(),_.O("design:type",Object)],F6.prototype,"data",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],F6.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],F6.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],F6.prototype,"rounded",void 0);_.t([_.VP("#player"),_.O("design:type",Object)],F6.prototype,"player",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],F6.prototype,"dataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],F6);
_.T(F6,"ytd-channel-video-player-renderer",function(){if(GWG!==void 0)return GWG;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-video-player-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player-container" class="style-scope ytd-channel-video-player-renderer">\n  <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER" class="style-scope ytd-channel-video-player-renderer">\n  </ytd-player>\n</div>\n<div id="content" class="style-scope ytd-channel-video-player-renderer">\n  <div id="metadata-container" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string id="title" aria-level="3" ellipsis-truncate="" link-inherit-color="" role="heading" text="[[data.title]]" class="style-scope ytd-channel-video-player-renderer">\n    </yt-formatted-string>\n    <ytd-video-meta-block class="title style-scope ytd-channel-video-player-renderer" data="[[data]]"></ytd-video-meta-block>\n  </div>\n  <ytd-expander id="description" disable-toggle="" max-number-of-lines="7" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string class="content style-scope ytd-channel-video-player-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-channel-video-player-renderer" slot="more-button" link-inherit-color="" text="[[data.readMoreText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return GWG=d},{mode:1});var oNS;var q2Z;var aJU;var ZW=function(){var d=_.B.apply(this,arguments)||this;d.playing=!1;d.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.b1(d);d.active=!1;return d};
_.m(ZW,_.B);_.G=ZW.prototype;_.G.detached=function(){this.stop()};
_.G.play=function(){var d=this,H,K,c,p,g;return _.l(function(a){if(a.nextAddress==1)return d.active=!0,H=d.get("data.inlinePlaybackEndpoint.watchEndpoint"),K=H.videoId||d.data.videoId,c=H.startTimeSeconds||0,p=H.playerParams||null,_.h("kevlar_player_update_killswitch")?a.yield(d.playerEl.update({args:{video_id:K,startSeconds:c,player_params:p}}),2):(d.playerEl.loadVideoWithPlayerVars({video_id:K,startSeconds:c,player_params:p,autoplay:!0}),a.jumpTo(2));if(a.nextAddress!=4)return a.yield(d.playerEl.getPlayerPromise(),
4);g=a.yieldResult;g.unloadModule("annotations_module");g.addEventListener("onStateChange",function(e){d.onPlayerStateChange(e)});
_.VE(a)})};
_.G.onPlayerStateChange=function(d){if(this.active)switch(this.playing=d===1,d){case 1:_.GT(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.GT(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.G.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.G.resize=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1)return K.yield(d.playerEl.getPlayerPromise(),2);H=K.yieldResult;H.setSize(NaN,NaN);_.VE(K)})};
_.t([_.r(),_.O("design:type",Object)],ZW.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ZW.prototype,"playing",void 0);_.t([_.r(),_.O("design:type",Object)],ZW.prototype,"playerId",void 0);_.t([_.VP("#player"),_.O("design:type",Object)],ZW.prototype,"playerEl",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],ZW);
_.T(ZW,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(aJU!==void 0)return aJU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer-inline-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO" player-id="[[playerId]]" class="style-scope ytd-default-promo-panel-renderer-inline-playback-renderer">\n</ytd-player>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return aJU=d},{mode:1});var lJ0;var evt;var Td=function(){var d=_.B.apply(this,arguments)||this;d.width=0;return d};
_.m(Td,_.B);_.G=Td.prototype;_.G.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.xf(this,this.onEnded));this.mp4El.addEventListener("error",_.xf(this,this.onError))};
_.G.detached=function(){this.videoEl.removeEventListener("ended",_.xf(this,this.onEnded));this.mp4El.removeEventListener("error",_.xf(this,this.onError))};
_.G.play=function(){var d=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var H=this.videoEl.play();H?H.then(function(){d.handleVideoStartPlaying()}).catch(function(){_.GT(d.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.GT(this.hostElement,"yt-video-thumbnail-not-playing")};
_.G.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.G.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.G.dataChanged=function(){var d;if((d=this.data)==null?0:d.thumbnailPlaceholder)d=_.Gv(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+d+")";this.stop();this.autoplay&&this.play()};
_.G.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.G.onEnded=function(){this.stop();_.GT(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.G.onError=function(){_.GT(this.hostElement,"yt-video-thumbnail-error")};
_.G.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.G.getVideoThumbnail=function(d){if(d&&d.length)return d[0]};
Td.prototype.dataChanged=Td.prototype.dataChanged;_.t([_.r(),_.O("design:type",Object)],Td.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Td.prototype,"animatePlaceholderOnEntrance",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Td.prototype,"autoplay",void 0);_.t([_.r({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.O("design:type",Object)],Td.prototype,"videoThumbnail",void 0);
_.t([_.r(),_.O("design:type",Boolean)],Td.prototype,"loop",void 0);_.t([_.r(),_.O("design:type",Boolean)],Td.prototype,"isVideoPlaying",void 0);_.t([_.r(),_.O("design:type",Object)],Td.prototype,"width",void 0);_.t([_.VP("#mp4"),_.O("design:type",HTMLElement)],Td.prototype,"mp4El",void 0);_.t([_.VP("#placeholder"),_.O("design:type",HTMLElement)],Td.prototype,"placeholderEl",void 0);_.t([_.VP("#video"),_.O("design:type",HTMLVideoElement)],Td.prototype,"videoEl",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Td.prototype,"dataChanged",null);_.t([_.ZV({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],Td);
_.T(Td,"yt-video-as-thumbnail-details",function(){if(evt===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-video-as-thumbnail-details--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_video_as_thumbnail_details.yt.video.as.thumbnail.details.css.js--\x3e<div id="placeholder" class="style-scope yt-video-as-thumbnail-details"></div>\n<div id="video-container" class="style-scope yt-video-as-thumbnail-details">\n  <video id="video" muted="" class="style-scope yt-video-as-thumbnail-details">\n    <source id="mp4" src$="[[videoThumbnail.url]]" type="video/mp4" class="style-scope yt-video-as-thumbnail-details">\n  </video>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;lJ0===void 0&&(lJ0=document.createElement("template"));var c=lJ0;K.call(H,c.content.cloneNode(!0),d.content.firstChild);evt=d}d=evt;return d},{mode:2});var Qo=function(){var d=_.B.apply(this,arguments)||this;d.disableGridStateAware=!1;d.animationEnabled=_.h("enable_web_ketchup_hero_animation");d.transitioningOut=!1;d.narrow=!1;d.narrower=!1;d.isCarouselInFeed=!1;d.videoTimeoutJobId=0;d.panelTimeoutJobId=0;d.panelTimeoutJobStartMs=0;d.actionMap={"yt-window-resized":"onWindowResized"};return d};
_.m(Qo,_.B);_.G=Qo.prototype;_.G.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.G.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var d;this.player&&((d=this.data)==null?0:d.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.G.attached=function(){this.onWindowResized()};
_.G.detached=function(){this.clearTimeouts()};
_.G.onWindowResized=function(){this.updateSize()};
_.G.computePanelLayout=function(d){return d&&d.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.G.playVideo=function(){var d;this.video&&((d=this.data)==null?0:d.videoThumbnail)&&this.video.play();var H;this.player&&((H=this.data)==null?0:H.inlinePlaybackRenderer)&&this.player.play()};
_.G.stopVideo=function(){var d;this.video&&((d=this.data)==null?0:d.videoThumbnail)&&this.video.stop();var H;this.player&&((H=this.data)==null?0:H.inlinePlaybackRenderer)&&this.player.stop()};
_.G.transitionOut=function(){var d=this;this.transitioningOut=!0;return new Promise(function(H){var K=function(){_.Gn(d.hostElement).querySelector("#action-button").removeEventListener("animationend",K);_.Xp.cancelJob(c);H();d.transitioningOut=!1};
var c=_.mf(_.Xp,K,1E3);_.Gn(d.hostElement).querySelector("#action-button").addEventListener("animationend",K);d.player&&(d.player.playing=!1)})};
_.G.computeMetadataOrder=function(d){return d&&d.metadataOrder&&d.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?d.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.G.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.G.computeAvatarSize=function(d){return d&&d.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.G.onContentClick=function(d){if(!_.vg(_.jh(d),this.hostElement,["A".toString(),"BUTTON".toString()])){var H;if((H=this.data)==null?0:H.navigationEndpoint){var K;this.componentBehavior.resolveCommand((K=this.data)==null?void 0:K.navigationEndpoint)}}};
_.G.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.G.setBackgroundImage=function(d){if(d=this.getBackgroundImageUrl(d))_.Gn(this.hostElement).querySelector("#hero").style.backgroundImage="url("+d+")"};
_.G.setScrimLayer=function(d){var H=this.getScrimLayerColorStops(d);d=((d==null?void 0:d.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(d=180);_.Fm("HTML_DIR")==="rtl"&&(d=-d);H&&(_.Gn(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+d+"deg, "+H+")")};
_.G.isNarrower=function(){return this.hostElement.clientWidth<Qo.NARROW_VERSION_SIZE};
_.G.getScrimLayerColorStops=function(){var d,H=(d=this.data)==null?void 0:d.scrimColorValues;if(!H)return null;if(H.length===1)return d=_.Ob(H[0]),d+" 0%, "+d+" 100%";if(H.length===3){var K=[0,72,98];return H.map(function(c,p){return _.Ob(c)+" "+K[p]+"%"}).join(",")}return null};
_.G.getBackgroundImageUrl=function(d){return d&&d.largeFormFactorBackgroundThumbnail?_.Gv((d.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||d.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.G.onPlaying=function(){this.startVideoTimeout()};
_.G.onEnded=function(){this.rotate()};
_.G.startPanelTimeout=function(){var d=this;if(!this.panelTimeoutJobId){var H=this.get("data.minPanelDisplayDurationMs");H&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.mf(_.Xp,function(){d.rotate()},H))}};
_.G.startVideoTimeout=function(){var d=this;if(!this.videoTimeoutJobId){_.Xp.cancelJob(this.panelTimeoutJobId);var H=Date.now()-this.panelTimeoutJobStartMs;H=Math.max(0,this.get("data.minPanelDisplayDurationMs")-H);H=Math.max(this.get("data.minVideoPlayDurationMs")||0,H);this.videoTimeoutJobId=_.mf(_.Xp,function(){d.rotate()},H)}};
_.G.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.Xp.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.Xp.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.G.rotate=function(){this.clearTimeouts();_.GT(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.H3.Object.defineProperties(Qo.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Gn(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Gn(this.hostElement).querySelector("#video")}}});
_.H3.Object.defineProperties(Qo,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
Qo.prototype.onEnded=Qo.prototype.onEnded;Qo.prototype.onPlaying=Qo.prototype.onPlaying;Qo.prototype.dataChanged=Qo.prototype.dataChanged;_.t([_.u(_.EO),_.O("design:type",Object)],Qo.prototype,"ytdGridStateAwareBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Qo.prototype,"componentBehavior",void 0);_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],Qo.prototype,"ytdGuideStateAwareBehavior",void 0);
_.t([_.u(_.RCS),_.O("design:type",Object)],Qo.prototype,"ytBooleanLogicBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Qo.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Qo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Qo.prototype,"ytRendererBehavior",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Qo.prototype,"disableGridStateAware",void 0);_.t([_.r(),_.O("design:type",Object)],Qo.prototype,"data",void 0);_.t([_.r({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.O("design:type",String)],Qo.prototype,"panelLayout",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Qo.prototype,"animationEnabled",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Qo.prototype,"transitioningOut",void 0);
_.t([_.r({computed:"computeMetadataOrder(data)"}),_.O("design:type",Boolean)],Qo.prototype,"metadataOrder",void 0);_.t([_.r({computed:"computeByline(data)"}),_.O("design:type",Object)],Qo.prototype,"byline",void 0);_.t([_.r({computed:"computeAvatarSize(data)"}),_.O("design:type",Number)],Qo.prototype,"avatarSize",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Qo.prototype,"narrow",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Qo.prototype,"narrower",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Qo.prototype,"layoutStyle",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Qo.prototype,"isCarouselInFeed",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qo.prototype,"dataChanged",null);_.t([_.nK("yt-default-promo-panel-renderer-playing"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qo.prototype,"onPlaying",null);
_.t([_.nK("yt-default-promo-panel-renderer-ended"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qo.prototype,"onEnded",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Qo);
_.T(Qo,"ytd-default-promo-panel-renderer",function(){if(q2Z!==void 0)return q2Z;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="hero" class="style-scope ytd-default-promo-panel-renderer"></div>\n<yt-video-as-thumbnail-details id="video" animate-placeholder-on-entrance="" autoplay="" data="[[data.videoThumbnail]]" disable-upgrade$="[[!data.videoThumbnail]]" height="600" hidden$="[[!data.videoThumbnail]]" width="[[screen.width]]" class="style-scope ytd-default-promo-panel-renderer">\n</yt-video-as-thumbnail-details>\n<ytd-default-promo-panel-renderer-inline-playback-renderer id="player" data="[[data.inlinePlaybackRenderer.inlinePlaybackRenderer]]" disable-upgrade$="[[!data.inlinePlaybackRenderer]]" hidden$="[[!data.inlinePlaybackRenderer]]" class="style-scope ytd-default-promo-panel-renderer">\n</ytd-default-promo-panel-renderer-inline-playback-renderer>\n<div id="scrim" class="style-scope ytd-default-promo-panel-renderer"></div>\n<div id="content" on-click="onContentClick" class="style-scope ytd-default-promo-panel-renderer">\n  <yt-img-shadow id="logo" height="68" hidden="[[!data.foregroundThumbnailDetails]]" thumbnail="[[data.foregroundThumbnailDetails]]" class="style-scope ytd-default-promo-panel-renderer">\n  </yt-img-shadow>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_DESCRIPTION_TITLE\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <a class="yt-simple-endpoint style-scope ytd-default-promo-panel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h1 id="hero-title" class="style-scope ytd-default-promo-panel-renderer">[[getSimpleString(data.title)]]</h1>\n  </a>\n  <template is="dom-if" if="[[byline]]" class="style-scope ytd-default-promo-panel-renderer">\n    <div id="byline" class="style-scope ytd-default-promo-panel-renderer">\n      <yt-img-shadow id="avatar" hidden="[[!byline.thumbnailDetails]]" thumbnail="[[byline.thumbnailDetails]]" width="[[avatarSize]]" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string id="channel-name" link-inherit-color="" text="[[byline.bylineText]]" title="" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-formatted-string>\n      <ytd-badge-supported-renderer id="video-badges" badges="[[byline.badgeRenderers]]" hidden="[[!byline.badgeRenderers]]" class="style-scope ytd-default-promo-panel-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n  </template>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <div id="action-button" class="style-scope ytd-default-promo-panel-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return q2Z=d},{mode:1});_.XX("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var t0=function(){var d=_.B.apply(this,arguments)||this;d.narrower=!1;d.dotMenuVisible=!1;d.paginationThumbnailsVisible=!1;d.active=!0;d.disableGridStateAware=!1;d.actionMap={"yt-window-resized":"onWindowResized"};return d};
_.m(t0,_.B);_.G=t0.prototype;_.G.configureRendererStamper=function(){return{currentItem:{id:"carousel-item",mapping:{defaultPromoPanelRenderer:{component:"ytd-default-promo-panel-renderer",attributes:{autoplay:!0},properties:{disableGridStateAware:"[[disableGridStateAware]]",layoutStyle:"[[data.layoutStyle]]",isCarouselInFeed:"[[isCarouselInFeed]]"}}}}}};
_.G.attached=function(){document.addEventListener("yt-page-type-changed",_.xf(this,this.onPageTypeChange));this.currentPageSubtype=_.Ub(location.pathname);this.onWindowResized()};
_.G.detached=function(){this.jobId&&_.Xp.cancelJob(this.jobId);this.updateSizeJobId&&_.Xp.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.xf(this,this.onPageTypeChange))};
_.G.onPageTypeChange=function(d){this.active=d.detail.newPageSubtype===this.currentPageSubtype};
_.G.onWindowResized=function(){this.updateSize()};
_.G.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.G.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.G.setCarouselItem=function(d){d>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.Xp.cancelJob(this.jobId);var H=this.getCurrentPanelElement();H&&H.stopVideo();this.currentItemIndex=d%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(H||(H=this.getCurrentPanelElement()),H.playVideo()):this.startRotationJob()};
_.G.scrollThumbnails=function(d){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var H=this.getCurrentPaginationElement();if(H){var K=_.Gn(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?K.style.transform="translateX(0)":(H=H.offsetWidth+8,K.style.transform="translateX(-"+H*(d-Math.ceil(Math.floor(this.overlay.offsetWidth/H)/2)+1)+"px)")}}};
_.G.onDataChanged=function(){var d=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.mR(_.Xp,function(){var H;(H=d.getCurrentPanelElement())==null||H.updateSize();d.updateSize()}))};
_.G.getCurrentPanelElement=function(){return _.Gn(_.Gn(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.G.getCurrentPaginationElement=function(){return _.Gn(_.Gn(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.G.getNavigationClass=function(d,H){return d===H?"selected":""};
_.G.getNavigationDurationStyle=function(d){return"animation-duration:"+(this.get("data.carouselItems."+d+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.G.onNavigationTap=function(d){var H=this,K=d.model.index;K!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){H.setCarouselItem(K)}),this.autorotateActive=!1)};
_.G.onVideoThumbnailEnded=function(){var d=this;if(this.shouldRotate()){var H=this.getCurrentPaginationElement();H&&(H.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){H.classList.remove("finished");d.setNextCarouselItem()}))}};
_.G.onVideoThumbnailError=function(){this.startRotationJob()};
_.G.onVideoNotPlaying=function(){this.startRotationJob()};
_.G.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.G.startRotationJob=function(){var d=this;_.Xp.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.Xp.addLowPriorityJob(function(){d.getCurrentPanelElement().transitionOut().then(function(){d.setNextCarouselItem()})},this.rotationTimeout))};
_.G.computeDotMenuVisible=function(d,H){return!!d&&!!d.carouselItems&&d.carouselItems.length>1&&!d.paginationThumbnails||!!H};
_.G.computePaginationThumbnailsVisible=function(d,H){var K,c;return((c=d==null?void 0:(K=d.paginationThumbnails)==null?void 0:K.length)!=null?c:0)>1&&!H};
_.G.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.G.computePaginatorAlignment=function(d){return(d==null?void 0:d.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.G.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.G.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.G.isNarrower=function(d){return(d!=null?d:0)<Qo.NARROW_VERSION_SIZE};
t0.prototype.activeChanged=t0.prototype.activeChanged;t0.prototype.onVideoNotPlaying=t0.prototype.onVideoNotPlaying;t0.prototype.onVideoThumbnailError=t0.prototype.onVideoThumbnailError;t0.prototype.onVideoThumbnailEnded=t0.prototype.onVideoThumbnailEnded;t0.prototype.onDataChanged=t0.prototype.onDataChanged;_.t([_.u(_.EO),_.O("design:type",Object)],t0.prototype,"ytdGridStateAwareBehavior",void 0);
_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],t0.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],t0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],t0.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],t0.prototype,"currentItem",void 0);
_.t([_.r(),_.O("design:type",Number)],t0.prototype,"currentItemIndex",void 0);_.t([_.r(),_.O("design:type",Number)],t0.prototype,"rotationTimeout",void 0);_.t([_.r(),_.O("design:type",Number)],t0.prototype,"loopCount",void 0);_.t([_.r({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.O("design:type",String)],t0.prototype,"paginatorAlignment",void 0);_.t([_.r(),_.O("design:type",Number)],t0.prototype,"jobId",void 0);
_.t([_.r(),_.O("design:type",Number)],t0.prototype,"updateSizeJobId",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],t0.prototype,"isCarouselInFeed",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],t0.prototype,"narrower",void 0);_.t([_.r({computed:"computeDotMenuVisible(data, narrower)"}),_.O("design:type",Object)],t0.prototype,"dotMenuVisible",void 0);
_.t([_.r({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.O("design:type",Object)],t0.prototype,"paginationThumbnailsVisible",void 0);_.t([_.r({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.O("design:type",String)],t0.prototype,"layoutType",void 0);_.t([_.r({value:!0,reflectToAttribute:!0}),_.O("design:type",Boolean)],t0.prototype,"autorotateActive",void 0);_.t([_.r(),_.O("design:type",Object)],t0.prototype,"active",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],t0.prototype,"disableGridStateAware",void 0);_.t([_.VP("#overlay"),_.O("design:type",HTMLElement)],t0.prototype,"overlay",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],t0.prototype,"onDataChanged",null);
_.t([_.nK("yt-video-thumbnail-ended"),_.nK("yt-default-promo-panel-renderer-rotate"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],t0.prototype,"onVideoThumbnailEnded",null);_.t([_.nK("yt-video-thumbnail-error"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],t0.prototype,"onVideoThumbnailError",null);
_.t([_.nK("yt-video-thumbnail-not-playing"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],t0.prototype,"onVideoNotPlaying",null);_.t([_.Mr("active"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],t0.prototype,"activeChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],t0);
_.T(t0,"ytd-carousel-item-renderer",function(){if(oNS!==void 0)return oNS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="carousel-item" class="style-scope ytd-carousel-item-renderer"></div>\n<div id="menu" hidden="[[!dotMenuVisible]]" class="style-scope ytd-carousel-item-renderer">\n  <template is="dom-repeat" items="[[data.carouselItems]]" class="style-scope ytd-carousel-item-renderer">\n    <button class$="menu-dot [[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" on-click="onNavigationTap">\n    </button>\n  </template>\n</div>\n<div id="overlay" class="style-scope ytd-carousel-item-renderer">\n  <div id="pagination-thumbnails" hidden="[[!paginationThumbnailsVisible]]" class="style-scope ytd-carousel-item-renderer">\n    <template is="dom-repeat" items="[[data.paginationThumbnails]]" class="style-scope ytd-carousel-item-renderer">\n      <button class$="[[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" aria-label$="[[item.accessibility.accessibilityData.label]]" on-click="onNavigationTap">\n          <yt-img-shadow height="54" hidden="[[!equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="96" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n          <yt-img-shadow height="40" hidden="[[equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="72" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n        <div class="progress-bar style-scope ytd-carousel-item-renderer" style$="[[getNavigationDurationStyle(index)]]" hidden="[[!autorotateActive]]">\n        </div>\n      </button>\n    </template>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return oNS=d},{mode:2});var kW5;var xm0;var nN0;var Cbt;var Yb=function(){var d=_.B.apply(this,arguments)||this;d.originalQuery=null;d.originalEndpoint=null;return d};
_.m(Yb,_.B);Yb.prototype.computeShowOriginalQueryWithoutEndpoint_=function(d,H){return!(!d||H)};
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Yb.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Yb.prototype,"correctedText",void 0);_.t([_.r(),_.O("design:type",Object)],Yb.prototype,"correctedQuery",void 0);_.t([_.r(),_.O("design:type",Object)],Yb.prototype,"correctedEndpoint",void 0);_.t([_.r(),_.O("design:type",Object)],Yb.prototype,"originalText",void 0);_.t([_.r(),_.O("design:type",Object)],Yb.prototype,"originalQuery",void 0);
_.t([_.r(),_.O("design:type",Object)],Yb.prototype,"originalEndpoint",void 0);_.t([_.r({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.O("design:type",Boolean)],Yb.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.t([_.ZV({is:"yt-search-query-correction",disableElementRegistration:!0})],Yb);
_.T(Yb,"yt-search-query-correction",function(){if(Cbt===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-query-correction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_search_query_correction.yt.search.query.correction.css.js--\x3e<yt-formatted-string id="corrected" text="[[correctedText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n<a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(correctedEndpoint)]]" data="[[correctedEndpoint]]">\n  <yt-formatted-string id="corrected-link" text="[[correctedQuery]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n</a>\n<template is="dom-if" if="[[originalText]]" class="style-scope yt-search-query-correction">\n  <yt-formatted-string id="original" text="[[originalText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n  <template is="dom-if" if="[[originalEndpoint]]" class="style-scope yt-search-query-correction">\n    <a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(originalEndpoint)]]" data="[[originalEndpoint]]">\n        <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n      </a>\n  </template>\n  <template is="dom-if" if="[[showOriginalQueryWithoutEndpoint]]" class="style-scope yt-search-query-correction">\n    <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n  </template>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;nN0===void 0&&(nN0=document.createElement("template"));var c=nN0;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Cbt=d}d=Cbt;return d},{mode:2});_.XX("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var Op=function(){return _.B.apply(this,arguments)||this};
_.m(Op,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Op.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Op.prototype,"data",void 0);_.t([_.ZV({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],Op);
_.T(Op,"yt-did-you-mean-renderer",function(){if(xm0===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-did-you-mean-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_did_you_mean_renderer.yt.did.you.mean.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.didYouMean]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" class="style-scope yt-did-you-mean-renderer">\n</yt-search-query-correction>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;kW5===void 0&&(kW5=document.createElement("template"));var c=kW5;K.call(H,c.content.cloneNode(!0),d.content.firstChild);xm0=d}d=xm0;return d},{mode:2});var Rvv;var VZZ;_.XX("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var Sp=function(){return _.B.apply(this,arguments)||this};
_.m(Sp,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Sp.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Sp.prototype,"data",void 0);_.t([_.ZV({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],Sp);
_.T(Sp,"yt-including-results-for-renderer",function(){if(VZZ===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-including-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_including_results_for_renderer.yt.including.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.includingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.searchOnlyFor]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-including-results-for-renderer">\n</yt-search-query-correction>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;Rvv===void 0&&(Rvv=document.createElement("template"));var c=Rvv;K.call(H,c.content.cloneNode(!0),d.content.firstChild);VZZ=d}d=VZZ;return d},{mode:2});var Umg;var hvq;_.XX("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var Ep=function(){return _.B.apply(this,arguments)||this};
_.m(Ep,_.B);Ep.prototype.computeExtraClasses_=function(d,H){var K="";d&&(K+=" "+d.toLowerCase().replace(/_/g,"-"));H&&(K+=" "+H.toLowerCase().replace(/_/g,"-"));return K};
Ep.prototype.computeUrlImg_=function(){var d=this.data;d.image&&(_.Gn(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.Gv(d.image.thumbnails,Number.MAX_VALUE)+")")};
Ep.prototype.computeUrlImg_=Ep.prototype.computeUrlImg_;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ep.prototype,"data",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ep.prototype,"computeUrlImg_",null);_.t([_.ZV({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],Ep);
_.T(Ep,"yt-music-pass-feature-info-renderer",function(){if(hvq===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_feature_info_renderer.yt.music.pass.feature.info.renderer.css.js--\x3e<div id="container" class$="[[computeExtraClasses_(data.textStyle, data.textHorizontalAlignment)]] style-scope yt-music-pass-feature-info-renderer">\n  <div id="message" dir="ltr" class="style-scope yt-music-pass-feature-info-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;Umg===void 0&&(Umg=document.createElement("template"));var c=Umg;K.call(H,c.content.cloneNode(!0),d.content.firstChild);hvq=d}d=hvq;return d},{mode:2});var LFS;var MZ5;_.XX("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var yo=function(){return _.B.apply(this,arguments)||this};
_.m(yo,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],yo.prototype,"data",void 0);_.t([_.ZV({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],yo);
_.T(yo,"yt-no-results-found-showing-results-for-renderer",function(){if(MZ5===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-no-results-found-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_no_results_found_showing_results_for_renderer.yt.no.results.found.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.showingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.noResultsFound]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-no-results-found-showing-results-for-renderer">\n</yt-search-query-correction>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;LFS===void 0&&(LFS=document.createElement("template"));var c=LFS;K.call(H,c.content.cloneNode(!0),d.content.firstChild);MZ5=d}d=MZ5;return d},{mode:2});var mmT;var wLT;_.XX("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var ba=function(){return _.B.apply(this,arguments)||this};
_.m(ba,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ba.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ba.prototype,"data",void 0);_.t([_.ZV({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],ba);
_.T(ba,"yt-results-without-quotes-renderer",function(){if(wLT===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-results-without-quotes-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_results_without_quotes_renderer.yt.results.without.quotes.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.resultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.withoutQuotes]]" class="style-scope yt-results-without-quotes-renderer">\n</yt-search-query-correction>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;mmT===void 0&&(mmT=document.createElement("template"));var c=mmT;K.call(H,c.content.cloneNode(!0),d.content.firstChild);wLT=d}d=wLT;return d},{mode:2});var PbT;var u_t;_.XX("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var Nu=function(){return _.B.apply(this,arguments)||this};
_.m(Nu,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Nu.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Nu.prototype,"data",void 0);_.t([_.ZV({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],Nu);
_.T(Nu,"yt-search-no-results-renderer",function(){if(u_t===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-no-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_search_no_results_renderer.yt.search.no.results.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.noResultsText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer">\n  <a class="yt-simple-endpoint style-scope yt-search-no-results-renderer" href$="[[computeHref_(data.alternateQueryEndpoint)]]" data="[[data.alternateQueryEndpoint]]">\n    <yt-formatted-string id="link" text="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n  </a>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;PbT===void 0&&(PbT=document.createElement("template"));var c=PbT;K.call(H,c.content.cloneNode(!0),d.content.firstChild);u_t=d}d=u_t;return d},{mode:2});var IJT;var rM5;_.XX("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var DW=function(){return _.B.apply(this,arguments)||this};
_.m(DW,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],DW.prototype,"data",void 0);_.t([_.ZV({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],DW);
_.T(DW,"yt-showing-results-for-renderer",function(){if(rM5===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_showing_results_for_renderer.yt.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-endpoint="[[data.correctedQueryEndpoint]]" corrected-query="[[data.correctedQuery]]" corrected-text="[[data.showingResultsFor]]" original-endpoint="[[data.originalQueryEndpoint]]" original-query="[[data.originalQuery]]" original-text="[[data.searchInsteadFor]]" class="style-scope yt-showing-results-for-renderer">\n</yt-search-query-correction>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;IJT===void 0&&(IJT=document.createElement("template"));var c=IJT;K.call(H,c.content.cloneNode(!0),d.content.firstChild);rM5=d}d=rM5;return d},{mode:2});var WFb;var Beb;var zv0;var XLb;var fZ=function(){var d=_.B.apply(this,arguments)||this;d.answerExpanded=!1;return d};
_.m(fZ,_.B);fZ.prototype.toggleAnswer_=function(d){var H=_.v5(d);H&&H.classList.contains("yt-simple-endpoint")||(d.preventDefault(),d.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
fZ.prototype.toggleAnswer_=fZ.prototype.toggleAnswer_;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],fZ.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],fZ.prototype,"answerExpanded",void 0);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],fZ.prototype,"toggleAnswer_",null);
_.t([_.ZV({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],fZ);
_.T(fZ,"yt-generic-faq-question-renderer",function(){if(XLb===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-generic-faq-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_generic_faq_question_renderer.yt.generic.faq.question.renderer.css.js--\x3e<div class="head style-scope yt-generic-faq-question-renderer" on-tap="toggleAnswer_">\n  <span class="question style-scope yt-generic-faq-question-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope yt-generic-faq-question-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope yt-generic-faq-question-renderer">\n    <yt-formatted-string class="answer style-scope yt-generic-faq-question-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;zv0===void 0&&(zv0=document.createElement("template"));var c=zv0;K.call(H,c.content.cloneNode(!0),d.content.firstChild);XLb=d}d=XLb;return d},{mode:2});_.XX("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var A0=function(){return _.B.apply(this,arguments)||this};
_.m(A0,_.B);A0.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],A0.prototype,"data",void 0);_.t([_.ZV({is:"yt-faq-section-renderer",disableElementRegistration:!0})],A0);
_.T(A0,"yt-faq-section-renderer",function(){if(Beb===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_faq_section_renderer.yt.faq.section.renderer.css.js--\x3e<div class="container style-scope yt-faq-section-renderer">\n  <span class="header style-scope yt-faq-section-renderer">[[getSimpleString(data.header)]]</span>\n  <div id="contents" class="style-scope yt-faq-section-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;WFb===void 0&&(WFb=document.createElement("template"));var c=WFb;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Beb=d}d=Beb;return d},{mode:2});var JM0;var sl0;_.XX("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var jp=function(){return _.B.apply(this,arguments)||this};
_.m(jp,_.B);
jp.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],jp.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],jp.prototype,"data",void 0);_.t([_.ZV({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],jp);
_.T(jp,"yt-offer-item-expanded-renderer",function(){if(sl0===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-expanded-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_expanded_renderer.yt.offer.item.expanded.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n<div id="content" class="style-scope yt-offer-item-expanded-renderer">\n    <div id="heading-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="description-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="additional-info-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;JM0===void 0&&(JM0=document.createElement("template"));var c=JM0;K.call(H,c.content.cloneNode(!0),d.content.firstChild);sl0=d}d=sl0;return d},{mode:2});var FFS;var Zpt;_.XX("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var vR=function(){return _.B.apply(this,arguments)||this};
_.m(vR,_.B);
vR.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
vR.prototype.computeFullWidthMode=function(d){return!(!d||!d.fullWidthMode)};
vR.prototype.computeBorderlessMode=function(d){return!(!d||!d.borderlessMode)};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],vR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],vR.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.O("design:type",Boolean)],vR.prototype,"fullWidthMode",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.O("design:type",Boolean)],vR.prototype,"borderlessMode",void 0);_.t([_.ZV({is:"yt-offer-item-renderer",disableElementRegistration:!0})],vR);
_.T(vR,"yt-offer-item-renderer",function(){if(Zpt===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_renderer.yt.offer.item.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="heading-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="description-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="additional-info-renderer" class="style-scope yt-offer-item-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;FFS===void 0&&(FFS=document.createElement("template"));var c=FFS;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Zpt=d}d=Zpt;return d},{mode:2});var TeG;var QlU;_.XX("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var de=function(){return _.B.apply(this,arguments)||this};
_.m(de,_.B);de.prototype.computeAriaLevel_=function(d){return this.getLevelID_(d)};
de.prototype.getLevelID_=function(d){return(d=d.match(/[0-9]+$/))&&d.length==1?d[0]:"1"};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],de.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],de.prototype,"data",void 0);_.t([_.r({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.O("design:type",String)],de.prototype,"ariaLevel",void 0);_.t([_.r({value:"heading",reflectToAttribute:!0}),_.O("design:type",String)],de.prototype,"role",void 0);
_.t([_.r({value:-1,reflectToAttribute:!0}),_.O("design:type",Number)],de.prototype,"tabindex",void 0);_.t([_.ZV({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],de);
_.T(de,"yt-subscription-product-header-renderer",function(){if(QlU===void 0){var d=document.createElement("template");_.P(d,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_header_renderer.yt.subscription.product.header.renderer.css.js--\x3e[[getSimpleString(data.text)]]\n");d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;TeG===void 0&&(TeG=document.createElement("template"));var c=TeG;K.call(H,c.content.cloneNode(!0),d.content.firstChild);QlU=d}d=QlU;return d},{mode:2});var tZj;var Y2b;_.XX("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var HL=function(){return _.B.apply(this,arguments)||this};
_.m(HL,_.B);HL.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.menu":{id:"menu",mapping:_.Ju("menuRenderer"),events:!0}}};
HL.prototype.onStampFinished_=function(){_.Gn(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
HL.prototype.onStampFinished_=HL.prototype.onStampFinished_;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],HL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],HL.prototype,"data",void 0);_.t([_.nK("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],HL.prototype,"onStampFinished_",null);
_.t([_.ZV({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],HL);
_.T(HL,"yt-subscription-product-renderer",function(){if(Y2b===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_renderer.yt.subscription.product.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-subscription-product-renderer">\n  <div id="content" class="style-scope yt-subscription-product-renderer">\n    <yt-img-shadow id="logo-image" height="30" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-renderer">\n    </yt-img-shadow>\n    <div id="metadatas" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-subscription-product-renderer">\n        <div class="metadata style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <div id="additional-infos" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-renderer">\n        <div class="additional-info style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <yt-formatted-string class="description style-scope yt-subscription-product-renderer" hidden="[[!data.description]]" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n  </div>\n  <div id="menu" class="style-scope yt-subscription-product-renderer"></div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;tZj===void 0&&(tZj=document.createElement("template"));var c=tZj;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Y2b=d}d=Y2b;return d},{mode:2});var OpS;var S2G;_.XX("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var $N=function(){return _.B.apply(this,arguments)||this};
_.m($N,_.B);$N.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
$N.prototype.imageScrimColorValuesChanged_=function(){var d,H=(d=this.data)==null?void 0:d.imageScrimColorValues;_.Gn(this.hostElement).querySelector("#scrim").style.backgroundColor=H?_.Ob(H[0]):"transparent"};
$N.prototype.imageScrimColorValuesChanged_=$N.prototype.imageScrimColorValuesChanged_;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],$N.prototype,"data",void 0);
_.t([_.CK("data.imageScrimColorValues"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$N.prototype,"imageScrimColorValuesChanged_",null);_.t([_.ZV({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],$N);
_.T($N,"yt-subscription-product-upsell-offer-renderer",function(){if(S2G===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-upsell-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_upsell_offer_renderer.yt.subscription.product.upsell.offer.renderer.css.js--\x3e<tp-yt-paper-card class="style-scope yt-subscription-product-upsell-offer-renderer">\n  <div id="image-container" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    <yt-img-shadow id="image" object-fit="COVER" object-position="LEFT" thumbnail="[[data.image]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    </yt-img-shadow>\n    <div id="scrim" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <yt-icon id="logo-icon" aria-label$="[[data.logoIconAccessibility.accessibilityData.label]]" hidden="[[!data.logoIcon]]" icon="[[data.logoIcon.iconType]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-icon>\n      <yt-img-shadow id="logo-image" height="30" hidden="[[!data.logo]]" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div id="content" class="card-content style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="title" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      [[getSimpleString(data.title)]]\n    </div>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n    <div id="additional-infos" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n        <yt-formatted-string id="additional-info" text="[[item]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;OpS===void 0&&(OpS=document.createElement("template"));var c=OpS;K.call(H,c.content.cloneNode(!0),d.content.firstChild);S2G=d}d=S2G;return d},{mode:2});var ENg;var yMb;var bpj;var Ne0;var DmZ;var fJT;var Kp=function(){return _.B.apply(this,arguments)||this};
_.m(Kp,_.B);Kp.prototype.onYtServiceRequestError_=function(d){_.ff(this.hostElement,d.detail.error.message)};
Kp.prototype.onYtServiceRequestError_=Kp.prototype.onYtServiceRequestError_;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Kp.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Kp.prototype,"data",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Kp.prototype,"collapsible",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Kp.prototype,"isManageRed",void 0);
_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Kp.prototype,"onYtServiceRequestError_",null);_.t([_.ZV({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],Kp);
_.T(Kp,"yt-single-ypc-offer-renderer",function(){if(fJT===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_renderer.yt.single.ypc.offer.renderer.css.js--\x3e<div id="yt-unlimited-metadata" class="style-scope yt-single-ypc-offer-renderer">\n  <yt-formatted-string hidden="[[!data.offerTypeName]]" text="[[data.offerTypeName]]" class="style-scope yt-single-ypc-offer-renderer">\n  </yt-formatted-string>\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-single-ypc-offer-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-single-ypc-offer-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<yt-button-renderer id="subscription-button" data="[[data.button.buttonRenderer]]" class="style-scope yt-single-ypc-offer-renderer">\n</yt-button-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;DmZ===void 0&&(DmZ=document.createElement("template"));var c=DmZ;K.call(H,c.content.cloneNode(!0),d.content.firstChild);fJT=d}d=fJT;return d},{mode:2});var cL=function(){return _.B.apply(this,arguments)||this};
_.m(cL,_.B);cL.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],cL.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],cL.prototype,"isManageRed",void 0);_.t([_.ZV({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],cL);
_.T(cL,"yt-single-ypc-offer-list-renderer",function(){if(Ne0===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_list_renderer.yt.single.ypc.offer.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-single-ypc-offer-list-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;bpj===void 0&&(bpj=document.createElement("template"));var c=bpj;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Ne0=d}d=Ne0;return d},{mode:2});var AMg;var jlt;_.XX("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var pp=function(){return _.B.apply(this,arguments)||this};
_.m(pp,_.B);pp.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],pp.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],pp.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],pp.prototype,"isManageRed",void 0);_.t([_.ZV({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],pp);
_.T(pp,"yt-ypc-offers-list-renderer",function(){if(jlt===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_list_renderer.yt.ypc.offers.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-ypc-offers-list-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;AMg===void 0&&(AMg=document.createElement("template"));var c=AMg;K.call(H,c.content.cloneNode(!0),d.content.firstChild);jlt=d}d=jlt;return d},{mode:2});_.XX("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var ge=function(){return _.B.apply(this,arguments)||this};
_.m(ge,_.B);
ge.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ge.prototype,"data",void 0);_.t([_.ZV({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],ge);
_.T(ge,"yt-unlimited-manage-subscription-page-renderer",function(){if(yMb===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-manage-subscription-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_manage_subscription_page_renderer.yt.unlimited.manage.subscription.page.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n  <h2 class="style-scope yt-unlimited-manage-subscription-page-renderer">[[getSimpleString(data.subscriptionTitle)]]</h2>\n  <div class="card-content style-scope yt-unlimited-manage-subscription-page-renderer">\n    <template is="dom-repeat" items="[[data.subscriptionInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div class="subscription-info-item style-scope yt-unlimited-manage-subscription-page-renderer">\n        <span class="subscription-info-item-title style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.title)]]\n        </span>\n        <span class="subscription-info-item-content style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.content)]]\n        </span>\n      </div>\n    </template>\n    <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <yt-formatted-string class="additional-info style-scope yt-unlimited-manage-subscription-page-renderer" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n    <div class="buttons style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div id="manage-fix-fop-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-family-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-subscription-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="help-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n    </div>\n    <div id="offers" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;ENg===void 0&&(ENg=document.createElement("template"));var c=ENg;K.call(H,c.content.cloneNode(!0),d.content.firstChild);yMb=d}d=yMb;return d},{mode:2});var vNt;var dyS;var ib=function(){return _.B.apply(this,arguments)||this};
_.m(ib,_.B);_.G=ib.prototype;_.G.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.G.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.G.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.G.onKeypress_=function(d){d.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.G.handleHeaderTap_=function(d){d.preventDefault();d.stopPropagation();this.expandOffers_()};
_.G.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.G.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
ib.prototype.dataChanged_=ib.prototype.dataChanged_;_.t([_.u(_.hQ),_.O("design:type",Object)],ib.prototype,"ironA11yKeysBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ib.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],ib.prototype,"offersVisible_",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ib.prototype,"dataChanged_",null);_.t([_.ZV({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],ib);
_.T(ib,"yt-collapsible-ypc-offer-renderer",function(){if(dyS===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-collapsible-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_collapsible_ypc_offer_renderer.yt.collapsible.ypc.offer.renderer.css.js--\x3e<yt-formatted-string id="more-offer-info-header" hidden="[[offersVisible_]]" text="[[data.moreOfferInfoHeader]]" on-tap="handleHeaderTap_" class="style-scope yt-collapsible-ypc-offer-renderer">\n</yt-formatted-string>\n<div id="offers" hidden="[[!offersVisible_]]" class="style-scope yt-collapsible-ypc-offer-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;vNt===void 0&&(vNt=document.createElement("template"));var c=vNt;K.call(H,c.content.cloneNode(!0),d.content.firstChild);dyS=d}d=dyS;return d},{mode:2});var H$O;var $yb;_.XX("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var GW=function(){return _.B.apply(this,arguments)||this};
_.m(GW,_.B);_.G=GW.prototype;_.G.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.G.dataChanged_=function(){if(this.data.backgroundImage){var d=_.Gv(this.data.backgroundImage.thumbnails,screen.width),H=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=H?"linear-gradient(180deg, "+H+"), url("+d+")":"url("+d+")";this.data.gtmId&&_.Bm(this.data.gtmId,_.Fm("GL",""))}};
_.G.onYtServiceRequestError_=function(d){_.ff(this.hostElement,d.detail.error.message)};
_.G.getScrimLayerColorStops_=function(){var d,H,K=(d=this.data.unlimitedHeaderV2Data)==null?void 0:(H=d.unlimitedHeaderV2Data)==null?void 0:H.scrimLayerColors;if(!K)return null;var c=100/K.length;return K.map(function(p,g){g*=c;return _.Ob(p)+" "+g+"%"}).join(",")};
_.G.computeLogoWithPadding=function(d){var H,K,c;return(d=(H=d.unlimitedLogoImage)==null?void 0:(K=H.thumbnails)==null?void 0:(c=K[0])==null?void 0:c.height)&&d%31===0?!0:!1};
GW.prototype.onYtServiceRequestError_=GW.prototype.onYtServiceRequestError_;GW.prototype.dataChanged_=GW.prototype.dataChanged_;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.t([_.r({computed:"computeLogoWithPadding(data)"}),_.O("design:type",Boolean)],GW.prototype,"logoWithPadding",void 0);
_.t([_.r(),_.O("design:type",Object)],GW.prototype,"data",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GW.prototype,"dataChanged_",null);_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],GW.prototype,"onYtServiceRequestError_",null);_.t([_.ZV({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],GW);
_.T(GW,"yt-unlimited-page-header-renderer",function(){if($yb===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-page-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_page_header_renderer.yt.unlimited.page.header.renderer.css.js--\x3e<template is="dom-if" if="[[!logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<template is="dom-if" if="[[logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper-with-padding" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo-with-padding" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subTitle]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-formatted-string>\n<yt-button-renderer id="manage-subscription-button" data="[[data.manageSubscriptionButton.buttonRenderer]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-button-renderer>\n<div id="metadatas" class="style-scope yt-unlimited-page-header-renderer">\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-formatted-string class="metadata-item style-scope yt-unlimited-page-header-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n  <template is="dom-if" if="[[data.additionalBillingInfo]]" class="style-scope yt-unlimited-page-header-renderer">\n    <div id="additional-billing-info" class="style-scope yt-unlimited-page-header-renderer">\n      <yt-formatted-string class="billing-info-item style-scope yt-unlimited-page-header-renderer" text="[[data.additionalBillingInfo]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n<yt-formatted-string class="promotion-text style-scope yt-unlimited-page-header-renderer" text="[[data.promotion.ypcPromotionRenderer.promotionText]]">\n</yt-formatted-string>\n<div id="more-offers" class="style-scope yt-unlimited-page-header-renderer"></div>\n<a id="restriction-apply-button" class="offer-details-link style-scope yt-unlimited-page-header-renderer" tabindex="0">\n  <yt-formatted-string text="[[data.offerDetailsLinkText]]" class="style-scope yt-unlimited-page-header-renderer"></yt-formatted-string>\n</a>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;H$O===void 0&&(H$O=document.createElement("template"));var c=H$O;K.call(H,c.content.cloneNode(!0),d.content.firstChild);$yb=d}d=$yb;return d},{mode:2});var K4Z;var cxj;_.XX("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var ol=function(){return _.B.apply(this,arguments)||this};
_.m(ol,_.B);ol.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ol.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ol.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ol.prototype,"data",void 0);_.t([_.ZV({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],ol);
_.T(ol,"yt-unlimited-user-notification-renderer",function(){if(cxj===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-user-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_user_notification_renderer.yt.unlimited.user.notification.renderer.css.js--\x3e<div id="yt-notification-text" class="style-scope yt-unlimited-user-notification-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope yt-unlimited-user-notification-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  </template>\n</div>\n<div id="action-button" class="style-scope yt-unlimited-user-notification-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;K4Z===void 0&&(K4Z=document.createElement("template"));var c=K4Z;K.call(H,c.content.cloneNode(!0),d.content.firstChild);cxj=d}d=cxj;return d},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.ElZ=_.H1(function(d){var H=_.dg(d,{numberOfChips:5}).numberOfChips;return _.x("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.x(_.L6,{each:function(){return Array(H==null?void 0:H())}},function(){return _.x("div",{class:"ytGhostChipShelfChip"})}))},"Pg");_.ywb=_.H1(function(d){var H=function(){var g;return((g=d.data)==null?void 0:g.call(d).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},K=_.x6(),c=_.Kj().resolve(_.jv);
_.Is(function(){requestAnimationFrame(function(){var g;(g=K.lottieEl)==null||g.addEventListener("DOMLoaded",function(){var a;(a=d.onLottieLoaded)==null||a.call(d)})})});
var p={};return _.x("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var g;return((g=d.data)==null?void 0:g.call(d).targetId)||""}},_.x(_.hT,{className:_.xM((p.ytChatLoadingViewModelRtl=c==="rtl",p)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:H()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||H()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:H()}}},
animationRef:K}))},"Qg");
}catch(e){_._DumpException(e)}
try{
var DtZ,fpZ,jHZ,vmZ,dMt,H6t,$MG,KS5,cmG,aYg,pEZ,g21,G9U,i6O,o21,ehS,k9Z,hhG,Uk,UMU,n2U,VDj,Rhj,CU0,xMT,LS5,MD1,mMZ,wEj,h2,PUZ,umt,WSZ,M1,IYZ,PH,LC,mn,rmj,wP,B9G,zhZ,XEG,Jmg,ssZ,FS0,T9U,Qsb,tDj,YSG,O6g,SSO,E2T,ymS,N9Z,fYO,jsv,v2Z,dQv,HjZ,cXZ,pbj,gpU,ijZ,GJS,opT,qm1,lOj,np0,xQU,edb,CTU,kJS,RdG,L1G,hd5,VbO,UQS,IP,MbT,mQb,PTg,zdT,XbO,JXb,s5T,F1U,ZjO,TfZ,Q5q,tbv,YmZ,Smj,Epj,yXj,rXZ;
_.RP=function(d){var H=new _.m1("Error accessing DB");return _.StX().then(function(K){return new Promise(function(c,p){try{var g=K.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(d);g.onsuccess=function(){var a=g.result;c(a?a.value:null)};
g.onerror=function(){H.params={key:d,source:"onerror"};p(H)}}catch(a){H.params={key:d,
thrownError:String(a)},p(H)}})},function(){return null})};
_.Ncj=function(d,H){var K=_.djh(H);K!=="javascript:"&&K!=="data:"&&d.setAttribute("href",H)};
DtZ=function(d,H){return _.xL(d.entities,"flowStateEntity",H)};
fpZ=function(d,H){return _.xL(d.entities,"contextNoteUserRatingEntityPayload",H)};
_.Atj=function(d,H){if(d&&H){var K=_.BPi();K().set(d,H);_.z9M(K())}};
jHZ=function(d){return typeof d==="function"};
vmZ=function(d){return _.XM(d,function(H){return H.languageCode==="en"})};
dMt=function(d){var H=Vh;if(_.gm0(d))d.setOption("captions","stickyLoading",{}),d.setOption("captions","track",{});else{var K=_.XM(_.UpF(d),function(c){return c.displayName===H});
d.setOption("captions","track",K)}};
H6t=function(d){if(!d)return 0;var H=d.getPresentingPlayerType(),K=d.getVideoData();return K&&K.isLive?(d=d.getProgressState(H),d.seekableEnd-d.seekableStart):d.getDuration(H)};
$MG=function(d,H){for(var K=_.q(Object.keys(d)),c=K.next();!c.done;c=K.next())if(c=c.value,d[c]!==H[c])return!1;return!0};
KS5=function(){return document.getElementById("player-control-overlay")};
cmG=function(d){d!==-1&&!_.h("player_controls_log_creation_killswitch")&&KS5()&&(_.Fw("pcu_cs",d),_.Fw("pcu_ce"))};
_.qSU=function(d){Object.keys(d);var H=function(K,c){var p=H.mapping||d;if(!K)return _.x(_.HE,null);if(Array.isArray(K)&&(K=pEZ(p,H,K),Array.isArray(K))){if(!K.length)return _.x(_.HE,null);if(K.length>1){for(var g=!1,a=!1,e=[],k={},C=0;C<K.length;k={data$jscomp$2744:void 0},C++)if(k.data$jscomp$2744=K[C],k.data$jscomp$2744){var R=g21(k.data$jscomp$2744,p),V=R.mappingEntry;R=R.rendererName;V&&R&&(V&&(!jHZ(V)&&i6O(V)&&(a=!0),!jHZ(V)&&V.asyncId||(g=!0)),e.push(G9U(k.data$jscomp$2744,V,R,H,c)))}return a&&
!g?_.x(_.HE,null,o21()):_.x(_.HE,null,e)}K=K[0]}if(!K)return _.x(_.HE,null);K=pEZ(p,H,[K])[0];if(!K)return _.x(_.HE,null);g=g21(K,p);p=g.mappingEntry;g=g.rendererName;return p&&g?_.x(_.HE,null,G9U(K,p,g,H,c)):_.x(_.HE,null)};
H.mapping=d;return H};
aYg=function(d){var H=void 0,K;for(K in d)if(d.hasOwnProperty(K)){H=K;break}return H};
pEZ=function(d,H,K){var c,p=(c=_.hW().preProcessOptions)==null?void 0:c.idomOptions;if(!p)return K;_.hW();return p.preProcessPropsIdom(d,K,H.triggerRerender)};
g21=function(d,H){return(d=aYg(d))?{mappingEntry:H[d],rendererName:d}:{mappingEntry:void 0,rendererName:void 0}};
G9U=function(d,H,K,c,p){if(!H)return _.x(_.HE,null);var g={};p&&p[K]&&(g=Object.assign({},p[K]));d[K]!==void 0&&(g.data=d[K]);if(jHZ(H))return H.debugName||(H.debugName=K),_.x(H,g);H.asyncId&&(c.pendingIdsMap=c.pendingIdsMap||{},c.pendingIdsMap[K]=H.asyncId);return H.templateFn?H.templateFn(g):i6O(H)?o21():_.x(_.HE,null)};
i6O=function(d){var H;return(H=d.showPlaceholder)!=null?H:_.hW().defaultShowPlaceholder};
o21=function(){var d=_.hW().placeholder;return d()};
ehS=function(d){return _.x("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(d.subscribeButton?[d.subscribeButton,d.channelAccess]:[d.channelAccess]).map(function(H){return _.x("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.x("div",{class:"yt-profile-identity-info-view-model-wiz--button"},lYO(H)))}))};
k9Z=function(d){var H=d.data;var K=d.hideDivider;d=d.isChannelInfoCard;var c={};c=(c["yt-profile-identity-info-view-model-wiz__frame"]=!0,c["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!H.channelBanner,c);c={class:_.zx(c)};var p,g={imageBannerViewModel:{image:(p=H.channelBanner)==null?void 0:p.image,style:"IMAGE_BANNER_STYLE_INSET"}};p=_.x("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},H.channelBanner?_.x("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
lYO(g,{imageBannerViewModel:{isPositionRelative:!0}})):null);g=_.x("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},lYO(H.avatar));var a;var e=_.x("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.x("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},H.channelDisplayName),H.verifiedOrOacBadge?_.x("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.x(_.d7,{data:{thumbnails:[{url:(a=H.verifiedOrOacBadge)==null?void 0:a.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);a=_.x("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},e,lYO(H.threeDotMenu));e=_.x("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.x("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.x("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},H.channelHandle),H.channelPronouns&&H.channelHandle?_.x("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.x("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},H.channelPronouns)),_.x("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.x("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},H.leftOfBulletInfo),H.leftOfBulletInfo&&H.rightOfBulletInfo?_.x("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.x("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},H.rightOfBulletInfo)));a=_.x("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},a,e);return _.x("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.x("div",c,p,_.x("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},g,a),H.channelDescription?_.x("div",{class:d?"yt-profile-identity-info-view-model-wiz__channel-description-alternate":"yt-profile-identity-info-view-model-wiz__channel-description"},
H.channelDescription):null,ehS(H),K?null:_.x("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
hhG=function(d,H){var K=_.vj(d,{}),c=xMT("top",H),p=xMT("bottom",H),g=xMT("left",H),a=xMT("right",H);return _.UQ({top:function(){return Uk(K().position,c)},
bottom:function(){return Uk(K().position,p)},
left:function(){return Uk(K().position,g)},
right:function(){return Uk(K().position,a)},
position:function(){return Uk(K().positionType,n2U)},
height:function(){return Uk(K().height,h2)},
width:function(){return Uk(K().width,h2)},
"min-width":function(){return Uk(K().minWidth,h2)},
"min-height":function(){return Uk(K().minHeight,h2)},
"max-width":function(){return Uk(K().maxWidth,h2)},
"max-height":function(){return Uk(K().maxHeight,h2)},
"aspect-ratio":function(){return Uk(K().aspectRatio,String)},
"margin-top":function(){return Uk(K().margin,c)},
"margin-bottom":function(){return Uk(K().margin,p)},
"margin-left":function(){return Uk(K().margin,g)},
"margin-right":function(){return Uk(K().margin,a)},
"padding-top":function(){return Uk(K().padding,c)},
"padding-bottom":function(){return Uk(K().padding,p)},
"padding-left":function(){return Uk(K().padding,g)},
"padding-right":function(){return Uk(K().padding,a)},
"flex-direction":function(){return Uk(K().flexDirection,CU0)},
"justify-content":function(){return Uk(K().justifyContent,Rhj)},
"align-items":function(){return Uk(K().alignItems,VDj)},
"flex-grow":function(){return Uk(K().flexGrow,String)},
"flex-shrink":function(){return Uk(K().flexShrink,String)},
"flex-basis":function(){return Uk(K().flexBasis,h2)},
"align-self":function(){return Uk(K().alignSelf,VDj)},
"flex-wrap":function(){return Uk(K().flexWrap,UMU)},
"align-content":function(){return Uk(K().alignContent,VDj)}})};
Uk=function(d,H){return d!==void 0?H(d):void 0};
UMU=function(d){switch(d){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
n2U=function(d){switch(d){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
VDj=function(d){switch(d){case "YPC_ALIGN_ITEMS_AUTO":return"auto";case "YPC_ALIGN_ITEMS_START":return"flex-start";case "YPC_ALIGN_ITEMS_END":return"flex-end";case "YPC_ALIGN_ITEMS_CENTER":return"center";case "YPC_ALIGN_ITEMS_STRETCH":return"stretch"}};
Rhj=function(d){switch(d){case "YPC_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "YPC_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "YPC_JUSTIFY_CONTENT_CENTER":return"center";case "YPC_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "YPC_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around"}};
CU0=function(d){switch(d){case "YPC_FLEX_DIRECTION_ROW":return"row";case "YPC_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "YPC_FLEX_DIRECTION_COLUMN":return"column";case "YPC_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse"}};
xMT=function(d,H){var K=H==="rtl";switch(d){case "top":var c=LS5;break;case "bottom":c=MD1;break;case "left":c=mMZ;break;default:c=wEj}return function(p){return Uk(c(p,K),h2)}};
LS5=function(d){var H=d.top;var K=d.vertical;d=d.all;var c;return(c=H!=null?H:K)!=null?c:d};
MD1=function(d){var H=d.bottom;var K=d.vertical;d=d.all;var c;return(c=H!=null?H:K)!=null?c:d};
mMZ=function(d,H){var K=d.left;var c=d.end;var p=d.start;var g=d.horizontal;d=d.all;var a,e;return(e=(a=K!=null?K:H?c:p)!=null?a:g)!=null?e:d};
wEj=function(d,H){var K=d.right;var c=d.end;var p=d.start;var g=d.horizontal;d=d.all;var a,e;return(e=(a=K!=null?K:H?p:c)!=null?a:g)!=null?e:d};
h2=function(d){var H=d.value;switch(d.unit){case "YPC_DIMENSION_UNIT_POINT":return H+"px";case "YPC_DIMENSION_UNIT_FRACTION":return H+"%";default:return""+H}};
PUZ=function(d){switch(d){case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY":return"ytStyledTextViewModelYtTextPrimary";case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY_INVERSE":return"ytStyledTextViewModelYtTextPrimaryInverse";case "YPC_SEMANTIC_COLOR_TEXT_SECONDARY":return"ytStyledTextViewModelYtTextSecondary";case "YPC_SEMANTIC_COLOR_TEXT_DISABLED":return"ytStyledTextViewModelYtTextDisabled";case "YPC_SEMANTIC_COLOR_THEMED_GREEN":return"ytStyledTextViewModelYtThemedGreen"}};
umt=function(d){var H=d!=null?d:{};d=H.fontRole;var K=H.fontSize;H=H.fontWeight;if(d!==null&&K!==null)switch(d){case "YPC_FONT_ROLE_DISPLAY":switch(K){case "YPC_FONT_SIZE_L":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(K){case "YPC_FONT_SIZE_L":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return H===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(K){case "YPC_FONT_SIZE_XL":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
WSZ=function(d,H,K){function c(V){return Object.values(V).map(function(U){var L=U.productId;U=U.pricingOptionIndex;return LC(p(L).pricingOptions,U).pricingOptionId})}
function p(V){return k().get(V)}
function g(V){V=c(V);K(V)}
function a(V,U){return Array.from(M1(V.pricingOptions)).filter(function(L){L=_.q(L);L.next();L=L.next().value;return mn(L.pricingGroupAttributes,U)}).map(function(L){return _.q(L).next().value})}
var e=wP([d,H],function(V,U){var L=V==null?void 0:V.selectedPricingOptions;V={};var w=!0;if(L&&U.length)for(var W=_.q(U),J=W.next();!J.done;J=W.next()){J=J.value;var F=IYZ(J.pricingOptions,function(E){a:{E=E.pricingOptionId;for(var N=_.q(L),y=N.next();!y.done;y=N.next())if(y.value===E){E=!0;break a}E=!1}return E});
if(F>=0){w=!1;var Y=LC(J.pricingOptions,F),A=void 0;V[J.groupId]={productId:J.productId,pricingOptionIndex:F,pricingGroupAttributes:(A=Y)==null?void 0:A.pricingGroupAttributes}}}w&&U.length&&(w=LC(U[0].pricingOptions,0),V[U[0].groupId]={productId:U[0].productId,pricingOptionIndex:0,pricingGroupAttributes:w==null?void 0:w.pricingGroupAttributes});return V}),k=wP([H],function(V){return new Map(V.map(function(U){return[U.productId,
U]}))}),C=wP([H],function(V){var U=new Map;
V=_.q(V);for(var L=V.next();!L.done;L=V.next()){var w=L.value;L=w.groupId;var W=w.productId;w=_.q(M1(w.pricingOptions));for(var J=w.next();!J.done;J=w.next()){var F=_.q(J.value);J=F.next().value;F=F.next().value;U.set(F.pricingOptionId,{groupId:L,productId:W,index:J,pricingOption:F,pricingGroupAttributes:F.pricingGroupAttributes})}}return U}),R=wP([H],function(V){var U=new Map;
V=_.q(V);for(var L=V.next();!L.done;L=V.next()){var w=L.value;L=w.groupId;var W=w.productId,J=void 0;w=_.q(M1((J=w.pricingGroups)!=null?J:[]));for(J=w.next();!J.done;J=w.next()){var F=_.q(J.value);J=F.next().value;F=F.next().value;U.set(F.pricingGroupId,{groupId:L,productId:W,index:J,pricingGroup:F,pricingGroupAttributes:F.pricingGroupAttributes})}}return U});
return{getProductById:p,isProductSelected:function(V){var U=p(V);if(!U)return!1;var L;return((L=e()[U.groupId])==null?void 0:L.productId)===V},
getSelectedPricingOptions:function(){return Object.values(e()).map(function(V){var U=V.productId;V=V.pricingOptionIndex;return LC(p(U).pricingOptions,V)})},
getSelectedPricingGroupAttributesByGroupId:function(V){var U;return(V=(U=e()[V])==null?void 0:U.pricingGroupAttributes)?Array.from(V):void 0},
getSelectedProductByGroupId:function(V){var U;return(V=(U=e()[V])==null?void 0:U.productId)?p(V):void 0},
onProductSelected:function(V){var U=p(V);if(U){var L=e(),w;if(((w=L[U.groupId])==null?void 0:w.productId)!==V){var W=(w=(W=L[U.groupId])==null?void 0:W.productId)?p(w):void 0;var J;w=(J=L[U.groupId])==null?void 0:J.pricingGroupAttributes;var F;J=(F=L[U.groupId])==null?void 0:F.pricingOptionIndex;if(W&&w&&J!==void 0){F=a(W,w).indexOf(J);if(F===-1)throw Error("Lj`"+J+"`"+W.productId);J=a(U,w);F=F<J.length?J[F]:J.length>0?J[0]:0}else F=0;PH(U.pricingOptions)<=F&&(F=0);J=LC(U.pricingOptions,F);var Y;
W={};g(Object.assign({},L,(W[U.groupId]={productId:V,pricingOptionIndex:F,pricingGroupAttributes:(Y=J==null?void 0:J.pricingGroupAttributes)!=null?Y:[]},W)))}}},
onPricingOptionSelected:function(V){var U=C().get(V);if(U){V=U.groupId;var L=U.productId;U=U.index;var w=e(),W,J;if(((W=w[V])==null?void 0:W.productId)!==L||((J=w[V])==null?void 0:J.pricingOptionIndex)!==U){var F,Y;W={};g(Object.assign({},w,(W[V]={productId:L,pricingOptionIndex:U,pricingGroupAttributes:(Y=(F=w[V])==null?void 0:F.pricingGroupAttributes)!=null?Y:[]},W)))}}},
onPricingGroupSelected:function(V){var U=R().get(V);if(U){V=U.groupId;var L=U.productId,w=U.pricingGroup.pricingGroupAttributes,W=p(L);if(W){U=e();var J=U[V].pricingGroupAttributes,F;if(((F=U[V])==null?void 0:F.productId)!==L||!mn(rmj(J,PH(w)),w)){F=Array.from(w);for(w=PH(w);w<PH(J);w++){var Y="",A=!1,E=Array.from(F);E.push(LC(J,w));for(var N=_.q(W.pricingGroups),y=N.next();!y.done;y=N.next())if(y=y.value,mn(y.pricingGroupAttributes,E)){F.push(LC(J,w));A=!0;break}else Y===""&&PH(y.pricingGroupAttributes)===
E.length&&mn(rmj(y.pricingGroupAttributes,F.length),F)&&(Y=LC(y.pricingGroupAttributes,w));A||F.push(Y)}Y=U[V].pricingOptionIndex;w=[];A=new Map;E=0;W=_.q(M1(W.pricingOptions));for(N=W.next();!N.done;N=W.next())y=_.q(N.value),N=y.next().value,y=y.next().value,mn(y.pricingGroupAttributes,F)&&w.push(N),mn(y.pricingGroupAttributes,J)&&A.set(N,E++);w.length===0?J=0:(J=A.get(Y),J=J!==void 0&&J<w.length?w[J]:w[0]);W={};g(Object.assign({},U,(W[V]={productId:L,pricingOptionIndex:J,pricingGroupAttributes:F},
W)))}}}},
onClearGroupSelected:function(V){var U=e();U[V]&&(U=Object.fromEntries(Object.entries(U).filter(function(L){return _.q(L).next().value!==V})),g(U))}}};
M1=function(d){return function K(){var c,p,g,a,e;return _.py(K,function(k){switch(k.nextAddress){case 1:_.nz(k,2),c=0,p=_.q(d),g=p.next();case 4:if(g.done){k.jumpTo(2);break}a=g.value;e=_.g5;return k.yield([c++,a],7);case 7:e(k.yieldResult);g=p.next();k.jumpTo(4);break;case 2:_.xs(k),_.Cz(k,0)}})}()};
IYZ=function(d,H){d=_.q(M1(d));for(var K=d.next();!K.done;K=d.next()){var c=_.q(K.value);K=c.next().value;c=c.next().value;if(H(c))return K}return-1};
PH=function(d){var H=0;for(d=d[Symbol.iterator]();!d.next().done;)++H;return H};
LC=function(d,H){d=_.q(M1(d));for(var K=d.next();!K.done;K=d.next()){var c=_.q(K.value);K=c.next().value;c=c.next().value;if(K===H)return c}};
mn=function(d,H){if(!d&&!H)return!0;if(!d||!H)return!1;d=Array.from(d);H=Array.from(H);if(d.length!==H.length)return!1;for(var K=0;K<d.length;K++)if(d[K]!==H[K])return!1;return!0};
rmj=function(d,H){H=H===void 0?Infinity:H;var K=[];d=_.q(M1(d));for(var c=d.next();!c.done;c=d.next()){var p=_.q(c.value);c=p.next().value;p=p.next().value;if(c>=H)break;c>=0&&K.push(p)}return K};
wP=function(d,H){var K,c;return function(){for(var p=d.map(function(a){return a()}),g=0;g<p.length;g++)if(!K||p[g]!==K[g]){K=p;
c=H.apply(null,_.ru(p));break}return c}};
B9G=function(d,H,K){var c=[];d=_.q(d);for(var p=d.next();!p.done;p=d.next()){p=p.value;var g=void 0;((g=H)==null?0:g.length)&&!mn(p.pricingGroupAttributes,H)||c.push({pricingOption:p,isSelected:K.includes(p.pricingOptionId)})}return c};
zhZ=function(d,H){return _.xL(d.entities,"pdpStateEntity",H)};
XEG=function(d){var H,K;return!!(d.productId&&d.groupId&&((H=d.pricingOptions)==null?0:H.length)&&d.pricingOptions.every(function(c){return c.pricingOptionId})&&((K=d.pricingGroups)==null||!K.length||Array.isArray(d.pricingGroups)&&d.pricingGroups.every(function(c){return c.pricingGroupId&&c.pricingGroupAttributes&&c.pricingGroupAttributes.length>0})))};
Jmg=function(d,H,K){return WSZ(d,wP([H],function(c){return c.filter(XEG)}),K)};
ssZ=function(d,H){return H.length===0?[d]:[d.slice(0,H[0]),d.slice(H[0])].filter(function(K){return K.length>0})};
FS0=function(d){switch(d){case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-justify-end";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-full-distributed";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-flex-primary";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-vertical-centered";
case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-distributed-space";default:return""}};
T9U=function(d,H,K,c){c=Object.assign({},c);_.X4(c,Z61,{selectedOptionId:d,primaryButtonOverride:K});_.AB().dispatch(_.PI("flowStateEntity",H,c))};
Qsb=function(d){switch(d){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
tDj=function(d){switch(d){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
YSG=function(d,H){return _.xL(d.entities,"contextNoteFeedEntityPayload",H)};
O6g=function(d,H){switch(d){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return H==null?void 0:H.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return H==null?void 0:H.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return H==null?void 0:H.ratingNotHelpfulText}};
SSO=function(d,H){return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:d.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:d.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:d.deleteDialogTitle}]},dialogMessages:[{runs:[{text:d.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:d.deleteActionText}]},command:{performCommentActionEndpoint:{action:H}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:d.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
E2T=function(d){d.style.height="auto";d.style.height=d.scrollHeight+"px"};
ymS=function(d){return[d.syncStep,d.asyncStep].filter(function(H){return H!==void 0})};
N9Z=function(d){var H,K,c;if(d=(H=d.structuredContextNoteFormSchema)==null?void 0:(K=H.fieldSchemas)==null?void 0:(c=K.noteBody)==null?void 0:c.validationSchema)for(H=_.q(ymS(d)),K=H.next();!K.done;K=H.next()){K=K.value.rules;if(!K)break;K=_.q(K);for(K=K.next();!K.done;K=K.next())return _.M(K.value,_.b6v)}};
fYO=function(d){if(d){d=_.q(ymS(d));for(var H=d.next();!H.done;H=d.next()){H=H.value.rules;if(!H)break;H=_.q(H);for(H=H.next();!H.done;H=H.next())return _.M(H.value,DMq)}}};
jsv=function(d){if(d){d=_.q(ymS(d));for(var H=d.next();!H.done;H=d.next()){H=H.value.rules;if(!H)break;H=_.q(H);for(H=H.next();!H.done;H=H.next())return _.M(H.value,Amt)}}};
v2Z=function(d){d=/^https?:\/\//.test(d)?d:"http://"+d;try{var H=_.Qe(d)}catch(K){return!1}if(H.toString()!==d)return!1;d=H.JSC$10002_domain_.split(".");return d.length>1&&d.every(function(K){return!!K})};
dQv=function(d,H,K,c){var p;c=(p=c.structuredContextNoteData)==null?void 0:p.createCommentEndpoint;if(p=_.M(c,_.NYd))return p.commentText=_.AF(d),p.videoPositionMention=H,p.sources=K,c};
HjZ=function(d){return d==null?void 0:d.stringValue};
_.$Qg=function(d){return d.talkToRecs};
cXZ=function(d,H,K){d=d.map(function(c,p){return{listItemViewModel:{title:c.title,subtitle:c.subtitle,leadingImage:c.leadingImage,trailingImage:p===H?K1T:void 0,rendererContext:{commandContext:{onTap:c.onTap}}}}});
return Object.assign({},K&&{header:{panelHeaderViewModel:{title:K}}},{content:{listViewModel:{listItems:d}}})};
pbj=function(d,H){if(d&&H)switch(H){case "SELECTION_TYPE_BOOL":return d.boolValue;case "SELECTION_TYPE_INT":return d.intValue;case "SELECTION_TYPE_STRING":return d.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return d.privacyStatusValue}};
gpU=function(d){var H;d=(H=d.options)==null?void 0:H.findIndex(function(K){return K.isSelected});
return d===void 0?-1:d};
ijZ=function(d,H,K){var c=function(){return d().label},p={},g=_.xM("ytDropdownViewModelLabel",(p.ytDropdownViewModelLabelError=H,p));
return _.x(_.n,{cond:function(){return d().label&&!(K()===-1&&d().label&&!d().placeholderText)},
then:function(){return _.x("div",{class:g},_.x(_.j$,{text:c}))}})};
GJS=function(d,H){var K={};K=_.xM("ytDropdownViewModelTitle",(K.ytDropdownViewModelTitlePlaceholder=function(){return H()===-1},K));
return _.x("div",{class:K},_.x(_.j$,{text:function(){var c=d();var p=H();if(p===-1)c=c.placeholderText?c.placeholderText:c.label;else{var g,a;c=(g=c.options)==null?void 0:(a=g[p])==null?void 0:a.title}return c}}))};
opT=function(d,H){var K=function(){return d().hint};
return _.x(_.HE,null,_.x(_.n,{cond:function(){return K()&&!H()},
then:function(){return _.x("div",{class:_.xM("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.x(_.j$,{text:K,className:"ytDropdownViewModelSupportText"}))}}),_.x(_.n,{cond:H,
then:function(){return _.x("div",{id:"dropdown-view-model-error",role:"alert",class:_.xM("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.x(_.hu,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.x(_.j$,{text:H,className:"ytDropdownViewModelSupportText"}))}}))};
qm1=function(d,H){var K=_.Kj().resolve(_.kLZ);_.WE(function(){var c=d().id;c&&K!=null&&K.dropdownMap.set(c,H)})};
lOj=function(d){d=_.M(d.scheduleButton,aO5);d=_.M(d==null?void 0:d.primaryButton,_.OV);d=_.M(d==null?void 0:d.onTap,_.ZX);var H,K,c=((K=_.M(d,_.kW))==null?void 0:K.commands)||[d];K=_.q(c);for(d=K.next();!d.done&&!(H=_.M(d.value,_.fhB));d=K.next());var p;H=(p=H)==null?void 0:p.createBroadcastRequest;if(!H)throw Error("Oj");return H};
np0=function(d,H,K){K=K===void 0?{}:K;var c,p;return _.l(function(g){if(c=edb(H))return g.return(c);(p=kJS(d,H,K))&&xQU(H,p);return g.return(p)})};
xQU=function(d,H){var K=CTU(d);K&&H.then(function(c){_.Kj().resolve(_.kx).put(K,new _.xx({innertubeResponse:c}))})};
edb=function(d){if(d=CTU(d)){var H=_.Kj().resolve(_.kx);if(H.has(d))return H.get(d).then(function(K){return K==null?void 0:_.d5(K)})}return null};
CTU=function(d){var H=_.M(d.endpoint,_.AP);if(H!=null&&H.videoId)return H={videoId:H.videoId},_.h("web_imp_player_mute_params")&&(H.mutedAtStart=d.startPlaybackInMutedState),_.fO("inline_playback",H)};
kJS=function(d,H,K){d=_.Nc(d,H.endpoint,RdG(H,K)).then(function(c){return c});
return Promise.resolve(d)};
RdG=function(d,H){H=_.h("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!d.startPlaybackInMutedState},H):Object.assign({},{vis:5,autonav:"1"},H);var K;H={contentPlaybackContext:_.rn(H,(K=_.M(d.endpoint.commandMetadata,_.Co))==null?void 0:K.url,window.location.href)};_.h("web_imp_player_mute_params")&&(H.overrideMutedAtStart=!d.startPlaybackInMutedState);return H};
L1G=function(d,H){var K=window.MutationObserver;K&&(u4=new K(function(c,p){c=_.q(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var a;if(a=g.type==="childList"&&g.target)a:{a=d;g=VbO(g.target);a=VbO(a);for(var e=null,k=0;k<g.length;k++)if(a.includes(g[k])){if(k===0){a=!1;break a}e=g[k];break}e?(g=UQS(g,e),a=UQS(a,e),a=g<a):a=!1}if(a){H();p.disconnect();break}}}),(K=hd5())&&u4.observe(K,{childList:!0,
subtree:!0}))};
hd5=function(){var d=document.getElementsByTagName("ytd-rich-grid-renderer");if(d.length>0)return d[0];d=document.getElementsByTagName("ytd-section-list-renderer");return d.length>0?d[0]:null};
VbO=function(d){for(var H=[];d;)H.push(d),d=d.parentElement;return H};
UQS=function(d,H){var K=Array.from(H.children);H=d.indexOf(H);return H>0?K.indexOf(d[H-1]):-1};
IP=function(d,H,K){K=K===void 0?{}:K;return _.Vz(d,K,H)};
MbT=function(d){switch(d){case "MUSIC":return!0;default:return!1}};
mQb=function(d){return d==null?void 0:d.filter(function(H){return H.premiereTrailerBadgeRenderer})};
PTg=function(d){var H,K=d==null?void 0:(H=d.find(function(V){return V.thumbnailOverlayTimeStatusRenderer}))==null?void 0:H.thumbnailOverlayTimeStatusRenderer,c,p;
if((K==null?0:(c=K.icon)==null?0:c.iconType)&&MbT(K==null?void 0:(p=K.icon)==null?void 0:p.iconType)){var g;return{icon:K==null?void 0:(g=K.icon)==null?void 0:g.iconType}}var a,e;var k=(d=(a=d==null?void 0:(k=d.find(function(V){return V.thumbnailBottomOverlayViewModel}))==null?void 0:k.thumbnailBottomOverlayViewModel)==null?void 0:(e=a.badges)==null?void 0:e.find(function(V){var U,L;
return((U=_.M(V,wbb))==null?void 0:(L=U.inlinePlaybackBadgeData)==null?void 0:L.replicateAsTimestamp)===!0}))?_.M(d,wbb):void 0;
if(k==null?0:k.icon){var C,R;if((k=(C=_.LYY(k==null?void 0:k.icon))==null?void 0:(R=C.clientResource)==null?void 0:R.imageName)&&MbT(k))return{icon:k}}return{}};
zdT=function(d,H){var K=uIO,c=_.q(_.GO(IOU(new rXZ(function(){},K,H)),void 0,"PAnyd")),p=c.next().value,g=c.next().value,a=new rXZ(function(e){g(e)},K,H);
_.wc(function(){Promise.resolve().then(function(){var e,k=(e=d())!=null?e:{};a.playerControlsData=k;_.h("player_controls_skip_double_signal_old")&&(a.lastSeenPlayerApi=_.si(k.playerApi));_.h("player_controls_skip_double_signal_old")||(a.lastSeenPlayerApi=_.si(k.playerApi));W1Z(a)});
_.Pk(function(){Bf0(a)})},"HikUP");
_.Pk(function(){Bf0(a)});
return function(){return p()}};
XbO=function(d){return function(H){var K=d(),c={playerState:H};if(H===1){var p;(p=K.playerApi)==null||p.loadModule("captions")}if(H===0){var g;(g=K.playerApi)==null||g.unloadModule("captions")}H!==-1&&K.setState(c)}};
JXb=function(d){return function(H){d().setState({playbackRate:H})}};
s5T=function(d){return function(H){var K=d(),c=K.playerApi,p=c==null?void 0:c.getVideoData(),g=(p==null?void 0:p.isLive)||!1;p=p==null?void 0:p.video_id;g={videoDuration:H6t(c||void 0),isLive:g,videoId:p};g.videoId!==K.videoId&&(g=Object.assign({},_.aJ5(c),g));if(H==null?0:H.playertype)g.playerType=H.playertype;if(c){g.captionsAvailable=_.HH(c);H=g;var a;p=(a=c.getStoryboardLevel(c.getNumberOfStoryboardLevels()-1))==null?void 0:a.intervalMs;H.storyboardInterval=p?p/1E3:void 0;g.captionsAvailable&&
(g.captionsEnabled=_.gm0(c))}g.volumeMuted=!(c==null||!c.isMuted());K.setState(g)}};
F1U=function(d){return function(H){var K=d(),c=K.playerApi;if(c){var p=c.getPresentingPlayerType();H={playedTime:H||0,percentLoaded:c.getVideoLoadedFraction(),playerType:p};K.playerState===0&&(H.playedTime=K.videoDuration);K.isLive&&(p=c.getProgressState(p),H.playedTime-=p.seekableStart,H.videoDuration=H6t(c));if(K.playerType===1)c=!1;else{var g;if((g=K.uxConfig)==null?0:g.showCuedOverlay){var a;c=!((a=K.playerApi)==null?0:a.getPlayerStateObject(K.playerType).isDomPaused)}else c=!0}c&&delete H.playedTime;
K.setState(H)}}};
ZjO=function(d){return function(){var H=d(),K,c,p,g={volume:(p=(K=H.playerApi)==null?void 0:K.getVolume())!=null?p:0,volumeMuted:!((c=H.playerApi)==null||!c.isMuted())};H.setState(g)}};
TfZ=function(d){return function(){var H=d(),K=H.playerApi;if(K){var c={captionsAvailable:_.HH(K)};c.captionsAvailable&&(c.captionsEnabled=_.gm0(K));H.setState(c)}}};
Q5q=function(d){return function(){var H=d();if(H.playerApi&&!(H.volumeMuted||H.controlsVisible&&H.isProbablyAScreenreaderUser)){H.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var K;(K=document.querySelector(".player-control-play-pause-icon"))==null||K.focus()}}};
tbv=function(d){return{appApi:Object.assign({},_.cMD(),{showCaptionsToggleToast:function(H){var K,c;(c=(K=d()).showCaptionsToggleToast)==null||c.call(K,H)},
openInMiniplayer:function(){var H,K;(K=(H=d()).openInMiniplayer)==null||K.call(H)}})}};
YmZ=function(d,H){var K,c,p;return!!(d==null?0:(K=d.playerResponse)==null?0:(c=K.playerConfig)==null?0:(p=c.inlinePlaybackConfig)==null?0:p.showScrubbingControls)&&!(H==null?0:H.hideScrubbingControls)};
_.OjZ=function(d){var H=!d.miniplayerIsActive;return[5,2,0].includes(d.miniplayerPlaybackState)||H};
Smj={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Epj=function(d,H){var K,c,p,g,a;_.l(function(e){if(!H.length)return e.return([]);K=[];c=_.q(H);for(p=c.next();!p.done;p=c.next())g=p.value,(a=d.resolveIcon(g))&&!d.iconCache[a.url]&&K.push(_.OtS(d,a).then(function(){}).catch(function(){}));
return e.return(Promise.all(K))})};
yXj=function(d,H){var K=[];H=(new Set(H)).values();H=_.q(H);for(var c=H.next();!c.done;c=H.next()){c=c.value;for(var p=_.q(Object.values(Smj)),g=p.next();!g.done;g=p.next())K.push({iconName:c,iconStyle:g.value})}Epj(d.iconManager,K)};
_.bjq=function(d,H,K){var c=K!=null?K:d.iconsToFetch;c!=null&&c.length?H!==void 0&&H>=0?_.mf(_.Xp,function(){yXj(d,c)},H):yXj(d,c):Promise.resolve()};
rXZ=function(d,H,K){var c=this;this.renderFn=d;this.listeners=H;this.context=K;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var p;this.lastSeenPlayerApi=_.si((p=this.playerControlsData)==null?void 0:p.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.aJ5(),void 0);_.h("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){IOU(c).setState({playerState:-1});c.resetRecentlyNavigatedJobId&&_.Xp.cancelJob(c.resetRecentlyNavigatedJobId);
c.recentlyNavigated=!0;c.resetRecentlyNavigatedJobId=_.Xp.addJob(function(){c.recentlyNavigated=!1},8,1E4)})};
rXZ.prototype.setState=function(d){if(!_.h("mweb_player_skip_no_op_state_changes")||!$MG(d,this.state))if(this.state=Object.assign({},this.state,d),!_.h("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)d=-1,_.h("player_controls_log_creation_killswitch")||KS5()||(d=(0,_.$G)()),_.Fw("pcu_s"),_.Fw("pcu_se"),_.Fw("pcu_rs"),this.renderFn(IOU(this)),_.Fw("pcu_re"),cmG(d),_.Xp.addJob(function(){_.Fw("pcu_ap")},8)};
var IOU=function(d){var H;var K=_.si((H=d.playerControlsData)==null?void 0:H.playerApi);return Object.assign({},d.state,{setState:d.boundSetState,domMeasurements:{progressBarLineRect:d.progressBarLineRect},playerApi:K,appApi:d.context.appApi,playerContainer:d.context.playerContainer,playerControlContainer:d.context.playerControlContainer,uxConfig:d.context.uxConfig})},W1Z=function(d){d.listeners.forEach(function(H){d.eventListenerCleanupFunctions.push(H.register(function(){return IOU(d)},function(){return d.getData()}))})},
Bf0=function(d){d.eventListenerCleanupFunctions.forEach(function(H){H()});
d.eventListenerCleanupFunctions.length=0};
rXZ.prototype.getData=function(){return this.playerControlsData};var rP=new _.Dk("abuseReportFlowState");var NfZ=new _.Dk("feedbackFormFlowState");var DQj=new _.Dk("inputBoxViewModel");var fO0=new _.Dk("flowNextStepCommand");var AXg=new _.Dk("flowPrevStepCommand");var j5S=new _.Dk("updateFlowCommand");_.vp1=new _.Dk("flowStepRenderer");_.b6v=new _.Dk("lengthValidationRule");var DMq=new _.Dk("regexValidationRule");var Amt=new _.Dk("selectedValidationRule");var dlv=new _.Dk("talkToRecsViewModel");var H4t=new _.Dk("creatorGoalSetUpFlowDropdownItemViewModel");var $l1=new _.Dk("creatorGoalSetUpFlowDropdownViewModel");var wbb=new _.Dk("thumbnailBadgeViewModel");_.KwU=new _.Dk("radioButtonGroupViewModel");var aO5=new _.Dk("panelFooterViewModel");var c5v=new _.Dk("ypcCancelRecurrenceCommand");var pMg=new _.Dk("cancellationFlowState");var Z61=new _.Dk("premiumPurchaseFlowState");var gGq=new _.Dk("surveyAnswerCardRenderer");var i4T=new _.Dk("showMoreButtonRenderer");var G1b;var oGU,qXb=function(){if(oGU!==void 0)return oGU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;G1b===void 0&&(G1b=document.createElement("template"));var c=G1b;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return oGU=d};var WH=function(){var d=_.B.apply(this,arguments)||this;d.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";d.goalDescription="";d.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";d.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";d.startButtonId="start-button";d.exampleButtonId="example-button";return d};
_.m(WH,_.B);_.G=WH.prototype;_.G.getGoalDropdownItems=function(){var d,H;return(H=_.M((d=this.data)==null?void 0:d.purchaseTargetDropdown,$l1))==null?void 0:H.dropdownItems};
_.G.getTimerDropdownItems=function(){var d,H;return(H=_.M((d=this.data)==null?void 0:d.timerDropdown,$l1))==null?void 0:H.dropdownItems};
_.G.getColorDropdownItems=function(){var d,H;return(H=_.M((d=this.data)==null?void 0:d.colorDropdown,$l1))==null?void 0:H.dropdownItems};
_.G.getDropdownItemText=function(d){var H;return(H=_.M(d,H4t))==null?void 0:H.itemLabel};
_.G.getDropdownItemValue=function(d){d=_.M(d,H4t);return(d==null?void 0:d.timeLimit)||(d==null?void 0:d.purchaseTarget)||(d==null?void 0:d.eligiblePurchaseType)};
_.G.updateFlowState=function(d){_.oF(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:d}])};
_.G.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.G.updateGoalValue=function(d){this.goal=d.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.G.onTextValueChanged=function(d){this.goalDescription=d.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.G.updateTimerValue=function(d){this.timer=d.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.G.updateTierValue=function(d){this.tier=d.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.G.getButtonViewModel=function(d){d=(d==null?void 0:d.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var H,K=_.M((H=this.data)==null?void 0:H.startGoalButton,_.OV);return Object.assign({},K,{state:d})};
_.H3.Object.defineProperties(WH,{template:{configurable:!0,enumerable:!0,get:function(){return qXb()}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],WH.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],WH.prototype,"goal",void 0);_.t([_.r(),_.O("design:type",Object)],WH.prototype,"goalDescription",void 0);_.t([_.r(),_.O("design:type",Object)],WH.prototype,"timer",void 0);_.t([_.r(),_.O("design:type",Object)],WH.prototype,"tier",void 0);
_.t([_.r(),_.O("design:type",Object)],WH.prototype,"startButtonId",void 0);_.t([_.r(),_.O("design:type",Object)],WH.prototype,"exampleButtonId",void 0);_.t([_.ZV({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],WH);_.T(WH,"yt-creator-goal-set-up-flow-view-model",function(){return qXb()},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var a7t;var l7q;var eLO;var k1Z=function(){return _.B.apply(this,arguments)||this};
_.m(k1Z,_.B);_.t([_.r(),_.O("design:type",Object)],k1Z.prototype,"data",void 0);_.t([_.ZV({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],k1Z);
_.T(k1Z,"yt-survey-answer-card-renderer",function(){if(eLO===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-answer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_answer_card_renderer.yt.survey.answer.card.renderer.css.js--\x3e<yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[data.answerString]]" class="style-scope yt-survey-answer-card-renderer"></yt-formatted-string><yt-icon id="card-icon" icon="CHEVRON_RIGHT" class="style-scope yt-survey-answer-card-renderer"></yt-icon>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;l7q===void 0&&(l7q=document.createElement("template"));var c=l7q;K.call(H,c.content.cloneNode(!0),d.content.firstChild);eLO=d}d=eLO;return d},{mode:2});var xlj;var nGb;var BH=function(){return _.B.apply(this,arguments)||this};
_.m(BH,_.B);_.G=BH.prototype;_.G.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.G.selectedItemChanged=function(d){_.oF(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[d.feedbackToken||""]}])};
_.G.surveyAnswerCardRendererClicked=function(d){if(d.target&&_.M(d.model.item,gGq)){var H=d.target;d=_.M(d.model.item,gGq);d.onTapCommand?_.l5(H,[d.onTapCommand],H):this.data.onTapCommand&&_.l5(H,[this.data.onTapCommand],H);this.selectedItemChanged(d)}};
_.G.checkIsCancellationStyle=function(d){return d==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.G.updateSelectedItemFromBinding=function(d){this.selectedItem=d.detail.value};
BH.prototype.onSelectedItemChanged=BH.prototype.onSelectedItemChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],BH.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],BH.prototype,"selectedItem",void 0);_.t([_.r({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.O("design:type",Boolean)],BH.prototype,"isCancellationStyle",void 0);
_.t([_.CK("selectedItem"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],BH.prototype,"onSelectedItemChanged",null);_.t([_.ZV({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],BH);
_.T(BH,"yt-survey-flow-step-renderer",function(){if(nGb===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_flow_step_renderer.yt.survey.flow.step.renderer.css.js--\x3e<yt-formatted-string id="question" force-default-style="" split-lines="1" text="[[data.question]]" class="style-scope yt-survey-flow-step-renderer">\n</yt-formatted-string>\n\n<template is="dom-if" if="[[isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <template is="dom-repeat" items="[[data.answerCards]]" as="item" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n      <yt-survey-answer-card-renderer data="[[item.surveyAnswerCardRenderer]]" on-click="surveyAnswerCardRendererClicked" class="style-scope yt-survey-flow-step-renderer"></yt-survey-answer-card-renderer>\n    </template>\n  </template>\n</template>\n\n<template is="dom-if" if="[[!isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[selectedItem]]" on-selected-changed="updateSelectedItemFromBinding" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-repeat" items="[[data.answerCards]]" class="style-scope yt-survey-flow-step-renderer">\n      <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n        <tp-yt-paper-radio-button id="radio" aria-label="[[getSimpleString(item.surveyAnswerCardRenderer.answerString)]]" name="[[item.surveyAnswerCardRenderer]]" no-ink="" class="style-scope yt-survey-flow-step-renderer">\n          <yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[item.surveyAnswerCardRenderer.answerString]]" class="style-scope yt-survey-flow-step-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;xlj===void 0&&(xlj=document.createElement("template"));var c=xlj;K.call(H,c.content.cloneNode(!0),d.content.firstChild);nGb=d}d=nGb;return d},{mode:2});var zh=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return d};
_.m(zh,_.B);zh.prototype.handleSurveyFlowStepOptionChanged=function(d){this.ytdReduxBehavior.dispatch(_.iZ({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:d}));_.oF(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:d}}])};
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],zh.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],zh.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],zh.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],zh);
_.T(zh,"ytd-survey-flow-step-renderer",function(){if(a7t!==void 0)return a7t;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-survey-flow-step-renderer data="[[data]]" class="style-scope ytd-survey-flow-step-renderer"></yt-survey-flow-step-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return a7t=d},{mode:1});var lYO=_.qSU({avatarViewModel:_.JV,buttonViewModel:_.xk,subscribeButtonViewModel:_.JI,imageBannerViewModel:_.St});_.p5(k9Z);var UlZ;
UlZ=_.H1(function(d){var H=d.data;var K=d.hideDivider;var c=d.isChannelInfoCard;d={};return _.x("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.x("div",{class:_.xM("yt-profile-identity-info-view-model-wiz__frame",(d["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=function(){return!H().channelBanner},d))},_.x(Ct1,{profileIdentityInfoData:H}),_.x("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},_.x("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},
_.x(_.wB,{data:function(){return H().avatar}},{avatarViewModel:_.JV})),_.x(RLt,{profileIdentityInfoData:H})),_.x(_.n,{cond:function(){return H().channelDescription},
then:function(p){var g={};return _.x("div",{class:_.xM((g["yt-profile-identity-info-view-model-wiz__channel-description-alternate"]=function(){return!(c==null||!c())},g["yt-profile-identity-info-view-model-wiz__channel-description"]=function(){return!(c==null?0:c())},g))},p)}}),_.x(V7b,{profileIdentityInfoData:H}),_.x(_.n,{cond:function(){return!(K==null?0:K())},
then:function(){return _.x("div",{class:"yt-profile-identity-info-view-model-wiz__divider"})}})))},"vf");
_.hLv=_.h("web_enable_sink_profile_card_batch_ks")?k9Z:UlZ;_.Lwv=_.h("web_enable_sink_profile_card_batch_ks")?_.Rd(k9Z):UlZ;UlZ.idomCompat=!0;
var V7b=_.H1(function(d){var H=d.profileIdentityInfoData;return _.x("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},_.x(_.L6,{each:function(){return H().subscribeButton?[H().subscribeButton,H().channelAccess]:[H().channelAccess]}},function(K){return _.x("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.x("div",{class:"yt-profile-identity-info-view-model-wiz--button"},_.x(_.wB,{data:function(){return K}},{buttonViewModel:_.xk,
subscribeButtonViewModel:_.JI})))}))},"wf"),RLt=_.H1(function(d){var H=d.profileIdentityInfoData;
return _.x("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},_.x("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},_.x(M7t,{profileIdentityInfoData:H}),_.x(_.wB,{data:function(){return H().threeDotMenu}},{buttonViewModel:_.xk})),_.x(mlS,{profileIdentityInfoData:H}))},"xf"),M7t=_.H1(function(d){var H=d.profileIdentityInfoData;
return _.x("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.x("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},function(){return H().channelDisplayName}),_.x(_.n,{cond:function(){return H().verifiedOrOacBadge},
then:function(K){return _.x("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.x(_.d7,{data:function(){return{thumbnails:[{url:K().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"yf"),Ct1=_.H1(function(d){var H=d.profileIdentityInfoData;
return _.x("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},_.x(_.wB,{data:function(){var K=H().channelBanner;if(K)return{imageBannerViewModel:{image:K.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(K){return _.x("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},_.x(_.St,{data:K.data,
isPositionRelative:!0}))}}))},"zf"),mlS=_.H1(function(d){var H=d.profileIdentityInfoData;
return _.x("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.x("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.x("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},function(){return H().channelHandle}),_.x(_.n,{cond:function(){return H().channelPronouns&&H().channelHandle},
then:function(){return _.x("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022")}}),_.x("div",{dir:"auto",
class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},function(){return H().channelPronouns})),_.x("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.x("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},function(){return H().leftOfBulletInfo}),_.x(_.n,{cond:function(){return H().leftOfBulletInfo&&H().rightOfBulletInfo},
then:function(){return _.x("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022")}}),_.x("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},function(){return H().rightOfBulletInfo})))},"Af");var wMb;var X0=function(){return _.B.apply(this,arguments)||this};
_.m(X0,_.B);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],X0.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],X0.prototype,"data",void 0);_.t([_.Z({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],X0);
_.T(X0,"ytd-channel-history-renderer",function(){if(wMb!==void 0)return wMb;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-history-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-history-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope ytd-channel-history-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n</div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return wMb=d},{mode:1});var Ptb;var up0=function(){return _.B.apply(this,arguments)||this};
_.m(up0,_.B);_.t([_.r(),_.O("design:type",Object)],up0.prototype,"data",void 0);_.t([_.Z({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],up0);
_.T(up0,"ytd-feature-enablement-info-renderer",function(){if(Ptb!==void 0)return Ptb;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feature-enablement-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-feature-enablement-info-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n</div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Ptb=d},{mode:1});var I70;var r5g;var J2=function(){var d=_.B.apply(this,arguments)||this;d.textBoxMaxLength=_.h("enable_tvod_campaign_code_integration")?15:12;return d};
_.m(J2,_.B);_.G=J2.prototype;_.G.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.G.onSubmit=function(){var d=this.data.serviceEndpoint,H=_.M(d,_.vI);H&&d&&(H.couponCode=this.userInput,_.Kj().resolve(_.cb).resolveCommand(d,{form:{element:this.hostElement}}))};
_.G.validate=function(){var d=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=d&&!this.data.errorMessage;this.showErrorMessage=d&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.h("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.G.computeStyle=function(d){return d};
_.G.computeShowValidationBelowInput=function(d){return d!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.G.updateUserInputFromBinding=function(d){this.userInput=d.currentTarget.value};
_.G.updateShowErrorMessageFromBinding=function(d){this.showErrorMessage=d.detail.value};
_.H3.Object.defineProperties(J2.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
J2.prototype.dataChanged=J2.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],J2.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],J2.prototype,"userInput",void 0);_.t([_.r(),_.O("design:type",Boolean)],J2.prototype,"disableApplyButton",void 0);_.t([_.r(),_.O("design:type",Boolean)],J2.prototype,"hideApplyButton",void 0);
_.t([_.r(),_.O("design:type",Boolean)],J2.prototype,"hideErrorMessage",void 0);_.t([_.r(),_.O("design:type",Boolean)],J2.prototype,"showTick",void 0);_.t([_.r(),_.O("design:type",Boolean)],J2.prototype,"showErrorMessage",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.O("design:type",String)],J2.prototype,"couponStyle",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.O("design:type",Boolean)],J2.prototype,"showValidationBelowInput",void 0);_.t([_.r(),_.O("design:type",Object)],J2.prototype,"textBoxMaxLength",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],J2.prototype,"dataChanged",null);
_.t([_.I("showTick","showErrorMessage","userInput"),_.O("design:type",String),_.O("design:paramtypes",[])],J2.prototype,"validationState",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],J2);
_.T(J2,"ytd-ypc-coupon-renderer",function(){if(r5g!==void 0)return r5g;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-coupon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-ypc-coupon-renderer">\n  <tp-yt-paper-input-container class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" invalid="[[showErrorMessage]]" use-v2-underline="" on-invalid-changed="updateShowErrorMessageFromBinding">\n    <input id="input" maxlength$="[[textBoxMaxLength]]" autocomplete="off" placeholder="[[data.boxHint]]" value="[[userInput]]" on-keyup="validate" slot="input" on-input="updateUserInputFromBinding" class="style-scope ytd-ypc-coupon-renderer">\n    <tp-yt-paper-input-error slot="add-on" aria-live="assertive" hidden="[[!showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n      [[data.errorMessage]]\n    </tp-yt-paper-input-error>\n  </tp-yt-paper-input-container>\n</div>\n\n<div id="validation" class="style-scope ytd-ypc-coupon-renderer">\n  <div hidden="[[showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showErrorMessage]]">\n      [[data.errorMessage]]\n    </div>\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]">\n      [[data.successMessage]]\n    </div>\n  </div>\n  <yt-icon-button class="confirmation style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]" noink="">\n    <yt-icon icon="check" class="style-scope ytd-ypc-coupon-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n\n<ytd-button-renderer id="apply" data="[[data.applyCoupon.buttonRenderer]]" disabled="[[disableApplyButton]]" hidden="[[hideApplyButton]]" on-tap="onSubmit" class="style-scope ytd-ypc-coupon-renderer">\n</ytd-button-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return r5g=d},{mode:1});var sk=function(){return _.B.apply(this,arguments)||this};
_.m(sk,_.B);sk.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.couponRenderer":{id:"coupon-renderer",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}}}};
sk.prototype.computeStyle=function(d){return d};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],sk.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],sk.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],sk.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.O("design:type",String)],sk.prototype,"buttonStyle",void 0);_.t([_.Z({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],sk);
_.T(sk,"ytd-flow-bottom-bar-renderer",function(){if(I70!==void 0)return I70;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="coupon-renderer" hidden="[[!data.couponRenderer]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="secondary-button" hidden="[[!data.secondaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="primary-button" hidden="[[!data.primaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return I70=d},{mode:1});var Ww5;var BFt;var zLv;var F0=function(){return _.B.apply(this,arguments)||this};
_.m(F0,_.B);F0.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
F0.prototype.focus=function(d){this.title&&_.D7(this.title,d)};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],F0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],F0.prototype,"data",void 0);_.t([_.VP("#title"),_.O("design:type",HTMLElement)],F0.prototype,"title",void 0);_.t([_.Z({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],F0);
_.T(F0,"ytd-flow-top-bar-renderer",function(){if(zLv!==void 0)return zLv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="back-button" class="style-scope ytd-flow-top-bar-renderer"></div>\n<div id="content" class="style-scope ytd-flow-top-bar-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n</div>\n<div id="trailing-buttons" class="style-scope ytd-flow-top-bar-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return zLv=d},{mode:1});var XMZ;var J5G;var sv0;var ZH=function(){return _.B.apply(this,arguments)||this};
_.m(ZH,_.B);ZH.prototype.freeTextValueChanged=function(){_.oF(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
ZH.prototype.updateFreeTextValueFromBinding=function(d){this.freeTextValue=d.detail.value};
_.H3.Object.defineProperties(ZH.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var d,H,K=(H=(d=this.data)==null?void 0:d.responseMaxLength)!=null?H:500,c;return((c=this.freeTextValue)!=null?c:"").length>=K?"maxed-out":""}}});
ZH.prototype.freeTextValueChanged=ZH.prototype.freeTextValueChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ZH.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],ZH.prototype,"freeTextValue",void 0);_.t([_.VP("#user-input"),_.O("design:type",HTMLTextAreaElement)],ZH.prototype,"input",void 0);
_.t([_.I("freeTextValue"),_.O("design:type",Object),_.O("design:paramtypes",[])],ZH.prototype,"characterLimitClass",null);_.t([_.CK("freeTextValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ZH.prototype,"freeTextValueChanged",null);_.t([_.ZV({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],ZH);
_.T(ZH,"yt-free-text-input-flow-step-renderer",function(){if(sv0===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_free_text_input_flow_step_renderer.yt.free.text.input.flow.step.renderer.css.js--\x3e<div id="question-container" class="style-scope yt-free-text-input-flow-step-renderer"><yt-formatted-string id="question" split-lines="1" text="[[data.question]]" class="style-scope yt-free-text-input-flow-step-renderer"></yt-formatted-string></div><div id="input-area" class="style-scope yt-free-text-input-flow-step-renderer"><tp-yt-paper-textarea id="user-input" class$="[[characterLimitClass]] style-scope yt-free-text-input-flow-step-renderer" char-counter="" label="[[getSimpleString(data.questionExplanation)]]" maxlength="[[data.responseMaxLength]]" placeholder="[[data.placeholderText]]" required="" rows="2" value="[[freeTextValue]]" on-value-changed="updateFreeTextValueFromBinding"></tp-yt-paper-textarea></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;J5G===void 0&&(J5G=document.createElement("template"));var c=J5G;K.call(H,c.content.cloneNode(!0),d.content.firstChild);sv0=d}d=sv0;return d},{mode:2});var Th=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return d};
_.m(Th,_.B);Th.prototype.handleFreeTextFlowStepInputChanged=function(d){_.oF(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:d}}])};
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Th.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Th.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Th.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Th);
_.T(Th,"ytd-free-text-input-flow-step-renderer",function(){if(XMZ!==void 0)return XMZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-free-text-input-flow-step-renderer data="[[data]]" class="style-scope ytd-free-text-input-flow-step-renderer"></yt-free-text-input-flow-step-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return XMZ=d},{mode:1});var FwT;var Z4g;var TFq=function(){return _.B.apply(this,arguments)||this};
_.m(TFq,_.B);_.t([_.r(),_.O("design:type",Object)],TFq.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],TFq);
_.T(TFq,"ytd-metadata-line-renderer",function(){if(Z4g!==void 0)return Z4g;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-line-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="line-wrapper" class="style-scope ytd-metadata-line-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badge]]" hidden="[[!data.badge]]" class="style-scope ytd-metadata-line-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-metadata-line-renderer"></yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Z4g=d},{mode:1});var Qh=function(){return _.B.apply(this,arguments)||this};
_.m(Qh,_.B);Qh.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Qh.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Qh.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Qh.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Qh.prototype,"isMasthead",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Qh);
_.T(Qh,"ytd-media-product-renderer",function(){if(FwT!==void 0)return FwT;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product" class="style-scope ytd-media-product-renderer">\n  <div id="image" hidden="[[!data.thumbnail]]" class="style-scope ytd-media-product-renderer">\n    <yt-img-shadow id="thumbnail" height="90" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-product-renderer"></yt-img-shadow>\n  </div>\n  <div id="metadata" class="style-scope ytd-media-product-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-product-renderer"></yt-formatted-string>\n    <div id="metadata-lines" class="style-scope ytd-media-product-renderer"></div>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return FwT=d},{mode:1});var QvZ;var t2=function(){return _.B.apply(this,arguments)||this};
_.m(t2,_.B);t2.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
t2.prototype.onBillboardImageLoaded=function(){_.GT(this.hostElement,"yt-refit")};
t2.prototype.onBillboardImageLoaded=t2.prototype.onBillboardImageLoaded;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],t2.prototype,"data",void 0);_.t([_.VP("#billboardImage"),_.O("design:type",Object)],t2.prototype,"billboardImage",void 0);_.t([_.nK("yt-img-shadow-loaded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],t2.prototype,"onBillboardImageLoaded",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],t2);
_.T(t2,"ytd-billboard-masthead-renderer",function(){if(QvZ!==void 0)return QvZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-billboard-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="billboardImage" class="billboard with-placeholder style-scope ytd-billboard-masthead-renderer" fit="" thumbnail="[[data.billboard]]">\n</yt-img-shadow>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return QvZ=d},{mode:1});var t7b;var YB=function(){var d=_.B.apply(this,arguments)||this;d.smallSize=!1;return d};
_.m(YB,_.B);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],YB.prototype,"ytComponentBehaviorType",void 0);_.t([_.r(),_.O("design:type",Object)],YB.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],YB.prototype,"smallSize",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],YB);
_.T(YB,"ytd-bullet-formatted-string",function(){if(t7b!==void 0)return t7b;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-bullet-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="bullet-icon style-scope ytd-bullet-formatted-string" hidden="[[!data.icon.iconType]]" icon="[[computeIcon_(data.icon)]]">\n</yt-icon>\n<yt-formatted-string class="text style-scope ytd-bullet-formatted-string" split-lines="true" text="[[data.text]]">\n</yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return t7b=d},{mode:1});var YXj;var Ok=function(){return _.B.apply(this,arguments)||this};
_.m(Ok,_.B);Ok.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ok.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Ok.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ok.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],Ok);
_.T(Ok,"ytd-offer-detail-renderer",function(){if(YXj!==void 0)return YXj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="description style-scope ytd-offer-detail-renderer" split-lines="true" text="[[data.description]]">\n</yt-formatted-string>\n<div id="product" hidden="[[!data.product]]" class="style-scope ytd-offer-detail-renderer"></div>\n<div class="benefits style-scope ytd-offer-detail-renderer">\n    <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-detail-renderer">\n      <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-detail-renderer" data="[[benefit]]">\n      </ytd-bullet-formatted-string>\n    </template>\n</div>\n<yt-formatted-string class="terms style-scope ytd-offer-detail-renderer" force-default-style="" text="[[data.terms]]">\n</yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return YXj=d},{mode:1});var O4Z;var Sa=function(){return _.B.apply(this,arguments)||this};
_.m(Sa,_.B);Sa.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Sa.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Sa.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Sa.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],Sa);
_.T(Sa,"ytd-offer-detail-step-renderer",function(){if(O4Z!==void 0)return O4Z;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-detail-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-detail-step-renderer"></div>\n\n\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return O4Z=d},{mode:1});var SXU;var Ek=function(){var d=_.B.apply(this,arguments)||this;d.isInOfferModule=!1;return d};
_.m(Ek,_.B);_.G=Ek.prototype;_.G.computeHasEndpoint=function(){var d;return!((d=this.data)==null||!d.onClickCommand)};
_.G.dataChanged=function(){var d;if((d=this.data)==null?0:d.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.G.detached=function(){var d;if((d=this.data)==null?0:d.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.G.handleClickEvent=function(){var d;if((d=this.data)==null?0:d.onClickCommand){var H;this.componentBehavior.resolveCommand((H=this.data)==null?void 0:H.onClickCommand)}};
_.G.onContentKeyDown=function(d){d.key==="Enter"?this.handleClickEvent(d):d.key===" "&&d.preventDefault()};
_.G.onContentKeyUp=function(d){d.key===" "&&this.handleClickEvent(d)};
Ek.prototype.dataChanged=Ek.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Ek.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ek.prototype,"data",void 0);_.t([_.r({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Ek.prototype,"hasEndpoint",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ek.prototype,"isInOfferModule",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ek.prototype,"dataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Ek);
_.T(Ek,"ytd-channel-masthead-renderer",function(){if(SXU!==void 0)return SXU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-channel-masthead-renderer">\n  <yt-image class="channel-masthead style-scope ytd-channel-masthead-renderer" data="[[data.image]]" height="1" width="1">\n  </yt-image>\n  <div class="text style-scope ytd-channel-masthead-renderer">\n    <yt-attributed-string class="title style-scope ytd-channel-masthead-renderer" data="[[data.title]]">\n    </yt-attributed-string>\n    <yt-attributed-string class="subtitle style-scope ytd-channel-masthead-renderer" data="[[data.subtitle]]">\n    </yt-attributed-string>\n  </div>\n</div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return SXU=d},{mode:1});var EGZ;var yh=function(){var d=_.B.apply(this,arguments)||this;d.thumbnailObjectFit="CONTAIN";d.thumbnailObjectPosition="LEFT";d.isExpanded=!1;return d};
_.m(yh,_.B);_.G=yh.prototype;_.G.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.G.dataChanged=function(){this.resetStates()};
_.G.computeisTapOnOfferInfoContainerEnabled=function(){var d;return((d=this.data)==null?void 0:d.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.G.onExpandBtnClick=function(){var d,H=_.M((d=this.data)==null?void 0:d.showMoreButtonRenderer,i4T);H&&_.nU(_.hR(),H.trackingParams);this.isExpanded=!this.isExpanded};
_.G.onOfferInfoClick=function(d){this.isTapOnOfferInfoContainerEnabled&&(_.vg(_.jh(d)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.dB(_.jh(d)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.G.onBottomBarClick=function(){this.executeTapCommand()};
_.G.executeTapCommand=function(){var d,H=(d=this.data)==null?void 0:d.tapCommand;H&&this.ytComponentBehavior.resolveCommand(H)};
_.G.resetStates=function(){this.isExpanded=!1};
_.H3.Object.defineProperties(yh.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var d=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),H,K,c;return((H=this.data)==null?void 0:H.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&d&&!!((K=this.data)==null?0:(c=K.benefits)==null?0:c.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return((H=_.M((d=this.data)==null?void 0:d.showMoreButtonRenderer,i4T))==null?void 0:H.showMoreButtonTitle)||((K=this.data)==null?void 0:K.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return((H=_.M((d=this.data)==null?void 0:d.showMoreButtonRenderer,i4T))==null?void 0:H.showLessButtonTitle)||((K=this.data)==null?void 0:K.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var d;return(d=this.showLessButtonTitle)!=null?d:""}var H;return(H=this.showMoreButtonTitle)!=null?H:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return((d=this.data)==null?void 0:d.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((H=this.data)==null?0:H.footerTitle)||((K=this.data)==null?0:K.footerSubtitle))}}});
yh.prototype.dataChanged=yh.prototype.dataChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],yh.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],yh.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",String)],yh.prototype,"thumbnailObjectFit",void 0);
_.t([_.r(),_.O("design:type",String)],yh.prototype,"thumbnailObjectPosition",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.O("design:type",Boolean)],yh.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.t([_.r(),_.O("design:type",Object)],yh.prototype,"isExpanded",void 0);_.t([_.r(),_.O("design:type",Object)],yh.prototype,"data",void 0);_.t([_.r({computed:"computeIcon_(data.footerIcon)"}),_.O("design:type",String)],yh.prototype,"icon",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yh.prototype,"dataChanged",null);_.t([_.I("data.thumbnail"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],yh.prototype,"hasThumbnail",null);_.t([_.I("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],yh.prototype,"enableExpandButton",null);
_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],yh.prototype,"enableOfferContentIcon",null);_.t([_.I("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.O("design:type",Object),_.O("design:paramtypes",[])],yh.prototype,"showMoreButtonTitle",null);_.t([_.I("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.O("design:type",Object),_.O("design:paramtypes",[])],yh.prototype,"showLessButtonTitle",null);
_.t([_.I("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.O("design:type",String),_.O("design:paramtypes",[])],yh.prototype,"expandedBtnText",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],yh.prototype,"enableBottomBar",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],yh);
_.T(yh,"ytd-offer-card-renderer",function(){if(EGZ!==void 0)return EGZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-card style-scope ytd-offer-card-renderer" id="offer-card">\n  \n  <div class="top-banner style-scope ytd-offer-card-renderer" id="top-banner" hidden="[[!data.topBannerImage]]">\n    <yt-img-shadow class="top-banner-image style-scope ytd-offer-card-renderer" object-fit="COVER" thumbnail="[[data.topBannerImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="offer-info style-scope ytd-offer-card-renderer" id="offer-info" on-click="onOfferInfoClick">\n    \n    <div class="thumbnail style-scope ytd-offer-card-renderer" id="thumbnail" hidden="[[!hasThumbnail]]"></div>\n    <div class="description-section style-scope ytd-offer-card-renderer">\n      <div class="text style-scope ytd-offer-card-renderer">\n        <yt-formatted-string class="title style-scope ytd-offer-card-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="description style-scope ytd-offer-card-renderer" split-lines="true" text="[[data.description]]">\n        </yt-formatted-string>\n      </div>\n      <button class="expand-button style-scope ytd-offer-card-renderer" id="expand-button" hidden="[[!enableExpandButton]]" on-click="onExpandBtnClick" aria-label="[[expandedBtnText]]">\n        <span class="style-scope ytd-offer-card-renderer">[[expandedBtnText]]</span>\n      </button>\n      <div class="offer-content-icon-div style-scope ytd-offer-card-renderer" id="offer-content-icon-div" hidden="[[!enableOfferContentIcon]]">\n        <yt-icon id="offer-content-icon" class="offer-content-icon style-scope ytd-offer-card-renderer" icon="[[icon]]">\n        </yt-icon>\n      </div>\n    </div>\n    \n    <div class="benefits style-scope ytd-offer-card-renderer" id="benefits" hidden="[[!isExpanded]]">\n      <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-card-renderer">\n        <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-card-renderer" data="[[benefit]]" small-size="true">\n        </ytd-bullet-formatted-string>\n      </template>\n    </div>\n  </div>\n  \n  <button class="bottom-bar style-scope ytd-offer-card-renderer" id="bottom-bar" hidden="[[!enableBottomBar]]" on-click="onBottomBarClick" aria-label="[[data.footerTitle]]">\n    <div class="bottom-bar-info style-scope ytd-offer-card-renderer">\n      <yt-formatted-string class="bottom-bar-title style-scope ytd-offer-card-renderer" text="[[data.footerTitle]]"></yt-formatted-string>\n      <yt-formatted-string class="bottom-bar-subtitle style-scope ytd-offer-card-renderer" text="[[data.footerSubtitle]]"></yt-formatted-string>\n    </div>\n    <yt-icon class="icon style-scope ytd-offer-card-renderer" icon="[[icon]]"></yt-icon>\n  </button>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return EGZ=d},{mode:1});var y5t;var b4=function(){return _.B.apply(this,arguments)||this};
_.m(b4,_.B);b4.prototype.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]"}}}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
b4.prototype.onClick=function(d){if(!_.vg(d.composedPath()||[],this.hostElement,["A".toString()])){var H,K;if((d=(K=_.M((H=this.data)==null?void 0:H.actionButton,_.Tz))==null?void 0:K.command)&&!this.ytComponentBehavior.resolveCommand(d)){var c;(c=_.hR())==null||c.clickCommand(d);_.Kj().resolve(_.cb).resolveCommand(d,{form:{element:this.hostElement}})}}};
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],b4.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],b4.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],b4.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],b4);
_.T(b4,"ytd-offer-content-renderer",function(){if(y5t!==void 0)return y5t;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-info style-scope ytd-offer-content-renderer">\n  <div class="offer-content style-scope ytd-offer-content-renderer" id="offer-content" on-click="onClick">\n    <div id="thumbnail" class="style-scope ytd-offer-content-renderer"></div>\n    <div class="text style-scope ytd-offer-content-renderer">\n      <yt-formatted-string class="title style-scope ytd-offer-content-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="description style-scope ytd-offer-content-renderer" split-lines="true" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="action-button" class="style-scope ytd-offer-content-renderer"></div>\n</div>\n<div class="benefits style-scope ytd-offer-content-renderer">\n  <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-content-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-content-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n  </template>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return y5t=d},{mode:1});var b4t;var N1=function(){return _.B.apply(this,arguments)||this};
_.m(N1,_.B);N1.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.H3.Object.defineProperties(N1.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var d,H;return!((d=this.data)==null||!d.title)||!((H=this.data)==null||!H.description)}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],N1.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],N1.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],N1.prototype,"data",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],N1.prototype,"hasHeaderData",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],N1);
_.T(N1,"ytd-offer-section-renderer",function(){if(b4t!==void 0)return b4t;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="heading style-scope ytd-offer-section-renderer" hidden="[[!hasHeaderData]]">\n  <yt-formatted-string class="title style-scope ytd-offer-section-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="description style-scope ytd-offer-section-renderer" split-lines="" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div id="offer-list" class="style-scope ytd-offer-section-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return b4t=d},{mode:1});var NFT;var DH=function(){return _.B.apply(this,arguments)||this};
_.m(DH,_.B);
DH.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],DH.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],DH);
_.T(DH,"ytd-offer-selection-step-renderer",function(){if(NFT!==void 0)return NFT;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-selection-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="coupon-section" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="terms-section" class="style-scope ytd-offer-selection-step-renderer"></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return NFT=d},{mode:1});var DlT;var fC=function(){return _.B.apply(this,arguments)||this};
_.m(fC,_.B);fC.prototype.computeStyle=function(d){return d};
fC.prototype.computeImageWidth=function(d){return d==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.t([_.r({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.O("design:type",String)],fC.prototype,"containerStyle",void 0);_.t([_.r({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.O("design:type",String)],fC.prototype,"imageWidth",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],fC.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],fC.prototype,"data",void 0);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],fC);
_.T(fC,"ytd-confirmation-masthead-renderer",function(){if(DlT!==void 0)return DlT;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-confirmation-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow class="thumbnail style-scope ytd-confirmation-masthead-renderer" thumbnail="[[data.thumbnail]]" width="[[imageWidth]]"></yt-img-shadow>\n<yt-icon class="entitlement-icon style-scope ytd-confirmation-masthead-renderer" hidden="[[!data.entitlementIcon.iconType]]" icon="[[data.entitlementIcon.iconType]]">\n</yt-icon>\n\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return DlT=d},{mode:1});var f7g;var A2=function(){return _.B.apply(this,arguments)||this};
_.m(A2,_.B);A2.prototype.computeStyle=function(d){return d};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],A2.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.O("design:type",String)],A2.prototype,"containerStyle",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],A2);
_.T(A2,"ytd-purchase-complete-detail-renderer",function(){if(f7g!==void 0)return f7g;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.description]]" as="description" class="style-scope ytd-purchase-complete-detail-renderer">\n    <yt-formatted-string class="description style-scope ytd-purchase-complete-detail-renderer" split-lines="true" text="[[description]]">\n    </yt-formatted-string>\n</template>\n<template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-purchase-complete-detail-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-purchase-complete-detail-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n</template>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return f7g=d},{mode:1});var A5g;var ja=function(){var d=_.B.apply(this,arguments)||this;d.scriptsAppended=!1;return d};
_.m(ja,_.B);ja.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{confirmationMastheadRenderer:"ytd-confirmation-masthead-renderer"}},"data.body":{id:"body",mapping:{purchaseCompleteDetailRenderer:"ytd-purchase-complete-detail-renderer"}}}};
ja.prototype.onDataChanged=function(){var d=this.get("data.gtmId");d&&(_.Bm(d,_.Fm("GL","")),this.setupConversionTracking())};
ja.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var d=document.createElement("noscript");d.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5KBDVVN" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(d);this.scriptsAppended=!0}};
ja.prototype.onDataChanged=ja.prototype.onDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ja.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ja.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ja.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],ja.prototype,"scriptsAppended",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ja.prototype,"onDataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],ja);
_.T(ja,"ytd-purchase-complete-step-renderer",function(){if(A5g!==void 0)return A5g;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-purchase-complete-step-renderer"></div>\n<div id="body" class="style-scope ytd-purchase-complete-step-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return A5g=d},{mode:1});var jvj;var vH=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");return d};
_.m(vH,_.B);vH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],vH.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],vH.prototype,"darkerDarkTheme",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],vH);
_.T(vH,"ytd-ypc-transaction-error-message-renderer",function(){if(jvj!==void 0)return jvj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-transaction-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div class="error-messages style-scope ytd-ypc-transaction-error-message-renderer">\n  <template is="dom-repeat" items="[[data.errorMessages]]" as="message" class="style-scope ytd-ypc-transaction-error-message-renderer">\n    <yt-formatted-string text="[[message]]" class="style-scope ytd-ypc-transaction-error-message-renderer"></yt-formatted-string>\n  </template>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return jvj=d},{mode:1});var vGT;var deg;var d_=function(){var d=_.B.apply(this,arguments)||this;d.handlePhoneVerificationSuccess=function(H){if(d.isValidPhoneVerificationCompletionMessageEvent(H)){var K;((K=d.data)==null?0:K.nextStepCommand)&&d.ytComponentBehavior.resolveCommand(d.data.nextStepCommand)}};
return d};
_.m(d_,_.B);d_.prototype.isValidPhoneVerificationCompletionMessageEvent=function(d){if(d.data!=="yt-phone-verification-complete")return!1;d=_.jD(d.origin);return d!==null&&d.includes("youtube.com")};
d_.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
d_.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],d_.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],d_.prototype,"data",void 0);_.t([_.ZV({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],d_);
_.T(d_,"yt-feature-enablement-soft-entry-renderer",function(){if(deg===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-feature-enablement-soft-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.feature_enablement.yt_feature_enablement_soft_entry_renderer.yt.feature.enablement.soft.entry.renderer.css.js--\x3e<div id="contents" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;vGT===void 0&&(vGT=document.createElement("template"));var c=vGT;K.call(H,c.content.cloneNode(!0),d.content.firstChild);deg=d}d=deg;return d},{mode:1});var Hnq;var $eT;var Kfj;var cfZ;var pdU=function(){return _.B.apply(this,arguments)||this};
_.m(pdU,_.B);_.t([_.r(),_.O("design:type",Object)],pdU.prototype,"data",void 0);_.t([_.ZV({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],pdU);
_.T(pdU,"yt-benefits-item-renderer",function(){if(cfZ===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_item_renderer.yt.benefits.item.renderer.css.js--\x3e<div id="benefits-item" class="style-scope yt-benefits-item-renderer"><yt-formatted-string id="benefits-item-title" class="lhs style-scope yt-benefits-item-renderer" text="[[data.title]]"></yt-formatted-string><yt-formatted-string id="benefits-item-info-text" class="rhs style-scope yt-benefits-item-renderer" hidden="[[!data.text]]" text="[[data.text]]"></yt-formatted-string><yt-button-renderer id="benefits-item-info-button" class="rhs style-scope yt-benefits-item-renderer" data="[[data.button.buttonRenderer]]" hidden="[[!data.button.buttonRenderer]]"></yt-button-renderer></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;Kfj===void 0&&(Kfj=document.createElement("template"));var c=Kfj;K.call(H,c.content.cloneNode(!0),d.content.firstChild);cfZ=d}d=cfZ;return d},{mode:2});var grZ;var inU;var H0=function(){return _.B.apply(this,arguments)||this};
_.m(H0,_.B);H0.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
H0.prototype.computeisWithoutPadding=function(){var d;return((d=this.data)==null?void 0:d.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],H0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],H0.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.O("design:type",Boolean)],H0.prototype,"isWithoutPadding",void 0);_.t([_.ZV({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],H0);
_.T(H0,"yt-benefits-section-renderer",function(){if(inU===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_section_renderer.yt.benefits.section.renderer.css.js--\x3e<div id="benefits-section" is-without-padding$="[[isWithoutPadding]]" class="style-scope yt-benefits-section-renderer"><div id="benefits-header" hidden$="[[!data.header]]" class="style-scope yt-benefits-section-renderer"><yt-formatted-string id="benefits-header-text" split-lines="1" text="[[data.header]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string><div hidden="[[!data.tooltip]]" class="style-scope yt-benefits-section-renderer"><yt-icon id="tooltip-icon" icon="yt-icons:info-outline" class="style-scope yt-benefits-section-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" always-display="" class="style-scope yt-benefits-section-renderer"><yt-formatted-string split-lines="1" text="[[data.tooltip]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string></tp-yt-paper-tooltip></div></div><div id="benefits-items" class="style-scope yt-benefits-section-renderer"></div></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;grZ===void 0&&(grZ=document.createElement("template"));var c=grZ;K.call(H,c.content.cloneNode(!0),d.content.firstChild);inU=d}d=inU;return d},{mode:2});var $H=function(){return _.B.apply(this,arguments)||this};
_.m($H,_.B);$H.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
$H.prototype.computeisUsingLargeWidth=function(){var d;return((d=this.data)==null?void 0:d.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],$H.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],$H.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.O("design:type",Boolean)],$H.prototype,"isUsingLargeWidth",void 0);_.t([_.ZV({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],$H);
_.T($H,"yt-benefits-flow-step-renderer",function(){if($eT===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_flow_step_renderer.yt.benefits.flow.step.renderer.css.js--\x3e<div id="header-container" class="style-scope yt-benefits-flow-step-renderer"><yt-img-shadow id="avatar" height="72" hidden$="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="72" class="style-scope yt-benefits-flow-step-renderer"></yt-img-shadow><div id="header-content" class="style-scope yt-benefits-flow-step-renderer"><yt-formatted-string id="subtitle-text" hidden$="[[!data.subtitleText]]" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string><yt-formatted-string id="title-text" hidden$="[[!data.titleText]]" split-lines="1" text="[[data.titleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string></div></div><div id="benefits-sections" class="style-scope yt-benefits-flow-step-renderer"></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;Hnq===void 0&&(Hnq=document.createElement("template"));var c=Hnq;K.call(H,c.content.cloneNode(!0),d.content.firstChild);$eT=d}d=$eT;return d},{mode:2});var G5O;var orq;var KR=function(){return _.B.apply(this,arguments)||this};
_.m(KR,_.B);KR.prototype.checkIsUsingLargeWidth=function(){var d;return((d=this.data)==null?void 0:d.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.t([_.r(),_.O("design:type",Object)],KR.prototype,"data",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);_.t([_.r({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.O("design:type",Boolean)],KR.prototype,"isUsingLargeWidth",void 0);_.t([_.ZV({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],KR);
_.T(KR,"yt-confirmation-flow-step-renderer",function(){if(orq===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_confirmation_flow_step_renderer.yt.confirmation.flow.step.renderer.css.js--\x3e<div id="thumbnail-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-img-shadow id="thumbnail" height="209" thumbnail="[[data.image]]" width="209" class="style-scope yt-confirmation-flow-step-renderer"></yt-img-shadow></div><div id="title-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="subtitle" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;G5O===void 0&&(G5O=document.createElement("template"));var c=G5O;K.call(H,c.content.cloneNode(!0),d.content.firstChild);orq=d}d=orq;return d},{mode:2});var qDb;var azZ;var lzG=function(){return _.B.apply(this,arguments)||this};
_.m(lzG,_.B);_.t([_.r(),_.O("design:type",Object)],lzG.prototype,"data",void 0);_.t([_.ZV({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],lzG);
_.T(lzG,"yt-info-flow-step-renderer",function(){if(azZ===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_flow_step_renderer.yt.info.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-text-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="subtitle-text" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;qDb===void 0&&(qDb=document.createElement("template"));var c=qDb;K.call(H,c.content.cloneNode(!0),d.content.firstChild);azZ=d}d=azZ;return d},{mode:2});var eit;var k5v;var xeq=function(){return _.B.apply(this,arguments)||this};
_.m(xeq,_.B);_.t([_.r(),_.O("design:type",Object)],xeq.prototype,"data",void 0);_.t([_.ZV({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],xeq);
_.T(xeq,"yt-info-list-flow-step-renderer",function(){if(k5v===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-list-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_list_flow_step_renderer.yt.info.list.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-list-header-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="info-list-header" force-default-style="" split-lines="1" text="[[data.infoListHeader]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-items-container" class="style-scope yt-info-list-flow-step-renderer"><template is="dom-repeat" items="[[data.infoItems]]" as="item" class="style-scope yt-info-list-flow-step-renderer"><div id="info-list-item" class="style-scope yt-info-list-flow-step-renderer"><yt-icon id="info-icon" icon="[[item.icon.iconType]]" class="style-scope yt-info-list-flow-step-renderer"></yt-icon><yt-formatted-string id="info-text" split-lines="1" text="[[item.text]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div></template></div><div id="description-text-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="description-text" split-lines="1" text="[[data.descriptionText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;eit===void 0&&(eit=document.createElement("template"));var c=eit;K.call(H,c.content.cloneNode(!0),d.content.firstChild);k5v=d}d=k5v;return d},{mode:2});var nrZ=_.H1(function(d){var H=d.data;return _.x("styled-text-view-model",{class:_.xM("ytStyledTextViewModelHost",function(){return umt(H().fontAttributes)},function(){return PUZ(H().color)})},_.x(_.j$,{text:function(){return H().text},
ariaLabel:function(){var K,c,p;return(p=(K=H().accessibility)==null?void 0:(c=K.accessibilityData)==null?void 0:c.label)!=null?p:""}}))},"Bf");
nrZ.idomCompat=!0;var CwT=_.H1(function(d){var H=function(){var p,g,a,e;return(e=(a=(p=d.alt)==null?void 0:p.call(d))!=null?a:(g=d.data().accessibilityData)==null?void 0:g.label)!=null?e:""},K=function(){return d.data().imageWidth},c=function(){return d.data().imageHeight};
return _.x("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.x(_.n,{cond:function(){var p=d.data();if(p){var g,a,e;var k=((g=_.Kj().resolve(_.$p(_.fM)))==null?0:g())?(a=p.imageDark)!=null?a:p.imageLight:(e=p.imageLight)!=null?e:p.imageDark}else k=void 0;return k},
then:function(p){return _.x(_.d7,Object.assign({},d,{data:p,alt:H,targetWidth:K,targetHeight:c,preserveHeight:!0,preserveWidth:!0}))}}))},"Cf");
CwT.idomCompat=!0;var c0=_.H1(function(d){var H=d.data;d=_.vj(function(){return H().slots},[]);
var K=_.vj(function(){return H().layoutProperties},{}),c=_.Kj().resolve(_.jv);
return _.x("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:hhG(K,c)},_.x(_.L6,{each:d,keyBy:"INDEX"},function(p){return _.x("div",{class:"ytContainerLayoutViewModelSlot",style:hhG(function(){return p().layoutProperties},c)},_.x(_.wB,{data:function(){return p().contents}},{containerLayoutViewModel:c0,
badgeViewModel:_.g$,buttonViewModel:_.xk,styledTextViewModel:nrZ,contentPreviewImageViewModel:function(g){return _.x(_.iN,{data:g.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(g){return _.x(CwT,{data:g.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Df");
c0.idomCompat=!0;var RiT=_.H1(function(d){var H=d.data;var K=d.stateFns;var c=function(){var C=H(),R=C.productId;return!(!C.clearGroupId&&!R)},p=function(){var C=H(),R=C.clearGroupId;
return(C=C.productId)?K().isProductSelected(C):R?K().getSelectedProductByGroupId(R)==null:!1},g=function(){var C=H(),R=C.clearGroupId;
if(C=C.productId)K().onProductSelected(C);else if(R)K().onClearGroupSelected(R)},a=function(){var C=H(),R=C.clearGroupId;
if(C=C.productId){var V;return"group:"+(((V=K().getProductById(C))==null?void 0:V.groupId)||"")}return R?"group:"+R:""},e=_.vj(function(){return H().header},[]),k=_.vj(function(){return H().body},[]);
return _.x("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.x(_.n,{cond:function(){return e().length>0||c()},
then:function(){return _.x("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.x("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.x(_.wB,{data:e},{containerLayoutViewModel:function(C){return _.x("div",{class:"ytPdpCardSectionViewModelContentItem"},_.x(c0,{data:C.data}))},
styledTextViewModel:function(C){return _.x("div",{class:"ytPdpCardSectionViewModelContentItem"},_.x(nrZ,{data:C.data}))}})),_.x(_.n,{cond:c,
then:function(){return _.x("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.x(_.Tc,{checked:p,name:a,onChange:g}))}}))}}),_.x(_.n,{cond:function(){return k().length>0},
then:function(){return _.x("div",null,_.x(_.wB,{data:k},{containerLayoutViewModel:function(C){return _.x("div",{class:"ytPdpCardSectionViewModelContentItem"},_.x(c0,{data:C.data}))}}))}}))},"Ef");
RiT.idomCompat=!0;var VVO=_.H1(function(d){var H=d.data;var K=d.stateFns;return _.x("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.x(_.n,{cond:function(){return H().banner},
then:function(c){return _.x("div",{class:"ytPdpCardViewModelBanner"},_.x(_.j$,{text:c}))}}),_.x(_.wB,{data:function(){return H().sections}},{pdpCardSectionViewModel:function(c){c=c.data;
var p={};return _.x("div",{class:_.xM("ytPdpCardViewModelSectionContainer",(p.ytPdpCardViewModelShowDividers=function(){return H().showDividers},p))},_.x(RiT,{data:c,
stateFns:K}))}}))},"Ff");
VVO.idomCompat=!0;var Ue1=_.H1(function(d){var H=d.data;var K=d.isOverlay;d={};return _.x("pdp-masthead-view-model",{class:_.xM("ytPdpMastheadViewModelHost",(d.ytPdpMastheadViewModelIsOverlay=K,d))},_.x(_.wB,{data:function(){return H().image}},{contentPreviewImageViewModel:_.iN,
themedImageViewModel:function(c){return _.x(CwT,{data:c.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.x(_.n,{cond:function(){return H().title},
then:function(c){return _.x("h1",{class:"ytPdpMastheadViewModelHeading"},_.x(_.j$,{text:c,isOverlay:K}))}}),_.x(_.L6,{each:function(){var c;
return(c=H().finePrint)!=null?c:[]}},function(c){return _.x("div",{class:"ytPdpMastheadViewModelFinePrint"},_.x(_.j$,{text:c,
isOverlay:K}))}))},"Gf");
Ue1.idomCompat=!0;var hiq=_.H1(function(d){var H=d.data;var K=d.stateFns;var c=function(){return"pdp-pricing-group-selector-"+H().pricingGroupAttributeIds},p=_.vj(function(){return H().pricingGroupSelectorSectionHeader});
return _.x("pdp-pricing-group-selector-view-model",null,_.x(_.n,{cond:function(){return!!p()},
then:function(){return _.x(_.wB,{data:p},{sectionHeaderViewModel:function(g){g=g.data;var a={};return _.x("div",{class:_.xM("ytPdpPricingGroupSelectorViewModelSectionHeader",(a.ytPdpPricingGroupSelectorViewModelFullBleed=!0,a.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,a))},_.x(_.xw,{data:g}))}})}}),_.x("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.x(_.L6,{each:function(){var g=K().getSelectedProductByGroupId(H().groupId);
if(!g)return _.Xi(Error("Mj`"+H().groupId)),[];var a,e=(a=H().pricingGroupAttributeIds)!=null?a:[],k;if((k=g.pricingGroups)==null||!k.length||!e.length)return[];a=g.pricingGroups.filter(function(U){return e.length?U.pricingGroupAttributes.every(function(L){return e.includes(L)}):!1});
g=[];if(e.length>0){a=[].concat(_.ru(a));k=_.q(e);for(var C=k.next(),R={};!C.done;R={targetAttrId:void 0},C=k.next())R.targetAttrId=C.value,C=a.findIndex(function(U){return function(L){return L.pricingGroupAttributes.includes(U.targetAttrId)}}(R)),C!==-1&&(g.push(a[C]),a.splice(C,1))}var V=K().getSelectedPricingGroupAttributesByGroupId(H().groupId);
return g.map(function(U){var L=!1;V&&U.pricingGroupAttributes&&(L=mn(U.pricingGroupAttributes,V));return{pricingGroup:U,isSelected:L}})},
keyBy:function(g){return g.pricingGroup.pricingGroupId}},function(g){return _.x("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.x("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.x(_.wB,{data:function(){return g().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:c0})),_.x("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.x(_.Tc,{checked:function(){return g().isSelected},
name:c,onClick:function(){K().onPricingGroupSelected(g().pricingGroup.pricingGroupId)}})))})))},"Hf");
hiq.idomCompat=!0;var Lfg=_.H1(function(d){var H=d.data;var K=d.stateFns;var c=function(){var a=K().getSelectedPricingOptions().map(function(C){return C.pricingOptionId}),e=K().getSelectedProductByGroupId(H().groupId);
if(!e)return _.Xi(Error("Nj`"+H().groupId)),[];var k=K().getSelectedPricingGroupAttributesByGroupId(H().groupId);return B9G(e.pricingOptions,k,a)},p=_.vj(function(){return H().pricingOptionSelectorSectionHeader}),g=function(){return c().length>1};
return _.x("pdp-pricing-option-selector-view-model",null,_.x(_.n,{cond:function(){return!!p()&&g()},
then:function(){return _.x(_.wB,{data:p},{sectionHeaderViewModel:function(a){a=a.data;var e={};return _.x("div",{class:_.xM("ytPdpPricingOptionSelectorViewModelSectionHeader",(e.ytPdpPricingOptionSelectorViewModelFullBleed=!0,e.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,e))},_.x(_.xw,{data:a}))}})}}),_.x(_.n,{cond:g,
then:function(){return _.x("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.x(_.L6,{each:c,keyBy:"INDEX"},function(a){return _.x("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.x("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.x(_.wB,{data:function(){return a().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:c0})),_.x("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.x(_.Tc,{checked:function(){return a().isSelected},
onClick:function(){K().onPricingOptionSelected(a().pricingOption.pricingOptionId);var e=a().pricingOption.onSelectPricingOption;if(e=_.T6(e)){var k;(k=_.Kj().resolve(_.cb))==null||k.resolveCommand(e)}}})))}))}}))},"If");
Lfg.idomCompat=!0;var MVO=_.H1(function(d){var H=d.data;var K=d.stateFns;return _.x("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.x(_.wB,{data:function(){var c,p;return(p=(c=K().getSelectedPricingOptions()[0])==null?void 0:c.primaryButton)!=null?p:H().emptyStateButton}},{buttonViewModel:_.xk}))},"Jf");
MVO.idomCompat=!0;var meT=_.H1(function(d){var H=d.stateFns;return _.x("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.x(_.wB,{data:function(){return H().getSelectedPricingOptions().flatMap(function(K){return K.summaryLines}).filter(function(K){return!!K})}},{containerLayoutViewModel:function(K){return _.x("div",{class:"ytPdpSummaryViewModelLineItem"},_.x(c0,{data:K.data}))}}))},"Kf");
meT.idomCompat=!0;var wd5=_.H1(function(d){function H(J){var F=a();_.jO(_.BK("pdpStateEntity",F,{key:F,selectedPricingOptions:J}))}
var K=d.data;var c=d.internalScrolling;var p=d.stateFnsForTesting;var g=_.vj(function(){return K().allProducts},[]),a=_.vj(function(){return K().pdpStateEntityKey},""),e=_.Uj(zhZ,a),k=_.ey(function(){_.IH(!0);
var J;return(J=p==null?void 0:p())!=null?J:Jmg(e,g,H)},void 0,"pjJzrd"),C=_.vj(function(){return K().body},[]),R=_.vj(function(){return K().columnBreakHints},[]),V=function(){return K().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},U=function(){return V()||K().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},L=_.ey(function(){var J=_.b8(K().background),F;
if(J==null?0:(F=J.sources)==null?0:F.length){var Y=Y===void 0?!0:Y;J=_.wlX(void 0,J.sources,void 0,Y,Y?1E3:void 0,Y?void 0:1E3)}else J=null;return J},void 0,"GO4GAe");
d=_.UQ({"--pdp-view-model-background":function(){return L()?"url("+L()+")":void 0}});
var w={};c=_.xM("ytPdpViewModelHost",(w.ytPdpViewModelHasBackground=function(){return U()||!!L()},w.ytPdpViewModelHasDarkBackground=U,w.ytPdpViewModelHasScrim=V,w.ytPdpViewModelInternalScrolling=_.vj(c,!1),w));
var W=function(J){var F={};return _.xM("ytPdpViewModelItem",(F.ytPdpViewModelFullBleed=function(){return aYg(J())==="dividerViewModel"||aYg(J())==="sectionHeaderViewModel"},F.ytPdpViewModelNoVerticalPadding=function(){return aYg(J())==="sectionHeaderViewModel"},F))};
_.WE(function(){var J=K().onStartCommand;if(J&&(J=_.T6(J))){var F;(F=_.Kj().resolve(_.cb))==null||F.resolveCommand(J)}});
return _.x("pdp-view-model",{class:c,style:d},_.x("div",{class:"ytPdpViewModelColumnContainer"},_.x(_.L6,{each:function(){return ssZ(C(),R())},
keyBy:"INDEX"},function(J){return _.x("div",{class:"ytPdpViewModelColumn"},_.x(_.wB,{data:J},{containerLayoutViewModel:function(F,Y){F=F.data;return _.x("div",{class:W(function(){return J()[Y()]})},_.x(c0,{data:F}))},
dividerViewModel:function(F,Y){F=F.data;return _.x("div",{class:W(function(){return J()[Y()]})},_.x(_.u6g,{data:F}))},
pdpCardViewModel:function(F,Y){F=F.data;return _.x("div",{class:W(function(){return J()[Y()]})},_.x(VVO,{data:F,
stateFns:k}))},
pdpMastheadViewModel:function(F,Y){F=F.data;return _.x("div",{class:W(function(){return J()[Y()]})},_.x(Ue1,{data:F,
isOverlay:U}))},
pdpPricingGroupSelectorViewModel:function(F,Y){F=F.data;return _.x("div",{class:W(function(){return J()[Y()]})},_.x(hiq,{data:F,
stateFns:k}))},
pdpPricingOptionSelectorViewModel:function(F,Y){F=F.data;return _.x("div",{class:W(function(){return J()[Y()]})},_.x(Lfg,{data:F,
stateFns:k}))},
pdpPrimaryButtonViewModel:function(F,Y){F=F.data;return _.x("div",{class:W(function(){return J()[Y()]})},_.x(MVO,{data:F,
stateFns:k}))},
pdpSummaryViewModel:function(F,Y){F=F.data;return _.x("div",{class:W(function(){return J()[Y()]})},_.x(meT,{data:F,
stateFns:k}))},
sectionHeaderViewModel:function(F,Y){F=F.data;return _.x("div",{class:W(function(){return J()[Y()]})},_.x(_.xw,{data:F}))}}))})))},"Lf");
wd5.idomCompat=!0;_.iV(wd5,"pdp-view-model",{props:{data:_.dl,stateFnsForTesting:_.p7,internalScrolling:_.p7}});var Pwg=_.H1(function(d){var H=d.data;var K=d.className;var c=_.Uj(_.Da,function(){return H().flowStateEntityKey});
return _.x("ytm-premium-purchase-button-renderer",{class:_.xM("yt-premium-purchase-button-renderer",K)},_.x(_.wB,{data:function(){var p;return(p=_.M(c(),Z61))==null?void 0:p.primaryButtonOverride}},{buttonRenderer:function(p){return _.x(_.AV,{data:p.data,
className:K})},
buttonViewModel:function(p){return _.x(_.xk,{data:p.data,className:K})}}))},"Mf");
Pwg.idomCompat=!0;var ui1=_.H1(function(d){var H=d.data;d=d.className;var K=function(){return FS0(H().style)},c=_.xM("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",K),p=_.xM("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",K);
return _.x("yt-flow-bottom-bar-renderer",{class:_.xM("yt-flow-bottom-bar-renderer",d,K)},_.x(_.wB,{data:function(){return H().secondaryButton}},{buttonRenderer:function(g){return _.x(_.AV,{data:g.data,
className:p})},
buttonViewModel:function(g){return _.x(_.xk,{data:g.data,className:p})},
premiumPurchaseButtonRenderer:function(g){return _.x(Pwg,{data:g.data,className:p})}}),_.x(_.wB,{data:function(){return H().primaryButton}},{buttonRenderer:function(g){return _.x(_.AV,{data:g.data,
className:c})},
buttonViewModel:function(g){return _.x(_.xk,{data:g.data,className:c})},
premiumPurchaseButtonRenderer:function(g){return _.x(Pwg,{data:g.data,className:c})}}))},"Nf");
ui1.idomCompat=!0;_.iV(ui1,"yt-flow-bottom-bar-renderer",{props:{data:_.dl,className:_.dl}});var IzG=_.H1(function(d){var H=_.xM(d.className,"ytOfferSummaryRendererHost");return _.x("yt-offer-summary-renderer",{class:H},_.x("div",{class:"ytOfferSummaryRendererTextContainer"},_.x("div",{class:"ytOfferSummaryRendererEyebrowText"},_.x(_.j$,{text:function(){return d.data().eyebrowText}})),_.x("div",{class:"ytOfferSummaryRendererTitle"},_.x(_.j$,{text:function(){return d.data().title}})),_.x("div",{class:"ytOfferSummaryRendererSubtitle"},_.x(_.j$,{text:function(){return d.data().subtitle}})),
_.x("div",{class:"ytOfferSummaryRendererFeatureListData"},_.x(_.L6,{each:function(){var K;
return(K=d.data().featureListData)!=null?K:[]}},function(K){var c;
return _.x("div",{class:"ytOfferSummaryRendererFeatureList"},_.x(_.hu,{icon:(c=K.icon)==null?void 0:c.iconType,active:function(){return K.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(K.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.x("div",{class:"ytOfferSummaryRendererFeatureListText"},_.x(_.j$,{text:K.text,
className:function(){return K.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.x("div",{class:"ytOfferSummaryRendererDescription"},_.x(_.j$,{text:function(){return d.data().description}}))))},"Of");_.iV(_.H1(function(d){var H={};H=_.xM("ytOfferSummaryFlowStepRendererHost",(H.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=d.shouldDisableHeaderTopMargin,H));return _.x("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:H},_.x("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.x("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.x(_.j$,{text:function(){return d.data().header}})),_.x("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.x(_.j$,{text:function(){return d.data().subtitle}}))),_.x("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.x(_.wB,{data:function(){return d.data().offerSummary}},{offerSummaryRenderer:function(K){return _.x(IzG,{data:K.data,
className:d.flowClassName})}})))},"Pf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.p7,
flowClassName:_.p7,flowStateEntityKey:_.p7,shouldDisableHeaderTopMargin:_.p7}});var rfg=_.H1(function(d){var H=d.data;var K=d.className;var c=d.flowStateEntityKey;var p=d.selectionStepStyle;d=_.n7(function(k){var C=H(),R=c==null?void 0:c();k.target&&(k.stopPropagation(),k=R||"",R=_.Da(_.AB().getState(),k),C=Object.assign({},R,{premiumPurchaseFlowState:{selectedOptionId:C.optionId,primaryButtonOverride:C.primaryButtonOverride}}),_.AB().dispatch(_.PI("flowStateEntity",k,C)));return!1});
var g=function(){return(c==null?void 0:c())||""},a=_.Uj(_.Da,g);
_.WE(function(){var k=H(),C=g(),R=a();k.defaultSelected&&C!==""&&k.primaryButtonOverride&&T9U(k.optionId||"",C,k.primaryButtonOverride,R)});
var e={};return _.x("ytm-option-item-renderer",{"on:click":d,class:_.xM(K,"ytm-option-item-renderer",(e["ytm-option-item-renderer--lp2-style"]=function(){return(p==null?void 0:p())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},e))},_.x("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.x("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var k=H(),C=g(),R=a();R=_.M(R,Z61);return(R?(R==null?void 0:R.selectedOptionId)||"":k.defaultSelected&&C!==""?(k==null?void 0:k.optionId)||"":"")===H().optionId},
name:("input"+_.rM(_.J6)).toString()})),_.x("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.x(_.wB,{data:function(){return H().titleBadge}},{badgeViewModel:function(k){return _.x(_.g$,{data:k.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.x(_.n,{cond:function(){return H().eyebrowText},
then:function(){return _.x("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.x(_.j$,{text:function(){return H().eyebrowText}}))}}),_.x("div",{class:"ytm-option-item-renderer__option-item-title"},_.x(_.j$,{text:function(){return H().title}})),_.x("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.x(_.j$,{text:function(){return H().subtitle}})),_.x(_.n,{cond:function(){return H().featureListData},
then:function(){return _.x("div",{class:"ytm-option-item-renderer__feature-list-data"},_.x(_.L6,{each:function(){return H().featureListData||[]}},function(k){var C,R=(C=k.icon)==null?void 0:C.iconType;
a:switch(k.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":C="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":C="ytm-option-item-renderer__feature-list-icon-small";break a;default:C="ytm-option-item-renderer__feature-list-icon-default"}return _.x("div",{class:"ytm-option-item-renderer__feature-list"},_.x(_.hu,{icon:R,className:C,active:function(){return k.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.x("div",{class:"ytm-option-item-renderer__feature-list-text"},_.x(_.j$,{text:k.text,
className:function(){return k.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.x("div",{class:"ytm-option-item-renderer__option-item-description"},_.x(_.j$,{text:function(){return H().description}}))))},"Qf");var Wfb=_.H1(function(d){var H=d.data;var K=d.flowClassName;var c=d.flowStateEntityKey;var p=d.selectionStepStyle;return _.x("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.x("div",{class:"yt-option-section-renderer__option-section-header-section"},_.x("div",{class:"yt-option-section-renderer__option-section-header"},_.x(_.j$,{text:function(){return H().title}}),_.x(_.wB,{data:function(){return H().titleBadge}},{badgeViewModel:function(g){return _.x(_.g$,
{data:g.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.x(_.n,{cond:function(){return H().subtitle},
then:function(){return _.x("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.x(_.j$,{text:function(){return H().subtitle}}))}}),_.x(_.n,{cond:function(){return H().featureListData},
then:function(g){return _.x("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.x(_.L6,{each:g},function(a){var e;return _.x("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.x(_.hu,{icon:(e=a.icon)==null?void 0:e.iconType,active:function(){return a.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(a.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.x("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.x(_.j$,{text:a.text,
className:function(){return a.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.x(_.n,{cond:function(){return H().secondaryTitle},
then:function(){return _.x("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.x(_.j$,{text:function(){return H().secondaryTitle}}))}}),_.x(_.L6,{each:function(){return H().sectionDisclaimers||[]}},function(g){return _.x("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.x(_.j$,{text:g}))})),_.x(_.wB,{data:function(){return H().optionItems}},{optionItemRenderer:function(g){return _.x("div",{class:"yt-option-section-renderer__option-item"},_.x(rfg,{data:g.data,
className:K,flowStateEntityKey:c,selectionStepStyle:p}))}}),_.x(_.n,{cond:function(){return H().offerText},
then:function(){return _.x("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.x(_.j$,{text:function(){return H().offerText}}))}}))},"Rf");
Wfb.idomCompat=!0;var BzZ=_.H1(function(d){var H=d.data;var K=d.flowClassName;var c=d.flowStateEntityKey;d=d.isDesktop;var p=function(){var C;return(C=H().flowStateEntityKey)!=null?C:c==null?void 0:c()},g=function(){return(p==null?void 0:p())||""},a=function(){return H().style},e=_.Uj(_.Da,g);
_.WE(function(){var C=H(),R=g(),V=e();!_.M(V,Z61)&&C.noPreselect&&R!==""&&C.defaultButtonOverride&&T9U("default",R,C.defaultButtonOverride,V)});
var k={};return _.x("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.xM("ytm-option-selection-flow-step-renderer",(k["ytm-option-selection-flow-step-renderer--desktop"]=d,k["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return H().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},k))},_.x("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header-container ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.x("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.x(_.j$,{text:function(){return H().header}})),_.x("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.x(_.j$,{text:function(){return H().subtitle}}))),_.x(_.wB,{data:function(){return H().optionItems||[]}},{optionItemRenderer:function(C){return _.x("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.x(rfg,{data:C.data,
className:K,flowStateEntityKey:p,selectionStepStyle:a}))},
optionSectionRenderer:function(C){return _.x("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.x(Wfb,{data:C.data,flowClassName:K,flowStateEntityKey:p,selectionStepStyle:a}))}}))},"Sf");
BzZ.idomCompat=!0;_.iV(BzZ,"yt-option-selection-flow-step-renderer",{props:{data:_.dl,flowClassName:_.dl,flowStateEntityKey:_.dl,isDesktop:_.dl}});_.pR=_.H1(function(d){var H=_.dg(d,{type:1,disablePadding:!1,disablePrimaryButton:!1}),K=H.data,c=H.type;d=H.disablePadding;var p=H.disablePrimaryButton,g=H.onClickPrimaryButton,a=function(){return K().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},e=function(){return{disabled:p(),
state:p()?"disabled":"active"}},k=function(){return K().leadingLabel||K().trailingLabel};
H={};return _.x("yt-panel-footer-view-model",{class:_.xM("yt-panel-footer-view-model-wiz",(H["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return K().shouldHideDivider},H["yt-panel-footer-view-model-wiz--disable-padding"]=d,H))},_.x(_.n,{cond:k,
then:function(){var C={},R={};return _.x("div",{class:_.xM("yt-panel-footer-view-model-wiz__text-row",(C["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var V=K();return!(!V.leadingLabel&&!V.trailingLabel||!V.primaryButton&&!V.secondaryButton)},C))},_.x(_.j$,{text:function(){return K().leadingLabel},
className:_.xM((R["yt-panel-footer-view-model-wiz--text-padding"]=k,R))}),_.x(_.j$,{text:function(){return K().trailingLabel}}))}}),_.x(_.n,{cond:a,
then:function(){var C={};return _.x("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.x("div",{class:_.xM("yt-panel-footer-view-model-wiz__primary-button",(C["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return K().secondaryButton},C))},_.x(_.wB,{data:function(){return K().primaryButton}},{buttonViewModel:function(R){return _.x(_.xk,{data:R.data,
buttonOverrides:e,onClick:g})}})),_.x(_.wB,{data:function(){return K().secondaryButton}},{buttonViewModel:_.xk}))}}),_.x(_.n,{cond:function(){return!a()},
then:function(){var C={},R={},V={};return _.x("div",{class:_.xM("yt-panel-footer-view-model-wiz__button-row",(C["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===c()},C))},_.x("div",{class:_.xM("yt-panel-footer-view-model-wiz__button-row--left-button",(R["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===c()},R["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!K().secondaryButton||0===c()},R["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===c()},R))},_.x(_.wB,{data:function(){return K().secondaryButton}},{buttonViewModel:_.xk})),_.x("div",{class:_.xM("yt-panel-footer-view-model-wiz__primary-button",(V["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===c()||1===c()},V["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===c()},V))},_.x(_.wB,{data:function(){return K().primaryButton}},{buttonViewModel:function(U){return _.x(_.xk,{data:U.data,
buttonOverrides:e,onClick:g})}})))}}))},"Tf");
_.pR.idomCompat=!0;_.ziZ=_.H1(function(d){d=_.dg(d,{disablePadding:!1});var H=d.data,K=d.disablePadding;d=_.IHC(function(){return H().formId});
var c=d.submitForm,p=d.isValid,g=d.isSubmitting;return _.x("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.x(_.wB,{data:function(){return H().panelFooter}},{panelFooterViewModel:function(a){return _.x(_.pR,{data:a.data,
onClickPrimaryButton:function(){c()},
disablePrimaryButton:function(){return!p()||g()},
disablePadding:K})}}))},"Uf");_.iV(_.ziZ,"yt-form-footer-view-model",{props:{data:_.dl,disablePadding:_.dl}});_.iV(_.H1(function(d){var H=_.h("enable_user_rating_web");return _.x("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.x("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.x(_.n,{cond:function(){var K;return(K=d.data())==null?void 0:K.image},
then:function(K){return _.x(_.d7,{data:K,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.x("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.x(_.j$,{text:function(){var K;
return(K=d.data())==null?void 0:K.title}})),_.x("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.x(_.j$,{text:function(){var K;
return(K=d.data())==null?void 0:K.subtitle}})),_.x(_.n,{cond:function(){return!H},
then:function(){return _.x(_.wB,{data:function(){var K;return(K=d.data())==null?void 0:K.viewTipsButton}},{buttonViewModel:function(K){return _.x(_.xk,{data:K.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Vf"),"yt-contributor-zero-state-view-model",{props:{data:_.dl}});var Xd0=_.H1(function(d){var H=function(){var K;return(K=d.data())==null?void 0:K.image};
return _.x("yt-featured-content-item-view-model",{class:_.xM("ytFeaturedContentItemViewModelHost")},_.x("div",{class:_.xM(function(){return H()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.x("div",{class:function(){return H()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.x(_.n,{cond:H,
then:function(){return _.x("div",{class:"ytFeaturedContentItemViewModelImage"},_.x(_.wB,{data:function(){return d.data().image}},{themedImageViewModel:function(K){return _.x(CwT,{data:K.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.x(_.n,{cond:function(){var K;
return!H()&&((K=d.data())==null?void 0:K.iconName)},
then:function(){return _.x("div",{class:"ytFeaturedContentItemViewModelIcon"},_.x(_.hu,{icon:function(){return d.data().iconName}}))}}),_.x("div",{class:"ytFeaturedContentItemViewModelContent"},_.x(_.n,{cond:function(){var K;
return(K=d.data())==null?void 0:K.title},
then:function(){return _.x("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.x(_.j$,{text:function(){return d.data().title}}))}}),_.x(_.n,{cond:function(){var K;
return(K=d.data())==null?void 0:K.body},
then:function(){return _.x("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.x(_.j$,{text:function(){return d.data().body}}))}})))))},"Wf");var JfG=_.H1(function(d){var H=function(){var p;return Qsb((p=d.data())==null?void 0:p.titleFontSize)},K=function(){var p;
return tDj((p=d.data())==null?void 0:p.descriptionFontSize)},c=function(){var p;
return((p=d.data())==null?void 0:p.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.x("yt-landing-page-view-model",{class:_.xM("ytLandingPageViewModelHost",d.className)},_.x("div",{class:"ytLandingPageViewModelHeader"},_.x(_.n,{cond:function(){var p;return(p=d.data())==null?void 0:p.bannerImage},
then:function(p){return _.x("div",{class:"ytLandingPageViewModelHeaderImage"},_.x(_.wB,{data:function(){return p()}},{imageBannerViewModel:function(g){return _.x(_.St,{data:g.data,
isPositionRelative:!0})}}))}}),_.x(_.n,{cond:function(){var p;
return(p=d.data())==null?void 0:p.bannerAnimation},
then:function(p){return _.x(_.hT,{data:function(){var g=p();if(g==null?0:g.url){var a;g={path:(a=g==null?void 0:g.url)!=null?a:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(g==null?0:g.payload){var e;g={animationData:JSON.parse((e=g==null?void 0:g.payload)!=null?e:""),autoplay:!0,loop:!0,renderer:"svg"}}else g=void 0;return{animationConfig:g}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.x("div",{class:"ytLandingPageViewModelHeaderTitle"},_.x(_.n,{cond:function(){var p;
return(p=d.data())==null?void 0:p.title},
then:function(p){return _.x("div",{class:_.xM("ytLandingPageViewModelHeaderTitleContent",H)},_.x(_.j$,{text:function(){return p()}}))}}),_.x(_.n,{cond:function(){var p;
return(p=d.data())==null?void 0:p.description},
then:function(p){var g={};return _.x(_.j$,{className:_.xM("ytLandingPageViewModelHeaderTitleDescription",K,(g.ytLandingPageViewModelHeaderTitleDescriptionMargin=c,g)),text:function(){return p()}})}}))),_.x(_.n,{cond:function(){var p,g;
return(p=d.data())==null?void 0:(g=p.featuredContentList)==null?void 0:g.length},
then:function(){return _.x("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.x(_.wB,{data:function(){return d.data().featuredContentList}},{featuredContentItemViewModel:function(p){return _.x(Xd0,{data:p.data})}}))}}),_.x(_.n,{cond:function(){var p,g;
return(p=d.data())==null?void 0:(g=p.expandableContentList)==null?void 0:g.length},
then:function(){return _.x("div",{class:"ytLandingPageViewModelFaqSection"},_.x(_.wB,{data:function(){return d.data().expandableContentList}},{faqEntryViewModel:function(p){return _.x("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.x(_.qpC,{data:p.data}))}}))}}),_.x("div",{class:"ytLandingPageViewModelFooter"},_.x(_.n,{cond:function(){var p;
return(p=d.data())==null?void 0:p.legalCopy},
then:function(p){return _.x("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.x(_.j$,{text:function(){return p()}}))}}),_.x(_.n,{cond:function(){var p;
return(p=d.data())==null?void 0:p.actions},
then:function(p){return _.x("div",null,_.x(_.wB,{data:function(){return p()}},{flexibleActionsViewModel:function(g){return _.x(_.Fd,{data:g.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Xf");_.iV(_.H1(function(d){return _.x("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.x("div",{class:"ytLpSectionGroupViewModelContainer"},_.x(_.wB,{data:function(){return d.data().sections}},{landingPageViewModel:function(H){return _.x(JfG,{data:H.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Yf"),"yt-lp-section-group-view-model",{props:{data:_.dl}});var sJO=_.H1(function(d){var H=_.Uj(YSG,_.vj(function(){var e;return(e=d.data())==null?void 0:e.noteFeedEntityKey},"")),K=_.Uj(fpZ,_.vj(function(){var e;
return(e=d.data())==null?void 0:e.userRatingEntityKey},"")),c=_.h("enable_user_rating_web"),p=function(){var e,k,C;
return((e=H())==null?0:e.contributorNote)?(k=H())==null?void 0:k.contributorNote:(C=d.data())==null?void 0:C.existingNote},g=function(){var e,k;
return!!K()&&!!O6g((e=K())==null?void 0:e.helpfulnessValue,(k=d.data())==null?void 0:k.noteData)};
if(c){var a={};return _.x("yt-note-view-model",{class:_.xM("ytNoteViewModelHostUserRating",(a.ytNoteViewModelHostUserRatingPublishedNote=function(){var e,k,C,R;return((e=d.data())==null?void 0:(k=e.noteData)==null?void 0:k.isPublished)&&!((C=d.data())==null?0:(R=C.noteData)==null?0:R.isUserRatingForm)},a))},_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.x(_.n,{cond:function(){var e,k;
return(e=d.data())==null?void 0:(k=e.noteData)==null?void 0:k.isPinned},
then:function(){return _.x(_.hu,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.x(_.n,{cond:function(){var e,k;return(e=d.data())==null?void 0:(k=e.noteData)==null?void 0:k.isPublished},
then:function(){return _.x(_.hu,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.x(_.wB,{data:function(){var e;
return(e=d.data())==null?void 0:e.metadata}},{contentMetadataViewModel:_.Gs}),_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var e,k;
return(k=_.M((e=d.data())==null?void 0:e.metadata,_.t$3))==null?void 0:k.delimiter}),_.x(_.j$,{text:function(){var e;
return(e=p())==null?void 0:e.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.x(_.n,{cond:function(){var e,k;return!((e=d.data())==null?0:(k=e.noteData)==null?0:k.isUserRatingForm)},
then:function(){return _.x(_.wB,{data:function(){var e,k,C,R,V,U,L,w=!!((e=d.data())==null?0:(k=e.noteData)==null?0:k.isPinned);e=g();k=(C=d.data())==null?void 0:C.noteData;C=(R=H())==null?void 0:(V=R.contributorNote)==null?void 0:V.deleteAction;R=(U=d.data())==null?void 0:U.overflowButtonNoteWithRatingOnTapOverride;U=(L=d.data())==null?void 0:L.overflowButton;return w?SSO(k,C):e?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",
buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:R}}:U}},{buttonViewModel:function(e){return _.x(_.xk,{data:e.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.x("div",{class:"ytNoteViewModelNoteContent"},_.x(_.j$,{text:function(){var e;
return(e=p())==null?void 0:e.text}})),_.x(_.n,{cond:function(){var e,k,C,R;
return!((e=d.data())==null?0:(k=e.noteData)==null?0:k.isPinned)&&!((C=d.data())==null?0:(R=C.noteData)==null?0:R.isUserRatingForm)},
then:function(){return _.x(_.n,{cond:g,then:function(){return _.x("div",{class:"ytNoteViewModelUserRatingContainer"},_.x(_.j$,{text:function(){var e,k;return O6g((e=K())==null?void 0:e.helpfulnessValue,(k=d.data())==null?void 0:k.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.x(_.wB,{data:function(){var e;return(e=d.data())==null?void 0:e.userRatingButton}},{buttonViewModel:function(e){return _.x(_.xk,{data:e.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.x(_.n,{cond:function(){var e,k,C,R;
return!((e=d.data())==null?0:(k=e.noteData)==null?0:k.ignoreDivider)&&!((C=d.data())==null?0:(R=C.noteData)==null?0:R.isUserRatingForm)},
then:function(){return _.x("div",{class:"ytNoteViewModelDivider"},_.x(_.wB,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(e){return _.x(_.u6g,{data:e.data})}}))}}))}return _.x("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.x(_.n,{cond:function(){var e,k;return(e=d.data())==null?void 0:(k=e.noteData)==null?void 0:k.isPinned},
then:function(){return _.x(_.hu,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.x(_.n,{cond:function(){var e,k;return(e=d.data())==null?void 0:(k=e.noteData)==null?void 0:k.isPublished},
then:function(){return _.x(_.hu,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.x(_.n,{cond:function(){return c},
then:function(){return _.x(_.wB,{data:function(){var e;return(e=d.data())==null?void 0:e.metadata}},{contentMetadataViewModel:function(e){return _.x(_.Gs,{data:e.data})}})}}),_.x(_.j$,{text:function(){var e,k;
return(e=d.data())==null?void 0:(k=e.noteData)==null?void 0:k.headerText}}),_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.x(_.j$,{text:function(){var e,k;
return(e=d.data())==null?void 0:(k=e.noteData)==null?void 0:k.delimiter}})),_.x(_.j$,{text:function(){var e,k;
return(e=H())==null?void 0:(k=e.contributorNote)==null?void 0:k.publishedTimeText}})),_.x(_.wB,{data:function(){var e,k,C;
return SSO((e=d.data())==null?void 0:e.noteData,(k=H())==null?void 0:(C=k.contributorNote)==null?void 0:C.deleteAction)}},{buttonViewModel:function(e){return _.x(_.xk,{data:e.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.x("div",{class:"ytNoteViewModelNoteContent"},_.x(_.j$,{text:function(){var e,k;
return(e=H())==null?void 0:(k=e.contributorNote)==null?void 0:k.text}})))},"Zf");
sJO.idomCompat=!0;_.iV(sJO,"yt-note-view-model",{props:{data:_.dl}});var g_=_.H1(function(d){var H=_.dg(d,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),K=H.label,c=H.text,p=H.placeholder,g=H.hint;d=H.rows;var a=H.overflowStyle,e=H.outline,k=H.disabled,C=H.disableNewLines,R=H.characterLimit,V=H.validation,U=H.onInput,L=_.Af("textarea");H=_.q(_.V2(function(){return c()}));
var w=H.next().value,W=H.next().value;H=_.q(_.GO(!1,void 0,"fXvinf"));var J=H.next().value,F=H.next().value,Y=function(){F(!0)},A=function(){F(!1)};
_.WE(function(){var YY=L.value,FM=a(),gA=w();FM==="expand-vertically"&&gA&&E2T(YY);L.value.addEventListener("focusin",Y);L.value.addEventListener("focusout",A)});
_.Pk(function(){L.value.removeEventListener("focusin",Y);L.value.removeEventListener("focusout",A)});
var E=function(){var YY;return(YY=V())==null?void 0:YY.validate(w())},N=function(){return R()&&!E()&&w().length>R().maxChars},y=function(){return!!E()||N()};
H=_.n7(function(YY){if(!YY.currentTarget)return!1;YY=YY.currentTarget;W(YY.value);a()==="expand-vertically"&&E2T(YY);U==null||U(YY.value);return!0});
var v=_.n7(function(YY){C()&&YY.key==="Enter"&&YY.preventDefault();return!1}),el=_.n7(function(){L.value.focus()}),l1=function(){return p()||K()},V4={},Mf={},LF={};
return _.x("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.x("div",{class:_.xM("ytStandardsTextareaShapeTextareaContainer",(V4.ytStandardsTextareaShapeTextareaContainerOutline=e,V4.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=k,V4.ytStandardsTextareaShapeTextareaContainerOutlineError=y,V4)),"on:click":el},_.x("label",{class:_.xM("ytStandardsTextareaShapeLabel",(Mf.ytStandardsTextareaShapeLabelFocused=J,Mf.ytStandardsTextareaShapeLabelDisabled=k,Mf.ytStandardsTextareaShapeLabelError=
function(){return y()&&!k()},Mf.ytStandardsTextareaShapeLabelHidden=function(){return!J()&&!w()&&!!l1()},Mf))},K),_.x("div",{class:_.xM("ytStandardsTextareaShapePlaceholder",(LF.ytStandardsTextareaShapePlaceholderVisible=function(){return!J()&&!w()},LF)),
"aria-hidden":"true"},l1),_.x("textarea",{el:L,class:"ytStandardsTextareaShapeTextarea",rows:d,disabled:k,placeholder:l1,"on:input":H,"on:keydown":v},w)),_.x(_.n,{cond:function(){return g()&&!y()},
then:function(){var YY={};return _.x("div",{class:_.xM("ytStandardsTextareaShapeHint",(YY.ytStandardsTextareaShapeHintDisabled=k,YY))},_.x("div",{class:"ytStandardsTextareaShapeHintHintMessage"},g))}}),_.x(_.n,{cond:E,
then:function(){return _.x(FfZ,{disabled:k},_.x("div",{class:"ytStandardsTextareaShapeErrorMessage"},E))}}),_.x(_.n,{cond:R,
then:function(YY){return _.x(_.n,{cond:N,then:function(){return _.x(FfZ,{disabled:k},_.x("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return YY().errorMessage}),_.x("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return w().length+"/"+YY().maxChars}))}})}}))},"$f");
g_.idomCompat={callbacks:{onInput:!0}};var FfZ=_.H1(function(d){var H={};return _.x("div",{class:_.xM("ytStandardsTextareaShapeError",(H.ytStandardsTextareaShapeErrorDisabled=d.disabled,H)),role:"alert"},_.x(_.hu,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),d.children)},"ag");_.ZnS=_.H1(function(d){var H=d.data;return _.x("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.x(g_,{text:d.text,label:function(){var K;return(K=H().contentProperties)==null?void 0:K.labelText},
placeholder:function(){var K;return(K=H().contentProperties)==null?void 0:K.placeholderText},
hint:function(){var K;return(K=H().contentProperties)==null?void 0:K.hintText},
outline:function(){var K;return!((K=H().displayProperties)==null?0:K.hideBorder)},
overflowStyle:function(){var K;return((K=H().displayProperties)==null?0:K.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:d.disabled,disableNewLines:function(){var K;return(K=H().displayProperties)==null?void 0:K.disableNewLines},
onInput:d.onInput,characterLimit:d.characterLimit,validation:d.validation,rows:function(){var K;return(K=H().displayProperties)==null?void 0:K.rows}}))},"bg");_.Tzq=_.H1(function(d){var H=d.data;return _.x("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.x(g_,{text:d.text,label:function(){var K;return(K=H().contentProperties)==null?void 0:K.labelText},
placeholder:function(){var K;return(K=H().contentProperties)==null?void 0:K.placeholderText},
hint:function(){var K;return(K=H().contentProperties)==null?void 0:K.hintText},
outline:function(){var K;return!((K=H().displayProperties)==null?0:K.hideBorder)},
overflowStyle:function(){var K;return((K=H().displayProperties)==null?0:K.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var K;return(K=H().displayProperties)==null?void 0:K.disableNewLines},
onInput:d.onInput,characterLimit:d.characterLimit,validation:d.validation,rows:function(){var K;return(K=H().displayProperties)==null?void 0:K.rows}}))},"cg");var QJU=_.H1(function(d){var H=_.q(_.V2(function(){var l1,V4;return((l1=d.data().structuredContextNoteFormSchema)==null?0:(V4=l1.initialValues)==null?0:V4.noteBody)?d.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),K=H.next().value,c=H.next().value;
H=_.q(_.V2(function(){d.data();return!1}));
var p=H.next().value,g=H.next().value;H=_.q(_.V2(function(){d.data();return!1}));
var a=H.next().value,e=H.next().value;H=_.q(_.V2(function(){var l1,V4;return((l1=d.data().structuredContextNoteFormSchema)==null?0:(V4=l1.initialValues)==null?0:V4.timestamp)?d.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var k=H.next().value,C=H.next().value;H=_.q(_.V2(function(){d.data();return!1}));
var R=H.next().value,V=H.next().value;H=_.q(_.V2(function(){var l1,V4;return((l1=d.data().structuredContextNoteFormSchema)==null?0:(V4=l1.initialValues)==null?0:V4.sources)?[d.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var U=H.next().value,L=H.next().value;H=_.q(_.V2(function(){d.data();return!1}));
var w=H.next().value,W=H.next().value;H=_.q(_.V2(function(){return!1}));
var J=H.next().value,F=H.next().value;_.WE(function(){var l1;_.Atj((l1=d.data().structuredContextNoteFormSchema)==null?void 0:l1.id,{isSubmitting:J,onSubmit:function(){F(!0);var V4=dQv(K(),k(),U(),d.data()),Mf=_.Kj().resolve(_.cb);V4&&Mf&&Mf.resolveCommand(V4,{commandController:{onSuccess:function(){F(!1)}}})},
isValid:function(){return p()&&!a()&&!R()&&!w()}})});
var Y=function(l1){if(l1!==void 0&&(c(l1),!p()&&l1.length>0&&g(!0),p())){var V4=N9Z(d.data());if(V4){var Mf=V4.minLength;V4=V4.maxLength;Mf&&l1.length<Mf?e(!0):V4&&l1.length>V4?e(!0):e(!1)}}},A=function(l1){if(l1!==void 0){C(l1);
if(l1.length>0){var V4,Mf,LF,YY,FM=fYO((V4=d.data())==null?void 0:(Mf=V4.structuredContextNoteFormSchema)==null?void 0:(LF=Mf.fieldSchemas)==null?void 0:(YY=LF.timestamp)==null?void 0:YY.validationSchema);if(FM&&(V4=FM.regex)&&!(new RegExp(V4)).test(l1)){V(!0);return}}V(!1)}},E=function(l1){if(l1!==void 0){var V4=l1.split(/[ \n]/).map(function(Mf){return Mf.trim()});
L(V4);if(l1.length>0)for(l1=_.q(V4),V4=l1.next();!V4.done;V4=l1.next())if(!v2Z(V4.value)){W(!0);return}W(!1)}},N=function(){return{validate:function(l1){if(p()){var V4=N9Z(d.data());
if(V4){var Mf=V4.minLength;V4=V4.translations;if(Mf&&l1.length<Mf)return V4==null?void 0:V4.minLengthErrorMessage}}}}},y=function(){var l1=N9Z(d.data()),V4=l1==null?void 0:l1.maxLength,Mf;
l1=l1==null?void 0:(Mf=l1.translations)==null?void 0:Mf.maxLengthErrorMessage;if(V4&&l1)return{maxChars:V4,errorMessage:l1}},v=function(){return{validate:function(l1){if(l1){var V4,Mf,LF,YY,FM=fYO((V4=d.data())==null?void 0:(Mf=V4.structuredContextNoteFormSchema)==null?void 0:(LF=Mf.fieldSchemas)==null?void 0:(YY=LF.timestamp)==null?void 0:YY.validationSchema);
if(FM&&(V4=FM.regex,FM=FM.translations,V4&&!(new RegExp(V4)).test(l1)))return FM==null?void 0:FM.regexErrorMessage}}}},el=function(){return{validate:function(l1){if(l1){var V4,Mf,LF,YY,FM=jsv((V4=d.data())==null?void 0:(Mf=V4.structuredContextNoteFormSchema)==null?void 0:(LF=Mf.fieldSchemas)==null?void 0:(YY=LF.sources)==null?void 0:YY.validationSchema);
if(FM&&(V4=FM.translations,V4==null?0:V4.selectedErrorMessage))for(l1=l1.split(/[ \n]/).map(function(gA){return gA.trim()}),l1=_.q(l1),Mf=l1.next();!Mf.done;Mf=l1.next())if(!v2Z(Mf.value))return l1=void 0,(l1=V4)==null?void 0:l1.selectedErrorMessage}}}};
return _.x("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.x("div",{class:"ytStructuredContextNoteViewModelTextField"},_.x(_.wB,{data:function(){var l1;return(l1=d.data())==null?void 0:l1.noteContents}},{textFormFieldViewModel:function(l1){return _.x(_.Tzq,{data:l1.data,
onInput:Y,validation:N,characterLimit:y})},
textFieldViewModel:function(l1){return _.x(_.ZnS,{data:l1.data,onInput:Y,validation:N,characterLimit:y})}})),_.x("div",{class:"ytStructuredContextNoteViewModelTextField"},_.x(_.wB,{data:function(){var l1;
return(l1=d.data())==null?void 0:l1.noteTimestamp}},{textFormFieldViewModel:function(l1){return _.x(_.Tzq,{data:l1.data,
onInput:A,validation:v})},
textFieldViewModel:function(l1){return _.x(_.ZnS,{data:l1.data,onInput:A,validation:v})}})),_.x("div",{class:"ytStructuredContextNoteViewModelTextField"},_.x(_.wB,{data:function(){var l1;
return(l1=d.data())==null?void 0:l1.noteSources}},{textFormFieldViewModel:function(l1){return _.x(_.Tzq,{data:l1.data,
onInput:E,validation:el})},
textFieldViewModel:function(l1){return _.x(_.ZnS,{data:l1.data,onInput:E,validation:el})}})))},"dg");
QJU.idomCompat=!0;_.iV(QJU,"yt-structured-context-note-view-model",{props:{data:_.dl}});var tVj=_.H1(function(d){var H=_.q(_.V2(function(){var g;if((g=d.controlled)==null?0:g.call(d))return[];var a;return(((a=d.data())==null?void 0:a.chips)||[]).map(function(e){e=_.M(e,_.SK);if(e==null?0:e.selected)return HjZ(e.chipValue)}).filter(function(e){return e!==void 0})})),K=H.next().value,c=H.next().value,p=function(g){var a=HjZ(g.chipValue);
if(a!==void 0){var e;if((e=d.controlled)==null?0:e.call(d))return void d.controlled().onTap(a);g=K().includes(a)?[].concat(_.ru(K().filter(function(C){return C!==a}))):[].concat(_.ru(K()),[a]);
c(g);var k;if((k=d.uncontrolled)==null?0:k.call(d))d.uncontrolled().onUpdate(g)}};
return _.x("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.x(_.L6,{each:function(){return d.data().chips||[]}},function(g){return _.x("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.x(_.wR6,{data:function(){return _.M(g,_.SK)},
selected:function(){var a;if(a=_.M(g,_.SK)){var e=HjZ(a.chipValue);if(e!==void 0){var k;a=((k=d.controlled)==null?0:k.call(d))?d.controlled().selectedValues.includes(e):K().includes(e)}else a=void 0}else a=!1;return a},
callback:p}))}))},"eg");var YDv=_.H1(function(d){var H=d.data;var K=function(){var e;return((e=H())==null?void 0:e.flowStateKey)||""},c=_.Uj(_.Da,K),p=function(){var e;
return(e=_.M(c(),NfZ))==null?void 0:e.chips},g=function(e){if(e!==void 0){var k=p()||[];
k=k.find(function(C){return C===e})?k.filter(function(C){return C!==e}):[].concat(_.ru(k),[e]);
k=Object.assign({},c(),{feedbackFormFlowState:Object.assign({},_.M(c(),NfZ),{chips:k})});_.jO(_.PI("flowStateEntity",K(),k))}},a=function(){var e;
return _.M((e=H())==null?void 0:e.inputBox,DQj)};
d=_.Rp(function(e){var k=a();k=!(k==null?0:k.maxChars)||e.length<=k.maxChars;e=Object.assign({},c(),{feedbackFormFlowState:Object.assign({},_.M(c(),NfZ),{detail:e}),abuseReportFlowState:Object.assign({},_.M(c(),rP),{navigationEnabled:k})});_.jO(_.PI("flowStateEntity",K(),e))},150);
return _.x("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.x("div",{class:"ytFeedbackFormViewModelChips"},_.x(_.wB,{data:function(){var e;return(e=H())==null?void 0:e.chipSelection}},{chipSelectionFormFieldViewModel:function(e){return _.x(tVj,{data:e.data,
controlled:function(){return{selectedValues:p()||[],onTap:g}}})}})),_.x("div",{class:"ytFeedbackFormViewModelInputBox"},_.x(g_,{text:function(){var e;
return(e=_.M(c(),NfZ))==null?void 0:e.detail},
placeholder:function(){var e;return((e=a())==null?void 0:e.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var e=a();if(e&&e.maxChars)return{maxChars:e.maxChars,errorMessage:e.maxCharsExceededErrorMessage||""}},
onInput:d})),_.x("div",{class:"ytFeedbackFormViewModelFooterText"},_.x(_.j$,{text:function(){return H().footerText}})))},"fg");
YDv.idomCompat=!0;_.iV(YDv,"yt-feedback-form-view-model",{props:{data:_.dl}});var Ont=_.H1(function(d){var H=d.data;var K=function(){return H().flowStateKey||""},c=_.Uj(DtZ,K),p=function(){return _.M(c(),rP)},g=function(){if(_.h("enable_gff_accessibility_fix")){var a=!0,e;
if((e=p())==null?0:e.navigationEnabled){var k;_.EG((k=p())==null?void 0:k.navigationCommand);a=!1}e=Object.assign({},c(),{abuseReportFlowState:Object.assign({},p(),{isReportFormDirty:a})});_.jO(_.PI("flowStateEntity",K(),e))}else _.EG((a=p())==null?void 0:a.navigationCommand)};
return _.x("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.x("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.x(_.wB,{data:function(){return H().cancelButton}},{buttonViewModel:function(a){return _.x(_.xk,{data:a.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:g})}}),_.x(_.wB,{data:function(){var a;
if(H().navButton){var e=Object;var k=e.assign,C=_.M(H().navButton,_.OV),R=((a=p())==null?0:a.navigationEnabled)||_.h("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",V,U;a=_.M((V=p())==null?void 0:V.navigationCommand,_.ZX);V=(U=_.M(a,_.yj))==null?void 0:U.url;e={buttonViewModel:k.call(e,{},C,{state:R,iconName:V?"OPEN_IN_NEW":""})}}else e=void 0;return e}},{buttonViewModel:function(a){return _.x(_.xk,{data:a.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:g})}})))},"gg");
Ont.idomCompat=!0;_.iV(Ont,"yt-report-form-bottom-bar-view-model",{props:{data:_.dl}});var SDb=_.H1(function(d){var H=d.nextStep;return _.x("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.x("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.x(_.hu,{icon:function(){return H().iconName||""}})),_.x("div",null,_.x(_.j$,{text:function(){return H().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"hg"),ErZ=_.H1(function(d){var H=d.data;
var K,c=(K=_.Kj().resolve(_.$p(_.fM)))==null?void 0:K(),p=_.Uj(_.Da,function(){return H().flowStateKey||""});
return _.x("yt-report-form-confirmation-page-view-model",{class:function(){var g;return((g=_.M(p(),rP))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.x("div",{class:function(){var g;
return((g=_.M(p(),rP))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.x(_.d7,{data:function(){return c&&H().imageDark?H().imageDark:H().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.x("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.x("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return H().confirmationHeader}),_.x("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.x(_.j$,{text:function(){return H().confirmationText}})),_.x("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.x(_.j$,{text:function(){return H().lawEnforcementText}})),
_.x("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return H().whatToExpectHeader}),_.x(_.n,{cond:function(){return H().nextSteps},
then:function(g){return _.x("div",null,_.x(_.L6,{each:g},function(a){return _.x(SDb,{nextStep:a})}))}}),_.x(_.n,{cond:function(){return H().legalReportText},
then:function(g){return _.x("div",null,_.x(_.j$,{text:g,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"ig");
ErZ.idomCompat=!0;_.iV(ErZ,"yt-report-form-confirmation-page-view-model",{props:{data:_.dl}});var yft=_.H1(function(d){var H=d.data;var K=function(){var g;return((g=_.M(H().inputBox,DQj))==null?void 0:g.maxChars)||500},c=function(){return H().flowStateKey||""},p=_.Uj(_.Da,c);
d=_.Rp(function(g){g=Object.assign({},p(),{flowFormState:{isValid:g.length<=K()},abuseReportFlowState:{userComments:g,navigationEnabled:!(g.length>K()),isReportFormDirty:!0}});_.AB().dispatch(_.BK("flowStateEntity",c(),g))},150);
_.WE(function(){var g=Object.assign({},p(),{flowFormState:{isValid:!0}});_.AB().dispatch(_.BK("flowStateEntity",c(),g))});
return _.x("yt-report-form-details-page-view-model",{class:function(){var g;return((g=_.M(p(),rP))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.x("h1",{class:function(){var g;
return((g=_.M(p(),rP))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return H().detailsPageHeader}),_.x("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.x(_.j$,{text:function(){return H().bodyText}})),_.x("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.x(g_,{label:function(){var g;
return((g=_.M(H().inputBox,DQj))==null?void 0:g.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var g;return{errorMessage:((g=_.M(H().inputBox,DQj))==null?void 0:g.maxCharsExceededErrorMessage)||"",maxChars:K()}},
onInput:d})))},"jg");
yft.idomCompat=!0;_.iV(yft,"yt-report-form-details-page-view-model",{props:{data:_.dl}});var bn0=_.H1(function(d){var H=d.data;var K=d.selectedKey;var c=d.onSelected;var p=d.groupName;var g=function(){return H().text},a=function(){return H().attributedText},e=function(){return H().subtext},k=function(){return H().attributedSubtext},C=_.x("div",{class:"ytRadioButtonItemViewModelLabel"},_.x(_.n,{cond:g,
then:function(){return _.x("div",null,g)}}),_.x(_.n,{cond:a,
then:function(){return _.x(_.j$,{text:a})}}),_.x(_.n,{cond:e,
then:function(){return _.x("div",{class:"ytRadioButtonItemViewModelSubText"},e)}}),_.x(_.n,{cond:k,
then:function(){return _.x("div",{class:"ytRadioButtonItemViewModelSubText"},_.x(_.j$,{text:k}))}})),R=function(){if(a()){var U;
return(U=a())==null?void 0:U.content}return g()},V=function(){if(k()){var U;
return(U=k())==null?void 0:U.content}return e()};
d={};return _.x("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.x(_.Tc,{name:p,checked:function(){return!(K==null||!K()||H().key!==(K==null?void 0:K()))},
onChange:function(U){c==null||c(U.target,H(),p==null?void 0:p())},
labelRenderable:function(){return C},
ariaLabel:function(){return V()?R()+", "+V():R()},
className:_.xM((d.ytRadioButtonItemViewModelSubTitle=function(){return!!H().subtext},d))}))},"kg");_.Nzq=_.H1(function(d){var H=d.data;var K=d.onSelected;var c=d.selectedKey;var p=d.groupName;var g=function(){return(p==null?void 0:p())||H().key};
return _.x("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.x("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.x(_.wB,{data:function(){return H().radioButtons}},{radioButtonItemViewModel:function(a){return _.x(bn0,{data:a.data,
onSelected:K,selectedKey:c,groupName:g})}})))},"lg");var DeG=_.H1(function(d){var H=d.data;var K=_.jV("div"),c=function(){return H().flowStateKey||""},p=_.Uj(_.Da,c),g=function(){return _.M(p(),rP)};
_.wc(function(){var a,e;if(((a=g())==null?0:a.isReportFormDirty)&&((e=g())==null||!e.navigationEnabled)&&_.h("enable_gff_accessibility_fix")){var k;if(((k=g())==null?void 0:k.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var C;(C=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||C.scrollIntoView()}else{var R;(R=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||R.scrollIntoView()}}},"VvP2Ne");
return _.x("yt-report-form-reason-select-page-view-model",{class:function(){var a;return((a=g())==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.x("h1",{class:function(){var a;
return((a=g())==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return H().pageHeader}),_.x("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.x(_.j$,{text:function(){return H().bodyText}})),_.x("div",{class:function(){var a;
return((a=g())==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.x(_.n,{cond:function(){var a,e;
return((a=g())==null?void 0:a.isReportFormDirty)&&!((e=g())==null?0:e.navigationEnabled)&&_.h("enable_gff_accessibility_fix")},
then:function(){return _.x("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:K},_.x(_.hu,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.x("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return H().emptyReasonSelectErrorMessage}))}}),_.x(_.Nzq,{data:function(){return _.M(H().radioButtonGroup,_.KwU)},
onSelected:function(a,e){a=Object.assign({},p(),{abuseReportFlowState:Object.assign({},g(),{reasonKey:e.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:e.command})});_.jO(_.PI("flowStateEntity",c(),a))},
selectedKey:function(){var a;return(a=g())==null?void 0:a.reasonKey},
groupName:"report-form-reason-select-page"})))},"mg");
DeG.idomCompat=!0;_.iV(DeG,"yt-report-form-reason-select-page-view-model",{props:{data:_.dl}});var fzZ=_.H1(function(d){var H=d.data;var K,c=(K=_.Kj().resolve(_.$p(_.fM)))==null?void 0:K();return _.x("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.x("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.x(_.d7,{data:function(){return c&&H().imageDark?H().imageDark:H().image},
alt:""})),_.x("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.x("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return H().header}),_.x(_.j$,{text:function(){return H().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"ng");
fzZ.idomCompat=!0;_.iV(fzZ,"yt-report-form-sign-in-page-view-model",{props:{data:_.dl}});_.iV(_.H1(function(d){var H=d.data;var K=_.Tv(_.$Qg),c=function(){return H().titleSuperscript},p=function(){return H().answersShelf},g=function(){return H().videoShelf},a=function(){var y;
return(y=H().textInputPlaceholder)==null?void 0:y.content},e=function(){return H().showOpenTextInput&&!_.h("web_hide_explore_hub_until_user_navigates_back_to_home")},k=function(){var y;
return(y=H().textInputValue)==null?void 0:y.content},C=function(){return H().isMultiTurnFlow?H().resetButtonViewModel:void 0},R=!1;
d=_.q(_.GO(!1,void 0,"LyKMqb"));var V=d.next().value,U=d.next().value;d=_.q(_.GO("",void 0,"V3XG3e"));var L=d.next().value,w=d.next().value,W=function(){return{state:V()?"active":"disabled"}};
_.Is(function(){if(e()){k()&&w(k());var y;if(!C()&&((y=K())==null?0:y.stepStates)){var v;y=Object.keys((v=K())==null?void 0:v.stepStates);v=y[y.length-1];var el,l1;(v=(el=K().stepStates[v])==null?void 0:(l1=el.userQuery)==null?void 0:l1.userQuery)&&w(v)}}});
var J=function(y){var v=H().onUpdateText;v&&_.EG(v,{form:{userQuery:y}});w(y)},F=_.Rp(function(y){J(y.target.value.trim())},150),Y=_.n7(function(y){var v;
U(!((v=y.target.value)==null||!v.trim())||R);F(y);return!1}),A=_.n7(function(y){if(y.key==="Enter"&&V()){J(y.target.value.trim());
y=void 0;var v=_.M(H().nextButtonViewModel,_.OV),el,l1;if(v==null?0:(el=v.loggingDirectives)==null?0:(l1=el.clientVeSpec)==null?0:l1.uiType){var V4,Mf;y=_.l8((V4=v.loggingDirectives)==null?void 0:(Mf=V4.clientVeSpec)==null?void 0:Mf.uiType)}(el=H().onNextStepCommand)&&_.EG(el,{forceClickLogging:!0,clickedVisualElement:y})}return!1}),E=function(y,v){R=v;
U(v);if(H().isMultiTurnFlow&&v){var el;J((el=y==null?void 0:y.text)!=null?el:"")}if(_.h("web_hide_explore_hub_until_user_navigates_back_to_home")){var l1,V4,Mf;(Mf=(V4=(l1=N.value)==null?void 0:l1.closest("ytd-flow-step-renderer"))==null?void 0:V4.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||Mf.click()}},N=_.Af("yt-talk-to-recs-view-model");
d={};return _.x("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:N},_.x("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.x(_.wB,{data:function(){return H().topCornerButton}},{buttonViewModel:_.xk})),_.x("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.x("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.x(_.j$,{text:function(){return H().title}}),_.x(_.n,{cond:c,
then:function(){return _.x("sup",{class:"ytwTalkToRecsSuperScript"},_.x(_.j$,{text:c}))}})),_.x("div",{class:"ytwTalkToRecsSubtitle"},_.x(_.j$,{text:function(){return H().subtitle}})),_.x("div",{class:"ytwTalkToRecsResultsShelf"},_.x(_.n,{cond:p,
then:function(){return _.x(_.wB,{data:p},{chipsShelfViewModel:function(y){return _.x("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.x(_.F1,{data:y.data,callback:E,enableSingleChipSelection:!0}))}})}}),_.x(_.n,{cond:g,
then:function(){return _.x(_.wB,{data:g},{horizontalShelfViewModel:function(y){return _.x("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.x(_.Yw,{data:y.data,includeMargin:!0,thumbnailAspectRatio:0}))}})}})),_.x("div",{class:_.xM("ytwTalkToRecsRefinementContainer",(d.ytwTalkToRecsBottomMargin=function(){return H().isMultiTurnFlow},d))},_.x(_.n,{cond:e,
then:function(){return _.x("div",{class:"ytwTalkToRecsUserInputBox"},_.x("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:a,value:L,"on:input":Y,"on:keyup":A,maxlength:200}))}}),_.x(_.wB,{data:function(){return H().isMultiTurnFlow?H().nextButtonViewModel:void 0}},{buttonViewModel:function(y){return _.x("div",{class:"ytwTalkToRecsFlowControlButtons"},_.x(_.xk,{data:y.data,
buttonOverrides:W}))}}),_.x(_.wB,{data:C},{buttonViewModel:function(y){return _.x("div",{class:"ytwTalkToRecsFlowControlButtons"},_.x(_.xk,{data:y.data,
onClick:function(){var v=_.M(H().resetButtonViewModel,_.OV);J(L());(v=v==null?void 0:v.onTap)&&_.EG(v)}}))}}))))},"og"),"yt-talk-to-recs-view-model",{props:{data:_.dl}});var K1T={sources:[{clientResource:{imageName:"CHECK"}}]};_.Afb=_.H1(function(d){var H=_.Af("div");d=_.dg(d,{error:void 0});var K=d.data,c=d.error,p=d.onSelected;d=_.q(_.V2(function(){return gpU(K())}));
var g=d.next().value,a=d.next().value;qm1(K,function(U){a(U);var L,w,W=pbj((L=K().options)==null?void 0:(w=L[U])==null?void 0:w.value,K().type);p==null||p(W);H.value.focus()});
d=_.n7(function(){if(!K().disabled){var U=K(),L=g(),w=H.value;U.options&&(U=cXZ(U.options,L,U.label),_.Kj().resolve(_.B6).openSheet({viewModel:U},w))}});
var e=_.yb5(),k=function(){return!!c()},C=function(){return!!K().disabled},R={},V={};
return _.x("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.x("div",{class:_.xM("ytDropdownViewModelDropdownContainer",(R.ytDropdownViewModelDropdownContainerErrorBorder=k,R.ytDropdownViewModelDropdownContainerDisabled=C,R)),"on:click":d,el:H,role:"combobox",tabindex:0,"on:keydown":e,"aria-invalid":k,"aria-disabled":C,"aria-describedby":function(){return k()?"dropdown-view-model-error":void 0}},_.x("div",{class:"ytDropdownViewModelText"},ijZ(K,k,g),GJS(K,g)),_.x("div",{class:_.xM("ytDropdownViewModelChevronDown",
(V.ytDropdownViewModelChevronDownDisabled=C,V))},_.x(_.hu,{icon:"CHEVRON_DOWN"}))),opT(K,c))},"pg");_.iV(_.H1(function(d){var H=d.data;var K=function(p){var g=lOj(H());g.videoMetadata||(g.videoMetadata={});g.videoMetadata.sponsorshipsMetadata||(g.videoMetadata.sponsorshipsMetadata={});g.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(p)},c=function(p){var g=lOj(H());
g.scheduledRedirectMetadata||(g.scheduledRedirectMetadata={});g.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(p)};
return _.x("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.x("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.x("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.x(_.j$,{text:function(){return H().title}}),_.x(_.hu,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.x(_.j$,{text:function(){return H().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.x(_.wB,{data:function(){return H().tierChoices}},{dropdownViewModel:function(p){return _.x("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.x(_.Afb,{data:p.data,
onSelected:K}))}}),_.x(_.wB,{data:function(){return H().startTimeChoices}},{dropdownViewModel:function(p){return _.x("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.x(_.Afb,{data:p.data,
onSelected:c}))}}),_.x(_.j$,{text:function(){return H().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.x("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.x(_.wB,{data:function(){return H().scheduleButton}},{panelFooterViewModel:_.pR})))},"qg"),"ytfz-schedule-fanzone-view-model",{props:{data:_.dl}});_.iV(_.H1(function(d){var H=d.data;d=d.className===void 0?"":d.className;var K=_.Uj(DtZ,function(){return H().flowStateEntityKey||""}),c={};
c=_.xM("ytFlowBottomBarViewModelFlowBottomBarButtons",(c.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},c));
var p={},g=_.xM("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",c,(p.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},p.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},p));
p={};var a=_.xM("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",c,(p.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},p.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},p));
c={};c=_.xM("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(c.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},c.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},c.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
c));
d=_.xM("ytFlowBottomBarViewModelHost",d);return _.x("yt-flow-bottom-bar-view-model",{class:d},_.x(_.n,{cond:function(){var e;return(e=H())==null?void 0:e.textSection},
then:function(e){return _.x("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.x(_.j$,{text:e}))}}),_.x("div",{class:c},_.x(_.wB,{data:function(){return H().secondaryButton}},{buttonViewModel:function(e){return _.x(_.xk,{data:e.data,
className:a})}}),_.x(_.wB,{data:function(){return H().primaryButton}},{buttonViewModel:function(e){return _.x(_.xk,{data:e.data,
className:g,buttonOverrides:function(){var k;return{disabled:!((k=K())==null||!k.primaryButtonDisabled)}}})}})))},"rg"),"yt-flow-bottom-bar-view-model",{props:{data:_.dl,
className:_.p7}});var jJv="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),iu=function(){var d=_.B.apply(this,arguments)||this;d.enableScrollingFix=!0;d.bottomBar=!1;d.hideBottomBar=!1;d.fitContent=!1;return d};
_.m(iu,_.B);_.G=iu.prototype;_.G.ready=function(){_.h("enable_pdp_icon_prefetch")&&_.bjq(_.Kj().resolve(_.I7),0,jJv)};
_.G.focus=function(d){this.topBar?_.D7(this.topBar,d):this.paperDialog.focus(d)};
_.G.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$18985_scroller&&(this.JSC$18985_scroller.dialogElement=this.paperDialog,this.JSC$18985_scroller.attached&&typeof this.JSC$18985_scroller.attached==="function"&&this.JSC$18985_scroller.attached())};
_.G.onDataChanged=function(){var d;this.fitContent=!((d=this.data)==null||!d.fitContent);var H;this.bottomBar=!((H=this.data)==null||!H.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.G.onProgressChanged=function(){var d,H,K=((H=(d=this.data)==null?void 0:d.progress)!=null?H:0)*100;this.progressElement.style.width=K+"%"};
_.G.isProgressHidden=function(){var d;return!((d=this.data)==null?0:d.progress)};
_.G.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",
offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",
sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},
offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(d){return _.h("enable_wiz_next_lp2_msof")&&
d&&!d.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.H3.Object.defineProperties(iu.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var d;return _.h("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.M((d=this.data)==null?void 0:d.content,dlv)}}});
iu.prototype.onProgressChanged=iu.prototype.onProgressChanged;iu.prototype.onDataChanged=iu.prototype.onDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],iu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],iu.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],iu.prototype,"enableScrollingFix",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],iu.prototype,"bottomBar",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],iu.prototype,"hideBottomBar",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],iu.prototype,"containsExploreHub",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],iu.prototype,"fitContent",void 0);_.t([_.VP("#progress"),_.O("design:type",HTMLElement)],iu.prototype,"progressElement",void 0);
_.t([_.VP("#scroller"),_.O("design:type",Object)],iu.prototype,"JSC$18985_scroller",void 0);_.t([_.VP("ytd-flow-top-bar-renderer"),_.O("design:type",HTMLElement)],iu.prototype,"topBar",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iu.prototype,"onDataChanged",null);_.t([_.CK("data.progress"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iu.prototype,"onProgressChanged",null);
_.t([_.Z({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],iu);
_.T(iu,"ytd-flow-step-renderer",function(){if(BFt!==void 0)return BFt;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-flow-step-renderer"></div>\n<div id="progress-container" hidden="[[isProgressHidden(data)]]" class="style-scope ytd-flow-step-renderer">\n  <div id="progress" class="style-scope ytd-flow-step-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-flow-step-renderer">\n  <div id="content" class="style-scope ytd-flow-step-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n<div id="bottom-bar" class="style-scope ytd-flow-step-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return BFt=d},{mode:1});var vrb=function(d){this.resolveCommand=d;this.steps={}},d8Z=function(d,H){H=_.q(H||[]);
for(var K=H.next();!K.done;K=H.next()){K=K.value;var c=Object.values(K)[0],p=void 0;if((p=c)==null?0:p.stepId)d.steps[c.stepId]=K}},KKt=function(d,H){var K,c,p,g,a;
return _.l(function(e){if((K=d.state)==null||!K.currentStepId)return e.return(void 0);c=H5g(d);if(!c)return e.return($8g(d));if(p=_.M(c,_.vp1)){var k;((k=p.screenLoggingData)==null?0:k.screenVeType)&&_.ld(_.hR(),p.screenLoggingData.screenVeType);((g=p)==null?0:g.onStepStartCommand)&&d.resolveCommand((a=p)==null?void 0:a.onStepStartCommand,{})}if(p&&H){k=p;var C,R,V,U;((C=H.flowLoggingData)==null?0:C.eventNamespace)&&((R=k.flowEventData)==null?0:R.eventType)&&((V=k.flowEventData)==null?0:V.eventMetadata)&&
((U=H.flowLoggingData)==null?0:U.flowType)&&(C=_.nm(H.flowLoggingData.eventNamespace,k.flowEventData.eventType,k.flowEventData.eventMetadata),_.Cm(_.R3(),C,H.flowLoggingData.flowType));H.steps&&!H.steps.includes(c)&&H.steps.push(c)}return e.return(c)})};
vrb.prototype.back=function(){var d;(d=this.state)!=null&&d.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
vrb.prototype.handleUpdateFlowCommand=function(d){d.steps&&d8Z(this,d.steps);d.entityUpdateCommand&&this.resolveCommand(d.entityUpdateCommand,{});d.flowContinuationCommand&&(d=d.flowContinuationCommand)&&(this.getFlowContinuationCommand=d);this.awaitFlowContinuation&&(this.awaitFlowContinuation(H5g(this)),this.awaitFlowContinuation=void 0)};
vrb.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var $8g=function(d){return _.l(function(H){return d.getFlowContinuationCommand?H.return(new Promise(function(K){d.awaitFlowContinuation=K;d.getFlowContinuationCommand&&d.resolveCommand(d.getFlowContinuationCommand,{flow_state:d.state})})):H.return(Promise.resolve(void 0))})},H5g=function(d){var H;
if((H=d.state)!=null&&H.currentStepId)return d.steps[d.state.currentStepId]};var GI=function(){var d=_.B.apply(this,arguments)||this;d.flowState=new vrb(function(H,K){K=K===void 0?{}:K;_.nM.instance.resolveCommand(H,{form:{form:K,element:d.hostElement}})});
d.initialState=!0;d.isLoading=!1;d.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};d.containsTalkToRecs=!1;return d};
_.m(GI,_.B);_.G=GI.prototype;_.G.onPopupClosed=function(d){d&&this.hostElement!==d.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.G.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.G.focus=function(d){var H=this;_.EI(function(){var K=_.Gn(H.hostElement).querySelector("ytd-flow-step-renderer");(K==null?0:K.topBar)?K.focus(d):H.topBar&&_.D7(H.topBar,d)},1)};
_.G.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.G.computeTopBarHidden=function(d){var H;return!((H=_.M(d,_.vp1))==null||!H.topBarOverride)};
_.G.dataChanged=function(){var d=this,H,K;return _.l(function(c){if(c.nextAddress==1){((H=d.data)==null?0:H.steps)&&d8Z(d.flowState,d.data.steps);if((K=d.data)==null?0:K.flowContinuationCommand){var p=d.flowState,g=d.data.flowContinuationCommand;g&&(p.getFlowContinuationCommand=g)}return c.yield(KKt(d.flowState,d.data),2)}d.currentFlowStep=c.yieldResult;_.VE(c)})};
_.G.flowChanged=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1){if(!d.flow)return K.return();d.flowState.state=d.flow;d.isLoading=!0;return K.yield(KKt(d.flowState,d.data),2)}H=K.yieldResult;if(!H||d.flow.isLoading)return K.return();d.currentFlowStep=H;d.initialState=!1;d.isLoading=!1;d.autofocusAndRefit();d.updateContainsTalkToRecs();_.VE(K)})};
_.G.updateContainsTalkToRecs=function(){var d,H=(d=_.M(this.currentFlowStep,_.vp1))==null?void 0:d.content;this.containsTalkToRecs=!!H&&!!_.M(H,dlv)};
_.G.autofocusAndRefit=function(){var d=this,H=_.Kj().resolve(_.$p(_.qZ)),K=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),c=document.querySelector("yt-report-form-confirmation-page-view-model"),p=document.querySelector("yt-report-form-details-page-view-model"),g=document.querySelector("yt-report-form-reason-select-page-view-model"),a=document.querySelector("yt-contributor-zero-state-view-model"),
e=document.querySelector("yt-structured-context-note-view-model"),k=document.querySelector("yt-note-view-model");(!K&&H&&H.isKeyBoardInUse()||c||!K&&p||!K&&g||a||e||k)&&_.f4(this.hostElement);_.vV(this,function(){_.GT(d.hostElement,"yt-refit")})};
_.G.handleUpdateFlowCommand=function(d){this.data&&(d=_.M(d,j5S),d.targetId===this.data.targetId&&(d.flowContinuationCommand&&(this.data.flowContinuationCommand=d.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(d),this.autofocusAndRefit()))};
_.G.handleFlowNextStepCommand=function(d){this.data&&this.flow&&this.flow.key&&(d=_.M(d,fO0),d.targetId===this.data.targetId&&(d=d.stepId||"",this.ytdReduxBehavior.dispatch(_.BK("flowStateEntity",this.flow.key,{currentStepId:d,stepIdStack:(this.flow.stepIdStack||[]).concat(d)}))))};
_.G.handleFlowPrevStepCommand=function(d){if(this.data&&this.flow&&this.flow.key&&(d=_.M(d,AXg),d.targetId===this.data.targetId)){var H=[].concat(_.ru(this.flow.stepIdStack||[]));H.length>1?(H.pop(),this.ytdReduxBehavior.dispatch(_.BK("flowStateEntity",this.flow.key,{currentStepId:H[H.length-1],stepIdStack:H}))):d.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(d.onFirstStepCommand)}};
_.G.handleYpcCancelRecurrenceCommand=function(d){if(this.data&&this.flow&&this.flow.key&&(d=_.M(d,c5v),d.targetId===this.data.targetId&&d.endpointCommand)){var H=_.M(this.flow,pMg);H&&_.M(d.endpointCommand,_.smM)&&(_.M(d.endpointCommand,_.smM).feedbackData=H.surveyFeedback);this.ytComponentBehavior.resolveCommand(d.endpointCommand)}};
_.G.handlePartialUpdateFlowStateEntity=function(d){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.BK("flowStateEntity",this.flow.key,d,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
GI.prototype.flowChanged=GI.prototype.flowChanged;GI.prototype.dataChanged=GI.prototype.dataChanged;GI.prototype.onPopupClosed=GI.prototype.onPopupClosed;_.t([_.u(_.to),_.O("design:type",Object)],GI.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],GI.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],GI.prototype,"ytComponentBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],GI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],GI.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],GI.prototype,"initialState",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],GI.prototype,"isLoading",void 0);_.t([_.r(),_.O("design:type",Object)],GI.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Object)],GI.prototype,"currentFlowStep",void 0);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],GI.prototype,"onPopupClosed",null);_.t([_.r({selectorArgs:["data.flowStateEntityKey"],selector:DtZ}),_.O("design:type",Object)],GI.prototype,"flow",void 0);_.t([_.VP("ytd-flow-top-bar-renderer"),_.O("design:type",HTMLElement)],GI.prototype,"topBar",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],GI.prototype,"dataChanged",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],GI.prototype,"containsTalkToRecs",void 0);_.t([_.Mr("flow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],GI.prototype,"flowChanged",null);_.t([_.Z({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],GI);
_.cwv=_.oq()(GI,"ytd-flow-root-renderer",function(){if(Ww5!==void 0)return Ww5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Ww5=d},{mode:_.qk("kevlar_poly_si_batch_j025")?1:2});var pVj;var u4=null;_.iV(_.H1(function(d){return _.x("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.x("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.x(_.j$,{text:function(){return d.data().text}}),_.x("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"sg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.dl}});var glO=_.H1(function(d){var H=d.playerControlsProps;var K=d.isShortsPage;return _.x("yt-bigboard",null,_.x(_.n,{cond:function(){return H().isDragging},
then:function(){return _.x("div",{class:"ytBigboardStoryboardHost"},_.x(_.hcG,{progressBarProps:H,isShortsPage:K}))}}))},"tg");
glO.idomCompat=!0;_.oc={ACCOUNT_LABEL:IP("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:IP("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:IP("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:IP("AD_BADGE_HINT"),AD_BADGE_TEXT:IP("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:IP("ALL_CHANNELS_LABEL"),AMBIENT_MODE:IP("AMBIENT_MODE"),AMBIENT_MODE_OFF:IP("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:IP("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:IP("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:IP("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:IP("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:IP("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:IP("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:IP("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:IP("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:IP("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:IP("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:IP("AUTO_ZOOM","Auto zoom"),BACK:IP("BACK"),CANCEL:IP("CANCEL"),CHANNEL_SWITCHER_LABEL:IP("CHANNEL_SWITCHER_LABEL"),CLOSE:IP("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:IP("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:IP("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:IP("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:IP("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:IP("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:IP("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:IP("COMMENT_MODAL_CONTENT"),CONFIRM_OK:IP("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:IP("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:IP("COPIED_TO_CLIPBOARD"),COPY:IP("COPY"),COPY_DEBUG_INFO:IP("COPY_DEBUG_INFO"),COPY_EMBED_CODE:IP("COPY_EMBED_CODE"),
COPY_LINK_LABEL:IP("COPY_LINK_LABEL"),COPY_VIDEO_URL:IP("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:IP("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:IP("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:IP("DELETE_FROM_DOWNLOADS"),DIALOG:IP("DIALOG"),DONE:IP("DONE"),DOWNLOAD:IP("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:IP("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:IP("FLAG_CONFIRM"),FLAG_CONTENT:IP("FLAG_CONTENT"),FLAG_LABEL:IP("FLAG_LABEL"),FLAG_TITLE:IP("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:IP("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:IP("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:IP("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:IP("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:IP("HIDE_SEARCH_FILTERS_LABEL"),HOME:IP("HOME","Home"),INVALID_RESPONSE_RECEIVED:IP("INVALID_RESPONSE_RECEIVED"),LIBRARY:IP("LIBRARY","Library"),LISTENING:IP("LISTENING"),LOADING:IP("LOADING"),LONG_PRESS_MIC_TO_SPEAK:IP("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:IP("LOOP"),MENU_DESKTOP:IP("MENU_DESKTOP"),
MENU_EXIT:IP("MENU_EXIT"),MENU_FEEDBACK:IP("MENU_FEEDBACK"),MENU_HELP:IP("MENU_HELP"),MENU_IMPRESSUM:IP("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:IP("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:IP("MENU_SETTINGS"),MENU_SIGN_IN:IP("MENU_SIGN_IN"),MENU_TITLE:IP("MENU_TITLE"),MENU_YOUR_DATA:IP("MENU_YOUR_DATA"),MORE_INFO:IP("MORE_INFO"),MORE_OPTIONS:IP("MORE_OPTIONS"),MUTE_VOLUME:IP("MUTE_VOLUME"),NEW_PLAYLIST:IP("NEW_PLAYLIST"),NEXT_VIDEO:IP("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:IP("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:IP("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:IP("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:IP("NOT_FOUND_TITLE"),NO_DOWNLOADS:IP("NO_DOWNLOADS"),NO_MIC_INPUT:IP("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:IP("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:IP("OOPS_MESSAGE"),OPEN_APP:IP("OPEN_APP"),OPEN_YOUTUBE:IP("OPEN_YOUTUBE"),PAUSE:IP("PAUSE"),PLAY:IP("PLAY"),PLAYER_CAPTION:IP("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:IP("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:IP("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:IP("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:IP("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:IP("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:IP("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:IP("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:IP("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:IP("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:IP("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:IP("PLAYER_MINIMIZE"),PLAYER_NEXT:IP("PLAYER_NEXT"),PLAYER_PAUSE:IP("PLAYER_PAUSE"),PLAYER_PLAY:IP("PLAYER_PLAY"),
PLAYER_PREVIOUS:IP("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:IP("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:IP("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:IP("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:IP("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:IP("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:IP("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:IP("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:IP("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:IP("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:IP("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:IP("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:IP("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:IP("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:IP("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:IP("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:IP("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:IP("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:IP("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:IP("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:IP("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:IP("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:IP("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:IP("PLAY_ALL"),PLEASE_FIX_ERRORS:IP("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:IP("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:IP("PREVIOUS_VIDEO"),PRIVACY_POLICY:IP("PRIVACY_POLICY"),RELOAD:IP("RELOAD"),REQUIRED_LABEL:IP("REQUIRED_LABEL"),SAVE_PLAYLIST:IP("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:IP("SCRUB_SLIDE_USER_EDU"),SEARCH:IP("SEARCH","Search"),
SEARCH_APPEND_LABEL:IP("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:IP("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:IP("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:IP("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:IP("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:IP("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:IP("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:IP("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:IP("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:IP("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:IP("SEEK_SLIDER"),SETTINGS_LABEL:IP("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:IP("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:IP("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:IP("SHOW_LESS"),SHOW_MORE:IP("SHOW_MORE"),SHOW_PLAYER_CONTROLS:IP("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:IP("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:IP("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:IP("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:IP("SIGN_IN_ON_WEB"),STABLE_VOLUME:IP("STABLE_VOLUME"),STABLE_VOLUME_OFF:IP("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:IP("STABLE_VOLUME_ON"),STATS_FOR_NERDS:IP("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:IP("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:IP("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:IP("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:IP("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:IP("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:IP("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:IP("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:IP("TIMESTAMP_SECONDS"),TOGGLE_OFF:IP("TOGGLE_OFF"),TOGGLE_ON:IP("TOGGLE_ON"),TRENDING:IP("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:IP("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:IP("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:IP("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:IP("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:IP("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:IP("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:IP("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:IP("VIDEO_LINK_LABEL")};var i5O=_.H1(function(d){var H=d.playerApi;d=_.Af("button",function(c){_.$B(c,36843)});
var K=IP("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.x("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.x("button",{el:d,class:"ytPlayerControlsJumpForwardButtonButton",title:K,"aria-label":K,"on:click":_.n7(function(){_.KC(36843);H&&H().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.x("span",null,_.x(_.hu,{icon:"FAST_FORWARD"}))))},"ug");var GNO=_.H1(function(d){var H=d.appApi;d=_.Af("button",function(c){_.$B(c,62946)});
var K=IP("OPEN_IN_MINIPLAYER");return _.x("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.x("button",{el:d,class:"ytMiniplayerButtonButton",title:K,"aria-label":K,"on:click":_.n7(function(){_.KC(62946);var c,p;(p=(c=H()).openInMiniplayer)==null||p.call(c);return!1})},_.x(_.hu,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"vg");var olU=_.H1(function(d){var H=d.playerApi;d=_.Af("button",function(g){_.$B(g,142812)});
var K=_.q(_.GO(!1,void 0,"I3VCyb")),c=K.next().value,p=K.next().value;K=function(){return IP("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(c()?1:2)})};
return _.x("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.x("button",{el:d,class:"ytPlaybackSpeedButtonButton",title:K,"aria-label":K,"on:click":_.n7(function(){_.KC(142812);if(H){var g=H(),a=c();g.setPlaybackRate(a?1:2);p(!c())}return!1})},_.x("span",null,_.x(_.hu,{icon:function(){return c()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"wg");var q_0=_.H1(function(d){var H=d.title;var K=d.ariaLabel;var c=d.icon;var p=d.command;var g=d.veType;d=_.Af("button",function(a){g&&_.$B(a,g())});
return _.x("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.x("button",{el:d,class:"ytdThumbnailOverlayButtonButton",title:H,"aria-label":K,"on:click":_.n7(function(){g&&_.KC(g());p&&_.Kj().resolve(_.cb).resolveCommand(p())})},_.x(_.hu,{icon:c})))},"xg");var Vh="";var aQb=_.H1(function(d){var H=d.playerControlsProps,K=d.onClickFn;d=_.ey(function(){var g=H(),a=-1;g.captionsAvailable&&(a=g.captionsEnabled?1:0);return a},void 0,"WecR8e");
var c=_.ey(function(){var g=H();return g.captionsAvailable?_.Vz(g.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Vz("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),p=_.ey(function(){var g=H();
g=g.captionsAvailable?g.captionsEnabled:void 0;return g},void 0,"Q17ly");
return _.x("yt-closed-captions-toggle-button",null,_.x(_.RKU,{captionIconType:d,ariaLabel:c,ariaPressed:p,onClick:function(g){var a=H();if(a.captionsAvailable){var e=a.playerApi;if(e){var k=a.playerApi;if(k){var C=Vh;if(C){k=k.getOption("captions","track");var R;Vh=(R=k?k.displayName:null)!=null?R:C}else _.HH(k)?(C=_.UpF(k),Vh=C.length?(R=vmZ(C))?R.displayName:C[0].displayName:""):Vh=""}dMt(e);_.h("mweb_disable_set_state_captions_killswitch")&&a.setState({captionsEnabled:!a.captionsEnabled})}}var V,
U;(U=(V=a.appApi).showCaptionsToggleToast)==null||U.call(V,a);K==null||K(g)},
isOverlay:!0}))},"yg");var lQO=_.H1(function(d){var H=d.data;return _.x("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.x(_.tI,{data:function(){return{type:17,text:_.yj4(H().label)}}}))},"zg");var eYS=_.H1(function(d){var H=_.xM("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return d.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return d.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return d.size()==="small"?d.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
d.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.x("animated-seek-arrows",{class:_.xM("ytPlayerControlsAnimatedSeekArrowsHost")},_.x("span",{class:H}),_.x("span",{class:H}),_.x("span",{class:H}))},"Ag");
eYS.idomCompat=!0;var kN1=_.H1(function(){var d=_.Vz("PLAYER_SECONDS",{seconds_placeholder:"30"}),H=_.q(_.GO(!1,void 0,"Yj8msb")),K=H.next().value,c=H.next().value,p=_.q(_.GO(!1,void 0,"r9Z50e"));H=p.next().value;var g=p.next().value;p={};var a=_.xM("jumpForwardOverlayOverlay",(p.jumpForwardOverlayOverlayHidden=H,p));_.WE(function(){var e=null,k=null,C=function(){e!==null&&_.MO().cancelJob(e);k!==null&&_.MO().cancelJob(k);g(!0);c(!0);_.lV(_.MO(),function(){g(!1)});
e=_.lV(_.MO(),function(){g(!0);k=_.lV(_.MO(),function(){c(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",C);_.Pk(function(){window.removeEventListener("jump-forward-clicked",C)})});
return _.x("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.x(_.n,{cond:K,then:function(){return _.x("div",{class:a},_.x(eYS,{direction:1,size:"large"}),_.x("div",null,d))}}))},"Bg");var x81=_.oc.MUTE_VOLUME,nl5=_.oc.UNMUTE_VOLUME,CCj=_.H1(function(d){var H=d.muteIconType;var K=d.onClick;var c=d.useOutlineIcon;var p=d.useDelhiIcons;d=_.Af("button",function(e){_.$B(e,28662)});
var g=function(){var e=H(),k=c==null?void 0:c(),C=p==null?void 0:p(),R="",V="";switch(e){case -1:case 0:R=k?"VOLUME_OFF":C?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";V=nl5;break;case 1:R=k?"VOLUME_UP_OUTLINE":C?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";V=x81;break;case 2:R=k?"VOLUME_DOWN_OUTLINE":C?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";V=x81;break;default:_.tN(e)}return{iconName:R,ariaLabel:V}},a=function(){return g().ariaLabel};
return _.x("ytm-mute-button",{class:"ytmMuteButtonHost"},_.x("button",{el:d,class:"ytmMuteButtonButton",title:a,"aria-label":a,"on:click":_.n7(function(e){_.KC(28662);K==null||K(e);return!1})},_.x("span",null,_.x(_.hu,{icon:function(){return g().iconName}}))))},"Cg");var RYU=_.H1(function(d){var H=d.volumeProps;var K=d.onClickFn;var c=d.useOutlineIcon;var p=d.useDelhiIcons;return _.x("yt-mute-toggle-button",null,_.x(CCj,{muteIconType:function(){var g=H();return g.volumeMuted||g.volume===0?0:g.volume>50?1:2},
onClick:function(g){var a=H().playerApi;a&&(a.isMuted()?a.unMute():a.mute(!1));K==null||K(g)},
useOutlineIcon:function(){return!(c==null||!c())},
useDelhiIcons:function(){return!(p==null||!p())}}))},"Dg");
RYU.idomCompat=!0;var V1T=_.H1(function(d){var H=d.data;var K=_.Af("ytm-paid-content-overlay-renderer");return _.x("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:K,"on:animationend":_.n7(function(){K.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.x(_.Oj,{command:function(){return H().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.x(_.n,{cond:function(){var c;return(c=H().icon)==null?void 0:c.iconType},
then:function(){return _.x("span",null,_.x(_.hu,{icon:function(){var c;return(c=H().icon)==null?void 0:c.iconType}}))}}),_.x("div",{class:"ytmPaidContentOverlayText"},_.x(_.j$,{text:function(){return H().text}})),_.x(_.n,{cond:function(){return H().navigationEndpoint},
then:function(){return _.x(_.hu,{icon:"CHEVRON_RIGHT"})}})))},"Eg");
V1T.idomCompat=!0;var uIO=[].concat(_.ru([{register:function(d){var H=ZjO(d),K;(K=d().playerApi)==null||K.addEventListener("onVolumeChange",H);return function(){}}},
{register:function(d){var H=TfZ(d);d=d().playerApi;d==null||d.addEventListener("captionschanged",H);d==null||d.addEventListener("captionssettingschanged",H);d==null||d.addEventListener("onCaptionsTrackListChanged",H);return function(){}}},
{register:function(d){if(!_.h("mweb_screenreader_accessible_player"))return function(){};
var H=Q5q(d),K=document.querySelector("video");K==null||K.addEventListener("touchend",H);return function(){K==null||K.removeEventListener("touchend",H)}}},
{register:function(d){if(!_.h("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var H=Q5q(d),K=document.querySelector("video");K==null||K.addEventListener("focus",H);return function(){K==null||K.removeEventListener("focus",H)}}}]),[{register:function(d){var H=XbO(d),K;
(K=d().playerApi)==null||K.addEventListener("onStateChange",H);return function(){}}},
{register:function(d){var H=JXb(d),K;(K=d().playerApi)==null||K.addEventListener("onPlaybackRateChange",H);return function(){}}},
{register:function(d){var H=s5T(d),K;(K=d().playerApi)==null||K.addEventListener("onVideoDataChange",H);return function(){}}},
{register:function(d){var H=F1U(d),K,c;(K=d())==null||(c=K.playerApi)==null||c.addEventListener("onVideoProgress",H);return function(){}}}]);var U8v=_.H1(function(d){var H=d.data;var K=function(){return _.Vz("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+H().playbackRate})};
return _.x(_.n,{cond:function(){return H().playbackRate&&H().playbackRate!==1},
then:function(){return _.x("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.x("div",{class:"ytPlaybackRateOverlayOverlay"},_.x(eYS,{direction:1,size:"small"}),_.x("div",{class:"ytPlaybackRateOverlayLabel"},K)))}})},"Fg");var hYv=_.H1(function(d){var H=d.data;return _.x("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.x(_.n,{cond:function(){var K,c=(K=H())==null?void 0:K.playerResponse,p;return c==null?void 0:(p=c.paidContentOverlay)==null?void 0:p.paidContentOverlayRenderer},
then:function(K){return _.x(V1T,{data:K})}}))},"Hg"),LKT=_.H1(function(d){var H=d.props;
var K=d.data;var c=d.options;var p=function(){var C,R,V,U;return(C=K())==null?void 0:(R=C.playerResponse)==null?void 0:(V=R.playerConfig)==null?void 0:(U=V.inlinePlaybackConfig)==null?void 0:U.showAudioControls},g=function(){var C,R;
if(p()&&((C=c())==null?void 0:(R=C.additionalButton)==null?void 0:R.button)!==void 0){var V,U,L;C=(V=K())==null?void 0:(U=V.playerApi)==null?void 0:(L=U.getSize())==null?void 0:L.height;if(!(C===void 0||C<180)){var w,W;return(w=c())==null?void 0:(W=w.additionalButton)==null?void 0:W.button}}},a=function(){var C,R;
return(C=c())==null?void 0:(R=C.additionalButton)==null?void 0:R.thumbnailOverlayButtonRenderers},e=function(){var C,R;
return(C=c())==null?void 0:(R=C.additionalButton)==null?void 0:R.thumbnailOverlayButtonViewModels},k=function(){var C=[_.x(RYU,{volumeProps:H}),
_.x(aQb,{playerControlsProps:H})];g()===1&&C.push(_.x(i5O,{playerApi:function(){return H().playerApi}}));
g()===2&&C.push(_.x(GNO,{appApi:function(){return H().appApi}}));
g()===3&&C.push(_.x(olU,{playerApi:function(){return H().playerApi}}));
var R=a();if(g()===4&&R){R=_.q(R);for(var V=R.next(),U={};!V.done;U={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$588:void 0},V=R.next()){V=V.value;U.tooltip$jscomp$2=V.tooltip;var L=void 0,w=void 0;U.ariaLabel$jscomp$20=((L=V.accessibility)==null?void 0:(w=L.accessibilityData)==null?void 0:w.label)||U.tooltip$jscomp$2;L=void 0;U.icon$jscomp$50=(L=V.icon)==null?void 0:L.iconType;U.command$jscomp$588=V.command;U.tooltip$jscomp$2&&U.ariaLabel$jscomp$20&&U.icon$jscomp$50&&
C.push(_.x(q_0,{title:function(W){return function(){return W.tooltip$jscomp$2}}(U),
ariaLabel:function(W){return function(){return W.ariaLabel$jscomp$20}}(U),
icon:function(W){return function(){return W.icon$jscomp$50}}(U),
command:function(W){return function(){return W.command$jscomp$588}}(U)}))}}R=e();
if(g()===4&&R)for(R=_.q(R),V=R.next(),U={};!V.done;U={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$51:void 0,command$jscomp$589:void 0},V=R.next())V=V.value,U.tooltip$jscomp$3=V.title,U.ariaLabel$jscomp$21=V.accessibilityText||U.tooltip$jscomp$3,U.icon$jscomp$51=V.iconName,U.command$jscomp$589=_.T6(V.onTap),U.tooltip$jscomp$3&&U.ariaLabel$jscomp$21&&U.icon$jscomp$51&&C.push(_.x(q_0,{title:function(W){return function(){return W.tooltip$jscomp$3}}(U),
ariaLabel:function(W){return function(){return W.ariaLabel$jscomp$21}}(U),
icon:function(W){return function(){return W.icon$jscomp$51}}(U),
command:function(W){return function(){return W.command$jscomp$589}}(U)}));
return C};
return _.x(_.n,{cond:p,then:function(){return _.x("div",{class:"ytInlinePlayerControlsTopRightControls"},_.x(_.L6,{each:k},function(C){return _.x("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.x("div",{class:"ytInlinePlayerControlsButtonIcon"},C))}))}})},"Ig"),wVv=_.H1(function(d){var H=d.props;
var K=d.data;var c=d.options;d={};d=_.xM("ytInlinePlayerControlsBottomRightControls",(d.ytInlinePlayerControlsBottomRightControlsHidden=function(){var p;return YmZ(K(),c())&&((p=c())==null?void 0:p.insetProgressBar)&&(H().isHovering||H().isDragging)},d));
return _.x("div",{class:d},_.x(M1G,{data:K}),_.x(_.n,{cond:function(){var p;return!((p=c())==null?0:p.hideTimeDisplay)},
then:function(){return _.x(m8t,{props:H,data:K})}}))},"Jg"),M1G=_.H1(function(d){var H=d.data;
return _.x(_.wB,{data:function(){var K;return mQb((K=H())==null?void 0:K.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:lQO})},"Kg"),m8t=_.H1(function(d){var H=d.props;
var K=d.data;return _.x(_.n,{cond:function(){return H().isLive},
then:function(){return _.x(PC0,null)},
else:function(){return _.x(uxZ,{props:H,data:K})}})},"Lg"),uxZ=_.H1(function(d){var H=d.props;
var K=d.data;var c=_.ey(function(){var p;return PTg((p=K())==null?void 0:p.thumbnailOverlays)},void 0,"kUmuA");
return _.x("div",{class:_.xM("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.oc.PLAYER_TIME_ELAPSED+" "+_.WFi(H().playedTime)}},_.x(_.tI,{data:function(){var p=_.WFi(H().videoDuration-H().playedTime);
return Object.assign({},{type:17,text:p},c())}}))},"Mg"),PC0=_.H1(function(){var d=_.xM("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.x("div",{class:d},_.x(_.tI,{data:{type:18,text:_.oc.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Ng"),IQ5=_.H1(function(d){var H=d.props;
var K=d.data;var c=d.options;return _.x(_.uF0,{progressBarProps:H,config:function(){var p,g=_.M((p=K())==null?void 0:p.multiMarkersPlayerBar,_.idX),a;p=((a=c())==null?0:a.insetProgressBar)?2:1;var e;a=(e=c())==null?void 0:e.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:p,chapterData:g,isInlinePlayback:!0,doSeekOnClick:a,playheadDotBehavior:a?1:0}}})},"Og");_.iV(_.H1(function(d){var H=d.data;var K=d.appApi;var c=d.options;var p=zdT(H,tbv(K));d={};K={};return _.x("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.x("div",{class:_.xM("ytInlinePlayerControlsDarkenedOverlay",(d.ytInlinePlayerControlsDarkenedOverlayShow=function(){return p().isHovering},d))}),_.x(kN1,null),_.x(U8v,{data:p}),_.x(hYv,{data:H}),_.x(glO,{playerControlsProps:p,
isShortsPage:!1}),_.x("div",{class:_.xM((K.ytInlinePlayerControlsControlsHidden=function(){return p().isDragging},K))},_.x(LKT,{props:p,
data:H,options:c}),_.x(wVv,{props:p,data:H,options:c})),_.x(_.n,{cond:function(){return YmZ(H(),c())},
then:function(){return _.x(IQ5,{props:p,data:H,options:c})}}))},"Gg"),"yt-inline-player-controls",{props:{data:_.dl,
appApi:_.p7,options:_.dl}});var qd=function(){var d=_.B.apply(this,arguments)||this;d.opts=null;d.playerControlsData=null;d.playerControlsAppApi={openInMiniplayer:function(){d.openInMiniplayer()}};
d.playerControlsOptions={};d.noAnimation=!1;d.playbackIntentTriggered=!1;d.positionData=null;d.hidden=!0;d.active=!1;d.playing=!1;d.videoPreviewDataIndex=0;d.JSC$19041_playerPromise=null;d.player=null;d.enableAudioControls=!1;d.hasBeenUnmuted=!1;d.captionsHaveBeenTurnedOff=!1;d.JSC$19041_playerEvents=new Map;d.videoPreviewFetchRequest=null;d.scheduledPreviewEndJobId=null;d.JSC$19041_preventProgressSaveTimer=null;d.watchEndpointStartTimeUpdaterInterval=null;d.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};d.windowOnBlurFn=function(){d.deactivate()};
return d};
_.m(qd,_.B);_.G=qd.prototype;
_.G.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.h("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.G.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19041_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19041_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19041_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19041_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.xf(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.xf(this,this.onScroll))};
_.G.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.xf(this,this.onScroll))};
_.G.onPageTypeChange=function(){this.deactivate()};
_.G.onWindowResized=function(){this.deactivate()};
_.G.onCaptionsChanged=function(d){d=!!d.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!d);this.setCaptionSize()};
_.G.setCaptionSize=function(){var d;if(this.active&&!this.captionsHaveBeenTurnedOff&&((d=this.player)==null?0:d.getCaptionWindowContainerId())){var H;(H=this.player)==null||H.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.G.currentPageAllowed=function(){return!this.isWatchPage};
_.G.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var d=this.positionData,H=d.initialTopPosition,K=d.initialHorizontalPosition;_.eO(this.hostElement,{"--ytd-video-preview-translate-left":d.finalHorizontalPosition-K+"px","--ytd-video-preview-translate-top":d.finalTopPosition-H+"px","--ytd-video-preview-original-top-position":H+"px","--ytd-video-preview-original-horizontal-position":K+"px",
"--ytd-video-preview-initial-scale":"scale("+d.initialScale+")","--ytd-video-preview-width":d.videoPreviewWidth+"px","--ytd-video-preview-height":d.videoPreviewHeight+"px"});return!0};
_.G.handleOpenVideoPreviewAction=function(d){var H=this,K;return _.l(function(c){if(!H.currentPageAllowed())return c.return(0);H.opts=d;return(K=H.alignVideoPreviewForAnimation(d.thumbnail))?c.return(H.activate()):c.return(0)})};
_.G.onMouseLeave=function(d){this.shouldDeactivateOnMouseLeave(d)&&this.deactivate()};
_.G.onScroll=function(){var d,H;((d=this.opts)==null?0:d.isAutoplay)&&((H=this.opts)==null?0:H.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.G.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.Xp.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.G.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.G.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",qd.JSC$19040_DEFAULT_CLICK_LOCATION_BEHAVIOR,qd.JSC$19040_CLICK_LOCATION_ID_MAP)};
_.G.shouldDeactivateOnMouseLeave=function(d){d=d.relatedTarget;if(!d)return!0;var H;return(H=this.opts)!=null&&H.mediaRenderer?!_.o1(this.opts.mediaRenderer).contains(d):!0};
_.G.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.G.onPlaybackStart=function(){var d=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$19041_preventProgressSaveTimer=
_.lV(_.Xp,function(){d.resetPreventProgressSaveTimer()},1E4);
var H;if((H=this.opts)==null?0:H.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.lV(_.Xp,function(){d.hasMultipleVideoPreviews()?d.startPlaybackForNextVideo():d.deactivate()},this.opts.videoPreviewDurationMs);
var K;this.player.setGlobalCrop(((K=this.opts)==null?0:K.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.G.getRoundedCornersSize=function(){var d;if((d=this.opts)==null?0:d.roundedCornersSize){var H;return(H=this.opts)==null?void 0:H.roundedCornersSize}var K;if((K=this.opts)==null?0:K.enableRounding){var c;if(((c=this.opts)==null?void 0:c.thumbnailSize)==="small")return 1;var p;if(((p=this.opts)==null?void 0:p.thumbnailSize)==="medium")return 2;var g;if(((g=this.opts)==null?void 0:g.thumbnailSize)==="large")return 3}return _.h("web_imp_inset_progress_bar")?3:0};
_.G.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.G.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.G.onMediaContainerClick=function(d){this.isShortcutClick(d)||(this.navigateToWatch(d),d.preventDefault(),d.stopPropagation())};
_.G.activate=function(){var d=this,H,K,c,p,g,a,e,k,C;return _.l(function(R){switch(R.nextAddress){case 1:if(!d.currentPageAllowed())return R.return(0);K=(H=d.videoPreviewData)==null?void 0:H.inlinePlaybackEndpoint;c=_.y2.instance;if(!K||!c)return R.return(0);d.playbackIntentTriggered=!0;((p=d.opts)==null?0:p.mediaRenderer)&&((g=d.opts)==null||!g.isAutoplay)&&L1G(d.opts.mediaRenderer,function(){d.deactivate()});
_.vV(d,function(){d.revealPreviewUi()});
a={};_.h("enable_unknown_lact_fix_on_html5")&&(_.Kj().resolve(_.uV),a.lact=_.cd());d.videoPreviewFetchRequest=np0(c,d.getInlinePlaybackRequestData(d.videoPreviewData),a);_.e2(R,2);return R.yield(d.videoPreviewFetchRequest,4);case 4:e=R.yieldResult;if(((k=e)==null?void 0:(C=k.playabilityStatus)==null?void 0:C.status)==="OK")return R.return(d.handlePlayerResponse(e));throw Error("Pj");case 2:_.RV(R),d.deactivate();case 3:return R.return(1)}})};
_.G.getInlinePlaybackRequestData=function(d){var H,K=_.h("web_imp_player_mute_params")?((H=this.opts)==null?void 0:H.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:d.inlinePlaybackEndpoint,startPlaybackInMutedState:K}};
_.G.handlePlayerResponse=function(d){var H=this,K,c,p,g,a,e,k,C,R,V;return _.l(function(U){if(U.nextAddress==1){K=H.getInlinePlaybackVideoId();if(!(((c=d)==null?0:(p=c.videoDetails)==null?0:p.videoId)&&H.currentPageAllowed()&&H.playbackIntentTriggered&&H.opts&&K))return H.deactivate(),U.return(0);if(d.videoDetails.videoId!==K)return U.return(0);H.enableAudioControls=!!((g=d.playerConfig)==null?0:(a=g.inlinePlaybackConfig)==null?0:a.showAudioControls);d.trackingParams=H.getInlinePlaybackTrackingParams();
if(!H.inlinePlayer)return U.return(0);e={};if(C=_.M((k=H.videoPreviewData)==null?void 0:k.inlinePlaybackEndpoint,_.AP))e.watch_endpoint=C;if(H.videoPreviewData){var L,w=(L=_.M(H.videoPreviewData.inlinePlaybackEndpoint,_.AP))==null?void 0:L.startTimeSeconds;w!==void 0&&(d.playerConfig||(d.playerConfig={}),d.playerConfig.playbackStartConfig||(d.playerConfig.playbackStartConfig={}),d.playerConfig.playbackStartConfig.startPosition||(d.playerConfig.playbackStartConfig.startPosition={}),d.playerConfig.playbackStartConfig.startSeconds=
w,d.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(w*1E3))}H.inlinePlayer.loadVideoWithPlayerResponse(d,e);if(H.JSC$19041_playerPromise)return U.jumpTo(2);H.JSC$19041_playerPromise=H.inlinePlayer.getPlayerPromise();return U.yield(H.JSC$19041_playerPromise,3)}U.nextAddress!=2&&(R=U.yieldResult,R.setInlinePreview(!0),R.setSizeStyle(!1,!0),H.ytPlayerListenerBehavior.listenToPlayerEvents(R,H.JSC$19041_playerEvents),H.player=R,_.GT(H.hostElement,"player-api-ready"));((V=H.opts)==
null?0:V.showPlayerControls)&&H.videoPreviewData&&H.player&&(H.playerControlsData={playerResponse:d,isInlinePlayback:!0,thumbnailOverlays:H.videoPreviewData.thumbnailOverlays,playerApi:H.player},H.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!H.unroundCornersForPlayback,additionalButton:H.getAdditionalButtonType(H.videoPreviewData.thumbnailOverlays)});return U.return(2)})};
_.G.revealPreviewUi=function(){var d=this;this.playbackIntentTriggered&&_.TK5(this,function(){d.hasThumbnailPositionChangedSinceTriggered()||(d.updateActiveState(!0),d.noAnimation=!1)})};
_.G.hasThumbnailPositionChangedSinceTriggered=function(){var d=this.positionData,H=this.getThumbnailPositionData();return(d==null?void 0:d.initialTopPosition)!==(H==null?void 0:H.initialTopPosition)||(d==null?void 0:d.initialHorizontalPosition)!==(H==null?void 0:H.initialHorizontalPosition)};
_.G.getThumbnailPositionData=function(){var d,H;if((H=this.opts)==null||!H.thumbnail)return null;H=this.opts.thumbnail;var K=((d=this.opts)==null?0:d.cropPlayerToFillThumbnailHorizontally)?!1:!0;var c=H.getBoundingClientRect();d=c.width;H=c.height;var p=c.top+window.scrollY;c=c.left+window.scrollX;var g=K?Math.ceil(d):d;K=K?Math.ceil(H):H;var a=d/g;d={initialScale:a,initialTopPosition:p-12*a,finalTopPosition:p-12-(K-H)/2,initialHorizontalPosition:c-(12+(g-d)/2),finalHorizontalPosition:c-12-(g-d)/
2,videoPreviewWidth:g,videoPreviewHeight:K};return d};
_.G.updateActiveState=function(d){this.active=d;this.ytdReduxBehavior.dispatch(_.iZ({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:d}))};
_.G.stopPlayer=function(d){d=d.resetWatchEndpointStartTime===void 0?!1:d.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(d)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.Xp.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.G.deactivate=function(d){d=d===void 0?{}:d;d=d.resetWatchEndpointStartTime===void 0?!1:d.resetWatchEndpointStartTime;u4&&(u4.disconnect(),u4=null);this.stopPlayer({resetWatchEndpointStartTime:d});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.G.isValidThumbnailOverlayButton=function(d,H){d=d.thumbnailOverlayButtonRenderer;var K;return!!d&&!!d.tooltip&&!((K=d.icon)==null||!K.iconType)&&H.includes(d.icon.iconType)};
_.G.isValidThumbnailOverlayButtonViewModel=function(d,H){var K;d=_.M((K=d.thumbnailOverlayButtonViewModel)==null?void 0:K.overlayButton,_.OV);return!!d&&!!d.title&&!!d.iconName&&H.includes(d.iconName)};
_.G.getAdditionalButtonType=function(d){var H=this;if(_.h("web_imp_fastforward_button"))return{button:1};if(_.h("web_imp_miniplayer_button"))return{button:2};if(_.h("web_imp_playback_speed_button"))return{button:3};var K=["BOX_STACK_3"],c=(d||[]).filter(function(g){return H.isValidThumbnailOverlayButton(g,K)}).map(function(g){return g.thumbnailOverlayButtonRenderer});
if(c.length)return{button:4,thumbnailOverlayButtonRenderers:c};var p=["BOX_STACK_3"];d=(d||[]).filter(function(g){return H.isValidThumbnailOverlayButtonViewModel(g,p)}).map(function(g){return _.M(g.thumbnailOverlayButtonViewModel.overlayButton,_.OV)});
if(d.length)return{button:4,thumbnailOverlayButtonViewModels:d}};
_.G.allowCaptions=function(){var d;return!((d=this.opts)==null?0:d.forceCaptionsOff)};
_.G.allowUnmuting=function(){var d;return this.enableAudioControls&&!((d=this.opts)==null?0:d.forceMutedVolume)};
_.G.beginStartTimeUpdater=function(){var d=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.lT(function(){d.updateWatchEndpointStartTime()},1E3)};
_.G.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.G.resetPreventProgressSaveTimer=function(){this.JSC$19041_preventProgressSaveTimer!==null&&(_.Xp.cancelJob(this.JSC$19041_preventProgressSaveTimer),this.JSC$19041_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.G.updateWatchEndpointStartTime=function(d){var H=this.videoPreviewData;if(this.player&&H!=null&&H.inlinePlaybackEndpoint&&!this.JSC$19041_preventProgressSaveTimer){d=d?0:Math.floor(this.player.getCurrentTime());var K=_.M(H.navigationEndpoint,_.AP);K&&(K.startTimeSeconds=d);if(H=_.M(H.inlinePlaybackEndpoint,_.AP))H.startTimeSeconds=d}};
_.G.isShortcutClick=function(d){return!!d&&(d.ctrlKey||d.shiftKey||d.metaKey)};
_.G.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.G.openInMiniplayer=function(){var d=this,H,K;return _.l(function(c){if(c.nextAddress==1){K=(H=d.videoPreviewData)==null?void 0:H.navigationEndpoint;if(!K)return c.return();_.UT().lockupActivation=!0;return c.yield(_.nIS(_.Kj().resolve(_.Fb),K),2)}_.UT().userActivation=!0;_.VE(c)})};
_.G.navigateToWatch=function(d){var H,K=(H=this.videoPreviewData)==null?void 0:H.navigationEndpoint;if(K){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(K,d,!0);else{var c;_.h("web_thumbnail_to_watch_transition")&&((c=this.opts)==null?0:c.thumbnail)&&_.e2M(_.Kj().resolve(_.LW),this.opts.thumbnail);_.GT(this.hostElement,"yt-navigate",{endpoint:K})}this.deactivate()}};
_.G.getInlinePlaybackVideoId=function(){var d,H;return(H=_.M((d=this.videoPreviewData)==null?void 0:d.inlinePlaybackEndpoint,_.AP))==null?void 0:H.videoId};
_.G.getInlinePlaybackTrackingParams=function(){var d,H;return(d=this.videoPreviewData)==null?void 0:(H=d.inlinePlaybackEndpoint)==null?void 0:H.clickTrackingParams};
_.G.hasMultipleVideoPreviews=function(){var d;return!!(((d=this.opts)==null?0:d.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.G.startPlaybackForNextVideo=function(){var d;(d=this.opts)!=null&&d.videoPreviewData&&Array.isArray(this.opts.videoPreviewData)&&this.opts.videoPreviewData.length!==0&&(this.videoPreviewDataIndex=(this.videoPreviewDataIndex+1)%this.opts.videoPreviewData.length,this.stopPlayer({resetWatchEndpointStartTime:!0}),this.activate())};
_.H3.Object.defineProperties(qd.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.opts)==null?0:d.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.opts)==null||!d.isAdsVideo)}},
roundedCornersSmall:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===1}},
roundedCornersMedium:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===2}},
roundedCornersLarge:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===3}},
unroundCornersForPlayback:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===0}},
videoPreviewData:{configurable:!0,enumerable:!0,get:function(){var d;if(Array.isArray((d=this.opts)==null?void 0:d.videoPreviewData)){var H;return(H=this.opts)==null?void 0:H.videoPreviewData[this.videoPreviewDataIndex]}var K;return(K=this.opts)==null?void 0:K.videoPreviewData}}});
qd.prototype.onIsAdsVideoChange=qd.prototype.onIsAdsVideoChange;qd.prototype.onInlinePreviewIsEnabledChange=qd.prototype.onInlinePreviewIsEnabledChange;qd.prototype.optsChanged=qd.prototype.optsChanged;qd.prototype.onMouseLeave=qd.prototype.onMouseLeave;qd.JSC$19040_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);qd.JSC$19040_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],qd.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],qd.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.jk.YtPlayerListenerBehavior),_.O("design:type",_.vn)],qd.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],qd.prototype,"componentBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],qd.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],qd.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.i3.YtSparklesClickLocationBehavior),_.O("design:type",Object)],qd.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],qd.prototype,"opts",void 0);_.t([_.r(),_.O("design:type",Object)],qd.prototype,"playerControlsData",void 0);
_.t([_.r(),_.O("design:type",Object)],qd.prototype,"playerControlsAppApi",void 0);_.t([_.r(),_.O("design:type",Object)],qd.prototype,"playerControlsOptions",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],qd.prototype,"noAnimation",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],qd.prototype,"hidden",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],qd.prototype,"active",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],qd.prototype,"playing",void 0);_.t([_.r({selector:_.AJC}),_.O("design:type",Boolean)],qd.prototype,"inlinePreviewIsEnabled",void 0);_.t([_.r(),_.O("design:type",String)],qd.prototype,"pagePath",void 0);_.t([_.r({selector:_.NI4}),_.O("design:type",Boolean)],qd.prototype,"isWatchPage",void 0);_.t([_.I("videoPreviewData"),_.O("design:type",Object),_.O("design:paramtypes",[])],qd.prototype,"thumbnailData",null);
_.t([_.I("opts","active"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],qd.prototype,"hidePlayerControls",null);_.t([_.I("opts"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],qd.prototype,"isAdsVideo",null);_.t([_.I("opts"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],qd.prototype,"roundedCornersSmall",null);
_.t([_.I("opts"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],qd.prototype,"roundedCornersMedium",null);_.t([_.I("opts"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],qd.prototype,"roundedCornersLarge",null);_.t([_.I("opts"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],qd.prototype,"unroundCornersForPlayback",null);
_.t([_.I("opts","videoPreviewDataIndex"),_.O("design:type",Object),_.O("design:paramtypes",[])],qd.prototype,"videoPreviewData",null);_.t([_.r(),_.O("design:type",Object)],qd.prototype,"videoPreviewDataIndex",void 0);_.t([_.VP("#inline-player"),_.O("design:type",Object)],qd.prototype,"inlinePlayer",void 0);_.t([_.nK("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[MouseEvent]),_.O("design:returntype")],qd.prototype,"onMouseLeave",null);
_.t([_.Mr("opts"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qd.prototype,"optsChanged",null);_.t([_.Mr("inlinePreviewIsEnabled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qd.prototype,"onInlinePreviewIsEnabledChange",null);_.t([_.CK("isAdsVideo"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qd.prototype,"onIsAdsVideoChange",null);
_.t([_.Z({is:"ytd-video-preview",disableElementRegistration:!0})],qd);
_.T(qd,"ytd-video-preview",function(){if(pVj!==void 0)return pVj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-preview--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview-container" class="style-scope ytd-video-preview">\n  <div id="endorsement" class="style-scope ytd-video-preview"></div>\n  <div id="media-container" class="style-scope ytd-video-preview">\n    <a id="media-container-link" class="yt-simple-endpoint style-scope ytd-video-preview" href$="[[computeHref_(videoPreviewData.navigationEndpoint)]]" data="[[videoPreviewData.navigationEndpoint]]" aria-label$="[[videoPreviewData.accessibilityText]]" on-click="onMediaContainerClick">\n      <div id="thumbnail-container" class="style-scope ytd-video-preview">\n        <ytd-thumbnail data="[[thumbnailData]]" hovered="false" no-rounded-corners="" object-fit="COVER" rich-grid-thumbnail="" width="9999" class="style-scope ytd-video-preview">\n        </ytd-thumbnail>\n      </div>\n      <div id="player-container" class="style-scope ytd-video-preview">\n        <ytd-player id="inline-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_INLINE_PREVIEW" class="style-scope ytd-video-preview">\n        </ytd-player>\n      </div>\n      <div id="overlays" class="style-scope ytd-video-preview"></div>\n    </a>\n    <div id="player-controls" class="style-scope ytd-video-preview">\n      <template is="dom-if" if="[[!!playerControlsData]]" class="style-scope ytd-video-preview">\n        <yt-inline-player-controls app-api="[[playerControlsAppApi]]" data="[[playerControlsData]]" options="[[playerControlsOptions]]" class="style-scope ytd-video-preview"></yt-inline-player-controls>\n      </template>\n    </div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return pVj=d},{mode:2});
}catch(e){_._DumpException(e)}
try{
var SA5,ES1,y8U;SA5=function(d){return _.h("kevlar_watch_cinematics_invisible")||d.fullscreen&&_.h("kevlar_watch_cinematics_invisible_in_fullscreen")||d.theater&&!d.fullscreen&&_.h("kevlar_watch_cinematics_invisible_in_theater")};
ES1=function(){var d=document.createElement("canvas"),H=d.getContext("2d");if(!H)throw Error("so");_.X2(d,{position:"absolute",width:"100%",height:"100%"});return{element:d,context:H}};
y8U=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.h("kevlar_watch_cinematics_css_blur")};
_.bPb=function(d,H,K){return Math.abs(d-H)<=(K||1E-6)};
_.Ndb=function(d,H){return d==H?!0:d&&H?d.width==H.width&&d.height==H.height:!1};_.D7S=new _.Dk("notificationActionRenderer");var ftv=function(d){var H=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.ki;this.element.addEventListener("load",function(){H.loaded=!0;H.resolver.resolve(H.element)});
this.element.addEventListener("error",function(){H.failed=!0});
this.element.src=d};var A8T=function(d,H){this.image=d;this.frame=H};
A8T.prototype.drawToCanvas=function(d,H){var K=this.frame.width/this.frame.columns,c=this.frame.height/this.frame.rows,p=H.offsetX,g=H.offsetY;SA5(H)?(d.fillStyle=H.fullscreen?"#000":"#0f0f0f",d.fillRect(p,g,(H==null?void 0:H.width)||K,(H==null?void 0:H.height)||c)):d.drawImage(this.image,this.frame.column*K,this.frame.row*c,K,c,p,g,(H==null?void 0:H.width)||K,(H==null?void 0:H.height)||c)};
var jRv=function(d){this.color=d};
jRv.prototype.drawToCanvas=function(d,H){var K=H.offsetX,c=H.offsetY,p=H.width,g=H.height;d.fillStyle=SA5(H)?H.fullscreen?"#000":"#0f0f0f":this.color;d.fillRect(K,c,p,g)};var $D=function(d,H){_.xH.call(this);this.playerApi=H;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.nB(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();vSt(this,d);dfO(this);this.update()};
_.m($D,_.xH);$D.prototype.addEventListeners=function(){var d=this,H=function(){d.update()},K=function(p){d.paused||(p.type==="newdata"&&(d.mosaics.clear(),HFe(d),Ki(d)),dfO(d),d.update())},c=function(){d.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",H);this.playerApi.addEventListener("onVideoDataChange",K);this.playerApi.addEventListener("onStateChange",c);this.addOnDisposeCallback(function(){d.playerApi.removeEventListener("onVideoProgress",H);d.playerApi.removeEventListener("onVideoDataChange",K);d.playerApi.removeEventListener("onStateChange",c)})};
var vSt=function(d,H){d.cinematicContainerRenderer!==H&&(d.cinematicContainerRenderer=H,HFe(d),Ki(d),d.colorStoreUpdateJobId=_.Xp.addLowPriorityJob(function(){var K;if((K=d.cinematicContainerRenderer.colorStore)!=null&&K.sampledColors){K=Infinity;for(var c=_.q(d.cinematicContainerRenderer.colorStore.sampledColors),p=c.next();!p.done;p=c.next()){p=p.value;var g=Number(p.key);g!==0&&g<K&&(K=g);g=_.Ob(p.value);d.colorStore.set(p.key,g)}d.colorStoreTimeInterval=K}}))},HFe=function(d){d.colorStoreUpdateJobId&&
(_.Xp.cancelJob(d.colorStoreUpdateJobId),d.colorStoreUpdateJobId=void 0);
d.colorStore.clear();d.currentStoryboardColor=void 0},$fL=function(d,H){var K;
return(K=d.getStoryboardFrame(H))==null?void 0:K.url};
$D.prototype.onPlayerStateChange=function(){this.update()};
$D.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var dfO=function(d){var H=d.getStoryboardFrame(0);H&&(H=new _.nB(H.width/H.columns,H.height/H.rows),_.Ndb(d.currentStoryboardSize,H)||(d.currentStoryboardSize=H,d.publish("STORYBOARD_SIZE_CHANGED",d.currentStoryboardSize)))},KiB=function(d,H){d.currentStoryboardIndex=H;
d.pendingStoryboardIndex=NaN;H=d.getStoryboardFrame(d.currentStoryboardIndex);d.currentStoryboard=new A8T(d.mosaics.get(H.url).element,H);d.publish("STORYBOARD_CHANGED",d.currentStoryboard);d.lastUpdateTime=(0,_.$G)()};
$D.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Ki=function(d){d.currentStoryboardIndex=NaN;d.pendingStoryboardIndex=NaN;d.currentStoryboard&&(d.currentStoryboard=void 0,d.publish("STORYBOARD_CHANGED",void 0));d.lastUpdateTime=NaN};
$D.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Ki(this);else{var d=this.playerApi.getPlayerState(1);if(d===-1||d===5||d===0)Ki(this);else if(isNaN(this.lastUpdateTime)||!((0,_.$G)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(d=this.playerApi.getCurrentTime()+(this.playerApi.getPlayerState(1)===2?0:this.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs*
this.cinematicContainerRenderer.config.animationConfig.crossfadeStartOffset/1E3),this.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR")if(this.colorStore.size){d=""+Math.round(d*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var H=this.colorStore.get(d);H?H!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=H,this.currentStoryboard=new jRv(H),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.$G)()):(_.Jf(new _.m1("Could not find color for timestamp: "+d,this.cinematicContainerRenderer)),Ki(this))}else Ki(this);else cCr(this,d)}};
var cCr=function(d,H){var K=d.getStoryboardFrameIndex(H);if(K!==d.currentStoryboardIndex&&K!==d.pendingStoryboardIndex){H=$fL(d,K);var c=d.mosaics.get(H);c?c.loaded&&KiB(d,K):(d.pendingStoryboardIndex=K,K=new ftv(H),d.mosaics.set(H,K),K.resolver.promise.then(function(){if(!d.isDisposed()&&!d.paused&&!isNaN(d.pendingStoryboardIndex)){var p=$fL(d,d.pendingStoryboardIndex);if(p){var g;(g=d.mosaics.get(p))!=null&&g.loaded&&KiB(d,d.pendingStoryboardIndex)}else Ki(d)}}))}};
$D.prototype.getStoryboardFrameIndex=function(d){var H=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(d,H)};
$D.prototype.getStoryboardFrame=function(d){var H=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,K,c;return((c=(K=this.playerApi).getStoryboardFrame)==null?void 0:c.call(K,d,H))||null};
$D.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var pi=function(d,H,K,c){c=c===void 0?!1:c;_.h_.call(this);this.cinematicContainerRenderer=H;this.playerApi=K;this.theater=this.fullscreen=!1;var p;this.ambientLightThemeEnabled=!c&&!!(H==null?0:(p=H.config)==null?0:p.enableInLightTheme);this.ambientFullscreenEnabled=c&&_.h("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=c&&_.h("web_cinematic_theater_mode");this.container=document.createElement("div");d.appendChild(this.container);var g;if(_.h("web_cinematic_theater_mode")||_.h("web_cinematic_fullscreen")||
(H==null?0:(g=H.config)==null?0:g.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);pFL(this);d=this.ambientV2Container||this.container;this.backCanvas=ES1();this.frontCanvas=ES1();d.appendChild(this.backCanvas.element);d.appendChild(this.frontCanvas.element);this.storyboardManager=new $D(H,this.playerApi);_.q_(this,this.storyboardManager);this.addEventListeners();gYe(this)?iFE(this,100+cD(this)*3*2,100+cD(this)*3*2):GLc(this);
oY_(this,this.storyboardManager.currentStoryboard)};
_.m(pi,_.h_);var pFL=function(d){d.ambientV2Container?q5w(d):(_.X2(d.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+aDE(d)+", "+lD_(d)+")"}),y8U()&&_.X2(d.container,"filter","blur("+_.iT("cinematic_watch_css_filter_blur_strength",40)+"px)"))},q5w=function(d){if(d.ambientV2Container){var H=d.playerApi.getVideoAspectRatio();
_.X2(d.container,{"aspect-ratio":""+H,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.X2(d.ambientV2Container,{"aspect-ratio":""+H,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+aDE(d)+", "+lD_(d)+")"});y8U()&&_.X2(d.ambientV2Container,"filter","blur("+_.iT("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
pi.prototype.setFullscreen=function(d,H){this.fullscreen=d;this.theater=!!H;pFL(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),d=this.storyboardManager.currentStoryboard,eXe(this),d&&kLK(this,d)};
pi.prototype.addEventListeners=function(){var d=this,H=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(p){oY_(d,p)}),K=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){GLc(d)});
this.addOnDisposeCallback(function(){d.storyboardManager.unsubscribeByKey(H);d.storyboardManager.unsubscribeByKey(K)});
if(this.ambientV2Container){var c=function(){q5w(d)};
this.playerApi.addEventListener("onVideoDataChange",c);this.addOnDisposeCallback(function(){d.playerApi.removeEventListener("onVideoDataChange",c)})}};
var GLc=function(d){if(!gYe(d)){var H=d.storyboardManager.currentStoryboardSize;isNaN(H.width)||isNaN(H.height)||iFE(d,Number(H.width)+cD(d)*3*2,Number(H.height)+cD(d)*3*2)}},iFE=function(d,H,K){d.backCanvas.element.width=H;
d.backCanvas.element.height=K;d.frontCanvas.element.width=H;d.frontCanvas.element.height=K},gYe=function(d){return d.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},oY_=function(d,H,K){K=K===void 0?!1:K;
var c=d.frontCanvas.element.getAnimations()[0];c?(c.pause(),d.backCanvas.context.globalAlpha=Number(getComputedStyle(d.frontCanvas.element).opacity),d.frontCanvas.element.style.opacity="0",c.finish()):d.backCanvas.context.globalAlpha=1;d.backCanvas.context.drawImage(d.frontCanvas.element,0,0,d.backCanvas.element.width,d.backCanvas.element.height);eXe(d);H&&kLK(d,H);H=H?d.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.iT("cinematic_watch_fade_out_duration",500);c=_.iT("cinematic_watch_transition_frame_rate")/
1E3;var p={};c&&(p={easing:"steps("+Math.round(H*c)+")"});(K===void 0?0:K)||d.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:H,iterations:1},p));d.frontCanvas.element.style.opacity="1"},eXe=function(d){var H=d.ambientLightThemeEnabled||d.ambientTheaterModeEnabled,K=d.ambientLightThemeEnabled||d.ambientFullscreenEnabled;
d.frontCanvas.context.fillStyle=d.theater&&H||d.fullscreen&&K?"#000":"#0f0f0f";y8U()||(d.frontCanvas.context.filter="blur(0)");d.frontCanvas.context.fillRect(0,0,d.frontCanvas.element.width,d.frontCanvas.element.height)},kLK=function(d,H){y8U()||(d.frontCanvas.context.filter="blur("+cD(d)+"px)");
d.frontCanvas.context.globalAlpha=d.fullscreen&&d.ambientFullscreenEnabled||d.theater&&d.ambientTheaterModeEnabled?_.iT("cinematic_watch_effect_letterbox_opacity",.4):_.iT("cinematic_watch_effect_opacity",.4);var K={offsetX:cD(d)*3,offsetY:cD(d)*3,theater:d.theater,fullscreen:d.fullscreen};gYe(d)&&(K.width=100,K.height=100);H.drawToCanvas(d.frontCanvas.context,K);d.frontCanvas.context.globalAlpha=1},cD=function(d){var H;
return(H=d.cinematicContainerRenderer.config.blurStrength)!=null?H:5},aDE=function(d){var H,K;
if((d.fullscreen||d.theater)&&((H=d.cinematicContainerRenderer.config)==null?0:(K=H.watchFullscreenConfig)==null?0:K.colorSourceWidthMultiplier))return d.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var c;return(c=d.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?c:d.cinematicContainerRenderer.config.colorSourceSizeMultiplier},lD_=function(d){var H,K;
if((d.fullscreen||d.theater)&&((H=d.cinematicContainerRenderer.config)==null?0:(K=H.watchFullscreenConfig)==null?0:K.colorSourceHeightMultiplier))return d.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var c;return(c=d.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?c:d.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
pi.prototype.disposeInternal=function(){_.h_.prototype.disposeInternal.call(this);this.container.remove()};
pi.prototype.clear=function(){oY_(this,void 0,!0)};
pi.prototype.pause=function(){this.storyboardManager.pause()};var xfr;xfr=_.CV(function(){var d,H,K=!((H=(d=document.createElement("canvas")).getContext)==null||!H.call(d,"2d")),c;d=!((c=CSS)==null||!c.supports("filter: blur(0)"));c=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var p;return K&&d&&c&&!((p=CSS)==null||!p.supports("aspect-ratio: 1 / 1"))});
_.gL=function(d,H){_.xH.call(this);this.container=d;this.playerApi=H;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=nYK(this);this.update()};
_.m(_.gL,_.xH);_.C1e=function(d){var H=document.documentElement.hasAttribute("dark");d.isDarkModeEnabled=H;d.update()};
_.RXS=function(d,H){d.settingEnabled=H;d.update()};
_.gL.prototype.setFullscreen=function(d,H){this.fullscreen=d;this.theater=!!H;this.update()};
_.VlE=function(d,H){d.cinematicContainerRenderer=H;d.cinematicContainerRenderer&&(d.cinematicsVe=_.l8(d.isShorts()?227858:159022),_.ec(_.hR(),d.cinematicsVe),d.loggingClientData={watchCinematicContainerData:{presentationStyle:d.cinematicContainerRenderer.presentationStyle}});d.update()};
_.gL.prototype.isShorts=function(){var d,H;return((d=this.cinematicContainerRenderer)==null?void 0:(H=d.config)==null?void 0:H.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.gL.prototype.isAllowed=function(){var d;if(d=xfr()){var H,K,c;d=((K=this.cinematicContainerRenderer)==null?void 0:K.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((c=this.cinematicContainerRenderer)==null||!c.colorStore)||((H=this.cinematicContainerRenderer)==null?void 0:H.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(d)if(_.h("web_cinematics_pausing")){var p,g;d=this.isDarkModeEnabled||!!((p=this.cinematicContainerRenderer)==
null?0:(g=p.config)==null?0:g.enableInLightTheme)}else{var a,e;p=!!((a=this.cinematicContainerRenderer)==null?0:(e=a.config)==null?0:e.enableInLightTheme)&&(_.Fm("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);d=this.isDarkModeEnabled||p}if(a=d){var k,C;a=!((C=(k=this.prefersReducedMotionQuery)==null?void 0:k.matches)!=null&&C)}return a};
_.Ufe=function(d){(d=d.currentCinematicEffect)!=null&&(d=d.storyboardManager,d.paused=!1,dfO(d),d.update())};
_.gL.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var nYK=function(d){if(!_.h("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var H=window.matchMedia("(prefers-reduced-motion: reduce)"),K=function(){d.update()};
H.addListener(K);d.addOnDisposeCallback(function(){H.removeListener(K)});
return H}};
_.gL.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var d=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new pi(this.container,d,this.playerApi,this.isDarkModeEnabled),_.q_(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var H=this.currentCinematicEffect;H.cinematicContainerRenderer!==
d&&(H.cinematicContainerRenderer=d,vSt(H.storyboardManager,d),pFL(H));d=_.Lo();_.Mo(0,194,!0);d.save();d=_.Fj();this.cinematicsVe&&d&&_.No(d,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(d=_.Fj(),this.cinematicsVe&&d&&_.Di(d,[this.cinematicsVe],!1,this.loggingClientData),_.AA(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.H3.Object.defineProperties(_.gL.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var U7b;var hwU;_.zn({_template:function(){if(hwU!==void 0)return hwU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-pages--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_pages.tp.yt.iron.pages.css.js--\x3e<slot class="style-scope tp-yt-iron-pages"></slot>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=
d.content,K=H.insertBefore;U7b===void 0&&(U7b=document.createElement("template"));var c=U7b;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return hwU=d},
is:"tp-yt-iron-pages",behaviors:[_.WZ,_.Nr],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var MFg;_.mKj=function(){if(_.h("kevlar_home_skeleton")&&!MFg){var d=document.querySelector("#home-page-skeleton");d&&(_.Fw("hgcr"),_.nA(d),MFg=!0)}};
MFg=!1;_.WL=new _.Dk("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var gTZ,Gqj,oT1,q1T,aPZ,lPZ,eNt,kqj,nTU,Cpj,UyG,L4v,M_U,hNt,RNG,V_0,Pp5;_.pP1=function(d,H,K){H=H===void 0?5:H;if(H!==0){var c=typeof d==="function"?d():document.querySelector(d);c?(K==null?0:K.enableSmartFocus)?_.NfC(c):c.focus():setTimeout(function(){_.pP1(d,H-1,K)},500)}};
gTZ=function(d){return String.raw.apply(String,[{raw:d}].concat(_.ru(_.sH.apply(1,arguments).map(function(H){return H instanceof Array?H.join(""):H}))))};
Gqj=function(d){var H=_.sH.apply(1,arguments),K=H.length;if(!Array.isArray(d)||!Array.isArray(d.raw)||d.length!==d.raw.length||!_.q50&&d===d.raw||!(_.q50&&!_.aDS||_.MN(d))||K+1!==d.length)throw new TypeError("$");return new i$b(Object.freeze({strings:Object.freeze(d),args:Object.freeze(H)}))};
oT1=function(d){return _.k4Y(_.emi(d&16777215))<.5};
q1T=function(d,H,K){var c=K.minimumRowsOfVideosBetweenSections===void 0?1:K.minimumRowsOfVideosBetweenSections;return d<(K.minimumRowsOfVideosAtStart===void 0?2:K.minimumRowsOfVideosAtStart)||H!==null&&d-H<=c?!1:!0};
aPZ=function(d,H){var K=0,c=0;d=_.q(d);for(var p=d.next();!p.done;p=d.next()){var g=p.value;if(g.richItemRenderer)g.richItemRenderer.rowIndex=c,g.richItemRenderer.colIndex=K++,K===H&&(K=0,c++);else if(g.richGroupRenderer&&g.richGroupRenderer.numColumns!==void 0)g.richGroupRenderer.rowIndex=c,g.richGroupRenderer.colIndex=K,K+=g.richGroupRenderer.numColumns,K===H&&(K=0,c++);else if(g.richSectionRenderer){var a=p=void 0;if(g=_.M((p=g)==null?void 0:(a=p.richSectionRenderer)==null?void 0:a.content,_.LC3))g.rowIndex=
c++}}};
lPZ=function(d,H){var K=H.contentElement;H=H.rendererToTagNameMap;if(K&&H&&H.size!==0){for(var c=new Map,p=_.q(K.children),g=p.next();!g.done;g=p.next()){g=g.value;var a=g.tagName.toLowerCase(),e=c.get(a);e||(e=[],c.set(a,e));e.push(g)}if(c.size!==0)for(p=Math.min(d.length,K.children.length),g=new Map,a=0;a<p;a++){e=Object.keys(d[a])[0];e=H.get(e);if(!e)break;var k=g.get(e);k===void 0&&(k=0,g.set(e,k));var C=c.get(e);if(!C||k>=C.length)break;g.set(e,k+1);e=C[k];k=K.children[a];k!==e&&(_.pof=!0,_.gzX.set(e,
!0),K.insertBefore(e,k),_.gzX.delete(e),_.pof=!1)}}};
eNt=function(d,H,K,c,p,g,a){c=c===void 0?{}:c;if(!d||!d.length)return{orderedContent:[]};d=d.slice();var e=[],k=[];p=null;for(var C=0,R=function(A){k.sort(function(y,v){return v.skippedOnRow-y.skippedOnRow});
for(var E,N=(E=k.shift())==null?void 0:E.content;N;)!N.richSectionRenderer&&A||e.push(N),E=void 0,N=(E=k.shift())==null?void 0:E.content},V=void 0,U=void 0,L=new Set;d.length>0||k.length>0;){for(var w=[],W=H;W>0;){var J=void 0,F=void 0,Y=(F=k[0]&&k[0].skippedOnRow<C?(J=k.shift())==null?void 0:J.content:void 0)!=null?F:d.shift();
if(!Y)break;if(Y.richItemRenderer)J=Y.richItemRenderer.targetId,F=void 0,J&&((F=a)==null?0:F.has(J))&&(F=a.get(J),!V||F&&F.timestamp>V.timestamp)&&(V=F,U&&L.add(U),U=J),w.push(Y),W--;else if(Y.richGroupRenderer&&Y.richGroupRenderer.numColumns!==void 0)Y.richGroupRenderer.numColumns<=W?(w.push(Y),W-=Y.richGroupRenderer.numColumns):W===H&&Y.richGroupRenderer.numColumns>H?(w.push({richGroupRenderer:Object.assign({},Y.richGroupRenderer,{numColumns:H})}),W=0):k.push({content:Y,skippedOnRow:C});else if(Y.richSectionRenderer)if(q1T(C,
p,c)&&W===H){e.push(Y);p=C;C++;continue}else k.push({content:Y,skippedOnRow:C});else if(Y.continuationItemRenderer){R(!0);e.push(Y);W=0;break}if(W===0)e.push.apply(e,_.ru(w));else if(!K&&d.length===0){R(!1);e.push.apply(e,_.ru(w));W=0;break}}C++;V&&(e.push(V.content),C++);U=V=void 0}aPZ(e,H);g&&lPZ(e,g);return{orderedContent:e,pinnedContentNotShownTargetIds:L}};
kqj=function(){return _.sH.apply(0,arguments).flat().filter(function(d){return d}).join(";")};
nTU=function(){return Gqj(xyZ,kqj.apply(null,_.ru(_.sH.apply(0,arguments))))};
Cpj=function(d){switch(d){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
UyG=function(d,H){if(H){var K=_.dn().getState().entities.flowStateEntity,c=RNG(d),p=[H];c&&c!==H&&p.push(c);var g=!0,a;if(K&&d.flowStateEntityKey&&((a=K[d.flowStateEntityKey])==null?void 0:a.primaryButtonDisabled)!==void 0){var e;g=!((e=K[d.flowStateEntityKey])==null||!e.primaryButtonDisabled)}V_0(d,c!=null?c:H,p,g)}};
L4v=function(d){return _.LU(_.dn(),function(H){return H.entities.flowStateEntity},function(H,K){if(d.flowStateEntityKey){var c,p=H==null?void 0:(c=H[d.flowStateEntityKey])==null?void 0:c.currentStepId,g;
K=K==null?void 0:(g=K[d.flowStateEntityKey])==null?void 0:g.currentStepId;g=_.dn().getState().talkToRecs;if(p&&p!==K){var a;H=(H==null?void 0:(a=H[d.flowStateEntityKey])==null?void 0:a.stepIdStack)||Object.keys(g.stepStates);a=!hNt(g==null?void 0:g.stepStates[p]);V_0(d,p,H,a)}}})};
M_U=function(d){return _.LU(_.dn(),_.$Qg,function(H){var K=RNG(d);if(K){var c=Object.keys(H.stepStates);H=!hNt(H==null?void 0:H.stepStates[K]);V_0(d,K,c,H)}})};
hNt=function(d){var H=Object.keys((d==null?void 0:d.selectionStates)||{}).reduce(function(g,a){return g||(d==null?void 0:d.selectionStates[a].isSelected)},!1),K,c,p=!!(d==null?0:(K=d.userQuery)==null?0:(c=K.userQuery)==null?0:c.trim());
return H||p};
RNG=function(d){if(d.flowStateEntityKey){var H,K,c=(H=_.dn().getState().entities.flowStateEntity)==null?void 0:(K=H[d.flowStateEntityKey])==null?void 0:K.currentStepId;if(c)return c}};
V_0=function(d,H,K,c){_.dn().dispatch(_.PI("flowStateEntity",d.flowStateEntityKey,{currentStepId:H,stepIdStack:K,key:d.flowStateEntityKey,primaryButtonDisabled:c}))};
_.myj=function(d,H){return _.xL(d.entities,"youchatPendingResponseEntity",H)};
_.wP5=function(d){return function(H){_.jO(_.PI("youchatPendingResponseEntity",d,{entityKey:d,isPendingResponse:H}))}};
Pp5=function(d){d==null||d.addEventListener("DOMLoaded",function(){d.goToAndPlay(d.totalFrames-48,!0)})};
_.jy=function(d){this.__isSoyCss=!0;this.css=gTZ.apply(null,[d.strings].concat(_.ru(d.args)))};
_.jy.prototype.toString=function(){return this.css};
var i$b=function(){_.jy.apply(this,arguments)};
_.m(i$b,_.jy);var xyZ=_.y$(["",""]);var uSt;var IP0;_.zn({_template:function(){if(IP0!==void 0)return IP0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-material--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_material.tp.yt.paper.material.css.js--\x3e<slot class="style-scope tp-yt-paper-material"></slot>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
var H=d.content,K=H.insertBefore;uSt===void 0&&(uSt=document.createElement("template"));var c=uSt;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return IP0=d},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var rx0=new _.Dk("talkToRecsFlowRenderer");var W4T=new _.Dk("flowRootRenderer");var B3g=new _.Dk("learningJourneyQuizViewModel");var zNG=new _.Dk("chipsShelfViewModel");var XPZ=new _.Dk("responsiveContainerConfiguration");var JxG=new _.Dk("horizontalShelfViewModel");_.s0q=new _.Dk("engagementPanelSectionListRenderer");var F4G=new _.Dk("conversationResourceViewModel");var Z$Z=function(){this.horizontal=!1},T3O=function(d,H){d.horizontal=H};
Z$Z.prototype.position=function(d,H,K,c){c=c===void 0?1:c;d=this.delta(d)*c+H;c=Math.max(H,K);return d>=Math.min(H,K)&&d<=c?d:K};
Z$Z.prototype.axis=function(d){d=this.direction(d);return d==="up"||d==="down"?"Y":"X"};var qm=function(d,H,K){H=H===void 0?_.Ik():H;this.target=d;this.manager=H;this.touchAction=K;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
qm.prototype.attach=function(){if(!this.attached){this.attached=!0;this.eventMap={swipedown:this.onSwipeDown,swipeup:this.onSwipeUp,panstart:this.onPanStart,panright:this.onPanMove,panleft:this.onPanMove,panmove:this.onPanMove,panend:this.onPanEnd};this.manager.registerTouchEvents.apply(this.manager,[this.target,this.directions,this.touchAction].concat(_.ru(this.events)));for(var d=_.q(this.events),H=d.next();!H.done;H=d.next())this.listen(H.value)}};
qm.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.ru(this.events)));for(var d=_.q(this.events),H=d.next();!H.done;H=d.next())this.unlisten(H.value)}};
qm.prototype.listen=function(d){this.eventMap[d]&&this.target.addEventListener(d,this.eventMap[d])};
qm.prototype.unlisten=function(d){this.eventMap[d]&&this.target.removeEventListener(d,this.eventMap[d])};var al=function(){Z$Z.apply(this,arguments)};
_.m(al,Z$Z);al.prototype.direction=function(d){var H=d.detail;d=H.deltaY;H=H.deltaX;return d&&!this.horizontal?d>0?"down":"up":H&&this.horizontal?H>0?"right":"left":"none"};
al.prototype.distance=function(d){return Math.abs(this.delta(d))};
al.prototype.delta=function(d){var H=this.direction(d),K=d.detail;d=K.deltaX;K=K.deltaY;return H==="up"||H==="down"?K||0:d||0};
al.prototype.velocity=function(d){var H=this.direction(d),K=d.detail;d=K.velocityX;K=K.velocityY;return Math.abs(H==="up"||H==="down"?K||0:d||0)};_.lb=function(d,H,K,c,p,g){p=p===void 0?new al:p;g=g===void 0?_.Ik():g;qm.call(this,H,g,c);var a=this;this.element=d;this.target=H;this.config=K;this.input=p;this.manager=g;this.events=["panstart","panmove","panend"];this.onPanStart=function(){a.config.draggingClass&&a.element.classList.add(a.config.draggingClass);a.config.startAction&&a.config.startAction()};
this.onPanMove=function(e){var k=Q0b(a,e);if(k){a.move(e,k);k.fade&&a.fade(e,k);var C=a.input.direction(e);k.moveAction&&k.moveAction(t_O(a,e,k),C)}};
this.onPanEnd=function(e){var k,C,R,V,U,L;return _.l(function(w){if(w.nextAddress==1){a.animationRequestId&&cancelAnimationFrame(a.animationRequestId);a.animationRequestId=void 0;k=Q0b(a,e);if(!k)return w.return();C=k;R=C.triggerAction;V=C.fade;U=C.disableFinish;L=C.translateBack;var W=a.input.velocity(e),J=a.input.distance(e),F=a.threshold(k);return W>.3&&J>10||J>F?U?w.jumpTo(6):V?w.yield(Y1T(a,e),6):w.yield(O$S(a,e,k),6):L?w.yield(a.translateBack(e),3):w.jumpTo(3)}w.nextAddress!=3&&R&&R();a.config.draggingClass&&
a.element.classList.remove(a.config.draggingClass);a.reset();_.VE(w)})};
d=Object.keys(K.triggers);this.directions=new Set(d);T3O(this.input,this.directions.has("right")||this.directions.has("left"))};
_.m(_.lb,qm);_.lb.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var Q0b=function(d,H){H=d.input.direction(H);return d.config.triggers[H]};
_.lb.prototype.move=function(d,H){var K=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var c=K.input.axis(d),p=K.input.position(d,K.config.startPosition,H.endPosition,H.moveRatio||1);K.element.style.transform="translate"+c+"("+p+"px)";K.animationRequestId=void 0}))};
var t_O=function(d,H,K){var c=K.moveRatio||1;K=Math.abs(d.config.startPosition-K.endPosition);return Math.min(d.input.distance(H)*c,K)/K};
_.lb.prototype.fade=function(d,H){var K=H.endOpacity;d=t_O(this,d,H);d>0&&(this.element.style.opacity=""+(((K||0)-1)*d+1))};
_.lb.prototype.threshold=function(d){return d.threshold?d.threshold:Math.abs(d.endPosition-this.config.startPosition)/3};
var O$S=function(d,H,K){var c,p,g,a,e,k,C;return _.l(function(R){if(R.nextAddress==1)return c=d.input.delta(H)+d.config.startPosition,p=d.input.axis(H),g=K,a=g.endPosition,e=g.transitionEndPosition,C=(k=e)!=null?k:a,R.yield(d.element.animate([{transform:"translate"+p+"("+c+"px)"},{transform:"translate"+p+"("+C+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);d.element.style.transform="translate"+p+"("+C+"px)";_.VE(R)})};
_.lb.prototype.translateBack=function(d){var H=this,K,c;return _.l(function(p){if(p.nextAddress==1){if(!H.element.style.transform)return p.return();K=H.input.axis(d);c=H.config.startPosition;return p.yield(H.element.animate([{transform:H.element.style.transform},{transform:"translate"+K+"("+c+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}H.element.style.transform="translate"+K+"("+c+"px)";_.VE(p)})};
var Y1T=function(d,H){var K,c,p,g;return _.l(function(a){if(a.nextAddress==1)return K=d.input.delta(H)+d.config.startPosition,c=d.input.axis(H),p=K+70,g=d.element.style.opacity===""?1:d.element.style.opacity,a.yield(d.element.animate([{transform:"translate"+c+"("+K+"px)",opacity:g},{transform:"translate"+c+"("+p+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);d.element.style.transform="translate"+c+"("+p+"px)";d.element.style.opacity="0";_.VE(a)})};var eZ=function(){var d=_.hB.apply(this,arguments)||this;d._noAccessors=!0;d.scrollRate=3;d.autoScrollAnimationStart=0;d.autoScrollPaused=!1;d.autoScrollRafId=0;return d};
_.m(eZ,_.hB);_.G=eZ.prototype;_.G.created=function(){var d=this;this.boundAutoScrollHandler=function(H){d.autoScroll(H)}};
_.G.detached=function(){this.hostElement.removeEventListener("mouseout",_.xf(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.xf(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.xf(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.G.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.xf(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.xf(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.xf(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.xf(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.xf(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.xf(this,this.endAutoScroll)),this.endAutoScroll())};
_.G.autoScroll=function(d){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=d);var H;if(H=!this.autoScrollPaused&&this.scrollTarget)H=this.scrollTarget,H=H.scrollHeight-H.scrollTop!==H.clientHeight;H&&(H=1E3/this.scrollRate,d-=this.autoScrollAnimationStart,d>H&&(this.scrollTarget.scrollTop+=Math.ceil(d/H),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.G.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.G.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
eZ.prototype.autoScrollEnabledChanged=eZ.prototype.autoScrollEnabledChanged;_.t([_.r(),_.O("design:type",Object)],eZ.prototype,"scrollRate",void 0);_.t([_.r(),_.O("design:type",Object)],eZ.prototype,"scrollTarget",void 0);_.t([_.r(),_.O("design:type",Boolean)],eZ.prototype,"autoScrollEnabled",void 0);_.t([_.CK("autoScrollEnabled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],eZ.prototype,"autoScrollEnabledChanged",null);_.t([_.LK()],eZ);_.S1j=[eZ.prototype];var ET1;var kN=function(){var d=_.B.apply(this,arguments)||this;d.buttonUpdate=_.h("web_button_rework");d.dismissButtonOverrides=_.h("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;d.forceDarkTheme=!1;d.forceLightTheme=!1;d.dynamicTextHeight=94;d.hasOverflowButton=!1;d.isInfeedModernization=!1;return d};
_.m(kN,_.B);_.G=kN.prototype;_.G.computeUrlImg=function(d){if(d)return _.od(d.thumbnails)};
_.G.getLogoHeight=function(d){return this.logoWithPadding(d)?"31":"24"};
_.G.getLogoClassName=function(d){return this.logoWithPadding(d)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.G.logoWithPadding=function(d){var H,K;return(d=(H=d.thumbnails)==null?void 0:(K=H[0])==null?void 0:K.height)&&d%31===0?!0:!1};
_.G.sendImpressionEndpoints=function(d){d.impressionEndpoints&&_.aF(this.hostElement,d.impressionEndpoints)};
_.G.observeBasicPalette=function(){var d,H,K=(d=this.data)==null?void 0:(H=d.colorData)==null?void 0:H.basicColorPaletteData;K?_.Bg(this.hostElement,K):_.Bg(this.hostElement,{})};
_.G.observeDataChanged=function(){var d;this.dynamicTextHeight=((d=this.data)==null?0:d.supplementalText)?74:94;var H;this.hasSupplementalText=!((H=this.data)==null||!H.supplementalText);if(_.h("web_button_rework")){var K,c,p,g;d=(K=this.data)==null?void 0:(c=K.actionButton)==null?void 0:(p=c.buttonRenderer)==null?void 0:(g=p.colorData)==null?void 0:g.basicColorPaletteData;var a,e,k;if(!((a=this.data)==null?0:(e=a.actionButton)==null?0:(k=e.buttonRenderer)==null?0:k.style)&&d){this.computeIsInfeedModernization(this.data)||
(d.borderColor=d.foregroundTitleColor);var C,R;this.set("data.actionButton.buttonRenderer",_.rs.unsafeClone((C=this.data)==null?void 0:(R=C.actionButton)==null?void 0:R.buttonRenderer))}}};
_.G.observeDataForCounterfactual=function(){if(_.h("kevlar_banner_cf_extra_logging")){var d;((d=this.data)==null?0:d.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.G.computeSupplementalStyle=function(){var d;if((d=this.data)!=null&&d.supplementalText){var H,K,c;if((H=this.data)==null?0:(K=H.colorData)==null?0:(c=K.basicColorPaletteData)==null?0:c.foregroundActivatedColor)return d=_.Yi(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+d+"; --yt-endpoint-hover-color:"+d+"; --yt-endpoint-visited-color:"+d+"; --yt-formatted-string-bold-font-weight:700;"}};
_.G.computeForcedDarkTheme=function(){var d,H,K,c=(d=this.data)==null?void 0:(H=d.actionButton)==null?void 0:(K=H.buttonRenderer)==null?void 0:K.style,p,g,a;d=oT1(((p=this.data)==null?void 0:(g=p.colorData)==null?void 0:(a=g.basicColorPaletteData)==null?void 0:a.backgroundColor)||0);return c&&d};
_.G.computeForcedLightTheme=function(){var d,H,K,c=(d=this.data)==null?void 0:(H=d.actionButton)==null?void 0:(K=H.buttonRenderer)==null?void 0:K.style,p,g,a;d=!oT1(((p=this.data)==null?void 0:(g=p.colorData)==null?void 0:(a=g.basicColorPaletteData)==null?void 0:a.backgroundColor)||0);return c&&d};
_.G.computeHasOverflowButton=function(d){return!!d.overflowButton};
_.G.computeHasTitle=function(d){return!!d.title};
_.G.computeTitleMaxFontSize=function(d){return this.computeHasOverflowButton(d)?28:64};
_.G.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.G.computeIsInfeedModernization=function(){var d,H,K,c,p=(d=this.data)==null?void 0:(H=d.actionButton)==null?void 0:(K=H.buttonRenderer)==null?void 0:(c=K.colorData)==null?void 0:c.basicColorPaletteData;return(p==null?void 0:p.backgroundColor)===452984831||(p==null?void 0:p.backgroundColor)===218103808};
kN.prototype.observeDataForCounterfactual=kN.prototype.observeDataForCounterfactual;kN.prototype.observeDataChanged=kN.prototype.observeDataChanged;kN.prototype.observeBasicPalette=kN.prototype.observeBasicPalette;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],kN.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],kN.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],kN.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],kN.prototype,"buttonUpdate",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],kN.prototype,"hasSupplementalText",void 0);_.t([_.r(),_.O("design:type",Object)],kN.prototype,"dismissButtonOverrides",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.O("design:type",Boolean)],kN.prototype,"hasTitle",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.O("design:type",Object)],kN.prototype,"forceDarkTheme",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.O("design:type",Object)],kN.prototype,"forceLightTheme",void 0);_.t([_.r(),_.O("design:type",Object)],kN.prototype,"dynamicTextHeight",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.O("design:type",Object)],kN.prototype,"hasOverflowButton",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.O("design:type",Object)],kN.prototype,"isInfeedModernization",void 0);_.t([_.CK("data.colorData.basicColorPaletteData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kN.prototype,"observeBasicPalette",null);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kN.prototype,"observeDataChanged",null);_.t([_.CK("data.isVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kN.prototype,"observeDataForCounterfactual",null);_.t([_.Z({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],kN);
_.T(kN,"ytd-banner-promo-renderer",function(){if(ET1!==void 0)return ET1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.isVisible]]" class="style-scope ytd-banner-promo-renderer">\n  <div class="ytd-banner-promo-renderer-background style-scope ytd-banner-promo-renderer">\n    <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" hidden="[[data.overflowButton]]" overrides="[[dismissButtonOverrides]]" on-click="onDismissClick" class="style-scope ytd-banner-promo-renderer">\n    </ytd-button-renderer>\n    <ytd-menu-renderer id="overflow-button" data="[[data.overflowButton.menuRenderer]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-banner-promo-renderer">\n    </ytd-menu-renderer>\n    <div class="ytd-banner-promo-renderer-layout-container style-scope ytd-banner-promo-renderer">\n      <div class="ytd-banner-promo-renderer-layout style-scope ytd-banner-promo-renderer">\n        <img alt="" class="ytd-banner-promo-renderer-inline-image style-scope ytd-banner-promo-renderer" src$="[[computeUrlImg(data.backgroundImage)]]">\n        <template is="dom-if" if="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n          <h1 class$="[[getLogoClassName(data.logoImage)]] style-scope ytd-banner-promo-renderer">\n            <yt-img-shadow height$="[[getLogoHeight(data.logoImage)]]" thumbnail="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n            </yt-img-shadow>\n          </h1>\n        </template>\n        <div class="ytd-banner-promo-renderer-content style-scope ytd-banner-promo-renderer">\n          <div class="dynamic-text-container style-scope ytd-banner-promo-renderer">\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-short style-scope ytd-banner-promo-renderer" font-family="[[data.titleFontFamily]]" hidden="[[!data.title]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.title]]">\n            </yt-dynamic-sizing-formatted-string>\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-long style-scope ytd-banner-promo-renderer" hidden="[[!data.promoText]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.promoText]]">\n            </yt-dynamic-sizing-formatted-string>\n          </div>\n          <yt-attributed-string class="badge-text style-scope ytd-banner-promo-renderer" data="[[data.badgeText]]" hidden="[[!data.overflowButton]]">\n          </yt-attributed-string>\n          <yt-formatted-string class="supplemental-text style-scope ytd-banner-promo-renderer" style$="[[computeSupplementalStyle()]]" text="[[data.supplementalText]]">\n          </yt-formatted-string>\n          <ytd-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" invisible$="[[!data.actionButton.buttonRenderer]]" class="style-scope ytd-banner-promo-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ET1=d},{mode:1});var yxO;var b$Z;var N3Z;var xN=function(){return _.B.apply(this,arguments)||this};
_.m(xN,_.B);_.t([_.r(),_.O("design:type",Object)],xN.prototype,"data",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.t([_.Z({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],xN);
_.T(xN,"ytd-hashtag-grid-tile-renderer",function(){if(N3Z!==void 0)return N3Z;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-hashtag-grid-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]">\n  <div id="info" class="style-scope ytd-hashtag-grid-tile-renderer">\n    <yt-formatted-string id="hashtag" aria-label="[[data.suggestion]]" text="[[data.hashtag]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="hashtag-info" text="[[data.hashtagVideoCountText]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return N3Z=d},{mode:1});var np=function(){return _.B.apply(this,arguments)||this};
_.m(np,_.B);np.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
np.prototype.updateRichGridTrendingHashtagsVisibility=function(){var d,H;if(((d=this.data)==null||!d.isExpanded)&&(H=this.data)!=null&&H.tiles){d=this.data.tiles.length;H=d>this.richGridItemsPerRow?this.richGridItemsPerRow+1:d;var K=Math.ceil(d/H);this.fullyVisibleRows=d%H===1&&K===2?1:Math.min(K,2);this.isShowMoreVisible=this.fullyVisibleRows<K}};
np.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
np.prototype.updateRichGridTrendingHashtagsVisibility=np.prototype.updateRichGridTrendingHashtagsVisibility;_.t([_.r(),_.O("design:type",Object)],np.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Number)],np.prototype,"fullyVisibleRows",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],np.prototype,"isShowMoreVisible",void 0);_.t([_.r({selector:_.sc,value:0}),_.O("design:type",Number)],np.prototype,"richGridItemsPerRow",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],np.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],np.prototype,"ytdReduxBehavior",void 0);_.t([_.CK("data","richGridItemsPerRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],np.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.t([_.Z({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],np);
_.T(np,"ytd-hashtag-grid-shelf-renderer",function(){if(b$Z!==void 0)return b$Z;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-text" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-formatted-string id="title" text="[[data.shelfTitle]]" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="tiles" class="style-scope ytd-hashtag-grid-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return b$Z=d},{mode:1});var DyZ;var fPj;var Cp=function(){var d=_.B.apply(this,arguments)||this;d.visibleVideos=[];d.hiddenVideos=[];d.modern=_.h("web_modern_buttons");d.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return d};
_.m(Cp,_.B);_.G=Cp.prototype;_.G.attached=function(){var d=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",d);this.onDarkModeToggledAction(d)};
_.G.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.header":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},visibleVideos:{id:"visible-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},
properties:{metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{metadataColor:"[[videoMetadataColor]]"}}}},hiddenVideos:{id:"hidden-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",
metadataColor:"[[videoMetadataColor]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.G.dataChanged=function(){var d=this;this.requestElementsPerRow();var H,K;this.currentColorPalette=this.isDarkTheme?(H=this.data)==null?void 0:H.darkColorData:(K=this.data)==null?void 0:K.lightColorData;var c;if((c=this.currentColorPalette)==null?0:c.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.vV(this,function(){d.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.G.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.G.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.G.computeIsFirstFeedItem=function(d){return d};
_.G.onDarkModeToggledAction=function(d){d!==this.isDarkTheme&&this.set("isDarkTheme",d);this.data&&(this.currentColorPalette=d?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.G.getCurrentLogo=function(d,H){if(d)return H?d.darkLogoImage:d.lightLogoImage};
_.G.computeTitleStyle=function(d){var H;if((H=this.data)!=null&&H.title&&d&&d.textPrimary!==void 0)return"color:"+_.Yi(d.textPrimary)+";"};
_.G.computeSubtitleStyle=function(d){var H;if((H=this.data)!=null&&H.subtitle&&d&&d.textSecondary!==void 0)return"color:"+_.Yi(d.textSecondary)+";"};
_.G.computeDismissIconStyle=function(d){if(this.data&&this.data.dismissButton&&d&&d.textPrimary!==void 0)return"--yt-button-color:"+_.Yi(d.textPrimary)+";"};
_.G.computeOverflowButtonStyle=function(d){if(this.data&&this.data.overflowButton&&d&&d.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Yi(d.textPrimary)+";--yt-spec-icon-active-other:"+_.Yi(d.textPrimary)+";"};
_.G.computeBackgroundStyle=function(d){if(d&&this.data){var H="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var K=_.od((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);K&&(H+='background-image:url("'+K+'");')}d.backgroundColor!==void 0&&(H+="background-color:"+_.Ob(d.backgroundColor)+";");return H}};
_.G.computeButton=function(){var d,H=Object.assign({},_.M((d=this.data)==null?void 0:d.showMoreButton,_.Tz));if(this.modern&&H){H.style="STYLE_MONO_OUTLINE";var K;if(d=(K=this.currentColorPalette)==null?void 0:K.textPrimary)H.colorData={basicColorPaletteData:{foregroundTitleColor:d,borderColor:d}}}return H};
_.G.shouldShowBottomButton=function(d,H){return!(d==null?0:d.header)&&!(d==null||!d.primaryButton)&&H<3};
_.G.checkExpanded=function(d){this.isExpanded=d&&d.content?this.hiddenVideos.length===0:!0};
_.G.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.G.getLogoHeight=function(d){return this.logoWithPadding(d)?"26":"20"};
_.G.getLogoImageId=function(d){return this.logoWithPadding(d)?"logo-image-with-padding":"logo-image"};
_.G.computeHasSectionHeader=function(d){return!!d.header};
_.G.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var d;if((d=this.data.primaryButton)==null?0:d.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var H;((H=this.data.dismissButton)==null?0:H.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var K,c;((K=this.data)==null?0:(c=K.primaryButton)==null?0:c.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.G.setVisibleVideos=function(d){if(this.data&&this.data.content)if(this.data.content.length){var H=this.data.content.length;this.data.header?d?(this.visibleVideos=this.data.content.slice(0,Math.min(H,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.slimItemsPerRow),H)):(this.visibleVideos=this.data.content.slice(0,Math.min(H,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.elementsPerRow),H)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(H,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.elementsPerRow),H)):(this.visibleVideos=this.data.content.slice(0,Math.min(H,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.elementsPerRow-1),H))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.G.setHasMovieRenderer=function(){var d;if((d=this.data)!=null&&d.content){var H;this.hasMovieRenderer=!!_.M((H=this.data)==null?void 0:H.content[0],_.Km0)}else this.hasMovieRenderer=!1};
_.G.requestElementsPerRow=function(){_.GT(this.hostElement,"yt-request-elements-per-row")};
_.G.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var d=_.q(this.hiddenMediaRenderers),H=d.next();!H.done;H=d.next())H.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(d=_.Gn(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&d.focus()}};
_.G.updateTitleSpec=function(){var d;(d=this.data)!=null&&d.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.G.logoWithPadding=function(d){var H,K,c;return(d=(H=this.getCurrentLogo(d,this.isDarkTheme))==null?void 0:(K=H.thumbnails)==null?void 0:(c=K[0])==null?void 0:c.height)&&d%31===0?!0:!1};
_.G.onUpdateElementsPerRowAction=function(d,H,K){d&&this.elementsPerRow!==d&&(this.elementsPerRow=d);K&&this.slimItemsPerRow!==K&&(this.slimItemsPerRow=K)};
Cp.prototype.slimItemsPerRowChanged=Cp.prototype.slimItemsPerRowChanged;Cp.prototype.elementsPerRowChanged=Cp.prototype.elementsPerRowChanged;Cp.prototype.dataChanged=Cp.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Cp.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],Cp.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Cp.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Cp.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Cp.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Cp.prototype,"currentColorPalette",void 0);_.t([_.r(),_.O("design:type",Array)],Cp.prototype,"visibleVideos",void 0);_.t([_.r(),_.O("design:type",Array)],Cp.prototype,"hiddenVideos",void 0);
_.t([_.r(),_.O("design:type",Object)],Cp.prototype,"primaryButton",void 0);_.t([_.r({reflectToAttribute:!0,value:3}),_.O("design:type",Number)],Cp.prototype,"elementsPerRow",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Cp.prototype,"isDarkTheme",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Cp.prototype,"isExpanded",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Cp.prototype,"largeTitle",void 0);
_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Cp.prototype,"hasMovieRenderer",void 0);_.t([_.r(),_.O("design:type",Number)],Cp.prototype,"slimItemsPerRow",void 0);_.t([_.r(),_.O("design:type",Boolean)],Cp.prototype,"showLightVideoMetadata",void 0);_.t([_.r(),_.O("design:type",Boolean)],Cp.prototype,"showDarkVideoMetadata",void 0);_.t([_.r(),_.O("design:type",Number)],Cp.prototype,"videoMetadataColor",void 0);
_.t([_.r({reflectToAttribute:!0,selector:_.JF}),_.O("design:type",Boolean)],Cp.prototype,"miniMode",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.O("design:type",Boolean)],Cp.prototype,"isFirstFeedItem",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.O("design:type",Boolean)],Cp.prototype,"hasSectionHeader",void 0);
_.t([_.r({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],Cp.prototype,"roundedContainer",void 0);_.t([_.UI("#visible-video-container ytd-rich-grid-media"),_.O("design:type",Array)],Cp.prototype,"visibleMediaRenderers",void 0);_.t([_.UI("#hidden-video-container ytd-rich-grid-media"),_.O("design:type",Array)],Cp.prototype,"hiddenMediaRenderers",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Cp.prototype,"modern",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Cp.prototype,"dataChanged",null);_.t([_.CK("elementsPerRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Cp.prototype,"elementsPerRowChanged",null);_.t([_.CK("slimItemsPerRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Cp.prototype,"slimItemsPerRowChanged",null);
_.t([_.Z({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Cp);
_.T(Cp,"ytd-brand-video-shelf-renderer",function(){if(fPj!==void 0)return fPj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n    <div id="shelf-header-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="top-level-header-container" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="section-header-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        <div id="top-buttons-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" hidden="[[!data.primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n          <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        </div>\n      </div>\n      <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="metadata-container" hidden="[[data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="metadata-button-container" hidden="[[shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n      <div id="visible-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    </div>\n    <div id="hidden-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    <div id="bottom-button-container" hidden="[[!shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="show-more-button-container" hidden="[[isExpanded]]" class="style-scope ytd-brand-video-shelf-renderer">\n    <ytd-button-renderer id="show-more-button" data="[[computeButton(data.showMoreButton.buttonRenderer, currentColorPalette)]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" on-click="onShowMoreTap" class="style-scope ytd-brand-video-shelf-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-shelf-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return fPj=d},{mode:1});var AxT;var Rl=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return d};
_.m(Rl,_.B);_.G=Rl.prototype;_.G.attached=function(){var d=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",d);this.onDarkModeToggledAction(d)};
_.G.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.G.dataChanged=function(){this.requestElementsPerRow();var d,H;this.currentColorPalette=this.isDarkTheme?(d=this.data)==null?void 0:d.darkColorData:(H=this.data)==null?void 0:H.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.G.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.G.computeIsFirstFeedItem=function(d){return d};
_.G.onDarkModeToggledAction=function(d){d!==this.isDarkTheme&&this.set("isDarkTheme",d);this.data&&(this.currentColorPalette=d?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(d),this.updateButtonPalette())};
_.G.shouldShowThumbnailInMetadata=function(d){return d<=1};
_.G.computeVideoMetadataColor=function(){if(this.data){var d;if((d=this.currentColorPalette)==null?0:d.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.G.computeTitleStyle=function(d){var H;if((H=this.data)!=null&&H.title&&d&&d.textPrimary!==void 0)return"color:"+_.Yi(d.textPrimary)+";"};
_.G.computeSubtitleStyle=function(d){var H;if((H=this.data)!=null&&H.subtitle&&d&&d.textSecondary!==void 0)return"color:"+_.Yi(d.textSecondary)+";"};
_.G.computeOverflowButtonStyle=function(d){if(this.data&&this.data.overflowButton&&d.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Yi(d.textPrimary)+";--yt-spec-icon-active-other:"+_.Yi(d.textPrimary)+";"};
_.G.computeBackgroundStyle=function(d){if(d&&this.data){var H="";d.backgroundColor!==void 0&&(H+="background-color:"+_.Ob(d.backgroundColor)+";");return H}};
_.G.computeHasOverflowButton=function(d){return!!d.overflowButton};
_.G.updateButtonPalette=function(){if(this.data){var d;if((d=this.data.primaryButton)==null?0:d.buttonRenderer){var H;if((H=this.currentColorPalette)==null?0:H.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var K;((K=this.currentColorPalette)==null?0:K.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.G.requestElementsPerRow=function(){_.GT(this.hostElement,"yt-request-elements-per-row")};
_.G.updateTitleSpec=function(){var d;(d=this.data)!=null&&d.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.G.onUpdateElementsPerRowAction=function(d){d&&this.elementsPerRow!==d&&(this.elementsPerRow=d)};
Rl.prototype.elementsPerRowChanged=Rl.prototype.elementsPerRowChanged;Rl.prototype.dataChanged=Rl.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Rl.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Rl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],Rl.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Rl.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Rl.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Rl.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Rl.prototype,"currentColorPalette",void 0);_.t([_.r(),_.O("design:type",Object)],Rl.prototype,"primaryButton",void 0);
_.t([_.r({reflectToAttribute:!0,value:3}),_.O("design:type",Number)],Rl.prototype,"elementsPerRow",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Rl.prototype,"isDarkTheme",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],Rl.prototype,"titleSize",void 0);_.t([_.r(),_.O("design:type",Number)],Rl.prototype,"videoMetadataColor",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.JF}),_.O("design:type",Boolean)],Rl.prototype,"miniMode",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.O("design:type",Boolean)],Rl.prototype,"isFirstFeedItem",void 0);_.t([_.r({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],Rl.prototype,"roundedContainer",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.O("design:type",Boolean)],Rl.prototype,"hasOverflowButton",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Rl.prototype,"dataChanged",null);_.t([_.CK("elementsPerRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Rl.prototype,"elementsPerRowChanged",null);_.t([_.Z({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],Rl);
_.T(Rl,"ytd-brand-video-singleton-renderer",function(){if(AxT!==void 0)return AxT;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return AxT=d},{mode:_.qk("kevlar_poly_si_batch_j070")?1:2});var j0g;var vTv=_.H1(function(d){var H=d.data;return _.x(_.d7,{data:function(){return H().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(H().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var K=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":K=88;break a;default:K=88}return K},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return H().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Bj"),HiU=_.H1(function(d){var H=d.metadataRow;
var K=d.delimiter;return _.x(_.L6,{each:function(){return H().textParts||[]},
keyBy:"INDEX"},function(c,p){return _.x(_.HE,null,_.x(_.j$,{text:c,noWrap:!0,userInput:!0}),_.x(dKG,{delimiter:K,max:function(){return H().textParts.length},
index:p}))})},"Cj"),dKG=_.H1(function(d){var H=d.delimiter;
var K=d.max;var c=d.index;return _.x(_.n,{cond:function(){return(H==null?void 0:H())&&K()-1>c()},
then:function(){return _.x("span",null,H)}})},"Dj"),$K0=_.H1(function(d){var H=d.data;
d={};return _.x("yt-profile-page-header-information-view-model",{class:_.xM("profile-page-header-information-view-model-wiz",(d["profile-page-header-information-view-model-wiz--mobile"]=!1,d))},_.x(_.n,{cond:function(){return H().onTap},
then:function(){return _.x(_.Oj,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.T6(H().onTap)}},_.x(_.wB,{data:function(){return H().thumbnail}},{profilePageHeaderThumbnailViewModel:vTv}))},
else:function(){return _.x("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.x(_.wB,{data:function(){return H().thumbnail}},{profilePageHeaderThumbnailViewModel:vTv}))}}),_.x("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.x(_.n,{cond:function(){return H().onTap},
then:function(){return _.x(_.wB,{data:function(){return H().title}},{profilePageHeaderTitleViewModel:function(K){var c=K.data;
return _.x(_.Oj,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.T6(c().onTap)}},_.x(_.j$,{text:function(){return c().title}}))}})},
else:function(){return _.x(_.wB,{data:function(){return H().title}},{profilePageHeaderTitleViewModel:function(K){var c=K.data;
return _.x(_.j$,{text:function(){return c().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.x(_.wB,{data:function(){return H().metadata}},{profilePageHeaderMetadataViewModel:function(K){var c=K.data;
return _.x(_.n,{cond:function(){return c().metadataRows},
then:function(p){return _.x("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.x(_.L6,{each:p,keyBy:"INDEX"},function(g,a){return _.x(_.HE,null,_.x(HiU,{metadataRow:g,delimiter:" \u2022 "}),_.x(dKG,{delimiter:" \u2022 ",max:function(){return p().length},
index:a}))}))}})}})))},"Ej");
$K0.idomCompat=!0;_.iV($K0,"yt-profile-page-header-information-view-model",{props:{data:_.dl}});var VN=function(){return _.B.apply(this,arguments)||this};
_.m(VN,_.B);VN.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],VN.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],VN.prototype,"data",void 0);_.t([_.Z({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],VN);
_.T(VN,"ytd-effect-pivot-header-view-model",function(){if(j0g!==void 0)return j0g;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-effect-pivot-header-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-effect-pivot-header-view-model"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return j0g=
d},{mode:1});var KI5;var U2=function(){return _.B.apply(this,arguments)||this};
_.m(U2,_.B);U2.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],U2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],U2.prototype,"data",void 0);_.t([_.Z({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],U2);
_.T(U2,"ytd-source-pivot-header-renderer",function(){if(KI5!==void 0)return KI5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-source-pivot-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-source-pivot-header-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return KI5=d},{mode:1});_.chZ=_.H1(function(d){var H=d.data;var K=function(){var c;return _.Zb((c=H())==null?void 0:c.rendererContext)};
d={};return _.x("content-list-item-view-model",{el:_.$M(_.Tx(function(){return H().rendererContext})),
class:_.xM("ytContentListItemViewModelHost",(d.ytContentListItemViewModelTappable=K,d)),role:function(){return K()?"listitem":void 0},
tabindex:function(){return K()?0:void 0}},_.x("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.x("div",{class:"ytContentListItemViewModelImageContainer"},_.x(_.n,{cond:function(){return H().image},
then:function(c){return _.x(_.d7,{data:c,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.x(_.wB,{data:function(){var c;
return(c=H())==null?void 0:c.avatar}},{avatarViewModel:_.JV})),_.x("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.x("div",{class:_.xM("ytContentListItemViewModelTitle",function(){a:{switch(H().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var c="ytContentListItemViewModelProminentTitle";
break a}c=void 0}return c})},_.x(_.j$,{text:function(){return H().title}})),_.x("div",{class:"ytContentListItemViewModelMetadata"},_.x(_.wB,{data:function(){return H().metadata}},{contentMetadataViewModel:function(c){return _.x(_.Gs,{data:c.data,
layout:1})}})))),_.x("div",{class:"ytContentListItemViewModelActionButton"},_.x(_.wB,{data:function(){var c;
return(c=H())==null?void 0:c.actionButton}},{buttonViewModel:_.xk,
toggleButtonViewModel:_.zm})))},"Fj");_.iV(_.H1(function(d){var H=function(){return d.data().background},K=function(){return d.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},c=function(){return d.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.x("yt-card-view-model",{class:_.xM("ytCardViewModelHost",d.className)},_.x(_.oX,{contentId:function(){return d.data().contentId}},function(){return _.x("div",{class:_.xM("ytCardViewModelCardViewModelInner",function(){return Cpj(d.data().cardStyle)})},_.x(_.wB,{data:H},{cinematicContainerViewModel:function(p){return _.x(_.nNd,{data:p.data})}}),_.x("div",{class:"ytCardViewModelContentWrapper"},_.x(_.n,{cond:function(){return!K()},
then:function(){var p={};return _.x("div",{class:"ytCardViewModelTopContent"},_.x(_.wB,{data:function(){return d.data().topContent}},{contentListItemViewModel:function(g){return _.x(_.chZ,{data:g.data})}}),_.x("div",{class:_.xM("ytCardViewModelInlineTrailingAction",(p.ytCardViewModelInlineCenterTrailingAction=c,p))},_.x(_.wB,{data:function(){return d.data().trailingAction}},{buttonViewModel:function(g){return _.x(_.xk,{data:g.data})}})))}}),_.x("div",{class:"ytCardViewModelBodyContent"},_.x(_.wB,
{data:function(){return d.data().bodyContent}},{contentListItemViewModel:function(p){return _.x(_.chZ,{data:p.data})}}))),_.x(_.n,{cond:function(){return K()},
then:function(){return _.x("div",{class:"ytCardViewModelOverlayTrailingAction"},_.x(_.wB,{data:function(){return d.data().trailingAction}},{buttonViewModel:function(p){return _.x(_.xk,{data:p.data})}}))}}))}))},"Gj"),"yt-card-view-model",{props:{data:_.dl,
className:_.dl}});_.iV(_.H1(function(d){var H=function(){return _.M(d.data().flowRoot,W4T)};
_.WE(function(){var K=H(),c=function(){},p=function(){};
if(K){var g,a,e,k=((e=_.M((g=H())==null?void 0:(a=g.steps)==null?void 0:a[0],_.vp1))==null?void 0:e.stepId)||"";UyG(K,k);c=L4v(K);p=M_U(K)}_.Pk(function(){var C=H();C&&_.dn().dispatch(_.PI("flowStateEntity",C.flowStateEntityKey));c();c=function(){};
p();p=function(){}})});
return _.x("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.x(_.oX,{contentId:function(){return d.data().contentId}},function(){return _.x("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.x(_.n,{cond:H,
then:function(K){return _.x(_.cwv,{data:K})}}))}))},"Hj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.dl}});_.iV(_.H1(function(){return _.x("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.x("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.x("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.x(_.ElZ,null)),_.x(_.Pe6,{data:{rows:1},isExploreHub:!0}))},"Ij"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.iV(_.H1(function(d){var H=d.data;var K=d.standardUnitMinWidth;d=_.q((0,_.W8A)(H));var c=d.next().value,p=d.next().value,g=function(){var e,k=(e=c())==null?void 0:e.contents;return k==null||k.length===0},a=function(){p(Object.assign({},c(),{contents:[]}))};
return _.x("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.$M(_.cV({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var e=_.M(H().chipsShelf,zNG);if(e!=null&&e!=null&&e.autoselectChipOnVisible){var k,C,R=_.M(e==null?void 0:(k=e.contents)==null?void 0:k[(C=e.autoselectedChipIndex)!=null?C:0],_.SK);R&&R.tapCommand&&_.EG(R.tapCommand)}}}))},_.x(_.oX,{contentId:function(){return H().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.x("div",null,_.x("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.x(_.wB,{data:function(){return H().header}},{sectionHeaderViewModel:function(e){return _.x(_.xw,{data:e.data,
disableHorizontalPadding:!0})}})),_.x("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.x(_.wB,{data:function(){return H().chipsShelf}},{chipsShelfViewModel:function(e){return _.x(_.F1,{data:e.data,
callback:a,enableSingleChipSelection:!0})}})),_.x("div",null,_.x(_.n,{cond:g,
then:function(){return _.x("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.x(_.Pe6,{data:{rows:1},isExploreHub:!0}))}}),_.x(_.wB,{data:function(){var e;
return(e=c())==null?void 0:e.contents}},{richShelfRenderer:function(e){return _.x(_.z26,{data:e.data,
isInnerShelf:!0,standardUnitMinWidth:K})}})))}))},"Jj"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.dl,
standardUnitMinWidth:_.dl}});var hM=function(){return _.B.apply(this,arguments)||this};
_.m(hM,_.B);
hM.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
hM.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.t([_.u(_.to),_.O("design:type",Object)],hM.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],hM.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.yH),_.O("design:type",Object)],hM.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],hM.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Number)],hM.prototype,"standardUnitMinWidth",void 0);_.t([_.Z({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],hM);
_.T(hM,"ytd-rich-section-renderer",function(){if(DyZ!==void 0)return DyZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-section-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return DyZ=d},{mode:_.qk("kevlar_poly_si_batch_j029")?
1:2});_.iV(_.Lwv,"yt-profile-identity-info-view-model",{props:{data:_.dl,hideDivider:_.dl,isChannelInfoCard:_.dl}});_.iV(_.mmS,"yt-page-header-view-model",{props:{data:_.dl,noPadding:_.dl,enableBanner:_.dl,cinematicContainerTopbarOffset:_.dl,allowCinematicContainerOverflow:_.dl,displayAsSidebar:_.dl,displayAsPanel:_.dl,alwaysUseMediumTextDescription:_.dl}});_.iV(_.H1(function(d){var H=d.data;var K=function(){var p;return(p=H().numColumns)!=null?p:2},c=function(){return K()>1?3:2};
d={};return _.x("ytd-rich-grid-group",{class:_.xM("ytdRichGridGroupHost",(d.ytdRichGridGroupHostFirstColumn=function(){return H().colIndex===0},d)),
style:_.UQ({"--ytd-rich-grid-group-num-columns":K,"--ytd-rich-grid-items-per-group":c})},_.x("div",{class:"ytdRichGridGroupContents"},_.x(_.wB,{data:function(){var p;return(p=H().contents)==null?void 0:p.slice(0,c())}},{richItemRenderer:function(p){return _.x(_.WQ0,{data:p.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Kj"),"ytd-rich-grid-group",{props:{data:_.dl}});var Lp=function(){var d=_.B.apply(this,arguments)||this;d.resizeOnObserverInit=!1;d.isInlinePreviewDisabled=_.h("web_disable_inline_preview");d.disableStickyFilterBar=!1;d.transparentBackgroundChipsBar=!1;d.hideChipsBar=!1;d.isWatchDefaultLayout=!0;d.continuationShowButton=!1;d.rowReducedHorizontalMargin=!1;d.useCompactList=!1;d.manualDownloadsPresent=!1;d.smartDownloadsPresent=!1;d.isOnline=!1;d.shouldRenderDownloadsBanner=!1;d.shouldRenderDownloadsBannerUpsell=!1;d.hasOptedIntoSmartDownloads=!1;
d.elementsPerRow=4;d.typographyBump=!1;d.showGnomeContents=!1;d.showExploreHubContents=!1;d.slimItemsPerRow=1;d.pageLoadingFromNavigation=!1;d.loggingRefactor=_.h("kevlar_rich_grid_logging_fix");d.resizeObserver=null;d.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-signal-action-soft-reload-page":"onSoftReloadPage","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-insert-rich-section-action":"insertRichSection"};
d.rendererToTagNameMap=new Map(Object.entries(d.contentMapping()).map(function(H){var K=_.q(H);H=K.next().value;K=K.next().value;return[H,K.component]}));
d.insertedContent=new Map;return d};
_.m(Lp,_.B);_.G=Lp.prototype;_.G.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var d=_.q(_.Gn(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),H=d.next();!H.done;H=d.next())H.value.useCompactList=this.useCompactList};
_.G.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var d=_.q(_.Gn(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),H=d.next();!H.done;H=d.next())H=H.value,H.sizing=this.sizing,H.typographyBump=this.typographyBump};
_.G.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.G.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.G.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1}}};
_.G.attached=function(){document.addEventListener("yt-page-type-changed",_.xf(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21800_throttledOnResize=new _.NV(this.resizeObserved,_.iT("rich_grid_resize_delay_ms",50),this)};
_.G.detached=function(){var d;(d=this.resizeObserver)==null||d.disconnect();document.removeEventListener("yt-page-type-changed",_.xf(this,this.onPageChange))};
_.G.insertRichSection=function(d){var H=d.richItemTargetId;d=d.richSectionRendererToInsert;H&&d&&(this.insertedContent.set(H,{content:d,timestamp:Date.now()}),this.reflowContent())};
_.G.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.G.computeIsInlinePreviewEnabled=function(d,H,K){return _.h("web_disable_inline_preview")?!1:!K&&_.OjZ({miniplayerIsActive:d,miniplayerPlaybackState:H})};
_.G.computeSizing=function(){var d=_.EyY(this.data);if(d||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return d?this.useCompactList?"COMPACT":d:this.miniMode?"COMPACT":_.h("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.G.updateItemMinAndMaxWidth=function(){var d=_.iT("rich_grid_max_item_width",500);d>0&&_.eO(this.hostElement,{"--ytd-rich-grid-item-max-width":d+"px"});var H;d=this.getRichItemMinWidth((H=this.hostElement)==null?void 0:H.clientWidth);d>0&&_.eO(this.hostElement,{"--ytd-rich-grid-item-min-width":d+"px"})};
_.G.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.G.resizeObserved=function(){_.qo(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.G.navigateBackToHome=function(){_.h("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.h("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var d=_.Kj().resolve(_.HI).isOnWatch(),H,K=((H=_.Ub(location.pathname))==null?void 0:H.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(K)||d)&&this.gnomeContents&&_.h("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);d&&this.exploreHubContents&&_.h("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.dn().dispatch(_.iZ({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.G.onPageChange=function(){var d=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.h("disable_chip_select_on_nav")||_.qo(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.Xp.addJob(function(){d.pageLoadingFromNavigation=!1;_.h("disable_chip_select_on_nav")&&_.h("h5_reset_cache_and_filter_before_update_masthead")&&d.resetCacheAndIsFilteredFeed();d.setMasthead();d.maybeSetBigYoodle();d.forceRefreshAndLog();d.terminateVideoPreview();_.h("web_hide_gnome_until_user_navigates_back_to_home")&&
(d.dataChanged(),_.vV(d,function(){if(d.showGnomeContents){var H=Array.from(_.Gn(d.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(c){c=_.Gn(c).querySelector("ytd-rich-shelf-renderer");return!!c&&c.isGnomeShelf()});
if(H){H=H.offsetTop-d.contentsElement.offsetTop;var K=_.Kj().resolve(_.HI).getCurrentPage();K&&K.getPageScrollingElement().scrollTo({top:H,behavior:"smooth"})}}}));
_.h("web_hide_explore_hub_until_user_navigates_back_to_home")&&(d.dataChanged(),_.vV(d,function(){if(d.showExploreHubContents&&!_.h("web_explore_hub_no_scroll")){var H=Array.from(_.Gn(d.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(c){return!!c.querySelector("ytd-talk-to-recs-flow-renderer")});
if(H){H=H.offsetTop-d.contentsElement.offsetTop;var K=_.Kj().resolve(_.HI).getCurrentPage();K&&K.getPageScrollingElement().scrollTo({top:H,behavior:"smooth"})}}}))},8)):((_.h("web_hide_gnome_until_user_navigates_back_to_home")||_.h("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.G.dataChanged=function(){var d=this;_.qo(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.vV(this,function(){d.updateRichItemGridPositions();d.contentsElement&&_.eO(d.hostElement,{"--ytd-rich-grid-content-offset-top":d.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.G.initResizeObserver=function(){var d=this;if(window.ResizeObserver){var H;(H=this.resizeObserver)==null||H.disconnect();var K=!1;this.resizeObserver=new ResizeObserver(function(){if(K){var c;(c=d.resizeObserver)==null||c.disconnect();var p;(p=d.JSC$21800_throttledOnResize)==null||p.fire();requestAnimationFrame(function(){var a;(a=d.JSC$21800_throttledOnResize)==null||a.fire();d.initResizeObserver()})}else if(K=!0,d.resizeOnObserverInit){var g;
(g=d.JSC$21800_throttledOnResize)==null||g.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.G.contentLengthChanged=function(){if(_.h("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.qo(this.hostElement,"ytd-rich-item-index-update-action")};
_.G.updateElementsPerRow=function(){_.qo(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.iZ({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.iZ({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.G.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.G.onRichShelfRendererCollapse=function(d){if(this.shownItems){var H=d.detail;d=this.shownItems.findIndex(function(c){var p,g;return((g=_.M(c==null?void 0:(p=c.richSectionRenderer)==null?void 0:p.content,_.LC3))==null?void 0:g.trackingParams)===H});
var K=d+1;d<0||K>=this.contentsElement.children.length||!this.shownItems[K].richItemRenderer||this.contentsElement.children[K].scrollIntoView({behavior:"smooth",block:"start"})}};
_.G.onSoftReloadPage=function(){this.scrollUpToTop()};
_.G.handleRerenderDownloadsData=function(){_.h("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.G.handlePlaylistRemoveVideosAction=function(d){var H;if(((H=_.M(d,_.toB))==null?0:H.setVideoIds)&&this.data&&this.data.contents){d=_.M(d,_.toB).setVideoIds;for(H=this.data.contents.length-1;H>=0;){var K=_.M(this.data.contents[H],_.rY);(K=K&&_.M(K.content,_.Zg))&&K.setVideoId&&d.includes(K.setVideoId)&&this.splice("data.contents",H,1);H--}this.updateIndices()}};
_.G.updateIndices=function(){if(this.data&&this.data.contents)for(var d=0;d<this.data.contents.length;d++)this.set("data.contents."+d+".richItemRenderer.index",_.AF(String(d+1)))};
_.G.hasTopRowInlinePlayableVideoWithEndorsement=function(d){var H;return!((H=d.slice(0,this.getItemsPerRow()))==null||!H.some(function(K){var c;K=_.M(K==null?void 0:(c=K.richItemRenderer)==null?void 0:c.content,_.ts);var p;return(K==null?void 0:K.inlinePlaybackEndpoint)&&(K==null?void 0:(p=K.thumbnailOverlays)==null?void 0:p.some(function(g){return g.thumbnailOverlayEndorsementRenderer}))}))};
_.G.refreshGridLayoutNew=function(d,H,K,c){var p=c.postsPerRow;var g=c.slimItemsPerRow;var a=c.gameCardsPerRow;c=c.miniGameCardsPerRow;var e;if((e=this.data)==null||!e.contents||!this.containerWidth)return!1;var k;if((k=this.data.responsiveContainerConfiguration)==null?0:k.responsiveSize){var C=_.hOF(this.data.responsiveContainerConfiguration,this.containerWidth),R;e=_.yY(Object.assign({},C,{standardUnitMinWidth:(R=this.data)==null?void 0:R.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&C.isCompactList)}else e=_.yY({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(C=this.data)==null?void 0:C.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=e.typographyBump;R=!1;if(d||this.elementsPerRow!==e.numItems||this.postsPerRow!==p||this.slimItemsPerRow!==g||this.gameCardsPerRow!==
a||this.miniGameCardsPerRow!==c||this.gutter!==e.gutter)R=this.elementsPerRow!==e.numItems,this.elementsPerRow=e.numItems,this.postsPerRow=p,this.slimItemsPerRow=g,this.gameCardsPerRow=a,this.miniGameCardsPerRow=c,this.gutter=e.gutter,this.itemWidth=e.itemWidth,this.reflowContent(H),_.eO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":e.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(K);this.ytdReduxBehavior.dispatch(_.iZ({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:e.maxContainerWidth}));return R};
_.G.refreshGridLayout=function(d,H){var K,c=(K=this.hostElement)==null?void 0:K.clientWidth;this.containerWidth=this.adjustRichGridWidth(c,!0);var p;if((p=this.data)==null||!p.contents||!this.containerWidth)return d&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.h("rg_pending_reflow_ks")&&(d=!0,this.pendingForceReflow=!1);K=this.getRichItemMinWidth(c);var g=this.isShortsPanel?146:194,a=this.getMiniGameCardMinWidth(),e=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
c=K=this.calcElementsPerRow(K,e);(p=K<=3&&this.miniModeAllowed())&&(K=this.calcElementsPerRow(240,4));var k=this.calcMaxSlimElementsPerRow(K,e,this.isDefaultGrid);e=this.calcElementsPerRow(g,k);var C=this.calcElementsPerRow(this.isCompactGrid?g:154,k);g=this.calcElementsPerRow(this.isCompactGrid?g:a,k);a=!1;if(this.sizing)return this.refreshGridLayoutNew(d,H,p,{postsPerRow:c,slimItemsPerRow:e,gameCardsPerRow:C,miniGameCardsPerRow:g});if(d||this.elementsPerRow!==K||this.postsPerRow!==c||this.slimItemsPerRow!==
e||this.gameCardsPerRow!==C||this.miniGameCardsPerRow!==g)a=this.elementsPerRow!==K,this.elementsPerRow=K,this.postsPerRow=c,this.slimItemsPerRow=e,this.gameCardsPerRow=C,this.miniGameCardsPerRow=g,this.reflowContent(H),this.updateElementsPerRow(),_.eO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+
this.miniGameCardsPerRow}),(this.isShortsGridSlim||this.isShortsPanel)&&_.eO(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(p);_.qo(this.hostElement,"yt-rich-grid-layout-refreshed");return a};
_.G.getRichItemMinWidth=function(d){var H=_.iT("rich_grid_min_item_width",310);if(!_.h("kevlar_disable_min_width_override")){var K,c;H=(c=(K=this.data)==null?void 0:K.minItemWidth)!=null?c:H}return H+_.Zx4(d)};
_.G.calcMaxSlimElementsPerRow=function(d,H,K){return(K===void 0?0:K)?d===1?2:d%2===0?_.h("web_shorts_2_by_3_reduce_items_per_row")&&d>=4?d/2*3-1:d/2*3:_.h("web_shorts_2_by_3_reduce_items_per_row")&&d>=3?d+1:d+2:H*2};
_.G.adjustRichGridWidth=function(d,H){var K=_.h("disable_rich_grid_guide_compensation");if(!this.isWatch&&!K){K=_.Kj().resolve(_.$p(_.y6));var c=K==null?void 0:K.guideElement;if(!(!K||K.getData()||c!=null&&c.opened||K.getMiniGuideVisible()))if(K.canFitPersistentGuide(d)&&K.getGuideExpandsAutomatically()){var p,g,a=Number((p=window.getComputedStyle(this.hostElement))==null?void 0:(g=p.getPropertyValue("--app-drawer-width"))==null?void 0:g.replace("px",""));d-=a||0}else if(K.canFitMiniGuide(d)){var e;
p=Number((a=window.getComputedStyle(this.hostElement))==null?void 0:(e=a.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:e.replace("px",""));d-=p||0}}d>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(d-=H?32:48));return d};
_.G.calcElementsPerRow=function(d,H){var K=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),c=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((K+c)/(d+c))||1,H)};
_.G.reflowContent=function(d){var H=this;if(!this.isReflowing){this.isReflowing=!0;var K,c,p=!!((K=this.data)==null?0:(c=K.contents)==null?0:c.some(function(L){return _.M(L,_.AE)}));
K=this.getItemsPerRow();var g;c=(g=this.data)==null?void 0:g.reflowOptions;d&&(_.Fw("rgr_s"),_.vV(this,function(){_.Fw("rgr_nrf")}));
d={};(g=_.Gn(this.hostElement).querySelector("#contents"))&&(d={contentElement:g,rendererToTagNameMap:this.rendererToTagNameMap});g=(g=this.data.contents)?g.slice():[];var a=(_.h("web_hide_gnome_behind_feed_filter_chip")||_.h("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,e=_.h("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,k=-1,C=-1;if(this.isHomePage&&e){for(e=0;e<g.length;e++){var R=void 0,V=void 0;_.M((R=g[e])==null?void 0:
(V=R.richSectionRenderer)==null?void 0:V.content,rx0)&&(C=e)}C>-1&&(this.exploreHubContents=g.splice(C,1))}if(this.isHomePage&&a){for(C=0;C<g.length;C++)V=R=void 0,(e=_.M((R=g[C])==null?void 0:(V=R.richSectionRenderer)==null?void 0:V.content,_.LC3))&&a&&(V=R=void 0,e=_.M((R=e)==null?void 0:(V=R.contents)==null?void 0:V[0],_.rY),R=void 0,_.M((R=e)==null?void 0:R.content,_.LaM)&&(k=C));k>-1&&(this.gnomeContents=g.splice(k,1))}p=eNt(g,K,p,c,this.getRichGridStyle(),d,this.insertedContent);var U=p.orderedContent;
if(p=p.pinnedContentNotShownTargetIds)for(p=_.q(p),K=p.next();!K.done;K=p.next())this.insertedContent.delete(K.value);p=function(){H.shownItems=U;H.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(U),_.vV(this,p)):p()}};
_.G.getFirstRowItems=function(d){for(var H=[],K=0;K<d.length;K++){var c=void 0,p=void 0,g=void 0,a=void 0,e=void 0,k=void 0;if(((c=d[K])==null?void 0:(p=c.richItemRenderer)==null?void 0:p.rowIndex)===0||((g=d[K])==null?void 0:(a=g.richGroupRenderer)==null?void 0:a.rowIndex)===0||((e=d[K])==null?void 0:(k=e.richSectionRenderer)==null?void 0:k.rowIndex)===0)H.push(d[K]);else break}return H};
_.G.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.G.resetInsertedContentIfNeeded=function(){(_.h("web_explore_hub_on_hover")||_.h("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.G.handleChipCloudChipSelectAction=function(d,H){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed();_.h("web_hide_gnome_behind_feed_filter_chip")&&(H?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.G.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.h("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.G.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();_.h("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.G.terminateVideoPreview=function(){_.qo(this.hostElement,"yt-terminate-video-preview-action")};
_.G.updateRichItemGridPositions=function(){var d={gridData:{gridColumnCount:this.elementsPerRow}},H;if((H=this.data)==null?0:H.trackingParams)this.loggingRefactor?_.hR().stateChanged(this.data.trackingParams,d):(H=_.Fj())&&_.j5(H,_.P1(this.data.trackingParams),d);_.qo(this.hostElement,"ytd-rich-item-index-update-action")};
_.G.miniModeAllowed=function(){return this.isChannelPage};
_.G.getMiniGameCardMinWidth=function(){return 154};
_.G.updateMiniMode=function(d){this.miniMode=this.miniModeAllowed()&&d;this.ytdReduxBehavior.dispatch(_.iZ({type:"SET_RICH_GRID_MINI_MODE",payload:d}))};
_.G.isCurrentPage=function(){return location.pathname===this.pagePath};
_.G.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var d=_.Kj().resolve(_.HI).getCurrentPage();d&&d.setScrollTop(0)}};
_.G.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.G.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.G.maybeSetBigYoodle=function(){var d,H=(d=this.data)==null?void 0:d.bigYoodle;this.bigYoodleData!==H&&(this.bigYoodleData=H)};
_.G.setMasthead=function(){var d;((d=this.data)==null?0:d.masthead)?this.mastheadData=this.data.masthead:_.h("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.G.getRichGridStyle=function(){var d,H;return(H=(d=this.data)==null?void 0:d.style)!=null?H:"RICH_GRID_STYLE_UNKNOWN"};
_.G.onIsShortsGridChange=function(){var d=this.ytdReduxBehavior,H=d.dispatch,K=this.getRichGridStyle();H.call(d,_.iZ({type:"SET_RICH_GRID_STYLE",payload:K}))};
_.H3.Object.defineProperties(Lp.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var d;return(((d=this.data)==null?void 0:d.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var d;return(((d=this.data)==null?void 0:d.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var d=_.Kj().resolve(_.HI).getCurrentPage(),H,K,c;return(((H=this.data)==null?void 0:H.targetId)==="browse-feedFEsfv_audio_pivot"||_.h("web_enable_channel_pivot_panel")&&((K=this.data)==null?void 0:K.targetId)==="browse-feedFEsfv_channel_pivot"||_.h("web_enable_effect_pivot_panel")&&((c=this.data)==null?void 0:c.targetId)==="browse-feedFEsfv_effect_pivot")&&(d==null?void 0:d.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.h("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null?0:d.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var d;return((d=_.Kj().resolve(_.HI).getCurrentPage())==null?void 0:d.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var d;return((d=_.Kj().resolve(_.HI).getCurrentPage())==null?void 0:d.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var d;return this.hideChipsBar||(((d=this.data)==null?void 0:d.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.h("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var d;return(((d=this.data)==null?void 0:d.targetId)||"")==="watch-next-feed"&&!_.h("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return((d=this.data)==null?0:d.enableContentSpecificAspectRatio)||((H=this.data)==null?0:(K=H.responsiveContainerConfiguration)==null?0:K.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.iT("web_continuation_handler_margin",0):0}}});
Lp.prototype.onIsShortsGridChange=Lp.prototype.onIsShortsGridChange;Lp.prototype.onReloadContinuationFinish=Lp.prototype.onReloadContinuationFinish;Lp.prototype.reflowContent=Lp.prototype.reflowContent;Lp.prototype.handleRerenderDownloadsData=Lp.prototype.handleRerenderDownloadsData;Lp.prototype.onRichShelfRendererCollapse=Lp.prototype.onRichShelfRendererCollapse;Lp.prototype.onRequestElementsPerRow=Lp.prototype.onRequestElementsPerRow;Lp.prototype.contentLengthChanged=Lp.prototype.contentLengthChanged;
Lp.prototype.dataChanged=Lp.prototype.dataChanged;Lp.prototype.onSizingChange=Lp.prototype.onSizingChange;Lp.prototype.onUseCompactListChange=Lp.prototype.onUseCompactListChange;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Lp.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.WZ),_.O("design:type",Object)],Lp.prototype,"ironResizableBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Lp.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.yH),_.O("design:type",Object)],Lp.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Lp.prototype,"componentBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Lp.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Lp.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0,selector:_.JF}),_.O("design:type",Boolean)],Lp.prototype,"miniMode",void 0);_.t([_.r({value:[]}),_.O("design:type",Array)],Lp.prototype,"shownItems",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],Lp.prototype,"isReflowing",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],Lp.prototype,"isFilteredFeed",void 0);_.t([_.r({selector:_.yJi}),_.O("design:type",Boolean)],Lp.prototype,"guideIsExpanded",void 0);
_.t([_.r({selectorArgs:["entitySelectorType"],selector:function(d,H){if(_.h("kevlar_modern_downloads_page")&&H&&H!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(H){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":H=d.entities;var K=_.BW(H),c=_.zR(H),p=_.qsl(d),g=_.oCY(d),a=_.afF(d),e=_.sS5(H),k=_.w0(K),C=_.Xv(H);return _.k04(K,c,e,_.QS1(H),p,g,k,C,a,_.el4(d),_.TR(d));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return d=_.BW(d.entities),_.nhl(d);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return d=
_.zt1(d.entities),_.CcM(d);default:_.Jf(new _.m1("Error: entitySelectorType defined but not matched in selector.",d,H))}}}),
_.O("design:type",Object)],Lp.prototype,"entityDrivenRichGridData",void 0);_.t([_.r(),_.O("design:type",Object)],Lp.prototype,"resizeOnObserverInit",void 0);_.t([_.r(),_.O("design:type",Object)],Lp.prototype,"bigYoodleData",void 0);_.t([_.r(),_.O("design:type",Object)],Lp.prototype,"mastheadData",void 0);_.t([_.r(),_.O("design:type",Boolean)],Lp.prototype,"isInlinePreviewDisabled",void 0);_.t([_.r(),_.O("design:type",Object)],Lp.prototype,"disableStickyFilterBar",void 0);
_.t([_.r(),_.O("design:type",Object)],Lp.prototype,"transparentBackgroundChipsBar",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Lp.prototype,"hideChipsBar",void 0);_.t([_.r(),_.O("design:type",Object)],Lp.prototype,"isWatchDefaultLayout",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Lp.prototype,"continuationShowButton",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Lp.prototype,"rowReducedHorizontalMargin",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Lp.prototype,"useCompactList",void 0);_.t([_.r({selector:function(d){return _.zR(d.entities).length>0}}),
_.O("design:type",Object)],Lp.prototype,"manualDownloadsPresent",void 0);_.t([_.r({selector:function(d){return _.BW(d.entities).length>0}}),
_.O("design:type",Object)],Lp.prototype,"smartDownloadsPresent",void 0);_.t([_.r({selector:_.TR}),_.O("design:type",Object)],Lp.prototype,"isOnline",void 0);_.t([_.r({selector:_.oCY}),_.O("design:type",Object)],Lp.prototype,"shouldRenderDownloadsBanner",void 0);_.t([_.r({selector:_.el4}),_.O("design:type",Object)],Lp.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.t([_.r({selector:_.qsl}),_.O("design:type",Object)],Lp.prototype,"hasOptedIntoSmartDownloads",void 0);
_.t([_.CK("useCompactList"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lp.prototype,"onUseCompactListChange",null);_.t([_.CK("sizing","typographyBump"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lp.prototype,"onSizingChange",null);_.t([_.r({selector:_.jSF}),_.O("design:type",Number)],Lp.prototype,"miniplayerPlaybackState",void 0);_.t([_.r({selector:_.Fv}),_.O("design:type",Boolean)],Lp.prototype,"miniplayerIsActive",void 0);
_.t([_.r({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.O("design:type",Boolean)],Lp.prototype,"isInlinePreviewEnabled",void 0);_.t([_.r({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.O("design:type",String)],Lp.prototype,"sizing",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Lp.prototype,"elementsPerRow",void 0);
_.t([_.r(),_.O("design:type",Object)],Lp.prototype,"typographyBump",void 0);_.t([_.r(),_.O("design:type",Number)],Lp.prototype,"itemWidth",void 0);_.t([_.VP("#header"),_.O("design:type",HTMLElement)],Lp.prototype,"headerElement",void 0);_.t([_.VP("#contents"),_.O("design:type",HTMLElement)],Lp.prototype,"contentsElement",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lp.prototype,"dataChanged",null);
_.t([_.Mr("data.contents.length"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lp.prototype,"contentLengthChanged",null);_.t([_.nK("yt-request-elements-per-row"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lp.prototype,"onRequestElementsPerRow",null);
_.t([_.nK("yt-rich-shelf-renderer-collapse"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Lp.prototype,"onRichShelfRendererCollapse",null);_.t([_.Mr("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lp.prototype,"handleRerenderDownloadsData",null);
_.t([_.I("data"),_.O("design:type",String),_.O("design:paramtypes",[])],Lp.prototype,"entitySelectorType",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.targetId"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lp.prototype,"isSub",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.targetId"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lp.prototype,"isWatch",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data.targetId"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lp.prototype,"isShortsPanel",null);_.t([_.r({reflectToAttribute:!0}),_.I("isWatch"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lp.prototype,"reducedTopMargin",null);_.t([_.r({reflectToAttribute:!0}),_.I("data","isWatch","isWatchDefaultLayout"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lp.prototype,"noTopMargin",null);
_.t([_.r({reflectToAttribute:!0}),_.I("isInlinePreviewEnabled","shownItems"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lp.prototype,"topRowEndorsement",null);_.t([_.I("data.header"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lp.prototype,"hideHeader",null);_.t([_.nK("yt-rich-grid-reflow"),_.O("design:type",Function),_.O("design:paramtypes",[Boolean]),_.O("design:returntype")],Lp.prototype,"reflowContent",null);
_.t([_.nK("yt-reload-continuation-finish"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lp.prototype,"onReloadContinuationFinish",null);_.t([_.I("data"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lp.prototype,"isSlimGrid",null);_.t([_.I("data"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lp.prototype,"isShortsGrid",null);
_.t([_.I("data","isSlimGrid","isShortsGrid"),_.r(),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lp.prototype,"noRichItemGutterMargins",null);_.t([_.I("data"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lp.prototype,"isShortsGridSlim",null);_.t([_.I("data"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lp.prototype,"isCompactGrid",null);
_.t([_.I("data"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lp.prototype,"isDefaultGrid",null);_.t([_.I("data.targetId"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lp.prototype,"hideChipsBarOnHome",null);_.t([_.I("data.targetId"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lp.prototype,"hideChipsBarOnWatch",null);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lp.prototype,"onIsShortsGridChange",null);_.t([_.I("data.enableContentSpecificAspectRatio"),_.r(),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lp.prototype,"force16By9ThumbnailAspectRatio",null);_.t([_.I("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],Lp.prototype,"continuationTriggerOffset",null);_.t([_.Z({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],Lp);
_.T(Lp,"ytd-rich-grid-renderer",function(){if(yxO!==void 0)return yxO;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return yxO=d},{mode:2});var pD1=_.H1(function(d){var H=d.thumbsUp,K=d.thumbsDown,c=d.rightAlignThumbs;d=_.q(_.GO(!1,void 0,"FjNDrf"));var p=d.next().value,g=d.next().value;d=_.q(_.GO(!1,void 0,"Tphjfb"));var a=d.next().value,e=d.next().value;d={};return _.x("div",{class:_.xM("ytwThumbsUpDownThumbs",(d.ytwThumbsUpDownRightAlign=function(){return c==null?void 0:c()},d))},_.x(_.zm,{data:H,
onToggle:function(k){g(k);a()&&e(!1)},
buttonShapeOverrides:function(){return{toggled:p()}}}),_.x(_.zm,{data:K,
onToggle:function(k){e(k);p()&&g(!1)},
buttonShapeOverrides:function(){return{toggled:a()}}}))},"Lj");
pD1.idomCompat=!0;var iig=_.H1(function(d){var H=function(){return d.data().pendingStateEntityKey||""},K=_.Uj(_.myj,H),c=function(){var e;
if(!(e=d.disabled())){var k;e=!((k=K())==null||!k.isPendingResponse)}return e},p=_.q(_.GO(nTU(""),void 0,"aC8eBe")),g=p.next().value,a=p.next().value;
_.Is(function(){requestAnimationFrame(function(){var e=d.data().onShowAnimationMs||0;e=e>0?nTU("--chip-animation-duration: "+e+"ms;"):nTU("");a(e)})});
return _.x("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:g},_.x(_.L6,{each:function(){return d.data().chipData||[]},
keyBy:"REFERENCE"},function(e){return _.x(gDg,{data:e,disabled:c,pendingStateKey:H,onError:d.onError})}))},"Mj"),gDg=_.H1(function(d){var H=_.jV("button"),K=_.q(_.GO(!0,void 0,"NaMiCd")),c=K.next().value,p=K.next().value,g=function(){return d.data().text.content},a=_.n7(function(e){var k,C,R,V,U,L,w,W;
return _.l(function(J){switch(J.nextAddress){case 1:e.stopPropagation();if(d.disabled())return J.return();C=String(Math.floor(((k=_.k6())==null?void 0:k.getCurrentTime())||0)*1E3);R="youchat-"+Date.now();V=function(){_.Yv(d.data().onClick||{});var F={continuationCommand:{token:d.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},Y={inputComposerFormData:{clientMessageId:R,playerOffsetMs:C}};return new Promise(function(A,E){_.Yv(F,{form:{formData:Y},commandController:{onSuccess:function(N,
y){A(y)},
onServerError:function(N,y){E(y.error)}}})})};
U=_.wP5(d.pendingStateKey());U(!0);_.pP1("#youchat-input, ytd-engagement-panel-section-list-renderer #footer yt-chat-input-view-model textarea, ytm-engagement-panel-section-list-renderer .engagement-panel-section-list-footer-wrapper yt-chat-input-view-model button");p(!1);_.e2(J,2);return J.yield(V(),4);case 4:_.Em(J,3);break;case 2:L=_.RV(J),(W=(w=d).onError)==null||W.call(w,L);case 3:U(!1),_.VE(J)}})});
return _.x(_.n,{cond:c,then:function(){return _.x("div",{class:"ytwYouChatChipsDataChipWrapper"},_.x("button",{el:H,class:"ytwYouChatChipsDataChip","data-disabled":d.disabled,"on:click":a,tabindex:0},g))}})},"Nj");var GBG=_.H1(function(d){var H=d.data;var K=d.initiallyExpanded;var c=function(){var C;return(C=H().conversationResourceData)==null?void 0:C.learningGuideData};
d=_.q(_.V2(function(){var C;return(C=K==null?void 0:K())!=null?C:!1}));
var p=d.next().value,g=d.next().value,a=function(){g(!0)},e=_.ey(function(){var C,R;
return(R=(C=c())==null?void 0:C.sections)!=null?R:[]},void 0,"xl8NRc"),k=_.ey(function(){return e().length>4},void 0,"oAM7of");
d=_.ey(function(){var C;return!p()&&k()&&(C=c())!=null&&C.expandButton?e().slice(0,4):e()},void 0,"uzQ9rc");
return _.x("yt-conversation-resource-view-model",{class:_.xM("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.x(_.wB,{data:d},{expandableMetadataViewModel:_.Xvj}),_.x(_.n,{cond:function(){return k()&&!p()},
then:function(){return _.x("div",{id:"showMoreButton"},_.x(_.wB,{data:function(){var C;return(C=c())==null?void 0:C.expandButton}},{buttonViewModel:function(C){return _.x(_.xk,{data:C.data,
onClick:a})}}))}}))},"Oj");var oDG=_.H1(function(d){var H=function(){var y;return(y=d.data().text)==null?void 0:y.content},K=function(){var y,v;
return(y=d.data().webData)==null?void 0:(v=y.textResult)==null?void 0:v.content},c=_.Kj().resolve(_.jv),p=_.x6(),g=function(){return d.data().chatResponseStyle},a=function(){return!d.data().transparentBackground},e=function(){return d.data().rightAlignThumbs},k=function(){return d.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||d.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},C=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:k()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:d.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},R=function(){var y;
return d.data().webData||((y=d.data().text)==null?void 0:y.content)||d.data().videoResultsData||d.data().conversationResourceViewModel||d.data().quiz},V=function(){return!!d.data().sectionHeader||R()},U=function(){var y;
return(y=d.data().videoResultsData)==null?void 0:y.videoShelf},L=function(){var y;
return _.M(((y=d.data().videoResultsData)==null?void 0:y.videoShelf)||{},JxG)},w=function(){var y;
return(y=d.data().webData)==null?void 0:y.sourcesShelf},W=function(){var y;
return _.M(((y=d.data().webData)==null?void 0:y.sourcesShelf)||{},JxG)},J=function(){return _.M(d.data().conversationResourceViewModel||{},F4G)},F=function(){return _.M(d.data().quiz||{},B3g)},Y=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:d.data().thumbsDownViewModel&&d.data().thumbsUpViewModel},A=function(){return _.M(d.data().thumbsUpViewModel,_.EV)},E=function(){return _.M(d.data().thumbsDownViewModel,_.EV)};
_.Is(function(){requestAnimationFrame(function(){var y;(y=d.shouldAnimateIcon)!=null&&y.call(d)&&Pp5(p.lottieEl)})});
var N={};return _.x("you-chat-item-view-model",{class:_.xM("ytwYouChatItemViewModelYouChatItemViewModel",(N.ytwYouChatItemViewModelColumnLayout=function(){return k()},N)),
"data-target-id":function(){return d.data().id||""}},_.x(_.n,{cond:function(){return d.data().removeIcon?!1:V()},
then:function(){var y={};return _.x("div",{"aria-hidden":"true"},_.x(_.hT,{className:_.xM("ytwYouChatItemViewModelIcon",(y.ytwYouChatItemViewModelRtl=c==="rtl",y.ytwYouChatItemViewModelHidden=function(){return!(d.data().hideIcon||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:V())},y)),
animationName:"YOUCHAT_ICON",data:C,animationRef:p}))}}),_.x(_.n,{cond:V,
then:function(){var y={};return _.x("div",{class:_.xM("ytwYouChatItemViewModelHost",(y.ytwYouChatItemViewModelHostNoPadding=function(){return!!d.data().sectionHeader&&!R()},y.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},y.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},y.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
y.ytwYouChatItemViewModelGradientBackground=a,y)),
role:"alert"},_.x(_.n,{cond:H,then:function(v){return _.x(_.E$,{text:v,wrapCodeBlocks:!0})}}),_.x(_.wB,{data:function(){return d.data().sectionHeader}},{sectionHeaderViewModel:function(v){var el={};
return _.x(_.xw,{data:v.data,className:_.xM("ytwYouChatItemViewModelSectionHeader",(el.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!d.data().sectionHeader&&!R()},el))})}}),_.x(_.n,{cond:K,
then:function(v){return _.x(_.E$,{text:v,wrapCodeBlocks:!0})}}),_.x(_.n,{cond:U,
then:function(){return _.x("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.x(_.Yw,{data:L,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.x(_.n,{cond:w,
then:function(){return _.x("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.x(_.Yw,{data:W,hasPeek:!0,disableArrows:!1}))}}),_.x(_.n,{cond:J,
then:function(){return _.x(GBG,{data:J})}}),_.x(_.n,{cond:F,
then:function(){return _.x(_.gNA,{data:F})}}),_.x(_.n,{cond:Y,
then:function(){return _.x(pD1,{thumbsUp:A,thumbsDown:E,rightAlignThumbs:e})}}))}}),_.x(_.n,{cond:function(){return d.data().chipsData},
then:function(y){return _.x(iig,{data:y,disabled:d.pending,onError:d.onError})}}))},"Pj");
oDG.idomCompat={callbacks:{onError:!0,onSend:!0}};var qZt=_.H1(function(d){var H=function(){return d.data().choiceSelectedText},K=function(){return d.data().hasGradientBackground},c={};
return _.x("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.x(_.n,{cond:H,then:function(){return _.x("div",{class:"ytYouChatUserTurnChoiceSelected"},_.x(_.j$,{text:H}))}}),_.x("div",{class:_.xM("ytYouChatUserTurnUserMessage",(c.ytYouChatUserTurnGradientContainer=K,c.ytYouChatUserTurnDefaultContainer=function(){return!K()},c))},function(){return d.data().text}))},"Qj");var aIv=_.H1(function(d){var H=_.q((0,_.X_g)(d.data)).next().value;return _.x("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return d.data().targetId||""}},_.x(_.wB,{data:function(){return d.data().header}},{chipBarViewModel:_.PaM}),_.x(_.wB,{data:function(){return H().contents}},{accordionViewModel:_.q2C,
alertBannerViewModel:_.J0C,chatLoadingViewModel:_.ywb,chatUserTurnViewModel:qZt,learningJourneyLoaderViewModel:_.$m0,lockupViewModel:function(K){return _.x(_.lN,{data:K.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:d.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(K){return _.x(oDG,{data:K.data,pending:!1})}}))},"Rj");_.iV(_.H1(function(d){var H=_.q((0,_.X_g)(d.data)).next().value,K=_.Af("yt-section-list-renderer"),c=_.q(_.GO(void 0,void 0,"rQpPgc")),p=c.next().value,g=c.next().value,a=function(){var e;return _.M((e=d.data().sectionListLayoutConfiguration)==null?void 0:e.layoutConfiguration,XPZ)};
_.WE(function(){var e,k=(e=K.value)==null?void 0:e.clientWidth;if(a()){e=a();var C=e.responsiveSize;k=k<528?"CONTAINER_SIZE_NARROW":k<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var R=_.q(e.responsiveMap||[]);for(var V=R.next();!V.done;V=R.next())if(V=V.value,V.containerSize===k){R=V.containerType;break b}R=void 0}if(R&&C){b:{if(R==="CONTAINER_TYPE_VERTICAL_LIST")if(C==="RESPONSIVE_SIZE_STANDARD"){if(k!=="CONTAINER_SIZE_NARROW"){V="50%";break b}}else{V=k==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}V=void 0}e={responsiveSize:C,containerSize:k,containerType:R,force16By9ThumbnailAspectRatio:!e.enableContentSpecificAspectRatio,contentPreviewWidth:V,fullbleed:(R==="CONTAINER_TYPE_VERTICAL_LIST"||R==="CONTAINER_TYPE_GRID")&&k==="CONTAINER_SIZE_NARROW"&&!1}}else e=void 0}else e=void 0;g(e)});
return _.x("yt-section-list-renderer",{class:_.xM("ytSectionListRendererHost",d.className),el:K,"data-target-id":function(){return d.data().targetId||""}},_.x(_.wB,{data:function(){return H().contents}},{itemSectionRenderer:function(e){return _.x(aIv,{data:e.data,
containerLayoutConfig:p})}}))},"Sj"),"yt-section-list-renderer",{props:{data:_.dl,
className:_.p7}});var lIG;var eCT;var kBO=function(){return _.B.apply(this,arguments)||this};
_.m(kBO,_.B);_.t([_.r(),_.O("design:type",Object)],kBO.prototype,"data",void 0);_.t([_.ZV({is:"yt-alert-renderer",disableElementRegistration:!0})],kBO);
_.T(kBO,"yt-alert-renderer",function(){if(eCT===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_renderer.yt.alert.renderer.css.js--\x3e<div id="container" class$="[[data.type]] style-scope yt-alert-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope yt-alert-renderer"></yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;lIG===void 0&&(lIG=document.createElement("template"));var c=lIG;K.call(H,c.content.cloneNode(!0),d.content.firstChild);eCT=d}d=eCT;return d},{mode:2});
}catch(e){_._DumpException(e)}
try{
var S8S,y_q,bAZ;S8S=function(d,H,K,c){K||(d?c&&(c.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||c.WINDOW_SIZE_CHANGED&&(H.width!==window.innerWidth||H.height!==window.innerHeight)||c.SAFARI_ABORTED_BY_NEW_TRANSITION&&d instanceof DOMException&&d.name==="AbortError"&&d.message.includes("Old view transition aborted by new view transition"))||_.z5(d):_.z5(Error("kj")))};
_.E11=function(d,H){H=H===void 0?{}:H;var K,c,p,g,a,e,k,C,R,V,U,L,w;return _.l(function(W){switch(W.nextAddress){case 1:K=H;c=K.shouldWrap===void 0?!0:K.shouldWrap;p=K.skipTransitionTimeoutMs===void 0?300:K.skipTransitionTimeoutMs;g=K.beforeTransition;a=K.afterTransition;if(!c||!document.startViewTransition||document.visibilityState==="hidden")return W.return(d());e={width:window.innerWidth,height:window.innerHeight};k=!1;(C=g)==null||C();_.e2(W,2);R=document.startViewTransition(d);V=setTimeout(function(){R.skipTransition();
k=!0},p);
return W.yield(R.ready,4);case 4:return clearTimeout(V),W.yield(R.finished,5);case 5:clearTimeout(V);(U=a)==null||U();_.Em(W,0);break;case 2:L=_.RV(W),(w=a)==null||w(),S8S(L,e,k,H.ignoredErrors),_.VE(W)}})};
y_q=function(d,H){return _.g7===H?(d.isInert=!0,_.g7="",!0):_.lml===H?(d.isInert=!0,_.lml="",!0):!1};
_.Nkb=function(d,H,K){K=K===void 0?bAZ:K;_.iD.add(H);var c;(c=K).propNames!=null||(c.propNames=[]);var p=new Set(K.propNames),g=_.$LE();c=function(){var C=g.call(this)||this;C.props={};C.isUpdating=!1;C.hasAttached=!1;C.isInert=!1;C.updateQueued=!1;C.initialClasses=[];y_q(C,H);return C};
_.m(c,g);c.prototype.forwardKebabCaseProp=function(C,R){C=_.hP(C);if(p.has(C)||C==="children")this.props[C]=R};
c.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var C=_.q(this.initialClasses),R=C.next();!R.done;R=C.next())(R=R.value)&&this.classList.add(R);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
c.prototype.handleSlottedContent=function(){for(var C=new Map,R=_.q(this.children),V=R.next();!V.done;V=R.next()){V=V.value;var U=void 0,L=(U=V.getAttribute("slot"))!=null?U:"children";(U=C.get(L))?U.push(V):C.set(L,[V]);if(!V.getAttribute("key")){var w=void 0,W=void 0;V.setAttribute("key",L+"_"+((W=(w=U)==null?void 0:w.length)!=null?W:0))}}C=_.q(C);for(R=C.next();!R.done;R=C.next())V=_.q(R.value),R=V.next().value,V=V.next().value,this.forwardKebabCaseProp(R,_.x(_.XoL,{slotContent:V}))};
c.prototype.connectedCallback=function(){var C=this;if(!y_q(this,H)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var R=_.q(this.attributes),V=R.next();!V.done;V=R.next())V=V.value,this.forwardKebabCaseProp(V.name,_.vj5(V));this.handleSlottedContent();K.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){C.afterFirstPatch()});
this.hasAttached=!0}};
c.prototype.attributeChangedCallback=function(C,R,V){this.isInert||this.isUpdating||this.isConnected||C!=="class"||this.initialClasses.push.apply(this.initialClasses,_.ru(V.split(" ")))};
c.prototype.disconnectedCallback=function(){_.X3i(this)};
c.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var C,R;_.fb5(this,_.x(d,Object.assign({},this.props,{idomKey:(R=(C=this.__incrementalDOMData)==null?void 0:C.key)!=null?R:H})),!0)}catch(U){var V=U instanceof Error?U:new _.m1("Wiz rendering error");V.args||(V.args=[]);V.args.push("Error in deprecated web component wrapper");V.args.push(H.toLowerCase());_.z5(V);throw U;}finally{this.updateQueued=this.isUpdating=!1}}};
c.prototype.enqueueUpdate=function(){var C=this;return _.l(function(R){if(K.synchronous)return C.update(),R.return();if(C.updateQueued)return R.return();C.updateQueued=!0;return R.return(Promise.resolve().then(function(){C.update()}))})};
c.prototype.notifyPath=function(){K.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.H3.Object.defineProperties(c,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var a=_.q(K.propNames),e=a.next(),k={};!e.done;k={prop$jscomp$107:void 0},e=a.next())k.prop$jscomp$107=e.value,Object.defineProperty(c.prototype,k.prop$jscomp$107,{set:function(C){return function(R){this.isInert||R===this.props[C.prop$jscomp$107]||(this.props[C.prop$jscomp$107]=R,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(k)});
customElements.define(H,c)};
_.Ng=function(){for(var d=Array(36),H=0,K,c=0;c<36;c++)c==8||c==13||c==18||c==23?d[c]="-":c==14?d[c]="4":(H<=2&&(H=33554432+Math.random()*16777216|0),K=H&15,H>>=4,d[c]=_.IbX[c==19?K&3|8:K]);return d.join("")};
bAZ={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var D_U=_.y$(['<iron-iconset-svg name="icons" size="24">\n<svg><defs>\n<g id="3d-rotation"><path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-.13-.4-.24-.11-.1-.2-.22-.26-.37-.06-.14-.09-.3-.09-.47h-1.3c0 .36.07.68.21.95.14.27.33.5.56.69.24.18.51.32.82.41.3.1.62.15.96.15.37 0 .72-.05 1.03-.15.32-.1.6-.25.83-.44s.42-.43.55-.72c.13-.29.2-.61.2-.97 0-.19-.02-.38-.07-.56-.05-.18-.12-.35-.23-.51-.1-.16-.24-.3-.4-.43-.17-.13-.37-.23-.61-.31.2-.09.37-.2.52-.33.15-.13.27-.27.37-.42.1-.15.17-.3.22-.46.05-.16.07-.32.07-.48 0-.36-.06-.68-.18-.96-.12-.28-.29-.51-.51-.69-.2-.19-.47-.33-.77-.43C9.1 8.05 8.76 8 8.39 8c-.36 0-.69.05-1 .16-.3.11-.57.26-.79.45-.21.19-.38.41-.51.67-.12.26-.18.54-.18.85h1.3c0-.17.03-.32.09-.45s.14-.25.25-.34c.11-.09.23-.17.38-.22.15-.05.3-.08.48-.08.4 0 .7.1.89.31.19.2.29.49.29.86 0 .18-.03.34-.08.49-.05.15-.14.27-.25.37-.11.1-.25.18-.41.24-.16.06-.36.09-.58.09H7.5v1.03h.77c.22 0 .42.02.6.07s.33.13.45.23c.12.11.22.24.29.4.07.16.1.35.1.57 0 .41-.12.72-.35.93-.23.23-.55.33-.95.33zm8.55-5.92c-.32-.33-.7-.59-1.14-.77-.43-.18-.92-.27-1.46-.27H12v8h2.3c.55 0 1.06-.09 1.51-.27.45-.18.84-.43 1.16-.76.32-.33.57-.73.74-1.19.17-.47.26-.99.26-1.57v-.4c0-.58-.09-1.1-.26-1.57-.18-.47-.43-.87-.75-1.2zm-.39 3.16c0 .42-.05.79-.14 1.13-.1.33-.24.62-.43.85-.19.23-.43.41-.71.53-.29.12-.62.18-.99.18h-.91V9.12h.97c.72 0 1.27.23 1.64.69.38.46.57 1.12.57 1.99v.4zM12 0l-.66.03 3.81 3.81 1.33-1.33c3.27 1.55 5.61 4.72 5.96 8.48h1.5C23.44 4.84 18.29 0 12 0z"></path></g>\n<g id="accessibility"><path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"></path></g>\n<g id="accessible"><circle cx="12" cy="4" r="2"></circle><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19-.26C10.76 7.11 10 8.04 10 9.09V15c0 1.1.9 2 2 2h5v5h2v-5.5c0-1.1-.9-2-2-2h-3v-3.45c1.29 1.07 3.25 1.94 5 1.95zm-6.17 5c-.41 1.16-1.52 2-2.83 2-1.66 0-3-1.34-3-3 0-1.31.84-2.41 2-2.83V12.1c-2.28.46-4 2.48-4 4.9 0 2.76 2.24 5 5 5 2.42 0 4.44-1.72 4.9-4h-2.07z"></path></g>\n<g id="account-balance"><path d="M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z"></path></g>\n<g id="account-balance-wallet"><path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path></g>\n<g id="account-box"><path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1H6v-1z"></path></g>\n<g id="account-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"></path></g>\n<g id="add"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"></path></g>\n<g id="add-alert"><path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v.72C7.37 5.03 5.12 7.75 5.12 11v5.82L3 18.94V20h18v-1.06l-2.12-2.12zM16 13.01h-3v3h-2v-3H8V11h3V8h2v3h3v2.01z"></path></g>\n<g id="add-box"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"></path></g>\n<g id="add-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"></path></g>\n<g id="add-circle-outline"><path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g>\n<g id="add-shopping-cart"><path d="M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-9.83-3.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l-.13-.27L6.16 6l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25z"></path></g>\n<g id="alarm"><path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path></g>\n<g id="alarm-add"><path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm1-11h-2v3H8v2h3v3h2v-3h3v-2h-3V9z"></path></g>\n<g id="alarm-off"><path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6 12 6zm10-.28l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM2.92 2.29L1.65 3.57 2.98 4.9l-1.11.93 1.42 1.42 1.11-.94.8.8C3.83 8.69 3 10.75 3 13c0 4.97 4.02 9 9 9 2.25 0 4.31-.83 5.89-2.2l2.2 2.2 1.27-1.27L3.89 3.27l-.97-.98zm13.55 16.1C15.26 19.39 13.7 20 12 20c-3.87 0-7-3.13-7-7 0-1.7.61-3.26 1.61-4.47l9.86 9.86zM8.02 3.28L6.6 1.86l-.86.71 1.42 1.42.86-.71z"></path></g>\n<g id="alarm-on"><path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm-1.46-5.47L8.41 12.4l-1.06 1.06 3.18 3.18 6-6-1.06-1.06-4.93 4.95z"></path></g>\n<g id="all-out"><path d="M16.21 4.16l4 4v-4zm4 12l-4 4h4zm-12 4l-4-4v4zm-4-12l4-4h-4zm12.95-.95c-2.73-2.73-7.17-2.73-9.9 0s-2.73 7.17 0 9.9 7.17 2.73 9.9 0 2.73-7.16 0-9.9zm-1.1 8.8c-2.13 2.13-5.57 2.13-7.7 0s-2.13-5.57 0-7.7 5.57-2.13 7.7 0 2.13 5.57 0 7.7z"></path></g>\n<g id="android"><path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17.33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-.2-.71 0l-1.48 1.48C13.85 1.23 12.95 1 12 1c-.96 0-1.86.23-2.66.63L7.85.15c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31C6.97 3.26 6 5.01 6 7h12c0-1.99-.97-3.75-2.47-4.84zM10 5H9V4h1v1zm5 0h-1V4h1v1z"></path></g>\n<g id="announcement"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"></path></g>\n<g id="apps"><path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"></path></g>\n<g id="archive"><path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"></path></g>\n<g id="arrow-back"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"></path></g>\n<g id="arrow-downward"><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"></path></g>\n<g id="arrow-drop-down"><path d="M7 10l5 5 5-5z"></path></g>\n<g id="arrow-drop-down-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"></path></g>\n<g id="arrow-drop-up"><path d="M7 14l5-5 5 5z"></path></g>\n<g id="arrow-forward"><path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"></path></g>\n<g id="arrow-upward"><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"></path></g>\n<g id="aspect-ratio"><path d="M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"></path></g>\n<g id="assessment"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"></path></g>\n<g id="assignment"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"></path></g>\n<g id="assignment-ind"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1V19z"></path></g>\n<g id="assignment-late"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-6 15h-2v-2h2v2zm0-4h-2V8h2v6zm-1-9c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"></path></g>\n<g id="assignment-return"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm4 12h-4v3l-5-5 5-5v3h4v4z"></path></g>\n<g id="assignment-returned"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 15l-5-5h3V9h4v4h3l-5 5z"></path></g>\n<g id="assignment-turned-in"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-2 14l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"></path></g>\n<g id="attachment"><path d="M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-.9-2-2-2H7.5C5.57 9 4 10.57 4 12.5S5.57 16 7.5 16H17v2H7.5C4.46 18 2 15.54 2 12.5z"></path></g>\n<g id="autorenew"><path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"></path></g>\n<g id="backspace"><path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12 19 15.59z"></path></g>\n<g id="backup"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"></path></g>\n<g id="block"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"></path></g>\n<g id="book"><path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"></path></g>\n<g id="bookmark"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"></path></g>\n<g id="bookmark-border"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"></path></g>\n<g id="bug-report"><path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"></path></g>\n<g id="build"><path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"></path></g>\n<g id="cached"><path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"></path></g>\n<g id="camera-enhance"><path d="M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-1l1.25-2.75L16 13l-2.75-1.25L12 9l-1.25 2.75L8 13l2.75 1.25z"></path></g>\n<g id="cancel"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"></path></g>\n<g id="card-giftcard"><path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z"></path></g>\n<g id="card-membership"><path d="M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V4h16v6z"></path></g>\n<g id="card-travel"><path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H4v-2h16v2zm0-5H4V8h3v2h2V8h6v2h2V8h3v6z"></path></g>\n<g id="change-history"><path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"></path></g>\n<g id="check"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"></path></g>\n<g id="check-box"><path 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"></path></g>\n<g id="check-box-outline-blank"><path 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"></path></g>\n<g id="check-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"></path></g>\n<g id="chevron-left"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"></path></g>\n<g id="chevron-right"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"></path></g>\n<g id="chrome-reader-mode"><path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"></path></g>\n<g id="class"><path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"></path></g>\n<g id="clear"><path 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"></path></g>\n<g id="close"><path 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"></path></g>\n<g id="cloud"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"></path></g>\n<g id="cloud-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79 4 4h.5c1.38 0 2.5 1.12 2.5 2.5S17.88 16 16.5 16z"></path></g>\n<g id="cloud-done"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM10 17l-3.5-3.5 1.41-1.41L10 14.17 15.18 9l1.41 1.41L10 17z"></path></g>\n<g id="cloud-download"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"></path></g>\n<g id="cloud-off"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1.45C23.16 18.16 24 16.68 24 15c0-2.64-2.05-4.78-4.65-4.96zM3 5.27l2.75 2.74C2.56 8.15 0 10.77 0 14c0 3.31 2.69 6 6 6h11.73l2 2L21 20.73 4.27 4 3 5.27zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h1.73z"></path></g>\n<g id="cloud-queue"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3z"></path></g>\n<g id="cloud-upload"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"></path></g>\n<g id="code"><path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"></path></g>\n<g id="compare-arrows"><path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z"></path></g>\n<g id="content-copy"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"></path></g>\n<g id="content-cut"><path d="M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3z"></path></g>\n<g id="content-paste"><path d="M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"></path></g>\n<g id="copyright"><path d="M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-.9-.28-1.29s-.4-.73-.7-1.01-.66-.5-1.08-.66-.88-.23-1.39-.23c-.65 0-1.22.11-1.7.34s-.88.53-1.2.92-.56.84-.71 1.36S8 11.29 8 11.87v.27c0 .58.08 1.12.23 1.64s.39.97.71 1.35.72.69 1.2.91 1.05.34 1.7.34c.47 0 .91-.08 1.32-.23s.77-.36 1.08-.63.56-.58.74-.94.29-.74.3-1.15h-1.79c-.01.21-.06.4-.15.58s-.21.33-.36.46-.32.23-.52.3c-.19.07-.39.09-.6.1-.36-.01-.66-.08-.89-.23-.25-.16-.45-.37-.59-.62s-.25-.55-.3-.88-.08-.67-.08-1v-.27c0-.35.03-.68.08-1.01zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g>\n<g id="create"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"></path></g>\n<g id="create-new-folder"><path d="M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"></path></g>\n<g id="credit-card"><path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"></path></g>\n<g id="dashboard"><path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"></path></g>\n<g id="date-range"><path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"></path></g>\n<g id="delete"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"></path></g>\n<g id="delete-forever"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"></path></g>\n<g id="delete-sweep"><path d="M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zM14 5h-3l-1-1H6L5 5H2v2h12z"></path></g>\n<g id="description"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"></path></g>\n<g id="dns"><path d="M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1zM7 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path></g>\n<g id="done"><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"></path></g>\n<g id="done-all"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"></path></g>\n<g id="donut-large"><path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18.92V22c5-.47 8.53-4 9-9h-3.03c-.43 3-2.97 5.49-5.97 5.92z"></path></g>\n<g id="donut-small"><path d="M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-.41-2-1.52-2-2.84s1-2.43 2-2.84zM14.86 11H22c-.48-4.75-4-8.53-9-9v7.16c1 .3 1.52.98 1.86 1.84zM13 14.84V22c5-.47 8.52-4.25 9-9h-7.14c-.34.86-.86 1.54-1.86 1.84z"></path></g>\n<g id="drafts"><path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"></path></g>\n<g id="eject"><path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"></path></g>\n<g id="error"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"></path></g>\n<g id="error-outline"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></g>\n<g id="euro-symbol"><path d="M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 5.3C19.41 3.87 17.3 3 15 3c-3.92 0-7.24 2.51-8.48 6H3v2h3.06c-.04.33-.06.66-.06 1 0 .34.02.67.06 1H3v2h3.52c1.24 3.49 4.56 6 8.48 6 2.31 0 4.41-.87 6-2.3l-1.78-1.77c-1.13.98-2.6 1.57-4.22 1.57z"></path></g>\n<g id="event"><path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"></path></g>\n<g id="event-seat"><path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z"></path></g>\n<g id="exit-to-app"><path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"></path></g>\n<g id="expand-less"><path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"></path></g>\n<g id="expand-more"><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"></path></g>\n<g id="explore"><path d="M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm2.19 12.19L6 18l3.81-8.19L18 6l-3.81 8.19z"></path></g>\n<g id="extension"><path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"></path></g>\n<g id="face"><path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37C11.07 8.33 14.05 10 17.42 10c.78 0 1.53-.09 2.25-.26.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8z"></path></g>\n<g id="favorite"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"></path></g>\n<g id="favorite-border"><path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"></path></g>\n<g id="feedback"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"></path></g>\n<g id="file-download"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"></path></g>\n<g id="file-upload"><path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"></path></g>\n<g id="filter-list"><path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"></path></g>\n<g id="find-in-page"><path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L20 19.59zM9 13c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.34-3 3z"></path></g>\n<g id="find-replace"><path d="M11 6c1.38 0 2.63.56 3.54 1.46L12 10h6V4l-2.05 2.05C14.68 4.78 12.93 4 11 4c-3.53 0-6.43 2.61-6.92 6H6.1c.46-2.28 2.48-4 4.9-4zm5.64 9.14c.66-.9 1.12-1.97 1.28-3.14H15.9c-.46 2.28-2.48 4-4.9 4-1.38 0-2.63-.56-3.54-1.46L10 12H4v6l2.05-2.05C7.32 17.22 9.07 18 11 18c1.55 0 2.98-.51 4.14-1.36L20 21.49 21.49 20l-4.85-4.86z"></path></g>\n<g id="fingerprint"><path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28zM3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7-.23.16-.54.11-.7-.12-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21zm6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39-2.57 0-4.66 1.97-4.66 4.39 0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11.1-.24.15-.37.15zm7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12zM14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94 1.7 0 3.08 1.32 3.08 2.94 0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38z"></path></g>\n<g id="first-page"><path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"></path></g>\n<g id="flag"><path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"></path></g>\n<g id="flight-land"><path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2.32-1.45-.39v5.17l1.6.43 5.31 1.43z"></path></g>\n<g id="flight-takeoff"><path d="M2.5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-.43 5.31-1.42 4.35-1.16L21 11.49c.81-.23 1.28-1.05 1.07-1.85z"></path></g>\n<g id="flip-to-back"><path d="M9 7H7v2h2V7zm0 4H7v2h2v-2zm0-8c-1.11 0-2 .9-2 2h2V3zm4 12h-2v2h2v-2zm6-12v2h2c0-1.1-.9-2-2-2zm-6 0h-2v2h2V3zM9 17v-2H7c0 1.1.89 2 2 2zm10-4h2v-2h-2v2zm0-4h2V7h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zM5 7H3v12c0 1.1.89 2 2 2h12v-2H5V7zm10-2h2V3h-2v2zm0 12h2v-2h-2v2z"></path></g>\n<g id="flip-to-front"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3c0 1.1.89 2 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9c-1.11 0-2 .9-2 2v10c0 1.1.89 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12H9V5h10v10zm-8 6h2v-2h-2v2zm-4 0h2v-2H7v2z"></path></g>\n<g id="folder"><path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"></path></g>\n<g id="folder-open"><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"></path></g>\n<g id="folder-shared"><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2v1z"></path></g>\n<g id="font-download"><path d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13h-2.09z"></path></g>\n<g id="forward"><path d="M12 8V4l8 8-8 8v-4H4V8z"></path></g>\n<g id="fullscreen"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"></path></g>\n<g id="fullscreen-exit"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"></path></g>\n<g id="g-translate"><path d="M20 5h-9.12L10 2H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h7l1 3h8c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zM7.17 14.59c-2.25 0-4.09-1.83-4.09-4.09s1.83-4.09 4.09-4.09c1.04 0 1.99.37 2.74 1.07l.07.06-1.23 1.18-.06-.05c-.29-.27-.78-.59-1.52-.59-1.31 0-2.38 1.09-2.38 2.42s1.07 2.42 2.38 2.42c1.37 0 1.96-.87 2.12-1.46H7.08V9.91h3.95l.01.07c.04.21.05.4.05.61 0 2.35-1.61 4-3.92 4zm6.03-1.71c.33.6.74 1.18 1.19 1.7l-.54.53-.65-2.23zm.77-.76h-.99l-.31-1.04h3.99s-.34 1.31-1.56 2.74c-.52-.62-.89-1.23-1.13-1.7zM21 20c0 .55-.45 1-1 1h-7l2-2-.81-2.77.92-.92L17.79 18l.73-.73-2.71-2.68c.9-1.03 1.6-2.25 1.92-3.51H19v-1.04h-3.64V9h-1.04v1.04h-1.96L11.18 6H20c.55 0 1 .45 1 1v13z"></path></g>\n<g id="gavel"><path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z"></path></g>\n<g id="gesture"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"></path></g>\n<g id="get-app"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"></path></g>\n<g id="gif"><path d="M11.5 9H13v6h-1.5zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"></path></g>\n<g id="grade"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"></path></g>\n<g id="group-work"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zM9.5 8c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8zm6.5 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></g>\n<g id="help"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"></path></g>\n<g id="help-outline"><path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"></path></g>\n<g id="highlight-off"><path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g>\n<g id="history"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"></path></g>\n<g id="home"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"></path></g>\n<g id="hourglass-empty"><path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"></path></g>\n<g id="hourglass-full"><path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"></path></g>\n<g id="http"><path d="M4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v-2h2c.8 0 1.5-.7 1.5-1.5v-1c0-.8-.7-1.5-1.5-1.5zm0 2.5h-2v-1h2v1z"></path></g>\n<g id="https"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"></path></g>\n<g id="important-devices"><path d="M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1.89 2 2 2h7v2H7v2h8v-2h-2v-2h2v-2H2V4h18v5h2V4c0-1.11-.9-2-2-2zm-8.03 7L11 6l-.97 3H7l2.47 1.76-.94 2.91 2.47-1.8 2.47 1.8-.94-2.91L15 9h-3.03z"></path></g>\n<g id="inbox"><path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"></path></g>\n<g id="indeterminate-check-box"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"></path></g>\n<g id="info"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"></path></g>\n<g id="info-outline"><path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h-2v2z"></path></g>\n<g id="input"><path d="M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z"></path></g>\n<g id="invert-colors"><path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 19.59c-1.6 0-3.11-.62-4.24-1.76C6.62 16.69 6 15.19 6 13.59s.62-3.11 1.76-4.24L12 5.1v14.49z"></path></g>\n<g id="label"><path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"></path></g>\n<g id="label-outline"><path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l3.55 5L16 17z"></path></g>\n<g id="language"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"></path></g>\n<g id="last-page"><path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"></path></g>\n<g id="launch"><path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"></path></g>\n<g id="lightbulb-outline"><path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z"></path></g>\n<g id="line-style"><path d="M3 16h5v-2H3v2zm6.5 0h5v-2h-5v2zm6.5 0h5v-2h-5v2zM3 20h2v-2H3v2zm4 0h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM3 12h8v-2H3v2zm10 0h8v-2h-8v2zM3 4v4h18V4H3z"></path></g>\n<g id="line-weight"><path d="M3 17h18v-2H3v2zm0 3h18v-1H3v1zm0-7h18v-3H3v3zm0-9v4h18V4H3z"></path></g>\n<g id="link"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></g>\n<g id="list"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"></path></g>\n<g id="lock"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"></path></g>\n<g id="lock-open"><path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"></path></g>\n<g id="lock-outline"><path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9V6zM18 20H6V10h12v10z"></path></g>\n<g id="low-priority"><path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7.92 2 11.5z"></path></g>\n<g id="loyalty"><path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7zm11.77 8.27L13 19.54l-4.27-4.27C8.28 14.81 8 14.19 8 13.5c0-1.38 1.12-2.5 2.5-2.5.69 0 1.32.28 1.77.74l.73.72.73-.73c.45-.45 1.08-.73 1.77-.73 1.38 0 2.5 1.12 2.5 2.5 0 .69-.28 1.32-.73 1.77z"></path></g>\n<g id="mail"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"></path></g>\n<g id="markunread"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"></path></g>\n<g id="markunread-mailbox"><path d="M20 6H10v6H8V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"></path></g>\n<g id="menu"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"></path></g>\n<g id="more-horiz"><path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></g>\n<g id="more-vert"><path 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"></path></g>\n<g id="motorcycle"><path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1.65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2 5-5c0-2.65-1.97-4.77-4.56-4.97zM7.82 15C7.4 16.15 6.28 17 5 17c-1.63 0-3-1.37-3-3s1.37-3 3-3c1.28 0 2.4.85 2.82 2H5v2h2.82zM19 17c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z"></path></g>\n<g id="move-to-inbox"><path d="M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3-5h-2V7h-4v3H8l4 4 4-4z"></path></g>\n<g id="next-week"><path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zM10 5h4v2h-4V5zm1 13.5l-1-1 3-3-3-3 1-1 4 4-4 4z"></path></g>\n<g id="note-add"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"></path></g>\n<g id="offline-pin"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 16H7v-2h10v2zm-6.7-4L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3L17 7.3 10.3 14z"></path></g>\n<g id="opacity"><path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"></path></g>\n<g id="open-in-browser"><path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"></path></g>\n<g id="open-in-new"><path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"></path></g>\n<g id="open-with"><path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"></path></g>\n<g id="pageview"><path d="M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-3.21 14.21l-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9-1.42 1.42z"></path></g>\n<g id="pan-tool"><path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"></path></g>\n<g id="payment"><path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"></path></g>\n<g id="perm-camera-mic"><path d="M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v-2.09c-2.83-.48-5-2.94-5-5.91h2c0 2.21 1.79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 5.91V21h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-6 8c0 1.1-.9 2-2 2s-2-.9-2-2V9c0-1.1.9-2 2-2s2 .9 2 2v4z"></path></g>\n<g id="perm-contact-calendar"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1z"></path></g>\n<g id="perm-data-setting"><path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.04-.49l1.06-.83c.09-.08.12-.21.06-.32l-1-1.73c-.06-.11-.19-.15-.31-.11l-1.24.5c-.26-.2-.54-.37-.85-.49l-.19-1.32c-.01-.12-.12-.21-.24-.21h-2c-.12 0-.23.09-.25.21l-.19 1.32c-.3.13-.59.29-.85.49l-1.24-.5c-.11-.04-.24 0-.31.11l-1 1.73c-.06.11-.04.24.06.32l1.06.83c-.02.16-.03.32-.03.49 0 .17.01.33.03.49l-1.06.83c-.09.08-.12.21-.06.32l1 1.73c.06.11.19.15.31.11l1.24-.5c.26.2.54.37.85.49l.19 1.32c.02.12.12.21.25.21h2c.12 0 .23-.09.25-.21l.19-1.32c.3-.13.59-.29.84-.49l1.25.5c.11.04.24 0 .31-.11l1-1.73c.06-.11.03-.24-.06-.32l-1.07-.83zm-3.71 1.01c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path></g>\n<g id="perm-device-information"><path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"></path></g>\n<g id="perm-identity"><path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"></path></g>\n<g id="perm-media"><path d="M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2V6zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7 15l4.5-6 3.5 4.51 2.5-3.01L21 15H7z"></path></g>\n<g id="perm-phone-msg"><path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1zM12 3v10l3-3h6V3h-9z"></path></g>\n<g id="perm-scan-wifi"><path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"></path></g>\n<g id="pets"><circle cx="4.5" cy="9.5" r="2.5"></circle><circle cx="9" cy="5.5" r="2.5"></circle><circle cx="15" cy="5.5" r="2.5"></circle><circle cx="19.5" cy="9.5" r="2.5"></circle><path d="M17.34 14.86c-.87-1.02-1.6-1.89-2.48-2.91-.46-.54-1.05-1.08-1.75-1.32-.11-.04-.22-.07-.33-.09-.25-.04-.52-.04-.78-.04s-.53 0-.79.05c-.11.02-.22.05-.33.09-.7.24-1.28.78-1.75 1.32-.87 1.02-1.6 1.89-2.48 2.91-1.31 1.31-2.92 2.76-2.62 4.79.29 1.02 1.02 2.03 2.33 2.32.73.15 3.06-.44 5.54-.44h.18c2.48 0 4.81.58 5.54.44 1.31-.29 2.04-1.31 2.33-2.32.31-2.04-1.3-3.49-2.61-4.8z"></path></g>\n<g id="picture-in-picture"><path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"></path></g>\n<g id="picture-in-picture-alt"><path d="M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"></path></g>\n<g id="play-for-work"><path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z"></path></g>\n<g id="polymer"><path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"></path></g>\n<g id="power-settings-new"><path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"></path></g>\n<g id="pregnant-woman"><path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z"></path></g>\n<g id="print"><path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"></path></g>\n<g id="query-builder"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"></path></g>\n<g id="question-answer"><path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"></path></g>\n<g id="radio-button-checked"><path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></g>\n<g id="radio-button-unchecked"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></g>\n<g id="receipt"><path d="M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20z"></path></g>\n<g id="record-voice-over"><circle cx="9" cy="9" r="4"></circle><path d="M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm7.76-9.64l-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27zM20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9.95 0-14z"></path></g>\n<g id="redeem"><path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z"></path></g>\n<g id="redo"><path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"></path></g>\n<g id="refresh"><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"></path></g>\n<g id="remove"><path d="M19 13H5v-2h14v2z"></path></g>\n<g id="remove-circle"><path 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"></path></g>\n<g id="remove-circle-outline"><path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g>\n<g id="remove-shopping-cart"><path d="M22.73 22.73L2.77 2.77 2 2l-.73-.73L0 2.54l4.39 4.39 2.21 4.66-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h7.46l1.38 1.38c-.5.36-.83.95-.83 1.62 0 1.1.89 2 1.99 2 .67 0 1.26-.33 1.62-.84L21.46 24l1.27-1.27zM7.42 15c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h2.36l2 2H7.42zm8.13-2c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H6.54l9.01 9zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2z"></path></g>\n<g id="reorder"><path d="M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"></path></g>\n<g id="reply"><path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"></path></g>\n<g id="reply-all"><path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"></path></g>\n<g id="report"><path d="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3zm1-4.3h-2V7h2v6z"></path></g>\n<g id="report-problem"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"></path></g>\n<g id="restore"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"></path></g>\n<g id="restore-page"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-2 16c-2.05 0-3.81-1.24-4.58-3h1.71c.63.9 1.68 1.5 2.87 1.5 1.93 0 3.5-1.57 3.5-3.5S13.93 9.5 12 9.5c-1.35 0-2.52.78-3.1 1.9l1.6 1.6h-4V9l1.3 1.3C8.69 8.92 10.23 8 12 8c2.76 0 5 2.24 5 5s-2.24 5-5 5z"></path></g>\n<g id="room"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></g>\n<g id="rounded-corner"><path d="M19 19h2v2h-2v-2zm0-2h2v-2h-2v2zM3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm0-4h2V3H3v2zm4 0h2V3H7v2zm8 16h2v-2h-2v2zm-4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm-8 0h2v-2H7v2zm-4 0h2v-2H3v2zM21 8c0-2.76-2.24-5-5-5h-5v2h5c1.65 0 3 1.35 3 3v5h2V8z"></path></g>\n<g id="rowing"><path d="M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-2.16c1.66.03 3.61-.87 4.67-2.04l1.4-1.55c.19-.21.43-.38.69-.5.29-.14.62-.23.96-.23h.03C15.99 6.01 17 7.02 17 8.26v5.75c0 .84-.35 1.61-.92 2.16l-3.58-3.58v-2.27c-.63.52-1.43 1.02-2.29 1.39L16.5 18H18l3 3.01z"></path></g>\n<g id="save"><path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"></path></g>\n<g id="schedule"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"></path></g>\n<g id="search"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></g>\n<g id="select-all"><path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z"></path></g>\n<g id="send"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"></path></g>\n<g id="settings"><path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"></path></g>\n<g id="settings-applications"><path d="M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-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-1.75 9c0 .23-.02.46-.05.68l1.48 1.16c.13.11.17.3.08.45l-1.4 2.42c-.09.15-.27.21-.43.15l-1.74-.7c-.36.28-.76.51-1.18.69l-.26 1.85c-.03.17-.18.3-.35.3h-2.8c-.17 0-.32-.13-.35-.29l-.26-1.85c-.43-.18-.82-.41-1.18-.69l-1.74.7c-.16.06-.34 0-.43-.15l-1.4-2.42c-.09-.15-.05-.34.08-.45l1.48-1.16c-.03-.23-.05-.46-.05-.69 0-.23.02-.46.05-.68l-1.48-1.16c-.13-.11-.17-.3-.08-.45l1.4-2.42c.09-.15.27-.21.43-.15l1.74.7c.36-.28.76-.51 1.18-.69l.26-1.85c.03-.17.18-.3.35-.3h2.8c.17 0 .32.13.35.29l.26 1.85c.43.18.82.41 1.18.69l1.74-.7c.16-.06.34 0 .43.15l1.4 2.42c.09.15.05.34-.08.45l-1.48 1.16c.03.23.05.46.05.69z"></path></g>\n<g id="settings-backup-restore"><path d="M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9z"></path></g>\n<g id="settings-bluetooth"><path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 3.83l1.88 1.88L13 7.59V3.83zm1.88 10.46L13 16.17v-3.76l1.88 1.88z"></path></g>\n<g id="settings-brightness"><path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1.5-1.5-1.5V8h-2.5L12 6.5 10.5 8H8v2.5L6.5 12 8 13.5V16zm4-7c1.66 0 3 1.34 3 3s-1.34 3-3 3V9z"></path></g>\n<g id="settings-cell"><path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"></path></g>\n<g id="settings-ethernet"><path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5.41-6.52z"></path></g>\n<g id="settings-input-antenna"><path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 10.62 9.5 12c0 1.02.62 1.9 1.5 2.29v3.3L7.59 21 9 22.41l3-3 3 3L16.41 21 13 17.59v-3.3zM12 1C5.93 1 1 5.93 1 12h2c0-4.97 4.03-9 9-9s9 4.03 9 9h2c0-6.07-4.93-11-11-11z"></path></g>\n<g id="settings-input-component"><path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1v2zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6h-2zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6v2z"></path></g>\n<g id="settings-input-composite"><path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1v2zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6h-2zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6v2z"></path></g>\n<g id="settings-input-hdmi"><path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z"></path></g>\n<g id="settings-input-svideo"><path d="M8 11.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h3c.83 0 1.5-.67 1.5-1.5zM8.5 15c-.83 0-1.5.67-1.5 1.5S7.67 18 8.5 18s1.5-.67 1.5-1.5S9.33 15 8.5 15zM12 1C5.93 1 1 5.93 1 12s4.93 11 11 11 11-4.93 11-11S18.07 1 12 1zm0 20c-4.96 0-9-4.04-9-9s4.04-9 9-9 9 4.04 9 9-4.04 9-9 9zm5.5-11c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm-2 5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path></g>\n<g id="settings-overscan"><path d="M12.01 5.5L10 8h4l-1.99-2.5zM18 10v4l2.5-1.99L18 10zM6 10l-2.5 2.01L6 14v-4zm8 6h-4l2.01 2.5L14 16zm7-13H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"></path></g>\n<g id="settings-phone"><path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1zM19 9v2h2V9h-2z"></path></g>\n<g id="settings-power"><path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-5.12L7.44 4.44C5.36 5.88 4 8.28 4 11c0 4.42 3.58 8 8 8s8-3.58 8-8c0-2.72-1.36-5.12-3.44-6.56zM15 24h2v-2h-2v2z"></path></g>\n<g id="settings-remote"><path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41 1.41C9.37 6.56 10.62 6 12 6s2.63.56 3.54 1.46l1.41-1.41C15.68 4.78 13.93 4 12 4s-3.68.78-4.95 2.05zM12 0C8.96 0 6.21 1.23 4.22 3.22l1.41 1.41C7.26 3.01 9.51 2 12 2s4.74 1.01 6.36 2.64l1.41-1.41C17.79 1.23 15.04 0 12 0z"></path></g>\n<g id="settings-voice"><path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3-2.54 5.1-5.3 5.1S6.7 13 6.7 10H5c0 3.41 2.72 6.23 6 6.72V20h2v-3.28c3.28-.49 6-3.31 6-6.72z"></path></g>\n<g id="shop"><path d="M16 6V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H2v13c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6h-6zm-6-2h4v2h-4V4zM9 18V9l7.5 4L9 18z"></path></g>\n<g id="shop-two"><path d="M3 9H1v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2H3V9zm15-4V3c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H5v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5h-5zm-6-2h4v2h-4V3zm0 12V8l5.5 3-5.5 4z"></path></g>\n<g id="shopping-basket"><path d="M17.21 9l-4.38-6.56c-.19-.28-.51-.42-.83-.42-.32 0-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h13c.92 0 1.69-.62 1.93-1.46l2.54-9.27L23 10c0-.55-.45-1-1-1h-4.79zM9 9l3-4.4L15 9H9zm3 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path></g>\n<g id="shopping-cart"><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"></path></g>\n<g id="sort"><path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"></path></g>\n<g id="speaker-notes"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-3h-8V6h8v2z"></path></g>\n<g id="speaker-notes-off"><path d="M10.54 11l-.54-.54L7.54 8 6 6.46 2.38 2.84 1.27 1.73 0 3l2.01 2.01L2 22l4-4h9l5.73 5.73L22 22.46 17.54 18l-7-7zM8 14H6v-2h2v2zm-2-3V9l2 2H6zm14-9H4.08L10 7.92V6h8v2h-7.92l1 1H18v2h-4.92l6.99 6.99C21.14 17.95 22 17.08 22 16V4c0-1.1-.9-2-2-2z"></path></g>\n<g id="spellcheck"><path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-1.41-1.41z"></path></g>\n<g id="star"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"></path></g>\n<g id="star-border"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"></path></g>\n<g id="star-half"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"></path></g>\n<g id="stars"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23L16.23 18z"></path></g>\n<g id="store"><path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"></path></g>\n<g id="subdirectory-arrow-left"><path d="M11 9l1.42 1.42L8.83 14H18V4h2v12H8.83l3.59 3.58L11 21l-6-6 6-6z"></path></g>\n<g id="subdirectory-arrow-right"><path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"></path></g>\n<g id="subject"><path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"></path></g>\n<g id="supervisor-account"><path d="M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 6.34 6 8s1.34 3 3 3zm7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75zM9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"></path></g>\n<g id="swap-horiz"><path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"></path></g>\n<g id="swap-vert"><path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"></path></g>\n<g id="swap-vertical-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM6.5 9L10 5.5 13.5 9H11v4H9V9H6.5zm11 6L14 18.5 10.5 15H13v-4h2v4h2.5z"></path></g>\n<g id="system-update-alt"><path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"></path></g>\n<g id="tab"><path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z"></path></g>\n<g id="tab-unselected"><path d="M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16 16c1.1 0 2-.9 2-2h-2v2zm0-8h2v-2h-2v2zm-8 8h2v-2h-2v2zm4 0h2v-2h-2v2z"></path></g>\n<g id="text-format"><path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"></path></g>\n<g id="theaters"><path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"></path></g>\n<g id="thumb-down"><path 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"></path></g>\n<g id="thumb-up"><path 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"></path></g>\n<g id="thumbs-up-down"><path d="M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1.38-.91l2.26-5.29c.07-.17.11-.36.11-.55V6zm10.5 4h-6.75c-.62 0-1.15.38-1.38.91l-2.26 5.29c-.07.17-.11.36-.11.55V18c0 .55.45 1 1 1h5.18l-.66 3.18-.02.24c0 .31.13.59.33.8l.79.78 4.94-4.94c.27-.27.44-.65.44-1.06v-6.5c0-.83-.67-1.5-1.5-1.5z"></path></g>\n<g id="timeline"><path d="M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2z"></path></g>\n<g id="toc"><path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"></path></g>\n<g id="today"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"></path></g>\n<g id="toll"><path d="M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.55 5.15 1 8.27 1 12s2.55 6.85 6 7.74v-2.09c-2.33-.82-4-3.04-4-5.65z"></path></g>\n<g id="touch-app"><path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.67-1.5-1.5-1.5S10 6.67 10 7.5v10.74l-3.43-.72c-.08-.01-.15-.03-.24-.03-.31 0-.59.13-.79.33l-.79.8 4.94 4.94c.27.27.65.44 1.06.44h6.79c.75 0 1.33-.55 1.44-1.28l.75-5.27c.01-.07.02-.14.02-.2 0-.62-.38-1.16-.91-1.38z"></path></g>\n<g id="track-changes"><path d="M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07z"></path></g>\n<g id="translate"><path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"></path></g>\n<g id="trending-down"><path d="M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"></path></g>\n<g id="trending-flat"><path d="M22 12l-4-4v3H3v2h15v3z"></path></g>\n<g id="trending-up"><path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"></path></g>\n<g id="turned-in"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"></path></g>\n<g id="turned-in-not"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"></path></g>\n<g id="unarchive"><path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.49-.17-.93-.45-1.28zM12 9.5l5.5 5.5H14v2h-4v-2H6.5L12 9.5zM5.12 5l.82-1h12l.93 1H5.12z"></path></g>\n<g id="undo"><path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"></path></g>\n<g id="unfold-less"><path d="M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z"></path></g>\n<g id="unfold-more"><path d="M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"></path></g>\n<g id="update"><path d="M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79 2.73 2.71 7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58 3.51-3.47 9.14-3.47 12.65 0L21 3v7.12zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8h1.5z"></path></g>\n<g id="verified-user"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"></path></g>\n<g id="view-agenda"><path d="M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1z"></path></g>\n<g id="view-array"><path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"></path></g>\n<g id="view-carousel"><path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"></path></g>\n<g id="view-column"><path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"></path></g>\n<g id="view-day"><path d="M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z"></path></g>\n<g id="view-headline"><path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"></path></g>\n<g id="view-list"><path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"></path></g>\n<g id="view-module"><path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"></path></g>\n<g id="view-quilt"><path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"></path></g>\n<g id="view-stream"><path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z"></path></g>\n<g id="view-week"><path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"></path></g>\n<g id="visibility"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"></path></g>\n<g id="visibility-off"><path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"></path></g>\n<g id="warning"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"></path></g>\n<g id="watch-later"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"></path></g>\n<g id="weekend"><path d="M21 10c-1.1 0-2 .9-2 2v3H5v-3c0-1.1-.9-2-2-2s-2 .9-2 2v5c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2zm-3-5H6c-1.1 0-2 .9-2 2v2.15c1.16.41 2 1.51 2 2.82V14h12v-2.03c0-1.3.84-2.4 2-2.82V7c0-1.1-.9-2-2-2z"></path></g>\n<g id="work"><path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"></path></g>\n<g id="youtube-searched-for"><path d="M17.01 14h-.8l-.27-.27c.98-1.14 1.57-2.61 1.57-4.23 0-3.59-2.91-6.5-6.5-6.5s-6.5 3-6.5 6.5H2l3.84 4 4.16-4H6.51C6.51 7 8.53 5 11.01 5s4.5 2.01 4.5 4.5c0 2.48-2.02 4.5-4.5 4.5-.65 0-1.26-.14-1.82-.38L7.71 15.1c.97.57 2.09.9 3.3.9 1.61 0 3.08-.59 4.22-1.57l.27.27v.79l5.01 4.99L22 19l-4.99-5z"></path></g>\n<g id="zoom-in"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"></path></g>\n<g id="zoom-out"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"></path></g>\n</defs></svg>\n</iron-iconset-svg>']),
fBT=_.nLN(D_U);fBT.setAttribute("style","display: none;");document.head.appendChild(fBT.content);_.DN=_.nGi(function(d){var H=_.x1("DIV");d&&(H.className=d);H.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";d=_.x1("DIV");_.o0N(d,"200px","200px");H.appendChild(d);document.body.appendChild(H);d=H.offsetWidth-H.clientWidth;_.nA(H);return d});var A_q;var j4v;var fE=function(){var d=_.B.apply(this,arguments)||this;d.icon=null;return d};
_.m(fE,_.B);fE.prototype.dismiss=function(){_.GT(this.hostElement,"yt-live-chat-error-message-dismiss")};
fE.prototype.computeIcon=function(d){return d&&d.iconType?"yt-icons:"+d.iconType.toLowerCase():"yt-icons:close"};
_.t([_.r(),_.O("design:type",Object)],fE.prototype,"data",void 0);_.t([_.r({computed:"computeIcon(data.icon)"}),_.O("design:type",Object)],fE.prototype,"icon",void 0);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],fE);
_.T(fE,"yt-live-chat-error-message-renderer",function(){if(j4v===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_error_message_renderer.yt.live.chat.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-error-message-renderer">\n  <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-error-message-renderer"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;A_q===void 0&&(A_q=document.createElement("template"));var c=A_q;K.call(H,c.content.cloneNode(!0),d.content.firstChild);j4v=d}d=j4v;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var MS_,mUH,wB_,PMB,WgO,XBH,JN_,sCa,Iz,FgC,ZXa,rL,TAw,QCN,tSO,Y3K,OXO,S3w,EdL,yNE,bXc,NAO,DUL,f0_,ANK,jCa,vdC,dSc,HtE,$SK,KbH,WD,cZr,pvN,g0a,o0L,qU_,a5S,l5E,ejH,kGa,it_,GG_,n0_,Cgc,RjE,VTK,USa,xSE,LbH;MS_=function(d,H){return _.xL(d.entities,"liveReactionsDataEntity",H)};
mUH=function(d,H){d=_.xL(d.entities,"booleanEntity",H);return!(!d||!d.value)};
wB_=function(d,H){var K=_.Fj();K&&d&&_.Ea(K,_.P1(d),H)};
PMB=function(d,H){return _.xL(d.entities,"timedMarkersListSyncEntity",H)};
_.u7c=function(d){return d.watch.isWatchActive};
_.I0E=function(d){return _.sQ(d)||_.FX(d)||_.l1Y(d)};
_.rN_=function(d){return!_.I0E(d)};
_.uz=function(d){return d.watch.watchScrollTop};
WgO=function(d){return d.watch.isLiveChatCollapsed};
_.BAE=function(){_.h("web_watch_log_theater_mode")&&_.X0F("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.z6H=function(d,H,K){if(!d.includes("START_TIME_PLACEHOLDER")||!d.includes("END_TIME_PLACEHOLDER"))return d;var c=new Date(0),p=new Date(0);c.setUTCMilliseconds(H);p.setUTCMilliseconds(K);return d.replace("START_TIME_PLACEHOLDER",_.bZ(c,7)).replace("END_TIME_PLACEHOLDER",_.bZ(p,7))};
XBH=function(d,H){return _.xL(d.entities,"booleanEntity",H)};
JN_=function(){return function(d){_.jO(_.PI("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:d}))}};
sCa=function(d){switch(d){case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN":return 1;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS":return 6;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":return 2;default:return 3}};
Iz=function(d,H,K){var c=_.T6(K);d&&H&&c&&d.getPlayerPromise().then(function(p){_.s7h(c)&&_.Bd();(new _.IX(p)).executeCommand(c,H);_.h("continue_playback_on_desktop_companion_click")||p.pauseVideo()})};
FgC=function(d){var H=_.Kf(),K;if(K=_.OS("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var c;K=(c=K())==null?void 0:c.layoutId}else K=null;Iz(H,K,d)};
ZXa=function(d){var H=_.Kf(),K;if(K=_.OS("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var c;K=(c=K())==null?void 0:c.layoutId}else K=null;Iz(H,K,d)};
rL=function(d,H){var K=d<0?"-":"";d=Math.abs(d);var c=Math.floor(d/3600),p=Math.floor(d)%3600,g=Math.floor(p/60);p=Math.floor(p)%60;var a="";(H===void 0?0:H)&&(a="."+Math.round((d-Math.floor(d))*10));return c>0?K+c+":"+(g<10?"0"+g:""+g)+":"+(p<10?"0"+p:""+p)+a:K+g+":"+(p<10?"0"+p:""+p)+a};
TAw=function(d){var H=d.match(/[^0-9:\.]/g);if(H&&H.length>0)return null;d=d.split(":");if(d.length===0||d.length>3)return null;H=1;for(var K=0;d.length>0;){var c=d.pop();if(c===void 0)break;var p=Number(c);if(c===""||isNaN(p))return null;K+=p*H;H*=60}return K};
QCN=function(d,H,K,c){d=Math.max(K,d);H=Math.min(H,c-K);d+H>c?(K=c,d=K-H):K=d+H;return{start:d,end:K}};
tSO=function(d,H,K,c,p,g){d<K?d=K:d+p>c&&(d=c-p);H>c&&(H=c);H=Math.min(d+g,Math.max(d+p,H));return{start:d,end:H}};
Y3K=function(d,H,K,c,p,g){H>c?H=c:H-p<K&&(H=K+p);d<K&&(d=K);d=Math.min(H-p,Math.max(H-g,d));return{start:d,end:H}};
OXO=function(d){return _.h("web_transcript_cue_id_killswitch")?String(d):"ytd-transcript-renderer_"+d};
S3w=function(d){return _.h("web_transcript_cue_id_killswitch")?!0:d.startsWith("ytd-transcript-renderer")};
EdL=function(d){var H=_.Kf(),K;if(K=_.OS("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var c;K=(c=K())==null?void 0:c.layoutId}else K=null;Iz(H,K,d)};
yNE=function(d){d.style.height="auto";d.style.height=Math.min(d.scrollHeight||20,80)+"px"};
bXc=function(d,H,K){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:H,hasGradientBackground:K}}],insertByPositionInSection:{sectionTargetId:d,position:"INSERTION_POSITION_LAST"}}}]}}}};
NAO=function(d){var H=_.Kf(),K;K=(K=_.OS("yt.www.ads.eventcache.getLastCompanionData"))?(K=K())&&K.layoutId:null;Iz(H,K,d)};
DUL=function(d){var H=_.Kf(),K;K=(K=_.OS("yt.www.ads.eventcache.getLastCompanionData"))?(K=K())&&K.layoutId:null;Iz(H,K,d)};
f0_=function(d,H){H=H===void 0?!1:H;if(d.simpleText)d=[{text:d.simpleText}];else{var K;d=((K=d.runs)!=null?K:[]).map(function(c){return Object.assign({},c)})}if(H)for(H=_.q(d),K=H.next();!K.done;K=H.next())K.value.bold=!0;
return d};
ANK=function(d){var H=d.startEndTimeTemplate,K=d.startTimeUtcMillis;d=d.endTimeUtcMillis;if(H&&K&&d)return _.AF(_.z6H(_.jG(H),Number(K),Number(d)))};
jCa=function(d,H){var K,c,p=d==null?void 0:(K=d.viewCount)==null?void 0:(c=K.videoViewCountRenderer)==null?void 0:c.shortViewCount;if(!H&&p)return p;var g,a;return d==null?void 0:(g=d.viewCount)==null?void 0:(a=g.videoViewCountRenderer)==null?void 0:a.viewCount};
vdC=function(d,H){var K=d==null?void 0:d.relativeDateText;return!H&&K?[K,!0]:[d==null?void 0:d.dateText,!1]};
dSc=function(d,H,K,c,p){c=c===void 0?!0:c;p=p===void 0?"":p;var g=jCa(d,H),a=_.q(vdC(d,H)),e=a.next().value;a=a.next().value;H=H?d==null?void 0:d.sponsorsOnlyFirstTimeLongText:d==null?void 0:d.sponsorsOnlyFirstTimeShortText;var k=[];K&&g&&k.push(g);!K&&a||!e||k.push(e);d=[].concat(_.ru(k),[H,d==null?void 0:d.stationName,d==null?void 0:d.rating,d?ANK(d):void 0,d==null?void 0:d.upNextProgramText,d==null?void 0:d.superTitleLink]).filter(function(C){return!!C});
K={runs:[]};for(g=0;g<d.length;g++)K.runs.push.apply(K.runs,_.ru(f0_(d[g],c))),g<d.length-1&&K.runs.push({text:" "+p+" ",bold:c});return K};
HtE=function(d){if(d)return{runs:[{text:d,bold:!0}]}};
$SK=function(d){var H,K,c,p;if(d=d==null?void 0:(H=d.contents)==null?void 0:(K=H.twoColumnWatchNextResults)==null?void 0:(c=K.results)==null?void 0:(p=c.results)==null?void 0:p.contents){var g,a;return(a=(g=d.find(function(e){return!!e.videoPrimaryInfoRenderer}))==null?void 0:g.videoPrimaryInfoRenderer)==null?void 0:a.updatedMetadataEndpoint}};
KbH=function(d,H){var K;return(K=d.sourceConfigs)==null?void 0:K.find(function(c){return c.videoId===H})};
WD=function(d){return d==="End of video"||d==="End of playlist"};
cZr=function(d){var H,K,c,p;return(H=d.getWatchNextResponse())==null?void 0:(K=H.contents)==null?void 0:(c=K.twoColumnWatchNextResults)==null?void 0:(p=c.playlist)==null?void 0:p.playlist};
pvN=function(d){var H,K,c,p,g,a;return(H=cZr(d))==null?void 0:(K=H.playlistButtons)==null?void 0:(c=K.menuRenderer)==null?void 0:(p=c.topLevelButtons)==null?void 0:(g=p[0])==null?void 0:(a=g.playlistLoopButtonRenderer)==null?void 0:a.playlistLoopStateEntityKey};
g0a=function(d){var H=_.Kj().resolve(_.tJ),K;return(H=(K=_.M(H.getAutoplayEndpoint(),_.AP))==null?void 0:K.playlistId)&&H===d};
o0L=function(d,H,K,c,p){function g(){_.Xp.cancelJob(BD);var a=it_(H,K/d.getPlaybackRate()),e=a.hours,k=a.minutes;a=(a.seconds*1E3||6E4)/d.getPlaybackRate();d.setVideoTimeLeft(GG_(e,k));c&&d.getPlayerState()!==0&&d.setSleepTimerTimeLeft(GG_(e,k,!0));(e>0||k>0)&&!p&&(BD=_.rB(_.Xp,g,a))}
_.Xp.cancelJob(BD);BD=_.rB(_.Xp,g)};
qU_=function(d,H,K){function c(){_.Xp.cancelJob(zB);var p=it_(H,K),g=p.hours;p=p.minutes;var a=6E4/d.getPlaybackRate();if(g>0||p>0)d.setSleepTimerTimeLeft(GG_(g,p,!0)),zB=_.rB(_.Xp,c,a)}
_.Xp.cancelJob(zB);zB=_.rB(_.Xp,c)};
a5S=function(d,H){var K=d.getVolume()/(H/500),c=function(p){_.Xp.cancelJob(XP);var g=Math.floor(p-K);d.setVolume(g,!1);g>0&&(XP=_.rB(_.Xp,function(){c(g)},500))};
_.Xp.cancelJob(XP);XP=_.rB(_.Xp,function(){c(d.getVolume())})};
l5E=function(d,H){_.Xp.cancelJob(XP);H&&d.syncVolume()};
ejH=function(){var d={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Vz("SLEEP_TIMER_DISRUPTED")}}}}};_.Kj().resolve(_.cb).resolveCommand(d)};
kGa=function(d){return(d.getDuration()-d.getProgressState().current)*1E3};
it_=function(d,H){d=d+H-(0,_.$G)();if(d<=0)return{hours:0,minutes:0,seconds:0};var K=new xSE(0,0,0,0,0,0,d);d=K.getHours();H=K.getMinutes();K=K.getSeconds();K!==0&&H++;H!==0&&H%60===0&&(d++,H=0);return{hours:d,minutes:H,seconds:K}};
GG_=function(d,H,K){return d>0&&H>0?K?_.Vz("TIME_LEFT_HOURS_MINUTES",{hours:d.toString(),minutes:H.toString()}):_.Vz("TIME_HOURS_MINUTES",{hours:d.toString(),minutes:H.toString()}):d>0?K?_.Ua("TIME_LEFT_HOURS",d):_.Ua("TIME_HOURS",d):K?_.Vz("TIME_LEFT_MINUTES",{minutes:H.toString()}):_.Vz("TIME_MINUTES",{minutes:H.toString()})};
n0_=function(d,H){if(d.timelyActions)return d.timelyActions.find(function(K){var c;return((c=_.M(K,Jh))==null?void 0:c.cueRangeId)===H})};
Cgc=function(d){var H=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.pG(d);d.keyMap_.forEach(function(K,c){_.TL(H,c)||this.remove(c)},d)};
RjE=function(d,H){d.reloadContinuationItemsCommandMatcher=H};
_.sZ=function(d,H){d.insertBefore(H,d.childNodes[0]||null)};
VTK=function(d){if(d>=48&&d<=57||d>=96&&d<=106||d>=65&&d<=90||_.oB&&d==0)return!0;switch(d){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return _.GZ;default:return!1}};
USa=function(d){if(d.altKey&&!d.ctrlKey||d.metaKey||d.keyCode>=112&&d.keyCode<=123)return!1;if(VTK(d.keyCode))return!0;switch(d.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!_.GZ;default:return d.keyCode<166||d.keyCode>183}};
xSE=function(d,H,K,c,p,g,a){this.date=typeof d==="number"?new Date(d,H||0,K||1,c||0,p||0,g||0,a||0):new Date(d&&d.getTime?d.getTime():_.$V())};
_.K1(xSE,_.mq);_.G=xSE.prototype;_.G.getHours=function(){return this.date.getHours()};
_.G.getMinutes=function(){return this.date.getMinutes()};
_.G.getSeconds=function(){return this.date.getSeconds()};
_.G.getMilliseconds=function(){return this.date.getMilliseconds()};
_.G.getUTCDay=function(){return this.date.getUTCDay()};
_.G.getUTCHours=function(){return this.date.getUTCHours()};
_.G.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.G.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.G.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.G.setHours=function(d){this.date.setHours(d)};
_.G.setMinutes=function(d){this.date.setMinutes(d)};
_.G.setSeconds=function(d){this.date.setSeconds(d)};
_.G.setMilliseconds=function(d){this.date.setMilliseconds(d)};
_.G.setUTCHours=function(d){this.date.setUTCHours(d)};
_.G.setUTCMinutes=function(d){this.date.setUTCMinutes(d)};
_.G.setUTCSeconds=function(d){this.date.setUTCSeconds(d)};
_.G.setUTCMilliseconds=function(d){this.date.setUTCMilliseconds(d)};
_.G.add=function(d){_.mq.prototype.add.call(this,d);d.hours&&this.setUTCHours(this.date.getUTCHours()+d.hours);d.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+d.minutes);d.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+d.seconds)};
_.G.JSC$11261_toIsoString=function(d){var H=_.mq.prototype.JSC$11261_toIsoString.call(this,d);return d?H+"T"+_.dv(this.getHours(),2)+":"+_.dv(this.getMinutes(),2)+":"+_.dv(this.getSeconds(),2):H+"T"+_.dv(this.getHours(),2)+_.dv(this.getMinutes(),2)+_.dv(this.getSeconds(),2)};
_.G.equals=function(d){return this.getTime()==d.getTime()};
_.G.toString=function(){return this.JSC$11261_toIsoString()};
_.G.clone=function(){var d=new xSE(this.date);d.firstDayOfWeek_=this.firstDayOfWeek_;d.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return d};
_.hjc=function(d){return _.iZ({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:d}})};
LbH=new _.Dk("imageTileRenderer");var MT_=new _.Dk("adGridCardCollectionViewModel");var mSN=new _.Dk("carouselTitleViewModel");var wva=new _.Dk("ctaCarouselItemViewModel");var Pg_=new _.Dk("textFieldViewModel");_.uOO=new _.Dk("engagementPanelHeaderShowNavigationButtonCommand");var I5O=new _.Dk("hideEngagementPanelScrimAction");var rZa=new _.Dk("setActivePanelItemAction");var Wb_=new _.Dk("showEngagementPanelScrimAction");var BqS=new _.Dk("updateEngagementPanelAction");var zjw=new _.Dk("updateSearchInVideoResultsAction");var Xv_=new _.Dk("transcriptCueGroupRenderer");var JZS=new _.Dk("transcriptCueRenderer");var sZ_=new _.Dk("transcriptFooterRenderer");var FbC=new _.Dk("engagementPanelAdSubtitleRenderer");var Zte=new _.Dk("videoDescriptionFantasySectionViewModel");var Tqe=new _.Dk("deleteClipEngagementPanelCommand");var QZa=new _.Dk("loopCommand");var tTH=new _.Dk("changeCreatorEndscreenVisibilityCommand");var YUB=new _.Dk("liveChatCallForQuestionsRenderer");var OtN=new _.Dk("updateTimedMarkersSyncObserverCommand");var Jh=new _.Dk("timelyActionViewModel");var SUK=new _.Dk("timelyActionsOverlayViewModel");var E0a=new _.Dk("repeatChapterCommand");var yZa=new _.Dk("watchPlayerOverflowMenuCommand");var btr=new _.Dk("compositeVideoOverlayRenderer");var NqK=new _.Dk("sortFilterSubMenuRenderer");var DSN=new _.Dk("switchListItemViewModel");var f5_=new _.Dk("inputComposerViewModel");var AZe=new _.Dk("transcriptEditSegmentCommand");var jZB=new _.Dk("transcriptUpdateSegmentTextCommand");var v0w=new _.Dk("transcriptSearchBoxRenderer");var dNa=new _.Dk("transcriptSegmentListRenderer");var Hcc=new _.Dk("transcriptSegmentRenderer");_.$NB=new _.Dk("updateDateTextAction");var KrC=new _.Dk("updateTitleAction");var cLN=new _.Dk("updateViewershipAction");var peE=new _.Dk("carouselLockupRenderer");var FP=new _.Dk("expandableVideoDescriptionBodyRenderer");var gOK=new _.Dk("videoDescriptionHeaderRenderer");var icS=new _.Dk("videoDescriptionYouchatSectionViewModel");_.ZI=_.iT("kevlar_watch_page_horizontal_margin",24);_.GCO=_.iT("kevlar_watch_page_columns_top_padding",24);_.oO_=426+_.ZI*2;_.TB=_.iT("kevlar_watch_two_column_width_threshold",1E3);_.qHw=_.ZI*2;_.awr=_.iT("kevlar_watch_secondary_width",402);_.lwe=_.iT("kevlar_watch_max_player_width",1280);_.e_H=_.iT("kevlar_watch_flexy_metadata_height",136);_.kC_=_.qHw+310+_.ZI;_.xNc=_.qHw+360+_.ZI;var nO_={PAUSE_CHAT:18};var C_w;var R__;var QU=function(){return _.B.apply(this,arguments)||this};
_.m(QU,_.B);QU.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
QU.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var d=_.M(this.data.button,_.OV);d&&(d.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.H3.Object.defineProperties(QU,{template:{configurable:!0,enumerable:!0,get:function(){if(R__===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-disableable-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_disableable_button_view_model.yt.disableable.button.view.model.css.js--\x3e<div id="button" class="style-scope yt-disableable-button-view-model"></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;C_w===void 0&&(C_w=document.createElement("template"));var c=C_w;K.call(H,c.content.cloneNode(!0),d.content.firstChild);R__=d}d=R__;return d}}});
_.t([_.u(_.YC),_.O("design:type",Object)],QU.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],QU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r({selectorArgs:["data.enabledEntityKey"],selector:mUH,observer:"onEnabledChange"}),_.O("design:type",Boolean)],QU.prototype,"enabled",void 0);_.t([_.r(),_.O("design:type",Object)],QU.prototype,"data",void 0);_.t([_.ZV({is:"yt-disableable-button-view-model",noInjection:!0})],QU);var VEO;var UNa;var h__=["transVert01","transVert02","transVert03"],Lrw="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),th=function(){var d=_.B.apply(this,arguments)||this;d.emojiManager=_.bq;d.isDarkTheme=document.documentElement.hasAttribute("dark");d.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};d.reactionBuckets=[];d.noEmojiIdentifier="NO_EMOJI";return d};
_.m(th,_.B);_.G=th.prototype;_.G.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.G.desktopFountainEmojiSizePxChanged=function(){_.eO(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.G.createUserReactionAnimation=function(d){this.createEmojiAnimation(d,!0)};
_.G.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var d;((d=this.data)==null?0:d.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.PI("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.ru(this.emojiContainer.children)).forEach(function(H){H.remove()})};
_.G.detached=function(){this.cleanupFountain()};
_.G.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var d;this.reactionBuckets=_.rs.unsafeClone((d=this.emojiFountainData)==null?void 0:d.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.G.processEmojiBucket=function(d){var H=this;if(this.reactionBuckets&&!(d>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var K=this.reactionBuckets[d];this.generateEmojiAnimations(K);if(d<this.reactionBuckets.length-1){var c;if(K==null?0:(c=K.duration)==null?0:c.seconds)this.emojiBucketTimerId=setTimeout(function(){H.processEmojiBucket(d+1)},Number(K.duration.seconds)*1E3)}}};
_.G.generateEmojiAnimations=function(d){var H=this,K=this.getRandomEmojiIdFromBucketWithOverride(d);if(K&&K!==this.noEmojiIdentifier){var c=0;d.targetEps?(c=this.linearInterpolateBounded(1,20,100,12,d.emojiSizeIndex||0),this.createEmojiAnimation(K,!1,d.emojiAnimationMs,c),c=this.getEmojiDelayMsFromTargetEps(d.targetEps)):(this.createEmojiAnimation(K),c=this.getEmojiDelayMsFromDistribution(d.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){H.generateEmojiAnimations(d)},c)}};
_.G.getRandomEmojiIdFromBucketWithOverride=function(d){if(!(d&&d.reactionsData&&d.reactionsData.length&&d.totalReactions))return this.noEmojiIdentifier;for(var H=d.totalReactions,K=1,c=_.q(d.reactionsData),p=c.next();!p.done;p=c.next())p=p.value,(p.reactionWeightOverride||p.reactionWeightOverride===0)&&p.reactionCount&&(H-=p.reactionCount,K-=p.reactionWeightOverride);c=!0;K<0&&(c=!1,H=d.totalReactions,K=1);if(c&&K>0&&H===0)if(K===1){p=0;for(var g=_.q(d.reactionsData),a=g.next();!a.done;a=g.next())a=
a.value,a.reactionCount&&a.reactionCount>0&&p++;p=1/p;g=_.q(d.reactionsData);for(a=g.next();!a.done;a=g.next())a.value.reactionWeightOverride=p}else for(p=1/(1-K),g=_.q(d.reactionsData),a=g.next();!a.done;a=g.next())a=a.value,a.reactionWeightOverride&&(a.reactionWeightOverride*=p);p=Math.random();g=0;a=_.q(d.reactionsData);for(var e=a.next();!e.done;e=a.next())if(e=e.value,e.reactionCount&&(g=(e.reactionWeightOverride||e.reactionWeightOverride===0)&&c?g+e.reactionWeightOverride:g+K*e.reactionCount/
H,g>p&&(e.reactionCount--,d.totalReactions--,e=this.reactionItemToEmojiString(e),e!==this.noEmojiIdentifier)))return e;return this.noEmojiIdentifier};
_.G.reactionItemToEmojiString=function(d){if(d.unicodeEmojiId)return d.unicodeEmojiId;if(d.emoteId)return d.emoteId;if(d.videoReactionType)switch(d.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.G.createEmojiAnimation=function(d,H,K,c){H=H===void 0?!1:H;this.lastEmojiRequestedForTesting=d;var p=d.startsWith("yt-icons:"),g=_.Eq(this.emojiManager,d);if(g||p){var a=document.createElement("emoji");a.classList.add("yt-emoji-fountain-view-model");a.classList.add(h__[Math.floor(Math.random()*h__.length)]);var e=document.createElement("div");e.classList.add("yt-emoji-fountain-view-model");e.classList.add("horizontal-container");e.classList.add(Lrw[Math.floor(Math.random()*Lrw.length)]);H?(K=document.createElement("div"),
K.classList.add("user-reaction-bubble"),K.classList.add("yt-emoji-fountain-view-model"),e.appendChild(K)):(K&&(a.style.animationDuration=K+"ms",e.style.animationDuration=K+"ms"),c&&(a.style.width=c+"px",a.style.height=c+"px"));p?(p=document.createElement("yt-icon"),p.polymerController.icon=d,c&&(p.style.width=c+"px",p.style.height=c+"px"),d=p):d=this.emojiManager.createEmoji(g,!1);d.classList.add("yt-emoji-fountain-view-model");e.appendChild(d);a.appendChild(e);this.emojiContainer.appendChild(a);
a.addEventListener("animationend",function(){a.remove()});
var k,C;if((k=this.data)==null?0:(C=k.loggingDirectives)==null?0:C.trackingParams)H=H?_.l8(183501):_.l8(183500),wB_(this.data.loggingDirectives.trackingParams,H),_.VjF(H);setTimeout(function(){a&&a.remove()},2E3)}};
_.G.getEmojiDelayMsFromDistribution=function(d){return Math.random()*(d||1)*1E3};
_.G.getEmojiDelayMsFromTargetEps=function(d){return Math.random()*2*(1/d)*1E3};
_.G.linearInterpolateBounded=function(d,H,K,c,p){p=Math.min(Math.max(p,d),K);return(H*(K-p)+c*(p-d))/(K-d)};
th.prototype.onEmojiFountainDataEntityUpdate=th.prototype.onEmojiFountainDataEntityUpdate;th.prototype.desktopFountainEmojiSizePxChanged=th.prototype.desktopFountainEmojiSizePxChanged;th.prototype.isActiveChanged=th.prototype.isActiveChanged;_.t([_.r(),_.O("design:type",_.SP)],th.prototype,"emojiManager",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.YC),_.O("design:type",Object)],th.prototype,"ytLiveChatReduxBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],th.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],th.prototype,"data",void 0);_.t([_.r({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(d,H){return _.xL(d.entities,"emojiFountainDataEntity",H)}}),
_.O("design:type",Object)],th.prototype,"emojiFountainData",void 0);_.t([_.r(),_.O("design:type",Boolean)],th.prototype,"isActive",void 0);_.t([_.CK("isActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],th.prototype,"isActiveChanged",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],th.prototype,"isDarkTheme",void 0);_.t([_.r(),_.O("design:type",String)],th.prototype,"lastEmojiRequestedForTesting",void 0);
_.t([_.r({value:function(){return _.iT("desktop_fountain_emoji_size_px",20)}}),
_.O("design:type",Number)],th.prototype,"desktopFountainEmojiSizePx",void 0);_.t([_.CK("desktopFountainEmojiSizePx"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],th.prototype,"desktopFountainEmojiSizePxChanged",null);_.t([_.VP("#emoji-container"),_.O("design:type",HTMLElement)],th.prototype,"emojiContainer",void 0);
_.t([_.CK("emojiFountainData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],th.prototype,"onEmojiFountainDataEntityUpdate",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],th);
_.T(th,"yt-emoji-fountain-view-model",function(){if(UNa===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-fountain-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_fountain_view_model.yt.emoji.fountain.view.model.css.js--\x3e<div id="fountain-bounds" class="style-scope yt-emoji-fountain-view-model">\n  <div id="emoji-container" class="style-scope yt-emoji-fountain-view-model"></div>\n</div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;VEO===void 0&&(VEO=document.createElement("template"));var c=VEO;K.call(H,c.content.cloneNode(!0),d.content.firstChild);UNa=d}d=UNa;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var MEH;var mNS;var YD=function(){return _.B.apply(this,arguments)||this};
_.m(YD,_.B);YD.prototype.onChoiceChanged=function(){this.data&&_.eO(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
YD.prototype.onChoiceChanged=YD.prototype.onChoiceChanged;_.t([_.r(),_.O("design:type",Object)],YD.prototype,"data",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],YD.prototype,"onChoiceChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],YD);
_.T(YD,"yt-live-chat-banner-poll-choice",function(){if(mNS===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-banner-poll-choice--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_banner_poll_choice.yt.live.chat.banner.poll.choice.css.js--\x3e<div id="content" class="style-scope yt-live-chat-banner-poll-choice">\n  <div id="percentage-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <div id="vote-percentage-bar" class="style-scope yt-live-chat-banner-poll-choice"></div>\n  </div>\n  <div id="text-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <yt-formatted-string id="label-text" no-styles="" text="[[data.text]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n    <yt-formatted-string id="vote-percentage-text" no-styles="" text="[[data.votePercentage]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n  </div>\n</div>\n\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;MEH===void 0&&(MEH=document.createElement("template"));var c=MEH;K.call(H,c.content.cloneNode(!0),d.content.firstChild);mNS=d}d=mNS;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var weE;var P_L;var OZ=function(){var d=_.B.apply(this,arguments)||this;d.modern=_.h("web_button_rework_with_live");d.small=!1;return d};
_.m(OZ,_.B);OZ.prototype.computeIsSmall=function(){var d;return((d=this.buttonOverrides)==null?void 0:d.size)==="S"};
OZ.prototype.computeId=function(){return this.data&&this.data.targetId};
_.t([_.u(_.Os.YtLiveChatTooltipTargetingBehavior),_.O("design:type",Object)],OZ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.t([_.r({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.O("design:type",String)],OZ.prototype,"id",void 0);_.t([_.r(),_.O("design:type",Object)],OZ.prototype,"buttonOverrides",void 0);_.t([_.r(),_.O("design:type",Object)],OZ.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],OZ.prototype,"modern",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.O("design:type",Object)],OZ.prototype,"small",void 0);_.t([_.Z({disableElementRegistration:!0,is:"yt-live-chat-button"})],OZ);
_.T(OZ,"yt-live-chat-button",function(){if(P_L===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_button.yt.live.chat.button.css.js--\x3e<yt-button-renderer data="[[data]]" overrides="[[buttonOverrides]]" class="style-scope yt-live-chat-button"></yt-button-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;weE===void 0&&(weE=document.createElement("template"));var c=weE;K.call(H,c.content.cloneNode(!0),d.content.firstChild);P_L=d}d=P_L;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var uaE;var Iw_;var SF=function(){var d=_.B.apply(this,arguments)||this;d.inCollapsedBanner=!1;d.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};d.questionButtonOverrides={style:"mono",type:"filled"};return d};
_.m(SF,_.B);_.G=SF.prototype;_.G.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}};
_.G.onContextMenuButtonClick=function(d){this.ytLiveChatItemBehavior.showContextMenu(d)};
_.G.onYtRendererstamperFinished=function(){this.menuButton=_.Gn(this.hostElement).querySelector("#menu-button")};
_.G.dataChanged=function(){var d,H;if((H=_.M((d=this.data)==null?void 0:d.overflowMenuButton,_.Tz))==null?0:H.command)this.data.contextMenuEndpoint=_.M(this.data.overflowMenuButton,_.Tz).command};
_.G.onButtonClick=function(){var d,H=_.M((d=this.data)==null?void 0:d.askQuestionButton,_.Tz);if(H){if(H.trackingParams&&(d=_.P1(H.trackingParams))){var K=_.Fj();K&&_.fo(K,d)}_.GT(this.hostElement,"innertube-command",H.command)}};
SF.prototype.onYtRendererstamperFinished=SF.prototype.onYtRendererstamperFinished;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.YC),_.O("design:type",Object)],SF.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.u(_.NZ.YtLiveChatItemBehavior),_.O("design:type",_.Dj)],SF.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.r({observer:"dataChanged"}),_.O("design:type",Object)],SF.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],SF.prototype,"inCollapsedBanner",void 0);_.t([_.r(),_.O("design:type",Object)],SF.prototype,"buttonOverrides",void 0);_.t([_.r(),_.O("design:type",Object)],SF.prototype,"questionButtonOverrides",void 0);_.t([_.nK("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],SF.prototype,"onYtRendererstamperFinished",null);
_.t([_.Z({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],SF);
_.T(SF,"yt-live-chat-call-for-questions-renderer",function(){if(Iw_===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-call-for-questions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_call_for_questions_renderer.yt.live.chat.call.for.questions.renderer.css.js--\x3e<div id="content-top" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorAvatar]]" thumbnail="[[data.creatorAvatar]]" width="24" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-img-shadow>\n\n  <div id="metadata-text" class="style-scope yt-live-chat-call-for-questions-renderer">\n    <yt-formatted-string id="author-name" hidden$="[[inCollapsedBanner]]" text="[[data.creatorAuthorName]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-collapsed" hidden$="[[inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="feature-label" text="[[data.featureLabel]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-extended" hidden$="[[!inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="collapsed-call-for-questions-text" hidden$="[[!inCollapsedBanner]]" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n  </div>\n\n  <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n\n<div id="main-content" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-formatted-string id="call-for-questions-text" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-formatted-string>\n\n  <div id="ask-question" on-click="onButtonClick" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;uaE===void 0&&(uaE=document.createElement("template"));var c=uaE;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Iw_=d}d=Iw_;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var rLH={};rLH.YtLiveChatDialogBehavior={properties:{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged_"}},observers:["isAttachedChanged_(isAttached)"],created:function(){this.restoreFocusNode_=null},
attached:function(){document.addEventListener("focus",this.onFocus_.bind(this),!0)},
detached:function(){this.restoreFocusNode_=null;document.removeEventListener("focus",this.onFocus_.bind(this),!0)},
focusChild_:function(){var d=this;window.requestAnimationFrame(function(){d.restoreFocusNode_||(d.restoreFocusNode_=document.activeElement);var H=_.QIg(d.hostElement);H.length&&H[H.length-1].focus()})},
isAttachedChanged_:function(d,H){d?this.focusChild_():H&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(d){this.hidden||_.jh(d).indexOf(this.hostElement)!==-1||(d.stopPropagation(),this.focusChild_())}};var Wra;var BSw;var EZ=function(){return _.B.apply(this,arguments)||this};
_.m(EZ,_.B);EZ.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
EZ.prototype.onClick=function(d){d.target!==this.confirmButton&&d.target!==this.cancelButton&&(this.hidden=!0)};
_.t([_.VP("#confirm_button"),_.O("design:type",Object)],EZ.prototype,"confirmButton",void 0);_.t([_.VP("#cancel_button"),_.O("design:type",Object)],EZ.prototype,"cancelButton",void 0);_.t([_.r(),_.O("design:type",z_c)],EZ.prototype,"data",void 0);_.t([_.r({value:!0,reflectToAttribute:!0}),_.O("design:type",Boolean)],EZ.prototype,"hidden",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],EZ.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(rLH.YtLiveChatDialogBehavior),_.O("design:type",Object)],EZ.prototype,"ytLiveChatDialogBehavior",void 0);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],EZ);
var z_c=_.T(EZ,"yt-live-chat-dialog-renderer",function(){if(BSw===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_dialog_renderer.yt.live.chat.dialog.renderer.css.js--\x3e<div id="inner" aria-describedby="live-chat-dialog-body" aria-labelledby="live-chat-dialog-title" role="dialog" class="style-scope yt-live-chat-dialog-renderer">\n  <yt-image id="image" alt="[[data.imageA11yLabel]]" data="[[data.image]]" height="200" preserve-height="" width="32" class="style-scope yt-live-chat-dialog-renderer">\n  </yt-image>\n  <yt-formatted-string id="live-chat-dialog-title" text="[[data.title]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n  <div id="live-chat-dialog-body" class="style-scope yt-live-chat-dialog-renderer">\n    \n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-live-chat-dialog-renderer">\n      <yt-formatted-string force-default-style="" split-lines="" text="[[item]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n    </template>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-dialog-renderer">\n    <div id="cancel_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n    <div id="confirm_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;Wra===void 0&&(Wra=document.createElement("template"));var c=Wra;K.call(H,c.content.cloneNode(!0),d.content.firstChild);BSw=d}d=BSw;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var XeB;var JLH,sKL=function(){if(JLH!==void 0)return JLH;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-engagement-panel-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_engagement_panel_input_renderer.yt.live.chat.engagement.panel.input.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-engagement-panel-input-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;XeB===void 0&&(XeB=document.createElement("template"));var c=XeB;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return JLH=d};var Fr_;var ZcS;var yU=function(){var d=_.B.apply(this,arguments)||this;d.tooltip=null;d.data=null;d.id="";d.active=!1;d.icon="";d.disabled=!1;d.showTooltip=!1;d.useToggledActiveState=!0;d.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return d};
_.m(yU,_.B);_.G=yU.prototype;
_.G.dataChanged=function(){var d;((d=this.data)==null?0:d.tooltip)?(this.tooltip||(this.tooltip=document.createElement("tp-yt-paper-tooltip"),this.tooltip.position="top",this.tooltip.offset=8,this.tooltip.fitToVisibleBounds=!0,this.tooltip.style.right="0",this.hostElement.appendChild(this.tooltip)),(0,_.ls)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var H;if((H=this.data)==null?0:H.disabled)this.disabled=!0};
_.G.computeId=function(d){return d};
_.G.computeIcon=function(d,H){if(!d)return"";if(this.useToggledActiveState)return"yt-icons:"+d.toLowerCase();var K,c;return H&&((K=this.data)==null?0:(c=K.toggledIcon)==null?0:c.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+d.toLowerCase()};
_.G.logPDGEntryPoint=function(){_.lT4(_.nm("FLOW_EVENT_NAMESPACE_PDG_BUY_FLOW",1,{pdgBuyFlowContext:{entryPointClickedContext:{sharedPdgBuyFlowEntryPoint:"SHARED_PDG_BUY_FLOW_ENTRY_POINT_LIVE_CHAT_MONEY_BUTTON"}}}),"FLOW_TYPE_PDG_BUY_FLOW")};
_.G.immediatelyShowTooltip=function(){var d=_.Gn(this.hostElement).querySelector("#tooltip");d.animationDelay=0;d.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};d.show()};
_.G.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.G.onClick=function(d){var H;((H=this.data)==null?0:H.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),d.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.GT(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.G.computeShowTooltip=function(d,H){return!!(d&&d.tooltip&&H)};
_.G.maybeUpdateTooltipText=function(){var d=this,H;if((H=this.data)==null?0:H.tooltip){var K=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.ls)(d.tooltip).textContent=K},250)}};
_.G.handleLiveChatActions=function(d){var H=this;d.length&&(this.id!=="creator"&&this.id!=="product-picker"||d.forEach(function(K){(K=H.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",K))&&K.durationSec===K.fullDurationSec&&H.startBubble(H.colorFromDecimal(K.startBackgroundColor))}))};
_.G.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.G.startBubble=function(d){_.eO(this.hostElement,{"--yt-live-chat-monetization-button-glow":d});this.hostElement.setAttribute("bubble","")};
_.G.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.G.colorFromDecimal=function(d){typeof d==="string"&&(d=Number(d));return"rgba("+[d>>16&255,d>>8&255,d&255,(d>>24&255)/255].join()+")"};
yU.prototype.onAnimationEnd=yU.prototype.onAnimationEnd;yU.prototype.disabledChanged=yU.prototype.disabledChanged;yU.prototype.dataChanged=yU.prototype.dataChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],yU.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],yU.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.Os.YtLiveChatTooltipTargetingBehavior),_.O("design:type",Object)],yU.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],yU.prototype,"data",void 0);_.t([_.r({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.O("design:type",Object)],yU.prototype,"id",void 0);_.t([_.r({notify:!0,reflectToAttribute:!0}),_.O("design:type",Object)],yU.prototype,"active",void 0);
_.t([_.r({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.O("design:type",Object)],yU.prototype,"icon",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],yU.prototype,"disabled",void 0);_.t([_.r({computed:"computeShowTooltip(data, disabled)"}),_.O("design:type",Object)],yU.prototype,"showTooltip",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],yU.prototype,"useToggledActiveState",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yU.prototype,"dataChanged",null);_.t([_.CK("disabled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yU.prototype,"disabledChanged",null);_.t([_.nK("animationend"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],yU.prototype,"onAnimationEnd",null);
_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],yU);
_.T(yU,"yt-live-chat-icon-toggle-button-renderer",function(){if(ZcS===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-icon-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_icon_toggle_button_renderer.yt.live.chat.icon.toggle.button.renderer.css.js--\x3e<yt-icon-button id="button" disabled="[[disabled]]" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <span id="bubble" class="style-scope yt-live-chat-icon-toggle-button-renderer"></span>\n  <div class="style-scope yt-live-chat-icon-toggle-button-renderer">\n    <yt-icon active="[[active]]" icon="[[icon]]" class="style-scope yt-live-chat-icon-toggle-button-renderer"></yt-icon>\n    <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.iconBadgeText]]</span>\n  </div>\n</yt-icon-button>\n<template is="dom-if" if="[[showTooltip]]" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <tp-yt-paper-tooltip id="tooltip" for="button" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;Fr_===void 0&&(Fr_=document.createElement("template"));var c=Fr_;K.call(H,c.content.cloneNode(!0),d.content.firstChild);ZcS=d}d=ZcS;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var TSH;var QK_;var bz=function(){return _.B.apply(this,arguments)||this};
_.m(bz,_.B);bz.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.t([_.r(),_.O("design:type",Object)],bz.prototype,"data",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],bz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.Z({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],bz);
_.T(bz,"yt-live-chat-message-input-prompt-header-renderer",function(){if(QK_===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-prompt-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_prompt_header_renderer.yt.live.chat.message.input.prompt.header.renderer.css.js--\x3e<div id="primary-content" class="style-scope yt-live-chat-message-input-prompt-header-renderer">\n  <div id="close-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n  <yt-formatted-string id="label-text" text="[[data.labelText]]" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></yt-formatted-string>\n  <div id="help-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n</div>\n<div id="underline" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;TSH===void 0&&(TSH=document.createElement("template"));var c=TSH;K.call(H,c.content.cloneNode(!0),d.content.firstChild);QK_=d}d=QK_;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var tE_;var YHN;var OcC;var SHN;var EOa;var yLw;var bcr=function(){return _.B.apply(this,arguments)||this};
_.m(bcr,_.B);_.t([_.r(),_.O("design:type",Object)],bcr.prototype,"data",void 0);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],bcr);
_.T(bcr,"yt-live-chat-message-subtext-renderer",function(){if(yLw===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-subtext-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_subtext_renderer.yt.live.chat.message.subtext.renderer.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-message-subtext-renderer"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;EOa===void 0&&(EOa=document.createElement("template"));var c=EOa;K.call(H,c.content.cloneNode(!0),d.content.firstChild);yLw=d}d=yLw;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var NK=function(){var d=_.B.apply(this,arguments)||this;d.subtextOnBottom=!1;d.buttonOverrides={style:"mono",type:"tonal"};return d};
_.m(NK,_.B);NK.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],NK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],NK.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],NK.prototype,"subtextOnBottom",void 0);_.t([_.r(),_.O("design:type",Object)],NK.prototype,"buttonOverrides",void 0);
_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],NK);
_.T(NK,"yt-live-chat-message-renderer",function(){if(SHN===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_renderer.yt.live.chat.message.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-message-renderer"></yt-formatted-string>\n<div id="subtext" class="style-scope yt-live-chat-message-renderer"></div>\n<div id="button" class="style-scope yt-live-chat-message-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;OcC===void 0&&(OcC=document.createElement("template"));var c=OcC;K.call(H,c.content.cloneNode(!0),d.content.firstChild);SHN=d}d=SHN;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var NS_;var DNw;var DI=function(){var d=_.B.apply(this,arguments)||this;d.isRemovable=!1;d.hasPrefilledText=!1;d.isInputDirty=!1;d.overCharacterLimit=!1;d.underCharacterLimit=!1;d.showErrorMessage=!1;return d};
_.m(DI,_.B);_.G=DI.prototype;_.G.computeId=function(){return this.data.id};
_.G.computeInputData=function(){return this.data.inputData};
_.G.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.G.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.G.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.G.getLiveChatRichMessageInput=function(){return _.Gn(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.G.clearInput=function(){_.Gn(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.G.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.G.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.G.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.G.handleTextInputCharCountChanged=function(d){d=d.detail&&d.detail.characterCount;d!==void 0&&(this.characterCount=d,d!==0&&(this.isInputDirty=!0))};
_.G.onInputFocusOut=function(){this.isInputDirty=!0};
_.G.onClickCloseButton=function(){_.GT(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
DI.prototype.handleTextInputCharCountChanged=DI.prototype.handleTextInputCharCountChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],DI.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],DI.prototype,"data",void 0);_.t([_.r({computed:"computeId(data.id)"}),_.O("design:type",String)],DI.prototype,"id",void 0);_.t([_.r({computed:"computeInputData(data.inputData)"}),_.O("design:type",Object)],DI.prototype,"inputData",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.O("design:type",Object)],DI.prototype,"isRemovable",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.O("design:type",Object)],DI.prototype,"hasPrefilledText",void 0);_.t([_.r({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.O("design:type",Number)],DI.prototype,"charactersRemaining",void 0);
_.t([_.r(),_.O("design:type",Number)],DI.prototype,"characterCount",void 0);_.t([_.r(),_.O("design:type",Object)],DI.prototype,"isInputDirty",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.O("design:type",Object)],DI.prototype,"overCharacterLimit",void 0);_.t([_.r({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.O("design:type",Object)],DI.prototype,"underCharacterLimit",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.O("design:type",Object)],DI.prototype,"showErrorMessage",void 0);_.t([_.nK("yt-live-chat-text-input-field-renderer-character-count-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],DI.prototype,"handleTextInputCharCountChanged",null);
_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],DI);
_.T(DI,"yt-live-chat-poll-editor-input",function(){if(DNw===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_input.yt.live.chat.poll.editor.input.css.js--\x3e<div id="input-container" class="style-scope yt-live-chat-poll-editor-input">\n  <yt-live-chat-text-input-field-renderer id="input" data="[[inputData]]" is-valid-with-no-input-text="[[hasPrefilledText]]" on-focusout="onInputFocusOut" class="style-scope yt-live-chat-poll-editor-input">\n  </yt-live-chat-text-input-field-renderer>\n  <div id="content-right" class="style-scope yt-live-chat-poll-editor-input">\n    <yt-icon-button id="close-button" aria-label$="[[getSimpleString(data.removeOptionAltText)]]" on-click="onClickCloseButton" class="style-scope yt-live-chat-poll-editor-input">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-live-chat-poll-editor-input"></yt-icon>\n    </yt-icon-button>\n    <span id="char-count" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(data.charsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-input">[[charactersRemaining]]</span>\n  </div>\n</div>\n<div id="error-message" role="alert" class="style-scope yt-live-chat-poll-editor-input">\n  [[getSimpleString(data.charCountErrorText)]]\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;NS_===void 0&&(NS_=document.createElement("template"));var c=NS_;K.call(H,c.content.cloneNode(!0),d.content.firstChild);DNw=d}d=DNw;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var fwB;var ALK;var jKw={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},fi=function(){var d=_.B.apply(this,arguments)||this;d.modern=_.h("web_button_rework_with_live");d.closeButtonOverrides={iconPosition:"icon-only"};d.startButtonOverrides={style:"mono",type:"filled"};d.addOptionButtonOverrides={style:"mono",type:"text"};return d};
_.m(fi,_.B);_.G=fi.prototype;
_.G.configureRendererStamper=function(){return{"data.pollEditorInfo.addOptionButton":{id:"add-option-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[addOptionButtonOverrides]]"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[startButtonOverrides]]"}}}},pollQuestionData:{id:"poll-question",
mapping:{liveChatTextInputFieldRenderer:{component:"yt-live-chat-text-input-field-renderer",attributes:{id:"poll-question-input","is-valid-with-no-input-text":!0}}}},pollOptionsData:{id:"poll-options",mapping:{liveChatPollOptionInput:{component:"yt-live-chat-poll-editor-input"}}}}};
_.G.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var d;_.M((d=this.data)==null?void 0:d.startButton,_.Tz)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.G.computeId=function(){return this.data&&this.data.id||""};
_.G.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.G.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.G.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.G.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.G.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var d=0;d<this.pollEditorInfoWithDefaults.minPollOptions;d++)this.addPollOptionData()};
_.G.getIsValidPoll=function(){var d=this;if(!this.pollEditorInfoWithDefaults)return!1;var H=this.pollEditorInfoWithDefaults,K=H.minPollOptionChars,c=H.maxPollOptionChars,p=H.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>H.maxPollQuestionChars)return!1;H=_.Gn(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(H).every(function(g,a){g=g.characterCount;!g&&p[a]&&(g=d.ytRendererBehavior.getSimpleString(p[a]).length);return g!==void 0&&g>=K&&g<=c})};
_.G.isValidPollChanged=function(){var d;_.M((d=this.data)==null?void 0:d.startButton,_.Tz)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.G.addPollOptionData=function(){var d=this.pollEditorInfoWithDefaults,H=d.maxPollOptionChars,K=d.optionPlaceholderText,c=d.customOptionPlaceholderText,p=d.pollOptionData;this.currentNumPollOptions>=d.maxPollOptions||(d={liveChatPollOptionInput:{inputData:{placeholder:c[this.currentNumPollOptions]||K,maxCharacterLimit:H},maxCharacterLimit:H,minCharacterLimit:d.minPollOptionChars,hasPrefilledText:!!c[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=d.minPollOptions}},p.charCountErrorText&&
(d.liveChatPollOptionInput.charCountErrorText=p.charCountErrorText),p.charsRemainingAltLabel&&(d.liveChatPollOptionInput.charsRemainingAltLabel=p.charsRemainingAltLabel),p.removeOptionAltText&&(d.liveChatPollOptionInput.removeOptionAltText=p.removeOptionAltText),this.push("pollOptionsData",d),p=Array.from(_.Gn(_.Gn(this.hostElement).querySelector("#poll-options")).children),p.forEach(function(g,a){g.polymerController.set("data.id",a)}),_.Gn(p[p.length-1]).querySelector("#input").focus())};
_.G.getPollOptionInputValues=function(){var d=this,H=[],K=_.Gn(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),c=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(K).forEach(function(p,g){var a=null;p=p.getLiveChatRichMessageInput();var e;(p==null?0:(e=p.textSegments)==null?0:e.length)?a=_.OQ(p):c[g]&&(a=d.formattedStringToLiveChatRichMessageInput(c[g]));H.push(a)});
return H};
_.G.requestCreateAndStartPoll=function(d){var H=this.getPollOptionInputValues();if(!H.some(function(c){return!c})){H={optionText:H};
var K=_.Gn(_.Gn(this.hostElement).querySelector("#poll-question")).firstChild;K&&K.liveChatRichMessageInput&&(H.questionText=_.OQ(K.liveChatRichMessageInput));_.aF(this.hostElement,[d,H])}};
_.G.selectedChanged=function(){if(this.selected){var d=_.Gn(_.Gn(this.hostElement).querySelector("#start-button")).firstElementChild;if(d){var H;(H=_.Gn(d).querySelector("#button")||_.o1(d).querySelector("button"))==null||H.focus()}}};
_.G.handleTextInputChanged=function(d){var H;((H=d.target)==null?void 0:H.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=d.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.G.handleStartButtonAction=function(d){d.detail.actionName==="yt-service-request"&&(d.stopPropagation(),(d=d.detail.args[1])&&this.requestCreateAndStartPoll(d))};
_.G.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.G.handleServiceRequestCompleted=function(d){this.createPollRequestInFlight=!1;(d=d.detail&&d.detail.data)&&d.success&&(_.GT(this.hostElement,"picker-cancelled"),_.oF(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.G.onCloseClick=function(){_.GT(this.hostElement,"picker-cancelled");_.oF(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.G.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.G.handlePollEditorInputClosed=function(d){var H=this.pollOptionsData.findIndex(function(K){return K.liveChatPollOptionInput.id===d.detail.id});
this.splice("pollOptionsData",H,1);this.isValidPoll=this.getIsValidPoll()};
_.G.onPickerCancelled=function(){this.reset()};
_.G.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var d=_.Gn(_.Gn(this.hostElement).querySelector("#poll-question")).firstChild;d&&d.setLiveChatRichMessageInput(null);if(d=_.Gn(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){d=_.q(Array.from(d));for(var H=d.next();!H.done;H=d.next())H.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.G.formattedStringToLiveChatRichMessageInput=function(d){return d.simpleText?{text_segments:[d.simpleText]}:{text_segments:d.runs}};
_.H3.Object.defineProperties(fi.prototype,{pollQuestionData:{configurable:!0,enumerable:!0,get:function(){if(this.pollEditorInfoWithDefaults)return{liveChatTextInputFieldRenderer:{placeholder:this.pollEditorInfoWithDefaults.questionPlaceholderText,maxCharacterLimit:this.pollEditorInfoWithDefaults.maxPollQuestionChars}}}},
pollQuestionCharactersRemaining:{configurable:!0,enumerable:!0,get:function(){if(this.pollEditorInfoWithDefaults)return this.pollEditorInfoWithDefaults.maxPollQuestionChars-this.pollQuestionCharacterCount}},
pollEditorInfoWithDefaults:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.pollEditorInfo)return Object.assign(jKw,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
fi.prototype.onPickerCancelled=fi.prototype.onPickerCancelled;fi.prototype.handlePollEditorInputClosed=fi.prototype.handlePollEditorInputClosed;fi.prototype.handleServiceRequestCompleted=fi.prototype.handleServiceRequestCompleted;fi.prototype.handleServiceRequestSent=fi.prototype.handleServiceRequestSent;fi.prototype.handleTextInputChanged=fi.prototype.handleTextInputChanged;fi.prototype.selectedChanged=fi.prototype.selectedChanged;fi.prototype.isValidPollChanged=fi.prototype.isValidPollChanged;
fi.prototype.shouldInitializePollChanged=fi.prototype.shouldInitializePollChanged;fi.prototype.dataChanged=fi.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],fi.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],fi.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],fi.prototype,"modern",void 0);
_.t([_.r(),_.O("design:type",Object)],fi.prototype,"closeButtonOverrides",void 0);_.t([_.r(),_.O("design:type",Object)],fi.prototype,"startButtonOverrides",void 0);_.t([_.r(),_.O("design:type",Object)],fi.prototype,"addOptionButtonOverrides",void 0);_.t([_.r({computed:"computeId(data.id)",reflectToAttribute:!0}),_.O("design:type",String)],fi.prototype,"id",void 0);_.t([_.r({value:function(){return[]}}),
_.O("design:type",Array)],fi.prototype,"pollOptionsData",void 0);_.t([_.I("pollEditorInfoWithDefaults"),_.O("design:type",Object),_.O("design:paramtypes",[])],fi.prototype,"pollQuestionData",null);_.t([_.r({value:0}),_.O("design:type",Number)],fi.prototype,"pollQuestionCharacterCount",void 0);_.t([_.I("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.O("design:type",Object),_.O("design:paramtypes",[])],fi.prototype,"pollQuestionCharactersRemaining",null);
_.t([_.r({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.O("design:type",Boolean)],fi.prototype,"overQuestionCharacterLimit",void 0);_.t([_.I("data.pollEditorInfo"),_.O("design:type",Object),_.O("design:paramtypes",[])],fi.prototype,"pollEditorInfoWithDefaults",null);_.t([_.r({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.O("design:type",Number)],fi.prototype,"currentNumPollOptions",void 0);
_.t([_.r({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.O("design:type",Boolean)],fi.prototype,"hasMaxNumPollOptions",void 0);_.t([_.I("pollEditorInfoWithDefaults","pollOptionsData"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],fi.prototype,"shouldInitializePoll",null);_.t([_.r(),_.O("design:type",Object)],fi.prototype,"isValidPoll",void 0);
_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],fi.prototype,"createPollRequestInFlight",void 0);_.t([_.r(),_.O("design:type",Object)],fi.prototype,"selected",void 0);_.t([_.r({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.O("design:type",Boolean)],fi.prototype,"showQuestionErrorMessage",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fi.prototype,"dataChanged",null);_.t([_.CK("shouldInitializePoll"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fi.prototype,"shouldInitializePollChanged",null);_.t([_.CK("isValidPoll"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fi.prototype,"isValidPollChanged",null);
_.t([_.CK("selected"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fi.prototype,"selectedChanged",null);_.t([_.nK("yt-live-chat-text-input-field-renderer-character-count-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],fi.prototype,"handleTextInputChanged",null);
_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fi.prototype,"handleServiceRequestSent",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],fi.prototype,"handleServiceRequestCompleted",null);
_.t([_.nK("yt-live-chat-poll-editor-input-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],fi.prototype,"handlePollEditorInputClosed",null);_.t([_.nK("picker-cancelled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fi.prototype,"onPickerCancelled",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],fi);
_.T(fi,"yt-live-chat-poll-editor-panel-renderer",function(){if(ALK===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_panel_renderer.yt.live.chat.poll.editor.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <yt-icon hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <div id="poll-editor" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    <div id="poll-question" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="poll-question-sub-content" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n      <div id="poll-question-error-message" role="alert" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n      </div>\n      <div id="poll-question-count" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n      </div>\n      <div id="poll-question-count-alt-label" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(pollEditorInfoWithDefaults.pollOptionData.pollQuestionCharsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharactersRemaining]]\n      </div>\n    </div>\n    <div id="poll-options" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="add-option-button" hidden$="[[hasMaxNumPollOptions]]" on-click="onAddOptionButtonClick" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;fwB===void 0&&(fwB=document.createElement("template"));var c=fwB;K.call(H,c.content.cloneNode(!0),d.content.firstChild);ALK=d}d=ALK;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var vOO;var djS;var Ah=function(){return _.B.apply(this,arguments)||this};
_.m(Ah,_.B);Ah.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Ah.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.H3.Object.defineProperties(Ah.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var d,H;return(d=this.data)==null?void 0:(H=d.title)==null?void 0:H.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var d;return _.T6((d=this.data)==null?void 0:d.onTapCommand)}}});
_.t([_.u(_.VV.YtEndpointBehavior),_.O("design:type",Object)],Ah.prototype,"ytEndpointBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ah.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ah.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ah.prototype,"itemId",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ah.prototype,"hasPromotion",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ah.prototype,"innertubeCommand",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Ah);
_.T(Ah,"yt-live-chat-product-picker-panel-item-view-model",function(){if(djS===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_item_view_model.yt.live.chat.product.picker.panel.item.view.model.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-picker-panel-item-view-model" data="[[innertubeCommand]]">\n  <tp-yt-paper-item id="container" on-click="onClick" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n    \n    <div id="image-container" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-image id="image" alt="product_animation" data="[[data.productImage.themedImageViewModel.imageLight]]" height="54" preserve-height="" preserve-width="" width="54" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-image>\n      <span id="dot" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n      <yt-attributed-string id="description" data="[[data.description]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n    </div>\n    <yt-icon id="icon" icon="CHEVRON_RIGHT" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-icon>\n  </tp-yt-paper-item>\n</a>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;vOO===void 0&&(vOO=document.createElement("template"));var c=vOO;K.call(H,c.content.cloneNode(!0),d.content.firstChild);djS=d}d=djS;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var HzL;var $je;var jF=function(){var d=_.B.apply(this,arguments)||this;d.id="product-picker";d.selected=!1;d.closeButtonId="close-button";d.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return d};
_.m(jF,_.B);_.G=jF.prototype;_.G.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.G.observeSelected=function(){this.selected&&this.hostElement.focus();var d=_.Gn(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");d.length&&d[0].focus()};
_.G.onCloseBuyFlow=function(){_.GT(this.hostElement,"picker-cancelled")};
_.G.onCloseClick=function(){_.GT(this.hostElement,"picker-cancelled");var d;((d=this.data)==null?0:d.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.M(this.data.closeButton,_.OV))};
_.G.onCloseEngageWithAudienceEditorPanels=function(){_.GT(this.hostElement,"picker-cancelled")};
jF.prototype.observeSelected=jF.prototype.observeSelected;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],jF.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],jF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],jF.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],jF.prototype,"id",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],jF.prototype,"selected",void 0);_.t([_.r(),_.O("design:type",Object)],jF.prototype,"closeButtonId",void 0);_.t([_.CK("selected"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jF.prototype,"observeSelected",null);
_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],jF);
_.T(jF,"yt-live-chat-product-picker-panel-view-model",function(){if($je===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_view_model.yt.live.chat.product.picker.panel.view.model.css.js--\x3e<div id="header" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  <yt-attributed-string id="title" data="[[data.title]]" ellipsis-truncate="true" no-pre-wrap="true" class="style-scope yt-live-chat-product-picker-panel-view-model"></yt-attributed-string>\n  <yt-button-view-model id="[[closeButtonId]]" data="[[data.closeButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  </yt-button-view-model>\n</div>\n<div id="items" class="style-scope yt-live-chat-product-picker-panel-view-model"></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;HzL===void 0&&(HzL=document.createElement("template"));var c=HzL;K.call(H,c.content.cloneNode(!0),d.content.firstChild);$je=d}d=$je;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var K6a;var c1K;var vD=function(){var d=_.B.apply(this,arguments)||this;d.iconId="";d.icon="";d.disabled=!1;d.systemIcons=_.h("kevlar_system_icons");return d};
_.m(vD,_.B);_.G=vD.prototype;_.G.computeIconId=function(d){return d&&d.icon&&d.icon.iconType?d.icon.iconType.toLowerCase():""};
_.G.computeIcon=function(d){return d&&d.icon&&d.icon.iconType?(d=d.icon.iconType.toLowerCase(),(d.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+d):""};
_.G.computeDisabled=function(d){return!!d};
_.G.computeCommand=function(d,H){return H?void 0:d};
_.G.computeTooltip=function(d,H){return H&&d?d:""};
_.G.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.H3.Object.defineProperties(vD.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var d="",H,K,c;if((H=this.data)==null?0:(K=H.text)==null?0:(c=K.runs)==null?0:c.length)d=this.data.text.runs[0].text||"";else{var p,g;if((p=this.data)==null?0:(g=p.text)==null?0:g.simpleText)d=this.data.text.simpleText}var a,e,k;if((a=this.data)==null?0:(e=a.subtext)==null?0:(k=e.runs)==null?0:k.length)d&&(d+=". "),d+=this.data.subtext.runs[0].text||"";else{var C,R;if((C=this.data)==null?0:(R=C.subtext)==
null?0:R.simpleText)d&&(d+=". "),d+=this.data.subtext.simpleText}return d}}});
_.t([_.u(_.VV.YtEndpointBehavior),_.O("design:type",Object)],vD.prototype,"ytEndpointBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],vD.prototype,"data",void 0);_.t([_.r({computed:"computeIconId(data)",reflectToAttribute:!0}),_.O("design:type",Object)],vD.prototype,"iconId",void 0);
_.t([_.r({computed:"computeIcon(data)",reflectToAttribute:!0}),_.O("design:type",Object)],vD.prototype,"icon",void 0);_.t([_.r({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.O("design:type",Object)],vD.prototype,"disabled",void 0);_.t([_.r({computed:"computeCommand(data.command, disabled)"}),_.O("design:type",Object)],vD.prototype,"command",void 0);_.t([_.r({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.O("design:type",String)],vD.prototype,"tooltip",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],vD.prototype,"systemIcons",void 0);_.t([_.I("data.text","data.subtext"),_.r(),_.O("design:type",String),_.O("design:paramtypes",[])],vD.prototype,"ariaLabel",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],vD);
_.T(vD,"yt-live-chat-product-button-renderer",function(){if(c1K===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;K6a===void 0&&(K6a=document.createElement("template"));var c=K6a;K.call(H,c.content.cloneNode(!0),d.content.firstChild);c1K=d}d=c1K;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var pie;var gsr;var dU=function(){var d=_.B.apply(this,arguments)||this;d.selected=!1;d.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return d};
_.m(dU,_.B);_.G=dU.prototype;_.G.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}}}};
_.G.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.G.computeId=function(d){return d.id||""};
_.G.onCloseClick=function(){_.GT(this.hostElement,"picker-cancelled")};
_.G.observeSelected=function(){this.selected&&this.hostElement.focus();var d=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");d.length&&d[0].focus()};
_.G.onCloseBuyFlow=function(){_.GT(this.hostElement,"picker-cancelled")};
_.G.onCloseEngageWithAudienceEditorPanels=function(){_.GT(this.hostElement,"picker-cancelled")};
dU.prototype.observeSelected=dU.prototype.observeSelected;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],dU.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],dU.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],dU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],dU.prototype,"data",void 0);
_.t([_.r({computed:"computeId(data)",reflectToAttribute:!0}),_.O("design:type",String)],dU.prototype,"id",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],dU.prototype,"selected",void 0);_.t([_.CK("selected"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dU.prototype,"observeSelected",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],dU);
_.T(dU,"yt-live-chat-product-picker-renderer",function(){if(gsr===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_renderer.yt.live.chat.product.picker.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.productPickerHeaderTitle]]" class="style-scope yt-live-chat-product-picker-renderer"> </yt-formatted-string>\n<div id="buttons" class="style-scope yt-live-chat-product-picker-renderer"></div>\n<div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;pie===void 0&&(pie=document.createElement("template"));var c=pie;K.call(H,c.content.cloneNode(!0),d.content.firstChild);gsr=d}d=gsr;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var izr;var GVN;var osL;var qE_;var Ha=function(){return _.B.apply(this,arguments)||this};
_.m(Ha,_.B);Ha.prototype.maybeLoadAnimationBackground=function(){this.useAnimationBackground?this.lottieAnimation||(this.lottieAnimation=lottie.loadAnimation({container:this.animationBackground,loop:!0,renderer:"svg",path:"https://www.gstatic.com/youtube/img/livestream/live_chat/lottie_animation/shimmer_background.json",autoplay:!0})):this.lottieAnimation&&this.lottieAnimation.destroy()};
Ha.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Ha.prototype.created=function(){this.ids={background:_.Ng(),maskOne:_.Ng(),maskTwo:_.Ng(),gradient:_.Ng(),largeBackground:_.Ng(),largeGradientOne:_.Ng(),largeGradientTwo:_.Ng(),largeGradientPath:_.Ng()}};
Ha.prototype.maybeLoadAnimationBackground=Ha.prototype.maybeLoadAnimationBackground;_.t([_.r({value:!1}),_.O("design:type",Boolean)],Ha.prototype,"useLargeBackground",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],Ha.prototype,"useAnimationBackground",void 0);_.t([_.r({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.O("design:type",Boolean)],Ha.prototype,"useRegularBackground",void 0);
_.t([_.r(),_.O("design:type",Object)],Ha.prototype,"ids",void 0);_.t([_.r(),_.O("design:type",Object)],Ha.prototype,"lottieAnimation",void 0);_.t([_.VP("#animation-background"),_.O("design:type",HTMLDivElement)],Ha.prototype,"animationBackground",void 0);_.t([_.CK("useAnimationBackground"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ha.prototype,"maybeLoadAnimationBackground",null);
_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Ha);
_.T(Ha,"yt-live-interactivity-component-background",function(){if(qE_===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-interactivity-component-background--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_interactivity_component_background.yt.live.interactivity.component.background.css.js--\x3e<svg id$="[[ids.background]]" hidden$="[[!useRegularBackground]]" width="100%" height="280" viewBox="2 45 400 280" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskOne]]" width="611" height="468" x="1" y="-117" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <mask id$="[[ids.maskTwo]]" width="505" height="439" x="-4" y="-10" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <linearGradient id$="[[ids.gradient]]" x1="-53.35" x2="-54.44" y1="572.174" y2="571.817" gradientTransform="matrix(439 0 0 -439 23648 251318)" gradientUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0" stop-color="#1d3863" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop class="gradient-stop style-scope yt-live-interactivity-component-background" offset="1"></stop>\n    </linearGradient>\n  </defs>\n  <g class="style-scope yt-live-interactivity-component-background">\n    <g class="style-scope yt-live-interactivity-component-background">\n      <rect width="500" height="350" x="1" y="1" fill="#224072" stroke="#000" stroke-opacity=".15" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      <g mask$="url(#[[ids.maskOne]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill="#1a3259" fill-rule="evenodd" d="M612-117v420L192 92.998 611.99-117h.01z" opacity=".8" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n      <g mask$="url(#[[ids.maskTwo]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill$="url(#[[ids.gradient]])" fill-rule="evenodd" d="M-4-10v439l439-219.502L-3.989-10H-4z" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n    </g>\n  </g>\n</svg>\n<svg id$="[[ids.largeBackground]]" hidden$="[[!useLargeBackground]]" height="350" width="100%" viewBox="60 40 428 300" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <linearGradient id$="[[ids.largeGradientOne]]" x1="104.432%" x2="10.997%" y1="62.466%" y2="44.799%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#274C8A" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#1A3259" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <linearGradient id$="[[ids.largeGradientTwo]]" x1="53.199%" x2="-55.854%" y1="34.226%" y2="69.901%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#284F8F" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#234275" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <path id$="[[ids.largeGradientPath]]" d="M0 3.991A3.994 3.994 0 014.006 0h491.988C498.206 0 500 1.8 500 3.991v342.018a3.994 3.994 0 01-4.006 3.991H4.006C1.794 350 0 348.2 0 346.009V3.991z" class="style-scope yt-live-interactivity-component-background"></path>\n  </defs>\n  <g fill="none" fill-rule="evenodd" class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskTwo]]" fill="#fff" class="style-scope yt-live-interactivity-component-background">\n      <use href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    </mask>\n    <use fill="#224175" href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    <path fill$="url(#[[ids.largeGradientOne]])" d="M264-120v420L684 89.998 264.011-120z" mask="url(#[[ids.maskTwo]])" transform="matrix(-1 0 0 1 948 0)" class="style-scope yt-live-interactivity-component-background"></path>\n    <path fill$="url(#[[ids.largeGradientTwo]])" d="M-80-81v507l507-253.503L-79.987-81z" mask="url(#[[ids.maskTwo]])" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n  </g>\n</svg>\n<div id="animation-background" height="350" width="100%" hidden$="[[!useAnimationBackground]]" class="style-scope yt-live-interactivity-component-background"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;osL===void 0&&(osL=document.createElement("template"));var c=osL;K.call(H,c.content.cloneNode(!0),d.content.firstChild);qE_=d}d=qE_;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var $o=function(){var d=_.B.apply(this,arguments)||this;d.characterCount=0;d.showInputErrorMessage=!1;d.startQnaRequestInFlight=!1;d.modern=_.h("web_button_rework_with_live");d.buttonOverrides={style:"mono",type:"filled"};d.closeButtonOverrides={iconPosition:"icon-only"};d.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return d};
_.m($o,_.B);_.G=$o.prototype;
_.G.configureRendererStamper=function(){return{"data.creatorCallForQuestions.liveChatCreatorCallForQuestionsRenderer.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.G.onCharacterCountChanged=function(d){var H,K,c,p,g=(K=_.M(this==null?void 0:(H=this.data)==null?void 0:H.creatorCallForQuestions,YUB))==null?void 0:(c=K.inputField)==null?void 0:(p=c.liveChatTextInputFieldRenderer)==null?void 0:p.maxCharacterLimit,a,e;g!=null&&(d==null?void 0:(a=d.detail)==null?void 0:a.characterCount)!=null&&_.M(this==null?void 0:(e=this.data)==null?void 0:e.startButton,_.Tz)&&(H=d.detail.characterCount>g,this.set("data.startButton.buttonRenderer.isDisabled",d.detail.characterCount===
0||H),this.showInputErrorMessage=H)};
_.G.onCloseClick=function(){_.GT(this.hostElement,"picker-cancelled");_.oF(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.G.onPickerCancelled=function(){var d=_.Gn(this.hostElement).querySelector("#qna-creator-text-input-field");d&&d.setLiveChatRichMessageInput(null)};
_.G.handleOpenQnaStartPanel=function(){var d=_.Gn(this.hostElement).querySelector("#qna-creator-text-input-field");d&&d.focus()};
_.G.handleStartButtonAction=function(d){var H=this;if(d.detail.actionName==="yt-service-request"&&(d.stopPropagation(),d=d.detail.args[1])){var K=_.Gn(this.hostElement).querySelector("#qna-creator-text-input-field"),c;(K==null?0:(c=K.liveChatRichMessageInput)==null?0:c.textSegments)&&K.liveChatRichMessageInput.textSegments.length!==0&&(c={rich_message:_.OQ(K.liveChatRichMessageInput)},_.aF(this.hostElement,[d,c]).then(function(){_.GT(H.hostElement,"picker-cancelled")}))}};
_.G.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.G.handleServiceRequestCompleted=function(d){var H;d=d==null?void 0:(H=d.detail)==null?void 0:H.data;(d==null?0:d.actions)&&d.actions.length>0?this.startQnaRequestInFlight=!1:_.oF(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.G.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
$o.prototype.handleServiceRequestError=$o.prototype.handleServiceRequestError;$o.prototype.handleServiceRequestCompleted=$o.prototype.handleServiceRequestCompleted;$o.prototype.handleServiceRequestSent=$o.prototype.handleServiceRequestSent;$o.prototype.onPickerCancelled=$o.prototype.onPickerCancelled;$o.prototype.onCharacterCountChanged=$o.prototype.onCharacterCountChanged;_.t([_.r(),_.O("design:type",Object)],$o.prototype,"characterCount",void 0);
_.t([_.r(),_.O("design:type",Object)],$o.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],$o.prototype,"showInputErrorMessage",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],$o.prototype,"startQnaRequestInFlight",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],$o.prototype,"modern",void 0);_.t([_.r(),_.O("design:type",Object)],$o.prototype,"buttonOverrides",void 0);
_.t([_.r(),_.O("design:type",Object)],$o.prototype,"closeButtonOverrides",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],$o.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.YC),_.O("design:type",Object)],$o.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.u(_.NZ.YtLiveChatItemBehavior),_.O("design:type",_.Dj)],$o.prototype,"ytLiveChatItemBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],$o.prototype,"ytActionHandlerBehavior",void 0);_.t([_.nK("yt-live-chat-text-input-field-renderer-character-count-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],$o.prototype,"onCharacterCountChanged",null);_.t([_.nK("picker-cancelled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$o.prototype,"onPickerCancelled",null);
_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$o.prototype,"handleServiceRequestSent",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],$o.prototype,"handleServiceRequestCompleted",null);
_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],$o.prototype,"handleServiceRequestError",null);_.t([_.Z({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],$o);
_.T($o,"yt-live-chat-qna-start-panel-renderer",function(){if(GVN===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-qna-start-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_qna_start_panel_renderer.yt.live.chat.qna.start.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <yt-icon aria-hidden="true" hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <div id="call_for_questions_banner" class="style-scope yt-live-chat-qna-start-panel-renderer">\n    <div id="banner-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n      <div id="banner-content-top" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" thumbnail="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" width="24" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        </yt-img-shadow>\n\n        <div id="metadata-text" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <yt-formatted-string id="author-name" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAuthorName]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="separator-collapsed" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.contentSeparator]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="feature-label" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.featureLabel]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n        </div>\n        <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n      </div>\n\n      <div id="banner-main-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <div id="input-container" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <template is="dom-if" if="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            <yt-live-chat-text-input-field-renderer id="qna-creator-text-input-field" character-count="{{characterCount}}" data="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer]]" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" ignore-color-mapping="" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            </yt-live-chat-text-input-field-renderer>\n          </template>\n        </div>\n        <div id="input-sub-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <div id="qna-error-message" role="alert" class="style-scope yt-live-chat-qna-start-panel-renderer">[[getSimpleString(data.characterLimitErrorMessage)]]</div>\n          <div id="qna-character-count" class="style-scope yt-live-chat-qna-start-panel-renderer">[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]</div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;izr===void 0&&(izr=document.createElement("template"));var c=izr;K.call(H,c.content.cloneNode(!0),d.content.firstChild);GVN=d}d=GVN;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var aKE;var lKS;var K2=function(){return _.B.apply(this,arguments)||this};
_.m(K2,_.B);K2.prototype.dismiss=function(){_.GT(this.hostElement,"yt-live-chat-error-message-dismiss")};
K2.prototype.edit=function(){_.GT(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.t([_.r(),_.O("design:type",Object)],K2.prototype,"data",void 0);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],K2);
_.T(K2,"yt-live-chat-text-actions-error-message-renderer",function(){if(lKS===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-actions-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_actions_error_message_renderer.yt.live.chat.text.actions.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-icon icon="close" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<div id="error-text" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  <button id="edit" on-click="edit" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n    <yt-formatted-string text="[[data.editMessageText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  </button>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;aKE===void 0&&(aKE=document.createElement("template"));var c=aKE;K.call(H,c.content.cloneNode(!0),d.content.firstChild);lKS=d}d=lKS;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var e7C;var kVa;var xjB;var nsC;var ca=function(){var d=_.B.apply(this,arguments)||this;d.isDarkTheme=document.documentElement.hasAttribute("dark");d.newnessDotEligible=!1;return d};
_.m(ca,_.B);ca.prototype.sendReaction=function(){var d,H,K=((d=this.data)==null?void 0:d.emojiId)||((H=this.data)==null?void 0:H.emoteId),c;K&&((c=this.data)==null?0:c.shouldTriggerAnimation)&&_.oF(this.hostElement,"yt-create-user-reaction-animation",[K]);var p;(d=_.T6((p=this.data)==null?void 0:p.onTap))&&_.CM(d,this.hostElement);this.showNewnessDot&&_.oF(this.hostElement,"yt-hide-newness-dot")};
ca.prototype.onClick=function(d){(!d||d.clientX||d.clientY)&&this.sendReaction()};
ca.prototype.onKeyDown=function(d){d.key!=="Enter"&&d.key!==" "||d.repeat||this.sendReaction()};
_.H3.Object.defineProperties(ca.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var d,H;return!!(((d=this.data)==null?0:d.emojiId)||((H=this.data)==null?0:H.emoteId))}}});
_.t([_.r(),_.O("design:type",Object)],ca.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ca.prototype,"isDarkTheme",void 0);_.t([_.r(),_.O("design:type",Object)],ca.prototype,"newnessDotEligible",void 0);_.t([_.I("data.maybeShowNewnessDot"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ca.prototype,"showNewnessDot",null);_.t([_.I("data.emojiId","data.emoteId"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ca.prototype,"useYtImage",null);
_.t([_.ZV({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],ca);
_.T(ca,"yt-reaction-control-panel-button-view-model",function(){if(nsC===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_button_view_model.yt.reaction.control.panel.button.view.model.css.js--\x3e<button on-click="onClick" on-keydown="onKeyDown" class="style-scope yt-reaction-control-panel-button-view-model">\n  <div class="image-container style-scope yt-reaction-control-panel-button-view-model">\n    <template is="dom-if" restamp="" if="[[useYtImage]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-image alt="[[data.a11yLabel]]" data="[[data.buttonIcon]]" height="24" preserve-height="" preserve-width="" should-render-lazy="" width="24" class="style-scope yt-reaction-control-panel-button-view-model"></yt-image>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-icon aria-label="[[data.a11yLabel]]" icon="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model"></yt-icon>\n    </template>\n    <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <div class="newness-dot style-scope yt-reaction-control-panel-button-view-model"></div>\n    </template>\n  </div>\n</button>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;xjB===void 0&&(xjB=document.createElement("template"));var c=xjB;K.call(H,c.content.cloneNode(!0),d.content.firstChild);nsC=d}d=nsC;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var CXa;var R7E;var p2=function(){var d=_.B.apply(this,arguments)||this;d.reactionControlPanelExpanded=!1;d.isDarkTheme=document.documentElement.hasAttribute("dark");d.newnessDotEligible=!1;return d};
_.m(p2,_.B);_.G=p2.prototype;_.G.expandedButtonsChanged=function(){var d,H;_.eO(this.hostElement,{"--expanded-buttons-height":((H=(d=this.expandedButtonsData)==null?void 0:d.length)!=null?H:0)*36+"px"})};
_.G.configureRendererStamper=function(){return{expandedButtonsData:{id:"expanded-buttons",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0},"data.collapsedButton":{id:"collapsed-button",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.G.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.G.onMouseLeave=function(){var d=this;this.collapseTimer=setTimeout(function(){d.reactionControlPanelExpanded=!1},500)};
_.G.onFocusIn=function(){this.onMouseEnter()};
_.G.onFocusOut=function(){this.onMouseLeave()};
_.G.onCollapsedButtonFocusIn=function(){var d=this;setTimeout(function(){var H;(H=d.expandedButtons.querySelector("button"))==null||H.focus()},100)};
_.G.onCollapsedButtonFocusOut=function(d){d.stopPropagation()};
_.H3.Object.defineProperties(p2.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var d,H;return _.rs.unsafeClone((d=this.liveReactionsData)==null?void 0:d.emojiButtonData)||((H=this.data)==null?void 0:H.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var d;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((d=this.data)==null||!d.maybeShowNewnessDot)}}});
p2.prototype.expandedButtonsChanged=p2.prototype.expandedButtonsChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],p2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.YC),_.O("design:type",Object)],p2.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],p2.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],p2.prototype,"reactionControlPanelExpanded",void 0);_.t([_.r({selectorArgs:["data.liveReactionsDataEntityKey"],selector:MS_}),_.O("design:type",Object)],p2.prototype,"liveReactionsData",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],p2.prototype,"isDarkTheme",void 0);_.t([_.r(),_.O("design:type",Object)],p2.prototype,"newnessDotEligible",void 0);
_.t([_.I("liveReactionsData","data.expandedButtons"),_.O("design:type",Object),_.O("design:paramtypes",[])],p2.prototype,"expandedButtonsData",null);_.t([_.I("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.r({reflectToAttribute:!0}),_.O("design:type",Object),_.O("design:paramtypes",[])],p2.prototype,"showNewnessDot",null);_.t([_.VP("#expanded-buttons"),_.O("design:type",HTMLElement)],p2.prototype,"expandedButtons",void 0);
_.t([_.CK("expandedButtonsData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p2.prototype,"expandedButtonsChanged",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],p2);
_.T(p2,"yt-reaction-control-panel-view-model",function(){if(R7E===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_view_model.yt.reaction.control.panel.view.model.css.js--\x3e<div id="hover-area" on-mouseenter="onMouseEnter" on-mouseleave="onMouseLeave" on-focusin="onFocusIn" on-focusout="onFocusOut" class="style-scope yt-reaction-control-panel-view-model">\n  <div id="fab-container" class="style-scope yt-reaction-control-panel-view-model">\n    <div id="expanded-buttons" class="style-scope yt-reaction-control-panel-view-model"></div>\n    <div id="collapsed-button" on-focusin="onCollapsedButtonFocusIn" on-focusout="onCollapsedButtonFocusOut" class="style-scope yt-reaction-control-panel-view-model"></div>\n  </div>\n  <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-view-model">\n    <div class="newness-dot style-scope yt-reaction-control-panel-view-model"></div>\n  </template>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;CXa===void 0&&(CXa=document.createElement("template"));var c=CXa;K.call(H,c.content.cloneNode(!0),d.content.firstChild);R7E=d}d=R7E;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var gU=new _.T1("yt-live-chat"),V2_=Date.parse("2024-7-24"),i7=function(){var d=_.B.apply(this,arguments)||this;d.emojiManager=_.bq;d.newnessDotEligible=!1;d.newnessDotImpressionCounted=!1;d.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return d};
_.m(i7,_.B);_.G=i7.prototype;_.G.emojiCustomizationEnabledChanged=function(){var d;((d=this.data)==null?0:d.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((d=gU.getCreationTime("emoji-customization-count"))&&d<V2_&&gU.set("emoji-customization-count","0"),d=Number(gU.get("emoji-customization-count"))||0,d<3&&(this.newnessDotEligible=!0,gU.set("emoji-customization-count",(d+1).toString())),this.newnessDotImpressionCounted=!0)};
_.G.hideNewnessDot=function(){this.newnessDotEligible=!1;gU.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.G.handleReactionsMute=function(d){var H=_.Fj(),K=_.l8(206221),c={checkboxData:{state:d?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};H&&_.fo(H,K,c);this.reactionsMuted=d};
_.G.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.G.configureRendererStamper=function(){return{"data.emojiFountain":{id:"emoji-fountain",mapping:{emojiFountainViewModel:{component:"yt-emoji-fountain-view-model",properties:{emojiManager:"[[emojiManager]]",isActive:"[[liveReactionsEnabled]]"}}},reuseComponents:!0},"data.reactionControlPanel":{id:"reaction-control-panel",mapping:{reactionControlPanelViewModel:{component:"yt-reaction-control-panel-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.H3.Object.defineProperties(i7.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var d;return(!((d=this.liveReactionsData)==null||!d.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
i7.prototype.liveReactionsSettingChanged=i7.prototype.liveReactionsSettingChanged;i7.prototype.emojiCustomizationEnabledChanged=i7.prototype.emojiCustomizationEnabledChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.YC),_.O("design:type",Object)],i7.prototype,"ytLiveChatReduxBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],i7.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],i7.prototype,"data",void 0);_.t([_.r(),_.O("design:type",_.SP)],i7.prototype,"emojiManager",void 0);_.t([_.r(),_.O("design:type",Object)],i7.prototype,"newnessDotEligible",void 0);_.t([_.r(),_.O("design:type",Object)],i7.prototype,"newnessDotImpressionCounted",void 0);
_.t([_.r({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:mUH}),_.O("design:type",Boolean)],i7.prototype,"liveReactionsSetting",void 0);_.t([_.r({selectorArgs:["data.liveReactionsDataEntityKey"],selector:MS_}),_.O("design:type",Object)],i7.prototype,"liveReactionsData",void 0);_.t([_.r({value:function(){var d=_.h("enable_lwe_web_mute"),H=gU.get("allow-reactions");return H===void 0?!1:!H&&d}}),
_.O("design:type",Boolean)],i7.prototype,"reactionsMuted",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],i7.prototype,"liveReactionsEnabled",null);_.t([_.CK("data.emojiCustomizationEnabled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],i7.prototype,"emojiCustomizationEnabledChanged",null);
_.t([_.CK("liveReactionsEnabled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],i7.prototype,"liveReactionsSettingChanged",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],i7);
_.T(i7,"yt-reaction-control-panel-overlay-view-model",function(){if(kVa===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-overlay-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_overlay_view_model.yt.reaction.control.panel.overlay.view.model.css.js--\x3e<div id="reaction-control-panel" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n<div id="emoji-fountain" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;e7C===void 0&&(e7C=document.createElement("template"));var c=e7C;K.call(H,c.content.cloneNode(!0),d.content.firstChild);kVa=d}d=kVa;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var UjH={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(d){var H=this.$.pickers.selected;if(H){_.Gn(this.hostElement).removeAttribute(H+"-open");var K="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(K="#picker-buttons",H==="emoji"&&_.Gn(this.hostElement).querySelector("#emoji-picker-button")&&(K="#emoji-picker-button"));if(K=_.Gn(this.hostElement).querySelector(K).querySelector("#"+H))K.active=!1}K=d;H==d&&(K=null);H!=
d&&_.Gn(this.hostElement).setAttribute(d+"-open","");this.$.pickers.selected=K;_.oF(this.hostElement,"yt-live-chat-picker-changed",[K])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var GK=function(){var d=_.B.apply(this,arguments)||this;d.numSentMessages=0;d.timeoutDurationMs=0;d.timeoutMs=0;d.lastTimeoutTimeMs=0;d.pendingMessageId="";d.hasFiredInitialFocusActions=!1;d.isBeforeFocusEnabled=!0;d.id="";d.characterCount=0;d.maxCharacterLimit=0;d.remainingCharacterCount=0;d.inputExpanded=!1;d.buttonOverrides={iconPosition:"icon-only"};d.inReplyPanel=!1;d.countdownRatio=0;d.isTooltipVisible=!1;d.tooltipTimeout=1E4;d.systemIcons=_.h("kevlar_system_icons");d.tallerEmojiPicker=_.h("live_chat_taller_emoji_picker");
d.sendReplyMessageInFlight=!1;d.actionMap={"yt-open-popup-action":"onOpenPopupAction","yt-close-popup-action":"onClosePopupAction","yt-live-chat-disable-before-focus-action":"onDisableBeforeFocus","yt-live-chat-component-replaced":"onComponentReplaced"};d.onResize=function(){d.maybeToggleCharacterCount()};
return d};
_.m(GK,_.B);_.G=GK.prototype;
_.G.configureRendererStamper=function(){return{"data.sendButton":{id:"send-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{disableIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]"}},liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model",liveChatPollEditorPanelRenderer:"yt-live-chat-poll-editor-panel-renderer",
liveChatQnaStartPanelRenderer:"yt-live-chat-qna-start-panel-renderer"}},"data.emojiPickerButton":{id:"emoji-picker-button",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0}}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",
properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0},properties:{overrides:"[[buttonOverrides]]"}},reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.interactionMessage":{id:"interaction-message",mapping:{messageRenderer:{component:"yt-live-chat-message-renderer",params:{subtextOnBottom:!0}}}},errorMessage:{id:"error-message",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer",
liveChatTextActionsErrorMessageRenderer:"yt-live-chat-text-actions-error-message-renderer"}}}};
_.G.attached=function(){window.addEventListener("resize",this.onResize)};
_.G.detached=function(){window.removeEventListener("resize",this.onResize)};
_.G.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.G.sendMessage=function(){var d=this,H,K,c,p;return _.l(function(g){if(d.sendDisabled)return g.return();d.isTooltipVisible&&_.oF(d.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(d.data.sendButton&&d.data.sendButton.buttonRenderer){d.input.completeEmojis();H=d.data.sendButton.buttonRenderer.serviceEndpoint;if(!H)return g.return();c=((K=_.M(H,_.EF3))==null?void 0:K.clientIdPrefix)||"";p={client_message_id:c+String(d.numSentMessages++),rich_message:_.OQ(d.input.liveChatRichMessageInput)};
d.pendingMessageId=p.client_message_id;d.inReplyPanel&&(d.sendReplyMessageInFlight=!0);_.aF(d.hostElement,[H,p]);d.input.setLiveChatRichMessageInput(null)}_.VE(g)})};
_.G.handleSendButtonAction=function(d){d.detail.actionName==="yt-service-request"&&(d.stopPropagation(),this.sendMessage())};
_.G.onSendCompleted=function(d,H){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(d=this.get("timeoutDurationUsec",H.data))&&this.handleTimeout(Number(d)/1E3);this.errorMessage=this.get("errorMessage",H.data);this.pendingMessageId=""};
_.G.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.oF(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.G.handlePickerButtonToggle=function(d){d=d.detail.targetId;this.ytPickerBehavior.togglePicker_(d);if(d==="emoji")this.input.focus();else if(d==="qna-start-panel"){var H,K;(H=_.Gn(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(K=H.querySelector("#qna-creator-text-input-field"))==null||K.focus()}};
_.G.onComponentReplaced=function(d){var H,K;d.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((H=d.replacement.liveChatMessageInputRenderer)==null?0:(K=H.headerRenderer)==null?0:K.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.G.onEmojiSelect=function(d){this.input.focus();this.input.insertEmoji(d.detail)};
_.G.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.G.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.oF(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.oF(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.G.onOpenPopupAction=function(d,H){var K=this;H===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.oF(K.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.G.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.G.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.G.focusChanged=function(){this.maybeToggleCharacterCount()};
_.G.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var d=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",d>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.G.computeId=function(){return this.data&&this.data.targetId||""};
_.G.computeSendDisabled=function(d,H,K,c){d=!!(!d||H&&d>H||c);(H=_.Gn(this.hostElement).querySelector("#send-button"))&&H.children.length&&(H.children[0].disabled=d);return d};
_.G.handleTimeout=function(d){this.timeoutDurationMs=this.timeoutMs=d;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.G.updateTimeout=function(d){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(d-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=d,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.G.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.G.onErrorMessageEdit=function(d){this.input.setLiveChatRichMessageInput(d.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.G.errorMessageChanged=function(){var d=this;_.EI(function(){_.oF(d.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.G.computeAuthorNameColor=function(d){var H;if(_.h("live_chat_author_name_color_usernames")&&(d==null?0:(H=d.authorName)==null?0:H.simpleText))return _.BD4(_.zIf(d.authorName.simpleText));if(_.h("live_chat_seed_color_usernames")&&(d==null?0:d.authorSeedColorArgb))return _.BD4(_.lD(d.authorSeedColorArgb));if(_.h("live_chat_colored_usernames"))return"#cc0000";var K;return _.h("live_chat_simple_color_usernames")&&(d==null?0:(K=d.authorName)==null?0:K.simpleText)&&(d==null?0:d.authorUsernameColorLight)&&
(d==null?0:d.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.lD(d.authorUsernameColorDark):_.lD(d.authorUsernameColorLight):""};
_.G.onIsTooltipVisibleChanged=function(){var d=_.Gn(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){d.hidden=!1;d.setAttribute("role","alert")},0):(d.hidden=!0,d.removeAttribute("role"))};
_.G.onFocusedChanged=function(d){this.inputFocused=d.detail.value};
_.H3.Object.defineProperties(GK.prototype,{sendDisabled:{configurable:!0,enumerable:!0,get:function(){return this.computeSendDisabled(this.characterCount,this.maxCharacterLimit,this.countdownActive,this.sendReplyMessageInFlight)}},
countdownStrokeDashOffset:{configurable:!0,enumerable:!0,get:function(){return this.countdownRatio*10*2*Math.PI}},
countdownActive:{configurable:!0,enumerable:!0,get:function(){return!!this.countdownRatio}},
hasInteractionMessage:{configurable:!0,enumerable:!0,get:function(){return!!this.data.interactionMessage}},
hasEmojiPickerButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.emojiPickerButton}},
showAvatar:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?void 0:(H=d.pickers)==null?void 0:H.find(function(K){return K.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var d=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return d?this.ytRendererBehavior.getSimpleString(d):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
GK.prototype.onIsTooltipVisibleChanged=GK.prototype.onIsTooltipVisibleChanged;GK.prototype.errorMessageChanged=GK.prototype.errorMessageChanged;GK.prototype.onErrorMessageEdit=GK.prototype.onErrorMessageEdit;GK.prototype.onErrorMessageDismiss=GK.prototype.onErrorMessageDismiss;GK.prototype.focusChanged=GK.prototype.focusChanged;GK.prototype.characterCountChanged=GK.prototype.characterCountChanged;GK.prototype.onEmojiSelect=GK.prototype.onEmojiSelect;GK.prototype.handlePickerButtonToggle=GK.prototype.handlePickerButtonToggle;
GK.prototype.onSendError=GK.prototype.onSendError;GK.prototype.onSendCompleted=GK.prototype.onSendCompleted;GK.prototype.sendMessage=GK.prototype.sendMessage;GK.prototype.dataChanged=GK.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],GK.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(UjH.YtPickerBehavior),_.O("design:type",Object)],GK.prototype,"ytPickerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],GK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Os.YtLiveChatTooltipTargetingBehavior),_.O("design:type",Object)],GK.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],GK.prototype,"hasFiredInitialFocusActions",void 0);
_.t([_.r(),_.O("design:type",Object)],GK.prototype,"isBeforeFocusEnabled",void 0);_.t([_.r(),_.O("design:type",Object)],GK.prototype,"data",void 0);_.t([_.r({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.O("design:type",Object)],GK.prototype,"id",void 0);_.t([_.r(),_.O("design:type",Object)],GK.prototype,"characterCount",void 0);_.t([_.r(),_.O("design:type",Object)],GK.prototype,"maxCharacterLimit",void 0);
_.t([_.r(),_.O("design:type",Object)],GK.prototype,"remainingCharacterCount",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],GK.prototype,"inputExpanded",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],GK.prototype,"inputFocused",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],GK.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.t([_.r(),_.O("design:type",_.jP)],GK.prototype,"participantsManager",void 0);
_.t([_.r(),_.O("design:type",Object)],GK.prototype,"buttonOverrides",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],GK.prototype,"inReplyPanel",void 0);_.t([_.I("characterCount, maxCharacterLimit, countdownActive"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],GK.prototype,"sendDisabled",null);_.t([_.r(),_.O("design:type",Object)],GK.prototype,"countdownRatio",void 0);
_.t([_.I("countdownRatio"),_.O("design:type",Number),_.O("design:paramtypes",[])],GK.prototype,"countdownStrokeDashOffset",null);_.t([_.I("countdownRatio"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],GK.prototype,"countdownActive",null);_.t([_.I("data.interactionMessage"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],GK.prototype,"hasInteractionMessage",null);
_.t([_.I("data.emojiPickerButton"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],GK.prototype,"hasEmojiPickerButton",null);_.t([_.I("data, characterCount"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],GK.prototype,"showAvatar",null);_.t([_.I("data.pickers"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],GK.prototype,"hasProductPickerPanelViewModel",null);
_.t([_.r(),_.O("design:type",Object)],GK.prototype,"errorMessage",void 0);_.t([_.r(),_.O("design:type",Object)],GK.prototype,"genericErrorMessage",void 0);_.t([_.r(),_.O("design:type",Object)],GK.prototype,"isTooltipVisible",void 0);_.t([_.r(),_.O("design:type",Object)],GK.prototype,"tooltipTimeout",void 0);_.t([_.I("data.onInitialFocusCommand"),_.O("design:type",String),_.O("design:paramtypes",[])],GK.prototype,"tooltipMessage",null);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],GK.prototype,"systemIcons",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],GK.prototype,"tallerEmojiPicker",void 0);_.t([_.I("data"),_.O("design:type",String),_.O("design:paramtypes",[])],GK.prototype,"authorNameColor",null);_.t([_.r(),_.O("design:type",Object)],GK.prototype,"sendReplyMessageInFlight",void 0);_.t([_.VP("#input"),_.O("design:type",_.sNB)],GK.prototype,"input",void 0);
_.t([_.VP("#count"),_.O("design:type",HTMLElement)],GK.prototype,"count",void 0);_.t([_.VP("#input-container"),_.O("design:type",HTMLElement)],GK.prototype,"inputContainer",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GK.prototype,"dataChanged",null);_.t([_.nK("yt-live-chat-send-message"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],GK.prototype,"sendMessage",null);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[Event,_.j8]),_.O("design:returntype")],GK.prototype,"onSendCompleted",null);_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GK.prototype,"onSendError",null);
_.t([_.nK("yt-live-chat-icon-toggle-button-renderer-toggle"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],GK.prototype,"handlePickerButtonToggle",null);_.t([_.nK("yt-emoji-select"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],GK.prototype,"onEmojiSelect",null);
_.t([_.CK("characterCount"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GK.prototype,"characterCountChanged",null);_.t([_.CK("inputFocused"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GK.prototype,"focusChanged",null);_.t([_.nK("yt-live-chat-error-message-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GK.prototype,"onErrorMessageDismiss",null);
_.t([_.nK("yt-live-chat-error-message-edit"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],GK.prototype,"onErrorMessageEdit",null);_.t([_.CK("errorMessage"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GK.prototype,"errorMessageChanged",null);_.t([_.CK("isTooltipVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GK.prototype,"onIsTooltipVisibleChanged",null);
_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],GK);
_.T(GK,"yt-live-chat-message-input-renderer",function(){if(YHN===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_renderer.yt.live.chat.message.input.renderer.css.js--\x3e<yt-live-chat-message-input-prompt-header-renderer data="[[data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" hidden$="[[!data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-message-input-prompt-header-renderer><div id="container" class="style-scope yt-live-chat-message-input-renderer"><div id="top" class="style-scope yt-live-chat-message-input-renderer"><yt-img-shadow id="avatar" height="24" hidden$="[[!showAvatar]]" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope yt-live-chat-message-input-renderer"></yt-img-shadow><div id="input-container" class="style-scope yt-live-chat-message-input-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" hidden="" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-author-chip><yt-live-chat-text-input-field-renderer id="input" character-count="{{characterCount}}" data="[[data.inputField.liveChatTextInputFieldRenderer]]" disabled="[[hasInteractionMessage]]" input-expanded="[[inputExpanded]]" is-chat-message-input="" max-character-limit="{{maxCharacterLimit}}" no-underline="" participants-manager="[[participantsManager]]" remaining-character-count="{{remainingCharacterCount}}" on-focused-changed="onFocusedChanged" on-focusin="onInputFocusIn" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-text-input-field-renderer><div id="emoji-picker-button" class="style-scope yt-live-chat-message-input-renderer"></div></div><div id="right" class="style-scope yt-live-chat-message-input-renderer"><div id="count-container" class="style-scope yt-live-chat-message-input-renderer"><div id="count" class="style-scope yt-live-chat-message-input-renderer">[[remainingCharacterCount]]</div></div><div id="message-buttons" class="style-scope yt-live-chat-message-input-renderer"><div id="send-button" countdown-active$="[[countdownActive]]" hidden="[[!characterCount]]" on-yt-action="handleSendButtonAction" class="style-scope yt-live-chat-message-input-renderer"></div><svg id="countdown" countdown-active$="[[countdownActive]]" hidden$="[[!characterCount]]" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="style-scope yt-live-chat-message-input-renderer"><circle id="countdown-background" cx="12" cy="12" r="10" class="style-scope yt-live-chat-message-input-renderer"></circle><circle id="countdown-line" cx="12" cy="12" r="10" stroke-dashoffset$="[[countdownStrokeDashOffset]]" class="style-scope yt-live-chat-message-input-renderer"></circle></svg></div><div id="picker-buttons" hidden="[[characterCount]]" class="style-scope yt-live-chat-message-input-renderer"></div></div></div><div id="error-message" class="style-scope yt-live-chat-message-input-renderer"></div><tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-message-input-renderer"></tp-yt-iron-pages></div><div id="interaction-message" class="style-scope yt-live-chat-message-input-renderer"></div><div id="tooltip-accessibility-text" class="style-scope yt-live-chat-message-input-renderer">[[tooltipMessage]]</div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;tE_===void 0&&(tE_=document.createElement("template"));var c=tE_;K.call(H,c.content.cloneNode(!0),d.content.firstChild);YHN=d}d=YHN;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var h7O;var L6_;var oA=function(){var d=_.B.apply(this,arguments)||this;d.systemIcons=_.h("kevlar_system_icons");d.firedOnClickCommand=!1;d.inReplyPanel=!1;return d};
_.m(oA,_.B);
oA.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"picker-buttons",mapping:{buttonRenderer:"yt-button-renderer",liveChatIconToggleButtonRenderer:"yt-live-chat-icon-toggle-button-renderer",reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.inlineAfterMessageButton":{id:"message-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.panels":{id:"pickers",mapping:{liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model"}}}};
oA.prototype.onButtonToggle=function(d){d.target.disabled||this.ytPickerBehavior.togglePicker_(d.detail.targetId)};
oA.prototype.onClick=function(){var d=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.oF(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return d.firedOnClickCommand=!1},5E3))};
_.H3.Object.defineProperties(oA.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?void 0:(H=d.panels)==null?void 0:H.find(function(K){return K.liveChatProductPickerPanelViewModel}))!==void 0}}});
oA.prototype.onButtonToggle=oA.prototype.onButtonToggle;_.t([_.u(UjH.YtPickerBehavior),_.O("design:type",Object)],oA.prototype,"ytPickerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],oA.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],oA.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],oA.prototype,"systemIcons",void 0);_.t([_.r({reflectToAttribute:!1}),_.O("design:type",Object)],oA.prototype,"firedOnClickCommand",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],oA.prototype,"inReplyPanel",void 0);_.t([_.I("data.pickers"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],oA.prototype,"hasProductPickerPanelViewModel",null);
_.t([_.nK("yt-live-chat-icon-toggle-button-renderer-toggle"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],oA.prototype,"onButtonToggle",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],oA);
_.T(oA,"yt-live-chat-restricted-participation-renderer",function(){if(L6_===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-restricted-participation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_restricted_participation_renderer.yt.live.chat.restricted.participation.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-restricted-participation-renderer">\n  <tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-restricted-participation-renderer"></tp-yt-iron-pages>\n  <div id="explanation" class="style-scope yt-live-chat-restricted-participation-renderer">\n    <yt-icon id="icon" hidden$="[[!data.icon]]" icon="[[data.icon.iconType]]" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n    </yt-icon>\n    <div id="body" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n      <div id="message" class="style-scope yt-live-chat-restricted-participation-renderer">[[getSimpleString(data.message)]]</div><div id="message-button" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n    </div>\n    <div id="picker-buttons" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;h7O===void 0&&(h7O=document.createElement("template"));var c=h7O;K.call(H,c.content.cloneNode(!0),d.content.firstChild);L6_=d}d=L6_;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var qa=function(){var d=_.B.apply(this,arguments)||this;d.genericErrorMessage=_.AF("Error, try again.");d.inReplyPanel=!1;d.hideBorder=!1;return d};
_.m(qa,_.B);qa.prototype.configureRendererStamper=function(){return{"data.actionPanel":{id:"content",mapping:{liveChatRestrictedParticipationRenderer:{component:"yt-live-chat-restricted-participation-renderer",properties:{inReplyPanel:"[[inReplyPanel]]"}},liveChatMessageInputRenderer:{component:"yt-live-chat-message-input-renderer",properties:{genericErrorMessage:"[[genericErrorMessage]]",inReplyPanel:"[[inReplyPanel]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}}}};
_.H3.Object.defineProperties(qa,{template:{configurable:!0,enumerable:!0,get:function(){return sKL()}}});
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],qa.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],qa.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],qa.prototype,"genericErrorMessage",void 0);_.t([_.r(),_.O("design:type",Object)],qa.prototype,"inReplyPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],qa.prototype,"hideBorder",void 0);
_.t([_.ZV({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],qa);_.T(qa,"yt-live-chat-engagement-panel-input-renderer",function(){return sKL()},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var M2r,mjc;M2r=_.l8(115994);mjc=_.l8(115993);_.aA=function(d,H,K){var c=this;var p=K.dragDownAction;this.layer=0;this.JSC$22447_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return c.dragDownAction()}}}};
this.JSC$22447_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return c.dragDownAction()}}}};
this.fullscreen=!1;var g=_.hR();_.kR(g,M2r,this.layer);_.kR(g,mjc,this.layer);this.dragDownAction=function(){p();_.EQ(g,{visualElement:c.fullscreen?M2r:mjc})};
this.gesture=new _.lb(d,H,this.JSC$22447_watchConfig,"pandown");this.attach()};
_.aA.prototype.attach=function(){this.gesture.attach()};
_.aA.prototype.detach=function(){this.gesture.detach()};
_.aA.prototype.update=function(d){this.fullscreen=d;this.gesture.config=d?this.JSC$22447_watchFullScreenConfig:this.JSC$22447_watchConfig};var wiO={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(d){if(d&&d.length==1&&Array.isArray(d[0].loggingUrls)){d=_.rs.unsafeClone(d[0]);var H=this.macros||{},K=this.getAdModuleClient_();if(!K)return _.e5();d.loggingUrls.forEach(function(c){if(c.baseUrl){var p=c.baseUrl;var g=H;g=g===void 0?{}:g;p=K.getOptions().includes("replaceUrlMacros")?_.jWg(K,"replaceUrlMacros",{url:p,additionalMapping:g}):p;c.baseUrl=p}},this);
d=[d]}return _.aF(this.hostElement,d)},
getAdModuleClient_:function(){var d=_.Kf(this);return d?(d=d.getPlayer())?new _.IX(d):null:null}}]};var PXH;var l7=function(){var d=_.B.apply(this,arguments)||this;d.isCollapsed=!1;d.modernPanels=_.h("kevlar_watch_modern_panels");d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return d};
_.m(l7,_.B);_.G=l7.prototype;_.G.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.G.onDonateTap=function(){var d=this.get("data.donateButton.buttonRenderer.command");if(d){var H=_.Fj(),K=this.get("data.donateButton.buttonRenderer.trackingParams");H&&K&&_.fo(H,_.P1(K));this.ytOpenPopupBehavior.openPopup(d)}};
_.G.onShowMore=function(){this.isCollapsed=!1;var d=_.Fj(),H=this.get("data.expandButton.buttonRenderer.trackingParams");d&&H&&_.fo(d,_.P1(H))};
_.G.onShowLess=function(){this.isCollapsed=!0};
_.G.dataChanged=function(){_.eO(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.G.onDarkModeToggledAction=function(d){this.isDarkTheme=d};
_.G.handleUpdate=function(d){if(d=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",d))this.set("data.startLabel",d.startLabel),this.set("data.endLabel",d.endLabel),this.set("data.progress",d.progress),this.set("data.amountRaisedLabel",d.amountRaisedLabel),this.dataChanged()};
_.G.handleOpenPopupAction=function(d){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",d)&&_.oF(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.G.computeHeaderBackgroundUrl=function(d,H){if(d)return H?d.headerBackgroundDarkUrl:d.headerBackgroundUrl};
_.G.isProgressBarVisible=function(d){return!(!d||d.progress===void 0)};
_.G.headerBackgroundClass=function(){return _.Fm("HTML_DIR")==="rtl"?"flip":""};
l7.prototype.dataChanged=l7.prototype.dataChanged;_.t([_.u(_.Rm.YtOpenPopupBehavior),_.O("design:type",Object)],l7.prototype,"ytOpenPopupBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],l7.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],l7.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],l7.prototype,"isCollapsed",void 0);_.t([_.r({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.O("design:type",String)],l7.prototype,"headerBackgroundUrl",void 0);_.t([_.r(),_.O("design:type",Boolean)],l7.prototype,"isDarkTheme",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],l7.prototype,"modernPanels",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],l7.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],l7);
_.T(l7,"ytd-donation-shelf-renderer",function(){if(PXH!==void 0)return PXH;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="header-text" class="style-scope ytd-donation-shelf-renderer">\n    [[getSimpleString(data.headerTitle)]]\n  </div>\n  <template is="dom-if" if="[[headerBackgroundUrl]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="header-background" class$="[[headerBackgroundClass()]] style-scope ytd-donation-shelf-renderer">\n      <yt-img-shadow delayed-src="[[headerBackgroundUrl]]" height="48" class="style-scope ytd-donation-shelf-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n</div>\n\n<div id="donate-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="title-row" class="style-scope ytd-donation-shelf-renderer">\n    <yt-img-shadow id="campaign-logo" object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-shelf-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-donation-shelf-renderer">\n      <div id="campaign-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignTitle)]]\n      </div>\n      <div id="campaign-subtitle" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignSubtitle)]]\n      </div>\n    </div>\n    <div id="donate-button" on-click="onDonateTap" class="style-scope ytd-donation-shelf-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[isProgressBarVisible(data)]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="progress-bar" class="style-scope ytd-donation-shelf-renderer">\n      <div id="progress-bar-fill" class="style-scope ytd-donation-shelf-renderer"></div>\n    </div>\n    <div id="progress-bar-labels" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string id="progress-bar-start" text="[[data.startLabel]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="progress-bar-end" text="[[data.endLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="amount-raised" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="matching-label" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string split-lines="" text="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n\n<template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="creator-messages-section" class="style-scope ytd-donation-shelf-renderer">\n      <template is="dom-repeat" items="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n        <div class="creator-message style-scope ytd-donation-shelf-renderer">\n          <div class="separator style-scope ytd-donation-shelf-renderer"></div>\n          <div class="creator-message-header style-scope ytd-donation-shelf-renderer">\n            <yt-img-shadow class="avatar style-scope ytd-donation-shelf-renderer" height="26" thumbnail="[[item.thumbnail]]">\n            </yt-img-shadow>\n            <yt-formatted-string class="creator-message-name style-scope ytd-donation-shelf-renderer" text="[[item.title]]">\n            </yt-formatted-string>\n          </div>\n          <div class="creator-message-description style-scope ytd-donation-shelf-renderer">\n            [[getSimpleString(item.description)]]\n          </div>\n        </div>\n      </template>\n    </div>\n  </template>\n\n  <div id="nonprofit-section" class="style-scope ytd-donation-shelf-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-shelf-renderer">\n      <div id="nonprofit-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.nonprofitTitle)]]<span id="verified-icon-wrapper" class="style-scope ytd-donation-shelf-renderer">\u00a0<yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-shelf-renderer" default-to-filled="true" icon="check_circle"></yt-icon>\n        </span>\n      </div>\n    </div>\n    <div id="nonprofit-subtitle" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="nonprofit-description" class="style-scope ytd-donation-shelf-renderer">\n      [[getSimpleString(data.nonprofitDescription)]]\n    </div>\n  </div>\n</template>\n\n<div id="collapse-controls-section" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-more" on-click="onShowMore" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showMoreText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-less" on-click="onShowLess" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showLessText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return PXH=d},{mode:1});var uUN;var IKO=function(){return _.B.apply(this,arguments)||this};
_.m(IKO,_.B);_.t([_.r(),_.O("design:type",Object)],IKO.prototype,"data",void 0);_.t([_.Z({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],IKO);
_.T(IKO,"ytd-donation-unavailable-renderer",function(){if(uUN!==void 0)return uUN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-unavailable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-donation-unavailable-renderer">\n  <yt-formatted-string id="message" text="[[data.text]]" class="style-scope ytd-donation-unavailable-renderer">\n  </yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return uUN=d},{mode:1});var r1S;var eY=function(){return _.B.apply(this,arguments)||this};
_.m(eY,_.B);eY.prototype.computeIconType=function(d){return d?"yt-icons:"+d.toLowerCase():null};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],eY.prototype,"data",void 0);_.t([_.Z({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],eY);
_.T(eY,"ytd-limited-state-message-renderer",function(){if(r1S!==void 0)return r1S;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-limited-state-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-limited-state-message-renderer">\n  <yt-icon icon="[[computeIconType(data.icon.iconType)]]" class="style-scope ytd-limited-state-message-renderer"></yt-icon>\n  <yt-formatted-string id="title" text="[[data.headerText]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-limited-state-message-renderer">\n  <ytd-button-renderer data="[[data.learnMoreButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer"></ytd-button-renderer>\n  <ytd-button-renderer data="[[data.goHomeButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer">\n  </ytd-button-renderer>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return r1S=d},{mode:1});var W6c;var ko=function(){return _.B.apply(this,arguments)||this};
_.m(ko,_.B);ko.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
ko.prototype.onTap=function(d){var H=this.data&&this.data.endpoint;H&&!_.vg(_.jh(d),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.GT(this.hostElement,"yt-navigate",{endpoint:H})};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ko.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ko.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ko.prototype,"data",void 0);_.t([_.Z({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],ko);
_.T(ko,"ytd-autotagging-metadata-renderer",function(){if(W6c!==void 0)return W6c;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="outer-container" on-tap="onTap" class="style-scope ytd-autotagging-metadata-renderer">\n  <ytd-thumbnail circular="" data="[[data]]" class="style-scope ytd-autotagging-metadata-renderer">\n  </ytd-thumbnail>\n  <div id="right-container" class="style-scope ytd-autotagging-metadata-renderer">\n    <div id="title-container" class="style-scope ytd-autotagging-metadata-renderer">\n      <div id="title" class="style-scope ytd-autotagging-metadata-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-autotagging-metadata-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="subscribe-button" class="style-scope ytd-autotagging-metadata-renderer"></div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return W6c=d},{mode:1});var BuB;var xo=function(){return _.B.apply(this,arguments)||this};
_.m(xo,_.B);xo.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],xo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],xo.prototype,"data",void 0);_.t([_.Z({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],xo);
_.T(xo,"ytd-autotagging-metadata-row-renderer",function(){if(BuB!==void 0)return BuB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-autotagging-metadata-row-renderer">\n  [[getSimpleString(data.header)]]\n</div>\n<div id="contents" class="style-scope ytd-autotagging-metadata-row-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return BuB=d},{mode:1});var z7E;var XiL;var n2=function(){var d=_.B.apply(this,arguments)||this;d.engagementPanelContent=!1;return d};
_.m(n2,_.B);n2.prototype.computeHasDividerLine=function(d,H){return d&&!H};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],n2.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.O("design:type",Boolean)],n2.prototype,"hasDividerLine",void 0);_.t([_.r(),_.O("design:type",Object)],n2.prototype,"engagementPanelContent",void 0);
_.t([_.Z({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],n2);
_.T(n2,"ytd-metadata-row-header-renderer",function(){if(XiL!==void 0)return XiL;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="content" class="style-scope ytd-metadata-row-header-renderer">\n  <yt-formatted-string class="content style-scope ytd-metadata-row-header-renderer" text="[[data.content]]"></yt-formatted-string>\n</h4>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return XiL=d},{mode:1});var J1e;var C2=function(){return _.B.apply(this,arguments)||this};
_.m(C2,_.B);C2.prototype.computeHasDividerLine=function(d){return d};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],C2.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.O("design:type",Boolean)],C2.prototype,"hasDividerLine",void 0);_.t([_.Z({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],C2);
_.T(C2,"ytd-metadata-row-renderer",function(){if(J1e!==void 0)return J1e;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="title" hidden$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-metadata-row-renderer"></yt-formatted-string>\n</h4>\n<div id="content" with-extra-margin$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <template is="dom-repeat" items="[[data.contents]]" class="style-scope ytd-metadata-row-renderer">\n    <yt-formatted-string class="content content-line-height-override style-scope ytd-metadata-row-renderer" text="[[item]]">\n    </yt-formatted-string>\n  </template>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return J1e=d},{mode:1});var sVe;var RA=function(){return _.B.apply(this,arguments)||this};
_.m(RA,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],RA.prototype,"data",void 0);_.t([_.Z({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],RA);
_.T(RA,"ytd-metadata-with-image-row-renderer",function(){if(sVe!==void 0)return sVe;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-with-image-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-metadata-with-image-row-renderer" href$="[[computeHref_(data.thumbnailEndpoint)]]" data="[[data.thumbnailEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="83" class="style-scope ytd-metadata-with-image-row-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope ytd-metadata-with-image-row-renderer">\n    <template is="dom-repeat" as="content" items="[[data.contents]]" strip-whitespace="" class="style-scope ytd-metadata-with-image-row-renderer">\n      <span class="content-text style-scope ytd-metadata-with-image-row-renderer">[[getSimpleString(content)]]</span>\n    </template>\n  </div>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return sVe=d},{mode:1});var F6a;var V7=function(){var d=_.B.apply(this,arguments)||this;d.rounded=!0;d.fixie=!1;d.fullWidth=!1;return d};
_.m(V7,_.B);_.G=V7.prototype;_.G.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G.onDataChanged=function(){var d=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(H){d.onEndpointLinkKeyPress(H)}))};
_.G.onEndpointLinkKeyPress=function(d){d.target===this.endpointLink&&d.keyCode===13&&_.GT(this.hostElement,"click")};
_.G.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var d;if((d=this.data)==null?0:d.endpoint)_.l5(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.G.onYtNavigate=function(d){this.endpointHref||(d.stopPropagation(),d.preventDefault())};
_.G.onInformationButtonContainerClick=function(d){d.target.id!=="information-button-container"&&(d.stopPropagation(),d.preventDefault())};
_.G.computeStyle=function(d){return d};
_.G.computeIsThumbnailStyle=function(d){return d==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.G.computeThumbnailWidth=function(d){switch(d){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.G.computeThumbnailObjectFit=function(d){switch(d){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.H3.Object.defineProperties(V7.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?0:d.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
V7.prototype.onYtNavigate=V7.prototype.onYtNavigate;V7.prototype.onClick=V7.prototype.onClick;V7.prototype.onDataChanged=V7.prototype.onDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],V7.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],V7.prototype,"componentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],V7.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],V7.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.O("design:type",String)],V7.prototype,"componentStyle",void 0);_.t([_.r({computed:"computeIsThumbnailStyle(data.style)"}),_.O("design:type",Boolean)],V7.prototype,"isThumbnailStyle",void 0);_.t([_.r({computed:"computeThumbnailObjectFit(data.style)"}),_.O("design:type",String)],V7.prototype,"thumbnailObjectFit",void 0);
_.t([_.r({computed:"computeThumbnailWidth(data.style)"}),_.O("design:type",Number)],V7.prototype,"thumbnailWidth",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],V7.prototype,"rounded",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],V7.prototype,"fixie",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],V7.prototype,"fullWidth",void 0);_.t([_.VP("#endpoint-link"),_.O("design:type",HTMLAnchorElement)],V7.prototype,"endpointLink",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],V7.prototype,"onDataChanged",null);_.t([_.I("data.endpoint"),_.O("design:type",Object),_.O("design:paramtypes",[])],V7.prototype,"endpointHref",null);_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],V7.prototype,"onClick",null);
_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],V7.prototype,"onYtNavigate",null);_.t([_.Z({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],V7);
_.T(V7,"ytd-rich-metadata-renderer",function(){if(F6a!==void 0)return F6a;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-rich-metadata-renderer" href$="[[endpointHref]]" data="[[data.endpoint]]">\n  <template is="dom-if" restamp="" if="[[isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-thumbnail>\n  </template>\n  <template is="dom-if" restamp="" if="[[!isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <div id="thumbnail" class="style-scope ytd-rich-metadata-renderer">\n      <yt-img-shadow object-fit="[[thumbnailObjectFit]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n  <div id="text-container" class="style-scope ytd-rich-metadata-renderer">\n    <div id="title" class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" hidden$="[[!data.subtitle]]" class="style-scope ytd-rich-metadata-renderer">\n      [[getSimpleString(data.subtitle)]]\n    </div>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="call-to-action" class="style-scope ytd-rich-metadata-renderer">\n      <div class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.callToAction)]]</div>\n      <yt-icon hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-icon>\n    </div>\n  </div>\n  <div id="information-button-container" on-click="onInformationButtonContainerClick" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-metadata-renderer"></div>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return F6a=d},{mode:_.qk("kevlar_poly_si_batch_j075")?1:2});var ZzN;var Uz=function(){var d=_.B.apply(this,arguments)||this;d.fixie=!1;d.fullWidth=!1;return d};
_.m(Uz,_.B);Uz.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Uz.prototype.computeHasDividerLine=function(d){return d};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Uz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Uz.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.O("design:type",Boolean)],Uz.prototype,"hasDividerLine",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Uz.prototype,"fixie",void 0);_.t([_.r(),_.O("design:type",Object)],Uz.prototype,"fullWidth",void 0);
_.t([_.Z({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Uz);
_.T(Uz,"ytd-rich-metadata-row-renderer",function(){if(ZzN!==void 0)return ZzN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-rich-metadata-row-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return ZzN=d},{mode:1});var he=function(){var d=_.B.apply(this,arguments)||this;d.engagementPanelContent=!1;d.fixie=!1;d.fullWidth=!1;return d};
_.m(he,_.B);
he.prototype.configureRendererStamper=function(){return{alwaysShownItems:{id:"always-shown",mapping:{metadataRowRenderer:"ytd-metadata-row-renderer",metadataWithImageRowRenderer:"ytd-metadata-with-image-row-renderer",metadataRowHeaderRenderer:"ytd-metadata-row-header-renderer",richMetadataRowRenderer:{component:"ytd-rich-metadata-row-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}},autotaggingMetadataRowRenderer:"ytd-autotagging-metadata-row-renderer"}},collapsibleItems:{id:"collapsible",mapping:{metadataRowRenderer:"ytd-metadata-row-renderer",
metadataWithImageRowRenderer:"ytd-metadata-with-image-row-renderer",metadataRowHeaderRenderer:{component:"ytd-metadata-row-header-renderer",properties:{engagementPanelContent:"[[engagementPanelContent]]"}},richMetadataRowRenderer:"ytd-rich-metadata-row-renderer",autotaggingMetadataRowRenderer:"ytd-autotagging-metadata-row-renderer"}}}};
he.prototype.computeCollapsibleItems=function(d,H,K){return d===void 0||H===void 0||K===void 0||K?[]:d.slice(H)};
he.prototype.computeAlwaysShownItems=function(d,H){return d&&d.length?d.slice(0,H):[]};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],he.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],he.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],he.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],he.prototype,"collapsed",void 0);
_.t([_.r({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.O("design:type",Array)],he.prototype,"alwaysShownItems",void 0);_.t([_.r({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.O("design:type",Array)],he.prototype,"collapsibleItems",void 0);_.t([_.r(),_.O("design:type",Object)],he.prototype,"engagementPanelContent",void 0);_.t([_.r(),_.O("design:type",Object)],he.prototype,"fixie",void 0);
_.t([_.r(),_.O("design:type",Object)],he.prototype,"fullWidth",void 0);_.t([_.Z({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],he);
_.T(he,"ytd-metadata-row-container-renderer",function(){if(z7E!==void 0)return z7E;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="always-shown" class="style-scope ytd-metadata-row-container-renderer"></div>\n<div id="collapsible" hidden="[[collapsed]]" class="style-scope ytd-metadata-row-container-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return z7E=d},{mode:1});var Tuw;var L2=function(){var d=_.B.apply(this,arguments)||this;d.currentPageUrl="";d.baseUrl="";d.isHiddenByUser=null;d.hidden=!1;d.showAboveScrim=!1;d.watchNextGrid=_.h("kevlar_watch_grid");d.modernButtons=_.h("web_modern_buttons");d.roundedContainer=!0;d.noBorder=!1;d.roundBackground=!_.h("live_chat_round_background_killswitch");d.overflowHideChat=_.h("live_chat_overflow_hide_chat");d.forceDarkTheme=!1;d.theaterWatchWhile=!1;d.isListeningForPlayerProgress=!1;d.JSC$22483_playerEvents=new Map;d.isFrameReady=
!1;d.player=null;d.actionMap={"yt-set-live-chat-collapsed-state-action":"setCollapsedState","yt-forward-redux-action-to-live-chat-iframe":"forwardReduxActionToIframe","yt-dark-theme-action":"onDarkThemeAction","yt-light-theme-action":"onLightThemeAction","yt-signal-action-close-pdg-buy-flow":"onClosePdgBuyFlow"};return d};
_.m(L2,_.B);_.G=L2.prototype;_.G.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.qo(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.G.created=function(){var d=this;this.handleIframeEventListener=function(H){d.handleIframeEvent(H)};
this.handleKeyboardEventListener=function(H){d.handleKeyboardEvent(H)};
this.JSC$22483_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22483_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22483_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22483_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22483_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.G.attached=function(){window.addEventListener("message",this.handleIframeEventListener);window.addEventListener("keydown",this.handleKeyboardEventListener);window.addEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl=window.location.href;this.setupPlayerProgressRelay();this.collapsedChanged()};
_.G.detached=function(){window.removeEventListener("message",this.handleIframeEventListener);window.removeEventListener("keydown",this.handleKeyboardEventListener);window.removeEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl="";this.isListeningForPlayerProgress=!1;this.setPlayer(null);this.isFrameReady=!1};
_.G.computeBaseUrl=function(d){var H="/live_chat";this.isChatReplay()&&(H="/live_chat_replay");return _.dM(_.v9(_.jo(_.Qe(d),H),null),"").toString()};
_.G.dataChanged=function(){_.h("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.G.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var d=this.url;if(this.isChatReplay()&&this.player){var H=Math.floor(this.player.getProgressState().current*1E3);d=_.Y1(_.Qe(d),"playerOffsetMs",H.toString()).toString()}H=this.chatframe;try{var K=d==="about:blank"?_.lDM:_.Xa(d),c=H.contentDocument.location,p=_.Fa(K);p!==void 0&&c.replace(p)}catch(g){H.src=d}}};
_.G.collapsedChanged=function(){_.GT(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.G.handleIframeEvent=function(d){if(d&&this.baseUrl.startsWith(d.origin)&&d.source===this.chatframe.contentWindow&&_.y4(d.data))if(d.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(d);else if(d.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(d.data["yt-show-feedback-dialog"]){var H=_.Kj().resolve(_.$p(_.d7M));if(H){var K=d.ports,c;K&&K.length&&(c=function(){K[0].postMessage({})});
d=d.data["yt-show-feedback-dialog"];H.showFeedbackDialog(d.customProductData,d.feedbackContent,c,d.bucket)}}else if(d.data["yt-show-survey"])_.GT(this.hostElement,"yt-show-survey",d.data["yt-show-survey"]);else if(d.data["yt-purchase-membership"])_.Kj().resolve(_.cb).resolveCommand(d.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(d.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(d.data["yt-tunnel-out-live-service-request"]);else if(d.data["yt-user-activity"])_.Kn();
else if(d.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(d.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(d.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(d.data["yt-open-popup"]);else if(d.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(d.data["yt-log-flow-logging-event-command"]);else if(d.data["yt-hide-live-chat"])this.onShowHideChat();else d.data["yt-report-moderation-state-log"]&&
this.player&&(H={cpn:this.player.getVideoData().cpn},_.Wd("liveChatBeingModerated",H))};
_.G.attachLiveChatResponseVeTrackingParams=function(d){d=_.P1(d);var H=_.Fj(),K=_.OS("liveChatRenderer.trackingParams",this.data);H&&K&&_.Ea(H,_.P1(K),d)};
_.G.handleBuyflowMessages=function(d){var H=d.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,K=d.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,c=d.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.s8h(_.jn(_.Ac),H.replace(/-/g,"+").replace(/_/g,"/"),function(p){d.ports[0].postMessage({success:!0,buyFlowResponse:p})},void 0,function(p){d.ports[0].postMessage({success:!1,
error:p&&p.message||"Buyflow rejected without error."})},_.Lo().get("hl"),void 0,function(){d.ports[0].postMessage({closed:!0})},K,c)};
_.G.setupPlayerProgressRelay=function(){var d=this;if(!this.isListeningForPlayerProgress){var H=_.cI();H!=null&&H.getPlayerPromise&&(H.getPlayerPromise().then(function(K){d.playerApiReady(K)}),this.isListeningForPlayerProgress=!0)}};
_.G.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.G.playerApiReady=function(d){this.setPlayer(d)};
_.G.playerProgressHandler=function(){if(this.player){var d=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":d.current})}};
_.G.playerAdStartHandler=function(d){this.postToContentWindow({"yt-player-ad-start":d})};
_.G.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.G.playerStateChangeHandler=function(d){this.postToContentWindow({"yt-player-state-change":d})};
_.G.setPlayer=function(d){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22483_playerEvents);d&&(this.player=d,this.ytPlayerListenerBehavior.listenToPlayerEvents(d,this.JSC$22483_playerEvents),_.GT(this.hostElement,"player-api-ready"))};
_.G.liveChatPageUrl=function(d,H,K,c){return!K||H?"about:blank":K.liveChatRenderer?(H=_.Qe(this.currentPageUrl).JSC$10002_queryData_,Cgc(H),d=_.Qe(d),H.add("continuation",K.liveChatRenderer.continuations[0].reloadContinuationData.continuation),K=_.B5()==="USER_INTERFACE_THEME_DARK",(c||K)&&H.add("dark_theme","true"),_.v9(d,H),c=_.Qe(d.toString()),K=c.JSC$10002_queryData_,"SESSION_INDEX"in _.Jm&&(K.add("authuser",_.Fm("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Jm&&K.add("pageId",_.Fm("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Jm&&K.add("sdc",_.Fm("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),c.toString()):""};
_.G.isCollapsed=function(d,H){return H!==null?H:this.isChatReplay()||d&&d.conversationBarRenderer&&d.conversationBarRenderer.availabilityMessage?!0:d?d.liveChatRenderer?d.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.h("live_chat_hide_premiere_replay_message")||d.conversationBarRenderer&&d.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.G.isHidden=function(d,H,K){var c=H&&H.conversationBarRenderer&&H.conversationBarRenderer.availabilityMessage,p=H&&H.liveChatRenderer&&H.liveChatRenderer.showHideButton,g=H&&H.liveChatRenderer&&H.liveChatRenderer.showButton;return K&&d&&!c&&!g||!K&&d&&!c&&!p?!0:H&&H.liveChatRenderer&&H.liveChatRenderer.initialDisplayState?H.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.G.computeButtonOverride=function(d,H){if(d&&H)return{type:"outline"}};
_.G.setCollapsedState=function(d){_.M(d,_.Wa3)&&(this.isHiddenByUser=!!_.M(d,_.Wa3).collapsed,!this.isHiddenByUser&&_.h("enable_teaser_framework_web_client")&&_.oF(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.G.forwardReduxActionToIframe=function(d){this.postToContentWindow({"yt-live-chat-forward-redux-action":d})};
_.G.onLoopRangeChange=function(d){this.showAboveScrim=!(d==null||!d.postId)};
_.G.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.G.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.G.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.G.sendDarkThemePostMessage=function(d){this.postToContentWindow({"yt-live-chat-set-dark-theme":d})};
_.G.onLiveChatBuyFlowCallback=function(d){this.postToContentWindow({"yt-live-chat-buy-flow-callback":d})};
_.G.handleKeyboardEvent=function(d){(0,_.rs.containsValue)(nO_,d.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:d.type,keyCode:d.keyCode}})};
_.G.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.G.postToContentWindow=function(d){if(this.isFrameReady)try{var H=window.location.protocol+"//"+window.location.host,K;(K=this.chatframe)!=null&&K.contentWindow?this.chatframe.contentWindow.postMessage(d,H):_.Jf(new _.m1("Tried posting a message to an iframe with no content window",d))}catch(c){_.z5(c)}};
_.G.shouldHideChatFrame=function(d){return d&&_.h("hide_live_chat_button_when_collapsed")};
_.H3.Object.defineProperties(L2.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.h("live_chat_overflow_hide_chat")||_.h("web_watch_chat_hide_button_killswitch"))return _.h("live_chat_overflow_hide_chat");var d,H,K,c;return!!((d=this.data)==null?0:(H=d.liveChatRenderer)==null?0:(K=H.header)==null?0:(c=K.liveChatHeaderRenderer)==null?0:c.collapseButton)}}});
L2.prototype.collapsedChanged=L2.prototype.collapsedChanged;L2.prototype.urlChanged=L2.prototype.urlChanged;L2.prototype.dataChanged=L2.prototype.dataChanged;L2.prototype.onShowHideChat=L2.prototype.onShowHideChat;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],L2.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],L2.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.jk.YtPlayerListenerBehavior),_.O("design:type",_.vn)],L2.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.u(_.Rm.YtOpenPopupBehavior),_.O("design:type",Object)],L2.prototype,"ytOpenPopupBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],L2.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],L2.prototype,"currentPageUrl",void 0);
_.t([_.r({computed:"computeBaseUrl(currentPageUrl,data)"}),_.O("design:type",Object)],L2.prototype,"baseUrl",void 0);_.t([_.r({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.O("design:type",String)],L2.prototype,"url",void 0);_.t([_.r(),_.O("design:type",Object)],L2.prototype,"isHiddenByUser",void 0);_.t([_.r({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.O("design:type",Object)],L2.prototype,"hidden",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.O("design:type",Boolean)],L2.prototype,"collapsed",void 0);_.t([_.r({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.O("design:type",Boolean)],L2.prototype,"hideChatFrame",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],L2.prototype,"showAboveScrim",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],L2.prototype,"watchNextGrid",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],L2.prototype,"modernButtons",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],L2.prototype,"roundedContainer",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],L2.prototype,"noBorder",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],L2.prototype,"roundBackground",void 0);
_.t([_.r({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.O("design:type",Object)],L2.prototype,"toggleButtonOverride",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],L2.prototype,"overflowHideChat",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],L2.prototype,"forceDarkTheme",void 0);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],L2.prototype,"enableShowWithoutHideChatButton",null);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],L2.prototype,"theaterWatchWhile",void 0);_.t([_.VP("#chatframe"),_.O("design:type",HTMLIFrameElement)],L2.prototype,"chatframe",void 0);_.t([_.nK("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],L2.prototype,"onShowHideChat",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],L2.prototype,"dataChanged",null);
_.t([_.CK("url"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],L2.prototype,"urlChanged",null);_.t([_.CK("collapsed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],L2.prototype,"collapsedChanged",null);_.t([_.Z({is:"ytd-live-chat-frame",disableElementRegistration:!0})],L2);
_.T(L2,"ytd-live-chat-frame",function(){if(Tuw!==void 0)return Tuw;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-frame--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iframe frameborder="0" scrolling="no" id="chatframe" class="style-scope ytd-live-chat-frame"></iframe>\n<template is="dom-if" if="[[data.conversationBarRenderer.availabilityMessage]]" class="style-scope ytd-live-chat-frame">\n  <ytd-message-renderer data="[[data.conversationBarRenderer.availabilityMessage.messageRenderer]]" class="style-scope ytd-live-chat-frame">\n  </ytd-message-renderer>\n</template>\n<template is="dom-if" if="[[!enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" class="style-scope ytd-live-chat-frame">\n    <ytd-toggle-button-renderer data="[[data.liveChatRenderer.showHideButton.toggleButtonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" class="style-scope ytd-live-chat-frame">\n    </ytd-toggle-button-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" hidden="[[!collapsed]]" class="style-scope ytd-live-chat-frame">\n    <ytd-button-renderer data="[[data.liveChatRenderer.showButton.buttonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" on-click="onShowHideChat" class="style-scope ytd-live-chat-frame">\n    </ytd-button-renderer>\n  </div>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Tuw=d},{mode:1});var QVa;var Ma=function(){var d=_.B.apply(this,arguments)||this;d.modern=_.h("web_modern_buttons");d.buttonOverrides={style:"call-to-action",type:"filled"};return d};
_.m(Ma,_.B);Ma.prototype.dataChanged=function(){this.data&&(this.data.impressionCommand&&this.data.impressionCommand.clickTrackingParams&&delete this.data.impressionCommand.clickTrackingParams,this.macroReplacementBehavior.sendServiceRequestAction([this.data.impressionCommand]),this.data.backgroundColor&&(this.enableColors=!0,this.hostElement.style.backgroundColor=_.Yi(this.data.backgroundColor)))};
Ma.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var d=this.getFormattedStringLoggingDirectives(this.data.headline);d&&this.rendererBehavior.logExplicitClick(d)}};
Ma.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var d=this.getFormattedStringLoggingDirectives(this.data.description);d&&this.rendererBehavior.logExplicitClick(d)}};
Ma.prototype.getFormattedStringLoggingDirectives=function(d){return d&&d.runs&&d.runs.length>0&&d.runs[0]&&d.runs[0].loggingDirectives?d.runs[0].loggingDirectives:null};
Ma.prototype.dataChanged=Ma.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ma.prototype,"rendererBehavior",void 0);_.t([_.u(wiO.YtMacroReplacementBehavior),_.O("design:type",Object)],Ma.prototype,"macroReplacementBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ma.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Ma.prototype,"navigationEndpoint",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ma.prototype,"enableColors",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ma.prototype,"modern",void 0);_.t([_.r(),_.O("design:type",Object)],Ma.prototype,"buttonOverrides",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ma.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Ma);
_.T(Ma,"ytd-action-basic-immersive-content-renderer",function(){if(QVa!==void 0)return QVa;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-basic-immersive-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="icon" hidden="[[!data.iconImage]]" thumbnail="[[data.iconImage]]" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-img-shadow>\n<yt-formatted-string id="headline" text="[[data.headline]]" on-click="onHeadlineClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<yt-formatted-string id="desc" text="[[data.description]]" on-click="onDescriptionClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<ytd-button-renderer id="action" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope ytd-action-basic-immersive-content-renderer">\n</ytd-button-renderer>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return QVa=d},{mode:1});var t2a;var YEB;var mk=function(){return _.B.apply(this,arguments)||this};
_.m(mk,_.B);mk.prototype.dataChanged=function(){var d;((d=this.data)==null?void 0:d.backgroundColor)!==void 0&&_.eO(this.hostElement,{"--bgu-color":_.Yi(this.data.backgroundColor)})};
mk.prototype.onImageTileClick=function(){var d;((d=this.data)==null?0:d.navigationEndpoint)&&_.GT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var H;((H=this.data)==null?0:H.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.H3.Object.defineProperties(mk.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var d;if(((d=this.data)==null?void 0:d.objectFit)!==void 0)switch(this.data.objectFit){case "OBJECT_FIT_CONTAIN":return"CONTAIN";case "OBJECT_FIT_COVER":return"COVER";case "OBJECT_FIT_FILL":return"FILL"}return null}},
hasTileMetadata:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var d,H,K;if(((d=this.data)==null?void 0:(H=d.detailsLine)==null?void 0:H.texts)!=null&&((K=this.data)==null?void 0:K.detailsLine.texts.length)>0){var c;return(c=this.data)==null?void 0:c.detailsLine.texts.map(function(p){return p.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var d,H,K;if(((d=this.data)==null?void 0:(H=d.optionalDetailsLine)==null?void 0:H.texts)!=null&&((K=this.data)==null?void 0:K.optionalDetailsLine.texts.length)>0){var c;return(c=this.data)==null?void 0:c.optionalDetailsLine.texts.map(function(p){return p.text}).join("")}return null}}});
mk.prototype.dataChanged=mk.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],mk.prototype,"rendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],mk.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],mk.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data.backgroundColor"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],mk.prototype,"hasBackgroundColor",null);
_.t([_.I("data.objectFit"),_.O("design:type",Object),_.O("design:paramtypes",[])],mk.prototype,"getObjectFit",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.tileRenderingStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],mk.prototype,"hasTileMetadata",null);_.t([_.I("data.detailsLine"),_.O("design:type",Object),_.O("design:paramtypes",[])],mk.prototype,"getSecondaryDetails",null);
_.t([_.I("data.optionalDetailsLine"),_.O("design:type",Object),_.O("design:paramtypes",[])],mk.prototype,"getOptionalDetails",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mk.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],mk);
_.T(mk,"ytd-image-tile-renderer",function(){if(YEB!==void 0)return YEB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <button class="remove-default-button-style background-adjusted style-scope ytd-image-tile-renderer" on-click="onImageTileClick">\n      <yt-img-shadow class="thumbnail style-scope ytd-image-tile-renderer" aria-label$="[[data.image.thumbnail.accessibility.accessibility_data.label]]" hidden="[[!data.image]]" object-fit="[[getObjectFit]]" thumbnail="[[data.image.thumbnail]]"></yt-img-shadow>\n      <div class="badge style-scope ytd-image-tile-renderer" hidden="[[!data.imageBadge]]">\n        <yt-img-shadow class="badge-image style-scope ytd-image-tile-renderer" thumbnail="[[data.imageBadge.thumbnail]]"></yt-img-shadow>\n      </div>\n      <div class="metadata style-scope ytd-image-tile-renderer" hidden="[[!hasTileMetadata]]">\n        <div class="headline style-scope ytd-image-tile-renderer">[[data.headline.simpleText]]</div>\n        <div class="secondary-details style-scope ytd-image-tile-renderer">[[getSecondaryDetails]]</div>\n        <div class="price style-scope ytd-image-tile-renderer">[[getOptionalDetails]]</div>\n      </div>\n </button>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return YEB=d},{mode:1});var OzL;var wU=function(){return _.B.apply(this,arguments)||this};
_.m(wU,_.B);wU.prototype.getOpenLinkIcon=function(){return _.h("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
wU.prototype.onSitelinkTap=function(){_.GT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.h("kevlar_command_handler_migration_killswitch"))_.l5(this.hostElement,this.data.clickCommands,this.hostElement);else for(var d=_.q(this.data.clickCommands),H=d.next();!H.done;H=d.next())this.ytComponentBehavior.resolveCommand(H.value)};
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],wU.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],wU.prototype,"rendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],wU.prototype,"data",void 0);_.t([_.Z({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],wU);
_.T(wU,"ytd-sitelink-renderer",function(){if(OzL!==void 0)return OzL;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sitelink-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-sitelink-renderer">\n  <button id="clickable-area" class="remove-default-button-style style-scope ytd-sitelink-renderer" on-tap="onSitelinkTap">\n    <div id="sitelink" class="style-scope ytd-sitelink-renderer">\n      <span class="style-scope ytd-sitelink-renderer">[[data.text.text]]</span>\n      <yt-icon id="open-icon" icon="[[getOpenLinkIcon()]]" class="style-scope ytd-sitelink-renderer"></yt-icon>\n    </div>\n    <div id="description-texts" class="style-scope ytd-sitelink-renderer">\n      <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-sitelink-renderer">\n        <div id="desc" class="style-scope ytd-sitelink-renderer">[[item.text]]</div>\n      </template>\n    </div>\n  </button>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return OzL=d},{mode:1});var Pa=function(){var d=_.B.apply(this,arguments)||this;d.paddingFix=_.h("enable_ads_web_ep_buenos_aires_and_padding_fix");return d};
_.m(Pa,_.B);Pa.prototype.configureRendererStamper=function(){return{"data.sitelinkRenderers":{id:"sitelinks",mapping:{sitelinkRenderer:"ytd-sitelink-renderer"}},"data.actionButton":{id:"action",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageTileRenderers":{id:"image-tiles",mapping:{imageTileRenderer:"ytd-image-tile-renderer"}}}};
Pa.prototype.dataChanged=function(){var d=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(H){H.clickTrackingParams&&delete H.clickTrackingParams;d.ytMacroReplacementBehavior.sendServiceRequestAction([H])})};
Pa.prototype.shouldHideFooter=function(d){return!(d&&_.h("use_ads_engagement_panel_desktop_footer_cta"))};
_.H3.Object.defineProperties(Pa.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?void 0:d.imageTileRenderers)===void 0||((H=this.data)==null?void 0:H.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(K){var c;return(c=_.M(K,LbH))==null?void 0:c.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?void 0:d.imageTileRenderers)===void 0||((H=this.data)==null?void 0:H.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(K){var c;return((c=_.M(K,LbH))==null?void 0:c.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Pa.prototype.dataChanged=Pa.prototype.dataChanged;_.t([_.u(wiO.YtMacroReplacementBehavior),_.O("design:type",Object)],Pa.prototype,"ytMacroReplacementBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Pa.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Pa.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Pa.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Pa.prototype,"paddingFix",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data.imageTileRenderers"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Pa.prototype,"removeBorderFromImageTiles",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.imageTileRenderers"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Pa.prototype,"useFooteredMetadataRenderingStyle",null);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Pa.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Pa);
_.T(Pa,"ytd-action-engagement-panel-content-renderer",function(){if(t2a!==void 0)return t2a;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="sitelinks" hidden="[[!data.sitelinkRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n  <div id="image-tiles" hidden="[[!data.imageTileRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n<div id="footer" hidden="[[shouldHideFooter(data.actionButton)]]" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="action" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return t2a=d},{mode:1});var SEH;var Ese=_.H1(function(d){var H=d.data;var K=d.customCommandResolver;return _.x("ad-grid-card-image-full-metadata-view-model",{class:function(){var c;return((c=H().interaction)==null?0:c.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.$M(_.cV({visibilityCallback:function(c){var p,g=(p=H().interaction)==null?void 0:p.onFirstVisible;c&&g&&_.EG(g)},
showOption:_.KQ}),_.Ej(function(){return H().interaction},K)),
"aria-label":function(){var c,p;return(c=H().interaction)==null?void 0:(p=c.accessibility)==null?void 0:p.label}},_.x("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.x(_.wB,{data:function(){return H().adImage}},{adImageViewModel:function(c){return _.x(_.RM,{data:c.data,
customCommandResolver:K})}})),_.x("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.x(_.n,{cond:function(){return H().headline},
then:function(c){return _.x(_.j$,{text:c,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.x(_.n,{cond:function(){return H().detailsLine},
then:function(c){return _.x("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.x(_.wB,{data:c},{adDetailsLineViewModel:function(p){return _.x(_.aX,{data:p.data,customCommandResolver:K,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.x(_.n,{cond:function(){return H().secondaryDetailsLine},
then:function(c){return _.x("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.x(_.wB,{data:c},{adDetailsLineViewModel:function(p){return _.x(_.aX,{data:p.data,customCommandResolver:K,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"bk");var y1a=_.H1(function(d){var H=d.data;var K=d.customCommandResolver;return _.x("ad-grid-card-image-view-model",{class:function(){var c;return((c=H().interaction)==null?0:c.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.$M(_.cV({visibilityCallback:function(c){var p,g=(p=H().interaction)==null?void 0:p.onFirstVisible;c&&g&&_.EG(g)},
showOption:_.KQ}),_.Ej(function(){return H().interaction},K)),
"aria-label":function(){var c,p;return(c=H().interaction)==null?void 0:(p=c.accessibility)==null?void 0:p.label}},_.x(_.wB,{data:function(){return H().adImage}},{adImageViewModel:function(c){return _.x(_.RM,{data:c.data,
customCommandResolver:K})}}),_.x("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.x(_.wB,{data:function(){return H().adCardBadge}},{adCardBadgeViewModel:_.hOX})))},"ck");var bzc=_.H1(function(d){var H=d.data;var K=d.customCommandResolver;return _.x("ad-grid-card-text-view-model",{class:function(){var c;return((c=H().interaction)==null?0:c.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.$M(_.cV({visibilityCallback:function(c){var p,g=(p=H().interaction)==null?void 0:p.onFirstVisible;c&&g&&_.EG(g)},
showOption:_.KQ}),_.Ej(function(){return H().interaction},K)),
"aria-label":function(){var c,p;return(c=H().interaction)==null?void 0:(p=c.accessibility)==null?void 0:p.label}},_.x("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.x(_.n,{cond:function(){return H().title},
then:function(c){return _.x(_.j$,{text:c,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.x("div",{class:function(){return _.h("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.x(_.L6,{each:function(){var c;
return((c=H())==null?void 0:c.descriptions)||[]},
keyBy:"INDEX"},function(c){return _.x(_.j$,{text:c,className:function(){return _.h("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.x("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.x(_.wB,{data:function(){return H().moreInfoButton}},{adButtonViewModel:function(c){return _.x(_.pQ,{data:c.data,
customCommandResolver:K})}})))},"dk");var NuK=_.H1(function(d){var H=d.data;var K=d.customCommandResolver;var c=d.adGridCardCollectionStyle;return _.x("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.$M(_.cV({visibilityCallback:function(p){var g,a=(g=H().interaction)==null?void 0:g.onFirstVisible;p&&a&&_.EG(a)},
showOption:_.KQ})),style:function(){return"grid-template-columns: repeat("+sCa(c?c():H().style)+", minmax(0, 1fr));"}},_.x(_.wB,{data:function(){var p;
return(p=H())==null?void 0:p.gridCards}},{adGridCardImageViewModel:function(p){return _.x(y1a,{data:p.data,
customCommandResolver:K})},
adGridCardImageFullMetadataViewModel:function(p){return _.x(Ese,{data:p.data,customCommandResolver:K})},
adGridCardTextViewModel:function(p){return _.x(bzc,{data:p.data,customCommandResolver:K})}}))},"ek");_.iV(_.H1(function(d){var H=d.data;return _.x("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.$M(_.cV({visibilityCallback:function(K){var c,p=(c=H().interaction)==null?void 0:c.onFirstVisible;K&&p&&_.EG(p)},
showOption:_.KQ}),_.Ej(function(){return H().interaction},FgC))},_.x("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.x(_.n,{cond:_.xDF("(min-width: "+((0,_.DN)()+_.TB)+"px)"),
then:function(){return _.x(_.wB,{data:function(){return H().adGridCardCollection}},{adGridCardCollectionViewModel:function(K){return _.x(NuK,{data:K.data,
customCommandResolver:FgC})}})},
else:function(){return _.x(_.wB,{data:function(){return H().adGridCardCollection}},{adGridCardCollectionViewModel:function(K){return _.x(NuK,{data:K.data,
customCommandResolver:FgC,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.x("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.x(_.wB,{data:function(){return H().adButton}},{adButtonViewModel:function(K){return _.x(_.pQ,{data:K.data,
customCommandResolver:FgC})}})))},"fk"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.dl}});_.iV(_.H1(function(d){var H=d.data;return _.x("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.$M(_.cV({visibilityCallback:function(K){var c,p=(c=H().interaction)==null?void 0:c.onFirstVisible;K&&p&&_.EG(p)},
showOption:_.KQ}),_.Ej(function(){return H().interaction},ZXa))},_.x("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.x(_.wB,{data:function(){if(_.xDF("(min-width: "+((0,_.DN)()+_.TB)+"px)")())var K=H().adGridCardCollection;
else{K=Object.assign({},_.M(H().adGridCardCollection,MT_));var c;K.gridCards!==void 0&&((c=K.gridCards)==null?void 0:c.length)>1?K.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":K.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";K={adGridCardCollectionViewModel:K}}return K}},{adGridCardCollectionViewModel:function(K){return _.x(NuK,{data:K.data,
customCommandResolver:ZXa})}})),_.x("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.x(_.wB,{data:function(){return H().adButton}},{adButtonViewModel:function(K){return _.x(_.pQ,{data:K.data,
customCommandResolver:ZXa})}})))},"gk"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.dl}});var u7=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return d};
_.m(u7,_.B);_.G=u7.prototype;_.G.configureRendererStamper=function(){return{"data.contentRenderer":{id:"content",mapping:{actionEngagementPanelContentRenderer:"ytd-action-engagement-panel-content-renderer",basicImmersiveEngagementPanelContentRenderer:"ytd-action-basic-immersive-content-renderer",panelTextIconImageTilesButtonLayoutContentViewModel:"panel-text-icon-image-tiles-button-layout-content-view-model",panelTextIconTextGridCardsSubLayoutContentViewModel:"panel-text-icon-text-grid-cards-sub-layout-content-view-model"}}}};
_.G.attached=function(){this.getDataFromPlayerAndRender()};
_.G.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.G.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.G.getDataFromPlayerAndRender=function(){var d=this,H=_.Kf(this.hostElement);H&&H.getPlayerPromise().then(function(K){d.getCachedDataAndListen(K)})};
_.G.getCachedDataAndListen=function(d){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(d,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(d,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=d)};
_.G.resolveCachedActions=function(){var d=_.OS("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(d=d&&d())&&!_.rs.isEmpty(d)&&this.sendUpdateEngagementPanelAction(d);(d=(d=_.OS("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&d())&&!_.rs.isEmpty(d)&&this.sendChangeEngagementPanelVisibilityAction(d);(d=(d=_.OS("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&d())&&!_.rs.isEmpty(d)&&this.sendScrollToEngagementPanelCommand(d)};
_.G.sendUpdateEngagementPanelAction=function(d){var H;_.oF(this.hostElement,"yt-update-engagement-panel-action",[(H=_.rs.get(d,"action"))!=null?H:d])};
_.G.sendChangeEngagementPanelVisibilityAction=function(d){_.oF(this.hostElement,"yt-change-engagement-panel-visibility-action",[d])};
_.G.sendScrollToEngagementPanelCommand=function(d){_.oF(this.hostElement,"yt-scroll-to-engagement-panel-command",[d])};
_.G.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.h("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Jf(Error("Co"))};
u7.prototype.dataChanged=u7.prototype.dataChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],u7.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],u7.prototype,"componentBehavior",void 0);_.t([_.u(_.jk.YtPlayerListenerBehavior),_.O("design:type",_.vn)],u7.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],u7.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],u7.prototype,"player",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],u7.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],u7);
_.T(u7,"ytd-ads-engagement-panel-content-renderer",function(){if(SEH!==void 0)return SEH;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ads-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ads-engagement-panel-content-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
return SEH=d},{mode:1});var DjO;var IA=function(){var d=_.B.apply(this,arguments)||this;d.player=null;d.JSC$22520_playerEvents=new Map;d.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return d};
_.m(IA,_.B);_.G=IA.prototype;_.G.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer",commentActionButtonsRenderer:{component:"ytd-comment-action-buttons-renderer",properties:{voteCount:"[[voteCount]]"}}}}}};
_.G.created=function(){this.player=null;this.JSC$22520_playerEvents=new Map;this.JSC$22520_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22520_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22520_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22520_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.G.attached=function(){var d=this,H=_.Kf();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));H&&H.getPlayerPromise().then(function(K){d.setPlayer(K);d.set("isPageLoad",!1)})};
_.G.setPlayer=function(d){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22520_playerEvents);this.set("player",d);d&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(d,this.JSC$22520_playerEvents),d.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.G.onLoopRangeChange=function(d){var H=_.Kj().resolve(_.$p(_.HI));if((!H||H.isOnWatch())&&this.hostElement.clientHeight){var K;!d&&((K=this.data)==null?0:K.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.G.onVideoProgress=function(d){var H,K,c=((H=this.player)==null?void 0:(K=H.getPresentingPlayerType)==null?void 0:K.call(H))===2;this.isAdPlaying!==c&&this.set("isAdPlaying",c);var p;if(!c&&(p=this.player)!=null&&p.getLoopRange()){K=this.player.getLoopRange();H=K.startTimeMs;K=K.endTimeMs;c=this.player.getProgressState(1).seekableStart;var g;H<c*1E3&&((g=this.data)==null?0:g.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
d=K<d*1E3;var a;((a=this.player)==null?0:a.getLoopRange())&&d&&this.player.seekTo(H/1E3)}};
_.G.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.G.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.G.onYtDeleteClipEngagementPanelCommand=function(d){_.M(d,Tqe).command&&this.ytComponentBehavior.resolveCommand(_.M(d,Tqe).command)};
_.H3.Object.defineProperties(IA.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.voteCount)||_.AF("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],IA.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],IA.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],IA.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.jk.YtPlayerListenerBehavior),_.O("design:type",_.vn)],IA.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],IA.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],IA.prototype,"isAdPlaying",void 0);_.t([_.r({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],IA.prototype,"isPageLoad",void 0);_.t([_.r({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],IA.prototype,"isDarkTheme",void 0);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],IA.prototype,"voteCount",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],IA.prototype,"channelEndpoint",null);_.t([_.I("channelEndpoint"),_.O("design:type",Object),_.O("design:paramtypes",[])],IA.prototype,"channelHref",null);_.t([_.Z({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],IA);
_.T(IA,"ytd-clip-attribution-renderer",function(){if(DjO!==void 0)return DjO;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-attribution-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-clip-attribution-renderer">\n  <div id="top" class="style-scope ytd-clip-attribution-renderer">\n    <a aria-hidden="true" class="yt-simple-endpoint author-endpoint author-avatar style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow class="author-avatar style-scope ytd-clip-attribution-renderer" height="40" thumbnail="[[data.authorAvatar]]" width="40">\n      </yt-img-shadow>\n    </a>\n    <div id="author-container" class="style-scope ytd-clip-attribution-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint author-endpoint style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n        <ytd-channel-name id="author" badges="[[data.authorBadges]]" channel-name="[[data.clipAuthor]]" no-endpoints="" class="style-scope ytd-clip-attribution-renderer">\n        </ytd-channel-name>\n      </a>\n      <span class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.createdText)]]</span>\n    </div>\n    <div id="menu" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <span id="title" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.title)]]</span>\n  <div id="bottom" class="style-scope ytd-clip-attribution-renderer">\n    <div id="buttons" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <div id="ad-overlay" class="style-scope ytd-clip-attribution-renderer">\n    <svg id="ad-image" viewBox="0 0 166.96 140.96" class="style-scope ytd-clip-attribution-renderer">\n      <g class="style-scope ytd-clip-attribution-renderer"><g class="style-scope ytd-clip-attribution-renderer">\n        <path class="cls-2 style-scope ytd-clip-attribution-renderer" d="M138.1,103.79l9.9-17h0l-9.9-5.44,9.9-17h0L138.1,59,148,42s-26,20.57-38.86,29.71-9.43-22.57-9.71-47.14S90.29-6,66.86,6,0,46.55,0,46.55l9.9,6.19L0,72.54l9.9,6.35L0,98.69,9.9,105,0,124.84s63.84-42,79.56-50.56c14.81-8.09,12.15,27.13,11.87,45.13s9.14,21.43,22,13.71c12.42-7.45,33.1-22.9,34.49-23.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M102.26,71.67V137c.27,0,.55,0,.84-.05V72.54A4.36,4.36,0,0,1,102.26,71.67Z" transform="translate(0 0.25)"></path>\n        <path class="cls-4 style-scope ytd-clip-attribution-renderer" d="M50.49,121.06c1.82-2.79,4.46-4.68,7.11-6.57,1.3-.93,2.61-1.85,3.86-2.84a4.06,4.06,0,0,0,.95-1.75c.22-3.44-2.51-6.92-5.93-6.42-3.62,0-7.24,2.84-10.08,4.72-3.78,2.5-7.06,6.32-9.77,9.91-1.43,1.9-2.72,3.71-4,5.68-2.76,4.13-4.4,8.7-6.6,13.21a16.79,16.79,0,0,1,.55-3.13c2-5.06,4.07-10.07,7.32-14.49,1-1.36,2-2.78,3-4.12a5.68,5.68,0,0,1,1.45-.86c.28-1.65,2-2.64,3-4.07,0-.06.5.19.77.3a7.55,7.55,0,0,1,.53-1.46c0-.09.61.11.94.17,0-.36,0-.72,0-1.08,0-.1.19-.18.28-.27,1.09-1.08,2.57-1.56,3.71-2.64a12.29,12.29,0,0,1,4.18-2.46,19.89,19.89,0,0,1,5.13-1.09c3.21-.27,6.5,3.42,7.27,5.72.21.64.41,1.28.69,2.15l3.71-1.73a1.57,1.57,0,0,1,2.13.26l-.35-1,5.12-1.33c1.06.89,2.1.2,3.16,0,.86-.18,1.78-.16,1.87-1.37,0-.06.5-.19.53-.13a4.74,4.74,0,0,1,.37.87l3.05-.58-.08.81c-3.69,1.11-7.47,1.69-11,2.9a28.1,28.1,0,0,0-7.73,4,12.91,12.91,0,0,0-4,5.89,33.12,33.12,0,0,1-7.84,11.43c-1.53,1.54-3.32,2.81-5,4.23a4.84,4.84,0,0,1-3.55,1.22c-1.33-.06-1.67-.23-2-1.49a4.81,4.81,0,0,1,.19-3.38c1.63-3.31,3.52-6.4,6.53-8.65l-.23.49c.11,0,.2.07.23.05l.86-.94Zm-6.3,11.57a1.69,1.69,0,0,0,1.3,1.43,6,6,0,0,0,2.76-1.2c2-1.71,4-3.53,5.94-5.33a4,4,0,0,0,.47-.89c.31-.52,1.52-1.1,1.84-1.61,1.49-2.4,2.76-4.89,4.22-7.31.27-.45.22-3.25-.1-3.46a19.68,19.68,0,0,0-3.49,2.44c-1,.5-1.65,1.85-2.64,2.33a13.34,13.34,0,0,0-3,2.67c-1,1-1.92,1.93-2.8,3a34.65,34.65,0,0,0-2.3,3.11C45.65,128.87,44.17,131.53,44.19,132.63Z" transform="translate(0 0.25)"></path>\n        <path class="cls-1 style-scope ytd-clip-attribution-renderer" d="M0,124.84V46.55S43.43,18,66.86,6,99.14,0,99.43,24.55s-3.14,56.29,9.71,47.14S148,42,148,42v67.14s-21.71,16.29-34.57,24-22.29,4.29-22-13.71,2.94-53.22-11.87-45.13C63.84,82.87,0,124.84,0,124.84Z" transform="translate(0 0.25)"></path>\n        <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M119,12.45c-.87,10.43-4.13,19.08-15,22.06,13.42.52,14.54,9.3,15.29,18.31,1.28-9.85,4.42-18.14,15-20.18C123.63,31.85,120.11,23.44,119,12.45Z" transform="translate(0 0.25)"></path>\n        <g class="cls-6 style-scope ytd-clip-attribution-renderer">\n          <polygon class="cls-4 style-scope ytd-clip-attribution-renderer" points="166.96 114.12 146.52 104.85 161.66 80.3 137.84 92.19 132.87 70.65 126.28 95.37 110.8 90.89 120.61 104.1 105.23 112.92 119.7 114.68 116.36 135.53 131.9 122.15 141.06 140.96 143.28 116.82 166.96 114.12"></polygon>\n          <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M73.23,20.28c1.5-8,.86-14.91-1.89-20.53L69.79.51C72.37,5.79,73,12.34,71.54,20c-3,16.13-14.32,29.76-28.12,33.92a31.14,31.14,0,0,1-7.73,1.27A39.72,39.72,0,0,0,19.94,24.42c-4-2.94-7.71-3.92-10.8-2.86-5.5,1.88-6.8,9.18-4.87,15.13,3.88,11.93,16.48,20,29.69,20.2,0,.43,0,.86-.07,1.29a37.87,37.87,0,0,1-19.27,30l.82,1.51a35.69,35.69,0,0,0,5.18-3.42,39.75,39.75,0,0,0,15-28c0-.47.06-.94.07-1.41a32.46,32.46,0,0,0,8.24-1.34C58.33,51.2,70.11,37,73.23,20.28ZM34,55.17c-12.5-.23-24.4-7.77-28.06-19C4.5,31.81,5,26.47,8.05,24.09a5.66,5.66,0,0,1,1.66-.9c3.18-1.1,6.76.82,9.2,2.62A38,38,0,0,1,34,55.17Z" transform="translate(0 0.25)"></path>\n        </g>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17.4,46.23,17,45.51,24.42,41l.44.71Q21.2,43.94,17.4,46.23Zm14.9-9.15-.44-.71,7.42-4.6.44.71ZM47.16,27.9l-.44-.72c2.57-1.58,5.07-3.09,7.47-4.54l.44.72Q51,25.52,47.16,27.9Zm15-8.94-.42-.73c2.85-1.62,5.37-3,7.69-4.19l.39.75C67.5,16,65,17.34,62.16,19ZM96,14.42a14,14,0,0,0-2.35-3.14l.58-.6A14.64,14.64,0,0,1,96.71,14ZM77.7,11.11l-.32-.77a32.13,32.13,0,0,1,8.49-2.4l.09.83A31.86,31.86,0,0,0,77.7,11.11Z" transform="translate(0 0.25)"></path>\n        <polygon class="cls-3 style-scope ytd-clip-attribution-renderer" points="57.21 88.12 56.37 88.65 56.37 11.92 57.21 11.45 57.21 88.12"></polygon>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M109.94,80.05a6.68,6.68,0,0,1-5.19-2.48l.64-.55c1.93,2.22,4.35,2.74,7.49,1.63l.28.79A9.59,9.59,0,0,1,109.94,80.05Zm10.81-5.11-.49-.69c2.11-1.48,4.48-3.21,7.06-5.14l.51.68C125.24,71.72,122.86,73.45,120.75,74.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17,103.93l-.46-.7,7.28-4.83.46.7Zm14.55-9.68-.46-.7q3.73-2.49,7.27-4.84l.47.7Zm14.57-9.64-.46-.7q3.84-2.5,7.36-4.73l.45.71C51.15,81.37,48.69,83,46.14,84.61Zm14.8-9.26-.43-.73c2.89-1.7,5.4-3.08,7.68-4.22l.38.75C66.3,72.28,63.81,73.66,60.94,75.35ZM84.8,68.18A10.48,10.48,0,0,0,80,67.31a13.7,13.7,0,0,0-3.47.55l-.22-.81A14.45,14.45,0,0,1,80,66.47a11.37,11.37,0,0,1,5.15,1Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M98.67,127.76c-2.62-.79-4.81-2.9-6.35-6.12l.76-.36c1,2.09,2.82,4.77,5.84,5.68Zm8.65-1.68-.4-.73c1.81-1,4.31-2.53,7.45-4.55l.45.7C111.67,123.53,109.15,125.07,107.32,126.08Zm14.81-9.4-.47-.7c2.38-1.59,4.82-3.26,7.24-4.92l.47.69C127,113.41,124.51,115.08,122.13,116.68Z" transform="translate(0 0.25)"></path>\n        <ellipse class="cls-4 style-scope ytd-clip-attribution-renderer" cx="71.33" cy="51.78" rx="8.55" ry="6.47" transform="translate(-6.69 93.03) rotate(-63.7)"></ellipse>\n      </g></g>\n    </svg>\n    <div id="ad-text" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.adPlayingText)]]</div>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return DjO=d},{mode:1});var fKN;var rU=function(){var d=_.B.apply(this,arguments)||this;d.player=null;d.JSC$22525_playerEvents=new Map;return d};
_.m(rU,_.B);_.G=rU.prototype;_.G.created=function(){this.player=null;this.JSC$22525_playerEvents=new Map;this.JSC$22525_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22525_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22525_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.G.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.G.attached=function(){var d=this,H=_.Kf();H&&H.getPlayerPromise().then(function(K){d.setPlayer(K);d.set("isPageLoad",!1)})};
_.G.setPlayer=function(d){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22525_playerEvents);this.set("player",d);if(d){this.ytPlayerListenerBehavior.listenToPlayerEvents(d,this.JSC$22525_playerEvents);var H;(d==null?void 0:(H=d.getPresentingPlayerType)==null?void 0:H.call(d))===2&&this.playerAdStartHandler()}};
_.G.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.G.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.G.onVideoProgress=function(){var d,H,K=((d=this.player)==null?void 0:(H=d.getPresentingPlayerType)==null?void 0:H.call(d))===2;this.isAdPlaying!==K&&this.set("isAdPlaying",K)};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],rU.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],rU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.jk.YtPlayerListenerBehavior),_.O("design:type",_.vn)],rU.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],rU.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],rU.prototype,"isAdPlaying",void 0);
_.t([_.r({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],rU.prototype,"isPageLoad",void 0);_.t([_.Z({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],rU);
_.T(rU,"ytd-clip-section-footer-renderer",function(){if(fKN!==void 0)return fKN;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="buttons" class="style-scope ytd-clip-section-footer-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return fKN=d},{mode:1});var A1w;var jVw;var Wa=function(){return _.B.apply(this,arguments)||this};
_.m(Wa,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Wa.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Wa.prototype,"data",void 0);_.t([_.Z({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Wa);
_.T(Wa,"ytd-clip-ad-state-renderer",function(){if(jVw!==void 0)return jVw;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-ad-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="message" class="style-scope ytd-clip-ad-state-renderer">\n  <div id="title" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="body" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.body)]]</div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return jVw=d},{mode:1});var vsB;var Ba=function(){var d=_.B.apply(this,arguments)||this;d.value="";d.valid=!1;d.userChangedValue=!1;d.disabled=!1;d.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return d};
_.m(Ba,_.B);_.G=Ba.prototype;_.G.detached=function(){this.userChangedValue=!1};
_.G.handleKeyDown=function(d){if(_.GZ)var H=13;else _.RCl&&_.oB?H=13:H=13;d.keyCode===H&&d.preventDefault()};
_.G.handleInput=function(){var d=_.Gn(this.hostElement).querySelector("#title");if(d){var H=(d.value||"").replace(/\r|\n/g," ");this.set("value",H);d.value=H;this.valid=d.validate();this.userChangedValue=!0}};
_.G.handleBlur=function(){this.valid=_.Gn(this.hostElement).querySelector("#title").validate()};
_.G.onValueChanged=function(){_.GT(this.hostElement,"title-changed",{title:this.value})};
_.G.onValidChanged=function(){_.GT(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.G.setInput=function(d,H){var K=_.Gn(this.hostElement).querySelector("#title");K&&(K.value=d,this.handleInput(),H&&(K.invalid=!1,this.valid=!0))};
_.G.onClipCreationDisable=function(){this.set("disabled",!0)};
_.G.onClipCreationEnable=function(){this.set("disabled",!1)};
_.G.onClipCreationVisibilityChange=function(d){var H=this;d.visible?requestAnimationFrame(function(){var K;((K=_.Gn(H.hostElement).querySelector("#title"))==null?void 0:K.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Ba.prototype.onValidChanged=Ba.prototype.onValidChanged;Ba.prototype.onValueChanged=Ba.prototype.onValueChanged;Ba.prototype.handleBlur=Ba.prototype.handleBlur;Ba.prototype.handleInput=Ba.prototype.handleInput;Ba.prototype.handleKeyDown=Ba.prototype.handleKeyDown;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ba.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Ba.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],Ba.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Ba.prototype,"value",void 0);_.t([_.r(),_.O("design:type",Object)],Ba.prototype,"valid",void 0);_.t([_.r(),_.O("design:type",Object)],Ba.prototype,"userChangedValue",void 0);_.t([_.r(),_.O("design:type",Object)],Ba.prototype,"disabled",void 0);_.t([_.nK("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[KeyboardEvent]),_.O("design:returntype")],Ba.prototype,"handleKeyDown",null);
_.t([_.nK("input"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ba.prototype,"handleInput",null);_.t([_.nK("blur"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ba.prototype,"handleBlur",null);_.t([_.CK("value"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ba.prototype,"onValueChanged",null);
_.t([_.CK("valid"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ba.prototype,"onValidChanged",null);_.t([_.Z({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Ba);
_.T(Ba,"ytd-clip-creation-text-input-renderer",function(){if(vsB!==void 0)return vsB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-creation-text-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-textarea id="title" char-counter="" disabled="[[disabled]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="" pattern=".+" required="" use-v2-underline="" class="style-scope ytd-clip-creation-text-input-renderer"></tp-yt-paper-textarea>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return vsB=d},{mode:1});var d6S;var HBH;var $6a;var KVB;var cAE;var zK=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};d.pendingStoryboardImages_={};d.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];d.tickLabelInterval=30;d.mediumTickInterval=5;d.largeTickInterval=15;d.aboveRulerHeight=32;d.rulerHeight=50;d.smallTickHeight=4;d.mediumTickHeight=8;d.largeTickHeight=16;d.mediaListeners_=
{};return d};
_.m(zK,_.B);_.G=zK.prototype;_.G.attached=function(){var d=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(H){H=_.q(["screen and (min-resolution: "+H+")","screen and (max-resolution: "+H+")"]);for(var K=H.next();!K.done;K=H.next()){K=K.value;var c=window.matchMedia(K);c&&(d.mediaListeners_[K]=d.updatePixelRatio_.bind(d),c.addEventListener?c.addEventListener("change",d.mediaListeners_[K]):c.addListener?c.addListener(d.mediaListeners_[K]):delete d.mediaListeners_[K])}})};
_.G.detached=function(){this.setPlayer(null);for(var d=_.q(Object.keys(this.mediaListeners_)),H=d.next();!H.done;H=d.next()){var K=H.value;H=this.mediaListeners_[K];(K=window.matchMedia(K))&&(K.removeEventListener?K.removeEventListener("change",H):K.removeListener&&K.removeListener(H))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.G.onVisibilityChangedAction_=function(d){var H=this;d.visible&&!this.player_&&(d=_.Kf())&&d.getPlayerPromise().then(function(K){H.setPlayer(K)})};
_.G.setPlayer=function(d){d&&this.set("player_",d)};
_.G.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.G.setUpCanvas_=function(){var d=this.rulerWidth,H=this.devicePixelRatio_,K=this.visible;this.set("canvasReady_",!1);if(K&&H!==0){K=this.aboveRulerHeight+this.rulerHeight;var c=_.Gn(this.hostElement).querySelector("#ticks");c.width=d*H;c.height=K*H;c.style.width=d+"px";c.style.height=K+"px";c.getContext("2d").scale(H,H);this.set("canvasReady_",!0)}};
_.G.drawRuler_=function(d,H,K,c,p,g,a,e,k,C,R,V){d&&K&&H&&(d=_.Gn(this.hostElement).querySelector("#ticks"),H=d.getContext("2d"),H.clearRect(0,0,d.width,d.height),H.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),H.lineWidth=2,H.beginPath(),H.moveTo(0,this.aboveRulerHeight),H.lineTo(d.width,this.aboveRulerHeight),H.moveTo(0,d.height),H.lineTo(d.width,d.height),H.stroke(),this.drawRulerTicks_(d,g,p,c),this.drawStoryboardImages_(d,K,g,p,c),H.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
H.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(a-g,c,!1),this.rulerHeight),K=this.timeToPixels_(e-g,c,!1),H.fillRect(K,this.aboveRulerHeight,d.width-K,this.rulerHeight),this.drawSpeedLines_(d,g,V))};
_.G.drawRulerTicks_=function(d,H,K,c){var p=d.getContext("2d");p.save();p.lineWidth=1;for(var g=Math.floor(Math.max(0,H-this.tickLabelInterval));g<H+K;g++){p.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var a=(g-H)*c;p.beginPath();p.moveTo(a,d.height);var e=this.smallTickHeight;g%this.largeTickInterval===0?e=this.largeTickHeight:g%this.mediumTickInterval===0&&(e=this.mediumTickHeight);p.lineTo(a,d.height-e);p.stroke();g%this.tickLabelInterval===0&&(p.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),p.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),p.fillText(rL(g),a+4,12),p.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),p.moveTo(a,0),p.lineTo(a,this.aboveRulerHeight),p.stroke())}p.restore()};
_.G.percentToHex_=function(d){d=Math.round(d*255).toString(16);d.length<2&&(d="0"+d);return d};
_.G.drawSpeedLines_=function(d,H,K){var c=d.getContext("2d");c.save();var p=Math.min(25,Math.abs(K)-15)/25,g=d.width*.3*p,a=d.width*-.3,e=d.width*1.3,k=this.aboveRulerHeight;d=d.height;var C=Math.round(4*p),R=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");R.length<7&&(R="#"+R.substring(1,4).repeat(2));var V=this.percentToHex_(.5+p/2);V=R+V;R+="00";if(p>0)for(p=0;p<C;p++){var U=a+Math.random()*(e-a),L=k+Math.random()*(d-k),w=g+H%g,W=c.createLinearGradient(U,L,U+w,L);
K<0?(W.addColorStop(0,V),W.addColorStop(.4,V),W.addColorStop(.9,R)):(W.addColorStop(.1,R),W.addColorStop(.6,V),W.addColorStop(1,V));c.strokeStyle=W;c.lineWidth=1;c.beginPath();c.moveTo(U,L);c.lineTo(U+w,L);c.stroke()}c.restore()};
_.G.getStoryboardForTime_=function(d,H,K){K===void 0&&(K=H.getNumberOfStoryboardLevels()-1);d=H.getStoryboardFrameIndex(d,K);return H.getStoryboardFrame(d,K)};
_.G.drawStoryboardImages_=function(d,H,K,c,p){if(!this.disabled){d=d.getContext("2d");var g=this.getStoryboardForTime_(0,H);if(g){var a=g.width/g.columns;g=g.height/g.rows;var e=a/g,k=this.rulerHeight*e;k=this.tickLabelInterval*(e<this.tickLabelInterval*p/this.rulerHeight?1/Math.floor(this.tickLabelInterval*p/k):Math.round(k/(this.tickLabelInterval*p)));var C=k*p,R=this.rulerHeight,V=C/this.rulerHeight,U=Math.floor(Math.max(0,K-k));for(U-=U%k;U<K+c;U+=k){var L=this.getStoryboardForTime_(U,H),w=this.getPreloadedStoryboard_(L.url);
if(w){var W=(U-K)*p,J=this.aboveRulerHeight,F=L.column*a,Y=L.row*g;if(e<V){var A=R/(C/e);L=a;A*=g;Y+=(g-A)/2}else L=C/(R*e)*a,A=g,F+=(a-L)/2;d.drawImage(w,F,Y,L,A,W,J,C,R)}else this.fetchStoryboardImage_(L)}}}};
_.G.getPreloadedStoryboard_=function(d){return this.storyboardImages_.find(function(H){if(H.src==d)return!0;var K=H.src.indexOf(d);return K!=-1&&K==H.src.length-d.length})};
_.G.fetchStoryboardImage_=function(d){var H=this,K=this.getPreloadedStoryboard_(d.url),c=this.pendingStoryboardImages_[d.url];K||c!==void 0||(K=new Promise(function(p){var g=new Image(d.width,d.height);g.src=d.url;g.onload=function(){p(g)};
g.onerror=function(){p(null)}}),this.pendingStoryboardImages_[d.url]=K,K.then(function(p){p&&H.push("storyboardImages_",p);
return p}).finally(function(){delete H.pendingStoryboardImages_[d.url]}))};
_.G.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.G.timeToPixels_=function(d,H,K){d*=H;return K===void 0||K?d+"px":d};
_.G.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
zK.prototype.drawRuler_=zK.prototype.drawRuler_;zK.prototype.setUpCanvas_=zK.prototype.setUpCanvas_;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],zK.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],zK.prototype,"start",void 0);_.t([_.r({value:30}),_.O("design:type",Number)],zK.prototype,"end",void 0);
_.t([_.r({value:!1}),_.O("design:type",Boolean)],zK.prototype,"visible",void 0);_.t([_.r(),_.O("design:type",Object)],zK.prototype,"player_",void 0);_.t([_.r(),_.O("design:type",Number)],zK.prototype,"tickSpacing",void 0);_.t([_.r(),_.O("design:type",Number)],zK.prototype,"windowSizeSec",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],zK.prototype,"rulerWidth",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],zK.prototype,"rulerShift",void 0);
_.t([_.r({value:!1}),_.O("design:type",Boolean)],zK.prototype,"canvasReady_",void 0);_.t([_.r({value:function(){return[]}}),
_.O("design:type",Array)],zK.prototype,"storyboardImages_",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],zK.prototype,"disabled",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],zK.prototype,"forceRender_",void 0);_.t([_.r({value:1}),_.O("design:type",Number)],zK.prototype,"devicePixelRatio_",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],zK.prototype,"windowSpeed",void 0);
_.t([_.CK("visible","devicePixelRatio_","rulerWidth"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zK.prototype,"setUpCanvas_",null);
_.t([_.CK("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.O("design:type",Function),_.O("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.O("design:returntype")],zK.prototype,"drawRuler_",null);_.t([_.ZV({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],zK);
_.T(zK,"yt-clip-creation-scrubber-canvas",function(){if(cAE===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-canvas--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<canvas id="ticks" class="style-scope yt-clip-creation-scrubber-canvas"></canvas>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);cAE=d}d=cAE;return d},
{mode:2});var pfK;var g5a;var X9=function(){var d=_.B.apply(this,arguments)||this;d.start=0;d.end=30;d.visible=!1;d.draggingLeft_=!1;d.draggingRight_=!1;d.draggingRuler_=!1;d.draggingWindow_=!1;d.seekableStart=0;d.seekableEnd=0;d.rulerWidth_=0;d.rulerShift_=0;d.windowSlideSpeed=0;d.disabled=!1;d.initialized=!1;d.durationAccessibilityLabel="";d.activeLoopRange_=!1;d.rulerDragMouseStart_=0;d.rulerDragRulerStart_=0;d.rulerDragStartTime_=0;d.rulerDragEndTime_=0;d.dragMouseLastX_=0;d.scrollInterval_=null;d.scrubberVe_=null;d.boundHandlers_=
{};d.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return d};
_.m(X9,_.B);_.G=X9.prototype;
_.G.created=function(){var d=this;this.JSC$22538_playerEvents=new Map;this.JSC$22538_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22538_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22538_playerEvents.set("onStateChange",this.onStateChange_);var H={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(H).forEach(function(K){d.boundHandlers_[K]=H[K].bind(d)})};
_.G.attached=function(){this.activeLoopRange_=!1;_.Gn(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Gn(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.l8(156731)};
_.G.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Gn(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Gn(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.G.onVisibilityChangedAction_=function(d){var H=this;d.visible&&!this.player_&&(d=_.Kf())&&d.getPlayerPromise().then(function(K){H.setPlayer(K)})};
_.G.setPlayer=function(d){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22538_playerEvents);d&&(this.set("player_",d),this.ytPlayerListenerBehavior.listenToPlayerEvents(d,this.JSC$22538_playerEvents))};
_.G.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.G.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.G.beginHandleDrag_=function(d){this.disabled||(d.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=d.clientX,d.target===_.Gn(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():d.target===_.Gn(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.G.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.G.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.G.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.G.beginRulerDrag_=function(d){this.disabled||(d.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=d.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.G.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.G.beginWindowScroll_=function(){var d=this;this.scrollInterval_=setInterval(function(){var H=d.windowSlideSpeed;if(H=_.bPb(d.start,d.boundedRulerStartLimit_())?H-.1:_.bPb(d.end,d.boundedRulerEndLimit_())?H+.1:0){var K=d.capRulerOffset_(d.rulerShift_+H);K==d.rulerShift_?H=0:(d.set("rulerShift_",K),_.GT(d.hostElement,"set-fixed-length-range",{start:d.start+H,duration:d.end-d.start}))}d.set("windowSlideSpeed",H)},33)};
_.G.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.G.endDrag_=function(){this.logClick();var d=void 0;this.draggingRight_?d=this.end-1:this.draggingLeft_&&(d=this.start);this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1;this.endWindowScroll_();this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end,d);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.G.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.G.updateRulerSize_=function(){this.set("rulerWidth_",_.Gn(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.G.handleMouseDrag_=function(d){d.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(d):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(d):this.draggingWindow_&&this.handleWindowDrag_(d))};
_.G.handleRulerDrag_=function(d){d=this.pixelsToTime_(d.clientX-this.rulerDragMouseStart_);d=this.capRulerOffset_(this.rulerDragRulerStart_-d);this.set("rulerShift_",d);var H=this.rulerDragStartTime_-(this.rulerDragRulerStart_-d);_.GT(this.hostElement,"set-fixed-length-range",{start:H,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-d)-H})};
_.G.handleWindowDrag_=function(d){var H=d.clientX-this.dragMouseLastX_;this.dragMouseLastX_=d.clientX;d=this.pixelsToTime_(H);_.GT(this.hostElement,"set-fixed-length-range",{start:this.start+d,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.G.capRulerOffset_=function(d){var H=this.seekableStart-this.pixelsToTime_(16),K=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(H,d),K)};
_.G.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.G.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.G.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.G.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.G.handleWindowHandleDrag_=function(d){var H=d.clientX-this.dragMouseLastX_;this.dragMouseLastX_=d.clientX;d=this.pixelsToTime_(H);if(this.draggingLeft_){var K=this.start+d;var c=this.end}else this.draggingRight_&&(K=this.start,c=this.end+d);_.GT(this.hostElement,"set-range",{start:K,end:c,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.G.onVideoProgress_=function(d){this.disabled||(d=this.timeToPixels_(d-this.rulerShift_,this.tickSpacing_),_.Gn(this.hostElement).querySelector("#playhead").style.transform="translateX("+d+")")};
_.G.onClipCreationDisable_=function(){this.endDrag_()};
_.G.timeToPixels_=function(d,H,K){d*=H;return K===void 0||K?d+"px":d};
_.G.pixelsToTime_=function(d){return d/this.tickSpacing_};
_.G.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.G.centerRuler_=function(d,H,K){this.set("rulerShift_",this.capRulerOffset_(d+(H-d)/2-K/2))};
_.G.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.G.updateLoopRange_=function(d,H,K,c,p,g,a){d&&(H&&c&&!K?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(d.pauseVideo(),d.seekTo(p,!1,void 0,void 0,50)):this.draggingRight_?(d.pauseVideo(),d.seekTo(g-.1,!1,void 0,void 0,50)):(a!==void 0?d.seekTo(a,!0,void 0,void 0,50):(H=d.getCurrentTime(),H<p||H>g?d.seekTo(p,!0,void 0,void 0,50):d.seekTo(H,!0,void 0,void 0,50)),d.playVideo()),d.setLoopRange({startTimeMs:p*1E3,endTimeMs:g*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(d.getCurrentTime())):
this.activeLoopRange_&&(d.setLoopRange(null),this.activeLoopRange_=!1))};
_.G.updateHandles_=function(){_.Gn(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Gn(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.G.updateRuler_=function(){var d=this.end,H=this.start,K=this.draggableStartLimit_(),c=this.draggableEndLimit_();(H<K-.001||d>c+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.G.computeDurationLabel_=function(d,H){return d?d.replace("$clip_length",parseFloat(H).toFixed(1)):""};
_.G.computeDuration_=function(d,H){return this.isValidTime_(d)&&this.isValidTime_(H)&&d<H?H-d:0};
_.G.isValidTime_=function(d){return isNaN(parseFloat(d))||d<0?!1:this.player_?d>=this.seekableStart&&d<=this.seekableEnd:!0};
_.G.computeWindowSizeSec_=function(d,H,K){return Math.min((d||12E4)/1E3,K-H)};
_.G.computeTickSpacing_=function(d,H){return H?H/d:1};
_.G.onDragStateChanged_=function(){_.GT(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.G.centerRangeOnTime_=function(d){var H=this.duration;d=QCN(d-H/2,H,this.seekableStart,this.seekableEnd);_.GT(this.hostElement,"set-fixed-length-range",{start:d.start,duration:d.end-d.start})};
_.G.nearlyLessThan_=function(d,H,K){return d+(K===void 0?1E-6:K)<H};
_.G.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var d=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(d,this.start)||this.nearlyLessThan_(this.end,d))&&this.centerRangeOnTime_(d)}};
_.G.onStateChange_=function(d){this.visible&&!this.disabled&&d==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.G.computeDragState_=function(d,H,K,c){return d?"left":H?"right":K?"ruler":c?"window":"none"};
_.G.logClick=function(){var d=_.Fj(),H=_.so();d&&H&&this.scrubberVe_&&(_.h("combine_ve_grafts")?_.ec(_.hR(),this.scrubberVe_,H):_.Ea(d,H,this.scrubberVe_),_.fo(d,this.scrubberVe_))};
X9.prototype.onDragStateChanged_=X9.prototype.onDragStateChanged_;X9.prototype.updateRuler_=X9.prototype.updateRuler_;X9.prototype.updateHandles_=X9.prototype.updateHandles_;X9.prototype.onUpdateLoopRange=X9.prototype.onUpdateLoopRange;X9.prototype.onInitializedChanged_=X9.prototype.onInitializedChanged_;X9.prototype.onVisibleChanged_=X9.prototype.onVisibleChanged_;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],X9.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(_.jk.YtPlayerListenerBehavior),_.O("design:type",Object)],X9.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],X9.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],X9.prototype,"start",void 0);_.t([_.r(),_.O("design:type",Object)],X9.prototype,"end",void 0);_.t([_.r({computed:"computeDuration_(start, end)"}),_.O("design:type",Number)],X9.prototype,"duration",void 0);
_.t([_.r(),_.O("design:type",String)],X9.prototype,"lengthTemplate",void 0);_.t([_.r({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.O("design:type",String)],X9.prototype,"durationLabel",void 0);_.t([_.r(),_.O("design:type",Object)],X9.prototype,"visible",void 0);_.t([_.r(),_.O("design:type",Object)],X9.prototype,"player_",void 0);_.t([_.r(),_.O("design:type",Object)],X9.prototype,"draggingLeft_",void 0);_.t([_.r(),_.O("design:type",Object)],X9.prototype,"draggingRight_",void 0);
_.t([_.r(),_.O("design:type",Object)],X9.prototype,"draggingRuler_",void 0);_.t([_.r({value:!1}),_.O("design:type",Object)],X9.prototype,"draggingWindow_",void 0);_.t([_.r({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.O("design:type",Number)],X9.prototype,"tickSpacing_",void 0);_.t([_.r(),_.O("design:type",Object)],X9.prototype,"seekableStart",void 0);_.t([_.r(),_.O("design:type",Object)],X9.prototype,"seekableEnd",void 0);
_.t([_.r(),_.O("design:type",Number)],X9.prototype,"windowSizeMs",void 0);_.t([_.r({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.O("design:type",Number)],X9.prototype,"windowSizeSec_",void 0);_.t([_.r(),_.O("design:type",Object)],X9.prototype,"rulerWidth_",void 0);_.t([_.r(),_.O("design:type",Object)],X9.prototype,"rulerShift_",void 0);_.t([_.r(),_.O("design:type",Object)],X9.prototype,"windowSlideSpeed",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],X9.prototype,"disabled",void 0);_.t([_.r(),_.O("design:type",Object)],X9.prototype,"initialized",void 0);_.t([_.r(),_.O("design:type",Object)],X9.prototype,"durationAccessibilityLabel",void 0);_.t([_.r({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.O("design:type",String)],X9.prototype,"dragState",void 0);
_.t([_.CK("visible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],X9.prototype,"onVisibleChanged_",null);_.t([_.CK("initialized"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],X9.prototype,"onInitializedChanged_",null);_.t([_.CK("player_","visible","disabled","initialized","start","end"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],X9.prototype,"onUpdateLoopRange",null);
_.t([_.CK("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],X9.prototype,"updateHandles_",null);_.t([_.CK("start","end"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],X9.prototype,"updateRuler_",null);
_.t([_.CK("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],X9.prototype,"onDragStateChanged_",null);_.t([_.ZV({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],X9);
_.T(X9,"yt-clip-creation-scrubber-view",function(){if(g5a===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-view--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_view.yt.clip.creation.scrubber.view.css.js--\x3e<div id="trimmer" class="style-scope yt-clip-creation-scrubber-view">\n  <div id="ruler" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-view">\n    <yt-clip-creation-scrubber-canvas id="ticks" disabled="[[disabled]]" end="[[end]]" ruler-shift="[[rulerShift_]]" ruler-width="[[rulerWidth_]]" start="[[start]]" tick-spacing="[[tickSpacing_]]" visible="[[visible]]" window-size-sec="[[windowSizeSec_]]" window-speed="[[windowSlideSpeed]]" class="style-scope yt-clip-creation-scrubber-view">\n    </yt-clip-creation-scrubber-canvas>\n    <div id="handles" class="style-scope yt-clip-creation-scrubber-view">\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-left">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-right">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n    </div>\n    <div id="playhead" class="style-scope yt-clip-creation-scrubber-view"></div>\n  </div>\n</div>\n<div id="duration" aria-label="[[durationAccessibilityLabel]]" class="style-scope yt-clip-creation-scrubber-view">[[durationLabel]]</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;pfK===void 0&&(pfK=document.createElement("template"));var c=pfK;K.call(H,c.content.cloneNode(!0),d.content.firstChild);g5a=d}d=g5a;return d},{mode:2});var Je=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};d.startHighlightTimeout=0;d.endHighlightTimeout=0;return d};
_.m(Je,_.B);_.G=Je.prototype;_.G.attached=function(){var d=this;this.startInput.addEventListener("input",function(H){return d.handleStartInput_(H)});
this.endInput.addEventListener("input",function(H){return d.handleEndInput_(H)});
this.startInput.addEventListener("focusout",function(H){return d.handleStartBlur_(H)});
this.endInput.addEventListener("focusout",function(H){return d.handleEndBlur_(H)})};
_.G.setPlayer=function(d){this.set("player_",d)};
_.G.onSetFixedLengthRange_=function(d){var H=d.detail;d=H.start;var K=H.duration,c=H.startLimit;H=H.endLimit;c||(c=this.seekableStart_);H||(H=this.seekableEnd_);d=QCN(d,K,c,H);this.start=d.start;this.end=d.end};
_.G.onSetRange_=function(d){var H=d.detail;d=H.start;var K=H.end,c=H.startLimit;H=H.endLimit;c||(c=this.seekableStart_);H||(H=this.seekableEnd_);if(d=tSO(d,K,c,H,this.minLengthSec,this.maxLengthSec))this.start=d.start,this.end=d.end};
_.G.updateInputs_=function(){var d=this.end,H=this.start;this.startInput.focused||(this.startInput.value=rL(H,!0));this.endInput.focused||(this.endInput.value=rL(d,!0))};
_.G.handleStartInput_=function(d){d=TAw(d.target.value);if(d===null)this.set("startValid",!1);else{var H=this.end,K=tSO(d,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);K?(this.set("endWillUpdate",K.end!==H),this.set("startValid",K.start===d)):this.set("startValid",!1)}};
_.G.handleEndInput_=function(d){d=TAw(d.target.value);if(d===null)this.set("endValid",!1);else{var H=this.start,K=Y3K(this.start,d,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);K?(this.set("startWillUpdate",K.start!==H),this.set("endValid",K.end===d)):this.set("endValid",!1)}};
_.G.handleStartBlur_=function(d){d=TAw(d.target.value);d===null?this.startInput.value=rL(this.start,!0):this.forceUpdateInputs_(tSO(d,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.G.handleEndBlur_=function(d){d=TAw(d.target.value);d===null?this.endInput.value=rL(this.end,!0):this.forceUpdateInputs_(Y3K(this.start,d,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.G.forceUpdateInputs_=function(d){d&&(this.start=d.start,this.end=d.end);this.startInput.value=rL(this.start,!0);this.endInput.value=rL(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.G.initializeClipRange_=function(){var d=this.seekableEnd_,H=this.seekableStart_,K=this.visible_,c=this.player_;if(!c||!K||H===null||!d)this.set("initialized",!1);else if(!this.initialized){var p=c.getCurrentTime(),g=this.getDefaultLengthSec_();K=c.getVideoData();var a=c.getPlayerState()==1,e=K.isLive;g=Math.min(g,d-H);p=Math.max(0,p);d=e?Y3K(p-g,p,H,d,this.minLengthSec,this.maxLengthSec):a?QCN(p-g/2,g,H,d):QCN(p,g,H,d);this.start=d.start;this.end=d.end;this.set("initialized",!0);K.isLive&&c.seekTo(d.start);
this.startInput.value=rL(this.start,!0);this.endInput.value=rL(this.end,!0)}};
_.G.onStartChanged_=function(){var d=this;_.GT(this.hostElement,"start-changed",{start:this.start});var H;isNaN((H=this.oldStart)!=null?H:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){d.set("highlightStart",!1);d.startHighlightTimeout=0;d.oldStart=d.start},3E3))};
_.G.onEndChanged_=function(){var d=this;_.GT(this.hostElement,"end-changed",{end:this.end});var H;isNaN((H=this.oldEnd)!=null?H:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){d.set("highlightEnd",!1);d.endHighlightTimeout=0;d.oldEnd=d.end},3E3))};
_.G.onVisibilityChangedAction_=function(d){var H=this;this.set("visible_",d.visible);this.visible_&&!this.player_&&(d=_.Kf())&&d.getPlayerPromise().then(function(K){H.setPlayer(K)})};
_.G.computeMinLengthSec_=function(d){return d/1E3||5};
_.G.computeMaxLengthSec_=function(d){return d/1E3||60};
_.G.computeDefaultLengthSec_=function(d){return d/1E3};
_.G.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.G.computeSeekableStart_=function(d,H){return d&&H?d.getProgressState(1).seekableStart:0};
_.G.computeSeekableEnd_=function(d,H){return d&&H?d.getProgressState(1).seekableEnd:0};
_.G.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.G.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.G.onDragState_=function(d){this.set("highlightStart",d.detail.startChanging);this.set("highlightEnd",d.detail.endChanging)};
Je.prototype.onDragState_=Je.prototype.onDragState_;Je.prototype.onEndChanged_=Je.prototype.onEndChanged_;Je.prototype.onStartChanged_=Je.prototype.onStartChanged_;Je.prototype.initializeClipRange_=Je.prototype.initializeClipRange_;Je.prototype.updateInputs_=Je.prototype.updateInputs_;Je.prototype.onSetRange_=Je.prototype.onSetRange_;Je.prototype.onSetFixedLengthRange_=Je.prototype.onSetFixedLengthRange_;
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Je.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Je.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Je.prototype,"data",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],Je.prototype,"start",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],Je.prototype,"startValid",void 0);
_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Je.prototype,"startWillUpdate",void 0);_.t([_.r({value:30}),_.O("design:type",Number)],Je.prototype,"end",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],Je.prototype,"endValid",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Je.prototype,"endWillUpdate",void 0);_.t([_.r({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.O("design:type",Number)],Je.prototype,"minLengthSec",void 0);
_.t([_.r({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.O("design:type",Number)],Je.prototype,"maxLengthSec",void 0);_.t([_.r({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.O("design:type",Number)],Je.prototype,"defaultLengthSec",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],Je.prototype,"visible_",void 0);_.t([_.r(),_.O("design:type",Object)],Je.prototype,"player_",void 0);
_.t([_.r({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.O("design:type",Number)],Je.prototype,"seekableStart_",void 0);_.t([_.r({computed:"computeSeekableEnd_(player_, visible_)"}),_.O("design:type",Number)],Je.prototype,"seekableEnd_",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],Je.prototype,"initialized",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Je.prototype,"disabled",void 0);
_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Je.prototype,"highlightStart",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Je.prototype,"highlightEnd",void 0);_.t([_.VP("#start"),_.O("design:type",HTMLInputElement)],Je.prototype,"startInput",void 0);_.t([_.VP("#end"),_.O("design:type",HTMLInputElement)],Je.prototype,"endInput",void 0);
_.t([_.nK("set-fixed-length-range"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Je.prototype,"onSetFixedLengthRange_",null);_.t([_.nK("set-range"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Je.prototype,"onSetRange_",null);_.t([_.CK("start","end"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Je.prototype,"updateInputs_",null);
_.t([_.CK("player_","visible_","seekableStart_","seekableEnd_"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Je.prototype,"initializeClipRange_",null);_.t([_.CK("start"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Je.prototype,"onStartChanged_",null);_.t([_.CK("end"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Je.prototype,"onEndChanged_",null);
_.t([_.nK("clips-drag-state"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Je.prototype,"onDragState_",null);_.t([_.ZV({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Je);
_.T(Je,"yt-clip-creation-scrubber-renderer",function(){if(KVB===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_renderer.yt.clip.creation.scrubber.renderer.css.js--\x3e<div id="text-inputs" class="style-scope yt-clip-creation-scrubber-renderer">\n  <yt-icon id="warning-start" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="start" placeholder="[[data.startAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <span id="spacer" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-renderer">\u2013</span>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="end" placeholder="[[data.endAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <yt-icon id="warning-end" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n</div>\n<yt-clip-creation-scrubber-view disabled="[[disabled]]" duration-accessibility-label="[[data.durationAccessibility.accessibilityData.label]]" end="[[end]]" initialized="[[initialized]]" length-template="[[data.lengthTemplate]]" seekable-end="[[seekableEnd_]]" seekable-start="[[seekableStart_]]" start="[[start]]" visible="[[visible_]]" window-size-ms="[[data.windowSizeMs]]" class="style-scope yt-clip-creation-scrubber-renderer">\n</yt-clip-creation-scrubber-view>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;$6a===void 0&&($6a=document.createElement("template"));var c=$6a;K.call(H,c.content.cloneNode(!0),d.content.firstChild);KVB=d}d=KVB;return d},{mode:2});var sz=function(){var d=_.B.apply(this,arguments)||this;d.player_=null;d.JSC$22552_playerEvents=new Map;d.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return d};
_.m(sz,_.B);_.G=sz.prototype;_.G.configureRendererStamper=function(){return{submitButton_:{id:"share",mapping:{buttonRenderer:"yt-button-renderer"}},cancelButton_:{id:"cancel",mapping:{buttonRenderer:"yt-button-renderer"}},"data.titleInput":{id:"title-input",mapping:{clipCreationTextInputRenderer:"ytd-clip-creation-text-input-renderer"}},"data.scrubber":{id:"scrubber",mapping:{clipCreationScrubberRenderer:"yt-clip-creation-scrubber-renderer"}},"data.adStateOverlay":{id:"ad-state",mapping:{clipAdStateRenderer:"ytd-clip-ad-state-renderer"}}}};
_.G.created=function(){this.JSC$22552_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22552_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22552_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22552_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.G.detached=function(){this.setPlayer(null)};
_.G.onVisibilityChangedAction_=function(d){var H=this,K;if((K=this.data)==null?0:K.externalVideoId){var c;this.videoId=(c=this.data)==null?void 0:c.externalVideoId}this.getPlayer().then(function(p){if(d.visible)H.returnTime=p.getCurrentTime(),H.isAtLiveHead=p.getProgressState().isAtLiveHead;else{var g=H.returnTime;H.isAtLiveHead&&(g=Number.POSITIVE_INFINITY);p.seekTo(g,void 0,void 0,void 0,51)}})};
_.G.getPlayer=function(){var d=this;if(!this.player_){var H=_.Kf();if(H)return H.getPlayerPromise().then(function(K){d.setPlayer(K);return K})}return Promise.resolve(this.player_)};
_.G.setPlayer=function(d){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22552_playerEvents);if(d){this.player_=d;var H;((H=this.data)==null?0:H.externalVideoId)||this.set("videoId",d.getVideoData().video_id||"");var K;(d==null?void 0:(K=d.getPresentingPlayerType)==null?void 0:K.call(d))===2&&(this.set("isAdPlaying",!0),_.oF(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(d,this.JSC$22552_playerEvents)}};
_.G.ready=function(){_.Gn(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.G.onTitleChanged_=function(d){this.set("titleValue",d.detail.title)};
_.G.onStartChanged_=function(d){this.set("start",d.detail.start)};
_.G.onEndChanged_=function(d){this.set("end",d.detail.end)};
_.G.onTitleValidChanged_=function(d){this.set("titleValid",d.detail.valid)};
_.G.onStartValidChanged_=function(d){this.set("startValid",d.detail.valid)};
_.G.onEndValidChanged_=function(d){this.set("endValid",d.detail.valid)};
_.G.onVideoDataChange_=function(){var d;if((d=this.data)==null||!d.externalVideoId){var H;this.set("videoId",((H=this.player_)==null?void 0:H.getVideoData().video_id)||"")}};
_.G.computeFormValid_=function(d,H,K,c){return!!(d&&H&&K&&c)};
_.G.computeCancelButton_=function(d,H,K){return d&&_.M(d,_.Tz)?{buttonRenderer:Object.assign({},_.M(d,_.Tz),{isDisabled:H||K})}:null};
_.G.computeSubmitButton_=function(d,H,K){return d&&_.M(d,_.Tz)?{buttonRenderer:Object.assign({},_.M(d,_.Tz),{command:void 0,isDisabled:!this.formValid||H||K})}:null};
_.G.computeSubmitCommand_=function(d){return d||null};
_.G.onSubmit_=function(d){var H=this;d.stopPropagation();d.preventDefault();this.submitCommand_&&(d={},d.comment_text=this.titleValue,d.clip_external_video_id=this.videoId,d.clip_offset_ms=parseInt(this.start*1E3,10),d.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.aF(this.hostElement,[this.submitCommand_,d]).then(function(){H.set("isLoading_",!1)},function(){H.set("isLoading_",!1)}))};
_.G.playerAdStartHandler_=function(){_.oF(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.G.playerAdEndHandler_=function(){_.oF(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.G.onVideoProgress_=function(){var d=this;this.getPlayer().then(function(H){var K,c=(H==null?void 0:(K=H.getPresentingPlayerType)==null?void 0:K.call(H))===2;d.isAdPlaying!==c&&(c?d.playerAdStartHandler_():d.playerAdEndHandler_())})};
sz.prototype.onEndValidChanged_=sz.prototype.onEndValidChanged_;sz.prototype.onStartValidChanged_=sz.prototype.onStartValidChanged_;sz.prototype.onTitleValidChanged_=sz.prototype.onTitleValidChanged_;sz.prototype.onEndChanged_=sz.prototype.onEndChanged_;sz.prototype.onStartChanged_=sz.prototype.onStartChanged_;sz.prototype.onTitleChanged_=sz.prototype.onTitleChanged_;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],sz.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(_.jk.YtPlayerListenerBehavior),_.O("design:type",Object)],sz.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],sz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],sz.prototype,"data",void 0);_.t([_.r({value:""}),_.O("design:type",String)],sz.prototype,"titleValue",void 0);
_.t([_.r({value:!1}),_.O("design:type",Boolean)],sz.prototype,"titleValid",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],sz.prototype,"start",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],sz.prototype,"startValid",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],sz.prototype,"end",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],sz.prototype,"endValid",void 0);_.t([_.r({value:""}),_.O("design:type",String)],sz.prototype,"videoId",void 0);
_.t([_.r({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.O("design:type",Boolean)],sz.prototype,"formValid",void 0);_.t([_.r({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.O("design:type",Object)],sz.prototype,"submitButton_",void 0);_.t([_.r({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.O("design:type",Object)],sz.prototype,"submitCommand_",void 0);
_.t([_.r({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.O("design:type",Object)],sz.prototype,"cancelButton_",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],sz.prototype,"isLoading_",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],sz.prototype,"isAdPlaying",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],sz.prototype,"returnTime",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],sz.prototype,"isAtLiveHead",void 0);
_.t([_.nK("title-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],sz.prototype,"onTitleChanged_",null);_.t([_.nK("start-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],sz.prototype,"onStartChanged_",null);_.t([_.nK("end-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],sz.prototype,"onEndChanged_",null);
_.t([_.nK("title-valid-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],sz.prototype,"onTitleValidChanged_",null);_.t([_.nK("start-valid-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],sz.prototype,"onStartValidChanged_",null);_.t([_.nK("end-valid-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],sz.prototype,"onEndValidChanged_",null);
_.t([_.ZV({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],sz);
_.T(sz,"yt-clip-creation-renderer",function(){if(HBH===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_renderer.yt.clip.creation.renderer.css.js--\x3e<div id="container" class="style-scope yt-clip-creation-renderer">\n  <div id="title" class="style-scope yt-clip-creation-renderer">\n    <div class="left-container style-scope yt-clip-creation-renderer">\n      <yt-img-shadow id="user-avatar" height="32" thumbnail="[[data.userAvatar]]" width="32" class="style-scope yt-clip-creation-renderer">\n      </yt-img-shadow>\n      <div id="display-name" class="style-scope yt-clip-creation-renderer">[[getSimpleString(data.displayName)]]</div>\n    </div>\n    <div id="publicity-label" class="style-scope yt-clip-creation-renderer">\n      <yt-icon id="publicity-icon" icon="yt-icons:privacy_public" class="style-scope yt-clip-creation-renderer"></yt-icon>\n      [[data.publicityLabel]]\n    </div>\n  </div>\n  <div id="title-input" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="scrubber" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="footer" class="style-scope yt-clip-creation-renderer">\n  <tp-yt-paper-spinner-lite active="[[isLoading_]]" hidden="[[!isLoading_]]" class="style-scope yt-clip-creation-renderer"></tp-yt-paper-spinner-lite>\n  <div id="cancel" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="share" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="ad-state" class="style-scope yt-clip-creation-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;d6S===void 0&&(d6S=document.createElement("template"));var c=d6S;K.call(H,c.content.cloneNode(!0),d.content.firstChild);HBH=d}d=HBH;return d},{mode:2});var F9=function(){return _.B.apply(this,arguments)||this};
_.m(F9,_.B);F9.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{clipAttributionRenderer:"ytd-clip-attribution-renderer",clipCreationRenderer:"yt-clip-creation-renderer"}},"data.footer":{id:"footer",mapping:{clipSectionFooterRenderer:"ytd-clip-section-footer-renderer"}}}};
F9.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(d){return d.hasOwnProperty("clipCreationRenderer")})&&_.oF(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
F9.prototype.onPanelContentVisibleChanged=F9.prototype.onPanelContentVisibleChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],F9.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.b9.YtVisibilityBehavior),_.O("design:type",Object)],F9.prototype,"ytVisibilityBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],F9.prototype,"ytdReduxBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],F9.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],F9.prototype,"panelContentVisible",void 0);_.t([_.CK("panelContentVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],F9.prototype,"onPanelContentVisibleChanged",null);_.t([_.Z({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],F9);
_.T(F9,"ytd-clip-section-renderer",function(){if(A1w!==void 0)return A1w;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-clip-section-renderer"></div>\n<div id="footer" class="style-scope ytd-clip-section-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return A1w=d},{mode:1});var iBr;var Z2=function(){return _.B.apply(this,arguments)||this};
_.m(Z2,_.B);_.G=Z2.prototype;
_.G.onKeyDown=function(d){if(this.snippetElements.length!==0&&(d=d.keyCode,d===38||d===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);d===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.zH(this.highlightedIndex,-1,this.snippetElements.length);d=this.snippetElements.length;var H=this.highlightedIndex%d;this.highlightedIndex=H*d<0?H+d:H;d=this.snippetElements[this.highlightedIndex];this.highlightSnippet(d);this.ensureVisible(d)}};
_.G.onKeyUp=function(d){var H=this;USa(d)&&(d.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.Xp.cancelJob(this.inputTimerId),this.inputTimerId=_.Xp.addLowPriorityJob(function(){H.typedValue&&(H.fetchSnippets(H.typedValue),H.logInputGesture(H.data))},1E3))};
_.G.onClick=function(d){(d=_.pvU(d.target,null,"snippet-item"))&&this.selectSnippet(d)};
_.G.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.G.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.G.ready=function(){var d=this;this.inputElement.addEventListener("focus",function(){d.snippetsWrapper.style.removeProperty("display")})};
_.G.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.G.getSourceTimelines=function(){if(!this.data)return[];var d=[];if(this.data.searchInVideoSources)for(var H=_.q(this.data.searchInVideoSources),K=H.next();!K.done;K=H.next())K=K.value,K==="SEARCH_IN_VIDEO_SOURCE_ASR"?d.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):K==="SEARCH_IN_VIDEO_SOURCE_OCR"&&d.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return d};
_.G.fetchSnippets=function(d){var H=_.oF(this.hostElement,"yt-get-current-video-id-action")[0],K=this.getSourceTimelines();d={getSearchInVideoCommand:{externalVideoId:H,query:d!=null?d:"",sourceTimelines:K},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.Kj().resolve(_.cb).resolveCommand(d,{form:{element:this.hostElement}})};
_.G.filterSnippets=function(d,H){var K=this;if(H){this.filteredSnippets=(0,_.rs.unsafeClone)(d);var c=RegExp(_.bql(H),"i");this.filteredSnippets=this.filteredSnippets.filter(function(a){return c.test(K.ytRendererBehavior.getSimpleString(a.snippet))});
d=_.q(this.filteredSnippets);for(var p=d.next();!p.done;p=d.next()){p=p.value;var g=this.ytRendererBehavior.getSimpleString(p.snippet);p.snippet={runs:[{text:g.substring(0,g.toLowerCase().indexOf(H))},{text:g.substring(g.toLowerCase().indexOf(H),g.toLowerCase().indexOf(H)+H.length),bold:!0},{text:g.substring(g.toLowerCase().indexOf(H)+H.length,g.length)}]}}}else this.filteredSnippets=d};
_.G.onUpdateSearchInVideoResults=function(d){if(!(this.snippets.length>0)){var H,K,c;if((c=(H=_.M(d,zjw))==null?void 0:(K=H.results)==null?void 0:K.length)!=null&&c){var p;this.filteredSnippets=this.snippets=((p=_.M(d,zjw))==null?void 0:p.results).map(function(g){var a,e,k;return{startMs:g==null?void 0:(a=g.searchInVideoResultRenderer)==null?void 0:a.startMs,startTimeText:g==null?void 0:(e=g.searchInVideoResultRenderer)==null?void 0:e.startTimeText,snippet:g==null?void 0:(k=g.searchInVideoResultRenderer)==
null?void 0:k.snippet}})}}};
_.G.updateSnippetElements=function(){this.snippetElements=Array.from(this.snippetsWrapper.getElementsByClassName("snippet-item"));this.highlightedIndex>=0&&this.highlightedIndex<this.snippetElements.length&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);this.highlightedIndex=-1;this.snippetsWrapper.scrollTop=0};
_.G.highlightSnippet=function(d){d.classList.add("highlighted")};
_.G.removeSnippetHighlight=function(d){d.classList.remove("highlighted")};
_.G.selectSnippet=function(d){this.typedValue=String(d.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(d);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.G.ensureVisible=function(d){var H=this.snippetsWrapper.scrollTop,K=H+this.snippetsWrapper.clientHeight,c=d.offsetTop-this.snippetsWrapper.offsetTop;d=c+d.clientHeight;c<H?this.snippetsWrapper.scrollTop-=H-c:d>K&&(this.snippetsWrapper.scrollTop+=d-K)};
_.G.seekPlayer=function(d){var H,K;return _.l(function(c){if(c.nextAddress==1){if(!d)return c.jumpTo(0);H=Number(d.dataset.startOffset);return c.yield(_.cI().getPlayerPromise(),3)}K=c.yieldResult;K.seekTo(H/1E3,!0);K.wakeUpControls();_.VE(c)})};
_.G.logInputGesture=function(d){var H=_.Fj();H&&(d==null?0:d.trackingParams)&&_.AO(H,_.P1(d.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.G.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("typed-value-changed",this.typedValue))};
_.G.updateTypedValueFromBinding=function(d){this.typedValue=d.currentTarget.value};
Z2.prototype.typedValueChangedForBinding=Z2.prototype.typedValueChangedForBinding;Z2.prototype.dataChanged=Z2.prototype.dataChanged;Z2.prototype.panelContentVisibleChanged=Z2.prototype.panelContentVisibleChanged;Z2.prototype.onClick=Z2.prototype.onClick;Z2.prototype.onKeyUp=Z2.prototype.onKeyUp;Z2.prototype.onKeyDown=Z2.prototype.onKeyDown;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Z2.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Z2.prototype,"data",void 0);_.t([_.r({value:[]}),_.O("design:type",Array)],Z2.prototype,"snippets",void 0);_.t([_.r({value:[]}),_.O("design:type",Array)],Z2.prototype,"filteredSnippets",void 0);_.t([_.r({value:[]}),_.O("design:type",Array)],Z2.prototype,"snippetElements",void 0);
_.t([_.VP("#siv-input"),_.O("design:type",HTMLElement)],Z2.prototype,"inputElement",void 0);_.t([_.VP("#siv-snippets-wrapper"),_.O("design:type",HTMLElement)],Z2.prototype,"snippetsWrapper",void 0);_.t([_.r(),_.O("design:type",String)],Z2.prototype,"typedValue",void 0);_.t([_.r({value:-1}),_.O("design:type",Number)],Z2.prototype,"highlightedIndex",void 0);_.t([_.nK("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[_.kJ]),_.O("design:returntype")],Z2.prototype,"onKeyDown",null);
_.t([_.nK("keyup"),_.O("design:type",Function),_.O("design:paramtypes",[_.kJ]),_.O("design:returntype")],Z2.prototype,"onKeyUp",null);_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],Z2.prototype,"onClick",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Z2.prototype,"panelContentVisible",void 0);
_.t([_.CK("panelContentVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Z2.prototype,"panelContentVisibleChanged",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Z2.prototype,"dataChanged",null);_.t([_.CK("typedValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Z2.prototype,"typedValueChangedForBinding",null);
_.t([_.Z({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Z2);
_.T(Z2,"ytd-search-in-video-renderer",function(){if(iBr!==void 0)return iBr;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-in-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-search-in-video-renderer" aria-owns="siv-snippets-wrapper" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-search-in-video-renderer" slot="prefix" icon="yt-icons:find_in_page"></yt-icon>\n  <input id="siv-input" slot="input" value="[[typedValue]]" type="text" placeholder="[[getSimpleString(data.placeholderText)]]" aria-autocomplete="list" aria-controls="siv-snippets-wrapper" aria-haspopup="listbox" role="combobox" on-input="updateTypedValueFromBinding" class="style-scope ytd-search-in-video-renderer">\n</tp-yt-paper-input-container>\n<div id="siv-snippets-wrapper" class="snippets-wrapper style-scope ytd-search-in-video-renderer" role="listbox">\n  <div class="no-results-item style-scope ytd-search-in-video-renderer" hidden="[[filteredSnippets.length]]">\n    [[getSimpleString(data.noResultsMessage)]]\n  </div>\n  <template is="dom-repeat" items="[[filteredSnippets]]" hidden="[[!filteredSnippets.length]]" on-dom-change="updateSnippetElements" class="style-scope ytd-search-in-video-renderer">\n    \n    <div class="snippet-item style-scope ytd-search-in-video-renderer" role="option" data-start-offset$="[[item.startMs]]" data-text$="[[getSimpleString(item.snippet)]]">\n      <yt-formatted-string class="start-time-text style-scope ytd-search-in-video-renderer" text="[[item.startTimeText]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="snippet-text style-scope ytd-search-in-video-renderer" text="[[item.snippet]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return iBr=d},{mode:1});var Go_;var TK=function(){return _.B.apply(this,arguments)||this};
_.m(TK,_.B);TK.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
TK.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.viewButton":{id:"view-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
TK.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var d,H,K,c,p=(H=_.M((d=this.data)==null?void 0:d.onClickCommand,_.La))==null?void 0:(K=H.item)==null?void 0:(c=K.notificationTextRenderer)==null?void 0:c.successResponseText;p&&_.MgX(this.hostElement,p)}};
_.H3.Object.defineProperties(TK.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c;return this.isProductPlaceholder&&((d=this.data)==null?void 0:(H=d.hiddenProductOptions)==null?void 0:H.showDropCountdown)&&!!((K=this.data)==null?0:(c=K.hiddenProductOptions)==null?0:c.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var d;return!this.isProductPlaceholder&&!((d=this.data)==null?0:d.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var d,H;return!((d=this.data)==null?0:d.priceReplacementText)&&!((H=this.data)==null||!H.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],TK.prototype,"componentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],TK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],TK.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("isProductPlaceholder"),_.O("design:type",Object),_.O("design:paramtypes",[])],TK.prototype,"useCenterLayoutContainer",null);_.t([_.r({computed:"computeButtonOverride(data)"}),_.O("design:type",Object)],TK.prototype,"buttonOverride",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],TK.prototype,"isProductPlaceholder",null);
_.t([_.I("isProductPlaceholder"),_.O("design:type",Object),_.O("design:paramtypes",[])],TK.prototype,"showDropCountdown",null);_.t([_.I("isProductPlaceholder","data"),_.O("design:type",Object),_.O("design:paramtypes",[])],TK.prototype,"showBrandName",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],TK.prototype,"showPriceReplacementText",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],TK.prototype,"showPrice",null);
_.t([_.I("isProductPlaceholder"),_.O("design:type",Object),_.O("design:paramtypes",[])],TK.prototype,"showMetadata",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],TK);
_.T(TK,"ytd-product-list-item-renderer",function(){if(Go_!==void 0)return Go_;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div data-offer-version-id$="[[data.debugOfferVersionId]]" id="product-list-item" class="style-scope ytd-product-list-item-renderer"><a id="container" class="yt-simple-endpoint style-scope ytd-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" rel="[[computeNofollow_(data.onClickCommand)]]" data="[[data.onClickCommand]]" on-click="showSnackbarIfPlaceholder"><div id="product-thumbnail" class="style-scope ytd-product-list-item-renderer"><yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-product-list-item-renderer"></yt-img-shadow></div><div id="product-info-and-view" class="style-scope ytd-product-list-item-renderer"><div id="product-info" class="style-scope ytd-product-list-item-renderer"><h4 id="product-title" class="style-scope ytd-product-list-item-renderer">[[getSimpleString(data.title)]]</h4><template is="dom-if" if="[[showDropCountdown]]" class="style-scope ytd-product-list-item-renderer"><yt-countdown target-timestamp="[[data.hiddenProductOptions.dropTimestamp]]" class="style-scope ytd-product-list-item-renderer"></yt-countdown></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="merchant-name" class="style-scope ytd-product-list-item-renderer">[[data.merchantName]]</div></template><template is="dom-if" if="[[showBrandName]]" class="style-scope ytd-product-list-item-renderer"><div id="brand-name" class="style-scope ytd-product-list-item-renderer">[[data.brandName]]</div></template><template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price-replacement" class="style-scope ytd-product-list-item-renderer">[[data.priceReplacementText]]</div></template><template is="dom-if" restamp="" if="[[showPrice]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price" class="style-scope ytd-product-list-item-renderer">[[data.price]]</div></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="affiliate-disclaimer-text" class="style-scope ytd-product-list-item-renderer">\n            [[data.affiliateDisclaimerText]]\n          </div></template></div><div id="view-button" hidden="[[!showMetadata]]" class="style-scope ytd-product-list-item-renderer"></div></div></a><div id="action-button" class="style-scope ytd-product-list-item-renderer"></div></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Go_=d},{mode:1});var o5H;var Q7=function(){return _.B.apply(this,arguments)||this};
_.m(Q7,_.B);Q7.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
Q7.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
Q7.prototype.panelContentVisibleChanged=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1)return d.playerApi?K.jumpTo(2):K.yield(_.cI().getPlayerPromise(),3);K.nextAddress!=2&&(d.playerApi=K.yieldResult);(H=d.playerApi)==null||H.productsInVideoVisibilityUpdated(!!d.panelContentVisible);_.VE(K)})};
Q7.prototype.panelContentVisibleChanged=Q7.prototype.panelContentVisibleChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Q7.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Q7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Q7.prototype,"panelContentVisible",void 0);_.t([_.r(),_.O("design:type",Object)],Q7.prototype,"data",void 0);
_.t([_.CK("panelContentVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],Q7.prototype,"panelContentVisibleChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Q7);
_.T(Q7,"ytd-product-list-renderer",function(){if(o5H!==void 0)return o5H;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-product-list-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return o5H=d},{mode:1});var qYr;var te=function(){var d=_.B.apply(this,arguments)||this;d.hideTimestamps=!!_.xC("hide-transcript-timestamps");d.currentCueIndex=-1;d.flatCues=[];d.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};d.TEST_ONLY={getFlatCues:function(){return d.flatCues}};
return d};
_.m(te,_.B);_.G=te.prototype;_.G.hideTimestampsChanged=function(){_.kC("hide-transcript-timestamps",this.hideTimestamps)};
_.G.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.G.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.G.dataChanged=function(){var d;if((d=this.data)!=null&&d.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;d=_.q(this.data.cueGroups);for(var H=d.next();!H.done;H=d.next()){H=_.q(_.M(H.value,Xv_).cues);for(var K=H.next();!K.done;K=H.next())this.flatCues.push(Number(_.M(K.value,JZS).startOffsetMs))}}};
_.G.onYtPlayerTimeChanged=function(d){if(!(d<0)){for(var H=this.currentCueIndex,K=H;;){var c=K>=0?this.flatCues[K]/1E3:-1;if(d+.5<c)--K;else if(c=K+1<this.flatCues.length?this.flatCues[K+1]/1E3:Infinity,d+.5>c)K+=1;else break}K!==H&&(H>=0&&((d=this.getCueElement(H))&&d.classList.remove("active"),(H=this.getCueGroupElement(H))&&H.classList.remove("active")),(H=this.getCueElement(K))&&H.classList.add("active"),(H=this.getCueGroupElement(K))&&H.classList.add("active"),this.currentCueIndex=K,this.isHovered||
this.scrollElementToTop(K))}};
_.G.scrollElementToTop=function(d){d=this.getCueElement(d>=3?d-3:0);this.hostElement.scrollTop=Math.min(d.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.G.getCueElement=function(d){return _.Gn(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[d]+'"]')};
_.G.getCueGroupElement=function(d){return(d=this.getCueElement(d))&&d.parentElement?d.parentElement.parentElement:null};
_.G.onTap=function(d){var H=_.v5(d);d.target.classList.contains("cue")&&this.seekCueElement(H)};
_.G.onKeyPress=function(d){d.keyCode==13&&(d=_.pvU(d.target,null,"cue"))&&this.seekCueElement(d)};
_.G.seekCueElement=function(d){d=Number(d.getAttribute("start-offset"));_.oF(this.hostElement,"yt-transcript-player-seek",[d/1E3])};
_.G.onMouseEnter=function(){this.isHovered=!0};
_.G.onMouseLeave=function(){this.isHovered=!1};
te.prototype.onMouseLeave=te.prototype.onMouseLeave;te.prototype.onMouseEnter=te.prototype.onMouseEnter;te.prototype.onKeyPress=te.prototype.onKeyPress;te.prototype.onTap=te.prototype.onTap;te.prototype.dataChanged=te.prototype.dataChanged;te.prototype.hideTimestampsChanged=te.prototype.hideTimestampsChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],te.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],te.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],te.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],te.prototype,"hideTimestamps",void 0);_.t([_.r(),_.O("design:type",Boolean)],te.prototype,"isHovered",void 0);_.t([_.CK("hideTimestamps"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],te.prototype,"hideTimestampsChanged",null);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],te.prototype,"dataChanged",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],te.prototype,"onTap",null);_.t([_.nK("keypress"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],te.prototype,"onKeyPress",null);
_.t([_.nK("mouseenter"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],te.prototype,"onMouseEnter",null);_.t([_.nK("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],te.prototype,"onMouseLeave",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],te);
_.T(te,"ytd-transcript-body-renderer",function(){if(qYr!==void 0)return qYr;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template as="cueGroup" is="dom-repeat" items="[[data.cueGroups]]" class="style-scope ytd-transcript-body-renderer">\n  <div class="cue-group style-scope ytd-transcript-body-renderer">\n    <div class="cue-group-start-offset style-scope ytd-transcript-body-renderer">\n      [[getSimpleString(cueGroup.transcriptCueGroupRenderer.formattedStartOffset)]]\n    </div>\n    <div class="cues style-scope ytd-transcript-body-renderer">\n      <template is="dom-repeat" items="[[cueGroup.transcriptCueGroupRenderer.cues]]" class="style-scope ytd-transcript-body-renderer">\n        <div class="cue style-scope ytd-transcript-body-renderer" role="button" start-offset$="[[item.transcriptCueRenderer.startOffsetMs]]" tabindex="0">\n          [[getSimpleString(item.transcriptCueRenderer.cue)]]\n        </div>\n      </template>\n    </div>\n  </div>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return qYr=d},{mode:1});var a$N;var Yo=function(){var d=_.B.apply(this,arguments)||this;d.darkerPanels=_.h("web_watch_darker_panels");return d};
_.m(Yo,_.B);Yo.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Yo.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Yo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Yo.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Yo.prototype,"darkerPanels",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Yo);
_.T(Yo,"ytd-transcript-footer-renderer",function(){if(a$N!==void 0)return a$N;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="menu" class="style-scope ytd-transcript-footer-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return a$N=d},{mode:1});var l$E;var ecB;var Oz=function(){var d=_.B.apply(this,arguments)||this;d.systemIcons=_.h("kevlar_system_icons");d.showClearButton=!1;return d};
_.m(Oz,_.B);_.G=Oz.prototype;_.G.handleInput=function(d){var H=this;d.target.value.length?_.yP(this,"ytdTranscriptSearchBoxSearch",function(){H.emitSearchEvent(d)},500):(_.ZkL(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=d.target.value.length>0};
_.G.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.G.handleClick=function(){var d,H=(d=this.data)==null?void 0:d.trackingParams;H&&_.nU(_.hR(),H)};
_.G.handleClear=function(){_.ZkL(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var d,H,K=(H=_.M((d=this.data)==null?void 0:d.clearButton,_.Tz))==null?void 0:H.trackingParams;K&&_.nU(_.hR(),K);this.clear()};
_.G.emitSearchEvent=function(d){_.GT(this.hostElement,"yt-transcript-search-box-search",{query:d.target.value});var H,K;(d=(K=_.M((H=this.data)==null?void 0:H.searchButton,_.Tz))==null?void 0:K.trackingParams)&&_.nU(_.hR(),d)};
_.G.emitClearEvent=function(){_.GT(this.hostElement,"yt-transcript-search-box-clear")};
_.H3.Object.defineProperties(Oz.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Gn(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Oz.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Oz.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Oz.prototype,"systemIcons",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Oz);
_.T(Oz,"ytd-transcript-search-box-renderer",function(){if(ecB!==void 0)return ecB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-transcript-search-box-renderer" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-transcript-search-box-renderer" slot="prefix" icon="yt-icons:search"></yt-icon>\n  <input id="transcript-search-box-input" slot="input" type="text" placeholder="[[getSimpleString(data.formattedPlaceholder)]]" aria-autocomplete="list" aria-haspopup="listbox" maxlength="1000" role="combobox" on-click="handleClick" on-input="handleInput" class="style-scope ytd-transcript-search-box-renderer">\n  <tp-yt-paper-icon-button class="clear-button style-scope ytd-transcript-search-box-renderer" slot="suffix" hidden="[[!showClearButton]]" icon="yt-sys-icons:close" on-click="handleClear"></tp-yt-paper-icon-button>\n</tp-yt-paper-input-container>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ecB=d},{mode:1});var koS;var x6H;var SY=function(){return _.B.apply(this,arguments)||this};
_.m(SY,_.B);SY.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var d,H;this.sectionHeaderAriaLabel=(d=this.data)==null?void 0:(H=d.accessibility)==null?void 0:H.accessibilityData.label}};
SY.prototype.fireSelectedEvent=function(d){_.GT(this.hostElement,"ytd-transcript-section-header",{startMs:d})};
SY.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
SY.prototype.handleKeyPress=function(d){this.data&&d.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.H3.Object.defineProperties(SY.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var d,H;return(H=(d=this.data)==null?void 0:d.enableTappableTranscriptHeader)!=null?H:!1}}});
SY.prototype.dataChanged=SY.prototype.dataChanged;_.t([_.r(),_.O("design:type",Object)],SY.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],SY.prototype,"sectionHeaderAriaLabel",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],SY.prototype,"enableTappableTranscriptHeader",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],SY.prototype,"dataChanged",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],SY);
_.T(SY,"ytd-transcript-section-header-renderer",function(){if(x6H!==void 0)return x6H;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" class="transcript-section-header style-scope ytd-transcript-section-header-renderer" aria-label$="[[sectionHeaderAriaLabel]]" tabindex="0" role="button" on-click="handleClick" on-keypress="handleKeyPress">\n    <yt-section-header-view-model data="[[data.sectionHeader.sectionHeaderViewModel]]" disable-vertical-padding="true" force-small-layout="true" class="style-scope ytd-transcript-section-header-renderer">\n  </yt-section-header-view-model></div>\n</template>\n<template is="dom-if" restamp="" if="[[!enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" aria-label$="[[sectionHeaderAriaLabel]]" class="style-scope ytd-transcript-section-header-renderer">\n    <yt-formatted-string id="title" aria-hidden="true" tabindex="-1" text="[[data.snippet]]" class="style-scope ytd-transcript-section-header-renderer">\n    </yt-formatted-string>\n  </div>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return x6H=d},{mode:1});var n5B;var Ck_;var Ez=function(){var d=_.B.apply(this,arguments)||this;d.isEditMode=!1;d.touchCaptionsEnabled=!1;d.deleteCaptionCorrectionPopupCommand=null;d.voteCaptionCorrectionPopupCommand=null;d.roundedContainer=!0;d.mouseOver=!1;d.textChanged=!1;d.messages={suggest_correction:_.Vz("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Vz("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Vz("submit_correction",void 0,"Submit for review"),cancel_correction:_.Vz("cancel_correction",
void 0,"Cancel"),replay_segment:_.Vz("replay_segment",void 0,"Re-play segment"),delete_correction:_.Vz("delete_correction",void 0,"Delete correction")};d.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return d};
_.m(Ez,_.B);_.G=Ez.prototype;_.G.dataChanged=function(){this.isEditMode=!1;this.editedText=this.data?this.data.userCorrection:void 0;this.data&&this.data.deleteCaptionCorrectionPopupCommand&&(this.deleteCaptionCorrectionPopupCommand=this.data.deleteCaptionCorrectionPopupCommand);this.data&&this.data.voteCaptionCorrectionPopupCommand&&(this.voteCaptionCorrectionPopupCommand=this.data.voteCaptionCorrectionPopupCommand);this.data&&this.data.accessibility&&(this.segmentAriaLabel=this.data.accessibility.accessibilityData.label)};
_.G.handleDelete=function(d){if(this.deleteCaptionCorrectionPopupCommand){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);H&&this.ytdOpenPopupBehavior.openPopup(H);d.stopPropagation()}};
_.G.handleSubmit=function(d){if(this.data&&this.data.submitCaptionCorrectionCommand&&(d.stopPropagation(),this.textChanged)){var H;d=(H=_.M(this.data.submitCaptionCorrectionCommand,_.vCg))==null?void 0:H.params;H=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:d,correctionText:String(this.ironTextAreaElement.value),originalText:_.jG(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(H);this.isEditMode=!1}};
_.G.handleUpdateSegmentText=function(d){(d=_.M(d,jZB))&&d.targetId&&this.data&&d.targetId===this.data.targetId&&(d.userCorrection&&(this.editedText=d.userCorrection),d.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.jG(this.data.snippet)),d.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=d.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=d.voteCaptionCorrectionPopupCommand?
d.voteCaptionCorrectionPopupCommand:null,d.accessibility&&(this.segmentAriaLabel=d.accessibility.accessibilityData.label))};
_.G.handleCancel=function(d){this.isEditMode=!1;d.stopPropagation();this.logClientVe(159409)};
_.G.handleEditSegmentCommand=function(d){(d=_.M(d,AZe))&&d.targetId&&this.data&&d.targetId===this.data.targetId&&this.handleEdit()};
_.G.handleEditButtonClick=function(d){this.data&&(this.handleEdit(),d.stopPropagation())};
_.G.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var d;(d=this.ironTextAreaElement.textarea)==null||d.focus();this.logClientVe(159407)}};
_.G.handleMouseEnter=function(){this.mouseOver=!0};
_.G.handleMouseLeave=function(){this.mouseOver=!1};
_.G.handleReplay=function(d){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),d.stopPropagation(),this.logClientVe(159408))};
_.G.handleClick=function(){this.data&&(this.voteCaptionCorrectionPopupCommand?(this.ytComponentBehavior.resolveCommand(this.voteCaptionCorrectionPopupCommand),this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs))):(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()))};
_.G.handleKeypress=function(d){this.data&&(this.isEditMode?d.stopPropagation():this.isEnterPress(d)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(d)&&this.logClientVe(138758))};
_.G.handleTextboxClick=function(d){d.stopPropagation()};
_.G.handleTextboxKeydown=function(d){this.isControlEnterPress(d)?this.handleSubmit(d):d.key==="Escape"&&this.handleCancel(d)};
_.G.handleTextboxKeyup=function(){this.textChanged=_.jG(this.latestText)!==String(this.ironTextAreaElement.value)};
_.G.fireSelectedEvent=function(d){_.GT(this.hostElement,"yt-transcript-segment-selected",{startMs:d})};
_.G.fireReplayEvent=function(d,H){_.GT(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(d-100,0),endMs:H})};
_.G.fireEditEvent=function(d,H){_.GT(this.hostElement,"yt-transcript-segment-edit",{startMs:d,endMs:H})};
_.G.isEnterPress=function(d){return d.key==="Enter"||d.code==="Enter"||d.code==="NumpadEnter"||d.keyCode===13?!0:!1};
_.G.isControlEnterPress=function(d){var H=d.key==="Enter"||d.code==="Enter"||d.code==="NumpadEnter"||d.keyCode===13;return(d.ctrlKey||d.metaKey)&&H};
_.G.isCopyPress=function(d){var H=d.ctrlKey;return d.key==="c"&&H};
_.G.logClick=function(){var d,H=(d=this.data)==null?void 0:d.trackingParams;H&&_.nU(_.hR(),H)};
_.G.logClientVe=function(d){_.xR(_.hR(),_.l8(d))};
_.H3.Object.defineProperties(Ez.prototype,{latestText:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.snippet?this.editedText&&this.touchCaptionsEnabled?this.editedText:this.data.snippet:{}}},
enableEditButton:{configurable:!0,enumerable:!0,get:function(){return this.touchCaptionsEnabled&&!this.isEditMode}},
enableUndoButton:{configurable:!0,enumerable:!0,get:function(){return this.enableEditButton&&this.deleteCaptionCorrectionPopupCommand!=null}}});
Ez.prototype.handleMouseLeave=Ez.prototype.handleMouseLeave;Ez.prototype.handleMouseEnter=Ez.prototype.handleMouseEnter;Ez.prototype.dataChanged=Ez.prototype.dataChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Ez.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.Ke),_.O("design:type",Object)],Ez.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ez.prototype,"ytRendererBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],Ez.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ez.prototype,"isEditMode",void 0);_.t([_.r(),_.O("design:type",Object)],Ez.prototype,"touchCaptionsEnabled",void 0);_.t([_.r(),_.O("design:type",Object)],Ez.prototype,"editedText",void 0);_.t([_.r(),_.O("design:type",Object)],Ez.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.t([_.r(),_.O("design:type",Object)],Ez.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.t([_.r(),_.O("design:type",String)],Ez.prototype,"segmentAriaLabel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ez.prototype,"roundedContainer",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ez.prototype,"mouseOver",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ez.prototype,"textChanged",void 0);_.t([_.r(),_.O("design:type",Object)],Ez.prototype,"messages",void 0);
_.t([_.VP("#suggestion"),_.O("design:type",Object)],Ez.prototype,"ironTextAreaElement",void 0);_.t([_.I("data","editedText"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ez.prototype,"latestText",null);_.t([_.I("touchCaptionsEnabled","isEditMode"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ez.prototype,"enableEditButton",null);
_.t([_.I("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ez.prototype,"enableUndoButton",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ez.prototype,"dataChanged",null);_.t([_.nK("mouseenter"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ez.prototype,"handleMouseEnter",null);
_.t([_.nK("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ez.prototype,"handleMouseLeave",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Ez);
_.T(Ez,"ytd-transcript-segment-renderer",function(){if(Ck_!==void 0)return Ck_;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="segment style-scope ytd-transcript-segment-renderer" aria-label$="[[segmentAriaLabel]]" role="button" tabindex="0" on-click="handleClick" on-keypress="handleKeypress">\n  <div class="segment-start-offset style-scope ytd-transcript-segment-renderer" tabindex="-1" aria-hidden="true" on-keypress="handleKeypress">\n    <div class="segment-timestamp style-scope ytd-transcript-segment-renderer">\n      [[getSimpleString(data.startTimeText)]]\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <tp-yt-paper-input-container hidden="[[!isEditMode]]" no-label-float="true" use-v2-underline="" on-click="handleTextboxClick" on-keydown="handleTextboxKeydown" on-keyup="handleTextboxKeyup" class="style-scope ytd-transcript-segment-renderer">\n      <tp-yt-iron-autogrow-textarea id="suggestion" class="paper-input-input style-scope ytd-transcript-segment-renderer" slot="input" label="[[messages.suggested_caption]]" max-rows="4" required="true" rows="1" value="[[getSimpleString(data.snippet)]]">\n      </tp-yt-iron-autogrow-textarea>\n    </tp-yt-paper-input-container>\n    <div id="actions" hidden="[[!isEditMode]]" class="style-scope ytd-transcript-segment-renderer">\n      <div class="submit style-scope ytd-transcript-segment-renderer" on-click="handleSubmit">\n        <yt-icon-button label="[[messages.submit_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:check" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.submit_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="cancel style-scope ytd-transcript-segment-renderer" on-click="handleCancel">\n        <yt-icon-button label="[[messages.cancel_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.cancel_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="replay style-scope ytd-transcript-segment-renderer" on-click="handleReplay">\n        <yt-icon-button label="[[messages.replay_segment]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:replay_arrow" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.replay_segment]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n    </div>\n  </template>\n  <yt-formatted-string class="segment-text style-scope ytd-transcript-segment-renderer" aria-hidden="true" hidden="[[isEditMode]]" tabindex="-1" text="[[latestText]]">\n  </yt-formatted-string>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <div class="segment-undo style-scope ytd-transcript-segment-renderer" on-click="handleDelete" hidden="[[!enableUndoButton]]">\n      <yt-icon-button label="[[messages.delete_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:arrow_undo" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.delete_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n    <div class="segment-edit style-scope ytd-transcript-segment-renderer" on-click="handleEditButtonClick" hidden="[[!enableEditButton]]">\n      <yt-icon-button label="[[messages.suggest_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:edit" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.suggest_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n  </template>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Ck_=d},{mode:1});var y7=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};d.isError=!1;d.darkerPanels=_.h("web_watch_darker_panels");d.useParentMaxHeight=_.h("web_watch_transscript_use_parent_max_height");d.segmentOffsets=[];d.segmentIndex=-1;return d};
_.m(y7,_.B);_.G=y7.prototype;_.G.configureRendererStamper=function(){return{segments:{id:"segments-container",mapping:{transcriptSegmentRenderer:{component:"ytd-transcript-segment-renderer",properties:{touchCaptionsEnabled:"[[data.touchCaptionsEnabled]]"}},transcriptSectionHeaderRenderer:{component:"ytd-transcript-section-header-renderer"}}}}};
_.G.segmentsChanged=function(){this.updateOffsets()};
_.G.onYtPlayerTimeChanged=function(d){for(var H=this.segmentIndex,K=H;;){if(K>=0){var c=this.segmentOffsets[K].start;var p=this.segmentOffsets[K].isAutoScrollable}else c=-1,p=!0;var g=d+.5;if(!p){c=K+1<this.segmentOffsets.length?this.segmentOffsets[K+1].start:Infinity;if(g>=c){K+=1;continue}K=-1;break}if(g<c)c=K-1>=0&&this.segmentOffsets[K-1].isAutoScrollable,p=K===0||c?1:2,K-=p;else if(p=K+1<this.segmentOffsets.length&&this.segmentOffsets[K+1].isAutoScrollable?1:2,c=K+p<this.segmentOffsets.length?
this.segmentOffsets[K+p].start:Infinity,g>c)K+=p;else{if(K<0)break;K<this.segmentOffsets.length&&g>this.segmentOffsets[K].end&&(K=-1);break}}if(H!==K){if(H>=0){var a;(a=this.getSegmentElement(H))==null||a.classList.remove("active")}this.segmentIndex=K;if(!(K<0)){var e;(e=this.getSegmentElement(K))==null||e.classList.add("active");this.isHovered||this.scrollElementToTop(K)}}};
_.G.handleSegmentEdit=function(d){d.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=d.target,_.oF(this.hostElement,"yt-transcript-player-edit",[d.detail.startMs/1E3,d.detail.endMs/1E3]))};
_.G.handleSegmentSelected=function(d){_.oF(this.hostElement,"yt-transcript-player-seek",[d.detail.startMs/1E3])};
_.G.handleSegmentReplay=function(d){_.oF(this.hostElement,"yt-transcript-player-replay",[d.detail.startMs/1E3,d.detail.endMs/1E3])};
_.G.handleSectionHeaderSelected=function(d){_.oF(this.hostElement,"yt-transcript-player-seek",[d.detail.startMs/1E3])};
_.G.onMouseEnter=function(){this.isHovered=!0};
_.G.onMouseLeave=function(){this.isHovered=!1};
_.G.onRetryButtonClick=function(){_.GT(this.hostElement,"transcript-retry-button-click")};
_.G.getSegmentElement=function(d){return _.Gn(this.hostElement).querySelector(":nth-child("+(d+1)+")")};
_.G.scrollElementToTop=function(d){d=this.getSegmentElement(d>=2?d-2:0);this.hostElement.scrollTop=Math.min(d.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.G.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(d){var H,K=(H=d.transcriptSegmentRenderer)!=null?H:d.transcriptSectionHeaderRenderer;return{start:Number(K.startMs)/1E3,end:Number(K.endMs)/1E3,isAutoScrollable:d.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.G.clearHighlightedSegments=function(){var d=_.Gn(this.hostElement);d=_.q(d.querySelectorAll("ytd-transcript-segment-renderer"));for(var H=d.next();!H.done;H=d.next())H.value.classList.remove("active")};
_.H3.Object.defineProperties(y7.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?void 0:d.searchResultSegments)||((H=this.data)==null?void 0:H.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
y7.prototype.onMouseLeave=y7.prototype.onMouseLeave;y7.prototype.onMouseEnter=y7.prototype.onMouseEnter;y7.prototype.handleSectionHeaderSelected=y7.prototype.handleSectionHeaderSelected;y7.prototype.handleSegmentReplay=y7.prototype.handleSegmentReplay;y7.prototype.handleSegmentSelected=y7.prototype.handleSegmentSelected;y7.prototype.handleSegmentEdit=y7.prototype.handleSegmentEdit;y7.prototype.segmentsChanged=y7.prototype.segmentsChanged;
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],y7.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],y7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],y7.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],y7.prototype,"isError",void 0);
_.t([_.r(),_.O("design:type",Object)],y7.prototype,"noResultLabel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],y7.prototype,"darkerPanels",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],y7.prototype,"useParentMaxHeight",void 0);_.t([_.I("data"),_.O("design:type",Array),_.O("design:paramtypes",[])],y7.prototype,"segments",null);
_.t([_.I("segments","noResultLabel"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],y7.prototype,"displayNoResults",null);_.t([_.CK("segments"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],y7.prototype,"segmentsChanged",null);_.t([_.nK("yt-transcript-segment-edit"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],y7.prototype,"handleSegmentEdit",null);
_.t([_.nK("yt-transcript-segment-selected"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],y7.prototype,"handleSegmentSelected",null);_.t([_.nK("yt-transcript-segment-replay"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],y7.prototype,"handleSegmentReplay",null);
_.t([_.nK("ytd-transcript-section-header"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],y7.prototype,"handleSectionHeaderSelected",null);_.t([_.nK("mouseenter"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],y7.prototype,"onMouseEnter",null);_.t([_.nK("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],y7.prototype,"onMouseLeave",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],y7);
_.T(y7,"ytd-transcript-segment-list-renderer",function(){if(n5B!==void 0)return n5B;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="segments-container" class="style-scope ytd-transcript-segment-list-renderer"></div>\n<div id="message-container" hidden="[[!displayNoResults]]" class="style-scope ytd-transcript-segment-list-renderer">\n  <yt-formatted-string id="no-results" text="[[noResultLabel]]" class="style-scope ytd-transcript-segment-list-renderer">\n  </yt-formatted-string>\n</div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return n5B=d},{mode:1});var b7=function(){var d=_.B.apply(this,arguments)||this;d.hideTimestamps=!!_.xC("hide-transcript-timestamps");d.isLoadingTranscripts=!1;d.darkerPanels=_.h("web_watch_darker_panels");d.isError=!1;d.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return d};
_.m(b7,_.B);_.G=b7.prototype;_.G.headerChanged=function(){var d,H;this.baseGetTranscriptsCommand=(H=_.M((d=this.data)==null?void 0:d.header,v0w))==null?void 0:H.onTextChangeCommand};
_.G.bodyChanged=function(){var d=this.getBodyRenderer();d&&(d.initialSegments&&(this.initialTranscriptsRenderer=d),d.noResultLabel&&(this.noResultLabel=d.noResultLabel),d.retryLabel&&(this.retryLabel=d.retryLabel))};
_.G.detached=function(){this.clearSearchBoxText()};
_.G.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.G.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{transcriptSearchBoxRenderer:"ytd-transcript-search-box-renderer"}},"data.body":{id:"body",mapping:{transcriptSegmentListRenderer:{component:"ytd-transcript-segment-list-renderer",properties:{noResultLabel:"[[noResultLabel]]"}}}},"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}}}};
_.G.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.G.fireSearch=function(d){var H=this;if(d){var K=d.detail.query;if(this.baseGetTranscriptsCommand){var c;d=(c=_.M(this.baseGetTranscriptsCommand,_.rv7))==null?void 0:c.params;var p;c=_.M((p=this.data)==null?void 0:p.footer,sZ_);var g;if((p=(g=_.M(c==null?void 0:c.languageMenu,NqK))==null?void 0:g.subMenuItems)&&p.length>0&&(g=p.find(function(k){return k.selected}))){var a,e;
d=(a=g.continuation)==null?void 0:(e=a.reloadContinuationData)==null?void 0:e.continuation}a=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:d,searchQuery:K}});this.ytComponentBehavior.resolveCommand(a,{commandController:{onServerError:function(){H.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});RjE(this.ytContinuationHandlerBehavior,function(){return K===H.getCurrentSearchBoxText()})}}};
_.G.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.G.onRetryButtonClick=function(){this.isError=!1;var d={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:d}))};
_.G.hideTimestampsChanged=function(){_.kC("hide-transcript-timestamps",this.hideTimestamps)};
_.G.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.G.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.G.handleSignalActionCopyTranscript=function(){var d=this,H=this.getBodyRenderer();H&&(H=((H==null?void 0:H.searchResultSegments)||(H==null?void 0:H.initialSegments)||[]).map(function(K){return _.M(K,Hcc)}).filter(function(K){return!!K}).map(function(K){return{snippet:K.snippet||{runs:[{text:""}]},
startTimeText:K.startTimeText||{simpleText:""}}}).map(function(K){var c=(K.snippet.runs||[]).reduce(function(p,g){return p+g.text},"");
return d.hideTimestamps?c:K.startTimeText.simpleText+" "+c}).join("\n"),this.copyToClipboard(H))};
_.G.copyToClipboard=function(d){navigator.clipboard&&navigator.clipboard.writeText(d)};
_.G.getCurrentSearchBoxText=function(){var d;return(d=this.searchBox)==null?void 0:d.value};
_.G.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.G.getBodyRenderer=function(){var d;return _.M((d=this.data)==null?void 0:d.body,dNa)};
_.G.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.H3.Object.defineProperties(b7.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Gn(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
b7.prototype.hideTimestampsChanged=b7.prototype.hideTimestampsChanged;b7.prototype.searchCleared=b7.prototype.searchCleared;b7.prototype.fireSearch=b7.prototype.fireSearch;b7.prototype.onReloadContinuationFinish=b7.prototype.onReloadContinuationFinish;b7.prototype.bodyChanged=b7.prototype.bodyChanged;b7.prototype.headerChanged=b7.prototype.headerChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],b7.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],b7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.yH),_.O("design:type",Object)],b7.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],b7.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],b7.prototype,"hideTimestamps",void 0);
_.t([_.r(),_.O("design:type",Object)],b7.prototype,"isLoadingTranscripts",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],b7.prototype,"darkerPanels",void 0);_.t([_.r(),_.O("design:type",Object)],b7.prototype,"isError",void 0);_.t([_.CK("data.header"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],b7.prototype,"headerChanged",null);
_.t([_.Mr("data.body"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],b7.prototype,"bodyChanged",null);_.t([_.nK("yt-reload-continuation-finish"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],b7.prototype,"onReloadContinuationFinish",null);_.t([_.nK("yt-transcript-search-box-search"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],b7.prototype,"fireSearch",null);
_.t([_.nK("yt-transcript-search-box-clear"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],b7.prototype,"searchCleared",null);_.t([_.CK("hideTimestamps"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],b7.prototype,"hideTimestampsChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],b7);
_.T(b7,"ytd-transcript-search-panel-renderer",function(){if(koS!==void 0)return koS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="body" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="error-container" hidden="[[!isError]]" class="style-scope ytd-transcript-search-panel-renderer">\n  <tp-yt-paper-button id="retry-button" on-click="onRetryButtonClick" class="style-scope ytd-transcript-search-panel-renderer">\n    <yt-formatted-string text="[[retryLabel]]" class="style-scope ytd-transcript-search-panel-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-button>\n</div>\n<div class="spinner-container style-scope ytd-transcript-search-panel-renderer" hidden="[[!isLoadingTranscripts]]">\n  <tp-yt-paper-spinner active="[[isLoadingTranscripts]]" class="style-scope ytd-transcript-search-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="footer" class="style-scope ytd-transcript-search-panel-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return koS=d},{mode:1});var Na=function(){var d=_.B.apply(this,arguments)||this;d.player=null;d.playerPollJobId=0;return d};
_.m(Na,_.B);_.G=Na.prototype;_.G.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.G.onLoadReloadContinuation=function(d){_.h("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:d.target.data.continuation}}):(d={clickTrackingParams:d.target.data.clickTrackingParams,getTranscriptEndpoint:{params:d.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.Kj().resolve(_.cb).resolveCommand(d,{form:{element:this.hostElement}}))};
_.G.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}},"data.body":{id:"body",mapping:{transcriptBodyRenderer:"ytd-transcript-body-renderer"}},"data.content":{id:"content",mapping:{transcriptSearchPanelRenderer:"ytd-transcript-search-panel-renderer"}}}};
_.G.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.G.attached=function(){this.updatePlayerListening()};
_.G.detached=function(){this.updatePlayerListening()};
_.G.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.G.startPlayerListening=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1)return(H=_.Kf())?K.yield(H.getPlayerPromise(),2):K.return();d.player=K.yieldResult;d.playerPollJobId=_.Xp.addLowPriorityJob(function(){d.getPlayerVideoProgress()},1E3);
d.player.addEventListener("onCueRangeEnter",function(c){d.onCueRangeEnter(c)});
d.player.addEventListener("onCueRangeExit",function(c){d.onCueRangeExit(c)});
d.player.addEventListener("onStateChange",function(c){d.onPlayerStateChange(c)});
d.player.addEventListener("SEEK_TO",function(c){d.onPlayerSeek(c)});
_.VE(K)})};
_.G.getPlayerVideoProgress=function(){var d=this;_.Xp.cancelJob(this.playerPollJobId);if(this.player){var H=this.player.getCurrentTime();_.oF(this.hostElement,"yt-player-time-changed",[H])}this.playerPollJobId=_.Xp.addLowPriorityJob(function(){d.getPlayerVideoProgress()},1E3)};
_.G.stopPlayerListening=function(){this.player=null;_.Xp.cancelJob(this.playerPollJobId)};
_.G.onPlayerStateChange=function(d){d===2&&this.removePendingCue()};
_.G.onPlayerSeek=function(d){var H;if(H=this.pendingReplayCueId)H=this.pendingReplayCueId,H=d===(_.h("web_transcript_cue_id_killswitch")?Number(H):Number(H.split("_")[1]));H||this.removePendingCue()};
_.G.onCueRangeEnter=function(d){S3w(d)&&(this.pendingReplayCueId=d)};
_.G.onCueRangeExit=function(d){S3w(d)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.G.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.G.onYtTranscriptPlayerSeek=function(d){this.player&&this.player.seekTo(d,!0)};
_.G.onYtTranscriptPlayerReplay=function(d,H){this.player&&(this.player.addCueRange(OXO(d),d,H),this.player.seekTo(d,!0),this.player.playVideo())};
_.G.onYtTranscriptPlayerEdit=function(d,H){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(OXO(d),d,H),this.player.seekTo(d,!0))};
Na.prototype.onLoadReloadContinuation=Na.prototype.onLoadReloadContinuation;Na.prototype.panelContentVisibleChanged=Na.prototype.panelContentVisibleChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Na.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Na.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Na.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Na.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Na.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Na.prototype,"panelContentVisible",void 0);_.t([_.CK("panelContentVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Na.prototype,"panelContentVisibleChanged",null);
_.t([_.nK("yt-load-reload-continuation"),_.O("design:type",Function),_.O("design:paramtypes",[Object]),_.O("design:returntype")],Na.prototype,"onLoadReloadContinuation",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],Na);
_.T(Na,"ytd-transcript-renderer",function(){if(l$E!==void 0)return l$E;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" class="style-scope ytd-transcript-renderer"></div>\n<div id="content" class="style-scope ytd-transcript-renderer"></div>\n<div id="footer" class="style-scope ytd-transcript-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return l$E=d},{mode:1});var RcL;var VuC;var D2=function(){return _.B.apply(this,arguments)||this};
_.m(D2,_.B);D2.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.GT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.l5(this.hostElement,[this.data.clickCommand],this.hostElement))};
D2.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.DN)()+_.TB)+"px)"};
D2.prototype.updateShouldHideFromBinding=function(d){this.shouldHide=d.detail.value};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],D2.prototype,"rendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],D2.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],D2.prototype,"shouldHide",void 0);_.t([_.Z({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],D2);
_.T(D2,"ytd-ad-engagement-panel-banner-renderer",function(){if(VuC!==void 0)return VuC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-engagement-panel-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[computeHideMediaQuery()]]" query-matches="[[shouldHide]]" on-query-matches-changed="updateShouldHideFromBinding" class="style-scope ytd-ad-engagement-panel-banner-renderer">\n</iron-media-query>\n<a class="yt-simple-endpoint banner-click-container style-scope ytd-ad-engagement-panel-banner-renderer" hidden="[[shouldHide]]" on-tap="onTap">\n  <yt-img-shadow class="banner-image style-scope ytd-ad-engagement-panel-banner-renderer" fit="" thumbnail="[[data.bannerImage]]">\n  </yt-img-shadow>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return VuC=d},{mode:_.qk("kevlar_poly_si_batch_j070")?1:2});var U6K;var f2=function(){var d=_.B.apply(this,arguments)||this;d.modernPanels=_.h("kevlar_watch_modern_panels");d.buttonUpdate=_.h("web_modern_buttons");d.adsSemanticText=_.h("enable_ads_web_ep_buenos_aires_and_padding_fix");return d};
_.m(f2,_.B);f2.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.t([_.r(),_.O("design:type",Object)],f2.prototype,"data",void 0);_.t([_.r({computed:"computeHideDefaultAdBadge(data)"}),_.O("design:type",Boolean)],f2.prototype,"hideDefaultAdBadge",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],f2.prototype,"modernPanels",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],f2.prototype,"buttonUpdate",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],f2.prototype,"adsSemanticText",void 0);
_.t([_.Z({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],f2);
_.T(f2,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(U6K!==void 0)return U6K;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-ad-subtitle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="ad-badge" badges="[[data.badges]]" hidden="[[hideDefaultAdBadge]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-badge-supported-renderer>\n<ytd-ad-hover-text-button-renderer id="ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-ad-hover-text-button-renderer>\n<yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return U6K=d},{mode:1});var hcC;var Ae=function(){var d=_.B.apply(this,arguments)||this;d.darkerPanels=_.h("web_watch_darker_panels");d.enableSqueezebackPanels=_.h("web_shorts_enable_squeezeback_panels");d.enableAnchoredPanel=_.h("desktop_shorts_v2_anchored_panel");d.modernPanels=_.h("kevlar_watch_modern_panels");d.headerClickListener=function(H){d.onHeaderClick(H)};
d.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return d};
_.m(Ae,_.B);_.G=Ae.prototype;_.G.computeAdsInfoButton=function(){if(_.h("web_modern_buttons")){var d,H;return(H=_.M((d=this.data)==null?void 0:d.subtitleComplex,FbC))==null?void 0:H.adInfoRenderer}};
_.G.updateHeaderClickListener=function(){var d,H,K;((d=this.data)==null?0:d.navigationEndpoint)||((H=this.data)==null?0:H.onClickCommand)||_.M((K=this.data)==null?void 0:K.visibilityButton,_.Qi)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.G.configureRendererStamper=function(){return{"data.visibilityButton":{id:"visibility-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer",sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.subtitleComplex":{id:"subtitle-complex",mapping:{engagementPanelAdSubtitleRenderer:"ytd-engagement-panel-ad-subtitle-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
adsInfoButton:{id:"ads-info-button",mapping:{adHoverTextButtonRenderer:{component:"ytd-ad-hover-text-button-renderer",params:{modernUpdate:!0}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.banner":{id:"banner",mapping:{adEngagementPanelBannerRenderer:"ytd-ad-engagement-panel-banner-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"},reuseComponents:!1},"data.subheader":{id:"subheader",
mapping:{chipBarViewModel:{component:"chip-bar-view-model",params:{disableDeselection:!0}}}}}};
_.G.collapsedChanged=function(){var d;(d=this.data)!=null&&d.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.h("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.G.focus=function(d){var H=this;this.titleElement&&_.Xp.addJob(function(){_.D7(H.titleElement,d)},0,500)};
_.G.computeTitleAriaLabel=function(d){var H=[];if(d.title){var K,c;H.push(this.ytRendererBehavior.getSimpleString(d.title)||((K=d.title.accessibility)==null?void 0:(c=K.accessibilityData)==null?void 0:c.label))}d.contextualInfo&&H.push(this.ytRendererBehavior.getSimpleString(d.contextualInfo));return H.join(" ")};
_.G.onHeaderClick=function(d){this.shouldTriggerHeaderClick(d)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.GT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.l5(this.hostElement,[this.data.onClickCommand],this.hostElement)):(d=this.getVisibilityToggleButton())&&d.click())};
_.G.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var d=_.M(this.data.visibilityButton,_.Tz)||_.M(this.data.visibilityButton,_.Qi);d&&this.ytRendererBehavior.logExplicitClick(d)}};
_.G.getVisibilityToggleButton=function(){var d=_.Gn(this.hostElement).querySelector("#visibility-button").firstElementChild;return(d==null?void 0:d.is)==="ytd-toggle-button-renderer"?d:null};
_.G.shouldTriggerHeaderClick=function(d){return!_.vg(_.jh(d),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.G.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(d){d=_.M(d,_.uOO);this.targetId&&(d==null?void 0:d.targetId)===this.targetId&&(d=d.navigationButton)&&this.set("data.navigationButton",d)};
_.H3.Object.defineProperties(Ae.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var d;return!!(((d=this.entity)==null?0:d.isActionButtonHidden)||this.hideActionButton)}}});
Ae.prototype.collapsedChanged=Ae.prototype.collapsedChanged;Ae.prototype.updateHeaderClickListener=Ae.prototype.updateHeaderClickListener;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Ae.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ae.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Ae.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.to),_.O("design:type",Object)],Ae.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ae.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],Ae.prototype,"targetId",void 0);_.t([_.r(),_.O("design:type",Boolean)],Ae.prototype,"collapsed",void 0);_.t([_.r(),_.O("design:type",Boolean)],Ae.prototype,"hideActionButton",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ae.prototype,"shortsPanel",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ae.prototype,"liveChatEngagementPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ae.prototype,"learningChatEngagementPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ae.prototype,"darkerPanels",void 0);_.t([_.VP("#title"),_.O("design:type",HTMLElement)],Ae.prototype,"titleElement",void 0);_.t([_.VP("#header"),_.O("design:type",HTMLElement)],Ae.prototype,"headerElement",void 0);
_.t([_.r({computed:"computeAdsInfoButton(data)"}),_.O("design:type",Object)],Ae.prototype,"adsInfoButton",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ae.prototype,"enableSqueezebackPanels",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ae.prototype,"enableAnchoredPanel",void 0);_.t([_.r({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(d,H){return _.xL(d.entities,"engagementPanelTitleHeaderEntity",H)}}),
_.O("design:type",Object)],Ae.prototype,"entity",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ae.prototype,"modernPanels",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("targetId"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ae.prototype,"adsSemanticText",null);_.t([_.CK("data","data.navigationEndpoint","data.onClickCommand"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ae.prototype,"updateHeaderClickListener",null);
_.t([_.Mr("collapsed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ae.prototype,"collapsedChanged",null);_.t([_.I("entity","hideActionButton"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ae.prototype,"isActionButtonHidden",null);_.t([_.Z({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],Ae);
_.T(Ae,"ytd-engagement-panel-title-header-renderer",function(){if(hcC!==void 0)return hcC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return hcC=d},{mode:1});var LVa;var jY=function(){return _.B.apply(this,arguments)||this};
_.m(jY,_.B);jY.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],jY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],jY.prototype,"data",void 0);_.t([_.Z({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],jY);
_.T(jY,"ytd-macro-markers-info-item-renderer",function(){if(LVa!==void 0)return LVa;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-info-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.infoText]]" class="style-scope ytd-macro-markers-info-item-renderer"></yt-formatted-string>\n<div id="menu" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n<div id="edit" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return LVa=d},{mode:1});var MuK;var PkK=function(d,H,K,c,p,g){_.h_.call(this);var a=this;this.JSC$22654_containerElement=d;this.hostElement=H;this.supportedSyncItems=K;this.syncEntityKey=c;this.options=p;this.renderLazyListItems=g;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;m6H(this);wfO(this);this.JSC$22654_scrollAnimation=new _.b6(function(e){d.scrollTop=e});
_.q_(this,this.JSC$22654_scrollAnimation);this.addOnDisposeCallback(function(){a.exitBrowsingMode(!1);a.activeItem&&a.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.m(PkK,_.h_);var m6H=function(d){var H=_.LU(_.Kj().resolve(_.t$),function(K){return K.entities.markersEngagementPanelSyncEntity||{}},function(K,c){var p;
K[d.syncEntityKey]!==c[d.syncEntityKey]&&((p=K[d.syncEntityKey])==null?void 0:p.activeItemIndex)!==void 0&&d.updatePanelActiveItem(K[d.syncEntityKey].activeItemIndex)});
d.unsubscribeFromTimedMarkersListSyncEntity=H;d.addOnDisposeCallback(H);uFO(d)},uFO=function(d){var H=_.Kj().resolve(_.t$);
H=_.Jpl(H.getState(),d.syncEntityKey);(H==null?void 0:H.activeItemIndex)!==void 0&&(H=d.getItemByIndex(H.activeItemIndex))&&d.setActiveItem(H)},wfO=function(d){var H=new _.NV(d.onScroll,50,d);
_.q_(d,H);var K=function(){H.fire()};
d.JSC$22654_containerElement.addEventListener("scroll",K);d.addOnDisposeCallback(function(){d.JSC$22654_containerElement.removeEventListener("scroll",K)})};
_.G=PkK.prototype;
_.G.updatePanelActiveItem=function(d){var H=this.getItemByIndex(d);if(H){if(this.setActiveItem(H),this.contentVisible)if(this.browsingMode){var K;((K=this.options)==null?void 0:K.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(d=I$H(this),H.offsetTop<this.JSC$22654_containerElement.clientHeight+this.JSC$22654_containerElement.scrollTop&&d&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));rAC(this)}else this.scrollToItem(H)}else _.Jf(new _.m1("Could not find "+this.supportedSyncItems+
" sync child to set active.",d,this.JSC$22654_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.G.getItemByIndex=function(d){var H;(H=this.renderLazyListItems)==null||H.call(this,d);H=this.JSC$22654_containerElement.querySelectorAll(this.supportedSyncItems);if(H.length>d)return H[d]};
_.G.setActiveItem=function(d){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));d.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=d};
_.G.scrollToItem=function(d){d=this.getScrollPositionForItem(d);this.JSC$22654_containerElement.scrollTop!==d&&this.JSC$22654_scrollAnimation.start(this.JSC$22654_containerElement.scrollTop,d,300)};
_.G.getScrollPositionForItem=function(d){if(this.JSC$22654_containerElement.querySelectorAll(this.supportedSyncItems)[0]===d)return 0;var H,K=((H=this.options)==null?0:H.percentOffset)?this.JSC$22654_containerElement.clientHeight*this.options.percentOffset:0;d=_.JA(d).y+this.JSC$22654_containerElement.scrollTop-(_.JA(this.JSC$22654_containerElement).y+K);return Math.max(0,Math.min(d,this.JSC$22654_containerElement.scrollHeight-this.JSC$22654_containerElement.offsetHeight))};
_.G.onScroll=function(){this.activeItemBelowSyncPosition=I$H(this);if(this.activeItem&&!this.JSC$22654_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22654_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var d;switch((d=this.options)==null?void 0:d.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!WVS(this));rAC(this);break;default:this.enterBrowsingMode(!0)}}};
_.G.enterBrowsingMode=function(d){var H=this,K,c;return _.l(function(p){if(p.nextAddress==1){if(H.browsingMode)return p.return();H.browsingMode=!0;d&&H.hostElement.classList.add("browsing-mode");H.playerExitBrowsingModeListener=function(){H.exitBrowsingMode(!1)};
return p.yield(_.eA(),2)}K=p.yieldResult;(c=K)==null||c.addEventListener("SEEK_TO",H.playerExitBrowsingModeListener);_.VE(p)})};
_.G.exitBrowsingMode=function(d){d=d===void 0?!0:d;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),d&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.G.removePlayerSeekListener=function(){var d=this,H,K;return _.l(function(c){if(c.nextAddress==1)return d.playerExitBrowsingModeListener?c.yield(_.eA(),3):c.jumpTo(0);H=c.yieldResult;(K=H)==null||K.removeEventListener("SEEK_TO",d.playerExitBrowsingModeListener);d.playerExitBrowsingModeListener=void 0;_.VE(c)})};
var rAC=function(d){var H;((H=d.options)==null?void 0:H.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(WVS(d)?d.hostElement.classList.remove("browsing-mode"):d.activeItem&&d.hostElement.classList.add("browsing-mode"))},I$H=function(d){if(!d.activeItem)return!1;
var H,K=((H=d.options)==null?0:H.percentOffset)?d.JSC$22654_containerElement.clientHeight*d.options.percentOffset:0;return d.activeItem.offsetTop>=d.JSC$22654_containerElement.scrollTop+K},WVS=function(d){if(!d.activeItem)return!1;
var H=d.activeItem.offsetTop+14<=d.JSC$22654_containerElement.scrollTop+d.JSC$22654_containerElement.clientHeight;return d.activeItem.offsetTop+d.activeItem.clientHeight-14>=d.JSC$22654_containerElement.scrollTop&&H};
PkK.prototype.panelContentVisibleChanged=function(d){(this.contentVisible=d)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var Bsc=function(d,H){d.syncEntityKey=H;var K;(K=d.unsubscribeFromTimedMarkersListSyncEntity)==null||K.call(d);m6H(d)},zc_=function(d,H){d.options=H};var va=function(){var d=_.B.apply(this,arguments)||this;d.browsingMode=!1;d.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return d};
_.m(va,_.B);_.G=va.prototype;_.G.activeItemChanged=function(){if(!_.h("synced_panel_scrolling_controller")){var d;((d=this.syncEntity)==null?void 0:d.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.G.created=function(){var d=this;_.h("synced_panel_scrolling_controller")||(this.JSC$22658_scrollAnimation=new _.b6(function(H){d.contents.scrollTop=H}),this.boundExitBrowsingMode=function(){d.exitBrowsingMode(!1)})};
_.G.detached=function(){if(_.h("synced_panel_scrolling_controller")){var d;(d=this.scrollController)==null||d.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.G.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"},params:{seekWithAnimationOnClick:!0}},macroMarkersInfoItemRenderer:"ytd-macro-markers-info-item-renderer",itemSectionRenderer:"ytd-item-section-renderer"}}}};
_.G.dataChanged=function(){var d=this;_.h("synced_panel_scrolling_controller")?_.vV(this,function(){if(d.scrollController){var H;(H=d.scrollController)==null||H.exitBrowsingMode(!1);var K,c,p;(c=d.scrollController)==null||Bsc(c,(p=(K=d.data)==null?void 0:K.syncModelEntityKey)!=null?p:"default-macro-markers-list-renderer-entity-key");var g,a,e;(e=d.scrollController)==null||zc_(e,{percentOffset:(g=d.data)==null?void 0:g.selectedItemAlignmentPercentOffset,floatingPillType:(a=d.data)==null?void 0:a.floatingPillType})}else{var k,
C,R,V;d.scrollController=new PkK(d.contents,d.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(V=(k=d.data)==null?void 0:k.syncModelEntityKey)!=null?V:"default-macro-markers-list-renderer-entity-key",{percentOffset:(C=d.data)==null?void 0:C.selectedItemAlignmentPercentOffset,floatingPillType:(R=d.data)==null?void 0:R.floatingPillType},function(U){d.renderLazyListItems(U)})}d.scrollController.panelContentVisibleChanged(!!d.panelContentVisible)}):this.exitBrowsingMode()};
_.G.computeButtonShape=function(){var d=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){d.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.G.computeSyncEnabled=function(d){return!(d==null||!d.syncButtonLabel)};
_.G.renderLazyListItems=function(d){for(var H=this.contents.children,K=0,c=0;c<H.length;c++){var p=void 0;(p=H[c].ytLazyListBehavior)==null||p.fillRemainingListItems();var g=void 0,a=void 0;p=_.M((g=this.data)==null?void 0:(a=g.contents)==null?void 0:a[c],_.F_S);a=g=void 0;if((g=p)==null?0:(a=g.contents)==null?0:a.length)K+=p.contents.length;if(K>=d)break}};
_.G.getItemByIndex=function(d){this.renderLazyListItems(d);var H=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(H.length>d)return H[d]};
_.G.setActiveItem=function(d){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);d.active!==void 0&&(d.active=!0);this.currentActiveItem=d};
_.G.handleSetActivePanelItemAction=function(d){if((d=_.M(d,rZa))&&this.panelTargetId===d.panelTargetId){d=d.itemIndex;if(_.h("synced_panel_scrolling_controller")){var H,K;var c=(K=(H=this.data)==null?void 0:H.syncModelEntityKey)!=null?K:"default-macro-markers-list-renderer-entity-key"}else{var p;c=(p=this.data)==null?void 0:p.syncModelEntityKey}if(c){var g;((g=this.syncEntity)==null?void 0:g.activeItemIndex)!==d&&this.ytdReduxBehavior.dispatch(_.PI("markersEngagementPanelSyncEntity",c,{key:c,activeItemIndex:d}))}else this.updatePanelActiveItem(d)}};
_.G.updatePanelActiveItem=function(d){var H=this.getItemByIndex(d);H?(this.setActiveItem(H),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(H)):_.Jf(new _.m1("Could not find ytd-macro-markers-list-renderer sync child to set active.",d,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.G.scrollToItem=function(d){d=this.getScrollPositionForItem(d);this.contents.scrollTop!==d&&this.JSC$22658_scrollAnimation.start(this.contents.scrollTop,d,300)};
_.G.getScrollPositionForItem=function(d){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===d)return 0;d=_.JA(d).y+this.contents.scrollTop-_.JA(this.contents).y-this.getStickyHeaderHeight(d);return Math.min(d,this.contents.scrollHeight-this.contents.offsetHeight)};
_.G.getStickyHeaderHeight=function(d){if(d.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var H,K,c;return(c=(H=d.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(K=H.header)==null?void 0:K.offsetHeight)!=null?c:0}return 0};
_.G.onScroll=function(){_.h("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$22658_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.G.enterBrowsingMode=function(){var d=this;return _.l(function(H){if(H.nextAddress==1){if(d.browsingMode)return H.return();d.browsingMode=!0;return H.yield(_.cI().getPlayerPromise(),2)}d.player=H.yieldResult;d.player.addEventListener("SEEK_TO",d.boundExitBrowsingMode);_.VE(H)})};
_.G.exitBrowsingMode=function(d){this.browsingMode&&(this.browsingMode=!1,(d===void 0||d)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.G.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.G.onSyncClick=function(){if(_.h("synced_panel_scrolling_controller")){var d;(d=this.scrollController)==null||d.exitBrowsingMode()}else this.exitBrowsingMode()};
_.G.panelContentVisibleChanged=function(){if(_.h("synced_panel_scrolling_controller")){var d;(d=this.scrollController)==null||d.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
va.prototype.panelContentVisibleChanged=va.prototype.panelContentVisibleChanged;va.prototype.dataChanged=va.prototype.dataChanged;va.prototype.activeItemChanged=va.prototype.activeItemChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],va.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],va.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],va.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],va.prototype,"data",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],va.prototype,"useCustomColors",void 0);_.t([_.r({computed:"computeSyncEnabled(data)"}),_.O("design:type",Boolean)],va.prototype,"syncEnabled",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],va.prototype,"panelTargetId",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],va.prototype,"panelContentVisible",void 0);_.t([_.VP("#contents"),_.O("design:type",HTMLElement)],va.prototype,"contents",void 0);_.t([_.VP("#sync-container"),_.O("design:type",HTMLElement)],va.prototype,"syncContainer",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],va.prototype,"browsingMode",void 0);
_.t([_.r({selectorArgs:["data.syncModelEntityKey"],selector:_.Jpl}),_.O("design:type",Object)],va.prototype,"syncEntity",void 0);_.t([_.CK("syncEntity.activeItemIndex"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],va.prototype,"activeItemChanged",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],va.prototype,"dataChanged",null);
_.t([_.CK("panelContentVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],va.prototype,"panelContentVisibleChanged",null);_.t([_.Z({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],va);
_.T(va,"ytd-macro-markers-list-renderer",function(){if(MuK!==void 0)return MuK;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return MuK=d},{mode:1});var Xfr;var dd=function(){return _.B.apply(this,arguments)||this};
_.m(dd,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],dd.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],dd.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],dd.prototype,"data",void 0);_.t([_.Z({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],dd);
_.T(dd,"ytd-error-corrections-section-item-renderer",function(){if(Xfr!==void 0)return Xfr;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="channel-thumbnail" height="36" thumbnail="[[data.thumbnail]]" width="36" class="style-scope ytd-error-corrections-section-item-renderer">\n</yt-img-shadow>\n<a id="correction-timestamp" class="yt-simple-endpoint style-scope ytd-error-corrections-section-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick">\n  <yt-formatted-string text="[[data.timeLabel]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</a>\n<div id="correction-text" class="style-scope ytd-error-corrections-section-item-renderer">\n  <yt-formatted-string text="[[data.correctionText]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Xfr=d},{mode:1});var JAH;var HS=function(){return _.B.apply(this,arguments)||this};
_.m(HS,_.B);HS.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],HS.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],HS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],HS.prototype,"data",void 0);_.t([_.Z({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],HS);
_.T(HS,"ytd-error-corrections-section-renderer",function(){if(JAH!==void 0)return JAH;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-error-corrections-section-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-error-corrections-section-renderer"></yt-formatted-string>\n  <div id="flex" class="style-scope ytd-error-corrections-section-renderer"></div>\n  <ytd-button-renderer id="view_all_button" data="[[data.viewAllButton.buttonRenderer]]" class="style-scope ytd-error-corrections-section-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="items" class="style-scope ytd-error-corrections-section-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return JAH=d},{mode:1});var srO;var $S=function(){return _.B.apply(this,arguments)||this};
_.m($S,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],$S.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],$S.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],$S.prototype,"data",void 0);_.t([_.Z({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],$S);
_.T($S,"ytd-topic-link-renderer",function(){if(srO!==void 0)return srO;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="topic-link-container" class="yt-simple-endpoint style-scope ytd-topic-link-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnailDetails]]" width="32" class="style-scope ytd-topic-link-renderer">\n    </yt-img-shadow>\n    <div id="title" class="style-scope ytd-topic-link-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="call-to-action-icon" hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-topic-link-renderer">\n    </yt-icon>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return srO=d},{mode:1});var FVE;var KP=function(){var d=_.B.apply(this,arguments)||this;d.modern=_.h("kevlar_modern_sd_v2");d.modernLockupV2=_.h("modernize_structured_description_playlist_lockups_v2");d.modernTypography=_.h("web_modern_typography");return d};
_.m(KP,_.B);KP.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],KP.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],KP.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],KP.prototype,"modern",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],KP.prototype,"modernLockupV2",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],KP.prototype,"modernTypography",void 0);_.t([_.Z({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],KP);
_.T(KP,"ytd-video-description-course-section-renderer",function(){if(FVE!==void 0)return FVE;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-course-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-course-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-course-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-course-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-course-section-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return FVE=d},{mode:1});var ZBB;var cS=function(){var d=_.B.apply(this,arguments)||this;d.modern=_.h("kevlar_modern_sd_v2");d.modernTypography=_.h("web_modern_typography");return d};
_.m(cS,_.B);cS.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],cS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],cS.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],cS.prototype,"modern",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],cS.prototype,"modernTypography",void 0);
_.t([_.Z({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],cS);
_.T(cS,"ytd-video-description-files-section-renderer",function(){if(ZBB!==void 0)return ZBB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-files-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-files-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n  <div id="flex" class="style-scope ytd-video-description-files-section-renderer"></div>\n  <div id="view-all-button" class="style-scope ytd-video-description-files-section-renderer"></div>\n</div>\n<div id="description" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionDescription)]]</div>\n<div id="file-buttons" class="style-scope ytd-video-description-files-section-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ZBB=d},{mode:1});var Tsc;var pP=function(){return _.B.apply(this,arguments)||this};
_.m(pP,_.B);pP.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],pP.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],pP.prototype,"data",void 0);_.t([_.Z({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],pP);
_.T(pP,"ytd-video-description-gaming-section-renderer",function(){if(Tsc!==void 0)return Tsc;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-gaming-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-gaming-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-gaming-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Tsc=d},{mode:1});var Qra;var gd=function(){var d=_.B.apply(this,arguments)||this;d.isExpanded=!1;return d};
_.m(gd,_.B);gd.prototype.computeHasDefaultMetadataEndpoint=function(d){var H;d=d==null?void 0:(H=d.defaultMetadata)==null?void 0:H.runs;return!(!d||d.length!==1||!d[0].navigationEndpoint)};
gd.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.H3.Object.defineProperties(gd.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],gd.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],gd.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],gd.prototype,"isExpanded",void 0);_.t([_.r({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],gd.prototype,"hasDefaultMetadataEndpoint",void 0);
_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],gd.prototype,"isExpandable",null);_.t([_.I("data","isExpandable","isExpanded"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],gd.prototype,"showExpandedMetadata",null);_.t([_.Z({is:"ytd-info-row-renderer",disableElementRegistration:!0})],gd);
_.T(gd,"ytd-info-row-renderer",function(){if(Qra!==void 0)return Qra;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-row-container" on-click="onRowExpand" class="style-scope ytd-info-row-renderer">\n  <div id="info-row-header" class="style-scope ytd-info-row-renderer">\n    <div id="title" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="default-metadata-section" hidden="[[isExpanded]]" class="style-scope ytd-info-row-renderer">\n      <yt-formatted-string id="default-metadata" bold-links="" text="[[data.defaultMetadata]]" class="style-scope ytd-info-row-renderer">\n      </yt-formatted-string>\n      <span id="truncation-text" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.truncationText)]]</span>\n      <yt-icon id="icon" class="expand-icon style-scope ytd-info-row-renderer" hidden="[[!data.expandIcon.iconType]]" icon="[[data.expandIcon.iconType]]">\n      </yt-icon>\n    </div>\n  </div>\n  <yt-formatted-string id="expanded-metadata" hidden="[[!showExpandedMetadata]]" text="[[data.expandedMetadata]]" class="style-scope ytd-info-row-renderer">\n  </yt-formatted-string>\n</div>\n\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Qra=d},{mode:1});var tuw;var Gk=function(){var d=_.B.apply(this,arguments)||this;d.currentIndex=0;d.supportComponentResize=!0;d.modern=_.h("kevlar_modern_sd_v2");d.JSC$22684_lastScrollContainerWidth=NaN;return d};
_.m(Gk,_.B);_.G=Gk.prototype;
_.G.configureRendererStamper=function(){return{videoLockups:{id:"items",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",params:{forceOneLineTitle:!0,musicMetadataVideoLockup:!0,hideThumbnail:!0}}},reuseComponents:!1},infoRows:{id:"info-rows",mapping:{infoRowRenderer:"ytd-info-row-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.G.getItemsPath=function(){return"videoLockups"};
_.G.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.G.onIronResize=function(){this.updateVideoLockupStyles()};
_.G.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.G.updateVideoLockupStyles=function(){var d;this.JSC$22684_scrollContainer!==void 0&&(d=this.videoLockups)!=null&&d.length&&(d=this.JSC$22684_scrollContainer.clientWidth,d!==this.JSC$22684_lastScrollContainerWidth&&(this.JSC$22684_lastScrollContainerWidth=d,_.eO(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(d*.8,415)+"px"}),_.GT(this.hostElement,"iron-resize")))};
_.H3.Object.defineProperties(Gk.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var d=[],H;if((H=this.data)==null||!H.carouselLockups)return d;H=_.q(this.data.carouselLockups);for(var K=H.next();!K.done;K=H.next()){K=K.value;var c=void 0;((c=_.M(K,peE))==null?0:c.videoLockup)&&d.push(_.M(K,peE).videoLockup)}return d}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.videoLockups)==null||!d.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var d=[],H;if((H=this.data)==null||!H.carouselLockups)return d;var K;return(K=_.M(this.data.carouselLockups[this.scrollCount],peE))==null?void 0:K.infoRows}}});
Gk.prototype.dataChanged=Gk.prototype.dataChanged;Gk.prototype.onIronResize=Gk.prototype.onIronResize;Gk.prototype.hiddenChanged=Gk.prototype.hiddenChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Gk.prototype,"componentBehavior",void 0);_.t([_.u(_.oL.YtdHorizontalListBehavior),_.O("design:type",Object)],Gk.prototype,"ytdHorizontalListBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Gk.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Gk.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Gk.prototype,"inlineStructuredDescription",void 0);_.t([_.r({value:2}),_.O("design:type",Number)],Gk.prototype,"initialCount",void 0);_.t([_.r(),_.O("design:type",Object)],Gk.prototype,"currentIndex",void 0);
_.t([_.r(),_.O("design:type",Number)],Gk.prototype,"scrollCount",void 0);_.t([_.r(),_.O("design:type",Object)],Gk.prototype,"supportComponentResize",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Gk.prototype,"contentHidden",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Gk.prototype,"modern",void 0);_.t([_.VP("#scroll-container"),_.O("design:type",HTMLDivElement)],Gk.prototype,"JSC$22684_scrollContainer",void 0);
_.t([_.CK("contentHidden"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Gk.prototype,"hiddenChanged",null);_.t([_.I("data"),_.O("design:type",Array),_.O("design:paramtypes",[])],Gk.prototype,"videoLockups",null);_.t([_.I("videoLockups"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Gk.prototype,"hasVideoLockups",null);
_.t([_.nK("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Gk.prototype,"onIronResize",null);_.t([_.I("data","scrollCount"),_.O("design:type",Object),_.O("design:paramtypes",[])],Gk.prototype,"infoRows",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Gk.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Gk);
_.T(Gk,"ytd-video-description-music-section-renderer",function(){if(tuw!==void 0)return tuw;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-music-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-music-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-music-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="video-lockups" hidden="[[!hasVideoLockups]]" class="style-scope ytd-video-description-music-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="left-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atStart]]"></div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-music-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-music-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="right-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atEnd]]"></div>\n  </div>\n</div>\n<div id="info-rows" class="style-scope ytd-video-description-music-section-renderer"></div>\n<a id="premium-upsell-link" class="yt-simple-endpoint style-scope ytd-video-description-music-section-renderer" aria-label$="[[data.premiumUpsellLink.title.accessibility.accessibilityData.label]]" hidden="[[!data.premiumUpsellLink]]" href$="[[computeOptionalHref_(data.premiumUpsellLink.navigationEndpoint)]]" title$="[[getSimpleString(data.premiumUpsellLink.title)]]" data="[[data.premiumUpsellLink.navigationEndpoint]]">\n  <yt-formatted-string id="premium-upsell-text" text="[[data.premiumUpsellLink]]" class="style-scope ytd-video-description-music-section-renderer">\n  </yt-formatted-string>\n</a>\n<div id="topic-link" class="style-scope ytd-video-description-music-section-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return tuw=d},{mode:_.qk("kevlar_poly_si_batch_j081")?1:2});var YYS;var oR=function(){var d=_.B.apply(this,arguments)||this;d.modern=_.h("kevlar_modern_sd_v2");d.modernTypography=_.h("web_modern_typography");return d};
_.m(oR,_.B);oR.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],oR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.t([_.r({}),_.O("design:type",Object)],oR.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],oR.prototype,"modern",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],oR.prototype,"modernTypography",void 0);
_.t([_.Z({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],oR);
_.T(oR,"ytd-video-description-transcript-section-renderer",function(){if(YYS!==void 0)return YYS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-transcript-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="sub-header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <p id="sub-header-text" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.subHeaderText)]]</p>\n</div>\n<div id="button-container" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="primary-button" class="style-scope ytd-video-description-transcript-section-renderer"></div>\n</div>\n\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return YYS=d},{mode:1});var OB_;_.iV(_.H1(function(d){var H=_.Uj(_.w0L,function(){return d.data().firstProviderLinkStatusEntityKey}),K=_.Uj(_.w0L,function(){return d.data().secondProviderLinkStatusEntityKey}),c=function(){var p,g;
return((p=H())==null?void 0:p.linked)||((g=K())==null?void 0:g.linked)};
return _.x("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.x(_.j$,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return d.data().sectionTitle}}),_.x(_.j$,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return c()?d.data().connectedMessage:d.data().notConnectedMessage}}),_.x(_.n,{cond:c,
then:function(){return _.x(_.wB,{data:function(){return d.data().connectedButton}},{buttonViewModel:function(p){return _.x(_.xk,{data:p.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.x(_.n,{cond:function(){return!c()},
then:function(){return _.x(_.wB,{data:function(){return d.data().notConnectedButton}},{buttonViewModel:function(p){return _.x(_.xk,{data:p.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"hk"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.dl}});_.iV(_.H1(function(d){var H=d.data;return _.x("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.x("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.x(_.j$,{text:function(){return H().sectionTitle}})),_.x("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.x(_.j$,{text:function(){return H().bodyHeader}})),_.x("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.x(_.j$,{text:function(){return H().bodyText}})),_.x(_.n,
{cond:function(){return H().attributionText},
then:function(){return _.x("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.x(_.j$,{text:function(){return H().attributionText}}))}}))},"ik"),"how-this-was-made-section-view-model",{props:{data:_.dl}});_.iV(_.H1(function(d){return _.x("yt-video-description-youchat-section-view-model",{class:_.xM("ytVideoDescriptionYouchatSectionViewModelHost")},_.x("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.x(_.j$,{text:function(){return d.data().sectionTitle}})),_.x("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.x(_.j$,{text:function(){return d.data().subHeaderText}})),_.x("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.x(_.xk,{data:function(){return _.M(d.data().primaryButton,
_.OV)}})))},"jk"),"yt-video-description-youchat-section-view-model",{props:{data:_.dl}});var q7=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return d};
_.m(q7,_.B);_.G=q7.prototype;
_.G.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{videoDescriptionHeaderRenderer:{component:"ytd-video-description-header-renderer",properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[watchWhileSdp]]",engagementPanel:"[[engagementPanel]]"}},expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{panelContentVisible:"[[panelContentVisible]]",hasDescriptionOnly:"[[hasDescriptionOnly]]",engagementPanel:"[[engagementPanel]]",
shortsPanel:"[[shortsPanel]]"}},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{engagementPanelContent:!0}},merchandiseShelfRenderer:"ytd-merch-shelf-renderer",videoDescriptionCourseSectionRenderer:"ytd-video-description-course-section-renderer",videoDescriptionFilesSectionRenderer:"ytd-video-description-files-section-renderer",
videoDescriptionTranscriptSectionRenderer:"ytd-video-description-transcript-section-renderer",videoDescriptionFantasySectionViewModel:"ytw-video-description-fantasy-section-view-model",videoDescriptionGamingSectionRenderer:"ytd-video-description-gaming-section-renderer",videoDescriptionInfocardsSectionRenderer:{component:"ytd-video-description-infocards-section-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoDescriptionMusicSectionRenderer:{component:"ytd-video-description-music-section-renderer",
properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},errorCorrectionsSectionRenderer:"ytd-error-corrections-section-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},shelfRenderer:"ytd-shelf-renderer",courseProgressViewModel:"yt-course-progress-view-model",howThisWasMadeSectionViewModel:"how-this-was-made-section-view-model",videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoDescriptionYouchatSectionViewModel:"yt-video-description-youchat-section-view-model"}},
videoSummary:{id:"video-summary",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},merchShelf:{id:"merch-shelf",mapping:{merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",params:{watchMetadataRefresh:!0,inStructuredDescription:!0}}}}}};
_.G.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.G.dataChanged=function(){var d,H;this.hasDescriptionOnly=!(((d=this.data)==null?void 0:(H=d.items)==null?void 0:H.length)!==1||!_.M(this.data.items[0],FP))};
_.G.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.G.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.G.autoFocusDescription=function(){var d;((d=_.Kj().resolve(_.$p(_.qZ)))==null?0:d.isKeyBoardInUse())&&this.description&&_.f4(this.description)};
_.G.resize=function(){if(_.h("kevlar_disable_sd_resize"))this.JSC$22693_cardList&&_.GT(this.JSC$22693_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.GT(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.GT(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.G.scrollToSection=function(d){if(d=this.getSectionElement(d))_.oF(this.hostElement,"yt-scroll-to-watch-element",[d]),d.focus()};
_.G.getSectionElement=function(d){switch(d){case "infocards-item-section":var H;return(H=this.infocardsSection)!=null?H:null;case "transcript-item-section":var K;return(K=this.transcriptSection)!=null?K:null;case "how-this-was-made-section-item-section":var c;return(c=this.howThisWasMadeSection)!=null?c:null;case "files-item-section":var p;return(p=this.filesSection)!=null?p:null;default:return null}};
_.G.handleSetActiveItemAction=function(d){var H=_.M(d,rZa),K=H&&(H==null?void 0:H.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22693_cardList;if(H&&K){d=this.currentActiveChapter;var c=this.currentActiveProblem;H=K==null?void 0:K.getItemByIndex(H.itemIndex);var p=K=!0;H&&(H.active=!0,H.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(K=d!==H,p=!1,this.currentActiveChapter=H):(H==null?void 0:H.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(K=!1,p=c!==H,this.currentActiveProblem=H));d&&K&&(d.active=!1);c&&p&&(c.active=!1)}};
_.H3.Object.defineProperties(q7.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.h("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
q7.prototype.onYtExpanderMoreTapped=q7.prototype.onYtExpanderMoreTapped;q7.prototype.onHiddenChanged=q7.prototype.onHiddenChanged;q7.prototype.dataChanged=q7.prototype.dataChanged;q7.prototype.panelContentVisibleChanged=q7.prototype.panelContentVisibleChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],q7.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.WZ),_.O("design:type",Object)],q7.prototype,"ironResizableBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],q7.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],q7.prototype,"panelContentVisible",void 0);_.t([_.r(),_.O("design:type",Boolean)],q7.prototype,"hasDescriptionOnly",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],q7.prototype,"inlineStructuredDescription",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],q7.prototype,"hidden",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],q7.prototype,"shortsPanel",void 0);_.t([_.r(),_.O("design:type",Object)],q7.prototype,"videoSummary",void 0);_.t([_.r(),_.O("design:type",Object)],q7.prototype,"merchShelf",void 0);
_.t([_.I("videoSummary"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],q7.prototype,"showVideoSummary",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],q7.prototype,"engagementPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],q7.prototype,"watchWhileSdp",void 0);_.t([_.VP("ytd-expandable-video-description-body-renderer"),_.O("design:type",Object)],q7.prototype,"description",void 0);
_.t([_.VP("ytd-horizontal-card-list-renderer"),_.O("design:type",Object)],q7.prototype,"JSC$22693_cardList",void 0);_.t([_.VP("ytd-horizontal-card-list-renderer[center-items]"),_.O("design:type",Object)],q7.prototype,"problemWalkthroughCardList",void 0);_.t([_.VP("ytd-shelf-renderer"),_.O("design:type",Object)],q7.prototype,"shelfSection",void 0);_.t([_.VP("ytd-video-description-music-section-renderer"),_.O("design:type",Object)],q7.prototype,"musicMetadataSection",void 0);
_.t([_.VP("ytd-video-description-infocards-section-renderer"),_.O("design:type",Object)],q7.prototype,"infocardsSection",void 0);_.t([_.VP("ytd-video-description-transcript-section-renderer"),_.O("design:type",Object)],q7.prototype,"transcriptSection",void 0);_.t([_.VP("how-this-was-made-section-view-model"),_.O("design:type",Object)],q7.prototype,"howThisWasMadeSection",void 0);_.t([_.VP("ytd-video-description-files-section-renderer"),_.O("design:type",Object)],q7.prototype,"filesSection",void 0);
_.t([_.CK("panelContentVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],q7.prototype,"panelContentVisibleChanged",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],q7.prototype,"dataChanged",null);_.t([_.CK("hidden"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],q7.prototype,"onHiddenChanged",null);
_.t([_.nK("yt-expander-more-tapped"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],q7.prototype,"onYtExpanderMoreTapped",null);_.t([_.Z({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],q7);
_.T(q7,"ytd-structured-description-content-renderer",function(){if(OB_!==void 0)return OB_;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return OB_=d},{mode:2});var SYH;var E5E;var aR=function(){return _.B.apply(this,arguments)||this};
_.m(aR,_.B);aR.prototype.computeAriaLabel=function(d){var H,K;return(d==null?void 0:(H=d.accessibility)==null?void 0:(K=H.accessibilityData)==null?void 0:K.label)||_.Vz("LOADING",void 0,"Loading")};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],aR.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],aR.prototype,"data",void 0);_.t([_.r({computed:"computeAriaLabel(data)"}),_.O("design:type",String)],aR.prototype,"ariaLabel",void 0);_.t([_.ZV({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],aR);
_.T(aR,"yt-content-loading-renderer",function(){if(E5E===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-content-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_content_loading_renderer.yt.content.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[data.useSpinner]]" alt="[[ariaLabel]]" class="style-scope yt-content-loading-renderer">\n</tp-yt-paper-spinner>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;SYH===void 0&&(SYH=document.createElement("template"));var c=SYH;K.call(H,c.content.cloneNode(!0),d.content.firstChild);E5E=d}d=E5E;return d},{mode:_.qk("kevlar_poly_si_batch_j043")?1:2});_.iV(_.H1(function(d){var H=_.q(_.GO(!1,void 0,"QkPiwb")),K=H.next().value,c=H.next().value;H=_.q(_.GO(!1,void 0,"AFECB"));var p=H.next().value,g=H.next().value;_.WE(function(){var k=_.M(d.data().collaboratePlaylistCollaborationSetting,DSN);k&&c(k.switchedOnByDefault);var C=_.M(d.data().allowNewCollaboratorsPlaylistCollaborationSetting,DSN);C&&g(C.switchedOnByDefault);if(!k&&!C||!k&&d.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")c(!0),g(!0)});
var a=function(k){c(k);g(k);var C=d.data().playlistCollaborationEntityKey||"";var R=_.AB().getState();(R=_.xL(R.entities,"playlistCollaborationEntity",C))&&(R==null?void 0:R.isCollaborative)===k||_.AB().dispatch(_.PI("playlistCollaborationEntity",C,Object.assign({},R,{isCollaborative:k})))},e=function(k){g(k)};
return _.x("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.x("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.x(_.wB,{data:function(){return d.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(k){return _.x(_.OZl,{data:k.data,
onSwitch:a})}})),_.x(_.n,{cond:K,
then:function(){return _.x(_.HE,null,_.x("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.x(_.wB,{data:function(){return d.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(k){return _.x(_.OZl,{data:k.data,
onSwitch:e,overrideDisabled:!1})}})),_.x(_.n,{cond:p,
then:function(){return _.x("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.x(_.wB,{data:function(){return d.data().copyLinkButton}},{buttonViewModel:_.xk}))}}),_.x("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.x(_.wB,{data:function(){return d.data().playlistCollaborators}},{contentListItemViewModel:_.chZ})))}}))},"kk"),"playlist-collaboration-view-model",{props:{data:_.dl}});var yAw=_.H1(function(d){var H=d.data;var K=d.customCommandResolver;return _.x(_.HE,null,_.x("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.x(_.wB,{data:function(){return H().adAvatar}},{adAvatarViewModel:function(c){return _.x(_.m9M,{data:c.data,
customCommandResolver:K})}})),_.x("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.x(_.n,{cond:function(){return H().headline},
then:function(c){return _.x(_.j$,{text:c,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.x("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.x(_.wB,{data:function(){return H().adBadge}},{adBadgeViewModel:function(c){return _.x(_.qE,{data:c.data,
hasDot:function(){return H().primaryDetailsLine!==void 0},
customCommandResolver:K,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.x(_.wB,{data:function(){return H().primaryDetailsLine}},{adDetailsLineViewModel:function(c){return _.x(_.aX,{data:c.data,
customCommandResolver:K,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"lk"),bB_=_.H1(function(d){var H=d.data;
var K=d.customCommandResolver;return _.x("ad-avatar-lockup-view-model",{class:function(){var c;return((c=H().interaction)==null?0:c.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.$M(_.cV({visibilityCallback:function(c){var p,g=(p=H().interaction)==null?void 0:p.onFirstVisible;c&&g&&_.EG(g)},
showOption:_.KQ}),_.Ej(function(){return H().interaction},K)),
"aria-label":function(){var c,p;return(c=H().interaction)==null?void 0:(p=c.accessibility)==null?void 0:p.label}},_.x(_.w9,null,_.x(_.MM,{when:function(){return H().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.x(yAw,{data:H,
customCommandResolver:K})}),_.x(_.mS,null,function(){return null})))},"mk");_.iV(_.H1(function(d){var H=d.data;var K=d.panelContentVisibility;d=_.cV({visibilityCallback:function(g){var a,e=(a=H().interaction)==null?void 0:a.onFirstVisible;g&&e&&_.EG(e)},
showOption:_.KQ});var c=_.Ej(function(){return H().interaction},EdL);
_.rc(function(){var g,a;if(a=_.OS("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var e;a=(e=a())==null?void 0:e.onLayoutVisibleCallback}else a=null;(g=a)==null||g()});
var p=function(){return K()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.x("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.$M(d,c)},_.x("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.x("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.x(_.n,{cond:_.xDF("(min-width: "+((0,_.DN)()+_.TB)+"px) or (max-width: 600px)"),then:function(){return _.x(_.wB,{data:function(){return H().adImage}},{adImageViewModel:function(g){return _.x(_.RM,{data:g.data,
targetHeight:80,customCommandResolver:EdL})}})}})),_.x("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.x("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.x(_.wB,{data:function(){return H().adAvatarLockup}},{adAvatarLockupViewModel:function(g){return _.x(bB_,{data:g.data,
customCommandResolver:EdL})}})),_.x(_.n,{cond:p,
then:function(){return _.x(_.wB,{data:function(){return H().adButton}},{adButtonViewModel:function(g){return _.x(_.pQ,{data:g.data,
customCommandResolver:EdL})}})},
else:function(){return _.x(_.wB,{data:function(){return H().menu}},{buttonViewModel:_.xk})}}),_.x("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.x(_.wB,{data:function(){var g=_.M(H().toggleButton,_.EV);
return{toggleButtonViewModel:Object.assign({},g,{isTogglingDisabled:!0,isToggled:p()})}}},{toggleButtonViewModel:_.zm})))))},"nk"),"panel-ad-header-image-lockup-view-model",{props:{data:_.dl,
panelContentVisibility:_.dl}});_.iV(_.H1(function(d){var H=function(){return _.M(d.data().inputComposerViewModel,f5_)},K=function(){var w;
return((w=H())==null?void 0:w.youchatPendingResponseEntityKey)||""},c=_.Uj(_.myj,K),p=function(){var w;
return!((w=c())==null||!w.isPendingResponse)},g=_.q(_.GO(!0,void 0,"DR0q1d")),a=g.next().value,e=g.next().value,k=function(){return H().sectionTargetId||"youchat_messages_section"};
g=_.jV("yt-chat-input-view-model");var C=_.Af("textarea"),R=_.Uj(XBH,"chat_input_view_model_state"),V=JN_(),U=function(){var w;return!((w=R())==null||!w.value)};
_.WE(function(){var w;if(!U()&&((w=H())==null?0:w.welcomeFeatureContinuation)){var W;((W=H())==null?0:W.setPendingResponseOnWelcome)&&_.wP5(K())(!0);w={continuationCommand:{token:H().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var J;W=String(Math.floor(((J=_.k6())==null?void 0:J.getCurrentTime())||0)*1E3);J={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:W}};_.Yv(w,{form:{formData:J}});V(!0)}var F=k(),Y;(Y=_.Kj().resolve(_.$p(_.Pm)))==null||
Y.addEventListener("yt-navigate-start",function(){_.Lf.remove(F);V(!1)},{once:!0})});
var L=function(){var w=C.value.value;C.value.value="";yNE(C.value);var W,J=((W=H())==null?void 0:W.enableGradientColorBg)||!1;W=bXc(k(),w,J);_.Yv(W);var F=_.wP5(K()),Y;_.EG(((Y=H())==null?void 0:Y.onSubmitCommand)||{});F(!0);var A;Y=String(Math.floor(((A=_.k6())==null?void 0:A.getCurrentTime())||0)*1E3);var E;A={continuationCommand:{token:(E=H())==null?void 0:E.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};w={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:w,
playerOffsetMs:Y}};_.Yv(A,{form:{formData:w},commandController:{onSuccess:function(){F(!1)},
onServerError:function(){var N=k();_.Yv({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:N}}]}}});F(!1)}}})};
return _.x("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:g},_.x("div",{class:"chatInputViewModelChatInputWrapper"},_.x("form",{class:"chatInputViewModelChatInputForm"},_.x("textarea",{class:"chatInputViewModelChatInput",el:C,"on:keydown":_.n7(function(w){var W=p()||!1;yNE(C.value);W||w.key!=="Enter"||w.shiftKey||(w.preventDefault(),L());return!1}),
"on:keyup":_.n7(function(){e(C.value.value.length===0);return!1}),
placeholder:function(){var w,W;var J=_.M((W=H())==null?void 0:W.inputFormField,Pg_);return J==null?void 0:(w=J.contentProperties)==null?void 0:w.placeholderText},
rows:1}),_.x(_.xk,{data:function(){return _.M(d.data().sendButton,_.OV)},
onClick:function(w){w.preventDefault();L();e(C.value.value.length===0)},
buttonOverrides:function(){return{disabled:a()||p()}}})),_.x(_.j$,{className:"chatInputViewModelChatDisclaimer",
text:function(){var w;return(w=_.M(d.data().disclaimer,_.ZaA))==null?void 0:w.text}})))},"ok"),"yt-chat-input-view-model",{props:{data:_.dl}});var NsC=["engagement-panel-clip-create","engagement-panel-clip-view"],D6_=0,lf=function(){var d=_.B.apply(this,arguments)||this;var H;d.headerData=(H=d.data)==null?void 0:H.header;d.darkerPanels=_.h("web_watch_darker_panels");d.matchContentTheme=_.h("web_watch_panel_content_match_theme");d.disableAutoFill=!1;d.isFullscreen=!1;d.isTheaterMode=!1;d.modernPanels=_.h("kevlar_watch_modern_panels");d.liveChatReplyPanel=!1;d.enableAnchoredPanel=_.h("desktop_shorts_v2_anchored_panel");d.disableBackdropFilter=
_.h("web_disable_backdrop_filter");d.trackEngagementPanelVisibility=_.h("web_watch_track_engagement_panel_visibility");d.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction","yt-scroll-to-engagement-panel-command":"onYtScrollToEngagementPanelCommand","yt-update-engagement-panel-action":"onYtUpdateEngagementPanelAction","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction"};
return d};
_.m(lf,_.B);_.G=lf.prototype;
_.G.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(d){var H;return(d==null?void 0:(H=d.webComponentHint)==null?void 0:H.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.G.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var d;if((d=this.hostElement.parentElement)==null?0:d.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.G.detached=function(){this.updateTheaterDisablement()};
_.G.showPanel=function(){var d=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.Xp.addJob(function(){d.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.G.maybeScrollToItemSection=function(d){var H=this,K,c=d==null?void 0:(K=d.sectionListEngagementPanelExtras)==null?void 0:K.scrollToItemSectionIdentifier;c&&_.Xp.addJob(function(){var p;(p=H.sectionListRendererElement)==null||p.scrollToItemSection(c)},8)};
_.G.hidePanel=function(){var d=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.Xp.addJob(function(){d.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.G.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.G.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.G.updatePanel=function(d,H,K,c){var p=this;if((d=d==null?void 0:d.engagementPanelSectionListRenderer)||c){if(d){c=d.header;var g=d.content,a=d.footer;(d=d.targetId)&&this.set("data.targetId",d);c&&this.set("data.header",c);g&&this.set("data.content",g);a&&this.set("data.footer",a)}else c&&(d=c.content,g=c.secondaryHeaderContent,(c=c.targetId)&&this.set("data.targetId",c),d&&this.set("data.content",d),g&&(this.secondaryHeaderData=g));this.updateChildVisibilityProperties();if(H){var e;_.h("kevlar_update_panel_focus_scroll_killswitch")||
(e={preventScroll:!0});this.focus(e)}_.vV(this,function(){_.GT(p.hostElement,"yt-refit");p.maybeScrollToItemSection(K)})}};
_.G.computeHeaderData=function(){var d,H=(0,_.rs.unsafeClone)((d=this.data)==null?void 0:d.header);if(H){d=new _.Dk(Object.keys(H)[0]);var K=_.M(H,d),c=_.M(this.secondaryHeaderData,d);c&&_.X4(H,d,Object.assign({},c,K))}return H};
_.G.getReloadContinuation=function(){var d,H,K,c=_.q(((d=this.data)==null?void 0:(H=d.content)==null?void 0:(K=H.sectionListRenderer)==null?void 0:K.continuations)||[]);for(d=c.next();!d.done;d=c.next())if(d=d.value,d.reloadContinuationData)return d.reloadContinuationData.continuation};
_.G.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var d;((d=this.data)==null?0:d.targetId)&&(d=this.contentElement.firstElementChild)&&d.setAttribute("panel-target-id",this.data.targetId)};
_.G.forwardPopupClosedToFlowRootRenderer=function(){var d=_.Gn(this.hostElement).querySelector("ytd-flow-root-renderer");if(d)d.onPopupClosed()};
_.G.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var d;if(!NsC.includes((d=this.theaterDisablementPanelIdentifier)!=null?d:""))if(d=_.h("web_watch_imax_theater_mode")&&this.isTheaterMode,d=_.h("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||d,_.h("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||d){var H;this.visibility=(H=this.data)==null?void 0:H.visibility;var K;this.trackEngagementPanelVisibility&&((K=this.data)==null?void 0:K.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var c,p,g,a;this.contentEmpty=!!(((c=this.data)==null?0:(p=c.content)==null?0:p.structuredDescriptionContentRenderer)&&Object.keys((g=this.data)==null?void 0:(a=g.content)==null?void 0:
a.structuredDescriptionContentRenderer).length===0);(H=_.Kj().resolve(_.W6))&&H.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.G.isTheaterModeChanged=function(){_.h("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.G.isFullscreenChanged=function(){_.h("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.G.focus=function(d){if(this.header)this.header.focus(d);else{var H;(H=_.Gn(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||H.focus(d)}};
_.G.visibilityChanged=function(){if(!_.h("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var d=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",K=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",p=c||!this.lastVisibility,g,a,e,k=((g=this.data)==null?void 0:(a=g.identifier)==null?void 0:
a.tag)||((e=this.data)==null?void 0:e.panelIdentifier);if(d&&p){var C;((C=this.data)==null?0:C.onShowCommands)&&_.l5(this.hostElement,this.data.onShowCommands,this.hostElement);k&&_.dn().dispatch(_.iZ({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:k}}))}else if(H&&K){var R;((R=this.data)==null?0:R.onHideCommands)&&_.l5(this.hostElement,this.data.onHideCommands,this.hostElement);k&&_.dn().dispatch(_.iZ({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:k}}))}d&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*D6_++));_.h("kevlar_watch_focus_on_engagement_panels")&&d&&c&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.G.notifyVisibilityChanged=function(d){var H;_.qo(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,d,(H=this.data)==null?void 0:H.targetId])};
_.G.updateTheaterDisablement=function(){if(!_.h("kevlar_watch_theater_disablement_killswitch")){var d=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&NsC.includes(d)&&!_.h("watch_next_grid_ignore_disallowed_panels")){var H=_.sQ(_.dn().getState()),K=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";d!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():K?(this.originalTheaterState===void 0&&(this.originalTheaterState=H,this.theaterDisablementPanelIdentifier=
d),H&&_.oF(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.G.clearTheaterDisablement=function(){_.oF(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.G.updateChildVisibilityProperties=function(){this.hostElement||_.h("kevlar_panel_property_init_killswitch")||this._enableProperties();var d=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=d);var H,K=(H=this.headerElement)==null?void 0:H.firstElementChild;if(K&&!this.adHeaderImageLockupViewModel){H=d==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";K.collapsed=H;K=_.Gn(K).querySelector("#visibility-button");if(!K)return;(K=K.firstElementChild)&&
K.polymerController.is==="ytd-toggle-button-renderer"&&K.polymerController.data.isToggled!==H&&K.polymerController.set("data.isToggled",H)}var c;if(H=(c=this.contentElement)==null?void 0:c.firstElementChild)if(d&&d!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")H.removeAttribute("panel-content-visible");else{H.setAttribute("panel-content-visible","");var p;(p=H.markDirty)==null||p.call(H)}};
_.G.onYtChangeEngagementPanelVisibilityAction=function(d){var H=this,K,c=(K=this.data)==null?void 0:K.targetId,p,g,a;K=((p=this.data)==null?void 0:(g=p.identifier)==null?void 0:g.tag)||((a=this.data)==null?void 0:a.panelIdentifier);var e=_.M(d,_.FUl),k;d=c&&(e==null?void 0:e.targetId)===c||K&&(e==null?void 0:(k=e.panelIdentifier)==null?void 0:k.tag)===K;this.dialog&&d&&(e==null?void 0:e.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(c==="engagement-panel-comments-section"?_.oF(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.oF(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",K]));!_.h("kevlar_use_engagement_panel_management_component")&&d&&(c=e.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!c?_.Xp.addJob(function(){H.visibility=e.visibility},2,this.hideDelayMs):this.visibility=e.visibility,e.visibility&&this.notifyVisibilityChanged(e.visibility))};
_.G.onYtScrollToEngagementPanelCommand=function(d){var H,K=(H=this.data)==null?void 0:H.targetId,c,p,g;H=((c=this.data)==null?void 0:(p=c.identifier)==null?void 0:p.tag)||((g=this.data)==null?void 0:g.panelIdentifier);d=_.M(d,_.DW3);var a;(K&&(d==null?void 0:d.targetId)===K||H&&(d==null?void 0:(a=d.panelIdentifier)==null?void 0:a.tag)===H)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.oF(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.G.attachVEs=function(d){var H,K;(d==null?0:(H=d.content)==null?0:(K=H.productListRenderer)==null?0:K.trackingParams)&&_.hR().graftServerVe(d.content.productListRenderer.trackingParams);var c,p;(d==null?0:(c=d.content)==null?0:(p=c.transcriptRenderer)==null?0:p.trackingParams)&&_.hR().graftServerVe(d.content.transcriptRenderer.trackingParams)};
_.G.onYtUpdateEngagementPanelAction=function(d){var H,K=(H=this.data)==null?void 0:H.targetId;d=_.M(d,BqS);K&&(d==null?void 0:d.targetId)===K&&(this.updatePanel({engagementPanelSectionListRenderer:{header:d==null?void 0:d.header,content:d==null?void 0:d.content}},!1),this.attachVEs(d))};
_.G.onYtShowEngagementPanelScrimAction=function(d){var H,K=(H=this.data)==null?void 0:H.targetId;d=_.M(d,Wb_);K&&(d==null?void 0:d.engagementPanelTargetId)===K&&(this.scrimmed=!0)};
_.G.onYtHideEngagementPanelScrimAction=function(d){var H,K=(H=this.data)==null?void 0:H.targetId;d=_.M(d,I5O);K&&(d==null?void 0:d.engagementPanelTargetId)===K&&(this.scrimmed=!1)};
_.G.getIdentifier=function(){var d,H,K;return((d=this.data)==null?void 0:d.panelIdentifier)||((H=this.data)==null?void 0:(K=H.identifier)==null?void 0:K.tag)};
_.G.getSurface=function(){var d,H;return(d=this.data)==null?void 0:(H=d.identifier)==null?void 0:H.surface};
_.H3.Object.defineProperties(lf.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var d=this.getIdentifier();return d==="engagement-panel-youchat"||d==="PAyouchat"}}});
lf.prototype.visibilityChanged=lf.prototype.visibilityChanged;lf.prototype.isFullscreenChanged=lf.prototype.isFullscreenChanged;lf.prototype.isTheaterModeChanged=lf.prototype.isTheaterModeChanged;lf.prototype.dataChanged=lf.prototype.dataChanged;lf.prototype.forwardPopupClosedToFlowRootRenderer=lf.prototype.forwardPopupClosedToFlowRootRenderer;lf.prototype.onYtRendererstamperFinished=lf.prototype.onYtRendererstamperFinished;
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],lf.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],lf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],lf.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],lf.prototype,"ytEventForwardingBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],lf.prototype,"data",void 0);
_.t([_.r({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.O("design:type",Object)],lf.prototype,"headerData",void 0);_.t([_.r(),_.O("design:type",Object)],lf.prototype,"secondaryHeaderData",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lf.prototype,"visibility",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],lf.prototype,"contentEmpty",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],lf.prototype,"scrimmed",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],lf.prototype,"dialog",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],lf.prototype,"dropdown",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lf.prototype,"darkerPanels",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lf.prototype,"matchContentTheme",void 0);_.t([_.r(),_.O("design:type",Object)],lf.prototype,"disableAutoFill",void 0);
_.t([_.r({reflectToAttribute:!0,value:_.h("optimal_reading_width_comments_ep")}),_.O("design:type",Boolean)],lf.prototype,"optimalReadingWidthComments",void 0);_.t([_.r(),_.O("design:type",Number)],lf.prototype,"hideDelayMs",void 0);_.t([_.r({selector:_.FX,reflectToAttribute:!0}),_.O("design:type",Object)],lf.prototype,"isFullscreen",void 0);_.t([_.r({selector:_.sQ,reflectToAttribute:!0}),_.O("design:type",Object)],lf.prototype,"isTheaterMode",void 0);
_.t([_.r(),_.O("design:type",Number)],lf.prototype,"showDelayMs",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data.targetId"),_.O("design:type",Object),_.O("design:paramtypes",[])],lf.prototype,"targetId",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],lf.prototype,"webSize",null);_.t([_.r(),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],lf.prototype,"hideFooterBorder",null);
_.t([_.r(),_.O("design:type",Object)],lf.prototype,"isWatch",void 0);_.t([_.r(),_.O("design:type",Object)],lf.prototype,"originalTheaterState",void 0);_.t([_.r(),_.O("design:type",Object)],lf.prototype,"theaterDisablementPanelIdentifier",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lf.prototype,"modernPanels",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],lf.prototype,"isWatchWhilePanel",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],lf.prototype,"shortsPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],lf.prototype,"liveChatEngagementPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],lf.prototype,"learningChatEngagementPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lf.prototype,"liveChatReplyPanel",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lf.prototype,"enableAnchoredPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lf.prototype,"disableBackdropFilter",void 0);_.t([_.r(),_.O("design:type",Object)],lf.prototype,"trackEngagementPanelVisibility",void 0);_.t([_.VP("#header"),_.O("design:type",HTMLElement)],lf.prototype,"headerElement",void 0);_.t([_.VP("#header > *"),_.O("design:type",HTMLElement)],lf.prototype,"header",void 0);
_.t([_.VP("ytd-section-list-renderer"),_.O("design:type",Object)],lf.prototype,"sectionListRendererElement",void 0);_.t([_.VP("panel-ad-header-image-lockup-view-model"),_.O("design:type",HTMLElement)],lf.prototype,"adHeaderImageLockupViewModel",void 0);_.t([_.VP("#content"),_.O("design:type",HTMLElement)],lf.prototype,"contentElement",void 0);
_.t([_.nK("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lf.prototype,"onYtRendererstamperFinished",null);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lf.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.t([_.Mr("data","isFullscreen","isTheaterMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lf.prototype,"dataChanged",null);
_.t([_.CK("isTheaterMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lf.prototype,"isTheaterModeChanged",null);_.t([_.CK("isFullscreen"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lf.prototype,"isFullscreenChanged",null);_.t([_.CK("visibility"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lf.prototype,"visibilityChanged",null);
_.t([_.Z({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],lf);
_.T(lf,"ytd-engagement-panel-section-list-renderer",function(){if(RcL!==void 0)return RcL;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="content" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="footer" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return RcL=d},{mode:_.qk("kevlar_poly_si_batch_j028")?1:2});var f$S;var eB=function(){var d=_.B.apply(this,arguments)||this;d.lastRenderedPanelIds=new Set;d.visiblePanels=[];d.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return d};
_.m(eB,_.B);_.G=eB.prototype;_.G.dataChanged=function(){if(this.data){for(var d=[],H=_.q(this.data),K=H.next();!K.done;K=H.next()){K=K.value;var c=void 0,p=void 0,g=(c=K)==null?void 0:(p=c.engagementPanelSectionListRenderer)==null?void 0:p.visibility;p=c=void 0;((c=K)==null?0:(p=c.engagementPanelSectionListRenderer)==null?0:p.targetId)&&g!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&d.push(K)}this.visiblePanels=d}else this.visiblePanels=[]};
_.G.configureRendererStamper=function(){return{visiblePanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0},properties:{hideDelayMs:"[[hideDelayMs]]",isWatchWhilePanel:"[[isWatchWhilePanel]]"}}},reuseComponents:!1}}};
_.G.withoutVisiblePanelById=function(d){return this.visiblePanels.filter(function(H){var K;return((K=H.engagementPanelSectionListRenderer)==null?void 0:K.targetId)!==d})};
_.G.onYtChangeEngagementPanelVisibilityAction=function(d){var H=this,K=_.M(d,_.FUl);if(this.data&&(K==null?0:K.targetId)&&(K==null?0:K.visibility)){var c,p=(c=this.data.find(function(a){var e;return((e=a.engagementPanelSectionListRenderer)==null?void 0:e.targetId)===K.targetId}))==null?void 0:c.engagementPanelSectionListRenderer;
if(p){var g=this.withoutVisiblePanelById(K.targetId);K.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(d=this.data.find(function(a){var e;return((e=a.engagementPanelSectionListRenderer)==null?void 0:e.targetId)===K.targetId}))&&(g=[d].concat(_.ru(g)));
this.hideDelayMs&&K.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&g.length===0?_.Xp.addJob(function(){p.visibility=K.visibility;H.visiblePanels=g},10,this.hideDelayMs):(p.visibility=K.visibility,this.visiblePanels=g);
_.qo(this.hostElement,"yt-engagement-panels-visible-changed",[g])}}};
_.G.onRendererstamperFinished=function(){var d=new Set(this.visiblePanels.map(function(H){var K;return(K=H.engagementPanelSectionListRenderer)==null?void 0:K.targetId}));
this.handlePanelVisibilityChange(d,this.lastRenderedPanelIds);this.lastRenderedPanelIds=d};
_.G.handlePanelVisibilityChange=function(d,H){d=d===void 0?new Set:d;H=H===void 0?new Set:H;if(this.data)for(var K=_.q(this.data),c=K.next();!c.done;c=K.next()){c=c.value;var p=void 0,g=void 0,a=(p=c)==null?void 0:(g=p.engagementPanelSectionListRenderer)==null?void 0:g.targetId;if(a&&(p=H.has(a),g=d.has(a),a=void 0,!p&&g?(g=p=void 0,a=(p=c)==null?void 0:(g=p.engagementPanelSectionListRenderer)==null?void 0:g.onShowCommands):p&&!g&&(g=p=void 0,a=(p=c)==null?void 0:(g=p.engagementPanelSectionListRenderer)==
null?void 0:g.onHideCommands),a))for(c=_.q(a),a=c.next();!a.done;a=c.next())this.ytComponentBehavior.resolveCommand(a.value)}};
eB.prototype.onRendererstamperFinished=eB.prototype.onRendererstamperFinished;eB.prototype.dataChanged=eB.prototype.dataChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],eB.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],eB.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],eB.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],eB.prototype,"lastRenderedPanelIds",void 0);_.t([_.r(),_.O("design:type",Number)],eB.prototype,"hideDelayMs",void 0);_.t([_.r(),_.O("design:type",Array)],eB.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Array)],eB.prototype,"visiblePanels",void 0);_.t([_.r(),_.O("design:type",Boolean)],eB.prototype,"isWatchWhilePanel",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],eB.prototype,"dataChanged",null);_.t([_.nK("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],eB.prototype,"onRendererstamperFinished",null);_.t([_.Z({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],eB);
_.T(eB,"ytd-watch-engagement-panels",function(){if(f$S!==void 0)return f$S;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-engagement-panels--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="panels" class="style-scope ytd-watch-engagement-panels"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return f$S=d},{mode:1});var AAr;var kS=function(){return _.B.apply(this,arguments)||this};
_.m(kS,_.B);kS.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.AL(_.Gn(this.hostElement).querySelector("#text"),_.VS7(_.Lg3,this.data.companionLegalText))};
kS.prototype.computeAutoScrollEnabled=function(d,H){return d&&!H};
kS.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
kS.prototype.onToggleTap=function(){this.expanded=!this.expanded};
kS.prototype.expandedChanged=kS.prototype.expandedChanged;kS.prototype.dataChanged=kS.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],kS.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S1j),_.O("design:type",Object)],kS.prototype,"ytdAutoScrollBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],kS.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],kS.prototype,"expanded",void 0);
_.t([_.r({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.O("design:type",Boolean)],kS.prototype,"autoScrollEnabled",void 0);_.t([_.r(),_.O("design:type",String)],kS.prototype,"expanderIcon",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kS.prototype,"dataChanged",null);
_.t([_.CK("expanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kS.prototype,"expandedChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],kS);
_.T(kS,"ytd-companion-legal-text-renderer",function(){if(AAr!==void 0)return AAr;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-legal-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.companionLegalText]]" class="style-scope ytd-companion-legal-text-renderer"></yt-formatted-string>\n\n<tp-yt-paper-material id="expand-button" elevation="1" on-tap="onToggleTap" class="style-scope ytd-companion-legal-text-renderer">\n  <yt-icon-button id="expander-icon" class="style-scope ytd-companion-legal-text-renderer">\n    <yt-icon id="expander-icon" icon="[[expanderIcon]]" class="style-scope ytd-companion-legal-text-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return AAr=d},{mode:1});var jrO;var xS=function(){var d=_.B.apply(this,arguments)||this;d.buttonUpdate=_.h("web_modern_buttons");d.kevlarWatchGrid=_.h("kevlar_watch_grid");d.centerAlignDescription=_.h("action_companion_center_align_description");d.truncateDomain=_.h("action_companion_truncate_domain");return d};
_.m(xS,_.B);_.G=xS.prototype;_.G.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.G.getOnLayoutVisibleCallback=function(){var d=_.OS("yt.www.ads.eventcache.getLastCompanionData");return d?(d=d())&&d.onLayoutVisibleCallback:null};
_.G.getLayoutId=function(){var d=_.OS("yt.www.ads.eventcache.getLastCompanionData");return d?(d=d())&&d.layoutId:null};
_.G.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",xS.JSC$22739_DEFAULT_AD_BADGE_RENDERER);var d=this.getOnLayoutVisibleCallback();d&&d()}};
_.G.getButtonRenderer=function(d){return d.actionButton&&_.M(d.actionButton,_.Tz)?(delete _.M(d.actionButton,_.Tz).navigationEndpoint,_.M(d.actionButton,_.Tz)):{}};
_.G.onClick=function(d){var H=this;if((!_.h("web_modern_buttons")||!_.vg(_.jh(d),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){d=_.Kf();var K=this.getLayoutId();d&&K&&_.h("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?d.getPlayerPromise().then(function(c){(new _.IX(c)).executeCommand(H.data.navigationEndpoint,K)}):_.h("kevlar_companion_resolve_command_killswitch")?_.GT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.oF(this.hostElement,"yt-companion-ad-clicked",["action-companion",K])}};
_.H3.Object.defineProperties(xS.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return((d=this.data)==null?0:(H=d.detailsLine)==null?0:(K=H.adRating)==null?0:K.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c;return((d=this.data)==null?0:(H=d.detailsLine)==null?0:(K=H.adRating)==null?0:(c=K.ratingIcon)==null?0:c.iconType)?_.kv(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c;return((d=this.data)==null?0:(H=d.detailsLine)==null?0:(K=H.texts)==null?0:(c=K[0])==null?0:c.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?0:(H=d.description)==null?0:H.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var d=_.OS("yt.www.ads.eventcache.getLastCompanionData");return d?(d=d())&&d.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var d=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return d?d.indexOf("/default_banner")!==-1:!0}}});
xS.prototype.onClick=xS.prototype.onClick;xS.prototype.dataChanged=xS.prototype.dataChanged;xS.JSC$22739_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Vz("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],xS.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],xS.prototype,"rendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],xS.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],xS.prototype,"buttonUpdate",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],xS.prototype,"kevlarWatchGrid",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],xS.prototype,"centerAlignDescription",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],xS.prototype,"truncateDomain",void 0);
_.t([_.r({computed:"computeButtonOverride(buttonUpdate)"}),_.O("design:type",Object)],xS.prototype,"buttonOverride",void 0);_.t([_.I("data.detailsLine.adRating.ratingText"),_.O("design:type",Object),_.O("design:paramtypes",[])],xS.prototype,"getRating",null);_.t([_.I("getRating"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xS.prototype,"computeRatingHidden",null);
_.t([_.I("data.detailsLine.adRating.ratingIcon.iconType"),_.O("design:type",Object),_.O("design:paramtypes",[])],xS.prototype,"iconType",null);_.t([_.I("data.detailsLine.texts.0.text"),_.O("design:type",Object),_.O("design:paramtypes",[])],xS.prototype,"getDetailsLine",null);_.t([_.I("getDetailsLine"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xS.prototype,"computeDetailsLineHidden",null);
_.t([_.I("data.description.text"),_.O("design:type",Object),_.O("design:paramtypes",[])],xS.prototype,"getDescriptionText",null);_.t([_.I("getDescriptionText"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xS.prototype,"computeDescriptionTextHidden",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],xS.prototype,"interactionLoggingClientData",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xS.prototype,"hideBanner",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xS.prototype,"dataChanged",null);_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],xS.prototype,"onClick",null);_.t([_.Z({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],xS);
_.T(xS,"ytd-action-companion-ad-renderer",function(){if(jrO!==void 0)return jrO;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-companion-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="action-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-action-companion-ad-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div id="action-companion-click-target" class="yt-simple-endpoint style-scope ytd-action-companion-ad-renderer">\n  <yt-img-shadow id="banner" fit="" hidden="[[hideBanner]]" thumbnail="[[data.bannerImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer">\n  </yt-img-shadow>\n  <div id="block" class="style-scope ytd-action-companion-ad-renderer">\n    <yt-img-shadow id="icon" thumbnail="[[data.iconImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer"></yt-img-shadow>\n    <div id="text" class="style-scope ytd-action-companion-ad-renderer">\n      <div id="header" class="style-scope ytd-action-companion-ad-renderer">\n        [[data.headline.text]]\n      </div>\n      <div id="desc" class="style-scope ytd-action-companion-ad-renderer">\n        <div id="ad-badge-container" class="style-scope ytd-action-companion-ad-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-action-companion-ad-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n        <span id="domain" hidden="[[computeDescriptionTextHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDescriptionText]]</span>\n        <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getRating]]</span>\n        <yt-icon id="star-icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-action-companion-ad-renderer"></yt-icon>\n        <span id="details-line" hidden="[[computeDetailsLineHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDetailsLine]]</span>\n      </div>\n    </div>\n    <ytd-button-renderer id="action" button-raised="" data="[[getButtonRenderer(data)]]" overrides="[[buttonOverride]]" class="style-scope ytd-action-companion-ad-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return jrO=d},{mode:_.qk("kevlar_poly_si_batch_j067")?1:2});var v5N;var d__;var nP=function(){var d=_.B.apply(this,arguments)||this;d.buttonUpdate=_.h("web_modern_buttons");d.hideLegacyBanner=_.h("enable_dsa_one_click_ata_translators_infeed_elements");d.adInfoButtonStyle="mono";d.adInfoButtonType="text";d.noDotAdBadge=!0;return d};
_.m(nP,_.B);_.G=nP.prototype;_.G.getOnLayoutVisibleCallback=function(){var d=_.OS("yt.www.ads.eventcache.getLastCompanionData");return d?(d=d())&&d.onLayoutVisibleCallback:null};
_.G.getLayoutId=function(){var d=_.OS("yt.www.ads.eventcache.getLastCompanionData");return d?(d=d())&&d.layoutId:null};
_.G.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var d=this.data.image.thumbnail.thumbnails[0];this.imageSrc=d.url?_.Xa(d.url):void 0;this.imageWidth=d.width||0;this.imageHeight=d.height||0}this.data.clickthroughEndpoint&&_.M(this.data.clickthroughEndpoint,_.yj)&&(d=_.M(this.data.clickthroughEndpoint,_.yj).url,_.h("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
d||"":d?(d=_.Xa(d),this.clickThroughUrl=_.IK(d)):this.clickThroughUrl=void 0);(d=this.getOnLayoutVisibleCallback())&&d()}};
_.G.onClick=function(d){_.vg(_.jh(d),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(d)};
_.G.handleClick=function(){var d=this;this.data&&this.data.clickthroughEndpoint&&(_.GT(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(H){d.macroReplacementBehavior.sendServiceRequestAction([H])}),_.oF(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.G.onLoad=function(){_.qo(this.hostElement,"yt-refit-popups-action")};
_.H3.Object.defineProperties(nP.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var d=_.OS("yt.www.ads.eventcache.getLastCompanionData");return d?(d=d())&&d.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var d=_.OS("yt.www.ads.eventcache.getLastCompanionData");return d?(d=d())&&d.interactionLoggingClientData:null}}});
nP.prototype.onLoad=nP.prototype.onLoad;nP.prototype.onClick=nP.prototype.onClick;nP.prototype.dataChanged=nP.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],nP.prototype,"rendererBehavior",void 0);_.t([_.u(wiO.YtMacroReplacementBehavior),_.O("design:type",Object)],nP.prototype,"macroReplacementBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],nP.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],nP.prototype,"buttonUpdate",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],nP.prototype,"hideLegacyBanner",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],nP.prototype,"adInfoButtonStyle",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],nP.prototype,"adInfoButtonType",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],nP.prototype,"macros",null);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],nP.prototype,"interactionLoggingClientData",null);_.t([_.r(),_.O("design:type",String)],nP.prototype,"clickThroughUrl",void 0);_.t([_.r(),_.O("design:type",_.wS)],nP.prototype,"imageSrc",void 0);_.t([_.r(),_.O("design:type",Number)],nP.prototype,"imageWidth",void 0);_.t([_.r(),_.O("design:type",Number)],nP.prototype,"imageHeight",void 0);_.t([_.r(),_.O("design:type",Object)],nP.prototype,"noDotAdBadge",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nP.prototype,"dataChanged",null);_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],nP.prototype,"onClick",null);_.t([_.nK("load"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nP.prototype,"onLoad",null);_.t([_.Z({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],nP);
_.T(nP,"ytd-image-companion-renderer",function(){if(d__!==void 0)return d__;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <div class="style-scope ytd-image-companion-renderer">\n    <yt-img-shadow id="banner" fit="" thumbnail="[[data.image.thumbnail]]" class="style-scope ytd-image-companion-renderer">\n    </yt-img-shadow>\n    <div id="block" class="style-scope ytd-image-companion-renderer">\n      <div id="text" class="style-scope ytd-image-companion-renderer">\n        <div id="desc" class="style-scope ytd-image-companion-renderer">\n          <div id="ad-badge-container" class="style-scope ytd-image-companion-renderer">\n            <ytd-badge-supported-renderer id="ad-badge" no-dot-ad-badge="[[noDotAdBadge]]" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-image-companion-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </div>\n      </div>\n      <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-menu" button-style="[[adInfoButtonStyle]]" button-type="[[adInfoButtonType]]" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n      </ytd-ad-hover-text-button-renderer>\n    </div>\n  </div>\n</template>\n\n\n<template is="dom-if" if="[[!hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n  </ytd-ad-hover-text-button-renderer>\n  <div class="style-scope ytd-image-companion-renderer">\n    <img height="[[imageHeight]]" src$="[[imageSrc]]" width="[[imageWidth]]" alt="" class="style-scope ytd-image-companion-renderer">\n  </div>\n</template>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return d__=d},{mode:_.qk("kevlar_poly_si_batch_j067")?1:2});var HAc;var CP=function(){return _.B.apply(this,arguments)||this};
_.m(CP,_.B);_.G=CP.prototype;_.G.dataChanged=function(){this.set("data.adBadge",CP.JSC$22748_DEFAULT_AD_BADGE_RENDERER);if(this.data){var d=this.getOnLayoutVisibleCallback();d&&d()}};
_.G.getOnLayoutVisibleCallback=function(){var d=_.OS("yt.www.ads.eventcache.getLastCompanionData");return d?(d=d())&&d.onLayoutVisibleCallback:null};
_.G.getLayoutId=function(){var d=_.OS("yt.www.ads.eventcache.getLastCompanionData");return d?(d=d())&&d.layoutId:null};
_.G.onCompanionClicked=function(d){this.data&&(d.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.oF(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.G.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var d=_.Kf(),H=this.getLayoutId(),K=this.data.clickToAdvSiteEndpoint;d&&H&&_.h("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?d.getPlayerPromise().then(function(c){(new _.IX(c)).executeCommand(K,H)}):_.GT(this.hostElement,"yt-navigate",{endpoint:K})}};
_.G.sendTrackingPings=function(d){if(d&&d.length!==0&&d[0].loggingUrls&&(d=d[0].loggingUrls.map(this.getBaseUrl)))for(var H=0;H<d.length;H++)_.S7(d[H])};
_.G.getBaseUrl=function(d){return d.baseUrl||""};
_.H3.Object.defineProperties(CP.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var d=_.OS("yt.www.ads.eventcache.getLastCompanionData");return d?(d=d())&&d.interactionLoggingClientData:null}}});
CP.prototype.onCompanionClicked=CP.prototype.onCompanionClicked;CP.prototype.dataChanged=CP.prototype.dataChanged;CP.JSC$22748_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Vz("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],CP.prototype,"data",void 0);_.t([_.VP("#title"),_.O("design:type",HTMLElement)],CP.prototype,"shopTitle",void 0);
_.t([_.Mr("data.impressionEndpoints"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],CP.prototype,"dataChanged",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],CP.prototype,"interactionLoggingClientData",null);_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],CP.prototype,"onCompanionClicked",null);
_.t([_.Z({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],CP);
_.T(CP,"ytd-shopping-companion-renderer",function(){if(HAc!==void 0)return HAc;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="shopping-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div on-tap="onCompanionClicked" class="style-scope ytd-shopping-companion-renderer">\n  <div id="banner" class="style-scope ytd-shopping-companion-renderer">\n    <div id="ad-badge-container" class="style-scope ytd-shopping-companion-renderer">\n      <ytd-badge-supported-renderer id="ad-badge" large-font-ad-badge="true" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-shopping-companion-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="title" on-tap="onShopTextTap" class="style-scope ytd-shopping-companion-renderer">\n      [[getSimpleString(data.shopText)]]\n    </div>\n  </div>\n  <yt-horizontal-list-renderer id="companion-shelf" data="[[data.itemList.horizontalListRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return HAc=d},{mode:1});_.iV(_.H1(function(d){var H=d.data;d=_.cV({visibilityCallback:function(c){var p,g=(p=H().interaction)==null?void 0:p.onFirstVisible;c&&g&&_.EG(g)},
showOption:_.KQ});var K=_.Ej(function(){return H().interaction},NAO);
_.rc(function(){var c,p;p=(p=_.OS("yt.www.ads.eventcache.getLastCompanionData"))?(p=p())&&p.onLayoutVisibleCallback:null;(c=p)==null||c()});
return _.x("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.n7(function(c){_.qo(c.currentTarget,"yt-refit-popups-action")}),
el:_.$M(d,K),"aria-label":function(){var c,p;return(c=H().interaction)==null?void 0:(p=c.accessibility)==null?void 0:p.label}},_.x("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.x(_.wB,{data:function(){return H().adImage}},{adImageViewModel:function(c){return _.x(_.RM,{data:c.data,
targetHeight:80,customCommandResolver:NAO})}})),_.x("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.x("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.x(_.wB,{data:function(){return H().adBadge}},{adBadgeViewModel:function(c){return _.x(_.qE,{data:c.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.x("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.x(_.wB,{data:function(){return H().menu}},{buttonViewModel:_.xk}))))},"pk"),"banner-image-layout-view-model",{props:{data:_.dl}});_.iV(_.H1(function(d){var H=d.data;d=_.cV({visibilityCallback:function(c){var p,g=(p=H().interaction)==null?void 0:p.onFirstVisible;c&&g&&_.EG(g)},
showOption:_.KQ});var K=_.Ej(function(){return H().interaction},DUL);
_.rc(function(){var c,p;p=(p=_.OS("yt.www.ads.eventcache.getLastCompanionData"))?(p=p())&&p.onLayoutVisibleCallback:null;(c=p)==null||c()});
return _.x("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.$M(d,K)},_.x("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.x(_.wB,{data:function(){return H().adImage}},{adImageViewModel:function(c){return _.x(_.RM,{data:c.data,
targetHeight:80,customCommandResolver:DUL})}})),_.x("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.x("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.x(_.wB,{data:function(){return H().adAvatarLockup}},{adAvatarLockupViewModel:function(c){return _.x(bB_,{data:c.data,
customCommandResolver:DUL})}})),_.x(_.wB,{data:function(){return H().adButton}},{adButtonViewModel:function(c){return _.x(_.pQ,{data:c.data,
customCommandResolver:DUL})}}),_.x("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.x(_.wB,{data:function(){return H().menu}},{buttonViewModel:_.xk}))))},"qk"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.dl}});var $__={shoppingCompanionCarouselRenderer:"ytd-shopping-companion-renderer",imageCompanionAdRenderer:"ytd-image-companion-renderer",actionCompanionAdRenderer:"ytd-action-companion-ad-renderer",bannerImageLayoutViewModel:"banner-image-layout-view-model",topBannerImageTextIconButtonedLayoutViewModel:"top-banner-image-text-icon-buttoned-layout-view-model"},RR=function(){var d=_.B.apply(this,arguments)||this;d.updateCompanionDataJobId=0;d.contentVideoId=null;d.player=null;d.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return d};
_.m(RR,_.B);_.G=RR.prototype;_.G.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:$__}}};
_.G.attached=function(){var d=this,H=_.Kf();H&&H.getPlayerPromise().then(function(K){d.getCachedDataAndListen(K)})};
_.G.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.G.updateRendererStamper=function(){var d={};if(this.data)for(var H in $__)if(this.data[H]){d[H]=this.data[H];break}if(this.oneofRenderer!=void 0||Object.keys(d).length)this.oneofRenderer=d};
_.G.getCachedDataAndListen=function(d){var H=this.retrieveCachedCompanionData();H&&Object.keys(H).length&&this.receiveCompanionData(H);this.ytPlayerListenerBehavior.listenToPlayerEvent(d,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=d};
_.G.retrieveCachedCompanionData=function(){return _.KF.yt&&_.KF.yt.www&&_.KF.yt.www.ads&&_.KF.yt.www.ads.eventcache&&_.KF.yt.www.ads.eventcache.getLastCompanionData?_.KF.yt.www.ads.eventcache.getLastCompanionData():null};
_.G.receiveCompanionData=function(d){d&&Object.keys(d).length?(this.contentVideoId=d.contentVideoId,this.setCompanionData(d)):this.setCompanionData(d)};
_.G.setCompanionData=function(d){this.cancelPendingCompanionAdJobs();if(d){this.updateCompanionDataJobId=0;for(var H in $__)$__.hasOwnProperty(H)&&(this.data[H]=void 0);d.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",d.shoppingCompanionCarouselRenderer):d.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",d.imageCompanionAdRenderer):d.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",d.actionCompanionAdRenderer),_.qo(this.hostElement,
"yt-hide-unlimited-offer-module"),_.qo(this.hostElement,"yt-hide-tvfilm-offer-module")):d.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",d.bannerImageLayoutViewModel):d.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",d.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.G.dataChanged=function(){var d=this,H=_.Kf();H?H.getPlayerPromise().then(function(K){d.contentVideoId&&K.getVideoUrl().includes("v="+d.contentVideoId)||(d.cancelPendingCompanionAdJobs(),d.updateRendererStamper())}):_.SD(Error("Do"))};
_.G.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.Xp.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.G.handleCompanionAdClicked=function(d,H){this.player.onAdUxClicked(d,H);this.player.pauseVideo()};
RR.prototype.dataChanged=RR.prototype.dataChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],RR.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],RR.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],RR.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.jk.YtPlayerListenerBehavior),_.O("design:type",_.vn)],RR.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],RR.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],RR.prototype,"oneofRenderer",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],RR.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],RR);
_.T(RR,"ytd-companion-slot-renderer",function(){if(v5N!==void 0)return v5N;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="companion" class="style-scope ytd-companion-slot-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return v5N=d},{mode:_.qk("kevlar_poly_si_batch_j067")?
1:2});var Kca;var VC=function(){return _.B.apply(this,arguments)||this};
_.m(VC,_.B);VC.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
VC.prototype.dataChanged=VC.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],VC.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],VC.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],VC.prototype,"companionSlotData",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],VC.prototype,"dataChanged",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],VC);
_.T(VC,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(Kca!==void 0)return Kca;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player-legacy-desktop-watch-ads-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-companion-legal-text-renderer data="[[data]]" disable-upgrade$="[[!data.companionLegalText]]" hidden="[[!data.companionLegalText]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-legal-text-renderer>\n<ytd-companion-slot-renderer data="[[companionSlotData]]" disable-upgrade$="[[!companionSlotData]]" hidden="[[!companionSlotData]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-slot-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Kca=d},{mode:1});var c_e;var UA=function(){var d=_.B.apply(this,arguments)||this;d.skinnyMode=!1;d.COMPACT_EVENT_COUNT=4;d.onShelfToggleButtonTap=function(){d.logTap(d.data);d.showingMore=!d.showingMore};
d.onShelfToggleButtonFocus=function(){d.showingMore||(d.logTap(d.data),d.showingMore=!0,_.vV(d,function(){var H=d.COMPACT_EVENT_COUNT-1,K;(K=_.Gn(d.hostElement).querySelector("#event-"+H))==null||K.focus()}))};
return d};
_.m(UA,_.B);_.G=UA.prototype;_.G.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.G.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.G.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.xf(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.xf(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.xf(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.xf(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.xf(this.infoTooltip,this.infoTooltip.hide))};
_.G.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.xf(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.xf(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.xf(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.xf(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.xf(this.infoTooltip,this.infoTooltip.hide))};
_.G.dataChanged=function(){this.firstEvent=this.get("data.events.0.ticketEventRenderer");this.data&&this.data.events&&(this.canShowMore=this.data.events.length>this.COMPACT_EVENT_COUNT,this.separator.style.visibility=this.data.events.length>1?"visible":"hidden");this.showingMore=!1;this.showingMoreChanged(!1)};
_.G.onShowingMoreChanged=function(){var d;this.showingMoreChanged((d=this.showingMore)!=null?d:!1)};
_.G.showingMoreChanged=function(d){var H=this.get("data.events")||[];this.set("restEvents",H.slice(1,d?H.length:this.COMPACT_EVENT_COUNT).map(function(K){return K.ticketEventRenderer}));
H.slice(0,d?H.length:this.COMPACT_EVENT_COUNT).forEach(function(K){var c=_.Fj();K=K.ticketEventRenderer.trackingParams;_.so()&&c&&K&&(K=_.P1(K),c&&_.b5(c,K))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.G.computeAriaLabel=function(d){return d.subtitle1+", "+d.subtitle2};
_.G.logTap=function(d){_.so()&&this.ytRendererBehavior.logExplicitClick(d)};
_.G.isKeyboardAction=function(d){return this.get("detail.x",d)===0&&this.get("detail.y",d)===0};
_.G.onFirstEventTap=function(d){d.target&&this.handleTap(d.target,this.firstEvent,this.isKeyboardAction(d))};
_.G.onTicketLinkTap=function(d){d.target&&this.handleTap(d.target,d.model.item,this.isKeyboardAction(d))};
_.G.handleTap=function(d,H,K){if(H.buttonCommand)if(H.hasMultipleOffers)Object.assign(_.M(H.buttonCommand,_.u$),{properties:{source:K?"keyboard":"tap"}}),this.logTap(H),this.popupPositionTarget=d,_.l5(this.hostElement,[H.buttonCommand],this.hostElement);else{var c;if((c=_.M(H.buttonCommand,_.yj))==null?0:c.url)this.logTap(H),_.EH(window,_.M(H.buttonCommand,_.yj).url)}};
UA.prototype.onShowingMoreChanged=UA.prototype.onShowingMoreChanged;UA.prototype.dataChanged=UA.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],UA.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],UA.prototype,"firstEvent",void 0);_.t([_.r(),_.O("design:type",Object)],UA.prototype,"restEvents",void 0);_.t([_.r(),_.O("design:type",String)],UA.prototype,"imageUrl",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],UA.prototype,"showingMore",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],UA.prototype,"canShowMore",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],UA.prototype,"skinnyMode",void 0);_.t([_.r(),_.O("design:type",HTMLElement)],UA.prototype,"popupPositionTarget",void 0);_.t([_.VP("#banner-info-tooltip"),_.O("design:type",Object)],UA.prototype,"infoTooltip",void 0);
_.t([_.VP("#info-container"),_.O("design:type",HTMLElement)],UA.prototype,"infoContainer",void 0);_.t([_.VP("#shelf-toggler"),_.O("design:type",HTMLElement)],UA.prototype,"shelfToggleButton",void 0);_.t([_.VP("#separator"),_.O("design:type",HTMLDivElement)],UA.prototype,"separator",void 0);_.t([_.r(),_.O("design:type",String)],UA.prototype,"shelfTogglerLabelText",void 0);_.t([_.r(),_.O("design:type",String)],UA.prototype,"shelfTogglerIcon",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],UA.prototype,"dataChanged",null);_.t([_.Mr("showingMore"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],UA.prototype,"onShowingMoreChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],UA);
_.T(UA,"ytd-ticket-shelf-renderer",function(){if(c_e!==void 0)return c_e;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ticket-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="head" class="style-scope ytd-ticket-shelf-renderer">\n  <h1 id="title" role="heading" aria-label$="[[firstEvent.title]]" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.title]]</h1>\n\n  <a id="info-container" href="javascript:" role="complementary" aria-label$="[[data.informationText]]" class="style-scope ytd-ticket-shelf-renderer">\n    <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n  </a>\n  \n  <tp-yt-paper-tooltip id="banner-info-tooltip" for="info-container" manual-mode="" position="bottom" class="style-scope ytd-ticket-shelf-renderer">\n    <div class="style-scope ytd-ticket-shelf-renderer">[[data.informationText]]</div>\n  </tp-yt-paper-tooltip>\n</div>\n<div id="body" class="style-scope ytd-ticket-shelf-renderer">\n  <div id="primary-event" class="style-scope ytd-ticket-shelf-renderer">\n    <template is="dom-if" if="[[data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <a id="calendar-avatar" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        <div id="calendar-avatar-month" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-month-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeMonth]]</div>\n        </div>\n        <div id="calendar-avatar-day" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-day-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeDay]]</div>\n        </div>\n      </a>\n    </template>\n\n    <template is="dom-if" if="[[!data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="thumbnail" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-img-shadow id="thumbnail-img" fit="" thumbnail="[[firstEvent.thumbnail]]" class="style-scope ytd-ticket-shelf-renderer">\n        </yt-img-shadow>\n      </div>\n    </template>\n\n    <div id="meta" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="meta-info" class="style-scope ytd-ticket-shelf-renderer">\n        <a id="nearest-with-location" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">[[data.title]]</a>\n        <div id="subtitle1" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.subtitle1]]</div>\n        <template is="dom-if" if="[[firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="subtitle2" class="style-scope ytd-ticket-shelf-renderer">\n            [[firstEvent.subtitle2]]\n          </div>\n        </template>\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <a class="vendor style-scope ytd-ticket-shelf-renderer" target="_blank" on-tap="onFirstEventTap" href$="[[firstEvent.buttonCommand.urlEndpoint.url]]">\n            [[firstEvent.linkText]]\n          </a>\n        </template>\n      </div>\n      <a id="view-tickets-link" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        [[firstEvent.buttonText]]\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n        </template>\n      </a>\n    </div>\n  </div>\n\n  <div id="separator" class="style-scope ytd-ticket-shelf-renderer"></div>\n\n  <div id="rest-events" class="style-scope ytd-ticket-shelf-renderer">\n    <div id="table" class="style-scope ytd-ticket-shelf-renderer">\n      <table cellspacing="0" cellpadding="0" class="style-scope ytd-ticket-shelf-renderer">\n        <template is="dom-repeat" items="[[restEvents]]" as="item" class="style-scope ytd-ticket-shelf-renderer">\n          <tr on-tap="onTicketLinkTap" class="style-scope ytd-ticket-shelf-renderer">\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-date-column style-scope ytd-ticket-shelf-renderer">[[item.timeDate]]</div>\n            </td>\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-weekday-column style-scope ytd-ticket-shelf-renderer">\n                <div class="style-scope ytd-ticket-shelf-renderer">\n                  [[item.timeWeekday]]<span id="time" class="style-scope ytd-ticket-shelf-renderer">[[item.timeTime]]</span>\n                </div>\n              </div>\n            </td>\n            <td class="where-column-td style-scope ytd-ticket-shelf-renderer">\n              <div class="where-column style-scope ytd-ticket-shelf-renderer">\n                <div class="venue-vendor-container style-scope ytd-ticket-shelf-renderer">\n                  <div class="venue style-scope ytd-ticket-shelf-renderer">[[item.subtitle2]]</div>\n                  <b class="dot style-scope ytd-ticket-shelf-renderer">\u00b7</b>\n                  <a class="vendor style-scope ytd-ticket-shelf-renderer" href="javascript:void(0)" id$="event-[[index]]">\n                    [[item.linkText]]\n                    <template is="dom-if" if="[[!item.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n                      <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n                    </template>\n                  </a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </template>\n      </table>\n      <yt-icon-button id="shelf-toggler" hidden="[[!canShowMore]]" label="[[shelfTogglerLabelText]]" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-icon icon="[[shelfTogglerIcon]]" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return c_e=d},{mode:1});var pza;var g1w;var h8=function(){return _.B.apply(this,arguments)||this};
_.m(h8,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],h8.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],h8);
_.T(h8,"ytd-comments-entry-point-message-renderer",function(){if(g1w!==void 0)return g1w;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="message" text="[[data.messageText]]" class="style-scope ytd-comments-entry-point-message-renderer"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return g1w=d},{mode:1});var iAH;var LP=function(){return _.B.apply(this,arguments)||this};
_.m(LP,_.B);_.H3.Object.defineProperties(LP.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.teaserAvatar)}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],LP.prototype,"data",void 0);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],LP.prototype,"hasAvatar",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],LP);
_.T(LP,"ytd-comments-entry-point-teaser-renderer",function(){if(iAH!==void 0)return iAH;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-teaser-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="teaser" class="style-scope ytd-comments-entry-point-teaser-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-teaser-renderer" height="24" hidden="[[!hasAvatar]]" thumbnail="[[data.teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-teaser-renderer">[[getSimpleString(data.teaserContent)]]</div></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return iAH=d},{mode:1});var Gi_;var M7=function(){return _.B.apply(this,arguments)||this};
_.m(M7,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],M7.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],M7);
_.T(M7,"ytd-comments-simplebox-renderer",function(){if(Gi_!==void 0)return Gi_;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="simplebox" class="style-scope ytd-comments-simplebox-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-simplebox-renderer" height="24" thumbnail="[[data.simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-simplebox-renderer">[[getSimpleString(data.simpleboxPlaceholder)]]</div></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Gi_=d},{mode:1});var mM=function(){var d=_.B.apply(this,arguments)||this;d.fullHeight=!_.h("comment_teaser_full_height_kill_switch")&&_.h("kevlar_watch_grid");return d};
_.m(mM,_.B);mM.prototype.configureRendererStamper=function(){return{contentRenderer:{id:"content-renderer",mapping:{commentsEntryPointTeaserRenderer:"ytd-comments-entry-point-teaser-renderer",commentsSimpleboxRenderer:"ytd-comments-simplebox-renderer",commentsEntryPointMessageRenderer:"ytd-comments-entry-point-message-renderer"}},"data.contents":{id:"contents",mapping:{commentsEntryPointTeaserRenderer:"ytd-comments-entry-point-teaser-renderer"}}}};
mM.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
mM.prototype.onTap=function(){var d=this.tapCommand;d&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(d))};
mM.prototype.onKeyUp=function(d){if(d.keyCode===13)this.onTap()};
_.H3.Object.defineProperties(mM.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.data)==null?0:d.onTap)return this.data.onTap;var H,K;if(((H=this.data)==null?0:H.teaserContent)||((K=this.data)==null?0:K.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)!=null&&d.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
mM.prototype.onKeyUp=mM.prototype.onKeyUp;mM.prototype.onTap=mM.prototype.onTap;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],mM.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],mM.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],mM.prototype,"fullHeight",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],mM.prototype,"tapCommand",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],mM.prototype,"simpleboxPlaceholder",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],mM.prototype,"hasSimpleboxPlaceholder",null);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],mM.prototype,"simpleboxAvatar",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],mM.prototype,"teaserContent",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],mM.prototype,"hasTeaserContent",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],mM.prototype,"teaserAvatar",null);
_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],mM.prototype,"hasTeaserAvatar",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],mM.prototype,"messageText",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],mM.prototype,"contentRenderer",null);_.t([_.I("data"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],mM.prototype,"hasContents",null);
_.t([_.I("data"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],mM.prototype,"hasContentRenderer",null);_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mM.prototype,"onTap",null);_.t([_.nK("keypress"),_.O("design:type",Function),_.O("design:paramtypes",[_.kJ]),_.O("design:returntype")],mM.prototype,"onKeyUp",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],mM);
_.T(mM,"ytd-comments-entry-point-header-renderer",function(){if(pza!==void 0)return pza;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-comments-entry-point-header-renderer"><div id="title" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.headerText)]]</div><div id="count" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.commentCount)]]</div></div><div id="content" class="style-scope ytd-comments-entry-point-header-renderer"><div id="simplebox" hidden="[[!hasSimpleboxPlaceholder]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" thumbnail="[[simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(simpleboxPlaceholder)]]</div></div><div id="teaser" hidden="[[!hasTeaserContent]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" hidden="[[!hasTeaserAvatar]]" thumbnail="[[teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(teaserContent)]]</div></div><yt-formatted-string id="message" text="[[messageText]]" class="style-scope ytd-comments-entry-point-header-renderer"></yt-formatted-string><div id="content-renderer" hidden="[[!hasContentRenderer]]" class="style-scope ytd-comments-entry-point-header-renderer"></div><div id="contents" class="style-scope ytd-comments-entry-point-header-renderer"></div></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return pza=d},{mode:1});var o1B;_.h("web_enable_sink_animated_rolling_character_and_number")?_.iV(_.uzM,"yt-animated-rolling-number",{props:{numberText:_.dl,numberValue:_.dl,heightPx:_.dl,fontSizeMultiplier:_.dl,shouldAnimate:_.dl,forceRollUp:_.dl}}):_.Nkb(_.P6g,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var q8K=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),aBr={numberText:"",heightPx:2*q8K,shouldAnimate:!1},wd=function(){var d=_.B.apply(this,arguments)||this;d.usingAnimatedComponents=!0;d.wasDetailed=!1;d.JSC$22785_browserSupportsAnimation=_.h("web_supports_animations_api");d.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};d.detailed=!1;d.shouldAnimate=!1;d.viewCountProps=aBr;d.dateTextProps=
aBr;d.metadataBadgesInDescription=_.h("web_metadata_badges_in_description");return d};
_.m(wd,_.B);_.G=wd.prototype;_.G.resetAnimationState=function(){this.shouldAnimate=!1};
_.G.updateDynamicMetadata=function(){if(this.JSC$22785_browserSupportsAnimation){if(!this.detailed){var d,H,K,c;var p=(d=this.videoPrimaryInfoRenderer)==null?void 0:(H=d.viewCount)==null?void 0:(K=H.videoViewCountRenderer)==null?void 0:(c=K.extraShortViewCount)==null?void 0:c.simpleText;var g,a,e,k;var C=(g=this.videoPrimaryInfoRenderer)==null?void 0:(a=g.viewCount)==null?void 0:(e=a.videoViewCountRenderer)==null?void 0:(k=e.shortViewCount)==null?void 0:k.simpleText}if(!C){var R,V,U,L;p=(R=this.videoPrimaryInfoRenderer)==
null?void 0:(V=R.viewCount)==null?void 0:(U=V.videoViewCountRenderer)==null?void 0:(L=U.unlabeledViewCountValue)==null?void 0:L.simpleText;var w,W,J,F;C=(w=this.videoPrimaryInfoRenderer)==null?void 0:(W=w.viewCount)==null?void 0:(J=W.videoViewCountRenderer)==null?void 0:(F=J.viewCount)==null?void 0:F.simpleText}var Y,A,E;d=Number((Y=this.videoPrimaryInfoRenderer)==null?void 0:(A=Y.viewCount)==null?void 0:(E=A.videoViewCountRenderer)==null?void 0:E.originalViewCount);var N,y;Y=(N=this.videoPrimaryInfoRenderer)==
null?void 0:(y=N.relativeDateText)==null?void 0:y.simpleText;var v;N=!((v=this.videoPrimaryInfoRenderer)==null||!v.relativeDateText);if(p&&C&&d&&(Y||!N)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;v=C.split(new RegExp("("+p+")"));p=HtE(v[0]);var el;C={numberText:(el=v[1])!=null?el:"",numberValue:d,heightPx:2*q8K,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var l1;el=((l1=v[2])!=null?l1:"")+"  ";this.setViewCount(C,p,HtE(el));if(!this.detailed&&
N){p=Y.split(/(\d+)/);l1=HtE(p[0]);var V4;el={numberText:(V4=p[1])!=null?V4:"",heightPx:2*q8K,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Mf;V4=((Mf=p[2])!=null?Mf:"")+"  ";this.setDateText(el,l1,HtE(V4))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.G.setViewCount=function(d,H,K){_.jG(H)!==_.jG(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=H);this.viewCountProps.numberText!==(d==null?void 0:d.numberText)&&(this.viewCountProps=d||aBr);_.jG(K)!==_.jG(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=K)};
_.G.setDateText=function(d,H,K){_.jG(H)!==_.jG(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=H);this.dateTextProps.numberText!==(d==null?void 0:d.numberText)&&(this.dateTextProps=d||aBr);_.jG(K)!==_.jG(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=K)};
_.G.onYtUpdateViewershipAction=function(d){this.videoPrimaryInfoRenderer&&(_.M(d,cLN).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.M(d,cLN).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.M(d,cLN).viewCount)))};
_.G.onYtUpdateDateTextAction=function(d){if(this.videoPrimaryInfoRenderer){d=_.M(d,_.$NB).dateText;this.shouldAnimate=!0;var H;((H=this.videoPrimaryInfoRenderer)==null?0:H.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",d):this.set("videoPrimaryInfoRenderer.dateText",d)}};
_.H3.Object.defineProperties(wd.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return dSc(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.jG(dSc(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.jG(this.viewCountPreNumberText),this.viewCountProps.numberText,_.jG(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.jG(this.dateTextPreNumberText),this.dateTextProps.numberText,_.jG(this.dateTextPostNumberText)].join("")}}});
wd.prototype.updateDynamicMetadata=wd.prototype.updateDynamicMetadata;wd.prototype.resetAnimationState=wd.prototype.resetAnimationState;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],wd.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],wd.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],wd.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],wd.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],wd.prototype,"videoPrimaryInfoRenderer",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],wd.prototype,"detailed",void 0);_.t([_.r(),_.O("design:type",Object)],wd.prototype,"shouldAnimate",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],wd.prototype,"viewCountPreNumberText",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],wd.prototype,"viewCountProps",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],wd.prototype,"viewCountPostNumberText",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],wd.prototype,"dateTextPreNumberText",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],wd.prototype,"dateTextProps",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],wd.prototype,"dateTextPostNumberText",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],wd.prototype,"metadataBadgesInDescription",void 0);_.t([_.I("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.O("design:type",Object),_.O("design:paramtypes",[])],wd.prototype,"infoText",null);
_.t([_.I("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.O("design:type",String),_.O("design:paramtypes",[])],wd.prototype,"descriptionInfoTooltipText",null);_.t([_.I("detailed"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],wd.prototype,"showDescriptionInfoTooltip",null);
_.t([_.I("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.O("design:type",String),_.O("design:paramtypes",[])],wd.prototype,"animatedViewCountAccessibilityLabel",null);_.t([_.I("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.O("design:type",String),_.O("design:paramtypes",[])],wd.prototype,"animatedDateTextAccessibilityLabel",null);
_.t([_.CK("videoPrimaryInfoRenderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],wd.prototype,"resetAnimationState",null);_.t([_.CK("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],wd.prototype,"updateDynamicMetadata",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-watch-info-text"})],wd);
_.T(wd,"ytd-watch-info-text",function(){if(o1B!==void 0)return o1B;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return o1B=d},{mode:1});var lBS;var ezH="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var kiH=_.H1(function(d){var H=d.data;var K=d.setTapCommand;_.wc(function(){var c=_.T6(H().onTap);K(c)},"X4onJd");
return _.x("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.x(_.wB,{data:function(){return H().avatar}},{avatarViewModel:_.JV}),_.x("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.x("span",null,function(){return H().simpleboxText})))},"rk");var x_K=_.H1(function(d){return _.x("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.x(_.n,{cond:function(){return _.M(d.data().avatar,_.tW)},
then:function(H){return _.x(_.JV,{data:H,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.x("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.x(_.j$,{text:function(){return d.data().teaserText}})))},"sk");var n1e=_.H1(function(d){var H=d.data;var K=d.setTapCommand;_.wc(function(){var c=_.T6(H().onTap);K(c)},"PmAol");
return _.x("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.x(_.wB,{data:function(){return H().teasers}},{commentsEntryPointTeaserViewModel:x_K}))},"tk");var CrC=_.H1(function(d){var H=d.data;var K=d.setTapCommand;_.wc(function(){var c=_.T6(H().onTap);K(c)},"Nh3Hjd");
return _.x("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.x(_.j$,{text:function(){return H().messageText}}))},"uk");var RzH=_.H1(function(d){var H=d.data;var K=d.setTapCommand;var c=d.isDisabled;_.wc(function(){var p=(c==null?0:c())?void 0:_.T6(H().onTap);K(p)},"omeiWe");
return _.x("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.x(_.hu,{icon:function(){return H().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.x(_.n,{cond:function(){return H().image},
then:function(p){return _.x(_.d7,{data:p,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.x(_.j$,{text:function(){return H().text},
className:function(){return H().image||H().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.x(_.wB,{data:function(){return H().button}},{buttonViewModel:function(p){return _.x(_.xk,{data:p.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:c==null?void 0:c()}}})}}))},"vk");var VXO=_.H1(function(d){var H=d.data;var K=d.itemIndex;var c=d.selectedIndex;var p=d.indexUpdatedCallback;var g=d.observer;d=d.title;var a=_.Af("yt-carousel-item-view-model",function(V){g&&g().observe(V)}),e=function(V){K()===c()&&p(V)},k=_.Tv(WgO),C=_.Tv(_.erD),R=function(){var V,U,L;
return((V=H())==null?void 0:V.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!k()||((U=H())==null?void 0:U.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&C().includes("PAposts_by_host")||((L=H())==null?void 0:L.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&C().includes("PAyouchat")};
return _.x("yt-carousel-item-view-model",{el:a,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":d},_.x(_.wB,{data:function(){var V,U;return(U=(V=_.M(H().carouselItem,wva))==null?void 0:V.textCarousel)!=null?U:H().carouselItem}},{textCarouselItemViewModel:function(V){return _.x(RzH,{data:V.data,
setTapCommand:e,isDisabled:R})},
commentTeaserCarouselItemViewModel:function(V){return _.x(n1e,{data:V.data,setTapCommand:e})},
commentInputBoxCarouselItemViewModel:function(V){return _.x(kiH,{data:V.data,setTapCommand:e})},
commentsEntryPointMessageViewModel:function(V){return _.x(CrC,{data:V.data,setTapCommand:e})}}))},"wk");var U__=_.H1(function(d){var H=d.numDots;var K=d.activeIndex;return _.x("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.x(_.L6,{each:function(){return Array.from({length:H()})},
keyBy:"INDEX"},function(c,p){return _.x("div",{class:function(){var g={};return _.zx("ytCarouselDotsShapeDot",(g.ytCarouselDotsShapeDotActive=p===K(),g))}})}))},"xk");var hzB=_.H1(function(d){var H=d.data;var K=d.handleCarouselNavigation;var c=d.numItems;var p=d.selectedIndex;var g=function(){return{disabled:p()===0}},a=function(){return{disabled:p()===c()-1}};
return _.x("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.x("div",null,_.x("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return H().title}),_.x(_.n,{cond:function(){return H().subtitle},
then:function(e){return _.x("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return H().subtitleAccessibilityText}},e)}})),_.x(_.n,{cond:function(){return c()>1},
then:function(){return _.x("div",{class:"ytCarouselTitleViewModelNavigation"},_.x(U__,{numDots:c,activeIndex:p}),_.x(_.n,{cond:function(){return H().previousButton},
then:function(e){return _.x(_.wB,{data:e},{buttonViewModel:function(k){return _.x(_.xk,{data:k.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return K(-1)},
buttonOverrides:g})}})}}),_.x(_.n,{cond:function(){return H().nextButton},
then:function(e){return _.x(_.wB,{data:e},{buttonViewModel:function(k){return _.x(_.xk,{data:k.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return K(1)},
buttonOverrides:a})}})}}))}}))},"yk");_.iV(_.H1(function(d){var H=d.data;var K,c=_.Af("yt-video-metadata-carousel-view-model"),p=_.Af("div",function(N){var y=function(){var v=N.offsetWidth*W(),el=24*(W()-1);U(v+el)};
y();window.ResizeObserver&&(K=new ResizeObserver(y),K.observe(N))}),g=_.Fm("HTML_DIR")==="rtl",a=!1,e=0,k=0;
d=_.q(_.GO(0,void 0,"fCZdg"));var C=d.next().value,R=d.next().value;d=_.q(_.GO(0,void 0,"FQiAle"));var V=d.next().value,U=d.next().value;d=_.q(_.GO(!1,void 0,"O4owzd"));var L=d.next().value,w=d.next().value,W=function(){var N,y,v;return(v=(N=H())==null?void 0:(y=N.carouselTitles)==null?void 0:y.length)!=null?v:0},J=function(){p.value&&p.value.scrollLeft!==e&&R((g?p.value.scrollLeft<e:p.value.scrollLeft>e)?Math.min(C()+1,W()-1):Math.max(C()-1,0))},F;
window.IntersectionObserver&&(F=new IntersectionObserver(function(N){N=_.q(N);for(var y=N.next();!y.done;y=N.next())if(y.value.isIntersecting){if(a){a=!1;break}J()}else R(k)},{threshold:.2}));
_.wc(function(){if(p.value){var N=(g?-1:1)*(V()/W()+12)*(L()&&F?k:C());typeof p.value.scrollTo==="function"?p.value.scrollTo({left:N,behavior:"smooth"}):p.value.scrollLeft=N;e=N;k=L()&&F?k:C()}},"oi9Jzd");
var Y,A=function(N){Y=N};
_.Pk(function(){var N;(N=K)==null||N.disconnect();var y;(y=F)==null||y.disconnect()});
var E=function(N){N=C()+N;N>=0&&N<W()&&(a=!0,R(N))};
return _.x("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:c,"on:click":_.n7(function(N){if(_.sj(_.JW(N),c.value,["BUTTON".toString()])||!Y)return!1;_.Kj().resolve(_.cb).resolveCommand(Y,{forceClickLogging:!0});return!1}),
"on:touchstart":_.n7(function(){w(!0);return!1}),
"on:touchend":_.n7(function(){F||J();w(!1);return!1}),
hidden:function(){var N,y;return!((N=H())==null?0:(y=N.carouselItems)==null?0:y.length)}},_.x("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.x(_.n,{cond:function(){return H().carouselTitles},
then:function(N){return _.x(_.wB,{data:function(){return N()[L()&&F?k:C()]}},{carouselTitleViewModel:function(y){return _.x(hzB,{data:y.data,
handleCarouselNavigation:E,numItems:W,selectedIndex:C})}})}})),_.x("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:p},_.x("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+V()+"px;"}},_.x(_.n,{cond:function(){return H().carouselItems},
then:function(N){return _.x(_.L6,{each:N},function(y,v){return _.x(_.wB,{data:function(){return y}},{carouselItemViewModel:function(el){return _.x(VXO,{data:el.data,
itemIndex:v,selectedIndex:C,indexUpdatedCallback:A,observer:F,title:function(){a:{var l1=v();var V4,Mf=(V4=H())==null?void 0:V4.carouselTitles;if(Mf&&(l1=Mf[l1])){var LF;l1=(LF=_.M(l1,mSN))==null?void 0:LF.title;break a}l1=void 0}return l1}})}})})}}))))},"zk"),"yt-video-metadata-carousel-view-model",{props:{data:_.dl}});var Lcc=_.h("web_action_buttons_update_owner_width")?32:12,PS=function(){var d=_.B.apply(this,arguments)||this;d.isHovering=!1;d.enableColorSampling=_.h("web_delhi_colorful_sd");d.metadataBadgesInDescription=_.h("web_metadata_badges_in_description");d.descriptionCollapsed=!0;d.useFadedScrimDescription=_.h("kevlar_enable_faded_scrim_on_description");d.skinnyMode=!1;d.playlist=!1;d.isDark=document.documentElement.hasAttribute("dark");d.disableVideoOwnerOnTap=_.h("swatchie_video_owner_on_tap_ks");d.swatcherooDelayLoad=
_.h("swatcheroo_enable_ghost_cards");d.primaryMenuWidth=0;d.videoId="";d.titleHeadlineXs=_.h("web_watch_typography_title_headline_xs");d.titleHeadlineS=_.h("web_watch_typography_title_headline_s");d.titleHeadlineM=_.h("web_watch_typography_title_headline_m");d.titleHashtagBlackLinkified=_.h("web_title_hashtag_black_linkified");d.titleHashtagGreyLinkified=_.h("web_title_hashtag_grey_linkified");d.actionButtonsUpdateOwnerWidth=_.h("web_action_buttons_update_owner_width");d.shouldForceIconOnly=!1;d.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};d.isFullscreen=!1;d.isTheaterMode=!1;return d};
_.m(PS,_.B);_.G=PS.prototype;_.G.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.G.updateOwnerAndDescriptionPosition=function(){_.h("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.sZ(this.bottomRowElement,this.ownerElement)):(_.sZ(this.bottomRowElement,this.descriptionElement),_.sZ(this.topRowElement,this.ownerElement)))};
_.G.titleOnTap=function(d){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.vg(_.jh(d)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;((H=window.getSelection())==null?0:H.toString().length)||this.handleExpandDescriptionCommands()}};
_.G.videoOwnerOnTap=function(d){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.vg(_.jh(d)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.G.detached=function(){var d=this,H;return _.l(function(K){(H=d.resizeObserver)==null||H.disconnect();_.VE(K)})};
_.G.maybeAttachResizeObserver=function(){var d=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.NV(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){d.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.G.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var d=this.hostElement.clientWidth,H=Math.max(this.largerItemWrap?400:350,d/2-Lcc);if(_.h("web_action_buttons_update_owner_width")){var K;H=(((K=document.getElementById("owner"))==null?void 0:K.clientWidth)||0)+Lcc}this.actionsOnSeparateLine=this.primaryMenuWidth>d-H?!0:!1}};
_.G.stripAttributedDescription=function(d){return{content:d.content.replace(/[\r\n]{2,}/g,"\n")}};
_.G.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.h("web_modern_buttons"),forceIconButton:!_.h("web_modern_buttons")},properties:{topLevelIconsOnly:"[[skinnyMode]]"}}},events:!0},"videoSecondaryInfoRenderer.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",
params:{withCount:!0,showTextWhileAnimating:_.h("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.G.videoPrimaryInfoRendererChanged=function(){var d;if((d=this.videoPrimaryInfoRenderer)==null?0:d.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.G.videoSecondaryInfoRendererChanged=function(){var d,H;(H=(d=this.descriptionInlineExpander).collapse)==null||H.call(d);this.descriptionExpandClientVe=_.l8(110509);this.descriptionCollapseClientVe=_.l8(110510);d=_.Fj();H=_.so();d&&H&&(_.h("combine_ve_grafts")?(_.ec(_.hR(),this.descriptionExpandClientVe,H),_.ec(_.hR(),this.descriptionCollapseClientVe,H)):_.yz(d,H,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.G.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.G.updateTopLevelIconsOnly=function(){var d=this;_.h("top_level_update_killswitch")||this.menu&&_.Xp.addLowPriorityJob(function(){d.menu.topLevelIconsOnly=d.skinnyMode},_.iT("swathceroo_delay_flexible_menu_update",100))};
_.G.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.h("web_action_buttons_minimize_subscribe")};
_.G.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.G.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.G.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.G.onYtTextInlineExpanderExpandedChanged=function(){if(!_.h("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var d,H;(H=(d=this.structuredDescriptionContentRendererElement).resize)==null||H.call(d)}};
_.G.onRenderStamperFinished=function(d){(d==null?void 0:d.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.G.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.G.onYtExpanderLessTapped=function(){var d,H=(d=this.videoSecondaryInfoRenderer)==null?void 0:d.showLessCommand;H&&this.ytComponentBehavior.resolveCommand(H)};
_.G.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.G.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.G.onDescriptionClick=function(d){if(!_.vg(_.jh(d)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;((H=window.getSelection())==null?0:H.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.h("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.G.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.G.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.G.logCollapseClick=function(){var d=_.Fj();d&&this.descriptionCollapseClientVe&&_.fo(d,this.descriptionCollapseClientVe)};
_.G.logExpandClick=function(){var d=_.Fj();d&&this.descriptionExpandClientVe&&_.fo(d,this.descriptionExpandClientVe)};
_.G.collapseDescription=function(){this.descriptionCollapsed=!0};
_.G.scrollToTopOfContainer=function(){_.oF(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.G.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.G.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.G.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.G.resize=function(){if(this.descriptionInlineExpander){var d,H;(H=(d=this.descriptionInlineExpander).resize)==null||H.call(d)}else _.Jf(new _.m1("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var K;(K=this.menu)==null||K.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.G.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var d,H,K,c,p=_.h("web_action_buttons_update_owner_width")?(K=(d=_.Gn(this.menu).querySelector("#button-shape"))==null?void 0:d.clientWidth)!=null?K:0:(c=(H=_.Gn(this.menu).querySelector("#button"))==null?void 0:H.clientWidth)!=null?c:0,g,a;d=((a=(g=_.Gn(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:g.clientWidth)!=null?a:0)+8+p;var e,k;p=(k=(e=_.Gn(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:e.children.length)!=null?k:2;d<=8*p||(this.primaryMenuWidth=d)}};
_.G.onYtUpdateTitleAction=function(d){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.M(d,KrC).title)};
_.G.onYtUpdateDescriptionAction=function(d){if(d=_.M(d,_.cTd)){var H,K=!((H=this.videoSecondaryInfoRenderer)==null||!H.attributedDescription);d.isEmpty||!d.description&&!d.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):d.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",d.attributedDescription):d.description&&(K?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.JR(d.description)):this.set("videoSecondaryInfoRenderer.description",d.description))}};
_.G.onYtDarkModeToggledAction=function(d){this.isDark=d};
_.G.registerPanel=function(){if(!_.h("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var d=_.h("web_watch_imax_theater_mode")&&this.isTheaterMode;d=_.h("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||d;var H=_.Kj().resolve(_.W6);H&&!d&&H.registerPanel("engagement-panel-structured-description",this)}};
_.G.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.G.parseColorSamplingData=function(){var d;if(_.h("web_delhi_colorful_sd")&&((d=this.structuredDescriptionContentRenderer)==null?0:d.items)&&(d=this.structuredDescriptionContentRenderer.items.find(function(p){return!!_.M(p,FP)}))){var H,K;
this.hoverColor={lightTheme:(H=_.M(d,FP))==null?void 0:H.lightThemeColorPalette,darkTheme:(K=_.M(d,FP))==null?void 0:K.darkThemeColorPalette};var c;this.hoverText=(c=_.M(d,FP))==null?void 0:c.colorSampledDescriptionBodyText}};
_.G.updateHoverColor=function(){if(_.h("web_delhi_colorful_sd")){var d=this.hoverColor,H={},K;d=(K=this.isDark?d==null?void 0:d.darkTheme:d==null?void 0:d.lightTheme)!=null?K:{};K=_.q(ezH);for(var c=K.next();!c.done;c=K.next()){c=c.value;var p=d[c];H["--yt-saturated-"+_.Uo(c)]=p?_.Ob(p):"initial"}_.eO(this.hostElement,H)}};
_.G.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.G.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.G.showPanel=function(d){this.expandDescription();var H=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;H.resize();var K,c=d==null?void 0:(K=d.sectionListEngagementPanelExtras)==null?void 0:K.scrollToItemSectionIdentifier;c?_.Xp.addJob(function(){H==null||H.scrollToSection(c)},8):this.scrollToTopOfContainer()};
_.G.isVisible=function(){return!this.descriptionCollapsed};
_.G.getReloadContinuation=function(){};
_.G.hidePanel=function(){};
_.G.updatePanel=function(){};
_.H3.Object.defineProperties(PS.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var d;return _.h("web_delhi_colorful_sd")&&(d=this.structuredDescriptionContentRenderer)!=null&&d.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(H){return!_.M(H,FP)&&!_.M(H,gOK)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.structuredDescriptionContentRendererComputed)!=null&&d.items){var H;d=_.q((H=this.structuredDescriptionContentRendererComputed)==null?void 0:H.items);for(H=d.next();!H.done;H=d.next())if(H=_.M(H.value,_.HNB))return H}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.videoPrimaryInfoRenderer)==null?0:d.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return!!((d=this.videoSecondaryInfoRenderer)==null?0:(H=d.owner)==null?0:(K=H.videoOwnerRenderer)==null?0:K.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var d,H;if((d=this.videoSecondaryInfoRenderer)==null?0:(H=d.attributedDescription)==null?0:H.content){var K,c;return(c=this.stripAttributedDescription((K=this.videoSecondaryInfoRenderer)==null?void 0:K.attributedDescription))!=null?c:{runs:[]}}}if(_.h("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var p,g,a,e;return(e=(a=(p=this.videoSecondaryInfoRenderer)==
null?void 0:p.description)!=null?a:(g=this.videoSecondaryInfoRenderer)==null?void 0:g.attributedDescription)!=null?e:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var d,H;return(H=(d=this.videoSecondaryInfoRenderer)==null?void 0:d.headerRuns)!=null?H:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.commentsEntryPointHeaderRenderer)==null||!d.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.videoMetadataCarousel)==null||!d.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.iT("swatchie_desc_lines",3):this.hasTeaserCarousel?_.iT("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var d,H,K=Object.assign({},(d=this.videoSecondaryInfoRenderer)==null?void 0:(H=d.metadataRowContainer)==null?void 0:H.metadataRowContainerRenderer);if(K&&K.rows&&K.collapsedItemCount!==void 0&&!(K.rows.length<=K.collapsedItemCount))return K.rows=K.rows.slice(K.collapsedItemCount),K.collapsedItemCount=0,K}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var d,H,K=Object.assign({},(d=this.videoSecondaryInfoRenderer)==null?void 0:(H=d.metadataRowContainer)==null?void 0:H.metadataRowContainerRenderer);if(K&&K.rows&&K.collapsedItemCount!==void 0)return K.rows=K.rows.slice(0,K.collapsedItemCount),K.collapsedItemCount=K.rows.length,K}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var d,H;return!!((d=this.structuredDescriptionContentRendererComputed)==null?0:(H=d.items)==null?0:H.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var d;return(d=this.videoSecondaryInfoRenderer)==null?void 0:d.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return((d=this.videoSecondaryInfoRenderer)==null?0:(H=d.owner)==null?0:(K=H.videoOwnerRenderer)==null?0:K.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c;return!!((d=this.videoPrimaryInfoRenderer)==null?0:(H=d.videoActions)==null?0:(K=H.menuRenderer)==null?0:(c=K.flexibleItems)==null?0:c.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.AR(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.AR(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var d=this;if(_.h("web_title_hashtag_grey_delinkified")){var H,K=_.rs.unsafeClone((H=this.videoPrimaryInfoRenderer)==null?void 0:H.title);(H=K==null?void 0:K.runs)&&H.forEach(function(c){if(c==null?0:c.navigationEndpoint)c.textColor=4284506208,d.isDark&&(c.textColor=4289374890)});
return K}return(K=this.videoPrimaryInfoRenderer)==null?void 0:K.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.h("web_title_hashtag_black_delinkified")||_.h("web_title_hashtag_grey_delinkified")}}});
PS.prototype.updateHoverColor=PS.prototype.updateHoverColor;PS.prototype.parseColorSamplingData=PS.prototype.parseColorSamplingData;PS.prototype.resetDescriptionState=PS.prototype.resetDescriptionState;PS.prototype.registerPanel=PS.prototype.registerPanel;PS.prototype.onYtExpanderLessTapped=PS.prototype.onYtExpanderLessTapped;PS.prototype.onYtExpanderMoreTapped=PS.prototype.onYtExpanderMoreTapped;PS.prototype.onRenderStamperFinished=PS.prototype.onRenderStamperFinished;
PS.prototype.onYtTextInlineExpanderExpandedChanged=PS.prototype.onYtTextInlineExpanderExpandedChanged;PS.prototype.onYtTextInlineExpanderCollapseClicked=PS.prototype.onYtTextInlineExpanderCollapseClicked;PS.prototype.onYtTextInlineExpanderExpandClicked=PS.prototype.onYtTextInlineExpanderExpandClicked;PS.prototype.moveActionsElement=PS.prototype.moveActionsElement;PS.prototype.updateShouldForceIconOnly=PS.prototype.updateShouldForceIconOnly;PS.prototype.updateTopLevelIconsOnly=PS.prototype.updateTopLevelIconsOnly;
PS.prototype.structuredDescriptionContentRendererChanged=PS.prototype.structuredDescriptionContentRendererChanged;PS.prototype.videoSecondaryInfoRendererChanged=PS.prototype.videoSecondaryInfoRendererChanged;PS.prototype.videoPrimaryInfoRendererChanged=PS.prototype.videoPrimaryInfoRendererChanged;PS.prototype.maybeUpdateActionsOnSeparateLine=PS.prototype.maybeUpdateActionsOnSeparateLine;PS.prototype.updateOwnerAndDescriptionPosition=PS.prototype.updateOwnerAndDescriptionPosition;
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],PS.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],PS.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],PS.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.to),_.O("design:type",Object)],PS.prototype,"ytdReduxBehavior",void 0);_.t([_.VP("#above-the-fold"),_.O("design:type",HTMLElement)],PS.prototype,"aboveTheFoldContainer",void 0);_.t([_.VP("#menu ytd-menu-renderer"),_.O("design:type",Object)],PS.prototype,"menu",void 0);_.t([_.VP("#description-inline-expander"),_.O("design:type",Object)],PS.prototype,"descriptionInlineExpander",void 0);
_.t([_.VP("#faded-structured-description"),_.O("design:type",Object)],PS.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.t([_.VP("#structured-description"),_.O("design:type",Object)],PS.prototype,"structuredDescriptionContentRendererElement",void 0);_.t([_.VP("#title"),_.O("design:type",HTMLElement)],PS.prototype,"titleElement",void 0);_.t([_.VP("#description"),_.O("design:type",HTMLElement)],PS.prototype,"descriptionElement",void 0);
_.t([_.VP("#description-interaction"),_.O("design:type",Object)],PS.prototype,"descriptionInteraction",void 0);_.t([_.VP("#owner"),_.O("design:type",HTMLElement)],PS.prototype,"ownerElement",void 0);_.t([_.VP("#top-row"),_.O("design:type",HTMLElement)],PS.prototype,"topRowElement",void 0);_.t([_.VP("#bottom-row"),_.O("design:type",HTMLElement)],PS.prototype,"bottomRowElement",void 0);_.t([_.VP("#actions"),_.O("design:type",HTMLElement)],PS.prototype,"actionsElement",void 0);
_.t([_.VP("#bottom-actions"),_.O("design:type",HTMLElement)],PS.prototype,"bottomActionsElement",void 0);_.t([_.VP("#ytd-watch-info-text"),_.O("design:type",Object)],PS.prototype,"watchInfoTextElement",void 0);_.t([_.r(),_.O("design:type",Object)],PS.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],PS.prototype,"videoPrimaryInfoRenderer",void 0);_.t([_.r(),_.O("design:type",Object)],PS.prototype,"videoSecondaryInfoRenderer",void 0);
_.t([_.r(),_.O("design:type",Object)],PS.prototype,"commentsEntryPointHeaderRenderer",void 0);_.t([_.r(),_.O("design:type",Object)],PS.prototype,"videoMetadataCarousel",void 0);_.t([_.r(),_.O("design:type",Object)],PS.prototype,"structuredDescriptionContentRenderer",void 0);_.t([_.I("structuredDescriptionContentRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],PS.prototype,"structuredDescriptionContentRendererComputed",null);
_.t([_.r(),_.O("design:type",Object)],PS.prototype,"videoSummary",void 0);_.t([_.r(),_.O("design:type",Object)],PS.prototype,"merchShelf",void 0);_.t([_.r(),_.O("design:type",Object)],PS.prototype,"infoPanelBelowMetadata",void 0);_.t([_.r(),_.O("design:type",Object)],PS.prototype,"hoverColor",void 0);_.t([_.r(),_.O("design:type",Object)],PS.prototype,"hoverText",void 0);_.t([_.r(),_.O("design:type",Object)],PS.prototype,"isHovering",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PS.prototype,"enableColorSampling",void 0);_.t([_.I("structuredDescriptionContentRendererComputed"),_.O("design:type",Object),_.O("design:paramtypes",[])],PS.prototype,"productShelf",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PS.prototype,"metadataBadgesInDescription",void 0);_.t([_.I("videoPrimaryInfoRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],PS.prototype,"shouldHideBadges",null);
_.t([_.I("productShelf","descriptionCollapsed"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],PS.prototype,"shouldShowProductShelf",null);_.t([_.r(),_.O("design:type",Boolean)],PS.prototype,"isWatchFlexy",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PS.prototype,"descriptionCollapsed",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],PS.prototype,"useFadedScrimDescription",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PS.prototype,"skinnyMode",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("videoSecondaryInfoRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],PS.prototype,"largerItemWrap",null);_.t([_.r(),_.O("design:type",Object)],PS.prototype,"playlist",void 0);_.t([_.r(),_.O("design:type",Object)],PS.prototype,"clarifyBox",void 0);_.t([_.r(),_.O("design:type",Object)],PS.prototype,"playerAds",void 0);
_.t([_.r(),_.O("design:type",Boolean)],PS.prototype,"isDark",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],PS.prototype,"actionsOnSeparateLine",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PS.prototype,"disableVideoOwnerOnTap",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PS.prototype,"swatcherooDelayLoad",void 0);_.t([_.r(),_.O("design:type",Boolean)],PS.prototype,"suppressTopLevelMetadataRows",void 0);
_.t([_.r(),_.O("design:type",Object)],PS.prototype,"primaryMenuWidth",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PS.prototype,"videoId",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PS.prototype,"titleHeadlineXs",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PS.prototype,"titleHeadlineS",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PS.prototype,"titleHeadlineM",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PS.prototype,"titleHashtagBlackLinkified",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PS.prototype,"titleHashtagGreyLinkified",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PS.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.t([_.r(),_.O("design:type",Object)],PS.prototype,"shouldForceIconOnly",void 0);
_.t([_.Mr("skinnyMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"updateOwnerAndDescriptionPosition",null);_.t([_.Mr("skinnyMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.t([_.I("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.O("design:type",Object),_.O("design:paramtypes",[])],PS.prototype,"descriptionText",null);_.t([_.I("videoSecondaryInfoRenderer.headerRuns"),_.O("design:type",Array),_.O("design:paramtypes",[])],PS.prototype,"headerRuns",null);
_.t([_.r({value:!1}),_.I("commentsEntryPointHeaderRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],PS.prototype,"hasTeaser",null);_.t([_.r({value:!1,reflectToAttribute:!0}),_.I("videoMetadataCarousel"),_.O("design:type",Object),_.O("design:paramtypes",[])],PS.prototype,"hasTeaserCarousel",null);_.t([_.r({value:3}),_.I("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.O("design:type",Object),_.O("design:paramtypes",[])],PS.prototype,"descriptionMaxLines",null);
_.t([_.I("videoSecondaryInfoRenderer.metadataRowContainer"),_.O("design:type",Object),_.O("design:paramtypes",[])],PS.prototype,"collapsibleMetadataRows",null);_.t([_.I("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.O("design:type",Object),_.O("design:paramtypes",[])],PS.prototype,"alwaysVisibleMetadataRows",null);
_.t([_.I("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],PS.prototype,"hasInlineStructuredDescription",null);_.t([_.I("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],PS.prototype,"showInlineStructuredDescription",null);
_.t([_.I("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],PS.prototype,"descriptionExpandCommand",null);_.t([_.I("videoSecondaryInfoRenderer.owner"),_.O("design:type",Object),_.O("design:paramtypes",[])],PS.prototype,"videoOwnerCommand",null);_.t([_.r({reflectToAttribute:!0}),_.I("videoPrimaryInfoRenderer.videoActions"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],PS.prototype,"flexMenuEnabled",null);
_.t([_.r({selector:_.FX,reflectToAttribute:!0}),_.O("design:type",Object)],PS.prototype,"isFullscreen",void 0);_.t([_.r({selector:_.sQ,reflectToAttribute:!0}),_.O("design:type",Object)],PS.prototype,"isTheaterMode",void 0);_.t([_.I("descriptionText","useFadedScrimDescription"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],PS.prototype,"showAttributedStringDescription",null);
_.t([_.I("descriptionText","useFadedScrimDescription"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],PS.prototype,"showFormattedStringDescription",null);_.t([_.I("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],PS.prototype,"showFadedStructuredDescription",null);
_.t([_.Mr("videoPrimaryInfoRenderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"videoPrimaryInfoRendererChanged",null);_.t([_.I("videoPrimaryInfoRenderer.title"),_.O("design:type",Object),_.O("design:paramtypes",[])],PS.prototype,"videoTitle",null);_.t([_.I("videoPrimaryInfoRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],PS.prototype,"noEndpoints",null);
_.t([_.Mr("videoSecondaryInfoRenderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"videoSecondaryInfoRendererChanged",null);_.t([_.CK("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"structuredDescriptionContentRendererChanged",null);
_.t([_.CK("skinnyMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"updateTopLevelIconsOnly",null);_.t([_.CK("skinnyMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"updateShouldForceIconOnly",null);_.t([_.CK("skinnyMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"moveActionsElement",null);
_.t([_.nK("yt-text-inline-expander-expand-clicked"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"onYtTextInlineExpanderExpandClicked",null);_.t([_.nK("yt-text-inline-expander-collapse-clicked"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.t([_.nK("yt-text-inline-expander-expanded-changed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.t([_.nK("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],PS.prototype,"onRenderStamperFinished",null);
_.t([_.nK("yt-expander-more-tapped"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"onYtExpanderMoreTapped",null);_.t([_.nK("yt-expander-less-tapped"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"onYtExpanderLessTapped",null);
_.t([_.CK("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"registerPanel",null);_.t([_.CK("videoSecondaryInfoRenderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"resetDescriptionState",null);
_.t([_.CK("structuredDescriptionContentRenderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"parseColorSamplingData",null);_.t([_.CK("hoverColor","isDark"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PS.prototype,"updateHoverColor",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-watch-metadata"})],PS);
_.T(PS,"ytd-watch-metadata",function(){if(lBS!==void 0)return lBS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata"> </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return lBS=d},{mode:2});_.WcS=function(d){_.h_.call(this);this.JSC$22810_watchApi=d;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;MXr(this);m_L(this);wzS(this);PrL(this);uBL(this);IBN(this);r_B(this)};
_.m(_.WcS,_.h_);var wzS=function(d){var H=function(){_.h("kevlar_is_pupi_enabled")||uf(d)};
d.JSC$22810_watchApi.getRoot().addEventListener("yt-player-updated",H);d.addOnDisposeCallback(function(){d.JSC$22810_watchApi.getRoot().removeEventListener("yt-player-updated",H)})},uBL=function(d){if(_.h("kevlar_endscreen_auto_theater_mode")){var H=d.JSC$22810_watchApi.subscribeToActiveChanged(function(){BkH(d)},!1);
d.addOnDisposeCallback(H)}},MXr=function(d){var H,K,c,p,g;
_.l(function(a){if(a.nextAddress==1)return a.yield(d.JSC$22810_watchApi.playerApi,2);H=a.yieldResult;K=function(e){e=!!e;IR(d)&&(e=e?2:1,_.$R.getInstance().setState(e,!0,!1))};
c=function(e){e&&_.rN_(_.dn().getState())&&(_.oF(d.JSC$22810_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),d.temporaryTheaterMode=!0)};
p=function(e){_.h("kevlar_player_update_autonav_on_new_data")&&e.type==="newdata"&&(_.h("kevlar_is_pupi_enabled")||uf(d))};
g=function(e){d.onPlayerStateChange(e)};
_.h("kevlar_endscreen_auto_theater_mode")&&H.addEventListener("onAutonavCancelled",c);H.addEventListener("onAutonavChangeRequest",K);H.addEventListener("onVideoDataChange",p);H.addEventListener("onStateChange",g);d.addOnDisposeCallback(function(){H.removeEventListener("onAutonavChangeRequest",K);H.removeEventListener("onVideoDataChange",p);H.removeEventListener("onStateChange",g);_.h("kevlar_endscreen_auto_theater_mode")&&H.removeEventListener("onAutonavCancelled",c)});
_.VE(a)})},m_L=function(d){d.JSC$22810_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){d.autonavCancelledBySignal=!0;
_.h("kevlar_is_pupi_enabled")||uf(d)});
d.JSC$22810_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(H,K,c){K&&uf(d,c)});
d.JSC$22810_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){IR(d)&&_.$R.getInstance().setState(2,!0,!0)});
d.JSC$22810_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){IR(d)&&_.$R.getInstance().setState(1,!0,!0)});
d.addOnDisposeCallback(function(){d.JSC$22810_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");d.JSC$22810_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");d.JSC$22810_watchApi.unregisterActionHandler("yt-enable-autoplay-command");d.JSC$22810_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},PrL=function(d){var H=d.JSC$22810_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){r_B(d)}),K=d.JSC$22810_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){IBN(d)});
d.addOnDisposeCallback(function(){d.JSC$22810_watchApi.unsubscribeByKey(H);d.JSC$22810_watchApi.unsubscribeByKey(K)})},r_B=function(d){d.autonavCancelledBySignal=!1;
_.h("kevlar_is_pupi_enabled")||uf(d)},IBN=function(d){var H=d.JSC$22810_watchApi.getWatchNextResponse(),K,c;
var p=(H=(c=_.M(H==null?void 0:(p=H.playerOverlays)==null?void 0:(K=p.playerOverlayRenderer)==null?void 0:K.autonavToggle,_.gk6))==null?void 0:c.enabled)?2:1;_.h("kevlar_is_pupi_enabled")?_.$R.getInstance().setState(p,!1,!1):uf(d);_.h("web_persist_server_autonav_state_on_client")&&typeof H==="boolean"&&_.rgl(p===2)},IR=function(d){if(d.autonavCancelledBySignal)return!1;
var H,K,c,p;return!!((H=d.JSC$22810_watchApi.getWatchNextResponse())==null?0:(K=H.contents)==null?0:(c=K.twoColumnWatchNextResults)==null?0:(p=c.autoplay)==null?0:p.autoplay)};
_.WcS.prototype.onPlayerStateChange=function(d){if(d===0){d=!_.$R.getInstance().isAutoplaySetExplicitly();var H=this.JSC$22810_watchApi.getWatchNextResponse(),K,c,p,g;H=_.M(H==null?void 0:(K=H.contents)==null?void 0:(c=K.twoColumnWatchNextResults)==null?void 0:(p=c.autoplay)==null?void 0:(g=p.autoplay)==null?void 0:g.autoplayExplicitChoiceDialogRenderer,_.u5X);IR(this)&&d&&H&&_.nM.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:H},popupType:"DIALOG"}})}else BkH(this)};
var BkH=function(d){d.temporaryTheaterMode&&(d.temporaryTheaterMode=!1,_.oF(d.JSC$22810_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},uf=function(d,H){H=H===void 0?!1:H;
var K;_.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$22810_watchApi.playerApi,2);K=c.yieldResult;IR(d)?K.setAutonavState(_.$R.getInstance().getState(),H):K.setAutonavState(1,H);_.VE(c)})};var zzL={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.J_O=function(d){_.h_.call(this);var H=this;this.JSC$22815_watchApi=d;var K=this.JSC$22815_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Xza(H)});
this.addOnDisposeCallback(function(){H.JSC$22815_watchApi.unsubscribeByKey(K)});
Xza(this)};
_.m(_.J_O,_.h_);var Xza=function(d){var H=d.JSC$22815_watchApi.getPlayerResponse(),K=d.JSC$22815_watchApi.getWatchNextResponse();if(!_.zxi(H==null?void 0:H.playabilityStatus,K==null?void 0:K.playerOverlays)){var c;var p=H==null?void 0:(c=H.playabilityStatus)==null?void 0:c.errorScreen}d.JSC$22815_watchApi.provideRenderingData("ERROR_SCREEN",p)};var s4c=_.H1(function(d){var H=d.data;d=_.h("web_watch_video_details_hide_subtitle");var K=_.h("web_watch_video_details_single_line_title"),c=_.n7(function(){var e=H().onTap;e&&_.Kj().resolve(_.cb).resolveCommand(e)}),p={},g={},a={};
return _.x("yt-player-overlay-video-details-renderer",{class:_.xM("ytPlayerOverlayVideoDetailsRendererHost",(p.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.h("web_watch_video_details_transparent_background"),p)),"on:click":c,role:"button"},_.x("h2",{class:_.xM("ytPlayerOverlayVideoDetailsRendererTitle",(g.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return K},g))},_.x(_.j$,{text:function(){return H().title}})),_.x("div",{class:_.xM("ytPlayerOverlayVideoDetailsRendererSubtitle",
(a.ytPlayerOverlayVideoDetailsRendererHideSubtitle=d,a))},_.x(_.j$,{text:function(){return H().subtitle}})))},"Ak");var rd={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},FcC=_.H1(function(d){var H=d.data;var K=_.Tv(_.FX),c=_.h("web_watch_action_bar_resize_buttons"),p=_.h("delhi_modern_web_player_icons")&&!_.h("enable_web_delhi_icons"),g=function(){return c&&!K()?{size:"M"}:void 0};
d={};return _.x("yt-player-quick-action-buttons",{class:_.xM("ytPlayerQuickActionButtonsHost",(d.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!K()},d))},_.x(_.L6,{each:function(){if(p){var a=H();
a=JSON.parse(JSON.stringify(a));for(var e=_.q(a),k=e.next();!k.done;k=e.next()){var C=k.value,R=void 0;k=_.M((R=_.M(C,_.X5))==null?void 0:R.toggleButtonViewModel,_.EV);var V=void 0;R=_.M((V=_.M(C,_.zz))==null?void 0:V.toggleButtonViewModel,_.EV);V=_.M(C,_.OV);C=_.M(C,_.EV);if(k)R=_.M(k.defaultButtonViewModel,_.OV),k=_.M(k.toggledButtonViewModel,_.OV),R&&R.iconName&&(R.iconName=rd[R.iconName]),k&&k.iconName&&(k.iconName=rd[k.iconName]);else if(R)k=_.M(R.defaultButtonViewModel,_.OV),R=_.M(R.toggledButtonViewModel,
_.OV),k&&k.iconName&&(k.iconName=rd[k.iconName]),R&&R.iconName&&(R.iconName=rd[R.iconName]);else if(V)V.iconName&&(V.iconName=rd[V.iconName]);else if(C){k=_.M(C.defaultButtonViewModel,_.OV);R=_.M(C.toggledButtonViewModel,_.OV);C=void 0;if((C=k)==null?0:C.iconName)k.iconName=rd[k.iconName];k=void 0;if((k=R)==null?0:k.iconName)R.iconName=rd[R.iconName]}}}else a=H();return a}},function(a){return _.x(_.wB,{data:function(){return a}},{buttonViewModel:function(e){return _.x(_.xk,{data:e.data,
buttonOverrides:g})},
likeButtonViewModel:function(e){return _.x(_.Tr,{data:e.data,buttonShapeOverrideables:g})},
dislikeButtonViewModel:function(e){return _.x(_.ZT,{data:e.data,buttonShapeOverrideables:g})},
toggleButtonViewModel:function(e){return _.x(_.zm,{data:e.data,buttonShapeOverrides:g})}})}))},"Bk");_.TkH=function(d){_.h_.call(this);var H=this;this.JSC$22819_watchApi=d;d=_.q(_.GO({},void 0,"n9wCVe"));this.quickActionsViewModel=d.next().value;this.setQuickActionsViewModel=d.next().value;d=_.q(_.GO({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=d.next().value;this.setPlayerOverlayVideoDetailsRenderer=d.next().value;var K=this.JSC$22819_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ZAa(H)});
this.addOnDisposeCallback(function(){H.JSC$22819_watchApi.unsubscribeByKey(K)});
ZAa(this)};
_.m(_.TkH,_.h_);
var ZAa=function(d){var H,K,c,p,g,a,e,k,C,R,V,U,L,w;_.l(function(W){if(W.nextAddress==1)return W.yield(d.JSC$22819_watchApi.playerApi,2);H=W.yieldResult;K=d.JSC$22819_watchApi.getWatchNextResponse();g=(c=K)==null?void 0:(p=c.playerOverlays)==null?void 0:p.playerOverlayRenderer;e=_.M((a=g)==null?void 0:a.fullscreenQuickActionsBar,_.Gz7);(C=(k=d).setQuickActionsViewModel)==null||C.call(k,e||{});e&&Q4S(d,H);U=(R=g)==null?void 0:(V=R.videoDetails)==null?void 0:V.playerOverlayVideoDetailsRenderer;(w=(L=
d).setPlayerOverlayVideoDetailsRenderer)==null||w.call(L,U||{});U&&tXE(d,H);_.VE(W)})},Q4S=function(d,H){if(!d.quickActionButtonsContainer)if(H.setFullscreenQuickActions){d.quickActionButtonsContainer=document.createElement("div");
H.setFullscreenQuickActions(d.quickActionButtonsContainer);var K=function(){return d.quickActionsViewModel().quickActionButtons||[]},c=_.uU(d.quickActionButtonsContainer,function(){return _.x(FcC,{data:K})});
d.addOnDisposeCallback(function(){H.setFullscreenQuickActions(void 0);c()})}else _.Jf(new _.m1("setFullscreenQuickActions not defined",{playerApi:Object.keys(H),
isReady:H.isReady(),appState:H.getAppState()}))},tXE=function(d,H){if(!d.playerOverlayVideoDetailsRendererContainer)if(H.setPlayerOverlayVideoDetailsRenderer){d.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
H.setPlayerOverlayVideoDetailsRenderer(d.playerOverlayVideoDetailsRendererContainer);var K=_.uU(d.playerOverlayVideoDetailsRendererContainer,function(){return _.x(s4c,{data:d.playerOverlayVideoDetailsRenderer})});
d.addOnDisposeCallback(function(){H.setPlayerOverlayVideoDetailsRenderer(void 0);K()})}else _.Jf(new _.m1("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(H),
isReady:H.isReady(),appState:H.getAppState()}))};_.WS=function(d){_.h_.call(this);var H=this;this.JSC$22825_watchApi=d;this.JSC$22825_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;d=_.LU(_.dn(),_.FX,function(K){H.onFullscreenChanged(K)});
this.addOnDisposeCallback(d);d=_.LU(_.dn(),_.uz,function(K){H.onWatchScroll(K)});
this.addOnDisposeCallback(d);_.h("kevlar_watch_while_v2")&&(d=_.LU(_.dn(),_.Fv,function(K){Y8O(H,K)}),this.addOnDisposeCallback(d));
OAB(this);S8N(this);E1B();this.onWatchScroll(_.uz(_.dn().getState()));_.Qx("START_IN_FULL_WINDOW_MODE")&&this.JSC$22825_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.m(_.WS,_.h_);var OAB=function(d){d.JSC$22825_watchApi.registerActionHandler("yt-fullscreen-change-action",function(H){var K=d.JSC$22825_watchApi.isActive();H&&!K||_.dn().dispatch(_.iZ({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!H}}))});
d.addOnDisposeCallback(function(){d.JSC$22825_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},S8N=function(d){var H,K;
_.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$22825_watchApi.playerApi,2);H=c.yieldResult;K=function(){d.onFullerscreenEduClicked()};
H.addEventListener("onFullerscreenEduClicked",K);d.addOnDisposeCallback(function(){H.removeEventListener("onFullerscreenEduClicked",K)});
_.VE(c)})};
_.WS.prototype.onFullscreenChanged=function(d){var H=this,K;return _.l(function(c){if(c.nextAddress==1)return H.isFullscreen=!!_.Ko(),c.yield(H.JSC$22825_watchApi.playerApi,2);K=c.yieldResult;H.JSC$22825_miniplayerActive||K.setFauxFullscreen(H.isFullscreen);if(d&&(H.JSC$22825_watchApi.focusOnPlayer(),!H.fullerscreenEduButtonShownThisPlayback)){H.fullerscreenEduButtonShownThisPlayback=!0;var p=_.xC("yt-fullerscreen-edu-button-shown-count")||0;_.kC("yt-fullerscreen-edu-button-shown-count",p+1,31536E3);
H.updateFullerscreenEduButtonSubtleModeState()}_.VE(c)})};
var Y8O=function(d,H){var K;_.l(function(c){if(c.nextAddress==1)return d.JSC$22825_miniplayerActive=H,c.yield(d.JSC$22825_watchApi.playerApi,2);K=c.yieldResult;K.setFauxFullscreen(!d.JSC$22825_miniplayerActive&&d.isFullscreen);_.VE(c)})};
_.WS.prototype.onWatchScroll=function(d){var H=this,K,c;return _.l(function(p){if(p.nextAddress==1)return _.h("external_fullscreen_with_edu")?p.yield(H.JSC$22825_watchApi.playerApi,2):p.return();K=p.yieldResult;c=d<=0;H.shouldShowFullerscreenEdu!==c&&(H.shouldShowFullerscreenEdu=c,K.updateFullerscreenEduButtonVisibility(!H.shouldShowFullerscreenEdu));_.VE(p)})};
_.WS.prototype.onFullerscreenEduClicked=function(){this.JSC$22825_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var d=_.xC("yt-fullerscreen-edu-button-click-count")||0;_.kC("yt-fullerscreen-edu-button-click-count",d+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.WS.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var d=this,H,K,c,p,g,a;return _.l(function(e){if(e.nextAddress==1)return H=_.xC("yt-fullerscreen-edu-button-click-count")||0,K=_.xC("yt-fullerscreen-edu-button-shown-count")||0,c=_.iT("external_fullscreen_button_click_threshold"),p=_.iT("external_fullscreen_button_shown_threshold"),g=H>=c||K>=p,e.yield(d.JSC$22825_watchApi.playerApi,2);a=e.yieldResult;a.updateFullerscreenEduButtonSubtleModeState(g);_.VE(e)})};
_.WS.prototype.disposeInternal=function(){_.h_.prototype.disposeInternal.call(this);var d=_.Ko();_.h("kevlar_exit_fullscreen_leaving_watch")&&d&&_.cy(d)};
var E1B=function(){if(_.h("web_watch_add_viewport_meta_tag")){var d=document.querySelector("meta[name=viewport]"),H=document.head;H&&!d&&(d=document.createElement("meta"),d.name="viewport",d.content="width=device-width, initial-scale=1.0, viewport-fit=cover",H.appendChild(d))}};_.BS=function(d){_.h_.call(this);var H=this;this.JSC$22829_watchApi=d;this.jobId=0;this.pendingRequestId=void 0;var K=this.JSC$22829_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){y_S(H)});
this.addOnDisposeCallback(function(){H.JSC$22829_watchApi.unsubscribeByKey(K)});
y_S(this)};
_.m(_.BS,_.h_);var bAK=function(d){_.Xp.cancelJob(d.jobId);d.pendingRequestId=void 0},y_S=function(d){bAK(d);
var H=$SK(d.JSC$22829_watchApi.getWatchNextResponse());if(H){var K=250,c,p=(c=_.M(H,_.gR3))==null?void 0:c.initialDelayMs;_.h("web_watch_updated_metadata_server_initial_delay")&&p&&(K=p);d.jobId=_.Xp.addLowPriorityJob(function(){return d.fetchUpdatedMetadata(H)},K)}};
_.BS.prototype.fetchUpdatedMetadata=function(d,H){var K=this,c,p,g,a,e,k,C,R,V,U,L,w,W,J,F;return _.l(function(Y){switch(Y.nextAddress){case 1:H&&(c={continuation:H});if(!_.h("web_get_updated_metadata_fantasy_panel_continuation_params")){Y.jumpTo(2);break}p=_.Kj().resolve(_.W6);g="PAsports_fantasy";return Y.yield(p.isVisible(g,!0),3);case 3:Y.yieldResult&&(C=(e=(a=p).getUpdatePanelContinuationData)==null?void 0:(k=e.call(a,g))==null?void 0:k.updatePanelContinuationRequest)&&(c||(c={}),c.clientParams=
{panelContinuationParams:{panelContinuation:C}});case 2:R=_.Kj().resolve(_.Z8);if(!R)return _.z5(Error("Eo")),Y.return();V={};K.pendingRequestId=V;return Y.yield(_.Nc(R,d,c),4);case 4:U=Y.yieldResult;if(V!==K.pendingRequestId)return Y.return();W=(L=U)==null?void 0:(w=L.continuation)==null?void 0:w.timedContinuationData;((J=W)==null?0:J.continuation)&&((F=W)==null?0:F.timeoutMs)&&(K.jobId=_.Xp.addLowPriorityJob(function(){return K.fetchUpdatedMetadata(d,W.continuation)},W.timeoutMs));
_.VE(Y)}})};
_.BS.prototype.disposeInternal=function(){_.h_.prototype.disposeInternal.call(this);bAK(this)};var Nkr=_.H1(function(d){var H=_.n7(function(){var c=d.data().videoId;if(d.active())c=_.KH(c),_.Kj().resolve(_.cb).resolveCommand(c);else{var p=d.playerApi(),g=p.getAvailableAudioTracks(),a,e,k=(a=d.sourceVideoConfig().audioTracks)==null?void 0:(e=a.find(function(C){return C.isDefaultForSource}))==null?void 0:e.id;
if(g=g.find(function(C){return C.getLanguageInfo().getId()===k}))p.setAudioTrack(g,!0),p.setCompositeParam({activeVideoId:c}),d.setActiveSourceId(c)}}),K={};
return _.x("ytw-composite-source-video-overlay",{class:_.xM("ytwCompositeSourceVideoOverlayHost",(K.ytwCompositeSourceVideoOverlayActive=d.active,K.ytwCompositeSourceVideoOverlayInteracting=d.interacting,K)),style:_.UQ({left:function(){var c;return((c=d.data().topLeftCornerX)!=null?c:0)*100+"%"},
top:function(){var c;return((c=d.data().topLeftCornerY)!=null?c:0)*100+"%"},
width:function(){var c;return((c=d.data().width)!=null?c:0)*100+"%"},
height:function(){var c;return((c=d.data().height)!=null?c:0)*100+"%"}}),
"on:click":H},_.x("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Ck");var D_H=_.H1(function(d){var H=_.q(_.V2(function(){var a,e=(a=d.data().sources)==null?void 0:a.find(function(k){return k.isActive});
if(e)return e.videoId})),K=H.next().value,c=H.next().value;
H=_.q(_.GO(!1,void 0,"WI4BUb"));var p=H.next().value,g=H.next().value;return _.x("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.n7(function(){g(!0)}),
"on:mouseout":_.n7(function(){g(!1)})},_.x(_.n,{cond:function(){return d.data().sources},
then:function(a){return _.x(_.L6,{each:a},function(e){return _.x(Nkr,{data:e,active:function(){return e.videoId===K()},
setActiveSourceId:c,interacting:p,playerApi:d.playerApi,sourceVideoConfig:function(){return KbH(d.compositeVideoConfig(),e.videoId)}})})}}))},"Dk");_.j4e=function(d){_.h_.call(this);this.JSC$22845_watchApi=d;d=_.q(_.GO({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=d.next().value;this.setCompositeVideoOverlayRenderer=d.next().value;d=_.q(_.GO({},void 0,"OlaJpc"));this.compositeVideoConfig=d.next().value;this.setCompositeVideoConfig=d.next().value;fBE(this);A_S(this)};
_.m(_.j4e,_.h_);var fBE=function(d){var H=d.JSC$22845_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){A_S(d)});
d.addOnDisposeCallback(function(){d.JSC$22845_watchApi.unsubscribeByKey(H)})},v1r=function(d){var H;
return _.l(function(K){if(K.nextAddress==1)return K.yield(d.JSC$22845_watchApi.playerApi,2);H=K.yieldResult;H.setCompositeVideoOverlayRendererComponent(d.container);_.VE(K)})},dtw=function(d){var H;
return _.l(function(K){if(K.nextAddress==1)return K.yield(d.JSC$22845_watchApi.playerApi,2);H=K.yieldResult;H.setCompositeVideoOverlayRendererComponent(void 0);_.VE(K)})},HlK=function(d){var H,K;
return _.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$22845_watchApi.playerApi,2);H=c.yieldResult;d.container=document.createElement("div");K=_.uU(d.container,function(){return _.x(D_H,{data:d.compositeVideoOverlayRenderer,compositeVideoConfig:d.compositeVideoConfig,playerApi:H})});
d.addOnDisposeCallback(K);_.VE(c)})},A_S=function(d){var H,K,c,p,g,a,e,k;
_.l(function(C){return C.nextAddress==1?(H=d.JSC$22845_watchApi.getPlayerResponse(),g=_.M((K=H)==null?void 0:(c=K.overlay)==null?void 0:(p=c.playerControlsOverlayRenderer)==null?void 0:p.compositeVideoOverlay,btr),k=(a=H)==null?void 0:(e=a.playerConfig)==null?void 0:e.compositeVideoConfig,g&&d.setCompositeVideoOverlayRenderer(g),k&&d.setCompositeVideoConfig(k),g&&k?d.container?C.jumpTo(6):C.yield(HlK(d),6):$t_(d)?C.yield(dtw(d),0):C.jumpTo(0)):$t_(d)?C.jumpTo(0):C.yield(v1r(d),0)})},$t_=function(d){var H;
return!((H=d.container)==null||!H.parentElement)};
_.j4e.prototype.disposeInternal=function(){$t_(this)&&dtw(this);_.h_.prototype.disposeInternal.call(this)};_.ilL=function(d){_.h_.call(this);var H=this;this.JSC$22851_watchApi=d;var K=this.JSC$22851_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var c=H.JSC$22851_watchApi.getPlayerResponse();if(c){var p,g;if(c=_.M((p=c.endscreen)==null?void 0:(g=p.endscreenRenderer)==null?void 0:g.hideButton,_.EV)){var a;(a=H.setEndscreenHideButton)==null||a.call(H,c);K5E(H)}}});
this.addOnDisposeCallback(function(){H.JSC$22851_watchApi.unsubscribeByKey(K)});
d=_.q(_.GO({},void 0,"ER3tqb"));this.endscreenHideButton=d.next().value;this.setEndscreenHideButton=d.next().value;cte(this);pka(this);gmO(this)};
_.m(_.ilL,_.h_);var K5E=function(d){var H,K;_.l(function(c){if(c.nextAddress==1)return d.creatorEndscreenHideButtonContainer?c.return():c.yield(d.JSC$22851_watchApi.playerApi,2);H=c.yieldResult;d.creatorEndscreenHideButtonContainer=document.createElement("div");_.O8(d.creatorEndscreenHideButtonContainer,!1);H.setCreatorEndscreenHideButton(d.creatorEndscreenHideButtonContainer);K=_.uU(d.creatorEndscreenHideButtonContainer,function(){return _.x(_.zm,{data:d.endscreenHideButton,useOutlinedIcon:!0})});
d.addOnDisposeCallback(function(){K();var p;(p=H)==null||p.setCreatorEndscreenHideButton(void 0)});
_.VE(c)})},cte=function(d){var H,K;
_.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$22851_watchApi.playerApi,2);H=c.yieldResult;K=function(){d.creatorEndscreenHideButtonContainer&&_.O8(d.creatorEndscreenHideButtonContainer,!0)};
H.addEventListener("endscreenelementshown",K);d.addOnDisposeCallback(function(){var p;(p=H)==null||p.removeEventListener("endscreenelementshown",K)});
_.VE(c)})},pka=function(d){var H=function(){d.creatorEndscreenHideButtonContainer&&_.O8(d.creatorEndscreenHideButtonContainer,!1)},K=d.JSC$22851_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",H),c=d.JSC$22851_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",H);
d.addOnDisposeCallback(function(){d.JSC$22851_watchApi.unsubscribeByKey(K);d.JSC$22851_watchApi.unsubscribeByKey(c)})},gmO=function(d){d.JSC$22851_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(H){var K=_.M(H,tTH);
d.JSC$22851_watchApi.playerApi.then(function(c){c==null||c.setCreatorEndscreenVisibility(!!K.hide)})});
d.addOnDisposeCallback(function(){d.JSC$22851_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.om_=function(d){_.h_.call(this);this.JSC$22857_watchApi=d;GOC(this)};
_.m(_.om_,_.h_);var GOC=function(d){var H,K;_.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$22857_watchApi.playerApi,2);H=c.yieldResult;K=function(p){_.dn().dispatch(_.iZ({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:p}}))};
H.addEventListener("onRetroModeChanged",K);d.addOnDisposeCallback(function(){H.removeEventListener("onRetroModeChanged",K)});
_.VE(c)})};var zB=0,BD=0,XP=0;var qeN;qeN=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.zk=function(d){_.h_.call(this);this.JSC$22870_watchApi=d;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;ap_(this)};
_.m(_.zk,_.h_);
var ap_=function(d){var H,K,c;_.l(function(p){if(p.nextAddress==1)return p.yield(d.JSC$22870_watchApi.playerApi,2);H=p.yieldResult;if(d.isDisposed())return p.return();d.sessionStorage=_.Zcq("yt-sleep-timer");d.sessionStorage||_.Jf(new _.m1("SessionStorage for Sleep Timer is undefined."));((K=d.sessionStorage)==null?void 0:K.get("yt-sleep-timer"))==="true"&&(ejH(),(c=d.sessionStorage)==null||c.remove("yt-sleep-timer"),H.syncVolume());lpO(d,H);eK_(d,H);kON(d,H);_.VE(p)})},lpO=function(d,H){var K=function(C){d.onSleepTimerSettingsChanged(C,
H)},c=function(C){d.onPlayerStateChange(C,H)},p=function(){d.onLoopChange(H)},g=function(){d.onCloseMiniplayer(H)},a=function(){o0L(H,(0,_.$G)(),kGa(H),d.selectedOption==="End of video",H.getPlayerState()!==1)},e=function(){d.onSeekComplete(H)},k=function(){_.Xp.cancelJob(BD);
var C=H.getCurrentTime()>=H.getDuration(),R=d.selectedOption==="End of video"||d.selectedOption==="End of playlist"&&!g0a(d.playlistId);C&&R&&xt_(d,H)};
H.addEventListener("onSleepTimerSettingsChanged",K);H.addEventListener("onLoopChange",p);H.addEventListener("onLoopRangeChange",p);H.addEventListener("onStateChange",c);H.addEventListener("onCloseMiniplayer",g);H.addEventListener("onSleepTimerFeatureAvailable",a);H.addEventListener("SEEK_COMPLETE",e);H.addEventListener("onAdStart",k);d.addOnDisposeCallback(function(){H.removeEventListener("onSleepTimerSettingsChanged",K);H.removeEventListener("onLoopChange",p);H.removeEventListener("onLoopRangeChange",
p);H.removeEventListener("onStateChange",c);H.removeEventListener("onCloseMiniplayer",g);H.removeEventListener("onSleepTimerFeatureAvailable",a);H.removeEventListener("SEEK_COMPLETE",e);H.removeEventListener("onAdStart",k)})},eK_=function(d,H){var K=d.JSC$22870_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var c=H.getVideoData().video_id,p,g=(p=cZr(d.JSC$22870_watchApi))==null?void 0:p.playlistId;
d.pauseAutonavPlayback&&(H.pauseVideo(),H.syncVolume(),d.pauseAutonavPlayback=!1);if(d.selectedOption==="End of video"&&c!==d.videoId)Xu(d,H);else{if(d.selectedOption==="End of playlist"){p=g0a(d.playlistId);if(g!==d.playlistId){Xu(d,H);break a}p?p&&nma(d,H):CjO(d,H)}d.videoId=c;d.playlistId=g}}});
d.addOnDisposeCallback(function(){d.JSC$22870_watchApi.unsubscribeByKey(K)})},kON=function(d,H){var K=_.Kj().resolve(_.t$),c=_.LU(K,_.Dwl,function(g){g&&d.selectedOption!=="Off"&&Xu(d,H)}),p=d.JSC$22870_watchApi.subscribeToActiveChanged(function(g){var a,e;
return _.l(function(k){if(k.nextAddress==1)return k.yield(_.UT().navigationFinishPromise,2);a=!_.hmg();e=_.Kj().resolve(_.Fb).isMiniplayerActive();g||!WD(d.selectedOption)||e||a||Xu(d,H);_.VE(k)})},!1);
K=_.LU(K,function(g){return g.entities.playlistLoopStateEntity||{}},function(g){g=g===void 0?{}:g;
var a=pvN(d.JSC$22870_watchApi);if(a){var e;((e=g[a])==null?void 0:e.state)==="PLAYLIST_LOOP_STATE_ALL"&&WD(d.selectedOption)&&Xu(d,H)}});
d.addOnDisposeCallback(c);d.addOnDisposeCallback(K);d.addOnDisposeCallback(p)};
_.zk.prototype.onSleepTimerSettingsChanged=function(d,H){switch(d){case "Off":this.selectedOption!=="Off"&&Xu(this,H);break;case "End of video":case "End of playlist":RKH(this,d,H);break;default:RKH(this,d,H,qeN.get(d))}};
_.zk.prototype.onLoopChange=function(d){(d.getLoopVideo()||d.getLoopRange())&&WD(this.selectedOption)&&Xu(this,d)};
_.zk.prototype.onCloseMiniplayer=function(d){WD(this.selectedOption)&&Xu(this,d)};
var RKH=function(d,H,K,c){VyE(d,K);d.selectedOption=H;d.videoId=K.getVideoData().video_id;d.playlistId="";var p;(p=d.sessionStorage)==null||p.set("yt-sleep-timer","true");d.adjustmentsCount++;o0L(K,(0,_.$G)(),kGa(K),d.selectedOption==="End of video");if(d.selectedOption==="End of video")CjO(d,K),Ut_(d,K);else if(d.selectedOption==="End of playlist"){Ut_(d,K);var g,a;d.playlistId=(a=(g=cZr(d.JSC$22870_watchApi))==null?void 0:g.playlistId)!=null?a:"";g0a(d.playlistId)||CjO(d,K)}else c&&(d.presetFadeSchedulerId=
_.rB(_.Xp,function(){a5S(K,15E3)},c-15E3),d.presetPauseSchedulerId=_.rB(_.Xp,function(){xt_(d,K)},c),qU_(K,(0,_.$G)(),c))},xt_=function(d,H){if(d.JSC$22870_watchApi.isActive()){var K={dismissDialogEndpoint:{}};
var c={commandExecutorCommand:{commands:[K,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};K={buttonViewModel:{title:_.Vz("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:K}}};c={buttonViewModel:{title:_.Vz("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:c}}};var p={dialogHeaderViewModel:{headline:{content:_.Vz("SLEEP_TIMER_ENDED_TITLE")}}},
g={basicContentViewModel:{paragraphs:[{text:{content:_.Vz("SLEEP_TIMER_ENDED_TEXT")}}]}};K={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:p,content:g,footer:{panelFooterViewModel:{primaryButton:K,secondaryButton:c,shouldHideDivider:!0}}}}}}};_.Kj().resolve(_.cb).resolveCommand(K,{form:{element:d}})}else ejH();hKS(d,!1);L5r(d,H);H.pauseVideo();_.$R.getInstance().getState()===2&&H.getPlayerState()===5&&(d.pauseAutonavPlayback=!0)},Xu=function(d,H){hKS(d,!0);
L5r(d,H);ejH()},L5r=function(d,H){VyE(d,H);
d.selectedOption="Off";d.videoId="";d.playlistId="";d.adjustmentsCount=0;var K;(K=d.sessionStorage)==null||K.remove("yt-sleep-timer");_.Xp.cancelJob(zB);H.resetSleepTimerMenuSettings()},hKS=function(d,H){H={timer_length_adjustment_times_during_session:d.adjustmentsCount-1,
is_session_cancelled:H};switch(d.selectedOption){case "Off":H.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":H.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":H.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:H.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",H.option_duration_in_minutes=qeN.get(d.selectedOption)/6E4}_.Wd("sleepTimerSessionFinishEvent",H)};
_.zk.prototype.onPlayerStateChange=function(d,H){d===1?o0L(H,(0,_.$G)(),kGa(H),this.selectedOption==="End of video"):d===0?(_.Xp.cancelJob(BD),H.setVideoTimeLeft(GG_(0,0))):d===2&&_.Xp.cancelJob(BD);this.selectedOption==="End of video"?d===0?xt_(this,H):d===2&&l5E(H):this.selectedOption!=="End of playlist"||g0a(this.playlistId)||(d===0?xt_(this,H):d===2&&l5E(H))};
_.zk.prototype.onSeekComplete=function(d){d.getPlayerState()===2&&o0L(d,(0,_.$G)(),kGa(d),this.selectedOption==="End of video",!0)};
_.zk.prototype.onCueRangeEnter=function(d,H){d==="sleep-timer-fade-audio"&&a5S(H,(H.getDuration()-H.getProgressState().current)*1E3)};
_.zk.prototype.onCueRangeExit=function(d,H){d==="sleep-timer-fade-audio"&&H.getPlayerState()!==0&&l5E(H,!0)};
var CjO=function(d,H){H.addCueRange("sleep-timer-fade-audio",H.getDuration()-15,H.getDuration());H.addEventListener("onCueRangeEnter",function(K){d.onCueRangeEnter(K,H)});
H.addEventListener("onCueRangeExit",function(K){d.onCueRangeExit(K,H)})},nma=function(d,H){H.removeCueRange("sleep-timer-fade-audio");
H.removeEventListener("onCueRangeEnter",function(K){d.onCueRangeEnter(K,H)});
H.removeEventListener("onCueRangeExit",function(K){d.onCueRangeExit(K,H)})},VyE=function(d,H){WD(d.selectedOption)?nma(d,H):(_.Xp.cancelJob(d.presetPauseSchedulerId),_.Xp.cancelJob(d.presetFadeSchedulerId),d.presetPauseSchedulerId=0,d.presetFadeSchedulerId=0);
l5E(H,!0)},Ut_=function(d,H){H.setLoop(!1);
H.setLoopVideo(!1);H.setLoopRange(null);(d=pvN(d.JSC$22870_watchApi))&&_.Kj().resolve(_.t$).dispatch(_.PI("playlistLoopStateEntity",d,{key:d,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.PjE=function(d){_.h_.call(this);this.JSC$22873_watchApi=d;My_(this);mt_(this);wkc(this);d=d.getRoot();if(d.is==="ytd-watch-flexy"||d.is==="ytd-watch-grid")d.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.BAE();_.h("web_watch_log_theater_mode_cookie_state")&&_.Vm.get("wide","0")==="1"&&_.X0F("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.m(_.PjE,_.h_);var My_=function(d){var H,K;_.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$22873_watchApi.playerApi,2);H=c.yieldResult;K=function(p){uqc(d,!!p)};
H.addEventListener("SIZE_CLICKED",K);d.addOnDisposeCallback(function(){H.removeEventListener("SIZE_CLICKED",K)});
_.VE(c)})},mt_=function(d){d.JSC$22873_watchApi.registerActionHandler("yt-toggle-theater-mode",function(H,K){uqc(d,H,K===void 0?!0:K)});
d.addOnDisposeCallback(function(){d.JSC$22873_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.PjE.prototype.getState=function(){return _.sQ(_.dn().getState())};
var uqc=function(d,H,K){K=K===void 0?!0:K;var c,p,g,a=_.h("enable_player_resize_transition")&&!!d.JSC$22873_watchApi.getWatchNextResponse()&&!((c=d.JSC$22873_watchApi.getWatchNextResponse())==null?0:(p=c.contents)==null?0:(g=p.twoColumnWatchNextResults)==null?0:g.conversationBar);_.E11(function(){_.dn().dispatch(_.iZ({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:H}}));_.h("theater_mode_scroll_to_top_killswitch")||d.JSC$22873_watchApi.scrollWatchTo(0,!1);_.Ko()&&_.h("external_fullscreen")&&_.cy(document.documentElement);
wkc(d);K&&_.Um("wide",H?"1":"0",-1);_.oF(d.JSC$22873_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);d.JSC$22873_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:H});H&&_.BAE()},{shouldWrap:a})},wkc=function(d){var H;
_.l(function(K){if(K.nextAddress==1)return K.yield(d.JSC$22873_watchApi.playerApi,2);H=K.yieldResult;H.setSizeStyle(!0,d.getState());_.VE(K)})};var W5w=function(d){_.h_.call(this);var H=this;this.playerApi=d;this.timeToPanelSyncKeyMap={};var K;if(d==null?0:(K=d.isReady)==null?0:K.call(d)){K=_.LU(_.Kj().resolve(_.t$),function(p){return p.entities.timedMarkersListSyncEntity||{}},function(p,g){p=p===void 0?{}:p;
g=g===void 0?{}:g;for(var a=_.q(Object.keys(g)),e=a.next();!e.done;e=a.next())e=e.value,p[e]!==g[e]&&IpK(H,g[e]);g=_.q(Object.keys(p));for(a=g.next();!a.done;a=g.next())a=a.value,e=p[a],H.timeToPanelSyncKeyMap[a]&&rtE(H,e)});
this.addOnDisposeCallback(K);var c=function(p){H.onCueRangeEnter(p)};
d.addEventListener("onCueRangeEnter",c);this.addOnDisposeCallback(function(){var p;(p=d.removeEventListener)==null||p.call(d,"onCueRangeEnter",c)})}};
_.m(W5w,_.h_);
var rtE=function(d,H){var K,c;if((K=d.playerApi)==null?0:(c=K.isReady)==null?0:c.call(K)){var p;if((K=H==null?void 0:(p=H.timedListData)==null?void 0:p.sections)&&H!=null&&H.key)for(p=_.q(K),K=p.next();!K.done;K=p.next())if(K=K.value,K.timedSyncDataList&&K.sectionId)for(c=0;c<K.timedSyncDataList.length;c++){var g=K.timedSyncDataList[c];g.syncItemId&&d.playerApi.addCueRange(K.sectionId+"_"+H.key+"_"+g.syncItemId,Number(g.videoTimeMs)/1E3,c===K.timedSyncDataList.length-1?0x8000000000000:Number(K.timedSyncDataList[c+
1].videoTimeMs)/1E3)}}},IpK=function(d,H){var K,c;
if((K=d.playerApi)==null?0:(c=K.isReady)==null?0:c.call(K)){var p;if((K=H==null?void 0:(p=H.timedListData)==null?void 0:p.sections)&&H!=null&&H.key)for(p=_.q(K),K=p.next();!K.done;K=p.next())if(K=K.value,K.timedSyncDataList&&K.sectionId){c=_.q(K.timedSyncDataList);for(var g=c.next();!g.done;g=c.next())g=g.value,g.syncItemId&&d.playerApi.removeCueRange(K.sectionId+"_"+H.key+"_"+g.syncItemId)}}};
W5w.prototype.onCueRangeEnter=function(d){for(var H=_.q(Object.keys(this.timeToPanelSyncKeyMap)),K=H.next();!K.done;K=H.next()){K=K.value;var c=_.q(d.split("_"+K+"_")),p=c.next().value;c=c.next().value;if(p&&c){d=_.Kj().resolve(_.t$);H=this.timeToPanelSyncKeyMap[K];var g=_.Jpl(d.getState(),H);K=Bcw(K,p,c);if(K===-1)break;K={activeSyncId:c,activeItemIndex:K,activeSectionInfo:{sectionIdentifier:p}};g?d.dispatch(_.BK("markersEngagementPanelSyncEntity",H,K)):d.dispatch(_.PI("markersEngagementPanelSyncEntity",
H,Object.assign({},{key:H},K)));break}}};
var Bcw=function(d,H,K){var c=_.Kj().resolve(_.t$),p,g;d=(p=PMB(c.getState(),d))==null?void 0:(g=p.timedListData)==null?void 0:g.sections;if(!d)return-1;p=0;g=_.q(d);for(d=g.next();!d.done;d=g.next()){d=d.value;c=d.timedSyncDataList||[];if(d.sectionId===H)return H=c.findIndex(function(a){return a.syncItemId===K}),H===-1?H:p+H;
p+=c.length}return-1};_.JtB=function(d){_.h_.call(this);var H=this;this.JSC$22886_watchApi=d;this.unresolvedCommands=[];this.JSC$22886_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(K){zKC(H,K)});
this.addOnDisposeCallback(function(){H.JSC$22886_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
XkC(this)};
_.m(_.JtB,_.h_);var XkC=function(d){var H;_.l(function(K){if(K.nextAddress==1)return K.yield(d.JSC$22886_watchApi.playerApi,2);H=K.yieldResult;if(d.isDisposed())return K.return();d.timedSyncObserver=new W5w(H);d.unresolvedCommands.length&&(d.unresolvedCommands.forEach(function(c){return zKC(d,c)}),d.unresolvedCommands=[]);
_.q_(d,d.timedSyncObserver);_.VE(K)})},zKC=function(d,H){if(d.timedSyncObserver){var K=_.M(H,OtN);
if(K&&K.timedSyncEntityKey&&K.panelSyncEntityKey){d=d.timedSyncObserver;H=K.timedSyncEntityKey;var c=K.panelSyncEntityKey;K=!!K.isEnabled;K=K===void 0?!0:K;var p=_.Kj().resolve(_.t$);p=PMB(p.getState(),H);K?d.timeToPanelSyncKeyMap[H]||(d.timeToPanelSyncKeyMap[H]=c,rtE(d,p)):(delete d.timeToPanelSyncKeyMap[H],IpK(d,p))}}else d.unresolvedCommands.push(H)};var sHa=_.H1(function(d){var H=d.data,K=d.maybeLogSmartSkipClientData,c=null,p=null,g=_.h("web_enable_auto_focus_for_timely_action_button"),a=function(){c=document.activeElement},e=function(){H().smartSkipMetadata&&(c=document.activeElement,_.pP1(function(){return p}))},k=function(R){if(H().smartSkipMetadata&&(!R||R.key!=="Enter")){c&&c.isConnected&&(_.pP1(function(){return c}),c=null);
var V;(V=p)==null||V.blur()}};
d=_.n7(function(){K==null||K(!0,H());return!1});
var C=_.$M(_.Tx(function(){return H().rendererContext},{onTap:function(R,V){V({disableClickTracking:!0})}}),_.cV({visibilityCallback:function(R){if(g)R?p&&H().smartSkipMetadata&&(e(),document.addEventListener("focusin",a)):(document.removeEventListener("focusin",a),k());
else if(R){R=_.FN(H().rendererContext);var V=Number(H().maxVisibleDurationMilliseconds),U,L=(U=_.M(H().rendererContext,_.hs))==null?void 0:U.label;R&&V&&L&&(U={label:L,command:R,durationMs:V},_.Kj().resolve(_.WX).enqueue(U))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.Is(function(){if(g){var R;if((p=(R=C.value)==null?void 0:R.querySelector("button"))&&H().smartSkipMetadata){var V;(V=C.value)==null||V.addEventListener("keydown",k)}}});
_.Pk(function(){g&&(p&&H().smartSkipMetadata&&p.removeEventListener("keydown",k),document.removeEventListener("focusin",a),k())});
return _.x("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:C,"on:click":d},_.x(_.wB,{data:function(){return H().content}},{buttonViewModel:_.xk}))},"Ek");var F5L=_.H1(function(d){var H=d.data,K=d.playerApi,c=_.Kj().resolve(_.BhO);d=_.q(_.V2(function(){H()}));
var p=d.next().value,g=d.next().value,a=function(){return n0_(H(),p())},e=function(C,R){var V,U,L=(V=_.M(R==null?void 0:R.rendererContext,_.LM))==null?void 0:(U=V.loggingDirectives)==null?void 0:U.trackingParams;
if((R=R==null?void 0:R.smartSkipMetadata)&&R.loggingData&&(U=R.loggingData,R=U.algorithmId,V=U.startMilliseconds,U=U.endMilliseconds,R&&V!==void 0&&U!==void 0)){var w,W;C={smartSkipData:Object.assign({},{versionName:R,startMediaTimeMs:V,endMediaTimeMs:U},C&&{userInteractionMediaTimeMs:(Math.floor(((w=_.Kf())==null?void 0:(W=w.getPlayer())==null?void 0:W.getCurrentTime())||0)*1E3).toString()})};w=_.Fj();var J;L&&(J=_.P1(L));w&&J&&_.j5(w,J,C)}},k=function(C,R){var V=n0_(H(),C);
if(V){var U=_.M(V,Jh),L;if(L=R)L=K(),V=_.M(V,Jh),L=V!=null&&V.smartSkipMetadata?!(L==null?0:L.isSameMarkerTypeVisible((V==null?void 0:V.smartSkipMetadata.markerKey)||"")):!0;if(L){var w,W;(U==null?0:(w=U.smartSkipMetadata)==null?0:(W=w.loggingData)==null?0:W.isCounterfactual)||(e(!1,U),g(C))}else R||p()!==C||g(void 0)}};
_.wc(function(){var C=H().timelyActions;if(C){C=_.q(C);for(var R=C.next();!R.done;R=C.next()){R=_.M(R.value,Jh);var V=void 0;(V=R)!=null&&V.cueRangeId&&c.timelyActionsMap.set(R.cueRangeId,k)}_.Pk(function(){c.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.x("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.x(_.wB,{data:a},{timelyActionViewModel:function(C){return _.x(sHa,{data:C.data,maybeLogSmartSkipClientData:function(){e(!0,_.M(a(),Jh))}})}}))},"Fk");_.TcL=function(d){_.h_.call(this);this.JSC$22898_watchApi=d;d=_.q(_.GO({},void 0,"UN7k5e"));this.timelyActionsOverlay=d.next().value;this.setTimelyActionsOverlay=d.next().value;ZlL(this)};
_.m(_.TcL,_.h_);var ZlL=function(d){var H,K,c,p;_.l(function(g){if(g.nextAddress==1)return QHa(d),tyO(d),d.timelyActionsContainer=document.createElement("div"),g.yield(d.JSC$22898_watchApi.playerApi,2);H=g.yieldResult;(c=(K=H).insertTimelyActionUi)==null||c.call(K,d.timelyActionsContainer);p=_.uU(d.timelyActionsContainer,function(){return _.x(F5L,{data:d.timelyActionsOverlay,playerApi:H})});
d.addOnDisposeCallback(p);_.VE(g)})},tyO=function(d){var H=d.JSC$22898_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){QHa(d)});
d.addOnDisposeCallback(function(){d.JSC$22898_watchApi.unsubscribeByKey(H)})},QHa=function(d){var H=d.JSC$22898_watchApi.getWatchNextResponse();
if(H){var K,c;if(H=_.M((K=H.playerOverlays)==null?void 0:(c=K.playerOverlayRenderer)==null?void 0:c.timelyActionsOverlayViewModel,SUK)){var p;(p=d.setTimelyActionsOverlay)==null||p.call(d,H)}}};_.Ol_=function(d){_.h_.call(this);this.JSC$22902_watchApi=d;YeL(this)};
_.m(_.Ol_,_.h_);var YeL=function(d){var H,K;_.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$22902_watchApi.playerApi,2);H=c.yieldResult;K=function(p){_.nM.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.M(p,_.D7S)},popupType:"TOAST"}})};
H.addEventListener("onYtShowToast",K);d.addOnDisposeCallback(function(){H.removeEventListener("onYtShowToast",K)});
_.VE(c)})};var Sew,ble,jHL,Em_,yta,At_,DtK,fpL,vmL,dMc;Sew=!1;_.Nc_=function(d){_.h_.call(this);this.JSC$22905_watchApi=d;this.fullscreen=this.theater=!1;Em_(this);yta(this);ble(this)};
_.m(_.Nc_,_.h_);ble=function(d){var H,K,c;_.l(function(p){if(p.nextAddress==1)return p.yield(d.JSC$22905_watchApi.playerApi,2);H=p.yieldResult;if(d.isDisposed())return p.return();K=d.JSC$22905_watchApi.getElement("CINEMATICS");if(!K)return p.return();d.JSC$22905_cinematicController=new _.gL(K,H);_.q_(d,d.JSC$22905_cinematicController);_.C1e(d.JSC$22905_cinematicController);DtK(d,_.w6F());c=d.JSC$22905_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(g){fpL(d,g)});
d.addOnDisposeCallback(function(){d.JSC$22905_watchApi.unsubscribeByKey(c)});
At_(d);fpL(d,d.JSC$22905_cinematicController.isAllowed());_.h("web_cinematic_manager_redux_killswitch")?_.J8(d,d.fullscreen,d.theater):jHL(d);vmL(d);_.VE(p)})};
jHL=function(d){d.fullscreen=_.FX(_.dn().getState());d.theater=_.sQ(_.dn().getState());_.J8(d,d.fullscreen,d.theater);var H=_.LU(_.dn(),_.FX,function(c){d.fullscreen=c;_.J8(d,d.fullscreen,d.theater)}),K=_.LU(_.dn(),_.sQ,function(c){d.theater=c;
_.J8(d,d.fullscreen,d.theater)});
d.addOnDisposeCallback(H);d.addOnDisposeCallback(K)};
Em_=function(d){var H=d.JSC$22905_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){At_(d)});
d.addOnDisposeCallback(function(){d.JSC$22905_watchApi.unsubscribeByKey(H)})};
yta=function(d){var H,K;_.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$22905_watchApi.playerApi,2);H=c.yieldResult;K=function(p){DtK(d,p)};
H.addEventListener("cinematicSettingsToggleChange",K);d.addOnDisposeCallback(function(){H.removeEventListener("cinematicSettingsToggleChange",K)});
_.VE(c)})};
At_=function(d){var H=d.JSC$22905_watchApi.getWatchNextResponse(),K;H=_.M(H==null?void 0:(K=H.pageVisualEffects)==null?void 0:K[0],_.WL);var c;(c=d.JSC$22905_cinematicController)==null||_.VlE(c,H)};
DtK=function(d,H){var K;(K=d.JSC$22905_cinematicController)==null||_.RXS(K,H);dMc(d)};
fpL=function(d,H){var K;_.l(function(c){if(c.nextAddress==1)return _.h("kevlar_watch_cinematics_invisible")&&(H=!1),c.yield(d.JSC$22905_watchApi.playerApi,2);K=c.yieldResult;K.updateCinematicSettings(H);dMc(d);_.VE(c)})};
vmL=function(d){var H=_.Lo();if(_.h("kevlar_measure_ambient_mode_idle")&&!H.getFlag(192)&&!Sew){Sew=!0;var K=_.mf(_.Xp,function(){_.Kj().resolve(_.sKZ).start(1E4)},5E3);
d.addOnDisposeCallback(function(){_.Xp.cancelJob(K);_.Kj().resolve(_.sKZ).stop()})}};
_.J8=function(d,H,K){d.fullscreen=H;d.theater=K;var c;(c=d.JSC$22905_cinematicController)==null||c.setFullscreen(d.fullscreen,d.theater);if(_.h("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(d.theater||d.fullscreen){var p;(p=d.JSC$22905_cinematicController)==null||_.Ufe(p)}else if((d=d.JSC$22905_cinematicController)!=null){var g;(g=d.currentCinematicEffect)==null||g.pause()}};
dMc=function(d){if(_.h("web_cinematic_theater_mode")||_.h("web_cinematic_fullscreen")){var H;d.JSC$22905_watchApi.getRoot().toggleCinematicsActive(!((H=d.JSC$22905_cinematicController)==null||!H.isEnabled()))}};_.cmC=function(d){_.h_.call(this);var H=this;this.JSC$22908_watchApi=d;this.commentsReady=!1;this.setCommentsJobId=0;d=_.LU(_.dn(),_.uz,function(){H6c(H)});
this.addOnDisposeCallback(d);var K=this.JSC$22908_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){$MC(H)}),c=this.JSC$22908_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){$MC(H)});
this.addOnDisposeCallback(function(){H.JSC$22908_watchApi.unsubscribeByKey(K);H.JSC$22908_watchApi.unsubscribeByKey(c)});
var p=function(){_.h("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&KSw(H,"false")};
this.JSC$22908_watchApi.getRoot().addEventListener("yt-page-data-will-update",p);this.addOnDisposeCallback(function(){H.JSC$22908_watchApi.getRoot().removeEventListener("yt-page-data-will-update",p)});
$MC(this)};
_.m(_.cmC,_.h_);var $MC=function(d){d.commentsReady=!1;_.Xp.cancelJob(d.setCommentsJobId);d.setCommentsJobId=_.mf(_.Xp,function(){H6c(d)},1E3)},H6c=function(d){if(!d.commentsReady){_.Fw("cmi");
_.Xp.cancelJob(d.setCommentsJobId);var H,K,c,p,g=(H=d.JSC$22908_watchApi.getWatchNextResponse())==null?void 0:(K=H.contents)==null?void 0:(c=K.twoColumnWatchNextResults)==null?void 0:(p=c.results)==null?void 0:p.results.contents;H=void 0;if(g&&g.length)for(g=_.q(g),K=g.next();!K.done;K=g.next())if(K=K.value,p=c=void 0,((c=K)==null?void 0:(p=c.itemSectionRenderer)==null?void 0:p.sectionIdentifier)==="comment-item-section"){_.h("web_watch_provide_undefined_comments")?H=K.itemSectionRenderer:d.JSC$22908_watchApi.provideRenderingData("COMMENTS",
K.itemSectionRenderer);KSw(d,"true");break}_.h("web_watch_provide_undefined_comments")&&d.JSC$22908_watchApi.provideRenderingData("COMMENTS",H);d.commentsReady=!0;d.JSC$22908_watchApi.dispatchEvent("yt-watch-comments-ready")}},KSw=function(d,H){var K;
(K=d.JSC$22908_watchApi.getElement("COMMENTS"))==null||K.setAttribute("canScheduleJobs",H)};_.G9H=function(d){_.h_.call(this);var H=this;this.JSC$22911_watchApi=d;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.h("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.h("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.h("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.iT("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)pEK(this);
else{var K=this.JSC$22911_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){sA(H);Fu(H)}),c=this.JSC$22911_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Zt(H);
Fu(H)});
this.JSC$22911_watchApi.getRoot().is==="ytd-watch-grid"&&_.h("swatcheroo_pbs_load_grid")&&(g2B(this),i6a(this));this.addOnDisposeCallback(function(){H.JSC$22911_watchApi.unsubscribeByKey(K);H.JSC$22911_watchApi.unsubscribeByKey(c);_.Xp.cancelJob(H.provideRichGridJobId)});
sA(this);Zt(this)}};
_.m(_.G9H,_.h_);var pEK=function(d){var H=d.JSC$22911_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){d.providePlayerJobId=_.mR(_.Xp,function(){sA(d);Fu(d)},d.provideAllDataDelayMs)}),K=d.JSC$22911_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){d.provideWatchNextJobId=_.mR(_.Xp,function(){Zt(d);
Fu(d)},d.provideAllDataDelayMs)}),c=d.JSC$22911_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){d.provideWatchNextJobId=_.mR(_.Xp,function(){Zt(d);
Fu(d)},d.provideAllDataDelayMs)});
d.JSC$22911_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.mf(_.Xp,function(){sA(d);Zt(d);Fu(d)},100)});
d.JSC$22911_watchApi.addPageDisposeJob(function(){_.Xp.cancelJob(d.provideWatchNextJobId);_.Xp.cancelJob(d.providePlayerJobId)});
d.addOnDisposeCallback(function(){d.JSC$22911_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");d.JSC$22911_watchApi.unsubscribeByKey(H);d.JSC$22911_watchApi.unsubscribeByKey(K);d.JSC$22911_watchApi.unsubscribeByKey(c);_.Xp.cancelJob(d.providePlayerJobId);_.Xp.cancelJob(d.provideWatchNextJobId)});
sA(d);Zt(d)},sA=function(d){var H=d.JSC$22911_watchApi.getPlayerResponse(),K,c,p=(c=H==null?void 0:(K=H.playabilityStatus)==null?void 0:K.messageRenderers)!=null?c:[],g,a;
H=(a=H==null?void 0:(g=H.playabilityStatus)==null?void 0:g.messages)!=null?a:[];g=_.q(H);for(a=g.next();!a.done;a=g.next())p.push({alertRenderer:{text:_.AF(a.value),type:"WARNING"}});d.JSC$22911_watchApi.provideRenderingData("ALERTS",p)},Zt=function(d){var H=[],K,c,p,g=d.JSC$22911_watchApi.getWatchNextResponse(),a,e,k,C,R=g==null?void 0:(a=g.contents)==null?void 0:(e=a.twoColumnWatchNextResults)==null?void 0:(k=e.results)==null?void 0:(C=k.results)==null?void 0:C.contents;
if(R)for(a=_.q(R),e=a.next();!e.done;e=a.next())if(e=e.value,e.videoPrimaryInfoRenderer)var V=e;else if(e.videoSecondaryInfoRenderer){var U=e;C=k=void 0;e=Object.assign({},(k=e.videoSecondaryInfoRenderer)==null?void 0:(C=k.metadataRowContainer)==null?void 0:C.metadataRowContainerRenderer);if(e.rows&&e.collapsedItemCount!==void 0){e.rows=e.rows.slice(0,e.collapsedItemCount).filter(function(Hv){return!!Hv.richMetadataRowRenderer});
e.collapsedItemCount=e.rows.length;var L={metadataRowContainerRenderer:e}}}else if(e.merchandiseShelfRenderer)var w=e;else if(e.ticketShelfRenderer)var W=e;else if(e.expandableMetadataRenderer)var J=e;else if(e.itemSectionRenderer)if(k=e.itemSectionRenderer.contents,C=void 0,d.directlyProvideComments&&((C=e.itemSectionRenderer)==null?void 0:C.sectionIdentifier)==="comment-item-section")_.Fw("cmi"),d.JSC$22911_watchApi.provideRenderingData("COMMENTS",e.itemSectionRenderer);else if(k)for(e=_.q(k),k=
e.next();!k.done;k=e.next())if(k=k.value,k.commentsEntryPointHeaderRenderer)var F=k;else if(k.clarificationRenderer||k.infoPanelContainerRenderer||k.infoPanelContentRenderer||k.emergencyOneboxRenderer){H.push(k);var Y=Y||!!U}else k.limitedStateMessageRenderer?c=k:k.videoMetadataCarouselViewModel&&(p=k);if(_.h("web_watch_merch_in_sd_when_ticket_shelf_present")&&w&&W){var A=w;w=void 0}if(d.provideWatchNextSecondaryResults){var E,N,y;d.JSC$22911_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
g==null?void 0:(E=g.contents)==null?void 0:(N=E.twoColumnWatchNextResults)==null?void 0:(y=N.secondaryResults)==null?void 0:y.secondaryResults)}if(d.JSC$22911_watchApi.getRoot().is==="ytd-watch-grid"){var v,el;d.JSC$22911_watchApi.provideRenderingData("LIVE_CHAT",g==null?void 0:(v=g.contents)==null?void 0:(el=v.twoColumnWatchNextResults)==null?void 0:el.conversationBar)}var l1,V4,Mf,LF;(E=g==null?void 0:(l1=g.contents)==null?void 0:(V4=l1.twoColumnWatchNextResults)==null?void 0:(Mf=V4.secondaryResults)==
null?void 0:(LF=Mf.secondaryResults)==null?void 0:LF.offerModule)&&(E.donationShelfRenderer||E.donationUnavailableRenderer)&&d.JSC$22911_watchApi.getRoot().is!=="ytd-watch-grid"&&(K=E);l1=d.JSC$22911_watchApi.getPlayerResponse();if(!l1||!_.zxi(l1.playabilityStatus,g==null?void 0:g.playerOverlays)){var YY;if(g==null?0:(YY=g.contents)==null?0:YY.singleColumnWatchNextResults){var FM,gA;var JN=g==null?void 0:(FM=g.contents.singleColumnWatchNextResults.results)==null?void 0:(gA=FM.results)==null?void 0:
gA.contents}else{var eS,vF,CX,kd;YY=!!(R==null?0:(eS=R[0])==null?0:(vF=eS.itemSectionRenderer)==null?0:(CX=vF.contents)==null?0:(kd=CX[0])==null?0:kd.backgroundPromoRenderer);var BB,ug;eS=!!(g==null?0:(BB=g.contents)==null?0:(ug=BB.twoColumnWatchNextResults)==null?0:ug.secondaryResults);YY&&!eS&&(JN=R)}}R=H[0];BB=H[1];Y&&H.length===1&&(BB=R,R=void 0);d.JSC$22911_watchApi.provideRenderingData("PRIMARY_INFO",V);d.JSC$22911_watchApi.provideRenderingData("SECONDARY_INFO",U);d.JSC$22911_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
F);d.JSC$22911_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",p);d.JSC$22911_watchApi.provideRenderingData("CLARIFICATION",R);d.JSC$22911_watchApi.provideRenderingData("RICH_METADATA",L);d.JSC$22911_watchApi.provideRenderingData("MERCH_SHELF",w);_.h("web_watch_merch_in_sd_when_ticket_shelf_present")&&d.JSC$22911_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",A);d.JSC$22911_watchApi.provideRenderingData("TICKET_SHELF",W);d.JSC$22911_watchApi.provideRenderingData("LIMITED_STATE",c);d.JSC$22911_watchApi.getRoot().is!==
"ytd-watch-grid"&&d.JSC$22911_watchApi.provideRenderingData("DONATION_SHELF",K);d.JSC$22911_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",JN);d.JSC$22911_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",BB);d.JSC$22911_watchApi.provideRenderingData("EXPANDABLE_METADATA",J);if(d.swatcherooProvideAllDataOnScheduledJob){var fX,pF,dA,U3,lg,hN;V=g==null?void 0:(fX=g.contents)==null?void 0:(pF=fX.twoColumnWatchNextResults)==null?void 0:(dA=pF.secondaryResults)==null?void 0:(U3=dA.secondaryResults)==
null?void 0:(lg=U3.results)==null?void 0:(hN=lg[0])==null?void 0:hN.richGridRenderer;d.JSC$22911_watchApi.provideRenderingData("RICH_GRID_RENDERER",V)}};
_.G9H.prototype.hasCompanionAds=function(d){var H,K;return(K=d==null?void 0:(H=d.adPlacements)==null?void 0:H.some(function(c){var p,g,a,e;return(c==null?void 0:(p=c.adPlacementRenderer)==null?void 0:(g=p.renderer)==null?void 0:g.actionCompanionAdRenderer)||(c==null?void 0:(a=c.adPlacementRenderer)==null?void 0:(e=a.renderer)==null?void 0:e.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?K:!1};
var Fu=function(d){if(!_.h("swaterdoo_ps_wn_handle_ks")){d.swatcherooProvideAllDataOnScheduledJob||i6a(d,3E3);var H=d.JSC$22911_watchApi.getPlayerResponse(),K,c,p,g,a,e=(K=d.JSC$22911_watchApi.getWatchNextResponse())==null?void 0:(c=K.contents)==null?void 0:(p=c.twoColumnWatchNextResults)==null?void 0:(g=p.secondaryResults)==null?void 0:(a=g.secondaryResults)==null?void 0:a.offerModule;H=d.hasCompanionAds(H);var k,C;K=(e==null?void 0:(k=e.tvfilmOfferModuleRenderer)==null?void 0:k.clientShouldSuppressIfCompanionAdDisplayed)||
(e==null?void 0:(C=e.unlimitedOfferModuleRenderer)==null?void 0:C.suppressIfCompanionAds);k=H&&K;d.JSC$22911_watchApi.getRoot().is==="ytd-watch-grid"&&d.JSC$22911_watchApi.provideRenderingData("OFFER_MODULE",k?void 0:e)}},i6a=function(d,H){_.h("swatcheroo_pbs_load_grid")&&(d.provideRichGridJobId&&_.Xp.cancelJob(d.provideRichGridJobId),d.provideRichGridJobId=_.mR(_.Xp,function(){d.provideRichGridJobId=0;
var K,c,p,g,a,e,k,C=(K=d.JSC$22911_watchApi.getWatchNextResponse())==null?void 0:(c=K.contents)==null?void 0:(p=c.twoColumnWatchNextResults)==null?void 0:(g=p.secondaryResults)==null?void 0:(a=g.secondaryResults)==null?void 0:(e=a.results)==null?void 0:(k=e[0])==null?void 0:k.richGridRenderer;C&&d.JSC$22911_watchApi.provideRenderingData("RICH_GRID_RENDERER",C)},H))},g2B=function(d){var H,K;
_.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$22911_watchApi.playerApi,2);H=c.yieldResult;K=function(){d.onPlaybackStart()};
H.addEventListener("onPlaybackStartExternal",K);d.addOnDisposeCallback(function(){H.removeEventListener("onPlaybackStartExternal",K)});
_.VE(c)})};
_.G9H.prototype.onPlaybackStart=function(){i6a(this)};_.qSH=function(d){_.h_.call(this);var H=this;this.JSC$22921_watchApi=d;d.playerApi.then(function(K){H.player=K});
this.gestures=new _.aA(this.JSC$22921_watchApi.getRoot(),d.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.u7c(_.dn().getState())&&_.uz(_.dn().getState())<=0)if(_.FX(_.dn().getState())){var K;(K=H.player)==null||K.toggleFullscreen()}else _.oF(H.JSC$22921_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
o2B(this)};
_.m(_.qSH,_.h_);var o2B=function(d){var H=_.LU(_.dn(),_.FX,function(K){d.onFullscreenChanged(K)});
d.addOnDisposeCallback(H);H=_.LU(_.dn(),_.uz,function(K){d.gestures&&(K>0?d.gestures.detach():d.gestures.attach())});
d.addOnDisposeCallback(H)};
_.qSH.prototype.onFullscreenChanged=function(d){this.gestures&&this.gestures.update(d)};_.lYa=function(d){_.h_.call(this);var H=this;this.JSC$22924_watchApi=d;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(d.subscribeToActiveChanged(function(K){H.onActiveChanged(K)}));
aY_(this)};
_.m(_.lYa,_.h_);var ehN=function(d){if(_.h("swatcheroo_page_dispose_all_watch_data"))d.pageDisposalDataTypes=Object.values(zzL).filter(function(K){return K!=="PLAYLIST"});
else if(_.h("swatcheroo_page_dispose_rich_grid")){var H;(H=d.pageDisposalDataTypes)==null||H.push("RICH_GRID_RENDERER")}},aY_=function(d){_.h("swatcheroo_enable_ghost_cards")&&(ehN(d),d.JSC$22924_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Xp.cancelJob(d.clearDataJobId);
d.clearDataJobId=0}),d.runPageDisposeJob=function(){var H=_.Kj().resolve(_.HI).getDestinationPageType()==="watch";
d.clearDataJobId=_.mR(_.Xp,d.runClearDataJob,H?0:_.iT("web_watch_delay_page_dispose_ms",1E4))},d.runClearDataJob=function(){k9L(d)},d.runOnYtNavigateAwayFinish=function(){d.clearDataJobId&&(_.Xp.cancelJob(d.clearDataJobId),d.clearDataJobId=0,k9L(d))},document.addEventListener("yt-navigate-finish",d.runOnYtNavigateAwayFinish),d.JSC$22924_watchApi.addPageDisposeJob(d.runPageDisposeJob),d.addOnDisposeCallback(function(){d.JSC$22924_watchApi.removePageDisposeJob(d.runPageDisposeJob);
d.JSC$22924_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",d.runOnYtNavigateAwayFinish)}))},k9L=function(d){d.pageDisposalDataTypes.forEach(function(H){d.JSC$22924_watchApi.provideRenderingData(H,void 0)});
d.clearDataJobId=0};
_.lYa.prototype.onActiveChanged=function(d){d&&((d=document.querySelector("#watch-page-skeleton"))&&_.nA(d),xME(this),document.body.removeAttribute("no-y-overflow"),_.Qx("IS_SHELL_LOAD")&&_.mKj())};
var xME=function(d){_.l(function(H){if(H.nextAddress==1)return H.yield(d.JSC$22924_watchApi.playerApi,2);_.YE();_.VE(H)})};var n2H;n2H=_.h("kevlar_watch_while_counterfactual")?0:.25;_.UMH=function(d){_.h_.call(this);this.JSC$22927_watchApi=d;this.JSC$22927_watchWhileEnabled=_.h("kevlar_watch_while_v2");this.pipEnabled=_.h("web_enable_pip_on_miniplayer");CUO(this);Rh_(this);VD_(this)};
_.m(_.UMH,_.h_);var CUO=function(d){d.JSC$22927_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){hhC(d)});
d.addOnDisposeCallback(function(){d.JSC$22927_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},Rh_=function(d){var H,K;
_.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$22927_watchApi.playerApi,2);H=c.yieldResult;K=function(){hhC(d)};
H.addEventListener("onCollapseMiniplayer",K);d.addOnDisposeCallback(function(){H.removeEventListener("onCollapseMiniplayer",K)});
_.VE(c)})},VD_=function(d){var H=d.JSC$22927_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&H&&d.JSC$22927_watchWhileEnabled&&(d.playerIntersectionObserver=new IntersectionObserver(function(K){d.handleIntersect(K)},{threshold:[n2H]}),d.playerIntersectionObserver.observe(H),d.addOnDisposeCallback(function(){var K;
(K=d.playerIntersectionObserver)==null||K.disconnect()}))},hhC=function(d){var H,K,c;
_.l(function(p){if(p.nextAddress==1){H=_.Kj().resolve(_.HI);K=H.data;c=_.Bw(K.response,!1,K.playerResponse);_.UT().miniplayerButtonActivation=!0;if(d.pipEnabled)return _.UT().watchPipActivation=!0,p.jumpTo(2);_.Kj().resolve(_.Fb).collapse();return p.yield(_.UT().navigationFinishPromise,2)}if(p.nextAddress!=4)return _.UT().currentEndpoint=c.watchEndpoint||null,p.yield(_.Kj().resolve(_.Fb).activate(d.JSC$22927_watchApi.getElement("PLAYER"),c,K),4);_.UT().userActivation=!0;_.VE(p)})};
_.UMH.prototype.handleIntersect=function(d){LSw(this,d[d.length-1])};
var LSw=function(d,H){d.watchWhileJobId&&_.Xp.cancelJob(d.watchWhileJobId);d.watchWhileJobId=_.Xp.addLowPriorityJob(function(){var K,c;return _.l(function(p){if(p.nextAddress==1)return d.watchWhileJobId=void 0,K=_.Kj().resolve(_.Fb),H.intersectionRatio>n2H?K.isMiniplayerActive()?p.yield(K.deactivate(),0):p.jumpTo(0):(c=!K.isMiniplayerActive())?p.yield(MDB(d),5):p.jumpTo(4);p.nextAddress!=4&&(c=p.yieldResult);if(!c)return p.jumpTo(0);_.UT().watchWhileActivation=!0;return p.yield(mML(d),0)})},100)},
MDB=function(d){return _.l(function(H){return H.nextAddress==1?_.h("kevlar_watch_while_paused")?H.return(!0):H.yield(d.isPlayerPlaying(),2):H.return(H.yieldResult)})};
_.UMH.prototype.isPlayerPlaying=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1)return K.yield(d.JSC$22927_watchApi.playerApi,2);H=K.yieldResult;return K.return(H.getPlayerStateObject().isPlaying)})};
var mML=function(d){var H,K;return _.l(function(c){H=_.Kj().resolve(_.HI).data;K=_.Bw(H.response,!1,H.playerResponse);_.UT().currentEndpoint=K.watchEndpoint||null;return c.yield(_.Kj().resolve(_.Fb).activate(d.JSC$22927_watchApi.getElement("PLAYER"),K,H),0)})};_.umc=function(d){_.h_.call(this);this.JSC$22931_watchApi=d;wE_(this);PUL(this)};
_.m(_.umc,_.h_);var PUL=function(d){var H,K;_.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$22931_watchApi.playerApi,2);H=c.yieldResult;K=function(p){var g;p.sessionData&&p.sessionData.itct&&(g=p.sessionData.itct);var a=p.watchEndpoint;if(a&&p.sessionData&&p.sessionData.autonav)a=_.AUY(a,g);else{var e;a=_.KH(p.videoId,(e=p.listId)!=null?e:void 0,g)}g={endpoint:a};p.sessionData&&(g.tempData=p.sessionData);d.JSC$22931_watchApi.dispatchEvent("yt-navigate",g)};
H.addEventListener("onPlayVideo",K);d.addOnDisposeCallback(function(){H.removeEventListener("onPlayVideo",K)});
_.VE(c)})},wE_=function(d){var H=function(K){d.onYtNavigate(K)};
d.JSC$22931_watchApi.getRoot().addEventListener("yt-navigate",H);d.addOnDisposeCallback(function(){d.JSC$22931_watchApi.getRoot().removeEventListener("yt-navigate",H)})};
_.umc.prototype.onYtNavigate=function(d){var H=this,K,c,p,g,a,e,k,C,R;return _.l(function(V){if(V.nextAddress==1){if(!((K=d.detail)==null?0:(c=K.endpoint)==null?0:c.watchEndpoint))return V.return();p=d.detail.endpoint.watchEndpoint;g=H.JSC$22931_watchApi.getWatchNextResponse();e=_.M((a=g)==null?void 0:a.currentVideoEndpoint,_.AP);if(!e)return V.return();if(p.videoId!==e.videoId||p.playlistId&&p.playlistId!==e.playlistId||typeof p.startTimeSeconds!=="number")return V.jumpTo(0);d.stopPropagation();
(k=_.h("kevlar_watch_while_v2")&&!_.h("kevlar_watch_while_counterfactual"))&&_.Kj().resolve(_.Fb).isMiniplayerActive()||H.JSC$22931_watchApi.scrollWatchTo(0,!0);return V.yield(H.JSC$22931_watchApi.playerApi,3)}C=V.yieldResult;R=p.startTimeSeconds;C.seekTo(R,void 0,void 0,void 0,84);C.wakeUpControls();R<C.getDuration()&&C.playVideo();_.VE(V)})};_.rm_=function(d){_.h_.call(this);var H=this;this.JSC$22934_watchApi=d;var K=this.JSC$22934_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){IYL(H)});
this.addOnDisposeCallback(function(){H.JSC$22934_watchApi.unsubscribeByKey(K)});
IYL(this)};
_.m(_.rm_,_.h_);var IYL=function(d){var H=d.JSC$22934_watchApi.getWatchNextResponse();if(H){var K,c=[].concat(_.ru((K=H==null?void 0:H.engagementPanels)!=null?K:[]));c.unshift.apply(c,_.ru(WSK(H)));d.JSC$22934_watchApi.provideRenderingData("ENGAGEMENT_PANELS",c)}},B9C=function(d){var H,K,c,p=(H=d.engagementPanels)==null?void 0:(K=H.find(function(L){var w;
return((w=L.engagementPanelSectionListRenderer)==null?void 0:w.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(c=K.engagementPanelSectionListRenderer.content)==null?void 0:c.structuredDescriptionContentRenderer,g;
if(_.M(p==null?void 0:(g=p.items)==null?void 0:g.find(function(L){return!!_.M(L,icS)}),icS))return!0;
var a,e,k,C;if(d=(((a=d.contents)==null?void 0:(e=a.twoColumnWatchNextResults)==null?void 0:(k=e.results)==null?void 0:(C=k.results)==null?void 0:C.contents)||[]).find(function(L){return L.videoPrimaryInfoRenderer})){var R,V,U;
return(((R=d.videoPrimaryInfoRenderer)==null?void 0:(V=R.videoActions)==null?void 0:(U=V.menuRenderer)==null?void 0:U.flexibleItems)||[]).some(function(L){L=_.M(L,_.rs3);if(!L)return!1;var w,W;L=(w=L.topLevelButton)==null?void 0:(W=w.buttonViewModel)==null?void 0:W.onTap;if(!L)return!1;w=_.T6(L);if(!w)return!1;var J;return((J=_.M(w,_.r5))==null?void 0:J.panelIdentifier)==="PAyouchat"})}return!1},WSK=function(d){var H=[];
if(!_.h("web_watch_inject_placeholder_fantasy_panel_killswitch")){var K,c,p,g=(K=d.engagementPanels)==null?void 0:(c=K.find(function(e){var k;return((k=e.engagementPanelSectionListRenderer)==null?void 0:k.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(p=c.engagementPanelSectionListRenderer.content)==null?void 0:p.structuredDescriptionContentRenderer,a;
_.M(g==null?void 0:(a=g.items)==null?void 0:a.find(function(e){return!!_.M(e,Zte)}),Zte)&&(K=_.CiL("PAsports_fantasy"),K.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H.push(K))}B9C(d)&&(d=_.CiL("PAyouchat"),d.engagementPanelSectionListRenderer.targetId="PAyouchat",d.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H.push(d));
return H};_.XEC=function(d){_.h_.call(this);this.JSC$22937_watchApi=d;zhL(this)};
_.m(_.XEC,_.h_);var zhL=function(d){d.JSC$22937_watchApi.registerActionHandler("yt-loop-command",function(H){Jm_(d,H)});
d.JSC$22937_watchApi.registerActionHandler("yt-repeat-chapter-command",function(H){ssK(d,H)});
d.addOnDisposeCallback(function(){d.JSC$22937_watchApi.unregisterActionHandler("yt-loop-command");d.JSC$22937_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},Jm_=function(d,H){var K;
_.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$22937_watchApi.playerApi,2);K=c.yieldResult;_.M(H,QZa).loop?(K.setLoopRange({startTimeMs:Number(_.M(H,QZa).startTimeMs),endTimeMs:Number(_.M(H,QZa).endTimeMs),postId:_.M(H,QZa).postId,type:"clips"}),K.playVideo()):K.setLoopRange(null);_.VE(c)})},ssK=function(d,H){var K,c;
_.l(function(p){if(p.nextAddress==1)return p.yield(d.JSC$22937_watchApi.playerApi,2);K=p.yieldResult;c=_.M(H,E0a).repeat;c==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(K.setLoopRange({startTimeMs:Number(_.M(H,E0a).startTimeMs),endTimeMs:Number(_.M(H,E0a).endTimeMs),type:"repeatChapter"}),K.playVideo()):c==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&K.setLoopRange(null);_.VE(p)})};_.Z6B=function(d){_.h_.call(this);this.JSC$22942_watchApi=d;FSO(this)};
_.m(_.Z6B,_.h_);var FSO=function(d){d.JSC$22942_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(H){T9H(d,H)});
d.addOnDisposeCallback(function(){d.JSC$22942_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},T9H=function(d,H){var K,c,p,g,a,e,k,C,R,V,U;
_.l(function(L){if(L.nextAddress==1)return L.yield(d.JSC$22942_watchApi.playerApi,2);K=L.yieldResult;if(g=(p=(c=_.M(H,yZa))==null?void 0:c.highlightedMenuItemKey)!=null?p:"")(e=(a=K).highlightSettingsMenuItem)==null||e.call(a,g);if(R=(C=(k=_.M(H,yZa))==null?void 0:k.openMenuItemKey)!=null?C:"")(U=(V=K).openSettingsMenuItem)==null||U.call(V,R);_.VE(L)})};var Qsr=_.kL("/youtube/app/watch/player_state","playerStateEntity");_.YSC=function(d){_.h_.call(this);this.JSC$22945_watchApi=d;tD_(this)};
_.m(_.YSC,_.h_);var O6_=function(d){switch(d){case 0:return"PLAYER_STATE_FINISHED";case 1:return"PLAYER_STATE_PLAYING";case 2:return"PLAYER_STATE_PAUSED";case 3:return"PLAYER_STATE_LOADING_CONTENT";default:return"PLAYER_STATE_UNKNOWN"}},tD_=function(d){var H,K;
_.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$22945_watchApi.playerApi,2);H=c.yieldResult;K=function(p){d.onPlayerStateChange(p)};
H.addEventListener("onStateChange",K);d.addOnDisposeCallback(function(){H.removeEventListener("onStateChange",K)});
_.VE(c)})};
_.YSC.prototype.onPlayerStateChange=function(d){var H=this,K,c;return _.l(function(p){if(p.nextAddress==1)return p.yield(H.JSC$22945_watchApi.playerApi,2);K=p.yieldResult;c=K.getVideoData().video_id;_.AB().dispatch(_.PI("playerStateEntity",Qsr,{key:Qsr,playerState:O6_(d),videoId:c}));_.VE(p)})};_.E2E=function(d){_.h_.call(this);var H=this;this.JSC$22949_watchApi=d;this.enableExternalPlaylistPanelInPlayer=_.h("delhi_web_player_use_external_playlist_panel");_.Kj().resolve(_.tJ).setPlayer(this.JSC$22949_watchApi.getElement("PLAYER"));d=this.JSC$22949_watchApi.subscribeToActiveChanged(function(K){H.onActiveChanged(K)});
this.addOnDisposeCallback(d);SSa(this)};
_.m(_.E2E,_.h_);var SSa=function(d){var H,K;_.l(function(c){if(c.nextAddress==1)return d.enableExternalPlaylistPanelInPlayer?c.yield(d.JSC$22949_watchApi.playerApi,2):c.return();H=c.yieldResult;K=function(){if(d.playlistPanelElement)d.playlistPanelElement.onToggleExpanded()};
H.addEventListener("onToggleExternalPlaylistPanel",K);d.addOnDisposeCallback(function(){H.removeEventListener("onToggleExternalPlaylistPanel",K)});
_.VE(c)})};
_.E2E.prototype.onActiveChanged=function(d){var H=this,K=_.Kj().resolve(_.tJ),c=function(){ymN(H)};
d?(this.playlistPanelElement=this.JSC$22949_watchApi.getElement("PLAYLIST_PANEL"))?(K.setPlaylistComponent(this.playlistPanelElement),K.addEventListener("yt-playlist-data-updated",c),this.addOnDisposeCallback(function(){K.removeEventListener("yt-playlist-data-updated",c)}),ymN(this)):_.SD(Error("Fo")):(K.removeEventListener("yt-playlist-data-updated",c),K.cancelVideoSkip())};
var ymN=function(d){var H=_.Kj().resolve(_.tJ);d.JSC$22949_watchApi.provideRenderingData("PLAYLIST",H.getPlaylistData())};_.Tk=function(d){_.h_.call(this);var H=this;this.JSC$22952_watchApi=d;this.onPageScroll=function(){H.scrollThrottle.fire();H.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.NV(this.onThrottledScroll,200,this);_.q_(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.NV(this.onMastheadThrottledScroll,50,this);_.q_(this,this.mastheadScrollThrottle);this.animation=new _.b6(function(K){H.JSC$22952_watchApi.getRoot().setScrollTop(K)});
d=_.LU(_.dn(),_.FX,function(){H.onFullscreenChanged()});
this.addOnDisposeCallback(d);b6e(this);N9K(this);this.onThrottledScroll()};
_.m(_.Tk,_.h_);
_.Tk.prototype.onFullscreenChanged=function(){var d=this,H=this.JSC$22952_watchApi.getRoot();!this.pageScrollElement&&H.pageScrollElement?(this.pageScrollElement=H.pageScrollElement,H.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){d.pageScrollElement&&d.pageScrollElement.removeEventListener("scroll",d.onPageScroll)})):this.pageScrollElement&&!H.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var b6e=function(d){window.addEventListener("scroll",d.onPageScroll);d.addOnDisposeCallback(function(){window.removeEventListener("scroll",d.onPageScroll)})},N9K=function(d){d.JSC$22952_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(H){a:{var K;
if(K=d.JSC$22952_watchApi.getRoot().contains(H)&&!d.animation.isAnimating()){K=H.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var c,p,g=(H==null?void 0:(c=H.parentElement)==null?void 0:(p=c.parentElement)==null?void 0:p.id)==="fixed-secondary";K=!(K&&g)}if(K){if(_.h("kevlar_watch_scroll_manager_absolute_offset_killswitch"))c=H.offsetTop;else for(c=0,p=H;p!==null;)c+=p.offsetTop,c-=p.scrollTop,p=p.offsetParent;p=c;c=p-24;H=p+H.offsetHeight+24;p=d.JSC$22952_watchApi.getRoot().getPageScrollingElement();
K=d.JSC$22952_watchApi.getRoot().getScrollTop();g=K+p.clientHeight-56;if(c<K+56)H=c-56;else if(H>g)H-=p.clientHeight;else break a;d.scrollWatchTo(Math.max(0,H),!0)}}});
d.addOnDisposeCallback(function(){d.JSC$22952_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.Tk.prototype.onThrottledScroll=function(){var d=_.dn(),H=d.dispatch,K=this.JSC$22952_watchApi.getRoot().getScrollTop();H.call(d,_.iZ({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:K}}))};
_.Tk.prototype.onMastheadThrottledScroll=function(){this.JSC$22952_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$22952_watchApi.getRoot().getScrollTop())};
_.Tk.prototype.scrollWatchTo=function(d,H){(H===void 0?0:H)?this.animation.start(this.JSC$22952_watchApi.getRoot().getScrollTop(),Math.max(0,d),500):this.JSC$22952_watchApi.getRoot().setScrollTop(d)};_.Amc=function(d){_.h_.call(this);var H=this;this.JSC$22955_watchApi=d;var K=this.JSC$22955_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){DMS(H)}),c=this.JSC$22955_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){fYa(H)});
this.addOnDisposeCallback(function(){H.JSC$22955_watchApi.unsubscribeByKey(K);H.JSC$22955_watchApi.unsubscribeByKey(c)});
DMS(this);fYa(this)};
_.m(_.Amc,_.h_);
var DMS=function(d){var H,K,c,p=(c=(H=d.JSC$22955_watchApi.getPlayerResponse())==null?void 0:(K=H.videoDetails)==null?void 0:K.title)!=null?c:"";d.JSC$22955_watchApi.dispatchEvent("yt-update-title",p)},fYa=function(d){var H,K,c,p,g,a,e,k=(e=((a=(H=d.JSC$22955_watchApi.getWatchNextResponse())==null?void 0:(K=H.contents)==null?void 0:(c=K.twoColumnWatchNextResults)==null?void 0:(p=c.results)==null?void 0:(g=p.results)==null?void 0:g.contents)!=null?a:[]).find(function(C){return!!C.videoPrimaryInfoRenderer}))==null?
void 0:e.videoPrimaryInfoRenderer;
(H=_.jG(k==null?void 0:k.title))&&d.JSC$22955_watchApi.dispatchEvent("yt-update-title",H)};_.v2K=function(d){_.h_.call(this);this.JSC$22958_watchApi=d;jse(this)};
_.m(_.v2K,_.h_);var jse=function(d){var H,K;_.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$22958_watchApi.playerApi,2);H=c.yieldResult;K=function(){d.onYpcContentRequest()};
H.addEventListener("onYpcContentRequest",K);d.addOnDisposeCallback(function(){H.removeEventListener("onYpcContentRequest",K)});
_.VE(c)})};
_.v2K.prototype.onYpcContentRequest=function(){var d,H,K,c,p,g=(d=this.JSC$22958_watchApi.getWatchNextResponse())==null?void 0:(H=d.contents)==null?void 0:(K=H.twoColumnWatchNextResults)==null?void 0:(c=K.secondaryResults)==null?void 0:(p=c.secondaryResults)==null?void 0:p.offerModule,a,e,k,C;d=(C=(k=(e=(a=g==null?void 0:g.episodeOfferModuleRenderer)!=null?a:g==null?void 0:g.movieOfferModuleRenderer)!=null?e:g==null?void 0:g.unlimitedOfferModuleRenderer)!=null?k:g==null?void 0:g.liveOfferModuleRenderer)!=
null?C:g==null?void 0:g.tvfilmOfferModuleRenderer;var R,V,U;g=(U=g==null?void 0:(R=g.tvfilmOfferModuleRenderer)==null?void 0:(V=R.actionButtons)==null?void 0:V.length)!=null?U:0;V=Math.max(g-1,0);var L,w,W;R=(W=d==null?void 0:(L=d.offerButton)==null?void 0:L.buttonRenderer)!=null?W:d==null?void 0:(w=d.actionButtons)==null?void 0:w[V].buttonRenderer;var J,F;(L=(F=(J=R==null?void 0:R.navigationEndpoint)!=null?J:R==null?void 0:R.serviceEndpoint)!=null?F:R==null?void 0:R.command)&&_.nM.instance.resolveCommand(L)};
}catch(e){_._DumpException(e)}
try{
var FKZ,XV5,BQU;_.zYZ=function(){var d=_.rs.clone(WKU),H;return(new _.kr(function(K,c){d.onSuccess=function(p){_.JO5(p)?K(new BQU(p)):c(new _.ac("Request failed, status="+_.qQ(p),"net.badstatus",p))};
d.onError=function(p){c(new _.ac("Unknown request error","net.unknown",p))};
d.onTimeout=function(p){c(new _.ac("Request timed out","net.timeout",p))};
H=_.xp("//googleads.g.doubleclick.net/pagead/id",d)})).thenCatch(function(K){if(K instanceof _.T_){var c;
(c=H)==null||c.abort()}return _.W1(K)})};
_.JwS=function(d){a:{var H="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(H="EMBEDDED_PLAYER_MODE_PFL");var K=d.raw_embedded_player_response;if(!K&&(d=d.embedded_player_response))try{K=JSON.parse(d)}catch(p){break a}if(K)b:for(var c in XV5)if(XV5[c]==K.embeddedPlayerMode){H=XV5[c];break b}}return H==="EMBEDDED_PLAYER_MODE_PFL"};
_.s$0=function(){if(_.h("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("mf");if(!_.qvE())return Error("nf");var d=_.Fm("PLAYER_VARS",{});if(_.rs.get(d,"privembed",!1)=="1")return Error("of");if(_.JwS(d))return Error("pf")};
FKZ=function(d){switch(d){case 0:return"BISCOTTI_BASED_DETECTION_RESULT_DETECTED";case 1:return"BISCOTTI_BASED_DETECTION_RESULT_NOT_DETECTED";case 2:return"BISCOTTI_BASED_DETECTION_RESULT_UNSPECIFIED";case 3:return"BISCOTTI_BASED_DETECTION_RESULT_KNOWN_FAILURE";case 4:return"BISCOTTI_BASED_DETECTION_RESULT_UNKNOWN_FAILURE";default:_.tN(d,"unknown result type")}};
_.Z5Z=function(d,H,K){H=_.qtL[H];K={detected:d===0,source:H.s0n,detectionResult:FKZ(d),contentCpn:K};_.Wd("biscottiBasedDetection",K);_.asB.increment(H.s0n,d);H.qIc!==void 0&&_.sS("CATSTAT",_.GrD(d,H))};
_.lu=function(d,H){var K={};K.key=d;K.value=H;return _.StX().then(function(c){return new Promise(function(p,g){try{var a=c.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(K);a.onsuccess=function(){p()};
a.onerror=function(){g()}}catch(e){g(e)}})})};
_.Q$0=function(){var d=_.iT("user_engagement_experiments_rate_limit_ms"),H=TQj.get("last-user-engagement-exp-trigger-timestamp");return!H||(0,_.$G)()>=H+d?(TQj.set("last-user-engagement-exp-trigger-timestamp",(0,_.$G)()),!0):!1};
_.eC=function(d,H,K,c,p){H=H===void 0?null:H;K=K===void 0?null:K;c=c===void 0?null:c;p=p===void 0?null:p;d={youThereEventType:d};K&&(d.lactThresholdMs=K.lactThresholdMs,d.mediaPosSec=K.promptDelaySec,d.lactServerRequestMs=K.lactServerRequestMs,d.triggerReason=K.triggerReason);p!=null&&(d.renderingMediaPosSec=Math.round(p));H||(H=_.Fj());H&&(d.clientScreenNonce=H);c&&(d.clientPlaybackNonce=c);_.Wd("youThere",d)};
XV5={EMBEDDED_PLAYER_MODE_UNKNOWN:"EMBEDDED_PLAYER_MODE_UNKNOWN",EMBEDDED_PLAYER_MODE_DEFAULT:"EMBEDDED_PLAYER_MODE_DEFAULT",EMBEDDED_PLAYER_MODE_PFP:"EMBEDDED_PLAYER_MODE_PFP",EMBEDDED_PLAYER_MODE_PFL:"EMBEDDED_PLAYER_MODE_PFL"};BQU=function(d){this.xhr=d};
_.ac=function(d,H,K){_.dh.call(this,d+", errorCode="+H);this.errorCode=H;this.xhr=K;this.name="PromiseAjaxError"};
_.m(_.ac,_.dh);var WKU={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var TQj=new _.T1("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.rwZ=function(d){return _.iZ({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:d})};
}catch(e){_._DumpException(e)}
try{
var OA,hdw,MbE,mQr,wbr,PT_,IOH,Zja,TfK,Q5S,uIa,L1C,zdE,BfO,OjL;_.UQN=function(){var d=window.location.hash;d.charAt(0)==="#"&&(d=d.charAt(1)==="!"?d.substring(2):d.substring(1));return _.bU(d)};
OA=function(d,H,K){var c;return _.l(function(p){if(p.nextAddress==1)return p.yield(H(),2);c=p.yieldResult;K(c,d);_.VE(p)})};
hdw=function(){return _.l(function(d){return d.nextAddress==1?d.yield((_.s$0()!==void 0?_.W1(Error("qf")):_.zYZ()).then(function(){return 1},function(H){if(H.message==="Biscotti id is disabled")return 3;
_.Jf("Failed fetching bid");return 0}),2):d.return(d.yieldResult)})};
MbE=function(){var d=_.c5("ampwbGxlNzU5Z2loeXQtaGF2ZW4tZW1iZWQtcGxheWVyIw=="),H=_.c5("NzFhcW9waHJpZnJhbWUjbmpiMA==");return document.querySelector(H+L1C+d)?0:1};
mQr=function(){return _.DTY(_.DE)};
wbr=function(){return _.f4Y()===0?0:_.AoF()};
PT_=function(){return _.$i1(_.CFF([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
IOH=function(){return _.tkD(uIa)};
_.rXK=function(d){_.l(function(H){switch(H.nextAddress){case 1:return H.yield(OA("b.f_",hdw,d),2);case 2:return H.yield(OA("j.s_",_.T2h,d),3);case 3:return H.yield(OA("r.s_",_.sxh,d),4);case 4:return H.yield(OA("e.h_",IOH,d),5);case 5:if(!_.h("ab_det_sc_inj")){H.jumpTo(6);break}return H.yield(OA("s.i_",_.beh,d),6);case 6:if(_.h("ab_deg_unex_thr")){H.jumpTo(8);break}return H.yield(OA("a.o_",_.EXM,d),8);case 8:if(_.h("ks_get_o_pp")){H.jumpTo(10);break}return H.yield(OA("g.o_",_.SOY,d),10);case 10:if(_.h("ks_det_gpbl")){H.jumpTo(12);
break}return H.yield(OA("p.i_",_.Oef,d),12);case 12:return H.yield(OA("f.i_",_.mTE,d),14);case 14:return H.yield(OA("a.b_",_.XnE,d),15);case 15:return H.yield(OA("p.m_",_.uZL,d),16);case 16:if(!_.h("ab_det_el_h_v2")){H.jumpTo(17);break}return H.yield(OA("n.h_",PT_,d),17);case 17:return H.yield(OA("o.p_",mQr,d),19);case 19:return H.yield(OA("e.i_",MbE,d),20);case 20:if(_.h("ab_det_apm"))return H.yield(OA("o.a_",wbr,d),0);H.jumpTo(0)}})};
_.W1L=function(d,H){d={videoId:d};H&&(d.playlistId=H);return d};
_.Xba=function(){if(_.qvE()){var d=_.Fm("PLAYER_VARS",{});if(_.rs.get(d,"privembed",!1)!="1"&&!_.JwS(d)){var H=function(){BfO=!0;"google_ad_status"in window?_.sS("DCLKSTAT",1):_.sS("DCLKSTAT",2)};
try{_.SM(_.ewX,H)}catch(K){}zdE.push(_.Xp.addLowPriorityJob(function(){if(!(BfO||"google_ad_status"in window)){try{_.$sE(_.ewX.toString(),H)}catch(K){}BfO=!0;_.sS("DCLKSTAT",3)}},5E3))}}};
_.JXr=function(d,H,K){K=K===void 0?!1:K;var c=Math.max(d.width,_.oO_);if(_.h("kevlar_watch_feed_big_thumbs")&&d.width>=1550-_.DN()&&d.height>=800)c-=_.xNc;else if(d.width>=_.TB){var p=_.qHw+_.awr+_.ZI;_.h("kevlar_watch_feed_big_thumbs")&&(p=_.kC_);c-=p}else c-=_.qHw;c=Math.min(c,_.lwe);p=240;K&&(p=380);H<.5624||(!_.h("kevlar_watch_flexy_disable_small_window_sizing")&&(d.height<630&&d.width>=657||d.height>=630&&d.width>=_.TB&&d.width<1327)?p=360:!_.h("kevlar_watch_flexy_disable_large_window_sizing")&&
d.height>=630&&d.width>=1327&&(p=480));var g=Math.min(c*H,d.height-(56+_.GCO+_.e_H));g=Math.max(g,p);H<1?c=g/H:d.width>=_.TB&&(c=_.JXr(d,.5625,K).width);return new _.nB(Math.round(c),Math.round(g))};
_.s5E=function(d){var H=0;d.indexOf("h")!=-1&&(d=d.split("h"),H=d[0]*60*60,d=d[1]);d.indexOf("m")!=-1&&(d=d.split("m"),H=d[0]*60+H,d=d[1]);d.indexOf("s")!=-1?(d=d.split("s"),H=d[0]*1+H):H=d*1+H;return H};
_.F1H=function(){_.iT("service_worker_push_logged_out_prompt_watches")!=-1&&_.RP("WatchCount").then(function(d){d>=100||_.lu("WatchCount",d+1)})};
Zja=function(d){var H=d.externalVideoId||"";return H?d.isShortsEligible?"https://www.youtube.com/shorts/"+H:"https://www.youtube.com/watch?v="+H:""};
TfK=function(d){var H=[];d.viewCount&&H.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:d.viewCount});d.likeCount&&H.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:d.likeCount});return H};
Q5S=function(d){var H,K,c={"@context":"https://schema.org","@type":"VideoObject",description:_.jG(d.description),duration:"PT"+(d.lengthSeconds||"0")+"S",embedUrl:d.embed?d.embed.iframeUrl:"",name:_.jG(d.title),thumbnailUrl:((H=d.thumbnail)==null?void 0:(K=H.thumbnails)==null?void 0:K.map(function(R){return R&&R.url||""}))||[],
uploadDate:d.publishDate};_.h("mweb_video_schema_id_killswitch")||(c["@id"]=Zja(d));H=TfK(d);H.length&&(c.interactionStatistic=H);d.category&&(c.genre=d.category);d.ownerChannelName&&(c.author=d.ownerChannelName);d.liveBroadcastDetails&&(c.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:d.liveBroadcastDetails.startTimestamp,endDate:d.liveBroadcastDetails.endTimestamp}]);if(d.learningResource){d=d.learningResource;c["@type"]=["VideoObject","LearningResource"];var p;if((p=d.learningResourceType)==
null?0:p.length)c.learningResourceType=d.learningResourceType[0];var g;if((g=d.educationalAlignment)==null?0:g.length)c.educationalAlignment={"@type":"AlignmentObject",targetName:d.educationalAlignment[0]};var a;if((a=d.educationalLevel)==null?0:a.length){p=d.educationalLevel[0];var e;if((e=d.educationalLevelCountry)==null?0:e.length)p+=" ("+d.educationalLevelCountry+")";c.educationalLevel=p}var k,C;if(((k=d.learningResourceType)==null?0:k.length)&&d.learningResourceType[0]==="Problem walkthrough"&&
((C=d.problemDescriptions)==null?0:C.length))for(c.hasPart=[],e=_.q(d.problemDescriptions),k=e.next();!k.done;k=e.next())p=k.value,k=p.problemDescriptionText,C=p.startOffset,p=p.url,k&&C!==void 0&&p&&c.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:k,text:k,startOffset:C,url:p})}return c};
_.tbe=function(d){return _.iZ({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:d}})};
uIa=[[["OHMyZWZ1cHJpbWFyeSM2cDN0c3g=",null,null],[null,["d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyIzdmMXRhcGNrN3g2Nnl0ZC10","eWxlLXNjb3BlI2VqMmxkODFyZTM3b3N0"],null],["c3RoZWFkLWFkI2VtZ2xucTF5Y2E2dm1h",["amF2dHY3NjhlcjR5dGQtcmljaC1ncmlkLXJlbmRlcmVyI2Y="],null],[null,["c2thaXR3ZWphbXV5dGQtcmljaC1ncmlkLXJlbmRlcmVyI28=","eWxlLXNjb3BlI3JnMzIyZGR0YTZjenN0"],null],[null,["ODAxd2pwd3Z5dGQtYmFubmVyLXByb21vLXJlbmRlcmVyI2hlYXQ=","eWxlLXNjb3BlIzc4bGxuejV1d2FnZnN0"],null],[null,["I2M3N2t5cXJmbDhwMnl0ZC1hZC1zbG90LXJlbmRlcmVy"],
null]],[["cGxheWVyLWFkcyMzZmR2a3hpYjdjMTA=",null,null]],[["bmVyI3hlNHlvb3AzYmIzbWRlc2NyaXB0aW9uLWlu",null,null],[null,null,"dWZiNWRycmJjeXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyI2VpYQ=="],["Y3F4YzVhNGt4Z3Y2bWFpbiM=",["Z2l0aW4zMmN2eXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyI3h2eQ=="],null]]];L1C="#";zdE=[];BfO=!1;_.YmK=["engagement-panel-ads"];OjL=new _.Dk("updateSentimentBarStateCommand");_.Sm_=new _.Dk("showSurveyCommand");_.SB=new _.Dk("changeMarkersVisibilityCommand");var yX_,bjS,AX_,fOO,DQ_,EA;_.Ep_=function(d,H){this.playerProvider_=d;this.actionSenderElement_=H;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.Ep_.prototype.reset=function(){yX_(this);this.isUserPredictedAbsent_=!1};
yX_=function(d,H){!d.youThereData_||d.showWarningJob_||H!==void 0&&H||(_.eC("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Fj(),d.youThereData_,d.clientPlaybackNonce_),_.Bd());_.Xp.cancelJob(d.showWarningJob_);d.showWarningJob_=0;_.Xp.cancelJob(d.showBlockingWarningJob_);d.showBlockingWarningJob_=0;_.Xp.cancelJob(d.pausePlaybackJob_);d.pausePlaybackJob_=0;d.youThereData_=null;d.clientPlaybackNonce_=void 0;d.inYouThereFlow_=!1};
_.NfL=function(d,H){var K,c,p;_.l(function(g){if(g.nextAddress==1)return d.reset(),g.yield(d.playerProvider_().getPlayerPromise(),2);K=g.yieldResult;d.clientPlaybackNonce_=K.getVideoData().cpn;d.youThereData_=H.configData.youThereData;if(!d.youThereData_)return g.return();if(d.youThereData_.triggerReason&&d.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.Q$0())return _.eC("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Fj(),d.youThereData_,d.clientPlaybackNonce_),g.return();c=d.youThereData_.promptDelaySec;
p=K.getCurrentTime();d.showWarningJob_=_.Xp.addLowPriorityJob(function(){return _.l(function(a){d.showWarningJob_=0;return a.yield(bjS(d),0)})},Math.max(c-p,0)*1E3);
_.VE(g)})};
bjS=function(d){var H,K,c,p,g,a;return _.l(function(e){if(e.nextAddress==1)return e.yield(d.playerProvider_().getPlayerPromise(),2);if(e.nextAddress!=3)return H=e.yieldResult,K=H.getCurrentTime(),e.yield(DQ_(d),3);c=e.yieldResult;if(!c||!d.youThereData_)return e.return();if(_.h("check_user_lact_at_prompt_shown_time_on_web")&&(p=parseInt(d.youThereData_.lactThresholdMs,10),_.cd()<p))return _.eC("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Fj(),d.youThereData_,d.clientPlaybackNonce_),e.return();if(d.youThereData_.playbackPauseDelayMs<=
0)return fOO(d),e.return();!_.h("external_fullscreen")&&(g=_.Ko())&&(d.ignoreFullscreenExitUserActivity_=!0,_.Xp.addLowPriorityJob(function(){d.ignoreFullscreenExitUserActivity_=!1},2E3),_.cy(g));
d.youThereData_.showToastWarningPrompt&&(EA(d,d.youThereData_.showWarningActions),d.inYouThereFlow_=!0,_.eC("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Fj(),d.youThereData_,d.clientPlaybackNonce_,K),_.eC("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Fj(),d.youThereData_,d.clientPlaybackNonce_,K));a=0;d.youThereData_.blockingPromptDelayMs&&(a=d.youThereData_.blockingPromptDelayMs);d.showBlockingWarningJob_=_.Xp.addLowPriorityJob(function(){return _.l(function(k){d.showBlockingWarningJob_=0;return k.yield(AX_(d),
0)})},a);
_.VE(e)})};
AX_=function(d){var H,K,c;return _.l(function(p){if(p.nextAddress==1)return p.yield(DQ_(d),2);H=p.yieldResult;if(!d.youThereData_)return p.return();H&&(d.youThereData_.showBlockingWarningAction&&(_.eC("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Fj(),d.youThereData_,d.clientPlaybackNonce_),(K=_.M(d.youThereData_.showBlockingWarningAction,_.kW))?EA(d,K.commands):EA(d,[d.youThereData_.showBlockingWarningAction]),d.inYouThereFlow_=!0),c=d.youThereData_.playbackPauseDelayMs,d.pausePlaybackJob_=
_.Xp.addLowPriorityJob(function(){return _.l(function(g){d.pausePlaybackJob_=0;return g.yield(fOO(d),0)})},c));
_.VE(p)})};
fOO=function(d){var H;return _.l(function(K){if(K.nextAddress==1)return K.yield(DQ_(d),2);H=K.yieldResult;if(!d.youThereData_)return K.return();H&&(_.eC("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Fj(),d.youThereData_,d.clientPlaybackNonce_),EA(d,d.youThereData_.showPausedActions),d.inYouThereFlow_=!0);_.VE(K)})};
_.Ep_.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var d=_.M(this.youThereData_.userActiveDuringFlowAction,_.kW);d?EA(this,d.commands):EA(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.eC("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Fj(),this.youThereData_,this.clientPlaybackNonce_),_.Bd());yX_(this,!0)}_.j5N(this,!1)};
_.vpB=function(d){_.eC("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Fj(),d.youThereData_,d.clientPlaybackNonce_)};
DQ_=function(d){var H,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(d.playerProvider_().getPlayerPromise(),2);H=c.yieldResult;K=H.getPlayerState();return c.return(K==-1||K==1||K==3)})};
_.j5N=function(d,H){var K;_.l(function(c){if(c.nextAddress==1){if(d.isUserPredictedAbsent_==H)return c.jumpTo(0);d.isUserPredictedAbsent_=H;return c.yield(d.playerProvider_().getPlayerPromise(),3)}K=c.yieldResult;K.setUserEngagement(H);H&&_.eC("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Fj(),d.youThereData_,d.clientPlaybackNonce_);_.VE(c)})};
EA=function(d,H){if(_.h("handle_service_request_actions")||_.h("kevlar_youthere_service_endpoint_actions_killswitch"))_.l5(d.actionSenderElement_,H,d.actionSenderElement_);else{H=_.q(H);for(var K=H.next();!K.done;K=H.next())K=K.value,K.commandMetadata&&K.commandMetadata.webCommandMetadata&&K.commandMetadata.webCommandMetadata.sendPost?_.aF(d.actionSenderElement_,[K]):_.l5(d.actionSenderElement_,[K],d.actionSenderElement_)}};var dle;var H4c;var yC=function(){var d=_.B.apply(this,arguments)||this;d.systemIcons=_.h("kevlar_system_icons");d.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return d};
_.m(yC,_.B);yC.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var d=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(d=this.data.percentIfLiked||0,this.activated=!0):(d=this.data.percentIfIndifferent||0,this.activated=!1);_.Gn(this.hostElement).querySelector("#like-bar").style.width=d+"%"}};
yC.prototype.handleUpdateSentimentBarStateCommand=function(d){this.data&&this.set("data.likeStatus",_.M(d,OjL).likeStatus)};
yC.prototype.observeLikeStatus=yC.prototype.observeLikeStatus;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],yC.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],yC.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],yC.prototype,"activated",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],yC.prototype,"systemIcons",void 0);_.t([_.CK("data.likeStatus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yC.prototype,"observeLikeStatus",null);_.t([_.Z({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],yC);
_.T(yC,"ytd-sentiment-bar-renderer",function(){if(H4c!==void 0)return H4c;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sentiment-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-sentiment-bar-renderer">\n  <div id="like-bar" class="style-scope ytd-sentiment-bar-renderer"></div>\n</div>\n<tp-yt-paper-tooltip position="top" class="style-scope ytd-sentiment-bar-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return H4c=d},{mode:1});var $lB;var bf=function(){var d=_.B.apply(this,arguments)||this;d.small=!0;return d};
_.m(bf,_.B);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],bf.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],bf.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],bf.prototype,"small",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],bf);
_.T(bf,"ytd-video-view-count-renderer",function(){if($lB!==void 0)return $lB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-view-count-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.viewCount)]]</span><span class="short-view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.shortViewCount)]]</span>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return $lB=d},{mode:_.qk("kevlar_poly_si_batch_j080")?1:2});var N7=function(){var d=_.B.apply(this,arguments)||this;d.infoFormattedStrings=[];d.wrapVideoActions=_.h("kevar_watch_wrap_video_actions");d.hideSentimentBar=_.h("kevlar_watch_hide_sentiment_bar");d.actionMap={};return d};
_.m(N7,_.B);_.G=N7.prototype;_.G.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.h("web_modern_buttons"),forceIconButton:!_.h("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.G.dataChanged=function(){_.h("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.G.computeInfoFormattedStrings=function(d){if(!d)return[];var H=[];d.dateText&&H.push(d.dateText);d.stationName&&H.push(d.stationName);d.rating&&H.push(d.rating);d.startEndTimeTemplate&&d.startTimeUtcMillis&&d.endTimeUtcMillis&&H.push(_.AF(_.z6H(_.jG(d.startEndTimeTemplate),Number(d.startTimeUtcMillis),Number(d.endTimeUtcMillis))));d.upNextProgramText&&H.push(d.upNextProgramText);return H};
_.G.scheduleInitialUpdatedMetadataRequest=function(){var d,H=(d=this.data)==null?void 0:d.updatedMetadataEndpoint;if(H){var K;d=Number((K=_.M(H,_.gR3))==null?void 0:K.initialDelayMs);K=isNaN(d)?250:d;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),K)}};
_.G.setSentimentBarWidth=function(){var d=this;_.vV(this,function(){var H=_.Gn(d.hostElement).querySelector("ytd-menu-renderer");if(H){H=H.topLevelButtons;for(var K=0,c=0;c<H.length;c++){var p=H[c],g=d.get("toggleButtonSupportedData.toggleButtonIdData.id",p.data);if(g==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||g==="TOGGLE_BUTTON_ID_TYPE_LIKE")K+=p.clientWidth+8;else break}K&&(d.sentiment.style.width=K-8+" px")}})};
_.G.fetchUpdatedMetadata=function(d){var H;d&&(H={continuation:d});var K;(d=(K=this.data)==null?void 0:K.updatedMetadataEndpoint)&&_.Kj().resolve(_.cb).resolveCommand(d,{form:Object.assign({},H,{element:this.hostElement})})};
_.G.onYtServiceRequestSent=function(d,H){H.endpoint&&_.M(H.endpoint,_.Za)&&(this.hasUpdateSentimentBarStateCommands()&&!_.h("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.M(H.endpoint,_.Za).status),this.setSentimentBarWidth())};
_.G.hasUpdateSentimentBarStateCommands=function(){var d,H,K,c,p=(c=(d=this.data)==null?void 0:(H=d.videoActions)==null?void 0:(K=H.menuRenderer)==null?void 0:K.topLevelButtons)!=null?c:[];d=_.q(p);for(H=d.next();!H.done;H=d.next()){H=H.value;p=c=K=void 0;var g=(K=H.toggleButtonRenderer)==null?void 0:(c=K.toggleButtonSupportedData)==null?void 0:(p=c.toggleButtonIdData)==null?void 0:p.id;if(g==="TOGGLE_BUTTON_ID_TYPE_LIKE"||g==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){c=K=void 0;H=(c=_.M((K=H.toggleButtonRenderer)==
null?void 0:K.defaultServiceEndpoint,_.kW))==null?void 0:c.commands;if(!H)break;H=_.q(H);for(K=H.next();!K.done;K=H.next())if(_.M(K.value,OjL))return!0}}return!1};
_.G.onYtServiceRequestCompleted=function(d,H){var K;(d=(K=H.data)==null?void 0:K.loggingDirectives)&&_.IWD(_.hR(),d);this.get("continuation.timedContinuationData",H.data)&&this.data&&this.data.updatedMetadataEndpoint&&(H=H.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,H.continuation),H.timeoutMs))};
_.G.computeHasDateText=function(d){return!!d&&!!d.dateText};
_.H3.Object.defineProperties(N7.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c;return!((c=(d=this.data)==null?void 0:(H=d.videoActions)==null?void 0:(K=H.menuRenderer)==null?void 0:K.flexibleItems)==null||!c.length)}}});
N7.prototype.onYtServiceRequestCompleted=N7.prototype.onYtServiceRequestCompleted;N7.prototype.onYtServiceRequestSent=N7.prototype.onYtServiceRequestSent;N7.prototype.dataChanged=N7.prototype.dataChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],N7.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],N7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.pd.YtTaskEmitterBehavior),_.O("design:type",Object)],N7.prototype,"ytTaskEmitterBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],N7.prototype,"data",void 0);_.t([_.r({computed:"computeInfoFormattedStrings(data)"}),_.O("design:type",Array)],N7.prototype,"infoFormattedStrings",void 0);
_.t([_.r({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],N7.prototype,"hasDateText",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],N7.prototype,"wrapVideoActions",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],N7.prototype,"hideSentimentBar",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],N7.prototype,"flexMenuEnabled",null);
_.t([_.VP("#sentiment"),_.O("design:type",Object)],N7.prototype,"sentiment",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],N7.prototype,"dataChanged",null);_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],N7.prototype,"onYtServiceRequestSent",null);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],N7.prototype,"onYtServiceRequestCompleted",null);
_.T(N7,"ytd-video-primary-info-renderer",function(){if(dle===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-primary-info-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><a class="yt-simple-endpoint style-scope ytd-video-primary-info-renderer" hidden="[[!data.superTitleIcon]]" href$="[[computeHref_(data.superTitleLink.runs.0.navigationEndpoint)]]" aria-label$="[[data.superTitleLink.accessibility.accessibilityData.label]]" data="[[data.superTitleLink.runs.0.navigationEndpoint]]"><yt-icon class="super-title-icon style-scope ytd-video-primary-info-renderer" icon="yt-icons:location_pin"></yt-icon></a><yt-formatted-string class="super-title style-scope ytd-video-primary-info-renderer" force-default-style="" text="[[data.superTitleLink]]"></yt-formatted-string><h1 class="title style-scope ytd-video-primary-info-renderer"><yt-formatted-string force-default-style="" text="[[data.title]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></h1><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><div id="info" class="style-scope ytd-video-primary-info-renderer"><div id="info-text" class="style-scope ytd-video-primary-info-renderer"><div id="count" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></div><div id="info-strings" hidden="[[!infoFormattedStrings.length]]" class="style-scope ytd-video-primary-info-renderer"><span id="dot" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></span><template is="dom-repeat" items="[[infoFormattedStrings]]" class="style-scope ytd-video-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></template></div></div><div id="flex" class="style-scope ytd-video-primary-info-renderer"></div><div id="menu-container" class="style-scope ytd-video-primary-info-renderer"><div id="menu" class="style-scope ytd-video-primary-info-renderer"></div><ytd-sentiment-bar-renderer id="sentiment" data="[[data.sentimentBar.sentimentBarRenderer]]" hidden="[[!data.sentimentBar.sentimentBarRenderer]]" class="style-scope ytd-video-primary-info-renderer"></ytd-sentiment-bar-renderer></div></div></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);dle=d}d=dle;return d},{mode:1});var KwH;var Dt=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return d};
_.m(Dt,_.B);_.G=Dt.prototype;_.G.configureRendererStamper=function(){return{subscribeButtonData:{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",params:{withCount:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.G.dataChanged=function(){var d;this.descriptionToggled=!((d=this.data)==null||!d.defaultExpanded);var H;this.collapsed=this.descriptionAlwaysCollapsed||!((H=this.data)==null?0:H.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.l8(110509);this.showLessClientVe=_.l8(110510);d=_.Fj();H=_.so();d&&H&&_.yz(d,H,[this.showMoreClientVe,this.showLessClientVe])};
_.G.onYtExpanderMoreTapped=function(){var d,H=(d=this.data)==null?void 0:d.showMoreCommand;H&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(H);(d=_.Fj())&&this.showMoreClientVe&&_.fo(d,this.showMoreClientVe)};
_.G.onYtExpanderLessTapped=function(){var d=_.Fj();d&&this.showLessClientVe&&_.fo(d,this.showLessClientVe);var H;(d=(H=this.data)==null?void 0:H.showLessCommand)&&this.componentBehavior.resolveCommand(d)};
_.G.handleUpdateDateTextAction=function(d){this.data&&this.data.dateText&&this.set("data.dateText",_.M(d,_.$NB).dateText)};
_.G.handleUpdateDescriptionAction=function(d){if(d=_.M(d,_.cTd))d.isEmpty||!d.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.JR(d.description)):this.set("data.description",d.description)};
_.G.onYtChangeEngagementPanelVisibilityAction=function(d){if(_.h("web_structured_description_show_more")||_.h("web_engagement_panel_open_description")){var H,K=(H=_.M(d,_.FUl))==null?void 0:H.targetId,c;d=((c=_.M(d,_.FUl))==null?void 0:c.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";K==="engagement-panel-structured-description"&&d&&(this.descriptionToggled=!0)}};
_.G.updateCollapsedFromBinding=function(d){this.collapsed=d.detail.value};
_.G.updateDescriptionToggledFromBinding=function(d){this.descriptionToggled=d.detail.value};
_.G.updateCanCollapseFromBinding=function(d){this.canCollapse=d.detail.value};
_.H3.Object.defineProperties(Dt.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var d,H,K=(d=this.data)==null?void 0:(H=d.metadataRowContainer)==null?void 0:H.metadataRowContainerRenderer;return!!K&&!!K.rows&&K.rows.length>K.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
Dt.prototype.onYtExpanderLessTapped=Dt.prototype.onYtExpanderLessTapped;Dt.prototype.onYtExpanderMoreTapped=Dt.prototype.onYtExpanderMoreTapped;Dt.prototype.dataChanged=Dt.prototype.dataChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Dt.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Dt.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Dt.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Dt.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],Dt.prototype,"collapsed",void 0);_.t([_.r(),_.O("design:type",Boolean)],Dt.prototype,"descriptionToggled",void 0);
_.t([_.r(),_.O("design:type",Boolean)],Dt.prototype,"canCollapse",void 0);_.t([_.r(),_.O("design:type",Object)],Dt.prototype,"subscribeButtonData",void 0);_.t([_.r(),_.O("design:type",Number)],Dt.prototype,"descriptionCollapsedHeight",void 0);_.t([_.r(),_.O("design:type",Object)],Dt.prototype,"structuredDescriptionContentRenderer",void 0);_.t([_.r({value:function(){return _.h("web_watch_description_always_collapsed")}}),
_.O("design:type",Boolean)],Dt.prototype,"descriptionAlwaysCollapsed",void 0);_.t([_.VP("#description"),_.O("design:type",HTMLDivElement)],Dt.prototype,"description",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dt.prototype,"dataChanged",null);_.t([_.nK("yt-expander-more-tapped"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dt.prototype,"onYtExpanderMoreTapped",null);
_.t([_.nK("yt-expander-less-tapped"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dt.prototype,"onYtExpanderLessTapped",null);_.t([_.I("data.metadataRowContainer"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Dt.prototype,"metadataCollapsible",null);_.t([_.I("data","structuredDescriptionContentRenderer"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Dt.prototype,"hasInlineStructuredDescription",null);
_.t([_.I("data.attributedDescription"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Dt.prototype,"hasAttributedDescription",null);_.t([_.I("hasInlineStructuredDescription","collapsed"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Dt.prototype,"loadStructuredDescription",null);_.t([_.I("data","structuredDescriptionContentRenderer","collapsed"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Dt.prototype,"showInlineStructuredDescription",null);
_.t([_.I("data","hasInlineStructuredDescription","metadataCollapsible"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Dt.prototype,"descriptionAlwaysCollapsible",null);
_.T(Dt,"ytd-video-secondary-info-renderer",function(){if(KwH===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-secondary-info-renderer"><div id="top-row" class="style-scope ytd-video-secondary-info-renderer"><ytd-video-owner-renderer data="[[data.owner.videoOwnerRenderer]]" subscribe-key="[[subscribeButtonData.subscribedEntityKey]]" class="style-scope ytd-video-secondary-info-renderer"><span class="date style-scope ytd-video-secondary-info-renderer" slot="date">[[getSimpleString(data.dateText)]]</span></ytd-video-owner-renderer><div id="subscribe-button" class="style-scope ytd-video-secondary-info-renderer"></div></div><ytd-expander always-collapsed="[[descriptionAlwaysCollapsed]]" always-toggleable="[[descriptionAlwaysCollapsible]]" can-toggle="[[canCollapse]]" collapsed="[[collapsed]]" collapsed-height="[[descriptionCollapsedHeight]]" is-toggled="[[descriptionToggled]]" on-can-toggle-changed="updateCanCollapseFromBinding" on-collapsed-changed="updateCollapsedFromBinding" on-is-toggled-changed="updateDescriptionToggledFromBinding" class="style-scope ytd-video-secondary-info-renderer"><div id="description" slot="content" class="style-scope ytd-video-secondary-info-renderer"><yt-attributed-string class="content style-scope ytd-video-secondary-info-renderer" data="[[data.attributedDescription]]" disable-upgrade$="[[!hasAttributedDescription]]" hidden="[[!hasAttributedDescription]]" user-input=""></yt-attributed-string><yt-formatted-string class="content style-scope ytd-video-secondary-info-renderer" disable-upgrade$="[[hasAttributedDescription]]" force-default-style="" hidden="[[hasAttributedDescription]]" split-lines="[[!hasAttributedDescription]]" text="[[data.description]]"></yt-formatted-string><ytd-structured-description-content-renderer data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!loadStructuredDescription]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="[[hasInlineStructuredDescription]]" class="style-scope ytd-video-secondary-info-renderer"></ytd-structured-description-content-renderer></div><ytd-metadata-row-container-renderer class="sticky style-scope ytd-video-secondary-info-renderer" slot="sticky" collapsed="[[collapsed]]" data="[[data.metadataRowContainer.metadataRowContainerRenderer]]"></ytd-metadata-row-container-renderer><yt-formatted-string class="more-button style-scope ytd-video-secondary-info-renderer" slot="more-button" role="button" text="[[data.showMoreText]]"></yt-formatted-string><yt-formatted-string class="less-button style-scope ytd-video-secondary-info-renderer" slot="less-button" role="button" text="[[data.showLessText]]"></yt-formatted-string></ytd-expander></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);KwH=d}d=KwH;return d},{mode:2});var c5e;var fP=function(){return _.B.apply(this,arguments)||this};
_.m(fP,_.B);fP.prototype.configureRendererStamper=function(){return{"data.scrollUpButton":{id:"scroll-up",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.h("web_modern_buttons"),forceIconButton:!_.h("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
fP.prototype.activate=function(d){d.appendTo(this.player);d.getPlayerPromise().then(function(H){H.setMinimized(!0)});
this.active=!0};
fP.prototype.deactivate=function(){var d=this.player.firstElementChild;d.getPlayerPromise().then(function(H){H.setMinimized(!1)});
this.active=!1;return d};
fP.prototype.onScrollUpTap=function(){var d=_.Kj().resolve(_.HI).getCurrentPage();d&&d.setScrollTop(0)};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],fP.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],fP.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],fP.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],fP.prototype,"active",void 0);
_.t([_.r({reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.O("design:type",Boolean)],fP.prototype,"darkLaunch",void 0);_.t([_.VP("#player"),_.O("design:type",HTMLDivElement)],fP.prototype,"player",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],fP);
_.T(fP,"ytd-miniplayer-bar-renderer",function(){if(c5e!==void 0)return c5e;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return c5e=d},{mode:1});_.iV(_.H1(function(d){var H=_.Af("script");_.wc(function(){var K;if(K=JSON)K=Q5S(d.data()),K=_.NN(JSON.stringify(K).replace(/</g,"\\u003C"));var c=d.data(),p=_.jG(c.title).trim().length===0,g=!c.publishDate||c.publishDate.trim().length===0,a,e,k,C,R=!((a=c.thumbnail)==null?0:(e=a.thumbnails)==null?0:e.length)||!((k=c.thumbnail)==null?0:k.thumbnails[0].url)||((C=c.thumbnail)==null?void 0:C.thumbnails[0].url.trim().length)===0;H.value&&K&&!(p||g||R)&&_.Dw(H.value,K)},"I9AhLd");
return _.x("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.x("script",{el:H,type:"application/ld+json"}))},"Gk"),"player-microformat-renderer",{props:{data:_.p7}});
}catch(e){_._DumpException(e)}
try{
var HjL;_.dQe=function(d){return d.watch.watchWindowSize};
HjL=function(d,H,K,c){if(d.isLockupToWatchTransitionEnabled){if(H){var p={};d.viewTransitionCoordinator.registerElement(H,(p["lockup-to-watch"]="player-lockup-to-watch",p["watch-next-appears"]="player-watch-next-loaded",p))}K&&(H={},d.viewTransitionCoordinator.registerElement(K,(H["lockup-to-watch"]="below-lockup-to-watch",H["watch-next-appears"]="below-watch-next-loaded",H)));c&&(K={},d.viewTransitionCoordinator.registerElement(c,(K["watch-next-appears"]="secondary-watch-next-loaded",K)))}};
_.$Q_=function(d){return _.iZ({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:d}})};var cXK=function(d){_.h_.call(this);this.JSC$22962_watchApi=d;K1E(this)};
_.m(cXK,_.h_);var K1E=function(d){_.l(function(H){if(H.nextAddress==1)return H.yield(pb_(d),2);gpH(d);_.VE(H)})},pb_=function(d){var H,K,c,p;
return _.l(function(g){if(g.nextAddress==1)return g.yield(d.JSC$22962_watchApi.playerApi,2);H=g.yieldResult;d.JSC$22962_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){ijK(d)});
K=d.JSC$22962_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gpH(d)});
c=function(a){d.onCueRangeEnter(a)};
H.addEventListener("onCueRangeEnter",c);p=function(a){d.onCueRangeExit(a)};
H.addEventListener("onCueRangeExit",p);d.addOnDisposeCallback(function(){d.JSC$22962_watchApi.unsubscribeByKey(K);H.removeEventListener("onCueRangeEnter",c);H.removeEventListener("onCueRangeExit",p)});
_.VE(g)})},GJN=function(d){var H,K,c,p,g,a,e,k,C;
return(g=(H=d.contents)==null?void 0:(K=H.twoColumnWatchNextResults)==null?void 0:(c=K.results)==null?void 0:(p=c.results)==null?void 0:p.contents)==null?void 0:(a=g.find(function(R){var V,U,L;return(V=R.itemSectionRenderer)==null?void 0:(U=V.contents)==null?void 0:(L=U[0])==null?void 0:L.shoppingTimelyShelfViewModel}))==null?void 0:(e=a.itemSectionRenderer)==null?void 0:(k=e.contents)==null?void 0:(C=k[0])==null?void 0:C.shoppingTimelyShelfViewModel},gpH=function(d){var H;
_.l(function(K){if(K.nextAddress==1)return(H=d.JSC$22962_watchApi.getWatchNextResponse())?K.yield(ijK(d),2):K.return();d.shoppingTimelyShelfViewModel=GJN(H);opE(d);qmB(d);_.VE(K)})},opE=function(d){var H,K=(H=d.shoppingTimelyShelfViewModel)==null?void 0:H.offerIdToVariants;
K&&(H=K.filter(function(c){return c.key&&c.value}).map(function(c){return[c.key,
c.value]}),d.variantsMap=new Map(H))},qmB=function(d){var H,K,c,p,g,a;
_.l(function(e){if(e.nextAddress==1)return(K=(H=d.shoppingTimelyShelfViewModel)==null?void 0:H.cueRanges)?e.yield(d.JSC$22962_watchApi.playerApi,2):e.return();c=e.yieldResult;d.cueRanges=K;p=_.q(K);for(g=p.next();!g.done;g=p.next())a=g.value,a.startTime!==void 0&&a.endTime!==void 0&&a.id!==void 0&&c.addCueRange("shopping_timely_shelf"+a.id,aOw(a.startTime),aOw(a.endTime));_.VE(e)})},aOw=function(d){return Number(d.seconds||0)+(d.nanos||0)/1E9};
cXK.prototype.onCueRangeEnter=function(d){if(d.startsWith("shopping_timely_shelf")){var H=d.substring(21),K,c;d=(K=this.variantsMap)==null?void 0:(c=K.get(H))==null?void 0:c.shelf;if(_.h("web_enable_shopping_timely_shelf_client_overwrite")){var p,g,a,e,k;K=d==null?void 0:(p=d.shoppingTimelyShelfContentViewModel)==null?void 0:(g=p.button)==null?void 0:(a=g[1])==null?void 0:(e=a.buttonViewModel)==null?void 0:(k=e.onTap)==null?void 0:k.innertubeCommand;var C,R;if(K==null?0:(C=K.menuEndpoint)==null?0:
(R=C.menu)==null?0:R.menuRenderer)K.openPopupAction=K.menuEndpoint,K.openPopupAction.popup=K.openPopupAction.menu,K.openPopupAction.popup.menuPopupRenderer=K.openPopupAction.popup.menuRenderer,K.openPopupAction.popupType="DROPDOWN",delete K.menuEndpoint,delete K.openPopupAction.menu,delete K.openPopupAction.popup.menuRenderer}d&&this.JSC$22962_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",d)}};
cXK.prototype.onCueRangeExit=function(d){d.startsWith("shopping_timely_shelf")&&this.JSC$22962_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var ijK=function(d){var H,K,c,p,g;return _.l(function(a){if(a.nextAddress==1)return a.yield(d.JSC$22962_watchApi.playerApi,2);H=a.yieldResult;if(d.cueRanges)for(K=_.q(d.cueRanges),c=K.next();!c.done;c=K.next())p=c.value,p.id&&(g="shopping_timely_shelf"+p.id,H.removeCueRange(g));d.JSC$22962_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});d.shoppingTimelyShelfViewModel=void 0;d.cueRanges=void 0;d.variantsMap=void 0;_.VE(a)})};var npO=function(d){_.h_.call(this);var H=this;this.JSC$22969_watchApi=d;d=_.LU(_.dn(),_.l1Y,function(){lO_(H)});
this.addOnDisposeCallback(d);d=_.LU(_.dn(),_.dQe,function(){lO_(H)});
this.addOnDisposeCallback(d);edr(this);kJN(this);xQH()};
_.m(npO,_.h_);var edr=function(d){var H=function(c){_.dn().dispatch(_.hjc(c.matches))},K=window.matchMedia("(max-width: "+(999+_.DN())+"px)");
K.addListener(H);d.addOnDisposeCallback(function(){K.removeListener(H)});
H(K)},kJN=function(d){d.JSC$22969_watchApi.registerActionHandler("yt-window-resized",function(){xQH()});
d.addOnDisposeCallback(function(){d.JSC$22969_watchApi.unregisterActionHandler("yt-window-resized")})},xQH=function(){var d=_.wn();
_.dn().dispatch(_.iZ({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:d.width,height:d.height}}}))},lO_=function(d){var H;
_.l(function(K){if(K.nextAddress==1)return K.yield(d.JSC$22969_watchApi.playerApi,2);H=K.yieldResult;H.setSize(NaN,NaN);_.VE(K)})};var CTH=function(d){_.h_.call(this);var H=_.Kj().resolve(_.LW);HjL(H,d.getElement("PLAYER_CONTAINER"),d.getElement("BELOW_THE_PLAYER"),d.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var K=d.getElement("PLAYER_CONTAINER"),c=d.getElement("BELOW_THE_PLAYER"),p=d.getElement("SECONDARY");H.isLockupToWatchTransitionEnabled&&(K&&_.SA(H.viewTransitionCoordinator,K),c&&_.SA(H.viewTransitionCoordinator,c),p&&_.SA(H.viewTransitionCoordinator,p))})};
_.m(CTH,_.h_);_.QC=function(d){_.xH.call(this);var H=this;this.rootElement=d;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return H.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(K){H.initOrDisposeActiveModules(K)}));
this.onAttached()};
_.m(_.QC,_.xH);_.G=_.QC.prototype;_.G.getRoot=function(){return this.rootElement};
_.G.getElement=function(d){return this.rootElement.getElement(d)};
_.G.setPlayerResponse=function(d){this.playerResponse=d;this.publish("PLAYER_RESPONSE_UPDATED",d)};
_.G.getPlayerResponse=function(){return this.playerResponse};
_.G.setWatchNextResponse=function(d){this.watchNextResponse===d?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=d,this.publish("WATCH_NEXT_RESPONSE_UPDATED",d))};
_.G.getWatchNextResponse=function(){return this.watchNextResponse};
_.G.registerActionHandler=function(d,H){var K=this;if(_.h("web_watch_controller_reg_multiple_handlers_killswitch")){var c={};_.Ne(_.bw.getInstance(),(c[d]=H,c),this.getRoot())}else this.actionHandlers.has(d)||(this.actionHandlers.set(d,[]),c={},_.Ne(_.bw.getInstance(),(c[d]=function(){var p=_.sH.apply(0,arguments);return(K.actionHandlers.get(d)||[]).map(function(g){return g.apply(null,_.ru(p))})},c),this.getRoot())),this.actionHandlers.get(d).push(H)};
_.G.unregisterActionHandler=function(d){if(_.h("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.Dz(_.bw.getInstance(),(H[d]=!0,H),this.getRoot())}else(H=this.actionHandlers.get(d))?(H.pop(),H.length===0&&(H={},_.Dz(_.bw.getInstance(),(H[d]=!0,H),this.getRoot()),this.actionHandlers.delete(d))):_.Jf(new _.m1("Attempted to unregister an action handler which is not registered.",d))};
_.G.addPageDisposeJob=function(d){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Lil(this.rootElement.pageDisposeJobs,d)};
_.G.removePageDisposeJob=function(d){this.rootElement.pageDisposeJobs&&_.Q4(this.rootElement.pageDisposeJobs,d)};
_.G.dispatchEvent=function(d,H){_.GT(this.rootElement,d,H)};
_.G.provideRenderingData=function(d,H){this.rootElement.provideRenderingData(d,H)};
_.G.scrollWatchTo=function(d,H){var K;(K=this.watchScrollManager)==null||K.scrollWatchTo(d,H)};
_.G.focusOnPlayer=function(){var d=this.getElement("PLAYER");_.vV(d,function(){if(d&&d.firstElementChild){var H=d.querySelector(".html5-video-player");H&&(_.p_(_.Kj().resolve(_.uV)),H.focus())}else _.Jf(Error("Go"))})};
_.G.updateCinematicFullscreenConfig=function(){if(_.h("web_cinematic_manager_redux_killswitch")){var d=!!this.rootElement.theater,H=!!this.rootElement.fullscreen,K;(K=this.watchCinematicManager)==null||_.J8(K,H,d)}};
_.G.subscribeToActiveChanged=function(d,H){H=H===void 0?!0:H;var K=_.LU(_.dn(),_.u7c,function(c){d(c)});
H&&d(_.u7c(_.dn().getState()));return K};
_.G.isActive=function(){return _.u7c(_.dn().getState())};
_.G.onAttached=function(){var d=_.h("external_fullscreen");_.h("use_unified_flag_accessor")&&(d=_.Kj().resolve(_.kCg).retriever.getFlag(_.fBS));(d||_.Qx("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var RdC=function(d){return d.getRoot().is==="ytd-watch-flexy"||d.getRoot().is==="ytd-watch-grid"},t8=function(d){return d.getRoot().is==="ytd-watch-fixie"};
_.QC.prototype.initPersistentModules=function(){if(t8(this)||RdC(this)&&_.h("kevlar_watch_flexy_theater_manager")){var d=new _.PjE(this);_.q_(this,d)}d=new _.lYa(this);_.q_(this,d);d=new _.WS(this);_.q_(this,d);d=new _.G9H(this);_.q_(this,d);d=new _.YSC(this);_.q_(this,d);d=new _.zk(this);_.q_(this,d);if(t8(this)||RdC(this)&&_.h("kevlar_watch_flexy_playlist_manager"))d=new _.E2E(this),_.q_(this,d);_.h("web_thumbnail_to_watch_transition")&&(d=new CTH(this),_.q_(this,d))};
_.QC.prototype.initOrDisposeActiveModules=function(d){d?(this.watchScrollManager=new _.Tk(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.umc(this)),_.h("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new cXK(this)),this.activeModules.push(new _.WcS(this)),t8(this)&&this.activeModules.push(new npO(this)),this.activeModules.push(new _.Amc(this)),this.activeModules.push(new _.UMH(this)),(t8(this)||_.h("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.J_O(this)),this.activeModules.push(new _.XEC(this)),(t8(this)||_.h("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.v2K(this)),(t8(this)||_.h("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.Ol_(this)),_.h("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Nc_(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.h("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Z6B(this)),
_.h("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.qSH(this)),d=_.h("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.h("kevlar_watch_flexy_comments_manager")&&!d&&this.activeModules.push(new _.cmC(this)),_.h("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.BS(this)),this.activeModules.push(new _.JtB(this)),this.activeModules.push(new _.rm_(this)),_.h("web_enable_timely_actions")&&this.activeModules.push(new _.TcL(this)),
_.h("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.ilL(this)),_.h("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.j4e(this)),_.h("web_fullscreen_components")&&this.activeModules.push(new _.TkH(this)),_.h("web_player_rtr_ctrls")&&this.activeModules.push(new _.om_(this))):(_.ju(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.QC.prototype.disposeInternal=function(){_.xH.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.H3.Object.defineProperties(_.QC.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var Pzb,zW,uPq,IIG,WIj,BLv,rhj,zCU;Pzb=function(){var d=_.mW();d.info||(d.info={});return d.info};
zW=function(d){return Math.round(_.IF()+d)};
uPq=function(){var d;if(_.h("csi_use_performance_navigation_timing")){var H,K,c,p=_.u5==null?void 0:(d=_.u5.getEntriesByType)==null?void 0:(H=d.call(_.u5,"navigation"))==null?void 0:(K=H[0])==null?void 0:(c=K.toJSON)==null?void 0:c.call(K);p?(p.requestStart=zW(p.requestStart),p.responseEnd=zW(p.responseEnd),p.redirectStart=zW(p.redirectStart),p.redirectEnd=zW(p.redirectEnd),p.domainLookupEnd=zW(p.domainLookupEnd),p.connectStart=zW(p.connectStart),p.connectEnd=zW(p.connectEnd),p.responseStart=zW(p.responseStart),
p.secureConnectionStart=zW(p.secureConnectionStart),p.domainLookupStart=zW(p.domainLookupStart),p.isPerformanceNavigationTiming=!0,d=p):d=_.u5.timing}else d=_.h("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.u5.timing)):_.u5.timing;return d};
IIG=function(){if(_.u5.getEntriesByType){var d=_.u5.getEntriesByType("paint");if(d=_.XM(d,function(K){return K.name==="first-paint"}))return zW(d.startTime)}var H;
_.h("csi_use_performance_navigation_timing")?H=_.u5.getEntriesByType("first-paint")[0].startTime:H=_.u5.timing.msFirstPaint;return H?Math.max(0,H):0};
WIj=function(){var d=window.location.protocol,H=_.u5.getEntriesByType("resource");H=_.p1(H,function(K){return K.name.indexOf(d+"//fonts.gstatic.com/s/")===0});
(H=rhj(H,function(K,c){return c.duration>K.duration?c:K}))&&H.startTime>0&&H.responseEnd>0&&(_.rV("wffs",zW(H.startTime)),_.rV("wffe",zW(H.responseEnd)))};
BLv=function(d,H){d=document.querySelector(d);if(!d)return!1;var K="",c=d.nodeName;c==="SCRIPT"?(K=d.src,K||(K=d.getAttribute("data-timing-href"))&&(K=window.location.protocol+K)):c==="LINK"&&(K=d.href);_.yB(document)&&d.setAttribute("nonce",_.yB(document));return K?(d=_.u5.getEntriesByName(K))&&d[0]&&(d=d[0],K=_.IF(),_.rV("rsf_"+H,K+Math.round(d.fetchStart)),_.rV("rse_"+H,K+Math.round(d.responseEnd)),d.transferSize!==void 0&&d.transferSize===0)?!0:!1:!1};
_.X_=function(d,H){_.Y2(function(){_.Py("").info.actionType=d;H&&_.sS("TIMING_AFT_KEYS",H);_.sS("TIMING_ACTION",d);var K=_.HNF(_.Fm("TIMING_INFO",{}));Object.keys(K).length>0&&_.Wy(K);K={isNavigation:!0,actionType:_.YvF(_.Fm("TIMING_ACTION"))};var c=_.Fm("PREVIOUS_ACTION");c&&(K.previousAction=_.YvF(c));if(c=_.Fm("CLIENT_PROTOCOL"))K.httpProtocol=c;if(c=_.Fm("CLIENT_TRANSPORT"))K.transportProtocol=c;(c=_.Fj())&&c!=="UNDEFINED_CSN"&&(K.clientScreenNonce=c);c=_.dAM();if(c===1||c===-1)K.isVisible=!0;
c=_.XUi().loadType==="cold";var p=Pzb();c||(c=p.yt_lt==="cold");if(c){K.loadType="cold";c=Pzb();p=uPq();var g=_.IF(),a=_.Fm("CSI_START_TIMESTAMP_MILLIS",0);a>0&&!_.h("embeds_web_enable_csi_start_override_killswitch")&&(g=a);g&&(_.rV("srt",p.responseStart),c.prerender!==1&&_.bT5(g));c=IIG();c>0&&_.rV("fpt",c);c=uPq();c.isPerformanceNavigationTiming&&_.Wy({performanceNavigationTiming:!0},void 0);_.rV("nreqs",c.requestStart,void 0);_.rV("nress",c.responseStart,void 0);_.rV("nrese",c.responseEnd,void 0);
c.redirectEnd-c.redirectStart>0&&(_.rV("nrs",c.redirectStart,void 0),_.rV("nre",c.redirectEnd,void 0));c.domainLookupEnd-c.domainLookupStart>0&&(_.rV("ndnss",c.domainLookupStart,void 0),_.rV("ndnse",c.domainLookupEnd,void 0));c.connectEnd-c.connectStart>0&&(_.rV("ntcps",c.connectStart,void 0),_.rV("ntcpe",c.connectEnd,void 0));c.secureConnectionStart>=_.IF()&&c.connectEnd-c.secureConnectionStart>0&&(_.rV("nstcps",c.secureConnectionStart,void 0),_.rV("ntcpe",c.connectEnd,void 0));_.u5&&"getEntriesByType"in
_.u5&&WIj();c=[];if(document.querySelector&&_.u5&&_.u5.getEntriesByName)for(var e in zCU)zCU.hasOwnProperty(e)&&(p=zCU[e],BLv(e,p)&&c.push(p));if(c.length>0)for(K.resourceInfo=[],e=_.q(c),c=e.next();!c.done;c=e.next())K.resourceInfo.push({resourceCache:c.value})}_.Wy(K);K=_.wV();K.preLoggedGelInfos||(K.preLoggedGelInfos=[]);e=K.preLoggedGelInfos;K=_.sbh();c=void 0;for(p=0;p<e.length;p++)if(g=e[p],g.loadType){c=g.loadType;break}if(_.XUi().loadType==="cold"&&(K.loadType==="cold"||c==="cold")){c=_.Jg5();
p=_.wV();p=p.gelTicks?p.gelTicks:p.gelTicks={};for(var k in c)if(!(k in p))if(typeof c[k]==="number")_.rV(k,_.By(k));else if(_.h("log_repeated_ytcsi_ticks"))for(g=_.q(c[k]),a=g.next();!a.done;a=g.next())a=a.value,_.rV(k.slice(1),a);k={};c=!1;e=_.q(e);for(p=e.next();!p.done;p=e.next())c=p.value,_.tP(K,c),_.tP(k,c),c=!0;c&&_.Wy(k)}_.pZ5(!0);k=_.Fm("TIMING_ACTION");_.OS("ytglobal.timingready_")&&k&&_.kS4()&&_.cQM()&&_.jbY()})()};
rhj=function(d,H){return Array.prototype.reduce.call(d,H,{duration:0})};
zCU={'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"};var XDS={};XDS.YtVisibilityRootBehavior=[_.gwS.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.AA(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Fm("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var d=_.Fm("INNERTUBE_CLIENT_NAME")!=="WEB";_.h("kevlar_use_vimio_behavior")&&d&&_.KLB()}}];_.JM={};_.JM.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(d){d.detail.contextProvider=this;d.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
XDS.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.DA();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(d){var H=this;this.pageCount+=1;_.h("kevlar_use_vimio_behavior")&&(_.Fm("INNERTUBE_CLIENT_NAME")==="WEB"?_.Xp.addJob(function(){H.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(d)},
loadPage_:function(d){this.data=d},
ytPageBehaviorActiveObserver_:function(d){var H=this;_.h("kevlar_use_vimio_behavior")&&(d?_.Fm("INNERTUBE_CLIENT_NAME")==="WEB"?_.Xp.addJob(function(){H.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(d){if(!this.setScrollTopJobId_){var H=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){H.setScrollTopJobId_=0;var K=_.Kj().resolve(_.$p(_.uV));K&&_.p_(K);this.getPageScrollingElement().scrollTop=d}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.M5(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var wDS;var BL=function(){var d=_.B.apply(this,arguments)||this;d.playerListenerConfig=null;d.actionMap={"yt-show-watch-page-survey":"openSurvey"};return d};
_.m(BL,_.B);_.G=BL.prototype;_.G.dataChanged=function(){var d=this,H=_.Kf();H&&H.getPlayerPromise().then(function(c){d.maybeRemovePlayerListeners(c)});
var K=this.data&&this.data.survey;K&&((K=(K=K.singleOptionSurveyRenderer||K.checkboxSurveyRenderer||K.multiStageSurveyRenderer)&&K.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(H,K):this.openSurvey())};
_.G.triggerWatchPageSurvey=function(d,H){var K=this,c,p,g,a,e,k,C,R,V;return _.l(function(U){if(U.nextAddress==1)return d?U.yield(d.getPlayerPromise(),2):U.return();K.player=U.yieldResult;if(!K.player)return U.return();c={};p=_.q(H);for(g=p.next();!g.done;g=p.next())a=g.value,e=_.q(K.createEventListenerPair(a)),k=e.next().value,C=e.next().value,R=k,V=C,R&&V&&(c[R]=V,K.ytPlayerListenerBehavior.listenToPlayerEvent(K.player,R,V));K.playerListenerConfig=c;_.VE(U)})};
_.G.createEventListenerPair=function(d){var H=d.playbackEventTrigger;return H?this.handlePlaybackTrigger(H):(d=d.watchTimeTrigger)?this.handleWatchTimeTrigger(d):[void 0,void 0]};
_.G.handleWatchTimeTrigger=function(d){var H=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var K=d.videoWatchFraction,c=d.watchTimeSec;return c&&K?["onVideoProgress",function(){H.player&&H.isWatchTimeConditionMet(H.player,K,c)&&H.showSurvey()}]:[void 0,
void 0]};
_.G.isWatchTimeConditionMet=function(d,H,K){var c=d.getProgressState(),p=c.current-this.lastKnownPlaybackPosition;p<5&&(this.accumulatedMediaTime+=p);this.lastKnownPlaybackPosition=c.current;c=Math.round(this.accumulatedMediaTime/c.duration*1E3)/1E3;return d.getPresentingPlayerType&&d.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>K||c>H)};
_.G.handlePlaybackTrigger=function(d){var H=this;d=d.playbackEvent;if(d==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var K="onStateChange";var c=function(p){p===0&&H.showSurvey()}}else d==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(K="onVideoProgress",c=function(p){H.player&&H.player.getPresentingPlayerType&&H.player.getPresentingPlayerType()===1&&p&&H.showSurvey()}):d==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(K="onAdEnd",c=this.showSurvey);
return[K,c]};
_.G.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.G.openSurvey=function(){var d=this,H=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.rwZ(!!H));_.Xp.addJob(function(){d.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:H}})},0,0)};
_.G.maybeRemovePlayerListeners=function(d){if(this.playerListenerConfig){for(var H=_.q(Object.keys(this.playerListenerConfig)),K=H.next();!K.done;K=H.next())K=K.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(d,K,this.playerListenerConfig[K]);this.playerListenerConfig=null}};
BL.prototype.dataChanged=BL.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],BL.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Ke),_.O("design:type",Object)],BL.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(_.jk.YtPlayerListenerBehavior),_.O("design:type",_.vn)],BL.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],BL.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(_.to),_.O("design:type",Object)],BL.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],BL.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],BL.prototype,"playerListenerConfig",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],BL.prototype,"lastKnownPlaybackPosition",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],BL.prototype,"accumulatedMediaTime",void 0);_.t([_.r(),_.O("design:type",Object)],BL.prototype,"player",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],BL.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],BL);
_.T(BL,"ytd-survey-trigger-renderer",function(){if(wDS!==void 0)return wDS;var d=document.createElement("template");_.P(d,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-trigger-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return wDS=d},{mode:1});
}catch(e){_._DumpException(e)}
try{
var a0H=new _.Dk("promotedSparklesWebRenderer");var l0a=new _.Dk("relatedChipCommand");var e6N;var k3S;var Rz=function(){return _.B.apply(this,arguments)||this};
_.m(Rz,_.B);Rz.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Rz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Rz.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Rz);
_.T(Rz,"ytd-compact-tvfilm-entry-point-renderer",function(){if(k3S!==void 0)return k3S;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-tvfilm-entry-point-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-compact-tvfilm-entry-point-renderer"><span id="title" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.title)]]</span><span id="subtitle" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.subtitle)]]</span></div><div id="action-button" class="style-scope ytd-compact-tvfilm-entry-point-renderer"></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return k3S=d},{mode:1});var xUB;var nd_;var CM_;var VU=function(){return _.B.apply(this,arguments)||this};
_.m(VU,_.B);VU.prototype.ready=function(){this.initializeDefs()};
VU.prototype.initializeDefs=function(){var d=this.meta.byKey("yt-icons"),H=_.Gn(d).querySelector("#star"),K=_.Gn(d).querySelector("#star_half");d=_.Gn(d).querySelector("#star_border");H&&this.defs.appendChild(H.cloneNode(!0));K&&this.defs.appendChild(K.cloneNode(!0));d&&this.defs.appendChild(d.cloneNode(!0))};
VU.prototype.percentChanged=function(){for(var d=this.rating;d.firstChild;)d.removeChild(d.firstChild);var H=Math.round(this.percent/10);d=Math.floor(H/2);H%=2;var K=5-d-H;this.appendStars("star",d,0);this.appendStars("star_half",H,d);this.appendStars("star_border",K,d+H)};
VU.prototype.appendStars=function(d,H,K){for(var c=0;c<H;c++){var p=(18+this.spacing)*(c+K),g=document.createElementNS("http://www.w3.org/2000/svg","use");_.Ncj(g,"#"+d);g.setAttribute("x",""+p);g.setAttribute("y","0");this.rating.appendChild(g)}};
VU.prototype.percentChanged=VU.prototype.percentChanged;_.t([_.VP("#defs"),_.O("design:type",HTMLElement)],VU.prototype,"defs",void 0);_.t([_.VP("#rating"),_.O("design:type",HTMLElement)],VU.prototype,"rating",void 0);_.t([_.r(),_.O("design:type",Number)],VU.prototype,"percent",void 0);_.t([_.r({value:6}),_.O("design:type",Number)],VU.prototype,"spacing",void 0);_.t([_.r({value:_.Ms.create("iron-meta",{type:"iconset"})}),_.O("design:type",_.PZ)],VU.prototype,"meta",void 0);
_.t([_.CK("percent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],VU.prototype,"percentChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-ratings"})],VU);
_.T(VU,"ytd-ratings",function(){if(CM_!==void 0)return CM_;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ratings--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg id="svg" width="90px" height="18px" viewBox="0 0 120 24" class="style-scope ytd-ratings">\n  <defs id="defs" class="style-scope ytd-ratings">\n  </defs>\n  <g id="rating" class="style-scope ytd-ratings"></g>\n</svg>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return CM_=d},{mode:1});var UZ=function(){return _.B.apply(this,arguments)||this};
_.m(UZ,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],UZ.prototype,"data",void 0);_.t([_.Z({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],UZ);
_.T(UZ,"ytd-offer-review-renderer",function(){if(nd_!==void 0)return nd_;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-review-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ratings percent="[[data.percent]]" class="style-scope ytd-offer-review-renderer"></ytd-ratings>\n<yt-formatted-string text="[[data.score]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n-\n<yt-formatted-string link-inherit-color="" text="[[data.source]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return nd_=d},{mode:1});var hh=function(){var d=_.B.apply(this,arguments)||this;d.badges=[{textBadge:{label:_.AF("CC")}}];return d};
_.m(hh,_.B);_.G=hh.prototype;_.G.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.G.dataChanged=function(){var d=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(d&&d.commandMetadata&&_.M(d.commandMetadata,_.Ie)&&_.M(d.commandMetadata,_.Ie).fireAutomatically)_.Kj().resolve(_.cb).resolveCommand(d,{form:{element:this.hostElement}});else{var H;d&&((H=_.M(d,_.Ie))==null?0:H.fireAutomatically)&&_.Kj().resolve(_.cb).resolveCommand(d,{form:{element:this.hostElement}})}};
_.G.isEmptyContent=function(d){return this.isStorefrontEntryPointEmpty(d)&&this.shouldHideOfferModule(d)};
_.G.isStorefrontEntryPointEmpty=function(d){return!d||!d.storefrontEntryPoint};
_.G.shouldHideOfferModule=function(d){return!!d.hideVideoDetails};
_.G.isOfferModuleNavigationInactive=function(d){return!d.navigationEndpoint&&!d.serviceEndpoint};
_.G.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.Kj().resolve(_.cb).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
hh.prototype.dataChanged=hh.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],hh.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],hh.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.O("design:type",Boolean)],hh.prototype,"hidden",void 0);
_.t([_.r(),_.O("design:type",Object)],hh.prototype,"badges",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hh.prototype,"dataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],hh);
_.T(hh,"ytd-movie-offer-module-renderer",function(){if(xUB!==void 0)return xUB;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module-container" hidden="[[shouldHideOfferModule(data)]]" class="style-scope ytd-movie-offer-module-renderer">\n  <div id="header" class="style-scope ytd-movie-offer-module-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-offer-module-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string id="manage-purchase-text" link-inherit-color="" text="[[data.managePurchasesText]]" class="style-scope ytd-movie-offer-module-renderer">\n    </yt-formatted-string>\n  </div>\n  <a aria-label$="[[getSimpleString(data.title)]]" id="wide-clickable-area" class="yt-simple-endpoint flexed style-scope ytd-movie-offer-module-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" inactive$="[[isOfferModuleNavigationInactive(data)]]" on-tap="maybeNavigateWithServiceEndpoint">\n    <yt-img-shadow id="img" thumbnail="[[data.thumbnail]]" class="style-scope ytd-movie-offer-module-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-movie-offer-module-renderer">\n      <template is="dom-if" if="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-if" if="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="details" split-lines="true" text="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-repeat" items="[[data.reviews]]" as="review" class="style-scope ytd-movie-offer-module-renderer">\n        <ytd-offer-review-renderer data="[[review.offerReviewRenderer]]" class="style-scope ytd-movie-offer-module-renderer"></ytd-offer-review-renderer>\n      </template>\n      <template is="dom-repeat" items="[[data.attributes]]" as="attribute" class="style-scope ytd-movie-offer-module-renderer">\n        <p class="style-scope ytd-movie-offer-module-renderer">\n          <template is="dom-if" if="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer">\n            <yt-formatted-string text="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>:\n          </template>\n          <yt-formatted-string ellipsis-truncate="" link-inherit-color="" text="[[attribute.value]]" title="[[getSimpleString(attribute.value)]]" class="style-scope ytd-movie-offer-module-renderer">\n          </yt-formatted-string>\n        </p>\n      </template>\n     <ytd-badge-supported-renderer badges="[[badges]]" hidden="[[!data.showCc]]" class="style-scope ytd-movie-offer-module-renderer">\n     </ytd-badge-supported-renderer>\n    </div>\n  </a>\n</div>\n<div id="storefront-entry-point" hidden="[[isStorefrontEntryPointEmpty(data)]]" class="style-scope ytd-movie-offer-module-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return xUB=d},{mode:1});var R6_;var Li=function(){return _.B.apply(this,arguments)||this};
_.m(Li,_.B);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Li.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Li.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Li);
_.T(Li,"ytd-media-masthead-renderer",function(){if(R6_!==void 0)return R6_;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-media-masthead-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n      <div id="image" class="style-scope ytd-media-masthead-renderer">\n        <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n      </div>\n      <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n        <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n          <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n        </template>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n    <div id="image" class="style-scope ytd-media-masthead-renderer">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n    </div>\n    <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n      <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n        <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return R6_=d},{mode:1});var VSa;_.iV(_.UmM,"course-metadata-view-model",{props:{data:_.p7,isOverlay:_.p7}});var MK=function(){var d=_.B.apply(this,arguments)||this;d.isMetadataVisible=!1;d.modernPanels=_.h("kevlar_watch_modern_panels");d.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return d};
_.m(MK,_.B);_.G=MK.prototype;
_.G.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.expandMetadataButton":{id:"expand-metadata-button",mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.masthead":{id:"masthead",mapping:{mediaMastheadRenderer:{component:"ytd-media-masthead-renderer"},channelMastheadRenderer:{component:"ytd-channel-masthead-renderer",params:{isInOfferModule:!0}}}},
"data.expandedMetadata":{id:"expanded-metadata",mapping:{courseMetadataViewModel:{component:"course-metadata-view-model"}}}}};
_.G.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.G.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.G.expanderChanged=function(){var d;if((d=this.data)==null?0:d.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.G.isExpandButtonToggled=function(){var d,H;return(H=_.M((d=this.data)==null?void 0:d.expandMetadataButton,_.EV))==null?void 0:H.isToggled};
_.G.onVisibilityButtonClick=function(){var d;if((d=this.data)==null?0:d.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.G.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
MK.prototype.expanderChanged=MK.prototype.expanderChanged;MK.prototype.dataChanged=MK.prototype.dataChanged;MK.prototype.descriptionChanged=MK.prototype.descriptionChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],MK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u([_.Uq.YtActionHandlerBehavior]),_.O("design:type",Object)],MK.prototype,"actionHandlerBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],MK.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],MK.prototype,"isMetadataVisible",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],MK.prototype,"modernPanels",void 0);_.t([_.VP("#expander"),_.O("design:type",Object)],MK.prototype,"expander",void 0);_.t([_.CK("data.description"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],MK.prototype,"descriptionChanged",null);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],MK.prototype,"dataChanged",null);_.t([_.CK("isMetadataVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],MK.prototype,"expanderChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],MK);
_.T(MK,"ytd-tvfilm-offer-module-renderer",function(){if(VSa!==void 0)return VSa;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="header" hidden="[[!data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="title" text="[[data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-formatted-string>\n  <div id="expand-metadata-button" on-click="onVisibilityButtonClick" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n</h2>\n\n<div id="masthead" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<div id="action-buttons" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="3" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="description" slot="content" disable-upgrade$="[[!data.description]]" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-tvfilm-offer-module-renderer" slot="more-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="expand-more-icon" icon="yt-icons:expand-more" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-tvfilm-offer-module-renderer" slot="less-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="expand-less-icon" icon="yt-icons:expand-less" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n\n<div id="expanded-metadata" hidden="[[!isMetadataVisible]]" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return VSa=d},{mode:2});var UUC;var mI=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return d};
_.m(mI,_.B);mI.prototype.dataChanged=function(){this.hostElement.hidden=!1};
mI.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
mI.prototype.onThumbnailTap=function(d){this.data&&this.data.serviceEndpoint&&(_.Kj().resolve(_.cb).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),d.stopPropagation())};
mI.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
mI.prototype.dataChanged=mI.prototype.dataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],mI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],mI.prototype,"rendererBehaviors",void 0);_.t([_.u([_.Uq.YtActionHandlerBehavior]),_.O("design:type",Object)],mI.prototype,"actionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],mI.prototype,"data",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mI.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],mI);
_.T(mI,"ytd-unlimited-offer-module-renderer",function(){if(UUC!==void 0)return UUC;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-checkout-offers" class="style-scope ytd-unlimited-offer-module-renderer">\n  <div id="header" class="style-scope ytd-unlimited-offer-module-renderer">\n    <div id="title-section" class="style-scope ytd-unlimited-offer-module-renderer">\n      <yt-formatted-string id="main-title" text="[[data.title]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n      <yt-formatted-string id="sub-title" text="[[data.subtitle]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n    </div>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" class="style-scope ytd-unlimited-offer-module-renderer">\n    </ytd-button-renderer>\n  </div>\n  <ytd-thumbnail id="thumbnail" data="[[data]]" hidden$="[[!data.thumbnail]]" width="402" on-click="onThumbnailTap" class="style-scope ytd-unlimited-offer-module-renderer">\n  </ytd-thumbnail>\n  <div id="storefront-entry-point" hidden="[[!data.storefrontEntryPoint]]" class="style-scope ytd-unlimited-offer-module-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return UUC=d},{mode:1});var h6_;var LgH;var wL=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return d};
_.m(wL,_.B);wL.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
wL.prototype.handleRelatedChipCommand=function(d){d=_.M(d,l0a);var H=d.contents;H?_.qo(this.hostElement,"yt-item-section-replace-action",[H,d.targetSectionIdentifier]):_.qo(this.hostElement,"yt-item-section-continuation-action",[d.continuationData,d.targetSectionIdentifier])};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],wL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],wL.prototype,"actionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],wL.prototype,"data",void 0);_.t([_.ZV({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],wL);
_.T(wL,"yt-related-chip-cloud-renderer",function(){if(LgH===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-related-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_related_chip_cloud_renderer.yt.related.chip.cloud.renderer.css.js--\x3e<div id="content" class="style-scope yt-related-chip-cloud-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;h6_===void 0&&(h6_=document.createElement("template"));var c=h6_;K.call(H,c.content.cloneNode(!0),d.content.firstChild);LgH=d}d=LgH;return d},{mode:2});var PD=function(){var d=_.B.apply(this,arguments)||this;d.isTwoColumns=!0;d.hideOfferModules=!1;d.watchFeedBigThumbs=_.h("kevlar_watch_feed_big_thumbs");d.watchFeedBigThumbsOnLockup=_.h("web_watch_next_big_thumbs");d.watchNextGridHideChips=_.h("kevlar_watch_grid_hide_chips");d.eligibleToSwitchToGrid=_.h("web_watch_eligible_to_switch_to_grid");d.disableShortsShelfHeightOverride=_.h("web_shorts_wn_shelf_ratio_tuning");d.isWatchNextGrid=!1;d.reuseComponents=!_.h("kevlar_watch_grid");d.nextContinuation=
{continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return d};
_.m(PD,_.B);_.G=PD.prototype;
_.G.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.h("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.G.getItemsPath=function(){return"data.results"};
_.G.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.G.created=function(){this.ytLazyListBehavior.initialCount=1};
_.G.ready=function(){_.eO(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.G.resultsChanged=function(){if(this.data&&this.data.results){for(var d=this.data.results,H=null,K=null,c=0;c<d.length;c++)d[c].relatedChipCloudRenderer?H=d[c].relatedChipCloudRenderer:d[c].itemSectionRenderer&&(K=d[c].itemSectionRenderer);if(H&&K)for(this.set("data.continuations",[]),d=_.M(H.content,_.zSd).chips,H=0;H<d.length;H++)if(c=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",d[H]),c.loadCached||!c.contents){c.contents=K.contents;break}}};
_.G.dataChanged=function(){var d=this,H;if((H=this.data)!=null&&H.results&&this.hasAllowedInstreamAd(this.playerData)){if(H=this.data.results.filter(function(e){return!!e.promotedSparklesWebRenderer})){for(var K=0;K<H.length;K++){var c=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",H[K]);
if(c)for(var p=0;p<c.length;p++)c[p]&&c[p].baseUrl&&_.S7(c[p].baseUrl)}this.set("data.results",this.data.results.filter(function(e){return!e.promotedSparklesWebRenderer}))}if(H=this.data.results.filter(function(e){return!!d.getSparklesAd(e)})){H=_.q(H);
for(p=H.next();!p.done;p=H.next())if(c=K=void 0,p=(K=this.getSparklesAd(p.value))==null?void 0:(c=K.errorCommand)==null?void 0:c.loggingUrls)for(K=_.q(p),c=K.next();!c.done;c=K.next())(c=c.value)&&c.baseUrl&&_.S7(c.baseUrl);var g,a;this.set("data.results",(g=this.data)==null?void 0:(a=g.results)==null?void 0:a.filter(function(e){return!e.adSlotRenderer}))}}};
_.G.getSparklesAd=function(d){var H,K;d=_.M((H=d.adSlotRenderer)==null?void 0:(K=H.fulfillmentContent)==null?void 0:K.fulfilledLayout,_.spS);return _.M(d==null?void 0:d.renderingContent,a0H)};
_.G.hasAllowedInstreamAd=function(d){d=this.get("adPlacements",d)||[];for(var H=0;H<d.length;H++){var K=this.get("adPlacementRenderer.config.adPlacementConfig",d[H]);if(K&&K.suppressDisplayAd)return!0}return!1};
_.G.computeHideUnlimitedOfferModule=function(d,H){return d&&d.offerModule&&H&&d.offerModule.unlimitedOfferModuleRenderer&&d.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(H)?!0:!1};
_.G.hideUnlimitedOfferModuleChanged=function(){var d=_.Gn(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");d&&(d.hidden=this.hideUnlimitedOfferModule)};
_.G.updateLockupContainerTypes=function(d){if(this.eligibleToSwitchToGrid){var H;(H=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||H.forEach(function(K){K.containerType=d})}};
_.G.computeHideTvfilmOfferModule=function(d,H){var K,c;return!!((d==null?0:(K=d.offerModule)==null?0:(c=K.tvfilmOfferModuleRenderer)==null?0:c.clientShouldSuppressIfCompanionAdDisplayed)&&H&&this.hasCompanionAds(H))};
_.G.hideTvfilmOfferModuleChanged=function(){var d=_.Gn(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");d&&(d.hidden=this.hideTvfilmOfferModule)};
_.G.hasCompanionAds=function(d){d=this.get("adPlacements",d)||[];for(var H=0;H<d.length;H++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",d[H]))return!0;var K=void 0,c=void 0,p=void 0;if(!_.h("web_watch_top_banner_companion_check_killswitch")&&((K=d[H])==null?0:(c=K.adPlacementRenderer)==null?0:(p=c.renderer)==null?0:p.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.G.hasSuppressedResults=function(d){return d==null?!0:d.filter(function(H){return!H.continuationItemRenderer&&!H.compactPromotedVideoRenderer&&!H.promotedSparklesWebRenderer}).length===0};
_.G.computeShowButton=function(d,H){return this.isWatchNextGrid?d:d||this.hasSuppressedResults(H)};
_.G.showButtonChanged=function(){if(this.isWatchNextGrid){var d=_.Gn(this.hostElement).querySelector("ytd-rich-grid-renderer");d&&this.showButton!==null&&(d.continuationShowButton=this.showButton)}else{d=_.Gn(this.hostElement).querySelector("yt-next-continuation");var H=_.Gn(this.hostElement).querySelector("ytd-continuation-item-renderer"),K=_.Gn(this.hostElement).querySelector("ytd-item-section-renderer");d&&(d.showButton=this.showButton);H&&(H.showButton=this.showButton);K&&(K.continuationShowButton=
this.showButton)}};
_.G.continuationTap=function(d){var H;if(((H=this.data)==null?void 0:H.continuations)!=null&&d.target.tagName==="TP-YT-PAPER-BUTTON")for(d=this.data.continuations,H=0;H<d.length;H++)d[H].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(d[H].nextContinuationData||{})};
_.G.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("shown-items-changed",this.shownItems))};
_.H3.Object.defineProperties(PD.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.shownItems)==null||!d.some(function(H){return!!H.lockupViewModel||H.compactVideoRenderer}))}}});
PD.prototype.shownItemsChangedForBinding=PD.prototype.shownItemsChangedForBinding;PD.prototype.showButtonChanged=PD.prototype.showButtonChanged;PD.prototype.hideTvfilmOfferModuleChanged=PD.prototype.hideTvfilmOfferModuleChanged;PD.prototype.updateLockupContainerTypes=PD.prototype.updateLockupContainerTypes;PD.prototype.hideUnlimitedOfferModuleChanged=PD.prototype.hideUnlimitedOfferModuleChanged;PD.prototype.dataChanged=PD.prototype.dataChanged;PD.prototype.resultsChanged=PD.prototype.resultsChanged;
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],PD.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],PD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Gr.YtLazyListBehavior),_.O("design:type",Object)],PD.prototype,"ytLazyListBehavior",void 0);_.t([_.u(_.bN.YtNextContinuationBehavior),_.O("design:type",Object)],PD.prototype,"ytNextContinuationBehavior",void 0);
_.t([_.u(_.yH),_.O("design:type",Object)],PD.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],PD.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],PD.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],PD.prototype,"playerData",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],PD.prototype,"autoFill",void 0);_.t([_.r({value:60}),_.O("design:type",Number)],PD.prototype,"targetFramerate",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PD.prototype,"isTwoColumns",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PD.prototype,"hideOfferModules",void 0);_.t([_.r(),_.O("design:type",Object)],PD.prototype,"shownItems",void 0);_.t([_.r({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.O("design:type",Boolean)],PD.prototype,"hideUnlimitedOfferModule",void 0);
_.t([_.r({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.O("design:type",Boolean)],PD.prototype,"hideTvfilmOfferModule",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PD.prototype,"watchFeedBigThumbs",void 0);_.t([_.r(),_.O("design:type",Object)],PD.prototype,"watchFeedBigThumbsOnLockup",void 0);_.t([_.r(),_.O("design:type",Object)],PD.prototype,"watchNextGridHideChips",void 0);_.t([_.r(),_.O("design:type",Object)],PD.prototype,"eligibleToSwitchToGrid",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PD.prototype,"disableShortsShelfHeightOverride",void 0);_.t([_.r({selector:_.ZA,reflectToAttribute:!0}),_.O("design:type",Object)],PD.prototype,"isGridViewEnabled",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],PD.prototype,"showMoreButton",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PD.prototype,"isWatchNextGrid",void 0);
_.t([_.r({computed:"computeShowButton(showMoreButton, data.results)"}),_.O("design:type",Boolean)],PD.prototype,"showButton",void 0);_.t([_.Mr("data.results.*"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PD.prototype,"resultsChanged",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PD.prototype,"dataChanged",null);
_.t([_.CK("hideUnlimitedOfferModule"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PD.prototype,"hideUnlimitedOfferModuleChanged",null);_.t([_.I("isGridViewEnabled","containsLockups","data"),_.r({reflectToAttribute:!0}),_.O("design:type",Number),_.O("design:paramtypes",[])],PD.prototype,"lockupContainerType",null);
_.t([_.CK("lockupContainerType","data"),_.O("design:type",Function),_.O("design:paramtypes",[Number]),_.O("design:returntype")],PD.prototype,"updateLockupContainerTypes",null);_.t([_.CK("hideTvfilmOfferModule"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PD.prototype,"hideTvfilmOfferModuleChanged",null);_.t([_.CK("showButton"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PD.prototype,"showButtonChanged",null);
_.t([_.CK("shownItems"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PD.prototype,"shownItemsChangedForBinding",null);_.t([_.I("shownItems"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],PD.prototype,"containsLockups",null);
_.T(PD,"ytd-watch-next-secondary-results-renderer",function(){if(e6N===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);e6N=d}d=e6N;return d},{mode:1});
}catch(e){_._DumpException(e)}
try{
var xK5=new _.Dk("replaceFeedContentAction");var nD1;var Czv;var Mm=function(){return _.B.apply(this,arguments)||this};
_.m(Mm,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Mm.prototype,"data",void 0);_.t([_.Z({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],Mm);
_.T(Mm,"ytd-sub-feed-option-renderer",function(){if(Czv!==void 0)return Czv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-sub-feed-option-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1">\n  <tp-yt-paper-radio-button checked="[[data.isSelected]]" class="style-scope ytd-sub-feed-option-renderer">\n    <yt-formatted-string text="[[data.name]]" class="style-scope ytd-sub-feed-option-renderer"></yt-formatted-string>\n  </tp-yt-paper-radio-button>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Czv=d},{mode:1});var RCT;var mF=function(){return _.B.apply(this,arguments)||this};
_.m(mF,_.B);mF.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],mF.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],mF.prototype,"ytRendererStamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],mF.prototype,"data",void 0);_.t([_.Z({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],mF);
_.T(mF,"ytd-sub-feed-selector-renderer",function(){if(RCT!==void 0)return RCT;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-sub-feed-selector-renderer">\n   [[getSimpleString(data.title)]]\n</h2>\n<div id="options" class="style-scope ytd-sub-feed-selector-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return RCT=d},{mode:1});var we=function(){return _.B.apply(this,arguments)||this};
_.m(we,_.B);
we.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],we.prototype,"data",void 0);_.t([_.Z({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],we);
_.T(we,"ytd-browse-feed-actions-renderer",function(){if(nD1!==void 0)return nD1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-feed-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-feed-actions-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return nD1=d},{mode:1});var VFb;var UKg;var PL=function(){return _.B.apply(this,arguments)||this};
_.m(PL,_.B);PL.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],PL.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],PL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],PL.prototype,"data",void 0);_.t([_.Z({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],PL);
_.T(PL,"ytd-mini-channel-renderer",function(){if(UKg!==void 0)return UKg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="channel-info" class="yt-simple-endpoint style-scope ytd-mini-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" rel$="[[computeNofollow_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-mini-channel-renderer">\n  </yt-img-shadow>\n  <span class="title style-scope ytd-mini-channel-renderer">[[getSimpleString(data.title)]]</span>\n</a>\n\n<div id="subscribe" class="style-scope ytd-mini-channel-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return UKg=d},{mode:1});var hCg;var ub=function(){return _.B.apply(this,arguments)||this};
_.m(ub,_.B);ub.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ub.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],ub);
_.T(ub,"ytd-vertical-channel-section-renderer",function(){if(hCg!==void 0)return hCg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-channel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-vertical-channel-section-renderer">[[data.title]]</h2>\n<div id="items" class="style-scope ytd-vertical-channel-section-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return hCg=d},{mode:1});var Il=function(){return _.B.apply(this,arguments)||this};
_.m(Il,_.B);Il.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Il.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Il.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Il.prototype,"data",void 0);_.t([_.Z({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Il);
_.T(Il,"ytd-browse-secondary-contents-renderer",function(){if(VFb!==void 0)return VFb;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-secondary-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-secondary-contents-renderer">\n</div>');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
return VFb=d},{mode:1});var LIZ;var re=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};d.notActive=!1;d.isConstrainedList=!1;return d};
_.m(re,_.B);_.G=re.prototype;
_.G.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(d){var H;return(d==null?void 0:(H=d.webComponentHint)==null?void 0:H.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.G.getPath=function(d,H){var K="data.tabs.#"+H+".";d.tabs[H].tabRenderer?K+="tabRenderer.":d.tabs[H].expandableTabRenderer&&(K+="expandableTabRenderer.");return K+"content.sectionListRenderer"};
_.G.computeDisplayedContent=function(d){this.unlinkPaths("content");if(d&&d.tabs)for(var H=d.tabs.length,K=0;K<H;K++){var c=d.tabs[K].tabRenderer||d.tabs[K].expandableTabRenderer;if(c.selected&&c.content)return this.linkPaths("content",this.getPath(d,K)),c.content}return null};
_.G.computeHasSecondaryColumnData=function(d){return!!d&&!!d.secondaryContents};
_.G.onRetrieveLocation=function(d,H){H.locationRetrieved(H.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);d.stopPropagation()};
_.G.onYtServiceRequestSent=function(d,H){_.h("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(H)};
_.G.onYtServiceRequestCompleted=function(d,H){_.h("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(H)};
_.G.onReplaceFeedContentAction=function(d){if(!_.h("replace_feed_content_action_killswitch")&&!this.notActive){var H;(d=(H=_.M(d,xK5))==null?void 0:H.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(d)}};
_.G.handleServiceRequestActions=function(d){if(d=d.actions){d=_.q(d);for(var H=d.next();!H.done;H=d.next()){H=H.value;var K=void 0;((K=_.M(H,xK5))==null?0:K.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.M(H,xK5).items)}}};
re.prototype.onYtServiceRequestCompleted=re.prototype.onYtServiceRequestCompleted;re.prototype.onYtServiceRequestSent=re.prototype.onYtServiceRequestSent;re.prototype.onRetrieveLocation=re.prototype.onRetrieveLocation;_.t([_.u(_.EO),_.O("design:type",Object)],re.prototype,"ytdGridStateAwareBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],re.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],re.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],re.prototype,"data",void 0);_.t([_.r({computed:"computeDisplayedContent(data)"}),_.O("design:type",Object)],re.prototype,"content",void 0);
_.t([_.r({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],re.prototype,"hasSecondaryColumnData",void 0);_.t([_.r({value:function(){return window.outerHeight>1024?3:2}}),
_.O("design:type",Number)],re.prototype,"initialCount",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],re.prototype,"pageSubtype",void 0);_.t([_.VP("ytd-section-list-renderer"),_.O("design:type",Object)],re.prototype,"listRenderer",void 0);_.t([_.r(),_.O("design:type",Object)],re.prototype,"notActive",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],re.prototype,"isConstrainedList",void 0);
_.t([_.r(),_.O("design:type",String)],re.prototype,"responsiveSizing",void 0);_.t([_.nK("yt-retrieve-location"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],re.prototype,"onRetrieveLocation",null);_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],re.prototype,"onYtServiceRequestSent",null);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],re.prototype,"onYtServiceRequestCompleted",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],re);
_.T(re,"ytd-two-column-browse-results-renderer",function(){if(LIZ!==void 0)return LIZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-browse-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-browse-results-renderer"></div>\n<div id="secondary" class="style-scope ytd-two-column-browse-results-renderer">\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return LIZ=d},{mode:2});
}catch(e){_._DumpException(e)}
try{
var pM_=function(d){if((d==null?void 0:d.value)===void 0||d==null||!d.unit)return"initial";a:{switch(d.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var H="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":H="%";break a}H=void 0}return H?""+d.value+H:"initial"},gGS=new _.Dk("shoppingContentLineItemViewModel");var i4E=_.H1(function(d){var H=_.dg(d,{}).data;return _.x("yt-shopping-content-line-item-view-model",{class:_.xM("ytShoppingContentLineItemViewModelHost")},_.x(_.j$,{text:function(){var K;return(K=H().text)==null?void 0:K.attributedString}}))},"Hk");var G1r=_.H1(function(d){d=_.dg(d,{});var H=d.data;return _.x("yt-shopping-content-line-view-model",{class:_.xM("ytShoppingContentLineViewModelHost",d.className),style:_.UQ({"--shopping-content-line-gap":function(){return H().itemGap?H().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return H().lineHeight?H().lineHeight+"px":void 0}})},_.x(_.L6,{each:function(){return(H().items||[]).map(function(K){return _.M(K,gGS)}).filter(function(K){return!!K})}},function(K){return _.x(i4E,{data:K})}))},"Ik");_.iV(_.H1(function(d){var H=_.dg(d,{}).data,K=function(){var p;return((p=H().image)==null?void 0:p.width)||40},c=function(){var p;
return((p=H().image)==null?void 0:p.height)||40};
return _.x("yt-shopping-timely-shelf-content-view-model",{el:_.$M(_.Tx(function(){var p;return(p=H())==null?void 0:p.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.xM("ytShoppingTimelyShelfContentViewModelHost"),style:_.UQ({"--shopping-timely-shelf-content-padding-top":function(){var p;return pM_((p=H().padding)==null?void 0:p.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var p;return pM_((p=H().padding)==null?void 0:p.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var p;return pM_((p=H().padding)==null?void 0:p.start)},
"--shopping-timely-shelf-content-padding-end":function(){var p;return pM_((p=H().padding)==null?void 0:p.end)}})},_.x(_.n,{cond:function(){var p;
return(p=H().image)==null?void 0:p.image},
then:function(p){return _.x(_.d7,{preserveHeight:!0,preserveWidth:!0,width:K,height:c,data:p,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.x(_.wB,{data:function(){return H().avatar}},{avatarViewModel:_.JV}),_.x("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.x(_.wB,{data:function(){return H().line1}},{shoppingContentLineViewModel:function(p){return _.x(G1r,{data:p.data})}}),_.x(_.wB,{data:function(){return H().line2}},{shoppingContentLineViewModel:function(p){return _.x(G1r,
{data:p.data})}})),_.x("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.x(_.L6,{each:function(){var p;
return(p=H().button)!=null?p:[]}},function(p){return _.x(_.wB,{data:function(){return p}},{buttonViewModel:_.xk})})))},"Jk"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.dl}});_.oGH={};
_.oGH.YtdWatchBehavior=[_.b.YtRendererBehavior,_.jk.YtPlayerListenerBehavior,_.om.YtRendererstamperBehavior,_.Uq.YtActionHandlerBehavior,_.JM.YtPageBehavior,_.VV.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Qx("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.h("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.Qx("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerUnavailableFixedVisibility:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_error_screen_fix")}},
playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,
value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,
value:!1},isSingleColumn:{type:Boolean,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,
value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.h("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.iT("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.iT("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.h("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.h("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.h("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.h("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.h("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var d={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.jr(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.jr(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},
"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.h("swa_prov_panels_ks")?d.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(d.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},d.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return d},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var d=this;this.watchController=void 0;this.pageDisposeJobs=[function(){d.showMetadataPlaceholder_()},
function(){_.h("web_watch_dont_clear_comments")||d.clearComments_()},
function(){d.clearPlayerAds_()},
function(){d.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.h("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.h("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.Ep_(function(){return _.$6(d)},this.hostElement);
this.pageDisposeJobs.push(function(){d.youThereManager_.reset()});
_.h("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){d.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.oh;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.h("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]=
"setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.h("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.xf(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(d){d&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:d}),d.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(d){_.h("kevlar_watch_flexy_theater_manager")&&(this.theater=d,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(d){!_.h("kevlar_watch_while_v2")&&!_.h("web_watch_pip")||d||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(d){this.active!==void 0&&(this.fullscreen=d,_.h("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(d){this.active!==void 0&&(_.GT(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.h("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(d>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(d){this.initCsi_();this.updatePageData_(d)},
updatePageData_:function(d){var H=this;if(d)if(this.data===d){this.onPageLoadWithSameData_();var K;(K=this.watchController)==null||K.setWatchNextResponse(this.data)}else this.data=d;this.playlist&&_.Xw({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Fw("nw");this.loading=!1;_.mf(_.Xp,function(){H.initDclkstatus_();var c,p=((c=H.player)==null?void 0:c.getVideoData().cpn)||"";_.rXK(function(g,a){_.Z5Z(g,a,p)})})},
onPageLoadWithSameData_:function(){_.h("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var d=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!d);this.set("loadingData.playlistLoading",d&&d!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),d=this.watchNextSkeletonEl_.firstElementChild;d;)d.classList.remove("hidden"),d=d.nextElementSibling;if(_.h("kevlar_watch_frame0_loading_state")){var H,K,c;d=(H=this.loadingData)==null?void 0:(K=H.endpoint)==null?void 0:(c=K.watchEndpoint)==null?void 0:c.videoId;var p;d&&(p="https://i.ytimg.com/vi/"+d+"/frame0.jpg");_.Gn(this.hostElement).querySelector("#player").style.backgroundImage=p?"url("+p+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var d=_.Gn(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&d&&(d.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var H,K;(K=(H=this.watchMetadata).updateSentimentBarWidth)==
null||K.call(H);var c,p;(p=(c=this.watchMetadata).resize)==null||p.call(c)}_.h("kevlar_watch_frame0_loading_state")&&(_.Gn(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(d){var H=_.Gn(this.hostElement).querySelector(d);H?_.gV(H,!1):_.Jf(new _.m1("Overscroll monitor not found for component: ",d))},
removeSplitScrollMouseTrap:function(d){var H=_.Gn(this.hostElement).querySelector(d);H?_.i5(H):_.Jf(new _.m1("Disposal component for  overscroll monitoring not found: ",d))},
onLoadingChanged_:function(d){d?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.h("web_thumbnail_to_watch_transition")&&!_.sVv||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.h("web_thumbnail_to_watch_transition")&&!_.sVv||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(d){var H=this;d?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Xp.addLowPriorityJob(function(){H.onWindowResized_(_.wn(!0))})},
updateTheaterModeState_:function(d){if(!_.h("kevlar_watch_flexy_theater_manager")){d=d||this.fullWindowMode_;if(this.theater!==void 0||d)this.theater=d;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();d&&_.BAE()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.h("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var d=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.h("external_fullscreen")&&this.fullscreen&&(d=!0);_.h("web_watch_error_screen_fix")&&(d=this.fullBleedPlayer);d=d?_.Gn(this.hostElement).querySelector("#player-full-bleed-container"):_.Gn(this.hostElement).querySelector("#player-container-inner");var H=this.getPlayerContainer(),K=_.h("kevlar_watch_while_v2")||_.h("web_watch_pip");H.parentElement!==d&&(K&&this.isMiniplayerActive()?
this.deactivateMiniplayerAndResetPlayer():(_.$6(this).appendTo(d,H),_.h("web_watch_error_screen_fix")||d.appendChild(_.Gn(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var d=_.Gn(this.hostElement).querySelector("#error-screen"),H=this.fullBleedPlayer?_.Gn(this.hostElement).querySelector("#player-full-bleed-container"):_.Gn(this.hostElement).querySelector("#player");d.parentElement!==H&&H.appendChild(d)},
deactivateMiniplayerAndResetPlayer:function(){var d=this;return _.l(function(H){if(H.nextAddress==1)return H.yield(_.Kj().resolve(_.Fb).deactivate(),2);d.updatePlayerLocation();_.VE(H)})},
updateCinematicsLocation:function(){var d=this.getElement("CINEMATICS");if(d){var H=this.getCinematicsLocationContainer();d.parentElement!==H&&H.appendChild(d);var K;(K=this.watchController)==null||K.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.enableFullBleedSingleColumnDefaultPlayer&&this.isSingleColumn)?_.Gn(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Gn(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(d,H,K){var c=document.documentElement.hasAttribute("dark"),p=c&&_.h("web_cinematic_theater_mode"),g=c&&_.h("web_cinematic_fullscreen");c=!c&&this.cinematicLightTheme;return K||d&&p||H&&g||(H||d)&&c},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var d=this,H;(H=this.watchController)==null||H.setWatchNextResponse(this.data);_.h("kevlar_watch_flexy_comments_manager")||this.initComments_();_.h("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.Kj().resolve(_.tJ).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.h("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Xp.addLowPriorityJob(function(){_.qo(d.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.h("web_watch_start_chat_in_theater_mode")){var K,c,p;if((K=this.data)==null?0:(c=K.contents)==null?0:(p=c.twoColumnWatchNextResults)==null?0:p.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var g,a;((g=this.data)==null?0:(a=g.contents)==null?0:a.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(d){var H;(H=this.watchController)==null||H.setPlayerResponse(this.playerData);d&&d.playabilityStatus&&(H=this.isVideoPlayable_(d.playabilityStatus,this.getPlayerOverlays_(this.data)),d=this.isLiveStreamOffline_(d.playabilityStatus),H&&!d||_.vV(this,function(){_.Fw("pbu")}));
this.setPlayerAds_();_.qo(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(d,H){if((_.h("kevlar_watch_while_v2")||_.h("web_watch_pip"))&&this.playerData&&H)return this.playerData.videoDetails},
watchPageActiveChanged_:function(d){_.dn().dispatch(_.$Q_(this.active));d?this.activate_():this.deactivate_()},
attached:function(){var d=this;this.watchController=new _.QC(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.h("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var H=_.$6(this);_.h("kevlar_disable_prepare_player")||
H.preparePlayer();_.h("kevlar_watch_flexy_playlist_manager")||_.Kj().resolve(_.tJ).setPlayer(H);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();H={"--ytd-watch-flexy-scrollbar-width":_.DN()+"px"};this.is==="ytd-watch-grid"&&(H["--ytd-watch-flexy-sidebar-width"]=_.awr+"px",H["--ytd-watch-grid-horizontal-page-margins"]=_.ZI+"px",H["--ytd-watch-grid-columns-top-margins"]=_.GCO+"px",H["--ytd-watch-grid-min-player-height-medium"]="360px");!_.iT("kv_pl_mx_sz_ks")&&
_.iT("kevlar_watch_max_player_width")&&(H["--ytd-watch-flexy-max-player-width-wide-screen"]=_.lwe+"px");_.iT("kevlar_watch_flexy_metadata_height")&&(H["--ytd-watch-flexy-space-below-player"]=_.e_H+"px");this.safeUpdateStyles(H);_.h("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.aA(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return d.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.Gn(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var d=_.DN(),H=_.TB+d,K=H;this.fixedPanels&&(H+=_.awr);var c=657+d;d=1327+d;_.Gn(this.hostElement).querySelector("#two-column-query").query="(min-width: "+H+"px)";_.Gn(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(c+"px), (min-height: 630px) and (min-width: ")+(H+"px) and (max-width: ")+(d+"px)");_.Gn(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(d+"px)");
_.Gn(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+K+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var d=_.Gn(this.hostElement).querySelector("#miniplayer-bar").firstChild,H=this.squeezeback&&!_.h("web_watch_squeezeback_player_size_killswitch");return d&&d.active||this.theater||_.h("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||H||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.nB(NaN,NaN):_.JXr(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.JXr(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.AA(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var d=this;this.onWindowResized_(_.wn());_.h("browse_skeleton_removal_on_watch_killswitch")||_.Qx("IS_SHELL_LOAD")&&_.mKj();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var H=_.$6(this);H.addEventListener("yt-player-updated",_.xf(this,this.onPlayerUpdated_));H.getPlayerPromise().then(function(K){d.playerApiReady_(K)});
_.h("kevlar_watch_flexy_playlist_manager")||(H=_.Kj().resolve(_.tJ),_.h("kevlar_watch_observe_playlist_navigations_killswitch")&&H.addEventListener("yt-navigate",_.xf(this,this.onYtNavigate_)),H.setPlaylistComponent(_.Gn(this.hostElement).querySelector("#playlist")),H.addEventListener("yt-playlist-data-updated",_.xf(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Xp.addLowPriorityJob(function(){_.GT(d.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.$6(this).removeEventListener("yt-player-updated",_.xf(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.h("kevlar_watch_flexy_playlist_manager")){var d=_.Kj().resolve(_.tJ);_.h("kevlar_watch_observe_playlist_navigations_killswitch")&&d.removeEventListener("yt-navigate",_.xf(this,this.onYtNavigate_));
d.cancelVideoSkip();d.removeEventListener("yt-playlist-data-updated",_.xf(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.GT(this.hostElement,"yt-autonav-pause-player",!1);d=_.Ko();_.h("kevlar_exit_fullscreen_leaving_watch")&&d&&_.cy(d)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(d){this.player&&this.player.updateVideoData({rvs:d.rvs})},
getPageContents:function(d){return d&&d.contents&&d.contents.twoColumnWatchNextResults&&d.contents.twoColumnWatchNextResults.results&&d.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(d){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",d)},
onRetrieveLocation_:function(d,H){H.hasComments?H.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):H.locationRetrieved("/related_ajax",void 0);d.stopPropagation()},
onSubscriptionChanged_:function(d,H){this.player&&(H?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.X_("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Gn(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Gn(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(d){this.player=d;this.setPlayerState(d.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.h("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.h("kevlar_unified_player")||_.h("kevlar_player_new_bootstrap_adoption"))&&_.YE()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(d,H){H=H===void 0?!0:H;_.Ko()&&_.h("external_fullscreen")&&_.cy(document.documentElement);this.theaterRequested_=d;H&&_.Um("wide",d?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.oF(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.GT(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(d){_.sD(d,typeof this.player),this.player&&_.sD(d,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var d;((d=this.player)==null?0:d.isFullscreen())?this.player.toggleFullscreen():_.oF(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(d,H){return this.loading?H:!!Object.keys(d).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(d){if(d){d=_.q(d);for(var H=d.next();!H.done;H=d.next())H=H.value,H.youThereRenderer&&_.NfL(this.youThereManager_,H.youThereRenderer)}},
setPlaylistData_:function(d){return d||{}},
userEngagementConfigDataChanged_:function(d){if(d)if(d.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var H=this.youThereManager_;_.cd()<d.lowEngagementThresholdMs||_.j5N(H,!0)}else d.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.oF(this.hostElement,"yt-autonav-pause-user-engagement",[d])},
isPlayerUnavailable_:function(d,H,K){return!!d&&!this.isVideoPlayable_(d,K)&&!H},
getPlayerOverlays_:function(d){return(d==null?void 0:d.playerOverlays)||null},
isVideoPlayable_:function(d,H){if(!d)return!1;var K=d.status==="OK"||d.status==="LIVE_STREAM_OFFLINE",c=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",d)||this.get("errorScreen.ypcTrailerRenderer",d);d=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",d);var p;H=H==null?void 0:(p=H.playerOverlayRenderer)==null?void 0:p.gatedActionsOverlayRenderer;return!!K||!!c||!!d||!!H},
hasWatchNextResponseErrorRenderer:function(d){var H=this.getPageContents(d),K,c,p,g,a;return!(d==null?0:(K=d.contents)==null?0:(c=K.twoColumnWatchNextResults)==null?0:c.secondaryResults)&&!!((p=H[0])==null?0:(g=p.itemSectionRenderer)==null?0:(a=g.contents[0])==null?0:a.backgroundPromoRenderer)},
isLiveStreamOffline_:function(d){return d?d.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(d,H,K){var c=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",H),p=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];p=_.h("web_no_skip_video_on_verification_checks")?(d==null?void 0:d.status)&&p.includes(d.status):d&&d.status==="AGE_CHECK_REQUIRED";var g=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",d);g==void 0&&(g=!0);!K||this.isVideoPlayable_(d,this.getPlayerOverlays_(H))||
c||p||!g||_.Kj().resolve(_.tJ).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.F1H()},
onPlayerFeedbackStartRequest_:function(d){_.oF(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:d}])},
onPlayerFeedbackArticleRequest_:function(d){_.oF(this.hostElement,"yt-help-dialog-requested",[d])},
onPlayerYpcContentRequest_:function(){var d,H,K,c,p,g,a,e,k=((d=this.data)==null?NaN:(H=d.contents)==null?NaN:(K=H.twoColumnWatchNextResults)==null?NaN:(c=K.secondaryResults)==null?NaN:(p=c.secondaryResults)==null?NaN:(g=p.offerModule)==null?NaN:(a=g.tvfilmOfferModuleRenderer)==null?NaN:(e=a.actionButtons)==null?NaN:e.length)-1;d=[".offerButton.buttonRenderer.",".actionButtons."+(k>=0?k:0)+".buttonRenderer."];H=_.q(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(K=H.next();!K.done;K=H.next())for(K=K.value,c=_.q(d),p=c.next();!p.done;p=c.next())if(p="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+K+p.value,p=this.get(p+"navigationEndpoint",this.data)||this.get(p+"serviceEndpoint",this.data)||this.get(p+"command",this.data)){_.CM(p,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(d){_.GT(this.hostElement,"yt-autonav-pause-player",d)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(d){d()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(d){switch(d){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(d){switch(d){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.GT(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(d)},
setPlayerState:function(d){_.dn().dispatch(_.CNM(d))},
onPlayerSubscribe_:function(d){_.oF(this.hostElement,"yt-player-subscribe",[d])},
onPlayerUnsubscribe_:function(d){_.oF(this.hostElement,"yt-player-unsubscribe",[d])},
onPlayerAdYtShowToast_:function(d){_.oF(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:d.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(d){if(d)return d},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(d){return!_.h("web_watch_move_summary_to_sd")&&!!d},
computeWatchMetadataRefresh:function(){return _.h("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.h("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var d,H,K,c;this.watchNextSecondaryResults=(d=this.data)==null?void 0:(H=d.contents)==null?void 0:(K=H.twoColumnWatchNextResults)==null?void 0:(c=K.secondaryResults)==null?void 0:c.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.h("swatcheroo_pbs_load_grid")&&!_.h("swatcheroo_provide_all_data_on_scheduled_job")){_.Xp.cancelJob(this.setRichGridJobId_);var d,H,K,c,p,g,a;this.setRichGridRendererData((d=this.data)==null?void 0:(H=d.contents)==null?void 0:(K=H.twoColumnWatchNextResults)==null?void 0:(c=K.secondaryResults)==null?void 0:(p=c.secondaryResults)==null?void 0:(g=p.results)==null?void 0:(a=g[0])==null?
void 0:a.richGridRenderer)}},
setRichGridRendererData:function(d){this.richGridRendererData=d},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var d,H=(d=this.data)==null?void 0:d.engagementPanels;if(H==null?0:H.length){d=null;H=_.q(H);for(var K=H.next();!K.done;K=H.next()){K=K.value;var c=void 0;if(((c=K.engagementPanelSectionListRenderer)==null?void 0:c.targetId)==="engagement-panel-structured-description"){d=K;break}}var p,g,a;d=(p=d)==null?void 0:(g=p.engagementPanelSectionListRenderer)==null?void 0:(a=g.content)==null?void 0:a.structuredDescriptionContentRenderer;if(d==null?0:d.items){p=
[];g=_.q(d.items);for(a=g.next();!a.done;a=g.next()){a=a.value;if(!_.h("sd_horizontal_list_show_nav_killswitch")){var e=c=K=H=d=void 0,k=void 0,C=(d=a.horizontalCardListRenderer)==null?void 0:(H=d.header)==null?void 0:(K=H.richListHeaderRenderer)==null?void 0:(c=K.navigationButton)==null?void 0:(e=c.buttonRenderer)==null?void 0:(k=e.command)==null?void 0:k.commandExecutorCommand;C&&C.commands&&(C.commands=C.commands.filter(function(R){return!_.M(R,_.uOO)}))}(!a.expandableVideoDescriptionBodyRenderer&&
!a.videoDescriptionHeaderRenderer||_.h("web_delhi_colorful_sd"))&&p.push(a)}return{items:p}}}},
constructWarning_:function(d){return{text:_.AF(d),type:"WARNING"}},
isPlaShelfEnabled_:function(d){if((this.get("adPlacements",d)||[]).length)return!0;d=this.get("playerAds",d)||[];return!(!d.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",d[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var d=this;_.GT(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var H=this.getScrollTop()>0;this.gestures_&&(H?this.gestures_.detach():this.gestures_.attach());H!==this.showFullerscreenEdu_&&_.h("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=H,_.$6(this).getPlayerPromise().then(function(K){K.updateFullerscreenEduButtonVisibility(d.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.GT(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var d=this;this.commentsReady=!1;_.Xp.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.mf(_.Xp,function(){d.setComments_()},1E3)},
setComments_:function(){if(!_.h("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Fw("cmi");_.Xp.cancelJob(this.setCommentsJobId_);var d=this.getPageContents(this.data);if(d&&d.length){d=_.q(d);for(var H=d.next();!H.done;H=d.next())if(H=H.value,this.get("itemSectionRenderer.sectionIdentifier",H)==="comment-item-section"){this.comments=H.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.GT(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.h("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.h("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Fw("cmc")},
doRemoveComments_:function(){this.comments={};_.h("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Xp.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Xp.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(d,H){var K=_.M(H.endpoint,_.AP);K&&(!(H=this.get("data.currentVideoEndpoint.watchEndpoint"))||K.videoId!==H.videoId||K.playlistId&&K.playlistId!==H.playlistId||K.index!==void 0&&K.index!==H.index||typeof K.startTimeSeconds!=="number"||(d.stopPropagation(),this.setScrollTop(0),_.$6(this).getPlayerPromise().then(function(c){var p=K.startTimeSeconds;c.seekTo(p);c.wakeUpControls();p<c.getDuration()&&c.playVideo()})))},
updatePlayerStartTime_:function(){var d=_.UQN();"t"in d&&(d=_.s5E(d.t),this.player.seekTo(d,!0))},
updateTitleFromWatchNext:function(d){d=this.getPageContents(d);var H,K;(d=_.jG(d==null?void 0:(H=d[0])==null?void 0:(K=H.videoPrimaryInfoRenderer)==null?void 0:K.title))&&_.GT(this.hostElement,"yt-update-title",d)},
updateTitle_:function(d){d=this.get("videoDetails.title",d)||"";_.GT(this.hostElement,"yt-update-title",d)},
syncWithRemoteVideo_:function(d,H,K){if(this.active&&this.player){var c=this.player.getVideoData();if(c.video_id===K&&(K=c.list,_.h("polymer_enable_mdx_queue")&&K&&K.startsWith("RQ")&&(K=void 0),c.video_id!==d||K!=H)){var p;_.h("kevlar_player_watch_endpoint_navigation")?p=_.AUY(_.W1L(d,H)):p=this.buildWatchEndpoint_(d,H);_.GT(this.hostElement,"yt-navigate",{endpoint:p,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(d,H,K){return _.KH(d,H,K)},
initDclkstatus_:function(){_.Xba()},
attachWatchPageSkeleton_:function(){var d=document.querySelector("#watch-page-skeleton");if(d){var H=d.querySelector("#primary-info"),K=d.querySelector("#secondary-info"),c=d.querySelector("#related");H&&_.Gn(this.hostElement).querySelector("#info-skeleton").appendChild(H);K&&_.Gn(this.hostElement).querySelector("#meta-skeleton").appendChild(K);c&&(_.Gn(this.hostElement).querySelector("#related-skeleton").appendChild(c),this.watchNextSkeletonEl_=c);_.nA(d)}},
handlePlayerUpdated_:function(){_.$6(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(d,H){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof H!=="undefined"){var K=this.watchNextSkeletonEl_.children,c=d&&d.indexSplices.length?d.indexSplices[0].index:0;d=Math.min(this.watchNextShownItems.length,K.length);H||(c=0,d=K.length);for(H=c;H<d;H++)K[H].classList.add("hidden")}},
onPlayerFullscreenChange_:function(d){_.h("external_fullscreen")||_.oF(this.hostElement,"yt-player-fullscreen",[d.fullscreen])},
onFullscreenChange_:function(d){this.fullscreen=d;this.gestures_&&this.gestures_.update(this.fullscreen);var H=_.$6(this);H.getPlayerPromise().then(function(K){K.setFauxFullscreen(!!_.Ko())});
this.updateFullBleedElementLocations();d&&(H.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(d,H){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!H},
computeIsDonationShelfCollapsed_:function(d){return d},
computeShouldShowMerchShelf:function(d,H){return H&&!!d},
computeResponseHasComments:function(d){var H,K,c,p,g;return!!(d==null?0:(H=d.contents)==null?0:(K=H.twoColumnWatchNextResults)==null?0:(c=K.results)==null?0:(p=c.results)==null?0:(g=p.contents)==null?0:g.some(function(a){var e;return(a==null?void 0:(e=a.itemSectionRenderer)==null?void 0:e.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(d,H,K,c){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&c?!1:!!d&&!!Object.keys(d).length&&!H},
identity:_.JC,onWindowResized_:function(d){this.windowSize_=d;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(d){var H=this;d&&d.type!=="dataloaded"&&d.type!=="dataupdated"||_.$6(this).getPlayerPromise().then(function(K){var c=K.getPlayerState();c!==5&&c!==0&&(K=1/K.getVideoAspectRatio(),H.videoHeightToWidthRatio_!==K&&(H.videoHeightToWidthRatio_=K))})},
schedulePlayerSizeUpdate_:function(d){var H=this,K=_.h("kevlar_watch_while_v2")||_.h("web_watch_pip"),c=function(){if(H.watchMetadata){var p,g;(g=(p=H.watchMetadata).resize)==null||g.call(p)}_.$6(H).getPlayerPromise().then(function(a){if(_.h("kevlar_set_internal_player_size")){if(!K||!H.isMiniplayerActive()){var e=H.calculateCurrentPlayerSize_();a.setInternalSize(e.width,e.height)}}else a.setSize(NaN,NaN);_.h("kevlar_watch_while")&&H.updateWatchWhileScrollThreshold_()})};
d?c():_.mR(_.Xp,c)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(d){this.set("data.survey",d.detail)},
onYtShowSurveyCommand_:function(d){this.set("data.survey",_.M(d,_.Sm_).survey)},
onDownloadedVideoDeleted:function(d){var H=this,K,c;return _.l(function(p){if(p.nextAddress==1){if(!H.active||(K=H.playerData)==null||!K.offlineState||H.videoId!==d)return p.return();(c=H.player)==null||c.stopVideo();_.UT().navigatingAwayFromWatchDeletedVideo=!0;_.CM(_.v7l,H.hostElement);return p.yield(_.UT().navigationFinishPromise,2)}_.UT().navigatingAwayFromWatchDeletedVideo=!1;_.VE(p)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var d;this.theater?d=_.zH(.5625*this.windowSize_.width,480,this.windowSize_.height-185):d=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==d&&(this.watchWhileScrollThreshold_=d,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var d=_.Gn(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&d){var H=this.windowSize_.height>=624,K=this.active?this.getScrollTop():0;!d.active&&H&&K>=this.watchWhileScrollThreshold_?(d.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):d.active&&(!H||K<this.watchWhileScrollThreshold_&&!_.Ko())&&(d.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var d=_.Gn(this.hostElement).querySelector("#secondary-inner");if(d){var H=_.Gn(this.hostElement).querySelector("#below"),K=_.Gn(this.hostElement).querySelector("#secondary"),c=_.Gn(this.hostElement).querySelector("#comments");c&&K&&H&&(this.defaultTwoColumnLayout?(d.appendChild(c),K.appendChild(d)):(H.appendChild(c),_.sZ(H,d)))}}},
isTwoColumnsChanged_:function(d,H){if(d!==!0||H!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(d=_.Gn(this.hostElement).querySelector("#secondary-inner"))){H=_.Gn(this.hostElement).querySelector("#below");var K=_.Gn(this.hostElement).querySelector("#secondary"),c=_.Gn(this.hostElement).querySelector("#comments");c&&K&&H&&(this.isTwoColumns_?(d.appendChild(c),K.appendChild(d)):(H.appendChild(c),
_.sZ(H,d)))}}else{d=!_.h("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);H=_.Gn(this.hostElement).querySelector("#panels");var p=_.Gn(this.hostElement).querySelector("#alerts");K=_.Gn(this.hostElement).querySelector("#playlist");c=_.Gn(this.hostElement).querySelector("#related");var g=_.Gn(this.hostElement).querySelector("#donation-shelf"),a=_.Gn(this.hostElement).querySelector("#comments");this.isTwoColumns_?(p=_.Gn(this.hostElement).querySelector("#secondary-inner"),
d&&(p.appendChild(H),p.appendChild(K)),p.appendChild(g),p.appendChild(c)):(d&&(_.Ip(H,p),_.Ip(K,p)),_.Ip(g,p),a&&_.Ip(c,a));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.h("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.h("web_watch_enable_fs_squeezeback_panels")&&_.h("web_watch_theater_chat")){var d=_.Gn(this.hostElement).querySelector("#chat-container"),H=this.theater&&!this.fullscreen||_.h("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&H?(H=_.Gn(this.hostElement).querySelector("#columns"),(d==null?void 0:d.parentElement)!==H&&H.append(d),this.fixedPanels=!0):(this.fixedPanels=
!1,H=_.Gn(this.hostElement).querySelector("#playlist"),d&&H?_.rv(d,H):_.Jf(new _.m1("Missing element when updating chat location",{"chatContainer defined":!!d,"playlist defined":!!H})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(d,H){return _.h("sw_metadata_vis_toggle_ks")?!0:!!d||!!H},
computeForceDarkPanelTheme:function(d){return _.h("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&d:!1},
safeUpdateStyles:function(d){try{_.eO(this.hostElement,d)}catch(H){_.Jf(H)}},
videoHeightToWidthRatioChanged_:function(d,H){H&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(d){this.videoHeightToWidthRatio_=1/d},
computeIsVerticalVideo_:function(d){return d>=1},
computeIsFourThreeToSixteenNineVideo_:function(d){return d<=.7501&&d>=.5624},
computeIsExtraWideVideo_:function(d){return d<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.$6(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.$6(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.vpB(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(d){var H=_.xC(d)||0;_.kC(d,H+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var d=_.xC("yt-fullerscreen-edu-button-click-count")||0,H=_.xC("yt-fullerscreen-edu-button-shown-count")||0,K=_.iT("external_fullscreen_button_shown_threshold"),c=d>=_.iT("external_fullscreen_button_click_threshold")||H>=K;_.$6(this).getPlayerPromise().then(function(p){p.updateFullerscreenEduButtonSubtleModeState(c)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(d,H){return H},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.Kj().resolve(_.tJ).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var d=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Xp.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Xp.addLowPriorityJob(function(){d.fullHeightPanelPositionUpdateJobId=0;var H=_.Gn(d.hostElement).querySelector("#secondary"),K=_.Gn(d.hostElement).querySelector("#fixed-secondary");H=H.getBoundingClientRect();var c=H.width;d.swatcherooSqueezeback&&
(c+=_.ZI);if(d.swatcherooSqueezeback){var p=_.Gn(d.hostElement).querySelector("#squeezeback-constraining-container");p.style.width=c+"px";p.style.flex="0 0 "+c+"px"}K.style.width=c+"px";K.style.left=H.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var d=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Xp.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Xp.addLowPriorityJob(function(){d.panelMaxHeightUpdateJob_=0;var H;!d.isTwoColumns_||d.theater||d.fullscreen?H=460:H=d.calculateNormalPlayerSize_().height;var K=H+"px";_.h("live_chat_taller_height")&&!d.theater&&(K="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.h("live_chat_medium_height")&&!d.theater&&(K="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.h("live_chat_scaled_height")&&!d.theater&&(K="calc(100vh - var(--ytd-toolbar-height) - 238px)");d.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":H+"px","--ytd-watch-flexy-chat-max-height":K,"--ytd-watch-flexy-structured-description-max-height":H+"px","--ytd-watch-flexy-comments-panel-max-height":H+"px","--ytd-comments-engagement-panel-content-height":H+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(d){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",d)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.l5(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(d){var H=_.Gn(this.hostElement).querySelector("#engagement-panel-scrim");d?H.addEventListener("tap",_.xf(this,this.onEngagementPanelScrimClick_)):H.removeEventListener("tap",_.xf(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(d){if(this.hostElement.contains(d)&&!this.scrollToAnimation_.isAnimating()){var H=d.offsetTop-24;d=d.offsetTop+d.offsetHeight+24;var K=this.getPageScrollingElement(),c=this.getScrollTop(),p=c+K.clientHeight-56;if(H<c+56)H-=56;else if(d>p)H=d-K.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,H),500)}},
onYtSignalActionScrollToComments:function(){var d=this.hostElement.querySelector("#comments");if(d&&!this.scrollToAnimation_.isAnimating()){d=d.offsetTop-56-24;if(_.h("kevlar_comment_teaser_scroll_to_midpoint")&&(d-=_.CB().height/3,d<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,d),500)}},
onYtEngagementPanelVisibleChanged:function(d,H,K){if(this.active&&this.trackEngagementPanelVisibility&&!_.YmK.includes(K)){if(H==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.qo(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var c=_.Kj().resolve(_.W6);this.visiblePanelIdentifiers_.forEach(function(p){p!==K&&c.hidePanel(p)})}this.visiblePanelIdentifiers_.add(K)}H!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&H!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(K);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(d){return d?"":"watch-active-metadata"},
computeNewMetadataClass:function(d){return d?"watch-active-metadata":""},
computeIsSingleColumn:function(d,H){return H&&!d},
computeFullBleedPlayer:function(d,H,K){return _.h("web_watch_error_screen_fix")?_.h("external_fullscreen")&&d||H||this.enableFullBleedSingleColumnDefaultPlayer&&K:d||H||this.enableFullBleedSingleColumnDefaultPlayer&&K},
computeDefaultLayout:function(d){return!d},
computeDefaultTwoColumnLayout:function(d,H){return!d&&H},
updatePanelsLocation:function(){if(_.h("web_watch_enable_fs_squeezeback_panels")){var d=_.Gn(this.hostElement).querySelector("#below"),H=_.Gn(this.hostElement).querySelector("#panels"),K=_.Gn(this.hostElement).querySelector("#playlist"),c=_.Gn(this.hostElement).querySelector("#chat-container"),p=_.Gn(this.hostElement).querySelector("#panels-full-bleed-container"),g=_.Gn(this.hostElement).querySelector("#secondary-inner");if(d&&H&&K&&c&&p&&g){var a=this.fullscreen||this.theater&&this.iMaxTheaterMode,
e=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;a?(p.appendChild(H),p.appendChild(c),p.appendChild(K)):this.isTwoColumns_?(e?(d=_.Gn(this.hostElement).querySelector("#columns"),(c==null?void 0:c.parentElement)!==d&&d.append(c),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):_.sZ(g,c),_.sZ(g,H),_.sZ(g,K)):(d.appendChild(H),d.appendChild(c),d.appendChild(K))}}},
swatcherooUpdatePanelsLocation:function(d,H,K,c,p,g){if(this.is==="ytd-watch-grid"){H=d&&!H;this.swatcherooSplitScroll&&(H?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));K=_.Gn(this.hostElement).querySelector("#panels");var a=_.Gn(this.hostElement).querySelector("#playlist"),e=_.Gn(this.hostElement).querySelector("#fixed-secondary"),k=_.Gn(this.hostElement).querySelector("#fixed-below"),
C=_.Gn(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),R=_.Gn(this.hostElement).querySelector("#chat-container");g&&(d?e.appendChild(K):k.appendChild(K));p?d?e.appendChild(R):k.appendChild(R):_.rv(R,C);c?d?e.appendChild(a):k.appendChild(a):_.rv(a,C);this.swatcherooSplitScroll&&(d=_.Gn(this.hostElement).querySelector("#secondary"),c=_.Gn(this.hostElement).querySelector("#columns"),p=_.Gn(this.hostElement).querySelector("#fixed-columns-secondary"),H?
p.appendChild(d):c.appendChild(d))}},
computeMetadataSkinnyMode:function(d,H,K){return this.is!=="ytd-watch-grid"?!1:d?K:H},
computeWatchWhilePanelsActive:function(d,H){return d||H},
computeNoBorderOnChat:function(d){return _.h("web_watch_theater_chat_no_border")&&d},
computeLiveChatPresentAndExpanded:function(d,H){return d&&!H},
computePanelExpanded:function(d,H,K){return d||H||K},
computeSqueezeback:function(d,H,K,c){if(_.h("web_watch_enable_fs_squeezeback_panels")){var p=this.iMaxTheaterMode&&this.theater;return(d||H||K)&&(c||p)}},
computeSwatcherooSqueezeback:function(d,H,K){return this.is!=="ytd-watch-grid"||_.h("ww_squeezeback_killswitch")?!1:d&&H&&K},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(d){_.$6(this).getPlayerPromise().then(function(H){var K;(K=H.changeMarkerVisibility)==null||K.call(H,_.M(d,_.SB).isVisible||!1,_.M(d,_.SB).entityKeys||[],_.M(d,_.SB).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(d){this.liveChatCollapsed=d.detail;_.dn().dispatch(_.tbe(d.detail));if(!this.liveChatCollapsed&&this.squeezeback){var H=_.Kj().resolve(_.W6);this.visiblePanelIdentifiers_.forEach(function(K){H.hidePanel(K)})}},
onSetPlaylistCollapsed:function(d){_.h("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!d)},
provideRenderingData:function(d,H){switch(d){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=H;break;case "PRIMARY_INFO":_.h("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=H);this.videoPrimaryInfoRendererValue=H==null?void 0:H.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.h("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=H);this.videoSecondaryInfoRendererValue=H==null?void 0:H.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
H;break;case "CLARIFICATION":this.clarifyBoxValue=H;break;case "LIVE_CHAT":this.conversationBar=H;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=H;break;case "PLAYLIST":this.externalPlaylistData_=H!=null?H:{};break;case "MERCH_SHELF":this.merchShelfValue=H==null?void 0:H.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=H;break;case "TICKET_SHELF":this.ticket=H;break;case "OFFER_MODULE":this.offerModule=H;break;case "LIMITED_STATE":this.limitedStateValue=
H;break;case "DONATION_SHELF":this.donation=H;break;case "ALERTS":this.alertsValue=H;break;case "COMMENTS":this.comments=H;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=H;break;case "ENGAGEMENT_PANELS":this.engagementPanels=H;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=H;break;case "RICH_GRID_RENDERER":this.richGridRendererData=H;break;case "EXPANDABLE_METADATA":this.expandableMetadata=H;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
H;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=H}},
toggleCinematicsActive:function(d){this.cinematicsActive=d},
isMiniplayerActive:function(){return _.Kj().resolve(_.Fb).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var Y_q;_.t1T=function(d){if(!(0,_.yhC)(d))throw Error("K``"+String(d));};
_.O5t=function(d){return d.findIndex(function(H){return Y_q.indexOf(H.tagName)>-1})>-1};
_.S_v=function(){var d=_.Kj().resolve(_.Ls);_.Fl1(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(d.isFullscreenEnabled()?_.cy(document.documentElement):_.CS4(document.documentElement))};
Y_q=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.nR=new Map;_.nR.set(32,59972);_.nR.set(27,50765);_.nR.set(70,60102);_.nR.set(76,60221);_.nR.set(77,60222);_.nR.set(74,60223);_.nR.set(84,60224);_.nR.set(38,61941);_.nR.set(40,61942);_.nR.set(73,62521);_.nR.set(67,62522);_.nR.set(80,63390);_.nR.set(78,63397);_.nR.set(75,59972);_.nR.set(188,63385);_.nR.set(190,63384);_.nR.set(36,63387);
_.nR.set(35,63386);_.nR.set(37,63388);_.nR.set(39,63389);_.nR.set(79,63423);_.nR.set(87,63424);_.nR.set(107,63426);_.nR.set(109,63425);_.nR.set(65,63428);_.nR.set(83,63430);_.nR.set(68,63429);_.nR.set(221,63431);_.nR.set(219,63432);_.nR.set(97,63439);_.nR.set(98,63440);_.nR.set(99,63441);_.nR.set(100,63442);_.nR.set(101,63443);_.nR.set(102,63444);_.nR.set(103,63445);_.nR.set(104,63446);_.nR.set(105,63447);_.CR=new Map;_.CR.set(80,63390);_.CR.set(78,63397);_.CR.set(188,63400);_.CR.set(190,63401);
_.CR.set(191,60765);_.CR.set(13,247917);_.Rc=new Map;_.Vw=new Map;
}catch(e){_._DumpException(e)}
try{
var Myg,PjT,uqt,IpZ;_.VyT=function(d){return d.ui.guideIsVisibleButNotPersistent};
_.Utj=function(d){return d.ui.tabGesturesIsActive};
_.hKq=function(){var d=_.GJ("service_worker_scope");try{return navigator.serviceWorker.getRegistration(d)}catch(H){return Promise.reject(H)}};
_.L5b=function(d){return!(!d||!d.pushManager)};
Myg=function(){return _.hKq().then(_.L5b).catch(function(){return!1})};
_.mtg=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?Myg():Promise.resolve(!1)};
_.wkt=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
PjT=function(){var d,H,K;return _.l(function(c){switch(c.nextAddress){case 1:return c.yield(_.rI.getInstance(),2);case 2:d=c.yieldResult;if(!d){H=void 0;c.jumpTo(3);break}return c.yield(d.get("lmqf"),4);case 4:H=c.yieldResult;case 3:switch((K=H)||(K="SD"),K){case "HD":return c.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return c.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return c.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return c.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return c.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
uqt=function(d){var H,K,c;return _.l(function(p){if(p.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.h("disable_av1_setting")){var g=window.localStorage["yt-player-av1-pref"];g=g==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":g==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else g="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(H=d===g)return p.jumpTo(2);c=K=d;return p.yield(PjT(),3)}p.nextAddress!=2&&(H=c===p.yieldResult);return p.return(H)})};var rtT;var W55=_.mm.IronButtonState,Bc5=(0,_.LT)(HTMLElement);
_.zn({_template:function(){if(rtT!==void 0)return rtT;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;IpZ===void 0&&(IpZ=document.createElement("template"));var c=IpZ;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return rtT=d},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[W55,_.LN,_.wi,_.Ih],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(d){var H=(0,_.U_)(this);H.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:d});H.shadowRoot.appendChild(d);return Bc5.prototype._attachDom.call(this,d)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var d=this.contentElement;d&&d.selectedItem&&this._setSelectedItem(d.selectedItem)},
get contentElement(){for(var d=_.Iu(this.$.content).getDistributedNodes(),H=0,K=d.length;H<K;H++)if(d[H].nodeType===Node.ELEMENT_NODE)return d[H]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(d){this._setSelectedItem(d.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(d){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d)===this&&this.open()},
_selectedItemChanged:function(d){var H="";d?H=d.label||d.getAttribute("label")||d.textContent.trim():H="";this.value=H;this._setSelectedItemLabel(H)},
_computeMenuVerticalOffset:function(d,H){return H?H:d?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var d=this.opened?"true":"false",H=this.contentElement;H&&H.setAttribute("aria-expanded",d)}});_.Gh=new _.Dk("navigateAction");var zKG=new _.Dk("formRenderer");var oP=function(){var d=_.hB.apply(this,arguments)||this;d.showInput=!1;return d};
_.m(oP,_.hB);_.G=oP.prototype;_.G.detached=function(){this.showInput&&window.removeEventListener("click",_.xf(this,this.closeOnOutsideClick_))};
_.G.stopPropagation_=function(d){this.showInput&&d.stopPropagation()};
_.G.closeOnOutsideClick_=function(d){this.closeOnOutsideClickCondition(d)&&(this.showInput=!1,window.removeEventListener("click",_.xf(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.G.closeOnOutsideClickCondition=function(){return!0};
_.G.closeOnOutsideClickHandler=function(){};
_.G.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.xf(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.G.openOnClickHandler=function(){};
_.G.showInputChanged=function(){};
_.G.setShowInput=function(d){this.showInput=d};
oP.prototype.setShowInput=oP.prototype.setShowInput;oP.prototype.showInputChanged=oP.prototype.showInputChanged;oP.prototype.openOnClickHandler=oP.prototype.openOnClickHandler;oP.prototype.openOnClick_=oP.prototype.openOnClick_;oP.prototype.closeOnOutsideClickHandler=oP.prototype.closeOnOutsideClickHandler;oP.prototype.closeOnOutsideClickCondition=oP.prototype.closeOnOutsideClickCondition;oP.prototype.closeOnOutsideClick_=oP.prototype.closeOnOutsideClick_;oP.prototype.stopPropagation_=oP.prototype.stopPropagation_;
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],oP.prototype,"showInput",void 0);_.t([_.nK("click"),_.nK("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],oP.prototype,"stopPropagation_",null);_.t([_.CK("showInput"),_.O("design:type",Function),_.O("design:paramtypes",[Boolean]),_.O("design:returntype")],oP.prototype,"showInputChanged",null);_.t([_.LK()],oP);_.XkG=[oP.prototype];var Jt1;var sHO;var q1=function(){return _.B.apply(this,arguments)||this};
_.m(q1,_.B);_.G=q1.prototype;_.G.computePreselectedOption=function(d,H){return H===this.itemSelected_?d:void 0};
_.G.dataChanged_=function(){var d=this;this.preselectedSubreason=this.itemSelected_=-1;var H;(H=this.data)!=null&&H.key&&_.vV(this,function(){var K,c=Number((K=d.data)==null?void 0:K.key);!Number.isNaN(c)&&(d.itemSelected_=c,K=(K=(d.data.items||[])[c])&&K.optionSelectableItemRenderer&&K.optionSelectableItemRenderer.preselectedIndex)&&(d.preselectedSubreason=K)})};
_.G.isSubReasonHidden_=function(d,H){return d!=H};
_.G.onTopItemSelected_=function(d,H){for(var K=_.Gn(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),c=0,p=K.length;c<p;c++)K[c].select(0);_.oF(this.hostElement,"yt-report-form-update",[H.item.value]);d.stopPropagation()};
_.G.onItemSelected_=function(d,H){_.oF(this.hostElement,"yt-report-form-update",[H.item.value]);d.stopPropagation()};
_.G.getItem_=function(d){return d.serviceItem?d.serviceItem:d.navigationItem?d.navigationItem:d.optionSelectableItemRenderer?d.optionSelectableItemRenderer:null};
_.G.computeText_=function(d){return(d=this.getItem_(d))?this.ytRendererBehavior.getSimpleString(d.text):null};
_.G.validate=function(){return this.itemSelected_!==-1};
_.G.computeAriaLabel_=function(d){var H=_.jG(d.text);(d=d.accessibility&&d.accessibility.accessibilityData&&d.accessibility.accessibilityData.label)&&(H+=". "+d);return H};
_.G.computeItemSelected_=function(d){return d};
_.G.preventSelection_=function(d){d.stopPropagation();this.tooltipTapped=!0};
_.G.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.G.updateItemSelectedFromBinding=function(d){this.itemSelected_=d.detail.value};
_.G.save=function(){var d;this.validate()&&(d=this.data)!=null&&d.items&&(d=this.data.items[this.itemSelected_],d!=null&&d.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(d.optionSelectableItemRenderer.submitEndpoint)||_.aF(this.hostElement,[d.optionSelectableItemRenderer.submitEndpoint])))};
q1.prototype.onPaperRippleTransitionEnd_=q1.prototype.onPaperRippleTransitionEnd_;q1.prototype.dataChanged_=q1.prototype.dataChanged_;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],q1.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],q1.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],q1.prototype,"data",void 0);_.t([_.r({value:-1}),_.O("design:type",Number)],q1.prototype,"itemSelected_",void 0);
_.t([_.r({computed:"computeItemSelected_(itemSelected_)"}),_.O("design:type",Number)],q1.prototype,"value",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],q1.prototype,"restoreFocusOnClose",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],q1.prototype,"tooltipTapped",void 0);_.t([_.r({value:-1}),_.O("design:type",Number)],q1.prototype,"preselectedSubreason",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],q1.prototype,"dataChanged_",null);_.t([_.nK("transitionend"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],q1.prototype,"onPaperRippleTransitionEnd_",null);_.t([_.ZV({is:"yt-options-renderer",disableElementRegistration:!0})],q1);
_.T(q1,"yt-options-renderer",function(){if(sHO===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.menus.yt_options_renderer.yt.options.renderer.css.js--\x3e<div id="options-select" class="style-scope yt-options-renderer">\n  <tp-yt-paper-radio-group id="yt-options-renderer-options" selected="[[itemSelected_]]" on-iron-select="onTopItemSelected_" on-selected-changed="updateItemSelectedFromBinding" class="style-scope yt-options-renderer">\n    <template is="dom-repeat" items="[[data.items]]" class="style-scope yt-options-renderer">\n      <tp-yt-paper-radio-button class="radio style-scope yt-options-renderer" aria-label$="[[computeAriaLabel_(item.optionSelectableItemRenderer)]]" name$="[[index]]" value="[[item.optionSelectableItemRenderer]]">\n        <div class="content style-scope yt-options-renderer">\n          <div class="text style-scope yt-options-renderer">\n            <yt-formatted-string text="[[item.optionSelectableItemRenderer.text]]" class="style-scope yt-options-renderer">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtext style-scope yt-options-renderer" hidden="[[!item.optionSelectableItemRenderer.subtext]]" text="[[item.optionSelectableItemRenderer.subtext]]">\n            </yt-formatted-string>\n          </div>\n          <template is="dom-if" if="[[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]" class="style-scope yt-options-renderer">\n            <div class="info-container style-scope yt-options-renderer" on-tap="preventSelection_">\n              <yt-icon icon="yt-icons:help_outline" size="16" class="style-scope yt-options-renderer"></yt-icon>\n              <tp-yt-paper-tooltip animation-delay="0" class="style-scope yt-options-renderer">\n                [[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]\n              </tp-yt-paper-tooltip>\n            </div>\n          </template>\n        </div>\n      </tp-yt-paper-radio-button>\n      <template is="dom-if" if="[[item.optionSelectableItemRenderer.subOptions]]" class="style-scope yt-options-renderer">\n        <tp-yt-paper-dropdown-menu aria-label$="[[item.optionSelectableItemRenderer.subOptionsAccessibility.label]]" hidden="[[isSubReasonHidden_(index, itemSelected_)]]" no-label-float="" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-select="onItemSelected_" class="style-scope yt-options-renderer">\n          <tp-yt-paper-listbox class="dropdown-content style-scope yt-options-renderer" slot="dropdown-content" selected="[[computePreselectedOption(preselectedSubreason, index)]]">\n            <template is="dom-repeat" items="[[item.optionSelectableItemRenderer.subOptions]]" as="subOption" class="style-scope yt-options-renderer">\n              <tp-yt-paper-item value="[[getItem_(subOption)]]" class="style-scope yt-options-renderer">\n                [[computeText_(subOption)]]\n              </tp-yt-paper-item>\n            </template>\n         </tp-yt-paper-listbox>\n        </tp-yt-paper-dropdown-menu>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;Jt1===void 0&&(Jt1=document.createElement("template"));var c=Jt1;K.call(H,c.content.cloneNode(!0),d.content.firstChild);sHO=d}d=sHO;return d},{mode:2});var F5Z;var ZlZ;var TcZ;var QHO;var ty0;var YeZ;var aP=function(){return _.B.apply(this,arguments)||this};
_.m(aP,_.B);aP.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
aP.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
aP.prototype.onTap=function(d){if(this.hostElement.classList.contains("selected")||_.oF(this.hostElement,"yt-share-panel-can-select-contact-action")[0])d&&d.detail&&(d.detail.x||d.detail.y)&&_.Gn(this.hostElement).querySelector("#target").blur(),(d=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),d={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:d?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.oF(this.hostElement,"yt-share-panel-select-contact-action",[d])};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);_.t([_.r({observer:"onDataChanged"}),_.O("design:type",Object)],aP.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.O("design:type",String)],aP.prototype,"componentTitle",void 0);_.t([_.VP("#thumbnail"),_.O("design:type",Object)],aP.prototype,"thumbnail",void 0);_.t([_.ZV({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],aP);
_.T(aP,"yt-enrolled-contact-renderer",function(){if(YeZ===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-enrolled-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_enrolled_contact_renderer.yt.enrolled.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-enrolled-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-enrolled-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-enrolled-contact-renderer"></div>\n  <div id="name" class="style-scope yt-enrolled-contact-renderer">[[componentTitle]]</div>\n</button>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;ty0===void 0&&(ty0=document.createElement("template"));var c=ty0;K.call(H,c.content.cloneNode(!0),d.content.firstChild);YeZ=d}d=YeZ;return d},{mode:2});var Olj;var Se5;var l4=function(){return _.B.apply(this,arguments)||this};
_.m(l4,_.B);l4.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
l4.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
l4.prototype.onTap=function(d){if(this.hostElement.classList.contains("selected")||_.oF(this.hostElement,"yt-share-panel-can-select-contact-action")[0])d&&d.detail&&(d.detail.x||d.detail.y)&&_.Gn(this.hostElement).querySelector("#target").blur(),(d=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),d={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:d?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.oF(this.hostElement,"yt-share-panel-select-contact-action",[d])};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.t([_.r({observer:"onDataChanged"}),_.O("design:type",Object)],l4.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.O("design:type",String)],l4.prototype,"componentTitle",void 0);_.t([_.VP("#thumbnail"),_.O("design:type",Object)],l4.prototype,"thumbnail",void 0);_.t([_.ZV({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],l4);
_.T(l4,"yt-suggested-contact-renderer",function(){if(Se5===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-suggested-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_suggested_contact_renderer.yt.suggested.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-suggested-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.avatar.thumbnail]]" class="style-scope yt-suggested-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-suggested-contact-renderer"></div>\n  <div id="name" class="style-scope yt-suggested-contact-renderer">[[componentTitle]]</div>\n</button>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;Olj===void 0&&(Olj=document.createElement("template"));var c=Olj;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Se5=d}d=Se5;return d},{mode:2});var ea=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-share-panel-reset-action":"onReset"};return d};
_.m(ea,_.B);ea.prototype.configureRendererStamper=function(){return{"data.contacts":{id:"contents",mapping:{enrolledContactRenderer:{component:"yt-enrolled-contact-renderer",attributes:{role:"checkbox"}},suggestedContactRenderer:{component:"yt-suggested-contact-renderer",attributes:{role:"checkbox"}}}}}};
ea.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.oF(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
ea.prototype.onReset=function(){for(var d=_.Gn(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),H=d.length-1;H>=0;H--)d[H].classList.toggle("selected")};
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],ea.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ea.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r({observer:"onDataChanged"}),_.O("design:type",Object)],ea.prototype,"data",void 0);
_.t([_.ZV({is:"yt-contact-section-renderer",disableElementRegistration:!0})],ea);
_.T(ea,"yt-contact-section-renderer",function(){if(QHO===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-contact-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_contact_section_renderer.yt.contact.section.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-contact-section-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-contact-section-renderer">\n</yt-formatted-string>\n<div id="contents" role="listbox" class="style-scope yt-contact-section-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;TcZ===void 0&&(TcZ=document.createElement("template"));var c=TcZ;K.call(H,c.content.cloneNode(!0),d.content.firstChild);QHO=d}d=QHO;return d},{mode:2});var kB=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return d};
_.m(kB,_.B);_.G=kB.prototype;_.G.configureRendererStamper=function(){return{"data.fields":{id:"fields",mapping:{textInputFormFieldRenderer:{component:"yt-text-input-form-field-renderer",params:{required:!0},properties:{hideLabel:"[[data.hideLabels]]"}},toggleFormFieldRenderer:{component:"yt-toggle-form-field-renderer"},optionsRenderer:"yt-options-renderer",contactSectionRenderer:"yt-contact-section-renderer"}}}};
_.G.onYtRefreshFormCommand=function(d){var H;(d=_.M((H=_.M(d,_.bqS))==null?void 0:H.formRenderer,zKG))&&this.set("data",d)};
_.G.reset=function(){var d=_.Gn(this.hostElement).querySelector("#fields").children;d=_.q(d);for(var H=d.next();!H.done;H=d.next())H=H.value,H.reset&&H.reset()};
_.G.getForm=function(){var d={},H=_.Gn(this.hostElement).querySelector("#fields").children;H=_.q(H);for(var K=H.next();!K.done;K=H.next()){K=K.value;if(!K.validate())return null;d[K.data.key]=K.value}return d};
_.G.submitFormFields=function(){if(this.fields)for(var d=_.q(this.fields),H=d.next();!H.done;H=d.next())H=H.value,H.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?H.save():H.nodeName==="YT-OPTIONS-RENDERER"&&H.save()};
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],kB.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],kB.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],kB.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],kB.prototype,"data",void 0);_.t([_.UI("#fields > *"),_.O("design:type",Array)],kB.prototype,"fields",void 0);
_.t([_.ZV({is:"yt-form-renderer",disableElementRegistration:!0})],kB);
_.T(kB,"yt-form-renderer",function(){if(ZlZ===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.forms.yt_form_renderer.yt.form.renderer.css.js--\x3e<div id="fields" class="style-scope yt-form-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;F5Z===void 0&&(F5Z=document.createElement("template"));var c=F5Z;K.call(H,c.content.cloneNode(!0),d.content.firstChild);ZlZ=d}d=ZlZ;return d},{mode:2});var Emg;var xB=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return d};
_.m(xB,_.B);xB.prototype.onCheckboxChange=function(d){this.data&&(d=(this.checked=_.v5(d).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.Kj().resolve(_.cb).resolveCommand(d,{form:{element:this.hostElement}})};
xB.prototype.handleUpdateCheckboxCommand=function(d){(d=_.M(d,_.qRA))&&this.data&&this.data.id===d.id&&(this.set("data.disabled",d.disabled),this.set("data.title",d.title))};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],xB.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],xB.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],xB.prototype,"checked",void 0);_.t([_.Z({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],xB);
_.T(xB,"ytd-settings-checkbox-renderer",function(){if(Emg!==void 0)return Emg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-checkbox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-option" class="style-scope ytd-settings-checkbox-renderer">\n  <tp-yt-paper-checkbox id="checkbox" aria-label$="[[getSimpleString(data.title)]]" checked="[[data.enabled]]" disabled="[[data.disabled]]" on-change="onCheckboxChange" class="style-scope ytd-settings-checkbox-renderer">\n    <div id="checkbox-container" class="style-scope ytd-settings-checkbox-renderer"></div>\n    <div id="checkbox-label" class="style-scope ytd-settings-checkbox-renderer">\n      <yt-formatted-string id="label" split-lines="" text="[[data.title]]" class="style-scope ytd-settings-checkbox-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-checkbox>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-checkbox-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-checkbox-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Emg=d},{mode:1});var ytO;var nC=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return d};
_.m(nC,_.B);nC.prototype.dataChanged=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1)return d.radio.removeAttribute("checked"),!d.data||!d.data.id||d.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.wkt()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(H=d.data&&d.data.id)?K.yield(uqt(d.data.id),4):K.jumpTo(3):(d.set("data.hidden",!0),K.jumpTo(0));K.nextAddress!=3&&(H=K.yieldResult);H&&_.oF(d.hostElement,"yt-select-settings-radio-option",[d.data.id]);_.VE(K)})};
nC.prototype.onButtonChanged=function(d){_.v5(d).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.Kj().resolve(_.cb).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.oF(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
nC.prototype.onSelectOption=function(d){this.data&&this.data.id&&(this.data.id===d?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
nC.prototype.dataChanged=nC.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],nC.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],nC.prototype,"ytActionHandlerBehavior",void 0);_.t([_.VP("#radio"),_.O("design:type",Object)],nC.prototype,"radio",void 0);_.t([_.r(),_.O("design:type",Object)],nC.prototype,"data",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],nC.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],nC);
_.T(nC,"ytd-settings-radio-option-renderer",function(){if(ytO!==void 0)return ytO;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="start" class="style-scope ytd-settings-radio-option-renderer">\n  <tp-yt-paper-radio-button id="radio" aria-label$="[[getSimpleString(data.title)]]" hidden="[[data.hidden]]" on-change="onButtonChanged" class="style-scope ytd-settings-radio-option-renderer">\n    <div id="label" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.title)]]</div>\n  </tp-yt-paper-radio-button>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-radio-option-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="3" position="top" class="style-scope ytd-settings-radio-option-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n<div id="end" class="style-scope ytd-settings-radio-option-renderer">\n  <div id="aside-text" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.asideText)]]</div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ytO=d},{mode:1});var blv;var CC=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return d};
_.m(CC,_.B);
CC.prototype.configureRendererStamper=function(){return{"data.connectButton":{id:"connect-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",accountLinkButtonRenderer:"ytd-account-link-button-renderer",accountLinkButtonViewModel:{component:"account-link-button-view-model",params:{setMinWidth:!0}}}},"data.disconnectButton":{id:"disconnect-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",accountLinkButtonRenderer:"ytd-account-link-button-renderer"}}}};
CC.prototype.handleUpdateTextCommand=function(d){(d=_.M(d,_.akA))&&this.data&&this.data.id===d.id&&this.set("data",d)};
CC.prototype.handleUpdateConnectedAppRendererCommand=function(d){if(_.M(d,_.kQ3)&&this.data){var H,K;if(d=(H=_.M(d,_.kQ3))==null?void 0:(K=H.newConnectedAppRenderer)==null?void 0:K.connectedAppRenderer)this.data=d}};
CC.prototype.computeConnectedAppStyle=function(d){return d.style?d.style.toLowerCase().replace(/_/g,"-"):""};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],CC.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],CC.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],CC.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.O("design:type",String)],CC.prototype,"connectedAppStyle",void 0);_.t([_.Z({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],CC);
_.T(CC,"ytd-connected-app-renderer",function(){if(blv!==void 0)return blv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-connected-app-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-connected-app-renderer"></yt-img-shadow>\n<div id="app" class="style-scope ytd-connected-app-renderer">\n  <div id="app-info" class="style-scope ytd-connected-app-renderer">\n    <div id="title" class="style-scope ytd-connected-app-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-formatted-string id="text" force-default-style="" split-lines="" text="[[data.text]]" class="style-scope ytd-connected-app-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-row" class="style-scope ytd-connected-app-renderer">\n    <div id="button-container" hidden="[[!data.connectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="connect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n    <div id="button-container" hidden="[[!data.disconnectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="disconnect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return blv=d},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.I4("iuT5Oc");

_.rk();
}catch(e){_._DumpException(e)}
try{
_.I4("L3n37");
var nGr=function(d){return d.watch.isLearningJourneyActive},CtB=_.l8(115994),RLc=_.l8(115993),V7r=function(d,H,K){var c=this;
var p=K.dragDownAction;this.layer=0;this.JSC$23038_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return c.dragDownAction()}}}};
this.JSC$23038_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return c.dragDownAction()}}}};
this.fullscreen=!1;var g=_.hR();_.kR(g,CtB,this.layer);_.kR(g,RLc,this.layer);this.dragDownAction=function(){p();_.EQ(g,{visualElement:c.fullscreen?CtB:RLc})};
this.gesture=new _.lb(d,H,this.JSC$23038_watchConfig,"pandown");this.attach()};
V7r.prototype.attach=function(){this.gesture.attach()};
V7r.prototype.detach=function(){this.gesture.detach()};
V7r.prototype.update=function(d){this.fullscreen=d;this.gesture.config=d?this.JSC$23038_watchFullScreenConfig:this.JSC$23038_watchConfig};var UlK=function(d){_.xH.call(this);var H=this;this.rootElement=d;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return H.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(K){H.initOrDisposeActiveModules(K)}));
this.onAttached()};
_.m(UlK,_.xH);_.G=UlK.prototype;_.G.getRoot=function(){return this.rootElement};
_.G.getElement=function(d){return this.rootElement.getElement(d)};
_.G.setPlayerResponse=function(d){this.playerResponse=d;this.publish("PLAYER_RESPONSE_UPDATED",d)};
_.G.getPlayerResponse=function(){return this.playerResponse};
_.G.setWatchNextResponse=function(d){this.watchNextResponse===d?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=d,this.publish("WATCH_NEXT_RESPONSE_UPDATED",d))};
_.G.getWatchNextResponse=function(){return this.watchNextResponse};
_.G.registerActionHandler=function(d,H){var K=this;if(_.h("web_watch_controller_reg_multiple_handlers_killswitch")){var c={};_.Ne(_.bw.getInstance(),(c[d]=H,c),this.getRoot())}else this.actionHandlers.has(d)||(this.actionHandlers.set(d,[]),c={},_.Ne(_.bw.getInstance(),(c[d]=function(){var p=_.sH.apply(0,arguments);return(K.actionHandlers.get(d)||[]).map(function(g){return g.apply(null,_.ru(p))})},c),this.getRoot())),this.actionHandlers.get(d).push(H)};
_.G.unregisterActionHandler=function(d){if(_.h("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.Dz(_.bw.getInstance(),(H[d]=!0,H),this.getRoot())}else(H=this.actionHandlers.get(d))?(H.pop(),H.length===0&&(H={},_.Dz(_.bw.getInstance(),(H[d]=!0,H),this.getRoot()),this.actionHandlers.delete(d))):_.Jf(new _.m1("Attempted to unregister an action handler which is not registered.",d))};
_.G.addPageDisposeJob=function(d){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Lil(this.rootElement.pageDisposeJobs,d)};
_.G.removePageDisposeJob=function(d){this.rootElement.pageDisposeJobs&&_.Q4(this.rootElement.pageDisposeJobs,d)};
_.G.dispatchEvent=function(d,H){_.GT(this.rootElement,d,H)};
_.G.provideRenderingData=function(d,H){this.rootElement.provideRenderingData(d,H)};
_.G.scrollWatchTo=function(d,H){var K;(K=this.watchScrollManager)==null||K.scrollWatchTo(d,H)};
_.G.focusOnPlayer=function(){var d=this.getElement("PLAYER");_.vV(d,function(){if(d&&d.firstElementChild){var H=d.querySelector(".html5-video-player");H&&(_.p_(_.Kj().resolve(_.uV)),H.focus())}else _.Jf(Error("Go"))})};
_.G.updateCinematicFullscreenConfig=function(){var d=!!this.rootElement.theater,H=!!this.rootElement.fullscreen,K;(K=this.watchCinematicManager)==null||_.J8(K,H,d)};
_.G.subscribeToActiveChanged=function(d,H){H=H===void 0?!0:H;var K=_.LU(_.dn(),nGr,function(c){d(c)});
H&&d(nGr(_.dn().getState()));return K};
_.G.isActive=function(){return nGr(_.dn().getState())};
_.G.onAttached=function(){var d=_.h("external_fullscreen");_.h("use_unified_flag_accessor")&&(d=_.Kj().resolve(_.kCg).retriever.getFlag(_.fBS));(d||_.Qx("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.G.initPersistentModules=function(){if(_.h("kevlar_watch_flexy_theater_manager")){var d=new _.PjE(this);_.q_(this,d)}d=new _.lYa(this);_.q_(this,d);d=new _.WS(this);_.q_(this,d);d=new _.G9H(this);_.q_(this,d);d=new _.YSC(this);_.q_(this,d);d=new _.zk(this);_.q_(this,d);_.h("kevlar_watch_flexy_playlist_manager")&&(d=new _.E2E(this),_.q_(this,d))};
_.G.initOrDisposeActiveModules=function(d){d?(this.watchScrollManager=new _.Tk(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.umc(this)),this.activeModules.push(new _.WcS(this)),this.activeModules.push(new _.Amc(this)),this.activeModules.push(new _.UMH(this)),_.h("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.J_O(this)),this.activeModules.push(new _.XEC(this)),_.h("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.v2K(this)),
_.h("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.Ol_(this)),_.h("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Nc_(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.h("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Z6B(this)),_.h("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.qSH(this)),d=_.h("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.h("kevlar_watch_flexy_comments_manager")&&!d&&this.activeModules.push(new _.cmC(this)),_.h("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.BS(this)),this.activeModules.push(new _.JtB(this)),this.activeModules.push(new _.rm_(this)),_.h("web_enable_timely_actions")&&this.activeModules.push(new _.TcL(this)),_.h("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.ilL(this)),_.h("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.j4e(this)),
_.h("web_fullscreen_components")&&this.activeModules.push(new _.TkH(this)),_.h("web_player_rtr_ctrls")&&this.activeModules.push(new _.om_(this))):(_.ju(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.G.disposeInternal=function(){_.xH.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.H3.Object.defineProperties(UlK.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var hLe={},Lwe=["learning-journey-engagement-panel","PAlearning_chat"];
hLe.YtdLearningJourneyWatchBehavior=[_.b.YtRendererBehavior,_.jk.YtPlayerListenerBehavior,_.om.YtRendererstamperBehavior,_.Uq.YtActionHandlerBehavior,_.JM.YtPageBehavior,_.VV.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},
limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},
externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Qx("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.h("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.Qx("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},jsPanelHeight_:{type:Boolean,value:function(){return _.h("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.h("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.iT("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.iT("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.h("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.h("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_rounded_player_large")||_.h("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.h("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.h("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.jr(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.jr(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var d=this;this.watchController=void 0;this.pageDisposeJobs=[function(){d.showMetadataPlaceholder_()},
function(){_.h("web_watch_dont_clear_comments")||d.clearComments_()},
function(){d.clearPlayerAds_()},
function(){d.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.h("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.h("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.Ep_(function(){return _.$6(d)},this.hostElement);
this.pageDisposeJobs.push(function(){d.youThereManager_.reset()});
_.h("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){d.resetFullerscreenEduButtonForNewPlayback_()}));
_.h("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.oh;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",
this.onAdStateChange_);this.playerEvents_.set("onStateChange",this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;_.h("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.h("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]="setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.h("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.xf(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(d){d&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:d}),d.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(d){_.h("kevlar_watch_flexy_theater_manager")&&(this.theater=d,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.h("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(d){!_.h("kevlar_watch_while_v2")&&!_.h("web_watch_pip")||d||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(d){this.active!==void 0&&(this.fullscreen=d,_.h("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(d){this.active!==void 0&&(_.GT(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.h("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(d>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(d){this.initCsi_();this.updatePageData_(d)},
updatePageData_:function(d){var H=this;if(d)if(this.data===d){this.onPageLoadWithSameData_();var K;(K=this.watchController)==null||K.setWatchNextResponse(this.data)}else this.data=d;this.playlist&&_.Xw({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Fw("nw");this.loading=!1;_.mf(_.Xp,function(){H.initDclkstatus_();var c,p=((c=H.player)==null?void 0:c.getVideoData().cpn)||"";_.rXK(function(g,a){_.Z5Z(g,a,p)})})},
onPageLoadWithSameData_:function(){_.h("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var d=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!d);this.set("loadingData.playlistLoading",d&&d!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),d=this.watchNextSkeletonEl_.firstElementChild;d;)d.classList.remove("hidden"),d=d.nextElementSibling;var H,K,c;d=(H=this.loadingData)==null?void 0:(K=H.endpoint)==null?void 0:(c=K.watchEndpoint)==null?void 0:c.videoId;var p;d&&(p="https://i.ytimg.com/vi/"+d+"/frame0.jpg");_.Gn(this.hostElement).querySelector("#player").style.backgroundImage=p?"url("+p+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var d=_.Gn(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&d&&(d.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var H,K;(K=(H=this.watchMetadata).updateSentimentBarWidth)==
null||K.call(H);var c,p;(p=(c=this.watchMetadata).resize)==null||p.call(c)}_.Gn(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(d){var H=_.Gn(this.hostElement).querySelector(d);H?_.gV(H,!1):_.Jf(new _.m1("Overscroll monitor not found for component: ",d))},
removeSplitScrollMouseTrap:function(d){var H=_.Gn(this.hostElement).querySelector(d);H?_.i5(H):_.Jf(new _.m1("Disposal component for  overscroll monitoring not found: ",d))},
onLoadingChanged_:function(d){d?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(d){var H=this;d?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Xp.addLowPriorityJob(function(){H.onWindowResized_(_.wn(!0))})},
updateTheaterModeState_:function(d){if(!_.h("kevlar_watch_flexy_theater_manager")){d=d||this.fullWindowMode_;if(this.theater!==void 0||d)this.theater=d;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();d&&_.BAE()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var d=this.theater;_.h("external_fullscreen")&&this.fullscreen&&(d=!0);d=d?_.Gn(this.hostElement).querySelector("#player-full-bleed-container"):_.Gn(this.hostElement).querySelector("#player-container-inner");var H=this.getPlayerContainer(),K=_.h("kevlar_watch_while_v2")||_.h("web_watch_pip");H.parentElement!==d&&(K&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.$6(this).appendTo(d,H),d.appendChild(_.Gn(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var d=this;return _.l(function(H){if(H.nextAddress==1)return H.yield(_.Kj().resolve(_.Fb).deactivate(),2);d.updatePlayerLocation();_.VE(H)})},
updateCinematicsLocation:function(){var d=this.getElement("CINEMATICS");if(d){var H=this.getCinematicsLocationContainer();d.parentElement!==H&&H.appendChild(d);var K;(K=this.watchController)==null||K.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Gn(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Gn(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(d,H){var K=document.documentElement.hasAttribute("dark"),c=K&&_.h("web_cinematic_theater_mode"),p=K&&_.h("web_cinematic_fullscreen");K=!K&&this.cinematicLightTheme;return d&&c||H&&p||(H||d)&&K},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var d;(d=this.watchController)==null||d.setWatchNextResponse(this.data);_.h("kevlar_watch_flexy_comments_manager")||this.initComments_();_.h("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.Kj().resolve(_.tJ).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.h("web_watch_start_chat_in_theater_mode")){var H,
K,c;if((H=this.data)==null?0:(K=H.contents)==null?0:(c=K.twoColumnWatchNextResults)==null?0:c.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var p,g;((p=this.data)==null?0:(g=p.contents)==null?0:g.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(d){var H;(H=this.watchController)==null||H.setPlayerResponse(this.playerData);d&&d.playabilityStatus&&(H=this.isVideoPlayable_(d.playabilityStatus,this.getPlayerOverlays_(this.data)),d=this.isLiveStreamOffline_(d.playabilityStatus),H&&!d||_.vV(this,function(){_.Fw("pbu")}));
this.setPlayerAds_();_.qo(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(d){_.dn().dispatch(_.iZ({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));d?this.activate_():this.deactivate_()},
attached:function(){var d=this;this.watchController=new UlK(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.h("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var H=_.$6(this);_.h("kevlar_disable_prepare_player")||H.preparePlayer();_.h("kevlar_watch_flexy_playlist_manager")||_.Kj().resolve(_.tJ).setPlayer(H);this.updatePageMediaQueries();H={"--ytd-watch-flexy-scrollbar-width":_.DN()+
"px"};!_.iT("kv_pl_mx_sz_ks")&&_.iT("kevlar_watch_max_player_width")&&(H["--ytd-watch-flexy-max-player-width-wide-screen"]=_.lwe+"px");_.iT("kevlar_watch_flexy_metadata_height")&&(H["--ytd-watch-flexy-space-below-player"]=_.e_H+"px");this.safeUpdateStyles(H);_.h("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new V7r(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return d.onPlayerTouchPanDown_()}}));
_.h("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Gn(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var d=_.DN(),H=_.TB+d,K=H;this.fixedPanels&&(H+=_.awr);var c=657+d;d=1327+d;_.Gn(this.hostElement).querySelector("#two-column-query").query="(min-width: "+H+"px)";_.Gn(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(c+"px), (min-height: 630px) and (min-width: ")+(H+"px) and (max-width: ")+(d+"px)");_.Gn(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(d+"px)");
_.Gn(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+K+"px)"},
calculateCurrentPlayerSize_:function(){var d=_.Gn(this.hostElement).querySelector("#miniplayer-bar").firstChild;return d&&d.active||this.theater||_.h("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.nB(NaN,NaN):_.JXr(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.JXr(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.AA(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var d=this;this.onWindowResized_(_.wn());_.h("browse_skeleton_removal_on_watch_killswitch")||_.Qx("IS_SHELL_LOAD")&&_.mKj();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var H=_.$6(this);H.addEventListener("yt-player-updated",_.xf(this,this.onPlayerUpdated_));H.getPlayerPromise().then(function(K){d.playerApiReady_(K)});
_.h("kevlar_watch_flexy_playlist_manager")||(H=_.Kj().resolve(_.tJ),_.h("kevlar_watch_observe_playlist_navigations_killswitch")&&H.addEventListener("yt-navigate",_.xf(this,this.onYtNavigate_)),H.setPlaylistComponent(_.Gn(this.hostElement).querySelector("#playlist")),H.addEventListener("yt-playlist-data-updated",_.xf(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Xp.addLowPriorityJob(function(){_.GT(d.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.$6(this).removeEventListener("yt-player-updated",_.xf(this,this.onPlayerUpdated_));if(!_.h("kevlar_watch_flexy_playlist_manager")){var d=_.Kj().resolve(_.tJ);_.h("kevlar_watch_observe_playlist_navigations_killswitch")&&d.removeEventListener("yt-navigate",_.xf(this,this.onYtNavigate_));d.cancelVideoSkip();d.removeEventListener("yt-playlist-data-updated",_.xf(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.h("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.GT(this.hostElement,"yt-autonav-pause-player",!1);d=_.Ko();_.h("kevlar_exit_fullscreen_leaving_watch")&&d&&_.cy(d)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(d){this.player&&this.player.updateVideoData({rvs:d.rvs})},
getPageContents:function(d){return d&&d.contents&&d.contents.twoColumnWatchNextResults&&d.contents.twoColumnWatchNextResults.results&&d.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(d){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",d)},
onRetrieveLocation_:function(d,H){H.hasComments?H.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):H.locationRetrieved("/related_ajax",void 0);d.stopPropagation()},
onSubscriptionChanged_:function(d,H){this.player&&(H?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.X_("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Gn(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Gn(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(d){this.player=d;this.setPlayerState(d.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.h("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.h("kevlar_unified_player")||_.h("kevlar_player_new_bootstrap_adoption"))&&_.YE()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(d,H){H=H===void 0?!0:H;_.Ko()&&_.h("external_fullscreen")&&_.cy(document.documentElement);this.theaterRequested_=d;H&&_.Um("wide",d?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.h("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.oF(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.GT(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(d){_.sD(d,typeof this.player),this.player&&_.sD(d,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var d;((d=this.player)==null?0:d.isFullscreen())?this.player.toggleFullscreen():_.oF(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(d,H){return this.loading?H:!!Object.keys(d).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(d){if(d){d=_.q(d);for(var H=d.next();!H.done;H=d.next())H=H.value,H.youThereRenderer&&_.NfL(this.youThereManager_,H.youThereRenderer)}},
setPlaylistData_:function(d){return d||{}},
userEngagementConfigDataChanged_:function(d){if(d)if(d.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var H=this.youThereManager_;_.cd()<d.lowEngagementThresholdMs||_.j5N(H,!0)}else d.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.oF(this.hostElement,"yt-autonav-pause-user-engagement",[d])},
isPlayerUnavailable_:function(d,H,K){return!!d&&!this.isVideoPlayable_(d,K)&&!H},
getPlayerOverlays_:function(d){return(d==null?void 0:d.playerOverlays)||null},
isVideoPlayable_:function(d,H){if(!d)return!1;var K=d.status==="OK"||d.status==="LIVE_STREAM_OFFLINE",c=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",d)||this.get("errorScreen.ypcTrailerRenderer",d);d=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",d);var p;H=H==null?void 0:(p=H.playerOverlayRenderer)==null?void 0:p.gatedActionsOverlayRenderer;return!!K||!!c||!!d||!!H},
hasWatchNextResponseErrorRenderer:function(d){var H=this.getPageContents(d),K,c,p,g,a;return!(d==null?0:(K=d.contents)==null?0:(c=K.twoColumnWatchNextResults)==null?0:c.secondaryResults)&&!!((p=H[0])==null?0:(g=p.itemSectionRenderer)==null?0:(a=g.contents[0])==null?0:a.backgroundPromoRenderer)},
isLiveStreamOffline_:function(d){return d?d.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(d,H,K){var c=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",H),p=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];p=_.h("web_no_skip_video_on_verification_checks")?(d==null?void 0:d.status)&&p.includes(d.status):d&&d.status==="AGE_CHECK_REQUIRED";var g=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",d);g==void 0&&(g=!0);!K||this.isVideoPlayable_(d,this.getPlayerOverlays_(H))||
c||p||!g||_.Kj().resolve(_.tJ).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.F1H()},
onPlayerFeedbackStartRequest_:function(d){_.oF(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:d}])},
onPlayerFeedbackArticleRequest_:function(d){_.oF(this.hostElement,"yt-help-dialog-requested",[d])},
onPlayerYpcContentRequest_:function(){var d,H,K,c,p,g,a,e,k=((d=this.data)==null?NaN:(H=d.contents)==null?NaN:(K=H.twoColumnWatchNextResults)==null?NaN:(c=K.secondaryResults)==null?NaN:(p=c.secondaryResults)==null?NaN:(g=p.offerModule)==null?NaN:(a=g.tvfilmOfferModuleRenderer)==null?NaN:(e=a.actionButtons)==null?NaN:e.length)-1;d=[".offerButton.buttonRenderer.",".actionButtons."+(k>=0?k:0)+".buttonRenderer."];H=_.q(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(K=H.next();!K.done;K=H.next())for(K=K.value,c=_.q(d),p=c.next();!p.done;p=c.next())if(p="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+K+p.value,p=this.get(p+"navigationEndpoint",this.data)||this.get(p+"serviceEndpoint",this.data)||this.get(p+"command",this.data)){_.CM(p,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(d){_.GT(this.hostElement,"yt-autonav-pause-player",d)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(d){d()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(d){switch(d){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(d){switch(d){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.GT(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(d)},
setPlayerState:function(d){_.dn().dispatch(_.CNM(d))},
onPlayerSubscribe_:function(d){_.oF(this.hostElement,"yt-player-subscribe",[d])},
onPlayerUnsubscribe_:function(d){_.oF(this.hostElement,"yt-player-unsubscribe",[d])},
onPlayerAdYtShowToast_:function(d){_.oF(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:d.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(d){if(d)return d},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(d){return!_.h("web_watch_move_summary_to_sd")&&!!d},
computeWatchMetadataRefresh:function(){return _.h("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var d,H,K,c;this.watchNextSecondaryResults=(d=this.data)==null?void 0:(H=d.contents)==null?void 0:(K=H.twoColumnWatchNextResults)==null?void 0:(c=K.secondaryResults)==null?void 0:c.secondaryResults}},
setRichGridRendererData:function(d){this.richGridRendererData=d},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var d,H=(d=this.data)==null?void 0:d.engagementPanels;if(H==null?0:H.length){d=null;H=_.q(H);for(var K=H.next();!K.done;K=H.next()){K=K.value;var c=void 0;if(((c=K.engagementPanelSectionListRenderer)==null?void 0:c.targetId)==="engagement-panel-structured-description"){d=K;break}}var p,g,a;d=(p=d)==null?void 0:(g=p.engagementPanelSectionListRenderer)==null?void 0:(a=g.content)==null?void 0:a.structuredDescriptionContentRenderer;if(d==null?0:d.items){p=
[];g=_.q(d.items);for(a=g.next();!a.done;a=g.next()){a=a.value;if(!_.h("sd_horizontal_list_show_nav_killswitch")){var e=c=K=H=d=void 0,k=void 0,C=(d=a.horizontalCardListRenderer)==null?void 0:(H=d.header)==null?void 0:(K=H.richListHeaderRenderer)==null?void 0:(c=K.navigationButton)==null?void 0:(e=c.buttonRenderer)==null?void 0:(k=e.command)==null?void 0:k.commandExecutorCommand;C&&C.commands&&(C.commands=C.commands.filter(function(R){return!_.M(R,_.uOO)}))}a.expandableVideoDescriptionBodyRenderer||
a.videoDescriptionHeaderRenderer||p.push(a)}return{items:p}}}},
constructWarning_:function(d){return{text:_.AF(d),type:"WARNING"}},
isPlaShelfEnabled_:function(d){if((this.get("adPlacements",d)||[]).length)return!0;d=this.get("playerAds",d)||[];return!(!d.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",d[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var d=this;_.GT(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var H=this.getScrollTop()>0;this.gestures_&&(H?this.gestures_.detach():this.gestures_.attach());H!==this.showFullerscreenEdu_&&_.h("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=H,_.$6(this).getPlayerPromise().then(function(K){K.updateFullerscreenEduButtonVisibility(d.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.GT(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var d=this;this.commentsReady=!1;_.Xp.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.mf(_.Xp,function(){d.setComments_()},1E3)},
setComments_:function(){if(!_.h("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Fw("cmi");_.Xp.cancelJob(this.setCommentsJobId_);var d=this.getPageContents(this.data);if(d&&d.length){d=_.q(d);for(var H=d.next();!H.done;H=d.next())if(H=H.value,this.get("itemSectionRenderer.sectionIdentifier",H)==="comment-item-section"){this.comments=H.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.GT(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.h("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.h("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Fw("cmc")},
doRemoveComments_:function(){this.comments={};_.h("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Xp.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Xp.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(d,H){var K=_.M(H.endpoint,_.AP);K&&(!(H=this.get("data.currentVideoEndpoint.watchEndpoint"))||K.videoId!==H.videoId||K.playlistId&&K.playlistId!==H.playlistId||K.index!==void 0&&K.index!==H.index||typeof K.startTimeSeconds!=="number"||(d.stopPropagation(),this.setScrollTop(0),_.$6(this).getPlayerPromise().then(function(c){var p=K.startTimeSeconds;c.seekTo(p);c.wakeUpControls();p<c.getDuration()&&c.playVideo()})))},
updatePlayerStartTime_:function(){var d=_.UQN();"t"in d&&(d=_.s5E(d.t),this.player.seekTo(d,!0))},
updateTitleFromWatchNext:function(d){d=this.getPageContents(d);var H,K;(d=_.jG(d==null?void 0:(H=d[0])==null?void 0:(K=H.videoPrimaryInfoRenderer)==null?void 0:K.title))&&_.GT(this.hostElement,"yt-update-title",d)},
updateTitle_:function(d){d=this.get("videoDetails.title",d)||"";_.GT(this.hostElement,"yt-update-title",d)},
syncWithRemoteVideo_:function(d,H,K){if(this.active&&this.player){var c=this.player.getVideoData();if(c.video_id===K&&(K=c.list,_.h("polymer_enable_mdx_queue")&&K&&K.startsWith("RQ")&&(K=void 0),c.video_id!==d||K!=H)){var p;_.h("kevlar_player_watch_endpoint_navigation")?p=_.AUY(_.W1L(d,H)):p=this.buildWatchEndpoint_(d,H);_.GT(this.hostElement,"yt-navigate",{endpoint:p,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(d,H,K){return _.KH(d,H,K)},
initDclkstatus_:function(){_.Xba()},
attachWatchPageSkeleton_:function(){var d=document.querySelector("#watch-page-skeleton");if(d){var H=d.querySelector("#primary-info"),K=d.querySelector("#secondary-info"),c=d.querySelector("#related");H&&_.Gn(this.hostElement).querySelector("#info-skeleton").appendChild(H);K&&_.Gn(this.hostElement).querySelector("#meta-skeleton").appendChild(K);c&&(_.Gn(this.hostElement).querySelector("#related-skeleton").appendChild(c),this.watchNextSkeletonEl_=c);_.nA(d)}},
handlePlayerUpdated_:function(){_.$6(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(d,H){if(this.watchNextSkeletonEl_&&typeof H!=="undefined"){var K=this.watchNextSkeletonEl_.children,c=d&&d.indexSplices.length?d.indexSplices[0].index:0;d=Math.min(this.watchNextShownItems.length,K.length);H||(c=0,d=K.length);for(H=c;H<d;H++)K[H].classList.add("hidden")}},
onPlayerFullscreenChange_:function(d){_.h("external_fullscreen")||_.oF(this.hostElement,"yt-player-fullscreen",[d.fullscreen])},
onFullscreenChange_:function(d){this.fullscreen=d;this.gestures_&&this.gestures_.update(this.fullscreen);var H=_.$6(this);H.getPlayerPromise().then(function(K){K.setFauxFullscreen(!!_.Ko())});
this.updateFullBleedElementLocations();d&&(H.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(d,H){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!H},
computeIsDonationShelfCollapsed_:function(d){return d},
computeShouldShowMerchShelf:function(d,H){return H&&!!d},
computeResponseHasComments:function(d){var H,K,c,p,g;return!!(d==null?0:(H=d.contents)==null?0:(K=H.twoColumnWatchNextResults)==null?0:(c=K.results)==null?0:(p=c.results)==null?0:(g=p.contents)==null?0:g.some(function(a){var e;return(a==null?void 0:(e=a.itemSectionRenderer)==null?void 0:e.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(d,H){this.responseHasComments=this.computeResponseHasComments(this.data);return!!d&&!!Object.keys(d).length&&!H},
identity:_.JC,onWindowResized_:function(d){this.windowSize_=d;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.h("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(d){var H=this;d&&d.type!=="dataloaded"&&d.type!=="dataupdated"||_.$6(this).getPlayerPromise().then(function(K){var c=K.getPlayerState();c!==5&&c!==0&&(K=1/K.getVideoAspectRatio(),H.videoHeightToWidthRatio_!==K&&(H.videoHeightToWidthRatio_=K))})},
schedulePlayerSizeUpdate_:function(d){var H=this,K=_.h("kevlar_watch_while_v2")||_.h("web_watch_pip"),c=function(){if(H.watchMetadata){var p,g;(g=(p=H.watchMetadata).resize)==null||g.call(p)}_.$6(H).getPlayerPromise().then(function(a){if(_.h("kevlar_set_internal_player_size")){if(!K||!H.isMiniplayerActive()){var e=H.calculateCurrentPlayerSize_();a.setInternalSize(e.width,e.height)}}else a.setSize(NaN,NaN);_.h("kevlar_watch_while")&&H.updateWatchWhileScrollThreshold_()})};
d?c():_.mR(_.Xp,c)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(d){this.set("data.survey",d.detail)},
onYtShowSurveyCommand_:function(d){this.set("data.survey",_.M(d,_.Sm_).survey)},
onDownloadedVideoDeleted:function(d){var H=this,K,c;return _.l(function(p){if(p.nextAddress==1){if(!H.active||(K=H.playerData)==null||!K.offlineState||H.videoId!==d)return p.return();(c=H.player)==null||c.stopVideo();_.UT().navigatingAwayFromWatchDeletedVideo=!0;_.CM(_.v7l,H.hostElement);return p.yield(_.UT().navigationFinishPromise,2)}_.UT().navigatingAwayFromWatchDeletedVideo=!1;_.VE(p)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var d;this.theater?d=_.zH(.5625*this.windowSize_.width,480,this.windowSize_.height-185):d=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==d&&(this.watchWhileScrollThreshold_=d,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var d=_.Gn(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&d){var H=this.windowSize_.height>=624,K=this.active?this.getScrollTop():0;!d.active&&H&&K>=this.watchWhileScrollThreshold_?(d.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):d.active&&(!H||K<this.watchWhileScrollThreshold_&&!_.Ko())&&(d.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(d,H){if(d!==!0||H!==void 0){d=!_.h("live_chat_over_engagement_panels");H=_.Gn(this.hostElement).querySelector("#chat-container");var K=_.Gn(this.hostElement).querySelector("#plj-sidebar"),c=_.Gn(this.hostElement).querySelector("#panels"),p=_.Gn(this.hostElement).querySelector("#plj-panels"),g=_.Gn(this.hostElement).querySelector("#plj-playlist"),a=_.Gn(this.hostElement).querySelector("#alerts"),e=_.Gn(this.hostElement).querySelector("#playlist"),k=_.Gn(this.hostElement).querySelector("#related"),
C=_.Gn(this.hostElement).querySelector("#donation-shelf"),R=_.Gn(this.hostElement).querySelector("#comments");this.isTwoColumns_?(a=_.Gn(this.hostElement).querySelector("#secondary-inner"),a.appendChild(K),K.appendChild(g),g.appendChild(e),K.appendChild(p),d&&a.appendChild(c),_.h("web_watch_theater_chat")||a.appendChild(H),d||a.appendChild(c),a.appendChild(C),a.appendChild(k)):(d&&_.Ip(c,a),_.Ip(e,a),_.h("web_watch_theater_chat")||_.Ip(H,a),d||_.Ip(c,a),_.Ip(C,a),R&&(p&&_.Ip(p,R),_.Ip(k,R)));_.h("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.h("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.h("web_watch_theater_chat")){var d=_.Gn(this.hostElement).querySelector("#chat-container"),H=this.theater&&!this.fullscreen||_.h("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&H?_.h("web_watch_theater_chat_beside_player")?(H=_.Gn(this.hostElement).querySelector("#panels-full-bleed-container"),(d==null?void 0:d.parentElement)!==H&&H.append(d),this.panelsBesidePlayer=!0):_.h("web_watch_theater_fixed_chat")&&
(H=_.Gn(this.hostElement).querySelector("#columns"),(d==null?void 0:d.parentElement)!==H&&H.append(d),this.fixedPanels=!0):(_.h("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.h("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),H=_.Gn(this.hostElement).querySelector("#playlist"),d&&H?_.rv(d,H):_.Jf(new _.m1("Missing element when updating chat location",{"chatContainer defined":!!d,"playlist defined":!!H})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(d,H){return _.h("sw_metadata_vis_toggle_ks")?!0:!!d||!!H},
computeForceDarkPanelTheme:function(d){return _.h("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&d:!1},
safeUpdateStyles:function(d){try{_.eO(this.hostElement,d)}catch(H){_.Jf(H)}},
videoHeightToWidthRatioChanged_:function(d,H){H&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.h("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(d){this.videoHeightToWidthRatio_=1/d},
computeIsVerticalVideo_:function(d){return d>=1},
computeIsFourThreeToSixteenNineVideo_:function(d){return d<=.7501&&d>=.5624},
computeIsExtraWideVideo_:function(d){return d<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.$6(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.$6(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.vpB(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(d){var H=_.xC(d)||0;_.kC(d,H+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var d=_.xC("yt-fullerscreen-edu-button-click-count")||0,H=_.xC("yt-fullerscreen-edu-button-shown-count")||0,K=_.iT("external_fullscreen_button_shown_threshold"),c=d>=_.iT("external_fullscreen_button_click_threshold")||H>=K;_.$6(this).getPlayerPromise().then(function(p){p.updateFullerscreenEduButtonSubtleModeState(c)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(d,H){return H},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.Kj().resolve(_.tJ).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var d=this;this.panelMaxHeightUpdateJob_&&_.Xp.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.Xp.addLowPriorityJob(function(){d.panelMaxHeightUpdateJob_=0;var H;!d.isTwoColumns_||d.theater||d.fullscreen?H=460:H=d.calculateNormalPlayerSize_().height;var K=H+"px";_.h("live_chat_taller_height")&&!d.theater&&(K="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.h("live_chat_medium_height")&&
!d.theater&&(K="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.h("live_chat_scaled_height")&&!d.theater&&(K="calc(100vh - var(--ytd-toolbar-height) - 238px)");d.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":H+"px","--ytd-watch-flexy-chat-max-height":K,"--ytd-watch-flexy-structured-description-max-height":H+"px","--ytd-watch-flexy-comments-panel-max-height":H+"px","--ytd-comments-engagement-panel-content-height":H+"px"})})},
onYtShowEngagementPanelScrimAction_:function(d){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",d)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.l5(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(d){var H=_.Gn(this.hostElement).querySelector("#engagement-panel-scrim");d?H.addEventListener("tap",_.xf(this,this.onEngagementPanelScrimClick_)):H.removeEventListener("tap",_.xf(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(d){if(this.hostElement.contains(d)&&!this.scrollToAnimation_.isAnimating()){var H=d.offsetTop-24;d=d.offsetTop+d.offsetHeight+24;var K=this.getPageScrollingElement(),c=this.getScrollTop(),p=c+K.clientHeight-56;if(H<c+56)H-=56;else if(d>p)H=d-K.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,H),500)}},
onYtSignalActionScrollToComments:function(){var d=this.hostElement.querySelector("#comments");if(d&&!this.scrollToAnimation_.isAnimating()){d=d.offsetTop-56-24;if(_.h("kevlar_comment_teaser_scroll_to_midpoint")&&(d-=_.CB().height/3,d<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,d),500)}},
onYtEngagementPanelVisibleChanged:function(d,H,K){this.active&&this.trackEngagementPanelVisibility&&!_.YmK.includes(K)&&(H==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(K),H!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&H!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(K),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(d){return d?"":"watch-active-metadata"},
computeNewMetadataClass:function(d){return d?"watch-active-metadata":""},
computeFullBleedPlayer:function(d,H){return d||H},
computeDefaultLayout:function(d){return!d},
computeDefaultTwoColumnLayout:function(d,H){return!d&&H},
computeWatchWhilePanelsActive:function(d,H){return d||H},
computeNoBorderOnChat:function(d){return _.h("web_watch_theater_chat_no_border")&&d},
computeLiveChatPresentAndExpanded:function(d,H){return d&&!H},
computePanelExpanded:function(d,H,K){return d||H||K},
onChangeMarkersVisibility:function(d){_.$6(this).getPlayerPromise().then(function(H){var K;(K=H.changeMarkerVisibility)==null||K.call(H,_.M(d,_.SB).isVisible||!1,_.M(d,_.SB).entityKeys||[],_.M(d,_.SB).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(d){this.liveChatCollapsed=d.detail;_.dn().dispatch(_.tbe(d.detail))},
provideRenderingData:function(d,H){switch(d){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=H;break;case "PRIMARY_INFO":_.h("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=H);this.videoPrimaryInfoRendererValue=H==null?void 0:H.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.h("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=H);this.videoSecondaryInfoRendererValue=H==null?void 0:H.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
H;break;case "CLARIFICATION":this.clarifyBoxValue=H;break;case "LIVE_CHAT":this.conversationBar=H;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=H;break;case "PLAYLIST":this.externalPlaylistData_=H!=null?H:{};break;case "MERCH_SHELF":this.merchShelfValue=H==null?void 0:H.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=H;break;case "OFFER_MODULE":this.offerModule=H;break;case "LIMITED_STATE":this.limitedStateValue=H;break;case "DONATION_SHELF":this.donation=H;break;
case "ALERTS":this.alertsValue=H;break;case "COMMENTS":this.comments=H;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=H;break;case "ENGAGEMENT_PANELS":this.engagementPanels=H;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=H;break;case "RICH_GRID_RENDERER":this.richGridRendererData=H;break;case "EXPANDABLE_METADATA":this.expandableMetadata=H;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=H}},
toggleCinematicsActive:function(d){this.cinematicsActive=d},
isMiniplayerActive:function(){return _.Kj().resolve(_.Fb).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(d){return Lwe.map(function(H){return d.find(function(K){var c;return(K==null?void 0:(c=K.engagementPanelSectionListRenderer)==null?void 0:c.targetId)===H})}).filter(function(H){return H!==void 0})},
getNonLearningJourneyEngagementPanels:function(d){return d.filter(function(H){var K;return!Lwe.includes((H==null?void 0:(K=H.engagementPanelSectionListRenderer)==null?void 0:K.targetId)||"")})}}];var M7c;var vS=function(){var d=_.B.apply(this,arguments)||this;d.flexy=!0;d.learningJourney=!0;d.roundedInfoPanel=!0;d.viewTransitionEnabled=_.h("enable_player_resize_transition");d.smallerChatMinHeight=_.h("live_chat_smaller_min_height");d.cinematicTheaterMode=_.h("web_cinematic_theater_mode");d.transparentTheaterMode=_.h("web_transparent_theater_mode");d.cinematicFullscreen=_.h("web_cinematic_fullscreen");d.useLargerMaxPlayerValue=_.h("kevlar_flexy_use_larger_player_value");d.cinematicFullscreenV2=_.h("web_cinematic_fullscreen_v2");
d.isDarkTheme=document.documentElement.hasAttribute("dark");d.theaterLargerPlayer=_.h("web_watch_theater_larger_player");d.defaultCollapsePlaylist=_.h("web_watch_default_collapse_playlist");d.enableCanvasLayout=_.h("web_enable_canvas_on_learning_journey");return d};
_.m(vS,_.B);_.G=vS.prototype;_.G.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.G.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.G.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.G.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.G.ready=function(){var d=this,H=function(){d.onColumnScroll()};
this.primary.addEventListener("scroll",H);this.secondary.addEventListener("scroll",H)};
_.G.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.G.updateIsTwoColumnsFromBinding=function(d){_.h("web_watch_update_narrow_width_killswitch")||_.dn().dispatch(_.hjc(!d.detail.value));this.ytdWatchBehavior.isTwoColumns_=d.detail.value};
_.G.updateFlexySmallWindowFromBinding=function(d){this.ytdWatchBehavior.flexySmallWindow_=d.detail.value};
_.G.updateFlexyLargeWindowFromBinding=function(d){this.ytdWatchBehavior.flexyLargeWindow_=d.detail.value};
_.G.updateWatchWhileWindowSizeSufficientFromBinding=function(d){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=d.detail.value};
_.G.updateWatchNextCanShowMoreFromBinding=function(d){this.ytdWatchBehavior.watchNextCanShowMore=d.detail.value};
_.G.updateShownItemsFromBinding=function(d){d.detail.path?this.set(d.detail.path,d.detail.value):this.ytdWatchBehavior.watchNextShownItems=d.detail.value};
_.G.getElement=function(d){switch(d){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23047_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23047_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.H3.Object.defineProperties(vS.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.data)==null||!d.pageVisualEffects)return!1;for(var H=0;H<this.data.pageVisualEffects.length;H++)if(d=_.M(this.data.pageVisualEffects[H],_.WL))return H=void 0,(H=d.config)==null?void 0:H.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.learningJourneyEngagementPanels)==null?void 0:d.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var d,H=(d=this.learningJourneyEngagementPanels)==null?void 0:d.find(function(U){var L;return(U==null?void 0:(L=U.engagementPanelSectionListRenderer)==null?void 0:L.panelIdentifier)==="learning-journey-engagement-panel"});
if(H){var K,c,p,g,a,e,k,C,R;if(d=(C=((k=(a=((g=H==null?void 0:(K=H.engagementPanelSectionListRenderer)==null?void 0:(c=K.content)==null?void 0:(p=c.sectionListRenderer)==null?void 0:p.contents)!=null?g:[])[0])==null?void 0:(e=a.itemSectionRenderer)==null?void 0:e.contents)!=null?k:[])[0])==null?void 0:(R=C.accordionViewModel)==null?void 0:R.onTitleTap){var V=_.T6(d);if(V)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.nM.instance.resolveCommand(V)}}}}}}});
_.H3.Object.defineProperties(vS,{template:{configurable:!0,enumerable:!0,get:function(){if(M7c===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);M7c=d}d=M7c;return d}}});
vS.prototype.updateMiniplayerIsActiveValue=vS.prototype.updateMiniplayerIsActiveValue;vS.prototype.updateScrollTopValue=vS.prototype.updateScrollTopValue;vS.prototype.updateFullscreenValue=vS.prototype.updateFullscreenValue;vS.prototype.updateTheaterValue=vS.prototype.updateTheaterValue;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],vS.prototype,"ytComponentBehavior",void 0);
_.t([_.u(hLe.YtdLearningJourneyWatchBehavior),_.O("design:type",Object)],vS.prototype,"ytdWatchBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],vS.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],vS.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],vS.prototype,"playerData",void 0);_.t([_.r(),_.O("design:type",Object)],vS.prototype,"browseData",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],vS.prototype,"flexy",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],vS.prototype,"learningJourney",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],vS.prototype,"roundedInfoPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],vS.prototype,"viewTransitionEnabled",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],vS.prototype,"smallerChatMinHeight",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],vS.prototype,"cinematicTheaterMode",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],vS.prototype,"transparentTheaterMode",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],vS.prototype,"cinematicFullscreen",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],vS.prototype,"useLargerMaxPlayerValue",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],vS.prototype,"cinematicFullscreenV2",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],vS.prototype,"isDarkTheme",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],vS.prototype,"theaterLargerPlayer",void 0);_.t([_.r(),_.O("design:type",Object)],vS.prototype,"defaultCollapsePlaylist",void 0);_.t([_.r(),_.O("design:type",Object)],vS.prototype,"enableCanvasLayout",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("playerData","browseData","enableCanvasLayout"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],vS.prototype,"showBrowseResponse",null);_.t([_.r({reflectToAttribute:!0}),_.I("playerData","enableCanvasLayout"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],vS.prototype,"showWatchResponse",null);_.t([_.r({selector:_.sQ}),_.O("design:type",Object)],vS.prototype,"theaterValue",void 0);
_.t([_.r({selector:_.FX}),_.O("design:type",Object)],vS.prototype,"fullscreenValue",void 0);_.t([_.r({selector:_.uz}),_.O("design:type",Object)],vS.prototype,"scrollTopValue",void 0);_.t([_.r({selector:_.Fv}),_.O("design:type",Object)],vS.prototype,"miniplayerIsActiveValue",void 0);_.t([_.VP("#ytd-plj-player"),_.O("design:type",HTMLElement)],vS.prototype,"ytdPlayer",void 0);_.t([_.VP("#playlist"),_.O("design:type",HTMLElement)],vS.prototype,"JSC$23047_ytdPlaylistPanelRenderer",void 0);
_.t([_.kH("ytd-comments"),_.O("design:type",HTMLElement)],vS.prototype,"ytdComments",void 0);_.t([_.VP("#primary"),_.O("design:type",HTMLElement)],vS.prototype,"primary",void 0);_.t([_.VP("#secondary"),_.O("design:type",HTMLElement)],vS.prototype,"secondary",void 0);_.t([_.VP("#player-container"),_.O("design:type",HTMLElement)],vS.prototype,"playerContainer",void 0);_.t([_.VP("#cinematics"),_.O("design:type",HTMLElement)],vS.prototype,"JSC$23047_cinematics",void 0);
_.t([_.CK("theaterValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],vS.prototype,"updateTheaterValue",null);_.t([_.CK("fullscreenValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],vS.prototype,"updateFullscreenValue",null);_.t([_.CK("scrollTopValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],vS.prototype,"updateScrollTopValue",null);
_.t([_.CK("miniplayerIsActiveValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],vS.prototype,"updateMiniplayerIsActiveValue",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],vS.prototype,"cinematicLightTheme",null);_.t([_.r({reflectToAttribute:!0}),_.I("learningJourneyEngagementPanels"),_.O("design:type",Object),_.O("design:paramtypes",[])],vS.prototype,"hasLearningJourneyPanels",null);
_.t([_.I("learningJourneyEngagementPanels"),_.O("design:type",Object),_.O("design:paramtypes",[])],vS.prototype,"backButtonData",null);_.t([_.Z({is:"ytd-watch-learning-journey"})],vS);_.qG.registerService(_.fJl,vS);
_.rk();
}catch(e){_._DumpException(e)}
try{
_.I4("Tm0L3c");
var a7c;var l7S;var eLa=function(){return _.B.apply(this,arguments)||this};
_.m(eLa,_.B);_.t([_.Z({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],eLa);
_.T(eLa,"ytd-ghost-comments-renderer",function(){if(l7S===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-comments-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-section style-scope ytd-ghost-comments-renderer">\n  <div class="header ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="input-box ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="avatar style-scope ytd-ghost-comments-renderer">\n      <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n    </div>\n    <div class="ghost-input style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);l7S=d}d=l7S;return d},{mode:1});var k1L;var xl_=function(){return _.B.apply(this,arguments)||this};
_.m(xl_,_.B);_.t([_.Z({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],xl_);
_.T(xl_,"ytd-ghost-watch-metadata-renderer",function(){if(k1L===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-watch-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-card style-scope ytd-ghost-watch-metadata-renderer">\n  <div class="title style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="byline style-scope ytd-ghost-watch-metadata-renderer">\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n  </div>\n  <div class="description style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-3 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="owner-box style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="left style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n      <div class="text style-scope ytd-ghost-watch-metadata-renderer">\n        <div class="top style-scope ytd-ghost-watch-metadata-renderer"></div>\n        <div class="bottom style-scope ytd-ghost-watch-metadata-renderer"></div>\n      </div>\n    </div>\n    <div class="right style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    </div>\n  </div>\n  <div class="action-bar style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);k1L=d}d=k1L;return d},{mode:1});var jB=function(){var d=_.B.apply(this,arguments)||this;d.ghostGridRenderer={rows:6};d.roundedInfoPanel=!0;d.hideOfferModules=!0;d.smallerChatMinHeight=_.h("live_chat_smaller_min_height");d.cinematicTheaterMode=_.h("web_cinematic_theater_mode");d.transparentTheaterMode=_.h("web_transparent_theater_mode");d.darkerPanels=_.h("web_watch_darker_panels");d.cinematicFullscreen=_.h("web_cinematic_fullscreen");d.cinematicFullscreenV2=_.h("web_cinematic_fullscreen_v2");d.isDarkTheme=document.documentElement.hasAttribute("dark");
return d};
_.m(jB,_.B);_.G=jB.prototype;_.G.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.G.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.G.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.G.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.G.ready=function(){var d=this,H=function(){d.onColumnScroll()};
this.primary.addEventListener("scroll",H);this.secondary.addEventListener("scroll",H)};
_.G.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.G.updateIsTwoColumnsFromBinding=function(d){this.ytdWatchBehavior.isTwoColumns_=d.detail.value};
_.G.updateFlexySmallWindowFromBinding=function(d){this.ytdWatchBehavior.flexySmallWindow_=d.detail.value};
_.G.updateFlexyLargeWindowFromBinding=function(d){this.ytdWatchBehavior.flexyLargeWindow_=d.detail.value};
_.G.updateWatchWhileWindowSizeSufficientFromBinding=function(d){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=d.detail.value};
_.G.updateWatchNextCanShowMoreFromBinding=function(d){this.ytdWatchBehavior.watchNextCanShowMore=d.detail.value};
_.G.updateShownItemsFromBinding=function(d){_.h("swatcheroo_direct_use_rich_grid")||(d.detail.path?this.set(d.detail.path,d.detail.value):this.ytdWatchBehavior.watchNextShownItems=d.detail.value)};
_.G.getElement=function(d){switch(d){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23035_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23035_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.H3.Object.defineProperties(jB.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.data)==null||!d.pageVisualEffects)return!1;for(var H=0;H<this.data.pageVisualEffects.length;H++)if(d=_.M(this.data.pageVisualEffects[H],_.WL))return H=void 0,(H=d.config)==null?void 0:H.enableInLightTheme;return!1}}});
jB.prototype.updateMiniplayerIsActiveValue=jB.prototype.updateMiniplayerIsActiveValue;jB.prototype.updateScrollTopValue=jB.prototype.updateScrollTopValue;jB.prototype.updateFullscreenValue=jB.prototype.updateFullscreenValue;jB.prototype.updateTheaterValue=jB.prototype.updateTheaterValue;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],jB.prototype,"ytComponentBehavior",void 0);
_.t([_.u(_.oGH.YtdWatchBehavior),_.O("design:type",Object)],jB.prototype,"ytdWatchBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],jB.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],jB.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],jB.prototype,"ghostGridRenderer",void 0);_.t([_.r(),_.O("design:type",Object)],jB.prototype,"playerData",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],jB.prototype,"roundedInfoPanel",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],jB.prototype,"hideOfferModules",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],jB.prototype,"smallerChatMinHeight",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],jB.prototype,"cinematicTheaterMode",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],jB.prototype,"transparentTheaterMode",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],jB.prototype,"darkerPanels",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],jB.prototype,"cinematicFullscreen",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],jB.prototype,"cinematicFullscreenV2",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],jB.prototype,"isDarkTheme",void 0);_.t([_.r({selector:_.sQ}),_.O("design:type",Object)],jB.prototype,"theaterValue",void 0);
_.t([_.r({selector:_.FX}),_.O("design:type",Object)],jB.prototype,"fullscreenValue",void 0);_.t([_.r({selector:_.uz}),_.O("design:type",Object)],jB.prototype,"scrollTopValue",void 0);_.t([_.r({selector:_.Fv}),_.O("design:type",Object)],jB.prototype,"miniplayerIsActiveValue",void 0);_.t([_.VP("#ytd-player"),_.O("design:type",HTMLElement)],jB.prototype,"ytdPlayer",void 0);_.t([_.VP("#playlist"),_.O("design:type",HTMLElement)],jB.prototype,"JSC$23035_ytdPlaylistPanelRenderer",void 0);
_.t([_.VP("#ytd-comments"),_.O("design:type",HTMLElement)],jB.prototype,"ytdComments",void 0);_.t([_.VP("#primary"),_.O("design:type",HTMLElement)],jB.prototype,"primary",void 0);_.t([_.VP("#secondary"),_.O("design:type",HTMLElement)],jB.prototype,"secondary",void 0);_.t([_.VP("#player-container"),_.O("design:type",HTMLElement)],jB.prototype,"playerContainer",void 0);_.t([_.VP("#cinematics"),_.O("design:type",HTMLElement)],jB.prototype,"JSC$23035_cinematics",void 0);
_.t([_.CK("theaterValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jB.prototype,"updateTheaterValue",null);_.t([_.CK("fullscreenValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jB.prototype,"updateFullscreenValue",null);_.t([_.CK("scrollTopValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jB.prototype,"updateScrollTopValue",null);
_.t([_.CK("miniplayerIsActiveValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jB.prototype,"updateMiniplayerIsActiveValue",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],jB.prototype,"cinematicLightTheme",null);
_.T(jB,"ytd-watch-grid",function(){if(a7c===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);a7c=d}d=a7c;return d},{mode:2});_.qG.registerService(_.DmE,jB);
_.rk();
}catch(e){_._DumpException(e)}
try{
_.I4("CF909");
var qXr;var A8=function(){var d=_.B.apply(this,arguments)||this;d.flexy=!0;d.roundedInfoPanel=!0;d.viewTransitionEnabled=_.h("enable_player_resize_transition");d.smallerChatMinHeight=_.h("live_chat_smaller_min_height");d.cinematicTheaterMode=_.h("web_cinematic_theater_mode");d.transparentTheaterMode=_.h("web_transparent_theater_mode");d.cinematicFullscreen=_.h("web_cinematic_fullscreen");d.useLargerMaxPlayerValue=_.h("kevlar_flexy_use_larger_player_value");d.isDarkTheme=document.documentElement.hasAttribute("dark");
d.defaultCollapsePlaylist=_.h("web_watch_default_collapse_playlist");d.retroModeReduxValue=!1;return d};
_.m(A8,_.B);_.G=A8.prototype;_.G.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.G.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.G.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.G.updateRetroModeReduxValue=function(){_.h("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.G.ready=function(){var d=this,H=function(){d.onColumnScroll()};
this.primary.addEventListener("scroll",H);this.secondary.addEventListener("scroll",H)};
_.G.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.G.updateIsTwoColumnsFromBinding=function(d){_.h("web_watch_update_narrow_width_killswitch")||_.dn().dispatch(_.hjc(!d.detail.value));this.ytdWatchBehavior.isTwoColumns_=d.detail.value};
_.G.updateFlexySmallWindowFromBinding=function(d){this.ytdWatchBehavior.flexySmallWindow_=d.detail.value};
_.G.updateFlexyLargeWindowFromBinding=function(d){this.ytdWatchBehavior.flexyLargeWindow_=d.detail.value};
_.G.updateWatchWhileWindowSizeSufficientFromBinding=function(d){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=d.detail.value};
_.G.updateWatchNextCanShowMoreFromBinding=function(d){this.ytdWatchBehavior.watchNextCanShowMore=d.detail.value};
_.G.updateShownItemsFromBinding=function(d){d.detail.path?this.set(d.detail.path,d.detail.value):this.ytdWatchBehavior.watchNextShownItems=d.detail.value};
_.G.getElement=function(d){switch(d){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23030_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23030_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.H3.Object.defineProperties(A8.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.data)==null||!d.pageVisualEffects)return!1;for(var H=0;H<this.data.pageVisualEffects.length;H++)if(d=_.M(this.data.pageVisualEffects[H],_.WL))return H=void 0,(H=d.config)==null?void 0:H.enableInLightTheme;return!1}}});
_.H3.Object.defineProperties(A8,{template:{configurable:!0,enumerable:!0,get:function(){if(qXr===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);qXr=d}d=qXr;return d}}});
A8.prototype.updateRetroModeReduxValue=A8.prototype.updateRetroModeReduxValue;A8.prototype.updateScrollTopValue=A8.prototype.updateScrollTopValue;A8.prototype.updateFullscreenValue=A8.prototype.updateFullscreenValue;A8.prototype.updateTheaterValue=A8.prototype.updateTheaterValue;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],A8.prototype,"ytComponentBehavior",void 0);
_.t([_.u(_.oGH.YtdWatchBehavior),_.O("design:type",Object)],A8.prototype,"ytdWatchBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],A8.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],A8.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],A8.prototype,"playerData",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],A8.prototype,"flexy",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],A8.prototype,"roundedInfoPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],A8.prototype,"viewTransitionEnabled",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],A8.prototype,"smallerChatMinHeight",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],A8.prototype,"cinematicTheaterMode",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],A8.prototype,"transparentTheaterMode",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],A8.prototype,"cinematicFullscreen",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],A8.prototype,"useLargerMaxPlayerValue",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],A8.prototype,"isDarkTheme",void 0);_.t([_.r(),_.O("design:type",Object)],A8.prototype,"defaultCollapsePlaylist",void 0);
_.t([_.r({selector:_.sQ}),_.O("design:type",Object)],A8.prototype,"theaterValue",void 0);_.t([_.r({selector:_.FX}),_.O("design:type",Object)],A8.prototype,"fullscreenValue",void 0);_.t([_.r({selector:_.uz}),_.O("design:type",Object)],A8.prototype,"scrollTopValue",void 0);_.t([_.r({selector:_.Fv}),_.O("design:type",Object)],A8.prototype,"miniplayerIsActive",void 0);_.t([_.r({selector:function(d){return d.watch.isWatchRetroMode}}),
_.O("design:type",Object)],A8.prototype,"retroModeReduxValue",void 0);_.t([_.kH("ytd-player"),_.O("design:type",HTMLElement)],A8.prototype,"ytdPlayer",void 0);_.t([_.VP("#playlist"),_.O("design:type",HTMLElement)],A8.prototype,"JSC$23030_ytdPlaylistPanelRenderer",void 0);_.t([_.kH("ytd-comments"),_.O("design:type",HTMLElement)],A8.prototype,"ytdComments",void 0);_.t([_.VP("#primary"),_.O("design:type",HTMLElement)],A8.prototype,"primary",void 0);
_.t([_.VP("#secondary"),_.O("design:type",HTMLElement)],A8.prototype,"secondary",void 0);_.t([_.VP("#player-container"),_.O("design:type",HTMLElement)],A8.prototype,"playerContainer",void 0);_.t([_.VP("#below"),_.O("design:type",HTMLElement)],A8.prototype,"below",void 0);_.t([_.VP("#cinematics"),_.O("design:type",HTMLElement)],A8.prototype,"JSC$23030_cinematics",void 0);
_.t([_.CK("theaterValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],A8.prototype,"updateTheaterValue",null);_.t([_.CK("fullscreenValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],A8.prototype,"updateFullscreenValue",null);_.t([_.CK("scrollTopValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],A8.prototype,"updateScrollTopValue",null);
_.t([_.CK("retroModeReduxValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],A8.prototype,"updateRetroModeReduxValue",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],A8.prototype,"cinematicLightTheme",null);_.t([_.Z({is:"ytd-watch-flexy"})],A8);_.qG.registerService(_.NeY,A8);
_.rk();
}catch(e){_._DumpException(e)}
try{
_.I4("nmfa2d");
var Vba;var YS=function(){var d=_.B.apply(this,arguments)||this;d.hidden=!1;d.errorScreen=null;d.playlistData={};return d};
_.m(YS,_.B);_.G=YS.prototype;_.G.getPlayer=function(){return this.ytdPlayer};
_.G.configureRendererStamper=function(){return{singleColumnContents:{id:"single-column",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},clarificationData:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",
attributes:{"class":"watch"}}}},donationShelf:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[hasChat]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},richMetadataRowContainer:{id:"rich-metadata",mapping:{metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{fixie:!0}}}},
ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:"ytd-ticket-shelf-renderer"}},"playerData.playerAds":{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.jr(["aa","eocs"])}}};
_.G.onActiveChanged=function(){_.dn().dispatch(_.$Q_(this.ytPageBehavior.active))};
_.G.playerDataChanged=function(){var d;(d=this.watchController)==null||d.setPlayerResponse(this.playerData)};
_.G.dataChanged=function(){var d;(d=this.watchController)==null||d.setWatchNextResponse(this.data)};
_.G.sizeChanged=function(){var d,H;(H=(d=this.metadata).resize)==null||H.call(d)};
_.G.attached=function(){this.watchController=new _.QC(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.G.detached=function(){_.AA(this.watchController);this.watchController=void 0};
_.G.getPlayerContainer=function(){return this.playerContainer};
_.G.getElement=function(d){switch(d){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.G.provideRenderingData=function(d,H){switch(d){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=H;break;case "ERROR_SCREEN":this.errorScreen=H!=null?H:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=H;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=H;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=H;break;case "RICH_METADATA":this.richMetadataRowContainer=H;break;case "CLARIFICATION":this.clarificationData=H;break;case "PLAYLIST":this.playlistData=
H!=null?H:{};break;case "MERCH_SHELF":this.merchShelf=H;break;case "TICKET_SHELF":this.ticketShelf=H;break;case "LIMITED_STATE":this.limitedState=H;break;case "DONATION_SHELF":this.donationShelf=H;break;case "ALERTS":this.alerts=H}};
_.H3.Object.defineProperties(YS.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return!this.hidden&&!!((d=this.data)==null?0:(H=d.contents)==null?0:(K=H.twoColumnWatchNextResults)==null?0:K.conversationBar)}}});
YS.prototype.sizeChanged=YS.prototype.sizeChanged;YS.prototype.dataChanged=YS.prototype.dataChanged;YS.prototype.playerDataChanged=YS.prototype.playerDataChanged;YS.prototype.onActiveChanged=YS.prototype.onActiveChanged;_.t([_.u(_.JM.YtPageBehavior),_.O("design:type",Object)],YS.prototype,"ytPageBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],YS.prototype,"ytComponentBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],YS.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],YS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],YS.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],YS.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],YS.prototype,"playerData",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],YS.prototype,"hidden",void 0);_.t([_.VP("#ytd-player"),_.O("design:type",HTMLElement)],YS.prototype,"ytdPlayer",void 0);_.t([_.VP("#player-container"),_.O("design:type",HTMLElement)],YS.prototype,"playerContainer",void 0);_.t([_.VP("#metadata"),_.O("design:type",Object)],YS.prototype,"metadata",void 0);_.t([_.VP("#playlist"),_.O("design:type",HTMLElement)],YS.prototype,"playlistPanel",void 0);
_.t([_.r({selector:_.rN_,reflectToAttribute:!0}),_.O("design:type",Object)],YS.prototype,"fixie",void 0);_.t([_.r({selector:_.I0E,reflectToAttribute:!0}),_.O("design:type",Object)],YS.prototype,"singleColumn",void 0);_.t([_.r({selector:function(d){return _.sQ(d)&&!_.FX(d)},
reflectToAttribute:!0}),_.O("design:type",Object)],YS.prototype,"theater",void 0);_.t([_.r({selector:_.FX,reflectToAttribute:!0}),_.O("design:type",Object)],YS.prototype,"fullscreen",void 0);_.t([_.r({selector:_.dQe}),_.O("design:type",Object)],YS.prototype,"windowSize",void 0);_.t([_.r(),_.O("design:type",Object)],YS.prototype,"singleColumnContents",void 0);_.t([_.r(),_.O("design:type",Object)],YS.prototype,"errorScreen",void 0);_.t([_.r(),_.O("design:type",Object)],YS.prototype,"playlistData",void 0);
_.t([_.r(),_.O("design:type",Object)],YS.prototype,"videoPrimaryInfoRenderer",void 0);_.t([_.r(),_.O("design:type",Object)],YS.prototype,"videoSecondaryInfoRenderer",void 0);_.t([_.r(),_.O("design:type",Object)],YS.prototype,"richMetadataRowContainer",void 0);_.t([_.r(),_.O("design:type",Object)],YS.prototype,"clarificationData",void 0);_.t([_.r(),_.O("design:type",Object)],YS.prototype,"commentsEntryPointHeaderRenderer",void 0);_.t([_.r(),_.O("design:type",Object)],YS.prototype,"ticketShelf",void 0);
_.t([_.r(),_.O("design:type",Object)],YS.prototype,"merchShelf",void 0);_.t([_.r(),_.O("design:type",Object)],YS.prototype,"donationShelf",void 0);_.t([_.r(),_.O("design:type",Object)],YS.prototype,"limitedState",void 0);_.t([_.r(),_.O("design:type",Object)],YS.prototype,"alerts",void 0);_.t([_.I("playlistData"),_.O("design:type",Object),_.O("design:paramtypes",[])],YS.prototype,"hasPlaylistData",null);
_.t([_.I("data","hidden"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],YS.prototype,"hasChat",null);_.t([_.CK("active"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],YS.prototype,"onActiveChanged",null);_.t([_.CK("playerData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],YS.prototype,"playerDataChanged",null);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],YS.prototype,"dataChanged",null);_.t([_.CK("windowSize","singleColumn"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],YS.prototype,"sizeChanged",null);
_.T(YS,"ytd-watch-fixie",function(){if(Vba===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-fixie--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="single-column" hidden="[[!singleColumnContents]]" class="style-scope ytd-watch-fixie"></div>\n\n<div id="fixed-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="primary" class="style-scope ytd-watch-fixie">\n    <div id="player" class="style-scope ytd-watch-fixie">\n      <div id="player-container" class="style-scope ytd-watch-fixie">\n        <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-fixie">\n        </ytd-player>\n      </div>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" disable-upgrade$="[[!errorScreen]]" hidden$="[[!errorScreen]]" class="style-scope ytd-watch-fixie">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <div id="alerts" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-metadata id="metadata" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" suppress-top-level-metadata-rows="" video-id="[[data.currentVideoEndpoint.watchEndpoint.videoId]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer.videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer.videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-metadata>\n  </div>\n</div>\n\n<div id="static-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="secondary" class="style-scope ytd-watch-fixie">\n    <div id="clarify-box" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="limited-state" class="feed-item style-scope ytd-watch-fixie"></div>\n    \n    <template is="dom-if" if="[[merchShelf.merchandiseShelfRenderer]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-fixie">\n      <ytd-merch-shelf-renderer class="feed-item style-scope ytd-watch-fixie" data="[[merchShelf.merchandiseShelfRenderer]]" watch-metadata-refresh="">\n      </ytd-merch-shelf-renderer>\n    </template>\n    \n    <div id="ticket-shelf" class="feed-item style-scope ytd-watch-fixie" hidden=""></div>\n    <ytd-watch-engagement-panels data="[[data.engagementPanels]]" class="style-scope ytd-watch-fixie"></ytd-watch-engagement-panels>\n    \n    <template is="dom-if" if="[[hasChat]]" restamp="" class="style-scope ytd-watch-fixie">\n      <ytd-live-chat-frame id="chat" class="feed-item style-scope ytd-watch-fixie" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]">\n      </ytd-live-chat-frame>\n    </template>\n    <div id="donation-shelf" class="feed-item style-scope ytd-watch-fixie"></div>\n    <ytd-playlist-panel-renderer id="playlist" class="feed-item style-scope ytd-watch-fixie" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" data="[[playlistData]]" disable-upgrade$="[[!hasPlaylistData]]" hidden="[[!hasPlaylistData]]" js-panel-height="">\n    </ytd-playlist-panel-renderer>\n    <div id="rich-metadata" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="player-ads" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-next-secondary-results-renderer data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" hidden="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" player-data="[[playerData]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-next-secondary-results-renderer>\n  </div>\n</div>\n\n\n\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);Vba=d}d=Vba;return d},{mode:1});_.qG.registerService(_.bpX,YS);
_.rk();
}catch(e){_._DumpException(e)}
try{
_.I4("xwEKAe");
var hXH=function(d){return _.A5(d)?d.getAttribute("jsname")==="coFSxe":!1},LiE=function(d,H){H.id||(H.id="ow"+_.b1(H));
d.setAttribute("jsowner",H.id);d.__owner=H;var K=_.sY(H,hXH);K&&(_.qDg.has(K)||_.qDg.set(K,[]),_.qDg.get(K).push(d));(K=_.orA.get(H))||_.orA.set(H,K=[]);K.includes(d)||K.push(d);H.setAttribute("__IS_OWNER",!0)},Mla=function(){var d=_.LwF(1);
d=_.DB(d,_.I7Y);if(!(_.hLF(d)||d[_.NrM]&&!d.__hasBeenSet))return d.value},mfr=function(d){var H=_.Lo();
if(H.getFlag(202))H=H.getFlag(201);else{var K;H=(d==null?void 0:(K=d.config)==null?void 0:K.settingOnByDefault)!==void 0?d.config.settingOnByDefault:!_.h("web_shorts_cinematics_disabled_by_default")}return H},wFe=function(d){var H=_.Lo();
_.Mo(0,201,d);_.Mo(0,202,!0);H.save()},P1_=function(d){return(d=_.Ve5(d))?_.hBi(d):0},uMe=function(d){return d.shorts.isSmallScreenSqueezeback},IDa=function(d){return d.shorts.isPlaybackStarted},Bha=function(d){var H=_.LwF(2),K=new Set;
_.Pk(function(){return void K.forEach(function(c){return void c()})});
return function(c){var p=_.N_(H);try{var g=rCr(Wie(d),c);K.add(g);return function(){g();K.delete(g)}}finally{_.N_(p)}}},zXa=function(d){var H=d.children;
var K=d.root;_.Is(function(){var c=Bha(K)(H);_.Pk(c)});
return document.createTextNode("")},rCr=function(d,H){var K=XFc(d);
(d=Mla())&&LiE(K,d);H=_.q(_.nE5(H,!0));d=H.next().value;var c=H.next().value;K.append.apply(K,_.ru(d));return function(){c();K.remove()}},Wie=function(d){if(typeof d==="string")return d=document.querySelector(d),_.t1T(d),d;
if(_.K6(d)&&d.nodeType===Node.ELEMENT_NODE)return d;if(!d.__value&&!d.__optional){var H=_.fcF.USE_ELEMENT_NOT_ASSIGNED(d.__expectedTagName);d.__hasErrored=!0;throw H;}return d.value},XFc=function(d){var H=document.createElementNS(d.namespaceURI,d.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return d.appendChild(H)},JCa=function(d,H,K,c){d=H-d;
K=c-K;return Math.sqrt(d*d+K*K)},sEe=function(d,H){d&&_.Kj().resolve(_.cb).resolveCommand(d,{forceClickLogging:!0,
form:{element:H}})},FiB=function(d,H,K,c){d=H-d;
K=c-K;return Math.sqrt(d*d+K*K)},ZFc=function(d,H){d&&_.Kj().resolve(_.cb).resolveCommand(d,{forceClickLogging:!0,
form:{element:H}})},ThL=function(){return _.Kj().resolve(_.Ls).dismissedIndices},QEH=function(d,H){var K,c,p,g,a,e,k,C,R;
return _.l(function(V){if(V.nextAddress==1){K=_.Kj().resolve(_.fDU);g=(c=K)==null?void 0:(p=c.reelWatchEndpointMap)==null?void 0:p.reelWatchSequence;e=(a=d.innertubeTransportService)!=null?a:_.Kj().resolve(_.Z8);if(!g)return V.jumpTo(2);k=g();return(C=k.JSC$13039_getRequest(H,{}))?V.yield(_.Qq(e,C.innerTubeRequest,C.input,H.clickTrackingParams,C.config),4):V.jumpTo(2)}return V.nextAddress!=2?(R=V.yieldResult,V.return(R)):V.return(void 0)})},tlw=function(d){return _.iZ({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:d}})},Y5e=function(d){return _.iZ({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:d}})},iz=function(d){return _.iZ({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:d}})};var GB=function(d,H){if(d instanceof GB)this.array_=d.array_;else{var K;if(K=_.O5(d))a:{for(var c=K=0;c<d.length;c++){if(!_.O5(d[c])||K>0&&d[c].length!=K){K=!1;break a}for(var p=0;p<d[c].length;p++)if(typeof d[c][p]!=="number"){K=!1;break a}K==0&&(K=d[c].length)}K=K!=0}if(K)this.array_=_.tC(d);else if(d instanceof _.nB)this.array_=OFK(d.height,d.width);else if(typeof d==="number"&&typeof H==="number"&&d>0&&H>0)this.array_=OFK(d,H);else throw Error("to");}this.size_=new _.nB(this.array_[0].length,
this.array_.length)},S5O=function(d,H,K){for(var c=0;c<d.getSize().height;c++)for(var p=0;p<d.getSize().width;p++)H.call(K,d.array_[c][p],c,p,d)},EYw=function(d,H){var K=new GB(d.getSize());
S5O(d,function(c,p,g){K.array_[p][g]=H.call(void 0,c,p,g,d)});
return K},OFK=function(d,H){for(var K=[],c=0;c<d;c++){K[c]=[];
for(var p=0;p<H;p++)K[c][p]=0}return K};
GB.prototype.add=function(d){if(!_.Ndb(this.size_,d.getSize()))throw Error("uo");return EYw(this,function(H,K,c){return H+d.array_[K][c]})};
GB.prototype.equals=function(d,H){if(this.size_.width!=d.size_.width||this.size_.height!=d.size_.height)return!1;H=H||0;for(var K=0;K<this.size_.height;K++)for(var c=0;c<this.size_.width;c++)if(!_.bPb(this.array_[K][c],d.array_[K][c],H))return!1;return!0};
GB.prototype.getSize=function(){return this.size_};
var oz=function(d,H,K){return H>=0&&H<d.size_.height&&K>=0&&K<d.size_.width?d.array_[H][K]:null};
GB.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var qK=function(d,H,K,c){if(!(H>=0&&H<d.size_.height&&K>=0&&K<d.size_.width))throw Error("vo`"+H+"`"+K+"`"+d.size_.height+"`"+d.size_.width);d.array_[H][K]=c};
GB.prototype.multiply=function(d){if(d instanceof GB){if(this.size_.width!=d.getSize().height)throw Error("wo");return yCa(this,d)}if(typeof d==="number")return bFB(this,d);throw Error("xo");};
var yCa=function(d,H){var K=new GB(d.size_.height,H.getSize().width);S5O(K,function(c,p,g){for(var a=c=0;a<this.size_.width;a++)c+=oz(this,p,a)*oz(H,a,g);qK(K,p,g,c)},d);
return K},bFB=function(d,H){return EYw(d,function(K){return K*H})};var Nhw=new _.Dk("inlineSurveyRenderer");var Dfr=new _.Dk("interstitialViewModel");var fDH=new _.Dk("reelNavigateCommand");var ACE=new _.Dk("reelNonVideoContentDismissalCommand");var jEc=new _.Dk("showReelsCommentsOverlayCommand");var vYB=new _.Dk("shortsSuggestedActionViewModel");var dUS=new _.Dk("videoInteractionPopUpRenderer");var HXO;var $U_;var Kg_;var az=function(){var d=_.B.apply(this,arguments)||this;d.ctaVisualElement=null;d.currentCsn=null;return d};
_.m(az,_.B);_.G=az.prototype;_.G.onDataChanged=function(){this.maybeLogShows()};
_.G.computeButtonShape=function(){var d=this;if(this.data)return{buttonText:_.jG(this.data.text),state:"active",onTap:function(){d.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.G.maybeCreateCtaVe=function(){var d;if((d=this.data)!=null&&d.badgeInteractionLogging){var H;if(d=(H=this.data.badgeInteractionLogging)==null?void 0:H.trackingParams)this.ctaVisualElement=_.P1(d)}};
_.G.maybeLogClicks=function(){this.currentCsn=_.Fj(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.fo(this.currentCsn,this.ctaVisualElement)};
_.G.maybeLogShows=function(){this.currentCsn=_.Fj(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.No(this.currentCsn,[this.ctaVisualElement])};
_.G.onTap=function(){var d;if((d=this.data)!=null&&d.onClickCommand){var H;this.ytComponentBehavior.resolveCommand((H=this.data)==null?void 0:H.onClickCommand);this.maybeLogClicks()}};
az.prototype.onDataChanged=az.prototype.onDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],az.prototype,"ytComponentBehavior",void 0);_.t([_.r({}),_.O("design:type",Object)],az.prototype,"data",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],az.prototype,"onDataChanged",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],az);
_.T(az,"ytd-shopping-overlay-badge-renderer",function(){if(Kg_!==void 0)return Kg_;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-overlay-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape data="[[computeButtonShape(data)]]" icon-name="bag" class="style-scope ytd-shopping-overlay-badge-renderer">\n</yt-button-shape>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Kg_=d},{mode:1});_.iV(_.sZg,"reel-sound-metadata-view-model",{props:{data:_.p7,overlayDensity:_.p7}});_.iV(_.Bst,"player-disclosure-view-model",{props:{data:_.dl}});_.iV(_.PcA,"pivot-button-view-model",{props:{data:_.p7,className:_.p7}});_.iV(_.ug6,"reel-action-bar-view-model",{props:{data:_.dl,buttonShapeOverrideables:_.dl}});_.iV(_.H1(function(d){function H(){var el,l1,V4,Mf,LF=(l1=_.M((el=A())==null?void 0:el.command,_.La))==null?void 0:(V4=l1.item)==null?void 0:(Mf=V4.notificationTextRenderer)==null?void 0:Mf.successResponseText;if(LF)_.oF(c.value,"yt-open-popup-action",[_.$i(LF),c.value]);else if(E())sEe(E(),w.value);else{var YY;sEe((YY=A())==null?void 0:YY.command,w.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var K=d.data;var c=_.Af("yt-player-overlay-video-interactions");d=_.q(_.GO("0px",void 0,"O1N7Ce"));var p=d.next().value,g=d.next().value;d=_.q(_.GO("0px",void 0,"tTDBdb"));var a=d.next().value,e=d.next().value;d=_.q(_.GO(0,void 0,"fh8Zkc"));var k=d.next().value,C=d.next().value;d=_.q(_.GO(0,void 0,"CUjqGd"));var R=d.next().value,V=d.next().value,U=function(){var el;if(((el=_.k6())==null?void 0:el.getPlayerState())!==-1){c.value.style.display="inherit";var l1;(l1=_.k6())==null||l1.removeEventListener("onStateChange",
U)}L()},L=function(){var el=document.querySelector("video");
if(el){C(el.getBoundingClientRect().width);V(el.getBoundingClientRect().height);var l1;g((el==null?void 0:(l1=el.style)==null?void 0:l1.left)||"0px");var V4;e((el==null?void 0:(V4=el.style)==null?void 0:V4.top)||"0px")}};
_.wc(function(){var el,l1,V4;if(((el=_.k6())==null?void 0:el.getPlayerState())===-1&&Math.round(((V4=(l1=_.k6())==null?void 0:l1.getVideoAspectRatio())!=null?V4:0)*100)!==Math.round(k()/R()*100)){c.value.style.display="none";var Mf,LF;V(k()/((LF=(Mf=_.k6())==null?void 0:Mf.getVideoAspectRatio())!=null?LF:1))}},"VB5m5");
_.Is(function(){var el;(el=_.k6())==null||el.addEventListener("onStateChange",U);window.addEventListener("resize",L);L();var l1,V4,Mf;if((Mf=(l1=K())==null?void 0:(V4=l1.regions)==null?void 0:V4[0])==null||!Mf.transformationMatrix)throw Error("Bo");var LF;if((LF=K())==null?0:LF.trackingParams){var YY;_.hR().graftServerVe((YY=K().trackingParams)!=null?YY:"")}_.Pk(function(){var FM;(FM=_.k6())==null||FM.removeEventListener("onStateChange",U);window.removeEventListener("resize",L)})});
var w=_.Af("svg"),W=_.q(_.GO(!1,void 0,"TPsTce"));d=W.next().value;var J=W.next().value,F=_.q(_.GO(!1,void 0,"Uz6CHf"));W=F.next().value;var Y=F.next().value,A=function(){var el;return _.M((el=K())==null?void 0:el.popUp,dUS)},E=function(){var el;
return(el=K())==null?void 0:el.command},N=function(){return _.M(E(),_.u8)!==void 0};
F=_.n7(function(){H();return!1});
var y={},v={};return _.x("yt-player-overlay-video-interactions",{el:c},_.x("svg",{"on:mouseover":_.n7(function(){N()&&J(!0);Y(!0);return!1}),
"on:mouseout":_.n7(function(){J(!1);Y(!1);return!1}),
"on:keydown":_.n7(function(el){el.key==="Enter"&&H();return!1}),
"on:focus":_.n7(function(){N()&&J(!0);return!1}),
"on:blur":_.n7(function(){N()&&J(!1);return!1}),
el:w,tabindex:0,"aria-label":function(){var el;return(el=K())==null?void 0:el.a11yString},
id:"player-overlay-video-interaction-svg",class:_.xM("yt-player-overlay-video-interactions__interactions-svg",(y["yt-player-overlay-video-interactions__interactions-svg-hover"]=d,y),(v["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=W,v)),role:"button",style:function(){var el,l1,V4,Mf=(V4=(el=K())==null?void 0:(l1=el.regions)==null?void 0:l1[0].transformationMatrix)!=null?V4:[];el=k();l1=R();V4=[];for(var LF=0,YY=-1;LF<Mf.length;LF++)LF%3===0&&(YY++,V4[YY]=[]),V4[YY].push(Mf[LF]);
Mf=new GB(V4);V4=new GB([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);V4=Mf.multiply(V4);Mf=new GB([[0,0],[0,0],[0,0],[0,0]]);for(LF=0;LF<V4.getSize().width;LF++){YY=oz(V4,0,LF);var FM=oz(V4,1,LF);if(YY===null||FM===null)throw Error("Ao`"+(LF+1).toString());qK(Mf,LF,0,YY*el);qK(Mf,LF,1,FM*l1)}el=oz(Mf,0,0);LF=oz(Mf,1,0);l1=oz(Mf,0,1);YY=oz(Mf,1,1);if(el===null||LF===null||l1===null||YY===null)throw Error("yo");V4=JCa(el,LF,l1,YY);FM=oz(Mf,3,0);Mf=oz(Mf,3,1);if(FM===null||Mf===null)throw Error("zo");Mf=JCa(el,
FM,l1,Mf);YY=(Number((YY*-1).toFixed(2))-Number((l1*-1).toFixed(2)))/(Number(LF.toFixed(2))-Number(el.toFixed(2)));FM=Math.atan(YY)*180/Math.PI;LF=YY===Number.POSITIVE_INFINITY?-90:YY===Number.NEGATIVE_INFINITY?90:Object.is(YY,-0)?180:YY===0?0:YY>0?FM*-1:el<LF?FM*-1:Math.abs(FM)+180;return"left:calc("+el+"px + "+p()+"); top:calc("+(l1+"px + "+a()+"); width:")+(V4+"px; height:")+(Mf+"px; transform:rotate(")+(LF+"deg);")},
"on:click":F}))},"Xj"),"yt-player-overlay-video-interactions",{props:{data:_.dl}});_.iV(_.FVT,"yt-reel-metapanel-view-model",{props:{data:_.dl,overlayDensity:_.dl}});var cNC=_.H1(function(d){var H=d.children;var K=d.region;d=_.q(_.GO(void 0,void 0,"rwJZyc"));var c=d.next().value,p=d.next().value;d=_.q(_.GO("0px",void 0,"H14H5c"));var g=d.next().value,a=d.next().value;d=_.q(_.GO("0px",void 0,"Mn8Uvf"));var e=d.next().value,k=d.next().value;d=_.q(_.GO(0,void 0,"QQCIqc"));var C=d.next().value,R=d.next().value;d=_.q(_.GO(0,void 0,"HyEvh"));var V=d.next().value,U=d.next().value,L=function(){var A=c();if(A){var E;if(((E=_.k6())==null?void 0:E.getPlayerState())!==-1){A.style.display=
"inherit";var N;(N=_.k6())==null||N.removeEventListener("onStateChange",L)}W()}},w=function(){var A=document.querySelectorAll("video");
return Array.from(A).find(function(E){var N;return E==null?void 0:(N=E.style)==null?void 0:N.width})},W=function(){var A=w();
if(A){R(A.getBoundingClientRect().width);U(A.getBoundingClientRect().height);var E;a((A==null?void 0:(E=A.style)==null?void 0:E.left)||"0px");var N;k((A==null?void 0:(N=A.style)==null?void 0:N.top)||"0px")}};
_.wc(function(){var A=c();if(A){var E,N,y;if(((E=_.k6())==null?void 0:E.getPlayerState())===-1&&Math.round(((y=(N=_.k6())==null?void 0:N.getVideoAspectRatio())!=null?y:0)*100)!==Math.round(C()/V()*100)){A.style.display="none";var v,el;U(C()/((el=(v=_.k6())==null?void 0:v.getVideoAspectRatio())!=null?el:1))}}},"RdGxIf");
var J=function(){W()},F;
_.Is(function(){W();var A;if(!(K==null?0:(A=K())==null?0:A.transformationMatrix))throw Error("Bo");var E;(E=_.k6())==null||E.addEventListener("onStateChange",L);if(window.ResizeObserver){if(A=w())F=new ResizeObserver(J),F.observe(A)}else window.addEventListener("resize",W);_.Pk(function(){var N;(N=_.k6())==null||N.removeEventListener("onStateChange",L);F?F.disconnect():window.removeEventListener("resize",W)})});
var Y=function(){var A,E,N=(E=K==null?void 0:(A=K())==null?void 0:A.transformationMatrix)!=null?E:[];A=C();E=V();for(var y=[],v=0,el=-1;v<N.length;v++)v%3===0&&(el++,y[el]=[]),y[el].push(N[v]);N=new GB(y);y=new GB([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);y=N.multiply(y);N=new GB([[0,0],[0,0],[0,0],[0,0]]);for(v=0;v<y.getSize().width;v++){el=oz(y,0,v);var l1=oz(y,1,v);if(el===null||l1===null)throw Error("Ao`"+(v+1).toString());qK(N,v,0,el*A);qK(N,v,1,l1*E)}A=oz(N,0,0);v=oz(N,1,0);E=oz(N,0,1);el=oz(N,1,1);
if(A===null||v===null||E===null||el===null)throw Error("yo");y=FiB(A,v,E,el);l1=oz(N,3,0);N=oz(N,3,1);if(l1===null||N===null)throw Error("zo");N=FiB(A,l1,E,N);el=(Number((el*-1).toFixed(2))-Number((E*-1).toFixed(2)))/(Number(v.toFixed(2))-Number(A.toFixed(2)));l1=Math.atan(el)*180/Math.PI;v=el===Number.POSITIVE_INFINITY?-90:el===Number.NEGATIVE_INFINITY?90:Object.is(el,-0)?180:el===0?0:el>0?l1*-1:A<v?l1*-1:Math.abs(l1)+180;return"left:calc("+A+"px + "+g()+"); top:calc("+(E+"px + "+e()+"); width:")+
(y+"px; height:")+(N+"px; transform:rotate(")+(v+"deg);")};
return _.x(zXa,{root:"#sticker-layer"},function(){return _.x("yt-overlay-sticker",{el:_.$M(p),style:Y,class:"ytOverlayStickerHost"},H)})},"Yj");var pB_=_.H1(function(d){function H(){var L,w,W,J,F=(w=_.M((L=k())==null?void 0:L.command,_.La))==null?void 0:(W=w.item)==null?void 0:(J=W.notificationTextRenderer)==null?void 0:J.successResponseText;if(F)_.oF(c.value,"yt-open-popup-action",[_.$i(F),c.value]);else if(C())ZFc(C(),c.value);else{var Y;ZFc((Y=k())==null?void 0:Y.command,c.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var K=d.data;var c=_.Af("svg"),p=_.q(_.GO(!1,void 0,"T9Bq7b"));d=p.next().value;var g=p.next().value,a=_.q(_.GO(!1,void 0,"iMHq9c"));p=a.next().value;var e=a.next().value,k=function(){var L;return _.M((L=K())==null?void 0:L.popUp,dUS)},C=function(){var L;
return(L=K())==null?void 0:L.command},R=function(){return _.M(C(),_.u8)!==void 0};
a=_.n7(function(){H();return!1});
var V={},U={};return _.x("svg",{"on:mouseover":_.n7(function(){R()&&g(!0);e(!0);return!1}),
"on:mouseout":_.n7(function(){g(!1);e(!1);return!1}),
"on:keydown":_.n7(function(L){L.key==="Enter"&&H();return!1}),
"on:focus":_.n7(function(){R()&&g(!0);return!1}),
"on:blur":_.n7(function(){R()&&g(!1);return!1}),
el:c,tabindex:0,"aria-label":function(){var L;return(L=K())==null?void 0:L.a11yString},
id:"player-overlay-video-interaction-svg",class:_.xM("ytPlayerOverlayInteractionInteractionsSvg",(V.ytPlayerOverlayInteractionInteractionsSvgHover=d,V),(U.ytPlayerOverlayInteractionInteractionsSvgHideOutline=p,U)),role:"button","on:click":a})},"$j");_.iV(_.H1(function(d){var H=d.data;_.Is(function(){var K;if((K=H())==null?0:K.trackingParams){var c;_.hR().graftServerVe((c=H().trackingParams)!=null?c:"")}});
return _.x("yt-player-overlay-interaction",null,_.x(cNC,{region:function(){var K,c;return(K=H())==null?void 0:(c=K.regions)==null?void 0:c[0]}},_.x(pB_,Object.assign({},d))))},"Zj"),"yt-player-overlay-interaction",{props:{data:_.dl}});var lz=function(){var d=_.B.apply(this,arguments)||this;d.showScrubber=!1;d.isWatchWhileMode=!1;d.enableAnchoredPanel=_.h("desktop_shorts_v2_anchored_panel");d.enableNewStickers=_.h("use_shorts_sticker_overlay_web");d.anchoredPanelActive=!1;d.enableLivingroomLayout=_.h("reels_enable_livingroom_layout");d.enablePlayerMetadataContainer=_.h("reels_web_enable_metadata_container");d.enableSqueezebackPanels=_.h("web_shorts_enable_squeezeback_panels");d.useAspectRatio=_.h("web_use_aspect_ratio");d.isSqueezebackActive=
!1;d.smallScreenSqueezeback=!1;d.isPlayerStarted=!1;d.overlayDensity=0;d.isOverlay=!1;d.isImmersive=!1;d.isImmersiveHorizontal=!1;d.isFullscreen=!1;d.onWindowResized=function(){var H;d.set("isImmersive",((H=window.getComputedStyle(d.hostElement))==null?void 0:H.getPropertyValue("--immersive-mode-on"))==="1");d.set("isImmersiveHorizontal",d.isImmersive&&d.enableLivingroomLayout&&!d.isWatchWhileMode)};
return d};
_.m(lz,_.B);_.G=lz.prototype;_.G.updateIsOverlay=function(d){this.isOverlay=d.detail.value};
_.G.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.h("web_enable_flexible_overlay")||_.h("web_enable_format_first")||_.h("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.G.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.G.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.G.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.G.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.G.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.G.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.G.ready=function(){(_.h("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.h("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.GJ("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.GJ("reels_action_justified_content")||"flex-start")};
_.G.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.G.setFakeLoadingButtons=function(){_.h("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Vz("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Vz("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Vz("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Vz("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Vz("REMIX_LABEL",void 0,"Remix")}}}));this.set("data.menu",{menuRenderer:{items:[{menuServiceItemRenderer:{}}]}});this.set("data.pivotButton",{pivotButtonViewModel:{backgroundColor:"THEME_ATTRIBUTE_OVERLAY_BACKGROUND_MEDIUM",icon:{iconType:"WAVEFORM"}}});this.setEmptyOverlayMetadata()};
_.G.setEmptyOverlayMetadata=function(){_.h("web_shorts_deflate_inactive_slides")&&(this.set("data.multiFormatLink",{reelMultiFormatLinkViewModel:void 0}),this.set("data.multimixAttributionLabel",void 0),this.set("data.suggestedAction",{shoppingOverlayRenderer:void 0,shortsSuggestedActionRenderer:void 0}),this.set("data.soundMetadata",{reelSoundMetadataViewModel:void 0}))};
_.H3.Object.defineProperties(lz.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.infoPanel)}}});
lz.prototype.onIsActiveChanged=lz.prototype.onIsActiveChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],lz.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],lz.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],lz.prototype,"ytdGuideStateAwareBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],lz.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],lz.prototype,"isActive",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],lz.prototype,"hidden",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],lz.prototype,"useShortsIcon",void 0);_.t([_.r({value:"left"}),_.O("design:type",String)],lz.prototype,"buttonTooltipPosition",void 0);
_.t([_.r({value:_.h("reels_enable_livingroom_layout")?"top":"left"}),_.O("design:type",String)],lz.prototype,"likeButtonTooltipPosition",void 0);_.t([_.r({value:"none"}),_.O("design:type",String)],lz.prototype,"textTransform",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lz.prototype,"showScrubber",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lz.prototype,"isWatchWhileMode",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("data.infoPanel"),_.O("design:type",Object),_.O("design:paramtypes",[])],lz.prototype,"hasInfoPanel",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lz.prototype,"enableAnchoredPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lz.prototype,"enableNewStickers",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lz.prototype,"anchoredPanelActive",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lz.prototype,"enableLivingroomLayout",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],lz.prototype,"enablePlayerMetadataContainer",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lz.prototype,"enableSqueezebackPanels",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lz.prototype,"useAspectRatio",void 0);
_.t([_.r({selector:_.$Ph,reflectToAttribute:!0}),_.O("design:type",Object)],lz.prototype,"isSqueezebackActive",void 0);_.t([_.r({selector:uMe,reflectToAttribute:!0}),_.O("design:type",Object)],lz.prototype,"smallScreenSqueezeback",void 0);_.t([_.r({selector:IDa}),_.O("design:type",Object)],lz.prototype,"isPlayerStarted",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lz.prototype,"overlayDensity",void 0);_.t([_.r(),_.O("design:type",Object)],lz.prototype,"isOverlay",void 0);
_.t([_.r({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.O("design:type",Boolean)],lz.prototype,"isShortsOverlay",void 0);_.t([_.r(),_.O("design:type",Object)],lz.prototype,"isImmersive",void 0);_.t([_.r(),_.O("design:type",Object)],lz.prototype,"isImmersiveHorizontal",void 0);_.t([_.r({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.O("design:type",Boolean)],lz.prototype,"isShortsImmersive",void 0);
_.t([_.r({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.O("design:type",Object)],lz.prototype,"buttonOverride",void 0);_.t([_.r({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.O("design:type",Object)],lz.prototype,"actionBarButtonOverride",void 0);_.t([_.r({selector:_.G_,reflectToAttribute:!0}),_.O("design:type",Object)],lz.prototype,"isFullscreen",void 0);
_.t([_.CK("isActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lz.prototype,"onIsActiveChanged",null);_.t([_.Z({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],lz);
_.T(lz,"ytd-reel-player-overlay-renderer",function(){if($U_!==void 0)return $U_;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return $U_=d},{mode:1});var gdc;var eF=function(){var d=_.B.apply(this,arguments)||this;d.videoDuration=0;d.playedTime=0;d.isActive=!1;d.JSC$22226_playerEvents=new Map;return d};
_.m(eF,_.B);_.G=eF.prototype;_.G.created=function(){this.JSC$22226_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22226_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.G.attached=function(){this.getPlayerAndInitializeListeners()};
_.G.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22226_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.xf(this,this.onPageChanged))};
_.G.getPlayerAndInitializeListeners=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1)return H=_.Kf(),H?K.yield(H.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.xf(d,d.onPageChanged)),K.jumpTo(0));d.player=K.yieldResult;d.initializePlayerListeners();_.VE(K)})};
_.G.onPageChanged=function(d){var H=this;return _.l(function(K){if(K.nextAddress==1)return d.detail.newPageType!=="ytd-shorts"?K.return():K.yield(_.cI().getPlayerPromise(),2);H.player=K.yieldResult;H.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.xf(H,H.onPageChanged));_.VE(K)})};
_.G.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22226_playerEvents)};
_.G.onVideoDataChange=function(d){var H=this;return _.l(function(K){if(!H.player||d.type!=="newdata")return K.return();H.videoDuration=_.h("web_shorts_use_progress_state_for_gapless")?H.player.getProgressState(d.playertype).seekableEnd:H.player.getDuration(d.playertype);H.playedTime=0;_.VE(K)})};
_.G.onVideoProgress=function(d){var H=this,K,c;return _.l(function(p){if(!H.player)return p.return();K=H.player.getPresentingPlayerType();c=H.player.getPlayerState();H.videoDuration=_.h("web_shorts_use_progress_state_for_gapless")?H.player.getProgressState(K).seekableEnd:H.player.getDuration(K);H.playedTime=c===0?H.videoDuration:d;_.VE(p)})};
_.G.getPercentPlayed=function(d,H){return d?_.zH(H/d,0,1):0};
_.H3.Object.defineProperties(eF.prototype,{percentPlayed:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration&&this.playedTime?Math.floor(this.getPercentPlayed(this.videoDuration,this.playedTime)*100):0}},
percentPlayedStyle:{configurable:!0,enumerable:!0,get:function(){var d="";return d=this.videoDuration&&this.playedTime?d+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):d+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],eF.prototype,"componentBehavior",void 0);_.t([_.u(_.jk.YtPlayerListenerBehavior),_.O("design:type",_.vn)],eF.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],eF.prototype,"player",void 0);_.t([_.r(),_.O("design:type",Object)],eF.prototype,"videoDuration",void 0);_.t([_.r(),_.O("design:type",Object)],eF.prototype,"playedTime",void 0);_.t([_.r(),_.O("design:type",Object)],eF.prototype,"isActive",void 0);
_.t([_.I("videoDuration","playedTime"),_.O("design:type",Number),_.O("design:paramtypes",[])],eF.prototype,"percentPlayed",null);_.t([_.I("videoDuration","playedTime"),_.O("design:type",Object),_.O("design:paramtypes",[])],eF.prototype,"percentPlayedStyle",null);_.t([_.I("videoDuration","isActive"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],eF.prototype,"hideProgressBar",null);
_.T(eF,"ytd-progress-bar-line",function(){if(gdc===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-progress-bar-line--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress-bar-line" hidden="[[hideProgressBar]]" role="progressbar" aria-valuenow$="[[percentPlayed]]" class="style-scope ytd-progress-bar-line">\n  <div class="progress-bar-background style-scope ytd-progress-bar-line"></div>\n  <div class="progress-bar-played style-scope ytd-progress-bar-line" style$="[[percentPlayedStyle]]"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);gdc=d}d=gdc;return d},{mode:_.qk("kevlar_poly_si_batch_j028")?1:2});var iXr;_.iV(_.RKU,"ytm-closed-captioning-button",{props:{captionIconType:_.dl,onClick:_.p7,ariaLabel:_.dl,ariaPressed:_.dl,isOverlay:_.p7,isModern:_.p7}});_.iV(_.WVq,"desktop-shorts-volume-controls",{props:{orientation:_.dl}});var kD=function(){var d=_.B.apply(this,arguments)||this;d.playerState=null;d.isMuted=!1;d.shortsModernControlsEnabled=_.h("web_shorts_modern_controls");d.volumeControlsOrientationState=_.h("web_shorts_modern_controls")?"vertical_down":"horizontal_right";d.isOverlay=!0;d.captionIconType=-1;d.ariaLabel="";d.overlayDensity=0;d.JSC$22229_playerEvents=new Map;d.onClosedCaptionsButtonClick=function(){d.player&&_.HH(d.player)&&(d.player.toggleSubtitles(),d.updateCaptionIconType())};
return d};
_.m(kD,_.B);_.G=kD.prototype;_.G.created=function(){this.JSC$22229_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22229_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22229_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.G.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.l8(28662);this.playPauseButtonClientVE=_.l8(36842);this.fullscreenButtonToggleOffClientVE=_.l8(222256);this.fullscreenButtonToggleOnClientVE=_.l8(222257);var d=_.Fj(),H=_.so();d&&H&&(_.h("combine_ve_grafts")?(_.ec(_.hR(),this.muteButtonClientVE,H),_.ec(_.hR(),this.playPauseButtonClientVE,H)):_.yz(d,H,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.G.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22229_playerEvents),this.player=null)};
_.G.updateCaptionIconType=function(){var d=-1,H=void 0,K=_.Vz("CLOSED_CAPTIONS_DISABLED");this.player&&_.HH(this.player)&&(_.gm0(this.player)?(H=!0,K=_.Vz("CLOSED_CAPTIONS_ON"),d=1):(H=!1,K=_.Vz("CLOSED_CAPTIONS_OFF"),d=0));this.captionIconType=d;this.ariaPressedState=H;this.ariaLabel=K};
_.G.getPlayerAndInitializeListeners=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1)return H=_.Kf(),H?K.yield(H.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.xf(d,d.onPageChanged)),K.jumpTo(0));d.player=K.yieldResult;d.initializePlayerListeners();_.VE(K)})};
_.G.onPageChanged=function(d){var H=this;return _.l(function(K){if(K.nextAddress==1)return d.detail.newPageType!=="ytd-shorts"?K.return():K.yield(_.cI().getPlayerPromise(),2);H.player=K.yieldResult;H.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.xf(H,H.onPageChanged));_.VE(K)})};
_.G.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22229_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.G.onPlayerStateChange=function(d){this.playerState=d};
_.G.onPlayerVolumeChange=function(d){this.isMuted=d.muted};
_.G.onPlayPauseButtonClick=function(){var d=this,H,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(_.cI().getPlayerPromise(),2);H=c.yieldResult;(K=_.Fj())&&d.playPauseButtonClientVE&&_.fo(K,d.playPauseButtonClientVE);H.getPlayerState()!==1?H.playVideo():H.pauseVideo();_.VE(c)})};
_.G.computePlayPauseIcon=function(d){return d===2||d===-1||d===5?_.h("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.h("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.h("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.G.computeFullscreenLabel=function(d){return d?_.Vz("FULLSCREEN_EXIT_LABEL"):_.Vz("FULLSCREEN_ENTER_LABEL")};
_.G.computePlayPauseLabel=function(d){return d===1||d===3?_.Vz("PLAYER_LABEL_PAUSE"):_.Vz("PLAYER_LABEL_PLAY")};
_.G.onMuteButtonClick=function(){var d=this,H,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(_.cI().getPlayerPromise(),2);H=c.yieldResult;(K=_.Fj())&&d.muteButtonClientVE&&_.fo(K,d.muteButtonClientVE);H.isMuted()?H.unMute(!0):H.mute(!0);_.VE(c)})};
_.G.computeMuteIcon=function(d){return d?"miniplayer:volume-off":"miniplayer:volume-up"};
_.G.computeMuteLabel=function(d){return d?_.Vz("PLAYER_LABEL_UNMUTE"):_.Vz("PLAYER_LABEL_MUTE")};
_.G.onFullscreenButtonClick=function(){var d=_.Fj();d&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.fo(d,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.fo(d,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.S_v()};
_.H3.Object.defineProperties(kD.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var d=this;return{disabled:!1,accessibilityLabel:this.computePlayPauseLabel(this.playerState),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computePlayPauseLabel(this.playerState),onTap:function(){d.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.h("web_shorts_modern_controls")?"player_full_exit_alt":_.h("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.h("web_shorts_modern_controls")?"player_full_enter_alt":_.h("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],kD.prototype,"componentBehavior",void 0);_.t([_.u(_.jk.YtPlayerListenerBehavior),_.O("design:type",_.vn)],kD.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],kD.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],kD.prototype,"player",void 0);_.t([_.r(),_.O("design:type",Object)],kD.prototype,"playerState",void 0);_.t([_.r(),_.O("design:type",Object)],kD.prototype,"isMuted",void 0);
_.t([_.r({computed:"computePlayPauseIcon(playerState)"}),_.O("design:type",String)],kD.prototype,"playPauseIcon",void 0);_.t([_.r({computed:"computeMuteIcon(isMuted)"}),_.O("design:type",String)],kD.prototype,"muteIcon",void 0);_.t([_.r({selector:_.G_}),_.O("design:type",Boolean)],kD.prototype,"isFullscreen",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],kD.prototype,"shortsModernControlsEnabled",void 0);
_.t([_.r(),_.O("design:type",Object)],kD.prototype,"volumeControlsOrientationState",void 0);_.t([_.r(),_.O("design:type",Object)],kD.prototype,"isOverlay",void 0);_.t([_.r(),_.O("design:type",Object)],kD.prototype,"captionIconType",void 0);_.t([_.r(),_.O("design:type",Object)],kD.prototype,"ariaLabel",void 0);_.t([_.r(),_.O("design:type",Object)],kD.prototype,"ariaPressedState",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],kD.prototype,"overlayDensity",void 0);
_.t([_.I("playerState"),_.O("design:type",Object),_.O("design:paramtypes",[])],kD.prototype,"playPauseButtonData",null);_.t([_.I("isFullscreen"),_.O("design:type",Object),_.O("design:paramtypes",[])],kD.prototype,"fullscreenButtonData",null);_.t([_.r(),_.O("design:type",Object)],kD.prototype,"onClosedCaptionsButtonClick",void 0);_.t([_.I("isFullscreen"),_.O("design:type",String),_.O("design:paramtypes",[])],kD.prototype,"fullscreenIcon",null);
_.T(kD,"ytd-shorts-player-controls",function(){if(iXr===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);iXr=d}d=iXr;return d},{mode:1});var G3K;_.iV(_.iPg,"yt-interstitial-view-model",{props:{data:_.dl}});var ode=_.H1(function(d){var H=d.data;return _.x("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.x("h1",{class:"reelWatchBreakViewModelHostTitle"},_.x(_.j$,{text:function(){return H().title}})),_.x("h2",{class:"reelWatchBreakViewModelHostBody"},_.x(_.j$,{text:function(){return H().body},
isOverlay:!0})),_.x(_.wB,{data:function(){return H().buttons}},{buttonViewModel:function(K,c){return _.x("div",{class:function(){return c()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.x(_.xk,{data:K.data}))}}))},"ak");
ode.idomCompat=!0;_.iV(ode,"reel-watch-break-view-model",{props:{data:_.dl}});var xD=function(){return _.B.apply(this,arguments)||this};
_.m(xD,_.B);xD.prototype.configureRendererStamper=function(){return{"data.renderer":{id:"nvc-container",mapping:{reelWatchBreakViewModel:{component:"reel-watch-break-view-model"},inlineSurveyRenderer:{component:"ytd-inline-survey-renderer"},interstitialViewModel:{component:"yt-interstitial-view-model"}},renderPriority:0}}};
_.H3.Object.defineProperties(xD.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var d;return!!_.M((d=this.data)==null?void 0:d.renderer,Nhw)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var d;return!!_.M((d=this.data)==null?void 0:d.renderer,Dfr)}}});
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],xD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],xD.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],xD.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],xD.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("data.renderer"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xD.prototype,"isSurvey",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.renderer"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xD.prototype,"isInterstitialViewModel",null);_.t([_.Z({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],xD);
_.T(xD,"ytd-reel-non-video-content-renderer",function(){if(G3K!==void 0)return G3K;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-non-video-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="nvc-container" class="nvc-container style-scope ytd-reel-non-video-content-renderer">\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
return G3K=d},{mode:_.qk("kevlar_poly_si_batch_j028")?1:2});var q3e;_.iV(_.rAG,"desktop-shorts-player-controls",{});var ni=function(){var d=_.B.apply(this,arguments)||this;d.isPlayerPaused=!1;d.isPlayerStarted=!1;d.showPlayerControls=!1;d.showScrubber=!1;d.autoHideJobId=0;d.modern=_.h("web_button_rework");d.overlayType=_.GJ("web_shorts_expanded_overlay_type");d.panelData=void 0;d.isWatchWhileMode=!1;d.hasError=!1;d.panelShowDelayMs=1;d.scrubberComponent={};d.isFullscreen=!1;d.shouldHideOverlay=!1;d.enableAnchoredPanel=_.h("desktop_shorts_v2_anchored_panel");d.enablePersistentAnchoredPanel=_.h("desktop_shorts_v2_persistent_anchored_panel");
d.hideWatchWhilePanel=_.h("web_shorts_hide_watch_while_panel");d.useAspectRatio=_.h("web_use_aspect_ratio");d.isPersistentPanelActive=!1;d.anchoredPanelActive=!1;d.isShortsPipActive=!1;d.smallScreenSqueezeback=!1;d.enableFlexibleOverlay=_.h("web_enable_flexible_overlay");d.overlayDensity=0;d.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};d.onWindowResized=function(){_.yP(d,
"calculateOverlayDensity",function(){d.calculateOverlayDensity()},100)};
return d};
_.m(ni,_.B);_.G=ni.prototype;_.G.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.G.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.G.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var d=_.Kj().resolve(_.W6);this.isWatchWhileMode&&(_.h("web_enable_shorts_new_carousel")?_.Xp.addJob(function(){d.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):d.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.G.handleShowReelsCommentsOverlayCommand=function(d){d=_.M(d,jEc);this.isActive&&(d==null?0:d.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.G.updateEngagementPanelVisibility=function(d,H){d&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:H?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:d}})};
_.G.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.G.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.Kj().resolve(_.Ls).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.G.handleWatchWhilePanelScrimClick=function(){var d=_.Kj().resolve(_.W6);this.activeWatchWhilePanel&&(d.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.G.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.G.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.h("web_enable_shorts_new_carousel")?0:void 0}}};
_.G.handlePlayerClick=function(d){var H=this,K,c;if((c=(K=window).matchMedia)!=null&&c.call(K,"(any-pointer: coarse)").matches||!d)this.showPlayerControls=!0,_.Xp.cancelJob(this.autoHideJobId),this.autoHideJobId=_.mf(_.Xp,function(){H.showPlayerControls=!1},4E3)};
_.G.isFirstReel=function(){return this.index===0};
_.G.handleMouseenter=function(){_.Xp.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.G.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.G.handleScrubberEnter=function(){this.showScrubber=!0};
_.G.handleScrubberLeave=function(){this.showScrubber=!1};
_.G.maybeLogNonDefaultAspectRatio=function(){var d;(d=this.data)!=null&&d.thumbnail&&this.isActive&&.5625!==P1_(this.data.thumbnail)&&_.X0F("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.G.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var d=document.querySelector("#shorts-container");if(d){d=d.offsetWidth/2-this.playerContainer.offsetWidth/2;d=d>=368?1:d>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&d===1&&(d=0);this.isPersistentPanelActive&&(d=0);window.innerWidth<=599&&(d=2);this.overlayDensity=d;var H;(H=this.onOverlayDensityChanged)==null||H.call(this,this.index,this.overlayDensity)}}};
_.G.onOverlayDensityChange=function(){var d;(d=this.onOverlayDensityChanged)==null||d.call(this,this.index,this.overlayDensity);(d=_.Gn(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&d.set("overlayDensity",this.overlayDensity);if(d=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))d.overlayDensity=this.overlayDensity};
_.G.isVideoContent=function(d){_.Kj().resolve(_.Ls);return!!_.M(d,_.P5)};
_.G.isNonVideoContent=function(d){_.Kj().resolve(_.Ls);return!!_.M(d,_.F5)};
_.G.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.H3.Object.defineProperties(ni.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var d,H;return _.h("web_enable_format_first")||((d=this.data)==null?void 0:d.adsOverlay)&&_.h("web_enable_format_first_ads_only")||((H=this.data)==null?void 0:H.reelPlayerOverlayRenderer)&&_.h("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.h("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var d;return!this.isActive||!this.isPlayerStarted||(d=this.data)!=null&&d.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var d;if(((d=this.data)==null?0:d.command)&&this.isVideoContent(this.data.command)){var H,K;if(((H=this.data)==null?0:H.adsOverlay)&&Object.keys((K=this.data)==null?void 0:K.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var c,p;if(((c=this.data)==null?0:c.reelPlayerOverlayRenderer)&&Object.keys((p=this.data)==null?void 0:p.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
ni.prototype.onOverlayDensityChange=ni.prototype.onOverlayDensityChange;ni.prototype.calculateOverlayDensity=ni.prototype.calculateOverlayDensity;ni.prototype.maybeLogNonDefaultAspectRatio=ni.prototype.maybeLogNonDefaultAspectRatio;ni.prototype.onEngagementPanelsChanged=ni.prototype.onEngagementPanelsChanged;ni.prototype.onScrubberDataChange=ni.prototype.onScrubberDataChange;ni.prototype.updateShouldHideOverlay=ni.prototype.updateShouldHideOverlay;
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ni.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],ni.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],ni.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ni.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Number)],ni.prototype,"index",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],ni.prototype,"isActive",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],ni.prototype,"isHiddenInDom",void 0);_.t([_.r(),_.O("design:type",Object)],ni.prototype,"isPlayerPaused",void 0);_.t([_.r({selector:IDa}),_.O("design:type",Object)],ni.prototype,"isPlayerStarted",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ni.prototype,"showPlayerControls",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ni.prototype,"showScrubber",void 0);_.t([_.r(),_.O("design:type",Object)],ni.prototype,"autoHideJobId",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ni.prototype,"modern",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ni.prototype,"overlayType",void 0);_.t([_.u(_.to),_.O("design:type",Object)],ni.prototype,"ytdReduxBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],ni.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ni.prototype,"watchWhileEngagementPanels",void 0);_.t([_.r(),_.O("design:type",Object)],ni.prototype,"panelData",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ni.prototype,"isWatchWhileMode",void 0);_.t([_.r(),_.O("design:type",String)],ni.prototype,"activeWatchWhilePanel",void 0);
_.t([_.r(),_.O("design:type",Object)],ni.prototype,"hasError",void 0);_.t([_.r(),_.O("design:type",Object)],ni.prototype,"panelShowDelayMs",void 0);_.t([_.r(),_.O("design:type",Object)],ni.prototype,"scrubberComponent",void 0);_.t([_.r({selector:_.G_,reflectToAttribute:!0}),_.O("design:type",Object)],ni.prototype,"isFullscreen",void 0);_.t([_.r(),_.O("design:type",Object)],ni.prototype,"shouldHideOverlay",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ni.prototype,"enableAnchoredPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ni.prototype,"enablePersistentAnchoredPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ni.prototype,"hideWatchWhilePanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ni.prototype,"useAspectRatio",void 0);
_.t([_.r({selector:_.$Ph,reflectToAttribute:!0}),_.O("design:type",Object)],ni.prototype,"isPersistentPanelActive",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ni.prototype,"anchoredPanelActive",void 0);_.t([_.r({selector:_.oI,reflectToAttribute:!0}),_.O("design:type",Object)],ni.prototype,"isShortsPipActive",void 0);_.t([_.r({selector:uMe,reflectToAttribute:!0}),_.O("design:type",Object)],ni.prototype,"smallScreenSqueezeback",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],ni.prototype,"enableFormatFirst",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ni.prototype,"enableFlexibleOverlay",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ni.prototype,"overlayDensity",void 0);_.t([_.r(),_.O("design:type",Function)],ni.prototype,"onOverlayDensityChanged",void 0);
_.t([_.r(),_.I("isActive","hasError","isPlayerStarted"),_.O("design:type",Object),_.O("design:paramtypes",[])],ni.prototype,"shouldRenderPlayerElements",null);_.t([_.r(),_.I("isActive","isWatchWhileMode"),_.O("design:type",Object),_.O("design:paramtypes",[])],ni.prototype,"watchWhileOrPersistentActive",null);_.t([_.CK("isActive","hasError","showingExpandedOverlay"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ni.prototype,"updateShouldHideOverlay",null);
_.t([_.r({reflectToAttribute:!0}),_.I("isActive","isPlayerStarted","data"),_.O("design:type",Object),_.O("design:paramtypes",[])],ni.prototype,"shouldRenderScrubber",null);_.t([_.CK("shouldRenderScrubber"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ni.prototype,"onScrubberDataChange",null);_.t([_.I("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],ni.prototype,"overlayComponent",null);
_.t([_.CK("watchWhileEngagementPanels"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ni.prototype,"onEngagementPanelsChanged",null);_.t([_.VP("#player-container"),_.O("design:type",HTMLElement)],ni.prototype,"playerContainer",void 0);_.t([_.VP("#cinematic-container"),_.O("design:type",HTMLElement)],ni.prototype,"cinematicContainer",void 0);
_.t([_.CK("isPersistentPanelActive","data.thumbnail"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ni.prototype,"maybeLogNonDefaultAspectRatio",null);_.t([_.CK("isPersistentPanelActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ni.prototype,"calculateOverlayDensity",null);_.t([_.CK("overlayDensity"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ni.prototype,"onOverlayDensityChange",null);
_.t([_.Z({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],ni);
_.T(ni,"ytd-reel-video-renderer",function(){if(q3e!==void 0)return q3e;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return q3e=d},{mode:_.qk("kevlar_poly_si_batch_j028")?1:2});var Ci=function(){var d=_.B.apply(this,arguments)||this;d.isPreviousPageShorts=!1;d.index=0;d.delayedActiveIndex=0;d.playablePreviousIndex=null;d.isPlayerPaused=!1;d.isPlayerStarted=!1;d.intersectionObserverThreshold=.6;d.fitToVisibleBounds=!1;d.pageSubtype="shorts";d.enablePreviousContinuation=_.h("shorts_in_playlists_web");d.shortsPipEnabled=_.h("web_shorts_pip");d.isDark=document.documentElement.hasAttribute("dark");d.shortsViewTransitions=_.h("web_shorts_view_transitions");d.isFullscreen=!1;d.isShortsPipActive=
!1;d.buttonOverride={iconPosition:"icon-only",size:"XL"};d.anchoredPanelActive=!1;d.isActive=!1;d.smallScreenPersistentPanel=!1;d.isPersistentPanelActive=!1;d.smallScreenSqueezeBack=!1;d.enableScrollIntoViewCenter=_.h("web_scroll_into_view_center");d.formatFirst=_.h("web_enable_format_first")||_.h("web_enable_format_first_ads_only")||_.h("web_enable_format_first_organic_only");d.enableFlexibleOverlay=_.h("web_enable_flexible_overlay");d.useAspectRatio=_.h("web_use_aspect_ratio");d.isShortsInitialized=
!1;d.hidePreviousButtonImmediately=!1;d.showPreviousButtonImmediately=!1;d.endOfNextContinuation=!1;d.currentPlayerIndex=0;d.nextReelVe=_.l8(56921);d.prevReelVe=_.l8(56922);d.loopToggleOffVe=_.l8(198013);d.loopToggleOnVe=_.l8(198014);d.ambientModeToggleVe=_.l8(227860);d.reelPlayerPausedStateRendererVe=_.l8(141313);d.storedPlaybackSpeed=null;d.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand",
"yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff",
"yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};d.onOverlayDensityChanged=function(H,K){var c;(c=d.getActiveReelVideo(H))==null||c.setAttribute("overlay-density",String(K))};
return d};
_.m(Ci,_.B);_.G=Ci.prototype;
_.G.deflateInactivePreviousSlides=function(){var d=_.iT("web_shorts_deflate_inactive_slides_aggressive_distance");if(d>0&&this.shortsProcessedSequence&&this.activeIndex){d=this.activeIndex-d;for(var H=0;H<=d;H++){var K=void 0;((K=this.shortsProcessedSequence[H].reelPlayerOverlayRenderer)==null?0:K.metapanel)&&this.set("shortsProcessedSequence."+H+".reelPlayerOverlayRenderer",{});K=void 0;((K=this.shortsProcessedSequence[H].adsOverlay)==null?0:K.adSlotMetadata)&&this.set("shortsProcessedSequence."+H+
".adsOverlay",{})}}};
_.G.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.G.onResize=function(){var d=_.dn(),H=d.dispatch,K=this.calculateIsSmallWidth();H.call(d,_.iZ({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:K}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.G.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.h("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.G.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var d=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,H=d,K=0;d<250&&(H=d+this.shortsInnerContainer.clientWidth,K=24);_.eO(this.hostElement,{"--ytd-shorts-header-width":H+"px","--ytd-shorts-top-spacing":K+"px"})}};
_.G.isFirstShorts=function(d){return d?this.index===-d.length:this.index===0};
_.G.isActiveReel=function(d,H,K){K&&(H=this.calculatePrevIndex(H,K));return d===H};
_.G.onFullscreenChange=function(){if(_.h("web_fullscreen_shorts")){var d;(d=this.getActiveReelVideo(this.activeIndex))==null||d.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.Kj().resolve(_.Fb).close(!0)}};
_.G.engagementPanelsChanged=function(){var d;this.watchWhileEngagementPanels=(d=this.data)==null?void 0:d.engagementPanels};
_.G.unregisterPanels=function(){var d=_.Kj().resolve(_.W6);if(this.watchWhileEngagementPanels)for(var H=_.q(this.watchWhileEngagementPanels),K=H.next();!K.done;K=H.next()){var c=K.value,p=void 0,g=void 0;K=(p=c.engagementPanelSectionListRenderer)==null?void 0:(g=p.identifier)==null?void 0:g.tag;c=this.getPanelContentIdentifier(c.engagementPanelSectionListRenderer);d&&(K&&d.panelMap.delete(K),c&&_.h("web_shorts_panel_caching_bugfix")&&(p=K=void 0,(p=(K=d).unregisterPanelContent)==null||p.call(K,c)))}};
_.G.isVideoContent=function(d){return this.isVideoContentCommand(d==null?void 0:d.command)};
_.G.getActiveReelVideo=function(d){return _.Gn(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+d+'"]')};
_.G.calculatePrevIndex=function(d,H){return H?d-((H==null?void 0:H.length)||0):-1};
_.G.onKeydown=function(d){var H=_.jh(d)||[];if(!_.O5t(H))if(d.code==="ArrowUp")d.preventDefault(),this.handlePrevButtonClick();else if(d.code==="ArrowDown")d.preventDefault(),this.handleNextButtonClick();else if(d.code==="KeyM")this.toggleMuteUnmuteVideo();else if(d.code==="KeyK"||d.code==="Space")this.togglePlayPauseVideo();else if((d.code==="KeyA"||d.code==="ArrowLeft")&&_.h("web_shorts_keyboard_enable_seek_shortcuts")){var K;(K=this.player)==null||K.seekBy(-5)}else if((d.code==="KeyD"||d.code===
"ArrowRight")&&_.h("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var c;(c=this.player)==null||c.seekBy(5)}};
_.G.onServiceRequestCompleted=function(d,H){d=H.data;d.continuationEndpoint&&d.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:d.entries,continuationEndpoint:d.continuationEndpoint}}):d.prevContinuationEndpoint&&d.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:d.prevEntries,prevContinuationEndpoint:d.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.G.handleEngagementPanelVisibilityChanged=function(d,H){var K=_.Kj().resolve(_.W6);if(d&&K){var c=this.getPanelIdentifier(d);if(H==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==c){K.hidePanel(this.activePanel);var p;this.activePanel=((p=d.identifier)==null?void 0:p.tag)||d.panelIdentifier}else this.isPersistentPanelActive=!0,_.dn().dispatch(tlw(!0)),this.anchoredPanelActive=!0,this.activePanel=c;else H==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
c&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.dn().dispatch(tlw(!1)))}};
_.G.handlePanelScrimClick=function(){var d=_.Kj().resolve(_.W6);this.activePanel&&(d.hidePanel(this.activePanel),_.dn().dispatch(tlw(!1)))};
_.G.getShortsLoopSetting=function(){var d,H,K,c,p;return _.l(function(g){switch(g.nextAddress){case 1:return _.h("kevlar_shorts_auto_advance")?g.yield(_.rI.getInstance(),2):g.return(!0);case 2:return(d=g.yieldResult)?g.yield(d.get("sfvles"),3):g.return(!0);case 3:return K=(H=g.yieldResult)!=null?H:!1,g.yield(d.get("sfvle"),4);case 4:return p=(c=g.yieldResult)!=null?c:!0,K?g.return(p):g.return(!0)}})};
_.G.handleSignalActionToggleLoopShortsOff=function(){var d=this,H,K,c;return _.l(function(p){switch(p.nextAddress){case 1:if(!d.player)return p.return();d.player.setLoopVideo(!1);H=_.hR();_.xR(H,d.loopToggleOffVe);return p.yield(_.rI.getInstance(),2);case 2:return(K=p.yieldResult)?p.yield(K.set("sfvle",!1),3):p.return();case 3:return p.yield(K.set("sfvles",!0),4);case 4:c=_.Lo(),_.Mo(0,203,!1),_.Mo(0,204,!0),c.save(),_.VE(p)}})};
_.G.handleSignalActionToggleLoopShortsOn=function(){var d=this,H,K,c;return _.l(function(p){switch(p.nextAddress){case 1:if(!d.player)return p.return();d.player.setLoopVideo(!0);H=_.hR();_.xR(H,d.loopToggleOnVe);return p.yield(_.rI.getInstance(),2);case 2:return(K=p.yieldResult)?p.yield(K.set("sfvle",!0),3):p.return();case 3:return p.yield(K.set("sfvles",!0),4);case 4:c=_.Lo(),_.Mo(0,203,!0),_.Mo(0,204,!0),c.save(),_.VE(p)}})};
_.G.handleSignalActionToggleCinematicShortsOn=function(){wFe(!0);var d;(d=this.JSC$22253_cinematicController)==null||_.RXS(d,!0);_.xR(_.hR(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.G.handleSignalActionToggleCinematicShortsOff=function(){wFe(!1);var d;(d=this.JSC$22253_cinematicController)==null||_.RXS(d,!1);_.xR(_.hR(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.G.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.G.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.G.unhideCurrentOverlay=function(){if(this.overlayContainer){var d=this.overlayContainer.querySelector("#experiment-overlay");d&&_.Xp.addLowPriorityJob(function(){d.style.display="unset"},100)}};
_.G.getCurrentShort=function(){if(this.currentEndpoint){var d=this.currentEndpoint;if(this.isNonVideoContentCommand(d)){var H=_.M(d,_.F5);return{reelNonVideoContentRenderer:_.M(H==null?void 0:H.renderer,_.hS0),command:d}}if(this.data){var K;H=(K=_.M(this.currentEndpoint,_.P5))==null?void 0:K.thumbnail;var c;K=(c=this.data.overlay)==null?void 0:c.reelPlayerOverlayRenderer;_.Kj().resolve(_.Ls);d=this.data;var p,g;c=(p=d.overlay)==null?void 0:(g=p.shortsAdsRenderer)==null?void 0:g.adSlots;if(c!==void 0)c.length===
0?(_.Db("Shorts ads returned no ad slots."),d=void 0):(c.length>1&&_.Db("Shorts ads has more than one ad slots."),d=_.M(c[0],_.ZVN));else{var a,e;d=_.M((a=d.overlay)==null?void 0:(e=a.shortsAdsRenderer)==null?void 0:e.overlay,_.ZVN)}a=d;d=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.M(this.currentEndpoint,_.P5),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:K,thumbnail:H,command:d,adsOverlay:a}}}};
_.G.created=function(){var d=this;this.scrollToVideoThrottle=new _.NV(function(H){var K;(K=d.getActiveReelVideo(H))==null||K.scrollIntoView({behavior:"smooth",block:"nearest",inline:d.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.NV(function(H){var K;(K=d.getActiveReelVideo(H))==null||K.scrollIntoView({behavior:"auto",block:"nearest",inline:d.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.G.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.G.attached=function(){var d=this;_.Kj().resolve(_.Ls).registerRootElement(this);this.pageScrollElement=_.Gn(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.xf(this,this.processResetAction));_.h("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var H=d.getActiveReelVideo(d.activeIndex);d.maybeCreateIntersectionObserver();H==null||H.scrollIntoView({behavior:"instant",
block:"nearest",inline:d.enableScrollIntoViewCenter?"center":"start"});d.shortsContainer.style.overflowY="scroll"}))};
_.G.updateReelWatchSequenceResponse=function(){var d=this;if(_.h("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&_.M(this.currentEndpoint,_.P5).sequenceParams&&!this.reelWatchSequenceResponse){var H=_.Kj().resolve(_.Ls);H&&QEH(H,this.currentEndpoint).then(function(K){K&&(d.reelWatchSequenceResponse=K,_.Xp.addLowPriorityJob(function(){d.maybeCreateIntersectionObserver(!0)}))})}};
_.G.calculateSqueezebackPanelSize=function(){var d=this,H=window.innerWidth-456-(window.innerHeight-106)*.5625;_.Xp.addLowPriorityJob(function(){H<360?_.dn().dispatch(Y5e(!0)):(d.hostElement.style.setProperty("--anchored-panel-width",Math.min(H,480)+"px"),_.dn().dispatch(Y5e(!1)))})};
_.G.detached=function(){var d=_.Kj().resolve(_.Ls);d.rootElement=void 0;var H;(H=d.unsubscribeFromStore)==null||H.call(d);d.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.xf(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.G.onResizeFinished=function(d,H){var K=this,c=new ResizeObserver(function(){K.shortsContainer.style.overflowY="hidden";_.Xp.addLowPriorityJob(function(){H()},100)});
c.observe(d);return c};
_.G.resetDocumentScrollTop=function(){var d,H;if((d=document)==null?0:(H=d.scrollingElement)==null?0:H.scrollTop)document.scrollingElement.scrollTop=0};
_.G.loadPage_=function(d){var H=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),d){var K;!_.h("web_enable_delay_shorts_sequence_call")&&((K=_.M(this.currentEndpoint,_.P5))==null?0:K.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=d;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){H.isPlayerStarted&&(H.handleOnPlaybackCommand(),H.afterPlayerStarted=function(){})};
this.registerPanel(d)}};
_.G.afterPlayerStarted=function(){};
_.G.handleOnPlaybackCommand=function(){if(_.h("web_shorts_comment_stickers")&&this.isPlayerStarted){var d,H=(d=_.M(this.currentEndpoint,_.P5))==null?void 0:d.onPlaybackCommand;H&&this.ytComponentBehavior.resolveCommand(H)}};
_.G.maybeCreateIntersectionObserver=function(d){var H=this;d=d===void 0?!1:d;var K=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==K||d){this.intersectionObserverThreshold=K;d={rootMargin:"0px",threshold:K};var c;(c=this.intersectionObserver)==null||c.disconnect();this.intersectionObserver=new IntersectionObserver(function(p){p=_.q(p);for(var g=p.next();!g.done;g=p.next())if(g=g.value,g.intersectionRatio>K){g=Number(g.target.id);if(isNaN(g))break;
if(g===H.index)break;_.avF();H.loadVideo(g);_.TT("r_vtc")}},d);
this.observeShorts()}};
_.G.observeShorts=function(){var d=[].concat(_.ru(_.Gn(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));d=_.q(d);for(var H=d.next();!H.done;H=d.next()){H=H.value;var K=void 0;(K=this.intersectionObserver)==null||K.observe(H)}};
_.G.initCsi=function(){_.X_("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var d={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},H,K;if((H=this.playerData)==null?0:(K=H.cacheMetadata)==null?0:K.isCacheHit)d.isCacheHit=!0;var c;if(H=(c=_.M(this.currentEndpoint,_.P5))==null?void 0:
c.prefetchTaskId)d.prefetchInfo={taskId:H};_.Xw(d)};
_.G.isAd=function(){var d,H;return!!((d=_.M(this.currentEndpoint,_.P5))==null?0:(H=d.adClientParams)==null?0:H.isAd)};
_.G.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.G.getPlayerContainer=function(){var d;return(d=_.Gn(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:d.playerContainer};
_.G.onPlayerStateChange=function(d){var H=this;this.isPlayerPaused=d===2;d!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?d===1&&this.index===0&&(this.isPlayerStarted||_.dn().dispatch(iz(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.dn().dispatch(iz(!0)));this.player&&!this.player.getLoopVideo()&&_.Xp.addLowPriorityJob(function(){H.getShortsLoopSetting().then(function(K){var c;(c=H.player)==null||c.setLoopVideo(K)})});
this.isPlayerPaused&&_.h("web_shorts_paused_state_logging")&&_.No(_.Fj(),[this.reelPlayerPausedStateRendererVe])};
_.G.isInBackground=function(){var d=window.document.visibilityState;return!(!d||d==="visible")};
_.G.isShortPlayable=function(){if(_.h("kevlar_playable_short_killswitch"))return!0;var d;return(d=this.playerData)!=null&&d.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.G.setNormalPlaybackSpeed=function(){var d=this,H,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(d.getPlayer().getPlayerPromise(),2);H=c.yieldResult;K=H.getPlaybackRate();K!==1&&(d.storedPlaybackSpeed=K,H.setPlaybackRate(1));_.VE(c)})};
_.G.restorePlaybackSpeed=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1)return d.storedPlaybackSpeed===null?K.jumpTo(0):K.yield(d.getPlayer().getPlayerPromise(),3);H=K.yieldResult;H.setPlaybackRate(d.storedPlaybackSpeed);d.storedPlaybackSpeed=null;_.VE(K)})};
_.G.playerDataChanged=function(){var d=this,H,K,c,p,g,a,e,k,C;return _.l(function(R){if(R.nextAddress==1){H=d.getPlayer();(K=d.intersectionObserver)==null||K.disconnect();if(d.playerData){if(((c=d.playerData.videoDetails)==null?void 0:c.videoId)!==((p=H.getPlayer())==null?void 0:p.getVideoData().video_id)){g={};if(a=_.M(d.currentEndpoint,_.P5))g.watch_endpoint=a,a.endTimeSeconds&&(g.end=a.endTimeSeconds);H.loadVideoWithPlayerResponse(d.playerData,g)}}else return R.return();return d.player?R.jumpTo(2):
R.yield(H.getPlayerPromise(),3)}R.nextAddress!=2&&(d.player=R.yieldResult,d.JSC$22253_playerStateChangeListener=d.onPlayerStateChange.bind(d),d.player.addEventListener("onStateChange",d.JSC$22253_playerStateChangeListener),_.h("kevlar_client_enable_shorts_player_bootstrap")&&_.YE(),d.scrollToVideoThrottle.fire(d.index),d.movePlayerToVideo(d.index),_.Xp.addLowPriorityJob(function(){d.getShortsLoopSetting().then(function(V){var U;(U=d.player)==null||U.setLoopVideo(V)})}),_.GsS.resolve(d.player),d.player.syncVolume(),
d.getPlayer().focusOnPlayer());
_.Xp.addLowPriorityJob(function(){d.observeShorts()},100);
e=d.player.getPlayerState(d.player.getPresentingPlayerType());e!==1||d.isPlayerStarted||_.dn().dispatch(iz(!0));d.updateBackNavContainerWidth();k=_.M(d.currentEndpoint,_.P5);((C=k)==null?0:C.startTimeSeconds)&&d.player.seekTo(k.startTimeSeconds);if(d.JSC$22253_cinematicController||d.cinematicsInitializeJobId)return R.return();d.cinematicsInitializeJobId=_.Xp.addLowPriorityJob(function(){d.initCinematicController();d.cinematicsInitializeJobId=void 0});
_.VE(R)})};
_.G.onShortUndoDismiss=function(){var d=this,H=ThL().pop();H!==void 0&&(_.vV(this,function(){d.showCardWithIndex(H)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.G.onShortsDismiss=function(d){if(d=d.detail.reelDismissalActionRenderer)(d=_.M(d.onDismissalCompletionRenderer,_.D7S))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:d}}}),this.scrollAndDismissCard()};
_.G.processReelNonVideoContentDismissalCommand=function(d){var H=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);d=_.M(d,ACE);this.activeDimissalTimeout=setTimeout(function(){H.scrollAndDismissCard()},Number(d==null?void 0:d.delayMs))};
_.G.scrollAndDismissCard=function(){var d=this,H=this.index;ThL().push(H);_.vV(this,function(){var K=d.getPlayableNextIndex();K!==null&&(K=d.getActiveReelVideo(K),d.hideCardWithIndex(H),K==null||K.scrollIntoView({behavior:"smooth",block:"nearest",inline:d.enableScrollIntoViewCenter?"center":"start"}))})};
_.G.hideCardWithIndex=function(d){if(d=this.getActiveReelVideo(d))d.hidden=!0};
_.G.showCardWithIndex=function(d){if(d=this.getActiveReelVideo(d))d.hidden=!1};
_.G.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.G.activeChanged=function(d){_.dn().dispatch(_.iZ({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:d}}));if(d)document.addEventListener("keydown",_.xf(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var H;(H=this.player)==null||H.sendAbandonmentPing()}var K;(K=this.player)==null||K.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.xf(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.G.graftClientVisualElements=function(){if(this.data){var d=_.hR();_.iJC(d,_.e5({response:this.reelWatchSequenceResponse}));_.ec(d,this.nextReelVe);_.ec(d,this.prevReelVe);_.h("kevlar_shorts_auto_advance")&&(_.ec(d,this.loopToggleOffVe),_.ec(d,this.loopToggleOnVe));_.ec(d,this.ambientModeToggleVe);_.No(_.Fj(),[this.nextReelVe,this.prevReelVe]);_.h("web_shorts_paused_state_logging")&&_.ec(d,this.reelPlayerPausedStateRendererVe)}};
_.G.graftNvcRenderer=function(){var d,H,K,c,p=this.index<0?(d=this.shortsProcessedPrevSequence)==null?void 0:(H=d[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:H.command:(K=this.shortsProcessedSequence)==null?void 0:(c=K[this.index])==null?void 0:c.command;if(p&&this.isNonVideoContentCommand(p)){d=_.M(p,_.F5);var g,a;(d=(g=_.M(d==null?void 0:d.renderer,_.hS0))==null?void 0:(a=g.loggingDirectives)==null?void 0:a.trackingParams)&&_.hR().graftServerVe(d)}};
_.G.setActiveIndex=function(){_.Kj().resolve(_.Ls).setActiveIndex(this.index)};
_.G.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.G.lazyUpdateMiniplayerData=function(){var d=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.Xp.addLowPriorityJob(function(){d.updateMiniplayerData();d.updateMiniplayerDataJobId=void 0}))};
_.G.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.Xp.cancelJob(this.updateMiniplayerDataJobId)};
_.G.updateMiniplayerData=function(){var d,H,K,c=_.Kj().resolve(_.Fb),p={shortsData:this.getCurrentShort(),previousButtonDisabled:!((d=this.prevButtonData)==null||!d.isDisabled),nextButtonDisabled:!((H=this.nextButtonData)==null||!H.isDisabled),playabilityStatus:(K=this.playerData)==null?void 0:K.playabilityStatus};_.Sr(c,p)};
_.G.resetPlayerLocation=function(){var d=this.getPlayer();this.initialPlayerContainer&&d.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.G.movePlayerToVideo=function(d,H){var K=this;H=H===void 0?!0:H;var c=this.getActiveReelVideo(d),p=this.getPlayer();if(c){this.overlayContainer?c.appendChild(this.overlayContainer):(this.overlayContainer=_.Gn(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,c.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||p.appendTo(this.overlayContainer.playerContainer,void 0,!0));var g;(g=this.player)==null||g.setSize(NaN,NaN);this.isActive||_.mf(_.Xp,function(){K.isActive=
!0});
p.style.visibility="visible";_.h("reels_web_disable_rtr_tick")||_.h("reels_web_use_pbs_first_shorts")&&d===0||_.Fw("r_tr");this.currentPlayerIndex=d;c.appendChild(this.errorScreenContainer);var a;(a=this.JSC$22253_cinematicController)==null||_.Ufe(a)}else H?_.Xp.addLowPriorityJob(function(){K.movePlayerToVideo(K.index,!1)}):Math.random()<=_.iT("web_shorts_error_logging_threshold")&&_.Xi(new _.m1("Trying to movePlayerToVideo with undefined container.",{firstAttempt:H,
index:d}))};
_.G.enableFormatFirst=function(d){return _.h("web_enable_format_first")||d.adsOverlay&&_.h("web_enable_format_first_ads_only")||d.reelPlayerOverlayRenderer&&_.h("web_enable_format_first_organic_only")};
_.G.getAspectRatio=function(d){if(d!=null&&d.thumbnail&&this.enableFormatFirst(d))return"--ytd-shorts-player-ratio: "+P1_(d.thumbnail)};
_.G.getBackgroundImage=function(d){if(d!=null&&d.thumbnail)return(d=_.od(d.thumbnail.thumbnails))?'background-image:url("'+d+'");':"background-color:black;"};
_.G.onPersistentPanelActiveChanged=function(){var d=this.getCurrentShort();if(d&&this.enableFormatFirst(d)&&(d==null?0:d.thumbnail)&&P1_(d.thumbnail)!==.5625){var H;(H=this.player)==null||H.setSize(NaN,NaN)}};
_.G.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.G.moveCinematicsToVideo=function(){var d=_.Gn(this.hostElement).querySelector("ytd-reel-video-renderer");(d==null?0:d.cinematicContainer)&&d.cinematicContainer!==this.shortsCinematicContainer.parentElement&&d.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.G.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.G.updatePrevButtonData=function(){var d=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(d){var H;this.prevButtonData=d=Object.assign({},d,{accessibility:{label:_.Vz("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:d.isDisabled||this.index===-(((H=this.shortsProcessedPrevSequence)==null?void 0:H.length)||0),tooltip:this.isUpArrowHidden?"":_.Vz("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=d=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.G.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.G.updateNextButtonData=function(){var d=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(d){var H;this.nextButtonData=d=Object.assign({},d,{accessibility:{label:_.Vz("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:d.isDisabled||this.index===((H=this.shortsProcessedSequence)==null?void 0:H.length),tooltip:_.Vz("NEXT_VIDEO_LABEL")||""})}};
_.G.getPlayablePreviousIndex=function(){for(var d,H=this.index-1;H>=-(((d=this.prevShortsSequence)==null?void 0:d.length)||0);H--)if(!ThL().includes(H))return H;return null};
_.G.getIndexInSequence=function(d,H){return d.findIndex(function(K){var c;return((c=_.M(K.command,_.P5))==null?void 0:c.videoId)===H})};
_.G.handlePrevButtonClick=function(d){var H=this,K,c;return _.l(function(p){K=H.getPlayablePreviousIndex();if(K===null)return p.return();H.gestureType=((c=d)==null?void 0:c.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";K===0&&(H.hidePreviousButtonImmediately=!0);if(H.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){H.transitionToVideoThrottle.fire(K)}),p.return();
H.scrollToVideoThrottle.fire(K);_.VE(p)})};
_.G.getPlayableNextIndex=function(){for(var d,H=this.index+1;H<(((d=this.shortsProcessedSequence)==null?void 0:d.length)||0);H++)if(!ThL().includes(H))return H;return null};
_.G.handleNextButtonClick=function(d,H){var K=this,c,p;return _.l(function(g){c=K.getPlayableNextIndex();if(c===null)return g.return();c===1&&(K.showPreviousButtonImmediately=!0);K.gestureType=((p=d)==null?void 0:p.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";H&&(K.gestureType=H);if(K.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){K.transitionToVideoThrottle.fire(c)}),g.return();
K.scrollToVideoThrottle.fire(c);_.VE(g)})};
_.G.handleReelNavigateCommand=function(d,H,K){(d=_.M(d,fDH))&&H&&d.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(K)};
_.G.loadVideo=function(d,H){H=H===void 0?!1:H;if(d!==this.currentPlayerIndex){_.dn().dispatch(iz(!1));if(this.isAd()&&!H){var K;(K=this.player)==null||K.notifyShortsAdSwipeEvent()}if((H=this.JSC$22253_cinematicController)!=null){var c;(c=H.currentCinematicEffect)==null||c.pause()}if((c=this.JSC$22253_cinematicController)!=null){var p;(p=c.currentCinematicEffect)==null||p.clear()}c=d>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(c));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var g,a,e,k;p=d<0?(g=this.shortsProcessedPrevSequence)==null?void 0:(a=g[this.shortsProcessedPrevSequence.length+d])==null?void 0:a.command:(e=this.shortsProcessedSequence)==null?void 0:(k=e[d])==null?void 0:k.command;this.index=d;this.gestureType||(this.gestureType=c?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
p&&this.isVideoContentCommand(p)&&(this.ytComponentBehavior.resolveCommand(p,{form:{createScreenConfig:{clickedVisualElement:c?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(p&&this.isNonVideoContentCommand(p)){this.currentEndpoint=p;this.data=void 0;g=_.hR();a=_.M(p,_.F5);var C,R;(a=(C=_.M(a==null?void 0:a.renderer,_.hS0))==null?void 0:(R=C.screenLoggingData)==null?void 0:R.screenVeType)&&_.ld(g,a);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(C=this.getActiveReelVideo(d))&&C.appendChild(this.overlayContainer)}var V,U;if(((V=this.reelWatchSequenceResponse)==null?0:V.continuationEndpoint)&&((U=this.reelWatchSequenceResponse)==null?0:U.entries)&&d===this.reelWatchSequenceResponse.entries.length-1){var L,w;V={contentPlaybackContext:_.rn({},(w=_.M((L=this.currentEndpoint)==null?void 0:L.commandMetadata,_.Co))==null?void 0:w.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:V})}var W,J,F;((W=this.reelWatchSequenceResponse)==null?0:W.prevContinuationEndpoint)&&d===-(((J=this.reelWatchSequenceResponse)==null?void 0:(F=J.prevEntries)==null?void 0:F.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.G.setMiniplayerPreview=function(d){d=(d===void 0?0:d)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var H,K,c=_.Kj().resolve(_.Fb),p={shortsData:void 0,shortsPreviewThumbnail:d?(H=this.shortsProcessedSequence)==null?void 0:(K=H[d])==null?void 0:K.thumbnail:void 0};_.Sr(c,p)};
_.G.updateTitle=function(d){var H,K;d=(d==null?0:d.adSlots)?"":(K=d==null?void 0:(H=d.videoDetails)==null?void 0:H.title)!=null?K:"";_.GT(this.hostElement,"yt-update-title",d)};
_.G.registerPanel=function(d){var H=_.Kj().resolve(_.W6);if(H){d=_.q(d.engagementPanels||[]);for(var K=d.next();!K.done;K=d.next()){K=K.value;var c=this.getPanelContentIdentifier(K.engagementPanelSectionListRenderer),p=void 0,g=void 0;(g=(p=H).registerPanelContent)==null||g.call(p,c,K)}}};
_.G.getPanelIdentifier=function(d){var H;return(d==null?void 0:(H=d.identifier)==null?void 0:H.tag)||(d==null?void 0:d.panelIdentifier)||(d==null?void 0:d.targetId)};
_.G.getPanelContentIdentifier=function(d){var H;return(d==null?void 0:d.targetId)||(d==null?void 0:d.panelIdentifier)||(d==null?void 0:(H=d.identifier)==null?void 0:H.tag)};
_.G.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.dn().dispatch(iz(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;_.dn().dispatch(tlw(!1));var d=_.Kj().resolve(_.Ls);d.dismissedIndices=[];d.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&
_.Kj().resolve(_.Fb).close(!0)};
_.G.processAppendReelWatchSequenceContinuationEntriesAction=function(d){var H=this,K;(K=this.intersectionObserver)==null||K.disconnect();d=d.appendReelWatchSequenceContinuationEntriesAction;if(d==null?0:d.entries){var c;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.ru(((c=this.reelWatchSequenceResponse)==null?void 0:c.entries)||[]),_.ru(d.entries)),continuationEndpoint:d.continuationEndpoint})}else if(d==null?0:d.prevEntries){var p;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.ru(((p=this.reelWatchSequenceResponse)==null?void 0:p.prevEntries)||[]),_.ru(d.prevEntries)),prevContinuationEndpoint:d.prevContinuationEndpoint});_.Xp.addLowPriorityJob(function(){H.movePlayerToVideo(H.index);var g;(g=H.getActiveReelVideo(H.index))==null||g.scrollIntoView({block:"nearest",inline:H.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.Xp.addLowPriorityJob(function(){H.observeShorts()},100)};
_.G.processWatchSequence=function(d){var H=this;return d.map(function(K){K=K.command;if(H.isVideoContentCommand(K)){var c=_.M(K,_.P5);return{reelPlayerOverlayRenderer:_.M(c==null?void 0:c.overlay,_.L_U),thumbnail:c.thumbnail,command:K}}return H.isNonVideoContentCommand(K)?(c=_.M(K,_.F5),{reelNonVideoContentRenderer:_.M(c==null?void 0:c.renderer,_.hS0),command:K}):{command:K}})};
_.G.calculateIntersectionObserverThreshold=function(){var d=_.Gn(this.hostElement).querySelector("ytd-reel-video-renderer"),H=1;(d==null?0:d.offsetHeight)&&(d==null?0:d.offsetWidth)&&(H=Math.min(d.offsetHeight,this.shortsContainer.offsetHeight)/d.offsetHeight*(Math.min(d.offsetWidth,this.shortsContainer.offsetWidth)/d.offsetWidth));return Math.round(H*.6*10)/10};
_.G.isVideoContentCommand=function(d){_.Kj().resolve(_.Ls);return!!_.M(d,_.P5)};
_.G.isNonVideoContentCommand=function(d){_.Kj().resolve(_.Ls);return!!_.M(d,_.F5)};
_.G.initCinematicController=function(){var d=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22253_cinematicController=new _.gL(this.shortsCinematicContainer,this.player);var H,K=_.M((H=this.data)==null?void 0:H.background,_.WL);_.VlE(this.JSC$22253_cinematicController,K);_.RXS(this.JSC$22253_cinematicController,mfr(K));_.C1e(this.JSC$22253_cinematicController);_.Xp.addLowPriorityJob(function(){d.moveCinematicsToVideo()})}};
_.G.handleMiniplayerNavigateShorts=function(d){d==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():d==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.G.handleSignalActionToggleShortsPictureInPicture=function(){if(_.Kj().resolve(_.Fb).pictureInPictureSupported()){var d=_.Kj().resolve(_.Ls);if(_.h("web_shorts_pip")){var H=_.Kj().resolve(_.Fb);d.isShortsPipActive()?H.deactivate():H.isMiniplayerActive()||(_.UT().shortsPipActivation=!0,_.tu5(H))}}else(d=this.player)==null||d.togglePictureInPicture()};
_.H3.Object.defineProperties(Ci.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.reelWatchSequenceResponse)!=null&&d.prevEntries)return this.processWatchSequence([].concat(_.ru(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var d=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!d)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var H=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.ru(this.prevShortsSequence.slice(0,H)),[d],_.ru(this.prevShortsSequence.slice(H+
1)))}H=this.index+this.shortsProcessedPrevSequence.length;d.thumbnail=this.shortsProcessedPrevSequence[H].thumbnail;return[].concat(_.ru(this.shortsProcessedPrevSequence.slice(0,H)),[d],_.ru(this.shortsProcessedPrevSequence.slice(H+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.reelWatchSequenceResponse)!=null&&d.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var d=this.getCurrentShort();if(!d||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[d];if(d==null||!d.reelNonVideoContentRenderer){var H=this.getIndexInSequence(this.shortsSequence,_.M(this.currentEndpoint,_.P5).videoId);if(this.index===0&&H!==-1)return this.currentPlayerIndex=this.index=H,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.ru(this.shortsSequence.slice(0,this.index)),[d],_.ru(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){d.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var K,c,p,g;H=((c=_.M((K=this.shortsProcessedSequence[0])==null?void 0:K.command,_.P5))==null?void 0:c.videoId)===((g=_.M((p=this.shortsSequence[0])==null?void 0:p.command,_.P5))==null?void 0:g.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.ru(this.shortsProcessedSequence.slice(0,
this.index)),[d],_.ru(this.shortsSequence.slice(H)))}return[d].concat(_.ru(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var d=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;d&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(d)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var d,H;return this.index===((d=this.reelWatchSequenceResponse)==null?void 0:(H=d.entries)==null?void 0:H.length)}var K;return!((K=this.reelWatchSequenceResponse)==null?0:K.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var d;(d=this.delayedActiveIndexUpdateDebouncer)==null||d.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return this.isShortPlayable()||((H=_.M((d=this.data)==null?void 0:d.watchStatus,_.BYU))==null?void 0:(K=H.style)==null?void 0:K.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var d=this,H=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),K;if((this.data||H)&&(((K=this.data)==null?0:K.engagementPanels)||this.isAd()||H)){H=!1;this.activePanel="shorts-comments-panel";var c;K=_.q(((c=this.data)==null?void 0:c.engagementPanels)||[]);for(c=K.next();!c.done;c=K.next())if(this.getPanelIdentifier(c.value.engagementPanelSectionListRenderer)===this.activePanel){H=!0;break}if(this.isPersistentPanelActive){var p=
_.Kj().resolve(_.W6);_.mf(_.Xp,function(){p.showPanel(d.activePanel,void 0,void 0,void 0,null)},100)}var g;
c=[].concat(_.ru(Object.values(((g=this.data)==null?void 0:g.engagementPanels)||{})));if(_.h("enable_preview_panel_for_shorts_search_suggested_action")){var a,e,k,C,R;((C=_.M((a=this.data)==null?void 0:(e=a.overlay)==null?void 0:(k=e.reelPlayerOverlayRenderer)==null?void 0:k.metapanel,_.UqN))==null?void 0:(R=C.metadataItems)==null?void 0:R.find(function(V){var U,L;return((U=_.M(V,vYB))==null?void 0:(L=U.icon)==null?void 0:L.iconType)==="SEARCH"}))!==void 0&&c.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}g=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);a=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return g===void 0&&a===void 0||(g==null?0:g.isDisabled)||(a==null?void 0:a.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!H?(H=c==null?void 0:c.findIndex(function(V){var U,
L;return((U=V.engagementPanelSectionListRenderer)==null?void 0:(L=U.identifier)==null?void 0:L.tag)==="shorts-comments-panel"}),H===-1||H===void 0||c!=null&&c.splice(H,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Vz("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Vz("CLOSE",void 0,"Close")}},command:{hideEngagementPanelEndpoint:{identifier:{surface:"ENGAGEMENT_PANEL_SURFACE_SHORTS",tag:"shorts-comments-panel"}}}}}}},content:{sectionListRenderer:{contents:[{itemSectionRenderer:{contents:[{messageRenderer:{style:{value:"RENDER_STYLE_PANEL"},text:{runs:[{text:_.Vz("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Vz("LEARN_MORE",void 0,"Learn more"),navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/9706180",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://support.google.com/youtube/answer/9706180"}}}]}}}]}}]}},identifier:{surface:"ENGAGEMENT_PANEL_SURFACE_SHORTS",tag:"shorts-comments-panel"},loggingDirectives:{clientVeSpec:{uiType:139722}},visibility:"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"}}].concat(_.ru(Object.values(c||
{})))):c}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.shortsProcessedSequence)==null?void 0:d[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var d=this,H,K,c;if((H=this.playerData)==null?0:(K=H.playabilityStatus)==null?0:(c=K.errorScreen)==null?0:c.playerInterstitialRenderer)return _.Xp.addLowPriorityJob(function(){d.movePlayerToVideo(d.index)}),this.playerData.playabilityStatus.errorScreen;
var p,g;return((p=this.data)==null?void 0:p.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((g=this.data)==null?0:g.watchStatus)&&_.M(this.data.watchStatus,_.mY3)?(_.Xp.addLowPriorityJob(function(){d.movePlayerToVideo(d.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.H3.Object.defineProperties(Ci,{template:{configurable:!0,enumerable:!0,get:function(){if(HXO===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);HXO=d}d=HXO;return d}}});
Ci.prototype.onNextButtonDataChange=Ci.prototype.onNextButtonDataChange;Ci.prototype.onPrevButtonDataChange=Ci.prototype.onPrevButtonDataChange;Ci.prototype.onPersistentPanelActiveChanged=Ci.prototype.onPersistentPanelActiveChanged;Ci.prototype.lazyUpdateMiniplayerData=Ci.prototype.lazyUpdateMiniplayerData;Ci.prototype.onShortsPipActiveChanged=Ci.prototype.onShortsPipActiveChanged;Ci.prototype.setActiveIndex=Ci.prototype.setActiveIndex;Ci.prototype.graftNvcRenderer=Ci.prototype.graftNvcRenderer;
Ci.prototype.graftClientVisualElements=Ci.prototype.graftClientVisualElements;Ci.prototype.onActiveChanged=Ci.prototype.onActiveChanged;Ci.prototype.onShortsDismiss=Ci.prototype.onShortsDismiss;Ci.prototype.onShortUndoDismiss=Ci.prototype.onShortUndoDismiss;Ci.prototype.playerDataChanged=Ci.prototype.playerDataChanged;Ci.prototype.afterPlayerStarted=Ci.prototype.afterPlayerStarted;Ci.prototype.updateReelWatchSequenceResponse=Ci.prototype.updateReelWatchSequenceResponse;
Ci.prototype.unhideCurrentOverlay=Ci.prototype.unhideCurrentOverlay;Ci.prototype.onServiceRequestCompleted=Ci.prototype.onServiceRequestCompleted;Ci.prototype.engagementPanelsChanged=Ci.prototype.engagementPanelsChanged;Ci.prototype.onFullscreenChange=Ci.prototype.onFullscreenChange;Ci.prototype.onResize=Ci.prototype.onResize;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Ci.prototype,"ytComponentBehavior",void 0);
_.t([_.u(_.JM.YtPageBehavior),_.O("design:type",Object)],Ci.prototype,"ytPageBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Ci.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.WZ),_.O("design:type",Object)],Ci.prototype,"ironResizableBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Ci.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],Ci.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],Ci.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Ci.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"playerData",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"reelWatchSequenceResponse",void 0);
_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"cachedReelWatchSequenceResponse",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"cachedSequenceParams",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"cachedSequenceProvider",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"currentEndpoint",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"nextButtonData",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"prevButtonData",void 0);
_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"isPreviousPageShorts",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"index",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"delayedActiveIndex",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"playablePreviousIndex",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"player",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"isPlayerPaused",void 0);
_.t([_.r({selector:IDa}),_.O("design:type",Object)],Ci.prototype,"isPlayerStarted",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"intersectionObserver",void 0);_.t([_.r(),_.O("design:type",Number)],Ci.prototype,"cinematicsInitializeJobId",void 0);_.t([_.r(),_.O("design:type",Number)],Ci.prototype,"updateMiniplayerDataJobId",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"fitToVisibleBounds",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"pageSubtype",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ci.prototype,"enablePreviousContinuation",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ci.prototype,"shortsPipEnabled",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ci.prototype,"isDark",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ci.prototype,"shortsViewTransitions",void 0);
_.t([_.r({selector:_.G_,reflectToAttribute:!0}),_.O("design:type",Object)],Ci.prototype,"isFullscreen",void 0);_.t([_.r({selector:_.oI,reflectToAttribute:!0}),_.O("design:type",Object)],Ci.prototype,"isShortsPipActive",void 0);_.t([_.VP("#shorts-inner-container"),_.O("design:type",HTMLElement)],Ci.prototype,"shortsInnerContainer",void 0);_.t([_.VP("#back-nav-button ytd-button-renderer"),_.O("design:type",_.pe)],Ci.prototype,"backNavButton",void 0);
_.t([_.VP("#shorts-container"),_.O("design:type",HTMLElement)],Ci.prototype,"shortsContainer",void 0);_.t([_.kH("error-screen"),_.O("design:type",HTMLElement)],Ci.prototype,"errorScreenContainer",void 0);_.t([_.kH("player"),_.O("design:type",Object)],Ci.prototype,"playerElement",void 0);_.t([_.kH("shorts-cinematic-container"),_.O("design:type",HTMLElement)],Ci.prototype,"shortsCinematicContainer",void 0);
_.t([_.kH("initial-player-container"),_.O("design:type",HTMLElement)],Ci.prototype,"initialPlayerContainer",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"buttonOverride",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ci.prototype,"anchoredPanelActive",void 0);_.t([_.r(),_.O("design:type",String)],Ci.prototype,"activePanel",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"isActive",void 0);
_.t([_.r({selector:uMe,reflectToAttribute:!0}),_.O("design:type",Object)],Ci.prototype,"smallScreenPersistentPanel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ci.prototype,"isPersistentPanelActive",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"smallScreenSqueezeBack",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"enableScrollIntoViewCenter",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ci.prototype,"formatFirst",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ci.prototype,"enableFlexibleOverlay",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Ci.prototype,"useAspectRatio",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"panelContainer",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"overlayContainer",void 0);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"isShortsInitialized",void 0);
_.t([_.I("reelWatchSequenceResponse"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ci.prototype,"prevShortsSequence",null);_.t([_.I("data","prevShortsSequence"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ci.prototype,"shortsProcessedPrevSequence",null);_.t([_.I("reelWatchSequenceResponse"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ci.prototype,"shortsSequence",null);
_.t([_.I("data","shortsSequence"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ci.prototype,"shortsProcessedSequence",null);_.t([_.r({reflectToAttribute:!0}),_.I("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ci.prototype,"isUpArrowHidden",null);
_.t([_.r({reflectToAttribute:!0}),_.I("reelWatchSequenceResponse","index","endOfNextContinuation"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ci.prototype,"isDownArrowHidden",null);_.t([_.r(),_.I("index"),_.O("design:type",Number),_.O("design:paramtypes",[])],Ci.prototype,"activeIndex",null);_.t([_.I("isShortPlayable","data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ci.prototype,"shouldRenderOfflineContent",null);
_.t([_.nK("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ci.prototype,"onResize",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ci.prototype,"anchoredEngagementPanels",null);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"watchWhileEngagementPanels",void 0);_.t([_.CK("isFullscreen"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ci.prototype,"onFullscreenChange",null);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ci.prototype,"engagementPanelsChanged",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],Ci.prototype,"onServiceRequestCompleted",null);_.t([_.I("data","shortsSequence","index"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ci.prototype,"activeReel",null);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ci.prototype,"unhideCurrentOverlay",null);_.t([_.CK("currentEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ci.prototype,"updateReelWatchSequenceResponse",null);_.t([_.CK("isPlayerStarted"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ci.prototype,"afterPlayerStarted",null);
_.t([_.I("playerData","reelWatchSequenceResponse","data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ci.prototype,"errorScreen",null);_.t([_.I("errorScreen"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ci.prototype,"hasError",null);_.t([_.CK("playerData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],Ci.prototype,"playerDataChanged",null);
_.t([_.nK("yt-dismissible-item-undo-feedback"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ci.prototype,"onShortUndoDismiss",null);_.t([_.nK("yt-disable-lockup-interaction"),_.O("design:type",Function),_.O("design:paramtypes",[Object]),_.O("design:returntype")],Ci.prototype,"onShortsDismiss",null);_.t([_.Mr("active"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ci.prototype,"onActiveChanged",null);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ci.prototype,"graftClientVisualElements",null);_.t([_.CK("currentPlayerIndex"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ci.prototype,"graftNvcRenderer",null);_.t([_.CK("index"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ci.prototype,"setActiveIndex",null);
_.t([_.CK("isShortsPipActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ci.prototype,"onShortsPipActiveChanged",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ci.prototype,"lazyUpdateMiniplayerData",null);_.t([_.r(),_.O("design:type",Object)],Ci.prototype,"onOverlayDensityChanged",void 0);
_.t([_.CK("isPersistentPanelActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ci.prototype,"onPersistentPanelActiveChanged",null);_.t([_.CK("index","data","isUpArrowHidden"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ci.prototype,"onPrevButtonDataChange",null);_.t([_.CK("index","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ci.prototype,"onNextButtonDataChange",null);
_.t([_.Z({is:"ytd-shorts"})],Ci);_.qG.registerService(_.yMi,Ci);
_.rk();
}catch(e){_._DumpException(e)}
try{
_.I4("JzFVk");
var LMU;var MBU;var Jx=function(){return _.B.apply(this,arguments)||this};
_.m(Jx,_.B);Jx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Jx.prototype.computeBlueBottomLink=function(d){return d};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Jx.prototype,"data",void 0);_.t([_.r({computed:"computeIcon_(data.bottomIcon)"}),_.O("design:type",String)],Jx.prototype,"bottomIcon",void 0);
_.t([_.r({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Jx.prototype,"enableBlueBottomLink",void 0);_.t([_.Z({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Jx);
_.T(Jx,"ytd-web-answer-renderer",function(){if(MBU!==void 0)return MBU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-web-answer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section-header" class="style-scope ytd-web-answer-renderer">\n  <yt-formatted-string id="section-title" text="[[data.sectionTitle]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n  <div id="menu" class="style-scope ytd-web-answer-renderer"></div>\n</div>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]">\n  <div id="content" class="style-scope ytd-web-answer-renderer">\n    <div id="content-text" class="style-scope ytd-web-answer-renderer">\n      <div id="content-title" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string id="content-title" text="[[data.contentTitle]]" class="style-scope ytd-web-answer-renderer">\n        </yt-formatted-string>\n        <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n      </div>\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      <div id="source-group" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string text="[[data.sourceName]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n        <div id="separator" hidden="[[!data.publishedDate]]" class="style-scope ytd-web-answer-renderer">\u2022</div>\n        <yt-formatted-string text="[[data.publishedDate]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <yt-img-shadow id="answer-image" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="100" class="style-scope ytd-web-answer-renderer">\n    </yt-img-shadow>\n  </div>\n</a>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" hidden="[[!data.bottomLink]]" href$="[[computeHref_(data.bottomLinkCommand)]]" data="[[data.bottomLinkCommand]]">\n  <div id="bottom-section" class="style-scope ytd-web-answer-renderer">\n    <yt-icon id="bottom-icon" icon="[[bottomIcon]]" class="style-scope ytd-web-answer-renderer"></yt-icon>\n    <yt-formatted-string id="bottom-link" text="[[data.bottomLink]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n    <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n  </div>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return MBU=d},{mode:_.qk("kevlar_poly_si_batch_j035")?1:2});var m7Z;var s1=function(){var d=_.B.apply(this,arguments)||this;d.hasChipBar=!1;return d};
_.m(s1,_.B);s1.prototype.configureRendererStamper=function(){return{"data.chipBar":{id:"chip-bar",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}},"data.searchFilterButton":{id:"filter-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}},reuseComponents:!1},"data.aboutTheseResultsButton":{id:"about-these-results",mapping:{buttonRenderer:{component:"ytd-button-renderer"}},reuseComponents:!1}}};
s1.prototype.computeHasChipBar=function(d){return!(d==null||!d.chipBar)};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],s1.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.O("design:type",Object)],s1.prototype,"hasChipBar",void 0);_.t([_.Z({is:"ytd-search-header-renderer",disableElementRegistration:!0})],s1);
_.T(s1,"ytd-search-header-renderer",function(){if(m7Z!==void 0)return m7Z;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chip-bar" class="style-scope ytd-search-header-renderer"></div>\n<div id="about-these-results" class="style-scope ytd-search-header-renderer"></div>\n<div id="filter-button" class="style-scope ytd-search-header-renderer"></div>\n\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return m7Z=d},{mode:1});var wST;var FS=function(){return _.B.apply(this,arguments)||this};
_.m(FS,_.B);FS.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],FS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],FS.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-page-continuation"})],FS);
_.T(FS,"ytd-page-continuation",function(){if(wST!==void 0)return wST;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pages" class="style-scope ytd-page-continuation"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return wST=d},{mode:1});var Pf0;var uuG;var ItS;var ZP=function(){return _.B.apply(this,arguments)||this};
_.m(ZP,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ZP.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],ZP);
_.T(ZP,"ytd-watch-card-one-vs-one-event",function(){if(ItS!==void 0)return ItS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeParticipantResult)]]</span>\n</div>\n<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayParticipantResult)]]</span>\n</div>\n<div class="main-event event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.eventDescription)]]</div>\n<div class="event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.additionalEventDescription)]]</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ItS=d},{mode:1});var Tq=function(){return _.B.apply(this,arguments)||this};
_.m(Tq,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Tq.prototype,"data",void 0);_.t([_.Z({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],Tq);
_.T(Tq,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(uuG!==void 0)return uuG;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-one-vs-one-event-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-one-vs-one-event-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<ytd-thumbnail data="[[data]]" disable-rounding="" width="386" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer"></ytd-thumbnail>\n\n<div id="bottom-fade" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer">\n  <ytd-watch-card-one-vs-one-event class="hero style-scope ytd-watch-card-hero-one-vs-one-event-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</div>\n    </a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return uuG=d},{mode:1});var r8t;var Q0=function(){return _.B.apply(this,arguments)||this};
_.m(Q0,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Q0.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Q0.prototype,"data",void 0);_.t([_.Z({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],Q0);
_.T(Q0,"ytd-banner-and-box-hero-image-renderer",function(){if(r8t!==void 0)return r8t;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-and-box-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="banner" thumbnail="[[data.banner]]" width="386" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow><svg id="bg" viewBox="0 0 1300 304" preserveAspectRatio="xMaxYMid slice" class="style-scope ytd-banner-and-box-hero-image-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path></svg><yt-img-shadow id="box" height="184" thumbnail="[[data.box]]" width="131" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return r8t=d},{mode:1});var WMv;var tx=function(){var d=_.B.apply(this,arguments)||this;d.modern=_.h("web_modern_buttons");return d};
_.m(tx,_.B);tx.prototype.computeIcon=function(){var d,H,K=(d=this.data)==null?void 0:(H=d.icon)==null?void 0:H.iconType;if(K)return _.kv(K)};
tx.prototype.computeButtonShape=function(){var d;return{buttonText:_.jG((d=this.data)==null?void 0:d.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.H3.Object.defineProperties(tx.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],tx.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],tx.prototype,"modern",void 0);_.t([_.r({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.I("data.style"),_.O("design:type",Object),_.O("design:paramtypes",[])],tx.prototype,"buttonColor",null);
_.t([_.Z({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],tx);
_.T(tx,"ytd-call-to-action-button-renderer",function(){if(WMv!==void 0)return WMv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden$="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return WMv=d},{mode:1});var Bdt;var O1=function(){return _.B.apply(this,arguments)||this};
_.m(O1,_.B);O1.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Gn(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.Gv(this.data.leftThumbnail.thumbnails,216)+")")};
O1.prototype.onLeftThumbnailChanged=O1.prototype.onLeftThumbnailChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],O1.prototype,"data",void 0);_.t([_.CK("data.leftThumbnail"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],O1.prototype,"onLeftThumbnailChanged",null);_.t([_.Z({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],O1);
_.T(O1,"ytd-collage-hero-image-renderer",function(){if(Bdt!==void 0)return Bdt;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-collage-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="collage" class="style-scope ytd-collage-hero-image-renderer"><div id="section-left" class="style-scope ytd-collage-hero-image-renderer"></div><div id="section-right" class="style-scope ytd-collage-hero-image-renderer"><yt-img-shadow id="top-right" height="105" thumbnail="[[data.topRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow><yt-img-shadow height="105" thumbnail="[[data.bottomRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow></div></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Bdt=d},{mode:1});var zwj;var S_=function(){return _.B.apply(this,arguments)||this};
_.m(S_,_.B);S_.prototype.computeStyle=function(d){return d};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],S_.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.O("design:type",String)],S_.prototype,"componentStyle",void 0);_.t([_.Z({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],S_);
_.T(S_,"ytd-single-hero-image-renderer",function(){if(zwj!==void 0)return zwj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="image" thumbnail="[[data.thumbnail]]" width="386" class="style-scope ytd-single-hero-image-renderer"></yt-img-shadow>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return zwj=d},{mode:1});var XSO;var E1=function(){return _.B.apply(this,arguments)||this};
_.m(E1,_.B);_.G=E1.prototype;
_.G.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.h("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.G.computeSubtitle=function(d){if(this.data){var H;if(this.data.upcomingEventData){d=_.jG(d.subtitle);var K=Number(this.data.upcomingEventData.startTime);isNaN(K)||(H=_.AF(_.WI(d,K)))}else H=d.subtitle;return H}};
_.G.onHeroTap=function(d){d.preventDefault();var H=this.data&&this.data.navigationEndpoint;!H||!_.vg(_.jh(d),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.vg(_.jh(d),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.h("kevlar_watchcard_hero_video_renderer_killswitch")?_.GT(this.hostElement,"yt-navigate",{navigationEndpoint:H}):this.ytComponentBehavior.resolveCommand(H))};
_.G.computeHeroTabIndex=function(d){return d&&d.simpleText?-1:0};
_.G.computeHeroRole=function(d){return d&&d.simpleText?"":"link"};
_.G.computeIsReminderButtonPresent=function(d){return!(!d||!d.reminderButton)};
_.G.computeHideBottomItems=function(d){return!(this.computeIsReminderButtonPresent(d)||d.subtitle)};
_.G.dataChanged=function(){var d=this.get("data.buttons.buttonRenderer.serviceEndpoint"),H;((H=_.M(d==null?void 0:d.commandMetadata,_.Ie))==null?0:H.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(d)};
E1.prototype.dataChanged=E1.prototype.dataChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],E1.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],E1.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],E1.prototype,"data",void 0);
_.t([_.r({computed:"computeSubtitle(data)"}),_.O("design:type",String)],E1.prototype,"subtitle",void 0);_.t([_.r({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],E1.prototype,"isReminderButtonPresent",void 0);_.t([_.r({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],E1.prototype,"hideBottomItems",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],E1.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],E1);
_.T(E1,"ytd-watch-card-hero-video-renderer",function(){if(XSO!==void 0)return XSO;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-card-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" on-tap="onHeroTap" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex$="[[computeHeroTabIndex(data.title)]]" role$="[[computeHeroRole(data.title)]]">\n  <ytd-thumbnail data="[[data]]" disable-rounding="" hidden$="[[!data.thumbnail]]" width="386" class="style-scope ytd-watch-card-hero-video-renderer">\n  </ytd-thumbnail>\n  <div id="hero-image" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div class="title-container style-scope ytd-watch-card-hero-video-renderer" hidden="[[!data.title]]">\n    <div class="title-fade style-scope ytd-watch-card-hero-video-renderer">\n      <a id="watch-card-title" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string id="watch-card-title" text="[[data.title]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n      </a>\n      <div id="bottom-items" hidden="[[hideBottomItems]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        <ytd-badge-supported-renderer id="watch-card-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="watch-card-subtitle" text="[[subtitle]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n        <div id="reminder-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="call-to-action-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div id="overlays" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return XSO=d},{mode:1});var J81;var y0=function(){return _.B.apply(this,arguments)||this};
_.m(y0,_.B);_.G=y0.prototype;_.G.configureRendererStamper=function(){return{"data.callToActionButtons":{id:"call-to-action-buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.G.computeTitleBadges=function(d){return d?[d]:[]};
_.G.computeHeaderStyle=function(d){return d?d.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.G.computeAvatarAriaLabel=function(d){if(d){var H,K,c,p;return(p=(H=d.avatar)==null?void 0:(K=H.accessibility)==null?void 0:(c=K.accessibilityData)==null?void 0:c.label)!=null?p:_.jG(d==null?void 0:d.title)}};
_.G.computeAvatarHeight=function(d){return d==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.G.computeBadgeRowClass=function(d){return(d==null?0:d[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],y0.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],y0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],y0.prototype,"data",void 0);_.t([_.r({computed:"computeTitleBadges(data.titleBadge)"}),_.O("design:type",Array)],y0.prototype,"titleBadges",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.O("design:type",String)],y0.prototype,"headerStyle",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.O("design:type",String)],y0.prototype,"badgeRowClass",void 0);_.t([_.Z({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],y0);
_.T(y0,"ytd-watch-card-rich-header-renderer",function(){if(J81!==void 0)return J81;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-rich-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-watch-card-rich-header-renderer">\n  <div id="body" class="style-scope ytd-watch-card-rich-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]">\n      <ytd-channel-name id="channel-name" badges="[[titleBadges]]" channel-name="[[data.title]]" tooltip-position="bottom" wrap-text="" class="style-scope ytd-watch-card-rich-header-renderer">\n      </ytd-channel-name>\n      <div id="badge-row" class$="[[badgeRowClass]] style-scope ytd-watch-card-rich-header-renderer">\n        <span id="watch-card-subtitle" class="style-scope ytd-watch-card-rich-header-renderer">\n          <yt-formatted-string respect-lang-dir="" text="[[data.subtitle]]" class="style-scope ytd-watch-card-rich-header-renderer"></yt-formatted-string>\n        </span>\n        <template is="dom-if" if="[[data.badges.0.metadataBadgeRenderer]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          </ytd-badge-supported-renderer>\n        </template>\n      </div>\n    </a>\n    \n    <div id="call-to-action-buttons" hidden="[[!data.callToActionButtons]]" class="style-scope ytd-watch-card-rich-header-renderer"></div>\n  </div>\n  <a id="avatar-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]" aria-label="[[computeAvatarAriaLabel(data)]]" hidden="[[!data.avatar]]">\n    <yt-img-shadow id="avatar" height="[[computeAvatarHeight(data.style)]]" thumbnail="[[data.avatar]]" class="style-scope ytd-watch-card-rich-header-renderer">\n    </yt-img-shadow>\n  </a>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return J81=d},{mode:1});var sRT;var FMU;var bp=function(){return _.B.apply(this,arguments)||this};
_.m(bp,_.B);bp.prototype.onMetadataTap=function(d){var H=this.data&&this.data.navigationEndpoint;H&&!_.vg(_.jh(d),this.hostElement,["A".toString()])&&_.GT(this.hostElement,"yt-navigate",{endpoint:H})};
_.H3.Object.defineProperties(bp.prototype,{isCondensed:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style==="WATCH_CARD_COMPACT_VIDEO_RENDERER_STYLE_CONDENSED":!1}},
subtitle:{configurable:!0,enumerable:!0,get:function(){if(this.data){var d;if(this.data.upcomingEventData){var H=_.jG(this.data.subtitle),K=Number(this.data.upcomingEventData.startTime);isNaN(K)||(d=_.AF(_.WI(H,K)))}else d=this.data.subtitle;return d}}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],bp.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data.style"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],bp.prototype,"isCondensed",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],bp.prototype,"subtitle",null);
_.t([_.Z({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],bp);
_.T(bp,"ytd-watch-card-compact-video-renderer",function(){if(FMU!==void 0)return FMU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-compact-video-renderer"></ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-watch-card-compact-video-renderer" on-click="onMetadataTap">\n    <div class="title-wrapper style-scope ytd-watch-card-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n      </a>\n    </div>\n    <yt-formatted-string class="byline style-scope ytd-watch-card-compact-video-renderer" hidden="[[!data.byline]]" link-inherit-color="" text="[[data.byline]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[subtitle]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div class="metadata style-scope ytd-watch-card-compact-video-renderer">\n      <div class="text style-scope ytd-watch-card-compact-video-renderer">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" text="[[subtitle]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string class="duration style-scope ytd-watch-card-compact-video-renderer" text="[[data.lengthText]]">\n      </yt-formatted-string>\n    </div>\n  </a>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return FMU=d},{mode:1});var ZP1;var Ny=function(){return _.B.apply(this,arguments)||this};
_.m(Ny,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ny.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ny.prototype,"data",void 0);_.t([_.Z({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Ny);
_.T(Ny,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(ZP1!==void 0)return ZP1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint metadata style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.navigationEndpoint]]" href$="[[computeHref_(data.navigationEndpoint)]]">\n  <ytd-watch-card-one-vs-one-event class="compact style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ZP1=d},{mode:1});var DP=function(){return _.B.apply(this,arguments)||this};
_.m(DP,_.B);DP.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],DP.prototype,"ytRendererStamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],DP.prototype,"data",void 0);_.t([_.Z({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],DP);
_.T(DP,"ytd-vertical-watch-card-list-renderer",function(){if(sRT!==void 0)return sRT;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-watch-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-watch-card-list-renderer">\n  \n</div>\n<a id="view-all-endpoint" class="yt-simple-endpoint style-scope ytd-vertical-watch-card-list-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[!data.viewAllEndpoint]]" disable-upgrade$="[[!data.viewAllEndpoint]]">\n    [[getSimpleString(data.viewAllText)]]\n</a>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return sRT=d},{mode:1});var Td1;var f$=function(){var d=_.B.apply(this,arguments)||this;d.ariaExpanded="false";return d};
_.m(f$,_.B);_.G=f$.prototype;_.G.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.G.dataChanged=function(){var d;this.currentSeasonIndex=((d=this.data)==null?void 0:d.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.G.computeEpisodesInfo=function(d,H,K){if(d!==void 0&&H.length===d.length)return d[K]};
_.G.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.G.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.G.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.G.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.G.getUppercaseSimpleString=function(d){return this.ytRendererBehavior.getSimpleString(d).toUpperCase()};
_.G.updateCurrentSeasonIndexFromBinding=function(d){this.currentSeasonIndex=d.detail.value};
f$.prototype.onIronOverlayClosed=f$.prototype.onIronOverlayClosed;f$.prototype.currentSeasonIndexChanged=f$.prototype.currentSeasonIndexChanged;f$.prototype.dataChanged=f$.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],f$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],f$.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",String)],f$.prototype,"label",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],f$.prototype,"currentSeasonIndex",void 0);_.t([_.r({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.O("design:type",Object)],f$.prototype,"episodesInfo",void 0);_.t([_.r({value:"false"}),_.O("design:type",Object)],f$.prototype,"ariaExpanded",void 0);_.t([_.VP("#lists"),_.O("design:type",Object)],f$.prototype,"lists",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],f$.prototype,"dataChanged",null);_.t([_.Mr("currentSeasonIndex"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],f$.prototype,"currentSeasonIndexChanged",null);_.t([_.nK("iron-overlay-closed"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],f$.prototype,"onIronOverlayClosed",null);
_.t([_.Z({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],f$);
_.T(f$,"ytd-watch-card-section-dropdown-renderer",function(){if(Td1!==void 0)return Td1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Td1=d},{mode:1});var QRj;var Ax=function(){var d=_.B.apply(this,arguments)||this;d.isSearch=!1;return d};
_.m(Ax,_.B);Ax.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Ax.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ax.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Ax.prototype,"isSearch",void 0);_.t([_.Z({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Ax);
_.T(Ax,"ytd-watch-card-section-sequence-renderer",function(){if(QRj!==void 0)return QRj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-sequence-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="lists" class="style-scope ytd-watch-card-section-sequence-renderer">\n  \n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
return QRj=d},{mode:1});var tBq=_.H1(function(d){return _.x("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.x(_.wB,{data:function(){return d.data().ctaButton}},{buttonViewModel:_.xk}),_.x(_.j$,{text:function(){return d.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Vj");
tBq.idomCompat=!0;_.iV(tBq,"ytd-button-banner-view-model",{props:{data:_.dl}});var j_=function(){var d=_.B.apply(this,arguments)||this;d.isSearch=!1;return d};
_.m(j_,_.B);
j_.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],j_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],j_.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],j_.prototype,"rounded",void 0);_.t([_.r(),_.O("design:type",Object)],j_.prototype,"isSearch",void 0);
_.t([_.Z({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],j_);
_.T(j_,"ytd-universal-watch-card-renderer",function(){if(Pf0!==void 0)return Pf0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-universal-watch-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="hero" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="action-buttons" hidden="[[!data.actionButtons]]" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="sections" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="footer" class="style-scope ytd-universal-watch-card-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Pf0=d},{mode:1});var YA5;_.iV(_.H1(function(d){var H=d.data;var K;d=!((K=_.Kj().resolve(_.$p(_.fM)))==null||!K());K={};return _.x("overview-message-view-model",{class:_.xM("ytwOverviewMessageViewModelHost",(K.ytwOverviewMessageViewModelDarkBackground=d,K.ytwOverviewMessageViewModelLightBackground=!d,K))},_.x(_.n,{cond:function(){return H().primaryImage},
then:function(c){return _.x(_.d7,{data:c,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.x(_.n,{cond:function(){return H().primaryText},
then:function(){return _.x("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.x(_.j$,{text:function(){return H().primaryText}}))}}),_.x(_.n,{cond:function(){return H().secondaryText},
then:function(){return _.x("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.x(_.j$,{text:function(){return H().secondaryText}}))}}))},"Wj"),"overview-message-view-model",{props:{data:_.dl}});_.iV(_.WFg,"ytd-overview-answer-view-model",{props:{data:_.dl}});var vP=function(){return _.B.apply(this,arguments)||this};
_.m(vP,_.B);vP.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{universalWatchCardRenderer:{component:"ytd-universal-watch-card-renderer",properties:{isSearch:"[[isSearch]]"}},overviewAnswerViewModel:"ytd-overview-answer-view-model",overviewMessageViewModel:"overview-message-view-model"}}}};
vP.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.yH),_.O("design:type",Object)],vP.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],vP.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],vP.prototype,"isSearch",void 0);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],vP);
_.T(vP,"ytd-secondary-search-container-renderer",function(){if(YA5!==void 0)return YA5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-secondary-search-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-secondary-search-container-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
return YA5=d},{mode:1});var OP0;var dL=function(){var d=_.B.apply(this,arguments)||this;d.renderSecondarySearchContainer=!1;d.isSearch=!1;return d};
_.m(dL,_.B);_.G=dL.prototype;_.G.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.G.created=function(){var d=this;this.boundStampSecondarySearchContainerIfFits=function(){d.stampSecondarySearchContainerIfFits()};
_.sS("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.G.computeIsSearchFrictionPage=function(d){var H,K,c,p,g;d=d==null?void 0:(H=d.primaryContents)==null?void 0:(K=H.sectionListRenderer)==null?void 0:(c=K.contents)==null?void 0:(p=c[0])==null?void 0:(g=p.itemSectionRenderer)==null?void 0:g.contents;if(!d)return!1;H=_.q(d);for(K=H.next();!K.done;K=H.next())if(c=void 0,(c=K.value)==null?0:c.searchFrictionViewModel)return!0;return!1};
_.G.computeShowSecondaryColumn=function(d,H){return!!(H&&H.secondaryContents&&d)};
_.G.activeChanged=function(){var d=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.xf(this,this.debounceStampSecondarySearchContainerIfFits)),_.EI(function(){d.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.xf(this,this.debounceStampSecondarySearchContainerIfFits))};
_.G.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.G.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.G.debounceStampSecondarySearchContainerIfFits=function(){_.yP(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.G.onRetrieveLocation=function(d,H){H.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);d.stopPropagation()};
_.G.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
dL.prototype.dataChanged=dL.prototype.dataChanged;dL.prototype.onRetrieveLocation=dL.prototype.onRetrieveLocation;dL.prototype.persistentGuideChanged=dL.prototype.persistentGuideChanged;dL.prototype.activeChanged=dL.prototype.activeChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],dL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],dL.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.u(_.WZ),_.O("design:type",Object)],dL.prototype,"ironResizableBehavior",void 0);_.t([_.r(),_.O("design:type",Boolean)],dL.prototype,"active",void 0);_.t([_.r(),_.O("design:type",Object)],dL.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.O("design:type",Boolean)],dL.prototype,"useBiggerThumbs",void 0);_.t([_.r({reflectToAttribute:!0,value:function(){return _.GJ("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],dL.prototype,"biggerThumbsStyle",void 0);_.t([_.r(),_.O("design:type",Object)],dL.prototype,"renderSecondarySearchContainer",void 0);_.t([_.r({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.O("design:type",Boolean)],dL.prototype,"showSecondaryColumn",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.O("design:type",Boolean)],dL.prototype,"isSearchFrictionPage",void 0);
_.t([_.r(),_.O("design:type",Object)],dL.prototype,"isSearch",void 0);_.t([_.CK("active"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dL.prototype,"activeChanged",null);_.t([_.CK("guidePersistentAndVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dL.prototype,"persistentGuideChanged",null);
_.t([_.nK("yt-retrieve-location"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],dL.prototype,"onRetrieveLocation",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dL.prototype,"dataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],dL);
_.T(dL,"ytd-two-column-search-results-renderer",function(){if(OP0!==void 0)return OP0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-search-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-search-results-renderer">\n  <div id="continuations" class="style-scope ytd-two-column-search-results-renderer"></div>\n</div>\n<ytd-secondary-search-container-renderer id="secondary" data="[[data.secondaryContents.secondarySearchContainerRenderer]]" disable-upgrade$="[[!showSecondaryColumn]]" hidden="[[!showSecondaryColumn]]" is-search="[[isSearch]]" class="style-scope ytd-two-column-search-results-renderer">\n</ytd-secondary-search-container-renderer>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return OP0=d},{mode:1});var HD=function(){var d=_.B.apply(this,arguments)||this;d.hasSearchHeader=!1;d.hasSecondaryContent=!1;d.hasBiggerThumbs=_.h("enable_desktop_search_bigger_thumbs");d.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return d};
_.m(HD,_.B);_.G=HD.prototype;_.G.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{searchHeaderRenderer:{component:"ytd-search-header-renderer"}}},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:_.jr(["aa","eocs"])}}};
_.G.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.G.loadPage_=function(d){this.initCsi();d&&(this.data=d,_.sS("REFINEMENTS_TUPLE",["FromSearchResponse",d.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.f4(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.G.initCsi=function(){_.X_("results",["ol","cpt"])};
_.G.updateTitle=function(){var d=_.ZB(window.location.href,"q");d||(d=_.ZB(window.location.href,"search_query"));_.GT(this.hostElement,"yt-update-title",d||"")};
_.G.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.G.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.h("web_srp_data_changed_terminate_imp_killswitch")||_.oF(this.hostElement,"yt-terminate-video-preview-action")};
_.G.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.G.computeHasSearchHeader=function(d){var H;d=d==null?void 0:(H=d.header)==null?void 0:H.searchHeaderRenderer;return!!d&&(!!d.searchFilterButton||!!d.chipBar)};
_.G.computeHasSecondaryContent=function(d){var H,K;return!!(d==null?0:(H=d.contents)==null?0:(K=H.twoColumnSearchResultsRenderer)==null?0:K.secondaryContents)};
_.H3.Object.defineProperties(HD,{template:{configurable:!0,enumerable:!0,get:function(){if(LMU===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="container" class="style-scope ytd-search">\n  <div id="header" class="style-scope ytd-search"></div>\n  <ytd-two-column-search-results-renderer active="[[active]]" data="[[data.contents.twoColumnSearchResultsRenderer]]" hidden="[[data.hideContents]]" is-search="true" class="style-scope ytd-search">\n  </ytd-two-column-search-results-renderer>\n</div>\n<div id="survey" class="style-scope ytd-search"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);LMU=d}d=LMU;return d}}});
HD.prototype.onReloadContinuationFinish=HD.prototype.onReloadContinuationFinish;HD.prototype.dataChanged=HD.prototype.dataChanged;_.t([_.u(_.JM.YtPageBehavior),_.O("design:type",Object)],HD.prototype,"ytPageBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],HD.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.yH),_.O("design:type",Object)],HD.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],HD.prototype,"data",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],HD.prototype,"monitorScroll",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],HD.prototype,"hasSearchHeader",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],HD.prototype,"hasSecondaryContent",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],HD.prototype,"hasBiggerThumbs",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],HD.prototype,"dataChanged",null);
_.t([_.nK("yt-reload-continuation-finish"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],HD.prototype,"onReloadContinuationFinish",null);_.t([_.Z({is:"ytd-search"})],HD);_.qG.registerService(_.EN1,HD);
_.rk();
}catch(e){_._DumpException(e)}
try{
_.I4("h8y2qb");
var Jhq=function(d){if(d=_.Ve5(d)){var H;(H=d.sources)!=null&&H[0]?(H=_.hBi(d),H=H<1?"VERTICAL":H>1?"HORIZONTAL":"SQUARE"):H=void 0;return H}},s2=function(d){_.Vn.call(this,"upload");
this.opts.query=d},FI5=function(d,H){return _.x(szb,{data:d,
onYtNavigate:H})},Zig=function(d,H){return _.xL(d.entities,"pageHeaderEntity",H)},Qz5=function(d,H){return d.map(function(K){if(K.tabRenderer)return TLU(K.tabRenderer);
if(K.expandableTabRenderer&&H){var c=K.expandableTabRenderer;return{customTabRenderable:function(){return H(c)}}}return{}})},TLU=function(d){return{identifier:d.tabIdentifier,
aTagConfig:_.OG({innertubeCommand:d.endpoint,forceNewState:!0}),title:d.title,selected:d.selected,disabled:d.unselectable,icon:d.icon}},tFg=function(d){return _.iZ({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:d})},YZ5=function(d){if(!_.pf(document,"gtm-noscript")){var H=document.createElement("noscript");
H.id="gtm-noscript";H.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+d+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(H)}};_.K1(s2,_.Vn);s2.prototype.JSC$10044_setLabel=function(d){s2.superClass_.JSC$10044_setLabel.call(this,d);return this};
s2.prototype.addUploadMetadata=function(d,H){s2.superClass_.addUploadMetadata.call(this,d,H);return this};var Oig=function(d){if(d!=="youtubebanner"&&d!=="youtube-channel-banner")throw Error("po");s2.call(this,d)};
_.m(Oig,s2);Oig.prototype.JSC$10044_setLabel=function(d){s2.prototype.JSC$10044_setLabel.call(this,d);return this};
Oig.prototype.addUploadMetadata=function(d,H){s2.prototype.addUploadMetadata.call(this,d,H);return this};var SZU=[_.WZ,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(d){_.Iu(d).path[0]!==this&&(this.resetLayout(),d.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var d=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.G8(this._layoutDebouncer,_.rg,d);_.ob(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var d=this;requestAnimationFrame(function(){d.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(d){this.resizerShouldNotify(d)&&this._notifyDescendant(d)},this)}}];_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers={};_._scrollTimer$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers=null;var ED1=[_.LRd,{properties:{effects:{type:String},effectsConfig:{type:Object,value:function(){return{}}},
disabled:{type:Boolean,reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTriggered:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effectsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(){},
isOnScreen:function(){return!1},
isContentBelow:function(){return!1},
_effectsRunFn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},attached:function(){this._scrollStateChanged()},
detached:function(){this._tearDownEffects()},
createEffect:function(d,H){var K=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[d];if(!K)throw new ReferenceError(this._getUndefinedMsg(d));d=this._boundEffect(K,H||{});d.setUp();return d},
_effectsChanged:function(d,H,K){this._tearDownEffects();d&&K&&(d.split(" ").forEach(function(c){var p;c!==""&&((p=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[c])?this._effects.push(this._boundEffect(p,H[c])):console.warn(this._getUndefinedMsg(c)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(d,H){H=H||{};var K=parseFloat(H.startsAt||0),c=parseFloat(H.endsAt||1),p=c-K,g=function(){};
c=K===0&&c===1?d.run:function(a,e){d.run.call(this,Math.max(0,(a-K)/p),e)};
return{setUp:d.setUp?d.setUp.bind(this,H):g,run:d.run?c.bind(this):g,tearDown:d.tearDown?d.tearDown.bind(this):g}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(d){d.setUp()!==!1&&this._effectsRunFn.push(d.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(d){d.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(d,H){this._effectsRunFn&&this._effectsRunFn.forEach(function(K){K(d,H)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var d=this._clampedScrollTop;this._updateScrollState(d);this.threshold>0&&this._setThresholdTriggered(d>=this.threshold)}},
_getDOMRef:function(d){console.warn("_getDOMRef","`"+d+"` is undefined")},
_getUndefinedMsg:function(d){return"Scroll effect `"+d+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+d+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("qo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(d){var H={};d=parseFloat(d.scalar);H.background=this._getDOMRef("background");H.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");H.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");H.deltaBg=H.backgroundFrontLayer.offsetHeight-H.background.offsetHeight;H.deltaBg===0?(isNaN(d)&&(d=.8),H.deltaBg=(this._dHeight||0)*d):(isNaN(d)&&(d=
1),H.deltaBg*=d);this._fxParallaxBackground=H},
run:function(d){var H=this._fxParallaxBackground;this.transform("translate3d(0px, "+H.deltaBg*Math.min(1,d)+"px, 0px)",H.backgroundFrontLayer);H.backgroundRearLayer&&this.transform("translate3d(0px, "+H.deltaBg*Math.min(1,d)+"px, 0px)",H.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var yhZ;var biT;var NLt=function(){};
_.G=NLt.prototype;_.G._scrollTargetChanged=function(){};
_.G.scroll=function(){};
_.G._isValidScrollTarget=function(){};
_.G._toggleScrollListener=function(){};
_.G.toggleScrollListener=function(){};
_.G.createEffect=function(){};
_.G._effectsChanged=function(){};
_.G._layoutIfDirty=function(){};
_.G._boundEffect=function(){};
_.G._setUpEffect=function(){};
_.G._tearDownEffects=function(){};
_.G._runEffects=function(){};
_.G._scrollHandler=function(){};
_.G._scrollStateChanged=function(){};
_.G._getUndefinedMsg=function(){};
_.G.notifyResize=function(){};
_.G.assignParentResizable=function(){};
_.G.stopResizeNotificationsFor=function(){};
_.G._subscribeIronResize=function(){};
_.G._unsubscribeIronResize=function(){};
_.G.resizerShouldNotify=function(){};
_.G._onDescendantIronResize=function(){};
_.G._fireResize=function(){};
_.G._onIronRequestResizeNotifications=function(){};
_.G._parentResizableChanged=function(){};
_.G._notifyDescendant=function(){};
_.G._requestResizeNotifications=function(){};
_.G._findParent=function(){};
_.G._appResetLayoutHandler=function(){};
_.G.resetLayout=function(){};
_.G._notifyLayoutChanged=function(){};
_.G._notifyDescendantResize=function(){};
_.G._setThresholdTriggered=function(){};
NLt=_.zn({_template:function(){if(biT!==void 0)return biT;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header.tp.yt.app.header.css.js--\x3e<div id="contentContainer" class="style-scope tp-yt-app-header">\n  <slot id="slot" class="style-scope tp-yt-app-header"></slot>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;yhZ===void 0&&(yhZ=document.createElement("template"));var c=yhZ;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return biT=d},
is:"tp-yt-app-header",behaviors:[ED1,SZU],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_configChanged(isAttached, condenses, fixed)"],_height:0,_dHeight:0,_stickyElTop:0,_stickyElRef:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _stickyEl(){if(this._stickyElRef)return this._stickyElRef;
for(var d=_.Iu(this.$.slot).getDistributedNodes(),H=0,K;K=d[H];H++)if(K.nodeType===Node.ELEMENT_NODE)if(K.hasAttribute("sticky")){this._stickyElRef=K;break}else this._stickyElRef||(this._stickyElRef=K);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var d=this._clampedScrollTop,H=this._height===0||d===0,K=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;H||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();H?this._updateScrollState(d,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=K}},
_updateScrollState:function(d,H){if(this._height!==0){var K=0,c=this._top;var p=this._maxHeaderTop;var g=d-this._lastScrollTop,a=Math.abs(g),e=d>this._lastScrollTop,k=performance.now();this._mayMove()&&(K=this._clamp(this.reveals?c+g:d,0,p));d>=this._dHeight&&(K=this.condenses&&!this.fixed?Math.max(this._dHeight,K):K,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&a<100){if(k-this._initTimestamp>300||this._wasScrollingDown!==e)this._initScrollTop=d,this._initTimestamp=k;d>=p&&
(Math.abs(this._initScrollTop-d)>30||a>10?(e&&d>=p?K=p:!e&&d>=this._dHeight&&(K=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((K-c)/(g/(k-this._lastTimestamp)),0,300)+"ms"):K=this._top)}p=this._dHeight===0?d>0?1:0:K/this._dHeight;H||(this._lastScrollTop=d,this._top=K,this._wasScrollingDown=e,this._lastTimestamp=k);if(H||p!==this._progress||c!==K||d===0)this._progress=p,this._runEffects(p,K),this._transformHeader(K)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(d){this.translate3d(0,-d+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&d>=this._stickyElTop?Math.min(d,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(d,H,K){return Math.min(K,Math.max(H,d))},
_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),_.Iu(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(d){switch(d){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Iu(this).querySelector("[main-title]");case "condensedTitle":return _.Iu(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var DK1;var fIt;_.zn({_template:function(){if(fIt!==void 0)return fIt;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header-layout--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header_layout.tp.yt.app.header.layout.css.js--\x3e<div id="wrapper" class="initializing style-scope tp-yt-app-header-layout">\n  <slot id="headerSlot" name="header" class="style-scope tp-yt-app-header-layout"></slot>\n\n  <div id="contentContainer" class="style-scope tp-yt-app-header-layout">\n    <slot class="style-scope tp-yt-app-header-layout"></slot>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;DK1===void 0&&(DK1=document.createElement("template"));var c=DK1;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return fIt=d},
is:"tp-yt-app-header-layout",behaviors:[SZU],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Iu(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var d=this.header;if(this.isAttached&&d){this.$.wrapper.classList.remove("initializing");d.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)d.style.left=
"",d.style.right="";else{var H=this.getBoundingClientRect(),K=document.documentElement.clientWidth-H.right;d.style.left=H.left+"px";d.style.right=K+"px"}H=this.$.contentContainer.style;K=d.offsetHeight;d.fixed&&!d.condenses&&this.hasScrollingRegion?(H.marginTop=K+"px",H.paddingTop=""):(H.paddingTop=K+"px",H.marginTop="")}}});var Ah1=new _.Dk("alertCommand");var jzv=new _.Dk("manageLabsStateCommand");var vD5=new _.Dk("inlineFormRenderer");var F_=new _.Dk("playlistSidebarPrimaryInfoRenderer");var dat=new _.Dk("productDetailsThumbnailRenderer"),H2q=new _.Dk("productDetailsVariantRenderer"),$aq=new _.Dk("productDetailsVariantOptionRenderer"),KkZ=new _.Dk("productDetailsOffersContainerRenderer"),ceG=new _.Dk("productDetailsOfferRenderer");var paj=new _.Dk("shoppingFlaggingRenderer");var goO=new _.Dk("playlistBylineRenderer");var i2O=new _.Dk("insertChannelTabCommand");var ZJ=function(){return _.hB.apply(this,arguments)||this};
_.m(ZJ,_.hB);_.G=ZJ.prototype;_.G.activeChanged=function(){if(this.active){var d=_.Gn(this.hostElement).querySelector("#header");d&&_.GT(d,"iron-resize");window.addEventListener("scroll",_.xf(this,this.onScroll))}else window.removeEventListener("scroll",_.xf(this,this.onScroll)),_.GT(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.G.guideVisibleChanged=function(){var d=_.Gn(this.hostElement).querySelector("#header");d&&_.GT(d,"iron-resize")};
_.G.onScroll=function(){var d=this;_.yP(this,"onScroll",function(){var H=_.Gn(d.hostElement).querySelector("#header");H&&H.polymerController&&(H=H.polymerController.getScrollState().progress===1?"standard":"seamed",_.GT(d.hostElement,"yt-request-panel-mode-change",{mode:H}))},10)};
_.G.tabsChanged=function(){if(this.tabs){for(var d=null,H=0,K=this.tabs.length;H<K;++H){var c=this.tabs[H].tabRenderer;if(c&&c.selected){d=H;break}}this.selected=d}};
_.G.onTabsActivate=function(d){_.GT(this.hostElement,"yt-navigate",{endpoint:this.tabs[d.detail.selected].tabRenderer.endpoint})};
ZJ.prototype.tabsChanged=ZJ.prototype.tabsChanged;ZJ.prototype.guideVisibleChanged=ZJ.prototype.guideVisibleChanged;ZJ.prototype.activeChanged=ZJ.prototype.activeChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],ZJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.r(),_.O("design:type",Array)],ZJ.prototype,"tabs",void 0);
_.t([_.r(),_.O("design:type",Object)],ZJ.prototype,"selected",void 0);_.t([_.r(),_.O("design:type",Boolean)],ZJ.prototype,"active",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],ZJ.prototype,"disableHeaderFluidWidth",void 0);_.t([_.CK("active"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ZJ.prototype,"activeChanged",null);
_.t([_.CK("guidePersistentAndVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ZJ.prototype,"guideVisibleChanged",null);_.t([_.CK("tabs"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ZJ.prototype,"tabsChanged",null);_.t([_.LK()],ZJ);var GKt=[_.b.YtRendererBehavior,_.bF.YtdGuideStateAwareBehavior,ZJ.prototype];var oog=2/3,qzO=_.l8(130749),a20=function(d,H){var K=this;this.element=d;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){K.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:oog,moveAction:function(c){K.moveAction(c)},
triggerAction:function(){K.element.isReloading=!0;_.EQ(_.hR(),{visualElement:qzO});_.nM.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:K.element}})}}}};
_.kR(_.hR(),qzO,this.layer);this.gesture=new _.lb(d,H,this.refreshConfig,"pan-down");this.attach()};
_.G=a20.prototype;_.G.attach=function(){this.gesture.attach()};
_.G.detach=function(){this.gesture.detach()};
_.G.reset=function(){this.element.close()};
_.G.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.G.moveAction=function(d){this.element.rotation=d*360};var l21=_.l8(130750),TW=function(d,H,K,c,p){var g=this;this.element=d;this.parent=K;this.channelHeader=c;this.ytdReduxDispatch=p;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){g.tabsStartAtInPx=g.channelHeader.clientHeight-48;var a;(a=g.selectedTab)!=null&&a.title&&(a=_.Kj().resolve(_.$p(_.HI)))&&(a=a.getCurrentPage(),g.lastVisitedTabScrollPosition=a.getScrollTop(),g.previousTab&&
((g.lastVisitedTabScrollPosition===void 0?0:g.lastVisitedTabScrollPosition<g.channelHeader.clientHeight-48)?g.scrollPositionForTabs.has(g.selectedTab.title)&&g.scrollPositionForTabs.delete(g.selectedTab.title):g.scrollPositionForTabs.set(g.selectedTab.title,a.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:eg5(),triggerAction:function(){g.navigate(g.previousTab)},
moveAction:function(a,e){g.moveAction(a,e)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-eg5(),triggerAction:function(){g.navigate(g.nextTab)},
moveAction:function(a,e){g.moveAction(a,e)}}}};
_.kR(_.hR(),l21,this.layer);this.gesture=new _.lb(d,H,this.tabConfig);this.attach()};
TW.prototype.attach=function(){this.gesture.attach()};
TW.prototype.detach=function(){this.gesture.detach()};
TW.prototype.tabsChanged=function(d){if(d){var H=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;d=_.q(d);for(var K=d.next();!K.done;K=d.next()){K=K.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=K);var c=void 0;if((c=K)==null?0:c.selected)this.previousTab=H,this.selectedTab=K;H=K}H=this.gesture;d=this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}});
H.config=d;this.scrollPositionNeedsUpdate=!0}};
TW.prototype.moveAction=function(d,H){if(!this.tabsElement){var K;this.tabsElement=(K=this.parent.header)==null?void 0:K.tabsElement;H==="right"&&this.previousTab?_.pAX(_.m9.instance,this.previousTab.endpoint,{},""):H==="left"&&this.nextTab&&_.pAX(_.m9.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}K=this.tabsElement._pos;H==="right"&&(d*=-1);this.tabsElement._positionBar(K.width,K.left*1+K.width*d)};
var eg5=function(){var d,H;return(H=(d=_.Kj().resolve(_.HI).getCurrentPage())==null?void 0:d.clientWidth)!=null?H:0};
TW.prototype.navigate=function(d){this.element.data=void 0;if(d=d==null?void 0:d.endpoint)this.ytdReduxDispatch(tFg(!0)),_.EQ(_.hR(),{visualElement:l21}),_.nM.instance.resolveCommand({navigateAction:{endpoint:d}},{form:{element:this.element}})};var kKg;var xaZ;var QN=function(){return _.B.apply(this,arguments)||this};
_.m(QN,_.B);QN.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],QN.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],QN.prototype,"data",void 0);_.t([_.Z({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],QN);
_.T(QN,"ytd-labs-edit-renderer",function(){if(xaZ!==void 0)return xaZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-edit-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-edit-renderer">\n  <h2 id="title" class="style-scope ytd-labs-edit-renderer">[[getSimpleString(data.title)]]</h2>\n  <div id="delete-button" class="style-scope ytd-labs-edit-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return xaZ=d},{mode:1});var noq;var tM=function(){var d=_.B.apply(this,arguments)||this;d.dark=!1;d.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";d.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return d};
_.m(tM,_.B);tM.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
tM.prototype.ready=function(){var d=document.documentElement.hasAttribute("dark");this.setBackgroundImage(d);this.dark=d};
tM.prototype.onDarkModeToggledAction=function(d){this.setBackgroundImage(d);this.dark=d};
tM.prototype.setBackgroundImage=function(d){_.eO(this.hostElement,{"--yt-labs-header-background":"url("+(d?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],tM.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],tM.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],tM.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],tM.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],tM.prototype,"dark",void 0);
_.t([_.Z({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],tM);
_.T(tM,"ytd-labs-header-renderer",function(){if(noq!==void 0)return noq;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-labs-header-renderer">\n  <div id="contents" class="style-scope ytd-labs-header-renderer">\n    <div id="metadata" class="style-scope ytd-labs-header-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-labs-header-renderer">\n      </ytd-badge-supported-renderer>\n      <h3 id="title" class="style-scope ytd-labs-header-renderer">[[getSimpleString(data.title)]]</h3>\n      <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-header-renderer"></yt-formatted-string>\n      <div id="primary-button" class="style-scope ytd-labs-header-renderer"></div>\n    </div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return noq=d},{mode:1});var C7j;var YN=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return d};
_.m(YN,_.B);YN.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonSize:"size-large"}}}},"data.feedbackButton":{id:"feedback-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonSize:"size-large"}}}}}};
YN.prototype.onYtToggleButton=function(d){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",d.detail.toggled)};
YN.prototype.onManageLabsState=function(d){if(d=_.M(d,jzv))d.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?d.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&d.labsItemId===this.data.labsItemId&&(d.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.oF(this.hostElement,"yt-check-labs-opted-in-state").some(function(H){return H})&&this.data.confirmationDialogCommand?_.l5(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.Kj().resolve(_.cb).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&d.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.Kj().resolve(_.cb).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
YN.prototype.onCheckLabsOptedInState=function(){var d=this.get("data.primaryButton.toggleButtonRenderer");return d?d.isToggled:!1};
_.H3.Object.defineProperties(YN.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
YN.prototype.onYtToggleButton=YN.prototype.onYtToggleButton;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],YN.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],YN.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],YN.prototype,"itemStyle",null);_.t([_.nK("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],YN.prototype,"onYtToggleButton",null);_.t([_.Z({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],YN);
_.T(YN,"ytd-labs-item-renderer",function(){if(C7j!==void 0)return C7j;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-item-renderer">\n  <div id="metadata" class="style-scope ytd-labs-item-renderer">\n    <div id="badge" hidden="[[!data.badgeTitle]]" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.badgeTitle)]]</div>\n    <h2 id="title" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.title)]]</h2>\n    <div id="expiration-date" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.expirationDate)]]</div>\n    <yt-formatted-string id="availability-text" hidden="[[data.primaryButton.toggleButtonRenderer.isToggled]]" text="[[data.experimentalInfo.availabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="disclaimer-text" split-lines="" text="[[data.experimentalInfo.disclaimerText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope ytd-labs-item-renderer">\n      <div id="primary-button" class="style-scope ytd-labs-item-renderer"></div>\n      <div id="feedback-button" hidden="[[!data.primaryButton.toggleButtonRenderer.isToggled]]" class="style-scope ytd-labs-item-renderer">\n      </div>\n    </div>\n    <yt-formatted-string id="no-availability-text" text="[[data.experimentalInfo.noAvailabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="promo-image" hidden="[[data.experimentalLabelText]]" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n  </yt-img-shadow>\n  <div id="experimental-img" hidden="[[!data.experimentalLabelText]]" width="395" class="style-scope ytd-labs-item-renderer">\n    <yt-img-shadow id="promo-image" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="experimental-label" text="[[data.experimentalLabelText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return C7j=d},{mode:1});var RgT;var VYg;var O2=function(){return _.B.apply(this,arguments)||this};
_.m(O2,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],O2.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],O2.prototype,"data",void 0);_.t([_.Z({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],O2);
_.T(O2,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(VYg!==void 0)return VYg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-new-sponsor-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.newSponsorMessage]]" class="style-scope ytd-live-chat-history-new-sponsor-chip-renderer"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return VYg=d},{mode:1});var UaO;var SZ=function(){return _.B.apply(this,arguments)||this};
_.m(SZ,_.B);SZ.prototype.observeSuperchatChip=function(){if(this.data){var d={"--yt-live-chat-history-super-chat-chip-renderer-background-color":this.colorFromDecimal(this.data.backgroundColor),"--yt-live-chat-history-super-chat-chip-renderer-text-color":this.colorFromDecimal(this.data.textColor)};_.eO(this.hostElement,d)}};
SZ.prototype.colorFromDecimal=function(d){return _.Ob(Number(d||0))};
SZ.prototype.observeSuperchatChip=SZ.prototype.observeSuperchatChip;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],SZ.prototype,"data",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],SZ.prototype,"observeSuperchatChip",null);_.t([_.Z({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],SZ);
_.T(SZ,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(UaO!==void 0)return UaO;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-super-chat-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope ytd-live-chat-history-super-chat-chip-renderer"></yt-formatted-string>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return UaO=d},{mode:1});var E2=function(){return _.B.apply(this,arguments)||this};
_.m(E2,_.B);E2.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.chip":{id:"chips",mapping:{liveChatHistorySuperChatChipRenderer:"ytd-live-chat-history-super-chat-chip-renderer",liveChatHistoryNewSponsorChipRenderer:"ytd-live-chat-history-new-sponsor-chip-renderer"}}}};
_.H3.Object.defineProperties(E2.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],E2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.OO),_.O("design:type",Object)],E2.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],E2.prototype,"data",void 0);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],E2.prototype,"hideMessageBlock",null);
_.t([_.Z({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],E2);
_.T(E2,"ytd-live-chat-history-entry-renderer",function(){if(RgT!==void 0)return RgT;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-live-chat-history-entry-renderer">\n  <div id="text" class="style-scope ytd-live-chat-history-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.videoTitle]]" class="style-scope ytd-live-chat-history-entry-renderer"></yt-formatted-string>\n    <div id="chip-container" class="style-scope ytd-live-chat-history-entry-renderer">\n      <div id="superchat-container" hidden="[[!data.chip]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        <span id="chips" class="style-scope ytd-live-chat-history-entry-renderer"></span>\n        <yt-formatted-string id="charity-name" text="[[data.charityName]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="sc4g-message" hidden="[[data.charityName]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="message" hidden="[[hideMessageBlock]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="sticker" class="style-scope ytd-live-chat-history-entry-renderer">\n      <yt-img-shadow height="64" hidden="[[!data.stickerThumbnail]]" thumbnail="[[data.stickerThumbnail]]" width="64" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-img-shadow>\n    </div>\n    <span id="timestamp" class="style-scope ytd-live-chat-history-entry-renderer">[[getSimpleString(data.timestamp)]]</span>\n  </div>\n  <div id="delete-button" class="style-scope ytd-live-chat-history-entry-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return RgT=d},{mode:1});var LkZ;var yN=function(){return _.B.apply(this,arguments)||this};
_.m(yN,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],yN.prototype,"data",void 0);_.t([_.Z({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],yN);
_.T(yN,"ytd-channel-options-renderer",function(){if(LkZ!==void 0)return LkZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel-info" hidden="[[!data.name]]" class="style-scope ytd-channel-options-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-channel-options-renderer" href$="[[computeHref_(data.avatarEndpoint)]]" data="[[data.avatarEndpoint]]" aria-label$="[[data.avatarAccessibility.accessibilityData.label]]">\n    <yt-img-shadow height="50" thumbnail="[[data.avatar]]" width="50" class="style-scope ytd-channel-options-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="channel-info-text" class="style-scope ytd-channel-options-renderer">\n    <div id="name" class="style-scope ytd-channel-options-renderer">[[data.name]]</div>\n  </div>\n</div>\n<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-channel-options-renderer">\n  <yt-formatted-string class="link style-scope ytd-channel-options-renderer" force-default-style="" split-lines="" text="[[item]]">\n  </yt-formatted-string>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return LkZ=d},{mode:1});var MYj;var bb=function(){return _.B.apply(this,arguments)||this};
_.m(bb,_.B);bb.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],bb.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],bb.prototype,"data",void 0);_.t([_.Z({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],bb);
_.T(bb,"ytd-settings-email-item-renderer",function(){if(MYj!==void 0)return MYj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info" class="style-scope ytd-settings-email-item-renderer">\n  <yt-img-shadow height="36" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="36" class="style-scope ytd-settings-email-item-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-settings-email-item-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="button-container" class="style-scope ytd-settings-email-item-renderer">\n  <div id="resume-button" class="style-scope ytd-settings-email-item-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return MYj=d},{mode:1});var maT;var Nm=function(){return _.B.apply(this,arguments)||this};
_.m(Nm,_.B);Nm.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{settingsEmailItemRenderer:{component:"ytd-settings-email-item-renderer",noInjection:!0}}},"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Nm.prototype.getExpansionIcon=function(d){return d?"COLLAPSE":"EXPAND"};
Nm.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.H3.Object.defineProperties(Nm.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Nm.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Nm.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Nm.prototype,"data",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Nm.prototype,"expanded",void 0);_.t([_.I("expanded"),_.O("design:type",String),_.O("design:paramtypes",[])],Nm.prototype,"emailListExpanded",null);
_.t([_.VP("#options"),_.O("design:type",Object)],Nm.prototype,"options",void 0);_.t([_.Z({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Nm);
_.T(Nm,"ytd-settings-email-list-renderer",function(){if(maT!==void 0)return maT;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-settings-email-list-renderer">\n  <tp-yt-paper-button id="list-expansion" aria-expanded$="[[emailListExpanded]]" aria-label$="[[getSimpleString(data.title)]]" noink="" on-tap="onToggleListExpansion" class="style-scope ytd-settings-email-list-renderer">\n    <div id="title" class="style-scope ytd-settings-email-list-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" class="style-scope ytd-settings-email-list-renderer"></yt-icon>\n    <tp-yt-paper-tooltip for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-email-list-renderer">\n      [[getSimpleString(data.helpText)]]\n    </tp-yt-paper-tooltip>\n    <yt-icon class="expand-icon style-scope ytd-settings-email-list-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </tp-yt-paper-button>\n  <div id="button-container" hidden="[[!data.resumeButton]]" on-tap="onResumeAll" class="style-scope ytd-settings-email-list-renderer">\n    <div id="resume-button" class="style-scope ytd-settings-email-list-renderer"></div>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-settings-email-list-renderer">\n  <div id="options" class="style-scope ytd-settings-email-list-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return maT=d},{mode:1});var wab;var DJ=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return d};
_.m(DJ,_.B);DJ.prototype.configureRendererStamper=function(){return{"data.form":{id:"username-password-form",mapping:{formRenderer:"yt-form-renderer"}},"data.claimButton":{id:"claim-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
DJ.prototype.handleSignalActionSubmitForm=function(){var d,H=(d=this.formRenderer)==null?void 0:d.getForm();H&&this.data.serviceEndpoint&&_.Kj().resolve(_.cb).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},H,{element:this.hostElement})})};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],DJ.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],DJ.prototype,"data",void 0);_.t([_.VP("yt-form-renderer"),_.O("design:type",Object)],DJ.prototype,"formRenderer",void 0);
_.t([_.Z({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],DJ);
_.T(DJ,"ytd-settings-gaia-link-renderer",function(){if(wab!==void 0)return wab;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-gaia-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form-container" class="style-scope ytd-settings-gaia-link-renderer">\n  <div id="username-password-form" class="style-scope ytd-settings-gaia-link-renderer"></div>\n  <div id="claim-button" class="style-scope ytd-settings-gaia-link-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return wab=d},{mode:1});var P7U;var fp=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return d};
_.m(fp,_.B);fp.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.wkt()&&this.set("data.hidden",!1)};
fp.prototype.onSwitchReady=function(){var d=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.h("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.mtg().then(function(H){H&&(Notification.permission==="default"?d.set("data.hidden",!1):Notification.permission==="granted"&&_.RP("NotificationsDisabled").then(function(K){K||_.oF(d.hostElement,"yt-toggle-settings-switch",[d.data.id,!K]);d.set("data.hidden",!1)}).catch(function(){}))})})};
fp.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{channelOptionsRenderer:{component:"ytd-channel-options-renderer",noInjection:!0},copyLinkRenderer:{component:"yt-copy-link-renderer",noInjection:!0,params:{adaptiveFullWidth:!0}},dropdownRenderer:{component:"ytd-dropdown-renderer",params:{hasBackground:!0,verticalAlign:"bottom",noUnderline:!0},noInjection:!0},settingsCheckboxRenderer:{component:"ytd-settings-checkbox-renderer",noInjection:!0},settingsEmailListRenderer:{component:"ytd-settings-email-list-renderer",
noInjection:!0},settingsGaiaLinkRenderer:{component:"ytd-settings-gaia-link-renderer",noInjection:!0},settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0},settingsSwitchRenderer:{component:"ytd-settings-switch-renderer",noInjection:!0},connectedAppRenderer:{component:"ytd-connected-app-renderer",noInjection:!0}}}}};
fp.prototype.handleUpdateOptionsCommand=function(d){(d=_.M(d,_.lkd))&&this.data&&this.data.id===d.id&&(this.set("data.hidden",d.hidden),d.text!==void 0&&this.set("data.text",d.text),d.clearOptions&&this.set("data.options",[]))};
fp.prototype.onSwitchReady=fp.prototype.onSwitchReady;fp.prototype.dataChanged=fp.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],fp.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],fp.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],fp.prototype,"data",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fp.prototype,"dataChanged",null);_.t([_.nK("yt-settings-switch-ready"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fp.prototype,"onSwitchReady",null);_.t([_.Z({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],fp);
_.T(fp,"ytd-settings-options-renderer",function(){if(P7U!==void 0)return P7U;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" hidden="[[data.hidden]]" class="style-scope ytd-settings-options-renderer">\n  <div id="title" class="style-scope ytd-settings-options-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="content" class="style-scope ytd-settings-options-renderer">\n    <div id="options" class="style-scope ytd-settings-options-renderer"></div>\n    <yt-formatted-string id="text" force-default-style="" hidden="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-settings-options-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return P7U=d},{mode:1});var u9T;var AM=function(){return _.B.apply(this,arguments)||this};
_.m(AM,_.B);AM.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
AM.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
AM.prototype.onYtExpanderMoreTapped=AM.prototype.onYtExpanderMoreTapped;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],AM.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],AM.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],AM.prototype,"data",void 0);
_.t([_.nK("yt-expander-more-tapped"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],AM.prototype,"onYtExpanderMoreTapped",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],AM);
_.T(AM,"ytd-product-details-description-renderer",function(){if(u9T!==void 0)return u9T;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-description-renderer">\n  <div class="description-row row style-scope ytd-product-details-description-renderer">\n      <ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="4" recompute-on-resize="" class="style-scope ytd-product-details-description-renderer">\n        <div class="description style-scope ytd-product-details-description-renderer" slot="content">[[data.description]]\n        </div>\n        <span id="attribution-link-button" slot="sticky-secondary" hidden="[[!data.attributionLinkButtonRenderer]]" class="style-scope ytd-product-details-description-renderer"></span>\n        <span class="more-button style-scope ytd-product-details-description-renderer" slot="more-button">[[getSimpleString(data.moreButtonRenderer.buttonRenderer.text)]]</span>\n        <span class="less-button style-scope ytd-product-details-description-renderer" slot="less-button">[[getSimpleString(data.lessButtonRenderer.buttonRenderer.text)]]</span>\n      </ytd-expander>\n    </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return u9T=d},{mode:1});var I2v;var jZ=function(){var d=_.B.apply(this,arguments)||this;d.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";d.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";d.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";d.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return d};
_.m(jZ,_.B);jZ.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H3.Object.defineProperties(jZ.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?void 0:(H=d.offerData)==null?void 0:H.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?void 0:d.purchaseButtonRenderers)!==void 0&&((H=this.data)==null?void 0:H.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var d,H;return!((d=this.data)==null||!d.formattedFromMerchantText)&&(!((H=this.data)==null||!H.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],jZ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],jZ.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],jZ.prototype,"data",void 0);
_.t([_.r({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0}),_.O("design:type",Object)],jZ.prototype,"shippingIcon",void 0);_.t([_.r({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0}),_.O("design:type",Object)],jZ.prototype,"shippingAddressIcon",void 0);_.t([_.r({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0}),_.O("design:type",Object)],jZ.prototype,"googleGuaranteeIcon",void 0);
_.t([_.r({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0}),_.O("design:type",Object)],jZ.prototype,"returnPolicyIcon",void 0);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],jZ.prototype,"showAdditionalFees",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],jZ.prototype,"showMultiPurchaseButtons",null);
_.t([_.I("data","showMultiPurchaseButtons"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],jZ.prototype,"showPurchaseData",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],jZ);
_.T(jZ,"ytd-product-details-hero-offer-renderer",function(){if(I2v!==void 0)return I2v;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-hero-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="price-and-action-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showPurchaseData]]" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="price-column style-scope ytd-product-details-hero-offer-renderer">\n    <div class="price style-scope ytd-product-details-hero-offer-renderer">\n      <span class="item-price style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.price]]</span>\n      <template is="dom-if" restamp="" if="[[showAdditionalFees]]" class="style-scope ytd-product-details-hero-offer-renderer">\n        <span class="additional-fees style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n      </template>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.title]]</div>\n    <template is="dom-if" restamp="" if="[[!data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="merchant-row row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n          <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n        </div>\n        <yt-formatted-string text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      </yt-formatted-string></div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="shipping-details row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="shipping-details-inner column style-scope ytd-product-details-hero-offer-renderer">\n          <div class="row shipping-details-inner-row secondary-color style-scope ytd-product-details-hero-offer-renderer">\n            <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n              <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n            </div>\n            <yt-formatted-string link-inherit-color="" text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n          </yt-formatted-string></div>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="date-and-price" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="return-policy" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[returnPolicyIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string link-inherit-color="" text="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="shipping-address" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingAddressIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shoutoutText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="google-guarantee" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[googleGuaranteeIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <span class="shoutout-text secondary-color style-scope ytd-product-details-hero-offer-renderer">[[data.shoutoutText]]</span>\n              <ytd-button-renderer class="google-guarantee-info style-scope ytd-product-details-hero-offer-renderer" data="[[data.shoutoutButtonRenderer.buttonRenderer]]">\n              </ytd-button-renderer>\n            </div>\n          </template>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.affiliateDisclaimerText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div id="affiliate-disclaimer" class="affiliate-disclaimer-text-row row style-scope ytd-product-details-hero-offer-renderer">\n        <span class="secondary-color style-scope ytd-product-details-hero-offer-renderer"> [[data.affiliateDisclaimerText]] </span>\n      </div>\n    </template>\n    <div class="purchase-buttons-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showMultiPurchaseButtons]]">\n      <div id="purchase-buttons" class="purchase-buttons-inner column style-scope ytd-product-details-hero-offer-renderer">\n      </div>\n    </div>\n  </div>\n  <div class="action-column style-scope ytd-product-details-hero-offer-renderer">\n    <div id="purchase-button" class="style-scope ytd-product-details-hero-offer-renderer"></div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return I2v=d},{mode:1});var reb;var Wkt;var vL=function(){return _.B.apply(this,arguments)||this};
_.m(vL,_.B);_.G=vL.prototype;_.G.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.G.onKeyDown=function(d){d=d.keyCode;d!==13&&d!==32||this.handleSelection()};
_.G.onMouseEnterImage=function(){var d;((d=this.data)==null?void 0:d.thumbnailDetails)!==void 0&&_.qo(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.G.onMouseLeaveImage=function(){_.qo(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.G.handleSelection=function(){this.data&&_.GT(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.H3.Object.defineProperties(vL.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.isSelected)}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],vL.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],vL.prototype,"data",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],vL.prototype,"isSelected",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],vL);
_.T(vL,"ytd-product-details-thumbnail-renderer",function(){if(Wkt!==void 0)return Wkt;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product-card-renderer-container" class="style-scope ytd-product-details-thumbnail-renderer">\n  <div id="card" class="style-scope ytd-product-details-thumbnail-renderer">\n    <div hidden="[[!isSelected]]" id="card-selection-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <div id="card-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <yt-img-shadow id="card-image" aria-label="[[data.thumbnailDetails.accessibility.accessibilityData.label]]" object-fit="CONTAIN" thumbnail="[[data.thumbnailDetails]]" width="56px" class="style-scope ytd-product-details-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Wkt=d},{mode:1});var d3=function(){var d=_.B.apply(this,arguments)||this;var H={};d.actionMap=(H["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",H["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",H);d.selectedThumbnailIndex=0;d.selectItem=function(K){K.target.onKeyDown(K)};
return d};
_.m(d3,_.B);_.G=d3.prototype;_.G.handlePreviewImageSelect=function(d){this.hoverThumbnail=d};
_.G.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.G.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.G.onThumbnailSelected=function(d,H){this.selectedThumbnailIndex=H};
_.G.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.G.updateOffset=function(){var d=_.Gn(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-d));this.ytdHorizontalListBehavior.reposition_()};
_.H3.Object.defineProperties(d3.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.data)==null?0:d.imageRenderer){var H,K;return((H=this.data)==null?void 0:(K=H.imageRenderer)==null?void 0:K.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var d;if((d=this.data)==null?0:d.imageRenderer){var H;return(H=_.M(this.data.imageRenderer[this.selectedThumbnailIndex],dat))==null?void 0:H.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var d=this,H,K,c,p=(c=(H=this.data)==null?void 0:(K=H.imageRenderer)==null?void 0:K.map(function(g,a){return{productDetailsThumbnailRenderer:Object.assign({},_.M(g,dat),{index:a,isSelected:a===d.selectedThumbnailIndex})}}))!=null?c:[];
return Object.assign({},this.data,{imageRenderer:p})}}});
d3.prototype.updateOffset=d3.prototype.updateOffset;d3.prototype.dataChanged=d3.prototype.dataChanged;d3.prototype.onThumbnailSelected=d3.prototype.onThumbnailSelected;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],d3.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.oL.YtdHorizontalListBehavior),_.O("design:type",Object)],d3.prototype,"ytdHorizontalListBehavior",void 0);
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],d3.prototype,"componentBehavior",void 0);_.t([_.u([_.Uq.YtActionHandlerBehavior]),_.O("design:type",Object)],d3.prototype,"actionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],d3.prototype,"data",void 0);_.t([_.r({value:"$.items.children"}),_.O("design:type",String)],d3.prototype,"itemsPath",void 0);_.t([_.r({value:3}),_.O("design:type",Number)],d3.prototype,"initialCount",void 0);
_.t([_.VP("#items"),_.O("design:type",Object)],d3.prototype,"items",void 0);_.t([_.r(),_.O("design:type",Object)],d3.prototype,"selectedThumbnailIndex",void 0);_.t([_.r(),_.O("design:type",Object)],d3.prototype,"hoverThumbnail",void 0);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],d3.prototype,"showThumbnails",null);
_.t([_.nK("ytd-product-details-thumbnail-renderer-selected"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Number]),_.O("design:returntype")],d3.prototype,"onThumbnailSelected",null);_.t([_.I("data","selectedThumbnailIndex","hoverThumbnail"),_.O("design:type",Object),_.O("design:paramtypes",[])],d3.prototype,"thumbnailDetails",null);_.t([_.I("data","selectedThumbnailIndex"),_.O("design:type",Object),_.O("design:paramtypes",[])],d3.prototype,"populatedData",null);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],d3.prototype,"dataChanged",null);_.t([_.nK("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],d3.prototype,"updateOffset",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],d3);
_.T(d3,"ytd-product-details-image-carousel-renderer",function(){if(reb!==void 0)return reb;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-image-carousel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="preview style-scope ytd-product-details-image-carousel-renderer">\n  <template is="dom-if" restamp="" if="[[thumbnailDetails]]" class="style-scope ytd-product-details-image-carousel-renderer">\n    <yt-img-shadow class="preview-image style-scope ytd-product-details-image-carousel-renderer" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="512"></yt-img-shadow>\n  </template>\n</div>\n<div id="main" class="main style-scope ytd-product-details-image-carousel-renderer" hidden="[[!showThumbnails]]">\n  <div id="left-arrow-container" class="left-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="left-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-product-details-image-carousel-renderer">\n    <tp-yt-paper-listbox id="items" on-keydown="selectItem" class="style-scope ytd-product-details-image-carousel-renderer"></tp-yt-paper-listbox>\n  </div>\n  <div id="right-arrow-container" class="right-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="right-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return reb=d},{mode:_.qk("kevlar_poly_si_batch_j079")?1:2});var BUq;var HP=function(){return _.B.apply(this,arguments)||this};
_.m(HP,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],HP.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],HP.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],HP.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],HP);
_.T(HP,"ytd-product-details-offer-renderer",function(){if(BUq!==void 0)return BUq;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="offer-details offer-details-new-ux style-scope ytd-product-details-offer-renderer" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="offer-details-information style-scope ytd-product-details-offer-renderer">\n    <div class="offer-price style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.price]]\n      <span class="additional-fees style-scope ytd-product-details-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.title]]\n    </div>\n    <div class="vendor-information style-scope ytd-product-details-offer-renderer">\n      <div class="vendor-logo style-scope ytd-product-details-offer-renderer">\n        <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <div class="vendor-name style-scope ytd-product-details-offer-renderer">[[data.offerData.vendorName]]</div>\n    </div>\n  </div>\n  <div class="offer-cta style-scope ytd-product-details-offer-renderer">\n    <div class="checkout style-scope ytd-product-details-offer-renderer">\n      <ytd-button-renderer data="[[data.purchaseButtonRenderer.buttonRenderer]]" class="style-scope ytd-product-details-offer-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return BUq=d},{mode:1});var zg0;var $T=function(){var d=_.B.apply(this,arguments)||this;d.isOffersHidden=!0;return d};
_.m($T,_.B);$T.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var d,H=_.M((d=this.data)==null?void 0:d.viewOffersButton,_.Tz);H&&this.ytRendererBehavior.logExplicitClick(H)};
$T.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.H3.Object.defineProperties($T.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c;return(K=_.M((d=this.data)==null?void 0:(H=d.offers)==null?void 0:H[0],ceG))==null?void 0:(c=K.offerData)==null?void 0:c.vendorLogoUrl}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],$T.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],$T.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],$T.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],$T.prototype,"isOffersHidden",void 0);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],$T.prototype,"firstOfferVendorLogoUrl",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],$T);
_.T($T,"ytd-product-details-offers-container-renderer",function(){if(zg0!==void 0)return zg0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offers-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-container style-scope ytd-product-details-offers-container-renderer">\n  <div class="header style-scope ytd-product-details-offers-container-renderer" on-click="toggleOffers">\n    <div class="title-description-container style-scope ytd-product-details-offers-container-renderer">\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionLeft]]">\n      </yt-formatted-string>\n      <div class="vendor-logo style-scope ytd-product-details-offers-container-renderer">\n        <img src$="[[firstOfferVendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offers-container-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionRight]]">\n      </yt-formatted-string>\n    </div>\n    <div class="action style-scope ytd-product-details-offers-container-renderer">\n      <ytd-button-renderer id="view-offers" class="view-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="false" data="[[data.viewOffersButton.buttonRenderer]]" hidden="[[!isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n      <ytd-button-renderer id="hide-offers" class="hide-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="true" data="[[data.hideOffersButton.buttonRenderer]]" hidden="[[isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="offer" hidden="[[isOffersHidden]]" class="style-scope ytd-product-details-offers-container-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return zg0=d},{mode:1});var Xab;var Je5;var K$=function(){return _.B.apply(this,arguments)||this};
_.m(K$,_.B);K$.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
K$.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.qo(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
K$.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.qo(this,"ytd-product-details-variant-image-unselect")};
_.H3.Object.defineProperties(K$.prototype,{isImageButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE"}},
isPillButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL"||this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST"}},
isActive:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return((d=this.data)==null?void 0:d.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((H=this.data)==null?void 0:H.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((K=this.data)==null?void 0:K.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var d;if(((d=this.data)==null?void 0:d.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var d,H;return this.isUnavailable?(d=this.data)==null?void 0:d.variantOptionUnavailableAccessibilityLabel:(H=this.data)==null?void 0:H.variantOptionAccessibilityLabel}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],K$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],K$.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],K$.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],K$.prototype,"displayType",void 0);
_.t([_.I("displayType","data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],K$.prototype,"isImageButton",null);_.t([_.I("displayType","data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],K$.prototype,"isPillButton",null);_.t([_.I("data"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],K$.prototype,"isActive",null);
_.t([_.I("data"),_.r({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],K$.prototype,"isUnavailable",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],K$.prototype,"thumbnailDetails",null);_.t([_.I("isUnavailable","data"),_.O("design:type",Object),_.O("design:paramtypes",[])],K$.prototype,"accessibilityLabel",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],K$);
_.T(K$,"ytd-product-details-variant-option-renderer",function(){if(Je5!==void 0)return Je5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-variant-option-renderer">\n  <template is="dom-if" restamp="" if="[[isImageButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-image style-scope ytd-product-details-variant-option-renderer">\n        <yt-img-shadow alt="[[data.name]]" height="52" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="52" class="style-scope ytd-product-details-variant-option-renderer"></yt-img-shadow>\n      </div>\n    </a>\n    <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n      [[accessibilityLabel]]\n    </tp-yt-paper-tooltip>\n  </template>\n  <template is="dom-if" restamp="" if="[[isPillButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-pill style-scope ytd-product-details-variant-option-renderer">\n        <span class="style-scope ytd-product-details-variant-option-renderer">[[data.name]]</span>\n      </div>\n    </a>\n    <template is="dom-if" restamp="" if="[[isUnavailable]]" class="style-scope ytd-product-details-variant-option-renderer">\n      <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n        [[data.unavailableText]]\n      </tp-yt-paper-tooltip>\n    </template>\n  </template>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Je5=d},{mode:1});var sA5;var cP=function(){var d=_.B.apply(this,arguments)||this;d.variantsExpanded=!1;d.hideShowMoreLessVariantButton=!0;d.initialized=!1;d.computeVariantsDebouncer=null;d.computeVariants=function(H){H=H===void 0?!1:H;d.variantsExpanded||d.showOptions()||!H||(d.variantsExpanded=!0);if(d.variantsExpanded){H=_.q(d.items.children);for(var K=H.next();!K.done;K=H.next())K.value.hidden=!1}d.initialized=!0};
return d};
_.m(cP,_.B);_.G=cP.prototype;_.G.ready=function(){var d=this;setTimeout(function(){d.computeVariants(!0)})};
_.G.showOptions=function(){for(var d=_.q(this.items.children),H=d.next();!H.done;H=d.next())H.value.hidden=!0;var K=this.container.getBoundingClientRect().width,c=0,p=d=0;H=!1;for(var g=_.q(this.items.children),a=g.next();!a.done;a=g.next()){a=a.value;a.hidden=!1;var e=a.getBoundingClientRect().width;if(c+e<K)c+=e;else if(++p<2)c=e;else break;d+=1;a.hasAttribute("is-active")&&(H=!0)}for(K=d;K<this.items.children.length;K++)this.items.children[K].hidden=!0;this.hideShowMoreLessVariantButton=d===this.items.children.length;
return H};
_.G.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.G8(this.computeVariantsDebouncer,_.DR.after(100),this.computeVariants)};
_.G.onShowMoreLessVariantsButtonClick=function(){var d;(d=this.data)!=null&&d.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.G.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.H3.Object.defineProperties(cP.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var d,H,K=(d=this.data)==null?void 0:(H=d.variantOptionRenderers)==null?void 0:H.find(function(g){return _.M(g,$aq).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),c,p;
return(p=(c=_.M(K,$aq))==null?void 0:c.name)!=null?p:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
cP.prototype.debouncedComputeVariants=cP.prototype.debouncedComputeVariants;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],cP.prototype,"componentBehavior",void 0);_.t([_.u(_.WZ),_.O("design:type",Object)],cP.prototype,"ironResizableBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],cP.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],cP.prototype,"variantsExpanded",void 0);_.t([_.r(),_.O("design:type",Object)],cP.prototype,"hideShowMoreLessVariantButton",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],cP.prototype,"initialized",void 0);_.t([_.VP("#items"),_.O("design:type",HTMLDivElement)],cP.prototype,"items",void 0);_.t([_.VP("#container"),_.O("design:type",HTMLDivElement)],cP.prototype,"container",void 0);
_.t([_.VP("#more-variants-button"),_.O("design:type",HTMLElement)],cP.prototype,"moreVariantsButton",void 0);_.t([_.I("data"),_.O("design:type",String),_.O("design:paramtypes",[])],cP.prototype,"selectedOptionName",null);_.t([_.CK("data","variantsExpanded"),_.nK("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cP.prototype,"debouncedComputeVariants",null);
_.t([_.I("data"),_.O("design:type",String),_.O("design:paramtypes",[])],cP.prototype,"displayType",null);_.t([_.I("displayType"),_.O("design:type",Object),_.O("design:paramtypes",[])],cP.prototype,"variantItemsClassname",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],cP);
_.T(cP,"ytd-product-details-variant-renderer",function(){if(sA5!==void 0)return sA5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-product-details-variant-renderer">\n  <div class="variant-title-container style-scope ytd-product-details-variant-renderer">\n    <div class="variant-title style-scope ytd-product-details-variant-renderer">[[data.title]]</div><div class="variant-selected-option style-scope ytd-product-details-variant-renderer">[[selectedOptionName]]</div>\n  </div>\n  <div class$="variant-items-container variant-items-container-[[variantItemsClassname]] style-scope ytd-product-details-variant-renderer">\n    <div id="items" class="style-scope ytd-product-details-variant-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[!hideShowMoreLessVariantButton]]" class="style-scope ytd-product-details-variant-renderer">\n    <ytd-button-renderer class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showMoreVariants.buttonRenderer]]" hidden$="[[variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="more-variants-button" class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showLessVariants.buttonRenderer]]" hidden$="[[!variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n  </template>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return sA5=d},{mode:1});var p$=function(){return _.B.apply(this,arguments)||this};
_.m(p$,_.B);
p$.prototype.configureRendererStamper=function(){return{"data.imageCarouselRenderer":{id:"image-carousel-renderer",mapping:{productDetailsImageCarouselRenderer:"ytd-product-details-image-carousel-renderer"}},"data.heroOfferRenderer":{id:"hero-offer-renderer",mapping:{productDetailsHeroOfferRenderer:{component:"ytd-product-details-hero-offer-renderer"}}},"data.variants":{id:"variants",mapping:{productDetailsVariantRenderer:"ytd-product-details-variant-renderer"}},"data.offersContainerRenderer":{id:"offers",mapping:{productDetailsOffersContainerRenderer:"ytd-product-details-offers-container-renderer"}},
"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.shareButton":{id:"share-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.descriptionRenderer":{id:"description-renderer",mapping:{productDetailsDescriptionRenderer:"ytd-product-details-description-renderer"}}}};
_.H3.Object.defineProperties(p$.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var d,H,K=(H=_.M((d=this.data)==null?void 0:d.offersContainerRenderer,KkZ))==null?void 0:H.offers;return K!==void 0&&(K==null?void 0:K.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return((K=(d=this.data)==null?void 0:(H=d.variants)==null?void 0:H.map(function(c){var p,g;c=(g=(p=_.M(c,H2q))==null?void 0:p.variantOptionRenderers)==null?void 0:g.find(function(e){var k;return((k=_.M(e,$aq))==null?void 0:k.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var a;return(a=_.M(c,$aq))==null?void 0:a.name}).filter(function(c){return typeof c==="string"}))!=null?K:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var d,H,K,c=(H=_.M((d=this.data)==null?void 0:d.shoppingFlaggingRenderer,paj))==null?void 0:(K=H.reportButton)==null?void 0:K.buttonRenderer;if(c)return{text:c.text,command:c.command,icon:{iconType:"FLAG"},accessibilityData:c.accessibilityData,trackingParams:c.trackingParams,loggingDirectives:c.loggingDirectives}}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],p$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],p$.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],p$.prototype,"data",void 0);_.t([_.VP("#image-carousel-renderer"),_.O("design:type",Object)],p$.prototype,"imageCarouselRenderer",void 0);
_.t([_.VP("#hero-offer-renderer"),_.O("design:type",Object)],p$.prototype,"productDetailsHeroOfferRenderer",void 0);_.t([_.VP("#variants"),_.O("design:type",Object)],p$.prototype,"productDetailsVariantRenderer",void 0);_.t([_.VP("#offers"),_.O("design:type",Object)],p$.prototype,"productDetailsOffersContainerRenderer",void 0);_.t([_.VP("#description-renderer"),_.O("design:type",Object)],p$.prototype,"productDetailsDescriptionRenderer",void 0);
_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p$.prototype,"showPurchaseData",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p$.prototype,"showHeroOfferRenderer",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p$.prototype,"showBrandText",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p$.prototype,"showOffers",null);
_.t([_.I("showOffers","showPurchaseData"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p$.prototype,"showBuySeparator",null);_.t([_.I("showOffers","showPurchaseData"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p$.prototype,"showBuyCard",null);_.t([_.I("data"),_.O("design:type",String),_.O("design:paramtypes",[])],p$.prototype,"selectedVariantsText",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],p$.prototype,"shoppingReportingButtonData",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],p$);
_.T(p$,"ytd-product-details-renderer",function(){if(Xab!==void 0)return Xab;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-renderer">\n  <div class="column column-image-carousel style-scope ytd-product-details-renderer">\n    <div id="image-carousel-renderer" class="style-scope ytd-product-details-renderer"></div>\n  </div>\n  <div class="column column-description style-scope ytd-product-details-renderer">\n    <div class="title-row row style-scope ytd-product-details-renderer">\n      <div class="style-scope ytd-product-details-renderer">[[getSimpleString(data.title)]]</div>\n      <div class="title-row-buttons row style-scope ytd-product-details-renderer">\n        <div id="share-button" class="style-scope ytd-product-details-renderer"></div>\n        <div id="action-button" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="brand-row row style-scope ytd-product-details-renderer">\n      <template is="dom-if" restamp="" if="[[showBrandText]]" class="style-scope ytd-product-details-renderer">\n        <yt-formatted-string class="formatted-brand style-scope ytd-product-details-renderer" text="[[data.formattedByBrandText]]">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="description-renderer" class="style-scope ytd-product-details-renderer"></div>\n    <div id="variants" class="style-scope ytd-product-details-renderer"></div>\n    <div class="buy style-scope ytd-product-details-renderer" hidden="[[!showBuyCard]]">\n      <div hidden="[[!showHeroOfferRenderer]]" id="hero-offer-renderer" class="style-scope ytd-product-details-renderer"></div>\n      <div class="style-scope ytd-product-details-renderer">\n        <hr class="buy-separator style-scope ytd-product-details-renderer" hidden="[[!showBuySeparator]]">\n        <div id="offers" hidden="[[!showOffers]]" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="buy offer-unavailable style-scope ytd-product-details-renderer" hidden="[[showBuyCard]]">\n        <yt-formatted-string class="offer-unavailable-title style-scope ytd-product-details-renderer" text="[[data.unavailableText]]">\n        </yt-formatted-string>\n        <div class="offer-unavailable-variants style-scope ytd-product-details-renderer">[[selectedVariantsText]]</div>\n    </div>\n    <div class="flagging-container style-scope ytd-product-details-renderer" hidden="[[!data.shoppingFlaggingRenderer]]">\n      <ytd-button-renderer id="flagging-button" data="[[shoppingReportingButtonData]]" class="style-scope ytd-product-details-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Xab=d},{mode:1});var Fk1;var Z2U;var TUT;var g3=function(){return _.B.apply(this,arguments)||this};
_.m(g3,_.B);g3.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.H3.Object.defineProperties(g3.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],g3.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],g3.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],g3.prototype,"formattedAmount",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],g3.prototype,"ariaLabel",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("data.style"),_.O("design:type",String),_.O("design:paramtypes",[])],g3.prototype,"vcBalanceWidgetStyle",null);_.t([_.ZV({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],g3);
_.T(g3,"yt-vc-balance-renderer",function(){if(TUT===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_balance_renderer.yt.vc.balance.renderer.css.js--\x3e<div id="vc-icon" hidden$="[[!data.vcIcon]]" class="style-scope yt-vc-balance-renderer">\n</div>\n<p id="vc-balance" class="style-scope yt-vc-balance-renderer">[[formattedAmount]]</p>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;Z2U===void 0&&(Z2U=document.createElement("template"));var c=Z2U;K.call(H,c.content.cloneNode(!0),d.content.firstChild);TUT=d}d=TUT;return d},{mode:2});_.XX("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var ip=function(){return _.B.apply(this,arguments)||this};
_.m(ip,_.B);_.H3.Object.defineProperties(ip.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],ip.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ip.prototype,"data",void 0);_.t([_.r({selectorArgs:["data.vcBalanceEntityKey"],selector:function(d,H){return _.xL(d.entities,"vcBalanceEntity",H)}}),
_.O("design:type",Object)],ip.prototype,"vcBalanceEntity",void 0);_.t([_.I("vcBalanceEntity"),_.O("design:type",String),_.O("design:paramtypes",[])],ip.prototype,"formattedAmount",null);_.t([_.I("vcBalanceEntity"),_.O("design:type",String),_.O("design:paramtypes",[])],ip.prototype,"vcBalanceAriaLabel",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],ip);
_.T(ip,"ytd-vc-balance-renderer",function(){if(Fk1!==void 0)return Fk1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-vc-balance-renderer aria-label="[[vcBalanceAriaLabel]]" data="[[data]]" formatted-amount="[[formattedAmount]]" class="style-scope ytd-vc-balance-renderer">\n</yt-vc-balance-renderer>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Fk1=d},{mode:1});var QAT;var Gq=function(){var d=_.B.apply(this,arguments)||this;d.rotation=0;d.isReloading=!1;return d};
_.m(Gq,_.B);Gq.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Gq.prototype.reset=function(){this.hostElement.style.opacity=""};
Gq.prototype.close=function(){var d=this;return _.l(function(H){if(H.nextAddress==1)return H.yield(d.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);d.hostElement.style.opacity="0";_.VE(H)})};
Gq.prototype.rotationChanged=Gq.prototype.rotationChanged;_.t([_.r(),_.O("design:type",Object)],Gq.prototype,"rotation",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Gq.prototype,"isReloading",void 0);_.t([_.VP("#icon"),_.O("design:type",HTMLElement)],Gq.prototype,"icon",void 0);_.t([_.CK("rotation"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Gq.prototype,"rotationChanged",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-refresh"})],Gq);
_.T(Gq,"ytd-refresh",function(){if(QAT!==void 0)return QAT;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-refresh--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[isReloading]]" icon="refresh" class="style-scope ytd-refresh"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[isReloading]]" hidden="[[!isReloading]]" class="style-scope ytd-refresh">\n</tp-yt-paper-spinner-lite>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return QAT=d},{mode:1});var tYZ;var o0=function(){return _.B.apply(this,arguments)||this};
_.m(o0,_.B);o0.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
o0.prototype.dataChanged=function(){if(this.data){var d=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var H=_.Gv(this.data.banner.thumbnails,this.hostElement.clientWidth);H&&(H.indexOf("//")===0&&(H="https:"+H),this.hasBannerArt=!0,_.eO(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+H+")"}))}this.hasBannerArt!==d&&_.Gn(this.hostElement).querySelector("#header").fire("iron-resize")}};
o0.prototype.updateSelectedFromBinding=function(d){this.selected=d.detail.value};
o0.prototype.dataChanged=o0.prototype.dataChanged;_.t([_.u(GKt),_.O("design:type",Object)],o0.prototype,"ytdTabbedHeaderBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],o0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.EO),_.O("design:type",Object)],o0.prototype,"ytdGridStateAwareBehavior",void 0);_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],o0.prototype,"ytdGuideStateAwareBehavior",void 0);
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],o0.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],o0.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Number)],o0.prototype,"selected",void 0);_.t([_.r(),_.O("design:type",Boolean)],o0.prototype,"active",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],o0.prototype,"hasBannerArt",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],o0.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],o0);
_.T(o0,"ytd-interactive-tabbed-header-renderer",function(){if(tYZ!==void 0)return tYZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return tYZ=d},{mode:1});var YzS;var qy=function(){return _.B.apply(this,arguments)||this};
_.m(qy,_.B);qy.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qy.prototype.computeActionsAlignment=function(d){return(d==null?void 0:d.actionsAlignment)||""};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],qy.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],qy.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],qy.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.O("design:type",String)],qy.prototype,"actionsAlignment",void 0);_.t([_.Z({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],qy);
_.T(qy,"ytd-page-footer-renderer",function(){if(YzS!==void 0)return YzS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-actions" class="style-scope ytd-page-footer-renderer"></div>\n<div id="actions" class="style-scope ytd-page-footer-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return YzS=d},{mode:1});var O2t;var Szj;var a0=function(){var d=_.B.apply(this,arguments)||this;d.isEditing=!1;d.useSlot=!1;d.isMultiline=!1;return d};
_.m(a0,_.B);_.G=a0.prototype;_.G.onKeydown=function(d){if(d.keyCode===13&&!this.isMultiline)this.onSave();else if(d.keyCode===27)this.onCancel()};
_.G.computeComponentStyle=function(d){return(d==null?0:d.style)?d.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.G.computeisMultiline=function(d){if(this.multilineOverride!==void 0)return this.multilineOverride;var H,K;return!!(d==null?0:(H=d.formField)==null?0:(K=H.textInputFormFieldRenderer)==null?0:K.isMultiline)};
_.G.computeTextDisplayed=function(d,H){if(d)return d;if(H)return H};
_.G.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.G.onSave=function(){if(this.textForm.validate()){this.textForm.save();var d=this.textForm.value;if(d)this.set("data.textDisplayed",_.AF(d));else{var H;((H=this.data)==null?0:H.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.AT("inline-form-changed",this.data));this.isEditing=!1}};
_.G.onCancel=function(){var d=_.jG(this.data.textDisplayed);d===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(d);this.isEditing=!1};
a0.prototype.onKeydown=a0.prototype.onKeydown;_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],a0.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],a0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],a0.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],a0.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],a0.prototype,"isEditing",void 0);_.t([_.r(),_.O("design:type",Object)],a0.prototype,"useSlot",void 0);_.t([_.r(),_.O("design:type",Boolean)],a0.prototype,"multilineOverride",void 0);_.t([_.r(),_.O("design:type",Boolean)],a0.prototype,"enableOverlayTheme",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.O("design:type",String)],a0.prototype,"componentStyle",void 0);
_.t([_.r({computed:"computeisMultiline(data)"}),_.O("design:type",Object)],a0.prototype,"isMultiline",void 0);_.t([_.VP("#text-form"),_.O("design:type",Object)],a0.prototype,"textForm",void 0);_.t([_.nK("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[KeyboardEvent]),_.O("design:returntype")],a0.prototype,"onKeydown",null);_.t([_.Z({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],a0);
_.T(a0,"ytd-inline-form-renderer",function(){if(Szj!==void 0)return Szj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="display-dialog" hidden="[[isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <template is="dom-if" restamp="" if="[[useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <slot name="text-display" id="text-displayed" class="style-scope ytd-inline-form-renderer"></slot>\n  </template>\n  <template is="dom-if" restamp="" if="[[!useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <yt-formatted-string id="text-displayed" split-lines="" text="[[computeTextDisplayed(data.textDisplayed, data.placeholder)]]" class="style-scope ytd-inline-form-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<ytd-button-renderer id="edit-button" button-tooltip-position="left" data="[[data.editButton.buttonRenderer]]" hidden="[[isEditing]]" on-click="onEdit" class="style-scope ytd-inline-form-renderer">\n</ytd-button-renderer>\n<div id="edit-dialog" hidden="[[!isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <yt-text-input-form-field-renderer id="text-form" component-style="[[componentStyle]]" data="[[data.formField.textInputFormFieldRenderer]]" enable-overlay-theme="[[enableOverlayTheme]]" is-multiline-override="[[isMultilineOverride]]" no-label-float="" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-inline-form-renderer">\n  </yt-text-input-form-field-renderer>\n  <div id="edit-buttons" class="style-scope ytd-inline-form-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancel" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSave" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Szj=d},{mode:1});var EoS;var lp=function(){var d=_.B.apply(this,arguments)||this;d.previousSelectValue=void 0;d.selectedItemMessage=void 0;return d};
_.m(lp,_.B);lp.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
lp.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var d,H,K,c,p=(d=this.data)==null?void 0:(H=d.dropdown)==null?void 0:(K=H.dropdownRenderer)==null?void 0:(c=K.entries)==null?void 0:c.map(function(e){return e.privacyDropdownItemRenderer});
d=_.q(p!=null?p:[]);for(H=d.next();!H.done;H=d.next())if((H=H.value)&&H.int32Value===this.selectedValue){this.selectedItemMessage=H.itemMessage;break}}else this.selectedItemMessage=void 0;var g;(g=this.onValueChanged)==null||g.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var a;(a=this.data)!=null&&a.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
lp.prototype.onValueChangedForSelectedValue=function(d){this.selectedValue=d.detail.value};
lp.prototype.selectedValueChanged=lp.prototype.selectedValueChanged;_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],lp.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],lp.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],lp.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],lp.prototype,"theme",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Number)],lp.prototype,"selectedValue",void 0);_.t([_.r(),_.O("design:type",Function)],lp.prototype,"onValueChanged",void 0);
_.t([_.Mr("selectedValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lp.prototype,"selectedValueChanged",null);_.t([_.Z({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],lp);
_.T(lp,"ytd-dropdown-form-field-renderer",function(){if(EoS!==void 0)return EoS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-dropdown-form-field-renderer">\n  <ytd-dropdown-renderer id="dropdown" autosize="" data="[[data.dropdown.dropdownRenderer]]" min-autosize-width="0" no-label-float="" no-underline="" theme="[[theme]]" value="[[selectedValue]]" on-value-changed="onValueChangedForSelectedValue" class="style-scope ytd-dropdown-form-field-renderer">\n  </ytd-dropdown-renderer>\n  <yt-formatted-string id="selected-item-message" hidden="[[!selectedItemMessage]]" text="[[selectedItemMessage]]" class="style-scope ytd-dropdown-form-field-renderer">\n  </yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return EoS=d},{mode:_.qk("kevlar_poly_si_batch_j025")?1:2});var yeZ;var e_=function(){return _.B.apply(this,arguments)||this};
_.m(e_,_.B);_.H3.Object.defineProperties(e_.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var d=[],H=_.q(this.data||[]),K=H.next();!K.done;K=H.next())(K=_.M(K.value,goO))&&d.push(K);return d}}});
_.t([_.r(),_.O("design:type",Array)],e_.prototype,"data",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],e_.prototype,"byline",null);_.t([_.Z({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],e_);
_.T(e_,"ytd-playlist-byline-renderer",function(){if(yeZ!==void 0)return yeZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-byline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-stats style-scope ytd-playlist-byline-renderer">\n  <template is="dom-repeat" items="[[byline]]" class="style-scope ytd-playlist-byline-renderer">\n    <yt-icon id="byline-icon" hidden="[[!item.icon]]" icon="[[item.icon.iconType]]" class="style-scope ytd-playlist-byline-renderer"></yt-icon>\n    <yt-formatted-string class="byline-item style-scope ytd-playlist-byline-renderer" text="[[item.text]]"></yt-formatted-string>\n  </template>\n</div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return yeZ=d},{mode:1});var b2Z;var kT=function(){var d=_.B.apply(this,arguments)||this;d.rtlBullet=_.h("web_playlist_stats_rtl_bullet_icon_killswitch");d.modern=_.h("web_modern_buttons");d.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return d};
_.m(kT,_.B);_.G=kT.prototype;_.G.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.playButtons":{id:"play-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer"},compactLinkRenderer:{component:"ytd-compact-link-renderer"}}}}};
_.G.attached=function(){};
_.G.computeIsCustomThumbnail=function(d){return d?!!d.playlistCustomThumbnailRenderer:!1};
_.G.onYtNavigate=function(d,H){if(H&&H.actions&&H.actions.indexOf("shuffle")>-1){d=_.Kj().resolve(_.tJ);var K=H.tempData||{};K.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);H.tempData=K;d.isShuffleNextPlaylist=!0}};
_.G.onUpdatePlaylistAction=function(d){var H;d=(H=_.M(d,_.YLl))==null?void 0:H.updatedRenderer;if(H=_.M(d,F_))this.data=H};
_.G.computeStyleType=function(d){return d?d.toLowerCase().replace(/_/g,"-"):""};
_.G.computeThumbnailWidth=function(d){return d==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.G.computeHideThumbnailAria=function(d){if(d==null?0:d.thumbnailOverlays)for(var H=0;H<d.thumbnailOverlays.length;H++){var K=void 0;if((K=d.thumbnailOverlays[H])==null?0:K.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
kT.prototype.onYtNavigate=kT.prototype.onYtNavigate;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],kT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],kT.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],kT.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],kT.prototype,"ytComponentBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],kT.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],kT.prototype,"rtlBullet",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.O("design:type",String)],kT.prototype,"styleType",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.O("design:type",Number)],kT.prototype,"thumbnailWidth",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],kT.prototype,"modern",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.O("design:type",Boolean)],kT.prototype,"isCustomThumbnail",void 0);_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[Event,Object]),_.O("design:returntype")],kT.prototype,"onYtNavigate",null);_.t([_.Z({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],kT);
_.T(kT,"ytd-playlist-sidebar-primary-info-renderer",function(){if(b2Z!==void 0)return b2Z;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail bottom-side-panel="" custom-thumbnail-size="[[thumbnailWidth]]" data="[[data]]" hidden="[[!data.thumbnailRenderer]]" hide-aria="[[computeHideThumbnailAria(data)]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-playlist-thumbnail><h1 id="title" hidden="[[!data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string link-inherit-color="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></h1><template is="dom-if" restamp="" if="[[data.titleForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="title-form" data="[[data.titleForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></template><div id="stats" hidden="[[!data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><div id="privacy-stats" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-badge-supported-renderer><div id="show-stats" hidden="[[!data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><template is="dom-if" restamp="" if="[[data.privacyForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-dropdown-form-field-renderer></template></div><div id="play-buttons" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><div id="menu" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><template is="dom-if" restamp="" if="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template><template is="dom-if" restamp="" if="[[data.descriptionForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description-form" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="description-form" data="[[data.descriptionForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return b2Z=d},{mode:1});var NUT;var xT=function(){return _.B.apply(this,arguments)||this};
_.m(xT,_.B);xT.prototype.computeOwnerVisibility=function(d){return!(!d.videoOwner&&!d.button)};
xT.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],xT.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],xT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],xT.prototype,"data",void 0);_.t([_.Z({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],xT);
_.T(xT,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(NUT!==void 0)return NUT;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n<div id="owner-container" hidden$="[[!computeOwnerVisibility(data)]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n  <div id="video-owner" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n  <div id="button" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n</div>\n<yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return NUT=d},{mode:1});var Daq;var n$=function(){var d=_.B.apply(this,arguments)||this;d.expanded=!1;d.isCompact=!1;return d};
_.m(n$,_.B);_.G=n$.prototype;_.G.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.G.dataChanged=function(){this.data&&_.AL(_.Gn(this.text),_.VS7(_.Lg3,_.jG(this.data.text||null)))};
_.G.computeAutoScrollEnabled=function(d,H){return d&&!H};
_.G.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.G.toggleOnTap=function(){this.expanded=!this.expanded};
n$.prototype.expandedChanged=n$.prototype.expandedChanged;n$.prototype.dataChanged=n$.prototype.dataChanged;_.t([_.u(_.S1j),_.O("design:type",Object)],n$.prototype,"ytdAutoScrollBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],n$.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],n$.prototype,"expanded",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],n$.prototype,"isCompact",void 0);_.t([_.r({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.O("design:type",Boolean)],n$.prototype,"autoScrollEnabled",void 0);_.t([_.VP("#text"),_.O("design:type",Object)],n$.prototype,"text",void 0);_.t([_.VP("#expander-icon"),_.O("design:type",Object)],n$.prototype,"expanderIcon",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],n$.prototype,"dataChanged",null);_.t([_.CK("expanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],n$.prototype,"expandedChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],n$);
_.T(n$,"ytd-channel-legal-info-renderer",function(){if(Daq!==void 0)return Daq;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-legal-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" class="style-scope ytd-channel-legal-info-renderer"></yt-formatted-string>\n<tp-yt-paper-material id="expand-button" elevation="1" on-click="toggleOnTap" class="style-scope ytd-channel-legal-info-renderer">\n  <yt-icon-button class="style-scope ytd-channel-legal-info-renderer">\n    <yt-icon id="expander-icon" class="style-scope ytd-channel-legal-info-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Daq=d},{mode:1});var f21;var Aet=_.Vz("DOWNLOAD",{},"Download"),jAb=_.Vz("DOWNLOADING",{},"Downloading"),vo1=_.Vz("DOWNLOADED",{},"Downloaded"),C$=function(){var d=_.B.apply(this,arguments)||this;d.downloadProgress=0;d.isDownloadComplete=!1;d.transferState="TRANSFER_STATE_UNKNOWN";return d};
_.m(C$,_.B);_.G=C$.prototype;_.G.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.G.dataChanged=function(){var d;(d=this.data)!=null&&d.tooltip||(d=_.tF(_.dn().getState(),this.playlistId),this.updateButtonState(d))};
_.G.computePlaylistId=function(d){return d};
_.G.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.G.updateButtonState=function(d){if(this.data&&(this.data.tooltip!==jAb||!_.mE(d))){this.isDownloadComplete=!1;switch(d){case "TRANSFER_STATE_UNKNOWN":d=Aet;var H="OFFLINE_DOWNLOAD";var K="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":d=vo1;H="OFFLINE_PIN";K="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":d=jAb;H="OFFLINE_DOWNLOADING_ZERO";K="ACTION_REMOVE_WITH_PROMPT";
break;default:d=Aet,H="OFFLINE_DOWNLOAD",K="ACTION_ADD"}var c=Object.assign({},this.data);c.tooltip=d;c.accessibilityData={accessibilityData:{label:d}};c.icon={iconType:H};c.size="SIZE_DEFAULT";_.M(c.command,_.VY)&&(_.M(c.command,_.VY).action=K);this.set("data",c)}};
_.G.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var d="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?d="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?d="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?d="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?d="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?d="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(d="OFFLINE_PIN",this.isDownloadComplete=!0);var H;d!==((H=this.data.icon)==null?void 0:H.iconType)&&(H=Object.assign({},this.data),H.tooltip=jAb,H.accessibilityData={accessibilityData:{label:jAb}},H.icon={iconType:d},_.M(H.command,_.VY)&&(_.M(H.command,_.VY).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",H))}};
C$.prototype.updateProgress=C$.prototype.updateProgress;C$.prototype.onTransferStateChanged=C$.prototype.onTransferStateChanged;C$.prototype.dataChanged=C$.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],C$.prototype,"ytdReduxBehavior",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],C$.prototype,"forceIconButton",void 0);
_.t([_.r({value:!0}),_.O("design:type",Boolean)],C$.prototype,"forceIconOnly",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],C$.prototype,"overrides",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],C$.prototype,"buttonTooltipPosition",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],C$.prototype,"styleActionButton",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],C$.prototype,"disableTextTransform",void 0);
_.t([_.r({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.O("design:type",String)],C$.prototype,"playlistId",void 0);_.t([_.r(),_.O("design:type",Object)],C$.prototype,"data",void 0);_.t([_.r({selector:_.pmM,selectorArgs:["playlistId"]}),_.O("design:type",Object)],C$.prototype,"downloadProgress",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],C$.prototype,"isDownloadComplete",void 0);
_.t([_.r({selector:_.tF,selectorArgs:["playlistId"]}),_.O("design:type",String)],C$.prototype,"transferState",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],C$.prototype,"showTooltips",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],C$.prototype,"sendCommandWhenDisabled",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],C$.prototype,"disabled",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],C$.prototype,"dataChanged",null);_.t([_.Mr("transferState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],C$.prototype,"onTransferStateChanged",null);_.t([_.Mr("downloadProgress"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],C$.prototype,"updateProgress",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],C$);
_.T(C$,"ytd-download-playlist-button-renderer",function(){if(f21!==void 0)return f21;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-playlist-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-playlist-button-renderer"></ytd-button-renderer>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return f21=d},{mode:1});var d7g;_.iV(_.$9l,"thumbnail-overlay-button-view-model",{props:{data:_.dl,lockupExperiments:_.dl}});var R0=function(){var d=_.B.apply(this,arguments)||this;d.isSquare=!1;d.isVertical=!1;return d};
_.m(R0,_.B);R0.prototype.computeIsSquare=function(d){return d!=null&&d.thumbnail?Jhq(d.thumbnail)==="SQUARE":!1};
R0.prototype.computeIsVertical=function(d){return d!=null&&d.thumbnail?Jhq(d.thumbnail)==="VERTICAL":!1};
R0.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],R0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.O("design:type",Object)],R0.prototype,"isSquare",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.O("design:type",Object)],R0.prototype,"isVertical",void 0);
_.t([_.r(),_.O("design:type",Object)],R0.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],R0);
_.T(R0,"ytd-hero-playlist-thumbnail-renderer",function(){if(d7g!==void 0)return d7g;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hero-playlist-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="horizontally-centered-container style-scope ytd-hero-playlist-thumbnail-renderer">\n  <div class="image-wrapper style-scope ytd-hero-playlist-thumbnail-renderer">\n    <yt-img-shadow class="image style-scope ytd-hero-playlist-thumbnail-renderer" alt="hidden" aria-hidden="true" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div id="overlays" class="style-scope ytd-hero-playlist-thumbnail-renderer"></div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return d7g=d},{mode:1});var V0=function(){var d=_.B.apply(this,arguments)||this;d.isDarkTheme=!1;d.isUltraWide=!1;d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return d};
_.m(V0,_.B);_.G=V0.prototype;_.G.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.Kj();var d;(d=_.Kj().resolve(_.$p(_.qL)))!=null&&(d.headerElement=this.hostElement)};
_.G.detached=function(){var d;(d=_.Kj().resolve(_.$p(_.qL)))!=null&&(d.headerElement=void 0)};
_.G.onUpdateHeader=function(d){(d=d.detail)&&this.set("data",d)};
_.G.computeTextDisplayed=function(d){if(d)return d.textDisplayed?d.textDisplayed:d.placeholder};
_.G.gradientColorToLinearGradientStop=function(d){var H=this.isDarkTheme?d.darkThemeColor:d.lightThemeColor;return H?_.Ob(H)+" "+((d==null?void 0:d.startLocation)||0)*100+"%":"transparent"};
_.G.onWindowResize=function(){var d;((d=this.data)==null?0:d.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.G.onIronResize=function(d){this.isUltraWide=!d.detail.value};
_.G.onDarkModeToggledAction=function(d){this.isDarkTheme=d};
_.G.onUpdatePlaylistName=function(d){var H=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},d.detail.value));_.vV(this,function(){var K;(K=H.editableTitle)==null||K.resize()})};
_.G.onUpdatePlaylistDescription=function(d){var H=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},d.detail.value));_.vV(this,function(){var K;(K=H.editableDescriptionInlineExpander)==null||K.resize()})};
_.G.getCinematicData=function(d){return _.M(d==null?void 0:d.cinematicContainer,_.WL)};
_.H3.Object.defineProperties(V0.prototype,{maxDescriptionLines:{configurable:!0,enumerable:!0,get:function(){return this.isUltraWide?999:2}},
noCinematicData:{configurable:!0,enumerable:!0,get:function(){return!this.getCinematicData(this.data)}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var d,H=(d=this.getCinematicData(this.data))==null?void 0:d.config;return(d=this.isDarkTheme?H==null?void 0:H.darkThemeBackgroundColor:H==null?void 0:H.lightThemeBackgroundColor)?"background-color:"+_.Yi(d)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var d;return _.M((d=this.data)==null?void 0:d.descriptionForm,vD5)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var d=this,H,K,c;return"background:linear-gradient(to bottom, "+(((c=(H=this.getCinematicData(this.data))==null?void 0:(K=H.gradientColorConfig)==null?void 0:K.map(function(p){return d.gradientColorToLinearGradientStop(p)}))==null?void 0:c.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var d;return _.jG((d=this.data)==null?void 0:d.descriptionTapText)}}});
V0.prototype.onUpdateHeader=V0.prototype.onUpdateHeader;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],V0.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],V0.prototype,"actionHandlerBehavior",void 0);_.t([_.VP("#description-inline-expander"),_.O("design:type",Object)],V0.prototype,"descriptionInlineExpander",void 0);
_.t([_.VP("#editable-description-inline-expander"),_.O("design:type",Object)],V0.prototype,"editableDescriptionInlineExpander",void 0);_.t([_.r(),_.O("design:type",Object)],V0.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],V0.prototype,"isUltraWide",void 0);_.t([_.VP("#editable-title-display"),_.O("design:type",Object)],V0.prototype,"editableTitle",void 0);_.t([_.I("isUltraWide"),_.O("design:type",Object),_.O("design:paramtypes",[])],V0.prototype,"maxDescriptionLines",null);
_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],V0.prototype,"noCinematicData",null);_.t([_.nK("yt-new-playlist-header"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],V0.prototype,"onUpdateHeader",null);_.t([_.I("data","isDarkTheme"),_.O("design:type",Object),_.O("design:paramtypes",[])],V0.prototype,"backgroundStyle",null);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],V0.prototype,"descriptionFormData",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],V0.prototype,"getDropdownTheme",null);_.t([_.I("data","isDarkTheme"),_.O("design:type",String),_.O("design:paramtypes",[])],V0.prototype,"gradientStyle",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],V0.prototype,"descriptionTapText",null);
_.t([_.Z({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],V0);
_.T(V0,"ytd-playlist-header-renderer",function(){if(O2t!==void 0)return O2t;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query id="resize-query" query="(max-width: 1080px)" on-query-matches-changed="onIronResize" class="style-scope ytd-playlist-header-renderer"></iron-media-query>\n\n<div class="immersive-header-container style-scope ytd-playlist-header-renderer" style="">\n  <div class="immersive-header-background-wrapper style-scope ytd-playlist-header-renderer" style$="[[backgroundStyle]]">\n    <yt-img-shadow class="blurred-image style-scope ytd-playlist-header-renderer" alt="hidden" aria-hidden="true" fit-width="" hidden="[[!data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]" thumbnail="[[data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]">\n    </yt-img-shadow>\n    <div class="immersive-header-gradient style-scope ytd-playlist-header-renderer" style$="[[gradientStyle]]"></div>\n  </div>\n  <div class="immersive-header-content style-scope ytd-playlist-header-renderer">\n    <div class="thumbnail-and-metadata-wrapper style-scope ytd-playlist-header-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-playlist-header-renderer" href$="[[computeHref_(data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap)]]" data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap]]">\n        <div class="thumbnail-wrapper style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.thumbnail]]">\n          <ytd-hero-playlist-thumbnail-renderer data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer]]" class="style-scope ytd-playlist-header-renderer"></ytd-hero-playlist-thumbnail-renderer>\n        </div>\n      </a>\n\n      <div class="metadata-wrapper style-scope ytd-playlist-header-renderer">\n        <yt-dynamic-sizing-formatted-string hidden="[[data.titleForm]]" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.title]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n\n        <ytd-inline-form-renderer data="[[data.titleForm.inlineFormRenderer]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.titleForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistName" class="style-scope ytd-playlist-header-renderer">\n          <yt-dynamic-sizing-formatted-string id="editable-title-display" slot="text-display" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.titleForm.inlineFormRenderer.textDisplayed]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n        </ytd-inline-form-renderer>\n\n        <div class="metadata-action-bar style-scope ytd-playlist-header-renderer">\n          <div class="metadata-text-wrapper style-scope ytd-playlist-header-renderer">\n            <div class="metadata-owner style-scope ytd-playlist-header-renderer">\n              <yt-formatted-string id="owner-text" hidden="[[!data.ownerText]]" link-inherit-color="" text="[[data.ownerText]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n              <yt-formatted-string hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n\n              <div class="badges style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistBadges]]">\n                <span class="middot style-scope ytd-playlist-header-renderer">\u00b7</span>\n                <ytd-badge-supported-renderer badges="[[data.playlistBadges]]" class="style-scope ytd-playlist-header-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n            </div>\n\n            <ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" hidden="[[!data.privacyForm]]" theme="[[getDropdownTheme]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-dropdown-form-field-renderer>\n            <ytd-playlist-byline-renderer data="[[data.byline]]" class="style-scope ytd-playlist-header-renderer"></ytd-playlist-byline-renderer>\n          </div>\n          <div class="metadata-buttons-wrapper style-scope ytd-playlist-header-renderer">\n            <ytd-toggle-button-renderer data="[[data.saveButton.toggleButtonRenderer]]" force-modern-icon-button="" hidden="[[!data.saveButton.toggleButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-toggle-button-renderer>\n            <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.shareButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-button-renderer data="[[data.addVideosButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.addVideosButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-download-playlist-button-renderer data="[[data.offlineability.downloadButtonRenderer]]" force-icon-button="" force-modern-icon-button="" hidden="[[!data.offlineability.downloadButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-download-playlist-button-renderer>\n            <ytd-menu-renderer data="[[data.moreActionsMenu.menuRenderer]]" force-icon-button="" hidden="[[!data.moreActionsMenu.menuRenderer]]" is-overlay="[[!noCinematicData]]" tonal-override="" class="style-scope ytd-playlist-header-renderer"></ytd-menu-renderer>\n          </div>\n        </div>\n\n        <div class="play-menu spaced-row wide-screen-form style-scope ytd-playlist-header-renderer">\n          <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n          </ytd-button-renderer>\n          <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n\n        <div class="description style-scope ytd-playlist-header-renderer">\n          <ytd-text-inline-expander id="description-inline-expander" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" hidden="[[data.descriptionForm]]" max-lines="[[maxDescriptionLines]]" text="[[data.descriptionText]]" class="style-scope ytd-playlist-header-renderer">\n          </ytd-text-inline-expander>\n          <ytd-inline-form-renderer data="[[descriptionFormData]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.descriptionForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistDescription" class="style-scope ytd-playlist-header-renderer">\n            <ytd-text-inline-expander id="editable-description-inline-expander" slot="text-display" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" max-lines="[[maxDescriptionLines]]" text="[[computeTextDisplayed(data.descriptionForm.inlineFormRenderer)]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-text-inline-expander>\n          </ytd-inline-form-renderer>\n        </div>\n      </div>\n    </div>\n    <div class="play-menu spaced-row small-screen-form style-scope ytd-playlist-header-renderer">\n      <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n      </ytd-button-renderer>\n      <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n\n  <tp-yt-paper-tooltip for="owner-text" offset="5" position="top" class="style-scope ytd-playlist-header-renderer">\n    [[getSimpleString(data.ownerText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return O2t=d},{mode:_.qk("kevlar_poly_si_batch_j078")?1:2});var HPG;var $7S;var U1=function(){return _.B.apply(this,arguments)||this};
_.m(U1,_.B);U1.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],U1.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],U1.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],U1.prototype,"data",void 0);_.t([_.Z({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],U1);
_.T(U1,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if($7S!==void 0)return $7S;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-tertiary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer">\n</yt-formatted-string>\n<div id="items" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return $7S=d},{mode:1});var hx=function(){return _.B.apply(this,arguments)||this};
_.m(hx,_.B);
hx.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{playlistSidebarPrimaryInfoRenderer:{component:"ytd-playlist-sidebar-primary-info-renderer",noInjection:!0},playlistSidebarSecondaryInfoRenderer:{component:"ytd-playlist-sidebar-secondary-info-renderer",noInjection:!0},playlistSidebarTertiaryInfoRenderer:{component:"ytd-playlist-sidebar-tertiary-info-renderer",noInjection:!0},channelLegalInfoRenderer:{component:"ytd-channel-legal-info-renderer",params:{isCompact:!0},noInjection:!0}}}}};
hx.prototype.computeUsePremiumShowStyle=function(d){if(!d||!d.items)return!1;for(var H=0;H<d.items.length;H++)if(_.M(d.items[H],F_)){var K=void 0;return((K=_.M(d.items[H],F_))==null?void 0:K.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],hx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],hx.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.O("design:type",Boolean)],hx.prototype,"usePremiumShowStyle",void 0);
_.t([_.Z({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],hx);
_.T(hx,"ytd-playlist-sidebar-renderer",function(){if(HPG!==void 0)return HPG;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-playlist-sidebar-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return HPG=d},{mode:1});var KMU;var c8b;var pSb=function(d,H,K,c,p,g,a,e){this.minWidth=d;this.minHeight=H;this.recommendedWidth=K;this.recommendedHeight=c;this.JSC$22035_maxFileSize=p;this.title=g;this.bannerGalleryTitle=a;this.channelId=e;this.picker_=null;d=_.JIL("yt-banner");H=d.addView;K=(new Oig("youtubebanner")).addUploadMetadata("silo_id","19");K.opts.ytMaxFileSize=this.JSC$22035_maxFileSize;c=this.recommendedHeight;K.opts.ytRecWidth=this.recommendedWidth;K.opts.ytRecHeight=c;H.call(d,K);d.addView(new _.LG);H=d.addView;K=new _.LG;
K.opts.type="ytbanner";H.call(d,K.JSC$10044_setLabel(this.bannerGalleryTitle));H=d.setTitle(this.title).setSize(1E3);H.urlParamMap_.set("thumbs","orig");K=this.minWidth;c=this.minHeight;if(isNaN(K)||isNaN(c))throw Error("gb`"+K+"`"+c);H.urlParamMap_.set("minSize",K+"x"+c);H.urlParamMap_.set("cropMode","ytcb");this.builder_=d};
pSb.prototype.open=function(){var d=this;return new _.kr(function(H,K){_.GJU(d.builder_,function(c){c.action=="picked"?H(c):c.action=="cancel"&&K(Error("ro"))});
d.picker_&&d.picker_.dispose();d.picker_=d.builder_.build();d.picker_.setVisible(!0)})};
pSb.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var gSU=function(d){this.channelId=d};
gSU.prototype.upload=function(d){var H="";d.viewToken&&(H=d.viewToken[2].type);var K=d.docs[0];d=K.crop;H={channel_id:this.channelId,fife_url:K.thumbnails[0].url,photo_id:K.id,is_gallery_image:H=="ytbanner"};d&&(H.crop_top=d.top,H.crop_right=d.right,H.crop_bottom=d.bottom,H.crop_left=d.left);return _.a65("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:H})};var L$=function(){var d=_.B.apply(this,arguments)||this;d.ariaLabel=null;return d};
_.m(L$,_.B);_.G=L$.prototype;_.G.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.G.detached=function(){this.picker&&this.picker.dispose()};
_.G.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.G.computeAriaLabel=function(d){return d};
_.G.onTap=function(){var d=this,H;if((H=this.data)==null||!H.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new pSb(this.data.bannerMinWidth||0,this.data.bannerMinHeight||0,this.data.bannerRecommendedWidth||0,this.data.bannerRecommendedHeight||0,this.data.bannerMaxFileSizeInMegabytes||0,this.data.editorTitle||"",this.data.galleryViewTitle||"",this.data.channelId||""));var K;(K=this.picker)==null||K.open().then(function(c){d.handleBannerPicked(c)},function(){})}};
_.G.handleBannerPicked=function(d){var H=this;this.uploader||(this.uploader=new gSU(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(d).then(function(K){H.handleBannerUploadSucceeded(K)},function(K){H.handleBannerUploadFailed(K)})};
_.G.handleBannerUploadSucceeded=function(d){d&&d.errors?this.handleBannerUploadFailed(d):(_.GT(this.hostElement,"yt-banner-updated",d),this.message=null)};
_.G.handleBannerUploadFailed=function(d){this.message=d&&d.errors&&d.errors.length?d.errors[0]:null};
L$.prototype.dataChanged=L$.prototype.dataChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],L$.prototype,"componentBehavior",void 0);_.t([_.u(_.zS),_.O("design:type",Object)],L$.prototype,"ironButtonState",void 0);_.t([_.r(),_.O("design:type",Object)],L$.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.O("design:type",Object)],L$.prototype,"ariaLabel",void 0);
_.t([_.r(),_.O("design:type",Object)],L$.prototype,"message",void 0);_.t([_.r(),_.O("design:type",Object)],L$.prototype,"picker",void 0);_.t([_.r(),_.O("design:type",Object)],L$.prototype,"uploader",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],L$.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],L$);
_.T(L$,"ytd-channel-banner-editor-renderer",function(){if(c8b!==void 0)return c8b;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-banner-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="edit-banner-link" class="yt-simple-endpoint style-scope ytd-channel-banner-editor-renderer" data="[[data.editBannerCommand]]" href$="[[computeHref_(data.editBannerCommand)]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-banner-editor-renderer"></yt-icon>\n  <tp-yt-paper-tooltip position="top" class="style-scope ytd-channel-banner-editor-renderer">[[ariaLabel]]</tp-yt-paper-tooltip>\n  <div id="message" hidden$="[[!message]]" class="style-scope ytd-channel-banner-editor-renderer">[[message]]</div>\n</a>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return c8b=d},{mode:1});var iPb;var GkS=_.y$(["#"]),My=function(){return _.B.apply(this,arguments)||this};
_.m(My,_.B);My.prototype.computeHrefWithDefault=function(d){return this.ytComponentBehavior.computeHref_(d,!0)||_.jKD(GkS)};
My.prototype.dataChanged=function(){var d=this.data;d&&d.targetId&&_.hMU(_.u9(),d.targetId,this.moreIcon)};
My.prototype.dataChanged=My.prototype.dataChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],My.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],My.prototype,"data",void 0);_.t([_.VP("#more-icon"),_.O("design:type",Object)],My.prototype,"moreIcon",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],My.prototype,"dataChanged",null);
_.t([_.Z({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],My);
_.T(My,"ytd-channel-tagline-renderer",function(){if(iPb!==void 0)return iPb;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-tagline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-channel-tagline-renderer" href$="[[computeHrefWithDefault(data.moreEndpoint)]]" data="[[data.moreEndpoint]]">\n  <div id="wrapper" class="style-scope ytd-channel-tagline-renderer">\n    <div id="content" dir="auto" class="style-scope ytd-channel-tagline-renderer">\n      [[data.content]]\n    </div>\n    <yt-icon id="more-icon" hidden="[[!data.moreIcon]]" icon="[[data.moreIcon.iconType]]" class="style-scope ytd-channel-tagline-renderer">\n    </yt-icon>\n  </div>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return iPb=d},{mode:1});var oSO;var m4=function(){return _.B.apply(this,arguments)||this};
_.m(m4,_.B);_.G=m4.prototype;_.G.ready=function(){var d=this;_.Gn(this.hostElement).querySelector("#form").addEventListener("submit",function(H){d.onSubmit(H)})};
_.G.onDataChanged=function(){var d;((d=this.data)==null?0:d.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.G.onIconButtonKeydown=function(d){d.keyCode===13&&this.iconButton.click()};
_.G.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.G.openOnClickHandler=function(){this.input.focus()};
_.G.onSubmit=function(d){d.preventDefault();return!1};
_.G.submitOnEnterKeyUp=function(d){var H;if(d.keyCode===13&&((H=this.data)==null?0:H.expandedText)){d=this.data.endpoint;H=_.rs.unsafeClone(d);var K;((K=_.M(H==null?void 0:H.commandMetadata,_.Co))==null?0:K.url)?(_.M(H.commandMetadata,_.Co).url=_.Qj(_.M(H.commandMetadata,_.Co).url,"query",this.data.expandedText),_.M(H,_.Lm)&&(_.M(H,_.Lm).query=this.data.expandedText),_.GT(this.hostElement,"yt-navigate",{endpoint:H,tempData:{disableCache:!0}})):(K=new _.m1("Error: Trying to navigate to an endpoint without url",
d),_.z5(K))}};
_.G.updateDataExpandedTextFromBinding=function(d){this.set("data.expandedText",d.detail.value)};
_.H3.Object.defineProperties(m4.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
m4.prototype.onDataChanged=m4.prototype.onDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],m4.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.XkG),_.O("design:type",Object)],m4.prototype,"ytdExpandableInputBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],m4.prototype,"data",void 0);_.t([_.VP("#input"),_.O("design:type",Object)],m4.prototype,"input",void 0);_.t([_.VP("#icon-button"),_.O("design:type",HTMLElement)],m4.prototype,"iconButton",void 0);
_.t([_.r(),_.O("design:type",String),_.O("design:paramtypes",[])],m4.prototype,"searchIcon",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],m4.prototype,"onDataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],m4);
var szb=_.oq()(m4,"ytd-expandable-tab-renderer",function(){if(oSO===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);oSO=d}d=oSO;return d},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var qAt;var w3=function(){var d=_.B.apply(this,arguments)||this;d.avatarSize=80;d.ariaLabel=_.Vz("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return d};
_.m(w3,_.B);w3.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
w3.prototype.computeHref=function(d){var H;return((H=_.M(d,_.yj))==null?0:H.url)?this.componentBehavior.computeHref_(d):null};
w3.prototype.onTap=function(){var d,H;(d=this.data)==null||!d.editAvatarServiceEndpoint||((H=_.M(this.data.editAvatarServiceEndpoint,_.yj))==null?0:H.url)||_.Kj().resolve(_.cb).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.t([_.u(_.zS),_.O("design:type",Object)],w3.prototype,"ironButtonState",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],w3.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],w3.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],w3.prototype,"avatarSize",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],w3.prototype,"ariaLabel",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],w3);
_.T(w3,"ytd-channel-avatar-editor",function(){if(qAt!==void 0)return qAt;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-avatar-editor--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-avatar-editor" href$="[[computeHref(data.editAvatarServiceEndpoint)]]" data="[[data.editAvatarServiceEndpoint]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-avatar-editor"></yt-icon>\n  <yt-img-shadow thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-channel-avatar-editor"></yt-img-shadow>\n  <tp-yt-paper-tooltip position="bottom" class="style-scope ytd-channel-avatar-editor">[[ariaLabel]]</tp-yt-paper-tooltip>\n</a>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return qAt=d},{mode:1});var att=_.H1(function(d){var H=d.data;var K=d.noPadding;var c=d.enableBanner;var p=d.cinematicContainerTopbarOffset;var g=d.allowCinematicContainerOverflow;var a=d.displayAsSidebar;d=d.className;_.wc(function(){H().tagManagerId&&(_.Bm(H().tagManagerId,_.Fm("GL")),YZ5(H().tagManagerId))},"xVTVTe");
var e=_.Uj(Zig,function(){return H().pageHeaderEntityKey});
return _.x("yt-page-header-renderer",{class:_.xM("page-header-renderer-wiz",d)},_.x(_.wB,{data:function(){var k;return((k=e())==null?0:k.header)?e().header:(a==null?0:a())&&H().sidebarContent?H().sidebarContent:H().content}},{pageHeaderViewModel:function(k){return _.x(_.mmS,{data:k.data,
noPadding:K,enableBanner:c,cinematicContainerTopbarOffset:p,allowCinematicContainerOverflow:g,displayAsSidebar:function(){return(a==null?void 0:a())&&H().enableSidebarView}})}}))},"Tj");
att.idomCompat=!0;_.iV(att,"yt-page-header-renderer",{props:{data:_.dl,noPadding:_.dl,enableBanner:_.dl,cinematicContainerTopbarOffset:_.dl,allowCinematicContainerOverflow:_.dl,displayAsSidebar:_.dl,className:_.dl}});_.iV(_.St,"yt-image-banner-view-model",{props:{data:_.dl,isPositionRelative:_.dl}});_.iV(_.Y2g,"yt-tab-group-shape",{props:{shape:_.dl}});var PP=function(){var d=_.B.apply(this,arguments)||this;d.expandableCustomTabRenderable=function(H){return FI5(H,function(){return void d.onSearchNavigate()})};
d.isRichGrid=!1;d.isConstrainedList=!1;d.richGridMiniMode=!1;d.richGridStyle="RICH_GRID_STYLE_UNKNOWN";d.isRichGridShorts=!1;d.responsiveSizing="COMPACT";d.disableGridStateAware=!1;d.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return d};
_.m(PP,_.B);_.G=PP.prototype;_.G.computeHeaderDisabled=function(d,H){return H||!d||this.tabsHidden};
_.G.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.G.computeIsRichGridShorts=function(d){return d==="RICH_GRID_STYLE_SHORTS_GRID"||d==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.G.computeImageBannerViewModel=function(){var d,H;return _.M((H=_.M((d=this.data)==null?void 0:d.content,_.OsN))==null?void 0:H.banner,_.BIl)};
_.G.computeHasCinematicContainer=function(){var d,H;return!((H=_.M((d=this.data)==null?void 0:d.content,_.OsN))==null||!H.background)};
_.G.handleHeaderResize=function(){var d=_.Gn(this.hostElement).querySelector("#header");d&&_.GT(d,"iron-resize")};
_.G.handleInsertTabCommand=function(d){var H=_.M(d,i2O);H&&(H.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(K){return K.tabRenderer&&K.tabRenderer.tabIdentifier===H.tabIdentifier})||this.splice("tabs",H.tabIndex||-1,0,H.tab))};
_.G.handleRefreshChannelTabAction=function(d){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===d&&_.GT(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.G.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.eO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.G.observerRichGridSlimItemsPerRow=function(){_.eO(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.G.updateCssVars=function(){this.richGridItemsPerRow&&_.eO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.iT("rich_grid_max_item_width",500))+16)-16+"px"})};
_.G.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.eO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.G.onDataChanged=function(){this.handleHeaderResize()};
_.G.onWindowResize=function(){this.handleHeaderResize()};
_.G.onFocusedChanged=function(d){(d=_.v5(d))&&d.is==="tp-yt-paper-tab"&&d.hasRipple()&&(d.getRipple().holdDown=!d.pointerDown&&d.focused)};
_.G.updateSelectedFromBinding=function(d){this.ytdTabbedHeaderBehavior.selected=d.detail.value};
_.G.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.H3.Object.defineProperties(PP.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Qz5(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.imageBannerViewModel)==null?void 0:d.style)==="IMAGE_BANNER_STYLE_INSET"}}});
PP.prototype.onDataChanged=PP.prototype.onDataChanged;PP.prototype.updateCssVarsForResponsiveGrid=PP.prototype.updateCssVarsForResponsiveGrid;PP.prototype.updateCssVars=PP.prototype.updateCssVars;PP.prototype.observerRichGridSlimItemsPerRow=PP.prototype.observerRichGridSlimItemsPerRow;PP.prototype.observerRichGridItemsPerRow=PP.prototype.observerRichGridItemsPerRow;_.t([_.u(_.EO),_.O("design:type",Object)],PP.prototype,"ytdGridStateAwareBehavior",void 0);
_.t([_.u(GKt),_.O("design:type",Object)],PP.prototype,"ytdTabbedHeaderBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],PP.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],PP.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],PP.prototype,"ytdGuideStateAwareBehavior",void 0);
_.t([_.u(_.to),_.O("design:type",Object)],PP.prototype,"ytdReduxBehavior",void 0);_.t([_.VP("#tabs"),_.O("design:type",Object)],PP.prototype,"tabsElement",void 0);_.t([_.r(),_.O("design:type",Array)],PP.prototype,"tabs",void 0);_.t([_.r(),_.O("design:type",Object)],PP.prototype,"expandableCustomTabRenderable",void 0);_.t([_.I("tabs.*"),_.O("design:type",Object),_.O("design:paramtypes",[])],PP.prototype,"tabGroupShape",null);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PP.prototype,"isRichGrid",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PP.prototype,"isConstrainedList",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.JF}),_.O("design:type",Object)],PP.prototype,"richGridMiniMode",void 0);_.t([_.r({selector:function(d){return d.ui.richGridStyle}}),
_.O("design:type",Object)],PP.prototype,"richGridStyle",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.O("design:type",Object)],PP.prototype,"isRichGridShorts",void 0);_.t([_.r({selector:_.sc}),_.O("design:type",Number)],PP.prototype,"richGridItemsPerRow",void 0);_.t([_.r({selector:function(d){return d.ui.richGridContainerWidth}}),
_.O("design:type",Number)],PP.prototype,"richGridContainerWidth",void 0);_.t([_.r({selector:_.ERi}),_.O("design:type",Number)],PP.prototype,"richGridSlimItemsPerRow",void 0);_.t([_.r(),_.O("design:type",Object)],PP.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PP.prototype,"responsiveSizing",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],PP.prototype,"disableGridStateAware",void 0);
_.t([_.r({computed:"computeImageBannerViewModel(data)"}),_.O("design:type",Object)],PP.prototype,"imageBannerViewModel",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.O("design:type",Boolean)],PP.prototype,"hasCinematicContainer",void 0);_.t([_.r({selector:_.VyT,reflectToAttribute:!0}),_.O("design:type",Boolean)],PP.prototype,"guideIsVisibleButNotPersistent",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("imageBannerViewModel"),_.O("design:type",Object),_.O("design:paramtypes",[])],PP.prototype,"hasBanner",null);_.t([_.r({reflectToAttribute:!0}),_.I("imageBannerViewModel"),_.O("design:type",Object),_.O("design:paramtypes",[])],PP.prototype,"hasInsetBanner",null);_.t([_.r({computed:"computeTabsHidden(tabs)",value:!0}),_.O("design:type",Boolean)],PP.prototype,"tabsHidden",void 0);
_.t([_.CK("richGridItemsPerRow","isRichGrid"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PP.prototype,"observerRichGridItemsPerRow",null);_.t([_.CK("richGridSlimItemsPerRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PP.prototype,"observerRichGridSlimItemsPerRow",null);
_.t([_.CK("richGridItemsPerRow","richGridMiniMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PP.prototype,"updateCssVars",null);_.t([_.CK("richGridContainerWidth"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PP.prototype,"updateCssVarsForResponsiveGrid",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PP.prototype,"onDataChanged",null);
_.t([_.Z({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],PP);
_.T(PP,"ytd-tabbed-page-header",function(){if(KMU!==void 0)return KMU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return KMU=d},{mode:1});var ltG;var up=function(){return _.B.apply(this,arguments)||this};
_.m(up,_.B);up.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.eO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.H3.Object.defineProperties(up.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var d,H;return this.componentBehavior.computeIcon_(((H=_.M((d=this.data)==null?void 0:d.badge,_.MJU))==null?void 0:H.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var d,H;return(H=_.M((d=this.data)==null?void 0:d.badge,_.MJU))==null?void 0:H.label}}});
up.prototype.observerRichGridItemsPerRow=up.prototype.observerRichGridItemsPerRow;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],up.prototype,"componentBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],up.prototype,"ytdReduxBehavior",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.JF}),_.O("design:type",Boolean)],up.prototype,"richGridMiniMode",void 0);
_.t([_.r({selector:_.sc}),_.O("design:type",Number)],up.prototype,"richGridItemsPerRow",void 0);_.t([_.r(),_.O("design:type",Object)],up.prototype,"data",void 0);_.t([_.CK("richGridItemsPerRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],up.prototype,"observerRichGridItemsPerRow",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],up.prototype,"badgeIconName",null);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],up.prototype,"badgeLabel",null);_.t([_.Z({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],up);
_.T(up,"ytd-member-hub-profile-renderer",function(){if(ltG!==void 0)return ltG;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-member-hub-profile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-member-hub-profile-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" class="style-scope ytd-member-hub-profile-renderer">\n  </yt-img-shadow>\n  <div id="details-container" class="style-scope ytd-member-hub-profile-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-member-hub-profile-renderer">\n    </ytd-badge-supported-renderer>\n    <h2 class="style-scope ytd-member-hub-profile-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-member-hub-profile-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-member-hub-profile-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ltG=d},{mode:1});var ewt;var I0=function(){return _.B.apply(this,arguments)||this};
_.m(I0,_.B);I0.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],I0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],I0.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],I0.prototype,"data",void 0);_.t([_.Z({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],I0);
_.T(I0,"ytd-settings-sidebar-renderer",function(){if(ewt!==void 0)return ewt;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-settings-sidebar-renderer">[[getSimpleString(data.title)]]</div>\n<div id="items" class="style-scope ytd-settings-sidebar-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ewt=d},{mode:1});var kkU;var r3=function(){var d=_.B.apply(this,arguments)||this;d.expandableCustomTabRenderable=function(H){return FI5(H,function(){return void d.onSearchNavigate()})};
return d};
_.m(r3,_.B);r3.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
r3.prototype.onSearchNavigate=function(){this.selected=void 0};
r3.prototype.onTabsChange=function(){var d,H=(d=this.tabs)==null?void 0:d.findIndex(function(K){var c;return K==null?void 0:(c=K.tabRenderer)==null?void 0:c.selected});
H!==void 0&&(this.selected=H)};
r3.prototype.onTabsActive=function(d){if(this.tabs!==void 0){var H,K;(d=(H=this.tabs[d.detail.selected])==null?void 0:(K=H.tabRenderer)==null?void 0:K.endpoint)&&_.GT(this.hostElement,"yt-navigate",{endpoint:d})}};
_.H3.Object.defineProperties(r3.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Qz5(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
r3.prototype.onTabsChange=r3.prototype.onTabsChange;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],r3.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.EO),_.O("design:type",Object)],r3.prototype,"ytdGridStateAwareBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],r3.prototype,"ytdGuideStateAwareBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],r3.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Array)],r3.prototype,"tabs",void 0);_.t([_.r(),_.O("design:type",Number)],r3.prototype,"selected",void 0);_.t([_.I("tabs.*"),_.O("design:type",Object),_.O("design:paramtypes",[])],r3.prototype,"tabGroupShape",null);_.t([_.r(),_.O("design:type",Object)],r3.prototype,"expandableCustomTabRenderable",void 0);
_.t([_.I("tabs"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],r3.prototype,"tabsEnabled",null);_.t([_.Mr("tabs"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],r3.prototype,"onTabsChange",null);_.t([_.Z({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],r3);
_.T(r3,"ytd-topic-channel-details-renderer",function(){if(kkU!==void 0)return kkU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return kkU=d},{mode:1});var x7t;var WP=function(){var d=_.B.apply(this,arguments)||this;d.disableGridStateAware=!1;return d};
_.m(WP,_.B);WP.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{topicChannelDetailsRenderer:{component:"ytd-topic-channel-details-renderer",properties:{disableGridStateAware:"[[disableGridStateAware]]",tabs:"[[tabs]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",attributes:{"has-animation":!0},properties:{disableGridStateAware:"[[disableGridStateAware]]"}}}}}};
WP.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
WP.prototype.updateCssVars=function(){_.eO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.iT("rich_grid_max_item_width",500))+16)-16+"px"})};
WP.prototype.updateCssVars=WP.prototype.updateCssVars;WP.prototype.activeChanged=WP.prototype.activeChanged;_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],WP.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],WP.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],WP.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],WP.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Array)],WP.prototype,"tabs",void 0);_.t([_.r(),_.O("design:type",Boolean)],WP.prototype,"active",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],WP.prototype,"disableGridStateAware",void 0);
_.t([_.r({selector:_.sc}),_.O("design:type",Number)],WP.prototype,"richGridItemsPerRow",void 0);_.t([_.r({selector:_.JF}),_.O("design:type",Boolean)],WP.prototype,"richGridMiniMode",void 0);_.t([_.VP("ytd-carousel-item-renderer"),_.O("design:type",Object)],WP.prototype,"carousel",void 0);_.t([_.CK("active"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WP.prototype,"activeChanged",null);
_.t([_.CK("richGridItemsPerRow","richGridMiniMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WP.prototype,"updateCssVars",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],WP);
_.T(WP,"ytd-carousel-header-renderer",function(){if(x7t!==void 0)return x7t;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-carousel-header-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return x7t=d},{mode:1});var nSq;var Cf5=_.y$(["https://www.google-analytics.com/analytics.js"]),BP=function(){var d=_.B.apply(this,arguments)||this;d.scriptAnalyticsAdded=!1;return d};
_.m(BP,_.B);BP.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var d,H=(d=this.data)==null?void 0:d.tagManagerId;H&&(_.Bm(H,_.Fm("GL")),YZ5(H))};
BP.prototype.sendGoogleAnalyticsPageview=function(d){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var K=_.sH.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(K)};
var H=window.ga;H("set","page",window.location.pathname);H.l=+new Date;H("set","forceSSL",!0);H("create",d,"'auto'");H("send","pageview")};
BP.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var d=_.x1("SCRIPT");d.name="ga-analytics";var H=_.pB(Cf5);_.fc(d,H);d.async=!0;_.Gn(this.hostElement).appendChild(d)};
BP.prototype.dataChanged=BP.prototype.dataChanged;_.t([_.r(),_.O("design:type",Object)],BP.prototype,"data",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],BP.prototype,"dataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],BP);
_.T(BP,"ytd-channel-metadata-renderer",function(){if(nSq!==void 0)return nSq;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.trackingImageUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.trackingImageUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n<template is="dom-if" if="[[data.channelConversionUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.channelConversionUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return nSq=d},{mode:1});var RwS;var VB1;var zq=function(){var d=_.B.apply(this,arguments)||this;d.closeOnDismissButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);d.closeOnAcceptButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);d.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return d};
_.m(zq,_.B);_.G=zq.prototype;_.G.attached=function(){this.requestElementsPerRow()};
_.G.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[dismissBoundButtonTap_]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[acceptBoundButtonTap_]]"}}}}}};
_.G.onUpdateElementsPerRowAction=function(d){d&&this.elementsPerRow!==d&&(this.elementsPerRow=d)};
_.G.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.G.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.G.computeAlertStyle_=function(d){return d};
_.G.observerElementsPerRow=function(){this.elementsPerRow&&_.eO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.G.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.G.requestElementsPerRow=function(){_.GT(this.hostElement,"yt-request-elements-per-row")};
zq.prototype.onIsVisibleChanged_=zq.prototype.onIsVisibleChanged_;zq.prototype.observerElementsPerRow=zq.prototype.observerElementsPerRow;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],zq.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],zq.prototype,"actionHandlerBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],zq.prototype,"data",void 0);_.t([_.r({value:6,reflectToAttribute:!0}),_.O("design:type",Number)],zq.prototype,"elementsPerRow",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],zq.prototype,"wrapButtons",void 0);_.t([_.r({value:_.Fm("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.O("design:type",Boolean)],zq.prototype,"isMusic",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.O("design:type",String)],zq.prototype,"alertStyle",void 0);_.t([_.r({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.O("design:type",Function)],zq.prototype,"dismissBoundButtonTap_",void 0);_.t([_.r({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.O("design:type",Function)],zq.prototype,"acceptBoundButtonTap_",void 0);_.t([_.CK("elementsPerRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zq.prototype,"observerElementsPerRow",null);_.t([_.CK("data.isVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zq.prototype,"onIsVisibleChanged_",null);_.t([_.ZV({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],zq);
_.T(zq,"yt-alert-with-actions-renderer",function(){if(VB1===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-with-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_with_actions_renderer.yt.alert.with.actions.renderer.css.js--\x3e<div id="content-wrapper" hidden="[[!data.isVisible]]" class="style-scope yt-alert-with-actions-renderer">\n  <div id="content" class="style-scope yt-alert-with-actions-renderer">\n    <yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope yt-alert-with-actions-renderer"></yt-icon>\n    <div id="text-content" class="style-scope yt-alert-with-actions-renderer">\n      <yt-formatted-string id="title" hidden$="[[!!data.title]]" text="[[data.title]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="actions" class="style-scope yt-alert-with-actions-renderer">\n    <div id="dismiss-button" hidden$="[[!!data.dismissButton]]" class="style-scope yt-alert-with-actions-renderer"></div>\n    <div id="action-buttons" hidden$="[[!!data.actionButtons]]" class="style-scope yt-alert-with-actions-renderer"></div>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;RwS===void 0&&(RwS=document.createElement("template"));var c=RwS;K.call(H,c.content.cloneNode(!0),d.content.firstChild);VB1=d}d=VB1;return d},{mode:2});_.iV(_.H1(function(d){function H(U){var L={};return _.x(_.j$,{text:U,className:_.xM("ytPersonalGreetingViewModelHeadline",(L.ytPersonalGreetingViewModelHeadlineSmall=function(){return e()===48},L))})}
function K(U,L){return _.x("span",{el:U,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},H(L))}
var c=_.$M(_.Tx(function(){var U;return(U=d.data())==null?void 0:U.rendererContext},void 0,void 0,void 0,!0)),p=_.Af("span"),g=_.Af("span"),a=function(){return d.data().canvasPromoData},e=function(){var U;
return(U=d.data().bannerHeight)!=null?U:56},k=_.EhX(c,{throttleMs:100}),C=_.EhX(p,{throttleMs:100}),R=_.EhX(g,{throttleMs:100}),V=function(){return C.width()-k.width()>1};
return _.x("yt-personal-greeting-view-model",{el:c,"aria-hidden":V,class:_.xM(d.className,"ytPersonalGreetingViewModelHost"),style:_.UQ({height:(0,_.s$)(function(){return V()?0:e()})})},_.x(_.n,{cond:function(){return d.data().avatar&&!(R.width()+(d.data().avatar?48:0)-k.width()>1)},
then:function(){return _.x(_.wB,{data:function(){return d.data().avatar}},{decoratedAvatarViewModel:function(U){return _.x(_.sg,{data:U.data,
className:_.xM("ytPersonalGreetingViewModelAvatar")})}})}}),_.x("h1",null,H(function(){var U;
return(a==null?void 0:(U=a())==null?void 0:U.headline)||(R.width()+(d.data().avatar?48:0)-k.width()>1?d.data().shorterGreeting:d.data().greeting)})),K(g,function(){return d.data().greeting}),K(p,function(){return d.data().shorterGreeting}))},"Uj"),"yt-personal-greeting-view-model",{props:{data:_.dl,
className:_.dl}});var XS=function(){var d=_.B.apply(this,arguments)||this;d.hidden=!1;d.isConstrainedList=!1;d.darkerDarkTheme=_.h("web_darker_dark_theme");d.responsiveSizing="COMPACT";d.attachedPlayers=_.h("kevlar_channel_trailer_multi_attach")?[]:void 0;d.player=null;d.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return d};
_.m(XS,_.B);_.G=XS.prototype;
_.G.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.G.created=function(){var d=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){d.disposeMastheadAd()}]};
_.G.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new a20(this.refresh,this.contents))};
_.G.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.G.activeChanged=function(){var d=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=d)};
_.G.tabsChanged=function(){var d=this,H,K;if(this.pageSubtype==="channels"||_.h("kevlar_tab_gestures_for_tabbed_header_data")&&((H=this.data)==null?0:(K=H.header)==null?0:K.carouselHeaderRenderer))this.tabGestures=new TW(this.contents,this.contents,this.hostElement,this.header,function(a){d.ytdReduxBehavior.dispatch(a)});
var c,p,g;H=(c=this.data)==null?void 0:(p=c.contents)==null?void 0:(g=p.twoColumnBrowseResultsRenderer)==null?void 0:g.tabs;this.tabGestures&&this.tabGestures.tabsChanged(H)};
_.G.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.G.engagementPanelsChanged=function(){var d=_.Kj().resolve(_.W6);if(d){if(this.engagementPanels)for(var H=_.q(this.engagementPanels),K=H.next();!K.done;K=H.next()){var c=void 0;(K=(c=K.value.identifier)==null?void 0:c.tag)&&d.panelMap.delete(K)}this.engagementPanels=[];var p;H=_.q(((p=this.data)==null?void 0:p.panels)||[]);for(p=H.next();!p.done;p=H.next()){p=_.M(p.value,_.s0q);var g=K=void 0,a=void 0,e=void 0;if(c=((K=p)==null?void 0:K.targetId)||((g=p)==null?void 0:g.panelIdentifier)||((a=p)==
null?void 0:(e=a.identifier)==null?void 0:e.tag))g=K=void 0,(g=(K=d).registerPanelContent)==null||g.call(K,c,{engagementPanelSectionListRenderer:p}),this.engagementPanels.push(p)}}};
_.G.onStampFinished=function(){var d=this;_.vV(this,function(){if(d.tabGestures){var H=d.tabGestures;if(H.scrollPositionNeedsUpdate){var K=_.Kj().resolve(_.$p(_.HI)),c;if((c=H.selectedTab)!=null&&c.title&&K&&(c=K.getCurrentPage())){if(H.scrollPositionForTabs.has(H.selectedTab.title)){var p,g;K=(g=(p=K.getCurrentPage())==null?void 0:p.clientHeight)!=null?g:0;p=H.scrollPositionForTabs.get(H.selectedTab.title);c.setScrollTop(p);K>p+100&&(H.scrollPositionNeedsUpdate=!1)}else c.setScrollTop(Math.min(H.lastVisitedTabScrollPosition!==
void 0?H.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,H.tabsStartAtInPx)),H.scrollPositionNeedsUpdate=!1;H.ytdReduxDispatch(tFg(!1))}}}})};
_.G.loadPage_=function(d){this.initCsi();d&&(this.data=d);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.G.getTitle=function(d){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",d))return this.get("microformat.microformatDataRenderer.title",d);if(this.get("header.feedTabbedHeaderRenderer.title",d))return _.jG(this.get("header.feedTabbedHeaderRenderer.title",d));if(this.get("header.interactiveTabbedHeaderRenderer.title",d))return this.get("header.interactiveTabbedHeaderRenderer.title",d);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
d))return _.jG(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",d));var H,K;return(d==null?0:(H=d.header)==null?0:(K=H.pageHeaderRenderer)==null?0:K.pageTitle)?d.header.pageHeaderRenderer.pageTitle:""};
_.G.updateTitle=function(d){_.GT(this.hostElement,"yt-update-title",this.getTitle(d))};
_.G.initCsi=function(){_.X_(this.pageSubtype||"browse",["ol","cpt"])};
_.G.getPlayer=function(){if(_.h("kevlar_channel_trailer_multi_attach")){for(var d=_.q(this.attachedPlayers),H=d.next();!H.done;H=d.next())if(H=H.value,H.isConnected||_.FB(this.hostElement,H))return H;return null}return this.player};
_.G.getPlayerContainer=function(){return null};
_.G.onPlayerAttached=function(d,H){_.h("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(H):this.player=H};
_.G.onPlayerDetached=function(d,H){_.h("kevlar_channel_trailer_multi_attach")?(d=this.attachedPlayers.indexOf(H),d<0||this.attachedPlayers.splice(d,1)):this.player=null};
_.G.getServiceTrackingParams=function(){var d,H;return((d=this.data)==null?void 0:(H=d.responseContext)==null?void 0:H.serviceTrackingParams)||[]};
_.G.setMastheadAd=function(d){d&&d.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=d&&d.mastheadAd};
_.G.dataChanged=function(){var d=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.mKj();_.vV(this,function(){_.qo(d.hostElement,"ytd-update-grid-state-action")})};
_.G.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.G.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var d=this.data.alerts;return d&&d.find(function(H){return!!H.alertWithActionsRenderer})}};
_.G.computeGreetingData=function(){if(this.data&&this.data.alerts){var d=this.data.alerts;return d&&d.find(function(H){return!!H.personalGreetingViewModel})}};
_.G.computeHasMemberHubProfileRenderer=function(d){var H;return!!(d==null?0:(H=d.header)==null?0:H.memberHubProfileRenderer)};
_.G.handleAlertCommand=function(d){this.get("alertCommand.alert.alertWithActionsRenderer",d)&&(d=_.M(d,Ah1),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",d.alert))};
_.G.handleYtPlaylistDeletionRedirect=function(d){d=this.get("playlistDeletionRedirectCommand.redirectEndpoint",d);_.GT(this.hostElement,"yt-navigate",{endpoint:d})};
_.G.computeFluidWidth=function(d,H,K){if(H==="mini_app"||K)return!0;var c,p,g;d=d==null?void 0:(c=d.contents)==null?void 0:(p=c.twoColumnBrowseResultsRenderer)==null?void 0:(g=p.tabs)==null?void 0:g.find(function(k){var C;return k==null?void 0:(C=k.tabRenderer)==null?void 0:C.selected});
if(!d)return!1;var a,e;return!!((a=d.tabRenderer)==null?0:(e=a.content)==null?0:e.richGridRenderer)&&!["channel","channels","playables"].includes(H)};
_.G.computeHeaderFluidWidth=function(d){return d==="hashtag-landing-page"};
_.G.computeHasSidebar=function(d){var H;return!!(d.sidebar||((H=d.header)==null?0:H.playlistHeaderRenderer))};
_.G.computeHasPageHeaderSidebar=function(d){var H,K;return!!((H=d.header)==null?0:(K=H.pageHeaderRenderer)==null?0:K.enableSidebarView)};
_.G.computeUseUnifiedShowPageLayout=function(d){if(!d||this.pageSubtype!=="show"||!d.sidebar||!d.sidebar.playlistSidebarRenderer)return!1;d=d.sidebar.playlistSidebarRenderer;if(!d.items)return!1;for(var H=0;H<d.items.length;H++)if(_.M(d.items[H],F_)){var K=void 0;return((K=_.M(d.items[H],F_))==null?void 0:K.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.G.computeIsConstrainedList=function(d){return _.h("web_enable_constrained_list_subscriptions_channels")&&d==="subscriptions-channels"};
_.G.computeResponsiveSizing=function(d){return d==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.H3.Object.defineProperties(XS.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var d,H;return((d=this.data)==null?0:(H=d.header)==null?0:H.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var d,H;if(!((d=this.data)==null?0:(H=d.sidebar)==null?0:H.playlistSidebarRenderer))return!1;var K;return(K=this.data)!=null&&K.header?!1:!0}}});
_.H3.Object.defineProperties(XS,{template:{configurable:!0,enumerable:!0,get:function(){if(kKg===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);kKg=d}d=kKg;return d}}});
XS.prototype.dataChanged=XS.prototype.dataChanged;XS.prototype.onPlayerDetached=XS.prototype.onPlayerDetached;XS.prototype.onPlayerAttached=XS.prototype.onPlayerAttached;XS.prototype.onStampFinished=XS.prototype.onStampFinished;XS.prototype.engagementPanelsChanged=XS.prototype.engagementPanelsChanged;XS.prototype.scrollAtTopChanged=XS.prototype.scrollAtTopChanged;XS.prototype.tabsChanged=XS.prototype.tabsChanged;XS.prototype.activeChanged=XS.prototype.activeChanged;
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],XS.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.Ke),_.O("design:type",Object)],XS.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],XS.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.JM.YtPageBehavior),_.O("design:type",Object)],XS.prototype,"ytPageBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],XS.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],XS.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],XS.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],XS.prototype,"hidden",void 0);
_.t([_.r(),_.O("design:type",Object)],XS.prototype,"mastheadAdData",void 0);_.t([_.r({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.O("design:type",Object)],XS.prototype,"alertBannerData",void 0);_.t([_.r({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.O("design:type",Object)],XS.prototype,"greetingData",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],XS.prototype,"pageSubtype",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.O("design:type",Boolean)],XS.prototype,"hasMemberHubProfileRenderer",void 0);_.t([_.r({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],XS.prototype,"hasSidebar",void 0);_.t([_.r({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],XS.prototype,"hasPageHeaderSidebar",void 0);
_.t([_.r({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],XS.prototype,"roundedContainer",void 0);_.t([_.r({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],XS.prototype,"useUnifiedShowPageLayout",void 0);_.t([_.r({computed:"computeIsConstrainedList(pageSubtype)"}),_.O("design:type",Object)],XS.prototype,"isConstrainedList",void 0);
_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],XS.prototype,"usePlaylistHeaderRenderer",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],XS.prototype,"useOldPlaylistSidebarRenderer",null);_.t([_.r({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.O("design:type",Boolean)],XS.prototype,"fluidWidth",void 0);_.t([_.r({selector:function(d){return d.ui.scrollAtTop}}),
_.O("design:type",Boolean)],XS.prototype,"scrollAtTop",void 0);_.t([_.r({selector:_.Utj}),_.O("design:type",Boolean)],XS.prototype,"tabGesturesIsActive",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],XS.prototype,"darkerDarkTheme",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.O("design:type",Boolean)],XS.prototype,"disableHeaderFluidWidth",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.O("design:type",String)],XS.prototype,"responsiveSizing",void 0);_.t([_.VP("ytd-two-column-browse-results-renderer"),_.O("design:type",HTMLElement)],XS.prototype,"contents",void 0);_.t([_.VP("#header"),_.O("design:type",HTMLElement)],XS.prototype,"header",void 0);_.t([_.VP("ytd-refresh"),_.O("design:type",Object)],XS.prototype,"refresh",void 0);
_.t([_.CK("active"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],XS.prototype,"activeChanged",null);_.t([_.CK("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],XS.prototype,"tabsChanged",null);_.t([_.CK("scrollAtTop"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],XS.prototype,"scrollAtTopChanged",null);
_.t([_.r(),_.O("design:type",Object)],XS.prototype,"engagementPanels",void 0);_.t([_.CK("data.panels"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],XS.prototype,"engagementPanelsChanged",null);_.t([_.nK("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],XS.prototype,"onStampFinished",null);
_.t([_.nK("yt-player-attached"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Element]),_.O("design:returntype")],XS.prototype,"onPlayerAttached",null);_.t([_.nK("yt-player-detached"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Element]),_.O("design:returntype")],XS.prototype,"onPlayerDetached",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],XS.prototype,"dataChanged",null);
_.t([_.Z({is:"ytd-browse"})],XS);_.qG.registerService(_.S2L,XS);
_.rk();
}catch(e){_._DumpException(e)}
try{
_.I4("kevlar_main_module");
/*

 QRCode for JavaScript

 Copyright (c) 2009 Kazuhiko Arase

 URL: http://www.d-project.com/

 Licensed under the MIT license:
   http://www.opensource.org/licenses/mit-license.php

 The word "QR Code" is registered trademark of
 DENSO WAVE INCORPORATED
   http://www.denso-wave.com/qrcode/faqpatent-e.html
*/
var UK,b5t,NQZ,D80,fQO,AwT,j$g,vlq,dCZ,HOq,$CZ,KGt,p3j,gKt,GAb,oKS,qo0,lcq,eQ1,kAq,xCg,hb,CGG,LR,RQT,VMg,UCt,hQg,LG5,mCS,PGg,MMq,cPG,ujg,IcZ,rPO,WGZ,BrO,zQb,suZ,FGg,ZO5,TrU,tMO,YoZ,Sob,yP1,bOZ,NrO,fct,jub,vKG,doG,Hob,$ot,KWT,cOU,pyt,gWt,ioj,GTb,oW0,qaT,aij,liv,eTO,kTG,xob,nW0,RTO,V5O,UoS,hTb,LW0,M5S,moZ,wyO,P5g,uwj,IiG,rOO,WWq,BVT,zT1,XyT,JOU,sFj,FWv,ZoO,TVO,QFU,t5S,YaT,OoZ,Saj,EWv,yOv,boO,NV5,B0,Do0,fig,AOj,vW5,dR1,HHG,$RZ,KEO,cFv,pWj,GRZ,CZO,hk0,LEq,uvj,ILS,PZO,mRq,zkT,s60,Yc5,MGb,ZHG,XW1,TI,Sct,
bHZ,fLj,N0b,DRv,AFv,Hmb,vLb,$v5,KZU,dvS,j6g,ccv,OK,SC,qbZ,a80,EK,l8t,eRv,keg,Uv0,hR1,yw,bu,MhZ,LZG,mv1,w5b,POt,Nd,DG,fR,JcG,s3t,FZ5,jC,Yb0,ZmO,thj,Om0,TnS,Eiv,Q35,NnZ,yc0,bmO,v0,f8Z,DvZ,drj,cBS,Kx,cs,$rj,gfv,KJg,pjv,g8,Gl,o2,qn,uQO,CsZ,WJb,B4T,zZ1,Xjg,s1q,lVU,eZt,eN,xrt,a2,lx,nfg,JBt,IVU,knq,xy,ZKv,T40,Q1U,YI5,SIv,EfU,yB1,bKv,Drv,N4O,ABG,j1Z,dkt,HMt,KlZ,cRG,p1S,gvU,iMg,ovt,qGT,aXZ,lXq,eu0,xkt,nv0,Rut,Vvt,Ukq,huU,Ll0,mkO,Mvb,w1b,PDS,Cx,u4G,IX5,R2,rRZ,Wlt,Bgq,zug,X1S,JR5,sqT,Flg,TgZ,Vk,Qqj,tvZ,SG5,
yR5,bMq,Dkv,NgU,fX0,ARj,jqv,dct,H71,$cg,KeZ,cug,pgZ,gMg,i7Z,GvT,oMO,qQ1,aAU,xcG,nMU,eAv,kvj,lAt,CVv,UcZ,RAb,V8b,M8U,hAS,LeT,mcq,wgj,PVU,uXG,ruS,We5,B7G,XgO,Jug,Feg,T7G,t8O,O75,EMj,b7S,Dc5,Aub,dVb,Hfg,$Vj,cW1,KRZ,g6T,ifZ,Gxt,o6U,hG,qjO,abb,lbb,LR0,mVb,wI5,rWb,WRg,BBt,zoT,JWS,XIv,sDZ,FRS,ZfU,TBg,QDb,zI,tAZ,Ps,YQ1,Yjv,Oft;
UK=function(d){if(!d)return"browse";var H=d.page,K=d.url,c,p,g,a=(c=d.response)==null?void 0:(p=c.responseContext)==null?void 0:(g=p.webResponseContextExtensionData)==null?void 0:g.pageTheme;if(a)H=a.toLowerCase().replace(/_/g,"-");else if(H!=="watch"&&H!=="learning_journey_watch"){var e,k;if((H==="browse"||H==="settings")&&((e=d.response)==null?0:(k=e.sidebar)==null?0:k.settingsSidebarRenderer))H="WEB_PAGE_TYPE_SETTINGS";else{var C,R;H==="browse"&&((C=d.response)==null?0:(R=C.metadata)==null?0:R.channelMetadataRenderer)?
H="channel":K&&(H=_.Ub(K)||H)}}return H};
b5t=function(){var d=_.OS("yt.aba.att");return d?d:_.kj.instance!==void 0?_.kj.instance.ryt.bind(_.kj.instance):null};
NQZ=function(d,H){var K;return _.l(function(c){return(K=b5t())?c.return(K(d,H,6E4)):c.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
D80=function(d,H,K,c,p){H=H===void 0?[]:H;p=p?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:p}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.cW(d),dialogMessages:H.map(function(g){return _.cW(g)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.cW(K),serviceEndpoint:p}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.cW(c)}}}}}};
fQO=function(d){var H=!!_.yq().queueProxy;var K,c,p;d=d==null?void 0:(K=d.response)==null?void 0:(c=K.currentVideoEndpoint)==null?void 0:(p=c.watchEndpoint)==null?void 0:p.playlistId;return!(!H&&!d)};
AwT=function(d,H){var K=_.UT();if(fQO(d))return K.playlistWatchPageActivation=!0;switch(UK(H)){case "yts-products":return K.productDetailsPageActivation=!0;case "mini_app":return K.miniAppPageActivation=!0;case "playables":return K.playablesDestPageActivation=!0;default:return!1}};
j$g=function(d,H,K){for(var c=typeof d==="string"?d.split(""):d,p=d.length-1;p>=0;--p)p in c&&H.call(K,c[p],p,d)};
vlq=function(d,H){H=_.UfF(d,H);H>=0&&_.MlM(d,H)};
dCZ=function(d){return Array.prototype.concat.apply([],arguments)};
HOq=function(d){var H=0;H=H===void 0?0:H;if(!_.yl(d))throw _.jl("uint64");var K=typeof d;switch(H){case 512:switch(K){case "string":return _.PM4(d);case "bigint":return String((0,_.oZ)(64,d));default:return _.mU5(d)}case 1024:switch(K){case "string":return _.u7F(d);case "bigint":return _.X7((0,_.oZ)(64,d));default:return _.wB1(d)}case 0:switch(K){case "string":return _.PM4(d);case "bigint":return _.X7((0,_.oZ)(64,d));default:return _.MSX(d)}default:return _.tN(H,"Unknown format requested type for int64")}};
$CZ=function(d){d!=null&&(d=d.JSC$8790_value_||"",d=typeof d==="string"?d:new Uint8Array(d));return d};
KGt=function(d,H){if(/-[a-z]/.test(H))return null;if(_.ZtB&&d.dataset){if(_.aDl()&&!(H in d.dataset))return null;d=d.dataset[H];return d===void 0?null:d}return d.getAttribute("data-"+_.Uo(H))};
p3j=function(){var d=cPG;_.OS("yt.ads.biscotti.getId_")||_.vb("yt.ads.biscotti.getId_",d)};
gKt=function(d){_.vb("yt.ads.biscotti.lastId_",d)};
GAb=function(){var d={};for(_.rf=new iO5(d.handleError===void 0?_.Xi:d.handleError,d.logEvent===void 0?_.Wd:d.logEvent);_.Wb.length>0;)switch(d=_.Wb.shift(),d.type){case "ERROR":_.rf.logError(d.payload);break;case "EVENT":_.rf.logEvent(d.eventType,d.payload)}};
oKS=function(d,H,K){return _.ZHL(function(c){return K?c.userIdentifier!==void 0&&!d.includes(c.userIdentifier)&&K.includes(c.publicName):c.userIdentifier!==void 0&&!d.includes(c.userIdentifier)},H)};
qo0=function(d){var H,K;return _.l(function(c){if(c.nextAddress==1)return H=_.Lj("YtIdbMeta hasAnyMeta other"),c.yield(_.ZHL(function(p){return p.userIdentifier!==void 0&&p.userIdentifier!==H},d),2);
K=c.yieldResult;return c.return(K.length>0)})};
lcq=function(d,H){acZ||(acZ=_.Xp.addLowPriorityJob(function(){var K,c,p,g,a;return _.l(function(e){switch(e.nextAddress){case 1:return e.yield(_.dF(),2);case 2:K=e.yieldResult;if(!K)return e.return();c=!0;_.e2(e,3);return e.yield(oKS(d,K,H),5);case 5:p=e.yieldResult;if(!p.length){c=!1;e.jumpTo(6);break}g=p[0];return e.yield(_.ym(g.actualName),7);case 7:return e.yield(_.DO(g.actualName,K),6);case 6:_.Em(e,4);break;case 3:a=_.RV(e),_.Bb(a),c=!1;case 4:_.Xp.cancelJob(acZ),acZ=0,c&&lcq(d,H),_.VE(e)}})}))};
eQ1=function(){var d;return _.l(function(H){return H.nextAddress==1?H.yield(_.dF(),2):(d=H.yieldResult)?H.return(qo0(d)):H.return(!1)})};
kAq=function(d){var H=100;H=H===void 0?500:H;var K,c,p,g,a,e;return _.l(function(k){return k.nextAddress==1?(K=_.Fm("INNERTUBE_CONTEXT_CLIENT_NAME",0),c=[K,(0,_.$G)()-2592E6],p=[K,(0,_.$G)()],g=IDBKeyRange.bound(c,p),k.yield(_.qGl(d),2)):k.nextAddress!=3?(a=k.yieldResult,e=[],k.yield(_.NQ(a,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(C){e.length=0;return _.K4(C.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:g,direction:"prev"},function(R){if(R.getValue()&&e.length<
H)return e.push(R.getValue()),R.delete().then(function(){return R.continue()})})}),3)):k.return(e)})};
xCg=function(){var d;return _.l(function(H){if(H.nextAddress==1)return H.yield(_.dF(),2);d=H.yieldResult;if(!d||!_.MQ()&&!_.h("nwl_init_require_datasync_id_killswitch")||!_.rRC())return H.jumpTo(0);_.Bgh=!0;_.WlF.isNwlInitialized=_.Bgh;return H.yield(_.p36().awaitInitialization(),0)})};
hb=function(d,H){_.Ng5[d]=!0;var K=_.pn();K&&K.publish.apply(K,arguments);_.Ng5[d]=!1};
CGG=function(){if(_.wjX()&&!nKS){var d=function(K){K=K.data;if(K.op==="serializedGelBatch"){var c=_.DcD.get(K.key);c&&(_.Aui(K.serializedBatch,c.client,c.resolve,c.networklessOptions,c.isIsolated,c.useVSSEndpoint,c.dangerousLogToVisitorSession,c.requestsOutstanding),_.DcD.delete(K.key))}},H=_.mr4();
H&&(H.addEventListener("message",d),H.onerror=function(){_.DcD.clear()});
nKS=!0}};
LR=function(){this.relativeTimeStart_=_.$V()};
RQT=function(d,H){d!=null&&this.append.apply(this,arguments)};
VMg=function(){return _.YK("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
UCt=function(d,H,K){K=K===void 0?!1:K;var c,p,g,a,e;return _.l(function(k){switch(k.nextAddress){case 1:_.Um("SOCS",d,34128E3,"youtube.com",!0);if(_.aB)return p=fetch(H,{method:"POST",mode:_.NC(H),credentials:_.bG(H),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),g=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.NC("/upgrade_visitor_cookie?eom=1"),credentials:_.bG("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),k.yield(Promise.all([p,g]).then(function(C){return C[1]}),5);
fetch(H,{method:"POST",mode:_.NC(H),credentials:_.bG(H),cache:"no-store",headers:{"Content-Type":"text/plain"}});return k.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.NC("/upgrade_visitor_cookie?eom=1"),credentials:_.bG("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:c=k.yieldResult;k.jumpTo(3);break;case 5:c=a=k.yieldResult;case 3:if(!c.ok)throw Error("lf");return k.yield(c.text(),7);case 7:e=k.yieldResult,
!e.includes('"state_switch":true')&&!K||e.includes("skip_reload_for_test")||window.location.reload(),_.VE(k)}})};
hQg=function(d){return _.l(function(H){return H.nextAddress==1?H.yield(UCt(d.socsCookie,d.savePreferenceUrl,!0),2):H.return()})};
LG5=function(d){return _.l(function(H){return H.nextAddress==1?H.yield(UCt(d.socsCookie,d.savePreferenceUrl),2):H.return()})};
mCS=function(d){d=d.xhr.responseText;if(!_.gh(d,")]}'"))throw new Md;d=JSON.parse(d.substr(4));if((d.type||1)>1)throw new Md;d=d.id;gKt(d);mT=_.fa(d);MMq(18E5,2);return d};
PGg=function(d,H){H=new w3S(H);gKt("");mT=_.vk3(H);d>0&&MMq(12E4,d-1);throw H;};
MMq=function(d,H){_.a5(function(){_.zYZ().then(mCS,function(K){return PGg(H,K)}).thenCatch(_.nV)},d)};
cPG=function(){var d=_.s$0();if(d!==void 0)return _.W1(d);mT||(mT=_.zYZ().then(mCS).thenCatch(function(H){return PGg(2,H)}));
return mT};
ujg=function(){var d=document;return _.XM(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(H){return"on"+H.toLowerCase()in d})};
IcZ=function(d){d.addEventListener("click",function(H){var K=H.target;K&&K.getAttribute("href")&&(K=K.getAttribute("href"),_.EH(window,K,"_blank"),H.preventDefault(),H.stopImmediatePropagation())})};
rPO=function(d){var H,K,c,p=(c=(K=((H=d.mainDownloadsListEntity)!=null?H:{})[_.F2F])==null?void 0:K.refresh)!=null?c:"",g;d=(g=d.refresh)==null?void 0:g[p];p=d!=null?d:{};return(p==null?0:p.refreshTime)?Number(p==null?void 0:p.refreshTime):0};
WGZ=function(d,H){var K=_.r0(d);return H.every(function(c){var p;c=c==null?void 0:(p=c.playbackDataEntity)==null?void 0:p.key;if(!c)return!1;p=_.kL(_.a6(c).entityId,"mainVideoEntity");return!!K[p]})};
BrO=function(d){d=_.PW(d.entities);return _.Asl(d).length};
zQb=function(d,H){if(H){var K;d=(K=_.xL(d.entities,"downloadQualityPickerEntity",H))!=null?K:void 0}else d=void 0;return d};
suZ=function(){X3b||(_.fH=_.sk5,X3b=new JPj);return X3b};
FGg=function(d){var H=document.getElementsByTagName("ytd-enforcement-message-view-model");H.length===0||getComputedStyle(H[0]).display==="none"?d(0,"p.h_"):d(1,"p.h_")};
ZO5=function(){w_=0;var d=[_.wn(!0)];P0&&_.qo(P0,"yt-window-resized",d)};
TrU=function(){w_||(w_=_.Xp.addLowPriorityJob(ZO5,200))};
tMO=function(){uu=0;Qu1=_.TA0(document);var d=[Qu1];P0&&_.qo(P0,"yt-window-scrolled",d)};
YoZ=function(){uu||(uu=_.Xp.addLowPriorityJob(tMO,200))};
Sob=function(d){d=d===void 0?null:d;OOt.push(_.dz(window,"resize",TrU));OOt.push(_.dz(window,"scroll",YoZ));d&&(P0=d)};
yP1=function(){var d={isWide:_.Vm.get("wide","0")==="1"},H=_.Lo();if(H=H.getFlag(165)||H.getFlag(174))d.theme=_.B5(!0);if(_.ITF()){var K=_.W5()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";d.systemTheme=K}!H&&_.h("parent_tools_enable_app_settings")&&_.NM(window.location.href).theme!==void 0&&(d.theme=_.B5());if((H=Ic)?!_.rs.equals(H,d):d)H={currentValue:d},EKZ&&(H.timeSinceLastSnapshotSecs=Math.round(((0,_.$G)()-EKZ)/1E3)),Ic&&(H.previousValue=Ic),_.Wd("appSettingsCaptured",H),Ic=d,EKZ=
(0,_.$G)()};
bOZ=function(d){_.l(function(H){if(H.nextAddress==1)return H.yield(d.delete("yt-appshell-assets"),2);_.VE(H)})};
NrO=function(d){return _.bT((0,_.W3B)(),d)};
fct=function(){var d;_.l(function(H){return H.nextAddress==1?H.yield(r_.getInstance(),2):(d=H.yieldResult)?H.yield(DCO(d),0):H.jumpTo(0)})};
jub=function(){var d;_.l(function(H){return H.nextAddress==1?H.yield(W0.getInstance(),2):(d=H.yieldResult)?H.yield(AP0(d),0):H.jumpTo(0)})};
vKG=function(d){bOZ(d);fct();jub()};
doG=function(d){var H,K;return _.l(function(c){if(c.nextAddress==1)return c.yield(_.AIX(d),2);if(H=c.yieldResult){var p;a:{if(H.headers&&(p=H.headers.get("date"))&&(p=Date.parse(p),!isNaN(p))){p=Math.round((0,_.$G)()-p);break a}p=-1}K=p;if(K>-1)return c.return(K)}return c.return(-1)})};
Hob=function(){var d=_.KF.caches,H=_.Qx("IS_SHELL_LOAD"),K,c;_.l(function(p){if(p.nextAddress==1)return K=-1,H?p.yield(doG(d),3):(c=_.IF(),K=Math.round((0,_.$G)()-c),p.jumpTo(2));p.nextAddress!=2&&(K=p.yieldResult);K>=0&&K<2147483648&&_.Xw({appInstallDataAgeMs:K});_.VE(p)})};
$ot=function(d){var H=_.Qe(_.KF.location.href),K={};"absolute_experiments forced_experiments expflag conditional_experiments client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url build mloader debugjs".split(" ").forEach(function(c){var p=H.JSC$10002_queryData_.getValues(c);if(p==null?0:p.length)K[c]=p});
return _.gs(d,new Map(Object.entries(K)))};
KWT=function(d){d=d.match(/(.*)::.*::.*/);if(d!==null)return d[1]};
cOU=function(d){if(_.xF1()){var H=Object.keys(window.localStorage);H=_.q(H);for(var K=H.next();!K.done;K=H.next()){K=K.value;var c=KWT(K);c===void 0||d.includes(c)||self.localStorage.removeItem(K)}}};
pyt=function(){if(!_.xF1())return!1;var d=_.Lj(),H=Object.keys(window.localStorage);H=_.q(H);for(var K=H.next();!K.done;K=H.next())if(K=KWT(K.value),K!==void 0&&K!==d)return!0;return!1};
gWt=function(d){return _.lu("NotificationsDisabled",d)};
ioj=function(){return Notification.permission!="granted"?Promise.resolve():_.hKq().then(function(d){return d?d.pushManager.getSubscription().then(function(H){if(H)return Promise.resolve();H={userVisibleOnly:!0,applicationServerKey:_.fF("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return d.pushManager.subscribe(H).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
GTb=function(d){return _.hKq().then(function(H){if(!H||!H.active)return Promise.reject(new _.m1("serviceworker.postMessage",d,H));try{return H.active.postMessage(d),Promise.resolve()}catch(K){return Promise.reject(K)}})};
oW0=function(){GTb({type:"notifications_register",data:_.Fm("ID_TOKEN")})};
qaT=function(){if(!_.Qx("LOGGED_IN"))return Promise.resolve(!1);var d=_.GJ("service_worker_push_force_notification_prompt_tag");return d?_.RP("PromptTags").then(function(H){if(!H)return!0;var K=[];try{K=JSON.parse(H)}catch(c){return!1}return K&&K.indexOf(d)==-1}):Promise.resolve(!1)};
aij=function(){var d=_.iT("service_worker_push_prompt_delay_microseconds");return d?_.RP("PromptTime").then(function(H){return Promise.resolve(Date.now()-d>(H||0))}):Promise.resolve(!0)};
liv=function(){var d=_.iT("service_worker_push_logged_out_prompt_watches");return d==-1?Promise.resolve(!1):_.RP("WatchCount").then(function(H){return H>=d})};
eTO=function(){var d=_.pf(document,"yt-push-prompt-modal-bg");d&&_.nA(d)};
kTG=function(){return _.iT("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.RP("PromptCount").then(function(d){d||(d=0);return Promise.resolve(d<_.iT("service_worker_push_prompt_cap"))})};
xob=function(d){return _.Qx("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Qx("LOGGED_IN")&&(d===void 0?0:d)?qaT().then(function(H){if(H)return!0;H=[kTG(),aij()];_.Qx("LOGGED_IN")||H.push(liv());return Promise.all(H).then(function(K){return K.every(function(c){return c})})}):Promise.resolve(!1)};
nW0=function(){_.RP("PromptCount").then(function(d){return _.lu("PromptCount",d+1)}).then(function(){return _.lu("PromptTime",Date.now())}).then(function(){var d=_.GJ("service_worker_push_force_notification_prompt_tag");
if(d)return _.RP("PromptTags").then(function(H){var K=[];if(H)try{K=JSON.parse(H)}catch(c){return!1}K||(K=[]);K.push(d);return _.lu("PromptTags",JSON.stringify(K))})})};
RTO=function(){C5q||eTO()};
V5O=function(d){d.style.zIndex=2147483648;d.style.pointerEvents="auto";d.style.backgroundColor="rgba(0, 0, 0, 0.6)";d.style.width="100%";d.style.height="100vh";d.style.position="absolute";d.style.top="0";d.style.left="0";d.style.border="none"};
UoS=function(){var d=_.pf(document,"yt-push-prompt-modal-bg");C5q=_.h("service_worker_push_prompt_modal_ignore_click");d?V5O(d):(d=_.ms("div",{id:"yt-push-prompt-modal-bg"}),V5O(d),document.body.appendChild(d),_.SGD(document,"click",RTO))};
hTb=function(){var d=arguments;_.h("service_worker_push_prompt_modal_enable")&&UoS();return Notification.requestPermission().then(function(H){eTO();var K=document.getElementById("ticker");K&&(K.className=K.classList.remove("show"));if(H=="granted")return ioj().then(function(){gWt(!1);oW0();return Promise.resolve(!0)});
H=="denied"&&oW0();return Promise.resolve(!1)}).catch(function(){eTO();
return Promise.reject.apply(Promise,_.ru(d))})};
LW0=function(d){d=d===void 0?!1:d;var H=_.X6X().client;if(H&&H.browserVersion){var K=H.browserVersion,c=H.browserName=="CHROME"&&_.xY(K,"50.0.0")<0;H=H.browserName=="OPERA"&&_.xY(K,"42.0.0")<0;if(c||H)return Promise.resolve()}return _.mtg().then(function(p){if(!p)return Promise.resolve();p=ioj().then(function(){return GTb({type:"notifications_check_registration",data:_.Fm("ID_TOKEN")})});
return Notification.permission!="default"?p.catch(function(){}):p.then(function(){return xob(d)}).then(function(g){if(g)return nW0(),hTb().then(function(){})}).catch(function(){})})};
M5S=function(d){return _.L5b(d)?LW0():Promise.resolve()};
moZ=function(d){var H=d.installing||d.waiting;return d.active||!H?Promise.resolve(d):new Promise(function(K){var c=function(p){p=p.target;if(p.state==="activated"||p.state==="redundant")H.removeEventListener("statechange",c),K(d)};
H.addEventListener("statechange",c)})};
wyO=function(){var d=new _.ObD("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.iE(d,{mainAppWeb:_.Nv()});var H=_.NOd;_.h("service_worker_forward_exp_params")&&(H=$ot(H));try{var K=_.saC(H).catch(function(){_.GH(d,"FAILURE");return new Promise(function(){})});
_.h("service_worker_push_enabled")&&K.then(function(c){_.GH(d,"SUCCESS");return c}).then(moZ).then(M5S)}catch(c){if(_.GH(d,"FAILURE"),c.name!=="SecurityError")throw c;
}};
P5g=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&wyO()};
uwj=function(d,H){var K={};H&&(K.serializedYpcFamilyCreateLoggingParams=H);_.Wd(d,K);_.Bd()};
IiG=function(d,H){var K={};K.serializedYpcRefundFlowLoggingParams=H;d&&(K.eventType=d);_.Wd("ypcRefundFlowEvent",K);_.Bd()};
rOO=function(d){d&&_.ZJf("transactionFlowSucceeded",d)};
WWq=function(d){d&&_.A3("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",d,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
BVT=function(d){d.currentTarget._data&&_.tIF(d.currentTarget._data)};
zT1=function(d,H){if(H=_.M(H,_.yj))(H==null?void 0:H.target)==="TARGET_NEW_WINDOW"&&(d.target="_blank"),H.nofollow&&(d.rel="nofollow")};
XyT=function(d){d=_.M(d==null?void 0:d.commandMetadata,_.Co);return(d==null?0:d.url)?d.url:null};
JOU=function(d){var H,K,c,p,g,a,e;_.l(function(k){if(k.nextAddress==1)return k.yield(_.VdF(),2);if(k.nextAddress!=3){if(!k.yieldResult)return k.return(!1);H=[];return k.yield(_.e8.keys(),3)}K=k.yieldResult;c=_.q(K);for(p=c.next();!p.done;p=c.next())g=p.value,a=_.CP5(g),e=a.datasyncId,!e||d.includes(e)||H.push(_.e8.delete(g));return k.return(Promise.all(H).then(function(C){return C.some(function(R){return R})}))})};
sFj=function(){var d,H,K,c,p,g,a;return _.l(function(e){if(e.nextAddress==1)return e.yield(_.VdF(),2);if(e.nextAddress!=3){if(!e.yieldResult)return e.return(!1);d=_.Lj("cache contains other");return e.yield(_.e8.keys(),3)}H=e.yieldResult;K=_.q(H);for(c=K.next();!c.done;c=K.next())if(p=c.value,g=_.CP5(p),(a=g.datasyncId)&&a!==d)return e.return(!0);return e.return(!1)})};
FWv=function(){var d=_.Kj().resolve(_.$p(_.E$6));return d?d.getCurrentTime():0};
ZoO=function(){var d,H,K,c,p,g,a,e,k,C,R,V,U,L;return _.l(function(w){switch(w.nextAddress){case 1:d={},H=_.xgF(),K=_.q(Object.entries(H)),c=K.next();case 4:if(c.done){w.jumpTo(3);break}p=c.value;g=_.q(p);a=g.next().value;e=g.next().value;k=a;C=e;if(!C){w.jumpTo(5);break}return w.yield(C(),8);case 8:d[k]=w.yieldResult;case 5:c=K.next();w.jumpTo(4);break;case 2:R=_.q(void 0),V=R.next();case 9:if(V.done){w.jumpTo(3);break}U=V.value;L=H[U];if(!L){w.jumpTo(10);break}return w.yield(L(),13);case 13:d[U]=
w.yieldResult;case 10:V=R.next();w.jumpTo(9);break;case 3:return w.return(d)}})};
TVO=function(){var d;_.l(function(H){if(H.nextAddress==1)return H.yield(ZoO(),2);d=H.yieldResult;return H.yield(navigator.clipboard.writeText(JSON.stringify(d,null,2)),0)})};
QFU=function(d,H){return _.xL(d.entities,"superThanksSelectedTierEntity",H)};
t5S=function(d,H){var K=_.me();_.r9(function(){var c=d.value;if(c)return _.Ddi(c,H),_.fGi(c,H,void 0,void 0,void 0,K)},[H])};
YaT=function(d){var H;return(H=d.sharedUi)==null?void 0:H.currentPageType};
OoZ=function(d,H){return{popup:{searchSuggestionReportDialog:{searchQuery:d,title:_.Vz("SBOX_INAPPROPRIATE_TITLE"),suggestions:H,categoryLabel:_.Vz("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Vz("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Vz("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Vz("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Vz("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Vz("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Vz("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Vz("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.Vz("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.Vz("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
Saj=function(d){var H,K,c,p,g,a,e,k,C,R,V,U,L,w,W,J,F,Y,A;return _.l(function(E){switch(E.nextAddress){case 1:return E.yield(_.R6(),2);case 2:return(H=E.yieldResult)?E.yield(_.gIY(H),3):E.return();case 3:K=E.yieldResult;if(!K)return E.return();p=((c=K.offlineVideos)==null?void 0:c.length)||0;a=((g=K.offlinePlaylists)==null?void 0:g.length)||0;if(p===0&&a===0)return E.return();e=0;if(K.offlineVideos)for(k=_.q(K.offlineVideos),C=k.next();!C.done;C=k.next())R=C.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
R.videoState&&(e+=1);d.offline_videos_count=p.toString();_.h("kevlar_log_offline_current_network_type_ks")||(d.offline_current_network_type=(V=_.lLM())!=null?V:"CONN_INVALID");_.h("kevlar_log_updated_time_for_smart_downloads")&&(U=_.dn().getState().entities,L=_.Xv(U),w=rPO(U),d.offline_smart_downloads_last_sync_time_ms=L.toString(),d.offline_smart_downloads_next_sync_time_ms=w.toString());d.offline_videos_playable=e.toString();d.offline_playlists_count=a.toString();K.offlineVideos&&(W=K.offlineVideos.reduce(function(N,
y){y.downloadedBytes&&(N+=Number(y.downloadedBytes));return N},0).toString())&&(d.offline_used_disk_space_bytes=W);
if(!((J=navigator)==null?0:(F=J.storage)==null?0:F.estimate)){E.jumpTo(4);break}return E.yield(navigator.storage.estimate(),5);case 5:Y=E.yieldResult,d.offline_free_disk_space_bytes=(((A=Y)==null?void 0:A.quota)||0).toString();case 4:d.offline_client_state=JSON.stringify(K),_.VE(E)}})};
EWv=function(d){d=_.q(d);for(var H=d.next(),K={};!H.done;K={setter$jscomp$5:void 0},H=d.next()){var c=H.value;H=c.params;c=c.service;H&&c&&(K.setter$jscomp$5=_.R_j[c],K.setter$jscomp$5&&H.forEach(function(p){return function(g){var a=g.key;g=g.value;a&&g&&(0,p.setter$jscomp$5)(a,g)}}(K)))}};
yOv=function(d){d=d.match(/(.*)::.*::.*/);if(d!==null)return d[1]};
boO=function(d){if(_.xuf()){var H=Object.keys(window.sessionStorage);H=_.q(H);for(var K=H.next();!K.done;K=H.next()){K=K.value;var c=yOv(K);c===void 0||d.includes(c)||self.sessionStorage.removeItem(K)}}};
NV5=function(){if(!_.xuf())return!1;var d=_.Lj(),H=Object.keys(window.sessionStorage);H=_.q(H);for(var K=H.next();!K.done;K=H.next())if(K=yOv(K.value),K!==void 0&&K!==d)return!0;return!1};
B0=function(d,H,K){(_.h("desktop_keyboard_shortcut_usage_log")||K&&_.h("web_shorts_keyboard_shortcut_usage_log"))&&(H?_.CR.get(d):_.nR.get(d))&&(d=H?_.Vw.get(d):_.Rc.get(d))&&_.fo(_.Fj(),d)};
Do0=function(d,H){return d.findIndex(function(K){return K.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(H.keyCode):!1};
fig=function(){var d,H;return typeof CSS!=="undefined"&&((H=(d=CSS).supports)==null?void 0:H.call(d,"selector(:has(*))"))};
AOj=function(d){return d.visibility!=="hidden"&&d.display!=="none"};
vW5=function(d){if(fig()||d.tagName!=="DETAILS"?!d.matches(jFj):d.querySelector("summary")!==null)return-1;d=d.getAttribute("tabindex")||"0";return Number(d)};
dR1=function(d){return d.some(function(H){return vW5(H)>0})};
HHG=function(d){if(d.textContent)return!0;if(d instanceof HTMLInputElement){if(!d.labels)return!1;d=_.q(d.labels);for(var H=d.next();!H.done;H=d.next())if(H.value.textContent)return!0}return!1};
$RZ=function(d){return d.sort(function(H,K){return vW5(K)-vW5(H)})};
KEO=function(d){d=Array.from(d.querySelectorAll(jFj)).filter(function(H){return(AOj(H.style)?AOj(window.getComputedStyle(H)):!1)&&HHG(H)});
return dR1(d)?$RZ(d):d};
cFv=function(d){d=KEO(d);d.length>0&&d[0].focus()};
pWj=function(d,H){H.stack&&(d.stack+="\n"+H.stack);return d};
GRZ=function(d){var H=zI(d,"Content-Type");if(!H)return null;H=H.toLowerCase();if(H.startsWith("application/json"))return H.startsWith("application/json+protobuf")?new gLv:new _.gi;if(H.startsWith("application/x-protobuf")){d=zI(d,"Content-Transfer-Encoding");if(!d)return new Jb;if(d.toLowerCase()=="base64")return new iHZ}return null};
CZO=function(d,H,K,c){var p=new oLZ(function(e,k){return qcT.has(k)?e.sentinel==="gal"&&e.event!==void 0:!1},function(e){e.event?(e=aLb(e.event),e=!e||lLO(c,e)?!0:_.RB(d.lastEvent,sK,2,FR)?!_.RB(e,ZG,1,FR)&&!_.RB(e,sK,2,FR):!_.RB(e,ZG,1,FR)&&!_.RB(e,sK,3,FR)):e=!0;
return e});
K=_.gs(d.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",ekt(K)]]));if(d.nestedOrigins!==void 0)for(var g=_.q(d.nestedOrigins),a=g.next();!a.done;a=g.next())K=_.gs(K,new Map([["origin",a.value]]));return kRb(p,K,H).then(function(e){e=xRb(e.event);if(_.RB(e,ZG,1,FR)){var k,C=(k=_.zZ(e,ZG,1,FR))==null?void 0:_.rK(k,2);C&&c.JSC$19259_logErrorEvent(nLZ(C));k=_.zZ(e,ZG,1,FR);_.rK(k,2)===4?(e=_.zZ(e,ZG,1,FR),e={statusCode:11,statusMessage:_.IB(e,
3)}):(e=_.zZ(e,ZG,1,FR),e={statusCode:12,statusMessage:_.IB(e,3)});return e}_.RB(e,sK,3,FR)?(e=_.zZ(e,sK,3,FR),e={statusCode:1,consentLanguageKeys:_.IB(e,2)}):e={statusCode:1};return e}).catch(function(e){return e.errorCode!==void 0?{statusCode:e.errorCode,
statusMessage:e.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
hk0=function(d){var H={};if(d===void 0||d===null)return H;d.getToken()!==void 0&&Rkv(d.getToken())&&Rkv(d.getToken()).length>0&&(H.scopes=new Set(Rkv(d.getToken())));d.getToken()!==void 0&&VGO(d.getToken())&&VGO(d.getToken()).length>0&&(H.capabilities=new Set(VGO(d.getToken())));_.IB(d,3)!==void 0&&(H.consistencyKey=_.IB(d,3));d.getName()!==void 0&&d.getName()!==""&&(H.linkName=d.getName());_.C1(d,URv,4)&&(d=_.gF(d,URv,4),d=Object.assign({},_.IB(d,1)&&{userId:_.IB(d,1)},_.IB(d,2)&&{displayName:_.IB(d,
2)},_.IB(d,3)&&{email:_.IB(d,3)},_.IB(d,5)&&{username:_.IB(d,5)},_.IB(d,4)&&{profilePicture:_.IB(d,4)}),H.profile=d);return H};
LEq=function(d,H){var K=d.flowParams,c;return{serviceId:K.serviceId,sessionId:K.sessionId,currentFlow:d.currentFlow,googleScopesString:H,linkingSessionSerialized:d.session.serialize(),consentLanguageKeys:K.consentLanguageKeys,callerState:d.callerState,dynamicUrlParameters:K.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(c=K.partnerConfigMinReadTimestamp)==null?void 0:c.serialize()}};
uvj=function(d){var H=d.googleScopes!==void 0?Array.from(d.googleScopes).join(","):"";MGb(LEq(d,H));H=mRq(d);return H===null?Promise.resolve(wW1):H.start().then(function(K){var c,p=(c=K.link)==null?void 0:c.consistencyKey;return K.statusCode===1&&d.googleScopes!==void 0&&d.googleScopes.size>0&&p!==void 0?(c=d.flowParams,PZO(c.serviceId,c.sessionId,d.googleScopes,p,c.galService,d.config,K)):K})};
ILS=function(d){var H=mRq(d);return H===null?Promise.resolve(TI({statusCode:7,statusMessage:"Failed to create flow object"},d.callerState)):H.complete().then(function(K){var c,p=(c=K.link)==null?void 0:c.consistencyKey;return K.statusCode===1&&d.googleScopes!==void 0&&d.googleScopes.size>0&&p!==void 0?(c=d.flowParams,PZO(c.serviceId,c.sessionId,d.googleScopes,p,c.galService,d.config,K)):TI(K,d.callerState)},function(K){return TI({statusCode:12,
statusMessage:"Failed to complete the flow: "+K.message},d.callerState)})};
PZO=function(d,H,K,c,p,g,a){return rFt(p,{serviceId:d,sessionId:H,googleScopes:K,consistencyKey:c}).then(function(){return a},function(e){return p.deleteLink({serviceId:d,
sessionId:H,accountLinkingEntryPoint:g.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+e.message}},function(k){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+k.message}})})};
mRq=function(d){switch(d.currentFlow){case 1:var H=d.flowParams;d=_.gF(d.session,WES,1);return Qw.createOAuthFlow(H,d);case 2:case 3:return H=d.flowParams,d=_.gF(d.session,B01,6),tb.createStreamlinedFlow(H,d);default:return null}};
zkT=function(d,H){d===2&&(d=3);var K=0;YH.indexOf(d)!==-1&&(K=YH.indexOf(d)+1);for(d=K;d<YH.length;d++)if(H.has(YH[d]))return YH[d]};
s60=function(d){var H=d.serviceId;var K=d.sessionId;var c=d.config;var p=d.galService;var g=d.capabilities;var a=d.scopes;var e=d.loginHint;var k=d.callerState;var C=d.consentLanguageKeys;var R=d.linkName;var V=d.dynamicUrlParameters;var U=d.partnerConfigMinReadTimestamp;d=c.dataUsageNoticeConfig?c.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return p.startLinkingSession({serviceId:H,sessionId:K,capabilities:g,scopes:a,loginHint:e,callerState:k,supportedFlows:XW1(c.supportedFlows),completionUrl:c.completionUrl,
accountLinkingEntryPoint:c.accountLinkingEntryPoint,consentLanguageKeys:C,dataUsageNoticeConfig:d,linkName:R,dynamicUrlParameters:V,partnerConfigMinReadTimestamp:U}).then(function(L){return new JFv(H,K,c,p,L,void 0,k,C,V,U)})};
Yc5=function(d,H,K){var c=(new FEv).getSession(d);if(c===null)return Promise.resolve({statusCode:2});ZHG(d);var p=T0T(c.linkingSessionSerialized),g=c.googleScopesString!==""&&c.googleScopesString!==void 0?new Set(c.googleScopesString.split(",")):void 0,a=c.partnerConfigMinReadTimestampSerialized?Q6b(c.partnerConfigMinReadTimestampSerialized):void 0;return tGt(new JFv(d,c.sessionId,H,K,p,g,c.callerState,c.consentLanguageKeys,c.dynamicUrlParameters,a),c.currentFlow,c.consentLanguageKeys)};
MGb=function(d){var H=new FEv;H.storage!==null&&H.storage.set("SAVED_SESSION",d)};
ZHG=function(d){var H=new FEv;if(H.storage!==null){var K=H.storage.get("SAVED_SESSION");K!==void 0&&K.serviceId===d&&H.storage.remove("SAVED_SESSION")}};
XW1=function(d){var H=new Set;d=_.q(d);for(var K=d.next();!K.done;K=d.next())K=K.value,K!==1&&OHU.has(K)&&H.add(OHU.get(K));return H};
TI=function(d,H){H!==void 0&&(d.callerState=H);return d};
Sct=function(d){switch(d){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
bHZ=function(d){return new ELO(d,new yFv(d))};
fLj=function(d,H){H=H===void 0?!1:H;var K=document.createElement("div");d&&(K.style.transform="scaleX(-1)");K.style.backgroundColor=H?"rgba(138,180,248,.24)":"#e8f0fe";K.style.height="4px";K.style.overflow="hidden";K.style.position="absolute";K.style.top="0";K.style.width="100%";K.style.zIndex="1500";K.setAttribute("aria-label","Loading");K.setAttribute("aria-live","polite");d=document.createElement("style");d.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
K.appendChild(d);d=N0b();d.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";d.style.left="-145.166611%";var c=DRv(H);c.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";d.appendChild(c);K.appendChild(d);d=N0b();d.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";d.style.left="-54.888891%";H=DRv(H);H.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
d.appendChild(H);K.appendChild(d);return K};
N0b=function(){var d=document.createElement("div");d.style.height="100%";d.style.position="absolute";d.style.transformOrigin="top left";d.style.width="100%";return d};
DRv=function(d){var H=document.createElement("span");H.style.borderTop=d?"4px solid #669df6":"4px solid #4285f4";H.style.display="inline-block";H.style.position="absolute";H.style.width="100%";return H};
AFv=function(d){return d==null?void 0:_.yZ7(d).valueOf()};
Hmb=function(d){var H=document.body,K=!1,c=function(){K||(K=!0,j6g(p,g),setTimeout(function(){H.removeChild(g);H.removeChild(p)},150))},p=vLb(d,getComputedStyle(H).direction==="rtl",c),g=dvS(c);
j6g(p,g);H.appendChild(g);H.appendChild(p);window.requestAnimationFrame(function(){g.style.opacity="1";p.style.opacity="1";p.style.transform="translate(-50%, -50%) scale(1)";p.children[0].focus()})};
vLb=function(d,H,K){var c=document.createElement("div");c.style.position="fixed";c.style.alignItems="center";c.style.backgroundColor=d?"rgb(32, 33, 36)":"white";c.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";c.style.display="flex";c.style.flexDirection="column";c.style.justifyContent="center";c.style.left="50%";c.style.top="50%";c.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";c.style.zIndex="2002";document.body.clientWidth>=
660?(c.style.borderRadius="8px",c.style.minHeight="220px",c.style.maxHeight="90%",c.style.maxWidth="90%",c.style.minWidth="540px"):(c.style.height="100%",c.style.width="100%");c.setAttribute("aria-label","Error");c.setAttribute("aria-modal","true");c.setAttribute("role","alertdialog");c.addEventListener("keydown",function(g){g.key==="Escape"&&K()});
H=$v5(d,H,K);c.appendChild(KZU(H));c.appendChild(H);var p=document.createElement("img");p.src=d?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";p.style.height="72px";p.style.width="72px";p.style.color="#9aa0a6";p.setAttribute("alt","");c.appendChild(p);p=document.createElement("h1");p.textContent="Something went wrong.  Try again.";
p.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";p.style.lineHeight="24px";p.style.fontSize="16px";p.style.textAlign="center";p.style.letterSpacing="0.1px";p.style.color=d?"rgb(232,234,237)":"#3c4043";c.appendChild(p);c.appendChild(KZU(H));return c};
$v5=function(d,H,K){var c=document.createElement("button");c.style.backgroundColor="transparent";c.style.border="none";c.style.borderRadius="50%";c.style.cursor="pointer";c.style.outline="none";c.style.padding="12px";c.setAttribute("aria-label","Close dialog");c.style.position="absolute";c.style.top="0";H?c.style.right="0":c.style.left="0";c.addEventListener("focus",function(){c.style.backgroundColor=d?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
c.addEventListener("blur",function(){c.style.backgroundColor="transparent"});
c.addEventListener("mouseenter",function(){c.style.backgroundColor=d?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
c.addEventListener("mouseleave",function(){c.style.backgroundColor="transparent"});
c.addEventListener("click",K);c.addEventListener("keydown",function(p){p.key!=="Enter"&&p.key!=="Space"||K()});
H=document.createElement("img");H.src=d?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";H.style.display="block";H.style.height="24px";H.style.width="24px";H.setAttribute("alt","");c.appendChild(H);return c};
KZU=function(d){var H=document.createElement("div");H.setAttribute("tabindex","0");H.setAttribute("aria-hidden","true");H.addEventListener("focus",function(){return void d.focus()});
return H};
dvS=function(d){var H=document.createElement("div");H.style.backgroundColor="rgba(32,33,36,0.6)";H.style.bottom="0";H.style.left="0";H.style.position="fixed";H.style.right="0";H.style.top="0";H.style.transition=" opacity 150 ms linear";H.style.zIndex="2001";H.addEventListener("click",d);return H};
j6g=function(d,H){H.style.opacity="0";d.style.opacity="0";d.style.transform="translate(-50%, -50%) scale(0.8)"};
ccv=function(d,H){d.sandbox&&d.sandbox.add&&(d.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),d.sandbox.add("allow-downloads"));d.src=H};
OK=function(d){p5U.call(this,d)};
SC=function(d,H){H=H===void 0?!1:H;this.parsedImageUrl_=null;d instanceof git||(imq==void 0&&(imq=new Ge0),d=imq.parse(d.toString(),H));d=this.parsedImageUrl_=d;d.JSC$19471_parsedOptions_==void 0&&((H=d.getOptions())||(H=""),d.JSC$19471_parsedOptions_=(new oig).parse(H));p5U.call(this,d.JSC$19471_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;d=this.parsedImageUrl_;H=d.uri_.JSC$10002_port_;this.JSC$19473_domain_=d.uri_.JSC$10002_domain_+(H?":"+H:"");this.JSC$19473_query_=
this.parsedImageUrl_.uri_.JSC$10002_queryData_.toString()};
qbZ=function(d){this.mode=4;this.data=d;this.parsedData=[];d=0;for(var H=this.data.length;d<H;d++){var K=[],c=this.data.charCodeAt(d);c>65536?(K[0]=240|(c&1835008)>>>18,K[1]=128|(c&258048)>>>12,K[2]=128|(c&4032)>>>6,K[3]=128|c&63):c>2048?(K[0]=224|(c&61440)>>>12,K[1]=128|(c&4032)>>>6,K[2]=128|c&63):c>128?(K[0]=192|(c&1984)>>>6,K[1]=128|c&63):K[0]=c;this.parsedData.push(K)}this.parsedData=Array.prototype.concat.apply([],this.parsedData);this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),
this.parsedData.unshift(187),this.parsedData.unshift(239))};
a80=function(d){this.typeNumber=0;this.errorCorrectLevel=d===void 0?2:d;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
EK=function(d,H){if(d.length==void 0)throw Error("wk`"+d.length+"`"+H);for(var K=0;K<d.length&&d[K]==0;)K++;this.num=Array(d.length-K+H);for(H=0;H<d.length-K;H++)this.num[H]=d[H+K]};
l8t=function(d,H){this.totalCount=d;this.dataCount=H};
eRv=function(){this.buffer=[];this.length=0};
keg=function(){var d=!1;if(_.xfi()){d=_.nF();var H="";_.RXh()?(H=/Windows (?:NT|Phone) ([0-9.]+)/,H=(d=H.exec(d))?d[1]:"0.0"):_.WF()?(H=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,H=(d=H.exec(d))&&d[1].replace(/_/g,".")):_.C1F()?(H=/Mac OS X ([0-9_.]+)/,H=(d=H.exec(d))?d[1].replace(/_/g,"."):"10"):_.aE(_.nF(),"KaiOS")?(H=/(?:KaiOS)\/(\S+)/i,H=(d=H.exec(d))&&d[1]):_.xfi()?(H=/Android\s+([^\);]+)(\)|;)/,H=(d=H.exec(d))&&d[1]):_.Vll()&&(H=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,H=(d=H.exec(d))&&d[1]);d=
H||""}return d};
Uv0=function(d,H){this.JSC$19496__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(H)for(var K in H)this.JSC$19496__htOption[K]=H[K];this.JSC$19496__htOption.useSVG&&(xvT=nit);this.JSC$19496__android=keg();this.JSC$19496__el=d;this._oQRCode=null;this._oDrawing=new xvT(this.JSC$19496__el,this.JSC$19496__htOption);this.JSC$19496__htOption.text&&(d=this.JSC$19496__htOption.text,this._oQRCode=new a80(this.JSC$19496__htOption.correctLevel),CO1(this._oQRCode,
d),H=this._oQRCode,RRq(H,!1,VhT(H)),this.JSC$19496__el.title=d,this._oDrawing.draw(this._oQRCode),this.makeImage())};
hR1=function(d,H,K,c,p){d.save();var g=new Path2D;g.roundRect(H,K,c*7,c*7,c*2);g.roundRect(H+c,K+c,c*5,c*5,c*1.3);g.roundRect(H+2*c,K+2*c,c*3,c*3,c);d.clip(g,"evenodd");d.fillStyle=p;d.fillRect(0,0,d.canvas.width,d.canvas.height);d.restore()};
yw=function(d,H){if(typeof d!=="function")throw Error("zk");return _.KF.setTimeout(function(){d()},H)};
bu=function(){};
MhZ=function(d,H,K,c,p){(new bu).debug("TestLoadImageWithRetries: "+p);if(c==0)K(!1);else{var g=p||0;c--;LZG(d,H,function(a){a?K(!0):_.KF.setTimeout(function(){MhZ(d,H,K,c,g)},g)})}};
LZG=function(d,H,K){var c=new bu;c.debug("TestLoadImage: loading "+d);var p=new Image;p.onload=function(){try{c.debug("TestLoadImage: loaded"),mv1(p),K(!0)}catch(g){}};
p.onerror=function(){try{c.debug("TestLoadImage: error"),mv1(p),K(!1)}catch(g){}};
p.onabort=function(){try{c.debug("TestLoadImage: abort"),mv1(p),K(!1)}catch(g){}};
p.ontimeout=function(){try{c.debug("TestLoadImage: timeout"),mv1(p),K(!1)}catch(g){}};
_.KF.setTimeout(function(){if(p.ontimeout)p.ontimeout()},H);
p.src=d};
mv1=function(d){d.onload=null;d.onerror=null;d.onabort=null;d.ontimeout=null};
w5b=function(){this.front_=[];this.back_=[]};
POt=function(d,H){_.h_.call(this);this.delay_=new _.M_(this.JSC$19622_onTick_,0,this);_.q_(this,this.delay_);this.JSC$19620_interval_=5E3;this.nextTickTime_=0;if(typeof d==="function")H&&(d=(0,_.LA)(d,H));else if(d&&typeof d.handleEvent==="function")d=(0,_.LA)(d.handleEvent,d);else throw Error("ya");this.JSC$19622_listener_=d};
Nd=function(d,H,K,c,p,g,a,e,k,C,R,V,U,L){K=K===void 0?!1:K;c=c===void 0?function(){return""}:c;
p=p===void 0?!1:p;g=g===void 0?!1:g;a=a===void 0?!1:a;e=e===void 0?function(){return _.e5({})}:e;
k=k===void 0?!1:k;R=R===void 0?!1:R;V=V===void 0?!1:V;U=U===void 0?!1:U;L=L===void 0?!1:L;this.JSC$19623_pathPrefix_=d;this.defaultQueryParams_=H;this.pubsub_=new _.Cj;this.reconnectTimer_=new POt(this.safeReconnect_,this);this.JSC$19623_channel_=null;this.JSC$19623_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19623_pendingMessages_=[];this.enableAsyncTest_=K;this.JSC$19623_getXsrfToken_=c;this.useAsyncBrowserChannelHandler_=g;this.getAuthorizationHeader_=
e;this.getAuthorizationHeaderSync_=C;this.enableCachedUpdateAuthorizationHeader_=a;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.e5();this.enableLoungeTokenRefresh_=p;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=k;this.disableMdxAuthForNonPlaybackMessages_=R;this.disableMdxAuthForAdMessages_=V;this.enableMdxAuthForConnectionOnly_=U;this.disableMdxAuthForShortsMessages_=L;this.JSC$19623_channelOpenedCounter=new uL0;this.JSC$19623_channelClosedCounter=new I81;this.channelMessageSentCounter=
new rc0;this.JSC$19623_channelMessageReceivedCounter=new WZj;this.JSC$19623_channelErrorCounter=new Bn0;this.pendingMapsOnClosedCounter=new zR0;this.undeliveredMapsOnClosedCounter=new X5O};
DG=function(d){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;d=d||document.location.href;var H=Number(_.Am(d)[4]||null)||"";H&&(this.port=":"+H);this.domain=_.jD(d)||"";d=_.nF();d.search("MSIE")>=0&&_.xY(d.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
fR=function(d){d=d||{};this.name=d.name||"";this.id=d.id||d.screenId||"";this.token=d.token||d.loungeToken||"";this.uuid=d.uuid||d.dialId||"";this.idType=d.screenIdType||"normal"};
JcG=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(d){var H=Math.random()*16|0;return(d=="x"?H:H&3|8).toString(16)})};
s3t=function(d){return _.Wf(d,function(H){return{key:H.id,name:H.name}})};
FZ5=function(d,H){return _.XM(d,function(K){return K||H?!K!=!H?!1:K.id==H.id:!0})};
jC=function(d,H){return _.XM(d,function(K){return Ab(K,H)})};
Yb0=function(){var d=ZmO(),H=TnS();if(Q35()){var K=d,c=_.IDM(K,H);c<0&&_.wFF(K,-(c+1),0,H)}d=thj(d);if(d.length==0)try{_.GRE("remote_sid")}catch(p){}else try{_.Um("remote_sid",d.join(","),-1)}catch(p){}};
ZmO=function(){var d=_.xC("yt-remote-connected-devices")||[];d.sort(_.uMF);return d};
thj=function(d){if(d.length==0)return[];var H=d[0].indexOf("#"),K=H==-1?d[0]:d[0].substring(0,H);return _.Wf(d,function(c,p){return p==0?c:c.substring(K.length)})};
Om0=function(d){_.kC("yt-remote-connected-devices",d,86400)};
TnS=function(){if(Sb5)return Sb5;var d=_.xC("yt-remote-device-id");d||(d=JcG(),_.kC("yt-remote-device-id",d,31536E3));for(var H=ZmO(),K=1,c=d;_.TL(H,c);)K++,c=d+"#"+K;return Sb5=c};
Eiv=function(){return _.xC("yt-remote-session-browser-channel")};
Q35=function(){return _.xC("yt-remote-session-screen-id")};
NnZ=function(d){d.length>5&&(d=d.slice(d.length-5));var H=_.Wf(yc0(),function(c){return c.loungeToken}),K=_.Wf(d,function(c){return c.loungeToken});
_.lF4(K,function(c){return!_.TL(H,c)})&&bmO();
_.kC("yt-remote-local-screens",d,31536E3)};
yc0=function(){return _.xC("yt-remote-local-screens")||[]};
bmO=function(){_.kC("yt-remote-lounge-token-expiration",!0,86400)};
v0=function(d){d||(_.ns("yt-remote-session-screen-id"),_.ns("yt-remote-session-video-id"));Yb0();d=ZmO();_.Q4(d,TnS());Om0(d)};
f8Z=function(){DvZ();return d8?!!d8.get("yt-remote-use-staging-server"):!1};
DvZ=function(){if(!d8){var d=_.CZM();d&&(d8=new _.wf(d))}};
drj=function(d,H,K,c,p){K=K===void 0?function(){return""}:K;
var g=function(){return new Nd(Hs(d,"/bc"),H,!1,K,c)};
return _.h("enable_mdx_web_channel_desktop")?new Acv(function(){return new j3q(Hs(d,"/wc"),H,K)}):new viq(g,p)};
cBS=function(){var d=HKZ;$rj();$y.push(d);KJg()};
Kx=function(d,H){$rj();var K=pjv(d,String(H));$y.length==0?gfv(K):(KJg(),_.yx($y,function(c){c(K)}))};
cs=function(d){Kx("CP",d)};
$rj=function(){$y||($y=_.OS("yt.mdx.remote.debug.handlers_")||[],_.vb("yt.mdx.remote.debug.handlers_",$y))};
gfv=function(d){var H=(px+1)%50;px=H;iKT[H]=d;GnU||(GnU=H==49)};
KJg=function(){var d=$y;if(iKT[0]){var H=GnU?px:-1,K={};do K={record$jscomp$15:void 0},H=(H+1)%50,K.record$jscomp$15=iKT[H],_.yx(d,function(c){return function(p){p(c.record$jscomp$15)}}(K));
while(H!=px);iKT=Array(50);px=-1;GnU=!1}};
pjv=function(d,H){var K=(Date.now()-ofb)/1E3;K.toFixed&&(K=K.toFixed(3));var c=[];c.push("[",K+"s","] ");c.push("[","yt.mdx.remote","] ");c.push(d+": "+H,"\n");return c.join("")};
g8=function(d){_.xH.call(this);this.JSC$19647_logName_=d;this.screens=[]};
Gl=function(d){g8.call(this,"LocalScreenService");this.JSC$19654_http_=d;this.loungeTokenRefreshTimer_=NaN;ix(this);this.info("Initializing with "+qIU(this.screens))};
o2=function(d,H){H=H===void 0?!1:H;g8.call(this,"ScreenService");this.JSC$19660_http_=d;this.disableAutomaticScreenCache_=H;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};aVj(this)};
qn=function(d,H,K){_.xH.call(this);this.JSC$19664_logName_=K;this.JSC$19664_screenService_=d;this.receiver_=H;this.screen_=null};
uQO=function(d,H,K){K.disableCastApi?a2("Cannot initialize because disabled by Mdx config."):lVU()?eZt(d,K)&&(knq(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?xrt(H):(window.__onGCastApiAvailable=function(c,p){c?xrt(H):(lx("Failed to load cast API: "+p),nfg(!1),knq(!1),_.ns("yt-remote-cast-available"),_.ns("yt-remote-cast-receiver"),CsZ(),H(!1))},K.loadCastApiSetupScript?_.SM(RZO):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
VOq()>=60&&UrU():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?hZq():VOq()>=89?LJj():(MOS(),mr1(wjj.map(Psj))))):a2("Cannot initialize because not running Chrome")};
CsZ=function(){a2("dispose");var d=eN();d&&d.dispose();_.vb("yt.mdx.remote.cloudview.instance_",null);IVU(!1);_.DkF(rBq);rBq.length=0};
WJb=function(){return!!_.xC("yt-remote-cast-installed")};
B4T=function(){var d=_.xC("yt-remote-cast-receiver");return d?d.friendlyName:null};
zZ1=function(){a2("clearCurrentReceiver");_.ns("yt-remote-cast-receiver")};
Xjg=function(){return WJb()?eN()?eN().getCastSession():(lx("getCastSelector: Cast is not initialized."),null):(lx("getCastSelector: Cast API is not installed!"),null)};
s1q=function(d,H){JBt()?eN().setConnectedScreenStatus(d,H):lx("setConnectedScreenStatus called before ready.")};
lVU=function(){var d=_.nF().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.lv||d};
eZt=function(d,H){var K=!1;eN()||(d=new ky(d,H),d.subscribe("yt-remote-cast2-availability-change",function(c){_.kC("yt-remote-cast-available",c);hb("yt-remote-cast2-availability-change",c)}),d.subscribe("yt-remote-cast2-receiver-selected",function(c){a2("onReceiverSelected: "+c.friendlyName);
_.kC("yt-remote-cast-receiver",c);hb("yt-remote-cast2-receiver-selected",c)}),d.subscribe("yt-remote-cast2-receiver-resumed",function(c){a2("onReceiverResumed: "+c.friendlyName);
_.kC("yt-remote-cast-receiver",c);hb("yt-remote-cast2-receiver-resumed",c)}),d.subscribe("yt-remote-cast2-session-change",function(c){a2("onSessionChange: "+FJU(c));
c||_.ns("yt-remote-cast-receiver");hb("yt-remote-cast2-session-change",c)}),_.vb("yt.mdx.remote.cloudview.instance_",d),K=!0);
a2("cloudview.createSingleton_: "+K);return K};
eN=function(){return _.OS("yt.mdx.remote.cloudview.instance_")};
xrt=function(d){nfg(!0);knq(!1);eN().init(!1,function(H){H?(IVU(!0),_.fXY("yt-remote-cast2-api-ready")):(lx("Failed to initialize cast API."),nfg(!1),_.ns("yt-remote-cast-available"),_.ns("yt-remote-cast-receiver"),CsZ());d(H)})};
a2=function(d){Kx("cloudview",d)};
lx=function(d){Kx("cloudview",d)};
nfg=function(d){a2("setCastInstalled_ "+d);_.kC("yt-remote-cast-installed",d)};
JBt=function(){return!!_.OS("yt.mdx.remote.cloudview.apiReady_")};
IVU=function(d){a2("setApiReady_ "+d);_.vb("yt.mdx.remote.cloudview.apiReady_",d)};
knq=function(d){_.vb("yt.mdx.remote.cloudview.initializing_",d)};
xy=function(d){this.index=-1;this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.playerTimeAt_=this.playerTime_=0;this.trackData=null;this.hasNext=this.hasPrevious=!1;this.loadedTime=this.duration_=this.seekableEnd_=this.seekableStart_=0;this.liveIngestionTime_=NaN;this.isLive_=!1;this.reset(d)};
ZKv=function(){var d,H;return _.l(function(K){if(K.nextAddress==1)return(_.zu1()||_.h("use_new_nwl"))&&_.IXD().isNetworkAvailable()?K.yield(_.dF(),2):K.return();if(K.nextAddress!=3)return(d=K.yieldResult)?K.yield(kAq(d),3):K.return();H=K.yieldResult;if(!H.length)return K.return();H.forEach(function(c){var p={timestamp:c.timestamp};c=c.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:c.appShellAssetLoadReport,options:p}:c.clientError?{payloadName:"clientError",payload:c.clientError,
options:p}:void 0;c&&_.Wd(c.payloadName,c.payload,c.options)});
H.length===100&&_.Xp.addLowPriorityJob(ZKv);_.VE(K)})};
T40=function(d){if(d.playerResponse){if(d=d.playerResponse,d.messages&&d.messages.length>0&&(d=d.messages.find(function(H){return!(!H||!H.mealbarPromoRenderer)}))&&d.mealbarPromoRenderer)return d.mealbarPromoRenderer}else if(d.response&&(d=d.response)&&d.overlay&&d.overlay.mealbarPromoRenderer)return d.overlay.mealbarPromoRenderer};
Q1U=function(d){if(d.response){var H=d.response;if(H&&H.overlay&&H.overlay.tooltipRenderer)return H.overlay.tooltipRenderer}if(d.playerResponse&&(d=d.playerResponse,d.messages&&d.messages.length>0&&(d=d.messages.find(function(K){return!(!K||!K.tooltipRenderer)}))&&d.tooltipRenderer))return d.tooltipRenderer};
YI5=function(d){if(!tOv&&(d=d||_.Fm("ZWIEBACK_PING_URLS"))&&d.length){tOv=!0;for(var H=0;H<d.length;H++)_.S7(d[H])}};
SIv=function(d){if(_.rs.get(_.Fm("PLAYER_VARS",{}),"privembed",!1)!="1"){d&&p3j();try{OKt().then(function(){},function(){}),_.a5(SIv,18E5)}catch(H){_.tm(H)}}};
EfU=function(){var d=_.Lo(),H=d.getFlag(119),K=window.devicePixelRatio>1;document.body&&_.Tw(document.body,"exp-invert-logo")&&(K&&!_.Tw(document.body,"inverted-hdpi")?_.Hg(document.body,"inverted-hdpi"):!K&&_.Tw(document.body,"inverted-hdpi")&&_.v1(document.body,"inverted-hdpi"));H!=K&&(_.Mo(0,119,K),d.save())};
yB1=function(d){return d.filter(function(H){return"ypcGetCartEndpoint"in H||"ypcFixInstrumentEndpoint"in H})};
bKv=function(d){return d.filter(function(H){return!_.M(H,_.ZdA)})};
Drv=function(d,H){var K,c,p,g,a,e,k;_.l(function(C){switch(C.nextAddress){case 1:K=_.Jc.getInstance();c=_.nM.instance;p=_.y2.instance;if(!p)return N4O(d,c,H),C.return();_.e2(C,2);d.onLoadingCommand&&c.resolveCommand(d.onLoadingCommand);return C.yield(K.getCurrentPositionFromGeolocation(),4);case 4:g=C.yieldResult;if(!d.resolveLocationCommand){C.jumpTo(5);break}a=K.createLocationInfo(g);return C.yield(_.Nc(p,d.resolveLocationCommand,{locationInfo:a}),6);case 6:e=C.yieldResult;if(!e||"error"in e&&e.error||
e.errorMetadata)return N4O(d,c,H),C.return();var R;if(e==null?0:(R=e.onResponseReceivedActions)==null?0:R.length){R=_.q(e.onResponseReceivedActions);for(var V=R.next();!V.done;V=R.next())c.resolveCommand(V.value)}(_.M(d.onSuccessCommand,_.AP)||_.M(d.onSuccessCommand,_.Lm))&&_.GT(H.hostElement,"yt-navigate",{endpoint:d.onSuccessCommand,reload:!0});case 5:_.Em(C,0);break;case 2:k=_.RV(C);if(k instanceof GeolocationPositionError&&k.code===GeolocationPositionError.PERMISSION_DENIED)return d.onDeniedCommand&&
c.resolveCommand(d.onDeniedCommand),C.return();N4O(d,c,H);_.VE(C)}})};
N4O=function(d,H,K){d.onFailureCommand&&(H.resolveCommand(d.onFailureCommand),_.oF(K.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
ABG=function(d,H){var K=_.M(d,_.OqM);if(K&&H){d=K.videoIds||[K.videoId];var c;H=(c=_.GT(H,"yt-lockup-requested",{videoIds:d}).detail)==null?void 0:c.returnValue;var p;K.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?p=H?H:d.map(function(g){return{videoId:g,navigationEndpoint:K.videoCommand}}):H&&(p=H);
p&&(c=p.map(function(g){var a=Object,e=a.assign;var k=g.navigationEndpoint;if(!_.M(k,_.P5)){var C=_.M(k,_.AP);if(C){if(delete C.index,delete C.playlistId,C=_.M(k==null?void 0:k.commandMetadata,_.Co),C==null?0:C.url){var R=C.url;R=_.$W(R,"list");R=_.$W(R,"index");C.url=R}}else k=void 0}return e.call(a,{},g,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:k})}),fVj(c,K))}};
j1Z=function(d){var H=_.yq();if(d=_.M(d,_.SLl))d.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&H.clearQueue(),d.closeMiniplayer&&_.Kj().resolve(_.Fb).close(!0)};
dkt=function(d){vft(_.yq(),d)};
HMt=function(d){var H;(d=(H=_.M(d,_.toB))==null?void 0:H.setVideoIds)&&d.forEach(function(K){_.fM0(_.yq(),K)})};
KlZ=function(d){$kG(_.yq(),d)};
cRG=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(d){return!1}};
p1S=function(d){var H=["h","m","s"],K=_.tC(H);K.reverse();var c={};d=(d.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(a){var e=(a.match(/[hms]/)||[""])[0];return e?(c[e]=parseInt(a.match(/\d+/)[0],10),!1):!0});
for(d.reverse();d.length&&K.length;){var p=K.shift();p in c||(c[p]=parseInt(d.shift(),10))}if(d.length||c.s>59||c.m>59||c.h>9)return null;var g="";H.forEach(function(a){c[a]&&(g+=""+c[a]+a)});
return g||null};
gvU=function(d){d=d.data;return _.x("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.x("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.x(_.d7,{data:{thumbnails:[{url:d.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.x("div",{class:"profile-badge-view-model-wiz__content"},_.x("div",{class:"profile-badge-view-model-wiz__badge-description"},d.badgeDesc),d.badgeSubtitle?_.x("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},d.badgeSubtitle):
null))};
iMg=function(d){d=d.data;var H=_.Af("yt-comment-interaction-view-model");t5S(H,d.rendererContext);return _.x("yt-comment-interaction-view-model",{el:H,class:"yt-comment-interaction-view-model-wiz"},_.x("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":d.onTapA11yLabel,"on:keydown":_.XN(),tabindex:0},_.x("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.x("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},d.headerPrefix,' "',d.videoTitle),
_.x("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},'"')),_.x("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.x("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},d.commentContent),_.x("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.x(_.d7,{data:{thumbnails:[{url:d.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))};
ovt=function(d){d=d.data;return _.x("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},G60(d.avatar),_.x("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},d.channelName))};
qGT=function(d,H){var K=function(c){c.preventDefault()};
_.r9(function(){var c=d.value;if(c)return(c._data=H)?(c.addEventListener("touchstart",_.QUF,{passive:!0}),c.addEventListener("click",BVT),H.clickTrackingParams&&(c.params={itct:H.clickTrackingParams}),zT1(c,H),_.TC(c,XyT(H)||"")):c.addEventListener("click",K),function(){H?(c.removeEventListener("touchstart",_.QUF,{passive:!0}),c.removeEventListener("click",BVT)):c.removeEventListener("click",K)}},[H,
void 0])};
aXZ=function(d){d=d.data;var H;return _.x("div",{class:"yt-profile-info-view-model-wiz__activity"},_.x("div",{class:"yt-profile-info-view-model-wiz__header"},_.x("div",{class:"yt-profile-info-view-model-wiz__section-title"},d.commentsInteractionTitle)),(H=d.comments)==null?void 0:H.map(function(K){return _.x("div",{class:"yt-profile-info-view-model-wiz__activity"},nx(K))}))};
lXq=function(d){d=d.data;var H=_.OG({elementsCommand:d.subscriptionsAccessButtonCommand}),K=_.Af("a");qGT(K,_.T6(d.subscriptionsAccessButtonCommand));var c;return _.x("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.x("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.x("a",{el:K,"on:click":_.n7(function(p){if(H==null?0:H.onclick)H.onclick(p);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.x("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},d.sharedSubscriptionsTitle),_.x("div",null,nx(d.subscriptionsAccessButton)))),_.x("div",{class:"yt-profile-info-view-model-wiz__subs"},(c=d.sharedSubscriptions)==null?void 0:c.slice(0,5).map(function(p){return _.x("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",nx(p))})))};
eu0=function(d){d=d.data;var H;return _.x("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.x("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.x("h2",{class:"yt-profile-info-view-model-wiz__section-title"},d.sharedSubscriptionsTitle)),_.x("div",{class:"yt-profile-info-view-model-wiz__subs"},(H=d.sharedSubscriptions)==null?void 0:H.slice(0,5).map(function(K){return _.x("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",nx(K))})))};
xkt=function(d){d=d.data;return _.x("div",{class:"yt-profile-info-view-model-wiz__activity"},[d.profileBadgeInfoYtWide,d.profileBadgeInfoChannelWide].map(function(H){var K,c,p,g,a;return H?_.x(_.HE,null,_.x("div",{class:"yt-profile-info-view-model-wiz__header"},_.x("div",{class:"yt-profile-info-view-model-wiz__section-title"},H==null?void 0:H.profileSectionTitle),_.x("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.x("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},H==
null?void 0:(K=H.commentBadge)==null?void 0:K.commentDesc),(H==null?0:(c=H.commentBadge)==null?0:c.blackHeartDesc)?_.x("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.x("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.x(_.d7,{data:{thumbnails:[{url:H==null?void 0:(p=H.commentBadge)==null?void 0:p.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.x("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},
H==null?void 0:(g=H.commentBadge)==null?void 0:g.blackHeartDesc))),_.x("div",{class:"yt-profile-info-view-model-wiz__badge"},H==null?void 0:(a=H.badges)==null?void 0:a.map(function(e){return _.x(k6U,{data:e})}))):null}))};
nv0=function(d){d=d.data;return _.x("yt-profile-info-view-model",{class:d.videosHorizontalShelf?"yt-profile-info-view-model-wiz yt-profile-info-view-model-wiz__with-video-shelf":"yt-profile-info-view-model-wiz"},_.x(xkt,{data:d}),d.videosHorizontalShelf?_.x("div",{class:"yt-profile-info-view-model-wiz__videoShelfContainer"},nx(d.videosHorizontalShelf)):null,d.comments?_.x(aXZ,{data:d}):null,d.sharedSubscriptionsTitle?d.subscriptionsAccessButtonCommand?_.x(lXq,{data:d}):_.x(eu0,{data:d}):null)};
Rut=function(d){d=d.data;if(d){var H=d.profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD";H=CDq(d.profileIdentityInfo,{profileIdentityInfoViewModel:{hideDivider:H,isChannelInfoCard:H}})}else H=void 0;d=d?CDq(d.profileInfo):void 0;return _.x("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},H,d)};
Vvt=function(d,H){var K=_.eW3(H,{},d,!0);return new Promise(function(c,p){K.listenOnce("n",function(){p(Error("kl`"+K.JSC$29332_getErrorDescription()))});
K.listenOnce("l",function(){var g=K.getResponseCode();if(g!==200)p(Error("ll`"+H+"`"+d.type+"`"+d.size+"`"+g));else try{c(JSON.parse(K.getResponseText()).encryptedBlobId)}catch(a){p(a)}});
K.run()})};
Ukq=function(d){return d.substring(d.indexOf(":")+1,d.indexOf(";"))};
huU=function(d){return new Promise(function(H,K){var c=new FileReader;c.onloadend=function(){try{var p=new Uint8Array(c.result);p.length<8&&K(void 0);var g=p.subarray(0,8);p="";for(var a=0;a<g.length;a++)p+=("0"+g[a].toString(16)).substr(-2);p.startsWith("ffd8ff")?H("image/jpeg"):p.startsWith("47494638")?H("image/gif"):p.startsWith("89504e470d0a1a0a")?H("image/png"):p.startsWith("424d")?H("image/bmp"):H(void 0)}catch(e){K(e)}};
c.onerror=K;c.readAsArrayBuffer(d)})};
Ll0=function(d){return new Promise(function(H,K){var c=new Image;c.crossOrigin="anonymous";c.onload=function(){var p=document.createElement("canvas");p.width=c.naturalWidth;p.height=c.naturalHeight;var g=p.getContext("2d");if(!g)throw Error("ml");g.drawImage(c,0,0);g=Ukq(d);p.toBlob(function(a){a?H(a):K()},g)};
c.src=d})};
mkO=function(d,H){var K;if(((K=_.M(d,_.P5))==null?void 0:K.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var c;_.GT((c=H.hostElement)!=null?c:H,"yt-shorts-reset");_.HkC(_.Kj().resolve(_.Ls),d).then(function(g){Mvb(g,H,d)})}else{var p;
_.aF((p=H.hostElement)!=null?p:H,[d]).then(function(g){g&&Mvb(g.data,H,d)})}};
Mvb=function(d,H,K){if(d){var c=_.M(d.replacementEndpoint,_.P5);if(c){d.sequenceContinuation&&(c.sequenceParams=d.sequenceContinuation);var p;_.GT((p=H.hostElement)!=null?p:H,"yt-navigate",{endpoint:d.replacementEndpoint})}else if((d==null?void 0:d.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(d==null?0:d.watchStatus)&&_.M(d.watchStatus,_.mY3)){var g;_.GT((g=H.hostElement)!=null?g:H,"yt-navigate",{endpoint:K})}}};
w1b=function(d){var H=_.Kj().resolve(_.t$),K=YaT(H.getState())||"";H=_.Iy5(H.getState())||"";K=K==="ytd-browse"&&H==="home";return _.h("web_guide_entry_enable_cache_for_non_home_pages")?(d=(d==null?void 0:d.navigationEndpoint)&&_.hc(d.navigationEndpoint)==="home",{disableCache:K&&d}):{disableCache:K}};
PDS=function(d){if(!d)return!1;try{if(d.host&&d.host.tagName==="YT-FORMATTED-STRING"&&d.host.id==="contenteditable-textarea"||d.nodeType===Node.ELEMENT_NODE&&d.tagName==="YTD-COMMENT-INPUT")return!0}catch(H){return!1}return PDS(d.parentNode)};
Cx=function(d){return d?d.tagName==="A"&&d.href&&d.classList.contains("yt-simple-endpoint"):!1};
u4G=function(d){return d?d.tagName==="IMG"&&d.classList.contains("emoji"):!1};
IX5=function(d,H,K){if(!d)return null;var c=Cx(d);if(c&&K)return H=d.pathname.substring(d.pathname.indexOf("/channel/")+9),document.createTextNode("@"+H);if(c&&!K)return document.createTextNode("");if(u4G(d))return K=d.alt,d=d.dataset.emojiId,!d&&H&&(H=_.aI(H,K))&&H.isCustomEmoji&&(d=H.emojiId),d?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+d+">"):document.createTextNode(K);c=d.cloneNode(!1);for(var p=0;p<d.childNodes.length;++p){var g=IX5(d.childNodes[p],H,K);g&&c.appendChild(g)}return c};
R2=function(d){return d?Cx(d)?d:R2(d.lastChild):null};
rRZ=function(d){return d?Cx(d)?d:rRZ(d.firstChild):null};
Wlt=function(d){if(!d)return null;for(var H=d.previousSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.previousSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.previousSibling;else break;(H=R2(H))?d=H:d=(d=d.parentNode)?R2(d.previousElementSibling):null;return d};
Bgq=function(d){if(!d)return null;for(var H=d.nextSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.nextSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.nextSibling;else break;return(H=rRZ(H))?H:Bgq(d.parentNode)};
zug=function(d){var H=_.en(),K=H.JSC$11278_getStartNode();if(!PDS(K.parentNode))return null;H=H.JSC$11278_getStartOffset();if(K.nodeType===Node.TEXT_NODE){var c=_.sY(K,Cx);if(c){if(d&&H===0||!d&&H===K.length)return c}else{if(d&&H===K.length)return!K||K.nodeName==="BR"||K.nextElementSibling&&_.kE(K.nextElementSibling,"display")==="block"?null:rRZ(K.nextElementSibling);if(!d&&H===0)return K?R2(K.previousElementSibling):null}}if(K.nodeType===Node.ELEMENT_NODE)if(d){if(0<=H&&H<K.childNodes.length)return rRZ(K.childNodes[H])}else if(0<
H&&H<=K.childNodes.length)return R2(K.childNodes[H-1]);return null};
X1S=function(d,H,K){if(!d)return null;if(d.nodeType===Node.TEXT_NODE)if(K){var c=Wlt(d);if(c&&!/^\s+\S/.test(d.wholeText.substr(0,H)))return c}else if((c=Bgq(d))&&!/\S\s+/.test(d.wholeText.substr(H,d.wholeText.length)))return c;return d.nodeType===Node.ELEMENT_NODE?K?Wlt(d.childNodes[H]):Bgq(d.childNodes[H]):X1S(d.parentNode,H,K)};
JR5=function(d){if(d.hasChildNodes())switch(d.tagName){case "DIV":case "A":case "SPAN":var H="";for(d=d.firstChild;d;d=d.nextSibling)H+=JR5(d);return H;default:return""}else switch(d.nodeType){case 3:return d.textContent;default:return""}};
sqT=function(d){switch(d){case "UNKNOWN_FORMAT_TYPE":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN";case "HD_1080":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080";case "SD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD";case "LD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD";default:return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD"}};
Flg=function(d){return d.map(function(H){return{settingsRadioOptionRenderer:{title:_.g0(H.name),asideText:_.g0(H.approximateSize),id:sqT(H.format)}}})};
TgZ=function(d){if(d&&d.length!==0)return d.filter(ZM1()).map(function(H){return{settingsRadioOptionRenderer:{title:H.name,asideText:H.approximateSize,id:sqT(H.formatType)}}})};
Vk=function(d){if(d)return d.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
Qqj=function(d,H){d=new Set(d!=null?d:[]);if(d.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(d.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(d.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(d.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(d.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(H)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
tvZ=function(d){var H=d.indexOf("(");return H!==-1?d.substring(H+1,d.length-1):d};
_.OM1=function(d,H,K,c,p){K||(K=YG0);var g;(g=_.M(K.commandMetadata,_.Co))!=null&&g.url||(K=Error("rl`"+JSON.stringify(K)),_.z5(K),K=YG0);K=_.rs.unsafeClone(K);g=_.Qj(_.M(K.commandMetadata,_.Co).url,"search_query",d);_.ZB(location.href,"sv")==="1"&&(_.M(K,_.Mv).params="EgOAAgE%3D",g=_.Qj(g,"sv","1"));_.M(K,_.Mv)&&(_.M(K,_.Mv).query=d);g=g.replace(/%20/g,"+");_.M(K.commandMetadata,_.Co).url=g;p=_.h("desktop_enable_entity_suggest")?{entityMid:p}:{};_.Kj().resolve(_.cb).resolveCommand(K,{form:{tempData:Object.assign({},
{gs_l:H,oq:c!=null?c:d},p)}})};
SG5=function(d){switch(d){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
yR5=function(d,H,K,c,p,g){var a=_.rs.clone(EvZ);a.locale=_.Fm("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;a.report={description:p||"<empty>"};p=_.Fm("SBOX_SETTINGS",{});H=H.join(",");var e=Date.now();d={choice_cc:c,choice_id_cc:K,choices_sc:H,gl:p.REQUEST_DOMAIN,hl:p.REQUEST_LANGUAGE,query:d,time:e};g&&(d.choice_additional_comment_cc=g);_.VRl(a,d)};
bMq=function(d){var H=new Map;H.set("authuser",_.Fm("SESSION_INDEX","0"));return _.gs(d,H)};
Dkv=function(d){var H;return _.l(function(K){switch(K.nextAddress){case 1:if(!d||!NgU(d))return K.return(null);H=null;switch(_.Fm("INNERTUBE_CLIENT_NAME")){case "WEB":return K.jumpTo(2);case "WEB_REMIX":H=d.getPlayer()}K.jumpTo(3);break;case 2:return K.yield(d.getPlayerPromise(),4);case 4:H=K.yieldResult;K.jumpTo(3);break;case 3:return K.return(H)}})};
NgU=function(d){return["ytd-player","ytmusic-player"].includes(String(d.tagName||"").toLowerCase())};
fX0=function(d){d=Math.round(d);return d%2?d-1:d};
ARj=function(d){d=Math.round(d);return d%2===0?d-1:d};
jqv=function(d){var H,K,c;if(d=(H=d.createPlaylistDialogFormSchema)==null?void 0:(K=H.fieldSchemas)==null?void 0:(c=K.title)==null?void 0:c.validationSchema)for(H=[d.syncStep,d.asyncStep].filter(function(p){return p!==void 0}),H=_.q(H),K=H.next();!K.done;K=H.next()){K=K.value.rules;
if(!K)break;K=_.q(K);for(K=K.next();!K.done;K=K.next())return _.M(K.value,_.b6v)}};
dct=function(d){var H,K,c;if(d=(H=d.createPlaylistDialogFormSchema)==null?void 0:(K=H.fieldSchemas)==null?void 0:(c=K.visibility)==null?void 0:c.validationSchema)for(H=[d.syncStep,d.asyncStep].filter(function(p){return p!==void 0}),H=_.q(H),K=H.next();!K.done;K=H.next()){K=K.value.rules;
if(!K)break;K=_.q(K);for(c=K.next();!c.done;c=K.next())if(c=_.M(c.value,vvZ))return H=void 0,(H=c.translations)==null?void 0:H.visibilityNotValidErrorMessage}};
H71=function(){var d,H;return(H=(d=_.Kj().resolve(_.$p(_.fM)))==null?void 0:d())!=null?H:!1};
$cg=function(d){var H=21;if(!d)return H;H+=d.headerTitle?27:0;H+=d.headerTitle&&d.hasHeaderActionHeader?4:0;return H+=d.headerTitle&&d.headerSubtitle?16:0};
KeZ=function(d){var H=0;if(!d)return H;H+=d.hasFooterPrimaryButton||d.hasFooterSecondaryButton?48:0;H+=d.footerTrailingLabel||d.footerLeadingLabel?30:0;return H+=d.hasFooterPrimaryButton||d.hasFooterSecondaryButton||!d.footerTrailingLabel&&!d.footerLeadingLabel?0:12};
cug=function(d){var H=new _.Cj,K=d;return{subscribe:function(c){H.subscribe("changed",c)},
dispatch:function(c,p){var g=K;c==="Touch Start"?K=Object.assign({},g,{isAnimating:!1,initialY:p.event.touches[0].clientY}):c==="Touch Move"?(c=Math.min(p.fullContentWrapperHeight,p.contentHeightMap[p.contentWrapperId]+$cg(p.header)-KeZ(p.footer)),K=Object.assign({},g,{currentY:Math.max(p.contentScrollable?-1*(g.initialY-24):0,p.event.touches[0].clientY-g.initialY),maxHeightForContentWrapper:Math.min(c,Math.max(0,(g.isFullScreen?c:p.contentWrapperHeight)-g.currentY))})):K=c==="Snap To Full Screen"?
Object.assign({},g,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:p.maxHeight}):c==="Snap To Neutral Position"?Object.assign({},g,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:p.maxHeight}):c==="Close Sheet"?Object.assign({},g,{isAnimating:!0,currentY:p.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:p.maxHeight}):g;H.publish("changed",K)}}};
pgZ=function(d){return _.n7(function(H){d(H);return!1})};
gMg=function(){_.Kj().resolve(_.B6).closeSheet()};
i7Z=function(d){var H,K,c,p,g,a,e,k,C,R,V;return{headerTitle:(H=d.headerTitle)==null?void 0:H.call(d),headerSubtitle:(K=d.headerSubtitle)==null?void 0:K.call(d),headerActionHeader:d.headerActionHeader,footerPrimaryButton:d.footerPrimaryButton,footerSecondaryButton:d.footerSecondaryButton,footerButtonType:(c=d.footerButtonType)==null?void 0:c.call(d),footerLeadingLabel:(p=d.footerLeadingLabel)==null?void 0:p.call(d),footerTrailingLabel:(g=d.footerTrailingLabel)==null?void 0:g.call(d),shouldShowIcons:(a=
d.shouldShowIcons)==null?void 0:a.call(d),skipContentClick:(e=d.skipContentClick)==null?void 0:e.call(d),additionalClassName:(k=d.additionalClassName)==null?void 0:k.call(d),onClosedCallback:d.onClosedCallback,focusOnClose:(C=d.focusOnClose)==null?void 0:C.call(d),isDisabled:(R=d.isDisabled)==null?void 0:R.call(d),disabledCommand:(V=d.disabledCommand)==null?void 0:V.call(d),headerFn:d.headerFn,contentFn:d.contentFn,footerFn:d.footerFn,hasHeaderFn:d.hasHeaderFn(),hasContentFn:d.hasContentFn(),hasFooterFn:d.hasFooterFn(),
hasFooterPrimaryButton:d.hasFooterPrimaryButton(),hasFooterSecondaryButton:d.hasFooterSecondaryButton(),hasHeaderActionHeader:d.hasHeaderActionHeader()}};
GvT=function(d){switch(d){case "FLEXBOX_FLEX_DIRECTION_ROW":return"row";case "FLEXBOX_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "FLEXBOX_FLEX_DIRECTION_COLUMN":return"column";case "FLEXBOX_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse";default:return""}};
oMO=function(d){switch(d){case "FLEXBOX_JUSTIFY_CONTENT_CENTER":return"center";case "FLEXBOX_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "FLEXBOX_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around";default:return""}};
qQ1=function(d){switch(d){case "FLEXBOX_ALIGN_ITEMS_CENTER":return"center";case "FLEXBOX_ALIGN_ITEMS_START":return"flex-start";case "FLEXBOX_ALIGN_ITEMS_END":return"flex-end";case "FLEXBOX_ALIGN_ITEMS_STRETCH":return"stretch";default:return""}};
aAU=function(d,H,K){H.forEach(function(c){_.nU(_.Kj().resolve(_.BC),c)});
_.oF(d,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",K])};
xcG=function(d,H,K,c){var p=_.M(K,_.yi).commandLifeCycleConfig;p&&p.onStartCommand&&_.l5(d,[p.onStartCommand],H);_.Qv(H);var g=_.y2.instance;g&&_.bV(g,K)?_.Nc(g,K,c).then(function(a){if(!a||(a==null?0:a.error))return a=_.M(K,_.yi).serializedTransactionFlowLoggingParams,_.tE(H),_.W1(new UN("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",a));_.tE(H);return{data:a}}).then(function(a){_.tE(H);
lAt(a.data);var e=a.data.command;e&&_.l5(d,[e],H);e=eAv(K,a.data);if(!e){var k=a.data;a=!1;if(k&&k.command&&_.M(k.command,_.kW)){var C;k=((C=_.M(k.command,_.kW))==null?void 0:C.commands)||[];for(C=0;C<k.length;C++)if(_.M(k[C],_.UZC)){a=!0;break}}a||_.zt('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!e&&p&&p.onSuccessCommand?_.l5(d,[p.onSuccessCommand],H):e&&p&&p.onFailureCommand&&_.l5(d,[p.onFailureCommand],H)},function(){_.tE(H);
p&&p.onFailureCommand&&_.l5(d,[p.onFailureCommand],H);kvj(K)}):_.z5(Error("Dl"),"ERROR")};
nMU=function(d,H,K){var c=[H];K&&c.push(K);return _.aF(d,c).then(function(p){var g=_.M(H,_.yi).serializedTransactionFlowLoggingParams,a=p.data,e=eAv(H,a);e?p=_.W1(new UN(e,g)):lAt(a);return p},function(){var p=_.M(H,_.yi).serializedTransactionFlowLoggingParams;
kvj(H);return _.W1(new UN("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",p))})};
eAv=function(d,H){d=_.M(d,_.yi).serializedTransactionFlowLoggingParams;var K=null;switch(H.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":K="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":K="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":K="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}K?_.fm(K,d):rOO(d);return K};
kvj=function(d){_.fm("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.M(d,_.yi).serializedTransactionFlowLoggingParams)};
lAt=function(d){if(d.trackingParams){var H=_.Fj(),K=_.so();H&&K&&_.Ea(H,K,_.P1(d.trackingParams))}};
CVv=function(d,H,K){var c=_.y2.instance,p=_.z2X(_.Fm("YPC_MB_URL")),g=(new _.WQD).init(),a=_.B6M(),e=_.M(K,_.nkA).languageCode;e===void 0?_.z5(Error("Fi"),"ERROR"):_.hH([g,p]).then(function(){var k={ctk:payments.business.integration.ClientTokenFactory.createClientToken(e,a)};c&&_.bV(c,K)?_.Nc(c,K,k).then(function(C){return{data:C}}).then(function(C){_.GT(H,"yt-service-request-completed",C);
C.code!=="ERROR"&&(C=C.data.command)&&_.l5(d,[C],H)}):_.z5(Error("Dl"),"ERROR")})};
UcZ=function(d,H,K,c){var p=_.y2.instance;p&&_.bV(p,K)?_.Nc(p,K,c).then(function(g){return{data:g}}).then(function(g){RAb(d,H,K,g)},function(){V8b(K)}):(p=_.Kj().resolve(_.$p(_.FL)))&&p.requestDataForServiceEndpoint(K,c).then(function(g){RAb(d,H,K,g)},function(){V8b(K)})};
RAb=function(d,H,K,c){_.GT(H,"yt-service-request-completed",c);if(c.code&&c.code=="ERROR")V8b(K);else{(c=c.data.commands)&&_.l5(d,c,H);var p;(d=(p=_.M(K,_.Lu0))==null?void 0:p.serializedYpcPauseFlowLoggingParams)&&d&&_.A3("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",d)}};
V8b=function(d){var H;(d=(H=_.M(d,_.Lu0))==null?void 0:H.serializedYpcPauseFlowLoggingParams)&&d&&_.A3("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",d,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
M8U=function(d,H,K){var c=_.y2.instance;c&&_.bV(c,K)?_.Nc(c,K).then(function(p){return{data:p}}).then(function(p){hAS(d,H,K,p)},function(){LeT(K)}):(c=_.Kj().resolve(_.$p(_.FL)))&&c.requestDataForServiceEndpoint(K).then(function(p){hAS(d,H,K,p)},function(){LeT(K)})};
hAS=function(d,H,K,c){_.GT(H,"yt-service-request-completed",c);c.code&&c.code=="ERROR"?LeT(K):((c=c.data.commands)&&_.l5(d,c,H),(d=_.M(K,_.MP3).serializedYpcResumeFlowLoggingParams)&&d&&_.A3("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",d))};
LeT=function(d){(d=_.M(d,_.MP3).serializedYpcResumeFlowLoggingParams)&&d&&_.A3("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",d,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
mcq=function(d){d=d===void 0?{}:d;_.Kj().resolve(_.d7M).showFeedbackDialog(d.customProductData,d.feedbackContent,d.onFeedbackSubmitted,d.bucket)};
wgj=function(d){d=d===void 0?{}:d;_.Kj().resolve(_.d7M).showHelpDialog(d.helpContext,d.articleId,d.productData)};
PVU=function(){wgj()};
uXG=function(){mcq()};
ruS=function(d,H,K){var c,p,g,a,e,k,C;return _.l(function(R){switch(R.nextAddress){case 1:c=_.M(d,IAO);if((p=c)==null?0:p.productId){k={productId:c.productId,bucket:c.bucket,enableAnonymousFeedback:(e=c.enableAnonymousFeedback)!=null?e:!0,allowNonLoggedInFeedback:!0};C={feedbackChoice:K.feedbackChoice};if(!_.h("web_collect_offline_state")){R.jumpTo(8);break}_.e2(R,9);return R.yield(Saj(C),11)}a={bucket:(g=c)==null?void 0:g.bucket};if(!_.h("web_collect_offline_state")){R.jumpTo(4);break}a.customProductData=
{};_.e2(R,5);return R.yield(Saj(a.customProductData),7);case 7:_.Em(R,4);break;case 5:_.RV(R);case 4:mcq(a);R.jumpTo(0);break;case 11:_.Em(R,8);break;case 9:_.RV(R);case 8:_.RVi(C),_.CQE("GFEEDBACK",C),c.productId==="5295751"&&(C.client_attestation=Number(_.Fm("CATSTAT",0))),c.productId==="5295751"&&(C.client_time=Date.now()/1E3/3600),c.productId==="5295751"&&(C.original_playback_id=_.igX||""),_.VRl(k,C),_.VE(R)}})};
We5=function(d){if(d=_.M(d,_.rpF)){var H={bucket:d.bucketIdentifier};d.additionalDatas&&(H.customProductData={},d.additionalDatas.forEach(function(K){if(K=K.userFeedbackEndpointProductSpecificValueData)H.customProductData[K.key]=K.value}));
mcq(H)}};
B7G=function(d){var H=_.bw.getInstance();var K=_.Vz("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var c=_.Vz("DELETE",void 0,"Delete"),p=_.Vz("CANCEL",void 0,"Cancel");K=D80(K,void 0,c,p,{signal:"DELETE_ALL_DOWNLOADS"});_.zp(H,[{openPopupAction:K}],d)};
XgO=function(){return _.l(function(d){return d.nextAddress==1?d.yield(_.Kj().resolve(_.CE),2):d.yield(zA0(),0)})};
Jug=function(d){var H,K;return _.l(function(c){return c.nextAddress==1?(K=(H=_.M(d,_.Yr))==null?void 0:H.targetId)?c.yield(_.Kj().resolve(_.CE),3):c.jumpTo(0):c.yield(_.Kj().resolve(_.nE).deleteVideo(K),0)})};
Feg=function(d){var H,K;return _.l(function(c){return c.nextAddress==1?(K=(H=_.M(d,_.Yr))==null?void 0:H.targetId)?c.yield(_.Kj().resolve(_.CE),3):c.jumpTo(0):c.yield(sdZ(_.Kj().resolve(_.nE),K),0)})};
T7G=function(d){var H,K;return _.l(function(c){return(K=(H=_.M(d,_.Yr))==null?void 0:H.targetId)?c.yield(Z7T(K),0):c.jumpTo(0)})};
t8O=function(){_.h("kevlar_woffle_refresh_dl_load_killswitch")||Qdb()};
O75=function(){_.h("kevlar_woffle")&&_.XL.instance&&YQ1()};
EMj=function(d){var H;if((H=_.M(d,_.Cf))==null||!H.videoId)return!1;SQj(_.Kj().resolve(_.nE),_.M(d,_.Cf),d.clickTrackingParams);return!0};
b7S=function(d){var H;if((H=_.M(d,_.VY))==null||!H.playlistId)return!1;yuZ(_.Kj().resolve(_.nE),_.M(d,_.VY),d.clickTrackingParams);return!0};
Dc5=function(d){var H=_.M(d,_.GFC);(H==null?void 0:H.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(H==null?void 0:H.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||N7b(_.Kj().resolve(_.nE),_.M(d,_.GFC))};
Aub=function(d){d=_.M(d,_.Qh3);var H;(d==null?0:(H=d.actions)==null?0:H.length)&&fAt(d)};
dVb=function(d){var H,K;return _.l(function(c){H=_.M(d,jdg);return(K=H)!=null&&K.localWatchHistoryCommandType?c.yield(vMb(H),0):c.return()})};
Hfg=function(d){setTimeout(function(){requestAnimationFrame(d)},80)};
$Vj=function(d){return Object.entries(d).map(function(H){return H.join(":")}).join(";")};
cW1=function(d){var H,K,c;_.l(function(p){if(p.nextAddress==1)return p.yield(KRZ(),2);H=p.yieldResult;K=_.nM.instance;switch(H){case "granted":c=d.getLocationCommand;break;case "denied":c=d.openDeniedDialogAction;break;case "prompt":c=d.openCollectionDialogAction;break;default:c=d.openCollectionDialogAction}c&&K.resolveCommand(c);_.VE(p)})};
KRZ=function(){var d,H;return _.l(function(K){if(K.nextAddress==1)return d="prompt",navigator.permissions?K.yield(navigator.permissions.query({name:"geolocation"}),3):K.jumpTo(2);K.nextAddress!=2&&(H=K.yieldResult,d=H.state);return K.return(d)})};
g6T=function(){_.l(function(d){return d.yield(_.pI0(),0)})};
ifZ=function(){var d,H,K;return _.l(function(c){if(c.nextAddress==1)return d=_.Kj().resolve(_.Z8),d?c.yield(_.Nc(d,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Jf(Error("Gl")),c.return(void 0));if(H=c.yieldResult){if(H.errorMetadata)return _.Jf(Error("Hl`"+H.errorMetadata.status+"`"+H.error)),c.return(void 0);K=H.datasyncIds;_.Ki1=K.length;return c.return(K)}_.Jf(Error("Il"));return c.return(void 0)})};
Gxt=function(){ifZ().then(function(d){d&&(lcq(d),JOU(d),cOU(d),boO(d))})};
o6U=function(d){_.Xp.addLowPriorityJob(function(){var H,K,c,p,g;return _.l(function(a){switch(a.nextAddress){case 1:if(_.h("ytidb_clear_optimizations_killswitch")){a.jumpTo(2);break}H=_.Lj("clear");if(H.startsWith("V")&&H.endsWith("||")){var e=[H];lcq(e);JOU(e);cOU(e);boO(e);return a.return()}K=pyt();c=NV5();return a.yield(sFj(),3);case 3:return p=a.yieldResult,a.yield(eQ1(),4);case 4:if(g=a.yieldResult,!(K||c||p||g))return a.return();case 2:d.isNetworkAvailable()?Gxt():d.listenOnce("publicytnetworkstatus-online",
Gxt),_.VE(a)}})})};
hG=function(d){d={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.AF(d)}}}};_.nM.instance&&_.nM.instance.resolveCommand(d)};
qjO=function(d){if(d){var H=_.hR();_.ld(H,3854,void 0,{layer:0,parentLayer:4});switch(d){case 1:var K=238708;break;case 2:K=238715;break;case 3:K=238710;break;case 6:K=238709}K&&(d=_.UG(H,{veType:K}))&&_.xR(H,d)}};
abb=function(d){if(d){var H=_.hR();_.ld(H,3854,void 0,{layer:0,parentLayer:4});switch(d){case 1:var K=238714;break;case 2:K=238711;break;case 8:K=238709;break;case 7:K=238713;break;case 3:case 4:case 5:K=238712}K&&(d=_.UG(H,{veType:K}))&&_.xR(H,d)}};
lbb=function(d){switch(d.latencyType){case 0:_.sa("consent_primitive_flow");_.Fw("cpit",d.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Fw("cpist",d.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Fw("cprtif",d.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Fw("cprtli",d.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Fw("cprt",d.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Fw("cpdt",d.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.Fw("cpjct",d.timestampEpochMillis,"consent_primitive_flow")}};
LR0=function(d,H){var K,c,p,g,a,e,k,C,R,V,U,L,w,W,J,F,Y,A,E,N;return _.l(function(y){switch(y.nextAddress){case 1:_.e2(y,2);(c=(K=_.M(d,eo5))==null?void 0:K.serializedConsentRequest)||(c=(p=_.M(d,kxO))==null?void 0:p.serializedConsentRequest);c&&(g=xVZ(_.fF(c)));if(g===void 0)return y.return();a=n6O(g);a.latencyCallback=lbb;H&&C8G(a,function(){H.then(function(v){v.pauseVideo();(new Rob).increment()})});
return((e=_.M(d,eo5))==null?void 0:e.consentAction)==="CONSENT_ACTION_PREWARM"||((k=_.M(d,kxO))==null?void 0:k.consentAction)==="CONSENT_ACTION_PREWARM"?y.yield(VAb(a),5):y.yield(UVZ(a),6);case 6:C=y.yieldResult;R=_.hS(C,Lx);if(R===1){if(((V=_.zZ(C,Mn,1,Lx))==null?void 0:_.rK(V,1))===1||((U=_.zZ(C,Mn,1,Lx))==null?void 0:_.rK(U,1))===2||((L=_.zZ(C,Mn,1,Lx))==null?void 0:_.rK(L,1))===3)_.M(d,kxO)?hG(_.Vz("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
hG(_.Vz("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));qjO((w=_.zZ(C,Mn,1,Lx))==null?void 0:_.rK(w,1),_.dk(C,hoG,3,_.Hz()))}else R===2?(((W=mX(C))==null?void 0:_.rK(W,1))===5?_.M(d,kxO)?hG(_.Vz("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):hG(_.Vz("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((J=mX(C))==null?void 0:_.rK(J,1))===1||((F=mX(C))==null?void 0:_.rK(F,1))===4?hG(_.Vz("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((Y=mX(C))==null?void 0:_.rK(Y,1))===7&&((A=g)==null?void 0:(E=_.gF(A,w8,4))==null?void 0:_.rK(E,4))!==1&&hG(_.Vz("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),abb((N=mX(C))==null?void 0:_.rK(N,1))):hG(_.Vz("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));y.jumpTo(5);break;case 5:_.Em(y,0);break;case 2:_.RV(y),hG(_.Vz("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.VE(y)}})};
mVb=function(){if(!MAj.has("Worker")){MAj.set("Worker",!0);var d={api:"BROWSER_API_WEB_WORKER"};d.available="Worker"in window?!0:!1;_.Wd("apiTest",d)}};
wI5=function(d){return typeof d==="undefined"?"-1":String(Math.ceil(d/1048576))};
rWb=function(d,H){P8U(new uNG(_.M(H,Ibt).addToken,_.M(H,Ibt).commonToken)).then(function(){_.GT(d,"yt-invoke-instrument-manager-action-completed")},function(K){_.GT(d,"yt-invoke-instrument-manager-action-error",K)})};
WRg=function(){var d,H;return(H=(d=window).matchMedia)==null?void 0:H.call(d,"(prefers-reduced-motion: reduce)").matches};
BBt=function(d){var H=_.Kj().resolve(_.$p(_.LW));if(H&&H.isAnyTransitionEnabled){var K={};H.viewTransitionCoordinator.registerElement(d,(K.slide="miniplayer-page-transition",K["lockup-to-watch"]="miniplayer-page-transition",K["learning-journey"]="miniplayer-page-transition",K))}};
zoT=function(d,H,K){return{horizontalAlignment:d.x+K.width/2<H.width/2?"west":"east",verticalAlignment:d.y+K.height/2<H.height/2?"north":"south"}};
JWS=function(d,H,K,c,p){p=p===void 0?new _.Bf(0,0):p;d=XIv(d,H,K,c);return new _.Bf(d.x+p.x,d.y+p.y)};
XIv=function(d,H,K,c){return new _.Bf(d==="west"?16:K.width-c.width-16,H==="north"?16:K.height-c.height-16)};
sDZ=function(d,H){var K=0;d&&(K+=76);H&&(K+=285);return K};
FRS=function(d){return _.Zr(d)};
ZfU=function(d){var H=1;d=d.split(":");for(var K=[];H>0&&d.length;)K.push(d.shift()),H--;d.length&&K.push(d.join(":"));return K};
TBg=function(d){var H=new _.gN;return _.Xh(H,11,d)};
QDb=function(d){var H={};d=d.getAllResponseHeaders().split("\r\n");for(var K=0;K<d.length;K++)if(!_.oE(d[K])){var c=ZfU(d[K]),p=c[0];c=c[1];if(typeof c==="string"){c=c.trim();var g=H[p]||[];H[p]=g;g.push(c)}}return _.rs.map(H,function(a){return a.join(", ")})};
zI=function(d,H){return d.JSC$9767_xhr_?d.JSC$9767_xhr_.getResponseHeader(H):null};
tAZ=function(d,H){if(d.isDisposed())throw Error("Ea");d.k6.hP("n");var K=_.rN(d.k6,function(){return d.bgd([H.wF,H.zqc,H.b2d,H.p9k])},"n");
d.k6.hbt(K.length);d.k6.dL();return K};
Ps=function(d,H,K){Array.isArray(K)||(K=[String(K)]);_.EmM(d.JSC$10002_queryData_,H,K);return d};
YQ1=function(){var d=_.XL.instance;_.l(function(H){return d.deferredInstallPrompt?H.yield(d.deferredInstallPrompt.prompt(),0):H.jumpTo(0)})};
Yjv=function(d,H,K){if(_.O5(d))_.yx(d,H,K);else for(d=_.cwB(d);;){var c=d.next();if(c.done)break;H.call(K,c.value,void 0,d)}};
Oft={AND_START:["{0}, {1}","{0}, {1}","{0}, {1}"],AND_TWO:["{0} and {1}","{0} & {1}","{0}, {1}"],AND_END:["{0}, and {1}","{0}, & {1}","{0}, {1}"],OR_TWO:["{0} or {1}","{0} or {1}","{0} or {1}"],OR_END:["{0}, or {1}","{0}, or {1}","{0}, or {1}"],UNIT_START:["{0}, {1}","{0}, {1}","{0} {1}"],UNIT_MIDDLE:["{0}, {1}","{0}, {1}","{0} {1}"],UNIT_END:["{0}, {1}","{0}, {1}","{0} {1}"]};
Oft={AND_START:["{0}, {1}","{0}, {1}","{0}, {1}"],AND_TWO:["{0} and {1}","{0} & {1}","{0}, {1}"],AND_END:["{0}, and {1}","{0}, & {1}","{0}, {1}"],OR_TWO:["{0} or {1}","{0} or {1}","{0} or {1}"],OR_END:["{0}, or {1}","{0}, or {1}","{0}, or {1}"],UNIT_START:["{0}, {1}","{0}, {1}","{0} {1}"],UNIT_MIDDLE:["{0}, {1}","{0}, {1}","{0} {1}"],UNIT_END:["{0}, {1}","{0}, {1}","{0} {1}"]};
var SjT=function(d,H){var K=[];Yjv(H,function(c){try{var p=_.qC.prototype.getWrapper.call(this,c,!0)}catch(g){if(g=="Storage: Invalid value was encountered")return;throw g;}p===void 0?K.push(c):_.KKX(p)&&K.push(c)},d);
return K},E6Z=function(d,H){SjT(d,H).forEach(function(K){_.qC.prototype.remove.call(this,K)},d)},yWj=function(d){var H=_.Oh;
H._minimumZ=Math.max(H._minimumZ,d)},bfg=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],NBO=function(d,H){_.AA(d.vm);d.vm=H},DVS=function(d,H,K,c){d.setState(5);
var p=!!d.nho&&bfg.includes(_.jD(d.nho)||"");try{var g=new _.W9({program:H,globalName:K,toV:{disable:!_.h("att_web_record_metrics")||!_.h("att_skip_metrics_for_cookieless_domains_ks")&&p,pS:"aGIf"}});g.nAF.then(function(){d.setState(6);c&&c(H)});
NBO(d,g)}catch(a){d.setState(7),a instanceof Error&&_.Jf(a)}},fbU=function(d,H,K,c,p,g){var a=a===void 0?"trayride":a;
K?(d.setState(2),_.SM(_.mc(K),function(){if(window[a])DVS(d,c,a,p);else{d.setState(3);var e=_.Kqh(K),k=document.getElementById(e);k&&(_.jqF(e),k.parentNode.removeChild(k));_.Jf(new _.m1("BL:ULB",K))}},g)):H?(g=_.x1("SCRIPT"),H instanceof _.b_?_.Dw(g,H):g.textContent=H,g.nonce=_.yB(document),document.head.appendChild(g),document.head.removeChild(g),window[a]?DVS(d,c,a,p):(d.setState(4),_.Jf(new _.m1("BL:ULBJ")))):_.Jf(new _.m1("BL:ULV"))},AWO=function(){this.state=1;
this.vm=null;this.nho=void 0};
_.G=AWO.prototype;_.G.initialize=function(d,H,K,c){this.nho=c;if(d.program){var p;c=(p=d.interpreterUrl)!=null?p:null;if(d.interpreterSafeScript)p=_.Ur5(d.interpreterSafeScript);else{var g;p=(g=d.interpreterScript)!=null?g:null}d.interpreterSafeUrl&&(c=_.J5(d.interpreterSafeUrl).toString());fbU(this,p,c,d.program,H,K)}else _.Jf(Error("jf"))};
_.G.isInitialized=function(){return!!this.vm};
_.G.getState=function(){return this.state};
_.G.isLoading=function(){return this.state===2};
_.G.invoke=function(d){d=d===void 0?{}:d;var H;this.vm?H=tAZ(this.vm,{wF:d}):H=null;return H};
_.G.dispose=function(){NBO(this,null);this.setState(8)};
_.G.setState=function(d){this.state=d};
var jD0=function(d,H){return d.vm.snapshot(H)},v6b=function(d,H){var K=_.iT("botguard_async_snapshot_timeout_ms",3E3);
H=H===void 0?{}:H;K=K===void 0?3E3:K;return d.vm?new Promise(function(c,p){var g=!1,a=_.Xp.addJob(function(){g=!0;p(Error("kf"))},1,K);
d.vm?jD0(d,{wF:H}).then(function(e){_.Xp.cancelJob(a);g||c(e)}).catch(function(e){_.Xp.cancelJob(a);
g||p(e)}):(_.Xp.cancelJob(a),c(null))}):Promise.resolve(null)},d$b=["att/log"],YG0;
YG0={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var H8q={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},$$0=function(d,H){return _.hF(d,{mode:"readwrite",enableRetries:!0},function(K){return _.seD(K,H,"settingEntity")})},KBj=function(d,H,K){return _.hF(d,{mode:"readonly",
enableRetries:!0},function(c){return _.End(c,H,K)})},cEq=function(d){if(!d.storage)return!1;
a:{if(d.storage){try{var H=d.storage.get("TLPQtimestamp")}catch(K){}d=Number(H);if(!isNaN(d))break a}d=void 0}return d?Date.now()-d<864E5:!1},pKq=function(d){if(d.storage){try{var H=d.storage.get("TLPQindex")}catch(K){}d=Number(H);
if(!isNaN(d))return d}},gEU=function(d,H){d.queueProxy&&H.forEach(function(K){if(K.videoId&&K.trackingParams&&d.queueProxy instanceof _.ZE){var c=_.Fj();
d.queueProxy.attributionData.set(K.videoId,{enqueueingVe:_.P1(K.trackingParams).getAsJson(),enqueueingCsn:c?c:void 0,clientEnqueueingTimeMs:Math.floor((0,_.$G)()).toString()})}})},i8T=function(d){var H=_.whS(d);
H!=d.currentSnapState_&&(d.currentSnapState_=H,d.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},ux=function(d){this.JSC$13091_networkManager_=d;
this.partCallbacks_=[]};
ux.prototype.getCacheKeyForEndpoint=function(d){return _.Ui5(d,!1)};
ux.prototype.onPartsCallback_=function(d){this.partCallbacks_.forEach(function(H){d&&H(d)})};
var I2=function(d,H,K){ux.call(this,d);this.player_=H;this.autoplayData_=K};
_.m(I2,ux);I2.prototype.getCacheKeyForEndpoint=function(d){return _.Ui5(d,!!this.autoplayData_)};
I2.prototype.getTempData=function(d,H){H=H.timeBeforeNextVideo;d={itct:d.clickTrackingParams,lact:_.cd(),pbis:H,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(d.autonav=1);return d};
I2.prototype.getXhrParams=function(d){return Object.assign({pbj:"prefetch"},d)};
I2.prototype.getParams=function(d){d={frags:d.fragmentsRequested.join(",")};_.h("kevlar_droppable_prefetchable_requests")&&(d.prefetch=1);return d};
var G_q=function(d){d.playerEvents_.forEach(function(H){d.player.removeEventListener(H.eventName,H.callback)});
d.playerEvents_.length=0},r8=function(d,H,K){this.player=d;
this.JSC$13101_taskManager=H;this.prefetchDelay=K;this.completionResolver_=null;this.playerEvents_=[]};
r8.prototype.start=function(){var d=this;this.completionResolver_=_.DA();_.Lq(this.completionResolver_.promise,function(){G_q(d);d.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var oEZ=function(d,H,K){d.player.addEventListener(H,K);d.playerEvents_.push({eventName:H,callback:K})},q7G={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},aag={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},lab=function(d,H,K){r8.call(this,d,H,K);this.cueId_="playbackTrigger-"+Math.random()};
_.m(lab,r8);
lab.prototype.prepareTrigger=function(d){var H=this,K=this.player.getDuration(),c=this.player.getVideoData(),p=c.isLive&&c.hasProgressBarBoundaries;if(p&&c.progressBarEndPositionUtcTimeMillis){var g=c.progressBarEndPositionUtcTimeMillis/1E3;isNaN(g)||(K=g)}var a=0;this.prefetchDelay>=0?p?c.progressBarStartPositionUtcTimeMillis&&(c=c.progressBarStartPositionUtcTimeMillis/1E3,isNaN(c)||(a=c+this.prefetchDelay)):a=this.prefetchDelay:a=K+this.prefetchDelay;p?this.player.addUtcCueRange(this.cueId_,a,K):
this.player.addCueRange(this.cueId_,a,K);_.Lq(d.promise,function(){H.player.removeCueRange(H.cueId_)});
oEZ(this,"onCueRangeEnter",function(e){e==H.cueId_&&d.resolve(K-a)})};
var eDG=function(d,H){d.fragmentConfiguration_[H].requiredKeys.every(function(K){return!!d.prefetchedData_[K]})&&(d.validatedFragments_.push(H),H=d.missingFragments_.indexOf(H),H!==-1&&d.missingFragments_.splice(H,1))},k_Z=function(d){d.prefetchedFragments_.forEach(function(H){eDG(d,H)})},x$v=function(d,H,K){this.pageFragments_=d;
this.prefetchedFragments_=H;this.fragmentConfiguration_=aag;this.prefetchedData_=K;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;k_Z(this)},nEU=function(){},CWZ=function(d){this.JSC$13115_playlistManager_=d};
_.m(CWZ,nEU);CWZ.prototype.getPrefetchEndpoint=function(){return this.JSC$13115_playlistManager_.getAutoplayEndpoint()};
var RD1=function(d){this.autonavEndpoints_=d};
_.m(RD1,nEU);RD1.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var VnS=function(d,H,K,c,p){this.autonavEndpoints=d;this.foregroundTrigger=H;this.backgroundTrigger=K;this.pageType=c;this.isInPlaylist=p},U$T=function(d,H){if(d.webPrefetchData&&d.webPrefetchData.navigationEndpoints&&d.webPrefetchData.navigationEndpoints.length){d=d.webPrefetchData.navigationEndpoints;
var K=_.M(d[0],_.AP);if(K.watchEndpointSupportedPrefetchConfig&&K.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var c=K.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;K=c.playbackRelativeSecondsPrefetchCondition;K=typeof K==="number"&&Math.abs(K)<H.videoDuration?K:void 0;c=c.countdownUiRelativeSecondsPrefetchCondition;c=typeof c!=="number"||_.h("prefetch_job_config_cleanup_ks")&&H.inPlaylist?void 0:c;if(typeof c==="number")return new VnS(d,H.makeUpNextTrigger(c),H.makePlaybackTrigger(c),
"watch",H.inPlaylist);if(typeof K==="number")return new VnS(d,H.makePlaybackTrigger(K),null,"watch",H.inPlaylist)}}},hD5=function(d){return d.prefetchJobConfig_.backgroundTrigger?_.Y2(_.dAM)()==0?d.prefetchJobConfig_.backgroundTrigger:d.prefetchJobConfig_.foregroundTrigger:d.prefetchJobConfig_.foregroundTrigger},LBT=function(d){_.Cq(document,"visibilitychange",d.onVisibilityChange_,!1,d)},Ws=function(d){ux.call(this,d)};
_.m(Ws,ux);Ws.prototype.getCacheKeyForEndpoint=function(d){return ux.prototype.getCacheKeyForEndpoint.call(this,d)};
Ws.prototype.getTempData=function(){return{}};
Ws.prototype.getXhrParams=function(d){return d};
Ws.prototype.getParams=function(){return{}};
var MnO=function(d,H,K){var c=d.prefetchDelay*1E3;if(Math.abs(c)>H)K.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var p=c,g=H-c;c<0&&(p=H+c,g=Math.abs(c));var a=d.JSC$13101_taskManager.addJob(function(){K.resolve(g/1E3)},10,p);
K.promise.thenCatch(function(){d.JSC$13101_taskManager.cancelJob(a)})}},m$b=function(d,H,K){r8.call(this,d,H,K)};
_.m(m$b,r8);m$b.prototype.prepareTrigger=function(d){var H=this;oEZ(this,"onAutonavCoundownStarted",function(K){MnO(H,K,d)})};
var wK1=function(d){d.pendingPrefetchJob_&&(d.pendingPrefetchJob_.cancel(),d.pendingPrefetchJob_=null)},PW5=function(d,H,K){if(!d.triggeredTargets.has(H)){var c=_.UH6(d,H);
c.action=K;_.RM3(d,H,c)}},ucZ=function(d){_.ge7();
_.eeE("cpt")&&_.Jf(Error("kh"));_.KF.requestAnimationFrame(function(){_.KF.setTimeout(function(){_.Fw("cpt");var H=_.Qz("vpl"),K=_.Qz("cpt");H&&K&&_.Fw("ol",Math.max(H,K))})});
try{_.Fw("fr_s"),d()}catch(H){_.z5(H)}_.KF.requestAnimationFrame(function(){_.Fw("bcp")})},Ia0=function(d,H){d.serviceEndpointHandlers.push(H)},rEb=function(d,H){H=d.pendingPages_.indexOf(H);
H>-1&&d.pendingPages_.splice(H,1)},WB1=function(d,H){var K=_.W$l.indexOf(H);
K>-1&&_.W$l.splice(K,1);d.targetPage_==H?(d.abort(),_.zr7(d)):rEb(d,H)},BEG=function(d,H,K,c){H={challenge:H};
K&&(H.webResponse=K);return _.Qq(d.innertubeTransportService,H,_.H5(d$b),c)},zDv=function(d,H,K){if(!H.challenge)throw Error("ni");
if(H.botguardData&&H.botguardData.program){var c=new AWO;c.initialize(H.botguardData,function(){v6b(c,{atr_challenge:H.challenge}).then(function(p){if(!p)throw Error("oi");return BEG(d,H.challenge,p,K)}).catch(function(p){_.Jf(p);
return BEG(d,H.challenge,void 0,K)})},void 0)}else BEG(d,H.challenge,void 0,K)},XK0=function(d,H,K){var c={};
H.ids&&(c.ids=[].concat(_.ru(H.ids)));H.engagementType&&(c.engagementType=H.engagementType);return _.Qq(d.innertubeTransportService,c,_.H5(_.GbN),K).then(function(p){if(!p)throw new _.m1("GetAttestationChallenge returned falsy");zDv(d,p,K)}).thenCatch(function(p){_.z5(p)})},JEG=function(d,H,K){return new _.kr(function(c,p){var g;
return _.l(function(a){if(a.nextAddress==1){var e=a.yield,k=H.engagementType,C=H.ids,R={};C=_.q(C!=null?C:[]);for(var V=C.next();!V.done;V=C.next())V=V.value,V.encryptedVideoId?R.encryptedVideoId=V.encryptedVideoId:V.externalChannelId?R.externalChannelId=V.externalChannelId:V.commentId?R.commentId=V.commentId:V.externalOwnerId?R.externalOwnerId=V.externalOwnerId:V.artistId?R.artistId=V.artistId:V.playlistId?R.playlistId=V.playlistId:V.externalPostId?R.externalPostId=V.externalPostId:V.shareId&&(R.shareId=
V.shareId);return e.call(a,NQZ(k,R),2)}g=a.yieldResult;if(!g.challenge)return _.Jf(Error("pi")),XK0(d,H,K).then(c,p),a.return();e=g;k={challenge:e.challenge};k.webResponse=e.webResponse;k.engagementType=H.engagementType;k.ids=H.ids;_.Qq(d.innertubeTransportService,k,_.H5(d$b),K).then(c,p);_.VE(a)})})},$kG=function(d,H){var K,c,p,g;
_.l(function(a){if(a.nextAddress==1){K=_.M(H,_.yHA);if(!(K&&K.listId&&d.response&&d.response.playingVideoId)||d.listId!==K.listId)return a.return();d.index===void 0&&(d.index=0);return a.yield(_.uYM(d.JSC$12846_playlistNetworkManager,K.listId,d.index,d.response.playingVideoId),2)}c=a.yieldResult;if(!c)return a.return();p=c.playlistId;g=c.playlistPanelRenderer;d.setPlaylistData(p,g,c.autoplayRenderer);_.VE(a)})},sIj=function(d,H,K){var c=d.getParams(K),p=_.rWi(H,c),g=d.getTempData(H,K);
g.endpoint=JSON.stringify(H);_.h("enable_unknown_lact_fix_on_html5")&&(_.Kj().resolve(_.uV),g.lact=_.cd());var a={headers:{"X-YouTube-STS":_.Fm("STS"),"x-youtube-csoc":1}};_.Hy(p,g);return new _.kr(function(e,k){var C=d.getXhrParams(c),R;_.h("kevlar_cache_on_ttl_player")&&(R=_.m9.instance);R&&_.AYM(R,H)?_.pAX(R,H,g,window.location.href).then(function(V){V?e(V):k()},k):_.PP0(d.JSC$13091_networkManager_,H,C,d.onPartsCallback_.bind(d),a).then(function(V){V?e(V):k()},k)})},FBT=function(d,H){d.triggerPromise_=
H.start();
d.triggerPromise_.then(function(K){var c=d.prefetchEndpointProvider_.getPrefetchEndpoint();if(c){var p=q7G[d.prefetchJobConfig_.pageType].prefetchedFragments;d.prefetchRequestPromise_=sIj(d.JSC$13127_networkPrefetchRequest_,c,{fragmentsRequested:p,timeBeforeNextVideo:K});d.prefetchResponseCacheKey_=d.JSC$13127_networkPrefetchRequest_.getCacheKeyForEndpoint(c);LBT(d);d.prefetchRequestPromise_.then(function(g){d.storePrefetchedDataCallback_(d.prefetchResponseCacheKey_,g);if(_.h("web_prefetch_preload_video")&&
p.length===1&&p[0]==="pl"&&g&&!g.playerAds&&!g.adPlacements){var a=_.M(c,_.P5),e=a!=null,k={raw_player_response:g,watch_endpoint:a};(g=_.Kj().resolve(e?_.oAX:_.Gx))&&c&&g.then(function(C){e&&_.h("web_queue_preload_video")?(k.prefer_gapless=!0,C.queueNextVideo(k)):C.preloadVideoByPlayerVars(k)})}})}})},Bs=function(d,H,K,c){this.prefetchEndpointProvider_=d;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=H;this.prefetchJobConfig_=K;this.JSC$13127_networkPrefetchRequest_=c;this.prefetchResponseCacheKey_=null};
Bs.prototype.enqueue=function(){this.triggerPromise_||(FBT(this,hD5(this)),_.Iq(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Bs.prototype.resolve=function(){this.cancel()};
Bs.prototype.cancel=function(){this.triggerPromise_&&this.triggerPromise_.cancel("Prefetch job cancelled, trigger promise cancelled.");this.prefetchRequestPromise_&&this.prefetchRequestPromise_.cancel("Prefetch job cancelled, request promise cancelled.");LBT(this)};
Bs.prototype.onVisibilityChange_=function(){var d=this;_.Y2(_.dAM)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){d.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||FBT(this,hD5(this))};
var Z85=function(d,H,K,c,p){H&&(H==null?0:H.videoId)&&K&&K.entries&&_.h("kevlar_enable_shorts_prefetch_in_sequence")&&(wK1(d),H=K.entries.map(function(g){var a;return(a=_.M(g.command,_.P5))==null?void 0:a.videoId}).indexOf(H.videoId),K=K.entries[H+1],K!=null&&K.command&&!_.M(K==null?void 0:K.command,_.F5)&&(c=new VnS([K.command],new lab(c,_.Xp,1),null,"shorts",!1),d.pendingPrefetchJob_=new Bs(new RD1(c.autonavEndpoints),function(){return!1},c,new Ws(p)),d.pendingPrefetchJob_.enqueue()))},TE0=function(d,
H,K,c,p,g){var a=_.$R.getInstance();
if(!_.h("block_all_player_prefetch_requests")){wK1(d);var e=!!K.getPlaylistId(),k=K.getVideoData().isLive&&K.getVideoData().hasProgressBarBoundaries;if((a.getState()==2||e||k)&&(!K.getVideoData().isLive||k)){a={inPlaylist:e,videoDuration:K.getDuration(),makeUpNextTrigger:function(R){return new m$b(K,_.Xp,R)},
makePlaybackTrigger:function(R){return new lab(K,_.Xp,R)}};
var C=U$T(H,a);C&&(d.pendingPrefetchJob_=new Bs(C.isInPlaylist?new CWZ(p):new RD1(C.autonavEndpoints),function(R,V){V=new x$v(q7G[C.pageType].pageFragments,q7G[C.pageType].prefetchedFragments,V);return _.oaX(V)?(d.prefetchCache_.set(R,V),!0):!1},C,new I2(c,K,g,p)),d.pendingPrefetchJob_.enqueue())}}},QIb=function(){var d=_.yq();
d.signals.parkOrScheduleJob(function(){var H=d.storage;if(H.storage)if(cEq(H)){var K=H.getPlaylistId();H=pKq(H);K=!!K&&H!==void 0}else H.clear(),K=!1;else K=!1;if(K){K=d.pageManager.isOnWatch();a:{var c=d.storage;if(c.storage&&cEq(c)&&(H=c.getPlaylistId(),c=pKq(c),H&&c!==void 0)){K={recoverPlaylistCommand:{listId:H,index:c,openMiniplayer:!K,openListPanel:K,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}K=void 0}K&&_.zp(d.JSC$12846_actionRouter,[K],null)}},0,"ma")},tnq=function(d,H,K,c,p,g){var a=
_.l8(7111);
_.ec(d.JSC$18221_screenManager,a,g?_.P1(g):void 0);_.xR(d.JSC$18221_screenManager,a,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:c,offlineId:H,offlineabilityFormatType:K,isDefaultFormatType:p==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:p}})},Y7S=function(d,H,K,c,p){var g,a,e,k,C;
return _.l(function(R){if(R.nextAddress==1)return R.yield(d.JSC$18221_playerApiPromise,2);g=R.yieldResult;tnq(d,H,K,"OFFLINE_OBJECT_TYPE_PLAYLIST",c,p);if(e=_.ja0[d.entityTypeMap.listEntityType])C={},a=(C[e]={maximumDownloadQuality:(k=K)!=null?k:void 0},C);return R.yield(g.queueOfflineAction(H,d.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",a),0)})},O8j=function(d,H){var K,c,p,g;
return _.l(function(a){if(a.nextAddress==1)return a.yield(d.JSC$18221_persistentStorePromiseAccessor(),2);if(a.nextAddress!=3){K=a.yieldResult;if(!K)return _.Jf(new _.m1("PES is undefined")),a.return();c=_.kL(H,"downloadStatusEntity");return a.yield(KBj(K,c,"downloadStatusEntity"),3)}p=a.yieldResult;return a.return((g=p)==null?void 0:g.downloadState)})},S71=function(d,H,K,c,p){var g,a,e,k,C,R;
return _.l(function(V){switch(V.nextAddress){case 1:return V.yield(d.JSC$18221_playerApiPromise,2);case 2:g=V.yieldResult;tnq(d,H,K,"OFFLINE_OBJECT_TYPE_VIDEO",c,p);if(e=_.ja0[d.entityTypeMap.singleEntityType])C={},a=(C[e]={maximumDownloadQuality:(k=K)!=null?k:void 0},C);return V.yield(O8j(d,H),3);case 3:R=V.yieldResult;if(R!=="DOWNLOAD_STATE_USER_DELETED"){V.jumpTo(4);break}return V.yield(d.deleteVideo(H),4);case 4:return V.yield(g.queueOfflineAction(H,d.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
a),0)}})},EEv=function(d,H,K,c,p){return _.l(function(g){return g.nextAddress==1?g.yield(d.deleteVideo(H,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):g.yield(S71(d,H,K,c,p),0)})},yE0=function(d,H,K){var c,p;
return _.l(function(g){if(g.nextAddress==1)return g.yield(d.JSC$18221_playerApiPromise,2);c=g.yieldResult;p=_.kL(H,"mainVideoDownloadStateEntity");return g.yield(c.updateDownloadState(p,K),0)})},Z7T=function(d){var H=_.Kj().resolve(_.nE);
return _.l(function(K){if(K.nextAddress==1)return H.previousDownloadStateForVideo[d]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&H.previousDownloadStateForVideo[d]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?K.jumpTo(2):K.yield(H.resumeVideoDownload(d),2);if(K.nextAddress!=4)return K.yield(yE0(H,d,H.previousDownloadStateForVideo[d]),4);delete H.previousDownloadStateForVideo[d];_.VE(K)})},sdZ=function(d,H){var K;
return _.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$18221_playerApiPromise,2);K=c.yieldResult;return c.yield(K.queueOfflineAction(H,d.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},zA0=function(){var d=_.Kj().resolve(_.nE),H,K;
return _.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$18221_playerApiPromise,2);if(c.nextAddress!=3)return H=c.yieldResult,K={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},c.yield(H.queueOfflineAction("!*$_ALL_ENTITIES_!*$",d.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",K),3);var p=d.JSC$18221_commandHandler,g=p.resolveCommand,a=_.Vz("DELETING_ALL",void 0,"Downloads are being deleted");g.call(p,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.cW(a)}},
popupType:"TOAST"}});_.VE(c)})},b8G=function(d,H){var K,c,p,g,a,e;
return _.l(function(k){if(k.nextAddress==1)return k.yield(d.JSC$18221_persistentStorePromiseAccessor(),2);if(k.nextAddress!=3)return K=k.yieldResult,K?k.yield(KBj(K,_.WW,"downloadsPageViewConfigurationEntity"),3):(_.Jf(new _.m1("PES is undefined")),k.return());p=(c=k.yieldResult)!=null?c:{};e=(a=(g=p)==null?void 0:g.downloadsUpsellBannerVisibility)!=null?a:{};return e.visibleWithConnection?k.yield(H.refreshAllStaleEntities(0),0):k.jumpTo(0)})},NEq=function(d){var H,K;
return _.l(function(c){if(c.nextAddress==1)return c.yield(d.JSC$18221_prefStorage,2);H=c.yieldResult;return c.return((K=H)==null?void 0:K.get("sdois"))})},D$q=function(d){var H,K,c,p,g,a;
return _.l(function(e){if(e.nextAddress==1)return e.yield(d.JSC$18221_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3){H=e.yieldResult;if(!H)return _.Jf(new _.m1("PES is undefined")),e.return();K=_.kL("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return e.yield(KBj(H,K,"settingEntity"),3)}c=e.yieldResult;return e.return((a=(p=c)==null?void 0:(g=p.settingOptionValue)==null?void 0:g.boolValue)!=null?a:!1)})},faZ=function(d,H){var K,c,p,g;
return _.l(function(a){switch(a.nextAddress){case 1:return((K=H)==null?void 0:K.formatType)===void 0?a.return():a.yield(d.JSC$18221_prefStorage,2);case 2:c=a.yieldResult;if(c===void 0)return a.return();if(((p=H)==null?void 0:p.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return a.yield(c.set("lmqf",H.formatType),8);if(((g=H)==null?void 0:g.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){a.jumpTo(0);break}return a.yield(c.set("lmqf",H.formatType),6);case 6:return a.yield(c.set("lmqflst",
Math.floor((0,_.$G)())),0);case 8:return a.yield(c.remove("lmqflst"),0)}})},AES=function(d){var H,K;
return _.l(function(c){switch(c.nextAddress){case 1:return c.yield(d.JSC$18221_prefStorage,2);case 2:H=c.yieldResult;if(!H){c.jumpTo(3);break}return c.yield(H.get("lmqflst"),4);case 4:if(K=c.yieldResult,K!==void 0)return c.return(K);case 3:return c.return(0)}})},jI1=function(d){var H,K;
return _.l(function(c){switch(c.nextAddress){case 1:return c.yield(d.JSC$18221_prefStorage,2);case 2:H=c.yieldResult;if(H===void 0){c.jumpTo(3);break}return c.yield(H.get("lmqf"),4);case 4:if(K=c.yieldResult,K!==void 0)return c.return(K);case 3:return c.return("SD")}})},yuZ=function(d,H,K){var c,p,g,a,e,k,C,R;
_.l(function(V){switch(V.nextAddress){case 1:return V.yield(faZ(d,(c=H)==null?void 0:c.actionParams),2);case 2:p=H.playlistId;if(!p)return V.return();if(H.action==="ACTION_ADD")return((a=H.actionParams)==null?0:a.formatType)?V.yield(Y7S(d,p,H.actionParams.formatType,(R=H.actionParams)==null?void 0:R.settingsAction,K),0):V.yield(d.offlineWebClientEligibility,14);if(H.action==="ACTION_REMOVE_WITH_PROMPT"){var U=d.JSC$18221_commandHandler,L=U.resolveCommand,w=_.Fm("INNERTUBE_CLIENT_NAME");var W=w===
"WEB_REMIX"?_.Vz("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Vz("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var J=w==="WEB_REMIX"?[_.Vz("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];w=w==="WEB_REMIX"?_.Vz("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Vz("DELETE",void 0,"Delete");var F=_.Vz("CANCEL",void 0,"Cancel");W=D80(W,J,w,F,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:p});L.call(U,{openPopupAction:W});return V.return()}if(H.action===
"ACTION_REMOVE")return V.yield(sdZ(d,p),0);if(H.action!=="ACTION_SYNC"){V.jumpTo(0);break}return V.yield(d.JSC$18221_playerApiPromise,9);case 9:return g=V.yieldResult,V.yield(g.queueOfflineAction(p,d.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return e=V.yieldResult,V.yield(jI1(d),15);case 15:return k=V.yieldResult,V.yield(AES(d),16);case 16:C=V.yieldResult,H.onAddCommand&&d.JSC$18221_commandHandler.resolveCommand(H.onAddCommand,{form:{preferredFormatType:k,
offlineWebClientEligibility:e,lastOfflineQualitySettingsSavedMs:C.toString()}}),V.jumpTo(0)}})},SQj=function(d,H,K){var c,p,g,a,e,k,C,R,V,U,L,w,W,J;
_.l(function(F){switch(F.nextAddress){case 1:return F.yield(faZ(d,(c=H)==null?void 0:c.actionParams),2);case 2:p=H.videoId;if(!p)return F.return();if(H.action==="ACTION_REMOVE_WITH_PROMPT"){var Y=d.JSC$18221_commandHandler,A=Y.resolveCommand,E=_.Fm("INNERTUBE_CLIENT_NAME");var N=E==="WEB_REMIX"?_.Vz("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Vz("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var y=E==="WEB_REMIX"?[_.Vz("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];E=E==="WEB_REMIX"?_.Vz("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Vz("DELETE",void 0,"Delete");var v=_.Vz("CANCEL",void 0,"Cancel");N=D80(N,y,E,v,{signal:"DELETE_DOWNLOAD",targetId:p});A.call(Y,{openPopupAction:N});return F.return()}if(H.action==="ACTION_ADD")return((U=H.actionParams)==null?0:U.formatType)?F.yield(S71(d,p,H.actionParams.formatType,(J=H.actionParams)==null?void 0:J.settingsAction,K),0):F.yield(d.offlineWebClientEligibility,23);if(H.action==="ACTION_RETRY")return F.yield(jI1(d),
19);if(H.action==="ACTION_PAUSE")return F.yield(d.pauseVideoDownload(p),0);if(H.action==="ACTION_RESUME")return F.yield(d.resumeVideoDownload(p),0);if(H.action!=="ACTION_REMOVE"){F.jumpTo(0);break}return F.yield(O8j(d,p),13);case 13:return g=F.yieldResult,d.previousDownloadStateForVideo[p]=(a=g)!=null?a:"DOWNLOAD_STATE_UNKNOWN",F.yield(yE0(d,p,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(d.previousDownloadStateForVideo[p]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&d.previousDownloadStateForVideo[p]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){F.jumpTo(15);break}return F.yield(d.pauseVideoDownload(p),15);case 15:Y=_.Vz("DELETED_VIDEO",void 0,"Video deleted from downloads.");A=_.Vz("UNDO_ACTION",void 0,"Undo");N=_.Vz("CLOSE",void 0,"Close");e={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.cW(Y),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.cW(A),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:p}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:Y+" "+A}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:p}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:N}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};d.JSC$18221_commandHandler.resolveCommand(e);
F.jumpTo(0);break;case 19:k=F.yieldResult;k==="UNKNOWN_FORMAT_TYPE"&&(k="SD");C="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((R=H.actionParams)==null?0:R.formatType)k=H.actionParams.formatType,C=(V=H.actionParams)==null?void 0:V.settingsAction;return F.yield(EEv(d,p,k,C,K),20);case 20:return F.return();case 23:return L=F.yieldResult,F.yield(jI1(d),24);case 24:return w=F.yieldResult,F.yield(AES(d),25);case 25:W=F.yieldResult,H.onAddCommand&&d.JSC$18221_commandHandler.resolveCommand(H.onAddCommand,
{form:{preferredFormatType:w,offlineWebClientEligibility:L,lastOfflineQualitySettingsSavedMs:W.toString()}}),F.jumpTo(0)}})},vEO=function(d,H){var K,c,p,g,a,e,k;
return _.l(function(C){if(C.nextAddress==1)return C.yield(d.JSC$18221_persistentStorePromiseAccessor(),2);K=C.yieldResult;if(!K)return _.Jf(new _.m1("PES is undefined")),C.return();if((c=H)==null||!c.settingItemId)return C.return();p=H;g=p.settingItemId;a=p.boolValue;e=_.kL(g,"settingEntity");k={key:e,settingOptionValue:{boolValue:a}};return C.yield($$0(K,k),0)})},dO1=function(d,H){var K,c,p,g,a,e,k;
return _.l(function(C){switch(C.nextAddress){case 1:return C.yield(d.JSC$18221_prefStorage,2);case 2:return K=C.yieldResult,c=_.Lo(),C.yield(d.JSC$18221_persistentStorePromiseAccessor(),3);case 3:return p=C.yieldResult,K?p?C.yield(K.get("sdois"),4):(_.Jf(new _.m1("PES is undefined")),C.return()):(_.Jf(new _.m1("prefStorage is undefined")),C.return());case 4:g=C.yieldResult;e=(a=H)==null?void 0:a.boolValue;e===void 0||_.h("kevlar_set_sd_enabled_flag_killswitch")||_.Mo(0,197,!0);g===void 0&&e===void 0&&
(e=!1);if(e===void 0){C.jumpTo(0);break}return C.yield(K.set("sdois",e),6);case 6:return _.h("kevlar_set_sd_enabled_flag_killswitch")||(_.Mo(0,196,e),c.save()),k={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:e},C.yield(vEO(d,k),0)}})},HyT=function(d,H,K){var c,p,g,a,e;
return _.l(function(k){switch(k.nextAddress){case 1:return k.yield(NEq(d),2);case 2:return c=k.yieldResult,k.yield(dO1(d,K),3);case 3:return k.yield(NEq(d),4);case 4:return p=k.yieldResult,g=p!==c,k.yield(D$q(d),5);case 5:a=k.yieldResult&&!_.h("kevlar_modern_downloads_page");if((e=!p&&!a)||g)return k.yield(H.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);k.jumpTo(0)}})},Qdb=function(){var d=_.Kj().resolve(_.nE),
H;
_.l(function(K){switch(K.nextAddress){case 1:return K.yield(d.JSC$18221_playerApiPromise,2);case 2:H=K.yieldResult;if(!_.h("kevlar_force_refresh_smart_downloads")){K.jumpTo(3);break}return K.yield(H.refreshAllStaleEntities(0),4);case 4:return K.return();case 3:return K.yield(H.refreshAllStaleEntities(),5);case 5:return K.yield(HyT(d,H),6);case 6:if(_.h("enable_download_pep_for_premium_countries_web"))return K.yield(b8G(d,H),0);K.jumpTo(0)}})},N7b=function(d,H){var K,c;
_.l(function(p){switch(p.nextAddress){case 1:return p.yield(d.JSC$18221_playerApiPromise,2);case 2:K=p.yieldResult;switch((c=H)==null?void 0:c.settingItemId){case "SMART_DOWNLOADS_ENABLED":return p.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return p.jumpTo(4)}p.jumpTo(0);break;case 3:return p.yield(HyT(d,K,H),6);case 6:p.jumpTo(0);break;case 4:return p.yield(vEO(d,H),7);case 7:p.jumpTo(0)}})},$Ov=function(d,H){var K,c,p;
return _.l(function(g){if(g.nextAddress==1)return g.yield(d.JSC$18221_persistentStorePromiseAccessor(),2);if(g.nextAddress!=3){K=g.yieldResult;if(!K)return _.Jf(new _.m1("PES is undefined")),g.return(!1);if(!H)return g.return(!1);c=_.kL(H,"mainVideoEntity");return g.yield(KBj(K,c,"mainVideoEntity"),3)}p=g.yieldResult;return g.return(p!==void 0)})},fAt=function(d){var H=_.Kj().resolve(_.nE),K,c,p,g,a,e,k,C,R,V,U;
_.l(function(L){switch(L.nextAddress){case 1:return L.yield(H.JSC$18221_playerApiPromise,2);case 2:K=L.yieldResult;p=(c=d)==null?void 0:c.actions;if(!p)return L.return();g=_.q(p);a=g.next();case 3:if(a.done){L.jumpTo(0);break}e=a.value;C=k=void 0;if(!(((k=e)==null?0:k.entityKey)&&((C=e)==null?0:C.actionType))){L.jumpTo(4);break}R=_.a6(e.entityKey);V=R.entityId;U=R.entityType;return L.yield(K.queueOfflineAction(V,U,e.actionType),4);case 4:a=g.next(),L.jumpTo(3)}})},KpZ=function(d,H){var K,c,p,g,a;
return _.l(function(e){if(e.nextAddress==1)return e.yield(d.JSC$18221_prefStorage,2);if(e.nextAddress!=3)return(K=e.yieldResult)?e.yield(K.get("psi"),3):e.return();c=e.yieldResult;a={isPaused:H,lastSyncTimestamp:(g=(p=c)==null?void 0:p.lastSyncTimestamp)!=null?g:"0"};return e.yield(K.set("psi",a),0)})},vMb=function(d){var H=_.Kj().resolve(_.nE),K,c,p,g,a,e,k,C;
return _.l(function(R){switch(R.nextAddress){case 1:return R.yield(H.JSC$18221_playerApiPromise,2);case 2:K=R.yieldResult;p=((c=d)==null?void 0:c.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((e=d)==null?void 0:e.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":g="!*$_ALL_ENTITIES_!*$";a="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return R.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return R.jumpTo(4)}R.jumpTo(5);break;case 3:return R.yield(KpZ(H,p),6);case 6:R.jumpTo(5);break;case 4:return R.yield($Ov(H,(k=d)==null?void 0:k.videoId),7);case 7:R.yieldResult&&(g=(C=d)==null?void 0:C.videoId,a="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");R.jumpTo(5);break;case 5:if(g&&a)return R.yield(K.queueOfflineAction(g,"videoPlaybackPositionEntity",a),0);R.jumpTo(0)}})},cat=function(d,H){var K;
H!==1||((K=d.currentPersistentToast)==null?0:K.isOpened())?d.openToast():d.currentPersistentToast=void 0},pwZ=function(d,H){var K;
return(K=d.transitionTasksMap.get(H))!=null?K:[]},g8T=function(d,H){var K=[];
d.elementTasksMap.forEach(function(c){(c=c.get(H))&&K.push(c)});
return K},iyS=function(d,H,K,c,p){p=p===void 0?{}:p;
var g=H.defaultViewTransitionOptions;return Object.assign({},g,p,{beforeTransition:function(){c.forEach(function(C){C.beforeTransition()});
var a;(a=g.beforeTransition)==null||a.call(g);var e,k;(k=(e=p).beforeTransition)==null||k.call(e);K.forEach(function(C){C.beforeTransition()})},
afterTransition:function(){c.forEach(function(C){C.afterTransition()});
var a;(a=g.afterTransition)==null||a.call(g);var e,k;(k=(e=p).afterTransition)==null||k.call(e);K.forEach(function(C){C.afterTransition()})},
ignoredErrors:d.config.ignoredErrors})},GHt=function(d,H,K){d.transitionTasksMap.has(H)?d.transitionTasksMap.get(H).push(K):(d=new _.m1("Transition task registered for unknown transition type",H),_.z5(d))},o8g=function(d,H,K){if(d.transitionTasksMap.has(H)){var c=d.transitionTasksMap.get(H).filter(function(p){return p!==K});
d.transitionTasksMap.set(H,c)}},qig=function(d,H){var K=pwZ(d,H);
K=_.q(K);for(var c=K.next();!c.done;c=K.next())c=c.value,c.runOnce&&o8g(d,H,c);d.elementTasksMap.forEach(function(p,g){p.forEach(function(a,e){a.runOnce&&H===e&&(p.delete(e),p.size===0&&d.elementTasksMap.delete(g))})})},ad5=function(d,H,K){var c,p,g,a,e,k,C,R,V;
_.l(function(U){if(U.nextAddress==1){if(d.config.disableAllTransitions)return U.return(H());if((c=K)==null||!c.transitionType)return U.return(_.E11(H,Object.assign({},(p=K)==null?void 0:p.viewTransitionOptions,{ignoredErrors:d.config.ignoredErrors})));g=K;a=g.transitionType;e=g.viewTransitionOptions;k=d.config.transitionConfigs.get(a);if(!k)return U.return(H());C=pwZ(d,a);R=g8T(d,a);V=_.E11(H,iyS(d,k,C,R,e));return U.yield(V,2)}qig(d,a);_.VE(U)})},ldG=function(){var d,H,K,c;
return _.l(function(p){if(p.nextAddress==1)return d=navigator,(H=d.storage)!=null&&H.persisted?p.yield((K=d.storage)==null?void 0:K.persisted(),2):p.return("PERSISTED_STATE_NOT_SUPPORTED");c=p.yieldResult;return p.return(c?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},eJO=function(){var d,H,K,c;
return _.l(function(p){if(p.nextAddress==1)return d=navigator,(H=d.storage)!=null&&H.persist?p.yield((K=d.storage)==null?void 0:K.persist(),2):p.return("PERSISTED_STATE_NOT_SUPPORTED");c=p.yieldResult;return p.return(c?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},kHq=function(){var d,H;
return _.l(function(K){switch(K.nextAddress){case 1:return d="PERSISTED_STATE_NOT_SUPPORTED",_.e2(K,2),K.yield(ldG(),4);case 4:d=K.yieldResult;if(d!=="PERSISTED_STATE_NOT_GRANTED"){K.jumpTo(5);break}return K.yield(eJO(),6);case 6:d=K.yieldResult;case 5:_.Em(K,3);break;case 2:H=_.RV(K),H instanceof Error&&_.z5(H);case 3:return _.Wd("persistentStorageStateChecked",{persistedState:d}),K.return(d)}})},xOZ=function(d,H){var K=[],c=!1;
H=_.q(H);for(var p=H.next();!p.done;p=H.next()){p=d.moduleRegistry[p.value];var g=void 0,a=void 0;((g=p)==null?0:g.isFetching)&&((a=p)==null?0:a.resolver)?(K.push(p.resolver.promise),c=!0):(p=new _.ki,p.resolve(void 0),K.push(p.promise))}return c?Promise.all(K):void 0},n80=function(d,H,K){if(d.isAnyTransitionEnabled){var c={beforeTransition:function(){K(!0);
H.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){H.style.viewTransitionName&&(H.style.viewTransitionName="",K(!1))}};
GHt(d.viewTransitionCoordinator,"slide",c);GHt(d.viewTransitionCoordinator,"lockup-to-watch",c);GHt(d.viewTransitionCoordinator,"watch-next-appears",c);GHt(d.viewTransitionCoordinator,"learning-journey",c)}},CEj=function(d,H){d.isBrowseTransitionEnabled?ad5(d.viewTransitionCoordinator,H,{transitionType:"slide"}):(H(),Promise.resolve())},RJZ=function(d,H){d.isLockupToWatchTransitionEnabled?ad5(d.viewTransitionCoordinator,H,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){d.registeredLockupThumbnail=void 0;d.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(H(),Promise.resolve())},VfZ=function(d,H){d.isLockupToWatchTransitionEnabled?ad5(d.viewTransitionCoordinator,H,{transitionType:"watch-next-appears"}):(H(),Promise.resolve())},UOZ=function(d,H){d.isLearningJourneyTransitionEnabled?ad5(d.viewTransitionCoordinator,H,{transitionType:"learning-journey"}):(H(),Promise.resolve())},hJt=function(d,H,K){if(d.isInitialized()){var c=
UK(K),p=c==="watch";
c=c==="shorts";var g=UK(H)==="watch";if(p)g||(d.backgroundPageData=H),d.watchPipMode&&g||d.deactivate(K.endpoint);else if(c){if(UK(H)!=="shorts"){var a;(a=d.getPlayerElement())==null||a.pause()}}else g&&!d.watchPipMode&&(AwT(H,K)?(d.watchWhileMode&&_.yA5(d,!1),_.QrO(d,H)):d.isMiniplayerActive()&&d.watchWhileMode&&d.deactivate());g&&_.NsG(d);d.shortsPipMode&&!c&&(window.focus(),d.deactivate());if(d.pictureInPictureEnabled())if(c&&d.shortsPipEnabled||p&&d.watchPipEnabled)_.ku1(d.handleMediaSessionPipActivation);
else if(!d.isMiniplayerActive()&&(d.shortsPipEnabled||d.watchPipEnabled)&&window.documentPictureInPicture&&_.IE()&&_.kLE("Chromium")>=120){d=_.ex1().mediaSession;try{d.setActionHandler("enterpictureinpicture",null)}catch(e){}}}},Lp1=function(d,H){var K,c;
_.l(function(p){if(p.nextAddress==1){if(!d||!d.navigationEndpoint)return p.return();_.UT().lockupActivation=!0;var g;H?g=_.AF(_.Vz("QUEUE",void 0,"Queue")):g=d.longBylineText;c=(K=g)&&d.title?{miniplayerTitle:d.title,miniplayerSubtitle:K,playlistData:null}:void 0;return p.yield(_.nIS(_.Kj().resolve(_.Fb),d.navigationEndpoint,!0,c),2)}_.UT().userActivation=!0;_.VE(p)})},vft=function(d,H){var K,c,p,g,a,e;
_.l(function(k){if(k.nextAddress==1){K=_.M(H,_.EJ6);if(!K||!K.listId)return k.return();d.index=K.index||d.index||0;c=d.response&&d.response.playingVideoId||void 0;return k.yield(_.uYM(d.JSC$12846_playlistNetworkManager,K.listId,d.index,c),2)}p=k.yieldResult;if(!p)return k.return();g=p.playlistId;a=p.playlistPanelRenderer;!d.queueProxy&&g&&a&&g.startsWith("TLPQ")&&(d.queueProxy=new _.ZE(d.JSC$12846_playlistNetworkManager,g,d.setPlaylistData.bind(d),d.clearQueue.bind(d),_.l44(a),d.storage));if(K.openMiniplayer&&
(e=_.e3h(a))&&!d.pageManager.isOnWatch()){var C=e,R=K.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";d.isMiniplayerActive()?d.openToast(C):Lp1(C,R)}d.setPlaylistData(g,a,p.autoplayRenderer);_.VE(k)})},fVj=function(d,H){var K=_.yq();
K.index===void 0&&(K.index=0);K.temporaryItems.push.apply(K.temporaryItems,_.ru(d));if((H.videoId||H.videoIds)&&K.index!==void 0&&H.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!K.queueProxy){var c=[];if(K.response){var p=_.Kj().resolve(_.Fb).isMiniplayerActive();if(K.response.playlistPanelRenderer&&K.response.playlistId&&!K.response.playlistId.startsWith("TLPQ")){if(K.pageManager.isOnWatch()||p)c=_.l44(K.response.playlistPanelRenderer)}else K.response.playingVideoId&&!H.openMiniplayer?c.push(K.response.playingVideoId):
p&&K.response.playingVideoId&&H.openMiniplayer&&c.push(K.response.playingVideoId)}K.queueProxy=new _.ZE(K.JSC$12846_playlistNetworkManager,"",K.setPlaylistData.bind(K),K.clearQueue.bind(K),c,K.storage);K.queueProxy.JSC$12792_setCurrentIndex(K.index)}K.queueProxy.addVideos(H.videoIds||[H.videoId],H)}gEU(K,d);K.response&&_.bd(K,_.Nw(K,K.response.autoplayRenderer));K.pageManager.isOnWatch()?K.isMiniplayerActive()&&K.openToast(d[0]):(d=d[0],H=H.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",K.isMiniplayerActive()?
K.openToast(d):Lp1(d,H))},MfS=function(d){var H=_.SS(d);
if(H=="object"||H=="array"){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);H=H=="array"?[]:{};for(var K in d)H[K]=MfS(d[K]);return H}return d},zl=function(d,H){return _.q3F(_.n1(d,H,void 0,_.xV))},XC=function(d,H){return _.vB(_.n1(d,H,void 0,_.xV))},JG=function(d,H){return _.BAl(_.n1(d,H,void 0,_.xV))},sN=function(d,H){return _.n1(d,H,void 0,_.xV,_.G3E)},mOt=_.Kc(function(d,
H,K){if(d.nextWireType_!==0)return!1;
_.ce(H,K,_.Fh(d.decoder_,_.gdF));return!0},_.GC,_.tS),wwb=_.Kc(function(d,H,K,c){if(d.nextWireType_!==0)return!1;
_.Uu(H,K,c,_.Fh(d.decoder_,_.gdF));return!0},_.GC,_.tS),PEt=_.Kc(function(d,H,K){if(d.nextWireType_!==1)return!1;
var c=d.decoder_;d=_.TZ(c);c=_.TZ(c);d=_.T3(d,c);_.ce(H,K,d);return!0},_.Iw1,_.WkF),ubZ=_.Kc(function(d,H,K){if(d.nextWireType_!==5)return!1;
_.ce(H,K,_.TZ(d.decoder_));return!0},function(d,H,K){H=_.e6f(H);
H!=null&&(_.pc(d,K,5),_.i_(d.encoder_,H))},_.rei),Id0=_.Kc(function(d,H,K){if(d.nextWireType_!==0)return!1;
d=_.qzM(d.decoder_);_.ce(H,K,d===!1?void 0:d);return!0},_.rL5,_.wai),raT=_.Kc(function(d,H,K){if(d.nextWireType_!==2)return!1;
d=_.noh(d);_.ce(H,K,d===""?void 0:d);return!0},_.BSD,_.P75),Wpg=_.Kc(function(d,H,K){if(d.nextWireType_!==2)return!1;
d=_.C7X(d);_.ce(H,K,d===_.wA()?void 0:d);return!0},_.Xe4,_.Xai),B5b=_.VEY(function(d,H,K){if(d.nextWireType_!==0&&d.nextWireType_!==2)return!1;
H=_.I5Y(H,H[_.pX]|0,K);d.nextWireType_==2?_.Rgl(d,FRS,H):H.push(_.Zr(d.decoder_));return!0},function(d,H,K){H=_.R_X(_.vB,H,!0);
if(H!=null&&H.length){K=_.Otf(d,K);for(var c=0;c<H.length;c++)_.wel(d.encoder_,H[c]);_.SUE(d,K)}},_.JeD),zJG=_.Kc(function(d,H,K){if(d.nextWireType_!==0)return!1;
d=_.Zr(d.decoder_);_.ce(H,K,d===0?void 0:d);return!0},_.JL5,_.JeD),XwT=_.Kc(function(d,H,K,c){if(d.nextWireType_!==0)return!1;
_.Uu(H,K,c,_.Zr(d.decoder_));return!0},_.JL5,_.JeD),JaZ=function(d){return d.previousElementSibling!==void 0?d.previousElementSibling:_.yNS(d.previousSibling,!1)},soG=function(d,H){var K=[];
for(H=H||0;H<d.length;H+=2)_.JZA(d[H],d[H+1],K);return K.join("&")},FpO=function(d,H){var K=arguments.length==2?soG(arguments[1],0):soG(arguments,1);
return _.Xv6(d,K)},Q6b=_.aK(_.z_),Zyb=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Zyb,_.He);Zyb.prototype.getTypeName=function(){return _.IB(this,1).split("/").pop()};
Zyb.prototype.getValue=function(){var d=_.n1(this,2);if(Array.isArray(d)||d instanceof _.He)throw Error("W");return _.V8(this,2)};
var uL0=function(){var d=_.qv();this.JSC$9888_streamzService=d;d.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.pA("channel_type"))};
uL0.prototype.increment=function(d){this.JSC$9888_streamzService.JSC$9758_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",d)};
var I81=function(){var d=_.qv();this.JSC$9891_streamzService=d;d.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.pA("channel_type"))};
I81.prototype.increment=function(d){this.JSC$9891_streamzService.JSC$9758_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",d)};
var WZj=function(){var d=_.qv();this.JSC$9894_streamzService=d;d.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.pA("channel_type"))};
WZj.prototype.increment=function(d){this.JSC$9894_streamzService.JSC$9758_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",d)};
var rc0=function(){var d=_.qv();this.JSC$9897_streamzService=d;d.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
rc0.prototype.increment=function(){this.JSC$9897_streamzService.JSC$9758_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var Bn0=function(){var d=_.qv();this.JSC$9900_streamzService=d;d.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.pA("channel_type"),_.pA("error_type"))};
Bn0.prototype.increment=function(d,H){this.JSC$9900_streamzService.JSC$9758_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",d,H)};
var zR0=function(){var d=_.qv();this.JSC$9903_streamzService=d;d.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
zR0.prototype.increment=function(){this.JSC$9903_streamzService.JSC$9758_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var X5O=function(){var d=_.qv();this.JSC$9906_streamzService=d;d.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
X5O.prototype.increment=function(){this.JSC$9906_streamzService.JSC$9758_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var Rob=function(){var d=_.qv();this.JSC$9912_streamzService=d;d.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
Rob.prototype.increment=function(){this.JSC$9912_streamzService.JSC$9758_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var T51=function(d){return d.getCount&&typeof d.getCount=="function"?d.getCount():_.O5(d)||typeof d==="string"?d.length:_.rs.getCount(d)},Qoj=function(d,H){if(typeof d.every=="function")return d.every(H,void 0);
if(_.O5(d)||typeof d==="string")return Array.prototype.every.call(d,H,void 0);for(var K=_.sH7(d),c=_.NW(d),p=c.length,g=0;g<p;g++)if(!H.call(void 0,c[g],K&&K[g],d))return!1;return!0},tfS=function(d,H,K,c){var p=new _.jM(null);
d&&_.DS(p,d);H&&_.fq(p,H);K&&_.AH(p,K);c&&_.jo(p,c);return p},Yi1=function(){var d=_.ZO&&_.xY(_.fOd,10)>=0,H;
if(H=_.mKX)H=_.xY(_.DQ6,10)>=0;var K=_.lv&&_.xY(_.fOd,85)>=0;return _.GZ||d||H||K},Oyv=function(d){var H=_.kG7(d);
return H&&Yi1()?-d.scrollLeft:H&&_.s8(d,"overflowX")!="visible"?d.scrollWidth-d.clientWidth-d.scrollLeft:d.scrollLeft},SiO=function(d,H){H=Math.max(H,0);
_.kG7(d)?Yi1()?d.scrollLeft=-H:d.scrollLeft=d.scrollWidth-H-d.clientWidth:d.scrollLeft=H},acZ=0,nKS=!1;
LR.prototype.set=function(d){this.relativeTimeStart_=d};
LR.prototype.reset=function(){this.set(_.$V())};
LR.prototype.get=function(){return this.relativeTimeStart_};
var E8G=null,ya1=function(){E8G||(E8G=new LR)},byv=function(){E8G||(E8G=new LR)};
_.K1(byv,ya1);_.G=RQT.prototype;_.G.JSC$11287_buffer_="";_.G.set=function(d){this.JSC$11287_buffer_=""+d};
_.G.append=function(d,H,K){this.JSC$11287_buffer_+=String(d);if(H!=null)for(var c=1;c<arguments.length;c++)this.JSC$11287_buffer_+=arguments[c];return this};
_.G.clear=function(){this.JSC$11287_buffer_=""};
_.G.getLength=function(){return this.JSC$11287_buffer_.length};
_.G.toString=function(){return this.JSC$11287_buffer_};
var N5Z=function(){var d={type:"unit",style:"narrow"};this.listType_=d&&d.type?d.type:"conjunction";this.listStyle_=d&&d.style?d.style:"long";this.listSymbols_=Oft;d=0;switch(this.listStyle_){case "short":d=1;break;case "narrow":d=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[d];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[d];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[d];this.listEndPattern_=
this.listSymbols_.AND_END[d];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[d];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[d];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[d];this.listEndPattern_=this.listSymbols_.OR_END[d];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[d],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[d],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[d],this.listEndPattern_=this.listSymbols_.UNIT_END[d]}};
N5Z.prototype.format=function(d){return DOS(this,d)};
var DOS=function(d,H){var K=H.length;switch(K){case 0:return"";case 1:return String(H[0]);case 2:return d.listTwoPattern_.replace("{0}",String(H[0])).replace("{1}",String(H[1]))}for(var c=d.listStartPattern_.replace("{0}",String(H[0])).replace("{1}",String(H[1])),p=2;p<K-1;++p)c=d.listMiddlePattern_.replace("{0}",c).replace("{1}",String(H[p]));return d.listEndPattern_.replace("{0}",c).replace("{1}",String(H[K-1]))},JPj=function(){var d={style:1};
this.style_=(d==null?void 0:d.style)||0;this.durationSymbols_=_.dEd||_.Q13},fdG=function(d,H){switch(H){default:case "years":return d.durationSymbols_.YEAR;
case "months":return d.durationSymbols_.MONTH;case "weeks":return d.durationSymbols_.WEEK;case "days":return d.durationSymbols_.DAY;case "hours":return d.durationSymbols_.HOUR;case "minutes":return d.durationSymbols_.MINUTE;case "seconds":return d.durationSymbols_.SECOND}},FC=function(d,H,K){a:{K=fdG(d,K);
switch(d.style_){case 1:if(K.LONG!=void 0){d=K.LONG;break a}case 2:if(K.NARROW!=void 0){d=K.NARROW;break a}default:d=K.SHORT;break a}d=void 0}return d?(new _.G6d("{DURATION_VALUE,plural,"+d+"}")).format({DURATION_VALUE:H}):""};
JPj.prototype.format=function(d){var H=[],K=d.years,c=d.months,p=d.weeks,g=d.days,a=d.hours,e=d.minutes;d=d.seconds;K!=null&&H.push(FC(this,K,"years"));c!=null&&H.push(FC(this,c,"months"));p!=null&&H.push(FC(this,p,"weeks"));g!=null&&H.push(FC(this,g,"days"));a!=null&&H.push(FC(this,a,"hours"));e!=null&&H.push(FC(this,e,"minutes"));d!=null&&H.push(FC(this,d,"seconds"));return(new N5Z).format(H)};
var Aa0=!1,w3S=function(d){_.dh.call(this,d.message||d.description||d.name);this.isMissing=d instanceof Md;this.isTimeout=d instanceof _.ac&&d.errorCode=="net.timeout";this.isCanceled=d instanceof _.T_};
_.m(w3S,_.dh);w3S.prototype.name="BiscottiError";var Md=function(){_.dh.call(this,"Biscotti ID is missing from server")};
_.m(Md,_.dh);Md.prototype.name="BiscottiMissingError";var mT=null,OKt=function(){try{var d=_.OS("yt.ads.biscotti.getId_");return d?d():cPG()}catch(H){return _.W1(H)}},X3b,joZ=function(d,H){return _.iZ({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:d,command:H}})},v8v=function(d){return _.iZ({type:"SET_GUIDE_IS_EXPANDED",
payload:d})},dJT=function(d){return _.iZ({type:"SET_ONLINE_STATUS",
payload:d})},H1Z=function(d,H){return _.iZ({type:"SET_TRANSCRIPTION_STATE",
payload:{high:d,low:H}})},$JZ=function(d){return _.iZ({type:"SET_OVERLAY_STATE",
payload:d})},Ktg=0,cS0=function(d,H,K){var c=this;
this.priority=H;this.delay=K;this.jobId=0;this.completionCallback=_.nV;this.wrappedJob=function(){d();c.completionCallback()};
this.id=++Ktg};
cS0.prototype.enqueue=function(d){this.completionCallback=d;this.jobId=_.Xp.addJob(this.wrappedJob,this.priority,this.delay)};
var Zy=function(){_.dp.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.m(Zy,_.dp);Zy.prototype.addJob=function(d,H,K){d=new cS0(d,H,K);this.taskIdToTask.set(d.id,d);this.isActive?pG5(this,d):this.suspendedTasks.add(d);return d.id};
var pG5=function(d,H){d.scheduledTasks.add(H);H.enqueue(function(){d.scheduledTasks.delete(H)})};
Zy.prototype.cancelJob=function(d){(d=this.taskIdToTask.get(d))&&(this.scheduledTasks.delete(d)?_.Xp.cancelJob(d.jobId):this.suspendedTasks.delete(d))};
Zy.prototype.pause=function(){var d=this;this.isActive=!1;this.scheduledTasks.forEach(function(H){_.Xp.cancelJob(H.jobId);d.suspendedTasks.add(H)});
this.scheduledTasks.clear()};
Zy.prototype.start=function(){var d=this;this.isActive=!0;this.suspendedTasks.forEach(function(H){pG5(d,H)});
this.suspendedTasks.clear()};
Zy.prototype.reset=function(){this.scheduledTasks.forEach(function(d){_.Xp.cancelJob(d.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var Tl=function(d,H){this.JSC$12975_networkService_=d;this.pageRequestPromise=H};
Tl.prototype.fetchData=function(d){gVO(this,this.JSC$12975_networkService_.fetchData(d))};
Tl.prototype.postData=function(d,H){gVO(this,this.JSC$12975_networkService_.postData(d,H))};
Tl.prototype.requestDataForServiceEndpoint=function(d,H){gVO(this,this.JSC$12975_networkService_.requestDataForServiceEndpoint(d,H))};
var gVO=function(d,H){H.then(d.pageRequestPromise.onSuccess,d.pageRequestPromise.onFailure,d.pageRequestPromise)};
Tl.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var Qk=function(d){this.buildNetworkRequest_=d;this.pendingRequests_=new Set};
Qk.prototype.reset=function(){this.pendingRequests_.forEach(function(d){d.cancel()});
this.pendingRequests_.clear()};
Qk.prototype.fetchData=function(d){var H=i1Z(this);H.fetchData(d);return H.pageRequestPromise};
Qk.prototype.postData=function(d,H){var K=i1Z(this);K.postData(d,H);return K.pageRequestPromise};
Qk.prototype.requestDataForServiceEndpoint=function(d,H){var K=i1Z(this);K.requestDataForServiceEndpoint(d,H);return K.pageRequestPromise};
var i1Z=function(d){var H=d.buildNetworkRequest_();d.pendingRequests_.add(H);var K=function(){d.pendingRequests_.delete(H)};
H.pageRequestPromise.then(K,K);return H},GZg=function(d){var H=new Zy;
this.JSC$12982_networkService_=d;this.JSC$12982_taskManager_=H;this.JSC$12982_networkManager_=new Qk(this.networkRequestFactory_.bind(this))};
_.G=GZg.prototype;_.G.networkRequestFactory_=function(){return new Tl(this.JSC$12982_networkService_,new _.i9(this.JSC$12982_taskManager_))};
_.G.reset=function(){this.JSC$12982_taskManager_.reset();this.JSC$12982_networkManager_.reset()};
_.G.start=function(){this.JSC$12982_taskManager_.start()};
_.G.pause=function(){this.JSC$12982_taskManager_.pause()};
_.G.getTaskManager=function(){return this.JSC$12982_taskManager_};
_.G.getNetworkManager=function(){return this.JSC$12982_networkManager_};
var Qu1=null,OOt=[],w_=0,uu=0,P0=null,oV0=!1,Ic=null,EKZ=void 0,qu1=function(){var d=(0,_.Yd3)();d&&E6Z(d,d.mechanism.__iterator__(!0))},W0=function(d){this.token=d};
W0.getInstance=function(){var d;return _.l(function(H){if(H.nextAddress==1)return H.yield(_.dF(),2);d=H.yieldResult;if(!d)return H.return();W0.instance||(W0.instance=new W0(d));return H.return(W0.instance)})};
var AP0=function(d){var H;return _.l(function(K){if(K.nextAddress==1)return K.yield(NrO(d.token),2);H=K.yieldResult;return K.return(H.clear("resource-manifest-assets"))})},r_=function(d){this.token=d};
r_.getInstance=function(){var d;return _.l(function(H){if(H.nextAddress==1)return H.yield(_.dF(),2);d=H.yieldResult;if(!d)return H.return();r_.instance||(r_.instance=new r_(d));return H.return(r_.instance)})};
var DCO=function(d){var H;return _.l(function(K){if(K.nextAddress==1)return K.yield(NrO(d.token),2);H=K.yieldResult;return K.yield(H.clear("auth"),0)})},C5q=!1,arg=function(d){_.dh.call(this,d)};
_.m(arg,_.VmX);var lr0="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");fig()&&lr0.push("details:not(:has(summary))");var jFj=lr0.join(",");var VOq=function(){var d=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return d?parseInt(d[1],10):0},efZ=function(d){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+d)!=-1||document.currentScript.src.indexOf("&"+d)!=-1)},kZ1=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},mr1=function(d){d.length?xJG(d.shift(),function(){mr1(d)}):hZq()},Psj=function(d){return"chrome-extension://"+d+"/cast_sender.js"},xJG=function(d,
H,K){var c=document.createElement("script");
c.onerror=H;K&&(c.onload=K);_.fc(c,_.mc(d));(document.head||document.documentElement).appendChild(c)},nVq=function(){var d=VOq(),H=[];
if(d>1){var K=d-1;H.push("//www.gstatic.com/eureka/clank/"+d+"/cast_sender.js");H.push("//www.gstatic.com/eureka/clank/"+K+"/cast_sender.js")}return H},hZq=function(){var d=kZ1();
d&&d(!1,"No cast extension found")},MOS=function(){if(Cvg){var d=2,H=kZ1(),K=function(){d--;
d==0&&H&&H(!0)};
window.__onGCastApiAvailable=K;xJG("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",hZq,K)}},UrU=function(){MOS();
var d=nVq();d.push("//www.gstatic.com/eureka/clank/cast_sender.js");mr1(d)},LJj=function(){MOS();
var d=nVq();d.push.apply(d,_.ru(wjj.map(Psj)));d.push("//www.gstatic.com/eureka/clank/cast_sender.js");mr1(d)},Cvg=efZ("loadCastFramework")||efZ("loadCastApplicationFramework"),wjj=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var RfZ=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(RfZ,_.He);var V31=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(V31,_.He);var UJS=function(){var d=new V31;return _.JS(d,1,3)};var tG=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(tG,_.He);var URv=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(URv,_.He);var hfZ=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(hfZ,_.He);hfZ.prototype.getToken=function(){return _.IB(this,1)};
hfZ.prototype.setToken=function(d){return _.Sn(this,1,d)};
var Rkv=function(d){return _.ST(d,3,_.k0,_.Hz())},VGO=function(d){return _.ST(d,6,_.k0,_.Hz())};var Yy=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Yy,_.He);Yy.prototype.getToken=function(){return _.gF(this,hfZ,2)};
Yy.prototype.setToken=function(d){return _.eE(this,2,d)};
Yy.prototype.getName=function(){return _.IB(this,6)};
var LtU=_.aK(Yy);var M3g=function(d,H,K){this.requestMessage=d;this.methodDescriptor=H;this.metadata=K};
M3g.prototype.getMetadata=function(){return this.metadata};var mJG=function(d,H){H=H===void 0?{}:H;this.responseMessage=d;this.metadata=H;this.status=null};
mJG.prototype.getMetadata=function(){return this.metadata};
mJG.prototype.getStatus=function(){return this.status};var ON=function(d,H,K,c,p){this.name=d;this.methodType="unary";this.requestType=H;this.responseType=K;this.requestSerializeFn=c;this.responseDeserializeFn=p},wG5=function(d,H,K){K=K===void 0?{}:K;
return new M3g(H,d,K)};
ON.prototype.getName=function(){return this.name};var SN=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(SN,_.He);SN.prototype.getHeader=function(){return _.gF(this,tG,1)};
SN.prototype.setHeader=function(d){return _.eE(this,1,d)};
SN.prototype.hasHeader=function(){return _.C1(this,tG,1)};var Pvj=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Pvj,_.He);var uhO=new ON("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",SN,Pvj,function(d){return d.serialize()},_.aK(Pvj));var EN=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(EN,_.He);EN.prototype.getHeader=function(){return _.gF(this,tG,1)};
EN.prototype.setHeader=function(d){return _.eE(this,1,d)};
EN.prototype.hasHeader=function(){return _.C1(this,tG,1)};var IrG=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(IrG,_.He);var rSO=new ON("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",EN,IrG,function(d){return d.serialize()},_.aK(IrG));var yk=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(yk,_.He);yk.prototype.getHeader=function(){return _.gF(this,tG,1)};
yk.prototype.setHeader=function(d){return _.eE(this,1,d)};
yk.prototype.hasHeader=function(){return _.C1(this,tG,1)};var Wtq=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Wtq,_.He);Wtq.prototype.getLink=function(){return _.gF(this,Yy,1)};var BKZ=new ON("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",yk,Wtq,function(d){return d.serialize()},_.aK(Wtq));var bx=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(bx,_.He);bx.prototype.getHeader=function(){return _.gF(this,tG,1)};
bx.prototype.setHeader=function(d){return _.eE(this,1,d)};
bx.prototype.hasHeader=function(){return _.C1(this,tG,1)};var zfZ=new ON("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",bx,Yy,function(d){return d.serialize()},LtU);var XGT=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(XGT,_.He);var JSq=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(JSq,_.He);JSq.prototype.getUrl=function(){return _.IB(this,2)};
JSq.prototype.setUrl=function(d){return _.Sn(this,2,d)};var sBg=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(sBg,_.He);var FtO=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(FtO,_.He);var Z11=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Z11,_.He);var B01=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(B01,_.He);var WES=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(WES,_.He);var TKU=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(TKU,_.He);var T0T=_.aK(TKU);var QBq=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(QBq,_.He);var t3Z=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(t3Z,_.He);_.G=t3Z.prototype;_.G.getHeader=function(){return _.gF(this,tG,1)};
_.G.setHeader=function(d){return _.eE(this,1,d)};
_.G.hasHeader=function(){return _.C1(this,tG,1)};
_.G.getCompletionUrl=function(){return _.IB(this,6)};
_.G.getDeviceId=function(){return _.IB(this,11)};var YuO=new ON("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",t3Z,TKU,function(d){return d.serialize()},T0T);var O1Z=new Set(["SAPISIDHASH","APISIDHASH"]);var Sug=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Sug,_.He);Sug.prototype.getMessage=function(){return _.IB(this,2)};
var EVG=_.aK(Sug);var Nn=function(d,H){this.xhrNodeReadableStream_=d.nodeReadableStream;this.grpcResponseDeserializeFn_=H;this.JSC$19186_xhr_=d.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19186_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&ySO(this)},jBZ=function(d,H){var K=new b1G;
_.Iq(d.JSC$19186_xhr_,"complete",function(){if(d.JSC$19186_xhr_.isSuccess()){var c=d.JSC$19186_xhr_.getResponseText();var p;if(p=H)p=d.JSC$19186_xhr_,p.JSC$9767_xhr_&&p.isComplete()?(p=p.JSC$9767_xhr_.getResponseHeader("Content-Type"),p=p===null?void 0:p):p=void 0,p=p==="text/plain";if(p){if(!atob)throw Error("Qj");c=atob(c)}try{var g=d.grpcResponseDeserializeFn_(c)}catch(e){Dy(d,pWj(new _.mU(13,"Error when deserializing response data; error: "+e+(", response: "+c)),K));return}c=_.DMh(d.JSC$19186_xhr_.getStatus());
NKg(d,DJU(d));c==0?frZ(d,g):Dy(d,pWj(new _.mU(c,"Xhr succeeded but the status code is not 200"),K))}else{c=d.JSC$19186_xhr_.getResponseText();g=DJU(d);if(c){var a=ASg(d,c);c=a.code;p=a.details;a=a.metadata}else c=2,p="Rpc failed due to xhr error. uri: "+String(d.JSC$19186_xhr_.JSC$9767_lastUri_)+", error code: "+d.JSC$19186_xhr_.JSC$9767_lastErrorCode_+", error: "+d.JSC$19186_xhr_.getLastError(),a=g;NKg(d,g);Dy(d,pWj(new _.mU(c,p,a),K))}})},ySO=function(d){d.xhrNodeReadableStream_.on("data",function(H){if("1"in
H){var K=H["1"];
try{var c=d.grpcResponseDeserializeFn_(K)}catch(p){Dy(d,new _.mU(13,"Error when deserializing response data; error: "+p+(", response: "+K)))}c&&frZ(d,c)}if("2"in H)for(H=ASg(d,H["2"]),K=0;K<d.onStatusCallbacks_.length;K++)d.onStatusCallbacks_[K](H)});
d.xhrNodeReadableStream_.on("end",function(){NKg(d,DJU(d));for(var H=0;H<d.onEndCallbacks_.length;H++)d.onEndCallbacks_[H]()});
d.xhrNodeReadableStream_.on("error",function(){if(d.JSC$19186_onErrorCallbacks_.length!=0){var H=d.JSC$19186_xhr_.JSC$9767_lastErrorCode_;H!==0||d.JSC$19186_xhr_.isSuccess()||(H=6);var K=-1;switch(H){case 0:var c=2;break;case 7:c=10;break;case 8:c=4;break;case 6:K=d.JSC$19186_xhr_.getStatus();c=_.DMh(K);break;default:c=14}NKg(d,DJU(d));H=_.koA(H)+", error: "+d.JSC$19186_xhr_.getLastError();K!=-1&&(H+=", http status code: "+K);Dy(d,new _.mU(c,H))}})},DJU=function(d){var H={},K=QDb(d.JSC$19186_xhr_);
Object.keys(K).forEach(function(c){H[c]=K[c]});
return H},ASg=function(d,H){var K=2,c={};
try{var p=EVG(H);K=_.$1(p,1);var g=p.getMessage();_.dk(p,Zyb,3,_.Hz()).length&&(c["grpc-web-status-details-bin"]=H)}catch(a){d.JSC$19186_xhr_&&d.JSC$19186_xhr_.getStatus()===404?(K=5,g="Not Found: "+String(d.JSC$19186_xhr_.JSC$9767_lastUri_)):(K=14,g="Unable to parse RpcStatus: "+a)}return{code:K,details:g,metadata:c}};
Nn.prototype.on=function(d,H){d=="data"?this.onDataCallbacks_.push(H):d=="metadata"?this.onMetadataCallbacks_.push(H):d=="status"?this.onStatusCallbacks_.push(H):d=="end"?this.onEndCallbacks_.push(H):d=="error"&&this.JSC$19186_onErrorCallbacks_.push(H);return this};
var fx=function(d,H){H=d.indexOf(H);H>-1&&d.splice(H,1)};
Nn.prototype.removeListener=function(d,H){d=="data"?fx(this.onDataCallbacks_,H):d=="metadata"?fx(this.onMetadataCallbacks_,H):d=="status"?fx(this.onStatusCallbacks_,H):d=="end"?fx(this.onEndCallbacks_,H):d=="error"&&fx(this.JSC$19186_onErrorCallbacks_,H);return this};
Nn.prototype.cancel=function(){this.JSC$19186_xhr_.abort()};
var frZ=function(d,H){for(var K=0;K<d.onDataCallbacks_.length;K++)d.onDataCallbacks_[K](H)},NKg=function(d,H){for(var K=0;K<d.onMetadataCallbacks_.length;K++)d.onMetadataCallbacks_[K](H)},Dy=function(d,H){for(var K=0;K<d.JSC$19186_onErrorCallbacks_.length;K++)d.JSC$19186_onErrorCallbacks_[K](H)};
Nn.prototype.cancel=Nn.prototype.cancel;Nn.prototype.removeListener=Nn.prototype.removeListener;Nn.prototype.on=Nn.prototype.on;var b1G=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"};
_.m(b1G,Error);var AG=function(d){this.JSC$19195_worker_=d.worker||null;this.JSC$19195_streamBinaryChunks_=d.streamBinaryChunks||!1;this.JSC$19195_credentialsMode_=void 0};
_.K1(AG,_.AmF);AG.prototype.createInstance=function(){var d=new jN(this.JSC$19195_worker_,this.JSC$19195_streamBinaryChunks_);this.JSC$19195_credentialsMode_&&d.setCredentialsMode(this.JSC$19195_credentialsMode_);return d};
AG.prototype.setCredentialsMode=function(d){this.JSC$19195_credentialsMode_=d};
var jN=function(d,H){_.Rj.call(this);this.JSC$19199_worker_=d;this.JSC$19199_streamBinaryChunks_=H;this.JSC$19199_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19199_responseHeaders_=null;this.JSC$19199_method_="GET";this.JSC$19199_url_="";this.inProgress_=!1;this.JSC$19199_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.K1(jN,_.Rj);jN.prototype.open=function(d,H){if(this.readyState!=0)throw this.abort(),Error("Rj");this.JSC$19199_method_=d;this.JSC$19199_url_=H;this.readyState=1;vs(this)};
jN.prototype.send=function(d){if(this.readyState!=1)throw this.abort(),Error("Sj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Tj");this.inProgress_=!0;var H={headers:this.requestHeaders_,method:this.JSC$19199_method_,credentials:this.JSC$19199_credentialsMode_,cache:void 0,signal:this.abortController_.signal};d&&(H.body=d);(this.JSC$19199_worker_||_.KF).fetch(new Request(this.JSC$19199_url_,H)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
jN.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,d1(this));this.readyState=0};
jN.prototype.handleResponse_=function(d){if(this.inProgress_&&(this.fetchResponse_=d,this.JSC$19199_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19199_responseHeaders_=d.headers,this.readyState=2,vs(this)),this.inProgress_&&(this.readyState=3,vs(this),this.inProgress_)))if(this.responseType==="arraybuffer")d.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.KF.ReadableStream!==
"undefined"&&"body"in d){this.currentReader_=d.body.getReader();if(this.JSC$19199_streamBinaryChunks_){if(this.responseType)throw Error("Uj");this.response=[]}else this.response=this.responseText="",this.JSC$19199_textDecoder_=new TextDecoder;vV0(this)}else d.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var vV0=function(d){d.currentReader_.read().then(d.handleDataFromStream_.bind(d)).catch(d.handleSendFailure_.bind(d))};
jN.prototype.handleDataFromStream_=function(d){if(this.inProgress_){if(this.JSC$19199_streamBinaryChunks_&&d.value)this.response.push(d.value);else if(!this.JSC$19199_streamBinaryChunks_){var H=d.value?d.value:new Uint8Array(0);if(H=this.JSC$19199_textDecoder_.decode(H,{stream:!d.done}))this.response=this.responseText+=H}d.done?d1(this):vs(this);this.readyState==3&&vV0(this)}};
jN.prototype.handleResponseText_=function(d){this.inProgress_&&(this.response=this.responseText=d,d1(this))};
jN.prototype.handleResponseArrayBuffer_=function(d){this.inProgress_&&(this.response=d,d1(this))};
jN.prototype.handleSendFailure_=function(){this.inProgress_&&d1(this)};
var d1=function(d){d.readyState=4;d.fetchResponse_=null;d.currentReader_=null;d.JSC$19199_textDecoder_=null;vs(d)};
jN.prototype.setRequestHeader=function(d,H){this.requestHeaders_.append(d,H)};
jN.prototype.getResponseHeader=function(d){return this.JSC$19199_responseHeaders_?this.JSC$19199_responseHeaders_.get(d.toLowerCase())||"":""};
jN.prototype.getAllResponseHeaders=function(){if(!this.JSC$19199_responseHeaders_)return"";for(var d=[],H=this.JSC$19199_responseHeaders_.entries(),K=H.next();!K.done;)K=K.value,d.push(K[0]+": "+K[1]),K=H.next();return d.join("\r\n")};
jN.prototype.setCredentialsMode=function(d){this.JSC$19199_credentialsMode_=d};
var vs=function(d){d.onreadystatechange&&d.onreadystatechange.call(d)};
Object.defineProperty(jN.prototype,"withCredentials",{get:function(){return this.JSC$19199_credentialsMode_==="include"},
set:function(d){this.setCredentialsMode(d?"include":"same-origin")}});var d5U=function(d){var H="";_.rs.forEach(d,function(K,c){H+=c;H+=":";H+=K;H+="\r\n"});
return H},HVg=function(d,H,K){if(_.rs.isEmpty(K))return d;
K=d5U(K);if(typeof d==="string")return _.Qd(d,_.ES(H),K);_.Y1(d,H,K);return d};var $5q=function(){this.isInputValid_=!0;this.JSC$19204_streamPos_=0;this.leftoverInput_=""};
$5q.prototype.isInputValid=function(){return this.isInputValid_};
$5q.prototype.decode=function(d){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("Vj`"+this.JSC$19204_streamPos_+"`stream already broken`"+d);this.leftoverInput_+=d;d=Math.floor(this.leftoverInput_.length/4);if(d==0)return null;try{var H=_.XYM(this.leftoverInput_.slice(0,d*4))}catch(K){throw H=this.leftoverInput_,d=K.message,this.isInputValid_=!1,Error("Vj`"+this.JSC$19204_streamPos_+"`"+d+"`"+H);}this.JSC$19204_streamPos_+=d*4;this.leftoverInput_=this.leftoverInput_.slice(d*4);return H};var Jb=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19207_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Jb.prototype.isInputValid=function(){return this.state_!=3};
var Hc=function(d,H,K,c){d.state_=3;d.errorMessage_="The stream is broken @"+d.JSC$19207_streamPos_+"/"+K+". Error: "+c+". With input:\n"+H;throw Error(d.errorMessage_);};
Jb.prototype.acceptsBinaryInput=function(){return!0};
Jb.prototype.parse=function(d){function H(k){k&128&&Hc(g,a,e,"invalid tag");(k&7)!=2&&Hc(g,a,e,"invalid wire type");g.tag_=k>>>3;g.tag_!=1&&g.tag_!=2&&g.tag_!=15&&Hc(g,a,e,"unexpected tag");g.state_=1;g.length_=0;g.countLengthBytes_=0}
function K(k){g.countLengthBytes_++;g.countLengthBytes_==5&&k&240&&Hc(g,a,e,"message length too long");g.length_|=(k&127)<<(g.countLengthBytes_-1)*7;k&128||(g.state_=2,g.countMessageBytes_=0,typeof Uint8Array!=="undefined"?g.messageBuffer_=new Uint8Array(g.length_):g.messageBuffer_=Array(g.length_),g.length_==0&&p())}
function c(k){g.messageBuffer_[g.countMessageBytes_++]=k;g.countMessageBytes_==g.length_&&p()}
function p(){if(g.tag_<15){var k={};k[g.tag_]=g.messageBuffer_;g.result_.push(k)}g.state_=0}
for(var g=this,a=d instanceof Array?d:new Uint8Array(d),e=0;e<a.length;){switch(g.state_){case 3:Hc(g,a,e,"stream already broken");break;case 0:H(a[e]);break;case 1:K(a[e]);break;case 2:c(a[e]);break;default:throw Error("Wj`"+g.state_);}g.JSC$19207_streamPos_++;e++}d=g.result_;g.result_=[];return d.length>0?d:null};var iHZ=function(){this.errorMessage_=null;this.JSC$19210_streamPos_=0;this.base64Decoder_=new $5q;this.pbParser_=new Jb};
iHZ.prototype.isInputValid=function(){return this.errorMessage_===null};
var KsG=function(d,H,K){d.errorMessage_="The stream is broken @"+d.JSC$19210_streamPos_+". Error: "+K+". With input:\n"+H;throw Error(d.errorMessage_);};
iHZ.prototype.acceptsBinaryInput=function(){return!1};
iHZ.prototype.parse=function(d){this.errorMessage_!==null&&KsG(this,d,"stream already broken");var H=null;try{var K=this.base64Decoder_.decode(d);H=K===null?null:this.pbParser_.parse(K)}catch(c){KsG(this,d,c.message)}this.JSC$19210_streamPos_+=d.length;return H};var gLv=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19213_streamPos_=0;this.result_=[];this.statusParsed_=!1};
gLv.prototype.isInputValid=function(){return this.errorMessage_===null};
gLv.prototype.acceptsBinaryInput=function(){return!1};
gLv.prototype.parse=function(d){function H(k){g.state_=6;g.errorMessage_="The stream is broken @"+g.JSC$19213_streamPos_+"/"+a+". Error: "+k+". With input:\n";throw Error(g.errorMessage_);}
function K(){g.jsonStreamParser_=new _.gi({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function c(k){if(k)for(var C=0;C<k.length;C++){var R={};R[1]=k[C];g.result_.push(R)}}
function p(k){if(k){(g.statusParsed_||k.length>1)&&H("extra status: "+k);g.statusParsed_=!0;var C={};C[2]=k[0];g.result_.push(C)}}
for(var g=this,a=0;a<d.length;){var e;if(e=g.state_!==2){a:{for(;a<d.length;){if(!_.pN(d[a])){e=!0;break a}a++;g.JSC$19213_streamPos_++}e=!1}e=!e}if(e)return null;switch(g.state_){case 6:H("stream already broken");break;case 0:d[a]==="["?(g.state_=1,a++,g.JSC$19213_streamPos_++):H("unexpected input token");break;case 1:d[a]==="["?(g.state_=2,K()):d[a]===","||d.slice(a,a+5)=="null,"?g.state_=3:d[a]==="]"?(g.state_=5,a++,g.JSC$19213_streamPos_++):H("unexpected input token");break;case 2:e=g.jsonStreamParser_.parse(d.substring(a));
c(e);g.jsonStreamParser_.done()?(g.state_=3,e=g.jsonStreamParser_.JSC$11414_buffer_,g.JSC$19213_streamPos_+=d.length-a-e.length,d=e,a=0):(g.JSC$19213_streamPos_+=d.length-a,a=d.length);break;case 3:d[a]===","||d.slice(a,a+5)=="null,"?(g.state_=4,K(),g.jsonStreamParser_.parse("["),a+=d[a]===","?1:5,g.JSC$19213_streamPos_++):d[a]==="]"&&(g.state_=5,a++,g.JSC$19213_streamPos_++);break;case 4:e=g.jsonStreamParser_.parse(d.substring(a));p(e);g.jsonStreamParser_.done()?(g.state_=5,e=g.jsonStreamParser_.JSC$11414_buffer_,
g.JSC$19213_streamPos_+=d.length-a-e.length,d=e,a=0):(g.JSC$19213_streamPos_+=d.length-a,a=d.length);break;case 5:H("extra input after stream end")}}return g.result_.length>0?(d=g.result_,g.result_=[],d):null};var c9j=function(d){this.JSC$19216_xhr_=d;this.JSC$19216_parser_=null;this.status_=this.JSC$19216_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19216_textDecoder_=null;this.JSC$19216_eventHandler_=new _.GA(this);this.JSC$19216_eventHandler_.listen(this.JSC$19216_xhr_,"readystatechange",this.JSC$19218_readyStateChangeHandler_)},$9=function(d,H){d.status_!=H&&(d.status_=H,d.statusHandler_&&d.statusHandler_())},Ku=function(d){d.JSC$19216_eventHandler_.removeAll();
if(d.JSC$19216_xhr_){var H=d.JSC$19216_xhr_;d.JSC$19216_xhr_=null;H.abort();H.dispose()}};
c9j.prototype.getStatus=function(){return this.status_};
c9j.prototype.JSC$19218_readyStateChangeHandler_=function(d){d=d.target;try{if(d==this.JSC$19216_xhr_)a:{var H=_.uA(this.JSC$19216_xhr_),K=this.JSC$19216_xhr_.JSC$9767_lastErrorCode_,c=this.JSC$19216_xhr_.getStatus(),p=this.JSC$19216_xhr_.getResponseText();d=[];if(this.JSC$19216_xhr_.getResponse()instanceof Array){var g=this.JSC$19216_xhr_.getResponse();g.length>0&&g[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,d=g)}if(!(H<3||H==3&&!p&&d.length==0))if(c=c==200||c==206,H==4&&(K==8?$9(this,
7):K==7?$9(this,8):c||$9(this,3)),this.JSC$19216_parser_||(this.JSC$19216_parser_=GRZ(this.JSC$19216_xhr_),this.JSC$19216_parser_==null&&$9(this,5)),this.status_>2)Ku(this);else{if(d.length>this.JSC$19216_pos_){var a=d.length;K=[];try{if(this.JSC$19216_parser_.acceptsBinaryInput())for(var e=0;e<a;e++){var k=this.JSC$19216_parser_.parse(Array.from(d[e]));k&&(K=K.concat(k))}else{k="";if(!this.JSC$19216_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Xj");this.JSC$19216_textDecoder_=new TextDecoder}for(e=
0;e<a;e++)k+=this.JSC$19216_textDecoder_.decode(d[e],{stream:H==4&&e==a-1});K=this.JSC$19216_parser_.parse(k)}d.splice(0,a);K&&this.dataHandler_(K)}catch(R){$9(this,5);Ku(this);break a}}else if(p.length>this.JSC$19216_pos_){e=p.slice(this.JSC$19216_pos_);this.JSC$19216_pos_=p.length;try{var C=this.JSC$19216_parser_.parse(e);C!=null&&this.dataHandler_&&this.dataHandler_(C)}catch(R){$9(this,5);Ku(this);break a}}H==4?(p.length!=0||this.hasStreamingResponseData_?$9(this,2):$9(this,4),Ku(this)):$9(this,
1)}}}catch(R){$9(this,6),Ku(this)}};var prT=function(d){d=this.xhrReader_=d;var H=(0,_.LA)(this.onData_,this);d.dataHandler_=H;d=this.xhrReader_;H=(0,_.LA)(this.onStatusChange_,this);d.statusHandler_=H;this.JSC$19220_callbackMap_={};this.callbackOnceMap_={}};
_.G=prT.prototype;_.G.on=function(d,H){var K=this.JSC$19220_callbackMap_[d];K||(K=[],this.JSC$19220_callbackMap_[d]=K);K.push(H);return this};
_.G.addListener=function(d,H){this.on(d,H);return this};
_.G.removeListener=function(d,H){var K=this.JSC$19220_callbackMap_[d];K&&_.Q4(K,H);(d=this.callbackOnceMap_[d])&&_.Q4(d,H);return this};
_.G.once=function(d,H){var K=this.callbackOnceMap_[d];K||(K=[],this.callbackOnceMap_[d]=K);K.push(H);return this};
_.G.onData_=function(d){var H=this.JSC$19220_callbackMap_.data;H&&gt1(d,H);(H=this.callbackOnceMap_.data)&&gt1(d,H);this.callbackOnceMap_.data=[]};
var gt1=function(d,H){for(var K={},c=0;c<d.length;K={message$jscomp$1004:void 0},c++)K.message$jscomp$1004=d[c],H.forEach(function(p){return function(g){try{g(p.message$jscomp$1004)}catch(a){}}}(K))};
prT.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:iV0(this,"readable");break;case 5:case 6:case 4:case 7:case 3:iV0(this,"error");break;case 8:iV0(this,"close");break;case 2:iV0(this,"end")}};
var iV0=function(d,H){var K=d.JSC$19220_callbackMap_[H];K&&K.forEach(function(c){try{c()}catch(p){}});
(K=d.callbackOnceMap_[H])&&K.forEach(function(c){c()});
d.callbackOnceMap_[H]=[]};var Gj5=function(){var d={format:"jspb"};d=d===void 0?{}:d;this.suppressCorsPreflight=d.suppressCorsPreflight||_.OS("suppressCorsPreflight",d)||!1;this.withCredentials=d.withCredentials||_.OS("withCredentials",d)||!1;this.streamInterceptors=d.streamInterceptors||[];this.unaryInterceptors=d.unaryInterceptors||[];this.workerScope=d.workerScope;this.chunkedServerStreaming=d.useFetchDownloadStreams||!1},aeO=function(d,H,K,c,p,g){g=g===void 0?{}:g;
var a=H.substring(0,H.length-p.name.length),e,k=(e=g)==null?void 0:e.signal;return ott(function(C){return new Promise(function(R,V){if(k==null?0:k.aborted){var U=new _.mU(1,"Aborted");U.cause=k.reason;V(U)}else{var L={},w=qlO(d,C,a);w.on("error",function(W){return void V(W)});
w.on("metadata",function(W){L=W});
w.on("data",function(W){var J=L;J=J===void 0?{}:J;R(new mJG(W,J))});
k&&k.addEventListener("abort",function(){w.cancel();var W=new _.mU(1,"Aborted");W.cause=k.reason;V(W)})}})},d.unaryInterceptors).call(d,wG5(p,K,c)).then(function(C){return C.responseMessage})},cc=function(d,H,K,c,p,g){g=g===void 0?{}:g;
return aeO(d,H,K,c,p,g)};
Gj5.prototype.serverStreaming=function(d,H,K,c){var p=this,g=d.substring(0,d.length-c.name.length);return leb(function(a){var e=a.methodDescriptor,k=a.getMetadata(),C=eWU(p,!1);k=kjj(p,k,C,g+e.getName());var R=x5q(C,e.responseDeserializeFn,!0);a=e.requestSerializeFn(a.requestMessage);C.send(k,"POST",a);return R},this.streamInterceptors).call(this,wG5(c,H,K))};
var qlO=function(d,H,K){var c=H.methodDescriptor,p=H.getMetadata(),g=eWU(d,!0);d=kjj(d,p,g,K+c.getName());K=x5q(g,c.responseDeserializeFn,!1);jBZ(K,p["X-Goog-Encode-Response-If-Executable"]==="base64");H=c.requestSerializeFn(H.requestMessage);g.send(d,"POST",H);return K},eWU=function(d,H){H=d.chunkedServerStreaming&&!H;
return d.workerScope||H?new _.P9(new AG({worker:d.workerScope,streamBinaryChunks:H})):new _.P9},kjj=function(d,H,K,c){H["Content-Type"]="application/json+protobuf";
H["X-User-Agent"]="grpc-web-javascript/0.1";var p=H.Authorization;if(p&&O1Z.has(p.split(" ")[0])||d.withCredentials)K.JSC$9767_withCredentials_=!0;if(d.suppressCorsPreflight)c=HVg(c,"$httpHeaders",H);else for(d=_.q(Object.keys(H)),p=d.next();!p.done;p=d.next())p=p.value,K.headers.set(p,H[p]);return c},x5q=function(d,H,K){if(K){K=new c9j(d);
var c=new prT(K)}return new Nn({xhr:d,nodeReadableStream:c},H)},leb=function(d,H){return H.reduce(function(K,c){return function(p){return c.intercept(p,K)}},d)},ott=function(d,H){return H.reduce(function(K,c){return function(p){return c.intercept(p,K)}},d)};var nt0=function(d){this.client_=new Gj5;this.hostname_=d==void 0?d:d.replace(/\/+$/,"")};
_.G=nt0.prototype;_.G.JSC$19238_depositGoogleCredential=function(d,H,K){return cc(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",d,H||{},rSO,K)};
_.G.deleteLink=function(d,H,K){return cc(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",d,H||{},uhO,K)};
_.G.JSC$19238_finishOAuth=function(d,H,K){return cc(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",d,H||{},BKZ,K)};
_.G.getLink=function(d,H,K){return cc(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",d,H||{},zfZ,K)};
_.G.startLinkingSession=function(d,H,K){return cc(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",d,H||{},YuO,K)};var CBb=[0,Id0,1,B5b,[0,_.y8,[0,raT,-1]],[0,Wpg],[0,zJG,-1]];var RWq=function(){this.storage=new Map},U5v=function(d,H,K,c,p){if(!d.storage.has(H))return null;
d=_.q(d.storage.get(H));for(H=d.next();!H.done;H=d.next())if(H=H.value,!p||H.linkName===p)if(K&&H.scopes&&VR1(H.scopes,K)||c&&H.capabilities&&VR1(H.capabilities,c))return H;return null},hWG=function(d,H,K){if(!K)d.storage.delete(H);
else if(d.storage.has(H)){var c=d.storage.get(H).filter(function(p){return p.linkName!==K});
c.length>0?d.storage.set(H,c):d.storage.delete(H)}},VR1=function(d,H){H=_.q(H);
for(var K=H.next();!K.done;K=H.next())if(!d.has(K.value))return!1;return!0};var LsO=function(){var d=_.Fm("LINK_GAL_DOMAIN");this.alsDomain1p=_.Fm("LINK_GAL_DOMAIN");this.alsDomain3p=d;this.clientEnvironment=0;this.supportedFlows=this.clientXd3=void 0;this.accountLinkingEntryPoint=0;this.galSdkEventHandler=this.dataUsageNoticeConfig=void 0;this.loggerType=0;this.colorScheme=2;this.showCloseOption=!0},MRt=function(d,H){d.apiKey=H;
return d};
LsO.prototype.build=function(){var d={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Yj");d.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Zj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("$j");d.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(d.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)d.apiKey=
this.apiKey,d.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("ak");d.oauthToken=this.oauthToken;d.alsDomain=this.alsDomain3p}d.clientXd3=this.clientXd3;d.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(d.authUser=this.authUser);this.bucket!==void 0&&(d.bucket=this.bucket);this.completionUrl!==void 0&&(d.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(d.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(d.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(d.locale=this.locale);d.loggerType=this.loggerType;d.clientEnvironment=this.clientEnvironment;d.colorScheme=this.colorScheme;d.showCloseOption=this.showCloseOption;return d};var sK=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(sK,_.He);var m51=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(m51,_.He);var wrb=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(wrb,_.He);var ZG=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(ZG,_.He);var PBb=function(d){return _.rK(d,1)};var u2v=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(u2v,_.He);var xRb=_.aK(u2v),FR=[1,2,3,4,5];var aLb=function(d){try{return xRb(d)}catch(H){return null}},IeU=function(){},lLO=function(d,H){switch(_.hS(H,FR)){case 4:return(H=_.zZ(H,wrb,4,FR))&&d.logStateTransition(_.rK(H,1)),!0;
case 5:return(H=_.zZ(H,m51,5,FR))&&d.logInternalEvent(_.rK(H,1)),!0}return!1},nLZ=function(d){switch(d){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.tN(d)}};var oLZ=function(d,H){var K=this;this.validator=d;this.messageListener=H;this.dismissCallback=function(){r9b(K,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19267_receiveMessage=function(c){c.type==="message"&&(c=c.event_,c!==null&&(new URL(K.iframe.src)).origin===c.origin&&K.validator(c.data,c.origin)&&!K.messageListener(c.data)&&(K.JSC$19267_resolveCb!==void 0&&K.JSC$19267_resolveCb(c.data),Wsb(K)))}},kRb=function(d,H,K){d.uiHandler!==void 0&&r9b(d,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(c,p){d.JSC$19267_resolveCb=c;d.JSC$19267_rejectCb=p;d.iframe=document.createElement("iframe");_.OH(d.iframe,H);d.uiHandler=K.displayContent(d.iframe,d.dismissCallback);_.Iq(window,"message",d.JSC$19267_receiveMessage,!1,d)})},r9b=function(d,H){d.JSC$19267_rejectCb!==void 0&&d.JSC$19267_rejectCb(H);
Wsb(d)},Wsb=function(d){d.uiHandler!==void 0&&d.uiHandler.hideContent();
_.Cq(window,"message",d.JSC$19267_receiveMessage,!1,d);d.JSC$19267_resolveCb=void 0;d.JSC$19267_rejectCb=void 0;d.uiHandler=void 0;d.iframe=void 0};var Bvt=function(d){if(d===2){var H;d=((H=window)==null?0:H.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return d},ekt=function(d){d=Bvt(d);
switch(d){case 0:return"light";case 1:return"dark";default:_.tN(d)}};var qcT=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),zW5=function(d,H){this.JSC$19279_linkingSession=d;this.noticeConfig=H;this.displayInfoMap=new Map;var K=new Map;if(_.C1(this.JSC$19279_linkingSession,sBg,7))for(d=_.gF(this.JSC$19279_linkingSession,sBg,7),d=_.dk(d,JSq,1,_.Hz()),d=_.q(d),H=d.next();!H.done;H=d.next())H=H.value,K.set(_.rK(H,1),_.aOD(_.gF(H,_.Tmh,3)));if(K.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){H=this.noticeConfig.enabledDataUsageNoticeUis;d=H.has(0)?K.get(1):void 0;H=H.has(1)?K.get(2):void 0;K=d!==void 0&&H!==void 0?K.get(3):void 0;var c=this.noticeConfig.nestedOrigins;var p=new u2v;var g=new sK;p=_.nc(p,2,FR,g);g=new u2v;var a=new sK;g=_.nc(g,3,FR,a);a=[];d!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:d,lastEvent:p,nestedOrigins:c}]),a.push({trustedUrl:d,lastEvent:p,nestedOrigins:c}));H!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:H,lastEvent:g,nestedOrigins:c}]),a.push({trustedUrl:H,lastEvent:g,nestedOrigins:c}));K!==void 0?this.displayInfoMap.set(3,[{trustedUrl:K,lastEvent:g,nestedOrigins:c}]):this.displayInfoMap.set(3,a)}};var XrZ=function(d){var H=new RWq;this.galService=d;this.galCache=H};
XrZ.prototype.getLink=function(d){var H=d.serviceId;var K=d.scopes;var c=d.capabilities;var p=d.linkName;var g=this,a;return _.l(function(e){if(c!==void 0&&K!==void 0)throw Error("bk");a=U5v(g.galCache,H,K,c,p);return a!==null?e.return(a):e.return(g.galService.getLink({serviceId:H,sessionId:Math.floor(Math.random()*2147483648),scopes:K,capabilities:c,linkName:p}).then(function(k){k=hk0(k);var C=g.galCache;C.storage.has(H)?C.storage.get(H).push(k):C.storage.set(H,[k]);return k}))})};
XrZ.prototype.deleteLink=function(d,H,K){var c=this;return _.l(function(p){hWG(c.galCache,d,K);return p.return(c.galService.deleteLink({serviceId:d,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:H,linkName:K}).then(function(){return!0}))})};var spT=function(d,H){var K=this;this.validator=d;this.msgHandler=H;this.closedPopupTimeout=this.JSC$19301_rejectCb=this.JSC$19301_resolveCb=this.popup=null;this.JSC$19301_receiveMessage=function(c){if(c!==null&&(c=c.event_,c.source===K.popup)){var p=c.data;if(K.validator(p,c.origin)){var g;(g=K.msgHandler)!=null&&g.call(K,p)||(K.JSC$19301_resolveCb!==null&&K.JSC$19301_resolveCb(p),J9G(K))}}}};
spT.prototype.open=function(d,H){var K=this;this.popup!==null&&FsO(this);return new Promise(function(c,p){K.JSC$19301_resolveCb=c;K.JSC$19301_rejectCb=p;K.popup=_.EH(window,d,"",H);_.Iq(window,"message",K.JSC$19301_receiveMessage,!1,K);ZVZ(K)})};
var FsO=function(d,H){d.JSC$19301_rejectCb!==null&&d.JSC$19301_rejectCb(H);J9G(d)},J9G=function(d){d.closedPopupTimeout&&(d.closedPopupTimeout.cancel(),d.closedPopupTimeout=null);
d.popup&&d.popup.close();_.Cq(window,"message",d.JSC$19301_receiveMessage,!1,d);d.popup=null;d.JSC$19301_resolveCb=null;d.JSC$19301_rejectCb=null},ZVZ=function(d){d.closedPopupTimeout=_.o53(100).then(function(){d.popup?d.popup.closed?Tvg(d):ZVZ(d):FsO(d,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},Tvg=function(d){d.closedPopupTimeout=_.o53(100).then(function(){FsO(d,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var QpT=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),tRG=function(d,H,K,c,p,g,a,e,k,C){var R=this;this.serviceId=d;this.sessionId=H;this.galService=K;this.oauthDetails=c;this.galLogger=p;this.interactionMode=g;this.redirectServiceUrl=a;this.consentLanguageKeys=e;this.dynamicUrlParameters=k;this.partnerConfigMinReadTimestamp=C;this.started=!1;this.JSC$19307_dataValidator=function(V,
U){var L=QpT.has(U);L||R.redirectServiceUrl===void 0||(L=R.redirectServiceUrl===U);return L?V.sentinel==="gdi":!1}};
tRG.prototype.complete=function(){var d=this,H;return _.l(function(K){if(d.interactionMode!==1)return K.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));H=Qw.getRedirectStateFromUri();return H===null?K.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):K.return(YlU(d,H))})};
tRG.prototype.start=function(){var d=this,H;return _.l(function(K){if(d.started)return K.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.IB(d.oauthDetails,1))return K.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(d.interactionMode===1)return Qw.setLocation(_.IB(d.oauthDetails,1)),K.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));d.started=!0;d.galLogger.logStateTransition(5);
H=Qw.getPostMessagePopup(d.JSC$19307_dataValidator);return K.return(H.open(_.IB(d.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(c){d.started=!1;var p=d.galLogger;if((c==null?void 0:c.error)!==void 0)throw p.logInternalEvent(59),Error("ck");if((c==null?void 0:c.redirect_state)===void 0)throw p.logInternalEvent(131),Error("dk");return YlU(d,c.redirect_state)}).catch(function(c){d.started=
!1;
return c.errorCode!==void 0?{statusCode:c.errorCode,statusMessage:c.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var YlU=function(d,H){return _.l(function(K){return K.return(OVg(d.galService,{serviceId:d.serviceId,sessionId:d.sessionId,dynamicUrlParameters:d.dynamicUrlParameters,redirectState:H,consentLanguageKeys:d.consentLanguageKeys,partnerConfigMinReadTimestamp:d.partnerConfigMinReadTimestamp}).then(function(c){var p={statusCode:1,link:hk0(c.getLink())};$CZ(_.V8(c,3))!==void 0&&(p.callerState=$CZ(_.V8(c,3)));d.galLogger.logInternalEvent(134);return p}))})},Qw={getPostMessagePopup:function(d){return new spT(d)},
getRedirectStateFromUri:function(){var d=_.Qe(Qw.getLocation()).fragment_;return(new _.$3(d)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(d){_.qE1(window.location,_.Xa(d))},
createOAuthFlow:function(d,H){return new tRG(d.serviceId,d.sessionId,d.galService,H,d.galLogger,d.interactionMode,d.redirectServiceUrl,d.consentLanguageKeys,d.dynamicUrlParameters,d.partnerConfigMinReadTimestamp)}};var Slj=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Slj,_.He);var Et1=_.aK(Slj);var y9t=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),bVS=function(d,H,K,c,p,g,a,e,k){var C=this;this.serviceId=d;this.sessionId=H;this.galService=K;this.gsiWebFlowDetails=c;this.colorScheme=p;this.showCloseOption=g;this.galLogger=a;this.interactionMode=e;this.redirectServiceUrl=k;this.started=!1;this.JSC$19319_dataValidator=function(R,V){var U=y9t.has(V);U||C.redirectServiceUrl===
void 0||(U=C.redirectServiceUrl===V);return U?R.sentinel==="gal":!1};
this.logEventProcessor=function(R){return R.result?(R=aLb(R.result))?lLO(C.galLogger,R):!1:!1}};
bVS.prototype.complete=function(){var d=this,H,K;return _.l(function(c){if(d.interactionMode!==1)return c.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));H=tb.getRedirectStateFromUri();if(H===void 0)return d.galLogger.JSC$19259_logErrorEvent(131),c.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return K=Nv5(d,H),c.return(D5T(d,K))}catch(p){return c.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
bVS.prototype.start=function(){var d=this,H;return _.l(function(K){if(d.started)return K.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.IB(d.gsiWebFlowDetails,1))return K.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(d.interactionMode===1)return tb.setLocation(feG(d,_.IB(d.gsiWebFlowDetails,1))),K.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
d.started=!0;H=tb.getPostMessagePopup(d.JSC$19319_dataValidator,d.logEventProcessor);return K.return(H.open(feG(d,_.IB(d.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(c){d.started=!1;if((c==null?void 0:c.result)===void 0)throw d.galLogger.JSC$19259_logErrorEvent(131),Error("dk");c=Nv5(d,c.result);return D5T(d,c)}).catch(function(c){d.started=!1;
return c.errorCode!==void 0?{statusCode:c.errorCode,statusMessage:c.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var feG=function(d,H){d=["result_channel",d.interactionMode===1?"2":"1","color_scheme",ekt(d.colorScheme),"show_close_option",d.showCloseOption];return FpO(H,d)},D5T=function(d,H){if(H!==null&&_.C1(H,ZG,2)){var K,c=H==null?void 0:(K=_.gF(H,ZG,2))==null?void 0:_.rK(K,2);
c&&d.galLogger.JSC$19259_logErrorEvent(nLZ(c));return PBb(_.gF(H,ZG,2))===1?Promise.resolve({statusCode:10,statusMessage:"flow cannot start due to recoverable reason"}):Promise.resolve({statusMessage:"Web-endpoint returned an error",statusCode:7})}return d.galService.getLink({serviceId:d.serviceId,sessionId:d.sessionId,consistencyKey:_.IB(H,1)}).then(function(p){p=hk0(p);d.galLogger.logInternalEvent(134);return{statusCode:1,link:p}})},Nv5=function(d,H){H=Et1(H);
if(!_.C1(H,ZG,2)&&_.IB(H,1)==="")throw d.galLogger.JSC$19259_logErrorEvent(5),Error("ek");return H},tb={getPostMessagePopup:function(d,H){return new spT(d,H)},
getRedirectStateFromUri:function(){return _.t_(_.Qe(tb.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(d){_.qE1(window.location,_.Xa(d))},
createStreamlinedFlow:function(d,H){return new bVS(d.serviceId,d.sessionId,d.galService,H,d.colorScheme,d.showCloseOption,d.galLogger,d.interactionMode,d.redirectServiceUrl)}};var FEv=function(){var d=_.RkF("GAL");this.storage=d?new _.wf(d):null};
FEv.prototype.getSession=function(d){if(this.storage!==null)try{var H=this.storage.get("SAVED_SESSION");if(H===void 0)return null;if(H.serviceId===d)return H}catch(K){}return null};var pu=function(){};
_.m(pu,IeU);pu.prototype.logStateTransition=function(){};
pu.prototype.logInternalEvent=function(){};
pu.prototype.JSC$19259_logErrorEvent=function(){};var A9b=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(A9b,_.He);A9b.prototype.getCompletionUrl=function(){return _.IB(this,15)};var g1=function(d,H,K,c,p,g){this.serviceId=d;this.environment=H;this.sessionId=K;this.colorSchemeSelected=c;this.colorThemeDisplayed=p;this.JSC$19332_transport=g;this.currentState=1};
_.m(g1,IeU);g1.prototype.logStateTransition=function(d){var H=jpZ(this);H=_.G1(H,3,this.currentState);H=_.G1(H,1,d);this.currentState=d;d=TBg(1);this.dispatch(H,d)};
g1.prototype.logInternalEvent=function(d){d=TBg(d);this.dispatch(jpZ(this),d)};
g1.prototype.JSC$19259_logErrorEvent=function(d){var H=jpZ(this);H=_.G1(H,1,10);d=TBg(d);this.dispatch(H,d)};
var jpZ=function(d){var H=new A9b;H=_.G1(H,1,d.currentState);H=_.UY(H,7,d.serviceId);var K,c;var p=((K=window)==null?0:(c=K.location)==null?0:c.href)?_.Qe(window.location.href).JSC$10002_domain_:"NO_PACKAGE_NAME";K=_.UY(H,8,p);K=_.G1(K,6,d.environment);K=_.UY(K,5,"100");K=_.G1(K,11,d.colorSchemeSelected);return _.G1(K,12,d.colorThemeDisplayed)};
g1.prototype.dispatch=function(d,H){H===void 0&&(H=new _.gN);var K=H;d=d.serialize();K=_.UY(K,8,d);_.Ln(K,12,this.sessionId);this.JSC$19332_transport.dispatch(H)};var vtZ=function(d,H){this.loggerType=d;this.sessionIndex=H!=null?H:0},dWj;
vtZ.prototype.create=function(d,H,K,c,p){switch(this.loggerType){case 0:return new pu;case 1:return dWj||(dWj=(new _.o4(555,this.sessionIndex.toString())).build()),new g1(d,H,K,c,p,dWj);default:_.tN(this.loggerType,"unknown logger type")}};var YH=[6,2,3,1],OHU=new Map([[4,1],[1,6],[2,2],[3,3]]),wW1={statusCode:7,statusMessage:"Failed to create flow object"},JFv=function(d,H,K,c,p,g,a,e,k,C){this.serviceId=d;this.sessionId=H;this.config=K;this.galService=c;this.JSC$19339_linkingSession=p;this.googleScopes=g;this.callerState=a;this.consentLanguageKeys=e;this.dynamicUrlParameters=k;this.partnerConfigMinReadTimestamp=C;this.currentFlow=0;c=this.JSC$19339_linkingSession;p=new Set;_.C1(c,WES,1)&&p.add(1);_.C1(c,Z11,2)&&_.C1(c,B01,6)&&p.add(2);
_.C1(c,FtO,3)&&_.C1(c,B01,6)&&p.add(3);_.C1(c,XGT,4)&&p.add(6);this.supportedFlows=p;c=K.loggerType;p=K.clientEnvironment;a:{g=K.colorScheme;switch(g){case 0:g=1;break a;case 1:g=2;break a;case 2:g=3;break a;default:_.tN(g)}g=void 0}a:{a=K.colorScheme;a=Bvt(a);switch(a){case 0:a=1;break a;case 1:a=2;break a;default:_.tN(a)}a=void 0}this.galLogger=(new vtZ(c,K.authUser)).create(d,p,H,g,a)},$W5=function(d){return new Promise(function(H){var K,c,p,g,a,e,k,C,R,V;
return _.l(function(U){switch(U.nextAddress){case 1:K=zkT(d.currentFlow,d.supportedFlows),c=!1,p=new zW5(d.JSC$19339_linkingSession,d.config.dataUsageNoticeConfig);case 2:if(K===void 0){U.jumpTo(4);break}_.e2(U,5);var L=p,w=K,W=void 0;c?w===1&&(W=L.displayInfoMap.get(2)):w===2||w===3?W=L.displayInfoMap.get(1):w===1&&(W=L.displayInfoMap.get(3));g=W?W:[];a=d.consentLanguageKeys;e=_.q(g);k=e.next();case 7:if(k.done)return d.currentFlow=K,U.yield(uvj(HqO(d,a)),11);C=k.value;return U.yield(CZO(C,d.config.dataUsageNoticeConfig.uiAdapter,
d.config.colorScheme,d.galLogger),10);case 10:R=U.yieldResult;if(R.statusCode!==1)return ZHG(d.serviceId),d.currentFlow=0,H(TI({statusCode:R.statusCode,statusMessage:R.statusMessage},d.callerState)),U.return();R.consentLanguageKeys!==void 0&&(a=R.consentLanguageKeys);k=e.next();U.jumpTo(7);break;case 11:V=U.yieldResult;if(V.statusCode!==10)return V.statusCode!==6&&(ZHG(d.serviceId),d.currentFlow=0),V.statusCode!==1&&d.callerState!==void 0&&(V.callerState=d.callerState),H(V),U.return();_.Em(U,6);break;
case 5:_.RV(U);case 6:K=zkT(d.currentFlow,d.supportedFlows);c=!0;U.jumpTo(2);break;case 4:ZHG(d.serviceId),d.currentFlow=0,H(TI({statusCode:12,statusMessage:"Linking failed"},d.callerState)),_.VE(U)}})})},tGt=function(d,H,K){d.currentFlow=H;
return ILS(HqO(d,K)).then(function(c){return c.statusCode===10&&d.config.interactionMode===1&&zkT(d.currentFlow,d.supportedFlows)!==void 0?$W5(d):c})},HqO=function(d,H){return{flowParams:{serviceId:d.serviceId,
sessionId:d.sessionId,galService:d.galService,galLogger:d.galLogger,interactionMode:d.config.interactionMode,redirectServiceUrl:d.config.redirectServiceUrl,colorScheme:d.config.colorScheme,consentLanguageKeys:H,dynamicUrlParameters:d.dynamicUrlParameters,showCloseOption:d.config.showCloseOption,partnerConfigMinReadTimestamp:d.partnerConfigMinReadTimestamp},currentFlow:d.currentFlow,config:d.config,session:d.JSC$19339_linkingSession,googleScopes:d.googleScopes,callerState:d.callerState}};var ELO=function(d,H){this.config=d;this.galService=H.getService();this.JSC$19352_galRepository=H.JSC$19370_galRepository};
ELO.prototype.getLink=function(d,H){return KUZ(this,d,H)};
var KUZ=function(d,H,K){return d.JSC$19352_galRepository.getLink({serviceId:H,scopes:void 0,capabilities:void 0,linkName:K}).then(function(c){return{statusCode:1,link:c}}).catch(function(c){return{statusCode:Sct(c.code),
statusMessage:c.message}})};
ELO.prototype.deleteLink=function(d,H){return this.JSC$19352_galRepository.deleteLink(d,this.config.accountLinkingEntryPoint,H).then(function(){return{statusCode:1}}).catch(function(K){return{statusCode:Sct(K.code),
statusMessage:K.message}})};
ELO.prototype.startLinkingSession=function(d){var H=d.serviceId;var K=d.sessionId;return s60({serviceId:H,sessionId:K!==void 0?K:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:d.loginHint,callerState:d.callerState,consentLanguageKeys:d.consentLanguageKeys,linkName:d.linkName,dynamicUrlParameters:d.dynamicUrlParameters,partnerConfigMinReadTimestamp:d.partnerConfigMinReadTimestamp})};var iL=function(d,H,K,c,p,g,a){this.apiKey=H;this.authUser=K;this.oauthToken=c;this.bucket=p;this.locale=g;this.galSdkEventHandler=a;if(c===void 0){if(H===void 0)throw Error("fk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new nt0(d)};
iL.prototype.deleteLink=function(d){var H=d.serviceId;var K=d.sessionId;var c=d.accountLinkingEntryPoint;var p=d.linkName;var g=this,a;return _.l(function(e){var k=(new SN).setHeader(g.getHeader(K));var C=cH1({serviceId:H,linkName:p});k=_.eE(k,2,C);a=_.JS(k,3,c);return e.return(g.makeRequest(g.galServiceClient.deleteLink,a,[1,3],[2,4]))})};
var OVg=function(d,H){var K=H.serviceId;var c=H.sessionId;var p=H.dynamicUrlParameters;var g=H.redirectState;var a=H.consentLanguageKeys;var e=H.partnerConfigMinReadTimestamp;var k;return _.l(function(C){var R=(new yk).setHeader(d.getHeader(c,p));R=_.Sn(R,2,K);k=_.Sn(R,4,g);a!==void 0&&_.Sn(k,5,a);e!==void 0&&_.eE(k,6,e);return C.return(d.makeRequest(d.galServiceClient.JSC$19238_finishOAuth,k,[1,3],[2,4]))})};
iL.prototype.getLink=function(d){var H=d.serviceId;var K=d.sessionId;var c=d.scopes;var p=d.capabilities;var g=d.consistencyKey;var a=d.linkName;var e=this,k;return _.l(function(C){var R=(new bx).setHeader(e.getHeader(K)),V=cH1({serviceId:H,scopes:c,capabilities:p,linkName:a});k=_.eE(R,2,V);g!==void 0&&(R=UJS(),R=_.Sn(R,2,g),_.eE(k,3,R));return C.return(e.makeRequest(e.galServiceClient.getLink,k,[1,3],[2,4]))})};
var rFt=function(d,H){var K=H.serviceId;var c=H.sessionId;var p=H.googleScopes;var g=H.consistencyKey;var a;return _.l(function(e){var k=(new EN).setHeader(d.getHeader(c));k=_.Sn(k,2,K);var C=Array.from(p.values());k=_.NS(k,3,C,_.qS);C=UJS();C=_.Sn(C,2,g);a=_.eE(k,4,C);return e.return(d.makeRequest(d.galServiceClient.JSC$19238_depositGoogleCredential,a,[1,3],[2,4]))})};
iL.prototype.startLinkingSession=function(d){var H=d.serviceId;var K=d.sessionId;var c=d.scopes;var p=d.capabilities;var g=d.loginHint;var a=d.supportedFlows;var e=d.completionUrl;var k=d.usePingPong;var C=d.twoWayLinking;var R=d.accountLinkingEntryPoint;var V=d.callerState;var U=d.consentLanguageKeys;var L=d.googleScopes;var w=d.dataUsageNoticeConfig;var W=d.linkName;var J=d.dynamicUrlParameters;var F=d.partnerConfigMinReadTimestamp;var Y=this,A,E;return _.l(function(N){if(p!==void 0&&c!==void 0)throw Error("bk");
var y=(new t3Z).setHeader(Y.getHeader(K,J));A=_.Sn(y,2,H);W!==void 0&&_.Sn(A,14,W);if(p!==void 0){y=A;var v=Array.from(p.values());_.NS(y,5,v,_.qS)}else c!==void 0&&(y=A,v=Array.from(c.values()),_.NS(y,3,v,_.qS));e!==void 0&&_.Sn(A,6,e);k!==void 0&&_.zA(A,15,k);a!==void 0&&(y=A,v=Array.from(a.values()),_.NS(y,4,v,_.bM));if(C!==void 0){if(C&&(!L||L.size===0))throw Error("gk");_.zA(A,8,C)}R!==void 0&&_.JS(A,9,R);g!==void 0&&_.Sn(A,13,g);V!==void 0&&(y=A,v=(new TextEncoder).encode(V),_.D5(y,12,_.PB(v,
!1),_.wA()));U!==void 0&&_.Sn(A,16,U);F!==void 0&&_.eE(A,18,F);if(w!==void 0&&w.size>0||L!==void 0&&L.size>0)E=new QBq,L!==void 0&&L.size>0&&(y=E,v=Array.from(L.values()),_.NS(y,1,v,_.qS)),w!==void 0&&(w.has(0)&&_.sZ1(E,2,_.bM,1,_.AN),w.has(1)&&_.sZ1(E,2,_.bM,2,_.AN)),_.eE(A,17,E);return N.return(Y.makeRequest(Y.galServiceClient.startLinkingSession,A,[1],[2]))})};
iL.prototype.getMetadata=function(){var d=this,H,K;return _.l(function(c){H={};d.useFpa?(H["X-Goog-Api-Key"]=d.apiKey,H["X-Goog-AuthUser"]=d.authUser!==void 0?d.authUser.toString():"0",(K=_.SIF([]))&&(H.Authorization=K)):H.Authorization="Bearer "+d.oauthToken;d.locale&&(H["accept-language"]=d.locale);return c.return(H)})};
iL.prototype.makeRequest=function(d,H,K,c){var p=this,g;return _.l(function(a){if(a.nextAddress==1)return a.yield(p.getMetadata(),2);g=a.yieldResult;p9g(p,K);return a.return(d.bind(p.galServiceClient)(H,g).finally(function(){p9g(p,c)}))})};
var p9g=function(d,H){d.galSdkEventHandler!==void 0&&H.forEach(function(K){d.galSdkEventHandler.onEvent(K)})};
iL.prototype.getHeader=function(d,H){var K=new tG;d=_.D5(K,2,_.jS(d),0);d=_.JS(d,5,3);H=_.NS(d,8,H,_.qS);this.bucket!==void 0&&_.Sn(H,1,this.bucket);return H};
var cH1=function(d){var H=d.serviceId;var K=d.scopes;var c=d.capabilities;d=d.linkName;if(c!==void 0&&K!==void 0)throw Error("bk");var p=new RfZ;H=_.Sn(p,1,H);c!==void 0?(K=Array.from(c.values()),_.NS(H,5,K,_.qS)):K!==void 0&&(K=Array.from(K.values()),_.NS(H,3,K,_.qS));d!==void 0&&_.Sn(H,6,d);return H};var yFv=function(d){this.galService=new iL(d.alsDomain,d.apiKey,d.authUser,d.oauthToken,d.bucket,d.locale,d.galSdkEventHandler);this.JSC$19370_galRepository=new XrZ(this.galService)};
yFv.prototype.getService=function(){return this.galService};var gJ5=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(gJ5,_.He);var iqt=function(d){var H=new gJ5;return _.G1(H,1,d)};
gJ5.prototype.setErrorMessage=function(d){return _.UY(this,2,d)};var GwT=[0,_.NJ,_.Eu,_.NJ];var Gy=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Gy,_.He);var oJT=[0,[1,2,3],_.bv,[0,mOt,ubZ,-1],_.bv,[0,PEt,-1],_.yeC];var qLU=[0,_.Ou,1,_.NJ,_.Eu,-1,1,_.Dah,_.YV,_.NJ,-1,oJT];var aSj=[0,_.NJ,[0,_.Dah,_.YV,[0,_.Eu]],_.S3,[0,_.NJ,-1]];var w8=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(w8,_.He);var lSZ=[0,_.Eu,_.NJ,-2,_.Ou,_.NJ,_.Ou,_.NJ,-2,1,_.S3];var ebq=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(ebq,_.He);var kwU=[0,_.Ou];var xWS=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(xWS,_.He);var nJZ=[0,_.NJ,aSj,kwU,lSZ,qLU];var xVZ=_.oK(xWS,nJZ);var CAG=[0,CBb];var hoG=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(hoG,_.He);var Rbg=[0,[1,3],XwT,_.NJ,XwT];var Mn=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Mn,_.He);var Vob=[0,_.NJ];var UWO=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(UWO,_.He);var mX=function(d){return _.zZ(d,gJ5,2,Lx)},hb1=function(d){var H=new UWO;
return _.nc(H,2,Lx,d)},Lx=[1,
2];var LUq=[0,Lx,_.bv,Vob,_.bv,GwT,_.y8,Rbg,1,_.NJ,CAG];var Moj=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(Moj,_.He);var w91=function(d){var H=new Moj;return _.nc(H,3,mW1,d)},mW1=[2,
3];var oW=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(oW,_.He);var PAj=function(d,H){return _.eE(d,2,H)},uDg=function(d,H){return _.eE(d,8,H)},IS0=function(d,H){return _.eE(d,3,H)};var rHZ=[0,_.NJ,LUq,nJZ,_.cLU,[0,[5,6,7],[0,_.NJ,-2],[0,_.Ou,_.NJ,_.Eu],[0,oJT],[0,_.Eu,_.NJ,-1,_.Kr3,_.NJ],_.bv,[0,[0,_.Ou],_.NJ,-1],_.bv,[0,[3,4],_.NJ,-1,_.bv,[0,[0,_.NJ,_.S3]],_.bv,[0,[0,[0,[1,2],_.bv,[0],_.bv,[0]]]]],_.bv,[0]],_.cLU,-1,[0,mW1,_.NJ,_.bv,Vob,_.bv,GwT,_.y8,Rbg,[0,CBb]]];var WUv=_.oK(oW,rHZ),BNG=_.qN(rHZ);var zbq=function(){_.h_.call(this)};
_.m(zbq,_.h_);zbq.prototype.init=function(){};
new zbq;var X9T=_.y$(["data-"]),JHq=_.y$(["aria-"]),sjb=_.y$(["aria-"]),q9=function(d,H){this.isLatencyMeasurementExperiment=d===void 0?!1:d;this.enableDialogA11yFix=H===void 0?!1:H;this.JSC$19399_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.rZ7(_.KF.location.href)},C8G=function(d,H){d.onConsentPrimitiveShownCallback=H},FU1=function(d,H){return d.overriddenIframeLoadTimeout?d.overriddenIframeLoadTimeout:H!==void 0?H:5E3},VAb=function(d){if(d.prewarmPromise!==void 0)return d.prewarmPromise;
d.prewarmPromise=new Promise(function(H,K){aW(d,1);Zqb(d,TNZ(d,!0),Qjv(d));d.iframe?d.prewarmChannel||tov(d,d.iframe,H):K(Error("hk"))});
d.prewarmPromise.finally(function(){d.prewarmPromise=void 0});
return d.prewarmPromise};
q9.prototype.showPrimitive=function(){var d=this;if(this.consentPromise!==void 0)return this.consentPromise;var H=Date.now();YL1(this,H);this.consentPromise=new Promise(function(K,c){aW(d,0,H);var p=d.isDarkTheme();d.isLatencyMeasurementExperiment||d.initialLoadingStrategy===1||d.initialLoadingStrategy===2||(d.loadingBar||(d.loadingBar=fLj(getComputedStyle(document.body).direction==="rtl",p),d.loadingBar.style.position="fixed",d.loadingBar.style.zIndex="15000"),document.body.appendChild(d.loadingBar));
Zqb(d,TNZ(d),Qjv(d));d.iframe?d.channel||Oqg(d,d.iframe,K,c):(SL1(d),c(Error("hk")))});
this.consentPromise.finally(function(){d.consentPromise=void 0});
return this.consentPromise};
var Oqg=function(d,H,K,c){var p,g;_.l(function(a){switch(a.nextAddress){case 1:aW(d,3);p=!1;setTimeout(function(){if(!p){SL1(d);EJj(d);yHq(d);var e=iqt(7).setErrorMessage("Timeout connecting to iframe");K(uDg(PAj(new oW,hb1(e)),w91(e)))}},FU1(d,bqT(d)));
if(!d.prewarmPromise){a.jumpTo(2);break}_.e2(a,3);return a.yield(d.prewarmPromise,5);case 5:_.Em(a,2);break;case 3:_.RV(a),g=iqt(4).setErrorMessage("Error while prewarming."),K(uDg(PAj(new oW,hb1(g)),w91(g)));case 2:d.prewarmChannel&&d.prewarmChannel.send(BNG(IS0(new oW,d.consentPrimitiveRequest))),d.channel=_.AS({destination:d.JSC$19399_win,iframe:H,origin:NNU(d),channelName:"cpw",onEstablished:function(){p=!0;SL1(d);d.isLatencyMeasurementExperiment||(d.JSC$19399_previousBodyOverflow=document.body.style.overflow,
d.JSC$19399_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,d.JSC$19399_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",d.enableDialogA11yFix&&window.addEventListener("blur",d.focusChangeListener));var e=d.iframe;e.style.bottom="0";e.style.position="fixed";e.style.right="0";e.style.border="none";e.style.left="0";e.style.top=
"0";e.style.zIndex="5000";e.style.pointerEvents="";e.style.visibility="";d.initialLoadingStrategy===2||d.initialLoadingStrategy===3?aW(d,4):aW(d,6);var k;(k=d.onConsentPrimitiveShownCallback)==null||k.call(d)},
onMessage:function(e){e=WUv(e.data);switch(_.rK(e,1)){case 1:EJj(d);var k=AFv(_.gF(e,_.z_,7));k&&(d.initialLoadingStrategy!==2&&d.initialLoadingStrategy!==3||aW(d,6,k),aW(d,5,k));if(k=AFv(_.gF(e,_.z_,6)))aW(d,7,k),aW(d,8);var C,R;((C=_.gF(e,UWO,2))==null?void 0:_.hS(C,Lx))!==0&&((R=_.gF(e,Moj,8))==null?void 0:_.hS(R,mW1))!==0||c(Error("ik"));K(e);break;case 2:yHq(d)}}}),_.VE(a)}})},tov=function(d,H,K){d.prewarmChannel=_.AS({destination:d.JSC$19399_win,
iframe:H,origin:NNU(d),channelName:"pwcp",onEstablished:function(){aW(d,2);K()}})},NNU=function(d){var H=_.Lc(d.src).toString();
return H&&H.indexOf("://")<0&&H.indexOf("//")!==0?d.origin:_.rZ7(H)},TNZ=function(d,H){H=H===void 0?!1:H;
var K,c=new Map([["origin",d.origin],["hl",(K=DWG(d))!=null?K:null]]);H&&c.set("pw","1");H=_.q([["cpr",d.consentPrimitiveRequest.serialize()]]);for(K=H.next();!K.done;K=H.next()){var p=_.q(K.value);K=p.next().value;p=p.next().value;c.set(K,p)}d.isDarkTheme()&&c.set("color_scheme","dark");return _.gs(d.src,c)},SL1=function(d){d.isLatencyMeasurementExperiment||d.loadingBar&&document.body.removeChild(d.loadingBar)};
q9.prototype.getSrc=function(){var d=_.jD(this.origin),H;var K=(H=_.gF(this.consentPrimitiveRequest,ebq,3))==null?void 0:_.$1(H,1);H="consent.google.com";K=K?"/u/"+encodeURIComponent(K.toString()):"";(d==null?0:d.endsWith("youtube.com"))?H="consent.youtube.com":(d=d==null?void 0:d.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(H="consent.google."+((d[1]?"co.":"")+encodeURIComponent(d[2])));return _.hL("https://"+H+"/signedin"+K+"/landing")};
var Zqb=function(d,H,K){d.iframe||(d.iframe=document.createElement("iframe"),d.iframe.style.width="100%",d.iframe.style.height="100%",K!==112496729&&(d.iframe.style.colorScheme="auto"),d.isLatencyMeasurementExperiment&&(d.iframe.style.display="none"),_.OH(d.iframe,H),d.iframe.setAttribute("jsname","C5o1O"),fS5(d.iframe),document.body.appendChild(d.iframe))},fS5=function(d){d.style.bottom="-200vh";
d.style.position="fixed";d.style.right="-200vw";d.style.border="";d.style.left="";d.style.top="";d.style.zIndex="";d.style.pointerEvents="none";d.style.visibility="hidden"},EJj=function(d){d.iframe&&(d.isLatencyMeasurementExperiment||(d.JSC$19399_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=d.JSC$19399_previousHtmlOverscroll),d.JSC$19399_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=d.JSC$19399_previousBodyOverscroll),d.JSC$19399_previousBodyOverflow!==
void 0&&(document.body.style.overflow=d.JSC$19399_previousBodyOverflow),d.enableDialogA11yFix&&AHb(d,!1)),fS5(d.iframe))};
q9.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(AHb(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var AHb=function(d,H){var K,c,p=(K=d.iframe)==null?void 0:(c=K.parentElement)==null?void 0:c.children;if(p)for(K=0;K<p.length;K++)c=p[K],c!==d.iframe&&(H?(c.hasAttribute("aria-hidden")&&_.jE([_.KB(X9T)],c,"data-old-aria-hidden",c.getAttribute("aria-hidden")),_.jE([_.KB(JHq)],c,"aria-hidden","true")):(c.removeAttribute("aria-hidden"),c.hasAttribute("data-old-aria-hidden")&&(_.jE([_.KB(sjb)],c,"aria-hidden",c.getAttribute("data-old-aria-hidden")),c.removeAttribute("data-old-aria-hidden"))))},aW=function(d,
H,K){var c;
(c=d.latencyCallback)==null||c.call(d,{latencyType:H,timestampEpochMillis:K!=null?K:Date.now()})};var jjg=function(d,H,K){q9.call(this,H,K===void 0?!1:K);this.consentPrimitiveRequest=d;d=DWG(this);_.t1T(d);this.src=this.getSrc();var c;this.initialLoadingStrategy=(c=_.gF(this.consentPrimitiveRequest,w8,4))==null?void 0:_.rK(c,4)},vJZ;
_.m(jjg,q9);var n6O=function(d){var H=_.h("enable_primitive_dialog_aria_hide_siblings");d={request:d,enableDialogA11yFix:H===void 0?!1:H};vJZ||(vJZ=new jjg(d.request,d.isLatencyMeasurementExperiment||_.rK(d.request,1)===2,d.enableDialogA11yFix));return vJZ},DWG=function(d){var H;
return(H=_.gF(d.consentPrimitiveRequest,w8,4))==null?void 0:_.IB(H,1)},YL1=function(d,H){if(!_.C1(d.consentPrimitiveRequest,Gy,5)){var K=d.consentPrimitiveRequest,c=new Gy;
_.eE(K,5,c)}var p;if((p=_.gF(d.consentPrimitiveRequest,Gy,5))==null||_.rN1(_.n1(p,8))==null){var g;(g=_.gF(d.consentPrimitiveRequest,Gy,5))!=null&&_.Ln(g,8,H)}},Qjv=function(d){var H;
return(H=_.gF(d.consentPrimitiveRequest,Gy,5))==null?void 0:_.$1(H,1)};
jjg.prototype.isDarkTheme=function(){var d;return((d=_.gF(this.consentPrimitiveRequest,w8,4))==null?void 0:_.rK(d,2))===2};
var bqT=function(d){var H;return((H=_.gF(d.consentPrimitiveRequest,w8,4))==null?void 0:_.$1(H,5))||void 0},yHq=function(d){d.channel=void 0;
d.prewarmChannel=void 0;d.iframe&&(document.body.contains(d.iframe)&&document.body.removeChild(d.iframe),d.iframe=void 0);vJZ=void 0},UVZ=function(d){return q9.prototype.showPrimitive.call(d).then(function(H){return _.gF(H,UWO,2)})};for(var lL={},d31=(lL[64]="ma",lL[73]="ogb",lL[89]="cr",lL[21]="test",lL[0]="unkn",lL[137]="con",lL[155]="hl",lL[78]="yt",lL[171]="lp",lL[172]="ap",lL[177]="amo",lL[178]="pqe",lL[74]="gg",lL[1]="gm",lL[140]="am",lL[193]="sc",lL),HGt=_.q(Object.keys(d31)),$3g=HGt.next();!$3g.done;$3g=HGt.next());var KC5=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(KC5,_.He);var cvO=[0,[2,3,4],_.NJ,wwb,XwT,_.yeC];var pQ1=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(pQ1,_.He);var g3T=_.oK(pQ1,[0,zJG,_.Eu,_.NJ,_.Eu,_.NJ,cvO]);var iG1=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(iG1,_.He);iG1.prototype.getCommand=function(){return _.rK(this,1)};
var GQG=function(){var d=new iG1;return _.JS(d,1,0)};var o3G=_.qN([0,zJG,_.Eu,[0,_.NJ,_.Eu,-1]]);var qRq=new _.lA("s"),akq=new _.lA("t"),lk0=new _.lA("u"),e1Z=new _.lA("v"),kQU=function(d,H,K){_.eo.call(this,qRq);this.mediaKey=d;this.photoUrl=H;this.photoSource=K};
_.m(kQU,_.eo);var x3G=function(){_.eo.call(this,akq)};
_.m(x3G,_.eo);var n30=function(d){d=d===void 0?!1:d;_.eo.call(this,lk0);this.isError=d};
_.m(n30,_.eo);var CIv=function(){_.eo.call(this,e1Z)};
_.m(CIv,_.eo);var R1v=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,LCU=function(d){if(typeof d=="string"){if(d.charAt(0)==".")return VJS(d.substr(1));if(d.charAt(0)=="["){var H=R1v.exec(d);d=d.indexOf("=")==-1?void 0:H[3];return U3t(H[1],d)}return h1g(d)}return d},VJS=function(d){return function(H){return H.getAttribute&&_.Tw(H,d)}},U3t=function(d,H){return function(K){return H!==void 0?K.getAttribute&&K.getAttribute(d)==H:K.hasAttribute&&K.hasAttribute(d)}},h1g=function(d){d=d.toUpperCase();
return function(H){return(H=H.tagName)&&H.toUpperCase()==d}},MJS=function(){return!0};var eg=function(d,H){this.JSC$19427_key_=d;this.JSC$19427_value_=H},k9=function(d){throw Error("jk`"+d.JSC$19427_key_);
},m3U=function(d,H){return new TypeError("kk`"+H+"`"+d.JSC$19427_key_+"`"+d.JSC$19427_value_+"`"+typeof d.JSC$19427_value_)};
eg.prototype.string=function(d){return arguments.length==0?wQq(this):PIZ(this,d)};
var PIZ=function(d,H){var K;return(K=uEU(d))!=null?K:H},wQq=function(d){var H=uEU(d);
H===null&&k9(d);return H},uEU=function(d){var H=d.JSC$19427_value_;
if(H==null)return null;if(typeof H==="string")return H;throw m3U(d,"string");};
eg.prototype.bool=function(d){if(arguments.length==0){var H=this.optionalBool();H===null&&k9(this)}else{var K;H=(K=this.optionalBool())!=null?K:d}return H};
eg.prototype.optionalBool=function(){var d=this.JSC$19427_value_;if(d==null)return null;if(typeof d==="boolean")return d;if(typeof d==="string"){d=d.toLowerCase();if(d==="true"||d==="1")return!0;if(d==="false"||d==="0")return!1}throw m3U(this,"boolean");};
eg.prototype.number=function(d){if(arguments.length==0){var H=Ik0(this);H===null&&k9(this)}else H=rvO(this,d);return H};
var rvO=function(d,H){var K;return(K=Ik0(d))!=null?K:H},Ik0=function(d){var H=d.JSC$19427_value_;
if(H==null)return null;if(typeof H==="number")return H;if(typeof H==="string"){var K=Number(H);if(!isNaN(K)&&(K!==0||H.trim().length!==0))return K}throw m3U(d,"number");};
eg.prototype.toString=function(){return wQq(this)};
eg.prototype.enum=function(d,H){var K=!0,c=void 0,p;for(p in d){var g=d[p];K&&(K=!1,c=typeof g==="number"?rvO(this,H):PIZ(this,H));if(g==c)return c}JSON.stringify(d);return c};
eg.prototype.array=function(d){if(arguments.length==0){var H=WC5(this);H===null&&k9(this);return H}H=WC5(this);return H==null?d:H};
var WC5=function(d){var H=d.JSC$19427_value_;if(H==null)return null;Array.isArray(H)||(typeof H!=="string"?H=[H]:(H=H.trim(),H=H==""?[]:H.split(",").map(function(K){return K.trim()})));
return BMv(d,H)},BMv=function(d,H){var K=d.JSC$19427_key_+"[";
return Array.from(H,function(c,p){return new eg(K+p+"]",c)})};
eg.prototype.object=function(d){var H=this.JSC$19427_value_;if(H==null)return d===void 0&&k9(this),d;if(typeof H==="object"&&H.constructor===Object){d={};var K=this.JSC$19427_key_+".",c;for(c in H)d[c]=new eg(K+c,H[c]);return d}throw m3U(this,"object");};var x9=function(d){this.list_=z1t(d)},z1t=function(d){if(d instanceof x9)d=d.list_;
else if(d[0]instanceof x9){for(var H=new Set,K=0;K<d.length;K++)for(var c=_.q(d[K].list_),p=c.next();!p.done;p=c.next())H.add(p.value);d=H}return[].concat(_.ru(d))};
_.G=x9.prototype;_.G.each=function(d,H,K){((K===void 0?0:K)?j$g:_.yx)(this.list_,d,H);return this};
_.G.size=function(){return this.list_.length};
_.G.isEmpty=function(){return this.list_.length===0};
_.G.get=function(d){return this.list_[d]||null};
_.G.el=function(){return this.list_[0]||null};
_.G.map=function(d,H){return _.Wf(this.list_,d,H)};
_.G.equals=function(d){return this===d||_.DD(this.list_,d.list_)};
_.G.first=function(){return this.list_.length==0?null:new nu(this.list_[0])};
_.G.last=function(){return this.list_.length==0?null:new nu(this.list_[this.list_.length-1])};
_.G.find=function(d){var H=[];this.each(function(K){K=K.querySelectorAll(String(d));for(var c=0;c<K.length;c++)H.push(K[c])});
return new x9(H)};
_.G.parent=function(){var d=[];this.each(function(H){(H=H.parentElement||null)&&!_.TL(d,H)&&d.push(H)});
return new x9(d)};
_.G.children=function(){var d=[];this.each(function(H){H=_.Wr(H);for(var K=0;K<H.length;K++)d.push(H[K])});
return new x9(d)};
_.G.filter=function(d){d=_.p1(this.list_,LCU(d));return new x9(d)};
_.G.closest=function(d){var H=[],K=LCU(d),c=function(p){return _.A5(p)&&K(p)};
this.each(function(p){(p=_.sY(p,c,!0))&&!_.TL(H,p)&&H.push(p)});
return new x9(H)};
_.G.next=function(d){return XQg(this,_.bXX,d)};
_.G.prev=function(d){return XQg(this,JaZ,d)};
var XQg=function(d,H,K){var c=[];var p=K?LCU(K):MJS;d.each(function(g){(g=H(g))&&p(g)&&c.push(g)});
return new x9(c)};
x9.prototype.setClass=function(d){return this.each(function(H){_.ZS(H,d)})};
var Jvv=function(d,H){return d.each(function(K){_.Hg(K,H)})},sYT=function(d,H){return d.each(function(K){_.v1(K,H)})};
x9.prototype.toggleClass=function(d,H){return H===!0?Jvv(this,d):H===!1?sYT(this,d):this.each(function(K){_.Tw(K,d)?_.v1(K,d):_.Hg(K,d)})};
x9.prototype.setText=function(d){return this.each(function(H){_.Br(H,d)})};
var FCS=function(d){d.each(function(H){H.removeAttribute("aria-hidden")})};
x9.prototype.getStyle=function(d){if(this.list_.length>0){var H=this.list_[0],K=H.style[_.hP(d)];return typeof K!=="undefined"?K:H.style[_.g07(H,d)]||""}};
x9.prototype.getData=function(d){if(this.list_.length===0)return new eg(d,null);var H=KGt(this.list_[0],d);return new eg(d,H)};
x9.prototype.focus=function(d){try{d?this.el().focus(d):this.el().focus()}catch(H){}return this};
x9.prototype.click=function(){var d=_.XF(this.el());if(d.createEvent){var H=d.createEvent("MouseEvents");H.initMouseEvent("click",!0,!0,d.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(H)}else d=d.createEventObject(),d.clientX=0,d.clientY=0,d.screenX=0,d.screenY=0,d.altKey=!1,d.ctrlKey=!1,d.shiftKey=!1,d.button=0,this.el().fireEvent("onclick",d)};
var Cu=function(d,H,K,c){function p(e,k,C){var R=k;k&&k.parentNode&&(R=k.cloneNode(!0));e(R,C)}
c=c===void 0?!1:c;if(d.list_.length==1){var g=d.list_[0],a=function(e){return H(e,g)};
K instanceof x9?K.each(a,void 0,c):Array.isArray(K)?(c?j$g:_.yx)(K,a):a(K);return d}return d.each(function(e){K instanceof x9?K.each(function(k){p(H,k,e)}):Array.isArray(K)?_.yx(K,function(k){p(H,k,e)}):p(H,K,e)})};
_.G=x9.prototype;_.G.append=function(d){return Cu(this,function(H,K){H&&K.appendChild(H)},d)};
_.G.appendTo=function(d){(new x9([d])).append(this);return this};
_.G.remove=function(){return Cu(this,function(d,H){_.nA(H)},null)};
_.G.empty=function(){return Cu(this,function(d,H){_.uB(H)},null)};
_.G.after=function(d,H){return Cu(this,function(K,c){K&&_.rv(K,c)},d,!(H===void 0||H))};
_.G.before=function(d){return Cu(this,function(H,K){H&&_.Ip(H,K)},d)};
_.G.replaceWith=function(d){return Cu(this,function(H,K){H&&_.S30(H,K)},d)};
_.G.toggle=function(d){return this.each(function(H){_.O8(H,d)})};
_.G.show=function(){return this.toggle(!0)};
_.G.hide=function(){return this.toggle(!1)};
_.G.trigger=function(d,H,K,c){return ZGv(this,d,H,K,c)};
var ZGv=function(d,H,K,c,p){return d.each(function(g){_.V7i(_.XF(g)).triggerWizEventInternal(g,H,K,c,p)})},nu=function(d,H){d instanceof x9&&(H=d.list_,d=null);
this.list_=z1t(d!=null?[d]:H)};
_.K1(nu,x9);_.G=nu.prototype;_.G.children=function(){return new x9(Array.prototype.slice.call(_.Wr(this.list_[0])))};
_.G.each=function(d,H){d.call(H,this.list_[0],0);return this};
_.G.size=function(){return 1};
_.G.el=function(){return this.list_[0]};
_.G.first=function(){return this};var RW=function(d,H){H=H===void 0?window:H;this.hostId=d;this.JSC$19438_win=H;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$19438_previousHtmlOverscroll=this.JSC$19438_previousBodyOverscroll=this.JSC$19438_previousBodyOverflow="";this.eventTarget=new _.Rj;this.JSC$19438_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
tJb=function(d){var H=TMZ(TMZ(TMZ(new QYj(78),"po"),"hppp"),"hhc");
H.authUser=Number(_.Fm("SESSION_INDEX","0"));H.colorScheme=d;return H};
RW.prototype.getOrigin=function(){return this.origin?this.origin:_.AH(_.fq(_.DS(new _.jM,this.JSC$19438_win.location.protocol),this.JSC$19438_win.location.hostname),this.JSC$19438_win.location.port).toString()};
RW.prototype.getTargetOrigin=function(){return _.AH(_.fq(_.DS(new _.jM,this.scheme),this.domain),this.port)};
RW.prototype.preloadIframe=function(d){var H=this;if(this.iframeLoadPromise===void 0){var K=document.createElement("iframe");this.iframe=K;ccv(K,d);this.iframeLoadPromise=new Promise(function(c,p){var g=!1,a=function(e){e.stopPropagation();K.removeEventListener("error",a);K.removeEventListener("securitypolicyviolation",a);p(Error("lk",{cause:e}))};
K.addEventListener("error",a);K.addEventListener("securitypolicyviolation",a);setTimeout(function(){g||p(Error("mk"))},3E4);
YRU(H,K,function(){g=!0;K.removeEventListener("error",a);K.removeEventListener("securitypolicyviolation",a);c()})});
OGg(this);d=this.getTargetOrigin().toString();K.setAttribute("allow","camera "+d+"; display-capture "+d);this.parentElement.appendChild(K)}return this.iframeLoadPromise};
var yvb=function(d,H){var K,c;return _.l(function(p){if(p.nextAddress==1)return K=fLj(getComputedStyle(d.parentElement).direction==="rtl"),d.parentElement.appendChild(K),document.activeElement instanceof HTMLElement&&(d.elementToFocusAfterClose=document.activeElement),_.e2(p,2),p.yield(d.preloadIframe(H),4);if(p.nextAddress!=2){d.parentElement.removeChild(K);d.JSC$19438_previousBodyOverflow=d.parentElement.style.overflow;d.JSC$19438_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
d.JSC$19438_previousBodyOverscroll=d.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";d.parentElement.style.overscrollBehavior="contain";d.parentElement.style.overflow="hidden";var g=d.iframe;g.style.bottom="0";g.style.border="none";g.style.height="100%";g.style.left="0";g.style.position=d.iframePosition;g.style.right="0";g.style.top="0";g.style.width="100%";g.style.zIndex="2202";g.setAttribute("aria-hidden","false");g.setAttribute("aria-modal","true");
d.opened=!0;SRt(d);return _.Em(p,0)}c=_.RV(p);d.parentElement.removeChild(K);Hmb(d.isDarkTheme());E3t(d,!1);throw Error("nk",{cause:c});})},E3t=function(d,H){H=H===void 0?!0:H;
d.iframe!==void 0&&(bGZ(d),document.documentElement.style.overscrollBehavior=d.JSC$19438_previousHtmlOverscroll,d.parentElement.style.overscrollBehavior=d.JSC$19438_previousBodyOverscroll,d.parentElement.style.overflow=d.JSC$19438_previousBodyOverflow,d.elementToFocusAfterClose!==void 0&&(d.elementToFocusAfterClose.focus(),d.elementToFocusAfterClose=void 0),H?OGg(d):(d.parentElement.removeChild(d.iframe),d.iframe=void 0,d.iframeLoadPromise=void 0,d.mainChannel=void 0),d.opened=!1)},bGZ=function(d){d.backgroundElementsAriaHiddenIsNull&&
(FCS(d.backgroundElementsAriaHiddenIsNull),d.backgroundElementsAriaHiddenIsNull=void 0);
d.backgroundElementsAriaHiddenIsFalse&&(d.backgroundElementsAriaHiddenIsFalse.each(function(H){H.setAttribute("aria-hidden","false")}),d.backgroundElementsAriaHiddenIsFalse=void 0);
d.backgroundElementsWithoutInert&&(d.backgroundElementsWithoutInert.each(function(H){H.removeAttribute("inert")}),d.backgroundElementsWithoutInert=void 0)},SRt=function(d){d.backgroundElementsAriaHiddenIsNull=(new nu(d.iframe.parentElement)).children().filter(function(H){return H.getAttribute("aria-hidden")===null&&H!==d.iframe});
d.backgroundElementsAriaHiddenIsNull.each(function(H){H.setAttribute("aria-hidden","true")});
d.backgroundElementsAriaHiddenIsFalse=(new nu(d.iframe.parentElement)).children().filter(function(H){return H.getAttribute("aria-hidden")==="false"&&H!==d.iframe});
d.backgroundElementsAriaHiddenIsFalse.each(function(H){H.setAttribute("aria-hidden","true")});
d.backgroundElementsWithoutInert=(new nu(d.iframe.parentElement)).children().filter(function(H){return!H.hasAttribute("inert")&&H!==d.iframe});
d.backgroundElementsWithoutInert.each(function(H){H.setAttribute("inert","true")})},OGg=function(d){d=d.iframe;
d.style.bottom="-1000px";d.style.position="fixed";d.style.right="-1000px";d.style.border="";d.style.height="";d.style.left="";d.style.top="";d.style.width="";d.style.zIndex="";d.setAttribute("aria-hidden","true");d.setAttribute("aria-modal","false")};
RW.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var QYj=function(d,H){RW.call(this,d31[d],H);this.options=[];this.style=""};
_.m(QYj,RW);var NMT=function(d){d.style="youtube";return d},D35=function(d,H){d.eventTarget.listen(lk0,H);
return d},fkU=function(d,H){d.eventTarget.listen(qRq,H);
return d},TMZ=function(d,H){d.options.push(H);
return d},Av1=function(d){var H=[d.getOrigin()];
d.ancestorOrigins&&H.push.apply(H,_.ru(d.ancestorOrigins));var K=new _.jM(d.JSC$19438_win.location.href),c=d.startUrl?d.startUrl:d.options.includes("po")?"profile-picture/art":"profile-picture";H=Ps(_.jo(d.getTargetOrigin(),c),"origin",H);d.startUrl&&_.Y1(H,"startPath",d.startUrl);d.authUser>0&&_.Y1(H,"authuser",d.authUser);d.pageId!==void 0&&_.Y1(H,"pageId",d.pageId);_.Y1(H,"hostId",d.hostId);d.jsMode!==void 0&&_.Y1(H,"jsmode",d.jsMode);d.rectangleRatio!==void 0&&_.Y1(H,"rectangleRatio",d.rectangleRatio);
d.options.length>0&&_.Y1(H,"opts",d.options.join(","));try{for(var p=_.q(["utm_source","utm_medium","utm_campaign","utm_content"]),g=p.next();!g.done;g=p.next()){var a=g.value;_.t_(K,a)&&_.Y1(H,a,_.t_(K,a))}var e,k=(e=d.hl)!=null?e:_.t_(K,"hl");k!==void 0&&_.Y1(H,"hl",k)}catch(C){if(!(C instanceof URIError))throw C;}d.colorScheme&&_.Y1(H,"theme",d.colorScheme);d.style&&_.Y1(H,"style",d.style);return H},jY5=function(d,H){d.mainChannel=_.AS({destination:d.JSC$19438_win,
iframe:H,origin:d.getTargetOrigin().toString(),channelName:"ow",onMessage:function(K){K=g3T(K.data);if(H===d.iframe)switch(_.rK(K,1)){case 1:d.eventTarget.dispatchEvent(new n30);E3t(d);break;case 2:d.eventTarget.dispatchEvent(new kQU(_.IB(K,4),_.IB(K,2),_.rK(K,5),_.gF(K,KC5,6)));break;case 0:var c;d.eventTarget.dispatchEvent(new x3G(_.IB(K,2),(c=_.rK(K,3))!=null?c:0));break;case 3:d.eventTarget.dispatchEvent(new n30(!0));E3t(d,!1);break;case 4:d.eventTarget.dispatchEvent(new CIv)}}})},YRU=function(d,
H,K){_.AS({destination:d.JSC$19438_win,
iframe:H,origin:_.AH(_.fq(_.DS(new _.jM,d.scheme),d.domain),d.port).toString(),channelName:"owi",onMessage:function(c){H===d.iframe&&(K!==void 0&&K(),jY5(d,H),d.opened&&d.mainChannel.send(o3G(GQG())),c.reply(),YRU(d,H))}})};
QYj.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?RW.prototype.preloadIframe.call(this,Av1(this).toString()):this.iframeLoadPromise};
QYj.prototype.openPicker=function(d){var H=this;return _.l(function(K){if(K.nextAddress==1)return H.startUrl=d?d:H.options.includes("po")?"profile-picture/art":"profile-picture",K.yield(yvb(H,Av1(H).toString()),2);if(H.mainChannel){var c=H.mainChannel,p=c.send;var g=GQG();g=_.UY(g,2,H.startUrl);p.call(c,o3G(g))}_.VE(K)})};var v3Z=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(v3Z,_.He);_.G=v3Z.prototype;_.G.getSize=function(){return XC(this,1)};
_.G.setSize=function(d){return _.Xh(this,1,d)};
_.G.getWidth=function(){return XC(this,12)};
_.G.getHeight=function(){return XC(this,13)};
_.G.setCenterCrop=function(d){return _.gk(this,20,d)};
_.G.getHtml=function(){return _.wK(this,4)};
_.G.getToken=function(){return _.k1(this,24)};
_.G.setToken=function(d){return _.UY(this,24,d)};
_.G.getBackgroundColor=function(){return XC(this,87)};
_.G.hasBackgroundColor=function(){return _.vB(_.n1(this,87))!=null};
_.G.getStoryboardLevel=function(){return XC(this,109)};var VI=function(d){this.JSC$19446_value_=void 0;this.childNodes_={};if(d){var H=_.sH7(d);d=_.NW(d);for(var K=0;K<H.length;K++)this.set(H[K],d[K])}};
VI.prototype.set=function(d,H){dYj(this,d,H,!1)};
VI.prototype.add=function(d,H){dYj(this,d,H,!0)};
var dYj=function(d,H,K,c){for(var p=0;p<H.length;p++){var g=H.charAt(p);d.childNodes_[g]||(d.childNodes_[g]=new VI);d=d.childNodes_[g]}if(c&&d.JSC$19446_value_!==void 0)throw Error("ok`"+H);d.JSC$19446_value_=K},Hbb=function(d,H){for(var K=0;K<H.length;K++)if(d=d.childNodes_[H.charAt(K)],!d)return;
return d};
VI.prototype.get=function(d){return(d=Hbb(this,d))?d.JSC$19446_value_:void 0};
VI.prototype.getValues=function(){var d=[];$Y1(this,d);return d};
var $Y1=function(d,H){d.JSC$19446_value_!==void 0&&H.push(d.JSC$19446_value_);for(var K in d.childNodes_)$Y1(d.childNodes_[K],H)};
VI.prototype.getKeys=function(d){var H=[];if(d){for(var K=this,c=0;c<d.length;c++){var p=d.charAt(c);if(!K.childNodes_[p])return[];K=K.childNodes_[p]}Ka0(K,d,H)}else Ka0(this,"",H);return H};
var Ka0=function(d,H,K){d.JSC$19446_value_!==void 0&&K.push(H);for(var c in d.childNodes_)Ka0(d.childNodes_[c],H+c,K)};
_.G=VI.prototype;_.G.containsKey=function(d){return this.get(d)!==void 0};
_.G.containsValue=function(d){if(this.JSC$19446_value_===d)return!0;for(var H in this.childNodes_)if(this.childNodes_[H].containsValue(d))return!0;return!1};
_.G.clear=function(){this.childNodes_={};this.JSC$19446_value_=void 0};
_.G.remove=function(d){for(var H=this,K=[],c=0;c<d.length;c++){var p=d.charAt(c);if(!H.childNodes_[p])throw Error("pk`"+d);K.push([H,p]);H=H.childNodes_[p]}d=H.JSC$19446_value_;for(delete H.JSC$19446_value_;K.length>0;)if(c=K.pop(),H=c[0],c=c[1],H.childNodes_[c].isEmpty())delete H.childNodes_[c];else break;return d};
_.G.clone=function(){return new VI(this)};
_.G.getCount=function(){return T51(this.getValues())};
_.G.isEmpty=function(){return this.JSC$19446_value_===void 0&&_.rs.isEmpty(this.childNodes_)};var oig=function(){if(!c4T){var d=c4T=new VI,H;for(H in pqt)d.add(H,pqt[H])}},c4T,UW=function(d,H){this.types=d;
this.setters=H},pqt={a:new UW([3,
0],[function(d,H){_.gk(d,21,H)},
function(d,H){_.Xh(d,56,H)}]),
al:new UW([3],[function(d,H){_.gk(d,74,H)}]),
b:new UW([3,0],[function(d,H){_.gk(d,23,H)},
function(d,H){_.Xh(d,38,H)}]),
ba:new UW([0],[function(d,H){_.Xh(d,85,H)}]),
bc:new UW([0],[function(d,H){_.Xh(d,87,H)}]),
br:new UW([0],[function(d,H){_.Xh(d,86,H)}]),
c:new UW([3,0],[function(d,H){_.gk(d,2,H)},
function(d,H){_.Xh(d,39,H)}]),
cc:new UW([3],[function(d,H){_.gk(d,51,H)}]),
ci:new UW([3],[function(d,H){_.gk(d,32,H)}]),
ckm:new UW([3],[function(d,H){_.gk(d,104,H)}]),
cp:new UW([0],[function(d,H){_.Xh(d,92,H)}]),
cr:new UW([3],[function(d,H){_.gk(d,108,H)}]),
cv:new UW([0],[function(d,H){_.Xh(d,94,H)}]),
d:new UW([3],[function(d,H){_.gk(d,3,H)}]),
dc:new UW([5],[function(d,H){_.UY(d,99,H)}]),
df:new UW([3],[function(d,H){_.gk(d,80,H)}]),
dv:new UW([3],[function(d,H){_.gk(d,90,H)}]),
e:new UW([0],[function(d,H){_.Xh(d,15,H)}]),
em:new UW([0],[function(d,H){_.Xh(d,107,H)}]),
f:new UW([4],[function(d,H){_.UY(d,16,H)}]),
fg:new UW([3],[function(d,H){_.gk(d,34,H)}]),
fh:new UW([3],[function(d,H){_.gk(d,30,H)}]),
fm:new UW([3],[function(d,H){_.gk(d,84,H)}]),
fo:new UW([2],[function(d,H){_.ov(d,79,_.O3(H))}]),
ft:new UW([3],[function(d,H){_.gk(d,50,H)}]),
fv:new UW([3],[function(d,H){_.gk(d,31,H)}]),
g:new UW([3],[function(d,H){_.gk(d,14,H)}]),
gce:new UW([4],[function(d,H){_.UY(d,112,H)}]),
gd:new UW([3],[function(d,H){_.gk(d,83,H)}]),
gm:new UW([3],[function(d,H){_.gk(d,105,H)}]),
h:new UW([3,0],[function(d,H){_.gk(d,4,H)},
function(d,H){_.Xh(d,13,H)}]),
i:new UW([3],[function(d,H){_.gk(d,22,H)}]),
ic:new UW([0],[function(d,H){_.Xh(d,71,H)}]),
id:new UW([3],[function(d,H){_.gk(d,70,H)}]),
il:new UW([3],[function(d,H){_.gk(d,96,H)}]),
ip:new UW([3],[function(d,H){_.gk(d,54,H)}]),
iv:new UW([0],[function(d,H){_.Ln(d,75,H)}]),
j:new UW([1],[function(d,H){H=H==null?H:HOq(H);_.ov(d,29,H)}]),
k:new UW([3,0],[function(d,H){_.gk(d,17,H)},
function(d,H){_.Xh(d,42,H)}]),
l:new UW([0],[function(d,H){_.Xh(d,44,H)}]),
lf:new UW([3],[function(d,H){_.gk(d,65,H)}]),
lo:new UW([3],[function(d,H){_.gk(d,97,H)}]),
m:new UW([0],[function(d,H){_.Xh(d,63,H)}]),
md:new UW([3],[function(d,H){_.gk(d,91,H)}]),
mm:new UW([4],[function(d,H){_.UY(d,81,H)}]),
mo:new UW([3],[function(d,H){_.gk(d,73,H)}]),
mp:new UW([0],[function(d,H){_.Xh(d,115,H)}]),
mv:new UW([3],[function(d,H){_.gk(d,66,H)}]),
n:new UW([3],[function(d,H){d.setCenterCrop(H)}]),
nc:new UW([3],[function(d,H){_.gk(d,55,H)}]),
nd:new UW([3],[function(d,H){_.gk(d,53,H)}]),
ng:new UW([3],[function(d,H){_.gk(d,95,H)}]),
ngm:new UW([3],[function(d,H){_.gk(d,106,H)}]),
no:new UW([3],[function(d,H){_.gk(d,37,H)}]),
ns:new UW([3],[function(d,H){_.gk(d,40,H)}]),
nt0:new UW([4],[function(d,H){_.UY(d,36,H)}]),
ntm:new UW([3],[function(d,H){_.gk(d,114,H)}]),
nu:new UW([3],[function(d,H){_.gk(d,46,H)}]),
nw:new UW([3],[function(d,H){_.gk(d,48,H)}]),
o:new UW([1,3],[function(d,H){H=H==null?H:HOq(H);_.ov(d,7,H)},
function(d,H){_.gk(d,27,H)}]),
p:new UW([3,0],[function(d,H){_.gk(d,19,H)},
function(d,H){_.Xh(d,43,H)}]),
pa:new UW([3],[function(d,H){_.gk(d,61,H)}]),
pc:new UW([0],[function(d,H){_.Xh(d,88,H)}]),
pd:new UW([3],[function(d,H){_.gk(d,60,H)}]),
pf:new UW([3],[function(d,H){_.gk(d,67,H)}]),
pg:new UW([3],[function(d,H){_.gk(d,72,H)}]),
pi:new UW([2],[function(d,H){_.ov(d,76,_.O3(H))}]),
pp:new UW([3],[function(d,H){_.gk(d,52,H)}]),
pt:new UW([4],[function(d,H){_.UY(d,111,H)}]),
q:new UW([4],[function(d,H){_.UY(d,28,H)}]),
r:new UW([3,0],[function(d,H){_.gk(d,6,H)},
function(d,H){_.Xh(d,26,H)}]),
ra:new UW([3],[function(d,H){_.gk(d,103,H)}]),
rf:new UW([3],[function(d,H){_.gk(d,100,H)}]),
rg:new UW([3],[function(d,H){_.gk(d,59,H)}]),
rh:new UW([3],[function(d,H){_.gk(d,49,H)}]),
rj:new UW([3],[function(d,H){_.gk(d,57,H)}]),
ro:new UW([2],[function(d,H){_.ov(d,78,_.O3(H))}]),
rp:new UW([3],[function(d,H){_.gk(d,58,H)}]),
rw:new UW([3],[function(d,H){_.gk(d,35,H)}]),
rwa:new UW([3],[function(d,H){_.gk(d,64,H)}]),
rwu:new UW([3],[function(d,H){_.gk(d,41,H)}]),
s:new UW([3,0],[function(d,H){_.gk(d,33,H)},
function(d,H){d.setSize(H)}]),
sb:new UW([0],[function(d,H){_.Xh(d,110,H)}]),
sc:new UW([0],[function(d,H){_.Xh(d,89,H)}]),
sg:new UW([3],[function(d,H){_.gk(d,82,H)}]),
sl:new UW([0],[function(d,H){_.Xh(d,109,H)}]),
sm:new UW([3],[function(d,H){_.gk(d,93,H)}]),
t:new UW([4],[function(d,H){d.setToken(H)}]),
tm:new UW([3],[function(d,H){_.gk(d,113,H)}]),
u:new UW([3],[function(d,H){_.gk(d,18,H)}]),
ut:new UW([3],[function(d,H){_.gk(d,45,H)}]),
v:new UW([0],[function(d,H){_.Xh(d,62,H)}]),
vb:new UW([0],[function(d,H){_.Ln(d,68,H)}]),
vf:new UW([4],[function(d,H){_.UY(d,102,H)}]),
vl:new UW([0],[function(d,H){_.Ln(d,69,H)}]),
vm:new UW([3],[function(d,H){_.gk(d,98,H)}]),
w:new UW([0],[function(d,H){_.Xh(d,12,H)}]),
x:new UW([0],[function(d,H){_.Xh(d,9,H)}]),
y:new UW([0],[function(d,H){_.Xh(d,10,H)}]),
ya:new UW([2],[function(d,H){_.ov(d,77,_.O3(H))}]),
z:new UW([0],[function(d,H){_.Xh(d,11,H)}])};
oig.prototype.parse=function(d){var H=new v3Z,K=new v3Z;if(d=="")d=!0;else{d=d.split("-");for(var c=!0,p=0;p<d.length;p++){var g=d[p];if(g.length==0)c=!1;else{var a=g,e=!1;var k=a;var C=a.charAt(0);C!=C.toLowerCase()&&(e=!0,k=a.charAt(0).toLowerCase()+a.substring(1));var R=c4T;for(C=1;C<=k.length;++C){var V=R,U=k.substring(0,C);if(U.length==0?V.isEmpty():!Hbb(V,U))break}k=C==1?null:(k=R.get(k.substring(0,C-1)))?{option:a.substring(0,C-1),value:a.substring(C-1),signed:e,attributes:k}:null;if(k){a=
[];e=[];C=!1;for(R=0;R<k.attributes.types.length;R++){V=k.attributes.types[R];var L=k.value;U=p;if(k.signed&&V==1)for(var w=L.length;w<12&&U<d.length-1;)L+="-"+d[U+1],w=L.length,++U;else if(V==2)for(;U<d.length-1&&d[U+1].match(/^[\d\.]/);)L+="-"+d[U+1],++U;w=k.attributes.setters[R];L=gF5(this,V)(k.option,L,H,K,w);if(L===null){C=!0;p=U;break}else a.push(V),e.push(L)}if(!C)for(k=0;k<e.length;k++)R=a[k],L=e[k],ibT(this,R)(g,L);c=c&&C}else c=!1}}d=c}return new GpG(H,K,d)};
var hr=function(d,H,K,c,p,g){p(K,H);d=d.charAt(0);g=g(d==d.toUpperCase());p(c,g)};
_.G=oig.prototype;_.G.parseAndSetIntOption_=function(d,H,K,c,p){if(H=="")return 0;isFinite(H)&&(H=String(H));H=typeof H==="string"?/^\s*-?0x/i.test(H)?parseInt(H,16):parseInt(H,10):NaN;if(isNaN(H))return 1;hr(d,H,K,c,p,Number);return null};
_.G.logIntParseError_=function(){};
_.G.parseAndSetFloatOption_=function(d,H,K,c,p){if(H=="")return 0;var g=Number(H);H=g==0&&_.oE(H)?NaN:g;if(isNaN(H))return 1;hr(d,H,K,c,p,Number);return null};
_.G.logFloatParseError_=function(){};
_.G.parseAndSetBoolOption_=function(d,H,K,c,p){if(H!="")return 2;hr(d,!0,K,c,p,Boolean);return null};
_.G.logBoolParseError_=function(){};
_.G.parseAndSetStringOption_=function(d,H,K,c,p){if(H=="")return 0;hr(d,H,K,c,p,function(g){return g?"1":""});
return null};
_.G.logStringParseError_=function(){};
_.G.parseAndSetUint64Base64Option_=function(d,H,K,c,p){if(H=="")return 0;hr(d,H,K,c,p,function(g){return g?1:0});
return null};
var gF5=function(d,H){switch(H){case 0:return(0,_.LA)(d.parseAndSetIntOption_,d);case 2:return(0,_.LA)(d.parseAndSetFloatOption_,d);case 3:return(0,_.LA)(d.parseAndSetBoolOption_,d);case 4:return(0,_.LA)(d.parseAndSetStringOption_,d);case 1:return(0,_.LA)(d.parseAndSetUint64Base64Option_,d);default:return function(){}}},ibT=function(d,H){switch(H){case 0:return(0,_.LA)(d.logIntParseError_,d);
case 2:return(0,_.LA)(d.logFloatParseError_,d);case 3:return(0,_.LA)(d.logBoolParseError_,d);case 4:case 1:return(0,_.LA)(d.logStringParseError_,d);default:return function(){}}},GpG=function(d,H,K){this.valueProto_=d;
this.signatureFlagProto_=H;this.JSC$19458_valid_=K};
GpG.prototype.isValid=function(){return this.JSC$19458_valid_};var p5U=function(d){this.JSC$19459_parser_=null;this.JSC$19459_components_=[];this.JSC$19459_parsedOptions_=null;oFv(this,d)},q4q=function(d){d.JSC$19459_parser_==null&&(d.JSC$19459_parser_=new oig);
return d.JSC$19459_parser_},oFv=function(d,H){d.JSC$19459_parsedOptions_=H?typeof H==="string"?q4q(d).parse(H):H:q4q(d).parse("")},Lu=function(d,H){return d==H?!1:!0};
_.G=p5U.prototype;_.G.JSC$19461_setCrop=function(d){d=d||void 0;var H=this.JSC$19459_parsedOptions_,K=H.valueProto_;Lu(d,_.wK(K,2),_.wK(H.signatureFlagProto_,2))&&_.gk(K,2,d);return this};
_.G.JSC$19461_setCircleCrop=function(d){d=d||void 0;var H=this.JSC$19459_parsedOptions_,K=H.valueProto_;Lu(d,zl(K,51),zl(H.signatureFlagProto_,51))&&_.gk(K,51,d);return this};
_.G.JSC$19461_setImageCrop=function(d){d=d||void 0;var H=this.JSC$19459_parsedOptions_,K=H.valueProto_;Lu(d,zl(K,32),zl(H.signatureFlagProto_,32))&&_.gk(K,32,d);return this};
_.G.JSC$19461_setHeight=function(d){var H=this.JSC$19459_parsedOptions_,K=H.valueProto_;Lu(d,K.getHeight(),H.signatureFlagProto_.getHeight())&&_.Xh(K,13,d);return this};
_.G.setCenterCrop=function(d){d=d||void 0;var H=this.JSC$19459_parsedOptions_,K=H.valueProto_;Lu(d,_.wK(K,20),_.wK(H.signatureFlagProto_,20))&&K.setCenterCrop(d);return this};
_.G.JSC$19461_setSmartCrop=function(d){d=d||void 0;var H=this.JSC$19459_parsedOptions_,K=H.valueProto_;Lu(d,_.wK(K,19),_.wK(H.signatureFlagProto_,19))&&_.gk(K,19,d);return this};
_.G.JSC$19461_setPad=function(d){d=d||void 0;var H=this.JSC$19459_parsedOptions_,K=H.valueProto_;Lu(d,zl(K,60),zl(H.signatureFlagProto_,60))&&_.gk(K,60,d);return this};
_.G.JSC$19461_setSmartCropUseFace=function(d){d=d||void 0;var H=this.JSC$19459_parsedOptions_,K=H.valueProto_;Lu(d,_.wK(K,67),_.wK(H.signatureFlagProto_,67))&&_.gk(K,67,d);return this};
_.G.JSC$19461_setSmartCropNoClip=function(d){d=d||void 0;var H=this.JSC$19459_parsedOptions_,K=H.valueProto_;Lu(d,_.wK(K,52),_.wK(H.signatureFlagProto_,52))&&_.gk(K,52,d);return this};
_.G.setSize=function(d){var H=this.JSC$19459_parsedOptions_,K=H.valueProto_;Lu(d,K.getSize(),H.signatureFlagProto_.getSize())&&K.setSize(d);return this};
_.G.setToken=function(d){d=d||void 0;var H=this.JSC$19459_parsedOptions_,K=H.valueProto_;Lu(d,K.getToken(),H.signatureFlagProto_.getToken())&&K.setToken(d);return this};
_.G.JSC$19461_setWidth=function(d){var H=this.JSC$19459_parsedOptions_,K=H.valueProto_;Lu(d,K.getWidth(),H.signatureFlagProto_.getWidth())&&_.Xh(K,12,d);return this};
_.G.clearOptions=function(){oFv(this,"");return this};
_.G.build=function(){this.JSC$19459_components_.length=0;var d=this.JSC$19459_parsedOptions_,H=d.valueProto_;d=d.signatureFlagProto_;M9(this,"s",H.getSize(),d.getSize());M9(this,"w",H.getWidth(),d.getWidth());m0(this,"c",_.wK(H,2),_.wK(d,2));m0(this,"d",_.wK(H,3),_.wK(d,3));M9(this,"h",H.getHeight(),d.getHeight());m0(this,"s",zl(H,33),zl(d,33));m0(this,"h",H.getHtml(),d.getHtml());m0(this,"p",_.wK(H,19),_.wK(d,19));m0(this,"pp",_.wK(H,52),_.wK(d,52));m0(this,"pf",_.wK(H,67),_.wK(d,67));m0(this,"n",
_.wK(H,20),_.wK(d,20));M9(this,"r",XC(H,26),XC(d,26));m0(this,"r",_.wK(H,6),_.wK(d,6));m0(this,"o",zl(H,27),zl(d,27));var K=_.mt(H,7,_.xV);w1(this,"o",K,_.mt(d,7,_.xV));K=_.mt(H,29,_.xV);w1(this,"j",K,_.mt(d,29,_.xV));M9(this,"x",XC(H,9),XC(d,9));M9(this,"y",XC(H,10),XC(d,10));M9(this,"z",XC(H,11),XC(d,11));m0(this,"g",_.wK(H,14),_.wK(d,14));M9(this,"e",XC(H,15),XC(d,15));w1(this,"f",_.k1(H,16),_.k1(d,16));m0(this,"k",zl(H,17),zl(d,17));m0(this,"u",zl(H,18),!0);m0(this,"ut",zl(H,45),!0);m0(this,"i",
zl(H,22),!0);m0(this,"a",zl(H,21),zl(d,21));m0(this,"b",_.wK(H,23),_.wK(d,23));M9(this,"b",XC(H,38),XC(d,38));M9(this,"c",XC(H,39),XC(d,39),16,8);w1(this,"q",_.k1(H,28),_.k1(d,28));m0(this,"fh",zl(H,30),zl(d,30));m0(this,"fv",zl(H,31),zl(d,31));m0(this,"fg",_.wK(H,34),_.wK(d,34));m0(this,"ci",zl(H,32),zl(d,32));w1(this,"t",H.getToken(),d.getToken());w1(this,"nt0",_.k1(H,36),_.k1(d,36));m0(this,"rw",_.wK(H,35),_.wK(d,35));m0(this,"rwu",_.wK(H,41),_.wK(d,41));m0(this,"rwa",_.wK(H,64),_.wK(d,64));m0(this,
"nw",_.wK(H,48),_.wK(d,48));m0(this,"rh",_.wK(H,49),_.wK(d,49));m0(this,"no",_.wK(H,37),_.wK(d,37));m0(this,"ns",zl(H,40),zl(d,40));M9(this,"k",XC(H,42),XC(d,42));M9(this,"p",XC(H,43),XC(d,43));M9(this,"l",XC(H,44),XC(d,44));M9(this,"v",XC(H,62),XC(d,62));m0(this,"nu",zl(H,46),zl(d,46));m0(this,"ft",zl(H,50),zl(d,50));m0(this,"cc",zl(H,51),zl(d,51));m0(this,"nd",zl(H,53),zl(d,53));m0(this,"ip",zl(H,54),zl(d,54));m0(this,"nc",zl(H,55),zl(d,55));M9(this,"a",XC(H,56),XC(d,56));m0(this,"rj",zl(H,57),
zl(d,57));m0(this,"rp",zl(H,58),zl(d,58));m0(this,"rg",zl(H,59),zl(d,59));m0(this,"pd",zl(H,60),zl(d,60));m0(this,"pa",zl(H,61),zl(d,61));M9(this,"m",XC(H,63),XC(d,63));M9(this,"vb",JG(H,68),JG(d,68));M9(this,"vl",JG(H,69),JG(d,69));m0(this,"lf",zl(H,65),zl(d,65));m0(this,"mv",zl(H,66),zl(d,66));m0(this,"id",zl(H,70),zl(d,70));M9(this,"ic",XC(H,71),!0);m0(this,"pg",_.wK(H,72),_.wK(d,72));m0(this,"mo",zl(H,73),zl(d,73));m0(this,"al",zl(H,74),zl(d,74));M9(this,"iv",JG(H,75),JG(d,75));M9(this,"pi",sN(H,
76),sN(d,76));M9(this,"ya",sN(H,77),sN(d,77));M9(this,"ro",sN(H,78),sN(d,78));M9(this,"fo",sN(H,79),sN(d,79));m0(this,"df",zl(H,80),zl(d,80));w1(this,"mm",_.k1(H,81),_.k1(d,81));m0(this,"sg",zl(H,82),zl(d,82));m0(this,"gd",zl(H,83),zl(d,83));m0(this,"fm",zl(H,84),zl(d,84));M9(this,"ba",XC(H,85),XC(d,85));M9(this,"br",XC(H,86),XC(d,86));M9(this,"bc",H.getBackgroundColor(),d.getBackgroundColor(),16,8);M9(this,"pc",XC(H,88),XC(d,88),16,8);M9(this,"sc",XC(H,89),XC(d,89),16,8);m0(this,"dv",zl(H,90),zl(d,
90));m0(this,"md",zl(H,91),zl(d,91));M9(this,"cp",XC(H,92),XC(d,92));m0(this,"sm",zl(H,93),zl(d,93));M9(this,"cv",XC(H,94),XC(d,94));m0(this,"ng",zl(H,95),zl(d,95));m0(this,"il",zl(H,96),zl(d,96));m0(this,"lo",zl(H,97),zl(d,97));m0(this,"vm",zl(H,98),zl(d,98));w1(this,"dc",_.k1(H,99),_.k1(d,99));m0(this,"rf",zl(H,100),zl(d,100));w1(this,"vf",_.k1(H,102),_.k1(d,102));m0(this,"ra",_.wK(H,103),_.wK(d,103));m0(this,"ckm",zl(H,104),zl(d,104));m0(this,"gm",zl(H,105),zl(d,105));m0(this,"ngm",zl(H,106),zl(d,
106));M9(this,"em",XC(H,107),XC(d,107));m0(this,"cr",zl(H,108),zl(d,108));M9(this,"sl",H.getStoryboardLevel(),d.getStoryboardLevel());M9(this,"sb",XC(H,110),XC(d,110));w1(this,"pt",_.k1(H,111),_.k1(d,111));w1(this,"gce",_.k1(H,112),_.k1(d,112));m0(this,"tm",zl(H,113),zl(d,113));m0(this,"ntm",zl(H,114),zl(d,114));M9(this,"mp",XC(H,115),XC(d,115));return this.JSC$19459_components_.join("-")};
var M9=function(d,H,K,c,p,g){if(K!=null){var a=p==void 0||p!=10&&p!=16?10:p;K=Number(K).toString(a);p=new RQT;p.append(a==16?"0x":"");a=p.append;g==void 0?g="":(g-=K.length,g=g<=0?"":(0,_.rCg)("0",g));a.call(p,g);p.append(K);aRb(d,H,p.toString(),!!Number(c))}},m0=function(d,H,K,c){K&&aRb(d,H,"",!!c)},w1=function(d,H,K,c){K&&aRb(d,H,String(K),!!Number(c))},aRb=function(d,H,K,c){c&&(H=H.charAt(0).toUpperCase()+H.substring(1));
d.JSC$19459_components_.push(H+K)};_.K1(OK,p5U);_.G=OK.prototype;_.G.JSC$19461_setCrop=function(d){d&&Pc(this);return OK.superClass_.JSC$19461_setCrop.call(this,d)};
_.G.JSC$19461_setHeight=function(d){d=d==null||d<0?void 0:d;d!=null&&this.setSize();return OK.superClass_.JSC$19461_setHeight.call(this,d)};
_.G.JSC$19461_setImageCrop=function(d){d&&Pc(this);return OK.superClass_.JSC$19461_setImageCrop.call(this,d)};
_.G.JSC$19461_setCircleCrop=function(d){d&&Pc(this);return OK.superClass_.JSC$19461_setCircleCrop.call(this,d)};
_.G.setSize=function(d){_.y4(d)&&(d=Math.max(d.width,d.height));d=d==null||d<0?void 0:d;d!=null&&(this.JSC$19461_setWidth(),this.JSC$19461_setHeight());return OK.superClass_.setSize.call(this,d)};
_.G.JSC$19461_setSmartCrop=function(d){d&&Pc(this);return OK.superClass_.JSC$19461_setSmartCrop.call(this,d)};
_.G.JSC$19461_setSmartCropNoClip=function(d){d&&Pc(this);return OK.superClass_.JSC$19461_setSmartCropNoClip.call(this,d)};
_.G.JSC$19461_setSmartCropUseFace=function(d){d&&Pc(this);return OK.superClass_.JSC$19461_setSmartCropUseFace.call(this,d)};
_.G.setCenterCrop=function(d){d&&Pc(this);return OK.superClass_.setCenterCrop.call(this,d)};
_.G.JSC$19461_setPad=function(d){d&&Pc(this);return OK.superClass_.JSC$19461_setPad.call(this,d)};
_.G.JSC$19461_setWidth=function(d){d=d==null||d<0?void 0:d;d!=null&&this.setSize();return OK.superClass_.JSC$19461_setWidth.call(this,d)};
var lRZ=function(d){d.clearOptions();var H=d.JSC$19459_parsedOptions_,K=H.valueProto_;Lu(!0,_.wK(K,3),_.wK(H.signatureFlagProto_,3))&&_.gk(K,3,!0);return d},Pc=function(d){d.setCenterCrop();
d.JSC$19461_setCircleCrop();d.JSC$19461_setCrop();d.JSC$19461_setImageCrop();d.JSC$19461_setPad();d.JSC$19461_setSmartCrop();d.JSC$19461_setSmartCropNoClip();d.JSC$19461_setSmartCropUseFace()};
OK.prototype.build=function(){var d=this.JSC$19459_parsedOptions_.valueProto_;zl(d,18)||zl(d,45)?d.getSize()||this.setSize(0):(d=this.JSC$19459_parsedOptions_.valueProto_,d.getSize()||d.getWidth()||d.getHeight()||(this.setSize(),this.JSC$19461_setHeight(),this.JSC$19461_setWidth(),Pc(this)));return OK.superClass_.build.call(this)};var enZ=/^[^\/]*\/\//,uL=function(d,H){H=H===void 0?!1:H;this.original_=d;this.originalPrefix_="";(d=this.original_.match(enZ))&&d[0]?(this.originalPrefix_=d[0],d=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):d="http://"+this.original_;this.uri_=_.Qe(d,!0);this.isFreeformUrl_=H;this.JSC$19465_valid_=!0;this.obfuscated_=!1},kpS=function(d,H){d.JSC$19467_pathPrefix_=d.JSC$19467_pathPrefix_?d.JSC$19467_pathPrefix_+("/"+H):H},IW=function(d){if(d.JSC$19467_components_==
void 0){var H=d.uri_.getPath().substring(1);
d.JSC$19467_pathPrefix_=null;if(d.isFreeformUrl_){d.JSC$19467_components_=[];if((H.match(/=/g)||[]).length>1)return d.JSC$19465_valid_=!1,d.JSC$19467_components_;var K=H.indexOf("=");K!=-1?(d.JSC$19467_components_.push(H.substr(0,K)),d.JSC$19467_components_.push(H.substr(K+1))):d.JSC$19467_components_.push(H);return d.JSC$19467_components_}d.JSC$19467_components_=H.split("/");H=d.JSC$19467_components_.length;H>2&&d.JSC$19467_components_[0]=="u"&&(kpS(d,d.JSC$19467_components_[0]+"/"+d.JSC$19467_components_[1]),
d.JSC$19467_components_.shift(),d.JSC$19467_components_.shift(),H-=2);if(H==0||H==4||H>7)return d.JSC$19465_valid_=!1,d.JSC$19467_components_;if(H==2)kpS(d,d.JSC$19467_components_[0]);else if(d.JSC$19467_components_[0]=="image")kpS(d,d.JSC$19467_components_[0]);else if(H==7||H==3)return d.JSC$19465_valid_=!1,d.JSC$19467_components_;if(H<=3){d.obfuscated_=!0;H==3&&(kpS(d,d.JSC$19467_components_[1]),d.JSC$19467_components_.shift(),--H);--H;K=d.JSC$19467_components_[H];var c=K.indexOf("=");c!=-1&&(d.JSC$19467_components_[H]=
K.substr(0,c),d.JSC$19467_components_.push(K.substr(c+1)))}}return d.JSC$19467_components_};
uL.prototype.isValid=function(){IW(this);return this.JSC$19465_valid_};
uL.prototype.isObfuscated=function(){IW(this);return this.obfuscated_};
var xYG=function(d){IW(d);return d.isFreeformUrl_},r1=function(d){IW(d);
d.JSC$19467_pathPrefix_==void 0&&(d.JSC$19467_pathPrefix_=null);return d.JSC$19467_pathPrefix_},nFb=function(d){switch(IW(d).length){case 7:return!0;
case 6:return r1(d)==null;case 5:return!1;case 3:return!0;case 2:return r1(d)==null;case 1:return!1;default:return!1}},Wc=function(d,H){if(xYG(d))a:{switch(H){case 7:H=0;
break;case 4:if(!nFb(d)){d=null;break a}H=1;break;default:d=null;break a}d=IW(d)[H]}else if(d.isObfuscated())a:{var K=r1(d)!=null?1:0;switch(H){case 6:H=K;break;case 4:if(!nFb(d)){d=null;break a}H=1+K;break;default:d=null;break a}d=IW(d)[H]}else a:{K=r1(d)!=null?1:0;switch(H){case 0:H=K;break;case 1:H=1+K;break;case 2:H=2+K;break;case 3:H=3+K;break;case 4:if(!nFb(d)){d=null;break a}H=4+K;break;case 5:H=nFb(d)?1:0;H=4+K+H;break;default:d=null;break a}d=IW(d)[H]}return d};
uL.prototype.getOptions=function(){this.options_==void 0&&(this.options_=Wc(this,4));return this.options_};var Ge0=function(){};
Ge0.prototype.parse=function(d,H){return new git(d,H===void 0?!1:H)};
var git=function(d,H){uL.call(this,d,H===void 0?!1:H)};
_.m(git,uL);_.K1(SC,OK);var imq;SC.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
SC.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var d=SC.superClass_.build.call(this),H=[];r1(this.parsedImageUrl_)!=null&&H.push(r1(this.parsedImageUrl_));var K=xYG(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var c=this.parsedImageUrl_;c.obfuscatedData_==void 0&&(c.obfuscatedData_=Wc(c,6));H.push(c.obfuscatedData_+(d?"="+d:""))}else if(K){c=H.push;var p=this.parsedImageUrl_;p.freeformUrlPath_===void 0&&(p.freeformUrlPath_=Wc(p,
7));c.call(H,p.freeformUrlPath_);d&&H.push(d)}else c=H.push,p=this.parsedImageUrl_,p.obfuscatedGaiaId_==void 0&&(p.obfuscatedGaiaId_=Wc(p,0)),c.call(H,p.obfuscatedGaiaId_),c=H.push,p=this.parsedImageUrl_,p.photoId_==void 0&&(p.photoId_=Wc(p,1)),c.call(H,p.photoId_),c=H.push,p=this.parsedImageUrl_,p.imageVersion_==void 0&&(p.imageVersion_=Wc(p,2)),c.call(H,p.imageVersion_),c=H.push,p=this.parsedImageUrl_,p.signature_==void 0&&(p.signature_=Wc(p,3)),c.call(H,p.signature_),d&&H.push(d),d=H.push,c=this.parsedImageUrl_,
c.filename_==void 0&&(c.filename_=Wc(c,5)),d.call(H,c.filename_);H=K?H.join("="):H.join("/");H=_.Qe(this.protocolPrefix_+this.JSC$19473_domain_+"/"+H+(this.JSC$19473_query_?"?"+this.JSC$19473_query_:"")).toString();H.startsWith("%3a//")&&(H=H.replace("%3a//","://"));return H};var CJZ=_.y$(["viewBox"]),RnZ=_.y$(["width"]),Vqj=_.y$(["height"]),UYO=_.y$(["fill"]),hnT=_.y$(["id"]),Lag=_.y$(["x"]),Mqj=_.y$(["y"]);qbZ.prototype.getLength=function(){return this.parsedData.length};
qbZ.prototype.write=function(d){for(var H=0,K=this.parsedData.length;H<K;H++)d.put(this.parsedData[H],8)};
var CO1=function(d,H){var K=new qbZ(H);d.dataList.push(K);K=d.errorCorrectLevel;var c=1,p=encodeURI(H).toString().replace(/%[0-9a-fA-F]{2}/g,"a");H=p.length+(p.length!=H?3:0);p=0;for(var g=Bc.length;p<=g;p++){var a=0;switch(K){case 1:a=Bc[p][0];break;case 0:a=Bc[p][1];break;case 3:a=Bc[p][2];break;case 2:a=Bc[p][3]}if(H<=a)break;else c++}if(c>Bc.length)throw Error("yk");d.typeNumber=c;d.dataCache=null};
a80.prototype.isDark=function(d,H){if(d<0||this.moduleCount<=d||H<0||this.moduleCount<=H)throw Error("qk`"+d+"`"+H);return this.modules[d][H]};
for(var RRq=function(d,H,K){d.moduleCount=d.typeNumber*4+17;d.modules=Array(d.moduleCount);for(var c=0;c<d.moduleCount;c++){d.modules[c]=Array(d.moduleCount);for(var p=0;p<d.moduleCount;p++)d.modules[c][p]=null}mYU(d,0,0);mYU(d,d.moduleCount-7,0);mYU(d,0,d.moduleCount-7);c=wqg[d.typeNumber-1];for(p=0;p<c.length;p++)for(var g=0;g<c.length;g++){var a=c[p],e=c[g];if(d.modules[a][e]==null)for(var k=-2;k<=2;k++)for(var C=-2;C<=2;C++)d.modules[a+k][e+C]=k==-2||k==2||C==-2||C==2||k==0&&C==0?!0:!1}for(c=
8;c<d.moduleCount-8;c++)d.modules[c][6]==null&&(d.modules[c][6]=c%2==0);for(c=8;c<d.moduleCount-8;c++)d.modules[6][c]==null&&(d.modules[6][c]=c%2==0);c=d.errorCorrectLevel<<3|K;for(p=c<<10;zy(p)-zy(1335)>=0;)p^=1335<<zy(p)-zy(1335);c=(c<<10|p)^21522;for(p=0;p<15;p++)g=!H&&(c>>p&1)==1,p<6?d.modules[p][8]=g:p<8?d.modules[p+1][8]=g:d.modules[d.moduleCount-15+p][8]=g;for(p=0;p<15;p++)g=!H&&(c>>p&1)==1,p<8?d.modules[8][d.moduleCount-p-1]=g:p<9?d.modules[8][15-p-1+1]=g:d.modules[8][15-p-1]=g;d.modules[d.moduleCount-
8][8]=!H;if(d.typeNumber>=7){c=d.typeNumber;for(p=c<<12;zy(p)-zy(7973)>=0;)p^=7973<<zy(p)-zy(7973);c=c<<12|p;for(p=0;p<18;p++)g=!H&&(c>>p&1)==1,d.modules[Math.floor(p/3)][p%3+d.moduleCount-8-3]=g;for(p=0;p<18;p++)g=!H&&(c>>p&1)==1,d.modules[p%3+d.moduleCount-8-3][Math.floor(p/3)]=g}if(d.dataCache==null){p=d.typeNumber;g=d.dataList;H=d.errorCorrectLevel;c=PJj(p,H);if(c==void 0)throw Error("xk`"+p+"`"+H);a=c.length/3;H=[];for(e=0;e<a;e++){k=c[e*3];C=c[e*3+1];for(var R=c[e*3+2],V=0;V<k;V++)H.push(new l8t(C,
R))}c=new eRv;for(a=0;a<g.length;a++)e=g[a],c.put(e.mode,4),c.put(e.getLength(),u$q(e.mode,p)),e.write(c);for(a=p=0;a<H.length;a++)p+=H[a].dataCount;if(c.length>p*8)throw Error("rk`"+c.length+"`"+p*8);for(c.length+4<=p*8&&c.put(0,4);c.length%8!=0;)IR5(c,!1);for(;!(c.length>=p*8);){c.put(236,8);if(c.length>=p*8)break;c.put(17,8)}g=p=C=0;a=Array(H.length);e=Array(H.length);for(k=0;k<H.length;k++){V=H[k].dataCount;var U=H[k].totalCount-V;p=Math.max(p,V);g=Math.max(g,U);a[k]=Array(V);for(R=0;R<a[k].length;R++)a[k][R]=
255&c.buffer[R+C];C+=V;R=U;V=new EK([1],0);for(U=0;U<R;U++)V=V.multiply(new EK([1,r40(U)],0));R=V;V=(new EK(a[k],R.getLength()-1)).mod(R);e[k]=Array(R.getLength()-1);for(R=0;R<e[k].length;R++)U=R+V.getLength()-e[k].length,e[k][R]=U>=0?V.get(U):0}for(R=c=0;R<H.length;R++)c+=H[R].totalCount;c=Array(c);for(R=C=0;R<p;R++)for(k=0;k<H.length;k++)R<a[k].length&&(c[C++]=a[k][R]);for(R=0;R<g;R++)for(k=0;k<H.length;k++)R<e[k].length&&(c[C++]=e[k][R]);d.dataCache=c}H=d.dataCache;c=-1;p=d.moduleCount-1;g=7;a=
0;for(e=d.moduleCount-1;e>0;e-=2)for(e==6&&e--;;){for(k=0;k<2;k++)d.modules[p][e-k]==null&&(C=!1,a<H.length&&(C=(H[a]>>>g&1)==1),WaU(K,p,e-k)&&(C=!C),d.modules[p][e-k]=C,g--,g==-1&&(a++,g=7));p+=c;if(p<0||d.moduleCount<=p){p-=c;c=-c;break}}},mYU=function(d,H,K){for(var c=-1;c<=7;c++)if(!(H+c<=-1||d.moduleCount<=H+c))for(var p=-1;p<=7;p++)K+p<=-1||d.moduleCount<=K+p||(d.modules[H+c][K+p]=0<=c&&c<=6&&(p==0||p==6)||0<=p&&p<=6&&(c==0||c==6)||2<=c&&c<=4&&2<=p&&p<=4?!0:!1)},VhT=function(d){for(var H=0,
K=0,c=0;c<8;c++){RRq(d,!0,c);
var p=d;for(var g=p.moduleCount,a=0,e=0;e<g;e++)for(var k=0;k<g;k++){for(var C=0,R=p.isDark(e,k),V=-1;V<=1;V++)if(!(e+V<0||g<=e+V))for(var U=-1;U<=1;U++)k+U<0||g<=k+U||(V!=0||U!=0)&&R==p.isDark(e+V,k+U)&&C++;C>5&&(a+=3+C-5)}for(e=0;e<g-1;e++)for(k=0;k<g-1;k++)if(C=0,p.isDark(e,k)&&C++,p.isDark(e+1,k)&&C++,p.isDark(e,k+1)&&C++,p.isDark(e+1,k+1)&&C++,C==0||C==4)a+=3;for(e=0;e<g;e++)for(k=0;k<g-6;k++)p.isDark(e,k)&&!p.isDark(e,k+1)&&p.isDark(e,k+2)&&p.isDark(e,k+3)&&p.isDark(e,k+4)&&!p.isDark(e,k+5)&&
p.isDark(e,k+6)&&(a+=40);for(k=0;k<g;k++)for(e=0;e<g-6;e++)p.isDark(e,k)&&!p.isDark(e+1,k)&&p.isDark(e+2,k)&&p.isDark(e+3,k)&&p.isDark(e+4,k)&&!p.isDark(e+5,k)&&p.isDark(e+6,k)&&(a+=40);for(k=C=0;k<g;k++)for(e=0;e<g;e++)p.isDark(e,k)&&C++;p=a+=Math.abs(100*C/g/g-50)/5*10;if(c==0||H>p)H=p,K=c}return K},wqg=[[],
[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,
154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],zy=function(d){for(var H=0;d!=0;)H++,d>>>=1;return H},WaU=function(d,H,K){switch(d){case 0:return(H+K)%2==0;
case 1:return H%2==0;case 2:return K%3==0;case 3:return(H+K)%3==0;case 4:return(Math.floor(H/2)+Math.floor(K/3))%2==0;case 5:return H*K%2+H*K%3==0;case 6:return(H*K%2+H*K%3)%2==0;case 7:return(H*K%3+(H+K)%2)%2==0;default:throw Error("sk`"+d);}},u$q=function(d,H){if(1<=H&&H<10)switch(d){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("tk`"+d);}else if(H<27)switch(d){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("tk`"+d);}else if(H<41)switch(d){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("tk`"+d);}else throw Error("uk`"+H);},Xn=function(d){if(d<1)throw Error("vk`"+d);
return Bpt[d]},r40=function(d){for(;d<0;)d+=255;
for(;d>=256;)d-=255;return Jr[d]},Jr=Array(256),Bpt=Array(256),znt=0;znt<8;znt++)Jr[znt]=1<<znt;
for(var sW=8;sW<256;sW++)Jr[sW]=Jr[sW-4]^Jr[sW-5]^Jr[sW-6]^Jr[sW-8];for(var Xq0=0;Xq0<255;Xq0++)Bpt[Jr[Xq0]]=Xq0;EK.prototype.get=function(d){return this.num[d]};
EK.prototype.getLength=function(){return this.num.length};
EK.prototype.multiply=function(d){for(var H=Array(this.getLength()+d.getLength()-1),K=0;K<this.getLength();K++)for(var c=0;c<d.getLength();c++)H[K+c]^=r40(Xn(this.get(K))+Xn(d.get(c)));return new EK(H,0)};
EK.prototype.mod=function(d){if(this.getLength()-d.getLength()<0)return this;for(var H=Xn(this.get(0))-Xn(d.get(0)),K=Array(this.getLength()),c=0;c<this.getLength();c++)K[c]=this.get(c);for(c=0;c<d.getLength();c++)K[c]^=r40(Xn(d.get(c))+H);return(new EK(K,0)).mod(d)};
var J4q=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,
20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,
50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,
118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,
48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,
25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],PJj=function(d,H){switch(H){case 1:return J4q[(d-1)*4];case 0:return J4q[(d-1)*4+1];case 3:return J4q[(d-1)*4+2];case 2:return J4q[(d-1)*4+3]}};
eRv.prototype.get=function(d){return(this.buffer[Math.floor(d/8)]>>>7-d%8&1)==1};
eRv.prototype.put=function(d,H){for(var K=0;K<H;K++)IR5(this,(d>>>H-K-1&1)==1)};
var IR5=function(d,H){var K=Math.floor(d.length/8);d.buffer.length<=K&&d.buffer.push(0);H&&(d.buffer[K]|=128>>>d.length%8);d.length++},Bc=[[17,
14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],
[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],nit=function(){var d=function(H,K){this.JSC$19493__el=H;this.JSC$19493__htOption=K};
d.prototype.draw=function(H){function K(R,V){R=document.createElementNS("http://www.w3.org/2000/svg",R);for(var U in V)V.hasOwnProperty(U)&&(U==="href"?_.Ncj(R,V[U]):_.jE([_.KB(CJZ),_.KB(RnZ),_.KB(Vqj),_.KB(UYO),_.KB(hnT),_.KB(Lag),_.KB(Mqj)],R,U,V[U]));return R}
var c=this.JSC$19493__htOption,p=this.JSC$19493__el,g=H.moduleCount;this.clear();var a=K("svg",{viewBox:"0 0 "+String(g)+" "+String(g),width:"100%",height:"100%",fill:c.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});p.appendChild(a);a.appendChild(K("rect",{fill:c.colorLight,width:"100%",height:"100%"}));a.appendChild(K("rect",{fill:c.colorDark,width:"1",height:"1",id:"template"}));for(var e=0;e<g;e++)for(var k=0;k<g;k++)if(H.isDark(e,k)){var C=K("use",{x:String(e),y:String(k),href:"#template"});
a.appendChild(C)}};
d.prototype.clear=function(){for(;this.JSC$19493__el.hasChildNodes();)this.JSC$19493__el.removeChild(this.JSC$19493__el.lastChild)};
return d}(),xvT=document.documentElement.tagName.toLowerCase()==="svg"?nit:typeof CanvasRenderingContext2D!="undefined"?function(){var d=function(H,K){this._bIsPainted=!1;
keg();this.JSC$19493__htOption=K;this._elCanvas=document.createElement("canvas");this._elCanvas.width=K.width;this._elCanvas.height=K.height;H.appendChild(this._elCanvas);this.JSC$19493__el=H;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$19493__el.appendChild(this._elImage);this._bSupportDataURI=null};
d.prototype._onMakeImage=function(){var H=this._elCanvas.toDataURL("image/png");this._elImage.src=H;this._elImage.style.display="block";this._elCanvas.style.display="none"};
d.prototype._safeSetDataURI=function(H,K){var c=this;c._fFail=K;c._fSuccess=H;c._bSupportDataURI===null?(H=_.x1("IMG"),K=function(){c._bSupportDataURI=!1;c._fFail&&c._fFail.call(c)},H.onabort=K,H.onerror=K,H.onload=function(){c._bSupportDataURI=!0;
c._fSuccess&&c._fSuccess.call(c)},H.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):c._bSupportDataURI===!0&&c._fSuccess?c._fSuccess.call(c):c._bSupportDataURI===!1&&c._fFail&&c._fFail.call(c)};
d.prototype.draw=function(H){var K=this._oContext,c=this.JSC$19493__htOption,p=H.moduleCount,g=c.width/p,a=c.height/p,e=Math.round(g),k=Math.round(a);this._elImage.style.display="none";this.clear();for(var C=0;C<p;C++)for(var R=0;R<p;R++){var V=H.isDark(C,R),U=R*g,L=C*a;K.strokeStyle=V?c.colorDark:c.colorLight;K.lineWidth=1;K.fillStyle=V?c.colorDark:c.colorLight;K.fillRect(U,L,g,a);K.strokeRect(Math.floor(U)+.5,Math.floor(L)+.5,e,k);K.strokeRect(Math.ceil(U)-.5,Math.ceil(L)-.5,e,k)}this._bIsPainted=
!0};
d.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
d.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
d.prototype.round=function(H){return H?Math.floor(H*1E3)/1E3:H};
return d}():function(){var d=function(H,K){this.JSC$19493__el=H;
this.JSC$19493__htOption=K};
d.prototype.draw=function(H){for(var K=this.JSC$19493__htOption,c=this.JSC$19493__el,p=H.moduleCount,g=Math.floor(K.width/p),a=Math.floor(K.height/p),e=['<table style="border:0;border-collapse:collapse;">'],k=0;k<p;k++){e.push("<tr>");for(var C=0;C<p;C++)e.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+g+"px;height:"+a+"px;background-color:"+(H.isDark(k,C)?K.colorDark:K.colorLight)+';"></td>');e.push("</tr>")}e.push("</table>");H=e.join("");H=_.VS7(_.h6M,H);_.AL(c,H);
H=c.childNodes[0];p=(K.width-H.offsetWidth)/2;g=(K.height-H.offsetHeight)/2;p>0&&g>0&&(H.style.margin=g+"px "+p+"px")};
d.prototype.clear=function(){this.JSC$19493__el.textContent=""};
return d}();
Uv0.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19496__android||this.JSC$19496__android>=3)&&this._oDrawing.makeImage()};
Uv0.prototype.clear=function(){this._oDrawing.clear()};
_.KF.QRCode=Uv0;var sGZ={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Fn=function(){};
Fn.prototype.stringify=function(d){return _.KF.JSON.stringify(d,void 0)};
Fn.prototype.parse=function(d){return _.KF.JSON.parse(d,void 0)};var Faj=function(){_.eo.call(this,"z")};
_.K1(Faj,_.eo);var ZbO=function(){_.eo.call(this,"y")};
_.K1(ZbO,_.eo);var TpG=null,QGv=function(){return TpG=TpG||new _.Rj},tqt=function(d){_.eo.call(this,"serverreachability",d)};
_.K1(tqt,_.eo);var Z3=function(d){var H=QGv();H.dispatchEvent(new tqt(H,d))},Y4Z=function(d,H){_.eo.call(this,"statevent",d);
this.stat=H};
_.K1(Y4Z,_.eo);var Ty=function(d){var H=QGv();H.dispatchEvent(new Y4Z(H,d))},Ob5=function(d,H,K,c){_.eo.call(this,"timingevent",d);
this.size=H;this.rtt=K;this.retries=c};
_.K1(Ob5,_.eo);var S4Z=function(d,H,K){var c=QGv();c.dispatchEvent(new Ob5(c,d,H,K))},QI=function(d,H){if(typeof d!=="function")throw Error("zk");
return _.KF.setTimeout(function(){d()},H)};var tr=function(){this.redactEnabled_=!0};
tr.prototype.disableRedact=function(){this.redactEnabled_=!1};
var EFG=function(d,H,K,c,p,g){d.info(function(){if(d.redactEnabled_)if(g){var a="";for(var e=g.split("&"),k=0;k<e.length;k++){var C=e[k].split("=");if(C.length>1){var R=C[0];C=C[1];var V=R.split("_");a=V.length>=2&&V[1]=="type"?a+(R+"="+C+"&"):a+(R+"=redacted&")}}}else a=null;else a=g;return"XMLHTTP REQ ("+c+") [attempt "+p+"]: "+H+"\n"+K+"\n"+a})},y40=function(d,H,K,c,p,g,a){d.info(function(){return"XMLHTTP RESP ("+c+") [ attempt "+p+"]: "+H+"\n"+K+"\n"+g+" "+a})},Y9=function(d,H,K,c){d.info(function(){return"XMLHTTP TEXT ("+
H+"): "+bbv(d,K)+(c?" "+c:"")})},Np1=function(d,H){d.info(function(){return"TIMEOUT: "+H})};
tr.prototype.debug=function(){};
tr.prototype.info=function(){};
tr.prototype.warning=function(){};
var bbv=function(d,H){if(!d.redactEnabled_)return H;if(!H)return null;try{var K=JSON.parse(H);if(K)for(var c=0;c<K.length;c++)if(Array.isArray(K[c])){var p=K[c];if(!(p.length<2)){var g=p[1];if(Array.isArray(g)&&!(g.length<1)){var a=g[0];if(a!="noop"&&a!="stop"&&a!="close")for(var e=1;e<g.length;e++)g[e]=""}}}return(0,_.wN)(K)}catch(k){return d.debug("Exception parsing expected JS array - probably was not JS"),H}};var OW=function(d,H,K,c,p){this.JSC$19518_channel_=d;this.JSC$19518_channelDebug_=H;this.sid_=K;this.JSC$19518_rid_=c;this.JSC$19518_retryId_=p||1;this.JSC$19518_eventHandler_=new _.GA(this);this.timeout_=45E3;this.JSC$19518_extraHeaders_=null;this.JSC$19518_successful_=!1;this.JSC$19518_postData_=this.JSC$19518_requestUri_=this.JSC$19518_baseUri_=this.JSC$19518_type_=this.JSC$19518_requestStartTime_=this.JSC$19518_watchDogTimeoutTime_=this.JSC$19518_watchDogTimerId_=null;this.JSC$19518_pendingMessages_=
[];this.JSC$19518_xmlHttp_=null;this.JSC$19518_xmlHttpChunkStart_=0;this.JSC$19518_lastError_=this.JSC$19518_verb_=null;this.JSC$19518_lastStatusCode_=-1;this.JSC$19518_cancelled_=!1;this.JSC$19518_readyStateChangeThrottleMs_=0;this.JSC$19518_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new DYq},DYq=function(){this.JSC$19520_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},fR0=function(d,H){switch(d){case 0:return"Non-200 return code ("+H+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},A4g={},jGv={};
OW.prototype.setTimeout=function(d){this.timeout_=d};
var ds1=function(d,H,K){d.JSC$19518_type_=1;d.JSC$19518_baseUri_=_.cQ(H.clone());d.JSC$19518_postData_=K;d.decodeChunks_=!0;vFj(d,null)},vFj=function(d,H){d.JSC$19518_requestStartTime_=Date.now();
HTv(d);d.JSC$19518_requestUri_=d.JSC$19518_baseUri_.clone();Ps(d.JSC$19518_requestUri_,"t",d.JSC$19518_retryId_);d.JSC$19518_xmlHttpChunkStart_=0;var K=d.JSC$19518_channel_.JSC$19537_supportsCrossDomainXhrs_;d.fetchResponseState_=new DYq;d.JSC$19518_xmlHttp_=$sZ(d.JSC$19518_channel_,K?H:null,!d.JSC$19518_postData_);d.JSC$19518_readyStateChangeThrottleMs_>0&&(d.JSC$19518_readyStateChangeThrottle_=new _.NV((0,_.LA)(d.JSC$19522_xmlHttpHandler_,d,d.JSC$19518_xmlHttp_),d.JSC$19518_readyStateChangeThrottleMs_));
d.JSC$19518_eventHandler_.listen(d.JSC$19518_xmlHttp_,"readystatechange",d.JSC$19522_readyStateChangeHandler_);H=d.JSC$19518_extraHeaders_?_.rs.clone(d.JSC$19518_extraHeaders_):{};d.JSC$19518_postData_?(d.JSC$19518_verb_||(d.JSC$19518_verb_="POST"),H["Content-Type"]="application/x-www-form-urlencoded",d.JSC$19518_xmlHttp_.send(d.JSC$19518_requestUri_,d.JSC$19518_verb_,d.JSC$19518_postData_,H)):(d.JSC$19518_verb_="GET",d.JSC$19518_xmlHttp_.send(d.JSC$19518_requestUri_,d.JSC$19518_verb_,null,H));Z3(1);
EFG(d.JSC$19518_channelDebug_,d.JSC$19518_verb_,d.JSC$19518_requestUri_,d.JSC$19518_rid_,d.JSC$19518_retryId_,d.JSC$19518_postData_)};
OW.prototype.JSC$19522_readyStateChangeHandler_=function(d){d=d.target;var H=this.JSC$19518_readyStateChangeThrottle_;H&&_.uA(d)==3?(this.JSC$19518_channelDebug_.debug("Throttling readystatechange."),H.fire()):this.JSC$19522_xmlHttpHandler_(d)};
OW.prototype.JSC$19522_xmlHttpHandler_=function(d){try{d==this.JSC$19518_xmlHttp_?Kqq(this):this.JSC$19518_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(H){this.JSC$19518_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),cgO(this)}finally{}};
var Kqq=function(d){var H=_.uA(d.JSC$19518_xmlHttp_),K=d.JSC$19518_xmlHttp_.JSC$9767_lastErrorCode_,c=d.JSC$19518_xmlHttp_.getStatus();if(!(H<3||H==3&&!cgO(d))){d.JSC$19518_cancelled_||H!=4||K==7||(K==8||c<=0?Z3(3):Z3(2));pU1(d);var p=d.JSC$19518_xmlHttp_.getStatus();d.JSC$19518_lastStatusCode_=p;K=gqv(d);cgO(d)||d.JSC$19518_channelDebug_.debug(function(){return"No response text for uri "+d.JSC$19518_requestUri_+" status "+p});
d.JSC$19518_successful_=p==200;y40(d.JSC$19518_channelDebug_,d.JSC$19518_verb_,d.JSC$19518_requestUri_,d.JSC$19518_rid_,d.JSC$19518_retryId_,H,p);if(d.JSC$19518_successful_){if(d.decodeInitialResponse_&&!d.initialResponseDecoded_)if(c=iTg(d))Y9(d.JSC$19518_channelDebug_,d.JSC$19518_rid_,c,"Initial handshake response via X-HTTP-Initial-Response"),d.initialResponseDecoded_=!0,G8O(d,c);else{d.JSC$19518_successful_=!1;d.JSC$19518_lastError_=3;Ty(12);d.JSC$19518_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
d.JSC$19518_rid_+")");Sg(d);EW(d);return}d.decodeChunks_?oq5(d,H,K):(Y9(d.JSC$19518_channelDebug_,d.JSC$19518_rid_,K,null),G8O(d,K));H==4&&Sg(d);d.JSC$19518_successful_&&!d.JSC$19518_cancelled_&&(H==4?qvZ(d.JSC$19518_channel_,d):(d.JSC$19518_successful_=!1,HTv(d)))}else QDb(d.JSC$19518_xmlHttp_),p==400&&K.indexOf("Unknown SID")>0?(d.JSC$19518_lastError_=3,Ty(12),d.JSC$19518_channelDebug_.warning("XMLHTTP Unknown SID ("+d.JSC$19518_rid_+")")):(d.JSC$19518_lastError_=0,Ty(13),d.JSC$19518_channelDebug_.warning("XMLHTTP Bad status "+
p+" ("+d.JSC$19518_rid_+")")),Sg(d),EW(d)}},iTg=function(d){return d.JSC$19518_xmlHttp_&&(d=zI(d.JSC$19518_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.oE(d)?d:null},gqv=function(d){if(!ah0(d))return d.JSC$19518_xmlHttp_.getResponseText();
var H=d.JSC$19518_xmlHttp_.getResponse();if(H==="")return"";var K="",c=H.length,p=_.uA(d.JSC$19518_xmlHttp_)==4;if(!d.fetchResponseState_.JSC$19520_textDecoder){if(typeof TextDecoder==="undefined")return Sg(d),EW(d),"";d.fetchResponseState_.JSC$19520_textDecoder=new _.KF.TextDecoder}for(var g=0;g<c;g++)d.fetchResponseState_.responseArrivedForFetch=!0,K+=d.fetchResponseState_.JSC$19520_textDecoder.decode(H[g],{stream:!(p&&g==c-1)});H.length=0;d.fetchResponseState_.responseBuffer+=K;d.JSC$19518_xmlHttpChunkStart_=
0;return d.fetchResponseState_.responseBuffer},cgO=function(d){return d.JSC$19518_xmlHttp_?d.fetchResponseState_.responseArrivedForFetch?!0:!(!d.JSC$19518_xmlHttp_.getResponseText()&&!d.JSC$19518_xmlHttp_.getResponse()):!1},ah0=function(d){return d.JSC$19518_xmlHttp_?d.JSC$19518_verb_=="GET"&&d.JSC$19518_type_!=2&&d.JSC$19518_channel_.usesFetchStreams_:!1},oq5=function(d,H,K){for(var c=!0,p;!d.JSC$19518_cancelled_&&d.JSC$19518_xmlHttpChunkStart_<K.length;)if(p=lhq(d,K),p==jGv){H==4&&(d.JSC$19518_lastError_=
4,Ty(14),c=!1);
Y9(d.JSC$19518_channelDebug_,d.JSC$19518_rid_,null,"[Incomplete Response]");break}else if(p==A4g){d.JSC$19518_lastError_=4;Ty(15);Y9(d.JSC$19518_channelDebug_,d.JSC$19518_rid_,K,"[Invalid Chunk]");c=!1;break}else Y9(d.JSC$19518_channelDebug_,d.JSC$19518_rid_,p,null),G8O(d,p);ah0(d)&&d.JSC$19518_xmlHttpChunkStart_!=0&&(d.fetchResponseState_.responseBuffer=d.fetchResponseState_.responseBuffer.slice(d.JSC$19518_xmlHttpChunkStart_),d.JSC$19518_xmlHttpChunkStart_=0);H!=4||K.length!=0||d.fetchResponseState_.responseArrivedForFetch||
(d.JSC$19518_lastError_=1,Ty(16),c=!1);d.JSC$19518_successful_=d.JSC$19518_successful_&&c;c?K.length>0&&!d.firstByteReceived_&&(d.firstByteReceived_=!0,H=d.JSC$19518_channel_,H.JSC$19537_backChannelRequest_==d&&H.detectBufferingProxy_&&!H.bpDetectionDone_&&(H.JSC$19537_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+K.length),eaT(H),H.bpDetectionDone_=!0,Ty(11))):(Y9(d.JSC$19518_channelDebug_,d.JSC$19518_rid_,K,"[Invalid Chunked Response]"),Sg(d),EW(d))},lhq=function(d,H){var K=
d.JSC$19518_xmlHttpChunkStart_,c=H.indexOf("\n",K);
if(c==-1)return jGv;K=Number(H.substring(K,c));if(isNaN(K))return A4g;c+=1;if(c+K>H.length)return jGv;H=H.slice(c,c+K);d.JSC$19518_xmlHttpChunkStart_=c+K;return H};
OW.prototype.cancel=function(){this.JSC$19518_cancelled_=!0;Sg(this)};
var HTv=function(d){d.JSC$19518_watchDogTimeoutTime_=Date.now()+d.timeout_;k8S(d,d.timeout_)},k8S=function(d,H){if(d.JSC$19518_watchDogTimerId_!=null)throw Error("Ak");
d.JSC$19518_watchDogTimerId_=QI((0,_.LA)(d.JSC$19522_onWatchDogTimeout_,d),H)},pU1=function(d){d.JSC$19518_watchDogTimerId_&&(_.KF.clearTimeout(d.JSC$19518_watchDogTimerId_),d.JSC$19518_watchDogTimerId_=null)};
OW.prototype.JSC$19522_onWatchDogTimeout_=function(){this.JSC$19518_watchDogTimerId_=null;var d=Date.now();d-this.JSC$19518_watchDogTimeoutTime_>=0?(Np1(this.JSC$19518_channelDebug_,this.JSC$19518_requestUri_),this.JSC$19518_type_!=2&&(Z3(3),Ty(17)),Sg(this),this.JSC$19518_lastError_=2,EW(this)):(this.JSC$19518_channelDebug_.warning("WatchDog timer called too early"),k8S(this,this.JSC$19518_watchDogTimeoutTime_-d))};
var EW=function(d){d.JSC$19518_channel_.state_==0||d.JSC$19518_cancelled_||qvZ(d.JSC$19518_channel_,d)},Sg=function(d){pU1(d);
_.AA(d.JSC$19518_readyStateChangeThrottle_);d.JSC$19518_readyStateChangeThrottle_=null;d.JSC$19518_eventHandler_.removeAll();if(d.JSC$19518_xmlHttp_){var H=d.JSC$19518_xmlHttp_;d.JSC$19518_xmlHttp_=null;H.abort();H.dispose()}};
OW.prototype.getLastError=function(){return this.JSC$19518_lastError_};
var G8O=function(d,H){try{var K=d.JSC$19518_channel_;if(K.state_!=0&&(K.JSC$19537_backChannelRequest_==d||xsO(K.forwardChannelRequestPool_,d)))if(!d.initialResponseDecoded_&&xsO(K.forwardChannelRequestPool_,d)&&K.state_==3){try{var c=K.wireCodec_.JSC$19532_parser_.parse(H)}catch(e){c=null}if(Array.isArray(c)&&c.length==3){H=c;if(H[0]==0)a:if(K.JSC$19537_channelDebug_.debug("Server claims our backchannel is missing."),K.JSC$19537_backChannelTimerId_)K.JSC$19537_channelDebug_.debug("But we are currently starting the request.");
else{if(K.JSC$19537_backChannelRequest_)if(K.JSC$19537_backChannelRequest_.JSC$19518_requestStartTime_+3E3<d.JSC$19518_requestStartTime_)nqj(K),CS1(K);else break a;else K.JSC$19537_channelDebug_.warning("We do not have a BackChannel established");Rab(K);Ty(18)}else{K.JSC$19537_lastPostResponseArrayId_=H[1];var p=K.JSC$19537_lastPostResponseArrayId_-K.JSC$19537_lastArrayId_;if(0<p){var g=H[2];K.JSC$19537_channelDebug_.debug(g+" bytes (in "+p+" arrays) are outstanding on the BackChannel");g<37500&&
K.enableStreaming_&&K.JSC$19537_backChannelRetryCount_==0&&!K.JSC$19537_deadBackChannelTimerId_&&(K.JSC$19537_deadBackChannelTimerId_=QI((0,_.LA)(K.JSC$19539_onBackChannelDead_,K),6E3))}}if(VLj(K.forwardChannelRequestPool_)<=1&&K.forwardChannelFlushedCallback_){try{K.forwardChannelFlushedCallback_()}catch(e){}K.forwardChannelFlushedCallback_=void 0}}else K.JSC$19537_channelDebug_.debug("Bad POST response data returned"),yI(K,11)}else if((d.initialResponseDecoded_||K.JSC$19537_backChannelRequest_==
d)&&nqj(K),!_.oE(H)){var a=K.wireCodec_.JSC$19532_parser_.parse(H);K.onInput_(a,d)}Z3(4)}catch(e){}};var Usb=function(d,H){this.JSC$19525_mapId=d;this.map=H;this.context=null};var haU=function(d){this.maxPoolSizeConfigured_=d||10;_.KF.PerformanceNavigationTiming?(d=_.KF.performance.getEntriesByType("navigation"),d=d.length>0&&(d[0].nextHopProtocol=="hq"||d[0].nextHopProtocol=="h2")):d=!!(_.KF.chrome&&_.KF.chrome.loadTimes&&_.KF.chrome.loadTimes()&&_.KF.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19528_maxSize_=d?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19528_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19528_request_=null;this.JSC$19528_pendingMessages_=
[]},LqZ=function(d){return d.JSC$19528_request_?!0:d.requestPool_?d.requestPool_.size>=d.JSC$19528_maxSize_:!1},VLj=function(d){return d.JSC$19528_request_?1:d.requestPool_?d.requestPool_.size:0},xsO=function(d,H){return d.JSC$19528_request_?d.JSC$19528_request_==H:d.requestPool_?d.requestPool_.has(H):!1},MLG=function(d,H){d.requestPool_?d.requestPool_.add(H):d.JSC$19528_request_=H},msv=function(d,H){d.JSC$19528_request_&&d.JSC$19528_request_==H?d.JSC$19528_request_=null:d.requestPool_&&d.requestPool_.has(H)&&
d.requestPool_.delete(H)};
haU.prototype.cancel=function(){this.JSC$19528_pendingMessages_=wUj(this);if(this.JSC$19528_request_)this.JSC$19528_request_.cancel(),this.JSC$19528_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var d=_.q(this.requestPool_.values()),H=d.next();!H.done;H=d.next())H.value.cancel();this.requestPool_.clear()}};
var wUj=function(d){if(d.JSC$19528_request_!=null)return d.JSC$19528_pendingMessages_.concat(d.JSC$19528_request_.JSC$19518_pendingMessages_);if(d.requestPool_!=null&&d.requestPool_.size!==0){var H=d.JSC$19528_pendingMessages_;d=_.q(d.requestPool_.values());for(var K=d.next();!K.done;K=d.next())H=H.concat(K.value.JSC$19518_pendingMessages_);return H}return _.tC(d.JSC$19528_pendingMessages_)},PS0=function(d,H){d.JSC$19528_pendingMessages_=d.JSC$19528_pendingMessages_.concat(H)};var uHj=function(d,H){var K=new tr;K.debug("TestLoadImage: loading "+d);if(_.KF.Image){var c=new Image;c.onload=_.hO(bL,K,"TestLoadImage: loaded",!0,H,c);c.onerror=_.hO(bL,K,"TestLoadImage: error",!1,H,c);c.onabort=_.hO(bL,K,"TestLoadImage: abort",!1,H,c);c.ontimeout=_.hO(bL,K,"TestLoadImage: timeout",!1,H,c);_.KF.setTimeout(function(){if(c.ontimeout)c.ontimeout()},1E4);
c.src=d}else H(!1)},Ihb=function(d,H){var K=new tr,c=new AbortController,p=setTimeout(function(){c.abort();
bL(K,"TestPingServer: timeout",!1,H)},1E4);
fetch(d,{signal:c.signal}).then(function(g){clearTimeout(p);g.ok?bL(K,"TestPingServer: ok",!0,H):bL(K,"TestPingServer: server error",!1,H)}).catch(function(){clearTimeout(p);
bL(K,"TestPingServer: error",!1,H)})},bL=function(d,H,K,c,p){try{d.debug(H),p&&(p.onload=null,p.onerror=null,p.onabort=null,p.ontimeout=null),c(K)}catch(g){}};var rgT=function(){this.JSC$19532_parser_=new Fn};var N9=function(d,H,K){return K&&K.internalChannelParams?K.internalChannelParams[d]||H:H},D3=function(d){this.serverVersion_=0;
this.JSC$19537_outgoingMaps_=[];this.JSC$19537_channelDebug_=new tr;this.JSC$19537_hostPrefix_=this.JSC$19537_backChannelUri_=this.JSC$19537_forwardChannelUri_=this.JSC$19537_path_=this.JSC$19537_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19537_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19537_extraHeaders_=null;this.JSC$19537_nextMapId_=this.JSC$19537_nextRid_=0;this.JSC$19537_failFast_=N9("failFast",!1,d);this.enableStreaming_=this.JSC$19537_deadBackChannelTimerId_=
this.JSC$19537_backChannelTimerId_=this.JSC$19537_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19537_lastPostResponseArrayId_=this.JSC$19537_lastArrayId_=-1;this.JSC$19537_backChannelAttemptId_=this.JSC$19537_backChannelRetryCount_=this.JSC$19537_forwardChannelRetryCount_=0;this.JSC$19537_baseRetryDelayMs_=N9("baseRetryDelayMs",5E3,d);this.JSC$19537_retryDelaySeedMs_=N9("retryDelaySeedMs",1E4,d);this.JSC$19537_forwardChannelMaxRetries_=
N9("forwardChannelMaxRetries",2,d);this.JSC$19537_forwardChannelRequestTimeoutMs_=N9("forwardChannelRequestTimeoutMs",2E4,d);this.JSC$19537_xmlHttpFactory_=d&&d.xmlHttpFactory||void 0;this.networkTestUrl_=d&&d.networkTestUrl||void 0;this.usesFetchStreams_=d&&d.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19537_supportsCrossDomainXhrs_=d&&d.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new haU(d&&d.concurrentRequestLimit);this.wireCodec_=new rgT;this.fastHandshake_=
d&&d.fastHandshake||!1;this.encodeInitMessageHeaders_=d&&d.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19537_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=d&&d.blockingHandshake||!1;d&&d.disableRedact&&this.JSC$19537_channelDebug_.disableRedact();d&&d.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
d&&d.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;d&&d.longPollingTimeout&&d.longPollingTimeout>0&&(this.longPollingTimeout_=d.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
D3.prototype.JSC$19539_channelVersion_=8;D3.prototype.state_=1;
D3.prototype.connect=function(d,H,K,c){this.JSC$19537_channelDebug_.debug("connect()");Ty(0);this.JSC$19537_path_=d;this.JSC$19537_extraParams_=H||{};K&&c!==void 0&&(this.JSC$19537_extraParams_.OSID=K,this.JSC$19537_extraParams_.OAID=c);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19537_channelDebug_.debug("connectChannel_()");d=Wqg(this,null,this.JSC$19537_path_);this.JSC$19537_channelDebug_.debug("GetForwardChannelUri: "+d);this.JSC$19537_forwardChannelUri_=d;BaS(this)};
D3.prototype.disconnect=function(){this.JSC$19537_channelDebug_.debug("disconnect()");zaZ(this);if(this.state_==3){var d=this.JSC$19537_nextRid_++,H=this.JSC$19537_forwardChannelUri_.clone();_.Y1(H,"SID",this.sid_);_.Y1(H,"RID",d);_.Y1(H,"TYPE","terminate");fu(this,H);d=new OW(this,this.JSC$19537_channelDebug_,this.sid_,d);d.JSC$19518_type_=2;d.JSC$19518_baseUri_=_.cQ(H.clone());H=!1;if(_.KF.navigator&&_.KF.navigator.sendBeacon)try{H=_.KF.navigator.sendBeacon(d.JSC$19518_baseUri_.toString(),"")}catch(K){}!H&&
_.KF.Image&&((new Image).src=d.JSC$19518_baseUri_,H=!0);H||(d.JSC$19518_xmlHttp_=$sZ(d.JSC$19518_channel_,null),d.JSC$19518_xmlHttp_.send(d.JSC$19518_baseUri_));d.JSC$19518_requestStartTime_=Date.now();HTv(d)}XUb(this)};
var CS1=function(d){d.JSC$19537_backChannelRequest_&&(eaT(d),d.JSC$19537_backChannelRequest_.cancel(),d.JSC$19537_backChannelRequest_=null)},zaZ=function(d){CS1(d);
d.JSC$19537_backChannelTimerId_&&(_.KF.clearTimeout(d.JSC$19537_backChannelTimerId_),d.JSC$19537_backChannelTimerId_=null);nqj(d);d.forwardChannelRequestPool_.cancel();d.JSC$19537_forwardChannelTimerId_&&(typeof d.JSC$19537_forwardChannelTimerId_==="number"&&_.KF.clearTimeout(d.JSC$19537_forwardChannelTimerId_),d.JSC$19537_forwardChannelTimerId_=null)};
D3.prototype.getState=function(){return this.state_};
var BaS=function(d){LqZ(d.forwardChannelRequestPool_)||d.JSC$19537_forwardChannelTimerId_||(d.JSC$19537_forwardChannelTimerId_=!0,_.UL(d.JSC$19539_onStartForwardChannelTimer_,d),d.JSC$19537_forwardChannelRetryCount_=0)},sbq=function(d,H){if(VLj(d.forwardChannelRequestPool_)>=d.forwardChannelRequestPool_.JSC$19528_maxSize_-(d.JSC$19537_forwardChannelTimerId_?1:0))return!1;
if(d.JSC$19537_forwardChannelTimerId_)return d.JSC$19537_channelDebug_.debug("Use the retry request that is already scheduled."),d.JSC$19537_outgoingMaps_=H.JSC$19518_pendingMessages_.concat(d.JSC$19537_outgoingMaps_),!0;if(d.state_==1||d.state_==2||d.JSC$19537_forwardChannelRetryCount_>=(d.JSC$19537_failFast_?0:d.JSC$19537_forwardChannelMaxRetries_))return!1;d.JSC$19537_channelDebug_.debug("Going to retry POST");d.JSC$19537_forwardChannelTimerId_=QI((0,_.LA)(d.JSC$19539_onStartForwardChannelTimer_,
d,H),JgU(d,d.JSC$19537_forwardChannelRetryCount_));d.JSC$19537_forwardChannelRetryCount_++;return!0};
D3.prototype.JSC$19539_onStartForwardChannelTimer_=function(d){if(this.JSC$19537_forwardChannelTimerId_)if(this.JSC$19537_forwardChannelTimerId_=null,this.JSC$19537_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!d){this.JSC$19537_channelDebug_.debug("open_()");this.JSC$19537_nextRid_=Math.floor(Math.random()*1E5);d=this.JSC$19537_nextRid_++;var H=new OW(this,this.JSC$19537_channelDebug_,"",d),K=this.JSC$19537_extraHeaders_;this.initHeaders_&&(K?(K=_.rs.clone(K),_.rs.extend(K,this.initHeaders_)):
K=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(H.JSC$19518_extraHeaders_=K,K=null);var c;if(this.fastHandshake_)a:{for(var p=c=0;p<this.JSC$19537_outgoingMaps_.length;p++){b:{var g=this.JSC$19537_outgoingMaps_[p];if("__data__"in g.map&&(g=g.map.__data__,typeof g==="string")){g=g.length;break b}g=void 0}if(g===void 0)break;c+=g;if(c>4096){c=p;break a}if(c===4096||p===this.JSC$19537_outgoingMaps_.length-1){c=p+1;break a}}c=1E3}else c=1E3;c=Fqj(this,H,c);
p=this.JSC$19537_forwardChannelUri_.clone();_.Y1(p,"RID",d);_.Y1(p,"CVER",22);this.httpSessionIdParam_&&_.Y1(p,"X-HTTP-Session-Id",this.httpSessionIdParam_);fu(this,p);K&&(this.encodeInitMessageHeaders_?c="headers="+_.ES(d5U(K))+"&"+c:this.httpHeadersOverwriteParam_&&HVg(p,this.httpHeadersOverwriteParam_,K));MLG(this.forwardChannelRequestPool_,H);this.blockingHandshake_&&_.Y1(p,"TYPE","init");this.fastHandshake_?(_.Y1(p,"$req",c),_.Y1(p,"SID","null"),H.decodeInitialResponse_=!0,ds1(H,p,null)):ds1(H,
p,c);this.state_=2}}else this.state_==3&&(d?ZTT(this,d):this.JSC$19537_outgoingMaps_.length==0?this.JSC$19537_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):LqZ(this.forwardChannelRequestPool_)||(ZTT(this),this.JSC$19537_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var ZTT=function(d,H){var K;H?K=H.JSC$19518_rid_:K=d.JSC$19537_nextRid_++;var c=d.JSC$19537_forwardChannelUri_.clone();_.Y1(c,"SID",d.sid_);_.Y1(c,"RID",K);_.Y1(c,"AID",d.JSC$19537_lastArrayId_);fu(d,c);d.httpHeadersOverwriteParam_&&d.JSC$19537_extraHeaders_&&HVg(c,d.httpHeadersOverwriteParam_,d.JSC$19537_extraHeaders_);K=new OW(d,d.JSC$19537_channelDebug_,d.sid_,K,d.JSC$19537_forwardChannelRetryCount_+1);d.httpHeadersOverwriteParam_===null&&(K.JSC$19518_extraHeaders_=d.JSC$19537_extraHeaders_);H&&
(d.JSC$19537_outgoingMaps_=H.JSC$19518_pendingMessages_.concat(d.JSC$19537_outgoingMaps_));H=Fqj(d,K,1E3);K.setTimeout(Math.round(d.JSC$19537_forwardChannelRequestTimeoutMs_*.5)+Math.round(d.JSC$19537_forwardChannelRequestTimeoutMs_*.5*Math.random()));MLG(d.forwardChannelRequestPool_,K);ds1(K,c,H)},fu=function(d,H){d.JSC$19537_extraParams_&&_.rs.forEach(d.JSC$19537_extraParams_,function(K,c){_.Y1(H,c,K)});
d.handler_&&_.rs.forEach({},function(K,c){_.Y1(H,c,K)})},Fqj=function(d,H,K){K=Math.min(d.JSC$19537_outgoingMaps_.length,K);
var c=d.handler_?(0,_.LA)(d.handler_.JSC$19543_badMapError,d.handler_,d):null;a:{for(var p=d.JSC$19537_outgoingMaps_,g=-1;;){var a=["count="+K];g==-1?K>0?(g=p[0].JSC$19525_mapId,a.push("ofs="+g)):g=0:a.push("ofs="+g);for(var e=!0,k=0;k<K;k++){var C=p[k].JSC$19525_mapId,R=p[k].map;C-=g;if(C<0)g=Math.max(0,p[k].JSC$19525_mapId-100),e=!1;else try{C="req"+C+"_"||"";try{var V=R instanceof Map?R:Object.entries(R);for(var U=_.q(V),L=U.next();!L.done;L=U.next()){var w=_.q(L.value),W=w.next().value,J=w.next().value,
F=J;_.y4(J)&&(F=(0,_.wN)(J));a.push(C+W+"="+encodeURIComponent(F))}}catch(Y){throw a.push(C+"type="+encodeURIComponent("_badmap")),Y;}}catch(Y){c&&c(R)}}if(e){V=a.join("&");break a}}V=void 0}d=d.JSC$19537_outgoingMaps_.splice(0,K);H.JSC$19518_pendingMessages_=d;return V},Tag=function(d){d.JSC$19537_backChannelRequest_||d.JSC$19537_backChannelTimerId_||(d.JSC$19537_backChannelAttemptId_=1,_.UL(d.JSC$19539_onStartBackChannelTimer_,d),d.JSC$19537_backChannelRetryCount_=0)},Rab=function(d){if(d.JSC$19537_backChannelRequest_||
d.JSC$19537_backChannelTimerId_||d.JSC$19537_backChannelRetryCount_>=3)return!1;
d.JSC$19537_channelDebug_.debug("Going to retry GET");d.JSC$19537_backChannelAttemptId_++;d.JSC$19537_backChannelTimerId_=QI((0,_.LA)(d.JSC$19539_onStartBackChannelTimer_,d),JgU(d,d.JSC$19537_backChannelRetryCount_));d.JSC$19537_backChannelRetryCount_++;return!0};
D3.prototype.JSC$19539_onStartBackChannelTimer_=function(){this.JSC$19537_backChannelTimerId_=null;QbU(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19537_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19537_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19537_backChannelRequest_+" "+this.handshakeRttMs_);else{var d=4*this.handshakeRttMs_;this.JSC$19537_channelDebug_.info("BP detection timer enabled: "+d);this.bpDetectionTimerId_=QI((0,_.LA)(this.onBpDetectionTimer_,
this),d)}};
D3.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19537_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19537_backChannelRequest_.JSC$19518_xmlHttp_!=null){var d=this.JSC$19537_backChannelRequest_.JSC$19518_xmlHttp_.getResponseText();d&&this.JSC$19537_channelDebug_.warning("Timer should have been cancelled : "+d)}this.JSC$19537_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Ty(10);CS1(this);QbU(this)}else this.JSC$19537_channelDebug_.warning("Invalid operation.")};
var eaT=function(d){d.bpDetectionTimerId_!=null&&(d.JSC$19537_channelDebug_.debug("Cancel the BP detection timer."),_.KF.clearTimeout(d.bpDetectionTimerId_),d.bpDetectionTimerId_=null)},QbU=function(d){d.JSC$19537_channelDebug_.debug("Creating new HttpRequest");
d.JSC$19537_backChannelRequest_=new OW(d,d.JSC$19537_channelDebug_,d.sid_,"rpc",d.JSC$19537_backChannelAttemptId_);d.httpHeadersOverwriteParam_===null&&(d.JSC$19537_backChannelRequest_.JSC$19518_extraHeaders_=d.JSC$19537_extraHeaders_);d.JSC$19537_backChannelRequest_.JSC$19518_readyStateChangeThrottleMs_=0;var H=d.JSC$19537_backChannelUri_.clone();_.Y1(H,"RID","rpc");_.Y1(H,"SID",d.sid_);_.Y1(H,"AID",d.JSC$19537_lastArrayId_);_.Y1(H,"CI",d.enableStreaming_?"0":"1");!d.enableStreaming_&&d.longPollingTimeout_&&
_.Y1(H,"TO",d.longPollingTimeout_);_.Y1(H,"TYPE","xmlhttp");fu(d,H);d.httpHeadersOverwriteParam_&&d.JSC$19537_extraHeaders_&&HVg(H,d.httpHeadersOverwriteParam_,d.JSC$19537_extraHeaders_);d.backChannelRequestTimeoutMs_&&d.JSC$19537_backChannelRequest_.setTimeout(d.backChannelRequestTimeoutMs_);var K=d.JSC$19537_backChannelRequest_,c=d.JSC$19537_hostPrefix_;K.JSC$19518_type_=1;K.JSC$19518_baseUri_=_.cQ(H.clone());K.JSC$19518_postData_=null;K.decodeChunks_=!0;vFj(K,c);d.JSC$19537_channelDebug_.debug("New Request created")};
D3.prototype.JSC$19539_onBackChannelDead_=function(){this.JSC$19537_deadBackChannelTimerId_!=null&&(this.JSC$19537_deadBackChannelTimerId_=null,CS1(this),Rab(this),Ty(19))};
var nqj=function(d){d.JSC$19537_deadBackChannelTimerId_!=null&&(_.KF.clearTimeout(d.JSC$19537_deadBackChannelTimerId_),d.JSC$19537_deadBackChannelTimerId_=null)},qvZ=function(d,H){d.JSC$19537_channelDebug_.debug("Request complete");
var K=null;if(d.JSC$19537_backChannelRequest_==H){nqj(d);eaT(d);d.JSC$19537_backChannelRequest_=null;var c=2}else if(xsO(d.forwardChannelRequestPool_,H))K=H.JSC$19518_pendingMessages_,msv(d.forwardChannelRequestPool_,H),c=1;else return;if(d.state_!=0)if(H.JSC$19518_successful_)c==1?(S4Z(H.JSC$19518_postData_?H.JSC$19518_postData_.length:0,Date.now()-H.JSC$19518_requestStartTime_,d.JSC$19537_forwardChannelRetryCount_),BaS(d)):Tag(d);else{var p=H.JSC$19518_lastStatusCode_,g=H.getLastError();if(g==3||
g==0&&p>0)d.JSC$19537_channelDebug_.debug("Not retrying due to error type"),p>200&&(d.errorResponseStatusCode_=H.JSC$19518_lastStatusCode_);else{d.JSC$19537_channelDebug_.debug(function(){return"Maybe retrying, last error: "+fR0(g,d.errorResponseStatusCode_)});
if(c==1&&sbq(d,H)||c==2&&Rab(d))return;d.JSC$19537_channelDebug_.debug("Exceeded max number of retries")}K&&K.length>0&&PS0(d.forwardChannelRequestPool_,K);d.JSC$19537_channelDebug_.debug("Error: HTTP request failed");switch(g){case 1:yI(d,5);break;case 4:yI(d,10);break;case 3:yI(d,6);break;default:yI(d,2)}}},JgU=function(d,H){var K=d.JSC$19537_baseRetryDelayMs_+Math.floor(Math.random()*d.JSC$19537_retryDelaySeedMs_);
d.isActive()||(d.JSC$19537_channelDebug_.debug("Inactive channel"),K*=2);return K*H};
D3.prototype.onInput_=function(d,H){for(var K=0;K<d.length;K++){var c=d[K];this.JSC$19537_lastArrayId_=c[0];c=c[1];if(this.state_==2)if(c[0]=="c"){this.sid_=c[1];this.JSC$19537_hostPrefix_=c[2];var p=c[3];p!=null&&(this.JSC$19539_channelVersion_=p,this.JSC$19537_channelDebug_.info("VER="+this.JSC$19539_channelVersion_));p=c[4];p!=null&&(this.serverVersion_=p,this.JSC$19537_channelDebug_.info("SVER="+this.serverVersion_));c=c[5];c!=null&&typeof c==="number"&&c>0&&(this.backChannelRequestTimeoutMs_=
c*=1.5,this.JSC$19537_channelDebug_.info("backChannelRequestTimeoutMs_="+c));if(c=H.JSC$19518_xmlHttp_){var g=zI(c,"X-Client-Wire-Protocol");g&&(p=this.forwardChannelRequestPool_,!p.requestPool_&&(_.qf(g,"spdy")||_.qf(g,"quic")||_.qf(g,"h2"))&&(p.JSC$19528_maxSize_=p.maxPoolSizeConfigured_,p.requestPool_=new Set,p.JSC$19528_request_&&(MLG(p,p.JSC$19528_request_),p.JSC$19528_request_=null)));this.httpSessionIdParam_&&((c=zI(c,"X-HTTP-Session-Id"))?(this.httpSessionId_=c,_.Y1(this.JSC$19537_forwardChannelUri_,
this.httpSessionIdParam_,c)):this.JSC$19537_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19543_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-H.JSC$19518_requestStartTime_,this.JSC$19537_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));c=H;p=Wqg(this,this.JSC$19537_supportsCrossDomainXhrs_?this.JSC$19537_hostPrefix_:null,this.JSC$19537_path_);this.JSC$19537_channelDebug_.debug("GetBackChannelUri: "+
p);this.JSC$19537_backChannelUri_=p;c.initialResponseDecoded_?(this.JSC$19537_channelDebug_.debug("Upgrade the handshake request to a backchannel."),msv(this.forwardChannelRequestPool_,c),p=c,(g=this.backChannelRequestTimeoutMs_)&&p.setTimeout(g),p.JSC$19518_watchDogTimerId_&&(pU1(p),HTv(p)),this.JSC$19537_backChannelRequest_=c):Tag(this);this.JSC$19537_outgoingMaps_.length>0&&BaS(this)}else c[0]!="stop"&&c[0]!="close"||yI(this,7);else this.state_==3&&(c[0]=="stop"||c[0]=="close"?c[0]=="stop"?yI(this,
7):this.disconnect():c[0]!="noop"&&this.handler_&&this.handler_.JSC$19543_channelHandleArray(c),this.JSC$19537_backChannelRetryCount_=0)}};
var yI=function(d,H){d.JSC$19537_channelDebug_.info("Error code "+H);if(H==2){var K=(0,_.LA)(d.testNetworkCallback_,d),c=d.networkTestUrl_,p=!c;c=new _.jM(c||"//www.google.com/images/cleardot.gif");_.KF.location&&_.KF.location.protocol=="http"||_.DS(c,"https");_.cQ(c);p?uHj(c.toString(),K):Ihb(c.toString(),K)}else Ty(2);d.onError_(H)};
D3.prototype.testNetworkCallback_=function(d){d?(this.JSC$19537_channelDebug_.info("Successfully pinged google.com"),Ty(2)):(this.JSC$19537_channelDebug_.info("Failed to ping google.com"),Ty(1))};
D3.prototype.onError_=function(d){this.JSC$19537_channelDebug_.debug("HttpChannel: error - "+d);this.state_=0;this.handler_&&this.handler_.JSC$19543_channelError(d);XUb(this);zaZ(this)};
var XUb=function(d){d.state_=0;d.nonAckedMapsAtChannelClose_=[];if(d.handler_){var H=wUj(d.forwardChannelRequestPool_);if(H.length!=0||d.JSC$19537_outgoingMaps_.length!=0)d.JSC$19537_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+H.length+", outgoing: "+d.JSC$19537_outgoingMaps_.length}),_.Sl(d.nonAckedMapsAtChannelClose_,H),_.Sl(d.nonAckedMapsAtChannelClose_,d.JSC$19537_outgoingMaps_),d.forwardChannelRequestPool_.JSC$19528_pendingMessages_.length=0,_.tC(d.JSC$19537_outgoingMaps_),
d.JSC$19537_outgoingMaps_.length=0;
d.handler_.JSC$19543_channelClosed()}},tLg=function(d){if(d.state_==0)return d.nonAckedMapsAtChannelClose_;
var H=[];_.Sl(H,wUj(d.forwardChannelRequestPool_));_.Sl(H,d.JSC$19537_outgoingMaps_);return H},Wqg=function(d,H,K){var c=_.Qe(K);
c.JSC$10002_domain_!=""?(H&&_.fq(c,H+"."+c.JSC$10002_domain_),_.AH(c,c.JSC$10002_port_)):(c=_.KF.location,c=tfS(c.protocol,H?H+"."+c.hostname:c.hostname,+c.port,K));H=d.httpSessionIdParam_;K=d.httpSessionId_;H&&K&&_.Y1(c,H,K);_.Y1(c,"VER",d.JSC$19539_channelVersion_);fu(d,c);return c},$sZ=function(d,H,K){if(H&&!d.JSC$19537_supportsCrossDomainXhrs_)throw Error("Bk");
H=d.usesFetchStreams_&&!d.JSC$19537_xmlHttpFactory_?new _.P9(new AG({streamBinaryChunks:K})):new _.P9(d.JSC$19537_xmlHttpFactory_);H.JSC$9767_withCredentials_=d.JSC$19537_supportsCrossDomainXhrs_;return H};
D3.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var Yvt=function(){};
_.G=Yvt.prototype;_.G.JSC$19543_channelOpened=function(){};
_.G.JSC$19543_channelHandleArray=function(){};
_.G.JSC$19543_channelError=function(){};
_.G.JSC$19543_channelClosed=function(){};
_.G.isActive=function(){return!0};
_.G.JSC$19543_badMapError=function(){};var OTG=function(){},jg=function(d,H){_.Rj.call(this);
this.JSC$19546_channel_=new D3(H);this.JSC$19546_url_=d;this.messageUrlParams_=H&&H.messageUrlParams||null;d=H&&H.messageHeaders||null;H&&H.clientProtocolHeaderRequired&&(d?_.rs.set(d,"X-Client-Protocol","webchannel"):d=_.rs.create("X-Client-Protocol","webchannel"));this.JSC$19546_channel_.JSC$19537_extraHeaders_=d;d=H&&H.initMessageHeaders||null;H&&H.messageContentType&&(d?_.rs.set(d,"X-WebChannel-Content-Type",H.messageContentType):d=_.rs.create("X-WebChannel-Content-Type",H.messageContentType));
H&&H.clientProfile&&(d?_.rs.set(d,"X-WebChannel-Client-Profile",H.clientProfile):d=_.rs.create("X-WebChannel-Client-Profile",H.clientProfile));this.JSC$19546_channel_.initHeaders_=d;(d=H&&H.httpHeadersOverwriteParam)&&!_.oE(d)&&(this.JSC$19546_channel_.httpHeadersOverwriteParam_=d);this.supportsCrossDomainXhr_=H&&H.supportsCrossDomainXhr||!1;this.sendRawJson_=H&&H.sendRawJson||!1;(H=H&&H.httpSessionIdParam)&&!_.oE(H)&&(this.JSC$19546_channel_.httpSessionIdParam_=H,_.rs.containsKey(this.messageUrlParams_,
H)&&_.rs.remove(this.messageUrlParams_,H));this.channelHandler_=new Ar(this)};
_.K1(jg,_.Rj);jg.prototype.open=function(){this.JSC$19546_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19546_channel_.JSC$19537_supportsCrossDomainXhrs_=!0);this.JSC$19546_channel_.connect(this.JSC$19546_url_,this.messageUrlParams_||void 0)};
jg.prototype.close=function(){this.JSC$19546_channel_.disconnect()};
jg.prototype.send=function(d){var H=this.JSC$19546_channel_;if(typeof d==="string"){var K={};K.__data__=d;d=K}else this.sendRawJson_&&(K={},K.__data__=(0,_.wN)(d),d=K);H.JSC$19537_outgoingMaps_.push(new Usb(H.JSC$19537_nextMapId_++,d));H.state_==3&&BaS(H)};
jg.prototype.disposeInternal=function(){this.JSC$19546_channel_.handler_=null;delete this.channelHandler_;this.JSC$19546_channel_.disconnect();delete this.JSC$19546_channel_;jg.superClass_.disposeInternal.call(this)};
var Svv=function(d){Faj.call(this);d.__headers__&&(this.headers=d.__headers__,this.statusCode=d.__status__,delete d.__headers__,delete d.__status__);var H=d.__sm__;H?this.data=(this.metadataKey=_.rs.getAnyKey(H))?_.rs.get(H,this.metadataKey):H:this.data=d};
_.K1(Svv,Faj);var EqO=function(d){ZbO.call(this);this.status=1;this.errorCode=d};
_.K1(EqO,ZbO);var Ar=function(d){this.JSC$19553_channel_=d};
_.K1(Ar,Yvt);Ar.prototype.JSC$19543_channelOpened=function(){this.JSC$19553_channel_.dispatchEvent("w")};
Ar.prototype.JSC$19543_channelHandleArray=function(d){this.JSC$19553_channel_.dispatchEvent(new Svv(d))};
Ar.prototype.JSC$19543_channelError=function(d){this.JSC$19553_channel_.dispatchEvent(new EqO(d))};
Ar.prototype.JSC$19543_channelClosed=function(){this.JSC$19553_channel_.dispatchEvent("x")};
var ygU=function(d,H){this.transportChannel_=d;this.JSC$19556_channel_=H},bTU=function(d){return tLg(d.JSC$19556_channel_).map(function(H){var K=d.transportChannel_;
H=H.map;"__data__"in H?(H=H.__data__,K=K.sendRawJson_?(0,_.ecl)(H):H):K=H;return K})};
ygU.prototype.commit=function(d){this.JSC$19556_channel_.forwardChannelFlushedCallback_=d};var vc=function(d){NaG.dispatchEvent(new Ds1(NaG,d))},NaG=new _.Rj,Ds1=function(d,H){_.eo.call(this,"statevent",d);
this.stat=H};
_.m(Ds1,_.eo);var dx=function(d,H,K,c,p){this.JSC$19561_channel_=d;this.JSC$19561_channelDebug_=H;this.sid_=K;this.JSC$19561_rid_=c;this.JSC$19561_retryId_=p||1;this.timeout_=45E3;this.JSC$19561_eventHandler_=new _.GA(this);this.pollingTimer_=new _.iG;this.pollingTimer_.setInterval(250)};
_.G=dx.prototype;_.G.JSC$19563_extraHeaders_=null;_.G.JSC$19563_successful_=!1;_.G.JSC$19563_watchDogTimerId_=null;_.G.JSC$19563_watchDogTimeoutTime_=null;_.G.JSC$19563_requestStartTime_=null;_.G.JSC$19563_type_=null;_.G.JSC$19563_baseUri_=null;_.G.JSC$19563_requestUri_=null;_.G.JSC$19563_postData_=null;_.G.JSC$19563_xmlHttp_=null;_.G.JSC$19563_xmlHttpChunkStart_=0;_.G.trident_=null;_.G.JSC$19563_verb_=null;_.G.JSC$19563_lastError_=null;_.G.JSC$19563_lastStatusCode_=-1;_.G.sendClose_=!0;
_.G.JSC$19563_cancelled_=!1;_.G.JSC$19563_readyStateChangeThrottleMs_=0;_.G.JSC$19563_readyStateChangeThrottle_=null;var fhv=function(d,H){switch(d){case 0:return"Non-200 return code ("+H+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},AgZ={},jb0={};
dx.prototype.setTimeout=function(d){this.timeout_=d};
var dAO=function(d,H,K){d.JSC$19563_type_=1;d.JSC$19563_baseUri_=_.cQ(H.clone());d.JSC$19563_postData_=K;d.decodeChunks_=!0;vqt(d,null)},HNv=function(d,H,K,c,p){d.JSC$19563_type_=1;
d.JSC$19563_baseUri_=_.cQ(H.clone());d.JSC$19563_postData_=null;d.decodeChunks_=K;p&&(d.sendClose_=!1);vqt(d,c)},vqt=function(d,H){d.JSC$19563_requestStartTime_=Date.now();
$At(d);d.JSC$19563_requestUri_=d.JSC$19563_baseUri_.clone();Ps(d.JSC$19563_requestUri_,"t",d.JSC$19561_retryId_);d.JSC$19563_xmlHttpChunkStart_=0;d.JSC$19563_xmlHttp_=d.JSC$19561_channel_.JSC$19570_createXhrIo(d.JSC$19561_channel_.JSC$19570_shouldUseSecondaryDomains()?H:null);d.JSC$19563_readyStateChangeThrottleMs_>0&&(d.JSC$19563_readyStateChangeThrottle_=new _.NV((0,_.LA)(d.JSC$19563_xmlHttpHandler_,d,d.JSC$19563_xmlHttp_),d.JSC$19563_readyStateChangeThrottleMs_));d.JSC$19561_eventHandler_.listen(d.JSC$19563_xmlHttp_,
"readystatechange",d.JSC$19563_readyStateChangeHandler_);H=d.JSC$19563_extraHeaders_?_.rs.clone(d.JSC$19563_extraHeaders_):{};d.JSC$19563_postData_?(d.JSC$19563_verb_="POST",H["Content-Type"]="application/x-www-form-urlencoded",d.JSC$19563_xmlHttp_.send(d.JSC$19563_requestUri_,d.JSC$19563_verb_,d.JSC$19563_postData_,H)):(d.JSC$19563_verb_="GET",d.sendClose_&&!_.oB&&(H.Connection="close"),d.JSC$19563_xmlHttp_.send(d.JSC$19563_requestUri_,d.JSC$19563_verb_,null,H));d.JSC$19561_channel_.notifyServerReachabilityEvent(1);
H=d.JSC$19561_channelDebug_;var K=d.JSC$19563_postData_;if(K){var c="";K=K.split("&");for(var p=0;p<K.length;p++){var g=K[p].split("=");if(g.length>1){var a=g[0];g=g[1];var e=a.split("_");c=e.length>=2&&e[1]=="type"?c+(a+"="+g+"&"):c+(a+"=redacted&")}}}else c=null;H.info("XMLHTTP REQ ("+d.JSC$19561_rid_+") [attempt "+d.JSC$19561_retryId_+"]: "+d.JSC$19563_verb_+"\n"+d.JSC$19563_requestUri_+"\n"+c)};
dx.prototype.JSC$19563_readyStateChangeHandler_=function(d){d=d.target;var H=this.JSC$19563_readyStateChangeThrottle_;H&&_.uA(d)==3?(this.JSC$19561_channelDebug_.debug("Throttling readystatechange."),H.fire()):this.JSC$19563_xmlHttpHandler_(d)};
dx.prototype.JSC$19563_xmlHttpHandler_=function(d){try{if(d==this.JSC$19563_xmlHttp_)a:{var H=_.uA(this.JSC$19563_xmlHttp_),K=this.JSC$19563_xmlHttp_.JSC$9767_lastErrorCode_,c=this.JSC$19563_xmlHttp_.getStatus();if(_.oB&&!_.qJ("420+")){if(H<4)break a}else if(H<3||H==3&&!this.JSC$19563_xmlHttp_.getResponseText())break a;this.JSC$19563_cancelled_||H!=4||K==7||(K==8||c<=0?this.JSC$19561_channel_.notifyServerReachabilityEvent(3):this.JSC$19561_channel_.notifyServerReachabilityEvent(2));Km5(this);var p=
this.JSC$19563_xmlHttp_.getStatus();this.JSC$19563_lastStatusCode_=p;var g=this.JSC$19563_xmlHttp_.getResponseText();g||this.JSC$19561_channelDebug_.debug("No response text for uri "+this.JSC$19563_requestUri_+" status "+p);this.JSC$19563_successful_=p==200;this.JSC$19561_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19561_rid_+") [ attempt "+this.JSC$19561_retryId_+"]: "+this.JSC$19563_verb_+"\n"+this.JSC$19563_requestUri_+"\n"+H+" "+p);if(this.JSC$19563_successful_){H==4&&H_(this);if(this.decodeChunks_){for(d=
!0;!this.JSC$19563_cancelled_&&this.JSC$19563_xmlHttpChunkStart_<g.length;){var a=cQO(this,g);if(a==jb0){H==4&&(this.JSC$19563_lastError_=4,vc(15),d=!1);$7(this.JSC$19561_channelDebug_,this.JSC$19561_rid_,null,"[Incomplete Response]");break}else if(a==AgZ){this.JSC$19563_lastError_=4;vc(16);$7(this.JSC$19561_channelDebug_,this.JSC$19561_rid_,g,"[Invalid Chunk]");d=!1;break}else $7(this.JSC$19561_channelDebug_,this.JSC$19561_rid_,a,null),pZU(this,a)}H==4&&g.length==0&&(this.JSC$19563_lastError_=1,
vc(17),d=!1);this.JSC$19563_successful_=this.JSC$19563_successful_&&d;d||($7(this.JSC$19561_channelDebug_,this.JSC$19561_rid_,g,"[Invalid Chunked Response]"),H_(this),gZq(this))}else $7(this.JSC$19561_channelDebug_,this.JSC$19561_rid_,g,null),pZU(this,g);this.JSC$19563_successful_&&!this.JSC$19563_cancelled_&&(H==4?this.JSC$19561_channel_.JSC$19570_onRequestComplete(this):(this.JSC$19563_successful_=!1,$At(this)))}else p==400&&g.indexOf("Unknown SID")>0?(this.JSC$19563_lastError_=3,vc(13),this.JSC$19561_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19561_rid_+")")):(this.JSC$19563_lastError_=0,vc(14),this.JSC$19561_channelDebug_.warning("XMLHTTP Bad status "+p+" ("+this.JSC$19561_rid_+")")),H_(this),gZq(this)}else this.JSC$19561_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(e){this.JSC$19561_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var cQO=function(d,H){var K=d.JSC$19563_xmlHttpChunkStart_,c=H.indexOf("\n",K);if(c==-1)return jb0;K=Number(H.substring(K,c));if(isNaN(K))return AgZ;c+=1;if(c+K>H.length)return jb0;H=H.slice(c,c+K);d.JSC$19563_xmlHttpChunkStart_=c+K;return H};
dx.prototype.cancel=function(){this.JSC$19563_cancelled_=!0;H_(this)};
var $At=function(d){d.JSC$19563_watchDogTimeoutTime_=Date.now()+d.timeout_;iNg(d,d.timeout_)},iNg=function(d,H){if(d.JSC$19563_watchDogTimerId_!=null)throw Error("Ak");
d.JSC$19563_watchDogTimerId_=yw((0,_.LA)(d.JSC$19563_onWatchDogTimeout_,d),H)},Km5=function(d){d.JSC$19563_watchDogTimerId_&&(_.KF.clearTimeout(d.JSC$19563_watchDogTimerId_),d.JSC$19563_watchDogTimerId_=null)};
dx.prototype.JSC$19563_onWatchDogTimeout_=function(){this.JSC$19563_watchDogTimerId_=null;var d=Date.now();d-this.JSC$19563_watchDogTimeoutTime_>=0?(this.JSC$19561_channelDebug_.info("TIMEOUT: "+this.JSC$19563_requestUri_),this.JSC$19563_type_!=2&&this.JSC$19561_channel_.notifyServerReachabilityEvent(3),H_(this),this.JSC$19563_lastError_=2,vc(18),gZq(this)):(this.JSC$19561_channelDebug_.warning("WatchDog timer called too early"),iNg(this,this.JSC$19563_watchDogTimeoutTime_-d))};
var gZq=function(d){d.JSC$19561_channel_.JSC$19570_isClosed()||d.JSC$19563_cancelled_||d.JSC$19561_channel_.JSC$19570_onRequestComplete(d)},H_=function(d){Km5(d);
_.AA(d.JSC$19563_readyStateChangeThrottle_);d.JSC$19563_readyStateChangeThrottle_=null;d.pollingTimer_.stop();d.JSC$19561_eventHandler_.removeAll();if(d.JSC$19563_xmlHttp_){var H=d.JSC$19563_xmlHttp_;d.JSC$19563_xmlHttp_=null;H.abort();H.dispose()}d.trident_&&(d.trident_=null)};
dx.prototype.getLastError=function(){return this.JSC$19563_lastError_};
var pZU=function(d,H){try{d.JSC$19561_channel_.JSC$19570_onRequestData(d,H),d.JSC$19561_channel_.notifyServerReachabilityEvent(4)}catch(K){}};var $7=function(d,H,K,c){var p=d.info;a:if(K&&K!="y2f%"){try{var g=JSON.parse(K);if(g)for(var a=0;a<g.length;a++)if(Array.isArray(g[a])){var e=g[a];if(!(e.length<2)){var k=e[1];if(Array.isArray(k)&&!(k.length<1)){var C=k[0];if(C!="noop"&&C!="stop")for(var R=1;R<k.length;R++)k[R]=""}}}var V=(0,_.wN)(g);break a}catch(U){d.debug("Exception parsing expected JS array - probably was not JS");V=K;break a}V=void 0}else V=K;p.call(d,"XMLHTTP TEXT ("+H+"): "+V+(c?" "+c:""))};
bu.prototype.debug=function(d){this.info(d)};
bu.prototype.info=function(){};
bu.prototype.warning=function(){};var GSU=function(d,H){this.JSC$19568_channel_=d;this.JSC$19568_channelDebug_=H;this.JSC$19568_parser_=new Fn};
_.G=GSU.prototype;_.G.JSC$19570_extraHeaders_=null;_.G.JSC$19570_request_=null;_.G.receivedIntermediateResult_=!1;_.G.JSC$19570_path_=null;_.G.state_=null;_.G.JSC$19570_lastStatusCode_=-1;_.G.JSC$19570_hostPrefix_=null;_.G.blockedPrefix_=null;
_.G.connect=function(d){this.JSC$19570_path_=d;d=oZO(this.JSC$19568_channel_,this.JSC$19570_path_);vc(3);Date.now();var H=this.JSC$19568_channel_.firstTestResults_;H!=null?(this.JSC$19570_hostPrefix_=H[0],(this.blockedPrefix_=H[1])?(this.state_=1,qhb(this)):(this.state_=2,avv(this))):(Ps(d,"MODE","init"),this.JSC$19570_request_=new dx(this,this.JSC$19568_channelDebug_),this.JSC$19570_request_.JSC$19563_extraHeaders_=this.JSC$19570_extraHeaders_,HNv(this.JSC$19570_request_,d,!1,null,!0),this.state_=
0)};
var qhb=function(d){var H=lvU(d.JSC$19568_channel_,d.blockedPrefix_,"/mail/images/cleardot.gif");_.cQ(H);MhZ(H.toString(),5E3,(0,_.LA)(d.checkBlockedCallback_,d),3,2E3);d.notifyServerReachabilityEvent(1)};
GSU.prototype.checkBlockedCallback_=function(d){if(d)this.state_=2,avv(this);else{vc(4);var H=this.JSC$19568_channel_;H.JSC$19571_channelDebug_.debug("Test Connection Blocked");H.JSC$19575_lastStatusCode_=H.connectionTest_.JSC$19570_lastStatusCode_;Kv(H,9)}d&&this.notifyServerReachabilityEvent(2)};
var avv=function(d){d.JSC$19568_channelDebug_.debug("TestConnection: starting stage 2");var H=d.JSC$19568_channel_.secondTestResults_;H!=null?(d.JSC$19568_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+H?"Buffered":"Unbuffered"),vc(5),H?(vc(11),c_(d.JSC$19568_channel_,d,!1)):(vc(12),c_(d.JSC$19568_channel_,d,!0))):(d.JSC$19570_request_=new dx(d,d.JSC$19568_channelDebug_),d.JSC$19570_request_.JSC$19563_extraHeaders_=d.JSC$19570_extraHeaders_,H=eeZ(d.JSC$19568_channel_,
d.JSC$19570_hostPrefix_,d.JSC$19570_path_),vc(5),Ps(H,"TYPE","xmlhttp"),HNv(d.JSC$19570_request_,H,!1,d.JSC$19570_hostPrefix_,!1))};
_.G=GSU.prototype;_.G.JSC$19570_createXhrIo=function(d){return this.JSC$19568_channel_.JSC$19570_createXhrIo(d)};
_.G.abort=function(){this.JSC$19570_request_&&(this.JSC$19570_request_.cancel(),this.JSC$19570_request_=null);this.JSC$19570_lastStatusCode_=-1};
_.G.JSC$19570_isClosed=function(){return!1};
_.G.JSC$19570_onRequestData=function(d,H){this.JSC$19570_lastStatusCode_=d.JSC$19563_lastStatusCode_;if(this.state_==0)if(this.JSC$19568_channelDebug_.debug("TestConnection: Got data for stage 1"),H){try{var K=this.JSC$19568_parser_.parse(H)}catch(c){kS1(this.JSC$19568_channel_,this);return}this.JSC$19570_hostPrefix_=K[0];this.blockedPrefix_=K[1]}else this.JSC$19568_channelDebug_.debug("TestConnection: Null responseText"),kS1(this.JSC$19568_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(vc(7),Date.now()):H=="11111"?(vc(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19570_lastStatusCode_=200,this.JSC$19570_request_.cancel(),this.JSC$19568_channelDebug_.debug("Test connection succeeded; using streaming connection"),vc(12),c_(this.JSC$19568_channel_,this,!0)):(vc(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.G.JSC$19570_onRequestComplete=function(){this.JSC$19570_lastStatusCode_=this.JSC$19570_request_.JSC$19563_lastStatusCode_;this.JSC$19570_request_.JSC$19563_successful_?this.state_==0?(this.JSC$19568_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,qhb(this)):(this.state_=2,avv(this))):this.state_==2&&(this.JSC$19568_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19568_channelDebug_.debug("Test connection succeeded; using streaming connection"),
vc(12),c_(this.JSC$19568_channel_,this,!0)):(this.JSC$19568_channelDebug_.debug("Test connection failed; not using streaming"),vc(11),c_(this.JSC$19568_channel_,this,!1))):(this.JSC$19568_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?vc(9):this.state_==2&&vc(10),kS1(this.JSC$19568_channel_,this,this.JSC$19570_request_.getLastError()))};
_.G.JSC$19570_shouldUseSecondaryDomains=function(){return this.JSC$19568_channel_.JSC$19570_shouldUseSecondaryDomains()};
_.G.isActive=function(){return this.JSC$19568_channel_.isActive()};
_.G.notifyServerReachabilityEvent=function(d){this.JSC$19568_channel_.notifyServerReachabilityEvent(d)};var pv=function(d,H,K){this.state_=1;this.JSC$19571_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19571_channelDebug_=new bu;this.JSC$19571_parser_=new Fn;this.firstTestResults_=d||null;this.secondTestResults_=H!=null?H:null;this.asyncTest_=K||!1},xAZ=function(d,H){this.JSC$19573_mapId=d;
this.map=H;this.context=null};
_.G=pv.prototype;_.G.JSC$19575_extraHeaders_=null;_.G.JSC$19575_extraParams_=null;_.G.forwardChannelRequest_=null;_.G.JSC$19575_backChannelRequest_=null;_.G.JSC$19575_path_=null;_.G.JSC$19575_forwardChannelUri_=null;_.G.JSC$19575_backChannelUri_=null;_.G.JSC$19575_hostPrefix_=null;_.G.JSC$19575_nextRid_=0;_.G.JSC$19575_nextMapId_=0;_.G.handler_=null;_.G.JSC$19575_forwardChannelTimerId_=null;_.G.JSC$19575_backChannelTimerId_=null;_.G.JSC$19575_deadBackChannelTimerId_=null;_.G.connectionTest_=null;
_.G.useChunked_=null;_.G.JSC$19575_lastArrayId_=-1;_.G.JSC$19575_lastPostResponseArrayId_=-1;_.G.JSC$19575_lastStatusCode_=-1;_.G.JSC$19575_forwardChannelRetryCount_=0;_.G.JSC$19575_backChannelRetryCount_=0;_.G.JSC$19575_channelVersion_=8;var nZO={OK:0,REQUEST_FAILED:2,LOGGED_OUT:4,NO_DATA:5,UNKNOWN_SESSION_ID:6,STOP:7,NETWORK:8,BLOCKED:9,BAD_DATA:10,BAD_RESPONSE:11,ACTIVE_X_BLOCKED:12},Ch5=function(d,H,K,c){_.eo.call(this,"timingevent",d);this.size=H;this.rtt=K;this.retries=c};
_.K1(Ch5,_.eo);var ReO=function(d){_.eo.call(this,"serverreachability",d)};
_.K1(ReO,_.eo);pv.prototype.connect=function(d,H,K,c,p){this.JSC$19571_channelDebug_.debug("connect()");vc(0);this.JSC$19575_path_=H;this.JSC$19575_extraParams_=K||{};c&&p!==void 0&&(this.JSC$19575_extraParams_.OSID=c,this.JSC$19575_extraParams_.OAID=p);this.asyncTest_?(yw((0,_.LA)(this.connectTest_,this,d),100),V0T(this)):this.connectTest_(d)};
pv.prototype.disconnect=function(){this.JSC$19571_channelDebug_.debug("disconnect()");UAO(this);if(this.state_==3){var d=this.JSC$19575_nextRid_++,H=this.JSC$19575_forwardChannelUri_.clone();_.Y1(H,"SID",this.sid_);_.Y1(H,"RID",d);_.Y1(H,"TYPE","terminate");gx(this,H);d=new dx(this,this.JSC$19571_channelDebug_,this.sid_,d);d.JSC$19563_type_=2;d.JSC$19563_baseUri_=_.cQ(H.clone());(new Image).src=d.JSC$19563_baseUri_.toString();d.JSC$19563_requestStartTime_=Date.now();$At(d)}heZ(this)};
pv.prototype.connectTest_=function(d){this.JSC$19571_channelDebug_.debug("connectTest_()");this.connectionTest_=new GSU(this,this.JSC$19571_channelDebug_);this.connectionTest_.JSC$19570_extraHeaders_=this.JSC$19575_extraHeaders_;this.connectionTest_.JSC$19568_parser_=this.JSC$19571_parser_;this.connectionTest_.connect(d)};
var V0T=function(d){d.JSC$19571_channelDebug_.debug("connectChannel_()");d.JSC$19575_ensureInState_(1,0);d.JSC$19575_forwardChannelUri_=oZO(d,d.JSC$19575_path_);Lmj(d)},UAO=function(d){d.connectionTest_&&(d.connectionTest_.abort(),d.connectionTest_=null);
d.JSC$19575_backChannelRequest_&&(d.JSC$19575_backChannelRequest_.cancel(),d.JSC$19575_backChannelRequest_=null);d.JSC$19575_backChannelTimerId_&&(_.KF.clearTimeout(d.JSC$19575_backChannelTimerId_),d.JSC$19575_backChannelTimerId_=null);M05(d);d.forwardChannelRequest_&&(d.forwardChannelRequest_.cancel(),d.forwardChannelRequest_=null);d.JSC$19575_forwardChannelTimerId_&&(_.KF.clearTimeout(d.JSC$19575_forwardChannelTimerId_),d.JSC$19575_forwardChannelTimerId_=null)},ktT=function(d,H){if(d.state_==0)throw Error("Dk");
d.JSC$19571_outgoingMaps_.length==1E3&&d.JSC$19571_parser_.stringify(H);d.JSC$19571_outgoingMaps_.push(new xAZ(d.JSC$19575_nextMapId_++,H));d.state_!=2&&d.state_!=3||Lmj(d)};
pv.prototype.JSC$19570_isClosed=function(){return this.state_==0};
pv.prototype.getState=function(){return this.state_};
var Lmj=function(d){d.forwardChannelRequest_||d.JSC$19575_forwardChannelTimerId_||(d.JSC$19575_forwardChannelTimerId_=yw((0,_.LA)(d.JSC$19575_onStartForwardChannelTimer_,d),0),d.JSC$19575_forwardChannelRetryCount_=0)};
pv.prototype.JSC$19575_onStartForwardChannelTimer_=function(d){this.JSC$19575_forwardChannelTimerId_=null;xG1(this,d)};
var xG1=function(d,H){d.JSC$19571_channelDebug_.debug("startForwardChannel_");if(d.state_==1){if(!H){d.JSC$19571_channelDebug_.debug("open_()");d.JSC$19575_nextRid_=Math.floor(Math.random()*1E5);H=d.JSC$19575_nextRid_++;var K=new dx(d,d.JSC$19571_channelDebug_,"",H);K.JSC$19563_extraHeaders_=d.JSC$19575_extraHeaders_;var c=nCU(d),p=d.JSC$19575_forwardChannelUri_.clone();_.Y1(p,"RID",H);_.Y1(p,"CVER","1");gx(d,p);dAO(K,p,c);d.forwardChannelRequest_=K;d.state_=2}}else d.state_==3&&(H?C9g(d,H):d.JSC$19571_outgoingMaps_.length==
0?d.JSC$19571_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):d.forwardChannelRequest_||(C9g(d),d.JSC$19571_channelDebug_.debug("startForwardChannel_ finished, sent request")))},C9g=function(d,H){if(H)if(d.JSC$19575_channelVersion_>6){d.JSC$19571_outgoingMaps_=d.pendingMaps_.concat(d.JSC$19571_outgoingMaps_);
d.pendingMaps_.length=0;var K=d.JSC$19575_nextRid_-1;H=nCU(d)}else K=H.JSC$19561_rid_,H=H.JSC$19563_postData_;else K=d.JSC$19575_nextRid_++,H=nCU(d);var c=d.JSC$19575_forwardChannelUri_.clone();_.Y1(c,"SID",d.sid_);_.Y1(c,"RID",K);_.Y1(c,"AID",d.JSC$19575_lastArrayId_);gx(d,c);K=new dx(d,d.JSC$19571_channelDebug_,d.sid_,K,d.JSC$19575_forwardChannelRetryCount_+1);K.JSC$19563_extraHeaders_=d.JSC$19575_extraHeaders_;K.setTimeout(1E4+Math.round(1E4*Math.random()));d.forwardChannelRequest_=K;dAO(K,c,H)},
gx=function(d,H){d.handler_&&(d=d.handler_.JSC$19582_getAdditionalParams())&&_.rs.forEach(d,function(K,c){_.Y1(H,c,K)})},nCU=function(d){var H=Math.min(d.JSC$19571_outgoingMaps_.length,1E3),K=["count="+H];
if(d.JSC$19575_channelVersion_>6&&H>0){var c=d.JSC$19571_outgoingMaps_[0].JSC$19573_mapId;K.push("ofs="+c)}else c=0;for(var p={},g=0;g<H;p={mapId$jscomp$3:void 0},g++){p.mapId$jscomp$3=d.JSC$19571_outgoingMaps_[g].JSC$19573_mapId;var a=d.JSC$19571_outgoingMaps_[g].map;p.mapId$jscomp$3=d.JSC$19575_channelVersion_<=6?g:p.mapId$jscomp$3-c;try{_.rs.forEach(a,function(e){return function(k,C){K.push("req"+e.mapId$jscomp$3+"_"+C+"="+encodeURIComponent(k))}}(p))}catch(e){K.push("req"+p.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}d.pendingMaps_=d.pendingMaps_.concat(d.JSC$19571_outgoingMaps_.splice(0,H));
return K.join("&")},RlZ=function(d){d.JSC$19575_backChannelRequest_||d.JSC$19575_backChannelTimerId_||(d.JSC$19575_backChannelAttemptId_=1,d.JSC$19575_backChannelTimerId_=yw((0,_.LA)(d.JSC$19575_onStartBackChannelTimer_,d),0),d.JSC$19575_backChannelRetryCount_=0)},UGZ=function(d){if(d.JSC$19575_backChannelRequest_||d.JSC$19575_backChannelTimerId_||d.JSC$19575_backChannelRetryCount_>=3)return!1;
d.JSC$19571_channelDebug_.debug("Going to retry GET");d.JSC$19575_backChannelAttemptId_++;d.JSC$19575_backChannelTimerId_=yw((0,_.LA)(d.JSC$19575_onStartBackChannelTimer_,d),V$1(d,d.JSC$19575_backChannelRetryCount_));d.JSC$19575_backChannelRetryCount_++;return!0};
pv.prototype.JSC$19575_onStartBackChannelTimer_=function(){this.JSC$19575_backChannelTimerId_=null;this.JSC$19571_channelDebug_.debug("Creating new HttpRequest");this.JSC$19575_backChannelRequest_=new dx(this,this.JSC$19571_channelDebug_,this.sid_,"rpc",this.JSC$19575_backChannelAttemptId_);this.JSC$19575_backChannelRequest_.JSC$19563_extraHeaders_=this.JSC$19575_extraHeaders_;this.JSC$19575_backChannelRequest_.JSC$19563_readyStateChangeThrottleMs_=0;var d=this.JSC$19575_backChannelUri_.clone();_.Y1(d,
"RID","rpc");_.Y1(d,"SID",this.sid_);_.Y1(d,"CI",this.useChunked_?"0":"1");_.Y1(d,"AID",this.JSC$19575_lastArrayId_);gx(this,d);_.Y1(d,"TYPE","xmlhttp");HNv(this.JSC$19575_backChannelRequest_,d,!0,this.JSC$19575_hostPrefix_,!1);this.JSC$19571_channelDebug_.debug("New Request created")};
var c_=function(d,H,K){d.JSC$19571_channelDebug_.debug("Test Connection Finished");d.useChunked_=d.secondTestResults_==null?K:!d.secondTestResults_;d.JSC$19575_lastStatusCode_=H.JSC$19570_lastStatusCode_;d.asyncTest_||V0T(d)},kS1=function(d,H){d.JSC$19571_channelDebug_.debug("Test Connection Failed");
d.JSC$19575_lastStatusCode_=H.JSC$19570_lastStatusCode_;Kv(d,2)};
pv.prototype.JSC$19570_onRequestData=function(d,H){if(this.state_!=0&&(this.JSC$19575_backChannelRequest_==d||this.forwardChannelRequest_==d))if(this.JSC$19575_lastStatusCode_=d.JSC$19563_lastStatusCode_,this.forwardChannelRequest_==d&&this.state_==3)if(this.JSC$19575_channelVersion_>7){try{var K=this.JSC$19571_parser_.parse(H)}catch(c){K=null}if(Array.isArray(K)&&K.length==3)if(H=K,H[0]==0)a:if(this.JSC$19571_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19575_backChannelTimerId_)this.JSC$19571_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19575_backChannelRequest_)if(this.JSC$19575_backChannelRequest_.JSC$19563_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19563_requestStartTime_)M05(this),this.JSC$19575_backChannelRequest_.cancel(),this.JSC$19575_backChannelRequest_=null;else break a;else this.JSC$19571_channelDebug_.warning("We do not have a BackChannel established");UGZ(this);vc(19)}else this.JSC$19575_lastPostResponseArrayId_=H[1],d=this.JSC$19575_lastPostResponseArrayId_-this.JSC$19575_lastArrayId_,0<
d&&(H=H[2],this.JSC$19571_channelDebug_.debug(H+" bytes (in "+d+" arrays) are outstanding on the BackChannel"),H<37500&&this.useChunked_&&this.JSC$19575_backChannelRetryCount_==0&&!this.JSC$19575_deadBackChannelTimerId_&&(this.JSC$19575_deadBackChannelTimerId_=yw((0,_.LA)(this.JSC$19575_onBackChannelDead_,this),6E3)));else this.JSC$19571_channelDebug_.debug("Bad POST response data returned"),Kv(this,11)}else H!="y2f%"&&(this.JSC$19571_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
Kv(this,11));else this.JSC$19575_backChannelRequest_==d&&M05(this),_.oE(H)||(d=this.JSC$19571_parser_.parse(H),this.onInput_(d))};
pv.prototype.JSC$19575_onBackChannelDead_=function(){this.JSC$19575_deadBackChannelTimerId_!=null&&(this.JSC$19575_deadBackChannelTimerId_=null,this.JSC$19575_backChannelRequest_.cancel(),this.JSC$19575_backChannelRequest_=null,UGZ(this),vc(20))};
var M05=function(d){d.JSC$19575_deadBackChannelTimerId_!=null&&(_.KF.clearTimeout(d.JSC$19575_deadBackChannelTimerId_),d.JSC$19575_deadBackChannelTimerId_=null)};
pv.prototype.JSC$19570_onRequestComplete=function(d){this.JSC$19571_channelDebug_.debug("Request complete");if(this.JSC$19575_backChannelRequest_==d){M05(this);this.JSC$19575_backChannelRequest_=null;var H=2}else if(this.forwardChannelRequest_==d)this.forwardChannelRequest_=null,H=1;else return;this.JSC$19575_lastStatusCode_=d.JSC$19563_lastStatusCode_;if(this.state_!=0)if(d.JSC$19563_successful_)if(H==1){H=d.JSC$19563_postData_?d.JSC$19563_postData_.length:0;d=Date.now()-d.JSC$19563_requestStartTime_;
var K=NaG;K.dispatchEvent(new Ch5(K,H,d,this.JSC$19575_forwardChannelRetryCount_));Lmj(this);this.handler_&&this.handler_.JSC$19582_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else RlZ(this);else{K=d.getLastError();if(K==3||K==7||K==0&&this.JSC$19575_lastStatusCode_>0)this.JSC$19571_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19571_channelDebug_.debug("Maybe retrying, last error: "+fhv(K,this.JSC$19575_lastStatusCode_));var c;if(c=H==1)this.forwardChannelRequest_||
this.JSC$19575_forwardChannelTimerId_||this.state_==1||this.JSC$19575_forwardChannelRetryCount_>=2?c=!1:(this.JSC$19571_channelDebug_.debug("Going to retry POST"),this.JSC$19575_forwardChannelTimerId_=yw((0,_.LA)(this.JSC$19575_onStartForwardChannelTimer_,this,d),V$1(this,this.JSC$19575_forwardChannelRetryCount_)),this.JSC$19575_forwardChannelRetryCount_++,c=!0);if(c||H==2&&UGZ(this))return;this.JSC$19571_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19571_channelDebug_.debug("Error: HTTP request failed");
switch(K){case 1:Kv(this,5);break;case 4:Kv(this,10);break;case 3:Kv(this,6);break;case 7:Kv(this,12);break;default:Kv(this,2)}}};
var V$1=function(d,H){var K=5E3+Math.floor(Math.random()*1E4);d.isActive()||(d.JSC$19571_channelDebug_.debug("Inactive channel"),K*=2);return K*H};
pv.prototype.onInput_=function(d){for(var H=0;H<d.length;H++){var K=d[H];this.JSC$19575_lastArrayId_=K[0];K=K[1];this.state_==2?K[0]=="c"?(this.sid_=K[1],this.JSC$19575_hostPrefix_=K[2],K=K[3],K!=null?this.JSC$19575_channelVersion_=K:this.JSC$19575_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19582_channelOpened(),this.JSC$19575_backChannelUri_=eeZ(this,this.JSC$19575_hostPrefix_,this.JSC$19575_path_),RlZ(this)):K[0]=="stop"&&Kv(this,7):this.state_==3&&(K[0]=="stop"?Kv(this,7):
K[0]!="noop"&&this.handler_&&this.handler_.JSC$19582_channelHandleArray(K),this.JSC$19575_backChannelRetryCount_=0)}};
pv.prototype.JSC$19575_ensureInState_=function(d){if(!_.TL(arguments,this.state_))throw Error("Ek`"+this.state_);};
var Kv=function(d,H){d.JSC$19571_channelDebug_.info("Error code "+H);if(H==2||H==9){var K=null;d.handler_&&(K=null);var c=(0,_.LA)(d.testGoogleComCallback_,d);K||(K=new _.jM("//www.google.com/images/cleardot.gif"),_.cQ(K));LZG(K.toString(),1E4,c)}else vc(2);d.onError_(H)};
pv.prototype.testGoogleComCallback_=function(d){d?(this.JSC$19571_channelDebug_.info("Successfully pinged google.com"),vc(2)):(this.JSC$19571_channelDebug_.info("Failed to ping google.com"),vc(1),this.onError_(8))};
pv.prototype.onError_=function(d){this.JSC$19571_channelDebug_.debug("HttpChannel: error - "+d);this.state_=0;this.handler_&&this.handler_.JSC$19582_channelError(d);heZ(this);UAO(this)};
var heZ=function(d){d.state_=0;d.JSC$19575_lastStatusCode_=-1;if(d.handler_)if(d.pendingMaps_.length==0&&d.JSC$19571_outgoingMaps_.length==0)d.handler_.JSC$19582_channelClosed();else{d.JSC$19571_channelDebug_.debug("Number of undelivered maps, pending: "+d.pendingMaps_.length+", outgoing: "+d.JSC$19571_outgoingMaps_.length);var H=_.tC(d.pendingMaps_),K=_.tC(d.JSC$19571_outgoingMaps_);d.pendingMaps_.length=0;d.JSC$19571_outgoingMaps_.length=0;d.handler_.JSC$19582_channelClosed(H,K)}},oZO=function(d,
H){H=lvU(d,null,H);
d.JSC$19571_channelDebug_.debug("GetForwardChannelUri: "+H);return H},eeZ=function(d,H,K){H=lvU(d,d.JSC$19570_shouldUseSecondaryDomains()?H:null,K);
d.JSC$19571_channelDebug_.debug("GetBackChannelUri: "+H);return H},lvU=function(d,H,K){var c=_.Qe(K);
if(c.JSC$10002_domain_!="")H&&_.fq(c,H+"."+c.JSC$10002_domain_),_.AH(c,c.JSC$10002_port_);else{var p=window.location;c=tfS(p.protocol,H?H+"."+p.hostname:p.hostname,+p.port,K)}d.JSC$19575_extraParams_&&_.rs.forEach(d.JSC$19575_extraParams_,function(g,a){_.Y1(c,a,g)});
_.Y1(c,"VER",d.JSC$19575_channelVersion_);gx(d,c);return c};
pv.prototype.JSC$19570_createXhrIo=function(d){if(d)throw Error("Bk");d=new _.P9;d.JSC$9767_withCredentials_=!1;return d};
pv.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
pv.prototype.notifyServerReachabilityEvent=function(d){var H=NaG;H.dispatchEvent(new ReO(H,d))};
pv.prototype.JSC$19570_shouldUseSecondaryDomains=function(){return!1};
new byv;var hlZ=function(){};
_.G=hlZ.prototype;_.G.JSC$19582_channelOpened=function(){};
_.G.JSC$19582_channelHandleArray=function(){};
_.G.JSC$19582_channelSuccess=function(){};
_.G.JSC$19582_channelError=function(){};
_.G.JSC$19582_channelClosed=function(){};
_.G.JSC$19582_getAdditionalParams=function(){return{}};
_.G.isActive=function(){return!0};var L9g=function(d){d.front_.length===0&&(d.front_=d.back_,d.front_.reverse(),d.back_=[])};
_.G=w5b.prototype;_.G.enqueue=function(d){this.back_.push(d)};
_.G.peek=function(){L9g(this);return _.BF(this.front_)};
_.G.getCount=function(){return this.front_.length+this.back_.length};
_.G.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.G.clear=function(){this.front_=[];this.back_=[]};
_.G.contains=function(d){return _.TL(this.front_,d)||_.TL(this.back_,d)};
_.G.remove=function(d){var H=this.front_;var K=Array.prototype.lastIndexOf.call(H,d,H.length-1);K>=0?(_.MlM(H,K),H=!0):H=!1;return H||_.Q4(this.back_,d)};
_.G.getValues=function(){for(var d=[],H=this.front_.length-1;H>=0;--H)d.push(this.front_[H]);H=this.back_.length;for(var K=0;K<H;++K)d.push(this.back_[K]);return d};var ie=function(d){this.JSC$19586_map_=new _.oh;this.size=0;d&&this.addAll(d)},M$v=function(d){var H=typeof d;
return H=="object"&&d||H=="function"?"o"+_.b1(d):H.charAt(0)+d};
_.G=ie.prototype;_.G.getCount=function(){return this.JSC$19586_map_.size};
_.G.add=function(d){this.JSC$19586_map_.set(M$v(d),d);this.size=this.JSC$19586_map_.size};
_.G.addAll=function(d){d=_.NW(d);for(var H=d.length,K=0;K<H;K++)this.add(d[K]);this.size=this.JSC$19586_map_.size};
_.G.removeAll=function(d){d=_.NW(d);for(var H=d.length,K=0;K<H;K++)this.remove(d[K]);this.size=this.JSC$19586_map_.size};
_.G.delete=function(d){d=this.JSC$19586_map_.remove(M$v(d));this.size=this.JSC$19586_map_.size;return d};
_.G.remove=function(d){return this.delete(d)};
_.G.clear=function(){this.JSC$19586_map_.clear();this.size=0};
_.G.isEmpty=function(){return this.JSC$19586_map_.size===0};
_.G.has=function(d){return this.JSC$19586_map_.containsKey(M$v(d))};
_.G.contains=function(d){return this.JSC$19586_map_.containsKey(M$v(d))};
_.G.getValues=function(){return this.JSC$19586_map_.getValues()};
_.G.values=function(){return this.JSC$19586_map_.values()};
_.G.clone=function(){return new ie(this)};
_.G.equals=function(d){return this.getCount()==T51(d)&&mGv(this,d)};
var mGv=function(d,H){var K=T51(H);if(d.getCount()>K)return!1;!(H instanceof ie)&&K>5&&(H=new ie(H));return Qoj(d,function(c){var p=H;return p.contains&&typeof p.contains=="function"?p.contains(c):p.containsValue&&typeof p.containsValue=="function"?p.containsValue(c):_.O5(p)||typeof p==="string"?_.TL(p,c):_.rs.containsValue(p,c)})};
ie.prototype.__iterator__=function(){return this.JSC$19586_map_.__iterator__(!1)};
ie.prototype[Symbol.iterator]=function(){return this.values()};var wmq={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(d){return(this._clampValue(d)-this.min)/(this.max-this.min)},
_clampValue:function(d){return Math.min(this.max,Math.max(this.min,this._calcStep(d)))},
_calcStep:function(d){d=parseFloat(d);if(!this.step)return d;d=Math.round((d-this.min)/this.step);return this.step<1?d/(1/this.step)+this.min:d*this.step+this.min},
_validateValue:function(){var d=this._clampValue(this.value);this.value=this.oldValue=isNaN(d)?this.oldValue:d;return this.value!==d},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var P9T;var uTZ;_.zn({_template:function(){if(uTZ!==void 0)return uTZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-drawer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_drawer.tp.yt.app.drawer.css.js--\x3e<div id="scrim" on-click="close" class="style-scope tp-yt-app-drawer"></div>\n\n\n<div id="contentContainer" opened$="[[opened]]" persistent$="[[persistent]]" position$="[[position]]" swipe-open$="[[swipeOpen]]" class="style-scope tp-yt-app-drawer">\n  <slot class="style-scope tp-yt-app-drawer"></slot>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;P9T===void 0&&(P9T=document.createElement("template"));var c=P9T;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return uTZ=d},
is:"tp-yt-app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)",
"_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){_.vV(this,function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this);this.addEventListener("keydown",this._tabKeydownHandler.bind(this));this.listen(this,"track","_track");this.setScrollDirection("y")});
this.fire("app-reset-layout")},
detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
toggle:function(){this.opened=!this.opened},
getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},
_isRTL:function(){return window.getComputedStyle(this).direction==="rtl"},
_resetPosition:function(){switch(this.align){case "start":this._setPosition(this._isRTL()?"right":"left");return;case "end":this._setPosition(this._isRTL()?"left":"right");return}this._setPosition(this.align)},
_escKeydownHandler:function(d){d.keyCode===27&&(d.preventDefault(),this.close())},
_track:function(d){if(!this.persistent&&!this.disableSwipe)switch(d.preventDefault(),d.detail.state){case "start":this._trackStart(d);break;case "track":this._trackMove(d);break;case "end":this._trackEnd(d)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var d=this.$.contentContainer.getBoundingClientRect();this._savedWidth=d.width;this._translateOffset=this.position==="left"?d.left:d.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(d){this._trackDetails&&(this._translateDrawer(d.detail.dx+this._translateOffset),this._trackDetails.push({dx:d.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(d){if(this._trackDetails){var H=d.detail.dx+this._translateOffset,K=this.getWidth();H=this.position==="left"?H>=0||H<=-K:H<=0||H>=K;if(!H){var c=this._trackDetails;this._trackDetails=null;this._flingDrawer(d,c);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}K/=2;d.detail.dx<-K?this.opened=this.position==="right":d.detail.dx>K&&(this.opened=this.position==="left");H?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(d,H){for(var K=Date.now(),c=K-100,p,g=0,a=H.length-1;g<=a;){var e=g+a>>1,k=H[e];k.timeStamp>=c?(p=k,a=e-1):g=e+1}return p?(d.detail.dx-p.dx)/(K-p.timeStamp||1):0},
_flingDrawer:function(d,H){H=this._calculateVelocity(d,H);if(!(Math.abs(H)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;d=d.detail.dx+this._translateOffset;var K=this.getWidth(),c=this.position==="left",p=H>0;p?(H=Math.max(H,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(H=Math.min(H,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");H=this._FLING_INITIAL_SLOPE*(!p&&c?-(d+K):p&&!c?K-d:-d)/H;this._styleTransitionDuration(H);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,H)}},
_styleTransitionDuration:function(d){this.style.transitionDuration=d+"ms";this.$.contentContainer.style.transitionDuration=d+"ms";this.$.scrim.style.transitionDuration=d+"ms"},
_styleTransitionTimingFunction:function(d){this.$.contentContainer.style.transitionTimingFunction=d;this.$.scrim.style.transitionTimingFunction=d},
_translateDrawer:function(d){var H=this.getWidth();this.position==="left"?(d=Math.max(-H,Math.min(d,0)),this.$.scrim.style.opacity=1+d/H):(d=Math.max(0,Math.min(d,H)),this.$.scrim.style.opacity=1-d/H);this.translate3d(d+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var d=this._drawerState;d===this._DRAWER_STATE.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleTransitionTimingFunction(""),this.style.visibility="");this._savedWidth=null;this._drawerState=this.opened?this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._DRAWER_STATE.CLOSED;d!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",
this._boundEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=""),d!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var d=_.Iu(this).querySelectorAll('a[href]:not([tabindex="-1"]),area[href]:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),iframe:not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),[contentEditable=true]:not([tabindex="-1"])');d.length>0?(this._firstTabStop=d[0],this._lastTabStop=d[d.length-1]):
this._lastTabStop=this._firstTabStop=null;(d=this.getAttribute("tabindex"))&&parseInt(d,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(d){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||d.keyCode!==9||(d.shiftKey?this._firstTabStop&&_.Iu(d).localTarget===this._firstTabStop&&(d.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Iu(d).localTarget===this._lastTabStop&&(d.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(d,H){this.toggleClass("visible",d&&!H,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var IfT;var r$g;_.zn({_template:function(){if(r$g!==void 0)return r$g;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_progress.tp.yt.paper.progress.css.js--\x3e<div id="progressContainer" class="style-scope tp-yt-paper-progress">\n  <div id="secondaryProgress" hidden$="[[_hideSecondaryProgress(secondaryRatio)]]" class="style-scope tp-yt-paper-progress"></div>\n  <div id="primaryProgress" class="style-scope tp-yt-paper-progress"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;IfT===void 0&&(IfT=document.createElement("template"));var c=IfT;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return r$g=d},
is:"tp-yt-paper-progress",behaviors:[wmq],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(d){this.toggleClass("indeterminate",d,this.$.primaryProgress)},
_transformProgress:function(d,H){d.style.transform=d.style.webkitTransform="scaleX("+H/100+")"},
_mainRatioChanged:function(d){this._transformProgress(this.$.primaryProgress,d)},
_progressChanged:function(d,H,K,c,p){d=this._clampValue(d);H=this._clampValue(H);var g=this._calcRatio(d)*100,a=this._calcRatio(H)*100;this._setSecondaryRatio(g);this._transformProgress(this.$.secondaryProgress,g);this._transformProgress(this.$.primaryProgress,a);this.secondaryProgress=d;p?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",H);this.setAttribute("aria-valuemin",K);this.setAttribute("aria-valuemax",c)},
_disabledChanged:function(d){this.setAttribute("aria-disabled",d?"true":"false")},
_hideSecondaryProgress:function(d){return d===0}});var W9v;var ByZ;var zlq=function(){};
_.G=zlq.prototype;_.G.registered=function(){};
_.G.addOwnKeyBinding=function(){};
_.G.removeOwnKeyBindings=function(){};
_.G.keyboardEventMatchesKeys=function(){};
_.G._collectKeyBindings=function(){};
_.G._prepKeyBindings=function(){};
_.G._addKeyBinding=function(){};
_.G._resetKeyEventListeners=function(){};
_.G._listenKeyEventListeners=function(){};
_.G._unlistenKeyEventListeners=function(){};
_.G._onKeyBindingEvent=function(){};
_.G._triggerKeyHandler=function(){};
_.G._tapHandler=function(){};
_.G._focusChanged=function(){};
_.G._detectKeyboardFocus=function(){};
_.G._userActivate=function(){};
_.G._upHandler=function(){};
_.G._spaceKeyDownHandler=function(){};
_.G._spaceKeyUpHandler=function(){};
_.G._asyncClick=function(){};
_.G._pressedChanged=function(){};
_.G._ariaActiveAttributeChanged=function(){};
_.G._activeChanged=function(){};
_.G._controlStateChanged=function(){};
_.G._changedButtonState=function(){};
_.G._focusBlurHandler=function(){};
_.G._disabledChanged=function(){};
_.G._changedControlState=function(){};
_.G._buttonStateChanged=function(){};
_.G._downHandler=function(){};
_.G.ensureRipple=function(){};
_.G.getRipple=function(){};
_.G.hasRipple=function(){};
_.G._noinkChanged=function(){};
_.G._calcRatio=function(){};
_.G._clampValue=function(){};
_.G._calcStep=function(){};
_.G._validateValue=function(){};
_.G._update=function(){};
_.G._setImmediateValue=function(){};
_.G._setExpand=function(){};
_.G._setDragging=function(){};
_.G._setTransiting=function(){};
_.G._setMarkers=function(){};
_.G._setPressed=function(){};
_.G._setPointerDown=function(){};
_.G._setReceivedFocusFromKeyboard=function(){};
_.G._setFocused=function(){};
_.G._setRatio=function(){};
zlq=_.zn({_template:function(){if(ByZ!==void 0)return ByZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-slider--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_slider.tp.yt.paper.slider.css.js--\x3e<div id="sliderContainer" class$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]] style-scope tp-yt-paper-slider">\n  <div class="bar-container style-scope tp-yt-paper-slider">\n    <tp-yt-paper-progress disabled$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick" class="style-scope tp-yt-paper-slider">\n    </tp-yt-paper-progress>\n  </div>\n\n  <template is="dom-if" if="[[snaps]]" class="style-scope tp-yt-paper-slider">\n    <div class="slider-markers style-scope tp-yt-paper-slider">\n      <template is="dom-repeat" items="[[markers]]" class="style-scope tp-yt-paper-slider">\n        <div class="slider-marker style-scope tp-yt-paper-slider"></div>\n      </template>\n    </div>\n  </template>\n\n  <div id="sliderKnobContainer" class="slider-knob-container style-scope tp-yt-paper-slider">\n    <div id="sliderKnob" class="slider-knob style-scope tp-yt-paper-slider" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">\n      <div class="slider-knob-inner style-scope tp-yt-paper-slider" value$="[[immediateValue]]"></div>\n    </div>\n  </div>\n</div>\n\n<template is="dom-if" if="[[editable]]" class="style-scope tp-yt-paper-slider">\n  <tp-yt-paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input style-scope tp-yt-paper-slider" disabled$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float="">\n  </tp-yt-paper-input>\n</template>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;W9v===void 0&&(W9v=document.createElement("template"));var c=W9v;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return ByZ=d},
is:"tp-yt-paper-slider",behaviors:[_.hQ,_.wi,_.g8S,wmq],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean,
value:!1,readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}},
light:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},keyBindings:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&_.ZQ(this.$.sliderBar,"auto")},
increment:function(){this.value=this._clampValue(this.value+this.step)},
decrement:function(){this.value=this._clampValue(this.value-this.step)},
_updateKnob:function(d,H,K){this.setAttribute("aria-valuemin",H);this.setAttribute("aria-valuemax",K);this.setAttribute("aria-valuenow",d);this._positionKnob(this._calcRatio(d)*100)},
_valueChanged:function(){this.fire("value-change",{composed:!0})},
_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},
_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},
_expandKnob:function(){this._setExpand(!0)},
_resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)},
_positionKnob:function(d){this._setImmediateValue(this._calcStep(this._calcKnobPosition(d)));this._setRatio(this._calcRatio(this.immediateValue)*100);this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},
_calcKnobPosition:function(d){return(this.max-this.min)*d/100+this.min},
_onTrack:function(d){d.stopPropagation();switch(d.detail.state){case "start":this._trackStart(d);break;case "track":this._trackX(d);break;case "end":this._trackEnd()}},
_trackStart:function(){this._setTransiting(!1);this._w=this.$.sliderBar.offsetWidth;this._knobstartx=this._startx=this._x=this.ratio*this._w/100;this._minx=-this._startx;this._maxx=this._w-this._startx;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)},
_trackX:function(d){this.dragging||this._trackStart(d);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,d.detail.dx*(this._isRTL?-1:1)));d=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(d);d=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(d+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var d=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;d.transform=d.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(d){this._expandKnob();d.preventDefault();this.focus()},
_bartrack:function(d){this._allowBarEvent(d)&&this._onTrack(d)},
_barclick:function(d){this._w=this.$.sliderBar.offsetWidth;var H=this.$.sliderBar.getBoundingClientRect();H=(d.detail.x-H.left)/this._w*100;this._isRTL&&(H=100-H);var K=this.ratio;this._setTransiting(!0);this._positionKnob(H);K===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
d.preventDefault();this.focus()},
_bardown:function(d){this._allowBarEvent(d)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(d))},
_knobTransitionEnd:function(d){d.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(d,H,K,c){c||this._setMarkers([]);H=Math.round((K-H)/this.step);H>d&&(H=d);if(H<0||!isFinite(H))H=0;this._setMarkers(Array(H))},
_mergeClasses:function(d){return Object.keys(d).filter(function(H){return d[H]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(d){return!this.ignoreBarTouch||d.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(d){this._isRTL?this._incrementKey(d):this._decrementKey(d)},
_rightKey:function(d){this._isRTL?this._decrementKey(d):this._incrementKey(d)},
_incrementKey:function(d){this.disabled||(d.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),d.preventDefault())},
_decrementKey:function(d){this.disabled||(d.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),d.preventDefault())},
_changeValue:function(d){this.value=d.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(d){d.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.pwC._createRipple.call(this)},
_focusedChanged:function(d){d&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=d?"":"none",this._ripple.holdDown=d)}});var Xmt;var J$T;var GP=null,skU=function(){};
_.G=skU.prototype;_.G.fit=function(){};
_.G._discoverInfo=function(){};
_.G.resetFit=function(){};
_.G.refit=function(){};
_.G.position=function(){};
_.G.constrain=function(){};
_.G._sizeDimension=function(){};
_.G.__sizeDimension=function(){};
_.G.center=function(){};
_.G.__getNormalizedRect=function(){};
_.G.__getOffscreenArea=function(){};
_.G.__getPosition=function(){};
_.G.notifyResize=function(){};
_.G.assignParentResizable=function(){};
_.G.stopResizeNotificationsFor=function(){};
_.G._subscribeIronResize=function(){};
_.G._unsubscribeIronResize=function(){};
_.G.resizerShouldNotify=function(){};
_.G._onDescendantIronResize=function(){};
_.G._fireResize=function(){};
_.G._onIronRequestResizeNotifications=function(){};
_.G._parentResizableChanged=function(){};
_.G._notifyDescendant=function(){};
_.G._requestResizeNotifications=function(){};
_.G._findParent=function(){};
_.G.toggle=function(){};
_.G.open=function(){};
_.G.close=function(){};
_.G.cancel=function(){};
_.G.invalidateTabbables=function(){};
_.G._ensureSetup=function(){};
_.G._canceledChanged=function(){};
_.G._withBackdropChanged=function(){};
_.G._prepareRenderOpened=function(){};
_.G._finishRenderOpened=function(){};
_.G._finishRenderClosed=function(){};
_.G._preparePositioning=function(){};
_.G._finishPositioning=function(){};
_.G._applyFocus=function(){};
_.G._onCaptureClick=function(){};
_.G._onCaptureFocus=function(){};
_.G._onCaptureEsc=function(){};
_.G._onCaptureTab=function(){};
_.G._onIronResize=function(){};
_.G._onNodesChange=function(){};
_.G.__ensureFirstLastFocusables=function(){};
_.G.__openedChanged=function(){};
_.G.__deraf=function(){};
_.G.__updateScrollObservers=function(){};
_.G.__addScrollListeners=function(){};
_.G.__removeScrollListeners=function(){};
_.G.__isValidScrollAction=function(){};
_.G.__onCaptureScroll=function(){};
_.G.__saveScrollPosition=function(){};
_.G.__restoreScrollPosition=function(){};
_.G._setCanceled=function(){};
skU=_.zn({_template:function(){if(J$T!==void 0)return J$T;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toast--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toast.tp.yt.paper.toast.css.js--\x3e<span id="label" class="style-scope tp-yt-paper-toast">{{text}}</span>\n<slot class="style-scope tp-yt-paper-toast"></slot>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;Xmt===void 0&&(Xmt=document.createElement("template"));var c=Xmt;K.call(H,c.content.cloneNode(!0),d.content.firstChild);return J$T=d},
is:"tp-yt-paper-toast",behaviors:[_.Eh],properties:{fitInto:{type:Object,value:window,observer:"_onFitIntoChanged"},horizontalAlign:{type:String,value:"left"},verticalAlign:{type:String,value:"bottom"},duration:{type:Number,value:3E3},text:{type:String,value:""},label:{type:String,value:"",observer:"_onLabelChanged"},noCancelOnOutsideClick:{type:Boolean,value:!0},noAutoFocus:{type:Boolean,value:!0},noIronAnnounce:{type:Boolean,value:!1},announceLabelUpdates:{type:Boolean,value:!1}},listeners:{transitionend:"__onTransitionEnd"},
get visible(){_.Ms._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.QX.requestAvailability()},
show:function(d){typeof d=="string"&&(d={text:d});for(var H in d)H.indexOf("_")===0?_.Ms._warn('The property "'+H+'" is private and was not set.'):H in this?this[H]=d[H]:_.Ms._warn('The property "'+H+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(d){d&&d.target===this&&d.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(GP&&GP!==this&&GP.close(),GP=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):GP===this&&(GP=null);_.S0._openedChanged.apply(this,arguments)},
_onLabelChanged:function(){this.opened&&this.announceLabelUpdates&&this._fireIronAnnounce()},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(d){this.positionTarget=d},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var F9T=new _.Dk("disablePersonalizationAction");var eo5=new _.Dk("showDmaConsentFlowCommand");var kxO=new _.Dk("showMmgNoticeCommand");var Zsq=new _.Dk("saveConsentAction");var TyU=function(d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bv(d)};
_.m(TyU,_.He);var QkG=_.Zch(TyU);var t$G=new _.Dk("updateTopbarAvatarAction");var Ysj=new _.Dk("channelHandleValidationResultRenderer");var OsZ=new _.Dk("generateHandleFromNameResultRenderer");var Ssv=new _.Dk("channelHandleInputRenderer");var ECg=new _.Dk("copyLinkRenderer");var y$1=new _.Dk("timedCommand");var bst=new _.Dk("clearCookieAction");var Ny5=new _.Dk("getMultiPageMenuAction");var DGb=new _.Dk("addToGuideSectionAction"),ffT=new _.Dk("removeFromGuideSectionAction");var A$S=new _.Dk("updateNotificationsUnseenCountAction");var jkO=new _.Dk("resetChannelUnreadCountCommand");var vCb=new _.Dk("resetSubscriptionsUnreadDotCommand");var dZ5=new _.Dk("selectLanguageCommand");var IAO=new _.Dk("sendFeedbackAction");var Hdg=new _.Dk("uploadImageToScottyCommand");var $Zj=new _.Dk("registerPromoCommand");var Ku1=new _.Dk("setPushNotificationsEnabledCommand");var cT0=new _.Dk("desktopTopbarRenderer");var pCG=new _.Dk("surveyFollowUpRenderer");var gkj=new _.Dk("handlesClaimingRadioOptionRenderer");var idt=new _.Dk("hotkeyDialogRenderer");var Gm1=new _.Dk("modifyReportFormCommand");var ok0=new _.Dk("accountLinkCommand");var qqv=new _.Dk("accountUnlinkCommand");var ajj=new _.Dk("logAccountLinkingEventCommand");var ljO=new _.Dk("guideCollapsibleEntryRenderer");var eq5=new _.Dk("guideDownloadsEntryRenderer");var og=new _.Dk("guideEntryRenderer");var km1=new _.Dk("getLocationCommand");var xZ1=new _.Dk("locationCollectionCommand");var nkq=new _.Dk("storiesItemViewModel");var CqO=new _.Dk("addToRemoteQueueAction");var Rq0=new _.Dk("insertInRemoteQueueAction");var VPT=new _.Dk("removeFromRemoteQueueAction");var UZZ=new _.Dk("notificationRenderer");var jdg=new _.Dk("localWatchHistoryCommand");var hqO=new _.Dk("pdgBuyFlowHeaderRenderer");var Lu5=new _.Dk("pdgColorSliderRenderer");var MPU=new _.Dk("pdgCommentOptionRenderer");var mZG=new _.Dk("pdgCommentPreviewRenderer");var wCZ=new _.Dk("superVodSelectableItemButtonRenderer");var PqO=new _.Dk("switchButtonRenderer");var uVq=new _.Dk("upsellDialogRenderer");var IjZ=new _.Dk("feedbackQuestionRenderer"),rT1=new _.Dk("feedbackOptionRenderer");var Wuv=new _.Dk("sponsorshipsTierRenderer"),Bl5=new _.Dk("sponsorshipsPromotionChannelRenderer");var zqU=new _.Dk("simpleSurveyMessageRenderer");var Ibt=new _.Dk("invokeInstrumentManagerAction");var XCb=new _.Dk("logYpcFlowDismissCommand");var JTg=new _.Dk("logYpcFlowStartCommand");var smg=new _.Dk("unlimitedCreateFamilyEndpoint");var Fuj=new _.Dk("iconBadgeRenderer");var vvZ=new _.Dk("collaborativePlaylistVisibilityValidationRule");var Zdq=function(d){_.eo.call(this,"channelMessage");this.message=d};
_.m(Zdq,_.eo);var TlZ=function(d){_.eo.call(this,"channelError");this.error=d};
_.m(TlZ,_.eo);var Qmj={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",PUNCTUAL_WATCH:"pcw",IP_VALIDATION:"ipv"},tPT={UNKNOWN_THEME:"u",CLASSIC:"cl",
KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},Yq1={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},Od5={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},Sqj={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var qP=function(d){this.name=this.id="";this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.ownerObfuscatedGaiaId=this.obfuscatedGaiaId=this.avatar=this.username="";this.connected=!1;this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new _.oh;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;d&&(this.id=d.id||d.name,this.name=d.name,this.clientName=d.clientName?d.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=d.app,this.type=d.type||"REMOTE_CONTROL",this.username=d.user||"",this.avatar=d.userAvatarUri||"",this.obfuscatedGaiaId=d.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=d.ownerObfuscatedGaiaId||"",this.castUserId=d.castUserId||"",this.theme=d.theme||"u",Ekt(this,d.capabilities||""),yT0(this,
d.compatibleSenderThemes||""),bd1(this,d.experiments||""),this.remoteControllerUrl=d.remoteControllerUrl||"",this.localChannelEncryptionKey=d.localChannelEncryptionKey||"",this.deviceContext=d.deviceContext,this.brand=d.brand||"",this.model=d.model||"",this.year=d.year||0,this.os=d.os||"",this.osVersion=d.osVersion||"",this.chipset=d.chipset||"",this.mdxDialServerType=d.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=d.pairingType||"unknown",d=d.deviceInfo)&&(d=JSON.parse(d),this.brand=
d.brand||"",this.model=d.model||"",this.year=d.year||0,this.os=d.os||"",this.osVersion=d.osVersion||"",this.chipset=d.chipset||"",this.clientName=d.clientName?d.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=d.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
qP.prototype.copy=function(){var d={id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,obfuscatedGaiaId:this.obfuscatedGaiaId,ownerObfuscatedGaiaId:this.ownerObfuscatedGaiaId,theme:this.theme,capabilities:Array.from(this.capabilities.values()).join(","),compatibleSenderThemes:Array.from(this.compatibleSenderThemes.values()).join(","),experiments:Array.from(this.experiments.values()).join(","),pairingType:this.pairingType};this.brand&&(d.brand=this.brand);
this.model&&(d.model=this.model);this.year&&(d.year=this.year);this.os&&(d.os=this.os);this.osVersion&&(d.osVersion=this.osVersion);this.chipset&&(d.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(d.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(d.mdxDialServerType=this.mdxDialServerType);d=new qP(d);d.connected=this.connected;d.remoteControllerUrl=this.remoteControllerUrl;d.localChannelEncryptionKey=this.localChannelEncryptionKey;d.deviceContext=
this.deviceContext;d.castUserId=this.castUserId;return d};
qP.prototype.equals=function(d){return d?this.id==d.id:!1};
var Ekt=function(d,H){d.capabilities.clear();_.p1(H.split(","),_.hO(_.rs.contains,Qmj)).forEach(function(K){d.capabilities.add(K)})},yT0=function(d,H){d.compatibleSenderThemes.clear();
_.p1(H.split(","),_.hO(_.rs.contains,tPT)).forEach(function(K){d.compatibleSenderThemes.add(K)})},bd1=function(d,H){d.experiments.clear();
H.split(",").forEach(function(K){d.experiments.add(K)})};var NlO=function(d,H){this.action=d;this.params=H||{}};_.K1(POt,_.h_);_.G=POt.prototype;_.G.JSC$19622_onTick_=function(){this.JSC$19620_interval_=Math.min(3E5,this.JSC$19620_interval_*2);this.JSC$19622_listener_();this.nextTickTime_&&this.start()};
_.G.start=function(){var d=this.JSC$19620_interval_+15E3*Math.random(),H=this.delay_;H.isActive()||H.start(d);this.nextTickTime_=Date.now()+d};
_.G.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.G.isActive=function(){return this.delay_.isActive()};
_.G.reset=function(){this.delay_.stop();this.JSC$19620_interval_=5E3};_.K1(Nd,hlZ);_.G=Nd.prototype;_.G.subscribe=function(d,H,K){return this.pubsub_.subscribe(d,H,K)};
_.G.unsubscribe=function(d,H,K){return this.pubsub_.unsubscribe(d,H,K)};
_.G.unsubscribeByKey=function(d){return this.pubsub_.unsubscribeByKey(d)};
_.G.publish=function(d,H){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.G.dispose=function(){this.JSC$19623_disposed_||(this.JSC$19623_disposed_=!0,_.AA(this.pubsub_),this.disconnect(),_.AA(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19623_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.e5({})})};
_.G.isDisposed=function(){return this.JSC$19623_disposed_};
_.G.connect=function(d,H,K){var c=this,p,g,a,e;return _.l(function(k){if(k.nextAddress==1)return _.nz(k,2),c.useAsyncBrowserChannelHandler_?k.yield(c.connectPromise_,2):k.jumpTo(2);_.xs(k);if(c.JSC$19623_disposed_||c.JSC$19623_channel_&&c.JSC$19623_channel_.getState()==2)return k.return();c.sCookie_="";c.reconnectTimer_.stop();c.connectionParams_=d||null;c.connectUi_=H||0;p=c.JSC$19623_pathPrefix_+"/test";g=c.JSC$19623_pathPrefix_+"/bind";a=new pv(K?K.firstTestResults:null,K?K.secondTestResults:null,
c.enableAsyncTest_);if(e=c.JSC$19623_channel_)e.handler_=null;a.handler_=c;c.JSC$19623_channel_=a;if(c.useAsyncBrowserChannelHandler_)return c.connectPromise_=DZZ(c).then(function(){return fjO(c,p,g,e,K)}),k.return(c.connectPromise_.then(function(){c.connectPromise_=_.e5()}));
fjO(c,p,g,e,K);return _.Cz(k,0)})};
var fjO=function(d,H,K,c,p){ATv(d);if(d.JSC$19623_channel_){var g=_.Fm("ID_TOKEN"),a=d.JSC$19623_channel_.JSC$19575_extraHeaders_||{};g?a["x-youtube-identity-token"]=g:delete a["x-youtube-identity-token"];d.JSC$19623_channel_.JSC$19575_extraHeaders_=a}jmO(d);c?(c.getState(),d.JSC$19623_channel_.connect(H,K,d.defaultQueryParams_,c.sid_,c.JSC$19575_lastArrayId_)):p?d.JSC$19623_channel_.connect(H,K,d.defaultQueryParams_,p.sessionId,p.arrayId):d.JSC$19623_channel_.connect(H,K,d.defaultQueryParams_)};
Nd.prototype.disconnect=function(d){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.e5())}finally{this.disconnectUi_=d||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),ATv(this),this.JSC$19623_channel_&&(this.JSC$19623_channel_.getState()==3&&xG1(this.JSC$19623_channel_),this.JSC$19623_channel_.disconnect()),this.disconnectUi_=0}};
Nd.prototype.sendMessage=function(d,H){var K=this,c;return _.l(function(p){switch(p.nextAddress){case 1:_.nz(p,2);if(!K.useAsyncBrowserChannelHandler_){p.jumpTo(2);break}return p.yield(K.connectPromise_,2);case 2:_.xs(p);if(K.JSC$19623_disposed_)return p.return();c={_sc:d};H&&_.rs.extend(c,H);if(K.reconnectTimer_.isActive()||(K.JSC$19623_channel_?K.JSC$19623_channel_.getState():0)==2){K.JSC$19623_pendingMessages_.push(c);p.jumpTo(6);break}if(!K.isChannelOpened()){p.jumpTo(6);break}_.nz(p,8);if(!K.useAsyncBrowserChannelHandler_||
vkU(K,d)){p.jumpTo(8);break}return p.yield(DZZ(K),8);case 8:_.xs(p,0,0,1);K.isChannelOpened()&&(vkU(K,d)||jmO(K),ATv(K),ktT(K.JSC$19623_channel_,c));_.Cz(p,6,1);break;case 6:_.Cz(p,0)}})};
var vkU=function(d,H){return d.enableMdxAuthForConnectionOnly_?!0:d.disableMdxAuthForAdMessages_?Object.values(Yq1).includes(H):d.disableMdxAuthForNonPlaybackMessages_?!Object.values(Od5).includes(H):d.disableMdxAuthForShortsMessages_?Object.values(Sqj).includes(H):!1};
Nd.prototype.JSC$19582_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19623_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)dTg(this);else{var d=this.JSC$19623_pendingMessages_;this.JSC$19623_pendingMessages_=[];var H=d.length;jmO(this);HeT(this,d,H);$TG(this)}else $TG(this)};
var dTg=function(d){var H,K;_.l(function(c){if(c.nextAddress==1)return _.nz(c,2),c.yield(DZZ(d),2);_.xs(c);H=d.JSC$19623_pendingMessages_;d.JSC$19623_pendingMessages_=[];K=H.length;HeT(d,H,K);$TG(d);return _.Cz(c,0)})},HeT=function(d,H,K){for(var c=0;c<K;++c)ktT(d.JSC$19623_channel_,H[c]);
$TG(d)},$TG=function(d){d.publish("handlerOpened");
d.JSC$19623_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.G=Nd.prototype;_.G.JSC$19582_channelError=function(d){var H=d==2&&this.JSC$19623_channel_.JSC$19575_lastStatusCode_==401;d==4||H||this.reconnectTimer_.start();this.publish("handlerError",d,H);H=Object.keys(nZO).find(function(K){return nZO[K]===d});
this.JSC$19623_channelErrorCounter.increment("BROWSER_CHANNEL",H!=null?H:"UNKNOWN")};
_.G.JSC$19582_channelClosed=function(d,H){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(H)for(var K=H.length,c=0;c<K;++c){var p=H[c].map;p&&this.JSC$19623_pendingMessages_.push(p)}this.JSC$19623_channelClosedCounter.increment("BROWSER_CHANNEL");d&&this.pendingMapsOnClosedCounter.JSC$9903_streamzService.JSC$9758_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",d.length);H&&this.undeliveredMapsOnClosedCounter.JSC$9906_streamzService.JSC$9758_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
H.length)};
_.G.JSC$19582_channelSuccess=function(d,H){H!=null&&d!=null&&this.channelMessageSentCounter.increment()};
_.G.JSC$19582_getAdditionalParams=function(){var d={v:2};this.sCookie_&&(d.gsessionid=this.sCookie_);this.connectUi_!=0&&(d.ui=""+this.connectUi_);this.disconnectUi_!=0&&(d.ui=""+this.disconnectUi_);this.connectionParams_&&_.rs.extend(d,this.connectionParams_);return d};
_.G.JSC$19582_channelHandleArray=function(d){d[0]=="S"?this.sCookie_=d[1]:d[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19623_channel_.disconnect()):this.publish("handlerMessage",new NlO(d[0],d[1]));this.JSC$19623_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.G.isChannelOpened=function(){return!!this.JSC$19623_channel_&&this.JSC$19623_channel_.getState()==3};
var ATv=function(d){if(d.JSC$19623_channel_){var H=d.JSC$19623_getXsrfToken_(),K=d.JSC$19623_channel_.JSC$19575_extraHeaders_||{};H?K["x-youtube-lounge-xsrf-token"]=H:delete K["x-youtube-lounge-xsrf-token"];d.JSC$19623_channel_.JSC$19575_extraHeaders_=K}},DZZ=function(d){if(d.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.e5();
if(!d.enableCachedUpdateAuthorizationHeader_)return K7S(d);d.updateAuthorizationHeaderPromise_===null&&(d.updateAuthorizationHeaderPromise_=K7S(d));return d.updateAuthorizationHeaderPromise_},K7S=function(d){return _.Lq(d.getAuthorizationHeader_().then(function(H){cov(d,H)}).thenCatch(function(){}),function(){d.updateAuthorizationHeaderPromise_=null})},cov=function(d,H){if(d.JSC$19623_channel_){var K=d.JSC$19623_channel_.JSC$19575_extraHeaders_||{};
H&&Object.keys(H).length>0?K=Object.assign({},K,H):delete K.Authorization;d.JSC$19623_channel_.JSC$19575_extraHeaders_=K}},jmO=function(d){d.getAuthorizationHeaderSync_&&!d.useAsyncBrowserChannelHandler_&&cov(d,d.getAuthorizationHeaderSync_())};
_.G=Nd.prototype;_.G.setLoungeToken=function(d){(this.defaultQueryParams_.loungeIdToken=d)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19623_channel_){var H=this.JSC$19623_channel_.JSC$19575_extraHeaders_||{};d?H["X-YouTube-LoungeId-Token"]=d:delete H["X-YouTube-LoungeId-Token"];this.JSC$19623_channel_.JSC$19575_extraHeaders_=H}};
_.G.getDeviceId=function(){return this.defaultQueryParams_.id};
_.G.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.G.reconnect=function(){var d=this.reconnectTimer_;d.delay_.fire();d.start()};
_.G.safeReconnect_=function(){var d=this.JSC$19623_channel_,H=0;d.JSC$19575_backChannelRequest_&&H++;d.forwardChannelRequest_&&H++;H==0&&this.connect(this.connectionParams_,this.connectUi_)};var Hs=function(d,H){var K=d.basePath;d.supportCors&&(K=d.scheme+"://"+d.domain+d.port+d.basePath);return _.f6(K+H,{})};
DG.prototype.sendRequest=function(d,H,K,c,p,g,a){d={format:g?"RAW":"JSON",method:d,context:this,timeout:5E3,withCredentials:!!a,onSuccess:_.hO(this.JSC$19628_onSuccess_,c,!g),onError:_.hO(this.onError_,p),onTimeout:_.hO(this.JSC$19628_onTimeout_,p)};K&&(d.postParams=K,d.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.xp(H,d)};
DG.prototype.JSC$19628_onSuccess_=function(d,H,K,c){H?d(c):d({text:K.responseText})};
DG.prototype.onError_=function(d,H){d(Error("Fk`"+H.status))};
DG.prototype.JSC$19628_onTimeout_=function(d){d(Error("Gk"))};var Ab=function(d,H){return!!H&&(d.id==H||d.uuid==H)},png=function(d){return{name:d.name,
screenId:d.id,loungeToken:d.token,dialId:d.uuid,screenIdType:d.idType}},gXT=function(d){return new fR(d)},ieS=function(d){return Array.isArray(d)?_.Wf(d,gXT):[]},FJU=function(d){if(!d)return"null";
var H=d.token?".."+d.token.slice(-6):"-",K=d.uuid?".."+d.uuid.slice(-6):"-";return'{name:"'+d.name+'",id:'+d.id.substr(0,6)+"..,token:"+(H+",uuid:"+K+",idType:"+d.idType+"}")},qIU=function(d){return Array.isArray(d)?"["+_.Wf(d,FJU).join(",")+"]":"null"};var Sb5="",d8=null;var viq=function(d,H){_.Rj.call(this);var K=this;this.handler=d();this.handler.subscribe("handlerOpened",this.JSC$19635_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(c,p){K.onError(p)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=H};
_.m(viq,_.Rj);_.G=viq.prototype;_.G.connect=function(d,H,K){this.handler.connect(d,H,K)};
_.G.disconnect=function(d){this.handler.disconnect(d)};
_.G.reconnect=function(){this.handler.reconnect()};
_.G.getDeviceId=function(){return this.handler.getDeviceId()};
_.G.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.G.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.G.JSC$19635_onOpened=function(){this.dispatchEvent("channelOpened");var d=this.handler,H=this.currentScreenId;_.kC("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!d.JSC$19623_channel_.useChunked_,sessionId:d.JSC$19623_channel_.sid_,arrayId:d.JSC$19623_channel_.JSC$19575_lastArrayId_});_.kC("yt-remote-session-screen-id",H);d=ZmO();H=TnS();_.TL(d,H)||d.push(H);Om0(d);Yb0()};
_.G.onClosed=function(){this.dispatchEvent("channelClosed")};
_.G.onMessage=function(d){this.dispatchEvent(new Zdq(d))};
_.G.onError=function(d){this.dispatchEvent(new TlZ(d?1:0))};
_.G.sendMessage=function(d,H){this.handler.sendMessage(d,H)};
_.G.setLoungeToken=function(d){this.handler.setLoungeToken(d)};
_.G.dispose=function(){this.handler.dispose()};var j3q=function(d,H,K){var c=this;K=K===void 0?function(){return""}:K;
var p=p===void 0?new OTG:p;var g=g===void 0?new _.Cj:g;this.pathPrefix=d;this.defaultQueryParams=H;this.getXsrfToken=K;this.JSC$19638_pubsub=g;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new POt(function(){var a;((a=c.channel)==null?void 0:VLj((new ygU(a,a.JSC$19546_channel_)).JSC$19556_channel_.forwardChannelRequestPool_))===0&&c.connect(c.connectionParams,c.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19638_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19638_channelOpenedCounter=new uL0;this.JSC$19638_channelClosedCounter=new I81;this.JSC$19638_channelMessageReceivedCounter=new WZj;this.JSC$19638_channelErrorCounter=new Bn0};
j3q.prototype.connect=function(d,H){d=d===void 0?{}:d;H=H===void 0?0:H;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=d,this.connectUi=H,GbZ(this),(d=_.Fm("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=d:delete this.webChannelMessageHeaders["x-youtube-identity-token"],this.defaultQueryParams&&(this.webChannelMessageUrlParams.device=this.defaultQueryParams.device,this.webChannelMessageUrlParams.name=this.defaultQueryParams.name,this.webChannelMessageUrlParams.app=
this.defaultQueryParams.app,this.webChannelMessageUrlParams.id=this.defaultQueryParams.id,this.defaultQueryParams.mdxVersion&&(this.webChannelMessageUrlParams.mdxVersion=""+this.defaultQueryParams.mdxVersion),this.defaultQueryParams.theme&&(this.webChannelMessageUrlParams.theme=this.defaultQueryParams.theme),this.defaultQueryParams.capabilities&&(this.webChannelMessageUrlParams.capabilities=this.defaultQueryParams.capabilities),this.defaultQueryParams.cst&&(this.webChannelMessageUrlParams.cst=this.defaultQueryParams.cst),
this.defaultQueryParams.authuser&&(this.webChannelMessageUrlParams.authuser=this.defaultQueryParams.authuser),this.defaultQueryParams.pageId&&(this.webChannelMessageUrlParams.pageId=this.defaultQueryParams.pageId)),this.connectUi!==0?this.webChannelMessageUrlParams.ui=""+this.connectUi:delete this.webChannelMessageUrlParams.ui,Object.assign(this.webChannelMessageUrlParams,this.connectionParams),this.channel=new jg(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,oXO(this))};
var oXO=function(d){_.Iq(d.channel,"w",function(){d.channelState=3;d.reconnectTimer.reset();d.connectionParams=null;d.connectUi=0;for(var H=_.q(d.nonAckedMessagesOnChannelClosed),K=H.next();!K.done;K=H.next())K=K.value,d.channel&&d.channel.send(K);d.nonAckedMessagesOnChannelClosed=[];d.publish("webChannelOpened");d.JSC$19638_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Iq(d.channel,"x",function(){d.channelState=0;d.reconnectTimer.isActive()||d.publish("webChannelClosed");var H,K=(H=d.channel)==null?void 0:bTU(new ygU(H,H.JSC$19546_channel_));K&&(d.nonAckedMessagesOnChannelClosed=[].concat(_.ru(K)));d.JSC$19638_channelClosedCounter.increment("WEB_CHANNEL")});
_.Iq(d.channel,"z",function(H){var K=H.data;K[0]==="gracefulReconnect"?(d.reconnectTimer.start(),d.channel&&d.channel.close()):d.publish("webChannelMessage",new NlO(K[0],K[1]));d.lastStatusCode=H.statusCode;d.JSC$19638_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Iq(d.channel,"y",function(){d.lastStatusCode===401||d.reconnectTimer.start();d.publish("webChannelError");d.JSC$19638_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.G=j3q.prototype;_.G.disconnect=function(d){this.disconnectUi=d===void 0?0:d;this.reconnectTimer.stop();GbZ(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.G.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.G.reconnect=function(){var d=this.reconnectTimer;d.delay_.fire();d.start()};
_.G.sendMessage=function(d,H){this.channel&&(GbZ(this),d=Object.assign({},{_sc:d},H),this.channel.send(d))};
_.G.setLoungeToken=function(d){d||this.reconnectTimer.stop();d?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=d:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var GbZ=function(d){var H=d.getXsrfToken();H?d.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=H:delete d.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.G=j3q.prototype;_.G.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.G.publish=function(d){return this.JSC$19638_pubsub.publish.apply(this.JSC$19638_pubsub,[d].concat(_.ru(_.sH.apply(1,arguments))))};
_.G.subscribe=function(d,H,K){return this.JSC$19638_pubsub.subscribe(d,H,K)};
_.G.unsubscribe=function(d,H,K){return this.JSC$19638_pubsub.unsubscribe(d,H,K)};
_.G.unsubscribeByKey=function(d){return this.JSC$19638_pubsub.unsubscribeByKey(d)};
_.G.dispose=function(){this.JSC$19638_disposed||(this.JSC$19638_disposed=!0,_.AA(this.JSC$19638_pubsub),this.disconnect(),_.AA(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.G.isDisposed=function(){return this.JSC$19638_disposed};var Acv=function(d){_.Rj.call(this);this.webChannelService=d();this.webChannelService.subscribe("webChannelOpened",this.JSC$19646_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.m(Acv,_.Rj);_.G=Acv.prototype;_.G.connect=function(d,H){this.webChannelService.connect(d,H)};
_.G.disconnect=function(d){this.webChannelService.disconnect(d)};
_.G.reconnect=function(){this.webChannelService.reconnect()};
_.G.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.G.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.G.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.G.JSC$19646_onOpened=function(){this.dispatchEvent("channelOpened")};
_.G.onClosed=function(){this.dispatchEvent("channelClosed")};
_.G.onMessage=function(d){this.dispatchEvent(new Zdq(d))};
_.G.onError=function(){this.dispatchEvent(new TlZ(this.webChannelService.lastStatusCode===401?1:0))};
_.G.sendMessage=function(d,H){this.webChannelService.sendMessage(d,H)};
_.G.setLoungeToken=function(d){this.webChannelService.setLoungeToken(d)};
_.G.dispose=function(){this.webChannelService.dispose()};var ofb=Date.now(),$y=null,iKT=Array(50),px=-1,GnU=!1;_.K1(g8,_.xH);g8.prototype.getScreens=function(){return this.screens};
g8.prototype.contains=function(d){return!!FZ5(this.screens,d)};
g8.prototype.get=function(d){return d?jC(this.screens,d):null};
var qOS=function(d,H){var K=d.get(H.uuid)||d.get(H.id);if(K)return d=K.name,K.id=H.id||K.id,K.name=H.name,K.token=H.token,K.uuid=H.uuid||K.uuid,K.name!=d;d.screens.push(H);return!0},a41=function(d,H){var K=d.screens.length!=H.length;
d.screens=_.p1(d.screens,function(g){return!!FZ5(H,g)});
for(var c=H.length,p=0;p<c;p++)K=qOS(d,H[p])||K;return K},l41=function(d,H){var K=d.screens.length;
d.screens=_.p1(d.screens,function(c){return!(c||H?!c!=!H?0:c.id==H.id:1)});
return d.screens.length<K};
g8.prototype.info=function(d){Kx(this.JSC$19647_logName_,d)};var e3q=function(d,H,K,c,p){_.xH.call(this);this.JSC$19650_http_=d;this.pairingCode_=H;this.deviceId_=K;this.friendlyName_=c;this.enableShortLivedLoungeToken_=p;this.pollIndex_=0;this.JSC$19650_xhr_=null;this.JSC$19650_timer_=NaN};
_.m(e3q,_.xH);_.G=e3q.prototype;_.G.start=function(){!this.JSC$19650_xhr_&&isNaN(this.JSC$19650_timer_)&&this.poll_()};
_.G.stop=function(){this.JSC$19650_xhr_&&(this.JSC$19650_xhr_.abort(),this.JSC$19650_xhr_=null);isNaN(this.JSC$19650_timer_)||(_.eb(this.JSC$19650_timer_),this.JSC$19650_timer_=NaN)};
_.G.disposeInternal=function(){this.stop();_.xH.prototype.disposeInternal.call(this)};
_.G.poll_=function(){this.JSC$19650_timer_=NaN;this.JSC$19650_xhr_=_.xp(Hs(this.JSC$19650_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.LA)(this.JSC$19652_onSuccess_,this),onError:(0,_.LA)(this.onError_,this),onTimeout:(0,_.LA)(this.JSC$19652_onTimeout_,this)})};
_.G.JSC$19652_onSuccess_=function(d,H){this.JSC$19650_xhr_=null;d=H.screen||{};d.dialId=this.deviceId_;d.name=this.friendlyName_;H=-1;this.enableShortLivedLoungeToken_&&d.shortLivedLoungeToken&&d.shortLivedLoungeToken.value&&d.shortLivedLoungeToken.refreshIntervalMs&&(d.screenIdType="shortLived",d.loungeToken=d.shortLivedLoungeToken.value,H=d.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new fR(d),H)};
_.G.onError_=function(d){this.JSC$19650_xhr_=null;d.status&&d.status==404?this.pollIndex_>=kbt.length?this.publish("pairingFailed",Error("Hk")):(d=kbt[this.pollIndex_],this.JSC$19650_timer_=_.a5((0,_.LA)(this.poll_,this),d),this.pollIndex_++):this.publish("pairingFailed",Error("Ik`"+d.status))};
_.G.JSC$19652_onTimeout_=function(){this.JSC$19650_xhr_=null;this.publish("pairingFailed",Error("Jk"))};
var kbt=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.K1(Gl,g8);_.G=Gl.prototype;_.G.start=function(){ix(this)&&this.publish("screenChange");!_.xC("yt-remote-lounge-token-expiration")&&xTq(this);_.eb(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.a5((0,_.LA)(this.start,this),1E4)};
_.G.add=function(d,H){ix(this);qOS(this,d);nXZ(this,!1);this.publish("screenChange");H(d);d.token||xTq(this)};
_.G.remove=function(d,H){var K=ix(this);l41(this,d)&&(nXZ(this,!1),K=!0);H(d);K&&this.publish("screenChange")};
_.G.updateName=function(d,H,K,c){var p=ix(this),g=this.get(d.id);g?(g.name!=H&&(g.name=H,nXZ(this,!1),p=!0),K(d)):c(Error("Kk"));p&&this.publish("screenChange")};
_.G.disposeInternal=function(){_.eb(this.loungeTokenRefreshTimer_);Gl.superClass_.disposeInternal.call(this)};
var xTq=function(d){if(d.screens.length){var H=_.Wf(d.screens,function(c){return c.id}),K=Hs(d.JSC$19654_http_,"/pairing/get_lounge_token_batch");
d.JSC$19654_http_.sendRequest("POST",K,{screen_ids:H.join(",")},(0,_.LA)(d.handleLoungeTokens_,d),(0,_.LA)(d.handleLoungeTokenError_,d))}};
Gl.prototype.handleLoungeTokens_=function(d){ix(this);var H=this.screens.length;d=d&&d.screens||[];for(var K=d.length,c=0;c<K;++c){var p=d[c],g=this.get(p.screenId);g&&(g.token=p.loungeToken,--H)}nXZ(this,!H);H&&Kx(this.JSC$19647_logName_,"Missed "+H+" lounge tokens.")};
Gl.prototype.handleLoungeTokenError_=function(d){Kx(this.JSC$19647_logName_,"Requesting lounge tokens failed: "+d)};
var ix=function(d){if(_.h("deprecate_pair_servlet_enabled"))return a41(d,[]);var H=ieS(yc0());H=_.p1(H,function(K){return!K.uuid});
return a41(d,H)},nXZ=function(d,H){NnZ(_.Wf(d.screens,png));
H&&bmO()};var ag=function(d,H){_.xH.call(this);this.getScreensToCheck_=H;H=(H=_.xC("yt-remote-online-screen-ids")||"")?H.split(","):[];for(var K={},c=this.getScreensToCheck_(),p=c.length,g=0;g<p;++g){var a=c[g].id;K[a]=_.TL(H,a)}this.screenIdSet_=K;this.JSC$19657_http_=d;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;CFv("Initialized with "+(0,_.wN)(this.screenIdSet_))};
_.m(ag,_.xH);ag.prototype.isOnline=function(d){return!!this.screenIdSet_[d]};
ag.prototype.start=function(){var d=parseInt(_.xC("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.$V()-144E5<d?0:d)?R3G(this):(this.fastCheckEndTime_=_.$V()+3E5,_.kC("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
ag.prototype.isEmpty=function(){return _.rs.isEmpty(this.screenIdSet_)};
ag.prototype.update=function(){CFv("Updating availability on schedule.");var d=this.getScreensToCheck_(),H=_.rs.filter(this.screenIdSet_,function(K,c){return K&&!!jC(d,c)},this);
VkU(this,H)};
var UTU=function(d,H,K){var c=Hs(d.JSC$19657_http_,"/pairing/get_screen_availability");d.JSC$19657_http_.sendRequest("POST",c,{lounge_token:H.token},(0,_.LA)(function(p){p=p.screens||[];for(var g=p.length,a=0;a<g;++a)if(p[a].loungeToken==H.token){K(p[a].status=="online");return}K(!1)},d),(0,_.LA)(function(){K(!1)},d))};
ag.prototype.disposeInternal=function(){_.eb(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.xH.prototype.disposeInternal.call(this)};
var VkU=function(d,H){a:if(_.rs.getCount(H)!=_.rs.getCount(d.screenIdSet_))var K=!1;else{K=_.rs.getKeys(H);for(var c=K.length,p=0;p<c;++p)if(!d.screenIdSet_[K[p]]){K=!1;break a}K=!0}K||(CFv("Updated online screens: "+(0,_.wN)(d.screenIdSet_)),d.screenIdSet_=H,d.publish("screenChange"));h31(d)},R3G=function(d){isNaN(d.refreshTimer_)||_.eb(d.refreshTimer_);
d.refreshTimer_=_.a5((0,_.LA)(d.requestScreenAvailability_,d),d.fastCheckEndTime_>0&&d.fastCheckEndTime_<_.$V()?2E4:1E4)};
ag.prototype.requestScreenAvailability_=function(){_.eb(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var d=L7Z(this);if(_.rs.getCount(d)){var H=Hs(this.JSC$19657_http_,"/pairing/get_screen_availability"),K={lounge_token:_.rs.getKeys(d).join(",")};this.currentRequest_=this.JSC$19657_http_.sendRequest("POST",H,K,(0,_.LA)(this.onScreenAvailability_,this,d),(0,_.LA)(this.onScreenAvailabilityError_,this))}else VkU(this,{}),R3G(this)};
ag.prototype.onScreenAvailability_=function(d,H){this.currentRequest_=null;var K=_.rs.getKeys(L7Z(this));if(_.DD(K,_.rs.getKeys(d))){H=H.screens||[];K={};for(var c=H.length,p=0;p<c;++p)K[d[H[p].loungeToken]]=H[p].status=="online";VkU(this,K);R3G(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
ag.prototype.onScreenAvailabilityError_=function(d){this.warn_("Screen availability failed: "+d);this.currentRequest_=null;R3G(this)};
var CFv=function(d){Kx("OnlineScreenService",d)};
ag.prototype.warn_=function(d){Kx("OnlineScreenService",d)};
var L7Z=function(d){var H={};_.yx(d.getScreensToCheck_(),function(K){K.token?H[K.token]=K.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return H},h31=function(d){d=_.rs.getKeys(_.rs.filter(d.screenIdSet_,function(H){return H}));
d.sort(_.uMF);d.length?_.kC("yt-remote-online-screen-ids",d.join(","),60):_.ns("yt-remote-online-screen-ids")};_.K1(o2,g8);_.G=o2.prototype;_.G.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.G.add=function(d,H,K){this.localScreenService_.add(d,H,K)};
_.G.remove=function(d,H,K){this.localScreenService_.remove(d,H,K);this.onlineScreenService_.update()};
_.G.updateName=function(d,H,K,c){this.localScreenService_.contains(d)?this.localScreenService_.updateName(d,H,K,c):(d="Updating name of unknown screen: "+d.name,Kx(this.JSC$19647_logName_,d),c(Error(d)))};
_.G.getScreens=function(d){return d?this.screens:dCZ(this.screens,_.p1(this.automaticScreens_,function(H){return!this.contains(H)},this))};
_.G.JSC$19662_getOnlineScreens=function(){return _.p1(this.getScreens(!0),function(d){return this.onlineScreenService_.isOnline(d.id)},this)};
var mTZ=function(d,H,K,c,p,g){d.info("getAutomaticScreenByIds "+K+" / "+H);K||(K=d.deviceToScreenId_[H]);var a=d.getScreens(),e=K?jC(a,K):null;K&&(d.disableAutomaticScreenCache_||e)||(e=jC(a,H));if(e){e.uuid=H;var k=le(d,e);UTU(d.onlineScreenService_,k,function(C){p(C?k:null)})}else K?Mkj(d,K,(0,_.LA)(function(C){var R=le(this,new fR({name:c,
screenId:K,loungeToken:C,dialId:H||""}));UTU(this.onlineScreenService_,R,function(V){p(V?R:null)})},d),g):p(null)};
o2.prototype.JSC$19662_getScreenByPollingPairingCode=function(d,H,K,c,p,g){var a=this;this.info("getDialScreenByPairingCode "+d+" / "+H);var e=new e3q(this.JSC$19660_http_,d,H,K,c);e.subscribe("pairingComplete",function(k,C){_.AA(e);p(le(a,k),C)});
e.subscribe("pairingFailed",function(k){_.AA(e);g(k)});
e.start();return(0,_.LA)(e.stop,e)};
var wn0=function(d,H){for(var K=d.screens.length,c=0;c<K;++c)if(d.screens[c].name==H)return d.screens[c];return null};
o2.prototype.JSC$19662_getScreenByPairingCode=function(d,H,K,c){_.xp(Hs(this.JSC$19660_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:d},timeout:5E3,onSuccess:(0,_.LA)(function(p,g){p=new fR(g.screen||{});if(!p.name||wn0(this,p.name)){a:{g=p.name;for(var a=2,e=H(g,a);wn0(this,e);){a++;if(a>20)break a;e=H(g,a)}g=e}p.name=g}K(le(this,p))},this),
onError:(0,_.LA)(function(p){c(Error("Lk`"+p.status))},this),
onTimeout:(0,_.LA)(function(){c(Error("Mk"))},this)})};
var PFO=function(d,H,K){UTU(d.onlineScreenService_,H,K)};
o2.prototype.disposeInternal=function(){_.AA(this.localScreenService_);_.AA(this.onlineScreenService_);o2.superClass_.disposeInternal.call(this)};
var Mkj=function(d,H,K,c){d.info("requestLoungeToken_ for "+H);var p={postParams:{screen_ids:H},method:"POST",context:d,onSuccess:function(g,a){g=a&&a.screens||[];g[0]&&g[0].screenId==H?K(g[0].loungeToken):c(Error("Nk"))},
onError:function(){c(Error("Ok"))}};
_.xp(Hs(d.JSC$19660_http_,"/pairing/get_lounge_token_batch"),p)},uZG=function(d){d.screens=d.localScreenService_.getScreens();
for(var H=_.rs.transpose(d.deviceToScreenId_),K=d.screens.length,c=0;c<K;++c){var p=d.screens[c];p.uuid=H[p.id]||""}d.info("Updated manual screens: "+qIU(d.screens))};
o2.prototype.handleScreenChange_=function(){uZG(this);this.publish("screenChange");this.onlineScreenService_.update()};
var aVj=function(d){I4b(d);d.localScreenService_=new Gl(d.JSC$19660_http_);d.localScreenService_.subscribe("screenChange",(0,_.LA)(d.handleScreenChange_,d));uZG(d);d.disableAutomaticScreenCache_||(d.automaticScreens_=ieS(_.xC("yt-remote-automatic-screen-cache")||[]));I4b(d);d.info("Initializing automatic screens: "+qIU(d.automaticScreens_));d.onlineScreenService_=new ag(d.JSC$19660_http_,(0,_.LA)(d.getScreens,d,!0));d.onlineScreenService_.subscribe("screenChange",(0,_.LA)(function(){this.publish("onlineScreenChange")},
d))},le=function(d,H){var K=d.get(H.id);
K?(K.uuid=H.uuid,H=K):((K=jC(d.automaticScreens_,H.uuid))?(K.id=H.id,K.token=H.token,H=K):d.automaticScreens_.push(H),d.disableAutomaticScreenCache_||roq(d));I4b(d);d.deviceToScreenId_[H.uuid]=H.id;_.kC("yt-remote-device-id-map",d.deviceToScreenId_,31536E3);return H},roq=function(d){d=_.p1(d.automaticScreens_,function(H){return H.idType!="shortLived"});
_.kC("yt-remote-automatic-screen-cache",_.Wf(d,png))},I4b=function(d){d.deviceToScreenId_=_.xC("yt-remote-device-id-map")||{}};
o2.prototype.dispose=o2.prototype.dispose;_.K1(qn,_.xH);var em=function(d,H){d.screen_=H;d.publish("sessionScreen",d.screen_)},W7T=function(d,H){d.screen_&&(d.screen_.token=H,le(d.JSC$19664_screenService_,d.screen_));
d.publish("sessionScreen",d.screen_)};
qn.prototype.onSessionStopped=function(d){this.isDisposed()||(d&&(k7(this,""+d),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
qn.prototype.info=function(d){Kx(this.JSC$19664_logName_,d)};
var k7=function(d,H){Kx(d.JSC$19664_logName_,H)};
qn.prototype.JSC$19666_getCastSession=function(){return null};
qn.prototype.setDisplayStatus=function(d){var H=this.receiver_;d?(H.displayStatus=new chrome.cast.ReceiverDisplayStatus(d,[]),H.displayStatus.showStop=!0):H.displayStatus=null;chrome.cast.setReceiverDisplayStatus(H,(0,_.LA)(function(){this.info("Updated receiver status for "+H.friendlyName+": "+d)},this),(0,_.LA)(function(){k7(this,"Failed to update receiver status for: "+H.friendlyName)},this))};
qn.prototype.disposeInternal=function(){this.setDisplayStatus("");qn.superClass_.disposeInternal.call(this)};var x7=function(d,H,K){qn.call(this,d,H,"CastSession");var c=this;this.config_=K;this.JSC$19669_session_=null;this.JSC$19669_boundSessionUpdate_=(0,_.LA)(this.JSC$19671_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.LA)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.a5(function(){B21(c,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19669_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19669_isInitLoungeToken_=!1;this.JSC$19669_lastLoungeTokenRefreshError_="unknown"};
_.m(x7,qn);_.G=x7.prototype;
_.G.setCastSession=function(d){if(this.JSC$19669_session_){if(this.JSC$19669_session_==d)return;k7(this,"Overriding cast session with new session object");z3t(this);this.JSC$19669_isInitLoungeToken_=!1;this.JSC$19669_lastLoungeTokenRefreshError_="unknown";this.JSC$19669_session_.removeUpdateListener(this.JSC$19669_boundSessionUpdate_);this.JSC$19669_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19669_session_=d;this.JSC$19669_session_.addUpdateListener(this.JSC$19669_boundSessionUpdate_);this.JSC$19669_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);XnZ(this,"getMdxSessionStatus")};
_.G.launchWithParams=function(d){this.info("launchWithParams no-op for Cast: "+(0,_.wN)(d))};
_.G.stop=function(){if(this.JSC$19669_session_)this.JSC$19669_session_.stop((0,_.LA)(function(){this.onSessionStopped()},this),(0,_.LA)(function(){this.onSessionStopped(Error("Pk"))},this));
else this.onSessionStopped(Error("Qk"))};
_.G.setDisplayStatus=function(){};
_.G.disposeInternal=function(){this.info("disposeInternal");z3t(this);this.JSC$19669_session_&&(this.JSC$19669_session_.removeUpdateListener(this.JSC$19669_boundSessionUpdate_),this.JSC$19669_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19669_session_=null;qn.prototype.disposeInternal.call(this)};
var sxq=function(d,H){_.eb(d.getLoungeTokenTimeoutKey_);d.getLoungeTokenTimeoutKey_=0;H==0?Jo5(d):d.getLoungeTokenTimeoutKey_=_.a5(function(){Jo5(d)},H)},Jo5=function(d){XnZ(d,"getLoungeToken");
_.eb(d.onLoungeTokenTimeoutKey_);d.onLoungeTokenTimeoutKey_=_.a5(function(){F7S(d,null)},3E4)},XnZ=function(d,H){d.info("sendYoutubeMessage_: "+H+" "+(0,_.wN)(void 0));
var K={};K.type=H;d.JSC$19669_session_?d.JSC$19669_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",K,function(){},(0,_.LA)(function(){k7(this,"Failed to send message: "+H+".")},d)):k7(d,"Sending yt message without session: "+(0,_.wN)(K))};
x7.prototype.onYoutubeMessage_=function(d,H){if(!this.isDisposed())if(H)if(H=(0,_.B3)(H),_.y4(H))switch(d=""+H.type,H=H.data||{},this.info("onYoutubeMessage_: "+d+" "+(0,_.wN)(H)),d){case "mdxSessionStatus":B21(this,H);break;case "loungeToken":F7S(this,H);break;default:k7(this,"Unknown youtube message: "+d)}else k7(this,"Unable to parse message.");else k7(this,"No data in message.")};
var ZeU=function(d,H){if(H)d.info("onConnectedScreenId_: Received screenId: "+H),d.screen_&&d.screen_.id==H||d.getScreen_(H,function(K){em(d,K)},function(){return d.onSessionStopped()},5);
else d.onSessionStopped(Error("Rk"))},Qxj=function(d,H,K){d.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(H));
var c=new fR(H);T2q(d,c,function(p){p?(d.JSC$19669_isInitLoungeToken_=!0,le(d.JSC$19664_screenService_,c),em(d,c),d.JSC$19669_lastLoungeTokenRefreshError_="unknown",sxq(d,K)):(_.tm(Error("Sk`"+JSON.stringify(H))),d.onSessionStopped())},5)},B21=function(d,H){_.eb(d.sessionStatusTimeoutKey_);
d.sessionStatusTimeoutKey_=0;if(H)d.config_.enableCastLoungeToken&&H.loungeToken?H.deviceId?d.screen_&&d.screen_.uuid==H.deviceId||(H.loungeTokenRefreshIntervalMs?Qxj(d,{name:d.receiver_.friendlyName,screenId:H.screenId,loungeToken:H.loungeToken,dialId:H.deviceId,screenIdType:"shortLived"},H.loungeTokenRefreshIntervalMs):(_.tm(Error("Uk`"+JSON.stringify(H))),ZeU(d,H.screenId))):(_.tm(Error("Tk`"+JSON.stringify(H))),ZeU(d,H.screenId)):ZeU(d,H.screenId);else d.onSessionStopped(Error("Rk"))},F7S=function(d,
H){_.eb(d.onLoungeTokenTimeoutKey_);
d.onLoungeTokenTimeoutKey_=0;var K=null;if(H)if(H.loungeToken){var c;((c=d.screen_)==null?void 0:c.token)==H.loungeToken&&(K="staleLoungeToken")}else K="missingLoungeToken";else K="noLoungeTokenResponse";K?(d.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(H)+", error: "+K)),d.JSC$19669_lastLoungeTokenRefreshError_=K,sxq(d,3E4)):(W7T(d,H.loungeToken),d.JSC$19669_isInitLoungeToken_=!1,d.JSC$19669_lastLoungeTokenRefreshError_="unknown",sxq(d,H.loungeTokenRefreshIntervalMs))};
x7.prototype.getScreen_=function(d,H,K,c){_.eb(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;mTZ(this.JSC$19664_screenService_,this.receiver_.label,d,this.receiver_.friendlyName,(0,_.LA)(function(p){p?H(p):c>=0?(k7(this,"Screen "+d+" appears to be offline. "+c+" retries left."),this.getScreenTimeoutKey_=_.a5((0,_.LA)(this.getScreen_,this,d,H,K,c-1),300)):K(Error("Vk"))},this),K)};
var T2q=function(d,H,K,c){_.eb(d.JSC$19669_checkScreenAvailabilityTimeoutKey_);d.JSC$19669_checkScreenAvailabilityTimeoutKey_=0;PFO(d.JSC$19664_screenService_,H,function(p){p||c<0?K(p):d.JSC$19669_checkScreenAvailabilityTimeoutKey_=_.a5(function(){T2q(d,H,K,c-1)},300)})};
x7.prototype.JSC$19666_getCastSession=function(){return this.JSC$19669_session_};
x7.prototype.JSC$19671_onSessionUpdate_=function(d){this.isDisposed()||d||(k7(this,"Cast session died."),this.onSessionStopped())};
var z3t=function(d){_.eb(d.getScreenTimeoutKey_);d.getScreenTimeoutKey_=0;_.eb(d.JSC$19669_checkScreenAvailabilityTimeoutKey_);d.JSC$19669_checkScreenAvailabilityTimeoutKey_=0;_.eb(d.sessionStatusTimeoutKey_);d.sessionStatusTimeoutKey_=0;_.eb(d.onLoungeTokenTimeoutKey_);d.onLoungeTokenTimeoutKey_=0;_.eb(d.getLoungeTokenTimeoutKey_);d.getLoungeTokenTimeoutKey_=0};var nv=function(d,H,K,c){qn.call(this,d,H,"DialSession");this.config_=c;this.JSC$19673_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19673_theme_=K;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19673_deferredLaunchDeadlineTimer_=NaN;this.JSC$19673_boundSessionUpdate_=(0,_.LA)(this.JSC$19675_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19673_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19673_isInitLoungeToken_=!1;this.JSC$19673_lastLoungeTokenRefreshError_="unknown"};
_.m(nv,qn);nv.prototype.setCastSession=function(d){this.JSC$19673_session_=d;this.JSC$19673_session_.addUpdateListener(this.JSC$19673_boundSessionUpdate_)};
nv.prototype.launchWithParams=function(d){this.connectData_=d;this.deferredLaunch_()};
nv.prototype.stop=function(){tk5(this);if(this.JSC$19673_session_)this.JSC$19673_session_.stop((0,_.LA)(this.onSessionStopped,this,null),(0,_.LA)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
nv.prototype.disposeInternal=function(){tk5(this);this.JSC$19673_session_&&this.JSC$19673_session_.removeUpdateListener(this.JSC$19673_boundSessionUpdate_);this.JSC$19673_session_=null;qn.prototype.disposeInternal.call(this)};
var YOg=function(d){var H;return!!(d.config_.enableDialLoungeToken&&((H=d.JSC$19673_session_)==null?0:H.getDialAppInfo))},OeS=function(d){d.cancelPolling_=d.JSC$19664_screenService_.JSC$19662_getScreenByPollingPairingCode(d.reversePairingCode_,d.receiver_.label,d.receiver_.friendlyName,YOg(d),function(H,K){d.cancelPolling_=function(){};
d.JSC$19673_isInitLoungeToken_=!0;em(d,H);H.idType=="shortLived"&&K>0&&Cv(d,K)},function(H){d.cancelPolling_=function(){};
d.onSessionStopped(H)})};
nv.prototype.JSC$19675_onSessionUpdate_=function(d){this.isDisposed()||d||(k7(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var SO0=function(d){var H={};H.pairingCode=d.reversePairingCode_;H.theme=d.JSC$19673_theme_;f8Z()&&(H.env_useStageMdx=1);return _.nj(H)},EXO=function(d){return new Promise(function(H){d.reversePairingCode_=JcG();
if(d.connectData_){var K=new chrome.cast.DialLaunchResponse(!0,SO0(d));H(K);OeS(d)}else d.deferredLaunch_=function(){_.eb(d.JSC$19673_deferredLaunchDeadlineTimer_);d.deferredLaunch_=function(){};
d.JSC$19673_deferredLaunchDeadlineTimer_=NaN;var c=new chrome.cast.DialLaunchResponse(!0,SO0(d));H(c);OeS(d)},d.JSC$19673_deferredLaunchDeadlineTimer_=_.a5(function(){d.deferredLaunch_()},100)})},beq=function(d,H,K){d.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(H));
var c=new fR(H);return(new Promise(function(p){yot(d,c,function(g){g?(d.JSC$19673_isInitLoungeToken_=!0,le(d.JSC$19664_screenService_,c),em(d,c),Cv(d,K)):_.tm(Error("Xk`"+JSON.stringify(H)));p(g)},5)})).then(function(p){return p?new chrome.cast.DialLaunchResponse(!1):EXO(d)})},N2b=function(d,H){var K=d.launchData_.receiver.label,c=d.receiver_.friendlyName;
return(new Promise(function(p){mTZ(d.JSC$19664_screenService_,K,H,c,function(g){g&&g.token&&em(d,g);p(g)},function(g){k7(d,"Failed to get DIAL screen: "+g);
p(null)})})).then(function(p){return p&&p.token?new chrome.cast.DialLaunchResponse(!1):EXO(d)})},yot=function(d,H,K,c){_.eb(d.JSC$19673_checkScreenAvailabilityTimeoutKey_);
d.JSC$19673_checkScreenAvailabilityTimeoutKey_=0;PFO(d.JSC$19664_screenService_,H,function(p){p||c<0?K(p):d.JSC$19673_checkScreenAvailabilityTimeoutKey_=_.a5(function(){yot(d,H,K,c-1)},300)})},Cv=function(d,H){d.info("getDialAppInfoWithTimeout_ "+H);
YOg(d)&&(_.eb(d.getDialAppInfoTimeoutKey_),d.getDialAppInfoTimeoutKey_=0,H==0?DT0(d):d.getDialAppInfoTimeoutKey_=_.a5(function(){DT0(d)},H))},DT0=function(d){YOg(d)&&d.JSC$19673_session_.getDialAppInfo(function(H){d.info("getDialAppInfo dialLaunchData: "+JSON.stringify(H));
H=H.extraData||{};var K=null;if(H.loungeToken){var c;((c=d.screen_)==null?void 0:c.token)==H.loungeToken&&(K="staleLoungeToken")}else K="missingLoungeToken";K?(d.JSC$19673_lastLoungeTokenRefreshError_=K,Cv(d,3E4)):(d.JSC$19673_isInitLoungeToken_=!1,d.JSC$19673_lastLoungeTokenRefreshError_="unknown",W7T(d,H.loungeToken),Cv(d,H.loungeTokenRefreshIntervalMs))},function(H){d.info("getDialAppInfo error: "+H);
d.JSC$19673_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Cv(d,3E4)})},tk5=function(d){_.eb(d.JSC$19673_checkScreenAvailabilityTimeoutKey_);
d.JSC$19673_checkScreenAvailabilityTimeoutKey_=0;_.eb(d.getDialAppInfoTimeoutKey_);d.getDialAppInfoTimeoutKey_=0;d.cancelPolling_();d.cancelPolling_=function(){};
_.eb(d.JSC$19673_deferredLaunchDeadlineTimer_)};var Rg=function(d,H){qn.call(this,d,H,"ManualSession");this.JSC$19677_deferredLaunchDeadlineTimer_=_.a5((0,_.LA)(this.launchWithParams,this,null),150)};
_.m(Rg,qn);Rg.prototype.stop=function(){this.onSessionStopped()};
Rg.prototype.setCastSession=function(){};
Rg.prototype.launchWithParams=function(){_.eb(this.JSC$19677_deferredLaunchDeadlineTimer_);this.JSC$19677_deferredLaunchDeadlineTimer_=NaN;var d=jC(this.JSC$19664_screenService_.getScreens(),this.receiver_.label);if(d)em(this,d);else this.onSessionStopped(Error("Yk"))};
Rg.prototype.disposeInternal=function(){_.eb(this.JSC$19677_deferredLaunchDeadlineTimer_);this.JSC$19677_deferredLaunchDeadlineTimer_=NaN;qn.prototype.disposeInternal.call(this)};var ky=function(d,H){_.xH.call(this);this.config_=H;this.JSC$19680_screenService_=d;this.JSC$19680_appId_=H.appId||"233637DE";this.JSC$19680_theme_=H.theme||"cl";this.disableDial_=H.disableCastApi||!1;this.forceMirroring_=H.forceMirroring||!1;this.JSC$19680_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.LA)(this.onReceiverAction_,this)};
_.m(ky,_.xH);
ky.prototype.init=function(d,H){chrome.cast.timeout.requestSession=3E4;var K=new chrome.cast.SessionRequest(this.JSC$19680_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.h("desktop_enable_cast_connect")&&(K.androidReceiverCompatible=!0);this.disableDial_||(K.dialRequest=new chrome.cast.DialRequest("YouTube"));var c=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;d=d||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var p=(0,_.LA)(this.onReceiverUpdated_,
this);K=new chrome.cast.ApiConfig(K,(0,_.LA)(this.onSessionEstablished_,this),p,c,d);K.customDialLaunchCallback=(0,_.LA)(this.onDialLaunchRequested_,this);chrome.cast.initialize(K,(0,_.LA)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),cBS(),this.JSC$19680_screenService_.subscribe("onlineScreenChange",(0,_.LA)(this.JSC$19682_onScreenChange_,this)),this.customReceivers_=f40(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.LA)(function(g){this.warn_("Failed to set initial custom receivers: "+(0,_.wN)(g))},this)),this.publish("yt-remote-cast2-availability-change",VZ(this)),H(!0))},this),(0,_.LA)(function(g){this.warn_("Failed to initialize API: "+(0,_.wN)(g));
H(!1)},this))};
ky.prototype.setConnectedScreenStatus=function(d,H){UJ("Setting connected screen ID: "+d+" -> "+H);if(this.JSC$19680_session_){var K=this.JSC$19680_session_.screen_;if(!d||K&&K.id!=d)UJ("Unsetting old screen status: "+this.JSC$19680_session_.receiver_.friendlyName),hj(this,null)}if(d&&H){if(!this.JSC$19680_session_){d=jC(this.JSC$19680_screenService_.getScreens(),d);if(!d){UJ("setConnectedScreenStatus: Unknown screen.");return}if(d.idType=="shortLived"){UJ("setConnectedScreenStatus: Screen with id type to be short lived.");
return}K=Aot(this,d);K||(UJ("setConnectedScreenStatus: Connected receiver not custom..."),K=new chrome.cast.Receiver(d.uuid?d.uuid:d.id,d.name),K.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(K),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.LA)(function(c){this.warn_("Failed to set initial custom receivers: "+(0,_.wN)(c))},this)));
UJ("setConnectedScreenStatus: new active receiver: "+K.friendlyName);hj(this,new Rg(this.JSC$19680_screenService_,K),!0)}this.JSC$19680_session_.setDisplayStatus(H)}else UJ("setConnectedScreenStatus: no screen.")};
var Aot=function(d,H){return H?_.XM(d.customReceivers_,function(K){return Ab(H,K.label)},d):null};
ky.prototype.setLaunchParams=function(d){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19680_session_?this.JSC$19680_session_.launchWithParams(d):this.warn_("Setting connection data without a session")};
ky.prototype.JSC$19682_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19680_session_?(this.JSC$19680_session_.stop(),hj(this,null)):UJ("Stopping non-existing session")};
ky.prototype.requestSession=function(){chrome.cast.requestSession((0,_.LA)(this.onSessionEstablished_,this),(0,_.LA)(this.onSessionRequestFailed_,this))};
ky.prototype.disposeInternal=function(){this.JSC$19680_screenService_.unsubscribe("onlineScreenChange",(0,_.LA)(this.JSC$19682_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Q4(_.OS("yt.mdx.remote.debug.handlers_")||[],HKZ);_.AA(this.JSC$19680_session_);_.xH.prototype.disposeInternal.call(this)};
var UJ=function(d){Kx("Controller",d)};
ky.prototype.warn_=function(d){Kx("Controller",d)};
var HKZ=function(d){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(d)},VZ=function(d){return d.hasCastReceiver_||!!d.customReceivers_.length||!!d.JSC$19680_session_},hj=function(d,H,K){H!=d.JSC$19680_session_&&(_.AA(d.JSC$19680_session_),(d.JSC$19680_session_=H)?(K?d.publish("yt-remote-cast2-receiver-resumed",H.receiver_):d.publish("yt-remote-cast2-receiver-selected",H.receiver_),H.subscribe("sessionScreen",(0,_.LA)(d.onSessionScreen_,d,H)),H.subscribe("sessionFailed",
function(){return jxb(d,H)}),H.screen_?d.publish("yt-remote-cast2-session-change",H.screen_):K&&d.JSC$19680_session_.launchWithParams(null)):d.publish("yt-remote-cast2-session-change",null))},jxb=function(d,H){d.JSC$19680_session_==H&&d.publish("yt-remote-cast2-session-failed")};
_.G=ky.prototype;_.G.onSessionScreen_=function(d,H){this.JSC$19680_session_==d&&(H||hj(this,null),this.publish("yt-remote-cast2-session-change",H))};
_.G.onReceiverAction_=function(d,H){if(!this.isDisposed())if(d)switch(d.friendlyName=chrome.cast.unescape(d.friendlyName),UJ("onReceiverAction_ "+d.label+" / "+d.friendlyName+"-- "+H),H){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19680_session_)if(this.JSC$19680_session_.receiver_.label!=d.label)UJ("onReceiverAction_: Stopping active receiver: "+this.JSC$19680_session_.receiver_.friendlyName),this.JSC$19680_session_.stop();else{UJ("onReceiverAction_: Casting to active receiver.");this.JSC$19680_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19680_session_.screen_);break}switch(d.receiverType){case chrome.cast.ReceiverType.CUSTOM:hj(this,new Rg(this.JSC$19680_screenService_,d));break;case chrome.cast.ReceiverType.DIAL:hj(this,new nv(this.JSC$19680_screenService_,d,this.JSC$19680_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:hj(this,new x7(this.JSC$19680_screenService_,d,this.config_));break;default:this.warn_("Unknown receiver type: "+d.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19680_session_&&
this.JSC$19680_session_.receiver_.label==d.label?this.JSC$19680_session_.stop():this.warn_("Stopping receiver w/o session: "+d.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.G.onDialLaunchRequested_=function(d){if(this.isDisposed())return Promise.reject(Error("Zk"));var H=d.receiver;H.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+H.friendlyName),H.receiverType=chrome.cast.ReceiverType.DIAL);var K=this.JSC$19680_session_?this.JSC$19680_session_.receiver_:null;if(!K||K.label!=H.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+H.friendlyName),Promise.reject(Error("$k"));if(K&&K.label==H.label&&K.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19680_session_.screen_)return UJ("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19680_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+K.receiverType+'" to "dial" for '+H.friendlyName);hj(this,new nv(this.JSC$19680_screenService_,H,this.JSC$19680_theme_,this.config_))}H=this.JSC$19680_session_;H.launchData_=d;H.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(d=H.launchData_.extraData||{},K=d.screenId||null,YOg(H)&&d.loungeToken?d.loungeTokenRefreshIntervalMs?d=beq(H,{name:H.receiver_.friendlyName,screenId:d.screenId,loungeToken:d.loungeToken,dialId:H.launchData_.receiver.label,screenIdType:"shortLived"},d.loungeTokenRefreshIntervalMs):(_.tm(Error("Wk`"+JSON.stringify(d))),d=N2b(H,K)):d=N2b(H,K)):d=EXO(H);return d};
_.G.onSessionEstablished_=function(d){var H=this;if(!this.isDisposed()&&!this.forceMirroring_){UJ("New cast session ID: "+d.sessionId);var K=d.receiver;if(K.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19680_session_)if(K.receiverType==chrome.cast.ReceiverType.CAST)UJ("Got resumed cast session before resumed mdx connection."),K.friendlyName=chrome.cast.unescape(K.friendlyName),hj(this,new x7(this.JSC$19680_screenService_,K,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var c=this.JSC$19680_session_.receiver_,p=jC(this.JSC$19680_screenService_.getScreens(),c.label);p&&Ab(p,K.label)&&c.receiverType!=chrome.cast.ReceiverType.CAST&&K.receiverType==chrome.cast.ReceiverType.CAST&&(UJ("onSessionEstablished_: manual to cast session change "+K.friendlyName),_.AA(this.JSC$19680_session_),this.JSC$19680_session_=new x7(this.JSC$19680_screenService_,K,this.config_),this.JSC$19680_session_.subscribe("sessionScreen",(0,_.LA)(this.onSessionScreen_,this,this.JSC$19680_session_)),
this.JSC$19680_session_.subscribe("sessionFailed",function(){return jxb(H,H.JSC$19680_session_)}),this.JSC$19680_session_.launchWithParams(null));
this.JSC$19680_session_.setCastSession(d)}}};
_.G.JSC$19682_getCastSession=function(){return this.JSC$19680_session_?this.JSC$19680_session_.JSC$19666_getCastSession():null};
_.G.onSessionRequestFailed_=function(d){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.wN)(d)),d.code!=chrome.cast.ErrorCode.CANCEL&&hj(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.G.onReceiverUpdated_=function(d){UJ("Receiver availability updated: "+d);if(!this.isDisposed()){var H=VZ(this);this.hasCastReceiver_=d==chrome.cast.ReceiverAvailability.AVAILABLE;VZ(this)!=H&&this.publish("yt-remote-cast2-availability-change",VZ(this))}};
var f40=function(d){var H=d.JSC$19680_screenService_.JSC$19662_getOnlineScreens(),K=d.JSC$19680_session_&&d.JSC$19680_session_.receiver_;d=_.Wf(H,function(c){K&&Ab(c,K.label)&&(K=null);var p=c.uuid?c.uuid:c.id,g=Aot(this,c);g?(g.label=p,g.friendlyName=c.name):(g=new chrome.cast.Receiver(p,c.name),g.receiverType=chrome.cast.ReceiverType.CUSTOM);return g},d);
K&&(K.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(K=new chrome.cast.Receiver(K.label,K.friendlyName),K.receiverType=chrome.cast.ReceiverType.CUSTOM),d.push(K));return d};
ky.prototype.JSC$19682_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=f40(this),UJ("Updating custom receivers: "+(0,_.wN)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.LA)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",VZ(this)))};
ky.prototype.setLaunchParams=ky.prototype.setLaunchParams;ky.prototype.setConnectedScreenStatus=ky.prototype.setConnectedScreenStatus;ky.prototype.stopSession=ky.prototype.JSC$19682_stopSession;ky.prototype.getCastSession=ky.prototype.JSC$19682_getCastSession;ky.prototype.requestSession=ky.prototype.requestSession;ky.prototype.init=ky.prototype.init;ky.prototype.dispose=ky.prototype.dispose;var vX1=_.y$(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),rBq=[],RZO=_.pB(vX1);var diT=function(d){d.audioTrackId=null;d.trackData=null;d.playerState=-1;d.hasPrevious=!1;d.hasNext=!1;d.playerTime_=0;d.playerTimeAt_=_.$V();d.seekableStart_=0;d.seekableEnd_=0;d.duration_=0;d.loadedTime=0;d.liveIngestionTime_=NaN;d.isLive_=!1};
_.G=xy.prototype;
_.G.reset=function(d){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;d&&(this.index=d.index,this.listId=d.listId,this.videoId=d.videoId,this.playerState=d.playerState,this.volume=d.volume,this.muted=d.muted,this.audioTrackId=d.audioTrackId,this.trackData=d.trackData,this.hasPrevious=d.hasPrevious,this.hasNext=d.hasNext,this.playerTime_=d.playerTime,this.playerTimeAt_=d.playerTimeAt,this.seekableStart_=d.seekableStart,this.seekableEnd_=d.seekableEnd,this.duration_=d.duration,this.loadedTime=
d.loadedTime,this.liveIngestionTime_=d.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.G.stopPlayer=function(){this.index=-1;this.videoId="";diT(this)};
_.G.isPlaying=function(){return this.playerState==1};
_.G.isBuffering=function(){return this.playerState==3};
_.G.isAdPlaying=function(){return this.playerState==1081};
var Lv=function(d,H){d.playerTime_=H;d.playerTimeAt_=_.$V()},H_T=function(d){switch(d.playerState){case 1:case 1081:return(_.$V()-d.playerTimeAt_)/1E3+d.playerTime_;
case -1E3:return 0}return d.playerTime_};
xy.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.$V()-this.playerTimeAt_)/1E3:0):this.duration_};
var $ig=function(d,H,K){var c=d.videoId;d.videoId=H;d.index=K;H!=c&&diT(d)},KHb=function(d){var H={};
H.index=d.index;H.listId=d.listId;H.videoId=d.videoId;H.playerState=d.playerState;H.volume=d.volume;H.muted=d.muted;H.audioTrackId=d.audioTrackId;H.trackData=_.rs.unsafeClone(d.trackData);H.hasPrevious=d.hasPrevious;H.hasNext=d.hasNext;H.playerTime=d.playerTime_;H.playerTimeAt=d.playerTimeAt_;H.seekableStart=d.seekableStart_;H.seekableEnd=d.seekableEnd_;H.duration=d.duration_;H.loadedTime=d.loadedTime;H.liveIngestionTime=d.liveIngestionTime_;return H};
xy.prototype.clone=function(){return new xy(KHb(this))};var MP=function(d,H){_.xH.call(this);var K=this;this.state_=0;this.connection_=d;this.contextSubscriptions_=[];this.actionQueue_=new w5b;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.LA)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.LA)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.LA)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.LA)(this.onCloudviewAvailabilityChange_,this);var c=0;d?(c=d.getProxyState(),
c!=3&&(d.subscribe("proxyStateChange",this.setState_,this),cI1(this))):c=3;c!=0&&(H?this.setState_(c):_.a5(function(){K.setState_(c)},0));
(d=Xjg())&&p6j(this,d);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.m(MP,_.xH);MP.prototype.getState=function(){return this.state_};
MP.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
MP.prototype.reconnect=function(){this.connection_.reconnect()};
var m8=function(d){return new xy(d.connection_.getPlayerContextData())};
_.G=MP.prototype;_.G.play=function(){wx(this)?(this.castMedia_?this.castMedia_.play(null,_.nV,gxt(this,"play")):P_(this,"play"),i_G(this,1,H_T(m8(this))),this.publish("remotePlayerChange")):ue(this,this.play)};
_.G.pause=function(){wx(this)?(this.castMedia_?this.castMedia_.pause(null,_.nV,gxt(this,"pause")):P_(this,"pause"),i_G(this,2,H_T(m8(this))),this.publish("remotePlayerChange")):ue(this,this.pause)};
_.G.seekTo=function(d){if(wx(this)){if(this.castMedia_){var H=m8(this),K=new chrome.cast.media.SeekRequest;K.currentTime=d;H.isPlaying()||H.isBuffering()?K.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:K.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(K,_.nV,gxt(this,"seekTo",{newTime:d}))}else P_(this,"seekTo",{newTime:d});i_G(this,3,d);this.publish("remotePlayerChange")}else ue(this,_.hO(this.seekTo,d))};
_.G.stop=function(){if(wx(this)){this.castMedia_?this.castMedia_.stop(null,_.nV,gxt(this,"stopVideo")):P_(this,"stopVideo");var d=m8(this);d.stopPlayer();Ig(this,d);this.publish("remotePlayerChange")}else ue(this,this.stop)};
_.G.setVolume=function(d,H){if(wx(this)){var K=m8(this);if(this.castSession_){if(K.volume!=d){var c=Math.round(d)/100;this.castSession_.setReceiverVolumeLevel(c,(0,_.LA)(function(){cs("set receiver volume: "+c)},this),(0,_.LA)(function(){this.warn_("failed to set receiver volume.")},this))}K.muted!=H&&this.castSession_.setReceiverMuted(H,(0,_.LA)(function(){cs("set receiver muted: "+H)},this),(0,_.LA)(function(){this.warn_("failed to set receiver muted.")},this))}else{var p={volume:d,
muted:H};K.volume!=-1&&(p.delta=d-K.volume);P_(this,"setVolume",p)}K.muted=H;K.volume=d;Ig(this,K)}else ue(this,_.hO(this.setVolume,d,H))};
_.G.setAudioTrack=function(d,H){wx(this)?(H=H.getLanguageInfo().getId(),P_(this,"setAudioTrack",{videoId:d,audioTrackId:H}),d=m8(this),d.audioTrackId=H,Ig(this,d)):ue(this,_.hO(this.setAudioTrack,d,H))};
_.G.addVideo=function(d){wx(this)?P_(this,"addVideo",{videoId:d}):ue(this,_.hO(this.addVideo,d))};
_.G.addPlaylist=function(d){wx(this)?P_(this,"addVideos",{listId:d}):ue(this,_.hO(this.addPlaylist,d))};
_.G.addVideos=function(d){d.length==0?this.warn_("Ignore add videos request due to empty list"):wx(this)?P_(this,"addVideos",{videoIds:d.join(",")}):ue(this,_.hO(this.addVideos,d))};
_.G.JSC$19692_removeVideo=function(d){wx(this)?P_(this,"removeVideo",{videoId:d}):ue(this,_.hO(this.JSC$19692_removeVideo,d))};
_.G.JSC$19692_insertVideo=function(d){wx(this)?P_(this,"insertVideo",{videoId:d}):ue(this,_.hO(this.JSC$19692_insertVideo,d))};
_.G.playVideo=function(d,H,K,c,p,g,a){c=c===void 0?null:c;p=p===void 0?null:p;g=g===void 0?null:g;a=a===void 0?null:a;var e=m8(this),k={videoId:d};K!==void 0&&(k.currentIndex=K);$ig(e,d,K||0);H!==void 0&&(Lv(e,H),k.currentTime=H);c&&(k.listId=c);p&&(k.playerParams=p);g&&(k.clickTrackingParams=g);a&&(k.locationInfo=(0,_.wN)(a));P_(this,"setPlaylist",k);c||Ig(this,e)};
_.G.nextVideo=function(d,H){if(wx(this)){if(d&&H){var K=m8(this);$ig(K,d,H);Ig(this,K)}P_(this,"next")}else ue(this,_.hO(this.nextVideo,d,H))};
_.G.clearPlaylist=function(){if(wx(this)){P_(this,"clearPlaylist");var d=m8(this);d.reset();Ig(this,d);this.publish("remotePlayerChange")}else ue(this,this.clearPlaylist)};
_.G.dispose=function(){if(this.state_!=3){var d=this.state_;this.state_=3;this.publish("proxyStateChange",d,this.state_)}_.xH.prototype.dispose.call(this)};
_.G.disposeInternal=function(){Gr5(this);this.connection_=null;this.actionQueue_.clear();p6j(this,null);_.xH.prototype.disposeInternal.call(this)};
var cI1=function(d){_.yx("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(H){this.contextSubscriptions_.push(this.connection_.subscribe(H,_.hO(this.onProxyEvent_,H),this))},d)},Gr5=function(d){_.yx(d.contextSubscriptions_,function(H){this.connection_.unsubscribeByKey(H)},d);
d.contextSubscriptions_.length=0},wx=function(d){return d.getState()==1},ue=function(d,H){d.actionQueue_.getCount()<50&&d.actionQueue_.enqueue(H)},i_G=function(d,H,K){var c=m8(d);
Lv(c,K);c.playerState!=-1E3&&(c.playerState=H);Ig(d,c)},P_=function(d,H,K){d.connection_.sendMessage(H,K)},Ig=function(d,H){Gr5(d);
d.connection_.setPlayerContextData(KHb(H));cI1(d)};
MP.prototype.setState_=function(d){if((d!=this.state_||d==2)&&this.state_!=3&&d!=0){var H=this.state_;this.state_=d;this.publish("proxyStateChange",H,d);if(d==1)for(;!this.actionQueue_.isEmpty();)d=this.actionQueue_,L9g(d),d.front_.pop().apply(this);else d==3&&this.dispose()}};
MP.prototype.onProxyEvent_=function(d,H){this.publish(d,H)};
var p6j=function(d,H){d.castSession_&&(d.castSession_.removeUpdateListener(d.boundCastStatusListener_),d.castSession_.removeMediaListener(d.boundCastMediaListener_),d.onCastMediaChange_(null));d.castSession_=H;if(d.castSession_&&(cs("Setting cast session: "+d.castSession_.sessionId),d.castSession_.addUpdateListener(d.boundCastStatusListener_),d.castSession_.addMediaListener(d.boundCastMediaListener_),d.castSession_.media.length))d.onCastMediaChange_(d.castSession_.media[0])};
MP.prototype.onCastStatusUpdate_=function(d){if(!d)this.onCastMediaChange_(null),p6j(this,null);else if(this.castSession_.receiver.volume){d=this.castSession_.receiver.volume;var H=m8(this),K=Math.round(100*d.level||0);if(H.volume!=K||H.muted!=d.muted)cs("Cast volume update: "+d.level+(d.muted?" muted":"")),H.volume=K,H.muted=!!d.muted,Ig(this,H)}};
MP.prototype.onCastMediaChange_=function(d){cs("Cast media: "+!!d);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=d)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),oxO(this),this.publish("remotePlayerChange")};
var oxO=function(d){var H=d.castMedia_.media,K=d.castMedia_.customData;if(H&&K){var c=m8(d);H.contentId!=c.videoId&&cs("Cast changing video to: "+H.contentId);c.videoId=H.contentId;c.playerState=K.playerState;Lv(c,d.castMedia_.getEstimatedTime());Ig(d,c)}else cs("No cast media video. Ignoring state update.")};
MP.prototype.onCastMediaUpdate_=function(d){if(d)oxO(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
MP.prototype.onCloudviewAvailabilityChange_=function(){var d=Xjg();d&&p6j(this,d)};
MP.prototype.warn_=function(d){Kx("CP",d)};
var gxt=function(d,H,K){return(0,_.LA)(function(c){this.warn_("Failed to "+H+" with cast v2 channel. Error code: "+c.code);c.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+H+" using MDx browser channel."),P_(this,H,K))},d)};var W_=function(d,H,K,c){c=c===void 0?!1:c;_.xH.call(this);var p=this;this.connectTimerId_=NaN;this.reconnecting_=!1;this.idleDisconnectTimerId_=this.clientSetVideoTimerId_=this.playingSyncTimerId_=this.reconnectedCheckScreenTimeout_=NaN;this.listeners_=[];this.autoplayMode_=this.autoplayVideoId_=this.clientVideoId_=this.playerContext_=this.channelService=null;this.JSC$19697_http_=d;this.enableConnectWithInitialState_=c;this.listeners_.push(_.dz(window,"beforeunload",function(){p.JSC$19700_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new xy;this.currentScreenId_=H.id;this.currentScreenIdType_=H.idType;this.channelService=drj(this.JSC$19697_http_,K,this.JSC$19700_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){qtG(p)});
this.channelService.listen("channelClosed",function(){rx("Channel closed");isNaN(p.connectTimerId_)?v0(!0):v0();p.dispose()});
this.channelService.listen("channelError",function(g){v0();isNaN(p.getReconnectTimeout_())?(g==1&&p.currentScreenIdType_=="shortLived"&&p.publish("browserChannelAuthError",g),rx("Channel error: "+g+" without reconnection"),p.dispose()):(p.reconnecting_=!0,rx("Channel error: "+g+" with reconnection in "+p.getReconnectTimeout_()+" ms"),aT0(p,2))});
this.channelService.listen("channelMessage",function(g){lT1(p,g)});
this.channelService.setLoungeToken(H.token);this.subscribe("remoteQueueChange",function(){var g=p.playerContext_.videoId;Q35()&&_.kC("yt-remote-session-video-id",g)})};
_.m(W_,_.xH);
W_.prototype.connect=function(d,H){if(H){var K=H.listId,c=H.videoId,p=H.videoIds,g=H.playerParams,a=H.clickTrackingParams,e=H.index,k={videoId:c},C=H.currentTime,R=H.locationInfo;H=H.loopMode;C!==void 0&&(k.currentTime=C<=5?0:C);g&&(k.playerParams=g);R&&(k.locationInfo=R);a&&(k.clickTrackingParams=a);K&&(k.listId=K);p&&p.length>0&&(k.videoIds=p.join(","));e!==void 0&&(k.currentIndex=e);this.enableConnectWithInitialState_&&(k.loopMode=H||"LOOP_MODE_OFF");K&&(this.playerContext_.listId=K);this.playerContext_.videoId=
c;this.playerContext_.index=e||0;this.playerContext_.state=3;Lv(this.playerContext_,C);this.autoplayMode_="UNSUPPORTED";K=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";rx("Connecting with "+K+" and params: "+(0,_.wN)(k));this.channelService.connect({method:K,params:(0,_.wN)(k)},d,Eiv())}else rx("Connecting without params"),this.channelService.connect({},d,Eiv());e5Z(this)};
W_.prototype.setLoungeToken=function(d){this.channelService.setLoungeToken(d)};
W_.prototype.dispose=function(){this.isDisposed()||(_.vb("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),aT0(this,3));_.xH.prototype.dispose.call(this)};
W_.prototype.disposeInternal=function(){krv(this);xij(this);nxS(this);_.eb(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.eb(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.OM4(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.xH.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var C3q=function(d){return _.XM(d.connectedDevices_,function(H){return H.type=="LOUNGE_SCREEN"})},rx=function(d){Kx("conn",d)},aT0=function(d,H){d.publish("proxyStateChange",H)},e5Z=function(d){d.connectTimerId_=_.a5(function(){rx("Connecting timeout");
d.JSC$19700_disconnect_(1)},2E4)},krv=function(d){_.eb(d.connectTimerId_);
d.connectTimerId_=NaN},nxS=function(d){_.eb(d.reconnectedCheckScreenTimeout_);
d.reconnectedCheckScreenTimeout_=NaN},R51=function(d){xij(d);
d.playingSyncTimerId_=_.a5(function(){B_(d,"getNowPlaying")},2E4)},xij=function(d){_.eb(d.playingSyncTimerId_);
d.playingSyncTimerId_=NaN},qtG=function(d){rx("Channel opened");
d.reconnecting_&&(d.reconnecting_=!1,nxS(d),d.reconnectedCheckScreenTimeout_=_.a5(function(){rx("Timing out waiting for a screen.");d.JSC$19700_disconnect_(1)},15E3))},UiU=function(d,H){var K=null;
if(H){var c=C3q(d);c&&(K={clientName:c.clientName,deviceMake:c.brand,deviceModel:c.model,osVersion:c.osVersion})}_.vb("yt.mdx.remote.remoteClient_",K);H&&(krv(d),nxS(d));K=d.channelService.isChannelOpened()&&isNaN(d.connectTimerId_);H==K?H&&(aT0(d,1),B_(d,"getSubtitlesTrack")):H?(d.getOtherConnectedRemoteId_()&&d.playerContext_.reset(),aT0(d,1),B_(d,"getNowPlaying"),V9Z(d)):d.JSC$19700_disconnect_(1)},h51=function(d,H){var K=H.params.videoId;
delete H.params.videoId;K==d.playerContext_.videoId&&(_.rs.isEmpty(H.params)?d.playerContext_.trackData=null:d.playerContext_.trackData=H.params,d.publish("remotePlayerChange"))},LHq=function(d,H,K){var c=H.params.videoId||H.params.video_id,p=parseInt(H.params.currentIndex,10);
d.playerContext_.listId=H.params.listId||d.playerContext_.listId;$ig(d.playerContext_,c,p);d.publish("remoteQueueChange",K)},M9G=function(d,H){H.params=H.params||{};
LHq(d,H,"NOW_PLAYING_MAY_CHANGE");d.onStateChange_(H);d.publish("autoplayDismissed")};
W_.prototype.onStateChange_=function(d){var H=parseInt(d.params.currentTime||d.params.current_time,10);Lv(this.playerContext_,isNaN(H)?0:H);H=parseInt(d.params.state,10);H=isNaN(H)?-1:H;H==-1&&this.playerContext_.playerState==-1E3&&(H=-1E3);this.playerContext_.playerState=H;H=Number(d.params.loadedTime);this.playerContext_.loadedTime=isNaN(H)?0:H;H=Number(d.params.duration);this.playerContext_.duration_=isNaN(H)?0:H;H=this.playerContext_;var K=Number(d.params.liveIngestionTime);H.liveIngestionTime_=
K;H.isLive_=isNaN(K)?!1:!0;H=this.playerContext_;K=Number(d.params.seekableStartTime);d=Number(d.params.seekableEndTime);H.seekableStart_=isNaN(K)?0:K;H.seekableEnd_=isNaN(d)?0:d;this.playerContext_.playerState==1?R51(this):xij(this);this.publish("remotePlayerChange")};
W_.prototype.onAdStateChange_=function(d){if(this.playerContext_.playerState!=-1E3){var H=1085;switch(parseInt(d.params.adState,10)){case 1:H=1081;break;case 2:H=1084;break;case 0:H=1083}this.playerContext_.playerState=H;d=parseInt(d.params.currentTime,10);Lv(this.playerContext_,isNaN(d)?0:d);this.publish("remotePlayerChange")}};
var mi5=function(d,H){var K=H.params.muted=="true";d.playerContext_.volume=parseInt(H.params.volume,10);d.playerContext_.muted=K;d.publish("remotePlayerChange")},w6t=function(d,H){d.autoplayVideoId_=H.params.videoId;
d.publish("nowAutoplaying",parseInt(H.params.timeout,10))},P35=function(d,H){d.autoplayVideoId_=H.params.videoId||null;
d.publish("autoplayUpNext",d.autoplayVideoId_)},udv=function(d,H){d.autoplayMode_=H.params.autoplayMode;
d.publish("autoplayModeChange",d.autoplayMode_);d.autoplayMode_=="DISABLED"&&d.publish("autoplayDismissed")},ITt=function(d,H){var K=H.params.hasNext=="true";
d.playerContext_.hasPrevious=H.params.hasPrevious=="true";d.playerContext_.hasNext=K;d.publish("previousNextChange")};
W_.prototype.isCapabilitySupportedOnConnectedDevices_=function(d){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var H=_.q(this.connectedDevices_),K=H.next();!K.done;K=H.next())if(!K.value.capabilities.has(d))return!1;return!0};
var lT1=function(d,H){H=H.message;H.params?rx("Received: action="+H.action+", params="+(0,_.wN)(H.params)):rx("Received: action="+H.action+" {}");switch(H.action){case "loungeStatus":H=(0,_.B3)(H.params.devices);d.connectedDevices_=_.Wf(H,function(c){return new qP(c)});
H=!!_.XM(d.connectedDevices_,function(c){return c.type=="LOUNGE_SCREEN"});
UiU(d,H);H=d.isCapabilitySupportedOnConnectedDevices_("mlm");d.publish("multiStateLoopEnabled",H);break;case "loungeScreenDisconnected":vlq(d.connectedDevices_,function(c){return c.type=="LOUNGE_SCREEN"});
UiU(d,!1);break;case "remoteConnected":var K=new qP((0,_.B3)(H.params.device));_.XM(d.connectedDevices_,function(c){return c.equals(K)})||_.Lil(d.connectedDevices_,K);
break;case "remoteDisconnected":K=new qP((0,_.B3)(H.params.device));vlq(d.connectedDevices_,function(c){return c.equals(K)});
break;case "gracefulDisconnect":break;case "playlistModified":LHq(d,H,"QUEUE_MODIFIED");break;case "nowPlaying":M9G(d,H);break;case "onStateChange":d.onStateChange_(H);break;case "onAdStateChange":d.onAdStateChange_(H);break;case "onVolumeChanged":mi5(d,H);break;case "onSubtitlesTrackChanged":h51(d,H);break;case "nowAutoplaying":w6t(d,H);break;case "autoplayDismissed":d.publish("autoplayDismissed");break;case "autoplayUpNext":P35(d,H);break;case "onAutoplayModeChanged":udv(d,H);break;case "onHasPreviousNextChanged":ITt(d,
H);break;case "requestAssistedSignIn":d.publish("assistedSignInRequested",H.params.authCode);break;case "onLoopModeChanged":d.publish("loopModeChange",H.params.loopMode);break;default:rx("Unrecognized action: "+H.action)}};
_.G=W_.prototype;_.G.getProxyState_=function(){var d=3;this.isDisposed()||(d=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(d=1):d=2);return d};
_.G.JSC$19700_disconnect_=function(d){rx("Disconnecting with "+d);_.vb("yt.mdx.remote.remoteClient_",null);krv(this);this.publish("beforeDisconnect",d);d==1&&v0();this.channelService.disconnect(d);this.dispose()};
_.G.getPlayerContextData_=function(){var d=this.playerContext_;this.clientVideoId_&&(d=this.playerContext_.clone(),$ig(d,this.clientVideoId_,d.index));return KHb(d)};
_.G.setPlayerContextData_=function(d){var H=this,K=new xy(d);K.videoId&&K.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=K.videoId,_.eb(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.a5(function(){if(H.clientVideoId_){var p=H.clientVideoId_;H.clientVideoId_=null;H.playerContext_.videoId!=p&&B_(H,"getNowPlaying")}},5E3));
var c=[];this.playerContext_.listId==K.listId&&this.playerContext_.videoId==K.videoId&&this.playerContext_.index==K.index||c.push("remoteQueueChange");this.playerContext_.playerState==K.playerState&&this.playerContext_.volume==K.volume&&this.playerContext_.muted==K.muted&&H_T(this.playerContext_)==H_T(K)&&(0,_.wN)(this.playerContext_.trackData)==(0,_.wN)(K.trackData)||c.push("remotePlayerChange");this.playerContext_.reset(d);_.yx(c,function(p){this.publish(p)},this)};
_.G.getOtherConnectedRemoteId_=function(){var d=this.channelService.getDeviceId(),H=_.XM(this.connectedDevices_,function(K){return K.type=="REMOTE_CONTROL"&&K.id!=d});
return H?H.id:""};
_.G.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.G.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.G.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.G.JSC$19700_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var V9Z=function(d){_.eb(d.idleDisconnectTimerId_);d.idleDisconnectTimerId_=_.a5(function(){d.JSC$19700_disconnect_(1)},864E5)},B_=function(d,H,K){K?rx("Sending: action="+H+", params="+(0,_.wN)(K)):rx("Sending: action="+H);
d.channelService.sendMessage(H,K)};
W_.prototype.sendMessageWithUserAction_=function(d,H){B_(this,d,H);V9Z(this)};
W_.prototype.JSC$19700_getXsrfToken_=function(){var d=_.Vm.get("SAPISID","")||_.Vm.get("__Secure-1PAPISID",void 0)||"",H=_.Vm.get("__Secure-3PAPISID","")||"";if(!d&&!H)return"";d=_.mb(_.U8(d),2);H=_.mb(_.U8(H),2);return _.mb(_.U8(","+d+","+H),2)};
W_.prototype.subscribe=W_.prototype.subscribe;W_.prototype.unsubscribeByKey=W_.prototype.unsubscribeByKey;W_.prototype.getProxyState=W_.prototype.getProxyState_;W_.prototype.disconnect=W_.prototype.JSC$19700_disconnect_;W_.prototype.getPlayerContextData=W_.prototype.getPlayerContextData_;W_.prototype.setPlayerContextData=W_.prototype.setPlayerContextData_;W_.prototype.getOtherConnectedRemoteId=W_.prototype.getOtherConnectedRemoteId_;W_.prototype.getReconnectTimeout=W_.prototype.getReconnectTimeout_;
W_.prototype.getAutoplayMode=W_.prototype.getAutoplayMode_;W_.prototype.getAutoplayVideoId=W_.prototype.getAutoplayVideoId_;W_.prototype.reconnect=W_.prototype.JSC$19700_reconnect_;W_.prototype.sendMessage=W_.prototype.sendMessageWithUserAction_;W_.prototype.getXsrfToken=W_.prototype.JSC$19700_getXsrfToken_;W_.prototype.isCapabilitySupportedOnConnectedDevices=W_.prototype.isCapabilitySupportedOnConnectedDevices_;var rI5=function(d){g8.call(this,"ScreenServiceProxy");this.instance_=d;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.LA)(this.JSC$19703_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.LA)(this.onOnlineScreenChange_,this)))};
_.m(rI5,g8);_.G=rI5.prototype;_.G.getScreens=function(d){return this.instance_.$_gs(d)};
_.G.contains=function(d){return!!this.instance_.$_c(d)};
_.G.get=function(d){return this.instance_.$_g(d)};
_.G.start=function(){this.instance_.$_st()};
_.G.add=function(d,H,K){this.instance_.$_a(d,H,K)};
_.G.remove=function(d,H,K){this.instance_.$_r(d,H,K)};
_.G.updateName=function(d,H,K,c){this.instance_.$_un(d,H,K,c)};
_.G.disposeInternal=function(){for(var d=this.subscriptionKeys_.length,H=0;H<d;++H)this.instance_.$_ubk(this.subscriptionKeys_[H]);this.subscriptionKeys_.length=0;this.instance_=null;g8.prototype.disposeInternal.call(this)};
_.G.JSC$19703_onScreenChange_=function(){this.publish("screenChange")};
_.G.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
o2.prototype.$_st=o2.prototype.start;o2.prototype.$_gspc=o2.prototype.JSC$19662_getScreenByPairingCode;o2.prototype.$_gsppc=o2.prototype.JSC$19662_getScreenByPollingPairingCode;o2.prototype.$_c=o2.prototype.contains;o2.prototype.$_g=o2.prototype.get;o2.prototype.$_a=o2.prototype.add;o2.prototype.$_un=o2.prototype.updateName;o2.prototype.$_r=o2.prototype.remove;o2.prototype.$_gs=o2.prototype.getScreens;o2.prototype.$_gos=o2.prototype.JSC$19662_getOnlineScreens;o2.prototype.$_s=o2.prototype.subscribe;
o2.prototype.$_ubk=o2.prototype.unsubscribeByKey;var FHU=function(d){DvZ();if(!d8||!d8.get("yt-remote-disable-remote-module-for-dev")){d=_.Fm("MDX_CONFIG")||d;qu1();Yb0();zP||(zP=new DG(d?d.loungeApiHost:void 0),f8Z()&&(zP.basePath="/api/loungedev"));XG||(XG=_.OS("yt.mdx.remote.deferredProxies_")||[],_.vb("yt.mdx.remote.deferredProxies_",XG));WHb();var H=Jj();if(!H){var K=new o2(zP,d?d.disableAutomaticScreenCache||!1:!1);_.vb("yt.mdx.remote.screenService_",K);H=Jj();var c={};d&&(c={appId:d.appId,disableDial:d.disableDial,theme:d.theme,loadCastApiSetupScript:d.loadCastApiSetupScript,
disableCastApi:d.disableCastApi,enableDialLoungeToken:d.enableDialLoungeToken,enableCastLoungeToken:d.enableCastLoungeToken,forceMirroring:d.forceMirroring});_.vb("yt.mdx.remote.enableConnectWithInitialState_",d?d.enableConnectWithInitialState||!1:!1);uQO(K,function(g){g?sJ()&&s1q(sJ(),"YouTube TV"):K.subscribe("onlineScreenChange",function(){hb("yt-remote-receiver-availability-change")})},c)}if(d&&!_.OS("yt.mdx.remote.initialized_")){_.vb("yt.mdx.remote.initialized_",!0);
FG("Initializing: "+(0,_.wN)(d));ZZ.push(_.G5("yt-remote-cast2-api-ready",function(){hb("yt-remote-api-ready")}));
ZZ.push(_.G5("yt-remote-cast2-availability-change",function(){hb("yt-remote-receiver-availability-change")}));
ZZ.push(_.G5("yt-remote-cast2-receiver-selected",function(){BjT();hb("yt-remote-auto-connect","cast-selector-receiver")}));
ZZ.push(_.G5("yt-remote-cast2-receiver-resumed",function(){hb("yt-remote-receiver-resumed","cast-selector-receiver")}));
ZZ.push(_.G5("yt-remote-cast2-session-change",z50));ZZ.push(_.G5("yt-remote-connection-change",function(g){g?s1q(sJ(),"YouTube TV"):X6j()||(s1q(null,null),zZ1())}));
ZZ.push(_.G5("yt-remote-cast2-session-failed",function(){hb("yt-remote-connection-failed")}));
c=JIG();d.isAuto&&(c.id+="#dial");var p=d.capabilities||[];p.length>0&&(c.capabilities=p);c.name=d.device;c.app=d.app;(d=d.theme)&&(c.theme=d);FG(" -- with channel params: "+(0,_.wN)(c));c?(_.kC("yt-remote-session-app",c.app),_.kC("yt-remote-session-name",c.name)):(_.ns("yt-remote-session-app"),_.ns("yt-remote-session-name"));_.vb("yt.mdx.remote.channelParams_",c);H.start();sJ()||sLG()}}},TjZ=function(){var d=Jj().instance_.$_gos();
var H=Z_Z();H&&TP()&&(FZ5(d,H)||d.push(H));return s3t(d)},QLZ=function(){var d=TjZ(),H=Z_Z();
H||(H=X6j());return _.XM(d,function(K){return H&&Ab(H,K.key)?!0:!1})},Z_Z=function(){var d=sJ();
if(!d)return null;var H=Jj().getScreens();return jC(H,d)},z50=function(d){FG("remote.onCastSessionChange_: "+FJU(d));
if(d){var H=Z_Z();H&&H.id==d.id?(s1q(H.id,"YouTube TV"),d.idType=="shortLived"&&(d=d.token)&&(H=TP())&&H.setLoungeToken(d)):(H&&t9O(),Ytq(d,1))}else TP()&&t9O()},t9O=function(){JBt()?eN().stopSession():lx("stopSession called before API ready.");
var d=TP();d&&(d.disconnect(1),O_q(null))},Stj=function(){var d=TP();
return d&&d.getProxyState()!=3?new MP(TP(),void 0):null},FG=function(d){Kx("remote",d)},Jj=function(){if(!ExZ){var d=_.OS("yt.mdx.remote.screenService_");
ExZ=d?new rI5(d):null}return ExZ},sJ=function(){return _.OS("yt.mdx.remote.currentScreenId_")},yIq=function(d){_.vb("yt.mdx.remote.currentScreenId_",d)},BjT=function(){_.vb("yt.mdx.remote.connectData_",null)},TP=function(){return _.OS("yt.mdx.remote.connection_")},O_q=function(d){var H=TP();
BjT();d||yIq("");_.vb("yt.mdx.remote.connection_",d);XG&&(_.yx(XG,function(K){K(d)}),XG.length=0);
H&&!d?hb("yt-remote-connection-change",!1):!H&&d&&hb("yt-remote-connection-change",!0)},X6j=function(){var d=Q35();
if(!d)return null;var H=Jj();if(!H)return null;H=H.getScreens();return jC(H,d)},Ytq=function(d,H){yIq(d.id);
d=new W_(zP,d,JIG(),_.OS("yt.mdx.remote.enableConnectWithInitialState_")||!1);d.connect(H,_.OS("yt.mdx.remote.connectData_"));d.subscribe("beforeDisconnect",function(K){hb("yt-remote-before-disconnect",K)});
d.subscribe("beforeDispose",function(){TP()&&O_q(null)});
d.subscribe("browserChannelAuthError",function(){var K=Z_Z();K&&K.idType=="shortLived"&&(JBt()?eN().handleBrowserChannelAuthError():lx("refreshLoungeToken called before API ready."))});
O_q(d)},sLG=function(){var d=X6j();
d?(FG("Resume connection to: "+FJU(d)),Ytq(d,0)):(v0(),zZ1(),FG("Skipping connecting because no session screen found."))},zP=null,XG=null,ExZ=null,WHb=function(){var d=JIG();
if(_.rs.isEmpty(d)){d=TnS();var H=_.xC("yt-remote-session-name")||"",K=_.xC("yt-remote-session-app")||"";d={device:"REMOTE_CONTROL",id:d,name:H,app:K,mdxVersion:3};d.authuser=String(_.Fm("SESSION_INDEX","0"));(H=_.Fm("DELEGATED_SESSION_ID"))&&(d.pageId=String(H));_.vb("yt.mdx.remote.channelParams_",d)}},JIG=function(){return _.OS("yt.mdx.remote.channelParams_")||{}},ZZ=[];var b_Z=new _.T1("yt-menu"),Njt=function(){},fTt=function(d,H,K){d=H=="right-click"?K.rightClickMenuPopupHint:K.menuPopupHint;
if(!(Dig(H)>10))return H=H||"default",b_Z.set(H+"-impression",Dig(H)+1),d},Dig=function(d){return parseInt(b_Z.get((d||"default")+"-impression")||0,10)};
_.HG(Njt);var AIj=function(){this.contexts_=new WeakMap;this.JSC$19709_networkService_=this.activeContext_=null},jL1=function(d,H,K){var c=d.contexts_.get(H);
c||(c=new GZg(d.JSC$19709_networkService_),d.contexts_.set(H,c));d.activeContext_=c;K&&d.activeContext_.reset();d.activeContext_.start();return d.activeContext_};var QZ=function(){};
QZ.prototype.enqueue=function(){var d=this,H;return _.l(function(K){if(d.isCounterfactual())return(H=d.getCounterfactualData())&&d.shouldLogCounterfactualImpression()&&d.sendImpressionEndpoints(H),K.return();d.doEnqueue();_.VE(K)})};
QZ.prototype.sendImpressionEndpoints=function(d){_.bw.getInstance().triggerOptionalAction("yt-service-request",{},d[0])};var tj=function(d,H){this.renderer=d;this.page=H};
_.m(tj,QZ);tj.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
tj.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
tj.prototype.shouldLogCounterfactualImpression=function(){return!0};
tj.prototype.doEnqueue=function(){var d=_.$6(this.page);d&&d.pause();this.renderer.impressionCommand&&_.bw.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.zp(_.bw.getInstance(),[this.renderer.promoCommand],this.page)};var vxg=function(d,H){this.renderer=d;this.resolver=_.DA();this.JSC$19721_enforcementCounter=new _.J_d;H?this.JSC$19721_playerManager=_.$6(H):this.JSC$19721_playerManager=null;_.VS(1,!0)};
_.m(vxg,QZ);_.G=vxg.prototype;_.G.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var d=[];this.renderer.impressionEndpoints.forEach(function(H){(H=_.T6(H))&&d.push(H)});
return d}};
_.G.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.G.shouldLogCounterfactualImpression=function(){var d=_.uyf();d?(this.JSC$19721_enforcementCounter.increment("POPUP"),_.VS(3)):_.VS(2);return d};
_.G.cancel=function(){this.resolver.promise.cancel()};
_.G.doEnqueue=function(){var d=this;_.uyf()?(this.JSC$19721_enforcementCounter.increment("POPUP"),_.VS(3),dF1(this)):this.JSC$19721_playerManager?(this.resolver.promise.then(function(){dF1(d)}),HJv(this.resolver,this.JSC$19721_playerManager)):_.VS(2)};
var HJv=function(d,H){var K=_.DA();H.getPlayerPromise().then(function(c){K.resolve(c)});
K.promise.then(function(c){c.addEventListener("onAbnormalityDetected",d.resolve);_.Lq(d.promise,function(){c.removeEventListener("onAbnormalityDetected",d.resolve)})});
d.promise.thenCatch(function(){K.promise.cancel()})},dF1=function(d){_.VS(3);
var H={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:d.renderer}};H=_.bw.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:H},{});Promise.all(H).then(function(){$F0();d.JSC$19721_playerManager&&d.JSC$19721_playerManager.pause()})},$F0=function(){FGg(function(d,H){_.Z5Z(d,H);
d===0?_.VS(7):_.VS(4)})};var KLv=function(d,H){this.renderer=d;this.page=H;this.resolver=_.DA()};
_.m(KLv,QZ);_.G=KLv.prototype;_.G.cancel=function(){this.resolver.promise.cancel()};
_.G.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.G.isCounterfactual=function(){return!this.renderer.isVisible};
_.G.shouldLogCounterfactualImpression=function(){return!0};
_.G.doEnqueue=function(){var d=this;this.resolver.promise.then(function(){var K={popup:{mealbarPromoRenderer:d.renderer},popupType:"MEALBAR"};_.bw.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:K},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var H=_.$6(this.page);H&&cVq(this.resolver,H)}break;default:this.resolver.resolve()}};
var cVq=function(d,H){var K=_.DA();H.getPlayerPromise().then(function(c){K.resolve(c)});
K.promise.then(function(c){c.addEventListener("onAdEnd",d.resolve);_.Lq(d.promise,function(){c.removeEventListener("onAdEnd",d.resolve)})});
d.promise.thenCatch(function(){K.promise.cancel()})};var p$T=function(d,H){this.renderer=d;this.page=H};
_.m(p$T,QZ);_.G=p$T.prototype;_.G.cancel=function(){this.JSC$19729_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19729_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19729_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.G.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.G.isCounterfactual=function(){return!this.renderer.isVisible};
_.G.shouldLogCounterfactualImpression=function(){return!0};
_.G.doEnqueue=function(){var d=this,H,K;((H=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(K=H.playbackUpsellDialogTriggerConditionData)==null?void 0:K.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19729_downloadedVideosCountSelectorUnsubscriber=_.LU(_.dn(),BrO,function(c,p){c>p&&(gnv(d),d.cancel())}):gnv(this)};
var gnv=function(d){var H={popup:{upsellDialogRenderer:d.renderer},popupType:"MODAL"};_.bw.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:H},{});(d=_.$6(d.page))&&d.pause()};var Y7={},iJZ=(Y7.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Y7.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Y7.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Y7.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Y7.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Y7.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Y7.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Y7),G4b=function(d,H){this.renderer=d;this.targetManager=
H};
_.m(G4b,QZ);_.G=G4b.prototype;_.G.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19736_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19736_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19736_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.G.getCounterfactualData=function(){if(this.isCounterfactual()){var d;return(d=this.renderer.promoConfig)==null?void 0:d.impressionEndpoints}};
_.G.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.G.shouldLogCounterfactualImpression=function(){return!0};
_.G.doEnqueue=function(){var d=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19736_downloadedVideosCountSelectorUnsubscriber=_.LU(_.dn(),BrO,function(H,K){d.renderer.targetId&&H>K&&(PW5(d.targetManager,d.renderer.targetId,onq(d)),d.cancel())});
break;default:PW5(this.targetManager,this.renderer.targetId,onq(this))}};
var onq=function(d){var H;if((H=d.renderer.suggestedPosition)==null?0:H.type)var K=iJZ[d.renderer.suggestedPosition.type];K||(K="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:d.renderer},popupType:"HINT",position:K}}};var qgU=function(){this.previousPage=null},aFG;
qgU.prototype.registerPromoCommand=function(d,H){lF1(this,void 0,void 0,_.M(d.roadblock,uVq),void 0,void 0,H)};
var lF1=function(d,H,K,c,p,g,a){d.previousPage!==a&&d.pendingTooltipPromo&&d.pendingTooltipPromo.cancel();d.previousPage=a;p?(d.pendingEnforcementPromo&&d.pendingEnforcementPromo.cancel(),d.pendingEnforcementPromo=new vxg(p,a),d.pendingEnforcementPromo.enqueue()):g?(d.pendingCommandWrapperPromo=new tj(g,a),d.pendingCommandWrapperPromo.enqueue()):c?(d.pendingRoadblockPromo&&d.pendingRoadblockPromo.cancel(),d.pendingRoadblockPromo=new p$T(c,a),d.pendingRoadblockPromo.enqueue()):H?(d.pendingMealbarPromo&&
d.pendingMealbarPromo.cancel(),d.pendingMealbarPromo=new KLv(H,a),d.pendingMealbarPromo.enqueue()):K&&(d.pendingTooltipPromo&&d.pendingTooltipPromo.cancel(),d.pendingTooltipPromo=new G4b(K,_.u9()),d.pendingTooltipPromo.enqueue())},emb=function(){aFG||(aFG=new qgU);
return aFG};var tOv=!1;var uNG=function(d,H){var K=_.Fm("SESSION_INDEX");this.actionToken_=d;this.commonToken_=H;this.sessionIndex_=K},P8U=function(d){var H=_.DA(),K=_.OS("payments.business.integration.bootstrap"),c=_.OS("payments.business.integration"),p=c.Style.create().withMaterialDesignStyle(),g=c.mashupMode.popup("instrument-manager");
K.asMashupMode(g).usingUserIndex(d.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(p).inStandaloneContext(c.standaloneContextAuthId.forUserId()).instrumentManager(d.actionToken_,d.commonToken_.length>0?d.commonToken_:void 0,function(a){var e=a.instrumentId;e?H.resolve(e):(e=_.OS("payments.business.integration.scenario.InstrumentManager"),H.reject(a.errorCode&&a.errorCode===e.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(a){_.tm(a);
H.reject("instrumentManagerLoadError")});
return H.promise};var UN=function(d,H,K){this.payloadName="transactionFlowFailed";this.payload={errorType:d,serializedTransactionFlowLoggingParams:H,isUserDismiss:K===void 0?!1:K}};
_.vb("yt.ypc.shared.YpcTransactionFlowError",UN);var OJ=function(){return _.hB.apply(this,arguments)||this};
_.m(OJ,_.hB);OJ.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
OJ.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
OJ.prototype.onErrorMessageDismiss=OJ.prototype.onErrorMessageDismiss;_.t([_.r({readOnly:!0,observer:"errorRendererChanged"}),_.O("design:type",Object)],OJ.prototype,"errorRenderer",void 0);_.t([_.nK("yt-live-chat-error-message-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],OJ.prototype,"onErrorMessageDismiss",null);_.t([_.LK()],OJ);var k40=[OJ.prototype];var xFg;var nn5;var CmS=new _.T1("yt-live-chat"),Rm1=new Map;Rm1.set("timestamp_toggle","show-timestamps");Rm1.set("reactions_toggle","allow-reactions");var Sm=function(){return _.B.apply(this,arguments)||this};
_.m(Sm,_.B);_.G=Sm.prototype;_.G.menuItemIdentifierChanged=function(){var d;(d=this.data)!=null&&d.menuItemIdentifier&&(d=Rm1.get(this.data.menuItemIdentifier))&&(_.h("enable_lwe_web_mute")?(d=CmS.get(d),this.isToggled=!(d===void 0?!this.data.isToggled:!d)):this.isToggled=CmS.get(d))};
_.G.onFocus=function(){this.toggleButton.focus()};
_.G.onTap=function(){var d=this.data.command;d&&this.componentBehavior.resolveCommand(d)};
_.G.computeText=function(d,H,K){return this.componentBehavior.getSimpleString(d?K:H)};
_.G.computeIcon=function(d,H,K){return(d=d?K:H)&&d.iconType?_.kv(d.iconType):""};
Sm.prototype.onTap=Sm.prototype.onTap;Sm.prototype.onFocus=Sm.prototype.onFocus;Sm.prototype.menuItemIdentifierChanged=Sm.prototype.menuItemIdentifierChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Sm.prototype,"componentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Sm.prototype,"data",void 0);
_.t([_.r({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.O("design:type",String)],Sm.prototype,"icon",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],Sm.prototype,"isToggled",void 0);_.t([_.VP("tp-yt-paper-toggle-button"),_.O("design:type",Object)],Sm.prototype,"toggleButton",void 0);_.t([_.CK("data.menuItemIdentifier"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Sm.prototype,"menuItemIdentifierChanged",null);
_.t([_.nK("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Sm.prototype,"onFocus",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Sm.prototype,"onTap",null);_.t([_.ZV({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Sm);
_.T(Sm,"yt-live-chat-toggle-renderer",function(){if(nn5===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-toggle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_toggle_renderer.yt.live.chat.toggle.renderer.css.js--\x3e<tp-yt-paper-item class="style-scope yt-live-chat-toggle-renderer">\n   <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-toggle-renderer"></yt-icon>\n  <span class="style-scope yt-live-chat-toggle-renderer">[[computeText(data.isToggled, data.defaultText, data.toggledText)]]</span>\n  <tp-yt-paper-toggle-button aria-label="[[computeText(data.isToggled, data.defaultText, data.toggledText)]]" checked="[[isToggled]]" class="style-scope yt-live-chat-toggle-renderer">\n  </tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;xFg===void 0&&(xFg=document.createElement("template"));var c=xFg;K.call(H,c.content.cloneNode(!0),d.content.firstChild);nn5=d}d=nn5;return d},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var VWg=new _.Av("NAVIGATION_PROGRESS_TOKEN");var UFO={},hmb={},LL0=(hmb[xZ1.name]=!0,hmb),EJ=function(){var d=_.hB.apply(this,arguments)||this;d._noAccessors=!0;d.tabGesturesIsActive=!1;d.actionRouterIsRoot=!0;d.appBehaviorActionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-clear-cookie-action":"handleClearCookieAction","yt-store-grafted-ve-action":"onStoreGraftedVeAction","yt-history-load":"onYtHistoryLoad","yt-history-pop":"onYtHistoryPop"};d.pageTitle="";d.titleSuffix="YouTube";d.unseenNotificationCount=
0;d.hasNavigated=!1;d.hasSetScrollTopForNavigation=!1;d.pagePreparer=null;d.zwiebackInitJobId=0;d.dataUpdatePromise=null;d.loadDepsPromise=_.e5();d.hasPendingNavigation=!1;d.pendingPlayerOnResponseReceivedActions=[];return d};
_.m(EJ,_.hB);EJ.prototype.attached=function(){MWU(this);document.addEventListener("yt-navigate-cache",_.xf(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var d=yZ();d.init();d.dispatchElement=this.hostElement};
var MWU=function(d,H){H=H===void 0?0:H;var K=_.Kj().resolve(_.$p(_.Pm));if(K)mFq(d,K);else{if(H>=5)throw Error("al");setTimeout(function(){MWU(d,H+1)},0)}},mFq=function(d,H){H.addEventListener("yt-navigate-start",_.xf(d,d.onYtNavigateStart));
H.addEventListener("yt-navigate-finish",_.xf(d,d.onYtNavigateFinish));H.addEventListener("yt-navigate-error",_.xf(d,d.onYtNavigateError));H.addEventListener("yt-page-data-fetched",_.xf(d,d.onYtPageDataFetched))};
_.G=EJ.prototype;_.G.detached=function(){var d=_.Kj().resolve(_.Pm);d.removeEventListener("yt-navigate-start",_.xf(this,this.onYtNavigateStart));d.removeEventListener("yt-navigate-finish",_.xf(this,this.onYtNavigateFinish));d.removeEventListener("yt-navigate-error",_.xf(this,this.onYtNavigateError));d.removeEventListener("yt-page-data-fetched",_.xf(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.xf(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.G.setPageOffset=function(d,H){d?_.oF(this.hostElement,"yt-set-page-offset",[d,H]):_.z5(Error("bl"))};
_.G.setPageOffsetForNavigation=function(d,H){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(d,H))};
_.G.onYtNavigateSetPageOffset=function(d,H){this.setPageOffsetForNavigation(H.page,H.offset)};
_.G.getPageOffset=function(){var d=_.Gn(this.hostElement).querySelector("#page-manager").getCurrentPage(),H=0;d&&(H=_.oF(this.hostElement,"yt-get-page-offset",[d])[0]);return H};
_.G.onYtHistoryPop=function(d,H){if(_.Qx("DISABLE_WARM_LOADS"))d.preventDefault(),window.location.reload();else{var K=_.Kj().resolve(_.Pm);K.hasPendingNavigation()&&d.preventDefault();K.cancelPendingNavigation();_.qo(this.hostElement,"yt-pending-navigation-cancelled");H.errorMsg&&(d=H.errorMsg.split(" - "),H=Error(d[0]),d.length==2&&d[1]&&(_.sD(H,d[1]),_.Jf(H)),window.location.reload())}};
_.G.onYtHistoryLoad=function(d,H){var K=this;if(_.Qx("DISABLE_WARM_LOADS"))window.location.reload();else{(d=H.endpoint)&&Object.keys(d).length||(d=null);var c=H.historyEntry,p=_.Kj().resolve(_.Pm),g=_.Kj().resolve(_.HI),a=null;c&&c.rootData&&(a=c.rootData);var e=a&&w$G(a);!a||e||a.filler?d?(p.navigate(d,!0),PmT(this,d)):(H.legacyBorder||e||(H.JSC$30038_savedComponentState==null&&a==null?_.Jf(new _.m1("Incomplete history entry",H.forward)):_.Xi(new _.m1("Malformed history entry",H.JSC$30038_savedComponentState,
H.forward,a))),window.location.reload()):(_.avF({isHot:!0}),_.Xw({webInfo:{navigationReason:"h"}}),_.mgM(),_.Fw("srt"),_.Fw("pdc"),this.cancelPendingTasks(),ukO(this,H.forward,a),a.player&&(a.player.loaded=!1),PmT(this,d),_.x1S(p,d||{},a,2,{},!1,H).then(function(){K.setPageOffset(g.getCurrentPage(),c.scrollTop||0)}))}};
_.G.initHistoryManager=function(d){if(!this.hasNavigated){this.hasNavigated=!0;var H=_.Gn(this.hostElement).querySelector("#page-manager").getCurrentData();d=isNaN(d)?this.getPageOffset():d;var K=_.Kj().resolve(_.Pm).currentEndpoint;this.replaceState(K,H,d)}};
_.G.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.G.onYtNavigateStart=function(d,H){this.cancelPendingTasks();H.noProgressBar||(d=_.Kj().resolve(_.$p(VWg)))&&d.start();d=this.hasPendingNavigation?null:this.data;var K=_.Kj().resolve(_.HI),c,p,g;_.h("kevlar_use_vimio_behavior")&&!((c=H.endpoint)==null?0:(p=c.commandMetadata)==null?0:(g=p.webCommandMetadata)==null?0:g.ignoreNavigation)&&(c=K.getCurrentPage())&&c.disconnectVisibilityRoot();K.prepareForNavigation(H.pageType,H.endpoint);_.h("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.iq(1,
"pcl"),_.Gm(this.pagePreparer,K.preparePage.bind(K,H.pageType,H.endpoint)));c=this.getPageOffset();this.initHistoryManager(c);H.reload||this.hasPendingNavigation?(_.h("web_enable_delay_shorts_sequence_call")&&H.pageType==="shorts"&&_.GT(this.hostElement,"yt-shorts-reset"),this.replaceState(H.endpoint,d,c)):(d==null?void 0:d.page)==="watch"&&H.pageType==="watch"&&_.h("kevlar_replace_watch_to_watch_history_state")?this.replaceState(H.endpoint,d,c):(d==null?void 0:d.page)!=="shorts"||H.pageType!=="shorts"||
H.endpoint.reelWatchEndpoint.sequenceParams||_.h("short_to_short_back_nav_killswitch")?H.type!="navigate-back"&&H.type!="navigate-forward"&&(H.pageType==="shorts"&&_.GT(this.hostElement,"yt-shorts-reset"),this.saveAndPush(H.url,H.endpoint,d,c)):(_.h("web_enable_delay_shorts_sequence_call")&&(H.endpoint.reelWatchEndpoint.sequenceParams=d==null?void 0:d.cachedSequenceParams,H.endpoint.reelWatchEndpoint.sequenceProvider=d==null?void 0:d.cachedSequenceProvider),this.replaceState(H.endpoint,d,0));this.hasPendingNavigation=
!0};
var IFU=function(d){d.hasPendingNavigation=!1;(d=_.Kj().resolve(_.$p(VWg)))&&d.finish()};
EJ.prototype.onYtNavigateError=function(d,H){IFU(this);d=this.get("endpoint.commandMetadata.webCommandMetadata.url",H);var K=_.NM(window.location.href);d&&!K.pbjreload&&(H=H.navigationErrorReason||"10",_.h("kevlar_parent_on_pbjreload")&&(K={csn:_.Fj()},this.get("data.endpoint.clickTrackingParams")&&(K.itct=this.data.endpoint.clickTrackingParams),_.Hy(d,K)),_.bO(_.DY(d,{pbjreload:H})))};
EJ.prototype.onYtNavigateCache=function(d,H){var K=this,c=H.url,p=H.endpoint,g=H.data;d=!!H.miniplayer;H=!!H.skipHistory;if(c&&p&&g){var a=this.getPageOffset(),e=this.data||null;H||this.saveAndPush(c,p,e,a);c=_.x1S(_.Kj().resolve(_.Pm),p,g,d?4:3,{},d);d&&c.then(function(){K.dataUpdatePromise&&K.dataUpdatePromise.then(function(){var k=_.Kj().resolve(_.HI);K.setPageOffset(k.getCurrentPage(),0)})})}};
EJ.prototype.onYtNavigateFinish=function(d,H){var K=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){rVU(K,H.fromHistory)})};
var rVU=function(d,H){IFU(d);if(d.pendingPlayerOnResponseReceivedActions){for(var K=_.q(d.pendingPlayerOnResponseReceivedActions),c=K.next();!c.done;c=K.next())_.CM(c.value,d.hostElement);d.pendingPlayerOnResponseReceivedActions=[]}K=_.Kj().resolve(_.HI);H||!d.hasNavigated||_.h("web_disable_scroll_on_navigate_finish")||((H=K.getCurrentPage())?H.is==="ytd-shorts"||d.tabGesturesIsActive||d.setPageOffsetForNavigation(H,0):_.Jf(Error("cl")));_.EI(function(){_.EI(function(){_.Fw("pda")})})};
EJ.prototype.onYtNavigate=function(d){if(!d.detail.endpoint){var H=new _.m1("Error: Missing yt-navigate endpoint from target:",d.target,d.target.nodeName);_.z5(H)}if(H=_.h("cold_missing_history"))H=yZ(),H.init(!1),H=!(H.browserHistory.boundHistoryReplaceState&&H.browserHistory.boundHistoryPushState);if(H){_.sS("DISABLE_WARM_LOADS",!0);H=new _.m1("Failed to initialize history manager",this.getDebugString());var K=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
K?_.Jf(H):_.z5(H)}H=d.detail.endpoint;var c,p;_.h("debug_forward_web_query_parameters")&&((c=H.commandMetadata)==null?0:(p=c.webCommandMetadata)==null?0:p.url)&&(H=JSON.parse(JSON.stringify(H)),H.commandMetadata.webCommandMetadata.url=_.OoE(H.commandMetadata.webCommandMetadata.url,window.location.search));d={type:0,command:H,form:{params:d.detail.params,tempData:d.detail.tempData||{},requestType:d.detail.type,createScreenConfig:d.detail.createScreenConfig,reload:d.detail.reload?d.detail.reload:!1,
requestForm:d.detail}};_.h("kevlar_yt_navigate_command_handler")?(c=_.Kj().resolve(_.cb),d.form.skipDefaultElement=!0,c.resolveCommand(H,{form:d.form})):this.handleNavigate(d)};
EJ.prototype.handleNavigate=function(d){this.hasSetScrollTopForNavigation=!1;var H=_.Kj().resolve(_.Pm),K=d.form||{};H.navigate(d.command,K.reload,K.params,K.tempData,K.requestType,K.createScreenConfig,K.ignoreConfirmation,K.requestForm)&&PmT(this,d.command,K.tempData)};
EJ.prototype.onYtPageDataFetched=function(d,H){try{_.ge7().reset();this.data=H.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.Kj().resolve(_.HI).updatePageData(this.data);if(!_.h("web_service_params_response_processor")){var K=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);K&&EWv(K);var c=this.get("response.responseContext.serviceTrackingParams",
this.data);c&&EWv(c)}var p=this.get("playerResponse.onResponseReceivedActions",this.data);p&&(p=WLq(this,p));p&&_.l5(this.hostElement,p,this.hostElement);var g=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),a=this.get("response.responseContext.consistencyTokenJar",this.data);if(g||a){var e=_.z5Y(),k=(0,_.rs.getValues)(e.tokenJars);g&&e.replace(k,g);a&&e.replace(k,a)}}catch(C){_.z5(C)}};
var PmT=function(d,H,K){try{d.onYtEndpointChangeHandler(H,K)}catch(c){_.z5(c)}};
_.G=EJ.prototype;_.G.onYtEndpointChangeHandler=function(){};
_.G.setPageTitle=function(d){d=(this.pageTitle=d)?d+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+d};
_.G.onYtUpdateTitle=function(d,H){this.setPageTitle(H)};
_.G.setUnseenNotificationCount=function(d){this.unseenNotificationCount=d;this.setPageTitle(this.pageTitle)};
_.G.handleUpdateNotificationsUnseenCountAction=function(d){_.M(d,A$S)&&((d=_.M(d,A$S).unseenCount)?this.setUnseenNotificationCount(d):this.setUnseenNotificationCount(0))};
_.G.handleClearCookieAction=function(d){var H;(d=(H=_.M(d,bst))==null?void 0:H.cookieName)&&_.GRE(d)};
_.G.onYtUpdateUnseenNotificationCount=function(d,H){this.setUnseenNotificationCount(H)};
_.G.loadData=function(d){var H=this;this.loadDepsPromise.then(function(){var K=_.Kj().resolve(_.$p(_.Pm));K||_.z5(Error("dl"));if(d&&d.response){if(!d.endpoint){var c=_.yK(window.document.location.href)||"/",p="";if(c==="/"||c.startsWith("/?"))p="WEB_PAGE_TYPE_BROWSE";d.endpoint={commandMetadata:{webCommandMetadata:{url:c,webPageType:p,rootVe:3854}}}}_.x1S(K,d.endpoint,d,5,{})}else d.endpoint?K.navigate(d.endpoint):K.navigate(_.hJ);_.Xp.cancelJob(H.zwiebackInitJobId);H.zwiebackInitJobId=_.Xp.addLowPriorityJob(YI5)})};
var yZ=function(){return _.Kj().resolve(_.Vr)};
EJ.prototype.getDebugString=function(){return yZ().getDebugString()};
EJ.prototype.getThirdPartyManipulationSuspected=function(){return yZ().getThirdPartyManipulationSuspected()};
EJ.prototype.replaceState=function(d,H,K){yZ().saveAndReplace(d,H,K)};
EJ.prototype.saveAndPush=function(d,H,K,c){yZ().saveAndPush(d,H,K,c)};
var w$G=function(d){return _.M(d.endpoint,_.AP)||_.M(d.endpoint,_.P5)?!0:!d||isNaN(d.expirationTime)?!1:(0,_.$G)()>d.expirationTime},ukO=function(d,H,K){var c=d.get("response.trackingParams",K),p=_.so(),g=_.Fj();
if(c&&p&&g&&(c=d.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",K),!c&&K.rootVe&&(c=K.rootVe),p=H?"forwardButton":"backButton",H=d.get("playerResponse.topbar.desktopTopbarRenderer."+p+".buttonRenderer.command.clickTrackingParams",d.data),d=d.get("response.topbar.desktopTopbarRenderer."+p+".buttonRenderer.command.clickTrackingParams",d.data),H=(d=H||d)?_.P1(d):void 0,d=_.hR(),p=[_.e5(K)],_.ld(d,c,H,{dataPromises:p,csnToClone:K.csn}),K.graftedVes))for(K=
_.q(K.graftedVes),c=K.next();!c.done;c=K.next())_.ec(d,c.value)};
EJ.prototype.onStoreGraftedVeAction=function(d){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(d)):_.Jf(Error("el"))};
var WLq=function(d,H){return H.filter(function(K){for(var c in K)if(LL0[c])return d.pendingPlayerOnResponseReceivedActions.push(K),!0;return!1})};
_.H3.Object.defineProperties(EJ.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
EJ.prototype.onStoreGraftedVeAction=EJ.prototype.onStoreGraftedVeAction;EJ.prototype.loadData=EJ.prototype.loadData;EJ.prototype.onYtUpdateUnseenNotificationCount=EJ.prototype.onYtUpdateUnseenNotificationCount;EJ.prototype.handleClearCookieAction=EJ.prototype.handleClearCookieAction;EJ.prototype.handleUpdateNotificationsUnseenCountAction=EJ.prototype.handleUpdateNotificationsUnseenCountAction;EJ.prototype.setUnseenNotificationCount=EJ.prototype.setUnseenNotificationCount;
EJ.prototype.onYtUpdateTitle=EJ.prototype.onYtUpdateTitle;EJ.prototype.setPageTitle=EJ.prototype.setPageTitle;EJ.prototype.onYtEndpointChangeHandler=EJ.prototype.onYtEndpointChangeHandler;EJ.prototype.onYtPageDataFetched=EJ.prototype.onYtPageDataFetched;EJ.prototype.handleNavigate=EJ.prototype.handleNavigate;EJ.prototype.onYtNavigate=EJ.prototype.onYtNavigate;EJ.prototype.onYtNavigateFinish=EJ.prototype.onYtNavigateFinish;EJ.prototype.onYtNavigateCache=EJ.prototype.onYtNavigateCache;
EJ.prototype.onYtNavigateError=EJ.prototype.onYtNavigateError;EJ.prototype.onYtNavigateStart=EJ.prototype.onYtNavigateStart;EJ.prototype.cancelPendingTasks=EJ.prototype.cancelPendingTasks;EJ.prototype.initHistoryManager=EJ.prototype.initHistoryManager;EJ.prototype.onYtHistoryLoad=EJ.prototype.onYtHistoryLoad;EJ.prototype.onYtHistoryPop=EJ.prototype.onYtHistoryPop;EJ.prototype.onYtNavigateSetPageOffset=EJ.prototype.onYtNavigateSetPageOffset;EJ.prototype.setPageOffset=EJ.prototype.setPageOffset;
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],EJ.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],EJ.prototype,"data",void 0);_.t([_.nK("yt-navigate-set-page-offset"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],EJ.prototype,"onYtNavigateSetPageOffset",null);
_.t([_.nK("yt-history-pop"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],EJ.prototype,"onYtHistoryPop",null);_.t([_.nK("yt-history-load"),_.O("design:type",Function),_.O("design:paramtypes",[Event,_.s7A]),_.O("design:returntype")],EJ.prototype,"onYtHistoryLoad",null);_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],EJ.prototype,"onYtNavigate",null);
_.t([_.nK("yt-update-title"),_.O("design:type",Function),_.O("design:paramtypes",[Event,String]),_.O("design:returntype")],EJ.prototype,"onYtUpdateTitle",null);_.t([_.nK("yt-update-unseen-notification-count"),_.O("design:type",Function),_.O("design:paramtypes",[Event,Number]),_.O("design:returntype")],EJ.prototype,"onYtUpdateUnseenNotificationCount",null);_.t([_.LK()],EJ);UFO.YtdAppBehavior=[_.Uq.YtActionHandlerBehavior,EJ.prototype];var be=function(){var d=_.hB.apply(this,arguments)||this;d._noAccessors=!0;return d};
_.m(be,_.hB);be.prototype.ready=function(){var d=this;_.Gn(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){d.onChange_()})};
be.prototype.dataChanged_=function(){_.Gn(this.hostElement).querySelector("#checkbox").checked=!1};
be.prototype.onChange_=function(){var d=_.Gn(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.GT(this.hostElement,"yt-dismissal-reason-"+d,this.data.feedbackToken)};
be.prototype.dataChanged_=be.prototype.dataChanged_;_.t([_.r(),_.O("design:type",Object)],be.prototype,"data",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],be.prototype,"dataChanged_",null);_.t([_.LK()],be);var BbO=[be.prototype];var NP=function(){var d=_.hB.apply(this,arguments)||this;d.timeoutJobId=0;d.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return d};
_.m(NP,_.hB);NP.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
NP.prototype.startTimeout=function(){var d=this,H=this.data&&this.data.displayDurationSeconds;H&&!this.timeoutJobId&&(this.timeoutJobId=_.mf(_.Xp,function(){_.oF(d.hostElement,"yt-close-popup-action",[d.is]);d.timeoutJobId=0},H*1E3))};
NP.prototype.cancelTimeout=function(){_.Xp.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
NP.prototype.ytdHatsSurveyBehaviorDataChanged=NP.prototype.ytdHatsSurveyBehaviorDataChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],NP.prototype,"ytActionHandlerBehavior",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],NP.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.t([_.LK()],NP);var zmq=[_.Uq.YtActionHandlerBehavior,NP.prototype];var X$0=function(d,H){var K;return((K=d.prefixMapping)==null?0:K[H])?d.prefixMapping[H]:d.SHARED_RENDERERS_.hasOwnProperty(H)?"yt":d.prefix},DZ={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}},DROPDOWN:{component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0},HINT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",
verticalOffset:15,withBackdrop:!1},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",
horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,
shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},forceCloseOnOutsideClick:!0,forceFocus:!0,slotName:"dropdown-content"},HINT_PERSISTENT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",verticalOffset:15,withBackdrop:!1,noAutoFocus:!0},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},
OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},
OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},slotName:"dropdown-content"},LOCKED_OVERLAY_DIALOG:{component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,
scrollAction:"lock",withBackdrop:!0},preventAutonav:!0}};DZ.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.h("kevlar_mealbar_above_player"),modern:_.h("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
DZ.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};DZ.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};DZ.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
DZ.MOLE={component:null,styles:{position:"fixed",top:"auto",left:"auto",right:"0",bottom:"0",zIndex:"var(--ytd-z-index-miniplayer)"},rtlStyles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",zIndex:"var(--ytd-z-index-miniplayer)"}};
DZ.NOTIFICATION={component:null,styles:{position:"fixed",top:"0",left:"auto",right:"0",bottom:"auto",marginTop:"60px",zIndex:"var(--ytd-z-index-notification)"},rtlStyles:{position:"fixed",top:"0",left:"0",right:"auto",bottom:"auto",marginTop:"60px",zIndex:"var(--ytd-z-index-notification)"},preventAutonav:!0};
DZ.OVERLAY_DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!1,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
DZ.RESPONSIVE_DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},narrowProperties:{horizontalAlign:null,verticalAlign:null,dynamicAlign:!1,withBackdrop:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
DZ.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};DZ.SURVEY={component:"tp-yt-paper-dialog",properties:{withBackdrop:!1,noCancelOnOutsideClick:!0,noAutoFocus:!0},styles:{position:"fixed",top:"auto",left:"auto",right:"0",bottom:"0"},rtlStyles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0"}};
DZ.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};DZ.TOAST={component:null,properties:{}};var JVU=new function(d,H,K){this.supportedPopups=d;this.navigationEndpointPopupMap=H;this.popupTypeMap=K;this.supportedPopups=d;this.navigationEndpointPopupMap=H;this.popupTypeMap=K}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.h("desktop_add_to_playlist_renderer_dialog_popup")?"DIALOG":"RESPONSIVE_DROPDOWN",backstagePostDialogPopupRenderer:"DIALOG",bubbleHintRenderer:"HINT",checkboxSurveyRenderer:"SURVEY",confirmDialogRenderer:"DIALOG",dismissalFollowUpRenderer:"DIALOG",enforcementMessageViewModel:"LOCKED_MODAL",
fancyDismissibleDialogRenderer:"DIALOG",gamingAccountLinkConfirmDialogRenderer:"DIALOG",gamingAccountLinkSettingRenderer:"DIALOG",hotkeyDialogRenderer:"DIALOG",sponsorshipConfirmCancelRenderer:"DIALOG",menuPopupRenderer:"RESPONSIVE_DROPDOWN",modalWithTitleAndButtonRenderer:"RESPONSIVE_DROPDOWN",notificationActionRenderer:"TOAST",reportFormModalRenderer:"DIALOG",searchSuggestionReportDialog:"DIALOG",sharingEmbedRenderer:"DIALOG",sharingRenderer:"RESPONSIVE_DROPDOWN",singleOptionSurveyRenderer:"SURVEY",
surveyFollowUpRenderer:"SURVEY",unifiedSharePanelRenderer:"DIALOG",unlimitedFamilyMessageInterstitialRenderer:"DIALOG",unlimitedFamilyProfileInterstitialRenderer:"DIALOG",unpluggedPauseMembershipDialogRenderer:"DIALOG",ypcOffersOverlayRenderer:"DIALOG",ypcUpgradeDialogRenderer:"DIALOG",redCancelSurveyRenderer:"DIALOG",conversationSectionController:"MOLE",conversationHighPriorityNotificationContentRenderer:"NOTIFICATION"}),saZ=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$19786_popupConfig=DZ;this.forwardedEvents="yt-action yt-navigate yt-popup-canceled yt-popup-closed yt-popup-opened yt-service-request-completed yt-service-request-error yt-service-request-sent yt-lockup-requested".split(" ");this.forwardingEnabledPopups=
new Set([])};var FLT=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.Z4.getInstance()},fv=function(d,H){var K=d.pageNameToElement.get(H);
if(!K){switch(H){case "watch":var c=_.h("web_watch_force_learning_journey_for_testing")?_.gl("ytd-watch-learning-journey"):_.h("kevlar_watch_fixie")?_.gl("ytd-watch-fixie"):_.h("kevlar_watch_grid")?_.gl("ytd-watch-grid"):_.gl("ytd-watch-flexy");break;case "learning_journey_watch":c=_.gl("ytd-watch-learning-journey");break;case "shorts":c=_.gl("ytd-shorts");break;case "search":c=_.gl("ytd-search");break;case "channel":c=_.gl("ytd-browse");c.pageSubtype="channels";break;case "trending":c=_.gl("ytd-browse");
c.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":c=
_.gl("ytd-browse");c.pageSubtype=H;break;case "browse":c=_.gl("ytd-browse");break;default:_.Jf(new _.m1("Error getting page element for type",H))}K=c;d.pageNameToElement.set(H,K)}return K};
FLT.prototype.preparePage=function(d,H,K){K&&(d=_.hc(K)||d);if(d!=="watch"&&d!=="learning_journey_watch"){var c=this.elementPoolPopulator,p=d;p!=c.targetPage_&&c.pendingPages_.indexOf(p)>-1&&(c.targetPage_&&(c.pendingPages_.unshift(c.targetPage_),c.abort()),rEb(c,p),_.BG6(c,p))}if((c=fv(this,d))||!_.M(K,_.yj)){c.isAttached||c===H||(c.hidden=!0);if(!c.data&&(d!=="watch"&&d!=="learning_journey_watch"||!_.h("swatcheroo_page_pool_dont_provide_filler_data"))){var g;if(d=(g=_.Fm("FILLER_DATA",{})[d])==
null?void 0:g.response)c.data=d}return c}};var ZJS=function(d){this.JSC$31930_clientRoot=d;this.playlistHandlerActionMap={"yt-add-to-playlist-command":ABG,"yt-end-playlist-command":j1Z,"yt-recover-playlist-command":dkt,"yt-refresh-playlist-command":KlZ,"yt-playlist-remove-videos-action":HMt};_.Ne(_.bw.getInstance(),this.playlistHandlerActionMap,this.JSC$31930_clientRoot);QIb()},TbS;var Aj=function(d,H,K){this.apiKey=d;this.endpoint=H;this.confidenceThreshold=K===void 0?.5:K;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=H==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||H==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
H==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||H==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new OTG};
_.G=Aj.prototype;
_.G.start=function(d){if(this.state===0)if(this.isOnline()){d.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=d.supportsHttpHeadersOverwriteParam);d.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=d.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.sa("voice_assistant");_.Zi("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=d.languageCode||"en-US";this.supportsCrossDomainXhr=d.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=d.youtubeAssistantRequest||null;this.listeningHandler=d.listeningHandler||this.listeningHandler;this.audioDetectedHandler=d.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=d.stopHandler||this.stopHandler;this.completeHandler=d.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=d.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=d.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
d.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=d.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=d.accessToken;this.additionalHeaders=d.additionalHeaders||{};var H;this.prefetchResponseTimeoutMs=(H=d.prefetchResponseTimeoutMs)!=null?H:this.prefetchResponseTimeoutMs;Qag(this);this.startAudio();tWU(this)}else this.errorHandler("OFFLINE")};
_.G.stop=function(d){var H=d===void 0?{}:d;d=H.logCancel===void 0?!0:H.logCancel;var K=H.logMicClosed===void 0?!0:H.logMicClosed;var c=H.handleError===void 0?!0:H.handleError;H=H.handleStop===void 0?!0:H.handleStop;this.state!==0&&(d&&jm("voz_cx"),v_(this,{logMicClosed:K,handleStop:H}),c&&this.errorHandler("ABORTED"))};
_.G.getState=function(){return this.state};
_.G.isSupported=function(){return!0};
_.G.stopAudio=function(d){(d===void 0||d)&&jm("voz_mf")};
_.G.startAudio=function(){jm("voz_vp");return _.e5(null)};
var Yg1=function(d,H){d.channelOpen&&(d.state!==2&&(d.state=2,jm("voz_ss"),d.listeningHandler()),H=new Uint8Array(H),H='{ "audioIn": "'+_.mb(H)+'" }',d.channel.send(H))},v_=function(d,H){var K=H===void 0?{}:H;
H=K.logMicClosed===void 0?!0:K.logMicClosed;K=K.handleStop===void 0?!0:K.handleStop;d.vozEndOfDataTimeout>-1&&(clearTimeout(d.vozEndOfDataTimeout),d.vozEndOfDataTimeout=-1);OJ0(d);d.stopAudio(H);d.channel&&(d.channelOpen=!1,d.manuallyClosedChannel=!0,d.channel.close(),d.channel=void 0);d.transcribedSpeechResults=[];d.state=0;K&&d.stopHandler()},Qag=function(d){var H={httpHeadersOverwriteParam:d.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},d.additionalHeaders,d.accessToken&&d.isUsingVoz?{Authorization:"Bearer "+d.accessToken}:{"x-goog-api-key":d.apiKey}),supportsCrossDomainXhr:d.supportsCrossDomainXhr};d.channel=new jg(d.endpoint,H);d.channel.open();_.Iq(d.channel,"w",function(){var K=d.channel,c=K.send,p=d.isUsingVoz?"PLACEHOLDER":"example";p={config:{dialogStateIn:{languageCode:d.languageCode},deviceConfig:{deviceId:p,deviceModelId:p},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!d.isUsingVoz)p.config.requestType=4;else if(d.isUsingVoz&&d.youtubeAssistantRequest){var g=JSON.stringify(d.youtubeAssistantRequest);p.config.internalIn={youtubeAssistantS3InputJson:g}}c.call(K,p);d.channelOpen=!0;d.manuallyClosedChannel=!1});
_.Iq(d.channel,"x",function(){d.manuallyClosedChannel||(d.channelOpen=!1,d.channel=void 0,v_(d))});
_.Iq(d.channel,"z",function(K){if(K.data){OJ0(d);for(var c=0;c<K.data.length;c++){var p=d,g=K.data[c],a=g.speechResults;if(a)a:{var e=[];g=[];var k=!1;a=_.q(a);for(var C=a.next();!C.done;C=a.next()){C=C.value;if(C.noSpeech){v_(p);p.errorHandler("NO_SPEECH");break a}C.transcript!==void 0&&C.stability!==void 0&&(C.stability<p.confidenceThreshold&&(k=!0),k?g.push(C.transcript):e.push(C.transcript))}if(e.length!==0||g.length!==0)e=e.join(" "),g=g.join(" "),p.receivedEndOfUtterance&&!p.isUsingVoz?p.isUsingVoz||
p.completeHandler([e,g]):(k=p,a=e,C=g,jm("voz_sf"),k.transcriptionUpdateHandler(a,C),k.transcribedSpeechResults=[a,C]),p.receivedEndOfUtterance&&(jm("voz_eou"),p.transcriptionCompleteHandler([e,g]),p.isUsingVoz&&(p.prefetchResponseTimeoutMs===0?v_(p,{logMicClosed:!1,handleStop:!0}):p.prefetchResponseTimeoutMs>0&&Sg0(p)))}else p.isUsingVoz&&(g==null?0:g.internalOut)?(g=JSON.parse(g.internalOut.youtubeAssistantS3OutputJson),g.userHasOptedInToVaa||g.vaaConsent?p.vaaConsentUpdateHandler(!!g.userHasOptedInToVaa,
!!g.vaaConsent):(En0(p),g&&(e=p.transcribedSpeechResults,jm("voz_rqf"),p.completeHandler(e,g)))):g.eventType==="END_OF_UTTERANCE"?p.receivedEndOfUtterance=!0:(jm("voz_err"),p.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Jf(Error("fl")))}}});
_.Iq(d.channel,"y",function(K){v_(d);switch(K.status){case 1:K="WEBCHANNEL_NETWORK_ERROR";break;case 2:K="WEBCHANNEL_SERVER_ERROR";break;default:K="WEBCHANNEL_UNKNOWN_ERROR"}d.errorHandler(K);d.logError(Error(K))})};
Aj.prototype.logError=function(d){_.z5(d)};
Aj.prototype.isOnline=function(){return!0};
var Sg0=function(d){En0(d);d.prefetchResponseSetTimeoutId=setTimeout(function(){v_(d,{logMicClosed:!1,handleStop:!0})},d.prefetchResponseTimeoutMs)},En0=function(d){d.prefetchResponseSetTimeoutId>-1&&(clearTimeout(d.prefetchResponseSetTimeoutId),d.prefetchResponseSetTimeoutId=-1)},tWU=function(d){OJ0(d);
d.noResponseReceivedTimeout=window.setTimeout(function(){v_(d);d.errorHandler("NO_SPEECH")},11E3)},OJ0=function(d){d.noResponseReceivedTimeout>-1&&(window.clearTimeout(d.noResponseReceivedTimeout),d.noResponseReceivedTimeout=-1)},jm=function(d){_.Fw(d,void 0,"voice_assistant")};var dt=function(){Aj.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.m(dt,Aj);dt.prototype.isSupported=function(){return cRG()};
dt.prototype.startAudio=function(){var d=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.W1(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(c){yVt(d,c)};
this.processor.connect(this.audioContext.destination);var H=function(c){d.stream=c;if(!d.audioContext)return _.e5(null);c=d.audioContext.createMediaStreamSource(c);d.processor&&c.connect(d.processor);return _.e5(null)},K={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?H(this.stream):(K=navigator.mediaDevices.getUserMedia(K))?K.then(H).catch(function(c){v_(d);c.name&&c.name==="NotAllowedError"?d.errorHandler("NO_MICROPHONE_PERMISSION"):(d.errorHandler("AUDIO_ERROR"),d.logError(c));return _.W1(null)}):(v_(this),this.errorHandler("AUDIO_ERROR"),_.Jf(Error("gl")));
return Aj.prototype.startAudio.call(this)};
dt.prototype.stopAudio=function(d){d=d===void 0?!0:d;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(H){H.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Aj.prototype.stopAudio.call(this,d)};
dt.prototype.isOnline=function(){return navigator.onLine};
var yVt=function(d,H){if(d.audioContext)if(window.OfflineAudioContext){var K=d.audioContext.sampleRate,c=H.inputBuffer.getChannelData(0);H=new window.OfflineAudioContext(1,c.length,16E3);for(var p=H.createBuffer(1,c.length,K),g=p.getChannelData(0),a=0,e=0;e<c.length;e++)g[e]=c[e],a+=g[e]*g[e];!d.audioDetected&&Math.sqrt(a/c.length)>.01&&(d.audioDetected=!0,d.audioDetectedHandler());c=H.createBufferSource();c.buffer=p;c.connect(H.destination);c.start(0);H.oncomplete=function(k){k=k.renderedBuffer.getChannelData(0);
for(var C=Math.floor(16384E3/K),R=new Int16Array(C),V=0;V<C;++V)R[V]=Math.max(-1,Math.min(1,k[V]))*32767;Yg1(d,R.buffer)};
H.startRendering()}else bJ1(d,H)},bJ1=function(d,H){var K=d.audioContext.sampleRate,c=H.inputBuffer.getChannelData(0),p=Math.floor((K+8E3)/16E3);
K=c.length/p;H=new Float32Array(K);for(var g=0;g<K;++g)H[g]=c[g*p];c=new Int16Array(K);for(p=0;p<K;++p)c[p]=Math.max(-1,Math.min(1,H[p]))*32767;Yg1(d,c.buffer)};var NbG={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var DFg=function(){this.JSC$19851_audioEnabled=!0;this.audioFeedbackHolder={}};
DFg.prototype.isPlaying=function(d){return d.currentTime>0&&!d.paused&&!d.ended&&d.readyState>2};
var fFS=function(d){for(var H=_.q(Object.values(NbG)),K=H.next();!K.done;K=H.next())K=K.value,d.audioFeedbackHolder[K]=new Audio,d.audioFeedbackHolder[K].src="/s/search/audio/"+K+".mp3",d.audioFeedbackHolder[K].load()},Hu=function(d,H){if(d.JSC$19851_audioEnabled!==!1&&H in d.audioFeedbackHolder){for(var K=_.q(Object.values(d.audioFeedbackHolder)),c=K.next();!c.done;c=K.next())c=c.value,d.isPlaying(c)&&c.pause();
d.audioFeedbackHolder[H].currentTime=0;d.audioFeedbackHolder[H].play().catch(function(){})}};var AVG=function(d,H){var K=this;this.store=d;this.service=H;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){K.setState("offline");K.stop()};
this.audioPlayer=new DFg;var c;(c=this.audioPlayer)==null||fFS(c)};
_.G=AVG.prototype;_.G.getService=function(){return this.service};
_.G.isEnabled=function(){return!!this.service};
_.G.isSupported=function(){var d;return(d=this.service)==null?void 0:d.isSupported()};
_.G.start=function(){var d=this,H,K,c,p,g,a,e,k,C,R,V,U,L;return _.l(function(w){switch(w.nextAddress){case 1:d.store.dispatch(H1Z("",""));if(!navigator.onLine)return d.setState("offline"),w.return();window.addEventListener("offline",d.handleOfflineEvent);d.stream=null;if(!d.permissionsSupported){w.jumpTo(2);break}_.e2(w,3);return w.yield(ja5(d),5);case 5:H=w.yieldResult;if(!H)return(K=d.audioPlayer)==null||Hu(K,"failure"),w.return();d.service.stream=d.stream;d.setState("listening");_.Em(w,2);break;
case 3:_.RV(w),d.permissionsSupported=!1;case 2:c={context:_.ke1(_.cM())},c.youtubeAssistantParams={searchParams:{inlineSearchResponse:d.enableInlineSearchResponse}},p=function(W,J){d.store.dispatch($JZ("transcribing"));d.store.dispatch(H1Z(W,J))},g=function(){var W;
(W=d.audioPlayer)==null||Hu(W,"open");d.setState("listening")},a=function(){d.setState("transcribing")},e=function(W){d.setErrorState(W)},k=function(W,J){var F;
(F=d.audioPlayer)==null||Hu(F,"success");J&&(_.h("kevlar_voice_search_inline_search")&&(d.responseProcessor=_.Kj().resolve(_.cxX),d.responseProcessor&&(F=J.navigationAction,W=J.prefetchedSearchResponse,F&&W&&(F=(new _.gdt).JSC$13046_getStoreKey(F),_.ta(d.responseProcessor,W,F)))),d.JSC$19869_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",J))},C=function(){window.removeEventListener("offline",d.handleOfflineEvent)},R=_.MhE(!1),V=R.Authorization!=null,U=d.enableFirstPartyAuth||
d.enableFPAForSignedInUsers&&V?R:{"X-Goog-Visitor-Id":R["X-Goog-Visitor-Id"]},L={completeHandler:k,
errorHandler:e,listeningHandler:g,audioDetectedHandler:a,stopHandler:C,transcriptionUpdateHandler:p,youtubeAssistantRequest:c,languageCode:vnj(),additionalHeaders:U,supportsCrossDomainXhr:d.enableFirstPartyAuth||d.enableFPAForSignedInUsers&&V,supportsHttpHeadersOverwriteParam:!d.disableHttpHeadersOverwrite},d.service.start(L),_.VE(w)}})};
_.G.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.G.reset=function(){this.store.dispatch(_.iZ({type:"RESET_VOICE_SEARCH_STATE"}))};
_.G.setState=function(d){this.store.dispatch($JZ(d))};
_.G.setErrorState=function(d){switch(d){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var H;(H=this.audioPlayer)==null||Hu(H,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)ja5(this);else{var K;(K=this.audioPlayer)==null||Hu(K,"failure");this.setState("permission-denied")}break;case "ABORTED":var c;(c=this.audioPlayer)==null||Hu(c,"no_input");break;default:var p;(p=this.audioPlayer)==
null||Hu(p,"no_input");this.setState("timeout")}};
var ja5=function(d){var H,K;return _.l(function(c){switch(c.nextAddress){case 1:return c.yield(navigator.permissions.query({name:"microphone"}),2);case 2:H=c.yieldResult;if(H.state==="granted")return c.return(!0);if(H.state==="denied")return d.setState("permission-denied"),c.return(!1);d.setState("permission");K={audio:{sampleSize:16,channelCount:1},video:!1};_.e2(c,3);return c.yield(navigator.mediaDevices.getUserMedia(K),5);case 5:return d.stream=c.yieldResult,c.return(!0);case 3:return _.RV(c),
d.setState("permission-denied"),c.return(!1)}})},vnj=function(){var d=_.Fm("INNERTUBE_CONTEXT_HL"),H=_.Fm("INNERTUBE_CONTEXT_GL");
return d.indexOf("-")>-1?d:d+"-"+H};var dE0=function(d,H,K){AVG.call(this,H,K);this.JSC$19869_actionRouter=d;this.enableInlineSearchResponse=_.h("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.h("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.h("kevlar_voice_search_enable_fpa_signedin_users")},HQU;
_.m(dE0,AVG);
var $Et=function(){if(!HQU){var d="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.h("kevlar_voice_search_auth_enabled")||_.h("kevlar_voice_search_use_yt_endpoint")?d="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.h("kevlar_voice_search_use_fp_endpoint")&&(d="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");HQU=
new dE0(_.bw.getInstance(),_.dn(),new dt(_.Fm("VOZ_API_KEY"),d,.5))}return HQU};var KD5=function(d){this.JSC$19873_clientRoot=d;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$19873_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)]]));d=_.q(this.eventListeners);for(var H=d.next();!H.done;H=d.next()){var K=_.q(H.value);H=K.next().value;K=K.next().value;K=_.q(K);for(var c=K.next();!c.done;c=K.next()){var p=
_.q(c.value);c=p.next().value;p=p.next().value;H.addEventListener(c,p)}}_.Ne(_.bw.getInstance(),this.autonavPauseActionMap,this.JSC$19873_clientRoot)},cyv,p21=function(d){return _.h("kevlar_autonav_popup_filtering")?(d=_.v5(d))?d.hasAttribute("prevent-autonav"):!0:!0};
_.G=KD5.prototype;_.G.onIronOverlayOpened=function(d){p21(d)&&(this.autonavPauseReasons.overlayOpen=!0,$h(this))};
_.G.onIronOverlayClosed=function(d){p21(d)&&(this.autonavPauseReasons.overlayOpen=!1,$h(this))};
_.G.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;$h(this)};
_.G.onYtAutonavPauseBlur=function(){var d=this;_.Xp.addJob(function(){d.isInBackground()||(d.autonavPauseReasons.inputBoxFocus=!1,$h(d))},8,0)};
_.G.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;$h(this)};
_.G.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;$h(this)};
_.G.onYtAutonavPauseScroll=function(){var d=_.Kj().resolve(_.HI);d.isOnWatch()&&(d=d.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=d.getBoundingClientRect().top<-200,$h(this))};
_.G.onYtAutonavPauseUserEngagement=function(d){var H=this;if(_.h("user_engagement_enable_autoplay_pause_feature")){var K=Number(d.lowEngagementThresholdMs);isNaN(K)||K<=0||d.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.eC("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.Kj().resolve(_.uV),_.cd()<K?_.mf(_.Xp,function(){_.eC("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.Q$0()?(this.userEngagementCsn=_.Fj(),_.mf(_.Xp,function(){_.eC("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
H.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,$h(this)):_.eC("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.P85(Error("hl`"+JSON.stringify(d)))};
_.G.onYtAutonavPausePlayer=function(d){this.autonavPauseReasons.requestedByPlayer=!!d.detail;$h(this)};
_.G.onYtAutonavVisibilityChanged=function(){var d=this,H,K,c;return _.l(function(p){if(p.nextAddress==1)return(H=_.Kf())?p.yield(H.getPlayerPromise(),2):p.return();K=p.yieldResult;c=K.isMuted()||K.getVolume()===0;d.autonavPauseReasons.backgroundAndMute=d.isInBackground()&&c;$h(d);_.VE(p)})};
_.G.onYtAutonavPausePlayerEnded=function(){_.Kj().resolve(_.uV);var d=144E5;_.h("user_engagement_enable_autoplay_pause_feature")||_.h("is_part_of_any_user_engagement_experiment")||(d=45E5);this.autonavPauseReasons.longIdle=_.cd()>d;gAS(this);$h(this)};
_.G.onYtUserActivity=function(){var d=this;this.autonavPauseReasons.userEngagement&&(_.mf(_.Xp,function(){_.eC("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",d.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,$h(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.mf(_.Xp,function(){_.eC("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",d.userEngagementCsn);_.Bd()}),this.autonavPauseReasons.youthereLactExperiment=!1,$h(this));
this.autonavPauseReasons.longIdle&&!_.h("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,$h(this))};
_.G.isInBackground=function(){var d=window.document.visibilityState;return!(!d||d==="visible")};
var $h=function(d){for(var H=!1,K=_.q(Object.values(d.autonavPauseReasons)),c=K.next();!c.done;c=K.next())c=c.value,H=H||c;H?_.$R.getInstance().pause(d.autonavPauseReasons):(d=_.$R.getInstance(),d.autonavState_==3?(d.setState(2,!1,!1),d.autonavPauseReason_=void 0):d.autonavState_==1&&(d.disabledAutonavPauseReason_=void 0))},gAS=function(d){var H=!1;
if(_.h("enable_autoplay_pause_by_lact")){_.Kj().resolve(_.uV);H=_.iT("autoplay_pause_by_lact_sec")*1E3;var K=_.iT("autoplay_pause_by_lact_sampling_fraction");(H=_.cd()>=H&&Math.random()<K)&&!_.Q$0()&&(_.mf(_.Xp,function(){_.eC("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),H=!1)}H!==d.autonavPauseReasons.youthereLactExperiment&&(d.autonavPauseReasons.youthereLactExperiment=H)&&(d.userEngagementCsn=_.Fj(),_.mf(_.Xp,function(){_.eC("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",d.userEngagementCsn)}));
d.autonavPauseReasons.userEngagement&&_.mf(_.Xp,function(){_.eC("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",d.userEngagementCsn)})};
KD5.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.eC("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Bd(),this.autonavPauseReasons.youthereLactExperiment=!1,$h(this));this.autonavPauseReasons.userEngagement&&(_.eC("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,$h(this))};
KD5.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Kh=function(){var d=_.B.apply(this,arguments)||this;d.miniGuideVisible=!1;d.guideOpened=_.h("disable_initial_guide_state_fix")?!1:d.canFitPersistentGuide(d.initialBodyClientWidth);d.guideUserStateOpened=d.getInitialGuideUserStateOpened();d.isFullscreenShorts=!1;d.miniGuideWidthThreshold=_.iT("kevlar_mini_guide_width_threshold",791);d.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");d.persistentGuideBlockedPagesPatterns=
"^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");d.persistentGuideBlockedPagePathRegex=new RegExp(d.persistentGuideBlockedPagesPatterns.join("|"));d.animationTransitionDuration=0;d.lateDataResolver=_.DA();d.initialGuideDataFetchFailed=!1;d.initialLoad=!0;d.guideRenderers=new Set;d.isMouseOverGuide=!1;d.sessionUserManuallyExpandedGuideState=!1;d.actionMap={"yt-start-loading-watch":"startLoadingWatch",
"yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return d};
_.m(Kh,_.B);_.G=Kh.prototype;_.G.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.G.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.G.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.G.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.G.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.G.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.G.ready=function(){_.Kj().addProvider({provide:_.y6,useValue:this.hostElement})};
_.G.attached=function(){var d=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.xf(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.xf(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.xf(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.xf(this,this.onYtGuideShow));_.vV(this,function(){d.animationTransitionDuration=200})};
_.G.detached=function(){document.removeEventListener("yt-navigate-finish",_.xf(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.xf(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.xf(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.xf(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.xf(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.xf(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.xf(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.G.getData=function(){return this.data};
_.G.load=function(){var d=this,H,K,c,p;return _.l(function(g){switch(g.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=d.lateDataResolver.resolve.bind(d),g.return(d.lateDataResolver.promise);if(window.ytInitialGuideData)return H=_.DA(),H.resolve(window.ytInitialGuideData),g.return(H.promise);c=!1;_.e2(g,2);return g.yield(d.fetchGuideData(),4);case 4:K=g.yieldResult;_.Em(g,3);break;case 2:p=_.RV(g),p.message==="Returned error"&&(c=
!0);case 3:if(K)return g.return(K);d.onYtGuideClose();c||(d.initialGuideDataFetchFailed=!0);return g.return(d.lateDataResolver.promise)}})};
_.G.fetchGuideData=function(){var d=this,H,K,c,p,g,a,e;return _.l(function(k){if(k.nextAddress==1)return H=_.Kj(),d.guidePromise||(K=H.resolve(_.Z8),d.guidePromise=_.Nc(K,H8q)),k.yield(d.guidePromise,2);if(k.nextAddress!=3)return c=k.yieldResult,p=H.resolve(_.GE),k.yield(p(),3);(g=k.yieldResult)&&((a=c)==null?void 0:(e=a.responseContext)==null?void 0:e.maxAgeSeconds)!==0&&g.put("service:guide:fallback",new _.xx({innertubeResponse:c}));return k.return(c)})};
_.G.initializeGuideDataIfEmpty=function(){var d=this,H,K;return _.l(function(c){if(c.nextAddress==1){if(!d.initialGuideDataFetchFailed||d.data)return c.return();_.e2(c,2);return c.yield(d.fetchGuideData(),4)}if(c.nextAddress!=2)return(H=c.yieldResult)&&d.lateDataResolver.resolve(H),_.Em(c,0);K=_.RV(c);_.Jf(K);_.VE(c)})};
_.G.initializeGuideData=function(){var d=this,H;return _.l(function(K){switch(K.nextAddress){case 1:return _.iE(VMg(),{mainAppWeb:_.Nv()}),_.e2(K,2),K.yield(d.load(),4);case 4:d.data=K.yieldResult;_.Em(K,3);break;case 2:_.RV(K),_.GH(VMg(),"FAILURE");case 3:H=d.data&&d.data.items&&d.data.items.length>0?"SUCCESS":"FAILURE",_.GH(VMg(),H),_.VE(K)}})};
_.G.setGuideData=function(d){var H=this,K,c;return _.l(function(p){if(p.nextAddress==1)return H.disabled?p.return():H.data?(d.data=H.data,H.guideRenderers.add(d),p.return()):p.yield(H.initializeGuideData(),2);H.graftGuideToPage();K=_.Qx("IS_HOMEPAGE_COLD")?"eop":void 0;_.h("disable_element_pool_populator")?H.setGuideDataAfterInit(d):(c=new _.iq(1,K),_.Gm(c,H.setGuideDataAfterInit.bind(H,d)));_.VE(p)})};
_.G.setGuideDataAfterInit=function(d){d.data=this.data;d.markDirty();this.guideRenderers.add(d);_.EI(function(){_.Fw("gle")});
_.vV(this,function(){_.Fw("gpe")})};
_.G.graftGuideToPage=function(){if(this.data){var d=this.data&&this.data.trackingParams;d&&(d=_.P1(d),_.kR(_.hR(),d))}};
_.G.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.xf(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.G.onDrawerOpenedChanged=function(d,H){!H.value&&this.guideOpened&&(this.guideOpened=!1)};
_.G.onYtGuideToggle=function(d){var H=this.guideOpened;this.guideOpened=!H;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var K=_.Lo();_.Mo(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;K.save()}this.updateGuideDrawerElementState();if(this.guideElement){var c;this.guideOpened&&((c=d.detail)==null?0:c.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.xf(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.xf(this,this.onAppDrawerTransitioned))}H||this.initializeGuideDataIfEmpty()};
_.G.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.xf(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.f4(this.guideElement)};
_.G.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.xf(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(v8v(this.guideOpened))};
_.G.guidePersistentAndVisibleChanged=function(){_.qo(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.G.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.iZ({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.G.miniGuideVisibleChanged=function(){_.qo(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.G.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(v8v(this.guideOpened)),this.initialLoad=!1);_.qo(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.G.activeEndpointChanged=function(){_.qo(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.G.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.G.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.G.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var d=this.canFitPersistentGuide(this.cachedClientWidth);d?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=d}this.updateGuideDrawerElementState()};
_.G.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.G.getGuideOpened=function(){return this.guideOpened};
_.G.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.G.getActiveEndpoint=function(){return this.activeEndpoint};
_.G.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.G.updateGuideDrawerElementState=function(){this.guideElement&&(this.guidePersistent?this.disableGuideAnimation():this.guideElement.persistent?this.disableGuideAnimation():this.enableGuideAnimation(),this.guideElement.opened=this.guideOpened,this.guideElement.persistent=this.guidePersistent,this.guideOpened&&this.guidePersistent&&_.GT(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.G.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.h("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.G.handleGuideMouseLeave=function(){var d=this;!this.sessionUserManuallyExpandedGuideState&&_.h("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.yP(this,"handleGuideMouseLeave",function(){d.isMouseOverGuide||!d.guideOpened||d.miniGuideVisible||(d.guideOpened=!1,d.updateGuideDrawerElementState())},100))};
_.G.computeGuidePersistentAndVisible=function(){var d=this;_.yP(this,"computeGuidePersistentAndVisible",function(){d.guidePersistentAndVisible=d.guideOpened&&d.guidePersistent;d.guideIsVisibleButNotPersistent=!(!d.guideOpened||d.guidePersistent)})};
_.G.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.G.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.G.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.G.startLoadingWatch=function(){this.closeGuide()};
_.G.startLoadingShorts=function(){_.h("web_hide_guide_on_shorts")&&this.closeGuide()};
_.G.onYtNavigateFinish=function(d,H){if(!_.iv||H){this.activeEndpoint=H.endpoint;this.pageType=H.pageType;this.pageUrl=H.response.url;var K,c;d=(c=_.M((K=H.endpoint)==null?void 0:K.commandMetadata,_.Co))==null?void 0:c.url;!this.pageUrl&&d&&(this.pageUrl=d);_.h("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.G.getVisibleGuideRenderer=function(){for(var d=_.q(this.guideRenderers),H=d.next();!H.done;H=d.next())if(H=H.value,this.miniGuideVisible&&H.is==="ytd-mini-guide-renderer"||this.guideOpened&&H.is==="ytd-guide-renderer")return H;return null};
_.G.markGuideRendererDirty=function(d){if(d){typeof d.markDirty==="function"&&d.markDirty();d=_.q([].concat(_.ru(_.Gn(d).children)));for(var H=d.next();!H.done;H=d.next())this.markGuideRendererDirty(H.value)}};
_.G.persistentGuideEnabled=function(d,H){if(!H||d==="watch"||d==="settings"||d==="shorts"&&this.isFullscreenShorts||_.h("reels_web_disable_persistent_guide_shorts")&&d==="shorts")return!1;var K=_.kp(H)||"";return _.h("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(c){return K===c}):!this.persistentGuideBlockedPagePathRegex.test(K)};
_.G.canFitPersistentGuide=function(d){var H=_.iT("kevlar_persistent_guide_width_threshold",1312);return H===-1||_.h("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:d>H};
_.G.canFitMiniGuide=function(d){return this.miniGuideWidthThreshold===-1?!1:d>this.miniGuideWidthThreshold};
_.G.onResize=function(){var d=this;_.yP(this,"calculateGuideState",function(){d.onResizeDebounced()})};
_.G.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.G.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.G.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.G.getInitialGuideUserStateOpened=function(){return _.h("web_force_mini_guide_default")?!1:!_.Lo().getFlag(109)};
_.H3.Object.defineProperties(Kh.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Fm("initialBodyClientWidth")||window.innerWidth}}});
Kh.prototype.onResize=Kh.prototype.onResize;Kh.prototype.observeForMiniGuideVisible=Kh.prototype.observeForMiniGuideVisible;Kh.prototype.computeGuidePersistentAndVisible=Kh.prototype.computeGuidePersistentAndVisible;Kh.prototype.cachedClientWidthChanged=Kh.prototype.cachedClientWidthChanged;Kh.prototype.resetGuide=Kh.prototype.resetGuide;Kh.prototype.activeEndpointChanged=Kh.prototype.activeEndpointChanged;Kh.prototype.guideOpenedChanged=Kh.prototype.guideOpenedChanged;
Kh.prototype.miniGuideVisibleChanged=Kh.prototype.miniGuideVisibleChanged;Kh.prototype.guideIsVisibleButNotPersistentChanged=Kh.prototype.guideIsVisibleButNotPersistentChanged;Kh.prototype.guidePersistentAndVisibleChanged=Kh.prototype.guidePersistentAndVisibleChanged;Kh.prototype.onGuideElementChanged=Kh.prototype.onGuideElementChanged;Kh.prototype.onGuidePersistentChanged=Kh.prototype.onGuidePersistentChanged;Kh.prototype.onRenderGuideChanged=Kh.prototype.onRenderGuideChanged;
Kh.prototype.onActiveEndpointChanged=Kh.prototype.onActiveEndpointChanged;Kh.prototype.onMiniGuideVisibleChanged=Kh.prototype.onMiniGuideVisibleChanged;Kh.prototype.onGuideIsVisibleButNotPersistentChanged=Kh.prototype.onGuideIsVisibleButNotPersistentChanged;Kh.prototype.onGuidePersistendAndVisibleChanged=Kh.prototype.onGuidePersistendAndVisibleChanged;_.t([_.u(_.WZ),_.O("design:type",Object)],Kh.prototype,"ironResizableBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Kh.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Kh.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Kh.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Kh.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],Kh.prototype,"disabled",void 0);
_.t([_.r(),_.O("design:type",Boolean)],Kh.prototype,"guidePersistentAndVisible",void 0);_.t([_.CK("guidePersistentAndVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"onGuidePersistendAndVisibleChanged",null);_.t([_.r(),_.O("design:type",Boolean)],Kh.prototype,"guideIsVisibleButNotPersistent",void 0);
_.t([_.CK("guideIsVisibleButNotPersistent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.t([_.r(),_.O("design:type",Object)],Kh.prototype,"miniGuideVisible",void 0);_.t([_.CK("miniGuideVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"onMiniGuideVisibleChanged",null);_.t([_.r(),_.O("design:type",Boolean)],Kh.prototype,"forceMiniGuideClose",void 0);
_.t([_.r(),_.O("design:type",Object)],Kh.prototype,"activeEndpoint",void 0);_.t([_.CK("activeEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"onActiveEndpointChanged",null);_.t([_.r(),_.O("design:type",Boolean)],Kh.prototype,"renderGuide",void 0);_.t([_.CK("renderGuide"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"onRenderGuideChanged",null);
_.t([_.r(),_.O("design:type",Object)],Kh.prototype,"guideOpened",void 0);_.t([_.r(),_.O("design:type",Boolean)],Kh.prototype,"guidePersistent",void 0);_.t([_.CK("guidePersistent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"onGuidePersistentChanged",null);_.t([_.r(),_.O("design:type",Object)],Kh.prototype,"guideUserStateOpened",void 0);_.t([_.r(),_.O("design:type",String)],Kh.prototype,"pageUrl",void 0);
_.t([_.r(),_.O("design:type",String)],Kh.prototype,"pageType",void 0);_.t([_.r(),_.O("design:type",Number)],Kh.prototype,"cachedClientWidth",void 0);_.t([_.r(),_.O("design:type",Object)],Kh.prototype,"guideElement",void 0);_.t([_.r({selector:_.G_}),_.O("design:type",Object)],Kh.prototype,"isFullscreenShorts",void 0);_.t([_.CK("guideElement"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"onGuideElementChanged",null);
_.t([_.CK("guidePersistentAndVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"guidePersistentAndVisibleChanged",null);_.t([_.Mr("guideIsVisibleButNotPersistent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.t([_.CK("miniGuideVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"miniGuideVisibleChanged",null);_.t([_.Mr("guideOpened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"guideOpenedChanged",null);_.t([_.CK("activeEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"activeEndpointChanged",null);
_.t([_.Mr("pageUrl"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"resetGuide",null);_.t([_.Mr("cachedClientWidth"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"cachedClientWidthChanged",null);_.t([_.CK("guideOpened","guidePersistent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"computeGuidePersistentAndVisible",null);
_.t([_.Mr("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"observeForMiniGuideVisible",null);_.t([_.nK("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"onResize",null);_.t([_.Z({disableElementRegistration:!0,is:"yt-guide-manager"})],Kh);var iQ0=_.T(Kh,"yt-guide-manager",void 0,{mode:_.qk("kevlar_poly_si_batch_j081")?1:2});var cu=function(){var d=_.B.apply(this,arguments)||this;d.JSC$19883_keyboardInUse=!1;d.boundHandleCapturedKeydownEvent=function(H){d.handleCapturedKeydownEvent(H)};
return d};
_.m(cu,_.B);_.G=cu.prototype;_.G.attached=function(){this.listenToDocument(document)};
_.G.listenToDocument=function(d){d.addEventListener("keydown",_.xf(this,this.onKeyDownEvent));d.addEventListener("keyup",_.xf(this,this.onKeyUpEvent));d.addEventListener("mousedown",_.xf(this,this.onMouseDownEvent));_.h("desktop_keyboard_capture_keydown_killswitch")||d.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);d.addEventListener("yt-page-data-updated",_.xf(this,this.onPageUpdate))};
_.G.detached=function(){this.unlistenFromDocument(document)};
_.G.unlistenFromDocument=function(d){d.removeEventListener("keydown",_.xf(this,this.onKeyDownEvent));d.removeEventListener("keyup",_.xf(this,this.onKeyUpEvent));d.removeEventListener("mousedown",_.xf(this,this.onMouseDownEvent));_.h("desktop_keyboard_capture_keydown_killswitch")||d.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);d.removeEventListener("yt-page-data-updated",_.xf(this,this.onPageUpdate))};
_.G.ready=function(){_.Kj().addProvider({provide:_.qZ,useValue:this})};
_.G.isKeyBoardInUse=function(){return this.JSC$19883_keyboardInUse};
_.G.handleCapturedKeydownEvent=function(d){if(d.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(d)};
_.G.onMouseDownEvent=function(){this.JSC$19883_keyboardInUse=!1};
_.G.onPageUpdate=function(){if(_.h("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.h("web_shorts_keyboard_shortcut_usage_log")){_.Rc.clear();for(var d=_.q(_.nR),H=d.next();!H.done;H=d.next()){var K=_.q(H.value);H=K.next().value;K=K.next().value;K=_.l8(K);_.Rc.set(H,K);_.Ea(_.Fj(),_.so(),K)}_.Vw.clear();d=_.q(_.CR);for(H=d.next();!H.done;H=d.next())K=_.q(H.value),H=K.next().value,K=K.next().value,K=_.l8(K),_.Vw.set(H,K),_.Ea(_.Fj(),_.so(),K);_.yz(_.Fj(),_.so(),[].concat(_.ru(_.Vw.values()),
_.ru(_.Rc.values())));_.No(_.Fj(),[].concat(_.ru(_.Vw.values()),_.ru(_.Rc.values())))}};
_.G.onMiniplayerActiveChange=function(){var d;(d=_.Kj().resolve(_.Fb).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(d.document):this.unlistenFromDocument(d.document))};
_.G.ignoreKeyEvent=function(d){if(d.ctrlKey||d.altKey)if(_.h("kevlar_macro_markers_keyboard_shortcut")){if(d.keyCode!==37&&d.keyCode!==39)return!0}else return!0;var H=_.jh(d)||[];return _.O5t(H)?(_.h("web_button_or_anchor_list_item")&&Do0(H,d)&&(this.JSC$19883_keyboardInUse=!0),!0):d.defaultPrevented?(B0(d.keyCode,d.shiftKey,this.isShortsPage),!0):d.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(d):!1};
_.G.isSpacebarClick=function(d){var H=d||window.event;var K;H.composedPath&&typeof H.composedPath==="function"?K=H.composedPath():K=H.path;K&&K.length?H=K[0]:(H=H||window.event,H=H.target||H.srcElement,H.nodeType==3&&(H=H.parentNode));return H&&d.keyCode===32&&(d=H.tagName==="BUTTON"||H.tagName==="A"||H.tagName==="INPUT",H=(H=H.getAttribute("role"))&&(H==="option"||H==="button"||H.indexOf("menuitem")===0),d||H)?!0:!1};
_.G.onKeyDownEvent=function(d){if(!this.ignoreKeyEvent(d)&&(d.keyCode===191&&(d.shiftKey||d.metaKey?d.repeat!=null&&d.repeat||(this.openHotkeyDialog(),B0(d.keyCode,d.shiftKey,this.isShortsPage)):(this.focusSearchBox(),d.preventDefault())),!d.metaKey)){var H=_.Kj().resolve(_.Fb);switch(d.keyCode){case 9:this.JSC$19883_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(d);break;case 84:H.pipController.getWindow()&&window.focus();this.toggleTheaterMode(d.keyCode,d.shiftKey);break;case 73:H.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(d.keyCode,d.shiftKey);break;case 70:if(this.isShortsPage&&_.h("web_fullscreen_shorts")){_.S_v();break}this.isMiniplayerActive()?H.pipController.getWindow()&&(H.close(!0),window.focus()):this.passEventToPlayer(d);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(d.keyCode,d.shiftKey):this.closeMiniplayer(d.keyCode,d.shiftKey)||this.passEventToPlayer(d);break;case 13:d.shiftKey&&_.Kj().resolve(_.WX).activate(d);break;default:this.passEventToPlayer(d)}}};
_.G.onKeyUpEvent=function(d){if(!this.ignoreKeyEvent(d))if(_.h("web_speedmaster_spacebar_control")&&d.keyCode===32)this.handlePlayerSpaceKey(d,!0);else{var H=this.getPlayerManager();H&&(H=H.getPlayer())&&H.handleGlobalKeyUp(d.keyCode,d.shiftKey,d.ctrlKey,d.altKey,d.metaKey,d.key,d.code)}};
_.G.getPlayerManager=function(){var d=_.Kf(),H=_.Kj().resolve(_.$p(_.HI));return d&&H&&H.isOnWatch()?d:null};
_.G.passEventToPlayer=function(d,H){var K=this,c,p,g,a;return _.l(function(e){if(e.nextAddress==1){if(!_.h("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&K.isMiniplayerActive())c=_.Kj().resolve(_.Fb).getPlayerElement();else if(K.inlinePreviewIsActive){if(p=_.qo(K.hostElement,"yt-get-inline-preview-player-action"),(g=p)==null?0:g[0])c=p[0]}else c=_.Kf();return c?e.yield(c.getPlayerPromise(),3):e.jumpTo(0)}a=e.yieldResult;H?a.handleGlobalKeyUp(d.keyCode,d.shiftKey,d.ctrlKey,d.altKey,d.metaKey,
d.key,d.code):a.handleGlobalKeyDown(d.keyCode,d.shiftKey,d.ctrlKey,d.altKey,d.metaKey,d.key,d.code,d.repeat);d.keyCode!==38&&d.keyCode!==40&&B0(d.keyCode,d.shiftKey,K.isShortsPage);_.VE(e)})};
_.G.focusSearchBox=function(){_.GT(this.hostElement,"yt-focus-searchbox")};
_.G.openHotkeyDialog=function(){_.GT(this.hostElement,"yt-open-hotkey-dialog")};
_.G.isMiniplayerActive=function(){return _.Kj().resolve(_.Fb).isMiniplayerActive()};
_.G.closeMiniplayer=function(d,H){return this.isMiniplayerActive()?(_.Kj().resolve(_.Fb).close(),B0(d,H,this.isShortsPage),!0):!1};
_.G.toggleTheaterMode=function(d,H){var K=_.sQ(_.dn().getState()),c=this.getPlayerManager(),p=_.h("disable_theater_mode_keyboard")||_.Qx("START_IN_FULL_WINDOW_MODE");c&&!p&&(K=!K,_.Ko()&&_.h("external_fullscreen")&&(K=!0),_.oF(this.hostElement,"yt-toggle-theater-mode",[K]),B0(d,H,this.isShortsPage))};
_.G.toggleMiniplayer=function(d,H){var K=this.getPlayerManager();if(this.isMiniplayerActive()){var c;((c=_.Kj().resolve(_.$p(_.HI)))==null?0:c.isOnWatch())?_.Kj().resolve(_.Fb).close(!0):_.QA(_.Kj().resolve(_.Fb));B0(d,H,this.isShortsPage)}else K&&(_.oF(this.hostElement,"yt-activate-miniplayer-from-watch-action"),B0(d,H,this.isShortsPage))};
_.G.handlePlayerSpaceKey=function(d,H){var K=!!_.Kf()||this.isMiniplayerActive();K=_.h("disable_space_scroll_fix")||K;_.h("global_spacebar_pause")&&!this.isKeyBoardInUse()&&K&&(d.preventDefault(),this.passEventToPlayer(d,H))};
_.G.isPresentingTheaterMode=function(){return _.h("web_watch_enable_tm_esc_key")?_.sQ(_.dn().getState())&&!_.Ko():!1};
cu.prototype.onMiniplayerActiveChange=cu.prototype.onMiniplayerActiveChange;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],cu.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],cu.prototype,"ytdReduxBehavior",void 0);_.t([_.r({selector:_.fEi}),_.O("design:type",Boolean)],cu.prototype,"inlinePreviewIsActive",void 0);_.t([_.r({selector:_.HvD}),_.O("design:type",Boolean)],cu.prototype,"isShortsPage",void 0);
_.t([_.r({selector:_.Fv}),_.O("design:type",Boolean)],cu.prototype,"miniplayerIsActive",void 0);_.t([_.CK("miniplayerIsActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cu.prototype,"onMiniplayerActiveChange",null);_.t([_.Z({disableElementRegistration:!0,is:"yt-hotkey-manager"})],cu);_.T(cu,"yt-hotkey-manager",void 0,{mode:_.qk("kevlar_poly_si_batch_j081")?1:2});var ph=function(){var d=_.B.apply(this,arguments)||this;d.loopStateEntityKey_=null;d.playlistLoopStateEntity_=null;d.isShuffleNextPlaylist=!1;d.PLAYER_EVENTS_=new Map;d.playerListenersSetup_=!1;d.videoSkipJob_=0;d.canAutoAdvance_=!1;d.playerManager_=null;d.TEST_ONLY={};return d};
_.m(ph,_.B);_.G=ph.prototype;_.G.ready=function(){_.Kj().addProvider({provide:_.tJ,useValue:this.hostElement})};
_.G.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.G.attached=function(){document.addEventListener("yt-navigate-start",_.xf(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.xf(this,this.onYtNavigateFinish_))};
_.G.detached=function(){document.removeEventListener("yt-navigate-start",_.xf(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.xf(this,this.onYtNavigateFinish_))};
_.G.updatePlaylistEventListeners=function(d,H){H&&!this.playerListenersSetup_?(this.playerManager_=d,this.registerPlaylistEventListeners_(d)):!H&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(d))};
_.G.setPlayer=function(d){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=d};
_.G.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.G.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.G.registerPlaylistEventListeners_=function(d){var H=this;d.getPlayerPromise().then(function(K){H.playerListenersSetup_||(H.ytPlayerListenerBehavior.listenToPlayerEvents(K,H.PLAYER_EVENTS_),H.playerListenersSetup_=!0)})};
_.G.removePlaylistEventListeners_=function(d){var H=this;d.getPlayerPromise().then(function(K){H.playerListenersSetup_&&(H.ytPlayerListenerBehavior.unlistenFromPlayerEvents(K,H.PLAYER_EVENTS_),H.playerListenersSetup_=!1)})};
_.G.setPlaylistComponent=function(d){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.xf(this,this.onPlaylistYtNavigate_)),d&&(d.data&&this.playlistComponent.data&&d.data.playlistId==this.playlistComponent.data.playlistId?(d.loopOn=this.playlistComponent.loopOn,d.shuffleOn=this.playlistComponent.shuffleOn):(d.loopOn=!1,d.shuffleOn=!1),this.isShuffleNextPlaylist&&(d.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=d;this.playlistComponent.addEventListener("yt-navigate",
_.xf(this,this.onPlaylistYtNavigate_))};
_.G.setAutoplayRenderer=function(d){this.autoplayData=d};
_.G.setPlaylistData=function(d){this.currentPlaylistData_=d;_.GT(this.hostElement,"yt-playlist-data-updated");_.rs.isEmpty(d)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(d)};
_.G.setPlayerPlaybackControlData=function(d){this.playerManager_&&this.playerManager_.updatePlayerComponents(d.playlistPanelRenderer)};
_.G.getPlaylistData=function(){return this.currentPlaylistData_};
_.G.getTempData_=function(d,H){if(this.playlistComponent==null)return null;d={};this.playlistComponent.shuffleOn&&(d.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(d.loop_on=this.playlistComponent.loopOn);H&&(d.autonav="1",_.Kj().resolve(_.uV),H=_.cd(),H>0&&(d.lact=H),this.playerManager_&&(H=this.playerManager_.getPlayer())&&H.shouldSendVisibilityState()&&(H=H.getVisibilityState(),H!=0&&(d.vis=H)));_.h("enable_unknown_lact_fix_on_html5")&&(_.Kj().resolve(_.uV),d.lact=
_.cd());return d};
_.G.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.G.setLoopStateEntityKey_=function(d){var H;this.loopStateEntityKey_=((H=this.getPlaylistLoopData_(d))==null?void 0:H.playlistLoopStateEntityKey)||null};
_.G.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.G.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.G.skipVideo=function(){var d=this,H=_.h("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||H)H=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.rB(_.Xp,function(){d.onPlaylistNext();d.videoSkipJob_=0},H)};
_.G.cancelVideoSkip=function(){this.videoSkipJob_&&(_.Xp.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.G.isInBackground_=function(){var d=window.document.visibilityState;return!(!d||d=="visible")};
_.G.onPlaylistIndex_=function(d){this.playlistComponent&&(d=this.playlistComponent.data.contents[d].playlistPanelVideoRenderer.navigationEndpoint,_.GT(this.hostElement,"yt-navigate",{endpoint:d,tempData:this.getTempData_(d)}))};
_.G.onPlayerStateChange_=function(d){if(d=d==0&&this.playlistComponent&&this.canAutoAdvance_)d=_.$R.getInstance(),d=!(d.autonavState_===3?d.autonavPauseReason_&&d.autonavPauseReason_.inputBoxFocus===!0:d.autonavState_===1&&d.disabledAutonavPauseReason_&&d.disabledAutonavPauseReason_.inputBoxFocus===!0);d&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.G.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.G.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.G.navigateToAutoplayWatchEndpoint_=function(d,H,K){var c=this.playlistComponent.data.currentIndex,p=this.getNumPlayableVideos_();d=="NORMAL"&&H=="autoplayVideo"&&c+1>=p&&K||!(d=this.getVideoEndpoint_(d,H))||(K=this.getTempData_(d,K),_.GT(this.hostElement,"yt-navigate",{endpoint:d,tempData:K}))};
_.G.getNumPlayableVideos_=function(){for(var d=0,H=_.q(this.playlistComponent.data.contents||[]),K=H.next();!K.done;K=H.next())K.value.playlistPanelVideoRenderer&&(d+=1);return d};
_.G.getVideoEndpoint_=function(d,H){if(this.autoplayData&&this.autoplayData.sets)for(var K=0,c=this.autoplayData.sets.length;K<c;K++){var p=this.autoplayData.sets[K];if(p.mode==d){if(p[H])return p[H];break}}else d=new _.m1("AutoplayData is undefined in playlist manager","Mode: "+d+" endpoint: "+H),_.Jf(d)};
_.G.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.G.onPlaylistYtNavigate_=function(d){if(d.detail.endpoint){d.stopPropagation();var H=d.detail;H.tempData=this.getTempData_(d.detail.endpoint);_.GT(this.hostElement,"yt-navigate",H)}};
_.G.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.G.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.G.playlistLoopStateEntityChanged_=function(d){var H=this,K,c,p;return _.l(function(g){if(g.nextAddress==1){if(!d)return g.return();K=d.state==="PLAYLIST_LOOP_STATE_ONE";return H.playerManager_?g.yield(H.playerManager_.getPlayerPromise(),3):g.jumpTo(2)}g.nextAddress!=2&&(c=g.yieldResult,c.setLoopVideo(K));p=d.state==="PLAYLIST_LOOP_STATE_ALL";H.playlistComponent&&(H.playlistComponent.loopOn=p);_.VE(g)})};
_.G.getPlaylistLoopData_=function(d){var H,K;if(d=d==null?void 0:(H=d.playlistButtons)==null?void 0:(K=H.menuRenderer)==null?void 0:K.topLevelButtons)for(H=_.q(d),K=H.next();!K.done;K=H.next())if(K=K.value,K.playlistLoopButtonRenderer)return K.playlistLoopButtonRenderer};
_.G.getLoopStateCommand_=function(d){var H=this.getPlaylistData(),K;H=((K=this.getPlaylistLoopData_(H))==null?void 0:K.states)||[];var c;d=(c=_.M(H[d?1:2],_.wQA))==null?void 0:c.button;var p;return(p=_.M(d,_.Tz))==null?void 0:p.command};
_.G.onPlayerLoopChange_=function(d){this.playlistLoopStateEntity_&&(d?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(d=this.getLoopStateCommand_(d))&&this.ytComponentBehavior.resolveCommand(d)};
_.G.onSleepTimerSettingsChanged_=function(d){this.canAutoAdvance_=d!=="End of video"};
ph.prototype.onPlaylistLoopStateEntityChanged=ph.prototype.onPlaylistLoopStateEntityChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],ph.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.jk.YtPlayerListenerBehavior),_.O("design:type",_.vn)],ph.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],ph.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ph.prototype,"loopStateEntityKey_",void 0);
_.t([_.r({selectorArgs:["loopStateEntityKey_"],selector:_.OEh}),_.O("design:type",Object)],ph.prototype,"playlistLoopStateEntity_",void 0);_.t([_.CK("playlistLoopStateEntity_"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ph.prototype,"onPlaylistLoopStateEntityChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"yt-playlist-manager"})],ph);_.T(ph,"yt-playlist-manager",void 0,{mode:_.qk("kevlar_poly_si_batch_j081")?1:2});var GsT,oAt=function(){if(GsT!==void 0)return GsT;var d=document.createElement("template");_.P(d,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-third-party-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return GsT=d};var gt=function(){var d=_.B.apply(this,arguments)||this;d.lastCallback=null;d.getAccountLinkPromises={};d.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);d.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return d};
_.m(gt,_.B);_.G=gt.prototype;_.G.getLocation=function(){return window.location.href};
_.G.getCompletionUrl=function(){return _.dV(this.getLocation())};
_.G.containsRedirectState=function(d){return(d=_.Ly(_.h$i(d)))?(new URLSearchParams(d)).get("redirect_state")!==null:!1};
_.G.createGalConfig=function(d,H){var K=new LsO;d=K=H?this.getPopupOrRedirectSetting(K,_.Fm("LINK_API_KEY"),_.Fm("LINK_API_KEY_REDIRECT"),d):MRt(K,_.Fm("LINK_API_KEY"));d.authUser=_.Fm("SESSION_INDEX")||0;d.supportedFlows=new Set([4]);return d.build()};
_.G.getPopupOrRedirectSetting=function(d,H,K,c){this.isGalInteractionPopupMode(c)?(d.interactionMode=0,d=MRt(d,H)):(d.interactionMode=1,H=this.getCompletionUrl(),d.completionUrl=H,d=MRt(d,K));return d};
_.G.isGalInteractionPopupMode=function(d){if(this.redirectModeProviderAllowlist.has(d))switch(d){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.G.getStatusEntityKeyForProviderId=function(d){return _.kL(d+":all","accountLinkStatusEntity")};
_.G.findNestedPropValue=function(d,H){var K=!1,c=null;JSON.stringify(d,function(p,g){K||p!==H||(K=!0,c=g);return K?null:g});
return c};
_.G.findAccountLinkButtonViewModel=function(d,H){var K=null,c=!1;JSON.stringify(d,function(p,g){c||g.accountLinkStatusEntityKey!==H||g.accountLinkStatusSecondaryEntityKey||(c=!0,K=g);return c?null:g});
return K};
_.G.executeLinkingSuccessOrFailureCommands=function(d,H,K){var c=null,p;(H==null?0:(p=H.url)==null?0:p.includes("account_sharing"))?c=H==null?void 0:H.response:c=H==null?void 0:H.response;(H=this.findAccountLinkButtonViewModel(c,d))?(d=K?this.findNestedPropValue(H,"onSuccessCommand"):this.findNestedPropValue(H,"onFailureCommand"))?_.xW([d],this.hostElement):_.SD(Error("il")):_.SD(Error("jl`"+d))};
_.G.handleInitializeRequest=function(d,H){var K=this,c=bHZ(this.createGalConfig(d,!0));this.containsRedirectState(this.getLocation())?Yc5(d,c.config,c.galService).then(function(p){var g=K.getStatusEntityKeyForProviderId(d);if(p.statusCode===1)H&&K.executeLinkingSuccessOrFailureCommands(g,H,!0),p=K.getLocation().indexOf("#"),p!==-1&&window.history.pushState(null,"",K.getLocation().substring(0,p));else return H&&K.executeLinkingSuccessOrFailureCommands(g,H,!1),Promise.reject(Error(p.statusMessage))}).catch(function(p){_.Jf(p);
_.Wd("gamingAccountLinkStatusChanged",{serviceId:d,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(p)}):this.getAccountLinkPromises[d]=c.startLinkingSession({serviceId:d})};
_.G.handleAccountLinkCommand=function(d){_.M(d,ok0)&&this.handleLinkRequest(_.M(d,ok0))};
_.G.handleLinkRequest=function(d){var H=this,K=d.thirdPartyId;if(K)if(this.isGalInteractionPopupMode(K)){var c=function(){H.closeAndFire("ytd-gaming-account-link-setting-renderer",d.onFailureCommand)},p=function(){H.closeAndFire("ytd-gaming-account-link-setting-renderer",d.onSuccessCommand)};
this.lastCallback=p;this.getAccountLinkPromises[K].then(function(g){$W5(g).then(function(a){a.statusCode===1?p():c()})}).catch(function(){c()})}else this.getAccountLinkPromises[K].then(function(g){$W5(g).then(function(a){if(a.statusCode!==1)return Promise.reject(Error(a.statusMessage))})}).catch(function(g){_.Jf(g);
_.Wd("gamingAccountLinkStatusChanged",{serviceId:K,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(g)})};
_.G.closeAndFire=function(d,H){_.oF(this.hostElement,"yt-close-popup-action",[d]);H&&_.xW([H],this.hostElement)};
_.G.handleAccountUnlinkCommand=function(d){_.M(d,qqv)&&this.handleUnlinkRequest(_.M(d,qqv))};
_.G.handleUnlinkRequest=function(d){var H=this,K=d.thirdPartyId;if(K){var c=function(){H.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",d.onFailureCommand)},p=function(){H.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",d.onSuccessCommand)};
this.lastCallback=p;var g=bHZ(this.createGalConfig(K,!1));this.unlinkUserGal(g,K).then(function(a){a.statusCode===1?p():c()}).catch(function(){c()})}};
_.G.unlinkUserGal=function(d,H){return d.deleteLink(H)};
_.G.handleLogAccountLinkingEventCommand=function(d){_.h("enable_gel_log_commands")&&_.M(d,ajj)&&(d=_.M(d,ajj).event)&&_.Wd("gamingAccountLinkStatusChanged",d)};
_.H3.Object.defineProperties(gt,{template:{configurable:!0,enumerable:!0,get:function(){return oAt()}}});
_.t([_.u(_.Rm.YtOpenPopupBehavior),_.O("design:type",Object)],gt.prototype,"ytOpenPopupBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],gt.prototype,"ytActionHandlerBehavior",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-third-party-manager"})],gt);_.T(gt,"ytd-third-party-manager",function(){return oAt()},{mode:_.qk("kevlar_poly_si_batch_j081")?1:2});var qxO,aMT=function(){if(qxO!==void 0)return qxO;var d=document.createElement("template");_.P(d,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return qxO=d};var ic=function(){var d=_.B.apply(this,arguments)||this;d.currentPage=void 0;d.renderLoadingStateJobId=0;d.updatePageDataJobId=0;d.pageDisposeJobsets=new WeakMap;d.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney","yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose",
"yt-stop-old-player":"onYtStopOldPlayer"};d.shouldApplyLockupToWatchTransition=_.h("web_thumbnail_to_watch_transition");d.shouldApplySlideTransition=_.GJ("web_page_transition_type")==="slide"||_.h("enable_plj_landing_page");d.shouldApplyLearningJourneyTransition=_.h("enable_plj_landing_page");d.TEST_ONLY=void 0;return d};
_.m(ic,_.B);_.G=ic.prototype;_.G.ready=function(){var d=_.Kj();d.addProvider({provide:_.HI,useValue:this});d.addProvider({provide:_.xaN,useValue:this})};
_.G.created=function(){this.pagePool=new FLT;this.contextSwitcher=new AIj};
_.G.attached=function(){_.GT(this.hostElement,"attached");var d=_.Kj().resolve(_.$p(_.FL));d&&(this.contextSwitcher.JSC$19709_networkService_=d);this.viewTransitionManager=_.Kj().resolve(_.LW)};
_.G.getPageOffset=function(d){return d.getScrollTop()};
_.G.setPageOffset=function(d,H){try{d.setScrollTop(H)}catch(K){}};
_.G.setPageOffsetForNavigation=function(d,H){_.GT(this.hostElement,"yt-navigate-set-page-offset",{page:d,offset:H===void 0?0:H})};
_.G.pauseActiveContext=function(){var d=this.contextSwitcher;d.activeContext_&&d.activeContext_.pause()};
_.G.getModuleNameForType=function(d){return d==="watch"?_.h("kevlar_watch_fixie")?"watchFixie":_.h("kevlar_watch_grid")?"watchGrid":"watchFlexy":d==="shorts"||d==="search"?d:"browse"};
_.G.attachPage=function(d){var H,K=!_.h("pc_is_attached_ks")&&(d==null?void 0:(H=d.polymerController)==null?void 0:H.isAttached);if(!d.isAttached&&!K)try{_.Gn(this.hostElement).appendChild(d)}catch(p){var c;_.Jf(new _.m1("Error attaching page element for component",{origin:(c=this.currentPage)==null?void 0:c.is,component:d.is}))}};
_.G.setActivePage=function(d){var H=this,K=!1,c=function(){var p=H.isOnWatch(),g=H.currentPage;if(d)if(d!==H.currentPage){g&&(g.hidden=!0,g.active=!1,g.removeAttribute("role"));H.currentPage=d;var a,e=_.hc((a=H.data)==null?void 0:a.endpoint);g&&_.GT(H.hostElement,"yt-page-type-changed",{oldPageType:g.is,newPageType:d.is,newPageSubtype:e});_.AB().dispatch(_.iZ({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:d.is}));_.AB().dispatch(_.iZ({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:e||""}));d.hidden=
!1;H.attachPage(d);d.active=!0;d.setAttribute("role","main");g&&H.setPageOffsetForNavigation(d,0);_.h("kevlar_remove_page_dom_on_switch")&&!p&&g&&_.Gn(H.hostElement).removeChild(g)}else K=!0;else H.handleMissingDestinationPage(g)};
this.shouldRunBrowseTransition(this.currentPage,d)?CEj(this.viewTransitionManager,c):this.shouldRunLearningJourneyTransition(this.currentPage,d)?UOZ(this.viewTransitionManager,c):c();return K};
_.G.handleMissingDestinationPage=function(d){if(this.isColdLoadForUnknownPage(d))_.Jf(new _.m1("Cold load for unknown page"));else{var H;d=new _.m1("Unable to set active page",d?d.is:"unknown origin",(H=this.data)==null?void 0:H.endpoint);_.z5(d)}};
_.G.isColdLoadForUnknownPage=function(d){return!d&&UK(this.data)==="unknown"};
_.G.shouldRunBrowseTransition=function(d,H){return this.shouldApplySlideTransition&&(d==null?void 0:d.is)==="ytd-browse"&&(H==null?void 0:H.is)==="ytd-browse"&&d!==H};
_.G.shouldRunLearningJourneyTransition=function(d,H){return this.shouldApplyLearningJourneyTransition&&(d==null?void 0:d.is)==="ytd-browse"&&((H==null?void 0:H.is)==="ytd-watch-learning-journey"||(H==null?void 0:H.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.G.shouldRunWatchNextLoadedTransition=function(d,H){return this.viewTransitionManager&&d.is==="ytd-watch-flexy"&&H};
_.G.updatePageData=function(d){var H=this,K=this.data;this.updatePageDataJobId&&_.Xp.cancelJob(this.updatePageDataJobId);this.data=d;return new _.kr(function(c){var p=function(){d.filler?H.performDataUpdate(d,K):ucZ(function(){H.performDataUpdate(d,K)});
var k=_.OT();_.Sc(k,"cr")||k.processSignal("cr");c()},g=function(){d&&d.page==="watch"?H.updatePageDataJobId=_.rB(_.Xp,p):p()};
if(_.h("kevlar_enable_mss_page_modules_client")&&d){var a=_.Kj().resolve(_.TH),e=H.getModuleNameForType(d.page);(a=xOZ(a,[e]))?a.then(g):g()}else g()})};
_.G.isDownloadsPage=function(d){var H,K;return(d==null?void 0:(H=d.endpoint)==null?void 0:(K=H.browseEndpoint)==null?void 0:K.browseId)==="FEdownloads"};
_.G.setPlayerSyncInterval=function(d){var H;return _.l(function(K){if(K.nextAddress==1)return K.yield(_.Kj().resolve(_.Gx),2);H=K.yieldResult;H.setUpPositionSyncInterval(d);_.VE(K)})};
_.G.performDataUpdate=function(d,H){_.h("kevlar_early_popup_close")||_.oF(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var K=!d.filler;K&&(_.Fw("lps"),_.h("config_age_report_killswitch")||Hob());var c=UK(d),p,g=!1;if(_.h("kevlar_remove_page_dom_on_switch")){var a=H&&UK(H);c===a&&(p=this.getCurrentPage())}p||(p=fv(this.pagePool,c));K&&WB1(this.pagePool.elementPoolPopulator,c);K&&!this.renderLoadingStateJobId&&(g=this.setActivePage(p));if(p){a=c==="watch";var e=
c==="shorts",k=c==="learning_journey_watch";_.h("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(p);if(a||e||k)p.playerData=d.playerResponse;if(e)if(_.h("web_enable_delay_shorts_sequence_call")){d.reelWatchSequenceResponse&&(p.reelWatchSequenceResponse=d.reelWatchSequenceResponse);p.currentEndpoint=d.endpoint;var C;p.isPreviousPageShorts=!!(H==null?0:(C=H.endpoint)==null?0:C.reelWatchEndpoint);var R,V;d.cachedSequenceParams=((R=d.endpoint)==null?void 0:(V=R.reelWatchEndpoint)==
null?void 0:V.sequenceParams)||d.cachedSequenceParams||(H==null?void 0:H.cachedSequenceParams);var U,L;d.cachedSequenceProvider=((U=d.endpoint)==null?void 0:(L=U.reelWatchEndpoint)==null?void 0:L.sequenceProvider)||d.cachedSequenceProvider||(H==null?void 0:H.cachedSequenceProvider);p.cachedSequenceParams=d.cachedSequenceParams;p.cachedSequenceProvider=d.cachedSequenceProvider}else{d.reelWatchSequenceResponse?p.reelWatchSequenceResponse=d.reelWatchSequenceResponse:d.cachedReelWatchSequenceResponse?
p.reelWatchSequenceResponse=d.cachedReelWatchSequenceResponse:_.h("web_enable_cached_reel_sequence_fix")&&p.cachedReelWatchSequenceResponse&&!p.reelWatchSequenceResponse&&(p.reelWatchSequenceResponse=p.cachedReelWatchSequenceResponse);p.currentEndpoint=d.endpoint;var w;p.isPreviousPageShorts=!!(H==null?0:(w=H.endpoint)==null?0:w.reelWatchEndpoint);d.cachedReelWatchSequenceResponse=d.reelWatchSequenceResponse||d.cachedReelWatchSequenceResponse||(H==null?void 0:H.cachedReelWatchSequenceResponse);p.cachedReelWatchSequenceResponse=
d.cachedReelWatchSequenceResponse}C=this.isDownloadsPage(d);R=this.isDownloadsPage(H);C&&!R?this.setPlayerSyncInterval(6E5):!C&&R&&this.setPlayerSyncInterval();_.h("block_all_player_prefetch_requests")||this.preparePrefetchRequest(d,p,K,a,e,k);hJt(_.Kj().resolve(_.Fb),H,d);_.p_(_.Kj().resolve(_.uV));_.h("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(p);K?(K=typeof p.loadPage,K==="function"?(p.pageContext=jL1(this.contextSwitcher,p,p.data!==d.response),K=function(){p.loadPage(d.response)},
this.shouldApplySlideTransition&&p.is==="ytd-browse"&&g&&(c==="learning"||this.isDifferentBrowseId(d==null?void 0:d.endpoint,H==null?void 0:H.endpoint))?CEj(this.viewTransitionManager,K):this.shouldRunWatchNextLoadedTransition(p,g)?VfZ(this.viewTransitionManager,K):K()):_.Xi(new _.m1("b/38014653 ",[c,
p.is,p.nodeName,K,p.isAttached,H&&UK(H),this.hostElement.children.length])),_.Fw("pdl")):(p.hidden=!0,d.response.filler=!0,p.data=d.response,this.attachPage(p));_.GT(this.hostElement,"yt-page-data-updated",{pageType:c})}_.mf(_.Xp,function(){_.h("logging_avoid_blocking_during_navigation")&&_.vMi().transition("none");var W=emb(),J=p;if(d){var F=T40(d),Y=Q1U(d),A;a:{if(d.playerResponse){var E=d.playerResponse,N;if((A=E.auxiliaryUi)==null?0:(N=A.messageRenderers)==null?0:N.upsellDialogRenderer){A=E.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(d.response&&(A=d.response,(E=A.overlay)==null?0:E.upsellDialogRenderer)){A=A.overlay.upsellDialogRenderer;break a}A=void 0}var y;var v;N=(y=d.playerResponse)==null?void 0:(v=y.auxiliaryUi)==null?void 0:v.messageRenderers;y=(N==null?void 0:N.enforcementMessageViewModel)||(N==null?void 0:N.bkaEnforcementMessageViewModel);y=(y==null?void 0:y.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?y:void 0;var el;a:{if(d.response&&(v=d.response,(el=v.overlay)==null?0:el.commandWrapperPromoRenderer)){el=
v.overlay.commandWrapperPromoRenderer;break a}el=void 0}lF1(W,F,Y,A,y,el,J)}})};
_.G.preparePrefetchRequest=function(d,H,K,c,p,g){var a,e,k,C,R,V,U,L,w,W,J,F,Y,A,E;return _.l(function(N){if(N.nextAddress==1)return!K||!(c||p||g)||_.h("kevlar_disable_background_prefetch")&&_.Y2(_.dAM)()===0?N.return():(a=_.$6(H))?N.yield(a.getPlayerPromise(),2):N.return();e=N.yieldResult;k=_.Kj().resolve(_.$p(_.FL));if(!k)return N.return();if(p)return C=_.jn(_.wy),Z85(C,(R=d.endpoint)==null?void 0:R.reelWatchEndpoint,H.reelWatchSequenceResponse,e,k),N.return();L=(V=d.response)==null?void 0:(U=V.responseContext)==
null?void 0:U.webResponseContextExtensionData;if(!L)return N.return();Y=(w=d.response)==null?void 0:(W=w.contents)==null?void 0:(J=W.twoColumnWatchNextResults)==null?void 0:(F=J.autoplay)==null?void 0:F.autoplay;A=_.Kj().resolve(_.tJ);E=_.jn(_.wy);TE0(E,L,e,k,A,Y);_.VE(N)})};
_.G.movePlayerToWatch=function(d){var H=this,K,c;return _.l(function(p){K=fv(H.pagePool,"watch");c=K.getPlayerContainer();d.appendTo(c);_.VE(p)})};
_.G.movePlayerToShorts=function(d){var H=this,K,c,p;return _.l(function(g){K=fv(H.pagePool,"shorts");c=K.getPlayerContainer();(p=d)==null||p.appendTo(c,void 0,!0);_.VE(g)})};
_.G.getPlayerFromWatch=function(){var d=fv(this.pagePool,"watch");return _.$6(d)};
_.G.getPlayerFromShorts=function(){var d=fv(this.pagePool,"shorts");return _.$6(d)};
_.G.startLoadingWatch=function(){var d=this,H=fv(this.pagePool,"watch");this.renderLoadingStateJobId?(_.Xp.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.h("web_watch_transition_enable_start_loading_watch_callsite")?RJZ(this.viewTransitionManager,function(){d.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(H)};
_.G.startLoadingShorts=function(){var d=fv(this.pagePool,"shorts");this.setActivePage(d)};
_.G.startLoadingLearningJourney=function(){var d=fv(this.pagePool,"learning_journey_watch");this.setActivePage(d)};
_.G.getCurrentPage=function(){return this.currentPage};
_.G.getDestinationPageType=function(){return this.destinationPageType};
_.G.getCurrentData=function(){return this.data};
_.G.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.G.isOnShorts=function(){var d;return((d=this.currentPage)==null?void 0:d.is)==="ytd-shorts"};
_.G.isWatchPage=function(d){return!!d&&(d.is==="ytd-watch-flexy"||d.is==="ytd-watch-fixie"||d.is==="ytd-watch-grid")};
_.G.preparePage=function(d,H){var K=this,c=function(){var a=K.pagePool.preparePage(d,K.currentPage,H);a&&K.attachPage(a)},p=function(a){_.sD(a,H);
_.Jf(a)};
if(_.h("kevlar_enable_mss_page_modules_client")){var g=this.getModuleNameForType(d);if(g=xOZ(_.Kj().resolve(_.TH),[g])){g.then(c.bind(this)).catch(p.bind(this));return}}try{c()}catch(a){p(a)}};
_.G.lazyPrepareCriticalPages=function(d,H){d=_.hc(H)||d;_.h("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(d).then(this.maybePrepareWatchPage.bind(this,d)):this.maybePrepareWatchPage(d)};
_.G.maybePrepareWatchPage=function(d){d!=="watch"&&_.mf(_.Xp,this.preparePage.bind(this,"watch"))};
_.G.downloadPageModules=function(d){d=this.getModuleNameForType(d);var H=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);H.delete(d);var K=_.Kj().resolve(_.TH);K.JSC$18461_loadModules(d);return K.JSC$18461_loadModules.apply(K,_.ru(H))};
_.G.renderPageLoadingState=function(d,H){this.preparePage(d,H);var K=fv(this.pagePool,d);K.loadingData&&(K.loadingData.endpoint=H);K.loading=!0;this.setActivePage(K);d!=="watch"&&d!=="learning_journey_watch"||_.GT(this.hostElement,"yt-guide-close")};
_.G.prepareForNavigation=function(d,H){var K=this;if(this.currentPage&&this.data){var c=_.hc(H)||d;this.destinationPageType=c;UK(this.data)==c&&_.GT(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((d==="watch"||d==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.Xp.cancelJob(this.renderLoadingStateJobId);_.Kj().resolve(_.Fb).deactivate(H);_.mR(_.Xp,function(){var g=K.viewTransitionManager,a=K.currentPage;
if(g.isLockupToWatchTransitionEnabled&&g.isLockupThumbnailRegistrationEnabled&&a)if(g.registeredLockupThumbnail)g.lockupThumbnailRegisteredFromWatchEndpoint&&_.Jf(new _.m1("Lockup thumbnail already registered from watch endpoint."));else{a:{var e=_.M(H,_.AP);if(e==null?0:e.videoId){var k="yt-lockup-view-model ."+_.g9C(e.videoId)+" yt-thumbnail-view-model";a=a.querySelectorAll(k);if(a.length===1){e=a[0];break a}a.length>1?_.Jf(new _.m1("Multiple LockupViewModel thumbnails found for videoId: "+e.videoId+
". Selector: "+k)):_.h("web_thumbnail_to_watch_transition_debug")&&_.Jf(new _.m1("No LockupViewModel thumbnail found for videoId: "+e.videoId+". Selector: "+k))}e=void 0}e&&(g.registeredLockupThumbnail=e,g.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.t2O(g,e))}});
var p=this.data;this.renderLoadingStateJobId=_.mR(_.Xp,function(){RJZ(K.viewTransitionManager,function(){if(K.data!=p){var g=fv(K.pagePool,d);K.setActivePage(g)}else K.renderPageLoadingState(d,H);K.renderLoadingStateJobId=0})},150)}};
_.G.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var d=new _.iq(1);this.currentPage.pageDisposeJobs.forEach(function(H){_.Gm(d,H)});
this.pageDisposeJobsets.set(this.currentPage,d)}};
_.G.flushPageDisposeJobset=function(d){var H=this.pageDisposeJobsets.get(d);H&&(H.flushJobs(),this.pageDisposeJobsets.delete(d))};
_.G.onYtStopOldPlayer=function(d,H){H=H===void 0?!1:H;var K,c=_.o5("kevlar_new_stop_old_player_logic_pages");if(_.h("kevlar_check_current_page_on_stop_old_player")&&(c.length===0||this.currentPage&&c.includes(this.currentPage.is)))if(this.data&&(K=UK(this.data)),UK(d)===K&&this.currentPage&&UK(this.currentPage.data)!==K)var p=_.$6(this.currentPage);else K=UK(this.data),p=fv(this.pagePool,K),p=_.$6(p);else this.data&&(K=UK(this.data),p=fv(this.pagePool,K),p=_.$6(p));if(p)if(d=UK(d),c=fv(this.pagePool,
d),c=_.$6(c),p==c)H&&!_.h("kevlar_disable_preemptive_player_reset")&&p.resetForNewPlayback();else if(H=K==="watch"&&d!=="watch",!H||d==="shorts"||_.hmg()&&!fQO(this.data)&&d!=="yts-products"&&d!="mini_app"&&d!="playables")K=_.Kj().resolve(_.Fb),H&&K.isMiniplayerActive()&&K.pipController.getWindow()||p.stop()};
_.G.isDifferentBrowseId=function(d,H){d=_.M(d,_.Lm);H=_.M(H,_.Lm);return(d==null?void 0:d.browseId)!==(H==null?void 0:H.browseId)};
_.H3.Object.defineProperties(ic,{template:{configurable:!0,enumerable:!0,get:function(){return aMT()}}});
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],ic.prototype,"ytActionHandlerBehavior",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-page-manager"})],ic);_.T(ic,"ytd-page-manager",function(){return aMT()},{mode:_.qk("kevlar_poly_si_batch_j081")?1:2});var lMT;var G0=function(){var d=_.B.apply(this,arguments)||this;d.useListItemStyles=_.h("web_list_item_style_for_menu_items");d.systemIcons=_.h("kevlar_system_icons");return d};
_.m(G0,_.B);_.G=G0.prototype;_.G.ready=function(){this.hostElement.addEventListener("tap",_.xf(this,this.onEndpointTapExtra))};
_.G.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.G.onFocus=function(){var d;(d=_.Gn(this.hostElement).querySelector("tp-yt-paper-item"))==null||d.focus()};
_.G.onEndpointTapExtra=function(d){_.GT(this.hostElement,"iron-activate");var H=this.data.navigationEndpoint;H&&_.M(H,_.rpF)&&(d.stopPropagation(),_.l5(this.hostElement,[H],this.hostElement))};
_.G.computeIcon=function(d){return d&&d.iconType?_.kv(d.iconType):""};
_.G.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.G.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.G.forceUpdateStylesOnLegacyBrowsers=function(){_.h("kevlar_legacy_browsers")&&_.eO(this.hostElement)};
G0.prototype.forceUpdateStylesOnLegacyBrowsers=G0.prototype.forceUpdateStylesOnLegacyBrowsers;G0.prototype.onFocus=G0.prototype.onFocus;_.t([_.u(_.Ke),_.O("design:type",Object)],G0.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(_.O2X.YtConditionalRendererBehavior),_.O("design:type",Object)],G0.prototype,"ytConditionalRendererBehavior",void 0);_.t([_.u(_.VV.YtEndpointBehavior),_.O("design:type",Object)],G0.prototype,"ytEndpointBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],G0.prototype,"data",void 0);_.t([_.r({computed:"computeIcon(data.icon)",value:""}),_.O("design:type",String)],G0.prototype,"icon",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],G0.prototype,"useIcons",void 0);_.t([_.r({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.O("design:type",Boolean)],G0.prototype,"hasSeparator",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],G0.prototype,"useListItemStyles",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],G0.prototype,"systemIcons",void 0);_.t([_.nK("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],G0.prototype,"onFocus",null);_.t([_.CK("useIcons","hasSeparator"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],G0.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.T(G0,"ytd-menu-navigation-item-renderer",function(){if(lMT===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-navigation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!hidden]]" class="style-scope ytd-menu-navigation-item-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-menu-navigation-item-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" tabindex="-1">\n    <tp-yt-paper-item aria-label$="[[data.accessibility.accessibilityData.label]]" disabled="[[data.isDisabled]]" class="style-scope ytd-menu-navigation-item-renderer">\n      <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-formatted-string>\n    </tp-yt-paper-item>\n  </a>\n</template>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);lMT=d}d=lMT;return d},{mode:1});var eUT;var ksS=_.AF(_.Vz("DOWNLOAD",{},"Download")),xEU=_.AF(_.Vz("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),nAg=_.AF(_.Vz("RETRY",{},"Retry")),CNg=_.AF(_.Vz("PAUSE_DOWNLOADING",{},"Pause downloading")),RUZ=_.AF(_.Vz("RESUME_DOWNLOAD",{},"Resume download")),of=function(){var d=_.B.apply(this,arguments)||this;d.primaryText=ksS;d.primaryIconType="OFFLINE_DOWNLOAD";d.hasSecondaryContent=!1;d.hasSeparator=!1;d.transferState="TRANSFER_STATE_UNKNOWN";d.isVideoDeletedByUser=!1;d.isHidden=!1;d.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return d};
_.m(of,_.B);_.G=of.prototype;_.G.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.G.onFocus=function(){this.primaryEntry.focus()};
_.G.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.G.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.G.getRemoveAction=function(){return"ACTION_REMOVE"};
_.G.sendOfflineAction=function(d){var H=this.data.serviceEndpoint;if(H){var K=_.M(H,_.Cf);K&&d&&(K.action=d);this.ytComponentBehavior.resolveCommand(H)}};
_.G.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=ksS,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=ksS;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=nAg;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=xEU;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=RUZ;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=xEU;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
CNg;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=xEU;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=xEU;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=ksS,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.G.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.G.isSecondaryEntryHidden=function(d,H){return d?!0:!H};
_.G.computeHasSeparator=function(){var d;return!((d=this.data)==null||!d.hasSeparator)};
of.prototype.showHideButton=of.prototype.showHideButton;of.prototype.onTransferStateChange=of.prototype.onTransferStateChange;of.prototype.onFocus=of.prototype.onFocus;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],of.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],of.prototype,"ytComponentBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],of.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],of.prototype,"primaryText",void 0);_.t([_.r(),_.O("design:type",String)],of.prototype,"primaryIconType",void 0);_.t([_.r(),_.O("design:type",String)],of.prototype,"primaryAction",void 0);_.t([_.r(),_.O("design:type",Object)],of.prototype,"secondaryText",void 0);_.t([_.r(),_.O("design:type",String)],of.prototype,"secondaryIconType",void 0);
_.t([_.r(),_.O("design:type",String)],of.prototype,"secondaryAction",void 0);_.t([_.r(),_.O("design:type",Object)],of.prototype,"hasSecondaryContent",void 0);_.t([_.r({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.O("design:type",Object)],of.prototype,"hasSeparator",void 0);_.t([_.r({selector:_.QO,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.O("design:type",String)],of.prototype,"transferState",void 0);
_.t([_.r({selector:_.ktl,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.O("design:type",Object)],of.prototype,"isVideoDeletedByUser",void 0);_.t([_.r(),_.O("design:type",Object)],of.prototype,"isHidden",void 0);_.t([_.r({selector:_.isF,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.O("design:type",Object)],of.prototype,"offlineabilityState",void 0);_.t([_.VP("#primary-entry"),_.O("design:type",Object)],of.prototype,"primaryEntry",void 0);
_.t([_.nK("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],of.prototype,"onFocus",null);_.t([_.Mr("transferState","isVideoDeletedByUser"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],of.prototype,"onTransferStateChange",null);_.t([_.Mr("offlineabilityState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],of.prototype,"showHideButton",null);
_.T(of,"ytd-menu-service-item-download-renderer",function(){if(eUT===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-download-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<tp-yt-paper-item id="primary-entry" hidden="[[isHidden]]" on-tap="onPrimaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[primaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[primaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n<tp-yt-paper-item id="secondary-entry" hidden="[[isSecondaryEntryHidden(isHidden, hasSecondaryContent)]]" on-tap="onSecondaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[secondaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[secondaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);eUT=d}d=eUT;return d},{mode:1});var Vwj;var qB=function(){var d=_.B.apply(this,arguments)||this;d.useIcons=!1;d.systemIcons=_.h("kevlar_system_icons");d.useListItemStyles=_.h("web_list_item_style_for_menu_items");return d};
_.m(qB,_.B);_.G=qB.prototype;_.G.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.G.onFocus=function(){var d;(d=_.Gn(this.hostElement).querySelector("tp-yt-paper-item"))==null||d.focus()};
_.G.onTap=function(){_.qo(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var d=this.data.serviceEndpoint,H=this.data.command;if(d){var K,c=(K=this.data)==null?void 0:K.trackingParams;K=!!_.M(d,_.JQ0);c&&K&&_.dn().dispatch(_.iZ({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:c}}));this.ytComponentBehavior.resolveCommand(d)||_.Kj().resolve(_.cb).resolveCommand(d,{form:{element:this.hostElement}})}H&&(this.ytComponentBehavior.resolveCommand(H)||_.l5(this.hostElement,
[H],this.hostElement))};
_.G.computeIcon=function(d){return d&&d.iconType?_.kv(d.iconType):""};
_.G.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.G.computeHasSeparator=function(){var d;return!((d=this.data)==null||!d.hasSeparator)};
_.G.forceUpdateStylesOnLegacyBrowsers=function(){_.h("kevlar_legacy_browsers")&&_.eO(this.hostElement)};
_.G.computeIsSelected=function(){var d;return!((d=this.data)==null||!d.isSelected)};
qB.prototype.forceUpdateStylesOnLegacyBrowsers=qB.prototype.forceUpdateStylesOnLegacyBrowsers;qB.prototype.onTap=qB.prototype.onTap;qB.prototype.onFocus=qB.prototype.onFocus;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],qB.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Ke),_.O("design:type",Object)],qB.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],qB.prototype,"ytComponentBehavior",void 0);
_.t([_.u(_.O2X.YtConditionalRendererBehavior),_.O("design:type",Object)],qB.prototype,"ytConditionalRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],qB.prototype,"data",void 0);_.t([_.r({computed:"computeIcon(data.icon)",value:""}),_.O("design:type",String)],qB.prototype,"icon",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],qB.prototype,"useIcons",void 0);
_.t([_.r({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.O("design:type",Boolean)],qB.prototype,"hasSeparator",void 0);_.t([_.r({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.O("design:type",Boolean)],qB.prototype,"isSelected",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],qB.prototype,"systemIcons",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],qB.prototype,"useListItemStyles",void 0);
_.t([_.nK("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qB.prototype,"onFocus",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],qB.prototype,"onTap",null);_.t([_.CK("useIcons","hasSeparator"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qB.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.T(qB,"ytd-menu-service-item-renderer",function(){if(Vwj===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item disabled="[[data.isDisabled]]" class="style-scope ytd-menu-service-item-renderer">\n  <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-service-item-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-menu-service-item-renderer">\n  </ytd-badge-supported-renderer>\n</tp-yt-paper-item>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);Vwj=d}d=Vwj;return d},{mode:2});var UEU;var af=function(){return _.B.apply(this,arguments)||this};
_.m(af,_.B);_.G=af.prototype;_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.onDataChanged=function(){var d=this;_.vV(this,function(){d.postbox.openDialog();d.focus();_.GT(d.hostElement,"yt-refit")})};
_.G.focus=function(){this.postbox.focus()};
_.G.closePopup=function(){_.oF(this.hostElement,"yt-close-popup-action")};
_.G.onYtCommentboxDismiss=function(){this.closePopup()};
af.prototype.onYtCommentboxDismiss=af.prototype.onYtCommentboxDismiss;af.prototype.onDataChanged=af.prototype.onDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],af.prototype,"data",void 0);_.t([_.r({value:function(){return _.Vz("SBOX_INAPPROPRIATE_CANCEL")}}),
_.O("design:type",String)],af.prototype,"closeButtonAriaLabel",void 0);_.t([_.VP("#postbox"),_.O("design:type",Object)],af.prototype,"postbox",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],af.prototype,"onDataChanged",null);_.t([_.nK("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],af.prototype,"onYtCommentboxDismiss",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],af);
_.T(af,"ytd-backstage-post-dialog-popup-renderer",function(){if(UEU!==void 0)return UEU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-bar" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div id="title" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    [[getSimpleString(data.dialogRenderer.backstagePostDialogRenderer.title)]]\n  </div>\n  <yt-icon-button id="close-panel-icon" aria-label$="[[closeButtonAriaLabel]]" on-tap="closePopup" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <yt-icon class="remove-option style-scope ytd-backstage-post-dialog-popup-renderer" icon="yt-icons:close"></yt-icon>\n  </yt-icon-button>\n</div>\n<ytd-backstage-post-dialog-renderer id="postbox" data="[[data.dialogRenderer.backstagePostDialogRenderer]]" in-popup-container="" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div slot="repost-preview" hidden="[[!data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <ytd-post-renderer data="[[data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    </ytd-post-renderer>\n  </div>\n</ytd-backstage-post-dialog-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return UEU=d},{mode:1});var hUS;var lc=function(){return _.B.apply(this,arguments)||this};
_.m(lc,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],lc.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],lc);
_.T(lc,"ytd-sender-id-section-renderer",function(){if(hUS!==void 0)return hUS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
return hUS=d},{mode:1});var LDv;var MwO;var mEU;var eH=function(){return _.B.apply(this,arguments)||this};
_.m(eH,_.B);eH.prototype.closePopup=function(){_.oF(this.hostElement,"yt-close-popup-action")};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],eH.prototype,"data",void 0);_.t([_.ZV({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],eH);
_.T(eH,"yt-community-post-section-renderer",function(){if(mEU===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-community-post-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_community_post_section_renderer.yt.community.post.section.renderer.css.js--\x3e<div id="title" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.title)]]</div>\n<div class="style-scope yt-community-post-section-renderer">\n  <yt-button-renderer id="post-button" data="[[data.postButton.buttonRenderer]]" on-tap="closePopup" class="style-scope yt-community-post-section-renderer">\n  </yt-button-renderer>\n</div>\n<div id="subtitle" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.subtitle)]]</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;MwO===void 0&&(MwO=document.createElement("template"));var c=MwO;K.call(H,c.content.cloneNode(!0),d.content.firstChild);mEU=d}d=mEU;return d},{mode:2});var w20;var PNT;var uYg;var IM0;var ryZ;var WDZ;var kh=function(){return _.B.apply(this,arguments)||this};
_.m(kh,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],kh.prototype,"data",void 0);_.t([_.ZV({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],kh);
_.T(kh,"yt-share-start-time-with-context-renderer",function(){if(WDZ===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-start-time-with-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_start_time_with_context_renderer.yt.share.start.time.with.context.renderer.css.js--\x3e<div id="start-time-title" class="style-scope yt-share-start-time-with-context-renderer"><yt-formatted-string aria-label$="[[getSimpleString(data.title)]]" text="[[data.title]]" class="style-scope yt-share-start-time-with-context-renderer"></yt-formatted-string></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;ryZ===void 0&&(ryZ=document.createElement("template"));var c=ryZ;K.call(H,c.content.cloneNode(!0),d.content.firstChild);WDZ=d}d=WDZ;return d},{mode:2});var xh=function(){return _.B.apply(this,arguments)||this};
_.m(xh,_.B);xh.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],xh.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],xh.prototype,"data",void 0);_.t([_.ZV({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],xh);
_.T(xh,"yt-share-panel-title-v15-renderer",function(){if(IM0===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-title-v15-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_title_v15_renderer.yt.share.panel.title.v15.renderer.css.js--\x3e<h2 id="title" class="style-scope yt-share-panel-title-v15-renderer">[[getSimpleString(data.title)]]</h2>\n<div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-share-panel-title-v15-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;uYg===void 0&&(uYg=document.createElement("template"));var c=uYg;K.call(H,c.content.cloneNode(!0),d.content.firstChild);IM0=d}d=IM0;return d},{mode:2});var nh=function(){return _.B.apply(this,arguments)||this};
_.m(nh,_.B);nh.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],nh.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],nh.prototype,"data",void 0);_.t([_.ZV({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],nh);
_.T(nh,"yt-share-panel-header-renderer",function(){if(PNT===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_header_renderer.yt.share.panel.header.renderer.css.js--\x3e<div id="community-post" class="style-scope yt-share-panel-header-renderer"></div>\n<div id="title-bar" class="style-scope yt-share-panel-header-renderer">\n  <div id="title" class="style-scope yt-share-panel-header-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;w20===void 0&&(w20=document.createElement("template"));var c=w20;K.call(H,c.content.cloneNode(!0),d.content.firstChild);PNT=d}d=PNT;return d},{mode:2});var B$g;var zUO;var Ch=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-open-popup-action":"onOpen"};return d};
_.m(Ch,_.B);_.G=Ch.prototype;_.G.attached=function(){this.onOpen()};
_.G.updateTimeSecs=function(d){this.currentTimeSecs=d};
_.G.computeTimeString=function(d){d=d.toString();var H=Math.floor(Number(d)/3600),K=Math.floor(Number(d)%3600%60);return(H>0?H+":":"")+_.dv(Math.floor(Number(d)%3600/60),H>0?2:1)+":"+_.dv(K,2)};
_.G.computeTimeStringA11y=function(d){d=_.nC5({seconds:d});var H=d.hours===void 0?0:d.hours,K=d.minutes===void 0?0:d.minutes,c=d.seconds===void 0?0:d.seconds;d=[];if(H>0){var p=suZ().format({hours:H});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.SG)||H>9999)p=p.replace(H.toString(),_.C91(H)),_.SG==="km"&&(p=p.replace(".",","));d.push(p)}K>0&&d.push(suZ().format({minutes:K}));c>0&&d.push(suZ().format({seconds:c}));H="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");K=_.SG==
"am"?"{0}\u1363 ":_.SG=="fa"?"{0}\u060c\u200f ":_.SG=="my"?"{0} - ":_.SG=="ne"?"{0},":_.SG=="th"?"{0} ":_.SG=="ur"?"{0}\u060c ":_.SG=="ar"||_.SG=="ar-XB"?"{0} \u0648":_.SG=="ja"||_.SG=="zh-CN"||_.SG=="zh-HK"||_.SG=="zh-TW"?"{0}\u3001":"{0}, ";c=_.SG=="am"?"\u1363 ":_.SG=="fa"?"\u060c\u200f ":_.SG=="my"?" - ":_.SG=="th"?" ":_.SG=="ur"?"\u060c ":_.SG=="ar"||_.SG=="ar-XB"?" \u0648":_.SG=="ja"||_.SG=="zh-CN"||_.SG=="zh-HK"||_.SG=="zh-TW"?"\u3001":", ";p=_.SG=="am"?" \u12a5\u1293 {0}":_.SG=="as"?" \u0986\u09f0\u09c1 {0}":
_.SG=="az"?" v\u0259 {0}":_.SG=="bn"?" \u098f\u09ac\u0982 {0}":_.SG=="cs"?" a\u00a0{0}":_.SG=="de"?" und {0}":_.SG=="el"?" \u03ba\u03b1\u03b9 {0}":_.SG=="eu"?" eta {0}":_.SG=="fa"?"\u060c \u0648 {0}":_.SG=="fil"?", at {0}":_.SG=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.SG=="hi"?", \u0914\u0930 {0}":_.SG=="hu"?" \u00e9s {0}":_.SG=="hy"?" \u0587 {0}":_.SG=="id"?", dan {0}":_.SG=="iw"?" \u05d5-{0}":_.SG=="ja"?"\u3001{0}":_.SG=="ka"?" \u10d3\u10d0 {0}":_.SG=="km"?" \u1793\u17b7\u1784 {0}":_.SG=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.SG=="ko"?" \ubc0f {0}":_.SG=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.SG=="lt"?" ir {0}":_.SG=="lv"?" un {0}":_.SG=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.SG=="mr"?" \u0906\u0923\u093f {0}":_.SG=="ms"?" dan {0}":_.SG=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.SG=="ne"?" \u0930 {0}":_.SG=="or"?", \u0b13 {0}":_.SG=="pa"?" \u0a05\u0a24\u0a47 {0}":_.SG=="ro"?" \u0219i {0}":_.SG=="si"?", \u0dc3\u0dc4 {0}":_.SG=="sk"?" a {0}":_.SG=="sl"?" in {0}":_.SG=="sq"?" dhe {0}":_.SG=="sv"?" och {0}":
_.SG=="sw"?" na {0}":_.SG=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.SG=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.SG=="th"?" \u0e41\u0e25\u0e30{0}":_.SG=="tr"?" ve {0}":_.SG=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.SG=="uz"?" va {0}":_.SG=="vi"?" v\u00e0 {0}":_.SG=="zh-HK"?"\u53ca{0}":_.SG=="zu"?", ne-{0}":_.SG=="af"||_.SG=="nl"?" en {0}":_.SG=="ar"||_.SG=="ar-XB"?" \u0648{0}":_.SG=="be"||_.SG=="uk"?" \u0456 {0}":_.SG=="en-GB"||_.SG=="en-IN"?" and {0}":_.SG=="en"||_.SG=="en-XA"?
", and {0}":_.SG=="et"||_.SG=="fi"?" ja {0}":_.SG=="fr"||_.SG=="fr-CA"?" et {0}":_.SG=="zh-CN"||_.SG=="zh-TW"?"\u548c{0}":_.SG=="da"||_.SG=="is"||_.SG=="no"?" og {0}":_.SG=="es"||_.SG=="es-419"||_.SG=="es-US"?" y {0}":_.SG=="kk"||_.SG=="lo"||_.SG=="mn"?", {0}":_.SG=="bg"||_.SG=="mk"||_.SG=="ru"||_.SG=="sr"?" \u0438 {0}":_.SG=="gl"||_.SG=="it"||_.SG=="pt-BR"||_.SG=="pt-PT"?" e {0}":" i {0}";var g=_.SG=="am"?"{0} \u12a5\u1293 {1}":_.SG=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.SG=="az"?"{0} v\u0259 {1}":
_.SG=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.SG=="de"?"{0} und {1}":_.SG=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.SG=="eu"?"{0} eta {1}":_.SG=="fa"?"{0} \u0648 {1}":_.SG=="fil"?"{0} at {1}":_.SG=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.SG=="hi"?"{0} \u0914\u0930 {1}":_.SG=="hu"?"{0} \u00e9s {1}":_.SG=="hy"?"{0} \u0587 {1}":_.SG=="iw"?"{0} \u05d5-{1}":_.SG=="ja"?"{0}\u3001{1}":_.SG=="ka"?"{0} \u10d3\u10d0 {1}":_.SG=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.SG=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.SG=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.SG=="ko"?"{0} \ubc0f {1}":_.SG=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.SG=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.SG=="lt"?"{0} ir {1}":_.SG=="lv"?"{0} un {1}":_.SG=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.SG=="mn"?"{0}, {1}":_.SG=="mr"?"{0} \u0906\u0923\u093f {1}":_.SG=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.SG=="ne"?"{0} \u0930 {1}":_.SG=="or"?"{0} \u0b13 {1}":_.SG=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.SG=="ro"?"{0} \u0219i {1}":_.SG==
"si"?"{0} \u0dc3\u0dc4 {1}":_.SG=="sl"?"{0} in {1}":_.SG=="sq"?"{0} dhe {1}":_.SG=="sv"?"{0} och {1}":_.SG=="sw"?"{0} na {1}":_.SG=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.SG=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.SG=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.SG=="tr"?"{0} ve {1}":_.SG=="ur"?"{0} \u0627\u0648\u0631 {1}":_.SG=="uz"?"{0} va {1}":_.SG=="vi"?"{0} v\u00e0 {1}":_.SG=="zh-HK"?"{0}\u53ca{1}":_.SG=="zu"?"{0} ne-{1}":_.SG=="af"||_.SG=="nl"?"{0} en {1}":_.SG=="ar"||_.SG==
"ar-XB"?"{0} \u0648{1}":_.SG=="be"||_.SG=="uk"?"{0} \u0456 {1}":_.SG=="cs"||_.SG=="sk"?"{0} a\u00a0{1}":_.SG=="et"||_.SG=="fi"?"{0} ja {1}":_.SG=="fr"||_.SG=="fr-CA"?"{0} et {1}":_.SG=="id"||_.SG=="ms"?"{0} dan {1}":_.SG=="zh-CN"||_.SG=="zh-TW"?"{0}\u548c{1}":_.SG=="da"||_.SG=="is"||_.SG=="no"?"{0} og {1}":_.SG=="es"||_.SG=="es-419"||_.SG=="es-US"?"{0} y {1}":_.SG=="bg"||_.SG=="mk"||_.SG=="ru"||_.SG=="sr"?"{0} \u0438 {1}":_.SG=="en"||_.SG=="en-GB"||_.SG=="en-IN"||_.SG=="en-XA"?"{0} and {1}":_.SG==
"gl"||_.SG=="it"||_.SG=="pt-BR"||_.SG=="pt-PT"?"{0} e {1}":"{0} i {1}";_.SG==="sq"?(p=p.replace("dhe","e"),g=g.replace("dhe","e")):_.SG==="th"?(c=c.replace("{0}"," {0}"),g=g.replace("{0}","{0} "),g=g.replace("{1}"," {1}")):_.SG==="ne"?c=",":_.SG==="zh-CN"?c="":H.includes(_.SG)&&(c=" ");return d.length<2?d.join(""):"am ar bg bs ca cs da es es-419 es-US eu fa fi fr-CA fr gl gu hi hr hu hy is it lt lv mk my no nl pl pt-BR pt-PT ro si sl sq sr-Latn sr sw th uk".split(" ").includes(_.SG)?d.length===2?
g.replace("{0}",d[0]).replace("{1}",d[1]):K.replace("{0}",d[0])+d.slice(1,-1).join(c)+p.replace("{0}",d[d.length-1]):d.join(c)};
_.G.getTimeParam=function(){return p1S(this.timeString)};
_.G.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var d={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},H;_.nU(_.hR(),(H=this.data)==null?void 0:H.trackingParams,d,7)};
_.G.onChangeStartAtTimestamp=function(){for(var d=this.startAtTimestamp.value.split(":"),H=0,K=1,c=d.length-1;c>=0;c--)H+=Number(d[c])*K,K*=60;this.updateTimeSecs(H);this.setTimestamp()};
_.G.onOpen=function(){var d=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var H=_.Kf();H?H.getPlayerPromise().then(function(K){K=K.getCurrentTime();d.updateTimeSecs(K)}):FWv()&&this.updateTimeSecs(FWv())};
_.G.setTimestamp=function(){var d=Math.floor(this.currentTimeSecs);_.oF(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!d,timestamp:d||""}])};
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Ch.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ch.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ch.prototype,"data",void 0);_.t([_.r({value:!1,notify:!0}),_.O("design:type",Boolean)],Ch.prototype,"isStartAtChecked",void 0);_.t([_.r(),_.O("design:type",Number)],Ch.prototype,"currentTimeSecs",void 0);
_.t([_.r({computed:"computeTimeString(currentTimeSecs)"}),_.O("design:type",String)],Ch.prototype,"timeString",void 0);_.t([_.r({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.O("design:type",String)],Ch.prototype,"timeStringA11y",void 0);_.t([_.VP("#start-at-timestamp"),_.O("design:type",Object)],Ch.prototype,"startAtTimestamp",void 0);_.t([_.ZV({is:"yt-start-at-renderer",disableElementRegistration:!0})],Ch);
_.T(Ch,"yt-start-at-renderer",function(){if(zUO===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-start-at-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_start_at_renderer.yt.start.at.renderer.css.js--\x3e<div id="start-at-wrapper" class="style-scope yt-start-at-renderer">\n  <tp-yt-paper-checkbox id="start-at-checkbox" checked="{{isStartAtChecked}}" on-change="onChangeStartAtCheckbox" class="style-scope yt-start-at-renderer">\n    <yt-formatted-string text="[[data.startAtOptionLabel]]" class="style-scope yt-start-at-renderer"></yt-formatted-string>\n  </tp-yt-paper-checkbox>\n  <tp-yt-paper-input id="start-at-timestamp" allowed-pattern="[:0-9]" aria-label="[[timeStringA11y]]" disabled="" no-label-float="" use-v2-underline="" value="[[timeString]]" on-blur="onChangeStartAtTimestamp" on-change="onChangeStartAtTimestamp" class="style-scope yt-start-at-renderer">\n  </tp-yt-paper-input>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;B$g===void 0&&(B$g=document.createElement("template"));var c=B$g;K.call(H,c.content.cloneNode(!0),d.content.firstChild);zUO=d}d=zUO;return d},{mode:2});var X2q;var JyS;var sXU=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),FDG=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),ZQt=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var T$G={};T$G.YtBindingExpressionsBehavior={identity:_.JC,msg:function(d,H){H=H===void 0?{}:H;return _.Vz(d,H,d)},
msgPlural:function(d,H){return _.Ua(d,H)},
getMusicIconFromType:function(d){if(_.h("music_web_enable_icon_wil"))d=_.kv(d);else if(FDG.has(d))d="yt-sys-icons:"+FDG.get(d);else{var H=sXU.get(d)||_.kv(d).split(":")[1];H=_.S$M(H);var K;d=((K=ZQt.get(d))!=null?K:"yt-sys-icons:")+H}return d}};var QXb;var twj;var Yxq;var OQZ=document.head,SxS=OQZ.appendChild,EAZ;if(Yxq===void 0){var yyg=document.createElement("template");_.P(yyg,'\x3c!--css-build:shady--\x3e<iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');Yxq=yyg}EAZ=Yxq;SxS.call(OQZ,EAZ.content);var Rf=function(){var d=_.B.apply(this,arguments)||this;d.screenLayer=7;return d};
_.m(Rf,_.B);Rf.prototype.getScreenLayer=function(){return this.screenLayer};
Rf.prototype.onTap=function(d){d&&d.detail&&(d.detail.x||d.detail.y)&&_.Gn(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.aF(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(d=this.getScreenLayer(),_.GT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:d}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.H3.Object.defineProperties(Rf.prototype,{title:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.title)}},
icon:{configurable:!0,enumerable:!0,get:function(){return"socialNetworksRound:"+this.data.serviceName.toLowerCase()}}});
Rf.prototype.onTap=Rf.prototype.onTap;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Rf.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Rf.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Rf.prototype,"data",void 0);_.t([_.I("data.title"),_.O("design:type",Object),_.O("design:paramtypes",[])],Rf.prototype,"title",null);
_.t([_.I("data.serviceName"),_.O("design:type",String),_.O("design:paramtypes",[])],Rf.prototype,"icon",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Rf.prototype,"onTap",null);_.t([_.ZV({is:"yt-share-target-renderer",disableElementRegistration:!0})],Rf);
_.T(Rf,"yt-share-target-renderer",function(){if(twj===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;QXb===void 0&&(QXb=document.createElement("template"));var c=QXb;K.call(H,c.content.cloneNode(!0),d.content.firstChild);twj=d}d=twj;return d},{mode:2});var bQS;var N$U;var Va=function(){var d=_.B.apply(this,arguments)||this;d.SHARE_TARGET_WIDTH=70;d.SHARE_TARGET_MARGIN_RIGHT=8;d.PAGE_SCROLL_SPEED=9;d.actionMap={"yt-share-panel-reset-action":"onReset_"};return d};
_.m(Va,_.B);_.G=Va.prototype;_.G.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.G.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Gn(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Gn(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.G.onReset_=function(){if(_.Gn(this.hostElement).querySelector("#list")){var d=_.Gn(this.hostElement).querySelector("#list");var H=_.Gn(this.hostElement).querySelector("#list");var K=H.offsetLeft,c=H.offsetParent;c||_.GGM(H)!="fixed"||(c=_.XF(H).documentElement);if(c){if(_.GZ&&!_.qJ(58)){var p=_.n0M(c);K+=p.left}else Number(_.Jhh)>=8&&!(Number(_.Jhh)>=9)&&(p=_.n0M(c),K-=p.left);H=_.kG7(c)?c.clientWidth-(K+H.offsetWidth):K}else H=K;SiO(d,H);this.updateScrollButtons_()}};
_.G.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.G.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.G.onScrollWheel_=function(d){d.stopPropagation();d.preventDefault();var H=Oyv(_.Gn(this.hostElement).querySelector("#list"));d=Math.abs(d.deltaX)>Math.abs(d.deltaY)?d.deltaX:d.deltaY;SiO(_.Gn(this.hostElement).querySelector("#list"),H+d);this.updateScrollButtons_()};
_.G.smoothScrollByOnePage_=function(d){var H=_.Gn(this.hostElement).querySelector("#list"),K=(Math.floor(H.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,c=Oyv(H),p=K*(d?1:-1),g=this.PAGE_SCROLL_SPEED,a=this.updateScrollButtons_.bind(this),e=0,k;(function R(){e+=g;k=e/K*2;SiO(H,c+p*(k<1?k*k:-k*k+4*k-2));e<K?window.requestAnimationFrame(R):a()})()};
_.G.updateScrollButtons_=function(){var d=Oyv(_.Gn(this.hostElement).querySelector("#list")),H=_.Gn(this.hostElement).querySelector("#list").scrollWidth-_.Gn(this.hostElement).querySelector("#list").clientWidth;_.Gn(this.hostElement).querySelector("#scroll-button-back").hidden=d<=0;_.Gn(this.hostElement).querySelector("#scroll-button-forward").hidden=d>=H};
Va.prototype.onScrollWheel_=Va.prototype.onScrollWheel_;Va.prototype.onDataChanged_=Va.prototype.onDataChanged_;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Va.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Va.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(T$G.YtBindingExpressionsBehavior),_.O("design:type",Object)],Va.prototype,"ytBindingExpressionsBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Va.prototype,"data",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Va.prototype,"onDataChanged_",null);_.t([_.nK("wheel"),_.O("design:type",Function),_.O("design:paramtypes",[WheelEvent]),_.O("design:returntype")],Va.prototype,"onScrollWheel_",null);
_.t([_.ZV({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Va);
_.T(Va,"yt-third-party-share-target-section-renderer",function(){if(N$U===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-share-target-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_share_target_section_renderer.yt.third.party.share.target.section.renderer.css.js--\x3e<div id="list" class="style-scope yt-third-party-share-target-section-renderer">\n  <div id="contents" role="toolbar" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-third-party-share-target-section-renderer"></div>\n</div>\n<yt-icon-button id="scroll-button-back" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_PREVIOUS_LABEL\')]]" on-tap="onScrollBack_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_left"></yt-icon>\n</yt-icon-button>\n<yt-icon-button id="scroll-button-forward" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_NEXT_LABEL\')]]" on-tap="onScrollForward_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_right"></yt-icon>\n</yt-icon-button>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;bQS===void 0&&(bQS=document.createElement("template"));var c=bQS;K.call(H,c.content.cloneNode(!0),d.content.firstChild);N$U=d}d=N$U;return d},{mode:2});var U9=function(){return _.B.apply(this,arguments)||this};
_.m(U9,_.B);U9.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],U9.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],U9.prototype,"data",void 0);_.t([_.ZV({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],U9);
_.T(U9,"yt-third-party-network-section-renderer",function(){if(JyS===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-network-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_network_section_renderer.yt.third.party.network.section.renderer.css.js--\x3e<div id="share-targets" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="copy-link" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="start-at" class="style-scope yt-third-party-network-section-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;X2q===void 0&&(X2q=document.createElement("template"));var c=X2q;K.call(H,c.content.cloneNode(!0),d.content.firstChild);JyS=d}d=JyS;return d},{mode:2});_.iV(_.H1(function(d){return _.x("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.x("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.x(_.wB,{data:function(){return d.data().firstPartyItems}},{listItemViewModel:_.QD})))},"Rg"),"first-party-network-section-view-model",{props:{data:_.dl}});var DEg=_.y$(["data:image/svg+xml;charset=UTF-8;base64,",""]),hn=function(){var d=_.B.apply(this,arguments)||this;d.screenLayer=7;d.qrCodeEnabled=_.h("web_enable_sharing_qr_code");d.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return d};
_.m(hn,_.B);_.G=hn.prototype;_.G.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.G.attached=function(){this.JSC$19948_scroller&&(this.JSC$19948_scroller.dialogElement=this.hostElement.parentNode,this.JSC$19948_scroller.attached&&typeof this.JSC$19948_scroller.attached==="function"&&this.JSC$19948_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.G.onDataChanged=function(){var d=this,H;(H=this.data)!=null&&H.contents&&(this.hostElement.setAttribute("links-only","true"),_.a1(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.vV(this,function(){_.GT(d.hostElement,"yt-refit");d.focusSharePanelHeader()}))};
_.G.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.G.handleSetTimestamp=function(d){var H=this.shortUrl();d.isSet&&(H=_.Qd(H,"t",d.timestamp));this.maybeRenderQrCode(H)};
_.G.shortUrl=function(){var d,H=(d=this.data)==null?void 0:d.contents;if(H)for(d=0;d<H.length;d++){var K=void 0,c=void 0;if((K=H[d])==null?0:(c=K.thirdPartyNetworkSection)==null?0:c.copyLinkContainer){var p=c=K=void 0;return(p=_.M((K=H[d])==null?void 0:(c=K.thirdPartyNetworkSection)==null?void 0:c.copyLinkContainer,ECg))==null?void 0:p.shortUrl}}};
_.G.maybeRenderQrCode=function(d){var H=this,K,c,p,g,a,e,k,C,R;return _.l(function(V){if(V.nextAddress==1){K=_.Gn(H.hostElement).querySelector("#qr-code");if(!H.qrCodeEnabled||!d)return K&&(K.style.display="none"),V.return();c=_.Ap4(_.Kj().resolve(_.xv),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});p=document.createElement("div");return typeof c==="function"?(c(p),V.jumpTo(2)):V.yield(c,3)}V.nextAddress!=2&&(g=V.yieldResult,g(p));k=(a=p)==null?void 0:(e=a.firstChild)==null?void 0:e.firstChild;
C=document.createElement("img");R=_.jKD(DEg,btoa(k.outerHTML));C.onload=function(){var U={canvas:K,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:C},L=new a80;CO1(L,d);RRq(L,!1,VhT(L));var w=L.modules,W=Object.assign({},sGZ,U);w=structuredClone(w);U=w.length;var J,F=(J=W.canvas)!=null?J:document.createElement("canvas");J=W.cellSize;L=W.logo;var Y,A=(Y=W.logoSize)!=null?Y:Math.floor(U/4);U%2!==A%2&&A++;var E=W.logoPadding,N=W.backgroundColor;Y=U*J;var y=
W.width,v=0;y&&(v=W.padding,v=Math.ceil(v*Y/(y-v*2)),F.style.width=y+"px",F.style.height=y+"px");F.width!==Y+v*2&&(F.width=Y+v*2);F.height!==Y+v*2&&(F.height=Y+v*2);Y=F.getContext("2d");W.autoClear&&Y.clearRect(0,0,F.width,F.height);Y.fillStyle=N;Y.beginPath();Y.roundRect(0,0,F.width,F.height,W.borderRadius);Y.fill();Y.save();Y.translate(v,v);if(L)for(F=Math.floor(U-A)/2-E,E=Math.floor(U+A)/2+E,N=F;N<E;N++)for(y=F;y<E;y++)w[N][y]=!1;for(F=0;F<U;F++)for(E=0;E<U;E++)(F<7&&E<7||F<7&&E>=U-7||F>=U-7&&
E<7)&&(w[F][E]=!1);var el;F=(el=W.markerColor)!=null?el:W.color;hR1(Y,0,0,J,F);hR1(Y,J*(U-7),0,J,F);hR1(Y,0,J*(U-7),J,F);switch(W.cellStyle){case 0:el=w;w=el.length;F=W.cellSize;Y.beginPath();for(E=0;E<w;E++)for(N=0;N<w;N++)el[E][N]&&Y.rect(E*F,N*F,F,F);Y.fillStyle=W.color;Y.fill();break;case 1:el=w;w=el.length;F=W.cellSize;E=F*W.relativeCircleSize;Y.fillStyle=W.color;Y.beginPath();for(W=0;W<w;W++)for(N=0;N<w;N++)el[W][N]&&(Y.beginPath(),Y.ellipse((W+.5)*F,(N+.5)*F,E/2,E/2,0,0,2*Math.PI),Y.fill());
Y.fill();break;case 2:el=w;w=el.length;F=W.cellSize;Y.fillStyle=W.color;W=[[1,1],[-1,1],[-1,-1],[1,-1]];Y.beginPath();for(E=0;E<w;E++)for(N=0;N<w;N++)if(el[E][N])Y.roundRect(E*F,N*F,F,F,F/2),E+1<w&&el[E+1][N]&&Y.rect(E*F+F/2,N*F,F,F),N+1<w&&el[E][N+1]&&Y.rect(E*F,N*F+F/2,F,F);else{y=E*F+F/2;v=N*F+F/2;for(var l1=0;l1<4;l1++){var V4=_.q(W[l1]),Mf=V4.next().value;V4=V4.next().value;E+Mf>=0&&E+Mf<w&&N+V4>=0&&N+V4<w&&el[E+Mf][N]&&el[E][N+V4]&&el[E+Mf][N+V4]&&(Mf=l1*Math.PI/2,V4=F/2,Y.moveTo(y+V4*Math.cos(Mf),
v+V4*Math.sin(Mf)),Y.arc(y,v,F/2,Mf,Mf+Math.PI/2,!1),Y.lineTo(y+V4*(Math.cos(Mf)-Math.sin(Mf)),v+V4*(Math.cos(Mf)+Math.sin(Mf))),Y.lineTo(y+V4*Math.cos(Mf),v+V4*Math.sin(Mf)))}}Y.fill()}L&&Y.drawImage(L,(U-A)*J/2,(U-A)*J/2,A*J,A*J);Y.restore();K.style.removeProperty("display")};
C.src=_.IK(R);_.VE(V)})};
_.G.hasCommunityPostRenderer=function(){var d,H,K,c;return!!((d=this.data)==null?0:(H=d.header)==null?0:(K=H.sharePanelHeaderRenderer)==null?0:(c=K.communityPost)==null?0:c.communityPostSectionRenderer)};
_.G.onTapClose=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.G.getScreenLayer=function(){return this.screenLayer};
_.G.logSharePanelPage=function(){if(!_.h("enable_share_panel_navigation_logging_fix_on_web")){var d;if((d=this.data)!=null&&d.trackingParams){d=this.data.trackingParams;var H=this.parentClickTrackingParams;H=H?_.P1(H):void 0;var K=_.hR();_.ld(K,21760,H,{layer:7,parentLayer:0});K.graftServerVe(d,void 0,7);_.dn().dispatch(_.iZ({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
hn.prototype.onDataChanged=hn.prototype.onDataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],hn.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],hn.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],hn.prototype,"data",void 0);_.t([_.r({value:_.Vz("SBOX_INAPPROPRIATE_CANCEL")}),_.O("design:type",String)],hn.prototype,"closeButtonAriaLabel",void 0);_.t([_.VP("yt-share-panel-header-renderer"),_.O("design:type",HTMLElement)],hn.prototype,"header",void 0);_.t([_.r({selector:function(d){return d.share.parentClickTrackingParams}}),
_.O("design:type",String)],hn.prototype,"parentClickTrackingParams",void 0);_.t([_.r(),_.O("design:type",Object)],hn.prototype,"qrCodeEnabled",void 0);_.t([_.VP("#scroller"),_.O("design:type",Object)],hn.prototype,"JSC$19948_scroller",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hn.prototype,"onDataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],hn);
_.T(hn,"ytd-unified-share-panel-renderer",function(){if(LDv!==void 0)return LDv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return LDv=d},{mode:1});var fM5;var Lh=function(){var d=_.B.apply(this,arguments)||this;d.modernModal=!0;return d};
_.m(Lh,_.B);Lh.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Lh.prototype.computeShouldHideOldButtons=function(){var d;return!((d=this.data)==null?0:d.button)};
_.H3.Object.defineProperties(Lh.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var d,H;return(d=this.data)==null?void 0:(H=d.button)==null?void 0:H.buttonRenderer}}});
_.t([_.r(),_.O("design:type",Object)],Lh.prototype,"data",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],Lh.prototype,"ytEventForwardingBehavior",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Lh.prototype,"modernModal",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Lh.prototype,"buttonRendererData",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Lh);
_.T(Lh,"ytd-modal-with-title-and-button-renderer",function(){if(fM5!==void 0)return fM5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-modal-with-title-and-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<yt-formatted-string id="content" split-lines="" text="[[data.content]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<div class="buttons style-scope ytd-modal-with-title-and-button-renderer" hidden="[[computeShouldHideOldButtons(data.button)]]">\n  <ytd-button-renderer id="button" align-by-text="" data="[[buttonRendererData]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n  </ytd-button-renderer>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return fM5=d},{mode:1});var Ayv;var MB=function(){return _.B.apply(this,arguments)||this};
_.m(MB,_.B);MB.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("page-changed",this.page))};
MB.prototype.pageChangedForBinding=MB.prototype.pageChangedForBinding;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],MB.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],MB.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],MB.prototype,"page",void 0);_.t([_.CK("page"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],MB.prototype,"pageChangedForBinding",null);
_.t([_.Z({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],MB);
_.T(MB,"ytd-account-item-section-header-renderer",function(){if(Ayv!==void 0)return Ayv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.title]]" class="style-scope ytd-account-item-section-header-renderer"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Ayv=d},{mode:1});var jXZ;var mx=function(){return _.B.apply(this,arguments)||this};
_.m(mx,_.B);mx.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{accountItem:{component:"ytd-account-item-renderer",properties:{onAccountItemTap:"[[onAccountItemTap]]"}},accountItemRenderer:{component:"ytd-account-item-renderer",properties:{onAccountItemTap:"[[onAccountItemTap]]"}},compactLinkRenderer:"ytd-compact-link-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0}}}},"data.header":{id:"header",mapping:{accountItemSectionHeaderRenderer:"ytd-account-item-section-header-renderer"}}}};
mx.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],mx.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],mx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.yH),_.O("design:type",Object)],mx.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],mx.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!1}),_.O("design:type",Function)],mx.prototype,"onAccountItemTap",void 0);
_.t([_.Z({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],mx);
_.T(mx,"ytd-account-item-section-renderer",function(){if(jXZ!==void 0)return jXZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-item-section-renderer"></div>\n<div id="contents" class="style-scope ytd-account-item-section-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return jXZ=d},{mode:1});var vA1;var dzZ;var wt=function(){return _.B.apply(this,arguments)||this};
_.m(wt,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],wt.prototype,"data",void 0);_.t([_.Z({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],wt);
_.T(wt,"ytd-accounts-dialog-header-renderer",function(){if(dzZ!==void 0)return dzZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-accounts-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-accounts-dialog-header-renderer"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return dzZ=d},{mode:1});var Hgv;var Pu=function(){return _.B.apply(this,arguments)||this};
_.m(Pu,_.B);Pu.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Pu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Pu.prototype,"data",void 0);_.t([_.Z({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Pu);
_.T(Pu,"ytd-google-account-header-renderer",function(){if(Hgv!==void 0)return Hgv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-google-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="managedAccountDisclaimer" class="style-scope ytd-google-account-header-renderer"></div>\n<div id="container" class="style-scope ytd-google-account-header-renderer">\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="name" text="[[data.name]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="email" text="[[data.email]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Hgv=d},{mode:1});var uc=function(){return _.B.apply(this,arguments)||this};
_.m(uc,_.B);uc.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{accountItemSectionRenderer:"ytd-account-item-section-renderer",compactLinkRenderer:"ytd-compact-link-renderer"}},"data.header":{id:"header",mapping:{googleAccountHeaderRenderer:"ytd-google-account-header-renderer",accountsDialogHeaderRenderer:"ytd-accounts-dialog-header-renderer"}}}};
uc.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("page-changed",this.page))};
uc.prototype.pageChangedForBinding=uc.prototype.pageChangedForBinding;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],uc.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],uc.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],uc.prototype,"page",void 0);
_.t([_.CK("page"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uc.prototype,"pageChangedForBinding",null);_.t([_.Z({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],uc);
_.oq()(uc,"ytd-account-section-list-renderer",function(){if(vA1===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-section-list-renderer"></div>\n<div id="contents" class="style-scope ytd-account-section-list-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);vA1=d}d=vA1;return d},{allowedProps:["data"],
mode:1});var $z0;var If=function(){var d=_.B.apply(this,arguments)||this;d.enableHandlesAccountMenuSwitcher=_.h("enable_handles_account_menu_switcher");return d};
_.m(If,_.B);If.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
If.prototype.dataChanged=If.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],If.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],If.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.t([_.VP("#avatar"),_.O("design:type",Object)],If.prototype,"avatar",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],If.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],If);
_.oq()(If,"ytd-active-account-header-renderer",function(){if($z0===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-active-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="avatar" height="40" thumbnail="[[data.accountPhoto]]" width="40" class="style-scope ytd-active-account-header-renderer">\n</yt-img-shadow>\n<div id="channel-container" class="style-scope ytd-active-account-header-renderer">\n  <yt-formatted-string id="account-name" ellipsis-truncate="" text="[[data.accountName]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="email" ellipsis-truncate="" text="[[data.email]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="channel-handle" ellipsis-truncate="" respect-lang-dir="" text="[[data.channelHandle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="manage-account" ellipsis-truncate="" force-default-style="" text="[[data.manageAccountTitle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);$z0=d}d=$z0;return d},{allowedProps:["data"],
mode:1});var Kvg;var cYS;var rt=function(){return _.B.apply(this,arguments)||this};
_.m(rt,_.B);rt.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
rt.prototype.onBackTap=function(){_.GT(this.hostElement,"yt-menu-back-tapped")};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],rt.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],rt.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],rt.prototype,"data",void 0);_.t([_.Z({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],rt);
_.oq()(rt,"ytd-simple-menu-header-renderer",function(){if(cYS===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-menu-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton.buttonRenderer]]" on-tap="onBackTap" class="style-scope ytd-simple-menu-header-renderer">\n</ytd-button-renderer>\n<h2 class="style-scope ytd-simple-menu-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-simple-menu-header-renderer"></yt-formatted-string>\n</h2>\n<div id="buttons" class="style-scope ytd-simple-menu-header-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);cYS=d}d=cYS;return d},{allowedProps:["data"],
mode:2});var pht;var Wu=function(){return _.B.apply(this,arguments)||this};
_.m(Wu,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Wu.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Wu.prototype,"data",void 0);_.t([_.Z({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Wu);
_.T(Wu,"ytd-comment-video-thumbnail-header-renderer",function(){if(pht!==void 0)return pht;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-video-thumbnail-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-video-thumbnail style-scope ytd-comment-video-thumbnail-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-comment-video-thumbnail-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-formatted-string class="title style-scope ytd-comment-video-thumbnail-header-renderer" text="[[data.title]]"></yt-formatted-string>\n    <div class="thumbnail-container style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.thumbnail]]">\n      <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="86" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n      </yt-img-shadow>\n    </div>\n  </a>\n</div>\n<div class="subtitle-message-banner style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.subtitleMessage]]">\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.text]]" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.termsText]]" force-default-style="" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return pht=d},{mode:1});var gQU;var Bu=function(){return _.B.apply(this,arguments)||this};
_.m(Bu,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Bu.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Bu.prototype,"data",void 0);_.t([_.Z({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Bu);
_.T(Bu,"ytd-abuse-type-selector-renderer",function(){if(gQU!==void 0)return gQU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-abuse-type-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-abuse-type-selector-renderer">\n  <form class="style-scope ytd-abuse-type-selector-renderer">\n    <yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" class="style-scope ytd-abuse-type-selector-renderer">\n    </yt-options-renderer>\n  </form>\n  <div id="footer" class="style-scope ytd-abuse-type-selector-renderer">[[getSimpleString(data.footer)]]</div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return gQU=d},{mode:1});var igt;var z0=function(){return _.B.apply(this,arguments)||this};
_.m(z0,_.B);z0.prototype.attached=function(){var d=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){d.additionalContextInput.focusTextInput()})};
z0.prototype.handleAdditionalContextChanged=function(){var d=this;_.yP(this,"ytd-report-channel-additional-context-update",function(){d.ytdReduxBehavior.dispatch(_.iZ({type:"ADDITIONAL_CONTEXT_UPDATED",payload:d.additionalContext}))},300)};
z0.prototype.updateAdditionalContextFromBinding=function(d){this.additionalContext=d.detail.value};
z0.prototype.handleAdditionalContextChanged=z0.prototype.handleAdditionalContextChanged;_.t([_.u(_.to),_.O("design:type",Object)],z0.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",String)],z0.prototype,"additionalContext",void 0);_.t([_.r({selector:function(d){return d.reportChannelAbuse.additionalContext}}),
_.O("design:type",String)],z0.prototype,"additionalContextRedux",void 0);_.t([_.r(),_.O("design:type",Object)],z0.prototype,"data",void 0);_.t([_.VP("yt-text-input-form-field-renderer"),_.O("design:type",Object)],z0.prototype,"additionalContextInput",void 0);_.t([_.CK("additionalContext"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],z0.prototype,"handleAdditionalContextChanged",null);
_.t([_.Z({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],z0);
_.T(z0,"ytd-report-channel-modal-additional-context-renderer",function(){if(igt!==void 0)return igt;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-additional-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.additionalDetailsTextField.textInputFormFieldRenderer]]" value="[[additionalContext]]" on-value-changed="updateAdditionalContextFromBinding" class="style-scope ytd-report-channel-modal-additional-context-renderer">\n</yt-text-input-form-field-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return igt=d},{mode:1});var GXT;var Xg=function(){var d=_.B.apply(this,arguments)||this;d.nextButtonDisabled=null;d.submitEndpoint=null;d.navigationEndpoint=null;d.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return d};
_.m(Xg,_.B);_.G=Xg.prototype;_.G.computeNextButtonData=function(d,H,K){var c={};H&&(c.navigationEndpoint=H);K&&(c.serviceEndpoint=K);d&&d.buttonRenderer&&_.rs.extend(c,d.buttonRenderer);return c};
_.G.handleReportChannelModalDisableNextButtonAction=function(d){this.setNextButtonIsDisabled(d)};
_.G.handleReportFormEndpointUpdateAction=function(d){this.setNextButtonIsDisabled(!!d.disableSubmitButton);this.resetEndpointData();d.submitEndpoint?this.submitEndpoint=d.submitEndpoint:d.submitNavigationEndpoint&&(this.navigationEndpoint=d.submitNavigationEndpoint)};
_.G.handleSignalActionSubmitForm=function(){var d,H=Object.keys(((d=this.reportChannelAbuseForm)==null?void 0:d.selectedVideoIds)||{}),K;d=((K=this.reportChannelAbuseForm)==null?void 0:K.additionalContext)||"";var c;K=((c=this.reportChannelAbuseForm)==null?void 0:c.impersonatedChannelUrl)||"";var p;if((p=this.data)==null?0:p.submitEndpoint){H={impersonated_channel_url:K,text:d,video_ids:H};var g;_.Kj().resolve(_.cb).resolveCommand((g=this.data)==null?void 0:g.submitEndpoint,{form:Object.assign({},
H,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.G.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.G.onYtServiceRequestError=function(d){this.setNextButtonIsDisabled(!1);_.ff(this.hostElement,d.detail.error.message)};
_.G.setNextButtonIsDisabled=function(d){this.set("data.nextButton.buttonRenderer.isDisabled",d)};
_.G.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Xg.prototype.onYtServiceRequestError=Xg.prototype.onYtServiceRequestError;Xg.prototype.onYtServiceRequestCompleted=Xg.prototype.onYtServiceRequestCompleted;_.t([_.r(),_.O("design:type",Object)],Xg.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Xg.prototype,"nextButtonDisabled",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Xg.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Xg.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Xg.prototype,"submitEndpoint",void 0);_.t([_.r(),_.O("design:type",Object)],Xg.prototype,"navigationEndpoint",void 0);_.t([_.r({selector:function(d){return d.reportChannelAbuse}}),
_.O("design:type",Object)],Xg.prototype,"reportChannelAbuseForm",void 0);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Xg.prototype,"onYtServiceRequestCompleted",null);_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Xg.prototype,"onYtServiceRequestError",null);
_.t([_.Z({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Xg);
_.T(Xg,"ytd-report-channel-modal-footer-renderer",function(){if(GXT!==void 0)return GXT;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n<ytd-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, navigationEndpoint, submitEndpoint)]]" disabled="[[data.nextButton.buttonRenderer.isDisabled]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return GXT=d},{mode:1});var oQ0;var Jn=function(){var d=_.B.apply(this,arguments)||this;d.boundOnTapDismissButton=function(){d.closePopup()};
return d};
_.m(Jn,_.B);Jn.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Jn.prototype.handleDataChanged=function(){_.D7(this.hostElement)};
Jn.prototype.closePopup=function(){_.oF(this.hostElement,"yt-close-popup-action")};
Jn.prototype.handleDataChanged=Jn.prototype.handleDataChanged;_.t([_.r(),_.O("design:type",Object)],Jn.prototype,"boundOnTapDismissButton",void 0);_.t([_.r(),_.O("design:type",Object)],Jn.prototype,"data",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Jn.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Jn.prototype,"handleDataChanged",null);_.t([_.Z({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Jn);
_.T(Jn,"ytd-report-channel-modal-header-renderer",function(){if(oQ0!==void 0)return oQ0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-report-channel-modal-header-renderer">\n  <span id="title" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.title)]]</span>\n  <span id="subtitle" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.subtitle)]]</span>\n</div>\n<div id="dismiss-button" class="style-scope ytd-report-channel-modal-header-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return oQ0=d},{mode:1});var qdZ;var s9=function(){var d=_.B.apply(this,arguments)||this;d.autoValidate=!1;d.invalid=!1;d.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return d};
_.m(s9,_.B);_.G=s9.prototype;_.G.attached=function(){var d=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){d.channelUrlInput.focusTextInput()})};
_.G.disableNextButton=function(d){_.oF(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[d])};
_.G.handleImpersonatedChannelUrlChanged=function(){var d=this;this.disableNextButton(!0);this.invalid=!1;_.yP(this,"ytd-report-channel-impersonated-channel-update",function(){var H=d.impersonatedChannelUrl.trim();d.ytdReduxBehavior.dispatch(_.iZ({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:H}));var K;((K=d.data)==null?0:K.submitEndpoint)&&H&&_.Kj().resolve(_.cb).resolveCommand(d.data.submitEndpoint,{form:{impersonated_channel_url:H,element:d.hostElement}})},500)};
_.G.handleModifyReportFormCommand=function(d){this.invalid=this.get("modifyReportFormCommand.action",d)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.G.updateInvalidFromBinding=function(d){this.invalid=d.detail.value};
_.G.updateImpersonatedChannelUrlFromBinding=function(d){this.impersonatedChannelUrl=d.detail.value};
s9.prototype.handleImpersonatedChannelUrlChanged=s9.prototype.handleImpersonatedChannelUrlChanged;_.t([_.u(_.to),_.O("design:type",Object)],s9.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],s9.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],s9.prototype,"autoValidate",void 0);_.t([_.r(),_.O("design:type",Object)],s9.prototype,"invalid",void 0);
_.t([_.r(),_.O("design:type",String)],s9.prototype,"impersonatedChannelUrl",void 0);_.t([_.r({selector:function(d){return d.reportChannelAbuse.impersonatedChannelUrl}}),
_.O("design:type",String)],s9.prototype,"impersonatedChannelUrlRedux",void 0);_.t([_.r(),_.O("design:type",Object)],s9.prototype,"data",void 0);_.t([_.VP("#text-input"),_.O("design:type",Object)],s9.prototype,"channelUrlInput",void 0);_.t([_.CK("impersonatedChannelUrl"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],s9.prototype,"handleImpersonatedChannelUrlChanged",null);
_.t([_.Z({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],s9);
_.T(s9,"ytd-report-channel-modal-impersonation-renderer",function(){if(qdZ!==void 0)return qdZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-impersonation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer id="text-input" auto-validate="[[autoValidate]]" component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.impersonationTextField.textInputFormFieldRenderer]]" invalid="[[invalid]]" value="[[impersonatedChannelUrl]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="updateImpersonatedChannelUrlFromBinding" class="style-scope ytd-report-channel-modal-impersonation-renderer"></yt-text-input-form-field-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return qdZ=d},{mode:1});var asv;var lst;var Fg=function(){return _.B.apply(this,arguments)||this};
_.m(Fg,_.B);Fg.prototype.onCheckboxToggled=function(d){var H,K,c=(K=_.M((H=this.data)==null?void 0:H.video,_.ts))==null?void 0:K.videoId;c&&this.ytdReduxBehavior.dispatch(d.target.checked?_.iZ({type:"VIDEO_SELECTED",payload:c}):_.iZ({type:"VIDEO_UNSELECTED",payload:c}))};
Fg.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.H3.Object.defineProperties(Fg.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var d,H=(d=this.data)==null?void 0:d.video;if(!H)return{};var K;d=(K=_.M(H,_.ts))==null?void 0:K.navigationEndpoint;if(!d)return H;_.M(d==null?void 0:d.commandMetadata,_.Co)&&(_.M(d.commandMetadata,_.Co).ignoreNavigation=!0);return H}}});
_.t([_.r({reflectToAttribute:!0,selector:function(d,H){return H in d.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.O("design:type",Boolean)],Fg.prototype,"checked",void 0);_.t([_.r(),_.O("design:type",Object)],Fg.prototype,"data",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Fg.prototype,"video",null);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Fg.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.to),_.O("design:type",Object)],Fg.prototype,"ytdReduxBehavior",void 0);_.t([_.Z({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Fg);
_.T(Fg,"ytd-selectable-video-renderer",function(){if(lst!==void 0)return lst;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox checked="[[checked]]" on-change="onCheckboxToggled" class="style-scope ytd-selectable-video-renderer">\n  <div id="video" class="style-scope ytd-selectable-video-renderer"></div>\n</tp-yt-paper-checkbox>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return lst=d},{mode:1});var Zx=function(){var d=_.B.apply(this,arguments)||this;d.monitorScroll=!0;return d};
_.m(Zx,_.B);Zx.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Zx.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Zx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Zx.prototype,"data",void 0);_.t([_.Z({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Zx);
_.T(Zx,"ytd-selectable-video-list-renderer",function(){if(asv!==void 0)return asv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selectable-videos" hidden="[[!data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer"></div>\n<div id="empty-state-message" hidden="[[data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer">\n  [[getSimpleString(data.emptyStateMessage)]]\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return asv=d},{mode:1});var ePS;_.XX("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var T0=function(){return _.B.apply(this,arguments)||this};
_.m(T0,_.B);T0.prototype.onChange=function(d){if(d=_.v5(d).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.h("kevlar_command_handler_migration_killswitch"))_.l5(this.hostElement,d,this.hostElement);else{d=_.q(d);for(var H=d.next();!H.done;H=d.next())this.ytComponentBehavior.resolveCommand(H.value)}};
T0.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
T0.prototype.updateDataToggledFromBinding=function(d){this.set("data.toggled",d.detail.value)};
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],T0.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],T0.prototype,"data",void 0);_.t([_.r({computed:"isEnabled(data)"}),_.O("design:type",Boolean)],T0.prototype,"enabled",void 0);_.t([_.Z({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],T0);
_.T(T0,"ytd-toggle-item-renderer",function(){if(ePS!==void 0)return ePS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.descriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="description style-scope ytd-toggle-item-renderer">[[getSimpleString(item)]]</div>\n</template>\n<div id="caption-container" class="style-scope ytd-toggle-item-renderer">\n  <div id="caption" class="style-scope ytd-toggle-item-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button checked="[[data.toggled]]" disabled="[[!enabled]]" noink="" on-change="onChange" on-checked-changed="updateDataToggledFromBinding" class="style-scope ytd-toggle-item-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<template is="dom-repeat" items="[[data.extraDescriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="extra-description style-scope ytd-toggle-item-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-toggle-item-renderer"></yt-formatted-string>\n  </div>\n</template>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return ePS=d},{mode:1});var kXv;var xzq;var nQU;var Qa=function(){var d=_.B.apply(this,arguments)||this;d.setVisible=!1;d.boundOnSubmitButtonClick=function(){d.onSubmitButtonClick()};
d.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return d};
_.m(Qa,_.B);Qa.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnSubmitButtonClick]]"},params:{noink:!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
Qa.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
Qa.prototype.onSubmitButtonClick=function(){var d;((d=this.data)==null?0:d.submitEndpoint)&&!_.h("enable_ytc_refunds_submit_form_signal_action")&&_.aF(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
Qa.prototype.handleSignalActionSubmitForm=function(){var d;((d=this.data)==null?0:d.submitEndpoint)&&_.aF(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.H3.Object.defineProperties(Qa.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.hiddenByDefault)&&!this.setVisible}}});
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Qa.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Qa.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Qa.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Qa.prototype,"setVisible",void 0);_.t([_.r(),_.O("design:type",Object)],Qa.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Object)],Qa.prototype,"surveyFeedbackData",void 0);_.t([_.r(),_.O("design:type",Object)],Qa.prototype,"boundOnSubmitButtonClick",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data","setVisible"),_.O("design:type",Object),_.O("design:paramtypes",[])],Qa.prototype,"visibilityHidden",null);_.t([_.ZV({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],Qa);
_.T(Qa,"yt-flow-footer-renderer",function(){if(nQU===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_footer_renderer.yt.flow.footer.renderer.css.js--\x3e<div id="secondary-button" hidden$="[[!data.secondaryButton]]" class="style-scope yt-flow-footer-renderer"></div><div id="primary-button" hidden$="[[!data.primaryButton]]" class="style-scope yt-flow-footer-renderer"></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;xzq===void 0&&(xzq=document.createElement("template"));var c=xzq;K.call(H,c.content.cloneNode(!0),d.content.firstChild);nQU=d}d=nQU;return d},{mode:2});var tn=function(){return _.B.apply(this,arguments)||this};
_.m(tn,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],tn.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],tn.prototype,"data",void 0);_.t([_.r({selector:function(d){return d.ypc.surveyFeedbackData}}),
_.O("design:type",Object)],tn.prototype,"surveyFeedbackData",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],tn);
_.T(tn,"ytd-flow-footer-renderer",function(){if(kXv!==void 0)return kXv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-flow-footer-renderer data="[[data]]" survey-feedback-data="[[surveyFeedbackData]]" class="style-scope ytd-flow-footer-renderer">\n</yt-flow-footer-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return kXv=d},{mode:_.qk("kevlar_poly_si_batch_j025")?1:2});var Cl5;var RPZ;var Yh=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return d};
_.m(Yh,_.B);_.G=Yh.prototype;_.G.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Ju("multiPageMenuSectionItems")}}};
_.G.handleHideEnclosingAction_=function(d){if(this.data&&this.data.items)for(var H=0;H<this.data.items.length;H++){var K=this.data.items[H].notificationRenderer;if(K&&K.notificationId==d.hideEnclosingAction.notificationId){this.splice("data.items",H,1);_.oF(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.G.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.a1(this.hostElement,"hidden",!0)};
_.G.updateMenu_=function(d){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&d&&!d.doNotRefreshInbox){d=this.data.continuations;for(var H=0;H<d.length;H++)if(d[H].invalidationContinuationData){var K=void 0;var c=(K=d[H].invalidationContinuationData)==null?void 0:K.continuation;break}d=_.rs.clone(this.data.continuationUpdateEndpoint||null);d.continuation=c;d.click_tracking_params=this.data.trackingParams;_.aF(this.hostElement,[d])}};
_.G.onServiceRequestCompleted_=function(d,H){if(this.data&&(d=H.actions)){H=0;for(var K=d.length;H<K;H++){var c=_.M(d[H],_.sjg);if(!c)break;if((c.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||c.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&c.continuationItems&&this.data.items){var p=this.data.items.length-1;this.data.items[p].continuationItemRenderer&&(c=["data.items",p,1].concat(c.continuationItems),this.splice.apply(this,c))}}}};
Yh.prototype.onServiceRequestCompleted_=Yh.prototype.onServiceRequestCompleted_;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Yh.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Yh.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Yh.prototype,"data",void 0);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],Yh.prototype,"onServiceRequestCompleted_",null);_.t([_.ZV({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],Yh);
_.oq()(Yh,"yt-multi-page-menu-section-renderer",function(){if(RPZ===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-multi-page-menu-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.account.yt_multi_page_menu_section_renderer.yt.multi.page.menu.section.renderer.css.js--\x3e<div id="section-title" hidden="[[!data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer">\n  <h2 class="style-scope yt-multi-page-menu-section-renderer">\n    <yt-formatted-string text="[[data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer"></yt-formatted-string>\n  </h2>\n</div>\n<div id="items" class="style-scope yt-multi-page-menu-section-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;Cl5===void 0&&(Cl5=document.createElement("template"));var c=Cl5;K.call(H,c.content.cloneNode(!0),d.content.firstChild);RPZ=d}d=RPZ;return d},{allowedProps:["data"],
mode:2});var V6q;var Uzg;var O9=function(){return _.B.apply(this,arguments)||this};
_.m(O9,_.B);O9.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.H3.Object.defineProperties(O9.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.progress)==null?0:this.data.progress*100}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],O9.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],O9.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],O9.prototype,"data",void 0);_.t([_.I("data.progress"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],O9.prototype,"showProgressBar",null);
_.t([_.I("data.progress"),_.O("design:type",Number),_.O("design:paramtypes",[])],O9.prototype,"progress",null);_.t([_.ZV({is:"yt-flow-header-renderer",disableElementRegistration:!0})],O9);
_.T(O9,"yt-flow-header-renderer",function(){if(Uzg===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_header_renderer.yt.flow.header.renderer.css.js--\x3e<div id="top-bar" class="style-scope yt-flow-header-renderer">\n  <div id="action-button" hidden$="[[!data.actionButton]]" class="style-scope yt-flow-header-renderer"></div>\n  <yt-formatted-string id="title" force-default-style="" split-lines="1" text="[[data.title]]" class="style-scope yt-flow-header-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-paper-progress id="progress-bar" hidden="[[!showProgressBar]]" value="[[progress]]" class="style-scope yt-flow-header-renderer"></tp-yt-paper-progress>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;V6q===void 0&&(V6q=document.createElement("template"));var c=V6q;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Uzg=d}d=Uzg;return d},{mode:2});var hP1;var Lvj;var SH=function(){return _.B.apply(this,arguments)||this};
_.m(SH,_.B);SH.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],SH.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],SH.prototype,"data",void 0);_.t([_.ZV({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],SH);
_.T(SH,"yt-post-confirmation-flow-step-renderer",function(){if(Lvj===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-post-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_post_confirmation_flow_step_renderer.yt.post.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-post-confirmation-flow-step-renderer"><div id="text" class="style-scope yt-post-confirmation-flow-step-renderer"></div></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;hP1===void 0&&(hP1=document.createElement("template"));var c=hP1;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Lvj=d}d=Lvj;return d},{mode:2});var M6T;var mzG;var E9=function(){return _.B.apply(this,arguments)||this};
_.m(E9,_.B);
E9.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],E9.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],E9.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],E9.prototype,"data",void 0);_.t([_.ZV({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],E9);
_.T(E9,"yt-refund-confirmation-flow-step-renderer",function(){if(mzG===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-refund-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_refund_confirmation_flow_step_renderer.yt.refund.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-refund-confirmation-flow-step-renderer"><div id="user-info" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-text" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="product-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="billing-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;M6T===void 0&&(M6T=document.createElement("template"));var c=M6T;K.call(H,c.content.cloneNode(!0),d.content.firstChild);mzG=d}d=mzG;return d},{mode:2});_.p5(gvU);var whT=_.H1(function(d){var H=d.data;return _.x("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.x("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.x(_.d7,{data:function(){return{thumbnails:[{url:H().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.x("div",{class:"profile-badge-view-model-wiz__content"},_.x("div",{class:"profile-badge-view-model-wiz__badge-description"},function(){return H().badgeDesc}),_.x(_.n,{cond:function(){return H().badgeSubtitle},
then:function(){return _.x("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},function(){return H().badgeSubtitle})}})))},"Sg"),k6U=_.h("web_enable_sink_profile_card_batch_ks")?gvU:whT;
whT.idomCompat=!0;_.p5(iMg);var PlG=_.H1(function(d){var H=d.data;return _.x("yt-comment-interaction-view-model",{el:_.$M(_.Tx(function(){return H().rendererContext})),
class:"yt-comment-interaction-view-model-wiz"},_.x("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":function(){return H().onTapA11yLabel},
"on:keydown":_.XN(),tabindex:0},_.x("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.x("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},function(){return H().headerPrefix},' "',function(){return H().videoTitle}),_.x("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},'"')),_.x("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.x("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},function(){return H().commentContent}),
_.x("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.x(_.d7,{data:function(){return{thumbnails:[{url:H().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"Tg");
PlG.idomCompat=!0;var ur1=_.h("web_enable_sink_profile_card_batch_ks")?iMg:PlG,Isq=_.h("web_enable_sink_profile_card_batch_ks")?_.Rd(iMg):PlG;var G60=_.qSU({avatarViewModel:_.JV});_.p5(ovt);var rYq=_.H1(function(d){var H=d.data;return _.x("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},_.x(_.wB,{data:function(){return H().avatar}},{avatarViewModel:_.JV}),_.x("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},function(){return H().channelName}))},"Ug"),Wvq=_.h("web_enable_sink_profile_card_batch_ks")?ovt:rYq,BwZ=_.h("web_enable_sink_profile_card_batch_ks")?_.Rd(ovt):rYq;
rYq.idomCompat=!0;var nx=_.qSU({commentInteractionViewModel:ur1,sharedSubscriptionViewModel:Wvq,buttonViewModel:_.xk,horizontalShelfViewModel:_.Yw});_.p5(aXZ);_.p5(lXq);_.p5(eu0);_.p5(xkt);_.p5(nv0);var Fvg=_.H1(function(d){var H=d.data;d={};return _.x("yt-profile-info-view-model",{class:_.xM("yt-profile-info-view-model-wiz",(d["yt-profile-info-view-model-wiz__with-video-shelf"]=function(){return H().videosHorizontalShelf},d))},_.x(zPT,{profileInfo:H}),_.x(_.wB,{data:function(){return H().videosHorizontalShelf}},{horizontalShelfViewModel:function(K){return _.x("div",{class:"yt-profile-info-view-model-wiz__videoShelfContainer"},_.x(_.Yw,{data:K.data}))}}),_.x(_.n,{cond:function(){return H().comments},
then:function(){return _.x(Xhb,{profileInfo:H})}}),_.x(_.n,{cond:function(){return H().sharedSubscriptionsTitle},
then:function(){return _.x(_.n,{cond:function(){return H().subscriptionsAccessButtonCommand},
then:function(){return _.x(JYG,{profileInfo:H})},
else:function(){return _.x(sM0,{profileInfo:H})}})}}))},"Vg");
Fvg.idomCompat=!0;
var Zgj=_.h("web_enable_sink_profile_card_batch_ks")?_.Rd(nv0):Fvg,Xhb=_.H1(function(d){var H=d.profileInfo;return _.x("div",{class:"yt-profile-info-view-model-wiz__activity"},_.x("div",{class:"yt-profile-info-view-model-wiz__header"},_.x("div",{class:"yt-profile-info-view-model-wiz__section-title"},function(){return H().commentsInteractionTitle})),_.x(_.wB,{data:function(){return H().comments}},{commentInteractionViewModel:function(K){return _.x("div",{class:"yt-profile-info-view-model-wiz__activity"},_.x(Isq,
{data:K.data}))}}))},"Wg"),JYG=_.H1(function(d){var H=d.profileInfo;
return _.x("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.x("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.x(_.Oj,{command:function(){return H().subscriptionsAccessButtonCommand},
className:"yt-profile-info-view-model-wiz__another-header"},_.x("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},function(){return H().sharedSubscriptionsTitle}),_.x("div",null,_.x(_.wB,{data:function(){return H().subscriptionsAccessButton}},{buttonViewModel:_.xk})))),_.x(TwS,{sharedSubscriptions:function(){var K;
return((K=H().sharedSubscriptions)==null?void 0:K.slice(0,5))||[]}}))},"Xg"),sM0=_.H1(function(d){var H=d.profileInfo;
return _.x("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.x("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.x("h2",{class:"yt-profile-info-view-model-wiz__section-title"},function(){return H().sharedSubscriptionsTitle})),_.x(TwS,{sharedSubscriptions:function(){var K;
return((K=H().sharedSubscriptions)==null?void 0:K.slice(0,5))||[]}}))},"Yg"),TwS=_.H1(function(d){return _.x("div",{class:"yt-profile-info-view-model-wiz__subs"},_.x(_.wB,{data:d.sharedSubscriptions},{sharedSubscriptionViewModel:function(H){return _.x("div",{class:"yt-profile-info-view-model-wiz__sub"},_.x(BwZ,{data:H.data}))}}))},"Zg"),zPT=_.H1(function(d){var H=d.profileInfo;
return _.x("div",{class:"yt-profile-info-view-model-wiz__activity"},_.x(_.L6,{each:function(){return[H().profileBadgeInfoYtWide,H().profileBadgeInfoChannelWide].filter(function(K){return!!K})},
keyBy:"INDEX"},function(K){return _.x(_.HE,null,_.x("div",{class:"yt-profile-info-view-model-wiz__header"},_.x("div",{class:"yt-profile-info-view-model-wiz__section-title"},function(){return K().profileSectionTitle}),_.x("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.x("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},function(){var c;
return(c=K().commentBadge)==null?void 0:c.commentDesc}),_.x(_.n,{cond:function(){var c;
return(c=K().commentBadge)==null?void 0:c.blackHeartDesc},
then:function(){return _.x("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022")}}),_.x("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.x(_.d7,{data:function(){var c;
return{thumbnails:[{url:(c=K().commentBadge)==null?void 0:c.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.x("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},function(){var c;return(c=K().commentBadge)==null?void 0:c.blackHeartDesc}))),_.x("div",{class:"yt-profile-info-view-model-wiz__badge"},_.x(_.L6,{each:function(){return K().badges||[]}},function(c){return _.x(k6U,{data:c})})))}))},"$g");var CDq=_.qSU({profileIdentityInfoViewModel:_.hLv,profileInfoViewModel:_.h("web_enable_sink_profile_card_batch_ks")?nv0:Fvg});_.p5(Rut);var QMT=_.H1(function(d){var H=d.data;var K=function(){return H().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.x("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},_.x(_.wB,{data:function(){return H().profileIdentityInfo}},{profileIdentityInfoViewModel:function(c){return _.x(_.Lwv,{data:c.data,
hideDivider:K,isChannelInfoCard:K})},
profileInfoViewModel:Zgj}),_.x(_.wB,{data:function(){return H().profileInfo}},{profileIdentityInfoViewModel:_.Lwv,
profileInfoViewModel:Zgj}))},"ah"),t6Z=_.h("web_enable_sink_profile_card_batch_ks")?Rut:QMT,YdU=_.h("web_enable_sink_profile_card_batch_ks")?_.Rd(Rut):QMT;
QMT.idomCompat=!0;_.h("web_enable_sink_profile_card_batch_ks")?_.Nkb(t6Z,"yt-profile-card-view-model",{propNames:["data"]}):_.iV(YdU,"yt-profile-card-view-model",{props:{data:_.dl}});var ya=function(){var d=_.B.apply(this,arguments)||this;d.enableFocusFix=_.h("music_web_enable_focus_on_setting_menu_fix")&&_.Qx("IS_MOBILE_WEB",!1);d.covered=!1;d.hideMenu=!1;d.isCommentNotificationOnProfileCard=!1;d.scrolledByTouch=!1;d.disableBackdropFilter=_.h("web_disable_backdrop_filter");d.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return d};
_.m(ya,_.B);_.G=ya.prototype;
_.G.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{activeAccountHeaderRenderer:"ytd-active-account-header-renderer",flowHeaderRenderer:"yt-flow-header-renderer",simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer",reportChannelModalHeaderRenderer:"ytd-report-channel-modal-header-renderer"}},"data.sections":{id:"sections",mapping:{additionalContextRenderer:"ytd-report-channel-modal-additional-context-renderer",abuseTypeSelectorRenderer:"ytd-abuse-type-selector-renderer",accountSectionListRenderer:"ytd-account-section-list-renderer",
backgroundPromoRenderer:"ytd-background-promo-renderer",commentVideoThumbnailHeaderRenderer:"ytd-comment-video-thumbnail-header-renderer",impersonationScreenRenderer:"ytd-report-channel-modal-impersonation-renderer",itemSectionRenderer:"ytd-comments",messageRenderer:"ytd-message-renderer",multiPageMenuNotificationSectionRenderer:"yt-multi-page-menu-section-renderer",multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",postConfirmationFlowStepRenderer:"yt-post-confirmation-flow-step-renderer",
refundConfirmationFlowStepRenderer:"yt-refund-confirmation-flow-step-renderer",selectableVideoListRenderer:"ytd-selectable-video-list-renderer",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",toggleItemRenderer:"ytd-toggle-item-renderer",profileCardViewModel:"yt-profile-card-view-model",continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.footer":{id:"footer",mapping:{multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",reportChannelModalFooterRenderer:"ytd-report-channel-modal-footer-renderer",
flowFooterRenderer:"ytd-flow-footer-renderer"}}}};
_.G.ready=function(){var d=this;this.JSC$20064_containerElement.addEventListener("scroll",function(){d.ytRendererBehavior.markDirty()})};
_.G.attributeChanged=function(d,H){d==="menu-style"&&_.oF(this.hostElement,"yt-multi-page-menu-closed-action",[H])};
_.G.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.xf(this,this.focusOnStampFinished))};
_.G.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.xf(this,this.focusOnStampFinished))};
_.G.reset=function(){this.closeJobId&&(_.Xp.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.G.focusOnStampFinished=function(d){d.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.xf(this,this.focusOnStampFinished)),this.doFocus())};
_.G.doFocus=function(){var d=_.QIg(this.sectionsElement);d.length&&d[0].focus()};
_.G.computeMenuStyle=function(d){return d?d.toLowerCase().replace(/_/g,"-"):""};
_.G.computeIsCommentNotificationOnProfileCard=function(d){return _.h("enable_profile_cards_on_comments")&&d.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.G.computeHideMenu=function(d,H){return d||!(!H||!H.showLoadingSpinner)};
_.G.onPopupClosed=function(){this.isPopUpOpen=!1;_.oF(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.G.onPopupOpened=function(d,H){this.isPopUpOpen=!0;H.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.GT(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.iZ({type:"CHANNEL_REPORT_RESET"})))};
_.G.onYtNavigate=function(d,H){this.shouldCloseOnNavigateEvent(H.endpoint)&&_.oF(this.hostElement,"yt-close-all-popups-action")};
_.G.handleEndpoint=function(d){d=_.M(d,_.Js);!this.isCommentNotificationOnProfileCard&&d&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20064_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.G.handleActions=function(d){for(var H=0,K=d.length;H<K;H++){var c=_.M(d[H],Ny5);c&&this.handleGetMultiPageMenuAction(c);(c=_.M(d[H],_.sjg))&&this.handleAppendContinuationItemsAction(c)}};
_.G.onServiceRequestSentOrCompleted=function(d,H){d.detail&&d.detail.endpoint&&this.handleEndpoint(d.detail.endpoint);H.actions&&this.handleActions(H.actions)};
_.G.handleGetMultiPageMenuAction=function(d){var H=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Gn(this.submenuElement).appendChild(H);(d=d.menu.multiPageMenuRenderer)&&this.logSubmenu(d);H.data=d;H.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.G.handleAppendContinuationItemsAction=function(d){if(this.data&&d.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&d.continuationItems&&this.data.sections){var H=this.data.sections.length-1;this.data.sections[H].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),H--);if(this.data.sections[H].multiPageMenuNotificationSectionRenderer&&d.continuationItems){d=_.q(d==null?void 0:d.continuationItems);for(var K=d.next();!K.done;K=d.next())if(K=K.value,_.M(K,UZZ)){var c=
void 0,p=void 0,g=void 0,a=void 0,e=void 0;((c=this)==null?0:(p=c.data)==null?0:(g=p.sections)==null?0:(a=g[H])==null?0:(e=a.multiPageMenuNotificationSectionRenderer)==null?0:e.items)&&this.push("data.sections."+H+".multiPageMenuNotificationSectionRenderer.items",K)}else if(_.M(K,_.m33)||_.M(K,_.AE))this.push("data.sections",K),H++}}};
_.G.logSubmenu=function(d){if(!_.h("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var H=this.ytRendererBehavior.getScreenLayer(),K=_.Fj(H),c=_.so(H);if((d=d.trackingParams)&&K&&c){var p=_.P1(d);_.h("combine_ve_grafts")?_.hR().graftServerVe(d,c,H):_.Ea(K,c,p)}}};
_.G.emptySubmenuContainer=function(){for(var d=_.Gn(this.submenuElement);d.firstChild;)d.removeChild(d.firstChild)};
_.G.onMenuBackTap=function(d){_.GT(this.hostElement,"yt-submenu-closed");d.stopPropagation()};
_.G.onSubmenuClosed=function(d){_.v5(d)!==this.hostElement&&(this.covered=!1,_.GT(this.hostElement,"yt-refit"),d.stopPropagation())};
_.G.onRetrieveLocation=function(d,H){H.hasComments&&(H.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),d.stopPropagation())};
_.G.shouldCloseOnNavigateEvent=function(d){if(!d)return!0;if(_.M(d,_.usg)||_.M(d,_.Iv7)||_.M(d,_.Phl)||_.M(d,_.yj))return!1;var H;return((H=_.M(d==null?void 0:d.commandMetadata,_.Co))==null?0:H.ignoreNavigation)?!1:!0};
_.G.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.G.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.G.refitAfterRender=function(){var d=this;_.vV(this,function(){_.GT(d.hostElement,"yt-refit")})};
ya.prototype.refitAfterRender=ya.prototype.refitAfterRender;ya.prototype.onRetrieveLocation=ya.prototype.onRetrieveLocation;ya.prototype.onSubmenuClosed=ya.prototype.onSubmenuClosed;ya.prototype.onMenuBackTap=ya.prototype.onMenuBackTap;ya.prototype.onServiceRequestSentOrCompleted=ya.prototype.onServiceRequestSentOrCompleted;ya.prototype.onYtNavigate=ya.prototype.onYtNavigate;ya.prototype.onPopupOpened=ya.prototype.onPopupOpened;ya.prototype.onPopupClosed=ya.prototype.onPopupClosed;
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ya.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],ya.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ya.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],ya.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ya.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Object)],ya.prototype,"enableFocusFix",void 0);_.t([_.r(),_.O("design:type",Object)],ya.prototype,"covered",void 0);_.t([_.r({computed:"computeHideMenu(covered, data)"}),_.O("design:type",Object)],ya.prototype,"hideMenu",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.O("design:type",String)],ya.prototype,"menuStyle",void 0);
_.t([_.r({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.O("design:type",Object)],ya.prototype,"isCommentNotificationOnProfileCard",void 0);_.t([_.r(),_.O("design:type",Boolean)],ya.prototype,"isPopUpOpen",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ya.prototype,"scrolledByTouch",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ya.prototype,"disableBackdropFilter",void 0);
_.t([_.VP("#sections"),_.O("design:type",HTMLElement)],ya.prototype,"sectionsElement",void 0);_.t([_.VP("#spinner"),_.O("design:type",HTMLElement)],ya.prototype,"spinnerElement",void 0);_.t([_.VP("#header"),_.O("design:type",HTMLElement)],ya.prototype,"headerElement",void 0);_.t([_.VP("#container"),_.O("design:type",HTMLElement)],ya.prototype,"JSC$20064_containerElement",void 0);_.t([_.VP("#submenu"),_.O("design:type",HTMLElement)],ya.prototype,"submenuElement",void 0);
_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ya.prototype,"onPopupClosed",null);_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],ya.prototype,"onPopupOpened",null);_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],ya.prototype,"onYtNavigate",null);
_.t([_.nK("yt-service-request-completed"),_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],ya.prototype,"onServiceRequestSentOrCompleted",null);_.t([_.nK("yt-menu-back-tapped"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],ya.prototype,"onMenuBackTap",null);
_.t([_.nK("yt-submenu-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],ya.prototype,"onSubmenuClosed",null);_.t([_.nK("yt-retrieve-location"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],ya.prototype,"onRetrieveLocation",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ya.prototype,"refitAfterRender",null);
_.t([_.Z({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],ya);
_.T(ya,"ytd-multi-page-menu-renderer",function(){if(Kvg!==void 0)return Kvg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-page-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="header" hidden="[[hideMenu]]" class="style-scope ytd-multi-page-menu-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[hideMenu]]" on-touchstart="onContainerTouchStart" on-touchend="onContainerTouchEnd">\n  <div id="sections" class="style-scope ytd-multi-page-menu-renderer"></div>\n  <div id="footer" class="style-scope ytd-multi-page-menu-renderer"></div>\n</div>\n<div id="submenu" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[!covered]]"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Kvg=d},{mode:1});var Og0;var bc=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return d};
_.m(bc,_.B);_.G=bc.prototype;_.G.created=function(){this.showTooltips=!0};
_.G.computeAccessibility_=function(d){return this.get("accessibility.accessibilityData",d)||null};
_.G.onTap=function(){var d=_.qo(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(d&&d.length===1&&d[0])_.oF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var H;if((H=this.data)==null?0:H.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var K;((K=this.data)==null?0:K.menuRequest)&&_.aF(this.hostElement,[this.data.menuRequest])}}};
_.G.handleTopbarMenuClosedAction=function(d){var H,K;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(d)===((H=this.data)==null?void 0:(K=H.icon)==null?void 0:K.iconType)&&this.toggleIconState(!1)};
_.G.toggleIconState=function(d){_.h("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=d)};
_.G.handleUpdateTopbarAvatarAction=function(d){var H;d=(H=_.M(d,t$G))==null?void 0:H.avatarUrl;var K,c;H=(K=this.data)==null?void 0:(c=K.avatar)==null?void 0:c.thumbnails;d&&H&&(K={thumbnails:[Object.assign({},H[0],{url:d})]},this.set("data.avatar",K))};
_.H3.Object.defineProperties(bc.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Gn(this.hostElement).querySelector("#button")}}});
bc.prototype.onTap=bc.prototype.onTap;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],bc.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],bc.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Ke),_.O("design:type",Object)],bc.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(_.qfg.YtButtonBehavior),_.O("design:type",Object)],bc.prototype,"ytButtonBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],bc.prototype,"data",void 0);
_.t([_.VP("yt-icon-button#button"),_.O("design:type",Object)],bc.prototype,"iconButton",void 0);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bc.prototype,"onTap",null);_.t([_.Z({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],bc);
_.oq()(bc,"ytd-topbar-menu-button-renderer",function(){if(Og0===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-menu-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.avatar]]" class="style-scope ytd-topbar-menu-button-renderer">\n  <button id="avatar-btn" aria-haspopup="true" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope ytd-topbar-menu-button-renderer">\n    <yt-img-shadow height="32" thumbnail="[[data.avatar]]" width="32" class="style-scope ytd-topbar-menu-button-renderer"></yt-img-shadow>\n  </button>\n</template>\n<div id="button" class="style-scope ytd-topbar-menu-button-renderer">\n  \n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);Og0=d}d=Og0;return d},{allowedProps:["data"],
mode:1});var Sdq;var NB=function(){return _.B.apply(this,arguments)||this};
_.m(NB,_.B);NB.prototype.getSelected=function(){return this.reasons.selected};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],NB.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],NB.prototype,"data",void 0);_.t([_.VP("#reasons"),_.O("design:type",Object)],NB.prototype,"reasons",void 0);_.t([_.Z({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],NB);
_.T(NB,"ytd-ad-feedback-content",function(){if(Sdq!==void 0)return Sdq;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  <yt-formatted-string id="reasons-title" text="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  </yt-formatted-string>\n</template>\n<tp-yt-paper-radio-group id="reasons" class="style-scope ytd-ad-feedback-content">\n  <template is="dom-repeat" items="[[data.reasons]]" as="feedbackReason" class="style-scope ytd-ad-feedback-content">\n    <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-ad-feedback-content">\n      <yt-formatted-string text="[[feedbackReason.reason]]" class="style-scope ytd-ad-feedback-content">\n      </yt-formatted-string>\n    </tp-yt-paper-radio-button>\n  </template>\n</tp-yt-paper-radio-group>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Sdq=d},{mode:1});var EQj;var Dx=function(){return _.B.apply(this,arguments)||this};
_.m(Dx,_.B);_.G=Dx.prototype;_.G.onPopupOpened=function(){_.oF(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.G.computeConfirmButton=function(d){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:d.confirmLabel}};
_.G.computeCancelButton=function(d){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:d.cancelLabel}};
_.G.onConfirmTap=function(){var d=this.content.getSelected();d!==void 0&&(d=this.data.reasons[d].endpoint)&&(_.Kj().resolve(_.cb).resolveCommand(d,{form:{element:this.hostElement}}),_.oF(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.G.sendFeedbackSubmitToastAction=function(){var d;(d=this.data)!=null&&d.completionMessage&&_.oF(this.hostElement,"yt-open-popup-action",[_.$i(this.data.completionMessage),this])};
_.G.onCancelTap=function(){_.oF(this.hostElement,"yt-close-popup-action")};
Dx.prototype.onPopupOpened=Dx.prototype.onPopupOpened;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Dx.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Dx.prototype,"data",void 0);_.t([_.VP("#content"),_.O("design:type",Object)],Dx.prototype,"content",void 0);_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Dx.prototype,"onPopupOpened",null);
_.t([_.Z({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Dx);
_.T(Dx,"ytd-ad-feedback-renderer",function(){if(EQj!==void 0)return EQj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-ad-feedback-renderer"></yt-formatted-string>\n<ytd-ad-feedback-content id="content" data="[[data]]" class="style-scope ytd-ad-feedback-renderer"></ytd-ad-feedback-content>\n<div class="buttons style-scope ytd-ad-feedback-renderer">\n  <ytd-button-renderer data="[[computeCancelButton(data)]]" on-tap="onCancelTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return EQj=d},{mode:1});var yY5;var fh=function(){return _.B.apply(this,arguments)||this};
_.m(fh,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],fh.prototype,"data",void 0);_.t([_.Z({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],fh);
_.T(fh,"ytd-ad-info-dialog-content",function(){if(yY5!==void 0)return yY5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.adReasons]]" class="style-scope ytd-ad-info-dialog-content">\n  \n  <ul id="ad-reasons" class="style-scope ytd-ad-info-dialog-content">\n    <template is="dom-repeat" items="[[data.adReasons]]" as="reason" class="style-scope ytd-ad-info-dialog-content">\n      <li class="style-scope ytd-ad-info-dialog-content">\n        <yt-formatted-string text="[[reason]]" class="style-scope ytd-ad-info-dialog-content">\n        </yt-formatted-string>\n      </li>\n    </template>\n  </ul>\n</template>\n<yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope ytd-ad-info-dialog-content">\n</yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return yY5=d},{mode:1});var bgS;var An=function(){return _.B.apply(this,arguments)||this};
_.m(An,_.B);An.prototype.computeConfirmButton=function(d){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:d.confirmLabel}};
An.prototype.onConfirmTap=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
An.prototype.computeShouldShowTitle=function(){var d;return!((d=this.data)==null||!d.title)};
An.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.Kj().resolve(_.cb).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
An.prototype.onPopupClosed=An.prototype.onPopupClosed;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],An.prototype,"data",void 0);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],An.prototype,"onPopupClosed",null);_.t([_.Z({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],An);
_.T(An,"ytd-ad-info-dialog-renderer",function(){if(bgS!==void 0)return bgS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[computeShouldShowTitle(data.title)]]" class="style-scope ytd-ad-info-dialog-renderer">\n  <h2 id="title" class="style-scope ytd-ad-info-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n</template>\n<ytd-ad-info-dialog-content data="[[data]]" class="style-scope ytd-ad-info-dialog-renderer"></ytd-ad-info-dialog-content>\n<div class="buttons style-scope ytd-ad-info-dialog-renderer">\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-info-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return bgS=d},{mode:1});var Nw1;var jH=function(){var d=_.B.apply(this,arguments)||this;d.actionButtonClass="action-button";d.dismissButtonId="dismiss-button";d.dialogDismiss=!0;return d};
_.m(jH,_.B);_.G=jH.prototype;_.G.computeInPlayer=function(d){return(d==null?void 0:d.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.G.computedLogo=function(){var d,H;return this.isDarkTheme()?(d=this.data)==null?void 0:d.logoDark:(H=this.data)==null?void 0:H.logo};
_.G.computedHeaderImage=function(){var d,H;return this.isDarkTheme()?(d=this.data)==null?void 0:d.headerImageDark:(H=this.data)==null?void 0:H.headerImage};
_.G.computeLogoIconId=function(){var d,H,K,c=(d=this.computedLogo())==null?void 0:(H=d.sources)==null?void 0:(K=H[0])==null?void 0:K.height;return c&&c%31===0?"logo-icon-with-padding":"logo-icon"};
_.G.computeLogoIconHeight=function(){var d,H,K,c=(d=this.computedLogo())==null?void 0:(H=d.sources)==null?void 0:(K=H[0])==null?void 0:K.height;return c&&c%31===0?"31":"24"};
_.G.onPopupClosed=function(){_.Kj().resolve(_.Uf).dispose()};
_.G.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.G.onShow=function(){this.inPlayer&&_.VS(6)};
_.G.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var d=0;d<this.data.impressionEndpoints.length;d++){var H=_.M(this.data.impressionEndpoints[d],_.ZX);H&&this.ytComponentBehavior.resolveCommand(H)}};
_.G.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.oF(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.H3.Object.defineProperties(jH.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var d,H;return!((d=this.data)==null||!d.headerImageDark)&&!((H=this.data)==null||!H.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.secondaryButton)}}});
jH.prototype.onPopupClosed=jH.prototype.onPopupClosed;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],jH.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],jH.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b9.YtVisibilityBehavior),_.O("design:type",Object)],jH.prototype,"ytVisibilityBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],jH.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Object)],jH.prototype,"actionButtonClass",void 0);_.t([_.r(),_.O("design:type",Object)],jH.prototype,"dismissButtonId",void 0);_.t([_.r(),_.O("design:type",Object)],jH.prototype,"dialogDismiss",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],jH.prototype,"hasHeaderImage",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],jH.prototype,"hasPremiumButton",null);
_.t([_.r({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.O("design:type",Boolean)],jH.prototype,"inPlayer",void 0);_.t([_.VP("#dismiss-button"),_.O("design:type",HTMLElement)],jH.prototype,"dismissButton",void 0);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],jH.prototype,"onPopupClosed",null);_.t([_.Z({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],jH);
_.T(jH,"ytd-enforcement-message-view-model",function(){if(Nw1!==void 0)return Nw1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Nw1=d},{mode:1});var Dz5;var fsU;var vu=function(){var d=_.B.apply(this,arguments)||this;d.TEST_ONLY={immediateValidation:function(){d.immediateValidation()},
onValidationResponse:function(H){d.onValidationResponse(H)},
onGenerateHandleFromNameResponse:function(H){d.onGenerateHandleFromNameResponse(H)}};
return d};
_.m(vu,_.B);_.G=vu.prototype;_.G.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.G.validate=function(){this.immediateValidation()};
_.G.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.G.setHandleInputValue=function(d){this.handleDir=this.getHandleDir(d);this.handleInput.value=d;this.validationState={status:"PENDING"};this.immediateValidation()};
_.G.getHandleDir=function(d){var H=d===""&&!1;return(H=_.meS.test.call(_.meS,d))?"rtl":"ltr"};
_.G.onDataChanged=function(){var d,H;this.handleDir=this.getHandleDir((H=(d=this.data)==null?void 0:d.handle)!=null?H:"");var K;this.validationState=((K=this.data)==null?0:K.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var c;((c=this.data)==null?0:c.validateOnInit)&&this.immediateValidation()};
_.G.stopPropagation=function(d){d.stopPropagation()};
_.G.onInput=function(){var d;this.handleDir=this.getHandleDir((d=this.handleInput.value)!=null?d:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.G.onFocusout=function(d){this.handleInput.contains(d.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.G.delayedValidation=function(){var d,H;this.debouncedValidation((H=(d=this.data)==null?void 0:d.validationDelayMs)!=null?H:1E3)};
_.G.immediateValidation=function(){this.debouncedValidation(0)};
_.G.debouncedValidation=function(d){var H=this;_.yP(this,"debouncedValidation",function(){var K,c=H.staticValidation((K=H.handleInput.value)!=null?K:"");if(c!==void 0)H.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:c};else{var p;if((p=H.data)!=null&&p.validateChannelHandleCommand){H.validationState={status:"LOADING"};var g;H.ytComponentBehavior.resolveCommand(H.data.validateChannelHandleCommand,{form:{handle:(g=H.handleInput.value)!=null?g:""},commandController:{onSuccess:function(a,
e){H.onValidationResponse(e)},
onServerError:function(a,e){H.onValidationServerError(e)}}})}else H.handleUnexpectedValidationError(new _.m1("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",H.data))}},d)};
_.G.staticValidation=function(d){var H;if(((H=this.data)==null?void 0:H.channelHandleStaticValidationParams)!==void 0){H=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(d)&&H.validValueRegexpErrorMessage!==void 0)return H.validValueRegexpErrorMessage;if(H.minLength!==void 0&&d.length<H.minLength&&H.minLengthErrorMessage!==void 0)return H.minLengthErrorMessage;if(H.maxLength!==void 0&&d.length>H.maxLength&&H.maxLengthErrorMessage!==void 0)return H.maxLengthErrorMessage}};
_.G.onValidationResponse=function(d){var H=_.M(d.result,Ysj);H===void 0?this.handleUnexpectedValidationError(new _.m1("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",d)):this.handleValidationResultRenderer(H)};
_.G.onValidationServerError=function(d){this.handleUnexpectedValidationError(new _.m1("ValidateChannelHandle request failed.",d))};
_.G.handleValidationResultRenderer=function(d){if(d.handle===void 0)this.handleUnexpectedValidationError(new _.m1("ChannelHandleValidationResultRenderer does not contain handle.",d));else if(d.handle===this.handleInput.value)switch(d.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:d.handle};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNAVAILABLE":case "CHANNEL_HANDLE_VALIDATION_RESULT_CONFORMANCE_ERROR":case "CHANNEL_HANDLE_VALIDATION_RESULT_COMPLIANCE_ERROR":this.validationState=
{status:"INVALID",errorIndicator:"ICON",errorMessage:d.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.m1("Unrecognized ChannelHandleValidationResult",d));break;default:_.tN(d.result)}};
_.G.handleUnexpectedValidationError=function(d){var H;this.validationState={status:"UNKNOWN",handle:(H=this.handleInput.value)!=null?H:""};_.Jf(d)};
_.G.stopEventPropagation=function(d){d.stopPropagation()};
_.G.updateHandleOnChannelNameInputChange=function(d){if(!this.wasEdited){var H,K;this.debouncedGenerateHandleFromName(d,(K=(H=this.data)==null?void 0:H.validationDelayMs)!=null?K:1E3)}};
_.G.debouncedGenerateHandleFromName=function(d,H){var K=this;_.yP(this,"debouncedGenerateHandleFromName",function(){var c;(c=K.data)!=null&&c.validateChannelHandleCommand?K.ytComponentBehavior.resolveCommand(K.data.validateChannelHandleCommand,{form:{name:d},commandController:{onSuccess:function(p,g){K.onGenerateHandleFromNameResponse(g)},
onServerError:function(p,g){_.Jf(new _.m1("Error calling GenerateHandleFromName",g))}}}):_.Jf(new _.m1("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",K.data))},H)};
_.G.onGenerateHandleFromNameResponse=function(d){this.wasEdited||((d=_.M(d.result,OsZ))?this.setHandleInputValue(d.handle):_.Jf(new _.m1("Invalid results when generate handle from name")))};
_.H3.Object.defineProperties(vu.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var d;if(d=this.validationState)d=this.validationState,d=d.status==="OK"||d.status==="UNKNOWN";if(d)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var d;if(((d=this.validationState)==null?void 0:d.status)==="INVALID")return this.validationState.errorIndicator}},
borderErrorIndicator:{configurable:!0,enumerable:!0,get:function(){return this.errorIndicator==="BORDER"}},
handleEdit:{configurable:!0,enumerable:!0,get:function(){var d,H=(d=this.channelHandleEntity)==null?void 0:d.handleEdit;this.handleDir=this.getHandleDir(H!=null?H:"");return H}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var d,H;if(((d=this.data)==null?void 0:(H=d.channelHandleStaticValidationParams)==null?void 0:H.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
vu.prototype.stopEventPropagation=vu.prototype.stopEventPropagation;vu.prototype.onDataChanged=vu.prototype.onDataChanged;vu.prototype.applyHandleEdit=vu.prototype.applyHandleEdit;vu.prototype.onValueChanged=vu.prototype.onValueChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],vu.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],vu.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],vu.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Boolean)],vu.prototype,"wasEdited",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],vu.prototype,"handleDir",void 0);_.t([_.VP("#handle-input"),_.O("design:type",Object)],vu.prototype,"handleInput",void 0);_.t([_.r(),_.I("validationState"),_.O("design:type",Object),_.O("design:paramtypes",[])],vu.prototype,"value",null);
_.t([_.CK("value"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],vu.prototype,"onValueChanged",null);_.t([_.I("validationState"),_.O("design:type",Object),_.O("design:paramtypes",[])],vu.prototype,"errorIndicator",null);_.t([_.r({reflectToAttribute:!0}),_.I("errorIndicator"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],vu.prototype,"borderErrorIndicator",null);
_.t([_.r({selectorArgs:["data.channelHandleEntityKey"],selector:function(d,H){return _.xL(d.entities,"channelHandle",H)}}),
_.O("design:type",Object)],vu.prototype,"channelHandleEntity",void 0);_.t([_.I("channelHandleEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],vu.prototype,"handleEdit",null);_.t([_.CK("handleEdit"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],vu.prototype,"applyHandleEdit",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],vu.prototype,"onDataChanged",null);
_.t([_.I("data.channelHandleStaticValidationParams.validValueRegexp"),_.O("design:type",Object),_.O("design:paramtypes",[])],vu.prototype,"validValueRegexp",null);_.t([_.nK("yt-service-request-sent"),_.nK("yt-service-request-completed"),_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],vu.prototype,"stopEventPropagation",null);_.t([_.Z({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],vu);
_.T(vu,"ytd-channel-handle-input-renderer",function(){if(fsU!==void 0)return fsU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="handle-input" always-float-label="" dir="[[handleDir]]" input-dir="[[handleDir]]" invalid="[[equals(errorIndicator, \'BORDER\')]]" label="[[data.label]]" required="" use-v2-underline="" value="[[data.handle]]" on-focusout="onFocusout" on-input="onInput" on-keydown="stopPropagation" class="style-scope ytd-channel-handle-input-renderer">\n  <span id="prefix" slot="prefix" class="style-scope ytd-channel-handle-input-renderer">@</span>\n  <div id="suffix-container" slot="suffix" class="style-scope ytd-channel-handle-input-renderer">\n    <div id="icon-container" class="style-scope ytd-channel-handle-input-renderer">\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'LOADING\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope ytd-channel-handle-input-renderer">\n        </tp-yt-paper-spinner-lite>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(errorIndicator, \'ICON\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="error-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:error">\n        </tp-yt-iron-icon>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'OK\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="valid-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:check-circle">\n        </tp-yt-iron-icon>\n      </template>\n    </div>\n  </div>\n</tp-yt-paper-input>\n<div id="error-container" class="style-scope ytd-channel-handle-input-renderer">\n  <template is="dom-if" restamp="" if="[[equals(validationState.status, \'INVALID\')]]" class="style-scope ytd-channel-handle-input-renderer">\n    <yt-formatted-string id="error-message" text="[[validationState.errorMessage]]" class="style-scope ytd-channel-handle-input-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return fsU=d},{mode:_.qk("kevlar_poly_si_batch_j025")?1:2});var dX=function(){var d=_.B.apply(this,arguments)||this;d.data=null;d.errorMessage=null;d.isLoading=!0;d.hideContainer=!1;d.enableNewChannelCreationOnIdForAll=_.h("enable_new_channel_creation_for_id4all");d.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};d.testOnly={setErrorMessage:function(H){d.resetErrorState();
d.setErrorState(H)}};
return d};
_.m(dX,_.B);_.G=dX.prototype;_.G.created=function(){this.logScreenVe()};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.toggleCreateChannelButton();this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.hostElement.parentElement.style.overflowY="auto")};
_.G.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var d;((d=this.zeroStepErrorMessageEntity)==null?0:d.value)&&this.set("errorMessage",_.AF(this.zeroStepErrorMessageEntity.value))};
_.G.onCreateTap=function(){var d=this;if(this.data&&this.data.channelCreationEndpoint){var H,K;if(!((H=this.data.createChannelButton)==null?0:(K=H.buttonRenderer)==null?0:K.isDisabled)){var c;if((c=this.nameInput)!=null&&c.value){this.setLoadingState();var p,g;H=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(p=this.handleInput)==null?void 0:p.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((g=this.handleInput)==null?void 0:g.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:H,commandController:{onSuccess:function(a,e){d.onChannelCreationEndpointSuccess(e);d.obakeImageSource&&_.Wd("channelCreatedWithObakeImage",{imageSourceType:d.obakeImageSource})},
onServerError:function(){d.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.G.endpointRequiresServiceRequestAction=function(d){return!!_.M(d,_.r5)||!!_.M(d,t$G)};
_.G.isNavigateAction=function(d){var H;return!!_.M(d,_.Gh)||!!_.M((H=_.M(d,y$1))==null?void 0:H.command,_.Gh)};
_.G.isPlaylistAction=function(d){return!!_.M(d,_.sV)||!!_.M(d,_.Y4)};
_.G.onChannelCreationEndpointSuccess=function(d){if(d.createChannelError){var H;this.setErrorState((H=d.createChannelError)==null?void 0:H.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.h("enable_secondary_channel_creation_form")&&d.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(d.navigationEndpoint);if(d.actions){H=_.q(d.actions);for(var K=H.next();!K.done;K=H.next())if(K=K.value,this.endpointRequiresServiceRequestAction(K)&&this.ytComponentBehavior.resolveCommand(K),
this.isNavigateAction(K)){var c=void 0;K=_.M((c=_.M(K,y$1))==null?void 0:c.command,_.Gh);c=void 0;this.isPlaylistAction((c=K)==null?void 0:c.endpoint)&&(_.oF(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),c=void 0,this.ytComponentBehavior.resolveCommand((c=K)==null?void 0:c.endpoint))}}d.actions&&d.actions.some(function(p){var g;return _.M(p,_.Gh)||_.M((g=_.M(p,y$1))==null?void 0:g.command,_.Gh)})||_.oF(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.G.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.G.onCancelTap=function(){var d,H,K;if(!((d=this.data)==null?0:(H=d.cancelButton)==null?0:(K=H.buttonRenderer)==null?0:K.isDisabled)){var c,p,g;d=(c=this.data)==null?void 0:(p=c.cancelButton)==null?void 0:(g=p.buttonRenderer)==null?void 0:g.command;if(!d||!_.M(d,_.W$4)){var a;this.nameInput&&((a=this.data)==null?0:a.name)&&(this.nameInput.value=this.data.name);var e;this.handleInput&&((e=this.data)==null?0:e.channelHandleInput)&&(this.handleInput.data=_.M(this.data.channelHandleInput,Ssv));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.G.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.G.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.G.onClearProfilePhotoTap=function(){var d,H,K;((d=this.data)==null?0:(H=d.clearProfilePhotoButton)==null?0:(K=H.buttonRenderer)==null?0:K.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.G.onEditAvatarTap=function(){var d,H,K;((d=this.data)==null?0:(H=d.editAvatarButton)==null?0:(K=H.buttonRenderer)==null?0:K.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.G.setLoadingState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("errorMessage",null)};
_.G.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var d;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((d=this.data)==null?0:d.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.G.setErrorState=function(d){this.resetErrorState();if(d)this.set("errorMessage",d);else{var H;if((H=this.zeroStepErrorMessageEntity)==null?0:H.value)this.set("errorMessage",_.AF(this.zeroStepErrorMessageEntity.value));else{var K;((K=this.data)==null?0:K.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.G.fetchImageBlobWithAlr=function(d,H){H=H===void 0?5:H;var K=this,c,p,g,a,e;return _.l(function(k){switch(k.nextAddress){case 1:return k.yield(fetch(d,{method:"GET",mode:"cors"}),2);case 2:c=k.yieldResult;if(c.ok){k.jumpTo(3);break}if(H===0)throw Error();p=K.addJitter(Math.pow(2,5-H));return k.yield(new Promise(function(C){setTimeout(C,p*1E3)}),4);
case 4:return k.return(K.fetchImageBlobWithAlr(d,H-1));case 3:if(!c.headers.get("content-type").split(";").some(function(C){return C.trim()==="text/plain"})){k.jumpTo(5);
break}g=K;a=g.fetchImageBlobWithAlr;return k.yield(c.text(),6);case 6:return k.return(a.call(g,k.yieldResult,H-1));case 5:return k.yield(c.blob(),7);case 7:return e=k.yieldResult,k.return(e)}})};
_.G.addJitter=function(d){var H=d*.3*Math.random();Math.random()>.5&&(H*=-1);return d+H};
_.G.openProfilePicturePicker=function(){var d=this,H,K,c,p,g;return _.l(function(a){if(a.nextAddress==1){H=d.data.scottyUploadUrl;if(!H)return a.return();K=document.documentElement.hasAttribute("dark");c=document.body.style.colorScheme;K&&(document.body.style.colorScheme="dark");p=D35(fkU(NMT(tJb(K?"dark":"light")),function(e){var k,C,R,V,U;return _.l(function(L){if(L.nextAddress==1)return k=_.Qd(lRZ(new SC(e.photoUrl,!1)).build(),"alr","yes"),d.obakeImageSource=d.pictureChangeSourceToObakeImageSourceType(e.photoSource),
_.e2(L,2),d.setLoadingState(),L.yield(d.fetchImageBlobWithAlr(k),4);if(L.nextAddress!=2)return C=L.yieldResult,R=new FileReader,R.addEventListener("load",function(){var w,W,J,F,Y,A;return _.l(function(E){if(E.nextAddress==1){if(C.size>15728640)return d.setErrorState((w=d.data)==null?void 0:w.imageSizeErrorMessage),_.Jf(Error("nl")),E.return();if(!R.result)return d.setErrorState((W=d.data)==null?void 0:W.genericImageLoadErrorMessage),_.Jf(Error("ol")),E.return();J=R.result;_.e2(E,2);return E.yield(Vvt(C,
H),4)}if(E.nextAddress!=2)return F=E.yieldResult,d.handleImageUpdatedAction(J,F),d.resetErrorState(),_.Em(E,0);Y=_.RV(E);d.setErrorState((A=d.data)==null?void 0:A.uploadErrorMessage);if(Y instanceof Error)_.z5(Y);else{var N=new _.m1(JSON.stringify(Y));_.z5(N)}_.VE(E)})}),R.readAsDataURL(C),_.Em(L,0);
V=_.RV(L);d.setErrorState((U=d.data)==null?void 0:U.genericImageLoadErrorMessage);V instanceof Error?_.z5(V):_.Xi(new _.m1(JSON.stringify(V)));_.VE(L)})}),function(){d.hideContainer=!1;
document.body.style.colorScheme=c});
_.e2(a,2);return a.yield(p.openPicker(),4)}if(a.nextAddress!=2)return _.Em(a,0);_.RV(a);d.setErrorState((g=d.data)==null?void 0:g.selectImageErrorMessage);_.VE(a)})};
_.G.pictureChangeSourceToObakeImageSourceType=function(d){switch(d){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.G.logScreenVe=function(){_.ld(_.hR(),124448)};
_.G.graftServerVe=function(){var d=_.so(),H,K,c=(H=this.data)==null?void 0:(K=H.loggingDirectives)==null?void 0:K.trackingParams;c&&d&&(this.channelCreationFormVe=_.hR().graftServerVe(c,d),d={visualElement:this.channelCreationFormVe},_.Vp().reportShown(d))};
_.G.isNameChanged=function(d){var H;return((H=this.data)==null?void 0:H.name)!==d};
_.G.isHandleChanged=function(d){var H,K=_.M((H=this.data)==null?void 0:H.channelHandleInput,Ssv);return K&&d?K.handle!==d:!1};
_.G.handleImageUpdatedAction=function(d,H){this.hideContainer=!1;this.previewDataUrl=d;this.encryptedBlobId=H};
_.G.handleImageSelectionErrorAction=function(d){this.hideContainer=!1;this.setErrorState(d)};
_.G.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.G.showContainer=function(){this.hideContainer=!1};
_.G.maybeWipeZeroStepErrorMessage=function(){var d,H=(d=this.data)==null?void 0:d.zeroStepErrorMessageEntityKey,K;H&&((K=this.zeroStepErrorMessageEntity)==null?0:K.value)&&this.ytdReduxBehavior.dispatch(_.PI("stringEntity",H,{key:H,value:""}))};
_.H3.Object.defineProperties(dX.prototype,{photoThumbnail:{configurable:!0,enumerable:!0,get:function(){if(this.previewDataUrl)return{thumbnails:[{url:this.previewDataUrl,width:180,height:180}]};if(this.data)return this.data.isDefaultProfilePhoto?this.data.defaultProfilePhoto:this.data.profilePhoto}},
userSetPhotoThumbnailUrl:{configurable:!0,enumerable:!0,get:function(){if(this.data&&!this.data.isDefaultProfilePhoto){var d;return((d=this.photoThumbnail)==null?0:d.thumbnails)&&this.photoThumbnail.thumbnails.length>0?this.photoThumbnail.thumbnails[0].url:void 0}}},
hideProfilePhotoButtonLayer:{configurable:!0,enumerable:!0,get:function(){return this.data?!(this.data.clearProfilePhotoButton||this.data.editAvatarButton):!0}},
enableIdentityForAllChannelCreationDialog:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.descriptionInfo}}});
dX.prototype.dataChanged=dX.prototype.dataChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],dX.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],dX.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],dX.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],dX.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],dX.prototype,"errorMessage",void 0);
_.t([_.r(),_.O("design:type",Object)],dX.prototype,"isLoading",void 0);_.t([_.r(),_.O("design:type",String)],dX.prototype,"previewDataUrl",void 0);_.t([_.r(),_.O("design:type",Number)],dX.prototype,"obakeImageSource",void 0);_.t([_.r(),_.O("design:type",Object)],dX.prototype,"hideContainer",void 0);_.t([_.VP("#title-input"),_.O("design:type",Object)],dX.prototype,"nameInput",void 0);_.t([_.VP("#handle-input"),_.O("design:type",Object)],dX.prototype,"handleInput",void 0);
_.t([_.r(),_.O("design:type",Boolean)],dX.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.t([_.r({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.tu}),_.O("design:type",Object)],dX.prototype,"zeroStepErrorMessageEntity",void 0);_.t([_.I("data","data.isDefaultProfilePhoto","previewDataUrl"),_.O("design:type",Object),_.O("design:paramtypes",[])],dX.prototype,"photoThumbnail",null);
_.t([_.I("data","data.isDefaultProfilePhoto","photoThumbnail"),_.O("design:type",Object),_.O("design:paramtypes",[])],dX.prototype,"userSetPhotoThumbnailUrl",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],dX.prototype,"hideProfilePhotoButtonLayer",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],dX.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.t([_.Mr("data","zeroStepErrorMessageEntity"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dX.prototype,"dataChanged",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.descriptionInfo","zeroStepErrorMessageEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],dX.prototype,"description",null);_.t([_.Z({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],dX);
_.T(dX,"ytd-channel-creation-dialog-renderer",function(){if(Dz5!==void 0)return Dz5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Dz5=d},{mode:1});var AYg;var HT=function(){var d=_.B.apply(this,arguments)||this;d.isLoading=!1;d.isDisabled=!1;return d};
_.m(HT,_.B);HT.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
HT.prototype.updateDisabled=function(){var d;this.isDisabled=this.isLoading||((d=this.handleInput)==null?void 0:d.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
HT.prototype.onSaveClick=function(){var d=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var H;((H=this.data)==null?void 0:H.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var K;if((K=d.data)==null?0:K.nextEndpoint){var c;d.ytComponentBehavior.resolveCommand((c=d.data)==null?void 0:c.nextEndpoint)}else d.isLoading=
!1,d.closeDialog()},
onServerError:function(){d.isLoading=!1;d.handleInput.validate();var K;d.errorMessage=(K=d.data)==null?void 0:K.errorMessage}}}))}};
HT.prototype.closeDialog=function(){_.oF(this.hostElement,"yt-close-popup-action",[this.is])};
HT.prototype.updateDisabled=HT.prototype.updateDisabled;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],HT.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],HT.prototype,"data",void 0);_.t([_.VP("#handle-input"),_.O("design:type",Object)],HT.prototype,"handleInput",void 0);_.t([_.CK("isLoading"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],HT.prototype,"updateDisabled",null);
_.t([_.Z({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],HT);
_.T(HT,"ytd-channel-handle-edit-dialog-renderer",function(){if(AYg!==void 0)return AYg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n  <div id="header" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.dismissButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="body" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-img-shadow id="profile-picture" height="128" thumbnail="[[data.profilePicture]]" width="128" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    </yt-img-shadow>\n\n    <div id="name" class="style-scope ytd-channel-handle-edit-dialog-renderer">[[data.channelTitle]]</div>\n\n    <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-channel-handle-input-renderer>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.existingHandle]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div id="existing-handle" dir="ltr" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n        [[data.existingHandle]]\n      </div>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </yt-formatted-string>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="error-message" text="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    </template>\n\n    <template is="dom-repeat" items="[[data.infoItems]]" as="infoItem" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div class="info-item style-scope ytd-channel-handle-edit-dialog-renderer">\n        <yt-icon class="info-item-icon style-scope ytd-channel-handle-edit-dialog-renderer" icon="[[infoItem.icon.iconType]]">\n        </yt-icon>\n        <yt-formatted-string class="info-item-text style-scope ytd-channel-handle-edit-dialog-renderer" text="[[infoItem.infoText]]">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n\n  <div id="footer" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <template is="dom-if" restamp="" if="[[data.cancelButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.saveButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSaveClick" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="spinner-container" hidden="[[!isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return AYg=d},{mode:1});var jMO;var $u=function(){return _.B.apply(this,arguments)||this};
_.m($u,_.B);$u.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],$u.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],$u.prototype,"data",void 0);_.t([_.Z({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],$u);
_.T($u,"ytd-channel-switcher-footer-renderer",function(){if(jMO!==void 0)return jMO;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n<div id="feedback" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return jMO=d},{mode:1});var vQZ;var dH1;var K0=function(){return _.B.apply(this,arguments)||this};
_.m(K0,_.B);K0.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
K0.prototype.onIronChange=K0.prototype.onIronChange;_.t([_.r(),_.O("design:type",Object)],K0.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!1}),_.O("design:type",Function)],K0.prototype,"onDontAskAgainChanged",void 0);_.t([_.VP("#checkbox"),_.O("design:type",Object)],K0.prototype,"checkbox",void 0);_.t([_.nK("iron-change"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],K0.prototype,"onIronChange",null);
_.t([_.Z({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],K0);
_.T(K0,"ytd-identity-prompt-footer-renderer",function(){if(dH1!==void 0)return dH1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-prompt-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-identity-prompt-footer-renderer">\n  <yt-formatted-string text="[[data.dontShowAgainText]]" class="style-scope ytd-identity-prompt-footer-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return dH1=d},{mode:1});var cT=function(){var d=_.B.apply(this,arguments)||this;d.dontAskAgain=!1;d.showPopup=!1;d.boundDontAskAgainChanged=function(H){d.dontAskAgainChanged(H)};
d.boundOnAccountItemTap=function(H){d.onAccountItemTap(H)};
return d};
_.m(cT,_.B);_.G=cT.prototype;
_.G.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{accountItemSectionRenderer:{component:"ytd-account-item-section-renderer",properties:{onAccountItemTap:"[[boundOnAccountItemTap]]"}}}},"data.header":{id:"header",mapping:{simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer"}},"data.footer":{id:"footer",mapping:{channelSwitcherFooterRenderer:"ytd-channel-switcher-footer-renderer",identityPromptFooterRenderer:{component:"ytd-identity-prompt-footer-renderer",properties:{onDontAskAgainChanged:"[[boundDontAskAgainChanged]]"}}}}}};
_.G.ready=function(){var d=this;_.Gn(this.hostElement).querySelector("#container").addEventListener("scroll",function(){d.ytRendererBehavior.markDirty()})};
_.G.dontAskAgainChanged=function(d){this.dontAskAgain=d};
_.G.onAccountItemTap=function(d){if(d){var H={};this.dontAskAgain&&(H={dont_ask_again:this.dontAskAgain});_.bO(d,H)}};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.G.redirectOnlyAccount=function(d){d.sections&&d.sections.length>0&&(d=_.M(d.sections[0],_.m5l),(d==null?0:d.contents)&&(d==null?void 0:d.contents.length)<=1?(d=_.NM(window.location.href),(d==null?0:d.next)&&_.Uof(d.next)?_.bO(d.next):_.bO("/")):this.showPopup=!0)};
cT.prototype.dataChanged=cT.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],cT.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],cT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],cT.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!1}),_.O("design:type",Object)],cT.prototype,"dontAskAgain",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],cT.prototype,"showPopup",void 0);_.t([_.r({reflectToAttribute:!1}),_.O("design:type",Object)],cT.prototype,"boundDontAskAgainChanged",void 0);_.t([_.r({reflectToAttribute:!1}),_.O("design:type",Object)],cT.prototype,"boundOnAccountItemTap",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cT.prototype,"dataChanged",null);
_.t([_.Z({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],cT);
_.T(cT,"ytd-channel-switcher-renderer",function(){if(vQZ!==void 0)return vQZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-channel-switcher-renderer">\n  <div id="sections" class="style-scope ytd-channel-switcher-renderer"></div>\n</div>\n<div id="footer" class="style-scope ytd-channel-switcher-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return vQZ=d},{mode:1});var HkZ;var p0=function(){return _.B.apply(this,arguments)||this};
_.m(p0,_.B);_.H3.Object.defineProperties(p0.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.t([_.r(),_.O("design:type",Object)],p0.prototype,"data",void 0);_.t([_.I("data"),_.O("design:type",Array),_.O("design:paramtypes",[])],p0.prototype,"steps",null);_.t([_.Z({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],p0);
_.T(p0,"ytd-channel-transfer-stepper-renderer",function(){if(HkZ!==void 0)return HkZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-transfer-stepper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="stepper style-scope ytd-channel-transfer-stepper-renderer">\n  <template is="dom-repeat" items="[[steps]]" as="step" class="style-scope ytd-channel-transfer-stepper-renderer">\n    <div class="step-and-separator style-scope ytd-channel-transfer-stepper-renderer">\n      <div class="step style-scope ytd-channel-transfer-stepper-renderer" state$="[[step.state]]">\n        <yt-formatted-string class="step-title style-scope ytd-channel-transfer-stepper-renderer" text="[[step.title]]"></yt-formatted-string>\n        <div class="step-badge style-scope ytd-channel-transfer-stepper-renderer"></div>\n      </div>\n      <div class="separator style-scope ytd-channel-transfer-stepper-renderer"></div>\n    </div>\n  </template>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return HkZ=d},{mode:1});var $Ht;var gX=function(){var d=_.B.apply(this,arguments)||this;d.data=null;d.isError=!1;d.isLoading=!1;return d};
_.m(gX,_.B);_.G=gX.prototype;_.G.configureRendererStamper=function(){return{"data.personalAccountTile.selectButton":{id:"personal-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.brandAccountTile.selectButton":{id:"brand-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.G.computeProfileName=function(d){return d?d.givenNameValue+" "+d.familyNameValue:""};
_.G.onYtServiceRequestSent=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("isError",!1)};
_.G.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
gX.prototype.onYtServiceRequestError=gX.prototype.onYtServiceRequestError;gX.prototype.onYtServiceRequestSent=gX.prototype.onYtServiceRequestSent;gX.prototype.dataChanged=gX.prototype.dataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],gX.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],gX.prototype,"data",void 0);
_.t([_.r({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.O("design:type",String)],gX.prototype,"profileName",void 0);_.t([_.r(),_.O("design:type",Object)],gX.prototype,"isError",void 0);_.t([_.r(),_.O("design:type",Object)],gX.prototype,"isLoading",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gX.prototype,"dataChanged",null);
_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],gX.prototype,"onYtServiceRequestSent",null);_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],gX.prototype,"onYtServiceRequestError",null);_.t([_.Z({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],gX);
_.T(gX,"ytd-channel-warm-welcome-cont-renderer",function(){if($Ht!==void 0)return $Ht;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-cont-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-cont-renderer">\n  <div class="popup-header style-scope ytd-channel-warm-welcome-cont-renderer">\n    <h2 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="tiles style-scope ytd-channel-warm-welcome-cont-renderer">\n    <div id="personal-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="personal_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="personal_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-profile-picture style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow class="profile-photo style-scope ytd-channel-warm-welcome-cont-renderer" height="96" style="border-radius: 50%" thumbnail="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.profilePhoto]]" width="96">\n          </yt-img-shadow>\n        </div>\n        <div class="tile-profile-name style-scope ytd-channel-warm-welcome-cont-renderer">[[profileName]]</div>\n        <div class="tos style-scope ytd-channel-warm-welcome-cont-renderer">\n          <template is="dom-repeat" items="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.additionalInfos]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></yt-formatted-string>\n          </template>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="personal-account-tile-select-button" class="style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <span class="tile-separator style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n    <div id="brand-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="brand_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="brand_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-illustration style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow height="164" thumbnail="[[data.brandAccountTile.illustration]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="brand-account-tile-select-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <div class="spinner-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isLoading]]">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n  <div class="error-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isError]]">\n    <yt-formatted-string class="error style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.errorMessage]]"></yt-formatted-string>\n  </div>\n  <div class="disclaimer-layer style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!data.disclaimer]]">\n      <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div class="button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n    <span id="cancel-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return $Ht=d},{mode:1});var K3T;var iY=function(){var d=_.B.apply(this,arguments)||this;d.data=null;return d};
_.m(iY,_.B);iY.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
iY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],iY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],iY.prototype,"data",void 0);_.t([_.Z({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],iY);
_.T(iY,"ytd-channel-warm-welcome-renderer",function(){if(K3T!==void 0)return K3T;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-renderer">\n  <div class="illustration style-scope ytd-channel-warm-welcome-renderer">\n    <yt-img-shadow height="254" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-warm-welcome-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-warm-welcome-renderer">\n    <div class="popup-header style-scope ytd-channel-warm-welcome-renderer">\n      <h2 class="style-scope ytd-channel-warm-welcome-renderer">\n        <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="popup-description style-scope ytd-channel-warm-welcome-renderer">\n      <yt-formatted-string id="description" class="popup-description-text style-scope ytd-channel-warm-welcome-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="button-layer style-scope ytd-channel-warm-welcome-renderer">\n      <div id="next-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n      <div id="cancel-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n    </div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return K3T=d},{mode:1});var cqg;var GD=function(){return _.B.apply(this,arguments)||this};
_.m(GD,_.B);_.H3.Object.defineProperties(GD.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.authorThumbnail)||{}}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],GD.prototype,"data",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],GD.prototype,"thumbnailDetails",null);_.t([_.Z({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],GD);
_.T(GD,"ytd-comment-preview-renderer",function(){if(cqg!==void 0)return cqg;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="avatar-block style-scope ytd-comment-preview-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-comment-preview-renderer" fit="" thumbnail="[[thumbnailDetails]]">\n  </yt-img-shadow>\n</div>\n<div class="content-block style-scope ytd-comment-preview-renderer">\n  <div class="username style-scope ytd-comment-preview-renderer">[[data.authorName]]</div>\n  <div class="preview-text style-scope ytd-comment-preview-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.commentText]]" class="style-scope ytd-comment-preview-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return cqg=d},{mode:1});var pAt;var lY=function(){return _.B.apply(this,arguments)||this};
_.m(lY,_.B);lY.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H3.Object.defineProperties(lY.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.submitButton}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],lY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],lY.prototype,"data",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],lY.prototype,"submitButton",null);_.t([_.Z({is:"ytd-notice-renderer",disableElementRegistration:!0})],lY);
_.T(lY,"ytd-notice-renderer",function(){if(pAt!==void 0)return pAt;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notice-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="left style-scope ytd-notice-renderer">\n  <img alt="" class="illustration style-scope ytd-notice-renderer" src$="[[data.illustrationUrl]]">\n</div>\n\n<div class="right style-scope ytd-notice-renderer">\n  <yt-icon class="youtube-logo right-item style-scope ytd-notice-renderer" icon="yt-logos-ext:yt-logo-updated"></yt-icon>\n    <div class="notice-content right-item style-scope ytd-notice-renderer">\n      <yt-formatted-string class="notice-title style-scope ytd-notice-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="notice-description style-scope ytd-notice-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="toolbar right-item style-scope ytd-notice-renderer">\n      <div id="submit-button" class="style-scope ytd-notice-renderer"></div>\n    </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return pAt=d},{mode:1});var ga0;var es=function(){return _.B.apply(this,arguments)||this};
_.m(es,_.B);es.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],es.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],es.prototype,"data",void 0);_.t([_.Z({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],es);
_.T(es,"ytd-preview-comment-dialog-content",function(){if(ga0!==void 0)return ga0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="text-area style-scope ytd-preview-comment-dialog-content">\n  <div class="title style-scope ytd-preview-comment-dialog-content">[[data.title]]</div>\n  <div id="comment-preview" class="style-scope ytd-preview-comment-dialog-content"></div>\n  <div class="messages style-scope ytd-preview-comment-dialog-content">\n    <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-preview-comment-dialog-content">\n      <yt-formatted-string class="message style-scope ytd-preview-comment-dialog-content" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ga0=d},{mode:1});var ikv;var ku=function(){return _.B.apply(this,arguments)||this};
_.m(ku,_.B);ku.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
ku.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ku.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ku.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ku.prototype,"data",void 0);_.t([_.Z({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],ku);
_.T(ku,"ytd-preview-comment-dialog-renderer",function(){if(ikv!==void 0)return ikv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-preview-comment-dialog-content data="[[data]]" class="style-scope ytd-preview-comment-dialog-renderer">\n</ytd-preview-comment-dialog-content>\n<div class="bottom style-scope ytd-preview-comment-dialog-renderer">\n  <div id="buttons" class="style-scope ytd-preview-comment-dialog-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return ikv=d},{mode:1});var GY5;var oat=_.h("web_button_rework")&&_.Qx("BUTTON_REWORK")||_.h("web_button_rework_with_live"),xu=function(){var d=_.B.apply(this,arguments)||this;d.closeLabel=_.Vz("CLOSE");d.selectedAmountIndex=1;d.privacyCheckboxValue=!1;d.useAmsterdamStyle=oat;d.amountPlaceholderIndex=-1;return d};
_.m(xu,_.B);_.G=xu.prototype;_.G.onAmountClick=function(d){this.selectedAmountIndex=_.Gn(this.hostElement).querySelector("#amounts").indexForElement(d.currentTarget)};
_.G.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.oF(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.G.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.oF(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.oF(this.hostElement,"yt-close-popup-action",[this.is]);var d;(d=_.Kf())==null||d.getPlayerPromise().then(function(H){H.pauseVideo()})}};
_.G.donationCallback=function(d){d.success?(this.hostElement.hasAttribute("live-chat")&&d.response&&d.response.data&&d.response.data.actions&&_.oF(this.hostElement,"yt-live-chat-open-popup",[d.response.data.actions[0]]),_.oF(this.hostElement,"yt-close-popup-action",[this.is]),_.oF(this.hostElement,"yt-live-chat-close-buy-flow")):d.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(d.errorMessageRenderer)};
_.G.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Gn(this.hostElement).querySelector("#custom-amount-input").focus()};
_.G.updateConfirmationDialogTextWithAmount=function(d){var H=this.getConfirmDialogRuns();H&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(H),"text"],this.getFormattedAmount(d))};
_.G.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.G.getAmountPlaceholderIndex=function(d){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=d.findIndex(function(H){return H.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.G.getFormattedAmount=function(d){var H;return(new _.Ec(4,((H=this.data)==null?void 0:H.currencyCode)||"")).format(d)};
_.G.isAmountValid=function(d){if(d==="")return!1;d=Number(d)*1E6;var H=this.get("minAmountMicros",this.data),K=this.get("maxAmountMicros",this.data);return H&&d<H||K&&d>K?!1:!0};
_.G.setInputError=function(){this.shouldShowValidationError?_.Gn(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Gn(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.G.setInitialCheckboxValue=function(){var d;this.privacyCheckboxValue=!((d=this.data)==null||!d.privacyCheckboxInitialState)};
_.G.updateCustomAmountInputFromBinding=function(d){this.customAmountInput=d.detail.value};
_.G.updatePrivacyCheckboxValueFromBinding=function(d){this.privacyCheckboxValue=d.detail.value};
_.H3.Object.defineProperties(xu.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var d=this,H,K;return((H=this.data)==null?void 0:(K=H.suggestedAmounts)==null?void 0:K.map(function(c,p){return{buttonRenderer:{style:d.selectedAmountIndex===p?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:c.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.privacyCheckboxText)}},
amountMicros:{configurable:!0,enumerable:!0,get:function(){return this.customAmount?this.isAmountValid(this.customAmount)?Number(this.customAmount)*1E6:null:Number(this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data))}},
customAmount:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected?this.customAmountInput||"":null}},
shouldShowValidationError:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null||this.customAmount===""?!1:!this.isAmountValid(this.customAmount)}},
isDonateButtonEnabled:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null?!0:this.isAmountValid(this.customAmount)}},
donateCommand:{configurable:!0,enumerable:!0,get:function(){var d=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(d&&this.amountMicros!==null)return Object.assign({},d,{ypcGetCartEndpoint:Object.assign({},d.ypcGetCartEndpoint,{donationAmountMicros:this.amountMicros,productData:{donationData:{isAnonymousDonation:!this.privacyCheckboxValue}}})})}},
donateCommandWithConfirmation:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected&&this.confirmLargeAmountCommand&&this.amountMicros&&this.amountMicros>=this.largeDonationThreshold?this.confirmLargeAmountCommand:this.donateCommand}},
largeDonationThreshold:{configurable:!0,enumerable:!0,get:function(){return 100*this.get("minAmountMicros",this.data)}},
confirmLargeAmountCommand:{configurable:!0,enumerable:!0,get:function(){var d=this.get("confirmLargeAmount",this.data);if(d&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),d}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var d=this.get("donateButton.buttonRenderer",this.data);if(d)return Object.assign({},d,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
xu.prototype.setInitialCheckboxValue=xu.prototype.setInitialCheckboxValue;xu.prototype.setInputError=xu.prototype.setInputError;xu.prototype.setFocusOnCustomAmountInput=xu.prototype.setFocusOnCustomAmountInput;_.t([_.u(k40),_.O("design:type",Object)],xu.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],xu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],xu.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],xu.prototype,"closeLabel",void 0);_.t([_.r(),_.O("design:type",Object)],xu.prototype,"selectedAmountIndex",void 0);_.t([_.r(),_.O("design:type",String)],xu.prototype,"customAmountInput",void 0);_.t([_.r(),_.O("design:type",Object)],xu.prototype,"privacyCheckboxValue",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],xu.prototype,"useAmsterdamStyle",void 0);_.t([_.CK("customAmount"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xu.prototype,"setFocusOnCustomAmountInput",null);_.t([_.I("data","selectedAmountIndex"),_.O("design:type",Array),_.O("design:paramtypes",[])],xu.prototype,"suggestedAmountButtons",null);
_.t([_.I("data","selectedAmountIndex"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xu.prototype,"isCustomAmountSelected",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xu.prototype,"showPrivacyCheckbox",null);_.t([_.I("data","selectedAmountIndex","customAmount"),_.O("design:type",Object),_.O("design:paramtypes",[])],xu.prototype,"amountMicros",null);
_.t([_.I("isCustomAmountSelected","customAmountInput"),_.O("design:type",Object),_.O("design:paramtypes",[])],xu.prototype,"customAmount",null);_.t([_.I("customAmount"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xu.prototype,"shouldShowValidationError",null);_.t([_.I("customAmount"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xu.prototype,"isDonateButtonEnabled",null);
_.t([_.I("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.O("design:type",Object),_.O("design:paramtypes",[])],xu.prototype,"donateCommand",null);_.t([_.I("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.O("design:type",Object),_.O("design:paramtypes",[])],xu.prototype,"donateCommandWithConfirmation",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],xu.prototype,"largeDonationThreshold",null);
_.t([_.I("customAmount","donateCommand","amountMicros"),_.O("design:type",Object),_.O("design:paramtypes",[])],xu.prototype,"confirmLargeAmountCommand",null);_.t([_.I("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.O("design:type",Object),_.O("design:paramtypes",[])],xu.prototype,"donateButtonRenderer",null);_.t([_.CK("shouldShowValidationError"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xu.prototype,"setInputError",null);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xu.prototype,"setInitialCheckboxValue",null);_.t([_.Z({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],xu);
_.T(xu,"ytd-donation-amount-picker-renderer",function(){if(GY5!==void 0)return GY5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return GY5=d},{mode:1});var qnZ;var n0=function(){return _.B.apply(this,arguments)||this};
_.m(n0,_.B);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],n0.prototype,"ytComponentBehavior",void 0);_.t([_.r({}),_.O("design:type",Object)],n0.prototype,"data",void 0);_.t([_.Z({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],n0);
_.T(n0,"ytd-donation-post-transaction-content",function(){if(qnZ!==void 0)return qnZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-row" class="style-scope ytd-donation-post-transaction-content">\n  <yt-img-shadow thumbnail="[[data.donationIcon]]" width="52" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n</div>\n<div id="messages" class="style-scope ytd-donation-post-transaction-content">\n  <div id="message" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.thankYouMessage)]]\n  </div>\n  <div id="additional-info" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.additionalInfo)]]\n  </div>\n</div>\n<div id="thankyou-messages" class="style-scope ytd-donation-post-transaction-content">\n  <div class="thankyou-message style-scope ytd-donation-post-transaction-content">\n    <div class="avatar style-scope ytd-donation-post-transaction-content">\n      <yt-img-shadow thumbnail="[[data.creatorMessage.thumbnail]]" width="32" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n    </div>\n    <div class="content style-scope ytd-donation-post-transaction-content">\n      <div class="body style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.description)]]\n      </div>\n      <div class="user style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.title)]]\n      </div>\n    </div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return qnZ=d},{mode:1});var anS;var C0=function(){return _.B.apply(this,arguments)||this};
_.m(C0,_.B);C0.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],C0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.t([_.r({}),_.O("design:type",Object)],C0.prototype,"data",void 0);_.t([_.Z({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],C0);
_.T(C0,"ytd-donation-post-transaction-renderer",function(){if(anS!==void 0)return anS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-post-transaction-renderer">\n  <div id="title" class="style-scope ytd-donation-post-transaction-renderer">\n    <yt-icon-button dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer">\n      <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-post-transaction-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <ytd-donation-post-transaction-content data="[[data]]" class="style-scope ytd-donation-post-transaction-renderer">\n  </ytd-donation-post-transaction-content>\n  <div id="button-row" class="style-scope ytd-donation-post-transaction-renderer">\n    <div id="done-button" dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer"></div>\n    <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" class="style-scope ytd-donation-post-transaction-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return anS=d},{mode:1});var lnt;var eMq;var Ri=function(){return _.B.apply(this,arguments)||this};
_.m(Ri,_.B);Ri.prototype.computeIsStreamingProvider=function(d){return!!d.isStreamingShelf};
Ri.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ri.prototype,"data",void 0);_.t([_.r({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Ri.prototype,"isStreamingProvider",void 0);
_.t([_.Z({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],Ri);
_.T(Ri,"ytd-media-provider-renderer",function(){if(eMq!==void 0)return eMq;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-provider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="provider style-scope ytd-media-provider-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-media-provider-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-media-provider-renderer">\n    <div id="action-button" class="style-scope ytd-media-provider-renderer"></div>\n    <p id="media-price" hidden="[[!data.mediaPrice]]" class="style-scope ytd-media-provider-renderer">\n      [[getSimpleString(data.mediaPrice)]]\n    </p>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return eMq=d},{mode:1});var kY1;var V9=function(){return _.B.apply(this,arguments)||this};
_.m(V9,_.B);V9.prototype.observeLightsourcePalette=function(){var d,H=(d=this.data)==null?void 0:d.vibrantsourceColorPaletteData;H&&_.Bg(this.hostElement,H)};
V9.prototype.observeLightsourcePalette=V9.prototype.observeLightsourcePalette;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],V9.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],V9.prototype,"data",void 0);
_.t([_.CK("data.vibrantsourceColorPaletteData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],V9.prototype,"observeLightsourcePalette",null);_.t([_.Z({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],V9);
_.T(V9,"ytd-streaming-pop-up-dialog",function(){if(kY1!==void 0)return kY1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-streaming-pop-up-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-streaming-pop-up-dialog">\n  <div class="image-wrapper style-scope ytd-streaming-pop-up-dialog">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-streaming-pop-up-dialog" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-streaming-pop-up-dialog" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-streaming-pop-up-dialog"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-streaming-pop-up-dialog">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="providers style-scope ytd-streaming-pop-up-dialog">\n    <template is="dom-repeat" items="[[data.mediaProviders]]" as="mediaProviders" class="style-scope ytd-streaming-pop-up-dialog">\n      <ytd-media-provider-renderer data="[[mediaProviders.mediaProviderRenderer]]" class="style-scope ytd-streaming-pop-up-dialog">\n      </ytd-media-provider-renderer>\n    </template>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return kY1=d},{mode:1});var UM=function(){return _.B.apply(this,arguments)||this};
_.m(UM,_.B);UM.prototype.onPopupOpened_=function(){var d;((d=this.data)==null?0:d.serviceEndpoint)&&_.Kj().resolve(_.cb).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
UM.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
UM.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.content":{id:"content",mapping:{streamingPopUpDialog:{component:"ytd-streaming-pop-up-dialog"}}}}};
UM.prototype.onPopupOpened_=UM.prototype.onPopupOpened_;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],UM.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.yH),_.O("design:type",Object)],UM.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],UM.prototype,"data",void 0);
_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],UM.prototype,"onPopupOpened_",null);_.t([_.Z({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],UM);
_.T(UM,"ytd-brandconnect-popup-renderer",function(){if(lnt!==void 0)return lnt;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-brandconnect-popup-renderer">\n  <yt-formatted-string id="title" text="[[data.popUpTitle]]" class="style-scope ytd-brandconnect-popup-renderer"></yt-formatted-string>\n  <div id="dismiss-button" class="style-scope ytd-brandconnect-popup-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-brandconnect-popup-renderer">\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return lnt=d},{mode:1});var xHj;var hl=function(){return _.B.apply(this,arguments)||this};
_.m(hl,_.B);_.G=hl.prototype;_.G.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.dataChanged=function(){for(var d=0;d<this.getOptionRenderers().length;d++)this.notifyPath("data.options."+d+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+d+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.G.updateSubmitButton=function(d){this.set("data.submitButton.buttonRenderer.isDisabled",!d)};
_.G.computeAlt=function(d){return _.jG(d)};
_.G.onDismissTap=function(){_.oF(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.Kj().resolve(_.cb).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.G.getOptionRenderers=function(d){return(d=d||this.data)&&d.options?d.options.reduce(function(H,K){K.checkboxSurveyOptionRenderer&&H.push(K.checkboxSurveyOptionRenderer);return H},[]):[]};
_.G.onOptionChange=function(d){var H=this,K=!1;if(d.detail.checked)for(var c=this.getOptionRenderers().find(function(e){return e.value===d.detail.value}),p=this.getOptionRenderers(),g=0;g<p.length;g++){var a=p[g];
this.notifyPath("data.options."+g+".checkboxSurveyOptionRenderer.checked");a.checked&&((c==null?0:c.isExclusiveOption)?!a.isExclusiveOption:a.isExclusiveOption)?this.set("data.options."+g+".checkboxSurveyOptionRenderer.checked",!1):a.checked&&(K=!0)}else K=this.getOptionRenderers().some(function(e,k){H.notifyPath("data.options."+k+".checkboxSurveyOptionRenderer.checked");return e.checked});
this.updateSubmitButton(K)};
_.G.onSubmitTap=function(){var d=this.getOptionRenderers().filter(function(g){return g.checked});
if(d.length!==0){var H=d.map(function(g){return g.responseEndpoint});
d=[];for(var K=1;K<H.length;K++){var c=void 0,p=(c=_.M(H[K],_.Ww))==null?void 0:c.feedbackToken;p&&d.push(p)}H=[H[0]];d.length&&H.push({extra_feedback_tokens:d});_.aF(this.hostElement,H);_.oF(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);d=this.data&&this.data.submitActions||[];if(_.h("kevlar_command_handler_migration_killswitch"))_.l5(this.hostElement,d,this.hostElement);else for(d=_.q(d),H=d.next();!H.done;H=d.next())this.ytComponentBehavior.resolveCommand(H.value)}};
hl.prototype.onOptionChange=hl.prototype.onOptionChange;hl.prototype.dataChanged=hl.prototype.dataChanged;_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],hl.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],hl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],hl.prototype,"ytComponentBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],hl.prototype,"ytRendererBehavior",void 0);_.t([_.u(zmq),_.O("design:type",Object)],hl.prototype,"ytdHatsSurveyBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],hl.prototype,"data",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hl.prototype,"dataChanged",null);
_.t([_.nK("ytd-checkbox-survey-option-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],hl.prototype,"onOptionChange",null);_.t([_.Z({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],hl);
_.T(hl,"ytd-checkbox-survey-renderer",function(){if(xHj!==void 0)return xHj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-checkbox-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-checkbox-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-checkbox-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-checkbox-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-checkbox-survey-renderer"></div>\n<div id="footer" class="style-scope ytd-checkbox-survey-renderer">\n  <ytd-button-renderer data="[[data.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-checkbox-survey-renderer">\n  </ytd-button-renderer>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return xHj=d},{mode:1});var na1;var CRZ;var L0=function(){return _.B.apply(this,arguments)||this};
_.m(L0,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.t([_.u(BbO),_.O("design:type",Object)],L0.prototype,"ytdDismissalReasonBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],L0.prototype,"data",void 0);_.t([_.Z({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],L0);
_.T(L0,"ytd-dismissal-reason-text-renderer",function(){if(CRZ!==void 0)return CRZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-text-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-dismissal-reason-text-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return CRZ=d},{mode:1});var RMG;var MD=function(){return _.B.apply(this,arguments)||this};
_.m(MD,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);_.t([_.u(BbO),_.O("design:type",Object)],MD.prototype,"ytdDismissalReasonBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],MD.prototype,"data",void 0);_.t([_.Z({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],MD);
_.T(MD,"ytd-dismissal-reason-video-renderer",function(){if(RMG!==void 0)return RMG;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-formatted-string id="label" text="[[data.text]]" class="style-scope ytd-dismissal-reason-video-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-checkbox>\n<div id="video" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-img-shadow thumbnail="[[data.videoThumb]]" width="120" class="style-scope ytd-dismissal-reason-video-renderer"></yt-img-shadow>\n  <div id="video-metadata" class="style-scope ytd-dismissal-reason-video-renderer">\n    <yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.videoTitle]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="video-creator" ellipsis-truncate="" text="[[data.creatorLine]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return RMG=d},{mode:1});var mj=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");return d};
_.m(mj,_.B);_.G=mj.prototype;_.G.created=function(){this.selectedFeedbackTokens=new ie};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.G.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.G.onDismissalReasonSelected=function(d,H){_.GT(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(H);this.hasReasonsSelected=!0};
_.G.onDismissalReasonDeselected=function(d,H){_.GT(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(H);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.G.onCancelTap=function(){_.oF(this.hostElement,"yt-close-popup-action")};
_.G.onSubmitTap=function(){var d=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(d={feedback_tokens:d},_.Kj().resolve(_.cb).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},d,{element:this.hostElement})}));_.oF(this.hostElement,"yt-close-popup-action")};
mj.prototype.onDismissalReasonDeselected=mj.prototype.onDismissalReasonDeselected;mj.prototype.onDismissalReasonSelected=mj.prototype.onDismissalReasonSelected;mj.prototype.dataChanged=mj.prototype.dataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],mj.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Boolean)],mj.prototype,"hasReasonsSelected",void 0);_.t([_.r(),_.O("design:type",ie)],mj.prototype,"selectedFeedbackTokens",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],mj.prototype,"darkerDarkTheme",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mj.prototype,"dataChanged",null);
_.t([_.nK("yt-dismissal-reason-selected"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,String]),_.O("design:returntype")],mj.prototype,"onDismissalReasonSelected",null);_.t([_.nK("yt-dismissal-reason-deselected"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,String]),_.O("design:returntype")],mj.prototype,"onDismissalReasonDeselected",null);_.t([_.Z({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],mj);
_.T(mj,"ytd-dismissal-follow-up-renderer",function(){if(na1!==void 0)return na1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-dismissal-follow-up-renderer">\n  <yt-formatted-string id="title" text="[[data.dismissalReasonsPrompt]]" class="style-scope ytd-dismissal-follow-up-renderer">\n  </yt-formatted-string>\n  <div id="reasons" class="style-scope ytd-dismissal-follow-up-renderer"></div>\n</div>\n<div id="buttons" class="style-scope ytd-dismissal-follow-up-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancelTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="submit" data="[[data.submitButton.buttonRenderer]]" disabled="[[!hasReasonsSelected]]" on-tap="onSubmitTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return na1=d},{mode:1});var VxG;var wX=function(){return _.B.apply(this,arguments)||this};
_.m(wX,_.B);_.G=wX.prototype;_.G.onCheckedChange=function(){this.multiselect||_.GT(this.hostElement,"yt-feedback-single-select-changed");_.Gn(this.hostElement).querySelector("#freeform").focus();_.GT(this.hostElement,"yt-refit")};
_.G.showTextBox=function(d,H){return d&&H};
_.G.dataChanged=function(){this.data&&(this.data.resultText===void 0&&this.set("data.resultText",""),this.data.checked===void 0&&this.set("data.checked",!1),this.data.allowFreeTextInput===void 0&&this.set("data.allowFreeTextInput",!1))};
_.G.updateDataCheckedFromBinding=function(d){this.set("data.checked",d.detail.value)};
_.G.updateDataResultTextFromBinding=function(d){this.set("data.resultText",d.detail.value)};
wX.prototype.dataChanged=wX.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],wX.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],wX.prototype,"multiselect",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],wX.prototype,"dataChanged",null);
_.t([_.Z({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],wX);
_.T(wX,"ytd-feedback-option-renderer",function(){if(VxG!==void 0)return VxG;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-radio-button class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-radio-button>\n<tp-yt-paper-checkbox class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[!multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-checkbox>\n<tp-yt-paper-textarea id="freeform" hidden="[[!showTextBox(data.checked, data.allowFreeTextInput)]]" label="[[getSimpleString(data.freeTextHint)]]" maxlength="1000" use-v2-underline="" value="[[data.resultText]]" on-value-changed="updateDataResultTextFromBinding" class="style-scope ytd-feedback-option-renderer">\n</tp-yt-paper-textarea>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return VxG=d},{mode:1});var UHj;var PT=function(){return _.B.apply(this,arguments)||this};
_.m(PT,_.B);PT.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
PT.prototype.onSingleSelectCheckedChanged=function(d){d=_.v5(d);for(var H=0;H<this.data.options.length;H++)if(d.data!==_.M(this.data.options[H],rT1)){var K="data.options."+H+".feedbackOptionRenderer.checked";this.notifyPath(K);this.set(K,!1)}};
PT.prototype.onSingleSelectCheckedChanged=PT.prototype.onSingleSelectCheckedChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],PT.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],PT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],PT.prototype,"data",void 0);
_.t([_.nK("yt-feedback-single-select-changed"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],PT.prototype,"onSingleSelectCheckedChanged",null);_.t([_.Z({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],PT);
_.T(PT,"ytd-feedback-question-renderer",function(){if(UHj!==void 0)return UHj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="question-text style-scope ytd-feedback-question-renderer">\n  [[getSimpleString(data.question)]]\n</div>\n<div id="options" class="style-scope ytd-feedback-question-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return UHj=d},{mode:1});var hMS;var uY=function(){return _.B.apply(this,arguments)||this};
_.m(uY,_.B);uY.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
uY.prototype.getSelectedFeedbackResults=function(){for(var d={},H=0;H<this.data.questions.length;H++)for(var K=_.M(this.data.questions[H],IjZ),c=0;c<K.options.length;c++){var p=_.M(K.options[c],rT1);p&&p.checked&&(d[p.optionKey]=p.resultText)}return d};
uY.prototype.onKeyUp=function(){var d=this;_.lV(_.Xp,function(){_.GT(d.hostElement,"yt-refit")});
_.Xp.start()};
uY.prototype.submitSurvey=function(){var d=this.getSelectedFeedbackResults();Object.keys(d).length>0&&this.data.submitFeedbackEndpoint&&(d={survey_results:d,is_feedback_token_unencrypted:!0},_.Kj().resolve(_.cb).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},d,{element:this.hostElement})}))};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],uY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],uY.prototype,"data",void 0);_.t([_.Z({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],uY);
_.T(uY,"ytd-feedback-survey-renderer",function(){if(hMS!==void 0)return hMS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="questions" on-keyup="onKeyUp" class="style-scope ytd-feedback-survey-renderer"></div>\n<yt-formatted-string id="disclaimer" text="[[data.disclaimer]]" class="style-scope ytd-feedback-survey-renderer"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return hMS=d},{mode:1});var L3g;var Mxb;var Ii=function(){return _.B.apply(this,arguments)||this};
_.m(Ii,_.B);Ii.prototype.computeAlt=function(d){return _.jG(d)};
Ii.prototype.submitResponse=function(){var d,H;(d=this.data)!=null&&d.feedbackToken&&((H=this.data)==null?void 0:H.nextStageIndex)!==void 0&&(_.qo(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.qo(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Ii.prototype.onClick=function(){this.submitResponse()};
Ii.prototype.onClick=Ii.prototype.onClick;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Ii.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ii.prototype,"vertical",void 0);_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ii.prototype,"onClick",null);
_.t([_.Z({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Ii);
_.T(Ii,"ytd-single-select-answer-option-renderer",function(){if(Mxb!==void 0)return Mxb;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-answer-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.answerText)]]" hidden="[[!data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer">\n  <yt-icon icon="[[data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.answerText]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Mxb=d},{mode:1});var mH5;var rX=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");d.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return d};
_.m(rX,_.B);rX.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
rX.prototype.dataChanged=function(){var d,H;this.vertical=((H=(d=this.data)==null?void 0:d.answerOrientation)!=null?H:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
rX.prototype.submitFeedback=function(d){var H;((H=this.data)==null?0:H.responseEndpoint)&&d&&_.aF(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[d]}])};
rX.prototype.dataChanged=rX.prototype.dataChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],rX.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],rX.prototype,"eventForwardingBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],rX.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],rX.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],rX.prototype,"vertical",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],rX.prototype,"darkerDarkTheme",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],rX.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],rX);
_.T(rX,"ytd-single-select-question-renderer",function(){if(mH5!==void 0)return mH5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="question" class="style-scope ytd-single-select-question-renderer">\n  <yt-formatted-string text="[[data.questionText]]" class="style-scope ytd-single-select-question-renderer"></yt-formatted-string>\n</div>\n<div id="options" class="style-scope ytd-single-select-question-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return mH5=d},{mode:1});var WT=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return d};
_.m(WT,_.B);_.G=WT.prototype;_.G.configureRendererStamper=function(){return{currentStage:{id:"current-stage",mapping:{singleSelectQuestionRenderer:"ytd-single-select-question-renderer",simpleMessageRenderer:"ytd-simple-message-renderer",surveyFollowUpRenderer:"ytd-survey-follow-up-renderer"}}}};
_.G.dataChanged=function(){this.jumpToStage(0)};
_.G.jumpToStage=function(d){var H,K;if((H=this.data)==null?0:(K=H.stages)==null?0:K[d])this.currentStage=this.data.stages[d],this.refitAfterRender()};
_.G.computeAlt=function(d){return _.jG(d)};
_.G.computeSimpleMessage=function(d){var H;return(H=_.M(d,zqU))==null?void 0:H.messageText};
_.G.computeHideDismiss=function(d){var H;return(H=_.M(d,pCG))==null?void 0:H.hideParentDismissButton};
_.G.onDismissTap=function(){_.oF(this.hostElement,"yt-close-popup-action");_.M(this.currentStage,zqU)||this.data.dismissalEndpoint&&_.Kj().resolve(_.cb).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.G.refitAfterRender=function(){var d=this;_.vV(this,function(){_.GT(d.hostElement,"yt-refit")})};
WT.prototype.dataChanged=WT.prototype.dataChanged;_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],WT.prototype,"eventForwardingBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],WT.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],WT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],WT.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(zmq),_.O("design:type",Object)],WT.prototype,"ytdHatsSurveyBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],WT.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],WT.prototype,"currentStage",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WT.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],WT);
_.T(WT,"ytd-multi-stage-survey-renderer",function(){if(L3g!==void 0)return L3g;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-stage-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[computeHideDismiss(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-multi-stage-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-multi-stage-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="current-stage" class="style-scope ytd-multi-stage-survey-renderer"></div>\n<yt-formatted-string id="simple-message" text="[[computeSimpleMessage(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n</yt-formatted-string>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return L3g=d},{mode:1});var wAS;var BT=function(){return _.B.apply(this,arguments)||this};
_.m(BT,_.B);BT.prototype.computeAlt=function(d){return _.jG(d)};
BT.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.Kj().resolve(_.cb).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.oF(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.rwZ(!1)))};
BT.prototype.onTap=function(){this.vertical&&this.submitResponse()};
BT.prototype.onTap=BT.prototype.onTap;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],BT.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],BT.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],BT.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],BT.prototype,"vertical",void 0);
_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],BT.prototype,"onTap",null);_.t([_.Z({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],BT);
_.T(BT,"ytd-single-option-survey-option-renderer",function(){if(wAS!==void 0)return wAS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.option)]]" hidden="[[!data.icon.iconType]]" on-tap="submitResponse" class="style-scope ytd-single-option-survey-option-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.option]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return wAS=d},{mode:1});var PRG;var zD=function(){return _.B.apply(this,arguments)||this};
_.m(zD,_.B);_.G=zD.prototype;_.G.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.dataChanged=function(){var d,H;this.vertical=(((d=this.data)==null?void 0:(H=d.surveyOrientation)==null?void 0:H.type)||"HORIZONTAL")==="VERTICAL"};
_.G.computeAlt=function(d){return _.jG(d)};
_.G.onDismissTap=function(){_.oF(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.Kj().resolve(_.cb).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.rwZ(!1))};
zD.prototype.dataChanged=zD.prototype.dataChanged;_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],zD.prototype,"eventForwardingBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],zD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(zmq),_.O("design:type",Object)],zD.prototype,"ytdHatsSurveyBehavior",void 0);
_.t([_.u(_.to),_.O("design:type",Object)],zD.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],zD.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],zD.prototype,"vertical",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zD.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],zD);
_.T(zD,"ytd-single-option-survey-renderer",function(){if(PRG!==void 0)return PRG;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-single-option-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-single-option-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-tap="onDismissTap" class="style-scope ytd-single-option-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-single-option-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-single-option-survey-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return PRG=d},{mode:1});var uWq;var X8=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");return d};
_.m(X8,_.B);X8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
X8.prototype.onDismissTap=function(){_.oF(this.hostElement,"yt-close-popup-action")};
X8.prototype.onNavigate=function(){_.oF(this.hostElement,"yt-close-popup-action")};
X8.prototype.onNavigate=X8.prototype.onNavigate;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],X8.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],X8.prototype,"ytEventForwardingBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],X8.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],X8.prototype,"darkerDarkTheme",void 0);
_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],X8.prototype,"onNavigate",null);_.t([_.Z({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],X8);
_.T(X8,"ytd-survey-follow-up-renderer",function(){if(uWq!==void 0)return uWq;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-survey-follow-up-renderer">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-survey-follow-up-renderer"></yt-formatted-string>\n  <ytd-button-renderer data="[[data.dismissButton.buttonRenderer]]" on-tap="onDismissTap" class="style-scope ytd-survey-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n<ytd-button-renderer align-by-text="" data="[[data.followUpButton.buttonRenderer]]" hidden="[[!data.followUpButton.buttonRenderer]]" class="style-scope ytd-survey-follow-up-renderer">\n</ytd-button-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return uWq=d},{mode:1});var InZ;var rqv;var W3v;var Jl=function(){var d=_.B.apply(this,arguments)||this;d.polymer2="Element"in Polymer;return d};
_.m(Jl,_.B);_.G=Jl.prototype;_.G.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.G.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.G.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.G.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("minutes-changed",this.minutes))};
_.G.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("seconds-changed",this.seconds))};
_.G.updateMinutesFromBinding=function(d){this.minutes=d.detail.value};
_.G.updateSecondsFromBinding=function(d){this.seconds=d.detail.value};
Jl.prototype.secondsChangedForBinding=Jl.prototype.secondsChangedForBinding;Jl.prototype.minutesChangedForBinding=Jl.prototype.minutesChangedForBinding;Jl.prototype.secondsChanged=Jl.prototype.secondsChanged;_.t([_.r(),_.O("design:type",String)],Jl.prototype,"minutes",void 0);_.t([_.r(),_.O("design:type",String)],Jl.prototype,"seconds",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Jl.prototype,"polymer2",void 0);
_.t([_.VP("#seconds"),_.O("design:type",Object)],Jl.prototype,"secondsEl",void 0);_.t([_.CK("seconds"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Jl.prototype,"secondsChanged",null);_.t([_.CK("minutes"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Jl.prototype,"minutesChangedForBinding",null);
_.t([_.CK("seconds"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Jl.prototype,"secondsChangedForBinding",null);_.t([_.ZV({is:"yt-timestamp-input",disableElementRegistration:!0})],Jl);
_.T(Jl,"yt-timestamp-input",function(){if(W3v===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-timestamp-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_timestamp_input.yt.timestamp.input.css.js--\x3e<tp-yt-paper-input id="minutes" allowed-pattern="[0-9]" maxlength="3" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[minutes]]" on-value-changed="updateMinutesFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n<span id="separator" class="style-scope yt-timestamp-input"> : </span>\n<tp-yt-paper-input id="seconds" allowed-pattern="[0-9]" maxlength="2" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[seconds]]" on-value-changed="updateSecondsFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;rqv===void 0&&(rqv=document.createElement("template"));var c=rqv;K.call(H,c.content.cloneNode(!0),d.content.firstChild);W3v=d}d=W3v;return d},{mode:2});var sM=function(){return _.B.apply(this,arguments)||this};
_.m(sM,_.B);_.G=sM.prototype;_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20236_scroller.dialogElement=this.hostElement.parentNode};
_.G.dataChanged=function(){var d=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.cI().getPlayerPromise().then(function(H){H=H.getCurrentTime();d.minutes=Math.floor(H/60).toString();d.seconds=(Math.floor(H)%60).toString()})};
_.G.onTapSubmit=function(d){d.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(d={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(d.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(d.minutes=this.minutes,d.seconds=this.seconds),_.Kj().resolve(_.cb).resolveCommand(this.serviceEndpoint,{form:Object.assign({},d,{element:this.hostElement})}))};
_.G.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.G.onYtServiceRequestCompleted=function(d,H){H=H.actions;if(Array.isArray(H))for(var K=0,c=H.length;K<c;K++)_.M(H[K],_.u$)&&(d.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(H[K]))};
_.G.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.G.toggleSubmitButton=function(d){this.set("submitButton.isDisabled",!d)};
_.G.handleInput=function(){var d=this.issueType,H=this.affiliation,K=this.minutes,c=this.seconds;K=!this.showTimestamp||!!K&&!!c;this.toggleSubmitButton(!!this.descriptionText&&!!d&&!!H&&K)};
_.G.computeServiceEndpoint=function(d){return this.get("submitButton.buttonRenderer.serviceEndpoint",d)};
_.G.computeSubmitButton=function(d){(d=this.get("submitButton.buttonRenderer",d))&&(d=Object.assign({},d,{serviceEndpoint:void 0}));return d};
_.G.computeShowTimestamp=function(d){return!!d};
_.G.onValueChangedForIssueType=function(d){this.issueType=d.detail.value};
_.G.onValueChangedForAffiliation=function(d){this.affiliation=d.detail.value};
_.G.updateDescriptionTextFromBinding=function(d){this.descriptionText=d.detail.value};
_.G.updateFullNameTextFromBinding=function(d){this.fullNameText=d.detail.value};
_.G.updateMinutesFromBinding=function(d){this.minutes=d.detail.value};
_.G.updateSecondsFromBinding=function(d){this.seconds=d.detail.value};
sM.prototype.handleInput=sM.prototype.handleInput;sM.prototype.onYtServiceRequestError=sM.prototype.onYtServiceRequestError;sM.prototype.onYtServiceRequestCompleted=sM.prototype.onYtServiceRequestCompleted;sM.prototype.onYtServiceRequestSent=sM.prototype.onYtServiceRequestSent;sM.prototype.dataChanged=sM.prototype.dataChanged;_.t([_.u(_.Rm.YtOpenPopupBehavior),_.O("design:type",Object)],sM.prototype,"ytOpenPopupBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.t([_.VP("#scroller"),_.O("design:type",Object)],sM.prototype,"JSC$20236_scroller",void 0);_.t([_.VP("#description"),_.O("design:type",HTMLInputElement)],sM.prototype,"description",void 0);_.t([_.VP("#full-name"),_.O("design:type",Object)],sM.prototype,"fullName",void 0);_.t([_.r(),_.O("design:type",Object)],sM.prototype,"data",void 0);
_.t([_.r({computed:"computeShowTimestamp(data.timestampLabel)"}),_.O("design:type",Boolean)],sM.prototype,"showTimestamp",void 0);_.t([_.r({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.O("design:type",Object)],sM.prototype,"serviceEndpoint",void 0);_.t([_.r({computed:"computeSubmitButton(data)"}),_.O("design:type",Object)],sM.prototype,"submitButton",void 0);_.t([_.r(),_.O("design:type",String)],sM.prototype,"descriptionText",void 0);
_.t([_.r(),_.O("design:type",Number)],sM.prototype,"issueType",void 0);_.t([_.r(),_.O("design:type",Number)],sM.prototype,"affiliation",void 0);_.t([_.r(),_.O("design:type",String)],sM.prototype,"fullNameText",void 0);_.t([_.r(),_.O("design:type",String)],sM.prototype,"minutes",void 0);_.t([_.r(),_.O("design:type",String)],sM.prototype,"seconds",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sM.prototype,"dataChanged",null);
_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],sM.prototype,"onYtServiceRequestSent",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],sM.prototype,"onYtServiceRequestCompleted",null);
_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],sM.prototype,"onYtServiceRequestError",null);_.t([_.CK("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sM.prototype,"handleInput",null);_.t([_.Z({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],sM);
_.T(sM,"ytd-legal-report-details-form-renderer",function(){if(InZ!==void 0)return InZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-legal-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-legal-report-details-form-renderer">\n  <template is="dom-if" if="[[showTimestamp]]" class="style-scope ytd-legal-report-details-form-renderer">\n    <label id="timestamp" class="style-scope ytd-legal-report-details-form-renderer">\n      [[getSimpleString(data.timestampLabel)]]\n      <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n      </yt-timestamp-input>\n    </label>\n  </template>\n  <div id="description-box" class="style-scope ytd-legal-report-details-form-renderer">\n    <tp-yt-paper-input-container no-label-float="true" use-v2-underline="" class="style-scope ytd-legal-report-details-form-renderer">\n      <tp-yt-iron-autogrow-textarea id="description" class="paper-input-input style-scope ytd-legal-report-details-form-renderer" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[data.maxDescriptionChars]]" placeholder="[[getSimpleString(data.descriptionHint)]]" required="true" rows="4" value="[[descriptionText]]" on-value-changed="updateDescriptionTextFromBinding">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-legal-report-details-form-renderer"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n  <ytd-dropdown-renderer id="issue-type" data="[[data.issueTypeDropdown.dropdownRenderer]]" value="[[issueType]]" on-value-changed="onValueChangedForIssueType" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-dropdown-renderer id="affiliation" data="[[data.affiliationDropdown.dropdownRenderer]]" value="[[affiliation]]" on-value-changed="onValueChangedForAffiliation" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <tp-yt-paper-input id="full-name" maxlength="[[data.maxNameChars]]" placeholder="[[getSimpleString(data.nameHint)]]" use-v2-underline="" value="[[fullNameText]]" on-value-changed="updateFullNameTextFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n  </tp-yt-paper-input>\n  <div id="name-subtext" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.nameSubtext)]]</div>\n  <div id="footer-text" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.footerText)]]</div>\n</tp-yt-paper-dialog-scrollable>\n<div class="footer style-scope ytd-legal-report-details-form-renderer">\n  <div id="required-label" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.requiredLabel)]]</div>\n  <div class="buttons style-scope ytd-legal-report-details-form-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="submit-button" data="[[submitButton]]" dialog-confirm="" on-click="onTapSubmit" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return InZ=d},{mode:1});var BOq;var F8=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return d};
_.m(F8,_.B);F8.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
F8.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var d=this.formRenderer.getForm();d&&this.data.submitEndpoint&&(_.Kj().resolve(_.cb).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},d,{element:this.hostElement})}),_.oF(this.hostElement,"yt-close-popup-action"))}};
F8.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.oF(this.hostElement,"yt-close-popup-action"))};
F8.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
F8.prototype.onPopupClosed=F8.prototype.onPopupClosed;_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],F8.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],F8.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],F8.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);
_.t([_.VP("yt-form-renderer"),_.O("design:type",Object)],F8.prototype,"formRenderer",void 0);_.t([_.r(),_.O("design:type",Object)],F8.prototype,"data",void 0);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],F8.prototype,"onPopupClosed",null);_.t([_.Z({is:"ytd-form-popup-content",disableElementRegistration:!0})],F8);
_.T(F8,"ytd-form-popup-content",function(){if(BOq!==void 0)return BOq;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form" class="style-scope ytd-form-popup-content"></div>');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return BOq=d},{mode:1});var zM0;var ZU=function(){return _.B.apply(this,arguments)||this};
_.m(ZU,_.B);ZU.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ZU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ZU.prototype.onPopupOpened=function(){_.GT(this.hostElement,"yt-invalidate-popup-tabbables")};
ZU.prototype.onYtServiceRequestCompleted=function(d,H){H.data&&H.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.GT(this.hostElement,"yt-invalidate-popup-tabbables"))};
ZU.prototype.onYtServiceRequestCompleted=ZU.prototype.onYtServiceRequestCompleted;ZU.prototype.onPopupOpened=ZU.prototype.onPopupOpened;_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],ZU.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ZU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ZU.prototype,"ytRendererBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],ZU.prototype,"data",void 0);_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ZU.prototype,"onPopupOpened",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],ZU.prototype,"onYtServiceRequestCompleted",null);_.t([_.Z({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],ZU);
_.T(ZU,"ytd-form-popup-renderer",function(){if(zM0!==void 0)return zM0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-form-popup-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-form-popup-content data="[[data]]" class="style-scope ytd-form-popup-renderer"></ytd-form-popup-content>\n<div id="buttons" class="style-scope ytd-form-popup-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return zM0=d},{mode:1});var XAj;var TD=function(){var d=_.B.apply(this,arguments)||this;d.isLoading=!1;return d};
_.m(TD,_.B);_.G=TD.prototype;_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");IcZ(this.hostElement)};
_.G.onYtServiceRequestSent=function(){this.isLoading=!0};
_.G.onYtServiceRequestCompleted=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.G.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.l5(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.G.closePopupHandler=function(){this.fireOnCloseActions()};
_.G.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var d=this.get("data.headerImage.thumbnails");d&&(d=_.Gv(d,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+d+")")}};
_.G.onYtNavigate=function(d){(d=_.v5(d))&&d.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
TD.prototype.onYtNavigate=TD.prototype.onYtNavigate;TD.prototype.onHeaderImageChanged=TD.prototype.onHeaderImageChanged;TD.prototype.closePopupHandler=TD.prototype.closePopupHandler;TD.prototype.onYtServiceRequestCompleted=TD.prototype.onYtServiceRequestCompleted;TD.prototype.onYtServiceRequestSent=TD.prototype.onYtServiceRequestSent;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],TD.prototype,"ytEventForwardingBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],TD.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],TD.prototype,"isLoading",void 0);_.t([_.VP("#header"),_.O("design:type",HTMLDivElement)],TD.prototype,"header",void 0);_.t([_.VP("#confirm-button"),_.O("design:type",_.Im)],TD.prototype,"confirmButton",void 0);
_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],TD.prototype,"onYtServiceRequestSent",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],TD.prototype,"onYtServiceRequestCompleted",null);
_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],TD.prototype,"closePopupHandler",null);_.t([_.CK("data.headerImage"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],TD.prototype,"onHeaderImageChanged",null);_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],TD.prototype,"onYtNavigate",null);
_.t([_.Z({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],TD);
_.T(TD,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(XAj!==void 0)return XAj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-confirm-dialog-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar left style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-confirm-dialog-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar right style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" dialog-dismiss="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></div>\n</div>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" role="heading" text="[[data.title]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></yt-formatted-string>\n  <div id="dialog-messages" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope ytd-gaming-account-link-confirm-dialog-renderer" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n  <div class="buttons style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[isLoading]]">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" hidden$="[[!data.cancelButton]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner active="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return XAj=d},{mode:1});var Jqv;var Q9=function(){var d=_.B.apply(this,arguments)||this;d.isLoading=!1;return d};
_.m(Q9,_.B);_.G=Q9.prototype;_.G.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.linkButton":{id:"link-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);IcZ(this.hostElement)};
_.G.onYtServiceRequestCompleted=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.G.onYtServiceRequestError=function(d){_.ff(this.hostElement,d.detail.error.message)};
_.G.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.G.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.oF(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.G.onDataChanged=function(){this.isLoading=!1;var d=this.get("data.headerImage.thumbnails");d&&(d=_.Gv(d,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+d+")");d=_.Fj();var H=_.so(),K=this.get("data.trackingParams");K&&H&&d&&_.Ea(d,H,_.P1(K))};
_.H3.Object.defineProperties(Q9.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
Q9.prototype.onDataChanged=Q9.prototype.onDataChanged;Q9.prototype.onDomChange=Q9.prototype.onDomChange;Q9.prototype.onYtServiceRequestError=Q9.prototype.onYtServiceRequestError;Q9.prototype.onYtServiceRequestCompleted=Q9.prototype.onYtServiceRequestCompleted;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],Q9.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Q9.prototype,"isLoading",void 0);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Q9.prototype,"hasDescription",null);_.t([_.VP("tp-yt-paper-dialog-scrollable"),_.O("design:type",Object)],Q9.prototype,"scrollable",void 0);_.t([_.VP("#header"),_.O("design:type",HTMLElement)],Q9.prototype,"header",void 0);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Q9.prototype,"onYtServiceRequestCompleted",null);_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Q9.prototype,"onYtServiceRequestError",null);
_.t([_.nK("dom-change"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Q9.prototype,"onDomChange",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Q9.prototype,"onDataChanged",null);_.t([_.Z({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Q9);
_.T(Q9,"ytd-gaming-account-link-setting-renderer",function(){if(Jqv!==void 0)return Jqv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-setting-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-setting-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-setting-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.header]]" class="style-scope ytd-gaming-account-link-setting-renderer"></yt-formatted-string>\n  <div id="description-container" hidden="[[!hasDescription]]" class="style-scope ytd-gaming-account-link-setting-renderer">\n    <template is="dom-repeat" items="[[data.descriptions]]" as="description" class="style-scope ytd-gaming-account-link-setting-renderer">\n      <yt-formatted-string class="description style-scope ytd-gaming-account-link-setting-renderer" split-lines="" text="[[description]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n<div id="link-button-container" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <tp-yt-paper-spinner class="spinner style-scope ytd-gaming-account-link-setting-renderer" active="" hidden="[[!isLoading]]"></tp-yt-paper-spinner>\n  <div id="link-button" hidden="[[isLoading]]" on-click="onButtonClick" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Jqv=d},{mode:1});var s_0;var F3G;var tl=function(){var d=_.B.apply(this,arguments)||this;d.isHeader=!1;d.getEndpointForm=function(){return w1b(d.data)};
return d};
_.m(tl,_.B);_.G=tl.prototype;_.G.triggerHintActions=function(){var d=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var H=_.qo(d.hostElement,"yt-get-opened-popups-action");!(H&&H.length===1?H[0]:[]).some(function(K){K=K.openPopupAction.popupType;return K==="SURVEY"||K==="MEALBAR"||K==="HINT"})&&d.data.hintActions&&d.guideOpened&&(_.l5(d.hostElement,d.data.hintActions,d.hostElement),d.data.hintActions=void 0)})};
_.G.getBadgeIconType=function(d){return d&&d.liveBroadcasting?"live":null};
_.G.onDown=function(){this.interaction.triggerDown()};
_.G.onUp=function(){this.interaction.triggerUp()};
_.G.onTap=function(d){if(this.data.serviceEndpoint){var H;_.h("shorts_controller_retrieve_seedless_sequence_v2")&&((H=_.M(this.data.serviceEndpoint,_.P5))==null?void 0:H.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):mkO(this.data.serviceEndpoint,this);d.preventDefault()}else this.data.navigationEndpoint&&!_.vg(_.jh(d),this.hostElement,["A".toString()])&&_.GT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.G.computeActive=function(d,H){if(!d)return!1;var K=d.navigationEndpoint;d=d.serviceEndpoint;if(!K&&!d||!H)return!1;if(K){d=(d=_.hc(H))&&["subscriptions","filteredsubscriptions"].includes(d);if(_.M(K,_.Lm)&&_.M(H,_.Lm)&&!d){var c=_.M(K,_.Lm).browseId;H=_.M(H,_.Lm).browseId;return c!==void 0&&H!==void 0&&(c===H||c==="VLWL"&&H==="FEwatch_later"||c==="FEwatch_later"&&H==="VLWL")}var p;K=(p=_.M(K.commandMetadata,_.Co))==null?void 0:p.url;H=(c=_.M(H.commandMetadata,_.Co))==null?void 0:c.url;return!(!K||
!H||K!==H&&K!==_.kp(H))}return this.isActiveShortsTab(d,H)};
_.G.isActiveShortsTab=function(d,H){H=!!_.M(H,_.P5)||!!_.M(H,_.F5);return(!!_.M(d,_.P5)||!!_.M(d,_.F5))&&H};
_.G.computeIsPrimary=function(d){return!!d};
_.H3.Object.defineProperties(tl.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.computeActive(this.data,this.activeEndpoint)}},
isPrimary:{configurable:!0,enumerable:!0,get:function(){return this.computeIsPrimary(this.data.isPrimary)}},
lineEndStyle:{configurable:!0,enumerable:!0,get:function(){return this.data?this.data.badges&&this.getBadgeIconType(this.data.badges)?"badge":this.data.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?"dot":this.data.count?"count":"none":"none"}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){var d=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&d)return d}}});
tl.prototype.onTap=tl.prototype.onTap;tl.prototype.onUp=tl.prototype.onUp;tl.prototype.onDown=tl.prototype.onDown;tl.prototype.triggerHintActions=tl.prototype.triggerHintActions;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],tl.prototype,"componentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],tl.prototype,"rendererBehavior",void 0);_.t([_.u(_.pd.YtTaskEmitterBehavior),_.O("design:type",Object)],tl.prototype,"taskEmitterBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],tl.prototype,"activeEndpoint",void 0);_.t([_.r(),_.O("design:type",Object)],tl.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],tl.prototype,"guideOpened",void 0);_.t([_.r(),_.O("design:type",String)],tl.prototype,"type",void 0);_.t([_.VP("yt-interaction"),_.O("design:type",Object)],tl.prototype,"interaction",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],tl.prototype,"isHeader",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("data","activeEndpoint"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],tl.prototype,"active",null);_.t([_.r({reflectToAttribute:!0}),_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],tl.prototype,"isPrimary",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.count","data.presentationStyle","data.badges.*"),_.O("design:type",String),_.O("design:paramtypes",[])],tl.prototype,"lineEndStyle",null);
_.t([_.I("lineEndStyle"),_.O("design:type",Object),_.O("design:paramtypes",[])],tl.prototype,"ariaLabel",null);_.t([_.CK("data.hintActions","guideOpened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tl.prototype,"triggerHintActions",null);_.t([_.nK("down"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tl.prototype,"onDown",null);
_.t([_.nK("up"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tl.prototype,"onUp",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],tl.prototype,"onTap",null);_.t([_.Z({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],tl);
_.T(tl,"ytd-guide-entry-renderer",function(){if(F3G!==void 0)return F3G;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1" title="[[getSimpleString(data.formattedTitle)]]" aria-label$="[[ariaLabel]]" role="link" get-form="[[getEndpointForm]]">\n  <tp-yt-paper-item role="link" class="style-scope ytd-guide-entry-renderer">\n    <yt-icon class="guide-icon style-scope ytd-guide-entry-renderer" active="[[active]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[computeIcon_(data.icon)]]">\n    </yt-icon>\n    <yt-img-shadow height="24" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-guide-entry-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-guide-entry-renderer" text="[[data.formattedTitle]]"></yt-formatted-string>\n    <yt-icon class="arrow-icon style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!isHeader]]" hidden="[[!isHeader]]" icon="chevron_right" size="16">\n    </yt-icon>\n    <span class="guide-entry-count style-scope ytd-guide-entry-renderer"> [[data.count]] </span>\n    <yt-icon class="guide-entry-badge style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!getBadgeIconType(data.badges)]]" icon="[[getBadgeIconType(data.badges)]]" size="16">\n    </yt-icon>\n    <div id="newness-dot" class="style-scope ytd-guide-entry-renderer"></div>\n  </tp-yt-paper-item>\n</a>\n<yt-interaction class="style-scope ytd-guide-entry-renderer"></yt-interaction>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return F3G=d},{mode:1});var Yu=function(){var d=_.B.apply(this,arguments)||this;d.userToggled=!1;return d};
_.m(Yu,_.B);_.G=Yu.prototype;_.G.getItemsPath=function(){return"data.expandableItems"};
_.G.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.G.onExpanderItemTapped=function(d){var H=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.h("kevlar_guide_expandable_items_killswitch")&&_.vV(this,function(){_.f4(H.expandableItems)});
d.preventDefault()};
_.G.onCollapserItemTapped=function(d){var H=this;this._setExpanded(!1);this.userToggled=!0;d.preventDefault();this.expandableItems&&!_.h("kevlar_guide_collapsible_items_killswitch")&&_.vV(this,function(){_.D7(H.hostElement)})};
_.G.observeActiveEndpoint=function(){for(var d=this.activeEndpoint,H=this.data,K=this.expandableItems.children,c=0,p=K.length;c<p;c++)K[c].activeEndpoint=d;H&&H.autoExpandCommand&&d&&!this.userToggled&&(K=this.data.autoExpandCommand,H=!(!_.M(K,_.Lm)||!_.M(d,_.Lm)||_.M(K,_.Lm).browseId!==_.M(d,_.Lm).browseId),d=this.get("commandMetadata.webCommandMetadata.url",d),K=this.get("commandMetadata.webCommandMetadata.url",K),H=H||!!(d&&K&&d.includes(K)),this._setExpanded(H),H&&this.ytLazyListBehavior.fillRemainingListItems())};
Yu.prototype.observeActiveEndpoint=Yu.prototype.observeActiveEndpoint;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Yu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Gr.YtLazyListBehavior),_.O("design:type",Object)],Yu.prototype,"ytLazyListBehavior",void 0);_.t([_.VP("#expandable-items"),_.O("design:type",HTMLElement)],Yu.prototype,"expandableItems",void 0);
_.t([_.r(),_.O("design:type",Object)],Yu.prototype,"data",void 0);_.t([_.r({readOnly:!0,reflectToAttribute:!0}),_.O("design:type",Boolean)],Yu.prototype,"expanded",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],Yu.prototype,"initialCount",void 0);_.t([_.r(),_.O("design:type",Object)],Yu.prototype,"activeEndpoint",void 0);_.t([_.CK("data","activeEndpoint","canShowMore"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Yu.prototype,"observeActiveEndpoint",null);
_.t([_.Z({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Yu);
_.T(Yu,"ytd-guide-collapsible-entry-renderer",function(){if(s_0!==void 0)return s_0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return s_0=d},{mode:_.qk("kevlar_poly_si_batch_j079")?1:2});var ZkG;var TOU;var OM=function(){var d=_.B.apply(this,arguments)||this;d.allVideosCount=0;d.renderGuideEntry=!1;return d};
_.m(OM,_.B);OM.prototype.observeRenderEntry=function(){var d;this.renderGuideEntry=!((d=this.data)==null||!d.alwaysShow)||!!this.allVideosCount};
OM.prototype.observeRenderEntry=OM.prototype.observeRenderEntry;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],OM.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],OM.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],OM.prototype,"activeEndpoint",void 0);_.t([_.r({selector:_.$GD}),_.O("design:type",Object)],OM.prototype,"allVideosCount",void 0);
_.t([_.r(),_.O("design:type",Object)],OM.prototype,"renderGuideEntry",void 0);_.t([_.Mr("allVideosCount","data.alwaysShow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],OM.prototype,"observeRenderEntry",null);_.t([_.Z({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],OM);
_.T(OM,"ytd-guide-downloads-entry-renderer",function(){if(TOU===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-downloads-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <ytd-guide-entry-renderer id="downloads-entry" active-endpoint="[[activeEndpoint]]" data="[[data.entryRenderer.guideEntryRenderer]]" hidden="[[!renderGuideEntry]]" class="style-scope ytd-guide-downloads-entry-renderer">\n  </ytd-guide-entry-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);TOU=d}d=TOU;return d},{mode:1});var Ss=function(){var d=_.B.apply(this,arguments)||this;d.youtab=_.h("web_enable_youtab");d.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return d};
_.m(Ss,_.B);_.G=Ss.prototype;_.G.configureRendererStamper=function(){return{"data.sectionItems":{id:"section-items",mapping:{guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideEntryRenderer:{component:"ytd-guide-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideDownloadsEntryRenderer:{component:"ytd-guide-downloads-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}}}}}};
_.G.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var d=this.sectionItems.children,H=0,K=d.length;H<K;H++)d[H].activeEndpoint=this.activeEndpoint}};
_.G.handleAddToGuideSectionAction=function(d){var H=_.M(d,DGb);if(H&&this.data&&(d=H.items,H=H.handlerData,d&&H&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(H)>-1)){H=0;for(var K=d.length;H<K;H++)d[H].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,d[H])}};
_.G.handleRemoveFromGuideSectionAction=function(d){var H=_.M(d,ffT);H&&this.data&&(d=H.guideEntryId,H=H.handlerData,d&&H&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(H)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(d,this.data.sectionItems),this.removeFromCollapsedSection(d,this.data.sectionItems)))};
_.G.removeFromExpandedSection=function(d,H){d=this.getEntryIndexMatchingId(d,H);d!==-1&&this.splice("data.sectionItems",d,1)};
_.G.removeFromCollapsedSection=function(d,H){var K=H.findIndex(function(c){return!!_.M(c,ljO)});
K&&K!==-1&&H[K]&&_.M(H[K],ljO)&&(H=_.M(H[K],ljO).expandableItems)&&(d=this.getEntryIndexMatchingId(d,H),d!==-1&&this.splice("data.sectionItems."+K+".guideCollapsibleEntryRenderer.expandableItems",d,1))};
_.G.getEntryIndexMatchingId=function(d,H){var K=this;return H.findIndex(function(c){return K.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",c)===d})};
Ss.prototype.activeEndpointChanged=Ss.prototype.activeEndpointChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Ss.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Ss.prototype,"actionHandlerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Ss.prototype,"ytRendererstamperBehavior",void 0);_.t([_.VP("#section-items"),_.O("design:type",HTMLDivElement)],Ss.prototype,"sectionItems",void 0);
_.t([_.VP("#header-entry"),_.O("design:type",Object)],Ss.prototype,"headerEntry",void 0);_.t([_.r(),_.O("design:type",Object)],Ss.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Ss.prototype,"activeEndpoint",void 0);_.t([_.r(),_.O("design:type",Object)],Ss.prototype,"youtab",void 0);_.t([_.CK("activeEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ss.prototype,"activeEndpointChanged",null);
_.t([_.Z({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],Ss);
_.T(Ss,"ytd-guide-collapsible-section-entry-renderer",function(){if(ZkG===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);ZkG=d}d=ZkG;return d},{mode:1});var Q_5;var tx1;var EM=function(){var d=_.B.apply(this,arguments)||this;d.modernTypography=_.h("web_modern_typography");d.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction","yt-reset-channel-unread-count-command":"handleResetChannelUnreadCountCommand","yt-reset-subscriptions-unread-dot-command":"handleResetSubscriptionsUnreadDotCommand"};return d};
_.m(EM,_.B);_.G=EM.prototype;
_.G.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",guideOpened:"[[guideOpened]]",type:"[[type]]"},noInjection:!0},guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0},guideCollapsibleSectionEntryRenderer:{component:"ytd-guide-collapsible-section-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},
noInjection:!0}}}}};
_.G.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var d=_.qo(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);d&&d.length===1&&d[0]&&_.qo(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.G.handleResetChannelUnreadCountCommand=function(d){var H;(d=(H=_.M(d,jkO))==null?void 0:H.channelId)&&this.data&&this.data.items&&(H=this.getPathToEntryMatchingId(d))&&(this.set(H+".guideEntryRenderer.count",0),this.set(H+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.G.handleResetSubscriptionsUnreadDotCommand=function(d){var H,K=(H=_.M(d,vCb))==null?void 0:H.targetId,c;K&&(c=this.data)!=null&&c.items&&(d=this.data.items.findIndex(function(p){var g;return((g=p.guideEntryRenderer)==null?void 0:g.targetId)===K}),d<0||this.set("data.items."+d+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.G.getPathToEntryMatchingId=function(d){if(this.data&&this.data.items){var H=this.getEntryIndexMatchingId(d,this.data.items);if(H>-1)return"data.items."+H;for(var K=0;K<this.data.items.length;K++)if(H=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[K]))if(H=this.getEntryIndexMatchingId(d,H),H>-1)return"data.items."+K+".guideCollapsibleEntryRenderer.expandableItems."+H}};
_.G.handleAddToGuideSectionAction=function(d){var H=this;if(_.M(d,DGb)){var K=_.M(d,DGb).items;d=_.M(d,DGb).handlerData;var c,p;if(K&&d&&((c=this.data)==null?void 0:(p=c.handlerDatas)==null?void 0:p.indexOf(d))>-1){K=K.filter(function(a){return(a=H.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",a))&&!H.isGuideItemPresent(a)});
var g;if(d==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((g=this.data)==null?0:g.items)&&(c=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),c>-1)){this.splice.apply(this,["data.items",c+1,0].concat(_.ru(K)));return}this.unshift.apply(this,["data.items"].concat(_.ru(K)))}}};
_.G.isGuideItemPresent=function(d){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(d,this.data.items)!==-1)return!0;var H=this.data.items.find(function(K){return!!K.guideCollapsibleEntryRenderer});
if((H==null?0:H.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(d,H.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.G.getEntryIndexMatchingId=function(d,H){var K=this;return H.findIndex(function(c){return K.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",c)===d})};
_.G.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(d,H){var K=this;return H.findIndex(function(c){return K.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",c)===d})};
_.G.handleRemoveFromGuideSectionAction=function(d){if(_.M(d,ffT)){var H=_.M(d,ffT).guideEntryId;d=_.M(d,ffT).handlerData;var K,c;H&&d&&((K=this.data)==null?void 0:(c=K.handlerDatas)==null?void 0:c.indexOf(d))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(H,this.data.items),this.removeFromCollapsedSection(H,this.data.items))}};
_.G.removeFromExpandedSection=function(d,H){d=this.getEntryIndexMatchingId(d,H);d!==-1&&this.splice("data.items",d,1)};
_.G.removeFromCollapsedSection=function(d,H){var K=H.findIndex(function(c){return!!c.guideCollapsibleEntryRenderer});
K!==-1&&(H=H[K].guideCollapsibleEntryRenderer.expandableItems)&&(d=this.getEntryIndexMatchingId(d,H),d!==-1&&this.splice("data.items."+K+".guideCollapsibleEntryRenderer.expandableItems",d,1))};
_.G.activeEndpointChanged=function(){for(var d=_.Gn(this.hostElement).querySelector("#items").children,H=0,K=d.length;H<K;H++)d[H].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.G.guideOpenedChanged=function(){for(var d=_.Gn(this.hostElement).querySelector("#items").children,H=0,K=d.length;H<K;H++)d[H].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
EM.prototype.guideOpenedChanged=EM.prototype.guideOpenedChanged;EM.prototype.activeEndpointChanged=EM.prototype.activeEndpointChanged;EM.prototype.persistentGuideChanged=EM.prototype.persistentGuideChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],EM.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],EM.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],EM.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.Gr.YtLazyListBehavior),_.O("design:type",Object)],EM.prototype,"ytLazyListBehavior",void 0);_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],EM.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],EM.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],EM.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],EM.prototype,"modernTypography",void 0);_.t([_.r(),_.O("design:type",String)],EM.prototype,"type",void 0);_.t([_.r({value:20}),_.O("design:type",Number)],EM.prototype,"initialCount",void 0);_.t([_.r({value:10}),_.O("design:type",Number)],EM.prototype,"targetFramerate",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],EM.prototype,"autoFill",void 0);_.t([_.r({value:50}),_.O("design:type",Number)],EM.prototype,"renderDelay",void 0);
_.t([_.CK("guidePersistentAndVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],EM.prototype,"persistentGuideChanged",null);_.t([_.Mr("activeEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],EM.prototype,"activeEndpointChanged",null);_.t([_.Mr("guideOpened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],EM.prototype,"guideOpenedChanged",null);
_.t([_.Z({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],EM);
_.T(EM,"ytd-guide-section-renderer",function(){if(tx1!==void 0)return tx1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h3 hidden="[[!data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  <yt-formatted-string id="guide-section-title" link-inherit-color="" text="[[data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  </yt-formatted-string>\n</h3>\n<div id="items" class="style-scope ytd-guide-section-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return tx1=d},{mode:_.qk("kevlar_poly_si_batch_j073")?1:2});var Ynj;var y9=function(){return _.B.apply(this,arguments)||this};
_.m(y9,_.B);_.H3.Object.defineProperties(y9.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],y9.prototype,"rendererBehaviors",void 0);_.t([_.r(),_.O("design:type",Object)],y9.prototype,"data",void 0);_.t([_.r(),_.I("data.signInButton.buttonRenderer.style"),_.O("design:type",Object),_.O("design:paramtypes",[])],y9.prototype,"alignByText",null);_.t([_.Z({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],y9);
_.T(y9,"ytd-guide-signin-promo-renderer",function(){if(Ynj===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-signin-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.descriptiveText]]" class="style-scope ytd-guide-signin-promo-renderer"></yt-formatted-string>\n<ytd-button-renderer id="sign-in-button" align-by-text="[[alignByText]]" data="[[data.signInButton.buttonRenderer]]" on-tap="onSignInTap" class="style-scope ytd-guide-signin-promo-renderer">\n</ytd-button-renderer>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);Ynj=d}d=Ynj;return d},{mode:1});var bY=function(){var d=_.B.apply(this,arguments)||this;d.showFooter=!1;return d};
_.m(bY,_.B);bY.prototype.configureRendererStamper=function(){return{shownItems:{id:"sections",mapping:{guideSectionRenderer:{component:"ytd-guide-section-renderer",noInjection:!0},guideSigninPromoRenderer:{component:"ytd-guide-signin-promo-renderer",noInjection:!0},guideSubscriptionsSectionRenderer:{component:"ytd-guide-section-renderer",params:{type:"subscriptions"},noInjection:!0}}}}};
bY.prototype.attached=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1){H=_.Kj().resolve(_.$p(_.y6));if(!H)return K.jumpTo(0);H.setGuideData(d.hostElement);return K.yield(0,3)}d.ytLazyListBehavior.initialCount=2;return K.return()})};
bY.prototype.onMouseExit=function(){_.h("web_guide_hover_expansion")&&_.qo(this.hostElement,"yt-guide-mouseleaved",[])};
bY.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
bY.prototype.dataChanged=bY.prototype.dataChanged;bY.prototype.onMouseExit=bY.prototype.onMouseExit;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],bY.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],bY.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.Gr.YtLazyListBehavior),_.O("design:type",Object)],bY.prototype,"ytLazyListBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],bY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],bY.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],bY.prototype,"showFooter",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],bY.prototype,"autoFill",void 0);_.t([_.nK("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bY.prototype,"onMouseExit",null);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bY.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-guide-renderer",disableElementRegistration:!0})],bY);
_.T(bY,"ytd-guide-renderer",function(){if(Q_5!==void 0)return Q_5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sections" class="style-scope ytd-guide-renderer"></div>\n<div id="footer" hidden="[[!showFooter]]" class="style-scope ytd-guide-renderer">\n  <div id="guide-links-primary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-primary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <div id="guide-links-secondary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-secondary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <slot name="vat-notice" class="style-scope ytd-guide-renderer"></slot>\n  <slot name="copyright" class="style-scope ytd-guide-renderer"></slot>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Q_5=d},{mode:_.qk("kevlar_poly_si_batch_j073")?1:2});var OkT;var ND=function(){var d=_.B.apply(this,arguments)||this;d.systemIcons=_.h("kevlar_system_icons");d.frostedGlass=_.h("web_frosted_glass");d.getEndpointForm=function(){return w1b(d.data)};
return d};
_.m(ND,_.B);_.G=ND.prototype;_.G.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.G.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.jG(this.data.formattedTitle))};
_.G.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.G.onDown=function(){this.interaction.triggerDown()};
_.G.onUp=function(){this.interaction.triggerUp()};
_.G.onTap=function(d){if(this.data.serviceEndpoint){var H;_.h("shorts_controller_retrieve_seedless_sequence_v2")&&((H=_.M(this.data.serviceEndpoint,_.P5))==null?void 0:H.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):mkO(this.data.serviceEndpoint,this);d.preventDefault()}else{var K;((K=this.data)==null?0:K.navigationEndpoint)&&!_.vg(_.jh(d),this.hostElement,["A".toString()])&&_.GT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.G.computeActive=function(d,H){if(!d)return!1;var K=d.navigationEndpoint;d=d.serviceEndpoint;if(!K&&!d||!H)return!1;if(K){d=_.M(K,_.Lm);var c=_.M(H,_.Lm);if(d&&c)return d.browseId===c.browseId&&d.params===c.params;var p;K=(p=_.M(K.commandMetadata,_.Co))==null?void 0:p.url;var g;H=(g=_.M(H.commandMetadata,_.Co))==null?void 0:g.url;return!(!K||!H||K!==H&&K!==_.kp(H))}return this.isActiveShortsTab(d,H)};
_.G.isActiveShortsTab=function(d,H){H=!!_.M(H,_.P5)||!!_.M(H,_.F5);return(!!_.M(d,_.P5)||!!_.M(d,_.F5))&&H};
_.G.computeTitle=function(d,H){return H?"":_.jG(d)};
_.H3.Object.defineProperties(ND.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
ND.prototype.onTap=ND.prototype.onTap;ND.prototype.onUp=ND.prototype.onUp;ND.prototype.onDown=ND.prototype.onDown;ND.prototype.onActiveStateChange=ND.prototype.onActiveStateChange;ND.prototype.dataChanged=ND.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ND.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],ND.prototype,"ytComponentBehavior",void 0);
_.t([_.u(_.zS),_.O("design:type",Object)],ND.prototype,"ironButtonState",void 0);_.t([_.r(),_.O("design:type",Object)],ND.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],ND.prototype,"activeEndpoint",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],ND.prototype,"noLabels",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.O("design:type",Boolean)],ND.prototype,"isActive",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ND.prototype,"systemIcons",void 0);_.t([_.VP("yt-interaction"),_.O("design:type",Object)],ND.prototype,"interaction",void 0);_.t([_.I("isActive"),_.O("design:type",Object),_.O("design:paramtypes",[])],ND.prototype,"ariaSelected",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],ND.prototype,"frostedGlass",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ND.prototype,"dataChanged",null);_.t([_.CK("isActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ND.prototype,"onActiveStateChange",null);_.t([_.nK("down"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ND.prototype,"onDown",null);
_.t([_.nK("up"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ND.prototype,"onUp",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],ND.prototype,"onTap",null);_.t([_.Z({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],ND);
_.T(ND,"ytd-mini-guide-entry-renderer",function(){if(OkT!==void 0)return OkT;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return OkT=d},{mode:_.qk("kevlar_poly_si_batch_j063")?1:2});var Sn1;var DU=function(){var d=_.B.apply(this,arguments)||this;d.allVideosCount=0;d.noLabels=_.h("kevlar_mini_guide_no_labels");d.frostedGlass=_.h("web_frosted_glass");return d};
_.m(DU,_.B);_.G=DU.prototype;_.G.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.G.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.G.onMouseEnter=function(){_.h("web_guide_hover_expansion")&&_.qo(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.G.visibleChanged=function(){if(this.visible&&!this.data){var d=_.Kj().resolve(_.$p(_.y6));d&&d.setGuideData(this.hostElement)}};
_.G.dataChanged=function(){var d=[],H;if((H=this.data)!=null&&H.items){H=_.q(this.data.items);for(var K=H.next();!K.done;K=H.next()){K=K.value;var c=void 0;if((c=K.guideSectionRenderer)==null?0:c.items)for(c=void 0,K=_.q((c=K.guideSectionRenderer)==null?void 0:c.items),c=K.next();!c.done;c=K.next())if(c=c.value,c.guideEntryRenderer)c=c.guideEntryRenderer,c.isPrimary&&d.push({guideEntryRenderer:c});else if(c.guideCollapsibleSectionEntryRenderer){var p=void 0;((p=_.M(c.guideCollapsibleSectionEntryRenderer.headerEntry,
og))==null?0:p.isPrimary)&&d.push({guideEntryRenderer:_.M(c.guideCollapsibleSectionEntryRenderer.headerEntry,og)});if(c=c.guideCollapsibleSectionEntryRenderer.sectionItems)for(c=_.q(c),p=c.next();!p.done;p=c.next()){var g=p.value;p=_.M(g,eq5);var a=void 0;((a=_.M(g,og))==null?0:a.isPrimary)?d.push({guideEntryRenderer:_.M(g,og)}):p&&(g=void 0,_.M((g=p)==null?void 0:g.entryRenderer,og)&&(p.alwaysShow||this.allVideosCount)&&d.push({guideEntryRenderer:_.M(p.entryRenderer,og)}))}}}}this.miniGuideItems=
d};
_.G.activeEndpointChanged=function(){for(var d=this.items.children,H=0;H<d.length;H++)d[H].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.G.registerWithViewTransitionManager=function(){var d=this;_.mf(_.Xp,function(){var H=_.Kj().resolve(_.$p(_.LW));if(H&&H.isAnyTransitionEnabled){var K={};H.viewTransitionCoordinator.registerElement(d.hostElement,(K.slide="mini-guide-page-transition",K))}})};
DU.prototype.activeEndpointChanged=DU.prototype.activeEndpointChanged;DU.prototype.dataChanged=DU.prototype.dataChanged;DU.prototype.visibleChanged=DU.prototype.visibleChanged;DU.prototype.onMouseEnter=DU.prototype.onMouseEnter;_.t([_.u(_.to),_.O("design:type",Object)],DU.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],DU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],DU.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],DU.prototype,"ytComponentBehavior",void 0);_.t([_.VP("#items"),_.O("design:type",Object)],DU.prototype,"items",void 0);_.t([_.r(),_.O("design:type",Object)],DU.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Boolean)],DU.prototype,"visible",void 0);_.t([_.r(),_.O("design:type",Object)],DU.prototype,"miniGuideItems",void 0);_.t([_.r({selector:_.$GD}),_.O("design:type",Object)],DU.prototype,"allVideosCount",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],DU.prototype,"noLabels",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],DU.prototype,"frostedGlass",void 0);
_.t([_.nK("mouseenter"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],DU.prototype,"onMouseEnter",null);_.t([_.Mr("visible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],DU.prototype,"visibleChanged",null);_.t([_.Mr("data","allVideosCount"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],DU.prototype,"dataChanged",null);
_.t([_.Mr("activeEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],DU.prototype,"activeEndpointChanged",null);_.t([_.Z({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],DU);
_.T(DU,"ytd-mini-guide-renderer",function(){if(Sn1===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-mini-guide-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);Sn1=d}d=Sn1;return d},{mode:1});var Eat;var yq5=/^[\x00-\x7F]+$/,f0=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");return d};
_.m(f0,_.B);_.H3.Object.defineProperties(f0.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var d,H=_.jG((d=this.data)==null?void 0:d.handle);if(H)return _.AF("@"+H)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var d=_.jG(this.displayHandle),H,K=_.jG((H=this.data)==null?void 0:H.handleUrl);if(d&&K)return _.AF(K+d)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var d=_.jG(this.displayHandle);if(d&&!yq5.test(d)){var H;return(H=this.data)==null?void 0:H.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var d=_.jG(this.displayHandleUrl),H,K=_.jG((H=this.data)==null?void 0:H.urlInfoText);if(d&&K)return _.AF(K+" "+d)}}});
_.t([_.r(),_.O("design:type",Object)],f0.prototype,"data",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],f0.prototype,"displayHandle",null);_.t([_.I("displayHandle"),_.O("design:type",Object),_.O("design:paramtypes",[])],f0.prototype,"displayHandleUrl",null);_.t([_.I("displayHandle"),_.O("design:type",Object),_.O("design:paramtypes",[])],f0.prototype,"warningText",null);
_.t([_.I("displayHandleUrl"),_.O("design:type",Object),_.O("design:paramtypes",[])],f0.prototype,"urlInfoTextWithUrl",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],f0.prototype,"darkerDarkTheme",void 0);_.t([_.Z({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],f0);
_.T(f0,"ytd-handles-claiming-confirm-dialog-content",function(){if(Eat!==void 0)return Eat;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-formatted-string id="first-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[data.firstInfoText]]"></yt-formatted-string>\n    <yt-formatted-string id="url-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[urlInfoTextWithUrl]]"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n      <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[warningText]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Eat=d},{mode:1});var bkZ;var Al=function(){var d=_.B.apply(this,arguments)||this;d.okButtonOverride={style:"mono",type:"outline",size:"M"};return d};
_.m(Al,_.B);Al.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Al.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Al.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Al.prototype,"okButtonOverride",void 0);_.t([_.r(),_.O("design:type",Object)],Al.prototype,"data",void 0);_.t([_.Z({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Al);
_.T(Al,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(bkZ!==void 0)return bkZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-confirm-dialog-content data="[[data]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n</ytd-handles-claiming-confirm-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <div id="ok-button" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return bkZ=d},{mode:1});var NO0;var DHt=/^[\x00-\x7F]+$/,js=function(){var d=_.B.apply(this,arguments)||this;d.isLoading=!1;d.darkerDarkTheme=_.h("web_darker_dark_theme");return d};
_.m(js,_.B);js.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var d;this.selectedHandle=(d=this.handleInput)==null?void 0:d.value;this.onSelectedHandleChanged(this.selectedHandle);_.qo(this.hostElement,"yt-refit-popups-action")}};
_.H3.Object.defineProperties(js.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var d;return(d=this.data)==null?void 0:d.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.AF("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.AF(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!DHt.test(this.selectedHandle)){var d;return(d=this.data)==null?void 0:d.warningText}}}});
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],js.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],js.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],js.prototype,"selectedHandle",void 0);_.t([_.r(),_.O("design:type",Object)],js.prototype,"isLoading",void 0);_.t([_.r(),_.O("design:type",Function)],js.prototype,"onSelectedHandleChanged",void 0);_.t([_.VP("#channel-handle-input"),_.O("design:type",Object)],js.prototype,"handleInput",void 0);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],js.prototype,"handleUrlPrefix",null);_.t([_.I("selectedHandle"),_.O("design:type",Object),_.O("design:paramtypes",[])],js.prototype,"displayHandle",null);_.t([_.I("selectedHandle"),_.O("design:type",Object),_.O("design:paramtypes",[])],js.prototype,"displayHandleUrl",null);_.t([_.I("selectedHandle"),_.O("design:type",Object),_.O("design:paramtypes",[])],js.prototype,"warningText",null);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],js.prototype,"darkerDarkTheme",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],js.prototype,"ytRendererBehavior",void 0);_.t([_.Z({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],js);
_.T(js,"ytd-handles-claiming-edit-dialog-content",function(){if(NO0!==void 0)return NO0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="input-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      </ytd-channel-handle-input-renderer>\n    </template>\n  </div>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></tp-yt-paper-spinner>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return NO0=d},{mode:1});var fn1;var vT=function(){var d=_.B.apply(this,arguments)||this;d.actionButtonOverride={style:"mono",type:"filled",size:"M"};d.cancelButtonOverride={style:"mono",type:"text",size:"M"};d.selectButtonDisabled=!1;d.isLoading=!1;d.hasSelectedHandleEventListener=!1;d.selectedHandleChanged=function(H){d.selectedHandle=H};
return d};
_.m(vT,_.B);_.G=vT.prototype;_.G.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.G.onDataChanged=function(){var d,H;this.selectedHandle=(H=_.M((d=this.data)==null?void 0:d.inputField,Ssv))==null?void 0:H.handle};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.onCancel=function(){this.selectedHandle="";_.oF(this.hostElement,"yt-close-popup-action",[this.is])};
_.G.onSelectHandle=function(){var d=this;if(this.selectedHandle!==void 0){var H;((H=this.data)==null?void 0:H.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(K,c){if(c.newHandleUpdateStatus!==void 0&&c.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&c.newHandleUpdateStatus.errorMessage)_.ff(d.hostElement,_.jG(c.newHandleUpdateStatus.errorMessage)),
d.isLoading=!1;else{var p;if((p=d.data)==null?0:p.onChannelUpdateSuccess){K=d.data.onChannelUpdateSuccess;var g,a;if(c=(g=_.M(K,_.u$))==null?void 0:(a=g.popup)==null?void 0:a.handlesClaimingConfirmDialogRenderer)c.handle=_.AF(d.selectedHandle);d.ytComponentBehavior.resolveCommand(K);_.oF(d.hostElement,"yt-close-popup-action",[d.is])}else d.isLoading=!1}},
onServerError:function(){var K;d.content&&((K=d.content)==null?0:K.handleInput)&&d.content.handleInput.validate();d.isLoading=!1;_.ff(d.hostElement,_.Vz("TRY_AGAIN_LATER"))}}}))}};
_.G.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
vT.prototype.onDataChanged=vT.prototype.onDataChanged;vT.prototype.onSelectedHandleChanged=vT.prototype.onSelectedHandleChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],vT.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],vT.prototype,"actionButtonOverride",void 0);_.t([_.r(),_.O("design:type",Object)],vT.prototype,"cancelButtonOverride",void 0);_.t([_.r(),_.O("design:type",Object)],vT.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",String)],vT.prototype,"selectedHandle",void 0);_.t([_.r(),_.O("design:type",Object)],vT.prototype,"selectButtonDisabled",void 0);_.t([_.r(),_.O("design:type",Object)],vT.prototype,"isLoading",void 0);_.t([_.r(),_.O("design:type",Object)],vT.prototype,"hasSelectedHandleEventListener",void 0);_.t([_.r(),_.O("design:type",Object)],vT.prototype,"handleInput",void 0);
_.t([_.CK("selectedHandle"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],vT.prototype,"onSelectedHandleChanged",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],vT.prototype,"onDataChanged",null);_.t([_.VP("ytd-handles-claiming-edit-dialog-content"),_.O("design:type",Object)],vT.prototype,"content",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],vT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.Z({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],vT);
_.T(vT,"ytd-handles-claiming-edit-dialog-renderer",function(){if(fn1!==void 0)return fn1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-edit-dialog-content data="[[data]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" on-selected-handle-changed="[[selectedHandleChanged]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n</ytd-handles-claiming-edit-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return fn1=d},{mode:1});var Aq5;var dm=function(){return _.B.apply(this,arguments)||this};
_.m(dm,_.B);_.H3.Object.defineProperties(dm.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.data)==null?0:d.handle){var H;return _.AF("@"+_.jG((H=this.data)==null?void 0:H.handle))}}}});
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],dm.prototype,"formattedHandle",null);_.t([_.r(),_.O("design:type",Object)],dm.prototype,"data",void 0);_.t([_.Z({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],dm);
_.T(dm,"ytd-handles-claiming-radio-option-renderer",function(){if(Aq5!==void 0)return Aq5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="handle" respect-lang-dir="" text="[[formattedHandle]]" class="style-scope ytd-handles-claiming-radio-option-renderer">\n</yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Aq5=d},{mode:1});var j_T;var va0=/^[\x00-\x7F]+$/,HY=function(){var d=_.B.apply(this,arguments)||this;d.initialRadioIndex="-1";d.isLoading=!1;d.darkerDarkTheme=_.h("web_darker_dark_theme");d.maybeSubmitFeedback=function(){d.feedbackSurveyRenderer.submitSurvey()};
return d};
_.m(HY,_.B);HY.prototype.updateSelectedHandleIndexFromBinding=function(d){this.selectedRadioIndex=+d.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(d)};
HY.prototype.selectedHandleChanged=function(d){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var H;this.selectedHandle=(H=this.handleInput)==null?void 0:H.value;this.onSelectedHandleChanged(d)}};
_.H3.Object.defineProperties(HY.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var d;return(((d=this.data)==null?void 0:d.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var d;return this.ytRendererBehavior.getSimpleString((d=this.data)==null?void 0:d.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.AF("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.AF(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!va0.test(this.selectedHandle)){var d;return(d=this.data)==null?void 0:d.warningText}}}});
_.t([_.r(),_.O("design:type",Object)],HY.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],HY.prototype,"initialRadioIndex",void 0);_.t([_.r(),_.O("design:type",Number)],HY.prototype,"selectedRadioIndex",void 0);_.t([_.r(),_.O("design:type",String)],HY.prototype,"selectedHandle",void 0);_.t([_.r(),_.O("design:type",Object)],HY.prototype,"isLoading",void 0);_.t([_.r(),_.O("design:type",Function)],HY.prototype,"onSelectedHandleChanged",void 0);
_.t([_.r(),_.O("design:type",Function)],HY.prototype,"onSelectedRadioIndexChanged",void 0);_.t([_.VP("#channel-handle-input"),_.O("design:type",Object)],HY.prototype,"handleInput",void 0);_.t([_.VP("ytd-feedback-survey-renderer"),_.O("design:type",Object)],HY.prototype,"feedbackSurveyRenderer",void 0);_.t([_.I("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],HY.prototype,"radioButtonLength",null);
_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],HY.prototype,"handleUrlPrefix",null);_.t([_.I("selectedHandle"),_.O("design:type",Object),_.O("design:paramtypes",[])],HY.prototype,"displayHandle",null);_.t([_.I("selectedHandle"),_.O("design:type",Object),_.O("design:paramtypes",[])],HY.prototype,"displayHandleUrl",null);_.t([_.I("selectedHandle"),_.O("design:type",Object),_.O("design:paramtypes",[])],HY.prototype,"warningText",null);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],HY.prototype,"darkerDarkTheme",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.t([_.Z({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],HY);
_.T(HY,"ytd-handles-claiming-select-dialog-content",function(){if(j_T!==void 0)return j_T;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <tp-yt-paper-radio-group id="radio-container" selected="[[initialRadioIndex]]" on-selected-changed="updateSelectedHandleIndexFromBinding" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <template is="dom-repeat" items="[[data.radioButton]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[index]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-handles-claiming-radio-option-renderer data="[[item.handlesClaimingRadioOptionRenderer]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-handles-claiming-radio-option-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[radioButtonLength]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-channel-handle-input-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content"></tp-yt-paper-spinner>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return j_T=d},{mode:1});var dxS;var $_=function(){var d=_.B.apply(this,arguments)||this;d.actionButtonOverride={style:"mono",type:"filled",size:"M"};d.cancelButtonOverride={style:"mono",type:"text",size:"M"};d.initialRadioIndex="-1";d.selectButtonDisabled=!1;d.isLoading=!1;d.selectedRadioIndexChanged=function(H){d.selectedRadioIndex=Number(H.detail.value)};
d.selectedHandleChanged=function(H){d.selectedHandle=H.detail.value};
d.darkerDarkTheme=_.h("web_darker_dark_theme");return d};
_.m($_,_.B);_.G=$_.prototype;_.G.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.G.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.G.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.qo(this.hostElement,"yt-refit-popups-action")};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.oF(this.hostElement,"yt-close-popup-action",[this.is])};
_.G.onSelectHandle=function(){var d=this;if(this.selectedHandle!==void 0){var H;((H=this.data)==null?void 0:H.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(K,c){if(c.newHandleUpdateStatus!==void 0&&c.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&c.newHandleUpdateStatus.errorMessage)_.ff(d.hostElement,_.jG(c.newHandleUpdateStatus.errorMessage)),
d.isLoading=!1;else{var p;if((p=d.data)==null?0:p.onChannelUpdateSuccess){K=d.data.onChannelUpdateSuccess;c=_.M(K,_.u$);var g;if(c==null?0:(g=c.popup)==null?0:g.handlesClaimingConfirmDialogRenderer)c.popup.handlesClaimingConfirmDialogRenderer.handle=_.AF(d.selectedHandle);d.ytComponentBehavior.resolveCommand(K);_.oF(d.hostElement,"yt-close-popup-action",[d.is])}else d.isLoading=!1}},
onServerError:function(){if(d.selectedRadioIndex===d.radioButtonLength){var K;d.content&&((K=d.content)==null?0:K.handleInput)&&d.content.handleInput.validate()}d.isLoading=!1;_.ff(d.hostElement,_.Vz("TRY_AGAIN_LATER"))}}}))}};
_.G.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var d,H;this.selectedHandle=(d=this.content)==null?void 0:(H=d.handleInput)==null?void 0:H.value}else this.selectedRadioIndex>=0&&((d=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(d==null?void 0:d.handle):this.selectedHandle=void 0)};
_.G.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.G.getRadioItem=function(d){if(this.radioButtonLength>d&&d>=0)return _.M(this.data.radioButton[d],gkj)};
_.H3.Object.defineProperties($_.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var d;return(((d=this.data)==null?void 0:d.radioButton)||[]).length}}});
$_.prototype.onSelectedHandleChanged=$_.prototype.onSelectedHandleChanged;$_.prototype.onSelectedHandleIndexChanged=$_.prototype.onSelectedHandleIndexChanged;$_.prototype.onDataChanged=$_.prototype.onDataChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],$_.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],$_.prototype,"actionButtonOverride",void 0);_.t([_.r(),_.O("design:type",Object)],$_.prototype,"cancelButtonOverride",void 0);
_.t([_.r(),_.O("design:type",Object)],$_.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],$_.prototype,"initialRadioIndex",void 0);_.t([_.r(),_.O("design:type",Number)],$_.prototype,"selectedRadioIndex",void 0);_.t([_.r(),_.O("design:type",String)],$_.prototype,"selectedHandle",void 0);_.t([_.r(),_.O("design:type",Object)],$_.prototype,"selectButtonDisabled",void 0);_.t([_.r(),_.O("design:type",Object)],$_.prototype,"isLoading",void 0);
_.t([_.I("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],$_.prototype,"radioButtonLength",null);_.t([_.VP("ytd-handles-claiming-select-dialog-content"),_.O("design:type",Object)],$_.prototype,"content",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$_.prototype,"onDataChanged",null);
_.t([_.CK("selectedRadioIndex"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$_.prototype,"onSelectedHandleIndexChanged",null);_.t([_.CK("selectedHandle"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$_.prototype,"onSelectedHandleChanged",null);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],$_.prototype,"darkerDarkTheme",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],$_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.Z({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],$_);
_.T($_,"ytd-handles-claiming-select-dialog-renderer",function(){if(dxS!==void 0)return dxS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-select-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-select-dialog-content data="[[data]]" initial-radio-index="[[initialRadioIndex]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" selected-radio-index="[[selectedRadioIndex]]" on-selected-handle-changed="[[selectedHandleChanged]]" on-selected-radio-index-changed="[[selectedRadioIndexChanged]]" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n</ytd-handles-claiming-select-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return dxS=d},{mode:1});var HWt;var $xO;var KL=function(){return _.B.apply(this,arguments)||this};
_.m(KL,_.B);KL.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],KL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],KL.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],KL.prototype,"data",void 0);_.t([_.Z({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],KL);
_.T(KL,"ytd-hotkey-dialog-section-option-renderer",function(){if($xO!==void 0)return $xO;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="label-container style-scope ytd-hotkey-dialog-section-option-renderer">\n  <div id="label" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[getSimpleString(data.label)]]</div>\n  <div id="standalone-badge" class="standalone-badge style-scope ytd-hotkey-dialog-section-option-renderer"></div>\n</div>\n<div id="hotkey" aria-label$="[[data.hotkeyAccessibilityLabel.accessibilityData.label]]" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[data.hotkey]]</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return $xO=d},{mode:1});var KPU;var cY=function(){return _.B.apply(this,arguments)||this};
_.m(cY,_.B);cY.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],cY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],cY.prototype,"data",void 0);_.t([_.Z({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],cY);
_.T(cY,"ytd-hotkey-dialog-section-renderer",function(){if(KPU!==void 0)return KPU;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sub-title" class="style-scope ytd-hotkey-dialog-section-renderer">[[getSimpleString(data.title)]]</div>\n<div id="options" class="style-scope ytd-hotkey-dialog-section-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return KPU=d},{mode:1});var pL=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");return d};
_.m(pL,_.B);pL.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],pL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],pL.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],pL.prototype,"darkerDarkTheme",void 0);_.t([_.Z({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],pL);
_.T(pL,"ytd-hotkey-dialog-content",function(){if(HWt!==void 0)return HWt;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-hotkey-dialog-content">\n  <div id="sections" class="style-scope ytd-hotkey-dialog-content"></div>\n</tp-yt-paper-dialog-scrollable>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return HWt=d},{mode:1});var c7q;var gm=function(){return _.B.apply(this,arguments)||this};
_.m(gm,_.B);gm.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var d=document.querySelector("ytd-hotkey-dialog-content #scrollable");d&&(d.dialogElement=this.hostElement.parentElement)};
gm.prototype.onCloseTap=function(){_.oF(this.hostElement,"yt-close-popup-action")};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],gm.prototype,"data",void 0);_.t([_.Z({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],gm);
_.T(gm,"ytd-hotkey-dialog-renderer",function(){if(c7q!==void 0)return c7q;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-hotkey-dialog-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-hotkey-dialog-content data="[[data]]" class="style-scope ytd-hotkey-dialog-renderer"></ytd-hotkey-dialog-content>\n<div id="action-buttons" class="style-scope ytd-hotkey-dialog-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.dismissButton.buttonRenderer]]" on-tap="onCloseTap" class="style-scope ytd-hotkey-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return c7q=d},{mode:1});var pOS;var iQ=function(){return _.B.apply(this,arguments)||this};
_.m(iQ,_.B);iQ.prototype.onYtServiceRequestError=function(){if(this.blocked){var d;var H=(d=this.data)==null?void 0:d.defaultServiceEndpoint}else{var K;H=(K=this.data)==null?void 0:K.toggledServiceEndpoint}var c;(H=(c=_.M(H,_.PJ6))==null?void 0:c.onFailureAction)&&this.ytComponentBehavior.resolveCommand(H);this.updateBlockState(!this.blocked)};
iQ.prototype.onYtToggleButton=function(d){this.updateBlockState(d.detail.toggled)};
iQ.prototype.updateBlockState=function(d){if(d!==this.blocked){var H=this.blockedEntityKey;H&&this.ytdReduxBehavior.dispatch(_.PI("blockStateEntity",H,{key:H,blocked:d}));this.set("data.isToggled",d)}};
_.H3.Object.defineProperties(iQ.prototype,{blocked:{configurable:!0,enumerable:!0,get:function(){return this.blockStateEntity?(this.set("data.isToggled",this.blocked),!!this.blockStateEntity.blocked):!(!this.data||!this.data.isToggled)}}});
iQ.prototype.onYtToggleButton=iQ.prototype.onYtToggleButton;iQ.prototype.onYtServiceRequestError=iQ.prototype.onYtServiceRequestError;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],iQ.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],iQ.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],iQ.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],iQ.prototype,"blockedEntityKey",void 0);
_.t([_.r({selectorArgs:["blockedEntityKey"],selector:function(d,H){return _.xL(d.entities,"blockStateEntity",H)}}),
_.O("design:type",Object)],iQ.prototype,"blockStateEntity",void 0);_.t([_.I("data","blockStateEntity"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],iQ.prototype,"blocked",null);_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],iQ.prototype,"onYtServiceRequestError",null);
_.t([_.nK("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],iQ.prototype,"onYtToggleButton",null);_.t([_.Z({is:"ytd-block-button",disableElementRegistration:!0})],iQ);
_.T(iQ,"ytd-block-button",function(){if(pOS!==void 0)return pOS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-block-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer data="[[data]]" class="style-scope ytd-block-button">\n</ytd-toggle-button-renderer>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return pOS=d},
{mode:1});var gg5;var iWb;var Gf=function(){return _.B.apply(this,arguments)||this};
_.m(Gf,_.B);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Gf.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Gf.prototype,"data",void 0);_.t([_.Z({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],Gf);
_.T(Gf,"ytd-kids-blocklist-picker-item-renderer",function(){if(iWb!==void 0)return iWb;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="account-info style-scope ytd-kids-blocklist-picker-item-renderer">\n  <div class="account-avatar style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-img-shadow id="account-icon" thumbnail="[[data.avatar]]" width="44" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="account-text-info style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-formatted-string class="account-name style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childDisplayName]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="account-description style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childAccountDescription]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="action-button style-scope ytd-kids-blocklist-picker-item-renderer">\n  <ytd-block-button blocked-entity-key="[[data.blockedEntityKey]]" data="[[data.blockButton.toggleButtonRenderer]]" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n  </ytd-block-button>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return iWb=d},{mode:1});var oy=function(){return _.B.apply(this,arguments)||this};
_.m(oy,_.B);oy.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],oy.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],oy.prototype,"data",void 0);_.t([_.Z({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],oy);
_.T(oy,"ytd-kids-blocklist-picker-content",function(){if(gg5!==void 0)return gg5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="child-rows" class="style-scope ytd-kids-blocklist-picker-content"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return gg5=
d},{mode:_.qk("kevlar_poly_si_batch_j025")?1:2});var GMt;var q4=function(){var d=_.B.apply(this,arguments)||this;d.hasAnyRequestSucceeded=!1;d.hasAnyRequestFailed=!1;d.numPendingRequests=0;return d};
_.m(q4,_.B);_.G=q4.prototype;_.G.attached=function(){this.hostElement.setAttribute("dialog","")};
_.G.onDoneButtonTap=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.G.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.G.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.G.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.G.onPopupClosed=function(d){var H,K;if(((H=d.detail)==null?void 0:(K=H.popup)==null?void 0:K.is)==="tp-yt-paper-dialog"){var c;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((c=this.data)==null?0:c.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.$i(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
q4.prototype.onPopupClosed=q4.prototype.onPopupClosed;q4.prototype.onYtServiceRequestError=q4.prototype.onYtServiceRequestError;q4.prototype.onYtServiceRequestCompleted=q4.prototype.onYtServiceRequestCompleted;q4.prototype.onYtServiceRequestSent=q4.prototype.onYtServiceRequestSent;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],q4.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],q4.prototype,"data",void 0);_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],q4.prototype,"onYtServiceRequestSent",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],q4.prototype,"onYtServiceRequestCompleted",null);
_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],q4.prototype,"onYtServiceRequestError",null);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],q4.prototype,"onPopupClosed",null);_.t([_.Z({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],q4);
_.T(q4,"ytd-kids-blocklist-picker-renderer",function(){if(GMt!==void 0)return GMt;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="title" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </yt-formatted-string>\n  </div>\n  <ytd-kids-blocklist-picker-content data="[[data]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </ytd-kids-blocklist-picker-content>\n</div>\n<div id="footer" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="action-buttons" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <ytd-button-renderer id="done-button" data="[[data.doneButton.buttonRenderer]]" on-click="onDoneButtonTap" class="style-scope ytd-kids-blocklist-picker-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return GMt=d},{mode:1});var og0;var qwt;var ay=function(){return _.B.apply(this,arguments)||this};
_.m(ay,_.B);ay.prototype.setTip=function(d){var H=this;this.data&&(this.tip=fTt(Njt.getInstance(),d,this.data),_.vV(this,function(){_.GT(H.hostElement,"yt-refit")}))};
ay.prototype.clearTip=function(){this.tip=void 0};
ay.prototype.computeHidden=function(d){return!d};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ay.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.O("design:type",Boolean)],ay.prototype,"hidden",void 0);_.t([_.r(),_.O("design:type",Object)],ay.prototype,"tip",void 0);_.t([_.Z({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],ay);
_.T(ay,"ytd-menu-popup-tip-renderer",function(){if(qwt!==void 0)return qwt;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-tip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[tip]]" class="style-scope ytd-menu-popup-tip-renderer"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);
return qwt=d},{mode:1});var a_1;var lQ=function(){var d=_.B.apply(this,arguments)||this;d.useIcons=!1;d.systemIcons=_.h("kevlar_system_icons");d.useListItemStyles=_.h("web_list_item_style_for_menu_items");return d};
_.m(lQ,_.B);_.G=lQ.prototype;_.G.onFocus=function(){var d;(d=_.Gn(this.hostElement).querySelector("tp-yt-paper-item"))==null||d.focus()};
_.G.onTap=function(){var d=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(d&&_.M(d,_.kW))this.componentBehavior.resolveCommand(d),this.updateToggledStateInEntity();else if(d){this.componentBehavior.resolveCommand(d)||_.Kj().resolve(_.cb).resolveCommand(d,{form:{element:this.hostElement}});var H;((H=_.M(d,_.no))==null?void 0:H.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.G.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.G.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.G.updateToggledStateInEntity=function(){var d=this.data.toggleMenuServiceItemEntityKey,H=!this.data.isToggled;d&&this.ytdReduxBehavior.dispatch(_.PI("toggleMenuServiceItemEntity",d,{key:d,isToggled:H}))};
_.G.computeIcon=function(d,H,K){return(d=d?K:H)&&d.iconType?_.kv(d.iconType):""};
_.G.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.G.isIconActive=function(d){return!_.h("toggle_menu_active_icon_killswitch")&&d};
_.H3.Object.defineProperties(lQ.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return((d=this.data)==null?0:d.isToggled)?(H=this.data)==null?void 0:H.toggledText:(K=this.data)==null?void 0:K.defaultText}}});
lQ.prototype.toggledStateEntityChanged=lQ.prototype.toggledStateEntityChanged;lQ.prototype.onYtServiceRequestCompleted=lQ.prototype.onYtServiceRequestCompleted;lQ.prototype.onTap=lQ.prototype.onTap;lQ.prototype.onFocus=lQ.prototype.onFocus;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],lQ.prototype,"componentBehavior",void 0);
_.t([_.u(_.to),_.O("design:type",Object)],lQ.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],lQ.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lQ.prototype,"useIcons",void 0);_.t([_.r({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.O("design:type",String)],lQ.prototype,"icon",void 0);
_.t([_.r({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(d,H){return _.xL(d.entities,"toggleMenuServiceItemEntity",H)}}),
_.O("design:type",Object)],lQ.prototype,"toggleMenuServiceItemEntity",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lQ.prototype,"systemIcons",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],lQ.prototype,"useListItemStyles",void 0);_.t([_.nK("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lQ.prototype,"onFocus",null);
_.t([_.I("data.isToggled"),_.O("design:type",Object),_.O("design:paramtypes",[])],lQ.prototype,"toggleButtonText",null);_.t([_.nK("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lQ.prototype,"onTap",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lQ.prototype,"onYtServiceRequestCompleted",null);
_.t([_.CK("toggleMenuServiceItemEntity.isToggled","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lQ.prototype,"toggledStateEntityChanged",null);_.t([_.Z({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],lQ);
_.T(lQ,"ytd-toggle-menu-service-item-renderer",function(){if(a_1!==void 0)return a_1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item class="style-scope ytd-toggle-menu-service-item-renderer">\n  <yt-icon active="[[isIconActive(data.isToggled)]]" hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[toggleButtonText]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-formatted-string>\n  <tp-yt-paper-toggle-button checked="[[data.isToggled]]" hidden="[[!data.hasToggleSwitch]]" class="style-scope ytd-toggle-menu-service-item-renderer"></tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return a_1=d},{mode:1});var l_v;var eQ=function(){return _.B.apply(this,arguments)||this};
_.m(eQ,_.B);eQ.prototype.onFocus=function(){var d;(d=_.Gn(this.hostElement).querySelector("tp-yt-paper-item"))==null||d.focus()};
_.H3.Object.defineProperties(eQ.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Xa(this.data.iconUrl)}}});
eQ.prototype.onFocus=eQ.prototype.onFocus;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],eQ.prototype,"rendererBehavior",void 0);_.t([_.u(_.VV.YtEndpointBehavior),_.O("design:type",Object)],eQ.prototype,"ytEndpointBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],eQ.prototype,"data",void 0);_.t([_.nK("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],eQ.prototype,"onFocus",null);
_.t([_.I("data.iconUrl"),_.O("design:type",Object),_.O("design:paramtypes",[])],eQ.prototype,"imageSource",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],eQ);
_.T(eQ,"ytd-menu-custom-icon-item-renderer",function(){if(l_v!==void 0)return l_v;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-custom-icon-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-menu-custom-icon-item-renderer" data="[[data.command]]" href$="[[computeHref_(data.command)]]" tabindex="-1">\n  <tp-yt-paper-item class="style-scope ytd-menu-custom-icon-item-renderer">\n    <img class="custom-icon style-scope ytd-menu-custom-icon-item-renderer" hidden$="[[!data.iconUrl]]" alt="icon" src$="[[imageSource]]">\n    <div class="action-text style-scope ytd-menu-custom-icon-item-renderer">\n      [[getSimpleString(data.actionText)]]\n      <yt-icon class="launch-icon style-scope ytd-menu-custom-icon-item-renderer" icon="yt-icons:launch"></yt-icon>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return l_v=d},{mode:_.qk("kevlar_poly_si_batch_j028")?1:2});_.iV(_.QD,"yt-list-item-view-model",{props:{data:_.dl,isMenuItem:_.dl,isCompact:_.dl,onTap:_.p7,trailingAccessory:_.p7,hideSelectionTextChevron:_.dl,disabled:_.dl,inPopup:_.dl,disableHorizontalPadding:_.dl,isOverlay:_.dl,isToggled:_.dl,ariaLabel:_.dl,ariaPressed:_.dl}});var k_=function(){var d=_.B.apply(this,arguments)||this;d.disableBackdropFilter=_.h("web_disable_backdrop_filter");return d};
_.m(k_,_.B);_.G=k_.prototype;
_.G.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{menuNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},
toggleMenuServiceItemRenderer:{component:"ytd-toggle-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},listItemViewModel:{component:"yt-list-item-view-model",params:{isCompact:!0}},menuCustomIconItemRenderer:{component:"ytd-menu-custom-icon-item-renderer"},menuServiceItemDownloadRenderer:{component:"ytd-menu-service-item-download-renderer"},clientSideToggleMenuItemRenderer:{component:"yt-live-chat-toggle-renderer"}}},"data.footer":{id:"footer",mapping:{menuPopupTipRenderer:"ytd-menu-popup-tip-renderer"}}}};
_.G.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.G.computeAriaLabel=function(d){return d};
_.G.onPopupOpened=function(){this.items.selected=0;for(var d=_.q(_.Gn(this.items).children),H=d.next();!H.done;H=d.next())H.value.popupPositionTarget=this.positionTarget;if(d=this.popupTip||void 0)d.setTip(this.source||""),this.source=void 0;this.veData&&(d=_.Fj())&&_.No(d,[this.veData])};
_.G.onPopupClosed=function(){var d=this.popupTip||void 0;d&&d.clearTip()};
_.G.onIronActivate=function(d){this.shouldPersist(d)||_.oF(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(d=_.Fj())&&_.fo(d,this.veData)};
_.G.shouldPersist=function(d){var H,K;if(((H=d.detail)==null?void 0:H.selected)===void 0||(K=this.data)==null||!K.items)return!1;var c,p;return!((p=(c=this.data.items[d.detail.selected])==null?void 0:c.toggleMenuServiceItemRenderer)==null||!p.persistentOnMenuPopup)};
_.G.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(d){return d.menuNavigationItemRenderer?!!d.menuNavigationItemRenderer.icon:d.menuServiceItemRenderer?!!d.menuServiceItemRenderer.icon:d.menuConditionalServiceItemRenderer?!!d.menuConditionalServiceItemRenderer.icon:d.menuConditionalNavigationItemRenderer?!!d.menuConditionalNavigationItemRenderer.icon:d.toggleMenuServiceItemRenderer?!!d.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
k_.prototype.onPopupClosed=k_.prototype.onPopupClosed;k_.prototype.onPopupOpened=k_.prototype.onPopupOpened;_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],k_.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],k_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],k_.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],k_.prototype,"veData",void 0);_.t([_.r({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.O("design:type",String)],k_.prototype,"ariaLabel",void 0);_.t([_.r({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],k_.prototype,"useIcons",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],k_.prototype,"disableBackdropFilter",void 0);_.t([_.VP("#items"),_.O("design:type",Object)],k_.prototype,"items",void 0);_.t([_.VP("ytd-menu-popup-tip-renderer"),_.O("design:type",Object)],k_.prototype,"popupTip",void 0);_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],k_.prototype,"onPopupOpened",null);
_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],k_.prototype,"onPopupClosed",null);_.t([_.Z({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],k_);
_.T(k_,"ytd-menu-popup-renderer",function(){if(og0!==void 0)return og0;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-listbox id="items" on-iron-activate="onIronActivate" class="style-scope ytd-menu-popup-renderer"></tp-yt-paper-listbox>\n<div id="footer" class="style-scope ytd-menu-popup-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return og0=d},{mode:1});var e8U;var kMj=_.H1(function(d){d=_.dg(d,{icon:void 0});var H=d.data;d=d.icon;var K=function(){return H().iconBadgeText},c={},p=_.xM("yt-spec-icon-badge-shape",function(){a:switch(H().iconBadgeType){case "notification":var g="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":g="yt-spec-icon-badge-shape--type-cart";break a;default:g=""}return g},function(){a:switch(H().iconBadgeStyle){case "overlay":var g="yt-spec-icon-badge-shape--style-overlay";
break a;default:g=""}return g},(c["yt-spec-icon-badge-shape--text-size-small"]=function(){var g=K();
return!!((g==null?0:g.length)&&g.length>2)},c));
return _.x("yt-icon-badge-shape",null,_.x(_.n,{cond:d,then:function(g){return _.x("div",{class:p},_.x("div",{class:"yt-spec-icon-badge-shape__icon"},_.x(_.hu,{icon:g})),_.x(_.n,{cond:K,then:function(a){return _.x("div",{class:"yt-spec-icon-badge-shape__badge"},a)}}))}}))},"bh");
kMj.idomCompat=!0;_.iV(kMj,"yt-icon-badge-shape",{props:{data:_.dl,icon:_.dl}});var x_=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};d.unseenCount=0;d.isOverlay=!1;return d};
_.m(x_,_.B);_.G=x_.prototype;_.G.attached=function(){var d=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(H){d.onServiceWorkerMessage(H)})};
_.G.onDataChanged=function(){this.isAttached&&!this.JSC$20367_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20367_lastData=this.data};
_.G.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.G.computeIcon=function(){var d,H;return(d=this.data)==null?void 0:(H=d.icon)==null?void 0:H.iconType};
_.G.onServiceWorkerMessage=function(d){d.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.G.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.M(this.data.updateUnseenCountEndpoint,_.no)&&_.M(this.data.updateUnseenCountEndpoint,_.no).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.G.handleUpdateNotificationsUnseenCountAction=function(d){var H=this;d=_.M(d,A$S);d!=null&&d.unseenCount&&d.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(d.unseenCount),_.Xp.addLowPriorityJob(function(){H.data.updateUnseenCountEndpoint&&H.ytComponentBehavior.resolveCommand(H.data.updateUnseenCountEndpoint)},d.timeoutMs))};
_.G.onClick=function(){_.GT(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var d=_.qo(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),H=this.data.menuRequest;d&&d.length===1&&d[0]?_.oF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):H&&this.ytComponentBehavior.resolveCommand(H)};
_.G.handleTopbarMenuClosedAction=function(d){d==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.G.toggleIconState=function(d){this.iconButton&&(this.iconButton.pressed=d)};
_.G.sendUnseenCountRequest=function(d){var H=this;_.mf(_.Xp,function(){H.ytComponentBehavior.resolveCommand(d)})};
_.G.updateCountUI=function(d){this.set("unseenCount",d<9?d:"9+")};
_.H3.Object.defineProperties(x_.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
x_.prototype.handleUpdateNotificationsUnseenCountAction=x_.prototype.handleUpdateNotificationsUnseenCountAction;x_.prototype.onDataChanged=x_.prototype.onDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],x_.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.Ke),_.O("design:type",Object)],x_.prototype,"ytdOpenPopupBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],x_.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],x_.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],x_.prototype,"unseenCount",void 0);_.t([_.r(),_.O("design:type",Object)],x_.prototype,"isOverlay",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],x_.prototype,"showTooltips",void 0);_.t([_.VP("yt-icon-button"),_.O("design:type",Object)],x_.prototype,"iconButton",void 0);
_.t([_.I("unseenCount"),_.O("design:type",Object),_.O("design:paramtypes",[])],x_.prototype,"showNotificationCount",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],x_.prototype,"onDataChanged",null);_.t([_.nK("yt-update-notifications-unseen-count-action"),_.O("design:type",Function),_.O("design:paramtypes",[Object]),_.O("design:returntype")],x_.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.t([_.Z({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],x_);
_.T(x_,"ytd-notification-topbar-button-renderer",function(){if(e8U!==void 0)return e8U;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-notification-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(unseenCount, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-notification-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-notification-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return e8U=d},{mode:_.qk("kevlar_poly_si_batch_j025")?1:2});var xx1;var nL=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return d};
_.m(nL,_.B);nL.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
nL.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
nL.prototype.onDarkModeToggled=function(d){this.dark=d};
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],nL.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],nL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],nL.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],nL.prototype,"data",void 0);_.t([_.r({value:!0,reflectToAttribute:!0}),_.O("design:type",Boolean)],nL.prototype,"dark",void 0);
_.t([_.Z({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],nL);
_.T(nL,"yt-pdg-buy-flow-header-renderer",function(){if(xx1!==void 0)return xx1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-buy-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <yt-formatted-string id="title" text="[[data.text]]" class="style-scope yt-pdg-buy-flow-header-renderer"></yt-formatted-string>\n</div>\n<div id="button-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <div id="help-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n  <div id="dismiss-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return xx1=d},{mode:1});var ngO;var C0g;var CL=function(){var d=_.B.apply(this,arguments)||this;d.immediateValue=0;d.isDarkTheme=!1;d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return d};
_.m(CL,_.B);_.G=CL.prototype;_.G.created=function(){_.QX.requestAvailability()};
_.G.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.G.dataChanged=function(){var d=_.Gn(this.hostElement).querySelector("#color-slider");d.immediateValue&&this.updateSliderKnobAndGradientStyles(d.immediateValue);this.data.notches[0].knobColorArgb&&_.eO(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Ob(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Fm("HTML_DIR")==="rtl"&&_.Gn(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.G.onSliderImmediateChange=function(){var d=_.Gn(this.hostElement).querySelector("#color-slider");d.dragging&&(d.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(d.immediateValue),this.updateSliderKnobAndGradientStyles(d.immediateValue)),this.updateSliderAria())};
_.G.onSliderChange=function(){var d=_.Gn(this.hostElement).querySelector("#color-slider");d.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(d.immediateValue),this.updateSliderKnobAndGradientStyles(d.immediateValue));this.updateSliderAria()};
_.G.updateSliderAria=function(){var d=_.Gn(this.hostElement).querySelector("#color-slider"),H=_.Gn(this.hostElement).querySelector("#color-slider");H=_.jG(this.data.notches[H.immediateValue].tierValue);_.q5D()&&_.GT(this.hostElement,"iron-announce",{text:H});d.setAttribute("aria-valuetext",H)};
_.G.updateSuperThanksSelectedTierEntity=function(d){if(d!==this.immediateValue){var H,K,c=this==null?void 0:(H=this.data)==null?void 0:(K=H.superThanksSelectedTierEntity)==null?void 0:K.key;c&&c.length>0&&this.ytdReduxBehavior.dispatch(_.PI("superThanksSelectedTierEntity",c,{key:c,index:d}))}};
_.G.onDarkModeToggledAction=function(d){this.isDarkTheme=d};
_.G.updateSliderKnobAndGradientStyles=function(d){this.immediateValue=d;d=this.data.notches[d];if(d==null?0:d.knobColorArgb)var H={"--ytd-pdg-color-slider-knob-color":_.Ob(d.knobColorArgb)};(d==null?0:d.linearGradientCssStyle)&&H!==null&&(H=Object.assign({},H,{"--ytd-pdg-color-slider-active-color":d==null?void 0:d.linearGradientCssStyle}));H!==null&&_.eO(this.hostElement,H)};
CL.prototype.onSliderChange=CL.prototype.onSliderChange;CL.prototype.onSliderImmediateChange=CL.prototype.onSliderImmediateChange;CL.prototype.dataChanged=CL.prototype.dataChanged;_.t([_.r(),_.O("design:type",Object)],CL.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],CL.prototype,"immediateValue",void 0);_.t([_.r(),_.O("design:type",Number)],CL.prototype,"maxMarkers",void 0);
_.t([_.r({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:QFU}),_.O("design:type",Object)],CL.prototype,"superThanksSelectedTierEntity",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],CL.prototype,"isDarkTheme",void 0);_.t([_.u(_.to),_.O("design:type",Object)],CL.prototype,"ytdReduxBehavior",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],CL.prototype,"dataChanged",null);
_.t([_.nK("immediate-value-change"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],CL.prototype,"onSliderImmediateChange",null);_.t([_.nK("change"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],CL.prototype,"onSliderChange",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],CL);
_.T(CL,"ytd-pdg-color-slider-renderer",function(){if(C0g!==void 0)return C0g;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-color-slider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-slider id="color-slider" max="[[maxMarkers]]" max-markers="[[maxMarkers]]" min="0" snaps="" step="1" value="[[immediateValue]]" class="style-scope ytd-pdg-color-slider-renderer"></tp-yt-paper-slider>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return C0g=d},{mode:1});var R8Z;var V4S;var Ry=null;
_.zn({is:"ytd-comment-input",_template:function(){if(V4S!==void 0)return V4S;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-comment-input">\n  <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-comment-input">\n    <div slot="after-input" class="paper-input-input style-scope ytd-comment-input">\n      <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-comment-input">\n        <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-comment-input">\n          <div id="content" slot="input" on-click="onContentClick" class="style-scope ytd-comment-input">\n            <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="input" data="[[commentChip]]" hidden="[[!hasCommentChip]]" class="style-scope ytd-comment-input">\n            </yt-pdg-comment-chip-renderer>\n            <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[computePlaceholderText_(placeholderText)]]" plaintext-only="true" required="true" split-lines="1" text="[[editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-comment-input"></yt-formatted-string>\n          </div>\n        </yt-user-mention-autosuggest-input>\n      </ytd-emoji-input>\n    </div>\n  </tp-yt-paper-input-container>\n  <span id="char-count" hidden="[[!charLimit]]" class="style-scope ytd-comment-input">[[charCount]]/[[charLimit]]</span>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return V4S=d},
behaviors:[_.nQ5.YtHostElementBehavior,_.hQ,_.S$.YtComponentBehavior,_.om.YtRendererstamperBehavior,_.O9l.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{editableText:{type:Object,observer:"textDataChanged_"},placeholderText:{type:Object,observer:"textDataChanged_"},
commentChip:{type:Object,observer:"commentChipChanged_"},hideUnderline:{type:Boolean,value:!1,reflectToAttribute:!0},hasCommentChip:{type:Boolean,value:!1,reflectToAttribute:!0},receivedFocusPreviously_:{type:Boolean,value:!1},previousText_:String,isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},emojiManager:{type:Object,readOnly:!0,value:function(){return _.bq}},
isEmojiButtonDisplayed:{type:Boolean,value:!1},emojiInput:Object,verticalSuggestionsOffset:{type:Number,value:30},charCount:{type:Number,value:0},charLimit:{type:Number,value:null},aboveCharLimit_:{type:Boolean,reflectToAttribute:!0,value:!1},inputEventSupported_:{type:Boolean,value:!1},textRequiresScrolling:{type:Boolean,reflectToAttribute:!0,value:!1},localStorage:Object},listeners:{"yt-insert-suggestion":"onSuggestionInsert_","yt-select-emoji-suggestion":"onEmojiSuggestionClick_","yt-mention-inserted":"onInsertMention_"},
ready:function(){document.addEventListener("tap",_.xf(this,this.onTap_));this.emojiInput=this.$.emoji},
commentChipChanged_:function(){this.hasCommentChip=this.computeHasCommentChip_()},
textDataChanged_:function(){this.clear()},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.eL();this.focus()},
detached:function(){document.removeEventListener("tap",_.xf(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(d){d=d.detail;d=d.isCustomEmoji?d.shortcuts[0]:d.emojiId;var H=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(H,d);this.maybeUpdateTextDirection_();_.GT(this.hostElement,"input")},
getInputRange_:function(){var d=_.en();if(d){d=d.getBrowserRangeObject();for(var H=d.commonAncestorContainer;H;){if(H===this.getEditableTextArea_())return d;H=H.parentNode}}d=this.getEditableTextArea_();d=_.FH(d,d.childNodes.length);d.select();return d.getBrowserRangeObject()},
insertTextWithEmojis_:function(d,H,K){(H=this.emojiManager.createDocumentFragment(H,!0,!1,K===void 0?!0:K))&&H.childNodes.length!==0&&(d.collapsed||d.deleteContents(),K=H.lastChild,d.insertNode(H),_.th6(K).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var d=_.en();if(d){var H=d.JSC$11278_getStartNode(),K=d.JSC$11278_getEndNode();if(PDS(H)&&PDS(K)){var c=d.JSC$11278_getStartOffset(),p;if(_.aB&&H.nodeType===Node.ELEMENT_NODE&&(p=_.sC7(H)))_.FH(p,0).select();else{p=Cx(H)?H:_.sY(H,Cx);var g=Cx(K)?K:_.sY(K,Cx);if(p||g)if(d.isCollapsed()){if(H.nodeType===Node.TEXT_NODE){d=!0;c===H.length&&(d=!1);if(Ry==="end"||Ry==="right")d=!1;H=H.parentNode;d=[].concat(_.ru(H.parentNode.childNodes)).indexOf(H)+(d?0:1);_.FH(H.parentNode,
d).select()}}else p?p.previousSibling&&p.previousSibling.length>0?_.Zh(K,d.JSC$11278_getEndOffset(),p.previousSibling,p.previousSibling.length-1).select():(H=document.createTextNode("\u200b"),p.parentNode.insertBefore(H,p),_.Zh(K,d.JSC$11278_getEndOffset(),H,0).select()):g&&(g.nextSibling&&g.nextSibling.length>0?_.Zh(H,d.JSC$11278_getStartOffset(),g.nextSibling,1).select():(K=document.createTextNode("\u200b"),g.parentNode.insertBefore(K,g.nextSibling),_.Zh(H,d.JSC$11278_getStartOffset(),K,K.length).select()));
Ry=null}}else Ry=null}else Ry=null},
leftKeyPressed_:function(){Ry="left"},
rightKeyPressed_:function(){Ry="right"},
endKeyPressed_:function(){Ry="end"},
maybeDeleteChip_:function(){var d=zug(!0);if(d){var H=_.en(),K=H.JSC$11278_getStartNode();H=H.JSC$11278_getStartOffset();_.BU(K,H,d,d.childNodes.length).select()}},
maybeBackspaceChip_:function(){var d=zug(!1);if(d){var H=_.en(),K=H.JSC$11278_getStartNode();H=H.JSC$11278_getStartOffset();_.BU(K,H,d,0).select()}},
maybeBackspaceChipWordMode_:function(d){var H=_.en();if(H.isCollapsed()){var K=H.JSC$11278_getStartNode();H=H.JSC$11278_getStartOffset();var c=X1S(K,H,!0);c&&(_.BU(K,H,c,0).select(),document.execCommand("delete"),d.preventDefault(),d.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(d){var H=_.en();if(H.isCollapsed()){var K=H.JSC$11278_getStartNode();H=H.JSC$11278_getStartOffset();var c=X1S(K,H,!1);c&&(_.BU(K,H,c,c.childNodes.length).select(),document.execCommand("delete"),d.preventDefault(),d.stopImmediatePropagation())}},
onContentClick:function(d){d.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(d){d.defaultPrevented||d.currentTarget.tagName==="YTD-COMMENT-INPUT"&&Cx(d.target)&&d.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.Gn(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Gn(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(d,H){d=IX5(d,this.emojiManager,H).cloneNode(!0);for(H=d.firstChild;H;)if(H.nodeType!==1)H=H.nextSibling;else switch(H.tagName){case "BR":var K=_.wv();_.S30(K,H);H=K.nextSibling;break;case "DIV":(K=H.lastChild)&&H.nextSibling&&_.rv(_.wv(),K);H.previousSibling&&(H.previousSibling.nodeType===1||H.previousSibling.nodeType===3&&!H.previousSibling.textContent.endsWith("\n"))&&_.Ip(_.wv(),H);K&&K.nodeName==="BR"&&_.nA(K);K=H;H.hasChildNodes()?(H=H.firstChild,
_.EdN(K)):(H=H.nextSibling,_.nA(K));break;default:H=H.nextSibling}return JR5(d)},
setTextAreaValue:function(d){d||(d="");var H=this.getEditableFormattedString_();H.text="";this.getEditableTextArea_().innerText="";typeof d==="string"&&(d={runs:[{text:d}]});H.text=d},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Ry=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var d=this.getEditableTextArea_();d&&(_.FH(d,d.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Fm("HTML_DIR")==="rtl"){var d=this.getEditableTextArea_(),H=this.getTextAreaValue()!==""?"auto":"rtl";d.setAttribute("dir",H)}},
handleInputEvent_:function(){var d=null;if(this.isEmojiButtonDisplayed){var H=this.getInputRange_();H&&(d=this.emojiInput.retrieveTextBeforeRange(H))}this.insertText_(d,!0);this.updateCharCount_();d=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=d.scrollHeight>d.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var d=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:d})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount=this.getTextLength();this.aboveCharLimit_=!!this.charLimit&&this.charCount>this.charLimit},
onPaste_:function(d){this.isEmojiButtonDisplayed&&(d.preventDefault(),d.stopImmediatePropagation(),d=d.clipboardData.getData("text/plain"),this.insertText_(d,!1,!1),_.GT(this.hostElement,"input"))},
insertText_:function(d,H,K){H=H===void 0?!1:H;K=K===void 0?!0:K;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&d){var c=this.getInputRange_().cloneRange();this.emojiManager&&c&&(H&&this.emojiInput.offsetStartOfRangeBy(c,d.length),this.insertTextWithEmojis_(c,d,K),u4G(this.getEditableTextArea_().lastChild)||(c=this.getInputRange_().cloneRange()),c&&(this.emojiInput.updateSuggestions(c,d),this.updateSuggestionOffset_(c)))}},
getSimpleString:_.jG,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(d){return d?"focused":"not-focused"},
computePlaceholderText_:function(d){return this.getSimpleString(d)},
computeEditableText_:function(d){return this.getSimpleString(d)},
onPrefilledContentDismissed_:function(d){d.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(d,H){d?this.fire("yt-autonav-pause-focus"):H!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(d){var H=this.getEditableTextArea_();[].concat(_.ru(d.dataTransfer.items)).forEach(function(K){K.kind==="string"&&K.type.match("^text/plain")&&K.getAsString(function(c){H.appendChild(document.createTextNode(c))})});
d.preventDefault()},
preventDefault_:function(d){d.preventDefault()},
onSuggestionInsert_:function(d){this.insertTextWithEmojis_(d.detail.range,d.detail.text)},
onEmojiSuggestionClick_:function(d){this.emojiInput.insertSuggestion(d.detail)},
updateSuggestionOffset_:function(d){if(this.emojiInput&&_.Gn(this.emojiInput).querySelector("#dropdown")){var H=this.getEditableTextArea_().getBoundingClientRect().bottom,K=d.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(H-K)+5;H=this.getEditableTextArea_().getBoundingClientRect().left;d=d.getBoundingClientRect().left-H;_.Gn(this.emojiInput).querySelector("#dropdown").style.marginLeft=d+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.T1("yt-post"));return this.localStorage}});var VF=function(){var d=_.B.apply(this,arguments)||this;d.currentCommentOptionIndex=0;d.isEmojiPickerDisplayed=!1;d.emojiManager=_.bq;d.isUgcEmpty=!1;d.userGeneratedCommentChangedHandler=function(){_.GT(d.hostElement,"ytd-pdg-user-generated-comment-changed");d.isEmojiYtdCommentInputEnabled&&(d.isUgcEmpty=!d.ytdCommentInputEl.getTextAreaValue())};
d.pasteHandler=function(H){H.preventDefault();H.stopImmediatePropagation();var K;if(H=(K=H.clipboardData)==null?void 0:K.getData("text/plain"))K=document.getSelection().getRangeAt(0),K.collapsed||K.deleteContents(),H=document.createTextNode(H),K.insertNode(H),K.selectNodeContents(H),K.collapse(!1),H=window.getSelection(),H.removeAllRanges(),H.addRange(K)};
d.onDocumentClick=function(H){if(d.isEmojiPickerDisplayed){var K,c,p;!(H.target instanceof Node)||(K=H.composedPath())!=null&&K.includes(d.editableTextEl)||(c=H.composedPath())!=null&&c.includes(d.emojiButtonEl)||(p=H.composedPath())!=null&&p.includes(d.emojiPickerEl)||(d.isEmojiPickerDisplayed=!1)}};
return d};
_.m(VF,_.B);_.G=VF.prototype;_.G.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.G.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.G.detached=function(){var d;(d=this.contentEl)==null||d.removeEventListener("input",this.userGeneratedCommentChangedHandler);var H;(H=this.contentEl)==null||H.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.G.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.G.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var d;this.contentEl.textContent=this.rendererBehavior.getSimpleString((d=this.data)==null?void 0:d.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.G.reloadEmojis=function(){this.emojiPickerEl&&_.M(this.emojiPicker,_.Zb7)&&this.emojiPickerEl.updateEmojiCategories()};
_.G.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.eO(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.G.handleBackgroundColorStyling=function(){var d;if((d=this.currentCommentOption)==null?0:d.commentBackgroundColorArgb){var H;_.eO(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Ob((H=this.currentCommentOption)==null?void 0:H.commentBackgroundColorArgb)})}else _.eO(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.G.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var d;(d=this.contentEl)==null||d.focus()}};
_.G.onEditButtonClick=function(d){var H=document.getSelection();H&&this.contentEl&&(d.stopPropagation(),d.preventDefault(),H.selectAllChildren(this.contentEl),H.collapseToEnd())};
_.G.onContentDrop=function(d){var H=this;if(d.dataTransfer){d=_.q(d.dataTransfer.items);for(var K=d.next();!K.done;K=d.next())K=K.value,K.kind==="string"&&K.type.match("^text/plain")&&K.getAsString(function(c){var p;(p=H.contentEl)==null||p.appendChild(document.createTextNode(c))})}};
_.G.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.G.getUserGeneratedCommentText=function(){var d,H=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(d=this.contentEl)==null?void 0:d.textContent;return H?H.trim():""};
_.G.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.G.onEmojiSelect=function(d){this.ytdCommentInputEl.onEmojiSelect(d)};
_.H3.Object.defineProperties(VF.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.commentDialog)}},
title:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.title)}},
channelName:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.authorText)}},
shouldShowPaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.currentCommentOption)==null||!d.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var d;if(_.M((d=this.currentCommentOption)==null?void 0:d.chipRenderer,_.K_d)){var H;return _.M((H=this.currentCommentOption)==null?void 0:H.chipRenderer,_.K_d)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var d,H;return((d=this.data)==null?0:d.commentOptionRenderers)?_.M((H=this.data)==null?void 0:H.commentOptionRenderers[this.superThanksSelectedTierEntity.index],MPU):void 0}var K,c;return((K=this.data)==null?0:K.commentOptionRenderers)?_.M((c=this.data)==null?void 0:c.commentOptionRenderers[this.currentCommentOptionIndex],MPU):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var d;return this.rendererBehavior.getSimpleString((d=this.data)==null?void 0:d.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var d;return this.rendererBehavior.getSimpleString((d=this.data)==null?void 0:d.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var d,H;return(H=_.M((d=this.data)==null?void 0:d.commentDialog,_.ISd))==null?void 0:H.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var d,H;return(H=_.M((d=this.data)==null?void 0:d.commentDialog,_.ISd))==null?void 0:H.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var d,H;return(H=_.M((d=this.data)==null?void 0:d.commentDialog,_.ISd))==null?void 0:H.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var d,H,K=(H=_.M((d=this.data)==null?void 0:d.commentDialog,_.ISd))==null?void 0:H.emojiPicker;if(!_.M(K,_.Zb7)||!_.M(K,_.Zb7).categories)return!1;d=function(g){return g.emojiPickerCategoryRenderer?g.emojiPickerCategoryRenderer.emojiIds&&g.emojiPickerCategoryRenderer.emojiIds.length>0:g.emojiPickerUpsellCategoryRenderer?g.emojiPickerUpsellCategoryRenderer.emojis&&g.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var c,p;return((c=_.M(K,_.Zb7))==null?0:(p=c.categories)==null?0:p.find(d))?!0:!1}}});
VF.prototype.onEmojiSelect=VF.prototype.onEmojiSelect;VF.prototype.dataChanged=VF.prototype.dataChanged;VF.prototype.currentCommentOptionChanged=VF.prototype.currentCommentOptionChanged;_.t([_.u(_.to),_.O("design:type",Object)],VF.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],VF.prototype,"rendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],VF.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.VP("#content-dom-if"),_.O("design:type",_.JB)],VF.prototype,"contentDomIfEl",void 0);_.t([_.VP("#content-no-emojis"),_.O("design:type",HTMLElement)],VF.prototype,"contentEl",void 0);_.t([_.VP("#container"),_.O("design:type",HTMLElement)],VF.prototype,"containerEl",void 0);_.t([_.VP("#comment-chip-container"),_.O("design:type",HTMLElement)],VF.prototype,"paidCommentChipContainerEl",void 0);_.t([_.VP("#text-input"),_.O("design:type",HTMLElement)],VF.prototype,"editableTextEl",void 0);
_.t([_.VP("#emoji-button"),_.O("design:type",HTMLElement)],VF.prototype,"emojiButtonEl",void 0);_.t([_.VP("#emoji-picker > yt-emoji-picker-renderer"),_.O("design:type",Object)],VF.prototype,"emojiPickerEl",void 0);_.t([_.VP("#text-input > ytd-comment-input"),_.O("design:type",Object)],VF.prototype,"ytdCommentInputEl",void 0);_.t([_.r(),_.O("design:type",Object)],VF.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],VF.prototype,"currentCommentOptionIndex",void 0);
_.t([_.r({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:QFU}),_.O("design:type",Object)],VF.prototype,"superThanksSelectedTierEntity",void 0);_.t([_.r(),_.O("design:type",Object)],VF.prototype,"isEmojiPickerDisplayed",void 0);_.t([_.r(),_.O("design:type",Object)],VF.prototype,"emojiManager",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],VF.prototype,"isUgcEmpty",void 0);
_.t([_.CK("currentCommentOption"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],VF.prototype,"currentCommentOptionChanged",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],VF.prototype,"dataChanged",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],VF.prototype,"isEmojiYtdCommentInputEnabled",null);
_.t([_.I("data.title"),_.O("design:type",Object),_.O("design:paramtypes",[])],VF.prototype,"title",null);_.t([_.I("data.authorText"),_.O("design:type",Object),_.O("design:paramtypes",[])],VF.prototype,"channelName",null);_.t([_.I("data.commentOptionRenderers","currentCommentOption"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],VF.prototype,"shouldShowPaidCommentChipRenderer",null);
_.t([_.I("data.commentOptionRenderers","currentCommentOption"),_.O("design:type",Object),_.O("design:paramtypes",[])],VF.prototype,"paidCommentChipRenderer",null);_.t([_.I("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],VF.prototype,"currentCommentOption",null);
_.t([_.I("data.defaultCommentText","superThanksSelectedTierEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],VF.prototype,"commentText",null);_.t([_.I("data.placeholderText"),_.O("design:type",Object),_.O("design:paramtypes",[])],VF.prototype,"placeholderText",null);_.t([_.I("data.commentDialog.commentDialogRenderer.editableText"),_.O("design:type",Object),_.O("design:paramtypes",[])],VF.prototype,"editableText",null);
_.t([_.I("data.commentDialog.commentDialogRenderer.emojiButton"),_.O("design:type",Object),_.O("design:paramtypes",[])],VF.prototype,"emojiButton",null);_.t([_.I("data.commentDialog.commentDialogRenderer.emojiPicker"),_.O("design:type",Object),_.O("design:paramtypes",[])],VF.prototype,"emojiPicker",null);
_.t([_.I("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],VF.prototype,"isEmojiButtonDisplayed",null);_.t([_.nK("yt-emoji-select"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],VF.prototype,"onEmojiSelect",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],VF);
_.T(VF,"ytd-pdg-comment-preview-renderer",function(){if(R8Z!==void 0)return R8Z;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-click="onContainerClick" class="style-scope ytd-pdg-comment-preview-renderer">\n  <div id="comment-container" class="style-scope ytd-pdg-comment-preview-renderer">\n    <div id="title-background" class="style-scope ytd-pdg-comment-preview-renderer">\n      <h2 id="comment-title" class="style-scope ytd-pdg-comment-preview-renderer">[[title]]</h2>\n    </div>\n    <div id="comment" class="style-scope ytd-pdg-comment-preview-renderer">\n      <yt-img-shadow id="author-thumbnail" fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-pdg-comment-preview-renderer">\n      </yt-img-shadow>\n      <div id="text" class="style-scope ytd-pdg-comment-preview-renderer">\n        <div id="header" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="channel-name" dir="auto" class="style-scope ytd-pdg-comment-preview-renderer">[[channelName]]</span>\n        </div>\n        <template id="content-dom-if" is="dom-if" if="[[!isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="comment-chip-container" class="style-scope ytd-pdg-comment-preview-renderer">\n            <template is="dom-if" if="[[shouldShowPaidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              <yt-pdg-comment-chip-renderer id="paid-comment-chip-renderer" data="[[paidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              </yt-pdg-comment-chip-renderer>\n            </template>\n          </span>\n          <span id="content-no-emojis" on-drop="onContentDrop" contenteditable="true" placeholder$="[[placeholderText]]" class="style-scope ytd-pdg-comment-preview-renderer">[[commentText]]</span>\n        </template>\n        <template is="dom-if" if="[[isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <div id="content-emojis" class="style-scope ytd-pdg-comment-preview-renderer">\n            <div id="text-input" class="style-scope ytd-pdg-comment-preview-renderer">\n              <ytd-comment-input comment-chip="[[paidCommentChipRenderer]]" editable-text="[[editableText]]" hide-underline="" is-emoji-button-displayed="[[isEmojiButtonDisplayed]]" is-emoji-picker-displayed="[[isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-comment-input>\n            </div>\n          </div>\n        </template>\n      </div>\n      <div id="emoji-input" class="style-scope ytd-pdg-comment-preview-renderer">\n        <template is="dom-if" if="[[isEmojiButtonDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n          <ytd-button-renderer id="emoji-button" data="[[emojiButton.buttonRenderer]]" on-click="onEmojiButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n        </template>\n      </div>\n    </div>\n  </div>\n  <ytd-button-renderer data="[[data.editButton.buttonRenderer]]" hidden$="[[!data.editButton.buttonRenderer]]" on-click="onEditButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n</div>\n<div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n  <span id="emoji-picker" class="style-scope ytd-pdg-comment-preview-renderer">\n  </span>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return R8Z=d},{mode:2});var Ux1;var UC=function(){var d=_.B.apply(this,arguments)||this;d.selected=!1;return d};
_.m(UC,_.B);_.G=UC.prototype;_.G.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.G.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.G.dataChanged=function(){this.data&&(_.o1(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.eO(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Ob(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Ob(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.G.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.G.onClick=function(){this.logClick()};
_.G.onKeyboardSelect=function(){_.GT(this.hostElement,"tap");this.onClick()};
_.G.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
UC.prototype.onClick=UC.prototype.onClick;UC.prototype.selectedChanged=UC.prototype.selectedChanged;UC.prototype.dataChanged=UC.prototype.dataChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],UC.prototype,"componentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.hQ),_.O("design:type",Object)],UC.prototype,"ironA11yKeysBehavior",void 0);
_.t([_.u(_.Nr),_.O("design:type",Object)],UC.prototype,"ironSelectableBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],UC.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],UC.prototype,"shownThumbnail",void 0);_.t([_.r(),_.O("design:type",Object)],UC.prototype,"basePriceText",void 0);_.t([_.r(),_.O("design:type",Object)],UC.prototype,"purchaseCommand",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],UC.prototype,"selected",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],UC.prototype,"dataChanged",null);_.t([_.CK("selected"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],UC.prototype,"selectedChanged",null);_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],UC.prototype,"onClick",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],UC);
_.T(UC,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(Ux1!==void 0)return Ux1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-super-vod-selectable-item-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="price" class="style-scope ytd-pdg-super-vod-selectable-item-button-renderer">[[getSimpleString(data.basePriceText)]]</span>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Ux1=d},{mode:1});var hK=function(){var d=_.B.apply(this,arguments)||this;d.selectedItemIndex=0;d.buyButtonDisabled=!1;return d};
_.m(hK,_.B);_.G=hK.prototype;
_.G.configureRendererStamper=function(){return{"data.commentPreview":{id:"comment-preview",mapping:{pdgCommentPreviewRenderer:{component:"ytd-pdg-comment-preview-renderer",properties:{currentCommentOptionIndex:"[[selectedItemIndex]]"}}}},"data.selectableItemButtons":{id:"selectable-items",mapping:{buttonRenderer:{component:"ytd-button-renderer"},superVodSelectableItemButtonRenderer:{component:"ytd-pdg-super-vod-selectable-item-button-renderer"}}},"data.colorSlider":{id:"slider",mapping:{pdgColorSliderRenderer:{component:"ytd-pdg-color-slider-renderer",
properties:{immediateValue:"[[selectedItemIndex]]"}}}}}};
_.G.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var d;var H=(d=_.M(this.data.colorSlider,Lu5))==null?void 0:d.notches[this.selectedItemIndex].purchaseCommand}else{var K;H=(K=_.M(this.data.selectableItemButtons[this.selectedItemIndex],wCZ))==null?void 0:K.purchaseCommand}if(H){d=_.M(H,_.ZdA);d.productData||(d.productData={});var c;d.productData={pdgData:{commentMessageText:(c=this.commentPreviewRenderer)==null?void 0:c.getUserGeneratedCommentText()}};
_.GT(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(H)}}};
_.G.dataChanged=function(){if(this.data){_.bq.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.RpS(_.bq,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.bq.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var d;this.buyButtonDisabled=!((d=_.M(this.data.commentPreview,mZG))==null||!d.placeholderText);this.updatePriceSelectorStatus();var H;if((H=this.data)==null?0:H.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;d=[];this.data.preloadImages&&(d=this.data.preloadImages);
d=d.map(function(K){return _.Gv(K.thumbnails,1920)});
d=_.q(d);for(H=d.next();!H.done;H=d.next())(H=H.value)&&_.YFl(H).thenCatch(function(){_.Jf(Error("pl"))})}};
_.G.superThanksSelectedTierEntityChanged=function(){var d;(this==null?void 0:(d=this.superThanksSelectedTierEntity)==null?void 0:d.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.G.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.G.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Gn(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Gn(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Gn(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Gn(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.G.closeBuyFlow=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.G.onUserGeneratedContentChanged=function(){var d;this.buyButtonDisabled=!((d=this.commentPreviewRenderer)==null?0:d.getUserGeneratedCommentText())};
_.G.updateSelectedItemIndexFromBinding=function(d){this.selectedItemIndex=d.detail.value};
_.H3.Object.defineProperties(hK.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var d;return!((d=this.data)==null||!d.disclaimerText)}}});
hK.prototype.onUserGeneratedContentChanged=hK.prototype.onUserGeneratedContentChanged;hK.prototype.closeBuyFlow=hK.prototype.closeBuyFlow;hK.prototype.selectedItemIndexChanged=hK.prototype.selectedItemIndexChanged;hK.prototype.superThanksSelectedTierEntityChanged=hK.prototype.superThanksSelectedTierEntityChanged;hK.prototype.dataChanged=hK.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],hK.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],hK.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],hK.prototype,"selectedItemIndex",void 0);_.t([_.r(),_.O("design:type",Boolean)],hK.prototype,"isColorSlider",void 0);
_.t([_.r(),_.O("design:type",Object)],hK.prototype,"buyButtonDisabled",void 0);_.t([_.r({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:QFU}),_.O("design:type",Object)],hK.prototype,"superThanksSelectedTierEntity",void 0);_.t([_.VP("ytd-pdg-comment-preview-renderer"),_.O("design:type",Object)],hK.prototype,"commentPreviewRenderer",void 0);_.t([_.u(_.to),_.O("design:type",Object)],hK.prototype,"ytdReduxBehavior",void 0);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hK.prototype,"dataChanged",null);_.t([_.CK("superThanksSelectedTierEntity"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hK.prototype,"superThanksSelectedTierEntityChanged",null);_.t([_.CK("selectedItemIndex"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hK.prototype,"selectedItemIndexChanged",null);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hK.prototype,"closeBuyFlow",null);_.t([_.nK("ytd-pdg-user-generated-comment-changed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hK.prototype,"onUserGeneratedContentChanged",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],hK.prototype,"isDisclaimerTextShown",null);
_.t([_.Z({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],hK);
_.T(hK,"yt-super-vod-buy-flow-content-renderer",function(){if(ngO!==void 0)return ngO;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-super-vod-buy-flow-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.description]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><div id="comment-preview" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><div id="slider" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><iron-selector id="selectable-items" role="radiogroup" selected="[[selectedItemIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedItemIndexFromBinding" class="style-scope yt-super-vod-buy-flow-content-renderer"></iron-selector><div id="footer" class="style-scope yt-super-vod-buy-flow-content-renderer"><div id="cancel-button" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><yt-formatted-string id="disclaimer-text" hidden="[[!isDisclaimerTextShown]]" text="[[data.disclaimerText]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><ytd-button-renderer id="buy-button" data="[[data.buyButton.buttonRenderer]]" disabled="[[buyButtonDisabled]]" on-click="onBuyButtonClick" class="style-scope yt-super-vod-buy-flow-content-renderer"></ytd-button-renderer></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return ngO=d},{mode:1});var h8j;var LL=function(){var d=_.B.apply(this,arguments)||this;d.lottieAnimationRef={};return d};
_.m(LL,_.B);_.G=LL.prototype;_.G.created=function(){_.QX.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.xf(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.G.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.GT(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.G.detached=function(){this.autoCloseJobId&&_.Xp.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.xf(this,this.onPopupIronOverlayOpened))};
_.G.dataChanged=function(){var d=this;this.data&&this.data.autoCloseDelay&&(_.oF(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.lV(_.Xp,function(){d.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.eO(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.G.onDOMLoadedLottie=function(){var d=this,H,K,c=Number((H=this.data)==null?void 0:(K=H.autoCloseDelay)==null?void 0:K.seconds)||0;this.fadeOutJobId=_.lV(_.Xp,function(){d.lottiePlayerEl.classList.add("fadeout")},(c-.25)*1E3);
this.autoCloseJobId=_.lV(_.Xp,function(){d.closePopup()},c*1E3)};
_.G.openPopup=function(){this.ironOverlayBehavior.open()};
_.G.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.oF(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.l5(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.Kj().resolve(_.cb).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.Xp.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.Xp.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.G.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var d,H;(d=this.lottieAnimationRef)==null||(H=d.lottieEl)==null||H.destroy();d=this.data.lottie;var K,c;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:d.url+"_"+Math.random(),path:d.url,autoplay:!0,loop:(c=(K=d.settings)==null?void 0:K.loop)!=null?c:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.H3.Object.defineProperties(LL.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var d,H;return!!((d=this.data)==null?0:(H=d.lottie)==null?0:H.url)}}});
LL.prototype.maybeInitializeLottie=LL.prototype.maybeInitializeLottie;LL.prototype.dataChanged=LL.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],LL.prototype,"rendererBehavior",void 0);_.t([_.u(_.Eh),_.O("design:type",Object)],LL.prototype,"ironOverlayBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],LL.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],LL.prototype,"lottiePlayerProps",void 0);
_.t([_.r(),_.O("design:type",Object)],LL.prototype,"lottieAnimationRef",void 0);_.t([_.VP("ytd-lottie-player"),_.O("design:type",HTMLElement)],LL.prototype,"lottiePlayerEl",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],LL.prototype,"dataChanged",null);_.t([_.I("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],LL.prototype,"hasLottieAnimation",null);
_.t([_.CK("data.lottie.url"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],LL.prototype,"maybeInitializeLottie",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],LL);
_.T(LL,"ytd-desktop-image-overlay-renderer",function(){if(h8j!==void 0)return h8j;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return h8j=d},{mode:1});var LPv;var M4=function(){return _.B.apply(this,arguments)||this};
_.m(M4,_.B);_.G=M4.prototype;_.G.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{pdgBuyFlowHeaderRenderer:{component:"yt-pdg-buy-flow-header-renderer"}}},"data.content":{id:"content",mapping:{superVodBuyFlowContentRenderer:{component:"yt-super-vod-buy-flow-content-renderer"}}}}};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("tabIndex")||this.hostElement.setAttribute("tabIndex","0");this.hostElement.addEventListener("yt-popup-closed",_.xf(this,this.closePopup))};
_.G.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.xf(this,this.closePopup))};
_.G.dataChanged=function(){_.qo(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.M(this.data.header,hqO)&&(this.hasBackgroundBanner=!!_.M(this.data.header,hqO).backgroundBanner)};
_.G.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.xf(this,this.closePopup))};
_.G.closePopup=function(){this.data&&this.data.onCloseCommand&&_.aF(this.hostElement,[this.data.onCloseCommand])};
M4.prototype.handleBuyflowSelectionSubmitted=M4.prototype.handleBuyflowSelectionSubmitted;M4.prototype.dataChanged=M4.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],M4.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],M4.prototype,"data",void 0);
_.t([_.r({value:!0,reflectToAttribute:!0}),_.O("design:type",Boolean)],M4.prototype,"hasBackgroundBanner",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],M4.prototype,"dataChanged",null);_.t([_.nK("yt-pdg-buy-flow-selection-submitted"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],M4.prototype,"handleBuyflowSelectionSubmitted",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],M4);
_.T(M4,"ytd-pdg-buy-flow-renderer",function(){if(LPv!==void 0)return LPv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-buy-flow-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-pdg-buy-flow-renderer"></div>\n<div id="content" class="style-scope ytd-pdg-buy-flow-renderer"></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return LPv=d},{mode:1});var M4b;var my=function(){var d=_.B.apply(this,arguments)||this;d.isOpen=!1;d.isPlaylistCreated=!1;return d};
_.m(my,_.B);_.G=my.prototype;_.G.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.G.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.GT(this.hostElement,"yt-refit")};
_.G.onCreateTap=function(){var d=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.aF(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(H,K){if(!_.h("killswitch_ep_in_create_playlist_response")&&(K==null?0:K.actions))for(H=_.q(K.actions),K=H.next();!K.done;K=H.next())K=K.value,_.M(K,_.r5)&&d.ytComponentBehavior.resolveCommand(K)}}]),this.isPlaylistCreated=!0)};
_.G.onKeydown=function(d){if(d.keyCode===13)this.onCreateTap()};
_.G.onServiceRequestCompleted=function(d){d.stopPropagation();_.oF(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.G.computePrivacyBadge=function(d){return d?[{metadataBadgeRenderer:d}]:[]};
my.prototype.onServiceRequestCompleted=my.prototype.onServiceRequestCompleted;my.prototype.onKeydown=my.prototype.onKeydown;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],my.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],my.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],my.prototype,"isOpen",void 0);
_.t([_.r(),_.O("design:type",Object)],my.prototype,"isPlaylistCreated",void 0);_.t([_.r({value:{REQUIRED_LABEL:_.Vz("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Vz("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.O("design:type",Object)],my.prototype,"addToStrings",void 0);_.t([_.r({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.O("design:type",Array)],my.prototype,"privacyBadge",void 0);
_.t([_.VP("#privacy-input"),_.O("design:type",Object)],my.prototype,"privacyInput",void 0);_.t([_.VP("#name-input"),_.O("design:type",Object)],my.prototype,"nameInput",void 0);_.t([_.nK("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[KeyboardEvent]),_.O("design:returntype")],my.prototype,"onKeydown",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],my.prototype,"onServiceRequestCompleted",null);
_.t([_.Z({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],my);
_.T(my,"ytd-add-to-playlist-create-renderer",function(){if(M4b!==void 0)return M4b;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-create-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-compact-link-renderer data="[[data.openCreateLink.compactLinkRenderer]]" hidden="[[isOpen]]" on-tap="onOpenTap" class="style-scope ytd-add-to-playlist-create-renderer">\n</ytd-compact-link-renderer>\n<div id="create-playlist-form" hidden="[[!isOpen]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  <yt-text-input-form-field-renderer id="name-input" data="[[data.nameInput.textInputFormFieldRenderer]]" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </yt-text-input-form-field-renderer>\n  <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!data.privacyInput.metadataBadgeRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-dropdown-renderer id="privacy-input" data="[[data.privacyInput.dropdownRenderer]]" hidden="[[!data.privacyInput.dropdownRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-button-renderer id="privacy-button" data="[[data.privacyInput.buttonRenderer]]" hidden="[[!data.privacyInput.buttonRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-button-renderer>\n  <div id="actions" class="style-scope ytd-add-to-playlist-create-renderer">\n    <ytd-button-renderer data="[[data.createAction.buttonRenderer]]" on-tap="onCreateTap" class="style-scope ytd-add-to-playlist-create-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return M4b=d},{mode:1});var mx1;var wOv;var wm=function(){var d=_.B.apply(this,arguments)||this;d.transferState="TRANSFER_STATE_UNKNOWN";return d};
_.m(wm,_.B);wm.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
wm.prototype.onCheckboxChange=function(d){var H=this;this.data&&_.yP(this,"yt-playlist-checkbox-changed",function(){var K=_.v5(d).checked?H.data.addToPlaylistServiceEndpoint:H.data.removeFromPlaylistServiceEndpoint;K&&_.Kj().resolve(_.cb).resolveCommand(K,{form:{element:H.hostElement}});_.h("dl_playlist_killswitch")||H.transferState!=="TRANSFER_STATE_UNKNOWN"&&H.transferState!=="TRANSFER_STATE_FAILED"&&H.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:H.data.playlistId,action:"ACTION_SYNC"}})},
100)};
wm.prototype.computeIconType=function(d){return d?"yt-icons:"+d.toLowerCase():null};
wm.prototype.dataChanged=wm.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],wm.prototype,"data",void 0);_.t([_.u(_.to),_.O("design:type",Object)],wm.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],wm.prototype,"ytComponentBehavior",void 0);_.t([_.VP("#checkbox"),_.O("design:type",HTMLInputElement)],wm.prototype,"checkbox",void 0);
_.t([_.r({selector:_.tF,selectorArgs:["data.playlistId"]}),_.O("design:type",String)],wm.prototype,"transferState",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],wm.prototype,"dataChanged",null);_.t([_.Z({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],wm);
_.T(wm,"ytd-playlist-add-to-option-renderer",function(){if(wOv!==void 0)return wOv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-add-to-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[checked_]]" on-change="onCheckboxChange" class="style-scope ytd-playlist-add-to-option-renderer">\n  <div id="checkbox-container" class="style-scope ytd-playlist-add-to-option-renderer">\n    <div id="checkbox-label" class="style-scope ytd-playlist-add-to-option-renderer">\n      <yt-formatted-string id="label" class="checkbox-height style-scope ytd-playlist-add-to-option-renderer" ellipsis-truncate="" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string id="byline" ellipsis-truncate="" link-inherit-color="" text="[[data.shortBylineText]]" class="style-scope ytd-playlist-add-to-option-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon icon="[[computeIconType(data.privacyIcon.iconType)]]" size="18" class="style-scope ytd-playlist-add-to-option-renderer"></yt-icon>\n  </div>\n</tp-yt-paper-checkbox>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return wOv=d},{mode:1});var P0t=_.H1(function(d){var H=d.data;return _.x("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.x("div",null,_.x(_.j$,{text:function(){return H().title}})),_.x(_.n,{cond:function(){return H().subtitle},
then:function(K){return _.x("div",{class:"ytd-menu-title-renderer__subtitle"},_.x(_.j$,{text:K}))}}))},"ch");
P0t.idomCompat=!0;_.iV(P0t,"ytd-menu-title-renderer",{props:{data:_.dl}});var PY=function(){var d=_.B.apply(this,arguments)||this;d.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Vz("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};d.closeButtonAriaLabel=_.Vz("SBOX_INAPPROPRIATE_CANCEL");d.dialog=_.h("desktop_add_to_playlist_renderer_dialog_popup");return d};
_.m(PY,_.B);_.G=PY.prototype;_.G.configureRendererStamper=function(){return{"data.playlists":{id:"playlists",mapping:{playlistAddToOptionRenderer:"ytd-playlist-add-to-option-renderer"}},"data.actions":{id:"actions",mapping:{addToPlaylistCreateRenderer:"ytd-add-to-playlist-create-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.G.onPopupOpened=function(){_.qr(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.G.onPopupClosed=function(){_.qr(this.playlists,"scrollable",!1)};
_.G.computeAriaLabel=function(){var d;if(this==null?0:(d=this.data)==null?0:d.actions){d=_.q(this.data.actions);for(var H=d.next();!H.done;H=d.next())if(H=H.value,H.menuTitleRenderer)return _.jG(H.menuTitleRenderer.title)}};
_.G.onTapClose=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.H3.Object.defineProperties(PY.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var d;if(this==null?0:(d=this.data)==null?0:d.actions){d=_.q(this.data.actions);for(var H=d.next();!H.done;H=d.next())if(H=H.value,H.menuTitleRenderer)return H.menuTitleRenderer}return!1}}});
PY.prototype.onPopupClosed=PY.prototype.onPopupClosed;PY.prototype.onPopupOpened=PY.prototype.onPopupOpened;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],PY.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],PY.prototype,"ytRendererStamperBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],PY.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],PY.prototype,"addToStrings",void 0);_.t([_.r({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.O("design:type",String)],PY.prototype,"ariaLabel",void 0);_.t([_.r(),_.O("design:type",String)],PY.prototype,"closeButtonAriaLabel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],PY.prototype,"dialog",void 0);
_.t([_.VP("#playlists"),_.O("design:type",HTMLElement)],PY.prototype,"playlists",void 0);_.t([_.VP("ytd-add-to-playlist-create-renderer"),_.O("design:type",Object)],PY.prototype,"createRenderer",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],PY.prototype,"menuTitleRenderer",null);_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PY.prototype,"onPopupOpened",null);
_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],PY.prototype,"onPopupClosed",null);_.t([_.Z({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],PY);
_.T(PY,"ytd-add-to-playlist-renderer",function(){if(mx1!==void 0)return mx1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-add-to-playlist-renderer">\n  <template is="dom-if" if="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer">\n    <ytd-menu-title-renderer data="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer"></ytd-menu-title-renderer>\n  </template>\n  <div hidden="[[menuTitleRenderer]]" id="title" class="style-scope ytd-add-to-playlist-renderer">\n    [[addToStrings.ADD_TO_DROPDOWN_LABEL]]\n  </div>\n  <yt-icon-button id="close-button" hidden="[[!dialog]]" label="[[closeButtonAriaLabel]]" on-tap="onTapClose" class="style-scope ytd-add-to-playlist-renderer">\n    <yt-icon icon="close" class="style-scope ytd-add-to-playlist-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="playlists" class="style-scope ytd-add-to-playlist-renderer"></div>\n<div id="actions" class="style-scope ytd-add-to-playlist-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return mx1=d},{mode:1});var ulZ;var uQ=function(){var d=_.B.apply(this,arguments)||this;d.isPlaylistEditComplete=!1;d.isCollabEngagementDisabled=!1;d.closeButtonAriaLabel=_.Vz("SBOX_INAPPROPRIATE_CANCEL");d.saveButton={title:_.Vz("SAVE_PLAYLIST",void 0,"Save"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};d.onValueChanged=function(){d.updateSaveButtonState();d.computeCollabEngagementDisabled()};
return d};
_.m(uQ,_.B);_.G=uQ.prototype;_.G.attached=function(){this.JSC$20421_scroller&&(this.JSC$20421_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20421_scroller.attached&&typeof this.JSC$20421_scroller.attached==="function"&&this.JSC$20421_scroller.attached())};
_.G.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.G.onPopupClosed=function(){this.reset()};
_.G.close=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.G.onClickSave=function(){var d=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var H=[];this.nameInput.value!==null&&H.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&H.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var K=Number(this.privacyInput.value);isNaN(K)||H.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:K})}this.votingInput.value!==null&&(K=this.votingInput.value)&&H.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:K});if(H.length>0){var c;_.M((c=this.data)==null?void 0:c.updateSettingsEndpoint,_.sV).actions=H;var p;if((p=this.data)==null?0:p.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){d.close()}}}),this.isPlaylistEditComplete=!0}}};
_.G.computePrivacyBadge=function(d){return d?[{metadataBadgeRenderer:d}]:[]};
_.G.computeEditorData=function(d){var H,K;return d==null?void 0:(H=d.sections)==null?void 0:(K=H[0])==null?void 0:K.playlistSettingsEditorCasualSectionRenderer};
_.G.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.G.configureRendererStamper=function(){return{"editorData.thumbnail":{id:"thumbnail",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",params:{width:9999}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",params:{size:312}}}}}};
_.G.computeAriaLabel=function(){var d,H,K,c=(d=this.data)==null?void 0:(H=d.sections)==null?void 0:(K=H[0])==null?void 0:K.playlistSettingsEditorCasualSectionRenderer;return _.jG(c==null?void 0:c.title)};
_.G.updateSaveButtonState=function(){this.isFormChanged()&&this.isFormValid()?this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"})):this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_DISABLED"}))};
_.G.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.G.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.G.isNameChanged=function(){var d,H,K;return(((d=this.editorData)==null?void 0:(H=d.name)==null?void 0:(K=H.textInputFormFieldRenderer)==null?void 0:K.value)||"")!==(this.nameInput.value||"")};
_.G.isDescriptionChanged=function(){var d,H,K;return(((d=this.editorData)==null?void 0:(H=d.description)==null?void 0:(K=H.textInputFormFieldRenderer)==null?void 0:K.value)||"")!==(this.descriptionInput.value||"")};
_.G.isPrivacyChanged=function(){var d,H,K,c,p,g,a,e;return((a=(d=this.editorData)==null?void 0:(H=d.privacy)==null?void 0:(K=H.dropdownFormFieldRenderer)==null?void 0:(c=K.dropdown)==null?void 0:(p=c.dropdownRenderer)==null?void 0:(g=p.entries)==null?void 0:g.find(function(k){var C;return k==null?void 0:(C=k.privacyDropdownItemRenderer)==null?void 0:C.isSelected}))==null?void 0:(e=a.privacyDropdownItemRenderer)==null?void 0:e.int32Value)!==this.privacyInput.value};
_.G.isVotingChanged=function(){var d,H,K,c,p,g,a,e;return((a=(d=this.editorData)==null?void 0:(H=d.voting)==null?void 0:(K=H.dropdownFormFieldRenderer)==null?void 0:(c=K.dropdown)==null?void 0:(p=c.dropdownRenderer)==null?void 0:(g=p.entries)==null?void 0:g.find(function(k){var C;return k==null?void 0:(C=k.privacyDropdownItemRenderer)==null?void 0:C.isSelected}))==null?void 0:(e=a.privacyDropdownItemRenderer)==null?void 0:e.int32Value)!==this.votingInput.value};
uQ.prototype.onPopupClosed=uQ.prototype.onPopupClosed;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],uQ.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],uQ.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],uQ.prototype,"ytRendererStamperBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],uQ.prototype,"data",void 0);_.t([_.r({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.O("design:type",Array)],uQ.prototype,"privacyBadge",void 0);_.t([_.r({computed:"computeEditorData(data)"}),_.O("design:type",Object)],uQ.prototype,"editorData",void 0);_.t([_.r(),_.O("design:type",Object)],uQ.prototype,"isPlaylistEditComplete",void 0);_.t([_.r(),_.O("design:type",Object)],uQ.prototype,"isCollabEngagementDisabled",void 0);
_.t([_.r({value:{REQUIRED_LABEL:_.Vz("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Vz("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.O("design:type",Object)],uQ.prototype,"addToStrings",void 0);_.t([_.r({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.O("design:type",String)],uQ.prototype,"ariaLabel",void 0);_.t([_.r(),_.O("design:type",String)],uQ.prototype,"closeButtonAriaLabel",void 0);
_.t([_.r(),_.O("design:type",Object)],uQ.prototype,"saveButton",void 0);_.t([_.VP("#name-input"),_.O("design:type",Object)],uQ.prototype,"nameInput",void 0);_.t([_.VP("#description-input"),_.O("design:type",Object)],uQ.prototype,"descriptionInput",void 0);_.t([_.VP("#privacy-input"),_.O("design:type",Object)],uQ.prototype,"privacyInput",void 0);_.t([_.VP("#voting-input"),_.O("design:type",Object)],uQ.prototype,"votingInput",void 0);
_.t([_.VP("#scroller"),_.O("design:type",Object)],uQ.prototype,"JSC$20421_scroller",void 0);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uQ.prototype,"onPopupClosed",null);_.t([_.r(),_.O("design:type",Object)],uQ.prototype,"onValueChanged",void 0);_.t([_.Z({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],uQ);
_.T(uQ,"ytd-playlist-settings-editor-renderer",function(){if(ulZ===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);ulZ=d}d=ulZ;return d},{mode:1});var I_U;_.XX("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var Iy=function(){return _.B.apply(this,arguments)||this};
_.m(Iy,_.B);_.G=Iy.prototype;_.G.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-confirm":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",classListBinding:"[[buttonClass_]]",attributes:{"dialog-dismiss":!0}}}}}};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var d=this.get("data.nextButton.buttonRenderer.navigationEndpoint");d&&(this.nextNavigationEndpoint=d,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.G.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var d={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",d)}}};
_.G.onPopupOpened=function(d){d.detail!==this&&d.detail!==this.hostElement||!_.h("enable_premium_voluntary_pause")||_.oF(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.G.onNextButtonTap=function(){var d=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);d&&this.ytdOpenPopupBehavior.openPopup(d)};
_.G.updateSelectedResponseIndexFromBinding=function(d){this.selectedResponseIndex=d.detail.value};
Iy.prototype.onPopupOpened=Iy.prototype.onPopupOpened;Iy.prototype.onSelectedResponseIndexChange=Iy.prototype.onSelectedResponseIndexChange;Iy.prototype.dataChanged=Iy.prototype.dataChanged;_.t([_.u(_.Ke),_.O("design:type",Object)],Iy.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Iy.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Iy.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],Iy.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Number)],Iy.prototype,"selectedResponseIndex",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Iy.prototype,"dataChanged",null);_.t([_.CK("selectedResponseIndex"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Iy.prototype,"onSelectedResponseIndexChange",null);
_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],Iy.prototype,"onPopupOpened",null);_.t([_.Z({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],Iy);
_.T(Iy,"ytd-red-cancel-survey-renderer",function(){if(I_U!==void 0)return I_U;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-red-cancel-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-red-cancel-survey-renderer">\n  <div id="question" class="style-scope ytd-red-cancel-survey-renderer">[[getSimpleString(data.question)]]</div>\n  <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-red-cancel-survey-renderer">\n    <template is="dom-repeat" items="[[data.singleOptions.styles]]" class="style-scope ytd-red-cancel-survey-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-red-cancel-survey-renderer">\n        [[getSimpleString(item.radioButtonSurveyOptionRenderer.option)]]\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div class="buttons style-scope ytd-red-cancel-survey-renderer">\n  <div id="dismiss-button" class="style-scope ytd-red-cancel-survey-renderer"></div>\n  <div id="next-button" on-click="onNextButtonTap" class="style-scope ytd-red-cancel-survey-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return I_U=d},{mode:1});var r7O;var rm=function(){var d=_.B.apply(this,arguments)||this;d.closeButtonAriaLabel=_.Vz("SBOX_INAPPROPRIATE_CANCEL");return d};
_.m(rm,_.B);rm.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
rm.prototype.onClickClose=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],rm.prototype,"rendererStamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],rm.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],rm.prototype,"closeButtonAriaLabel",void 0);_.t([_.Z({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],rm);
_.T(rm,"ytd-search-filter-options-dialog-renderer",function(){if(r7O!==void 0)return r7O;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-options-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-search-filter-options-dialog-renderer">\n  <div id="title" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onClickClose" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-icon icon="close" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-search-filter-options-dialog-renderer"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return r7O=d},{mode:1});var WPZ;var ZM1=function(){return function(d){d=d.availabilityType;return d===void 0||d==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||d==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var WY=function(){var d=_.B.apply(this,arguments)||this;d.qualityOptions=[];d.upsellOptions=[];d.showUpsellSection=!1;d.darkerDarkTheme=_.h("web_darker_dark_theme");d.rememberSettingsChecked=!1;return d};
_.m(WY,_.B);_.G=WY.prototype;_.G.configureRendererStamper=function(){return{qualityOptions:{id:"quality-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}},upsellOptions:{id:"upsell-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.G.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.G.updateQualityOptions=function(){if(this.formats===void 0)_.oF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var d=[],H=[];this.showUpsellSection=!1;for(var K=_.q(this.formats),c=K.next();!c.done;c=K.next())(c=c.value)&&(c.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?H.push(c):d.push(c));d.length&&(this.qualityOptions=Flg(d));H.length&&(this.showUpsellSection=!0,this.upsellOptions=Flg(H))}};
_.G.updateRememberString=function(){if(this.downloadQualityPickerEntity)var d=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var H;d=(H=this.data)==null?void 0:H.premiumRememberSettingString}else{var K;d=(K=this.data)==null?void 0:K.rememberSettingString}d=d===void 0?_.Vz("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):d;this.rememberSettingsCheckboxRenderer={title:_.cW(d),disabled:!1}};
_.G.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.H3.Object.defineProperties(WY.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var d;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(d=this.data)==null?void 0:d.qualityFormats}}});
WY.prototype.updateRememberString=WY.prototype.updateRememberString;WY.prototype.updateQualityOptions=WY.prototype.updateQualityOptions;WY.prototype.dataChanged=WY.prototype.dataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],WY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],WY.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],WY.prototype,"data",void 0);
_.t([_.u(_.to),_.O("design:type",Object)],WY.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Boolean)],WY.prototype,"selectedUpsellQuality",void 0);_.t([_.r({computed:"computeIcon_(data.premiumIcon)",value:""}),_.O("design:type",String)],WY.prototype,"premiumIcon",void 0);_.t([_.r({selector:zQb,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.O("design:type",Object)],WY.prototype,"downloadQualityPickerEntity",void 0);
_.t([_.r(),_.O("design:type",Array)],WY.prototype,"qualityOptions",void 0);_.t([_.r(),_.O("design:type",Array)],WY.prototype,"upsellOptions",void 0);_.t([_.r(),_.O("design:type",Object)],WY.prototype,"showUpsellSection",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],WY.prototype,"darkerDarkTheme",void 0);_.t([_.r(),_.O("design:type",Object)],WY.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.t([_.VP("#remember-settings"),_.O("design:type",HTMLInputElement)],WY.prototype,"rememberSettingsCheckbox",void 0);_.t([_.r(),_.O("design:type",Object)],WY.prototype,"rememberSettingsChecked",void 0);_.t([_.r(),_.O("design:type",Function)],WY.prototype,"onRememberSettingsCheckedChanged",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WY.prototype,"dataChanged",null);
_.t([_.CK("downloadQualityPickerEntity"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WY.prototype,"updateQualityOptions",null);_.t([_.CK("selectedUpsellQuality"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WY.prototype,"updateRememberString",null);_.t([_.Z({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],WY);
_.T(WY,"ytd-download-quality-selector-content",function(){if(WPZ!==void 0)return WPZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="quality-options" class="style-scope ytd-download-quality-selector-content"></div>\n<div id="upsell-section" hidden="[[!showUpsellSection]]" class="style-scope ytd-download-quality-selector-content">\n    <yt-icon id="premium-icon" icon="[[premiumIcon]]" class="style-scope ytd-download-quality-selector-content"></yt-icon>\n    <yt-formatted-string id="premium-description" text="[[data.premiumDescription]]" class="style-scope ytd-download-quality-selector-content"></yt-formatted-string>\n    <div id="upsell-options" class="style-scope ytd-download-quality-selector-content"></div>\n</div>\n<ytd-settings-checkbox-renderer id="remember-settings" data="[[rememberSettingsCheckboxRenderer]]" on-click="rememberSettingsCheckedChanged" class="style-scope ytd-download-quality-selector-content">\n</ytd-settings-checkbox-renderer>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return WPZ=d},{mode:1});var Bot;var BY=function(){var d=_.B.apply(this,arguments)||this;d.selectedUpsellQuality=!1;d.qualityOptions=[];d.darkerDarkTheme=_.h("web_darker_dark_theme");d.useUpsellDismissAlternate=_.h("use_not_now_dl_upsell_dismiss_cta");d.shouldShowAlternateUpsellDimiss=!1;d.rememberSettings=!1;d.rememberSettingsChecked=!1;d.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};d.rememberSettingsCheckedChanged=function(H){d.rememberSettingsChecked=H};
return d};
_.m(BY,_.B);_.G=BY.prototype;
_.G.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.cW(_.Vz("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.cW(_.Vz("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.cW(_.Vz("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.cW(_.Vz("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.G.updateQualityOptions=function(){this.formats===void 0?_.oF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=Flg(this.formats)};
_.G.onQualityOptionsSelect=function(d){if(this.qualityOptions&&d){d!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var H=_.q(this.qualityOptions.entries()),K=H.next();!K.done;K=
H.next()){K=_.q(K.value);var c=K.next().value;K=K.next().value;var p=void 0,g=void 0;if(((p=K)==null?void 0:(g=p.settingsRadioOptionRenderer)==null?void 0:g.id)===d){this.selectedQualityIndex=c;d=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((d=this.formats[c])==null?void 0:d.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.G.onClickSubmit=function(){var d;if((d=this.downloadButtonRenderer)==null||!d.isDisabled){var H,K;d=(K=(H=this.data)==null?void 0:H.onSubmitEndpoint)!=null?K:{};var c,p;if(this.formats&&(((c=_.M(d,_.Cf))==null?0:c.videoId)||((p=_.M(d,_.VY))==null?0:p.playlistId))){var g,a,e,k,C,R;H={formatType:(k=(g=this.formats)==null?void 0:(a=g[(e=this.selectedQualityIndex)!=null?e:0])==null?void 0:a.format)!=null?k:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(C=this.getOfflineEndpoint(d))==null?void 0:(R=C.actionParams)==null?void 0:R.settingsAction)};this.getOfflineEndpoint(d).actionParams=H;this.ytComponentBehavior.resolveCommand(d)}_.oF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.G.onClickUpsell=function(){var d;if((d=this.upsellButtonRenderer)==null||!d.isDisabled){var H,K;d=(K=(H=this.data)==null?void 0:H.upsellEndpoint)!=null?K:{};this.ytComponentBehavior.resolveCommand(d);_.oF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);H="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var c,p,g,a;H=(a=(c=this.formats)==null?void 0:(p=c[(g=this.selectedQualityIndex)!=null?g:0])==null?void 0:p.format)!=null?a:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:H}})}};
_.G.onClickClose=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.G.getOfflineSettingsAction=function(d,H){return d?H===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":H:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.G.getOfflineEndpoint=function(d){return _.M(d,_.Cf)?_.M(d,_.Cf):_.M(d,_.VY)};
_.H3.Object.defineProperties(BY.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.cW(_.Vz("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var d;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(d=this.data)==null?void 0:d.qualityFormats}}});
BY.prototype.updateQualityOptions=BY.prototype.updateQualityOptions;BY.prototype.dataChanged=BY.prototype.dataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],BY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],BY.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],BY.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],BY.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],BY.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Number)],BY.prototype,"selectedQualityIndex",void 0);_.t([_.r(),_.O("design:type",Object)],BY.prototype,"selectedUpsellQuality",void 0);_.t([_.u(_.to),_.O("design:type",Object)],BY.prototype,"ytdReduxBehavior",void 0);
_.t([_.r({selector:zQb,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.O("design:type",Object)],BY.prototype,"downloadQualityPickerEntity",void 0);_.t([_.r(),_.O("design:type",Array)],BY.prototype,"qualityOptions",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],BY.prototype,"darkerDarkTheme",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],BY.prototype,"useUpsellDismissAlternate",void 0);
_.t([_.r(),_.O("design:type",Object)],BY.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.t([_.r(),_.O("design:type",Object)],BY.prototype,"downloadButtonRenderer",void 0);_.t([_.r(),_.O("design:type",Object)],BY.prototype,"upsellButtonRenderer",void 0);_.t([_.r(),_.O("design:type",Object)],BY.prototype,"cancelButtonRenderer",void 0);_.t([_.r(),_.O("design:type",Object)],BY.prototype,"upsellCancelButtonRenderer",void 0);_.t([_.r(),_.O("design:type",Object)],BY.prototype,"rememberSettings",void 0);
_.t([_.r(),_.O("design:type",Object)],BY.prototype,"rememberSettingsChecked",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],BY.prototype,"dataChanged",null);_.t([_.CK("downloadQualityPickerEntity"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],BY.prototype,"updateQualityOptions",null);_.t([_.Z({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],BY);
_.T(BY,"ytd-download-quality-selector-renderer",function(){if(Bot!==void 0)return Bot;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[titleText]]" class="style-scope ytd-download-quality-selector-renderer"></yt-formatted-string>\n<ytd-download-quality-selector-content data="[[data]]" remember-settings-checked="[[rememberSettingsChecked]]" selected-upsell-quality="[[selectedUpsellQuality]]" on-remember-settings-checked-changed="[[rememberSettingsCheckedChanged]]" class="style-scope ytd-download-quality-selector-renderer">\n</ytd-download-quality-selector-content>\n<div class="buttons style-scope ytd-download-quality-selector-renderer">\n  <yt-button-renderer id="cancel-button" data="[[cancelButtonRenderer]]" dialog-dismiss="" hidden="[[shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-cancel-button" data="[[upsellCancelButtonRenderer]]" dialog-dismiss="" hidden="[[!shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="download-button" data="[[downloadButtonRenderer]]" hidden="[[selectedUpsellQuality]]" on-click="onClickSubmit" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-button" data="[[upsellButtonRenderer]]" hidden="[[!selectedUpsellQuality]]" on-click="onClickUpsell" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return Bot=d},{mode:1});var z80;var zf=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");return d};
_.m(zf,_.B);zf.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zf.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],zf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],zf.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],zf.prototype,"darkerDarkTheme",void 0);_.t([_.r({computed:"computeIcon_(data.infoIcon)"}),_.O("design:type",Object)],zf.prototype,"infoIcon",void 0);
_.t([_.r({computed:"computeIcon_(data.warningIcon)"}),_.O("design:type",Object)],zf.prototype,"warningIcon",void 0);_.t([_.Z({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],zf);
_.T(zf,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(z80!==void 0)return z80;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="source" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="source-title" text="[[data.sourceTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-subtitle" text="[[data.sourceSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-account-name" text="[[data.sourceAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="source-account-email" text="[[data.sourceAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="target" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="target-title" text="[[data.targetTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="target-subtitle" text="[[data.targetSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="target-account" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-img-shadow hidden="[[!data.sourceAccountThumbnail]]" thumbnail="[[data.sourceAccountThumbnail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-img-shadow>\n        <div id="target-account-info" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="target-account-name" text="[[data.targetAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="target-account-email" text="[[data.targetAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="sournce-channel-details" text="[[data.sourceChannelDetails]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="info-warning" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <div id="info-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="info-title-text" text="[[data.infoTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="warning-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!warningIcon]]" hidden="[[!warningIcon]]" icon="[[warningIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="warning-title-text" text="[[data.warningTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="warning-text" split-lines="" text="[[data.warningText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="next-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return z80=d},{mode:1});var XOG;var Xy=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");return d};
_.m(Xy,_.B);Xy.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Xy.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Xy.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Xy.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Xy.prototype,"darkerDarkTheme",void 0);_.t([_.Z({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],Xy);
_.T(Xy,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(XOG!==void 0)return XOG;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-overview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="stepper" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-cross-account-transfer-channel-overview-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <div id="signin-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return XOG=d},{mode:1});var J7S;var JK=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");return d};
_.m(JK,_.B);JK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
JK.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
JK.prototype.onServiceRequestSentOrCompleted=function(d,H){H&&H.actions&&H.actions.length>0&&_.oF(this.hostElement,"yt-close-popup-action",[this.is])};
JK.prototype.onServiceRequestSentOrCompleted=JK.prototype.onServiceRequestSentOrCompleted;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],JK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],JK.prototype,"darkerDarkTheme",void 0);_.t([_.r(),_.O("design:type",Object)],JK.prototype,"data",void 0);
_.t([_.nK("yt-service-request-completed"),_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],JK.prototype,"onServiceRequestSentOrCompleted",null);_.t([_.Z({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],JK);
_.T(JK,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(J7S!==void 0)return J7S;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-tnc-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="agree-title" text="[[data.agreeTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="agree-text" split-lines="" text="[[data.agreeText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-title" text="[[data.understandTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-text" split-lines="" text="[[data.understandText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n    <div id="confirm-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return J7S=d},{mode:1});var snZ;var sC=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");d.submitButtonDisabled=!0;return d};
_.m(sC,_.B);_.G=sC.prototype;_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.G.onDataChanged=function(){var d,H,K;if(((d=this.data)==null?void 0:(H=d.confirmButton)==null?void 0:(K=H.buttonRenderer)==null?void 0:K.isDisabled)!==void 0){var c,p,g;this.submitButtonDisabled=(c=this.data)==null?void 0:(p=c.confirmButton)==null?void 0:(g=p.buttonRenderer)==null?void 0:g.isDisabled}};
_.G.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.G.updateSubmitButtonDisabledFromBinding=function(d){this.submitButtonDisabled=d.detail.value};
_.G.updateSubmitButtonDisabledFromConfirmCheckbox=function(d){this.submitButtonDisabled=!d.detail.value};
sC.prototype.onDataChanged=sC.prototype.onDataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],sC.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],sC.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],sC.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],sC.prototype,"darkerDarkTheme",void 0);
_.t([_.r(),_.O("design:type",Object)],sC.prototype,"submitButtonDisabled",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sC.prototype,"onDataChanged",null);_.t([_.Z({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],sC);
_.T(sC,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(snZ!==void 0)return snZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <div id="sections" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="messages" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-transfer-channel-confirm-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n    <div id="confirm" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-if" if="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <tp-yt-paper-checkbox id="confirm-checkbox" checked="[[!submitButtonDisabled]]" on-checked-changed="updateSubmitButtonDisabledFromConfirmCheckbox" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="confirm-text" text="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n        </tp-yt-paper-checkbox>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" on-disabled-changed="updateSubmitButtonDisabledFromBinding" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return snZ=d},{mode:1});var FPv;var Fy=function(){return _.B.apply(this,arguments)||this};
_.m(Fy,_.B);_.H3.Object.defineProperties(Fy.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var d,H,K;return((d=this.data)==null?void 0:d.title)+" "+((H=this.data)==null?void 0:H.metadataPrimary)+" "+((K=this.data)==null?void 0:K.metadataSecondary)}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Fy.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Fy.prototype,"data",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Fy.prototype,"ariaLabel",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Fy);
_.T(Fy,"ytd-compact-product-list-item-renderer",function(){if(FPv!==void 0)return FPv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-compact-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" aria-label$="[[ariaLabel]]">\n  <div class="compact-product-list-item style-scope ytd-compact-product-list-item-renderer">\n    <yt-img-shadow class="item-image style-scope ytd-compact-product-list-item-renderer" height="40" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="40"></yt-img-shadow>\n    <div class="column style-scope ytd-compact-product-list-item-renderer">\n      <template is="dom-if" if="[[data.title]]" class="style-scope ytd-compact-product-list-item-renderer">\n        <div class="row title style-scope ytd-compact-product-list-item-renderer">[[data.title]]</div>\n      </template>\n      <div class="row metadata style-scope ytd-compact-product-list-item-renderer">\n        <template is="dom-if" if="[[data.metadataPrimary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataPrimary]]</span>\n        </template>\n        <template is="dom-if" if="[[data.metadataSecondary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataSecondary]]</span>\n          <yt-icon class="open-in-new style-scope ytd-compact-product-list-item-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </template>\n      </div>\n    </div>\n  </div>\n</a>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return FPv=d},{mode:1});var ZWb;var Z6=function(){return _.B.apply(this,arguments)||this};
_.m(Z6,_.B);Z6.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactProductListItemRenderer:"ytd-compact-product-list-item-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.H3.Object.defineProperties(Z6.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Z6.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Z6.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Z6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Z6.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Z6);
_.T(Z6,"ytd-compact-product-list-renderer",function(){if(ZWb!==void 0)return ZWb;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-compact-product-list-renderer">\n  <div id="title" class="style-scope ytd-compact-product-list-renderer">[[data.title]]</div>\n  <div id="items" class="style-scope ytd-compact-product-list-renderer"></div>\n  <div id="action-button" class="style-scope ytd-compact-product-list-renderer"></div>\n</div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return ZWb=d},{mode:1});var ToZ;var Tf=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");return d};
_.m(Tf,_.B);_.G=Tf.prototype;_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.G.getBackgroundUrl=function(){var d=this.get("data.headerImage.thumbnails");return d?"url("+_.Gv(d,this.hostElement.clientWidth)+")":""};
_.G.onDataChanged=function(){var d=this.getBackgroundUrl();d&&(this.header.style.backgroundImage=d);d=_.Fj();var H=_.so(),K=this.get("data.trackingParams");K&&H&&d&&_.Ea(d,H,_.P1(K));d=_.q(this.hostElement.querySelectorAll("yt-img-shadow"));for(H=d.next();!H.done;H=d.next())H.value.onShow()};
_.G.onPopupClosed=function(d){_.v5(d).localName==="ytd-membership-post-cancel-renderer"&&_.oF(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
Tf.prototype.onPopupClosed=Tf.prototype.onPopupClosed;Tf.prototype.onDataChanged=Tf.prototype.onDataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Tf.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Tf.prototype,"darkerDarkTheme",void 0);
_.t([_.VP("#header"),_.O("design:type",HTMLDivElement)],Tf.prototype,"header",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Tf.prototype,"onDataChanged",null);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Tf.prototype,"onPopupClosed",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],Tf);
_.T(Tf,"ytd-membership-post-cancel-renderer",function(){if(ToZ!==void 0)return ToZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-membership-post-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-membership-post-cancel-renderer">\n  <div class="avatar-support style-scope ytd-membership-post-cancel-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.viewerThumbnail]]"></yt-img-shadow>\n    <yt-icon class="membership-icon style-scope ytd-membership-post-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.channelThumbnail]]"></yt-img-shadow>\n  </div>\n</div>\n\n<yt-formatted-string class="header-title style-scope ytd-membership-post-cancel-renderer" text="[[data.header]]"></yt-formatted-string>\n\n<div class="messages style-scope ytd-membership-post-cancel-renderer">\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-membership-post-cancel-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-membership-post-cancel-renderer"></yt-formatted-string>\n  </template>\n</div>\n\n<div class="footer style-scope ytd-membership-post-cancel-renderer">\n  <div id="okay-button" class="style-scope ytd-membership-post-cancel-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return ToZ=d},{mode:1});var QnO;var QF=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");return d};
_.m(QF,_.B);QF.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
QF.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],QF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],QF.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],QF.prototype,"darkerDarkTheme",void 0);_.t([_.VP("ytd-feedback-survey-renderer"),_.O("design:type",Object)],QF.prototype,"feedbackSurveyRenderer",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],QF);
_.T(QF,"ytd-sponsorship-confirm-cancel-content",function(){if(QnO!==void 0)return QnO;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="description" class="style-scope ytd-sponsorship-confirm-cancel-content">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-sponsorship-confirm-cancel-content"></yt-formatted-string>\n</div>\n<div id="feedback-survey" class="style-scope ytd-sponsorship-confirm-cancel-content"></div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return QnO=d},{mode:1});var t4j;var tK=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");d.maybeSubmitFeedback=function(){d.content&&d.content.maybeSubmitFeedback()};
return d};
_.m(tK,_.B);_.G=tK.prototype;_.G.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.G.onYtPopupOpened=function(d,H){H===this&&this.data&&this.data.onOpenCommands&&_.l5(this.hostElement,this.data.onOpenCommands,this.hostElement);_.oF(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.G.onYtPopupClosed=function(d,H){(H&&H.canceled===!0||H&&H.canceled===!1&&H.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.l5(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.G.onYtServiceRequestCompleted=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.G.onYtServiceRequestError=function(d){_.ff(this.hostElement,d.detail.error.message)};
_.G.onDataChanged=function(){if(this.isAttached){var d=this.backgroundUrl;d&&(_.Gn(this.hostElement).querySelector("#header").style.backgroundImage=d)}};
_.H3.Object.defineProperties(tK.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var d=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return d?"url("+_.Gv(d,this.hostElement.clientWidth)+")":""}}});
tK.prototype.onDataChanged=tK.prototype.onDataChanged;tK.prototype.onYtServiceRequestError=tK.prototype.onYtServiceRequestError;tK.prototype.onYtServiceRequestCompleted=tK.prototype.onYtServiceRequestCompleted;tK.prototype.onYtPopupClosed=tK.prototype.onYtPopupClosed;tK.prototype.onYtPopupOpened=tK.prototype.onYtPopupOpened;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],tK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],tK.prototype,"data",void 0);_.t([_.r({value:function(){return _.Vz("SBOX_INAPPROPRIATE_CANCEL")}}),
_.O("design:type",String)],tK.prototype,"closeButtonAriaLabel",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],tK.prototype,"darkerDarkTheme",void 0);_.t([_.VP("#scrollable"),_.O("design:type",Object)],tK.prototype,"scrollable",void 0);_.t([_.VP("ytd-sponsorship-confirm-cancel-content"),_.O("design:type",Object)],tK.prototype,"content",void 0);
_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],tK.prototype,"onYtPopupOpened",null);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],tK.prototype,"onYtPopupClosed",null);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],tK.prototype,"onYtServiceRequestCompleted",null);_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],tK.prototype,"onYtServiceRequestError",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tK.prototype,"onDataChanged",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],tK);
_.T(tK,"ytd-sponsorship-confirm-cancel-renderer",function(){if(t4j!==void 0)return t4j;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <tp-yt-paper-icon-button aria-label$="[[closeButtonAriaLabel]]" dialog-dismiss="" icon="yt-icons:dismissal" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></tp-yt-paper-icon-button>\n  </div>\n  <div class="avatar-support style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <template is="dom-if" restamp="" if="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]">\n      </yt-img-shadow>\n      <yt-icon class="membership-icon style-scope ytd-sponsorship-confirm-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    </template>\n    <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.channelThumbnail]]">\n    </yt-img-shadow>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <div id="title" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></yt-formatted-string>\n    </div>\n    <ytd-sponsorship-confirm-cancel-content data="[[data]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    </ytd-sponsorship-confirm-cancel-content>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div class="footer style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="confirm-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return t4j=d},{mode:_.qk("kevlar_poly_si_batch_j081")?1:2});var YwS;var Y_=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");return d};
_.m(Y_,_.B);Y_.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Y_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Y_.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Y_.prototype,"darkerDarkTheme",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Y_);
_.T(Y_,"ytd-sponsorships-celebration-content",function(){if(YwS!==void 0)return YwS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-celebration-content"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return YwS=
d},{mode:1});var OWt;var SwO=_.y$(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),OC=function(){var d=_.B.apply(this,arguments)||this;d.scriptsAppended=!1;d.useFullWidthPrimaryButton=!1;d.buttonOverrides={type:"tonal",style:"overlay-dark"};return d};
_.m(OC,_.B);_.G=OC.prototype;_.G.dataChanged=function(){var d;this.useFullWidthPrimaryButton=!((d=this.data)==null||!d.useFullWidthPrimaryButton)};
_.G.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.h("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.onDataChanged=function(){var d;(d=this.header)==null||d.style.setProperty("background-color",this.backgroundColor);if(d=this.headerImageUrl){var H;(H=this.header)==null||H.style.setProperty("background-image",d)}H=_.Fj(4);d=_.so(4);var K=this.get("data.trackingParams");if(K&&d&&H){var c=_.P1(K);_.Ea(H,d,c);_.h("combine_ve_grafts")?_.hR().graftServerVe(K,d,4):_.Ea(H,d,c)}H=_.q(this.hostElement.querySelectorAll("yt-img-shadow"));for(d=H.next();!d.done;d=H.next())d.value.onShow();if(H=this.get("data.gtmId"))_.Bm(H,
_.Fm("GL","")),this.setupConversionTracking()};
_.G.setupConversionTracking=function(){if(!this.scriptsAppended){var d=document.createElement("script");var H=_.NN(SwO.join(""));_.Dw(d,H);document.head.appendChild(d);d=document.createElement("noscript");d.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TGBSZFB" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(d);this.scriptsAppended=!0}};
_.G.onPopupClosed=function(d){if(_.v5(d).localName==="ytd-sponsorships-celebration-renderer"){_.oF(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var H;this.data&&((H=this.data)==null?0:H.dismissCommand)&&_.nM.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.H3.Object.defineProperties(OC.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var d=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Ob(d)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var d=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return d?"url("+_.Gv(d,this.hostElement.getBoundingClientRect().width)+")":""}}});
OC.prototype.onPopupClosed=OC.prototype.onPopupClosed;OC.prototype.onDataChanged=OC.prototype.onDataChanged;OC.prototype.dataChanged=OC.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],OC.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],OC.prototype,"data",void 0);
_.t([_.VP("#header"),_.O("design:type",HTMLElement)],OC.prototype,"header",void 0);_.t([_.r(),_.O("design:type",Object)],OC.prototype,"scriptsAppended",void 0);_.t([_.r({type:Boolean,reflectToAttribute:!0}),_.O("design:type",Object)],OC.prototype,"useFullWidthPrimaryButton",void 0);_.t([_.r(),_.O("design:type",Object)],OC.prototype,"buttonOverrides",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],OC.prototype,"dataChanged",null);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],OC.prototype,"onDataChanged",null);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],OC.prototype,"onPopupClosed",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],OC);
_.T(OC,"ytd-sponsorships-celebration-renderer",function(){if(OWt!==void 0)return OWt;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return OWt=d},{mode:1});var EgG;var SQ=function(){var d=_.B.apply(this,arguments)||this;d.isToggleChecked=!1;return d};
_.m(SQ,_.B);SQ.prototype.onDataChanged=function(){var d;this.isToggleChecked=((d=this.data)==null?void 0:d.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
SQ.prototype.close=function(){var d;((d=this.data)==null?0:d.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
SQ.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var d,H=_.M((d=this.data)==null?void 0:d.switchButton,PqO);H&&(this.isToggleChecked&&H.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(H.switchOnInnertubeCommand),!this.isToggleChecked&&H.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(H.switchOffInnertubeCommand))};
SQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
SQ.prototype.onDataChanged=SQ.prototype.onDataChanged;_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],SQ.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],SQ.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],SQ.prototype,"isToggleChecked",void 0);_.t([_.r({value:_.Vz("CLOSE")}),_.O("design:type",String)],SQ.prototype,"closeButtonAriaLabel",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],SQ.prototype,"onDataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],SQ);
_.T(SQ,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(EgG!==void 0)return EgG;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-gifting-opt-in-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-icon icon="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="content" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <div id="header" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-img-shadow class="thumbnail style-scope ytd-sponsorships-gifting-opt-in-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n  </div>\n  <div id="optin" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <div id="title" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <yt-formatted-string class="title style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="subtitle style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.subtitle]]">\n      </yt-formatted-string>\n    </div>\n    <div id="toggle" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <ytcp-ve track-click="true" ve-type="[[ve.client.SPONSORSHIPS_GIFTING_OPT_IN_DIALOG_TOGGLE_BUTTON]]" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n        <tp-yt-paper-toggle-button class="toggle style-scope ytd-sponsorships-gifting-opt-in-renderer" checked="[[isToggleChecked]]" on-click="handleOptInToggle">\n        </tp-yt-paper-toggle-button>\n      </ytcp-ve>\n    </div>\n  </div>\n  <div class="separator style-scope ytd-sponsorships-gifting-opt-in-renderer"></div>\n  <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.disclaimer]]">\n  </yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return EgG=d},{mode:1});var y7Z;var EC=function(){return _.B.apply(this,arguments)||this};
_.m(EC,_.B);_.G=EC.prototype;_.G.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.header.sponsorshipsHeaderRenderer.menuButton":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.detached=function(){this.playerElement.stop()};
_.G.onYtServiceRequestCompleted=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.G.onYtServiceRequestError=function(d){_.ff(this.hostElement,d.detail.error.message)};
_.G.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.G.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.G.getTier=function(d,H){return!d||!d.tiers||H<0?null:_.M(d.tiers[H],Wuv)};
_.G.moreThanOne=function(d){return!!(d&&d.length>1)};
_.G.tierOverviewTap=function(d){var H=this;this.selectedTier=d.model.index;_.vV(this,function(){_.GT(H.hostElement,"yt-refit")})};
_.G.computeSelectedClass=function(d,H){return this.isSelected(d,H)?"selected":""};
_.G.computeButtonAriaPressed=function(d,H){return this.isSelected(d,H)?"true":"false"};
_.G.isSelected=function(d,H){return d===H};
_.G.onDataChanged=function(){_.Gn(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Gn(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var d=_.q(this.hostElement.querySelectorAll("yt-img-shadow")),
H=d.next();!H.done;H=d.next())H.value.onShow();var K;this.set("selectedTier",(K=this.get("data.targetTierIndex"))!=null?K:0);var c;(d=(c=this.data)==null?void 0:c.onVisible)&&this.ytComponentBehavior.resolveCommand(d)};
_.G.initializeVe=function(d){var H=_.Fj(),K=_.so(),c=this.get("data.trackingParams");K&&H&&(this.screenLayer=4,H=_.Y2(_.M0D)(void 0,69877,{clientScreenNonce:H,visualElement:K},void 0,void 0,void 0),_.TA(H,69877,4),K=_.so(4),c&&K&&(c=_.P1(c),_.Ea(H,K,c),d&&(this.offerVideoVe=_.l8(74659),_.Ea(H,c,this.offerVideoVe))))};
_.G.setHeaderBackground=function(){var d=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Gn(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Ob(d);if(d=this.getHeaderImage())d=_.Gv(d,screen.width),_.Gn(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+d+")"};
_.G.getHeaderImage=function(){var d=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&d?d:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.G.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.G.setupVideoPlayer=function(d){var H=this,K,c,p,g;return _.l(function(a){if(a.nextAddress==1)return K=H.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),c=H.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.h("kevlar_player_update_killswitch")?H.playerElement.update({args:{autoplay:K,video_id:d,player_params:c}}):H.playerElement.loadVideoWithPlayerVars({autoplay:K,video_id:d,player_params:c}),
a.yield(H.playerElement.getPlayerPromise(),2);p=a.yieldResult;p.addEventListener("onStateChange",function(e){H.onPlayerStateChange(e)});
p.setScreenLayer(H.screenLayer);(g=_.Fj(4))&&H.offerVideoVe&&_.b5(g,H.offerVideoVe);K&&(H.pauseOtherPlayers(),H.playerElement.focusOnPlayer(),H.playerElement.getPlayer().hideControls(),_.mf(_.Xp,function(){H.fadeOutHeaderOverlay()},4E3));
_.VE(a)})};
_.G.onPlayerStateChange=function(d){d===1?this.backgroundPlayerElement&&(d=this.backgroundPlayerElement.player_.getPlayerState(),d!==1&&d!==3||this.backgroundPlayerElement.pause()):d===0&&(_.Gn(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Gn(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.G.fadeOutHeaderOverlay=function(){_.Gn(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.G.onHeaderTap=function(){if(this.offerVideo){_.Gn(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var d;((d=this.playerElement.player_)==null?void 0:d.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(d=_.Fj(4))&&this.offerVideoVe&&_.fo(d,this.offerVideoVe)}};
_.G.getBackgroundImageLayerClass=function(d){return d?"background-image-layer-with-video":""};
_.G.getHeaderClass=function(d){return d?"header-with-video":""};
_.G.getHeaderOverlayClass=function(d){return d?"header-overlay-with-video":""};
_.G.getTitleContainerClass=function(d,H){return d?"title-container-with-video":H?"title-container-without-video-flexible":"title-container-without-video"};
_.G.tierTitleDisplayStatus=function(d){return this.moreThanOne(d)?"hide":"show"};
_.G.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.Kj().resolve(_.Fb).getPlayerElement():this.backgroundPlayerElement=_.Kf();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var d=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=d===1||d===3;this.backgroundPlayerElement.pause()}};
_.G.isMiniplayerActive=function(){return _.Kj().resolve(_.Fb).isMiniplayerActive()};
_.G.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("selected-tier-changed",this.selectedTier))};
EC.prototype.selectedTierChangedForBinding=EC.prototype.selectedTierChangedForBinding;EC.prototype.onDataChanged=EC.prototype.onDataChanged;EC.prototype.onYtPopupClosed=EC.prototype.onYtPopupClosed;EC.prototype.onYtPopupOpened=EC.prototype.onYtPopupOpened;EC.prototype.onYtServiceRequestError=EC.prototype.onYtServiceRequestError;EC.prototype.onYtServiceRequestCompleted=EC.prototype.onYtServiceRequestCompleted;
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],EC.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],EC.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],EC.prototype,"data",void 0);_.t([_.r({value:0}),_.O("design:type",Number)],EC.prototype,"selectedTier",void 0);
_.t([_.r({value:""}),_.O("design:type",String)],EC.prototype,"offerVideo",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],EC.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.t([_.r({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.b1(this)}}),
_.O("design:type",String)],EC.prototype,"playerId",void 0);_.t([_.VP("tp-yt-paper-dialog-scrollable"),_.O("design:type",Object)],EC.prototype,"scrollable",void 0);_.t([_.VP("ytd-sponsorships-tier-renderer"),_.O("design:type",Object)],EC.prototype,"tierRenderer",void 0);_.t([_.VP("#player"),_.O("design:type",Object)],EC.prototype,"playerElement",void 0);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],EC.prototype,"onYtServiceRequestCompleted",null);_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],EC.prototype,"onYtServiceRequestError",null);
_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],EC.prototype,"onYtPopupOpened",null);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],EC.prototype,"onYtPopupClosed",null);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],EC.prototype,"onDataChanged",null);
_.t([_.CK("selectedTier"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],EC.prototype,"selectedTierChangedForBinding",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],EC);
_.T(EC,"ytd-sponsorships-offer-renderer",function(){if(y7Z!==void 0)return y7Z;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="titlebar-text" class="style-scope ytd-sponsorships-offer-renderer">\n    <yt-formatted-string text="[[data.header.sponsorshipsHeaderRenderer.titlebarText]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-offer-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="header" class$="[[getHeaderClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n    <div id="header-overlay" on-click="onHeaderTap" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="header-title-overlay" class$="[[getHeaderOverlayClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n        <div id="avatar-container" class="style-scope ytd-sponsorships-offer-renderer">\n          <yt-img-shadow class="avatar style-scope ytd-sponsorships-offer-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n          </yt-img-shadow>\n        </div>\n        <div class$="title-container [[getTitleContainerClass(offerVideo,\n            data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode)]] style-scope ytd-sponsorships-offer-renderer">\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.superTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="background-image-layer" class$="[[getBackgroundImageLayerClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer"></div>\n    </div>\n    <div id="video-container" hidden$="[[!offerVideo]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SPONSORSHIPS_OFFER" player-id="[[playerId]]" class="style-scope ytd-sponsorships-offer-renderer">\n      </ytd-player>\n    </div>\n  </div>\n  <div id="alert-renderer" hidden="[[!data.alert]]" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="content" class="style-scope ytd-sponsorships-offer-renderer">\n    <template is="dom-if" if="[[moreThanOne(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="tier-overview" class="style-scope ytd-sponsorships-offer-renderer">\n        <template is="dom-repeat" items="[[data.tiers]]" as="tier" class="style-scope ytd-sponsorships-offer-renderer">\n          <button class$="offer-overview-item [[computeSelectedClass(index, selectedTier)]] style-scope ytd-sponsorships-offer-renderer" aria-pressed="[[computeButtonAriaPressed(index, selectedTier)]]" on-click="tierOverviewTap">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.subtitle]]">\n            </yt-formatted-string>\n          </button>\n        </template>\n      </div>\n    </template>\n    <ytd-sponsorships-tier-renderer id="tier" data="[[getTier(data, selectedTier)]]" titledisplaystatus="[[tierTitleDisplayStatus(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </ytd-sponsorships-tier-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return y7Z=d},{mode:_.qk("kevlar_poly_si_batch_j077")?1:2});var bWv;var yF=function(){var d=_.B.apply(this,arguments)||this;d.buttonOverrides={type:"filled",style:"mono"};return d};
_.m(yF,_.B);yF.prototype.configureRendererStamper=function(){return{"data.content.sponsorshipsPromotionChannelRenderer.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"}}}},"data.header.sponsorshipsPromotionHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
yF.prototype.backgroundColorChanged=function(){var d,H,K,c=(H=_.M((d=this.data)==null?void 0:d.content,Bl5))==null?void 0:(K=H.backgroundColor)==null?void 0:K.backgroundColor;c&&(d=_.Yi(c),_.Gn(this.hostElement).querySelector("#banner").style.backgroundColor=d,_.Gn(this.hostElement).querySelector("#abstract-art").style.backgroundColor=d)};
yF.prototype.attached=function(){this.JSC$20507_scroller&&(this.JSC$20507_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20507_scroller.attached&&typeof this.JSC$20507_scroller.attached==="function"&&this.JSC$20507_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
yF.prototype.backgroundColorChanged=yF.prototype.backgroundColorChanged;_.t([_.r(),_.O("design:type",Object)],yF.prototype,"data",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],yF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.VP("#scroller"),_.O("design:type",Object)],yF.prototype,"JSC$20507_scroller",void 0);_.t([_.r(),_.O("design:type",Object)],yF.prototype,"buttonOverrides",void 0);
_.t([_.CK("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yF.prototype,"backgroundColorChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],yF);
_.T(yF,"ytd-sponsorships-promotion-celebration-renderer",function(){if(bWv!==void 0)return bWv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n   <div id="dismiss-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n   <div id="header" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <yt-img-shadow class="premium-icon style-scope ytd-sponsorships-promotion-celebration-renderer" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.icon]]">\n    </yt-img-shadow>\n    <yt-img-shadow class="illustration style-scope ytd-sponsorships-promotion-celebration-renderer" hidden="[[!data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-sponsorships-promotion-celebration-renderer" text="[[data.header.sponsorshipsPromotionHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-promotion-celebration-renderer" split-lines="" text="[[data.header.sponsorshipsPromotionHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n  <div id="banner" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <div id="content" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="content-background" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow id="abstract-art" fit-height="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.backgroundImage]]" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        </yt-img-shadow>\n      </div>\n      <div id="subcontent" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow class="channel-image style-scope ytd-sponsorships-promotion-celebration-renderer" fit="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.channelImage]]">\n        </yt-img-shadow>\n        <div class="channel-info style-scope ytd-sponsorships-promotion-celebration-renderer">\n          <yt-formatted-string class="channel-info-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.channelTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="membership-detail style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" hidden="[[!data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]" text="[[data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="button-bar" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="primary-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n    </div>\n  </div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return bWv=d},{mode:_.qk("kevlar_poly_si_batch_j077")?1:2});var NoZ;var Dxb;var bQ=function(){return _.B.apply(this,arguments)||this};
_.m(bQ,_.B);bQ.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
bQ.prototype.computeIsInitiallyChecked=function(d){return d===1};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],bQ.prototype,"data",void 0);_.t([_.VP("#checkbox"),_.O("design:type",Object)],bQ.prototype,"checkbox",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],bQ);
_.T(bQ,"ytd-subscription-toggle-option-renderer",function(){if(Dxb!==void 0)return Dxb;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[computeIsInitiallyChecked(data.initialValue)]]" class="style-scope ytd-subscription-toggle-option-renderer">\n  [[getSimpleString(data.label)]]\n</tp-yt-paper-checkbox>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Dxb=d},{mode:1});var N4=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");d.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return d};
_.m(N4,_.B);N4.prototype.configureRendererStamper=function(){return{"data.secondaryOptions":{id:"secondary-options",mapping:{subscriptionToggleOptionRenderer:"ytd-subscription-toggle-option-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
N4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
N4.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var d=_.Gn(this.hostElement).querySelector("#options").selected;d=this.data.options[d].subscriptionRadioOptionRenderer.serviceEndpoint;var H=_.Gn(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");H&&d&&d.modifyChannelNotificationPreferenceEndpoint&&(H=H.getValue())&&(d.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[H]);_.Kj().resolve(_.cb).resolveCommand(d,{form:{element:this.hostElement}});
_.oF(this.hostElement,"yt-close-popup-action")};
_.H3.Object.defineProperties(N4.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var d=this.data.options,H=0;H<d.length;H++){var K=d[H].subscriptionRadioOptionRenderer;if(K&&K.selected)return H}return null}}});
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],N4.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],N4.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],N4.prototype,"eventForwardingBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],N4.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],N4.prototype,"darkerDarkTheme",void 0);_.t([_.I("data.options"),_.O("design:type",Object),_.O("design:paramtypes",[])],N4.prototype,"initialIndex",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],N4);
_.T(N4,"ytd-subscription-notification-options-renderer",function(){if(NoZ!==void 0)return NoZ;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-subscription-notification-options-renderer">[[getSimpleString(data.title)]]</div>\n<div id="body" class="style-scope ytd-subscription-notification-options-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[initialIndex]]" class="style-scope ytd-subscription-notification-options-renderer">\n    <template is="dom-repeat" items="[[data.options]]" class="style-scope ytd-subscription-notification-options-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" value="[[item.subscriptionRadioOptionRenderer.serviceEndpoint]]" class="style-scope ytd-subscription-notification-options-renderer">\n        <div class="content style-scope ytd-subscription-notification-options-renderer">\n          <div class="label style-scope ytd-subscription-notification-options-renderer">\n            [[getSimpleString(item.subscriptionRadioOptionRenderer.text)]]\n          </div>\n          <yt-icon icon="[[item.subscriptionRadioOptionRenderer.choiceIcon.iconType]]" class="style-scope ytd-subscription-notification-options-renderer">\n          </yt-icon>\n        </div>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n  <div id="secondary-options" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n<div class="buttons style-scope ytd-subscription-notification-options-renderer">\n  <div id="cancel-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n  <div id="confirm-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return NoZ=d},{mode:1});var f_g;var D6=function(){return _.B.apply(this,arguments)||this};
_.m(D6,_.B);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],D6.prototype,"data",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],D6);
_.T(D6,"ytd-tvfilm-offer-groups-renderer",function(){if(f_g!==void 0)return f_g;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-groups-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.offerGroups]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n  <div class="offer-group style-scope ytd-tvfilm-offer-groups-renderer">\n    <div class="offer-header style-scope ytd-tvfilm-offer-groups-renderer">\n      <h2 class="offer-title style-scope ytd-tvfilm-offer-groups-renderer">[[getSimpleString(item.offerGroupRenderer.title)]]</h2>\n      <h3 class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <yt-formatted-string class="offer-subtitle standard-text style-scope ytd-tvfilm-offer-groups-renderer" split-lines="" text="[[item.offerGroupRenderer.subtitle]]">\n        </yt-formatted-string>\n      </h3>\n    </div>\n    <div class="offer-list style-scope ytd-tvfilm-offer-groups-renderer">\n      <template is="dom-repeat" items="[[item.offerGroupRenderer.offers]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <ytd-button-renderer class="offer-button style-scope ytd-tvfilm-offer-groups-renderer" data="[[item.buttonRenderer]]" dialog-dismiss="true" ellipsis-truncate="">\n        </ytd-button-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return f_g=d},{mode:1});var A7g;var fL=function(){var d=_.B.apply(this,arguments)||this;d.darkerDarkTheme=_.h("web_darker_dark_theme");return d};
_.m(fL,_.B);_.G=fL.prototype;_.G.configureRendererStamper=function(){return{"data.offers":{id:"offers",mapping:{tvfilmOffersRenderer:{component:"ytd-tvfilm-offer-groups-renderer"}}},"data.coupon":{id:"coupon",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.G.computeThumbnailClass=function(d){return d.thumbnailOverlays?d.isShow?"thumbnail-show":"thumbnail-movie":d.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.G.computeCommerceSectionClass=function(d){return d.offers&&d.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.G.computeTitleClass=function(d){return d.offers&&d.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.G.onDataChanged=function(){[].concat(_.ru(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(d){d.onShow()})};
fL.prototype.onDataChanged=fL.prototype.onDataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],fL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],fL.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],fL.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],fL.prototype,"darkerDarkTheme",void 0);
_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fL.prototype,"onDataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],fL);
_.T(fL,"ytd-ypc-offers-overlay-renderer",function(){if(A7g!==void 0)return A7g;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offers-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer"></tp-yt-paper-spinner>\n</div>\n<div class="content style-scope ytd-ypc-offers-overlay-renderer" hidden="[[data.showLoadingSpinner]]">\n  <div class="header style-scope ytd-ypc-offers-overlay-renderer" hidden="[[!data.title]]">\n    <div class="metadata style-scope ytd-ypc-offers-overlay-renderer">\n      <div class$="title-badge [[computeTitleClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n    </div>\n    <template is="dom-if" if="[[data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div class="content-dismiss-section style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="thumbnail-commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <div id="thumbnail" class$="[[computeThumbnailClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <yt-img-shadow id="thumbnail-image" fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n        </yt-img-shadow>\n        <div id="overlays" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n      </div>\n      <div id="commerce-metadata-section" class$="[[computeCommerceSectionClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <div id="commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <div id="offers" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n        </div>\n        <div id="badges-metadata-section" hidden="[[!data.badges]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <hr class="metadata-separator-line style-scope ytd-ypc-offers-overlay-renderer">\n          <ytd-badge-supported-renderer class="left-aligned-badges style-scope ytd-ypc-offers-overlay-renderer" badges="[[data.badges]]">\n          </ytd-badge-supported-renderer>\n          <div class="subtitle standard-text style-scope ytd-ypc-offers-overlay-renderer">[[getSimpleString(data.metadata)]]</div>\n        </div>\n      </div>\n    </div>\n    <template is="dom-if" if="[[!data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <yt-formatted-string class="info-section standard-text style-scope ytd-ypc-offers-overlay-renderer" text="[[data.additionalInfo]]">\n  </yt-formatted-string>\n\n  <div class="footer style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="coupon" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n    <ytd-button-renderer id="help-button" data="[[data.helpButton.buttonRenderer]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return A7g=d},{mode:_.qk("kevlar_poly_si_batch_j028")?1:2});var jnq;var vgU=function(){this.usedMethods=new Set};
vgU.prototype.add=function(d){this.usedMethods.add(d)};
vgU.prototype.reset=function(){this.usedMethods.clear()};var $2Z=function(d,H){this.query=d;this.previousSearchQuery=H;this.id=d2O++;if(!HIb){H=_.Fm("SBOX_SETTINGS");d="https://"+((H==null?void 0:H.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var K=H==null?void 0:H.REQUEST_LANGUAGE;K&&(d+="&hl="+K);(K=H==null?void 0:H.REQUEST_DOMAIN)&&(d+="&gl="+K);d+="&client=youtube&gs_ri=youtube";(K=H==null?void 0:H.SUGG_EXP_ID)&&(d+="&sugexp="+encodeURIComponent(K));(K=H==null?void 0:H.PSUGGEST_TOKEN)&&(d+="&tok="+K);(H=
H==null?void 0:H.SESSION_INDEX)&&(d+="&authuser="+H);_.h("desktop_enable_visual_suggest")&&(d+="&h=180&w=320&ytvs=1");HIb=d}},KOv=function(d){var H="q="+encodeURIComponent(d.query);
d.previousSearchQuery&&(H+="&pq="+encodeURIComponent(d.previousSearchQuery));return H},c6v=function(){var d=_.Fm("SBOX_SETTINGS"),H={};
if(d==null?0:d.SEND_VISITOR_DATA)H["X-Goog-Visitor-Id"]=d==null?void 0:d.VISITOR_DATA;return H},pt0=function(d){var H=HIb;
H+="&gs_id="+d.id.toString(36);H+="&q="+encodeURIComponent(d.query);H+="&cp="+d.query.length;d.previousSearchQuery&&(H+="&pq="+encodeURIComponent(d.previousSearchQuery));(d=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(H+="&video_id="+d);return H},d2O=0,HIb="";var gwT=_.oc.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,iIt=_.oc.SEARCH_ENTITY_SUGGESTION_MOVIE,GcZ=_.oc.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,ow1=_.oc.SEARCH_ENTITY_SUGGESTION_TV_SHOW,q$0=function(d,H){this.text=d;this.bold=H},amq=function(d,H,K){this.input=H;
this.index=K;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=d[0];this.type=d[1];this.subtypes=d[2];var c;this.displayText=Vk((c=d[3])==null?void 0:c.b);var p;this.ignoredPrefix=Vk((p=d[3])==null?void 0:p.a);var g,a;this.hasNewVideo=((g=d[3])==null?void 0:(a=g.zam)==null?void 0:a.toString())==="true"?!0:!1;var e;this.visualSuggestUrl=(e=d[3])==null?void 0:e.zai;var k;this.entityType=Vk((k=d[3])==null?void 0:k.zap);var C;this.entityName=Vk((C=d[3])==null?void 0:C.zao);var R;H=Vk((R=
d[3])==null?void 0:R.zaf);var V;this.entityMid=(V=d[3])==null?void 0:V.zae;R=Qqj(this.subtypes,this.entityMid);if(H&&R){if(H){V="";switch(R){case "YOUTUBE_ENTITY_TYPE_SONG":V=GcZ;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":V=gwT;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":V=ow1;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":V=iIt}R=R==="YOUTUBE_ENTITY_TYPE_SONG"||R==="YOUTUBE_ENTITY_TYPE_ALBUM"?V+" \u2022  \u2022 "+H:H}else R="";this.entitySubtitle=R}var U;this.externalChannelId=(U=d[3])==null?void 0:U.zav;var L;
this.entityThumbnailAttributionUrl=(L=d[3])==null?void 0:L.zaq},eIt=function(d,H){var K=[],c,p=(c=d.displayText)!=null?c:d.text;
(H==null?0:H.useEntityName)&&lmT(d)&&d.entityName&&(p=d.entityName);if(d.type===33)return K.push(new q$0(p,!1)),K;if(p.length>=d.input.length&&p.substring(0,d.input.length)===d.input)K.push(new q$0(d.input,!1)),K.push(new q$0(p.substring(d.input.length),!0));else{var g=new Set(d.input.split(/\s/)),a=p.split(/\s/);K=a.map(function(e,k){return new q$0(e.trim()+(k===a.length-1?"":" "),!g.has(e))})}return K},lmT=function(d){var H=!!Qqj(d.subtypes);
d=!!d.entityMid;return H||d};var kcO=function(d){this.rawResponse=["",[],{}];this.suggestions=[];try{var H=JSON.parse(tvZ(d));if(typeof H==="object"&&H!==null)this.rawResponse=H;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(c){console.log("Suggest: Failed to parse SuggestResponse!");return}var K=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(c,p){return new amq(c,K,p)})};var x2U=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new vgU;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20544_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},nwq,CoZ=function(){nwq||(nwq=new x2U);
return nwq};
x2U.prototype.updateSuggestions=function(d){var H=this;this.availableSuggestions.forEach(function(K){H.previousSuggestions[K]=!0});
this.availableSuggestions=d.map(function(K){var c=K.type.toString();K.subtypes.length>0&&(c+="i"+K.subtypes.join("i"),c+="k"+K.suggestionSources.COMPLETE_SERVER.toString());return c})};
var RIj=function(d,H){var K=Date.now();d.firstEditTime<0&&(d.firstEditTime=K);H&&(d.lastQueryBuildTime=K);d.lastEditTime=K};
x2U.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20544_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var VtS=function(d){var H="";d.availableSuggestions.forEach(function(p){delete d.previousSuggestions[p]});
for(var K=_.q(Object.keys(d.previousSuggestions)),c=K.next();!c.done;c=K.next())c=c.value,d.previousSuggestions[c]&&(H+=(H?"j":"")+c);return H},U2S=function(d,H){var K=[];
H&&(K[1]=H.toString());K[0]="youtube";K[7]=Date.now()-d.startTime;K[6]=d.sessionNumber;d.zeroPrefixSuggestionCount>=0&&(K[33]=d.zeroPrefixSuggestionCount);K[13]=d.outOfSyncResponseCount;if(d.availableSuggestions.length>0){for(var c=H="",p=0,g=_.q(d.availableSuggestions),a=g.next();!a.done;a=g.next())a=a.value,a!==c&&(p>1&&(H+="l"+p),H+=(c?"j":"")+a,p=0,c=a),p+=1;p>1&&(H+="l"+p);K[3]=H}K[35]=VtS(d);d.selectedSuggestionIndex>=0&&(K[2]=d.selectedSuggestionIndex);var e;if(H=(e=_.Fm("SBOX_SETTINGS"))==
null?void 0:e.SUGG_EXP_ID)K[19]=d.normalize(H),e=0,d.experimentTriggeredBeforeFinal&&(e|=1),d.experimentTriggeredFinal&&(e|=2),K[20]=e;K[26]=Array.from(d.inputMethodsTracker.usedMethods).join("j");if(d.JSC$20544_totalRoundTripTime>0){K[15]=d.JSC$20544_totalRoundTripTime;K[14]=d.maxRoundTripTime;e=[];for(p=H=0;p<10;p++)c=d.roundTripTimeHistogram[p],c===0?H++:(H>1?e.push(p+"-"+c):H===1?e.push("0j"+c):e.push(c.toString()),H=0);e=e.join("j");K[16]=e}d.zeroPrefixRoundTripTime>0&&(K[36]=d.zeroPrefixRoundTripTime);
d.lastQueryBuildTime>0&&(K[18]=d.lastQueryBuildTime-d.startTime);d.firstEditTime>0&&(K[4]=d.firstEditTime-d.startTime);d.lastEditTime>0&&(K[5]=d.lastEditTime-d.startTime);return K.join(".")};
x2U.prototype.normalize=function(d){return d.replaceAll(".","-")};
var hIg=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var AK=function(){var d=_.B.apply(this,arguments)||this;d.microphoneSpinnerActive=!1;d.noAnimations=!1;d.boundExitClick=function(){d.onExitButtonClick()};
d.speechOverlayClassName="";d.isLevelAnimating=!1;d.playCloseDialogAudioFeedback=!0;d.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return d};
_.m(AK,_.B);_.G=AK.prototype;_.G.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.G.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=$Et()};
_.G.dataChanged=function(){this.logDialog()};
_.G.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var d;(d=this.manager.audioPlayer)!=null&&(d.JSC$19851_audioEnabled=!1)}this.manager.stop();(d=this.manager.audioPlayer)!=null&&(d.JSC$19851_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.G.handleSpeechQueryCompleteAction=function(d){var H=d.navigationAction;H&&(d.trackingParams&&_.hR().graftServerVe(d.trackingParams,this.dialogVe,5),_.GT(this.hostElement,"yt-navigate",{endpoint:H,tempData:this.getNavigationParams(H),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.G.onExitButtonClick=function(){this.closeDialog()};
_.G.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var d;if((d=this.manager)!=null){var H;(H=d.audioPlayer)==null||Hu(H,"failure");d.setState("microphone-off");d.stop()}}else(d=this.manager)==null||d.start()};
_.G.transcriptionChanged=function(){var d,H;(((d=this.transcription)==null?0:d.low)||((H=this.transcription)==null?0:H.high))&&this.setState("transcribing",this.transcription)};
_.G.stateChanged=function(){this.setState(this.state,this.transcription)};
_.G.logDialog=function(){var d;(d=this.data)!=null&&d.trackingParams&&(d=_.hR(),_.ld(d,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=d.graftServerVe(this.data.trackingParams,void 0,5))};
_.G.getNavigationParams=function(d){var H={};if(_.h("web_yt_searchbox")){var K=CoZ();K.inputMethodsTracker.add(6);K=U2S(K,15);H.gs_l=K;var c;H.oq=((c=_.M(d,_.Mv))==null?void 0:c.query)||""}else if(d=window.ytvoicesearchloggingparams){if(d=d())H.oq=d.oq,H.gs_l=d.gs_l}else _.SD(Error("ql"));return H};
_.G.closeDialog=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.G.setState=function(d,H){if(this.data){var K=this.data,c={};switch(d){case "listening":c={headerText:K.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:K.microphoneButtonAriaLabel};break;case "timeout":c={headerText:K.promptHeader,microphoneState:"try-again",microphoneLabel:K.promptMicrophoneLabel,microphoneAriaLabel:K.promptMicrophoneLabel};break;case "microphone-off":c={headerText:K.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:K.promptMicrophoneLabel,
microphoneAriaLabel:K.promptMicrophoneLabel};break;case "transcribing":(H==null?0:H.low)||(H==null?0:H.high)?c={transcriptionLow:H==null?void 0:H.low,transcriptionHigh:H==null?void 0:H.high,microphoneState:"speaking",microphoneAriaLabel:K.microphoneButtonAriaLabel}:c={headerText:K.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:K.microphoneButtonAriaLabel};break;case "processing":c={headerText:K.loadingHeader,microphoneState:"processing",microphoneAriaLabel:K.microphoneButtonAriaLabel};
break;case "offline":c={headerText:K.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:K.connectionErrorMicrophoneLabel,microphoneAriaLabel:K.connectionErrorMicrophoneLabel};break;case "permission":c={headerText:K.permissionsHeader,bodyLine1:K.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:K.permissionsSubtext};break;case "permission-denied":c={headerText:K.disabledHeader,bodyLine1:K.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:K.disabledSubtext}}c.className=
d;this.speechOverlayState=c;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.G.setMicrophoneState=function(d){var H=this.isLevelAnimating;this.isLevelAnimating=d==="speaking";!H&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=d==="processing"&&!this.noAnimations};
_.G.setClass=function(d){this.speechOverlayClassName&&_.qr(this.hostElement,this.speechOverlayClassName,!1);d&&(this.speechOverlayClassName=d,_.qr(this.hostElement,d,!0))};
_.G.runLevelAnimation=function(){var d=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var H=1+Math.random()*.75,K=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+K/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+H+")");_.Xp.addJob(function(){d.runLevelAnimation()},3,K)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
AK.prototype.stateChanged=AK.prototype.stateChanged;AK.prototype.transcriptionChanged=AK.prototype.transcriptionChanged;AK.prototype.onPopupClosed=AK.prototype.onPopupClosed;AK.prototype.dataChanged=AK.prototype.dataChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],AK.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],AK.prototype,"rendererStamperBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],AK.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],AK.prototype,"eventForwardingBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],AK.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],AK.prototype,"speechOverlayState",void 0);
_.t([_.r(),_.O("design:type",Object)],AK.prototype,"microphoneSpinnerActive",void 0);_.t([_.r({type:_.h("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.O("design:type",Object)],AK.prototype,"noAnimations",void 0);_.t([_.r({selector:function(d){var H;return(H=d.voiceSearch)==null?void 0:H.transcription}}),
_.O("design:type",Object)],AK.prototype,"transcription",void 0);_.t([_.r({selector:function(d){var H;return(H=d.voiceSearch)==null?void 0:H.overlay}}),
_.O("design:type",String)],AK.prototype,"state",void 0);_.t([_.r(),_.O("design:type",Object)],AK.prototype,"boundExitClick",void 0);_.t([_.VP("#microphone-levels"),_.O("design:type",HTMLElement)],AK.prototype,"level",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],AK.prototype,"dataChanged",null);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],AK.prototype,"onPopupClosed",null);
_.t([_.Mr("transcription"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],AK.prototype,"transcriptionChanged",null);_.t([_.Mr("state"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],AK.prototype,"stateChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],AK);
_.T(AK,"ytd-voice-search-dialog-renderer",function(){if(jnq!==void 0)return jnq;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-voice-search-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-voice-search-dialog-renderer">\n  <div id="header-text" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="prompt" hidden="[[!speechOverlayState.headerText]]" class="style-scope ytd-voice-search-dialog-renderer">\n      [[getSimpleString(speechOverlayState.headerText)]]\n    </div>\n    <div id="transcription-high" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionHigh]]</div>\n    <div id="transcription-low" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionLow]]</div>\n  </div>\n  <div id="exit-button" class="style-scope ytd-voice-search-dialog-renderer"></div>\n</div>\n<div id="body" class="style-scope ytd-voice-search-dialog-renderer">\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine1)]]</div>\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine2)]]</div>\n</div>\n<div id="microphone" state$="[[speechOverlayState.microphoneState]]" class="style-scope ytd-voice-search-dialog-renderer">\n  <tp-yt-paper-spinner-lite active="[[microphoneSpinnerActive]]" class="style-scope ytd-voice-search-dialog-renderer">\n  </tp-yt-paper-spinner-lite>\n  <div id="microphone-container" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="microphone-pulse" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-levels" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-circle" aria-label$="[[getSimpleString(speechOverlayState.microphoneAriaLabel)]]" role="button" tabindex="0" on-tap="onMicrophoneTap" class="style-scope ytd-voice-search-dialog-renderer">\n      <tp-yt-paper-ripple class="style-scope ytd-voice-search-dialog-renderer"></tp-yt-paper-ripple>\n      <yt-icon icon="yt-icons:microphone_on" class="style-scope ytd-voice-search-dialog-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="microphone-label" class="style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.microphoneLabel)]]</div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return jnq=d},{mode:1});var LOT;var jQ=function(){var d=_.B.apply(this,arguments)||this;d.isOverlay=!1;d.hidden=!1;return d};
_.m(jQ,_.B);_.G=jQ.prototype;_.G.onPopupClosed=function(){this.toggleIconState(!1)};
_.G.computeIcon=function(){var d,H,K;return(H=_.M((d=this.data)==null?void 0:d.icon,Fuj))==null?void 0:(K=H.icon)==null?void 0:K.iconType};
_.G.computeIconBadgeShape=function(){var d;return{iconBadgeType:"cart",iconBadgeText:(d=this.iconBadgeEntity)==null?void 0:d.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.G.onClick=function(){var d;(d=this.data)!=null&&d.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.G.computeHidden=function(d){return!d};
_.G.toggleIconState=function(d){this.iconButton&&(this.iconButton.pressed=d)};
jQ.prototype.onPopupClosed=jQ.prototype.onPopupClosed;_.t([_.u(_.to),_.O("design:type",Object)],jQ.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],jQ.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],jQ.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],jQ.prototype,"isOverlay",void 0);
_.t([_.r({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.O("design:type",Object)],jQ.prototype,"hidden",void 0);_.t([_.r({selectorArgs:["data.iconBadgeEntityKey"],selector:function(d,H){return _.xL(d.entities,"iconBadgeEntity",H)}}),
_.O("design:type",Object)],jQ.prototype,"iconBadgeEntity",void 0);_.t([_.VP("yt-icon-button"),_.O("design:type",HTMLButtonElement)],jQ.prototype,"iconButton",void 0);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jQ.prototype,"onPopupClosed",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],jQ);
_.T(jQ,"ytd-icon-badge-topbar-button-renderer",function(){if(LOT!==void 0)return LOT;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-icon-badge-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibilityData.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(iconBadgeEntity, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-icon-badge-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return LOT=d},{mode:1});var Mt5;var vY=function(){var d=_.B.apply(this,arguments)||this;d.premiumOptions=[];d.darkerDarkTheme=_.h("web_darker_dark_theme");return d};
_.m(vY,_.B);vY.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.H3.Object.defineProperties(vY.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],vY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],vY.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Array)],vY.prototype,"premiumOptions",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],vY.prototype,"darkerDarkTheme",void 0);_.t([_.I("premiumOptions"),_.O("design:type",Object),_.O("design:paramtypes",[])],vY.prototype,"hasPremiumOptions",null);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],vY);
_.T(vY,"ytd-offline-promo-content",function(){if(Mt5!==void 0)return Mt5;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return Mt5=d},{mode:1});var m2S;var d6=function(){var d=_.B.apply(this,arguments)||this;d.premiumOptions=[];return d};
_.m(d6,_.B);d6.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var d;this.premiumOptions=TgZ((d=this.data)==null?void 0:d.formats)};
d6.prototype.onClickSubmit=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var d;(d=_.Kf())==null||d.pause()};
d6.prototype.attached=function(){this.JSC$20564_scroller&&(this.JSC$20564_scroller.dialogElement=this.hostElement.parentNode)};
_.H3.Object.defineProperties(d6.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
d6.prototype.dataChanged=d6.prototype.dataChanged;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],d6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],d6.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],d6.prototype,"data",void 0);
_.t([_.r({computed:"computeIcon_(data.headersIcon)",value:""}),_.O("design:type",String)],d6.prototype,"headersIcon",void 0);_.t([_.r(),_.O("design:type",Array)],d6.prototype,"premiumOptions",void 0);_.t([_.VP("#scroller"),_.O("design:type",Object)],d6.prototype,"JSC$20564_scroller",void 0);_.t([_.I("headersIcon"),_.O("design:type",Object),_.O("design:paramtypes",[])],d6.prototype,"showIcon",null);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],d6.prototype,"dataChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],d6);
_.T(d6,"ytd-offline-promo-renderer",function(){if(m2S!==void 0)return m2S;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-offline-promo-renderer">\n<div id="container" class="style-scope ytd-offline-promo-renderer">\n<yt-icon id="headers-icon" hidden="[[!showIcon]]" icon="[[headersIcon]]" class="style-scope ytd-offline-promo-renderer"></yt-icon>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-offline-promo-renderer"></yt-formatted-string>\n<ytd-offline-promo-content data="[[data]]" premium-options="[[premiumOptions]]" class="style-scope ytd-offline-promo-renderer">\n</ytd-offline-promo-content>\n<div class="buttons style-scope ytd-offline-promo-renderer">\n  <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onClickSubmit" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n</div>\n</div>\n</tp-yt-paper-dialog-scrollable>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return m2S=d},{mode:1});var wtG;var HN=function(){var d=_.B.apply(this,arguments)||this;d.playbackPauseInterval=NaN;d.isLoading=!1;d.hasError=!1;d.dialogClass="";d.youtubeLabel=_.Vz("LOGO_ALT_LABEL",{},"YouTube Home");d.logoName="yt-logos-ext:yt-logo-updated";d.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return d};
_.m(HN,_.B);_.G=HN.prototype;_.G.onDataChange=function(){var d;if(this.showEOMV1Text=!((d=this.data)==null||!d.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.G.attached=function(){this.pausePlayer()};
_.G.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.G.handleLangSelect=function(d){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[d.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.G.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.G.handleSaveConsent=function(d){var H=this;this.showLoadingSpinner();this.showLoadingSpinner();hQg(_.M(d,Zsq)).catch(function(K){_.Jf(new _.m1("Something went wrong when save consent "+(K.message?K.message:K)+"."));H.hideLoadingSpinner();H.showErrorMessage()})};
_.G.handleDisablePersonalization=function(d){var H=this;this.showLoadingSpinner();LG5(_.M(d,F9T)).then(function(){H.dialog.close();H.resumePlayer()}).catch(function(K){_.Jf(new _.m1("Something went wrong when disable personalization "+(K.message?K.message:K)+"."));
H.hideLoadingSpinner();H.showErrorMessage()})};
_.G.showLoadingSpinner=function(){var d=this;this.showSpinnerJobId=_.Xp.addLowPriorityJob(function(){d.isLoading=!0},500)};
_.G.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.Xp.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.G.showErrorMessage=function(){var d=this;this.hasError=!0;_.Xp.addLowPriorityJob(function(){d.hasError=!1},2E3)};
_.G.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.lT(function(){try{var d=_.Kf();d&&d.pause()}catch(H){}},100))};
_.G.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var d=_.Kf();d&&d.play()}catch(H){}};
_.H3.Object.defineProperties(HN.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.data)==null||!d.eomV1Text)return[];d=[];for(var H=["SHIELD","WARNING","BAR_CHART"],K=this.data.eomV1Text.essentialCookieMsg.items,c=0;c<H.length&&c<K.length;c++)d.push({icon:H[c],text:K[c]});return d}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var d;if((d=this.data)==null||!d.eomV1Text)return[];d=[];for(var H=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],K=this.data.eomV1Text.nonEssentialCookieMsg.items,c=0;c<H.length&&c<K.length;c++)d.push({icon:H[c],text:K[c]});return d}}});
HN.prototype.onDataChange=HN.prototype.onDataChange;_.t([_.r(),_.O("design:type",Object)],HN.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],HN.prototype,"showEOMV1Text",void 0);_.t([_.r(),_.O("design:type",Object)],HN.prototype,"isLoading",void 0);_.t([_.r(),_.O("design:type",Object)],HN.prototype,"hasError",void 0);_.t([_.r(),_.O("design:type",Number)],HN.prototype,"showSpinnerJobId",void 0);_.t([_.r(),_.O("design:type",Object)],HN.prototype,"dialogClass",void 0);
_.t([_.VP("#dialog"),_.O("design:type",Object)],HN.prototype,"dialog",void 0);_.t([_.VP("#cb-header"),_.O("design:type",HTMLElement)],HN.prototype,"header",void 0);_.t([_.VP("#lang-select"),_.O("design:type",HTMLElement)],HN.prototype,"langSelect",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],HN.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],HN.prototype,"ytComponentBehavior",void 0);
_.t([_.r(),_.O("design:type",String)],HN.prototype,"youtubeLabel",void 0);_.t([_.r(),_.O("design:type",Object)],HN.prototype,"logoName",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],HN.prototype,"onDataChange",null);_.t([_.I("data"),_.O("design:type",Array),_.O("design:paramtypes",[])],HN.prototype,"eomEssentialCookieMsgItems",null);
_.t([_.I("data"),_.O("design:type",Array),_.O("design:paramtypes",[])],HN.prototype,"eomNonEssentialCookieMsgItems",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],HN);
_.T(HN,"ytd-consent-bump-v2-lightbox",function(){if(wtG!==void 0)return wtG;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-lightbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog id="dialog" class$="[[dialogClass]] style-scope ytd-consent-bump-v2-lightbox" aria-labelledby="cb-header" modal="">\n  <div class="loading-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!isLoading]]">\n    <div class="style-scope ytd-consent-bump-v2-lightbox">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-consent-bump-v2-lightbox"></tp-yt-paper-spinner-lite>\n    </div>\n    <yt-formatted-string class="loading-message style-scope ytd-consent-bump-v2-lightbox" text="[[data.loadingMessage]]">\n    </yt-formatted-string>\n  </div>\n  <div class="error-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!hasError]]">\n    <div class="error-message style-scope ytd-consent-bump-v2-lightbox">\n      <yt-formatted-string text="[[data.errorMessage]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="topbar" class="style-scope ytd-consent-bump-v2-lightbox">\n    <div id="logoandaside" class="style-scope ytd-consent-bump-v2-lightbox">\n      <div id="icon-container" class="style-scope ytd-consent-bump-v2-lightbox">\n        <yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-consent-bump-v2-lightbox">\n        </yt-icon>\n      </div>\n      <yt-formatted-string class="logo-aside style-scope ytd-consent-bump-v2-lightbox" text="[[data.interstitialLogoAside]]"></yt-formatted-string>\n    </div>\n    <div class="top-buttons style-scope ytd-consent-bump-v2-lightbox">\n      <div class="lang-picker-container style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <ytd-button-renderer data="[[data.languagePickerButton.buttonRenderer]]" on-click="showLangPicker" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n        </div>\n        <div id="lang-select" class="style-scope ytd-consent-bump-v2-lightbox">\n          <select size="20" on-change="handleLangSelect" class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[data.languageList.dropdownRenderer.entries]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <template is="dom-if" if="[[item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option selected="" class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n              <template is="dom-if" if="[[!item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n            </template>\n          </select>\n        </div>\n      </div>\n\n      <div class="style-scope ytd-consent-bump-v2-lightbox">\n        <ytd-button-renderer class="signin style-scope ytd-consent-bump-v2-lightbox" data="[[data.signInButton.buttonRenderer]]"></ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="content" class="style-scope ytd-consent-bump-v2-lightbox">\n    <template is="dom-if" if="[[showEOMV1Text]]" restamp="" class="style-scope ytd-consent-bump-v2-lightbox">\n      <h2 tabindex="-1" id="cb-header" class="eom-title style-scope ytd-consent-bump-v2-lightbox">\n        <yt-formatted-string text="[[data.interstitialTitle]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n      </h2>\n      <div class="ica-claimer style-scope ytd-consent-bump-v2-lightbox" hidden="[[!data.icaClaimer]]">\n        <yt-formatted-string text="[[data.icaClaimer]]" class="style-scope ytd-consent-bump-v2-lightbox"> </yt-formatted-string>\n      </div>\n      <div class="body style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.essentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox">\n            </yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.nonEssentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomNonEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.ifReject]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.personalization]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.moreOptions]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="eom-buttons style-scope ytd-consent-bump-v2-lightbox">\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.disableP13nButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n            <ytd-button-renderer data="[[data.agreeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.customizeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n        </div>\n        <div class="termlinks style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" sec="" text="[[data.privacyLink]]"></yt-formatted-string>\n          \n          \n          <span class="term_separator style-scope ytd-consent-bump-v2-lightbox" aria-hidden="true">\u2022</span>\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" text="[[data.termsLink]]"></yt-formatted-string>\n        </div>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return wtG=d},{mode:1});var PoO;var $c=function(){return _.B.apply(this,arguments)||this};
_.m($c,_.B);$c.prototype.ready=function(){if(!_.hX()||Aa0)var d=!0;else Aa0=!0,d=!1;d||(d=document.querySelector("ytd-app"),d||(d=document.body),this.internalLightBox=_.Gn(d).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.t([_.r(),_.O("design:type",Object)],$c.prototype,"data",void 0);_.t([_.VP("#lightbox"),_.O("design:type",Object)],$c.prototype,"lightBox",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],$c);
_.T($c,"ytd-consent-bump-v2-renderer",function(){if(PoO!==void 0)return PoO;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-consent-bump-v2-lightbox id="lightbox" data="[[data]]" class="style-scope ytd-consent-bump-v2-renderer"></ytd-consent-bump-v2-lightbox>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return PoO=d},{mode:1});var u1q;var ImS;var r6U;var Kw=function(){return _.B.apply(this,arguments)||this};
_.m(Kw,_.B);_.G=Kw.prototype;_.G.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&cat(this.toastManager,this.toastType)};
_.G.open=function(d){this.toast&&(this.ephemeralAction&&_.Kj().resolve(_.WX).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=d!=null?d:0,this.toastManager.enqueue(this.toast,d)):this.toast.open())};
_.G.close=function(d){var H;(H=this.toast)==null||H.close();this.toastManager&&d===1&&cat(this.toastManager,d)};
_.G.refit=function(){var d;(d=this.toast)==null||d.refit()};
_.G.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var d;(d=this.toast)==null||d.close()}};
_.G.setVerticalOffset=function(d){this.toast&&(this.toast.verticalOffset=d,this.toast.fit())};
_.G.computeButtonClass_=function(d){return d?"toast-button":""};
_.G.computeText_=function(d){return _.jG(d)};
_.G.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AT("toast-opened-changed",this.toastOpened))};
_.G.updateToastOpenedFromBinding=function(d){this.toastOpened=d.detail.value};
_.H3.Object.defineProperties(Kw.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var d,H,K=(d=this.data)==null?void 0:(H=d.actionButton)==null?void 0:H.buttonRenderer;return(K==null?void 0:K.command)||(K==null?void 0:K.serviceEndpoint)||(K==null?void 0:K.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var d=[],H;((H=this.data)==null?0:H.responseText)&&d.push(_.jG(this.data.responseText));var K;((K=this.data)==null?0:K.subText)&&d.push(_.jG(this.data.subText));var c,p;if((c=this.data)==null?0:(p=c.actionButton)==null?0:p.buttonRenderer){var g,a;d.push(((g=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(a=g.accessibilityData)==null?void 0:a.label)||_.jG(this.data.actionButton.buttonRenderer.text))}return d.filter(function(e){return e}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var d,H;return(H=(d=this.toast)==null?void 0:d.opened)!=null?H:!1}}});
Kw.prototype.toastOpenedChangedForBinding=Kw.prototype.toastOpenedChangedForBinding;Kw.prototype.toastOpenedChanged=Kw.prototype.toastOpenedChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Kw.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],Kw.prototype,"ytEventForwardingBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Kw.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Kw.prototype,"duration",void 0);
_.t([_.r(),_.O("design:type",Number)],Kw.prototype,"toastType",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],Kw.prototype,"useCloseButton",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],Kw.prototype,"closeToastOnActionButtonClick",void 0);_.t([_.r({value:function(){return _.Vz("SBOX_INAPPROPRIATE_CANCEL")}}),
_.O("design:type",String)],Kw.prototype,"closeButtonAriaLabel",void 0);_.t([_.r(),_.O("design:type",Boolean)],Kw.prototype,"toastOpened",void 0);_.t([_.r(),_.O("design:type",Boolean)],Kw.prototype,"hasOpened",void 0);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Kw.prototype,"command",null);_.t([_.I("labelText","command","duration"),_.O("design:type",Object),_.O("design:paramtypes",[])],Kw.prototype,"ephemeralAction",null);
_.t([_.I("ephemeralAction"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Kw.prototype,"hasEphemeralAction",null);_.t([_.VP("#toast"),_.O("design:type",Object)],Kw.prototype,"toast",void 0);_.t([_.r({value:function(){return{style:"call-to-action-inverse"}}}),
_.O("design:type",Object)],Kw.prototype,"buttonOverrides",void 0);_.t([_.r({value:{style:"mono-inverse"}}),_.O("design:type",Object)],Kw.prototype,"closeButtonOverrides",void 0);_.t([_.r({value:function(){return _.Kj().resolve(_.$p(_.wC))}}),
_.O("design:type",Object)],Kw.prototype,"toastManager",void 0);_.t([_.I("data.responseText","data.subText","data.actionButton"),_.O("design:type",Object),_.O("design:paramtypes",[])],Kw.prototype,"labelText",null);_.t([_.CK("toastOpened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kw.prototype,"toastOpenedChanged",null);
_.t([_.CK("toastOpened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kw.prototype,"toastOpenedChangedForBinding",null);_.t([_.ZV({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Kw);
_.T(Kw,"yt-notification-action-renderer",function(){if(r6U===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-notification-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_notification_action_renderer.yt.notification.action.renderer.css.js--\x3e\n<tp-yt-paper-toast id="toast" class$="[[computeButtonClass_(data.actionButton.buttonRenderer)]] style-scope yt-notification-action-renderer" allow-click-through="" announce-label-updates="" aria-label="toast" duration="[[duration]]" label="[[labelText]]" no-iron-announce="[[hasEphemeralAction]]" opened="[[toastOpened]]" role="region" on-opened-changed="updateToastOpenedFromBinding">\n  <div id="text-container" class="style-scope yt-notification-action-renderer">\n    <yt-formatted-string id="text" respect-html-dir="" split-lines="" text="[[data.responseText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="sub-text" hidden="[[!data.subText]]" respect-html-dir="" split-lines="" text="[[data.subText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.actionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" on-tap="tapClose" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="close-action-button" data="[[data.closeActionButton.buttonRenderer]]" overrides="[[closeButtonOverrides]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-icon-button id="close-button" hidden="[[!useCloseButton]]" label="[[closeButtonAriaLabel]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-notification-action-renderer"></yt-icon>\n    </yt-icon-button>\n  </template>\n  <slot class="style-scope yt-notification-action-renderer"></slot>\n</tp-yt-paper-toast>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;ImS===void 0&&(ImS=document.createElement("template"));var c=ImS;K.call(H,c.content.cloneNode(!0),d.content.firstChild);r6U=d}d=r6U;return d},{mode:2});var cN=function(){var d=_.B.apply(this,arguments)||this;d.duration=4E3;d.downloadingCount=0;d.downloadedCount=0;d.downloadingOnlySmartDownloads=!1;d.sessionTotalDownloads=0;d.sessionDownloaded=0;d.previousSessionsDownloaded=0;d.totalDownloadPercentage=0;d.currentDownloadProgress=0;d.currentDownloadPercentage=0;d.isLeaderTab=!0;d.isFullScreen=!1;d.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};d.boundBeforeUnload=function(H){d.isLeaderTab&&d.downloadingCount>0&&(H.preventDefault(),
H.returnValue=!0)};
return d};
_.m(cN,_.B);_.G=cN.prototype;
_.G.open=function(){this.updateDownloadState();if(this.data){var d=this.sessionDownloaded+1,H=this.sessionTotalDownloads>1?_.Vz("VIDEOS_DOWNLOADING_RATIO",{downloaded:d.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+d+"/"+this.sessionTotalDownloads):_.Vz("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(H=this.sessionTotalDownloads>1?_.Vz("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:d.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
d+"/"+this.sessionTotalDownloads):_.Vz("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));d=this.isLeaderTab?_.Vz("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.jG(this.data.responseText)!==H||_.jG(this.data.subText)!==d)this.set("data.responseText",_.AF(H)),this.set("data.subText",_.AF(d)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.G.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.G.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.G.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.G.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var d=this.downloadedCount-this.previousSessionsDownloaded;d<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-d);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.G.handleFullscreenChange=function(d){(this.isFullScreen=d)||this.updatePopup()};
cN.prototype.updateCurrentDownloadProgress=cN.prototype.updateCurrentDownloadProgress;cN.prototype.updatePopup=cN.prototype.updatePopup;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],cN.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],cN.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],cN.prototype,"ytEventForwardingBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],cN.prototype,"actionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],cN.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],cN.prototype,"duration",void 0);_.t([_.r({selector:function(d){return _.HUC(d.entities).length}}),
_.O("design:type",Object)],cN.prototype,"downloadingCount",void 0);_.t([_.r({selector:BrO}),_.O("design:type",Object)],cN.prototype,"downloadedCount",void 0);_.t([_.r({selector:function(d){var H=_.HUC(d.entities);return WGZ(d.entities,H)}}),
_.O("design:type",Object)],cN.prototype,"downloadingOnlySmartDownloads",void 0);_.t([_.r(),_.O("design:type",Object)],cN.prototype,"sessionTotalDownloads",void 0);_.t([_.r(),_.O("design:type",Object)],cN.prototype,"sessionDownloaded",void 0);_.t([_.r(),_.O("design:type",Object)],cN.prototype,"previousSessionsDownloaded",void 0);_.t([_.r(),_.O("design:type",Object)],cN.prototype,"totalDownloadPercentage",void 0);
_.t([_.r({selector:function(d){var H;d=(H=_.HUC(d.entities))!=null?H:[];return d.length>0?_.SVD(d.slice(-1)):0}}),
_.O("design:type",Object)],cN.prototype,"currentDownloadProgress",void 0);_.t([_.r(),_.O("design:type",Object)],cN.prototype,"currentDownloadPercentage",void 0);_.t([_.r({selector:_.gCC}),_.O("design:type",Object)],cN.prototype,"isLeaderTab",void 0);_.t([_.VP("yt-notification-action-renderer"),_.O("design:type",Object)],cN.prototype,"notificationActionRenderer",void 0);
_.t([_.Mr("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cN.prototype,"updatePopup",null);_.t([_.Mr("currentDownloadProgress"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cN.prototype,"updateCurrentDownloadProgress",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],cN);
_.T(cN,"ytd-video-download-toast-renderer",function(){if(u1q!==void 0)return u1q;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-download-toast-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-notification-action-renderer id="notification" class="is-download style-scope ytd-video-download-toast-renderer" data="[[data]]" duration="[[duration]]" use-close-button=""><tp-yt-paper-progress class="transiting style-scope ytd-video-download-toast-renderer" value="[[currentDownloadPercentage]]"></tp-yt-paper-progress></yt-notification-action-renderer>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return u1q=d},{mode:1});var WOj;var BD1;var pw=function(){return _.B.apply(this,arguments)||this};
_.m(pw,_.B);pw.prototype.computeIsRedLogo=function(d,H){!d&&H&&(d=H);return d==="YOUTUBE_RED_LOGO"||d==="YOUTUBE_PREMIUM_LOGO"};
pw.prototype.computeLogoName=function(d){d=this.componentBehavior.computeIcon_(d);return d===""?"yt-logos-ext:yt-logo-updated":d};
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],pw.prototype,"componentBehavior",void 0);_.t([_.r({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.O("design:type",Boolean)],pw.prototype,"isRedLogo",void 0);_.t([_.r({computed:"computeLogoName(data)"}),_.O("design:type",String)],pw.prototype,"logoName",void 0);_.t([_.r({value:{}}),_.O("design:type",Object)],pw.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Object)],pw.prototype,"logoType",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-logo"})],pw);
_.T(pw,"ytd-logo",function(){if(BD1!==void 0)return BD1;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-logo--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-logo">\n</yt-icon>');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return BD1=d},{mode:_.qk("kevlar_poly_si_batch_j074")?1:2});var g6=function(){var d=_.B.apply(this,arguments)||this;d.animationRef={};return d};
_.m(g6,_.B);_.G=g6.prototype;_.G.attached=function(){document.addEventListener("yt-navigate-finish",_.xf(this,this.logYoodle))};
_.G.detached=function(){document.removeEventListener("yt-navigate-finish",_.xf(this,this.logYoodle))};
_.G.logYoodle=function(){var d,H;if((d=this.data)==null?0:(H=d.loggingDirectives)==null?0:H.trackingParams)this.ytRendererBehavior.markDirty(),_.hR().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.G.computeHideImg=function(d,H){return!!d||!!H};
_.G.computeHideYtdLogo=function(d,H){return!d||!!H};
_.G.computeHideLottie=function(d){return!d};
_.G.computeIsRedLogo=function(d){return d==="YOUTUBE_RED_LOGO"||d==="YOUTUBE_PREMIUM_LOGO"};
_.G.renderLogoEntity=function(){var d=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),H=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),K=this.getLogoTitleText(this.data),c=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==d&&(this.url=d);this.animatedUrl!==H&&(this.animatedUrl=H);this.logoTitleText!==K&&(this.logoTitleText=K);this.lottieUrl!==c&&(this.lottieUrl=c,this.lottiePlayerProps=this.computeLottiePlayerProps(c))};
_.G.getSanitizedThumbnail=function(d){return d&&d.thumbnails?_.Gal(d.thumbnails,122)||"":""};
_.G.getThumbnailUrl=function(d,H){if(!H)return"";var K,c;d=d?(K=H.darkThemeLogo)==null?void 0:K.thumbnail:(c=H.lightThemeLogo)==null?void 0:c.thumbnail;return this.getSanitizedThumbnail(d)};
_.G.getAnimatedThumbnailUrl=function(d,H){return H?this.getSanitizedThumbnail(d?H.darkThemeAnimatedLogo:H.lightThemeAnimatedLogo):""};
_.G.getLogoTitleText=function(d){if(d)return _.jG(d.tooltipText)};
_.G.computeLogoIcon=function(d,H){if(H){var K,c;return d?(K=H.darkThemeLogo)==null?void 0:K.icon:(c=H.lightThemeLogo)==null?void 0:c.icon}};
_.G.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.G.getLottieUrl=function(d,H){var K,c,p,g;return d?H==null?void 0:(K=H.darkThemeLogo)==null?void 0:(c=K.lottieAnimation)==null?void 0:c.url:H==null?void 0:(p=H.lightThemeLogo)==null?void 0:(g=p.lottieAnimation)==null?void 0:g.url};
_.G.computeLottiePlayerProps=function(d){if(d){var H;if((H=this.animationRef)==null?0:H.lottieEl){var K;(K=this.animationRef)==null||K.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:d,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.G.onLottieError=function(){this.data&&this.lottieUrl&&_.GT(this.hostElement,"yoodle-error")};
_.G.onImgError=function(){this.data&&!this.lottieUrl&&_.GT(this.hostElement,"yoodle-error")};
g6.prototype.playAnimation=g6.prototype.playAnimation;g6.prototype.renderLogoEntity=g6.prototype.renderLogoEntity;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],g6.prototype,"data",void 0);_.t([_.r({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.O("design:type",Boolean)],g6.prototype,"hideImg",void 0);
_.t([_.r({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.O("design:type",Boolean)],g6.prototype,"hideYtdLogo",void 0);_.t([_.r({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.O("design:type",Boolean)],g6.prototype,"hideLottie",void 0);_.t([_.r({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.O("design:type",Boolean)],g6.prototype,"isRedLogo",void 0);
_.t([_.r(),_.O("design:type",Boolean)],g6.prototype,"useDarkThemeYoodle",void 0);_.t([_.r(),_.O("design:type",String)],g6.prototype,"url",void 0);_.t([_.r(),_.O("design:type",String)],g6.prototype,"animatedUrl",void 0);_.t([_.r(),_.O("design:type",String)],g6.prototype,"logoTitleText",void 0);_.t([_.r({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.O("design:type",Object)],g6.prototype,"logoIcon",void 0);_.t([_.r(),_.O("design:type",Object)],g6.prototype,"logoType",void 0);
_.t([_.r(),_.O("design:type",String)],g6.prototype,"lottieUrl",void 0);_.t([_.r(),_.O("design:type",Object)],g6.prototype,"lottiePlayerProps",void 0);_.t([_.r(),_.O("design:type",Object)],g6.prototype,"animationRef",void 0);_.t([_.CK("data"),_.CK("useDarkThemeYoodle"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],g6.prototype,"renderLogoEntity",null);
_.t([_.nK("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],g6.prototype,"playAnimation",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],g6);
_.T(g6,"ytd-yoodle-renderer",function(){if(WOj!==void 0)return WOj;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return WOj=d},{mode:_.qk("kevlar_poly_si_batch_j074")?1:2});var zIS;var XtT;var ii=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return d};
_.m(ii,_.B);_.G=ii.prototype;_.G.onYoodleError=function(){_.h("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.G.computeLogoName=function(d){d=this.componentBehavior.computeIcon_(d);return d===""?"yt-logos-ext:yt-logo-updated":d};
_.G.computeTitle=function(d,H,K){return K&&(H==null?0:H.tooltipText)?_.jG(H.tooltipText):_.jG(d)};
_.G.computeAriaLabel=function(d,H,K){return K&&(H==null?0:H.tooltipText)?_.jG(d):""};
_.G.computeShowYoodle=function(d,H,K){return!d||!H&&!!K&&!_.rs.isEmpty(K)};
_.G.onNavigateHomeAction=function(){if(_.h("kevlar_miniplayer_navigate_home_from_app_killswitch")){var d;(d=_.Gn(this.hostElement).querySelector(".yt-simple-endpoint"))==null||d.click()}};
_.G.computeLogoHref=function(d,H,K){var c;(K==null?0:K.onTapCommand)?c=this.componentBehavior.computeHref_(K.onTapCommand):d&&(c=this.componentBehavior.computeHref_(d));return c?c:H};
_.G.computeCommand=function(d,H){return(H==null?void 0:H.onTapCommand)||d};
_.G.getEndpointForm=function(){if(_.h("kevlar_topbar_disable_cache_only_home")){var d=_.Kj().resolve(_.t$),H=YaT(d.getState())||"";d=_.Iy5(d.getState())||"";return{disableCache:H==="ytd-browse"&&d==="home"}}return{disableCache:!0}};
ii.prototype.onYoodleError=ii.prototype.onYoodleError;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],ii.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],ii.prototype,"componentBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],ii.prototype,"ytdReduxBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],ii.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],ii.prototype,"countryCode",void 0);_.t([_.r({selectorArgs:["data.overrideEntityKey"],selector:function(d,H){return _.xL(d.entities,"logoEntity",H)}}),
_.O("design:type",Object)],ii.prototype,"logoEntity",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.O("design:type",Boolean)],ii.prototype,"showYoodle",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],ii.prototype,"yoodleError",void 0);_.t([_.r({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.O("design:type",String)],ii.prototype,"titleText",void 0);
_.t([_.r({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.O("design:type",String)],ii.prototype,"ariaLabelText",void 0);_.t([_.r({value:"/"}),_.O("design:type",String)],ii.prototype,"defaultEndpointUrl",void 0);_.t([_.r({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.O("design:type",String)],ii.prototype,"endpointUrl",void 0);
_.t([_.r({computed:"computeCommand(data.endpoint, logoEntity)"}),_.O("design:type",String)],ii.prototype,"command",void 0);_.t([_.r(),_.O("design:type",Object)],ii.prototype,"logoType",void 0);_.t([_.r({}),_.O("design:type",Boolean)],ii.prototype,"useDarkThemeYoodle",void 0);_.t([_.nK("yoodle-error"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ii.prototype,"onYoodleError",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],ii);
_.T(ii,"ytd-topbar-logo-renderer",function(){if(XtT!==void 0)return XtT;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-logo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a aria-label="[[ariaLabelText]]" class="yt-simple-endpoint style-scope ytd-topbar-logo-renderer" href$="[[endpointUrl]]" id="logo" data="[[command]]" title="[[titleText]]" get-form="[[getEndpointForm]]">\n  <div hidden="[[showYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n    <ytd-logo data="[[data.iconImage]]" logo-type="[[logoType]]" class="style-scope ytd-topbar-logo-renderer">\n    </ytd-logo>\n  </div>\n  <ytd-yoodle-renderer data="[[logoEntity]]" hidden="[[!showYoodle]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[useDarkThemeYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n  </ytd-yoodle-renderer>\n</a>\n<span hidden="[[showYoodle]]" id="country-code" class="style-scope ytd-topbar-logo-renderer">\n  [[countryCode]]\n</span>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return XtT=d},{mode:_.qk("kevlar_poly_si_batch_j027")?1:2});var J6q=0;var stg=_.oc.SEARCH_APPEND_LABEL,FOt=_.oc.SUGGESTION_NEW_VIDEOS_TEXT,ZIv=_.oc.SUGGESTION_THUMBNAIL_LABEL,TD5=_.oc.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,QtG=_.H1(function(d){function H(IC){var Lt,qj;return _.l(function(nt){if(nt.nextAddress==1)return Lt=new Request(IC),_.e2(nt,2),nt.yield(fetch(Lt,{credentials:"include"}),4);if(nt.nextAddress!=2)return ug(!0),_.Em(nt,0);qj=_.RV(nt);_.Jf(qj);_.VE(nt)})}
var K=d.isHighlighted;var c=d.suggestion;var p=d.onClickCallback;var g=d.onHoverUpdateCallback;var a=d.labels;var e=d.queryBuilderFunction;var k=d.onRemoveCallback;var C=d.suggestionIndex;var R=d.generateUniqueId;var V=d.highlightedId;var U=d.useScrollMargin;var L=d.isKeyboardMode;var w=null,W=null,J=_.Af("div"),F=_.Af("span");d=_.q(_.GO(!1,void 0,"CgAMgc"));var Y=d.next().value,A=d.next().value,E=_.jV("a",function(IC){IC&&_.wE(237477,IC,W,function(Lt){W=Lt})}),N=_.jV("button",function(IC){IC&&_.wE(237477,
IC,W,function(Lt){W=Lt})}),y=_.n7(function(IC){if((IC==null?void 0:IC.button)===2)return IC.preventDefault(),!1;
var Lt=_.Fj();Lt&&w&&_.AO(Lt,w,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var qj;p(IC,c().text,c().index,c().entityMid,IC==null?void 0:(qj=IC.detail)==null?void 0:qj.wasSelectedByKeyboard);return!1}),v=function(){return c().type===35},el=function(){return _.h("desktop_enable_single_suggestion_highlight")},l1=function(){return _.iT("desktop_suggestions_panel_row_height")||0},V4=function(){var IC;
return _.h("desktop_enable_new_video_metadata")&&((IC=c())==null?void 0:IC.hasNewVideo)===!0},Mf=function(){return _.h("desktop_enable_visual_suggest")},LF=function(){return _.h("desktop_enable_entity_suggest")&&lmT(c())},YY=function(){return c().entitySubtitle},FM=function(){return el()?(K==null?void 0:K())||dA()&&!(L==null?0:L()):(K==null?void 0:K())||dA()},gA=function(){var IC=_.Fm("SBOX_SETTINGS");
return v()&&!(IC==null?0:IC.HIDE_REMOVE_LINK)},JN=function(){return eIt(c(),{useEntityName:LF()})},eS,vF=!((eS=_.Kj().resolve(_.$p(_.fM)))==null||!eS()),CX=function(){return v()?_.h("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},kd=function(){return a==null?void 0:a().SUGGESTION_DISMISS_LABEL},BB=function(){return a==null?void 0:a().SUGGESTION_DISMISSED_LABEL};
d=_.q(_.GO(!1,void 0,"RcUcKd"));eS=d.next().value;var ug=d.next().value;d=_.q(_.GO(!1,void 0,"yGR7je"));var fX=d.next().value,pF=d.next().value,dA=fX,U3=_.n7(function(){e(F.value.innerText);return!1}),lg=_.n7(function(IC){IC.preventDefault();
return!1}),hN=_.n7(function(IC){var Lt=c().text,qj=_.Fm("SBOX_SETTINGS"),nt="https://"+(qj.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
nt+="&delq="+encodeURIComponent(Lt);(Lt=qj==null?void 0:qj.PSUGGEST_TOKEN)&&(nt+="&tok="+Lt);(qj=qj==null?void 0:qj.SESSION_INDEX)&&(nt+="&authuser="+qj);H(nt);IC.preventDefault();(IC=_.Fj())&&W&&_.AO(IC,W,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");k(C==null?void 0:C());return!1}),Hv=_.n7(function(){if(el()&&(L==null?0:L()))return!1;
pF(!0);g(!0);return!1}),$s=_.n7(function(){pF(!1);
g(!1);return!1}),dq=_.n7(function(){A(!0);
return!1}),oC=_.n7(function(){A(!1);
return!1}),NU=_.n7(function(IC){IC.preventDefault();
var Lt;(IC=(Lt=c().entityThumbnailAttributionUrl)!=null?Lt:"")&&_.WLh(IC);return!1});
d=_.q(_.GO("",void 0,"k9uVge"));var RZ=d.next().value,uM=d.next().value;_.Is(function(){gA()&&uM(R==null?void 0:R(C==null?void 0:C()));J.value&&_.wE(12453,J.value,w,function(IC){w=IC})});
return _.x(_.n,{cond:eS,then:function(){var IC={};return _.x("div",{class:_.xM("ytSuggestionComponentRemovedText",(IC.ytSuggestionComponentLargerRemovedText=function(){return Mf()},IC)),
style:function(){return l1()>0?"height: "+l1()+"px;":""},
role:"button"},BB)},
else:function(){var IC={},Lt={};return _.x("div",{class:_.xM("ytSuggestionComponentSuggestion",(IC.ytSuggestionComponentSuggestionHover=function(){return!el()},IC.ytSuggestionComponentHighlighted=FM,IC.ytSuggestionComponentPersonalizedSuggestion=v,IC.ytSuggestionComponentMweb=!1,IC.ytSuggestionComponentLargerSuggestion=function(){return V4()||Mf()},IC.ytSuggestionComponentThumbnailSuggestion=function(){return Mf()},IC.ytSuggestionComponentRoundedSuggestion=function(){return _.h("desktop_enable_scrollable_suggestions_panel")&&
_.h("desktop_enable_suggestions_panel_padding")},IC.ytSuggestionComponentThumbnailPadding=function(){return Mf()&&!v()},IC)),
style:function(){return l1()>0?"height: "+l1()+"px;":""},
role:"presentation","on:mousedown":y,"on:mouseover":Hv,"on:mouseout":$s,el:J},_.x("div",{class:_.xM("ytSuggestionComponentText",(Lt.ytSuggestionComponentScrollMargin=U,Lt)),"aria-label":function(){return V4()?c().text+" "+FOt:c().text},
id:function(){return R==null?void 0:R(C==null?void 0:C())},
"on:mousedown":y,role:"option"},_.x(_.n,{cond:function(){return c().type!==33},
then:function(){return _.x(_.hu,{icon:CX,className:"ytSuggestionComponentIcon"})}}),_.x("div",{class:"ytSuggestionComponentLeftContainer"},_.x("span",{el:F,
role:"button",tabindex:0},_.x(_.L6,{each:JN},function(qj){return qj.bold?_.x("span",{class:"ytSuggestionComponentBold"},qj.text):_.x("span",null,qj.text)})),_.x(_.n,{cond:function(){return LF()&&!!c().entitySubtitle||V4()},
then:function(){return _.x("div",{class:"ytSuggestionComponentMetadataContainer"},_.x(_.n,{cond:function(){return LF()&&!!c().entitySubtitle},
then:function(){return _.x("div",{class:"ytSuggestionComponentEntitySubtitle"},YY)}}),_.x(_.n,{cond:function(){return V4()},
then:function(){return _.x("div",{class:"ytSuggestionComponentNewVideoContainer"},_.x("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.x("div",{class:"ytSuggestionComponentNewVideoText"},FOt))}}))}}))),_.x("div",{class:"ytSuggestionComponentRightContainer"},_.x(_.n,{cond:function(){return Mf()&&c().visualSuggestUrl!==void 0},
then:function(){var qj={};return _.x("div",{class:"ytSuggestionComponentThumbnailContainer"},_.x("img",{"aria-label":ZIv,class:_.xM("ytSuggestionComponentVisualSuggestThumbnail",(qj.ytSuggestionComponentCircularFrame=function(){return LF()&&c().subtypes.includes(790)},qj.ytSuggestionComponentEntitySuggestThumbnail=function(){return LF()},qj)),
src:function(){return c().visualSuggestUrl}}),_.x(_.n,{cond:function(){return LF()&&!!c().entityThumbnailAttributionUrl},
then:function(){var nt={};return _.x("span",{title:TD5,role:"tooltip"},_.x("div",{"on:mouseover":dq,"on:mouseout":oC,"on:mousedown":NU,class:_.xM("ytSuggestionComponentThumbnailOverlay",(nt.ytSuggestionComponentThumbnailOverlayHidden=function(){return!Y()},nt))},_.x(_.hu,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.x(_.w9,null,_.x(_.MM,{when:function(){return Mf()&&gA()}},function(){var qj={};
return _.x("button",{class:_.xM("ytSuggestionComponentRemoveLinkClearButton",(qj.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return RZ()&&RZ()===(V==null?void 0:V())},qj.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!FM()},qj)),
el:N,"on:mousedown":hN,"aria-label":kd,id:function(){return RZ()}},_.x(_.hu,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.x(_.MM,{when:function(){return!(Mf()&&c().visualSuggestUrl!==void 0)&&gA()}},function(){var qj={};
return _.x("a",{class:_.xM("ytSuggestionComponentRemoveLink",(qj.ytSuggestionComponentRemoveLinkDark=vF,qj.ytSuggestionComponentRemoveLinkSelected=function(){return RZ()&&RZ()===(V==null?void 0:V())},qj)),
el:E,"on:mousedown":hN,"aria-label":kd,tabindex:0,role:"button",id:function(){return RZ()}},kd)}),_.x(_.MM,{when:function(){return!1}},function(){return _.x("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":U3,"on:mousedown":lg,role:"button","aria-label":stg},_.x(_.hu,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"dh");var ttU=_.y$(["//www.google.com/textinputassistant/","/","_tia.js"]),Y$Z=_.H1(function(){return _.x("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.x("button",{class:"ytdTextInputAssistantButton","on:click":_.n7(function(){CoZ().inputMethodsTracker.add(3);var d,H=(d=_.Fm("SBOX_SETTINGS"))==null?void 0:d.REQUEST_LANGUAGE;if(H)return _.SM(_.pB(ttU,14,H)),!1})},_.x("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"eh");var OI1=function(){this.cache=new Map},S$O=function(d){for(var H=_.q(d.cache.entries()),K=H.next();!K.done;K=H.next()){var c=_.q(K.value);
K=c.next().value;c=c.next().value;c.suggestions.some(function(p){return p.type===35})&&d.cache.delete(K)}};var EwG=_.oc.SEARCH,y6v=_.oc.SEARCH_CLEAR_LABEL,bIT=new _.Av("FAKE_SUGGEST_RESPONSE");_.iV(_.H1(function(d){function H(){dq||(dq=setTimeout(function(){NU()},1E3))}
function K(MU,LX,XO){if(MU.trim()){$s=MU;_.sS("REFINEMENTS_TUPLE",void 0);hN=!0;var kO;LX=U2S(fX,LX);var nX=(kO=d.searchEndpoint)==null?void 0:kO.call(d);_.OM1(MU,LX,nX,CX.value.value,XO);NU();CX.value.value=MU;CX.value.blur();fX.reset()}}
function c(MU){return _.l(function(LX){return LX.return(new Promise(function(XO){var kO=new XMLHttpRequest;kO.open("GET",pt0(MU),!0);kO.withCredentials=!0;var nX=_.Fm("SBOX_SETTINGS");(nX==null?0:nX.SEND_VISITOR_DATA)&&kO.setRequestHeader("X-Goog-Visitor-Id",nX==null?void 0:nX.VISITOR_DATA);kO.onload=function(){XO(kO.responseText)};
kO.onerror=function(){_.Jf(Error("sl"));XO(null)};
setTimeout(function(){kO.abort()},1E4);
kO.send(null)}))})}
function p(MU){var LX,XO,kO,nX;return _.l(function(hA){switch(hA.nextAddress){case 1:return LX={credentials:"include",headers:c6v()},window.AbortController&&(XO=new AbortController,setTimeout(function(){XO.abort("ytsbox-suggest-timeout")},1E4),LX.signal=XO.signal),_.e2(hA,2),hA.yield(fetch(pt0(MU),LX),4);
case 4:kO=hA.yieldResult.text();_.Em(hA,3);break;case 2:return nX=_.RV(hA),nX!=="ytsbox-abort-last"&&nX!=="ytsbox-suggest-timeout"&&_.Jf(nX),hA.return(null);case 3:return hA.return(kO)}})}
function g(MU){var LX,XO,kO;return _.l(function(nX){switch(nX.nextAddress){case 1:if(LX=_.Kj().resolve(_.$p(bIT)))return nX.return(LX);XO=Date.now();H();return _.h("yt_searchbox_xhr")?nX.yield(c(MU),5):nX.yield(p(MU),4);case 4:kO=nX.yieldResult;nX.jumpTo(3);break;case 5:kO=nX.yieldResult;case 3:if(kO){dq&&(clearTimeout(dq),dq=null);var hA=fX,VM=XO,Zw=MU.query.length===0;VM=Date.now()-VM;Zw?hA.zeroPrefixRoundTripTime=VM:(hA.JSC$20544_totalRoundTripTime+=VM,hA.maxRoundTripTime=Math.max(hA.maxRoundTripTime,
VM),Zw=Math.floor(VM/100),Zw>=hIg.length?++hA.roundTripTimeHistogram[9]:++hA.roundTripTimeHistogram[hIg[Zw]])}return nX.return(kO)}})}
function a(MU){var LX,XO,kO;return _.l(function(nX){if(nX.nextAddress==1)return(LX=ug.cache.get(KOv(MU)))?nX.return(LX):nX.yield(g(MU),2);XO=nX.yieldResult;if(XO===null)return nX.return(null);kO=new kcO(XO);MU.query.length===0&&kO.suggestions.length===0||ug.cache.set(KOv(MU),kO);return nX.return(kO)})}
function e(MU){var LX,XO;return _.l(function(kO){if(kO.nextAddress==1){Hv=!1;var nX=$s;nX=_.W0D()==="search"?(_.ZB(location.href,"search_query")||_.ZB(location.href,"q"))===nX:!1;LX=new $2Z(MU,nX?$s:null);return kO.yield(a(LX),2)}XO=kO.yieldResult;if(XO===null)return kO.return();LX.query.length===0&&(fX.zeroPrefixSuggestionCount=XO.suggestions.length);if(LX.id<=oC)return fX.outOfSyncResponseCount++,kO.return();if(document.activeElement!==CX.value)return kO.return();oC=LX.id;var hA=fX,VM=XO.rawResponse[2]||
{};hA.experimentTriggeredBeforeFinal||(hA.experimentTriggeredBeforeFinal=hA.experimentTriggeredFinal);hA.experimentTriggeredFinal=!!VM.e;fX.updateSuggestions(XO.suggestions);J(-1);gA([]);XO.suggestions!==L()&&Xq(XO.suggestions.length);w(XO.suggestions);el(XO.suggestions.length>0&&XO.suggestions[0].type===33);BB&&(BB.hidden=XO.suggestions.length===0,v()?(BB.style.minWidth="",hA=BB.style,VM=(nX=L()[0])==null?void 0:nX.ignoredPrefix,hA.marginLeft=(VM?Math.min(VM.length*6,kd.value.offsetWidth):0).toString()+
"px"):(BB.style.minWidth=kd.value.offsetWidth+"px",BB.style.marginLeft="0"),ds());_.VE(kO)})}
function k(){if(!hN)return!1;var MU=_.Fm("REFINEMENTS_TUPLE");return MU?(MU=MU[1].map(function(LX,XO){return new amq([LX,0,[71]],CX.value.value,XO)}),L()!==MU&&Xq(MU.length),gA([]),w(MU),fX.updateSuggestions(MU),hN=!1,BB.hidden=MU.length===0,Hv=MU.length>0,!0):!1}
function C(){var MU=CX.value.value;(typeof MU==="string"||MU instanceof String)&&MU!==""?E(!0):E(!1)}
function R(){if(_.W0D()==="search"){var MU=window.location.href;try{var LX=_.ZB(MU,"search_query")||_.ZB(MU,"q")||""}catch(XO){LX=""}LX&&(CX.value.value=LX,E(!0))}}
var V=_.q(_.GO([],void 0,"kGFAjf")),U=V.next().value;V=V.next().value;var L=U,w=V;U=_.q(_.GO(-1,void 0,"mLGL9e"));var W=U.next().value,J=U.next().value;U=_.q(_.GO(-1,void 0,"u2rYdc"));var F=U.next().value,Y=U.next().value;U=_.q(_.GO(!1,void 0,"W9DFC"));var A=U.next().value,E=U.next().value;U=_.q(_.GO(!1,void 0,"Ip4dNc"));var N=U.next().value,y=U.next().value;V=_.q(_.GO(!1,void 0,"ZNKSQb"));U=V.next().value;V=V.next().value;var v=U,el=V;V=_.q(_.GO(!1,void 0,"JBrGLd"));U=V.next().value;var l1=V.next().value;
V=_.q(_.GO(!1,void 0,"P2pD6e"));var V4=V.next().value,Mf=V.next().value;V=_.q(_.GO(1,void 0,"SjP20c"));var LF=V.next().value,YY=V.next().value;V=_.q(_.GO([],void 0,"h4dRaf"));var FM=V.next().value,gA=V.next().value;V=_.q(_.GO(!1,void 0,"TUTzaf"));var JN=V.next().value,eS=V.next().value;V=_.h("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var vF=_.Af("yt-searchbox"),CX=_.Af("input"),kd=_.Af("div"),BB,ug=
new OI1,fX=CoZ(),pF=_.Kj().resolve(_.$p(_.fM)),dA=function(){var MU;return((MU=d.forceDarkMode)==null?void 0:MU.call(d))||!(pF==null||!pF())},U3=function(){return _.h("desktop_enable_scrollable_suggestions_panel")},lg="i"+J6q++,hN=!1,Hv=!1,$s="",dq=null,oC=-1,NU=function(){gA([]);
w([]);el(!1);BB&&(BB.hidden=!0);dq&&(clearTimeout(dq),dq=null);J(-1)},RZ=function(MU,LX){MU.preventDefault();
eS(!0);BB&&(BB.hidden=!1);var XO=W();MU=L();var kO=FM();LX=SG5(LX);XO+=LX;for(XO>=MU.length?XO=-1:XO<-1&&(XO=MU.length-1);XO!==-1&&(kO.includes(XO)||XO>=MU.length||XO<0);)XO+=LX,XO>=MU.length&&(XO=-1);J(XO);W()>=0&&(CX.value.value=L()[W()].text,Y(0),C(),MU=W(),kO=F(),(kO=document.getElementById(Lz[MU][kO]))&&U3()&&(MU===L().length-1?BB.scrollTop=BB.scrollHeight:kO.scrollIntoView({block:"nearest",inline:"start"})))},uM=_.n7(function(MU){if(!(MU.relatedTarget instanceof Element&&MU.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){y(!0);
var LX;(LX=d.focusCallback)==null||LX.call(d,!0);k()||(Hv?BB.hidden=!1:(_.GT(vF.value,"yt-autonav-pause-focus",{}),e(MU.target.value)))}}),IC=_.n7(function(MU){if(!(MU.relatedTarget instanceof Element&&MU.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){y(!1);
var LX;(LX=d.focusCallback)==null||LX.call(d,!1);BB.scrollTop=0;BB.hidden=!0;_.GT(vF.value,"yt-autonav-pause-blur",{})}}),Lt=function(MU){MU=SG5(MU);
var LX;((LX=Lz[W()])==null?0:LX[F()+MU])&&Y(F()+MU)},qj=_.n7(function(MU){var LX=MU.target;
switch(MU.keyCode){case 13:MU.preventDefault();var XO;if((XO=Lz[W()])==null?0:XO[F()]){var kO;(kO=document.getElementById(Lz[W()][F()]))==null||kO.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}MU=MU.shiftKey?4:3;XO=fX;kO=W();XO.selectedSuggestionIndex=kO;K(LX.value,MU);break;case 27:BB&&(BB.hidden=!0);break;case 40:RZ(MU,40);break;case 38:RZ(MU,38);break;case 39:Lt(39);break;case 37:Lt(37);break;case 229:fX.inputMethodsTracker.add(4);break;default:fX.inputMethodsTracker.add(1),
RIj(fX)}return!1}),nt=_.n7(function(MU){e(MU.target.value);
C();U3()&&BB&&(BB.scrollTop=0);return!1}),uk=_.n7(function(){fX.inputMethodsTracker.add(2);
RIj(fX);return!1});
_.Is(function(){if(BB){fX.reset();if(window.ResizeObserver){var MU=new ResizeObserver(function(){v()||(BB.style.minWidth=kd.value.offsetWidth+"px")});
MU.observe(kd.value);(new ResizeObserver(function(){ds()})).observe(BB);
_.Pk(function(){MU.disconnect()})}R();
window.addEventListener("yt-navigate-finish",R);window.addEventListener("yt-focus-searchbox",function(){CX.value.focus()});
var LX;l1((LX=_.Fm("SBOX_SETTINGS"))==null?void 0:LX.HAS_ON_SCREEN_KEYBOARD)}else _.z5(new _.m1("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var L5=_.n7(function(MU){MU.preventDefault();K(CX.value.value,12);return!1}),Yd=_.n7(function(MU){MU.preventDefault();
var LX,XO;(LX=CX)==null||(XO=LX.value)==null||XO.focus();var kO,nX;((kO=CX)==null?void 0:(nX=kO.value)==null?void 0:nX.value)!==""&&(CX.value.value="",CX.value.dispatchEvent(new Event("input")));return!1}),FO=_.n7(function(){var MU=OoZ(CX.value.value,L().filter(function(LX){return LX.type!==35}).map(function(LX){return{label:LX.text}}));
_.oF(vF.value,"yt-open-popup-action",[{openPopupAction:MU},document.body]);return!1}),EU=_.n7(function(){CX.value.focus();
return!1}),mr=function(MU,LX,XO,kO,nX){fX.selectedSuggestionIndex=XO;
K(LX,nX?3:1,kO)},p6=function(MU){CX.value.value=MU;
CX.value.dispatchEvent(new Event("input"));fX.inputMethodsTracker.add(5);RIj(fX,!0)},Lz=[[]],p4=function(MU){var LX="searchbox-suggestion"+_.rM(_.J6);
Lz[MU].push(LX);return LX},Xq=function(MU){if(L()){Lz=[[]];
for(var LX=0;LX<MU;LX++)Lz.push([])}},ds=function(){if(U3()){var MU=BB,LX=MU.scrollTop;
MU=MU.scrollHeight-MU.clientHeight;Mf(LX>=MU);LX=Math.abs(MU-LX);LX<=40?YY(1-(40-LX)/40):YY(1)}},Fi=function(){return"opacity: "+LF()*100+"%"},u1=_.n7(function(){ds();
return!1}),ZD=_.n7(function(){eS(!1);
return!1}),E5,RC={},eT={},We={},wq={};
return _.x("yt-searchbox",{class:_.xM("ytSearchboxComponentHost",(RC.ytSearchboxComponentMweb=!1,RC.ytSearchboxComponentDesktop=!0,RC["yt-searchbox-filled-query"]=function(){return A()},RC["ytd-masthead"]=function(){return!N()},RC.ytSearchboxComponentHostDark=dA,RC)),
role:"search",el:vF,"client-ve-type":10349},_.x("div",{el:kd,"on:click":EU,class:_.xM("ytSearchboxComponentInputBox",(eT.ytSearchboxComponentInputBoxDark=dA,eT.ytSearchboxComponentInputBoxHasFocus=N,eT))},_.x("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":L5},_.x(_.n,{cond:N,then:function(){return _.x("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.x(_.hu,{icon:"SEARCH"}))}}),_.x("input",{el:CX,
class:_.xM("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":lg,"aria-expanded":!((E5=BB)==null?0:E5.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":IC,"on:focus":uM,"on:input":nt,"on:keydown":qj,"on:paste":uk,placeholder:d.placeholderText,"aria-activedescendant":function(){var MU;return(MU=Lz[W()])==null?void 0:MU[F()]},
"aria-autocomplete":"list",role:"combobox"})),_.x(_.n,{cond:U,then:function(){return _.x("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.x(Y$Z,null))}}),_.x(_.n,{cond:A,
then:function(){return _.x("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.x("button",{class:"ytSearchboxComponentClearButton","on:click":Yd,"aria-label":d.clearButtonAriaLabel||y6v},_.x(_.hu,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.x(_.am,{model:{}})))}})),_.x("button",{class:_.xM("ytSearchboxComponentSearchButton",(We.ytSearchboxComponentSearchButtonDark=dA,We)),
"on:click":L5,"aria-label":EwG,title:d.placeholderText},_.x(_.hu,{icon:"SEARCH"})),_.x(_.n,{cond:function(){if(cRG()&&_.h("mweb_voice_search")&&d.voiceSearchButton)return d.voiceSearchButton()},
then:function(MU){var LX={};return _.x("div",{class:_.xM("ytSearchboxComponentVoiceSearchWrapper",(LX.ytSearchboxComponentHideVoiceSearchButton=function(){return A()},LX))},_.x(_.wB,{data:MU},{buttonRenderer:function(XO){return _.x(_.AV,{data:XO.data,
onButtonClickCallback:function(){}})}}))}}),_.x("div",{el:_.$M(function(MU){return void(BB=MU)}),
id:lg,class:_.xM("ytSearchboxComponentSuggestionsContainer",(wq.ytSearchboxComponentSuggestionsContainerDark=dA,wq["yt-searchbox-suggestions-container"]=!1,wq.ytSearchboxComponentSuggestionsContainerScrollable=U3(),wq.ytSearchboxComponentSuggestionsContainerAnimated=V,wq)),"on:scroll":u1,"on:mousemove":ZD,role:"listbox",hidden:!0},_.x(_.L6,{each:L},function(MU,LX){return _.x(QtG,{suggestion:MU,isHighlighted:function(){return LX()===W()},
onClickCallback:mr,onHoverUpdateCallback:function(XO){if(_.h("desktop_enable_single_suggestion_highlight")){var kO=LX();XO&&(Y(0),J(kO))}},
onRemoveCallback:function(XO){S$O(ug);XO===void 0||XO<0||FM().includes(XO)||gA([].concat(_.ru(FM()),[XO]))},
labels:d.labels,queryBuilderFunction:p6,suggestionIndex:LX,generateUniqueId:p4,highlightedId:function(){var XO;return(XO=Lz[W()])==null?void 0:XO[F()]},
useScrollMargin:U3(),isKeyboardMode:JN})}),_.x(_.n,{cond:function(){return!v()&&L().find(function(MU){return MU.type!==35})&&_.h("searchbox_reporting")},
then:function(){return _.x("button",{class:"ytSearchboxComponentReportButton","on:mousedown":FO},_.Vz("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.x(_.n,{cond:function(){return!V4()&&U3()},
then:function(){return _.x("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.x("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Fi}))}})))},"fh"),"yt-searchbox",{props:{searchEndpoint:_.dl,
placeholderText:_.dl,labels:_.dl,voiceSearchButton:_.dl,focusCallback:_.p7,clearButtonAriaLabel:_.dl,forceDarkMode:_.dl}});var Gg=function(){var d=_.B.apply(this,arguments)||this;d.menuButtonTargetId="topbar-guide-menu";d.narrow=!1;d.menuStrings={BACK_ALT_LABEL:_.Vz("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Vz("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Vz("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Vz("SBOX_PLACEHOLDER",void 0,"Search")};d.pageDarkTheme=document.documentElement.hasAttribute("dark");d.watchPageScrollTop=0;d.theater=!1;d.fullscreen=!1;d.disableFrostedGlassDuringViewTransition=
!1;d.desktopUnifiedSearchPanelMode=_.h("desktop_enable_unified_search_panel");d.cinematicTheaterMode=_.h("web_cinematic_theater_mode");d.ytSearchboxFocused=!1;d.searchboxLabels=_.Fm("SBOX_LABELS");d.topbarIsAboveChipbar=!1;d.isDarkThemeForced=!1;d.areGhostCardsHidden=!1;d.guideKeyboardToggle=!1;d.voiceSearchManager=$Et();d.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};d.setYtSearchboxFocused=function(H){d.ytSearchboxFocused=
H};
d.toggleFrostedGlassDuringViewTransition=function(H){d.disableFrostedGlassDuringViewTransition=H};
return d};
_.m(Gg,_.B);_.G=Gg.prototype;_.G.computeSimpleText=function(d){return _.jG(d)};
_.G.onDarkChanged=function(){for(var d=_.q(this.buttons||[]),H=d.next();!H.done;H=d.next())H.value.isOverlay=!!this.dark;d=_.q(this.buttonRenderers||[]);for(H=d.next();!H.done;H=d.next())H.value.overrides=this.computeButtonOverride()};
_.G.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.G.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var d=_.Sc(_.OT(),"aa");_.qr(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||d||(this.isDarkThemeForced=this.dark=!0);this.logoType?(d=this.hostElement.querySelector("#masthead-logo"))&&(_.h("polymer_on_demand_shady_dom")?d.setAttribute("slot","masthead-logo-old"):_.nA(d)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.xf(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.xf(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.G.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.xf(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.xf(this,this.onSetTheaterModeEnabled))};
_.G.dataChanged=function(){var d=this.data;d&&(this.voiceEnabled=d.voiceSearchButton?$Et().isSupported():!1,_.hMU(_.u9(),this.menuButtonTargetId,this.guideButton),d.onReceivedActions&&d.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.l5(this.hostElement,d.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&d&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.qr(this.hostElement,"dark",!1),_.qr(this.hostElement,"theater",!1),
(d=this.hostElement.querySelector("#masthead-logo"))&&(_.h("polymer_on_demand_shady_dom")?d.setAttribute("slot","masthead-logo-old"):_.nA(d))))};
_.G.computeCenterHidden=function(){var d;return this.data&&!((d=this.data.searchbox)==null?0:d.fusionSearchboxRenderer)};
_.G.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.qr(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.G.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.G.onWatchScroll=function(d){this.watchPageScrollTop=d.detail||0;this.updateMastheadBackgroundOpacity()};
_.G.onFullscreenChangeAction=function(d){d||(this.watchPageScrollTop=0);this.fullscreen=d;this.updateMastheadBackgroundOpacity()};
_.G.onSetTheaterModeEnabled=function(d){this.theater=d.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.G.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.G.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.G.setBackgroundOpacity=function(d){d=this.calculateBackgroundOpacity(d);this.background.style.opacity=""+d};
_.G.calculateBackgroundOpacity=function(d){var H=this.theater&&this.cinematicTheaterMode?.6:0,K=this.hostElement.clientHeight/2;return Math.min(Math.max(d,0),K)/K*(1-H)+H};
_.G.shouldShowCinematicMastHead=function(){var d=_.h("kevlar_watch_grid")&&!_.h("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(d||this.pageDarkTheme)};
_.G.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.G.focusGuide=function(){this.guideButton.focus()};
_.G.onGuideToggleTap=function(){_.GT(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.G.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.G.onGuideToggleHover=function(){_.GT(this.hostElement,"yt-guide-hover")};
_.G.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.G.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.G.closeOnOutsideClickCondition=function(d){for(d=_.jh(d);d[0];){var H=d.shift();if(H instanceof Element&&H.id==="kbd")return!1}return!0};
_.G.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.G.pausePlayer=function(){var d;(d=_.Kf())==null||d.pause();this.pauseMiniplayer()};
_.G.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var d;(d=_.Kj().resolve(_.Fb).getPlayerElement())==null||d.pause()}};
_.G.isMiniplayerActive=function(){return _.Kj().resolve(_.Fb).isMiniplayerActive()};
_.G.updateNarrowFromBinding=function(d){this.narrow=d.detail.value};
_.G.onYtSendFeedbackAction=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.G.registerWithViewTransitionManager=function(){n80(_.Kj().resolve(_.LW),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.H3.Object.defineProperties(Gg.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var d;return(d=this.data)==null?void 0:d.voiceSearchButton}}}});
Gg.prototype.narrowChanged=Gg.prototype.narrowChanged;Gg.prototype.onWatchPageChange=Gg.prototype.onWatchPageChange;Gg.prototype.onRendererStamperFinished=Gg.prototype.onRendererStamperFinished;Gg.prototype.dataChanged=Gg.prototype.dataChanged;Gg.prototype.onDarkChanged=Gg.prototype.onDarkChanged;_.t([_.u(_.WZ),_.O("design:type",Object)],Gg.prototype,"ironResizableBehavior",void 0);_.t([_.u(_.XkG),_.O("design:type",Object)],Gg.prototype,"ytdExpandableInputBehavior",void 0);
_.t([_.u(_.bF.YtdGuideStateAwareBehavior),_.O("design:type",Object)],Gg.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Gg.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Gg.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Gg.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.to),_.O("design:type",Object)],Gg.prototype,"ytdReduxBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Gg.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Gg.prototype,"narrow",void 0);_.t([_.r(),_.O("design:type",Object)],Gg.prototype,"logoType",void 0);_.t([_.r(),_.O("design:type",Boolean)],Gg.prototype,"voiceEnabled",void 0);
_.t([_.r(),_.O("design:type",Object)],Gg.prototype,"menuStrings",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Gg.prototype,"dark",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Gg.prototype,"pageDarkTheme",void 0);_.t([_.r(),_.O("design:type",Object)],Gg.prototype,"watchPageScrollTop",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.NI4}),_.O("design:type",Boolean)],Gg.prototype,"isWatchPage",void 0);
_.t([_.r({reflectToAttribute:!0,selector:_.Dwl}),_.O("design:type",Boolean)],Gg.prototype,"isShortsPage",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Gg.prototype,"theater",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Gg.prototype,"fullscreen",void 0);_.t([_.r({reflectToAttribute:!0,selector:_.vR5}),_.O("design:type",String)],Gg.prototype,"frostedGlassMode",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Gg.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.t([_.r(),_.O("design:type",Object)],Gg.prototype,"ytSearchboxFocused",void 0);_.t([_.UI("#buttons > *"),_.O("design:type",Array)],Gg.prototype,"buttons",void 0);_.t([_.UI("ytd-button-renderer"),_.O("design:type",Array)],Gg.prototype,"buttonRenderers",void 0);_.t([_.VP("#background"),_.O("design:type",HTMLDivElement)],Gg.prototype,"background",void 0);
_.t([_.VP("#guide-button"),_.O("design:type",Object)],Gg.prototype,"guideButton",void 0);_.t([_.VP("#logo"),_.O("design:type",Object)],Gg.prototype,"logo",void 0);_.t([_.r({computed:"computeButtonOverride(dark)"}),_.O("design:type",Object)],Gg.prototype,"buttonOverrides",void 0);_.t([_.Mr("dark"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Gg.prototype,"onDarkChanged",null);_.t([_.r({value:function(){return this.onVoiceTap.bind(this)}}),
_.O("design:type",Function)],Gg.prototype,"boundOnTapVoiceButton",void 0);_.t([_.r(),_.O("design:type",Object)],Gg.prototype,"topbarIsAboveChipbar",void 0);_.t([_.r(),_.O("design:type",String),_.O("design:paramtypes",[])],Gg.prototype,"guideIcon",null);_.t([_.I("voiceEnabled"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Gg.prototype,"shouldShowVoiceSearchButton",null);_.t([_.I("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Gg.prototype,"voiceSearchButton",null);
_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Gg.prototype,"dataChanged",null);_.t([_.nK("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Gg.prototype,"onRendererStamperFinished",null);_.t([_.Mr("isWatchPage"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Gg.prototype,"onWatchPageChange",null);
_.t([_.Mr("narrow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Gg.prototype,"narrowChanged",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-masthead"})],Gg);
_.T(Gg,"ytd-masthead",function(){if(zIS!==void 0)return zIS;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return zIS=d},{mode:_.qk("kevlar_poly_si_batch_j036")?1:2});var NDb;var D2v={},fmg={},A61={},jtS={},vwj=(jtS.OFFLINE=(D2v["publicytnetworkstatus-online"]="BACK_ONLINE",D2v),jtS.ONLINE=(fmg["publicytnetworkstatus-offline"]="OFFLINE",fmg),jtS.BACK_ONLINE=(A61["publicytnetworkstatus-offline"]="OFFLINE",A61.TIMER_TRIGGER="ONLINE",A61),jtS),o8=function(){var d=_.B.apply(this,arguments)||this;d.currentState="ONLINE";d.scheduledJobId=0;d.bannerString="";d.bannerVe=null;d.networkStatusManagerInstance=new _.yQ;return d};
_.m(o8,_.B);_.G=o8.prototype;_.G.attached=function(){var d=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){d.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){d.stateChangeHandler("publicytnetworkstatus-offline")})};
_.G.detached=function(){var d=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){d.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){d.stateChangeHandler("publicytnetworkstatus-offline")})};
_.G.enterState=function(d){var H=this;this.scheduledJobId&&_.Xp.cancelJob(this.scheduledJobId);d==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):d==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Vz("NO_INTERNET_CONNECTION",void 0,"No internet connection")):d==="BACK_ONLINE"&&(this.bannerString=_.Vz("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.mf(_.Xp,function(){H.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=d};
_.G.stateChangeHandler=function(d){(d=vwj[this.currentState][d])&&this.enterState(d)};
_.G.logVisibility=function(d){var H=_.Fj();this.createBannerVe(d);H&&this.bannerVe&&(d?_.No(H,[this.bannerVe]):_.Di(H,[this.bannerVe]))};
_.G.createBannerVe=function(d){!this.bannerVe&&d&&(this.bannerVe=_.l8(37929),_.kR(_.hR(),this.bannerVe))};
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",String)],o8.prototype,"currentState",void 0);_.t([_.r(),_.O("design:type",Object)],o8.prototype,"scheduledJobId",void 0);_.t([_.r(),_.O("design:type",Object)],o8.prototype,"bannerString",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-network-status-banner"})],o8);
_.T(o8,"ytd-network-status-banner",function(){if(NDb!==void 0)return NDb;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-network-status-banner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="status-banner style-scope ytd-network-status-banner">\n       [[bannerString]]\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return NDb=
d},{mode:1});var dbb;var qp=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};d.hidden=!0;d.frostedGlass=_.h("web_frosted_glass");return d};
_.m(qp,_.B);qp.prototype.computeHidden=function(d){return d&&d.status?!1:!0};
qp.prototype.handleUpdatePermissionRoleCommand=function(d){if(d=_.M(d,_.p4N))if(d=_.M(d.renderer,_.csA))this.data=d};
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],qp.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],qp.prototype,"componentBehavior",void 0);_.t([_.r({value:!0,computed:"computeHidden(data)"}),_.O("design:type",Object)],qp.prototype,"hidden",void 0);_.t([_.r(),_.O("design:type",Object)],qp.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],qp.prototype,"frostedGlass",void 0);
_.t([_.Z({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],qp);
_.T(qp,"ytd-permission-role-bottom-bar-renderer",function(){if(dbb!==void 0)return dbb;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-permission-role-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="pom-role-text style-scope ytd-permission-role-bottom-bar-renderer" hidden="[[hidden]]">\n  <yt-formatted-string text="[[data.status]]" class="style-scope ytd-permission-role-bottom-bar-renderer"></yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return dbb=d},{mode:1});var HYg;var $bv;var EvZ={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var a8=function(){return _.B.apply(this,arguments)||this};
_.m(a8,_.B);_.G=a8.prototype;_.G.attached=function(){this.JSC$20647_scroller&&(this.JSC$20647_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20647_scroller.attached&&typeof this.JSC$20647_scroller.attached==="function"&&this.JSC$20647_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(K){K.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var d=_.Gn(this.hostElement);d.querySelector("tp-yt-paper-radio-group").selected="";var H=d.querySelector("#reason-text");H&&(H.value="");d.querySelector("#description-text").value=""}};
_.G.canSubmit=function(d,H){_.GT(this.hostElement,"yt-invalidate-popup-tabbables");return!(d&&H)};
_.G.onCancel=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.G.onSubmit=function(){var d=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(g){return g.active}).map(function(g){return g.innerText.trim()}),H=this.hostElement.querySelector("tp-yt-paper-radio-group"),K=H.selectedItem,c=K.name;
K=K.innerText.trim();var p=H.querySelector("#reason-text");H=void 0;p&&(H=p.value);(p=this.descriptionText.value)&&(p=p.trim());yR5(this.data.searchQuery,d,c,K,p,H);_.oF(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.G.sendFormSubmitToast=function(){var d=_.Km(_.Vz("SBOX_INAPPROPRIATE_TOAST"));_.oF(this.hostElement,"yt-open-popup-action",[d,this])};
_.G.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(d){return d.active})};
_.G.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
a8.prototype.onIronSelect=a8.prototype.onIronSelect;a8.prototype.onIronChange=a8.prototype.onIronChange;a8.prototype.dataChanged=a8.prototype.dataChanged;_.t([_.r(),_.O("design:type",Object)],a8.prototype,"data",void 0);_.t([_.r({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.O("design:type",Boolean)],a8.prototype,"submitDisabled",void 0);_.t([_.r(),_.O("design:type",Boolean)],a8.prototype,"suggestionSelected",void 0);
_.t([_.r(),_.O("design:type",Boolean)],a8.prototype,"catagorySelected",void 0);_.t([_.VP("#scroller"),_.O("design:type",Object)],a8.prototype,"JSC$20647_scroller",void 0);_.t([_.VP("#description-text"),_.O("design:type",Object)],a8.prototype,"descriptionText",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],a8.prototype,"dataChanged",null);
_.t([_.nK("iron-change"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],a8.prototype,"onIronChange",null);_.t([_.nK("iron-select"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],a8.prototype,"onIronSelect",null);_.t([_.Z({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],a8);
_.T(a8,"ytd-search-suggestion-report-dialog",function(){if($bv!==void 0)return $bv;var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-suggestion-report-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-search-suggestion-report-dialog">\n  <div id="content" class="style-scope ytd-search-suggestion-report-dialog">\n    <h2 id="title" class="style-scope ytd-search-suggestion-report-dialog">[[data.title]]</h2>\n    <div id="suggestions" class="style-scope ytd-search-suggestion-report-dialog">\n      <template is="dom-repeat" items="[[data.suggestions]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-checkbox class="style-scope ytd-search-suggestion-report-dialog">[[item.label]]</tp-yt-paper-checkbox>\n      </template>\n    </div>\n    <tp-yt-paper-radio-group id="categories" class="style-scope ytd-search-suggestion-report-dialog">\n      <h2 id="category-title" class="style-scope ytd-search-suggestion-report-dialog">[[data.categoryLabel]]</h2>\n      <yt-formatted-string id="category-title" text="[[data.categoryLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n      </yt-formatted-string>\n      <template is="dom-repeat" items="[[data.categories]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-radio-button name="[[item.id]]" class="style-scope ytd-search-suggestion-report-dialog">\n          [[item.label]]\n          <template is="dom-if" if="[[item.reasonLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n            <tp-yt-paper-input-container id="reason" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n              <tp-yt-iron-autogrow-textarea id="reason-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[item.reasonLabel]]" rows="1">\n              </tp-yt-iron-autogrow-textarea>\n            </tp-yt-paper-input-container>\n          </template>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n    <tp-yt-paper-input-container id="details" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n      <tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[data.detailsPlaceholderLabel]]" rows="2">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-search-suggestion-report-dialog"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope ytd-search-suggestion-report-dialog">\n  <tp-yt-paper-button id="cancel" on-tap="onCancel" class="style-scope ytd-search-suggestion-report-dialog">[[data.cancelButtonLabel]]</tp-yt-paper-button>\n  <tp-yt-paper-button id="submit" disabled="[[submitDisabled]]" on-tap="onSubmit" class="style-scope ytd-search-suggestion-report-dialog">\n    [[data.submitButtonLabel]]\n  </tp-yt-paper-button>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);return $bv=d},{mode:1});var li=function(d){var H=d.openPopupAction;var K=d.target;var c=d.container;var p=d.popupContainerConfig;var g=d.getElement;d=d.removeWhenClosed===void 0?!1:d.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=H;this.target=K;this.container=c;this.popupContainerConfig=p;this.getElement=g;this.JSC$20653_popupConfig=this.popupContainerConfig.JSC$19786_popupConfig[this.openPopupAction.popupType];this.rendererName=(H=this.getName())?_.zol(H,X$0(this.popupContainerConfig,
H)):"";_.h("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=d);this.createPopup()};
li.prototype.updatePopup=function(d){this.openPopupAction=d;this.JSC$20653_popupConfig=this.popupContainerConfig.JSC$19786_popupConfig[this.openPopupAction.popupType];KzZ(this);_.h("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
li.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var geO=function(d,H,K){(H=H&&d.JSC$20653_popupConfig.narrowProperties?d.JSC$20653_popupConfig.narrowProperties:d.JSC$20653_popupConfig.properties)&&K!==void 0&&(H.isAriaModal=K);cdg(d,H);d.isRtl()&&cdg(d,d.JSC$20653_popupConfig.rtlProperties);pJG(d)};
li.prototype.createPopup=function(){var d=this.JSC$20653_popupConfig.component;if(this.popupContent=iYv(this,this.rendererName)){if(d){this.popup=iYv(this,d);var H=this.popupContent;_.h("web_enable_wrapper_for_cow_component_in_popup")&&(H=document.createElement("div"),H.appendChild(this.popupContent));_.h("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20653_popupConfig.slotName&&H.setAttribute("slot",this.JSC$20653_popupConfig.slotName);d=this.popup;var K=this.container.tagName.toLowerCase(),
c=_.d4(H);_.RUC(_.$f(d),_.pK(H,K,c));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.h("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Gn(this.container).appendChild(this.popup)}};
var KzZ=function(d){var H,K,c=(H=d.openPopupAction.accessibilityData)==null?void 0:(K=H.accessibilityData)==null?void 0:K.label;c&&(d.popup.ariaLabel=c);var p;((p=d.popupContent.polymerController)!=null?p:d.popupContent).data=(0,_.rs.unsafeClone)(d.openPopupAction.popup[d.getName()]);d.popupContent.duration=GU5(d);d.popupContent.positionType=d.openPopupAction.position;var g=d.openPopupAction.properties;g&&Object.keys(g).forEach(function(a){d.popupContent[a]=g[a]})},cdg=function(d,H){if(H)for(var K=
_.q(Object.keys(H)),c=K.next();!c.done;c=K.next())c=c.value,d.popup[c]=H[c]},pJG=function(d){if(d.openPopupAction.position){var H=d.JSC$20653_popupConfig.positionalProperties&&d.JSC$20653_popupConfig.positionalProperties[d.openPopupAction.position],K=d.JSC$20653_popupConfig.rtlPositionalProperties&&d.JSC$20653_popupConfig.rtlPositionalProperties[d.openPopupAction.position];
H=d.isRtl()&&K?K:H;H.shiftedHorizontalOffset&&(K=d.popup.style.display,d.popup.style.display="block",d.popupContent&&d.popup.positionTarget&&d.popupContent.clientWidth>d.popup.positionTarget.clientWidth&&(H.horizontalOffset=d.popup.positionTarget.clientWidth/2-H.shiftedHorizontalOffset),d.popup.style.display=K);cdg(d,H)}},oet=function(d,H){if(H)for(var K=_.q(Object.keys(H)),c=K.next();!c.done;c=K.next())c=c.value,d.popup.style[c]=H[c]};
li.prototype.getName=function(){return _.Xm(this.openPopupAction.popup,"renderer")||_.Xm(this.openPopupAction.popup,"dialog")||_.Xm(this.openPopupAction.popup,"model")||void 0};
var GU5=function(d){d=d.openPopupAction.durationHintMs;return d===0?d:Math.max(4E3,d||4E3)};
li.prototype.isRtl=function(){return _.Fm("HTML_DIR")==="rtl"};
var iYv=function(d,H){d=d.getElement(H,d.target);d==null&&_.Jf(new _.m1("popup getElement returned null",H));return d};var qrU={};
qrU.YtPopupContainerBehavior=[_.S$.YtComponentBehavior,_.Uq.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.gV(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.i5(this.hostElement)},
closePopup:function(d){var H=this.createCacheKey(void 0,d);this.popups_[H]&&this.handleClosePopupAction_(void 0,d)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.Xp.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.Xp.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(d){d.opened&&d.keepBelowPlayer&&this.ensurePopupBelowPlayer(d)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var d in this.popups_){var H=this.popups_[d];if(H.popup.scrollAction==="refit"){var K=H.popup.positionTarget.getBoundingClientRect(),c=H.popup;K=K.top;var p=H;if(!p.naturalHeight){p.popup.hidden=!1;p.popup.style.position="fixed";p.popup.style.top="0px";p.popup.style.left="0px";var g=p.popup.getBoundingClientRect();p.naturalHeight=g.bottom-g.top;p.popup.refit()}c.hidden=!(K>=p.naturalHeight+60);H.popupContent.clientHeight===0&&H.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(d){this.popupContainerConfig=d},
handleOpenPopupAction:function(d,H){var K=d.openPopupAction,c=_.Kj().resolve(_.$p(_.wC))&&K.popupType==="TOAST";c&&!K.uniqueId&&(K.uniqueId=_.Ng());if(!_.h("popup_container_parent_target_killswitch")){var p;H=(p=this.getParentTarget(H))!=null?p:H}var g=this.ensurePopup_(K,H);return new _.kr(function(a){g.then(function(e){if(!e)return a();this.maybeCreateNarrowMediaQuery_();var k=this.createCacheKey(e.rendererName,e.openPopupAction.uniqueId);if(K.showOncePerUniqueId){if(this.shownPopupKeys_.has(k))return a();
this.shownPopupKeys_.add(k)}k=this.popups_[k];var C=!(!k||!k.openPopupAction.beReused);C=!!K.reusePopup||C;if(e.popup.opened&&!C){c&&!e.openPopupAction.replacePopup||this.handleClosePopupAction_(e.rendererName,e.openPopupAction.uniqueId);C=K.popupType==="DIALOG"&&!_.h("popup_container_dialog_reopen_killswitch");if(!c&&!C&&k&&k.target==H&&!e.openPopupAction.replacePopup)return a();_.vV(e.popup,function(){this.completeOpenPopupAction_(K,H,e);a()}.bind(this))}else e.popup.opened?e.updatePopup(K):this.completeOpenPopupAction_(K,
H,e),a()}.bind(this))}.bind(this))},
getParentTarget:function(d){if(d&&d instanceof HTMLElement)for(var H=_.q(Object.entries(this.popups_)),K=H.next();!K.done;K=H.next())if(K=_.q(K.value),K.next(),K=K.next().value,K.popup.tagName==="TP-YT-IRON-DROPDOWN"&&d.closest(K.rendererName))return K.target},
completeOpenPopupAction_:function(d,H,K){K.updatePopup(d);d=this.narrowMediaQuery_.queryMatches;var c=this.isAriaModal;K.target=H;var p;H=((p=K.target.polymerController)!=null?p:K.target).popupPositionTarget||K.target;K.JSC$20653_popupConfig.targetContainer&&(H=K.container);K.popup.positionTarget=H;K.popupContent.positionTarget=H;pJG(K);K.JSC$20653_popupConfig.forceFocus&&(K.popupContent.style.outline="none");K.popupContent.tabIndex=-1;K.JSC$20653_popupConfig.narrowProperties&&(K.popup.style.position=
"static");K.JSC$20653_popupConfig.preventAutonav&&K.popup.setAttribute("prevent-autonav",!0);K.JSC$20653_popupConfig.forceCloseOnOutsideClick&&K.popup.setAttribute("force-close-on-outside-click",!0);geO(K,d,c);oet(K,K.JSC$20653_popupConfig.styles);K.isRtl()&&oet(K,K.JSC$20653_popupConfig.rtlStyles);if(!K.openPopupAction.shouldStopParentSignal){var g;p=(g=K.target.polymerController)!=null?g:K.target;(K.popupContent.startForwardingEvents||K.popupContainerConfig.forwardingEnabledPopups.has(K.rendererName))&&
p.parentComponent!==K.popupContent&&K.popupContent!==K.target&&K.target!==document.body&&(K.popupContent.startForwardingEvents?K.popupContent.startForwardingEvents(K.popupContainerConfig.forwardedEvents,K.target):(K.JSC$20653_eventForwarder||(K.JSC$20653_eventForwarder=new _.cw(K.popupContent)),K.JSC$20653_eventForwarder.start(K.popupContainerConfig.forwardedEvents,K.target)))}K=K.popup;K.addEventListener("iron-overlay-opened",_.xf(this,this.onPopupIronOverlayOpened_));K.addEventListener("iron-overlay-closed",
_.xf(this,this.onPopupIronOverlayClosed_));K.addEventListener("iron-overlay-canceled",_.xf(this,this.onPopupIronOverlayCanceled_));K.addEventListener("yt-refit",_.xf(this,this.refitPopup_));K.addEventListener("yt-invalidate-popup-tabbables",_.xf(this,this.handleInvalidatePopupTabbables_));K.open()},
getPopupDurationMs_:function(d){return d.durationHintMs===0?d.durationHintMs:Math.max(4E3,d.durationHintMs||4E3)},
handleClosePopupAction_:function(d,H){var K=_.h("web_popup_cache_key_killswitch")||!!H;if(d||K){var c=this.createCacheKey(d,H);d=(d=this.popups_[c])&&d.popup}else d=_.O86(_.Oh);if(d&&d.close){if(H=_.Kj().resolve(_.$p(_.qZ)))d.restoreFocusOnClose=H.isKeyBoardInUse();d.close();this.removePopup_(d,c)}},
handleClosePopupCommand_:function(d){d.closePopupCommand&&d.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,d.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(d){var H={},K;for(K in this.popups_)if(H={key$jscomp$1191:H.key$jscomp$1191},H.key$jscomp$1191=K,!d||!d.some(function(g){return function(a){return a==g.key$jscomp$1191}}(H))){var c=this.popups_[H.key$jscomp$1191],p=c.popup;
_.Kj().resolve(_.$p(_.wC))&&c.openPopupAction.popupType==="TOAST"||(p&&p.close&&p.close(),this.removePopup_(p,H.key$jscomp$1191))}},
handleClosePopupsAction_:function(d){d.forEach(function(H){var K=this.popups_[H];K&&((K=K.popup)&&K.close&&K.close(),this.removePopup_(K,H))}.bind(this))},
handleGetPopupOpenedAction_:function(d,H){return(H=this.createCacheKey(d,H))&&this.popups_[H]?this.popups_[d].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var d=[],H;for(H in this.popups_){var K=this.popups_[H];K.popup.opened&&d.push(K)}return d},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(d,H){_.h("ytpopup_disable_default_html_caching")&&d&&d.removeWhenClosed&&(_.Gn(this.hostElement).removeChild(d),H&&this.popups_[H]&&delete this.popups_[H])},
shouldReusePopup_:function(d){return!(!d||!d.reusePopup)||!(!d||!d.beReused)},
ensurePopup_:function(d,H){this.maybeCreateNarrowMediaQuery_();var K=_.Xm(d.popup,"renderer")||_.Xm(d.popup,"dialog")||_.Xm(d.popup,"model");if(!K)return _.e5();K=_.zol(K,X$0(this.popupContainerConfig,K));return _.e5(this.getAndMaybeCreatePopup_(d,K,H))},
getAndMaybeCreatePopup_:function(d,H,K){var c=this.createCacheKey(H,d.uniqueId);if(this.popups_[c])return this.popups_[c];d=new li({openPopupAction:d,target:K,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(H)});return this.popups_[c]=d},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(d){return _.h("ytpopup_disable_default_html_caching")?d&&d.includes("view-model"):!1},
maybeCreateNarrowMediaQuery_:function(){this.narrowMediaQuery_||(this.narrowMediaQuery_=document.createElement("iron-media-query"),this.narrowMediaQuery_.query="(max-width: 656px)",this.narrowMediaQuery_.addEventListener("query-matches-changed",_.xf(this,this.openPopupQueryMatchesChanged_)),_.Gn(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(d){d=d.detail.value;for(var H in this.popups_)geO(this.popups_[H],d)},
onPopupIronOverlayClosed_:function(d){var H=d.currentTarget,K=_.T$L(H);K=K.length>0?K[0]:H;if(K.is!=="ytd-reel-watch-while-dialog-renderer"||d.target.is!=="tp-yt-iron-dropdown"){d.detail.popup=H;d.detail.popupRenderer=K;var c,p={context:{openingElement:((c=this.popups_[(K==null?void 0:K.is)||""])==null?void 0:c.target)||void 0}};Object.assign(p,d.detail);var g;_.GT((g=K.hostElement)!=null?g:K,"yt-popup-closed",p);H.removeEventListener("yt-refit",_.xf(this,this.refitPopup_));H.removeEventListener("yt-invalidate-popup-tabbables",
_.xf(this,this.handleInvalidatePopupTabbables_));H.removeEventListener("iron-overlay-canceled",_.xf(this,this.onPopupIronOverlayCanceled_));H.removeEventListener("iron-overlay-closed",_.xf(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(H)}},
onPopupIronOverlayCanceled_:function(d,H){var K=d.currentTarget,c=_.T$L(K);c=c.length>0?c[0]:K;if(c.is!=="ytd-reel-watch-while-dialog-renderer"||d.target.is!=="tp-yt-iron-dropdown"){var p;_.GT((p=c.hostElement)!=null?p:c,"yt-popup-canceled",d.detail);p=H?_.jh(H):null;(!H||["click","tap"].includes(H.type))&&!K.hasAttribute("force-close-on-outside-click")&&K.positionTarget&&p&&p.includes(K.positionTarget)&&d.preventDefault();K.restoreFocusOnClose=_.hQ.keyboardEventMatchesKeys(H,"esc")}},
onPopupIronOverlayOpened_:function(d){d=d.currentTarget;var H=_.T$L(d);H=H.length>0?H[0]:d;var K,c;_.GT((K=H.hostElement)!=null?K:H,"yt-popup-opened",(c=H.hostElement)!=null?c:H);d.keepBelowPlayer&&(this.ensurePopupBelowPlayer(d,!0),this.dynamicallyPositionedElements_.add(d));K=_.Kj().resolve(_.$p(_.qZ));c=!!H.querySelector("#toast");K&&K.isKeyBoardInUse()&&!c&&(typeof H.focusFirstItem==="function"?H.focusFirstItem():(H=_.QIg(d),H.length&&H[0].focus()));d.removeEventListener("iron-overlay-opened",
_.xf(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(d){d=d.currentTarget;d.refit&&d.refit()},
refitPopups_:function(){for(var d in this.popups_)this.popups_[d].refit()},
handleInvalidatePopupTabbables_:function(d){d=d.currentTarget;d.invalidateTabbables&&d.invalidateTabbables()},
createCacheKey:function(d,H){return _.h("web_popup_cache_key_killswitch")?H?d+"#"+H:d:H?"#"+H:d},
openSheet:function(d,H){var K=d==null?void 0:d.openPopupActionCommand;!K&&(d==null?0:d.viewModel)&&(K={openPopupAction:{popup:{sheetViewModel:d.viewModel},popupType:"CONTEXTUAL_SHEET"}});K&&this.handleOpenPopupAction(K,H)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var d=this;return _.l(function(H){return H.return(d.handleGetOpenedPopupsAction_().filter(function(K){var c;return((c=K.openPopupAction)==null?void 0:c.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(d,H,K){if(_.h("web_dialog_utils_killswitch")){var c=d==null?void 0:d.openPopupActionCommand,p=(K==null?0:K.ariaLabel)?{accessibilityData:{accessibilityData:{label:K.ariaLabel}}}:void 0;!c&&(d==null?0:d.viewModel)&&(c={openPopupAction:Object.assign({},{popup:{dialogViewModel:d.viewModel},popupType:(K==null?0:K.isModal)?"MODAL":"DIALOG"},p&&p)});c&&this.handleOpenPopupAction(c,H)}else{if(p=d==null?void 0:d.viewModel){var g=K=K===void 0?{}:K;K=g.ariaLabel;p={popup:{dialogViewModel:p},
popupType:g.isModal?"MODAL":"DIALOG"};g={accessibilityData:{label:K}};K&&(p.accessibilityData=g);p={openPopupAction:p}}else p=void 0;if(p=(c=p)!=null?c:d==null?void 0:d.openPopupActionCommand)this.isAriaModal=_.h("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(p,H)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var d=this;return _.l(function(H){return H.return(d.handleGetOpenedPopupsAction_().filter(function(K){var c;return((c=K.openPopupAction)==null?void 0:c.popupType)==="DIALOG"}).length>0)})}}];var aq0;var lqt;var eHO=_.y$(["about:blank"]),ei=function(){var d=_.B.apply(this,arguments)||this;d.isMuted=!1;d.pageLoadTimeoutId=void 0;return d};
_.m(ei,_.B);_.G=ei.prototype;_.G.dataChanged=function(){var d=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var H=this.data.url,K=_.J5(H);_.h("enable_yt_ata_iframe_authuser")?(K=_.J5(H),_.OH(this.iframe,bMq(K))):_.OH(this.iframe,K);this.pageLoadTimeoutId=_.mf(_.MO(),function(){return void d.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.AS({destination:window,iframe:this.iframe,origin:_.rZ7(K.toString()),channelName:"ataiframe",onMessage:_.J84(TyU,function(c){QkG(c.data)?(c=_.ST(c.data,1,_.AN,_.Hz()),c.length!==1?_.Jf(Error("tl")):(c=c[0],c===3?(d.isMuted=!0,d.logStateChanged({adMuteRequested:!0})):c===1&&d.close())):_.Jf(Error("ul"))}),
onEstablished:function(){d.cancelPageLoadTimeout();d.logStateChanged({pageLoadSucceeded:!0})}})}};
_.G.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.MO().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.G.logStateChanged=function(d){var H;if((H=this.data)==null?0:H.trackingParams)d={adsClientData:{aboutThisAdData:d}},_.hR().stateChanged(this.data.trackingParams,d)};
_.G.close=function(){_.oF(this.hostElement,"yt-close-popup-action",[this.is])};
_.G.handlesPopupClosed=function(d,H){var K=this,c,p;return _.l(function(g){if(g.nextAddress==1)return _.Fm("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.oF(K.hostElement,"on-about-this-ad-popup-closed",[K.isMuted,H]),g.jumpTo(0)):d&&NgU(d)?g.yield(Dkv(d),4):(K.isMuted&&_.oF(K.hostElement,"yt-mute-ad-action",[K.is,K]),g.jumpTo(0));if(c=g.yieldResult){var a=p=new _.IX(c),e=K.isMuted;a.getOptions().includes("onAboutThisAdPopupClosed")?_.jWg(a,"onAboutThisAdPopupClosed",{isMuted:e,layoutId:H}):_.Db("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.VE(g)})};
_.G.onPopupClosed=function(d){var H=this,K,c;return _.l(function(p){K=_.pB(eHO);_.OH(H.iframe,K);H.cancelPageLoadTimeout();if(!H.data)return p.jumpTo(0);H.ytRendererBehavior.markDirty();c=d.detail.context.openingElement;return p.yield(H.handlesPopupClosed(c,H.data.layoutId),0)})};
_.G.detached=function(){this.cancelPageLoadTimeout()};
_.G.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ei.prototype.onPopupClosed=ei.prototype.onPopupClosed;ei.prototype.dataChanged=ei.prototype.dataChanged;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);_.t([_.VP("#iframe"),_.O("design:type",HTMLIFrameElement)],ei.prototype,"iframe",void 0);_.t([_.r(),_.O("design:type",Object)],ei.prototype,"data",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ei.prototype,"dataChanged",null);
_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype",Promise)],ei.prototype,"onPopupClosed",null);_.t([_.ZV({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],ei);
_.T(ei,"yt-about-this-ad-renderer",function(){if(lqt===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;aq0===void 0&&(aq0=document.createElement("template"));var c=aq0;K.call(H,c.content.cloneNode(!0),d.content.firstChild);lqt=d}d=lqt;return d},{mode:2});var kUZ;var xb1;var kc=function(d){var H=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=H.message;"stack"in H&&(this.stack=H.stack);this.maxFileSizeMB=d;Object.setPrototypeOf(this,kc.prototype)};
_.m(kc,Error);var neb=function(d,H){var K=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=K.message;"stack"in K&&(this.stack=K.stack);this.minWidth=d;this.minHeight=H;Object.setPrototypeOf(this,neb.prototype)};
_.m(neb,Error);var C6T=function(d){this.requirements=d;this.JSC$20681_maxFileSize=d.maxFileSizeMB*1024*1024},RHZ=function(d,H){if(H.size>d.JSC$20681_maxFileSize)throw new kc(d.requirements.maxFileSizeMB);
};var VI1=function(d,H){this.canvas=d;this.imageEditorBuilder=H};
VI1.prototype.addEventListeners=function(d){var H=function(p){Ubb(d,p)};
this.JSC$20687_mouseDownEvent=H;var K=function(p){hHb(d,p)};
this.JSC$20687_mouseMoveEvent=K;var c=function(){LzS(d)};
this.JSC$20687_mouseUpEvent=c;this.canvas.addEventListener("mousedown",H);this.canvas.addEventListener("mousemove",K);document.addEventListener("mouseup",c)};
VI1.prototype.removeEventListeners=function(){this.JSC$20687_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20687_mouseDownEvent);this.JSC$20687_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20687_mouseMoveEvent);this.JSC$20687_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20687_mouseUpEvent)};
var MIg=function(d,H){d.removeEventListeners();return new Promise(function(K){var c=new Image;c.crossOrigin="anonymous";c.onload=function(){var p=d.imageEditorBuilder(d.canvas,c);d.addEventListeners(p);K(p)};
c.src=H})},xc=function(d,H,K,c,p,g,a,e){this.canvas=d;
this.image=H;this.requiredRatio=K;this.minImageCropDimension=c;this.minOutputImageResolution=p;this.component=g;this.styleFocusedCorner=e===void 0?!0:e;this.action=2;this.focusedCorner=this.resizeCorner=0;d=this.canvas.getContext("2d");if(!d)throw Error("vl");this.ctx=d;this.canvasMargin=a!=null?a:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;a=this.image;d=this.canvasInnerWidth/a.width;a.height*d>912&&(d=a.width/a.height*912/a.width);a=d;this.scaledImageWidth=this.canvas.width%2?
ARj(this.image.width*a):fX0(this.image.width*a);this.scaledImageHeight=Math.round(this.image.height*a);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20690_overlayMarginBottom=this.JSC$20690_overlayMarginTop=this.canvasMargin;this.JSC$20690_overlayMarginRight=this.JSC$20690_overlayMarginLeft=this.horizontalMargin;this.JSC$20690_overlayWidth=this.scaledImageWidth;this.JSC$20690_overlayHeight=this.scaledImageHeight;
d=this.image.width/this.image.height;d>this.requiredRatio?(this.JSC$20690_overlayWidth=this.canvas.width%2?ARj(this.scaledImageHeight*this.requiredRatio):fX0(this.scaledImageHeight*this.requiredRatio),this.JSC$20690_overlayMarginRight=this.JSC$20690_overlayMarginLeft=(this.canvas.width-this.JSC$20690_overlayWidth)/2):d<this.requiredRatio&&(this.JSC$20690_overlayHeight=this.canvas.height%2?ARj(this.scaledImageWidth/this.requiredRatio):fX0(this.scaledImageWidth/this.requiredRatio),this.JSC$20690_overlayMarginBottom=
this.JSC$20690_overlayMarginTop=(this.canvas.height-this.JSC$20690_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*a,this.scaledImageWidth);mbj(this)};
xc.prototype.getContext=function(){return this.ctx};
var Ubb=function(d,H){H={x:Math.round(H.pageX-d.canvas.getBoundingClientRect().left),y:Math.round(H.pageY-d.canvas.getBoundingClientRect().top)};d.dragStart=H;wJg(d,H)!==0?(d.action=1,P6b(d,H),d.resizeCorner=wJg(d,H)):H.x>d.JSC$20690_overlayMarginLeft&&H.x<d.JSC$20690_overlayMarginLeft+d.JSC$20690_overlayWidth&&H.y>d.JSC$20690_overlayMarginTop&&H.y<d.JSC$20690_overlayMarginTop+d.JSC$20690_overlayHeight&&(d.action=0)},uzg=function(d,H){switch(H){case 1:return{x:d.JSC$20690_overlayMarginLeft,
y:d.JSC$20690_overlayMarginTop};case 2:return{x:d.JSC$20690_overlayMarginLeft,y:d.JSC$20690_overlayMarginTop+d.JSC$20690_overlayHeight};case 3:return{x:d.JSC$20690_overlayMarginLeft+d.JSC$20690_overlayWidth,y:d.JSC$20690_overlayMarginTop};case 4:return{x:d.JSC$20690_overlayMarginLeft+d.JSC$20690_overlayWidth,y:d.JSC$20690_overlayMarginTop+d.JSC$20690_overlayHeight};default:throw Error("wl");}},rdq=function(d,H){if(d.focusedCorner!==0){d.dragStart=uzg(d,d.focusedCorner);
d.action=1;d.resizeCorner=d.focusedCorner;var K=d.dragStart.x,c=d.dragStart.y;switch(H){case 0:d.focusedCorner===1||d.focusedCorner===4?(K-=10,c-=10):(K-=10,c+=10);break;case 1:d.focusedCorner===1||d.focusedCorner===4?(K+=10,c+=10):(K+=10,c-=10);break;case 2:K=d.focusedCorner===1||d.focusedCorner===4?K-10:K+10;c-=10;break;case 3:K=d.focusedCorner===1||d.focusedCorner===4?K+10:K-10;c+=10;break;default:throw Error("xl");}Iq1(d,{x:K,y:c});mbj(d);d.action=2;d.dragStart=void 0}},hHb=function(d,H){H={x:Math.round(H.pageX-
d.canvas.getBoundingClientRect().left),
y:Math.round(H.pageY-d.canvas.getBoundingClientRect().top)};P6b(d,H);switch(d.action){case 1:Iq1(d,H);break;case 0:d.dragStart&&(d.JSC$20690_overlayMarginLeft=Math.max(d.horizontalMargin,Math.min(d.JSC$20690_overlayMarginLeft-(d.dragStart.x-H.x),d.horizontalMargin+d.scaledImageWidth-d.JSC$20690_overlayWidth)),d.JSC$20690_overlayMarginRight=d.canvas.width-d.JSC$20690_overlayMarginLeft-d.JSC$20690_overlayWidth,d.JSC$20690_overlayMarginTop=Math.max(d.canvasMargin,Math.min(d.JSC$20690_overlayMarginTop-
(d.dragStart.y-H.y),d.scaledImageHeight-d.JSC$20690_overlayHeight+d.canvasMargin)),d.JSC$20690_overlayMarginBottom=d.canvas.height-(d.JSC$20690_overlayMarginTop+d.JSC$20690_overlayHeight));break;default:return}mbj(d);d.dragStart=H},LzS=function(d){d.action=2;
d.dragStart=void 0;document.body.style.cursor="auto"},P6b=function(d,H){switch(wJg(d,H)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:d.action!==1&&(document.body.style.cursor="auto")}},wJg=function(d,H){var K=d.JSC$20690_overlayMarginLeft-5,c=d.JSC$20690_overlayMarginTop-5,p=d.JSC$20690_overlayMarginLeft+d.JSC$20690_overlayWidth-5;
d=d.JSC$20690_overlayMarginTop+d.JSC$20690_overlayHeight-5;return WzG(H,{x:K,y:c})?1:WzG(H,{x:p,y:c})?3:WzG(H,{x:K,y:d})?2:WzG(H,{x:p,y:d})?4:0},WzG=function(d,H){return d.x>=H.x&&d.x<=H.x+10&&d.y>=H.y&&d.y<=H.y+10},Iq1=function(d,H){if(d.dragStart)switch(d.resizeCorner){case 2:Math.abs((d.JSC$20690_overlayMarginLeft+d.JSC$20690_overlayWidth-H.x)/(H.y-d.JSC$20690_overlayMarginTop))>=d.requiredRatio?BJt(d,H.x):zHZ(d,H.y);
break;case 1:Math.abs((d.JSC$20690_overlayMarginLeft+d.JSC$20690_overlayWidth-H.x)/(d.JSC$20690_overlayMarginTop+d.JSC$20690_overlayHeight-H.y))>=d.requiredRatio?XJZ(d,H.x):zHZ(d,H.y);break;case 4:Math.abs((H.x-d.JSC$20690_overlayMarginLeft)/(H.y-d.JSC$20690_overlayMarginTop))>=d.requiredRatio?BJt(d,H.x):JdG(d,H.y);break;case 3:Math.abs((H.x-d.JSC$20690_overlayMarginLeft)/(d.JSC$20690_overlayMarginTop+d.JSC$20690_overlayHeight-H.y))>=d.requiredRatio?XJZ(d,H.x):JdG(d,H.y);break;default:throw Error("yl");
}},BJt=function(d,H){var K=d.JSC$20690_overlayMarginTop;
d.JSC$20690_overlayMarginBottom=sUb(d,H);d.JSC$20690_overlayHeight=d.canvas.height-d.JSC$20690_overlayMarginBottom-K;d.JSC$20690_overlayWidth=Math.round(d.JSC$20690_overlayHeight*d.requiredRatio);Fzq(d)},XJZ=function(d,H){var K=d.JSC$20690_overlayMarginTop+d.JSC$20690_overlayHeight;
d.JSC$20690_overlayMarginTop=sUb(d,H);d.JSC$20690_overlayHeight=K-d.JSC$20690_overlayMarginTop;d.JSC$20690_overlayWidth=Math.round(d.JSC$20690_overlayHeight*d.requiredRatio);Fzq(d)},Fzq=function(d){switch(d.resizeCorner){case 2:case 1:d.JSC$20690_overlayMarginLeft=d.canvas.width-d.JSC$20690_overlayMarginRight-d.JSC$20690_overlayWidth;
break;case 4:case 3:d.JSC$20690_overlayMarginRight=d.canvas.width-d.JSC$20690_overlayMarginLeft-d.JSC$20690_overlayWidth;break;default:throw Error("yl");}},zHZ=function(d,H){var K=d.JSC$20690_overlayMarginLeft+d.JSC$20690_overlayWidth;
d.JSC$20690_overlayMarginLeft=ZYZ(d,H);d.JSC$20690_overlayWidth=K-d.JSC$20690_overlayMarginLeft;d.JSC$20690_overlayHeight=Math.round(d.JSC$20690_overlayWidth/d.requiredRatio);TJG(d)},JdG=function(d,H){var K=d.JSC$20690_overlayMarginLeft;
d.JSC$20690_overlayMarginRight=ZYZ(d,H);d.JSC$20690_overlayWidth=d.canvas.width-d.JSC$20690_overlayMarginRight-K;d.JSC$20690_overlayHeight=Math.round(d.JSC$20690_overlayWidth/d.requiredRatio);TJG(d)},TJG=function(d){switch(d.resizeCorner){case 2:case 4:d.JSC$20690_overlayMarginBottom=d.canvas.height-d.JSC$20690_overlayMarginTop-d.JSC$20690_overlayHeight;
break;case 1:case 3:d.JSC$20690_overlayMarginTop=d.canvas.height-d.JSC$20690_overlayMarginBottom-d.JSC$20690_overlayHeight;break;default:throw Error("yl");}},sUb=function(d,H){switch(d.resizeCorner){case 2:H=d.canvas.height-(d.JSC$20690_overlayMarginTop+QUv(d,H));
break;case 4:H=d.canvas.height-(d.JSC$20690_overlayMarginTop+tIt(d,H));break;case 1:H=d.JSC$20690_overlayMarginTop+d.JSC$20690_overlayHeight-QUv(d,H);break;case 3:H=d.JSC$20690_overlayMarginTop+d.JSC$20690_overlayHeight-tIt(d,H);break;default:throw Error("yl");}return Math.max(H,d.canvasMargin)},QUv=function(d,H){H=d.JSC$20690_overlayMarginLeft+d.JSC$20690_overlayWidth-Math.max(H,d.horizontalMargin);
H=H<0?d.JSC$20690_overlayWidth:Math.max(H,d.minOverlayWidth);return Math.round(H/d.requiredRatio)},tIt=function(d,H){H=d.canvas.width-Math.max(d.canvas.width-H,d.horizontalMargin)-d.JSC$20690_overlayMarginLeft;
H=H<0?d.JSC$20690_overlayWidth:Math.max(H,d.minOverlayWidth);return Math.round(H/d.requiredRatio)},ZYZ=function(d,H){switch(d.resizeCorner){case 2:H=d.canvas.width-d.JSC$20690_overlayMarginRight-Yrq(d,H);
break;case 4:H=d.canvas.width-d.JSC$20690_overlayMarginLeft-Yrq(d,H);break;case 1:H=d.canvas.width-d.JSC$20690_overlayMarginRight-OY1(d,H);break;case 3:H=d.canvas.width-d.JSC$20690_overlayMarginLeft-OY1(d,H);break;default:throw Error("yl");}return Math.max(H,d.horizontalMargin)},Yrq=function(d,H){H=d.canvas.height-Math.max(d.canvas.height-H,d.canvasMargin)-d.JSC$20690_overlayMarginTop;
return H<0?d.JSC$20690_overlayWidth:Math.max(Math.round(H*d.requiredRatio),d.minOverlayWidth)},OY1=function(d,H){H=d.JSC$20690_overlayMarginTop+d.JSC$20690_overlayHeight-Math.max(H,d.canvasMargin);
return H<0?d.JSC$20690_overlayWidth:Math.max(Math.round(H*d.requiredRatio),d.minOverlayWidth)},mbj=function(d){d.ctx.clearRect(0,0,d.canvas.width,d.canvas.height);
d.ctx.drawImage(d.image,0,0,d.image.width,d.image.height,d.horizontalMargin,d.canvasMargin,d.canvas.width-2*d.horizontalMargin,d.scaledImageHeight);d.ctx.fillStyle="rgba(0, 0, 0, 0.7)";d.ctx.fillRect(d.horizontalMargin,d.JSC$20690_overlayMarginTop,d.JSC$20690_overlayMarginLeft-d.horizontalMargin,d.JSC$20690_overlayHeight);d.ctx.fillRect(d.JSC$20690_overlayMarginLeft+d.JSC$20690_overlayWidth,d.JSC$20690_overlayMarginTop,d.JSC$20690_overlayMarginRight-d.horizontalMargin,d.JSC$20690_overlayHeight);d.ctx.fillRect(d.horizontalMargin,
d.canvasMargin,d.scaledImageWidth,d.JSC$20690_overlayMarginTop-d.canvasMargin);d.ctx.fillRect(d.horizontalMargin,d.JSC$20690_overlayMarginTop+d.JSC$20690_overlayHeight,d.scaledImageWidth,d.JSC$20690_overlayMarginBottom-d.canvasMargin);d.drawOverlay();d.component&&_.GT(d.component,"image-updated")};
xc.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20690_overlayMarginLeft,this.JSC$20690_overlayMarginTop,this.JSC$20690_overlayWidth,this.JSC$20690_overlayHeight);Srb(this)};
var Srb=function(d){var H=d.JSC$20690_overlayMarginLeft-5,K=d.JSC$20690_overlayMarginTop-5,c=d.JSC$20690_overlayMarginLeft+d.JSC$20690_overlayWidth-5,p=d.JSC$20690_overlayMarginTop+d.JSC$20690_overlayHeight-5;d.ctx.fillStyle="#FFF";d.ctx.fillRect(H,K,10,10);d.ctx.strokeRect(H,K,10,10);d.ctx.fillRect(c,K,10,10);d.ctx.strokeRect(c,K,10,10);d.ctx.fillRect(H,p,10,10);d.ctx.strokeRect(H,p,10,10);d.ctx.fillRect(c,p,10,10);d.ctx.strokeRect(c,p,10,10);if(d.focusedCorner!==0&&d.styleFocusedCorner){d.ctx.lineWidth=
4;d.ctx.strokeStyle="#3EA6FF";switch(d.focusedCorner){case 1:--H;--K;break;case 2:--H;K=p-1;break;case 3:H=c-1;--K;break;case 4:H=c-1;K=p-1;break;default:return}d.ctx.strokeRect(H,K,12,12)}};
xc.prototype.crop=function(d,H){H=H===void 0?!0:H;var K=this.image.width/this.scaledImageWidth,c=document.createElement("canvas"),p=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],g=this.JSC$20690_overlayWidth*K,a=this.JSC$20690_overlayHeight*K;c.width=Math.max(g,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);c.height=Math.max(a,p);d&&(c.width=Math.min(c.width,c.height),c.height=Math.min(c.width,c.height));
d=c.getContext("2d");if(!d)throw Error("ml");p=(this.JSC$20690_overlayMarginLeft-this.horizontalMargin)*K;K*=this.JSC$20690_overlayMarginTop-this.canvasMargin;H||(d.fillStyle="white",d.fillRect(0,0,c.width,c.height));d.drawImage(this.image,p,K,g,a,0,0,c.width,c.height);return c};var EeZ=function(d,H,K,c,p){xc.call(this,d,H,K,c,void 0,p,8,!1)};
_.m(EeZ,xc);EeZ.prototype.drawOverlay=function(){var d=this.getContext(),H=this.JSC$20690_overlayWidth,K=this.JSC$20690_overlayHeight,c=this.JSC$20690_overlayMarginTop,p=this.JSC$20690_overlayMarginLeft;d.lineWidth=2;d.strokeStyle="#3EA6FF";d.beginPath();d.arc(p+H/2,c+K/2,H/2,0,2*Math.PI);d.stroke();d.strokeRect(p,c,H,K);Srb(this)};
var ydG={maxFileSizeMB:15,minWidth:98,minHeight:98},bYq=["image/png","image/jpeg","image/gif"],nw=function(){var d=_.B.apply(this,arguments)||this;d.fileSelectorFocusListener=null;d.errorMessage=null;d.isLoading=!0;d.hideContainer=!0;d.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return d};
_.m(nw,_.B);_.G=nw.prototype;_.G.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.G.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.G.computePlaylistThumbnail=function(d){return d==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.G.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.oF(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.G.setErrorState=function(d){this.resetErrorState();d&&(this.errorMessage=d)};
_.G.showPopup=function(){var d=this;this.hideContainer=!1;_.mf(_.Xp,function(){_.GT(d.hostElement,"yt-refit")});
this.isLoading=!1};
_.G.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.G.closePopup=function(){this.resetFileSelector();_.oF(this.hostElement,"yt-close-popup-action",[this.is])};
_.G.onCancelTap=function(){this.isPlaylistThumbnail||_.oF(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.G.openFileSelector=function(){var d=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.mf(_.Xp,function(){setTimeout(function(){if(!d.fileSelector.files||d.fileSelector.files.length===0)d.onCancelTap();d.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(H){H instanceof Error?_.z5(H):_.Xi(new _.m1(JSON.stringify(H)))}};
_.G.handleFileSelection=function(){var d=this,H,K,c,p,g,a;return _.l(function(e){switch(e.nextAddress){case 1:_.e2(e,2);if(!d.fileSelector.files||!d.imageEditorCanvas)return d.onCancelTap(),e.return();H=d.fileSelector.files[0];RHZ(d.imageChecker,H);_.e2(e,4);return e.yield(huU(H),6);case 6:d.mimeType=e.yieldResult;_.Em(e,5,2);break;case 4:_.RV(e,2),_.oF(d.hostElement,"yt-image-selection-error-action",[(K=d.data)==null?void 0:K.genericImageLoadErrorMessage]),d.onCancelTap();case 5:c=new FileReader;
c.addEventListener("load",function(){var k,C;return _.l(function(R){if(R.nextAddress==1){if(!c.result)return _.Jf(Error("ol")),R.return();k=c.result;C=new Image;C.src=k;C.onload=function(){try{var V=d.imageChecker;if(C.width<V.requirements.minWidth||C.height<V.requirements.minHeight)throw new neb(V.requirements.minWidth,V.requirements.minHeight);}catch(L){if(L instanceof neb){var U;_.oF(d.hostElement,"yt-image-selection-error-action",[(U=d.data)==null?void 0:U.imageDimensionErrorMessage]);d.logImageDimensionErrorVe()}else L instanceof
Error?_.z5(L):(V=new _.m1(JSON.stringify(L)),_.z5(V));d.onCancelTap()}d.showPopup()};
C.onerror=function(){var V;_.oF(d.hostElement,"yt-image-selection-error-action",[(V=d.data)==null?void 0:V.genericImageLoadErrorMessage]);d.onCancelTap()};
return R.yield(MIg(d.imageEditorCanvas,k),2)}d.imageEditor=R.yieldResult;d.updatePositionOfAllCorners();d.addEventListeners(d.imageEditor);_.VE(R)})},!1);
c.readAsDataURL(H);_.Em(e,0);break;case 2:p=_.RV(e),p instanceof kc?_.oF(d.hostElement,"yt-image-selection-error-action",[(g=d.data)==null?void 0:g.imageSizeErrorMessage]):(p instanceof Error?_.z5(p):_.Xi(new _.m1(JSON.stringify(p))),_.oF(d.hostElement,"yt-image-selection-error-action",[(a=d.data)==null?void 0:a.genericImageLoadErrorMessage])),d.onCancelTap(),_.VE(e)}})};
_.G.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var d=_.UG(_.hR(),{veType:232707,visualElement:_.l8(232707)});d&&(d={visualElement:d},_.Vp().reportShown(d))}};
_.G.handleImageSelectionErrorAction=function(d){this.isPlaylistThumbnail&&_.MgX(this.hostElement,d)};
_.G.convertToImageFormatBundle=function(d){var H=this,K,c,p;return _.l(function(g){switch(g.nextAddress){case 1:return K=d.toDataURL(H.outputMimeType,1),g.yield(Ll0(K),2);case 2:c=g.yieldResult;_.e2(g,3);RHZ(H.imageChecker,c);_.Em(g,4);break;case 3:p=_.RV(g);if(!(p instanceof kc))throw p;_.Jf(new _.m1("Output size is bigger than input size for image",H.mimeType,H.outputMimeType,c.size));K=d.toDataURL("image/jpeg",.95);return g.yield(Ll0(K),6);case 6:c=g.yieldResult;case 4:return g.return({dataUrl:K,
imageFile:c})}})};
_.G.handleUploadImageToScottyCommand=function(d){var H=this,K,c,p,g,a,e,k,C,R,V;return _.l(function(U){switch(U.nextAddress){case 1:if(!H.imageEditor||!_.M(d,Hdg))return U.return();K=_.M(d,Hdg).scottyUploadUrl;if(!K){var L=new _.m1("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.z5(L);return U.return()}_.e2(U,2);H.setLoadingState();c=H.imageEditor.crop(!1,!1);return U.yield(H.convertToImageFormatBundle(c),4);case 4:return p=U.yieldResult,U.yield(Vvt(p.imageFile,K),5);
case 5:g=U.yieldResult;((a=H.data)==null?0:a.onUploadEndpoint)?(e=H.buildUploadServiceEndpoint(g),H.ytComponentBehavior.resolveCommand(e),k=_.M(e,_.sV),((C=k)==null?0:C.params)?H.closePopup():H.resetFileSelector()):(_.oF(H.hostElement,"yt-image-updated-action",[p.dataUrl,g]),H.closePopup());_.Em(U,0);break;case 2:R=_.RV(U),H.setErrorState((V=H.data)==null?void 0:V.uploadErrorMessage),R instanceof Error?_.z5(R):(L=new _.m1(JSON.stringify(R)),_.z5(L)),_.VE(U)}})};
_.G.buildUploadServiceEndpoint=function(d){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",d),this.data.onUploadEndpoint):null};
_.G.dataChanged=function(){var d=this,H;return _.l(function(K){if(K.nextAddress==1){if(!d.data||!d.canvasElement)return K.return();d.data.imageRatio&&d.data.minImageCropWidth||_.Xi(new _.m1("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));H=function(c,p){return d.data.imageType==="IMAGE_TYPE_AVATAR"?new EeZ(c,p,d.data.imageRatio,[d.data.minImageCropWidth,d.data.minImageCropWidth/d.data.imageRatio],d.hostElement):new xc(c,p,d.data.imageRatio,[d.data.minImageCropWidth,
d.data.minImageCropWidth/d.data.imageRatio],void 0,d.hostElement,8,!1)};
d.imageEditorCanvas=new VI1(d.canvasElement,H);return d.data.url?K.yield(MIg(d.imageEditorCanvas,d.data.url),3):(d.hideContainer=!0,d.openFileSelector(),K.jumpTo(0))}d.imageEditor=K.yieldResult;d.showPopup();d.addEventListeners(d.imageEditor);_.VE(K)})};
_.G.addEventListeners=function(d){this.removeEventListeners();var H=function(p){Ubb(d,p)};
this.JSC$20698_mouseDownEvent=H;var K=function(p){hHb(d,p)};
this.JSC$20698_mouseMoveEvent=K;var c=function(){LzS(d)};
this.JSC$20698_mouseUpEvent=c;this.topLeftCorner.addEventListener("mousedown",H);this.topLeftCorner.addEventListener("mousemove",K);this.topLeftCorner.addEventListener("mouseup",c);this.topRightCorner.addEventListener("mousedown",H);this.topRightCorner.addEventListener("mousemove",K);this.topRightCorner.addEventListener("mouseup",c);this.bottomLeftCorner.addEventListener("mousedown",H);this.bottomLeftCorner.addEventListener("mousemove",K);this.bottomLeftCorner.addEventListener("mouseup",c);this.bottomRightCorner.addEventListener("mousedown",
H);this.bottomRightCorner.addEventListener("mousemove",K);this.bottomRightCorner.addEventListener("mouseup",c)};
_.G.removeEventListeners=function(){this.JSC$20698_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20698_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20698_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20698_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20698_mouseDownEvent));this.JSC$20698_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20698_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20698_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20698_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20698_mouseMoveEvent));this.JSC$20698_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20698_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20698_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20698_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20698_mouseUpEvent))};
_.G.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var d=document.activeElement;d&&d.shadowRoot&&d.shadowRoot.activeElement;)d=d.shadowRoot.activeElement;switch(d){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.G.updatePositionOfCorner=function(d,H){var K=d.y-H.offsetHeight/2+4;H.style.left=d.x-H.offsetWidth/2+16+"px";H.style.top=K+"px"};
_.G.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var d=_.q([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),H=d.next();!H.done;H=d.next()){H=H.value;var K=uzg(this.imageEditor,H.corner);this.updatePositionOfCorner(K,H.div)}};
_.G.onLeft=function(d){this.imageEditor&&this.setFocusInImageEditor()&&(rdq(this.imageEditor,0),this.updatePositionOfAllCorners(),d.preventDefault())};
_.G.onRight=function(d){this.imageEditor&&this.setFocusInImageEditor()&&(rdq(this.imageEditor,1),this.updatePositionOfAllCorners(),d.preventDefault())};
_.G.onUp=function(d){this.imageEditor&&this.setFocusInImageEditor()&&(rdq(this.imageEditor,2),this.updatePositionOfAllCorners(),d.preventDefault())};
_.G.onDown=function(d){this.imageEditor&&this.setFocusInImageEditor()&&(rdq(this.imageEditor,3),this.updatePositionOfAllCorners(),d.preventDefault())};
_.G.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.H3.Object.defineProperties(nw.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&bYq.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var d,H,K;((H=this.data)==null?0:H.imageRatio)&&((K=this.data)==null?0:K.minImageCropWidth)?d={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:d=ydG;return new C6T(d)}}});
nw.prototype.updatePositionOfAllCorners=nw.prototype.updatePositionOfAllCorners;nw.prototype.dataChanged=nw.prototype.dataChanged;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],nw.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],nw.prototype,"ytComponentBehavior",void 0);_.t([_.u(_.hQ),_.O("design:type",Object)],nw.prototype,"ironA11yKeysBehavior",void 0);
_.t([_.VP("#canvas"),_.O("design:type",HTMLCanvasElement)],nw.prototype,"canvasElement",void 0);_.t([_.VP("#file-selector"),_.O("design:type",HTMLInputElement)],nw.prototype,"fileSelector",void 0);_.t([_.VP("#top-left-corner"),_.O("design:type",HTMLDivElement)],nw.prototype,"topLeftCorner",void 0);_.t([_.VP("#top-right-corner"),_.O("design:type",HTMLDivElement)],nw.prototype,"topRightCorner",void 0);
_.t([_.VP("#bottom-left-corner"),_.O("design:type",HTMLDivElement)],nw.prototype,"bottomLeftCorner",void 0);_.t([_.VP("#bottom-right-corner"),_.O("design:type",HTMLDivElement)],nw.prototype,"bottomRightCorner",void 0);_.t([_.r(),_.O("design:type",Object)],nw.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],nw.prototype,"errorMessage",void 0);_.t([_.r(),_.O("design:type",Object)],nw.prototype,"isLoading",void 0);_.t([_.r(),_.O("design:type",Object)],nw.prototype,"hideContainer",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.O("design:type",Boolean)],nw.prototype,"isPlaylistThumbnail",void 0);_.t([_.Mr("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],nw.prototype,"dataChanged",null);_.t([_.nK("image-updated"),_.nK("yt-refit"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nw.prototype,"updatePositionOfAllCorners",null);
_.t([_.ZV({is:"yt-image-editor-renderer",disableElementRegistration:!0})],nw);
_.T(nw,"yt-image-editor-renderer",function(){if(xb1===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.channels.yt_image_editor_renderer.yt.image.editor.renderer.css.js--\x3e<div class="container style-scope yt-image-editor-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope yt-image-editor-renderer">\n    <h2 class="style-scope yt-image-editor-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope yt-image-editor-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="content style-scope yt-image-editor-renderer" slot="content" no-padding="" id="canvas-container">\n    <div class="error style-scope yt-image-editor-renderer" hidden="[[!errorMessage]]">\n      <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope yt-image-editor-renderer"></yt-icon>\n      <yt-formatted-string id="error" class="error-message style-scope yt-image-editor-renderer" text="[[errorMessage]]">\n    </yt-formatted-string>\n    </div>\n    <canvas id="canvas" width="600" height="600" class="style-scope yt-image-editor-renderer">\n    </canvas>\n    <div class="drag top-left style-scope yt-image-editor-renderer" id="top-left-corner" aria-label="[[data.topLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag top-right style-scope yt-image-editor-renderer" id="top-right-corner" aria-label="[[data.topRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-left style-scope yt-image-editor-renderer" id="bottom-left-corner" aria-label="[[data.bottomLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-right style-scope yt-image-editor-renderer" id="bottom-right-corner" aria-label="[[data.bottomRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n  </div>\n  <div class="button-layer style-scope yt-image-editor-renderer">\n    <input id="file-selector" accept="image/*" hidden="" type="file" on-change="handleFileSelection" class="style-scope yt-image-editor-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="update-button" data="[[data.updateButton.buttonRenderer]]" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner-container style-scope yt-image-editor-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope yt-image-editor-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;kUZ===void 0&&(kUZ=document.createElement("template"));var c=kUZ;K.call(H,c.content.cloneNode(!0),d.content.firstChild);xb1=d}d=xb1;return d},{mode:2});var NJZ;var Db1;var Cw=function(){return _.B.apply(this,arguments)||this};
_.m(Cw,_.B);Cw.prototype.updateMinutesFromBinding=function(d){this.handleMinutesChanged&&this.handleMinutesChanged(d)};
Cw.prototype.updateSecondsFromBinding=function(d){this.handleSecondsChanged&&this.handleSecondsChanged(d)};
Cw.prototype.updateDescriptionFromBinding=function(d){this.handleDescriptionChanged&&this.handleDescriptionChanged(d)};
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Cw.prototype,"ytComponentBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Cw.prototype,"data",void 0);_.t([_.r(),_.O("design:type",String)],Cw.prototype,"minutes",void 0);_.t([_.r(),_.O("design:type",String)],Cw.prototype,"seconds",void 0);_.t([_.r(),_.O("design:type",String)],Cw.prototype,"description",void 0);_.t([_.r(),_.O("design:type",Function)],Cw.prototype,"handleMinutesChanged",void 0);
_.t([_.r(),_.O("design:type",Function)],Cw.prototype,"handleSecondsChanged",void 0);_.t([_.r(),_.O("design:type",Function)],Cw.prototype,"handleDescriptionChanged",void 0);_.t([_.r(),_.O("design:type",Number)],Cw.prototype,"characterLimit",void 0);_.t([_.r(),_.O("design:type",Number)],Cw.prototype,"textNumRows",void 0);_.t([_.ZV({is:"yt-report-details-form-content",disableElementRegistration:!0})],Cw);
_.T(Cw,"yt-report-details-form-content",function(){if(Db1===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_content.yt.report.details.form.content.css.js--\x3e<div id="content" class="style-scope yt-report-details-form-content"><label id="timestamp" class="style-scope yt-report-details-form-content">\n    [[getSimpleString(data.timestampLabel)]]\n    <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope yt-report-details-form-content"></yt-timestamp-input></label><div id="description" class="style-scope yt-report-details-form-content"><tp-yt-paper-input-container no-label-float="" use-v2-underline="" class="style-scope yt-report-details-form-content"><tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope yt-report-details-form-content" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[characterLimit]]" placeholder="[[getSimpleString(data.descriptionHint)]]" rows$="[[textNumRows]]" value="[[description]]" on-value-changed="updateDescriptionFromBinding"></tp-yt-iron-autogrow-textarea><tp-yt-paper-input-char-counter slot="add-on" class="style-scope yt-report-details-form-content"></tp-yt-paper-input-char-counter></tp-yt-paper-input-container></div><yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope yt-report-details-form-content"></yt-formatted-string></div>');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;NJZ===void 0&&(NJZ=document.createElement("template"));var c=NJZ;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Db1=d}d=Db1;return d},{mode:2});var fqU;var AdT;var R8=function(){var d=_.B.apply(this,arguments)||this;d.updateMinutesFromBinding=function(H){d.minutes=H.detail.value};
d.updateSecondsFromBinding=function(H){d.seconds=H.detail.value};
d.updateDescriptionFromBinding=function(H){d.description=H.detail.value};
return d};
_.m(R8,_.B);_.G=R8.prototype;_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.G.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.submitButton":{id:"submit-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.G.ready=function(){_.Gn(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.G.onSubmitYtAction=function(d){var H=d.detail;H.actionName==="yt-service-request"&&(H=H.args[1],H.flagEndpoint&&(d.stopPropagation(),this.refireAction(H)))};
_.G.refireAction=function(d){var H={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(H.vss_id=this.vssId);_.aF(this.hostElement,[d,H]);this.submitDisabled=!0};
_.G.dataChanged=function(){var d=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var H=_.Kf();H&&H.getPlayerPromise().then(function(K){var c=K.getOption("cc","track")||K.getOption("captions","track");c&&(d.vssId=c.vss_id);K=K.getCurrentTime();d.minutes=Math.floor(K/60).toString();d.seconds=(Math.floor(K)%60).toString()})};
_.G.updateSubmitButtonState=function(){var d;((d=this.data)==null?0:d.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.G.onYtServiceRequestCompleted=function(){_.oF(this.hostElement,"yt-close-popup-action")};
_.G.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.H3.Object.defineProperties(R8.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var d;return((d=this.data)==null?void 0:d.textNumRows)||4}}});
R8.prototype.onYtServiceRequestError=R8.prototype.onYtServiceRequestError;R8.prototype.onYtServiceRequestCompleted=R8.prototype.onYtServiceRequestCompleted;R8.prototype.updateSubmitButtonState=R8.prototype.updateSubmitButtonState;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],R8.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],R8.prototype,"ytRendererBehavior",void 0);
_.t([_.r({observer:"dataChanged"}),_.O("design:type",Object)],R8.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Boolean)],R8.prototype,"submitDisabled",void 0);_.t([_.r(),_.O("design:type",String)],R8.prototype,"minutes",void 0);_.t([_.r(),_.O("design:type",String)],R8.prototype,"seconds",void 0);_.t([_.r(),_.O("design:type",String)],R8.prototype,"description",void 0);_.t([_.r(),_.O("design:type",String)],R8.prototype,"vssId",void 0);
_.t([_.r({value:_.Fm("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.O("design:type",Boolean)],R8.prototype,"isMusic",void 0);_.t([_.I("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],R8.prototype,"characterLimit",null);_.t([_.I("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],R8.prototype,"textNumRows",null);
_.t([_.Mr("minutes","seconds","description","submitDisabled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],R8.prototype,"updateSubmitButtonState",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],R8.prototype,"onYtServiceRequestCompleted",null);
_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],R8.prototype,"onYtServiceRequestError",null);_.t([_.ZV({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],R8);
_.T(R8,"yt-report-details-form-renderer",function(){if(AdT===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_renderer.yt.report.details.form.renderer.css.js--\x3e<div id="header" class="style-scope yt-report-details-form-renderer">\n  <div id="back-button" class="style-scope yt-report-details-form-renderer"></div>\n  <h2 id="title" class="style-scope yt-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n</div>\n  <yt-report-details-form-content character-limit="[[characterLimit]]" data="[[data]]" description="[[description]]" handle-description-changed="[[updateDescriptionFromBinding]]" handle-minutes-changed="[[updateMinutesFromBinding]]" handle-seconds-changed="[[updateSecondsFromBinding]]" minutes="[[minutes]]" seconds="[[seconds]]" text-num-rows="[[textNumRows]]" class="style-scope yt-report-details-form-renderer">\n  </yt-report-details-form-content>\n<div id="buttons" class="style-scope yt-report-details-form-renderer">\n  <div id="cancel-button" class="style-scope yt-report-details-form-renderer"></div>\n  <div id="submit-button" class="style-scope yt-report-details-form-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;fqU===void 0&&(fqU=document.createElement("template"));var c=fqU;K.call(H,c.content.cloneNode(!0),d.content.firstChild);AdT=d}d=AdT;return d});var jUT;var veS;var d0G;var HSZ;var Vg=function(){return _.B.apply(this,arguments)||this};
_.m(Vg,_.B);
Vg.prototype.onCheckedChanged_=function(){if(this.data){var d=_.Gn(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.oF(this.hostElement,"yt-additional-detail-checkbox-update",[d]):this.data.identifier==="yt-hide-user-checkbox"?_.oF(this.hostElement,"yt-hide-user-checkbox-update",[d]):d&&this.data.enableCommand?_.oF(this.hostElement,"yt-modify-report-form-command",[_.M(this.data.enableCommand,Gm1)]):!d&&this.data.disableCommand&&_.oF(this.hostElement,
"yt-modify-report-form-command",[_.M(this.data.enableCommand,Gm1)])}};
Vg.prototype.onLabelTap_=function(d){d.target.tagName!="A"&&(_.Gn(this.hostElement).querySelector("#checkbox").checked=!_.Gn(this.hostElement).querySelector("#checkbox").checked)};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Vg.prototype,"data",void 0);_.t([_.ZV({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Vg);
_.T(Vg,"yt-boolean-form-field-v2-renderer",function(){if(HSZ===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-boolean-form-field-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_boolean_form_field_v2_renderer.yt.boolean.form.field.v2.renderer.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" aria-labelledby="yt-boolean-form-field-v2-renderer-label" checked="[[data.value]]" on-checked-changed="onCheckedChanged_" class="style-scope yt-boolean-form-field-v2-renderer">\n</tp-yt-paper-checkbox>\n<div id="content" class="style-scope yt-boolean-form-field-v2-renderer">\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-label" class="label style-scope yt-boolean-form-field-v2-renderer" text="[[data.label]]" on-tap="onLabelTap_">\n  </yt-formatted-string>\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-tooltip" class="tooltip style-scope yt-boolean-form-field-v2-renderer" text="[[data.tooltip]]">\n  </yt-formatted-string>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;d0G===void 0&&(d0G=document.createElement("template"));var c=d0G;K.call(H,c.content.cloneNode(!0),d.content.firstChild);HSZ=d}d=HSZ;return d});var U6=function(){var d=_.B.apply(this,arguments)||this;d.canShowAdditionalDetailCheckbox=!1;d.canShowCheckbox=!1;d.keepDropdownFocusedAfterSelection=!0;return d};
_.m(U6,_.B);U6.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],U6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],U6.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],U6.prototype,"canShowAdditionalDetailCheckbox",void 0);_.t([_.r(),_.O("design:type",Object)],U6.prototype,"canShowCheckbox",void 0);_.t([_.r(),_.O("design:type",Object)],U6.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.t([_.ZV({is:"yt-report-form-modal-content",disableElementRegistration:!0})],U6);
_.T(U6,"yt-report-form-modal-content",function(){if(veS===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_content.yt.report.form.modal.content.css.js--\x3e<div id="container" hidden="[[!data]]" class="style-scope yt-report-form-modal-content"><yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string><yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" restore-focus-on-close="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-content"></yt-options-renderer><div id="additional-detail-checkbox-container" hidden="[[!canShowAdditionalDetailCheckbox]]" class="style-scope yt-report-form-modal-content"></div><div id="checkbox-container" hidden="[[!canShowCheckbox]]" class="style-scope yt-report-form-modal-content"></div><yt-formatted-string id="footer" hidden="[[!data.footer]]" split-lines="" text="[[data.footer]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;jUT===void 0&&(jUT=document.createElement("template"));var c=jUT;K.call(H,c.content.cloneNode(!0),d.content.firstChild);veS=d}d=veS;return d},{mode:2});var $0G;var KYg;var hz=function(){var d=_.B.apply(this,arguments)||this;d.submitting=!1;d.submitButtonDisabled=!0;d.command=null;d.canShowCheckbox=!1;d.canShowAdditionalDetailCheckbox=!1;d.canShowNextButton=!1;d.additionalDetailCheckboxChecked=!1;d.refitJob=0;d.keepDropdownFocusedAfterSelection=!0;d.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-report-form-endpoint-update":"handleReportFormEndpointUpdateAction","yt-confirm-dialog-close-action":"handleConfirmDialogCloseAction","yt-modify-report-form-command":"handleModifyReportFormCommand",
"yt-additional-detail-checkbox-update":"handleAdditionalDetailCheckboxUpdateAction"};return d};
_.m(hz,_.B);_.G=hz.prototype;_.G.created=function(){this.refitJob=0};
_.G.attached=function(){this.JSC$20721_scroller&&(this.JSC$20721_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20721_scroller.attached&&typeof this.JSC$20721_scroller.attached==="function"&&this.JSC$20721_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.dataChanged=function(d){d&&(this.toggleSubmitButton(!!this.get("data.submitButton.buttonRenderer.isDisabled")),this.set("data.submitButton.buttonRenderer.isDisabled",void 0),this.set("data.nextButton.buttonRenderer.isDisabled",void 0),this.command=null,this.additionalDetailCheckboxChecked=this.canShowNextButton=this.canShowAdditionalDetailCheckbox=this.canShowCheckbox=this.hideReportForm=this.submitting=!1,d.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),d.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.G.onYtPopupOpened=function(){var d=_.Kf();d&&d.getPlayerPromise().then(function(H){H.pauseVideo()})};
_.G.onYtNavigate=function(d){_.M(d.detail.endpoint,_.KUC)&&(d.stopPropagation(),this.hideReportForm=!0)};
_.G.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.G.onYtServiceRequestCompleted=function(d,H){var K=H.actions;if(K){if(K.length===1&&_.M(K[0],_.kW)){var c;K=((c=_.M(K[0],_.kW))==null?void 0:c.commands)||[]}c=0;for(var p=K.length;c<p;c++)_.M(K[c],_.u$)&&(d.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(K[c]))}if(H.data&&(d=this.get("feedbackResponses",H.data)))for(H=0;H<d.length;H++)if(d[H].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.G.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.G._onDescendantIronResize=function(d){d.stopPropagation();return!1};
_.G.handleReportFormEndpointUpdateAction=function(d){if(d.submitEndpoint){var H=this.command=d.submitEndpoint;H=_.M(H,_.dY6);if(H==null?0:H.additionalDetailCheckboxChecked)H.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else d.submitNavigationEndpoint?(this.command=d.submitNavigationEndpoint,this.toggleSubmitButton(!1)):d.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:d.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;d.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",d));this.refit()};
_.G.handleConfirmDialogCloseAction=function(d){d.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.G.submitButtonDisabledChanged=function(){var d=this.hostElement.parentElement;d&&d.invalidateTabbables&&d.invalidateTabbables()};
_.G.handleModifyReportFormCommand=function(d){d=this.get("action",d);d==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:d==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:d==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:d==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:d==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:d==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.G.updateDialogStyling=function(){var d,H,K,c,p,g=((p=(d=this.data)==null?void 0:(H=d.optionsSupportedRenderers)==null?void 0:(K=H.optionsRenderer)==null?void 0:(c=K.items)==null?void 0:c.length)!=null?p:0)<=2?0:240;_.eO(this.hostElement,{"--yt-report-form-modal-renderer-min-width":g+"px"})};
_.G.toggleSubmitButton=function(d){this.submitButtonDisabled=!d;this.submitButtonDisabled=d};
_.G.computeSubmitButtonData=function(d,H){var K={};_.M(H,_.KUC)?K.navigationEndpoint=H:K.command=H||void 0;d&&d.buttonRenderer&&_.rs.extend(K,d.buttonRenderer);return K};
_.G.computeNextButtonData=function(d,H){var K={};if(!d||!d.buttonRenderer)return K;_.rs.extend(K,d.buttonRenderer);if(!H)return K;if(_.M(H,_.KUC))K.navigationEndpoint=MfS(H);else if(K.command=MfS(H),d=_.M(K.command,_.dY6))d.legalCheckboxChecked=!0;return K};
_.G.computeShowNextButton=function(d,H,K){return!!d&&H&&K};
_.G.refit=function(){var d=this;this.refitJob||(this.refitJob=_.Xp.addLowPriorityJob(function(){_.GT(d.hostElement,"yt-refit");d.refitJob=0}))};
_.G.handleAdditionalDetailCheckboxUpdateAction=function(d){this.additionalDetailCheckboxChecked=d;_.M(this.command,_.dY6).additionalDetailCheckboxChecked=d};
_.H3.Object.defineProperties(hz,{template:{configurable:!0,enumerable:!0,get:function(){if(KYg===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_renderer.yt.report.form.modal.renderer.css.js--\x3e<template is="dom-if" if="[[submitting]]" restamp="" class="style-scope yt-report-form-modal-renderer">\n  <div id="container" class="style-scope yt-report-form-modal-renderer">\n    <div id="loading-indicator" class="style-scope yt-report-form-modal-renderer">\n      <tp-yt-paper-spinner-lite active="" class="style-scope yt-report-form-modal-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n</template>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-report-form-modal-renderer"></yt-formatted-string>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-report-form-modal-renderer">\n  <yt-report-form-modal-content can-show-additional-detail-checkbox="[[canShowAdditionalDetailCheckbox]]" can-show-checkbox="[[canShowCheckbox]]" data="[[data]]" keep-dropdown-focused-after-selection="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-report-form-modal-content>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-report-form-modal-renderer">\n  <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="submit-button" data="[[computeSubmitButtonData(data.submitButton, command)]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" hidden="[[computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, command)]]" dialog-confirm="" hidden="[[!computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;$0G===void 0&&($0G=document.createElement("template"));var c=$0G;K.call(H,c.content.cloneNode(!0),d.content.firstChild);KYg=d}d=KYg;return d}}});
hz.prototype.onYtServiceRequestError=hz.prototype.onYtServiceRequestError;hz.prototype.onYtServiceRequestCompleted=hz.prototype.onYtServiceRequestCompleted;hz.prototype.onYtServiceRequestSent=hz.prototype.onYtServiceRequestSent;hz.prototype.onYtNavigate=hz.prototype.onYtNavigate;hz.prototype.onYtPopupOpened=hz.prototype.onYtPopupOpened;_.t([_.u(_.Rm.YtOpenPopupBehavior),_.O("design:type",Object)],hz.prototype,"openPopupBehavior",void 0);
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],hz.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],hz.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],hz.prototype,"eventForwardingBehavior",void 0);_.t([_.u(_.WZ),_.O("design:type",Object)],hz.prototype,"ironResizableBehavior",void 0);_.t([_.r({observer:"dataChanged"}),_.O("design:type",Object)],hz.prototype,"data",void 0);
_.t([_.r(),_.O("design:type",Object)],hz.prototype,"submitting",void 0);_.t([_.r({observer:"submitButtonDisabledChanged"}),_.O("design:type",Object)],hz.prototype,"submitButtonDisabled",void 0);_.t([_.r(),_.O("design:type",Object)],hz.prototype,"command",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],hz.prototype,"hideReportForm",void 0);_.t([_.r(),_.O("design:type",Object)],hz.prototype,"canShowCheckbox",void 0);
_.t([_.r(),_.O("design:type",Object)],hz.prototype,"canShowAdditionalDetailCheckbox",void 0);_.t([_.r(),_.O("design:type",Object)],hz.prototype,"canShowNextButton",void 0);_.t([_.r(),_.O("design:type",Object)],hz.prototype,"additionalDetailCheckboxChecked",void 0);_.t([_.r(),_.O("design:type",Object)],hz.prototype,"refitJob",void 0);_.t([_.r(),_.O("design:type",Object)],hz.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.t([_.VP("#scroller"),_.O("design:type",Object)],hz.prototype,"JSC$20721_scroller",void 0);_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hz.prototype,"onYtPopupOpened",null);_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],hz.prototype,"onYtNavigate",null);
_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],hz.prototype,"onYtServiceRequestSent",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],hz.prototype,"onYtServiceRequestCompleted",null);
_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],hz.prototype,"onYtServiceRequestError",null);_.t([_.ZV({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],hz);var ciT;var plS;var Lw=function(){return _.B.apply(this,arguments)||this};
_.m(Lw,_.B);_.G=Lw.prototype;_.G.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.G.onVisible=function(){var d,H;(H=_.Kj().resolve(_.$p(_.WX)))==null||H.enqueue({label:_.jG((d=this.data)==null?void 0:d.messageTitle),elementToFocus:this.hostElement})};
_.G.onThumbnailLoaded=function(){_.GT(this.hostElement,"yt-refit")};
_.G.onDismissTap=function(){_.oF(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.G.computeAlternateIcon=function(d){return d?d==="BACKSTAGE_ARTWORK"?"backstage:artwork":d:null};
_.G.computeFontFamily=function(d){return d==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.G.computeBackgroundStyle=function(d,H){if(d=this.computeBackgroundImage(d,H))if(d=_.od(d.thumbnails))return'background-image: url("'+d+'");'};
_.G.computeHasFullHeightImage=function(d){return!(!(d&&d.thumbnails&&d.thumbnails.length>0)||this.modern)};
_.G.isModernStyle=function(d){return d.style==="STYLE_MODERN"};
_.G.computeIcon=function(d,H){if(d&&d.icon)return H?d.iconDark:d.icon};
_.G.computeBackgroundImage=function(d,H){if(d&&d.backgroundImage)return H?d.backgroundImageDark:d.backgroundImage};
_.G.computeLogo=function(d,H){if(d&&d.logo)return H?d.logoDark:d.logo};
_.G.computeShouldShowModernIcon=function(d,H){return d&&!!H};
_.G.getLogoContainerClassName=function(d){return this.logoWithPadding(d)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.G.getLogoImageId=function(d){return this.logoWithPadding(d)?"mealbar-logo-with-padding":"mealbar-logo"};
_.G.logoWithPadding=function(d){var H,K,c;return(d=(H=this.computeLogo(d,this.isDarkTheme))==null?void 0:(K=H.thumbnails)==null?void 0:(c=K[0])==null?void 0:c.height)&&d%31===0?!0:!1};
Lw.prototype.onThumbnailLoaded=Lw.prototype.onThumbnailLoaded;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.t([_.r({}),_.O("design:type",Object)],Lw.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.O("design:type",Boolean)],Lw.prototype,"modern",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],Lw.prototype,"isDarkTheme",void 0);
_.t([_.r({computed:"computeIcon(data, isDarkTheme)"}),_.O("design:type",Object)],Lw.prototype,"icon",void 0);_.t([_.r({computed:"computeLogo(data, isDarkTheme)"}),_.O("design:type",Object)],Lw.prototype,"logo",void 0);_.t([_.r({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.O("design:type",Object)],Lw.prototype,"backgroundStyle",void 0);_.t([_.r({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.O("design:type",Object)],Lw.prototype,"alternateIcon",void 0);
_.t([_.r({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.O("design:type",Boolean)],Lw.prototype,"hasFullHeightImage",void 0);_.t([_.r({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.O("design:type",Boolean)],Lw.prototype,"useYoutubeSans",void 0);_.t([_.r({computed:"computeShouldShowModernIcon(modern, icon)"}),_.O("design:type",Boolean)],Lw.prototype,"shouldShowModernIcon",void 0);
_.t([_.nK("yt-img-shadow-loaded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lw.prototype,"onThumbnailLoaded",null);_.t([_.ZV({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Lw);
_.T(Lw,"yt-mealbar-promo-renderer",function(){if(plS===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-mealbar-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_mealbar_promo_renderer.yt.mealbar.promo.renderer.css.js--\x3e<template is="dom-if" if="[[!modern]]" class="style-scope yt-mealbar-promo-renderer">\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" notify-on-loaded="" thumbnail="[[data.icon]]" class="style-scope yt-mealbar-promo-renderer">\n  </yt-img-shadow>\n  <yt-icon id="alternate-icon" hidden="[[!alternateIcon]]" icon="[[alternateIcon]]" class="style-scope yt-mealbar-promo-renderer"></yt-icon>\n</template>\n<div id="main" style$="[[backgroundStyle]]" class="style-scope yt-mealbar-promo-renderer">\n  <div class="yt-mealbar-promo-renderer-content style-scope yt-mealbar-promo-renderer">\n    <div class="style-scope yt-mealbar-promo-renderer">\n      <template is="dom-if" if="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n        <div class$="[[getLogoContainerClassName(data)]] style-scope yt-mealbar-promo-renderer">\n          <yt-img-shadow dimension="HEIGHT" height="20" hidden="[[!logo]]" id$="[[getLogoImageId(data)]]" notify-on-loaded="" object-fit="CONTAIN" thumbnail="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n          </yt-img-shadow>\n        </div>\n      </template>\n      <h2 class="yt-mealbar-promo-renderer-message-title style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n      </h2>\n      <template is="dom-repeat" items="[[data.messageTexts]]" class="style-scope yt-mealbar-promo-renderer">\n        <div id="message-text" class="yt-mealbar-promo-renderer-message-text style-scope yt-mealbar-promo-renderer">\n          <yt-formatted-string text="[[item]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n        </div>\n      </template>\n      <template is="dom-if" if="[[data.supplementalText]]" class="style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string class="yt-mealbar-promo-renderer-supplemental-text style-scope yt-mealbar-promo-renderer" text="[[data.supplementalText]]"></yt-formatted-string>\n      </template>\n    </div>\n    <template is="dom-if" if="[[shouldShowModernIcon]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-img-shadow class="yt-mealbar-promo-renderer-modern-icon style-scope yt-mealbar-promo-renderer" hidden="[[!icon]]" notify-on-loaded="" thumbnail="[[icon]]">\n      </yt-img-shadow>\n    </template>\n  </div>\n  <div class="button-container style-scope yt-mealbar-promo-renderer">\n    <template is="dom-if" if="[[data.dismissButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n    <template is="dom-if" if="[[data.actionButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;ciT===void 0&&(ciT=document.createElement("template"));var c=ciT;K.call(H,c.content.cloneNode(!0),d.content.firstChild);plS=d}d=plS;return d},{mode:2});var gj5;var iSZ;var Mp=function(){return _.B.apply(this,arguments)||this};
_.m(Mp,_.B);_.G=Mp.prototype;_.G.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}},"data.acceptButton":{id:"accept-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}}}};
_.G.computeHasButtons_=function(d){return!(!d.dismissButton&&!d.acceptButton)};
_.G.computeStyle_=function(d){return d||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.G.observeImpressionEndpoints_=function(){var d=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(H){H.clickTrackingParams&&delete H.clickTrackingParams;_.aF(d.hostElement,[H])})};
_.G.onTap_=function(){_.oF(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
Mp.prototype.observeImpressionEndpoints_=Mp.prototype.observeImpressionEndpoints_;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],Mp.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Mp.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Mp.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Mp.prototype,"positionType",void 0);_.t([_.r({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.O("design:type",Boolean)],Mp.prototype,"hasButtons_",void 0);_.t([_.r({value:function(){return this.onTap_.bind(this)}}),
_.O("design:type",Function)],Mp.prototype,"boundOnTap_",void 0);_.t([_.r({value:{style:"mono-inverse"}}),_.O("design:type",Object)],Mp.prototype,"buttonOverride",void 0);_.t([_.CK("data.promoConfig.impressionEndpoints"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Mp.prototype,"observeImpressionEndpoints_",null);_.t([_.ZV({is:"yt-tooltip-renderer",disableElementRegistration:!0})],Mp);
_.T(Mp,"yt-tooltip-renderer",function(){if(iSZ===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-tooltip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_tooltip_renderer.yt.tooltip.renderer.css.js--\x3e<div id="content" class="style-scope yt-tooltip-renderer">\n  <yt-formatted-string id="text" hidden$="[[!data.text]]" text="[[data.text]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="details-text" hidden$="[[!data.detailsText]]" text="[[data.detailsText]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n</div>\n<div class="buttons style-scope yt-tooltip-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-tooltip-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.acceptButton]]" class="style-scope yt-tooltip-renderer"></div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;gj5===void 0&&(gj5=document.createElement("template"));var c=gj5;K.call(H,c.content.cloneNode(!0),d.content.firstChild);iSZ=d}d=iSZ;return d},{mode:2});var G$1;var ojU;var qfb={},a9q=(qfb.WEB_REMIX="music.youtube.com",qfb),mQ=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return d};
_.m(mQ,_.B);_.G=mQ.prototype;_.G.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.created=function(){this.embedHost_=a9q[_.Fm("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.G.ready=function(){_.Gn(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.G.computeEmbedCode_=function(d,H,K,c,p){if(!d)return"";var g=d.videoId,a=d.fullListId,e=[];d.attributionId&&e.push("si="+d.attributionId);c||e.push("controls=0");K&&Number(H)>0&&e.push("start="+H);a&&(g="videoseries",e.push("list="+a));K="https://"+(p?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+g;d.clipId&&(e.push("clip="+d.clipId),e.push("clipt="+d.clipTiming));H=e.length>0?K+"?"+e.join("&amp;"):K;d.encryptedEmbedConfig&&e.push("embed_config="+JSON.stringify({enc:d.encryptedEmbedConfig}));
e=e.length>0?K+"?"+e.join("&amp;"):K;_.h("web_sharing_embed_preview_killswitch")?_.Gn(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(e,d.previewWidth||854,d.previewHeight||480):(_.uB(this.videoPreviewContainer),_.Gn(this.videoPreviewContainer).appendChild(this.buildIframeElement(e)));return this.getEmbedCode_(H,d.width||560,d.height||315)};
_.G.buildIframeElement=function(d){var H=document.createElement("iframe"),K,c;H.width=""+((c=(K=this.data)==null?void 0:K.previewWidth)!=null?c:854);var p,g;H.height=""+((g=(p=this.data)==null?void 0:p.previewHeight)!=null?g:480);_.c1E(H,2,d);H.title="YouTube video player";H.frameBorder="0";H.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";H.referrerPolicy="strict-origin-when-cross-origin";H.allowFullscreen=!0;return H};
_.G.computeIsSquareAspectRatio_=function(d){return d.previewHeight&&d.previewWidth?d.previewHeight==d.previewWidth:!1};
_.G.computeShowEmbedOptions_=function(d){return!!d.enablePrivacyModeOptionLabel||!!d.showPlayerControlsOptionLabel};
_.G.getEmbedCode_=function(d,H,K){return'<iframe width="'+H+'" height="'+K+'" src="'+d+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.G.handleSignalActionCopyShareEmbedUrl_=function(){_.Gn(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.G.handleSetTimestamp_=function(d){this.startAtTimeStamp_=(this.startAtChecked_=d.isSet)?d.timestamp:0};
_.G.closePanel_=function(){_.oF(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.G.onEmbedCode_=function(){_.Gn(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.G.onYtPopupClosed_=function(){_.uB(_.Gn(this.hostElement).querySelector("#video-preview"))};
_.G.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.M(this.data.actionButtons[0],_.Tz)&&this.ytRendererBehavior.logExplicitClick(_.M(this.data.actionButtons[0],_.Tz))};
mQ.prototype.onYtPopupClosed_=mQ.prototype.onYtPopupClosed_;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],mQ.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],mQ.prototype,"data",void 0);
_.t([_.r({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.O("design:type",String)],mQ.prototype,"embedCode_",void 0);_.t([_.r({value:!0}),_.O("design:type",Boolean)],mQ.prototype,"isPlayerControlsOptionChecked_",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],mQ.prototype,"isPrivacyModeOptionChecked_",void 0);_.t([_.r({value:!1,notify:!0}),_.O("design:type",Boolean)],mQ.prototype,"startAtChecked_",void 0);
_.t([_.r({value:0}),_.O("design:type",Number)],mQ.prototype,"startAtTimeStamp_",void 0);_.t([_.r({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],mQ.prototype,"isSquareAspectRatio_",void 0);_.t([_.VP("#video-preview"),_.O("design:type",HTMLElement)],mQ.prototype,"videoPreviewContainer",void 0);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mQ.prototype,"onYtPopupClosed_",null);
_.t([_.ZV({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],mQ);
_.T(mQ,"yt-sharing-embed-renderer",function(){if(ojU===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sharing-embed-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_sharing_embed_renderer.yt.sharing.embed.renderer.css.js--\x3e<div id="video-preview" class="style-scope yt-sharing-embed-renderer"></div>\n<div id="embed-panel" class="style-scope yt-sharing-embed-renderer">\n  <div id="title-bar" class="style-scope yt-sharing-embed-renderer">\n    <div id="embed-label" class="style-scope yt-sharing-embed-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="close-panel-icon" icon="yt-icons:close" on-tap="closePanel_" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n  </div>\n  <tp-yt-paper-dialog-scrollable id="content" class="style-scope yt-sharing-embed-renderer">\n    <div id="basic" class="style-scope yt-sharing-embed-renderer">\n      <tp-yt-paper-textarea id="embed-code" no-label-float="" use-v2-underline="" value="{{embedCode_}}" class="style-scope yt-sharing-embed-renderer"></tp-yt-paper-textarea>\n      <div id="start-at" class="style-scope yt-sharing-embed-renderer"></div>\n    </div>\n    <template is="dom-if" if="[[computeShowEmbedOptions_(data)]]" class="style-scope yt-sharing-embed-renderer">\n      <div id="embed-options" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string id="embed-options-label" text="[[data.embedOptionsLabel]]" class="style-scope yt-sharing-embed-renderer">\n        </yt-formatted-string>\n        <div id="layout-size" class="style-scope yt-sharing-embed-renderer">\n          \n        </div>\n        <tp-yt-paper-checkbox id="player-controls-option" checked="{{isPlayerControlsOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n          <yt-formatted-string text="[[data.showPlayerControlsOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-checkbox>\n        <span id="privacy-mode-wrapper" class="style-scope yt-sharing-embed-renderer">\n          <tp-yt-paper-checkbox id="privacy-mode-option" checked="{{isPrivacyModeOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n            <yt-formatted-string text="[[data.enablePrivacyModeOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n            </yt-formatted-string>\n          </tp-yt-paper-checkbox>\n          <yt-icon id="privacy-mode-info" icon="yt-icons:info-outline" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n          <tp-yt-paper-tooltip id="privacy-tooltip" for="privacy-mode-info" position="top" class="style-scope yt-sharing-embed-renderer">\n            [[data.enablePrivacyModeOptionLabel.accessibility.accessibilityData.label]]\n          </tp-yt-paper-tooltip>\n        </span>\n      </div>\n    </template>\n    <div id="additional-info" class="style-scope yt-sharing-embed-renderer">\n      <div id="additional-links" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.apiReferenceLinkLabel]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.developerSampleLinkLabel]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="legal-info" text="[[data.legalInfo]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="action-buttons" class="style-scope yt-sharing-embed-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;G$1===void 0&&(G$1=document.createElement("template"));var c=G$1;K.call(H,c.content.cloneNode(!0),d.content.firstChild);ojU=d}d=ojU;return d},{mode:2});var l9S={};
l9S.YtUnlimitedFamilyInterstitialBehavior=[_.Rm.YtOpenPopupBehavior,_.Uq.YtActionHandlerBehavior,{actionMap:{"yt-signal-action-show-previous-family-dialog":"handleSignalActionShowPreviousFamilyDialog_","yt-open-popup-action":"handleOpenPopupAction_","yt-unlimited-create-family-endpoint":"handleUnlimitedCreateFamilyEndpoint_"},listeners:{"yt-popup-closed":"onPopupClosed_"},created:function(){window.familyDialogHistory||(window.familyDialogHistory=[]);this.dialogHistory_=window.familyDialogHistory;this.showingPreviousDialog_=
!1},
maybeCloseDialogOnFooterButtonTap:function(d){d=_.pvU(_.v5(d),"yt-button-renderer");return d?d.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(d){this.dialogHistory_.push(d)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var d=this.popFromHistory();if(d){var H={openPopupAction:{popupType:"DIALOG",popup:{}}};H.openPopupAction.popup[d.renderer]=d.data;this.showingPreviousDialog_=!0;this.openPopup(H)}},
handleOpenPopupAction_:function(d){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var H=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(c){return!!d.openPopupAction.popup[c]}),K=this.getElementName_();
H&&this.data&&(this.pushToHistory({renderer:K,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(d){if(d=_.M(d,smg))this.loading=!0,_.oF(this.hostElement,"yt-open-create-family-dialog",[d,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var d=this.hostElement.nodeName.split("-").slice(1).map(function(H){return""+H[0].toUpperCase()+H.slice(1).toLowerCase()}).join("");
return d[0].toLowerCase()+d.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var eBt;var k$G;var w6=function(){return _.B.apply(this,arguments)||this};
_.m(w6,_.B);_.G=w6.prototype;_.G.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}}}};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.oF(this.hostElement,"yt-register-create-family-dialog");_.Gn(this.hostElement).querySelector("#thumbnail").onShow()};
_.G.fireOnCloseCommand_=function(){var d;((d=this.data)==null?0:d.onCloseCommand)&&_.l5(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.G.onYtServiceRequestSent_=function(d,H){H&&H.endpoint&&_.M(H.endpoint,_.no)||(this.loading=!0)};
_.G.onYtServiceRequestCompleted_=function(){var d=this.hostElement.parentElement;d.close&&d.close();this.loading=!1};
_.G.openPopupHandler_=function(d){if(d.detail==this){var H;((H=this.data)==null?0:H.onOpenCommands)&&_.l5(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.G.closePopupHandler_=function(d,H){this.fireOnCloseCommand_();if(H&&H.canceled===!0||H&&H.canceled===!1&&H.confirmed===!1){var K;((K=this.data)==null?0:K.onDismissCommands)&&_.l5(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.G.dataChanged_=function(){this.loading=!1};
w6.prototype.dataChanged_=w6.prototype.dataChanged_;w6.prototype.closePopupHandler_=w6.prototype.closePopupHandler_;w6.prototype.openPopupHandler_=w6.prototype.openPopupHandler_;w6.prototype.onYtServiceRequestCompleted_=w6.prototype.onYtServiceRequestCompleted_;w6.prototype.onYtServiceRequestSent_=w6.prototype.onYtServiceRequestSent_;_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],w6.prototype,"ytEventForwardingBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],w6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(l9S.YtUnlimitedFamilyInterstitialBehavior),_.O("design:type",Object)],w6.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],w6.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],w6.prototype,"loading",void 0);_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],w6.prototype,"onYtServiceRequestSent_",null);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],w6.prototype,"onYtServiceRequestCompleted_",null);
_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],w6.prototype,"openPopupHandler_",null);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],w6.prototype,"closePopupHandler_",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],w6.prototype,"dataChanged_",null);
_.t([_.ZV({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],w6);
_.T(w6,"yt-unlimited-family-message-interstitial-renderer",function(){if(k$G===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-message-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_message_interstitial_renderer.yt.unlimited.family.message.interstitial.renderer.css.js--\x3e<tp-yt-paper-spinner active="[[loading]]" class="style-scope yt-unlimited-family-message-interstitial-renderer"></tp-yt-paper-spinner>\n<div class="content-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <div class="main-content style-scope yt-unlimited-family-message-interstitial-renderer">\n    <h2 class="style-scope yt-unlimited-family-message-interstitial-renderer">[[getSimpleString(data.title)]]</h2>\n    <yt-formatted-string class="content style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.content]]"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="252" class="style-scope yt-unlimited-family-message-interstitial-renderer"></yt-img-shadow>\n</div>\n<div class="footer-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <yt-formatted-string class="footer style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.footer]]"></yt-formatted-string>\n  <div class="buttons style-scope yt-unlimited-family-message-interstitial-renderer">\n    <div id="dismiss-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n    <div id="action-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;eBt===void 0&&(eBt=document.createElement("template"));var c=eBt;K.call(H,c.content.cloneNode(!0),d.content.firstChild);k$G=d}d=k$G;return d},{mode:2});var x0Z;var nj5;var PN=function(){return _.B.apply(this,arguments)||this};
_.m(PN,_.B);PN.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0},properties:{"on-tap":"[[boundButtonTap_]]"}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}},"data.manageButton":{id:"manage-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
PN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Gn(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(d){d.onShow()});
_.Gn(this.hostElement).querySelector("#main-thumbnail").onShow()};
PN.prototype.onButtonTap_=function(d){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(d)};
PN.prototype.computeMainThumbnailWidth_=function(d){return d&&d.length!==0?72:96};
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],PN.prototype,"ytRendererBehavior",void 0);_.t([_.u(l9S.YtUnlimitedFamilyInterstitialBehavior),_.O("design:type",Object)],PN.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],PN.prototype,"data",void 0);
_.t([_.r({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.O("design:type",Number)],PN.prototype,"mainThumbnailWidth_",void 0);_.t([_.r({value:function(){return this.onButtonTap_.bind(this)}}),
_.O("design:type",Function)],PN.prototype,"boundButtonTap_",void 0);_.t([_.ZV({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],PN);
_.T(PN,"yt-unlimited-family-profile-interstitial-renderer",function(){if(nj5===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-profile-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_profile_interstitial_renderer.yt.unlimited.family.profile.interstitial.renderer.css.js--\x3e<div class="content-container style-scope yt-unlimited-family-profile-interstitial-renderer"><div class="left-side style-scope yt-unlimited-family-profile-interstitial-renderer"><h2 class="style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.additionalInfoHeader)]]</h2><yt-formatted-string class="additional-info style-scope yt-unlimited-family-profile-interstitial-renderer" text="[[data.additionalInfo]]"></yt-formatted-string></div><div class="right-side style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow id="main-thumbnail" thumbnail="[[data.mainThumbnail]]" width="[[mainThumbnailWidth_]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></yt-img-shadow><div class="secondary-thumbnails style-scope yt-unlimited-family-profile-interstitial-renderer"><template is="dom-repeat" items="[[data.secondaryThumbnails]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow class="secondary-thumbnail style-scope yt-unlimited-family-profile-interstitial-renderer" thumbnail="[[item]]" width="36"></yt-img-shadow></template></div><span class="member-info style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberInfo)]]</span><span class="member-title style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberTitle)]]</span><div id="manage-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div></div><div class="buttons style-scope yt-unlimited-family-profile-interstitial-renderer"><div id="dismiss-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div><div id="action-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;x0Z===void 0&&(x0Z=document.createElement("template"));var c=x0Z;K.call(H,c.content.cloneNode(!0),d.content.firstChild);nj5=d}d=nj5;return d},{mode:2});var CnS;var RBG;var ui=function(){var d=_.B.apply(this,arguments)||this;d.sliderAriaValueText_=null;d.selectedIndex_=0;d.messages={PAUSE_SLIDER:_.Vz("PAUSE_SLIDER",void 0,"Pause Duration")};return d};
_.m(ui,_.B);_.G=ui.prototype;_.G.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[onButtonTap_]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{"on-tap":"[[onSecondaryTap_]]"}}}}}};
_.G.onPopupOpened_=function(d){d.detail==this&&_.h("enable_premium_voluntary_pause")&&(_.oF(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G.setDialogData=function(d){this.data=d;this.resetSlider_()};
_.G.dataChanged_=function(){this.data&&this.resetSlider_()};
_.G.onSubmitTap_=function(){if(this.data.confirmCommand){var d=this.data.confirmCommand;_.M(d,_.Lu0)&&_.aF(this.hostElement,[d,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.G.onExitButtonTap_=function(){_.oF(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.G.closePopupHandler_=function(d,H){(H&&H.canceled===!0||H.canceled===!1&&H.confirmed===!1)&&this.handleOnDismissCommands_()};
_.G.onSliderChange_=function(){this.selectedIndex_=_.Gn(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.G.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.G.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.G.resetSlider_=function(){if(this.data){var d=this.data.defaultEndOptionIndex||0,H=_.Gn(this.hostElement).querySelector("#id-pause-slider");if(H.immediateValue<d)for(;H.immediateValue!=d;)H.increment();else if(d<H.immediateValue)for(;H.immediateValue!=d;)H.decrement();this.selectedIndex_=d;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.G.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.l5(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.G.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.l5(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.G.onYtServiceRequestSent=function(){this.loading=!0};
_.G.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
ui.prototype.onYtServiceRequestCompleted=ui.prototype.onYtServiceRequestCompleted;ui.prototype.onYtServiceRequestSent=ui.prototype.onYtServiceRequestSent;ui.prototype.closePopupHandler_=ui.prototype.closePopupHandler_;ui.prototype.dataChanged_=ui.prototype.dataChanged_;ui.prototype.onPopupOpened_=ui.prototype.onPopupOpened_;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],ui.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],ui.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],ui.prototype,"loading",void 0);_.t([_.r(),_.O("design:type",Number)],ui.prototype,"selectIndexMax_",void 0);_.t([_.r(),_.O("design:type",Object)],ui.prototype,"selectedData_",void 0);
_.t([_.r(),_.O("design:type",Object)],ui.prototype,"sliderAriaValueText_",void 0);_.t([_.r({value:function(){return this.onSubmitTap_.bind(this)}}),
_.O("design:type",Function)],ui.prototype,"onButtonTap_",void 0);_.t([_.r({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.O("design:type",Function)],ui.prototype,"onSecondaryTap_",void 0);_.t([_.r(),_.O("design:type",Object)],ui.prototype,"messages",void 0);_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],ui.prototype,"onPopupOpened_",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ui.prototype,"dataChanged_",null);
_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],ui.prototype,"closePopupHandler_",null);_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],ui.prototype,"onYtServiceRequestSent",null);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],ui.prototype,"onYtServiceRequestCompleted",null);_.t([_.ZV({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],ui);
_.T(ui,"yt-unplugged-pause-membership-dialog-renderer",function(){if(RBG===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;CnS===void 0&&(CnS=document.createElement("template"));var c=CnS;K.call(H,c.content.cloneNode(!0),d.content.firstChild);RBG=d}d=RBG;return d},{mode:2});var VeU;var U0v;var I8=function(){return _.B.apply(this,arguments)||this};
_.m(I8,_.B);I8.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Ju("vcBalanceRenderer")}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],I8.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],I8.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],I8.prototype,"data",void 0);_.t([_.ZV({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],I8);
_.T(I8,"yt-vc-offer-layout-header-renderer",function(){if(U0v===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_header_renderer.yt.vc.offer.layout.header.renderer.css.js--\x3e<div id="vc-balance" class="style-scope yt-vc-offer-layout-header-renderer"></div>\n<yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-vc-offer-layout-header-renderer">\n</yt-formatted-string>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;VeU===void 0&&(VeU=document.createElement("template"));var c=VeU;K.call(H,c.content.cloneNode(!0),d.content.firstChild);U0v=d}d=U0v;return d},{mode:2});var hBb;var LY0;var MeT;var m0j;var r6=function(){return _.B.apply(this,arguments)||this};
_.m(r6,_.B);r6.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.H3.Object.defineProperties(r6.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.Y1S.YtTappableItemBehavior),_.O("design:type",Object)],r6.prototype,"ytTappableItemBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],r6.prototype,"data",void 0);
_.t([_.r({reflectToAttribute:!0}),_.I("data.accessibilityText"),_.O("design:type",String),_.O("design:paramtypes",[])],r6.prototype,"ariaLabel",null);_.t([_.r({reflectToAttribute:!0}),_.I("data.style"),_.O("design:type",String),_.O("design:paramtypes",[])],r6.prototype,"vcOfferStyle",null);_.t([_.I("data.style","data.titleText"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],r6.prototype,"showTitleText",null);_.t([_.ZV({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],r6);
_.T(r6,"yt-vc-offer-renderer",function(){if(m0j===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_renderer.yt.vc.offer.renderer.css.js--\x3e<yt-formatted-string id="title-text" hidden="[[!showTitleText]]" text="[[data.titleText]]" class="style-scope yt-vc-offer-renderer">\n</yt-formatted-string>\n<div id="standard-offer-container" class="style-scope yt-vc-offer-renderer">\n  <div id="standard-offer-content" class="style-scope yt-vc-offer-renderer">\n    <yt-formatted-string id="offer-info" text="[[data.offerInfo]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionText]]" text="[[data.descriptionText]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <div id="vc-icon" class="style-scope yt-vc-offer-renderer"></div>\n    <yt-formatted-string id="price" text="[[data.price]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;MeT===void 0&&(MeT=document.createElement("template"));var c=MeT;K.call(H,c.content.cloneNode(!0),d.content.firstChild);m0j=d}d=m0j;return d},{mode:2});var WN=function(){return _.B.apply(this,arguments)||this};
_.m(WN,_.B);WN.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],WN.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],WN.prototype,"data",void 0);_.t([_.ZV({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],WN);
_.T(WN,"yt-vc-offer-layout-renderer",function(){if(LY0===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_renderer.yt.vc.offer.layout.renderer.css.js--\x3e<div id="vc-offer-layout-container" class="style-scope yt-vc-offer-layout-renderer">\n  <div id="header" class="style-scope yt-vc-offer-layout-renderer"></div>\n  <div id="offers-container" class="style-scope yt-vc-offer-layout-renderer">\n    <div id="offers" class="style-scope yt-vc-offer-layout-renderer"></div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;hBb===void 0&&(hBb=document.createElement("template"));var c=hBb;K.call(H,c.content.cloneNode(!0),d.content.firstChild);LY0=d}d=LY0;return d},{mode:2});var wlj;var Pn5;var ueZ;var I90;var BN=function(){return _.B.apply(this,arguments)||this};
_.m(BN,_.B);BN.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],BN.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],BN.prototype,"data",void 0);_.t([_.ZV({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],BN);
_.T(BN,"yt-ypc-offers-modal-top-bar-renderer",function(){if(I90===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_top_bar_renderer.yt.ypc.offers.modal.top.bar.renderer.css.js--\x3e<div id="dismiss" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></yt-formatted-string>\n<div id="help-link" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;ueZ===void 0&&(ueZ=document.createElement("template"));var c=ueZ;K.call(H,c.content.cloneNode(!0),d.content.firstChild);I90=d}d=I90;return d},{mode:2});var zg=function(){return _.B.apply(this,arguments)||this};
_.m(zg,_.B);zg.prototype.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{ypcOffersModalTopBarRenderer:{component:"yt-ypc-offers-modal-top-bar-renderer"}}},"data.content":{id:"content",mapping:{vcOfferLayoutRenderer:{component:"yt-vc-offer-layout-renderer"}}}}};
zg.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
zg.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var d=this.scrollable;d.attached&&typeof d.attached==="function"&&d.attached()};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],zg.prototype,"ytRendererstamperBehavior",void 0);_.t([_.VP("#scrollable"),_.O("design:type",Object)],zg.prototype,"scrollable",void 0);_.t([_.r(),_.O("design:type",Object)],zg.prototype,"data",void 0);_.t([_.ZV({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],zg);
_.T(zg,"yt-ypc-offers-modal-renderer",function(){if(Pn5===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_renderer.yt.ypc.offers.modal.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-offers-modal-renderer">\n  <div id="top-bar" class="style-scope yt-ypc-offers-modal-renderer"></div>\n  <div id="content" class="style-scope yt-ypc-offers-modal-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;wlj===void 0&&(wlj=document.createElement("template"));var c=wlj;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Pn5=d}d=Pn5;return d},{mode:2});var riG;var WYO;var XK=function(){return _.B.apply(this,arguments)||this};
_.m(XK,_.B);_.G=XK.prototype;_.G.configureRendererStamper=function(){return{"data.continueButton":{id:"continue-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[bindOnContinueTapped_]]"}}}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Gn(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.G.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.oF(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.G.onYtPopupOpened_=function(d,H){(H==null?void 0:H.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.l5(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.G.onYtPopupClosed_=function(d,H){this.continueButtonTapped||H&&(H.canceled===!0||H.canceled===!1&&H.confirmed===!1)&&this.data.onDismissCommands&&_.l5(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.G.onYtServiceRequestError_=function(d){this.set("showSpinner",!1);_.ff(this.hostElement,d.detail.error.message)};
_.G.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.h("enable_ypc_spinners")?_.oF(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
XK.prototype.onYtServiceRequestError_=XK.prototype.onYtServiceRequestError_;XK.prototype.onYtPopupClosed_=XK.prototype.onYtPopupClosed_;XK.prototype.onYtPopupOpened_=XK.prototype.onYtPopupOpened_;XK.prototype.onYtServiceRequestCompleted_=XK.prototype.onYtServiceRequestCompleted_;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],XK.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],XK.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.r(),_.O("design:type",Object)],XK.prototype,"data",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],XK.prototype,"showSpinner",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],XK.prototype,"continueButtonTapped",void 0);_.t([_.r({value:function(){return this.onContinueTapped_.bind(this)}}),
_.O("design:type",Function)],XK.prototype,"bindOnContinueTapped_",void 0);_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],XK.prototype,"onYtServiceRequestCompleted_",null);_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],XK.prototype,"onYtPopupOpened_",null);
_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],XK.prototype,"onYtPopupClosed_",null);_.t([_.nK("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],XK.prototype,"onYtServiceRequestError_",null);_.t([_.ZV({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],XK);
_.T(XK,"yt-ypc-upgrade-dialog-renderer",function(){if(WYO===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-upgrade-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_upgrade_dialog_renderer.yt.ypc.upgrade.dialog.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="content" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <div id="header" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="title" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string id="dialog-title" text="[[data.header.dialogTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n        <yt-formatted-string id="offer-title" text="[[data.header.offerDisplayTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="access-message" text="[[data.header.accessMessage]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n    </div>\n\n    <div id="billing-details-container" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <template is="dom-repeat" items="[[data.billingDetails]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <div class="billing-item style-scope yt-ypc-upgrade-dialog-renderer">\n          <div class="item-header style-scope yt-ypc-upgrade-dialog-renderer">\n            <yt-formatted-string text="[[item.title]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n            <yt-formatted-string text="[[item.subtitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n          </div>\n          <yt-formatted-string class="item-description style-scope yt-ypc-upgrade-dialog-renderer" text="[[item.description]]"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <template is="dom-if" if="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="legal-text" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string text="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="continue-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n  <div id="cancel-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n</div>\n<div id="spinner-overlay" hidden$="[[!showSpinner]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope yt-ypc-upgrade-dialog-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;riG===void 0&&(riG=document.createElement("template"));var c=riG;K.call(H,c.content.cloneNode(!0),d.content.firstChild);WYO=d}d=WYO;return d},{mode:2});var BTt;var zBt;var Jz=function(){return _.B.apply(this,arguments)||this};
_.m(Jz,_.B);Jz.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Jz.prototype.computeHasButtons_=function(d){return!(!d.dismissButton&&!d.confirmButton)};
Jz.prototype.computeStyle_=function(d){return d||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Jz.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],Jz.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Jz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Jz.prototype,"data",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Jz.prototype,"positionType",void 0);
_.t([_.r({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.O("design:type",Boolean)],Jz.prototype,"hasButtons_",void 0);_.t([_.r({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Jz.prototype,"style_",void 0);_.t([_.ZV({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Jz);
_.T(Jz,"yt-bubble-hint-renderer",function(){if(zBt===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bubble-hint-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_bubble_hint_renderer.yt.bubble.hint.renderer.css.js--\x3e<div id="content" class="style-scope yt-bubble-hint-renderer">\n  <div id="text" hidden$="[[!data.text]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n  <div id="details-text" hidden$="[[!data.detailsText]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.detailsText]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div class="buttons style-scope yt-bubble-hint-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.confirmButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;BTt===void 0&&(BTt=document.createElement("template"));var c=BTt;K.call(H,c.content.cloneNode(!0),d.content.firstChild);zBt=d}d=zBt;return d},{mode:2});var XlU;var Jiv;var s6=function(){var d=_.$K.apply(this,arguments)||this;d.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return d};
_.m(s6,_.$K);_.G=s6.prototype;_.G.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.G.attached=function(){var d=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){d.$.thumbnail.onShow();d.$["header-image"].onShow()})};
_.G.handleCheckBoxUpdateAction_=function(d){this.canShowCheckboxEnabledConfirmButton=d};
_.G.computeUseOverlayForSpinner_=function(d,H){return!!d&&H};
_.G.computeShowSpinner_=function(d,H){return d||!!H};
_.G.fireOnCloseActions_=function(){var d,H=_.q(((d=this.data)==null?void 0:d.onClosedActions)||[]);for(d=H.next();!d.done;d=H.next())this.ytRendererBehavior.resolveCommand(d.value)};
_.G.fireOnOpenCommands_=function(d){var H,K=(H=this.data)==null?void 0:H.onOpenCommands;if(K)for(d.stopImmediatePropagation(),d=_.q(K),H=d.next();!H.done;H=d.next())this.ytRendererBehavior.resolveCommand(H.value)};
_.G.fireOnDismissCommands_=function(d){var H,K=(H=this.data)==null?void 0:H.onDismissCommands;if(K)for(d.stopImmediatePropagation(),d=_.q(K),H=d.next();!H.done;H=d.next())this.ytRendererBehavior.resolveCommand(H.value)};
_.G.openPopupHandler_=function(d){d.detail==this&&this.fireOnOpenCommands_(d)};
_.G.closePopupHandler_=function(d,H){_.qo(this,"yt-confirm-dialog-close-action",[H]);this.fireOnCloseActions_();(H&&H.canceled===!0||H&&H.canceled===!1&&H.confirmed===!1)&&this.fireOnDismissCommands_(d)};
_.G.onHeaderImageChanged_=function(){var d;((d=this.data)==null?0:d.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.G.computeHasHeaderImageWidth_=function(d){return d!=void 0};
_.G.computeHasLoadingMessage=function(d){return!!d};
_.G.onHeaderImageWidthChanged_=function(){var d,H=(d=this.data)==null?void 0:d.headerImageWidth;if(H){if(d=1.25*H*2+H,this.$.main.style.width=d+"px",H=this.$.scroller.firstElementChild)H.style.minWidth=d+"px"}else this.$.main.style.width="100%"};
_.G.onThumbnailChanged_=function(){var d;((d=this.data)==null?0:d.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.G.onYtNavigate_=function(d){d=_.v5(d);d instanceof Node&&_.o1(this.$["confirm-button"]).contains(d)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.G.computePrimaryIsCancel_=function(d){return d};
_.G.computeIsCancelButtonHidden_=function(d){return d.skipCancelButton||!d.cancelButton};
_.G.computeIsCheckboxHidden_=function(d){return!d.checkbox};
_.G.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.G.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.G.onYtServiceRequestCompleted_=function(){var d;((d=this.data)==null?0:d.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.H3.Object.defineProperties(s6,{template:{configurable:!0,enumerable:!0,get:function(){if(Jiv===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;XlU===void 0&&(XlU=document.createElement("template"));var c=XlU;K.call(H,c.content.cloneNode(!0),d.content.firstChild);Jiv=d}d=Jiv;return d}}});
s6.prototype.onYtServiceRequestCompleted_=s6.prototype.onYtServiceRequestCompleted_;s6.prototype.onYtServiceRequestSent_=s6.prototype.onYtServiceRequestSent_;s6.prototype.onThumbnailLoaded_=s6.prototype.onThumbnailLoaded_;s6.prototype.onYtNavigate_=s6.prototype.onYtNavigate_;s6.prototype.onThumbnailChanged_=s6.prototype.onThumbnailChanged_;s6.prototype.onHeaderImageWidthChanged_=s6.prototype.onHeaderImageWidthChanged_;s6.prototype.onHeaderImageChanged_=s6.prototype.onHeaderImageChanged_;
s6.prototype.closePopupHandler_=s6.prototype.closePopupHandler_;s6.prototype.openPopupHandler_=s6.prototype.openPopupHandler_;_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],s6.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],s6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);
_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],s6.prototype,"ytEventForwardingBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],s6.prototype,"data",void 0);_.t([_.r({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.O("design:type",Boolean)],s6.prototype,"primaryIsCancel",void 0);_.t([_.r({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.O("design:type",Boolean)],s6.prototype,"isCancelButtonHidden",void 0);
_.t([_.r({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.O("design:type",Boolean)],s6.prototype,"isCheckboxHidden",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],s6.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.t([_.r({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.O("design:type",Boolean)],s6.prototype,"useOverlayForSpinner_",void 0);
_.t([_.r({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.O("design:type",Boolean)],s6.prototype,"showSpinner_",void 0);_.t([_.r({value:!1}),_.O("design:type",Boolean)],s6.prototype,"isActionInProgress_",void 0);_.t([_.r({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.O("design:type",Boolean)],s6.prototype,"hasHeaderImageWidth_",void 0);
_.t([_.r({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.O("design:type",Boolean)],s6.prototype,"hasLoadingMessage",void 0);_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],s6.prototype,"openPopupHandler_",null);_.t([_.nK("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],s6.prototype,"closePopupHandler_",null);
_.t([_.CK("data.headerImage"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],s6.prototype,"onHeaderImageChanged_",null);_.t([_.CK("data.headerImageWidth"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],s6.prototype,"onHeaderImageWidthChanged_",null);_.t([_.CK("data.thumbnail"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],s6.prototype,"onThumbnailChanged_",null);
_.t([_.nK("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],s6.prototype,"onYtNavigate_",null);_.t([_.nK("yt-img-shadow-loaded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],s6.prototype,"onThumbnailLoaded_",null);_.t([_.nK("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.S8]),_.O("design:returntype")],s6.prototype,"onYtServiceRequestSent_",null);
_.t([_.nK("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.j8]),_.O("design:returntype")],s6.prototype,"onYtServiceRequestCompleted_",null);_.t([_.ZV({is:"yt-confirm-dialog-renderer",noInjection:!0})],s6);var sTG;var FYZ;var FK=function(){return _.B.apply(this,arguments)||this};
_.m(FK,_.B);FK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Gn(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
FK.prototype.computeConfirmButton_=function(d){var H={text:d.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};d.confirmNavigationEndpoint?H.navigationEndpoint=d.confirmNavigationEndpoint:d.confirmServiceEndpoint&&(H.serviceEndpoint=d.confirmServiceEndpoint);return H};
FK.prototype.computeShowTitle_=function(d){return!(d==null||!d.title)};
_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],FK.prototype,"data",void 0);_.t([_.r({computed:"computeShowTitle_(data)"}),_.O("design:type",Boolean)],FK.prototype,"showTitle",void 0);_.t([_.ZV({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],FK);
_.T(FK,"yt-fancy-dismissible-dialog-renderer",function(){if(FYZ===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-fancy-dismissible-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_fancy_dismissible_dialog_renderer.yt.fancy.dismissible.dialog.renderer.css.js--\x3e<h2 hidden="[[!showTitle]]" id="title" class="style-scope yt-fancy-dismissible-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-button-renderer id="confirm-button" data="[[computeConfirmButton_(data)]]" dialog-confirm="" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-button-renderer>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;sTG===void 0&&(sTG=document.createElement("template"));var c=sTG;K.call(H,c.content.cloneNode(!0),d.content.firstChild);FYZ=d}d=FYZ;return d});var ZSG;var TTq;var Zu=function(){var d=_.B.apply(this,arguments)||this;d.spinnerActive=!1;return d};
_.m(Zu,_.B);Zu.prototype.created=function(){yWj(2201)};
Zu.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Zu.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
Zu.prototype.onIronOverlayClosed=Zu.prototype.onIronOverlayClosed;Zu.prototype.onIronOverlayOpened=Zu.prototype.onIronOverlayOpened;_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Zu.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.Eh),_.O("design:type",Object)],Zu.prototype,"tpYtIronOverlayBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],Zu.prototype,"data",void 0);_.t([_.r(),_.O("design:type",Object)],Zu.prototype,"spinnerActive",void 0);
_.t([_.nK("iron-overlay-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Zu.prototype,"onIronOverlayOpened",null);_.t([_.nK("iron-overlay-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Zu.prototype,"onIronOverlayClosed",null);_.t([_.ZV({is:"yt-loading-renderer",disableElementRegistration:!0})],Zu);
_.T(Zu,"yt-loading-renderer",function(){if(TTq===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_loading_renderer.yt.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" alt="[[data.accessibility.accessibility_data.label]]" class="style-scope yt-loading-renderer">\n</tp-yt-paper-spinner>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;ZSG===void 0&&(ZSG=document.createElement("template"));var c=ZSG;K.call(H,c.content.cloneNode(!0),d.content.firstChild);TTq=d}d=TTq;return d},{mode:2});var QTO;var tev;var Tg=function(){var d=_.B.apply(this,arguments)||this;d.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);d.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);d.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";d.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return d};
_.m(Tg,_.B);_.G=Tg.prototype;_.G.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.G.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.G.onDarkModeToggledAction=function(d){this.isDarkTheme=d};
_.G.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.G.openPopupHandler_=function(d){d.detail===this.hostElement&&this.hostElement.hidden&&_.oF(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.G.onDismissButtonTap_=function(){var d;this.closeOnDismissButton_.has(((d=this.data)==null?void 0:d.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.oF(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.G.onAcceptButtonTap_=function(){var d;this.closeOnAcceptButton_.has(((d=this.data)==null?void 0:d.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.oF(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.G.computeHasHeader_=function(d){return!!d.headerBackgroundImage};
_.G.computeLayoutStyle_=function(d){return d};
_.G.computePopupSize_=function(d){return d};
_.G.computeIconType_=function(d){return d.dialogIcon&&d.dialogIcon.iconType?d.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":d.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":d.dialogIcon.iconType:""};
_.G.computeIsLogo_=function(d){return!!d.dialogIcon&&!!d.dialogIcon.iconType&&(d.dialogIcon.iconType==="YOUTUBE_LOGO"||d.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||d.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.G.computeHasCustomLogo=function(d){return!(d==null||!d.headerForegroundImage)};
_.G.computeCustomLogo=function(d,H){if(d!=null&&d.headerForegroundImage)return d.headerForegroundImageDark?H?d.headerForegroundImageDark:d.headerForegroundImage:d.headerForegroundImage};
_.G.computeHeaderBackgroundImage=function(d,H){if(d!=null&&d.headerBackgroundImage)return H&&(d==null?0:d.headerBackgroundImageDark)?d.headerBackgroundImageDark:d.headerBackgroundImage};
_.G.shouldShowIconContainer=function(d,H){return d&&!H};
_.G.shouldShowNonYouTubeIcon=function(d,H){return!d&&!H};
_.G.getLogoImageId=function(d){var H,K,c;return(d=(H=this.computeCustomLogo(d,this.isDarkTheme))==null?void 0:(K=H.thumbnails)==null?void 0:(c=K[0])==null?void 0:c.height)&&d%31===0?"custom-logo-with-padding":"custom-logo"};
Tg.prototype.openPopupHandler_=Tg.prototype.openPopupHandler_;Tg.prototype.dataChanged_=Tg.prototype.dataChanged_;_.t([_.u(_.om.YtRendererstamperBehavior),_.O("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.t([_.r(),_.O("design:type",Boolean)],Tg.prototype,"isDarkTheme",void 0);
_.t([_.r({computed:"computeCustomLogo(data, isDarkTheme)"}),_.O("design:type",Object)],Tg.prototype,"customLogo",void 0);_.t([_.r({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.O("design:type",Object)],Tg.prototype,"headerBackgroundImage",void 0);_.t([_.r(),_.O("design:type",Object)],Tg.prototype,"data",void 0);_.t([_.r({computed:"computeHasHeader_(data)"}),_.O("design:type",Boolean)],Tg.prototype,"hasHeader",void 0);
_.t([_.r({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.O("design:type",Object)],Tg.prototype,"layoutStyle",void 0);_.t([_.r({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.O("design:type",Object)],Tg.prototype,"popupSize",void 0);_.t([_.r({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Tg.prototype,"hasLogo",void 0);
_.t([_.r({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Tg.prototype,"hasCustomLogo",void 0);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Tg.prototype,"dataChanged_",null);_.t([_.nK("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Tg.prototype,"openPopupHandler_",null);
_.t([_.ZV({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Tg);
_.T(Tg,"yt-upsell-dialog-renderer",function(){if(tev===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-upsell-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_upsell_dialog_renderer.yt.upsell.dialog.renderer.css.js--\x3e<yt-img-shadow id="header-image" hidden="[[!hasHeader]]" object-fit="COVER" thumbnail="[[headerBackgroundImage]]" class="style-scope yt-upsell-dialog-renderer">\n</yt-img-shadow>\n<div id="dialog" class="style-scope yt-upsell-dialog-renderer">\n  <div id="icon-container" hidden="[[!shouldShowIconContainer(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer"></div>\n  <yt-icon id="logo-icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" target-container="icon-container" class="style-scope yt-upsell-dialog-renderer">\n  </yt-icon>\n  <template is="dom-if" if="[[shouldShowNonYouTubeIcon(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer">\n    <yt-icon id="icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-icon>\n  </template>\n  <yt-img-shadow hidden="[[!hasCustomLogo]]" id$="[[getLogoImageId(data)]]" object-fit="CONTAIN" thumbnail="[[customLogo]]" class="style-scope yt-upsell-dialog-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope yt-upsell-dialog-renderer">\n    <yt-formatted-string id="upsell-dialog-title" role="heading" split-lines="" text="[[data.dialogMessageTitle]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="upsell-dialog-text" split-lines="" text="[[data.dialogMessageText]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-container" class="style-scope yt-upsell-dialog-renderer">\n    <div id="dismiss-button" on-click="onDismissButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n    <div id="action-button" on-click="onAcceptButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n  </div>\n</div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;QTO===void 0&&(QTO=document.createElement("template"));var c=QTO;K.call(H,c.content.cloneNode(!0),d.content.firstChild);tev=d}d=tev;return d},{mode:2});var YfZ=_.H1(function(d){return _.x("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.x(_.n,{cond:d.title,then:function(H){return _.x("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},H)}}))},"gh"),OSU=_.H1(function(d){return _.x("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.x(_.wB,{data:d.closeButton},{buttonViewModel:function(H){return _.x("div",null,_.x(_.xk,{data:H.data}))}}))},"hh"),Sf1=_.H1(function(d){var H=
d.data;
return _.x(_.HE,null,_.x("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.x("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.x(_.n,{cond:function(){return!!H().image&&!!H().title},
then:function(){return _.x(_.d7,{data:function(){return H().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.x("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.x(_.n,{cond:function(){return H().title},
then:function(K){return _.x("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},K)}}),_.x(_.n,{cond:function(){return H().primaryGenre},
then:function(K){return _.x("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},K)}}))),_.x(_.n,{cond:function(){var K=H().description;
return K&&K.length<=150},
then:function(){return _.x("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.x("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return H().description}))}}))},"ih"),Ejv=_.H1(function(d){d=d.infoRows;
var H=_.Kj().resolve(_.Nb),K=_.h("enable_displaying_ppn");return _.x("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.x(_.L6,{each:d},function(c){return _.x("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.x(_.n,{cond:function(){return c.label},
then:function(p){return _.x("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},p)}}),_.x(_.n,{cond:function(){return c.attributedLabel},
then:function(p){return _.x("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.x(_.j$,{text:p,noPreWrap:!0}))}}),_.x(_.n,{cond:function(){return c.value},
then:function(p){return _.x("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},p)}}),_.x(_.n,{cond:function(){return c.attributedValue},
then:function(p){return _.x("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.x(_.j$,{text:p,noPreWrap:!0}))}}))}),_.x(_.n,{cond:function(){return K&&H.clientData.has("post_play_nonce")},
then:function(){return _.x("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.x("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.x("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},H.getData("post_play_nonce")))}}))},"jh"),yit=_.H1(function(d){var H=d.data;
return _.x("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.x(YfZ,{title:function(){return H().dialogTitle}}),_.x(Sf1,{data:H}),_.x(_.n,{cond:function(){return H().infoRow},
then:function(K){return _.x(Ejv,{infoRows:K})}}),_.x(OSU,{closeButton:function(){return H().closeButton}}))},"kh");
yit.idomCompat=!0;_.iV(yit,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.dl}});_.iV(_.H1(function(d){var H=d.data;return _.x("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.x(_.d7,{data:function(){return H().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.x("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.x("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.x(_.n,{cond:function(){var K=H().ytLogo;return K?K.iconType:null},
then:function(K){return _.x(_.hu,{icon:K,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.x("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.x("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.x(_.j$,{text:function(){return H().title}})),_.x("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.x(_.j$,{text:function(){return H().body}})),_.x("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.x(_.j$,{text:function(){return H().verifyStateText}}))),
_.x("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.x("div",null,_.x(_.wB,{data:function(){return H().dismissButton}},{buttonViewModel:_.xk})),_.x("div",null,_.x(_.wB,{data:function(){return H().linkParentButton}},{buttonViewModel:_.xk})))))},"lh"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.dl}});var bSb=_.H1(function(d){var H=d.data;d=_.vj(function(){return H().agreements},[]);
return _.x("installment-agreements-view-model",{class:_.xM("ytInstallmentAgreementsViewModelHost")},_.x(_.L6,{each:d},function(K){return _.x("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.x("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.x(_.j$,{text:K.label})),_.x("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.x(_.wB,{data:function(){return K.openButton}},{buttonViewModel:_.xk})))}))},"mh");
bSb.idomCompat=!0;var NTt=_.H1(function(d){return _.x("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.x(_.j$,{text:function(){return d.data().inviteMessage}})),_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.x(_.j$,{text:function(){return d.data().attributedAccountSectionHeaderText}})),_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.x(_.wB,{data:function(){return d.data().accountAvatar}},{avatarViewModel:_.JV}),_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.x(_.j$,{text:function(){return d.data().accountName}}),_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.x(_.j$,{text:function(){return d.data().handle}}))),_.x(_.wB,{data:function(){return d.data().trailingButton}},{buttonViewModel:_.xk})),_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.x(_.j$,{text:function(){return d.data().termsOfService}})))},"nh");var D0q=_.H1(function(d){var H=_.q(_.V2(function(){var y,v;return((y=d.data().createPlaylistDialogFormSchema)==null?0:(v=y.initialValues)==null?0:v.title)?d.data().createPlaylistDialogFormSchema.initialValues.title:""})),K=H.next().value,c=H.next().value;
H=_.q(_.V2(function(){d.data();return!1}));
var p=H.next().value,g=H.next().value;H=_.q(_.V2(function(){d.data();return!1}));
var a=H.next().value,e=H.next().value;H=_.q(_.V2(function(){var y,v;return(y=d.data().createPlaylistDialogFormSchema)==null?void 0:(v=y.initialValues)==null?void 0:v.visibility}));
var k=H.next().value,C=H.next().value;H=_.q(_.V2(function(){d.data();return!1}));
var R=H.next().value,V=H.next().value;H=_.q(_.V2(function(){var y,v;return(y=d.data().createPlaylistDialogFormSchema)==null?void 0:(v=y.initialValues)==null?void 0:v.isCollaborative}));
var U=H.next().value,L=H.next().value,w=_.Af("div");_.wc(function(){var y=w.value.querySelector("textarea");y&&(y.value=K())},"OCauEe");
_.WE(function(){var y;_.Atj((y=d.data().createPlaylistDialogFormSchema)==null?void 0:y.id,{onSubmit:function(){var v=K();var el=k(),l1=U(),V4=d.data();v={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:v,privacyStatus:el,videoIds:V4.videoIds,sourcePlaylistId:V4.sourcePlaylistId,params:l1?V4.createPlaylistParamsCollaborationEnabled:V4.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.Kj().resolve(_.cb).resolveCommand(v)},
isValid:function(){return p()&&!a()&&!R()}})});
var W=function(y){if(y!==void 0&&(c(y),!p()&&y.length>0&&g(!0),p())){var v=jqv(d.data());if(v){var el=v.minLength;v=v.maxLength;el&&y.length<el?e(!0):v&&y.length>v?e(!0):e(!1)}}},J=function(){var y=!(!U()||k()!=="PRIVATE");
V(y)},F=function(y){y!==void 0&&(C(y),J())},Y=function(){if(R())return dct(d.data())},A=function(){L(!U());
J()},E=function(){return{validate:function(y){if(p()){var v=jqv(d.data());
if(v){var el=v.minLength;v=v.translations;if(el&&y.length<el)return v==null?void 0:v.minLengthErrorMessage}}}}},N=function(){var y=jqv(d.data()),v=y==null?void 0:y.maxLength,el;
y=y==null?void 0:(el=y.translations)==null?void 0:el.maxLengthErrorMessage;if(v&&y)return{maxChars:v,errorMessage:y}};
return _.x("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.x("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:w},_.x(_.wB,{data:function(){return d.data().playlistTitle}},{textFormFieldViewModel:function(y){return _.x(_.Tzq,{data:y.data,
text:K,onInput:W,validation:E,characterLimit:N})},
textFieldViewModel:function(y){return _.x(_.ZnS,{data:y.data,text:K,onInput:W,validation:E,characterLimit:N})}})),_.x("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.x(_.wB,{data:function(){return d.data().playlistVisibility}},{dropdownViewModel:function(y){return _.x(_.Afb,{data:y.data,
onSelected:F,error:Y})}})),_.x(_.n,{cond:function(){return!!d.data().playlistCollaborate},
then:function(){return _.x("div",null,_.x(_.wB,{data:function(){return d.data().playlistCollaborate}},{switchListItemViewModel:function(y){return _.x(_.OZl,{data:y.data,
onTap:A})}}))}}))},"oh");var f9Z=_.H1(function(d){var H=d.data;return _.x("upsell-offer-table-cell-content-view-model",null,_.x("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.x(_.w9,null,_.x(_.MM,{when:function(){return H().iconType}},function(){return _.x("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.x(_.hu,{icon:function(){return H().iconType.toString()}}))}),_.x(_.MM,{when:function(){return H().title}},function(){return _.x(_.j$,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return H().title}})}),_.x(_.MM,{when:function(){return H().subtitle}},function(){return _.x(_.j$,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return H().subtitle}})}),_.x(_.MM,{when:function(){return H().infoText}},function(){return _.x(_.j$,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return H().infoText}})}),_.x(_.MM,{when:function(){return H().featureDescription}},function(){return _.x(_.j$,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return H().featureDescription}})}),_.x(_.MM,{when:function(){return H().note}},function(){return _.x(_.j$,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return H().note}})}))))},"ph");
f9Z.idomCompat=!0;var Aiq=_.H1(function(d){var H=d.data;return _.x("upsell-offer-table-cell-view-model",null,_.x("div",{class:_.xM("ytUpsellOfferTableCellViewModelCellWrapper",function(){return H().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.x(_.wB,{data:function(){return H().contents}},{upsellOfferTableCellContentViewModel:f9Z})))},"qh");
Aiq.idomCompat=!0;var jTb=_.H1(function(d){var H=d.data;var K=d.upsellTableIsFirstRow;var c=function(){return(K==null?0:K())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},p=function(){return(K==null?0:K())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.x("ytm-upsell-offer-table-row-view-model",null,_.x("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.x(_.wB,{data:function(){return H().rowHeaderCell}},{upsellOfferTableCellViewModel:function(g){return _.x("div",{class:c},_.x(Aiq,{data:g.data}))}}),_.x(_.wB,{data:function(){return H().contentCells}},{upsellOfferTableCellViewModel:function(g){return _.x("div",{class:p},_.x(Aiq,{data:g.data}))}})))},"rh");
jTb.idomCompat=!0;var vjU=_.H1(function(d){var H=d.data;return _.x("ytm-upsell-offer-table-view-model",null,_.x("div",{class:"ytUpsellOfferTableViewModelHost"},_.x("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.x(_.wB,{data:function(){return H().rows}},{upsellOfferTableRowViewModel:function(K,c){return _.x(jTb,{data:K.data,
upsellTableIsFirstRow:function(){return c()===0}})}}))))},"sh");
vjU.idomCompat=!0;var dLZ=_.H1(function(d){var H=_.vj(d.noPadding,!1),K=function(){var g,a;return(a=(g=d.data().logo.accessibilityData)==null?void 0:g.label)!=null?a:""},c=function(){return d.data().offerTable},p={};
return _.x("upsell-view-model",{class:_.xM("ytUpsellViewModelHost",(p.ytUpsellViewModelHostNoPadding=function(){return H()},p.ytUpsellViewModelHostWide=function(){return c()!==void 0},p))},_.x("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.x(_.n,{cond:function(){return _.b8(d.data().logo)},
then:function(g){return _.x(_.d7,{data:g,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:K})}})),_.x("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.x(_.j$,{text:function(){return d.data().title}})),_.x("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.x(_.L6,{each:function(){var g;
return(g=d.data().subtitles)!=null?g:[]},
keyBy:"INDEX"},function(g){var a={};return _.x("div",{class:_.xM("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(a.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return c()!==void 0},a))},_.x(_.j$,{text:g}))})),_.x("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.x(_.L6,{each:function(){var g;
return(g=d.data().benefitInfos)!=null?g:[]},
keyBy:"INDEX"},function(g){return _.x(_.n,{cond:function(){return g().info},
then:function(a){return _.x("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.x(_.hu,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.x(_.j$,{text:a}))}})})),_.x(_.n,{cond:function(){return c()!==void 0},
then:function(){return _.x("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.x(vjU,{data:c}))}}),_.x("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.x(_.L6,{each:function(){var g;
return(g=d.data().legalInfos)!=null?g:[]},
keyBy:"INDEX"},function(g){var a={};return _.x("div",{class:_.xM("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(a.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return c()!==void 0},a))},_.x(_.j$,{text:g}))})))},"th");var HDO=_.H1(function(d){var H=d.data;d={};d=(d.ytMiniAppScoreChallengeViewModelScoreRadial=!0,d.ytMiniAppScoreChallengeViewModelDarkScoreRadial=H71(),d);return _.x("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.x("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return H().title}),_.x("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return H().subtitle}),_.x("div",{class:_.zx(d)},_.x("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return H().score})),_.x("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return H().prompt}))},"uh");var $LZ=function(){this.store=_.AB();this.formId=""};
$LZ.prototype.onInit=function(d){d.formId&&(this.formId=d.formId,this.store.dispatch(_.iZ({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var KAS=_.H1(function(d){function H(e){if(e&&(e=_.M(e,_.ID)))return Object.assign({},e,{isSelected:g()})}
var K=_.q(_.V2(function(){var e,k;return(k=(e=_.M(d.data().option,_.ID))==null?void 0:e.isSelected)!=null?k:!1})),c=K.next().value,p=K.next().value,g=c;
_.WE(function(){var e;_.Atj((e=d.data().formSchema)==null?void 0:e.id,{onSubmit:function(){var k=_.Kj().resolve(_.cb),C=!!d.data().selectedCommand,R=!!d.data().unselectedCommand;if(g()){if(C)var V=d.data().selectedCommand}else R&&(V=d.data().unselectedCommand);V=_.T6(V);H(d.data().option)&&!V?(k="",!C&&R?k="selected ":C&&!R&&(k="unselected "),C=new _.m1("No "+k+"command found for SelectionListItemFormViewModel"),_.z5(C)):V&&k.resolveCommand(V)},
isValid:function(){return!0}})});
var a=function(){p(!g())};
_.Pk(function(){var e,k,C=(e=d.data())==null?void 0:(k=e.formSchema)==null?void 0:k.id;C&&_.BPi()().delete(C)});
return _.x("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.x("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.x(_.j$,{text:function(){return d.data().paragraph}})),_.x(_.n,{cond:function(){return H(d.data().option)},
then:function(e){return _.x(_.QD,{data:e,isCompact:!0,hideSelectionTextChevron:!0,onTap:a,disableHorizontalPadding:!0})}}))},"vh");var cDU=_.H1(function(d){var H=d.data;var K=d.disablePadding;var c=d.className;var p=_.Af("yt-dialog-header-view-model"),g=function(){var e=H().imageBanner;a:switch(H().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var k="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:k="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:e,style:k,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},a=function(){return H().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.WE(function(){var e=function(){_.oF(p.value,"yt-refit-popups-action")},k;
(k=p.value)==null||k.addEventListener("image-loaded",e);_.Pk(function(){var C;(C=p.value)==null||C.removeEventListener("image-loaded",e)})});
d={};return _.x("yt-dialog-header-view-model",{el:p,class:_.xM(c,(d.ytDialogHeaderViewModelHost=!0,d.ytDialogHeaderViewModelHostDisablePadding=K,d))},_.x(_.n,{cond:function(){return H().imageBanner},
then:function(){var e={};return _.x("div",{class:_.xM(c,(e.ytDialogHeaderViewModelBanner=!0,e.ytDialogHeaderViewModelBannerFullBleed=a,e)),style:_.UQ({"max-height":function(){return H().assetContainerMaxHeight!==void 0?H().assetContainerMaxHeight+"px":void 0}})},_.x(_.iN,{data:g,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.x(_.n,{cond:function(){return H().headerBlock},
then:function(){return _.x("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.x(_.wB,{data:function(){return H().headerBlock}},{contentPreviewImageViewModel:function(e){return _.x(_.iN,{data:e.data,
notifyOnLoaded:!0})}}))}}),_.x(_.n,{cond:function(){return H().customBanner},
then:function(e){return _.x("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.x(_.wB,{data:e},{avatarStackViewModel:_.Fk}))}}),_.x(_.n,{cond:function(){return H().headline},
then:function(e){return _.x("h2",null,_.x(_.j$,{text:e,className:"ytDialogHeaderViewModelText"}))}}))},"wh");
cDU.idomCompat=!0;var poS=_.H1(function(d){var H=_.IHC(function(){return d.data().formId}),K=H.submitForm,c=H.isValid;
return _.x("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.x(_.wB,{data:function(){return d.data().panelFooter}},{panelFooterViewModel:function(p){return _.x(_.pR,{data:p.data,
disablePadding:!0,disablePrimaryButton:function(){return!c()},
onClickPrimaryButton:function(){K()}})}}))},"xh");var gzj=_.H1(function(d){var H=function(){var K,c;return(c=(K=_.M(d.data().rendererContext,_.hs))==null?void 0:K.label)!=null?c:""};
return _.x("yt-dialog-image-content-view-model",{class:_.xM("ytDialogImageContentViewModelHost",d.className)},_.x(_.n,{cond:function(){return _.b8(d.data().image)},
then:function(K){var c={};return _.x("div",{style:_.UQ((c.width=(0,_.s$)(function(){var p;return(p=d.data().imageMaxWidth)!=null?p:""}),c)),
class:"ytDialogImageContentViewModelImage"},_.x(_.d7,{data:K,alt:H,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.x(_.j$,{text:function(){return d.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"yh");var ozj=_.H1(function(d){var H=_.dg(d,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),K=H.elRefCallback;d=H.iconWiz;var c=H.assetWiz,p=H.assetType,g=H.titleWiz,a=H.leadingActionHeaderWiz,e=H.trailingActionHeaderWiz,k=H.headerPosition,C=H.contentWiz,R=H.buttonLayout,V=H.buttonStyle,U=H.primaryButtonWiz,L=H.secondaryButtonWiz,w=H.contentAlignment,W=H.isFullscreen,J=H.width,F=H.maxHeight,Y=H.isHeaderWizDefined,
A=H.headerWiz,E=H.isFooterWizDefined,N=H.footerWiz;H=_.Af("dialog-layout",function(FM){K==null||K(FM)});
var y=c?function(){return c({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,v=U?function(){var FM={};
return U({buttonOverrides:function(){return{style:(V==null?void 0:V())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.xM((FM["yt-spec-dialog-layout__dialog-layout-button"]=!0,FM["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(R==null?void 0:R())===0||(R==null?void 0:R())===2},FM))})}:void 0,el=L?function(){var FM={};
return L({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.xM((FM["yt-spec-dialog-layout__dialog-layout-button"]=!0,FM["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(R==null?void 0:R())===0||(R==null?void 0:R())===2},FM))})}:void 0,l1=function(){return(!!g||!!a||!!e)&&k()===0},V4={},Mf={},LF={},YY={};
return _.x("dialog-layout",{el:H,class:_.xM((V4["yt-spec-dialog-layout"]=!0,V4["yt-spec-dialog-layout--dialog-layout-fullscreen"]=W,V4["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!W()},V4["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return F()===1},V4["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(p==null?void 0:p())===1},V4)),
style:function(){return(J==null?void 0:J())!==void 0?"width: "+J+"px;":""}},d?_.x("div",{class:_.xM((Mf["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Mf["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!c&&k()===1},Mf["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return w()===1},Mf))},_.x(d,null)):null,_.x(_.n,{cond:Y,
then:function(){return A?_.x("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.x(A,null)):null},
else:function(){return _.x(_.HE,null,_.x(_.n,{cond:l1,then:function(){return _.x(iDb,{contentAlignment:w,LeadingActionHeader:a,TrailingActionHeader:e,Title:g,isAboveAsset:!!y})}}),y?_.x("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.x(y,null)):null)}}),_.x("div",{class:_.xM((LF["yt-spec-dialog-layout__dialog-layout-container"]=!0,LF["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(w==null?void 0:w())===1},LF["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!g&&!A||!!y&&(k==null?void 0:k())===0},LF))},_.x(_.n,{cond:function(){return g&&!A&&(k==null?void 0:k())===1},
then:function(){return _.x(iDb,{contentAlignment:w,LeadingActionHeader:a,TrailingActionHeader:e,Title:g,isAboveAsset:!1})}}),C?_.x("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.x("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.x(C,null))):null,_.x(_.n,{cond:E,
then:function(){return N?_.x("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.x(N,null)):null}}),v||el?_.x(GaT,{footerClasses:_.xM((YY["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,YY["yt-spec-dialog-layout__dialog-layout-footer"]=!0,YY["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(R==null?void 0:R())===2},YY["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(R==null?void 0:R())===1},YY)),
PrimaryButton:v,SecondaryButton:el}):null))},"zh"),iDb=_.H1(function(d){var H=_.dg(d,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),K=H.contentAlignment,c=H.LeadingActionHeader;d=H.Title;var p=H.TrailingActionHeader,g=H.isAboveAsset,a=H.enableLeadingActionHeader;H={};return _.x("div",{class:_.xM((H["yt-spec-dialog-layout__dialog-header-container"]=!0,H["yt-spec-dialog-layout__dialog-header"]=!0,H["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=g,H["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(K==null?void 0:K())===1&&a()},H))},_.x(_.n,{cond:function(){return a()},
then:function(){return c?_.x("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.x(c,null)):null}}),d?_.x("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.x(d,null)):null,p?_.x("div",null,_.x(p,null)):null)},"Ah"),GaT=_.H1(function(d){var H=d.footerClasses;
var K=d.PrimaryButton;d=d.SecondaryButton;return _.x("div",{class:H},d?_.x(d,null):null,K?_.x(K,null):null)},"Bh");var q0G=_.H1(function(d){var H=d.data;return _.x("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.x("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.x(_.wB,{data:function(){return H().avatar}},{avatarViewModel:_.JV})),_.x("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.x(_.j$,{text:function(){return H().title}})),_.x(_.j$,{text:function(){return H().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Ch");var aC1=_.H1(function(d){var H=d.data;return _.x("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.x("div",{class:"ytAccessConfirmationViewModelContent"},_.x(_.wB,{data:function(){var K;return(K=H().avatar)!=null?K:H().dualAvatar}},{dualAvatarViewModel:function(K){return _.x(_.P73,{data:K.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(K){return _.x(_.sg,{data:K.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.x("h2",{class:"ytAccessConfirmationViewModelTitle"},_.x(_.j$,{text:function(){return H().title}})),_.x(_.j$,{text:function(){return H().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Dh");var lCT=_.H1(function(d){var H=d.data;var K=void 0;d=_.q(_.V2(function(){var C;return((C=_.M(H().content,_.KwU))==null?void 0:C.defaultSelectedKey)||""}));
var c=d.next().value,p=d.next().value,g,a=function(){p("");var C;(C=K)!=null&&C.store.dispatch(_.iZ({type:"RESET_COMMAND_MAP"}))};
_.WE(function(){K=new $LZ;window.addEventListener("yt-popup-closed",a)});
_.wc(function(){if(K&&g!==H().formId&&(K.onInit(H()),(g=H().formId)&&c())){var C=K,R={key:c()};R.command&&C.store.dispatch(joZ(g,R.command))}},"k6b6Qe");
_.Pk(function(){window.removeEventListener("yt-popup-closed",a)});
var e=function(C,R,V){R.key&&V&&R.key!==c()&&(p(R.key),K&&R.command&&K.store.dispatch(joZ(V,R.command)))},k=function(){if(_.M(H().content,_.KwU))return!(c==null?0:c())};
return _.x("yt-dialog-view-model",{class:_.xM("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.x(ozj,{headerWiz:function(){return _.x("span",{skip:!0},_.x(_.wB,{data:function(){return H().header}},{dialogHeaderViewModel:function(C){return _.x(cDU,{data:C.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!H().header},
contentWiz:function(){return _.x("span",{skip:!0},_.x(_.wB,{data:function(){return H().customContent?H().customContent:H().content}},{basicContentViewModel:_.rZO,
createPlaylistDialogFormViewModel:D0q,collaborativePlaylistInviteMessageViewModel:NTt,miniAppScoreChallengeViewModel:HDO,radioButtonGroupViewModel:function(C){var R=C.data;return _.x(_.Nzq,{data:R,selectedKey:c,onSelected:e,groupName:function(){return R().formId}})},
selectionListItemFormViewModel:KAS,upsellViewModel:function(C){return _.x(dLZ,{data:C.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:q0G,installmentAgreementsViewModel:bSb,accessConfirmationViewModel:aC1,listViewModel:function(C){return _.x(_.A0l,{data:C.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:gzj}))},
footerWiz:function(){return _.x("span",{skip:!0},_.x(_.wB,{data:function(){return H().footer}},{panelFooterViewModel:function(C){return _.x(_.pR,{data:C.data,
disablePadding:!0,disablePrimaryButton:k})},
formPanelFooterViewModel:poS,formFooterViewModel:function(C){return _.x(_.ziZ,{data:C.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!H().footer}}))},"Eh");
lCT.idomCompat=!0;_.iV(lCT,"yt-dialog-view-model",{props:{data:_.dl},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var epv=_.H1(function(d){var H=d.data;d={};return _.x("yt-panel-header-view-model",{class:_.xM("yt-panel-header-view-model-wiz",(d["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!H().shouldHideDivider},d["yt-panel-header-view-model-wiz--compact"]=function(){return!!H().subtitle},d))},_.x("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.x(_.n,{cond:function(){return H().title},
then:function(K){return _.x(_.j$,{text:K,className:"yt-panel-header-view-model-wiz__title"})}}),_.x(_.n,{cond:function(){return H().subtitle},
then:function(K){return _.x(_.j$,{text:K,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.x("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.x(_.wB,{data:function(){return H().trailingButtons}},{buttonViewModel:function(K){return _.x(_.xk,{data:K.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Fh");
epv.idomCompat=!0;var kaZ=_.H1(function(d){var H=_.n7(function(g){var a;if((a=d.skipContentClick)==null?0:a.call(d))return!1;d.onContentWrapperClick(g);return!0}),K,c,p;
return _.x("div",{class:_.xM("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return d.isAnimating()?"transform: translateY("+d.currentY()+"px);transition: 0.2s":""}},(K=d.header)==null?void 0:K.call(d),_.x("div",{id:d.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.UQ({"max-height":(0,_.s$)(d.maxHeightForContentWrapper)}),"on:scroll":pgZ(d.onScroll),"on:touchmove":pgZ(function(g){return void g.stopPropagation()})},_.x("div",{el:{onRender:d.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":H},(c=d.body)==null?void 0:c.call(d))),(p=d.footer)==null?void 0:p.call(d))},"Gh");
kaZ.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var xLt=_.H1(function(d){var H=_.vj(d.leadingLabel),K=_.vj(d.trailingLabel),c=_.vj(d.footerButtonType),p=function(){return H()||K()||d.hasPrimaryButton()||d.hasSecondaryButton()},g={},a=_.xM("yt-spec-bottom-sheet-layout__primary-button",(g["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return c()===0&&d.hasPrimaryButton()},g["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return c()===1&&d.hasPrimaryButton()},g["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return c()===2&&d.hasPrimaryButton()},g["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return c()===3&&d.hasPrimaryButton()},g));
g={};var e=_.xM("yt-spec-bottom-sheet-layout__secondary-button",(g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return c()===1&&d.hasSecondaryButton()},g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return c()===2&&d.hasSecondaryButton()},g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return c()===3&&d.hasPrimaryButton()},g));
return _.x(_.n,{cond:d.hasFooterOverride,then:function(){var k;return _.x(_.HE,null,(k=d.footerOverride)==null?void 0:k.call(d))},
else:function(){return _.x(_.n,{cond:p,then:function(){return _.x("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.x(_.n,{cond:function(){return H()||K()},
then:function(){var k={};return _.x("div",{class:_.xM("yt-spec-bottom-sheet-layout__footer-label-wrapper",(k["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!d.hasPrimaryButton()},k))},_.x(_.n,{cond:H,
then:function(){return _.x("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},H)}}),_.x(_.n,{cond:K,
then:function(){return _.x("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},K)}}))}}),_.x(_.n,{cond:function(){return d.hasPrimaryButton()||d.hasSecondaryButton()},
then:function(){var k={};return _.x("div",{class:_.xM("yt-spec-bottom-sheet-layout__footer-button-wrapper",(k["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.bIS,k))},_.x(_.n,{cond:function(){return d.hasSecondaryButton()&&c()!==0},
then:function(){var C;return _.x("div",{class:e},(C=d.secondaryButton)==null?void 0:C.call(d))}}),_.x(_.n,{cond:d.hasPrimaryButton,
then:function(){var C;return _.x("div",{class:a},(C=d.primaryButton)==null?void 0:C.call(d))}}))}}))}})}})},"Hh");
xLt.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var nzG=_.H1(function(d){var H=_.vj(d.title),K=_.vj(d.subtitle);return _.x("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:d.headerId,"on:touchstart":_.n7(function(c){var p;(p=d.touchstart)==null||p.call(d,c);return!1}),
"on:touchmove":_.n7(function(c){var p;(p=d.touchmove)==null||p.call(d,c);return!1}),
"on:touchend":_.n7(function(c){var p;(p=d.touchend)==null||p.call(d,c);return!1})},_.x("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.x(_.n,{cond:d.hasHeaderOverride,
then:function(){var c;return _.x(_.HE,null,(c=d.headerOverride)==null?void 0:c.call(d))},
else:function(){var c={};return _.x("div",{class:_.xM((c["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,c["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=H,c))},_.x("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.x(_.n,{cond:H,then:function(){return _.x(_.HE,null,_.x("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},H),_.x(_.n,{cond:K,then:function(){return _.x("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
K)}}))}})),_.x(_.n,{cond:function(){return H()&&d.hasActionHeader()},
then:function(){var p;return _.x("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(p=d.actionHeader)==null?void 0:p.call(d))}}))}}))},"Ih");
nzG.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.H1(function(d){function H(y){if(!F&&typeof MutationObserver!=="undefined"){var v={childList:!0};"MutationObserver"in window&&(F=new MutationObserver(K.bind(void 0,y)),F.observe(y,v))}}
function K(y){typeof F!=="undefined"&&(Y["content-wrapper"]===void 0&&(Y["content-wrapper"]=y.children[0].clientHeight),L(Y["content-wrapper"]),U()>w()||W(U()))}
function c(){V(window.innerHeight);U()>w()||W(U());A.isFullScreen[0]()&&U()>w()?E().dispatch("Snap To Full Screen",{maxHeight:J()}):E().dispatch("Snap To Neutral Position",{maxHeight:w()})}
function p(y){document.body.style.overscrollBehavior="none";y.preventDefault();E().dispatch("Touch Start",{event:y})}
function g(y){y.preventDefault();E().dispatch("Touch Move",{event:y,contentScrollable:U()>w(),fullContentWrapperHeight:J(),contentWrapperHeight:w(),contentHeightMap:Y,contentWrapperId:"content-wrapper",header:i7Z(d),footer:i7Z(d)})}
function a(){document.body.style.overscrollBehavior="";A.isFullScreen[0]()?A.currentY[0]()>=60?E().dispatch("Snap To Neutral Position",{maxHeight:w()}):E().dispatch("Snap To Full Screen",{maxHeight:J()}):A.currentY[0]()>=60?e():A.currentY[0]()<=-60&&U()>w()?E().dispatch("Snap To Full Screen",{maxHeight:J()}):E().dispatch("Snap To Neutral Position",{maxHeight:w()})}
function e(){E().dispatch("Close Sheet",{clientHeight:R(),maxHeight:0});setTimeout(function(){gMg()},250)}
var k=_.q(_.GO(window.innerHeight,void 0,"NWeFS")),C=k.next().value;k=k.next().value;var R=C,V=k;k=_.q(_.GO(0,void 0,"oxfm4"));C=k.next().value;k=k.next().value;var U=C,L=k;k=_.q(_.V2(function(){var y=i7Z(d);return.6*R()-$cg(y)-KeZ(y)}));
C=k.next().value;k=k.next().value;var w=C,W=k,J=function(){var y=i7Z(d);return R()-$cg(y)-KeZ(y)-24-24},F=null,Y={},A={initialY:_.GO(0,void 0,"cYBE5c"),
currentY:_.GO(0,void 0,"RndqHc"),isAnimating:_.GO(!1,void 0,"vO9DVd"),isFullScreen:_.GO(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.V2(w)},E=function(){var y=null;return function(){if(!y){var v={initialY:A.initialY[0](),currentY:A.currentY[0](),isAnimating:A.isAnimating[0](),isFullScreen:A.isFullScreen[0](),maxHeightForContentWrapper:A.maxHeightForContentWrapper[0]()};y=cug(v)}return y}}();
_.WE(function(){window.addEventListener("resize",c);E().subscribe(function(y){A.initialY[1](y.initialY);A.currentY[1](y.currentY);A.isAnimating[1](y.isAnimating);A.isFullScreen[1](y.isFullScreen);A.maxHeightForContentWrapper[1](y.maxHeightForContentWrapper)})});
_.Pk(function(){window.removeEventListener("resize",c);F&&(F.disconnect(),F=null)});
var N=_.xM({"bottom-sheet-content-without-icon":function(){var y;return!((y=d.shouldShowIcons)==null?0:y.call(d))}});
return _.x("bottom-sheet-layout",null,_.x(kaZ,{contentWrapperId:"content-wrapper",isAnimating:function(){return A.isAnimating[0]()},
currentY:function(){return A.currentY[0]()},
maxHeightForContentWrapper:function(){return A.maxHeightForContentWrapper[0]()},
shouldShowIcons:d.shouldShowIcons,skipContentClick:d.skipContentClick,onScroll:function(){var y=document.getElementById("header-wrapper"),v=document.getElementById("content-wrapper");if(y&&v){var el={};el=(el["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,el["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,el);y.className=v.scrollTop>1?_.zx(el):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:gMg,contentWrapperEl:function(y){H(y);requestAnimationFrame(function(){K(y)})},
header:function(){return _.x(nzG,{touchstart:p,touchmove:g,touchend:a,title:d.headerTitle,subtitle:d.headerSubtitle,headerId:"header-wrapper",headerOverride:d.headerFn,hasHeaderOverride:d.hasHeaderFn,actionHeader:d.headerActionHeader,hasActionHeader:d.hasHeaderActionHeader})},
footer:function(){return _.x(xLt,{footerButtonType:d.footerButtonType,leadingLabel:d.footerLeadingLabel,trailingLabel:d.footerTrailingLabel,primaryButton:d.footerPrimaryButton,hasPrimaryButton:d.hasFooterPrimaryButton,secondaryButton:d.footerSecondaryButton,hasSecondaryButton:d.hasFooterSecondaryButton,footerOverride:d.footerFn,hasFooterOverride:d.hasFooterFn})},
body:function(){return _.x(_.n,{cond:d.hasContentFn,then:function(){var y;return _.x("div",{class:N},(y=d.contentFn)==null?void 0:y.call(d))}})}}))},"Jh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var CPU=_.H1(function(d){var H=_.Kj().resolve(_.B6);return _.x("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.n7(function(){return void H.closeSheet()})},_.x(_.n,{cond:function(){return!!d.header},
then:function(){return _.x("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},d.header())}}),_.x(_.n,{cond:function(){return!!d.content},
then:function(){return _.x("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},d.content())}}),_.x(_.n,{cond:function(){return!!d.footer},
then:function(){return _.x("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},d.footer())}}))},"Kh");
CPU.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var RpT=_.H1(function(d){d=d.data;var H=_.Af("yt-sheet-view-model",function(c){if(_.h("web_focus_first_element_sheet")||!_.h("sheet_focus_first_killswitch"))return c.addEventListener("focus",function(){cFv(c)}),function(){c.removeEventListener("focus",function(){cFv(c)})}}),K={};
return _.x("yt-sheet-view-model",{"on:mousedown":_.n7(function(c){_.h("sheet_focus_first_killswitch")||c.currentTarget!==c.target&&c.preventDefault()}),
"on:focus":_.n7(function(){_.h("sheet_focus_first_killswitch")||cFv(H.value)}),
class:_.xM("yt-sheet-view-model-wiz",(K["yt-sheet-view-model-wiz--contextual"]=!0,K["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.h("web_disable_backdrop_filter"),K)),el:H,tabindex:-1},_.x(_.n,{cond:d,then:function(c){return _.x(CPU,{header:function(){return _.x(_.wB,{data:function(){return c().header}},{panelHeaderViewModel:epv})},
content:function(){return _.x(_.wB,{data:function(){return c().content}},{listViewModel:function(p){return _.x(_.A0l,{data:p.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:dLZ,miniAppScoreChallengeViewModel:HDO})},
footer:function(){return _.x(_.wB,{data:function(){return c().footer}},{panelFooterViewModel:_.pR})}})}}))},"Lh");
RpT.idomCompat=!0;_.iV(RpT,"yt-sheet-view-model",{props:{data:_.dl}});var UL0=_.H1(function(d){var H=function(){var K;return(K=d.data().enableDebuggingFeatures)!=null?K:!1};
return _.x("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.x(_.L6,{each:function(){var K;return(K=d.data().stickers)!=null?K:[]}},function(K){return _.x(Vdt,{data:function(){return K},
debugMode:H})}))},"Mh"),Vdt=_.H1(function(d){var H=_.dg(d,{debugMode:!1}).debugMode,K=_.vj(function(){var k;
return(k=d.data().region)==null?void 0:k.w},0),c=_.vj(function(){var k;
return(k=d.data().region)==null?void 0:k.h},0),p=_.vj(function(){var k;
return(k=d.data().region)==null?void 0:k.x},0),g=_.vj(function(){var k;
return(k=d.data().region)==null?void 0:k.y},0),a=_.n7(function(){var k=d.data().onTap;
k&&_.EG(k)}),e={};
return _.x("div",{class:_.xM("ytStoriesStickerLayerViewModelSticker",(e.ytStoriesStickerLayerViewModelDebugMode=H,e)),style:_.UQ({width:function(){return 100*K()+"%"},
height:function(){return 100*c()+"%"},
left:function(){return 100*p()+"%"},
top:function(){return 100*g()+"%"},
"flex-direction":function(){return GvT(d.data().flexDirection)},
"justify-content":function(){return oMO(d.data().justifyContent)},
"align-items":function(){return qQ1(d.data().alignItems)}}),
"on:click":a},_.x(_.wB,{data:function(){return d.data().button||d.data().toggleButton}},{buttonViewModel:function(k){return _.x(_.xk,{data:k.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(k){return _.x(_.zm,{data:k.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Nh");var LAv=_.H1(function(d){var H=function(){return d.data()},K={},c=_.vj(function(){return H().backgroundColor},0),p=_.vj(function(){return H().actionButtons},[]),g=_.vj(function(){return H().stickerLayer},{}),a=function(){var k,C;
return{animationRef:K,animationConfig:{autoplay:!1,loop:!1,path:(C=(k=H().foregroundAnimation)==null?void 0:k.url)!=null?C:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){d.navigateToNextItemOnLottieComplete()}}}},e=function(){var k,C,R,V,U,L,w,W;
return{animationConfig:{autoplay:(L=(k=H().backgroundAnimation)==null?void 0:(C=k.settings)==null?void 0:C.autoplay)!=null?L:!1,loop:(w=(R=H().backgroundAnimation)==null?void 0:(V=R.settings)==null?void 0:V.loop)!=null?w:!1,path:(W=(U=H().backgroundAnimation)==null?void 0:U.url)!=null?W:"",name:"stories_item_background_animation"}}};
_.wc(function(){if(d.isVisible()){var k;(k=K.lottieEl)==null||k.play();d.animationRef()&&(d.animationRef().lottieEl=K.lottieEl)}else{var C;(C=K.lottieEl)==null||C.stop()}},"Cbnkwd");
return _.x("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.UQ({"background-color":function(){return _.Ob(c())+";"}})},_.x("div",{class:"ytStoriesItemViewModelAssetContent"},_.x(_.n,{cond:function(){return!!H().backgroundAnimation},
then:function(){return _.x(_.hT,{data:e,animationName:function(){return e().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.x(_.n,{cond:function(){return!!H().backgroundImage},
then:function(){return _.x(_.d7,{data:function(){return H().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.x(_.n,{cond:function(){return!!H().foregroundAnimation},
then:function(){return _.x(_.hT,{data:a,animationName:function(){return a().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.x(_.n,{cond:function(){return!!H().foregroundImage},
then:function(){return _.x(_.d7,{data:function(){return H().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.x("div",{class:"ytStoriesItemViewModelTopShadow"}),_.x(_.wB,{data:function(){return g()}},{storiesStickerLayerViewModel:UL0})),_.x("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.UQ({"background-color":function(){return _.Ob(c())}})},_.x("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.x(_.L6,{each:p},function(k){return _.x(hpb,{data:function(){return k},
pauseAutoNavigation:d.pauseAutoNavigation})}))))},"Oh"),Md1={style:"overlay",
type:"outline"},hpb=_.H1(function(d){var H={};return _.x("div",{class:_.xM("ytStoriesItemViewModelActionButton",(H.ytStoriesItemViewModelStretchedActionButton=function(){return d.data().size==="STORIES_BUTTON_SIZE_STRETCH"},H)),
"on:click":_.n7(d.pauseAutoNavigation)},_.x(_.wB,{data:function(){return d.data().button}},{buttonViewModel:function(K){return _.x(_.xk,{data:K.data,
buttonOverrides:Md1})}}))},"Ph");_.iV(_.H1(function(d){var H=function(){var l1;return(l1=d.data().startIndex)!=null?l1:0},K=_.q(_.V2(H)),c=K.next().value,p=K.next().value;
K=_.q(_.GO(!1,void 0,"O8yPf"));var g=K.next().value,a=K.next().value,e=function(){var l1;return(l1=d.data().storyItems)!=null?l1:[]},k={},C=_.Af("yt-stories-viewer-view-model"),R=function(){return d.data().dismissButton},V=function(){var l1;
return _.T6((l1=_.M(R(),_.OV))==null?void 0:l1.onTap)},U=_.Af("div"),L,w,W=!1,J=function(){var l1;
(l1=L)==null||l1.cancel();L=F(c()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});L.onfinish=function(){F(c()).style.width="100%";var V4=_.M(e()[c()],nkq),Mf,LF;V4!=null&&V4.foregroundAnimation&&((V4==null?0:(Mf=V4.foregroundAnimation)==null?0:Mf.url)||(V4==null?0:(LF=V4.foregroundAnimation)==null?0:LF.payload))||(c()!==e().length-1?(p(c()+1),J()):V()&&_.Yv(V()))}},F=function(l1){return U.value.children[l1].children[0]},Y=function(){for(var l1=0;l1<c();l1++)F(l1).style.width=
"100%"};
K=_.n7(function(){W||(g()?a(!1):(c()===e().length-1&&V()&&_.Yv(V()),F(c()).style.width="100%",c()!==e().length-1&&(p(c()+1),J())))});
var A=_.n7(function(){W||(g()?a(!1):(F(c()).style.width="0%",c()!==0?p(c()-1):p(c()),J()))}),E=function(){a(!0)},N=function(){F(c()).style.width="100%";
c()!==e().length-1?(p(c()+1),J()):V()&&_.Yv(V())},y=_.n7(function(){W=!1;
w=setTimeout(function(){a(!0);W=!0},300)}),v=_.n7(function(){clearTimeout(w);
W&&g()&&a(!1)});
_.wc(function(){if(g()){var l1;(l1=L)==null||l1.pause();var V4;(V4=k.lottieEl)==null||V4.pause()}else{var Mf;(Mf=L)==null||Mf.play();var LF;(LF=k.lottieEl)==null||LF.play()}},"vweLEf");
_.wc(function(){Y();c()===H()&&J()},"o4ZHje");
var el=function(l1){l1.target===C.value&&(l1=V())&&_.Yv(l1)};
_.WE(function(){Y();J();window.addEventListener("yt-popup-closed",el)});
_.Pk(function(){clearTimeout(w);window.removeEventListener("yt-popup-closed",el)});
return _.x("yt-stories-viewer-view-model",{el:C,class:_.xM("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.x("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.x("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":A,"on:mousedown":y,"on:mouseup":v,"on:mouseleave":v}),_.x("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":K,"on:mousedown":y,"on:mouseup":v,"on:mouseleave":v})),_.x("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.x(_.wB,{data:e},{storiesItemViewModel:function(l1,V4){var Mf=l1.data;return _.x(_.n,{cond:function(){return Math.abs(V4()-c())<=1},
then:function(){var LF={};return _.x("div",{class:_.xM("ytStoriesViewerViewModelStoryItem",(LF.ytStoriesViewerViewModelActiveStoryItem=function(){return V4()===c()},LF))},_.x(LAv,{data:Mf,
pauseAutoNavigation:E,navigateToNextItemOnLottieComplete:N,isVisible:function(){return V4()===c()},
animationRef:k}))}})}})),_.x("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:U},_.x(_.L6,{each:e},function(){return _.x("div",{class:"ytStoriesViewerViewModelProgressBar"},_.x("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.x("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.x(_.wB,{data:R},{buttonViewModel:_.xk})))},"Qh"),"yt-stories-viewer-view-model",{props:{data:_.dl}});_.iV(_.H1(function(d){var H=d.data;var K=_.Af("yt-gen-ai-feedback-form-view-model"),c=[];return _.x("yt-gen-ai-feedback-form-view-model",{el:K,class:"ytGenAiFeedbackFormViewModelHost"},_.x(_.j$,{text:function(){return H().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.x("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.x(_.wB,{data:function(){return H().feedbackChips}},{toggleButtonViewModel:function(p){var g=p.data;
return _.x(_.zm,{data:g,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(a){var e=g();e=_.M(e,_.EV);e=_.M(e==null?void 0:e.defaultButtonViewModel,_.OV).trackingParams;a?c.push(e):(a=c.indexOf(e),a>-1&&c.splice(a,1))}})}})),_.x(_.j$,{text:function(){return H().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.x("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.x(_.wB,{data:function(){return H().submitButton}},{buttonViewModel:function(p){return _.x(_.xk,{data:p.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){aAU(K.value,c,H().uniqueId)}})}}),_.x(_.wB,{data:function(){return H().moreFeedbackButton}},{buttonViewModel:function(p){return _.x(_.xk,{data:p.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Rh"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.dl},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Qg=function(){return _.B.apply(this,arguments)||this};
_.m(Qg,_.B);Qg.prototype.created=function(){yWj(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(saZ);var d=_.Kj().resolve(_.KbU);d&&(d.container=this.ytPopupContainerBehavior);if(d=_.Kj().resolve(_.B6))d.container=this.ytPopupContainerBehavior;if(d=_.Kj().resolve(_.zr)){var H=this.ytPopupContainerBehavior;d.containerWasInjected?_.Jf(Error("ej")):d.container=H}};
Qg.prototype.ensurePopupBelowPlayer=function(d,H){var K=_.Kj().resolve(_.$p(_.HI));if(!K||!K.isOnWatch()||!_.Kf())return!1;K=K.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.wn().height>K+this.getPopupHeight(d,H)?(d.style.top="auto",d.style.bottom="0px"):(d.style.top=K+"px",d.style.bottom="auto");return!0};
Qg.prototype.getPopupHeight=function(d,H){H&&(d.cachedPopupHeight=0);if(!d.cachedPopupHeight){H=0;var K=d.clientHeight,c=window.getComputedStyle(d);H+=parseInt(c.marginTop,10);H+=parseInt(c.marginBottom,10);d.cachedPopupHeight=K+H}return d.cachedPopupHeight};
Qg.prototype.getElement=function(d){return document.createElement(d)};
_.t([_.u(qrU.YtPopupContainerBehavior),_.O("design:type",Object)],Qg.prototype,"ytPopupContainerBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Qg.prototype,"ytComponentBehavior",void 0);_.t([_.Z({disableElementRegistration:!0,is:"ytd-popup-container"})],Qg);
_.T(Qg,"ytd-popup-container",function(){if(HYg!==void 0)return HYg;var d=document.createElement("template");_.P(d,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-popup-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);return HYg=d},{mode:1});var mL0;var woq={};woq.YtLogYpcFlowCommandsBehavior=[_.Uq.YtActionHandlerBehavior,{created:function(){this.logFlowCommandsMap_={"yt-log-ypc-flow-start-command":"handleLogYpcFlowStart_","yt-log-ypc-flow-dismiss-command":"handleLogYpcFlowDismiss_"}},
attached:function(){this.registerActionMap(this.logFlowCommandsMap_)},
detached:function(){this.unregisterActionMap(this.logFlowCommandsMap_)},
handleLogYpcFlowStart_:function(d){_.M(d,JTg)&&(d=_.M(d,JTg))&&(d.serializedTransactionFlowLoggingParams?_.Tbf(d.serializedTransactionFlowLoggingParams):d.serializedYpcCancelFlowLoggingParams?(d=d.serializedYpcCancelFlowLoggingParams)&&_.A3("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",d):d.serializedYpcResumeFlowLoggingParams?(d=d.serializedYpcResumeFlowLoggingParams)&&_.A3("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",d):d.serializedYpcPauseFlowLoggingParams?(d=d.serializedYpcPauseFlowLoggingParams)&&
_.A3("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",d):d.serializedYpcRefundFlowLoggingParams?(d=d.serializedYpcRefundFlowLoggingParams)&&IiG("YPC_EVENT_TYPE_START",d):d.serializedYpcDeactivateFlowLoggingParams?(d=d.serializedYpcDeactivateFlowLoggingParams)&&_.A3("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",d):d.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(d=d.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.A3("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",d))},
handleLogYpcFlowDismiss_:function(d){_.M(d,XCb)&&(d=_.M(d,XCb),d.serializedTransactionFlowLoggingParams?_.Qa1(d.serializedTransactionFlowLoggingParams):d.serializedYpcCancelFlowLoggingParams?(d=d.serializedYpcCancelFlowLoggingParams)&&_.A3("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",d):d.serializedYpcResumeFlowLoggingParams?(d=d.serializedYpcResumeFlowLoggingParams)&&_.A3("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",d):d.serializedYpcPauseFlowLoggingParams?(d=
d.serializedYpcPauseFlowLoggingParams)&&_.A3("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",d):d.serializedYpcRefundFlowLoggingParams&&(d=d.serializedYpcRefundFlowLoggingParams)&&IiG("YPC_EVENT_TYPE_CANCEL",d))}}];var PP5={};PP5.YtCancelRecurrenceBehavior=[_.S$.YtComponentBehavior,_.QNC,{attached:function(){var d=this;Ia0(this,function(H,K){return d.ypcCancelRecurrenceHandler(H,K)})},
ypcCancelRecurrenceHandler:function(d,H){var K=this;if(!H||!H.ypcCancelRecurrenceEndpoint)return!1;if(!H.ypcCancelRecurrenceEndpoint.params)return _.tm(Error("zl")),!0;_.Qv(this.hostElement);var c=_.y2.instance,p=_.Kj().resolve(_.$p(_.FL));c&&_.bV(c,H)?_.Nc(c,H).then(function(g){K.ypcCancelRecurrenceSuccess_(d,H,{data:g})},function(g){K.ypcCancelRecurrenceFailure_(d,H,g)}).thenCatch(function(){_.tm(Error("Al"))}):p?p.requestDataForServiceEndpoint(H).then(function(g){K.ypcCancelRecurrenceSuccess_(d,
H,g)},function(g){K.ypcCancelRecurrenceFailure_(d,H,g)}).thenCatch(function(){_.tm(Error("Al"))}):_.tm(Error("Bl"));
return!0},
ypcCancelRecurrenceSuccess_:function(d,H,K){_.tE(this.hostElement);K.data||(K={data:K});K.data&&K.data.actions&&_.l5(this.hostElement,K.data.actions,this.hostElement);K.data.messageRenderer?WWq(H.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(H=H.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.A3("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",H);_.GT(d,"yt-service-request-completed",K)},
ypcCancelRecurrenceFailure_:function(d,H,K){_.tE(this.hostElement);WWq(H.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.GT(d,"yt-service-request-error",{error:K,params:[d,H]})}}];var uAt=function(d,H){_.dh.call(this,H)};
_.m(uAt,arg);var ICO={};ICO.YtCompleteTransactionBehavior=[_.S$.YtComponentBehavior,_.QNC,{attached:function(){var d=this;Ia0(this,function(H,K){return d.ypcCompleteTransactionHandler(H,K)})},
completeTransaction:function(d,H){var K=this;H={payments_payload:window.btoa(H.integratorData),buybucket_params:d.data.buybucketParams,offer_params:d.data.offerParams};var c=_.Kj().resolve(_.FL),p=d.data.completeTransactionEndpoint,g=this.get("ypcCompleteTransactionEndpoint.actions",p);g&&_.l5(this.hostElement,g,this.hostElement);return(g=_.y2.instance)&&_.bV(g,p)?_.Nc(g,p,H).then(function(a){return!a||(a==null?0:a.error)?(a=K.get("data.serializedTransactionFlowLoggingParams",d),_.W1(new UN("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
a))):{data:a}}).then(function(a){return K.handleCompleteTransactionSuccess_(a,d)},function(){return K.handleCompleteTransactionFailure_(d)}):c.requestDataForServiceEndpoint(p,H).then(function(a){return K.handleCompleteTransactionSuccess_(a,d)},function(){return K.handleCompleteTransactionFailure_(d)})},
handleCompleteTransactionSuccess_:function(d,H){d.data||(d={data:d});if(d.data.messageRenderer)return _.W1(new uAt(d.data.messageRenderer));if(d.data.trackingParams){var K=_.Fj(),c=_.so();K&&c&&_.Ea(K,c,_.P1(d.data.trackingParams))}H=this.get("data.serializedTransactionFlowLoggingParams",H);rOO(H);return _.e5(d)},
handleCompleteTransactionFailure_:function(d){d=this.get("data.serializedTransactionFlowLoggingParams",d);_.fm("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",d);return _.W1(new UN("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",d))},
ypcCompleteTransactionHandler:function(d,H){var K=this;if(!H.ypcCompleteTransactionEndpoint)return!1;if(!H.ypcCompleteTransactionEndpoint.transactionParams)return _.tm(Error("Cl")),!0;H.ypcCompleteTransactionEndpoint&&H.ypcCompleteTransactionEndpoint.gtmData&&_.zt(H.ypcCompleteTransactionEndpoint.gtmData);var c=_.Kj().resolve(_.$p(_.FL));if(c){_.Qv(this.hostElement);var p=_.y2.instance;p&&_.bV(p,H)?_.Nc(p,H).then(function(g){return!g||(g==null?0:g.error)?(g=K.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
H),_.W1(new UN("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",g))):{data:g}}).then(function(g){_.GT(d,"yt-service-request-completed");
K.ypcCompleteTransactionSuccess_(H,g)},function(){return K.ypcCompleteTransactionFailure_(H)}):c.requestDataForServiceEndpoint(H).then(function(g){_.GT(d,"yt-service-request-completed");
K.ypcCompleteTransactionSuccess_(H,g)},function(){return K.ypcCompleteTransactionFailure_(H)})}return!0},
ypcCompleteTransactionSuccess_:function(d,H){_.tE(this.hostElement);H.data||(H={data:H});_.oF(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);H.data.messageRenderer||H.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(d):(_.zt('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",d));H.data.actions&&(d=yB1(H.data.actions),H=bKv(H.data.actions),d.length&&_.aF(this.hostElement,
d),H.length&&_.l5(this.hostElement,H,this.hostElement))},
ypcCompleteTransactionFailure_:function(d){_.tE(this.hostElement);_.oF(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",d,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(d,H,K){if(H=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",H))H={serializedTransactionFlowLoggingParams:H},K&&(H.errorType=K),_.Wd(d,H),_.Bd()}}];var rDv={};rDv.YtEndpointHandlerWithYpcBehavior=[_.QNC,_.Uq.YtActionHandlerBehavior,[{openWalletDialog:function(d,H,K,c,p,g,a){var e=this,k=_.DA();H=H.replace(/-/g,"+").replace(/_/g,"/");var C=_.Lo().get("hl");_.s8h(_.jn(_.Ac),H,k.resolve,p,function(R){g&&g();k.reject(R)},C,function(R){return e.onServerBackendAnalyticEvent_(d,K,R)},this.onDialogClose_.bind(this),c,a);
return k.promise},
openFixFlowDialog:function(d,H,K,c){d=d.replace(/-/g,"+").replace(/_/g,"/");_.jn(_.Ac).openFixFlowDialog(d,H,K,c)},
onDialogClose_:function(){_.oF(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(d,H,K){_.GT(d,"yt-commerce-action-init-done");H&&_.aF(this.hostElement,[H,{backend_analytics:K}])}}],
_.Rm.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(d,H){d=this.get("data.nativeFlowEndpoint",H);H=this.get("data.fallbackEndpoint",H);d?_.aF(this.hostElement,[d]):H&&_.GT(this.hostElement,"yt-navigate",{endpoint:H})}}],
PP5.YtCancelRecurrenceBehavior,ICO.YtCompleteTransactionBehavior,{listeners:{"yt-service-request-sent":"onServiceRequestSent_","yt-service-request-completed":"onGetCartServiceRequestCompleted_","yt-service-request-error":"onServiceRequestError_"},created:function(){this.buyFlowActionMap_={};this.ypcRegisterActionMapJobId_=0},
attached:function(){var d=this;Ia0(this,function(H,K,c){return d.handleYPCEndpoint(H,K,c)});
this.ypcRegisterActionMapJobId_=_.mf(_.Xp,function(){d.registerActionMap(d.buyFlowActionMap_)})},
detached:function(){var d=this;_.Xp.cancelJob(this.ypcRegisterActionMapJobId_);_.mf(_.Xp,function(){d.unregisterActionMap(d.buyFlowActionMap_)})},
handleYPCEndpoint:function(d,H,K){var c=H.ypcGetCartEndpoint;if(c){_.sa("commerce_transaction");var p=c.gtmId;p&&_.Bm(p);(c=c.gtmData)&&_.zt(c)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",H)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(d,H),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",H)!=null?(this.handleYPCFixInstrumentEndpoint_(d,H),!0):H.ypcPauseSubscriptionCommand?(UcZ(this.hostElement,d,H,K),
!0):H.ypcResumeSubscriptionCommand?(M8U(this.hostElement,d,H),!0):H.getPaymentInstrumentsParamsCommand?(CVv(this.hostElement,d,H),!0):H.ypcHandleTransactionEndpoint?(xcG(this.hostElement,d,H,K),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(d,H){var K=this;_.Fw("ttcr",void 0,"commerce_transaction");H=H.ypcGetCartEndpoint;var c=H.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,p=c.encryptedPurchaseParams,g=c.serializedTransactionFlowLoggingParams,a=c.serializedPaymentsClientParams,e=this.createGetCartResponseFromParams_(c,H.offerParams,g);this.changeButtonState(d,!0);_.Lq(this.openWalletDialog(d,p,c.ypcLogWalletAnalyticDataEndpoint,g,function(){K.changeButtonState(d,!1)},function(){K.changeButtonState(d,
!1)},a).then(function(k){return K.handleBuyFlowCompleteCallback_(d,e,k)},function(){return K.handleOnLoadError(e)}).then(function(k){return void K.handlePostPurchaseSuccess_(d,e,k)},function(k){return void K.handlePostPurchaseError_(k)}),function(){K.changeButtonState(d,!1);
d instanceof Element&&_.GT(d,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(d,H,K){var c=d.completeTransactionEndpoint,p=d.handleTransactionEndpoint;H={data:{offerParams:window.btoa(H),serializedTransactionFlowLoggingParams:K}};p?H.data.handleTransactionEndpoint=p:H.data.completeTransactionEndpoint=c;d.onCartDismissCommand&&(H.data.onCartDismissCommand=d.onCartDismissCommand);return H},
onGetCartServiceRequestCompleted_:function(d,H){var K=this,c=d.target;if(H&&H.data&&H.data.messageRenderer)_.tE(this.hostElement),this.handleMessageRenderer_(H.data.messageRenderer),this.changeButtonState(c,!1);else{var p=this.get("data.encryptedPurchaseParams",H),g=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",H),a=this.get("data.ypcLogWalletAnalyticDataEndpoint",H),e=this.get("data.serializedPaymentsClientParams",H),k=this.getLoggingParams_(H);if(k||p||g)d.stopPropagation(),_.Fw("ttcr",
void 0,"commerce_transaction"),p||_.tE(this.hostElement),this.changeButtonState(c,!1),g?_.oF(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Fm("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:g}}},this]):p&&(this.changeButtonState(c,!0),d=null,d=this.openWalletDialog(c,p,a,k,function(){_.tE(K.hostElement);K.changeButtonState(c,!1)},function(){_.tE(K.hostElement);
K.changeButtonState(c,!1)},e),_.Lq(d.then(function(C){return K.handleBuyFlowCompleteCallback_(c,H,C)},function(){return K.handleOnLoadError(H)}).then(function(C){return K.handlePostPurchaseSuccess_(c,H,C)},function(C){return K.handlePostPurchaseError_(C)}),function(){K.changeButtonState(c,!1);
_.GT(c,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(d,H){H&&H.endpoint&&H.endpoint.ypcGetCartEndpoint&&!H.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",H.endpoint.ypcGetCartEndpoint)&&_.l5(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",H.endpoint.ypcGetCartEndpoint)],d.target),_.Qv(this.hostElement),this.changeButtonState(d.target,!0))},
onServiceRequestError_:function(d,H){if(H&&H.params&&H.params.length){H=_.q(H.params);for(var K=H.next();!K.done;K=H.next())if((K=K.value)&&K.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",K.ypcGetCartEndpoint)&&_.l5(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",K.ypcGetCartEndpoint)],d.target);_.tE(this.hostElement);this.changeButtonState(d.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(d,H,K){var c=K.integratorData;return c==null||c===""||K.error!=null?(c=this.getLoggingParams_(H),String(K.error)==="-1"?(H.data.onCartDismissCommand&&_.l5(this.hostElement,[H.data.onCartDismissCommand],d),_.W1(new UN("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",c,!0))):_.W1(new UN("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",c))):H.data.handleTransactionEndpoint?nMU(this.hostElement,H.data.handleTransactionEndpoint,{payments_payload:c,funds_guarantee_callback_client_data:K.integratorClientCallbackData}):
this.completeTransaction(H,K)},
handlePostPurchaseSuccess_:function(d,H,K){H=K.data;var c=!1,p,g;if(H&&((p=H.command)==null?0:(g=p.commandExecutorCommand)==null?0:g.commands)){var a,e;p=(a=H.command)==null?void 0:(e=a.commandExecutorCommand)==null?void 0:e.commands;for(a=0;a<p.length;a++)if(_.M(p[a],_.UZC)){c=!0;break}}c||(H&&H.gtmDatas&&H.gtmDatas.length?_.zt(H.gtmDatas[0]):_.zt('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));K.data&&K.data.actions&&(H=yB1(K.data.actions),K=bKv(K.data.actions),H.length&&
_.aF(this.hostElement,H),K.length&&_.l5(this.hostElement,K,d))},
handlePostPurchaseError_:function(d){d&&d.payload&&d.payload.isUserDismiss||_.z5(Error("El"))},
handleOnLoadError:function(d){d=this.getLoggingParams_(d);return _.W1(new UN("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",d))},
getLoggingParams_:function(d){return this.get("data.serializedTransactionFlowLoggingParams",d)},
handleMessageRenderer_:function(d){var H=_.Xm(d,"renderer"),K=_.Fm("openPopupConfig");H==="confirmDialogRenderer"&&K&&_.oF(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:K.popupTypeMap[H],popup:d}},this])},
handleYPCFixInstrumentEndpoint_:function(d,H){var K=this,c=H.ypcFixInstrumentEndpoint;H=c.encryptedFixInstrumentParameters;this.logFixFopEvent_(c,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(d,!0);this.openFixFlowDialog(H,function(p,g){K.onFixFlowCompleteCallback_(c,p,g)},function(){return K.changeButtonState(d,!1)},function(){K.changeButtonState(d,!1);
K.logFixFopEvent_(c,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(d,H,K){var c=_.OS("payments.business.integration.scenario.FixInstrument");if(H==c.IntegratorCallbackType.ON_COMPLETE){H="FIX_FOP_EVENT_TYPE_CANCEL";var p=null;K.error!=null?K.error!=c.OnCompleteCallbackError.USER_CANCELLED&&(_.l5(this.hostElement,[d.errorAction],this.hostElement),H="FIX_FOP_EVENT_TYPE_FAILURE",p="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.l5(this.hostElement,[d.successAction],this.hostElement),H="FIX_FOP_EVENT_TYPE_SUCCESS");_.l5(this.hostElement,[d.onFinishAction],
this.hostElement);this.logFixFopEvent_(d,H,p)}},
logFixFopEvent_:function(d,H,K){(d=d.serializedFixFopLoggingParams)?(H={eventType:H,serializedFixFopLoggingParams:d},K!=null&&(H.errorType=K),_.Wd("fixFopFlow",H),_.Bd()):_.z5(Error("Fl"))},
changeButtonState:function(d,H){_.h("enable_ypc_spinners")&&d&&(d.is==="yt-button-renderer"||d.is==="ytd-button-renderer")&&(d.disabled=H)}}];var WAG=function(d){this.JSC$32228_clientRoot=d;this.feedbackCollectorActionMap={"yt-help-dialog-requested":wgj,"yt-feedback-dialog-requested":mcq,"yt-signal-action-help":PVU,"yt-signal-action-send-feedback":uXG,"yt-send-feedback-action":ruS,"yt-user-feedback-endpoint":We5};_.Ne(_.bw.getInstance(),this.feedbackCollectorActionMap,this.JSC$32228_clientRoot)},BZO;var zpZ=function(d){this.JSC$32233_clientRoot=d;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":B7G.bind(null,this.JSC$32233_clientRoot),"yt-signal-action-delete-all-downloads":XgO,"yt-signal-action-delete-download":Jug,"yt-signal-action-delete-playlist-download":Feg,"yt-signal-action-install-pwa":O75,"yt-signal-action-refresh-downloads":t8O,"yt-offline-video-endpoint":EMj,"yt-offline-playlist-endpoint":b7S,"yt-update-local-app-setting-command":Dc5,"yt-offline-orchestration-action-command":Aub,
"yt-signal-action-undo-delete-download":T7G,"yt-local-watch-history-command":dVb};_.Ne(_.bw.getInstance(),this.downloadManagerActionMap,this.JSC$32233_clientRoot);_.XL.instance=new _.XL},XoG;var tz=function(){var d=_.B.apply(this,arguments)||this;d.actionMap={"yt-get-mdx-status":"handleGetMdxStatus_","yt-add-to-remote-queue-action":"handleAddToQueueAction_","yt-clear-remote-queue-action":"handleClearQueueAction_","yt-insert-in-remote-queue-action":"handleInsertInQueueAction_","yt-remove-from-remote-queue-action":"handleRemoveFromQueueAction_"};d.remoteApi_=null;return d};
_.m(tz,_.B);_.G=tz.prototype;
_.G.ready=function(){_.h("polymer_enable_mdx")&&(FHU({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.h("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.h("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.h("enable_cast_short_lived_lounge_token")}),_.G5("yt-remote-connection-change",this.handleConnectionChange_,this),_.G5("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=Stj())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.G.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.G.handleConnectionChange_=function(d){(this.mdxConnected=d)?(d=QLZ(),!d&&WJb()&&B4T()&&(d={key:"cast-selector-receiver",name:B4T()}),d=d.name):d=null;this.receiverName=d;_.AA(this.remoteApi_);(this.remoteApi_=Stj())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.G.handleReceiverAvailabilityChange_=function(){var d=TjZ();WJb()&&_.xC("yt-remote-cast-available")&&d.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=d.length>0};
_.G.handleRemoteQueueChange_=function(){var d=this.currentVideoId_,H=this.currentListId_,K=m8(this.remoteApi_);this.currentVideoId_=K.videoId;this.currentListId_=K.listId;this.currentVideoId_&&_.oF(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.h("polymer_enable_mdx_queue")?this.currentListId_:null,d,H])};
_.G.handleAddToQueueAction_=function(d){d=_.M(d,CqO);this.remoteApi_&&(d.videoId?this.remoteApi_.addVideo(d.videoId):d.playlistId&&this.remoteApi_.addPlaylist(d.playlistId))};
_.G.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.G.handleInsertInQueueAction_=function(d){d=_.M(d,Rq0);this.remoteApi_&&d.videoId&&this.remoteApi_.JSC$19692_insertVideo(d.videoId)};
_.G.handleRemoveFromQueueAction_=function(d){d=_.M(d,VPT);this.remoteApi_&&d.videoId&&this.remoteApi_.JSC$19692_removeVideo(d.videoId)};
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],tz.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r(),_.O("design:type",Object)],tz.prototype,"appId",void 0);_.t([_.r(),_.O("design:type",Boolean)],tz.prototype,"mdxConnected",void 0);_.t([_.r(),_.O("design:type",Boolean)],tz.prototype,"receiverAvailable",void 0);_.t([_.r(),_.O("design:type",Object)],tz.prototype,"receiverName",void 0);_.t([_.r(),_.O("design:type",Object)],tz.prototype,"currentVideoId_",void 0);
_.t([_.r(),_.O("design:type",Object)],tz.prototype,"currentListId_",void 0);_.t([_.ZV({is:"yt-mdx-manager",disableElementRegistration:!0})],tz);_.T(tz,"yt-mdx-manager",void 0,{mode:2});var JDT;var sNv;var Yc=function(){var d=_.B.apply(this,arguments)||this;d.APP_IDS={ytr:3,ytm:5};d.JSC$20914_timeoutId_=0;d.actionMap={"yt-open-create-family-dialog":"open"};return d};
_.m(Yc,_.B);_.G=Yc.prototype;_.G.created=function(){yWj(2200)};
_.G.detached=function(){this.observer_&&this.observer_.disconnect()};
_.G.open=function(d,H){var K=this,c=d.serializedYpcFamilyCreateLoggingParams;this.JSC$20914_timeoutId_=setTimeout(this.abort_.bind(this,d.postFlowErrorEndpoint,c),3E4);H&&(this.onReadyCallback_=H);var p=_.Gn(this.hostElement).querySelector("#unicorn-iframe");c&&c&&uwj("ypcFamilyCreateFlowStarted",c);_.MLL("family_creation",function(){var g=_.OS("gapi.family_creation.render");_.OS("gapi.config.update")("iframes/family_creation/url",K.getFamilyCreationUrlWithUnicornParams_());var a=3;d.appId&&d.appId in
K.APP_IDS&&(a=K.APP_IDS[d.appId]);a={authUser:_.Fm("SESSION_INDEX")||0,clientId:a,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Fm("HL"),initialflow:[4,5,6,7],m:K.isMobile?1:0,onFlowComplete:K.onUnicornFlowComplete_.bind(K,d.postFlowSuccessEndpoint,c),onError:K.onUnicornFlowError_.bind(K,d.postFlowErrorEndpoint,c),onReady:K.onUnicornFlowReady_.bind(K,d.referencePcidParams)};g(p,a)})};
_.G.close=function(){_.Gn(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.G.onUnicornFlowComplete_=function(d,H){this.close();H&&H&&uwj("ypcFamilyCreateFlowSucceeded",H);_.GT(this.hostElement,"yt-navigate",{endpoint:d})};
_.G.onUnicornFlowError_=function(d,H){this.close();H&&uwj("ypcFamilyCreateFlowCancelled",H);_.GT(this.hostElement,"yt-navigate",{endpoint:d})};
_.G.onUnicornFlowReady_=function(d){var H=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();d&&_.OS("gapi.family_creation.setConfig")(0,d);this.observer_=new MutationObserver(function(){_.Gn(H.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Gn(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Gn(this.hostElement).querySelector("#dialog").open()};
_.G.getFamilyCreationUrlWithUnicornParams_=function(){return _.Fm("YTR_FAMILY_CREATION_URL")};
_.G.getCurrentUrl_=function(){return document.location.href};
_.G.abort_=function(d,H){this.clearTimeout_();this.onUnicornFlowError_(d,H)};
_.G.clearTimeout_=function(){clearTimeout(this.JSC$20914_timeoutId_)};
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Yc.prototype,"ytActionHandlerBehavior",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Yc.prototype,"isMobile",void 0);_.t([_.r(),_.O("design:type",Object)],Yc.prototype,"onReadyCallback_",void 0);_.t([_.r(),_.O("design:type",Object)],Yc.prototype,"observer_",void 0);_.t([_.ZV({is:"yt-create-family-dialog",disableElementRegistration:!0})],Yc);
_.T(Yc,"yt-create-family-dialog",function(){if(sNv===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-create-family-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_create_family_dialog.yt.create.family.dialog.css.js--\x3e<tp-yt-paper-dialog id="dialog" with-backdrop="" class="style-scope yt-create-family-dialog">\n  <div id="unicorn-iframe" class="style-scope yt-create-family-dialog"></div>\n</tp-yt-paper-dialog>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);var H=d.content,K=H.insertBefore;JDT===void 0&&(JDT=document.createElement("template"));var c=JDT;K.call(H,c.content.cloneNode(!0),d.content.firstChild);sNv=d}d=sNv;return d},{mode:2});var FAU;var ZDj;var O6=function(){var d=_.B.apply(this,arguments)||this;d.STEP=1;d.BLOCK_ON=80;d.MIN_PROGESS=0;d.MAX_PROGESS=100;return d};
_.m(O6,_.B);_.G=O6.prototype;_.G.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.G.ready=function(){this.progress_=this.MIN_PROGESS;this.hostElement.hidden=!0;this.hostElement.setAttribute("aria-valuemin",String(this.MIN_PROGESS));this.hostElement.setAttribute("aria-valuemax",String(this.MAX_PROGESS));_.Kj().addProvider({provide:VWg,useValue:this})};
_.G.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.G.finish=function(){var d=this;this.progress=this.MAX_PROGESS;Hfg(function(){d.progress==d.MAX_PROGESS&&(d.hostElement.hidden=!0)})};
_.G.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.H3.Object.defineProperties(O6.prototype,{progress:{configurable:!0,enumerable:!0,set:function(d){this.progress_=d;var H="scaleX("+d/this.MAX_PROGESS+")",K=_.Gn(this.hostElement).querySelector("#progress").style;K.transform=H;K.webkitTransform=H;this.hostElement.setAttribute("aria-valuenow",String(d))},
get:function(){return this.progress_}}});
_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],O6.prototype,"ytComponentBehavior",void 0);_.t([_.ZV({is:"yt-page-navigation-progress",disableElementRegistration:!0})],O6);
_.T(O6,"yt-page-navigation-progress",function(){if(ZDj===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-page-navigation-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_page_navigation_progress.yt.page.navigation.progress.css.js--\x3e<div id="progress" class="style-scope yt-page-navigation-progress"></div>\n');d.content.insertBefore(_.S().content.cloneNode(!0),
d.content.firstChild);var H=d.content,K=H.insertBefore;FAU===void 0&&(FAU=document.createElement("template"));var c=FAU;K.call(H,c.content.cloneNode(!0),d.content.firstChild);ZDj=d}d=ZDj;return d},{mode:2});var TZ1={padding:"10px 16px","font-size":"32px","font-weight":"bold",background:"linear-gradient(135deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%)",color:"#fff","text-shadow":"1px 1px 3px rgba(255, 255, 255, 0.3)","border-radius":"15px"},QNZ={"font-size":"12px","font-style":"italic"},td1={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.pI0=function(){return _.l(function(d){_.VE(d)})};var Y0T=_.H1(function(d){var H=function(){return d.data().subtext},K={};
return _.x("snackbar-view-model",{class:_.xM("snackbarViewModelHost",d.className)},_.x("div",{class:_.xM("snackbarViewModelEngagementBarWrapper",d.className)},_.x(_.n,{cond:function(){return d.data().image},
then:function(c){return _.x(_.d7,{data:c,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.x(_.n,{cond:function(){return d.data().imageContent},
then:function(){return _.x("div",{class:"snackbarViewModelAvatarContainer"},_.x(_.wB,{data:function(){return d.data().imageContent}},{decoratedAvatarViewModel:_.sg}))}}),_.x("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.x("div",{class:_.xM((K.snackbarViewModelTitle=!0,K.snackbarViewModelTitleWithSubtext=H,K))},_.x(_.j$,{text:function(){return d.data().text}})),_.x(_.n,{cond:H,
then:function(){return _.x("div",{class:"snackbarViewModelSubtext"},_.x(_.j$,{text:function(){return H()}}))}})),_.x(_.n,{cond:function(){return d.data().buttons},
then:function(){return _.x("div",{class:"snackbarViewModelButtonClassWrapper"},_.x(_.wB,{data:function(){return d.data().buttons}},{buttonViewModel:function(c){return _.x(_.xk,{data:c.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:d.target})}}))}})))},"Sh");_.iV(_.H1(function(){function d(Y,A,E){w(Y);J(E);U("in");R(!0);H(Y,A);a=setTimeout(function(){K()},A)}
function H(Y,A){var E,N=(E=Y.text)==null?void 0:E.content;Y=_.FN(Y.rendererContext);N&&(A={label:N,command:Y,durationMs:A},_.Kj().resolve(_.WX).enqueue(A))}
function K(Y){U("out");Y&&clearTimeout(a)}
function c(){K(!0)}
function p(Y){if(Y){var A=Y.snackbarViewModel,E=Y.durationMs,N=Y.target;E||(E=3E3);A&&(Y=_.Kj().resolve(_.$p(_.wC)))&&Y.enqueue({isOpened:C,open:function(){d(A,E,N)},
close:K},0)}}
var g=_.jV("snackbar-container"),a=void 0,e=_.q(_.GO(!1,void 0,"jJ4tBf")),k=e.next().value;e=e.next().value;var C=k,R=e;k=_.q(_.GO("out",void 0,"M6Rbpb"));var V=k.next().value,U=k.next().value;k=_.q(_.GO(void 0,void 0,"aFswib"));var L=k.next().value,w=k.next().value;k=_.q(_.GO(void 0,void 0,"mlWWhb"));var W=k.next().value,J=k.next().value,F=_.n7(function(){if(V()==="out"){R(!1);w(void 0);J(void 0);var Y=_.Kj().resolve(_.$p(_.wC));Y&&cat(Y,0)}});
_.WE(function(){var Y=_.Kj().resolve(_.$p(_.rCb));Y&&(Y.showSnackbarFn=p,Y.closeSnackbarFn=c)});
return _.x("snackbar-container",{class:"ytSnackbarContainerHost",el:g},_.x(_.n,{cond:function(){return C()&&!!L()},
then:function(){var Y={};return _.x("div",{class:_.xM("ytSnackbarContainerSnackbarContainer",(Y.ytSnackbarContainerMobile=!1,Y.ytSnackbarContainerPivotBar=function(){var A;return!((A=_.Kj().resolve(_.$p(_.Wiv)))==null||!A())},Y.ytSnackbarContainerOpened=function(){return C()&&V()==="in"},Y.ytSnackbarContainerClosed=function(){return C()&&V()==="out"},Y)),
"on:animationend":F},_.x(Y0T,{data:function(){return L()},
target:function(){return W()}}))}}))},"Th"),"snackbar-container");_.iV(_.QUB,"yt-tooltip");_.iV(_.H1(function(){var d=_.Tv(_.ppi);return _.x("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var H;return(H=d())==null?void 0:H.announcement})},"Uh"),"yt-ephemeral-actions");var MAj=new Map;var iO5=function(d,H){var K=this;this.handleError=d;this.logEventInternal=H;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){K.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
iO5.prototype.logError=function(d){this.handleError(d)};
iO5.prototype.logEvent=function(d,H){switch(d){case "IDB_DATA_CORRUPTED":_.h("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",H);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",H);break;case "IS_SUPPORTED_COMPLETED":_.h("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",H);break;case "QUOTA_EXCEEDED":ODg(this,H);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",H);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":d=Object.assign({},H,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",d)}};
var ODg=function(d,H){_.X3.getInstance().estimate().then(function(K){K=Object.assign({},H,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:wI5(K==null?void 0:K.usage),deviceStorageQuotaMbytes:wI5(K==null?void 0:K.quota)});d.logEventInternal("idbQuotaExceeded",K)})};var S0U=_.H1(function(d){var H=_.Af("yt-draggable"),K=d.onDrag,c=d.onDragStart,p=d.onDragEnd,g=_.dg(d,{allowClicks:!1,dragThreshold:5}),a=g.dragThreshold,e=g.allowClicks;d=g.children;g=g.className;var k=void 0,C=void 0,R=new _.Bf(0,0),V=!1;_.WE(function(){k=new _.XE(H.value);C=new _.c3(L);U(k,C);if(e()){_.c5B(k,a());var W;(W=H.value)==null||W.addEventListener("click",w,{capture:!0})}_.Pk(function(){var J;(J=k)==null||J.dispose();if(e()){var F;(F=H.value)==null||F.removeEventListener("click",w,{capture:!0})}})});
var U=function(W,J){_.Iq(W,"earlycancel",function(){e()&&(V=!1)});
_.Iq(W,"start",function(F){c==null||c(F);F.defaultPrevented||e()&&(V=!0)});
_.Iq(W,"beforedrag",function(F){k&&C&&(F.preventDefault(),R=new _.Bf(F.clientX-k.startX,F.clientY-k.startY),C.start())});
_.Iq(W,"end",function(){J.stop();p==null||p();R=new _.Bf(0,0)})},L=function(){R&&K(R)},w=function(W){V&&(V=!1,W.stopPropagation(),W.preventDefault())};
return _.x("yt-draggable",{el:H,class:_.xM("ytDraggableComponentHost",g)},d)},"Vh");var EzZ=_.H1(function(d){var H=_.q(_.GO(0,void 0,"CvAwBd")),K=H.next().value,c=H.next().value;H=function(p){var g={},a={};return _.x(S0U,{className:_.xM("ytdMiniplayerComponentResizer",(g.ytdMiniplayerComponentResizerDisabled=function(){return p===d.horizontalAlignment()||p===d.verticalAlignment()},g.ytdMiniplayerComponentResizerNorth=p==="north",g.ytdMiniplayerComponentResizerEast=p==="east",g.ytdMiniplayerComponentResizerSouth=p==="south",g.ytdMiniplayerComponentResizerWest=p==="west",g)),
onDragStart:function(){c(d.currentMiniplayerSize());if(d.onResizeStart)d.onResizeStart()},
onDrag:function(e){p!=="north"&&p!=="west"||e.scale(-1);var k;e=(k=p==="north"||p==="south")?e.y:e.x;var C=d.currentAspectRatio();k&&C>=1?e*=C:!k&&C<1&&(e/=C);k=e;d.onResize(K()+k)}},_.x("div",{class:_.xM("ytdMiniplayerComponentResizerCorner",(a.ytdMiniplayerComponentResizerNorthCorner=p==="north",a.ytdMiniplayerComponentResizerEastCorner=p==="east",a.ytdMiniplayerComponentResizerSouthCorner=p==="south",a.ytdMiniplayerComponentResizerWestCorner=p==="west",a))}))};
return _.x("div",{class:"ytdMiniplayerComponentResizers"},H("north"),H("east"),H("south"),H("west"))},"Wh");var yDt=16/9;_.iV(_.H1(function(){var d=_.Af("ytd-miniplayer"),H=_.q(_.GO(new _.nB(NaN,NaN),void 0,"GNXZTe")),K=H.next().value,c=H.next().value;H=_.q(_.GO(!1,void 0,"XqI9xc"));var p=H.next().value,g=H.next().value;H=_.q(_.GO(!1,void 0,"k3iLGe"));var a=H.next().value,e=H.next().value;H=_.q(_.GO(!1,void 0,"ApjQ9b"));var k=H.next().value,C=H.next().value;H=_.q(_.GO(!1,void 0,"PzlhGe"));var R=H.next().value,V=H.next().value;H=_.q(_.GO(!1,void 0,"pm6fl"));var U=H.next().value,L=H.next().value;H=_.q(_.GO(!1,void 0,
"xQrL1e"));var w=H.next().value,W=H.next().value;H=_.q(_.GO(yDt,void 0,"NcrWZb"));var J=H.next().value,F=H.next().value,Y=_.q(_.GO(!1,void 0,"e5rxBc"));H=Y.next().value;var A=Y.next().value;Y=_.q(_.GO(!1,void 0,"uZtCde"));var E=Y.next().value,N=Y.next().value;Y=_.q(_.GO(void 0,void 0,"wKFvEe"));var y=Y.next().value,v=Y.next().value;Y=_.q(_.GO(_.Fm("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var el=Y.next().value,l1=Y.next().value;Y=_.q(_.GO("south",void 0,"QXcssb"));var V4=Y.next().value,
Mf=Y.next().value;Y=_.q(_.GO(400,void 0,"Fr8gSb"));var LF=Y.next().value,YY=Y.next().value,FM=_.Kj().resolve(_.Fb).miniplayerPropSignalMap[0],gA=FM.data,JN=FM.externalPlaylistData;Y=FM.toastData;var eS=FM.playabilityStatus,vF=FM.isReadyToResume,CX=FM.isDisabled,kd=FM.watchWhile,BB=FM.playerVe,ug=FM.expandVe,fX=FM.closeVe,pF=FM.readyToResumeVe,dA=FM.readyToResumeCloseVe,U3=FM.repositionVe,lg=FM.resizeVe;FM=_.q(_.V2(vF));var hN=FM.next().value,Hv=FM.next().value,$s=!1,dq=!1,oC;_.WE(function(){c(_.wn());
d.value.addEventListener("animationend",function(Yd){Yd.target===d.value&&(L(!1),W(!1))});
BBt(d.value)});
_.fn("yt-window-resized",function(Yd){Yd&&c(Yd)});
var NU=function(){oC&&F(oC.getVideoAspectRatio())},RZ=function(){if(oC){var Yd=oC.getPlayerState()===1;
hN()&&Yd&&Hv(!1)}},uM=function(){var Yd=ug();
if(Yd){var FO=_.Fj(3);FO&&_.fo(FO,Yd)}},IC=function(){var Yd=fX(),FO=dA();
Yd&&_.fo(_.Fj(3),Yd);vF()&&FO&&_.fo(_.Fj(3),FO)};
_.fn("yt-activate-miniplayer",function(Yd){var FO;return _.l(function(EU){if(EU.nextAddress==1)return p()?EU.return():EU.yield((FO=_.Kj().resolve(_.Fb).getPlayerElement())==null?void 0:FO.getPlayerPromise(),2);oC=EU.yieldResult;if(!oC)return EU.return();!E()&&_.h("kevlar_watch_while_v2")&&(Mf(Yd&&!_.h("kevlar_watch_while_bottom_align")?"north":"south"),l1(_.Fm("HTML_DIR")==="rtl"?"west":"east"));var mr=oC;mr.addEventListener("onVideoDataChange",NU);mr.addEventListener("onStateChange",RZ);mr.addEventListener("onExpandMiniplayer",
uM);mr.addEventListener("onCloseMiniplayer",IC);F(oC.getVideoAspectRatio());g(!0);WRg()||L(!0);_.VE(EU)})});
_.fn("yt-deactivate-miniplayer",function(Yd){return _.l(function(FO){if(!p())return FO.return();g(!1);Hv(!1);W(Yd);V(!1);e(!1);if(oC){var EU=oC;EU.removeEventListener("onVideoDataChange",NU);EU.removeEventListener("onStateChange",RZ);EU.removeEventListener("onExpandMiniplayer",uM);EU.removeEventListener("onCloseMiniplayer",IC)}WRg()||L(!0);_.VE(FO)})});
var Lt=function(){return!(kd()&&_.h("kevlar_watch_while_modern"))},qj=function(){var Yd;
return!((Yd=JN())==null||!Yd.contents)},nt=function(){var Yd=LF();
var FO=K();FO=Math.min(Math.min(FO.width,FO.height)-32,720);var EU=J(),mr=Lt(),p6=qj()&&a(),Lz=Math.min(Yd,FO);Yd=new _.nB(192,mr?116:192);EU=new _.nB(p6?yDt:EU,1);Lz=new _.nB(Lz,mr?Lz-76:Lz);Lz=EU.aspectRatio()>Lz.aspectRatio()?Lz.width/EU.width:Lz.height/EU.height;EU=EU.scale(Lz);Yd.width<=EU.width&&Yd.height<=EU.height||(Yd=EU.aspectRatio()<=Yd.aspectRatio()?Yd.width/EU.width:Yd.height/EU.height,EU.scale(Yd),EU.width=Math.min(EU.width,FO),EU.height=Math.min(EU.height,FO));return new _.nB(EU.width,
_.zH(192,EU.height+sDZ(mr,p6),720))},uk=function(){var Yd=nt(),FO=Lt(),EU=qj()&&a();
return new _.nB(Yd.width,Yd.height-sDZ(FO,EU))},L5=function(){var Yd=function(FO){FO.target===d.value&&R()&&(V(!1),d.value.removeEventListener("transitionend",Yd))};
WRg()||(d.value.addEventListener("transitionend",Yd),V(!0));e(!a())};
_.wc(function(){var Yd=BB(),FO=_.Fj(3),EU=_.so(3);if(FO&&EU&&Yd){_.Ea(FO,EU,Yd);EU=U3();var mr=lg(),p6=ug(),Lz=fX(),p4=dA();p6&&Lz&&p4&&(_.yz(FO,Yd,[p6,Lz,p4]),_.No(FO,[p6,Lz]));EU&&mr&&_.yz(FO,Yd,[EU,mr])}},"Snz6Ld");
_.wc(function(){var Yd=pF();if(Yd){var FO=_.Fj(0),EU=_.so(0);FO&&EU&&(_.Ea(FO,EU,Yd),_.No(FO,[Yd]))}},"X1FpHd");
FM={};return _.x("ytd-miniplayer",{el:d,class:_.xM("ytdMiniplayerComponentHost",(FM.ytdMiniplayerComponentVisible=function(){return p()||U()},FM.ytdMiniplayerComponentAnimatingSnap=k,FM.ytdMiniplayerComponentAnimatingPlaylistExpand=R,FM.ytdMiniplayerComponentAnimatingFade=U,FM),function(){if(U()){var Yd=V4();
var FO=p(),EU=w();Yd=FO?Yd==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":EU?Yd==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Yd==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Yd="";return Yd}),
style:_.UQ({top:function(){return V4()==="north"?"16px":""},
right:function(){return el()==="east"?"16px":""},
bottom:function(){return V4()==="south"?"16px":""},
left:function(){return el()==="west"?"16px":""},
width:function(){return nt().width+"px"},
height:function(){return nt().height+"px"},
transform:function(){var Yd=y();return Yd?"translate("+Yd.x+"px, "+Yd.y+"px)":""}})},_.x("div",{class:"ytdMiniplayerComponentContent"},_.x(S0U,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Yd){var FO=JWS(el(),V4(),K(),nt(),y()),EU=uk();Math.abs(Yd.clientY-(FO.y+EU.height))>15?(A(!0),Yd=_.Fj(3),FO=U3(),$s||($s=!0,Yd&&FO&&_.No(Yd,[FO])),Yd&&FO&&_.fo(Yd,FO)):Yd.preventDefault()},
onDrag:function(Yd){v(Yd)},
onDragEnd:function(){var Yd=zoT(JWS(el(),V4(),K(),nt(),y()),K(),nt()),FO=XIv(el(),V4(),K(),nt()),EU=XIv(Yd.horizontalAlignment,Yd.verticalAlignment,K(),nt());EU=new _.Bf(EU.x-FO.x,EU.y-FO.y);var mr;FO=FO.y+(((mr=y())==null?void 0:mr.y)||0)+nt().height/2;var p6=function(){el()===Yd.horizontalAlignment&&V4()===Yd.verticalAlignment||N(!0);l1(Yd.horizontalAlignment);Mf(Yd.verticalAlignment);v(void 0)},Lz=function(p4){p4.target===d.value&&k()&&(C(!1),p6(),d.value.removeEventListener("transitionend",Lz))};
A(!1);V4()==="south"&&FO>K().height?(p6(),_.Kj().resolve(_.Fb).close()):(d.value.addEventListener("transitionend",Lz),C(!0),v(EU))}},_.x(_.n,{cond:p,
then:function(){return _.x(_.Esv,{isDisabled:CX,playabilityStatus:eS,size:uk})}}),_.x(_.n,{cond:Lt,
then:function(){return _.x(_.OzZ,{isReadyToResume:hN,data:gA,expanded:a,onExpandClick:L5,playlistData:JN})}}),_.x(_.n,{cond:H,
then:function(){return _.x("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.x(_.n,{cond:function(){return qj()&&a()||R()},
then:function(){return _.x(_.QAS,{className:"ytdMiniplayerComponentPlaylistPanel",data:JN,hideHeaderText:!0,withinMiniplayer:!0})}}),_.x("div",{class:"ytdMiniplayerComponentToast"},_.x(_.y1O,{toastData:Y}))),_.x(EzZ,{onResize:function(Yd){YY(_.zH(192,Yd,720))},
onResizeStart:function(){var Yd=_.Fj(3),FO=lg();dq||(dq=!0,Yd&&FO&&_.No(Yd,[FO]));Yd&&FO&&_.fo(Yd,FO)},
currentAspectRatio:J,currentMiniplayerSize:LF,horizontalAlignment:el,verticalAlignment:V4}))},"Xh"),"ytd-miniplayer",{});var Si=function(){var d=_.B.apply(this,arguments)||this;d.tabGesturesIsActive=!1;d.deprecateFullerscreenUi=_.h("web_watch_fullerscreen_deprecation_ui");d.hasDelegation=!1;d.darkerDarkTheme=_.h("web_darker_dark_theme");d.isFrostedGlassInitialized=!1;d.frostedGlassExp=_.h("web_frosted_glass");d.mastheadHiddenFocusWithinKillswitch=_.h("web_masthead_hidden_focus_within_killswitch");d.clientOnlyWizTooltipsEnabled=_.h("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");d.scrollAtTop=
!0;d.guideScrollTop=0;d.isTheaterModeSession=_.Qx("START_IN_THEATER_MODE");d.iMaxTheaterMode=_.h("web_watch_imax_theater_mode");d.isFullWindowSession=_.Qx("START_IN_FULL_WINDOW_MODE");d.hasCreateFamilyDialog=!1;d.mastheadHeight=56;d.networkStatusManager=new _.yQ;d.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction",
"yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications",
"yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction","yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation",
"yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage","yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};d.dynamicActionMap={"yt-run-attestation-command":function(H){var K=_.wSS.instance,c=_.M(H,_.U5B);return c?_.h("use_rta_manager_for_async")&&
b5t()?JEG(K,c,H.clickTrackingParams):XK0(K,c,H.clickTrackingParams):_.W1(Error("mi"))}};
d.isFrostedGlassDisabled=!1;d.isChannelOrPlaylistPage=!1;return d};
_.m(Si,_.B);_.G=Si.prototype;_.G.created=function(){var d=_.Kj();_.h("kevlar_clear_duplicate_pref_cookie")&&_.mf(_.Xp,function(){var H=_.Vm.get("PREF");H&&!/f\d=/.test(H)&&(H=_.GJ("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=H?"PREF=null;domain="+H+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.h("gzip_gel_with_worker")&&_.rBh();_.h("jspb_serialize_with_worker")&&CGG();_.h("web_worker_availability_check")&&mVb();_.h("nwl_init_killswitch")||xCg().then(function(){_.Xp.addLowPriorityJob(ZKv)});
this.pageManagerAttachedPromise=_.DA();this.ytdAppBehavior.loadDepsPromise=_.hH([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.NV(this.onThrottledScroll,200,this);_.h("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);GAb();oV0=!!_.OS("ytappsettings.initialized");Ic=_.OS("ytappsettings.previousValue");EKZ=_.OS("ytappsettings.previousSnapshotTime");oV0||(oV0=!0,yP1());SIv();EfU();_.sS("DEFERRED_DETACH",
_.h("kevlar_tuner_should_defer_detach"));_.sS("REUSE_COMPONENTS",!0);_.sS("STAMPER_STABLE_LIST",!0);_.sS("SCHEDULED_LAZY_LIST",!0);_.sS("openPopupConfig",JVU);_.sS("useClickHandler",!0);_.h("kevlar_shell_cleanup")&&_.Xp.addLowPriorityJob(vKG.bind(this,_.KF.caches));_.Qx("IS_SHELL_LOAD")&&_.Xw({shellStartupDurationMs:Math.round((0,_.$G)()-_.IF())});o6U(this.networkStatusManager);_.h("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",$Vj(TZ1)),console.log("%cYouTube.com is the second largest website in the world, with hundreds of\nmillions of users and watch-hours per day. It makes you laugh, learn, and leaves\nyou amazed. Are there things that you love about YouTube? Things that you don't?\nHelp us make it better!",
$Vj(QNZ)),console.log("%cVisit http://go/join-youtube-web to apply today.",$Vj(td1)));_.bjq(d.resolve(_.I7),1E3)};
_.G.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var d=ujg();d&&!_.h("external_fullscreen_killswitch")&&document.addEventListener(d,this.setFullscreen.bind(this));(d=window.matchMedia("(prefers-color-scheme: dark)"))&&d.addEventListener&&d.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.G.attached=function(){var d=this;_.OT().processSignal("ci");_.h("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.Itf?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.GH(_.S4E(),"SUCCESS");this.updateIconSet();_.gV(this.guideInnerContent,!1);_.u9().initVisibilityObserver();this.guideService.guideElement=this.guide;var H=document.createElement("ytd-miniplayer"),K=_.Gn(this.hostElement).querySelector("#content");
_.Gn(this.hostElement).insertBefore(H,K);_.OT().processSignal("ma");_.Kj().resolve(_.Fb).init(H);_.Qx("IS_SHELL_LOAD")&&(K=document.createElement("ytd-network-status-banner"),_.Gn(this.hostElement).insertBefore(K,H));_.h("kevlar_right_click_on_lockups")&&_.Oh._onCaptureClick&&document.addEventListener("contextmenu",_.Oh._onCaptureClick.bind(_.Oh),!0);var c=function(){var p=_.gl("yt-page-navigation-progress");_.Gn(d.hostElement).appendChild(p)};
setTimeout(function(){_.OT().parkOrScheduleJob(c,0,"eocs",16)},0);
_.h("service_worker_push_enabled")&&_.mf(_.Xp,P5g);_.Ne(_.bw.getInstance(),this.dynamicActionMap,this.hostElement);_.GT(this.hostElement,"ytd-app-attached");_.OT().processSignal("aa");Sob(this.hostElement);_.vb("gapi.load",_.MLL);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.mf(_.Xp,
function(){var p=document.createElement("ytd-video-preview");_.Gn(_.Gn(d.hostElement).querySelector("#video-preview")).appendChild(p)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.mf(_.Xp,function(){g6T();d.registerWithViewTransitionManager()});
if(_.ze()&&this.isAppDarkTheme()!==_.W5())this.onDarkModeToggledAction();else H=_.B5()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==H&&(_.h("enable_dark_theme_only_on_shorts")?_.bO(_.h("enable_dark_theme_only_on_shorts_control")?window.location.href:_.DY(window.location.href,{theme:"dark"})):_.Jf(new _.m1("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(TbS=new ZJS(this.hostElement)),XoG=new zpZ(this.hostElement),BZO=new WAG(this.hostElement),cyv=new KD5(this.hostElement)};
_.G.getThemeSettingsToLog=function(){var d=_.B5()==="USER_INTERFACE_THEME_DARK";d=_.ze()?_.W5()?"os-dark":"os-light":d?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:d,cookiesEnabled:_.hX()}};
_.G.detached=function(){_.i5(this.guideInnerContent);_.Xp.cancelJob(w_);w_=0;_.Xp.cancelJob(uu);uu=0;_.OM4(OOt);OOt.length=0;Qu1=_.R54=null;_.u9().dispose();_.h("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Dz(_.bw.getInstance(),TbS.playlistHandlerActionMap,TbS.JSC$31930_clientRoot);_.Dz(_.bw.getInstance(),XoG.downloadManagerActionMap,XoG.JSC$32233_clientRoot);_.Dz(_.bw.getInstance(),BZO.feedbackCollectorActionMap,BZO.JSC$32228_clientRoot);
for(var d=_.q(cyv.eventListeners),H=d.next();!H.done;H=d.next()){var K=_.q(H.value);H=K.next().value;K=K.next().value;K=_.q(K);for(var c=K.next();!c.done;c=K.next()){var p=_.q(c.value);c=p.next().value;p=p.next().value;H.removeEventListener(c,p)}}_.Dz(_.bw.getInstance(),cyv.autonavPauseActionMap,cyv.JSC$19873_clientRoot)};
_.G.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Lo().getFlag(186)};
_.G.computeIsInlinePreviewEnabled=function(d,H,K){return!K&&_.OjZ({miniplayerIsActive:d,miniplayerPlaybackState:H})};
_.G.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.iZ({type:"SET_FROSTED_GLASS_MODE",payload:!_.h("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.G.computeIsFrostedGlassDisabled=function(d,H,K,c){return d||H||K||c&&_.h("web_frosted_glass_disable_watch")};
_.G.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.h("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.G.computeIsHomePage=function(d,H){if(!d||H==null||!H.endpoint)return!1;var K;return((K=_.M(H.endpoint,_.Lm))==null?void 0:K.browseId)==="FEwhat_to_watch"};
_.G.updateIsChannelOrPlaylistPage=function(){if(_.h("web_frosted_glass")){var d,H,K=(H=(d=_.Kj().resolve(_.$p(_.HI)))==null?void 0:d.getCurrentPage())==null?void 0:H.pageSubtype;this.isChannelOrPlaylistPage=K?["channel","channels","playlist"].includes(K):!1}};
_.G.scheduleFrostedGlassInitialization=function(){var d=this;_.h("web_frosted_glass")&&_.OT().parkOrScheduleJob(function(){d.isFrostedGlassInitialized=!0},0,_.jr(["eocs",
"cr"]),300)};
_.G.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.xE3(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.iZ({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.iZ({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.G.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(dJT(!0))};
_.G.onYtSignalActionRequestPersistentStorage=function(){if(!_.h("request_persistent_storage_killswitch")){var d=_.Kj().resolve(_.hjt);d.cachedPersistStatePromise||(d.cachedPersistStatePromise=kHq())}};
_.G.handleYtChannelCreationFormEndpoints=function(d){d&&this.ytComponentBehavior.resolveCommand(d)};
_.G.handleShowEngagementPanelEndpoint=function(d){d&&this.ytComponentBehavior.resolveCommand(d)};
_.G.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(dJT(!1))};
_.G.initIconDefs=function(d,H){var K=document.createElement("iron-iconset-svg");K.name=d;d=document.createElementNS("http://www.w3.org/2000/svg","svg");K.appendChild(d);d.appendChild(H);document.body.appendChild(K);return K};
_.G.onWindowResized=function(){_.oF(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var d=_.Pl3.getInstance();d.documentWidth_=document.body.clientWidth;i8T(d)};
_.G.onWindowScrolled=function(){var d=_.Kj().resolve(_.HI).getCurrentPage();if(d!=null&&d.getScrollTop){var H=this.ytdReduxBehavior,K=H.dispatch;d=d.getScrollTop()<=0;K.call(H,_.iZ({type:"SET_SCROLL_AT_TOP",payload:d}))}};
_.G.guideIsVisibleButNotPersistentSelectorChanged=function(){var d=_.Kj().resolve(_.HI).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=d.getScrollTop(),document.body.classList.add("lock-scrollbar"),document.body.style.top="-"+this.guideScrollTop+"px"):document.body.classList.contains("lock-scrollbar")&&(document.body.style.overflowY="",document.body.style.top="",document.body.classList.remove("lock-scrollbar"),
d.setScrollTop(this.guideScrollTop));_.qo(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.G.getCurrentPageScrollableElementType=function(){var d=_.Kj().resolve(_.HI).getCurrentPage();if(d&&d.getPageScrollingElement())return d.getPageScrollingElement().nodeName};
_.G.observeGuideVisibility=function(){var d=_.Pl3.getInstance(),H=this.miniGuideVisible;d.guidePersistentAndVisible_=this.guidePersistentAndVisible;d.miniGuideVisible_=H;i8T(d)};
_.G.handleEduDismissAction=function(d){d&&d.eduDismissAction&&(_.oF(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.hPl.getInstance(),_.$C.set(d.eduDismissAction.key+"-dismissed",!0))};
_.G.handleEduImpressionAction=function(d){if(d&&d.eduImpressionAction){var H=_.hPl.getInstance();d=d.eduImpressionAction.key;H.JSC$12947_eduDisplayedThisLoad_[_.UzM[d].setKey||d]=!0;_.$C.set(d+"-impression",parseInt(_.$C.get(d+"-impression")||0,10)+1)}};
_.G.onYtSignalActionConfirmMentionsEdu=function(){_.oF(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.ps.getInstance();_.cm.set("edu-dismissed",!0)};
_.G.onYtSignalActionRecordMentionsEduImpression=function(){_.ps.getInstance();var d=_.cm.set,H=parseInt(_.cm.get("edu-impressions"),10);d.call(_.cm,"edu-impressions",(isFinite(H)?H:0)+1)};
_.G.onYtPageManagerAttached=function(d){var H;((H=_.v5(d))==null?void 0:H.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.G.onInvokeInstrumentManagerAction=function(d,H){rWb(H,d)};
_.G.updateIconSet=function(){var d=this.hostElement.querySelector("#masthead");if(d){var H=_.o1(d),K=H.querySelector("g#yt-logo-updated");K&&(d=document.createElementNS("http://www.w3.org/2000/svg","defs"),d.appendChild(K.cloneNode(!0)),(H=H.querySelector("g#yt-logo-red-updated"))&&d.appendChild(H.cloneNode(!0)),this.initIconDefs("yt-logos-ext",d))}};
_.G.updateMastheadData=function(){var d=this,H,K,c,p,g;return _.l(function(a){if(a.nextAddress==1){H=d.data;K=d.hostElement.querySelector("#masthead");if(!K)return a.return();_.vV(d,function(){K.data=d.topbarData});
if(!d.get("response.topbar",H)||d.get("response.topbar.responseContext.maxAgeSeconds",H)===0)return a.jumpTo(0);if(c=_.Kj().resolve(_.GE))return a.yield(c(),6);p=_.Kj().resolve(_.kx);return a.yield(p.put("service:topbar:fallback",new _.xx({innertubeResponse:d.get("response.topbar",H)})),0)}return(g=a.yieldResult)?a.yield(g.put("service:topbar:fallback",new _.xx({innertubeResponse:d.get("response.topbar",H)})),0):a.jumpTo(0)})};
_.G.computeTopbarData=function(d){if(!d)return null;var H;return this.isShortsPage&&this.topbarData&&!_.M((H=d.response)==null?void 0:H.topbar,cT0)?this.topbarData:d.response&&"topbar"in d.response?_.M(d.response.topbar,cT0)||null:null};
_.G.onSetTheaterModeEnabled=function(d,H){this.isTheaterModeSession=H.enabled;this.setTheaterModeStyles(H.enabled)};
_.G.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.G.onDarkModeToggledAction=function(){var d=_.kp(window.location.href);if(!_.rID(d)){(d=!!_.NM(window.location.href).themeRefresh)&&_.Jf(new _.m1("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!d){yP1();d={themeRefresh:1};var H=_.Kj().resolve(_.HI);if(H.isOnWatch()){var K,c;H=((K=H.getPlayerFromWatch())==null?void 0:(c=K.getPlayer())==null?void 0:c.getCurrentTime())||0;H>=1&&(d.time_continue=Math.floor(H))}_.hX()||_.B5()!=="USER_INTERFACE_THEME_DARK"||(d.theme="dark");_.bO(_.DY(window.location.href,
d))}_.h("web_appshell_refresh_trigger")&&_.KF.caches&&this.refreshAppShellResponse();K=_.yK(window.location.href);_.RL(_.Kj().resolve(_.Vr),_.$W(K,"theme"))}};
_.G.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.G.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.G.onPlayerFullscreen=function(d){_.Ko();this.playerFullscreen=d};
_.G.setRestrictedMode=function(d){var H=_.Lo();_.Mo(0,58,d);H.save();_.Kj().resolve(_.Pm).reload()};
_.G.onPageChanged=function(d){d.detail.newPageType==="ytd-watch-flexy"||d.detail.newPageType==="ytd-watch-fixie"||d.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.mp("WEB_PAGE_TYPE_WATCH")):d.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.mp("WEB_PAGE_TYPE_SHORTS")):d.detail.newPageType==="ytd-browse"&&d.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.mp("WEB_PAGE_TYPE_MINI_APP")):_.h("web_frosted_glass")&&d.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.mp("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.mp("WEB_PAGE_TYPE_UNKNOWN"));d.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.G.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.G.onGuideToggleTap=function(){_.GT(this.hostElement,"yt-guide-toggle")};
_.G.onGuideToggleHover=function(){_.GT(this.hostElement,"yt-guide-hover")};
_.G.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.G.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.G.setMastheadTheme=function(){var d=_.o1(this.hostElement).querySelector("#masthead");d&&(d.dark=d.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),d.isDarkThemeForced=!1)};
_.G.onRequestPanelModeChange=function(d,H){this.hideHeaderShadow=H.mode!=="seamed"};
_.G.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.G.onDrawerIronSelect=function(d){_.v5(d).id==="guide"&&this.processDrawerIronSelect()};
_.G.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var d="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(d="opened"));_.GT(this.hostElement,"yt-autonav-pause-guide-"+d)};
_.G.onAddElementToApp=function(d){_.Gn(this.hostElement).appendChild(d.detail)};
_.G.onThrottledScroll=function(){var d=_.Kj().resolve(_.HI).getCurrentPage();d&&(this.scrollAtTop=d.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.G.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.G.setFullscreen=function(){if(_.h("external_fullscreen")||!this.isWatchPage){var d=_.h("kevlar_fullerscreen_root_only_killswitch")?!!_.Ko():!!_.Ko()&&_.Ko()===document.documentElement;d=(this.isWatchPage||_.h("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(d||this.isFullWindowSession);this.fullscreen!==d&&((this.fullscreen=d)&&_.qo(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.dn().dispatch(_.p2l(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.oF(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.G.setFullscreenLoggingForShorts=function(d){var H,K,c;return _.l(function(p){if(p.nextAddress==1)return p.yield((H=_.Kf())==null?void 0:H.getPlayerPromise(),2);K=p.yieldResult;(c=K)==null||c.setAppFullscreen(d);_.VE(p)})};
_.G.updateMastheadCssHeight=function(){var d=this.mastheadHeight;this.fullscreen&&(d=0);_.eO(this.hostElement,{"--ytd-masthead-height":d+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.G.updateNetworkStatusBannerDisplayStatus=function(){var d="unset";this.fullscreen&&(d="none");_.eO(this.hostElement,{"--ytd-network-status-banner-display":d})};
_.G.updateNetworkStatusBannerCssHeight=function(){var d="unset";this.fullscreen&&(d="0px");_.eO(this.hostElement,{"--ytd-network-status-banner-max-height":d})};
_.G.updateScrollAndMasthead=function(d,H,K,c){this.iMaxTheaterMode||(c=!1);var p=_.Kj().resolve(_.HI).getCurrentPage();d||H||c?(document.body.classList.add("no-scroll"),p.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.xf(this,this.onScroll)),p.setScrollTop(0),_.eO(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.DN()+"px"})):K?_.GT(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.GT(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
p.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.xf(this,this.onScroll)));this.mastheadHidden=d||H||K;this.updateMastheadCssHeight();_.h("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.G.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.G.onYtNavigateAction=function(d){d=this.get("navigateAction.endpoint",d);_.GT(this.hostElement,"yt-navigate",{endpoint:d})};
_.G.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var d=document.createElement("yt-create-family-dialog");_.Gn(this.hostElement).appendChild(d);this.hasCreateFamilyDialog=!0}};
_.G.onSetPushNotificationsEnabledCommand=function(d){var H=this,K=_.M(d,Ku1);K&&typeof K.enabled==="boolean"&&(Notification.permission!=="granted"?hTb().then(function(){Notification.permission==="granted"?(gWt(!K.enabled).then(oW0),K.successAction&&_.aF(H.hostElement,[K.successAction])):K.failureAction&&_.aF(H.hostElement,[K.failureAction])}):(gWt(!K.enabled).then(oW0),K.successAction&&_.aF(this.hostElement,[K.successAction])))};
_.G.onYtSignalActionEnableChromeNotifications=function(){LW0(!0)};
_.G.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.M(this.topbarData.hotkeyDialog,idt)}}})};
_.G.onYtSignalActionShowKeyboardShortcutDialog=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.G.onYtEndpointChangeHandler=function(d,H){var K=_.jn(_.wy);K.pendingPrefetchJob_&&(H=!(!H||H.autonav!="1"),K.pendingPrefetchJob_.resolve(d&&_.V9C(d)?_.Ui5(d,H):""),K.pendingPrefetchJob_=null);_.oF(this.hostElement,"yt-pause-active-page-context");_.oF(this.hostElement,"ytd-log-youthere-nav");_.oF(this.hostElement,"yt-prepare-page-dispose")};
_.G.handleCommandWithCommandHandler=function(d,H){_.nM.instance.resolveCommand(d,{form:{element:H}})};
_.G.onYtTimedCommand=function(d){var H=this;d=_.M(d,y$1);var K=d.command;K&&_.mR(_.Xp,function(){var c=_.M(K,_.YVg);c?(_.nM.instance.resolveCommand(K),H.maybeLogGetAnswerRequestTick(c)):_.l5(H.hostElement,[K],H.hostElement)},d.timeoutMs||0)};
_.G.maybeLogGetAnswerRequestTick=function(d){d&&d.isFirstRequest&&(_.sa("search_overview_answer"),_.Fw("so_rq",void 0,"search_overview_answer"))};
_.G.onYtSignalActionSkipNavigation=function(){var d=_.Kj().resolve(_.HI).getCurrentPage();_.f4(d)};
_.G.onYtSignalActionCopyDebugData=function(){TVO()};
_.G.handleEntityUpdateCommand=function(d){_.Uc(_.M(d,_.QY6).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.G.logFlowLoggingEventCommand=function(d){if(d=_.M(d,_.GUD))if(d.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var H=d.flowEventNamespace,K=d.flowEventType,c=d.flowType;c&&H&&K&&_.lT4(_.nm(H,K,d.flowEventMetadata),c)}else{H=_.R3();K=d.flowEventNamespace;c=d.flowEventType;var p=d.flowType;p&&K&&c&&_.Cm(H,_.nm(K,c,d.flowEventMetadata),p,d.flowNonce)}};
_.G.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.G.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.G.onTouchStart=function(){var d=_.Ik();_.Fj()&&_.EQ(d.JSC$13174_screenManager,{visualElement:d.ve})};
_.G.handleSelectLanguageCommand=function(d){if(d=_.M(d,dZ5).hl){var H=_.Lo();H.set("hl",d);H.save();_.Kj().resolve(_.Pm).reload()}};
_.G.handleConfirmDialogEndpoint=function(d){(d=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(d))&&this.ytOpenPopupBehavior.openPopup(d)};
_.G.handleOpenPopupNavigationEndpoints=function(d,H){_.h("web_button_rework")&&(d=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(d))&&this.ytOpenPopupBehavior.openPopup(d,H)};
_.G.handleSaveCommandToSessionStorage=function(d){if(d=_.M(d,_.PBg)){var H=d.key;H&&d.command&&window.sessionStorage.setItem(H,JSON.stringify(d.command))}};
_.G.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(d){d&&d.active&&d.active.postMessage({type:"refresh_shell"})}).catch(function(d){d.name!=="SecurityError"&&_.z5(d)})};
_.G.onDeviceThemeChanged=function(){var d=_.W5();_.Mo(_.Lo(),185,d);_.Lo().save()};
_.G.handleYtRegisterPromoCommand=function(d){if(_.M(d,$Zj)){var H=_.Kj().resolve(_.HI).getCurrentPage()||this.hostElement;emb().registerPromoCommand(_.M(d,$Zj),H)}};
_.G.onYtNavigateHomeAction=function(){if(!_.h("kevlar_miniplayer_navigate_home_from_app_killswitch")){var d,H,K,c,p=(c=(d=this.topbarData)==null?void 0:(H=d.logo)==null?void 0:(K=H.topbarLogoRenderer)==null?void 0:K.endpoint)!=null?c:_.hJ;this.ytComponentBehavior.resolveCommand(p)}};
_.G.onYtLocationCollectionCommand=function(d){cW1(_.M(d,xZ1))};
_.G.onYtGetLocationCommand=function(d){Drv(_.M(d,km1),this)};
_.G.updateRenderGuideFromBinding=function(d){this.renderGuide=d.detail.value};
_.G.updateGuidePersistentAndVisibleFromBinding=function(d){this.guidePersistentAndVisible=d.detail.value};
_.G.updateMiniGuideVisibleFromBinding=function(d){this.miniGuideVisible=d.detail.value};
_.G.onThemeSelected=function(d,H){var K=_.Lo(),c=d||H?d:_.W5(),p=(c&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!c&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.rID(_.kp(window.location.href));_.Mo(0,165,d);_.Mo(0,174,H);K.save();p&&_.oF(this.hostElement,"yt-dark-mode-toggled-action",[c]);_.oF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.G.getCurrentTheme=function(){return _.ze()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.B5()};
_.G.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.G.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.G.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.G.handleShowConsentPrimitive=function(d){var H=this,K,c;return _.l(function(p){if(p.nextAddress==1){try{K=(c=_.Kf())==null?void 0:c.getPlayerPromise()}catch(g){}return p.yield(LR0(d,K),2)}_.oF(H.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.VE(p)})};
_.G.handleSelectActiveIdentityEndpointInternal=function(d){_.Eb();d=_.M(d,_.K2S);if(d!=null&&d.supportedTokens){d=_.q(d.supportedTokens);for(var H=d.next();!H.done;H=d.next())H=H.value,H.accountSigninToken&&_.bO(H.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.G.handleUpdatePermissionRoleCommand=function(d){if(d=_.M(d,_.p4N)){var H;this.hasDelegation=!((H=_.M(d.renderer,_.csA))==null||!H.status)}};
_.G.registerWithViewTransitionManager=function(){var d=_.Kj().resolve(_.$p(_.LW));if(d){var H,K=(H=this.guide)==null?void 0:H.querySelector("#scrim"),c;H=(c=this.guide)==null?void 0:c.querySelector("#contentContainer");K&&H&&d.isAnyTransitionEnabled&&(c={},d.viewTransitionCoordinator.registerElement(K,(c.slide="app-drawer-scrim-page-transition",c["lockup-to-watch"]="app-drawer-scrim-page-transition",c["learning-journey"]="app-drawer-scrim-page-transition",c)),K={},d.viewTransitionCoordinator.registerElement(H,
(K.slide="app-drawer-container-page-transition",K["lockup-to-watch"]="app-drawer-container-page-transition",K["learning-journey"]="app-drawer-container-page-transition",K)))}};
_.H3.Object.defineProperties(Si.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.h("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.H3.Object.defineProperties(Si,{template:{configurable:!0,enumerable:!0,get:function(){if(mL0===void 0){var d=document.createElement("template");_.P(d,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
d.content.insertBefore(_.S().content.cloneNode(!0),d.content.firstChild);mL0=d}d=mL0;return d}}});
Si.prototype.onOpenHotkeyDialog=Si.prototype.onOpenHotkeyDialog;Si.prototype.setFullscreen=Si.prototype.setFullscreen;Si.prototype.onAddElementToApp=Si.prototype.onAddElementToApp;Si.prototype.onDrawerIronSelect=Si.prototype.onDrawerIronSelect;Si.prototype.onGuideOpenButtonHover=Si.prototype.onGuideOpenButtonHover;Si.prototype.onRequestPanelModeChange=Si.prototype.onRequestPanelModeChange;Si.prototype.onPageDataUpdated=Si.prototype.onPageDataUpdated;Si.prototype.onPageChanged=Si.prototype.onPageChanged;
Si.prototype.onSetTheaterModeEnabled=Si.prototype.onSetTheaterModeEnabled;Si.prototype.updateMastheadData=Si.prototype.updateMastheadData;Si.prototype.onYtPageManagerAttached=Si.prototype.onYtPageManagerAttached;Si.prototype.observeGuideVisibility=Si.prototype.observeGuideVisibility;Si.prototype.guideIsVisibleButNotPersistentSelectorChanged=Si.prototype.guideIsVisibleButNotPersistentSelectorChanged;Si.prototype.isInlinePreviewEnabledChanged=Si.prototype.isInlinePreviewEnabledChanged;
Si.prototype.isWatchPageChanged=Si.prototype.isWatchPageChanged;Si.prototype.dispatchFrostedGlassMode=Si.prototype.dispatchFrostedGlassMode;_.t([_.u(_.to),_.O("design:type",Object)],Si.prototype,"ytdReduxBehavior",void 0);_.t([_.u(_.wb.YtEventForwardingBehavior),_.O("design:type",Object)],Si.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(_.Rm.YtOpenPopupBehavior),_.O("design:type",Object)],Si.prototype,"ytOpenPopupBehavior",void 0);
_.t([_.u(_.Uq.YtActionHandlerBehavior),_.O("design:type",Object)],Si.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.bw.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.h("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var d;((d=this.actionRouterNode.hostElement)!=null?d:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var d;((d=this.actionRouterNode.hostElement)!=null?d:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(d){this.actionRouter_.handleAction(d.detail)}}),
_.O("design:type",Object)],Si.prototype,"ytActionRouterBehavior",void 0);_.t([_.u(UFO.YtdAppBehavior),_.O("design:type",Object)],Si.prototype,"ytdAppBehavior",void 0);_.t([_.u(_.VV.YtEndpointBehavior),_.O("design:type",Object)],Si.prototype,"ytEndpointBehavior",void 0);_.t([_.u(rDv.YtEndpointHandlerWithYpcBehavior),_.O("design:type",Object)],Si.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.t([_.u(woq.YtLogYpcFlowCommandsBehavior),_.O("design:type",Object)],Si.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.t([_.u(_.b.YtRendererBehavior),_.O("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.t([_.u(_.S$.YtComponentBehavior),_.O("design:type",Object)],Si.prototype,"ytComponentBehavior",void 0);_.t([_.r({selector:_.Utj}),_.O("design:type",Object)],Si.prototype,"tabGesturesIsActive",void 0);_.t([_.r(),_.O("design:type",Boolean)],Si.prototype,"renderGuide",void 0);
_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Si.prototype,"guidePersistentAndVisible",void 0);_.t([_.r({selector:_.VyT}),_.O("design:type",Boolean)],Si.prototype,"guideIsVisibleButNotPersistent",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Si.prototype,"standalone",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Si.prototype,"miniGuideVisible",void 0);
_.t([_.r({selector:_.jSF}),_.O("design:type",Number)],Si.prototype,"miniplayerPlaybackState",void 0);_.t([_.r({selector:_.Fv,reflectToAttribute:!0}),_.O("design:type",Boolean)],Si.prototype,"miniplayerIsActive",void 0);_.t([_.r({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.O("design:type",Boolean)],Si.prototype,"isInlinePreviewEnabled",void 0);_.t([_.r(),_.O("design:type",Boolean)],Si.prototype,"isInlinePreviewDisabled",void 0);
_.t([_.r({reflectToAttribute:!0,value:function(){return _.Qx("START_IN_FULL_WINDOW_MODE")}}),
_.O("design:type",Boolean)],Si.prototype,"mastheadHidden",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Si.prototype,"playerFullscreen",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Si.prototype,"deprecateFullerscreenUi",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Si.prototype,"fullscreen",void 0);_.t([_.r({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Si.prototype,"hideHeaderShadow",void 0);
_.t([_.r({value:{GUIDE_ALT_LABEL:_.Vz("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.O("design:type",Object)],Si.prototype,"menuStrings",void 0);_.t([_.r({computed:"computeTopbarData(data)"}),_.O("design:type",Object)],Si.prototype,"topbarData",void 0);_.t([_.r({selector:_.NI4}),_.O("design:type",Boolean)],Si.prototype,"isWatchPage",void 0);_.t([_.r({selector:_.Dwl,reflectToAttribute:!0}),_.O("design:type",Boolean)],Si.prototype,"isShortsPage",void 0);_.t([_.r({selector:function(d){return _.ZL(d)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.O("design:type",Boolean)],Si.prototype,"isMiniAppPage",void 0);_.t([_.r({selector:function(d){return _.ZL(d)==="WEB_PAGE_TYPE_BROWSE"}}),
_.O("design:type",Boolean)],Si.prototype,"isBrowsePage",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Boolean)],Si.prototype,"scrolling",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Si.prototype,"hasDelegation",void 0);_.t([_.r({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Si.prototype,"guideScrolledByTouch",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Si.prototype,"darkerDarkTheme",void 0);
_.t([_.r(),_.O("design:type",Object)],Si.prototype,"isFrostedGlassInitialized",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Si.prototype,"frostedGlassExp",void 0);_.t([_.r({selector:function(d){return d.ui.chipBarIsSticky}}),
_.O("design:type",Boolean)],Si.prototype,"chipBarIsSticky",void 0);_.t([_.r({computed:"computeIsHomePage(isBrowsePage, data)"}),_.O("design:type",Boolean)],Si.prototype,"isHomePage",void 0);_.t([_.r({reflectToAttribute:!0}),_.O("design:type",Object)],Si.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.t([_.r(),_.O("design:type",Object)],Si.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.t([_.kH("guide"),_.O("design:type",Object)],Si.prototype,"guide",void 0);
_.t([_.kH("guide-service"),_.O("design:type",iQ0)],Si.prototype,"guideService",void 0);_.t([_.kH("guide-inner-content"),_.O("design:type",HTMLDivElement)],Si.prototype,"guideInnerContent",void 0);_.t([_.r({selector:_.vR5}),_.O("design:type",String)],Si.prototype,"frostedGlassMode",void 0);
_.t([_.CK("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Si.prototype,"dispatchFrostedGlassMode",null);_.t([_.r({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.O("design:type",Object)],Si.prototype,"isFrostedGlassDisabled",void 0);
_.t([_.CK("isWatchPage"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Si.prototype,"isWatchPageChanged",null);_.t([_.I("isHomePage","chipBarIsSticky"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Si.prototype,"applyFrostedGlassToChipBar",null);_.t([_.r(),_.O("design:type",Object)],Si.prototype,"isChannelOrPlaylistPage",void 0);
_.t([_.Mr("isInlinePreviewEnabled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Si.prototype,"isInlinePreviewEnabledChanged",null);_.t([_.CK("guideIsVisibleButNotPersistent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Si.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.t([_.CK("guidePersistentAndVisible","miniGuideVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Si.prototype,"observeGuideVisibility",null);_.t([_.nK("attached"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],Si.prototype,"onYtPageManagerAttached",null);_.t([_.CK("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],Si.prototype,"updateMastheadData",null);
_.t([_.nK("yt-set-theater-mode-enabled"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],Si.prototype,"onSetTheaterModeEnabled",null);_.t([_.nK("yt-page-type-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Si.prototype,"onPageChanged",null);_.t([_.nK("yt-page-data-updated"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Si.prototype,"onPageDataUpdated",null);
_.t([_.nK("yt-request-panel-mode-change"),_.O("design:type",Function),_.O("design:paramtypes",[Event,Object]),_.O("design:returntype")],Si.prototype,"onRequestPanelModeChange",null);_.t([_.nK("yt-guide-hover"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Si.prototype,"onGuideOpenButtonHover",null);_.t([_.nK("app-drawer-transitioned"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],Si.prototype,"onDrawerIronSelect",null);
_.t([_.nK("yt-add-element-to-app"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Si.prototype,"onAddElementToApp",null);_.t([_.nK("yt-set-fullerscreen-styles"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Si.prototype,"setFullscreen",null);_.t([_.nK("yt-open-hotkey-dialog"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Si.prototype,"onOpenHotkeyDialog",null);
_.t([_.Z({is:"ytd-app"})],Si);_.OT().processSignal("eor");
_.rk();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
